Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
sequencelengths
0
101
negative_scores
sequencelengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
UPDATING Allow "beforeChange" event handlers to influence a change
function filterChange(doc, change, update) { var obj = { canceled: false, from: change.from, to: change.to, text: change.text, origin: change.origin, cancel: function () { return obj.canceled = true; } }; if (update) { obj.update = function (from, to, text, origin) { if (from) { obj.from = clipPos(doc, from); } if (to) { obj.to = clipPos(doc, to); } if (text) { obj.text = text; } if (origin !== undefined) { obj.origin = origin; } }; } signal(doc, "beforeChange", doc, obj); if (doc.cm) { signal(doc.cm, "beforeChange", doc.cm, obj); } if (obj.canceled) { if (doc.cm) { doc.cm.curOp.updateInput = 2; } return null } return {from: obj.from, to: obj.to, text: obj.text, origin: obj.origin} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_beforeChange () {\n // nop\n }", "_beforeChange () {\n // nop\n }", "afterValidChange() { }", "internalOnChange(event) {\n const me = this,\n value = me.value,\n oldValue = me._lastValue;\n\n // Don't trigger change if we enter invalid value or if value has not changed (for IE when pressing ENTER)\n if (me.isValid && value !== oldValue) {\n me._lastValue = value;\n\n // trigger change event, signaling that origin is from user\n me.trigger('change', { value, oldValue, event, userAction: true });\n\n // per default Field triggers action event on change, but might be reconfigured in subclasses (such as Combo)\n if (me.defaultAction === 'change') {\n me.trigger('action', { value, oldValue, event });\n }\n }\n\n // since Widget has Events mixed in configured with 'callOnFunctions' this will also call onClick and onAction\n }", "change() { }", "function changeEvent() {\n var value_sub = properties.value;\n trigger_param_list.push(value_sub);\n // 'seek' event is like a forced-change event\n $pebble_slider_object.triggerHandler('seek', trigger_param_list);\n if (prev_change_value !== value_sub) {\n $pebble_slider_object.triggerHandler('change', trigger_param_list);\n prev_change_value = value_sub;\n }\n trigger_param_list.length = 0;\n }", "onCurrentChanged(value) {\n /* no-op */\n }", "_setOnChanges(){\n\t\tthis.inputs.forEach(i => i.addEventListener('change', this._onChange.bind(this)));\t\n\t}", "_triggerChangeEvent() {\n\t\tif ( this.$control.rendered && ! this.changeEventDisabled ) {\n\t\t\tthis._updateSettings();\n\t\t\tthis.events.emit( 'change', this.settings );\n\t\t}\n\t}", "changedInput() {\n\n\t\tlet {isValid, error} = this.state.wasInvalid ? this.validate() : this.state;\n\t\tlet onChange = this.props.onChange;\n\t\tif (onChange) {\n\t\t\tonChange(this.getValue(), isValid, error);\n\t\t}\n\t\tif (this.context.validationSchema) {\n\t\t\tlet value = this.getValue();\n\t\t\tif (this.state.isMultiSelect && value === '') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\tif (this.shouldTypeBeNumberBySchemeDefinition(this.props.pointer)) {\n\t\t\t\tvalue = Number(value);\n\t\t\t}\n\t\t\tthis.context.validationParent.onValueChanged(this.props.pointer, value, isValid, error);\n\t\t}\n\t}", "handleEventChange() {\n }", "function onChange() {\n if (input.get.call(element, valueField) !== observer.oldValue && !element.readOnly) {\n observer.set(input.get.call(element, valueField));\n }\n }", "internalOnChange(event) {\n const me = this; // Don't trigger change if we enter invalid value or if value has not changed (for IE when pressing ENTER)\n\n if (me.isValid && me.hasChanged(me._lastValue, me.value)) {\n me.triggerChange(event, true);\n me._lastValue = me.value;\n }\n }", "registerOnChange(fn) {\n this.propagateChanges = fn;\n }", "changedCallback () {\n\t\tif (this.oldValue === this.value) return;\n\t\tthis._setTranslation();\n\t}", "internalOnChange(event) {\n /**\n * Fired before checkbox is toggled. Returning false from a listener prevents the checkbox from being toggled.\n * @event beforeChange\n * @preventable\n * @param {Core.widget.Checkbox} source Checkbox\n * @param {Boolean} checked Checked or not\n */\n\n /**\n * Fired when checkbox is toggled\n * @event change\n * @param {Core.widget.Checkbox} source Checkbox\n * @param {Boolean} checked Checked or not\n */\n this.triggerChange(true);\n }", "handleChange() {\n this.forceUpdate();\n }", "internalOnChange(event) {\n /**\n * Fired before checkbox is toggled. Returning false from a listener prevents the checkbox from being toggled.\n * @event beforeChange\n * @preventable\n * @param {Common.widget.Checkbox} source Checkbox\n * @param {Boolean} checked Checked or not\n */\n\n /**\n * Fired when checkbox is toggled\n * @event change\n * @param {Common.widget.Checkbox} source Checkbox\n * @param {Boolean} checked Checked or not\n */\n\n this.triggerChange(true);\n }", "onchange() {}", "static _valueHasChanged(value,old,hasChanged=notEqual){return hasChanged(value,old);}", "function onChange() {\n console.log(\"something changed...\");\n \n }", "function changed(change) {\n if (change.changeType === \"property\" && change.property === property) {\n fn(change);\n }\n }", "onChanged(e){}", "_onChange () {\n this.forceUpdate()\n }", "onChangeChange(value) {\r\n if (isObject(this.events) && value == this.events.change) {\r\n console.error(value);\r\n throw new Error(\"Attempt to override Forms.onChange callback with Forms.events.change will lead to infinite loop!\");\r\n }\r\n }", "dispatchChange() {\n this.toggleAttribute(\"empty\", !this.value);\n this.dispatchEvent(new CustomEvent(\"change\", { bubbles: true }));\n }", "_iStateOnValueChange() {\n this.dirty = true;\n }", "_autoChanged(newValue){this.enabled=newValue}", "change(/*event*/) {\n this._super(...arguments);\n this._parse();\n }", "function onChange() {\n\t\t__debug_429( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "static _valueHasChanged(value,old,hasChanged=notEqual){return hasChanged(value,old)}", "onChange () {}", "onChange () {}", "onCustomWidgetBeforeUpdate(changedProperties) {\r\n\r\n\t\t}", "function onChange() {\n\t\t__debug_412( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "function onChange() {\n\t\t__debug_587( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "_triggerChange (e) {\n var args = [this.getValue(), this.getFormElement(), this.getUIElement()];\n if (e) {\n args.push(e);\n }\n if (this.options.onChange) {\n this.options.onChange.apply(this, args);\n }\n }", "function changed() {\n\t\t\t\t\t_dispatchEvent(_this, rootEl, 'change', target, el, rootEl, oldIndex, _index(dragEl, options.draggable), evt);\n\t\t\t\t}", "function onChange() {\n\t\t/* eslint-disable no-underscore-dangle */\n\t\t__debug_730( 'Received a change event.' );\n\t\tif ( self._autoRender ) {\n\t\t\tself.render();\n\t\t}\n\t}", "function onChange() {\n\t\t__debug_520( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "function onChange() {\n\t\t__debug_475( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "function onChange() {\n\t\t__debug_488( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "function onChange() {\n\t\t__debug_395( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "onCustomWidgetBeforeUpdate(oChangedProperties) {\n\n\t\t}", "function resetChangeFlags() {\n waitForChangeEvents();\n firedBeforeChange = firedDelayedChange = false;\n}", "function onChange() {\n\t\t__debug_577( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "handleChange(event) {\n this.dispatchEvent(new CustomEvent('change', {detail: event.target.value}));\n }", "function onChange() {\n\t\t__debug_332( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "function onChange() {\n\t\t__debug_457( 'Received a change event.' );\n\t\tif ( self._autoRender ) { // eslint-disable-line no-underscore-dangle\n\t\t\tself.render();\n\t\t}\n\t}", "onCustomWidgetBeforeUpdate(oChangedProperties) {\n \n \n\n\t\t}", "onChange() {\n triggerEvent(this.input, 'input');\n triggerEvent(this.input, 'change');\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dangle */\n\t\t__debug_259( 'Received a change event.' );\n\t\tif ( self._autoRender ) {\n\t\t\tself.render();\n\t\t}\n\t}", "reportValueChange() {\n if (this.options) {\n const value = this.getSelectedOptionValues();\n this.onChange(value);\n this._value = value;\n }\n }", "handleChange(e) {\n e.stopPropagation();\n const value = this.getInputEl().value;\n this.model.set({ value }, { fromInput: 1 });\n this.elementUpdated();\n }", "function changed() {\n\t\t\t\t_dispatchEvent(_this, rootEl, 'change', target, el, rootEl, oldIndex, _index(dragEl, options.draggable), evt);\n\t\t\t}", "function changed() {\n\t\t\t\t_dispatchEvent(_this, rootEl, 'change', target, el, rootEl, oldIndex, _index(dragEl, options.draggable), evt);\n\t\t\t}", "function onChange() {\n\t\t/* eslint-disable no-underscore-dangle */\n\t\t__debug_596( 'Received a change event.' );\n\t\tif ( self._autoRender ) {\n\t\t\tself.render();\n\t\t}\n\t}", "onGenericChange() {\n this.contentChanged.emit(void 0);\n }", "function handleChange(event, newValue) {\n setValue(newValue);\n }", "handleChangeEvent() {\n this.cacheHasChanged = true;\n }", "handleChange(event) {\n\n }", "setOnValueChangeEvent(func){\r\n this._onValueChange = func;\r\n }", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "_handleChildValueChange() {\n this.stateChanges.next(undefined);\n this._changeDetectorRef.markForCheck();\n }", "_handleChildValueChange() {\n this.stateChanges.next(undefined);\n this._changeDetectorRef.markForCheck();\n }", "function onChanged() {\n let g = getGlobal();\n\n //When the add-in creates the table, it will generate 4 events that we must ignore.\n //We only want to respond to the change events from the user.\n if (g.tableEventCount > 0) {\n g.tableEventCount--;\n return; //count down to throw away events caused by the table creation code\n }\n\n //check if dirty flag was set (flag avoids extra unnecessary ribbon operations)\n if (!g.isTableDirty) {\n g.isTableDirty = true;\n\n //Enable the Refresh and Submit buttons\n setSyncButtonEnabled(true);\n }\n}", "handleChange () {\n this.props.onStatusChange(\n this.props.item.id,\n this.refs.checkbox.checked ? 'RESERVED' : 'NEW'\n );\n }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onOverrideFieldChanged(event) {\n\t\tap.consoleInfo(\"Override field \" + this.name + \" changed.\");\n\t\toverride.showHideOverrideMessage($(event.currentTarget).attr('id'));\n\t}", "function setChanged (){\n\tformModified = true;\n}", "_onChange() {\n void this._debouncer.invoke();\n }", "function changeFunction() {\n\tconsole.log(\"onchange\");\n}", "_propagateChange() {\n if (!this._isSelect) {\n // If original element is an input element\n this.element.value = this.value;\n } else {\n // If original element is a select element\n Array.from(this.element.options).forEach(option => {\n option.setAttribute('selected', undefined);\n option.selected = false;\n \n // If option has been added by TagsInput then we remove it\n // Otherwise it is an original option\n if (typeof option.dataset.source !== 'undefined') {\n option.remove();\n }\n });\n \n // Update original element options selected attributes\n this.items.forEach(item => {\n this._updateSelectOptions({\n value: this._objectItems ? item[this.options.itemValue] : item,\n text: this._objectItems ? item[this.options.itemText] : item\n });\n });\n }\n \n // Trigger Change event manually (because original input is now hidden)\n // Trick: Passes current class constructor name to prevent loop with _onOriginalInputChange handler)\n const changeEvent = new CustomEvent('change', {\n 'detail': this.constructor.name\n });\n this.element.dispatchEvent(changeEvent);\n }", "function valueChanged() {\n debug && console.log( \"ManageWorkOrderRepairDetails: value changed\" );\n JSONData.setUnsavedChanges( true, \"manageWorkOrderSave\" );\n }", "function onChangeHandler(e) {\n\n }", "function onChangeHandler(e) {\n\n }", "attributeChangedCallback(name,old,value){if(old!==value){this._attributeToProperty(name,value);}}", "static _valueHasChanged(e,t,n=notEqual){return n(e,t)}", "function v(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "addChangeListener(callback) {\n this.on('change', callback);\n }", "_codemirrorValueChanged() {\n // Don't trigger change event if we're ignoring changes\n if (this._ignoreNextChange || !this.props.onChange) {\n this._ignoreNextChange = false;\n return;\n }\n\n const value = this.codeMirror.getDoc().getValue();\n\n // Disable linting if the document reaches a maximum size or is empty\n const shouldLint =\n value.length > MAX_SIZE_FOR_LINTING || value.length === 0 ? false : !this.props.noLint;\n const existingLint = this.codeMirror.options.lint || false;\n if (shouldLint !== existingLint) {\n const { lintOptions } = this.props;\n const lint = shouldLint ? lintOptions || true : false;\n this.codeMirror.setOption('lint', lint);\n }\n\n this.props.onChange(value);\n }", "propertyChangedHandler(key, oldValue, value) {\n super.propertyChangedHandler(key, oldValue, value);\n\n const that = this,\n input = that.$.input;\n\n function handleLeadingZeros() {\n if (that._initialDropDownOptionsSet === true) {\n that._setDropDownOptions();\n }\n\n if (that._radixNumber === 2 || that._radixNumber === 16) {\n that._cachedInputValue = that._number.toString(that._radixNumber, that._wordLengthNumber, that.leadingZeros);\n that._editableValue = that._cachedInputValue;\n that.$.input.value = that._cachedInputValue;\n }\n }\n\n // eslint-disable-next-line\n if (value != oldValue) {\n switch (key) {\n case 'disabled':\n that._setFocusable();\n\n if (value === true) {\n that.$.upButton.disabled = true;\n that.$.downButton.disabled = true;\n }\n else {\n that._disableComponents();\n }\n\n break;\n case 'dropDownAppendTo':\n that._positionDetection.dropDownAppendToChangedHandler();\n break;\n case 'unfocusable':\n that._setFocusable();\n break;\n case 'enableMouseWheelAction':\n case 'placeholder':\n case 'readonly':\n case 'spinButtonsDelay':\n case 'spinButtonsInitialDelay':\n break;\n case 'value': {\n if (value === '' && oldValue === null) {\n return;\n }\n\n if (value === null || value === '' || oldValue === null) {\n that.value = oldValue;\n that._triggerChangeEvent = that.validation === 'strict';\n that._validate(false, value);\n that._triggerChangeEvent = false;\n that._programmaticValueIsSet = true;\n return;\n }\n\n const stringValue = value.toString(),\n stringOldValue = oldValue.toString();\n\n if (stringOldValue !== stringValue) {\n if (stringOldValue.toUpperCase() === stringValue.toUpperCase()) {\n that.value = oldValue;\n }\n\n that.value = oldValue;\n that._triggerChangeEvent = that.validation === 'strict';\n that._validate(false, stringValue);\n that._triggerChangeEvent = false;\n that._programmaticValueIsSet = true;\n }\n break;\n }\n case 'radix':\n if (that.inputFormat === 'integer') {\n that._changeRadix(value);\n }\n else {\n that.error(that.localize('integerOnly', { property: 'radix' }));\n }\n break;\n case 'leadingZeros':\n if (that.inputFormat === 'integer' && that._number !== null) {\n handleLeadingZeros();\n }\n\n break;\n case 'min':\n case 'max': {\n if (value !== null) {\n that[`_${key}IsNull`] = false;\n }\n that._numericProcessor.validateMinMax(key === 'min', key === 'max');\n\n if (that.validation === 'strict') {\n that._triggerChangeEvent = true;\n that._validate(false, that.value);\n that._triggerChangeEvent = false;\n }\n else if (that._regexSpecial.nonNumericValue.test(that.value) === false) {\n const numberToValidate = that._numericProcessor.createDescriptor(that._number),\n validValue = that._validateRange(numberToValidate);\n\n if (that._numericProcessor.compare(that.value, validValue) === true) {\n that._programmaticValueIsSet = true;\n }\n }\n break;\n }\n case 'opened':\n if (value) {\n if (that.dropDownEnabled && !that.disabled && that.value !== null) {\n that._openRadix();\n }\n else {\n that.opened = false;\n }\n }\n else {\n that._closeRadix();\n }\n break;\n case 'outputFormatString':\n if (value) {\n that._cachedInputValue = that._numberRenderer.formatNumber(that._number, value);\n that.$.input.value = that._cachedInputValue;\n }\n else {\n that._cachedInputValue = that._editableValue;\n that.$.input.value = that._editableValue;\n }\n\n break;\n case 'dropDownEnabled':\n if (value) {\n if (that.inputFormat !== 'integer') {\n that.error(that.localize('integerOnly', { property: 'dropDownEnabled' }));\n }\n\n if (that._initialDropDownOptionsSet === true) {\n that._setDropDownOptions();\n }\n }\n else if (that.opened) {\n that._closeRadix(true);\n }\n break;\n case 'spinButtons':\n if (value) {\n that.$spinButtonsContainer.removeClass('jqx-hidden');\n }\n else {\n that.$spinButtonsContainer.addClass('jqx-hidden');\n }\n that._refreshShape();\n break;\n case 'spinButtonsStep':\n that._updateSpinButtonsStepObject();\n break;\n case 'significantDigits':\n case 'precisionDigits': {\n if (key === 'precisionDigits' && that.inputFormat === 'integer') {\n that.error(that.localize('noInteger', { property: key }));\n }\n\n if (key === 'significantDigits' && that.precisionDigits !== null) {\n that.precisionDigits = null;\n }\n else if (key === 'precisionDigits' && that.significantDigits !== null) {\n that.significantDigits = null;\n }\n\n if (that._regexSpecial.nonNumericValue.test(that.value) === false) {\n const renderedValue = that._renderValue(that._number);\n\n input.value = renderedValue;\n }\n\n break;\n }\n case 'decimalSeparator': {\n that._numberRenderer.localizationObject.decimalseparator = that.decimalSeparator;\n\n const numericValue = that._discardDecimalSeparator(input.value, oldValue),\n valueWithNewSeparator = that._applyDecimalSeparator(numericValue),\n editableValueWithNewSeparator = that._applyDecimalSeparator(that._discardDecimalSeparator(that._editableValue, oldValue));\n\n input.value = valueWithNewSeparator;\n that._editableValue = editableValueWithNewSeparator;\n break;\n }\n case 'spinButtonsPosition':\n if (value === 'left') {\n that.$.container.insertBefore(that.$.spinButtonsContainer, that.$.label.nextElementSibling);\n }\n else {\n that.$.container.insertBefore(that.$.spinButtonsContainer, that.$.dropDown);\n }\n\n that._refreshShape();\n break;\n case 'wordLength':\n that._wordLengthNumber = that._numericProcessor.getWordLength(value);\n\n if (that.inputFormat === 'integer') {\n that._numericProcessor.validateMinMax(true, true);\n\n if (that._number !== null) {\n let validValue = that._validateRange(new JQX.Utilities.BigNumber(that._number));\n\n that._updateValue(validValue);\n\n if (that.leadingZeros) {\n handleLeadingZeros();\n }\n }\n }\n break;\n case 'radixDisplay':\n if (value) {\n if (that.inputFormat !== 'integer') {\n that.error(that.localize('integerOnly', { property: 'radixDisplay' }));\n }\n\n that.$radixDisplayButton.removeClass('jqx-hidden');\n }\n else {\n that.$radixDisplayButton.addClass('jqx-hidden');\n }\n that._refreshShape();\n break;\n case 'radixDisplayPosition':\n if (value === 'left') {\n that.$.container.insertBefore(that.$.radixDisplayButton, that.$.input);\n }\n else {\n that.$.container.insertBefore(that.$.radixDisplayButton, that.$.unitDisplay.nextElementSibling);\n }\n\n that._refreshShape();\n break;\n case 'inputFormat':\n that._changeInputFormat(oldValue, value);\n break;\n case 'showUnit':\n if (value) {\n that.$unitDisplay.removeClass('jqx-hidden');\n }\n else {\n that.$unitDisplay.addClass('jqx-hidden');\n }\n that._refreshShape();\n break;\n case 'unit':\n that.$.unitDisplay.innerHTML = value;\n break;\n case 'scientificNotation': {\n if (that._regexSpecial.nonNumericValue.test(that.value) === false) {\n const renderedValue = that._renderValue(that._number);\n input.value = renderedValue;\n }\n\n break;\n }\n case 'locale':\n case 'messages':\n that._initialDropDownOptionsSet = false;\n break;\n case 'nullable':\n if (oldValue === true && that.value === null) {\n that._validate(false, '0');\n }\n\n break;\n case 'validation':\n if (value === 'strict') {\n that._triggerChangeEvent = true;\n that._validate(false, that.value);\n that._triggerChangeEvent = false;\n }\n\n break;\n }\n }\n else if (typeof value !== 'string' && typeof oldValue === 'string') {\n that[key] = oldValue;\n }\n that._cachedInputValue = input.value;\n }", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function l(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "attributeChangedCallback(name,old,value){if(old!==value){this._attributeToProperty(name,value)}}", "onChange(callback) {\n this.events.change.push({ callback });\n }", "function checkChangedValue() {\n var elt = $(this);\n if (!isNoteChanged() || elt.val() != elt.data('initial-value')) {\n\thandleNoteChanged(true);\n }\n}", "selectedIndexChanged(prev, next) {\n super.selectedIndexChanged(prev, next);\n this.updateValue();\n }", "handleExternalChange(propertyName, value, formattedValue) {\n this.lockService.updateCharacteristic(plugin_1.Characteristic.LockTargetState, this.getDeviceCurrentStateAsHK());\n this.lockService.updateCharacteristic(plugin_1.Characteristic.LockCurrentState, this.getDeviceCurrentStateAsHK());\n }", "initialValueChanged(previous, next) {\n // If the value is clean and the component is connected to the DOM\n // then set value equal to the attribute value.\n if (!this.dirtyValue) {\n this.value = this.initialValue;\n this.dirtyValue = false;\n }\n }", "function waitForChangeEvents() {\n clock.tick(Field.DELAYED_CHANGE_FREQUENCY + Field.CHANGE_FREQUENCY);\n}", "handleChange (event) {\n }", "function fieldChanged(type, name, linenum)\r\n{\r\n\t/* On field changed:\r\n\t - PURPOSE\r\n\t FIELDS USED:\r\n\t --Field Name--\t\t\t\t--ID--\r\n\t */\r\n\t// LOCAL VARIABLES\r\n\t\r\n\t\r\n\t// FIELD CHANGED CODE BODY\r\n\r\n}", "onChange() {\n this.validate();\n this.triggerContextUpdate();\n }", "_onChangeEvent(event) {\n // We always have to stop propagation on the change event.\n // Otherwise the change event, from the input element, will bubble up and\n // emit its event object to the component's `change` output.\n event.stopPropagation();\n this.toggleChange.emit();\n // When the slide toggle's config disables toggle change event by setting\n // `disableToggleValue: true`, the slide toggle's value does not change, and the\n // checked state of the underlying input needs to be changed back.\n if (this.defaults.disableToggleValue) {\n this._inputElement.nativeElement.checked = this.checked;\n return;\n }\n // Sync the value from the underlying input element with the component instance.\n this.checked = this._inputElement.nativeElement.checked;\n // Emit our custom change event only if the underlying input emitted one. This ensures that\n // there is no change event, when the checked state changes programmatically.\n this._emitChangeEvent();\n }" ]
[ "0.79979867", "0.79979867", "0.7394063", "0.71244186", "0.712134", "0.696543", "0.69208336", "0.6911699", "0.68549484", "0.6852987", "0.6852832", "0.6847706", "0.6826507", "0.68111897", "0.6745635", "0.6742414", "0.6727392", "0.6717367", "0.6686759", "0.66838634", "0.66737986", "0.66692454", "0.66543514", "0.6609089", "0.6603032", "0.6580186", "0.6573421", "0.6560168", "0.65538526", "0.6539357", "0.6538576", "0.6520058", "0.6520058", "0.6501258", "0.64973307", "0.6477431", "0.64745736", "0.64713603", "0.64709955", "0.64667845", "0.6466416", "0.6464607", "0.6457192", "0.6449287", "0.644545", "0.64361763", "0.64352036", "0.64329195", "0.6431175", "0.64301187", "0.64181465", "0.641309", "0.6412952", "0.6403673", "0.63998693", "0.63998693", "0.6399234", "0.63928735", "0.63754874", "0.6374932", "0.6368678", "0.6355955", "0.63437635", "0.63417906", "0.63417906", "0.6339572", "0.63288254", "0.6328582", "0.6318237", "0.63082236", "0.63016945", "0.6290714", "0.62778693", "0.6272423", "0.6270673", "0.6270673", "0.6262238", "0.62436813", "0.6242759", "0.62364995", "0.62355417", "0.6232888", "0.6207519", "0.6207519", "0.6207519", "0.6207519", "0.6207519", "0.6207519", "0.6207519", "0.6207519", "0.62013644", "0.62013465", "0.61960846", "0.619562", "0.6193932", "0.6192355", "0.6178441", "0.616496", "0.6163664", "0.61628693", "0.61489624" ]
0.0
-1
Apply a change to a document, and add it to the document's history, and propagating it to all linked documents.
function makeChange(doc, change, ignoreReadOnly) { if (doc.cm) { if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) } if (doc.cm.state.suppressEdits) { return } } if (hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange")) { change = filterChange(doc, change, true); if (!change) { return } } // Possibly split or suppress the update based on the presence // of read-only spans in its range. var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to); if (split) { for (var i = split.length - 1; i >= 0; --i) { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [""] : change.text, origin: change.origin}); } } else { makeChangeInner(doc, change); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "apply(doc) {\n if (this.length != doc.length)\n throw new RangeError(\"Applying change set to a document with the wrong length\");\n iterChanges(this, (fromA, toA, fromB, _toB, text) => doc = doc.replace(fromB, fromB + (toA - fromA), text), false);\n return doc;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\r\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\r\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\r\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\r\n return histChange\r\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\r\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\r\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\r\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\r\n return histChange;\r\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)}\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1)\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true)\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)}\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1)\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true)\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n\t\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t\t linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n\t\t return histChange\n\t\t }", "function historyChangeFromChange(doc, change) {\n\t\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t\t return histChange;\n\t\t }", "function historyChangeFromChange(doc, change) {\n\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t return histChange;\n\t }", "function historyChangeFromChange(doc, change) {\n\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t return histChange;\n\t }", "function historyChangeFromChange(doc, change) {\n\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t return histChange;\n\t }", "function addChangeToHistory(doc, change, selAfter, opId) {\n\t\t var hist = doc.history;\n\t\t hist.undone.length = 0;\n\t\t var time = +new Date, cur;\n\t\t\n\t\t if ((hist.lastOp == opId ||\n\t\t hist.lastOrigin == change.origin && change.origin &&\n\t\t ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n\t\t change.origin.charAt(0) == \"*\")) &&\n\t\t (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n\t\t // Merge this change into the last event\n\t\t var last = lst(cur.changes);\n\t\t if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n\t\t // Optimized case for simple insertion -- don't want to add\n\t\t // new changesets for every character typed\n\t\t last.to = changeEnd(change);\n\t\t } else {\n\t\t // Add new sub-event\n\t\t cur.changes.push(historyChangeFromChange(doc, change));\n\t\t }\n\t\t } else {\n\t\t // Can not be merged, start a new event.\n\t\t var before = lst(hist.done);\n\t\t if (!before || !before.ranges)\n\t\t pushSelectionToHistory(doc.sel, hist.done);\n\t\t cur = {changes: [historyChangeFromChange(doc, change)],\n\t\t generation: hist.generation};\n\t\t hist.done.push(cur);\n\t\t while (hist.done.length > hist.undoDepth) {\n\t\t hist.done.shift();\n\t\t if (!hist.done[0].ranges) hist.done.shift();\n\t\t }\n\t\t }\n\t\t hist.done.push(selAfter);\n\t\t hist.generation = ++hist.maxGeneration;\n\t\t hist.lastModTime = hist.lastSelTime = time;\n\t\t hist.lastOp = hist.lastSelOp = opId;\n\t\t hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\t\t\n\t\t if (!last) signal(doc, \"historyAdded\");\n\t\t }", "function addChangeToHistory(doc, change, selAfter, opId) {\n\t\t var hist = doc.history;\n\t\t hist.undone.length = 0;\n\t\t var time = +new Date, cur;\n\t\t var last;\n\n\t\t if ((hist.lastOp == opId ||\n\t\t hist.lastOrigin == change.origin && change.origin &&\n\t\t ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n\t\t change.origin.charAt(0) == \"*\")) &&\n\t\t (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n\t\t // Merge this change into the last event\n\t\t last = lst(cur.changes);\n\t\t if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n\t\t // Optimized case for simple insertion -- don't want to add\n\t\t // new changesets for every character typed\n\t\t last.to = changeEnd(change);\n\t\t } else {\n\t\t // Add new sub-event\n\t\t cur.changes.push(historyChangeFromChange(doc, change));\n\t\t }\n\t\t } else {\n\t\t // Can not be merged, start a new event.\n\t\t var before = lst(hist.done);\n\t\t if (!before || !before.ranges)\n\t\t { pushSelectionToHistory(doc.sel, hist.done); }\n\t\t cur = {changes: [historyChangeFromChange(doc, change)],\n\t\t generation: hist.generation};\n\t\t hist.done.push(cur);\n\t\t while (hist.done.length > hist.undoDepth) {\n\t\t hist.done.shift();\n\t\t if (!hist.done[0].ranges) { hist.done.shift(); }\n\t\t }\n\t\t }\n\t\t hist.done.push(selAfter);\n\t\t hist.generation = ++hist.maxGeneration;\n\t\t hist.lastModTime = hist.lastSelTime = time;\n\t\t hist.lastOp = hist.lastSelOp = opId;\n\t\t hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n\t\t if (!last) { signal(doc, \"historyAdded\"); }\n\t\t }", "function addChangeToHistory(doc, change, selAfter, opId) {\n\t var hist = doc.history;\n\t hist.undone.length = 0;\n\t var time = +new Date, cur;\n\t\n\t if ((hist.lastOp == opId ||\n\t hist.lastOrigin == change.origin && change.origin &&\n\t ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n\t change.origin.charAt(0) == \"*\")) &&\n\t (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n\t // Merge this change into the last event\n\t var last = lst(cur.changes);\n\t if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n\t // Optimized case for simple insertion -- don't want to add\n\t // new changesets for every character typed\n\t last.to = changeEnd(change);\n\t } else {\n\t // Add new sub-event\n\t cur.changes.push(historyChangeFromChange(doc, change));\n\t }\n\t } else {\n\t // Can not be merged, start a new event.\n\t var before = lst(hist.done);\n\t if (!before || !before.ranges)\n\t pushSelectionToHistory(doc.sel, hist.done);\n\t cur = {changes: [historyChangeFromChange(doc, change)],\n\t generation: hist.generation};\n\t hist.done.push(cur);\n\t while (hist.done.length > hist.undoDepth) {\n\t hist.done.shift();\n\t if (!hist.done[0].ranges) hist.done.shift();\n\t }\n\t }\n\t hist.done.push(selAfter);\n\t hist.generation = ++hist.maxGeneration;\n\t hist.lastModTime = hist.lastSelTime = time;\n\t hist.lastOp = hist.lastSelOp = opId;\n\t hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\t\n\t if (!last) signal(doc, \"historyAdded\");\n\t }", "function addChangeToHistory(doc, change, selAfter, opId) {\n\t var hist = doc.history;\n\t hist.undone.length = 0;\n\t var time = +new Date, cur;\n\n\t if ((hist.lastOp == opId ||\n\t hist.lastOrigin == change.origin && change.origin &&\n\t ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n\t change.origin.charAt(0) == \"*\")) &&\n\t (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n\t // Merge this change into the last event\n\t var last = lst(cur.changes);\n\t if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n\t // Optimized case for simple insertion -- don't want to add\n\t // new changesets for every character typed\n\t last.to = changeEnd(change);\n\t } else {\n\t // Add new sub-event\n\t cur.changes.push(historyChangeFromChange(doc, change));\n\t }\n\t } else {\n\t // Can not be merged, start a new event.\n\t var before = lst(hist.done);\n\t if (!before || !before.ranges)\n\t pushSelectionToHistory(doc.sel, hist.done);\n\t cur = {changes: [historyChangeFromChange(doc, change)],\n\t generation: hist.generation};\n\t hist.done.push(cur);\n\t while (hist.done.length > hist.undoDepth) {\n\t hist.done.shift();\n\t if (!hist.done[0].ranges) hist.done.shift();\n\t }\n\t }\n\t hist.done.push(selAfter);\n\t hist.generation = ++hist.maxGeneration;\n\t hist.lastModTime = hist.lastSelTime = time;\n\t hist.lastOp = hist.lastSelOp = opId;\n\t hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n\t if (!last) signal(doc, \"historyAdded\");\n\t }", "function addChangeToHistory(doc, change, selAfter, opId) {\n\t var hist = doc.history;\n\t hist.undone.length = 0;\n\t var time = +new Date, cur;\n\n\t if ((hist.lastOp == opId ||\n\t hist.lastOrigin == change.origin && change.origin &&\n\t ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n\t change.origin.charAt(0) == \"*\")) &&\n\t (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n\t // Merge this change into the last event\n\t var last = lst(cur.changes);\n\t if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n\t // Optimized case for simple insertion -- don't want to add\n\t // new changesets for every character typed\n\t last.to = changeEnd(change);\n\t } else {\n\t // Add new sub-event\n\t cur.changes.push(historyChangeFromChange(doc, change));\n\t }\n\t } else {\n\t // Can not be merged, start a new event.\n\t var before = lst(hist.done);\n\t if (!before || !before.ranges)\n\t pushSelectionToHistory(doc.sel, hist.done);\n\t cur = {changes: [historyChangeFromChange(doc, change)],\n\t generation: hist.generation};\n\t hist.done.push(cur);\n\t while (hist.done.length > hist.undoDepth) {\n\t hist.done.shift();\n\t if (!hist.done[0].ranges) hist.done.shift();\n\t }\n\t }\n\t hist.done.push(selAfter);\n\t hist.generation = ++hist.maxGeneration;\n\t hist.lastModTime = hist.lastSelTime = time;\n\t hist.lastOp = hist.lastSelOp = opId;\n\t hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n\t if (!last) signal(doc, \"historyAdded\");\n\t }", "function addChangeToHistory(doc, change, selAfter, opId) {\r\n var hist = doc.history;\r\n hist.undone.length = 0;\r\n var time = +new Date, cur;\r\n var last;\r\n\r\n if ((hist.lastOp == opId ||\r\n hist.lastOrigin == change.origin && change.origin &&\r\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\r\n change.origin.charAt(0) == \"*\")) &&\r\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\r\n // Merge this change into the last event\r\n last = lst(cur.changes);\r\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\r\n // Optimized case for simple insertion -- don't want to add\r\n // new changesets for every character typed\r\n last.to = changeEnd(change);\r\n } else {\r\n // Add new sub-event\r\n cur.changes.push(historyChangeFromChange(doc, change));\r\n }\r\n } else {\r\n // Can not be merged, start a new event.\r\n var before = lst(hist.done);\r\n if (!before || !before.ranges)\r\n { pushSelectionToHistory(doc.sel, hist.done); }\r\n cur = {changes: [historyChangeFromChange(doc, change)],\r\n generation: hist.generation};\r\n hist.done.push(cur);\r\n while (hist.done.length > hist.undoDepth) {\r\n hist.done.shift();\r\n if (!hist.done[0].ranges) { hist.done.shift(); }\r\n }\r\n }\r\n hist.done.push(selAfter);\r\n hist.generation = ++hist.maxGeneration;\r\n hist.lastModTime = hist.lastSelTime = time;\r\n hist.lastOp = hist.lastSelOp = opId;\r\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\r\n\r\n if (!last) { signal(doc, \"historyAdded\"); }\r\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history\n hist.undone.length = 0\n var time = +new Date, cur\n var last\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes)\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change)\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change))\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done)\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done) }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation}\n hist.done.push(cur)\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift()\n if (!hist.done[0].ranges) { hist.done.shift() }\n }\n }\n hist.done.push(selAfter)\n hist.generation = ++hist.maxGeneration\n hist.lastModTime = hist.lastSelTime = time\n hist.lastOp = hist.lastSelOp = opId\n hist.lastOrigin = hist.lastSelOrigin = change.origin\n\n if (!last) { signal(doc, \"historyAdded\") }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history\n hist.undone.length = 0\n var time = +new Date, cur\n var last\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes)\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change)\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change))\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done)\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done) }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation}\n hist.done.push(cur)\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift()\n if (!hist.done[0].ranges) { hist.done.shift() }\n }\n }\n hist.done.push(selAfter)\n hist.generation = ++hist.maxGeneration\n hist.lastModTime = hist.lastSelTime = time\n hist.lastOp = hist.lastSelOp = opId\n hist.lastOrigin = hist.lastSelOrigin = change.origin\n\n if (!last) { signal(doc, \"historyAdded\") }\n}", "_rebaseChange(args, cb) {\n this.documentEngine.getChanges({\n documentId: args.documentId,\n sinceVersion: args.version\n }, function(err, result) {\n let B = result.changes.map(this.deserializeChange)\n let a = this.deserializeChange(args.change)\n // transform changes\n DocumentChange.transformInplace(a, B)\n let ops = B.reduce(function(ops, change) {\n return ops.concat(change.ops)\n }, [])\n let serverChange = new DocumentChange(ops, {}, {})\n\n cb(null, {\n change: this.serializeChange(a),\n serverChange: this.serializeChange(serverChange),\n version: result.version\n })\n }.bind(this))\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n}", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n var last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n pushSelectionToHistory(doc.sel, hist.done);\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) hist.done.shift();\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) signal(doc, \"historyAdded\");\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n var last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n pushSelectionToHistory(doc.sel, hist.done);\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) hist.done.shift();\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) signal(doc, \"historyAdded\");\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n var last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n pushSelectionToHistory(doc.sel, hist.done);\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) hist.done.shift();\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) signal(doc, \"historyAdded\");\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n var last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n pushSelectionToHistory(doc.sel, hist.done);\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) hist.done.shift();\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) signal(doc, \"historyAdded\");\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n var last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n pushSelectionToHistory(doc.sel, hist.done);\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) hist.done.shift();\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) signal(doc, \"historyAdded\");\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n var last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n pushSelectionToHistory(doc.sel, hist.done);\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) hist.done.shift();\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) signal(doc, \"historyAdded\");\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n var last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n pushSelectionToHistory(doc.sel, hist.done);\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) hist.done.shift();\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) signal(doc, \"historyAdded\");\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date(),\n cur;\n var last;\n\n if ((hist.lastOp == opId || hist.lastOrigin == change.origin && change.origin && (change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500) || change.origin.charAt(0) == \"*\")) && (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n\n if (!before || !before.ranges) {\n pushSelectionToHistory(doc.sel, hist.done);\n }\n\n cur = {\n changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation\n };\n hist.done.push(cur);\n\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n\n if (!hist.done[0].ranges) {\n hist.done.shift();\n }\n }\n }\n\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) {\n signal(doc, \"historyAdded\");\n }\n }", "change(docId, doc) {\n const cleanedDoc = this._getCleanedObject(doc);\n let storedDoc = this.store[docId];\n deepExtend(storedDoc, cleanedDoc);\n\n let changedData = {};\n _.each(cleanedDoc, (value, key) => {\n changedData[key] = storedDoc[key];\n });\n\n this.send('changed', docId, changedData);\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }", "function addChangeToHistory(doc, change, selAfter, opId) {\r\n var hist = doc.history;\r\n hist.undone.length = 0;\r\n var time = +new Date, cur;\r\n\r\n if ((hist.lastOp == opId ||\r\n hist.lastOrigin == change.origin && change.origin &&\r\n ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\r\n change.origin.charAt(0) == \"*\")) &&\r\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\r\n // Merge this change into the last event\r\n var last = lst(cur.changes);\r\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\r\n // Optimized case for simple insertion -- don't want to add\r\n // new changesets for every character typed\r\n last.to = changeEnd(change);\r\n } else {\r\n // Add new sub-event\r\n cur.changes.push(historyChangeFromChange(doc, change));\r\n }\r\n } else {\r\n // Can not be merged, start a new event.\r\n var before = lst(hist.done);\r\n if (!before || !before.ranges)\r\n pushSelectionToHistory(doc.sel, hist.done);\r\n cur = {changes: [historyChangeFromChange(doc, change)],\r\n generation: hist.generation};\r\n hist.done.push(cur);\r\n while (hist.done.length > hist.undoDepth) {\r\n hist.done.shift();\r\n if (!hist.done[0].ranges) hist.done.shift();\r\n }\r\n }\r\n hist.done.push(selAfter);\r\n hist.generation = ++hist.maxGeneration;\r\n hist.lastModTime = hist.lastSelTime = time;\r\n hist.lastOp = hist.lastSelOp = opId;\r\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\r\n\r\n if (!last) signal(doc, \"historyAdded\");\r\n }", "sendDocumentState(){\n var document = this.revisionHistory[0];\n\n for(var index = 1; index < this.revisionHistory.length; index++){\n document = merge(document, this.revisionHistory[index]);\n }\n\n return document;\n }", "adoptedCallback(oldDocument, newDocument) {\r\n console.log(`adoptedCallback ${oldDocument} ${newDocument}`)\r\n }", "function Ir(e,t,a){var n=e.cm&&e.cm.state.suppressEdits;if(!n||a){for(var r,f=e.history,o=e.sel,i=\"undo\"==t?f.done:f.undone,s=\"undo\"==t?f.undone:f.done,c=0;c<i.length&&(r=i[c],a?!r.ranges||r.equals(e.sel):r.ranges);c++);if(c!=i.length){for(f.lastOrigin=f.lastSelOrigin=null;;){if(r=i.pop(),!r.ranges){if(n)return void i.push(r);break}if(sr(r,s),a&&!r.equals(e.sel))return void wr(e,r,{clearRedo:!1});o=r}\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var u=[];sr(o,s),s.push({changes:u,generation:f.generation}),f.generation=r.generation||++f.maxGeneration;for(var l=Oe(e,\"beforeChange\")||e.cm&&Oe(e.cm,\"beforeChange\"),_=r.changes.length-1;_>=0;--_){var m=function(a){var n=r.changes[a];if(n.origin=t,l&&!Or(e,n,!1))return i.length=0,{};u.push(ar(e,n));var f=a?Hn(e,n):p(i);Rr(e,n,f,dr(e,n)),!a&&e.cm&&e.cm.scrollIntoView({from:n.from,to:qn(n)});var o=[];\n // Propagate to the linked documents\n Xn(e,function(e,t){t||-1!=d(o,e.history)||(Gr(e.history,n),o.push(e.history)),Rr(e,n,null,dr(e,n))})}(_);if(m)return m.v}}}}", "adoptedCallback(oldDocument, newDocument) {\n console.log(`adoptedCallback ${oldDocument} ${newDocument}`)\n }", "async updateDocument(ctx, documentId, newValue) {\n const exists = await this.documentExists(ctx, documentId);\n if (!exists) {\n throw new Error(`The document ${documentId} does not exist`);\n }\n const asset = { value: newValue };\n const buffer = Buffer.from(JSON.stringify(asset));\n await ctx.stub.putState(documentId, buffer);\n }", "function histTransaction(history, state, dispatch, redo) {\n var preserveItems = mustPreserveItems(state), histOptions = historyKey.get(state).spec.config;\n var pop = (redo ? history.undone : history.done).popEvent(state, preserveItems);\n if (!pop) { return }\n\n var selection = pop.selection.resolve(pop.transform.doc);\n var added = (redo ? history.done : history.undone).addTransform(pop.transform, state.selection.getBookmark(),\n histOptions, preserveItems);\n\n var newHist = new HistoryState(redo ? added : pop.remaining, redo ? pop.remaining : added, null, 0);\n dispatch(pop.transform.setSelection(selection).setMeta(historyKey, {redo: redo, historyState: newHist}).scrollIntoView());\n}", "adoptedCallback(oldDocument, newDocument) {\n\t\tsuper.adoptedCallback(oldDocument, newDocument)\n\t}", "function update(document, changes, version) {\n if (document instanceof FullTextDocument) {\n document.update(changes, version);\n return document;\n }\n else {\n throw new Error('TextDocument.update: document must be created by TextDocument.create');\n }\n }", "function linkedDocs(doc, f, sharedHistOnly) {\n\t\t function propagate(doc, skip, sharedHist) {\n\t\t if (doc.linked) for (var i = 0; i < doc.linked.length; ++i) {\n\t\t var rel = doc.linked[i];\n\t\t if (rel.doc == skip) continue;\n\t\t var shared = sharedHist && rel.sharedHist;\n\t\t if (sharedHistOnly && !shared) continue;\n\t\t f(rel.doc, shared);\n\t\t propagate(rel.doc, doc, shared);\n\t\t }\n\t\t }\n\t\t propagate(doc, null, true);\n\t\t }" ]
[ "0.63611466", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6288531", "0.6286658", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.6273469", "0.62331194", "0.6225548", "0.6225548", "0.6225548", "0.6225548", "0.6225548", "0.6225548", "0.6225548", "0.62220544", "0.62220544", "0.6156883", "0.61443883", "0.61017555", "0.61017555", "0.61017555", "0.57771146", "0.5710579", "0.5670123", "0.5639443", "0.5639443", "0.56257623", "0.5623061", "0.5623061", "0.5623061", "0.5623061", "0.5623061", "0.5621253", "0.5621253", "0.56188697", "0.5616762", "0.5616762", "0.5616762", "0.5616762", "0.5616762", "0.5616762", "0.5612168", "0.56073713", "0.56073713", "0.56073713", "0.56073713", "0.56073713", "0.56073713", "0.55917275", "0.55914927", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55889267", "0.55658704", "0.5550301", "0.5324671", "0.53165203", "0.53047836", "0.5253267", "0.5245057", "0.5225014", "0.5205979", "0.52033544" ]
0.0
-1
Revert a change stored in a document's history.
function makeChangeFromHistory(doc, type, allowSelectionOnly) { var suppress = doc.cm && doc.cm.state.suppressEdits; if (suppress && !allowSelectionOnly) { return } var hist = doc.history, event, selAfter = doc.sel; var source = type == "undo" ? hist.done : hist.undone, dest = type == "undo" ? hist.undone : hist.done; // Verify that there is a useable event (so that ctrl-z won't // needlessly clear selection events) var i = 0; for (; i < source.length; i++) { event = source[i]; if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges) { break } } if (i == source.length) { return } hist.lastOrigin = hist.lastSelOrigin = null; for (;;) { event = source.pop(); if (event.ranges) { pushSelectionToHistory(event, dest); if (allowSelectionOnly && !event.equals(doc.sel)) { setSelection(doc, event, {clearRedo: false}); return } selAfter = event; } else if (suppress) { source.push(event); return } else { break } } // Build up a reverse change object to add to the opposite history // stack (redo when undoing, and vice versa). var antiChanges = []; pushSelectionToHistory(selAfter, dest); dest.push({changes: antiChanges, generation: hist.generation}); hist.generation = event.generation || ++hist.maxGeneration; var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange"); var loop = function ( i ) { var change = event.changes[i]; change.origin = type; if (filter && !filterChange(doc, change, false)) { source.length = 0; return {} } antiChanges.push(historyChangeFromChange(doc, change)); var after = i ? computeSelAfterChange(doc, change) : lst(source); makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change)); if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); } var rebased = []; // Propagate to the linked documents linkedDocs(doc, function (doc, sharedHist) { if (!sharedHist && indexOf(rebased, doc.history) == -1) { rebaseHist(doc.history, change); rebased.push(doc.history); } makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change)); }); }; for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) { var returned = loop( i$1 ); if ( returned ) return returned.v; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function undo() {\n var doc = app.activeDocument;\n var states = doc.historyStates;\n \n var curr = 0;\n for (var i=0; i<states.length; i++) {\n if (states[i] == doc.activeHistoryState) {\n curr = i;\n }\n }\n \n var prev = curr - 1;\n if (prev >= 0) {\n doc.activeHistoryState = states[prev];\n return true;\n } else {\n return false;\n }\n }", "function undoChange() {\n\n this.quill.history.undo();\n}", "revert() { }", "function undo (history) {\n debug('undo', {history})\n\n const { past, present, future } = history\n\n if (past.length <= 0) return history\n\n return {\n past: past.slice(0, past.length - 1), // remove last element from past\n present: past[past.length - 1], // set element as new present\n future: [\n present, // old present state is in the future now\n ...future\n ]\n }\n}", "RevertToPreviousState()\n {\n this.ChangeState(this.m_pPreviousState);\n }", "revertLastState() {\n // Make sure there is a history of state changes\n if (this._history.length > 0) {\n // Pop off the last state preserved in the history and set the current state equal to that\n this._state = this._history.pop();\n }\n // Since the state has changed, we have to emit those changes\n this._emitChange();\n }", "undo() {\n const cmd = this.history.pop();\n cmd.undo();\n }", "undo() {\n const cmd = this.history.pop();\n cmd.undo();\n }", "function undo(history) {\n\t debug('undo', { history: history });\n\n\t var past = history.past;\n\t var present = history.present;\n\t var future = history.future;\n\n\n\t if (past.length <= 0) return history;\n\n\t return {\n\t past: past.slice(0, past.length - 1), // remove last element from past\n\t present: past[past.length - 1], // set element as new present\n\t future: [present].concat(_toConsumableArray(future))\n\t };\n\t}", "function restorePrevious() {\n\t\t\tif (hasSnapshot()) {\n\t\t\t\tsnap.history.pop();\n\t\t\t\tdoRollback();\n\t\t\t}\n\t\t}", "undo () {\n if (this.editHistory.length === 0) return;\n\n let edit = reverseInput(this.editHistory.pop());\n this.edit(edit);\n this.redoStack.push(edit);\n }", "function revertChanges() {\n return manager.rejectChanges();\n }", "function undo(history) {\n const { past, future, _latestUnfiltered } = history;\n\n if (past.length <= 0) return history;\n\n const newFuture = _latestUnfiltered != null ? [_latestUnfiltered, ...future] : future;\n\n const newPresent = past[past.length - 1];\n\n return {\n ...newPresent,\n past: past.slice(0, past.length - 1),\n future: newFuture,\n _latestUnfiltered: newPresent\n };\n}", "undo() {\n if (this.owner.isReadOnlyMode || !this.canUndo() || !this.owner.enableHistoryMode) {\n return;\n }\n //this.owner.ClearTextSearchResults();\n let historyInfo = this.undoStack.pop();\n this.isUndoing = true;\n historyInfo.revert();\n this.isUndoing = false;\n this.owner.selection.checkForCursorVisibility();\n this.owner.editorModule.isBordersAndShadingDialog = false;\n }", "undo() {\n const command = this.history.pop();\n if (command) {\n command.undo();\n }\n }", "function undo() {\n\t\tif (actionHistory.length) {\n\t\t\tlet lastAction = actionHistory.pop(),\n\t\t\ttermId = lastAction[0], //indicates term moved\n\t\t\tsourceId = lastAction[1], //indicates where it was moved from\n\t\t\tdestinationId = lastAction[2]; //indicates where it was moved to\n\t\t\tvar term = $.get(termId);\n\n\t\t\tif (sourceId.includes(\"termsContainer\")) { //A->B\n\t\t\t\trestoreTerm(term);\n\t\t\t\t$.get(\"new_\"+termId).remove();\n\t\t\t}\n\t\t\telse if (destinationId.includes(\"termsContainer\")) { //B->A\n\t\t\t\t$.get(sourceId).appendChild(copyTerm(term));\n\t\t\t\thideTerm(term);\n\t\t\t}\n\t\t\telse //B -> B\n\t\t\t{\n\t\t\t\t$.get(sourceId).appendChild($.get(\"new_\"+termId));\n\t\t\t}\n\t\t}\n\t}", "@action undo() {\n if (this.args.onChange) {\n let that = this;\n let undoHistory = that.undoHistory.toArray();\n\n if (undoHistory.length === 0) {\n alert('No more steps to undo.');\n return false;\n }\n\n var restoreValue = undoHistory.pop();\n\n that.undoHistory = A(undoHistory);\n // that.updateValue();\n this.args.onChange(restoreValue);\n }\n }", "function voltarHistory()\n\t{\n\t\twindow.history.back();\n\t}", "function back() {\n if (history.length > 1) {\n setHistory(prev => prev.slice(0, prev.length - 1));\n }\n }", "function History_MoveBack()\n{\n\t//forward to move to index\n\tthis.MoveToIndex(this.CurrentStateIndex - 1);\n}", "undo() {\n if (this._history.length && this._historyIndex >= 0){\n this.commit(this._historyIndex - 1);\n } else {\n return false\n }\n }", "historyBack() {\n const fenCode = this.state.chessBoardHistory.back();\n console.log('back');\n console.log(this.state.chessBoardHistory);\n this.updateBoard(fenCode);\n }", "undo () {\n if (this.canUndo()) {\n const obj = this.history[this.index]\n if (obj) {\n const action = this.actions[obj.action]\n if (action && action.undo) {\n action.undo(obj.params)\n if (obj.params.oldSelection) {\n try {\n this.editor.setDomSelection(obj.params.oldSelection)\n } catch (err) {\n console.error(err)\n }\n }\n } else {\n console.error(new Error('unknown action \"' + obj.action + '\"'))\n }\n }\n this.index--\n\n // fire onchange event\n this.onChange()\n }\n }", "function undoChanges(){\n\t\t//Get the last change made\n\t\tlast = _.last(changes);\n\n\t\t//Based on its' time get the others\n\t\tlast_changes = _.where(changes, {time: last.time});\n\n\t\t//Undo the changes for each change\n\t\t_.each(last_changes, function(interval){\n\t\t\t//Put previous class\n\t\t\tchange(interval);\n\t\t});\n\n\t\t//Remove the last changes from the changes\n\t\tchanges = _.difference(changes, last_changes);\n\t}", "function back() {\n if (history.length > 1) {\n let update = [...history];\n update.pop();\n const newMode = update[update.length - 1]\n setMode(prev => prev = newMode)\n setHistory(prev =>prev =[...update])\n }\n }", "function back() {\n if (history.length > 1) {\n\n setMode(history[history.length - 2]);\n setHistory(prev => [...prev.slice(0, -1)]);\n }\n }", "function back() {\n if (history.length > 1) {\n const historyCopy = [...history];\n historyCopy.pop();\n setHistory(historyCopy);\n setMode(historyCopy[historyCopy.length - 1]); \n // remove end of array\n }\n }", "function redo (history) {\n debug('redo', {history})\n\n const { past, present, future } = history\n\n if (future.length <= 0) return history\n\n return {\n future: future.slice(1, future.length), // remove element from future\n present: future[0], // set element as new present\n past: [\n ...past,\n present // old present state is in the past now\n ]\n }\n}", "function undo(){\n _.last(lines).remove();\n lines.pop();\n}", "function undo() {\n\n // Only works if history is nonempty.\n if (history[0] != -1) {\n\n // Clears the topmost nonempty square of the column in which the most recent piece was played.\n for (var i = 0; (history[i] != -1 && i < 42); i++);\n document.getElementsByClassName(\"row\").item(bottoms[history[i - 1]] + 1)\n .getElementsByClassName(\"bigSquare\").item(history[i - 1])\n .style.backgroundColor = \"white\";\n\n // Updates things.\n didSomebodyWin = false;\n document.getElementById(\"instructions\").innerHTML =\n \"Click on a column to drop in a piece. Upcoming pieces are shown below.\";\n bottoms[history[i - 1]]++;\n currentTurn--;\n changeCounter();\n\n // Erases the most recent move from history.\n history[i - 1] = -1;\n\n // Un-comment to see the game history.\n // printHistory();\n }\n }", "revert() {\n lib.restore();\n }", "function _revertToPreviousContext() {\n if(!this.previousContext) {\n return this;\n }\n return this.previousContext.clone();\n }", "function Ir(e,t,a){var n=e.cm&&e.cm.state.suppressEdits;if(!n||a){for(var r,f=e.history,o=e.sel,i=\"undo\"==t?f.done:f.undone,s=\"undo\"==t?f.undone:f.done,c=0;c<i.length&&(r=i[c],a?!r.ranges||r.equals(e.sel):r.ranges);c++);if(c!=i.length){for(f.lastOrigin=f.lastSelOrigin=null;;){if(r=i.pop(),!r.ranges){if(n)return void i.push(r);break}if(sr(r,s),a&&!r.equals(e.sel))return void wr(e,r,{clearRedo:!1});o=r}\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var u=[];sr(o,s),s.push({changes:u,generation:f.generation}),f.generation=r.generation||++f.maxGeneration;for(var l=Oe(e,\"beforeChange\")||e.cm&&Oe(e.cm,\"beforeChange\"),_=r.changes.length-1;_>=0;--_){var m=function(a){var n=r.changes[a];if(n.origin=t,l&&!Or(e,n,!1))return i.length=0,{};u.push(ar(e,n));var f=a?Hn(e,n):p(i);Rr(e,n,f,dr(e,n)),!a&&e.cm&&e.cm.scrollIntoView({from:n.from,to:qn(n)});var o=[];\n // Propagate to the linked documents\n Xn(e,function(e,t){t||-1!=d(o,e.history)||(Gr(e.history,n),o.push(e.history)),Rr(e,n,null,dr(e,n))})}(_);if(m)return m.v}}}}", "function _revertToPreviousContext() {\n if (!this.previousContext) {\n return this;\n }\n return this.previousContext.clone();\n }", "function restoreHistory( delta ) {\n var p = historyPosition + delta;\n if ( delta === 0 || p < 0 || p >= changeHistory.length )\n return true;\n var state = changeHistory[p];\n\n self.mode.off();\n\n $(svgContainer).empty();\n $(state.svg).clone().appendTo(svgContainer);\n self.util.svgRoot = svgRoot = svgContainer.firstChild;\n self.util.mouseCoords = svgRoot.createSVGPoint();\n initDragpoint();\n $(svgRoot).click( removeEditings );\n\n if ( delta < 0 && p < changeHistory.length-1 )\n state = changeHistory[p+1];\n\n if ( state.panzoom ) {\n self.svgPanZoom( state.panzoom[0], state.panzoom[1], state.panzoom[2], state.panzoom[3] );\n boxX0 = state.panzoom[4];\n boxY0 = state.panzoom[5];\n boxW = state.panzoom[6];\n boxH = state.panzoom[7];\n svgRoot.setAttribute( 'viewBox', boxX0+' '+boxY0+' '+boxW+' '+boxH );\n }\n adjustSize();\n\n state.mode();\n if ( state.selected )\n $(state.selected).click();\n\n historyPosition += delta;\n\n for ( var n=0; n<self.cfg.onRestoreHistory.length; n++ )\n self.cfg.onRestoreHistory[n]();\n\n return false;\n }", "function undo() {\n\t\treturn this.past.list.pop()\n\t}", "function redo(history) {\n\t debug('redo', { history: history });\n\n\t var past = history.past;\n\t var present = history.present;\n\t var future = history.future;\n\n\n\t if (future.length <= 0) return history;\n\n\t return {\n\t future: future.slice(1, future.length), // remove element from future\n\t present: future[0], // set element as new present\n\t past: [].concat(_toConsumableArray(past), [present // old present state is in the past now\n\t ])\n\t };\n\t}", "function revertChanges() {\n if (typeof db.getItem(savedData) !== 'undefined' && db.getItem(savedData) !== 'undefined' && db.getItem(savedData) !== 'null' && db.getItem(savedData) != null && db.getItem(savedData) !== \"\") {\n mainP.innerHTML = db.getItem(savedData);\n //makeEditable();\n sanitizeItems();\n };\n }", "function voltar(){\n history.back();\n}", "function back() {\n setMode(history.pop());\n setHistory(history);\n }", "back() {\n var val = '';\n if (this._history.length > 0) {\n val = this._history[this._index];\n if (this._index > 0) {\n this._index--;\n }\n }\n return val;\n }", "function undo() {\r\n if (!gGame.isOn) return\r\n if (gMovesHistory.length === 0) return //possible to disable/enable during game\r\n var prevMove = gMovesHistory.pop();\r\n while (gMovesHistory.length > 0 && !prevMove.userClicked) {\r\n undoPrevMove(prevMove);\r\n prevMove = gMovesHistory.pop();\r\n }\r\n undoPrevMove(prevMove);\r\n}", "function historyChangeFromChange(doc, change) {\n\t\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t\t linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n\t\t return histChange\n\t\t }", "redoHistory() {\n if (!this.canRedo()) return;\n\n let entry = this.history[this.historyPointer+1];\n // converge\n this.doHistory(entry, false);\n //adjust pointer\n this.historyPointer++;\n }", "rollback(deltas = this._deltas) {\n var self = this._self;\n deltas.forEach(function(name, values) {\n var value = values[1];\n self[name] = value;\n });\n this._deltas = {};\n return (deltas);\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)}\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1)\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true)\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)}\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1)\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true)\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function undo() {\n updateFormula(function(text) {\n return text.slice(0, -1);\n });\n }", "function back() {\n if (history.length > 1) {\n setHistory(prev => {\n const newHistory = [...prev];\n newHistory.pop();\n setMode(newHistory[newHistory.length - 1]);\n return newHistory\n });\n }\n }", "function historyChangeFromChange(doc, change) {\n\t\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t\t return histChange;\n\t\t }", "function back() {\n history.pop();\n if (history.length >= 1) { setMode(history[history.length - 1]) }\n }", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function undo_Canvas_Change(){\n\t\t // Checks to see whether the we can go back one step\n\t\t if(canvasHistoryPointer >= 1){\n\t\t\t canvasHistoryPointer--;\n\t\t\t postCardCanvasContext.putImageData(canvasHistory[canvasHistoryPointer].image, 0, 0);\n\t\t }\n\t\t \n\t\t // If we can't go back any further then change the color of the undo button\n\t\t if(canvasHistoryPointer <= 0){\n\t\t\t // Button 0 - the Undo Button\n\t\t\t buttons[0].material.color.setHex(0x575757);\n\t\t\t buttons[1].material.color.setHex(0xffffff);\n\t\t }\n\t\t // Otherwise this means that we can can assume that now we have a space to go\n\t\t // forward. For this reason, new we'll set the button 1 (The redo button)\n\t\t // color back to normal\n\t\t else{\n\t\t\t buttons[0].material.color.setHex(0xffffff);\n\t\t\t buttons[1].material.color.setHex(0xffffff);\n\t\t }\n\t }", "revert() {\n this._cache = this._checkpoints.pop();\n }", "revert() {\n this.$autocompleteOutput.val('');\n this.$autocompleteOutput.attr('size', 1);\n\n this._updateState(AUTOCOMPLETE_STATE.COMMANDS.HIGHLIGHT);\n this.$autocompleteInput.val(this.inputRevert);\n this.$autocompleteInput.attr('placeholder', AUTOCOMPLETE_INPUT_PLACEHOLDER.COMMAND);\n this.onAutocompleteInputChangeHandler();\n this.$autocompleteInput.focus();\n\n this.params = {};\n this.inputRevert = null;\n }", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\r\n var suppress = doc.cm && doc.cm.state.suppressEdits;\r\n if (suppress && !allowSelectionOnly) { return }\r\n\r\n var hist = doc.history, event, selAfter = doc.sel;\r\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\r\n\r\n // Verify that there is a useable event (so that ctrl-z won't\r\n // needlessly clear selection events)\r\n var i = 0;\r\n for (; i < source.length; i++) {\r\n event = source[i];\r\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\r\n { break }\r\n }\r\n if (i == source.length) { return }\r\n hist.lastOrigin = hist.lastSelOrigin = null;\r\n\r\n for (;;) {\r\n event = source.pop();\r\n if (event.ranges) {\r\n pushSelectionToHistory(event, dest);\r\n if (allowSelectionOnly && !event.equals(doc.sel)) {\r\n setSelection(doc, event, {clearRedo: false});\r\n return\r\n }\r\n selAfter = event;\r\n } else if (suppress) {\r\n source.push(event);\r\n return\r\n } else { break }\r\n }\r\n\r\n // Build up a reverse change object to add to the opposite history\r\n // stack (redo when undoing, and vice versa).\r\n var antiChanges = [];\r\n pushSelectionToHistory(selAfter, dest);\r\n dest.push({changes: antiChanges, generation: hist.generation});\r\n hist.generation = event.generation || ++hist.maxGeneration;\r\n\r\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\r\n\r\n var loop = function ( i ) {\r\n var change = event.changes[i];\r\n change.origin = type;\r\n if (filter && !filterChange(doc, change, false)) {\r\n source.length = 0;\r\n return {}\r\n }\r\n\r\n antiChanges.push(historyChangeFromChange(doc, change));\r\n\r\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\r\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\r\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\r\n var rebased = [];\r\n\r\n // Propagate to the linked documents\r\n linkedDocs(doc, function (doc, sharedHist) {\r\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\r\n rebaseHist(doc.history, change);\r\n rebased.push(doc.history);\r\n }\r\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\r\n });\r\n };\r\n\r\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\r\n var returned = loop( i$1 );\r\n\r\n if ( returned ) return returned.v;\r\n }\r\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n\t if (doc.cm && doc.cm.state.suppressEdits && !allowSelectionOnly) return;\n\n\t var hist = doc.history, event, selAfter = doc.sel;\n\t var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n\t // Verify that there is a useable event (so that ctrl-z won't\n\t // needlessly clear selection events)\n\t for (var i = 0; i < source.length; i++) {\n\t event = source[i];\n\t if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n\t break;\n\t }\n\t if (i == source.length) return;\n\t hist.lastOrigin = hist.lastSelOrigin = null;\n\n\t for (;;) {\n\t event = source.pop();\n\t if (event.ranges) {\n\t pushSelectionToHistory(event, dest);\n\t if (allowSelectionOnly && !event.equals(doc.sel)) {\n\t setSelection(doc, event, {clearRedo: false});\n\t return;\n\t }\n\t selAfter = event;\n\t }\n\t else break;\n\t }\n\n\t // Build up a reverse change object to add to the opposite history\n\t // stack (redo when undoing, and vice versa).\n\t var antiChanges = [];\n\t pushSelectionToHistory(selAfter, dest);\n\t dest.push({changes: antiChanges, generation: hist.generation});\n\t hist.generation = event.generation || ++hist.maxGeneration;\n\n\t var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n\t for (var i = event.changes.length - 1; i >= 0; --i) {\n\t var change = event.changes[i];\n\t change.origin = type;\n\t if (filter && !filterChange(doc, change, false)) {\n\t source.length = 0;\n\t return;\n\t }\n\n\t antiChanges.push(historyChangeFromChange(doc, change));\n\n\t var after = i ? computeSelAfterChange(doc, change) : lst(source);\n\t makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n\t if (!i && doc.cm) doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)});\n\t var rebased = [];\n\n\t // Propagate to the linked documents\n\t linkedDocs(doc, function(doc, sharedHist) {\n\t if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n\t rebaseHist(doc.history, change);\n\t rebased.push(doc.history);\n\t }\n\t makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n\t });\n\t }\n\t }", "function atras() {\n history.back();\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n\t\t if (doc.cm && doc.cm.state.suppressEdits && !allowSelectionOnly) return;\n\t\t\n\t\t var hist = doc.history, event, selAfter = doc.sel;\n\t\t var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\t\t\n\t\t // Verify that there is a useable event (so that ctrl-z won't\n\t\t // needlessly clear selection events)\n\t\t for (var i = 0; i < source.length; i++) {\n\t\t event = source[i];\n\t\t if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n\t\t break;\n\t\t }\n\t\t if (i == source.length) return;\n\t\t hist.lastOrigin = hist.lastSelOrigin = null;\n\t\t\n\t\t for (;;) {\n\t\t event = source.pop();\n\t\t if (event.ranges) {\n\t\t pushSelectionToHistory(event, dest);\n\t\t if (allowSelectionOnly && !event.equals(doc.sel)) {\n\t\t setSelection(doc, event, {clearRedo: false});\n\t\t return;\n\t\t }\n\t\t selAfter = event;\n\t\t }\n\t\t else break;\n\t\t }\n\t\t\n\t\t // Build up a reverse change object to add to the opposite history\n\t\t // stack (redo when undoing, and vice versa).\n\t\t var antiChanges = [];\n\t\t pushSelectionToHistory(selAfter, dest);\n\t\t dest.push({changes: antiChanges, generation: hist.generation});\n\t\t hist.generation = event.generation || ++hist.maxGeneration;\n\t\t\n\t\t var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\t\t\n\t\t for (var i = event.changes.length - 1; i >= 0; --i) {\n\t\t var change = event.changes[i];\n\t\t change.origin = type;\n\t\t if (filter && !filterChange(doc, change, false)) {\n\t\t source.length = 0;\n\t\t return;\n\t\t }\n\t\t\n\t\t antiChanges.push(historyChangeFromChange(doc, change));\n\t\t\n\t\t var after = i ? computeSelAfterChange(doc, change) : lst(source);\n\t\t makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n\t\t if (!i && doc.cm) doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)});\n\t\t var rebased = [];\n\t\t\n\t\t // Propagate to the linked documents\n\t\t linkedDocs(doc, function(doc, sharedHist) {\n\t\t if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n\t\t rebaseHist(doc.history, change);\n\t\t rebased.push(doc.history);\n\t\t }\n\t\t makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n\t\t });\n\t\t }\n\t\t }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function restore_history () {\n\tvar text = edit_history [edit_history_index];\n\tvar ds = HalfedgeDS.fromJSON (JSON.parse(text));\n\tannotateHdsPolygonSides(ds);\n\thdsDraw (ds);\n\tconfigureButtons();\n}", "function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n\t if (doc.cm && doc.cm.state.suppressEdits) return;\n\n\t var hist = doc.history, event, selAfter = doc.sel;\n\t var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n\t // Verify that there is a useable event (so that ctrl-z won't\n\t // needlessly clear selection events)\n\t for (var i = 0; i < source.length; i++) {\n\t event = source[i];\n\t if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n\t break;\n\t }\n\t if (i == source.length) return;\n\t hist.lastOrigin = hist.lastSelOrigin = null;\n\n\t for (;;) {\n\t event = source.pop();\n\t if (event.ranges) {\n\t pushSelectionToHistory(event, dest);\n\t if (allowSelectionOnly && !event.equals(doc.sel)) {\n\t setSelection(doc, event, {clearRedo: false});\n\t return;\n\t }\n\t selAfter = event;\n\t }\n\t else break;\n\t }\n\n\t // Build up a reverse change object to add to the opposite history\n\t // stack (redo when undoing, and vice versa).\n\t var antiChanges = [];\n\t pushSelectionToHistory(selAfter, dest);\n\t dest.push({changes: antiChanges, generation: hist.generation});\n\t hist.generation = event.generation || ++hist.maxGeneration;\n\n\t var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n\t for (var i = event.changes.length - 1; i >= 0; --i) {\n\t var change = event.changes[i];\n\t change.origin = type;\n\t if (filter && !filterChange(doc, change, false)) {\n\t source.length = 0;\n\t return;\n\t }\n\n\t antiChanges.push(historyChangeFromChange(doc, change));\n\n\t var after = i ? computeSelAfterChange(doc, change) : lst(source);\n\t makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n\t if (!i && doc.cm) doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)});\n\t var rebased = [];\n\n\t // Propagate to the linked documents\n\t linkedDocs(doc, function(doc, sharedHist) {\n\t if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n\t rebaseHist(doc.history, change);\n\t rebased.push(doc.history);\n\t }\n\t makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n\t });\n\t }\n\t }" ]
[ "0.66680455", "0.66616225", "0.6657286", "0.6404642", "0.6340545", "0.63315004", "0.62797564", "0.62797564", "0.62788147", "0.62651217", "0.6206819", "0.6140144", "0.6129406", "0.6101191", "0.6099247", "0.60932523", "0.6078618", "0.5995395", "0.59712195", "0.59365827", "0.59308493", "0.5923696", "0.5917884", "0.5886786", "0.584664", "0.58359927", "0.58130103", "0.5810488", "0.57858807", "0.575316", "0.5728253", "0.5727169", "0.57223964", "0.5707677", "0.57056564", "0.569099", "0.56733346", "0.56559384", "0.56468135", "0.559811", "0.5597032", "0.5590113", "0.55840296", "0.5564214", "0.5543315", "0.5535239", "0.5535239", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55298215", "0.55231565", "0.55176646", "0.55071425", "0.55021507", "0.5501513", "0.5501513", "0.5501513", "0.5501513", "0.5501513", "0.5501513", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54992825", "0.54818356", "0.5476778", "0.5475973", "0.5473807", "0.5462045", "0.5458561", "0.5456714", "0.54489887", "0.54489887", "0.54489887", "0.54489887", "0.54489887", "0.54489887", "0.54489887", "0.54452705", "0.54449695" ]
0.0
-1
Subviews need their line numbers shifted when text is added above or below them in the parent document.
function shiftDoc(doc, distance) { if (distance == 0) { return } doc.first += distance; doc.sel = new Selection(map(doc.sel.ranges, function (range) { return new Range( Pos(range.anchor.line + distance, range.anchor.ch), Pos(range.head.line + distance, range.head.ch) ); }), doc.sel.primIndex); if (doc.cm) { regChange(doc.cm, doc.first, doc.first - distance, distance); for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++) { regLineChange(doc.cm, l, "gutter"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bn(e,t,a,n){null==t&&(t=e.doc.first),null==a&&(a=e.doc.first+e.doc.size),n||(n=0);var r=e.display;if(n&&a<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)// Change after\n Jo&&pe(e.doc,t)<r.viewTo&&vn(e);else if(a<=r.viewFrom)// Change before\n Jo&&ge(e.doc,a+n)>r.viewFrom?vn(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&a>=r.viewTo)// Full overlap\n vn(e);else if(t<=r.viewFrom){// Top overlap\n var f=wn(e,a,a+n,1);f?(r.view=r.view.slice(f.index),r.viewFrom=f.lineN,r.viewTo+=n):vn(e)}else if(a>=r.viewTo){// Bottom overlap\n var o=wn(e,t,t,-1);o?(r.view=r.view.slice(0,o.index),r.viewTo=o.lineN):vn(e)}else{// Gap in the middle\n var i=wn(e,t,t,-1),s=wn(e,a,a+n,1);i&&s?(r.view=r.view.slice(0,i.index).concat(ht(e,i.lineN,s.lineN)).concat(r.view.slice(s.index)),r.viewTo+=n):vn(e)}var c=r.externalMeasured;c&&(a<c.lineN?c.lineN+=n:t<c.lineN+c.size&&(r.externalMeasured=null))}", "moveToLineStartInternal(selection, moveToPreviousLine) {\n if (this.location.x > this.viewer.clientActiveArea.right) {\n this.offset = this.offset - 1;\n }\n let currentLine = selection.getLineWidgetInternal(this.currentWidget, this.offset, moveToPreviousLine);\n let firstElement;\n let isParaBidi = this.currentWidget.paragraph.paragraphFormat.bidi;\n if (isParaBidi && currentLine.children.length > 0 && this.containsRtlText(currentLine)) {\n firstElement = currentLine.children[currentLine.children.length - 1];\n if (firstElement instanceof ListTextElementBox) {\n firstElement = undefined;\n }\n }\n else {\n firstElement = selection.getFirstElementInternal(currentLine);\n }\n this.viewer.moveCaretPosition = 1;\n let startOffset = selection.getStartOffset(this.currentWidget.paragraph);\n if (isNullOrUndefined(firstElement) && this.offset > startOffset) {\n let index = 0;\n let inlineObj = this.currentWidget.getInline(this.offset, index);\n let inline = inlineObj.element;\n index = inlineObj.index;\n if (inline instanceof TextElementBox && inline.text !== '\\v') {\n this.offset = startOffset;\n }\n }\n else if (!isNullOrUndefined(firstElement)) {\n let indexInInline = 0;\n this.currentWidget = firstElement.line;\n this.offset = this.currentWidget.getOffset(firstElement, indexInInline);\n indexInInline = 0;\n let inlineObj = this.currentWidget.getInline(this.offset, indexInInline);\n let inline = inlineObj.element;\n indexInInline = inlineObj.index;\n if (inline instanceof FieldElementBox) {\n //Checks if field character is part of rendered field, otherwise moves to previous rendered content.\n let prevInline = selection.getPreviousValidElement(inline);\n if (!isNullOrUndefined(prevInline)) {\n inline = prevInline;\n this.currentWidget = inline.line;\n this.offset = this.currentWidget.getOffset(inline, inline.length);\n if (inline instanceof FieldElementBox) {\n this.offset--;\n }\n }\n }\n }\n this.updatePhysicalPosition(true);\n }", "moveToNextLine(line) {\n let paragraph = line.paragraph;\n let paraFormat = paragraph.paragraphFormat;\n let isParagraphStart = line.isFirstLine();\n let isParagraphEnd = line.isLastLine();\n let height = 0;\n let maxDescent = 0;\n let afterSpacing = 0;\n let beforeSpacing = 0;\n let lineSpacing = 0;\n let firstLineIndent = 0;\n this.updateLineWidget(line);\n height = this.maxTextHeight;\n maxDescent = height - this.maxTextBaseline;\n //Updates before spacing at the top of Paragraph first line.\n if (isParagraphStart) {\n beforeSpacing = this.getBeforeSpacing(paragraph);\n firstLineIndent = HelperMethods.convertPointToPixel(paraFormat.firstLineIndent);\n }\n //Updates after spacing at the bottom of Paragraph last line.\n if (isParagraphEnd) {\n afterSpacing = HelperMethods.convertPointToPixel(this.getAfterSpacing(paragraph));\n }\n if (!this.isBidiReLayout && (paraFormat.bidi || this.isContainsRtl(line))) {\n this.reArrangeElementsForRtl(line, paraFormat.bidi);\n this.isRTLLayout = true;\n }\n if (isNaN(this.maxTextHeight)) {\n //Calculate line height and descent based on formatting defined in paragraph.\n let measurement = this.viewer.textHelper.measureText('a', paragraph.characterFormat);\n height = measurement.Height;\n maxDescent = height - measurement.BaselineOffset;\n }\n else {\n height = this.maxTextHeight;\n maxDescent = height - this.maxTextBaseline;\n }\n // Gets line spacing.\n lineSpacing = this.getLineSpacing(paragraph, height);\n if (paraFormat.lineSpacingType === 'Exactly'\n && lineSpacing < maxDescent + this.maxBaseline) {\n lineSpacing = maxDescent + this.maxBaseline;\n }\n let subWidth = 0;\n let whiteSpaceCount = 0;\n let textAlignment = paraFormat.textAlignment;\n // calculates the sub width, for text alignments - Center, Right, Justify.\n // if the element is paragraph end and para bidi is true and text alignment is justify\n // we need to calculate subwidth and add it to the left margin of the element.\n if (textAlignment !== 'Left' && this.viewer.textWrap && (!(textAlignment === 'Justify' && isParagraphEnd)\n || (textAlignment === 'Justify' && paraFormat.bidi))) {\n // tslint:disable-next-line:max-line-length\n let getWidthAndSpace = this.getSubWidth(line, textAlignment === 'Justify', whiteSpaceCount, firstLineIndent, isParagraphEnd);\n subWidth = getWidthAndSpace.subWidth;\n whiteSpaceCount = getWidthAndSpace.spaceCount;\n }\n let addSubWidth = false;\n let lineSpacingType = paraFormat.lineSpacingType;\n for (let i = 0; i < line.children.length; i++) {\n let topMargin = 0;\n let bottomMargin = 0;\n let leftMargin = 0;\n let elementBox = line.children[i];\n // tslint:disable-next-line:max-line-length\n let alignElements = this.alignLineElements(elementBox, topMargin, bottomMargin, maxDescent, addSubWidth, subWidth, textAlignment, whiteSpaceCount, i === line.children.length - 1);\n topMargin = alignElements.topMargin;\n bottomMargin = alignElements.bottomMargin;\n addSubWidth = alignElements.addSubWidth;\n whiteSpaceCount = alignElements.whiteSpaceCount;\n //Updates line spacing, paragraph after/ before spacing and aligns the text to base line offset.\n if (lineSpacingType === 'Multiple') {\n if (lineSpacing > height) {\n bottomMargin += lineSpacing - height;\n }\n else {\n topMargin += lineSpacing - height;\n }\n }\n else if (lineSpacingType === 'Exactly') {\n topMargin += lineSpacing - (topMargin + elementBox.height + bottomMargin);\n }\n else if (lineSpacing > topMargin + elementBox.height + bottomMargin) {\n topMargin += lineSpacing - (topMargin + elementBox.height + bottomMargin);\n }\n topMargin += beforeSpacing;\n bottomMargin += afterSpacing;\n if (i === 0) {\n line.height = topMargin + elementBox.height + bottomMargin;\n if (textAlignment === 'Right' || (textAlignment === 'Justify' && paraFormat.bidi && isParagraphEnd)) {\n //Aligns the text as right justified and consider subwidth for bidirectional paragrph with justify.\n leftMargin = subWidth;\n }\n else if (textAlignment === 'Center') {\n //Aligns the text as center justified.\n leftMargin = subWidth / 2;\n }\n }\n elementBox.margin = new Margin(leftMargin, topMargin, 0, bottomMargin);\n elementBox.line = line;\n }\n this.viewer.cutFromTop(this.viewer.clientActiveArea.y + line.height);\n }", "reLayoutLine(paragraph, lineIndex, isBidi) {\n if (this.viewer.owner.isDocumentLoaded && this.viewer.owner.editorModule) {\n this.viewer.owner.editorModule.updateWholeListItems(paragraph);\n }\n let lineWidget;\n if (paragraph.paragraphFormat.listFormat && paragraph.paragraphFormat.listFormat.listId !== -1) {\n lineWidget = paragraph.getSplitWidgets()[0].firstChild;\n }\n else {\n lineWidget = paragraph.childWidgets[lineIndex];\n }\n if (!this.isBidiReLayout && (paragraph.paragraphFormat.bidi || this.isContainsRtl(lineWidget))) {\n let newLineIndex = lineIndex <= 0 ? 0 : lineIndex - 1;\n for (let i = newLineIndex; i < paragraph.childWidgets.length; i++) {\n if (isBidi || !(paragraph.paragraphFormat.bidi && this.isContainsRtl(lineWidget))) {\n if (i === lineIndex) {\n continue;\n }\n }\n this.reArrangeElementsForRtl(paragraph.childWidgets[i], paragraph.paragraphFormat.bidi);\n }\n }\n let lineToLayout = lineWidget.previousLine;\n if (isNullOrUndefined(lineToLayout)) {\n lineToLayout = lineWidget;\n }\n let currentParagraph = lineToLayout.paragraph;\n let bodyWidget = paragraph.containerWidget;\n bodyWidget.height -= paragraph.height;\n if (this.viewer.owner.enableHeaderAndFooter || paragraph.isInHeaderFooter) {\n paragraph.bodyWidget.isEmpty = false;\n // tslint:disable-next-line:max-line-length\n this.viewer.updateHCFClientAreaWithTop(paragraph.bodyWidget.sectionFormat, this.viewer.isBlockInHeader(paragraph), bodyWidget.page);\n }\n else {\n this.viewer.updateClientArea(bodyWidget.sectionFormat, bodyWidget.page);\n }\n this.viewer.updateClientAreaForBlock(paragraph, true);\n if (lineToLayout.paragraph.isEmpty()) {\n this.viewer.cutFromTop(paragraph.y);\n this.layoutParagraph(paragraph, 0);\n }\n else {\n this.updateClientAreaForLine(lineToLayout.paragraph, lineToLayout, 0);\n this.layoutListItems(lineToLayout.paragraph);\n if (lineToLayout.isFirstLine() && !isNullOrUndefined(paragraph.paragraphFormat)) {\n let firstLineIndent = -HelperMethods.convertPointToPixel(paragraph.paragraphFormat.firstLineIndent);\n this.viewer.updateClientWidth(firstLineIndent);\n }\n do {\n lineToLayout = this.layoutLine(lineToLayout, 0);\n paragraph = lineToLayout.paragraph;\n lineToLayout = lineToLayout.nextLine;\n } while (lineToLayout);\n this.updateWidgetToPage(this.viewer, paragraph);\n this.viewer.updateClientAreaForBlock(paragraph, false);\n }\n this.layoutNextItemsBlock(paragraph, this.viewer);\n }", "function za(e){if(!e.options.lineNumbers)return!1;var t=e.doc,a=L(e.options,t.first+t.size-1),r=e.display;if(a.length!=r.lineNumChars){var f=r.measure.appendChild(n(\"div\",[n(\"div\",a)],\"CodeMirror-linenumber CodeMirror-gutter-elt\")),o=f.firstChild.offsetWidth,i=f.offsetWidth-o;return r.lineGutter.style.width=\"\",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-i)+1,r.lineNumWidth=r.lineNumInnerWidth+i,r.lineNumChars=r.lineNumInnerWidth?a.length:-1,r.lineGutter.style.width=r.lineNumWidth+\"px\",In(e),!0}return!1}", "function processLineNumbers() {\n if ($(\"#editorDiv\").length > 0) {\n var lineHeight = parseInt($(\"#editorDiv\").css('line-height'));\n var scrollHeight = $(\"#editorDiv\")[0].scrollHeight;\n var numberOfLines = scrollHeight / lineHeight;\n\n for (var i = 1; i < numberOfLines; i++) {\n $('.line-numbers').append('<p>' + i + '</p>');\n //console.log(i);\n }\n\n //set width of line-numbers bar dynamically\n var maxWidth = 0;\n var widestSpan = null;\n var $element;\n $('#lineNumbers p').each(function () {\n $element = $(this);\n if ($element.width() > maxWidth) {\n maxWidth = $element.width();\n widestSpan = $element;\n }\n });\n\n var lineNumberExtraWidthPadding = 10;\n //console.log('widest width line numbers ' + maxWidth);\n $('#lineNumbers').css('width', maxWidth + lineNumberExtraWidthPadding + 'px');\n //$('#editorDiv').css('padding-left', maxWidth + lineNumberExtraWidthPadding + 'px');\n $('.editor-wrapper').css('padding-left', maxWidth + lineNumberExtraWidthPadding + 'px');\n }\n}", "function ensureLineWrapped(lineView) {\n\t\t if (lineView.node == lineView.text) {\n\t\t lineView.node = elt(\"div\", null, null, \"position: relative\");\n\t\t if (lineView.text.parentNode)\n\t\t { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n\t\t lineView.node.appendChild(lineView.text);\n\t\t if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n\t\t }\n\t\t return lineView.node\n\t\t }", "function ensureLineWrapped(lineView) {\n\t\t if (lineView.node == lineView.text) {\n\t\t lineView.node = elt(\"div\", null, null, \"position: relative\");\n\t\t if (lineView.text.parentNode)\n\t\t lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n\t\t lineView.node.appendChild(lineView.text);\n\t\t if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n\t\t }\n\t\t return lineView.node;\n\t\t }", "function OnBaselineOffsetChanged(/*DependencyObject*/ d, /*DependencyPropertyChangedEventArgs*/ e)\r\n\t{ \r\n\t //Set up our baseline changed event \r\n\r\n\t //fire event! \r\n\t var te = TextElement.ContainerTextElementField.GetValue(d);\r\n\r\n\t if (te != null)\r\n\t { \r\n\t var parent = te.TextContainer.Parent;\r\n\t var tb = parent instanceof TextBlock ? parent : null; \r\n\t if (tb != null) \r\n\t {\r\n\t tb.OnChildBaselineOffsetChanged(d); \r\n\t }\r\n\t else\r\n\t {\r\n\t var fd = parent instanceof FlowDocument ? parent : null; \r\n\t if (fd != null && d instanceof UIElement)\r\n\t { \r\n\t fd.OnChildDesiredSizeChanged(d); \r\n\t }\r\n\t } \r\n\t }\r\n\t}", "drawSubviews() {}", "function ensureLineWrapped(lineView) {\r\n if (lineView.node == lineView.text) {\r\n lineView.node = elt(\"div\", null, null, \"position: relative\");\r\n if (lineView.text.parentNode)\r\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\r\n lineView.node.appendChild(lineView.text);\r\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\r\n }\r\n return lineView.node;\r\n }", "movePreviousPosition() {\n let index = 0;\n let inlineInfo = this.currentWidget.getInline(this.offset, index);\n let inline = inlineInfo.element;\n index = inlineInfo.index;\n let lineIndex = this.paragraph.childWidgets.indexOf(this.currentWidget);\n if (inline instanceof FieldElementBox && inline.fieldType === 1 && !isNullOrUndefined(inline.fieldBegin)) {\n this.movePreviousPositionInternal(inline);\n }\n this.updateOffsetToPrevPosition(index, false);\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }", "resizeRect(numLinesOfText) {\n this.rect.width(200);\n const rectHeight = numLinesOfText * 21 + 20\n this.rect.height(rectHeight);\n this.text.center(0.5 * this.rect.width(), 0.5 * this.rect.height());\n this.dropShadow.height(rectHeight)\n this.editRect.height(rectHeight - 10)\n\n this.arrow_hitbox.size(this.rect.width() + ARROW_HITBOX_MARGIN * 2, this.rect.height() + ARROW_HITBOX_MARGIN * 2);\n\n this.group.node.dispatchEvent(new CustomEvent(\"dragmove\")); // update any connectables looking for drag events\n }", "function updateLineText(cm, lineView) {\n\t\t var cls = lineView.text.className;\n\t\t var built = getLineContent(cm, lineView);\n\t\t if (lineView.text == lineView.node) { lineView.node = built.pre; }\n\t\t lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n\t\t lineView.text = built.pre;\n\t\t if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n\t\t lineView.bgClass = built.bgClass;\n\t\t lineView.textClass = built.textClass;\n\t\t updateLineClasses(cm, lineView);\n\t\t } else if (cls) {\n\t\t lineView.text.className = cls;\n\t\t }\n\t\t }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n\n if (lineView.text == lineView.node) {\n lineView.node = built.pre;\n }\n\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function withLineNumbers(renderer) {\n renderer.renderer.rules.paragraph_open\n = renderer.renderer.rules.heading_open\n = renderer.renderer.rules.ordered_list_open\n = renderer.renderer.rules.bullet_list_open\n = renderer.renderer.rules.blockquote_open\n = renderer.renderer.rules.dl_open\n = injectLineNumbers;\n renderer.renderer.rules.html_block = html_block_injectLineNumbers;\n renderer.renderer.rules.code_block\n // = renderer.renderer.rules.fence\n = code_block_injectLineNumbers;\n return renderer;\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n }\n return lineView.node;\n }", "function updateLineText(cm, lineView) {\n\t\t var cls = lineView.text.className;\n\t\t var built = getLineContent(cm, lineView);\n\t\t if (lineView.text == lineView.node) lineView.node = built.pre;\n\t\t lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n\t\t lineView.text = built.pre;\n\t\t if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n\t\t lineView.bgClass = built.bgClass;\n\t\t lineView.textClass = built.textClass;\n\t\t updateLineClasses(lineView);\n\t\t } else if (cls) {\n\t\t lineView.text.className = cls;\n\t\t }\n\t\t }", "function updateLines(){\n showLines.innerHTML = ++lineCounter;\n nextLevel(); \n}", "function visualLineEndNo(doc, lineN) {\n\t\t if (lineN > doc.lastLine()) return lineN;\n\t\t var line = getLine(doc, lineN), merged;\n\t\t if (!lineIsHidden(doc, line)) return lineN;\n\t\t while (merged = collapsedSpanAtEnd(line))\n\t\t line = merged.find(1, true).line;\n\t\t return lineNo(line) + 1;\n\t\t }", "layoutEmptyLineWidget(paragraph, isEmptyLine, line, isShiftEnter) {\n let paraFormat = paragraph.paragraphFormat;\n let subWidth = 0;\n let whiteSpaceCount = 0;\n isShiftEnter = isNullOrUndefined(isShiftEnter) ? false : isShiftEnter;\n //Calculate line height and descent based on formatting defined in paragraph.\n let paragraphMarkSize = this.viewer.textHelper.getParagraphMarkSize(paragraph.characterFormat);\n let maxHeight = paragraphMarkSize.Height;\n let beforeSpacing = this.getBeforeSpacing(paragraph);\n let lineWidget;\n if (paragraph.childWidgets.length > 0 && !isShiftEnter) {\n lineWidget = paragraph.childWidgets[0];\n if (lineWidget.children.length > 0) {\n if (!this.isBidiReLayout && (paraFormat.bidi || this.isContainsRtl(lineWidget))) {\n this.reArrangeElementsForRtl(lineWidget, paraFormat.bidi);\n }\n let isParagraphStart = lineWidget.isFirstLine();\n let isParagraphEnd = lineWidget.isLastLine();\n let firstLineIndent = 0;\n if (isParagraphStart) {\n beforeSpacing = this.getBeforeSpacing(paragraph);\n firstLineIndent = HelperMethods.convertPointToPixel(paraFormat.firstLineIndent);\n }\n let textAlignment = paraFormat.textAlignment;\n if (textAlignment !== 'Left' && this.viewer.textWrap\n && (!(textAlignment === 'Justify' && isParagraphEnd)\n || (textAlignment === 'Justify' && paraFormat.bidi))) {\n // tslint:disable-next-line:max-line-length\n let getWidthAndSpace = this.getSubWidth(lineWidget, textAlignment === 'Justify', whiteSpaceCount, firstLineIndent, isParagraphEnd);\n subWidth = getWidthAndSpace.subWidth;\n whiteSpaceCount = getWidthAndSpace.spaceCount;\n }\n }\n }\n else {\n lineWidget = isEmptyLine ? this.addLineWidget(paragraph) : line;\n }\n //isNullOrUndefined(this.viewer.currentHeaderFooter) && \n if (this.viewer instanceof PageLayoutViewer\n && this.viewer.clientActiveArea.height < beforeSpacing + maxHeight\n && this.viewer.clientActiveArea.y !== this.viewer.clientArea.y) {\n this.moveToNextPage(this.viewer, lineWidget);\n }\n //Gets line spacing.\n let lineSpacing = this.getLineSpacing(paragraph, maxHeight);\n let maxDescent = maxHeight - paragraphMarkSize.BaselineOffset;\n //Calculate the bottom position of current line - max height + line spacing.\n if (!isNaN(this.maxTextHeight)\n && maxHeight < this.maxTextHeight) {\n maxHeight = this.maxTextHeight;\n maxDescent = maxHeight - this.maxTextBaseline;\n }\n let topMargin = 0;\n let bottomMargin = 0;\n let leftMargin = 0;\n let height = maxHeight;\n let lineSpacingType = paragraph.paragraphFormat.lineSpacingType;\n if (lineSpacingType === 'Multiple') {\n if (lineSpacing > maxHeight) {\n bottomMargin += lineSpacing - maxHeight;\n }\n else {\n topMargin += lineSpacing - maxHeight;\n }\n }\n else if (lineSpacingType === 'Exactly') {\n topMargin += lineSpacing - (topMargin + height + bottomMargin);\n }\n else if (lineSpacing > topMargin + height + bottomMargin) {\n topMargin += lineSpacing - (topMargin + height + bottomMargin);\n }\n topMargin += beforeSpacing;\n bottomMargin += HelperMethods.convertPointToPixel(this.getAfterSpacing(paragraph));\n for (let i = 0; i < lineWidget.children.length; i++) {\n let element = lineWidget.children[i];\n if (i === 0 && element instanceof ListTextElementBox) {\n let textAlignment = paragraph.paragraphFormat.textAlignment;\n if (textAlignment === 'Right') { //Aligns the text as right justified.\n leftMargin = subWidth;\n }\n else if (textAlignment === 'Center') { //Aligns the text as center justified.\n leftMargin = subWidth / 2;\n }\n element.margin = new Margin(leftMargin, topMargin, 0, bottomMargin);\n element.line = lineWidget;\n lineWidget.height = topMargin + height + bottomMargin;\n }\n }\n lineWidget.height = topMargin + height + bottomMargin;\n this.viewer.cutFromTop(this.viewer.clientActiveArea.y + lineWidget.height);\n //Clears the previous line elements from collection. \n }", "updateChildren(view, pos) {\n let inline = this.node.inlineContent, off = pos;\n let composition = view.composing ? this.localCompositionInfo(view, pos) : null;\n let localComposition = composition && composition.pos > -1 ? composition : null;\n let compositionInChild = composition && composition.pos < 0;\n let updater = new ViewTreeUpdater(this, localComposition && localComposition.node, view);\n iterDeco(this.node, this.innerDeco, (widget, i, insideNode) => {\n if (widget.spec.marks)\n updater.syncToMarks(widget.spec.marks, inline, view);\n else if (widget.type.side >= 0 && !insideNode)\n updater.syncToMarks(i == this.node.childCount ? Mark$1.none : this.node.child(i).marks, inline, view);\n updater.placeWidget(widget, view, off);\n }, (child, outerDeco, innerDeco, i) => {\n updater.syncToMarks(child.marks, inline, view);\n let compIndex;\n if (updater.findNodeMatch(child, outerDeco, innerDeco, i))\n ;\n else if (compositionInChild && view.state.selection.from > off && view.state.selection.to < off + child.nodeSize && (compIndex = updater.findIndexWithChild(composition.node)) > -1 && updater.updateNodeAt(child, outerDeco, innerDeco, compIndex, view))\n ;\n else if (updater.updateNextNode(child, outerDeco, innerDeco, view, i))\n ;\n else {\n updater.addNode(child, outerDeco, innerDeco, view, off);\n }\n off += child.nodeSize;\n });\n updater.syncToMarks([], inline, view);\n if (this.node.isTextblock)\n updater.addTextblockHacks();\n updater.destroyRest();\n if (updater.changed || this.dirty == CONTENT_DIRTY) {\n if (localComposition)\n this.protectLocalComposition(view, localComposition);\n renderDescs(this.contentDOM, this.children, view);\n if (ios)\n iosHacks(this.dom);\n }\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\")\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text) }\n lineView.node.appendChild(lineView.text)\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2 }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\")\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text) }\n lineView.node.appendChild(lineView.text)\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2 }\n }\n return lineView.node\n}", "get lineWrapping() { return this.viewState.heightOracle.lineWrapping; }", "function ensureLineWrapped(lineView) {\r\n if (lineView.node == lineView.text) {\r\n lineView.node = elt(\"div\", null, null, \"position: relative\");\r\n if (lineView.text.parentNode)\r\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\r\n lineView.node.appendChild(lineView.text);\r\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\r\n }\r\n return lineView.node\r\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n\n if (lineView.text.parentNode) {\n lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n }\n\n lineView.node.appendChild(lineView.text);\n\n if (ie && ie_version < 8) {\n lineView.node.style.zIndex = 2;\n }\n }\n\n return lineView.node;\n }", "function visualLineEndNo(doc, lineN) {\n\t\t if (lineN > doc.lastLine()) { return lineN }\n\t\t var line = getLine(doc, lineN), merged;\n\t\t if (!lineIsHidden(doc, line)) { return lineN }\n\t\t while (merged = collapsedSpanAtEnd(line))\n\t\t { line = merged.find(1, true).line; }\n\t\t return lineNo(line) + 1\n\t\t }", "function ensureLineWrapped(lineView) {\n\t if (lineView.node == lineView.text) {\n\t lineView.node = elt(\"div\", null, null, \"position: relative\");\n\t if (lineView.text.parentNode)\n\t lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n\t lineView.node.appendChild(lineView.text);\n\t if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n\t }\n\t return lineView.node;\n\t }", "function ensureLineWrapped(lineView) {\n\t if (lineView.node == lineView.text) {\n\t lineView.node = elt(\"div\", null, null, \"position: relative\");\n\t if (lineView.text.parentNode)\n\t lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n\t lineView.node.appendChild(lineView.text);\n\t if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n\t }\n\t return lineView.node;\n\t }", "function ensureLineWrapped(lineView) {\n\t if (lineView.node == lineView.text) {\n\t lineView.node = elt(\"div\", null, null, \"position: relative\");\n\t if (lineView.text.parentNode)\n\t lineView.text.parentNode.replaceChild(lineView.node, lineView.text);\n\t lineView.node.appendChild(lineView.text);\n\t if (ie && ie_version < 8) lineView.node.style.zIndex = 2;\n\t }\n\t return lineView.node;\n\t }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function yn(e,t,a){e.curOp.viewChanged=!0;var n=e.display,r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var f=n.view[ka(e,t)];if(null!=f.node){var o=f.changes||(f.changes=[]);-1==d(o,a)&&o.push(a)}}}", "function updateLineText(cm, lineView) {\n\t var cls = lineView.text.className;\n\t var built = getLineContent(cm, lineView);\n\t if (lineView.text == lineView.node) lineView.node = built.pre;\n\t lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n\t lineView.text = built.pre;\n\t if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n\t lineView.bgClass = built.bgClass;\n\t lineView.textClass = built.textClass;\n\t updateLineClasses(lineView);\n\t } else if (cls) {\n\t lineView.text.className = cls;\n\t }\n\t }", "function updateLineText(cm, lineView) {\n\t var cls = lineView.text.className;\n\t var built = getLineContent(cm, lineView);\n\t if (lineView.text == lineView.node) lineView.node = built.pre;\n\t lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n\t lineView.text = built.pre;\n\t if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n\t lineView.bgClass = built.bgClass;\n\t lineView.textClass = built.textClass;\n\t updateLineClasses(lineView);\n\t } else if (cls) {\n\t lineView.text.className = cls;\n\t }\n\t }", "function updateLineText(cm, lineView) {\n\t var cls = lineView.text.className;\n\t var built = getLineContent(cm, lineView);\n\t if (lineView.text == lineView.node) lineView.node = built.pre;\n\t lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n\t lineView.text = built.pre;\n\t if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n\t lineView.bgClass = built.bgClass;\n\t lineView.textClass = built.textClass;\n\t updateLineClasses(lineView);\n\t } else if (cls) {\n\t lineView.text.className = cls;\n\t }\n\t }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) lineView.node = built.pre;\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }", "function updateLineText(cm, lineView) {\r\n var cls = lineView.text.className;\r\n var built = getLineContent(cm, lineView);\r\n if (lineView.text == lineView.node) lineView.node = built.pre;\r\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\r\n lineView.text = built.pre;\r\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\r\n lineView.bgClass = built.bgClass;\r\n lineView.textClass = built.textClass;\r\n updateLineClasses(lineView);\r\n } else if (cls) {\r\n lineView.text.className = cls;\r\n }\r\n }", "function visualLineEndNo(doc, lineN) {\r\n if (lineN > doc.lastLine()) return lineN;\r\n var line = getLine(doc, lineN), merged;\r\n if (!lineIsHidden(doc, line)) return lineN;\r\n while (merged = collapsedSpanAtEnd(line))\r\n line = merged.find(1, true).line;\r\n return lineNo(line) + 1;\r\n }", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n}", "function visualLineEndNo(doc, lineN) {\n if (lineN > doc.lastLine()) { return lineN }\n var line = getLine(doc, lineN), merged;\n if (!lineIsHidden(doc, line)) { return lineN }\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return lineNo(line) + 1\n }", "function visualLineEndNo(doc, lineN) {\n if (lineN > doc.lastLine()) { return lineN }\n var line = getLine(doc, lineN), merged;\n if (!lineIsHidden(doc, line)) { return lineN }\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return lineNo(line) + 1\n }", "function visualLineEndNo(doc, lineN) {\n if (lineN > doc.lastLine()) { return lineN }\n var line = getLine(doc, lineN), merged;\n if (!lineIsHidden(doc, line)) { return lineN }\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return lineNo(line) + 1\n }", "function visualLineEndNo(doc, lineN) {\n if (lineN > doc.lastLine()) { return lineN }\n var line = getLine(doc, lineN), merged;\n if (!lineIsHidden(doc, line)) { return lineN }\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return lineNo(line) + 1\n }" ]
[ "0.59886837", "0.5932061", "0.5651753", "0.56376565", "0.55780476", "0.55274785", "0.55163205", "0.55099046", "0.5506641", "0.54507947", "0.5449167", "0.5448703", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.54459953", "0.544307", "0.5434363", "0.54288757", "0.5424538", "0.5421439", "0.5421439", "0.5421439", "0.5421439", "0.5421439", "0.5421439", "0.5421439", "0.5421439", "0.5413772", "0.54127884", "0.540568", "0.5404741", "0.53979677", "0.53971004", "0.53971004", "0.5397006", "0.53961754", "0.5388361", "0.53848475", "0.5381526", "0.5381526", "0.5381526", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5374838", "0.5373495", "0.5366334", "0.5366334", "0.5366334", "0.5357417", "0.5357417", "0.5357417", "0.5357417", "0.5357417", "0.5357417", "0.5357417", "0.5357417", "0.53492165", "0.5348716", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53456914", "0.53446335", "0.53446335", "0.53446335", "0.53446335" ]
0.0
-1
More lowerlevel change function, handling only a single document (not linked ones).
function makeChangeSingleDoc(doc, change, selAfter, spans) { if (doc.cm && !doc.cm.curOp) { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) } if (change.to.line < doc.first) { shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line)); return } if (change.from.line > doc.lastLine()) { return } // Clip the change to the size of this doc if (change.from.line < doc.first) { var shift = change.text.length - 1 - (doc.first - change.from.line); shiftDoc(doc, shift); change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch), text: [lst(change.text)], origin: change.origin}; } var last = doc.lastLine(); if (change.to.line > last) { change = {from: change.from, to: Pos(last, getLine(doc, last).text.length), text: [change.text[0]], origin: change.origin}; } change.removed = getBetween(doc, change.from, change.to); if (!selAfter) { selAfter = computeSelAfterChange(doc, change); } if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); } else { updateDoc(doc, change, spans); } setSelectionNoUndo(doc, selAfter, sel_dontScroll); if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0))) { doc.cantEdit = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change(docId, doc) {\n const cleanedDoc = this._getCleanedObject(doc);\n let storedDoc = this.store[docId];\n deepExtend(storedDoc, cleanedDoc);\n\n let changedData = {};\n _.each(cleanedDoc, (value, key) => {\n changedData[key] = storedDoc[key];\n });\n\n this.send('changed', docId, changedData);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t\t if (doc.cm && !doc.cm.curOp)\n\t\t return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\t\t\n\t\t if (change.to.line < doc.first) {\n\t\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t\t return;\n\t\t }\n\t\t if (change.from.line > doc.lastLine()) return;\n\t\t\n\t\t // Clip the change to the size of this doc\n\t\t if (change.from.line < doc.first) {\n\t\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t\t shiftDoc(doc, shift);\n\t\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t\t text: [lst(change.text)], origin: change.origin};\n\t\t }\n\t\t var last = doc.lastLine();\n\t\t if (change.to.line > last) {\n\t\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t\t text: [change.text[0]], origin: change.origin};\n\t\t }\n\t\t\n\t\t change.removed = getBetween(doc, change.from, change.to);\n\t\t\n\t\t if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n\t\t if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n\t\t else updateDoc(doc, change, spans);\n\t\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\t\t }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t\t if (doc.cm && !doc.cm.curOp)\n\t\t { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n\t\t if (change.to.line < doc.first) {\n\t\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t\t return\n\t\t }\n\t\t if (change.from.line > doc.lastLine()) { return }\n\n\t\t // Clip the change to the size of this doc\n\t\t if (change.from.line < doc.first) {\n\t\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t\t shiftDoc(doc, shift);\n\t\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t\t text: [lst(change.text)], origin: change.origin};\n\t\t }\n\t\t var last = doc.lastLine();\n\t\t if (change.to.line > last) {\n\t\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t\t text: [change.text[0]], origin: change.origin};\n\t\t }\n\n\t\t change.removed = getBetween(doc, change.from, change.to);\n\n\t\t if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n\t\t if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n\t\t else { updateDoc(doc, change, spans); }\n\t\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\n\t\t if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0)))\n\t\t { doc.cantEdit = false; }\n\t\t }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t if (doc.cm && !doc.cm.curOp)\n\t return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\t\n\t if (change.to.line < doc.first) {\n\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t return;\n\t }\n\t if (change.from.line > doc.lastLine()) return;\n\t\n\t // Clip the change to the size of this doc\n\t if (change.from.line < doc.first) {\n\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t shiftDoc(doc, shift);\n\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t text: [lst(change.text)], origin: change.origin};\n\t }\n\t var last = doc.lastLine();\n\t if (change.to.line > last) {\n\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t text: [change.text[0]], origin: change.origin};\n\t }\n\t\n\t change.removed = getBetween(doc, change.from, change.to);\n\t\n\t if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n\t if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n\t else updateDoc(doc, change, spans);\n\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\t }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t if (doc.cm && !doc.cm.curOp)\n\t return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n\t if (change.to.line < doc.first) {\n\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t return;\n\t }\n\t if (change.from.line > doc.lastLine()) return;\n\n\t // Clip the change to the size of this doc\n\t if (change.from.line < doc.first) {\n\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t shiftDoc(doc, shift);\n\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t text: [lst(change.text)], origin: change.origin};\n\t }\n\t var last = doc.lastLine();\n\t if (change.to.line > last) {\n\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t text: [change.text[0]], origin: change.origin};\n\t }\n\n\t change.removed = getBetween(doc, change.from, change.to);\n\n\t if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n\t if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n\t else updateDoc(doc, change, spans);\n\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\t }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t if (doc.cm && !doc.cm.curOp)\n\t return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n\t if (change.to.line < doc.first) {\n\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t return;\n\t }\n\t if (change.from.line > doc.lastLine()) return;\n\n\t // Clip the change to the size of this doc\n\t if (change.from.line < doc.first) {\n\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t shiftDoc(doc, shift);\n\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t text: [lst(change.text)], origin: change.origin};\n\t }\n\t var last = doc.lastLine();\n\t if (change.to.line > last) {\n\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t text: [change.text[0]], origin: change.origin};\n\t }\n\n\t change.removed = getBetween(doc, change.from, change.to);\n\n\t if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n\t if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n\t else updateDoc(doc, change, spans);\n\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\t }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return;\n }\n if (change.from.line > doc.lastLine()) return;\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n else updateDoc(doc, change, spans);\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return;\n }\n if (change.from.line > doc.lastLine()) return;\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n else updateDoc(doc, change, spans);\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return;\n }\n if (change.from.line > doc.lastLine()) return;\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n else updateDoc(doc, change, spans);\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return;\n }\n if (change.from.line > doc.lastLine()) return;\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n else updateDoc(doc, change, spans);\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return;\n }\n if (change.from.line > doc.lastLine()) return;\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n else updateDoc(doc, change, spans);\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return;\n }\n if (change.from.line > doc.lastLine()) return;\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n else updateDoc(doc, change, spans);\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\r\n if (doc.cm && !doc.cm.curOp)\r\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\r\n\r\n if (change.to.line < doc.first) {\r\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\r\n return\r\n }\r\n if (change.from.line > doc.lastLine()) { return }\r\n\r\n // Clip the change to the size of this doc\r\n if (change.from.line < doc.first) {\r\n var shift = change.text.length - 1 - (doc.first - change.from.line);\r\n shiftDoc(doc, shift);\r\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\r\n text: [lst(change.text)], origin: change.origin};\r\n }\r\n var last = doc.lastLine();\r\n if (change.to.line > last) {\r\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\r\n text: [change.text[0]], origin: change.origin};\r\n }\r\n\r\n change.removed = getBetween(doc, change.from, change.to);\r\n\r\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\r\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\r\n else { updateDoc(doc, change, spans); }\r\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\r\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\r\n if (doc.cm && !doc.cm.curOp)\r\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\r\n\r\n if (change.to.line < doc.first) {\r\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\r\n return;\r\n }\r\n if (change.from.line > doc.lastLine()) return;\r\n\r\n // Clip the change to the size of this doc\r\n if (change.from.line < doc.first) {\r\n var shift = change.text.length - 1 - (doc.first - change.from.line);\r\n shiftDoc(doc, shift);\r\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\r\n text: [lst(change.text)], origin: change.origin};\r\n }\r\n var last = doc.lastLine();\r\n if (change.to.line > last) {\r\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\r\n text: [change.text[0]], origin: change.origin};\r\n }\r\n\r\n change.removed = getBetween(doc, change.from, change.to);\r\n\r\n if (!selAfter) selAfter = computeSelAfterChange(doc, change);\r\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\r\n else updateDoc(doc, change, spans);\r\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\r\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return;\n }\n if (change.from.line > doc.lastLine()) return;\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) selAfter = computeSelAfterChange(doc, change, null);\n if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n else updateDoc(doc, change, spans);\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line))\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line)\n shiftDoc(doc, shift)\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin}\n }\n var last = doc.lastLine()\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin}\n }\n\n change.removed = getBetween(doc, change.from, change.to)\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change) }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans) }\n else { updateDoc(doc, change, spans) }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll)\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line))\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line)\n shiftDoc(doc, shift)\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin}\n }\n var last = doc.lastLine()\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin}\n }\n\n change.removed = getBetween(doc, change.from, change.to)\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change) }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans) }\n else { updateDoc(doc, change, spans) }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll)\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n}", "onChange(document) {\n if (fspath.basename(document.uri.fsPath) == \"property.json\") {\t\t\n this.refreshProperty.updateFolder(serve.opeParam.rootPath,serve.opeParam.workspacePath,document.uri.fsPath);\n this.refreshProperty.updatePrjInfo(serve.opeParam.rootPath,document.uri.fsPath);\n return;\n }\n if (!this.getHDLDocumentType(document)) {\n return;\n }\n else if (this.getHDLDocumentType(document) == 1 ) {\n this.HDLparam = this.parser.removeCurrentFileParam(document, this.HDLparam);\n this.parser.get_HDLfileparam(document, null, 0, null, this.HDLparam);\n this.parser.get_instModulePath(this.HDLparam);\n this.refresh();\n }\n }", "adoptedCallback(oldDocument, newDocument) {\r\n console.log(`adoptedCallback ${oldDocument} ${newDocument}`)\r\n }", "adoptedCallback(oldDocument, newDocument) {\n console.log(`adoptedCallback ${oldDocument} ${newDocument}`)\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n\t\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t\t if (!cm.options.lineWrapping) {\n\t\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t\t doc.iter(checkWidthStart, to.line + 1, function (line) {\n\t\t if (line == display.maxLine) {\n\t\t recomputeMaxLength = true;\n\t\t return true\n\t\t }\n\t\t });\n\t\t }\n\n\t\t if (doc.sel.contains(change.from, change.to) > -1)\n\t\t { signalCursorActivity(cm); }\n\n\t\t updateDoc(doc, change, spans, estimateHeight(cm));\n\n\t\t if (!cm.options.lineWrapping) {\n\t\t doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n\t\t var len = lineLength(line);\n\t\t if (len > display.maxLineLength) {\n\t\t display.maxLine = line;\n\t\t display.maxLineLength = len;\n\t\t display.maxLineChanged = true;\n\t\t recomputeMaxLength = false;\n\t\t }\n\t\t });\n\t\t if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n\t\t }\n\n\t\t retreatFrontier(doc, from.line);\n\t\t startWorker(cm, 400);\n\n\t\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t\t // Remember that these lines changed, for updating the display\n\t\t if (change.full)\n\t\t { regChange(cm); }\n\t\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t\t { regLineChange(cm, from.line, \"text\"); }\n\t\t else\n\t\t { regChange(cm, from.line, to.line + 1, lendiff); }\n\n\t\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t\t if (changeHandler || changesHandler) {\n\t\t var obj = {\n\t\t from: from, to: to,\n\t\t text: change.text,\n\t\t removed: change.removed,\n\t\t origin: change.origin\n\t\t };\n\t\t if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n\t\t if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n\t\t }\n\t\t cm.display.selForContextMenu = null;\n\t\t }", "function isWholeLineUpdate(doc, change) {\n return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == \"\" && (!doc.cm || doc.cm.options.wholeLineUpdateBefore);\n } // Perform a change on the document data structure.", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\t\t\n\t\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t\t if (!cm.options.lineWrapping) {\n\t\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t\t if (line == display.maxLine) {\n\t\t recomputeMaxLength = true;\n\t\t return true;\n\t\t }\n\t\t });\n\t\t }\n\t\t\n\t\t if (doc.sel.contains(change.from, change.to) > -1)\n\t\t signalCursorActivity(cm);\n\t\t\n\t\t updateDoc(doc, change, spans, estimateHeight(cm));\n\t\t\n\t\t if (!cm.options.lineWrapping) {\n\t\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t\t var len = lineLength(line);\n\t\t if (len > display.maxLineLength) {\n\t\t display.maxLine = line;\n\t\t display.maxLineLength = len;\n\t\t display.maxLineChanged = true;\n\t\t recomputeMaxLength = false;\n\t\t }\n\t\t });\n\t\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t\t }\n\t\t\n\t\t // Adjust frontier, schedule worker\n\t\t doc.frontier = Math.min(doc.frontier, from.line);\n\t\t startWorker(cm, 400);\n\t\t\n\t\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t\t // Remember that these lines changed, for updating the display\n\t\t if (change.full)\n\t\t regChange(cm);\n\t\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t\t regLineChange(cm, from.line, \"text\");\n\t\t else\n\t\t regChange(cm, from.line, to.line + 1, lendiff);\n\t\t\n\t\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t\t if (changeHandler || changesHandler) {\n\t\t var obj = {\n\t\t from: from, to: to,\n\t\t text: change.text,\n\t\t removed: change.removed,\n\t\t origin: change.origin\n\t\t };\n\t\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t\t }\n\t\t cm.display.selForContextMenu = null;\n\t\t }", "function makeChange(doc, change, ignoreReadOnly) {\n\t\t if (doc.cm) {\n\t\t if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);\n\t\t if (doc.cm.state.suppressEdits) return;\n\t\t }\n\t\t\n\t\t if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n\t\t change = filterChange(doc, change, true);\n\t\t if (!change) return;\n\t\t }\n\t\t\n\t\t // Possibly split or suppress the update based on the presence\n\t\t // of read-only spans in its range.\n\t\t var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n\t\t if (split) {\n\t\t for (var i = split.length - 1; i >= 0; --i)\n\t\t makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text});\n\t\t } else {\n\t\t makeChangeInner(doc, change);\n\t\t }\n\t\t }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\t\n\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t if (!cm.options.lineWrapping) {\n\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t if (line == display.maxLine) {\n\t recomputeMaxLength = true;\n\t return true;\n\t }\n\t });\n\t }\n\t\n\t if (doc.sel.contains(change.from, change.to) > -1)\n\t signalCursorActivity(cm);\n\t\n\t updateDoc(doc, change, spans, estimateHeight(cm));\n\t\n\t if (!cm.options.lineWrapping) {\n\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t var len = lineLength(line);\n\t if (len > display.maxLineLength) {\n\t display.maxLine = line;\n\t display.maxLineLength = len;\n\t display.maxLineChanged = true;\n\t recomputeMaxLength = false;\n\t }\n\t });\n\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t }\n\t\n\t // Adjust frontier, schedule worker\n\t doc.frontier = Math.min(doc.frontier, from.line);\n\t startWorker(cm, 400);\n\t\n\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t // Remember that these lines changed, for updating the display\n\t if (change.full)\n\t regChange(cm);\n\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t regLineChange(cm, from.line, \"text\");\n\t else\n\t regChange(cm, from.line, to.line + 1, lendiff);\n\t\n\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t if (changeHandler || changesHandler) {\n\t var obj = {\n\t from: from, to: to,\n\t text: change.text,\n\t removed: change.removed,\n\t origin: change.origin\n\t };\n\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t }\n\t cm.display.selForContextMenu = null;\n\t }", "_rebaseChange(args, cb) {\n this.documentEngine.getChanges({\n documentId: args.documentId,\n sinceVersion: args.version\n }, function(err, result) {\n let B = result.changes.map(this.deserializeChange)\n let a = this.deserializeChange(args.change)\n // transform changes\n DocumentChange.transformInplace(a, B)\n let ops = B.reduce(function(ops, change) {\n return ops.concat(change.ops)\n }, [])\n let serverChange = new DocumentChange(ops, {}, {})\n\n cb(null, {\n change: this.serializeChange(a),\n serverChange: this.serializeChange(serverChange),\n version: result.version\n })\n }.bind(this))\n }", "function makeChange(doc, change, ignoreReadOnly) {\n\t\t if (doc.cm) {\n\t\t if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n\t\t if (doc.cm.state.suppressEdits) { return }\n\t\t }\n\n\t\t if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n\t\t change = filterChange(doc, change, true);\n\t\t if (!change) { return }\n\t\t }\n\n\t\t // Possibly split or suppress the update based on the presence\n\t\t // of read-only spans in its range.\n\t\t var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n\t\t if (split) {\n\t\t for (var i = split.length - 1; i >= 0; --i)\n\t\t { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n\t\t } else {\n\t\t makeChangeInner(doc, change);\n\t\t }\n\t\t }", "adoptedCallback(oldDocument, newDocument) {\n\t\tsuper.adoptedCallback(oldDocument, newDocument)\n\t}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t if (!cm.options.lineWrapping) {\n\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t if (line == display.maxLine) {\n\t recomputeMaxLength = true;\n\t return true;\n\t }\n\t });\n\t }\n\n\t if (doc.sel.contains(change.from, change.to) > -1)\n\t signalCursorActivity(cm);\n\n\t updateDoc(doc, change, spans, estimateHeight(cm));\n\n\t if (!cm.options.lineWrapping) {\n\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t var len = lineLength(line);\n\t if (len > display.maxLineLength) {\n\t display.maxLine = line;\n\t display.maxLineLength = len;\n\t display.maxLineChanged = true;\n\t recomputeMaxLength = false;\n\t }\n\t });\n\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t }\n\n\t // Adjust frontier, schedule worker\n\t doc.frontier = Math.min(doc.frontier, from.line);\n\t startWorker(cm, 400);\n\n\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t // Remember that these lines changed, for updating the display\n\t if (change.full)\n\t regChange(cm);\n\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t regLineChange(cm, from.line, \"text\");\n\t else\n\t regChange(cm, from.line, to.line + 1, lendiff);\n\n\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t if (changeHandler || changesHandler) {\n\t var obj = {\n\t from: from, to: to,\n\t text: change.text,\n\t removed: change.removed,\n\t origin: change.origin\n\t };\n\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t }\n\t cm.display.selForContextMenu = null;\n\t }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t if (!cm.options.lineWrapping) {\n\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t if (line == display.maxLine) {\n\t recomputeMaxLength = true;\n\t return true;\n\t }\n\t });\n\t }\n\n\t if (doc.sel.contains(change.from, change.to) > -1)\n\t signalCursorActivity(cm);\n\n\t updateDoc(doc, change, spans, estimateHeight(cm));\n\n\t if (!cm.options.lineWrapping) {\n\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t var len = lineLength(line);\n\t if (len > display.maxLineLength) {\n\t display.maxLine = line;\n\t display.maxLineLength = len;\n\t display.maxLineChanged = true;\n\t recomputeMaxLength = false;\n\t }\n\t });\n\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t }\n\n\t // Adjust frontier, schedule worker\n\t doc.frontier = Math.min(doc.frontier, from.line);\n\t startWorker(cm, 400);\n\n\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t // Remember that these lines changed, for updating the display\n\t if (change.full)\n\t regChange(cm);\n\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t regLineChange(cm, from.line, \"text\");\n\t else\n\t regChange(cm, from.line, to.line + 1, lendiff);\n\n\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t if (changeHandler || changesHandler) {\n\t var obj = {\n\t from: from, to: to,\n\t text: change.text,\n\t removed: change.removed,\n\t origin: change.origin\n\t };\n\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t }\n\t cm.display.selForContextMenu = null;\n\t }", "apply(doc) {\n if (this.length != doc.length)\n throw new RangeError(\"Applying change set to a document with the wrong length\");\n iterChanges(this, (fromA, toA, fromB, _toB, text) => doc = doc.replace(fromB, fromB + (toA - fromA), text), false);\n return doc;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\r\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\r\n\r\n var recomputeMaxLength = false, checkWidthStart = from.line;\r\n if (!cm.options.lineWrapping) {\r\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\r\n doc.iter(checkWidthStart, to.line + 1, function (line) {\r\n if (line == display.maxLine) {\r\n recomputeMaxLength = true;\r\n return true\r\n }\r\n });\r\n }\r\n\r\n if (doc.sel.contains(change.from, change.to) > -1)\r\n { signalCursorActivity(cm); }\r\n\r\n updateDoc(doc, change, spans, estimateHeight(cm));\r\n\r\n if (!cm.options.lineWrapping) {\r\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\r\n var len = lineLength(line);\r\n if (len > display.maxLineLength) {\r\n display.maxLine = line;\r\n display.maxLineLength = len;\r\n display.maxLineChanged = true;\r\n recomputeMaxLength = false;\r\n }\r\n });\r\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\r\n }\r\n\r\n retreatFrontier(doc, from.line);\r\n startWorker(cm, 400);\r\n\r\n var lendiff = change.text.length - (to.line - from.line) - 1;\r\n // Remember that these lines changed, for updating the display\r\n if (change.full)\r\n { regChange(cm); }\r\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\r\n { regLineChange(cm, from.line, \"text\"); }\r\n else\r\n { regChange(cm, from.line, to.line + 1, lendiff); }\r\n\r\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\r\n if (changeHandler || changesHandler) {\r\n var obj = {\r\n from: from, to: to,\r\n text: change.text,\r\n removed: change.removed,\r\n origin: change.origin\r\n };\r\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\r\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\r\n }\r\n cm.display.selForContextMenu = null;\r\n}", "function makeChange(doc, change, ignoreReadOnly) {\r\n if (doc.cm) {\r\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\r\n if (doc.cm.state.suppressEdits) { return }\r\n }\r\n\r\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\r\n change = filterChange(doc, change, true);\r\n if (!change) { return }\r\n }\r\n\r\n // Possibly split or suppress the update based on the presence\r\n // of read-only spans in its range.\r\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\r\n if (split) {\r\n for (var i = split.length - 1; i >= 0; --i)\r\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\r\n } else {\r\n makeChangeInner(doc, change);\r\n }\r\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true)\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to)\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text}) }\n } else {\n makeChangeInner(doc, change)\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true)\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to)\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text}) }\n } else {\n makeChangeInner(doc, change)\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n\t if (doc.cm) {\n\t if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);\n\t if (doc.cm.state.suppressEdits) return;\n\t }\n\t\n\t if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n\t change = filterChange(doc, change, true);\n\t if (!change) return;\n\t }\n\t\n\t // Possibly split or suppress the update based on the presence\n\t // of read-only spans in its range.\n\t var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n\t if (split) {\n\t for (var i = split.length - 1; i >= 0; --i)\n\t makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text});\n\t } else {\n\t makeChangeInner(doc, change);\n\t }\n\t }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n}", "function makeChange(doc, change, ignoreReadOnly) {\r\n if (doc.cm) {\r\n if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);\r\n if (doc.cm.state.suppressEdits) return;\r\n }\r\n\r\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\r\n change = filterChange(doc, change, true);\r\n if (!change) return;\r\n }\r\n\r\n // Possibly split or suppress the update based on the presence\r\n // of read-only spans in its range.\r\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\r\n if (split) {\r\n for (var i = split.length - 1; i >= 0; --i)\r\n makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text});\r\n } else {\r\n makeChangeInner(doc, change);\r\n }\r\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function changeDoc(req, res) {\n var id = req.swagger.params.id.value;\n var data = JSON.parse(req.swagger.params.docname.value);\n var userId = req.decoded.user_id;\n var clientId = req.decoded.client_id;\n var name = data.docname;\n var autor = data.autor;\n var filename = data.filename\n var query = '';\n //console.log(name); \n if (data.docname) {\n query = `Update sadrzaj set \n name = '` + name + `', \n modified_by = ` + userId + `,\n modified_ts = NOW()\n\n where id =` + id + ` `;\n }\n if (data.autor) {\n query = `Update ri.dokumentacija set \n autor = '` + autor + `'\n where id =` + id + ` `;\n }\n if(data.filename)\n {\n query = `Update ri.dokumentacija set \n link = '` + filename + `' \n where id =` + id + ` `;\n }\n console.log(query);\n \n var client = new pg.Client(conString);\n client.connect(function(err) {\n if (err) {\n return console.error('could not connect to postgres', err);\n } else { \n client.query(query, function(err, result) {\n if (err) {\n return console.error('error running query', err);\n } else {\n\n res.json(\"Changed\");\n }\n })\n }\n })\n\n \n}", "function updateDoc(cm, from, to, newText, selUpdate, origin) {\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans &&\n removeReadOnlyRanges(cm.view.doc, from, to);\n if (split) {\n for (var i = split.length - 1; i >= 1; --i)\n updateDocInner(cm, split[i].from, split[i].to, [\"\"], origin);\n if (split.length)\n return updateDocInner(cm, split[0].from, split[0].to, newText, selUpdate, origin);\n } else {\n return updateDocInner(cm, from, to, newText, selUpdate, origin);\n }\n }", "function updateDoc(cm, from, to, newText, selUpdate, origin) {\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans &&\n removeReadOnlyRanges(cm.view.doc, from, to);\n if (split) {\n for (var i = split.length - 1; i >= 1; --i)\n updateDocInner(cm, split[i].from, split[i].to, [\"\"], origin);\n if (split.length)\n return updateDocInner(cm, split[0].from, split[0].to, newText, selUpdate, origin);\n } else {\n return updateDocInner(cm, from, to, newText, selUpdate, origin);\n }\n }", "function updateDoc(cm, from, to, newText, selUpdate, origin) {\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans &&\n removeReadOnlyRanges(cm.view.doc, from, to);\n if (split) {\n for (var i = split.length - 1; i >= 1; --i)\n updateDocInner(cm, split[i].from, split[i].to, [\"\"], origin);\n if (split.length)\n return updateDocInner(cm, split[0].from, split[0].to, newText, selUpdate, origin);\n } else {\n return updateDocInner(cm, from, to, newText, selUpdate, origin);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n\t if (doc.cm) {\n\t if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);\n\t if (doc.cm.state.suppressEdits) return;\n\t }\n\n\t if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n\t change = filterChange(doc, change, true);\n\t if (!change) return;\n\t }\n\n\t // Possibly split or suppress the update based on the presence\n\t // of read-only spans in its range.\n\t var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n\t if (split) {\n\t for (var i = split.length - 1; i >= 0; --i)\n\t makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text});\n\t } else {\n\t makeChangeInner(doc, change);\n\t }\n\t }", "function makeChange(doc, change, ignoreReadOnly) {\n\t if (doc.cm) {\n\t if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);\n\t if (doc.cm.state.suppressEdits) return;\n\t }\n\n\t if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n\t change = filterChange(doc, change, true);\n\t if (!change) return;\n\t }\n\n\t // Possibly split or suppress the update based on the presence\n\t // of read-only spans in its range.\n\t var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n\t if (split) {\n\t for (var i = split.length - 1; i >= 0; --i)\n\t makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text});\n\t } else {\n\t makeChangeInner(doc, change);\n\t }\n\t }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }", "function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }" ]
[ "0.70032954", "0.6605747", "0.6573152", "0.65437555", "0.6486668", "0.6486668", "0.64346707", "0.64346707", "0.64346707", "0.64346707", "0.64346707", "0.6405342", "0.6405342", "0.6405342", "0.6405342", "0.6405342", "0.6405342", "0.6403209", "0.63989764", "0.6398355", "0.6361549", "0.6361549", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.6353459", "0.62855536", "0.62779605", "0.6191151", "0.61387336", "0.60900867", "0.6067837", "0.60470605", "0.60360324", "0.60175526", "0.60097885", "0.6009554", "0.60071737", "0.60071737", "0.59361595", "0.59333485", "0.5931474", "0.59208214", "0.59208214", "0.59202504", "0.5916159", "0.5904241", "0.5904241", "0.5904241", "0.5904241", "0.5904241", "0.5904241", "0.5904241", "0.5904241", "0.5904241", "0.5904241", "0.5887077", "0.58799", "0.58799", "0.58799", "0.58799", "0.58799", "0.58799", "0.58799", "0.58799", "0.58799", "0.58799", "0.58799", "0.5863875", "0.5861633", "0.5861633", "0.5861633", "0.5860044", "0.5860044", "0.585883", "0.585883", "0.585883", "0.585883", "0.585883", "0.585883", "0.585883", "0.585883" ]
0.6453599
17
Handle the interaction of a change to a document with the editor that this document is part of.
function makeChangeSingleDocInEditor(cm, change, spans) { var doc = cm.doc, display = cm.display, from = change.from, to = change.to; var recomputeMaxLength = false, checkWidthStart = from.line; if (!cm.options.lineWrapping) { checkWidthStart = lineNo(visualLine(getLine(doc, from.line))); doc.iter(checkWidthStart, to.line + 1, function (line) { if (line == display.maxLine) { recomputeMaxLength = true; return true } }); } if (doc.sel.contains(change.from, change.to) > -1) { signalCursorActivity(cm); } updateDoc(doc, change, spans, estimateHeight(cm)); if (!cm.options.lineWrapping) { doc.iter(checkWidthStart, from.line + change.text.length, function (line) { var len = lineLength(line); if (len > display.maxLineLength) { display.maxLine = line; display.maxLineLength = len; display.maxLineChanged = true; recomputeMaxLength = false; } }); if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; } } retreatFrontier(doc, from.line); startWorker(cm, 400); var lendiff = change.text.length - (to.line - from.line) - 1; // Remember that these lines changed, for updating the display if (change.full) { regChange(cm); } else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change)) { regLineChange(cm, from.line, "text"); } else { regChange(cm, from.line, to.line + 1, lendiff); } var changesHandler = hasHandler(cm, "changes"), changeHandler = hasHandler(cm, "change"); if (changeHandler || changesHandler) { var obj = { from: from, to: to, text: change.text, removed: change.removed, origin: change.origin }; if (changeHandler) { signalLater(cm, "change", cm, obj); } if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); } } cm.display.selForContextMenu = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _onCurrentDocumentChange() {\n var doc = DocumentManager.getCurrentDocument(),\n container = _editorHolder.get(0);\n \n var perfTimerName = PerfUtils.markStart(\"EditorManager._onCurrentDocumentChange():\\t\" + (!doc || doc.file.fullPath));\n\n // Remove scroller-shadow from the current editor\n if (_currentEditor) {\n ViewUtils.removeScrollerShadow(container, _currentEditor);\n }\n \n // Update the UI to show the right editor (or nothing), and also dispose old editor if no\n // longer needed.\n if (doc) {\n _showEditor(doc);\n ViewUtils.addScrollerShadow(container, _currentEditor);\n } else {\n _showNoEditor();\n }\n\n\n PerfUtils.addMeasurement(perfTimerName);\n }", "_editorChanged() {\n this.dispatchEvent(\n new CustomEvent(\"editor-change\", {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: this,\n })\n );\n }", "function onChangeHandler() {\n\t\tconst value = editor.codemirror.getValue();\n\t\tunsavedChanges.setHasChanges(value !== settings.getDefaultValue(\"documentContent\"));\n\t\t// Render the Markdown to the viewer.\n\t\tviewer.render(value, function() {\n\t\t\t// Sync to the linked scrollbars to match the new content.\n\t\t\tscrollSync.sync($(\".CodeMirror-scroll\"), $(\".CodeMirror-scroll\"), $(\".CodeMirror-scroll, #viewer-container\"), true);\n\t\t});\n\t\tsettings.setSetting(\"documentContent\", value);\n\t}", "onEditorChange() {\n // If the handler is in standby mode, bail.\n if (this._standby) {\n return;\n }\n const editor = this.editor;\n if (!editor) {\n return;\n }\n const text = editor.model.value.text;\n const position = editor.getCursorPosition();\n const offset = Text.jsIndexToCharIndex(editor.getOffsetAt(position), text);\n const update = { content: null };\n const pending = ++this._pending;\n void this._connector\n .fetch({ offset, text })\n .then(reply => {\n // If handler has been disposed or a newer request is pending, bail.\n if (this.isDisposed || pending !== this._pending) {\n this._inspected.emit(update);\n return;\n }\n const { data } = reply;\n const mimeType = this._rendermime.preferredMimeType(data);\n if (mimeType) {\n const widget = this._rendermime.createRenderer(mimeType);\n const model = new MimeModel({ data });\n void widget.renderModel(model);\n update.content = widget;\n }\n this._inspected.emit(update);\n })\n .catch(reason => {\n // Since almost all failures are benign, fail silently.\n this._inspected.emit(update);\n });\n }", "function _onEditorChanged() {\n\t\t_close();\n\t\tcurrentEditor = EditorManager.getCurrentFullEditor();\n\n\t\tcurrentEditor.$textNode = $(currentEditor.getRootElement()).find(\".CodeMirror-lines\");\n\t\tcurrentEditor.$textNode = $(currentEditor.$textNode.children()[0].children[3]);\n\t\tcurrentEditor.$numbersNode = $(currentEditor.getRootElement()).find(\".CodeMirror-gutter-text\");\n\n\t\t\n\t}", "onDocumentOpenOrContentChanged(document) {\n if (!this.startDataLoaded) {\n return;\n }\n // No need to handle file opening because we have preloaded all the files.\n // Open and changed event will be distinguished by document version later.\n if (this.shouldTrackFile(vscode_uri_1.URI.parse(document.uri).fsPath)) {\n this.trackOpenedDocument(document);\n }\n }", "function _handler(event, document, changes) {\n if (!(changes instanceof Array)) {\n changes = [changes];\n }\n\n changes.forEach(function (change) {\n var token = change.text[0],\n to = {\n ch: change.from.ch + 1,\n line: change.from.line\n };\n \n // Cancel a change if a closing character is typed after an insertion otherwise\n //Insert the matching closing character and push the token entered on the stack.\n if (_matchStack[_matchStack.length - 1] === token) {\n document.replaceRange('', change.from, to);\n document._masterEditor.setCursorPos(to);\n _matchStack.pop();\n } else if (_pairs.hasOwnProperty(token)) {\n document.replaceRange(_pairs[token], to);\n document._masterEditor.setCursorPos(to);\n _matchStack.push(_pairs[token]);\n }\n //delete matching closing character if an opening character is deleted\n if (change.origin === \"+delete\" && _matchStack.length &&\n _pairs[_deletedToken] === _matchStack[_matchStack.length - 1]) {\n document.replaceRange('', change.from, to);\n document._masterEditor.setCursorPos(change.from);\n _matchStack.pop();\n }\n // Business time.\n $(document).one(\"change\", _handler);\n });\n }", "connectedCallback(){super.connectedCallback();let root=this;document.addEventListener(\"selectionchange\",e=>{root.range=root.getRange()});document.addEventListener(\"select-rich-text-editor-editor\",e=>{root._editorChange(e)});document.addEventListener(\"deselect-rich-text-editor-editor\",e=>{root._editorChange(e)})}", "function handleTextEditorChange(event) {\n if(isStorytellerCurrentlyActive) {\n //path to the file that is being edited\n const filePath = event.document.fileName;\n\n //if the file being edited is in the tracked st project\n if(filePath.startsWith(vscode.workspace.workspaceFolders[0].uri.fsPath) === true) {\n //go through each of the changes in this change event (there can \n //be more than one if there are multiple cursors)\n for(let i = 0;i < event.contentChanges.length;i++) {\n //get the change object\n const change = event.contentChanges[i];\n \n //if no text has been added, then this is a delete\n if(change.text.length === 0) {\n //get some data about the delete\n const numCharactersDeleted = change.rangeLength;\n const deleteTextStartLine = change.range.start.line;\n const deleteTextStartColumn = change.range.start.character;\n \n //record the deletion of text\n projectManager.handleDeletedText(filePath, deleteTextStartLine, deleteTextStartColumn, numCharactersDeleted);\n } else { //new text has been added in this change, this is an insert\n //if there was some text that was selected and replaced \n //(deleted and then added)\n if(change.rangeLength > 0) {\n //get some data about the delete\n const numCharactersDeleted = change.rangeLength;\n const deleteTextStartLine = change.range.start.line;\n const deleteTextStartColumn = change.range.start.character;\n\n //first delete the selected code (insert of new text to follow)\n projectManager.handleDeletedText(filePath, deleteTextStartLine, deleteTextStartColumn, numCharactersDeleted);\n } \n \n //get some data about the insert\n const newText = change.text;\n const newTextStartLine = change.range.start.line;\n const newTextStartColumn = change.range.start.character;\n \n //a set of all the event ids from a copy/cut\n let pastedInsertEventIds = [];\n\n //if this was a paste\n if(clipboardData.activePaste) { \n //if the new text is exactly the same as what was on our clipboard\n if(newText === clipboardData.text) {\n //store the pasted event ids\n pastedInsertEventIds = clipboardData.eventIds;\n } else { //this is a paste but it doesn't match the last storyteller copy/cut (pasted from another source)\n //create an array of strings with 'other' for the paste event ids to signify a paste from outside the editor\n pastedInsertEventIds = newText.split('').map(() => 'other');\n\n //clear out any old data\n clipboardData.text = '';\n clipboardData.eventIds = [];\n }\n\n //we handled the most current paste, set this back to false\n clipboardData.activePaste = false;\n }\n //record the insertion of new text\n projectManager.handleInsertedText(filePath, newText, newTextStartLine, newTextStartColumn, pastedInsertEventIds);\n }\n }\n }\n }\n}", "editorTextChange(e) {\n this.props.editorTextChange( document.getElementById('editor').value );\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n\t\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t\t if (!cm.options.lineWrapping) {\n\t\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t\t doc.iter(checkWidthStart, to.line + 1, function (line) {\n\t\t if (line == display.maxLine) {\n\t\t recomputeMaxLength = true;\n\t\t return true\n\t\t }\n\t\t });\n\t\t }\n\n\t\t if (doc.sel.contains(change.from, change.to) > -1)\n\t\t { signalCursorActivity(cm); }\n\n\t\t updateDoc(doc, change, spans, estimateHeight(cm));\n\n\t\t if (!cm.options.lineWrapping) {\n\t\t doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n\t\t var len = lineLength(line);\n\t\t if (len > display.maxLineLength) {\n\t\t display.maxLine = line;\n\t\t display.maxLineLength = len;\n\t\t display.maxLineChanged = true;\n\t\t recomputeMaxLength = false;\n\t\t }\n\t\t });\n\t\t if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n\t\t }\n\n\t\t retreatFrontier(doc, from.line);\n\t\t startWorker(cm, 400);\n\n\t\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t\t // Remember that these lines changed, for updating the display\n\t\t if (change.full)\n\t\t { regChange(cm); }\n\t\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t\t { regLineChange(cm, from.line, \"text\"); }\n\t\t else\n\t\t { regChange(cm, from.line, to.line + 1, lendiff); }\n\n\t\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t\t if (changeHandler || changesHandler) {\n\t\t var obj = {\n\t\t from: from, to: to,\n\t\t text: change.text,\n\t\t removed: change.removed,\n\t\t origin: change.origin\n\t\t };\n\t\t if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n\t\t if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n\t\t }\n\t\t cm.display.selForContextMenu = null;\n\t\t }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\t\t\n\t\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t\t if (!cm.options.lineWrapping) {\n\t\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t\t if (line == display.maxLine) {\n\t\t recomputeMaxLength = true;\n\t\t return true;\n\t\t }\n\t\t });\n\t\t }\n\t\t\n\t\t if (doc.sel.contains(change.from, change.to) > -1)\n\t\t signalCursorActivity(cm);\n\t\t\n\t\t updateDoc(doc, change, spans, estimateHeight(cm));\n\t\t\n\t\t if (!cm.options.lineWrapping) {\n\t\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t\t var len = lineLength(line);\n\t\t if (len > display.maxLineLength) {\n\t\t display.maxLine = line;\n\t\t display.maxLineLength = len;\n\t\t display.maxLineChanged = true;\n\t\t recomputeMaxLength = false;\n\t\t }\n\t\t });\n\t\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t\t }\n\t\t\n\t\t // Adjust frontier, schedule worker\n\t\t doc.frontier = Math.min(doc.frontier, from.line);\n\t\t startWorker(cm, 400);\n\t\t\n\t\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t\t // Remember that these lines changed, for updating the display\n\t\t if (change.full)\n\t\t regChange(cm);\n\t\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t\t regLineChange(cm, from.line, \"text\");\n\t\t else\n\t\t regChange(cm, from.line, to.line + 1, lendiff);\n\t\t\n\t\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t\t if (changeHandler || changesHandler) {\n\t\t var obj = {\n\t\t from: from, to: to,\n\t\t text: change.text,\n\t\t removed: change.removed,\n\t\t origin: change.origin\n\t\t };\n\t\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t\t }\n\t\t cm.display.selForContextMenu = null;\n\t\t }", "function handleChange(editor, data, value) {\n onChange(value);\n }", "function handleChange(editor, data, value) {\n onChange(value);\n }", "onChange(document) {\n if (fspath.basename(document.uri.fsPath) == \"property.json\") {\t\t\n this.refreshProperty.updateFolder(serve.opeParam.rootPath,serve.opeParam.workspacePath,document.uri.fsPath);\n this.refreshProperty.updatePrjInfo(serve.opeParam.rootPath,document.uri.fsPath);\n return;\n }\n if (!this.getHDLDocumentType(document)) {\n return;\n }\n else if (this.getHDLDocumentType(document) == 1 ) {\n this.HDLparam = this.parser.removeCurrentFileParam(document, this.HDLparam);\n this.parser.get_HDLfileparam(document, null, 0, null, this.HDLparam);\n this.parser.get_instModulePath(this.HDLparam);\n this.refresh();\n }\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\t\n\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t if (!cm.options.lineWrapping) {\n\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t if (line == display.maxLine) {\n\t recomputeMaxLength = true;\n\t return true;\n\t }\n\t });\n\t }\n\t\n\t if (doc.sel.contains(change.from, change.to) > -1)\n\t signalCursorActivity(cm);\n\t\n\t updateDoc(doc, change, spans, estimateHeight(cm));\n\t\n\t if (!cm.options.lineWrapping) {\n\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t var len = lineLength(line);\n\t if (len > display.maxLineLength) {\n\t display.maxLine = line;\n\t display.maxLineLength = len;\n\t display.maxLineChanged = true;\n\t recomputeMaxLength = false;\n\t }\n\t });\n\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t }\n\t\n\t // Adjust frontier, schedule worker\n\t doc.frontier = Math.min(doc.frontier, from.line);\n\t startWorker(cm, 400);\n\t\n\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t // Remember that these lines changed, for updating the display\n\t if (change.full)\n\t regChange(cm);\n\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t regLineChange(cm, from.line, \"text\");\n\t else\n\t regChange(cm, from.line, to.line + 1, lendiff);\n\t\n\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t if (changeHandler || changesHandler) {\n\t var obj = {\n\t from: from, to: to,\n\t text: change.text,\n\t removed: change.removed,\n\t origin: change.origin\n\t };\n\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t }\n\t cm.display.selForContextMenu = null;\n\t }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t if (!cm.options.lineWrapping) {\n\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t if (line == display.maxLine) {\n\t recomputeMaxLength = true;\n\t return true;\n\t }\n\t });\n\t }\n\n\t if (doc.sel.contains(change.from, change.to) > -1)\n\t signalCursorActivity(cm);\n\n\t updateDoc(doc, change, spans, estimateHeight(cm));\n\n\t if (!cm.options.lineWrapping) {\n\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t var len = lineLength(line);\n\t if (len > display.maxLineLength) {\n\t display.maxLine = line;\n\t display.maxLineLength = len;\n\t display.maxLineChanged = true;\n\t recomputeMaxLength = false;\n\t }\n\t });\n\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t }\n\n\t // Adjust frontier, schedule worker\n\t doc.frontier = Math.min(doc.frontier, from.line);\n\t startWorker(cm, 400);\n\n\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t // Remember that these lines changed, for updating the display\n\t if (change.full)\n\t regChange(cm);\n\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t regLineChange(cm, from.line, \"text\");\n\t else\n\t regChange(cm, from.line, to.line + 1, lendiff);\n\n\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t if (changeHandler || changesHandler) {\n\t var obj = {\n\t from: from, to: to,\n\t text: change.text,\n\t removed: change.removed,\n\t origin: change.origin\n\t };\n\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t }\n\t cm.display.selForContextMenu = null;\n\t }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t if (!cm.options.lineWrapping) {\n\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t doc.iter(checkWidthStart, to.line + 1, function(line) {\n\t if (line == display.maxLine) {\n\t recomputeMaxLength = true;\n\t return true;\n\t }\n\t });\n\t }\n\n\t if (doc.sel.contains(change.from, change.to) > -1)\n\t signalCursorActivity(cm);\n\n\t updateDoc(doc, change, spans, estimateHeight(cm));\n\n\t if (!cm.options.lineWrapping) {\n\t doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n\t var len = lineLength(line);\n\t if (len > display.maxLineLength) {\n\t display.maxLine = line;\n\t display.maxLineLength = len;\n\t display.maxLineChanged = true;\n\t recomputeMaxLength = false;\n\t }\n\t });\n\t if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n\t }\n\n\t // Adjust frontier, schedule worker\n\t doc.frontier = Math.min(doc.frontier, from.line);\n\t startWorker(cm, 400);\n\n\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t // Remember that these lines changed, for updating the display\n\t if (change.full)\n\t regChange(cm);\n\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t regLineChange(cm, from.line, \"text\");\n\t else\n\t regChange(cm, from.line, to.line + 1, lendiff);\n\n\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t if (changeHandler || changesHandler) {\n\t var obj = {\n\t from: from, to: to,\n\t text: change.text,\n\t removed: change.removed,\n\t origin: change.origin\n\t };\n\t if (changeHandler) signalLater(cm, \"change\", cm, obj);\n\t if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n\t }\n\t cm.display.selForContextMenu = null;\n\t }", "function makeChangeSingleDocInEditor(cm, change, spans) {\r\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\r\n\r\n var recomputeMaxLength = false, checkWidthStart = from.line;\r\n if (!cm.options.lineWrapping) {\r\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\r\n doc.iter(checkWidthStart, to.line + 1, function(line) {\r\n if (line == display.maxLine) {\r\n recomputeMaxLength = true;\r\n return true;\r\n }\r\n });\r\n }\r\n\r\n if (doc.sel.contains(change.from, change.to) > -1)\r\n signalCursorActivity(cm);\r\n\r\n updateDoc(doc, change, spans, estimateHeight(cm));\r\n\r\n if (!cm.options.lineWrapping) {\r\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\r\n var len = lineLength(line);\r\n if (len > display.maxLineLength) {\r\n display.maxLine = line;\r\n display.maxLineLength = len;\r\n display.maxLineChanged = true;\r\n recomputeMaxLength = false;\r\n }\r\n });\r\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\r\n }\r\n\r\n // Adjust frontier, schedule worker\r\n doc.frontier = Math.min(doc.frontier, from.line);\r\n startWorker(cm, 400);\r\n\r\n var lendiff = change.text.length - (to.line - from.line) - 1;\r\n // Remember that these lines changed, for updating the display\r\n if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\r\n regLineChange(cm, from.line, \"text\");\r\n else\r\n regChange(cm, from.line, to.line + 1, lendiff);\r\n\r\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\r\n if (changeHandler || changesHandler) {\r\n var obj = {\r\n from: from, to: to,\r\n text: change.text,\r\n removed: change.removed,\r\n origin: change.origin\r\n };\r\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\r\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\r\n }\r\n cm.display.selForContextMenu = null;\r\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\r\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\r\n\r\n var recomputeMaxLength = false, checkWidthStart = from.line;\r\n if (!cm.options.lineWrapping) {\r\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\r\n doc.iter(checkWidthStart, to.line + 1, function (line) {\r\n if (line == display.maxLine) {\r\n recomputeMaxLength = true;\r\n return true\r\n }\r\n });\r\n }\r\n\r\n if (doc.sel.contains(change.from, change.to) > -1)\r\n { signalCursorActivity(cm); }\r\n\r\n updateDoc(doc, change, spans, estimateHeight(cm));\r\n\r\n if (!cm.options.lineWrapping) {\r\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\r\n var len = lineLength(line);\r\n if (len > display.maxLineLength) {\r\n display.maxLine = line;\r\n display.maxLineLength = len;\r\n display.maxLineChanged = true;\r\n recomputeMaxLength = false;\r\n }\r\n });\r\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\r\n }\r\n\r\n retreatFrontier(doc, from.line);\r\n startWorker(cm, 400);\r\n\r\n var lendiff = change.text.length - (to.line - from.line) - 1;\r\n // Remember that these lines changed, for updating the display\r\n if (change.full)\r\n { regChange(cm); }\r\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\r\n { regLineChange(cm, from.line, \"text\"); }\r\n else\r\n { regChange(cm, from.line, to.line + 1, lendiff); }\r\n\r\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\r\n if (changeHandler || changesHandler) {\r\n var obj = {\r\n from: from, to: to,\r\n text: change.text,\r\n removed: change.removed,\r\n origin: change.origin\r\n };\r\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\r\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\r\n }\r\n cm.display.selForContextMenu = null;\r\n}", "function updateEditor() {\n\t\ttextToEditor();\n\t\tpositionEditorCaret();\n\t}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function(line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n signalCursorActivity(cm);\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n regLineChange(cm, from.line, \"text\");\n else\n regChange(cm, from.line, to.line + 1, lendiff);\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n cm.display.selForContextMenu = null;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function(line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n signalCursorActivity(cm);\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n regLineChange(cm, from.line, \"text\");\n else\n regChange(cm, from.line, to.line + 1, lendiff);\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n cm.display.selForContextMenu = null;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function(line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n signalCursorActivity(cm);\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n regLineChange(cm, from.line, \"text\");\n else\n regChange(cm, from.line, to.line + 1, lendiff);\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n cm.display.selForContextMenu = null;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function(line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n signalCursorActivity(cm);\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n regChange(cm);\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n regLineChange(cm, from.line, \"text\");\n else\n regChange(cm, from.line, to.line + 1, lendiff);\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n cm.display.selForContextMenu = null;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function(line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n signalCursorActivity(cm);\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n regChange(cm);\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n regLineChange(cm, from.line, \"text\");\n else\n regChange(cm, from.line, to.line + 1, lendiff);\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n cm.display.selForContextMenu = null;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function(line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n signalCursorActivity(cm);\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n regChange(cm);\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n regLineChange(cm, from.line, \"text\");\n else\n regChange(cm, from.line, to.line + 1, lendiff);\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n cm.display.selForContextMenu = null;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function(line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n signalCursorActivity(cm);\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function(line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) cm.curOp.updateMaxLine = true;\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n regChange(cm);\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n regLineChange(cm, from.line, \"text\");\n else\n regChange(cm, from.line, to.line + 1, lendiff);\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) signalLater(cm, \"change\", cm, obj);\n if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n cm.display.selForContextMenu = null;\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to\n\n var recomputeMaxLength = false, checkWidthStart = from.line\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)))\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true\n return true\n }\n })\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm) }\n\n updateDoc(doc, change, spans, estimateHeight(cm))\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line)\n if (len > display.maxLineLength) {\n display.maxLine = line\n display.maxLineLength = len\n display.maxLineChanged = true\n recomputeMaxLength = false\n }\n })\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true }\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line)\n startWorker(cm, 400)\n\n var lendiff = change.text.length - (to.line - from.line) - 1\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm) }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\") }\n else\n { regChange(cm, from.line, to.line + 1, lendiff) }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\")\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n }\n if (changeHandler) { signalLater(cm, \"change\", cm, obj) }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj) }\n }\n cm.display.selForContextMenu = null\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to\n\n var recomputeMaxLength = false, checkWidthStart = from.line\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)))\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true\n return true\n }\n })\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm) }\n\n updateDoc(doc, change, spans, estimateHeight(cm))\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line)\n if (len > display.maxLineLength) {\n display.maxLine = line\n display.maxLineLength = len\n display.maxLineChanged = true\n recomputeMaxLength = false\n }\n })\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true }\n }\n\n // Adjust frontier, schedule worker\n doc.frontier = Math.min(doc.frontier, from.line)\n startWorker(cm, 400)\n\n var lendiff = change.text.length - (to.line - from.line) - 1\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm) }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\") }\n else\n { regChange(cm, from.line, to.line + 1, lendiff) }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\")\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n }\n if (changeHandler) { signalLater(cm, \"change\", cm, obj) }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj) }\n }\n cm.display.selForContextMenu = null\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n}", "fireContentChange() {\n if (this.selection.isHighlightEditRegion) {\n this.selection.onHighlight();\n }\n if (!this.isPaste) {\n this.copiedContent = undefined;\n this.copiedTextContent = '';\n this.selection.isViewPasteOptions = false;\n if (this.isPasteListUpdated) {\n this.isPasteListUpdated = false;\n }\n this.selection.showHidePasteOptions(undefined, undefined);\n }\n if (this.viewer.owner.isLayoutEnabled && !this.viewer.owner.isShiftingEnabled) {\n this.viewer.owner.fireContentChange();\n }\n }", "function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc,\n display = cm.display,\n from = change.from,\n to = change.to;\n var recomputeMaxLength = false,\n checkWidthStart = from.line;\n\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true;\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1) {\n signalCursorActivity(cm);\n }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n\n if (recomputeMaxLength) {\n cm.curOp.updateMaxLine = true;\n }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n var lendiff = change.text.length - (to.line - from.line) - 1; // Remember that these lines changed, for updating the display\n\n if (change.full) {\n regChange(cm);\n } else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change)) {\n regLineChange(cm, from.line, \"text\");\n } else {\n regChange(cm, from.line, to.line + 1, lendiff);\n }\n\n var changesHandler = hasHandler(cm, \"changes\"),\n changeHandler = hasHandler(cm, \"change\");\n\n if (changeHandler || changesHandler) {\n var obj = {\n from: from,\n to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n\n if (changeHandler) {\n signalLater(cm, \"change\", cm, obj);\n }\n\n if (changesHandler) {\n (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);\n }\n }\n\n cm.display.selForContextMenu = null;\n }", "_editorChange(e,deselect=!1){let root=this,editorChange=root.editor!==e.detail.editor,toolbarChange=root.toolbar!==e.detail.toolbar;if(deselect||editorChange||toolbarChange){let sel=window.getSelection();sel.removeAllRanges();root.editor=e.detail.editor;root.toolbar=e.detail.toolbar;if(root.observer)root.observer.disconnect();if(!deselect&&e.detail.editor){root.observer=new MutationObserver(evt=>{root.range=root.getRange()});root.observer.observe(e.detail.editor,{attributes:!1,childList:!0,subtree:!0,characterData:!1})}}}", "detectingChangesInTheSelected() {\n Office.context.document.addHandlerAsync(\"documentSelectionChanged\", myHandler, function(result) {});\n function myHandler(eventArgs) {\n write(\"Document Selection Changed\");\n }\n function write(message) {\n document.getElementById(\"message\").innerText += message;\n }\n }", "function handleDocumentPatches(_ref) {\n var patches = _ref.patches;\n var patchSelection = patches && patches.length > 0 && patches.filter(patch => patch.origin !== 'local');\n\n if (patchSelection) {\n patchSelection.map(patch => patche$.next(patch));\n }\n } // Handle editor changes", "addContentChangeHandler() {\n\t\tfunction snapshotDiff(self) {\n\t\t\tvar newText = self.editor.getValue();\n\t\t\tvar timestamp = new Date().getTime();\n\n\t\t\tif (self.curText != newText) {\n\t\t\t\t/*\n\t\t\t\tThe two key function calls here are diff_main followed by diff_toDelta\n\t\t\t\tEach 'd' field is in the following format:\n\t\t\t\thttp://downloads.jahia.com/downloads/jahia/jahia6.6.1/jahia-root-6.6.1.0-aggregate-javadoc/name/fraser/neil/plaintext/DiffMatchPatch.html#diff_toDelta(java.util.LinkedList)\n\t\t\t\tCrush the diff into an encoded string which describes the operations\n\t\t\t\trequired to transform text1 into text2. E.g. =3\\t-2\\t+ing -> Keep 3\n\t\t\t\tchars, delete 2 chars, insert 'ing'. Operations are tab-separated.\n\t\t\t\tInserted text is escaped using %xx notation.\n\t\t\t\t*/\n\t\t\t\tvar delta = {\n\t\t\t\t\tt: timestamp,\n\t\t\t\t\td: self.dmp.diff_toDelta(self.dmp.diff_main(self.curText, newText))\n\t\t\t\t};\n\t\t\t\tself.sendCodeEditSaveRequest(delta);\n\n\t\t\t\t// self.menuClickID is set when any testcase link is clicked\n\t\t\t\tif (self.menuClickID.checkpoint > -1 && self.menuClickID.testcase > -1) {\n\t\t\t\t\tself.handleRunRequest(RUN_TEST_COMMAND, self.menuClickID.checkpoint, self.menuClickID.testcase);\n\t\t\t\t}\n\t\t\t\tself.curText = newText;\n\t\t \t}\n\t\t}\n\n\t\tthis.editor.on('change', (e) => {\n\t\t\t// Remove the syntax error squiggly lines\n\t\t\tthis.removeMarkersInEditorSelection();\n\n\t\t\t// Remove syntax error gutter highlights\n\t\t\tthis.removeErrorGutterHighlights();\n\n\t\t\t// Remove comment gutter highlights\n\t\t\tthis.removeCommentGutterHighlights();\n\n\t\t\t// Debouncing and auto saving\n\t\t\tif (this.DEBOUNCE_MS > 0) {\n\t\t\t\t$.doTimeout('editorChange', this.DEBOUNCE_MS, () => { snapshotDiff(this); });\n\t\t\t} else {\n\t\t\t\tsnapshotDiff(this);\n\t\t\t}\n\t\t});\n\t}", "function onDocumentKeyDown(e) {\n var ctrlDown = e.ctrlKey || e.metaKey; // PC || Mac\n \n switch (e.keyCode) {\n case KEYS.F1:\n help.show();\n e.preventDefault();\n \n break;\n \n case KEYS.ESC:\n help.hide();\n if (state.isDraw) {\n state.isDraw = false;\n state.newArea.remove();\n state.areas.pop();\n app.removeAllEvents();\n } else if (state.appMode === 'editing') {\n state.selectedArea.redraw();\n app.removeAllEvents();\n }\n \n break;\n \n case KEYS.TOP:\n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(0, -1))\n );\n e.preventDefault();\n }\n \n break;\n \n case KEYS.BOTTOM:\n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(0, 1))\n );\n e.preventDefault();\n }\n break;\n \n case KEYS.LEFT: \n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(-1, 0))\n );\n e.preventDefault();\n }\n \n break;\n \n case KEYS.RIGHT:\n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(1, 0))\n );\n e.preventDefault();\n }\n \n break;\n \n case KEYS.DELETE:\n if (state.appMode === 'editing' && state.selectedArea) {\n app.removeObject(state.selectedArea);\n state.selectedArea = null;\n info.unload();\n }\n \n break;\n \n case KEYS.I:\n if (state.appMode === 'editing' && state.selectedArea) {\n var params = state.selectedArea.params,\n x = params.x || params.cx || params[0],\n y = params.y || params.cy || params[1];\n \n info.load(state.selectedArea, x + app.getOffset('x'), y + app.getOffset('y'));\n }\n \n break;\n \n case KEYS.S:\n app.saveInLocalStorage();\n \n break;\n \n case KEYS.C:\n if (state.appMode === 'editing' && state.selectedArea && ctrlDown) {\n var Constructor = AREAS_CONSTRUCTORS[area_params.type],\n area_params = state.selectedArea.toJSON();\n \n if (Constructor) {\n Constructor.createFromSaved(area_params);\n state.selectedArea.setParams(state.selectedArea.move(10, 10));\n state.selectedArea.redraw();\n }\n }\n \n break;\n }\n }", "function myEdit(e){\n Logger.log(\"change triggered\");\n\n refetch();\n //Logger.log(e);\n}", "_onActiveEditorUpdated(type, editor) {\n this._designView = editor;\n }", "updateEditor() {\n if (typeof this.engine !== 'undefined') {\n this.engine.process(this.editor.toJSON());\n }\n }", "_runProcessChanges() {\n // Don't run this functionality if the element has disconnected.\n if (!this.isConnected) return;\n\n store.dispatch(ui.reportDirtyForm(this.formName, this.isDirty));\n this.dispatchEvent(new CustomEvent('change', {\n detail: {\n delta: this.delta,\n commentContent: this.getCommentContent(),\n },\n }));\n }", "handleTextEvents(editor) {\n editor.getBuffer().onWillSave(() => {\n if (this.shouldFormatOnSave() && this.hasElixirGrammar(editor)) {\n formatter.formatTextEditor(editor);\n }\n });\n }", "function editOnInput(){var domSelection=global.getSelection();var anchorNode=domSelection.anchorNode;var isCollapsed=domSelection.isCollapsed;if(anchorNode.nodeType!==Node.TEXT_NODE){return;}var domText=anchorNode.textContent;var editorState=this.props.editorState;var offsetKey=nullthrows(findAncestorOffsetKey(anchorNode));var _DraftOffsetKey$decod=DraftOffsetKey.decode(offsetKey);var blockKey=_DraftOffsetKey$decod.blockKey;var decoratorKey=_DraftOffsetKey$decod.decoratorKey;var leafKey=_DraftOffsetKey$decod.leafKey;var _editorState$getBlock=editorState.getBlockTree(blockKey).getIn([decoratorKey,'leaves',leafKey]);var start=_editorState$getBlock.start;var end=_editorState$getBlock.end;var content=editorState.getCurrentContent();var block=content.getBlockForKey(blockKey);var modelText=block.getText().slice(start,end);// Special-case soft newlines here. If the DOM text ends in a soft newline,\r\n\t// we will have manually inserted an extra soft newline in DraftEditorLeaf.\r\n\t// We want to remove this extra newline for the purpose of our comparison\r\n\t// of DOM and model text.\r\n\tif(domText.endsWith(DOUBLE_NEWLINE)){domText=domText.slice(0,-1);}// No change -- the DOM is up to date. Nothing to do here.\r\n\tif(domText===modelText){return;}var selection=editorState.getSelection();// We'll replace the entire leaf with the text content of the target.\r\n\tvar targetRange=selection.merge({anchorOffset:start,focusOffset:end,isBackward:false});var entityKey=block.getEntityAt(start);var entity=entityKey&&Entity.get(entityKey);var entityType=entity&&entity.getMutability();var preserveEntity=entityType==='MUTABLE';// Immutable or segmented entities cannot properly be handled by the\r\n\t// default browser undo, so we have to use a different change type to\r\n\t// force using our internal undo method instead of falling through to the\r\n\t// native browser undo.\r\n\tvar changeType=preserveEntity?'spellcheck-change':'apply-entity';var newContent=DraftModifier.replaceText(content,targetRange,domText,block.getInlineStyleAt(start),preserveEntity?block.getEntityAt(start):null);var anchorOffset,focusOffset,startOffset,endOffset;if(isGecko){// Firefox selection does not change while the context menu is open, so\r\n\t// we preserve the anchor and focus values of the DOM selection.\r\n\tanchorOffset=domSelection.anchorOffset;focusOffset=domSelection.focusOffset;startOffset=start+Math.min(anchorOffset,focusOffset);endOffset=startOffset+Math.abs(anchorOffset-focusOffset);anchorOffset=startOffset;focusOffset=endOffset;}else{// Browsers other than Firefox may adjust DOM selection while the context\r\n\t// menu is open, and Safari autocorrect is prone to providing an inaccurate\r\n\t// DOM selection. Don't trust it. Instead, use our existing SelectionState\r\n\t// and adjust it based on the number of characters changed during the\r\n\t// mutation.\r\n\tvar charDelta=domText.length-modelText.length;startOffset=selection.getStartOffset();endOffset=selection.getEndOffset();anchorOffset=isCollapsed?endOffset+charDelta:startOffset;focusOffset=endOffset+charDelta;}// Segmented entities are completely or partially removed when their\r\n\t// text content changes. For this case we do not want any text to be selected\r\n\t// after the change, so we are not merging the selection.\r\n\tvar contentWithAdjustedDOMSelection=newContent.merge({selectionBefore:content.getSelectionAfter(),selectionAfter:selection.merge({anchorOffset:anchorOffset,focusOffset:focusOffset})});this.update(EditorState.push(editorState,contentWithAdjustedDOMSelection,changeType));}", "textDocumentDidChange(params) {\n return __awaiter(this, void 0, void 0, function* () {\n const uri = util_1.normalizeUri(params.textDocument.uri);\n let text;\n for (const change of params.contentChanges) {\n if (change.range || change.rangeLength) {\n throw new Error('incremental updates in textDocument/didChange not supported for file ' + uri);\n }\n text = change.text;\n }\n if (!text) {\n return;\n }\n this.projectManager.didChange(uri, text);\n yield new Promise(resolve => setTimeout(resolve, 200));\n this._publishDiagnostics(uri);\n });\n }", "_onActiveEditorUpdated(type, editor) {\n\t\tthis._onElementDeselected();\n\t\tthis._designView = editor;\n\t}", "handleEditorChange(code) {\n let state = this.state.pageState;\n state.code = code;\n this.props.updateState(state);\n }", "function process () {\n if (!processed) {\n var editor = EditorManager.getCurrentFullEditor();\n var currentDocument = editor.document;\n var originalText = currentDocument.getText();\n var processedText = Processor.process(originalText);\n var cursorPos = editor.getCursorPos();\n var scrollPos = editor.getScrollPos();\n\n // Bail if processing was unsuccessful.\n if (processedText === false) {\n return;\n }\n\n // Replace text.\n currentDocument.setText(processedText);\n\n // Restore cursor and scroll positons.\n editor.setCursorPos(cursorPos);\n editor.setScrollPos(scrollPos.x, scrollPos.y);\n\n // Save file.\n CommandManager.execute(Commands.FILE_SAVE);\n\n // Prevent file from being processed multiple times.\n processed = true;\n } else {\n processed = false;\n }\n }", "function onEditorChange(editor, objSettings){\r\n\t\t\r\n\t\tvar objInput = editor.getElement();\r\n\t\tobjInput = jQuery(objInput);\r\n\t\tobjSettings.triggerKeyupEvent(objInput);\r\n\t}", "inputChange(newCode) { // updates the code in the editor\n\t\tthis.props.inputChange(newCode);\n\t}", "function commitChanges() {\n if (editingSlide) {\n editingSlide.querySelector('.kreator-slide-content').innerHTML = editor.getHTML();\n }\n}", "function handler_designDocumentOnChange() {\n let designDoc = $(\"#couchdb_designDocument\").val();\n getCouchdbViews(designDoc, DOM_fillCouchdbViews);\n }", "function onChangeWorkingLine(action) {\n changeWorkingLine(action);\n initEditor();\n}", "change(docId, doc) {\n const cleanedDoc = this._getCleanedObject(doc);\n let storedDoc = this.store[docId];\n deepExtend(storedDoc, cleanedDoc);\n\n let changedData = {};\n _.each(cleanedDoc, (value, key) => {\n changedData[key] = storedDoc[key];\n });\n\n this.send('changed', docId, changedData);\n }", "function on_doc_down(event){\n \t//Toggle Cursor Menu Dropdown\n \tif (!event.target.matches('#dropBtn') && !event.target.classList.contains('menuBtn')) {\n \t closeMenu();\n \t}\n\n \t//Confirm name change of sidebar element if clicking outside of textbox\n \tif (editingList && event.target.type != 'text'){\n \t\tvar li = editingList.parentElement.parentElement;\n \t\tli.attached.name = editingList.value;\n \t\tli.innerHTML = editingList.value;\n \t\teditingList = false;\n \t\treturn false;\n \t}\n\n \t//Reset all object opacities\n \tfor (var i=0; i<scene.objects.length; i++){\n \t\tif (scene.objects[i] != SELECTED){\n \t\t\tscene.objects[i].material.opacity = 1;\n \t\t}\n \t}\n\n \t//Select a cube if name in sidebar is clicked, otherwise unselect all\n \tif (event.target != renderer.domElement){\n \t\tif (event.target.localName == \"li\"){\n \t\t\tif(SELECTED){\n \t\t\t\tunselect();\n \t\t\t}\n \t\t\t// console.log(\"select!\");\n \t\t\tselectObj(event.srcElement.attached);\n \t\t}\n \t}\n }", "function handleFileSelect(evt){\n var f = evt.target.files[0]; // FileList object\n window.reader = new FileReader();\n // Closure to capture the file information.\n reader.onload = (function(theFile){\n return function(e){\n editor.setData(e.target.result);\n evt.target.value = null; // allow reload\n };\n })(f);\n // Read file as text\n reader.readAsText(f);\n thisDoc = f.name;\n }", "constructor(props) {\n super(props);\n this.state = {\n modal1Open: false,\n modal2Open: false,\n drawerOpen: false,\n id: props.match.params.docId,\n editorState: EditorState.createEmpty(),\n title: \"\",\n owner: \"\",\n contributors: [],\n currentUser: currentUser,\n };\n\n fetch(`http://localhost:3000/document/${this.state.id}`)\n .then(res => res.json())\n .then((res) => {\n res.versions[res.versions.length-1].entityMap = res.versions.entityMap || {}\n this.setState({\n version: res.versions.length,\n oldVersions: res.versions,\n editorState: EditorState.createWithContent(convertFromRaw(res.versions[res.versions.length-1])),\n title: res.title,\n owner: res.owner,\n })\n })\n .catch((error) => {\n console.log(error);\n alert(error);\n });\n\n this.onChange = (editorState) => {\n const contentState = editorState.getCurrentContent();\n socket.emit('document-save', { secretToken: this.secretToken, state: convertToRaw(contentState), docId: this.props.match.params.docId, userToken: currentUser.user._id});\n this.setState({ editorState });\n };\n this.handleKeyCommand = this.handleKeyCommand.bind(this);\n\n\n }", "function onDocumentDataChanged() {\n //TODO now do this on editing all input fields\n let changes = documentHasUnsavedChanges();\n if (changes) {\n showUnsavedDocumentSpan();\n } else {\n hideUnsavedDocumentSpan();\n }\n}", "listen(connection) {\r\n connection.__textDocumentSync = vscode_languageserver_protocol_1.TextDocumentSyncKind.Full;\r\n connection.onDidOpenTextDocument((event) => {\r\n let td = event.textDocument;\r\n let document = this._configuration.create(td.uri, td.languageId, td.version, td.text);\r\n this._documents[td.uri] = document;\r\n let toFire = Object.freeze({ document });\r\n this._onDidOpen.fire(toFire);\r\n this._onDidChangeContent.fire(toFire);\r\n });\r\n connection.onDidChangeTextDocument((event) => {\r\n let td = event.textDocument;\r\n let changes = event.contentChanges;\r\n if (changes.length === 0) {\r\n return;\r\n }\r\n let document = this._documents[td.uri];\r\n const { version } = td;\r\n if (version === null || version === void 0) {\r\n throw new Error(`Received document change event for ${td.uri} without valid version identifier`);\r\n }\r\n document = this._configuration.update(document, changes, version);\r\n this._documents[td.uri] = document;\r\n this._onDidChangeContent.fire(Object.freeze({ document }));\r\n });\r\n connection.onDidCloseTextDocument((event) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document) {\r\n delete this._documents[event.textDocument.uri];\r\n this._onDidClose.fire(Object.freeze({ document }));\r\n }\r\n });\r\n connection.onWillSaveTextDocument((event) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document) {\r\n this._onWillSave.fire(Object.freeze({ document, reason: event.reason }));\r\n }\r\n });\r\n connection.onWillSaveTextDocumentWaitUntil((event, token) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document && this._willSaveWaitUntil) {\r\n return this._willSaveWaitUntil(Object.freeze({ document, reason: event.reason }), token);\r\n }\r\n else {\r\n return [];\r\n }\r\n });\r\n connection.onDidSaveTextDocument((event) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document) {\r\n this._onDidSave.fire(Object.freeze({ document }));\r\n }\r\n });\r\n }", "listen(connection) {\r\n connection.__textDocumentSync = vscode_languageserver_protocol_1.TextDocumentSyncKind.Full;\r\n connection.onDidOpenTextDocument((event) => {\r\n let td = event.textDocument;\r\n let document = this._configuration.create(td.uri, td.languageId, td.version, td.text);\r\n this._documents[td.uri] = document;\r\n let toFire = Object.freeze({ document });\r\n this._onDidOpen.fire(toFire);\r\n this._onDidChangeContent.fire(toFire);\r\n });\r\n connection.onDidChangeTextDocument((event) => {\r\n let td = event.textDocument;\r\n let changes = event.contentChanges;\r\n if (changes.length === 0) {\r\n return;\r\n }\r\n let document = this._documents[td.uri];\r\n const { version } = td;\r\n if (version === null || version === void 0) {\r\n throw new Error(`Received document change event for ${td.uri} without valid version identifier`);\r\n }\r\n document = this._configuration.update(document, changes, version);\r\n this._documents[td.uri] = document;\r\n this._onDidChangeContent.fire(Object.freeze({ document }));\r\n });\r\n connection.onDidCloseTextDocument((event) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document) {\r\n delete this._documents[event.textDocument.uri];\r\n this._onDidClose.fire(Object.freeze({ document }));\r\n }\r\n });\r\n connection.onWillSaveTextDocument((event) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document) {\r\n this._onWillSave.fire(Object.freeze({ document, reason: event.reason }));\r\n }\r\n });\r\n connection.onWillSaveTextDocumentWaitUntil((event, token) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document && this._willSaveWaitUntil) {\r\n return this._willSaveWaitUntil(Object.freeze({ document, reason: event.reason }), token);\r\n }\r\n else {\r\n return [];\r\n }\r\n });\r\n connection.onDidSaveTextDocument((event) => {\r\n let document = this._documents[event.textDocument.uri];\r\n if (document) {\r\n this._onDidSave.fire(Object.freeze({ document }));\r\n }\r\n });\r\n }", "function onEditDialogSave(){\r\n\t\t\r\n\t\tif(!g_codeMirror)\r\n\t\t\tthrow new Error(\"Codemirror editor not found\");\r\n\t\t\r\n\t\tvar content = g_codeMirror.getValue();\r\n\t\tvar objDialog = jQuery(\"#uc_dialog_edit_file\");\r\n\t\t\r\n\t\tvar item = objDialog.data(\"item\");\r\n\t\t\r\n\t\tvar data = {filename: item.file, path: g_activePath, pathkey: g_pathKey, content: content};\r\n\t\t\r\n\t\tg_ucAdmin.setAjaxLoaderID(\"uc_dialog_edit_file_loadersaving\");\r\n\t\tg_ucAdmin.setErrorMessageID(\"uc_dialog_edit_file_error\");\r\n\t\tg_ucAdmin.setSuccessMessageID(\"uc_dialog_edit_file_success\");\r\n\t\t\r\n\t\tassetsAjaxRequest(\"assets_save_file\", data);\r\n\t\t\r\n\t}", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t\t if (doc.cm && !doc.cm.curOp)\n\t\t { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n\t\t if (change.to.line < doc.first) {\n\t\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t\t return\n\t\t }\n\t\t if (change.from.line > doc.lastLine()) { return }\n\n\t\t // Clip the change to the size of this doc\n\t\t if (change.from.line < doc.first) {\n\t\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t\t shiftDoc(doc, shift);\n\t\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t\t text: [lst(change.text)], origin: change.origin};\n\t\t }\n\t\t var last = doc.lastLine();\n\t\t if (change.to.line > last) {\n\t\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t\t text: [change.text[0]], origin: change.origin};\n\t\t }\n\n\t\t change.removed = getBetween(doc, change.from, change.to);\n\n\t\t if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n\t\t if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n\t\t else { updateDoc(doc, change, spans); }\n\t\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\n\t\t if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0)))\n\t\t { doc.cantEdit = false; }\n\t\t }", "handleFilechange(event, path) {\n console.log('PdfjsViewerView: file', event, path)\n this.reloadPdf()\n }", "function onChange(cm, changeObj) {\n var macroModeState = vimGlobalState.macroModeState;\n var lastChange = macroModeState.lastInsertModeChanges;\n if (!macroModeState.isPlaying) {\n while(changeObj) {\n lastChange.expectCursorActivityForChange = true;\n if (lastChange.ignoreCount > 1) {\n lastChange.ignoreCount--;\n } else if (changeObj.origin == '+input' || changeObj.origin == 'paste'\n || changeObj.origin === undefined /* only in testing */) {\n var selectionCount = cm.listSelections().length;\n if (selectionCount > 1)\n lastChange.ignoreCount = selectionCount;\n var text = changeObj.text.join('\\n');\n if (lastChange.maybeReset) {\n lastChange.changes = [];\n lastChange.maybeReset = false;\n }\n if (text) {\n if (cm.state.overwrite && !/\\n/.test(text)) {\n lastChange.changes.push([text]);\n } else {\n lastChange.changes.push(text);\n }\n }\n }\n // Change objects may be chained with next.\n changeObj = changeObj.next;\n }\n }\n }", "function onChange(cm, changeObj) {\n var macroModeState = vimGlobalState.macroModeState;\n var lastChange = macroModeState.lastInsertModeChanges;\n if (!macroModeState.isPlaying) {\n while(changeObj) {\n lastChange.expectCursorActivityForChange = true;\n if (lastChange.ignoreCount > 1) {\n lastChange.ignoreCount--;\n } else if (changeObj.origin == '+input' || changeObj.origin == 'paste'\n || changeObj.origin === undefined /* only in testing */) {\n var selectionCount = cm.listSelections().length;\n if (selectionCount > 1)\n lastChange.ignoreCount = selectionCount;\n var text = changeObj.text.join('\\n');\n if (lastChange.maybeReset) {\n lastChange.changes = [];\n lastChange.maybeReset = false;\n }\n if (text) {\n if (cm.state.overwrite && !/\\n/.test(text)) {\n lastChange.changes.push([text]);\n } else {\n lastChange.changes.push(text);\n }\n }\n }\n // Change objects may be chained with next.\n changeObj = changeObj.next;\n }\n }\n }", "onCursorChange() {\n this.$cursorChange();\n this._signal(\"changeSelection\");\n }", "function ckEditorContentChanged() {\r\n if (timer)\r\n return;\r\n\r\n timer = setTimeout(function() {\r\n timer = 0;\r\n self.fireEvent('contentChanged', self);\r\n }, 100);\r\n }", "function handleEditorUpdate() {\n if (updateTimerRef) {\n clearTimeout(updateTimerRef);\n }\n updateTimerRef = setTimeout(refreshRenderContent, timeBeforeEditorUpdate);\n}", "handleEventEdit(e) {\n this.getEventToEdit(e.target.id)\n }", "function onSelectionChangeCursor(e) {\n\n // find node that cursor points to\n var cursorPos = aceEditor.getCursorPosition();\n var astNodes = PARSED && PARSED.stylesheet && PARSED.stylesheet.rules || [];\n \n var cursorAstNode = _findAstNodeForCursorPosition(astNodes, cursorPos);\n\n fileEditor.hDev.publish(CURSOR_POSITION_CHANGE, {\n f: fileEditor.filepath,\n mode: MIME_TYPE,\n p: cursorPos,\n astNode: cursorAstNode ? _pickCssAstData(cursorAstNode) : {},\n });\n }", "async _onEditorSave(target, element, content) {\r\n \treturn this.submit();\r\n\t}", "_codemirrorValueChanged() {\n // Don't trigger change event if we're ignoring changes\n if (this._ignoreNextChange || !this.props.onChange) {\n this._ignoreNextChange = false;\n return;\n }\n\n const value = this.codeMirror.getDoc().getValue();\n\n // Disable linting if the document reaches a maximum size or is empty\n const shouldLint =\n value.length > MAX_SIZE_FOR_LINTING || value.length === 0 ? false : !this.props.noLint;\n const existingLint = this.codeMirror.options.lint || false;\n if (shouldLint !== existingLint) {\n const { lintOptions } = this.props;\n const lint = shouldLint ? lintOptions || true : false;\n this.codeMirror.setOption('lint', lint);\n }\n\n this.props.onChange(value);\n }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t\t if (doc.cm && !doc.cm.curOp)\n\t\t return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);\n\t\t\n\t\t if (change.to.line < doc.first) {\n\t\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t\t return;\n\t\t }\n\t\t if (change.from.line > doc.lastLine()) return;\n\t\t\n\t\t // Clip the change to the size of this doc\n\t\t if (change.from.line < doc.first) {\n\t\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t\t shiftDoc(doc, shift);\n\t\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t\t text: [lst(change.text)], origin: change.origin};\n\t\t }\n\t\t var last = doc.lastLine();\n\t\t if (change.to.line > last) {\n\t\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t\t text: [change.text[0]], origin: change.origin};\n\t\t }\n\t\t\n\t\t change.removed = getBetween(doc, change.from, change.to);\n\t\t\n\t\t if (!selAfter) selAfter = computeSelAfterChange(doc, change);\n\t\t if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);\n\t\t else updateDoc(doc, change, spans);\n\t\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\t\t }", "function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\n if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0)))\n { doc.cantEdit = false; }\n }" ]
[ "0.6989578", "0.68647164", "0.6661219", "0.6592309", "0.65232587", "0.63881063", "0.63272256", "0.63092566", "0.6279335", "0.62503177", "0.61630493", "0.61265033", "0.61171705", "0.61171705", "0.6100543", "0.6096026", "0.60762805", "0.60762805", "0.6036763", "0.6016115", "0.601135", "0.6002246", "0.6002246", "0.6002246", "0.59894043", "0.59894043", "0.59894043", "0.59894043", "0.5978784", "0.5978784", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.5971669", "0.59562993", "0.59419847", "0.5930735", "0.59162027", "0.59087473", "0.5904313", "0.5887545", "0.58577853", "0.584171", "0.58248967", "0.582317", "0.57853925", "0.5779365", "0.5758973", "0.57527333", "0.57264245", "0.5709661", "0.5702032", "0.5699388", "0.5689205", "0.56673217", "0.56590265", "0.5634637", "0.5632717", "0.56015253", "0.5589366", "0.5583895", "0.55803305", "0.55803305", "0.5577872", "0.5546218", "0.5541917", "0.55342364", "0.55342364", "0.55205196", "0.5501525", "0.5485149", "0.54829675", "0.5480349", "0.5476862", "0.54758465", "0.5472088", "0.545842" ]
0.59413064
59
Rebasing/resetting history to deal with externallysourced changes
function rebaseHistSelSingle(pos, from, to, diff) { if (to < pos.line) { pos.line += diff; } else if (from < pos.line) { pos.line = from; pos.ch = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetHistory() {\n // TODO: clean out localStorage\n ExCommandHistory.resetHistory();\n }", "function clearChangeHistory() {\n changeHistory = [];\n historyPosition = 0;\n }", "function setHistory() {\n // clear undo history\n $('#undoHistoryList')\n .empty();\n\n // load new history list from server\n getHistoryFromServer(addHistList);\n}", "resetStateHistory() {\n // Clears state history, returning it to an empty list.\n this._stateHistory.splice(0, this._stateHistory.length);\n }", "function History_History()\n{\n\t//call reset\n\tthis.Reset();\n}", "resetHistory() {\n this.autoList.removeAll();\n var history = JSON.parse(localStorage.getItem('searchHistory'));\n if (history) {\n for (var i = 0; i < history.length; i++) {\n this.addBack(history[i]);\n }\n }\n }", "function clearUndoHistory() {\n getHistoryFromServer(resetHistList);\n}", "function push_history() {\n\tedit_history_index++;\n\tsave_history();\n\tedit_history.length = edit_history_index+1;\n}", "function restore_history () {\n\tvar text = edit_history [edit_history_index];\n\tvar ds = HalfedgeDS.fromJSON (JSON.parse(text));\n\tannotateHdsPolygonSides(ds);\n\thdsDraw (ds);\n\tconfigureButtons();\n}", "updateHistory(currentBoard) {\n /* add current board to history and increment history index\n *** if historyIndex is less than historyLength-1, it \n means that a move has been played after the user has \n used the jump backwards button. Therefore, all elements in history after\n where historyIndex currently is should be erased *** \n */\n const historyIndex = this.state.historyIndex;\n const historyLength = this.state.history.length;\n var history = this.state.history;\n if (historyIndex < historyLength - 1) {\n history = this.state.history.splice(0, historyIndex + 1);\n }\n\n return history.concat([{ currentBoard: currentBoard }]);\n }", "set_reverse() {\n// this.prev = this.grid.slice(0);\n if (this.history.length < 10) { // only add to database\n this.history.push(this.grid.slice(0));\n } else {\n this.history.shift(); // remove the first element\n this.history.push(this.grid.slice(0));\n }\n }", "static reset () {\n this.history = [];\n this.position = 0;\n }", "replaceHistState() {\n const params = new URLSearchParams();\n params.set('fg', this.fg);\n params.set('bg', this.bg);\n params.set('mode', this.numberType);\n params.set('showHint', false);\n params.set('directDrive', this.directDrive);\n window.history.replaceState({}, '', '?' + params.toString());\n }", "redoHistory() {\n if (!this.canRedo()) return;\n\n let entry = this.history[this.historyPointer+1];\n // converge\n this.doHistory(entry, false);\n //adjust pointer\n this.historyPointer++;\n }", "reset() {\r\n this._state = this._config.initial;\r\n this._history.push(this._state);\r\n }", "function voltarHistory()\n\t{\n\t\twindow.history.back();\n\t}", "function undoChange() {\n\n this.quill.history.undo();\n}", "reset() {\r\n this.historyStates.push(this.currentState);\r\n this.currentState = this.historyStates[0];\r\n }", "update() {\n this.actionHistory = [];\n this.stateHistory = [];\n this.rewardHistory = [];\n }", "function restoreHistory( delta ) {\n var p = historyPosition + delta;\n if ( delta === 0 || p < 0 || p >= changeHistory.length )\n return true;\n var state = changeHistory[p];\n\n self.mode.off();\n\n $(svgContainer).empty();\n $(state.svg).clone().appendTo(svgContainer);\n self.util.svgRoot = svgRoot = svgContainer.firstChild;\n self.util.mouseCoords = svgRoot.createSVGPoint();\n initDragpoint();\n $(svgRoot).click( removeEditings );\n\n if ( delta < 0 && p < changeHistory.length-1 )\n state = changeHistory[p+1];\n\n if ( state.panzoom ) {\n self.svgPanZoom( state.panzoom[0], state.panzoom[1], state.panzoom[2], state.panzoom[3] );\n boxX0 = state.panzoom[4];\n boxY0 = state.panzoom[5];\n boxW = state.panzoom[6];\n boxH = state.panzoom[7];\n svgRoot.setAttribute( 'viewBox', boxX0+' '+boxY0+' '+boxW+' '+boxH );\n }\n adjustSize();\n\n state.mode();\n if ( state.selected )\n $(state.selected).click();\n\n historyPosition += delta;\n\n for ( var n=0; n<self.cfg.onRestoreHistory.length; n++ )\n self.cfg.onRestoreHistory[n]();\n\n return false;\n }", "reset() {\r\n this.currentState = this.config.initial;\r\n this.history.push(this.currentState);\r\n }", "function resetHistory(ifTemporal) {\n $('#svg_history').remove();\n d3.selectAll(\".code-tree\").remove();\n d3.selectAll(\".kg-network\").remove();\n selectedCode = clone(currentCode);\n updateCodeList();\n renderPtHistory(gPID, gSinPtData, gPtPredData, gSinPtData, gPtPredData, 0, ifTemporal);\n}", "function _clearHistory() {\n _bufferHistory = [];\n _rateSelectionHistory = [];\n }", "function undo() {\n\t\tif (actionHistory.length) {\n\t\t\tlet lastAction = actionHistory.pop(),\n\t\t\ttermId = lastAction[0], //indicates term moved\n\t\t\tsourceId = lastAction[1], //indicates where it was moved from\n\t\t\tdestinationId = lastAction[2]; //indicates where it was moved to\n\t\t\tvar term = $.get(termId);\n\n\t\t\tif (sourceId.includes(\"termsContainer\")) { //A->B\n\t\t\t\trestoreTerm(term);\n\t\t\t\t$.get(\"new_\"+termId).remove();\n\t\t\t}\n\t\t\telse if (destinationId.includes(\"termsContainer\")) { //B->A\n\t\t\t\t$.get(sourceId).appendChild(copyTerm(term));\n\t\t\t\thideTerm(term);\n\t\t\t}\n\t\t\telse //B -> B\n\t\t\t{\n\t\t\t\t$.get(sourceId).appendChild($.get(\"new_\"+termId));\n\t\t\t}\n\t\t}\n\t}", "revertLastState() {\n // Make sure there is a history of state changes\n if (this._history.length > 0) {\n // Pop off the last state preserved in the history and set the current state equal to that\n this._state = this._history.pop();\n }\n // Since the state has changed, we have to emit those changes\n this._emitChange();\n }", "undo () {\n if (this.editHistory.length === 0) return;\n\n let edit = reverseInput(this.editHistory.pop());\n this.edit(edit);\n this.redoStack.push(edit);\n }", "function resetFormHistory(){\n\t\t_self.emit(\"log\",\"form.js\",\"resetFormHistory()\",\"info\");\n\t\t_historyObj = new Array();\n\t\treturn true;\n\t}", "function clearHistoryAndGuessedNums() {\n history=[];\n guessedNums=[];\n }", "function clear_redo_history() {\n\tredo_history = [];\n}", "function deleteHistory(){\n setHistory([]);\n setOP(\"\");\n setFP(\"\");\n setD(\"\");\n console.log(history);\n }", "reset() {\r\n this.currentState = this.initalState;\r\n this.clearHistory();\r\n }", "undo() {\n const cmd = this.history.pop();\n cmd.undo();\n }", "undo() {\n const cmd = this.history.pop();\n cmd.undo();\n }", "async commitHistory() {\n // Do nothing if no history to be committed, otherwise get history\n if (this.historyBuffer.length === 0) return;\n if (this.lock) return;\n this.lock = true;\n let history = canvas.scene.getFlag(this.layername, \"history\");\n // If history storage doesnt exist, create it\n if (!history) {\n history = {\n events: [],\n pointer: 0,\n };\n }\n // If pointer is less than history length (f.x. user undo), truncate history\n history.events = history.events.slice(0, history.pointer);\n // Push the new history buffer to the scene\n history.events.push(this.historyBuffer);\n history.pointer = history.events.length;\n await canvas.scene.unsetFlag(this.layername, \"history\");\n await this.setSetting(\"history\", history);\n simplefogLog(`Pushed ${this.historyBuffer.length} updates.`);\n // Clear the history buffer\n this.historyBuffer = [];\n this.lock = false;\n }", "restoreCommandHistory() {\n\t\tthis.m_commandHistory = [];\n\n\t\ttry {\n\t\t\tlet history = JSON.parse(localStorage.getItem('_terminal--command-history'));\n\n\t\t\tif (Array.isArray(history))\n\t\t\t\tthis.m_commandHistory = history;\n\t\t} catch (e) {}\n\n\t\tthis.m_commandHistoryCount = this.m_commandHistory.length;\n\t\tthis.m_commandHistoryIndex = this.m_commandHistoryCount;\n\t}", "rollback () {\n this.staged = this.cached\n }", "_setupHistory() {\n if (!this.history) {\n try{ this.history = createHistory(); }\n catch(e) { \n this.history = this.options.history || createMemoryHistory();\n this._isPhantomHistory = true; \n }\n } \n }", "function revertToOriginalURL() {\n var original = window.location.href.substr(0, window.location.href.indexOf('#'))\n history.replaceState({}, document.title, original);\n }", "keepHistory() {\n currentHistory += 1\n history.push(this.state.alasisu)\n }", "revert() { }", "clearHistory(){\n this.setState({\n history: [],\n lastWeighed: 0,\n weighedSum: 0\n });\n }", "function redo (history) {\n debug('redo', {history})\n\n const { past, present, future } = history\n\n if (future.length <= 0) return history\n\n return {\n future: future.slice(1, future.length), // remove element from future\n present: future[0], // set element as new present\n past: [\n ...past,\n present // old present state is in the past now\n ]\n }\n}", "switchHistory() {\n // display history page\n const action1 = switchHistoryPage(true);\n store.dispatch(action1);\n // get history from backend\n service.getHistoryall().then((data) => {\n const action2 = changeHistory(data.files);\n store.dispatch(action2);\n });\n }", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n var simpleChangesStore = getSimpleChangesStore(this);\n var current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n\n if (current) {\n var previous = simpleChangesStore.previous;\n\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n } else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (var key in current) {\n previous[key] = current[key];\n }\n }\n\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n }", "@action clearUndo() {\n let that = this;\n that.undoHistory = A();\n }", "function manageHistory(option) {\n // options\n switch (option) {\n case 'update':\n currPosition = history[0].length - undoCount;\n history.forEach(element => {\n element.splice(currPosition, history[0].length - 1);\n });\n\n undoCount = 0;\n break;\n case 'clear':\n history = [[], [], [], []];\n undoCount = 0;\n return;\n default:\n break;\n };\n\n // If history's subarray length more than maximum\n if (history[0].length >= UndoLimit + 1) {\n // Delete first element of each \"history\" subarray\n history.forEach(element => {\n element.shift();\n });\n };\n // Add elements to the end of each \"history\" subarray\n history[0].push(CanvasBgr.html()); // canvas\n history[1].push(CurrColor.attr('bgcolor')); // color-picker\n history[2].push(CanvasGrid.prop('checked')); // grid\n if (BgrColor.attr('bgcolor') === undefined) { // background\n history[3].push('')\n }\n else {\n history[3].push(BgrColor.attr('bgcolor'));\n };\n }", "function restorePrevious() {\n\t\t\tif (hasSnapshot()) {\n\t\t\t\tsnap.history.pop();\n\t\t\t\tdoRollback();\n\t\t\t}\n\t\t}", "function undo(){\n if (listyforpoints.length > 0){\n historyforpts.undo();\n }\n}", "function redo(history) {\n const { past, future, _latestUnfiltered } = history;\n\n if (future.length <= 0) return history;\n\n const newPast = _latestUnfiltered != null ? [...past, _latestUnfiltered] : past;\n\n const newPresent = future[0];\n\n return {\n ...newPresent,\n past: newPast,\n future: future.slice(1, future.length),\n _latestUnfiltered: newPresent\n };\n}", "clearHistory () {\n this.store.updateState({\n [HISTORY_STORE_KEY]: {},\n })\n }", "clearHistory () {\n this.store.updateState({\n [HISTORY_STORE_KEY]: {},\n })\n }", "saveInHistory(state) {\n let histName = state.currentHistoryName;\n\n if (histName === null) {\n // New history row\n histName = this.getNewHistoryName(state);\n state.currentHistoryName = histName;\n }\n\n state.history[histName] = {\n name: histName,\n lastModification: Date.now(),\n points: state.points,\n links: state.links,\n tooltips: state.tooltips,\n defaultPointColor: state.defaultPointColor,\n defaultLinkColor: state.defaultLinkColor,\n defaultTooltipColor: state.defaultTooltipColor,\n defaultTooltipFontColor: state.defaultTooltipFontColor\n };\n\n this.storeHistory(state.history);\n }", "function undo(history) {\n const { past, future, _latestUnfiltered } = history;\n\n if (past.length <= 0) return history;\n\n const newFuture = _latestUnfiltered != null ? [_latestUnfiltered, ...future] : future;\n\n const newPresent = past[past.length - 1];\n\n return {\n ...newPresent,\n past: past.slice(0, past.length - 1),\n future: newFuture,\n _latestUnfiltered: newPresent\n };\n}", "function resetLocalStorate(){\n localStorage.setItem('history', '[]');\n HTMLhistory.innerHTML = '<p class=\"no-history-available\">No history available</p>';\n}", "function undo() {\n circles.value = clone(history[--index.value]);\n }", "function save_history () {\n\tvar ds = currHds();\n\tedit_history [edit_history_index] = JSON.stringify(ds.toJSON());\n}", "undo() {\n if (this.owner.isReadOnlyMode || !this.canUndo() || !this.owner.enableHistoryMode) {\n return;\n }\n //this.owner.ClearTextSearchResults();\n let historyInfo = this.undoStack.pop();\n this.isUndoing = true;\n historyInfo.revert();\n this.isUndoing = false;\n this.owner.selection.checkForCursorVisibility();\n this.owner.editorModule.isBordersAndShadingDialog = false;\n }", "function purgeHistoryStates()\n{\n\tvar desc = new ActionDescriptor();\n\tdesc.putEnumerated( typeNULL, typePurgeItem, enumHistory );\n\texecuteAction( eventPurge, desc, DialogModes.NO );\n}", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}", "function undo() {\n var historyPos = 1 * window.localStorage.getItem('history_pos'),\n historyStart = 1 * window.localStorage.getItem('history_start') || 1;\n if (historyPos > historyStart) {\n\n layerList.layers.parseJSON(window.localStorage.getItem('history_' + (historyPos - 2)));\n window.localStorage.setItem('history_pos', (historyPos - 1));\n\n document.getElementById('data').innerHTML = layerList.layers.toString(false, true);\n document.getElementById('background-color').value = layerList.layers.backgroundColor;\n window.colorPicker.updateColors();\n updateCodeView();\n marquee.hideRect();\n infoPanel.hide();\n $('#redo-button').attr(\"disabled\", false);\n }\n if (historyPos <= 2) {\n $('#undo-button').attr(\"disabled\", true);\n }\n}", "revert() {\n lib.restore();\n }", "undo() {\n const command = this.history.pop();\n if (command) {\n command.undo();\n }\n }", "undo() {\n if (this._history.length && this._historyIndex >= 0){\n this.commit(this._historyIndex - 1);\n } else {\n return false\n }\n }", "function rememberChangeHistoryAndInvokeOnChangesHook() {\n var simpleChangesStore = getSimpleChangesStore(this);\n var current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n\n if (current) {\n var previous = simpleChangesStore.previous;\n\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n } else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (var key in current) {\n previous[key] = current[key];\n }\n }\n\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}", "_revertToOriginal() {\n this._storage = {}\n this._length = 0\n this._head = 0\n }", "@action undo() {\n if (this.args.onChange) {\n let that = this;\n let undoHistory = that.undoHistory.toArray();\n\n if (undoHistory.length === 0) {\n alert('No more steps to undo.');\n return false;\n }\n\n var restoreValue = undoHistory.pop();\n\n that.undoHistory = A(undoHistory);\n // that.updateValue();\n this.args.onChange(restoreValue);\n }\n }", "function updateHistory() {\n io.emit('update history', chatrooms);\n }", "_seedHistory() {\n log('Seeding history...');\n COMMON_ENTRY_POINTS.forEach((entryPoint) => this._addEntryPoint(entryPoint));\n this._writeHistoryFile();\n }", "historyBack() {\n const fenCode = this.state.chessBoardHistory.back();\n console.log('back');\n console.log(this.state.chessBoardHistory);\n this.updateBoard(fenCode);\n }", "updateHistory(key, options) {\n // console.log(this.cursorIndex);\n // get last history item\n const prevText = this.getLastHistory();\n\n // clone last state..\n const text = cloneDeep(prevText);\n\n let entryGroup;\n const entry = new Entry(key, {});\n if (this.paper) {\n entry.setStyles(this.paper.createEntryStyles(entry));\n }\n\n // Handle delete\n if (key === 'Backspace') {\n if (this._overwrite) {\n this.updateHistory('ArrowLeft', options);\n return;\n }\n if (this.cursorIndex === null) {\n return;\n }\n text.remove(this.cursorIndex);\n this.addToHistory(text);\n\n return;\n } else if (key === 'ArrowLeft' || key === 'ArrowRight') {\n this.addToHistory(text);\n return;\n } else if (key.length === 1 || key === 'Enter') {\n // continue\n } else if (true) {\n // } else if (key[0] == '\\\\') {\n // console.dir(key);\n // don't handle other keys (e.g shift/esc/ctrl)\n // return;\n }\n\n // Add to history\n if (!this.getCurrentEntry()) {\n // is empty\n // console.log('is empty');\n entryGroup = new EntryGroup(entry);\n text.insert(entryGroup, this.nextCursorIndex());\n this.addToHistory(text);\n } else if (this._overwrite) {\n const n = this.nextCursorIndex();\n // Add entry to group at current index\n entryGroup = text.groups[this.cursorIndex];\n if (entryGroup) {\n entryGroup.add(entry);\n text.replace(entryGroup, this.cursorIndex);\n } else {\n entryGroup = new EntryGroup(entry);\n text.insert(entryGroup, this.nextCursorIndex());\n }\n this.addToHistory(text);\n } else {\n // Insert entry in entrygroup at next index\n entryGroup = new EntryGroup(entry);\n const n = this.nextCursorIndex();\n // console.log('next', n);\n text.insert(entryGroup, this.nextCursorIndex());\n // if (this.cursorIndex === null) {\n // text.insert(entryGroup, this.nextCursorIndex());\n // } else {\n // text.insert(entryGroup, this.cursorIndex);\n // }\n\n this.addToHistory(text);\n }\n }", "function undo() {\n var doc = app.activeDocument;\n var states = doc.historyStates;\n \n var curr = 0;\n for (var i=0; i<states.length; i++) {\n if (states[i] == doc.activeHistoryState) {\n curr = i;\n }\n }\n \n var prev = curr - 1;\n if (prev >= 0) {\n doc.activeHistoryState = states[prev];\n return true;\n } else {\n return false;\n }\n }", "function resetChatHistory() {\n $(\"#txtChat\").attr(\"data-hist-index\", \"-1\");\n }", "function History_Force_MoveBack()\n{\n\t//can we go back?\n\tif (__SIMULATOR.History.CurrentStateIndex > 1)\n\t{\n\t\t//Go back\n\t\t__SIMULATOR.History.MoveBack();\n\t}\n}", "function undo() {\n\n // Only works if history is nonempty.\n if (history[0] != -1) {\n\n // Clears the topmost nonempty square of the column in which the most recent piece was played.\n for (var i = 0; (history[i] != -1 && i < 42); i++);\n document.getElementsByClassName(\"row\").item(bottoms[history[i - 1]] + 1)\n .getElementsByClassName(\"bigSquare\").item(history[i - 1])\n .style.backgroundColor = \"white\";\n\n // Updates things.\n didSomebodyWin = false;\n document.getElementById(\"instructions\").innerHTML =\n \"Click on a column to drop in a piece. Upcoming pieces are shown below.\";\n bottoms[history[i - 1]]++;\n currentTurn--;\n changeCounter();\n\n // Erases the most recent move from history.\n history[i - 1] = -1;\n\n // Un-comment to see the game history.\n // printHistory();\n }\n }", "_reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }", "_reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }", "_reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }", "_reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }", "_reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }", "_reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }", "function clearHistory() {\n\tscores = [];\n\tlocalStorage.setItem(\"scores\", JSON.stringify(scores));\n\tlistofscores();\n}", "function undo (history) {\n debug('undo', {history})\n\n const { past, present, future } = history\n\n if (past.length <= 0) return history\n\n return {\n past: past.slice(0, past.length - 1), // remove last element from past\n present: past[past.length - 1], // set element as new present\n future: [\n present, // old present state is in the future now\n ...future\n ]\n }\n}", "undoLastAction(){\n if (this.todoListsBackup.length > 0) {\n this.todoLists = this.todoListsBackup.slice();\n }\n }", "function redo(history) {\n\t debug('redo', { history: history });\n\n\t var past = history.past;\n\t var present = history.present;\n\t var future = history.future;\n\n\n\t if (future.length <= 0) return history;\n\n\t return {\n\t future: future.slice(1, future.length), // remove element from future\n\t present: future[0], // set element as new present\n\t past: [].concat(_toConsumableArray(past), [present // old present state is in the past now\n\t ])\n\t };\n\t}", "redo () {\n if (this.redoStack.length === 0) return;\n\n let edit = reverseInput(this.redoStack.pop());\n this.edit(edit);\n this.editHistory.push(edit);\n }", "function History_MoveBack()\n{\n\t//forward to move to index\n\tthis.MoveToIndex(this.CurrentStateIndex - 1);\n}", "function addToHistory(line){\n history.push(line);\n restoreText = '';\n }", "shift(url, addToHistory) {\n if (addToHistory) window.history.pushState(null, null, `/${this.clearSlashes(url)}`);\n else window.history.replaceState(null, null, `/${this.clearSlashes(url)}`);\n this.current = `${this.clearSlashes(url)}`;\n }", "function changeDirectoryHistory(path){//changes directory form array\n const rememberedDirectory = currentDirectory //stores current\n \n targetDirectory(path,tempHist)\n\n if (currentDirectory === undefined){ ///////// invalid op line\n currentDirectory = rememberedDirectory\n invLine()\n }else{\n folderHistory = []\n folderHistory.push(...tempHist) ////////////////////// if directory works out change directory ---- populate folder history ---- and render new directory to viewport\n currentFolder = folderHistory[folderHistory.length-1]\n renderItems(destinationHTML,currentDirectory)\n } \n console.log(folderHistory)\n}", "function layers_add_history_state(){\n\t\t// Update the browser URl so page can be refreshed\n\t\tif (window.history.pushState) {\n\t\t\t// Newer Browsers only (IE10+, Firefox3+, etc)\n\t\t\tvar url = window.location.href.split('?')[0] + \"?url=\" + wp.customize.previewer.previewUrl();\n\t\t\twindow.history.pushState({}, \"\", url);\n\t\t}\n\t}", "function reset() {\n\n invalidationStrategy = InvalidationStrategies.TIMEOUT;\n\n for (var tileKey in tileCache) {\n if (tileCache.hasOwnProperty(tileKey)) {\n var tileEntry = tileCache[tileKey];\n if (tileEntry.tile.destruct) {\n tileEntry.tile.destruct();\n }\n }\n }\n tileCache = {};\n\n modalLevel = 0;\n\n for (var i = 0; i < containers.length; i++) {\n if (containers[i].params.destruct) {\n containers[i].params.destruct();\n }\n }\n containers = [];\n\n logging.debug(\"init history\");\n if (history) {\n history.destruct();\n }\n history = new History({\n changeListener: function(item, changeListenerParams) {\n console.log(0);\n Routes.mapPath(changeListenerParams.newHash)\n .then(function(route) {\n if (item) {\n activateTile(item.container, item, changeListenerParams);\n } else if (route) {\n logging.debug(\"Opening \" + route.tileName);\n item = {\n \"name\": route.tileName,\n \"params\": route.params,\n \"data\": null,\n \"modal\": false,\n \"modalLevel\": modalLevel\n };\n var targetContainer = getTargetContainerForElement(null, route.tileName) || containers[0];\n activateTile(targetContainer, item, { \"direction\": \"forward\", \"hash\": changeListenerParams.newHash });\n }\n\n if (changeListenerParams.direction === \"back\") {\n if (changeListenerParams.prevItem.promise) {\n var prevTileKey = getTileKey(changeListenerParams.prevItem);\n var prevTileEntry = tileCache[prevTileKey];\n if (prevTileEntry) {\n changeListenerParams.prevItem.promise.fulfill(prevTileEntry.tile);\n modalLevel--;\n }\n }\n\n invalidationStrategy();\n\n // finally fulfill the backpromise exposed via Tiles.back()\n if (backPromise !== null) {\n backPromise.fulfill();\n backPromise = null;\n }\n }\n });\n }\n });\n transitionStartListeners = [];\n }", "runOneStepBackwards() {\n this.stateHistory.previousState()\n }", "save() {\n if (this._history.length > 9){\n this._history.shift();\n }\n this._history.push(this.internalData);\n // Make the commit to setup the index and the state\n this.commit();\n }", "function voltar(){\n history.back();\n}", "function back() {\n if (history.length > 1) {\n setHistory(prev => prev.slice(0, prev.length - 1));\n }\n }", "function undo() {\r\n if (!gGame.isOn) return\r\n if (gMovesHistory.length === 0) return //possible to disable/enable during game\r\n var prevMove = gMovesHistory.pop();\r\n while (gMovesHistory.length > 0 && !prevMove.userClicked) {\r\n undoPrevMove(prevMove);\r\n prevMove = gMovesHistory.pop();\r\n }\r\n undoPrevMove(prevMove);\r\n}" ]
[ "0.7398873", "0.73758394", "0.7114035", "0.69220054", "0.6904946", "0.68740624", "0.68633354", "0.68047863", "0.67265755", "0.6599614", "0.6581044", "0.6556663", "0.6539293", "0.6528778", "0.6519331", "0.648415", "0.64797103", "0.646039", "0.6439766", "0.64363205", "0.6433971", "0.6386272", "0.63729656", "0.6342232", "0.633134", "0.63293755", "0.6329065", "0.6314853", "0.62939703", "0.62469685", "0.62062347", "0.6199206", "0.6199206", "0.6197588", "0.6190732", "0.61883134", "0.6164423", "0.61603063", "0.61594564", "0.614792", "0.6126799", "0.61194307", "0.6118735", "0.6114428", "0.6085772", "0.6060466", "0.60519356", "0.60435915", "0.6041197", "0.60239714", "0.60239714", "0.60237306", "0.6010932", "0.59949964", "0.5981721", "0.5978129", "0.5968992", "0.5966593", "0.5959529", "0.5959529", "0.5959529", "0.5959529", "0.5959529", "0.5959529", "0.59589154", "0.59577656", "0.5953372", "0.5949098", "0.5924651", "0.5922805", "0.59078544", "0.59031665", "0.59017134", "0.5893545", "0.58906734", "0.58873975", "0.5885575", "0.58821124", "0.5882074", "0.58811843", "0.58811843", "0.58811843", "0.58811843", "0.58811843", "0.58811843", "0.58810425", "0.58786935", "0.5876171", "0.5875162", "0.5870156", "0.58678293", "0.5866536", "0.5851167", "0.584943", "0.58481216", "0.58426374", "0.5836626", "0.58353895", "0.58352906", "0.5826878", "0.5826858" ]
0.0
-1
Tries to rebase an array of history events given a change in the document. If the change touches the same lines as the event, the event, and everything 'behind' it, is discarded. If the change is before the event, the event's positions are updated. Uses a copyonwrite scheme for the positions, to avoid having to reallocate them all on every rebase, but also avoid problems with shared position objects being unsafely updated.
function rebaseHistArray(array, from, to, diff) { for (var i = 0; i < array.length; ++i) { var sub = array[i], ok = true; if (sub.ranges) { if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; } for (var j = 0; j < sub.ranges.length; j++) { rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff); rebaseHistSelSingle(sub.ranges[j].head, from, to, diff); } continue } for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) { var cur = sub.changes[j$1]; if (to < cur.from.line) { cur.from = Pos(cur.from.line + diff, cur.from.ch); cur.to = Pos(cur.to.line + diff, cur.to.ch); } else if (from <= cur.to.line) { ok = false; break } } if (!ok) { array.splice(0, i + 1); i = 0; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (!sub.copied) { cur.from = copyPos(cur.from); cur.to = copyPos(cur.to); }\n if (to < cur.from.line) {\n cur.from.line += diff;\n cur.to.line += diff;\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!sub.copied) {\n sub.anchorBefore = copyPos(sub.anchorBefore); sub.headBefore = copyPos(sub.headBefore);\n sub.anchorAfter = copyPos(sub.anchorAfter); sub.readAfter = copyPos(sub.headAfter);\n sub.copied = true;\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n } else {\n rebaseHistSel(sub.anchorBefore); rebaseHistSel(sub.headBefore);\n rebaseHistSel(sub.anchorAfter); rebaseHistSel(sub.headAfter);\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (!sub.copied) { cur.from = copyPos(cur.from); cur.to = copyPos(cur.to); }\n if (to < cur.from.line) {\n cur.from.line += diff;\n cur.to.line += diff;\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!sub.copied) {\n sub.anchorBefore = copyPos(sub.anchorBefore); sub.headBefore = copyPos(sub.headBefore);\n sub.anchorAfter = copyPos(sub.anchorAfter); sub.readAfter = copyPos(sub.headAfter);\n sub.copied = true;\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n } else {\n rebaseHistSel(sub.anchorBefore); rebaseHistSel(sub.headBefore);\n rebaseHistSel(sub.anchorAfter); rebaseHistSel(sub.headAfter);\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (!sub.copied) { cur.from = copyPos(cur.from); cur.to = copyPos(cur.to); }\n if (to < cur.from.line) {\n cur.from.line += diff;\n cur.to.line += diff;\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!sub.copied) {\n sub.anchorBefore = copyPos(sub.anchorBefore); sub.headBefore = copyPos(sub.headBefore);\n sub.anchorAfter = copyPos(sub.anchorAfter); sub.readAfter = copyPos(sub.headAfter);\n sub.copied = true;\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n } else {\n rebaseHistSel(sub.anchorBefore); rebaseHistSel(sub.headBefore);\n rebaseHistSel(sub.anchorAfter); rebaseHistSel(sub.headAfter);\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (!sub.copied) { cur.from = copyPos(cur.from); cur.to = copyPos(cur.to); }\n if (to < cur.from.line) {\n cur.from.line += diff;\n cur.to.line += diff;\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!sub.copied) {\n sub.anchorBefore = copyPos(sub.anchorBefore); sub.headBefore = copyPos(sub.headBefore);\n sub.anchorAfter = copyPos(sub.anchorAfter); sub.readAfter = copyPos(sub.headAfter);\n sub.copied = true;\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n } else {\n rebaseHistSel(sub.anchorBefore); rebaseHistSel(sub.headBefore);\n rebaseHistSel(sub.anchorAfter); rebaseHistSel(sub.headAfter);\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n\t\t for (var i = 0; i < array.length; ++i) {\n\t\t var sub = array[i], ok = true;\n\t\t if (sub.ranges) {\n\t\t if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n\t\t for (var j = 0; j < sub.ranges.length; j++) {\n\t\t rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n\t\t rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n\t\t }\n\t\t continue\n\t\t }\n\t\t for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n\t\t var cur = sub.changes[j$1];\n\t\t if (to < cur.from.line) {\n\t\t cur.from = Pos(cur.from.line + diff, cur.from.ch);\n\t\t cur.to = Pos(cur.to.line + diff, cur.to.ch);\n\t\t } else if (from <= cur.to.line) {\n\t\t ok = false;\n\t\t break\n\t\t }\n\t\t }\n\t\t if (!ok) {\n\t\t array.splice(0, i + 1);\n\t\t i = 0;\n\t\t }\n\t\t }\n\t\t }", "function rebaseHistArray(array, from, to, diff) {\n\t\t for (var i = 0; i < array.length; ++i) {\n\t\t var sub = array[i], ok = true;\n\t\t if (sub.ranges) {\n\t\t if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n\t\t for (var j = 0; j < sub.ranges.length; j++) {\n\t\t rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n\t\t rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n\t\t }\n\t\t continue;\n\t\t }\n\t\t for (var j = 0; j < sub.changes.length; ++j) {\n\t\t var cur = sub.changes[j];\n\t\t if (to < cur.from.line) {\n\t\t cur.from = Pos(cur.from.line + diff, cur.from.ch);\n\t\t cur.to = Pos(cur.to.line + diff, cur.to.ch);\n\t\t } else if (from <= cur.to.line) {\n\t\t ok = false;\n\t\t break;\n\t\t }\n\t\t }\n\t\t if (!ok) {\n\t\t array.splice(0, i + 1);\n\t\t i = 0;\n\t\t }\n\t\t }\n\t\t }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue;\n }\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue;\n }\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue;\n }\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue;\n }\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue;\n }\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue;\n }\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue;\n }\n for (var j = 0; j < sub.changes.length; ++j) {\n var cur = sub.changes[j];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\r\n for (var i = 0; i < array.length; ++i) {\r\n var sub = array[i], ok = true;\r\n if (sub.ranges) {\r\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\r\n for (var j = 0; j < sub.ranges.length; j++) {\r\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\r\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\r\n }\r\n continue;\r\n }\r\n for (var j = 0; j < sub.changes.length; ++j) {\r\n var cur = sub.changes[j];\r\n if (to < cur.from.line) {\r\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\r\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\r\n } else if (from <= cur.to.line) {\r\n ok = false;\r\n break;\r\n }\r\n }\r\n if (!ok) {\r\n array.splice(0, i + 1);\r\n i = 0;\r\n }\r\n }\r\n }", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff)\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff)\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1]\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch)\n cur.to = Pos(cur.to.line + diff, cur.to.ch)\n } else if (from <= cur.to.line) {\n ok = false\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1)\n i = 0\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff)\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff)\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1]\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch)\n cur.to = Pos(cur.to.line + diff, cur.to.ch)\n } else if (from <= cur.to.line) {\n ok = false\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1)\n i = 0\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i],\n ok = true;\n\n if (sub.ranges) {\n if (!sub.copied) {\n sub = array[i] = sub.deepCopy();\n sub.copied = true;\n }\n\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n\n continue;\n }\n\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break;\n }\n }\n\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }", "function rebaseHistArray(array, from, to, diff) {\r\n for (var i = 0; i < array.length; ++i) {\r\n var sub = array[i], ok = true;\r\n if (sub.ranges) {\r\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\r\n for (var j = 0; j < sub.ranges.length; j++) {\r\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\r\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\r\n }\r\n continue\r\n }\r\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\r\n var cur = sub.changes[j$1];\r\n if (to < cur.from.line) {\r\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\r\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\r\n } else if (from <= cur.to.line) {\r\n ok = false;\r\n break\r\n }\r\n }\r\n if (!ok) {\r\n array.splice(0, i + 1);\r\n i = 0;\r\n }\r\n }\r\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n}", "function rebaseHistArray(array, from, to, diff) {\n\t for (var i = 0; i < array.length; ++i) {\n\t var sub = array[i], ok = true;\n\t if (sub.ranges) {\n\t if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n\t for (var j = 0; j < sub.ranges.length; j++) {\n\t rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n\t rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n\t }\n\t continue;\n\t }\n\t for (var j = 0; j < sub.changes.length; ++j) {\n\t var cur = sub.changes[j];\n\t if (to < cur.from.line) {\n\t cur.from = Pos(cur.from.line + diff, cur.from.ch);\n\t cur.to = Pos(cur.to.line + diff, cur.to.ch);\n\t } else if (from <= cur.to.line) {\n\t ok = false;\n\t break;\n\t }\n\t }\n\t if (!ok) {\n\t array.splice(0, i + 1);\n\t i = 0;\n\t }\n\t }\n\t }", "function rebaseHistArray(array, from, to, diff) {\n\t for (var i = 0; i < array.length; ++i) {\n\t var sub = array[i], ok = true;\n\t if (sub.ranges) {\n\t if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n\t for (var j = 0; j < sub.ranges.length; j++) {\n\t rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n\t rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n\t }\n\t continue;\n\t }\n\t for (var j = 0; j < sub.changes.length; ++j) {\n\t var cur = sub.changes[j];\n\t if (to < cur.from.line) {\n\t cur.from = Pos(cur.from.line + diff, cur.from.ch);\n\t cur.to = Pos(cur.to.line + diff, cur.to.ch);\n\t } else if (from <= cur.to.line) {\n\t ok = false;\n\t break;\n\t }\n\t }\n\t if (!ok) {\n\t array.splice(0, i + 1);\n\t i = 0;\n\t }\n\t }\n\t }", "function rebaseHistArray(array, from, to, diff) {\n\t for (var i = 0; i < array.length; ++i) {\n\t var sub = array[i], ok = true;\n\t if (sub.ranges) {\n\t if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n\t for (var j = 0; j < sub.ranges.length; j++) {\n\t rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n\t rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n\t }\n\t continue;\n\t }\n\t for (var j = 0; j < sub.changes.length; ++j) {\n\t var cur = sub.changes[j];\n\t if (to < cur.from.line) {\n\t cur.from = Pos(cur.from.line + diff, cur.from.ch);\n\t cur.to = Pos(cur.to.line + diff, cur.to.ch);\n\t } else if (from <= cur.to.line) {\n\t ok = false;\n\t break;\n\t }\n\t }\n\t if (!ok) {\n\t array.splice(0, i + 1);\n\t i = 0;\n\t }\n\t }\n\t }", "function fr(e,t,a,n){var r=e.history;r.undone.length=0;var f,o,i=+new Date;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&(\"+\"==t.origin.charAt(0)&&r.lastModTime>i-(e.cm?e.cm.options.historyEventDelay:500)||\"*\"==t.origin.charAt(0)))&&(f=rr(r,r.lastOp==n)))\n // Merge this change into the last event\n o=p(f.changes),0==P(t.from,t.to)&&0==P(t.from,o.to)?\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n o.to=qn(t):\n // Add new sub-event\n f.changes.push(ar(e,t));else{\n // Can not be merged, start a new event.\n var s=p(r.done);for(s&&s.ranges||sr(e.sel,r.done),f={changes:[ar(e,t)],generation:r.generation},r.done.push(f);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(a),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=i,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,o||Te(e,\"historyAdded\")}", "function copyHistoryArray(events, newGroup) {\n for (var i = 0, copy = []; i < events.length; ++i) {\n var event = events[i], changes = event.changes, newChanges = [];\n copy.push({changes: newChanges, anchorBefore: event.anchorBefore, headBefore: event.headBefore,\n anchorAfter: event.anchorAfter, headAfter: event.headAfter});\n for (var j = 0; j < changes.length; ++j) {\n var change = changes[j], m;\n newChanges.push({from: change.from, to: change.to, text: change.text});\n if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\\d+)$/)) {\n if (indexOf(newGroup, Number(m[1])) > -1) {\n lst(newChanges)[prop] = change[prop];\n delete change[prop];\n }\n }\n }\n }\n return copy;\n }", "function copyHistoryArray(events, newGroup) {\n for (var i = 0, copy = []; i < events.length; ++i) {\n var event = events[i], changes = event.changes, newChanges = [];\n copy.push({changes: newChanges, anchorBefore: event.anchorBefore, headBefore: event.headBefore,\n anchorAfter: event.anchorAfter, headAfter: event.headAfter});\n for (var j = 0; j < changes.length; ++j) {\n var change = changes[j], m;\n newChanges.push({from: change.from, to: change.to, text: change.text});\n if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\\d+)$/)) {\n if (indexOf(newGroup, Number(m[1])) > -1) {\n lst(newChanges)[prop] = change[prop];\n delete change[prop];\n }\n }\n }\n }\n return copy;\n }", "function copyHistoryArray(events, newGroup) {\n for (var i = 0, copy = []; i < events.length; ++i) {\n var event = events[i], changes = event.changes, newChanges = [];\n copy.push({changes: newChanges, anchorBefore: event.anchorBefore, headBefore: event.headBefore,\n anchorAfter: event.anchorAfter, headAfter: event.headAfter});\n for (var j = 0; j < changes.length; ++j) {\n var change = changes[j], m;\n newChanges.push({from: change.from, to: change.to, text: change.text});\n if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\\d+)$/)) {\n if (indexOf(newGroup, Number(m[1])) > -1) {\n lst(newChanges)[prop] = change[prop];\n delete change[prop];\n }\n }\n }\n }\n return copy;\n }", "function copyHistoryArray(events, newGroup) {\n for (var i = 0, copy = []; i < events.length; ++i) {\n var event = events[i], changes = event.changes, newChanges = [];\n copy.push({changes: newChanges, anchorBefore: event.anchorBefore, headBefore: event.headBefore,\n anchorAfter: event.anchorAfter, headAfter: event.headAfter});\n for (var j = 0; j < changes.length; ++j) {\n var change = changes[j], m;\n newChanges.push({from: change.from, to: change.to, text: change.text});\n if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\\d+)$/)) {\n if (indexOf(newGroup, Number(m[1])) > -1) {\n lst(newChanges)[prop] = change[prop];\n delete change[prop];\n }\n }\n }\n }\n return copy;\n }", "redoHistory() {\n if (!this.canRedo()) return;\n\n let entry = this.history[this.historyPointer+1];\n // converge\n this.doHistory(entry, false);\n //adjust pointer\n this.historyPointer++;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }", "function historyChangeFromChange(doc, change) {\n\t\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t\t linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n\t\t return histChange\n\t\t }", "function historyChangeFromChange(doc, change) {\n\t\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t\t return histChange;\n\t\t }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n return histChange;\n }", "function historyChangeFromChange(doc, change) {\r\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\r\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\r\n linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\r\n return histChange;\r\n }", "function historyChangeFromChange(doc, change) {\n\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t return histChange;\n\t }", "function historyChangeFromChange(doc, change) {\n\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t return histChange;\n\t }", "function historyChangeFromChange(doc, change) {\n\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t linkedDocs(doc, function(doc) {attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);}, true);\n\t return histChange;\n\t }", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)}\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1)\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true)\n return histChange\n}", "function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)}\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1)\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true)\n return histChange\n}", "function calcChanges(childArr, oldChildArr) {\n\tvar subIndex = 0;\n\tvar changes = [];\n\n\tif (oldChildArr.length === 0 && childArr.length === 0) {\n\t\treturn [];\n\t}\n\n\tfor (; subIndex < childArr.length; subIndex++) {\n\t\tvar oldChild = oldChildArr[subIndex];\n\t\tvar newChild = childArr[subIndex];\n\t\tif (oldChild === newChild) {\n\t\t\tcontinue;\n\t\t};\n\t\tvar type = oldChild != null && newChild == null ? 'rm' : oldChild == null && newChild != null ? 'add' : 'set';\n\n\t\t// aggregate consecutive changes of the similar type to perform batch operations\n\t\tvar lastChange = changes.length > 0 ? changes[changes.length - 1] : null;\n\t\t// if there was a similiar change we add this change to the last change\n\t\tif (lastChange && lastChange.type === type) {\n\t\t\tif (type == 'rm') {\n\t\t\t\t// we just count the positions\n\t\t\t\tlastChange.num++;\n\t\t\t} else {\n\t\t\t\t// for add and set operations we need the exact index of the child and the child element to insert\n\t\t\t\tlastChange.indexes.push(subIndex);\n\t\t\t\tlastChange.elems.push(newChild);\n\t\t\t}\n\t\t} else {\n\t\t\t// if we couldn't aggregate we push a new change\n\t\t\tchanges.push({\n\t\t\t\tindexes: [subIndex],\n\t\t\t\telems: [newChild],\n\t\t\t\tnum: 1,\n\t\t\t\ttype: type\n\t\t\t});\n\t\t}\n\t}\n\t// all elements that are not in the new list got deleted\n\tif (subIndex < oldChildArr.length) {\n\t\tchanges.push({\n\t\t\tindexes: [subIndex],\n\t\t\tnum: oldChildArr.length - subIndex,\n\t\t\ttype: 'rm'\n\t\t});\n\t}\n\n\treturn changes;\n}", "handleChange(undo, oldState) {\n const { noteTracker, tr, markType } = this;\n const rebuildRange = undo\n ? noteTracker.diffRange(tr, oldState)\n : noteTracker.insertedRange(tr);\n\n if (rebuildRange) {\n const { from, to } = rebuildRange;\n const positions = notesFromDoc(tr.doc, markType, from, to);\n\n this.rebuildRange(\n rebuildRange,\n positions.map((p) => ({\n id: p.id,\n from: p.start,\n to: p.end,\n meta: p.meta,\n }))\n );\n\n return this;\n }\n\n // Else if rebuildRange is false, mappingPositions will handle removal\n\n return this;\n }", "function historyChangeFromChange(doc, change) {\r\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\r\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\r\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\r\n return histChange\r\n}" ]
[ "0.6718455", "0.6718455", "0.6718455", "0.6718455", "0.6492295", "0.648774", "0.6472811", "0.6472811", "0.6472811", "0.6472811", "0.6472811", "0.6472811", "0.6472811", "0.64685804", "0.64341486", "0.64341486", "0.6425354", "0.6421519", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63940966", "0.63924044", "0.63924044", "0.63924044", "0.6233235", "0.6190123", "0.6190123", "0.6190123", "0.6190123", "0.60989827", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.6088494", "0.607688", "0.60763216", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6066846", "0.6051639", "0.6051639", "0.6051639", "0.6051639", "0.6051639", "0.6051639", "0.6051639", "0.6043359", "0.60408413", "0.60408413", "0.60408413", "0.6039213", "0.6039213", "0.60388607", "0.60329276", "0.60131204" ]
0.64719915
29
Utility for applying a change to a line by handle or number, returning the number and optionally registering the line as changed.
function changeLine(doc, handle, changeType, op) { var no = handle, line = handle; if (typeof handle == "number") { line = getLine(doc, clipLine(doc, handle)); } else { no = lineNo(handle); } if (no == null) { return null } if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); } return line }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeLine(doc, handle, changeType, op) {\n\t var no = handle, line = handle;\n\t if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n\t else no = lineNo(handle);\n\t if (no == null) return null;\n\t if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n\t return line;\n\t }", "function changeLine(doc, handle, changeType, op) {\n\t var no = handle, line = handle;\n\t if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n\t else no = lineNo(handle);\n\t if (no == null) return null;\n\t if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n\t return line;\n\t }", "function changeLine(doc, handle, changeType, op) {\n\t var no = handle, line = handle;\n\t if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n\t else no = lineNo(handle);\n\t if (no == null) return null;\n\t if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n\t return line;\n\t }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n return line;\n }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n return line;\n }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n return line;\n }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n return line;\n }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n return line;\n }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n return line;\n }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n return line;\n }", "function changeLine(doc, handle, changeType, op) {\n\t\t var no = handle, line = handle;\n\t\t if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\n\t\t else no = lineNo(handle);\n\t\t if (no == null) return null;\n\t\t if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\n\t\t return line;\n\t\t }", "function changeLine(doc, handle, changeType, op) {\r\n var no = handle, line = handle;\r\n if (typeof handle == \"number\") line = getLine(doc, clipLine(doc, handle));\r\n else no = lineNo(handle);\r\n if (no == null) return null;\r\n if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);\r\n return line;\r\n }", "function changeLine(doc, handle, changeType, op) {\n\t\t var no = handle, line = handle;\n\t\t if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n\t\t else { no = lineNo(handle); }\n\t\t if (no == null) { return null }\n\t\t if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n\t\t return line\n\t\t }", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)) }\n else { no = lineNo(handle) }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType) }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)) }\n else { no = lineNo(handle) }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType) }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n}", "function changeLine(doc, handle, changeType, op) {\r\n var no = handle, line = handle;\r\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\r\n else { no = lineNo(handle); }\r\n if (no == null) { return null }\r\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\r\n return line\r\n}", "function changeLine(doc, handle, changeType, op) {\n var no = handle,\n line = handle;\n\n if (typeof handle == \"number\") {\n line = getLine(doc, clipLine(doc, handle));\n } else {\n no = lineNo(handle);\n }\n\n if (no == null) {\n return null;\n }\n\n if (op(line, no) && doc.cm) {\n regLineChange(doc.cm, no, changeType);\n }\n\n return line;\n } // The document is represented as a BTree consisting of leaves, with", "updateLineNumber(editor, fromLine, toLine) {\n const annotations = this.getAnnotations(editor, fromLine)\n return this._setAnnotations(\n editor,\n annotations.map(annotation => {\n return {\n ...annotation,\n lineNumber: toLine,\n }\n })\n )\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n display.externalMeasured = null;\n\n if (line < display.viewFrom || line >= display.viewTo) return;\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) return;\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) arr.push(type);\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }", "function regLineChange(cm, line, type) {\n\t cm.curOp.viewChanged = true;\n\t var display = cm.display, ext = cm.display.externalMeasured;\n\t if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n\t display.externalMeasured = null;\n\n\t if (line < display.viewFrom || line >= display.viewTo) return;\n\t var lineView = display.view[findViewIndex(cm, line)];\n\t if (lineView.node == null) return;\n\t var arr = lineView.changes || (lineView.changes = []);\n\t if (indexOf(arr, type) == -1) arr.push(type);\n\t }", "function regLineChange(cm, line, type) {\n\t cm.curOp.viewChanged = true;\n\t var display = cm.display, ext = cm.display.externalMeasured;\n\t if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n\t display.externalMeasured = null;\n\n\t if (line < display.viewFrom || line >= display.viewTo) return;\n\t var lineView = display.view[findViewIndex(cm, line)];\n\t if (lineView.node == null) return;\n\t var arr = lineView.changes || (lineView.changes = []);\n\t if (indexOf(arr, type) == -1) arr.push(type);\n\t }", "function regLineChange(cm, line, type) {\n\t cm.curOp.viewChanged = true;\n\t var display = cm.display, ext = cm.display.externalMeasured;\n\t if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n\t display.externalMeasured = null;\n\t\n\t if (line < display.viewFrom || line >= display.viewTo) return;\n\t var lineView = display.view[findViewIndex(cm, line)];\n\t if (lineView.node == null) return;\n\t var arr = lineView.changes || (lineView.changes = []);\n\t if (indexOf(arr, type) == -1) arr.push(type);\n\t }", "function regLineChange(cm, line, type) {\n\t\t cm.curOp.viewChanged = true;\n\t\t var display = cm.display, ext = cm.display.externalMeasured;\n\t\t if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n\t\t display.externalMeasured = null;\n\t\t\n\t\t if (line < display.viewFrom || line >= display.viewTo) return;\n\t\t var lineView = display.view[findViewIndex(cm, line)];\n\t\t if (lineView.node == null) return;\n\t\t var arr = lineView.changes || (lineView.changes = []);\n\t\t if (indexOf(arr, type) == -1) arr.push(type);\n\t\t }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true\n var display = cm.display, ext = cm.display.externalMeasured\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)]\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = [])\n if (indexOf(arr, type) == -1) { arr.push(type) }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true\n var display = cm.display, ext = cm.display.externalMeasured\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)]\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = [])\n if (indexOf(arr, type) == -1) { arr.push(type) }\n}", "function regLineChange(cm, line, type) {\r\n cm.curOp.viewChanged = true;\r\n var display = cm.display, ext = cm.display.externalMeasured;\r\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\r\n display.externalMeasured = null;\r\n\r\n if (line < display.viewFrom || line >= display.viewTo) return;\r\n var lineView = display.view[findViewIndex(cm, line)];\r\n if (lineView.node == null) return;\r\n var arr = lineView.changes || (lineView.changes = []);\r\n if (indexOf(arr, type) == -1) arr.push(type);\r\n }", "function regLineChange(cm, line, type) {\n\t\t cm.curOp.viewChanged = true;\n\t\t var display = cm.display, ext = cm.display.externalMeasured;\n\t\t if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n\t\t { display.externalMeasured = null; }\n\n\t\t if (line < display.viewFrom || line >= display.viewTo) { return }\n\t\t var lineView = display.view[findViewIndex(cm, line)];\n\t\t if (lineView.node == null) { return }\n\t\t var arr = lineView.changes || (lineView.changes = []);\n\t\t if (indexOf(arr, type) == -1) { arr.push(type); }\n\t\t }", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n}", "function regLineChange(cm, line, type) {\r\n cm.curOp.viewChanged = true;\r\n var display = cm.display, ext = cm.display.externalMeasured;\r\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\r\n { display.externalMeasured = null; }\r\n\r\n if (line < display.viewFrom || line >= display.viewTo) { return }\r\n var lineView = display.view[findViewIndex(cm, line)];\r\n if (lineView.node == null) { return }\r\n var arr = lineView.changes || (lineView.changes = []);\r\n if (indexOf(arr, type) == -1) { arr.push(type); }\r\n}", "function updateLineForChanges(cm, lineView, lineN, dims) {\n\t for (var j = 0; j < lineView.changes.length; j++) {\n\t var type = lineView.changes[j];\n\t if (type == \"text\") updateLineText(cm, lineView);\n\t else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n\t else if (type == \"class\") updateLineClasses(lineView);\n\t else if (type == \"widget\") updateLineWidgets(cm, lineView, dims);\n\t }\n\t lineView.changes = null;\n\t }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n\t for (var j = 0; j < lineView.changes.length; j++) {\n\t var type = lineView.changes[j];\n\t if (type == \"text\") updateLineText(cm, lineView);\n\t else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n\t else if (type == \"class\") updateLineClasses(lineView);\n\t else if (type == \"widget\") updateLineWidgets(cm, lineView, dims);\n\t }\n\t lineView.changes = null;\n\t }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n\t for (var j = 0; j < lineView.changes.length; j++) {\n\t var type = lineView.changes[j];\n\t if (type == \"text\") updateLineText(cm, lineView);\n\t else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n\t else if (type == \"class\") updateLineClasses(lineView);\n\t else if (type == \"widget\") updateLineWidgets(cm, lineView, dims);\n\t }\n\t lineView.changes = null;\n\t }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n\t\t for (var j = 0; j < lineView.changes.length; j++) {\n\t\t var type = lineView.changes[j];\n\t\t if (type == \"text\") updateLineText(cm, lineView);\n\t\t else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n\t\t else if (type == \"class\") updateLineClasses(lineView);\n\t\t else if (type == \"widget\") updateLineWidgets(cm, lineView, dims);\n\t\t }\n\t\t lineView.changes = null;\n\t\t }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n\t\t for (var j = 0; j < lineView.changes.length; j++) {\n\t\t var type = lineView.changes[j];\n\t\t if (type == \"text\") { updateLineText(cm, lineView); }\n\t\t else if (type == \"gutter\") { updateLineGutter(cm, lineView, lineN, dims); }\n\t\t else if (type == \"class\") { updateLineClasses(cm, lineView); }\n\t\t else if (type == \"widget\") { updateLineWidgets(cm, lineView, dims); }\n\t\t }\n\t\t lineView.changes = null;\n\t\t }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n for (var j = 0; j < lineView.changes.length; j++) {\n var type = lineView.changes[j];\n if (type == \"text\") updateLineText(cm, lineView);\n else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n else if (type == \"class\") updateLineClasses(lineView);\n else if (type == \"widget\") updateLineWidgets(cm, lineView, dims);\n }\n lineView.changes = null;\n }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n for (var j = 0; j < lineView.changes.length; j++) {\n var type = lineView.changes[j];\n if (type == \"text\") updateLineText(cm, lineView);\n else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n else if (type == \"class\") updateLineClasses(lineView);\n else if (type == \"widget\") updateLineWidgets(cm, lineView, dims);\n }\n lineView.changes = null;\n }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n for (var j = 0; j < lineView.changes.length; j++) {\n var type = lineView.changes[j];\n if (type == \"text\") updateLineText(cm, lineView);\n else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n else if (type == \"class\") updateLineClasses(lineView);\n else if (type == \"widget\") updateLineWidgets(lineView, dims);\n }\n lineView.changes = null;\n }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n for (var j = 0; j < lineView.changes.length; j++) {\n var type = lineView.changes[j];\n if (type == \"text\") updateLineText(cm, lineView);\n else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n else if (type == \"class\") updateLineClasses(lineView);\n else if (type == \"widget\") updateLineWidgets(lineView, dims);\n }\n lineView.changes = null;\n }", "function updateLineForChanges(cm, lineView, lineN, dims) {\n for (var j = 0; j < lineView.changes.length; j++) {\n var type = lineView.changes[j];\n if (type == \"text\") updateLineText(cm, lineView);\n else if (type == \"gutter\") updateLineGutter(cm, lineView, lineN, dims);\n else if (type == \"class\") updateLineClasses(lineView);\n else if (type == \"widget\") updateLineWidgets(lineView, dims);\n }\n lineView.changes = null;\n }" ]
[ "0.73571676", "0.73571676", "0.73571676", "0.73494065", "0.73494065", "0.73494065", "0.73494065", "0.73494065", "0.73494065", "0.73494065", "0.73469555", "0.7316735", "0.73150647", "0.7235541", "0.7235541", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.7227161", "0.72266835", "0.7144616", "0.6541116", "0.64768445", "0.64768445", "0.64768445", "0.64768445", "0.64768445", "0.64768445", "0.64768445", "0.64768445", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.64640456", "0.6460132", "0.6460132", "0.64570034", "0.64458615", "0.6442293", "0.6442293", "0.64417654", "0.6439638", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.6430384", "0.63897246", "0.61401093", "0.61401093", "0.61401093", "0.61269444", "0.61197084", "0.610824", "0.610824", "0.6106809", "0.6106809", "0.6106809" ]
0.7342512
23
The document is represented as a BTree consisting of leaves, with chunk of lines in them, and branches, with up to ten leaves or other branch nodes below them. The top node is always a branch node, and is the document object itself (meaning it has additional methods and properties). All nodes have parent links. The tree is used both to go from line numbers to line objects, and to go from objects to numbers. It also indexes by height, and is used to convert between height and line object, and to find the total height of the document. See also
function LeafChunk(lines) { this.lines = lines; this.parent = null; var height = 0; for (var i = 0; i < lines.length; ++i) { lines[i].parent = this; height += lines[i].height; } this.height = height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function BTree(){\n\tthis.root = null;\n\tthis.length = 0;\n}", "function documentFragment(children, height, depth, maxFontSize) {\n this.children = children || [];\n this.height = height || 0;\n this.depth = depth || 0;\n this.maxFontSize = maxFontSize || 0;\n}", "function documentFragment(children, height, depth, maxFontSize) {\n this.children = children || [];\n this.height = height || 0;\n this.depth = depth || 0;\n this.maxFontSize = maxFontSize || 0;\n}", "constructor() {\n\t\t/**\n\t\t *\n\t\t * @type {(BTreeNode|null)}\n\t\t */\n\t\tthis.left = null;\n\t\t/**\n\t\t * Entries counters.\n\t\t *\n\t\t * @type {number}\n\t\t */\n\t\tthis.entriesLength = 0;\n\t\t/**\n\t\t *\n\t\t * @type {(BTreeNodeEntry|null)}\n\t\t */\n\t\tthis.firstEntry = null;\n\t}", "function RBTree() {\n this._root = null;\n }", "function Tree() {\n // ----------\n // Attributes\n // ----------\n\n this.root = null; // Note the NULL root node of this tree.\n this.cur = {}; // Note the EMPTY current node of the tree we're building.\n\n\n // -- ------- --\n // -- Methods --\n // -- ------- --\n\n // Add a node: kind in {branch, leaf}.\n this.addNode = function(name, kind) {\n // Construct the node object.\n var node = {\n name: name,\n children: [],\n parent: {}\n };\n\n // Check to see if it needs to be the root node.\n if ((this.root == null) || (!this.root)) {\n // We are the root node.\n this.root = node;\n } else {\n // We are the children.\n // Make our parent the CURrent node...\n node.parent = this.cur;\n // ... and add ourselves (via the unfrotunately-named\n // \"push\" function) to the children array of the current node.\n this.cur.children.push(node);\n }\n // If we are an interior/branch node, then...\n if (kind == \"branch\") {\n // ... update the CURrent node pointer to ourselves.\n this.cur = node;\n }\n };\n\n // Note that we're done with this branch of the tree...\n this.endChildren = function() {\n // ... by moving \"up\" to our parent node (if possible).\n if ((this.cur.parent !== null) && (this.cur.parent.name !== undefined)) {\n this.cur = this.cur.parent;\n } else {\n // TODO: Some sort of error logging.\n // This really should not happen, but it will, of course.\n }\n };\n\n // Return a string representation of the tree.\n this.toString = function() {\n // Initialize the result string.\n var traversalResult = \"\";\n var level = 0;\n // Recursive function to handle the expansion of the nodes.\n function expand(node, depth) {\n // Space out based on the current depth so\n // this looks at least a little tree-like.\n for (var i = 0; i < depth; i++) {\n traversalResult += \"-\";\n }\n\n // If there are no children (i.e., leaf nodes)...\n if (!node.children || node.children.length === 0) {\n // ... note the leaf node.\n traversalResult += \"[\" + node.name + \"]\";\n traversalResult += \"\\n\";\n } else {\n // There are children, so note these interior/branch nodes and ...\n traversalResult += \"<\" + node.name + \"> \\n\";\n // .. recursively expand them.\n for (var i = 0; i < node.children.length; i++) {\n expand(node.children[i], depth + 1);\n }\n // depth-=1;\n }\n }\n // Make the initial call to expand from the root.\n expand(this.root, 0);\n // Return the result.\n return traversalResult;\n };\n}", "function Tree(branch) {\n this.branch = branch;\n this.branch = branch;\n }", "get tree() {\n return this.buffer ? null : this._tree._tree;\n }", "constructor(\n /// The start of the unchanged range pointed to by this fragment.\n /// This refers to an offset in the _updated_ document (as opposed\n /// to the original tree).\n from, \n /// The end of the unchanged range.\n to, \n /// The tree that this fragment is based on.\n tree, \n /// The offset between the fragment's tree and the document that\n /// this fragment can be used against. Add this when going from\n /// document to tree positions, subtract it to go from tree to\n /// document positions.\n offset, openStart = false, openEnd = false) {\n this.from = from;\n this.to = to;\n this.tree = tree;\n this.offset = offset;\n this.open = (openStart ? 1 /* Open.Start */ : 0) | (openEnd ? 2 /* Open.End */ : 0);\n }", "function tree() {\n var separation = defaultSeparation$1,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}", "function tree(chunk, xoff, yoff, zoff, height, i, k) {\n // leave if chunk is above/below tree height\n var js = chunk.shape[1]\n var treelo = height\n var treemax = treelo + 20\n if (yoff>treemax || yoff+js<treelo) return\n\n // don't build at chunk border for now\n var border = 5\n if (i<border || k<border) return\n var is = chunk.shape[0]\n var ks = chunk.shape[2]\n if (i>is-border || k>ks-border) return\n\n // sparse trees\n var x = xoff + i\n var z = zoff + k\n var thash = hash(x, z)\n if (floor(800*thash)!==0) return\n\n // build the treetrunk\n var treehi = treelo + 6 + floor(6*hash(x,z,1))\n for (var y=treelo; y<treehi; ++y) {\n var j = y-yoff\n if (j<0 || j>js) continue\n chunk.set( i,j,k, woodID );\n }\n\n // spherical-ish foliage\n for (var ci=-3; ci<=3; ++ci) { \n for (var cj=-3; cj<=3; ++cj) { \n for (var ck=-3; ck<=3; ++ck) {\n var tj = treehi + cj - yoff\n if (ci===0 && ck===0 && cj<0) continue\n if (tj<0 || tj>js) continue\n var rad = ci*ci + cj*cj + ck*ck\n if (rad>15) continue\n if (rad>5) {\n if (rad*hash(x+z+tj,ci,ck,cj) < 6) continue\n }\n chunk.set( i+ci, tj, k+ck, leafID );\n }\n }\n }\n}", "function Tree(opts) {\n\t\tif (opts.Xml) {\n\t\t\tvar allNodesArray = opts.Xml;\n\t\t\tvar rootNodeId = opts.RootId;\n\t\t\n\t\t\tthis.rootNode = new TreeNode({\"XML\": allNodesArray, \"RootId\": rootNodeId, \"Tree\": this});\n\t\t\tthis.highestId = Math.max.apply(Math, allNodesArray.map(function(o) { return o.id;}));\n\t\t}\n\t\telse {\n\t\t\tthis.rootNode = new TreeNode({\"SingleId\": 1});\n\t\t\tthis.highestId = 1;\n\t\t}\n\t\n\t\tif (opts.SvgDoc) {\n\t\t\tthis.setSvg(opts.SvgDoc);\n\t\t}\n\t\t{\n\t\t\tswitch (opts.Positioning) {\n\t\t\t\tcase AdHavocBinaryTree.ALGORITHM.LEFT_ALIGNED:\n\t\t\t\t\tthis._setPositioningFunction(this._calculateTreePositionsWithLeftAligned);\n\t\t\t\t\tbreak;\n\t\t\t\tcase AdHavocBinaryTree.ALGORITHM.BALANCED:\n\t\t\t\t\tthis._setPositioningFunction(this._calculateTreePositionsWithBalancedParent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthis._setPositioningFunction(this._calculateTreePositionsWithFullBalance);\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t\tthis.recalculatePositions();\n\t\t\tthis.setViewBox();\n\t\t\tthis.drawTree();\n\t\t}\n\t}", "generate() {\r\n const rootNode = new TreeNode(0, null, null)\r\n let parent = rootNode\r\n let cursor = rootNode\r\n $('.readme .markdown-body :header').each((idx, obj) => {\r\n let element = $(obj).get(0)\r\n let tag = element.tagName\r\n // extract header level\r\n let level = /H(\\d)/i.exec(tag)[1]\r\n // extract anchor\r\n let content = {\r\n href: $($(element).children().get(0)).attr('href'),\r\n text: element.innerText\r\n }\r\n // build tree\r\n if (level > cursor.level) {\r\n parent = cursor\r\n } else if (level < cursor.level) {\r\n while (level <= parent.level) {\r\n parent = parent.parent\r\n }\r\n } \r\n let node = new TreeNode(level, content, parent)\r\n parent.addChild(node)\r\n cursor = node\r\n })\r\n return rootNode\r\n }", "function tree() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}", "function tree() {\n var separation = defaultSeparation$1,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n }", "function tree() {\n var separation = defaultSeparation$1,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n }", "function tree() {\n var separation = defaultSeparation$1, dx = 1, dy = 1, nodeSize = null;\n function tree(root) {\n var t = treeRoot(root);\n // Compute the layout using Buchheim et al.’s algorithm.\n (t.eachAfter(firstWalk), t.parent.m = -t.z);\n t.eachBefore(secondWalk);\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode); else // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n {\n var left = root, right = root, bottom = root;\n root.eachBefore(function (node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2, tx = s - left.x, kx = dx / (right.x + s + tx), ky = dy / (bottom.depth || 1);\n root.eachBefore(function (node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n return root;\n }\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children, siblings = v.parent.children, w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v, vop = v, vim = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim.m, som = vom.m, shift;\n while ((vim = nextRight(vim), vip = nextLeft(vip), vim && vip)) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n tree.separation = function (x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n tree.size = function (x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : nodeSize ? null : [dx, dy];\n };\n tree.nodeSize = function (x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : nodeSize ? [dx, dy] : null;\n };\n return tree;\n }", "function tree() {\n\t var separation = defaultSeparation$1,\n\t dx = 1,\n\t dy = 1,\n\t nodeSize = null;\n\t\n\t function tree(root) {\n\t var t = treeRoot(root);\n\t\n\t // Compute the layout using Buchheim et al.’s algorithm.\n\t t.eachAfter(firstWalk), t.parent.m = -t.z;\n\t t.eachBefore(secondWalk);\n\t\n\t // If a fixed node size is specified, scale x and y.\n\t if (nodeSize) root.eachBefore(sizeNode);\n\t\n\t // If a fixed tree size is specified, scale x and y based on the extent.\n\t // Compute the left-most, right-most, and depth-most nodes for extents.\n\t else {\n\t var left = root,\n\t right = root,\n\t bottom = root;\n\t root.eachBefore(function(node) {\n\t if (node.x < left.x) left = node;\n\t if (node.x > right.x) right = node;\n\t if (node.depth > bottom.depth) bottom = node;\n\t });\n\t var s = left === right ? 1 : separation(left, right) / 2,\n\t tx = s - left.x,\n\t kx = dx / (right.x + s + tx),\n\t ky = dy / (bottom.depth || 1);\n\t root.eachBefore(function(node) {\n\t node.x = (node.x + tx) * kx;\n\t node.y = node.depth * ky;\n\t });\n\t }\n\t\n\t return root;\n\t }\n\t\n\t // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n\t // applied recursively to the children of v, as well as the function\n\t // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n\t // node v is placed to the midpoint of its outermost children.\n\t function firstWalk(v) {\n\t var children = v.children,\n\t siblings = v.parent.children,\n\t w = v.i ? siblings[v.i - 1] : null;\n\t if (children) {\n\t executeShifts(v);\n\t var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n\t if (w) {\n\t v.z = w.z + separation(v._, w._);\n\t v.m = v.z - midpoint;\n\t } else {\n\t v.z = midpoint;\n\t }\n\t } else if (w) {\n\t v.z = w.z + separation(v._, w._);\n\t }\n\t v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n\t }\n\t\n\t // Computes all real x-coordinates by summing up the modifiers recursively.\n\t function secondWalk(v) {\n\t v._.x = v.z + v.parent.m;\n\t v.m += v.parent.m;\n\t }\n\t\n\t // The core of the algorithm. Here, a new subtree is combined with the\n\t // previous subtrees. Threads are used to traverse the inside and outside\n\t // contours of the left and right subtree up to the highest common level. The\n\t // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n\t // superscript o means outside and i means inside, the subscript - means left\n\t // subtree and + means right subtree. For summing up the modifiers along the\n\t // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n\t // nodes of the inside contours conflict, we compute the left one of the\n\t // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n\t // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n\t // Finally, we add a new thread (if necessary).\n\t function apportion(v, w, ancestor) {\n\t if (w) {\n\t var vip = v,\n\t vop = v,\n\t vim = w,\n\t vom = vip.parent.children[0],\n\t sip = vip.m,\n\t sop = vop.m,\n\t sim = vim.m,\n\t som = vom.m,\n\t shift;\n\t while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n\t vom = nextLeft(vom);\n\t vop = nextRight(vop);\n\t vop.a = v;\n\t shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n\t if (shift > 0) {\n\t moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n\t sip += shift;\n\t sop += shift;\n\t }\n\t sim += vim.m;\n\t sip += vip.m;\n\t som += vom.m;\n\t sop += vop.m;\n\t }\n\t if (vim && !nextRight(vop)) {\n\t vop.t = vim;\n\t vop.m += sim - sop;\n\t }\n\t if (vip && !nextLeft(vom)) {\n\t vom.t = vip;\n\t vom.m += sip - som;\n\t ancestor = v;\n\t }\n\t }\n\t return ancestor;\n\t }\n\t\n\t function sizeNode(node) {\n\t node.x *= dx;\n\t node.y = node.depth * dy;\n\t }\n\t\n\t tree.separation = function(x) {\n\t return arguments.length ? (separation = x, tree) : separation;\n\t };\n\t\n\t tree.size = function(x) {\n\t return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n\t };\n\t\n\t tree.nodeSize = function(x) {\n\t return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n\t };\n\t\n\t return tree;\n\t }", "function tree() {\n\t var separation = defaultSeparation$1,\n\t dx = 1,\n\t dy = 1,\n\t nodeSize = null;\n\t\n\t function tree(root) {\n\t var t = treeRoot(root);\n\t\n\t // Compute the layout using Buchheim et al.’s algorithm.\n\t t.eachAfter(firstWalk), t.parent.m = -t.z;\n\t t.eachBefore(secondWalk);\n\t\n\t // If a fixed node size is specified, scale x and y.\n\t if (nodeSize) root.eachBefore(sizeNode);\n\t\n\t // If a fixed tree size is specified, scale x and y based on the extent.\n\t // Compute the left-most, right-most, and depth-most nodes for extents.\n\t else {\n\t var left = root,\n\t right = root,\n\t bottom = root;\n\t root.eachBefore(function(node) {\n\t if (node.x < left.x) left = node;\n\t if (node.x > right.x) right = node;\n\t if (node.depth > bottom.depth) bottom = node;\n\t });\n\t var s = left === right ? 1 : separation(left, right) / 2,\n\t tx = s - left.x,\n\t kx = dx / (right.x + s + tx),\n\t ky = dy / (bottom.depth || 1);\n\t root.eachBefore(function(node) {\n\t node.x = (node.x + tx) * kx;\n\t node.y = node.depth * ky;\n\t });\n\t }\n\t\n\t return root;\n\t }\n\t\n\t // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n\t // applied recursively to the children of v, as well as the function\n\t // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n\t // node v is placed to the midpoint of its outermost children.\n\t function firstWalk(v) {\n\t var children = v.children,\n\t siblings = v.parent.children,\n\t w = v.i ? siblings[v.i - 1] : null;\n\t if (children) {\n\t executeShifts(v);\n\t var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n\t if (w) {\n\t v.z = w.z + separation(v._, w._);\n\t v.m = v.z - midpoint;\n\t } else {\n\t v.z = midpoint;\n\t }\n\t } else if (w) {\n\t v.z = w.z + separation(v._, w._);\n\t }\n\t v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n\t }\n\t\n\t // Computes all real x-coordinates by summing up the modifiers recursively.\n\t function secondWalk(v) {\n\t v._.x = v.z + v.parent.m;\n\t v.m += v.parent.m;\n\t }\n\t\n\t // The core of the algorithm. Here, a new subtree is combined with the\n\t // previous subtrees. Threads are used to traverse the inside and outside\n\t // contours of the left and right subtree up to the highest common level. The\n\t // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n\t // superscript o means outside and i means inside, the subscript - means left\n\t // subtree and + means right subtree. For summing up the modifiers along the\n\t // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n\t // nodes of the inside contours conflict, we compute the left one of the\n\t // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n\t // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n\t // Finally, we add a new thread (if necessary).\n\t function apportion(v, w, ancestor) {\n\t if (w) {\n\t var vip = v,\n\t vop = v,\n\t vim = w,\n\t vom = vip.parent.children[0],\n\t sip = vip.m,\n\t sop = vop.m,\n\t sim = vim.m,\n\t som = vom.m,\n\t shift;\n\t while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n\t vom = nextLeft(vom);\n\t vop = nextRight(vop);\n\t vop.a = v;\n\t shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n\t if (shift > 0) {\n\t moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n\t sip += shift;\n\t sop += shift;\n\t }\n\t sim += vim.m;\n\t sip += vip.m;\n\t som += vom.m;\n\t sop += vop.m;\n\t }\n\t if (vim && !nextRight(vop)) {\n\t vop.t = vim;\n\t vop.m += sim - sop;\n\t }\n\t if (vip && !nextLeft(vom)) {\n\t vom.t = vip;\n\t vom.m += sip - som;\n\t ancestor = v;\n\t }\n\t }\n\t return ancestor;\n\t }\n\t\n\t function sizeNode(node) {\n\t node.x *= dx;\n\t node.y = node.depth * dy;\n\t }\n\t\n\t tree.separation = function(x) {\n\t return arguments.length ? (separation = x, tree) : separation;\n\t };\n\t\n\t tree.size = function(x) {\n\t return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n\t };\n\t\n\t tree.nodeSize = function(x) {\n\t return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n\t };\n\t\n\t return tree;\n\t }", "function LeafChunk(lines) {\n\t\t this.lines = lines;\n\t\t this.parent = null;\n\t\t var height = 0;\n\t\t for (var i = 0; i < lines.length; ++i) {\n\t\t lines[i].parent = this;\n\t\t height += lines[i].height;\n\t\t }\n\t\t this.height = height;\n\t\t }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n var height = 0;\n\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n\n this.height = height;\n }", "static of(text) {\n if (text.length == 0)\n throw new RangeError(\"A document must have at least one line\");\n if (text.length == 1 && !text[0])\n return Text.empty;\n return text.length <= 32 /* Tree.Branch */ ? new TextLeaf(text) : TextNode.from(TextLeaf.split(text, []));\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, e = lines.length, height = 0; i < e; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, e = lines.length, height = 0; i < e; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, e = lines.length, height = 0; i < e; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n\t\t this.lines = lines;\n\t\t this.parent = null;\n\t\t for (var i = 0, height = 0; i < lines.length; ++i) {\n\t\t lines[i].parent = this;\n\t\t height += lines[i].height;\n\t\t }\n\t\t this.height = height;\n\t\t }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, height = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, height = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, height = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, height = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, height = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, height = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n for (var i = 0, height = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }", "function Btnode(val){\n this.val = val;\n this.left = null;\n this.right = null;\n this.parent = null;\n this.height = function(){\n if(this.left){\n var lHeight = this.left.height();\n } else{\n var lHeight = 0;\n }\n if(this.right){\n var rHeight = this.right.height();\n } else{\n var rHeight = 0;\n }\n return 1 + Math.max(lHeight, rHeight);\n }\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n }", "function tree() {\n\t var separation = defaultSeparation$1,\n\t dx = 1,\n\t dy = 1,\n\t nodeSize = null;\n\n\t function tree(root) {\n\t var t = treeRoot(root);\n\n\t // Compute the layout using Buchheim et al.’s algorithm.\n\t t.eachAfter(firstWalk), t.parent.m = -t.z;\n\t t.eachBefore(secondWalk);\n\n\t // If a fixed node size is specified, scale x and y.\n\t if (nodeSize) root.eachBefore(sizeNode);\n\n\t // If a fixed tree size is specified, scale x and y based on the extent.\n\t // Compute the left-most, right-most, and depth-most nodes for extents.\n\t else {\n\t var left = root,\n\t right = root,\n\t bottom = root;\n\t root.eachBefore(function(node) {\n\t if (node.x < left.x) left = node;\n\t if (node.x > right.x) right = node;\n\t if (node.depth > bottom.depth) bottom = node;\n\t });\n\t var s = left === right ? 1 : separation(left, right) / 2,\n\t tx = s - left.x,\n\t kx = dx / (right.x + s + tx),\n\t ky = dy / (bottom.depth || 1);\n\t root.eachBefore(function(node) {\n\t node.x = (node.x + tx) * kx;\n\t node.y = node.depth * ky;\n\t });\n\t }\n\n\t return root;\n\t }\n\n\t // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n\t // applied recursively to the children of v, as well as the function\n\t // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n\t // node v is placed to the midpoint of its outermost children.\n\t function firstWalk(v) {\n\t var children = v.children,\n\t siblings = v.parent.children,\n\t w = v.i ? siblings[v.i - 1] : null;\n\t if (children) {\n\t executeShifts(v);\n\t var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n\t if (w) {\n\t v.z = w.z + separation(v._, w._);\n\t v.m = v.z - midpoint;\n\t } else {\n\t v.z = midpoint;\n\t }\n\t } else if (w) {\n\t v.z = w.z + separation(v._, w._);\n\t }\n\t v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n\t }\n\n\t // Computes all real x-coordinates by summing up the modifiers recursively.\n\t function secondWalk(v) {\n\t v._.x = v.z + v.parent.m;\n\t v.m += v.parent.m;\n\t }\n\n\t // The core of the algorithm. Here, a new subtree is combined with the\n\t // previous subtrees. Threads are used to traverse the inside and outside\n\t // contours of the left and right subtree up to the highest common level. The\n\t // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n\t // superscript o means outside and i means inside, the subscript - means left\n\t // subtree and + means right subtree. For summing up the modifiers along the\n\t // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n\t // nodes of the inside contours conflict, we compute the left one of the\n\t // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n\t // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n\t // Finally, we add a new thread (if necessary).\n\t function apportion(v, w, ancestor) {\n\t if (w) {\n\t var vip = v,\n\t vop = v,\n\t vim = w,\n\t vom = vip.parent.children[0],\n\t sip = vip.m,\n\t sop = vop.m,\n\t sim = vim.m,\n\t som = vom.m,\n\t shift;\n\t while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n\t vom = nextLeft(vom);\n\t vop = nextRight(vop);\n\t vop.a = v;\n\t shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n\t if (shift > 0) {\n\t moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n\t sip += shift;\n\t sop += shift;\n\t }\n\t sim += vim.m;\n\t sip += vip.m;\n\t som += vom.m;\n\t sop += vop.m;\n\t }\n\t if (vim && !nextRight(vop)) {\n\t vop.t = vim;\n\t vop.m += sim - sop;\n\t }\n\t if (vip && !nextLeft(vom)) {\n\t vom.t = vip;\n\t vom.m += sip - som;\n\t ancestor = v;\n\t }\n\t }\n\t return ancestor;\n\t }\n\n\t function sizeNode(node) {\n\t node.x *= dx;\n\t node.y = node.depth * dy;\n\t }\n\n\t tree.separation = function(x) {\n\t return arguments.length ? (separation = x, tree) : separation;\n\t };\n\n\t tree.size = function(x) {\n\t return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n\t };\n\n\t tree.nodeSize = function(x) {\n\t return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n\t };\n\n\t return tree;\n\t }", "function BNode() {\n\t/**\n\t * The keys stored it the node.\n\t * @type {Array<*>}\n\t */\n\tthis.keys = [];\n\t/**\n\t * The items stored in the node.\n\t * @type {Array<*>}\n\t */\n\tthis.items = [];\n\t/**\n\t * The nodes child of the node.\n\t * @type {Array<BNode>}\n\t */\n\tthis.childs = [];\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines\n this.parent = null\n var height = 0\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1\n height += lines[i].height\n }\n this.height = height\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\n var this$1 = this;\n\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this$1;\n height += lines[i].height;\n }\n this.height = height;\n}", "function LeafChunk(lines) {\r\n this.lines = lines;\r\n this.parent = null;\r\n for (var i = 0, height = 0; i < lines.length; ++i) {\r\n lines[i].parent = this;\r\n height += lines[i].height;\r\n }\r\n this.height = height;\r\n }", "calcOctree ()\n\t{\n\t\tif (this.octr) return this.octr;\n\n\t\t// Bounding box is the cube itself\n\t\tvar bBox = new Utils.BoundingBox (this.center, this._edge);\n\t\t// var bBox = Utils.BoundingBox (this.center, this._edge);\n\n\t\t// Only the root node completely filled\n\t\t// no parent, cube bounding box, filled, no kids\n\t\tthis.octr = new Octree.Node(null, bBox, Octree.BLACK, []);\n\t\treturn this.octr;\n\t}", "height() {\n return this.heightVisitor(this.root)\n }", "function LeafChunk(lines) {\n\t this.lines = lines;\n\t this.parent = null;\n\t for (var i = 0, height = 0; i < lines.length; ++i) {\n\t lines[i].parent = this;\n\t height += lines[i].height;\n\t }\n\t this.height = height;\n\t }", "function LeafChunk(lines) {\n\t this.lines = lines;\n\t this.parent = null;\n\t for (var i = 0, height = 0; i < lines.length; ++i) {\n\t lines[i].parent = this;\n\t height += lines[i].height;\n\t }\n\t this.height = height;\n\t }", "function LeafChunk(lines) {\n\t this.lines = lines;\n\t this.parent = null;\n\t for (var i = 0, height = 0; i < lines.length; ++i) {\n\t lines[i].parent = this;\n\t height += lines[i].height;\n\t }\n\t this.height = height;\n\t }", "function TreeNode(name, file, line, parent_ref = undefined) {\n this.count = 0;\n this.child_count = 0;\n if (parent_ref) {\n this.parent_ref = parent_ref;\n parent_ref.children.push(this);\n } else {\n this.parent_ref = undefined;\n }\n this.children = [];\n this.file = file;\n this.name = name;\n this.line = line;\n this.colour = colours[0];\n this.width = 0;\n this.x_pos = 0;\n this.depth = (parent_ref === undefined) ? 0 : parent_ref.depth + 1;\n this.selected = false;\n this.addTicks = function(ticks) {\n this.count += ticks;\n let next_parent = this.parent_ref;\n while (next_parent) {\n next_parent.child_count += ticks;\n next_parent = next_parent.parent_ref;\n }\n };\n all_tree_nodes.push(this);\n max_depth = Math.max(max_depth, this.depth);\n}", "GetTreeHeight() {\n return this.m_contactManager.m_broadPhase.GetTreeHeight();\n }", "static process_lines(lines)\r\n {\r\n if (DEBUG) console.log(`Processing ${lines.length} lines`);\r\n let doc = new Document();\r\n let definition = null;\r\n // Lists\r\n let actual_list = null;\r\n let actual_level = 0;\r\n // Main loop\r\n for (const [index, line] of lines.entries())\r\n {\r\n let text = undefined;\r\n let id = undefined;\r\n let value = undefined;\r\n // List\r\n if (actual_list !== null && line.type !== 'unordered_list'\r\n && line.type !== 'ordered_list'\r\n && line.type !== 'reverse_list')\r\n {\r\n doc.add_node(actual_list.root());\r\n actual_list = null;\r\n actual_level = 0;\r\n }\r\n let elem_is_unordered = false;\r\n let elem_is_ordered = false;\r\n let elem_is_reverse = false;\r\n switch (line.type)\r\n {\r\n case 'title':\r\n let lvl = 0;\r\n for (const char of line.value)\r\n {\r\n if (char === '#')\r\n {\r\n lvl += 1;\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n }\r\n text = line.value.substring(lvl).trim();\r\n doc.add_node(new Title(doc, text, lvl));\r\n doc.add_label(doc.make_anchor(text), '#' + doc.make_anchor(text));\r\n break;\r\n case 'separator':\r\n doc.add_node(new HR(doc));\r\n break;\r\n case 'text':\r\n if (line.value.trim().startsWith('\\\\* ')) line.value = line.value.trim().substring(1);\r\n let n = Hamill.process_inner_string(doc, line.value);\r\n doc.add_node(new TextLine(doc, n));\r\n break;\r\n case 'unordered_list':\r\n elem_is_unordered = true;\r\n if (actual_list === null)\r\n {\r\n actual_list = new List(doc, null, false, false);\r\n actual_level = 1;\r\n }\r\n // next\r\n case 'ordered_list':\r\n if (line.type === 'ordered_list') elem_is_ordered = true;\r\n if (actual_list === null)\r\n {\r\n actual_list = new List(doc, null, true, false);\r\n actual_level = 1;\r\n }\r\n // next\r\n case 'reverse_list':\r\n if (line.type === 'reverse_list') elem_is_reverse = true;\r\n if (actual_list === null)\r\n {\r\n actual_list = new List(doc, null, true, true);\r\n actual_level = 1;\r\n }\r\n // common code\r\n // compute item level\r\n let delimiters = {'unordered_list': '* ', 'ordered_list': '+ ', 'reverse_list': '- '};\r\n let delimiter = delimiters[line.type];\r\n let list_level = Math.floor(line.value.indexOf(delimiter) / 2) + 1;\r\n // coherency\r\n if (list_level === actual_level)\r\n {\r\n if ((elem_is_unordered && (actual_list.ordered || actual_list.reverse))\r\n || (elem_is_ordered && !actual_list.ordered)\r\n || (elem_is_reverse && !actual_list.reverse))\r\n {\r\n throw new Error(`Incoherency with previous item ${actual_level} at this level ${list_level}: ul:${elem_is_unordered} ol:${elem_is_unordered} r:${elem_is_reverse} vs o:${actual_list.ordered} r:${actual_list.reverse}`);\r\n }\r\n }\r\n while (list_level > actual_level)\r\n {\r\n let last = actual_list.pop(); // get and remove the last item\r\n let c = new Composite(doc, actual_list); // create a new composite\r\n c.add_child(last); // put the old last item in it\r\n actual_list = actual_list.add_child(c); // link the new composite to the list\r\n let sub = new List(doc, c, elem_is_ordered, elem_is_reverse); // create a new list\r\n actual_list = actual_list.add_child(sub);\r\n actual_level += 1;\r\n }\r\n while (list_level < actual_level)\r\n {\r\n actual_list = actual_list.parent();\r\n actual_level -= 1;\r\n if (! actual_list instanceof List)\r\n {\r\n throw new Error(\"List incoherency: last element is not a list.\");\r\n }\r\n }\r\n // creation\r\n let item_text = line.value.substring(line.value.indexOf(delimiter) + 2).trim();\r\n let item_nodes = Hamill.process_inner_string(doc, item_text);\r\n actual_list.add_child(new TextLine(doc, item_nodes));\r\n break;\r\n case 'html':\r\n doc.add_node(new RawHTML(doc, line.value.replace('!html ', '').trim()));\r\n break;\r\n case 'css':\r\n text = line.value.replace('!css ', '').trim();\r\n doc.add_css(text);\r\n break;\r\n case 'include':\r\n let include = line.value.replace('!include ', '').trim();\r\n doc.add_node(new Include(doc, include));\r\n break;\r\n case 'require':\r\n text = line.value.replace('!require ', '').trim();\r\n doc.add_required(text);\r\n break;\r\n case 'const':\r\n text = line.value.replace('!const ', '').split('=');\r\n id = text[0].trim();\r\n value = text[1].trim();\r\n doc.set_variable(id, value, 'string', true);\r\n break;\r\n case 'var':\r\n text = line.value.replace('!var ', '').split('=');\r\n id = text[0].trim();\r\n value = text[1].trim();\r\n if (value === 'true') value = true;\r\n if (value === 'TRUE') value = true;\r\n if (value === 'false') value = false;\r\n if (value === 'FALSE') value = false;\r\n let type = 'string';\r\n if (typeof value === 'boolean')\r\n {\r\n type = 'boolean';\r\n }\r\n doc.add_node(new SetVar(doc, id, value, type, false));\r\n break;\r\n case 'label':\r\n value = line.value.replace(/::/, '').trim();\r\n text = value.split('::');\r\n let label = text[0].trim();\r\n let url = text[1].trim();\r\n doc.add_label(label, url);\r\n break;\r\n case 'div':\r\n value = line.value.substring(2, line.value.length - 2).trim();\r\n let res = Hamill.process_inner_markup(value);\r\n if (res['has_only_text'] && res['text'] === 'end')\r\n {\r\n doc.add_node(new EndDiv(doc));\r\n }\r\n else if (res['has_only_text'] && res['text'] === 'begin')\r\n {\r\n doc.add_node(new StartDiv(doc));\r\n }\r\n else if (res['has_only_text'])\r\n {\r\n console.log(res);\r\n throw new Error(`Unknown quick markup: ${res['text']} in ${line}`);\r\n }\r\n else\r\n {\r\n doc.add_node(new StartDiv(doc, res['id'], res['class']));\r\n }\r\n break;\r\n case 'comment':\r\n doc.add_node(new Comment(doc, line.value.substring(2)));\r\n break;\r\n case 'row':\r\n let content = line.value.substring(1, line.value.length - 1);\r\n if (content.length === (content.match(/(-|\\|)/g) || []).length)\r\n {\r\n let i = doc.nodes.length - 1;\r\n while (doc.get_node(i) instanceof Row)\r\n {\r\n doc.get_node(i).is_header = true;\r\n i -= 1;\r\n }\r\n }\r\n else\r\n {\r\n let parts = content.split('|'); // Handle escape\r\n let all_nodes = [];\r\n for (let p of parts)\r\n {\r\n let nodes = Hamill.process_inner_string(doc, p);\r\n all_nodes.push(nodes);\r\n }\r\n doc.add_node(new Row(doc, all_nodes));\r\n }\r\n break;\r\n case 'empty':\r\n doc.add_node(new EmptyNode(doc));\r\n break;\r\n case 'definition-header':\r\n definition = Hamill.process_inner_string(doc, line.value);\r\n break;\r\n case 'definition-content':\r\n if (definition === null)\r\n {\r\n throw new Error('Definition content without header: ' + line.value);\r\n }\r\n doc.add_node(new Definition(doc, definition, Hamill.process_inner_string(doc, line.value)));\r\n definition = null;\r\n break;\r\n case 'quote':\r\n doc.add_node(new Quote(doc, line.value));\r\n break;\r\n case 'code':\r\n doc.add_node(new Code(doc, line.value));\r\n break;\r\n default:\r\n throw new Error(`Unknown ${line.type}`);\r\n }\r\n }\r\n // List\r\n if (actual_list !== null)\r\n {\r\n doc.add_node(actual_list.root());\r\n }\r\n return doc;\r\n }", "function treeFromLines(lines: string[]): tree.Node {\n const data: Array<[string, number]> = [];\n for (const line of lines) {\n let [sizeStr, path] = line.split(/\\s+/);\n path = path || '';\n const size = Number(sizeStr);\n data.push([path, size]);\n }\n let node = tree.treeify(data);\n\n // If there's a common empty parent, skip it.\n if (node.id === undefined && node.children && node.children.length === 1) {\n node = node.children[0];\n }\n\n // If there's an empty parent, roll up for it.\n if (node.size === 0 && node.children) {\n for (const c of node.children) {\n node.size += c.size;\n }\n }\n\n tree.rollup(node);\n tree.sort(node);\n tree.flatten(node);\n\n return node;\n}", "function LeafChunk(lines) {\r\n var this$1 = this;\r\n\r\n this.lines = lines;\r\n this.parent = null;\r\n var height = 0;\r\n for (var i = 0; i < lines.length; ++i) {\r\n lines[i].parent = this$1;\r\n height += lines[i].height;\r\n }\r\n this.height = height;\r\n}", "function AbstractTree() {\n\n\tthis.root = null;\n\tthis.cur = null;\n\n\t// Add a node: kind = [branch|leaf]\n\tthis.addNode = function(token, kind) {\n\n\t\t// Construct the node object\n\t\tvar node = new Node(token, this.cur);\n\n\t\t// if there are no nodes in the tree yet, start the tree here\n\t\tif(!this.cur) {\n\t\t\tthis.cur = node;\n\n\t\t// otherwise, add this node to the children array\n\t\t} else {\n\t\t\tthis.cur.addChild(node);\n\t\t}\n\n\t\t// if we are an interior/branch node, then update the current node to be this node\n\t\tif (kind === \"branch\") {\n\t\t\tthis.cur = node;\n\t\t}\n\n\t\t// if this node is the super root, set it as the root of the tree\n\t\tif(token === \"Super Root\") {\n\t\t\tthis.root = node;\n\t\t}\n\n\t\toutVerbose(parseTabs() + \"Added node -> \" + node.toString());\n\n\t};\n\n\tthis.startBranch = function(branchName) {\n\t\tthis.addNode(branchName, \"branch\");\n\n\t\tif((typeof branchName === \"object\") && !isNaN(branchName.type)) {\n\t\t\tif(branchName.value) {\n\t\t\t\tbranchName = getTokenType(branchName.type) + \" \" + branchName.value;\n\t\t\t} else {\n\t\t\t\tbranchName = getTokenType(branchName.type);\n\t\t\t}\n\t\t}\n\n\t\toutVerbose(parseTabs() + \"Creating \" + branchName + \" branch\");\n\t\tnumTabs++;\n\t};\n\n\tthis.endBranch = function() {\n\n\t\t// if the current node has a parent (i.e. is NOT the superRoot)\n\t\tif(this.cur.parent) {\n\n\t\t\t// move the current node up to this node's parent\n\t\t\tthis.cur = this.cur.parent;\n\n\t\t// otherwise, we have a problem\n\t\t} else {\n\t\t\toutError(\"ERROR: can't end branch because parent does not exist.\");\n\t\t}\n\n\t\tnumTabs--;\n\n\t};\n\n\tthis.traverseTree = function(treeRoot) {\n\n\t\t// if token type is a number\n\t\tif(!isNaN(treeRoot.token.type)) {\n\t\t\tthis.addNode(treeRoot.token, \"leaf\");\n\t\t\treturn;\n\t\t}\n\n\t\tswitch(treeRoot.token) {\n\n\t\t\tcase \"Statement\":\n\n\t\t\t\t// print statement\n\t\t\t\tif(treeRoot.children[0].token.type === T_TYPE.PRINT) {\n\t\t\t\t\tthis.startBranch(\"print\");\n\t\t\t\t\tthis.traverseTree(treeRoot.children[2]);\n\t\t\t\t\tthis.endBranch();\n\t\t\t\t}\n\n\t\t\t\t// assignment statement\n\t\t\t\telse if(treeRoot.children[1] && treeRoot.children[1].token.type === T_TYPE.EQUAL) {\n\t\t\t\t\tthis.startBranch(\"assign\");\n\t\t\t\t\tthis.addNode(treeRoot.children[0].token, \"leaf\");\n\t\t\t\t\tthis.traverseTree(treeRoot.children[2]);\n\t\t\t\t\tthis.endBranch();\n\t\t\t\t}\n\n\t\t\t\t// block\n\t\t\t\telse if(treeRoot.children[0] && treeRoot.children[0].token.type === T_TYPE.BRACE) {\n\t\t\t\t\tthis.startBranch(\"block\");\n\t\t\t\t\t// ignore } if it's the next node\n\t\t\t\t\tif(treeRoot.children[1].token.type !== T_TYPE.BRACE && treeRoot.children[1].token.value !== \"}\") {\n\t\t\t\t\t\tthis.traverseTree(treeRoot.children[1]);\n\t\t\t\t\t}\n\t\t\t\t\tthis.endBranch();\n\t\t\t\t}\n\n\t\t\t\t// otherwise (VarDecl)\n\t\t\t\telse if(treeRoot.children[0]) {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[0]);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"IfStatement\":\n\t\t\t\tthis.startBranch(\"if\");\n\n\t\t\t\t// BooleanExpr\n\t\t\t\tthis.traverseTree(treeRoot.children[1]);\n\n\t\t\t\t// block\n\t\t\t\tthis.startBranch(\"block\");\n\t\t\t\t// ignore } if it's the next node\n\t\t\t\tif(treeRoot.children[3].token.type !== T_TYPE.BRACE && treeRoot.children[3].token.value !== \"}\") {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[3]);\n\t\t\t\t}\n\t\t\t\tthis.endBranch();\n\n\t\t\t\tthis.endBranch();\n\t\t\t\tbreak;\n\n\t\t\tcase \"WhileStatement\":\n\t\t\t\tthis.startBranch(\"while\");\n\n\t\t\t\t// BooleanExpr\n\t\t\t\tthis.traverseTree(treeRoot.children[1]);\n\n\t\t\t\t// block\n\t\t\t\tthis.startBranch(\"block\");\n\t\t\t\t// ignore } if it's the next node\n\t\t\t\tif(treeRoot.children[3].token.type !== T_TYPE.BRACE && treeRoot.children[3].token.value !== \"}\") {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[3]);\n\t\t\t\t}\n\t\t\t\tthis.endBranch();\n\n\t\t\t\tthis.endBranch();\n\t\t\t\tbreak;\n\n\t\t\tcase \"StatementList\":\n\t\t\t\tif(treeRoot.children[0]) {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[0]);\n\t\t\t\t}\n\t\t\t\tif(treeRoot.children[1]) {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[1]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"IntExpr\":\n\t\t\t\tif(treeRoot.children[1]) {\n\t\t\t\t\tthis.startBranch(treeRoot.children[1].token); // use operation as branch root\n\t\t\t\t\tthis.traverseTree(treeRoot.children[0]);\n\t\t\t\t\tthis.traverseTree(treeRoot.children[2]);\n\t\t\t\t\tthis.endBranch();\n\t\t\t\t} else {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[0]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"StringExpr\":\n\t\t\t\tthis.startBranch(\"string\");\n\t\t\t\tthis.traverseTree(treeRoot.children[1]);\n\t\t\t\tthis.endBranch();\n\t\t\t\tbreak;\n\n\t\t\tcase \"BooleanExpr\":\n\t\t\t\tif(treeRoot.children[1]) {\n\t\t\t\t\tthis.startBranch(\"equal?\");\n\t\t\t\t\tthis.traverseTree(treeRoot.children[1]);\n\t\t\t\t\tthis.traverseTree(treeRoot.children[3]);\n\t\t\t\t\tthis.endBranch();\n\t\t\t\t} else {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[0]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"CharList\":\n\t\t\t\tthis.traverseTree(treeRoot.children[0]);\n\t\t\t\tif(treeRoot.children[1]) {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[1]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"VarDecl\":\n\t\t\t\tthis.startBranch(\"declare\");\n\t\t\t\tthis.addNode(treeRoot.children[0].token, \"leaf\"); // Type\n\t\t\t\tthis.addNode(treeRoot.children[1].token, \"leaf\"); // Id\n\t\t\t\tthis.endBranch();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tif(treeRoot.children[0]) {\n\t\t\t\t\tthis.traverseTree(treeRoot.children[0]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\n\t};\n\n\tthis.addNode(\"Super Root\", \"branch\");\n\tthis.traverseTree(parseTree.root);\n\n}", "function Octree(c, r, curr_level){\n\n this.center = c;\n this.radius = r;\n\n this.level = curr_level;\n this.atom_IDS = [];\n this.max_level = 0;\n this.array_index = -1;\n this.parent = null;\n this.childs = [null, null, null, null, null, null, null, null];\n\n this.getParent = function(){\n return this.parent;\n }\n this.getChild = function(index){\n if(index>=8)\n return null;\n return this.childs[index];\n }\n this.getMax = function(){\n return [this.center[0] + this.radius[0], this.center[1] + this.radius[1], this.center[2] + this.radius[2]];\n }\n this.getMin = function(){\n return [this.center[0] - this.radius[0], this.center[1] - this.radius[1], this.center[2] - this.radius[2]];;\n }\n this.getLevel = function(){\n return this.level;\n }\n this.getArr_Index = function(){\n return this.array_index;\n }\n}", "function documentFragment(children) {\n this.children = children || [];\n this.height = 0;\n this.depth = 0;\n this.maxFontSize = 0;\n}", "function ye(e){e=de(e);for(var t=0,a=e.parent,n=0;n<a.lines.length;++n){var r=a.lines[n];if(r==e)break;t+=r.height}for(var f=a.parent;f;a=f,f=a.parent)for(var o=0;o<f.children.length;++o){var i=f.children[o];if(i==a)break;t+=i.height}return t}", "heightOfTree(root) {\n if (root === null) {\n return 0;\n }\n let leftHeight = this.heightOfTree(root.left);\n let rightHeight = this.heightOfTree(root.right);\n return 1 + Math.max(leftHeight, rightHeight)\n\n }", "function genTreeText(aT, aProcess)\n{\n var treeBytes = aT._amount;\n var rootStringLength = aT.toString().length;\n var isExplicitTree = aT._name == 'explicit';\n\n /**\n * Generates the text for a particular tree, without a heading.\n *\n * @param aT\n * The tree.\n * @param aIndentGuide\n * Records what indentation is required for this tree. It has one\n * entry per level of indentation. For each entry, ._isLastKid\n * records whether the node in question is the last child, and\n * ._depth records how many chars of indentation are required.\n * @param aParentStringLength\n * The length of the formatted byte count of the top node in the tree.\n * @return The generated text.\n */\n function genTreeText2(aT, aIndentGuide, aParentStringLength)\n {\n function repeatStr(aC, aN)\n {\n var s = \"\";\n for (var i = 0; i < aN; i++) {\n s += aC;\n }\n return s;\n }\n\n // Generate the indent. There's a subset of the Unicode \"light\"\n // box-drawing chars that are widely implemented in terminals, and\n // this code sticks to that subset to maximize the chance that\n // cutting and pasting about:memory output to a terminal will work\n // correctly:\n const kHorizontal = \"\\u2500\",\n kVertical = \"\\u2502\",\n kUpAndRight = \"\\u2514\",\n kVerticalAndRight = \"\\u251c\";\n var indent = \"<span class='treeLine'>\";\n if (aIndentGuide.length > 0) {\n for (var i = 0; i < aIndentGuide.length - 1; i++) {\n indent += aIndentGuide[i]._isLastKid ? \" \" : kVertical;\n indent += repeatStr(\" \", aIndentGuide[i]._depth - 1);\n }\n indent += aIndentGuide[i]._isLastKid ? kUpAndRight : kVerticalAndRight;\n indent += repeatStr(kHorizontal, aIndentGuide[i]._depth - 1);\n }\n\n // Indent more if this entry is narrower than its parent, and update\n // aIndentGuide accordingly.\n var tString = aT.toString();\n var extraIndentLength = Math.max(aParentStringLength - tString.length, 0);\n if (extraIndentLength > 0) {\n for (var i = 0; i < extraIndentLength; i++) {\n indent += kHorizontal;\n }\n aIndentGuide[aIndentGuide.length - 1]._depth += extraIndentLength;\n }\n indent += \"</span>\";\n\n // Generate the percentage.\n var perc = \"\";\n if (aT._amount === treeBytes) {\n perc = \"100.0\";\n } else {\n perc = (100 * aT._amount / treeBytes).toFixed(2);\n perc = pad(perc, 5, '0');\n }\n perc = \"<span class='mrPerc'>(\" + perc + \"%)</span> \";\n\n // We don't want to show '(nonheap)' on a tree like 'map/vsize', since the\n // whole tree is non-heap.\n var kind = isExplicitTree ? aT._kind : undefined;\n var text = indent + genMrValueText(tString) + \" \" + perc +\n genMrNameText(kind, aT._description, aT._name,\n aT._hasProblem, aT._nMerged);\n\n for (var i = 0; i < aT._kids.length; i++) {\n // 3 is the standard depth, the callee adjusts it if necessary.\n aIndentGuide.push({ _isLastKid: (i === aT._kids.length - 1), _depth: 3 });\n text += genTreeText2(aT._kids[i], aIndentGuide, tString.length);\n aIndentGuide.pop();\n }\n return text;\n }\n\n var text = genTreeText2(aT, [], rootStringLength);\n\n // The explicit tree is not collapsed, but all other trees are, so pass\n // !isExplicitTree for genSectionMarkup's aCollapsed parameter.\n return genSectionMarkup(aProcess, aT._name, text, !isExplicitTree);\n}", "function DocumentFragment(children) {\n this.children = void 0;\n this.classes = void 0;\n this.height = void 0;\n this.depth = void 0;\n this.maxFontSize = void 0;\n this.style = void 0;\n this.children = children;\n this.classes = [];\n this.height = 0;\n this.depth = 0;\n this.maxFontSize = 0;\n this.style = {};\n }", "function DocumentFragment(children) {\n this.children = void 0;\n this.classes = void 0;\n this.height = void 0;\n this.depth = void 0;\n this.maxFontSize = void 0;\n this.style = void 0;\n this.children = children;\n this.classes = [];\n this.height = 0;\n this.depth = 0;\n this.maxFontSize = 0;\n this.style = {};\n }", "function DocumentFragment(children) {\n this.children = void 0;\n this.classes = void 0;\n this.height = void 0;\n this.depth = void 0;\n this.maxFontSize = void 0;\n this.style = void 0;\n this.children = children;\n this.classes = [];\n this.height = 0;\n this.depth = 0;\n this.maxFontSize = 0;\n this.style = {};\n }", "function tree (treeBuild) {\n\tnumberChars = 1;\n\tvar spacesForTree = treeBuild.height - 1;\n\t\t// width of tree \"box\" = (height * 2) - 1\n\tfor (var i = 0; i < treeBuild.height; i++) {\n\t\taddBlanks(spacesForTree);\n\t\taddChars(treeBuild.char);\n\t\tprintTree();\n\t\tspacesForTree--;\n\t}\n}", "function BinaryTree() {\n this._root = null;\n}", "function lineAtHeight(chunk, h) {\n\t\t var n = chunk.first;\n\t\t outer: do {\n\t\t for (var i = 0; i < chunk.children.length; ++i) {\n\t\t var child = chunk.children[i], ch = child.height;\n\t\t if (h < ch) { chunk = child; continue outer; }\n\t\t h -= ch;\n\t\t n += child.chunkSize();\n\t\t }\n\t\t return n;\n\t\t } while (!chunk.lines);\n\t\t for (var i = 0; i < chunk.lines.length; ++i) {\n\t\t var line = chunk.lines[i], lh = line.height;\n\t\t if (h < lh) break;\n\t\t h -= lh;\n\t\t }\n\t\t return n + i;\n\t\t }", "function OBJECT_FOR_TREE(id) {\n this.id = id || 0;\n this.cell = this.obj = this.pre = this.next = null;\n }", "function BinarySearchTree() {\n /**\n * Pointer to root node in the tree.\n * @property _root\n * @type Object\n */\n this._root = null;\n}", "function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\");\n for (var chunk = doc; !chunk.lines;) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break; }\n n -= sz;\n }\n }\n return chunk.lines[n];\n }", "function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\");\n for (var chunk = doc; !chunk.lines;) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break; }\n n -= sz;\n }\n }\n return chunk.lines[n];\n }", "function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\");\n for (var chunk = doc; !chunk.lines;) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break; }\n n -= sz;\n }\n }\n return chunk.lines[n];\n }", "function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\");\n for (var chunk = doc; !chunk.lines;) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break; }\n n -= sz;\n }\n }\n return chunk.lines[n];\n }", "function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\");\n for (var chunk = doc; !chunk.lines;) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break; }\n n -= sz;\n }\n }\n return chunk.lines[n];\n }", "function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\");\n for (var chunk = doc; !chunk.lines;) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break; }\n n -= sz;\n }\n }\n return chunk.lines[n];\n }", "function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\");\n for (var chunk = doc; !chunk.lines;) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break; }\n n -= sz;\n }\n }\n return chunk.lines[n];\n }", "function DocumentNode(body, loc) {\n this.type = \"Document\";\n this.body = body;\n this.loc = loc;\n }", "function FBXTree() {}", "function FBXTree() {}", "function DocumentNode(body, loc) {\n this.type = \"Document\";\n this.body = body;\n this.loc = loc;\n}" ]
[ "0.5686588", "0.545292", "0.545292", "0.5316049", "0.5282906", "0.52820325", "0.5277185", "0.5250241", "0.52339", "0.51990473", "0.51844394", "0.5180048", "0.51776135", "0.51741374", "0.51716566", "0.51716566", "0.5167105", "0.5155398", "0.5155398", "0.51544017", "0.51374495", "0.51158535", "0.50839716", "0.50839716", "0.50839716", "0.5077853", "0.50747406", "0.50747406", "0.50747406", "0.50747406", "0.50747406", "0.50747406", "0.50747406", "0.5049476", "0.5046687", "0.5046687", "0.5046687", "0.5046687", "0.5046687", "0.5046687", "0.5046687", "0.5046687", "0.5046687", "0.5042654", "0.5035001", "0.5020575", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49980813", "0.49916875", "0.4987636", "0.49865448", "0.49859846", "0.49859846", "0.49859846", "0.49852884", "0.49761957", "0.4963133", "0.49627647", "0.49565446", "0.49552715", "0.493825", "0.4935196", "0.49325094", "0.48959133", "0.48940396", "0.4894024", "0.4894024", "0.4894024", "0.48743287", "0.4855889", "0.4844736", "0.48343897", "0.4832708", "0.4820901", "0.4820901", "0.4820901", "0.4820901", "0.4820901", "0.4820901", "0.4820901", "0.48157087", "0.48122615", "0.48122615", "0.48048538" ]
0.5140878
27
Create a marker, wire it up to the right lines, and
function markText(doc, from, to, options, type) { // Shared markers (across linked documents) are handled separately // (markTextShared will call out to this again, once per // document). if (options && options.shared) { return markTextShared(doc, from, to, options, type) } // Ensure we are in an operation. if (doc.cm && !doc.cm.curOp) { return operation(doc.cm, markText)(doc, from, to, options, type) } var marker = new TextMarker(doc, type), diff = cmp(from, to); if (options) { copyObj(options, marker, false); } // Don't connect empty markers unless clearWhenEmpty is false if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false) { return marker } if (marker.replacedWith) { // Showing up as a widget implies collapsed (widget replaces text) marker.collapsed = true; marker.widgetNode = eltP("span", [marker.replacedWith], "CodeMirror-widget"); if (!options.handleMouseEvents) { marker.widgetNode.setAttribute("cm-ignore-events", "true"); } if (options.insertLeft) { marker.widgetNode.insertLeft = true; } } if (marker.collapsed) { if (conflictingCollapsedRange(doc, from.line, from, to, marker) || from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker)) { throw new Error("Inserting collapsed marker partially overlapping an existing one") } seeCollapsedSpans(); } if (marker.addToHistory) { addChangeToHistory(doc, {from: from, to: to, origin: "markText"}, doc.sel, NaN); } var curLine = from.line, cm = doc.cm, updateMaxLine; doc.iter(curLine, to.line + 1, function (line) { if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine) { updateMaxLine = true; } if (marker.collapsed && curLine != from.line) { updateLineHeight(line, 0); } addMarkedSpan(line, new MarkedSpan(marker, curLine == from.line ? from.ch : null, curLine == to.line ? to.ch : null)); ++curLine; }); // lineIsHidden depends on the presence of the spans, so needs a second pass if (marker.collapsed) { doc.iter(from.line, to.line + 1, function (line) { if (lineIsHidden(doc, line)) { updateLineHeight(line, 0); } }); } if (marker.clearOnEnter) { on(marker, "beforeCursorEnter", function () { return marker.clear(); }); } if (marker.readOnly) { seeReadOnlySpans(); if (doc.history.done.length || doc.history.undone.length) { doc.clearHistory(); } } if (marker.collapsed) { marker.id = ++nextMarkerId; marker.atomic = true; } if (cm) { // Sync editor state if (updateMaxLine) { cm.curOp.updateMaxLine = true; } if (marker.collapsed) { regChange(cm, from.line, to.line + 1); } else if (marker.className || marker.startStyle || marker.endStyle || marker.css || marker.attributes || marker.title) { for (var i = from.line; i <= to.line; i++) { regLineChange(cm, i, "text"); } } if (marker.atomic) { reCheckSelection(cm.doc); } signalLater(cm, "markerAdded", cm, marker); } return marker }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawMarker(lineWidth, lineHeightPerc, offset, markerLength, horiz) {\n var start, end;\n var height = em.height();\n if (horiz) {\n start = { x: offset, y: height};\n end = { x: offset, y: height - (markerLength*lineHeightPerc)};\n } else {\n start = { x: 0, y: height-offset};\n end = { x: markerLength*lineHeightPerc, y: height-offset};\n }\n //console.log('drawing marker from ' + start.x +\",\" + start.y +\" to \"+ end.x + \",\" + end.y);\n draw.drawLine(start, end, { lineWidth: lineWidth, lineColor: opts.ruler.lineColor, lineCap: 'round'});\n }", "createMarker(d, n) {\r\n this._createMarker(d, n);\r\n }", "createIconMarker (line1, line2) {\n \n let { M, H,Map,CORV } = this.state;\n \n var svgMarker = this.props.CORV.svgMarkerImage_Line;\n \n // every long address not shown \n // correctly in marker\n if (line2 && line2.length > 42) {\n line2 = line2.substring(0, 40);\n line2 = line2 + \"..\";\n }\n \n svgMarker = svgMarker.replace(/__line1__/g, line1);\n svgMarker = svgMarker.replace(/__line2__/g, (line2 != undefined ? line2 : \"\"));\n svgMarker = svgMarker.replace(/__width__/g, (line2 != undefined ? line2.length * 2 + 80: (line1.length * 2 + 80)));\n svgMarker = svgMarker.replace(/__widthAll__/g, (line2 != undefined ? line2.length * 2 + 160 : (line1.length * 2 + 160)));\n var icon = new H.map.Icon(svgMarker, {\n anchor: new H.math.Point(24, 57),\n size: { w: 250, h: 80 },\n });\n \n return icon;\n \n // svgMarker = svgMarker.replace(/__line1__/g, line1);\n\t\t\t// \tsvgMarker = svgMarker.replace(/__line2__/g, (line2 != undefined ? line2 : \"\"));\n\t\t\t// \tsvgMarker = svgMarker.replace(/__width__/g, (line2 != undefined ? line2.length * 4 + 20 : (line1.length * 4 + 80)));\n\t\t\t// \tsvgMarker = svgMarker.replace(/__widthAll__/g, (line2 != undefined ? line2.length * 4 + 80 : (line1.length * 4 + 150)));\n\t\t\t// \tconsole.log(svgMarker);\n\t\t\t// \tvar icon = new H.map.Icon(svgMarker, {\n\t\t\t// \t\tanchor: new H.math.Point(24, 57)\n\t\t\t// \t});\n }", "function addMarker(defs, link, inverse) {\n defs\n .append('marker')\n .attr('id', getMarkerId(link, inverse))\n .attr('viewBox', '0 -8 14 16')\n .attr('refX', inverse ? 0 : 12)\n .attr('refY', 0)\n .attr('markerWidth', 12) // ArrowSize\n .attr('markerHeight', 12)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('orient', 'auto') // Orientation of Arrow\n .attr('class', (link.type ? link.type : 'normal') + 'Marker')\n .append('path')\n .attr('d', function() {\n return inverse ? 'M12,-8L0,0L12,8Z' : 'M0,-8L12,0L0,8Z';\n });\n }", "marker(marker, width, height, block) {\n var attr = ['marker']; // Build attribute name\n\n if (marker !== 'all') attr.push(marker);\n attr = attr.join('-'); // Set marker attribute\n\n marker = arguments[1] instanceof Marker_Marker ? arguments[1] : this.defs().marker(width, height, block);\n return this.attr(attr, marker);\n }", "function createMarker(pos, obj, map) {\r\n var marker = new google.maps.Marker({\r\n position: pos,\r\n map: map,\r\n icon: DEFAULT_ICON,\r\n data: obj\r\n });\r\n\r\n // When the user clicks a marker, check if this is the first marker\r\n // if that's the case make this the starting point.\r\n // If it's the second marker, make it the ending point.\r\n // If it's above the second marker, shift everything\r\n marker.addListener(\"click\", function(e) {\r\n markers.push(marker);\r\n\r\n if(markers.length > 2) {\r\n markers = shiftMarkers(markers);\r\n }\r\n\r\n updateInfo();\r\n });\r\n\r\n\r\n return marker;\r\n }", "function mapper_create_marker(point,title,glyph) {\n var number = map_markers.length\n var marker_options = { title:title }\n if ( glyph != null ) {\n\tmarker_options[\"icon\"] = glyph;\n }\n else if ( map_icons.length > 0 ) {\n\tmarker_options[\"icon\"] = map_icons[map_icons.length-1];\n }\n var marker = new GMarker(point, marker_options );\n map_markers.push(marker)\n marker.value = number;\n GEvent.addListener(marker, \"click\", function() {\n // marker.openInfoWindowHtml(title);\n map.openInfoWindowHtml(point,title);\n });\n map.addOverlay(marker);\n return marker;\n}", "drawLinesBetweenMarkers() {\n let lineString = new H.geo.LineString();\n for(let i = 0; i < this.markers.length; i++) {\n lineString.pushPoint(this.markers[i].getPosition());\n }\n this.map.addObject(new H.map.Polyline(\n lineString, { style: { strokeColor: \"green\", lineWidth: 5 }}\n ));\n }", "function Marker(mark) {\n if (!mark) mark = '';\n this.mark = mark;\n}", "createMarker(){\n\t\tif (!this.values.marker.is_created){\n\t\t\tvar $target = this.getTarget(),\n\t\t\t\tmarker = this.getMarker();\n\n\t\t\t$target.append(\n\t\t\t\tmarker.$elm.append(\n\t\t\t\t\tmarker.$content.append(marker.$img,marker.$header,marker.$body),\n\t\t\t\t\tmarker.$shadow\n\t\t\t\t)\n\t\t\t);\n\t\t\tmarker.is_created = true;\n\t\t}\n\t\t\n\t\treturn this;\n\t}", "function createMarker(stopName,stopBuses,point, markerNum,iconType) \r\n \r\n\t{\r\n //var infoWindowHtml = generateInfoWindowHtml(biz)\r\n\t\t\r\n\t\tvar splitBuses=stopBuses.split(\",\");\r\n\t\tvar busString='';\r\n\t\tvar len=0;\r\n\t\tif(splitBuses.length>5)\r\n\t\t{\r\n\t\t\tfor(i=0;i<splitBuses.length;i++)\r\n\t\t\t{\r\n\t\t\t\tbusString=busString+splitBuses[i]+\",\";\r\n\t\t\t\tif(i%8==7)\r\n\t\t\t\t\tbusString=busString+\"<br>\";\r\n\t\t\t}\r\n\t\t\tlen=busString.length-2;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbusString=stopBuses;\r\n\t\t\tlen=busString.length;\r\n\t\t}\r\n\r\n\t\t\r\n\t\tvar infoWindowHtml = stopName+\"<br/>\"+busString.substring(0,len);\r\n\r\n var marker = new GMarker(point, iconType);\r\n map.addOverlay(marker);\r\n \r\n\t\t// required to collect data for the proper centering of the map\r\n\t\tbounds.extend(marker.getPoint());\r\n \r\n\t\tGEvent.addListener(marker, \"click\", function() {\r\n marker.openInfoWindowHtml(infoWindowHtml, {maxWidth:400});\r\n });\r\n // automatically open first marker\r\n // if (markerNum == 0)\r\n // marker.openInfoWindowHtml(infoWindowHtml, {maxWidth:400});\r\n\t\t//return marker;\r\n }", "function markPosition(x, y, markerObject) {\n if (x >= 0 && x < size && y >= 0 && y < size){\n if (matrix[y][x] && matrix[y][x].marker != markerObject.marker)\n matrix[y][x] = {steps: matrix[y][x].steps + markerObject.steps, marker: 'x'};\n else \n matrix[y][x] = markerObject;\n }\n}", "function mainMarker(x,y,name,i) {\n \n \n var marker = new google.maps.Marker({\n position: {lat: x, lng: y},\n map: map,\n label:(++i).toString(), \n \n title: name\n });\n markerArray.push(marker);\n }", "function PlaceMarker(vstrType, vintX, vintY) {\n //----\n // set pattern masks\n //----\n var lintMask = 0;\n var larrPosition = new Array('on', 'on', 'on', 'on', 'on', 'on', 'on',\n 'on', 'off', 'off', 'off', 'off', 'off', 'on',\n 'on', 'off', 'on', 'on', 'on', 'off', 'on',\n 'on', 'off', 'on', 'on', 'on', 'off', 'on',\n 'on', 'off', 'on', 'on', 'on', 'off', 'on',\n 'on', 'off', 'off', 'off', 'off', 'off', 'on',\n 'on', 'on', 'on', 'on', 'on', 'on', 'on');\n \n var larrAlignment = new Array('on', 'on', 'on', 'on', 'on',\n 'on', 'off', 'off', 'off', 'on',\n 'on', 'off', 'on', 'off', 'on',\n 'on', 'off', 'off', 'off', 'on',\n 'on', 'on', 'on', 'on', 'on');\n \n //----\n // switch base on type\n //----\n switch(vstrType) {\n case \"position\":\n //----\n // do position mark\n //----\n for(ii=(vintY - 4); ii < (vintY + 3); ii++) {\n for(nn=(vintX - 4); nn < (vintX + 3); nn++) {\n lobjModule = document.getElementById('div'+ ii +'_'+ nn);\n lobjModule.className = lobjModule.className.replace('off', \n larrPosition[lintMask] + ' protected');\n lintMask ++;\n }\n }\n \n break;\n default:\n //----\n // do alignment mark\n //----\n for(ii=(vintY - 2); ii <= (vintY + 2); ii++) {\n for(nn=(vintX - 2); nn <= (vintX + 2); nn++) {\n lobjModule = document.getElementById('div'+ ii +'_'+ nn);\n lobjModule.className = lobjModule.className.replace('off', \n larrPosition[lintMask] + ' protected');\n lintMask ++;\n }\n }\n break;\n }\n}", "function createMarker(point,infoWin, icon) {\r\n var marker = new GMarker(point, {icon:icon});\r\n GEvent.addListener(marker, \"click\", function() {\r\n marker.openInfoWindowHtml(infoWin);\r\n });\r\n return marker;\r\n }", "drawMarker(markerLoc) {\n this.context2d.beginPath();\n this.context2d.lineWidth = this.markerWidth;\n this.context2d.strokeStyle = this.markerColour;\n this.context2d.moveTo(markerLoc, 50);\n this.context2d.lineTo(markerLoc, 130);\n this.context2d.stroke();\n this.context2d.closePath();\n this.annotateMarker(markerLoc);\n }", "function addMarker(xPos, yPos, foodTruck) {\n L.marker(xy(xPos, yPos), { foodTruck })\n .setIcon(foodTruckIcon)\n .addTo(map)\n .on('mouseover', showTooltip)\n .on('mouseout', hideTooltip)\n .on('click', showDetails);\n}", "function createMarker() {\n\t\t\t\t\tvar marker = new google.maps.Marker({\n\t\t\t\t\t\tposition: latLng,\n\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\ttitle: title,\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\tvar infowindow = new google.maps.InfoWindow({\n\t\t\t\t\t\tcontent: title,\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t\t\t\t\t\tif (lastOpened != undefined) {\n\t\t\t\t\t\t\tlastOpened.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinfowindow.open(map, marker);\n\t\t\t\t\t\tmap.panTo(marker.position);\n\t\t\t\t\t\tlastOpened = infowindow;\n\t\t\t\t\t});\n\t\t\t\t\tmarker.setMap(map);\n\t\t\t\t}", "createSimpleMarkerSymbol () {\n var markerSymbol = new SimpleMarkerSymbol({\n color: [226, 119, 40],\n\n outline: new SimpleLineSymbol({\n color: [255, 255, 255],\n width: 2\n })\n });\n\n return markerSymbol;\n }", "function createMarker(point, descr, icn) {\n var marker = new GMarker(point, icn);\n\n // Show this marker's index in the info window when it is clicked\n var html = '<div style=\"width: 10em\">'+'<b> <font size=-8 face=\"Arial\">' + descr + '</font> </b>' + '</div>';\n GEvent.addListener(marker, \"click\", function() {\n marker.openInfoWindowHtml(html);\n });\n\n return marker;\n }", "function createMarker( location_in, index_in ) {\n var mark = new google.maps.Marker( { position: location_in, map: map } );\n marker[ index_in ] = mark;\n }", "function createCustomMarker( image ) {\n // create holder\n var holder = document.createElement( 'div' );\n holder.className = 'map-marker';\n holder.title = image.title;\n holder.style.position = 'absolute';\n\n // create dot\n var dot = document.createElement( 'div' );\n dot.className = 'dot';\n holder.appendChild( dot );\n\n // create pulse\n var pulse = document.createElement( 'div' );\n pulse.className = 'pulse';\n holder.appendChild( pulse );\n\n // append the marker to the map container\n image.chart.chartDiv.appendChild( holder );\n\n return holder;\n }", "function add_marker(point,id,type,cu){\n markersArray.push(create_marker_object(point,id,type,cu));\n}", "_addMarker (newM, leftM, rightM) {\n // first, make this middlemarker a regular marker\n newM.off('movestart')\n newM.off('click')\n\n // now, create the polygon coordinate point for that marker\n // and push into marker array\n // and associate polygon coordinate with marker coordinate\n const latlng = newM.getLatLng()\n const coords = this._layer._latlngs\n\n // the index path to the marker inside the multidimensional marker array\n const { indexPath, index, parentPath } = this.findDeepMarkerIndex(\n this._markers,\n leftM\n )\n\n // define the coordsRing that is edited\n const coordsRing = indexPath.length > 1 ? get(coords, parentPath) : coords\n\n // define the markers array that is edited\n const markerArr =\n indexPath.length > 1 ? get(this._markers, parentPath) : this._markers\n\n // add coordinate to coordinate array\n coordsRing.splice(index + 1, 0, latlng)\n\n // add marker to marker array\n markerArr.splice(index + 1, 0, newM)\n\n // set new latlngs to update polygon\n this._layer.setLatLngs(coords)\n\n // create the new middlemarkers\n this._createMiddleMarker(leftM, newM)\n this._createMiddleMarker(newM, rightM)\n\n // fire edit event\n this._fireEdit()\n\n this._layer.fire('pm:vertexadded', {\n layer: this._layer,\n marker: newM,\n indexPath: this.findDeepMarkerIndex(this._markers, newM).indexPath,\n latlng\n // TODO: maybe add latlng as well?\n })\n\n if (this.options.snappable) {\n this._initSnappableMarkers()\n }\n }", "function createMarker(point, index) {\n\n\t\t// Set up our GMarkerOptions object\n\t\tmarkerOptions = { icon:baseIcon };\n\t\tvar marker = new GMarker(point, markerOptions);\n\t\tGEvent.addListener(marker, \"click\", function() {\n\t\t\tmarker.openInfoWindowHtml(\"Marker information\");\n\t\t});\n\t\t\n\t\treturn marker;\n\t}", "annotateMarker(annoLoc) {\n this.context2d.fillText('' + (this.calculateAnnoConversion(annoLoc)), annoLoc, 140);\n }", "function place_marker(name) {\n var node = range[name + 'Container'],\n offset = range[name + 'Offset'],\n marker = document.createElement('span'),\n parent = node.parentNode,\n text = node.nodeValue,\n ending = document.createTextNode((''+text).substr(offset));\n\n marker.setAttribute('rrte-'+name, '1');\n\n function insert_after(content, anchor) {\n if (anchor.nextSibling) {\n anchor.parentNode.insertBefore(content, anchor.nextSibling);\n } else {\n anchor.parentNode.appendChild(content);\n }\n }\n\n if (node.nodeType === 3) { // text-node\n if (offset === 0) {\n parent.insertBefore(marker,\n // in case both of the markers are at the beginning of\n // the same node, the 'end' marker will be already there\n // and we will need to insert the 'start' one before it.\n name === 'start' && range.collapsed ? node.previousSibling : node\n );\n } else if (offset === text.length) {\n insert_after(marker, node);\n } else { // splitting the text node in two\n node.nodeValue = text.substr(0, offset);\n insert_after(ending, node);\n parent.insertBefore(marker, ending);\n }\n\n } else if (node.nodeType === 1) { // elements\n if (offset === 0) {\n if (node.firstChild) {\n node.insertBefore(marker, node.firstChild);\n } else if (node.hasChildNodes()) {\n node.appendChild(marker);\n }\n } else if (offset === node.childNodes.length) {\n node.appendChild(marker);\n } else {\n node.insertBefore(marker, node.childNodes[offset]);\n }\n }\n }", "function Marker(latlon, message, drugdrink, misdemean, theft, violent, total){\n this.latlon = latlon;\n this.message = message;\n this.drugdrink = drugdrink;\n this.misdemean = misdemean;\n this.theft = theft;\n this.violent = violent;\n this.total = total\n }", "function createMarker(themap, point, number, thisName, drag, letter, thecolor) {\r\r\n //var letteredIcon = new GIcon(baseIcon);\r\r\n var linecolors=['red' ,'orange','yellow','green' ,'blue' ,'indigo','violet','white' ,'black' ,'grey'];\r\r\n var colorcode=['ff0000','ff8000','ffff00','01DF01','0101DF','8A0886','FA58F4','ffffff','000000','848484'];\r\r\n if (letter=='T'){thecolor='01DF01'}\r\r\n if (letter=='H'){thecolor='848484'}\r\r\n if (letter=='P'){thecolor='ff0000'}\r\r\n if (letter=='B'){thecolor='ffffff'}\r\r\n \r\r\n var image = 'http://thydzik.com/thydzikGoogleMap/markerlink.php?text='+letter+'&color='+thecolor;\r\r\n var shape = {\r\r\n coord: [1, 1, 1, 20, 18, 20, 18 , 1], type: 'poly'};\r\r\n var beachMarker = new google.maps.Marker({\r\r\n position: point,\r\r\n map: themap,\r\r\n icon: image,\r\r\n shape: shape,\r\r\n title: '\" + Request.QueryString(\"namefrom\") + \"'\r\r\n });\r\r\n \r\r\n var infowindow = new google.maps.InfoWindow({\r\r\n content: '<font style=\"\"color:blue\"\">' + thisName + '</font>',\r\r\n size: new google.maps.Size(50,50)\r\r\n });\r\r\n\r\r\n google.maps.event.addListener(beachMarker, 'click', function() {\r\r\n infowindow.open(map,beachMarker);\r\r\n });\r\r\n \r\r\n \r\r\n //return beachMarker;\r\r\n }", "addMarker(markerObj) {\n this.level.addMarker(this.level.maze, this.level.openings, markerObj);\n }", "function makeMarker(position, icon, title, label, section){\r\n\t\tvar contenido = '<b>'+label+'</b><br>'+section;\r\n\t\tvar marker = new google.maps.Marker({\r\n\t\t\tposition: position,\r\n\t\t\tmap: map,\r\n\t\t\ticon: icon,\r\n\t\t\ttitle: title\r\n\t\t});\r\n\t\tmarkersArray.push(marker);\r\n\t\tnew google.maps.event.addListener(marker, 'click', function() {\r\n \t\tinfoWindow.setContent(contenido); \r\n \t\tinfoWindow.open(map,marker);\r\n \t});\r\n\t}", "createRepresentativeMarker(markers, latLngBounds) {\n /*\n\n I think I really need to extend the L.marker class so that my markers can have their own data. Data should conform to an interface that allows\n for a quick description, images, full text description, etc. If I do this, then I need to decide details though: is my data fundamentall a marker? Or do \n i want to separate markers from the actual data? What are pros, cons? If I keep data as a separate class than markers, this means I can use it elsewhere \n when there is no need for any of the functionality a marker provides. However, if my data is primarily meant to be associated with a set of coordinates, then doesnt it \n already make sense to extend it from a marker? \n\n */\n if (markers.length != 0) {\n if (markers.length == 1){\n var soloMarker = markers[0];\n var marker = new L.marker(soloMarker.getLatLng(), {icon: this.getIcon(entry) }); //.addTo(m.getMap());\n marker.bindPopup(() => { return this.getPopupController().getPopupContent(entry) });\n marker.on(\"popupopen\", (event) => { marker.setIcon(this.getActiveIcon(entry)) });\n marker.on(\"popupclose\", (event) => { marker.setIcon(this.getIcon(entry)) });\n } else {\n\n }\n \n }\n\n\n\n }", "function createMarker(point,name,html,iconName) { \n\tvar iconUrl='';\n\tif (iconName=='start') {\n\t\ticonUrl= \"https://maps.google.com/mapfiles/kml/pal4/icon61.png\";\n\t} else {\n\t\ticonUrl= \"https://maps.google.com/mapfiles/kml/pal4/icon53.png\";\n\t}\t\t\t\n\tvar marker = new google.maps.Marker({\n\t\tposition: point, \n\t\tmap: map,\n\t\ticon: iconUrl,\n\t\ttitle:name\n\t});\n\n\tgmarkers[markers_num] = marker;\n\thtmls[markers_num] = html;\n\n\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t infowindow.setContent(html); \n\t infowindow.open(map,marker);\n\t});\n\t \n\t// add a line to the side_bar html\n\tside_bar_html = '<a href=\"javascript:myclick(' + markers_num + ')\">' + name + '</a>';\n\tmarkers_num++;\n\t\n\treturn marker;\n}", "function DotMarker(point, image, info) {\n this.point_ = point;\n this.image_ = image\n this.info_ = info;\n}", "modify_mark(marker) {\n if (!marker.offset_handled) {\n marker.start_pos += this.offset;\n marker.end_pos += this.offset;\n }\n return marker;\n }", "function createMarker() {\n var marker = L.marker(currentLocation).addTo(map);\n markers.push(marker);\n}", "initMarkerArrow() {\n\t\tthis.svgSelector.append('svg:defs').append('svg:marker')\n\t\t\t.attr('id', this.arrowId)\n\t\t\t.attr('viewBox', '0 0 10 10')\n\t\t\t.attr('refX', 10)\n\t\t\t.attr('refY', 5)\n\t\t\t.attr('markerWidth', 6)\n\t\t\t.attr('markerHeight', 6)\n\t\t\t.attr('orient', 'auto')\n\t\t\t.append('path')\n\t\t\t.attr('d', 'M 0 0 L 10 5 L 0 10 z')\n\t\t\t.style('stroke', 'black')\n\t}", "function createObserverMarker(lon, lat, tab, color) {\n\t\t\t\tvar point = new GLatLng(lat, lon);\n\t\t\t\tvar infoTabs = [\n\t\t\t\t tab\n\t\t\t\t];\n\t\t\t\tvar marker = createMarker(point, infoTabs, createIcon(color));\n\t\t\t\treturn marker;\t\t\n\t\t\t}", "function createObserverMarker(lon, lat, tab, color) {\n\t\t\t\tvar point = new GLatLng(lat, lon);\n\t\t\t\tvar infoTabs = [\n\t\t\t\t tab\n\t\t\t\t];\n\t\t\t\tvar marker = createMarker(point, infoTabs, createIcon(color));\n\t\t\t\treturn marker;\t\t\n\t\t\t}", "function draw_markers()\n\t{\n\t\t// This calculates which markers are the red \"multi\" markers.\n\t\tvar overlap_map = MapOverlappingMarkers ( g_main_map.response_object );\n\t\t\n\t\t// Draw the meeting markers.\n\t\tfor ( var c = 0; c < overlap_map.length; c++ )\n\t\t\t{\n\t\t\tCreateMapMarker ( overlap_map[c] );\n\t\t\t};\n\t\t\n\t\t// Finish with the main (You are here) marker.\n\t\tCreateMarker ( g_location_coords, g_center_icon_shadow, g_center_icon_image, g_center_icon_shape );\n\t}", "function create_marker(type, position, title) {\n icon = create_marker_icon(type);\n return new GMarker(position, {title:title, icon:icon});\n}", "function createMarker(point, text) {\n var marker = new GMarker(point);\n\n GEvent.addListener(marker, \"click\", function() {\n\tmarker.openInfoWindowHtml('<div class=\"maptext\">' + text + '</div>');\n });\n return marker;\n}", "addMarker(coord, text, iconKey) {\n let marker = L.marker([coord.lat, coord.lng], {\n icon: this.icons[iconKey],\n }).addTo(this.map);\n marker.bindPopup(text);\n return marker;\n }", "function addMarker () {\n\t\tif (this.innerHTML != \"X\" && this.innerHTML != \"O\") {\n\t\t\tif (turn % 2 === 0 && winningCondition === false) {\n\t\t\t\tthis.style.backgroundColor=\"Gold\";\n\t\t\t\tthis.innerHTML=\"X\";\n\t\t\t\tdocument.getElementById(\"message\").innerHTML = \"'X's turn\";\n\t\t\t} else {\n\t\t\t\tthis.style.backgroundColor=\"IndianRed\";\n\t\t\t\tthis.innerHTML=\"O\";\n\t\t\t\tdocument.getElementById(\"message\").innerHTML = \"'O's turn\";\n\t\t\t}\n\t\t\tturn++;\n\t\t}\n\t}", "function marker () {\n return new ClickTool(markerHandler);\n }", "function marker () {\n return new ClickTool(markerHandler);\n }", "function addMarker(model, position, markerType, inBoundary) {\r\n\t\t\tvar marker = createMarker(\r\n\t\t\t\tmodel.name,\r\n\t\t\t\tposition,\r\n\t\t\t\tfalse/*draggable*/,\r\n\t\t\t\tmarkerType\r\n\t\t\t);\r\n\r\n\t\t\tjQuery.extend(marker.details, model);\r\n\t\t\tattachTooltip(marker);\r\n\t\t\t_markers.push(marker);\r\n\t\t\tinBoundary.extend(position);\r\n\r\n\t\t\t// wire up click event\r\n\t\t\tgm.event.addListener(marker, \"click\", function () {\r\n\t\t\t\tvar m = this;\r\n\t\t\t\tcloseTooltips();\r\n\t\t\t\tm.showTooltip(false/*inRwMode*/);\r\n\t\t\t});\r\n\t\t\tif (model.autoShow) {\r\n\t\t\t\t// show on load enabled for marker\r\n\t\t\t\tmarker.showTooltip(false/*inRwMode*/);\r\n\t\t\t}\r\n\r\n\t\t\t_areBoundsSet = true;\r\n\r\n\t\t\treturn marker;\r\n\r\n\t\t} // addMarker", "function add_live_loc(x, y, z) {\n\n marker_pos_x = \"\";\n marker_pos_y = \"\";\n // here y shows left-right position and x shows top-bottom position(x-top_bottom,y-left_right)\n //alert(z);\n // console.log(x);\n // console.log(y);\n\n\n var result = z.split(\"-\");\n //marker render for left side\n if (result[1] == \"L\") {\n marker_pos_x = x + 20;\n marker_pos_y = y - 90;\n\n }\n //marker render for right side\n else if (result[1] == \"R\") {\n marker_pos_x = x + 20;\n marker_pos_y = y + 90;\n\n }\n\n else if (result[1] == \"RR\") {\n marker_pos_x = x + 20;\n marker_pos_y = y + 260;\n\n }\n //marker render for top side\n else if (result[1] == \"T\") {\n marker_pos_x = x + 90;\n marker_pos_y = y + 5;\n\n }\n //marker render for bottom side\n\n else if (result[1] == \"B\") {\n marker_pos_x = x - 50;\n marker_pos_y = y + 5;\n\n }\n\n else if (result[1] == \"L1\") {\n marker_pos_x = x + 20;\n marker_pos_y = y - 180;\n\n }\n else if (result[1] == \"L2\") {\n marker_pos_x = x + 20;\n marker_pos_y = y - 270;\n\n }\n else if (result[1] == \"L3\") {\n marker_pos_x = x + 20;\n marker_pos_y = y - 360;\n\n }\n\n else if (result[1] == \"L4\") {\n marker_pos_x = x + 20;\n marker_pos_y = y - 450;\n\n }\n\n else if (result[1] == \"L5\") {\n marker_pos_x = x + 20;\n marker_pos_y = y - 540;\n\n }\n\n else if (result[1] == \"L6\") {\n marker_pos_x = x + 20;\n marker_pos_y = y - 630;\n\n }\n\n\n else if (result[1] == \"LA1\" || result[1] == \"LA2\" || result[1] == \"LA3\" || result[1] == \"LA4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y - 150;\n\n }\n\n else if (result[1] == \"LB1\" || result[1] == \"LB2\" || result[1] == \"LB3\" || result[1] == \"LB4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y - 120;\n\n }\n else if (result[1] == \"LC1\" || result[1] == \"LC2\" || result[1] == \"LC3\" || result[1] == \"LC4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y - 90;\n\n }\n\n else if (result[1] == \"LD1\" || result[1] == \"LD2\" || result[1] == \"LD3\" || result[1] == \"LD4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y - 60;\n\n }\n\n else if (result[1] == \"RD1\" || result[1] == \"RD2\" || result[1] == \"RD3\" || result[1] == \"RD4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y + 60;\n }\n\n else if (result[1] == \"RC1\" || result[1] == \"RC2\" || result[1] == \"RC3\" || result[1] == \"RC4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y + 80;\n }\n\n else if (result[1] == \"RB1\" || result[1] == \"RB2\" || result[1] == \"RB3\" || result[1] == \"RB4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y + 110;\n }\n\n else if (result[1] == \"RA1\" || result[1] == \"RA2\" || result[1] == \"RA3\" || result[1] == \"RA4\") {\n\n marker_pos_x = x + 25;\n marker_pos_y = y + 140;\n }\n\n /*else {\n \n marker_pos_x=0;\n marker_pos_y=0;\n }*/\n\n\n\n updated_lat = marker_pos_x;\n updated_lng = marker_pos_y;\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [40, 40] }\n });\n\n //http://maps.google.com/mapfiles/ms/icons/red-dot.png\n //var greenIcon = new LeafIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/icons/red-dot.png'});\n //var greenIcon = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='live_loc.png')}}\"});\n var greenIcon = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='red_loc.png')}}\" });\n\n // var greenIcon = new LeafIcon({iconUrl: 'http://labs.google.com/ridefinder/images/mm_20_yellow.png'});\n live_marker = L.marker([updated_lat, updated_lng], { icon: greenIcon })\n live_marker.addTo(myFeatureGroup)\n live_marker_array.push(live_marker);\n for (i = 0; i < live_marker_array.length - 1; i++) {\n if (live_marker_array.length > 1) {\n live_marker_array[i].remove();\n\n }\n }\n //console.log(\"done\");\n\n}", "appendInto(e){this.startNode=e.appendChild(createMarker()),this.endNode=e.appendChild(createMarker())}", "function _createMarker() {\n this.mapMarker = {\n image: new Surface({\n classes: this.options.classes.concat(['marker', 'image']),\n properties: {\n backgroundSize: 'contain'\n }\n }),\n mod: new MapModifier({\n mapView: this.mapView,\n position: this.options.mapView.mapOptions.center\n }),\n lc: new LayoutController({\n layout: function(context, size) {\n var marker = this.options.marker;\n var backSize = [marker.size[0], marker.size[1] - marker.pinSize[1]];\n var top = -marker.size[1];\n context.set('back', {\n size: backSize,\n translate: [backSize[0] / -2, top, 1]\n });\n var imageSize = [this.options.marker.size[0] - (this.options.marker.borderWidth * 2), this.options.marker.size[0] - (this.options.marker.borderWidth * 2)];\n context.set('image', {\n size: imageSize,\n translate: [imageSize[0] / -2, top + ((backSize[1] - imageSize[1]) / 2), 2]\n });\n context.set('pin', {\n size: marker.pinSize,\n translate: [marker.pinSize[0] / -2, top + backSize[1], 1]\n });\n }.bind(this),\n dataSource: {\n back: new Surface({\n classes: this.options.classes.concat(['marker', 'back'])\n }),\n pin: new Surface({\n classes: this.options.classes.concat(['marker', 'pin']),\n content: '<div></div>'\n })\n }\n })\n };\n this.add(this.mapMarker.mod).add(this.mapMarker.lc);\n this.mapMarker.lc.insert('image', this.mapMarker.image);\n}", "function createCustomMarker(text, latitudine, longitudine, iconUrl, drag, dim, pulse) {\r\n if (!pulse) {\r\n var cMark = L.icon({\r\n iconUrl: iconUrl,\r\n iconSize: dim, // size of the icon\r\n iconAnchor: [dim[0] / 2, dim[1]]\r\n\r\n });\r\n }\r\n else {\r\n var cMark = L.icon({\r\n iconUrl: iconUrl,\r\n iconSize: dim, // size of the icon\r\n iconAnchor: [dim[0] / 2, dim[1] - 12]\r\n\r\n });\r\n }\r\n var marker = new L.Marker([latitudine, longitudine], { icon: cMark, draggable: drag });\r\n if (!pulse) {\r\n marker.bindPopup(text);\r\n marker.on('click', function (e) {\r\n this.openPopup();\r\n });\r\n marker.on('mouseout', function (e) {\r\n this.closePopup();\r\n });\r\n marker.on(\"drag\", function (e) {\r\n var marker = e.target;\r\n var position = marker.getLatLng();\r\n lat.value = position.lat;\r\n lng.value = position.lng;\r\n });\r\n }\r\n return marker;\r\n}", "addMarker(level, openings, itemObj, startPosX = -1, startPosY = -1) {\n let startPos = startPosX + startPosY;\n if (startPos >= 0 && openings.indexOf(startPos) === -1 && startPos < this.maze.length) {\n level[startPos] = itemObj;\n }\n else {\n let randomCell = Math.floor(Math.random() * openings.length);\n let addMarkerPosn = openings.splice(randomCell, 1)[0];\n level[addMarkerPosn] = itemObj;\n }\n }", "function createMarker(i, lats, longs, dates, map_) {\n\tvar dateVar = new Date(dates[i]);\n\tvar marker = new google.maps.Marker({ // add marker\n\t\tposition: new google.maps.LatLng(lats[i], longs[i]),\n\t\tmap: map_,\n\t\ttitle: moment(dateVar).format('h:mm A MMMM Do, YYYY')\n\t});\n\t\n\tvar contentString = 'Latitude: ' + lats[i] + '<br>' +\n\t\t'Longitude: ' + longs[i] + '<br>' +\n\t\tmoment(dateVar).format('h:mm A MMMM Do, YYYY');\n\n\tvar infowindow = new google.maps.InfoWindow({ // add info box popup\n\t\tcontent: contentString,\n\t\tmaxWidth: 200\n\t});\n\n\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t\tinfowindow.open(map_,marker);\n\t});\n}", "function createCustomMarker(image) {\n // create holder\n var holder = document.createElement('div');\n\n if (image.text) {\n holder.innerHTML = image.text;\n holder.style.color = image.color;\n holder.style['font-size'] = image.fontSize;\n holder.style['font-family'] = image.fontFamily;\n\n\n holder.style.position = 'absolute';\n }\n else {\n holder.className = 'map-marker';\n holder.title = image.title;\n holder.style.position = 'absolute';\n // maybe add a link to it?\n if (undefined != image.url) {\n holder.onclick = function() {\n window.location.href = image.url;\n };\n holder.className += ' map-clickable';\n }\n // create dot\n var dot = document.createElement('div');\n dot.className = 'dot';\n holder.appendChild(dot);\n // create pulse\n var pulse = document.createElement('div');\n pulse.className = 'pulse';\n holder.appendChild(pulse);\n }\n // append the marker to the map container\n image.chart.chartDiv.appendChild(holder);\n\n return holder;\n }", "function drawMarker(data){\n\n\t//Canvas and Context\n\t//1 is used for drawing the actual marker\n\t//2 is used for drawing the shadow\n\t//3 is used for combinding marker and shadow\n\tvar canvas = [];\n\tvar ctx = [];\n\tfor(var i = 0; i<3; i++){\n\t\tcanvas[i] = document.createElement('canvas');\n\t\tctx[i] = canvas[i].getContext('2d');\n\t\tcanvas[i].style.width = w+'px';\n\t\tcanvas[i].style.height = h+'px';\n\t\tcanvas[i].width = w;\n\t\tcanvas[i].height = h;\t\n\t}\n\n\t/*\n\n\t\tSTART — DRAWING THE MARKER\n\n\t*/\n\n\tctx[0].strokeStyle = \"rgba(0, 0, 0, 0.5)\";\n\tctx[0].lineJoin = \"round\";\n\tctx[0].lineCap = \"round\";\n\tctx[0].lineWidth = 0.5;\n\n\tctx[0].save();\t\n\tctx[0].translate(50,50);\n\n\tctx[0].beginPath();\n\tctx[0].moveTo(polar_x(20, 0), polar_y(20, 0));\n\tctx[0].fillStyle = \"rgba(255,255,255,1)\";\n\tctx[0].lineTo(polar_x(20, 60), polar_y(20, 60));\n\tctx[0].lineTo(polar_x(20, 120), polar_y(20, 120));\n\tctx[0].lineTo(polar_x(30, 180), polar_y(30, 180));\n\tctx[0].lineTo(polar_x(20, 240), polar_y(20, 240));\n\tctx[0].lineTo(polar_x(20, 300), polar_y(20, 300));\n\tctx[0].lineTo(polar_x(20, 360), polar_y(20, 360));\n\tctx[0].closePath();\n\tctx[0].fill();\n\tctx[0].stroke();\n\n\tctx[0].beginPath();\n\tctx[0].moveTo(polar_x(20, 0), polar_y(20, 0));\n\tctx[0].fillStyle = \"rgba(255,0,0,0.2)\";\n\tctx[0].lineTo(polar_x(20, 60), polar_y(20, 60));\n\tctx[0].lineTo(polar_x(20, 120), polar_y(20, 120));\n\tctx[0].lineTo(polar_x(30, 180), polar_y(30, 180));\n\tctx[0].lineTo(polar_x(20, 240), polar_y(20, 240));\n\tctx[0].lineTo(polar_x(20, 300), polar_y(20, 300));\n\tctx[0].lineTo(polar_x(20, 360), polar_y(20, 360));\n\tctx[0].closePath();\n\tctx[0].fill();\n\n\tfor(var i = 0; i<10; i++){\n\t\tctx[0].fillStyle = \"rgba(\"+Math.round(Math.random()*255)+\",\"+Math.round(Math.random()*255)+\",\"+Math.round(Math.random()*255)+\",\"+Math.random()/2+\")\";\n\t\tvar cr = 20;\n\t\tctx[0].beginPath();\n\t\tvar a = Math.round(Math.random()*6)*60;\n\t\tif(a==180){cr=30;}else{cr=20;}\n\t\tctx[0].moveTo(polar_x(cr, a), polar_y(cr, a));\n\t\tvar a1 = a+60;\n\t\tif(a1>360){a1 -= 360;}\n\t\tif(a1==180){cr=30;}else{cr=20;}\n\t\tctx[0].lineTo(polar_x(cr, a1), polar_y(cr, a1));\n\t\tvar a2 = a1+180;\n\t\tif(a2 > 360){a2 -= 360;}\n\t\tif(a2==180){cr=30;}else{cr=20;}\n\t\tctx[0].lineTo(polar_x(cr, a2), polar_y(cr, a2));\n\t\tctx[0].closePath();\n\t\tctx[0].fill();\n\t}\n\n\tctx[0].restore();\n\n\t/*\n\n\t\tEND — DRAWING THE MARKER\n\n\t*/\n\n\t//The marker is copied to an image\n\tvar image = ctx[0].getImageData(0,0,canvas[0].width,canvas[0].height);\n\n\t//The image is drawn onto the second canvas (this is a backup of our original marker which is going to copied to the final image in the end)\n\tctx[1].drawImage(canvas[0], 0, 0);\n\n\t//The image of our marker is now turned in greyscale\n\t//Attention if you want your shadow to be a greyscale version of your marker this is fine\n\t//But in most cases you actually want a black version of your marker\n\t//1. There are two solutions to this, draw a second version of your marker in black\n\t//2. Write a new Filter that turns every colored pixel black\n\t//It depends on the complexity of your marker, but in my cases drawing a second version was faster\n\tvar tImage = Filters.filterImage(Filters.grayscale, image);\n\t//The following line is making the shadow transparent\n\ttImage = Filters.filterImage(Filters.convolute, tImage,\n\t [ 1/19, 1/19, 1/19,\n\t 1/19, 1/19, 1/19,\n\t 1/19, 1/19, 1/19 ]\n\t);\n\n\t//The greyscale image is drawn again onto the first canvas\n\tctx[0].putImageData(tImage, 0, 0);\n\n\n\t//The next four lines draw a distorted version of the marker shadow\n\tctx[2].save();\n ctx[2].transform(1,0,-1.5,1,0,0);\n\tctx[2].drawImage(canvas[0], 138, 40, 100, 55);\n\tctx[2].restore();\n\n\t//finally we draw our marker on top\n\tctx[2].drawImage(canvas[1], 0, 0);\n\n\t//and send back the image file-string\n\treturn canvas[2].toDataURL(\"image/png\");\n}", "function add_marker(lat, lon, comuna_name, comuna_id, comuna_n_avistamientos) {\n let marker_title = comuna_name + \": \";\n if (comuna_n_avistamientos === 1) {\n marker_title += comuna_n_avistamientos + \" avistamiento.\";\n } else {\n marker_title += comuna_n_avistamientos + \" avistamientos.\";\n }\n\n let new_marker = L.marker([lat, lon], {\n icon: marker_icon,\n title: marker_title});\n new_marker.addTo(map);\n new_marker.bindPopup(`<b>Now loading comuna ${comuna_id}... Please wait</b>`); // Default message of the popup.\n new_marker.on('popupopen', function (event) {\n // Execute the creation of the inside of the popup when it's open.\n\n let opened_popup = event.popup;\n crochet_marker_popup(comuna_id, opened_popup);\n })\n\n markers.push(new_marker);\n}", "function addMarker(marker, map) {\n var color;\n var label;\n if (marker.status == 'enrolled'){\n label = labels[enrolledCount % 26];\n enrolledCount++;\n color = 'green';\n } else if (marker.status == 'skilled'){\n label = labels[skilledCount % 26];\n skilledCount++;\n color = 'yellow';\n } else if (marker.status == 'placed') {\n label = labels[placedCount % 26];\n placedCount++;\n color = 'pink';\n }\n img = 'markers/' + color + '_Marker' + label + '.png'\n var added = new google.maps.Marker({\n position: marker,\n map: map,\n icon: img\n });\n}", "function setMarker(element, marker) {\n\n [ MARKER_ATTACH, MARKER_OK, MARKER_NOT_OK, MARKER_NEW_PARENT ].forEach(function(m) {\n\n if (m === marker) {\n canvas.addMarker(element, m);\n } else {\n canvas.removeMarker(element, m);\n }\n });\n }", "function setMarker(element, marker) {\n\n [ MARKER_ATTACH, MARKER_OK, MARKER_NOT_OK, MARKER_NEW_PARENT ].forEach(function(m) {\n\n if (m === marker) {\n canvas.addMarker(element, m);\n } else {\n canvas.removeMarker(element, m);\n }\n });\n }", "function createMarker(obj) {\r\n\r\n // prepare new Marker object\r\n var mark = new google.maps.Marker({\r\n position: obj.geometry.location,\r\n map: map,\r\n title: obj.name\r\n });\r\n markers.push(mark);\r\n\r\n // prepare info window\r\n var infowindow = new google.maps.InfoWindow({\r\n content: '<img src=\"' + obj.icon + '\" /><font style=\"color:#000;\">' + obj.name + \r\n '<br />Rating: ' + obj.rating + '<br />Vicinity: ' + obj.vicinity + '</font>'\r\n });\r\n\t\r\n\t\r\n\t\t \r\n\t\t\r\n \r\n\t\t\r\n\t\t\r\n\r\n // add event handler to current marker\r\n google.maps.event.addListener(mark, 'click', function() {\r\n clearInfos();\r\n infowindow.open(map,mark);\r\n });\r\n infos.push(infowindow);\r\n\t\r\n\t\r\n\t\r\n\t\r\n}", "function createMarker(point) {\n\t\tGoogleMapsFactory.createMarker({\n\t\t\tposition: {\n\t\t\t\tlat: parseFloat(point.latitude),\n\t\t\t\tlng: parseFloat(point.longitude)\n\t\t\t},\n\t\t\ttitle: point.name\n\t\t}, point.id, point.rating, function() {\n\t\t\t$scope.openMarkerInfowindow(point.id);\n\t\t});\n\t}", "function drawMarker(ctx, p) {\n ctx.beginPath();\n ctx.moveTo(p.x-floor(rectW/2), p.y-floor(rectH/2));\n ctx.lineTo(p.x+floor(rectW/2), p.y+floor(rectH/2));\n ctx.closePath();\n ctx.strokeStyle = 'red';\n ctx.stroke();\n ctx.closePath();\n \n ctx.beginPath();\n ctx.moveTo(p.x-floor(rectW/2), p.y+floor(rectH/2));\n ctx.lineTo(p.x+floor(rectW/2), p.y-floor(rectH/2));\n ctx.closePath();\n ctx.strokeStyle = 'red';\n ctx.stroke();\n \n ctx.strokeStyle = 'black';\n ctx.strokeRect(p.x-floor(rectW/2), p.y-floor(rectH/2), rectW, rectH);\n}", "function time_line_marker (id) {\n _astr_time_line = id;\n var marker_ = L.marker([_astr_time_line.reclat, _astr_time_line.reclong], {icon: mya}).addTo(map);\n marker_.bindPopup( '<b>' + _astr_time_line.name + '</b> <br>' + '<b>Year : </b>' + _astr_time_line.year + '<br>' + '<b>Mass : </b>' + _astr_time_line.mass + ' kg' , 50);\n}", "function createMarker(map,point,image, txt) {\n var marker = new google.maps.Marker({\n position: point,\n map: map,\n icon: image\n });\n\n \n\n var infowindow = new google.maps.InfoWindow({\n content: txt\n });\n google.maps.event.addListener(marker, 'click', function() {\n \n infowindow.open(map,marker);\n \n });\n \n \n return marker;\n }", "function createCustomMarker( image ) {\r\n // create holder\r\n var holder = document.createElement( 'div' );\r\n holder.className = 'map-marker';\r\n holder.title = image.title;\r\n holder.style.position = 'absolute';\r\n\r\n // maybe add a link to it?\r\n if ( undefined != image.url ) {\r\n holder.onclick = function() {\r\n window.location.href = image.url;\r\n };\r\n holder.className += ' map-clickable';\r\n }\r\n\r\n // create dot\r\n var dot = document.createElement( 'div' );\r\n dot.className = 'dot';\r\n holder.appendChild( dot );\r\n\r\n // create pulse\r\n var pulse = document.createElement( 'div' );\r\n pulse.className = 'locator';\r\n holder.appendChild( pulse );\r\n\r\n // append the marker to the map container\r\n image.chart.chartDiv.appendChild( holder );\r\n\r\n return holder;\r\n}", "function createCustomMarker( image ) {\r\n // create holder\r\n var holder = document.createElement( 'div' );\r\n holder.className = 'map-marker';\r\n holder.title = image.title;\r\n holder.style.position = 'absolute';\r\n\r\n // maybe add a link to it?\r\n if ( undefined != image.url ) {\r\n holder.onclick = function() {\r\n window.location.href = image.url;\r\n };\r\n holder.className += ' map-clickable';\r\n }\r\n\r\n // create dot\r\n var dot = document.createElement( 'div' );\r\n dot.className = 'dot';\r\n holder.appendChild( dot );\r\n\r\n // create pulse\r\n var pulse = document.createElement( 'div' );\r\n pulse.className = 'locator';\r\n holder.appendChild( pulse );\r\n\r\n // append the marker to the map container\r\n image.chart.chartDiv.appendChild( holder );\r\n\r\n return holder;\r\n}", "function createMarker() {\n for (var i = 0; i < locationsList().length; i++ ){\n var initialLocation = locationsList()[i];\n var placeLoc = initialLocation.location;\n var marker = new google.maps.Marker({\n map: map,\n position: placeLoc,\n title: initialLocation.name,\n visible: true\n });\n initialLocation.marker = marker;\n markers.push(marker);\n //add event listeners to the markers to open the relevant infowindow\n google.maps.event.addListener(marker, 'click', (function(initialLocation) {\n return function() {\n closeAllInfoWindows();\n deselectAll();\n toggleBounce(initialLocation);\n initialLocation.selected(true);\n infowindow.setContent(contentString(initialLocation));\n infowindow.open(map, this);\n infowindows.push(infowindow);\n };\n })(initialLocation));\n }\n }", "function createCustomMarker( image ) {\n // create holder\n var holder = document.createElement( 'div' );\n holder.className = 'map-marker';\n holder.title = image.title;\n holder.style.position = 'absolute';\n\n // maybe add a link to it?\n if ( undefined != image.url ) {\n holder.onclick = function() {\n window.location.href = image.url;\n };\n holder.className += ' map-clickable';\n }\n\n // create dot\n var dot = document.createElement( 'div' );\n dot.className = 'dot';\n holder.appendChild( dot );\n\n // create pulse\n var pulse = document.createElement( 'div' );\n pulse.className = 'pulse';\n holder.appendChild( pulse );\n\n // append the marker to the map container\n image.chart.chartDiv.appendChild( holder );\n\n return holder;\n}", "function addMarker(board, marker) {\n var currentStrength = board.markers[marker.x][marker.y][marker.quadrant][marker.botColor]\n if (typeof currentStrength === 'undefined') {\n currentStrength = 0.0\n }\n\n currentStrength += INIT_MARKER_STRENGTH\n if (currentStrength >= MAX_MARKER_STRENGTH) {\n currentStrength = MAX_MARKER_STRENGTH\n }\n\n board.markers[marker.x][marker.y][marker.quadrant][marker.botColor] =\n currentStrength\n}", "function createMarker(point,html) {\n var marker = new GMarker(point);\n GEvent.addListener(marker, \"click\", function() {\n marker.openInfoWindowHtml(html);\n });\n return marker;\n }", "function setMarker(element, marker) {\n [MARKER_ATTACH$1, MARKER_OK$3, MARKER_NOT_OK$3, MARKER_NEW_PARENT$1].forEach(function (m) {\n if (m === marker) {\n canvas.addMarker(element, m);\n } else {\n canvas.removeMarker(element, m);\n }\n });\n }", "function addSingleMaker(){\n\tmarker = new google.maps.Marker({\n\t\tposition:{\n\t\t\tlat: -41.295005,\n\t\t\tlng: 174.78362\n\t\t},\n\t\tmap: map,\n\t\tanimation: google.maps.Animation.DROP,\n\t\ticon: \"img/person.png\",\n\t\ttitle : \"Yoobee School of Design\",\n\t\tdescription: \"Description for Yoobee School of Design\"\n\t})\n}", "function makeMarker(position, icon, name) {\n new google.maps.Marker({\n position: position,\n map: gmap,\n icon: icon,\n title: name\n });\n}", "function createCustomMarker(image) {\n // create holder\n var holder = document.createElement('div');\n holder.className = 'map-marker';\n holder.title = image.title;\n holder.style.position = 'absolute';\n\n // maybe add a link to it?\n if (undefined != image.url) {\n holder.onclick = function () {\n window.location.href = image.url;\n };\n holder.className += ' map-clickable';\n }\n\n // create dot\n var dot = document.createElement('div');\n var dotClass = (image.dotColor) ? ' bg-' + image.dotColor : '';\n var pulseClass = (image.pulseColor) ? ' pulse-' + image.pulseColor : '';\n dot.className = 'dot-shape dot-shape-lg' + dotClass + pulseClass;\n holder.appendChild(dot);\n\n // append the marker to the map container\n image.chart.chartDiv.appendChild(holder);\n\n return holder;\n }", "function createMarker(obj) {\n // prepare new Marker object\n var mark = new google.maps.Marker({\n position: obj.geometry.location,\n map: map,\n title: obj.name\n });\n markers.push(mark);\n // prepare info window\n var infowindow = new google.maps.InfoWindow({\n content: '<img src=\"' + obj.icon + '\" /><font style=\"color:#000;\">' + obj.name +\n '<br />Rating: ' + obj.rating + '<br />Vicinity: ' + obj.vicinity + '</font>'\n });\n // add event handler to current marker\n google.maps.event.addListener(mark, 'click', function() {\n clearInfos();\n infowindow.open(map, mark);\n });\n infos.push(infowindow);\n}", "function createMarker(latlng, locatid, title, tracktype,locationtype) {\n var pinImage;\n var listImage;\n if(locationtype == '0'){\n\t pinImage = generalPointsIcon;\n\t listImage = \"images/generalPoints.png\";\n }else if(locationtype == '2'){\n pinImage = learnPointsIcon;\n\tlistImage = \"images/learnPoints.png\";\n }else if(locationtype == '1' || locationtype == '3'){\n var types = tracktype.split(\";\");//one point can be in multiple tracks\n var index = types.indexOf(track_type);\n if(index == '-1'){//not this track's point\n\t\tpinImage = notincurrenttrackPointsIcon;\n\t\tlistImage = \"images/notincurrenttrackPoints.png\";\n }else{//is this track's point\n pinImage = adventurePointsIcon;\n\t listImage = \"images/adventurePoints.png\";\n }\n }\n side_content += \"&nbsp;&nbsp;<img src='\" + listImage + \"' >Point:&nbsp;<a class='wraplink' name='\"+ locatid +\"' onclick='viewPointDescription(this)'><b>\" + locatid + \" \" + title + \"</b></a><br>\"; \n var marker = new google.maps.Marker({\n position: latlng,\n map: map,\n id:locatid,\n icon: pinImage,\n\t\t//draggable:true,\n zIndex: Math.round(latlng.lat()*-100000)<<5\n });\n\n google.maps.event.addListener(marker, 'click', function() {\n document.getElementById(\"locat-id\").value = marker.id;\n viewDescription(marker.id);\n\t\tif(role_id == '1' || role_id == '2'){//admin or citizen\n\t\t\tif(locationtype == '0' || locationtype == '2'){//general or learn as you go points only\n\t\t\tinfowindow.setContent(\"<p><b>Title: \"+ title + \"</b><br><a class='wraplink' name='\" + marker.id + \"' id='\" + locationtype + \"' onclick='addPointToTrack(this)'><b>Add Me To This Track!</b></a></p>\");\n\t\t\t}else if(locationtype == '1' || locationtype == '3'){\n\t\t\t var types = tracktype.split(\";\");//one point can be in multiple tracks\n\t\t\t var index = types.indexOf(track_type);\n\t\t\t if(index == '-1'){//not this track's point\n\t\t\t\tinfowindow.setContent(\"<p><b>Title: \"+ title + \"</b><br><a class='wraplink' name='\" + marker.id + \"' id='\" + locationtype + \"' onclick='addPointToTrack(this)'><b>Add Me To This Track!</b></a></p>\");\n\t\t\t }else{//is this track's point\n\t\t\t\t\n\t\t\t\t $.ajax({ url: 'countQuestions.php',\n\t\t\t\t\t data: {locatID: marker.id, userID:user_id, roleID:role_id, trackType:track_type, locationType: locationtype},\n\t\t\t\t\t type: 'post',\n\t\t\t\t\t success: function(output) {\n\t\t\t\t\t\t infowindow.setContent(output);\n\t\t\t\t\t }\n\t\t\t\t});\n\t\t\t }\n\t\t\t}\n\t\t\tinfowindow.open(map,marker); \n\t\t}else{//normal user\n\t\t\tif(locationtype == '1' || locationtype == '3'){\n\t\t\t var types = tracktype.split(\";\");//one point can be in multiple tracks\n\t\t\t var index = types.indexOf(track_type);\n\t\t\t if(index == '-1'){//not this track's point\n\t\t\t\t//do nothing\n\t\t\t }else{//is this track's point\n\t\t\t\t $.ajax({ url: 'countQuestions.php',\n\t\t\t\t\t data: {locatID: marker.id, userID:user_id, roleID:role_id, trackType:track_type, locationType: locationtype},\n\t\t\t\t\t type: 'post',\n\t\t\t\t\t success: function(output) {\n\t\t\t\t\t\t infowindow.setContent(output);\n\t\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tinfowindow.open(map,marker); \n\t\t\t }\n\t\t\t}\n\t\t\t\n\t\t}\n \n\t\t\n \n });\n\t\t//google.maps.event.addListener(marker, 'dragend', function (event) {\n\t\t\t//infowindow.setContent(\"<p>Point ID: \" + marker.id + \"<br>\" + this.getPosition().lat() + \" , \" + this.getPosition().lng() + \"</p><p><h4>Are you sure to move? </h4><a id='\" + marker.id + \"' onclick='updateLocation(this)'><b >Yes</b></a>&nbsp;&nbsp;&nbsp;<a><b onclick='resetLocation()'>No</b></a></p>\"); \n\t\t\t//infowindow.open(map,marker);\n\t\t//});\n gmarkers.push(marker);\n\t\n \n //titles.forEach(function(des,i){\n //side_content += \"&nbsp;&nbsp;<img src='\" + listImage + \"' >Point:&nbsp;<a name='\"+ locat_id[i] +\"' onclick='viewPointDescription(this)'><b>\" + locat_id[i] + \" \" + des + \"</b></a><br>\"; \n //})\n side_bar_html = side_content;\n right_bar_html = \"<p>&nbsp;&nbsp;Click on points to view description!</p>\";\n\n}", "function insertMarkers(series){\n _.each(series, function(s){\n var data = s.data;\n if(data && data.length && !data[0].marker){\n var marker = {symbol: 'url(./assets/' + data[0].name + '_48x48.png)'}\n data[0].marker = marker;\n data[data.length - 1].marker = marker;\n }\n });\n }", "function PosMarker(index, x, y, z, personObj) {\n\tBaseMarker.call(this);\n\tthis.className = 'marker';\n\tthis.id = 'marker' + index;\n\tthis.position = new THREE.Vector3(x, y, z);\n\tthis.data = personObj;\n\tif (!personObj) alert('no personObj for marker ' + index);\n\tthis.innerHTML = '<span class=\"marker-label\">' + personObj.name + '</span><br/><div class=\"marker-symbol\"></div>';\n\n\tthis.addEventListener('click', this.markerClickHandler);\n\tthis.unitVector = new THREE.Vector3(x, y, z).normalize();\n\n\tthis._bgX = 0;\n\tTicker.instance.add(this, this._animateBackground);\n}", "function setMarker(map, position, title, text, icon, i) {\n var marker = new google.maps.Marker({\n position: position,\n map: map,\n animation: google.maps.Animation.DROP,\n title: title,\n text: text,\n icon: icon,\n id: i\n });\n return marker;\n}", "function createMarker(point, map) {\n\tvar markerInfoWindow = new google.maps.InfoWindow({\n\t\tcontent: \"Coordinates: (\" + point.lat() +\",\"+ point.lng() +\")\"\n\t});\n\t\n\tvar marker = new google.maps.Marker({\n\t\tposition: point,\n\t\tmap: map\n\t});\n\t\n\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t\tmarkerInfoWindow.open(map, marker);\n\t});\n}", "function createMarker(point, business_name, product_name, product_price, product_category) {\n var html = '<div id=\"content\" style=\"font-family:9px;\"><small>Business Name:<b>' + business_name + '</b></small><br/><small>Product: <b>' + product_name + '</b></small><br /><small>Price(Ksh.): <b>' + product_price + '</b></small><br /><small>Category: <b>' + product_category + '</b></small></div>';\n var marker = new google.maps.Marker({\n map: mapObject,\n position: point\n });\n\n //CREATE INFO WINDOW WHEN MARKER IS CLICKED\n google.maps.event.addListener(marker, 'click', function () {\n infoWindow.setContent(html);\n infoWindow.open(mapObject, marker);\n });\n markers.push(marker);\n}", "function createMarker(location) {\r\n if (location == undefined || markers[location.vehicleId]) {\r\n return;\r\n }\r\n\r\n var icon = {\r\n url: \"https://maps.google.com/mapfiles/kml/shapes/bus.png\",\r\n scaledSize: new google.maps.Size(32,32),\r\n origin: new google.maps.Point(0, 0),\r\n anchor: new google.maps.Point(0, 0),\r\n };\r\n var marker = new google.maps.Marker({\r\n position: new google.maps.LatLng(location.latitude, location.longitude),\r\n map: map,\r\n icon: icon,\r\n });\r\n\r\n (function (marker) {\r\n google.maps.event.addListener(marker, 'click', function () {\r\n infowindow = new google.maps.InfoWindow({\r\n content: \"Bus #\" + location.vehicleId + \" @@ \" + location.lastUpdated + \" UTC\"\r\n });\r\n infowindow.open(map, marker);\r\n });\r\n })(marker)\r\n\r\n markers[location.vehicleId] = marker;\r\n}", "function createMarker(supplyPoint){ // create a marker with a info window\n\n\n var title = getProperty(supplyPoint, oMap.supplyPointSchema.name, 0);\n\n var marker = new google.maps.Marker({\n position: {lat: getProperty(supplyPoint, oMap.supplyPointSchema.lat, 0), lng: getProperty(supplyPoint, oMap.supplyPointSchema.lng, 0) },\n title: title,\n icon: \"http://maps.google.com/mapfiles/kml/pal4/icon57.png\"\n });\n\n google.maps.event.addListener(marker, 'click', function () {\n infowindow.close();\n infowindow.setOptions({maxWidth: 400});\n infowindow.setContent(getInfoBoxString(supplyPoint));\n infowindow.open($$(\"map\")._map, marker);\n\n });\n\n return marker;\n}", "function createMarkers(){\n vm.map.markers = {};\n createLocationSearchMarker();\n for(var i=0; i < vm.items.length; i++){\n var marker = vm.items[i]['center'];\n marker['message'] = vm.items[i]['short_description'];\n marker['icon'] = {\n type: 'awesomeMarker',\n className: vm.items[i]['category'],\n html: String(i + 1)\n\n };\n vm.map.markers[String(vm.items[i]['id'])] = marker;\n }\n }", "function add_marker($marker, map) {\n // var\n var latlng = new google.maps.LatLng($marker.attr('data-lat'), $marker.attr('data-lng')); // create marker\n\n var marker = new google.maps.Marker({\n position: latlng,\n map: map\n }); // add to array\n\n map.markers.push(marker); // if marker contains HTML, add it to an infoWindow\n\n if ($marker.html()) {\n // create info window\n var infowindow = new google.maps.InfoWindow({\n content: $marker.html()\n }); // show info window when marker is clicked\n\n google.maps.event.addListener(marker, 'click', function () {\n infowindow.open(map, marker);\n });\n }\n }", "function setMarker(x,y){\n marker = new google.maps.Marker({\n position: new google.maps.LatLng(x, y),\n map: map,\n icon: 'images/map-marker.png',\n title: 'You are here !'\n });\n\n}", "function createCustomMarker(image) {\n // create holder\n var holder = document.createElement('div');\n holder.className = 'map-marker';\n holder.title = image.title;\n holder.style.position = 'absolute';\n\n // maybe add a link to it?\n if (undefined != image.url) {\n holder.onclick = function() {\n window.location.href = image.url;\n };\n holder.className += ' map-clickable';\n }\n\n // create dot\n var dot = document.createElement('div');\n dot.className = 'dot';\n holder.appendChild(dot);\n\n // create pulse\n var pulse = document.createElement('div');\n pulse.className = 'pulse';\n holder.appendChild(pulse);\n\n // append the marker to the map container\n image.chart.chartDiv.appendChild(holder);\n\n return holder;\n}", "function addMarker(map, powerline, powerpole, overgrowth, oversag, latitude, longitude, comment, url,timeAdded){\n \n // checks to see if comment was entered.\n /*if(comment == null){\n comment = \"\";\n }*/\n var status = createStatus(powerline,powerpole,overgrowth,oversag);\n var justDate = timeAdded.split(\" \");\n var date = justDate[0].split(\"-\");\n\n //console.log(date);\n \n // creates google map location from lat and long\n var location = new google.maps.LatLng(latitude,longitude);\n\n var marker = new google.maps.Marker({\n position: location,\n //animation: google.maps.Animation.DROP,\n map: map,\n //icon: {\n //path: google.maps.SymbolPath.CIRCLE,\n //scale: 5\n //},\n icon: 'http://maps.google.com/mapfiles/ms/icons/' + status + '-dot.png',\n //shape: shape,\n //icon: greenimage,\n locationComment: comment,\n date: justDate[0],\n year: date[0],\n month: date[1],\n day: date[2],\n timeFiltered:false,\n powerline: powerline,\n powerpole: powerpole,\n overgrowth: overgrowth,\n oversag: oversag,\n latitude: latitude,\n longitude: longitude,\n url: url, \n index: 0,\n status: status,\n changed1: 0, \n });\n\n\n google.maps.event.addListener(marker, 'click', function(){\n //document.getElementById('box').innerHTML = marker.index;\n console.log(marker.url);\n pictureChange(marker.url);\n infoPanelChange(marker.powerline, marker.powerpole, marker.overgrowth, marker.oversag, marker.latitude, marker.longitude, marker.locationComment, marker.date)\n if (selected == 0) {originalIcon = marker.getIcon();\n marker.setIcon(blueimage);\n selected = 1;\n selMarker = marker;\n } else {\n //console.log(selMarker);\n selMarker.setIcon(originalIcon); \n originalIcon = marker.getIcon();\n marker.setIcon(blueimage);\n selMarker = marker;\n }\n });\n marker.index = markerArray.length;\n var place = markerArray.push(marker);\n \n}", "function createMarker(m) {\n\t\t\tvar id = m.getAttribute(\"id\");\n\t\t\tvar title = m.getAttribute(\"title\");\n\t\t\tvar location = m.getAttribute(\"location\");\n\t\t\tvar description = m.getAttribute(\"description\");\n\t\t\tvar lat = parseFloat(m.getAttribute(\"lat\"));\n\t\t\tvar lng = parseFloat(m.getAttribute(\"lng\"));\n\t\t\tvar audio = m.getAttribute(\"audio\");\n\t\t\tvar latlng = new GLatLng(lat,lng);\n\t\t\tvar marker = new GMarker(latlng);\n\t\t\tGEvent.addListener(marker,\"click\", function() {\n\t\t\t\tclickFunction(\"\",id);\n\t\t\t});\n\t\t\treturn marker;\n\t\t}", "function marker_add_one(j, i, target, player_colour){\n\tvar half_square = settings.square_width / 2 \n\td3.select(\"svg\")\n\t\t.append(\"circle\")\n\t\t.attr('class', 'marker')\n\t\t.attr('row', j)\n\t\t.attr('square', i)\n\t\t.attr('target', target)\n\t\t.attr(\"cx\", square_get_pos(i) + half_square)\n\t\t.attr(\"cy\", square_get_pos(j) + half_square)\n\t\t.attr(\"r\", settings.radius)\n\t\t.style(\"stroke\", player_colour)\n\t\t.style(\"stroke-width\", settings.stroke_width)\n\t\t.style(\"fill\", player_colour)\n\t\t.on(\"click\", function(){\n\t\t\tconsole.log(this)\n\t\t\tgame_state.selected_marker = this;\n\t\t\tmarker_get_available_moves(this);\n\t\t});\n}", "function createNewMarker (lat, lng, icon) {\n\n var m = map.addMarker({\n lat: lat,\n lng: lng,\n icon: icon\n });\n\n return m;\n}", "function createMarker(point,html) {\n var marker = new GMarker(point);\n GEvent.addListener(marker, \"click\", function() {\n marker.openInfoWindowHtml(html);\n });\n return marker;\n}", "function addMarker(marker) {\n var region = marker[\"Region\"];\n var category = marker[\"Asset.Category\"];\n var projectName = marker[\"Project.Name\"];\n var projectNum = marker[\"Project.Num\"];\n var pos = new google.maps.LatLng(marker[\"Latitude\"], marker[\"Longitude\"]);\n var infeaMultiplierCat = marker['INFEA.Multiplier.Category'];\n var program = marker['Program'];\n var totalEligibleCost = marker['Total.Eligible.Costs'];\n var programContribution = marker['Program.Contribution'];\n var constructionStartDate = marker['Construction.Start.Date'];\n var constructionEndDate = marker['Construction.End.Date'];\n var totalJobsEligible = marker['Total.Jobs.Eligible'];\n var directJobsEligible = marker['Direct.Jobs.Eligible'];\n var totalValueAddedEligible = marker['Total.Value.Added.Eligible'];\n var directValueAddedEligible = marker['Direct.Value.Added.Eligible'];\n var totalCompensationEligible = marker['Total.Compensation.Eligible'];\n var directCompensationEligible = marker['Direct.Compensation.Eligible'];\n var importsContribution = marker['Imports.Contribution'];\n var taxesContribution = marker['Taxes.Contribution'];\n \n var content = \"<h3 class='mrgn-tp-0'>\" + projectName + \" (\" + projectNum + \")</h3>\" +\n \"<dl class=\\\"mrgn-tp-md dl-horizontal\\\">\" +\n \t\t\t\"<dt>Asset Type:</dt> <dd>\"+ infeaMultiplierCat +\"</dd>\" +\n \t\t\t\"<dt>Program:</dt> <dd>\"+ program +\"</dd>\" +\n \t\t\t\"<dt>INFEA Asset Category:</dt> <dd>\"+ category +\"</dd>\" +\n \t\t\t\"<dt>Total Eligible Cost:</dt> <dd>\"+ totalEligibleCost +\"</dd>\" +\n \t\t\t\"<dt>Federal Contribution:</dt> <dd>\"+ programContribution +\"</dd>\" +\n \t\t\t\"<dt>Forecasted Start Date:</dt> <dd>\"+ constructionStartDate +\"</dd>\" +\n \t\t\t\"<dt>Forecasted End Date:</dt> <dd>\"+ constructionEndDate +\"</dd>\" +\n \t\t\t\"<dt>Jobs created:</dt> <dd>\"+ totalJobsEligible +\" (\"+ directJobsEligible +\" direct)</dd>\" +\n \t\t\t\"<dt>Value Added:</dt> <dd>\"+ totalValueAddedEligible +\" (\"+ directValueAddedEligible +\" direct)</dd>\" +\n \t\t\t\"<dt>Employee compensation:</dt> <dd>\"+ totalCompensationEligible +\" (\"+ directCompensationEligible +\" direct)</dd>\" +\n \t\t\t\"<dt>Imports:</dt> <dd>\"+ importsContribution +\"</dd>\" +\n\t\t\t\t\"<dt>Taxes on products:</dt> <dd>\"+ taxesContribution +\"</dd>\" +\n \t\t\t\"</dl>\"\n \n marker1 = new google.maps.Marker({\n projectName: projectName,\n\tprojectNum: projectNum,\n position: pos,\n region: region,\n category: category,\n\tinfeaMultiplierCat: infeaMultiplierCat,\n\tprogram: program,\n\ttotalEligibleCost: totalEligibleCost,\n\tprogramContribution: programContribution,\n\tconstructionStartDate: constructionStartDate,\n\tconstructionEndDate: constructionEndDate,\n\ttotalJobsEligible: totalJobsEligible,\n\tdirectJobsEligible: directJobsEligible,\n\ttotalValueAddedEligible: totalValueAddedEligible,\n\tdirectValueAddedEligible: directValueAddedEligible,\n\ttotalCompensationEligible: totalCompensationEligible,\n\tdirectCompensationEligible: directCompensationEligible,\n\timportsContribution: importsContribution,\n\ttaxesContribution: taxesContribution,\n map: map\n });\n\n gmarkers1.push(marker1);\n\n infowindow = new google.maps.InfoWindow({\n content: ''\n});\n // Marker click listener\n google.maps.event.addListener(marker1, 'click', (function(marker1, content) {\n return function() {\n console.log('Gmarker 1 gets pushed');\n infowindow.setContent(content);\n infowindow.open(map, marker1);\n map.panTo(this.getPosition());\n //map.setZoom(15);\n }\n })(marker1, content));\n}", "function addMarker(e) {\n\n // Position calculations\n const xWidth = hero.width;\n const yHeight = hero.height;\n const xPosition = e.pageX - this.offsetLeft;\n const yPosition = e.pageY - this.offsetTop;\n const x = (xPosition / xWidth) * 100;\n const y = (yPosition / yHeight) * 100;\n\n // Create new marker element\n const newMarker = document.createElement('div');\n\n newMarker.classList.add('note_marker');\n newMarker.style.left = (x - 0.5)+ '%';\n newMarker.style.top = (y - 1) + '%';\n\n // Create the marker content\n const noteContent = document.createElement('div');\n noteContent.classList.add('note_content');\n\n const noteContentInput = document.createElement('textarea');\n //noteContentInput.setAttribute('type', 'text');\n noteContentInput.classList.add('note_input');\n\n // Build the marker\n noteContent.appendChild(noteContentInput);\n newMarker.appendChild(noteContent);\n canvas.appendChild(newMarker);\n\n // Create the marker data object\n const markerData = {\n id: data.length,\n x: x,\n y: y,\n text: noteContentInput.value\n }\n\n // Push marker data to data object\n data.push(markerData);\n\n // Add marker data to local storage\n localStorage.setItem('data', JSON.stringify(data));\n}", "function createMarker(truck) {\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: new google.maps.LatLng(truck.Latitude, truck.Longitude),\n\t\t\tmap: map,\n\t\t\ttitle: truck.Applicant\n\t\t});\n\n\t\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t\t\tmarkerClick(marker);\n\t\t});\n\n\t\tmarkers.push(marker);\n\t\t//console.log(markers);\n\t}", "function addMarker(marker) {\n addRow(marker);\n var lat = parseFloat(marker.lat);\n var lng = parseFloat(marker.lng);\n var latlng = new google.maps.LatLng(lat, lng);\n\n var contentInfo = '<p>' + marker.name + '</p>';\n var infoWindow = new google.maps.InfoWindow({\n content: contentInfo\n });\n\n var marker = new google.maps.Marker({\n position: latlng,\n map: map,\n title: 'Click to zoom',\n// icon: '../images/pin-hrc.png'\n });\n\n marker.addListener('click', function () {\n infoWindow.open(map, marker);\n });\n\n markers.push(marker);\n\n}", "appendInto(container){this.startNode=container.appendChild(createMarker());this.endNode=container.appendChild(createMarker())}", "constructor(pos, mark) {\n super();\n this.pos = pos;\n this.mark = mark;\n }", "constructor(pos, mark) {\n super();\n this.pos = pos;\n this.mark = mark;\n }", "function create_marker_object(point,id,type,cu){\n var icon,icon_s;\n var tab =[];\n tab = choose_type_marker(type);\n var markerOptions ={\n position: point,\n map:mapa,\n clickable:true,\n icon: tab[0],\n shadow:tab[1]\n }\n\n marker = new google.maps.Marker(markerOptions);\n marker.set(\"id\",id);\n if(type == \"photo\"){\n marker.set(\"photo\",true);\n }\n if(cu){\n marker.set(\"cu\",true);\n }\n return marker;\n}", "function createPinMarker(json){\n var latlng = [json['lat'],json['lon']];\n // create a new marker because it's the first time we see it\n var marker = L.marker(latlng, {\n icon: L.mapbox.marker.icon({\n 'marker-color': json.color\n })\n });\n return marker;\n}" ]
[ "0.70629317", "0.6923921", "0.6829593", "0.6760992", "0.6707142", "0.6680169", "0.6593751", "0.65839785", "0.65754306", "0.6537855", "0.645969", "0.6453781", "0.6453521", "0.6445277", "0.6431482", "0.6415655", "0.63720506", "0.6368411", "0.6367104", "0.63644373", "0.6347738", "0.63322467", "0.6330577", "0.632809", "0.632722", "0.6324709", "0.6322799", "0.630736", "0.628608", "0.6274638", "0.6269751", "0.6241247", "0.62405014", "0.6230521", "0.62092054", "0.6202168", "0.6198926", "0.6188352", "0.6188352", "0.61745286", "0.6167961", "0.61606014", "0.61508703", "0.6130452", "0.6118122", "0.6118122", "0.6105936", "0.6094417", "0.6081391", "0.60791725", "0.60765964", "0.60670954", "0.60646737", "0.60646373", "0.6052013", "0.605066", "0.6042653", "0.6021328", "0.6021328", "0.6017788", "0.6016222", "0.60134965", "0.60128504", "0.6007652", "0.60064256", "0.60064256", "0.60063916", "0.59953886", "0.59900856", "0.59829766", "0.5981516", "0.5973957", "0.59689236", "0.596846", "0.59523904", "0.59439653", "0.59426975", "0.5935003", "0.59333724", "0.5928497", "0.59260565", "0.5925031", "0.59242904", "0.5921501", "0.5914486", "0.59116817", "0.59059274", "0.5900138", "0.5897146", "0.58945286", "0.5891884", "0.58917534", "0.5887801", "0.5884219", "0.587421", "0.5867659", "0.58634055", "0.58622617", "0.58622617", "0.5857909", "0.5852298" ]
0.0
-1
These must be handled carefully, because naively registering a handler for each editor will cause the editors to never be garbage collected.
function forEachCodeMirror(f) { if (!document.getElementsByClassName) { return } var byClass = document.getElementsByClassName("CodeMirror"), editors = []; for (var i = 0; i < byClass.length; i++) { var cm = byClass[i].CodeMirror; if (cm) { editors.push(cm); } } if (editors.length) { editors[0].operation(function () { for (var i = 0; i < editors.length; i++) { f(editors[i]); } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _registerHandlers(editor) {\n $(editor).on(\"keyEvent\", _cursorHandler);\n $(editor.document).one(\"change\", _handler);\n editor.document.addRef();\n }", "getEditorListeners() {\n return {\n focusout: 'onEditorFocusOut',\n focusin: 'onEditorFocusIn',\n start: 'onEditorStart',\n beforecomplete: 'onEditorBeforeComplete',\n complete: 'onEditorComplete',\n cancel: 'onEditorCancel',\n thisObj: this\n };\n }", "getEditorListeners() {\n return {\n focusout: 'onEditorFocusOut',\n focusin: 'onEditorFocusIn',\n start: 'onEditorStart',\n beforecomplete: 'onEditorBeforeComplete',\n complete: 'onEditorComplete',\n cancel: 'onEditorCancel',\n thisObj: this\n };\n }", "function addEditorListener() {\n\t\t$('.editing .edit').on('keyup', function(e) {\n\t\t\tcheckEditPress(e);\n\t\t})\n\n\t}", "function _onEditorChanged() {\n\t\t_close();\n\t\tcurrentEditor = EditorManager.getCurrentFullEditor();\n\n\t\tcurrentEditor.$textNode = $(currentEditor.getRootElement()).find(\".CodeMirror-lines\");\n\t\tcurrentEditor.$textNode = $(currentEditor.$textNode.children()[0].children[3]);\n\t\tcurrentEditor.$numbersNode = $(currentEditor.getRootElement()).find(\".CodeMirror-gutter-text\");\n\n\t\t\n\t}", "handleTextEvents(editor) {\n editor.getBuffer().onWillSave(() => {\n if (this.shouldFormatOnSave() && this.hasElixirGrammar(editor)) {\n formatter.formatTextEditor(editor);\n }\n });\n }", "initEventListners() {\n this.engine.getSession().selection.on('changeCursor', () => this.updateCursorLabels());\n\n this.engine.getSession().on('change', (e) => {\n // console.log(e);\n\n // Make sure the editor has content before allowing submissions\n this.allowCodeSubmission = this.engine.getValue() !== '';\n this.enableRunButton(this.allowCodeSubmission);\n });\n }", "function wrapEventHandler(externalHandler) {\n return function (instance) {\n externalHandler(editor);\n };\n }", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EditorCleanup() {\n SwitchInsertCharToAnotherEditorOrClose();\n}", "onEditorChange() {\n // If the handler is in standby mode, bail.\n if (this._standby) {\n return;\n }\n const editor = this.editor;\n if (!editor) {\n return;\n }\n const text = editor.model.value.text;\n const position = editor.getCursorPosition();\n const offset = Text.jsIndexToCharIndex(editor.getOffsetAt(position), text);\n const update = { content: null };\n const pending = ++this._pending;\n void this._connector\n .fetch({ offset, text })\n .then(reply => {\n // If handler has been disposed or a newer request is pending, bail.\n if (this.isDisposed || pending !== this._pending) {\n this._inspected.emit(update);\n return;\n }\n const { data } = reply;\n const mimeType = this._rendermime.preferredMimeType(data);\n if (mimeType) {\n const widget = this._rendermime.createRenderer(mimeType);\n const model = new MimeModel({ data });\n void widget.renderModel(model);\n update.content = widget;\n }\n this._inspected.emit(update);\n })\n .catch(reason => {\n // Since almost all failures are benign, fail silently.\n this._inspected.emit(update);\n });\n }", "_initEvents() {\n window.addEventListener(\"submitCommand\", event => this._processInput(event.detail));\n this.input.editableNode.onkeypress = () => {\n if (this.mode == Editor.MODE_INSERT)\n this.modificationSaved = false;\n };\n this.input.editableNode.onkeydown = event => {\n let keycode = event.keyCode;\n if (this.mode != Editor.MODE_INSERT && keycode !== 37 && keycode !== 38 && keycode !== 39 && keycode !== 40) {\n if (keycode !== Editor.KEY_TOGGLE_MODE_COMMAND)\n event.preventDefault();\n }\n }\n }", "bindEditor(editor){\n\t\tlisten(editor, 'compositionstart', () => {\n\t\t\tthis.inputIsComposing = true\n\t\t})\n\t\tlisten(editor, 'compositionend', e => {\n\t\t\tthis.inputIsComposing = false\n\t\t\tthis.input(e)\n\t\t})\n\t\tlisten(editor, 'input', e => {\n\t\t\tif (!this.inputIsComposing){\n\t\t\t\tthis.input(e)\n\t\t\t}\n\t\t})\n\t}", "_listenSpecsEditorEvents() {\n // listen for save\n this.addEventListener('s-specs-editor.ready', (e) => __awaiter(this, void 0, void 0, function* () {\n // store the specs editor reference\n this._$specsEditor = e.target;\n }));\n // listen for save\n this.addEventListener('s-specs-editor.save', (e) => __awaiter(this, void 0, void 0, function* () {\n this._currentNode.save();\n }));\n // listen for actual updated\n this.addEventListener('s-specs-editor.change', (e) => __awaiter(this, void 0, void 0, function* () {\n // apply the component\n this.applyComponent(e.detail.values);\n }));\n // listen for media change in the specs editor\n this.addEventListener('s-specs-editor.changeMedia', (e) => {\n // change the media internaly\n this._activateMedia(e.detail);\n });\n }", "function vB_AJAX_QuickEditor_Events()\n{\n}", "_editorChanged() {\n this.dispatchEvent(\n new CustomEvent(\"editor-change\", {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: this,\n })\n );\n }", "function registerHandlers()\n {\n component.click(showInput);\n component.click(function(){\n list.children('li').removeClass('mt-selected');\n });\n input.on('change',inputOnchange);\n $(document).on('click','.mt-token-erase', function() {\n $(this).parent().remove();\n });\n input.on('keydown',inputKeydown);\n document.getElementById('mailtoken').addEventListener(\"keydown\", documentKeydown); //or however you are calling your method\n\n }", "registerHandlers() {\n $(document).keydown(event => {\n if (event.ctrlKey && event.keyCode === 13) {\n if (this.state.isTimeout) {\n alertify.error(i18n.errorTooOften);\n return;\n }\n \n const contextExtractor = new ContextExtractor();\n const selection = this.getSelectedText();\n this.selectionContext = contextExtractor.getContextForSelection();\n\n if (selection === \"\") {\n return;\n }\n\n if (selection.length < config.minTypoLength || \n selection.length > config.maxTypoLength) \n {\n alertify.error(i18n.formatString(i18n.errorSelectionLength, \n config.minTypoLength, config.maxTypoLength));\n \n return;\n }\n\n this.typo = selection;\n\n this.disableTypoHighlighting();\n\n // Ctrl-Enter pressed\n this.setState({\n correctionMode: true\n });\n }\n });\n }", "function init_handlers (curr) {\n\t\t\n\t\t/*** Handler for mouse move on content **/\n\t\t curr.on('mousemove', function (ev) {\n\t\t\t handle_mousemove_on_content(ev);\n\t\t });\n\n\t\t /** Handler for mouse click on content **/\n\t\t curr.on('click', function (ev) {\n\t\t handle_mouseclick_on_content(ev);\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t \n\t\t /** Handler for mouse click on content **/\n\t\t curr.on('mouseleave', function (ev) {\n\t\t handle_mouseleave_from_content(ev);\n\t\t });\n\n\t\t /** Handler for mouse enter on content **/\n\t\t curr.on('mouseenter', function (ev) {\n\t\t \t handle_mouseenter_on_content (ev);\n\t\t });\n\t}", "connectedCallback(){super.connectedCallback();let root=this;document.addEventListener(\"selectionchange\",e=>{root.range=root.getRange()});document.addEventListener(\"select-rich-text-editor-editor\",e=>{root._editorChange(e)});document.addEventListener(\"deselect-rich-text-editor-editor\",e=>{root._editorChange(e)})}", "init(ids) {\n initEditors(ids)\n }", "function init() {\n\n\t\t// Bind the editor elements to variables\n\t\tbindElements();\n\n\t\t// Create event listeners for keyup, mouseup, etc.\n\t\tcreateEventBindings();\n\t}", "function _onEditorConnect(editor) {\n\t\tconsole.log(\"Editor connected\");\n\n\t\t// Called when a potential old editor was disconnected (i.e. multiple instances of Brackets are not supported)\n\t\tvar next = function () {\n\t\t\t_setupEditor(editor);\n\t\t\t_connectDebugger();\n\t\t};\n\n\t\tif (_editor) {\n\t\t\t// Cleanup\n\t\t\tconsole.log(\"Disconnecting previous editor\");\n\t\t\t_editor.on(\"disconnect\", next);\n\t\t\t_editor.disconnect();\n\t\t} else {\n\t\t\tnext();\n\t\t}\n\t}", "function ckeInitEvents(editor) {\n\t\n\teditor.on('blur', ckeBlurEvent);\n\teditor.on('focus', ckeFocusEvent);\n\teditor.on('change', ckeBlurEvent);\n\teditor.on('resize', ckeResizeEvent);\n\teditor.on('fileUploadRequest', ckeUploadEvent, null, null, 4); \n\n\tvar $textarea = $(editor.element.$);\n\tvar $inputfield = $textarea.closest('.Inputfield.InputfieldColumnWidth');\n\t\n\tif($inputfield.length) setTimeout(function() {\n\t\t$inputfield.trigger('heightChanged');\n\t}, 1000);\n}", "init() {\n // Get saved editor settings if any or default values from SettingsHandler\n const initialLanguage = settingsHandler.getEditorLanguageMode();\n const initialContent = settingsHandler.getEditorContent();\n\n this.engine.setTheme('ace/theme/monokai');\n this.engine.$blockScrolling = Infinity;\n this.engine.setShowPrintMargin(false);\n // Define the language mode for syntax highlighting and editor content\n this.engine.getSession().setMode({path:'ace/mode/' + initialLanguage, inline:true});\n this.engine.setValue(initialContent);\n\n this.initEventListners();\n }", "function update_textarea_handlers(){\n\n\t$('.wmd-wrapper').click(function () {\n\t\tif (!$(this).find('textarea').hasClass('expand')){\n\t\t\t$('.wmd-input').removeClass('expand');\n\t\t\t$('.wmd-preview').hide();\n\t\t\t$(this).find('textarea').addClass('expand');\n\t\t\t$(this).find('.wmd-preview').show();\n\t\t}\n\t});\n}", "function register_handlers(handlers) {\n $.each(handlers, function(selector, handler) {\n // register each handler\n self.handler(selector, function() {\n // bind self as an argument for the custom handler\n return handler.apply(this, [self]);\n });\n });\n }", "function initEditor() {\n checkSetup();\n initFirebase();\n initConstants();\n initCanvas();\n initButton();\n initEditorData();\n initEventHandlers();\n resetEditor();\n initGrid();\n initSelectorContent();\n}", "_editorChange(e,deselect=!1){let root=this,editorChange=root.editor!==e.detail.editor,toolbarChange=root.toolbar!==e.detail.toolbar;if(deselect||editorChange||toolbarChange){let sel=window.getSelection();sel.removeAllRanges();root.editor=e.detail.editor;root.toolbar=e.detail.toolbar;if(root.observer)root.observer.disconnect();if(!deselect&&e.detail.editor){root.observer=new MutationObserver(evt=>{root.range=root.getRange()});root.observer.observe(e.detail.editor,{attributes:!1,childList:!0,subtree:!0,characterData:!1})}}}", "function addTextEditorObserver(editor, files, view) {\n // console.log(arguments);\n var onSelectorUpdate = function onSelectorUpdate(compiledSelectors) {\n // console.dir(compiledSelectors);\n var str = createOutputString(compiledSelectors);\n view.innerHTML = str;\n };\n\n addSelectionListener(editor, files, onSelectorUpdate);\n}", "static createEditors(editors) {\n for (var i = 0, editor; i < editors.length; i++) {\n editor = editors[i];\n var textarea = document.querySelector('textarea[name=\\\"' + editor.name + '\\\"]');\n if (textarea) {\n if(!editor.mode) {\n editor.mode = Preferences.get('editor.defaultMode');\n }\n console.log('Found editor', editor);\n\n var fullscreenImmediately = false;\n // in certain situations we go straight into fullscreen editing!!\n if(editor.name === 'content') {\n let queryParams = decodeURI(window.location.search)\n .substring(1)\n .split('&')\n .map(param => param.split('='))\n .reduce((values, [ key, value ]) => {\n values[ key ] = value\n return values\n }, {});\n if(queryParams['mode']) {\n fullscreenImmediately = true;\n editor.mode = queryParams['mode'];\n }\n }\n\n var e = new Editor(editor.name, editor.language, editor.mode, editor.readOnly, editor.stylesheets);\n if(fullscreenImmediately) {\n e.fullscreenToggle.set(true);\n }\n\n Editor.list.push(e);\n } else {\n console.log('Editor not found');\n console.log(editor);\n }\n }\n }", "function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n on(d.scroller, \"dblclick\", operation(cm, function(e) {\n if (signalDOMEvent(cm, e)) return;\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;\n e_preventDefault(e);\n var word = cm.findWordAt(pos);\n extendSelection(cm.doc, word.anchor, word.head);\n }));\n else\n on(d.scroller, \"dblclick\", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });\n // Prevent normal selection in the editor (we handle our own)\n on(d.lineSpace, \"selectstart\", function(e) {\n if (!eventInWidget(d, e)) e_preventDefault(e);\n });\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n if (!captureRightClick) on(d.scroller, \"contextmenu\", function(e) {onContextMenu(cm, e);});\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function() {\n if (d.scroller.clientHeight) {\n setScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function(e){onScrollWheel(cm, e);});\n on(d.scroller, \"DOMMouseScroll\", function(e){onScrollWheel(cm, e);});\n\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n on(d.input, \"keyup\", function(e) { onKeyUp.call(cm, e); });\n on(d.input, \"input\", function() {\n if (ie && ie_version >= 9 && cm.display.inputHasSelection) cm.display.inputHasSelection = null;\n readInput(cm);\n });\n on(d.input, \"keydown\", operation(cm, onKeyDown));\n on(d.input, \"keypress\", operation(cm, onKeyPress));\n on(d.input, \"focus\", bind(onFocus, cm));\n on(d.input, \"blur\", bind(onBlur, cm));\n\n function drag_(e) {\n if (!signalDOMEvent(cm, e)) e_stop(e);\n }\n if (cm.options.dragDrop) {\n on(d.scroller, \"dragstart\", function(e){onDragStart(cm, e);});\n on(d.scroller, \"dragenter\", drag_);\n on(d.scroller, \"dragover\", drag_);\n on(d.scroller, \"drop\", operation(cm, onDrop));\n }\n on(d.scroller, \"paste\", function(e) {\n if (eventInWidget(d, e)) return;\n cm.state.pasteIncoming = true;\n focusInput(cm);\n fastPoll(cm);\n });\n on(d.input, \"paste\", function() {\n // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206\n // Add a char to the end of textarea before paste occur so that\n // selection doesn't span to the end of textarea.\n if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) {\n var start = d.input.selectionStart, end = d.input.selectionEnd;\n d.input.value += \"$\";\n // The selection end needs to be set before the start, otherwise there\n // can be an intermediate non-empty selection between the two, which\n // can override the middle-click paste buffer on linux and cause the\n // wrong thing to get pasted.\n d.input.selectionEnd = end;\n d.input.selectionStart = start;\n cm.state.fakedLastChar = true;\n }\n cm.state.pasteIncoming = true;\n fastPoll(cm);\n });\n\n function prepareCopyCut(e) {\n if (cm.somethingSelected()) {\n lastCopied = cm.getSelections();\n if (d.inaccurateSelection) {\n d.prevInput = \"\";\n d.inaccurateSelection = false;\n d.input.value = lastCopied.join(\"\\n\");\n selectInput(d.input);\n }\n } else {\n var text = [], ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\n }\n if (e.type == \"cut\") {\n cm.setSelections(ranges, null, sel_dontScroll);\n } else {\n d.prevInput = \"\";\n d.input.value = text.join(\"\\n\");\n selectInput(d.input);\n }\n lastCopied = text;\n }\n if (e.type == \"cut\") cm.state.cutIncoming = true;\n }\n on(d.input, \"cut\", prepareCopyCut);\n on(d.input, \"copy\", prepareCopyCut);\n\n // Needed to handle Tab key in KHTML\n if (khtml) on(d.sizer, \"mouseup\", function() {\n if (activeElt() == d.input) d.input.blur();\n focusInput(cm);\n });\n }", "function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n on(d.scroller, \"dblclick\", operation(cm, function(e) {\n if (signalDOMEvent(cm, e)) return;\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;\n e_preventDefault(e);\n var word = cm.findWordAt(pos);\n extendSelection(cm.doc, word.anchor, word.head);\n }));\n else\n on(d.scroller, \"dblclick\", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });\n // Prevent normal selection in the editor (we handle our own)\n on(d.lineSpace, \"selectstart\", function(e) {\n if (!eventInWidget(d, e)) e_preventDefault(e);\n });\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n if (!captureRightClick) on(d.scroller, \"contextmenu\", function(e) {onContextMenu(cm, e);});\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function() {\n if (d.scroller.clientHeight) {\n setScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function(e){onScrollWheel(cm, e);});\n on(d.scroller, \"DOMMouseScroll\", function(e){onScrollWheel(cm, e);});\n\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n on(d.input, \"keyup\", function(e) { onKeyUp.call(cm, e); });\n on(d.input, \"input\", function() {\n if (ie && ie_version >= 9 && cm.display.inputHasSelection) cm.display.inputHasSelection = null;\n readInput(cm);\n });\n on(d.input, \"keydown\", operation(cm, onKeyDown));\n on(d.input, \"keypress\", operation(cm, onKeyPress));\n on(d.input, \"focus\", bind(onFocus, cm));\n on(d.input, \"blur\", bind(onBlur, cm));\n\n function drag_(e) {\n if (!signalDOMEvent(cm, e)) e_stop(e);\n }\n if (cm.options.dragDrop) {\n on(d.scroller, \"dragstart\", function(e){onDragStart(cm, e);});\n on(d.scroller, \"dragenter\", drag_);\n on(d.scroller, \"dragover\", drag_);\n on(d.scroller, \"drop\", operation(cm, onDrop));\n }\n on(d.scroller, \"paste\", function(e) {\n if (eventInWidget(d, e)) return;\n cm.state.pasteIncoming = true;\n focusInput(cm);\n fastPoll(cm);\n });\n on(d.input, \"paste\", function() {\n // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206\n // Add a char to the end of textarea before paste occur so that\n // selection doesn't span to the end of textarea.\n if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) {\n var start = d.input.selectionStart, end = d.input.selectionEnd;\n d.input.value += \"$\";\n // The selection end needs to be set before the start, otherwise there\n // can be an intermediate non-empty selection between the two, which\n // can override the middle-click paste buffer on linux and cause the\n // wrong thing to get pasted.\n d.input.selectionEnd = end;\n d.input.selectionStart = start;\n cm.state.fakedLastChar = true;\n }\n cm.state.pasteIncoming = true;\n fastPoll(cm);\n });\n\n function prepareCopyCut(e) {\n if (cm.somethingSelected()) {\n lastCopied = cm.getSelections();\n if (d.inaccurateSelection) {\n d.prevInput = \"\";\n d.inaccurateSelection = false;\n d.input.value = lastCopied.join(\"\\n\");\n selectInput(d.input);\n }\n } else {\n var text = [], ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\n }\n if (e.type == \"cut\") {\n cm.setSelections(ranges, null, sel_dontScroll);\n } else {\n d.prevInput = \"\";\n d.input.value = text.join(\"\\n\");\n selectInput(d.input);\n }\n lastCopied = text;\n }\n if (e.type == \"cut\") cm.state.cutIncoming = true;\n }\n on(d.input, \"cut\", prepareCopyCut);\n on(d.input, \"copy\", prepareCopyCut);\n\n // Needed to handle Tab key in KHTML\n if (khtml) on(d.sizer, \"mouseup\", function() {\n if (activeElt() == d.input) d.input.blur();\n focusInput(cm);\n });\n }", "function TinyMCE_Engine() {\n\tthis.instances = new Array();\n\tthis.configs = new Array();\n\tthis.currentConfig = 0;\n\tthis.eventHandlers = new Array();\n\tthis.switchClassCache = new Array();\n\n\t// Browser check\n\tthis.isMSIE = IS_IE;\t\t\n\tthis.isGecko = IS_MOZILLA;\t\n\tthis.isSafari = IS_SAFARI;\t\n\tthis.isOpera = IS_OPERA;\n\tthis.isMSIE7 = IS_IE7;\n\tthis.isKonqueror = IS_KONQUEROR;\n\t\n\tthis.settings = new Array();\n\t\n\t// Fake MSIE on Opera and if Opera fakes IE, Gecko or Safari cancel those\n\tif (this.isOpera) {\n\t\tthis.isMSIE = true;\n\t\tthis.isGecko = false;\n\t\tthis.isSafari = false;\n\t\tif (USER_AGENT.match(/opera\\/9\\.50/)) {\n\t\t\tthis.isOpera95 = true;\n\t\t}\n\t}\n\telse if (this.isSafari) {\n\t\tthis.isGecko = true;\n\t\tif (USER_AGENT.match(/version\\/3\\./i) || USER_AGENT.match(/chrome/i)) {\n\t\t\tthis.isSafari3 = true;\t\n\t\t\tthis.isSafari = false;\n\t\t}\n\t}\n\n\t// TinyMCE editor id instance counter\n\tthis.idCounter = 0;\n\t\n\t// flag to detect if simplearea is active\n\tthis.isSimpleTextarea = false;\n\t// TODO: this should be dynamic to be able to create more than one simple area.\n\tthis.simpleAreaID = 'text';\n\tthis.simpleTextarea = null;\n\t\n\t// define elements which should be a tiny-wysiwyg editor\n\tthis.elements = ['text'];\n\t\n\t// define tab ids and active class\n\tthis.codeTabID = \"codeTab\";\n\tthis.editorTabID = \"editorTab\";\n\tthis.tabsActiveClass = \"activeTabMenu\";\n\t\t\n\t//... order in which the toolbarelements should apear:\n\tthis.toolElements = [[\"font\",\"size\",\"separator\",\"b\",\"i\",\"u\",\"s\",\"separator\",\"align\",\"separator\",\"list\",\"separator\",\"color\",\"break\"], \n\t\t\t[\"undo\",\"redo\",\"separator\",\"url\",\"separator\",\"img\",\"separator\",\"quotation\",\"quote\",\"code\"]];//\"copy\",\"cut\",\"paste\",\"separator\",\t\t\n\t\n}", "function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n on(d.scroller, \"dblclick\", operation(cm, function(e) {\n if (signalDOMEvent(cm, e)) return;\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;\n e_preventDefault(e);\n var word = findWordAt(cm, pos);\n extendSelection(cm.doc, word.anchor, word.head);\n }));\n else\n on(d.scroller, \"dblclick\", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });\n // Prevent normal selection in the editor (we handle our own)\n on(d.lineSpace, \"selectstart\", function(e) {\n if (!eventInWidget(d, e)) e_preventDefault(e);\n });\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n if (!captureRightClick) on(d.scroller, \"contextmenu\", function(e) {onContextMenu(cm, e);});\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function() {\n if (d.scroller.clientHeight) {\n setScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n on(d.scrollbarV, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollTop(cm, d.scrollbarV.scrollTop);\n });\n on(d.scrollbarH, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollLeft(cm, d.scrollbarH.scrollLeft);\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function(e){onScrollWheel(cm, e);});\n on(d.scroller, \"DOMMouseScroll\", function(e){onScrollWheel(cm, e);});\n\n // Prevent clicks in the scrollbars from killing focus\n function reFocus() { if (cm.state.focused) setTimeout(bind(focusInput, cm), 0); }\n on(d.scrollbarH, \"mousedown\", reFocus);\n on(d.scrollbarV, \"mousedown\", reFocus);\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n on(d.input, \"keyup\", operation(cm, onKeyUp));\n on(d.input, \"input\", function() {\n if (ie && ie_version >= 9 && cm.display.inputHasSelection) cm.display.inputHasSelection = null;\n fastPoll(cm);\n });\n on(d.input, \"keydown\", operation(cm, onKeyDown));\n on(d.input, \"keypress\", operation(cm, onKeyPress));\n on(d.input, \"focus\", bind(onFocus, cm));\n on(d.input, \"blur\", bind(onBlur, cm));\n\n function drag_(e) {\n if (!signalDOMEvent(cm, e)) e_stop(e);\n }\n if (cm.options.dragDrop) {\n on(d.scroller, \"dragstart\", function(e){onDragStart(cm, e);});\n on(d.scroller, \"dragenter\", drag_);\n on(d.scroller, \"dragover\", drag_);\n on(d.scroller, \"drop\", operation(cm, onDrop));\n }\n on(d.scroller, \"paste\", function(e) {\n if (eventInWidget(d, e)) return;\n cm.state.pasteIncoming = true;\n focusInput(cm);\n fastPoll(cm);\n });\n on(d.input, \"paste\", function() {\n // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206\n // Add a char to the end of textarea before paste occur so that\n // selection doesn't span to the end of textarea.\n if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) {\n var start = d.input.selectionStart, end = d.input.selectionEnd;\n d.input.value += \"$\";\n // The selection end needs to be set before the start, otherwise there\n // can be an intermediate non-empty selection between the two, which\n // can override the middle-click paste buffer on linux and cause the\n // wrong thing to get pasted.\n d.input.selectionEnd = end;\n d.input.selectionStart = start;\n cm.state.fakedLastChar = true;\n }\n cm.state.pasteIncoming = true;\n fastPoll(cm);\n });\n\n function prepareCopyCut(e) {\n if (cm.somethingSelected()) {\n if (d.inaccurateSelection) {\n d.prevInput = \"\";\n d.inaccurateSelection = false;\n d.input.value = cm.getSelection();\n selectInput(d.input);\n }\n } else {\n var text = \"\", ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text += cm.getRange(lineRange.anchor, lineRange.head);\n }\n if (e.type == \"cut\") {\n cm.setSelections(ranges, null, sel_dontScroll);\n } else {\n d.prevInput = \"\";\n d.input.value = text;\n selectInput(d.input);\n }\n }\n if (e.type == \"cut\") cm.state.cutIncoming = true;\n }\n on(d.input, \"cut\", prepareCopyCut);\n on(d.input, \"copy\", prepareCopyCut);\n\n // Needed to handle Tab key in KHTML\n if (khtml) on(d.sizer, \"mouseup\", function() {\n if (activeElt() == d.input) d.input.blur();\n focusInput(cm);\n });\n }", "function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n on(d.scroller, \"dblclick\", operation(cm, function(e) {\n if (signalDOMEvent(cm, e)) return;\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;\n e_preventDefault(e);\n var word = findWordAt(cm, pos);\n extendSelection(cm.doc, word.anchor, word.head);\n }));\n else\n on(d.scroller, \"dblclick\", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });\n // Prevent normal selection in the editor (we handle our own)\n on(d.lineSpace, \"selectstart\", function(e) {\n if (!eventInWidget(d, e)) e_preventDefault(e);\n });\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n if (!captureRightClick) on(d.scroller, \"contextmenu\", function(e) {onContextMenu(cm, e);});\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function() {\n if (d.scroller.clientHeight) {\n setScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n on(d.scrollbarV, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollTop(cm, d.scrollbarV.scrollTop);\n });\n on(d.scrollbarH, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollLeft(cm, d.scrollbarH.scrollLeft);\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function(e){onScrollWheel(cm, e);});\n on(d.scroller, \"DOMMouseScroll\", function(e){onScrollWheel(cm, e);});\n\n // Prevent clicks in the scrollbars from killing focus\n function reFocus() { if (cm.state.focused) setTimeout(bind(focusInput, cm), 0); }\n on(d.scrollbarH, \"mousedown\", reFocus);\n on(d.scrollbarV, \"mousedown\", reFocus);\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n on(d.input, \"keyup\", function(e) { onKeyUp.call(cm, e); });\n on(d.input, \"input\", function() {\n if (ie && ie_version >= 9 && cm.display.inputHasSelection) cm.display.inputHasSelection = null;\n fastPoll(cm);\n });\n on(d.input, \"keydown\", operation(cm, onKeyDown));\n on(d.input, \"keypress\", operation(cm, onKeyPress));\n on(d.input, \"focus\", bind(onFocus, cm));\n on(d.input, \"blur\", bind(onBlur, cm));\n\n function drag_(e) {\n if (!signalDOMEvent(cm, e)) e_stop(e);\n }\n if (cm.options.dragDrop) {\n on(d.scroller, \"dragstart\", function(e){onDragStart(cm, e);});\n on(d.scroller, \"dragenter\", drag_);\n on(d.scroller, \"dragover\", drag_);\n on(d.scroller, \"drop\", operation(cm, onDrop));\n }\n on(d.scroller, \"paste\", function(e) {\n if (eventInWidget(d, e)) return;\n cm.state.pasteIncoming = true;\n focusInput(cm);\n fastPoll(cm);\n });\n on(d.input, \"paste\", function() {\n // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206\n // Add a char to the end of textarea before paste occur so that\n // selection doesn't span to the end of textarea.\n if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) {\n var start = d.input.selectionStart, end = d.input.selectionEnd;\n d.input.value += \"$\";\n // The selection end needs to be set before the start, otherwise there\n // can be an intermediate non-empty selection between the two, which\n // can override the middle-click paste buffer on linux and cause the\n // wrong thing to get pasted.\n d.input.selectionEnd = end;\n d.input.selectionStart = start;\n cm.state.fakedLastChar = true;\n }\n cm.state.pasteIncoming = true;\n fastPoll(cm);\n });\n\n function prepareCopyCut(e) {\n if (cm.somethingSelected()) {\n lastCopied = cm.getSelections();\n if (d.inaccurateSelection) {\n d.prevInput = \"\";\n d.inaccurateSelection = false;\n d.input.value = lastCopied.join(\"\\n\");\n selectInput(d.input);\n }\n } else {\n var text = [], ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\n }\n if (e.type == \"cut\") {\n cm.setSelections(ranges, null, sel_dontScroll);\n } else {\n d.prevInput = \"\";\n d.input.value = text.join(\"\\n\");\n selectInput(d.input);\n }\n lastCopied = text;\n }\n if (e.type == \"cut\") cm.state.cutIncoming = true;\n }\n on(d.input, \"cut\", prepareCopyCut);\n on(d.input, \"copy\", prepareCopyCut);\n\n // Needed to handle Tab key in KHTML\n if (khtml) on(d.sizer, \"mouseup\", function() {\n if (activeElt() == d.input) d.input.blur();\n focusInput(cm);\n });\n }", "function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n on(d.scroller, \"dblclick\", operation(cm, function(e) {\n if (signalDOMEvent(cm, e)) return;\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;\n e_preventDefault(e);\n var word = findWordAt(cm, pos);\n extendSelection(cm.doc, word.anchor, word.head);\n }));\n else\n on(d.scroller, \"dblclick\", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });\n // Prevent normal selection in the editor (we handle our own)\n on(d.lineSpace, \"selectstart\", function(e) {\n if (!eventInWidget(d, e)) e_preventDefault(e);\n });\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n if (!captureRightClick) on(d.scroller, \"contextmenu\", function(e) {onContextMenu(cm, e);});\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function() {\n if (d.scroller.clientHeight) {\n setScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n on(d.scrollbarV, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollTop(cm, d.scrollbarV.scrollTop);\n });\n on(d.scrollbarH, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollLeft(cm, d.scrollbarH.scrollLeft);\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function(e){onScrollWheel(cm, e);});\n on(d.scroller, \"DOMMouseScroll\", function(e){onScrollWheel(cm, e);});\n\n // Prevent clicks in the scrollbars from killing focus\n function reFocus() { if (cm.state.focused) setTimeout(bind(focusInput, cm), 0); }\n on(d.scrollbarH, \"mousedown\", reFocus);\n on(d.scrollbarV, \"mousedown\", reFocus);\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n on(d.input, \"keyup\", function(e) { onKeyUp.call(cm, e); });\n on(d.input, \"input\", function() {\n if (ie && ie_version >= 9 && cm.display.inputHasSelection) cm.display.inputHasSelection = null;\n fastPoll(cm);\n });\n on(d.input, \"keydown\", operation(cm, onKeyDown));\n on(d.input, \"keypress\", operation(cm, onKeyPress));\n on(d.input, \"focus\", bind(onFocus, cm));\n on(d.input, \"blur\", bind(onBlur, cm));\n\n function drag_(e) {\n if (!signalDOMEvent(cm, e)) e_stop(e);\n }\n if (cm.options.dragDrop) {\n on(d.scroller, \"dragstart\", function(e){onDragStart(cm, e);});\n on(d.scroller, \"dragenter\", drag_);\n on(d.scroller, \"dragover\", drag_);\n on(d.scroller, \"drop\", operation(cm, onDrop));\n }\n on(d.scroller, \"paste\", function(e) {\n if (eventInWidget(d, e)) return;\n cm.state.pasteIncoming = true;\n focusInput(cm);\n fastPoll(cm);\n });\n on(d.input, \"paste\", function() {\n // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206\n // Add a char to the end of textarea before paste occur so that\n // selection doesn't span to the end of textarea.\n if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) {\n var start = d.input.selectionStart, end = d.input.selectionEnd;\n d.input.value += \"$\";\n // The selection end needs to be set before the start, otherwise there\n // can be an intermediate non-empty selection between the two, which\n // can override the middle-click paste buffer on linux and cause the\n // wrong thing to get pasted.\n d.input.selectionEnd = end;\n d.input.selectionStart = start;\n cm.state.fakedLastChar = true;\n }\n cm.state.pasteIncoming = true;\n fastPoll(cm);\n });\n\n function prepareCopyCut(e) {\n if (cm.somethingSelected()) {\n lastCopied = cm.getSelections();\n if (d.inaccurateSelection) {\n d.prevInput = \"\";\n d.inaccurateSelection = false;\n d.input.value = lastCopied.join(\"\\n\");\n selectInput(d.input);\n }\n } else {\n var text = [], ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\n }\n if (e.type == \"cut\") {\n cm.setSelections(ranges, null, sel_dontScroll);\n } else {\n d.prevInput = \"\";\n d.input.value = text.join(\"\\n\");\n selectInput(d.input);\n }\n lastCopied = text;\n }\n if (e.type == \"cut\") cm.state.cutIncoming = true;\n }\n on(d.input, \"cut\", prepareCopyCut);\n on(d.input, \"copy\", prepareCopyCut);\n\n // Needed to handle Tab key in KHTML\n if (khtml) on(d.sizer, \"mouseup\", function() {\n if (activeElt() == d.input) d.input.blur();\n focusInput(cm);\n });\n }", "function addToEditors(win) { // 5526\n if (!win._mediumEditors) { // 5527\n // To avoid breaking users who are assuming that the unique id on\n // medium-editor elements will start at 1, inserting a 'null' in the\n // array so the unique-id can always map to the index of the editor instance\n win._mediumEditors = [null]; // 5531\n } // 5532\n // 5533\n // If this already has a unique id, re-use it // 5534\n if (!this.id) { // 5535\n this.id = win._mediumEditors.length; // 5536\n } // 5537\n // 5538\n win._mediumEditors[this.id] = this; // 5539\n } // 5540", "function editorNativeCallbacks(bridge) {\n // listen for cursor and selection position changes\n // editor.selection.on(\"changeCursor\",function() {\n\n // if (preventStateUpdates) {\n // return;\n // }\n \n // if (documentLoadEvent == false) {\n \n // var nativeData = getCursorData();\n\n // if (cursorUpdateTimer != undefined) {\n // window.clearTimeout(cursorUpdateTimer);\n // }\n // cursorUpdateTimer = window.setTimeout(function() {\n // bridge.callHandler(\"changeCursor\",nativeData);\n // }, 100);\n \n // }\n // });\n\n\n // listen for non-programmatic text changes\n editor.on(\"change\", function(changeData) {\n if (editor.curOp && editor.curOp.command.name) {\n // this is a user change\n textChangeEvent(bridge);\n }\n });\n\n editor.on(\"paste\", function() {\n textChangeEvent(bridge);\n });\n\n // window.setInterval(function() {\n // var cursorData = getCursorData();\n // var currentText = editor.getValue();\n\n // var nativeData = {\"text\": currentText, \"cursor\": cursorData};\n\n // bridge.callHandler(\"currentText\", nativeData);\n // },100);\n}", "loadEditors() {\r\n\r\n // Loading content for HTML editor\r\n this.editorHTML = ace.edit('editorHTML')\r\n this.editorHTML.setTheme('ace/theme/sqlserver')\r\n this.editorHTML.session.setMode('ace/mode/html')\r\n let htmlDoc = '<!DOCTYPE html>\\n<html>\\n<head>\\n\\t<meta charset=\"UTF-8\">\\n\\t<title>LWE</title>\\n</head>\\n<body>\\n\\t<div id=\"welcome\">\\n\\t\\t<h1 id=\"title\">Welcome to Live Web Editor</h1>\\n\\t\\t<p>Execute HTML, CSS and JavaScript code in real time quickly and easily</p>\\n\\t\\t<p>Wherever you want, whenever you want</p>\\n\\t</div>\\n</body>\\n</html>'\r\n this.editorHTML.insert(htmlDoc)\r\n this.editorHTML.gotoLine(11,53)\r\n this.editorHTML.setShowPrintMargin(false)\r\n\r\n // Loading content for CSS editor\r\n this.editorCSS = ace.edit('editorCSS')\r\n this.editorCSS.setTheme('ace/theme/sqlserver')\r\n this.editorCSS.session.setMode('ace/mode/css')\r\n let cssDoc = '* {\\n\\tmargin: 0;\\n\\tpadding: 0;\\n}\\n\\n#welcome {\\n\\tfont-family: \"Segoe UI\";\\n\\ttext-align: center;\\n\\tmargin-top: 15%;\\n}\\n\\n#welcome h1 {\\n\\tcolor: #87CEEB;\\n}\\n\\n#welcome p {\\n\\tcolor: #009DA3;\\n}'\r\n this.editorCSS.insert(cssDoc)\r\n this.editorCSS.gotoLine(17,16)\r\n this.editorCSS.setShowPrintMargin(false)\r\n\r\n // Loading content for JS editor\r\n this.editorJS = ace.edit('editorJS')\r\n this.editorJS.setTheme('ace/theme/sqlserver')\r\n this.editorJS.session.setMode('ace/mode/javascript')\r\n let jsDoc = '// Your code here...'\r\n this.editorJS.insert(jsDoc)\r\n this.editorJS.gotoLine(1, 20)\r\n this.editorJS.setShowPrintMargin(false)\r\n \r\n }", "function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n on(d.scroller, \"dblclick\", operation(cm, function(e) {\n if (signalDOMEvent(cm, e)) return;\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;\n e_preventDefault(e);\n var word = cm.findWordAt(pos);\n extendSelection(cm.doc, word.anchor, word.head);\n }));\n else\n on(d.scroller, \"dblclick\", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });\n // Prevent normal selection in the editor (we handle our own)\n on(d.lineSpace, \"selectstart\", function(e) {\n if (!eventInWidget(d, e)) e_preventDefault(e);\n });\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n if (!captureRightClick) on(d.scroller, \"contextmenu\", function(e) {onContextMenu(cm, e);});\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function() {\n if (d.scroller.clientHeight) {\n setScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n on(d.scrollbarV, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollTop(cm, d.scrollbarV.scrollTop);\n });\n on(d.scrollbarH, \"scroll\", function() {\n if (d.scroller.clientHeight) setScrollLeft(cm, d.scrollbarH.scrollLeft);\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function(e){onScrollWheel(cm, e);});\n on(d.scroller, \"DOMMouseScroll\", function(e){onScrollWheel(cm, e);});\n\n // Prevent clicks in the scrollbars from killing focus\n function reFocus() { if (cm.state.focused) setTimeout(bind(focusInput, cm), 0); }\n on(d.scrollbarH, \"mousedown\", reFocus);\n on(d.scrollbarV, \"mousedown\", reFocus);\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n on(d.input, \"keyup\", function(e) { onKeyUp.call(cm, e); });\n on(d.input, \"input\", function() {\n if (ie && ie_version >= 9 && cm.display.inputHasSelection) cm.display.inputHasSelection = null;\n fastPoll(cm);\n });\n on(d.input, \"keydown\", operation(cm, onKeyDown));\n on(d.input, \"keypress\", operation(cm, onKeyPress));\n on(d.input, \"focus\", bind(onFocus, cm));\n on(d.input, \"blur\", bind(onBlur, cm));\n\n function drag_(e) {\n if (!signalDOMEvent(cm, e)) e_stop(e);\n }\n if (cm.options.dragDrop) {\n on(d.scroller, \"dragstart\", function(e){onDragStart(cm, e);});\n on(d.scroller, \"dragenter\", drag_);\n on(d.scroller, \"dragover\", drag_);\n on(d.scroller, \"drop\", operation(cm, onDrop));\n }\n on(d.scroller, \"paste\", function(e) {\n if (eventInWidget(d, e)) return;\n cm.state.pasteIncoming = true;\n focusInput(cm);\n fastPoll(cm);\n });\n on(d.input, \"paste\", function() {\n // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206\n // Add a char to the end of textarea before paste occur so that\n // selection doesn't span to the end of textarea.\n if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) {\n var start = d.input.selectionStart, end = d.input.selectionEnd;\n d.input.value += \"$\";\n // The selection end needs to be set before the start, otherwise there\n // can be an intermediate non-empty selection between the two, which\n // can override the middle-click paste buffer on linux and cause the\n // wrong thing to get pasted.\n d.input.selectionEnd = end;\n d.input.selectionStart = start;\n cm.state.fakedLastChar = true;\n }\n cm.state.pasteIncoming = true;\n fastPoll(cm);\n });\n\n function prepareCopyCut(e) {\n if (cm.somethingSelected()) {\n lastCopied = cm.getSelections();\n if (d.inaccurateSelection) {\n d.prevInput = \"\";\n d.inaccurateSelection = false;\n d.input.value = lastCopied.join(\"\\n\");\n selectInput(d.input);\n }\n } else {\n var text = [], ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\n }\n if (e.type == \"cut\") {\n cm.setSelections(ranges, null, sel_dontScroll);\n } else {\n d.prevInput = \"\";\n d.input.value = text.join(\"\\n\");\n selectInput(d.input);\n }\n lastCopied = text;\n }\n if (e.type == \"cut\") cm.state.cutIncoming = true;\n }\n on(d.input, \"cut\", prepareCopyCut);\n on(d.input, \"copy\", prepareCopyCut);\n\n // Needed to handle Tab key in KHTML\n if (khtml) on(d.sizer, \"mouseup\", function() {\n if (activeElt() == d.input) d.input.blur();\n focusInput(cm);\n });\n }", "static domEventHandlers(handlers) {\n return ViewPlugin.define(() => ({}), { eventHandlers: handlers });\n }", "function turnOnFSWatcherAndTextHandler() {\n //register a handler to capture changes to files in the editor\n extensionContext.subscriptions.push(vscode.workspace.onDidChangeTextDocument(handleTextEditorChange));\n //register a handler to be called whenever the user saves one or more files\n extensionContext.subscriptions.push(vscode.workspace.onDidSaveTextDocument(handleFileSave));\n //create a file system watcher for all of the files in this workspace\n const fsWatcher = vscode.workspace.createFileSystemWatcher('**/*', false, true, false);\n //handle file/dir creates and deletes (translate these to create, delete, move, rename events) \n extensionContext.subscriptions.push(fsWatcher.onDidCreate(addRecentCreate));\n extensionContext.subscriptions.push(fsWatcher.onDidDelete(addRecentDelete));\n \n //cut/copy/paste overides\n //override the editor.action.clipboardCopyAction with our own\n clipboardCopyDisposable = vscode.commands.registerTextEditorCommand('editor.action.clipboardCopyAction', overriddenClipboardCopyAction); \n //extensionContext.subscriptions.push(clipboardCopyDisposable);\n\n //override the editor.action.clipboardCutAction with our own\n clipboardCutDisposable = vscode.commands.registerTextEditorCommand('editor.action.clipboardCutAction', overriddenClipboardCutAction); \n //extensionContext.subscriptions.push(clipboardCutDisposable);\n\n //override the editor.action.clipboardPasteAction with our own\n clipboardPasteDisposable = vscode.commands.registerTextEditorCommand('editor.action.clipboardPasteAction', overriddenClipboardPasteAction); \n //extensionContext.subscriptions.push(clipboardPasteDisposable);\n\n //indicate that storyteller is active\n isStorytellerCurrentlyActive = true;\n}", "function editor_event(objname,runDelay) {\r\n var config = document.all[objname].config;\r\n var editor_obj = document.all[\"_\" +objname+ \"_editor\"]; // html editor object\r\n if (runDelay == null) { runDelay = 0; }\r\n var editdoc;\r\n var editEvent = editor_obj.contentWindow ? editor_obj.contentWindow.event : event;\r\n\r\n // catch keypress events\r\n if (editEvent && editEvent.keyCode) {\r\n var ord = editEvent.keyCode; // ascii order of key pressed\r\n var ctrlKey = editEvent.ctrlKey;\r\n var altKey = editEvent.altKey;\r\n var shiftKey = editEvent.shiftKey;\r\n\r\n if (ord == 16) { return; } // ignore shift key by itself\r\n if (ord == 17) { return; } // ignore ctrl key by itself\r\n if (ord == 18) { return; } // ignore alt key by itself\r\n\r\n\r\n // cancel ENTER key and insert <BR> instead\r\n if (ord == 13 && editEvent.type == 'keypress') {\r\n editEvent.returnValue = false;\r\n editor_insertHTML(objname, \"<br/><return>\");\r\n return;\r\n }\r\n\r\n if (ctrlKey && (ord == 122 || ord == 90)) { // catch ctrl-z (UNDO)\r\n// TODO: Add our own undo/redo functionality\r\n// editEvent.cancelBubble = true;\r\n return;\r\n }\r\n if ((ctrlKey && (ord == 121 || ord == 89)) ||\r\n ctrlKey && shiftKey && (ord == 122 || ord == 90)) { // catch ctrl-y, ctrl-shift-z (REDO)\r\n// TODO: Add our own undo/redo functionality\r\n return;\r\n }\r\n }\r\n\r\n // setup timer for delayed updates (some events take time to complete)\r\n if (runDelay > 0) { return setTimeout(function(){ editor_event(objname); }, runDelay); }\r\n\r\n // don't execute more than 3 times a second (eg: too soon after last execution)\r\n if (this.tooSoon == 1 && runDelay >= 0) { this.queue = 1; return; } // queue all but urgent events\r\n this.tooSoon = 1;\r\n setTimeout(function(){\r\n this.tooSoon = 0;\r\n if (this.queue) { editor_event(objname,-1); };\r\n this.queue = 0;\r\n }, 333); // 1/3 second\r\n\r\n\r\n editor_updateOutput(objname);\r\n editor_updateToolbar(objname);\r\n\r\n}", "function remove_eventhandlers(curr) {\n\t\n\t\t curr.off('mousemove', function (ev) {\n\t\t\t handle_mousemove_on_content(ev);\n\t\t });\n\n\t\t curr.off('click', function (ev) {\n\t\t handle_mouseclick_on_content(ev);\n\t\t });\t\n\t\n\t\t curr.off('mouseleave', function (ev) {\n\t\t handle_mouseleave_from_content(ev);\n\t\t });\n\t\t\n\t\t curr.off('mouseenter', function (ev) {\n\t\t \thandle_mouseenter_on_content (ev);\n\t\t });\n\t}", "function PrepareDefaultEventHandlers() {\r\n $(\":text\").focus(textboxHighlight).blur(textboxRemoveHighlight);\r\n $(\":password\").focus(textboxHighlight).blur(textboxRemoveHighlight);\r\n $(\"textarea\").focus(textboxHighlight).blur(textboxRemoveHighlight);\r\n }", "_initEvent() {\n this.cm.getWrapperElement().addEventListener('click', () => {\n this.eventManager.emit('click', {\n source: 'markdown'\n });\n });\n\n this.cm.on('beforeChange', (cm, ev) => {\n if (ev.origin === 'paste') {\n this.eventManager.emit('pasteBefore', {\n source: 'markdown',\n data: ev\n });\n }\n });\n\n this.cm.on('change', (cm, cmEvent) => {\n this._refreshCodeMirrorMarks(cmEvent);\n this._emitMarkdownEditorChangeEvent(cmEvent);\n });\n\n this.cm.on('focus', () => {\n this.eventManager.emit('focus', {\n source: 'markdown'\n });\n });\n\n this.cm.on('blur', () => {\n this.eventManager.emit('blur', {\n source: 'markdown'\n });\n });\n\n this.cm.on('scroll', (cm, eventData) => {\n this.eventManager.emit('scroll', {\n source: 'markdown',\n data: eventData\n });\n });\n\n this.cm.on('keydown', (cm, keyboardEvent) => {\n this.eventManager.emit('keydown', {\n source: 'markdown',\n data: keyboardEvent\n });\n\n this.eventManager.emit('keyMap', {\n source: 'markdown',\n keyMap: keyMapper.convert(keyboardEvent),\n data: keyboardEvent\n });\n });\n\n this.cm.on('keyup', (cm, keyboardEvent) => {\n this.eventManager.emit('keyup', {\n source: 'markdown',\n data: keyboardEvent\n });\n });\n\n this.cm.on('copy', (cm, ev) => {\n this.eventManager.emit('copy', {\n source: 'markdown',\n data: ev\n });\n });\n\n this.cm.on('cut', (cm, ev) => {\n this.eventManager.emit('cut', {\n source: 'markdown',\n data: ev\n });\n });\n\n this.cm.on('paste', (cm, clipboardEvent) => {\n this.eventManager.emit('paste', {\n source: 'markdown',\n data: clipboardEvent\n });\n });\n\n this.cm.on('drop', (cm, eventData) => {\n eventData.preventDefault();\n\n this.eventManager.emit('drop', {\n source: 'markdown',\n data: eventData\n });\n });\n\n this.cm.on('cursorActivity', () => this._onChangeCursorActivity());\n }", "function registerEventHandlers(cm) {\r\n var d = cm.display;\r\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\r\n // Older IE's will not fire a second mousedown for a double click\r\n if (ie && ie_version < 11)\r\n on(d.scroller, \"dblclick\", operation(cm, function(e) {\r\n if (signalDOMEvent(cm, e)) return;\r\n var pos = posFromMouse(cm, e);\r\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;\r\n e_preventDefault(e);\r\n var word = findWordAt(cm, pos);\r\n extendSelection(cm.doc, word.anchor, word.head);\r\n }));\r\n else\r\n on(d.scroller, \"dblclick\", function(e) { signalDOMEvent(cm, e) || e_preventDefault(e); });\r\n // Prevent normal selection in the editor (we handle our own)\r\n on(d.lineSpace, \"selectstart\", function(e) {\r\n if (!eventInWidget(d, e)) e_preventDefault(e);\r\n });\r\n // Some browsers fire contextmenu *after* opening the menu, at\r\n // which point we can't mess with it anymore. Context menu is\r\n // handled in onMouseDown for these browsers.\r\n if (!captureRightClick) on(d.scroller, \"contextmenu\", function(e) {onContextMenu(cm, e);});\r\n\r\n // Sync scrolling between fake scrollbars and real scrollable\r\n // area, ensure viewport is updated when scrolling.\r\n on(d.scroller, \"scroll\", function() {\r\n if (d.scroller.clientHeight) {\r\n setScrollTop(cm, d.scroller.scrollTop);\r\n setScrollLeft(cm, d.scroller.scrollLeft, true);\r\n signal(cm, \"scroll\", cm);\r\n }\r\n });\r\n on(d.scrollbarV, \"scroll\", function() {\r\n if (d.scroller.clientHeight) setScrollTop(cm, d.scrollbarV.scrollTop);\r\n });\r\n on(d.scrollbarH, \"scroll\", function() {\r\n if (d.scroller.clientHeight) setScrollLeft(cm, d.scrollbarH.scrollLeft);\r\n });\r\n\r\n // Listen to wheel events in order to try and update the viewport on time.\r\n on(d.scroller, \"mousewheel\", function(e){onScrollWheel(cm, e);});\r\n on(d.scroller, \"DOMMouseScroll\", function(e){onScrollWheel(cm, e);});\r\n\r\n // Prevent clicks in the scrollbars from killing focus\r\n function reFocus() { if (cm.state.focused) setTimeout(bind(focusInput, cm), 0); }\r\n on(d.scrollbarH, \"mousedown\", reFocus);\r\n on(d.scrollbarV, \"mousedown\", reFocus);\r\n // Prevent wrapper from ever scrolling\r\n on(d.wrapper, \"scroll\", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\r\n\r\n on(d.input, \"keyup\", function(e) { onKeyUp.call(cm, e); });\r\n on(d.input, \"input\", function() {\r\n if (ie && ie_version >= 9 && cm.display.inputHasSelection) cm.display.inputHasSelection = null;\r\n fastPoll(cm);\r\n });\r\n on(d.input, \"keydown\", operation(cm, onKeyDown));\r\n on(d.input, \"keypress\", operation(cm, onKeyPress));\r\n on(d.input, \"focus\", bind(onFocus, cm));\r\n on(d.input, \"blur\", bind(onBlur, cm));\r\n\r\n function drag_(e) {\r\n if (!signalDOMEvent(cm, e)) e_stop(e);\r\n }\r\n if (cm.options.dragDrop) {\r\n on(d.scroller, \"dragstart\", function(e){onDragStart(cm, e);});\r\n on(d.scroller, \"dragenter\", drag_);\r\n on(d.scroller, \"dragover\", drag_);\r\n on(d.scroller, \"drop\", operation(cm, onDrop));\r\n }\r\n on(d.scroller, \"paste\", function(e) {\r\n if (eventInWidget(d, e)) return;\r\n cm.state.pasteIncoming = true;\r\n focusInput(cm);\r\n fastPoll(cm);\r\n });\r\n on(d.input, \"paste\", function() {\r\n // Workaround for webkit bug https://bugs.webkit.org/show_bug.cgi?id=90206\r\n // Add a char to the end of textarea before paste occur so that\r\n // selection doesn't span to the end of textarea.\r\n if (webkit && !cm.state.fakedLastChar && !(new Date - cm.state.lastMiddleDown < 200)) {\r\n var start = d.input.selectionStart, end = d.input.selectionEnd;\r\n d.input.value += \"$\";\r\n // The selection end needs to be set before the start, otherwise there\r\n // can be an intermediate non-empty selection between the two, which\r\n // can override the middle-click paste buffer on linux and cause the\r\n // wrong thing to get pasted.\r\n d.input.selectionEnd = end;\r\n d.input.selectionStart = start;\r\n cm.state.fakedLastChar = true;\r\n }\r\n cm.state.pasteIncoming = true;\r\n fastPoll(cm);\r\n });\r\n\r\n function prepareCopyCut(e) {\r\n if (cm.somethingSelected()) {\r\n lastCopied = cm.getSelections();\r\n if (d.inaccurateSelection) {\r\n d.prevInput = \"\";\r\n d.inaccurateSelection = false;\r\n d.input.value = lastCopied.join(\"\\n\");\r\n selectInput(d.input);\r\n }\r\n } else {\r\n var text = [], ranges = [];\r\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\r\n var line = cm.doc.sel.ranges[i].head.line;\r\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\r\n ranges.push(lineRange);\r\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\r\n }\r\n if (e.type == \"cut\") {\r\n cm.setSelections(ranges, null, sel_dontScroll);\r\n } else {\r\n d.prevInput = \"\";\r\n d.input.value = text.join(\"\\n\");\r\n selectInput(d.input);\r\n }\r\n lastCopied = text;\r\n }\r\n if (e.type == \"cut\") cm.state.cutIncoming = true;\r\n }\r\n on(d.input, \"cut\", prepareCopyCut);\r\n on(d.input, \"copy\", prepareCopyCut);\r\n\r\n // Needed to handle Tab key in KHTML\r\n if (khtml) on(d.sizer, \"mouseup\", function() {\r\n if (activeElt() == d.input) d.input.blur();\r\n focusInput(cm);\r\n });\r\n }", "function replaceEditor() {\r\n\t\treturn function () {\r\n\t\t\tvar editorInstance = CKEDITOR.replace(element, configObj);\r\n\t\t\tself.setEditorInstance(editorInstance);\r\n\t\t\t//See if we need to set the editor to mixed mode\r\n\t\t\teditorInstance.on('instanceReady', function () {\r\n\t\t\t\t//Perform any cleanup once the editor has been created.\r\n\t\t\t\tself.postEditorCleanup();\r\n\t\t\t\t//If we instantiated CKEditor on top of mixed content.. the editor alters content\r\n\t\t\t\t//We have to reset the content\r\n\t\t\t\t//Set the ddfreetext areas to be editable and apply css classes to top and bottom\r\n\t\t\t\tif (self.hasMixedContent()) {\r\n\t\t\t\t\teditorInstance.setData(self.getDocumentationContent());\r\n\t\t\t\t\tvar $freetextAreas = $(editorInstance.editable().$).find('.ddfreetext');\r\n\t\t\t\t\t$freetextAreas.attr('contenteditable', 'true');\r\n\t\t\t\t\teditorInstance.saveEditorSnapshot();\r\n\t\t\t\t\tself.enableMixedContent();\r\n\t\t\t\t\t$(editorInstance.editable().$).attr(\"ddactive\", true);\r\n\t\t\t\t\teditorInstance.fire('updateStructuredContent');\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tself.injectFreeTextElement();\r\n\t\t\t\t}\r\n\t\t\t\tif (self.isEmrEnabled()){\r\n\t\t\t\t\tself.updateEMRContent();\r\n\t\t\t\t}\r\n\t\t\t\t//After we have made all these changes, make sure to reset the undo stack. (undoing immediately could\r\n\t\t\t\t//cause severe DOM corruption).\r\n\t\t\t\teditorInstance.resetUndo();\r\n\t\t\t\t//Ensure that undo can properly go back to current state\r\n\t\t\t\tvar cernundo = editorInstance.plugins.cernundo;\r\n\t\t\t\tcernundo.handleBaseSnapshot(editorInstance);\r\n\t\t\t\t//If structure is enabled, enable the header toggle. The toggle was disabled until the editor instance\r\n\t\t\t\t//was ready, at which point it is considered safe to switch views.\r\n\t\t\t\tif (self.getStructuredDocInd()) {\r\n\t\t\t\t\tself.enableHeaderToggle(DocumentationBaseComponent.VIEWS.STRUCTURE);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\teditorInstance.on('structureElementClicked', function(event) {\r\n\t\t\t\tif (event.data) {\r\n\t\t\t\t\tself.showStructuredView(event.data);\r\n\t\t\t\t\tself.captureNavigationTimer();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\teditorInstance.on('refreshStateChange', function(){\r\n\t\t\t\tif(editorInstance.refreshState === 'stable'){\r\n\t\t\t\t\tself.postEMRRefresh();\r\n\t\t\t\t}\r\n\t\t\t\t// Disable refreshing when refresh starts, enable after ending\r\n\t\t\t\tself.updateSaveButton();\r\n\t\t\t});\r\n\t\t\teditorInstance.on('refreshEmrFail', function(event) {\r\n\t\t\t\t//Display error message if emr refresh fails\r\n\t\t\t\tself.displayEMRError();\r\n\t\t\t});\r\n\t\t\teditorInstance.on('afterddremovesection', function(){\r\n\t\t\t\t//Update styling after removing sections\r\n\t\t\t\tself.handleEmptySections();\r\n\t\t\t});\r\n\r\n\t\t};\r\n\t}", "addContentChangeHandler() {\n\t\tfunction snapshotDiff(self) {\n\t\t\tvar newText = self.editor.getValue();\n\t\t\tvar timestamp = new Date().getTime();\n\n\t\t\tif (self.curText != newText) {\n\t\t\t\t/*\n\t\t\t\tThe two key function calls here are diff_main followed by diff_toDelta\n\t\t\t\tEach 'd' field is in the following format:\n\t\t\t\thttp://downloads.jahia.com/downloads/jahia/jahia6.6.1/jahia-root-6.6.1.0-aggregate-javadoc/name/fraser/neil/plaintext/DiffMatchPatch.html#diff_toDelta(java.util.LinkedList)\n\t\t\t\tCrush the diff into an encoded string which describes the operations\n\t\t\t\trequired to transform text1 into text2. E.g. =3\\t-2\\t+ing -> Keep 3\n\t\t\t\tchars, delete 2 chars, insert 'ing'. Operations are tab-separated.\n\t\t\t\tInserted text is escaped using %xx notation.\n\t\t\t\t*/\n\t\t\t\tvar delta = {\n\t\t\t\t\tt: timestamp,\n\t\t\t\t\td: self.dmp.diff_toDelta(self.dmp.diff_main(self.curText, newText))\n\t\t\t\t};\n\t\t\t\tself.sendCodeEditSaveRequest(delta);\n\n\t\t\t\t// self.menuClickID is set when any testcase link is clicked\n\t\t\t\tif (self.menuClickID.checkpoint > -1 && self.menuClickID.testcase > -1) {\n\t\t\t\t\tself.handleRunRequest(RUN_TEST_COMMAND, self.menuClickID.checkpoint, self.menuClickID.testcase);\n\t\t\t\t}\n\t\t\t\tself.curText = newText;\n\t\t \t}\n\t\t}\n\n\t\tthis.editor.on('change', (e) => {\n\t\t\t// Remove the syntax error squiggly lines\n\t\t\tthis.removeMarkersInEditorSelection();\n\n\t\t\t// Remove syntax error gutter highlights\n\t\t\tthis.removeErrorGutterHighlights();\n\n\t\t\t// Remove comment gutter highlights\n\t\t\tthis.removeCommentGutterHighlights();\n\n\t\t\t// Debouncing and auto saving\n\t\t\tif (this.DEBOUNCE_MS > 0) {\n\t\t\t\t$.doTimeout('editorChange', this.DEBOUNCE_MS, () => { snapshotDiff(this); });\n\t\t\t} else {\n\t\t\t\tsnapshotDiff(this);\n\t\t\t}\n\t\t});\n\t}", "async _onReady() {\n // Make the editor \"complex.\" This \"fluffs\" out the DOM and makes the\n // salient controller objects.\n this._editorComplex =\n new EditorComplex(this._sessionKey, this._window, this._editorNode);\n\n await this._editorComplex.whenReady();\n this._recoverySetup();\n }", "function addEditorMethods(CodeMirror) {\n\t\t var optionHandlers = CodeMirror.optionHandlers;\n\n\t\t var helpers = CodeMirror.helpers = {};\n\n\t\t CodeMirror.prototype = {\n\t\t constructor: CodeMirror,\n\t\t focus: function(){win(this).focus(); this.display.input.focus();},\n\n\t\t setOption: function(option, value) {\n\t\t var options = this.options, old = options[option];\n\t\t if (options[option] == value && option != \"mode\") { return }\n\t\t options[option] = value;\n\t\t if (optionHandlers.hasOwnProperty(option))\n\t\t { operation(this, optionHandlers[option])(this, value, old); }\n\t\t signal(this, \"optionChange\", this, option);\n\t\t },\n\n\t\t getOption: function(option) {return this.options[option]},\n\t\t getDoc: function() {return this.doc},\n\n\t\t addKeyMap: function(map, bottom) {\n\t\t this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n\t\t },\n\t\t removeKeyMap: function(map) {\n\t\t var maps = this.state.keyMaps;\n\t\t for (var i = 0; i < maps.length; ++i)\n\t\t { if (maps[i] == map || maps[i].name == map) {\n\t\t maps.splice(i, 1);\n\t\t return true\n\t\t } }\n\t\t },\n\n\t\t addOverlay: methodOp(function(spec, options) {\n\t\t var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n\t\t if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n\t\t insertSorted(this.state.overlays,\n\t\t {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n\t\t priority: (options && options.priority) || 0},\n\t\t function (overlay) { return overlay.priority; });\n\t\t this.state.modeGen++;\n\t\t regChange(this);\n\t\t }),\n\t\t removeOverlay: methodOp(function(spec) {\n\t\t var overlays = this.state.overlays;\n\t\t for (var i = 0; i < overlays.length; ++i) {\n\t\t var cur = overlays[i].modeSpec;\n\t\t if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n\t\t overlays.splice(i, 1);\n\t\t this.state.modeGen++;\n\t\t regChange(this);\n\t\t return\n\t\t }\n\t\t }\n\t\t }),\n\n\t\t indentLine: methodOp(function(n, dir, aggressive) {\n\t\t if (typeof dir != \"string\" && typeof dir != \"number\") {\n\t\t if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n\t\t else { dir = dir ? \"add\" : \"subtract\"; }\n\t\t }\n\t\t if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n\t\t }),\n\t\t indentSelection: methodOp(function(how) {\n\t\t var ranges = this.doc.sel.ranges, end = -1;\n\t\t for (var i = 0; i < ranges.length; i++) {\n\t\t var range = ranges[i];\n\t\t if (!range.empty()) {\n\t\t var from = range.from(), to = range.to();\n\t\t var start = Math.max(end, from.line);\n\t\t end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n\t\t for (var j = start; j < end; ++j)\n\t\t { indentLine(this, j, how); }\n\t\t var newRanges = this.doc.sel.ranges;\n\t\t if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n\t\t { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n\t\t } else if (range.head.line > end) {\n\t\t indentLine(this, range.head.line, how, true);\n\t\t end = range.head.line;\n\t\t if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n\t\t }\n\t\t }\n\t\t }),\n\n\t\t // Fetch the parser token for a given character. Useful for hacks\n\t\t // that want to inspect the mode state (say, for completion).\n\t\t getTokenAt: function(pos, precise) {\n\t\t return takeToken(this, pos, precise)\n\t\t },\n\n\t\t getLineTokens: function(line, precise) {\n\t\t return takeToken(this, Pos(line), precise, true)\n\t\t },\n\n\t\t getTokenTypeAt: function(pos) {\n\t\t pos = clipPos(this.doc, pos);\n\t\t var styles = getLineStyles(this, getLine(this.doc, pos.line));\n\t\t var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n\t\t var type;\n\t\t if (ch == 0) { type = styles[2]; }\n\t\t else { for (;;) {\n\t\t var mid = (before + after) >> 1;\n\t\t if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n\t\t else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n\t\t else { type = styles[mid * 2 + 2]; break }\n\t\t } }\n\t\t var cut = type ? type.indexOf(\"overlay \") : -1;\n\t\t return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n\t\t },\n\n\t\t getModeAt: function(pos) {\n\t\t var mode = this.doc.mode;\n\t\t if (!mode.innerMode) { return mode }\n\t\t return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n\t\t },\n\n\t\t getHelper: function(pos, type) {\n\t\t return this.getHelpers(pos, type)[0]\n\t\t },\n\n\t\t getHelpers: function(pos, type) {\n\t\t var found = [];\n\t\t if (!helpers.hasOwnProperty(type)) { return found }\n\t\t var help = helpers[type], mode = this.getModeAt(pos);\n\t\t if (typeof mode[type] == \"string\") {\n\t\t if (help[mode[type]]) { found.push(help[mode[type]]); }\n\t\t } else if (mode[type]) {\n\t\t for (var i = 0; i < mode[type].length; i++) {\n\t\t var val = help[mode[type][i]];\n\t\t if (val) { found.push(val); }\n\t\t }\n\t\t } else if (mode.helperType && help[mode.helperType]) {\n\t\t found.push(help[mode.helperType]);\n\t\t } else if (help[mode.name]) {\n\t\t found.push(help[mode.name]);\n\t\t }\n\t\t for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n\t\t var cur = help._global[i$1];\n\t\t if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n\t\t { found.push(cur.val); }\n\t\t }\n\t\t return found\n\t\t },\n\n\t\t getStateAfter: function(line, precise) {\n\t\t var doc = this.doc;\n\t\t line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n\t\t return getContextBefore(this, line + 1, precise).state\n\t\t },\n\n\t\t cursorCoords: function(start, mode) {\n\t\t var pos, range = this.doc.sel.primary();\n\t\t if (start == null) { pos = range.head; }\n\t\t else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n\t\t else { pos = start ? range.from() : range.to(); }\n\t\t return cursorCoords(this, pos, mode || \"page\")\n\t\t },\n\n\t\t charCoords: function(pos, mode) {\n\t\t return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n\t\t },\n\n\t\t coordsChar: function(coords, mode) {\n\t\t coords = fromCoordSystem(this, coords, mode || \"page\");\n\t\t return coordsChar(this, coords.left, coords.top)\n\t\t },\n\n\t\t lineAtHeight: function(height, mode) {\n\t\t height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n\t\t return lineAtHeight(this.doc, height + this.display.viewOffset)\n\t\t },\n\t\t heightAtLine: function(line, mode, includeWidgets) {\n\t\t var end = false, lineObj;\n\t\t if (typeof line == \"number\") {\n\t\t var last = this.doc.first + this.doc.size - 1;\n\t\t if (line < this.doc.first) { line = this.doc.first; }\n\t\t else if (line > last) { line = last; end = true; }\n\t\t lineObj = getLine(this.doc, line);\n\t\t } else {\n\t\t lineObj = line;\n\t\t }\n\t\t return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n\t\t (end ? this.doc.height - heightAtLine(lineObj) : 0)\n\t\t },\n\n\t\t defaultTextHeight: function() { return textHeight(this.display) },\n\t\t defaultCharWidth: function() { return charWidth(this.display) },\n\n\t\t getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n\t\t addWidget: function(pos, node, scroll, vert, horiz) {\n\t\t var display = this.display;\n\t\t pos = cursorCoords(this, clipPos(this.doc, pos));\n\t\t var top = pos.bottom, left = pos.left;\n\t\t node.style.position = \"absolute\";\n\t\t node.setAttribute(\"cm-ignore-events\", \"true\");\n\t\t this.display.input.setUneditable(node);\n\t\t display.sizer.appendChild(node);\n\t\t if (vert == \"over\") {\n\t\t top = pos.top;\n\t\t } else if (vert == \"above\" || vert == \"near\") {\n\t\t var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n\t\t hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n\t\t // Default to positioning above (if specified and possible); otherwise default to positioning below\n\t\t if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n\t\t { top = pos.top - node.offsetHeight; }\n\t\t else if (pos.bottom + node.offsetHeight <= vspace)\n\t\t { top = pos.bottom; }\n\t\t if (left + node.offsetWidth > hspace)\n\t\t { left = hspace - node.offsetWidth; }\n\t\t }\n\t\t node.style.top = top + \"px\";\n\t\t node.style.left = node.style.right = \"\";\n\t\t if (horiz == \"right\") {\n\t\t left = display.sizer.clientWidth - node.offsetWidth;\n\t\t node.style.right = \"0px\";\n\t\t } else {\n\t\t if (horiz == \"left\") { left = 0; }\n\t\t else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n\t\t node.style.left = left + \"px\";\n\t\t }\n\t\t if (scroll)\n\t\t { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n\t\t },\n\n\t\t triggerOnKeyDown: methodOp(onKeyDown),\n\t\t triggerOnKeyPress: methodOp(onKeyPress),\n\t\t triggerOnKeyUp: onKeyUp,\n\t\t triggerOnMouseDown: methodOp(onMouseDown),\n\n\t\t execCommand: function(cmd) {\n\t\t if (commands.hasOwnProperty(cmd))\n\t\t { return commands[cmd].call(null, this) }\n\t\t },\n\n\t\t triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n\t\t findPosH: function(from, amount, unit, visually) {\n\t\t var dir = 1;\n\t\t if (amount < 0) { dir = -1; amount = -amount; }\n\t\t var cur = clipPos(this.doc, from);\n\t\t for (var i = 0; i < amount; ++i) {\n\t\t cur = findPosH(this.doc, cur, dir, unit, visually);\n\t\t if (cur.hitSide) { break }\n\t\t }\n\t\t return cur\n\t\t },\n\n\t\t moveH: methodOp(function(dir, unit) {\n\t\t var this$1$1 = this;\n\n\t\t this.extendSelectionsBy(function (range) {\n\t\t if (this$1$1.display.shift || this$1$1.doc.extend || range.empty())\n\t\t { return findPosH(this$1$1.doc, range.head, dir, unit, this$1$1.options.rtlMoveVisually) }\n\t\t else\n\t\t { return dir < 0 ? range.from() : range.to() }\n\t\t }, sel_move);\n\t\t }),\n\n\t\t deleteH: methodOp(function(dir, unit) {\n\t\t var sel = this.doc.sel, doc = this.doc;\n\t\t if (sel.somethingSelected())\n\t\t { doc.replaceSelection(\"\", null, \"+delete\"); }\n\t\t else\n\t\t { deleteNearSelection(this, function (range) {\n\t\t var other = findPosH(doc, range.head, dir, unit, false);\n\t\t return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n\t\t }); }\n\t\t }),\n\n\t\t findPosV: function(from, amount, unit, goalColumn) {\n\t\t var dir = 1, x = goalColumn;\n\t\t if (amount < 0) { dir = -1; amount = -amount; }\n\t\t var cur = clipPos(this.doc, from);\n\t\t for (var i = 0; i < amount; ++i) {\n\t\t var coords = cursorCoords(this, cur, \"div\");\n\t\t if (x == null) { x = coords.left; }\n\t\t else { coords.left = x; }\n\t\t cur = findPosV(this, coords, dir, unit);\n\t\t if (cur.hitSide) { break }\n\t\t }\n\t\t return cur\n\t\t },\n\n\t\t moveV: methodOp(function(dir, unit) {\n\t\t var this$1$1 = this;\n\n\t\t var doc = this.doc, goals = [];\n\t\t var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n\t\t doc.extendSelectionsBy(function (range) {\n\t\t if (collapse)\n\t\t { return dir < 0 ? range.from() : range.to() }\n\t\t var headPos = cursorCoords(this$1$1, range.head, \"div\");\n\t\t if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n\t\t goals.push(headPos.left);\n\t\t var pos = findPosV(this$1$1, headPos, dir, unit);\n\t\t if (unit == \"page\" && range == doc.sel.primary())\n\t\t { addToScrollTop(this$1$1, charCoords(this$1$1, pos, \"div\").top - headPos.top); }\n\t\t return pos\n\t\t }, sel_move);\n\t\t if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n\t\t { doc.sel.ranges[i].goalColumn = goals[i]; } }\n\t\t }),\n\n\t\t // Find the word at the given position (as returned by coordsChar).\n\t\t findWordAt: function(pos) {\n\t\t var doc = this.doc, line = getLine(doc, pos.line).text;\n\t\t var start = pos.ch, end = pos.ch;\n\t\t if (line) {\n\t\t var helper = this.getHelper(pos, \"wordChars\");\n\t\t if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n\t\t var startChar = line.charAt(start);\n\t\t var check = isWordChar(startChar, helper)\n\t\t ? function (ch) { return isWordChar(ch, helper); }\n\t\t : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n\t\t : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n\t\t while (start > 0 && check(line.charAt(start - 1))) { --start; }\n\t\t while (end < line.length && check(line.charAt(end))) { ++end; }\n\t\t }\n\t\t return new Range(Pos(pos.line, start), Pos(pos.line, end))\n\t\t },\n\n\t\t toggleOverwrite: function(value) {\n\t\t if (value != null && value == this.state.overwrite) { return }\n\t\t if (this.state.overwrite = !this.state.overwrite)\n\t\t { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\t\t else\n\t\t { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n\t\t signal(this, \"overwriteToggle\", this, this.state.overwrite);\n\t\t },\n\t\t hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n\t\t isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n\t\t scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n\t\t getScrollInfo: function() {\n\t\t var scroller = this.display.scroller;\n\t\t return {left: scroller.scrollLeft, top: scroller.scrollTop,\n\t\t height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n\t\t width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n\t\t clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n\t\t },\n\n\t\t scrollIntoView: methodOp(function(range, margin) {\n\t\t if (range == null) {\n\t\t range = {from: this.doc.sel.primary().head, to: null};\n\t\t if (margin == null) { margin = this.options.cursorScrollMargin; }\n\t\t } else if (typeof range == \"number\") {\n\t\t range = {from: Pos(range, 0), to: null};\n\t\t } else if (range.from == null) {\n\t\t range = {from: range, to: null};\n\t\t }\n\t\t if (!range.to) { range.to = range.from; }\n\t\t range.margin = margin || 0;\n\n\t\t if (range.from.line != null) {\n\t\t scrollToRange(this, range);\n\t\t } else {\n\t\t scrollToCoordsRange(this, range.from, range.to, range.margin);\n\t\t }\n\t\t }),\n\n\t\t setSize: methodOp(function(width, height) {\n\t\t var this$1$1 = this;\n\n\t\t var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n\t\t if (width != null) { this.display.wrapper.style.width = interpret(width); }\n\t\t if (height != null) { this.display.wrapper.style.height = interpret(height); }\n\t\t if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n\t\t var lineNo = this.display.viewFrom;\n\t\t this.doc.iter(lineNo, this.display.viewTo, function (line) {\n\t\t if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n\t\t { if (line.widgets[i].noHScroll) { regLineChange(this$1$1, lineNo, \"widget\"); break } } }\n\t\t ++lineNo;\n\t\t });\n\t\t this.curOp.forceUpdate = true;\n\t\t signal(this, \"refresh\", this);\n\t\t }),\n\n\t\t operation: function(f){return runInOp(this, f)},\n\t\t startOperation: function(){return startOperation(this)},\n\t\t endOperation: function(){return endOperation(this)},\n\n\t\t refresh: methodOp(function() {\n\t\t var oldHeight = this.display.cachedTextHeight;\n\t\t regChange(this);\n\t\t this.curOp.forceUpdate = true;\n\t\t clearCaches(this);\n\t\t scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n\t\t updateGutterSpace(this.display);\n\t\t if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n\t\t { estimateLineHeights(this); }\n\t\t signal(this, \"refresh\", this);\n\t\t }),\n\n\t\t swapDoc: methodOp(function(doc) {\n\t\t var old = this.doc;\n\t\t old.cm = null;\n\t\t // Cancel the current text selection if any (#5821)\n\t\t if (this.state.selectingText) { this.state.selectingText(); }\n\t\t attachDoc(this, doc);\n\t\t clearCaches(this);\n\t\t this.display.input.reset();\n\t\t scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n\t\t this.curOp.forceScroll = true;\n\t\t signalLater(this, \"swapDoc\", this, old);\n\t\t return old\n\t\t }),\n\n\t\t phrase: function(phraseText) {\n\t\t var phrases = this.options.phrases;\n\t\t return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n\t\t },\n\n\t\t getInputField: function(){return this.display.input.getField()},\n\t\t getWrapperElement: function(){return this.display.wrapper},\n\t\t getScrollerElement: function(){return this.display.scroller},\n\t\t getGutterElement: function(){return this.display.gutters}\n\t\t };\n\t\t eventMixin(CodeMirror);\n\n\t\t CodeMirror.registerHelper = function(type, name, value) {\n\t\t if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n\t\t helpers[type][name] = value;\n\t\t };\n\t\t CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n\t\t CodeMirror.registerHelper(type, name, value);\n\t\t helpers[type]._global.push({pred: predicate, val: value});\n\t\t };\n\t\t }", "async _onReady() {\n // Make the editor \"complex.\" This \"fluffs\" out the DOM and makes the\n // salient controller objects.\n this._editorComplex =\n new EditorComplex(this._sessionInfo, this._window, this._editorNode);\n\n await this._editorComplex.whenReady();\n this._recoverySetup();\n }", "function handleEditorUpdate() {\n if (updateTimerRef) {\n clearTimeout(updateTimerRef);\n }\n updateTimerRef = setTimeout(refreshRenderContent, timeBeforeEditorUpdate);\n}", "_registerHandlers(target, becameInvalid, becameValid) {\n this.on('becameInvalid', target, becameInvalid);\n this.on('becameValid', target, becameValid);\n }", "function updateQuillEditorListeners() {\n _.each(document.querySelectorAll('.slide-edit-lock'), function (el) {\n el.addEventListener('click', enableQuillEditor, false);\n });\n}", "function initEditors(ids) {\n initializeIntersectionObserver()\n\n ids.forEach((id) => {\n const editorId = `tinymce_${id}`\n const textarea = document.getElementById(editorId)\n\n if (textarea) {\n tinymceIntersectionObserver.observe(textarea)\n } else {\n console.warn(`Could not initialize TinyMCE for textarea#${editorId}!`)\n }\n })\n}", "constructor(options) {\n this._cleared = new Signal(this);\n this._disposed = new Signal(this);\n this._editor = null;\n this._inspected = new Signal(this);\n this._isDisposed = false;\n this._pending = 0;\n this._standby = true;\n this._connector = options.connector;\n this._rendermime = options.rendermime;\n this._debouncer = new Debouncer(this.onEditorChange.bind(this), 250);\n }", "load()\n {\n this.replaceTextArea();\n this.createCustomButtons();\n if (this.config.CKEditor.editorData !== undefined) {\n this.oEditor.setData(this.config.CKEditor.editorData);\n }\n if (this.config.RichFilemanager !== undefined) {\n this.editor.on('dialogDefinition', (event) => {this.connectRichFilemanager(event);});\n }\n }", "function attachHandlers () {\n // Custom color input field handler\n $('.custom-color').on('keyup change', function(e) {\n var colorHex = e.target.value,\n colorGex = /^([A-Fa-f0-9]{6})$/;\n\n if (colorGex.test(colorHex)) {\n $(this).siblings('.color-preview').css('background-color', ('#' + colorHex));\n clonedColors[$(this).data('target')] = '#' + colorHex;\n reRenderPreview(clonedColors);\n }\n });\n\n // Toggle link to show or hide customization options\n $('#customization-toggle').on('click', function() {\n $('.customization').toggle();\n $(previewContainer).toggle();\n\n var $this = $(this),\n isVisible = $('.customization').is(':visible'),\n statusTextNode = $this.children('.customization-status'),\n customColorField = $('.custom-color'),\n colorPreview = $('.color-preview');\n\n statusTextNode.text(isVisible ? 'Hide' : 'Show');\n\n initialize();\n reRenderPreview(colors);\n });\n\n // Handler on preset color theme click\n $('.theme').on('mousedown', function(e) {\n $('.custom-color').val(e.target.dataset.color.substr(1));\n $('.custom-color').trigger('change');\n });\n }", "disconnectedCallback(){super.disconnectedCallback();let root=this;document.removeEventListener(\"selectionchange\",e=>{root.range=root.getRange()});document.removeEventListener(\"select-rich-text-editor-editor\",e=>{root._editorChange(e)});document.removeEventListener(\"deselect-rich-text-editor-editor\",e=>{root._editorChange(e)})}", "updateEditor() {\n if (typeof this.engine !== 'undefined') {\n this.engine.process(this.editor.toJSON());\n }\n }", "function attachWorkflowEditorEvents()\n {\n //Bind Save event\n $(\"#perc-wf-save\").off(\"click\").on(\"click\", function(evt)\n {\n saveNewWorkflow();\n });\n\n //Bind Cancel event\n $(\"#perc-wf-cancel, #perc-wf-update-cancel\").off(\"click\").on(\"click\", function(evt)\n {\n cancel();\n });\n\n //Bind Edit event\n\t\t\t$(\"#perc-wf-edit\").off(\"keydown\").on(\"keydown\", function(eventHandler)\n {\n if(eventHandler.code == \"Enter\" || eventHandler.code == \"Space\"){\n\t\t\t\tdocument.activeElement.click();\n\t\t\t}\n });\n $(\"#perc-wf-edit\").off(\"click\").on(\"click\", function(evt)\n {\n editWorkflow(evt);\n });\n\n //Bind Update event\n $(\"#perc-wf-update-save\").off(\"click\").on(\"click\", function(evt)\n {\n updateWorkflow();\n });\n }", "initEditor() {\n let savedCode = this.service.getCode(this.currentExo.method);\n if (savedCode)\n this.editor.setValue(savedCode);\n\n byId('editor').style.height = this.editorHeight + 'px';\n this.editor.resize();\n }", "function onEditorChange(editor, objSettings){\r\n\t\t\r\n\t\tvar objInput = editor.getElement();\r\n\t\tobjInput = jQuery(objInput);\r\n\t\tobjSettings.triggerKeyupEvent(objInput);\r\n\t}", "constructChangeListeners() {\n // TODO it would be best to remove the event listeners after they are fired\n // and then re-instantiate them after a new recipe loads\n\n // Listener for the editor itself\n this.qEditor.on('text-change', () => {\n this.edited = true\n })\n\n // Listener for the tagInput add and remove events\n // FIXME it does not appear that the .offs are working for these\n this.tagInput.on('add', () => {\n this.edited = true\n })\n\n this.tagInput.on('remove', () => {\n this.edited = true\n })\n\n // Listener for title change\n const titleDOM = document.getElementById('title')\n titleDOM.addEventListener('input', () => {this.edited=true})\n\n // Listener for make-soon button\n const makeSoon = document.getElementById('make-soon-box')\n makeSoon.addEventListener('change', (evt) => {\n const checked = evt.srcElement.checked\n this.edited = true\n if(checked) {\n this.makeSoon = true\n } else {\n this.makeSoon = false\n }\n })\n\n // Listener for Tried 'n' True button\n const tried = document.getElementById('tried-box')\n tried.addEventListener('change', (evt) => {\n const checked = evt.srcElement.checked\n this.edited = true\n if(checked) {\n this.triedNTrue = true\n } else {\n this.triedNTrue = false\n }\n })\n }", "function MozmillHandlers() {\n\n}", "function makeEditor(_ref) {var editorPluginsToRun = _ref.editorPluginsToRun;var\n\t Editor = function (_React$Component) {_inherits(Editor, _React$Component);\n\n\t function Editor(props, context) {_classCallCheck(this, Editor);var _this = _possibleConstructorReturn(this, (Editor.__proto__ || Object.getPrototypeOf(Editor)).call(this,\n\t props, context));_initialiseProps.call(_this);\n\t if (props.value) {\n\t _this.yaml = props.value;\n\t }\n\t _this.state = {\n\t editor: null,\n\t value: props.value || \"\" };\n\n\n\t // see https://gist.github.com/Restuta/e400a555ba24daa396cc\n\t _this.onClick = _this.onClick.bind(_this);return _this;\n\t }_createClass(Editor, [{ key: \"componentWillMount\", value: function componentWillMount()\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t {\n\t // add user agent info to document\n\t // allows our custom Editor styling for IE10 to take effect\n\t var doc = document.documentElement;\n\t doc.setAttribute(\"data-useragent\", navigator.userAgent);\n\t } }, { key: \"componentDidMount\", value: function componentDidMount()\n\n\t {\n\t // eslint-disable-next-line react/no-did-mount-set-state\n\t this.setState({ width: this.getWidth() });\n\t document.addEventListener(\"click\", this.onClick);\n\n\t if (this.props.markers) {\n\t this.updateMarkerAnnotations({ markers: this.props.markers }, { force: true });\n\t }\n\t } }, { key: \"componentWillReceiveProps\", value: function componentWillReceiveProps(\n\n\t nextProps) {var _this2 = this;var\n\t state = this.state;\n\t var hasChanged = function hasChanged(k) {return !(0, _eq2.default)(nextProps[k], _this2.props[k]);};\n\t var wasEmptyBefore = function wasEmptyBefore(k) {return nextProps[k] && (!_this2.props[k] || (0, _isEmpty2.default)(_this2.props[k]));};\n\n\t this.updateErrorAnnotations(nextProps);\n\t this.setReadOnlyOptions(nextProps);\n\t this.updateMarkerAnnotations(nextProps);\n\n\t if (state.editor && nextProps.goToLine && hasChanged(\"goToLine\")) {\n\t state.editor.gotoLine(nextProps.goToLine.line);\n\t }\n\n\t this.setState({\n\t shouldClearUndoStack: hasChanged(\"specId\") || wasEmptyBefore(\"value\") });\n\n\n\t } }, { key: \"shouldComponentUpdate\", value: function shouldComponentUpdate(\n\n\n\n\t nextProps) {\n\t var oriYaml = this.yaml;\n\t this.yaml = nextProps.value;\n\n\t return oriYaml !== nextProps.value;\n\t } }, { key: \"render\", value: function render()\n\n\t {var\n\t readOnly = this.props.readOnly;\n\t var value = this.yaml;\n\n\t return (\n\t _react2.default.createElement(_reactAce2.default, {\n\t value: value,\n\t mode: \"yaml\",\n\t theme: \"tomorrow_night_eighties\",\n\t onLoad: this.onLoad,\n\t onChange: this.onChange,\n\t name: \"ace-editor\",\n\t width: \"100%\",\n\t height: \"100%\",\n\t tabSize: 2,\n\t fontSize: 14,\n\t readOnly: readOnly,\n\t useSoftTabs: \"true\",\n\t wrapEnabled: true,\n\t editorProps: {\n\t \"display_indent_guides\": true,\n\t folding: \"markbeginandend\" },\n\n\t setOptions: {\n\t cursorStyle: \"smooth\",\n\t wrapBehavioursEnabled: true } }));\n\n\n\n\t } }, { key: \"componentDidUpdate\", value: function componentDidUpdate()\n\n\t {var _state =\n\t this.state,shouldClearUndoStack = _state.shouldClearUndoStack,editor = _state.editor;\n\n\t if (shouldClearUndoStack) {\n\t setTimeout(function () {\n\t editor.getSession().getUndoManager().reset();\n\t }, 100);\n\t }\n\n\t } }, { key: \"componentWillUnmount\", value: function componentWillUnmount()\n\n\t {\n\t document.removeEventListener(\"click\", this.onClick);\n\t } }]);return Editor;}(_react2.default.Component);var _initialiseProps = function _initialiseProps() {var _this3 = this;this.onChange = function (value) {// Set the value in state, now - so that we don't have lag\n\t _this3.setState({ value: value }); // Send it upstream\n\t _this3.props.onChange(value);};this.onLoad = function (editor) {var props = _this3.props,state = _this3.state;var AST = props.AST,specObject = props.specObject;var langTools = _brace2.default.acequire(\"ace/ext/language_tools\");state.editor = editor; // TODO: get editor out of state\n\t editor.getSession().setUseWrapMode(true);var session = editor.getSession();session.on(\"changeScrollLeft\", function (xPos) {// eslint-disable-line no-unused-vars\n\t session.setScrollLeft(0);});(0, _hook2.default)(editor, props, editorPluginsToRun || [], { langTools: langTools, AST: AST, specObject: specObject });editor.setHighlightActiveLine(false);editor.setHighlightActiveLine(true);};this.onResize = function () {var editor = _this3.state.editor;if (editor) {var session = editor.getSession();editor.resize();var wrapLimit = session.getWrapLimit();editor.setPrintMarginColumn(wrapLimit);}};this.onClick = function () {// onClick is deferred by 40ms, to give element resizes time to settle.\n\t setTimeout(function () {if (_this3.getWidth() !== _this3.state.width) {_this3.onResize();_this3.setState({ width: _this3.getWidth() });}}, 40);};this.getWidth = function () {var el = document.getElementById(\"editor-wrapper\");return el ? el.getBoundingClientRect().width : null;};this.updateErrorAnnotations = function (nextProps) {if (_this3.state.editor && nextProps.errors) {var editorAnnotations = nextProps.errors.toJS().map(function (err) {// Create annotation objects that ACE can use\n\t return { row: err.line - 1, column: 0, type: err.level, text: err.message };});_this3.state.editor.getSession().setAnnotations(editorAnnotations);}};this.setReadOnlyOptions = function (nextProps) {var state = _this3.state;if (nextProps.readOnly === true && state.editor) {state.editor.setOptions({ readOnly: true, highlightActiveLine: false, highlightGutterLine: false });} else if (state.editor) {state.editor.setOptions({ readOnly: false, highlightActiveLine: true, highlightGutterLine: true });}};this.updateMarkerAnnotations = function (nextProps) {var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},force = _ref2.force;var state = _this3.state;var onMarkerLineUpdate = nextProps.onMarkerLineUpdate;var size = function size(obj) {return Object.keys(obj).length;}; // FIXME: this is a hacky solution.\n\t // we should find a way to wait until the spec has been loaded into ACE.\n\t if (force === true || _this3.props.specId !== nextProps.specId || size(_this3.props.markers) !== size(nextProps.markers)) {setTimeout(_markerPlacer.placeMarkerDecorations.bind(null, { editor: state.editor, markers: nextProps.markers, onMarkerLineUpdate: onMarkerLineUpdate }), 300);}};this.yaml = this.yaml || \"\";};Editor.propTypes = { specId: _react.PropTypes.string, value: _react.PropTypes.string, onChange: _react.PropTypes.func,\n\t onMarkerLineUpdate: _react.PropTypes.func,\n\n\t readOnly: _react.PropTypes.bool,\n\n\t markers: _react.PropTypes.object,\n\t goToLine: _react.PropTypes.object,\n\t specObject: _react.PropTypes.object.isRequired,\n\n\t AST: _react.PropTypes.object.isRequired,\n\n\t errors: _reactImmutableProptypes2.default.list };\n\n\n\t Editor.defaultProps = {\n\t value: \"\",\n\t specId: \"--unknown--\",\n\t onChange: NOOP,\n\t onMarkerLineUpdate: NOOP,\n\t markers: {},\n\t readOnly: false,\n\t goToLine: {},\n\t errors: (0, _immutable.fromJS)([]) };\n\n\n\t return Editor;\n\t}", "function ckEditorContentChanged() {\r\n if (timer)\r\n return;\r\n\r\n timer = setTimeout(function() {\r\n timer = 0;\r\n self.fireEvent('contentChanged', self);\r\n }, 100);\r\n }", "_events() {\n \tthis._addKeyHandler();\n \tthis._addClickHandler();\n }", "function BaseEditor() { }", "function BaseEditor() { }", "function initEditor()\r\n{\r\n\t// Insert tab in the code box\r\n\t$('[name=\"data\"]').off('keydown').on('keydown', function (e)\r\n\t{\r\n\t\tif (e.keyCode == 9)\r\n\t\t{\r\n\t\t\tvar myValue = \"\\t\";\r\n\t\t\tvar startPos = this.selectionStart;\r\n\t\t\tvar endPos = this.selectionEnd;\r\n\t\t\tvar scrollTop = this.scrollTop;\r\n\r\n\t\t\tthis.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos,this.value.length);\r\n\t\t\tthis.focus();\r\n\t\t\tthis.selectionStart = startPos + myValue.length;\r\n\t\t\tthis.selectionEnd = startPos + myValue.length;\r\n\t\t\tthis.scrollTop = scrollTop;\r\n\r\n\t\t\te.preventDefault();\r\n\t\t}\r\n\t});\r\n\r\n\t// Tick the private checkbox if password is entered\r\n\t$('[name=\"password\"]').off('keyup').on('keyup', function()\r\n\t{\r\n\t\t$('[name=\"private\"]').attr('checked', $(this).val().length > 0);\r\n\t});\r\n}", "static createEditor(params) {\r\n\t\tDOM.createEditor(params);\r\n\t\tInit.editor = Getter.getEditor();\r\n\t\t\r\n\t\tswitch (mode) {\r\n\t\tcase 'balloon':\r\n\t\t\t/*create popup toolbar in balloon mode*/\r\n\t\t\tInit.createToolbar('swe-toolbar-pu', 'swe-none');\r\n\t\t\tInit.setShowingPopupToolbarEvents();\r\n\t\t\t/*set selectionEnd timer value*/\r\n\t\t\tInit.selectionEndTimer = null;\r\n\t\t\tbreak;\r\n\t\tcase 'classic':\r\n\t\tdefault:\r\n\t\t\t/*create fixed toolbar in balloon mode*/\r\n\t\t\tInit.createToolbar('swe-toolbar', params.sticky ? 'swe-toolbar-sticky' : null);\r\n\t\t\tDOM.createBottomPanel();\r\n\t\t\tInit.setEventListener(Init.editor, 'input', Init.setCountersValue);\r\n\t\t\tInit.setCountersValue();\r\n\t\t}\r\n\t\t/*highlight editors images on click*/\r\n\t\tInit.setEventListener(Init.editor, 'mousedown', Images.selectImageOnClick);\r\n\t\tInit.setEventListener(document, 'mousedown', Images.removeImageFrameOnOutsideClick);\t\t\r\n\t\t/*set textarea value on input*/\r\n\t\tInit.setEventListener(Init.editor, 'input', Init.setTextAreaValue);\r\n\t\t/*highlight buttons of toolbar that have the same style as selection*/\r\n\t\tInit.setEventListener(document, 'selectionchange', Init.highlightTheButtons);\r\n\t}", "function addListeners()\n\t{\n\t\t// Show page action so users can change settings\n\t\tchrome.runtime.sendMessage({request: \"showPageAction\"});\n\n\t\t// Add to editable divs, textareas, inputs\n\t\t$(document).on(EVENT_NAME_KEYPRESS,\n\t\t\t'div[contenteditable=true],textarea,input', keyPressHandler);\n\t\t$(document).on(EVENT_NAME_KEYUP,\n\t\t\t'div[contenteditable=true],textarea,input', keyUpHandler);\n\n\t\t// Attach to future iframes\n\t\t$(document).on(EVENT_NAME_LOAD, 'iframe', function(e) {\n\t\t\t$(this).contents().on(EVENT_NAME_KEYPRESS,\n\t\t\t\t'div[contenteditable=true],textarea,input', keyPressHandler);\n\t\t\t$(this).contents().on(EVENT_NAME_KEYUP,\n\t\t\t\t'div[contenteditable=true],textarea,input', keyUpHandler);\n\t\t});\n\n\t\t// Attach to existing iframes as well - this needs to be at the end\n\t\t// because sometimes this breaks depending on cross-domain policy\n\t\t$(document).find('iframe').each(function(index) {\n\t\t\t$(this).contents().on(EVENT_NAME_KEYPRESS,\n\t\t\t\t'div[contenteditable=true],textarea,input', keyPressHandler);\n\t\t\t$(this).contents().on(EVENT_NAME_KEYUP,\n\t\t\t\t'div[contenteditable=true],textarea,input', keyUpHandler);\n\t\t});\n\t}", "connectRichFilemanager(event)\n {\n var editor = event.editor;\n var dialogDefinition = event.data.definition;\n var dialogName = event.data.name;\n var cleanUpFuncRef = this.editor.tools.addFunction(function () {\n let oIFrame = document.getElementById('fm-iframeCKE');\n if (oIFrame) {\n oIFrame.remove();\n }\n document.body.style.overflowY = 'scroll';\n });\n \n var tabCount = dialogDefinition.contents.length;\n for (var i = 0; i < tabCount; i++) {\n var dialogTab = dialogDefinition.contents[i];\n if (!(dialogTab && typeof dialogTab.get === 'function')) {\n continue;\n }\n \n var browseButton = dialogTab.get('browse');\n if (browseButton !== null) {\n browseButton.hidden = false;\n var params = \n '?CKEditorFuncNum=' + this.editor.instances[event.editor.name]._.filebrowserFn +\n '&CKEditorCleanUpFuncNum=' + cleanUpFuncRef +\n '&langCode=' + this.config.RichFilemanager.language +\n '&CKEditor=' + event.editor.name;\n \n if (dialogName == 'link') {\n params += '&expandedFolder=' + this.config.RichFilemanager.expandFolder.browseLinkURL;\n } else if (dialogTab.id == 'info') {\n params += '&expandedFolder=' + this.config.RichFilemanager.expandFolder.browseImageURL;\n } else {\n params += '&expandedFolder=' + this.config.RichFilemanager.expandFolder.browseImageLinkURL;\n }\n browseButton.filebrowser.rfm_path = this.config.RichFilemanager.Path + params;\n browseButton.onClick = function (dialog) {\n editor._.filebrowserSe = this;\n \n let oIFrame = document.createElement('iframe');\n oIFrame.id = 'fm-iframeCKE';\n oIFrame.className = 'fm-modal';\n oIFrame.src = dialog.sender.filebrowser.rfm_path;\n document.body.append(oIFrame);\n document.body.style.overflowY = 'hidden';\n }\n }\n }\n }", "function\n setEditorMode( bEnable )\n {\n document.body[ bEnable? 'addEventListener': 'removeEventListener']( 'click',clickInEditMode,true );\n document.body[ bEnable? 'addEventListener': 'removeEventListener']( 'input',inputInEditMode,true );\n document.body[ bEnable? 'addEventListener': 'removeEventListener']( 'blur' , blurInEditMode,true );\n bEnable || document.body.querySelectorAll('*[contentEditable]').forEach( el=> el.removeAttribute('contentEditable'));\n }", "function quickCodeHandler(e) {\n\t var target = e.target,\n\t highlighterDiv = findParentElement(target, '.syntaxhighlighter'),\n\t container = findParentElement(target, '.container'),\n\t textarea = document.createElement('textarea'),\n\t highlighter;\n\n\t if (!container || !highlighterDiv || findElement(container, 'textarea')) return;\n\n\t highlighter = getHighlighterById(highlighterDiv.id);\n\n\t // add source class name\n\t addClass(highlighterDiv, 'source');\n\n\t // Have to go over each line and grab it's text, can't just do it on the\n\t // container because Firefox loses all \\n where as Webkit doesn't.\n\t var lines = container.childNodes,\n\t code = [];\n\n\t for (var i = 0, l = lines.length; i < l; i++) {\n\t code.push(lines[i].innerText || lines[i].textContent);\n\t } // using \\r instead of \\r or \\r\\n makes this work equally well on IE, FF and Webkit\n\t code = code.join('\\r');\n\n\t // For Webkit browsers, replace nbsp with a breaking space\n\t code = code.replace(/\\u00a0/g, \" \");\n\n\t // inject <textarea/> tag\n\t textarea.appendChild(document.createTextNode(code));\n\t container.appendChild(textarea);\n\n\t // preselect all text\n\t textarea.focus();\n\t textarea.select();\n\n\t // set up handler for lost focus\n\t attachEvent(textarea, 'blur', function (e) {\n\t textarea.parentNode.removeChild(textarea);\n\t removeClass(highlighterDiv, 'source');\n\t });\n\t }", "function handleBindEventHandlers(){\n handleAddBookmark();\n handleFilterRating();\n handleDeleteBookmark();\n handleAddForm();\n handleDescExpand();\n handleCloseButton();\n }", "customeCodeEditEvent() {\n this.menuHandler(MenuChoices.null);\n }", "function BestInPlaceEditor(e) {\n 'use strict';\n this.element = e;\n this.initOptions();\n this.bindForm();\n this.initPlaceHolder();\n jQuery(this.activator).bind('click', {editor: this}, this.clickHandler);\n}", "function BestInPlaceEditor(e) {\n 'use strict';\n this.element = e;\n this.initOptions();\n this.bindForm();\n this.initPlaceHolder();\n jQuery(this.activator).bind('click', {editor: this}, this.clickHandler);\n}", "function addToEditors(win) {\n\t if (!win._mediumEditors) {\n\t // To avoid breaking users who are assuming that the unique id on\n\t // medium-editor elements will start at 1, inserting a 'null' in the\n\t // array so the unique-id can always map to the index of the editor instance\n\t win._mediumEditors = [null];\n\t }\n\n\t // If this already has a unique id, re-use it\n\t if (!this.id) {\n\t this.id = win._mediumEditors.length;\n\t }\n\n\t win._mediumEditors[this.id] = this;\n\t }" ]
[ "0.7412128", "0.6621844", "0.6621844", "0.6262634", "0.6257714", "0.607542", "0.6045522", "0.60446435", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.597748", "0.5921831", "0.58822435", "0.5855776", "0.58507174", "0.58342123", "0.5821316", "0.58143663", "0.58074176", "0.57911897", "0.5784581", "0.57678455", "0.5766449", "0.57622826", "0.5739991", "0.5724587", "0.57212824", "0.57201177", "0.5718631", "0.57144845", "0.57108676", "0.56975335", "0.56874955", "0.56824404", "0.56824404", "0.56732845", "0.5667469", "0.5667469", "0.5667469", "0.5651327", "0.5651023", "0.56491417", "0.5647821", "0.56457156", "0.5645161", "0.5635571", "0.5630949", "0.56083876", "0.5606112", "0.5592833", "0.5576856", "0.557564", "0.5566266", "0.5565353", "0.5553392", "0.55399", "0.5539251", "0.5511093", "0.5508463", "0.54988265", "0.5498448", "0.5497374", "0.5493513", "0.54899323", "0.54646486", "0.5457944", "0.5448664", "0.54422545", "0.54334956", "0.5421036", "0.5418867", "0.54070467", "0.54067695", "0.54067695", "0.54032874", "0.54017025", "0.5393179", "0.53924155", "0.5389941", "0.53865755", "0.5378808", "0.5377512", "0.5372959", "0.5372959", "0.536429" ]
0.0
-1
Called when the window resizes
function onResize(cm) { var d = cm.display; // Might be a text scaling operation, clear size caches. d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null; d.scrollbarsClipped = false; cm.setSize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onWindowResize() {\n updateSizes();\n }", "function windowResized() {\n resize();\n redraw();\n}", "onWindowResize() {\n\t\tthis.windowHeight = this.getWindowHeight();\n\t\tthis.updatePosition();\n\t}", "function onWindowResize() {\n\n\t\t\t}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight, false);\n init();\n}", "function windowResized() {\n\n getWrapperWidth();\n resizeCanvas(wrapperWide, wrapperWide);\n\n widthVar = (width - 40) / 100;\n drawArea = (width - 40);\n\n switchBox();\n}", "function windowResized () {\n\tresizeCanvas(windowWidth, windowHeight);\n }", "function onWindowResize(event) {\n\n layout();\n\n }", "onResize () {}", "function windowResized() {\n resizeCanvas(windowWidth/4, windowHeight);\n renderNoteMap();\n}", "function windowResized() {\n repositionCanvas();\n}", "function windowResized() {\r\n canvas_resize();\r\n set_origin();\r\n set_speed();\r\n bars[it].display();\r\n}", "function windowResized() {\n\tresizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n\tresizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(width, height);\n}", "function windowResized() {\n\tresizeCanvas(windowWidth, windowHeight);\n\tLogo.resize();\n}", "function windowResized() {\n resizeCanvas(canvasX, canvasY);\n}", "function windowResized () {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized () {\n resizeCanvas(windowWidth, windowHeight);\n resize=1;\n}", "function windowResized() {\n\tresizeCanvas(innerWidth, innerHeight);\n}", "function windowResized() {\n setup();\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\r\n resizeCanvas(windowWidth, windowHeight);\r\n}", "function windowResized() {\r\n resizeCanvas(windowWidth, windowHeight);\r\n}", "function windowResized() {\n resizeCanvas(canvasWidth, canvasHeight);\n}", "function windowResized() {\n // We can use the resizeCanvas() function to resize our canvas to the new window dimensions\n resizeCanvas(windowWidth,windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n scaleMaximums();\n}", "function windowResized() {\r\n resizeCanvas(windowWidth, windowHeight, false);\r\n setupArray();\r\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight, false);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight, false);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight, false);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight, false);\n}", "function onWindowResize() {\n\tonAggregateResize();\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n addModelButton.position(windowWidth - 150, 30);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight)\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight)\n}", "function windowResized() {\r\n resizeCanvas(windowWidth, windowHeight, false);\r\n}", "function windowResized() {\r\n resizeCanvas(windowWidth, windowHeight)\r\n}", "function windowResized() {\n resizeCanvas(canvasContainer.clientWidth, canvasContainer.clientHeight);\n}", "function windowResized() {\n // retrieve the new client width\n clientWidth = Math.max(200, window.innerWidth - 200);\n aspRatio = 1;\n clientHeight = clientWidth * aspRatio;\n \n // resize the canvas and plot, reposition the GUI \n resizeCanvas(clientWidth, clientHeight);\n examplePlot.GPLOT.setOuterDim(clientWidth, clientHeight);\n examplePlot.GPLOT.setPos(0, 0);\n gui.prototype.setPosition(clientWidth, examplePlot.GPLOT.mar[2]);\n}", "function resized() {\r\n\tclearInterval(renderer);\r\n\tmain();\r\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight - 50);\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n draw();\n}", "function edgtfOnWindowResize() {\n }", "_onResize() {\n this.refresh();\n }", "function windowResized() {\n console.log('resized');\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized() {\n\twindowW = window.innerWidth;\n\twindowH = window.innerHeight;\n resizeCanvas(window.innerWidth, window.innerHeight);\n}", "function onResize() {\n\t\tvar TITLE_BAR_HEIGHT = 35;\t// Height of the title bar\n\t\tvar CONTENT_WIDTH = 100;\t// Aspect ratio width of content (minus the titlebar)\n\t\tvar CONTENT_HEIGHT = 100;\t// Aspect ratio height of content (minus the titlebar)\n\t\tvar NB_PADDING = 20;\t\t// The white space padding between the HTML and the widget border\n\t\tvar BORDER_PADDING = 0;\t\t// Any border around the HTML\n\n\t\t// Timeout wrapper is needed to prevent the function from triggering another resize immediately\n\t\tsetTimeout(function() {\n\t\t\tvar ratio = elements.body.width() / CONTENT_WIDTH;\n\t\t\tvar actualHeight = ratio * CONTENT_HEIGHT + TITLE_BAR_HEIGHT;\n\t\t\t// Turn off undomanager so this 'seamless' resize doesn't get recorded\n\t\t\tNB.undomanager.setAutoRecord(false);\n\t\t\tNB.getHostObject().height = actualHeight + NB_PADDING + BORDER_PADDING;\n\t\t\tNB.undomanager.setAutoRecord(true);\n\t\t}, 10);\n\t}", "onResize() {\n if (!this.isActivated) {\n return;\n }\n\n this.refresh();\n }", "function windowResized(){\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized(){\n resizeCanvas(windowWidth, windowHeight);\n}", "function windowResized(){\n canvas.resize(windowWidth, windowHeight - canvasadjust);\n}", "function windowResized() {\n resizeCanvas(innerWidth, innerHeight);\n}", "_onResize () {\n }", "function resizeEvents(){\r\n\r\n}", "function onResize(){\n\t// Update new dimensions\n\tvar width = $(window).width();\n\tvar height = $(window).height();\n\t\n\t// Dispatch a resize event to all the elements\n\tdispatch.resize(width, height);\n\t\n\t// If a region was selected, updates also each chart\n//\tif(regionSelected.name)\n//\t\tdispatch.regionChange();\n\t\n\t//TODO: completare\n}", "function onResize() {\n\t\t\tsetWidths();\n\t\t\trepositionStickyHead();\n\t\t\trepositionStickyCol();\n\t\t}", "function handleResize() {\n // Set window width/height to state\n setWindowSize({\n width: window.innerWidth,\n height: window.innerHeight,\n });\n\n }", "function windowResized()\n{\n zinjs.info.width = $(window).width();\n zinjs.info.height = $(window).height();\n if (zinjs.info.zoomArea) {\n zinjs.info.zoomArea.zoomIn();\n }\n}", "function sizeChanged() {\n for (var id in windowObjects) {\n windowObjects[id].sizeChanged();\n }\n //alert(\"resize\");\n }", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}//end windowResized", "function handleResize() {\n // Set window width/height to state\n setWindowSize({\n width: window.outerWidth,\n height: window.outerHeight,\n });\n }", "function qodeOnWindowResize() {\n qodeSelfHostedVideoSize();\n }", "function handleResize() {\n // Set window width/height to state\n setWindowSize({\n width: window.innerWidth,\n height: window.innerHeight,\n });\n }", "function onWindowResize() {\n deleteStatusOverlays();\n drawStatusOverlays();\n }" ]
[ "0.87504816", "0.8489634", "0.84696436", "0.8312124", "0.7998738", "0.79904795", "0.7962713", "0.7941597", "0.79165184", "0.79024243", "0.7881844", "0.7881551", "0.78685206", "0.78685206", "0.7828244", "0.78222525", "0.78173137", "0.7804665", "0.7797177", "0.778925", "0.778796", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.778333", "0.7768998", "0.7768998", "0.77553266", "0.77488965", "0.7736755", "0.77310276", "0.77131367", "0.77131367", "0.77131367", "0.77131367", "0.7695426", "0.768226", "0.768226", "0.768226", "0.768226", "0.768226", "0.768226", "0.768226", "0.768226", "0.768226", "0.768226", "0.76812357", "0.7678305", "0.7678305", "0.7669099", "0.76472557", "0.7626848", "0.7624827", "0.7608078", "0.76070106", "0.7605152", "0.7603814", "0.75849825", "0.755916", "0.75435895", "0.75365674", "0.7535185", "0.7523395", "0.7523395", "0.752314", "0.75216603", "0.7513945", "0.7460061", "0.7451495", "0.74453235", "0.74434954", "0.7435655", "0.74278915", "0.74197805", "0.741517", "0.74104", "0.74084395", "0.7399668" ]
0.0
-1
This is a kludge to keep keymaps mostly working as raw objects (backwards compatibility) while at the same time support features like normalization and multistroke key bindings. It compiles a new normalized keymap, and then updates the old object to reflect this.
function normalizeKeyMap(keymap) { var copy = {}; for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) { var value = keymap[keyname]; if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue } if (value == "...") { delete keymap[keyname]; continue } var keys = map(keyname.split(" "), normalizeKeyName); for (var i = 0; i < keys.length; i++) { var val = (void 0), name = (void 0); if (i == keys.length - 1) { name = keys.join(" "); val = value; } else { name = keys.slice(0, i + 1).join(" "); val = "..."; } var prev = copy[name]; if (!prev) { copy[name] = val; } else if (prev != val) { throw new Error("Inconsistent bindings for " + name) } } delete keymap[keyname]; } } for (var prop in copy) { keymap[prop] = copy[prop]; } return keymap }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeKeyMap(keymap) {\n\t\t var copy = {};\n\t\t for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n\t\t var value = keymap[keyname];\n\t\t if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n\t\t if (value == \"...\") { delete keymap[keyname]; continue }\n\n\t\t var keys = map(keyname.split(\" \"), normalizeKeyName);\n\t\t for (var i = 0; i < keys.length; i++) {\n\t\t var val = (void 0), name = (void 0);\n\t\t if (i == keys.length - 1) {\n\t\t name = keys.join(\" \");\n\t\t val = value;\n\t\t } else {\n\t\t name = keys.slice(0, i + 1).join(\" \");\n\t\t val = \"...\";\n\t\t }\n\t\t var prev = copy[name];\n\t\t if (!prev) { copy[name] = val; }\n\t\t else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n\t\t }\n\t\t delete keymap[keyname];\n\t\t } }\n\t\t for (var prop in copy) { keymap[prop] = copy[prop]; }\n\t\t return keymap\n\t\t }", "function normalizeKeyMap(keymap) {\r\n var copy = {};\r\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\r\n var value = keymap[keyname];\r\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\r\n if (value == \"...\") { delete keymap[keyname]; continue }\r\n\r\n var keys = map(keyname.split(\" \"), normalizeKeyName);\r\n for (var i = 0; i < keys.length; i++) {\r\n var val = (void 0), name = (void 0);\r\n if (i == keys.length - 1) {\r\n name = keys.join(\" \");\r\n val = value;\r\n } else {\r\n name = keys.slice(0, i + 1).join(\" \");\r\n val = \"...\";\r\n }\r\n var prev = copy[name];\r\n if (!prev) { copy[name] = val; }\r\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\r\n }\r\n delete keymap[keyname];\r\n } }\r\n for (var prop in copy) { keymap[prop] = copy[prop]; }\r\n return keymap\r\n}", "function normalizeKeyMap(keymap) {\n var copy = {}\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname]\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName)\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0)\n if (i == keys.length - 1) {\n name = keys.join(\" \")\n val = value\n } else {\n name = keys.slice(0, i + 1).join(\" \")\n val = \"...\"\n }\n var prev = copy[name]\n if (!prev) { copy[name] = val }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname]\n } }\n for (var prop in copy) { keymap[prop] = copy[prop] }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {}\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname]\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName)\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0)\n if (i == keys.length - 1) {\n name = keys.join(\" \")\n val = value\n } else {\n name = keys.slice(0, i + 1).join(\" \")\n val = \"...\"\n }\n var prev = copy[name]\n if (!prev) { copy[name] = val }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname]\n } }\n for (var prop in copy) { keymap[prop] = copy[prop] }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n\n for (var keyname in keymap) {\n if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) {\n continue;\n }\n\n if (value == \"...\") {\n delete keymap[keyname];\n continue;\n }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n\n for (var i = 0; i < keys.length; i++) {\n var val = void 0,\n name = void 0;\n\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n\n var prev = copy[name];\n\n if (!prev) {\n copy[name] = val;\n } else if (prev != val) {\n throw new Error(\"Inconsistent bindings for \" + name);\n }\n }\n\n delete keymap[keyname];\n }\n }\n\n for (var prop in copy) {\n keymap[prop] = copy[prop];\n }\n\n return keymap;\n }", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n}", "configureKeyboardBindings() {\n if (this.keycharm !== undefined) {\n this.keycharm.destroy();\n }\n\n if (this.options.keyboard.enabled === true) {\n if (this.options.keyboard.bindToWindow === true) {\n this.keycharm = keycharm({ container: window, preventDefault: true });\n } else {\n this.keycharm = keycharm({\n container: this.canvas.frame,\n preventDefault: true,\n });\n }\n\n this.keycharm.reset();\n\n if (this.activated === true) {\n this.keycharm.bind(\n \"up\",\n () => {\n this.bindToRedraw(\"_moveUp\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"down\",\n () => {\n this.bindToRedraw(\"_moveDown\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"left\",\n () => {\n this.bindToRedraw(\"_moveLeft\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"right\",\n () => {\n this.bindToRedraw(\"_moveRight\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"=\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"num+\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"num-\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"-\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"[\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"]\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"pageup\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"pagedown\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n\n this.keycharm.bind(\n \"up\",\n () => {\n this.unbindFromRedraw(\"_moveUp\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"down\",\n () => {\n this.unbindFromRedraw(\"_moveDown\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"left\",\n () => {\n this.unbindFromRedraw(\"_moveLeft\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"right\",\n () => {\n this.unbindFromRedraw(\"_moveRight\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"=\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"num+\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"num-\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"-\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"[\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"]\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"pageup\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"pagedown\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n }\n }\n }", "function bindKey(strRaw) {\n // split and trim, remove empty strings\n var processed = [];\n var sp = strRaw.split(\" \");\n for (i = 0; i < sp.length; i++) {\n sp[i] = sp[i].trim();\n if (i <= 1) sp[i] = sp[i].toUpperCase();\n if (sp[i] != \"\") {\n processed.push(sp[i]);\n }\n }\n\n var pKey = new Object();\n pKey.keyCode = processed[0].charCodeAt(0);\n pKey.command = processed[1];\n processed.splice(0, 2);\n pKey.arguments = processed;\n parsedKeyBinding.push(pKey);\n}", "function createNormalModeKeyboardShortcuts(_) {\n var normalModeKeyboardShortcuts = [['enter', 'edit mode', switchToEditMode],\n // [ 'shift+enter', 'run cell, select below', runCellAndSelectBelow ]\n // [ 'ctrl+enter', 'run cell', runCell ]\n // [ 'alt+enter', 'run cell, insert below', runCellAndInsertBelow ]\n ['y', 'to code', convertCellToCode], ['m', 'to markdown', convertCellToMarkdown], ['r', 'to raw', convertCellToRaw], ['1', 'to heading 1', convertCellToHeading(_, 1)], ['2', 'to heading 2', convertCellToHeading(_, 2)], ['3', 'to heading 3', convertCellToHeading(_, 3)], ['4', 'to heading 4', convertCellToHeading(_, 4)], ['5', 'to heading 5', convertCellToHeading(_, 5)], ['6', 'to heading 6', convertCellToHeading(_, 6)], ['up', 'select previous cell', selectPreviousCell], ['down', 'select next cell', selectNextCell], ['k', 'select previous cell', selectPreviousCell], ['j', 'select next cell', selectNextCell], ['ctrl+k', 'move cell up', moveCellUp], ['ctrl+j', 'move cell down', moveCellDown], ['a', 'insert cell above', insertNewCellAbove], ['b', 'insert cell below', insertNewCellBelow], ['x', 'cut cell', cutCell], ['c', 'copy cell', copyCell], ['shift+v', 'paste cell above', pasteCellAbove], ['v', 'paste cell below', pasteCellBelow], ['z', 'undo last delete', undoLastDelete], ['d d', 'delete cell (press twice)', deleteCell], ['shift+m', 'merge cell below', mergeCellBelow], ['s', 'save notebook', saveNotebook],\n // [ 'mod+s', 'save notebook', saveNotebook ]\n // [ 'l', 'toggle line numbers' ]\n ['o', 'toggle output', toggleOutput$1],\n // [ 'shift+o', 'toggle output scrolling' ]\n ['h', 'keyboard shortcuts', displayKeyboardShortcuts]];\n\n if (_.onSparklingWater) {\n normalModeKeyboardShortcuts.push(['q', 'to Scala', convertCellToScala]);\n }\n\n return normalModeKeyboardShortcuts;\n }", "update () {\n if (!this.initialized) { return }\n\n if (this.pendingUpdateOperation != null) { clearImmediate(this.pendingUpdateOperation) }\n\n return this.pendingUpdateOperation = setImmediate(() => {\n let binding\n const unsetKeystrokes = new Set()\n for (binding of Array.from(this.keymapManager.getKeyBindings())) {\n if (binding.command === 'unset!') {\n unsetKeystrokes.add(binding.keystrokes)\n }\n }\n\n const keystrokesByCommand = {}\n for (binding of Array.from(this.keymapManager.getKeyBindings())) {\n if (!this.includeSelector(binding.selector)) { continue }\n if (unsetKeystrokes.has(binding.keystrokes)) { continue }\n if (binding.keystrokes.includes(' ')) { continue }\n if ((process.platform === 'darwin') && /^alt-(shift-)?.$/.test(binding.keystrokes)) { continue }\n if ((process.platform === 'win32') && /^ctrl-alt-(shift-)?.$/.test(binding.keystrokes)) { continue }\n if (keystrokesByCommand[binding.command] == null) { keystrokesByCommand[binding.command] = [] }\n keystrokesByCommand[binding.command].unshift(binding.keystrokes)\n }\n\n return this.sendToBrowserProcess(this.template, keystrokesByCommand)\n })\n }", "function remapKeys(obj, keymap) {\n ret = {}\n for (var k in obj) {\n if (keymap[k]) ret[keymap[k]] = obj[k]\n }\n return ret\n}", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY$3;\n }\n\n var oldIndex = 0;\n var newIndex = 0;\n var oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n var newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n var oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n var newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n var setKey = null;\n var setValue = undefined;\n\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n } else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n } else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}", "function dataNormalize(){\n var name,key,\n item,\n itemKeys;\n\n for( name in data.insertItems ){\n item = data.insertItems[name];\n itemKeys = item.keys;\n\n item.useCtrlKey = $.inArray('CTRL',itemKeys) < 0 ? false : true;\n item.useShiftKey = $.inArray('SHIFT',itemKeys) < 0 ? false : true;\n item.useAltKey = $.inArray('ALT',itemKeys) < 0 ? false : true;\n\n for(var i=0; i<itemKeys.length; i++){\n key = itemKeys[i];\n if(key==='CTRL' || key==='SHIFT' || key==='ALT') continue;\n item.useCharaKey = key;\n break;\n }\n }\n }", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY$3;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}", "function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY$3;\n }\n\n var oldIndex = 0;\n var newIndex = 0;\n var oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n var newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n var oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n var newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n var setKey = null;\n var setValue = undefined;\n\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n } else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n } else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n }", "function realign() {\n var keyboard = $('keyboard');\n var params = new AlignmentOptions();\n var layout = keyboard.layout;\n var keysets =\n keyboard.querySelectorAll('kb-keyset[id^=' + layout + ']').array();\n for (var i = 0; i<keysets.length ; i++) {\n realignKeyset(keysets[i], params);\n }\n keyboard.stale = false;\n exports.recordKeysets();\n }", "function patchStylingMapIntoContext(context, directiveIndex, playerBuilderIndex, ctxStart, ctxEnd, props, values, cacheValue, entryIsClassBased) {\n var dirty = false;\n var cacheIndex = 1 /* ValuesStartPosition */ +\n directiveIndex * 4 /* Size */;\n // the cachedValues array is the registry of all multi style values (map values). Each\n // value is stored (cached) each time is updated.\n var cachedValues = context[entryIsClassBased ? 6 /* CachedMultiClasses */ : 7 /* CachedMultiStyles */];\n // this is the index in which this directive has ownership access to write to this\n // value (anything before is owned by a previous directive that is more important)\n var ownershipValuesStartIndex = cachedValues[cacheIndex + 1 /* PositionStartOffset */];\n var existingCachedValue = cachedValues[cacheIndex + 2 /* ValueOffset */];\n var existingCachedValueCount = cachedValues[cacheIndex + 3 /* ValueCountOffset */];\n var existingCachedValueIsDirty = cachedValues[cacheIndex + 0 /* DirtyFlagOffset */] === 1;\n // A shape change means the provided map value has either removed or added new properties\n // compared to what were in the last time. If a shape change occurs then it means that all\n // follow-up multi-styling entries are obsolete and will be examined again when CD runs\n // them. If a shape change has not occurred then there is no reason to check any other\n // directive values if their identity has not changed. If a previous directive set this\n // value as dirty (because its own shape changed) then this means that the object has been\n // offset to a different area in the context. Because its value has been offset then it\n // can't write to a region that it wrote to before (which may have been apart of another\n // directive) and therefore its shape changes too.\n var valuesEntryShapeChange = existingCachedValueIsDirty || ((!existingCachedValue && cacheValue) ? true : false);\n var totalUniqueValues = 0;\n var totalNewAllocatedSlots = 0;\n // this is a trick to avoid building {key:value} map where all the values\n // are `true` (this happens when a className string is provided instead of a\n // map as an input value to this styling algorithm)\n var applyAllProps = values === true;\n // STEP 1:\n // loop through the earlier directives and figure out if any properties here will be placed\n // in their area (this happens when the value is null because the earlier directive erased it).\n var ctxIndex = ctxStart;\n var totalRemainingProperties = props.length;\n while (ctxIndex < ownershipValuesStartIndex) {\n var currentProp = getProp(context, ctxIndex);\n if (totalRemainingProperties) {\n for (var i = 0; i < props.length; i++) {\n var mapProp = props[i];\n var normalizedProp = mapProp ? (entryIsClassBased ? mapProp : hyphenate(mapProp)) : null;\n if (normalizedProp && currentProp === normalizedProp) {\n var currentValue = getValue(context, ctxIndex);\n var currentDirectiveIndex = getDirectiveIndexFromEntry(context, ctxIndex);\n var value = applyAllProps ? true : values[normalizedProp];\n var currentFlag = getPointers(context, ctxIndex);\n if (hasValueChanged(currentFlag, currentValue, value) &&\n allowValueChange(currentValue, value, currentDirectiveIndex, directiveIndex)) {\n setValue(context, ctxIndex, value);\n setPlayerBuilderIndex(context, ctxIndex, playerBuilderIndex, directiveIndex);\n if (hasInitialValueChanged(context, currentFlag, value)) {\n setDirty(context, ctxIndex, true);\n dirty = true;\n }\n }\n props[i] = null;\n totalRemainingProperties--;\n break;\n }\n }\n }\n ctxIndex += 4 /* Size */;\n }\n // STEP 2:\n // apply the left over properties to the context in the correct order.\n if (totalRemainingProperties) {\n var sanitizer = entryIsClassBased ? null : getStyleSanitizer(context, directiveIndex);\n propertiesLoop: for (var i = 0; i < props.length; i++) {\n var mapProp = props[i];\n if (!mapProp) {\n // this is an early exit in case a value was already encountered above in the\n // previous loop (which means that the property was applied or rejected)\n continue;\n }\n var value = applyAllProps ? true : values[mapProp];\n var normalizedProp = entryIsClassBased ? mapProp : hyphenate(mapProp);\n var isInsideOwnershipArea = ctxIndex >= ownershipValuesStartIndex;\n for (var j = ctxIndex; j < ctxEnd; j += 4 /* Size */) {\n var distantCtxProp = getProp(context, j);\n if (distantCtxProp === normalizedProp) {\n var distantCtxDirectiveIndex = getDirectiveIndexFromEntry(context, j);\n var distantCtxPlayerBuilderIndex = getPlayerBuilderIndex(context, j);\n var distantCtxValue = getValue(context, j);\n var distantCtxFlag = getPointers(context, j);\n if (allowValueChange(distantCtxValue, value, distantCtxDirectiveIndex, directiveIndex)) {\n // even if the entry isn't updated (by value or directiveIndex) then\n // it should still be moved over to the correct spot in the array so\n // the iteration loop is tighter.\n if (isInsideOwnershipArea) {\n swapMultiContextEntries(context, ctxIndex, j);\n totalUniqueValues++;\n }\n if (hasValueChanged(distantCtxFlag, distantCtxValue, value)) {\n if (value === null || value === undefined && value !== distantCtxValue) {\n valuesEntryShapeChange = true;\n }\n setValue(context, ctxIndex, value);\n // SKIP IF INITIAL CHECK\n // If the former `value` is `null` then it means that an initial value\n // could be being rendered on screen. If that is the case then there is\n // no point in updating the value in case it matches. In other words if the\n // new value is the exact same as the previously rendered value (which\n // happens to be the initial value) then do nothing.\n if (distantCtxValue !== null ||\n hasInitialValueChanged(context, distantCtxFlag, value)) {\n setDirty(context, ctxIndex, true);\n dirty = true;\n }\n }\n if (distantCtxDirectiveIndex !== directiveIndex ||\n playerBuilderIndex !== distantCtxPlayerBuilderIndex) {\n setPlayerBuilderIndex(context, ctxIndex, playerBuilderIndex, directiveIndex);\n }\n }\n ctxIndex += 4 /* Size */;\n continue propertiesLoop;\n }\n }\n // fallback case ... value not found at all in the context\n if (value != null) {\n valuesEntryShapeChange = true;\n totalUniqueValues++;\n var flag = prepareInitialFlag(context, normalizedProp, entryIsClassBased, sanitizer) |\n 1 /* Dirty */;\n var insertionIndex = isInsideOwnershipArea ?\n ctxIndex :\n (ownershipValuesStartIndex + totalNewAllocatedSlots * 4 /* Size */);\n insertNewMultiProperty(context, insertionIndex, entryIsClassBased, normalizedProp, flag, value, directiveIndex, playerBuilderIndex);\n totalNewAllocatedSlots++;\n ctxEnd += 4 /* Size */;\n ctxIndex += 4 /* Size */;\n dirty = true;\n }\n }\n }\n // STEP 3:\n // Remove (nullify) any existing entries in the context that were not apart of the\n // map input value that was passed into this algorithm for this directive.\n while (ctxIndex < ctxEnd) {\n valuesEntryShapeChange = true; // some values are missing\n var ctxValue = getValue(context, ctxIndex);\n var ctxFlag = getPointers(context, ctxIndex);\n var ctxDirective = getDirectiveIndexFromEntry(context, ctxIndex);\n if (ctxValue != null) {\n valuesEntryShapeChange = true;\n }\n if (hasValueChanged(ctxFlag, ctxValue, null)) {\n setValue(context, ctxIndex, null);\n // only if the initial value is falsy then\n if (hasInitialValueChanged(context, ctxFlag, ctxValue)) {\n setDirty(context, ctxIndex, true);\n dirty = true;\n }\n setPlayerBuilderIndex(context, ctxIndex, playerBuilderIndex, directiveIndex);\n }\n ctxIndex += 4 /* Size */;\n }\n // Because the object shape has changed, this means that all follow-up directives will need to\n // reapply their values into the object. For this to happen, the cached array needs to be updated\n // with dirty flags so that follow-up calls to `updateStylingMap` will reapply their styling code.\n // the reapplication of styling code within the context will reshape it and update the offset\n // values (also follow-up directives can write new values in case earlier directives set anything\n // to null due to removals or falsy values).\n valuesEntryShapeChange = valuesEntryShapeChange || existingCachedValueCount !== totalUniqueValues;\n updateCachedMapValue(context, directiveIndex, entryIsClassBased, cacheValue, ownershipValuesStartIndex, ctxEnd, totalUniqueValues, valuesEntryShapeChange);\n if (dirty) {\n setContextDirty(context, true);\n }\n return totalNewAllocatedSlots;\n}", "function standardizeKey (key) {\n switch (key) {\n case \"A\":\n key = \"a\";\n break;\n case \"C\":\n key = \"c\";\n break;\n case \"Backspace\":\n key = \"bs\";\n break;\n case \"Enter\":\n key = \"=\";\n break;\n case \"=\":\n key = \"+\";\n break;\n case \"x\":\n key = \"*\";\n break;\n }\n return key;\n}", "function bindCommand(options)\n{\n KeyMap.clear();\n\n $.each($.extend(true, {}, options.default_key_bind, options.key_bind), function(map, bind) {\n $.each(bind, function(key, command) {\n KeyMap[map](key, command);\n });\n });\n}", "function realignAll() {\n var keyboard = $('keyboard');\n var layoutParams = {};\n\n var idToLayout = function(id) {\n var parts = id.split('-');\n parts.pop();\n return parts.join('-');\n }\n\n var keysets = keyboard.querySelectorAll('kb-keyset').array();\n for (var i=0; i< keysets.length; i++) {\n var keyset = keysets[i];\n var layout = idToLayout(keyset.id);\n // Caches the layouts size parameters since all keysets in the same layout\n // will have the same specs.\n if (!(layout in layoutParams))\n layoutParams[layout] = new AlignmentOptions(keyset);\n realignKeyset(keyset, layoutParams[layout]);\n }\n exports.recordKeysets();\n }", "function createWithObjectKeys(portableTextFeatures, keyGenerator) {\n return function withKeys(editor) {\n const { apply, normalizeNode } = editor;\n editor.apply = operation => {\n if (operation.type === 'split_node') {\n operation.properties = Object.assign(Object.assign({}, operation.properties), { _key: keyGenerator() });\n }\n if (operation.type === 'insert_node') {\n // Must be given a new key or adding/removing marks while typing gets in trouble (duped keys)!\n operation.node = Object.assign(Object.assign({}, operation.node), { _key: keyGenerator() });\n }\n apply(operation);\n };\n editor.normalizeNode = entry => {\n const [node, path] = entry;\n if (slate_1.Element.isElement(node) && node._type === portableTextFeatures.types.block.name) {\n // Set key on block itself\n if (!node._key) {\n slate_1.Transforms.setNodes(editor, { _key: keyGenerator() }, { at: path });\n }\n // Set keys on it's children\n for (const [child, childPath] of slate_1.Node.children(editor, path)) {\n if (!child._key) {\n slate_1.Transforms.setNodes(editor, { _key: keyGenerator() }, { at: childPath });\n return;\n }\n }\n }\n // Do the original `normalizeNode` to enforce other constraints.\n normalizeNode(entry);\n };\n return editor;\n };\n}", "_preprocessUpdateExpression(expression) {\n return {\n nodeIndex: expression.nodeIndex,\n bindingIndex: expression.bindingIndex,\n sourceSpan: expression.sourceSpan,\n context: expression.context,\n value: convertPropertyBindingBuiltins({\n createLiteralArrayConverter: (argCount) => this._createLiteralArrayConverter(expression.sourceSpan, argCount),\n createLiteralMapConverter: (keys) => this._createLiteralMapConverter(expression.sourceSpan, keys),\n createPipeConverter: (name, argCount) => this._createPipeConverter(expression, name, argCount)\n }, expression.value)\n };\n }", "_preprocessUpdateExpression(expression) {\n return {\n nodeIndex: expression.nodeIndex,\n bindingIndex: expression.bindingIndex,\n sourceSpan: expression.sourceSpan,\n context: expression.context,\n value: convertPropertyBindingBuiltins({\n createLiteralArrayConverter: (argCount) => this._createLiteralArrayConverter(expression.sourceSpan, argCount),\n createLiteralMapConverter: (keys) => this._createLiteralMapConverter(expression.sourceSpan, keys),\n createPipeConverter: (name, argCount) => this._createPipeConverter(expression, name, argCount)\n }, expression.value)\n };\n }", "_preprocessUpdateExpression(expression) {\n return {\n nodeIndex: expression.nodeIndex,\n bindingIndex: expression.bindingIndex,\n sourceSpan: expression.sourceSpan,\n context: expression.context,\n value: convertPropertyBindingBuiltins({\n createLiteralArrayConverter: (argCount) => this._createLiteralArrayConverter(expression.sourceSpan, argCount),\n createLiteralMapConverter: (keys) => this._createLiteralMapConverter(expression.sourceSpan, keys),\n createPipeConverter: (name, argCount) => this._createPipeConverter(expression, name, argCount)\n }, expression.value)\n };\n }", "_preprocessUpdateExpression(expression) {\n return {\n nodeIndex: expression.nodeIndex,\n bindingIndex: expression.bindingIndex,\n sourceSpan: expression.sourceSpan,\n context: expression.context,\n value: convertPropertyBindingBuiltins({\n createLiteralArrayConverter: (argCount) => this._createLiteralArrayConverter(expression.sourceSpan, argCount),\n createLiteralMapConverter: (keys) => this._createLiteralMapConverter(expression.sourceSpan, keys),\n createPipeConverter: (name, argCount) => this._createPipeConverter(expression, name, argCount)\n }, expression.value)\n };\n }", "function updateStylingMap(context,classesInput,stylesInput,directiveRef){stylesInput=stylesInput||null;var directiveIndex=getDirectiveIndexFromRegistry(context,directiveRef||null);var element=context[5/* ElementPosition */];var classesPlayerBuilder=classesInput instanceof BoundPlayerFactory?new ClassAndStylePlayerBuilder(classesInput,element,1/* Class */):null;var stylesPlayerBuilder=stylesInput instanceof BoundPlayerFactory?new ClassAndStylePlayerBuilder(stylesInput,element,2/* Style */):null;var classesValue=classesPlayerBuilder?classesInput.value:classesInput;var stylesValue=stylesPlayerBuilder?stylesInput['value']:stylesInput;// early exit (this is what's done to avoid using ctx.bind() to cache the value)\nvar ignoreAllClassUpdates=limitToSingleClasses(context)||classesValue===NO_CHANGE||classesValue===context[6/* CachedClassValueOrInitialClassString */];var ignoreAllStyleUpdates=stylesValue===NO_CHANGE||stylesValue===context[7/* CachedStyleValue */];if(ignoreAllClassUpdates&&ignoreAllStyleUpdates)return;context[6/* CachedClassValueOrInitialClassString */]=classesValue;context[7/* CachedStyleValue */]=stylesValue;var classNames=EMPTY_ARRAY;var applyAllClasses=false;var playerBuildersAreDirty=false;var classesPlayerBuilderIndex=classesPlayerBuilder?1/* ClassMapPlayerBuilderPosition */:0;if(hasPlayerBuilderChanged(context,classesPlayerBuilder,1/* ClassMapPlayerBuilderPosition */)){setPlayerBuilder(context,classesPlayerBuilder,1/* ClassMapPlayerBuilderPosition */);playerBuildersAreDirty=true;}var stylesPlayerBuilderIndex=stylesPlayerBuilder?3/* StyleMapPlayerBuilderPosition */:0;if(hasPlayerBuilderChanged(context,stylesPlayerBuilder,3/* StyleMapPlayerBuilderPosition */)){setPlayerBuilder(context,stylesPlayerBuilder,3/* StyleMapPlayerBuilderPosition */);playerBuildersAreDirty=true;}// each time a string-based value pops up then it shouldn't require a deep\n// check of what's changed.\nif(!ignoreAllClassUpdates){if(typeof classesValue=='string'){classNames=classesValue.split(/\\s+/);// this boolean is used to avoid having to create a key/value map of `true` values\n// since a classname string implies that all those classes are added\napplyAllClasses=true;}else{classNames=classesValue?Object.keys(classesValue):EMPTY_ARRAY;}}var classes=classesValue||EMPTY_OBJ;var styleProps=stylesValue?Object.keys(stylesValue):EMPTY_ARRAY;var styles=stylesValue||EMPTY_OBJ;var classesStartIndex=styleProps.length;var multiStartIndex=getMultiStartIndex(context);var dirty=false;var ctxIndex=multiStartIndex;var propIndex=0;var propLimit=styleProps.length+classNames.length;// the main loop here will try and figure out how the shape of the provided\n// styles differ with respect to the context. Later if the context/styles/classes\n// are off-balance then they will be dealt in another loop after this one\nwhile(ctxIndex<context.length&&propIndex<propLimit){var isClassBased=propIndex>=classesStartIndex;var processValue=!isClassBased&&!ignoreAllStyleUpdates||isClassBased&&!ignoreAllClassUpdates;// when there is a cache-hit for a string-based class then we should\n// avoid doing any work diffing any of the changes\nif(processValue){var adjustedPropIndex=isClassBased?propIndex-classesStartIndex:propIndex;var newProp=isClassBased?classNames[adjustedPropIndex]:styleProps[adjustedPropIndex];var newValue=isClassBased?applyAllClasses?true:classes[newProp]:styles[newProp];var playerBuilderIndex=isClassBased?classesPlayerBuilderIndex:stylesPlayerBuilderIndex;var prop=getProp(context,ctxIndex);if(prop===newProp){var value=getValue(context,ctxIndex);var flag=getPointers(context,ctxIndex);setPlayerBuilderIndex(context,ctxIndex,playerBuilderIndex,directiveIndex);if(hasValueChanged(flag,value,newValue)){setValue(context,ctxIndex,newValue);playerBuildersAreDirty=playerBuildersAreDirty||!!playerBuilderIndex;var initialValue=getInitialValue(context,flag);// SKIP IF INITIAL CHECK\n// If the former `value` is `null` then it means that an initial value\n// could be being rendered on screen. If that is the case then there is\n// no point in updating the value incase it matches. In other words if the\n// new value is the exact same as the previously rendered value (which\n// happens to be the initial value) then do nothing.\nif(value!=null||hasValueChanged(flag,initialValue,newValue)){setDirty(context,ctxIndex,true);dirty=true;}}}else{var indexOfEntry=findEntryPositionByProp(context,newProp,ctxIndex);if(indexOfEntry>0){// it was found at a later point ... just swap the values\nvar valueToCompare=getValue(context,indexOfEntry);var flagToCompare=getPointers(context,indexOfEntry);swapMultiContextEntries(context,ctxIndex,indexOfEntry);if(hasValueChanged(flagToCompare,valueToCompare,newValue)){var initialValue=getInitialValue(context,flagToCompare);setValue(context,ctxIndex,newValue);// same if statement logic as above (look for SKIP IF INITIAL CHECK).\nif(valueToCompare!=null||hasValueChanged(flagToCompare,initialValue,newValue)){setDirty(context,ctxIndex,true);playerBuildersAreDirty=playerBuildersAreDirty||!!playerBuilderIndex;dirty=true;}}}else{// we only care to do this if the insertion is in the middle\nvar newFlag=prepareInitialFlag(context,newProp,isClassBased,getStyleSanitizer(context,directiveIndex));playerBuildersAreDirty=playerBuildersAreDirty||!!playerBuilderIndex;insertNewMultiProperty(context,ctxIndex,isClassBased,newProp,newFlag,newValue,directiveIndex,playerBuilderIndex);dirty=true;}}}ctxIndex+=4/* Size */;propIndex++;}// this means that there are left-over values in the context that\n// were not included in the provided styles/classes and in this\n// case the goal is to \"remove\" them from the context (by nullifying)\nwhile(ctxIndex<context.length){var flag=getPointers(context,ctxIndex);var isClassBased=(flag&2/* Class */)===2/* Class */;var processValue=!isClassBased&&!ignoreAllStyleUpdates||isClassBased&&!ignoreAllClassUpdates;if(processValue){var value=getValue(context,ctxIndex);var doRemoveValue=valueExists(value,isClassBased);if(doRemoveValue){setDirty(context,ctxIndex,true);setValue(context,ctxIndex,null);// we keep the player factory the same so that the `nulled` value can\n// be instructed into the player because removing a style and/or a class\n// is a valid animation player instruction.\nvar playerBuilderIndex=isClassBased?classesPlayerBuilderIndex:stylesPlayerBuilderIndex;setPlayerBuilderIndex(context,ctxIndex,playerBuilderIndex,directiveIndex);dirty=true;}}ctxIndex+=4/* Size */;}// this means that there are left-over properties in the context that\n// were not detected in the context during the loop above. In that\n// case we want to add the new entries into the list\nvar sanitizer=getStyleSanitizer(context,directiveIndex);while(propIndex<propLimit){var isClassBased=propIndex>=classesStartIndex;var processValue=!isClassBased&&!ignoreAllStyleUpdates||isClassBased&&!ignoreAllClassUpdates;if(processValue){var adjustedPropIndex=isClassBased?propIndex-classesStartIndex:propIndex;var prop=isClassBased?classNames[adjustedPropIndex]:styleProps[adjustedPropIndex];var value=isClassBased?applyAllClasses?true:classes[prop]:styles[prop];var flag=prepareInitialFlag(context,prop,isClassBased,sanitizer)|1/* Dirty */;var playerBuilderIndex=isClassBased?classesPlayerBuilderIndex:stylesPlayerBuilderIndex;var ctxIndex_1=context.length;context.push(flag,prop,value,0);setPlayerBuilderIndex(context,ctxIndex_1,playerBuilderIndex,directiveIndex);dirty=true;}propIndex++;}if(dirty){setContextDirty(context,true);setDirectiveDirty(context,directiveIndex,true);}if(playerBuildersAreDirty){setContextPlayersDirty(context,true);}}", "function normalizePromptContext(promptContext) {\n const normalizedPromptContext = {};\n\n for (const key in promptContext) {\n if (promptContext.hasOwnProperty(key)) {\n const snakeKey = key.replace(\n /[A-Z]/g,\n (match) => `_${match.toLowerCase()}`\n );\n normalizedPromptContext[snakeKey] = promptContext[key];\n }\n }\n\n return normalizedPromptContext;\n}", "function finalAbstractionFix(absOrig) {\n var result = {};\n\n for (var abs_key in absOrig) {\n curr_abs_commands = []\n for (var i = 0; i < absOrig[abs_key].length; i++) {\n curr_command = { 'expression': absOrig[abs_key][i]['command'][0], 'type': absOrig[abs_key][i]['command'][1] };\n if (absOrig[abs_key][i]['arguments'] !== undefined && absOrig[abs_key][i]['arguments'] !== null) {\n curr_arguments = { 'expression': absOrig[abs_key][i]['arguments'][0], 'type': absOrig[abs_key][i]['arguments'][1] };\n curr_abs_commands.push({ 'command': curr_command, 'arguments': curr_arguments });\n }\n else {\n curr_abs_commands.push({ 'command': curr_command });\n }\n }\n result[abs_key] = curr_abs_commands;\n }\n return result;\n}", "componentWillMount() {\n var updateKeymap = function(keymap, name) {\n this.setState({\n \"keymap\": keymap,\n \"cmd\": new InfoCmd(\"Loaded \" + name)\n });\n\n if (this.bindings != undefined) {\n this.bindings.unbindAll();\n }\n this.bindings = new Bindings(keymap, this.handleKeyString.bind(this), this.handleKeyTemplate.bind(this));\n this.bindings.bindAll();\n\n // Clear everything on ctrl+x\n Mousetrap.bind(\"ctrl+x\", this.clearComment.bind(this));\n // TODO: maybe allow ctrl-z undo to work inside the input field\n // since you need to click out of any Template data prompt before\n // undo will take effect\n Mousetrap.bind(\"ctrl+z\", this.undoOrAbort.bind(this));\n\n }.bind(this);\n\n reqwest({\n url: 'assets/default.json',\n type: 'json',\n contentType: 'application/json',\n }).then(function(resp) {\n console.log(\"resp\", resp);\n updateKeymap(resp, \"default keymap\");\n });\n }", "function KeyBindings(){\n\t/***** KEY BINDING VARIABLES (defaults set here) *****/\n\tthis.up1 = 119;\t\t\t// 'w'\n\tthis.up2 = 87;\t\t\t// 'W'\n\tthis.up3 = 38;\t\t\t// up arrow\n\tthis.up4 = -1;\t\t\t// unbound\n\t\n\tthis.down1 = 115;\t\t// 's'\n\tthis.down2 = 83;\t\t// 'S'\n\tthis.down3 = 40;\t\t// down arrow\n\tthis.down4 = -1;\t\t// unbound\n\t\n\tthis.left1 = 97;\t\t// 'a'\n\tthis.left2 = 65;\t\t// 'A'\n\tthis.left3 = 37;\t\t// left arrow\n\tthis.left4 = -1;\t\t// unbound\n\t\n\tthis.right1 = 100;\t\t// 'd'\n\tthis.right2 = 68;\t\t// 'D'\n\tthis.right3 = 39;\t\t// right arrow\n\tthis.right4 = -1;\t\t// unbound\n\t\n\tthis.shoot1 = 32;\t\t// space\n\tthis.shoot2 = -1;\t\t// unbound\n\tthis.shoot3 = -1;\t\t// unbound\n\tthis.shoot4 = -1;\t\t// unbound\n\t\n\tthis.pause1 = 27;\t\t// escape\n\tthis.pause2 = -1;\t\t// unbound\n\tthis.pause3 = -1;\t\t// unbound\n\tthis.pause4 = -1;\t\t// unbound\n\t\n\tthis.healthBars1 = 9;\t// tab\n\tthis.healthBars2 = -1;\t// unbound\n\tthis.healthBars3 = -1;\t// unbound\n\tthis.healthBars4 = -1;\t// unbound\n\t\n\tthis.timerBars1 = 9;\t// tab\n\tthis.timerBars2 = -1;\t// unbound\n\tthis.timerBars3 = -1;\t// unbound\n\tthis.timerBars4 = -1;\t// unbound\n\t\n\t\n\t// bind all functions (uses settings to access user database if the user\n\t//\tis logged in to load the user's custom keybindings. Otherwise, it keeps\n\t//\tthe default bindings.\n\tthis.bind = function(settingsObject){\n\t\t// if not logged in, return\n\t\tif(!settingsObject.loggedIn)\n\t\t\treturn;\n\t}\n\t\n\n\t/***** KEYBINDINGS CHECK FUNCTIONS *****/\n\t// returns TRUE if the key binding matches the given key code\n\tthis.upBinding = function(keyCode){ // UP movement\n\t\treturn keyCode == this.up1 || keyCode == this.up2 ||\n\t\t\t keyCode == this.up3 || keyCode == this.up4;\n\t}\n\tthis.downBinding = function(keyCode){ // DOWN movement\n\t\treturn keyCode == this.down1 || keyCode == this.down2 ||\n\t\t\t keyCode == this.down3 || keyCode == this.down4;\n\t}\n\tthis.leftBinding = function(keyCode){ // LEFT movement\n\t\treturn keyCode == this.left1 || keyCode == this.left2 ||\n\t\t\t keyCode == this.left3 || keyCode == this.left4;\n\t}\n\tthis.rightBinding = function(keyCode){ // RIGHT movement\n\t\treturn keyCode == this.right1 || keyCode == this.right2 ||\n\t\t\t keyCode == this.right3 || keyCode == this.right4;\n\t}\n\tthis.shootBinding = function(keyCode){ // SHOOT action\n\t\treturn keyCode == this.shoot1 || keyCode == this.shoot2 ||\n\t\t\t keyCode == this.shoot3 || keyCode == this.shoot4;\n\t}\n\tthis.pauseBinding = function(keyCode){ // PAUSE toggle\n\t\treturn keyCode == this.pause1 || keyCode == this.pause2 ||\n\t\t\t keyCode == this.pause3 || keyCode == this.pause4;\n\t}\n\tthis.healthBarToggleBinding = function(keyCode){ // HEALTH BAR toggle\n\t\treturn keyCode == this.healthBars1 || keyCode == this.healthBars2 ||\n\t\t\t keyCode == this.healthBars3 || keyCode == this.healthBars4;\n\t}\n\tthis.timerBarToggleBinding = function(keyCode){ // TIMER BAR toggle\n\t\treturn keyCode == this.timerBars1 || keyCode == this.timerBars2 ||\n\t\t\t keyCode == this.timerBars3 || keyCode == this.timerBars4;\n\t}\n}", "function normalizeKey(evt) {\n var key = evt.key; // If the event already has a normalized key, return it\n\n if (normalizedKeys.has(key)) {\n return key;\n } // tslint:disable-next-line:deprecation\n\n\n var mappedKey = mappedKeyCodes.get(evt.keyCode);\n\n if (mappedKey) {\n return mappedKey;\n }\n\n return KEY.UNKNOWN;\n}", "bindKeyHandlers() {\n const tank = this.tank;\n\n Object.keys(GameView.MOVES).forEach((k) => {\n const moves = GameView.MOVES[k];\n\n key(k, () => { \n this.gun.pos = [tank.pos[0] + moves[0], tank.pos[1]];\n tank.pos = [tank.pos[0] + moves[0], tank.pos[1]];\n });\n });\n\n key(\"space\", () => { tank.fireBullets() });\n }", "function keyTyped() {\n switch (key) {\n //row: 0 **************************\n case '\\-':\n dKey = '\\[';\n break;\n case '\\=':\n dKey = '\\]';\n break;\n\n //row: 1 **************************\n case 'q':\n dKey = '\\'';\n break;\n case 'w':\n dKey = '\\,';\n break;\n case 'e':\n dKey = '\\.';\n break;\n case 'r':\n dKey = 'p';\n break;\n case 't':\n dKey = 'y';\n break;\n case 'y':\n dKey = 'f';\n break;\n case 'u':\n dKey = 'g';\n break;\n case 'i':\n dKey = 'c';\n break;\n case 'o':\n dKey = 'r';\n break;\n case 'p':\n dKey = 'l';\n break;\n case '\\[':\n dKey = '/';\n break;\n case '\\]':\n dKey = '=';\n break;\n\n //row: 2 ************************************\n case 'a':\n dKey = 'a';\n break;\n case 's':\n dKey = 'o';\n break;\n case 'd':\n dKey = 'e';\n break;\n case 'f':\n dKey = 'u';\n break;\n case 'g':\n dKey = 'i';\n break;\n case 'h':\n dKey = 'd';\n break;\n case 'j':\n dKey = 'h';\n break;\n case 'k':\n dKey = 't';\n break;\n case 'l':\n dKey = 'n';\n break;\n case '\\;':\n dKey = 's';\n break;\n case '\\'':\n dKey = '\\-';\n break;\n case '\\\"': //above shift-case\n dKey = '\\-';\n break;\n\n //row: 3 ****************************************\n case 'z':\n dKey = '\\;';\n break;\n case 'x':\n dKey = 'q';\n break;\n case 'c':\n dKey = 'j';\n break;\n case 'v':\n dKey = 'k';\n break;\n case 'b':\n dKey = 'x';\n break;\n case 'n':\n dKey = 'b';\n break;\n case 'm':\n dKey = 'm';\n break;\n case '\\,':\n dKey = 'w';\n break;\n case '\\.':\n dKey = 'v';\n break;\n case '\\/':\n dKey = 'z';\n break;\n default:\n dKey = key;\n break;\n }\n return false;\n}", "_compileMapping() {\n const { axes, buttons } = this._compiledMapping;\n const axesIndexes = MAPS_INDEXES.axes;\n const buttonsIndexes = MAPS_INDEXES.buttons;\n\n // Clear existing\n axes.length = 0;\n buttons.length = 0;\n\n // Add axes\n const axesMap = this.map.axes;\n if (axesMap) {\n this.map.axes.forEach((axis, i) => {\n axes[axesIndexes[axis]] = () => this.pad.axes[i] || 0;\n });\n }\n\n // Fill empty indexes for axes\n for (let i = 0, l = axes.length; i < l; i++) {\n if (!axes[i]) {\n axes[i] = () => 0;\n }\n }\n\n // Add basic buttons\n const buttonsMap = this.map.buttons;\n if (buttonsMap) {\n buttonsMap.forEach((button, i) => {\n buttons[buttonsIndexes[button]] = () => this._buttons[i] || dummyButton;\n });\n }\n\n // Add synthesized buttons\n const synthesizedButtonsMap = this.map.synthesizedButtons;\n if (synthesizedButtonsMap) {\n Object.entries(synthesizedButtonsMap).forEach((button) => {\n const { axis, max, min } = button[1];\n buttons[buttonsIndexes[button[0]]] = () => new GamePadButton(\n Math.abs(math.clamp(this._axes[axis] ?? 0, min, max)),\n Math.abs(math.clamp(this._previousAxes[axis] ?? 0, min, max))\n );\n });\n }\n\n // Fill empty indexes for buttons\n for (let i = 0, l = buttons.length; i < l; i++) {\n if (!buttons[i]) {\n buttons[i] = () => dummyButton;\n }\n }\n }", "function keycharm(options) {\n var preventDefault = options && options.preventDefault || false;\n var container = options && options.container || window;\n var _exportFunctions = {};\n var _bound = {\n keydown: {},\n keyup: {}\n };\n var _keys = {};\n var i; // a - z\n\n for (i = 97; i <= 122; i++) {\n _keys[String.fromCharCode(i)] = {\n code: 65 + (i - 97),\n shift: false\n };\n } // A - Z\n\n\n for (i = 65; i <= 90; i++) {\n _keys[String.fromCharCode(i)] = {\n code: i,\n shift: true\n };\n } // 0 - 9\n\n\n for (i = 0; i <= 9; i++) {\n _keys['' + i] = {\n code: 48 + i,\n shift: false\n };\n } // F1 - F12\n\n\n for (i = 1; i <= 12; i++) {\n _keys['F' + i] = {\n code: 111 + i,\n shift: false\n };\n } // num0 - num9\n\n\n for (i = 0; i <= 9; i++) {\n _keys['num' + i] = {\n code: 96 + i,\n shift: false\n };\n } // numpad misc\n\n\n _keys['num*'] = {\n code: 106,\n shift: false\n };\n _keys['num+'] = {\n code: 107,\n shift: false\n };\n _keys['num-'] = {\n code: 109,\n shift: false\n };\n _keys['num/'] = {\n code: 111,\n shift: false\n };\n _keys['num.'] = {\n code: 110,\n shift: false\n }; // arrows\n\n _keys['left'] = {\n code: 37,\n shift: false\n };\n _keys['up'] = {\n code: 38,\n shift: false\n };\n _keys['right'] = {\n code: 39,\n shift: false\n };\n _keys['down'] = {\n code: 40,\n shift: false\n }; // extra keys\n\n _keys['space'] = {\n code: 32,\n shift: false\n };\n _keys['enter'] = {\n code: 13,\n shift: false\n };\n _keys['shift'] = {\n code: 16,\n shift: undefined\n };\n _keys['esc'] = {\n code: 27,\n shift: false\n };\n _keys['backspace'] = {\n code: 8,\n shift: false\n };\n _keys['tab'] = {\n code: 9,\n shift: false\n };\n _keys['ctrl'] = {\n code: 17,\n shift: false\n };\n _keys['alt'] = {\n code: 18,\n shift: false\n };\n _keys['delete'] = {\n code: 46,\n shift: false\n };\n _keys['pageup'] = {\n code: 33,\n shift: false\n };\n _keys['pagedown'] = {\n code: 34,\n shift: false\n }; // symbols\n\n _keys['='] = {\n code: 187,\n shift: false\n };\n _keys['-'] = {\n code: 189,\n shift: false\n };\n _keys[']'] = {\n code: 221,\n shift: false\n };\n _keys['['] = {\n code: 219,\n shift: false\n };\n\n var down = function (event) {\n handleEvent(event, 'keydown');\n };\n\n var up = function (event) {\n handleEvent(event, 'keyup');\n }; // handle the actualy bound key with the event\n\n\n var handleEvent = function (event, type) {\n if (_bound[type][event.keyCode] !== undefined) {\n var bound = _bound[type][event.keyCode];\n\n for (var i = 0; i < bound.length; i++) {\n if (bound[i].shift === undefined) {\n bound[i].fn(event);\n } else if (bound[i].shift == true && event.shiftKey == true) {\n bound[i].fn(event);\n } else if (bound[i].shift == false && event.shiftKey == false) {\n bound[i].fn(event);\n }\n }\n\n if (preventDefault == true) {\n event.preventDefault();\n }\n }\n }; // bind a key to a callback\n\n\n _exportFunctions.bind = function (key, callback, type) {\n if (type === undefined) {\n type = 'keydown';\n }\n\n if (_keys[key] === undefined) {\n throw new Error(\"unsupported key: \" + key);\n }\n\n if (_bound[type][_keys[key].code] === undefined) {\n _bound[type][_keys[key].code] = [];\n }\n\n _bound[type][_keys[key].code].push({\n fn: callback,\n shift: _keys[key].shift\n });\n }; // bind all keys to a call back (demo purposes)\n\n\n _exportFunctions.bindAll = function (callback, type) {\n if (type === undefined) {\n type = 'keydown';\n }\n\n for (var key in _keys) {\n if (_keys.hasOwnProperty(key)) {\n _exportFunctions.bind(key, callback, type);\n }\n }\n }; // get the key label from an event\n\n\n _exportFunctions.getKey = function (event) {\n for (var key in _keys) {\n if (_keys.hasOwnProperty(key)) {\n if (event.shiftKey == true && _keys[key].shift == true && event.keyCode == _keys[key].code) {\n return key;\n } else if (event.shiftKey == false && _keys[key].shift == false && event.keyCode == _keys[key].code) {\n return key;\n } else if (event.keyCode == _keys[key].code && key == 'shift') {\n return key;\n }\n }\n }\n\n return \"unknown key, currently not supported\";\n }; // unbind either a specific callback from a key or all of them (by leaving callback undefined)\n\n\n _exportFunctions.unbind = function (key, callback, type) {\n if (type === undefined) {\n type = 'keydown';\n }\n\n if (_keys[key] === undefined) {\n throw new Error(\"unsupported key: \" + key);\n }\n\n if (callback !== undefined) {\n var newBindings = [];\n var bound = _bound[type][_keys[key].code];\n\n if (bound !== undefined) {\n for (var i = 0; i < bound.length; i++) {\n if (!(bound[i].fn == callback && bound[i].shift == _keys[key].shift)) {\n newBindings.push(_bound[type][_keys[key].code][i]);\n }\n }\n }\n\n _bound[type][_keys[key].code] = newBindings;\n } else {\n _bound[type][_keys[key].code] = [];\n }\n }; // reset all bound variables.\n\n\n _exportFunctions.reset = function () {\n _bound = {\n keydown: {},\n keyup: {}\n };\n }; // unbind all listeners and reset all variables.\n\n\n _exportFunctions.destroy = function () {\n _bound = {\n keydown: {},\n keyup: {}\n };\n container.removeEventListener('keydown', down, true);\n container.removeEventListener('keyup', up, true);\n }; // create listeners.\n\n\n container.addEventListener('keydown', down, true);\n container.addEventListener('keyup', up, true); // return the public functions.\n\n return _exportFunctions;\n}", "initKeyCodes() {\n let keyCode;\n const keyCodes = {};\n\n for (let name in this.config) {\n if (name in keyCodeMap) {\n // special cases ('ctrl', 'shift', etc)\n keyCode = keyCodeMap[name];\n } else {\n // letters and numbers\n keyCode = name.toUpperCase().charCodeAt();\n }\n\n keyCodes[keyCode] = this.config[name];\n }\n\n this.keyCodes = keyCodes;\n }", "function updateActiveState() {\n const active = tableEditor.cursorIsInTable();\n if (active) {\n editor.setOption(\"extraKeys\", keyMap);\n }\n else {\n editor.setOption(\"extraKeys\", null);\n tableEditor.resetSmartCursor();\n }\n }", "function updateActiveState() {\n const active = tableEditor.cursorIsInTable();\n if (active) {\n editor.setOption(\"extraKeys\", keyMap);\n }\n else {\n editor.setOption(\"extraKeys\", null);\n tableEditor.resetSmartCursor();\n }\n }", "function changeKeys (src, dest) {\n for (var i in src) {\n if (typeof src[i] === 'object') {\n dest[escapedSingleQuotes + i +\n escapedSingleQuotes] = {};\n changeKeys(src[i], dest[escapedSingleQuotes + i +\n escapedSingleQuotes]);\n } else {\n dest[escapedSingleQuotes + i +\n escapedSingleQuotes] = src[i];\n }\n }\n return dest;\n }", "function _keyPathNormalize(kp) {\n return new String(kp).replace(/\\[([^\\[\\]]+)\\]/g, function(m, k) {\n return '.' + k.replace(/^[\"']|[\"']$/g, '')\n })\n}", "function _keyPathNormalize(kp) {\n\t return String(kp).replace(/\\[([^\\[\\]]+)\\]/g, function(m, k) {\n\t return '.' + k.replace(/^[\"']|[\"']$/g, '')\n\t })\n\t}", "function KeyMap(unicode, encodingRoman, encoding, attached)\n{\n this.unicode = unicode;\n this.encodingRoman = encodingRoman;\n this.encoding = encoding;\n if (!attached)\n attached = false;\n this.attached = attached;\n}", "function keyCleanup(oldKey, newKey, obj) {\n\tdelete Object.assign(obj, {\n\t\t[newKey]: obj[oldKey]\n\t})[oldKey];\n}", "function wrapApplyOnBindings(bindings)\n\t{\n\t\tbindings.apply = function(key)\n\t\t{\n\t\t\tfor (var index in bindings)\n\t\t\t{\n\t\t\t\tif (index !== 'apply' && typeof bindings[index].apply === 'function')\n\t\t\t\t{\n\t\t\t\t\tif (key) bindings[index].key === key && bindings[index].apply();\n\t\t\t\t\telse bindings[index].apply();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn bindings;\n\t}", "function userKeyMap (settings) {\r\n var keyMapCopy = Object.assign({}, defaultKeyMap)\r\n if (settings) {\r\n // override the default keymap by the user defined ones\r\n Object.keys(keyMapCopy).forEach(function (key) {\r\n if (settings[key]) {\r\n keyMapCopy[key] = settings[key]\r\n }\r\n })\r\n }\r\n return keyMapCopy\r\n}", "function normalizeKey(evt) {\n var key = evt.key;\n // If the event already has a normalized key, return it\n if (normalizedKeys.has(key)) {\n return key;\n }\n // tslint:disable-next-line:deprecation\n var mappedKey = mappedKeyCodes.get(evt.keyCode);\n if (mappedKey) {\n return mappedKey;\n }\n return KEY.UNKNOWN;\n }", "function replaceKeys(object) {\n Object.keys(object).forEach(function(key) {\n var newKey = key.replace(/\\s+/g, '').toLowerCase();\n if (object[key] && typeof object[key] === 'object') {\n replaceKeys(object[key]);\n }\n if (key !== newKey) {\n object[newKey] = object[key];\n delete object[key];\n }\n });\n}", "function normalizeKey(evt) {\n var key = evt.key;\n // If the event already has a normalized key, return it\n if (normalizedKeys.has(key)) {\n return key;\n }\n // tslint:disable-next-line:deprecation\n var mappedKey = mappedKeyCodes.get(evt.keyCode);\n if (mappedKey) {\n return mappedKey;\n }\n return exports.KEY.UNKNOWN;\n}", "resetKeys(){\n for (let key of Object.keys(this.keyAssignment)) {\n // set property pressed to false for each key\n this.keyAssignment[key][2] = false;\n }\n }", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function getDefaultKeyBinding(e) {\n switch (e.keyCode) {\n case 66:\n // B\n return hasCommandModifier(e) ? 'bold' : null;\n case 68:\n // D\n return isCtrlKeyCommand(e) ? 'delete' : null;\n case 72:\n // H\n return isCtrlKeyCommand(e) ? 'backspace' : null;\n case 73:\n // I\n return hasCommandModifier(e) ? 'italic' : null;\n case 74:\n // J\n return hasCommandModifier(e) ? 'code' : null;\n case 75:\n // K\n return !isWindows && isCtrlKeyCommand(e) ? 'secondary-cut' : null;\n case 77:\n // M\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 79:\n // O\n return isCtrlKeyCommand(e) ? 'split-block' : null;\n case 84:\n // T\n return isOSX && isCtrlKeyCommand(e) ? 'transpose-characters' : null;\n case 85:\n // U\n return hasCommandModifier(e) ? 'underline' : null;\n case 87:\n // W\n return isOSX && isCtrlKeyCommand(e) ? 'backspace-word' : null;\n case 89:\n // Y\n if (isCtrlKeyCommand(e)) {\n return isWindows ? 'redo' : 'secondary-paste';\n }\n return null;\n case 90:\n // Z\n return getZCommand(e) || null;\n case Keys.RETURN:\n return 'split-block';\n case Keys.DELETE:\n return getDeleteCommand(e);\n case Keys.BACKSPACE:\n return getBackspaceCommand(e);\n // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n case Keys.LEFT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-start-of-block' : null;\n case Keys.RIGHT:\n return shouldFixFirefoxMovement && hasCommandModifier(e) ? 'move-selection-to-end-of-block' : null;\n default:\n return null;\n }\n}", "function fixShortcut(e){return e=isMac?e.replace(\"Ctrl\",\"Cmd\"):e.replace(\"Cmd\",\"Ctrl\")}", "function swapKeySet(newKeys) {\n activeKeySet = newKeys;\n clearKeySpace();\n drawKeys(activeKeySet);\n }", "function prepBindings(bindings) {\n\t\t\tvar scope = {}; // Objects of functions\n\t\t\tvar attr = {}; // Object\n\n\t\t\t// Run through each binding and create the needed attr and scope\n\t\t\tangular.forEach(bindings, function(val, key) {\n\t\t\t\tattr[kebabCase(key)] = typeof val === 'function' ? key + '({ res: res });' : key\n\t\t\t\tscope[key] = val;\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tscope: scope,\n\t\t\t\tattr: attr\n\t\t\t}\n\t\t}", "function updateStylingMap(context, classesInput, stylesInput, directiveRef) {\n stylesInput = stylesInput || null;\n var directiveIndex = getDirectiveIndexFromRegistry(context, directiveRef || null);\n var element = context[5 /* ElementPosition */];\n var classesPlayerBuilder = classesInput instanceof BoundPlayerFactory ?\n new ClassAndStylePlayerBuilder(classesInput, element, 1 /* Class */) :\n null;\n var stylesPlayerBuilder = stylesInput instanceof BoundPlayerFactory ?\n new ClassAndStylePlayerBuilder(stylesInput, element, 2 /* Style */) :\n null;\n var classesValue = classesPlayerBuilder ?\n classesInput.value :\n classesInput;\n var stylesValue = stylesPlayerBuilder ? stylesInput.value : stylesInput;\n // early exit (this is what's done to avoid using ctx.bind() to cache the value)\n var ignoreAllClassUpdates = limitToSingleClasses(context) || classesValue === NO_CHANGE ||\n classesValue === context[6 /* CachedClassValueOrInitialClassString */];\n var ignoreAllStyleUpdates = stylesValue === NO_CHANGE || stylesValue === context[7 /* CachedStyleValue */];\n if (ignoreAllClassUpdates && ignoreAllStyleUpdates)\n return;\n context[6 /* CachedClassValueOrInitialClassString */] = classesValue;\n context[7 /* CachedStyleValue */] = stylesValue;\n var classNames = EMPTY_ARRAY;\n var applyAllClasses = false;\n var playerBuildersAreDirty = false;\n var classesPlayerBuilderIndex = classesPlayerBuilder ? 1 /* ClassMapPlayerBuilderPosition */ : 0;\n if (hasPlayerBuilderChanged(context, classesPlayerBuilder, 1 /* ClassMapPlayerBuilderPosition */)) {\n setPlayerBuilder(context, classesPlayerBuilder, 1 /* ClassMapPlayerBuilderPosition */);\n playerBuildersAreDirty = true;\n }\n var stylesPlayerBuilderIndex = stylesPlayerBuilder ? 3 /* StyleMapPlayerBuilderPosition */ : 0;\n if (hasPlayerBuilderChanged(context, stylesPlayerBuilder, 3 /* StyleMapPlayerBuilderPosition */)) {\n setPlayerBuilder(context, stylesPlayerBuilder, 3 /* StyleMapPlayerBuilderPosition */);\n playerBuildersAreDirty = true;\n }\n // each time a string-based value pops up then it shouldn't require a deep\n // check of what's changed.\n if (!ignoreAllClassUpdates) {\n if (typeof classesValue == 'string') {\n classNames = classesValue.split(/\\s+/);\n // this boolean is used to avoid having to create a key/value map of `true` values\n // since a classname string implies that all those classes are added\n applyAllClasses = true;\n }\n else {\n classNames = classesValue ? Object.keys(classesValue) : EMPTY_ARRAY;\n }\n }\n var classes = (classesValue || EMPTY_OBJ);\n var styleProps = stylesValue ? Object.keys(stylesValue) : EMPTY_ARRAY;\n var styles = stylesValue || EMPTY_OBJ;\n var classesStartIndex = styleProps.length;\n var multiStartIndex = getMultiStartIndex(context);\n var dirty = false;\n var ctxIndex = multiStartIndex;\n var propIndex = 0;\n var propLimit = styleProps.length + classNames.length;\n // the main loop here will try and figure out how the shape of the provided\n // styles differ with respect to the context. Later if the context/styles/classes\n // are off-balance then they will be dealt in another loop after this one\n while (ctxIndex < context.length && propIndex < propLimit) {\n var isClassBased = propIndex >= classesStartIndex;\n var processValue = (!isClassBased && !ignoreAllStyleUpdates) || (isClassBased && !ignoreAllClassUpdates);\n // when there is a cache-hit for a string-based class then we should\n // avoid doing any work diffing any of the changes\n if (processValue) {\n var adjustedPropIndex = isClassBased ? propIndex - classesStartIndex : propIndex;\n var newProp = isClassBased ? classNames[adjustedPropIndex] : styleProps[adjustedPropIndex];\n var newValue = isClassBased ? (applyAllClasses ? true : classes[newProp]) : styles[newProp];\n var playerBuilderIndex = isClassBased ? classesPlayerBuilderIndex : stylesPlayerBuilderIndex;\n var prop = getProp(context, ctxIndex);\n if (prop === newProp) {\n var value = getValue(context, ctxIndex);\n var flag = getPointers(context, ctxIndex);\n setPlayerBuilderIndex(context, ctxIndex, playerBuilderIndex, directiveIndex);\n if (hasValueChanged(flag, value, newValue)) {\n setValue(context, ctxIndex, newValue);\n playerBuildersAreDirty = playerBuildersAreDirty || !!playerBuilderIndex;\n var initialValue = getInitialValue(context, flag);\n // SKIP IF INITIAL CHECK\n // If the former `value` is `null` then it means that an initial value\n // could be being rendered on screen. If that is the case then there is\n // no point in updating the value incase it matches. In other words if the\n // new value is the exact same as the previously rendered value (which\n // happens to be the initial value) then do nothing.\n if (value != null || hasValueChanged(flag, initialValue, newValue)) {\n setDirty(context, ctxIndex, true);\n dirty = true;\n }\n }\n }\n else {\n var indexOfEntry = findEntryPositionByProp(context, newProp, ctxIndex);\n if (indexOfEntry > 0) {\n // it was found at a later point ... just swap the values\n var valueToCompare = getValue(context, indexOfEntry);\n var flagToCompare = getPointers(context, indexOfEntry);\n swapMultiContextEntries(context, ctxIndex, indexOfEntry);\n if (hasValueChanged(flagToCompare, valueToCompare, newValue)) {\n var initialValue = getInitialValue(context, flagToCompare);\n setValue(context, ctxIndex, newValue);\n // same if statement logic as above (look for SKIP IF INITIAL CHECK).\n if (valueToCompare != null || hasValueChanged(flagToCompare, initialValue, newValue)) {\n setDirty(context, ctxIndex, true);\n playerBuildersAreDirty = playerBuildersAreDirty || !!playerBuilderIndex;\n dirty = true;\n }\n }\n }\n else {\n // we only care to do this if the insertion is in the middle\n var newFlag = prepareInitialFlag(context, newProp, isClassBased, getStyleSanitizer(context, directiveIndex));\n playerBuildersAreDirty = playerBuildersAreDirty || !!playerBuilderIndex;\n insertNewMultiProperty(context, ctxIndex, isClassBased, newProp, newFlag, newValue, directiveIndex, playerBuilderIndex);\n dirty = true;\n }\n }\n }\n ctxIndex += 4 /* Size */;\n propIndex++;\n }\n // this means that there are left-over values in the context that\n // were not included in the provided styles/classes and in this\n // case the goal is to \"remove\" them from the context (by nullifying)\n while (ctxIndex < context.length) {\n var flag = getPointers(context, ctxIndex);\n var isClassBased = (flag & 2 /* Class */) === 2 /* Class */;\n var processValue = (!isClassBased && !ignoreAllStyleUpdates) || (isClassBased && !ignoreAllClassUpdates);\n if (processValue) {\n var value = getValue(context, ctxIndex);\n var doRemoveValue = valueExists(value, isClassBased);\n if (doRemoveValue) {\n setDirty(context, ctxIndex, true);\n setValue(context, ctxIndex, null);\n // we keep the player factory the same so that the `nulled` value can\n // be instructed into the player because removing a style and/or a class\n // is a valid animation player instruction.\n var playerBuilderIndex = isClassBased ? classesPlayerBuilderIndex : stylesPlayerBuilderIndex;\n setPlayerBuilderIndex(context, ctxIndex, playerBuilderIndex, directiveIndex);\n dirty = true;\n }\n }\n ctxIndex += 4 /* Size */;\n }\n // this means that there are left-over properties in the context that\n // were not detected in the context during the loop above. In that\n // case we want to add the new entries into the list\n var sanitizer = getStyleSanitizer(context, directiveIndex);\n while (propIndex < propLimit) {\n var isClassBased = propIndex >= classesStartIndex;\n var processValue = (!isClassBased && !ignoreAllStyleUpdates) || (isClassBased && !ignoreAllClassUpdates);\n if (processValue) {\n var adjustedPropIndex = isClassBased ? propIndex - classesStartIndex : propIndex;\n var prop = isClassBased ? classNames[adjustedPropIndex] : styleProps[adjustedPropIndex];\n var value = isClassBased ? (applyAllClasses ? true : classes[prop]) : styles[prop];\n var flag = prepareInitialFlag(context, prop, isClassBased, sanitizer) | 1 /* Dirty */;\n var playerBuilderIndex = isClassBased ? classesPlayerBuilderIndex : stylesPlayerBuilderIndex;\n var ctxIndex_1 = context.length;\n context.push(flag, prop, value, 0);\n setPlayerBuilderIndex(context, ctxIndex_1, playerBuilderIndex, directiveIndex);\n dirty = true;\n }\n propIndex++;\n }\n if (dirty) {\n setContextDirty(context, true);\n setDirectiveDirty(context, directiveIndex, true);\n }\n if (playerBuildersAreDirty) {\n setContextPlayersDirty(context, true);\n }\n}", "function updateStylingMap(context, classesInput, stylesInput, directiveRef) {\n stylesInput = stylesInput || null;\n var directiveIndex = getDirectiveIndexFromRegistry(context, directiveRef || null);\n var element = context[5 /* ElementPosition */];\n var classesPlayerBuilder = classesInput instanceof BoundPlayerFactory ?\n new ClassAndStylePlayerBuilder(classesInput, element, 1 /* Class */) :\n null;\n var stylesPlayerBuilder = stylesInput instanceof BoundPlayerFactory ?\n new ClassAndStylePlayerBuilder(stylesInput, element, 2 /* Style */) :\n null;\n var classesValue = classesPlayerBuilder ?\n classesInput.value :\n classesInput;\n var stylesValue = stylesPlayerBuilder ? stylesInput.value : stylesInput;\n // early exit (this is what's done to avoid using ctx.bind() to cache the value)\n var ignoreAllClassUpdates = limitToSingleClasses(context) || classesValue === NO_CHANGE ||\n classesValue === context[6 /* CachedClassValueOrInitialClassString */];\n var ignoreAllStyleUpdates = stylesValue === NO_CHANGE || stylesValue === context[7 /* CachedStyleValue */];\n if (ignoreAllClassUpdates && ignoreAllStyleUpdates)\n return;\n context[6 /* CachedClassValueOrInitialClassString */] = classesValue;\n context[7 /* CachedStyleValue */] = stylesValue;\n var classNames = EMPTY_ARRAY;\n var applyAllClasses = false;\n var playerBuildersAreDirty = false;\n var classesPlayerBuilderIndex = classesPlayerBuilder ? 1 /* ClassMapPlayerBuilderPosition */ : 0;\n if (hasPlayerBuilderChanged(context, classesPlayerBuilder, 1 /* ClassMapPlayerBuilderPosition */)) {\n setPlayerBuilder(context, classesPlayerBuilder, 1 /* ClassMapPlayerBuilderPosition */);\n playerBuildersAreDirty = true;\n }\n var stylesPlayerBuilderIndex = stylesPlayerBuilder ? 3 /* StyleMapPlayerBuilderPosition */ : 0;\n if (hasPlayerBuilderChanged(context, stylesPlayerBuilder, 3 /* StyleMapPlayerBuilderPosition */)) {\n setPlayerBuilder(context, stylesPlayerBuilder, 3 /* StyleMapPlayerBuilderPosition */);\n playerBuildersAreDirty = true;\n }\n // each time a string-based value pops up then it shouldn't require a deep\n // check of what's changed.\n if (!ignoreAllClassUpdates) {\n if (typeof classesValue == 'string') {\n classNames = classesValue.split(/\\s+/);\n // this boolean is used to avoid having to create a key/value map of `true` values\n // since a classname string implies that all those classes are added\n applyAllClasses = true;\n }\n else {\n classNames = classesValue ? Object.keys(classesValue) : EMPTY_ARRAY;\n }\n }\n var classes = (classesValue || EMPTY_OBJ);\n var styleProps = stylesValue ? Object.keys(stylesValue) : EMPTY_ARRAY;\n var styles = stylesValue || EMPTY_OBJ;\n var classesStartIndex = styleProps.length;\n var multiStartIndex = getMultiStartIndex(context);\n var dirty = false;\n var ctxIndex = multiStartIndex;\n var propIndex = 0;\n var propLimit = styleProps.length + classNames.length;\n // the main loop here will try and figure out how the shape of the provided\n // styles differ with respect to the context. Later if the context/styles/classes\n // are off-balance then they will be dealt in another loop after this one\n while (ctxIndex < context.length && propIndex < propLimit) {\n var isClassBased = propIndex >= classesStartIndex;\n var processValue = (!isClassBased && !ignoreAllStyleUpdates) || (isClassBased && !ignoreAllClassUpdates);\n // when there is a cache-hit for a string-based class then we should\n // avoid doing any work diffing any of the changes\n if (processValue) {\n var adjustedPropIndex = isClassBased ? propIndex - classesStartIndex : propIndex;\n var newProp = isClassBased ? classNames[adjustedPropIndex] : styleProps[adjustedPropIndex];\n var newValue = isClassBased ? (applyAllClasses ? true : classes[newProp]) : styles[newProp];\n var playerBuilderIndex = isClassBased ? classesPlayerBuilderIndex : stylesPlayerBuilderIndex;\n var prop = getProp(context, ctxIndex);\n if (prop === newProp) {\n var value = getValue(context, ctxIndex);\n var flag = getPointers(context, ctxIndex);\n setPlayerBuilderIndex(context, ctxIndex, playerBuilderIndex, directiveIndex);\n if (hasValueChanged(flag, value, newValue)) {\n setValue(context, ctxIndex, newValue);\n playerBuildersAreDirty = playerBuildersAreDirty || !!playerBuilderIndex;\n var initialValue = getInitialValue(context, flag);\n // SKIP IF INITIAL CHECK\n // If the former `value` is `null` then it means that an initial value\n // could be being rendered on screen. If that is the case then there is\n // no point in updating the value incase it matches. In other words if the\n // new value is the exact same as the previously rendered value (which\n // happens to be the initial value) then do nothing.\n if (value != null || hasValueChanged(flag, initialValue, newValue)) {\n setDirty(context, ctxIndex, true);\n dirty = true;\n }\n }\n }\n else {\n var indexOfEntry = findEntryPositionByProp(context, newProp, ctxIndex);\n if (indexOfEntry > 0) {\n // it was found at a later point ... just swap the values\n var valueToCompare = getValue(context, indexOfEntry);\n var flagToCompare = getPointers(context, indexOfEntry);\n swapMultiContextEntries(context, ctxIndex, indexOfEntry);\n if (hasValueChanged(flagToCompare, valueToCompare, newValue)) {\n var initialValue = getInitialValue(context, flagToCompare);\n setValue(context, ctxIndex, newValue);\n // same if statement logic as above (look for SKIP IF INITIAL CHECK).\n if (valueToCompare != null || hasValueChanged(flagToCompare, initialValue, newValue)) {\n setDirty(context, ctxIndex, true);\n playerBuildersAreDirty = playerBuildersAreDirty || !!playerBuilderIndex;\n dirty = true;\n }\n }\n }\n else {\n // we only care to do this if the insertion is in the middle\n var newFlag = prepareInitialFlag(context, newProp, isClassBased, getStyleSanitizer(context, directiveIndex));\n playerBuildersAreDirty = playerBuildersAreDirty || !!playerBuilderIndex;\n insertNewMultiProperty(context, ctxIndex, isClassBased, newProp, newFlag, newValue, directiveIndex, playerBuilderIndex);\n dirty = true;\n }\n }\n }\n ctxIndex += 4 /* Size */;\n propIndex++;\n }\n // this means that there are left-over values in the context that\n // were not included in the provided styles/classes and in this\n // case the goal is to \"remove\" them from the context (by nullifying)\n while (ctxIndex < context.length) {\n var flag = getPointers(context, ctxIndex);\n var isClassBased = (flag & 2 /* Class */) === 2 /* Class */;\n var processValue = (!isClassBased && !ignoreAllStyleUpdates) || (isClassBased && !ignoreAllClassUpdates);\n if (processValue) {\n var value = getValue(context, ctxIndex);\n var doRemoveValue = valueExists(value, isClassBased);\n if (doRemoveValue) {\n setDirty(context, ctxIndex, true);\n setValue(context, ctxIndex, null);\n // we keep the player factory the same so that the `nulled` value can\n // be instructed into the player because removing a style and/or a class\n // is a valid animation player instruction.\n var playerBuilderIndex = isClassBased ? classesPlayerBuilderIndex : stylesPlayerBuilderIndex;\n setPlayerBuilderIndex(context, ctxIndex, playerBuilderIndex, directiveIndex);\n dirty = true;\n }\n }\n ctxIndex += 4 /* Size */;\n }\n // this means that there are left-over properties in the context that\n // were not detected in the context during the loop above. In that\n // case we want to add the new entries into the list\n var sanitizer = getStyleSanitizer(context, directiveIndex);\n while (propIndex < propLimit) {\n var isClassBased = propIndex >= classesStartIndex;\n var processValue = (!isClassBased && !ignoreAllStyleUpdates) || (isClassBased && !ignoreAllClassUpdates);\n if (processValue) {\n var adjustedPropIndex = isClassBased ? propIndex - classesStartIndex : propIndex;\n var prop = isClassBased ? classNames[adjustedPropIndex] : styleProps[adjustedPropIndex];\n var value = isClassBased ? (applyAllClasses ? true : classes[prop]) : styles[prop];\n var flag = prepareInitialFlag(context, prop, isClassBased, sanitizer) | 1 /* Dirty */;\n var playerBuilderIndex = isClassBased ? classesPlayerBuilderIndex : stylesPlayerBuilderIndex;\n var ctxIndex_1 = context.length;\n context.push(flag, prop, value, 0);\n setPlayerBuilderIndex(context, ctxIndex_1, playerBuilderIndex, directiveIndex);\n dirty = true;\n }\n propIndex++;\n }\n if (dirty) {\n setContextDirty(context, true);\n setDirectiveDirty(context, directiveIndex, true);\n }\n if (playerBuildersAreDirty) {\n setContextPlayersDirty(context, true);\n }\n}", "function bindKey(event) {\n\t\t//index of keybind that contains the selected key (for conflicts)\n\t\tlet i = CS.keyBinds.findIndex(item => item[1] === event.keyCode || item[2] === event.key)\n\t\t//index of keybind that contains the selected function\n\t\tlet j = CS.keyBinds.findIndex(item => item[0] === ctrl.key2bind.action)\n\n\t\t//key is unchanged, do nothing\n\t\tif(i > -1 && i === j) {\n\t\t\tCS.popup = false;\n\t\t\tCS.keyBinding = false;\n\t\t}\n\t\t//key is in conflict\n\t\telse if(i > -1) {\n\t\t\tlet msg = 'Konflikt, stiskněte jinou klávesu.';\n\t\t\t(CS.popup.lines.slice(-1)[0] !== msg) && CS.popup.lines.push(msg);\n\t\t}\n\t\t//set the new key\n\t\telse {\n\t\t\tCS.keyBinds[j][1] = event.keyCode;\n\t\t\tCS.keyBinds[j][2] = event.key;\n\t\t\tCS.popup = false;\n\t\t\tCS.keyBinding = false;\n\t\t\tpopup('OK', true, 600);\n\t\t}\n\t}", "function normalizeKey$1(key) {\n\t switch (typeof key) {\n\t case 'undefined':\n\t return null;\n\t case 'number':\n\t if (key === Infinity || key === -Infinity || isNaN(key)) {\n\t return null;\n\t }\n\t return key;\n\t case 'object':\n\t var origKey = key;\n\t if (Array.isArray(key)) {\n\t var len = key.length;\n\t key = new Array(len);\n\t for (var i = 0; i < len; i++) {\n\t key[i] = normalizeKey$1(origKey[i]);\n\t }\n\t /* istanbul ignore next */\n\t } else if (key instanceof Date) {\n\t return key.toJSON();\n\t } else if (key !== null) { // generic object\n\t key = {};\n\t for (var k in origKey) {\n\t if (origKey.hasOwnProperty(k)) {\n\t var val = origKey[k];\n\t if (typeof val !== 'undefined') {\n\t key[k] = normalizeKey$1(val);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t return key;\n\t}", "resetMap() {\n if (custom_maps[this.id]) {\n delete custom_maps[this.id];\n\n const map = getMap(this.pad);\n this.map = map;\n this.mapping = map.mapping;\n\n this._compileMapping();\n }\n }", "use (key, fnConvert) {\n this.spaces[key] = fnConvert\n return this\n }", "defineMovementKeys() {\n const props = this.props;\n let keyUp = props.keyUp,\n keyDown = props.keyDown,\n keyEnter = props.keyEnter,\n keyLeave = props.keyLeave,\n getObjectArray;\n getObjectArray = (keys) => {\n return keys.map(key => {\n let splitted;\n if (typeof key===\"number\") {\n return {\n key\n };\n }\n if (key.itsa_contains(\"+\")) {\n // special key present\n splitted = key.split(\"+\");\n return {\n key: parseInt(splitted.pop(), 10),\n special: splitted.map(item => SPECIAL_KEYS[item])\n };\n }\n return {\n key: parseInt(key, 10)\n };\n });\n };\n // first handle keyUp:\n Array.isArray(keyUp) || (keyUp=[keyUp]);\n this._keysUp = getObjectArray(keyUp);\n // next keyDown:\n Array.isArray(keyDown) || (keyDown=[keyDown]);\n this._keysDown = getObjectArray(keyDown);\n // next keyEnter:\n Array.isArray(keyEnter) || (keyEnter=keyEnter ? [keyEnter] : []);\n this._keysEnter = getObjectArray(keyEnter);\n // next keyLeave:\n Array.isArray(keyLeave) || (keyLeave=[keyLeave]);\n this._keysLeave = getObjectArray(keyLeave);\n }", "function preprocessNode(node){\n \n if (!validateBindingNode(node)){\n return;\n }\n \n var bindingAttributes = getBindingAttributesArray(node);\n \n if (bindingAttributes.length === 0) {\n return;\n }\n \n var dataBindAttribute = node.getAttribute(regularBindingAttributeName);\n var existingBindings = convertBindingsStringToObject(dataBindAttribute);\n\n for (var i = 0; i < bindingAttributes.length; i++) {\n appendBindingsFromAttribute(existingBindings, bindingAttributes[i]); \n } \n \n node.setAttribute(regularBindingAttributeName, objectLiteralToString(existingBindings)); \n }" ]
[ "0.68514186", "0.66198206", "0.6603239", "0.6603239", "0.6602559", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.65583634", "0.58321124", "0.55477774", "0.55415845", "0.5539959", "0.5285286", "0.52666867", "0.5222396", "0.52145827", "0.52066725", "0.52066725", "0.52066725", "0.52066725", "0.52066725", "0.51736027", "0.5042384", "0.48980305", "0.48737538", "0.48691168", "0.48547927", "0.4815589", "0.48059303", "0.48059303", "0.48059303", "0.48059303", "0.47902557", "0.47738057", "0.474464", "0.47445288", "0.4728582", "0.47196114", "0.47146082", "0.47114626", "0.47023422", "0.46950185", "0.46779987", "0.46592298", "0.46592298", "0.46501756", "0.46444193", "0.462462", "0.46244696", "0.45986202", "0.45938313", "0.4593435", "0.45921996", "0.45891628", "0.45886922", "0.45877826", "0.45823628", "0.45823628", "0.45823628", "0.45823628", "0.45823628", "0.45823628", "0.45823628", "0.45823628", "0.45823628", "0.45785996", "0.45750985", "0.45726994", "0.45661578", "0.45661578", "0.45473808", "0.45388076", "0.45218444", "0.45184144", "0.45145035", "0.4505049" ]
0.6629671
16
Modifier key presses don't count as 'real' key presses for the purpose of keymap fallthrough.
function isModifierKey(value) { var name = typeof value == "string" ? value : keyNames[value.keyCode]; return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod" }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function usualKeys(e) {\n\t\t\tview.put(String.fromCharCode(e.which));\n\t\t\treturn false;\n\t\t}", "function bufferModifier(e) { return e.shiftKey*1 + e.ctrlKey*2 + e.altKey*4 }", "function keyName(event, noShift) {\n\t\t if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n\t\t var name = keyNames[event.keyCode];\n\t\t if (name == null || event.altGraphKey) { return false }\n\t\t // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n\t\t // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n\t\t if (event.keyCode == 3 && event.code) { name = event.code; }\n\t\t return addModifierNames(name, event, noShift)\n\t\t }", "function ak(a,b){return function(e,k){var action=e.shiftKey||e.ctrlKey||e.altKey||e.metaKey||!self.keyboard.applicationKeypad?a:b;return resolve(action,e,k);};}// If mod or not application cursor a, else b. The keys that care about", "function keyName(event, noShift) {\r\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\r\n var name = keyNames[event.keyCode];\r\n if (name == null || event.altGraphKey) { return false }\r\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\r\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\r\n if (event.keyCode == 3 && event.code) { name = event.code; }\r\n return addModifierNames(name, event, noShift)\r\n}", "function clearModifier(event){\r\n var key = event.keyCode, k,\r\n i = index(_downKeys, key);\r\n \r\n // remove key from _downKeys\r\n if (i >= 0) {\r\n _downKeys.splice(i, 1);\r\n }\r\n \r\n if(key == 93 || key == 224) key = 91;\r\n if(key in _mods) {\r\n _mods[key] = false;\r\n for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\r\n }\r\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }", "_modifiers(e) {\n const [_x, _y] = ELEM.getScrollPosition(0);\n const [x, y] = [Event.pointerX(e), Event.pointerY(e)];\n if (!isNaN(x) || isNaN(y)) {\n this.status.setCrsr(x, y);\n }\n this.status.setAltKey(e.altKey);\n this.status.setCtrlKey(e.ctrlKey);\n this.status.setShiftKey(e.shiftKey);\n this.status.setMetaKey(e.metaKey);\n }", "_modifiers(e) {\n const [_x, _y] = ELEM.getScrollPosition(0);\n const [x, y] = [Event.pointerX(e), Event.pointerY(e)];\n if (!isNaN(x) || isNaN(y)) {\n this.status.setCrsr(x, y);\n }\n this.status.setAltKey(e.altKey);\n this.status.setCtrlKey(e.ctrlKey);\n this.status.setShiftKey(e.shiftKey);\n this.status.setMetaKey(e.metaKey);\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n}", "function isModifierKey(value) {\n\t\t var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n\t\t return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n\t\t }", "handleShiftRightKey() {\n this.extendForward();\n this.checkForCursorVisibility();\n }", "function clearModifier(event){\n var key = event.keyCode, k,\n i = index(_downKeys, key);\n\n // remove key from _downKeys\n if (i >= 0) {\n _downKeys.splice(i, 1);\n }\n\n if(key == 93 || key == 224) key = 91;\n if(key in _mods) {\n _mods[key] = false;\n for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n }\n }", "function clearModifier(event){\n\t var key = event.keyCode, k,\n\t i = index(_downKeys, key);\n\t\n\t // remove key from _downKeys\n\t if (i >= 0) {\n\t _downKeys.splice(i, 1);\n\t }\n\t\n\t if(key == 93 || key == 224) key = 91;\n\t if(key in _mods) {\n\t _mods[key] = false;\n\t for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n\t }\n\t }", "function clearModifier(event){\n\t var key = event.keyCode, k,\n\t i = index(_downKeys, key);\n\t\n\t // remove key from _downKeys\n\t if (i >= 0) {\n\t _downKeys.splice(i, 1);\n\t }\n\t\n\t if(key == 93 || key == 224) key = 91;\n\t if(key in _mods) {\n\t _mods[key] = false;\n\t for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n\t }\n\t }", "function modifKey(e) \n{\n var modif=''; \n if (event.altKey) \n {\n modif+='[ Alt ] ';\n } \n if (event.ctrlKey) \n {\n modif+='[ Ctrl ] ';\n } \n if (event.shiftKey) \n {\n modif+='[ Shift ] ';\n } \n getKey(e,modif); \n}", "function clearModifier(event){\n var key = event.keyCode, k,\n i = index(_downKeys, key);\n\n // remove key from _downKeys\n if (i >= 0) {\n _downKeys.splice(i, 1);\n }\n\n if(key == 93 || key == 224) key = 91;\n if(key in _mods) {\n _mods[key] = false;\n for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n }\n }", "function clearModifier(event){\n var key = event.keyCode, k,\n i = index(_downKeys, key);\n\n // remove key from _downKeys\n if (i >= 0) {\n _downKeys.splice(i, 1);\n }\n\n if(key == 93 || key == 224) key = 91;\n if(key in _mods) {\n _mods[key] = false;\n for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n }\n }", "function clearModifier(event){\n var key = event.keyCode, k,\n i = index(_downKeys, key);\n\n // remove key from _downKeys\n if (i >= 0) {\n _downKeys.splice(i, 1);\n }\n\n if(key == 93 || key == 224) key = 91;\n if(key in _mods) {\n _mods[key] = false;\n for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n }\n }", "function keyHandler(evt){\n keymap[evt.key] = (evt.type == 'keydown');\n}", "static _HandleKeyDown(e) {\n if (!Keyboard._keys_down.map(i => i.key).includes(e.key.toLowerCase()))\n Keyboard._keys_down.push({key: e.key.toLowerCase(), blocked: false})\n }", "handleControlShiftDownKey() {\n this.extendToParagraphEnd();\n this.checkForCursorVisibility();\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n return addModifierNames(name, event, noShift)\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n return addModifierNames(name, event, noShift)\n}", "function clearModifier(event){\n var key = getKeyCode(event), k,\n i = index(_downKeys, key);\n\n // remove key from _downKeys\n if (i >= 0) {\n _downKeys.splice(i, 1);\n }\n\n if(key == 93 || key == 224) key = 91;\n if(key in _mods) {\n _mods[key] = false;\n for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n }\n }", "function hasModifierKeys(oEvent) {\n\t\treturn oEvent.shiftKey || oEvent.altKey || getCtrlKey(oEvent);\n\t}", "function key_down(event) {\n if (event.shiftKey) {\n shift_key_pressed = true;\n }\n}", "function isModifier(e) {\n\treturn e.ctrlKey || e.altKey || e.metaKey;\n}", "function keyPressDown(event){\n\n let key = (96 <= event.keyCode && event.keyCode <= 105)? event.keyCode - 48 : event.keyCode;\n if(key >= 16 && key <= 18){\n\n if(pressedModifiers.indexOf(key) === -1){\n\n pressedModifiers.push(key);\n }\n if(event.data && event.data.modifierFunc){\n\n event.data.modifierFunc(event);\n }\n\n } else {\n\n if(event.data && event.data.keyFunc){\n\n event.data.keyFunc(event);\n }\n }\n if(event.data && event.data.func){\n\n event.data.func(event);\n }\n for (var handler in waitingForInput) {\n if (waitingForInput.hasOwnProperty(handler)) {\n waitingForInput[handler](event);\n }\n }\n\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\";\n }", "function isModifierKey(value) {\r\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\r\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\r\n}", "function handleKeyDown(event) {\n currentlyPressedKeys[event.keyCode] = true;\n }", "function hasModifier(e) {\n return (e.ctrlKey || e.metaKey || e.shiftKey);\n}", "handleControlShiftUpKey() {\n this.extendToParagraphStart();\n this.checkForCursorVisibility();\n }", "function isModifierKey(event) {\n var isCtrlKey = event.ctrlKey || event.key === CTRL_CHARCODE;\n var isAltKey = event.altKey || event.key === ALT_CHARCODE;\n var isMetaKey = event.metaKey || event.key === META_CHARCODE;\n return isCtrlKey || isAltKey || isMetaKey;\n}", "function controlDown(e)\r\n\t\t{\r\n\t\t\tif (e.keyCode in keyMap)\r\n\t\t\t{\r\n\t\t\t\tkeyMap[e.keyCode] = true;\r\n\t\t\t}\t\r\n\t\t}", "function onKeyDown(e) {\n // do not handle key events when not in input mode\n if (!imode) {\n return;\n }\n\n // only handle special keys here\n specialKey(e);\n }", "handleShiftDownKey() {\n this.extendToNextLine();\n this.checkForCursorVisibility();\n }", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function forbid_key(){ \n /*\n\t//禁止F5\n\tif(event.keyCode==116){\n event.keyCode=0;\n event.returnValue=false;\n }\n */\n \n if(event.shiftKey){\n event.returnValue=false;\n }\n //禁止shift\n \n if(event.altKey){\n event.returnValue=false;\n }\n //禁止alt\n \n if(event.ctrlKey){\n event.returnValue=false;\n }\n //禁止ctrl\n return true;\n}", "handleNonLetterKeys(e) {\n\n switch (e.keyCode) {\n case 37: //left arrow\n case 38: //up arrow\n case 39: //right arrow\n case 40: //down arrow\n break;\n case 16: //shift\n break;\n case 9: //tab\n break;\n }\n }", "_onKeyDown(event) {\n switch (event.keyCode) {\n case 87: // w\n case 38: // up\n this.keys.forward = true;\n break;\n case 65: // a\n case 37: //left\n this.keys.left = true;\n break;\n case 83: // s\n case 40: //down\n this.keys.backward = true;\n break;\n case 68: // d\n case 39: //right\n this.keys.right = true;\n break;\n case 32: // SPACE\n this.keys.space = true;\n break;\n case 16: // SHIFT\n this.keys.run = true;\n break;\n }\n }", "onKeyDown(e) {\n e = e || window.event;\n //console.log(e.shiftKey);\n }", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode]\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode]\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n}", "keyPressed({keyPressed, keyCode}){\n console.log('keypressed, keycode', keyPressed, keyCode);\n if(keyCode === 70){ //f\n requestFullScreen();\n return;\n }\n if(keyCode === 80){ //p\n requestPointerLock();\n return;\n }\n let key = keyCode + '';\n this.keysCurrentlyPressed[key] = {keyPressed, keyCode, clock:new Clock()};\n }", "function keyPress(e) {\n var charCode = getCharCode(e);\n if ( isLowerCaseAlphaKey(charCode) ) {\n capsLockOn = !!e.shiftKey;\n } else if ( isUpperCaseAlphaKey(charCode) ) {\n capsLockOn = !!!e.shiftKey;\n }\n return capsLockOn;\n }", "function TranslateKeys()\n{\n\ttry {\n\t\tvar vReadOnly;\n\t\tvar vDisabled;\n\t\tif (!event) \n\t\t\treturn;\n\t\tif (event.altKey == true)\n\t\t\treturn;\n\t\tif (event.ctrlKey == true)\n\t\t\treturn;\n\t\tif (event.shiftKey == true)\n\t\t\treturn;\n\t\ttry {\n\t\t\tvDisabled = event.srcElement.disabled;\n\t\t\tvReadOnly = event.srcElement.readOnly;\n\t\t}\n\t\tcatch (e) {\n\t\t\tvReadOnly = true;\n\t\t\tvDisabled = true;\n\t\t}\n\t\tif ((event.keyCode == 13) && (vDisabled == false))\n\t\t{\n\t\t\tevent.keyCode = 9; //return -> tab\n\t\t\tevent.cancelBubble = true; \n\t\t\tevent.returnValue = true;\n\t\t\treturn;\n\t\t} \n\t\tif ((event.keyCode == 8) && ((vDisabled == true) || (vReadOnly == true)))\n\t\t{\n\t\t\tevent.keyCode = 0; //backspace -> end\n\t\t\tevent.cancelBubble = true; \n\t\t\tevent.returnValue = true;\n\t\t\treturn;\n\t\t} \n\t} catch (e) {}\n return;\n}", "keyPressed(){\n if(keyCode === 66) {\n this.b = !this.b;\n }\n if(keyCode === 68) {\n this.d = !this.d;\n }\n if(keyCode === 71) {\n this.g = !this.g;\n }\n if(keyCode === 80) {\n this.p = !this.p;\n }\n if(keyCode === 83) {\n this.s = !this.s;\n }\n if(keyCode === 82) {\n this.r = !this.r;\n }\n\n }", "function onKeyDown(evt) {\r\n switch (evt.keyCode) {\r\n case 39: KEY_ARROW_RIGHT = true; break;\r\n case 37: KEY_ARROW_LEFT = true; break;\r\n case 38: KEY_ARROW_UP = true; break;\r\n case 40: KEY_ARROW_DOWN = true; break;\r\n case 16: KEY_SHIFT = true; break;\r\n }\r\n}" ]
[ "0.71554196", "0.6904054", "0.68411905", "0.6807457", "0.67904764", "0.67508173", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6713564", "0.6694698", "0.6694698", "0.667312", "0.667312", "0.667312", "0.667312", "0.667312", "0.667312", "0.66684127", "0.6655814", "0.6628901", "0.66238254", "0.66238254", "0.66125953", "0.6595709", "0.6595709", "0.6595709", "0.65952545", "0.6553957", "0.6546195", "0.6526749", "0.6526749", "0.6526749", "0.6526749", "0.6526749", "0.652387", "0.64915127", "0.6487993", "0.64770204", "0.6464017", "0.6460906", "0.63993114", "0.63910365", "0.63898116", "0.63887185", "0.6384178", "0.63821507", "0.6344521", "0.633557", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6325004", "0.6324579", "0.6322025", "0.6320126", "0.63198894", "0.63148564", "0.63148564", "0.6313202", "0.63040584", "0.63033026", "0.6296375", "0.62641865" ]
0.64971703
60
Look up the name of a key as indicated by an event object.
function keyName(event, noShift) { if (presto && event.keyCode == 34 && event["char"]) { return false } var name = keyNames[event.keyCode]; if (name == null || event.altGraphKey) { return false } // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause, // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+) if (event.keyCode == 3 && event.code) { name = event.code; } return addModifierNames(name, event, noShift) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEventName(event_id) {\n for(var i in event_reference) {\n var obj = event_reference[i];\n if(obj.id === event_id)\n return obj.name;\n }\n return undefined;\n}", "function grabKey(obj, key) {\n return obj[key];\n}", "function getKey(object, key) {\n return object[key];\n}", "function findMatch(e, keyName) {\n for (key in e) {\n if (key === keyName) {\n return e[key];\n }\n }\n }", "function getLookupKey(fhcEvent) {\n let key = fhcEvent.type + \"|\" + fhcEvent.name;\n\n if (\"input\" === fhcEvent.type) {\n // prepend with empty host, input values are universal and not bound to a host\n key = \"|\" + key + \"|\" + fhcEvent.value;\n } else {\n // bind multiline fields to a specific host\n // do not add the value but the lastUsed date, we want to store one or more versions per host\n key = fhcEvent.host + \"|\" + key + \"|\" + fhcEvent.last;\n }\n return key;\n}", "function getEventObj(name) {\n for (var i = 0; i < $scope.events.length; i++) {\n if ($scope.events[i].name == name)\n return $scope.events[i];\n }\n }", "function lookup(key) {\n key = key.toLowerCase();\n \n var item;\n for (var i = 0; i < dict.length; i++) {\n item = dict[i];\n if (item[0] === key) {\n return item[1];\n }\n }\n return null;\n }", "function searchKeyObject(nameKey, obj) {\r\n nameKey = nameKey.toLowerCase();\r\n const keys = Object.keys(obj);\r\n const wantedKey = keys.find(key => key.toLowerCase().includes(nameKey));\r\n return wantedKey ? obj[wantedKey] : false;\r\n}", "function find_item_name(obj, key) {\n if (obj.ItemAliases == undefined) return key;\n let k = 0;\n let name = \"\";\n let aliases = obj.ItemAliases.split(\";\");\n aliases.forEach( function(alias) {\n if (alias.length > k) {\n k = alias.length;\n name = alias;\n };\n });\n return name;\n}", "function getKey(keyFieldName, data) {\n\t\t\tvar key = data[keyFieldName];\n\t\t\treturn key;\n\t\t}", "function search(nameKey){\n for (var i=0; i < lookup.length; i++) {\n if (lookup[i].key === nameKey) {\n return lookup[i].value;\n }\n }\n}", "findKey(obj, fn) {\n for (let key in obj) {\n return fn(obj[key]) ? key : undefined;\n }\n }", "function findObjectFromKey(upperObject,key){\n //get appropriate object\n\n len = Object.keys(upperObject).length\n var sub = \"\";\n for (var i = 0; i < len; i++) {\n sub = Object.keys(upperObject)[i]\n if (upperObject[sub].hasOwnProperty(key)) {\n var foundObject = upperObject[sub];\n }\n }\n return foundObject;\n}", "function identifyKeyFromEvent(event) {\n var key = event.key;\n var keyIdentifier = event.keyIdentifier;\n var location = event.location;\n if (key === Keys.ArrowDown || key === \"Down\" || keyIdentifier === \"Down\") {\n return Keys.ArrowDown;\n } else if (key === Keys.ArrowLeft || key === \"Left\" || keyIdentifier === \"Left\") {\n return Keys.ArrowLeft;\n } else if (key === Keys.ArrowRight || key === \"Right\" || keyIdentifier === \"Right\") {\n return Keys.ArrowRight;\n } else if (key === Keys.ArrowUp || key === \"Up\" || keyIdentifier === \"Up\") {\n return Keys.ArrowUp;\n } else if (key === Keys.Escape || key === \"Esc\" || keyIdentifier === \"U+001B\") {\n return Keys.Escape;\n } else if (key === \"0\" || keyIdentifier === \"U+0030\") {\n return \"0\";\n } else if (key === \"+\" || key === \"Add\" || keyIdentifier === \"U+002B\" || keyIdentifier === \"U+00BB\" || keyIdentifier === \"U+004B\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"+\";\n } else if (key === \"-\" || key === \"Subtract\" || keyIdentifier === \"U+002D\" || keyIdentifier === \"U+00BD\" || keyIdentifier === \"U+004D\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"-\";\n } else {\n return key || keyIdentifier || Keys.Unidentified;\n }\n}", "function identifyKeyFromEvent(event) {\n var key = event.key;\n var keyIdentifier = event.keyIdentifier;\n var location = event.location;\n if (key === Keys.ArrowDown || key === \"Down\" || keyIdentifier === \"Down\") {\n return Keys.ArrowDown;\n } else if (key === Keys.ArrowLeft || key === \"Left\" || keyIdentifier === \"Left\") {\n return Keys.ArrowLeft;\n } else if (key === Keys.ArrowRight || key === \"Right\" || keyIdentifier === \"Right\") {\n return Keys.ArrowRight;\n } else if (key === Keys.ArrowUp || key === \"Up\" || keyIdentifier === \"Up\") {\n return Keys.ArrowUp;\n } else if (key === Keys.Escape || key === \"Esc\" || keyIdentifier === \"U+001B\") {\n return Keys.Escape;\n } else if (key === \"0\" || keyIdentifier === \"U+0030\") {\n return \"0\";\n } else if (key === \"+\" || key === \"Add\" || keyIdentifier === \"U+002B\" || keyIdentifier === \"U+00BB\" || keyIdentifier === \"U+004B\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"+\";\n } else if (key === \"-\" || key === \"Subtract\" || keyIdentifier === \"U+002D\" || keyIdentifier === \"U+00BD\" || keyIdentifier === \"U+004D\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"-\";\n } else {\n return key || keyIdentifier || Keys.Unidentified;\n }\n}", "function identifyKeyFromEvent(event) {\n var key = event.key;\n var keyIdentifier = event.keyIdentifier;\n var location = event.location;\n if (key === Keys.ArrowDown || key === \"Down\" || keyIdentifier === \"Down\") {\n return Keys.ArrowDown;\n } else if (key === Keys.ArrowLeft || key === \"Left\" || keyIdentifier === \"Left\") {\n return Keys.ArrowLeft;\n } else if (key === Keys.ArrowRight || key === \"Right\" || keyIdentifier === \"Right\") {\n return Keys.ArrowRight;\n } else if (key === Keys.ArrowUp || key === \"Up\" || keyIdentifier === \"Up\") {\n return Keys.ArrowUp;\n } else if (key === Keys.Escape || key === \"Esc\" || keyIdentifier === \"U+001B\") {\n return Keys.Escape;\n } else if (key === \"0\" || keyIdentifier === \"U+0030\") {\n return \"0\";\n } else if (key === \"+\" || key === \"Add\" || keyIdentifier === \"U+002B\" || keyIdentifier === \"U+00BB\" || keyIdentifier === \"U+004B\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"+\";\n } else if (key === \"-\" || key === \"Subtract\" || keyIdentifier === \"U+002D\" || keyIdentifier === \"U+00BD\" || keyIdentifier === \"U+004D\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"-\";\n } else {\n return key || keyIdentifier || Keys.Unidentified;\n }\n}", "function identifyKeyFromEvent(event) {\n var key = event.key;\n var keyIdentifier = event.keyIdentifier;\n var location = event.location;\n if (key === Keys.ArrowDown || key === \"Down\" || keyIdentifier === \"Down\") {\n return Keys.ArrowDown;\n } else if (key === Keys.ArrowLeft || key === \"Left\" || keyIdentifier === \"Left\") {\n return Keys.ArrowLeft;\n } else if (key === Keys.ArrowRight || key === \"Right\" || keyIdentifier === \"Right\") {\n return Keys.ArrowRight;\n } else if (key === Keys.ArrowUp || key === \"Up\" || keyIdentifier === \"Up\") {\n return Keys.ArrowUp;\n } else if (key === Keys.Escape || key === \"Esc\" || keyIdentifier === \"U+001B\") {\n return Keys.Escape;\n } else if (key === \"0\" || keyIdentifier === \"U+0030\") {\n return \"0\";\n } else if (key === \"+\" || key === \"Add\" || keyIdentifier === \"U+002B\" || keyIdentifier === \"U+00BB\" || keyIdentifier === \"U+004B\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"+\";\n } else if (key === \"-\" || key === \"Subtract\" || keyIdentifier === \"U+002D\" || keyIdentifier === \"U+00BD\" || keyIdentifier === \"U+004D\" && location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD /* workaround for Chrome for Windows */) {\n return \"-\";\n } else {\n return key || keyIdentifier || Keys.Unidentified;\n }\n}", "function keyPressed(event) {\n var detailToKey = [];\n detailToKey[38] = \"ArrowUp\";\n detailToKey[40] = \"ArrowDown\";\n detailToKey[37] = \"ArrowLeft\";\n detailToKey[39] = \"ArrowRight\";\n detailToKey[66] = \"b\";\n detailToKey[65] = \"a\";\n \n if (typeof event.key === \"string\") { // assume it's an event.key value\n // console.log (\"returning event.key\");\n return event.key;\n } else { // assume in testing and convert detail to key value\n // console.log (\"converting detail to key\");\n return detailToKey[event.detail];\n }\n}", "function getKeyGivenValue( objectName, value ) \n\t{\n\t\tfor( var prop in objectName ) \n\t\t{\n \t\tif( objectName.hasOwnProperty( prop ) ) \n \t\t{\n \t\t if( objectName[ prop ] === value )\n \t\t {\n \t\t return prop;\n \t\t }\n \t\t}\n \t}\n }", "function getEvent(target, event_name) {\r\n if (target.events === undefined) {\r\n target.events = {};\r\n }\r\n return target.events[event_name];\r\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n }", "function getKey(key) {\n const lookup = {\n \"Up\": \"ArrowUp\",\n \"Down\": \"ArrowDown\",\n \"Left\": \"ArrowLeft\",\n \"Right\": \"ArrowRight\",\n \"Spacebar\": \" \",\n \"Esc\": \"Escape\"\n };\n return lookup[key] || key;\n}", "findKey1(obj, fn) {\n for (let key in obj) {\n if (fn(obj[key])) {\n return key;\n }\n }\n return undefined;\n }", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var base = keyNames[event.keyCode], name = base\n if (name == null || event.altGraphKey) { return false }\n if (event.altKey && base != \"Alt\") { name = \"Alt-\" + name }\n if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != \"Ctrl\") { name = \"Ctrl-\" + name }\n if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != \"Cmd\") { name = \"Cmd-\" + name }\n if (!noShift && event.shiftKey && base != \"Shift\") { name = \"Shift-\" + name }\n return name\n}", "function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var base = keyNames[event.keyCode], name = base\n if (name == null || event.altGraphKey) { return false }\n if (event.altKey && base != \"Alt\") { name = \"Alt-\" + name }\n if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != \"Ctrl\") { name = \"Ctrl-\" + name }\n if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != \"Cmd\") { name = \"Cmd-\" + name }\n if (!noShift && event.shiftKey && base != \"Shift\") { name = \"Shift-\" + name }\n return name\n}", "function getHostNameKey(fhcEvent) {\n let key = \"\";\n if (\"input\" !== fhcEvent.type) {\n // this allows for multiple versions of a field per host\n key = fhcEvent.host + \"|\" + fhcEvent.type + \"|\" + fhcEvent.name;\n }\n return key;\n}", "findKey (object, predicateFunction) {\n for(key in object) {\n const value = object.key;\n const predicateFuncReturn = predicateFunction(value);\n if(predicateFuncReturn){\n return key;\n }\n }\n return undefined;\n }", "function fnGetKey(aoData, sKey) {\r\n for (var i = 0, iLen = aoData.length; i < iLen; i++) {\r\n if (aoData[i].name == sKey) {\r\n return aoData[i].value;\r\n }\r\n }\r\n return null;\r\n}", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n}", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n}", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n}", "function getEventName(match, prefix, eventName) {\n\t return eventName.toUpperCase();\n\t }", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n }", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n }", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n }", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n }", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n }", "function getKeyByValue(object, value){ // function that returns the object key when given the corresponding value\n for (var key in object){\n if(object[key] === value){\n return key;\n }\n }\n }", "function getEventName(match, prefix, eventName) {\n return eventName.toUpperCase();\n }", "function getKeyFromObjField(obj, field) {\n\tvar key = null;\n\n\tif (obj[field]) {\n\t\tkey = obj[field];\n\t\tkey = key.substring(0, key.indexOf(':'));\n\t}\n\n\treturn key;\n}", "function getNameOfEventWithID(eventID) {\n return $q(function(resolve, reject) {\n firebaseObject.child(\"event_data/\" + eventID).once(\"value\", function(eventData) {\n resolve( eventData.val()[\"Name\"] );\n });\n });\n }", "function searchGet(key, obj)\n{\n obj || (obj=this);\n\n var value;\n var Key=key.charAt(0).toUpperCase() + key.substring(1);\n var accessor;\n\n if((accessor=(\"get\" + Key)) in obj)\n {\n var fn=obj[accessor];\n\n value=fn.call(obj);\n }\n // else if((\"is\" + Key) in obj)\n // {\n // value=obj.isKey();\n // }\n // else if((\"_\" + key) in obj)\n // {\n // value=obj[\"_\" + key];\n // }\n // else if((\"_is\" + Key) in obj)\n // {\n // value=obj[\"_is\" + key];\n // }\n // else// if((key in obj))\n // {\n // value=obj[key];\n // }\n else {\n value=ivarGet(key, obj);\n }\n\n return value;\n}", "function keyAccess () {\n const bestFruit = { name: 'banana', count: 42, isDelicious: true }\n\n // console.assert() allows you to declare things that should be true; it's like\n // a sanity-check for your code.\n // Here we are confirming that object access works like we expect:\n console.assert(bestFruit['name'] === 'banana')\n console.assert(bestFruit['count'] === 42)\n console.assert(bestFruit['isDelicious'] === true)\n\n // return the name of the bestFruit Object here.\n return bestFruit.name;\n}", "findKey(myObject, myPredicate){\r\n for (let aKey in myObject){\r\n if (myPredicate(myObject[aKey])){\r\n return aKey;\r\n }\r\n }\r\n return undefined;\r\n }", "getStringKeyValue(object, value) {\n if (typeof value === 'string') {\n return value;\n }\n\n let matchedKeys = Object.keys(object).filter(key => object[key] === value);\n if (matchedKeys.length === 0) {\n return value;\n }\n\n return matchedKeys[0];\n }", "getEventName(eventType, funcName) {\n return `sls-${eventType}-${funcName}`.replace(/-/g, '_');\n }", "function getKey(self, hashname, callback)\n{\n // moi?\n if(self.hashname === hashname) return callback(null, self.pubkey);\n \n // already known\n var who = seen(self, hashname);\n if(who.pubkey) return callback(null, who.pubkey);\n\n // multiple things may be wanting the key, create a watch\n var watch = keywatch(self, \"getkey \"+hashname, callback, 10*1000);\n if(watch.callbacks.length > 1) return;\n\n // if we're open and we know an ip for this hashname, just ask them!\n if(self.open && who.ip) return sendWho(self, who, hashname, watch.done);\n\n // if we have a lookup function, use that\n if(self.cb.lookup) return self.cb.lookup(hashname, watch.done);\n \n // resort to asking the operator\n doVerify(self, hashname, watch.done);\n}", "get eventResourceKey() {\n return `${this.event ? this.eventId : this.data.eventId || this.internalId}-${this.resource ? this.resourceId : this.data.resourceId || this.internalId}`;\n }", "function v2k(val, inObject, defReturn) {\n for (let k of Object.keys(inObject)) {\n if (inObject[k] === val) {\n return k;\n }\n }\n return defReturn === undefined ? null : defReturned;\n}", "getEvent(nameOrSignatureOrTopic) {\n if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__ethersproject_bytes__[\"f\" /* isHexString */])(nameOrSignatureOrTopic)) {\n const topichash = nameOrSignatureOrTopic.toLowerCase();\n for (const name in this.events) {\n if (topichash === this.getEventTopic(name)) {\n return this.events[name];\n }\n }\n logger.throwArgumentError(\"no matching event\", \"topichash\", topichash);\n }\n // It is a bare name, look up the function (will return null if ambiguous)\n if (nameOrSignatureOrTopic.indexOf(\"(\") === -1) {\n const name = nameOrSignatureOrTopic.trim();\n const matching = Object.keys(this.events).filter((f) => (f.split(\"(\" /* fix:) */)[0] === name));\n if (matching.length === 0) {\n logger.throwArgumentError(\"no matching event\", \"name\", name);\n }\n else if (matching.length > 1) {\n logger.throwArgumentError(\"multiple matching events\", \"name\", name);\n }\n return this.events[matching[0]];\n }\n // Normlize the signature and lookup the function\n const result = this.events[__WEBPACK_IMPORTED_MODULE_8__fragments__[\"b\" /* EventFragment */].fromString(nameOrSignatureOrTopic).format()];\n if (!result) {\n logger.throwArgumentError(\"no matching event\", \"signature\", nameOrSignatureOrTopic);\n }\n return result;\n }", "getEvent(nameOrSignatureOrTopic) {\n if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__ethersproject_bytes__[\"f\" /* isHexString */])(nameOrSignatureOrTopic)) {\n const topichash = nameOrSignatureOrTopic.toLowerCase();\n for (const name in this.events) {\n if (topichash === this.getEventTopic(name)) {\n return this.events[name];\n }\n }\n logger.throwArgumentError(\"no matching event\", \"topichash\", topichash);\n }\n // It is a bare name, look up the function (will return null if ambiguous)\n if (nameOrSignatureOrTopic.indexOf(\"(\") === -1) {\n const name = nameOrSignatureOrTopic.trim();\n const matching = Object.keys(this.events).filter((f) => (f.split(\"(\" /* fix:) */)[0] === name));\n if (matching.length === 0) {\n logger.throwArgumentError(\"no matching event\", \"name\", name);\n }\n else if (matching.length > 1) {\n logger.throwArgumentError(\"multiple matching events\", \"name\", name);\n }\n return this.events[matching[0]];\n }\n // Normlize the signature and lookup the function\n const result = this.events[__WEBPACK_IMPORTED_MODULE_8__fragments__[\"a\" /* EventFragment */].fromString(nameOrSignatureOrTopic).format()];\n if (!result) {\n logger.throwArgumentError(\"no matching event\", \"signature\", nameOrSignatureOrTopic);\n }\n return result;\n }", "findKey2(object, predicate) {\n for (let key in object) {\n const value = object[key];\n const predicateReturnValue = predicate(value);\n if (predicateReturnValue) return key;\n }\n return undefined;\n }", "function findKey(keyName : String) : Transform\n{\n\tDebug.Log(\"finding key with \" + keyName);\n\tfor(var i:Transform in associatedInventory.Contents) //Loop through the Items in the Inventory:\n\t{\n\t\tif(i.name == keyName) //When a match is found, return the Item.\n\t\t{\n\t\t\tDebug.Log(\"Key found\");\n\t\t\tgameObject.SendMessage(\"findKeyCallback\", i);\n\t\t\treturn i;\n\t\t\t//No need to continue running through the loop since we found our item.\n\t\t}\n\t}\n\t\n\tgameObject.SendMessage(\"findKeyFailCallback\", true, SendMessageOptions.DontRequireReceiver);\n\treturn null;\n}", "getEvent(eventName) {\n return this.events.find((e) => e.title == eventName);\n }", "function getKeyFromList(list, key) {\n for (const data of list) {\n if (data.name === key) {\n return data.value;\n }\n }\n throw Error(`'${key}' not found in ${JSON.stringify(list)}`);\n}", "getEvent(nameOrSignatureOrTopic) {\n if (Object(_ethersproject_bytes__WEBPACK_IMPORTED_MODULE_2__[/* isHexString */ \"l\"])(nameOrSignatureOrTopic)) {\n const topichash = nameOrSignatureOrTopic.toLowerCase();\n for (const name in this.events) {\n if (topichash === this.getEventTopic(name)) {\n return this.events[name];\n }\n }\n logger.throwArgumentError(\"no matching event\", \"topichash\", topichash);\n }\n // It is a bare name, look up the function (will return null if ambiguous)\n if (nameOrSignatureOrTopic.indexOf(\"(\") === -1) {\n const name = nameOrSignatureOrTopic.trim();\n const matching = Object.keys(this.events).filter((f) => (f.split(\"(\" /* fix:) */)[0] === name));\n if (matching.length === 0) {\n logger.throwArgumentError(\"no matching event\", \"name\", name);\n }\n else if (matching.length > 1) {\n logger.throwArgumentError(\"multiple matching events\", \"name\", name);\n }\n return this.events[matching[0]];\n }\n // Normlize the signature and lookup the function\n const result = this.events[_fragments__WEBPACK_IMPORTED_MODULE_7__[/* EventFragment */ \"c\"].fromString(nameOrSignatureOrTopic).format()];\n if (!result) {\n logger.throwArgumentError(\"no matching event\", \"signature\", nameOrSignatureOrTopic);\n }\n return result;\n }", "function getKey(_, ctx) {\n var k = 'k:' + _.$key + '_' + (!!_.$flat);\n return ctx.fn[k] || (ctx.fn[k] = vegaUtil.key(_.$key, _.$flat));\n }", "function getKeyValue(sourceCode){\n\tif(sourceCode == null)\n\t\tsourceCode = window.event.keyCode;\n\t\n\tvar code = getKeyCode(sourceCode);\n\tvar actualkey = code;\n\t\n\tif(isNumber(code))\n\t// try to look up the key now\n\t\tactualkey=String.fromCharCode(code);\n\n\tif(actualkey == null)\n\t\treturn null;\n\n\treturn actualkey.toLowerCase();\n}", "function key(kind, key) {\n \n}", "function get_obj_key_val(obj,key){\n\t\tif (!is_undefined_key(obj,key)) {\n\t\t\treturn _obj_composed_key_val(obj,key);\n\t\t}else {\n\t\t\treturn -1;\n\t\t}\n\n\t\tfunction _obj_composed_key_val(obj,key_str) {\n\t\t\tvar arr_key = key_str.split(\".\");\n\t\t\tvar inner_val = obj;\n\t\t\tfor (var i = 0; i < arr_key.length; i++) {\n\t\t\t\tinner_val = inner_val[arr_key[i]];\n\t\t\t}\n\t\t\treturn inner_val;\n\t\t}\n\t}", "getKey(arg) {\n return typeof arg === 'object'\n ? this.selectId(arg)\n : arg;\n }", "matchKey(needle, obj, caseInsensitive) {\n\t\tneedle = (caseInsensitive) ? needle.toLowerCase() : needle;\n\t\tfor (let key in obj) {\n\t\t\tconst keyCopy = (caseInsensitive) ? key.toLowerCase() : key;\n\t\t\tif (keyCopy === needle) {\n\t\t\t\treturn key; \t\t\t\t//return the original\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "function getFieldEntryKey(node) {\n return node.alias ? node.alias.value : node.name.value;\n}", "function getFieldEntryKey(node) {\n return node.alias ? node.alias.value : node.name.value;\n}", "function getFieldEntryKey(node) {\n return node.alias ? node.alias.value : node.name.value;\n}", "function getFieldEntryKey(node) {\n return node.alias ? node.alias.value : node.name.value;\n}", "function getFieldEntryKey(node) {\n return node.alias ? node.alias.value : node.name.value;\n}", "function getFieldEntryKey(node) {\n return node.alias ? node.alias.value : node.name.value;\n}", "function getValue(object, key) {\n return object[key];\n}", "function find(map, name) {\n name = name.toLowerCase();\n\n for (var key in map) {\n if (key.toLowerCase() === name) {\n return key;\n }\n }\n\n return undefined;\n}", "function get(object, key) {\n //Loop through the object\n //if you find that key return value\n //else return undefined\n for(let banana in object) {\n return object[key];\n}\n}", "function find$1(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find$1(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function getSearchKey( event ) {\n\tif(!event) return;\n\tvar regex = new RegExp(\"^[a-zA-Z0-9]+$\");\n var key = String.fromCharCode(!(event.charCode) ? event.which : event.charCode);\n\tconsole.log('GOT KEY', key);\n if (!regex.test(key)) {\n getAutosuggesionHeader( '#form_topsearch', event );\n\t}\n\t\n\t getAutosuggesionHeader( '#form_topsearch', event, key );\n\t//func_call( '#form_topsearch', event, key );\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}", "function find(map, name) {\n\tname = name.toLowerCase();\n\tfor (const key in map) {\n\t\tif (key.toLowerCase() === name) {\n\t\t\treturn key;\n\t\t}\n\t}\n\treturn undefined;\n}" ]
[ "0.68437785", "0.66774225", "0.6616543", "0.63617873", "0.6232344", "0.58947927", "0.58873767", "0.582189", "0.5820872", "0.57668227", "0.57626027", "0.5733329", "0.57292217", "0.571779", "0.571779", "0.571779", "0.571779", "0.57143486", "0.57070446", "0.57045966", "0.5690433", "0.5690433", "0.5690433", "0.5690433", "0.5690433", "0.5690433", "0.5690433", "0.5690433", "0.5690433", "0.5685507", "0.56844205", "0.56721836", "0.56721836", "0.5657038", "0.5649207", "0.5647428", "0.5598604", "0.5598604", "0.5598604", "0.55836457", "0.5582812", "0.5582812", "0.5582812", "0.558173", "0.5563735", "0.5562106", "0.5562093", "0.5554088", "0.5544347", "0.55129737", "0.5476872", "0.5476234", "0.5473183", "0.5472847", "0.5430662", "0.53893656", "0.53824747", "0.53768724", "0.5376849", "0.53747696", "0.53697014", "0.53663504", "0.53631616", "0.5361257", "0.536027", "0.53377026", "0.53365606", "0.53347486", "0.53251547", "0.5323941", "0.53098106", "0.53098106", "0.53098106", "0.53098106", "0.53098106", "0.53098106", "0.5288472", "0.52818775", "0.52767575", "0.5275071", "0.5275071", "0.52596307", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372", "0.5246372" ]
0.0
-1
Helper for deleting text near the selection(s), used to implement backspace, delete, and similar functionality.
function deleteNearSelection(cm, compute) { var ranges = cm.doc.sel.ranges, kill = []; // Build up a set of ranges to kill first, merging overlapping // ranges. for (var i = 0; i < ranges.length; i++) { var toKill = compute(ranges[i]); while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) { var replaced = kill.pop(); if (cmp(replaced.from, toKill.from) < 0) { toKill.from = replaced.from; break } } kill.push(toKill); } // Next, remove those actual ranges. runInOp(cm, function () { for (var i = kill.length - 1; i >= 0; i--) { replaceRange(cm.doc, "", kill[i].from, kill[i].to, "+delete"); } ensureCursorVisible(cm); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeTextSelections() {\n if (document.selection) document.selection.empty();\n else if (window.getSelection) window.getSelection().removeAllRanges();\n}", "function removeTextSelection() {\n\n if (window.getSelection) {\n\n window.getSelection().removeAllRanges();\n\n } else if (document.selection) {\n\n document.selection.empty();\n\n }\n\n}", "delete(editor) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n Editor.withoutNormalizing(editor, () => {\n var {\n reverse = false,\n unit = 'character',\n distance = 1,\n voids = false\n } = options;\n var {\n at = editor.selection,\n hanging = false\n } = options;\n\n if (!at) {\n return;\n }\n\n if (Range.isRange(at) && Range.isCollapsed(at)) {\n at = at.anchor;\n }\n\n if (Point.isPoint(at)) {\n var furthestVoid = Editor.void(editor, {\n at,\n mode: 'highest'\n });\n\n if (!voids && furthestVoid) {\n var [, voidPath] = furthestVoid;\n at = voidPath;\n } else {\n var opts = {\n unit,\n distance\n };\n var target = reverse ? Editor.before(editor, at, opts) || Editor.start(editor, []) : Editor.after(editor, at, opts) || Editor.end(editor, []);\n at = {\n anchor: at,\n focus: target\n };\n hanging = true;\n }\n }\n\n if (Path.isPath(at)) {\n Transforms.removeNodes(editor, {\n at,\n voids\n });\n return;\n }\n\n if (Range.isCollapsed(at)) {\n return;\n }\n\n if (!hanging) {\n at = Editor.unhangRange(editor, at, {\n voids\n });\n }\n\n var [start, end] = Range.edges(at);\n var startBlock = Editor.above(editor, {\n match: n => Editor.isBlock(editor, n),\n at: start,\n voids\n });\n var endBlock = Editor.above(editor, {\n match: n => Editor.isBlock(editor, n),\n at: end,\n voids\n });\n var isAcrossBlocks = startBlock && endBlock && !Path.equals(startBlock[1], endBlock[1]);\n var isSingleText = Path.equals(start.path, end.path);\n var startVoid = voids ? null : Editor.void(editor, {\n at: start,\n mode: 'highest'\n });\n var endVoid = voids ? null : Editor.void(editor, {\n at: end,\n mode: 'highest'\n }); // If the start or end points are inside an inline void, nudge them out.\n\n if (startVoid) {\n var before = Editor.before(editor, start);\n\n if (before && startBlock && Path.isAncestor(startBlock[1], before.path)) {\n start = before;\n }\n }\n\n if (endVoid) {\n var after = Editor.after(editor, end);\n\n if (after && endBlock && Path.isAncestor(endBlock[1], after.path)) {\n end = after;\n }\n } // Get the highest nodes that are completely inside the range, as well as\n // the start and end nodes.\n\n\n var matches = [];\n var lastPath;\n\n for (var entry of Editor.nodes(editor, {\n at,\n voids\n })) {\n var [node, path] = entry;\n\n if (lastPath && Path.compare(path, lastPath) === 0) {\n continue;\n }\n\n if (!voids && Editor.isVoid(editor, node) || !Path.isCommon(path, start.path) && !Path.isCommon(path, end.path)) {\n matches.push(entry);\n lastPath = path;\n }\n }\n\n var pathRefs = Array.from(matches, (_ref) => {\n var [, p] = _ref;\n return Editor.pathRef(editor, p);\n });\n var startRef = Editor.pointRef(editor, start);\n var endRef = Editor.pointRef(editor, end);\n\n if (!isSingleText && !startVoid) {\n var _point = startRef.current;\n var [_node] = Editor.leaf(editor, _point);\n var {\n path: _path\n } = _point;\n var {\n offset\n } = start;\n\n var text = _node.text.slice(offset);\n\n editor.apply({\n type: 'remove_text',\n path: _path,\n offset,\n text\n });\n }\n\n for (var pathRef of pathRefs) {\n var _path2 = pathRef.unref();\n\n Transforms.removeNodes(editor, {\n at: _path2,\n voids\n });\n }\n\n if (!endVoid) {\n var _point2 = endRef.current;\n var [_node2] = Editor.leaf(editor, _point2);\n var {\n path: _path3\n } = _point2;\n\n var _offset = isSingleText ? start.offset : 0;\n\n var _text = _node2.text.slice(_offset, end.offset);\n\n editor.apply({\n type: 'remove_text',\n path: _path3,\n offset: _offset,\n text: _text\n });\n }\n\n if (!isSingleText && isAcrossBlocks && endRef.current && startRef.current) {\n Transforms.mergeNodes(editor, {\n at: endRef.current,\n hanging: true,\n voids\n });\n }\n\n var point = endRef.unref() || startRef.unref();\n\n if (options.at == null && point) {\n Transforms.select(editor, point);\n }\n });\n }", "function ClearTextSelection() {\n\t//console.log('Clear text selection.');\n\tif ( document.selection ) {\n //console.log('document.selection'); \n\t\tdocument.selection.empty();\n\t} else if ( window.getSelection ) {\n\t\t//console.log('window.getSelection');\n\t\twindow.getSelection().removeAllRanges();\n\t}\n} // END ClearTextSelection.", "function keyCommandPlainDelete(editorState){var afterRemoval=removeTextWithStrategy(editorState,function(strategyState){var selection=strategyState.getSelection();var content=strategyState.getCurrentContent();var key=selection.getAnchorKey();var offset=selection.getAnchorOffset();var charAhead=content.getBlockForKey(key).getText()[offset];return moveSelectionForward(strategyState,charAhead?UnicodeUtils.getUTF16Length(charAhead,0):1);},'forward');if(afterRemoval===editorState.getCurrentContent()){return editorState;}var selection=editorState.getSelection();return EditorState.push(editorState,afterRemoval.set('selectionBefore',selection),selection.isCollapsed()?'delete-character':'remove-range');}", "unselectText_() {\n try {\n this.win.getSelection().removeAllRanges();\n } catch (e) {\n // Selection API not supported.\n }\n }", "function unselectText() {\n window.getSelection().empty();\n}", "function clearSelection()\n{\n if (window.getSelection) {window.getSelection().removeAllRanges();}\n else if (document.selection) {document.selection.empty();}\n}", "function keyCommandPlainDelete(editorState) {\n\t var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n\t var selection = strategyState.getSelection();\n\t var content = strategyState.getCurrentContent();\n\t var key = selection.getAnchorKey();\n\t var offset = selection.getAnchorOffset();\n\t var charAhead = content.getBlockForKey(key).getText()[offset];\n\t return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n\t }, 'forward');\n\n\t if (afterRemoval === editorState.getCurrentContent()) {\n\t return editorState;\n\t }\n\n\t var selection = editorState.getSelection();\n\n\t return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n\t}", "delete(editor) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n Editor.withoutNormalizing(editor, () => {\n var {\n reverse = false,\n unit = 'character',\n distance = 1,\n voids = false\n } = options;\n var {\n at = editor.selection,\n hanging = false\n } = options;\n\n if (!at) {\n return;\n }\n\n if (Range.isRange(at) && Range.isCollapsed(at)) {\n at = at.anchor;\n }\n\n if (Point.isPoint(at)) {\n var furthestVoid = Editor.void(editor, {\n at,\n mode: 'highest'\n });\n\n if (!voids && furthestVoid) {\n var [, voidPath] = furthestVoid;\n at = voidPath;\n } else {\n var opts = {\n unit,\n distance\n };\n var target = reverse ? Editor.before(editor, at, opts) || Editor.start(editor, []) : Editor.after(editor, at, opts) || Editor.end(editor, []);\n at = {\n anchor: at,\n focus: target\n };\n hanging = true;\n }\n }\n\n if (Path.isPath(at)) {\n Transforms.removeNodes(editor, {\n at,\n voids\n });\n return;\n }\n\n if (Range.isCollapsed(at)) {\n return;\n }\n\n if (!hanging) {\n var [, _end] = Range.edges(at);\n var endOfDoc = Editor.end(editor, []);\n\n if (!Point.equals(_end, endOfDoc)) {\n at = Editor.unhangRange(editor, at, {\n voids\n });\n }\n }\n\n var [start, end] = Range.edges(at);\n var startBlock = Editor.above(editor, {\n match: n => Editor.isBlock(editor, n),\n at: start,\n voids\n });\n var endBlock = Editor.above(editor, {\n match: n => Editor.isBlock(editor, n),\n at: end,\n voids\n });\n var isAcrossBlocks = startBlock && endBlock && !Path.equals(startBlock[1], endBlock[1]);\n var isSingleText = Path.equals(start.path, end.path);\n var startVoid = voids ? null : Editor.void(editor, {\n at: start,\n mode: 'highest'\n });\n var endVoid = voids ? null : Editor.void(editor, {\n at: end,\n mode: 'highest'\n }); // If the start or end points are inside an inline void, nudge them out.\n\n if (startVoid) {\n var before = Editor.before(editor, start);\n\n if (before && startBlock && Path.isAncestor(startBlock[1], before.path)) {\n start = before;\n }\n }\n\n if (endVoid) {\n var after = Editor.after(editor, end);\n\n if (after && endBlock && Path.isAncestor(endBlock[1], after.path)) {\n end = after;\n }\n } // Get the highest nodes that are completely inside the range, as well as\n // the start and end nodes.\n\n\n var matches = [];\n var lastPath;\n\n for (var entry of Editor.nodes(editor, {\n at,\n voids\n })) {\n var [node, path] = entry;\n\n if (lastPath && Path.compare(path, lastPath) === 0) {\n continue;\n }\n\n if (!voids && Editor.isVoid(editor, node) || !Path.isCommon(path, start.path) && !Path.isCommon(path, end.path)) {\n matches.push(entry);\n lastPath = path;\n }\n }\n\n var pathRefs = Array.from(matches, _ref => {\n var [, p] = _ref;\n return Editor.pathRef(editor, p);\n });\n var startRef = Editor.pointRef(editor, start);\n var endRef = Editor.pointRef(editor, end);\n\n if (!isSingleText && !startVoid) {\n var _point = startRef.current;\n var [_node] = Editor.leaf(editor, _point);\n var {\n path: _path\n } = _point;\n var {\n offset\n } = start;\n\n var text = _node.text.slice(offset);\n\n if (text.length > 0) editor.apply({\n type: 'remove_text',\n path: _path,\n offset,\n text\n });\n }\n\n for (var pathRef of pathRefs) {\n var _path2 = pathRef.unref();\n\n Transforms.removeNodes(editor, {\n at: _path2,\n voids\n });\n }\n\n if (!endVoid) {\n var _point2 = endRef.current;\n var [_node2] = Editor.leaf(editor, _point2);\n var {\n path: _path3\n } = _point2;\n\n var _offset = isSingleText ? start.offset : 0;\n\n var _text = _node2.text.slice(_offset, end.offset);\n\n if (_text.length > 0) editor.apply({\n type: 'remove_text',\n path: _path3,\n offset: _offset,\n text: _text\n });\n }\n\n if (!isSingleText && isAcrossBlocks && endRef.current && startRef.current) {\n Transforms.mergeNodes(editor, {\n at: endRef.current,\n hanging: true,\n voids\n });\n }\n\n var point = reverse ? startRef.unref() || endRef.unref() : endRef.unref() || startRef.unref();\n\n if (options.at == null && point) {\n Transforms.select(editor, point);\n }\n });\n }", "deselectAll() {\n if (document.selection) {\n document.selection.empty();\n } else if (window.getSelection) {\n window.getSelection().removeAllRanges();\n }\n }", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function keyCommandPlainDelete(editorState) {\n var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n var selection = strategyState.getSelection();\n var content = strategyState.getCurrentContent();\n var key = selection.getAnchorKey();\n var offset = selection.getAnchorOffset();\n var charAhead = content.getBlockForKey(key).getText()[offset];\n return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0) : 1);\n }, 'forward');\n\n if (afterRemoval === editorState.getCurrentContent()) {\n return editorState;\n }\n\n var selection = editorState.getSelection();\n\n return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character' : 'remove-range');\n}", "function removeAllSelections() {\r\n\tvar pos = getCaretPosition();\r\n\twindow.getSelection().removeAllRanges();\r\n\tsetCaretPosition(pos);\r\n}", "function finalizeSelection(){\n\n\tvar len = cliptext.value.length\n\tif(len > 5) cliptext.selectionStart = 3\n\telse cliptext.selectionStart = defaultStart\n\tcliptext.selectionEnd = len - 2\n}", "function del(){\n\tvar position = results.selectionStart - 1;\n\tvar numsValue = results.value;\n\tvar str = numsValue.slice(0,position) + numsValue.slice(position+1, results.length);\n\tresults.value = str;\n\tresults.selectionStart = position;\n}", "function selectionTrim() {\n if (selectionExists()) {\n var range = selectionRange();\n rangeTrim(range);\n selectionSet(range);\n }\n}", "function clearSelection () {\n if (document.selection) {\n document.selection.empty();\n } else if (window.getSelection) {\n window.getSelection().removeAllRanges();\n }\n}", "function removeUnderlineSelection() {\n\n var sel = window.getSelection();\n var range = sel.getRangeAt(0);\n\n var nodes = getRangeTextNodes(range);\n\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n// unhighlight(node);\n var parent = node.parentNode;\n// window.TextSelection.jsLog(\"====\\n!@@@@@@@@@@! span= \" + parent.getElementsByTagName(\"span\").length);\n if (parent.nodeName != \"SPAN\") {\n unhighlight(node);\n// window.TextSelection.jsLog(\"1111\");\n } else {\n// window.TextSelection.jsLog(\"2222\");\n unhighlight(parent);\n }\n\n// window.TextSelection.jsError(\"!@@@@@@@@@@! = \" + parent.nodeType);\n// window.TextSelection.jsError(\"!@@@@@@@@@@! = \" + parent.textContent);\n// window.TextSelection.jsError(\"!@@@@@@@@@@! = \" + parent.nodeName);\n// continue;\n//\n// var r = document.createRange();\n// r.setStart(node, 0);\n// r.setEnd(node, node.textContent.length);\n// setRangeTextDecoration(r, \"none\");\n//\n//\n//// r.setStart(node, )\n// if (node.style) {\n// node.style.textDecoration = \"none\";\n// }\n }\n}", "clearSelection() {\n this._clearSelection();\n }", "function replaceSelectedText(replacementText) {\n var sel, range;\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.rangeCount) {\n range = sel.getRangeAt(0);\n range.deleteContents();\n range.insertNode(document.createTextNode(replacementText));\n }\n } else if (document.selection && document.selection.createRange) {\n range = document.selection.createRange();\n range.text = replacementText;\n }\n}", "function clearSelectedText() {\n selectedText = \"\";\n}", "function clearPreviousSelection()\n {\n if ($.browser.msie) \n {\n document.selection.empty();\n }\n else\n {\n window.getSelection().removeAllRanges();\n }\n }", "function unHighlight() {\r\n var sel = window.getSelection && window.getSelection();\r\n if (sel && sel.rangeCount == 0 && savedRange != null) {\r\n sel.addRange(savedRange);\r\n }\r\n if (sel && sel.rangeCount > 0) {\r\n // Get location and text info\r\n let range = sel.getRangeAt(0);\r\n console.log(range)\r\n let node = document.createElement('p')\r\n node.setAttribute('class', 'unhighlight')\r\n let selText = range.cloneContents();\r\n node.appendChild(selText);\r\n let markedList = node.getElementsByTagName('mark');\r\n for (let i = 0; i < markedList.length; i++) {\r\n markedList[i].outerHTML = markedList[i].innerHTML;\r\n }\r\n\r\n range.deleteContents();\r\n range.insertNode(node);\r\n // Remove the tags from inserted node\r\n var unHiteLiteList = document.getElementsByClassName('unhighlight');\r\n\r\n for (let i = 0 ; i < unHiteLiteList.length; i ++) {\r\n var parent = unHiteLiteList[i].parentNode;\r\n while (unHiteLiteList[i].firstChild) {\r\n parent.insertBefore(unHiteLiteList[i].firstChild, unHiteLiteList[i]);\r\n }\r\n parent.removeChild(unHiteLiteList[i]);\r\n }\r\n // range.selectNodeContents(selText); \r\n saveCurrentState();\r\n }\r\n }", "clearSelection() {\n this.selectionStart = undefined;\n this.selectionEnd = undefined;\n this.isSelectAllActive = false;\n this.selectionStartLength = 0;\n }", "function clearSelections() {\r\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\r\n if (isFirefox) {\r\n document.selection.empty();\r\n } else {\r\n window.getSelection().removeAllRanges();\r\n }\r\n }", "function replaceSelectedRangeWith(text) {\n var textNode = document.createTextNode(text);\n\n var selection = new scribe.api.Selection();\n selection.range.deleteContents();\n selection.range.insertNode(textNode);\n\n return textNode;\n }", "function clearSelection() {\n if (window.getSelection) {\n if (window.getSelection().empty) { // Chrome\n window.getSelection().empty();\n } else if (window.getSelection().removeAllRanges) { // Firefox\n window.getSelection().removeAllRanges();\n }\n } else if (document.selection) { // IE?\n document.selection.empty();\n }\n }", "replaceSelection(text) {\n if (typeof text == \"string\")\n text = this.toText(text);\n return this.changeByRange(range => ({ changes: { from: range.from, to: range.to, insert: text },\n range: EditorSelection.cursor(range.from + text.length) }));\n }", "function keyCommandDeleteWord(editorState){var afterRemoval=removeTextWithStrategy(editorState,function(strategyState){var selection=strategyState.getSelection();var offset=selection.getStartOffset();var key=selection.getStartKey();var content=strategyState.getCurrentContent();var text=content.getBlockForKey(key).getText().slice(offset);var toRemove=DraftRemovableWord.getForward(text);// If there are no words in front of the cursor, remove the newline.\r\n\treturn moveSelectionForward(strategyState,toRemove.length||1);},'forward');if(afterRemoval===editorState.getCurrentContent()){return editorState;}return EditorState.push(editorState,afterRemoval,'remove-range');}", "deleteSelection(e) {\n var direction, selection, values, caret, tail;\n var self = this;\n direction = e && e.keyCode === KEY_BACKSPACE ? -1 : 1;\n selection = getSelection(self.control_input); // determine items that will be removed\n\n values = [];\n\n if (self.activeItems.length) {\n tail = getTail(self.activeItems, direction);\n caret = nodeIndex(tail);\n\n if (direction > 0) {\n caret++;\n }\n\n for (const item of self.activeItems) {\n values.push(item.dataset.value);\n }\n } else if ((self.isFocused || self.settings.mode === 'single') && self.items.length) {\n if (direction < 0 && selection.start === 0 && selection.length === 0) {\n values.push(self.items[self.caretPos - 1]);\n } else if (direction > 0 && selection.start === self.inputValue().length) {\n values.push(self.items[self.caretPos]);\n }\n } // allow the callback to abort\n\n\n if (!values.length || typeof self.settings.onDelete === 'function' && self.settings.onDelete.call(self, values, e) === false) {\n return false;\n }\n\n preventDefault(e, true); // perform removal\n\n if (typeof caret !== 'undefined') {\n self.setCaret(caret);\n }\n\n while (values.length) {\n self.removeItem(values.pop());\n }\n\n self.showInput();\n self.positionDropdown();\n self.refreshOptions(false);\n return true;\n }", "function _corexitOnMouseUp(event) {\r\n\tvar selection = window.getSelection();\r\n\tvar selectedText = selection ? selection.toString() : \"\";\r\n\r\n //unselect\r\n //selection.collapseToStart();\r\n\r\n\t//if (selectedText.length != 0) {\r\n chrome.extension.sendRequest({command : \"sendText\", text : selectedText});\r\n\t//}\r\n \r\n\t//gClickInTextBox = false;\r\n \r\n}", "function r(e,t){e.selection.isCollapsed()&&e.selection.selectLine();for(var n=e.selection.surround(t),o=0,s=n.length;o<s;o++)b.dom.lineBreaks(n[o]).remove(),u(n[o]);// rethink restoring selection\n// composer.selection.selectNode(element, wysihtml5.browser.displaysCaretInEmptyContentEditableCorrectly());\n}", "function onRemoveText() {\n let elText = document.querySelector('.currText').value\n if (elText === '' || gMeme.existText.length === 1) return;\n var text = findTextById(gMeme.currText.id)\n gMeme.existText.splice(text, 1);\n resetValues()\n gMeme.currText = gMeme.existText[0]\n draw()\n}", "removeWordLeft() {\n if (this.selection.isEmpty())\n this.selection.selectWordLeft();\n\n this.session.remove(this.getSelectionRange());\n this.clearSelection();\n }", "removeHyperlink() {\n if (this.owner.isReadOnlyMode) {\n return;\n }\n let selection = this.selection;\n let fieldBegin = selection.getHyperlinkField();\n if (isNullOrUndefined(fieldBegin)) {\n return;\n }\n let fieldEnd = fieldBegin.fieldEnd;\n let fieldSeparator = fieldBegin.fieldSeparator;\n let fieldStartPosition = new TextPosition(selection.owner);\n // tslint:disable-next-line:max-line-length\n fieldStartPosition.setPositionParagraph(fieldBegin.line, (fieldBegin.line).getOffset(fieldBegin, 0));\n let fieldSeparatorPosition = new TextPosition(selection.owner);\n // tslint:disable-next-line:max-line-length\n fieldSeparatorPosition.setPositionParagraph(fieldSeparator.line, (fieldSeparator.line).getOffset(fieldSeparator, fieldSeparator.length));\n this.initComplexHistory('RemoveHyperlink');\n selection.start.setPositionParagraph(fieldEnd.line, (fieldEnd.line).getOffset(fieldEnd, 0));\n selection.end.setPositionInternal(selection.start);\n this.onDelete();\n selection.start.setPositionInternal(fieldSeparatorPosition);\n this.initHistory('Underline');\n this.updateCharacterFormatWithUpdate(selection, 'underline', 'None', false);\n if (this.editorHistory) {\n this.editorHistory.updateHistory();\n }\n // Applies font color for field result.\n this.initHistory('FontColor');\n this.updateCharacterFormatWithUpdate(selection, 'fontColor', undefined, false);\n if (this.editorHistory) {\n this.editorHistory.updateHistory();\n }\n this.reLayout(selection, false);\n selection.end.setPositionInternal(selection.start);\n selection.start.setPositionInternal(fieldStartPosition);\n this.initHistory('Delete');\n this.deleteSelectedContents(selection, false);\n this.reLayout(selection, true);\n if (this.editorHistory && !isNullOrUndefined(this.editorHistory.currentHistoryInfo)) {\n this.editorHistory.updateComplexHistory();\n }\n }", "function fixTextSelection( dom_element )\n {\n //chrome, opera, and safari select PRE text correctly \n if ($.chili.selection.active && ($.browser.msie || $.browser.mozilla)) \n {\n var element = null;\n $(dom_element)\n .parents()\n .filter(\"pre\")\n .bind(\"mousedown\", resetSelectedTextElement)\n .bind(\"mouseup\", displaySelectedTextDialog)\n ;\n }\n }", "function emptyEditorWhenDeleting() {\n\t\t\tfunction serializeRng(rng) {\n\t\t\t\tvar body = dom.create(\"body\");\n\t\t\t\tvar contents = rng.cloneContents();\n\t\t\t\tbody.appendChild(contents);\n\t\t\t\treturn selection.serializer.serialize(body, {format: 'html'});\n\t\t\t}\n\n\t\t\tfunction allContentsSelected(rng) {\n\t\t\t\tif (!rng.setStart) {\n\t\t\t\t\tif (rng.item) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar bodyRng = rng.duplicate();\n\t\t\t\t\tbodyRng.moveToElementText(editor.getBody());\n\t\t\t\t\treturn RangeUtils.compareRanges(rng, bodyRng);\n\t\t\t\t}\n\n\t\t\t\tvar selection = serializeRng(rng);\n\n\t\t\t\tvar allRng = dom.createRng();\n\t\t\t\tallRng.selectNode(editor.getBody());\n\n\t\t\t\tvar allSelection = serializeRng(allRng);\n\t\t\t\treturn selection === allSelection;\n\t\t\t}\n\n\t\t\teditor.on('keydown', function(e) {\n\t\t\t\tvar keyCode = e.keyCode, isCollapsed, body;\n\n\t\t\t\t// Empty the editor if it's needed for example backspace at <p><b>|</b></p>\n\t\t\t\tif (!isDefaultPrevented(e) && (keyCode == DELETE || keyCode == BACKSPACE)) {\n\t\t\t\t\tisCollapsed = editor.selection.isCollapsed();\n\t\t\t\t\tbody = editor.getBody();\n\n\t\t\t\t\t// Selection is collapsed but the editor isn't empty\n\t\t\t\t\tif (isCollapsed && !dom.isEmpty(body)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Selection isn't collapsed but not all the contents is selected\n\t\t\t\t\tif (!isCollapsed && !allContentsSelected(editor.selection.getRng())) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Manually empty the editor\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\teditor.setContent('');\n\n\t\t\t\t\tif (body.firstChild && dom.isBlock(body.firstChild)) {\n\t\t\t\t\t\teditor.selection.setCursorLocation(body.firstChild, 0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teditor.selection.setCursorLocation(body, 0);\n\t\t\t\t\t}\n\n\t\t\t\t\teditor.nodeChanged();\n\t\t\t\t}\n\t\t\t});\n\t\t}", "function emptyEditorWhenDeleting() {\n\t\t\tfunction serializeRng(rng) {\n\t\t\t\tvar body = dom.create(\"body\");\n\t\t\t\tvar contents = rng.cloneContents();\n\t\t\t\tbody.appendChild(contents);\n\t\t\t\treturn selection.serializer.serialize(body, {format: 'html'});\n\t\t\t}\n\n\t\t\tfunction allContentsSelected(rng) {\n\t\t\t\tif (!rng.setStart) {\n\t\t\t\t\tif (rng.item) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar bodyRng = rng.duplicate();\n\t\t\t\t\tbodyRng.moveToElementText(editor.getBody());\n\t\t\t\t\treturn RangeUtils.compareRanges(rng, bodyRng);\n\t\t\t\t}\n\n\t\t\t\tvar selection = serializeRng(rng);\n\n\t\t\t\tvar allRng = dom.createRng();\n\t\t\t\tallRng.selectNode(editor.getBody());\n\n\t\t\t\tvar allSelection = serializeRng(allRng);\n\t\t\t\treturn selection === allSelection;\n\t\t\t}\n\n\t\t\teditor.on('keydown', function(e) {\n\t\t\t\tvar keyCode = e.keyCode, isCollapsed, body;\n\n\t\t\t\t// Empty the editor if it's needed for example backspace at <p><b>|</b></p>\n\t\t\t\tif (!isDefaultPrevented(e) && (keyCode == DELETE || keyCode == BACKSPACE)) {\n\t\t\t\t\tisCollapsed = editor.selection.isCollapsed();\n\t\t\t\t\tbody = editor.getBody();\n\n\t\t\t\t\t// Selection is collapsed but the editor isn't empty\n\t\t\t\t\tif (isCollapsed && !dom.isEmpty(body)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Selection isn't collapsed but not all the contents is selected\n\t\t\t\t\tif (!isCollapsed && !allContentsSelected(editor.selection.getRng())) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Manually empty the editor\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\teditor.setContent('');\n\n\t\t\t\t\tif (body.firstChild && dom.isBlock(body.firstChild)) {\n\t\t\t\t\t\teditor.selection.setCursorLocation(body.firstChild, 0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teditor.selection.setCursorLocation(body, 0);\n\t\t\t\t\t}\n\n\t\t\t\t\teditor.nodeChanged();\n\t\t\t\t}\n\t\t\t});\n\t\t}", "function emptyEditorWhenDeleting() {\n\t\t\tfunction serializeRng(rng) {\n\t\t\t\tvar body = dom.create(\"body\");\n\t\t\t\tvar contents = rng.cloneContents();\n\t\t\t\tbody.appendChild(contents);\n\t\t\t\treturn selection.serializer.serialize(body, {format: 'html'});\n\t\t\t}\n\n\t\t\tfunction allContentsSelected(rng) {\n\t\t\t\tif (!rng.setStart) {\n\t\t\t\t\tif (rng.item) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar bodyRng = rng.duplicate();\n\t\t\t\t\tbodyRng.moveToElementText(editor.getBody());\n\t\t\t\t\treturn RangeUtils.compareRanges(rng, bodyRng);\n\t\t\t\t}\n\n\t\t\t\tvar selection = serializeRng(rng);\n\n\t\t\t\tvar allRng = dom.createRng();\n\t\t\t\tallRng.selectNode(editor.getBody());\n\n\t\t\t\tvar allSelection = serializeRng(allRng);\n\t\t\t\treturn selection === allSelection;\n\t\t\t}\n\n\t\t\teditor.on('keydown', function(e) {\n\t\t\t\tvar keyCode = e.keyCode, isCollapsed, body;\n\n\t\t\t\t// Empty the editor if it's needed for example backspace at <p><b>|</b></p>\n\t\t\t\tif (!isDefaultPrevented(e) && (keyCode == DELETE || keyCode == BACKSPACE)) {\n\t\t\t\t\tisCollapsed = editor.selection.isCollapsed();\n\t\t\t\t\tbody = editor.getBody();\n\n\t\t\t\t\t// Selection is collapsed but the editor isn't empty\n\t\t\t\t\tif (isCollapsed && !dom.isEmpty(body)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Selection isn't collapsed but not all the contents is selected\n\t\t\t\t\tif (!isCollapsed && !allContentsSelected(editor.selection.getRng())) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Manually empty the editor\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\teditor.setContent('');\n\n\t\t\t\t\tif (body.firstChild && dom.isBlock(body.firstChild)) {\n\t\t\t\t\t\teditor.selection.setCursorLocation(body.firstChild, 0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teditor.selection.setCursorLocation(body, 0);\n\t\t\t\t\t}\n\n\t\t\t\t\teditor.nodeChanged();\n\t\t\t\t}\n\t\t\t});\n\t\t}", "function removeGhostSelection() {\n\t\t\teditor.on('Undo Redo SetContent', function(e) {\n\t\t\t\tif (!e.initial) {\n\t\t\t\t\teditor.execCommand('mceRepaint');\n\t\t\t\t}\n\t\t\t});\n\t\t}", "_deleteHandler(event) {\n const that = this,\n selectionStart = that.$.input.selectionStart,\n selectionEnd = that.$.input.selectionEnd,\n key = event.key;\n\n let newSelectionStart = selectionStart;\n\n that._preventDefault(event);\n\n if (selectionStart === selectionEnd) {\n if (key === 'Backspace') {\n for (let i = selectionStart; i > 0; i--) {\n const maskItem = that._mask[i - 1];\n\n if (maskItem.type === 'mask') {\n newSelectionStart = i - 1;\n maskItem.character = '';\n break;\n }\n else {\n newSelectionStart = selectionStart - 1;\n break;\n }\n }\n }\n else {\n for (let i = selectionStart; i < that._mask.length; i++) {\n const maskItem = that._mask[i];\n\n if (maskItem.type === 'mask') {\n newSelectionStart = i + 1;\n maskItem.character = '';\n break;\n }\n else {\n newSelectionStart = selectionStart + 1;\n break;\n }\n }\n }\n }\n else {\n that._cleanMask(selectionStart, selectionEnd);\n if (key === 'Delete') {\n newSelectionStart = selectionEnd;\n }\n }\n\n that._setMaskToInput();\n that._updateMaskFullAndCompleted();\n that.value = that._getValueWithTextMaskFormat({ start: 0, end: that._mask.length }, that.textMaskFormat);\n that.$.input.selectionStart = that.$.input.selectionEnd = newSelectionStart;\n }", "insertText(editor, text) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n Editor.withoutNormalizing(editor, () => {\n var {\n voids = false\n } = options;\n var {\n at = editor.selection\n } = options;\n\n if (!at) {\n return;\n }\n\n if (Path.isPath(at)) {\n at = Editor.range(editor, at);\n }\n\n if (Range.isRange(at)) {\n if (Range.isCollapsed(at)) {\n at = at.anchor;\n } else {\n var end = Range.end(at);\n\n if (!voids && Editor.void(editor, {\n at: end\n })) {\n return;\n }\n\n var pointRef = Editor.pointRef(editor, end);\n Transforms.delete(editor, {\n at,\n voids\n });\n at = pointRef.unref();\n Transforms.setSelection(editor, {\n anchor: at,\n focus: at\n });\n }\n }\n\n if (!voids && Editor.void(editor, {\n at\n })) {\n return;\n }\n\n var {\n path,\n offset\n } = at;\n if (text.length > 0) editor.apply({\n type: 'insert_text',\n path,\n offset,\n text\n });\n });\n }", "function deleteNearSelection(cm, compute) {\n\t\t var ranges = cm.doc.sel.ranges, kill = [];\n\t\t // Build up a set of ranges to kill first, merging overlapping\n\t\t // ranges.\n\t\t for (var i = 0; i < ranges.length; i++) {\n\t\t var toKill = compute(ranges[i]);\n\t\t while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n\t\t var replaced = kill.pop();\n\t\t if (cmp(replaced.from, toKill.from) < 0) {\n\t\t toKill.from = replaced.from;\n\t\t break;\n\t\t }\n\t\t }\n\t\t kill.push(toKill);\n\t\t }\n\t\t // Next, remove those actual ranges.\n\t\t runInOp(cm, function() {\n\t\t for (var i = kill.length - 1; i >= 0; i--)\n\t\t replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n\t\t ensureCursorVisible(cm);\n\t\t });\n\t\t }", "function keyCommandDeleteWord(editorState) {\n\t var afterRemoval = removeTextWithStrategy(editorState, function (strategyState) {\n\t var selection = strategyState.getSelection();\n\t var offset = selection.getStartOffset();\n\t var key = selection.getStartKey();\n\t var content = strategyState.getCurrentContent();\n\t var text = content.getBlockForKey(key).getText().slice(offset);\n\t var toRemove = DraftRemovableWord.getForward(text);\n\n\t // If there are no words in front of the cursor, remove the newline.\n\t return moveSelectionForward(strategyState, toRemove.length || 1);\n\t }, 'forward');\n\n\t if (afterRemoval === editorState.getCurrentContent()) {\n\t return editorState;\n\t }\n\n\t return EditorState.push(editorState, afterRemoval, 'remove-range');\n\t}", "insertText(editor, text) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n Editor.withoutNormalizing(editor, () => {\n var {\n voids = false\n } = options;\n var {\n at = editor.selection\n } = options;\n\n if (!at) {\n return;\n }\n\n if (Path.isPath(at)) {\n at = Editor.range(editor, at);\n }\n\n if (Range.isRange(at)) {\n if (Range.isCollapsed(at)) {\n at = at.anchor;\n } else {\n var end = Range.end(at);\n\n if (!voids && Editor.void(editor, {\n at: end\n })) {\n return;\n }\n\n var pointRef = Editor.pointRef(editor, end);\n Transforms.delete(editor, {\n at,\n voids\n });\n at = pointRef.unref();\n Transforms.setSelection(editor, {\n anchor: at,\n focus: at\n });\n }\n }\n\n if (!voids && Editor.void(editor, {\n at\n })) {\n return;\n }\n\n var {\n path,\n offset\n } = at;\n editor.apply({\n type: 'insert_text',\n path,\n offset,\n text\n });\n });\n }", "function frankerCoreGetSelectedText(doc, trim) {\n\tvar selection = doc.getSelection();\n\treturn (trim) ? frankerUtilTrimString(selection + \"\") : selection + \"\";\n}", "function deleteNearSelection(cm, compute) {\n\t\t var ranges = cm.doc.sel.ranges, kill = [];\n\t\t // Build up a set of ranges to kill first, merging overlapping\n\t\t // ranges.\n\t\t for (var i = 0; i < ranges.length; i++) {\n\t\t var toKill = compute(ranges[i]);\n\t\t while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n\t\t var replaced = kill.pop();\n\t\t if (cmp(replaced.from, toKill.from) < 0) {\n\t\t toKill.from = replaced.from;\n\t\t break\n\t\t }\n\t\t }\n\t\t kill.push(toKill);\n\t\t }\n\t\t // Next, remove those actual ranges.\n\t\t runInOp(cm, function () {\n\t\t for (var i = kill.length - 1; i >= 0; i--)\n\t\t { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n\t\t ensureCursorVisible(cm);\n\t\t });\n\t\t }", "function getOffsetsAfterAccountingForSomeSpecialSelectionCases(allText, offsets) {\n var newOffs = oldOffs = offsets;\n \n // strip leading and trailing white space\n newOffs = getOffsetsAfterStrippingWhiteSpace(allText,newOffs[0],newOffs[1]);\n \n //remove trailing &nbsp; tag if there\n // this can happen if a user shift down-clicks and the following line\n // is empty; dw expands the selection to include the \"<p>nbsp;\"\n // on the next line\n var selStr = allText.substring(newOffs[0],newOffs[1]);\n var chunk = \"&nbsp;\";\n var chunkPos = selStr.lastIndexOf(chunk);\n if (chunkPos!=-1 && chunkPos == (selStr.length - chunk.length)) \n newOffs[1] -= chunk.length;\n\n // remove last tag if it is an opening block tag\n // this can happen if a user shift down-clicks; dw selects the\n // opening block tag on the next paragraph, resulting in a selection like:\n // <p>|some text</p>\n // <p>|more text</p>\n selStr = allText.substring(newOffs[0], newOffs[1]);\n var pattern = /<([^>]*)>$/;\n var result = selStr.match(pattern);\n if (result != null){\n if ( isAContainerTag(result[1]) ){\n newOffs[1] -= result[0].length;\n }\n }\n\n // if selection starts with a closing block tag, remove it\n // this can happen if a user puts the mouse at the end of a line and\n // presses shift-up-arrow to select it\n selStr = allText.substring(newOffs[0],newOffs[1]);\n pattern = /^<\\/([^>]*)>/;\n result = selStr.match(pattern);\n if (result != null){\n if ( isAContainerTag(result[1]) ){\n newOffs[0] += result[0].length;\n }\n }\n\n // strip leading and trailing white space if offsets have changed\n if (newOffs != oldOffs){\n newOffs = getOffsetsAfterStrippingWhiteSpace(allText,newOffs[0],newOffs[1]);\n oldOffs = newOffs;\n }\n\n // account for special list case: selecting the first item in a list\n // can select the opening <ol> or <ul> as well. Strip it.\n newOffs = getOffsetsAfterListCheck(allText,newOffs[0],newOffs[1]);\n\n // strip leading and trailing white space if offsets have changed\n if (newOffs != oldOffs){\n newOffs = getOffsetsAfterStrippingWhiteSpace(allText,newOffs[0],newOffs[1]);\n }\n \n return newOffs;\n\n}", "function removeD_text(){\r\n d_text.destroy();\r\n}", "selectContent(textPosition, clearMultiSelection) {\n if (isNullOrUndefined(textPosition)) {\n throw new Error('textPosition is undefined.');\n }\n this.start.setPositionInternal(textPosition);\n this.end.setPositionInternal(textPosition);\n this.upDownSelectionLength = this.end.location.x;\n this.fireSelectionChanged(true);\n }", "function deleteAndRaiseFN() {\n let sel = $('#' + $('.selected').attr('id'));\n let pos = sel.offset();\n let subTree = sel.detach();\n $('#' + sel.attr('line-target')).remove();\n subTree.appendTo('body');\n sel.css({\n 'top' : pos.top,\n 'left' : pos.left\n });\n calc_all_lines('#' + sel.attr('id'));\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = []\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i])\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop()\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from\n break\n }\n }\n kill.push(toKill)\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\") }\n ensureCursorVisible(cm)\n })\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = []\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i])\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop()\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from\n break\n }\n }\n kill.push(toKill)\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\") }\n ensureCursorVisible(cm)\n })\n}", "function emptyEditorOnDeleteEverything() {\n\t\t\tfunction isEverythingSelected(editor) {\n\t\t\t\tvar caretWalker = new CaretWalker(editor.getBody());\n\t\t\t\tvar rng = editor.selection.getRng();\n\t\t\t\tvar startCaretPos = CaretPosition.fromRangeStart(rng);\n\t\t\t\tvar endCaretPos = CaretPosition.fromRangeEnd(rng);\n\t\t\t\tvar prev = caretWalker.prev(startCaretPos);\n\t\t\t\tvar next = caretWalker.next(endCaretPos);\n\n\t\t\t\treturn !editor.selection.isCollapsed() &&\n\t\t\t\t\t(!prev || (prev.isAtStart() && startCaretPos.isEqual(prev))) &&\n\t\t\t\t\t(!next || (next.isAtEnd() && startCaretPos.isEqual(next)));\n\t\t\t}\n\n\t\t\t// Type over case delete and insert this won't cover typeover with a IME but at least it covers the common case\n\t\t\teditor.on('keypress', function (e) {\n\t\t\t\tif (!isDefaultPrevented(e) && !selection.isCollapsed() && e.charCode > 31 && !VK.metaKeyPressed(e)) {\n\t\t\t\t\tif (isEverythingSelected(editor)) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\teditor.setContent(String.fromCharCode(e.charCode));\n\t\t\t\t\t\teditor.selection.select(editor.getBody(), true);\n\t\t\t\t\t\teditor.selection.collapse(false);\n\t\t\t\t\t\teditor.nodeChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\teditor.on('keydown', function (e) {\n\t\t\t\tvar keyCode = e.keyCode;\n\n\t\t\t\tif (!isDefaultPrevented(e) && (keyCode == DELETE || keyCode == BACKSPACE)) {\n\t\t\t\t\tif (isEverythingSelected(editor)) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\teditor.setContent('');\n\t\t\t\t\t\teditor.nodeChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "doTextOperation(){let root=this,selection=root.selection;if(root.toggled&&null!==root.toggledCommand){document.execCommand(root.toggledCommand,!1,root.toggledCommand||\"\")}else if(null!==root.command){root.dispatchEvent(new CustomEvent(root.command+\"-button\",{bubbles:!0,cancelable:!0,composed:!0,detail:root}));document.execCommand(root.command,!1,root.commandVal||\"\");root.selection=selection}}", "deleteRow() {\n if (this.owner.isReadOnlyMode) {\n return;\n }\n let startPos = !this.selection.isForward ? this.selection.end : this.selection.start;\n let endPos = !this.selection.isForward ? this.selection.start : this.selection.end;\n if (startPos.paragraph.isInsideTable) {\n let startCell = this.getOwnerCell(this.selection.isForward);\n let endCell = this.getOwnerCell(!this.selection.isForward);\n if (this.checkIsNotRedoing()) {\n this.initHistory('DeleteRow');\n }\n this.selection.owner.isShiftingEnabled = true;\n let table = startCell.ownerTable.combineWidget(this.viewer);\n let row = this.getOwnerRow(true);\n if (this.editorHistory && this.editorHistory.currentBaseHistoryInfo) {\n this.cloneTableToHistoryInfo(table);\n }\n let paragraph = undefined;\n if (row.nextWidget) {\n let nextCell = row.nextWidget.childWidgets[0];\n paragraph = this.selection.getFirstParagraph(nextCell);\n }\n if (isNullOrUndefined(paragraph)) {\n paragraph = this.getParagraphForSelection(table);\n }\n if (!this.selection.isEmpty) {\n //tslint:disable-next-line:max-line-length\n let containerCell = this.selection.getContainerCellOf(startCell, endCell);\n if (containerCell.ownerTable.contains(endCell)) {\n startCell = this.selection.getSelectedCell(startCell, containerCell);\n endCell = this.selection.getSelectedCell(endCell, containerCell);\n if (this.selection.containsCell(containerCell, endCell)) {\n row = startCell.ownerRow;\n this.removeRow(row);\n }\n else {\n row = startCell.ownerRow;\n let endRow = endCell.ownerRow;\n //Update the selection paragraph.\n paragraph = undefined;\n if (endRow.nextWidget) {\n let nextCell = endRow.nextWidget.childWidgets[0];\n paragraph = this.selection.getFirstParagraph(nextCell);\n }\n if (isNullOrUndefined(paragraph)) {\n paragraph = this.getParagraphForSelection(table);\n }\n for (let i = 0; i < table.childWidgets.length; i++) {\n let tableRow = table.childWidgets[i];\n if (tableRow.rowIndex >= row.rowIndex && tableRow.rowIndex <= endRow.rowIndex) {\n table.childWidgets.splice(i, 1);\n tableRow.destroy();\n i--;\n }\n }\n if (table.childWidgets.length === 0) {\n this.removeBlock(table);\n if (this.editorHistory && this.editorHistory.currentBaseHistoryInfo) {\n this.editorHistory.currentBaseHistoryInfo.action = 'DeleteTable';\n }\n table.destroy();\n }\n else {\n this.updateTable(table);\n }\n }\n }\n }\n else {\n this.removeRow(row);\n }\n this.selection.selectParagraphInternal(paragraph, true);\n if (isNullOrUndefined(this.editorHistory) || this.checkIsNotRedoing()) {\n this.reLayout(this.selection, true);\n }\n }\n }", "function selectedText() {\n var selection = '';\n if (window.getSelection) {\n selection = window.getSelection();\n } else if (document.selection) { // Opera\n selection = document.selection.createRange();\n }\n if (selection.text) {\n selection = selection.text;\n } else if (selection.toString) {\n selection = selection.toString();\n }\n return selection;\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break;\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function() {\n for (var i = kill.length - 1; i >= 0; i--)\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n ensureCursorVisible(cm);\n });\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break;\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function() {\n for (var i = kill.length - 1; i >= 0; i--)\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n ensureCursorVisible(cm);\n });\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break;\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function() {\n for (var i = kill.length - 1; i >= 0; i--)\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n ensureCursorVisible(cm);\n });\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break;\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function() {\n for (var i = kill.length - 1; i >= 0; i--)\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n ensureCursorVisible(cm);\n });\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break;\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function() {\n for (var i = kill.length - 1; i >= 0; i--)\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n ensureCursorVisible(cm);\n });\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break;\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function() {\n for (var i = kill.length - 1; i >= 0; i--)\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n ensureCursorVisible(cm);\n });\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break;\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function() {\n for (var i = kill.length - 1; i >= 0; i--)\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\n ensureCursorVisible(cm);\n });\n }", "function untagSelectedText( fTag, fAttrs, ld, rd, fDirectEditing) {\r\n var input = self.el;\r\n /* internet explorer */\r\n if( typeof document.selection != 'undefined') {\r\n var range = document.selection.createRange();\r\n var selText = range.text;\r\n /* für Direct-Editing */\r\n if ( fDirectEditing) {\r\n var inpValue = input.value;\r\n /* Preceding selected text */\r\n var fullText = untag( inpValue);\r\n var aRange = range.duplicate();\r\n while ( fullText.indexOf( aRange.text) != 0)\r\n aRange.moveStart( 'word', -1);\r\n aRange.moveEnd( 'word', -1);\r\n /* Find Preceding selected text in raw-html of input */\r\n var start = taggedStart( inpValue, aRange.text);\r\n while ( inpValue.charAt( start) == ' ')\r\n start++;\r\n var aTag = ld+fTag+rd;\r\n var eTag = ld+'/'+fTag+rd;\r\n var taggedText = selText;\r\n /* Strip trailing blanks */\r\n while ( taggedText.length > 0 && taggedText.charAt( taggedText.length - 1) == ' ') {\r\n taggedText = taggedText.substr( 0, taggedText.length - 1);\r\n eTag += ' ';\r\n }\r\n /* Apply value */\r\n if ( inpValue.substr( start).indexOf( aTag + taggedText + eTag) == 0 ||\r\n inpValue.substr( start).indexOf( aTag.toUpperCase() + taggedText + eTag.toUpperCase()) == 0 ) {\r\n input.value = inpValue.substr( 0, start) + selText + inpValue.substr( start + (aTag + taggedText + eTag).length);\r\n return true;\r\n }\r\n }\r\n else {\r\n var startTag = ld+fTag;\r\n var endTag = ld+'/'+fTag+rd;\r\n if ( selText.indexOf(startTag) == 0 && selText.lastIndexOf(endTag) == selText.length - endTag.length) {\r\n selText = selText.substr( startTag.length + 1, selText.lastIndexOf( endTag) - startTag.length - 1); \r\n /* Apply value */\r\n range.text = selText;\r\n return true;\r\n }\r\n else {\r\n range.moveStart('character', -(startTag.length+1));\r\n range.moveEnd('character', endTag.length);\r\n var taggedText = range.text;\r\n if ( taggedText.indexOf(startTag) == 0 && taggedText.lastIndexOf(endTag) == taggedText.length - endTag.length) {\r\n /* Apply value */\r\n range.text = selText;\r\n return true;\r\n }\r\n else if ( fAttrs.length > 0) {\r\n startTag += fAttrs;\r\n range.moveStart('character', -fAttrs.length);\r\n var taggedText = range.text;\r\n if ( taggedText.indexOf(startTag) == 0 && taggedText.lastIndexOf(endTag) == taggedText.length - endTag.length) {\r\n /* Apply value */\r\n range.text = selText;\r\n return true;\r\n }\r\n }\r\n } \r\n }\r\n }\r\n /* newer gecko-based browsers */\r\n else if( typeof input.selectionStart != 'undefined') {\r\n var start = self.selectionStart;\r\n var end = self.selectionEnd;\r\n var inpValue = input.value;\r\n var selText = inpValue.substring( start, end);\r\n var tagStart = inpValue.substr( 0, start);\r\n var i = tagStart.length;\r\n var c = tagStart.charAt( i - 1);\r\n if ( c == '>') {\r\n /* Handle DTML in a.href */\r\n i--;\r\n var l = 1;\r\n while ( l > 0 && i > 0) {\r\n c = tagStart.charAt( i - 1);\r\n if ( c == rd)\r\n l++;\r\n if ( c == ld)\r\n l--;\r\n i--;\r\n }\r\n if ( i >= 0) {\r\n var tag = tagStart.substr( i);\r\n tagStart = tagStart.substr( 0, i);\r\n if ( tag.indexOf(ld+fTag) == 0 && tag.indexOf(rd) > 0) {\r\n var tagEnd = inpValue.substr( end);\r\n if ( tagEnd.indexOf(rd) > 0) {\r\n var tag = tagEnd.substr( 0, tagEnd.indexOf(rd) + 1);\r\n tagEnd = tagEnd.substr( tagEnd.indexOf(rd) + 1);\r\n if ( tag.indexOf(ld+'/'+fTag+rd) == 0) {\r\n input.value = tagStart + selText + tagEnd;\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n}", "function removeSelectionHighlight() {\r\n hideSelectionRect();\r\n hideRotIndicator();\r\n }", "function sanitizeWithSelection(o) {\n var startCaretPos = getSelectionStart(o),\n endCaretPos = getSelectionEnd(o),\n temp = \"\",\n testPlusChar = \"\",\n selectionCharInfo = [];\n \n //records selection information for each char\n for (i=0;i<o.value.length;i++) {\n if (startCaretPos > i){\n selectionCharInfo[i] = 'beforeSelection';\n } else if ((startCaretPos <= i) && (endCaretPos > i)) {\n selectionCharInfo[i] = 'inSelection';\n } //note: if a char after the selection is invalid the selection would not change if that char is removed...\n }\n \n for (i=0;i<o.value.length;i++) {\n var iPlusOne = i + 1;\n testPlusChar += o.value.substring(i,iPlusOne);\n if ((!regExpression.test(testPlusChar))) {\n var lastChar = testPlusChar.length-1;\n temp = testPlusChar.substring(0,lastChar);\n testPlusChar = temp;\n if (selectionCharInfo[i] == 'beforeSelection'){\n startCaretPos = startCaretPos - 1;\n endCaretPos = endCaretPos - 1;\n } else if (selectionCharInfo[i] == 'inSelection'){\n endCaretPos = endCaretPos - 1;\n }\n }\n }\n o.value = testPlusChar;\n setSelectionRange (o,startCaretPos,endCaretPos);\n }", "function deleteNearSelection(cm, compute) {\r\n var ranges = cm.doc.sel.ranges, kill = [];\r\n // Build up a set of ranges to kill first, merging overlapping\r\n // ranges.\r\n for (var i = 0; i < ranges.length; i++) {\r\n var toKill = compute(ranges[i]);\r\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\r\n var replaced = kill.pop();\r\n if (cmp(replaced.from, toKill.from) < 0) {\r\n toKill.from = replaced.from;\r\n break;\r\n }\r\n }\r\n kill.push(toKill);\r\n }\r\n // Next, remove those actual ranges.\r\n runInOp(cm, function() {\r\n for (var i = kill.length - 1; i >= 0; i--)\r\n replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\");\r\n ensureCursorVisible(cm);\r\n });\r\n }", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}", "function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n}" ]
[ "0.74456984", "0.7390331", "0.7098297", "0.7048888", "0.6970701", "0.69376636", "0.69182247", "0.6821997", "0.68106675", "0.6800755", "0.6720468", "0.6719371", "0.6719371", "0.6719371", "0.6719371", "0.6719371", "0.6719371", "0.6719371", "0.6719371", "0.6719371", "0.66853714", "0.66503763", "0.6649617", "0.6600003", "0.6558695", "0.65149456", "0.6493933", "0.6432706", "0.6425345", "0.6379673", "0.63455063", "0.6326176", "0.63148236", "0.6308717", "0.6307485", "0.62838763", "0.62728775", "0.61478996", "0.6131649", "0.61203074", "0.6072926", "0.6049887", "0.6030204", "0.59977615", "0.5957294", "0.5957294", "0.5957294", "0.59366953", "0.59161675", "0.59027994", "0.5901273", "0.58895767", "0.5879157", "0.58695734", "0.5868248", "0.585789", "0.5852887", "0.58469325", "0.58277607", "0.5824354", "0.5824354", "0.5822051", "0.5817489", "0.58119464", "0.5796983", "0.5796086", "0.5796086", "0.5796086", "0.5796086", "0.5796086", "0.5796086", "0.5796086", "0.5794353", "0.578318", "0.57820255", "0.5778441", "0.5772611", "0.5772611", "0.5772611", "0.5772611", "0.5772611", "0.5772611", "0.5772611", "0.5772611" ]
0.57738036
92
Run a handler that was bound to a key.
function doHandleBinding(cm, bound, dropShift) { if (typeof bound == "string") { bound = commands[bound]; if (!bound) { return false } } // Ensure previous input has been read, so that the handler sees a // consistent view of the document cm.display.input.ensurePolled(); var prevShift = cm.display.shift, done = false; try { if (cm.isReadOnly()) { cm.state.suppressEdits = true; } if (dropShift) { cm.display.shift = false; } done = bound(cm) != Pass; } finally { cm.display.shift = prevShift; cm.state.suppressEdits = false; } return done }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getBindingHandler (/* key */) {}", "function receive(key, handler) {\n pxsim.board().bus.listen(key, 0x1, handler);\n }", "function bind(key, action) {\r\n bindings[key] = action; \r\n\r\n}", "function listen(key, callback) {\n handlers[key] = callback;\n}", "function handleCb(key, payload) {\n if (key && callbacks[key])\n callbacks[key](payload);\n }", "function runHandler() {\r\n var trigger, triggerName, paras;\r\n if(arguments.length > 0){\r\n triggerName = arguments[0];\r\n [].splice.call(arguments, 0, 1);\r\n paras = arguments;\r\n }else{\r\n return;\r\n }\r\n trigger = this._triggerHandlers[triggerName];\r\n if(trigger){\r\n trigger.forEach(function(fn, idx){\r\n fn.apply(this, paras); \r\n }); \r\n }\r\n }", "static BindKey(key, callback, key_reset = false) {\n key = key.toLowerCase()\n if (!this._keybindings) this._keybindings = []\n // add key if not alrady bound\n if (!this._keybindings.map(bind => bind.key).includes(key))\n this._keybindings.push({key: key, actions: [], key_reset: key_reset})\n // bind callback to key\n const binding = this._keybindings.find(bind => bind.key == key)\n if (!binding.actions.includes(callback)) binding.actions.push(callback)\n }", "function _processKey(event, bindings) {\n\t\t\tfor (var id in bindings) {\n\t\t\t\tif (bindings[id] && bindings[id].keyBinding && bindings[id].command) {\n\t\t\t\t\tif (bindings[id].keyBinding.match(event)) {\n\t\t\t\t\t\tvar activeBinding = bindings[id];\n\t\t\t\t\t\tvar keyBinding = activeBinding.keyBinding;\n\t\t\t\t\t\t// Check for keys that are scoped to a particular part of the DOM\n\t\t\t\t\t\tif (!keyBinding.domScope || lib.contains(lib.node(keyBinding.domScope), event.target)) {\n\t\t\t\t\t\t\tif (executeBinding(activeBinding)) {\n\t\t\t\t\t\t\t\tlib.stop(event);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "static eventCallback(fullKey, handler, zone) {\n return (event /** TODO #9100 */) => {\n if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\n zone.runGuarded(() => handler(event));\n }\n };\n }", "static eventCallback(fullKey, handler, zone) {\n return (event /** TODO #9100 */) => {\n if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\n zone.runGuarded(() => handler(event));\n }\n };\n }", "static eventCallback(fullKey, handler, zone) {\n return (event /** TODO #9100 */) => {\n if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\n zone.runGuarded(() => handler(event));\n }\n };\n }", "static eventCallback(fullKey, handler, zone) {\n return (event /** TODO #9100 */) => {\n if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\n zone.runGuarded(() => handler(event));\n }\n };\n }", "static eventCallback(fullKey, handler, zone) {\n return (event /** TODO #9100 */) => {\n if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\n zone.runGuarded(() => handler(event));\n }\n };\n }", "static eventCallback(fullKey, handler, zone) {\n return (event\n /** TODO #9100 */\n ) => {\n if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\n zone.runGuarded(() => handler(event));\n }\n };\n }", "* processBinding (key, value) {\n // Get the \"on\" binding from \"on.click\"\n const [handlerName, property] = key.split('.')\n const handler = this.bindingHandlers.get(handlerName)\n\n if (handler && handler.preprocess) {\n const bindingsAddedByHandler = []\n const chainFn = (...args) => bindingsAddedByHandler.push(args)\n value = handler.preprocess(value, key, chainFn)\n for (const [key, value] of bindingsAddedByHandler) {\n yield * this.processBinding(key, value)\n }\n } else if (property) {\n value = `{${property}:${value}}`\n }\n\n yield `${handlerName}:${value}`\n }", "* processBinding (key, value) {\n // Get the \"on\" binding from \"on.click\"\n const [handlerName, property] = key.split('.');\n const handler = this.bindingHandlers.get(handlerName);\n\n if (handler && handler.preprocess) {\n const bindingsAddedByHandler = [];\n const chainFn = (...args) => bindingsAddedByHandler.push(args);\n value = handler.preprocess(value, key, chainFn);\n for (const [key, value] of bindingsAddedByHandler) {\n yield * this.processBinding(key, value);\n }\n } else if (property) {\n value = `{${property}:${value}}`;\n }\n\n yield `'${handlerName}':${value}`;\n }", "function keyPressed() {\n if (handler.active === handler.nameplate) {\n doorbell.keyPressed();\n }\n}", "bindKeyHandlers() {\n const tank = this.tank;\n\n Object.keys(GameView.MOVES).forEach((k) => {\n const moves = GameView.MOVES[k];\n\n key(k, () => { \n this.gun.pos = [tank.pos[0] + moves[0], tank.pos[1]];\n tank.pos = [tank.pos[0] + moves[0], tank.pos[1]];\n });\n });\n\n key(\"space\", () => { tank.fireBullets() });\n }", "emit(key, name, event) {\n\t\tif (!this.keyPool[key]) return\n\t\tthis.keyPool[key](name, event)\n\t}", "function keyBinding() {\n\n $(document).keydown(function (e) {\n that.snake.changeDirection(e.which);\n });\n }", "function BindAndRun() {\r\n}", "function bindCommand(options)\n{\n KeyMap.clear();\n\n $.each($.extend(true, {}, options.default_key_bind, options.key_bind), function(map, bind) {\n $.each(bind, function(key, command) {\n KeyMap[map](key, command);\n });\n });\n}", "function keyEventAttacher(handler){\r\n\t\treturn function(event){\r\n\t\t\tvar node = event.target;\r\n\t\t\t\r\n\t\t\tif(isUsableNode(node))\r\n\t\t\t\thandler.call(node, event);\t\t\t\r\n\t\t};\r\n\t}", "function handler() {\n\t\treturn function () {\n\t\t\tself.handler.apply(self, arguments);\n\t\t};\n\t}", "function registerHandler (handler) {\n app[handler.method]( handler.path, handler.func() );\n }", "function eventHandler(e, fnmap) {\n if (/^key/.test(e.type)) {\n var state = analyzeEvent(e);\n if (state.changed) {\n if (state.on) {\n if (fnmap.capsLockOn) fnmap.capsLockOn();\n } else {\n if (fnmap.capsLockOff) fnmap.capsLockOff();\n }\n }\n } else if (fnmap[e.type]) {\n fnmap[e.type]( capsLockCore.isCapsLockOn() );\n }\n }", "handleKeyDown(kCode) {\n console.log(\"handleKeyDown \" + this.id + \" \" + kCode)\n }", "function fn(e) {\n e.preventDefault();\n self.log(key, 'has been pressed:', cmd.desc);\n return cmd.fn(e);\n }", "_addKeyHandler() {\n // Keyboard.addKeyHandlers...\n }", "function registerKeyHandler(dos_code, fun) {\n if (dos_code.charCodeAt != undefined) dos_code = dos_code.charCodeAt(0);\n keyHandlers_[dos_code] = fun;\n}", "function handleKeyPress({ key }) {\n dispatch(playerTyped(key.toLowerCase()));\n }", "function assignKey(key, scope, method){\n\t var keys, mods;\n\t keys = getKeys(key);\n\t if (method === undefined) {\n\t method = scope;\n\t scope = 'all';\n\t }\n\t\n\t // for each shortcut\n\t for (var i = 0; i < keys.length; i++) {\n\t // set modifier keys if any\n\t mods = [];\n\t key = keys[i].split('+');\n\t if (key.length > 1){\n\t mods = getMods(key);\n\t key = [key[key.length-1]];\n\t }\n\t // convert to keycode and...\n\t key = key[0]\n\t key = code(key);\n\t // ...store handler\n\t if (!(key in _handlers)) _handlers[key] = [];\n\t _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n\t }\n\t }", "function assignKey(key, scope, method){\n\t var keys, mods;\n\t keys = getKeys(key);\n\t if (method === undefined) {\n\t method = scope;\n\t scope = 'all';\n\t }\n\t\n\t // for each shortcut\n\t for (var i = 0; i < keys.length; i++) {\n\t // set modifier keys if any\n\t mods = [];\n\t key = keys[i].split('+');\n\t if (key.length > 1){\n\t mods = getMods(key);\n\t key = [key[key.length-1]];\n\t }\n\t // convert to keycode and...\n\t key = key[0]\n\t key = code(key);\n\t // ...store handler\n\t if (!(key in _handlers)) _handlers[key] = [];\n\t _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n\t }\n\t }", "function runHandlers(handlerEvent, event) {\n var handler;\n for (var name in HANDLERS) {\n handler = HANDLERS[name];\n if( handler instanceof $$MdGestureHandler ) {\n\n if (handlerEvent === 'start') {\n // Run cancel to reset any handlers' state\n handler.cancel();\n }\n handler[handlerEvent](event, pointer);\n\n }\n }\n }", "function SetKeyHandler(event)\n{\n var key = event.charCode || event.keyCode || 0;\n var page = GetState(\"page\");\n \n switch(page)\n {\n case \"movies\" : SetMainKeyHandler(key, event);\n break;\n \n case \"tvshows\": SetMainKeyHandler(key, event);\n break;\n \n case \"music\" : SetMainKeyHandler(key, event);\n break; \n \n case \"system\" : SetSystemKeyHandler(key, event);\n break; \n \n case \"popup\" : SetPopupKeyHandler(key);\n break;\n }\n}", "function runHandlers(handlerEvent,event){var handler;for(var name in HANDLERS){handler=HANDLERS[name];if(handler instanceof $$MdGestureHandler){if(handlerEvent==='start'){// Run cancel to reset any handlers' state\n\thandler.cancel();}handler[handlerEvent](event,pointer);}}}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "_keypressHandler(chunk, key)\n\t\t{\n\t\t\tif(key)\n\t\t\t{\n\t\t\t\tif(key.name == \"return\")\n\t\t\t\t{\n\t\t\t\t\tSCli.log(\"\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif((key.ctrl && key.name == \"c\") || (key.name == \"escape\"))\n\t\t\t\t{\n\t\t\t\t\tSCli.log(\"Monitoring stopped.\");\n\t\t\t\t\tprocess.exit();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function handleKeyBinding(cm, e) {\n\t\t var name = keyName(e, true);\n\t\t if (!name) return false;\n\t\t\n\t\t if (e.shiftKey && !cm.state.keySeq) {\n\t\t // First try to resolve full name (including 'Shift-'). Failing\n\t\t // that, see if there is a cursor-motion command (starting with\n\t\t // 'go') bound to the keyname without 'Shift-'.\n\t\t return dispatchKey(cm, \"Shift-\" + name, e, function(b) {return doHandleBinding(cm, b, true);})\n\t\t || dispatchKey(cm, name, e, function(b) {\n\t\t if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n\t\t return doHandleBinding(cm, b);\n\t\t });\n\t\t } else {\n\t\t return dispatchKey(cm, name, e, function(b) { return doHandleBinding(cm, b); });\n\t\t }\n\t\t }", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "function Handler() {}", "bind(key) {\n const binding = new binding_1.Binding(key.toString());\n this.add(binding);\n return binding;\n }", "function runHandlers(handlerEvent, event) {\n var handler;\n for (var name in HANDLERS) {\n handler = HANDLERS[name];\n if( handler instanceof $$MdGestureHandler ) {\n\n if (handlerEvent === 'start') {\n // Run cancel to reset any handlers' state\n handler.cancel();\n }\n handler[handlerEvent](event, pointer);\n\n }\n }\n }", "function runHandlers(handlerEvent, event) {\n var handler;\n for (var name in HANDLERS) {\n handler = HANDLERS[name];\n if( handler instanceof $$MdGestureHandler ) {\n\n if (handlerEvent === 'start') {\n // Run cancel to reset any handlers' state\n handler.cancel();\n }\n handler[handlerEvent](event, pointer);\n\n }\n }\n }", "function runHandlers(handlerEvent, event) {\n var handler;\n for (var name in HANDLERS) {\n handler = HANDLERS[name];\n if (handler instanceof $$MdGestureHandler) {\n\n if (handlerEvent === 'start') {\n // Run cancel to reset any handlers' state\n handler.cancel();\n }\n handler[handlerEvent](event, pointer);\n\n }\n }\n }", "function runHandlers(handlerEvent, event) {\n var handler;\n for (var name in HANDLERS) {\n handler = HANDLERS[name];\n if( handler instanceof $$MdGestureHandler ) {\n\n if (handlerEvent === 'start') {\n // Run cancel to reset any handlers' state\n handler.cancel();\n }\n handler[handlerEvent](event, pointer);\n\n }\n }\n }", "function bindKey(event) {\n\t\t//index of keybind that contains the selected key (for conflicts)\n\t\tlet i = CS.keyBinds.findIndex(item => item[1] === event.keyCode || item[2] === event.key)\n\t\t//index of keybind that contains the selected function\n\t\tlet j = CS.keyBinds.findIndex(item => item[0] === ctrl.key2bind.action)\n\n\t\t//key is unchanged, do nothing\n\t\tif(i > -1 && i === j) {\n\t\t\tCS.popup = false;\n\t\t\tCS.keyBinding = false;\n\t\t}\n\t\t//key is in conflict\n\t\telse if(i > -1) {\n\t\t\tlet msg = 'Konflikt, stiskněte jinou klávesu.';\n\t\t\t(CS.popup.lines.slice(-1)[0] !== msg) && CS.popup.lines.push(msg);\n\t\t}\n\t\t//set the new key\n\t\telse {\n\t\t\tCS.keyBinds[j][1] = event.keyCode;\n\t\t\tCS.keyBinds[j][2] = event.key;\n\t\t\tCS.popup = false;\n\t\t\tCS.keyBinding = false;\n\t\t\tpopup('OK', true, 600);\n\t\t}\n\t}", "function handleKeyBinding(cm, e) {\n\t\t var name = keyName(e, true);\n\t\t if (!name) { return false }\n\n\t\t if (e.shiftKey && !cm.state.keySeq) {\n\t\t // First try to resolve full name (including 'Shift-'). Failing\n\t\t // that, see if there is a cursor-motion command (starting with\n\t\t // 'go') bound to the keyname without 'Shift-'.\n\t\t return dispatchKey(cm, \"Shift-\" + name, e, function (b) { return doHandleBinding(cm, b, true); })\n\t\t || dispatchKey(cm, name, e, function (b) {\n\t\t if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n\t\t { return doHandleBinding(cm, b) }\n\t\t })\n\t\t } else {\n\t\t return dispatchKey(cm, name, e, function (b) { return doHandleBinding(cm, b); })\n\t\t }\n\t\t }", "function assignKey(key, scope, method){\n var keys, mods;\n keys = getKeys(key);\n if (method === undefined) {\n method = scope;\n scope = 'all';\n }\n\n // for each shortcut\n for (var i = 0; i < keys.length; i++) {\n // set modifier keys if any\n mods = [];\n key = keys[i].split('+');\n if (key.length > 1){\n mods = getMods(key);\n key = [key[key.length-1]];\n }\n // convert to keycode and...\n key = key[0]\n key = code(key);\n // ...store handler\n if (!(key in _handlers)) _handlers[key] = [];\n _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n }\n }", "function assignKey(key, scope, method){\n var keys, mods;\n keys = getKeys(key);\n if (method === undefined) {\n method = scope;\n scope = 'all';\n }\n\n // for each shortcut\n for (var i = 0; i < keys.length; i++) {\n // set modifier keys if any\n mods = [];\n key = keys[i].split('+');\n if (key.length > 1){\n mods = getMods(key);\n key = [key[key.length-1]];\n }\n // convert to keycode and...\n key = key[0]\n key = code(key);\n // ...store handler\n if (!(key in _handlers)) _handlers[key] = [];\n _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n }\n }", "function assignKey(key, scope, method){\n var keys, mods;\n keys = getKeys(key);\n if (method === undefined) {\n method = scope;\n scope = 'all';\n }\n\n // for each shortcut\n for (var i = 0; i < keys.length; i++) {\n // set modifier keys if any\n mods = [];\n key = keys[i].split('+');\n if (key.length > 1){\n mods = getMods(key);\n key = [key[key.length-1]];\n }\n // convert to keycode and...\n key = key[0]\n key = code(key);\n // ...store handler\n if (!(key in _handlers)) _handlers[key] = [];\n _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n }\n }", "function assignKey(key, scope, method){\n var keys, mods;\n keys = getKeys(key);\n if (method === undefined) {\n method = scope;\n scope = 'all';\n }\n\n // for each shortcut\n for (var i = 0; i < keys.length; i++) {\n // set modifier keys if any\n mods = [];\n key = keys[i].split('+');\n if (key.length > 1){\n mods = getMods(key);\n key = [key[key.length-1]];\n }\n // convert to keycode and...\n key = key[0]\n key = code(key);\n // ...store handler\n if (!(key in _handlers)) _handlers[key] = [];\n _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n }\n }", "function assignKey(key, scope, method){\r\n var keys, mods;\r\n keys = getKeys(key);\r\n if (method === undefined) {\r\n method = scope;\r\n scope = 'all';\r\n }\r\n \r\n // for each shortcut\r\n for (var i = 0; i < keys.length; i++) {\r\n // set modifier keys if any\r\n mods = [];\r\n key = keys[i].split('+');\r\n if (key.length > 1){\r\n mods = getMods(key);\r\n key = [key[key.length-1]];\r\n }\r\n // convert to keycode and...\r\n key = key[0]\r\n key = code(key);\r\n // ...store handler\r\n if (!(key in _handlers)) _handlers[key] = [];\r\n _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\r\n }\r\n }", "function handleCharBinding(cm, e, ch) {\n\t\t return dispatchKey(cm, \"'\" + ch + \"'\", e, function (b) { return doHandleBinding(cm, b, true); })\n\t\t }", "function _handler(){\r\n\t\tvar tool = touchstate || state;\r\n\t\ttools[tool]();\r\n\t}", "function executeKey(key) {\n if (keyIsDisabled(key)) return; // Do not execute if key is disabled (e.g. decimal)\n const type = keys[keyIndexByKey(key)].type;\n\n switch (type) {\n case \"number\":\n executeNumber(key);\n break;\n case \"operator\":\n executeOperator(key);\n break;\n case \"command\":\n executeCommand(key);\n break;\n }\n}", "function doHandleBinding(cm, bound, dropShift) {\n\t\t if (typeof bound == \"string\") {\n\t\t bound = commands[bound];\n\t\t if (!bound) return false;\n\t\t }\n\t\t // Ensure previous input has been read, so that the handler sees a\n\t\t // consistent view of the document\n\t\t cm.display.input.ensurePolled();\n\t\t var prevShift = cm.display.shift, done = false;\n\t\t try {\n\t\t if (cm.isReadOnly()) cm.state.suppressEdits = true;\n\t\t if (dropShift) cm.display.shift = false;\n\t\t done = bound(cm) != Pass;\n\t\t } finally {\n\t\t cm.display.shift = prevShift;\n\t\t cm.state.suppressEdits = false;\n\t\t }\n\t\t return done;\n\t\t }", "function runScopeHandlers(view, event, scope) {\n return runHandlers(getKeymap(view.state), event, view, scope);\n}", "function bindHandlers(id){\n\tunbindHandlers();\n\tvar elements = recipes[id].elements_key;\n\t\n\t// the fetching...\n\t$.each(elements, function(i, e) { // i is element index. e is element as text.\n\t var newElement = ( /[\\+]+/.test(elements[i]) ) ? elements[i].replace(\"+\",\"_\") : elements[i];\n\t \n\t // Binding keys\n\t $(document).bind('keydown', elements[i], function assets() {\n\t\t $('#_'+ newElement).addClass(\"active\");\n\t\t return false;\n\t });\n\t // Binding keys\n\t $(document).bind('keyup', elements[i], function assets() {\n\t\t updateBar();\n\t\t $('#_'+ newElement).removeClass(\"active\");\n\t\t return false;\n\t });\n\t});\n\t//make buttons click able\n\t$('.input-key').click(function(){updateBar();});\n}", "static getOrCreateFor (key, handler) {\n if (legacyBindingMap.has(handler)) {\n return legacyBindingMap.get(handler)\n }\n const newLegacyHandler = this.createFor(key, handler);\n legacyBindingMap.set(handler, newLegacyHandler);\n return newLegacyHandler\n }", "function handler() {\n fired = true;\n }", "function getBindingHandler(bindingKey) {\n return options.bindingProviderInstance.bindingHandlers.get(bindingKey);\n }", "function handleCharBinding(cm, e, ch) {\n\t\t return dispatchKey(cm, \"'\" + ch + \"'\", e,\n\t\t function(b) { return doHandleBinding(cm, b, true); });\n\t\t }", "fire(sender, args) {\n this.handlers.forEach((callback) => callback(sender, args));\n }", "function handleKeyBinding(cm, e) {\n\t var name = keyName(e, true);\n\t if (!name) return false;\n\t\n\t if (e.shiftKey && !cm.state.keySeq) {\n\t // First try to resolve full name (including 'Shift-'). Failing\n\t // that, see if there is a cursor-motion command (starting with\n\t // 'go') bound to the keyname without 'Shift-'.\n\t return dispatchKey(cm, \"Shift-\" + name, e, function(b) {return doHandleBinding(cm, b, true);})\n\t || dispatchKey(cm, name, e, function(b) {\n\t if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n\t return doHandleBinding(cm, b);\n\t });\n\t } else {\n\t return dispatchKey(cm, name, e, function(b) { return doHandleBinding(cm, b); });\n\t }\n\t }", "function getKeymap(state) {\n var bindings = state.facet(keymap);\n var map = Keymaps.get(bindings);\n if (!map) Keymaps.set(bindings, map = buildKeymap(bindings.reduce(function (a, b) {\n return a.concat(b);\n }, [])));\n return map;\n} /// Run the key handlers registered for a given scope. The event", "function doHandleBinding(cm, bound, dropShift) {\n\t\t if (typeof bound == \"string\") {\n\t\t bound = commands[bound];\n\t\t if (!bound) { return false }\n\t\t }\n\t\t // Ensure previous input has been read, so that the handler sees a\n\t\t // consistent view of the document\n\t\t cm.display.input.ensurePolled();\n\t\t var prevShift = cm.display.shift, done = false;\n\t\t try {\n\t\t if (cm.isReadOnly()) { cm.state.suppressEdits = true; }\n\t\t if (dropShift) { cm.display.shift = false; }\n\t\t done = bound(cm) != Pass;\n\t\t } finally {\n\t\t cm.display.shift = prevShift;\n\t\t cm.state.suppressEdits = false;\n\t\t }\n\t\t return done\n\t\t }", "function runScopeHandlers(view, event, scope) {\n return runHandlers(getKeymap(view.state), event, view, scope);\n}", "function handleKeyBinding(cm, e) {\n\t var name = keyName(e, true);\n\t if (!name) return false;\n\n\t if (e.shiftKey && !cm.state.keySeq) {\n\t // First try to resolve full name (including 'Shift-'). Failing\n\t // that, see if there is a cursor-motion command (starting with\n\t // 'go') bound to the keyname without 'Shift-'.\n\t return dispatchKey(cm, \"Shift-\" + name, e, function(b) {return doHandleBinding(cm, b, true);})\n\t || dispatchKey(cm, name, e, function(b) {\n\t if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n\t return doHandleBinding(cm, b);\n\t });\n\t } else {\n\t return dispatchKey(cm, name, e, function(b) { return doHandleBinding(cm, b); });\n\t }\n\t }", "function handleKeyBinding(cm, e) {\n\t var name = keyName(e, true);\n\t if (!name) return false;\n\n\t if (e.shiftKey && !cm.state.keySeq) {\n\t // First try to resolve full name (including 'Shift-'). Failing\n\t // that, see if there is a cursor-motion command (starting with\n\t // 'go') bound to the keyname without 'Shift-'.\n\t return dispatchKey(cm, \"Shift-\" + name, e, function(b) {return doHandleBinding(cm, b, true);})\n\t || dispatchKey(cm, name, e, function(b) {\n\t if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n\t return doHandleBinding(cm, b);\n\t });\n\t } else {\n\t return dispatchKey(cm, name, e, function(b) { return doHandleBinding(cm, b); });\n\t }\n\t }", "function keyDownHandler(event) {\n keyHandler(true, event);\n}", "function handle(h) {\n try {\n h.apply(h, args);\n } catch (err) {\n console.warn('Event handler raised an error!');\n console.error(err);\n }\n }", "onKeyDown(keyName, e, handle) {\n console.log(\"test:onKeyDown\", keyName, e, handle);\n\n if (keyName == \"alt+s\") {\n // alert(\"save key\")\n this.saveClient();\n console.log(e.which);\n }\n\n this.setState({\n output: `onKeyDown ${keyName}`\n });\n }", "add_press(key, action_func){\n this.press[key] = action_func;\n }", "function eachHandler(h) {\n try {\n handle(h);\n } catch (err) {\n console.error('event handler caused error');\n console.log(err);\n }\n }", "bind() {\n\t\tdocument.addEventListener('keydown', this.handleKeyPress);\n\t}", "bindKeys() {\n document.addEventListener('keydown', this.handleKeys);\n }", "HandleKeyDown(event) {}", "function keyup_handler(event)\n{\n\tgame.handle_key(event.code, false);\n}", "function handle (key, velocity) {\r\n\r\n console.log('got \"keypress\"', key);\r\n\r\n if (key === \"B\") {\r\n orb.color(\"blue\");\r\n }\r\n\r\n if (key === \"R\") {\r\n orb.color(\"red\");\r\n }\r\n\r\n if (key === \"S\") {\r\n startCalibration();\r\n }\r\n\r\n if (key === \"F\") {\r\n stopCalibration(configureLocator);\r\n }\r\n\r\n if (key === \"&\") {\r\n roll(velocity, 0);\r\n }\r\n\r\n if (key === \"'\") {\r\n roll(velocity, 90);\r\n }\r\n\r\n if (key === \"(\") {\r\n roll(velocity, 180);\r\n }\r\n\r\n if (key === \"%\") {\r\n roll(velocity, 270);\r\n }\r\n}", "function bindInput(i,obj, key){\n inputsThatAreBound[i] = null;\n i.theThingImBoundTo = obj;\n i.thePropertyImBoundTo = key; \n addBoundInputObservation(obj,key,i);\n i.addEventListener(WHATEVENTTRIGGERSDATABINDING, function(e){\n //how do the other frameworks handle this - in order to get the latest value immediately when the key is pressed, you have to do this, otherwise the value is not there yet\n window.setTimeout( function(){ \n e.target.theThingImBoundTo[e.target.thePropertyImBoundTo] = e.target.value;\n notify(e.target.theThingImBoundTo,e.target.thePropertyImBoundTo);\n }, 1);\n });\n\n\n }", "function onKey(event) {\n console.log('pgdialogs key handler');\n if (event.controlPressed) {\n console.log(\"Key:\" + event.key);\n switch (event.key) {\n case 's':\n console.log(\"cntrlS\");\n if (event.shiftPressed) { // save as\n saveRecordAs();\n } else {\n saveRecord();\n }\n propagate = false;\n return false;\n case 'o':\n console.log(\"cntrlO\");\n if (confirm(\"Do you want to load from storage?\")) {\n if (event.shiftPressed) { // load from\n nodeComms.setFileSelector(fileSelectorDialog);\n nodeComms.listFiles(\"loadRecord\", \"pgl\");\n } else {\n loadRecord();\n }\n }\n propagate = false;\n return false;\n }\n }\n if (typeof onKeyChain === 'function')\n return onKeyChain(event); // pass it on\n console.log(\"Passing key on\");\n return true;\n }", "function bindKey(strRaw) {\n // split and trim, remove empty strings\n var processed = [];\n var sp = strRaw.split(\" \");\n for (i = 0; i < sp.length; i++) {\n sp[i] = sp[i].trim();\n if (i <= 1) sp[i] = sp[i].toUpperCase();\n if (sp[i] != \"\") {\n processed.push(sp[i]);\n }\n }\n\n var pKey = new Object();\n pKey.keyCode = processed[0].charCodeAt(0);\n pKey.command = processed[1];\n processed.splice(0, 2);\n pKey.arguments = processed;\n parsedKeyBinding.push(pKey);\n}", "function handleCharBinding(cm, e, ch) {\n\t return dispatchKey(cm, \"'\" + ch + \"'\", e,\n\t function(b) { return doHandleBinding(cm, b, true); });\n\t }", "function handleCharBinding(cm, e, ch) {\n\t return dispatchKey(cm, \"'\" + ch + \"'\", e,\n\t function(b) { return doHandleBinding(cm, b, true); });\n\t }", "function handleCharBinding(cm, e, ch) {\n\t return dispatchKey(cm, \"'\" + ch + \"'\", e,\n\t function(b) { return doHandleBinding(cm, b, true); });\n\t }", "function handleKey(e) {\n if (e.key.includes(\"Arrow\")) {\n e.preventDefault();\n draw({ key: e.key }); // Here the key object is being deconstructing that its value is the key that the event had\n console.log(e.key);\n console.log(\"HANDLE KEYY!!\")\n };\n}", "function dispatch (ke) {\n console.log('dispatch', ke)\n for (let listener of keydownListeners) {\n listener(ke.key)\n }\n}", "function doHandleBinding(cm, bound, dropShift) {\n\t if (typeof bound == \"string\") {\n\t bound = commands[bound];\n\t if (!bound) return false;\n\t }\n\t // Ensure previous input has been read, so that the handler sees a\n\t // consistent view of the document\n\t cm.display.input.ensurePolled();\n\t var prevShift = cm.display.shift, done = false;\n\t try {\n\t if (cm.isReadOnly()) cm.state.suppressEdits = true;\n\t if (dropShift) cm.display.shift = false;\n\t done = bound(cm) != Pass;\n\t } finally {\n\t cm.display.shift = prevShift;\n\t cm.state.suppressEdits = false;\n\t }\n\t return done;\n\t }" ]
[ "0.66893464", "0.6387576", "0.6263076", "0.6140119", "0.6125587", "0.5889015", "0.5853597", "0.5827518", "0.5789461", "0.5789461", "0.5789461", "0.5789461", "0.5789461", "0.57228875", "0.5662782", "0.5644284", "0.5632373", "0.5600212", "0.5537149", "0.55028874", "0.5479583", "0.5457987", "0.5421492", "0.54151267", "0.5397734", "0.5379964", "0.5334692", "0.53117454", "0.52901417", "0.5287808", "0.52685285", "0.52494717", "0.52494717", "0.52416337", "0.5239013", "0.5237332", "0.5226795", "0.5226795", "0.5226795", "0.5226795", "0.52053016", "0.5200225", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.51937604", "0.5191067", "0.518937", "0.518937", "0.5170507", "0.5166785", "0.5158257", "0.5156446", "0.51494163", "0.51494163", "0.51494163", "0.51469374", "0.51446426", "0.5140103", "0.51247513", "0.51192015", "0.5112561", "0.51087785", "0.5108049", "0.50912005", "0.5090325", "0.50893766", "0.50831807", "0.5081267", "0.50758207", "0.50735706", "0.5067452", "0.5057002", "0.5053638", "0.5053638", "0.50470805", "0.5046087", "0.50456995", "0.5041295", "0.5040103", "0.5036242", "0.5035751", "0.503524", "0.503497", "0.5034944", "0.5032143", "0.50258875", "0.5019373", "0.50133425", "0.50133425", "0.50133425", "0.50115764", "0.5010593", "0.5009565" ]
0.0
-1
Handle a key from the keydown event.
function handleKeyBinding(cm, e) { var name = keyName(e, true); if (!name) { return false } if (e.shiftKey && !cm.state.keySeq) { // First try to resolve full name (including 'Shift-'). Failing // that, see if there is a cursor-motion command (starting with // 'go') bound to the keyname without 'Shift-'. return dispatchKey(cm, "Shift-" + name, e, function (b) { return doHandleBinding(cm, b, true); }) || dispatchKey(cm, name, e, function (b) { if (typeof b == "string" ? /^go[A-Z]/.test(b) : b.motion) { return doHandleBinding(cm, b) } }) } else { return dispatchKey(cm, name, e, function (b) { return doHandleBinding(cm, b); }) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HandleKeyDown(event) {}", "function keydown_handler(event)\n{\n\tif (event.defaultPrevented) return;\n\tif (game.handle_key(event.code, true)) return;\n\n\t// cancel the default action to avoid it being handled twice\n\tevent.preventDefault();\n}", "function keyDownHandler(event) {\n keyHandler(true, event);\n}", "function keydown(event) {\n keys[event.code] = event;\n }", "handleInput(keycode) {\n if (keycode !== undefined && player.moves === true) {\n key = keycode;\n }\n }", "handleKeyDown (event) {\n }", "function canvasHandleKeyDown(e){\r\n\tvar key = e.keyCode;\r\n\t//println(key);\r\n\tif(useStates){\r\n\t\tStates.current().input.handleKeyDown(e);\r\n\t}\r\n\tgInput.handleKeyDown(e);\r\n}", "function handleKeyPress({ key }) {\n dispatch(playerTyped(key.toLowerCase()));\n }", "function handleKeydown(keyCode) {\n\t\tconst roomID = clientRooms[client.id]; // Look for client ID in clientRooms keys\n\n\t\tif (!roomID) return;\n\n\t\ttry {\n\t\t\tkeyCode = parseInt(keyCode);\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t\treturn;\n\t\t}\n\t\tconst vel = getUpdatedVelocity(keyCode);\n\n\t\tif (vel) {\n\t\t\tstate[roomID].players[client.number - 1].vel = vel;\n\t\t}\n\t}", "handleKeyDown({ key }) {\n switch (key) {\n case \"Enter\":\n this.addTodoToState(this._inputEl.value);\n break;\n default:\n break;\n }\n }", "keyDown(_keycode) {}", "_handleKeyEvent(event) {\n const keyManager = this._keyManager;\n switch (event.keyCode) {\n case LEFT_ARROW:\n case RIGHT_ARROW:\n if (this._isHorizontal()) {\n event.preventDefault();\n keyManager.setFocusOrigin('keyboard');\n keyManager.onKeydown(event);\n }\n break;\n case UP_ARROW:\n case DOWN_ARROW:\n if (!this._isHorizontal()) {\n event.preventDefault();\n keyManager.setFocusOrigin('keyboard');\n keyManager.onKeydown(event);\n }\n break;\n case ESCAPE:\n if (!hasModifierKey(event)) {\n event.preventDefault();\n this._menuStack.close(this, 2 /* currentItem */);\n }\n break;\n case TAB:\n this._menuStack.closeAll();\n break;\n default:\n keyManager.onKeydown(event);\n }\n }", "function onKeyDown(e) {\n // do not handle key events when not in input mode\n if (!imode) {\n return;\n }\n\n // only handle special keys here\n specialKey(e);\n }", "_keydown(event) {\n if (this._originatesFromChip(event)) {\n this._keyManager.onKeydown(event);\n }\n }", "_keydown(event) {\n if (this._originatesFromChip(event)) {\n this._keyManager.onKeydown(event);\n }\n }", "function handleKeyPress(event) {\n\n var action = getSwitcherAction(event.keyCode);\n\n switch (action) {\n case Config.GOING_UP:\n case Config.GOING_DOWN:\n moveListFocus(action);\n break;\n case Config.ESCAPING:\n $(Config.LIST_SWITCHER).hide();\n break;\n case Config.SWITCHING:\n switchToSelectedList();\n break;\n }\n }", "function handleKeyDown(event) {\n switch (event.key) {\n case \"Escape\":\n closeSuggestions();\n break;\n case \"ArrowDown\":\n highlightNext();\n break;\n case \"ArrowUp\":\n highlightPrev();\n break;\n case \"Enter\":\n selectItem();\n }\n}", "_handleKeydown(event) {\n // We don't handle any key bindings with a modifier key.\n if (Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__[\"hasModifierKey\"])(event)) {\n return;\n }\n switch (event.keyCode) {\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__[\"ENTER\"]:\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__[\"SPACE\"]:\n if (this.focusIndex !== this.selectedIndex) {\n this.selectFocusedIndex.emit(this.focusIndex);\n this._itemSelected(event);\n }\n break;\n default:\n this._keyManager.onKeydown(event);\n }\n }", "function handleKeyDown(event) {\n wgl.listOfPressedKeys[event.keyCode] = true;\n // console.log(\"keydown - keyCode=%d, charCode=%d\", event.keyCode, event.charCode);\n }", "handleKeyDown(kCode) {\n console.log(\"handleKeyDown \" + this.id + \" \" + kCode)\n }", "function handleKey(e) {\n if (e.key.includes(\"Arrow\")) {\n e.preventDefault();\n draw({ key: e.key }); // Here the key object is being deconstructing that its value is the key that the event had\n console.log(e.key);\n console.log(\"HANDLE KEYY!!\")\n };\n}", "function handleKeyDown(event) {\r\n // storing the pressed state for individual key\r\n currentlyPressedKeys[event.keyCode] = true;\r\n}", "handleKeyPress(kEvent) {\n switch (kEvent.keyCode) {\n case Phaser.KeyCode.BACKSPACE:\n this.deleteChar();\n break;\n case Phaser.KeyCode.LEFT:\n case Phaser.KeyCode.RIGHT:\n case Phaser.KeyCode.UP:\n case Phaser.KeyCode.DOWN:\n console.warn('CMD NAV NOT IMPLEMENTED');\n break;\n case Phaser.KeyCode.SPACEBAR:\n this.addTextToCommand(' ');\n break;\n case Phaser.KeyCode.ENTER:\n this.submitCommand();\n break;\n case Phaser.KeyCode.TAB:\n console.warn('CMD AUTOCOMPLETE NOT IMPLEMENTED');\n break;\n default:\n this.addTextToCommand(kEvent);\n break;\n }\n }", "function keyup_handler(event)\n{\n\tgame.handle_key(event.code, false);\n}", "function handleKey(event) {\n if (event.key.includes('Arrow')) {\n event.preventDefault();\n draw({ key: event.key });\n // console.log(event.key);\n // console.log('handling key');\n }\n}", "function handleKeydown(event)\n {\n\n switch(event.which)\n { \n \n case 13: \n handleEnterKey(event);\n break;\n \t \n case 36:\n event.preventDefault();\n handleInitKey();\n break;\n \n case 46: \n preventPromptErasing(event, true);\n break;\n \t \n case 8: \n case 37: \n preventPromptErasing(event, false);\n break;\n \n case 38: \n event.preventDefault();\n applyCommandHistory(true);\n break;\n \n case 40: \n applyCommandHistory(false);\n event.preventDefault();\n break;\n \n default: \n // As of now, nothing is done in this case.\n break;\n }\n }", "function keydown() {\n switch (d3.event.keyCode) {\n case 8: // backspace\n {\n break;\n }\n case 46: { // delete\n delete_node = true;\n break;\n }\n case 16: { //shift\n should_modify = true;\n break;\n }\n case 17: { //control\n drawing_line = true;\n }\n\n }\n}", "function keyDown(evt) {\n var c = (evt.keyCode) ? evt.keyCode : evt.charCode;\n switch(c) {\n case 37: // left\n case 63234:\n dx = 1; break;\n case 39: // right\n case 63235:\n dx = -1; break;\n case 40: // down\n case 63233:\n dy = -1; break;\n case 38: // up\n case 63232:\n dy = 1; break;\n case 32: // fire\n if (Torpedo.x) {\n playSound('notAvail');\n message('Not loaded new torpedo yet!');\n mainPanel(\"#779\");\n } else Torpedo.fire();\n break;\n case 16: // shift\n withShift = 1; break;\n case 27: // esc\n gameRunning = score = 0;\n IntroOutro.endAnimDest(0 , 1, 1);\n }\n}", "function keydown(evt) {\r\n var keyCode = (evt.keyCode)? evt.keyCode : evt.getKeyCode();\r\n\r\n switch (keyCode) {\r\n case \"A\".charCodeAt(0):\r\n player.motion = motionType.LEFT;\r\n player.facing = facingDir.LEFT;\r\n break;\r\n\r\n case \"D\".charCodeAt(0):\r\n player.motion = motionType.RIGHT;\r\n\t\t\tplayer.facing = facingDir.RIGHT;\r\n break;\r\n\r\n case \"W\".charCodeAt(0):\r\n if (player.isOnPlatform()||cheating) {\r\n player.verticalSpeed = JUMP_SPEED;\r\n }\r\n break;\r\n\r\n\t\tcase \"C\".charCodeAt(0):\r\n\t\t\tif (!cheating){\r\n\t\t\t\tplayer.rolenode.style.setProperty(\"opacity\", 0.5, null);\r\n\t\t\t\tcheating = true;\r\n\t\t\t\tOLD_BCOUNT = BULLET_COUNT;\r\n\t\t\t\tBULLET_COUNT = Number.POSITIVE_INFINITY;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"V\".charCodeAt(0):\r\n\t\tif (cheating){\r\n\t\t\t\tplayer.rolenode.style.setProperty(\"opacity\", 1, null);\r\n\t\t\t\tcheating = false;\r\n\t\t\t\tBULLET_COUNT = OLD_BCOUNT;\r\n\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"Q\".charCodeAt(0):\r\n\t\t\talert( player.position.x+ \", \"+ (player.position.y - 5) );\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase 32:\r\n if (canShoot) shootBullet();\r\n break;\r\n }\r\n}", "handleKeyPress(e) {\n if((this.gameOver() === 'won') || (this.gameOver() === 'loose')) {\n if (e.key === ' ') {\n this.restartGame();\n }\n } \n else {\n if ((e.keyCode >= 65) && (e.keyCode <= 90)) {\n this.handleKeyClick(e.key.toUpperCase());\n }\n }\n }", "function onKeyPress(e) {\n const pressed = e.keyCode;\n\n switch(pressed) {\n case 82: // R\n handleRestart();\n break;\n case 83: // S\n handleStartMenu();\n break;\n case 27:\n // Esc\n handlePause();\n break;\n }\n}", "function handleKey(e){\n if(e.key.includes('Arrow')){\n e.preventDefault();\n console.log(e.key);\n draw({key: e.key});\n console.log('HANDLING KEY');\n }\n}", "function handleKeyDown(e) {\n\t\t//cross browser issues exist\n\t\tif(!e){ var e = window.event; }\n\t\tswitch(e.keyCode) {\n\t\t\tcase KEYCODE_SPACE:\tshootHeld = true; return false;\n\t\t\tcase KEYCODE_A:\n\t\t\tcase KEYCODE_LEFT:\tlfHeld = true; return false;\n\t\t\tcase KEYCODE_D:\n\t\t\tcase KEYCODE_RIGHT: rtHeld = true; return false;\n\t\t\tcase KEYCODE_W:\n\t\t\tcase KEYCODE_UP:\tfwdHeld = true; return false;\n\t\t\tcase KEYCODE_ENTER:\t if(canvas.onclick == handleClick){ handleClick(); }return false;\n\t\t}\n\t}", "function keydown(evt) {\n var keyCode = (evt.keyCode)? evt.keyCode : evt.getKeyCode();\n\n switch (keyCode) {\n case \"N\".charCodeAt(0):\n player.motion = motionType.LEFT;\n break;\n\n case \"M\".charCodeAt(0):\n player.motion = motionType.RIGHT;\n break;\n\t\t\t\n\n // Add your code here\n\t\t\n\t\t\t\n case \"Z\".charCodeAt(0):\n if (player.isOnPlatform()) {\n player.verticalSpeed = JUMP_SPEED;\n }\n break;\n\t\t\n\t\tcase 32: // spacebar = shoot\n\t\t\tif (canShoot) shootBullet();\n\t\t\tbreak;\n }\n}", "function handleKeys(e){\n\tswitch (e.keyCode){\n\t\tcase 67: \t\t\t// 'c'\n\t\t\tcomposeWindowOpener();\n\t\t\tbreak;\n\t\tcase 88: \t\t\t// 'x'\n\t\t\tselectEmail();\n\t\t\tbreak;\n\t\tcase 38: \t\t\t// 'up'\n\t\tcase 74: \t\t\t// 'j'\n\t\t\trowSelector(-1);\n\t\t\tbreak;\n\t\tcase 40: \t\t\t// 'down'\n\t\tcase 75: \t\t\t// 'k'\n\t\t\trowSelector(1);\n\t\t\tbreak;\n\t\tcase 46: \t\t\t// 'del'\n\t\t\tcloseAd_keyEvent();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log(\"not listening to keyCode\",e.keyCode);\n\t}\n}", "_handleHeaderKeydown(event) {\n this._keyManager.onKeydown(event);\n }", "function keydownEventListener(event) {\n\tvar elementXPath = getXPath(event.target);\n\tvar keyIdentifier;\n\tif (isCharacterKeyPress(event)) {\n\t\t// For charcter keys return printable character instead of code\n\t\tkeyIdentifier = String.fromCharCode(event.which);\n\t} else {\n\t\tkeyIdentifier = event.which;\n\t};\n\n\tif (isCharacterKeyPress(event) && ((!event.altKey && !event.metaKey && !event.shiftKey && !event.ctrlKey) || (!event.altKey && !event.metaKey && event.shiftKey && !event.ctrlKey))) {\n\t\t// Ignore as it's just normal key press and will be sent via \"keypress event\" or someone did Shift+key to make it capital – again will be sent via keypress event\n\t} else {\n\t\tconsole.log('Pressed down: ' + keyIdentifier + ' on ' + elementXPath + ' alt: ' + event.altKey + ' meta: ' + event.metaKey + ' shift: ' + event.shiftKey + ' ctrl: ' + event.ctrlKey);\n\t\tsendEvent(\"{\\\"path\\\":\\\"\" + elementXPath + \"\\\", \\\"action\\\":\\\"keydown\\\", \\\"keyIdentifier\\\":\\\"\" + keyIdentifier + \"\\\", \\\"metaKey\\\":\\\"\" + event.metaKey + \"\\\", \\\"ctrlKey\\\":\\\"\" + event.ctrlKey + \"\\\", \\\"altKey\\\":\\\"\" + event.altKey + \"\\\", \\\"shiftKey\\\":\\\"\" + event.shiftKey + \"\\\"}\");\n\t};\n}", "function keyDownHandler(e) {\n\twasdKeys.onKeyDown(e);\n}", "keyHandler(event){\n switch(event.which){\n // previous slide\n case 33: // pgup\n case 37: // left\n event.preventDefault();\n this.previous();\n break;\n\n // next slide\n case 32: // spacebar\n case 34: // pgdn\n case 39: // right\n event.preventDefault();\n this.next()\n break;\n\n // autoplay\n case 65: // a\n event.preventDefault();\n this.toggleAutoplay();\n break;\n\n // fullscreen\n case 70: // f\n event.preventDefault();\n this.fullscreen();\n break;\n\n // goto home slide\n case 72: // h\n event.preventDefault();\n this.goto(1);\n break;\n\n // play / pause\n case 80: // p\n event.preventDefault();\n this.playAudio();\n break;\n\n // transcript / table of contents\n case 84: // t\n event.preventDefault();\n this.toggleTranscript();\n break;\n }\n }", "function keyPressDown(event){\n\n let key = (96 <= event.keyCode && event.keyCode <= 105)? event.keyCode - 48 : event.keyCode;\n if(key >= 16 && key <= 18){\n\n if(pressedModifiers.indexOf(key) === -1){\n\n pressedModifiers.push(key);\n }\n if(event.data && event.data.modifierFunc){\n\n event.data.modifierFunc(event);\n }\n\n } else {\n\n if(event.data && event.data.keyFunc){\n\n event.data.keyFunc(event);\n }\n }\n if(event.data && event.data.func){\n\n event.data.func(event);\n }\n for (var handler in waitingForInput) {\n if (waitingForInput.hasOwnProperty(handler)) {\n waitingForInput[handler](event);\n }\n }\n\n}", "function onKeyPress(event) {\n\t\n\tswitch (event.key) {\n\t\t\n\t\t// Light Keys\n\t\tcase \"ArrowDown\":\n\t\tcase \"ArrowUp\":\n\t\tcase \"ArrowRight\":\n\t\tcase \"ArrowLeft\":\n\t\tcase \"+\":\n\t\tcase \"-\":\n\t\t\tlightEventHandler(event);\n\t\t\tbreak;\n\n\t\t// Camera keys\n\t\tcase \"w\":\n\t\tcase \"s\":\n\t\tcase \"d\":\n\t\tcase \"a\":\n\t\tcase \"q\":\n\t\tcase \"e\":\n\t\t\tSC.keyPress(event); // pass the listener event to the camera (Required for SphericalCamera Module)\n\t\t\tupdateMVP(); // re-generate the MVP matrix and update it\n\t\t\tbreak;\n\t}\n\n\trender(); // draw with the new view\n}", "function canvasHandleKeyPress(e){\r\n\tvar key = e.which;\r\n\tif(useStates){\r\n\t\tStates.current().input.handleKeyPress(e);\r\n\t}\r\n\tgInput.handleKeyPress(e);\r\n}", "handleKeys(event) {\n\t\tswitch (event.which) {\n\t\t\tcase KeyEvent.DOM_VK_DOWN:\n\t\t\t\tevent.preventDefault();\n\t\t\t\t\tthis.nextItem();\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.DOM_VK_UP:\n\t\t\t\tevent.preventDefault();\n\t\t\t\t\tthis.previousItem();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "function keyDownHandler(e) {\n switch (e.keyCode) {\n case KEY_CODE_LEFT:\n keyPressedLeft = true;\n break;\n case KEY_CODE_RIGHT:\n keyPressedRight = true;\n break;\n case KEY_CODE_SPACE:\n if (!isVikingDown && gameStarted) {\n jumpViking();\n }\n break;\n }\n }", "function handleKey(event) { //function to create input when key is pressed\n\t\tvar pressedKey = event.key;\n\t\tmakeSound(pressedKey);\n\t\tbuttonAnimation(pressedKey);\n\t\tsetTimeout(buttonAnimation,500);\n\t\t// console.log(pressedKey);\n}", "handleKeydown(event) {\n if (event.which === 13 || event.which === 27) { // enter or esc\n this.finishUpdate();\n }\n }", "function keyHandler(e){\n\tvar keyCode = String(e.keyCode);\n\tupdateScore(keyCode);\n\tvar p1 = d.getElementById(\"keypressed\");\n\t//p1.innerHTML = e.keyCode;\n\tvar track = map_key_track[keyCode];\n \tstaticCircles.playedNote(track, new Date().getTime());\n \tplaySound(track);\n\t\n}", "[keydown](/** @type {KeyboardEvent} */ event) {\n let handled;\n\n switch (event.key) {\n case \" \":\n this.click();\n handled = true;\n break;\n }\n\n // Prefer mixin result if it's defined, otherwise use base result.\n return handled || (super[keydown] && super[keydown](event));\n }", "function keyPressed() {\n if (handler.active === handler.nameplate) {\n doorbell.keyPressed();\n }\n}", "function handleKeyDown(event) {\n currentlyPressedKeys[event.keyCode] = true;\n }", "function keyPressHandler(event)\n\t{\n\t\t// Make sure it's not the same event firing over and over again\n\t\tif (keyPressEvent == event) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tkeyPressEvent = event;\n\t\t}\n\n\t\t// Get character that was typed\n\t\tvar charCode = event.which;\n\t\tif (charCode == KEYCODE_RETURN)\t// If return, clear and get out\n\t\t{\n\t\t\tclearTypingBuffer();\n\t\t\tclearTypingTimer();\n\t\t\treturn;\n\t\t}\n\n\t\t// Clear timer if still running, and start it again\n\t\tclearTypingTimer();\n\t\ttypingTimer = setTimeout(clearTypingBuffer, typingTimeout);\n\n\t\t// Add new character to typing buffer\n\t\tvar char = String.fromCharCode(charCode);\n\t\ttypingBuffer.push(char);\n\n\t\t// Check typed text for shortcuts\n\t\tcheckShortcuts(char, typingBuffer, event.target);\n\t}", "handleKeyInput (event) {\n event.stopPropagation()\n\n // Ignore key input during animations\n if (this.isAnimating()) {\n return\n }\n\n const keyCode = event.which || event.keyCode\n\n // Ignore key presses that happen too close to each other (when rapid fire key pressing or holding down the key)\n // But allow it if it's a lightbox closing action\n const currentTime = new Date()\n if ((currentTime.getTime() - this.lastKeyDownTime) < this.props.keyRepeatLimit && keyCode !== KEYS.ESC) {\n return\n }\n this.lastKeyDownTime = currentTime.getTime()\n\n switch (keyCode) {\n // ESC key closes the lightbox\n case KEYS.ESC:\n event.preventDefault()\n this.requestClose(event)\n break\n\n // Left arrow key moves to previous image\n case KEYS.LEFT_ARROW:\n if (!this.props.prevSrc) {\n return\n }\n\n event.preventDefault()\n this.keyPressed = true\n this.requestMovePrev(event)\n break\n\n // Right arrow key moves to next image\n case KEYS.RIGHT_ARROW:\n if (!this.props.nextSrc) {\n return\n }\n\n event.preventDefault()\n this.keyPressed = true\n this.requestMoveNext(event)\n break\n\n default:\n }\n }", "function handleKey(event){ \n switch (event.code){\n case 'ArrowRight':\n playerOne.moveRight() \n break\n case 'ArrowLeft':\n playerOne.moveLeft() \n break \n case 'ArrowUp':\n playerOne.moveUp() \n break\n case 'ArrowDown':\n playerOne.moveDown() \n break\n }\n }", "function onKeyDown(event) {\n}", "function keyHandler(evt){\n keymap[evt.key] = (evt.type == 'keydown');\n}", "static _HandleKeyDown(e) {\n if (!Keyboard._keys_down.map(i => i.key).includes(e.key.toLowerCase()))\n Keyboard._keys_down.push({key: e.key.toLowerCase(), blocked: false})\n }", "function keyPressed() {\n\t// toggle fullscreen mode\n\tif( key === 'f') {\n\t\tfs = fullscreen();\n\t\tfullscreen(!fs);\n\t\treturn;\n\t}\n\n\t// dispatch key events for adventure manager to move from state to \n\tadventureManager.keyPressed(key); \n}", "_handleKeydown(event) {\n const keyCode = event.keyCode;\n const manager = this._keyManager;\n switch (keyCode) {\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__[\"ESCAPE\"]:\n if (!Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__[\"hasModifierKey\"])(event)) {\n event.preventDefault();\n this.closed.emit('keydown');\n }\n break;\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__[\"LEFT_ARROW\"]:\n if (this.parentMenu && this.direction === 'ltr') {\n this.closed.emit('keydown');\n }\n break;\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__[\"RIGHT_ARROW\"]:\n if (this.parentMenu && this.direction === 'rtl') {\n this.closed.emit('keydown');\n }\n break;\n default:\n if (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__[\"UP_ARROW\"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__[\"DOWN_ARROW\"]) {\n manager.setFocusOrigin('keyboard');\n }\n manager.onKeydown(event);\n }\n }", "function handleKeyEvent(event) {\n if (isEventModifier(event)) {\n return;\n }\n\n if (ignoreInputEvents && isInputEvent(event)) {\n return;\n }\n\n const eventName = getKeyEventName(event);\n const listeners = __subscriptions[eventName.toLowerCase()] || [];\n\n if (typeof __monitor === 'function') {\n const matched = listeners.length > 0;\n __monitor(eventName, matched, event);\n }\n\n if (listeners.length) {\n event.preventDefault();\n }\n\n // flag to tell if execution should continue;\n let propagate = true;\n //\n for (let i = listeners.length - 1; i >= 0; i--) {\n if (listeners[i]) {\n propagate = listeners[i](event);\n }\n if (propagate === false) {\n break;\n }\n }\n // listeners.map(listener => listener());\n }", "_keydown(event) {\n const target = event.target;\n const keyCode = event.keyCode;\n const manager = this._keyManager;\n if (keyCode === TAB && target.id !== this._chipInput.id) {\n this._allowFocusEscape();\n }\n else if (this._originatesFromEditingChip(event)) {\n // No-op, let the editing chip handle all keyboard events except for Tab.\n }\n else if (this._originatesFromChip(event)) {\n manager.onKeydown(event);\n }\n this.stateChanges.next();\n }", "function handleKey(e) {\n if (e.key.includes('Arrow')) {\n draw({ key: e.key });\n e.preventDefault();\n // console.log('Handling keys: ', e.key);\n }\n}", "function keydown(e) {\n\t //alert(e.key)\n\t if (!isNaN(e.key)) {\n\t clickNumber(e.key.toString());\n\t return;\n\t }\n\t switch (e.key) {\n\t case \"c\":\n\t clickClear();\n\t break;\n\t case \"Backspace\":\n\t clickBackspace();\n\t break;\n\t case \".\":\n\t clickDecimal();\n\t break;\n\t case \"Enter\":\n\t clickEquals();\n\t break;\n\t case \"=\":\n\t clickEquals();\n\t break;\n\t case \"+\":\n\t clickCalc(\"+\");\n\t break;\n\t case \"-\":\n\t clickCalc(\"-\");\n\t break;\n\t case \"*\":\n\t clickCalc(\"\\xD7\");\n\t break;\n\t case \"/\":\n\t clickCalc(\"\\xF7\");\n\t break;\n\t case \"%\":\n\t clickCalc(\"%\");\n\t break;\n\t }\n\t}", "keydown({keyCode}) {\n switch (keyCode) {\n case this.keys.up: this.moveUp(); break\n case this.keys.bottom: this.moveDown(); break\n case this.keys.left: this.moveLeft(); break\n case this.keys.right: this.moveRight(); break\n }\n }", "function keysHandle(e) {\n e.preventDefault;\n switch (e.keyCode) {\n case 83:\n if (!gameStarted) {\n displayCards();\n }\n break;\n case 82:\n if (gameStarted) {\n displayCards();\n }\n break;\n case 32:\n if (gameStarted) {\n if (pausePressed) {\n e.preventDefault();\n startTimer();\n pausePressed = false;\n } else {\n e.preventDefault();\n pause();\n pausePressed = true;\n }\n }\n break;\n }\n}", "function handleKeyDown(keyCode) {\n\n\t\tif (keyCode === 13 && step === 1 && !isStepOneNextDisabled()) {\n\t\t\tonNext();\n\t\t} else if (keyCode === 13 && step === 2 && !isStepTwoSubmitDisabled()) {\n\t\t\tonSubmit();\n\t\t}\n\t}", "function cust_KeyDown(evnt) {\n //f_log(evnt.keyCode)\n}", "function keydown(evt) {\r\n if (isGameOver) return false\r\n var keyCode = (evt.keyCode)? evt.keyCode : evt.getKeyCode();\r\n var SPACE = 32;\r\n\r\n switch (keyCode) {\r\n case \"N\".charCodeAt(0):\r\n if (player.motion!=motionType.LEFT) flipPlayer = motionType.LEFT\r\n player.motion = motionType.LEFT;\r\n break;\r\n\r\n case \"M\".charCodeAt(0):\r\n if (player.motion!=motionType.RIGHT) flipPlayer = motionType.RIGHT\r\n player.motion = motionType.RIGHT;\r\n break;\r\n case \"Z\".charCodeAt(0):\r\n if (player.isOnPlatform() || player.isOnVerticalPlatform){\r\n player.verticalSpeed = JUMP_SPEED\r\n }\r\n break;\r\n case \"C\".charCodeAt(0):\r\n cheatMode = true\r\n console.log(\"cheat mode enabled\")\r\n break;\r\n case \"V\".charCodeAt(0):\r\n cheatMode = false\r\n console.log(\"cheat mode disabled\")\r\n break;\r\n case SPACE:\r\n if (bullet_count > 0 || cheatMode) shoot()\r\n evt.preventDefault()\r\n break;\r\n return false\r\n }\r\n}", "function keyPressed(event) {\n const digits = \"0123456789\";\n const operators = \"+-x*/\";\n if (digits.indexOf(event.key) !== -1) {\n digitPressed(event.key);\n } else if (operators.indexOf(event.key) !== -1) {\n operatorPressed(event.key);\n } else if (event.key === \"=\" || event.key === \"Enter\") {\n computeResult();\n } else if (event.key === \"c\" || event.key === \"C\") {\n clearDisplay();\n } else if (event.key === \".\") {\n addDecimal();\n } else if (event.key === \"m\" || event.key === \"M\") {\n flipSign();\n } else if (event.key === \"Backspace\") {\n deleteLastDigit();\n }\n}", "function keyPressHandler(e) {\r\n if (e.which === 117) rocket1.moveUp(10);\r\n if (e.which === 100) rocket1.moveDown(10);\r\n if (e.which === 114) rocket1.moveRight(10);\r\n if (e.which === 108) rocket1.moveLeft(10);\r\n if (e.which === 32) {\r\n soundFiring();\r\n rocket1.addBullet(rocket1.x, rocket1.y + rocket1.height / 2);\r\n }\r\n if (e.which === 48) {\r\n clearInterval(animate);\r\n }\r\n if (e.which === 49) {\r\n clearInterval(animate);\r\n animate = setInterval(animation, 100);\r\n }\r\n }", "keyDown(event){\n\t\tconsole.log(`======] Key Down [======`, event);\n\t\tevent.preventDefault();\n\n\t\tlet keycode = event.which;\n\t\tif(keycode === 16){\n\t\t\tthis.setState({shiftDown: true});\n\t\t}\n\t\t\n\t\t//TODO: figure out how to use SHIFT and CAPS lock\n\t\tif(this.state.focused){\n\t\t\tlet androidKeycode = keycodes.map[keycode];\n\t\t\tconsole.log(`======] KeyCode ${keycode} -> ${androidKeycode} [======`);\n\t\t\tif(androidKeycode){\n\t\t\t\tlet commands = [];\n\t\t\t\tif(this.state.shiftDown){\n\t\t\t\t\tcommands.push(keycodes.map[16]);\n\t\t\t\t}\n\t\t\t\tcommands.push(androidKeycode);\n\t\t\t\tthis.serializer.to({type: 'KEYEVENT', commands: commands})\n\t\t\t\t\t.then(message => {\n\t\t\t\t\t\tthis.websocket.send(message);\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => console.error(error));\n\t\t\t}\n\t\t}\n\t}", "function keydownHandler(e) {\n var keyCode = e.keyCode;\n \n // enter key code = 13\n if (keyCode == 13) {\n clickHandler();\n }\n}", "function onKeyDown(evt) {\n // Keys with modifiers are ignored\n if (evt.altKey || evt.ctrlKey || evt.metaKey) {\n return;\n }\n\n switch (evt.keyCode) {\n case 36: // Home\n player.moveToFirst();\n break;\n case 35: // End\n player.moveToLast();\n break;\n case 38: // Arrow up\n player.jumpToPrevious();\n break;\n case 33: // Page up\n case 37: // Arrow left\n player.moveToPrevious();\n break;\n case 40: // Arrow down\n player.jumpToNext();\n break;\n case 34: // Page down\n case 39: // Arrow right\n case 13: // Enter\n case 32: // Space\n player.moveToNext();\n break;\n }\n \n evt.stopPropagation();\n \n // In Chrome/Chromium, preventDefault() inhibits the 'keypress' event\n }", "handleInput(key) {\n switch(key) {\n case 'right':\n if(this.x < 400) {\n this.x += this.moveLR;\n }\n break;\n case 'left':\n if(this.x > 0) {\n this.x -= this.moveLR;\n }\n break;\n case 'up':\n if(this.y > 0) {\n this.y -= this.moveFB;\n }\n break;\n case 'down':\n if(this.y < 385) {\n this.y += this.moveFB;\n }\n break;\n }\n }", "function keyPressed() {\n // toggle fullscreen mode\n if( key === 'f') {\n fs = fullscreen();\n fullscreen(!fs);\n return;\n }\n\n // dispatch all keys to adventure manager\n adventureManager.keyPressed(key); \n}", "function keyPressed() {\n // toggle fullscreen mode\n if( key === 'f') {\n fs = fullscreen();\n fullscreen(!fs);\n return;\n }\n\n // dispatch all keys to adventure manager\n adventureManager.keyPressed(key); \n}", "_keyHandler(event) {\n const that = this;\n\n if ((that.disabled !== true) && !that.readonly && (event.keyCode === 32)) {\n if (event.type === 'keydown') {\n event.preventDefault();\n return;\n }\n\n if (that.switchMode === 'none') {\n return;\n }\n\n that._changeCheckState('keyboard');\n that._updateHidenInputNameAndValue();\n }\n }", "function processKeyPress(event){\n if (!validKeys.includes(event.keyCode)) {\n return;\n }\n // prevent default browser mapping of keys\n event.preventDefault();\n\n let isShifted = event.shiftKey;\n let element = undefined;\n \n if (isShifted) {\n let shiftedKey = shiftedKeys[event.keyCode];\n element = document.querySelector(`[data-key=\"${shiftedKey}\"]`);\n } else {\n element = document.querySelector(`[data-key=\"${event.keyCode}\"]`);\n }\n let mouseDown = new Event('mousedown');\n element.dispatchEvent(mouseDown);\n // init mouse up and delay 100 ms, keyup seems to fire faster than mouseup so when using keyboard you can barely see calculator key animations\n setTimeout(() => {\n let mouseUp = new Event('mouseup');\n element.dispatchEvent(mouseUp);\n }, 100);\n }", "function handleInput( keyPressed ) {\n // if the user pressed the space bar\n if ( keyPressed === \"space\" )\n {\n // if we're in the \"showResult\" game state\n if ( global.gameState === \"showResult\" )\n {\n // reset the game and transition back to the running state\n reset();\n global.gameState = \"running\";\n }\n }\n }", "function computeKey(event){\n if(event.code == 'KeyV')\n scene.changeActiveCamera();\n else if(event.code == 'Space' && !scene.endedGame) //barra espaciadora\n scene.pauseGame();\n else if(!scene.pausedGame)\n scene.computeKey(event);\n}", "_keydown(event) {\n switch (event.keyCode) {\n // Toggle for space and enter keys.\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__[\"SPACE\"]:\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__[\"ENTER\"]:\n if (!Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__[\"hasModifierKey\"])(event)) {\n event.preventDefault();\n this._toggle();\n }\n break;\n default:\n if (this.panel.accordion) {\n this.panel.accordion._handleHeaderKeydown(event);\n }\n return;\n }\n }", "function onKeyDown(event){\n \n //keyboard events\n switch(event.keyCode){\n case 48:\n case 96:\n lookUp = true;\n break;\n case 38: //up\n case 87: //w\n console.log('w');\n moveForward = true;\n break;\n case 37: //left\n case 65: //a\n moveLeft = true;\n break;\n case 40: //down \n case 83: //s\n moveBackward = true;\n break;\n case 39: //right\n case 68: //d\n moveRight = true;\n break;\n }//end switch\n}", "function onKeyDown(event){\n var key = (event.keyCode) ? event.keyCode : event.which;\n\n if (currentGameState === GameState.IN_GAME) {\n switch (key) {\n case String('W').charCodeAt():\n case String('A').charCodeAt():\n case String('S').charCodeAt():\n case String('D').charCodeAt():\n case String('Q').charCodeAt():\n case String('E').charCodeAt():\n case String(' ').charCodeAt():\n case 37: // Left arrow\n case 38: // Up arrow\n case 39: // Right arrow\n case 40: // Down arrow\n if(pressedKeysArray.indexOf(key) == -1) {\n pressedKeysArray.push(key);\n }\n }\n }\n}", "function receive(key, handler) {\n pxsim.board().bus.listen(key, 0x1, handler);\n }", "function handleKeyDown(event) {\n console.log(\"Key down \", event.key, \" code \", event.code);\n if (event.key == \"ArrowDown\" || event.key == \"ArrowUp\" || event.key == \"ArrowLeft\" || event.key == \"ArrowRight\") {\n event.preventDefault();\n }\n \n currentlyPressedKeys[event.key] = true;\n\n //if key = o, add one particle\n if (currentlyPressedKeys[\"o\"]) {\n particleNum = particleNum + 1;\n }\n //if key = p, add five particles\n if (currentlyPressedKeys[\"p\"]) {\n particleNum = particleNum + 5;\n }\n //if key = r, remove all particles\n if (currentlyPressedKeys[\"r\"]) {\n particles = [];\n particleNum = 0;\n }\n //if key = n, reset particles on screen to 1\n if (currentlyPressedKeys[\"n\"]) {\n particles = [];\n particleNum = 1; \n }\n}", "function keyDown (event) {\n let key = event.key;\n key = standardizeKey(key);\n if (keyIsValid(key)) {\n addActiveClasses(key);\n }\n}", "function pressKey(event) {\n currentKey = event.which;\n}", "function receiveKey(event) {\n\tvar code = keyCodeStr(event);\n\tif (!code) {\n\t\treturn;\n\t}\n\tvar type = event.type;\n\tvar target = event.target;\n\tvar data = {\n\t\tstate: event.type.replace(/^key/, ''),\n\t\tcode: code,\n\t\tkey: event.key,\n\t\telement: target\n\t};\n\t/*\n\t * Generate key-press events for:\n\t * * repeat \"down\" messages\n\t * * only the first \"up\" message\n\t * where the key string is exactly the same as that of the last \"down\"\n\t * message.\n\t *\n\t * Do not generate duplicate consecutive \"down\" messages, convert to\n\t * key-press instead.\n\t */\n\tif (lastKeyDown && data.code === lastKeyDown.code) {\n\t\tvar pressData = _.clone(data);\n\t\tpressData.state = 'press';\n\t\tdispatchEvent(pressData, event);\n\t\tif (data.state === 'down') {\n\t\t\t/* Don't generate duplicate \"down\" events */\n\t\t\treturn;\n\t\t}\n\t}\n\tif (data.state === 'down') {\n\t\tlastKeyDown = data;\n\t}\n\tif (data.state === 'up') {\n\t\tlastKeyDown = null;\n\t}\n\tdispatchEvent(data, event);\n}", "function onkey(event) {\n\n if (!(event.metaKey || event.altKey || event.ctrlKey)) {\n event.preventDefault();\n }\n\n if (event.charCode == 'z'.charCodeAt(0)) { // z\n controls.zeroSensor();\n } else if (event.charCode == 'f'.charCodeAt(0)) { // f\n effect.setFullScreen( true );\n } else if (event.charCode == 'w'.charCodeAt(0)) { // w - move a row up\n animator.changeRow( -1 );\n currentRow -= 1;\n } else if (event.charCode == 's'.charCodeAt(0)) { // s - move a row down\n animator.changeRow( 1 );\n currentRow += 1;\n } else if (event.charCode == 'a'.charCodeAt(0)) { // a - spin row left\n animator.spinRow( -1 );\n } else if (event.charCode == 'd'.charCodeAt(0)) { // d - spin row right\n animator.spinRow( 1 );\n }\n}", "function handleKeyDown(e) {\n // use common key handling code with custom switch callback\n return handleKeySignals(e, function (e, player) {\n var nonGameKeyPressed = true;\n var now = Date.now();\n switch (e.keyCode) {\n case leftKey:\n if (!keyPressedLeft && now - lastLeftKeydownTime > keyUpLag) {\n keyPressedLeft = true;\n player.startLeftMotion();\n }\n lastLeftKeydownTime = now;\n nonGameKeyPressed = false;\n break;\n case rightKey:\n if (!keyPressedRight && now - lastRightKeydownTime > keyUpLag) {\n keyPressedRight = true;\n player.startRightMotion();\n }\n lastRightKeydownTime = now;\n nonGameKeyPressed = false;\n break;\n case downKey:\n if (!keyPressedDown && now - lastDownKeydownTime > keyUpLag) {\n keyPressedDown = true;\n player.startDownMotion();\n }\n lastDownKeydownTime = now;\n nonGameKeyPressed = false;\n break;\n case upKey:\n if (!keyPressedUp && now - lastUpKeydownTime > keyUpLag) {\n keyPressedUp = true;\n player.startUpMotion();\n }\n lastUpKeydownTime = now;\n nonGameKeyPressed = false;\n break;\n }\n // return necessary to tell the browser whether it should handle the\n // key separately; don't want game keys being passed back to the\n // browser\n return nonGameKeyPressed;\n });\n}", "function handleInput (key) {\n if (keysDown[key] && !wasDown[key]) {\n const historyItem = ['keydown', key]\n /* socket.send(JSON.stringify(historyItem))*/\n wasDown[key] = true\n // play engine sound if we're thrusting\n if (key === 'up' || key === 'down') {\n sounds.engine.play()\n }\n return historyItem\n } else if (!keysDown[key] && wasDown[key]) {\n const historyItem = ['keyup', key]\n /* socket.send(JSON.stringify(historyItem))*/\n wasDown[key] = false\n // Pause engine sound if we aren't holding down other thrust keys\n if (wasDown['up'] === false && wasDown['down'] === false) {\n sounds.engine.pause()\n }\n return historyItem\n }\n}", "_keypressHandler(chunk, key)\n\t\t{\n\t\t\tif(key)\n\t\t\t{\n\t\t\t\tif(key.name == \"return\")\n\t\t\t\t{\n\t\t\t\t\tSCli.log(\"\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif((key.ctrl && key.name == \"c\") || (key.name == \"escape\"))\n\t\t\t\t{\n\t\t\t\t\tSCli.log(\"Monitoring stopped.\");\n\t\t\t\t\tprocess.exit();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "handleInput(keyCode) {\n\n switch (keyCode) {\n case 'left':\n if (this.x - 100 >= 0) {\n this.x -= 100;\n }\n break;\n case 'right':\n if (this.x + 100 <= 400) {\n this.x += 100;\n }\n break;\n case 'up':\n if (this.y - 80 >= -80) {\n this.y -= 80;\n }\n break;\n case 'down':\n if (this.y + 80 <= 440) {\n this.y += 80;\n }\n break;\n }\n }", "handleInput(key){\n switch (key) {\n case 'left':\n this.x -= this.speed + 50; \n break;\n case 'up':\n this.y -= this.speed + 40; \n break;\n case 'right':\n this.x += this.speed + 50;\n break;\n case 'down':\n this.y += this.speed + 40;\n break;\n }\n }", "function keydown(ev){\n\tswitch(ev.keyCode){\n\t\tcase 87: // 'w' key\n\t\t\tcamera_z -= 0.5;\n\t\t\tbreak;\n\t\tcase 65: // 'a' key\n\t\t\tcamera_x -= 0.5;\n\t\t\tbreak;\n\t\tcase 83: // 's' key\n\t\t\tcamera_z += 0.5;\n\t\t\tbreak;\n\t\tcase 68: // 'd' key\n\t\t\tcamera_x += 0.5;\n\t\t\tbreak;\n\t\tcase 37: // left arrow key\n\t\t\tcamera_rotate -= 0.01;\n\t\t\tbreak;\n\t\tcase 39: // right arrow key\n\t\t\tcamera_rotate += 0.01;\n\t\t\tbreak;\n\t\tcase 82: // 'r' key (reset camera)\n\t\t\tcamera_x = 0.0;\n\t\t\tcamera_y = 2.5;\n\t\t\tcamera_z = 25.0;\n\t\t\tcamera_rotate = 4.71239;\n\t\t\tchairs_moving = false;\n\t\t\tchair_move_amount = 0;\n\t\t\ttable_rotate = 0;\n\t\t\tsky_channel = true;\n\t\t\tbreak;\n\t\tcase 32: // space key\n\t\t\tsky_channel = !sky_channel\n\t\t\tbreak;\n\t\tcase 74: // 'j' key\n\t\t\ttable_rotate -= 0.4;\n\t\t\tbreak;\n\t\tcase 76: // 'l' key\n\t\t\ttable_rotate += 0.4;\n\t\t\tbreak;\n\t\tcase 17: // Left control\n\t\t\tchairs_moving = !chairs_moving;\n\t\t\tif(!chairs_moving){\n\t\t\t\tchair_move_amount = 0;\n\t\t\t}\n\t\t\tbreak;\n\t}\n}", "function handleKeyDown(event) {\r\n keysPressed[event.keyCode] = true;\r\n // Disable the defeault effect of this key press (ie down arrow doesn't scroll down)\r\n event.preventDefault();\r\n}", "function doKeyDown(evt) {\n var keyCode = evt.keyCode; // code for the key that was pressed\n \n if (keyCode >=34 && keyCode <= 40) {\n evt.preventDefault(); // Stop page from scrolling for arrow keys, home, end, pageup, pagedown.\n }\n if (evt.shiftKey) \n shiftBeingHeld = true;\n \n switch( keyCode ) {\n case 37: eyeX -= 10; break; // left arrow\n case 38: eyeY += 10;\n break; // up arrow\n case 39: eyeX += 10; break; // right arrow\n case 40: eyeY -= 10; break; // down arrow\n case 36: atX = origAtX;\n atY = origAtY;\n atZ = origAtZ;\n eyeX = origEyeX;\n eyeY = origEyeY;\n eyeZ = origEyeZ; break; // home\n case 82:\n case 114: rotationTurnedOn = !rotationTurnedOn; // the letter R\n }\n \n display(); \n}", "handleKeyPress(e) {\n if ((e.keyCode === 13 && this.state.fieldsString.length) || e.keyCode === 9) {\n e.preventDefault();\n this.handleSelection();\n this.handleBlur();\n } else if (e.keyCode === 38) {\n e.preventDefault();\n this.higherSuggestion();\n } else if (e.keyCode === 40) {\n e.preventDefault();\n this.lowerSuggestion();\n } else if (e.keyCode === 27) {\n e.preventDefault();\n this.handleBlur();\n } else {\n this.updateFieldKv(e);\n }\n }", "function handleKey(e) {\n if (e.key.includes(\"Arrow\")) {\n e.preventDefault(); // Prevent default only on Arrow keys\n draw({ key: e.key }); // Passing key is equal to key pressed\n }\n}", "handleKeyDown(ev) {\n const {vimMode} = this.props;\n const _handleKeyDown = vimMode ? this._handleKeyDownVim : this._handleKeyDown;\n\n if (ev.target.tagName === 'INPUT' || ev.metaKey || ev.ctrlKey) {\n return;\n }\n if (_handleKeyDown(ev.key, ev.shiftKey, ev.altKey)) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n }", "function DoKeyDown (e) {\n\tif (e.keyCode === 8)\n\t{\n\t\t//Backspace - prevent going back a page\n\t\te.preventDefault();\n\t}\n\telse if (e.keyCode === 87)\n\t{\n\t\twKey = true;\n\t}\n\telse if (e.keyCode === 65)\n\t{\n\t\taKey = true;\n\t}\n\telse if (e.keyCode === 83)\n\t{\n\t\tsKey = true;\n\t}\n\telse if (e.keyCode === 68)\n\t{\n\t\tdKey = true;\n\t}\n\t\n\t//console.log(e.keyCode);\n}", "keyUp(_keycode) {}" ]
[ "0.775545", "0.7531992", "0.7253767", "0.71955645", "0.71929777", "0.71917444", "0.7183162", "0.715556", "0.7124231", "0.7111242", "0.7088713", "0.7051842", "0.7051158", "0.7048878", "0.7048878", "0.70424455", "0.70308423", "0.7003227", "0.6974658", "0.6955478", "0.695327", "0.69386953", "0.69211483", "0.6915135", "0.69147605", "0.68671525", "0.68288404", "0.6797632", "0.6796864", "0.67809117", "0.67806023", "0.67789215", "0.6768689", "0.67558247", "0.67358637", "0.6733606", "0.6732747", "0.6710657", "0.6700654", "0.6699939", "0.6690672", "0.6687632", "0.66824406", "0.66805243", "0.6675483", "0.66660774", "0.6665364", "0.66630155", "0.6633855", "0.66289115", "0.66261554", "0.6610904", "0.65941155", "0.6591537", "0.6590369", "0.6582676", "0.6577786", "0.65756124", "0.6575583", "0.65729874", "0.6569663", "0.655699", "0.65481335", "0.6542785", "0.6542195", "0.65401566", "0.65356135", "0.65302944", "0.65284103", "0.6524681", "0.65219605", "0.6520706", "0.65181863", "0.6507796", "0.6507796", "0.6506122", "0.6501505", "0.65009797", "0.6499884", "0.6498694", "0.6496943", "0.6494654", "0.6493706", "0.6491514", "0.6487879", "0.64868355", "0.64789665", "0.64773464", "0.64708406", "0.6470078", "0.6469359", "0.6463406", "0.64520144", "0.6451884", "0.6450911", "0.64402616", "0.6439206", "0.6436345", "0.6429725", "0.6425677", "0.64155143" ]
0.0
-1
Handle a key from the keypress event
function handleCharBinding(cm, e, ch) { return dispatchKey(cm, "'" + ch + "'", e, function (b) { return doHandleBinding(cm, b, true); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HandleKeyDown(event) {}", "function handleKeyPress({ key }) {\n dispatch(playerTyped(key.toLowerCase()));\n }", "handleInput(keycode) {\n if (keycode !== undefined && player.moves === true) {\n key = keycode;\n }\n }", "handleKeyPress(kEvent) {\n switch (kEvent.keyCode) {\n case Phaser.KeyCode.BACKSPACE:\n this.deleteChar();\n break;\n case Phaser.KeyCode.LEFT:\n case Phaser.KeyCode.RIGHT:\n case Phaser.KeyCode.UP:\n case Phaser.KeyCode.DOWN:\n console.warn('CMD NAV NOT IMPLEMENTED');\n break;\n case Phaser.KeyCode.SPACEBAR:\n this.addTextToCommand(' ');\n break;\n case Phaser.KeyCode.ENTER:\n this.submitCommand();\n break;\n case Phaser.KeyCode.TAB:\n console.warn('CMD AUTOCOMPLETE NOT IMPLEMENTED');\n break;\n default:\n this.addTextToCommand(kEvent);\n break;\n }\n }", "function canvasHandleKeyPress(e){\r\n\tvar key = e.which;\r\n\tif(useStates){\r\n\t\tStates.current().input.handleKeyPress(e);\r\n\t}\r\n\tgInput.handleKeyPress(e);\r\n}", "function handleKey(event) { //function to create input when key is pressed\n\t\tvar pressedKey = event.key;\n\t\tmakeSound(pressedKey);\n\t\tbuttonAnimation(pressedKey);\n\t\tsetTimeout(buttonAnimation,500);\n\t\t// console.log(pressedKey);\n}", "function keyup_handler(event)\n{\n\tgame.handle_key(event.code, false);\n}", "function keyPressHandler(event)\n\t{\n\t\t// Make sure it's not the same event firing over and over again\n\t\tif (keyPressEvent == event) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tkeyPressEvent = event;\n\t\t}\n\n\t\t// Get character that was typed\n\t\tvar charCode = event.which;\n\t\tif (charCode == KEYCODE_RETURN)\t// If return, clear and get out\n\t\t{\n\t\t\tclearTypingBuffer();\n\t\t\tclearTypingTimer();\n\t\t\treturn;\n\t\t}\n\n\t\t// Clear timer if still running, and start it again\n\t\tclearTypingTimer();\n\t\ttypingTimer = setTimeout(clearTypingBuffer, typingTimeout);\n\n\t\t// Add new character to typing buffer\n\t\tvar char = String.fromCharCode(charCode);\n\t\ttypingBuffer.push(char);\n\n\t\t// Check typed text for shortcuts\n\t\tcheckShortcuts(char, typingBuffer, event.target);\n\t}", "function keyHandler(e){\n\tvar keyCode = String(e.keyCode);\n\tupdateScore(keyCode);\n\tvar p1 = d.getElementById(\"keypressed\");\n\t//p1.innerHTML = e.keyCode;\n\tvar track = map_key_track[keyCode];\n \tstaticCircles.playedNote(track, new Date().getTime());\n \tplaySound(track);\n\t\n}", "_keypressHandler(chunk, key)\n\t\t{\n\t\t\tif(key)\n\t\t\t{\n\t\t\t\tif(key.name == \"return\")\n\t\t\t\t{\n\t\t\t\t\tSCli.log(\"\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif((key.ctrl && key.name == \"c\") || (key.name == \"escape\"))\n\t\t\t\t{\n\t\t\t\t\tSCli.log(\"Monitoring stopped.\");\n\t\t\t\t\tprocess.exit();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function keyPressed() {\n if (handler.active === handler.nameplate) {\n doorbell.keyPressed();\n }\n}", "function canvasHandleKeyDown(e){\r\n\tvar key = e.keyCode;\r\n\t//println(key);\r\n\tif(useStates){\r\n\t\tStates.current().input.handleKeyDown(e);\r\n\t}\r\n\tgInput.handleKeyDown(e);\r\n}", "function handleKeyPress(event) {\n\n var action = getSwitcherAction(event.keyCode);\n\n switch (action) {\n case Config.GOING_UP:\n case Config.GOING_DOWN:\n moveListFocus(action);\n break;\n case Config.ESCAPING:\n $(Config.LIST_SWITCHER).hide();\n break;\n case Config.SWITCHING:\n switchToSelectedList();\n break;\n }\n }", "keyDown(_keycode) {}", "handleKeyDown (event) {\n }", "function onKeyPress(e) {\n const pressed = e.keyCode;\n\n switch(pressed) {\n case 82: // R\n handleRestart();\n break;\n case 83: // S\n handleStartMenu();\n break;\n case 27:\n // Esc\n handlePause();\n break;\n }\n}", "function pressKey(event) {\n currentKey = event.which;\n}", "function onKeyPress(event) {\n\t\n\tswitch (event.key) {\n\t\t\n\t\t// Light Keys\n\t\tcase \"ArrowDown\":\n\t\tcase \"ArrowUp\":\n\t\tcase \"ArrowRight\":\n\t\tcase \"ArrowLeft\":\n\t\tcase \"+\":\n\t\tcase \"-\":\n\t\t\tlightEventHandler(event);\n\t\t\tbreak;\n\n\t\t// Camera keys\n\t\tcase \"w\":\n\t\tcase \"s\":\n\t\tcase \"d\":\n\t\tcase \"a\":\n\t\tcase \"q\":\n\t\tcase \"e\":\n\t\t\tSC.keyPress(event); // pass the listener event to the camera (Required for SphericalCamera Module)\n\t\t\tupdateMVP(); // re-generate the MVP matrix and update it\n\t\t\tbreak;\n\t}\n\n\trender(); // draw with the new view\n}", "handleKeyPress(e) {\n if((this.gameOver() === 'won') || (this.gameOver() === 'loose')) {\n if (e.key === ' ') {\n this.restartGame();\n }\n } \n else {\n if ((e.keyCode >= 65) && (e.keyCode <= 90)) {\n this.handleKeyClick(e.key.toUpperCase());\n }\n }\n }", "handleKeyDown({ key }) {\n switch (key) {\n case \"Enter\":\n this.addTodoToState(this._inputEl.value);\n break;\n default:\n break;\n }\n }", "function onkey(event) {\n\n if (!(event.metaKey || event.altKey || event.ctrlKey)) {\n event.preventDefault();\n }\n\n if (event.charCode == 'z'.charCodeAt(0)) { // z\n controls.zeroSensor();\n } else if (event.charCode == 'f'.charCodeAt(0)) { // f\n effect.setFullScreen( true );\n } else if (event.charCode == 'w'.charCodeAt(0)) { // w - move a row up\n animator.changeRow( -1 );\n currentRow -= 1;\n } else if (event.charCode == 's'.charCodeAt(0)) { // s - move a row down\n animator.changeRow( 1 );\n currentRow += 1;\n } else if (event.charCode == 'a'.charCodeAt(0)) { // a - spin row left\n animator.spinRow( -1 );\n } else if (event.charCode == 'd'.charCodeAt(0)) { // d - spin row right\n animator.spinRow( 1 );\n }\n}", "function keyDownHandler(event) {\n keyHandler(true, event);\n}", "function handleKeyDown(event) {\r\n // storing the pressed state for individual key\r\n currentlyPressedKeys[event.keyCode] = true;\r\n}", "_handleKeyEvent(event) {\n const keyManager = this._keyManager;\n switch (event.keyCode) {\n case LEFT_ARROW:\n case RIGHT_ARROW:\n if (this._isHorizontal()) {\n event.preventDefault();\n keyManager.setFocusOrigin('keyboard');\n keyManager.onKeydown(event);\n }\n break;\n case UP_ARROW:\n case DOWN_ARROW:\n if (!this._isHorizontal()) {\n event.preventDefault();\n keyManager.setFocusOrigin('keyboard');\n keyManager.onKeydown(event);\n }\n break;\n case ESCAPE:\n if (!hasModifierKey(event)) {\n event.preventDefault();\n this._menuStack.close(this, 2 /* currentItem */);\n }\n break;\n case TAB:\n this._menuStack.closeAll();\n break;\n default:\n keyManager.onKeydown(event);\n }\n }", "function handleKeyDown(event) {\n wgl.listOfPressedKeys[event.keyCode] = true;\n // console.log(\"keydown - keyCode=%d, charCode=%d\", event.keyCode, event.charCode);\n }", "function keyPressed(event) {\n const digits = \"0123456789\";\n const operators = \"+-x*/\";\n if (digits.indexOf(event.key) !== -1) {\n digitPressed(event.key);\n } else if (operators.indexOf(event.key) !== -1) {\n operatorPressed(event.key);\n } else if (event.key === \"=\" || event.key === \"Enter\") {\n computeResult();\n } else if (event.key === \"c\" || event.key === \"C\") {\n clearDisplay();\n } else if (event.key === \".\") {\n addDecimal();\n } else if (event.key === \"m\" || event.key === \"M\") {\n flipSign();\n } else if (event.key === \"Backspace\") {\n deleteLastDigit();\n }\n}", "function keydown_handler(event)\n{\n\tif (event.defaultPrevented) return;\n\tif (game.handle_key(event.code, true)) return;\n\n\t// cancel the default action to avoid it being handled twice\n\tevent.preventDefault();\n}", "function handle_keypress(e) {\n var ch = (typeof e.which == \"number\") ? e.which : e.keyCode\n console.log(\"got char code:\", ch)\n if (ch == 97) { // 'a'\n grow_type_span()\n } else if (ch == 115) { // 's'\n shrink_type_span()\n } else if (ch == 113) { // 'q'\n remove_type_span()\n }\n}", "handleKeySignal(signal) {\n this.handleKeyPress(signal.event);\n }", "function processKeyPress(keycode) {\n if (keycode === 65) {\n playNote('a')\n }\n if (keycode === 83) {\n playNote('c')\n }\n if (keycode === 68) {\n playNote('d')\n }\n if (keycode === 70) {\n playNote('f')\n }\n}", "function handleKeyDown(event) {\n switch (event.key) {\n case \"Escape\":\n closeSuggestions();\n break;\n case \"ArrowDown\":\n highlightNext();\n break;\n case \"ArrowUp\":\n highlightPrev();\n break;\n case \"Enter\":\n selectItem();\n }\n}", "function handleKey(e) {\n if (e.key.includes(\"Arrow\")) {\n e.preventDefault();\n draw({ key: e.key }); // Here the key object is being deconstructing that its value is the key that the event had\n console.log(e.key);\n console.log(\"HANDLE KEYY!!\")\n };\n}", "function onKeyDown(e) {\n // do not handle key events when not in input mode\n if (!imode) {\n return;\n }\n\n // only handle special keys here\n specialKey(e);\n }", "function keyPressed() {\n}", "function handleKey(event) {\n if (event.key.includes('Arrow')) {\n event.preventDefault();\n draw({ key: event.key });\n // console.log(event.key);\n // console.log('handling key');\n }\n}", "function keyPress (key) {\n if(typeof(key) == \"string\"){\n var value = key\n } else if (typeof(key) == \"object\"){\n var value = key.innerText;\n }\n\n if(!isNaN(parseInt(value))){\n //If the key is a number, act accordingly\n update(numberPressed(value));\n } else {\n //If the key is not a number, act accordingly\n functionPressed(value);\n }\n}", "function keyPress(event) {\n if (event.key === \"Enter\") {\n guess();\n }\n }", "function keyPressed() {\n if (gameView == VIEW_GAME) {\n //Ingame\n if (keyCode == UP_ARROW) {\n console.log(\"up\")\n }\n if (keyCode == DOWN_ARROW) {\n console.log(\"down\")\n }\n if (keyCode == LEFT_ARROW) {\n console.log(\"left\")\n }\n if (keyCode == RIGHT_ARROW) {\n console.log(\"right\")\n }\n if (key == ' ') {\n console.log(\"Space\");\n shakeTimer = 0.1;\n }\n\n if (key == 'p') {\n console.log(\"Pressed P key\")\n submitScore();\n }\n\n if (key == 'e') {\n console.log(\"Pressed E key\")\n\n spawnExplosion(camera.mouseX, camera.mouseY, 3);\n }\n }\n\n\n if (keyCode == ESCAPE) {\n gameView = VIEW_MAIN_MENU;\n }\n}", "keyUp(_keycode) {}", "function handleKey(key){\n //I send the submission only if I'm not on an input text and there's a displayed paper and I'm not already submitting\n if(document.activeElement.type !== \"text\" && display && !voteSubmission){\n arraySubmission(key);\n }\n }", "keypressInput(e) {\n // console.log(e);\n let keycode = event.key; // also for cross-browser compatible\n (this.acceptMoves) && this.ea.publish('keyPressed', keycode);\n }", "keypress ( target, keyText ) {\n target.dispatchEvent(_keyboardEventFor('keypress', Editor.KeyCode(keyText)));\n }", "function keydown(event) {\n keys[event.code] = event;\n }", "function keyPressHandler(e) {\r\n if (e.which === 117) rocket1.moveUp(10);\r\n if (e.which === 100) rocket1.moveDown(10);\r\n if (e.which === 114) rocket1.moveRight(10);\r\n if (e.which === 108) rocket1.moveLeft(10);\r\n if (e.which === 32) {\r\n soundFiring();\r\n rocket1.addBullet(rocket1.x, rocket1.y + rocket1.height / 2);\r\n }\r\n if (e.which === 48) {\r\n clearInterval(animate);\r\n }\r\n if (e.which === 49) {\r\n clearInterval(animate);\r\n animate = setInterval(animation, 100);\r\n }\r\n }", "function processKeyPress(event){\n if (!validKeys.includes(event.keyCode)) {\n return;\n }\n // prevent default browser mapping of keys\n event.preventDefault();\n\n let isShifted = event.shiftKey;\n let element = undefined;\n \n if (isShifted) {\n let shiftedKey = shiftedKeys[event.keyCode];\n element = document.querySelector(`[data-key=\"${shiftedKey}\"]`);\n } else {\n element = document.querySelector(`[data-key=\"${event.keyCode}\"]`);\n }\n let mouseDown = new Event('mousedown');\n element.dispatchEvent(mouseDown);\n // init mouse up and delay 100 ms, keyup seems to fire faster than mouseup so when using keyboard you can barely see calculator key animations\n setTimeout(() => {\n let mouseUp = new Event('mouseup');\n element.dispatchEvent(mouseUp);\n }, 100);\n }", "handleKeyDown(kCode) {\n console.log(\"handleKeyDown \" + this.id + \" \" + kCode)\n }", "function keyDown(evt) {\n var c = (evt.keyCode) ? evt.keyCode : evt.charCode;\n switch(c) {\n case 37: // left\n case 63234:\n dx = 1; break;\n case 39: // right\n case 63235:\n dx = -1; break;\n case 40: // down\n case 63233:\n dy = -1; break;\n case 38: // up\n case 63232:\n dy = 1; break;\n case 32: // fire\n if (Torpedo.x) {\n playSound('notAvail');\n message('Not loaded new torpedo yet!');\n mainPanel(\"#779\");\n } else Torpedo.fire();\n break;\n case 16: // shift\n withShift = 1; break;\n case 27: // esc\n gameRunning = score = 0;\n IntroOutro.endAnimDest(0 , 1, 1);\n }\n}", "function handleKeyDown(event) {\n console.log(\"Key down \", event.key, \" code \", event.code);\n if (event.key == \"ArrowDown\" || event.key == \"ArrowUp\" || event.key == \"ArrowLeft\" || event.key == \"ArrowRight\") {\n event.preventDefault();\n }\n \n currentlyPressedKeys[event.key] = true;\n\n //if key = o, add one particle\n if (currentlyPressedKeys[\"o\"]) {\n particleNum = particleNum + 1;\n }\n //if key = p, add five particles\n if (currentlyPressedKeys[\"p\"]) {\n particleNum = particleNum + 5;\n }\n //if key = r, remove all particles\n if (currentlyPressedKeys[\"r\"]) {\n particles = [];\n particleNum = 0;\n }\n //if key = n, reset particles on screen to 1\n if (currentlyPressedKeys[\"n\"]) {\n particles = [];\n particleNum = 1; \n }\n}", "function handleKeyDown(event) {\n currentlyPressedKeys[event.keyCode] = true;\n }", "function handle (key, velocity) {\r\n\r\n console.log('got \"keypress\"', key);\r\n\r\n if (key === \"B\") {\r\n orb.color(\"blue\");\r\n }\r\n\r\n if (key === \"R\") {\r\n orb.color(\"red\");\r\n }\r\n\r\n if (key === \"S\") {\r\n startCalibration();\r\n }\r\n\r\n if (key === \"F\") {\r\n stopCalibration(configureLocator);\r\n }\r\n\r\n if (key === \"&\") {\r\n roll(velocity, 0);\r\n }\r\n\r\n if (key === \"'\") {\r\n roll(velocity, 90);\r\n }\r\n\r\n if (key === \"(\") {\r\n roll(velocity, 180);\r\n }\r\n\r\n if (key === \"%\") {\r\n roll(velocity, 270);\r\n }\r\n}", "function computeKey(event){\n if(event.code == 'KeyV')\n scene.changeActiveCamera();\n else if(event.code == 'Space' && !scene.endedGame) //barra espaciadora\n scene.pauseGame();\n else if(!scene.pausedGame)\n scene.computeKey(event);\n}", "function keydown() {\n switch (d3.event.keyCode) {\n case 8: // backspace\n {\n break;\n }\n case 46: { // delete\n delete_node = true;\n break;\n }\n case 16: { //shift\n should_modify = true;\n break;\n }\n case 17: { //control\n drawing_line = true;\n }\n\n }\n}", "function handleKey(e){\n if(e.key.includes('Arrow')){\n e.preventDefault();\n console.log(e.key);\n draw({key: e.key});\n console.log('HANDLING KEY');\n }\n}", "function handleKeys(e){\n\tswitch (e.keyCode){\n\t\tcase 67: \t\t\t// 'c'\n\t\t\tcomposeWindowOpener();\n\t\t\tbreak;\n\t\tcase 88: \t\t\t// 'x'\n\t\t\tselectEmail();\n\t\t\tbreak;\n\t\tcase 38: \t\t\t// 'up'\n\t\tcase 74: \t\t\t// 'j'\n\t\t\trowSelector(-1);\n\t\t\tbreak;\n\t\tcase 40: \t\t\t// 'down'\n\t\tcase 75: \t\t\t// 'k'\n\t\t\trowSelector(1);\n\t\t\tbreak;\n\t\tcase 46: \t\t\t// 'del'\n\t\t\tcloseAd_keyEvent();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log(\"not listening to keyCode\",e.keyCode);\n\t}\n}", "handleKeydown(event) {\n if (event.which === 13 || event.which === 27) { // enter or esc\n this.finishUpdate();\n }\n }", "function onKeyPress(event){\n\t\t \n\t\tvar obj = jQuery(event.target);\n\t\tif(obj.is(\"textarea\") || obj.is(\"select\") || obj.is(\"input\"))\n\t\t\treturn(true);\n\t\t\t\n\t\t var keyCode = (event.charCode) ? event.charCode :((event.keyCode) ? event.keyCode :((event.which) ? event.which : 0));\n\t\t \n\t\t switch(keyCode){\n\t\t\t case 39:\t//right key\n\t\t\t\t t.nextItem();\n\t\t\t\t event.preventDefault();\n\t\t\t break;\n\t\t\t case 37:\t//left key\n\t\t\t\t t.prevItem();\n\t\t\t\t event.preventDefault();\n\t\t\t break;\n\t\t }\n\t\t \n\t\tg_objGallery.trigger(t.events.GALLERY_KEYPRESS, keyCode);\n\t}", "keyHandler(event){\n switch(event.which){\n // previous slide\n case 33: // pgup\n case 37: // left\n event.preventDefault();\n this.previous();\n break;\n\n // next slide\n case 32: // spacebar\n case 34: // pgdn\n case 39: // right\n event.preventDefault();\n this.next()\n break;\n\n // autoplay\n case 65: // a\n event.preventDefault();\n this.toggleAutoplay();\n break;\n\n // fullscreen\n case 70: // f\n event.preventDefault();\n this.fullscreen();\n break;\n\n // goto home slide\n case 72: // h\n event.preventDefault();\n this.goto(1);\n break;\n\n // play / pause\n case 80: // p\n event.preventDefault();\n this.playAudio();\n break;\n\n // transcript / table of contents\n case 84: // t\n event.preventDefault();\n this.toggleTranscript();\n break;\n }\n }", "function keypress(ev) {\n if (hasGameEnded(guesses, secret)) {\n return;\n }\n if (ev.key === \"Enter\") {\n makeGuess();\n }\n }", "handleKeyUp(){\n\n }", "function handleKeydown(event)\n {\n\n switch(event.which)\n { \n \n case 13: \n handleEnterKey(event);\n break;\n \t \n case 36:\n event.preventDefault();\n handleInitKey();\n break;\n \n case 46: \n preventPromptErasing(event, true);\n break;\n \t \n case 8: \n case 37: \n preventPromptErasing(event, false);\n break;\n \n case 38: \n event.preventDefault();\n applyCommandHistory(true);\n break;\n \n case 40: \n applyCommandHistory(false);\n event.preventDefault();\n break;\n \n default: \n // As of now, nothing is done in this case.\n break;\n }\n }", "function handleKeyDown(event) { // ko pritisnemo tipko\n // storing the pressed state for individual key\n currentlyPressedKeys[event.keyCode] = true; // tipka z določeno kodo je trenutno pritisnjena\n\n // handling single keypress for switching filters\n if (String.fromCharCode(event.keyCode) == \"F\") { // če pritisnemo tipko za menjavo filtrov\n filter += 1;\n if (filter == 3) {\n filter = 0;\n }\n }\n}", "_handleKeyPress(input){\n switch (typeof input){\n case 'number': return this._handleNumericalKeyPress(input);\n case 'string': return this._handleOperationKeyPress(input);\n }\n }", "checkKeyPress(event){\n if (event.key === 'Enter') {\n this.doThing();\n }\n }", "function keyPress(ev) {\n // submit guess when the user hits enter\n if (ev.key == \"Enter\") {\n guess(text);\n setText('')\n // prevent non-digit guesses\n } else if (!((ev.key == \"0\") ||\n (ev.key == \"1\") ||\n (ev.key == \"2\") ||\n (ev.key == \"3\") ||\n (ev.key == \"4\") ||\n (ev.key == \"5\") ||\n (ev.key == \"6\") ||\n (ev.key == \"7\") ||\n (ev.key == \"8\") ||\n (ev.key == \"9\")\n )) {\n ev.preventDefault();\n }\n }", "function keyPressed() {\n\t// toggle fullscreen mode\n\tif( key === 'f') {\n\t\tfs = fullscreen();\n\t\tfullscreen(!fs);\n\t\treturn;\n\t}\n\n\t// dispatch key events for adventure manager to move from state to \n\tadventureManager.keyPressed(key); \n}", "function keyPressed() {\n // toggle fullscreen mode\n if( key === 'f') {\n fs = fullscreen();\n fullscreen(!fs);\n return;\n }\n\n // dispatch all keys to adventure manager\n adventureManager.keyPressed(key); \n}", "function keyPressed() {\n // toggle fullscreen mode\n if( key === 'f') {\n fs = fullscreen();\n fullscreen(!fs);\n return;\n }\n\n // dispatch all keys to adventure manager\n adventureManager.keyPressed(key); \n}", "handleKeyPress(e) {\n if ((e.keyCode === 13 && this.state.fieldsString.length) || e.keyCode === 9) {\n e.preventDefault();\n this.handleSelection();\n this.handleBlur();\n } else if (e.keyCode === 38) {\n e.preventDefault();\n this.higherSuggestion();\n } else if (e.keyCode === 40) {\n e.preventDefault();\n this.lowerSuggestion();\n } else if (e.keyCode === 27) {\n e.preventDefault();\n this.handleBlur();\n } else {\n this.updateFieldKv(e);\n }\n }", "function keydown(evt) {\r\n var keyCode = (evt.keyCode)? evt.keyCode : evt.getKeyCode();\r\n\r\n switch (keyCode) {\r\n case \"A\".charCodeAt(0):\r\n player.motion = motionType.LEFT;\r\n player.facing = facingDir.LEFT;\r\n break;\r\n\r\n case \"D\".charCodeAt(0):\r\n player.motion = motionType.RIGHT;\r\n\t\t\tplayer.facing = facingDir.RIGHT;\r\n break;\r\n\r\n case \"W\".charCodeAt(0):\r\n if (player.isOnPlatform()||cheating) {\r\n player.verticalSpeed = JUMP_SPEED;\r\n }\r\n break;\r\n\r\n\t\tcase \"C\".charCodeAt(0):\r\n\t\t\tif (!cheating){\r\n\t\t\t\tplayer.rolenode.style.setProperty(\"opacity\", 0.5, null);\r\n\t\t\t\tcheating = true;\r\n\t\t\t\tOLD_BCOUNT = BULLET_COUNT;\r\n\t\t\t\tBULLET_COUNT = Number.POSITIVE_INFINITY;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"V\".charCodeAt(0):\r\n\t\tif (cheating){\r\n\t\t\t\tplayer.rolenode.style.setProperty(\"opacity\", 1, null);\r\n\t\t\t\tcheating = false;\r\n\t\t\t\tBULLET_COUNT = OLD_BCOUNT;\r\n\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"Q\".charCodeAt(0):\r\n\t\t\talert( player.position.x+ \", \"+ (player.position.y - 5) );\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase 32:\r\n if (canShoot) shootBullet();\r\n break;\r\n }\r\n}", "function keyHandler(evt){\n keymap[evt.key] = (evt.type == 'keydown');\n}", "function keyEvent(event) {\n console.log(\"KEY: \" + event.name + \"=\" + event.isPressed);\n if (event.name == 'UP'){\n\t\tactivesensor = 'T';\n\t\tled.sync.showMessage(activesensor);\n\t} else if (event.name == 'LEFT'){\n\t\tactivesensor = 'P';\n\t\tled.sync.showMessage(activesensor);\n\t} else if (event.name == 'RIGHT'){\n\t\tactivesensor = 'H';\n\t\tled.sync.showMessage(activesensor);\n\t}\n}", "function handleInput (key) {\n if (keysDown[key] && !wasDown[key]) {\n const historyItem = ['keydown', key]\n /* socket.send(JSON.stringify(historyItem))*/\n wasDown[key] = true\n // play engine sound if we're thrusting\n if (key === 'up' || key === 'down') {\n sounds.engine.play()\n }\n return historyItem\n } else if (!keysDown[key] && wasDown[key]) {\n const historyItem = ['keyup', key]\n /* socket.send(JSON.stringify(historyItem))*/\n wasDown[key] = false\n // Pause engine sound if we aren't holding down other thrust keys\n if (wasDown['up'] === false && wasDown['down'] === false) {\n sounds.engine.pause()\n }\n return historyItem\n }\n}", "onElementKeyPress(event) {}", "onElementKeyPress(event) {}", "function getKey(e){\n if (e == null) { // ie\n keycode = event.keyCode;\n } else { // mozilla\n keycode = e.which;\n }\n key = String.fromCharCode(keycode).toLowerCase();\n\n if(key == 'x'){ hideContentModal(); }\n}", "function keyPressHandler(evt) {\n evt = evt || window.event;\n if (evt) {\n var keyCode = evt.charCode || evt.keyCode;\n charLogged = String.fromCharCode(keyCode);\n stream.push(charLogged);\n }\n }", "function handleKeyDown(e) {\n counter = counter + 1;\n if (counter === 1) {\n socket.emit('typing', name)\n }\n window.clearTimeout(timer);\n}", "function onkey(event) {\r\n event.preventDefault();\r\n\r\n if (vr) {\r\n if (event.keyCode == 90) // z\r\n controls.resetSensor(); //zero rotation\r\n else if (event.keyCode == 70 ) //f or enter\r\n effect.setFullScreen(true) //fullscreen\r\n else if (event.key == 'Enter') {\r\n\r\n console.log('ugh');\r\n onMouseDown();\r\n }\r\n }\r\n\r\n // some controls\r\n if(event.keyCode == 87) // w\r\n camera.position.z -= 0.8;\r\n else if(event.keyCode == 83) // s\r\n camera.position.z += 0.8;\r\n else if(event.keyCode == 65) // a\r\n camera.position.x -= 0.8;\r\n else if(event.keyCode == 68) // d\r\n camera.position.x += 0.8;\r\n}", "onKeyPressed(event){\n switch(event.keyCode){\n case 13: /** ENTER */\n this.command.state = this.command.stateFactory.getFinalizeState(this.command);\n this.command.state.onEpsilon();\n break;\n case 27: /** ESCAPE */\n this.command.state = this.command.stateFactory.getIdleState(this.command);\n break;\n }\n }", "myKeyPress(k) {\n if (k.key === 'Enter') {\n this.sendPost(k)\n }\n }", "_handleKeydown(event) {\n // We don't handle any key bindings with a modifier key.\n if (Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__[\"hasModifierKey\"])(event)) {\n return;\n }\n switch (event.keyCode) {\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__[\"ENTER\"]:\n case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__[\"SPACE\"]:\n if (this.focusIndex !== this.selectedIndex) {\n this.selectFocusedIndex.emit(this.focusIndex);\n this._itemSelected(event);\n }\n break;\n default:\n this._keyManager.onKeydown(event);\n }\n }", "function keypressChatHandler(\n/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/\n /**\n * The event object. */\n event\n)\n/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/\n{\n /*\n * We have no action for key press combinations with the Alt key. */\n if (event.altKey) {\n return;\n }\n /*\n * Plain key presses (no Alt or Ctrl key combinations). */\n if (!event.ctrlKey) {\n switch (event.which || event.keyCode) {\n case 13: /* 'Enter key' */\n app.log(2, 'Enter key pressed in chat handler');\n event.preventDefault();\n sendChat();\n break;\n } /* switch (event.which) */\n }\n}", "function keyPress(e) {\n var x = e || window.event;\n var key = x.keyCode || x.which;\n if (key == 13 || key == 3) {\n //runs this function when enter is pressed\n newEntry();\n }\n if (key == 38) {\n console.log(\"hi\");\n //document.getElementById(\"chatbox\").value = lastUserMessage;\n }\n}", "function cust_KeyDown(evnt) {\n //f_log(evnt.keyCode)\n}", "static trackKeypress(_event) {\n _event.preventDefault();\n Setup.keyPressed[_event.keyCode] = (_event.type == \"keydown\");\n }", "function keyPressDown(event){\n\n let key = (96 <= event.keyCode && event.keyCode <= 105)? event.keyCode - 48 : event.keyCode;\n if(key >= 16 && key <= 18){\n\n if(pressedModifiers.indexOf(key) === -1){\n\n pressedModifiers.push(key);\n }\n if(event.data && event.data.modifierFunc){\n\n event.data.modifierFunc(event);\n }\n\n } else {\n\n if(event.data && event.data.keyFunc){\n\n event.data.keyFunc(event);\n }\n }\n if(event.data && event.data.func){\n\n event.data.func(event);\n }\n for (var handler in waitingForInput) {\n if (waitingForInput.hasOwnProperty(handler)) {\n waitingForInput[handler](event);\n }\n }\n\n}", "function KeyDetect(event)\r\n {\r\n var key=event.key; //storing the value in variable.\r\n \r\n Play(key); //Passing the value to Play function();\r\n Ani(key);\r\n }", "function keyPressed(){\n\tgameManager.keyPressed();\n}", "function handlerUserInput() {\n\tdocument.addEventListener('keyup', function(event) {\n\t\tconsole.log(event);\n\t\tconsole.log(event.key); //k\n\t});\n}", "function handleKeyEvent(event) {\n if (isEventModifier(event)) {\n return;\n }\n\n if (ignoreInputEvents && isInputEvent(event)) {\n return;\n }\n\n const eventName = getKeyEventName(event);\n const listeners = __subscriptions[eventName.toLowerCase()] || [];\n\n if (typeof __monitor === 'function') {\n const matched = listeners.length > 0;\n __monitor(eventName, matched, event);\n }\n\n if (listeners.length) {\n event.preventDefault();\n }\n\n // flag to tell if execution should continue;\n let propagate = true;\n //\n for (let i = listeners.length - 1; i >= 0; i--) {\n if (listeners[i]) {\n propagate = listeners[i](event);\n }\n if (propagate === false) {\n break;\n }\n }\n // listeners.map(listener => listener());\n }", "function keyup(evt) {\r\n // Get the key code\r\n var keyCode = (evt.keyCode)? evt.keyCode : evt.getKeyCode();\r\n\r\n switch (keyCode) {\r\n case \"A\".charCodeAt(0):\r\n if (player.motion == motionType.LEFT) player.motion = motionType.NONE;\r\n break;\r\n\r\n case \"D\".charCodeAt(0):\r\n if (player.motion == motionType.RIGHT) player.motion = motionType.NONE;\r\n break;\r\n }\r\n}", "function keyup(evt) {\r\n // Get the key code\r\n var keyCode = (evt.keyCode)? evt.keyCode : evt.getKeyCode();\r\n\r\n switch (keyCode) {\r\n case \"A\".charCodeAt(0):\r\n if (player.motion == motionType.LEFT) player.motion = motionType.NONE;\r\n break;\r\n\r\n case \"D\".charCodeAt(0):\r\n if (player.motion == motionType.RIGHT) player.motion = motionType.NONE;\r\n break;\r\n }\r\n}", "function processKeys(key) {\n var pressedKey = key.keyCode? key.keyCode : key.charCode;\n // TODO: make this work on IE?\n// alert (pressedKey);\n if (32 === pressedKey) {\n togglePause();\n } else if (37 === pressedKey) {\n userLeft();\n } else if (39 === pressedKey) {\n userRight();\n } else if (38 === pressedKey) {\n userUp();\n } else if (40 === pressedKey) {\n userDown();\n } else if (13 === pressedKey) {\n dismissDialog();\n }\n }", "function keyPress(e) {\n var x = e || window.event;\n var key = x.keyCode || x.which;\n if (key == 13 || key == 3) {\n //runs this function when enter is pressed\n newEntry();\n }\n if (key == 38) {\n console.log('hi');\n //document.getElementById(\"chatbox\").value = lastUserMessage;\n }\n }", "function handleKeyDown(e) {\n\t\t//cross browser issues exist\n\t\tif(!e){ var e = window.event; }\n\t\tswitch(e.keyCode) {\n\t\t\tcase KEYCODE_SPACE:\tshootHeld = true; return false;\n\t\t\tcase KEYCODE_A:\n\t\t\tcase KEYCODE_LEFT:\tlfHeld = true; return false;\n\t\t\tcase KEYCODE_D:\n\t\t\tcase KEYCODE_RIGHT: rtHeld = true; return false;\n\t\t\tcase KEYCODE_W:\n\t\t\tcase KEYCODE_UP:\tfwdHeld = true; return false;\n\t\t\tcase KEYCODE_ENTER:\t if(canvas.onclick == handleClick){ handleClick(); }return false;\n\t\t}\n\t}", "function keydown(evt) {\n var keyCode = (evt.keyCode)? evt.keyCode : evt.getKeyCode();\n\n switch (keyCode) {\n case \"N\".charCodeAt(0):\n player.motion = motionType.LEFT;\n break;\n\n case \"M\".charCodeAt(0):\n player.motion = motionType.RIGHT;\n break;\n\t\t\t\n\n // Add your code here\n\t\t\n\t\t\t\n case \"Z\".charCodeAt(0):\n if (player.isOnPlatform()) {\n player.verticalSpeed = JUMP_SPEED;\n }\n break;\n\t\t\n\t\tcase 32: // spacebar = shoot\n\t\t\tif (canShoot) shootBullet();\n\t\t\tbreak;\n }\n}", "function onKeyPress(evt) {\n // Keys with modifiers are ignored\n if (evt.altKey || evt.ctrlKey || evt.metaKey) {\n return;\n }\n\n switch (evt.charCode || evt.keyCode) {\n case 43: // +\n zoom(1, window.innerWidth / 2, window.innerHeight / 2);\n break;\n case 45: // -\n zoom(-1, window.innerWidth / 2, window.innerHeight / 2);\n break;\n case 61: // =\n player.moveToCurrent();\n break;\n case 70: // F\n case 102: // f\n player.showAll();\n break;\n case 84: // T\n case 116: // t\n toggleFrameList();\n break;\n case 82: // R\n rotate(-1);\n break;\n case 114: // r\n rotate(1);\n break;\n }\n\n evt.stopPropagation();\n evt.preventDefault();\n }", "function handleKey(event) {\r\n\r\n\tvar i = gGamerPos.i;\r\n\tvar j = gGamerPos.j;\r\n\tconsole.log('ev', event);\r\n\r\n\tswitch (event.key) {\r\n\t\tcase 'ArrowLeft':\r\n\t\t\tif (i === 5 && j === 0) moveTo(5, 9)\r\n\t\t\telse moveTo(i, j - 1);\r\n\t\t\tbreak;\r\n\t\tcase 'ArrowRight':\r\n\t\t\tif (i === 5 && j === 11) moveTo(5, 0)\r\n\t\t\telse moveTo(i, j + 1);\r\n\t\t\tbreak;\r\n\t\tcase 'ArrowUp':\r\n\t\t\tif (i === 0 && j === 5) moveTo(9, 5)\r\n\t\t\telse moveTo(i - 1, j);\r\n\t\t\tbreak;\r\n\t\tcase 'ArrowDown':\r\n\t\t\tif (i === 9 && j === 5) moveTo(0, 5)\r\n\t\t\telse moveTo(i + 1, j);\r\n\t\t\tbreak;\r\n\t}\r\n\r\n}", "function keysHandle(e) {\n e.preventDefault;\n switch (e.keyCode) {\n case 83:\n if (!gameStarted) {\n displayCards();\n }\n break;\n case 82:\n if (gameStarted) {\n displayCards();\n }\n break;\n case 32:\n if (gameStarted) {\n if (pausePressed) {\n e.preventDefault();\n startTimer();\n pausePressed = false;\n } else {\n e.preventDefault();\n pause();\n pausePressed = true;\n }\n }\n break;\n }\n}", "function _keypress(e) {\n\t\tif (data.gallery.active && (e.keyCode == 37 || e.keyCode == 39)) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\t\n\t\t\tdata.$arrows.filter((e.keyCode == 37) ? \".previous\" : \".next\").trigger(\"click\");\n\t\t} else if (e.keyCode == 27) {\n\t\t\tdata.$boxer.find(\".boxer-close\").trigger(\"click\");\n\t\t}\n\t}", "handleInput(key){\n switch (key) {\n case 'left':\n this.x -= this.speed + 50; \n break;\n case 'up':\n this.y -= this.speed + 40; \n break;\n case 'right':\n this.x += this.speed + 50;\n break;\n case 'down':\n this.y += this.speed + 40;\n break;\n }\n }" ]
[ "0.7767834", "0.765871", "0.758574", "0.74911857", "0.741585", "0.7402115", "0.7374124", "0.737354", "0.73173136", "0.72986954", "0.7289434", "0.7274268", "0.7264864", "0.72491187", "0.72488683", "0.7228675", "0.7217789", "0.7216279", "0.7157265", "0.71438694", "0.71438676", "0.7134785", "0.712706", "0.7110779", "0.70695454", "0.7067178", "0.70669395", "0.7062987", "0.70587474", "0.70423096", "0.7031838", "0.7031549", "0.70293766", "0.6986781", "0.6982183", "0.696029", "0.69530886", "0.6940413", "0.6938857", "0.69366395", "0.69295424", "0.6929136", "0.6916569", "0.6896396", "0.68941325", "0.6893118", "0.6892102", "0.68663687", "0.6863035", "0.68607587", "0.6859004", "0.6846162", "0.6842958", "0.68403196", "0.6839352", "0.68244034", "0.6811399", "0.68090755", "0.6802174", "0.6797437", "0.6789361", "0.6783331", "0.6781955", "0.6779752", "0.67748827", "0.67722505", "0.67722505", "0.6768603", "0.6764213", "0.6763551", "0.676182", "0.6760336", "0.6750504", "0.6750504", "0.6747182", "0.67461866", "0.6745518", "0.6736278", "0.67358255", "0.673377", "0.67251784", "0.6724226", "0.67113817", "0.6709387", "0.67075956", "0.6705128", "0.670475", "0.67038643", "0.67025256", "0.6696131", "0.6691924", "0.6691924", "0.66916806", "0.66885024", "0.66878664", "0.66865957", "0.6681279", "0.6680106", "0.66768056", "0.6674199", "0.66679996" ]
0.0
-1
A mouse down can be a single click, double click, triple click, start of selection drag, start of text drag, new cursor (ctrlclick), rectangle drag (altdrag), or xwin middleclickpaste. Or it might be a click on something we should not interfere with, such as a scrollbar or widget.
function onMouseDown(e) { var cm = this, display = cm.display; if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return } display.input.ensurePolled(); display.shift = e.shiftKey; if (eventInWidget(display, e)) { if (!webkit) { // Briefly turn off draggability, to allow widgets to do // normal dragging things. display.scroller.draggable = false; setTimeout(function () { return display.scroller.draggable = true; }, 100); } return } if (clickInGutter(cm, e)) { return } var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : "single"; window.focus(); // #3261: make sure, that we're not starting a second selection if (button == 1 && cm.state.selectingText) { cm.state.selectingText(e); } if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return } if (button == 1) { if (pos) { leftButtonDown(cm, pos, repeat, e); } else if (e_target(e) == display.scroller) { e_preventDefault(e); } } else if (button == 2) { if (pos) { extendSelection(cm.doc, pos); } setTimeout(function () { return display.input.focus(); }, 20); } else if (button == 3) { if (captureRightClick) { cm.display.input.onContextMenu(e); } else { delayBlurEvent(cm); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n win(cm).focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { cm.display.input.onContextMenu(e); }\n else { delayBlurEvent(cm); }\n }\n }", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n win(cm).focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { cm.display.input.onContextMenu(e); }\n else { delayBlurEvent(cm); }\n }\n }", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this,\n display = cm.display;\n\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) {\n return;\n }\n\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () {\n return display.scroller.draggable = true;\n }, 100);\n }\n\n return;\n }\n\n if (clickInGutter(cm, e)) {\n return;\n }\n\n var pos = posFromMouse(cm, e),\n button = e_button(e),\n repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus(); // #3261: make sure, that we're not starting a second selection\n\n if (button == 1 && cm.state.selectingText) {\n cm.state.selectingText(e);\n }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) {\n return;\n }\n\n if (button == 1) {\n if (pos) {\n leftButtonDown(cm, pos, repeat, e);\n } else if (e_target(e) == display.scroller) {\n e_preventDefault(e);\n }\n } else if (button == 2) {\n if (pos) {\n extendSelection(cm.doc, pos);\n }\n\n setTimeout(function () {\n return display.input.focus();\n }, 20);\n } else if (button == 3) {\n if (captureRightClick) {\n cm.display.input.onContextMenu(e);\n } else {\n delayBlurEvent(cm);\n }\n }\n }", "mouseDown(x, y, _isLeftButton) {}", "function onMouseDown(e) {\r\n var cm = this, display = cm.display;\r\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\r\n display.input.ensurePolled();\r\n display.shift = e.shiftKey;\r\n\r\n if (eventInWidget(display, e)) {\r\n if (!webkit) {\r\n // Briefly turn off draggability, to allow widgets to do\r\n // normal dragging things.\r\n display.scroller.draggable = false;\r\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\r\n }\r\n return\r\n }\r\n if (clickInGutter(cm, e)) { return }\r\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\r\n window.focus();\r\n\r\n // #3261: make sure, that we're not starting a second selection\r\n if (button == 1 && cm.state.selectingText)\r\n { cm.state.selectingText(e); }\r\n\r\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\r\n\r\n if (button == 1) {\r\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\r\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\r\n } else if (button == 2) {\r\n if (pos) { extendSelection(cm.doc, pos); }\r\n setTimeout(function () { return display.input.focus(); }, 20);\r\n } else if (button == 3) {\r\n if (captureRightClick) { onContextMenu(cm, e); }\r\n else { delayBlurEvent(cm); }\r\n }\r\n}", "function onMouseDown(e) {\n\t\t var cm = this, display = cm.display;\n\t\t if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n\t\t display.input.ensurePolled();\n\t\t display.shift = e.shiftKey;\n\n\t\t if (eventInWidget(display, e)) {\n\t\t if (!webkit) {\n\t\t // Briefly turn off draggability, to allow widgets to do\n\t\t // normal dragging things.\n\t\t display.scroller.draggable = false;\n\t\t setTimeout(function () { return display.scroller.draggable = true; }, 100);\n\t\t }\n\t\t return\n\t\t }\n\t\t if (clickInGutter(cm, e)) { return }\n\t\t var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n\t\t win(cm).focus();\n\n\t\t // #3261: make sure, that we're not starting a second selection\n\t\t if (button == 1 && cm.state.selectingText)\n\t\t { cm.state.selectingText(e); }\n\n\t\t if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n\t\t if (button == 1) {\n\t\t if (pos) { leftButtonDown(cm, pos, repeat, e); }\n\t\t else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n\t\t } else if (button == 2) {\n\t\t if (pos) { extendSelection(cm.doc, pos); }\n\t\t setTimeout(function () { return display.input.focus(); }, 20);\n\t\t } else if (button == 3) {\n\t\t if (captureRightClick) { cm.display.input.onContextMenu(e); }\n\t\t else { delayBlurEvent(cm); }\n\t\t }\n\t\t }", "function down(evt){mouseDown(getMousePos(evt));}", "function down(evt){mouseDown(getMousePos(evt));}", "function mouseDown(e)\n{\n\tmouseClickDown = true;\n\tmouseX = e.clientX;\n\tmouseY = e.clientY;\n}", "function mousedown(e){\n\t\t// console.log(e);\n\t\tmouseIsDown = true;\n\t}", "function mousedown() {\n \"use strict\";\n mouseclicked = !mouseclicked;\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n var button = e_button(e);\n if (button == 3 && captureRightClick ? contextMenuInGutter(cm, e) : clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n var button = e_button(e);\n if (button == 3 && captureRightClick ? contextMenuInGutter(cm, e) : clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function mousedown(e) {\n // Ignore non-primary buttons\n if (!isPrimaryButton(e)) { return; }\n\n // Ignore form and interactive elements\n if (isIgnoreTag(e)) { return; }\n\n on(document, mouseevents.move, mousemove, e);\n on(document, mouseevents.cancel, mouseend, e);\n }", "function mousedown(e) {\n // Ignore non-primary buttons\n if (!isPrimaryButton(e)) { return; }\n\n // Ignore form and interactive elements\n if (isIgnoreTag(e)) { return; }\n\n on(document, mouseevents.move, mousemove, e);\n on(document, mouseevents.cancel, mouseend, e);\n }", "function onMouseDown(e) {\n\t var cm = this, display = cm.display;\n\t if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) return;\n\t display.shift = e.shiftKey;\n\t\n\t if (eventInWidget(display, e)) {\n\t if (!webkit) {\n\t // Briefly turn off draggability, to allow widgets to do\n\t // normal dragging things.\n\t display.scroller.draggable = false;\n\t setTimeout(function(){display.scroller.draggable = true;}, 100);\n\t }\n\t return;\n\t }\n\t if (clickInGutter(cm, e)) return;\n\t var start = posFromMouse(cm, e);\n\t window.focus();\n\t\n\t switch (e_button(e)) {\n\t case 1:\n\t // #3261: make sure, that we're not starting a second selection\n\t if (cm.state.selectingText)\n\t cm.state.selectingText(e);\n\t else if (start)\n\t leftButtonDown(cm, e, start);\n\t else if (e_target(e) == display.scroller)\n\t e_preventDefault(e);\n\t break;\n\t case 2:\n\t if (webkit) cm.state.lastMiddleDown = +new Date;\n\t if (start) extendSelection(cm.doc, start);\n\t setTimeout(function() {display.input.focus();}, 20);\n\t e_preventDefault(e);\n\t break;\n\t case 3:\n\t if (captureRightClick) onContextMenu(cm, e);\n\t else delayBlurEvent(cm);\n\t break;\n\t }\n\t }", "function _corexitOnMouseDown(event) {\r\n\t// Update the options. Need to do it here, because in mouse up it's too late\r\n\t//chrome.extension.sendRequest({command : \"getOptions\"}, getOptions);\r\n\t// Mark if the source click is inside a text box\r\n\tif (!event.target.nodeName)\r\n\t\tgClickInTextBox = false;\r\n\telse\r\n\t\tgClickInTextBox = (event.target.nodeName == \"INPUT\" || event.target.nodeName == \"TEXTAREA\");\r\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) return;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n // #3261: make sure, that we're not starting a second selection\n if (cm.state.selectingText)\n cm.state.selectingText(e);\n else if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(function() {display.input.focus();}, 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n else delayBlurEvent(cm);\n break;\n }\n }", "function onMouseDown(e) {\n\t\t var cm = this, display = cm.display;\n\t\t if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) return;\n\t\t display.shift = e.shiftKey;\n\t\t\n\t\t if (eventInWidget(display, e)) {\n\t\t if (!webkit) {\n\t\t // Briefly turn off draggability, to allow widgets to do\n\t\t // normal dragging things.\n\t\t display.scroller.draggable = false;\n\t\t setTimeout(function(){display.scroller.draggable = true;}, 100);\n\t\t }\n\t\t return;\n\t\t }\n\t\t if (clickInGutter(cm, e)) return;\n\t\t var start = posFromMouse(cm, e);\n\t\t window.focus();\n\t\t\n\t\t switch (e_button(e)) {\n\t\t case 1:\n\t\t // #3261: make sure, that we're not starting a second selection\n\t\t if (cm.state.selectingText)\n\t\t cm.state.selectingText(e);\n\t\t else if (start)\n\t\t leftButtonDown(cm, e, start);\n\t\t else if (e_target(e) == display.scroller)\n\t\t e_preventDefault(e);\n\t\t break;\n\t\t case 2:\n\t\t if (webkit) cm.state.lastMiddleDown = +new Date;\n\t\t if (start) extendSelection(cm.doc, start);\n\t\t setTimeout(function() {display.input.focus();}, 20);\n\t\t e_preventDefault(e);\n\t\t break;\n\t\t case 3:\n\t\t if (captureRightClick) onContextMenu(cm, e);\n\t\t else delayBlurEvent(cm);\n\t\t break;\n\t\t }\n\t\t }", "function mouseDown(x, y, button) {\r\n\tif (button == 0 || button == 2) {\t// If the user clicks the right or left mouse button...\r\n\t\tmouseClick = true;\r\n\t}\r\n\t//*** Your Code Here\r\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled()\n display.shift = e.shiftKey\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false\n setTimeout(function () { return display.scroller.draggable = true; }, 100)\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var start = posFromMouse(cm, e)\n window.focus()\n\n switch (e_button(e)) {\n case 1:\n // #3261: make sure, that we're not starting a second selection\n if (cm.state.selectingText)\n { cm.state.selectingText(e) }\n else if (start)\n { leftButtonDown(cm, e, start) }\n else if (e_target(e) == display.scroller)\n { e_preventDefault(e) }\n break\n case 2:\n if (webkit) { cm.state.lastMiddleDown = +new Date }\n if (start) { extendSelection(cm.doc, start) }\n setTimeout(function () { return display.input.focus(); }, 20)\n e_preventDefault(e)\n break\n case 3:\n if (captureRightClick) { onContextMenu(cm, e) }\n else { delayBlurEvent(cm) }\n break\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled()\n display.shift = e.shiftKey\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false\n setTimeout(function () { return display.scroller.draggable = true; }, 100)\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var start = posFromMouse(cm, e)\n window.focus()\n\n switch (e_button(e)) {\n case 1:\n // #3261: make sure, that we're not starting a second selection\n if (cm.state.selectingText)\n { cm.state.selectingText(e) }\n else if (start)\n { leftButtonDown(cm, e, start) }\n else if (e_target(e) == display.scroller)\n { e_preventDefault(e) }\n break\n case 2:\n if (webkit) { cm.state.lastMiddleDown = +new Date }\n if (start) { extendSelection(cm.doc, start) }\n setTimeout(function () { return display.input.focus(); }, 20)\n e_preventDefault(e)\n break\n case 3:\n if (captureRightClick) { onContextMenu(cm, e) }\n else { delayBlurEvent(cm) }\n break\n }\n}", "function mouseDown(e) {\n mousePress(e.button, true);\n}", "function mousedown(e){\n\t\t// Ignore non-primary buttons\n\t\tif (!isPrimaryButton(e)) { return; }\n\n\t\t// Ignore form and interactive elements\n\t\tif (isIgnoreTag(e)) { return; }\n\n\t\ton(document, mouseevents.move, mousemove, e);\n\t\ton(document, mouseevents.cancel, mouseend, e);\n\t}", "function onMouseDown(e) {\n\t var cm = this, display = cm.display;\n\t if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) return;\n\t display.shift = e.shiftKey;\n\n\t if (eventInWidget(display, e)) {\n\t if (!webkit) {\n\t // Briefly turn off draggability, to allow widgets to do\n\t // normal dragging things.\n\t display.scroller.draggable = false;\n\t setTimeout(function(){display.scroller.draggable = true;}, 100);\n\t }\n\t return;\n\t }\n\t if (clickInGutter(cm, e)) return;\n\t var start = posFromMouse(cm, e);\n\t window.focus();\n\n\t switch (e_button(e)) {\n\t case 1:\n\t // #3261: make sure, that we're not starting a second selection\n\t if (cm.state.selectingText)\n\t cm.state.selectingText(e);\n\t else if (start)\n\t leftButtonDown(cm, e, start);\n\t else if (e_target(e) == display.scroller)\n\t e_preventDefault(e);\n\t break;\n\t case 2:\n\t if (webkit) cm.state.lastMiddleDown = +new Date;\n\t if (start) extendSelection(cm.doc, start);\n\t setTimeout(function() {display.input.focus();}, 20);\n\t e_preventDefault(e);\n\t break;\n\t case 3:\n\t if (captureRightClick) onContextMenu(cm, e);\n\t else delayBlurEvent(cm);\n\t break;\n\t }\n\t }", "function onMouseDown(e) {\n\t var cm = this, display = cm.display;\n\t if (display.activeTouch && display.input.supportsTouch() || signalDOMEvent(cm, e)) return;\n\t display.shift = e.shiftKey;\n\n\t if (eventInWidget(display, e)) {\n\t if (!webkit) {\n\t // Briefly turn off draggability, to allow widgets to do\n\t // normal dragging things.\n\t display.scroller.draggable = false;\n\t setTimeout(function(){display.scroller.draggable = true;}, 100);\n\t }\n\t return;\n\t }\n\t if (clickInGutter(cm, e)) return;\n\t var start = posFromMouse(cm, e);\n\t window.focus();\n\n\t switch (e_button(e)) {\n\t case 1:\n\t // #3261: make sure, that we're not starting a second selection\n\t if (cm.state.selectingText)\n\t cm.state.selectingText(e);\n\t else if (start)\n\t leftButtonDown(cm, e, start);\n\t else if (e_target(e) == display.scroller)\n\t e_preventDefault(e);\n\t break;\n\t case 2:\n\t if (webkit) cm.state.lastMiddleDown = +new Date;\n\t if (start) extendSelection(cm.doc, start);\n\t setTimeout(function() {display.input.focus();}, 20);\n\t e_preventDefault(e);\n\t break;\n\t case 3:\n\t if (captureRightClick) onContextMenu(cm, e);\n\t else delayBlurEvent(cm);\n\t break;\n\t }\n\t }", "onMouseDown(event) {\n this._mouseDownTimeStamp = event.timeStamp;\n // If we have selection, we want the context menu on right click even if the\n // terminal is in mouse mode.\n if (event.button === 2 && this.hasSelection) {\n return;\n }\n // Only action the primary button\n if (event.button !== 0) {\n return;\n }\n // Allow selection when using a specific modifier key, even when disabled\n if (!this._enabled) {\n if (!this.shouldForceSelection(event)) {\n return;\n }\n // Don't send the mouse down event to the current process, we want to select\n event.stopPropagation();\n }\n // Tell the browser not to start a regular selection\n event.preventDefault();\n // Reset drag scroll state\n this._dragScrollAmount = 0;\n if (this._enabled && event.shiftKey) {\n this._onIncrementalClick(event);\n }\n else {\n if (event.detail === 1) {\n this._onSingleClick(event);\n }\n else if (event.detail === 2) {\n this._onDoubleClick(event);\n }\n else if (event.detail === 3) {\n this._onTripleClick(event);\n }\n }\n this._addMouseDownListeners();\n this.refresh(true);\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\r\n if (signalDOMEvent(this, e)) return;\r\n var cm = this, display = cm.display;\r\n display.shift = e.shiftKey;\r\n\r\n if (eventInWidget(display, e)) {\r\n if (!webkit) {\r\n // Briefly turn off draggability, to allow widgets to do\r\n // normal dragging things.\r\n display.scroller.draggable = false;\r\n setTimeout(function(){display.scroller.draggable = true;}, 100);\r\n }\r\n return;\r\n }\r\n if (clickInGutter(cm, e)) return;\r\n var start = posFromMouse(cm, e);\r\n window.focus();\r\n\r\n switch (e_button(e)) {\r\n case 1:\r\n if (start)\r\n leftButtonDown(cm, e, start);\r\n else if (e_target(e) == display.scroller)\r\n e_preventDefault(e);\r\n break;\r\n case 2:\r\n if (webkit) cm.state.lastMiddleDown = +new Date;\r\n if (start) extendSelection(cm.doc, start);\r\n setTimeout(bind(focusInput, cm), 20);\r\n e_preventDefault(e);\r\n break;\r\n case 3:\r\n if (captureRightClick) onContextMenu(cm, e);\r\n break;\r\n }\r\n }", "function on_down(event){\n \tif (mode =='EDIT'){\n //EDIT MODE\n \t\tmouseDown = true;\n \t\tonMouseDownPosition = [event.clientX, event.clientY];\n \t\tonMouseDownTheta = theta;\n \t\tonMouseDownPhi = phi;\n\n \t\tif (cursorMode =='edit'){\n handleCursorEdit();\n \t\t} else if (cursorMode == 'pan'){\n handleCursorPan();\n \t\t}\n \t} else{\n //PLAY MODE\n \t\t domElement.style.cursor = \"default\";\n \t}\n window.addEventListener( \"mousemove\", on_move );\n }", "mouseDown(pt) {}", "mouseDown(pt) {}", "function mousedown(e){\n\t\tvar data;\n\n\t\tif (!isLeftButton(e)) { return; }\n\n\t\tdata = {\n\t\t\ttarget: e.target,\n\t\t\tstartX: e.pageX,\n\t\t\tstartY: e.pageY,\n\t\t\ttimeStamp: e.timeStamp\n\t\t};\n\n\t\tadd(document, mouseevents.move, mousemove, data);\n\t\tadd(document, mouseevents.cancel, mouseend, data);\n\t}", "function mousedown(e){\n\t\tvar data;\n\n\t\tif (!isLeftButton(e)) { return; }\n\n\t\tdata = {\n\t\t\ttarget: e.target,\n\t\t\tstartX: e.pageX,\n\t\t\tstartY: e.pageY,\n\t\t\ttimeStamp: e.timeStamp\n\t\t};\n\n\t\tadd(document, mouseevents.move, mousemove, data);\n\t\tadd(document, mouseevents.cancel, mouseend, data);\n\t}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (display.activeTouch && display.input.supportsTouch() || signalDOMEvent(cm, e)) return;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(function() {display.input.focus();}, 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n else delayBlurEvent(cm);\n break;\n }\n }", "function Edit_MouseDown(event)\n{\n\t//interactions blocked?\n\tif (__SIMULATOR.UserInteractionBlocked())\n\t{\n\t\t//block the event (will forward to designer, if possible)\n\t\tBrowser_BlockEvent(event);\n\t}\n\telse\n\t{\n\t\t//get event type\n\t\tvar evtType = Browser_GetMouseDownEventType(event);\n\t\t//valid?\n\t\tif (evtType)\n\t\t{\n\t\t\t//in touch browser? event was touch start?\n\t\t\tif (__BROWSER_IS_TOUCH_ENABLED && evtType == __BROWSER_EVENT_MOUSEDOWN && Brower_TouchIsDoubleClick(event))\n\t\t\t{\n\t\t\t\t//convert touchstarts to double clicks\n\t\t\t\tevtType = __BROWSER_EVENT_DOUBLECLICK;\n\t\t\t}\n\t\t\t//get the html\n\t\t\tvar theHTML = Get_HTMLObject(Browser_GetEventSourceElement(event));\n\t\t\t//update creation point\n\t\t\tPopupMenu_UpdateCreationPoint(event);\n\t\t\t//block the event unless its left click, we want to keep the matchcode\n\t\t\tevent.cancelBubble = true;\n\t\t\t//has propagation?\n\t\t\tif (event.stopPropagation)\n\t\t\t{\n\t\t\t\t//stop it as well\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\t//matchcode not showing?\n\t\t\tif (!theHTML.STATES_MATCHCODE)\n\t\t\t{\n\t\t\t\t//destroy menus\n\t\t\t\tPopups_TriggerCloseAll();\n\t\t\t}\n\t\t\t//check event\n\t\t\tswitch (evtType)\n\t\t\t{\n\t\t\t\tcase __BROWSER_EVENT_DOUBLECLICK:\n\t\t\t\t\t//trigger event\n\t\t\t\t\t__SIMULATOR.ProcessEvent(new Event_Event(theHTML.InterpreterObject, __NEMESIS_EVENT_DBLCLICK, theHTML.InterpreterObject.GetData()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase __BROWSER_EVENT_MOUSERIGHT:\n\t\t\t\t\t//has prevent default?\n\t\t\t\t\tif (event.preventDefault)\n\t\t\t\t\t{\n\t\t\t\t\t\t//trigger it\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\tevent.returnValue = false;\n\t\t\t\t\t//trigger an event\n\t\t\t\t\t__SIMULATOR.ProcessEvent(new Event_Event(theHTML.InterpreterObject, __NEMESIS_EVENT_RIGHTCLICK, []));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}", "doubleClick(x, y, _isLeftButton) {}", "function down(e){\n\tif((document.layers && e.which!=1) || (document.all && event.button!=1)) return true; // Enables the right mousebutton\n\tgetMouse(e);\n\tstartY = (mouseY - dragT);\n\t\n\t// If click on up-arrow\n\tif(mouseX >= upL && (mouseX <= (upL + upW)) && mouseY >= upT && (mouseY <= (upT + upH)))\n\t{\n\t\tclickUp = true;\n\t\treturn scrollUp();\n\t}\t\n\t// Else if click on down-arrow\n\telse if(mouseX >= downL && (mouseX <= (downL + downW)) && mouseY >= downT && (mouseY <= (downT + downH)))\n\t{\n\t\tclickDown = true;\n\t\treturn scrollDown();\n\t}\n\t// Else if click on scrollbar\n\telse if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= dragT && (mouseY <= (dragT + dragH)))\n\t{\n\t\tclickDrag = true;\n\t\treturn false;\n\t}\n\telse if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= rulerT && (mouseY <= (rulerT + scrollH))){\n\t\t// If click above drag\n\t\tif(mouseY < dragT){\n\t\t\tclickAbove = true;\n\t\t\tclickUp = true;\n\t\t\treturn scrollUp();\n\t\t}\n\t\t// Else click below drag\n\t\telse{\n\t\t\tclickBelow = true;\n\t\t\tclickDown = true;\n\t\t\treturn scrollDown();\n\t\t}\n\t}\n\t// If no scrolling is to take place\n\telse{\n\t\t//alert('mouse donw do not process by the scroll bar.');\n\t\treturn true;\n\t}\n}", "mouseDown(e) {\n this._modifiers(e);\n const _leftClick = Event.isLeftClick(e);\n this.status.button1 = _leftClick;\n this.status.button2 = !_leftClick;\n return this.handleMouseDown(e);\n }", "mouseDown(e) {\n this._modifiers(e);\n const _leftClick = Event.isLeftClick(e);\n this.status.button1 = _leftClick;\n this.status.button2 = !_leftClick;\n return this.handleMouseDown(e);\n }", "function mouse_down_handler(e) {\n e.preventDefault(); //Prevents the default action from happening (e.g. navigation)\n mouse.down = true; //Sets the mouse object's \"down\" value to true\n }", "function handleMouseDown()\r\n{\r\n _mouse_down = true;\r\n}", "function mouseDown(event) {\r\n this.hasMouseDown = true;\r\n }", "function mouseUpEvent(e) {\n\tswitch (e.button) {\n\t\tcase 0:\n\t\t\tleft_click_drag_flag = false;\t\t\t\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tright_click_drag_flag = false;\n\t\t\tbreak;\n\t}\n}", "function down(e){\r\n\tif((document.layers && e.which!=1) || (document.all && event.button!=1)) return true; // Enables the right mousebutton\r\n\tgetMouse(e);\r\n\tstartY = (mouseY - dragT);\r\n\t\r\n\t// If click on up-arrow\r\n\tif(mouseX >= upL && (mouseX <= (upL + upW)) && mouseY >= upT && (mouseY <= (upT + upH))){\r\n\t\tclickUp = true;\r\n\t\treturn scrollUp();\r\n\t}\t\r\n\t// Else if click on down-arrow\r\n\telse if(mouseX >= downL && (mouseX <= (downL + downW)) && mouseY >= downT && (mouseY <= (downT + downH))){\r\n\t\tclickDown = true;\r\n\t\treturn scrollDown();\r\n\t}\r\n\t// Else if click on scrollbar\r\n\telse if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= dragT && (mouseY <= (dragT + dragH))){\r\n\t\tclickDrag = true;\r\n\t\treturn false;\r\n\t}\r\n\telse if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= rulerT && (mouseY <= (rulerT + scrollH))){\r\n\t\t// If click above drag\r\n\t\tif(mouseY < dragT){\r\n\t\t\tclickAbove = true;\r\n\t\t\tclickUp = true;\r\n\t\t\treturn scrollUp();\r\n\t\t}\r\n\t\t// Else click below drag\r\n\t\telse{\r\n\t\t\tclickBelow = true;\r\n\t\t\tclickDown = true;\r\n\t\t\treturn scrollDown();\r\n\t\t}\r\n\t}\r\n\t// If no scrolling is to take place\r\n\telse{\r\n\t\treturn true;\r\n\t}\r\n}", "function mouseDownEvent(eb){\r\n dragging = eb\r\n}", "function onMouseDown(event) { }", "onMouseDown(e) {}", "click(e) {\n this._modifiers(e);\n const _leftClick = Event.isLeftClick(e);\n this.status.button1 = _leftClick;\n this.status.button2 = !_leftClick;\n const [xd, yd] = this.status.mouseDownDiff;\n if (xd > 20 || yd > 20) {\n return true;\n }\n else {\n return this.handleClick(e);\n }\n }", "click(e) {\n this._modifiers(e);\n const _leftClick = Event.isLeftClick(e);\n this.status.button1 = _leftClick;\n this.status.button2 = !_leftClick;\n const [xd, yd] = this.status.mouseDownDiff;\n if (xd > 20 || yd > 20) {\n return true;\n }\n else {\n return this.handleClick(e);\n }\n }", "function onMouseDown(event) {\n if (scope.enabled === false) return;\n event.preventDefault();\n\n switch (event.button) {\n case scope.mouseButtons.ORBIT:\n if (scope.enableRotate === false) return;\n handleMouseDownRotate(event);\n state = STATE.ROTATE;\n break;\n\n case scope.mouseButtons.ZOOM:\n if (scope.enableZoom === false) return;\n handleMouseDownDolly(event);\n state = STATE.DOLLY;\n break;\n\n case scope.mouseButtons.PAN:\n if (scope.enablePan === false) return;\n handleMouseDownPan(event);\n state = STATE.PAN;\n break;\n }\n\n if (state !== STATE.NONE) {\n document.addEventListener('mousemove', onMouseMove, false);\n document.addEventListener('mouseup', onMouseUp, false);\n scope.dispatchEvent(startEvent);\n }\n }", "function onMouseDown(event) {\n if (scope.enabled === false) return;\n event.preventDefault();\n\n switch (event.button) {\n case scope.mouseButtons.ORBIT:\n if (scope.enableRotate === false) return;\n handleMouseDownRotate(event);\n state = STATE.ROTATE;\n break;\n\n case scope.mouseButtons.ZOOM:\n if (scope.enableZoom === false) return;\n handleMouseDownDolly(event);\n state = STATE.DOLLY;\n break;\n\n case scope.mouseButtons.PAN:\n if (scope.enablePan === false) return;\n handleMouseDownPan(event);\n state = STATE.PAN;\n break;\n }\n\n if (state !== STATE.NONE) {\n document.addEventListener('mousemove', onMouseMove, false);\n document.addEventListener('mouseup', onMouseUp, false);\n scope.dispatchEvent(startEvent);\n }\n }", "function isButtonDown(mouseEvent) {\n return (typeof mouseEvent.buttons === 'undefined' ? mouseEvent.which : mouseEvent.buttons);\n }", "function mouseDown(mousePos) {\n\t}", "function mouseDown(mousePos) {\n\t}", "function onMouseDown(evt) {\n if (evt.button === DRAG_BUTTON) {\n dragButtonIsDown = true;\n dragging = false;\n dragClientX = evt.clientX;\n dragClientY = evt.clientY;\n } else if (evt.button === TOC_BUTTON) {\n toggleFrameList();\n }\n evt.stopPropagation();\n evt.preventDefault();\n }", "function onMouseDown(event) {\n\n if (scope.enabled === false) return\n\n event.preventDefault()\n\n switch (event.button) {\n\n case scope.mouseButtons.ORBIT:\n\n if (scope.enableRotate === false) return\n\n handleMouseDownRotate(event)\n\n state = STATE.ROTATE\n\n break\n\n case scope.mouseButtons.ZOOM:\n\n if (scope.enableZoom === false) return\n\n handleMouseDownDolly(event)\n\n state = STATE.DOLLY\n\n break\n\n case scope.mouseButtons.PAN:\n\n if (scope.enablePan === false) return\n\n handleMouseDownPan(event)\n\n state = STATE.PAN\n\n break\n\n }\n\n if (state !== STATE.NONE) {\n\n document.addEventListener('mousemove', onMouseMove, false)\n document.addEventListener('mouseup', onMouseUp, false)\n\n scope.dispatchEvent(startEvent)\n\n }\n\n }", "function mouseReleased() {\r\n mouseIsDown = false;\r\n}", "function mouseDown() {\n console.log(\"Mouse Down\");\n mouseDownPress = true;\n}", "_evtMousedown(event) {\n if (this.isHidden || !this._editor) {\n return;\n }\n if (Private.nonstandardClick(event)) {\n this.reset();\n return;\n }\n let target = event.target;\n while (target !== document.documentElement) {\n // If the user has made a selection, emit its value and reset the widget.\n if (target.classList.contains(ITEM_CLASS)) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n this._selected.emit(target.getAttribute('data-value'));\n this.reset();\n return;\n }\n // If the mouse event happened anywhere else in the widget, bail.\n if (target === this.node) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n return;\n }\n target = target.parentElement;\n }\n this.reset();\n }", "function onMouseDown(event) {\n if (scope.enabled == false) return;\n event.preventDefault();\n\n if (event.button === scope.mouseButtons.ORBIT) {\n if (scope.enableRotate === false) return;\n handleMouseDownRotate(event);\n state = STATE.ROTATE;\n } else if (event.button === scope.mouseButtons.ZOOM) {\n if (scope.enableZoom === false) return;\n handleMouseDownDolly(event);\n state = STATE.DOLLY;\n } else if (event.button === scope.mouseButtons.PAN) {\n if (scope.enablePan === false) return;\n handleMouseDownPan(event);\n state = STATE.PAN;\n }\n\n if (state !== STATE.NONE) {\n scope.domElement.addEventListener('mousemove', onMouseMove, false);\n scope.domElement.addEventListener('mouseup', onMouseUp, false);\n scope.dispatchEvent(startEvent);\n }\n }", "_evtDblClick(event) { }", "_MouseDown(x, y){\n this.mousedown = true;\n this.originX = x;\n this.originY = y;\n }", "function onMouseDown(event) {\n\n if (scope.enabled === false) return;\n\n event.preventDefault();\n\n if (event.button === scope.mouseButtons.ORBIT) {\n\n if (scope.enableRotate === false) return;\n\n handleMouseDownRotate(event);\n\n state = STATE.ROTATE;\n\n } else if (event.button === scope.mouseButtons.ZOOM) {\n\n if (scope.enableZoom === false) return;\n\n handleMouseDownDolly(event);\n\n state = STATE.DOLLY;\n\n } else if (event.button === scope.mouseButtons.PAN) {\n\n if (scope.enablePan === false) return;\n\n handleMouseDownPan(event);\n\n state = STATE.PAN;\n\n }\n\n if (state !== STATE.NONE) {\n\n document.addEventListener('mousemove', onMouseMove, false);\n document.addEventListener('mouseup', onMouseUp, false);\n\n scope.dispatchEvent(startEvent);\n\n }\n\n }", "function onMouseDown(event) {\n\n\t\tif (scope.enabled === false) return;\n\n\t\tevent.preventDefault();\n\n\t\tswitch (event.button) {\n\n\t\t\tcase scope.mouseButtons.ORBIT:\n\n\t\t\t\tif (scope.enableRotate === false) return;\n\n\t\t\t\thandleMouseDownRotate(event);\n\n\t\t\t\tstate = STATE.ROTATE;\n\n\t\t\t\tbreak;\n\n\t\t\tcase scope.mouseButtons.ZOOM:\n\n\t\t\t\tif (scope.enableZoom === false) return;\n\n\t\t\t\thandleMouseDownDolly(event);\n\n\t\t\t\tstate = STATE.DOLLY;\n\n\t\t\t\tbreak;\n\n\t\t\tcase scope.mouseButtons.PAN:\n\n\t\t\t\tif (scope.enablePan === false) return;\n\n\t\t\t\thandleMouseDownPan(event);\n\n\t\t\t\tstate = STATE.PAN;\n\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tif (state !== STATE.NONE) {\n\n\t\t\tdocument.addEventListener('mousemove', onMouseMove, false);\n\t\t\tdocument.addEventListener('mouseup', onMouseUp, false);\n\n\t\t\tscope.dispatchEvent(startEvent);\n\t\t}\n\t}", "function onMouseDown(event) {\n\n\t\tif (scope.enabled === false) return;\n\n\t\tevent.preventDefault();\n\n\t\tswitch (event.button) {\n\n\t\t\tcase scope.mouseButtons.ORBIT:\n\n\t\t\t\tif (scope.enableRotate === false) return;\n\n\t\t\t\thandleMouseDownRotate(event);\n\n\t\t\t\tstate = STATE.ROTATE;\n\n\t\t\t\tbreak;\n\n\t\t\tcase scope.mouseButtons.ZOOM:\n\n\t\t\t\tif (scope.enableZoom === false) return;\n\n\t\t\t\thandleMouseDownDolly(event);\n\n\t\t\t\tstate = STATE.DOLLY;\n\n\t\t\t\tbreak;\n\n\t\t\tcase scope.mouseButtons.PAN:\n\n\t\t\t\tif (scope.enablePan === false) return;\n\n\t\t\t\thandleMouseDownPan(event);\n\n\t\t\t\tstate = STATE.PAN;\n\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tif (state !== STATE.NONE) {\n\n\t\t\tdocument.addEventListener('mousemove', onMouseMove, false);\n\t\t\tdocument.addEventListener('mouseup', onMouseUp, false);\n\n\t\t\tscope.dispatchEvent(startEvent);\n\t\t}\n\t}", "on_mousedown(e, localX, localY) {\n\n }", "function mouseDownHandler(event){\n\t\t\tif(!event.isLeftClick()) return;\n\t\t\t\n\t\t\tsetSelectionPos(selection.first, event);\t\t\t\t\n\t\t\tif(selectionInterval != null){\n\t\t\t\tclearInterval(selectionInterval);\n\t\t\t}\n\t\t\tlastMousePos.pageX = null;\n\t\t\tselectionInterval = setInterval(updateSelection, 1000/options.selection.fps);\n\t\t\t\n\t\t\t$(document).observe('mouseup', mouseUpHandler);\n\t\t}", "function onMouseDown(event) {\n\n\t\tif (scope.enabled === false) return;\n\n\t\tevent.preventDefault();\n\n\t\tif (event.button === scope.mouseButtons.ORBIT) {\n\n\t\t\tif (scope.enableRotate === false) return;\n\n\t\t\thandleMouseDownRotate(event);\n\n\t\t\tstate = STATE.ROTATE;\n\n\t\t} else if (event.button === scope.mouseButtons.ZOOM) {\n\n\t\t\tif (scope.enableZoom === false) return;\n\n\t\t\thandleMouseDownDolly(event);\n\n\t\t\tstate = STATE.DOLLY;\n\n\t\t} else if (event.button === scope.mouseButtons.PAN) {\n\n\t\t\tif (scope.enablePan === false) return;\n\n\t\t\thandleMouseDownPan(event);\n\n\t\t\tstate = STATE.PAN;\n\n\t\t}\n\n\t\tif (state !== STATE.NONE) {\n\n\t\t\tdocument.addEventListener('mousemove', onMouseMove, false);\n\t\t\tdocument.addEventListener('mouseup', onMouseUp, false);\n\n\t\t\tscope.dispatchEvent(startEvent);\n\n\t\t}\n\n\t}", "function onMouseDown( event ) {\n\n if ( scope.enabled === false ) return;\n\n event.preventDefault();\n\n if ( event.button === scope.mouseButtons.ORBIT ) {\n\n if ( scope.enableRotate === false ) return;\n\n handleMouseDownRotate( event );\n\n state = STATE.ROTATE;\n\n } else if ( event.button === scope.mouseButtons.ZOOM ) {\n\n if ( scope.enableZoom === false ) return;\n\n handleMouseDownDolly( event );\n\n state = STATE.DOLLY;\n\n } else if ( event.button === scope.mouseButtons.PAN ) {\n\n if ( scope.enablePan === false ) return;\n\n handleMouseDownPan( event );\n\n state = STATE.PAN;\n\n }\n\n if ( state !== STATE.NONE ) {\n\n document.addEventListener( 'mousemove', onMouseMove, false );\n document.addEventListener( 'mouseup', onMouseUp, false );\n\n scope.dispatchEvent( startEvent );\n\n }\n\n }", "onMouseDown(event) {\n // only dragging with left mouse button\n if (event.button !== 0) {\n return;\n }\n\n this.onPointerDown(false, event);\n }", "onMouseDown(event) {\n // only dragging with left mouse button\n if (event.button !== 0) {\n return;\n }\n\n this.onPointerDown(false, event);\n }" ]
[ "0.7091867", "0.7091867", "0.7091618", "0.7091618", "0.7091618", "0.7091618", "0.7091618", "0.7091618", "0.7091618", "0.7091618", "0.7091618", "0.7091199", "0.70880425", "0.7081969", "0.70559573", "0.70553166", "0.70553166", "0.70397806", "0.7016578", "0.6998851", "0.6998704", "0.6998704", "0.69931597", "0.69931597", "0.6981561", "0.69815385", "0.6976722", "0.69638836", "0.69553256", "0.6943206", "0.6943206", "0.69264984", "0.6917875", "0.6915727", "0.6913056", "0.68890584", "0.6862717", "0.6862717", "0.6862717", "0.6862717", "0.6862717", "0.6862717", "0.6854968", "0.6836847", "0.6819179", "0.6819179", "0.68109965", "0.68109965", "0.6805002", "0.6780651", "0.6772419", "0.67616135", "0.6721166", "0.6721166", "0.6718917", "0.67144597", "0.667963", "0.6670407", "0.6647423", "0.66321355", "0.6590599", "0.6579685", "0.6578256", "0.6578256", "0.65505487", "0.6549185", "0.65268147", "0.6525926", "0.6525926", "0.6514738", "0.6511619", "0.6510915", "0.65084755", "0.64970875", "0.647148", "0.6463187", "0.6458526", "0.64550847", "0.64505553", "0.64505553", "0.6447504", "0.64337206", "0.6433518", "0.64326864", "0.64277685", "0.64277685" ]
0.7023528
27
Start a text drag. When it ends, see if any dragging actually happen, and treat as a click if it didn't.
function leftButtonStartDrag(cm, event, pos, behavior) { var display = cm.display, moved = false; var dragEnd = operation(cm, function (e) { if (webkit) { display.scroller.draggable = false; } cm.state.draggingText = false; off(display.wrapper.ownerDocument, "mouseup", dragEnd); off(display.wrapper.ownerDocument, "mousemove", mouseMove); off(display.scroller, "dragstart", dragStart); off(display.scroller, "drop", dragEnd); if (!moved) { e_preventDefault(e); if (!behavior.addNew) { extendSelection(cm.doc, pos, null, null, behavior.extend); } // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081) if ((webkit && !safari) || ie && ie_version == 9) { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); } else { display.input.focus(); } } }); var mouseMove = function(e2) { moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10; }; var dragStart = function () { return moved = true; }; // Let the drag handler handle this. if (webkit) { display.scroller.draggable = true; } cm.state.draggingText = dragEnd; dragEnd.copy = !behavior.moveOnDrag; // IE's approach to draggable if (display.scroller.dragDrop) { display.scroller.dragDrop(); } on(display.wrapper.ownerDocument, "mouseup", dragEnd); on(display.wrapper.ownerDocument, "mousemove", mouseMove); on(display.scroller, "dragstart", dragStart); on(display.scroller, "drop", dragEnd); delayBlurEvent(cm); setTimeout(function () { return display.input.focus(); }, 20); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function startDragText(evt)\r\n{\r\n\r\n if(ActiveElem&&!DraggingObj) //---prevents dragging conflicts on other draggable elements---\r\n {\r\n if(evt.target.parentNode.getAttribute(\"id\")==\"activeText\")\r\n {\r\n if(evt.target.parentNode.parentNode.getAttribute(\"class\")==\"dragTargetObj\") //---text elem w/ tspan--\r\n objDragTarget = evt.target.parentNode.parentNode\r\n\r\n }\r\n if(objDragTarget)\r\n {\r\n\r\n addNoSelectAtText()\r\n var pnt = objDragTarget.ownerSVGElement.createSVGPoint();\r\n pnt.x = evt.clientX;\r\n pnt.y = evt.clientY;\r\n //---elements in different(svg) viewports, and/or transformed ---\r\n var sCTM = objDragTarget.getScreenCTM();\r\n var Pnt = pnt.matrixTransform(sCTM.inverse());\r\n\r\n //---used for align of projection/zoom on end drag---\r\n ActiveElemStartTrans =[SVGx, SVGy]\r\n\r\n objTransformRequestObj = activeElem.ownerSVGElement.createSVGTransform()\r\n\r\n //---attach new or existing transform to element, init its transform list---\r\n var myTransListAnim = activeElem.transform\r\n objTransList = myTransListAnim.baseVal\r\n\r\n ObjStartX = Pnt.x\r\n ObjStartY = Pnt.y\r\n\r\n DraggingObj = true\r\n\r\n }\r\n }\r\n else\r\n DraggingObj = false\r\n\r\n}", "function dragtaskStart(ev) {\n ev.dataTransfer.setData(\"text/plain\", ev.target.id);\n}", "function checkTextDrag() {\n var ann = gd.layout.annotations[0];\n var x0 = ann.x;\n var y0 = ann.y;\n var ax0 = ann.ax;\n var ay0 = ann.ay;\n\n var bboxInitial = textBox().getBoundingClientRect();\n\n return dragAndReplot(textDrag(), 50, -50)\n .then(function() {\n var bbox = textBox().getBoundingClientRect();\n expect(bbox.left).toBeWithin(bboxInitial.left + 50, 1);\n expect(bbox.top).toBeWithin(bboxInitial.top - 50, 1);\n\n ann = gd.layout.annotations[0];\n\n expect(ann.x).toBe(x0);\n expect(ann.y).toBe(y0);\n expect(ann.ax).toBeWithin(ax0 + 50, 1);\n expect(ann.ay).toBeWithin(ay0 - 50, 1);\n });\n }", "createDragText (highlightedText) {\n this.isDragReleased[highlightedText.stepNumber] = true\n const highDragText = this.game.add.text(\n this.game.input.x,\n this.game.input.y,\n this.dialogSteps[highlightedText.stepNumber].dragText,\n {\n font: '14px Arial',\n fill: '#bfedf5'\n }\n )\n highDragText.lineSpacing = -8\n highDragText.inputEnabled = true\n highDragText.input.useHandCursor = true\n highDragText.input.enableDrag(true)\n highDragText.anchor.setTo(0.5, 0.5)\n highDragText.setShadow(0, 0, 'rgb(0, 0, 0)', 4)\n highDragText.events.onDragStop.add(() => {\n // check if it's in the yes or no zone\n this.dragStopHandler(highDragText, highlightedText)\n })\n }", "function dragStart(e) {\n e.dataTransfer.setData('text/plain', e.target.id);\n this.classList.add('hold');\n setTimeout(() => this.classList.add('invisible'), 0);\n}", "function dragStart(e) {\n e.dataTransfer.setData('text', e.target.id);\n setTimeout(() => {\n e.target.classList.add('invisible');\n }, 0);\n}", "function dragStart(event) {\n event.dataTransfer.setData(\"Text\", event.target.id);\n //document.getElementById(\"demo\").innerHTML = \"Started to drag the letter\";\n $(\"#demo\").attr(\"value\", event.target.id); //pass id as demo value, to check font value when drop\n }", "startDrag(x, y) {}", "function onTextDown(txt) {\n textDown(txt)\n draw()\n}", "function handleMouseDown(e) {\n e.preventDefault();\n startX = parseInt(e.clientX - offsetX);\n // console.log(startX);\n startY = parseInt(e.clientY - offsetY);\n // console.log(startY);\n\n // Put your mousedown stuff here\n // for (var i = 0; i < texts.length; i++) {\n // if (textHittest(startX, startY, i)) {\n selectedText = currentIndex;\n // }\n // }\n}", "function dragstart_handler(e) {\r\n e.dataTransfer.setData(\"text/plain\", e.target.dataset.jsDraggable);\r\n}", "function dragStart() {\n\t\tconsole.log('started draggin');\n\t}", "function onDragStart(event) {\r\n event.dataTransfer.setData('text/plain', event.target.id);\r\n }", "onDragStart({dataTransfer: dt, currentTarget: t}) { dt.setData('text', t.src) }", "startDrag(event) {\n event.dataTransfer.setData(\"text\", event.target.id);\n }", "function bindDrag(evt)\n{\n \n if(navigator.userAgent.indexOf(\"Firefox\") != -1 ||navigator.userAgent.indexOf(\"Safari\") != -1){\n if(evt.detail=='2')\n\t{\n\tstartMove(evt);\n\tchangeCursor('move');\n\t\n\tdocument.getElementById('fontSel').addEventListener('click', function() {\n\tchangeCursor('text');\n\tendMove();\n\t}, false);\n\t}\n\n }else{\n\n\tstartMove(evt);\n\tchangeCursor('move');\n\t\n\tdocument.getElementById('fontSel').addEventListener('click', function() {\n\tchangeCursor('text');\n\tendMove();\n\t}, false);\n\t\n\t}\n}", "function setDragTextData(event) {\n isDragAndDropSupported = true;\n event.dataTransfer.setData(\"text\", \"pspdfkit/text:\" + event.target.innerText);\n event.dataTransfer.setDragImage &&\n event.dataTransfer.setDragImage(event.target, 0, 0);\n event.stopPropagation();\n}", "function _corexitOnMouseUp(event) {\r\n\tvar selection = window.getSelection();\r\n\tvar selectedText = selection ? selection.toString() : \"\";\r\n\r\n //unselect\r\n //selection.collapseToStart();\r\n\r\n\t//if (selectedText.length != 0) {\r\n chrome.extension.sendRequest({command : \"sendText\", text : selectedText});\r\n\t//}\r\n \r\n\t//gClickInTextBox = false;\r\n \r\n}", "function doDrag(e) {\n e.stopImmediatePropagation();\n divCont.style.position = \"absolute\";\n // Change the width of the text input based on the mouse movement\n divCont.style.width = startWidth + _self._ratio * (e.clientX - startX) + \"px\";\n var textArea = divCont.querySelector(\"textarea\");\n textArea.style.height = \"1px\";\n textArea.style.height = textArea.scrollHeight + \"px\";\n\n }", "function dragStart(ev) {\n ev.dataTransfer.effectAllowed='move';\n ev.dataTransfer.setData(\"text\", ev.target.getAttribute('id'));\n ev.dataTransfer.setDragImage(ev.target,0,0);\n return true;\n}", "function onTextUp(txt) {\n textUp(txt)\n draw()\n}", "function dragStart(e){\n\te.dataTransfer.setData('text', e.target.id);\n}", "function dragStart(event) {\r\n event.dataTransfer.setData(\"Text\", event.target.id);\r\n}", "function dragStart(event) {\n //console.log(event)\n event.dataTransfer.setData(\"choice\", event.target.id);\n event.dataTransfer.setData(\"letter\", event.target.innerHTML);\n}", "function handleMouseDown(e) {\n $(\"#submitTextOnCanvas\").css(\"background\",\"green\");\n $(\"#submitTextOnCanvas\").css(\"color\",\"white\");\n $(\"#hint\").html(\"Then click 'Save'\");\n e.preventDefault();\n text_startX = parseInt(e.clientX - text_canvas.offset().left);\n text_startY = parseInt(e.clientY - text_canvas.offset().top);\n // Put your mousedown stuff here\n for (var i = 0; i < texts.length; i++) {\n if (textHittest(text_startX, text_startY, i)) {\n console.log(\"text-e\");\n \n selectedText = i;\n }\n }\n }", "dragStart(e) {\n if (!this.dragState) return;\n // set _drag to true, to bypass the click event above\n this._drag = true;\n }", "function click() {\n d3_eventCancel();\n w.on(\"click.drag\", null);\n }", "function dragMessage(ev) {\n ev.dataTransfer.setData(\"text\", ev.target.innerText);\n}", "function start(event, Dt, Op) {\n\n // Mark the handle as 'active' so it can be styled.\n if (Dt.handles.length === 1) {\n Dt.handles[0].data('grab').addClass(clsList[4]);\n }\n\n // A drag should never propagate up to the 'tap' event.\n event.stopPropagation();\n\n // Attach the move event.\n attach(actions.move, doc, move, {\n start: event\n\t\t\t\t, base: Dt.base\n\t\t\t\t, target: Dt.target\n\t\t\t\t, handles: Dt.handles\n\t\t\t\t, positions: [Dt.handles[0].data('pct')\n\t\t\t\t\t , Dt.handles[Dt.handles.length - 1].data('pct')]\n\t\t\t\t, point: Op['orientation'] ? 'pointY' : 'pointX'\n\t\t\t\t, size: Op['orientation'] ? Dt.base.height() : Dt.base.width()\n });\n\n // Unbind all movement when the drag ends.\n attach(actions.end, doc, end, {\n target: Dt.target\n\t\t\t\t, handles: Dt.handles\n });\n\n // Text selection isn't an issue on touch devices,\n // so adding additional callbacks isn't required.\n if (event.cursor) {\n\n // Prevent the 'I' cursor and extend the range-drag cursor.\n body.css('cursor', $(event.target).css('cursor'));\n\n // Mark the target with a dragging state.\n if (Dt.handles.length > 1) {\n Dt.target.addClass(clsList[20]);\n }\n\n // Prevent text selection when dragging the handles.\n body.on('selectstart' + namespace, function () {\n return false;\n });\n }\n }", "function handleTextClick(event) {\n if (isDragAndDropSupported || !instance) {\n return;\n }\n\n const target = event.target;\n const pageIndex = instance.viewState.currentPageIndex;\n const pageInfo = instance.pageInfoForIndex(pageIndex);\n\n insertTextAnnotation(\n new PSPDFKit.Geometry.Rect({\n width: 220,\n height: 217,\n left: pageInfo.width / 2 - 220 / 2,\n top: pageInfo.height / 2 - 217 / 2,\n }),\n target.innerText,\n pageIndex,\n 26\n );\n}", "function win_drag_start(ftWin){draggingShape = true;}", "function dragStart(event) {\r\n\tevent.dataTransfer.setData(\"text\",event.target.id);\r\n}", "function singleTouchWord() {\n try {\n var range = document.caretRangeFromPoint(android.selection.lastTouchPoint.x, android.selection.lastTouchPoint.y);\n\n range.expand(\"word\");\n\n var preSelectionRange = range.cloneRange();\n preSelectionRange.selectNodeContents(document.getElementsByTagName('body')[0]);\n preSelectionRange.setEnd(range.startContainer, range.startOffset);\n\n// Get start/end position\n var start = preSelectionRange.toString().length;\n var end = start + range.toString().length;\n\n\n window.TextSelection.onSingleTouchWord(start, end);\n } catch (e) {\n window.TextSelection.jsError(\"Single touch error\\n\" + e);\n }\n}", "function dragStart(event) {\n event.dataTransfer.setData(\"text\", event.target.id); // or \"text/plain\" but just \"text\" would also be fine since we are not setting any other type/format for data value\n}", "function Dragging_DetectActionStart(event)\n{\n\t//interactions blocked?\n\tif (__SIMULATOR.UserInteractionBlocked())\n\t{\n\t\t//block the event (will forward to designer, if possible)\n\t\tBrowser_BlockEvent(event);\n\t}\n\telse\n\t{\n\t\t//not during gestures\n\t\tif (!__GESTURES.IsBusy())\n\t\t{\n\t\t\t//get the source element\n\t\t\tvar srcElement = Browser_GetEventSourceElement(event);\n\t\t\t//get the html\n\t\t\tvar theHTML = Get_HTMLObject(srcElement);\n\t\t\t//valid?\n\t\t\tif (theHTML)\n\t\t\t{\n\t\t\t\t//the object we will drag\n\t\t\t\tvar intObject = null;\n\t\t\t\tvar data = null;\n\t\t\t\t//switch according to class\n\t\t\t\tswitch (theHTML.InterpreterObject.DataObject.Class)\n\t\t\t\t{\n\t\t\t\t\tcase __NEMESIS_CLASS_LINK:\n\t\t\t\t\tcase __NEMESIS_CLASS_LABEL:\n\t\t\t\t\tcase __NEMESIS_CLASS_UNKNOWN:\n\t\t\t\t\t\t//attempt to replace the object\n\t\t\t\t\t\tvar replacementObject = Label_ProcessEventForwarding(theHTML.InterpreterObject, __NEMESIS_EVENT_DRAGDROP);\n\t\t\t\t\t\t//found a link\n\t\t\t\t\t\tif (replacementObject)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//we use this\n\t\t\t\t\t\t\tintObject = replacementObject;\n\t\t\t\t\t\t\t//drag it directly\n\t\t\t\t\t\t\ttheHTML = intObject.HTML;\n\t\t\t\t\t\t\t//get data\n\t\t\t\t\t\t\tdata = intObject.GetData();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase __NEMESIS_CLASS_TREE_VIEW:\n\t\t\t\t\t\t//memorise the interpreter object\n\t\t\t\t\t\tintObject = theHTML.InterpreterObject;\n\t\t\t\t\t\t//ask for the html data\n\t\t\t\t\t\tvar treeViewDragData = Treeview_DraggingOverTree(srcElement);\n\t\t\t\t\t\t//valid?\n\t\t\t\t\t\tif (treeViewDragData)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//set it\n\t\t\t\t\t\t\ttheHTML = treeViewDragData.Branch;\n\t\t\t\t\t\t\tdata = treeViewDragData.Exception;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//ignore this\n\t\t\t\t\t\t\tintObject = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//got element to drag?\n\t\t\t\tif (intObject)\n\t\t\t\t{\n\t\t\t\t\t//begin drag operation\n\t\t\t\t\tDragging_Start(event);\n\t\t\t\t\t//store clone our drag element\n\t\t\t\t\t__DRAG_DATA.DraggingClone = theHTML.cloneNode(true);\n\t\t\t\t\t//indicate that we currently arent visible\n\t\t\t\t\t__DRAG_DATA.IsShowing = false;\n\t\t\t\t\t//get its rect\n\t\t\t\t\tvar rect = Position_GetDisplayRect(theHTML);\n\t\t\t\t\t//set special properties\n\t\t\t\t\t__DRAG_DATA.DraggingClone.style.width = rect.width + \"px\";\n\t\t\t\t\t__DRAG_DATA.DraggingClone.style.height = rect.height + \"px\";\n\t\t\t\t\t__DRAG_DATA.DraggingClone_InitialPosition = { x: rect.left / __SIMULATOR.Scale + __SIMULATOR.Interpreter.DisplayPanel.scrollLeft, y: rect.top / __SIMULATOR.Scale + __SIMULATOR.Interpreter.DisplayPanel.scrollTop };\n\t\t\t\t\t__DRAG_DATA.DraggingClone.style.border = __DRAGGING_CLONE_BORDER;\n\t\t\t\t\t__DRAG_DATA.DraggingClone.style.position = \"absolute\";\n\t\t\t\t\t__DRAG_DATA.DraggingClone.style.zIndex = __ZINDEX_POPUP;\n\t\t\t\t\tBrowser_SetOpacity(__DRAG_DATA.DraggingClone, 50);\n\t\t\t\t\t//update its position\n\t\t\t\t\t__DRAG_DATA.DraggingClone.style.left = __DRAG_DATA.DraggingClone_InitialPosition.x + \"px\";\n\t\t\t\t\t__DRAG_DATA.DraggingClone.style.top = __DRAG_DATA.DraggingClone_InitialPosition.y + \"px\";\n\t\t\t\t\t//setup drag action\n\t\t\t\t\t__DRAG_DATA.DragActionSource = { InterpreterObject: intObject, Data: data };\n\t\t\t\t\t//setup start time\n\t\t\t\t\t__DRAG_DATA.StartTime = new Date().getTime();\n\t\t\t\t\t//set up listeners\n\t\t\t\t\t__DRAG_DATA.OnMove = Dragging_DetectActionMove;\n\t\t\t\t\t__DRAG_DATA.OnEnd = Dragging_DetectActionEnd;\n\t\t\t\t\t__DRAG_DATA.OnWheel = Dragging_DetectActionWheel;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "function dragStarted () {\n d3.select(this).raise()\n d3.select(this).attr('cursor', 'grabbing')\n }", "function handleDragStart(){\n this.isMouseDown = true\n}", "setupRectDragging(rect, shared_state) {\n this.setupGroupDragging(rect, shared_state, rect);\n this.setupGroupDragging(this.text, shared_state, rect, true);\n \n this.text.click((e) => e.preventDefault());\n var edit_text_if_not_just_dropped = () => { if (!rect.just_dropped) this.editText(shared_state) };\n rect.click(edit_text_if_not_just_dropped);\n this.text.click(edit_text_if_not_just_dropped);\n }", "function dragStart(ev) {\n\n\tvar quizDivs = getElementsByClassName(\"answer\");\n\tfor (var i = 0; i < quizDivs.length; i++) {\n\t\tquizDivs[i].style.cursor = \"move\";\n\t}\n\tev.dataTransfer.setData(\"Text\",ev.target.id);\n}", "function start ( event, data ) {\n\n\t\t// Mark the handle as 'active' so it can be styled.\n\t\tif( data.handles.length === 1 ) {\n\t\t\tdata.handles[0].children().addClass(Classes[15]);\n\t\t}\n\n\t\t// A drag should never propagate up to the 'tap' event.\n\t\tevent.stopPropagation();\n\n\t\t// Attach the move event.\n\t\tattach ( actions.move, doc, move, {\n\t\t\tstart: event.calcPoint,\n\t\t\thandles: data.handles,\n\t\t\tpositions: [\n\t\t\t\t$Locations[0],\n\t\t\t\t$Locations[$Handles.length - 1]\n\t\t\t]\n\t\t});\n\n\t\t// Unbind all movement when the drag ends.\n\t\tattach ( actions.end, doc, end, null );\n\n\t\t// Text selection isn't an issue on touch devices,\n\t\t// so adding cursor styles can be skipped.\n\t\tif ( event.cursor ) {\n\n\t\t\t// Prevent the 'I' cursor and extend the range-drag cursor.\n\t\t\t$('body').css('cursor', $(event.target).css('cursor'));\n\n\t\t\t// Mark the target with a dragging state.\n\t\t\tif ( $Handles.length > 1 ) {\n\t\t\t\t$Target.addClass(Classes[12]);\n\t\t\t}\n\n\t\t\t// Prevent text selection when dragging the handles.\n\t\t\t$('body').on('selectstart' + namespace, false);\n\t\t}\n\t}", "_dragHandler() {\n if (!this._settings.draggable) return;\n\n if (!this._settings.selectableContent) {\n this._startDrag();\n } else {\n setTimeout(() => this._startDrag(), this._settings.timeToSelect);\n }\n }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display, startTime = +new Date;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier && +new Date - 200 < startTime)\n extendSelection(cm.doc, start);\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); display.input.focus();}, 20);\n else\n display.input.focus();\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function startClicked() {\r\n // get original text in the text area (if any) and hold it in a global variable\r\n if (!!document.getElementById(\"text-area\").value) {\r\n originalText = document.getElementById(\"text-area\").value;\r\n } else {\r\n originalText = '';\r\n }\r\n\r\n // empty the text area, enable the stop button and disable the start button, animation select,\r\n document.getElementById(\"text-area\").value = '';\r\n document.getElementById(\"stop\").disabled = false;\r\n document.getElementById(\"start\").disabled = true;\r\n document.getElementById(\"animation\").disabled = true;\r\n\r\n // get user selections and animate according to them\r\n animate();\r\n}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n if (cm.state.delayingBlurEvent) {\n if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n else { delayBlurEvent(cm); }\n }\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { return display.input.focus(); }, 20);\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n }", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n if (cm.state.delayingBlurEvent) {\n if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n else { delayBlurEvent(cm); }\n }\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { return display.input.focus(); }, 20);\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n }", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n if (cm.state.delayingBlurEvent) {\n if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n else { delayBlurEvent(cm); }\n }\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { return display.input.focus(); }, 20);\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n }", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n if (cm.state.delayingBlurEvent) {\n if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n else { delayBlurEvent(cm); }\n }\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { return display.input.focus(); }, 20);\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n }", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n if (cm.state.delayingBlurEvent) {\n if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n else { delayBlurEvent(cm); }\n }\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { return display.input.focus(); }, 20);\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n }", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n if (cm.state.delayingBlurEvent) {\n if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n else { delayBlurEvent(cm); }\n }\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { return display.input.focus(); }, 20);\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n }", "function isDragStarted() {\n return dndT != 0;\n }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display, startTime = +new Date;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier && +new Date - 200 < startTime)\n extendSelection(cm.doc, start);\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); display.input.focus();}, 20);\n else\n display.input.focus();\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n dragEnd.copy = mac ? e.altKey : e.ctrlKey\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function _initCleanText_1(){\r\n\t\t\tclicking = true;\r\n\t\t}", "function drag(ev) {\n ev.dataTransfer.setData(\"Text\", ev.target.id);\n}", "function drag(ev) \n{\n ev.dataTransfer.setData(\"text\", ev.target.id);\n //$('#'+ev.target.id).draggable( {cursor: 'move'} );\n}", "startTextMode() {\n if (this.getCurrentState() !== states.TEXT) {\n this._state = states.TEXT;\n\n this._getModule(modules.TEXT).start({\n mousedown: this._onFabricMouseDown.bind(this),\n select: this._onFabricSelect.bind(this),\n selectClear: this._onFabricSelectClear.bind(this),\n dbclick: this._onDBClick.bind(this),\n remove: this._handlers.removedObject\n });\n }\n }", "_onDragStart() {\n this._isDragged = true;\n }", "function onDrag(event) {\n\t\tevent.preventDefault && event.preventDefault() || (event.returnValue = false);\n\n\t\tonDrag.x = event.clientX;\n\t\tonDrag.y = event.clientY;\n\n\t\tif (!event.dataTransfer.getData(\"Text\")) {\n\t\t\tobject.style.display = \"block\";\n\n\t\t\tobject.style.left = event.clientX + documentElement.scrollLeft + \"px\";\n\t\t\tobject.style.top = event.clientY + documentElement.scrollTop + \"px\";\n\n\t\t\tonDrop.active = true;\n\t\t} else {\n\t\t\tonDrop.active = false;\n\t\t}\n\t}", "function handleDragStart(e) {\n _('app_status').innerHTML = \"Dragging the element \" + e\n .target\n .getAttribute('id');\n e.dataTransfer.dropEffect = \"move\";\n e\n .dataTransfer\n .setData(\"text\", e.target.getAttribute('id'));\n }", "function handleDragStart(e){\n dragSrcEl = this;\n e.dataTransfer.effectAllowed = 'move';\n e.dataTransfer.setData('text/html', this.innerHTML);\n}", "function dragBegin(ths, e) {\n splitter = ths;\n document.onmousemove = drag;\n document.onmouseup = dragEnd;\n return false;\n }", "doTextOperation(){let root=this,selection=root.selection;if(root.toggled&&null!==root.toggledCommand){document.execCommand(root.toggledCommand,!1,root.toggledCommand||\"\")}else if(null!==root.command){root.dispatchEvent(new CustomEvent(root.command+\"-button\",{bubbles:!0,cancelable:!0,composed:!0,detail:root}));document.execCommand(root.command,!1,root.commandVal||\"\");root.selection=selection}}", "function renderArduinoCodeStart(e) {\n //console.log('handleDragStart');\n if(e !== null) {\n //e.dataTransfer = e.originalEvent.dataTransfer;\n e.dataTransfer.setData('text/html', 'This text may be dragged');\n }\n}", "function file_drag_start(){\n\n\tdrag_flag();\n\n}", "function end(ev) {\nev.dataTransfer.clearData(\"text\");\n}", "function dragStep(ev) {\n ev.dataTransfer.setData(\"text\", $(ev.target).text());\n ev.dataTransfer.setData(\"id\", ev.target.id.split('_')[1]);\n}", "changeDragState(isDragging){\n this.enableTextSelection(!isDragging);\n this.enableGarbage(isDragging);\n this.isDragging = isDragging;\n }", "function mousePressed() {\n // if player is playing\n if (state === \"PLAY\" || state === \"END\") {\n if (textBox.update) {\n // textBox.fullText();\n } else {\n //\n if (textBox.bufferText != null) {\n textBox.insertBuffer();\n } else {\n textBox.hide();\n }\n // if player is holding an item, drop it when clicking\n if (usingItem) {\n dropItem();\n }\n }\n }\n}", "function startDrag (e) {\n //we are capturing the event object and using it to set some information about what is being dragged\n //in this case we are saying that we are storing some text and it is the id of element being moved\n //We need to set this, this iswhy it wasn't working earlier\n //Set the drag's format and data. Use the event target's id for the data\n e.dataTransfer.setData('text', e.target.dataset.audiosrc);\n console.log(\"dragging\");\n console.log(e.dataTransfer.getData('text'));\n }", "function drag(){\n console.log(\"Being dragged around\");\n}", "function startShapeDrag(e) {\n e.dataTransfer.setData('text', this.id);\n }", "function drag(ev) {// credit to https://www.w3schools.com/HTML/html5_draganddrop.asp\n ev.dataTransfer.setData(\"text\", ev.target.id);\n}", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display, startTime = +new Date\n var dragEnd = operation(cm, function (e2) {\n if (webkit) { display.scroller.draggable = false }\n cm.state.draggingText = false\n off(document, \"mouseup\", dragEnd)\n off(display.scroller, \"drop\", dragEnd)\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2)\n if (!modifier && +new Date - 200 < startTime)\n { extendSelection(cm.doc, start) }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n { setTimeout(function () {document.body.focus(); display.input.focus()}, 20) }\n else\n { display.input.focus() }\n }\n })\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true }\n cm.state.draggingText = dragEnd\n dragEnd.copy = mac ? e.altKey : e.ctrlKey\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop() }\n on(document, \"mouseup\", dragEnd)\n on(display.scroller, \"drop\", dragEnd)\n}", "function leftButtonStartDrag(cm, e, start, modifier) {\n\t var display = cm.display, startTime = +new Date;\n\t var dragEnd = operation(cm, function(e2) {\n\t if (webkit) display.scroller.draggable = false;\n\t cm.state.draggingText = false;\n\t off(document, \"mouseup\", dragEnd);\n\t off(display.scroller, \"drop\", dragEnd);\n\t if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n\t e_preventDefault(e2);\n\t if (!modifier && +new Date - 200 < startTime)\n\t extendSelection(cm.doc, start);\n\t // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n\t if (webkit || ie && ie_version == 9)\n\t setTimeout(function() {document.body.focus(); display.input.focus();}, 20);\n\t else\n\t display.input.focus();\n\t }\n\t });\n\t // Let the drag handler handle this.\n\t if (webkit) display.scroller.draggable = true;\n\t cm.state.draggingText = dragEnd;\n\t // IE's approach to draggable\n\t if (display.scroller.dragDrop) display.scroller.dragDrop();\n\t on(document, \"mouseup\", dragEnd);\n\t on(display.scroller, \"drop\", dragEnd);\n\t }", "function leftButtonStartDrag(cm, e, start, modifier) {\n\t var display = cm.display, startTime = +new Date;\n\t var dragEnd = operation(cm, function(e2) {\n\t if (webkit) display.scroller.draggable = false;\n\t cm.state.draggingText = false;\n\t off(document, \"mouseup\", dragEnd);\n\t off(display.scroller, \"drop\", dragEnd);\n\t if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n\t e_preventDefault(e2);\n\t if (!modifier && +new Date - 200 < startTime)\n\t extendSelection(cm.doc, start);\n\t // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n\t if (webkit || ie && ie_version == 9)\n\t setTimeout(function() {document.body.focus(); display.input.focus();}, 20);\n\t else\n\t display.input.focus();\n\t }\n\t });\n\t // Let the drag handler handle this.\n\t if (webkit) display.scroller.draggable = true;\n\t cm.state.draggingText = dragEnd;\n\t // IE's approach to draggable\n\t if (display.scroller.dragDrop) display.scroller.dragDrop();\n\t on(document, \"mouseup\", dragEnd);\n\t on(display.scroller, \"drop\", dragEnd);\n\t }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier)\n extendSelection(cm.doc, start);\n focusInput(cm);\n // Work around unexplainable focus problem in IE9 (#2127)\n if (ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); focusInput(cm);}, 20);\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier)\n extendSelection(cm.doc, start);\n focusInput(cm);\n // Work around unexplainable focus problem in IE9 (#2127)\n if (ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); focusInput(cm);}, 20);\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier)\n extendSelection(cm.doc, start);\n focusInput(cm);\n // Work around unexplainable focus problem in IE9 (#2127)\n if (ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); focusInput(cm);}, 20);\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier)\n extendSelection(cm.doc, start);\n focusInput(cm);\n // Work around unexplainable focus problem in IE9 (#2127)\n if (ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); focusInput(cm);}, 20);\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier)\n extendSelection(cm.doc, start);\n focusInput(cm);\n // Work around unexplainable focus problem in IE9 (#2127)\n if (ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); focusInput(cm);}, 20);\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function leftButtonStartDrag(cm, e, start, modifier) {\n var display = cm.display;\n var dragEnd = operation(cm, function(e2) {\n if (webkit) display.scroller.draggable = false;\n cm.state.draggingText = false;\n off(document, \"mouseup\", dragEnd);\n off(display.scroller, \"drop\", dragEnd);\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n if (!modifier)\n extendSelection(cm.doc, start);\n focusInput(cm);\n // Work around unexplainable focus problem in IE9 (#2127)\n if (ie && ie_version == 9)\n setTimeout(function() {document.body.focus(); focusInput(cm);}, 20);\n }\n });\n // Let the drag handler handle this.\n if (webkit) display.scroller.draggable = true;\n cm.state.draggingText = dragEnd;\n // IE's approach to draggable\n if (display.scroller.dragDrop) display.scroller.dragDrop();\n on(document, \"mouseup\", dragEnd);\n on(display.scroller, \"drop\", dragEnd);\n }", "function start() {\r\n\r\n // Setup annyang\r\n if (annyang) {\r\n annyang.addCommands(speech);\r\n annyang.start();\r\n }\r\n // Hide title screen\r\n $titleScreen.hide()\r\n // Hide\r\n $clearScreen.hide();\r\n\r\n\r\n // Make box droppable\r\n $droppableBox.droppable({\r\n drop: function(ev, ui) {\r\n // Identifies words in droppable box\r\n outputArray.push(ui.draggable[0].textContent);\r\n let id = parseInt(ui.draggable[0].id);\r\n idArray.push(id);\r\n wordObjects[id].textPosition();\r\n clearScreen();\r\n\r\n }\r\n })\r\n resetDroppableBox();\r\n\r\n // Make words draggable\r\n $(\".draggableBox\").draggable({\r\n //start..\r\n start: function(event, ui) {},\r\n //stop..\r\n stop: function(event, ui) {},\r\n drag: function(event, ui) {}\r\n });\r\n\r\n\r\n // Loop\r\n //\r\n // Animation for words\r\n function loop() {\r\n\r\n for (let i = 0; i < wordObjects.length; i++) {\r\n wordObjects[i].move();\r\n }\r\n requestAnimationFrame(loop);\r\n }\r\n requestAnimationFrame(loop);\r\n}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display,\n moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) {\n display.scroller.draggable = false;\n }\n\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n\n if (!moved) {\n e_preventDefault(e);\n\n if (!behavior.addNew) {\n extendSelection(cm.doc, pos, null, null, behavior.extend);\n } // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n\n\n if (webkit && !safari || ie && ie_version == 9) {\n setTimeout(function () {\n display.wrapper.ownerDocument.body.focus({\n preventScroll: true\n });\n display.input.focus();\n }, 20);\n } else {\n display.input.focus();\n }\n }\n });\n\n var mouseMove = function mouseMove(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n\n var dragStart = function dragStart() {\n return moved = true;\n }; // Let the drag handler handle this.\n\n\n if (webkit) {\n display.scroller.draggable = true;\n }\n\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag; // IE's approach to draggable\n\n if (display.scroller.dragDrop) {\n display.scroller.dragDrop();\n }\n\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n delayBlurEvent(cm);\n setTimeout(function () {\n return display.input.focus();\n }, 20);\n }", "function handleMouseMove(e) {\n if (selectedText < 0) {\n return;\n }\n e.preventDefault();\n var mouseX = parseInt(e.clientX - text_canvas.offset().left);\n var mouseY = parseInt(e.clientY - text_canvas.offset().top);\n\n // Put your mousemove stuff here\n var dx = mouseX - text_startX;\n var dy = mouseY - text_startY;\n text_startX = mouseX;\n text_startY = mouseY;\n\n var text = texts[selectedText];\n text.x += dx;\n text.y += dy;\n drawText(text_ctx);\n }", "_onDragStart(event) {\n super._onDragStart(event);\n canvas.app.view.oncontextmenu = ev => this._onRightClick(event);\n let data = this._getNewDataFromEvent(event);\n let drawing = new FurnaceDrawing(data);\n drawing.draw();\n drawing._controlled = true;\n event.data.object = this.preview.addChild(drawing);\n // You can place a text by simply clicking, no need to drag it first.\n if (drawing.type == CONST.DRAWING_TYPES.TEXT)\n event.data.createState = 2;\n event.data.createTime = Date.now();\n }", "function leftButtonStartDrag(cm, event, pos, behavior) {\n\t\t var display = cm.display, moved = false;\n\t\t var dragEnd = operation(cm, function (e) {\n\t\t if (webkit) { display.scroller.draggable = false; }\n\t\t cm.state.draggingText = false;\n\t\t if (cm.state.delayingBlurEvent) {\n\t\t if (cm.hasFocus()) { cm.state.delayingBlurEvent = false; }\n\t\t else { delayBlurEvent(cm); }\n\t\t }\n\t\t off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n\t\t off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n\t\t off(display.scroller, \"dragstart\", dragStart);\n\t\t off(display.scroller, \"drop\", dragEnd);\n\t\t if (!moved) {\n\t\t e_preventDefault(e);\n\t\t if (!behavior.addNew)\n\t\t { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n\t\t // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n\t\t if ((webkit && !safari) || ie && ie_version == 9)\n\t\t { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n\t\t else\n\t\t { display.input.focus(); }\n\t\t }\n\t\t });\n\t\t var mouseMove = function(e2) {\n\t\t moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n\t\t };\n\t\t var dragStart = function () { return moved = true; };\n\t\t // Let the drag handler handle this.\n\t\t if (webkit) { display.scroller.draggable = true; }\n\t\t cm.state.draggingText = dragEnd;\n\t\t dragEnd.copy = !behavior.moveOnDrag;\n\t\t on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n\t\t on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n\t\t on(display.scroller, \"dragstart\", dragStart);\n\t\t on(display.scroller, \"drop\", dragEnd);\n\n\t\t cm.state.delayingBlurEvent = true;\n\t\t setTimeout(function () { return display.input.focus(); }, 20);\n\t\t // IE's approach to draggable\n\t\t if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n\t\t }", "function drag(ev) {\n ev.dataTransfer.setData(\"text\", ev.target.id);\n}", "function drag(ev) {\n ev.dataTransfer.setData(\"text\", ev.target.id);\n}", "function leftButtonStartDrag(cm, e, start, modifier) {\n\t var display = cm.display, startTime = +new Date;\n\t var dragEnd = operation(cm, function(e2) {\n\t if (webkit) display.scroller.draggable = false;\n\t cm.state.draggingText = false;\n\t off(document, \"mouseup\", dragEnd);\n\t off(display.scroller, \"drop\", dragEnd);\n\t if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n\t e_preventDefault(e2);\n\t if (!modifier && +new Date - 200 < startTime)\n\t extendSelection(cm.doc, start);\n\t // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n\t if (webkit || ie && ie_version == 9)\n\t setTimeout(function() {document.body.focus(); display.input.focus();}, 20);\n\t else\n\t display.input.focus();\n\t }\n\t });\n\t // Let the drag handler handle this.\n\t if (webkit) display.scroller.draggable = true;\n\t cm.state.draggingText = dragEnd;\n\t dragEnd.copy = mac ? e.altKey : e.ctrlKey\n\t // IE's approach to draggable\n\t if (display.scroller.dragDrop) display.scroller.dragDrop();\n\t on(document, \"mouseup\", dragEnd);\n\t on(display.scroller, \"drop\", dragEnd);\n\t }", "function editOnDragStart(){this._internalDrag=true;this.setMode('drag');}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus(); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n delayBlurEvent(cm);\n setTimeout(function () { return display.input.focus(); }, 20);\n}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus(); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n delayBlurEvent(cm);\n setTimeout(function () { return display.input.focus(); }, 20);\n}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus(); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n delayBlurEvent(cm);\n setTimeout(function () { return display.input.focus(); }, 20);\n}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus(); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n delayBlurEvent(cm);\n setTimeout(function () { return display.input.focus(); }, 20);\n}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus(); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n delayBlurEvent(cm);\n setTimeout(function () { return display.input.focus(); }, 20);\n}", "function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if (webkit || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus(); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n delayBlurEvent(cm);\n setTimeout(function () { return display.input.focus(); }, 20);\n}", "_bindMouse() {\n const div = this.textLayerDiv;\n let expandDivsTimer = null;\n\n div.addEventListener(\"mousedown\", evt => {\n if (this.enhanceTextSelection && this.textLayerRenderTask) {\n this.textLayerRenderTask.expandTextDivs(true);\n if (\n (typeof PDFJSDev === \"undefined\" || !PDFJSDev.test(\"MOZCENTRAL\")) &&\n expandDivsTimer\n ) {\n clearTimeout(expandDivsTimer);\n expandDivsTimer = null;\n }\n return;\n }\n\n const end = div.querySelector(\".endOfContent\");\n if (!end) {\n return;\n }\n if (typeof PDFJSDev === \"undefined\" || !PDFJSDev.test(\"MOZCENTRAL\")) {\n // On non-Firefox browsers, the selection will feel better if the height\n // of the `endOfContent` div is adjusted to start at mouse click\n // location. This avoids flickering when the selection moves up.\n // However it does not work when selection is started on empty space.\n let adjustTop = evt.target !== div;\n if (typeof PDFJSDev === \"undefined\" || PDFJSDev.test(\"GENERIC\")) {\n adjustTop =\n adjustTop &&\n window\n .getComputedStyle(end)\n .getPropertyValue(\"-moz-user-select\") !== \"none\";\n }\n if (adjustTop) {\n const divBounds = div.getBoundingClientRect();\n const r = Math.max(0, (evt.pageY - divBounds.top) / divBounds.height);\n end.style.top = (r * 100).toFixed(2) + \"%\";\n }\n }\n end.classList.add(\"active\");\n });\n\n div.addEventListener(\"mouseup\", () => {\n if (this.enhanceTextSelection && this.textLayerRenderTask) {\n if (typeof PDFJSDev === \"undefined\" || !PDFJSDev.test(\"MOZCENTRAL\")) {\n expandDivsTimer = setTimeout(() => {\n if (this.textLayerRenderTask) {\n this.textLayerRenderTask.expandTextDivs(false);\n }\n expandDivsTimer = null;\n }, EXPAND_DIVS_TIMEOUT);\n } else {\n this.textLayerRenderTask.expandTextDivs(false);\n }\n return;\n }\n\n const end = div.querySelector(\".endOfContent\");\n if (!end) {\n return;\n }\n if (typeof PDFJSDev === \"undefined\" || !PDFJSDev.test(\"MOZCENTRAL\")) {\n end.style.top = \"\";\n }\n end.classList.remove(\"active\");\n });\n }", "function beginDrag(ev){\n\tcurrentChoice = ev.target.id;\n\tconsole.log(\"Current choice is:\" + currentChoice);\n\tdrag(ev);\n}", "function drag(ev) {\n ev.dataTransfer.setData(\"text\", ev.target.id);\n}", "function drag(ev) {\n ev.dataTransfer.setData(\"text\", ev.target.id);\n}", "function drag(ev) {\n ev.dataTransfer.setData(\"text\", ev.target.id);\n}", "function dragStart () {\n d3.event.sourceEvent.stopPropagation();\n}" ]
[ "0.66870064", "0.64880925", "0.64526504", "0.643963", "0.63796633", "0.6295826", "0.62258095", "0.6052833", "0.6033996", "0.6015346", "0.60106355", "0.60037816", "0.59898204", "0.5974962", "0.5962932", "0.5919407", "0.5909692", "0.58979154", "0.58868265", "0.5882919", "0.5857005", "0.58569604", "0.5849517", "0.58423114", "0.58399576", "0.58319926", "0.58042806", "0.5773791", "0.5767806", "0.5734666", "0.5697099", "0.5690756", "0.5680738", "0.5680318", "0.56704724", "0.5669641", "0.56664455", "0.5650607", "0.56487125", "0.56389624", "0.56170154", "0.56007606", "0.55900455", "0.5575844", "0.5575844", "0.5575844", "0.5575844", "0.5575844", "0.5575844", "0.5565438", "0.55464727", "0.55444247", "0.5541335", "0.5537255", "0.55348766", "0.5530412", "0.5528172", "0.55167675", "0.55135477", "0.55119634", "0.55101943", "0.55079156", "0.55031645", "0.54977787", "0.54874206", "0.5483142", "0.5482988", "0.5481492", "0.54781467", "0.5474452", "0.5468731", "0.5467142", "0.54671043", "0.54671043", "0.5459972", "0.5459972", "0.5459972", "0.5459972", "0.5459972", "0.5459972", "0.5457896", "0.545779", "0.54560405", "0.5453987", "0.54476124", "0.5432474", "0.5432474", "0.543111", "0.54169697", "0.5416648", "0.5416648", "0.5416648", "0.5416648", "0.5416648", "0.5416648", "0.54059446", "0.54056984", "0.5404287", "0.5404287", "0.5404287", "0.540207" ]
0.0
-1
Normal selection, as opposed to text dragging.
function leftButtonSelect(cm, event, start, behavior) { var display = cm.display, doc = cm.doc; e_preventDefault(event); var ourRange, ourIndex, startSel = doc.sel, ranges = startSel.ranges; if (behavior.addNew && !behavior.extend) { ourIndex = doc.sel.contains(start); if (ourIndex > -1) { ourRange = ranges[ourIndex]; } else { ourRange = new Range(start, start); } } else { ourRange = doc.sel.primary(); ourIndex = doc.sel.primIndex; } if (behavior.unit == "rectangle") { if (!behavior.addNew) { ourRange = new Range(start, start); } start = posFromMouse(cm, event, true, true); ourIndex = -1; } else { var range = rangeForUnit(cm, start, behavior.unit); if (behavior.extend) { ourRange = extendRange(ourRange, range.anchor, range.head, behavior.extend); } else { ourRange = range; } } if (!behavior.addNew) { ourIndex = 0; setSelection(doc, new Selection([ourRange], 0), sel_mouse); startSel = doc.sel; } else if (ourIndex == -1) { ourIndex = ranges.length; setSelection(doc, normalizeSelection(cm, ranges.concat([ourRange]), ourIndex), {scroll: false, origin: "*mouse"}); } else if (ranges.length > 1 && ranges[ourIndex].empty() && behavior.unit == "char" && !behavior.extend) { setSelection(doc, normalizeSelection(cm, ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0), {scroll: false, origin: "*mouse"}); startSel = doc.sel; } else { replaceOneSelection(doc, ourIndex, ourRange, sel_mouse); } var lastPos = start; function extendTo(pos) { if (cmp(lastPos, pos) == 0) { return } lastPos = pos; if (behavior.unit == "rectangle") { var ranges = [], tabSize = cm.options.tabSize; var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize); var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize); var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol); for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line)); line <= end; line++) { var text = getLine(doc, line).text, leftPos = findColumn(text, left, tabSize); if (left == right) { ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos))); } else if (text.length > leftPos) { ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize)))); } } if (!ranges.length) { ranges.push(new Range(start, start)); } setSelection(doc, normalizeSelection(cm, startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex), {origin: "*mouse", scroll: false}); cm.scrollIntoView(pos); } else { var oldRange = ourRange; var range = rangeForUnit(cm, pos, behavior.unit); var anchor = oldRange.anchor, head; if (cmp(range.anchor, anchor) > 0) { head = range.head; anchor = minPos(oldRange.from(), range.anchor); } else { head = range.anchor; anchor = maxPos(oldRange.to(), range.head); } var ranges$1 = startSel.ranges.slice(0); ranges$1[ourIndex] = bidiSimplify(cm, new Range(clipPos(doc, anchor), head)); setSelection(doc, normalizeSelection(cm, ranges$1, ourIndex), sel_mouse); } } var editorSize = display.wrapper.getBoundingClientRect(); // Used to ensure timeout re-tries don't fire when another extend // happened in the meantime (clearTimeout isn't reliable -- at // least on Chrome, the timeouts still happen even when cleared, // if the clear happens after their scheduled firing time). var counter = 0; function extend(e) { var curCount = ++counter; var cur = posFromMouse(cm, e, true, behavior.unit == "rectangle"); if (!cur) { return } if (cmp(cur, lastPos) != 0) { cm.curOp.focus = activeElt(); extendTo(cur); var visible = visibleLines(display, doc); if (cur.line >= visible.to || cur.line < visible.from) { setTimeout(operation(cm, function () {if (counter == curCount) { extend(e); }}), 150); } } else { var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0; if (outside) { setTimeout(operation(cm, function () { if (counter != curCount) { return } display.scroller.scrollTop += outside; extend(e); }), 50); } } } function done(e) { cm.state.selectingText = false; counter = Infinity; // If e is null or undefined we interpret this as someone trying // to explicitly cancel the selection rather than the user // letting go of the mouse button. if (e) { e_preventDefault(e); display.input.focus(); } off(display.wrapper.ownerDocument, "mousemove", move); off(display.wrapper.ownerDocument, "mouseup", up); doc.history.lastSelOrigin = null; } var move = operation(cm, function (e) { if (e.buttons === 0 || !e_button(e)) { done(e); } else { extend(e); } }); var up = operation(cm, done); cm.state.selectingText = up; on(display.wrapper.ownerDocument, "mousemove", move); on(display.wrapper.ownerDocument, "mouseup", up); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "unselectText_() {\n try {\n this.win.getSelection().removeAllRanges();\n } catch (e) {\n // Selection API not supported.\n }\n }", "clearSelection() {\n this._clearSelection();\n }", "cut() {\n if (this.owner.isReadOnlyMode || this.selection.isEmpty) {\n return;\n }\n this.selection.copySelectedContent(true);\n }", "function normalizeSelection() {\n\t\t\t// Normalize selection for example <b>a</b><i>|a</i> becomes <b>a|</b><i>a</i> except for Ctrl+A since it selects everything\n\t\t\teditor.on('keyup focusin mouseup', function(e) {\n\t\t\t\tif (e.keyCode != 65 || !VK.metaKeyPressed(e)) {\n\t\t\t\t\tselection.normalize();\n\t\t\t\t}\n\t\t\t}, true);\n\t\t}", "function normalizeSelection() {\n\t\t\t// Normalize selection for example <b>a</b><i>|a</i> becomes <b>a|</b><i>a</i> except for Ctrl+A since it selects everything\n\t\t\teditor.on('keyup focusin mouseup', function(e) {\n\t\t\t\tif (e.keyCode != 65 || !VK.metaKeyPressed(e)) {\n\t\t\t\t\tselection.normalize();\n\t\t\t\t}\n\t\t\t}, true);\n\t\t}", "function normalizeSelection() {\n\t\t\t// Normalize selection for example <b>a</b><i>|a</i> becomes <b>a|</b><i>a</i> except for Ctrl+A since it selects everything\n\t\t\teditor.on('keyup focusin mouseup', function(e) {\n\t\t\t\tif (e.keyCode != 65 || !VK.metaKeyPressed(e)) {\n\t\t\t\t\tselection.normalize();\n\t\t\t\t}\n\t\t\t}, true);\n\t\t}", "function unblockTextSelection() {\n _document2['default'].onselectstart = function () {\n return true;\n };\n}", "function unblockTextSelection() {\n _document2['default'].onselectstart = function () {\n return true;\n };\n}", "function removeAllSelections() {\r\n\tvar pos = getCaretPosition();\r\n\twindow.getSelection().removeAllRanges();\r\n\tsetCaretPosition(pos);\r\n}", "function updateSelection(){\n\t\t\tif(lastMousePos.pageX == null) return;\n\t\t\t\n\t\t\tsetSelectionPos(selection.second, lastMousePos);\n\t\t\tclearSelection();\n\t\t\t\n\t\t\tif(selectionIsSane()) drawSelection();\n\t\t}", "function unselectText() {\n window.getSelection().empty();\n}", "function unblockTextSelection() {\n document.onselectstart = function () {\n return true;\n };\n }", "resetSelection() {\n if (!this.isSelectionEmpty()) {\n this._resetSelection();\n this._fireChangeSelection();\n }\n }", "function disable_text_selection() {\n \n if ( typeof document.body.onselectstart != 'undefined' ){\n document.body.onselectstart = function(){ return false; };\n } else if ( typeof document.body.style.MozUserSelect != 'undefined' ) {\n document.body.style.MozUserSelect = 'none';\n } else if ( typeof document.body.style.webkitUserSelect != 'undefined' ) {\n document.body.style.webkitUserSelect = 'none';\n } else {\n document.body.onmousedown = function(){ return false; };\n }\n\n document.body.style.cursor = 'default';\n \n }", "function _corexitOnMouseUp(event) {\r\n\tvar selection = window.getSelection();\r\n\tvar selectedText = selection ? selection.toString() : \"\";\r\n\r\n //unselect\r\n //selection.collapseToStart();\r\n\r\n\t//if (selectedText.length != 0) {\r\n chrome.extension.sendRequest({command : \"sendText\", text : selectedText});\r\n\t//}\r\n \r\n\t//gClickInTextBox = false;\r\n \r\n}", "function disableTextSelection() {\n // jQuery doesn't support the element.text attribute in MSIE 8\n // http://stackoverflow.com/questions/2692770/style-style-textcss-appendtohead-does-not-work-in-ie\n var $style = $('<style id=\"__dragtable_disable_text_selection__\" type=\"text/css\">body { -ms-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none; }</style>');\n $(document.head).append($style);\n $(document.body).attr('onselectstart', 'return false;').attr('unselectable', 'on');\n if (window.getSelection) {\n window.getSelection().removeAllRanges();\n } else {\n document.selection.empty(); // MSIE http://msdn.microsoft.com/en-us/library/ms535869%28v=VS.85%29.aspx\n }\n }", "function unblockTextSelection() {\n document.onselectstart = function () {\n return true;\n };\n}", "function removeTextSelection() {\n\n if (window.getSelection) {\n\n window.getSelection().removeAllRanges();\n\n } else if (document.selection) {\n\n document.selection.empty();\n\n }\n\n}", "function fixTextSelection( dom_element )\n {\n //chrome, opera, and safari select PRE text correctly \n if ($.chili.selection.active && ($.browser.msie || $.browser.mozilla)) \n {\n var element = null;\n $(dom_element)\n .parents()\n .filter(\"pre\")\n .bind(\"mousedown\", resetSelectedTextElement)\n .bind(\"mouseup\", displaySelectedTextDialog)\n ;\n }\n }", "function removeTextSelections() {\n if (document.selection) document.selection.empty();\n else if (window.getSelection) window.getSelection().removeAllRanges();\n}", "selectIt() {\n var index = 1,\n text,\n modIndex,\n modLength;\n text = this.selected.text;\n modIndex = this.mod.indexOf(text);\n modLength = this.mod.slice(0, modIndex).length;\n var modEnd = this.mod.slice(modIndex + text.length, this.mod.length);\n if (this.modded) {\n index = this.selected.start + modLength;\n } else {\n index = this.selected.start - modLength;\n }\n this.el.focus();\n // el.selectionStart = index;\n // el.selectionEnd = selected.text.length + index;\n var ending = this.selected.text.length + index;\n this.setSelectionRange(this.el, index, ending);\n }", "function removeSelectionHighlight() {\r\n hideSelectionRect();\r\n hideRotIndicator();\r\n }", "function clearSelection()\n{\n if (window.getSelection) {window.getSelection().removeAllRanges();}\n else if (document.selection) {document.selection.empty();}\n}", "resetSelection () {\n this.currentSelection = null\n }", "clearSelection() {\n this.selectionStart = undefined;\n this.selectionEnd = undefined;\n this.isSelectAllActive = false;\n this.selectionStartLength = 0;\n }", "function onSelected() {\n let selection = window.getSelection();\n if (selection.toString().trim()) {\n // console.log(selection);\n selectedNode = selection.anchorNode;\n selectedRect = selection.getRangeAt(0).getBoundingClientRect();\n } \n}", "function finalizeSelection(){\n\n\tvar len = cliptext.value.length\n\tif(len > 5) cliptext.selectionStart = 3\n\telse cliptext.selectionStart = defaultStart\n\tcliptext.selectionEnd = len - 2\n}", "deselectAll() {\n if (document.selection) {\n document.selection.empty();\n } else if (window.getSelection) {\n window.getSelection().removeAllRanges();\n }\n }", "reset() {\n this._selection = -1;\n }", "function restoreSelection(range) {\n if (range) {\n if (window.getSelection) {\n sel = window.getSelection();\n sel.removeAllRanges();\n sel.addRange(range);\n } else if (document.selection && range.select) {\n range.select();\n }\n }\n }", "function selectText(element) {\n\n if (document.body.createTextRange) {\n var range = document.body.createTextRange();\n range.moveToElementText(element);\n range.select();\n } else if (window.getSelection) {\n var selection = window.getSelection();\n var range = document.createRange();\n range.selectNode(element);\n selection.removeAllRanges();\n selection.addRange(range);\n }\n }", "select() {\n this.getInput().select();\n }", "function blockTextSelection() {\n _document2['default'].body.focus();\n _document2['default'].onselectstart = function () {\n return false;\n };\n}", "function blockTextSelection() {\n _document2['default'].body.focus();\n _document2['default'].onselectstart = function () {\n return false;\n };\n}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function selectText() {\n if (document.body.createTextRange) {\n const range = document.body.createTextRange();\n range.moveToElementText(target);\n range.select();\n } else if (window.getSelection) {\n const selection = window.getSelection();\n const range = document.createRange();\n range.selectNodeContents(target);\n selection.removeAllRanges();\n selection.addRange(range);\n } else {\n console.warn(\"Could not select text in node: Unsupported browser.\");\n }\n}", "function select() {\n const text = document.querySelector('#source');\n\n text.focus();\n text.setSelectionRange(0, text.value.length);\n}", "function removeGhostSelection() {\n\t\t\teditor.on('Undo Redo SetContent', function(e) {\n\t\t\t\tif (!e.initial) {\n\t\t\t\t\teditor.execCommand('mceRepaint');\n\t\t\t\t}\n\t\t\t});\n\t\t}", "function unblockTextSelection() {\n global_document__WEBPACK_IMPORTED_MODULE_1___default.a.onselectstart = function () {\n return true;\n };\n}", "function unblockTextSelection() {\n global_document__WEBPACK_IMPORTED_MODULE_1___default.a.onselectstart = function () {\n return true;\n };\n}", "clearSelection() {\n this._model.clearSelection();\n this._removeMouseDownListeners();\n this.refresh();\n this._onSelectionChange.fire();\n }", "function unblockTextSelection() {\n global_document__WEBPACK_IMPORTED_MODULE_7___default.a.onselectstart = function () {\n return true;\n };\n}", "function clearSelection() {\n if (window.getSelection) {\n if (window.getSelection().empty) { // Chrome\n window.getSelection().empty();\n } else if (window.getSelection().removeAllRanges) { // Firefox\n window.getSelection().removeAllRanges();\n }\n } else if (document.selection) { // IE?\n document.selection.empty();\n }\n }", "function clearSelection () {\n if (document.selection) {\n document.selection.empty();\n } else if (window.getSelection) {\n window.getSelection().removeAllRanges();\n }\n}", "function r(e,t){e.selection.isCollapsed()&&e.selection.selectLine();for(var n=e.selection.surround(t),o=0,s=n.length;o<s;o++)b.dom.lineBreaks(n[o]).remove(),u(n[o]);// rethink restoring selection\n// composer.selection.selectNode(element, wysihtml5.browser.displaysCaretInEmptyContentEditableCorrectly());\n}", "select() {\n\t\tthis.inputView.select();\n\t}", "_resetSelection() {\n this.__selectedRangeArr = [];\n this.__anchorSelectionIndex = -1;\n this.__leadSelectionIndex = -1;\n }", "function allowTextSelection() {\n var styles='*,p,div{user-select:text !important;-moz-user-select:text !important;-webkit-user-select:text !important;}';\n jQuery('head').append(jQuery('<style />').html(styles));\n \n window.console && console.log('allowTextSelection');\n \n var allowNormal = function(){\n return true;\n };\n \n window.console && console.log('Elements unbound: '+\n jQuery('*[onselectstart], *[ondragstart], *[oncontextmenu], #songLyricsDiv'\n ).unbind('contextmenu').unbind('selectstart').unbind('dragstart'\n ).unbind('mousedown').unbind('mouseup').unbind('click'\n ).attr('onselectstart',allowNormal).attr('oncontextmenu',allowNormal\n ).attr('ondragstart',allowNormal).size());\n}", "function SelectionChange() { }", "function SelectionChange() { }", "function selectTextAgain($container)\n {\n if ($.browser.msie) \n {\n $container[0].focus();\n $container[0].select();\n }\n else \n {\n var s = window.getSelection();\n s.removeAllRanges();\n var r = document.createRange();\n r.selectNodeContents( $container[0] );\n s.addRange( r );\n }\n }", "function blockTextSelection() {\n global_document__WEBPACK_IMPORTED_MODULE_1___default.a.body.focus();\n\n global_document__WEBPACK_IMPORTED_MODULE_1___default.a.onselectstart = function () {\n return false;\n };\n}", "function blockTextSelection() {\n global_document__WEBPACK_IMPORTED_MODULE_1___default.a.body.focus();\n\n global_document__WEBPACK_IMPORTED_MODULE_1___default.a.onselectstart = function () {\n return false;\n };\n}", "function blockTextSelection() {\n global_document__WEBPACK_IMPORTED_MODULE_7___default.a.body.focus();\n\n global_document__WEBPACK_IMPORTED_MODULE_7___default.a.onselectstart = function () {\n return false;\n };\n}", "function moveSelection(event) {\n event.preventDefault();\n event.stopPropagation();\n console.log('Calling moveSelection');\n \n optimalApp.selectionPosition[0] = event.pageX - optimalApp.selectionOffset[0];\n optimalApp.selectionPosition[1] = event.pageY - optimalApp.selectionOffset[1];\n \n updateSelection();\n}", "function selectionRestore() {\n if (savedSelection) {\n rangy.restoreSelection(savedSelection);\n savedSelection = false;\n }\n}", "function prepareSelectAllHack() {\r\n if (display.input.selectionStart != null) {\r\n var selected = cm.somethingSelected();\r\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\r\n display.prevInput = selected ? \"\" : \"\\u200b\";\r\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\r\n // Re-set this, in case some other handler touched the\r\n // selection in the meantime.\r\n display.selForContextMenu = cm.doc.sel;\r\n }\r\n }", "function ClearTextSelection() {\n\t//console.log('Clear text selection.');\n\tif ( document.selection ) {\n //console.log('document.selection'); \n\t\tdocument.selection.empty();\n\t} else if ( window.getSelection ) {\n\t\t//console.log('window.getSelection');\n\t\twindow.getSelection().removeAllRanges();\n\t}\n} // END ClearTextSelection.", "function selectText(target) {\n const range = document.createRange();\n range.selectNodeContents(target);\n\n const selection = window.getSelection();\n selection.removeAllRanges();\n selection.addRange(range);\n}", "get isSelection() {\n return true;\n }", "function UISelection(){\n\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected()\n var extval = \"\\u200b\" + (selected ? te.value : \"\")\n te.value = \"\\u21da\" // Used to catch context-menu undo\n te.value = extval\n input.prevInput = selected ? \"\" : \"\\u200b\"\n te.selectionStart = 1; te.selectionEnd = extval.length\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected()\n var extval = \"\\u200b\" + (selected ? te.value : \"\")\n te.value = \"\\u21da\" // Used to catch context-menu undo\n te.value = extval\n input.prevInput = selected ? \"\" : \"\\u200b\"\n te.selectionStart = 1; te.selectionEnd = extval.length\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel\n }\n }", "function dontPosSelect() {\n return false;\n }", "function blockTextSelection() {\n document.body.focus();\n\n document.onselectstart = function () {\n return false;\n };\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\r\n if (te.selectionStart != null) {\r\n var selected = cm.somethingSelected();\r\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\r\n te.value = \"\\u21da\"; // Used to catch context-menu undo\r\n te.value = extval;\r\n input.prevInput = selected ? \"\" : \"\\u200b\";\r\n te.selectionStart = 1; te.selectionEnd = extval.length;\r\n // Re-set this, in case some other handler touched the\r\n // selection in the meantime.\r\n display.selForContextMenu = cm.doc.sel;\r\n }\r\n }", "unSelectAll () { this.toggSelAll(false); }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function blockTextSelection() {\n document.body.focus();\n document.onselectstart = function () {\n return false;\n };\n}", "replaceSelection(text) {\n if (typeof text == \"string\")\n text = this.toText(text);\n return this.changeByRange(range => ({ changes: { from: range.from, to: range.to, insert: text },\n range: EditorSelection.cursor(range.from + text.length) }));\n }", "function selectedText() {\n var selection = window.getSelection();\n return selection.type === 'Range' ? selection : false\n }", "clearSelection() {\n var _a;\n (_a = this._selectionService) === null || _a === void 0 ? void 0 : _a.clearSelection();\n }", "function clearPreviousSelection()\n {\n if ($.browser.msie) \n {\n document.selection.empty();\n }\n else\n {\n window.getSelection().removeAllRanges();\n }\n }", "function prepareSelectAllHack() {\n\t\t if (te.selectionStart != null) {\n\t\t var selected = cm.somethingSelected();\n\t\t var extval = \"\\u200b\" + (selected ? te.value : \"\");\n\t\t te.value = \"\\u21da\"; // Used to catch context-menu undo\n\t\t te.value = extval;\n\t\t input.prevInput = selected ? \"\" : \"\\u200b\";\n\t\t te.selectionStart = 1; te.selectionEnd = extval.length;\n\t\t // Re-set this, in case some other handler touched the\n\t\t // selection in the meantime.\n\t\t display.selForContextMenu = cm.doc.sel;\n\t\t }\n\t\t }", "_textBoxSelectHandler() {\n const that = this;\n\n if (that.disabled) {\n return;\n }\n\n that.selectionStart = that.$.input.selectionStart;\n that.selectionEnd = that.$.input.selectionEnd;\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }" ]
[ "0.7486875", "0.72677946", "0.7257403", "0.72473305", "0.72473305", "0.72473305", "0.71620464", "0.71620464", "0.71315503", "0.7116692", "0.7113116", "0.70956546", "0.7062658", "0.7048435", "0.7040968", "0.7010727", "0.7001272", "0.69776547", "0.6956012", "0.6949947", "0.69385", "0.69164383", "0.69017166", "0.6893267", "0.6891918", "0.68610805", "0.68502086", "0.68340343", "0.6821599", "0.68138045", "0.680493", "0.6792931", "0.67872334", "0.67872334", "0.6785285", "0.6785285", "0.6785285", "0.6785285", "0.67840207", "0.67737216", "0.6756575", "0.6755681", "0.6755681", "0.6750801", "0.6746093", "0.6736848", "0.67310256", "0.6709957", "0.6709592", "0.6702942", "0.66901845", "0.6671566", "0.6671566", "0.6663476", "0.66541415", "0.66541415", "0.66508836", "0.6649764", "0.66460645", "0.66411686", "0.6639537", "0.6634818", "0.6629521", "0.66268164", "0.6619108", "0.6619108", "0.6619108", "0.6619108", "0.6619108", "0.6616308", "0.6616308", "0.6615592", "0.6611431", "0.6602775", "0.6602775", "0.6593615", "0.65838724", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.65808666", "0.6571582", "0.65702915", "0.6567192", "0.65670735", "0.6561611", "0.65588486", "0.655624", "0.655404", "0.655404", "0.655404", "0.655404", "0.655404", "0.655404" ]
0.0
-1
Used when mouseselecting to adjust the anchor to the proper side of a bidi jump depending on the visual position of the head.
function bidiSimplify(cm, range) { var anchor = range.anchor; var head = range.head; var anchorLine = getLine(cm.doc, anchor.line); if (cmp(anchor, head) == 0 && anchor.sticky == head.sticky) { return range } var order = getOrder(anchorLine); if (!order) { return range } var index = getBidiPartAt(order, anchor.ch, anchor.sticky), part = order[index]; if (part.from != anchor.ch && part.to != anchor.ch) { return range } var boundary = index + ((part.from == anchor.ch) == (part.level != 1) ? 0 : 1); if (boundary == 0 || boundary == order.length) { return range } // Compute the relative visual position of the head compared to the // anchor (<0 is to the left, >0 to the right) var leftSide; if (head.line != anchor.line) { leftSide = (head.line - anchor.line) * (cm.doc.direction == "ltr" ? 1 : -1) > 0; } else { var headIndex = getBidiPartAt(order, head.ch, head.sticky); var dir = headIndex - index || (head.ch - anchor.ch) * (part.level == 1 ? -1 : 1); if (headIndex == boundary - 1 || headIndex == boundary) { leftSide = dir < 0; } else { leftSide = dir > 0; } } var usePart = order[boundary + (leftSide ? -1 : 0)]; var from = leftSide == (usePart.level == 1); var ch = from ? usePart.from : usePart.to, sticky = from ? "after" : "before"; return anchor.ch == ch && anchor.sticky == sticky ? range : new Range(new Pos(anchor.line, ch, sticky), head) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setLabelAnchor(d) {\r\n if (d.target.x >= (d.source.x + 20)) return \"start\";\r\n if (d.target.x <= (d.source.x - 20)) return \"end\";\r\n return \"middle\";\r\n }", "function updateAnchorPos() {\n if (!labelSim.selection) return;\n\n labelSim.selection.each(function(d) {\n var bbox = this.getBBox(),\n x = bbox.x + bbox.width/2,\n y = bbox.y + bbox.height/2\n\n d.anchorPos.x = x\n d.anchorPos.y = y\n d.anchorPos.fx = x\n d.anchorPos.fy = y\n\n // If a label position does not exist, set it to be the anchor position\n if (d.labelPos.x == null) {\n d.labelPos.x = x\n d.labelPos.y = y\n }\n })\n }", "setAnchorPostion(anchor, newX, newY) {\n anchor.html.attr(\"cx\", newX).attr(\"cy\", newY);\n }", "function anchorAt(txt,x,y) {\n\ttxt.position=[x-(txt.anchor[0]-txt.position[0]),(txt.position[1]-txt.anchor[1])+y];\n}", "set anchor(value) {}", "function newAnchorLabel() {\n count = ++that.anchor_count;\n anchor_label = strval((count + 1)); //generating footnote number starting at 1 instead of 0\n /* yil original letter generating label code\n anchor_label = '';\n do {\n anchor_label = chr(ord('a') + (count % 26)) + anchor_label;\n count = (int) floor(count / 26);\n } while (count > 0);*/\n return anchor_label;\n }", "function setSelection(cm, anchor, head, bias, checkAtomic) {\n cm.view.goalColumn = null;\n var sel = cm.view.sel;\n // Skip over atomic spans.\n if (checkAtomic || !posEq(anchor, sel.anchor))\n anchor = skipAtomic(cm, anchor, bias, checkAtomic != \"push\");\n if (checkAtomic || !posEq(head, sel.head))\n head = skipAtomic(cm, head, bias, checkAtomic != \"push\");\n\n if (posEq(sel.anchor, anchor) && posEq(sel.head, head)) return;\n\n sel.anchor = anchor; sel.head = head;\n var inv = posLess(head, anchor);\n sel.from = inv ? head : anchor;\n sel.to = inv ? anchor : head;\n\n cm.curOp.updateInput = true;\n cm.curOp.selectionChanged = true;\n }", "function setSelection(cm, anchor, head, bias, checkAtomic) {\n cm.view.goalColumn = null;\n var sel = cm.view.sel;\n // Skip over atomic spans.\n if (checkAtomic || !posEq(anchor, sel.anchor))\n anchor = skipAtomic(cm, anchor, bias, checkAtomic != \"push\");\n if (checkAtomic || !posEq(head, sel.head))\n head = skipAtomic(cm, head, bias, checkAtomic != \"push\");\n\n if (posEq(sel.anchor, anchor) && posEq(sel.head, head)) return;\n\n sel.anchor = anchor; sel.head = head;\n var inv = posLess(head, anchor);\n sel.from = inv ? head : anchor;\n sel.to = inv ? anchor : head;\n\n cm.curOp.updateInput = true;\n cm.curOp.selectionChanged = true;\n }", "function setSelection(cm, anchor, head, bias, checkAtomic) {\n cm.view.goalColumn = null;\n var sel = cm.view.sel;\n // Skip over atomic spans.\n if (checkAtomic || !posEq(anchor, sel.anchor))\n anchor = skipAtomic(cm, anchor, bias, checkAtomic != \"push\");\n if (checkAtomic || !posEq(head, sel.head))\n head = skipAtomic(cm, head, bias, checkAtomic != \"push\");\n\n if (posEq(sel.anchor, anchor) && posEq(sel.head, head)) return;\n\n sel.anchor = anchor; sel.head = head;\n var inv = posLess(head, anchor);\n sel.from = inv ? head : anchor;\n sel.to = inv ? anchor : head;\n\n cm.curOp.updateInput = true;\n cm.curOp.selectionChanged = true;\n }", "function setSelection(doc, anchor, head, bias, checkAtomic) {\n if (!checkAtomic && hasHandler(doc, \"beforeSelectionChange\") || doc.cm && hasHandler(doc.cm, \"beforeSelectionChange\")) {\n var filtered = filterSelectionChange(doc, anchor, head);\n head = filtered.head;\n anchor = filtered.anchor;\n }\n\n var sel = doc.sel;\n sel.goalColumn = null;\n // Skip over atomic spans.\n if (checkAtomic || !posEq(anchor, sel.anchor))\n anchor = skipAtomic(doc, anchor, bias, checkAtomic != \"push\");\n if (checkAtomic || !posEq(head, sel.head))\n head = skipAtomic(doc, head, bias, checkAtomic != \"push\");\n\n if (posEq(sel.anchor, anchor) && posEq(sel.head, head)) return;\n\n sel.anchor = anchor; sel.head = head;\n var inv = posLess(head, anchor);\n sel.from = inv ? head : anchor;\n sel.to = inv ? anchor : head;\n\n if (doc.cm)\n doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged =\n doc.cm.curOp.cursorActivity = true;\n\n signalLater(doc, \"cursorActivity\", doc);\n }", "function setSelection(doc, anchor, head, bias, checkAtomic) {\n if (!checkAtomic && hasHandler(doc, \"beforeSelectionChange\") || doc.cm && hasHandler(doc.cm, \"beforeSelectionChange\")) {\n var filtered = filterSelectionChange(doc, anchor, head);\n head = filtered.head;\n anchor = filtered.anchor;\n }\n\n var sel = doc.sel;\n sel.goalColumn = null;\n if (bias == null) bias = posLess(head, sel.head) ? -1 : 1;\n // Skip over atomic spans.\n if (checkAtomic || !posEq(anchor, sel.anchor))\n anchor = skipAtomic(doc, anchor, bias, checkAtomic != \"push\");\n if (checkAtomic || !posEq(head, sel.head))\n head = skipAtomic(doc, head, bias, checkAtomic != \"push\");\n\n if (posEq(sel.anchor, anchor) && posEq(sel.head, head)) return;\n\n sel.anchor = anchor; sel.head = head;\n var inv = posLess(head, anchor);\n sel.from = inv ? head : anchor;\n sel.to = inv ? anchor : head;\n\n if (doc.cm)\n doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged =\n doc.cm.curOp.cursorActivity = true;\n\n signalLater(doc, \"cursorActivity\", doc);\n }", "function setSelection(doc, anchor, head, bias, checkAtomic) {\n if (!checkAtomic && hasHandler(doc, \"beforeSelectionChange\") || doc.cm && hasHandler(doc.cm, \"beforeSelectionChange\")) {\n var filtered = filterSelectionChange(doc, anchor, head);\n head = filtered.head;\n anchor = filtered.anchor;\n }\n\n var sel = doc.sel;\n sel.goalColumn = null;\n if (bias == null) bias = posLess(head, sel.head) ? -1 : 1;\n // Skip over atomic spans.\n if (checkAtomic || !posEq(anchor, sel.anchor))\n anchor = skipAtomic(doc, anchor, bias, checkAtomic != \"push\");\n if (checkAtomic || !posEq(head, sel.head))\n head = skipAtomic(doc, head, bias, checkAtomic != \"push\");\n\n if (posEq(sel.anchor, anchor) && posEq(sel.head, head)) return;\n\n sel.anchor = anchor; sel.head = head;\n var inv = posLess(head, anchor);\n sel.from = inv ? head : anchor;\n sel.to = inv ? anchor : head;\n\n if (doc.cm)\n doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged =\n doc.cm.curOp.cursorActivity = true;\n\n signalLater(doc, \"cursorActivity\", doc);\n }", "function setSelection(doc, anchor, head, bias, checkAtomic) {\n if (!checkAtomic && hasHandler(doc, \"beforeSelectionChange\") || doc.cm && hasHandler(doc.cm, \"beforeSelectionChange\")) {\n var filtered = filterSelectionChange(doc, anchor, head);\n head = filtered.head;\n anchor = filtered.anchor;\n }\n\n var sel = doc.sel;\n sel.goalColumn = null;\n if (bias == null) bias = posLess(head, sel.head) ? -1 : 1;\n // Skip over atomic spans.\n if (checkAtomic || !posEq(anchor, sel.anchor))\n anchor = skipAtomic(doc, anchor, bias, checkAtomic != \"push\");\n if (checkAtomic || !posEq(head, sel.head))\n head = skipAtomic(doc, head, bias, checkAtomic != \"push\");\n\n if (posEq(sel.anchor, anchor) && posEq(sel.head, head)) return;\n\n sel.anchor = anchor; sel.head = head;\n var inv = posLess(head, anchor);\n sel.from = inv ? head : anchor;\n sel.to = inv ? anchor : head;\n\n if (doc.cm)\n doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged =\n doc.cm.curOp.cursorActivity = true;\n\n signalLater(doc, \"cursorActivity\", doc);\n }", "function alterAnchor(e){\n\t// Prevent native scroll event.\n\te.preventDefault();\n\tvar destination = document.getElementById(e.target.classList[0]);\n\t// Find distance from top of page.\n\tvar body = document.body.getBoundingClientRect().top;\n\t// Find distance from top of element to scroll to.\n\tvar element = destination.getBoundingClientRect().top;\n\t// Find difference.\n\tvar newLoc = element - body - 25;\n\t// Go there.\n\t// window.scrollTo(0, newLoc);\n\tsmoothScroll(-body, newLoc);\n}", "jump() {\n if (this._state !== this.PLAY_STATE) {\n return;\n }\n if (this._jump > 1) {\n this._y -= Math.floor(this._jump * 0.08);\n if (this._y < 0) {\n this._y = 0;\n }\n this._jump = Math.floor(this._jump * 0.92);\n } else {\n this._jump = 0;\n }\n offset = this._jump;\n }", "anchor() {\n this.__anchors++;\n }", "anchor() {\n this.__anchors++;\n }", "anchor() {\n this.__anchors++;\n }", "anchor() {\n this.__anchors++;\n }", "get anchor() { return this.$anchor.pos }", "function swapAnchor (whichLayer, newAnchor) {\n\n\t\t// Layer Transform Group\n\tvar layerTransformGrp = whichLayer.property(\"ADBE Transform Group\");\n\n\t\t// Position Layer Anchor Point\n\tvar theLayerAnchor = layerTransformGrp.property(\"ADBE Anchor Point\");\n\ttheLayerAnchor.setValue(newAnchor);\n\n}", "function Va(e){Qa(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}", "function setLabelAnchor(d) {\n return d.angle > Math.PI ? 'end' : null;\n }", "function UpdateAnchorsHandler() { }", "startDraggingAnchors(element) {\n const mousedown = (mouse, anchor) => {\n this.scalable = true;\n this.mouse = mouse;\n\n if (element.type === \"line\") {\n const P1 = element.bounding.P1;\n const P2 = element.bounding.P2;\n\n this.bound = {\n x1: P1.x + this.props.x,\n y1: P1.y + this.props.y,\n x2: P2.x + this.props.x,\n y2: P2.y + this.props.y,\n\n diffX: Math.abs(P1.x - P2.x),\n diffY: Math.abs(P1.y - P2.y),\n };\n\n this.initialBounds = {\n diffX: this.bound.diffX / this.previousScaleX,\n diffY: this.bound.diffY / this.previousScaleY,\n };\n\n const diffX = Math.abs(P1.x - P2.x) / 2;\n const diffY = Math.abs(P1.y - P2.y) / 2;\n\n const clickedPoint = [P1, P2][anchor - 1];\n const otherPoint = [P2, P1][anchor - 1];\n\n const isClickedPointBiggerX = clickedPoint.x > otherPoint.x;\n const isClickedPointBiggerY = clickedPoint.y > otherPoint.y;\n\n this.isClickedPointBiggerX = isClickedPointBiggerX;\n this.isClickedPointBiggerY = isClickedPointBiggerY;\n\n this.anchorTransition = {\n x: isClickedPointBiggerX ? -diffX : diffX,\n y: isClickedPointBiggerY ? -diffY : diffY,\n };\n\n const initialHalfDiffX = this.initialBounds.diffX / 2;\n const initialHalfDiffY = this.initialBounds.diffY / 2;\n\n const { x1, y1, x2, y2 } = element.props;\n\n this.anchorTransitionPos = {\n x1:\n x1 + (isClickedPointBiggerX ? initialHalfDiffX : -initialHalfDiffX),\n y1:\n y1 + (isClickedPointBiggerY ? initialHalfDiffY : -initialHalfDiffY),\n\n x2:\n x2 + (isClickedPointBiggerX ? initialHalfDiffX : -initialHalfDiffX),\n y2:\n y2 + (isClickedPointBiggerY ? initialHalfDiffY : -initialHalfDiffY),\n\n x: isClickedPointBiggerX ? initialHalfDiffX : -initialHalfDiffX,\n y: isClickedPointBiggerY ? initialHalfDiffY : -initialHalfDiffY,\n };\n } else {\n // NOT line elements\n this.bound = {\n x: element.bounding.minX + this.props.x,\n y: element.bounding.minY + this.props.y,\n width:\n Math.abs(element.bounding.maxX) + Math.abs(element.bounding.minX),\n height:\n Math.abs(element.bounding.maxY) + Math.abs(element.bounding.minY),\n };\n\n this.initialBounds = {\n width: this.bound.width / this.previousScaleX,\n height: this.bound.height / this.previousScaleY,\n };\n\n const halfWidth = this.bound.width / 2;\n const halfHeight = this.bound.height / 2;\n\n const initialHalfWidth = this.initialBounds.width / 2;\n const initialHalfHeight = this.initialBounds.height / 2;\n\n this.anchorTransition = {\n x: anchor % 2 ? -halfWidth : halfWidth,\n y: Math.floor(anchor / 3) ? halfHeight : -halfHeight,\n };\n\n if (element.type === \"polygon\") {\n const newPoints =\n element.props.points &&\n element.props.points\n .split(\" \")\n .map((point) => {\n const [xx, yy] = point.split(\",\");\n\n return {\n x:\n parseFloat(xx) +\n (anchor % 2 ? initialHalfWidth : -initialHalfWidth),\n y:\n parseFloat(yy) +\n (Math.floor(anchor / 3)\n ? -initialHalfHeight\n : initialHalfHeight),\n };\n })\n .reduce((sum, { x, y }) => `${sum} ${x},${y}`, \"\")\n .trim();\n\n this.anchorTransitionPos = {\n points: newPoints,\n x: anchor % 2 ? initialHalfWidth : -initialHalfWidth,\n y: Math.floor(anchor / 3) ? -initialHalfHeight : initialHalfHeight,\n };\n } else {\n this.anchorTransitionPos = {\n x: anchor % 2 ? initialHalfWidth : -initialHalfWidth,\n y: Math.floor(anchor / 3) ? -initialHalfHeight : initialHalfHeight,\n };\n }\n }\n };\n\n const mouseup = () => {\n this.scalable = false;\n\n this.previousScaleX = this.props.scaleX;\n this.previousScaleY = this.props.scaleY;\n\n this.props.x =\n this.props.x +\n this.anchorTransition.x +\n this.anchorTransitionPos.x * this.props.scaleX;\n\n this.props.y =\n this.props.y +\n this.anchorTransition.y +\n this.anchorTransitionPos.y * this.props.scaleY;\n\n if (element.type === \"polygon\") {\n const newPoints =\n element.props.points &&\n element.props.points\n .split(\" \")\n .map((point) => {\n const [xx, yy] = point.split(\",\");\n\n return { x: parseFloat(xx), y: parseFloat(yy) };\n })\n .reduce((sum, { x, y }) => `${sum} ${x},${y}`, \"\")\n .trim();\n\n this.anchorTransitionPos.points = newPoints;\n this.anchorTransitionPos.x = 0;\n this.anchorTransitionPos.y = 0;\n } else if (element.type === \"line\") {\n const { x1, y1, x2, y2 } = element.props;\n\n this.anchorTransitionPos.x1 = x1;\n this.anchorTransitionPos.y1 = y1;\n this.anchorTransitionPos.x2 = x2;\n this.anchorTransitionPos.y2 = y2;\n\n this.anchorTransitionPos.x = 0;\n this.anchorTransitionPos.y = 0;\n } else {\n this.anchorTransitionPos.x = 0;\n this.anchorTransitionPos.y = 0;\n }\n\n this.anchorTransition.x = 0;\n this.anchorTransition.y = 0;\n\n element.updateMouseTransformation(this);\n };\n\n const mousemove = (mouse, anchor) => {\n if (this.scalable) {\n if (element.type === \"line\") {\n const diffX = mouse.x - [this.bound.x1, this.bound.x2][anchor - 1];\n const diffY = mouse.y - [this.bound.y1, this.bound.y2][anchor - 1];\n\n const scaleX =\n this.previousScaleX -\n (this.isClickedPointBiggerX ? -diffX : diffX) /\n this.initialBounds.diffX;\n\n const scaleY =\n this.previousScaleY -\n (this.isClickedPointBiggerY ? -diffY : diffY) /\n this.initialBounds.diffY;\n\n this.mouse = mouse;\n\n this.props = {\n scaleX,\n scaleY,\n x: this.props.x || this.bound.x + this.bound.width / 2,\n y: this.props.y || this.bound.y + this.bound.height / 2,\n rotate: 0,\n };\n } else {\n const width = anchor % 2 ? this.bound.width : 0;\n const height = Math.floor(anchor / 3) ? 0 : this.bound.height;\n\n const diffX = mouse.x - (this.bound.x + width);\n const diffY = mouse.y - (this.bound.y + height);\n\n const scaleX =\n this.previousScaleX -\n (anchor % 2 ? diffX * -1 : diffX) / this.initialBounds.width;\n\n const scaleY =\n this.previousScaleY -\n (Math.floor(anchor / 3) ? diffY : diffY * -1) /\n this.initialBounds.height;\n\n const { x1, y1, x2, y2 } = this.bound;\n\n this.mouse = mouse;\n this.props = {\n scaleX,\n scaleY,\n x: this.props.x || Math.min(x1, x2) + Math.abs(x1 - x2) / 2,\n y: this.props.y || Math.min(y1, y2) + Math.abs(y1 - y2) / 2,\n rotate: 0,\n };\n }\n\n element.updateMouseTransformation(this);\n }\n };\n\n // these handlers start as soon as we click on of the anchors.\n this.scalingHandlers = { mousedown, mousemove, mouseup };\n }", "function setCellSelection($anchor, event) {\n var $head = cellUnderMouse(view, event);\n var starting = key.getState(view.state) == null;\n if (!$head || !inSameTable($anchor, $head)) {\n if (starting) { $head = $anchor; }\n else { return }\n }\n var selection = new CellSelection($anchor, $head);\n if (starting || !view.state.selection.eq(selection)) {\n var tr = view.state.tr.setSelection(selection);\n if (starting) { tr.setMeta(key, $anchor.pos); }\n view.dispatch(tr);\n }\n }", "anchorDragMove(dx, dy, x, y) {\r\n let p = new Point2D_1.Point2D(this.dragOrigin.x + dx, this.dragOrigin.y + dy);\r\n if (this.paperRect !== null) {\r\n p = p.boundToRect(this.paperRect);\r\n }\r\n window.requestAnimationFrame(() => {\r\n this.ghostAnchor.attr({ cx: p.x, cy: p.y });\r\n });\r\n this.updateRegion(p);\r\n }", "constructor($anchor, $head = $anchor) {\n let inv = $anchor.pos > $head.pos\n super(inv ? $head : $anchor, inv ? $anchor : $head)\n // :: ResolvedPos The resolved anchor of the selection.\n this.$anchor = $anchor\n // :: ResolvedPos The resolved head of the selection.\n this.$head = $head\n }", "anchorDragBegin() {\r\n // do nothing\r\n }", "function anchorFirst(){self.startRow=anchorRow;self.startNode=selection.anchorNode;self.startOffset=selection.anchorOffset;self.endRow=focusRow;self.endNode=selection.focusNode;self.endOffset=selection.focusOffset;}// This function is used when we detect that the \"focus\" node is first.", "function offsetAnchor() {\n if (location.hash.length !== 0) {\n window.scrollTo(window.scrollX, window.scrollY - 110);\n }\n}", "function addCenterJumpMenu(layer, text, fontType, fontSize, height, onTouch)\n{\n var easyLabel = new cc.LabelTTF(text, fontType, fontSize);\n easyLabel.color = cc.color(0,0,0,255);\n var easyItem = new SoundMenuItemLabel(easyLabel,onTouch,layer);\n easyItem.setPosition(cc.p(cc.winSize.width/2, cc.winSize.height/2 + height));\n\n return easyItem;\n}", "function deriveAnchor(edge, index, ep, conn) {\n return options.anchor ? options.anchor : options.deriveAnchor(edge, index, ep, conn);\n }", "_setEvent_jump(){\n let jumps = this._carousel.find(this._controlSelectors.jump);\n $(jumps).click((e)=>{\n let indexStr = $(e.target).attr(this._itemIndexAttr);\n let indexInt = parseInt(indexStr);\n this.jump(indexInt);\n });\n }", "handleHighlight(e){\n let startIdx = window.getSelection().getRangeAt(0).startOffset;\n let endIdx = window.getSelection().getRangeAt(0).endOffset;\n if(startIdx!=endIdx){\n this.props.history.push(`/songs/${this.props.match.params.songId}/create/${startIdx}/${endIdx}`);\n }else{\n this.resetClicked();\n this.props.history.push(`/songs/${this.props.match.params.songId}`);\n }\n }", "function offsetAnchor() {\r\n\tif (location.hash.length !== 0) {\r\n\t\twindow.scrollTo(window.scrollX, window.scrollY - 100);\r\n\t}\r\n}", "function edge(event, Dt, Op) {\n\n var handles = Dt.base.data('handles'), to, i;\n\n i = Op['orientation'] ? event['pointY'] : event['pointX'];\n i = i < Dt.base.offset()[Op['style']];\n\n to = i ? 0 : 100;\n i = i ? 0 : handles.length - 1;\n\n jump(Dt.base, handles[i], to, [Op['slide'], Op['set']]);\n }", "function offsetAnchor() {\n if (location.hash.length !== 0) {\n window.scrollTo(window.scrollX, window.scrollY - 100);\n }\n}", "function offsetAnchor() {\n if (location.hash.length !== 0) {\n window.scrollTo(window.scrollX, window.scrollY - 100);\n }\n}", "get anchor() {\n return this.$anchor.pos;\n }", "function offsetAnchor() {\n if (location.hash.length !== 0) {\n window.scrollTo(window.scrollX, window.scrollY - 100)\n }\n}", "_onAnchorUpdate() {\n this._transformID = -1;\n this._transformTrimmedID = -1;\n }", "function generate_hyperlink_position(in_x, in_y) {\n\t// {{{\n\tvar ital = document.createElement(\"i\");\n\tital.innerHTML += \"(\" + in_x + \",\" + in_y + \")\";\n\tif (in_x < 0.5 || in_x > 100) {\n\t\treturn ital;\n\t}\n\tif (in_y < 0.5 || in_y > 100) {\n\t\treturn ital;\n\t}\n\tital.setAttribute(\"newX\", \"\" + in_x);\n\tital.setAttribute(\"newY\", \"\" + in_y);\n\tital.style.textDecoration = \"none\";\n\n\tital.addEventListener(\n\t\t'click',\n\t\tfunction(event) {\n\t\t\tvar dx = this.getAttribute(\"newX\");\n\t\t\tvar dy = this.getAttribute(\"newY\");\n\t\t\tselect_dest_x.selectedIndex = 2*dx-1;\n\t\t\tselect_dest_y.selectedIndex = 2*dy-1;\n\t\t\tGM_setValue(\"destination_x\", \"\" + dx);\n\t\t\tGM_setValue(\"destination_y\", \"\" + dy);\n\t\t\tcommon_func(event, null);\n\t\t},\n\t\ttrue);\n\n\tital.addEventListener(\n\t\t'mouseover',\n\t\tfunction(event) {\n\t\t\tthis.style.textDecoration = \"underline\";\n\t\t},\n\t\ttrue);\n\n\tital.addEventListener(\n\t\t'mouseout',\n\t\tfunction(event) {\n\t\t\tthis.style.textDecoration = \"none\";\n\t\t},\n\t\ttrue);\n\treturn ital;\n\t// }}}\n}", "function getSelectionAnchor() {\r\n\treturn [selectionAnchorLine, selectionAnchorColumn];\r\n}", "function offsetAnchor() {\n if (location.hash.length !== 0) {\n window.scrollTo(window.scrollX, window.scrollY - 100);\n }\n}", "function enableAnchor(anchor) {\n anchor.style.pointerEvents = \"all\";\n anchor.style.cursor = \"pointer\";\n anchor.className = \"button game-mode-button back-color-1\";\n}", "get anchor() {\n return new FudgeCore.Vector3(this.jointAnchor.x, this.jointAnchor.y, this.jointAnchor.z);\n }", "function moveAlong(movemouse, selected) {\n movemouse.preventDefault();\n var left = parseInt(movemouse.clientX - diffX);\n var top = parseInt(movemouse.clientY - diffY);\n if (top < 0) {\n top = 0;\n }\n if (left < 0) {\n left = 0;\n }\n if (top > window.innerHeight - 1) {\n top = window.innerHeight - 1;\n }\n if (left > window.innerWidth - 1) {\n left = window.innerWidth - 1;\n }\n selected.style.left = left + 'px';\n selected.style.top = top + 'px';\n }", "_onAnchorUpdate()\n {\n this._transformID = -1;\n }", "function determineTextAnchor(point){\n if(Math.abs(point.x) < 0.01 && point.x >= 0){\n return \"middle\"\n }\n else if(point.x > 0){\n return \"start\"\n }\n else{\n return \"end\"\n }\n }", "function alinhar(imagem, x, y){\n\timagem.anchor.x = x;\n\timagem.anchor.y = y;\n}", "function Ma(e,t,a){var r=ca(e,t,\"div\",null,null,!e.options.singleCursorHeightPerLine),f=a.appendChild(n(\"div\",\"聽\",\"CodeMirror-cursor\"));if(f.style.left=r.left+\"px\",f.style.top=r.top+\"px\",f.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+\"px\",r.other){\n // Secondary cursor, shown when on a 'jump' in bi-directional text\n var o=a.appendChild(n(\"div\",\"聽\",\"CodeMirror-cursor CodeMirror-secondarycursor\"));o.style.display=\"\",o.style.left=r.other.left+\"px\",o.style.top=r.other.top+\"px\",o.style.height=.85*(r.other.bottom-r.other.top)+\"px\"}}", "function highlightLink() {\r\n // Extract dimensions / coord from highlighted element\r\n const linkCoords = this.getBoundingClientRect();\r\n // Set the highlight elements dimensions and coords based on THIS' data\r\n highlight.style.width = `${linkCoords.width}px`;\r\n highlight.style.height = `${linkCoords.height}px`;\r\n highlight.style.transform = `translate(${linkCoords.left}px, ${linkCoords.top + window.scrollY}px)`;\r\n}", "function shiftTrackIntoView() {\n\tcancelPlayback();\n\tlet shift = getViewOctaveShift(selectedTrack);\n\ttracks[selectedTrack].octaveShift = shift;\n\ttracks[selectedTrack].semitoneShift = 0;\n\tdocument.getElementById('octaveShift').value = shift;\n\tlevel.noteGroups[selectedTrack].ofsY = tracks[selectedTrack].octaveShift * 12 + tracks[selectedTrack].semitoneShift;\n\tcalculateNoteRange();\n\tadjustZoom();\n\tsoftRefresh();\n\tupdateInstrumentContainer();\n}", "function setSimpleSelection(doc, anchor, head, options) {\r\n setSelection(doc, simpleSelection(anchor, head), options);\r\n}", "function setSimpleSelection(doc, anchor, head, options) {\r\n setSelection(doc, simpleSelection(anchor, head), options);\r\n }", "function moveSelected(delta) {\n setSelectedIndex(selectedIndex + delta);\n }", "function arrowMode() {\r\n\t\tvar move = document.getElementById(\"move\");\r\n\t\tvar select = document.getElementById(\"select\");\r\n\t\tvar scroll = document.getElementById(\"scroll\");\r\n\t\tif (move.checked === true) {\r\n\t\t myDiagram.commandHandler.arrowKeyBehavior = \"move\";\r\n\t\t} else if (select.checked === true) {\r\n\t\t myDiagram.commandHandler.arrowKeyBehavior = \"select\";\r\n\t\t} else if (scroll.checked === true) {\r\n\t\t myDiagram.commandHandler.arrowKeyBehavior = \"scroll\";\r\n\t\t}\r\n\t }", "function setSimpleSelection(doc, anchor, head, options) {\n\t\t setSelection(doc, simpleSelection(anchor, head), options);\n\t\t }", "function setSimpleSelection(doc, anchor, head, options) {\n\t\t setSelection(doc, simpleSelection(anchor, head), options);\n\t\t }", "function offsetAnchor() {\n if (location.hash.length !== 0) {\n // window.scrollTo(window.scrollX, window.scrollY - 140);\n $(\"html\").animate({ scrollTop: $(location.hash).offset().top - 160 }, 500);\n }\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }", "function centerAnchorPoint(layer){\n var comp = app.project.activeItem;\n var x = layer.sourceRectAtTime(comp.time,false).width/2 + layer.sourceRectAtTime(comp.time,false).left;\n var y = layer.sourceRectAtTime(comp.time,false).height/2 + layer.sourceRectAtTime(comp.time,false).top;\n layer.anchorPoint.setValue([x,y]);\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options)\n}", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options)\n}", "function setSimpleSelection(doc, anchor, head, options) {\n\t setSelection(doc, simpleSelection(anchor, head), options);\n\t }", "function setSimpleSelection(doc, anchor, head, options) {\n\t setSelection(doc, simpleSelection(anchor, head), options);\n\t }", "function setSimpleSelection(doc, anchor, head, options) {\n\t setSelection(doc, simpleSelection(anchor, head), options);\n\t }", "function newPos(){\n //Triangle3: using triangle 1 sine, define triangle 3, side A will be the strike power (with correction)\n var triangle3A = strike * 6;\n var triangle3B = Math.round(sine1 * triangle3A,0);\n var triangle3C = Math.round(Math.pow(Math.pow(triangle3A,2)-Math.pow(triangle3B,2),0.5),0);\n\n //Define the new coordinates (newPosX and newPosY), depending on (if) which side mouse is pointing\n if (mousePosX > ballNewPosX){\n ballNewPosX = ballNewPosX - triangle3C - ballWidth/2;\n ballNewPosY = ballNewPosY + triangle3B - ballHeight/2;\n }\n if (mousePosX <= ballNewPosX){\n ballNewPosX = ballNewPosX + triangle3C - ballWidth/2;\n ballNewPosY = ballNewPosY + triangle3B - ballHeight/2;\n }\n}", "function updateAnchorItemsPositions() {\n for (var k = 0; k < anchorBlocks.length; k++) {\n var item = anchorBlocks[k];\n var blockTop = 0;\n var blockH = _utility.wndH;\n if (item.$block.length) {\n blockTop = item.$block.offset().top;\n blockH = item.$block.innerHeight();\n }\n item.activate = blockTop - _utility.wndH / 2;\n item.deactivate = blockTop + blockH - _utility.wndH / 2;\n }\n }", "function scrollToHead (anchor) {\n var item\n try {\n item = $(anchor)\n } catch (e) {\n // fix #286 support hexo v5\n item = $(decodeURI(anchor))\n }\n item.velocity('stop').velocity('scroll', {\n duration: 500,\n easing: 'easeInOutQuart',\n offset: -70,\n })\n }", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n}", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n}", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n}", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n}", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n}", "function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n}" ]
[ "0.6865997", "0.65352046", "0.63302565", "0.6309565", "0.6135887", "0.6132395", "0.6033308", "0.6033308", "0.6033308", "0.5898258", "0.5860216", "0.5860216", "0.5860216", "0.5844974", "0.5740096", "0.5736967", "0.5736967", "0.5736967", "0.5736967", "0.569803", "0.56956744", "0.5647185", "0.5629125", "0.5572312", "0.55476665", "0.5539712", "0.55258137", "0.5517393", "0.55152506", "0.55019003", "0.54789937", "0.5459916", "0.54391015", "0.5432524", "0.542029", "0.54139143", "0.53609854", "0.5336877", "0.5336877", "0.5332756", "0.53321046", "0.5319646", "0.5319342", "0.53139305", "0.53132683", "0.5301415", "0.52998334", "0.52934897", "0.52882755", "0.5271572", "0.5270496", "0.5270377", "0.526394", "0.5248651", "0.5246501", "0.52331716", "0.52327317", "0.52272946", "0.52270186", "0.52270186", "0.5206779", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.5200203", "0.519751", "0.5191643", "0.5191643", "0.5183407", "0.5183407", "0.5183407", "0.5175141", "0.51740026", "0.5173665", "0.516924", "0.516924", "0.516924", "0.516924", "0.516924", "0.516924" ]
0.0
-1
Determines whether an event happened in the gutter, and fires the handlers for the corresponding event.
function gutterEvent(cm, e, type, prevent) { var mX, mY; if (e.touches) { mX = e.touches[0].clientX; mY = e.touches[0].clientY; } else { try { mX = e.clientX; mY = e.clientY; } catch(e$1) { return false } } if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false } if (prevent) { e_preventDefault(e); } var display = cm.display; var lineBox = display.lineDiv.getBoundingClientRect(); if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) } mY -= lineBox.top - display.viewOffset; for (var i = 0; i < cm.display.gutterSpecs.length; ++i) { var g = display.gutters.childNodes[i]; if (g && g.getBoundingClientRect().right >= mX) { var line = lineAtHeight(cm.doc, mY); var gutter = cm.display.gutterSpecs[i]; signal(cm, type, cm, line, gutter.className, e); return e_defaultPrevented(e) } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent, signalfn) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signalfn(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent, signalfn) {\r\n try { var mX = e.clientX, mY = e.clientY; }\r\n catch(e) { return false; }\r\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\r\n if (prevent) e_preventDefault(e);\r\n\r\n var display = cm.display;\r\n var lineBox = display.lineDiv.getBoundingClientRect();\r\n\r\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\r\n mY -= lineBox.top - display.viewOffset;\r\n\r\n for (var i = 0; i < cm.options.gutters.length; ++i) {\r\n var g = display.gutters.childNodes[i];\r\n if (g && g.getBoundingClientRect().right >= mX) {\r\n var line = lineAtHeight(cm.doc, mY);\r\n var gutter = cm.options.gutters[i];\r\n signalfn(cm, type, cm, line, gutter, e);\r\n return e_defaultPrevented(e);\r\n }\r\n }\r\n }", "function gutterEvent(cm, e, type, prevent) {\n\t\t try { var mX = e.clientX, mY = e.clientY; }\n\t\t catch(e) { return false; }\n\t\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n\t\t if (prevent) e_preventDefault(e);\n\t\t\n\t\t var display = cm.display;\n\t\t var lineBox = display.lineDiv.getBoundingClientRect();\n\t\t\n\t\t if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n\t\t mY -= lineBox.top - display.viewOffset;\n\t\t\n\t\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t\t var g = display.gutters.childNodes[i];\n\t\t if (g && g.getBoundingClientRect().right >= mX) {\n\t\t var line = lineAtHeight(cm.doc, mY);\n\t\t var gutter = cm.options.gutters[i];\n\t\t signal(cm, type, cm, line, gutter, e);\n\t\t return e_defaultPrevented(e);\n\t\t }\n\t\t }\n\t\t }", "function gutterEvent(cm, e, type, prevent) {\n\t\t var mX, mY;\n\t\t if (e.touches) {\n\t\t mX = e.touches[0].clientX;\n\t\t mY = e.touches[0].clientY;\n\t\t } else {\n\t\t try { mX = e.clientX; mY = e.clientY; }\n\t\t catch(e$1) { return false }\n\t\t }\n\t\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n\t\t if (prevent) { e_preventDefault(e); }\n\n\t\t var display = cm.display;\n\t\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t\t if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n\t\t mY -= lineBox.top - display.viewOffset;\n\n\t\t for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n\t\t var g = display.gutters.childNodes[i];\n\t\t if (g && g.getBoundingClientRect().right >= mX) {\n\t\t var line = lineAtHeight(cm.doc, mY);\n\t\t var gutter = cm.display.gutterSpecs[i];\n\t\t signal(cm, type, cm, line, gutter.className, e);\n\t\t return e_defaultPrevented(e)\n\t\t }\n\t\t }\n\t\t }", "function gutterEvent(cm, e, type, prevent) {\n\t try { var mX = e.clientX, mY = e.clientY; }\n\t catch(e) { return false; }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n\t if (prevent) e_preventDefault(e);\n\t\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\t\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n\t mY -= lineBox.top - display.viewOffset;\n\t\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e);\n\t }\n\t }\n\t }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try {\n mX = e.clientX;\n mY = e.clientY;\n } catch (e) {\n return false;\n }\n }\n\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) {\n return false;\n }\n\n if (prevent) {\n e_preventDefault(e);\n }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) {\n return e_defaultPrevented(e);\n }\n\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = _lineAtHeight(cm.doc, mY);\n\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n\t try { var mX = e.clientX, mY = e.clientY; }\n\t catch(e) { return false; }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n\t if (prevent) e_preventDefault(e);\n\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n\t mY -= lineBox.top - display.viewOffset;\n\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e);\n\t }\n\t }\n\t }", "function gutterEvent(cm, e, type, prevent) {\n\t try { var mX = e.clientX, mY = e.clientY; }\n\t catch(e) { return false; }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n\t if (prevent) e_preventDefault(e);\n\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n\t mY -= lineBox.top - display.viewOffset;\n\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e);\n\t }\n\t }\n\t }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\r\n var mX, mY;\r\n if (e.touches) {\r\n mX = e.touches[0].clientX;\r\n mY = e.touches[0].clientY;\r\n } else {\r\n try { mX = e.clientX; mY = e.clientY; }\r\n catch(e) { return false }\r\n }\r\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\r\n if (prevent) { e_preventDefault(e); }\r\n\r\n var display = cm.display;\r\n var lineBox = display.lineDiv.getBoundingClientRect();\r\n\r\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\r\n mY -= lineBox.top - display.viewOffset;\r\n\r\n for (var i = 0; i < cm.options.gutters.length; ++i) {\r\n var g = display.gutters.childNodes[i];\r\n if (g && g.getBoundingClientRect().right >= mX) {\r\n var line = lineAtHeight(cm.doc, mY);\r\n var gutter = cm.options.gutters[i];\r\n signal(cm, type, cm, line, gutter, e);\r\n return e_defaultPrevented(e)\r\n }\r\n }\r\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n try { var mX = e.clientX, mY = e.clientY; }\n catch(e) { return false; }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;\n if (prevent) e_preventDefault(e);\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e);\n }\n }\n }", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY\n try { mX = e.clientX; mY = e.clientY }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e) }\n\n var display = cm.display\n var lineBox = display.lineDiv.getBoundingClientRect()\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i]\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY)\n var gutter = cm.options.gutters[i]\n signal(cm, type, cm, line, gutter, e)\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY\n try { mX = e.clientX; mY = e.clientY }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e) }\n\n var display = cm.display\n var lineBox = display.lineDiv.getBoundingClientRect()\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i]\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY)\n var gutter = cm.options.gutters[i]\n signal(cm, type, cm, line, gutter, e)\n return e_defaultPrevented(e)\n }\n }\n}", "function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n try { mX = e.clientX; mY = e.clientY; }\n catch(e) { return false }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.options.gutters.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.options.gutters[i];\n signal(cm, type, cm, line, gutter, e);\n return e_defaultPrevented(e)\n }\n }\n}", "function checkGutterEvents(cm, obj) {\n if (!Code.isScript(this_ref.file)) return\n blanke.cooldownFn(\"checkGutterEvents\", 1000, () => {\n let cur = cm.getCursor()\n let line_text = cm.getLine(cur.line)\n\n Object.values(this_ref.gutterEvents).forEach(v => {\n cm.clearGutter(v.name)\n })\n\n for (let txt in this_ref.gutterEvents) {\n let info = this_ref.gutterEvents[txt]\n if (line_text.match(new RegExp(txt))) {\n let el_gutter = blanke.createElement(\"div\", \"gutter-evt\")\n el_gutter.innerHTML = \"<i class='mdi mdi-flash'></i>\"\n if (info.tooltip) el_gutter.title = info.tooltip\n el_gutter.addEventListener(\"click\", function (e) {\n this_ref.gutterEvents[txt].fn(line_text, cm, cur)\n })\n cm.setGutterMarker(cur.line, info.name, el_gutter)\n }\n }\n })\n }", "function isEvent() {\n trigger = 1;\n if (label === eventLabel) {\n eventTrigger = true;\n return true;\n } else {\n eventTrigger = false;\n return false;\n }\n}", "function handler() {\n fired = true;\n }", "function checkForToggler() {\n var toggler = $(this).find('.menu-toggle');\n if (toggler.length) {\n determineMenuAction.call(toggler[0]);\n }\n }", "function isFired( _event )\n {\n if( !firedProgressEvents ) return false;\n return ( firedProgressEvents.indexOf( _event ) > -1 );\n }", "function checkGemTotal (cell){\n if (currentGems >= 3){\n cell.addEventListener('mousedown', hitAngrySlime)\n console.log('Angry slimes can now be hit!')\n } \n}", "function eventHandlersOnce() {\n\tif (globalDebug) {console.group(\"Event Handlers Once\");}\n\n\tmenuTrigger();\n\n\tif (globalDebug) {console.groupEnd();}\n}", "function isEventHandled(value){return value==='handled'||value===true;}", "guard(e, view) {\n // handled as `contextmenu` type\n if (e.type === 'mousedown' && e.button === 2) {\n return true;\n }\n if (this.options.guard && this.options.guard(e, view)) {\n return true;\n }\n if (e.data && e.data.guarded !== undefined) {\n return e.data.guarded;\n }\n if (view && view.cell && Cell.isCell(view.cell)) {\n return false;\n }\n if (this.svg === e.target ||\n this.container === e.target ||\n JQuery.contains(this.svg, e.target)) {\n return false;\n }\n return true;\n }", "uiEvtMouseInPerformed() {\r\n if (this.m_headerTree.uiEvtMouseInPerformed()) {\r\n return true;\r\n }\r\n this.m_mosPushStat = false;\r\n this.m_mosPushPrvX = 0;\r\n return false;\r\n }", "function triggerAndReturn( context, eventName, data ) {\n var event = $.Event( eventName )\n $( context ).trigger( event, data )\n return !event.isDefaultPrevented()\n }", "trigger(eventName) {\n if (this.events[eventName]) {\n for (let cb of this.events[eventName]) {\n cb();\n }\n }\n }", "function trigger() {\n GEvent.trigger.apply(this, arguments);\n }", "trigger (eventName) {\n if (this.events[eventName]) {\n for (let cb of this.events[eventName]) {\n cb();\n }\n }\n }", "function eventHandler(event) {\n var message = event.data.message;\n var handles = eventMessageDecoder(message);\n\n event.__system = (message.match(/__system/)) ? true : false;\n \n // if callback exists\n if ( handles instanceof Array ) {\n trigger(event, handles);\n }\n else {\n console.warn(\"I see no event handler callbacks for message=\"+event.data.message);\n }\n}", "_events() {\n var _this = this;\n this._pauseEvents();\n if(this.hasNested){\n this.$element.on('postequalized.zf.equalizer', this._bindHandler.onPostEqualizedBound);\n }else{\n this.$element.on('resizeme.zf.trigger', this._bindHandler.onResizeMeBound);\n\t this.$element.on('mutateme.zf.trigger', this._bindHandler.onResizeMeBound);\n }\n this.isOn = true;\n }", "canHandleEvent(target, type) {}", "trigger(eventName) {\n if (this.events[eventName]) {\n for (let cb of this.events[eventName]) {\n cb();\n }\n }\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "triggerMouseEvent(e) {\n // range check for col/row\n if (e.col < 0 || e.col >= this._bufferService.cols\n || e.row < 0 || e.row >= this._bufferService.rows) {\n return false;\n }\n // filter nonsense combinations of button + action\n if (e.button === 4 /* WHEEL */ && e.action === 32 /* MOVE */) {\n return false;\n }\n if (e.button === 3 /* NONE */ && e.action !== 32 /* MOVE */) {\n return false;\n }\n if (e.button !== 4 /* WHEEL */ && (e.action === 2 /* LEFT */ || e.action === 3 /* RIGHT */)) {\n return false;\n }\n // report 1-based coords\n e.col++;\n e.row++;\n // debounce move at grid level\n if (e.action === 32 /* MOVE */ && this._lastEvent && this._compareEvents(this._lastEvent, e)) {\n return false;\n }\n // apply protocol restrictions\n if (!this._protocols[this._activeProtocol].restrict(e)) {\n return false;\n }\n // encode report and send\n const report = this._encodings[this._activeEncoding](e);\n if (report) {\n // always send DEFAULT as binary data\n if (this._activeEncoding === 'DEFAULT') {\n this._coreService.triggerBinaryEvent(report);\n }\n else {\n this._coreService.triggerDataEvent(report, true);\n }\n }\n this._lastEvent = e;\n return true;\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }", "function triggerAndReturn(context, eventName, data) {\r\n var event = $.Event(eventName)\r\n $(context).trigger(event, data)\r\n return !event.isDefaultPrevented()\r\n }", "function trigger(eventName) {\n // Only if have subscribers\n if (typeof subscribers[eventName] !== 'undefined') {\n for(var i = 0, subsCount = subscribers[eventName].length; i < subsCount; i++) {\n subscribers[eventName][i].call(eventName);\n $.event.trigger(eventName);\n }\n console.info('[Event Dispatcher] Event \"' + eventName + '\" dispatched to ' + subscribers[eventName].length + ' function(s).');\n } else {\n console.info(\"[Event Dispatcher] No function subscribed for event '\" + eventName + \"' \");\n }\n }", "function triggerAndReturn(context, eventName, data) {\n\t var event = $.Event(eventName);\n\t $(context).trigger(event, data);\n\t return !event.isDefaultPrevented();\n\t }", "gutter_click(n_line) {\n\t\t\texecute_query_block(n_line);\n\t\t}", "function eventChecker() {\n if(isSubscribed)\n pubsubEvents();\n}", "_handleGridMouseDown(event) {\n return this._handleAllMouseEvents(event)\n }", "handleEvent(event) {\n if (this.isHidden || !this._editor) {\n return;\n }\n switch (event.type) {\n case 'keydown':\n this._evtKeydown(event);\n break;\n case 'mousedown':\n this._evtMousedown(event);\n break;\n case 'scroll':\n this._evtScroll(event);\n break;\n default:\n break;\n }\n }", "eventShouldTriggerStart(event) {\n let node = event.toElement;\n\n do {\n // look for dograin class\n if (node.classList.contains(\"dograin\")) {\n return true;\n }\n\n // climb up to parent\n node = node.parentNode;\n } while (node instanceof HTMLElement && node.parentNode);\n\n return false;\n }", "function triggerIfHandlers(that, handlerListName, event) {\n triggerIfHandlerList(that[handlerListName][event], event)\n triggerIfHandlerList(that[normalHandlerToAllHandlerProperty(handlerListName)], event)\n}", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }", "function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }" ]
[ "0.6422186", "0.6422186", "0.6422186", "0.6422186", "0.6422186", "0.6422186", "0.6422186", "0.6414585", "0.6379669", "0.63603884", "0.63506794", "0.63389903", "0.63349676", "0.63349676", "0.63349676", "0.63349676", "0.63349676", "0.63349676", "0.63208854", "0.63208854", "0.6318542", "0.6318542", "0.6318542", "0.6318542", "0.6276775", "0.6266264", "0.6266264", "0.6266264", "0.6266264", "0.6266264", "0.6266264", "0.6266264", "0.6266264", "0.6266264", "0.6266264", "0.62615615", "0.6238348", "0.6238348", "0.6217476", "0.61782426", "0.5693947", "0.5385206", "0.5364854", "0.53213155", "0.5271996", "0.5242046", "0.5226134", "0.51535046", "0.5142549", "0.5070525", "0.5022029", "0.5000003", "0.49957725", "0.4979823", "0.4972584", "0.49721068", "0.49692032", "0.4969008", "0.4956113", "0.49503815", "0.49503815", "0.49503815", "0.49503815", "0.49503815", "0.49503815", "0.49503815", "0.49503815", "0.49503815", "0.49503815", "0.49448332", "0.49309278", "0.49285865", "0.49216577", "0.49116445", "0.489848", "0.4892804", "0.4888972", "0.48849782", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837", "0.4884837" ]
0.63234776
23
CONTEXT MENU HANDLING To make the context menu work, we need to briefly unhide the textarea (making it as unobtrusive as possible) to let the rightclick take effect on it.
function onContextMenu(cm, e) { if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) { return } if (signalDOMEvent(cm, e, "contextmenu")) { return } if (!captureRightClick) { cm.display.input.onContextMenu(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rightClickHandler(ev, textarea, screenElement, selectionService, shouldSelectWord) {\n moveTextAreaUnderMouseCursor(ev, textarea, screenElement);\n if (shouldSelectWord) {\n selectionService.rightClickSelect(ev);\n }\n // Get textarea ready to copy from the context menu\n textarea.value = selectionService.selectionText;\n textarea.select();\n}", "handleContextMenu(event) {\n event.preventDefault();\n return false;\n }", "function ContextMenuClickHandler() {\n $(settings.menuSelector)\n .off('click')\n .on('click', function(e) {\n $(this).hide();\n\n var $invokedOn = $(this).data(\"invokedOn\");\n var $selectedMenu = $(e.target);\n\n settings.menuSelected.call($(this), $invokedOn, $selectedMenu);\n });\n\n }", "function deactivateContextMenu() {\n $('#canvas-contextmenu').removeClass('active');\n}", "function modifyEventContextMenu() {\n displayEventEditWindow();\n}", "function onHiddenContextMenuHandler () {\n myMenu_open = false; // This sidebar instance menu closed, do not interpret onClicked events anymore\n}", "function contextMenu(e){\r\n\tprintln(\"context\");\r\n\treturn false;\r\n}", "function nocontextmenu() {\n\t\t\t\ttry {\n\t\t\t\t\tevent.cancelBubble = true;\n\t\t\t\t\tevent.returnValue = false;\n\t\t\t\t\treturn false;\n\t\t\t\t} catch (err) {\n\t\t\t\t\tiLog(\"nocontextmenu\", err, Log.Type.Error);\n\t\t\t\t}\n\t\t\t}", "onAfterContextMenuShow() {\n const contextMenu = this.hot.getPlugin('contextMenu');\n const data = contextMenu.menu.hotMenu.getData();\n\n // find position of 'copy' option.\n arrayEach(data, (item, index) => {\n if (item.key === 'copy') {\n let zeroClipboardInstance = new ZeroClipboard(contextMenu.menu.hotMenu.getCell(index, 0));\n\n zeroClipboardInstance.off();\n zeroClipboardInstance.on('copy', (event) => {\n let clipboard = event.clipboardData;\n\n clipboard.setData('text/plain', this.getCopyValue());\n this.hot.getSettings().outsideClickDeselects = this.outsideClickDeselectsCache;\n });\n\n // hide copy/paste btn when error, edit by xp 2015.12.15\n zeroClipboardInstance.on('error', (function(){\n let $menuItems = $('.htContextMenu tbody tr');\n $($menuItems[0]).hide();\n $($menuItems[1]).hide();\n $('.htSeparator').first().hide();\n }));\n\n return false;\n }\n });\n }", "function contextMenu(e) {\n\t\t\tif (result.allowContextMenu) return true;\n\t\t\te.preventDefault();\n\t\t\treturn false;\n\t\t}", "function PopupOnContextMenu() { return false ; }", "function PopupOnContextMenu() { return false ; }", "function handleContextMenu(event) {\n\tconsole.log(\"Contextual Menu\");\n\tconsole.log( event.target.nodeName.toLowerCase() );\n\tif ( event.target.nodeName.toLowerCase() != \"a\" ) {\n\t\t//\tGet disabling to work and add on/off preference for this feature\n\t\t// safari.self.tab.dispatchMessage(\"disable\", true);\n\t\tsafari.self.tab.dispatchMessage(\"getLink\", document.URL);\n\t\tconsole.log(document.URL);\n\t} else {\n\t\tsafari.self.tab.dispatchMessage(\"getLink\", event.target.href);\n\t\tconsole.log(event.target.href);\t//\tFor debugging\n\t}\n}", "beforeContextMenuShow() {}", "beforeContextMenuShow() {}", "function qf(e,t){Pt(e.display,t)||jf(e,t)||Ne(e,t,\"contextmenu\")||e.display.input.onContextMenu(t)}", "function detachContextMenus() {\n $(\".graph .node\").unbind(\"contextmenu\"); \n }", "function onHiddenContextMenuHandler () {\r\n // Reset remembered bnId if any\r\n lastMenuBnId = undefined;\r\n}", "function detachContextMenus() {\n $('.graph .node').unbind('contextmenu');\n }", "function Document_OnContextMenu( e )\n{\n\tif ( !e.target._FCKShowContextMenu )\n\t\te.preventDefault() ;\n}", "contextMenu(x, y, _isLeftButton) {}", "function canvasContextMenuEv(event) {\n event.preventDefault(); // this.activeContextMenu();\n}", "function rightClickMenu(ctx) {\n window.rightClickCtx = ctx\n $(fitStrechBtn).text(\n window\n .references[ctx.target.id]\n .data.metadata.ratio === 'fit' ? \n 'Strech ratio' : 'Fit ratio'\n )\n\n $(contextMenu).css({\n 'top': `${ctx.pageY - 15}px`, \n 'left': `${ctx.pageX + 15}px`\n }).show();\n ctx.preventDefault();\n}", "function __onContextShowNormal() {\n if (self._contextTimer) {\n clearTimeout(self._contextTimer);\n }\n\n $(\".wcFrame\").contextMenu(false);\n self._contextTimer = setTimeout(function () {\n $(\".wcFrame\").contextMenu(true);\n self._contextTimer = null;\n }, 100);\n return true;\n }", "function contextmenu(event) {\n if (event.preventDefault != undefined)\n event.preventDefault();\n if (event.stopPropagation != undefined)\n event.stopPropagation();\n return false;\n }", "function contextmenu(event) {\n if (event.preventDefault != undefined)\n event.preventDefault();\n if (event.stopPropagation != undefined)\n event.stopPropagation();\n return false;\n }", "function ContextMenuEvent(ev) {\n\t// Ignore if the cursor isn't locked.\n\tif (!document.pointerLockElement) {\n\t\treturn;\n\t}\n\n\t// Ignore default handlers.\n\tev.preventDefault();\n\tev.stopPropagation();\n}", "function noContextMenuHandler(evt) {\n evt.preventDefault();\n }", "function onContextMenu(cm, e) {\n\t\t if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) { return }\n\t\t if (signalDOMEvent(cm, e, \"contextmenu\")) { return }\n\t\t if (!captureRightClick) { cm.display.input.onContextMenu(e); }\n\t\t }", "function rightClick()\n{\n\ttry {\n\t\tvar e = window.event; \n\t\tif(e != null && e.button)\n\t\t{\n\t\t\tif( e.target.parentElement.className.indexOf('haas') == -1 && e.target.parentElement.parentElement.className.indexOf('haas') == -1)\n\t\t\t\ttoggleContextMenu(null);\n\t\t}\n\t} catch(ex) {}\n}", "function hide() {\n if (contextMenu != null) {\n contextMenu.hide();\n }\n}", "translateContextMenu() {\n if (this.contextMenuExtension && this.contextMenuExtension.translateContextMenu) {\n this.contextMenuExtension.translateContextMenu();\n }\n }", "function xcustom_onContextMenu(event) {\r\n console.log('there we are...');\r\n}", "function onContextMenu(e) {\n\tif (e.target && e.target.object && e.target.object instanceof Movable) {\n\t\te.preventDefault();\n\t}\n\tonMouseUp(e);\n}", "handleClickOnContext(evt) {\n if (evt.altKey) {\n // panning\n return;\n }\n // if (isMouseEventPlatformModifierKey(evt)) \n // ctrl(meta) + click: select trace\n this.remote.selectFirstTrace();\n document.getSelection().removeAllRanges();\n // else {\n // // click: show trace\n // this.remote.goToFirstTrace();\n // }\n }", "function lol(){\r\n\tvar cancellationEvent = document.addEventListener('contextmenu', event => event.preventDefault());\r\n}", "function hideContextMenu() {\n let contextMenu = document.getElementsByClassName(\"context-menu\")[0];\n contextMenu.style.display = \"none\";\n}", "internalShowContextMenu(event) {\n const me = this;\n\n if (me.disabled) {\n return;\n }\n\n const data = me.getDataFromEvent(event);\n\n if (me.shouldShowMenu(data)) {\n me.showContextMenu(data);\n }\n }", "function disableContextMenu() {\n document.addEventListener('contextmenu', e => e.preventDefault());\n}", "closeCtxMenu(state) {\n if (state.ctxMenu) {\n if (state.ctxMenu.off) state.ctxMenu.off()\n state.ctxMenu = null\n }\n }", "function onContextMenu_Item(event, mEdit, mCopy, callbackEvent, callbackWindow, jaloPk, webroot) {\r\n\tvar element = getMenuHTMLElement();\r\n\tshowCMSMenu( element, event);\r\n\taddItemLinks(element, mEdit, mCopy, callbackEvent, callbackWindow, jaloPk, webroot);\r\n\tevent.cancelBubble=true;\r\n\treturn false;\r\n}", "function onContextMenu(cm, e) {\r\n if (signalDOMEvent(cm, e, \"contextmenu\")) return;\r\n var display = cm.display;\r\n if (eventInWidget(display, e) || contextMenuInGutter(cm, e)) return;\r\n\r\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\r\n if (!pos || presto) return; // Opera is difficult.\r\n\r\n // Reset the current text selection only if the click is done outside of the selection\r\n // and 'resetSelectionOnContextMenu' option is true.\r\n var reset = cm.options.resetSelectionOnContextMenu;\r\n if (reset && cm.doc.sel.contains(pos) == -1)\r\n operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);\r\n\r\n var oldCSS = display.input.style.cssText;\r\n display.inputDiv.style.position = \"absolute\";\r\n display.input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\r\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: \" +\r\n (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") +\r\n \"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\r\n if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)\r\n focusInput(cm);\r\n if (webkit) window.scrollTo(null, oldScrollY);\r\n resetInput(cm);\r\n // Adds \"Select all\" to context menu in FF\r\n if (!cm.somethingSelected()) display.input.value = display.prevInput = \" \";\r\n display.selForContextMenu = cm.doc.sel;\r\n clearTimeout(display.detectingSelectAll);\r\n\r\n // Select-all will be greyed out if there's nothing to select, so\r\n // this adds a zero-width space so that we can later check whether\r\n // it got selected.\r\n function prepareSelectAllHack() {\r\n if (display.input.selectionStart != null) {\r\n var selected = cm.somethingSelected();\r\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\r\n display.prevInput = selected ? \"\" : \"\\u200b\";\r\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\r\n // Re-set this, in case some other handler touched the\r\n // selection in the meantime.\r\n display.selForContextMenu = cm.doc.sel;\r\n }\r\n }\r\n function rehide() {\r\n display.inputDiv.style.position = \"relative\";\r\n display.input.style.cssText = oldCSS;\r\n if (ie && ie_version < 9) display.scrollbarV.scrollTop = display.scroller.scrollTop = scrollPos;\r\n slowPoll(cm);\r\n\r\n // Try to detect the user choosing select-all\r\n if (display.input.selectionStart != null) {\r\n if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();\r\n var i = 0, poll = function() {\r\n if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)\r\n operation(cm, commands.selectAll)(cm);\r\n else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);\r\n else resetInput(cm);\r\n };\r\n display.detectingSelectAll = setTimeout(poll, 200);\r\n }\r\n }\r\n\r\n if (ie && ie_version >= 9) prepareSelectAllHack();\r\n if (captureRightClick) {\r\n e_stop(e);\r\n var mouseup = function() {\r\n off(window, \"mouseup\", mouseup);\r\n setTimeout(rehide, 20);\r\n };\r\n on(window, \"mouseup\", mouseup);\r\n } else {\r\n setTimeout(rehide, 50);\r\n }\r\n }", "function context_menu(params,event) {\n\tel=document.getElementById(\"cm\");\n\to=event.srcElement;\n\tx=event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;\n\ty=event.clientY+document.documentElement.scrollTop+document.body.scrollTop;\n\tel.innerHTML='';\n\tfor (k in params) {\n\t//if params[k]=='space' then draw line (separator)\n\t\tif (params[k]=='space') { el.innerHTML+='<hr size=1>';\n\t//if menu item is disabled\n\t\t} else if (params[k][\"disabled\"]) { el.innerHTML+='<a class=\"cm_gray\" href=\"\" onclick=\"return false;\" title=\"'+params[k][\"title\"]+'\" onmouseover=\"window.status=this.title;return true;\" onmouseout=\"window.status=&quot;&quot; ;return true;\">&nbsp;&nbsp;&nbsp;&nbsp;'+params[k][\"value\"]+\"</a><br>\";\n\t//if current window is not opened in frame\n\t\t} else if (params[k][\"frame\"]==\"off\") { if (window.frameElement==\"[object HTMLFrameElement]\") { el.innerHTML+='<a class=\"cm_black\" href=\"\"'+\"onclick=\"+'window.open('+\"'\"+params[k][\"href\"]+\"','','statusbar,menubar,location'); return false;\"+'\" title=\"'+params[k][\"title\"]+'\" onmouseover=\"window.status=this.title;return true;\" onmouseout=\"window.status=&quot;&quot; ;return true;\">&nbsp;&nbsp;&nbsp;&nbsp;'+params[k][\"value\"]+\"</a><br>\";} else { el.innerHTML+='<a class=\"cm_black\" href=\"\"'+\"onclick=\"+'window.open('+\"'\"+params[k][\"href\"]+\"','','statusbar,menubar,location');return false;\"+'\" title=\"'+params[k][\"title\"]+'\" onmouseover=\"window.status=this.title;return true;\" onmouseout=\"window.status=&quot;&quot; ;return true;\">&nbsp;&nbsp;&nbsp;&nbsp;'+params[k][\"value\"]+\"</a><br>\";}\n\t//if current window must be opened in frame\n\t\t} else if (params[k][\"frame\"]==\"on\") { el.innerHTML+='<a class=\"cm_black\" href=\"\"'+'onclick='+\"parent\"+params[k][\"taget\"]+\".location.href='\"+params[k][\"href\"]+\"' return false;\"+' title=\"'+params[k][\"title\"]+'\" onmouseover=\"window.status=this.title;return true;\" onmouseout=\"window.status=&quot;&quot; ;return true;\">&nbsp;&nbsp;&nbsp;&nbsp;'+params[k][\"value\"]+\"</a><br>\";}\n\t}\n\tel.style.visibility=\"visible\";\n\tel.style.display=\"block\";\n\theight=el.scrollHeight-20;\n\tif (window.opera) height+=30;//stupid opera...\n\tif (event.clientY+height>document.body.clientHeight) { y-=height+14 } else { y-=2 }\n\tel.style.left=x+\"px\";\n\tel.style.top=y+\"px\";\n\tel.style.visibility=\"hidden\";\n\tel.style.display=\"none\";\n\tel.style.visibility=\"visible\";\n\tel.style.display=\"block\";\n\tevent.returnValue=false;\n}", "function contextListener() {\n document.addEventListener(\"contextmenu\", function (e) {\n console.log(e);\n //taskItemInContext = true; //clickInsideElement(e, articeContentClassName);\n e.preventDefault();\n \n \n if(e.target.tagName == \"IMG\")\n {\n selectedImg = e.target;\n if (window.getSelection)\n window.getSelection().removeAllRanges();\n else\n document.selection.empty();\n toggleMenuOn();\n positionMenu(e);\n }\n else if (selectedText() != \"\") {\n selectedImg = null;\n toggleMenuOn();\n positionMenu(e);\n }\n else\n {\n //taskItemInContext = null;\n toggleMenuOff();\n }\n });\n }", "function hide() {\n\t if (contextMenu != null) {\n\t contextMenu.hide();\n\t }\n\t}", "function hide() {\n\t if (contextMenu != null) {\n\t contextMenu.hide();\n\t }\n\t}", "function itinFromHere(){\n\tremoveContextualMenu()\n}", "function onContextMenu(cm, e) {\n if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n var display = cm.display;\n if (eventInWidget(display, e) || contextMenuInGutter(cm, e)) return;\n\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n if (!pos || presto) return; // Opera is difficult.\n\n // Reset the current text selection only if the click is done outside of the selection\n // and 'resetSelectionOnContextMenu' option is true.\n var reset = cm.options.resetSelectionOnContextMenu;\n if (reset && cm.doc.sel.contains(pos) == -1)\n operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);\n\n var oldCSS = display.input.style.cssText;\n display.inputDiv.style.position = \"absolute\";\n display.input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: \" +\n (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") +\n \"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n focusInput(cm);\n resetInput(cm);\n // Adds \"Select all\" to context menu in FF\n if (!cm.somethingSelected()) display.input.value = display.prevInput = \" \";\n display.selForContextMenu = cm.doc.sel;\n clearTimeout(display.detectingSelectAll);\n\n // Select-all will be greyed out if there's nothing to select, so\n // this adds a zero-width space so that we can later check whether\n // it got selected.\n function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }\n function rehide() {\n display.inputDiv.style.position = \"relative\";\n display.input.style.cssText = oldCSS;\n if (ie && ie_version < 9) display.scrollbarV.scrollTop = display.scroller.scrollTop = scrollPos;\n slowPoll(cm);\n\n // Try to detect the user choosing select-all\n if (display.input.selectionStart != null) {\n if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();\n var i = 0, poll = function() {\n if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)\n operation(cm, commands.selectAll)(cm);\n else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);\n else resetInput(cm);\n };\n display.detectingSelectAll = setTimeout(poll, 200);\n }\n }\n\n if (ie && ie_version >= 9) prepareSelectAllHack();\n if (captureRightClick) {\n e_stop(e);\n var mouseup = function() {\n off(window, \"mouseup\", mouseup);\n setTimeout(rehide, 20);\n };\n on(window, \"mouseup\", mouseup);\n } else {\n setTimeout(rehide, 50);\n }\n }", "function onContextMenu(cm, e) {\n if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n var display = cm.display;\n if (eventInWidget(display, e) || contextMenuInGutter(cm, e)) return;\n\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n if (!pos || presto) return; // Opera is difficult.\n\n // Reset the current text selection only if the click is done outside of the selection\n // and 'resetSelectionOnContextMenu' option is true.\n var reset = cm.options.resetSelectionOnContextMenu;\n if (reset && cm.doc.sel.contains(pos) == -1)\n operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);\n\n var oldCSS = display.input.style.cssText;\n display.inputDiv.style.position = \"absolute\";\n display.input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: \" +\n (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") +\n \"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)\n focusInput(cm);\n if (webkit) window.scrollTo(null, oldScrollY);\n resetInput(cm);\n // Adds \"Select all\" to context menu in FF\n if (!cm.somethingSelected()) display.input.value = display.prevInput = \" \";\n display.selForContextMenu = cm.doc.sel;\n clearTimeout(display.detectingSelectAll);\n\n // Select-all will be greyed out if there's nothing to select, so\n // this adds a zero-width space so that we can later check whether\n // it got selected.\n function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }\n function rehide() {\n display.inputDiv.style.position = \"relative\";\n display.input.style.cssText = oldCSS;\n if (ie && ie_version < 9) display.scrollbarV.scrollTop = display.scroller.scrollTop = scrollPos;\n slowPoll(cm);\n\n // Try to detect the user choosing select-all\n if (display.input.selectionStart != null) {\n if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();\n var i = 0, poll = function() {\n if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)\n operation(cm, commands.selectAll)(cm);\n else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);\n else resetInput(cm);\n };\n display.detectingSelectAll = setTimeout(poll, 200);\n }\n }\n\n if (ie && ie_version >= 9) prepareSelectAllHack();\n if (captureRightClick) {\n e_stop(e);\n var mouseup = function() {\n off(window, \"mouseup\", mouseup);\n setTimeout(rehide, 20);\n };\n on(window, \"mouseup\", mouseup);\n } else {\n setTimeout(rehide, 50);\n }\n }", "function onContextMenu(cm, e) {\n if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n var display = cm.display;\n if (eventInWidget(display, e) || contextMenuInGutter(cm, e)) return;\n\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n if (!pos || presto) return; // Opera is difficult.\n\n // Reset the current text selection only if the click is done outside of the selection\n // and 'resetSelectionOnContextMenu' option is true.\n var reset = cm.options.resetSelectionOnContextMenu;\n if (reset && cm.doc.sel.contains(pos) == -1)\n operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);\n\n var oldCSS = display.input.style.cssText;\n display.inputDiv.style.position = \"absolute\";\n display.input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: \" +\n (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") +\n \"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)\n focusInput(cm);\n if (webkit) window.scrollTo(null, oldScrollY);\n resetInput(cm);\n // Adds \"Select all\" to context menu in FF\n if (!cm.somethingSelected()) display.input.value = display.prevInput = \" \";\n display.selForContextMenu = cm.doc.sel;\n clearTimeout(display.detectingSelectAll);\n\n // Select-all will be greyed out if there's nothing to select, so\n // this adds a zero-width space so that we can later check whether\n // it got selected.\n function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }\n function rehide() {\n display.inputDiv.style.position = \"relative\";\n display.input.style.cssText = oldCSS;\n if (ie && ie_version < 9) display.scrollbarV.scrollTop = display.scroller.scrollTop = scrollPos;\n slowPoll(cm);\n\n // Try to detect the user choosing select-all\n if (display.input.selectionStart != null) {\n if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();\n var i = 0, poll = function() {\n if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)\n operation(cm, commands.selectAll)(cm);\n else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);\n else resetInput(cm);\n };\n display.detectingSelectAll = setTimeout(poll, 200);\n }\n }\n\n if (ie && ie_version >= 9) prepareSelectAllHack();\n if (captureRightClick) {\n e_stop(e);\n var mouseup = function() {\n off(window, \"mouseup\", mouseup);\n setTimeout(rehide, 20);\n };\n on(window, \"mouseup\", mouseup);\n } else {\n setTimeout(rehide, 50);\n }\n }", "function removeContextMenu() {\n if (contextMenuId) {\n chrome.contextMenus.remove(contextMenuId);\n contextMenuId = null;\n }\n}", "function handleContextMenu(info, tab) {\n //store selected text\n selectedText = info.selectionText;\n //open new tab to create issue \n openMainPage(\"/new_issue\");\n}", "function mymenu_popupshowing(event)\n{\n var element = event.target.triggerNode; // get the clicked object\n \n //var isTextArea = element instanceof HTMLTextAreaElement;\n if (!document.getElementById(\"mybrowser\").contentWindow.should_popupmenu(element)) {\n //alert(element);\n event.preventDefault(); // prevent the menu from appearing\n }\n}", "function itinToHere(){\n\tremoveContextualMenu()\n\n}", "function onContextMenu(cm, e) {\n\t\t if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;\n\t\t if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n\t\t cm.display.input.onContextMenu(e);\n\t\t }", "function onContextMenu(cm, e) {\n if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n var display = cm.display;\n if (eventInWidget(display, e) || contextMenuInGutter(cm, e)) return;\n\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n if (!pos || presto) return; // Opera is difficult.\n\n // Reset the current text selection only if the click is done outside of the selection\n // and 'resetSelectionOnContextMenu' option is true.\n var reset = cm.options.resetSelectionOnContextMenu;\n if (reset && cm.doc.sel.contains(pos) == -1)\n operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);\n\n var oldCSS = display.input.style.cssText;\n display.inputDiv.style.position = \"absolute\";\n display.input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: \" +\n (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") +\n \"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)\n focusInput(cm);\n if (webkit) window.scrollTo(null, oldScrollY);\n resetInput(cm);\n // Adds \"Select all\" to context menu in FF\n if (!cm.somethingSelected()) display.input.value = display.prevInput = \" \";\n display.contextMenuPending = true;\n display.selForContextMenu = cm.doc.sel;\n clearTimeout(display.detectingSelectAll);\n\n // Select-all will be greyed out if there's nothing to select, so\n // this adds a zero-width space so that we can later check whether\n // it got selected.\n function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }\n function rehide() {\n display.contextMenuPending = false;\n display.inputDiv.style.position = \"relative\";\n display.input.style.cssText = oldCSS;\n if (ie && ie_version < 9) display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos);\n slowPoll(cm);\n\n // Try to detect the user choosing select-all\n if (display.input.selectionStart != null) {\n if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();\n var i = 0, poll = function() {\n if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)\n operation(cm, commands.selectAll)(cm);\n else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);\n else resetInput(cm);\n };\n display.detectingSelectAll = setTimeout(poll, 200);\n }\n }\n\n if (ie && ie_version >= 9) prepareSelectAllHack();\n if (captureRightClick) {\n e_stop(e);\n var mouseup = function() {\n off(window, \"mouseup\", mouseup);\n setTimeout(rehide, 20);\n };\n on(window, \"mouseup\", mouseup);\n } else {\n setTimeout(rehide, 50);\n }\n }", "function onContextMenu(cm, e) {\n if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n var display = cm.display;\n if (eventInWidget(display, e) || contextMenuInGutter(cm, e)) return;\n\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n if (!pos || presto) return; // Opera is difficult.\n\n // Reset the current text selection only if the click is done outside of the selection\n // and 'resetSelectionOnContextMenu' option is true.\n var reset = cm.options.resetSelectionOnContextMenu;\n if (reset && cm.doc.sel.contains(pos) == -1)\n operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);\n\n var oldCSS = display.input.style.cssText;\n display.inputDiv.style.position = \"absolute\";\n display.input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: \" +\n (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") +\n \"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)\n focusInput(cm);\n if (webkit) window.scrollTo(null, oldScrollY);\n resetInput(cm);\n // Adds \"Select all\" to context menu in FF\n if (!cm.somethingSelected()) display.input.value = display.prevInput = \" \";\n display.contextMenuPending = true;\n display.selForContextMenu = cm.doc.sel;\n clearTimeout(display.detectingSelectAll);\n\n // Select-all will be greyed out if there's nothing to select, so\n // this adds a zero-width space so that we can later check whether\n // it got selected.\n function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }\n function rehide() {\n display.contextMenuPending = false;\n display.inputDiv.style.position = \"relative\";\n display.input.style.cssText = oldCSS;\n if (ie && ie_version < 9) display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos);\n slowPoll(cm);\n\n // Try to detect the user choosing select-all\n if (display.input.selectionStart != null) {\n if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();\n var i = 0, poll = function() {\n if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)\n operation(cm, commands.selectAll)(cm);\n else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);\n else resetInput(cm);\n };\n display.detectingSelectAll = setTimeout(poll, 200);\n }\n }\n\n if (ie && ie_version >= 9) prepareSelectAllHack();\n if (captureRightClick) {\n e_stop(e);\n var mouseup = function() {\n off(window, \"mouseup\", mouseup);\n setTimeout(rehide, 20);\n };\n on(window, \"mouseup\", mouseup);\n } else {\n setTimeout(rehide, 50);\n }\n }", "evtContextMenu(event) {\n this._contextMenuEvent = event;\n if (event.shiftKey) {\n return;\n }\n const opened = this.contextMenu.open(event);\n if (opened) {\n const items = this.contextMenu.menu.items;\n // If only the context menu information will be shown,\n // with no real commands, close the context menu and\n // allow the native one to open.\n if (items.length === 1 &&\n items[0].command === Private.CONTEXT_MENU_INFO) {\n this.contextMenu.menu.close();\n return;\n }\n // Stop propagation and allow the application context menu to show.\n event.preventDefault();\n event.stopPropagation();\n }\n }", "function noContextMenuHandler(e) {\n\t e.preventDefault();\n\t }", "function disableContextMenu() {\r\n\tvar user = getCurrenUserID(); // get the current user_id\r\n\tif (!user) {\r\n\t\t$(\"#vakata-contextmenu\").remove();\r\n\t\treturn;\r\n\t}\r\n}", "onRightClick() {\n const menuConfig = Menu.buildFromTemplate([\n {\n label: 'Quit',\n click: () => app.quit()\n }\n ]);\n this.popUpContextMenu(menuConfig);\n }", "function displayContextMenu(e,file,folder,isLin) {\n\n\tstopBrowserActions(e);\n\tshowFileContextMenu(e,file,folder,isLin);\n}", "testContextMenuKeyboard() {\n popup.attach(anchor, null, null, true);\n popup.hide();\n assertFalse(popup.isVisible());\n events.fireKeySequence(anchor, KeyCodes.SPACE);\n assertFalse(popup.isVisible());\n events.fireKeySequence(anchor, KeyCodes.ENTER);\n assertFalse(popup.isVisible());\n }", "contextMenu(e) {\n this._modifiers(e);\n this.status.button1 = false;\n this.status.button2 = true;\n this.handleMouseUp(e);\n this.handleClick(e);\n const focused = this._listeners.focused;\n const _wantsToStopTheEvent = [];\n const _contextMenuable = this._listeners.byEvent.contextMenu;\n this._filterViewIdToValidView(focused, _viewId => {\n return _contextMenuable.includes(_viewId);\n }).filter(_ctrl => {\n return this.isFunction(_ctrl.contextMenu);\n }).forEach(_ctrl => {\n if (_ctrl.contextMenu()) {\n _wantsToStopTheEvent.push(_ctrl.viewId);\n }\n });\n this.status.button2 = false;\n if (_wantsToStopTheEvent.length !== 0) {\n Event.stop(e);\n }\n }", "contextMenu(e) {\n this._modifiers(e);\n this.status.button1 = false;\n this.status.button2 = true;\n this.handleMouseUp(e);\n this.handleClick(e);\n const focused = this._listeners.focused;\n const _wantsToStopTheEvent = [];\n const _contextMenuable = this._listeners.byEvent.contextMenu;\n this._filterViewIdToValidView(focused, _viewId => {\n return _contextMenuable.includes(_viewId);\n }).filter(_ctrl => {\n return this.isFunction(_ctrl.contextMenu);\n }).forEach(_ctrl => {\n if (_ctrl.contextMenu()) {\n _wantsToStopTheEvent.push(_ctrl.viewId);\n }\n });\n this.status.button2 = false;\n if (_wantsToStopTheEvent.length !== 0) {\n Event.stop(e);\n }\n }", "function showUIActionContext(event) {\n if (!g_user.hasRole(\"ui_action_admin\"))\n return;\n var element = Event.element(event);\n if (element.tagName.toLowerCase() == \"span\")\n element = element.parentNode;\n var id = element.getAttribute(\"gsft_id\");\n var mcm = new GwtContextMenu('context_menu_action_' + id);\n mcm.clear();\n mcm.addURL(getMessage('Edit UI Action'), \"sys_ui_action.do?sys_id=\" + id, \"gsft_main\");\n contextShow(event, mcm.getID(), 500, 0, 0);\n Event.stop(event);\n}", "function onContextMenu(cm, e) {\n\t if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;\n\t if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n\t cm.display.input.onContextMenu(e);\n\t }", "function onContextMenu(cm, e) {\n\t if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;\n\t if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n\t cm.display.input.onContextMenu(e);\n\t }", "function onContextMenu(cm, e) {\n\t if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;\n\t if (signalDOMEvent(cm, e, \"contextmenu\")) return;\n\t cm.display.input.onContextMenu(e);\n\t }", "function onContextMenu(cm, e) {\n if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) {\n return;\n }\n\n if (signalDOMEvent(cm, e, \"contextmenu\")) {\n return;\n }\n\n if (!captureRightClick) {\n cm.display.input.onContextMenu(e);\n }\n }", "function listenContextMenu() {\n\n\tif (globalBrowser == \"ie\")\n\t\tdocument.attachEvent(\"onclick\", hideFileContextMenu);\n\telse\n\t\tdocument.addEventListener(\"click\", hideFileContextMenu, true);\n}", "function pressRightClick() { return false; }", "function onContextMenu(cm, e) {\n if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;\n cm.display.input.onContextMenu(e);\n }", "function initEditorContextMenuItems(aEvent)\n{\n var shouldShowEditPage = !gContextMenu.onImage && !gContextMenu.onLink && !gContextMenu.onTextInput && !gContextMenu.inDirList;\n gContextMenu.showItem( \"context-editpage\", shouldShowEditPage );\n\n var shouldShowEditLink = gContextMenu.onSaveableLink; \n gContextMenu.showItem( \"context-editlink\", shouldShowEditLink );\n\n // Hide the applications separator if there's no add-on apps present. \n gContextMenu.showItem(\"context-sep-apps\", gContextMenu.shouldShowSeparator(\"context-sep-apps\"));\n}", "function antiContextMenuHook() {\n\t// Note: Opera is not hookable.\n\tvar showAlert = function() { alert('All images are protected by Copyright. Do not use without permission.'); }\n\tvar mdClick = function(e) {\n\t\tif (!document.all) {\n\t\t\tif (e.button == 2 || e.button == 3)\n\t\t\t\tshowAlert();\n\t\t}\n\t\telse if (event && event.button == 2)\n\t\t\tshowAlert();\n\t}\n\tvar cmClick = function(e) {\n\t\tif (navigator.userAgent.toLowerCase().indexOf('khtml') > -1) {\n\t\t\t// Safari, Konquerer\n\t\t\tif (e.preventDefault)\n\t\t\t\te.preventDefault();\n\t\t\tshowAlert();\n\t\t}\n\t\tif (e.stopPropagation)\n\t\t\te.stopPropagation(); // Mozilla Firefox 2.0\n\t\treturn false; // IE 6.0 and 7.0\n\t}\n\tdocument.onmousedown = mdClick;\n\tdocument.oncontextmenu = cmClick;\n}", "function removeContextualMenu(){\n\t$(\".contextualMenu\").remove();\n\tcontextualMenuEvtPosition = null;\n}", "function contextmenu_callback(key, options) {\n\tvar module = overlay.win.document.navicell_module_name;\n\twindow.console.log(module + \" \" + overlay.clicked_node_ctxmenu);\n\t$.each(overlay.win.bubble_list, function() {\n\t\tthis.close();\n\t});\n\tif (key == \"center\") {\n\t\toverlay.win.map.setCenter(overlay.clicked_latlng_ctxmenu);\n\t\tnv_perform(\"nv_select_entity\", overlay.win, overlay.clicked_node_ctxmenu.user_id, \"select\", false, overlay.clicked_boundbox_ctxmenu);\n\t} else if (key == \"reaction_select\" || key == \"reaction_select_highlight\") {\n\t\toverlay.neighbour_of_box = overlay.clicked_center_box_ctxmenu;\n\t\tif (key == \"reaction_select_highlight\") {\n\t\t\tarray_push_all(overlay.highlight_boxes, overlay.RGN_highlight_boxes);\n\t\t}\n\t\tnavicell.mapdata.findJXTree(overlay.win, overlay.RGN_select_entities, true, 'subtree', {div: $(\"#result_tree_contents\", overlay.win.document).get(0), select_neighbours: true, result_title: ' '});\n\t\t$(\"#right_tabs\", window.document).tabs(\"option\", \"active\", 1);\n\t} else if (key == \"interact_select\" || key == \"interact_select_highlight\") {\n\t\toverlay.neighbour_of_box = overlay.clicked_center_box_ctxmenu;\n\t\tif (key == \"interact_select_highlight\") {\n\t\t\tarray_push_all(overlay.highlight_boxes, overlay.IE_highlight_boxes);\n\t\t}\n\t\tnavicell.mapdata.findJXTree(overlay.win, overlay.IE_select_entities2, true, 'subtree', {div: $(\"#result_tree_contents\", overlay.win.document).get(0), select_neighbours: true, result_title: ' '});\n\t\t$(\"#right_tabs\", window.document).tabs(\"option\", \"active\", 1);\n\t} else if (key == \"highlight\") {\n\t\tif (!is_selected_species_highlighted()) {\n\t\t\toverlay.highlight_boxes.push(overlay.clicked_center_box_ctxmenu);\n\t\t} else {\n\t\t\tvar boxes = [];\n\t\t\tfor (var idx in overlay.highlight_boxes) {\n\t\t\t\tvar box = overlay.highlight_boxes[idx];\n\t\t\t\tvar equals = true;\n\t\t\t\tfor (var nn = 0; nn < 4; ++nn) {\n\t\t\t\t\tif (box[nn] != overlay.clicked_center_box_ctxmenu[nn]) {\n\t\t\t\t\t\tequals = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!equals) {\n\t\t\t\t\tboxes.push(box);\n\t\t\t\t}\n\t\t\t}\n\t\t\toverlay.highlight_boxes = boxes;\n\t\t}\n\t}\n\toverlay.clicked_center_box = null;\n\toverlay.draw(module);\n}", "function showContextMenu(evt) {\n\t\t// If context menu element not exist - create it\n\t\tif (!context_menu_element) {\n\t\t\tinitContextMenu();\n\t\t}\n\n\t\thideTooltips();\n\t\t// Clear context menu\n\t\tcontext_menu_element.innerHTML = '';\n\n\t\t// Determine the type of element on context\n\t\tcontext_element = getElProp(evt);\n\t\tif (context_element.type == 2) {\n\t\t\thighlightFileItem(context_element.index);\n\t\t}\n\t\tbildContextMenu();\n\t\t// Show context menu with time out\n\t\t//setTimeout(function() {\n\t\tcontext_menu_element.style.display = 'block';\n\t\tfixMouseEventElementPosition(evt, context_menu_element, 0);\n\t\t//\t}, 20);\n\t\tcontext_menu_element.style.display = 'block';\n\t\tcancelEvent(evt);\n\t}", "onTextareaKeyDown(event) {\n const ENTER_KEY = 13\n const SHIFT_KEY = 16\n const CAPS_KEY = 20\n const LEFT_ARROW_KEY = 37\n const UP_ARROW_KEY = 38\n const RIGHT_ARROW_KEY = 39\n const DOWN_ARROW_KEY = 40\n const CMD_KEY = 91\n\n if (typeof window.getSelection != \"undefined\"\n && event.keyCode != SHIFT_KEY\n && event.keyCode != CAPS_KEY\n ) {\n const selection = window.getSelection()\n // Checks if a Mention is being altered (except arrow keys), if yes deletes it\n // TODO find a better way to auto-delete spans, instead of listing all keys\n if (selection.anchorNode.parentElement.localName == \"span\"\n && event.keyCode != LEFT_ARROW_KEY\n && event.keyCode != UP_ARROW_KEY\n && event.keyCode != RIGHT_ARROW_KEY\n && event.keyCode != DOWN_ARROW_KEY\n && event.keyCode != CMD_KEY) {\n this.removeMention(this.textareaElement, selection.anchorNode.parentElement)\n }\n if (event.keyCode == ENTER_KEY) {\n // TODO The first \"enter\" at the end of the comment won't return to the line, but then it is fine\n // document.execCommand('insertHTML', false, '<br><br>')\n event.preventDefault()\n this.enterAction()\n this.state.showUserList && this.showUserList(false)\n }\n }\n }", "function postContextMenuWork(data, textStatus, jqXHR, param) {\n\teditBulkInProgress = true;\n\tshowPreview();\n\teditBulkInProgress = false;\n}", "function onDocumentKeyDown(e) {\n var ctrlDown = e.ctrlKey || e.metaKey; // PC || Mac\n \n switch (e.keyCode) {\n case KEYS.F1:\n help.show();\n e.preventDefault();\n \n break;\n \n case KEYS.ESC:\n help.hide();\n if (state.isDraw) {\n state.isDraw = false;\n state.newArea.remove();\n state.areas.pop();\n app.removeAllEvents();\n } else if (state.appMode === 'editing') {\n state.selectedArea.redraw();\n app.removeAllEvents();\n }\n \n break;\n \n case KEYS.TOP:\n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(0, -1))\n );\n e.preventDefault();\n }\n \n break;\n \n case KEYS.BOTTOM:\n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(0, 1))\n );\n e.preventDefault();\n }\n break;\n \n case KEYS.LEFT: \n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(-1, 0))\n );\n e.preventDefault();\n }\n \n break;\n \n case KEYS.RIGHT:\n if (state.appMode === 'editing' && state.selectedArea) {\n state.selectedArea.setParams(\n state.selectedArea.dynamicEdit(state.selectedArea.move(1, 0))\n );\n e.preventDefault();\n }\n \n break;\n \n case KEYS.DELETE:\n if (state.appMode === 'editing' && state.selectedArea) {\n app.removeObject(state.selectedArea);\n state.selectedArea = null;\n info.unload();\n }\n \n break;\n \n case KEYS.I:\n if (state.appMode === 'editing' && state.selectedArea) {\n var params = state.selectedArea.params,\n x = params.x || params.cx || params[0],\n y = params.y || params.cy || params[1];\n \n info.load(state.selectedArea, x + app.getOffset('x'), y + app.getOffset('y'));\n }\n \n break;\n \n case KEYS.S:\n app.saveInLocalStorage();\n \n break;\n \n case KEYS.C:\n if (state.appMode === 'editing' && state.selectedArea && ctrlDown) {\n var Constructor = AREAS_CONSTRUCTORS[area_params.type],\n area_params = state.selectedArea.toJSON();\n \n if (Constructor) {\n Constructor.createFromSaved(area_params);\n state.selectedArea.setParams(state.selectedArea.move(10, 10));\n state.selectedArea.redraw();\n }\n }\n \n break;\n }\n }", "function preventKeyUpEventIfMenuOpen(event) {\n if (event.which === 121 && event.shiftKey) {\n // Shift-F10\n if (getContextMenuNode().is(':visible')) {\n event.preventDefault();\n }\n }\n } // lazily get the Menu component in case it is inited after the ojContextMenu binding is applied to launcher.", "function Browser_CancelBubbleAndMenu(event)\n{\n\t//cancel bubble\n\tevent.cancelBubble = true;\n\t//destroy menus\n\tPopups_TriggerCloseAll();\n\t//if we have designer controller\n\tif (__DESIGNER_CONTROLLER)\n\t{\n\t\t//notify selection\n\t\tWI4_PlugIn_Generic_ForwardEvent(event);\n\t}\n\t//was this a right click? with a prevent default?\n\tif (event.type === __BROWSER_EVENT_MOUSERIGHT && event.preventDefault)\n\t{\n\t\t//trigger it\n\t\tevent.preventDefault();\n\t}\n}", "function showContextMenu()\n{\n chrome.contextMenus.removeAll(function()\n {\n if(typeof localStorage[\"shouldShowBlockElementMenu\"] == \"string\" && localStorage[\"shouldShowBlockElementMenu\"] == \"true\")\n {\n chrome.contextMenus.create({'title': chrome.i18n.getMessage('block_element'), 'contexts': ['image', 'video', 'audio'], 'onclick': function(info, tab)\n {\n if(info.srcUrl)\n chrome.tabs.sendRequest(tab.id, {reqtype: \"clickhide-new-filter\", filter: info.srcUrl});\n }});\n }\n });\n}" ]
[ "0.68549496", "0.66134685", "0.66105276", "0.65586615", "0.65378284", "0.65269154", "0.6480186", "0.64347166", "0.635688", "0.6342562", "0.63181025", "0.63181025", "0.63043785", "0.6293949", "0.6293949", "0.62910026", "0.6225243", "0.6213995", "0.62080663", "0.6180426", "0.6176192", "0.6139432", "0.612533", "0.61228716", "0.6108917", "0.6108917", "0.61021835", "0.6087126", "0.6081503", "0.60782635", "0.6067774", "0.6001228", "0.5985258", "0.59707665", "0.59702796", "0.59532034", "0.59522057", "0.5940999", "0.5928631", "0.59279674", "0.5900166", "0.5895472", "0.5885658", "0.5879301", "0.587686", "0.587686", "0.5870804", "0.5857887", "0.5855161", "0.5855161", "0.5852778", "0.585221", "0.5832325", "0.58322525", "0.58306456", "0.58295304", "0.58295304", "0.5824487", "0.57929623", "0.5787197", "0.5785062", "0.5776197", "0.57706475", "0.57646406", "0.57646406", "0.576162", "0.5754378", "0.5754378", "0.5754378", "0.57513905", "0.57349986", "0.57320493", "0.57192487", "0.5714797", "0.57074964", "0.5690813", "0.5690296", "0.5660788", "0.56540585", "0.5636543", "0.5629361", "0.5628368", "0.5625604", "0.5623827" ]
0.5824024
74
A CodeMirror instance represents an editor. This is the object that user code is usually dealing with.
function CodeMirror(place, options) { var this$1 = this; if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) } this.options = options = options ? copyObj(options) : {}; // Determine effective options based on given values and defaults. copyObj(defaults, options, false); var doc = options.value; if (typeof doc == "string") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); } else if (options.mode) { doc.modeOption = options.mode; } this.doc = doc; var input = new CodeMirror.inputStyles[options.inputStyle](this); var display = this.display = new Display(place, doc, input, options); display.wrapper.CodeMirror = this; themeChanged(this); if (options.lineWrapping) { this.display.wrapper.className += " CodeMirror-wrap"; } initScrollbars(this); this.state = { keyMaps: [], // stores maps added by addKeyMap overlays: [], // highlighting overlays, as added by addOverlay modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info overwrite: false, delayingBlurEvent: false, focused: false, suppressEdits: false, // used to disable editing during key handlers when in readOnly mode pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll selectingText: false, draggingText: false, highlight: new Delayed(), // stores highlight worker timeout keySeq: null, // Unfinished key sequence specialChars: null }; if (options.autofocus && !mobile) { display.input.focus(); } // Override magic textarea content restore that IE sometimes does // on our hidden textarea on reload if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); } registerEventHandlers(this); ensureGlobalHandlers(); startOperation(this); this.curOp.forceUpdate = true; attachDoc(this, doc); if ((options.autofocus && !mobile) || this.hasFocus()) { setTimeout(bind(onFocus, this), 20); } else { onBlur(this); } for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt)) { optionHandlers[opt](this, options[opt], Init); } } maybeUpdateLineNumberWidth(this); if (options.finishInit) { options.finishInit(this); } for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); } endOperation(this); // Suppress optimizelegibility in Webkit, since it breaks text // measuring on line wrapping boundaries. if (webkit && options.lineWrapping && getComputedStyle(display.lineDiv).textRendering == "optimizelegibility") { display.lineDiv.style.textRendering = "auto"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options || {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed() // stores highlight worker timeout\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n var cm = this;\n runInOp(this, function() {\n cm.curOp.forceUpdate = true;\n attachDoc(cm, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, cm), 20);\n else\n onBlur(cm);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](cm, options[opt], Init);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\n });\n }", "function CodeMirror(place, options) {\r\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\r\n\r\n this.options = options = options || {};\r\n // Determine effective options based on given values and defaults.\r\n copyObj(defaults, options, false);\r\n setGuttersForLineNumbers(options);\r\n\r\n var doc = options.value;\r\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\r\n this.doc = doc;\r\n\r\n var display = this.display = new Display(place, doc);\r\n display.wrapper.CodeMirror = this;\r\n updateGutters(this);\r\n themeChanged(this);\r\n if (options.lineWrapping)\r\n this.display.wrapper.className += \" CodeMirror-wrap\";\r\n if (options.autofocus && !mobile) focusInput(this);\r\n\r\n this.state = {\r\n keyMaps: [], // stores maps added by addKeyMap\r\n overlays: [], // highlighting overlays, as added by addOverlay\r\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\r\n overwrite: false, focused: false,\r\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\r\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\r\n draggingText: false,\r\n highlight: new Delayed() // stores highlight worker timeout\r\n };\r\n\r\n // Override magic textarea content restore that IE sometimes does\r\n // on our hidden textarea on reload\r\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\r\n\r\n registerEventHandlers(this);\r\n ensureGlobalHandlers();\r\n\r\n var cm = this;\r\n runInOp(this, function() {\r\n cm.curOp.forceUpdate = true;\r\n attachDoc(cm, doc);\r\n\r\n if ((options.autofocus && !mobile) || activeElt() == display.input)\r\n setTimeout(bind(onFocus, cm), 20);\r\n else\r\n onBlur(cm);\r\n\r\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\r\n optionHandlers[opt](cm, options[opt], Init);\r\n maybeUpdateLineNumberWidth(cm);\r\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\r\n });\r\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options || {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed() // stores highlight worker timeout\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n var cm = this;\n runInOp(this, function() {\n cm.curOp.forceUpdate = true;\n attachDoc(cm, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, cm), 20);\n else\n onBlur(cm);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](cm, options[opt], Init);\n maybeUpdateLineNumberWidth(cm);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\n });\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options || {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed() // stores highlight worker timeout\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n var cm = this;\n runInOp(this, function() {\n cm.curOp.forceUpdate = true;\n attachDoc(cm, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, cm), 20);\n else\n onBlur(cm);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](cm, options[opt], Init);\n maybeUpdateLineNumberWidth(cm);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\n });\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null // Unfinished key sequence\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) display.input.focus();\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n var cm = this;\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || cm.hasFocus())\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) options.finishInit(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) {\n return new CodeMirror(place, options);\n }\n\n this.options = options = options ? copyObj(options) : {}; // Determine effective options based on given values and defaults.\n\n copyObj(defaults, options, false);\n var doc = options.value;\n\n if (typeof doc == \"string\") {\n doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction);\n } else if (options.mode) {\n doc.modeOption = options.mode;\n }\n\n this.doc = doc;\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n\n if (options.lineWrapping) {\n this.display.wrapper.className += \" CodeMirror-wrap\";\n }\n\n initScrollbars(this);\n this.state = {\n keyMaps: [],\n // stores maps added by addKeyMap\n overlays: [],\n // highlighting overlays, as added by addOverlay\n modeGen: 0,\n // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false,\n // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1,\n cutIncoming: -1,\n // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(),\n // stores highlight worker timeout\n keySeq: null,\n // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) {\n display.input.focus();\n } // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n\n\n if (ie && ie_version < 11) {\n setTimeout(function () {\n return this$1.display.input.reset(true);\n }, 20);\n }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n _startOperation(this);\n\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if (options.autofocus && !mobile || this.hasFocus()) {\n setTimeout(bind(onFocus, this), 20);\n } else {\n onBlur(this);\n }\n\n for (var opt in optionHandlers) {\n if (optionHandlers.hasOwnProperty(opt)) {\n optionHandlers[opt](this, options[opt], Init);\n }\n }\n\n maybeUpdateLineNumberWidth(this);\n\n if (options.finishInit) {\n options.finishInit(this);\n }\n\n for (var i = 0; i < initHooks.length; ++i) {\n initHooks[i](this);\n }\n\n _endOperation(this); // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n\n\n if (webkit && options.lineWrapping && getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\") {\n display.lineDiv.style.textRendering = \"auto\";\n }\n } // The default configuration options.", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null // Unfinished key sequence\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null // Unfinished key sequence\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) options.finishInit(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) display.input.focus();\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n var cm = this;\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || cm.hasFocus())\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) options.finishInit(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\n\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n\t this.options = options = options ? copyObj(options) : {};\n\t // Determine effective options based on given values and defaults.\n\t copyObj(defaults, options, false);\n\t setGuttersForLineNumbers(options);\n\n\t var doc = options.value;\n\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t this.doc = doc;\n\n\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t var display = this.display = new Display(place, doc, input);\n\t display.wrapper.CodeMirror = this;\n\t updateGutters(this);\n\t themeChanged(this);\n\t if (options.lineWrapping)\n\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t if (options.autofocus && !mobile) display.input.focus();\n\t initScrollbars(this);\n\n\t this.state = {\n\t keyMaps: [], // stores maps added by addKeyMap\n\t overlays: [], // highlighting overlays, as added by addOverlay\n\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t overwrite: false,\n\t delayingBlurEvent: false,\n\t focused: false,\n\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t selectingText: false,\n\t draggingText: false,\n\t highlight: new Delayed(), // stores highlight worker timeout\n\t keySeq: null, // Unfinished key sequence\n\t specialChars: null\n\t };\n\n\t var cm = this;\n\n\t // Override magic textarea content restore that IE sometimes does\n\t // on our hidden textarea on reload\n\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n\t registerEventHandlers(this);\n\t ensureGlobalHandlers();\n\n\t startOperation(this);\n\t this.curOp.forceUpdate = true;\n\t attachDoc(this, doc);\n\n\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t setTimeout(bind(onFocus, this), 20);\n\t else\n\t onBlur(this);\n\n\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t optionHandlers[opt](this, options[opt], Init);\n\t maybeUpdateLineNumberWidth(this);\n\t if (options.finishInit) options.finishInit(this);\n\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t endOperation(this);\n\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t // measuring on line wrapping boundaries.\n\t if (webkit && options.lineWrapping &&\n\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t display.lineDiv.style.textRendering = \"auto\";\n\t }", "function CodeMirror(place, options) {\n\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n\t this.options = options = options ? copyObj(options) : {};\n\t // Determine effective options based on given values and defaults.\n\t copyObj(defaults, options, false);\n\t setGuttersForLineNumbers(options);\n\n\t var doc = options.value;\n\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t this.doc = doc;\n\n\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t var display = this.display = new Display(place, doc, input);\n\t display.wrapper.CodeMirror = this;\n\t updateGutters(this);\n\t themeChanged(this);\n\t if (options.lineWrapping)\n\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t if (options.autofocus && !mobile) display.input.focus();\n\t initScrollbars(this);\n\n\t this.state = {\n\t keyMaps: [], // stores maps added by addKeyMap\n\t overlays: [], // highlighting overlays, as added by addOverlay\n\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t overwrite: false,\n\t delayingBlurEvent: false,\n\t focused: false,\n\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t selectingText: false,\n\t draggingText: false,\n\t highlight: new Delayed(), // stores highlight worker timeout\n\t keySeq: null, // Unfinished key sequence\n\t specialChars: null\n\t };\n\n\t var cm = this;\n\n\t // Override magic textarea content restore that IE sometimes does\n\t // on our hidden textarea on reload\n\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n\t registerEventHandlers(this);\n\t ensureGlobalHandlers();\n\n\t startOperation(this);\n\t this.curOp.forceUpdate = true;\n\t attachDoc(this, doc);\n\n\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t setTimeout(bind(onFocus, this), 20);\n\t else\n\t onBlur(this);\n\n\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t optionHandlers[opt](this, options[opt], Init);\n\t maybeUpdateLineNumberWidth(this);\n\t if (options.finishInit) options.finishInit(this);\n\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t endOperation(this);\n\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t // measuring on line wrapping boundaries.\n\t if (webkit && options.lineWrapping &&\n\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t display.lineDiv.style.textRendering = \"auto\";\n\t }", "function CodeMirror(place, options) {\n\t\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\t\t\n\t\t this.options = options = options ? copyObj(options) : {};\n\t\t // Determine effective options based on given values and defaults.\n\t\t copyObj(defaults, options, false);\n\t\t setGuttersForLineNumbers(options);\n\t\t\n\t\t var doc = options.value;\n\t\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t\t this.doc = doc;\n\t\t\n\t\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t\t var display = this.display = new Display(place, doc, input);\n\t\t display.wrapper.CodeMirror = this;\n\t\t updateGutters(this);\n\t\t themeChanged(this);\n\t\t if (options.lineWrapping)\n\t\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t\t if (options.autofocus && !mobile) display.input.focus();\n\t\t initScrollbars(this);\n\t\t\n\t\t this.state = {\n\t\t keyMaps: [], // stores maps added by addKeyMap\n\t\t overlays: [], // highlighting overlays, as added by addOverlay\n\t\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t\t overwrite: false,\n\t\t delayingBlurEvent: false,\n\t\t focused: false,\n\t\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t\t selectingText: false,\n\t\t draggingText: false,\n\t\t highlight: new Delayed(), // stores highlight worker timeout\n\t\t keySeq: null, // Unfinished key sequence\n\t\t specialChars: null\n\t\t };\n\t\t\n\t\t var cm = this;\n\t\t\n\t\t // Override magic textarea content restore that IE sometimes does\n\t\t // on our hidden textarea on reload\n\t\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\t\t\n\t\t registerEventHandlers(this);\n\t\t ensureGlobalHandlers();\n\t\t\n\t\t startOperation(this);\n\t\t this.curOp.forceUpdate = true;\n\t\t attachDoc(this, doc);\n\t\t\n\t\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t\t setTimeout(bind(onFocus, this), 20);\n\t\t else\n\t\t onBlur(this);\n\t\t\n\t\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t\t optionHandlers[opt](this, options[opt], Init);\n\t\t maybeUpdateLineNumberWidth(this);\n\t\t if (options.finishInit) options.finishInit(this);\n\t\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t\t endOperation(this);\n\t\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t\t // measuring on line wrapping boundaries.\n\t\t if (webkit && options.lineWrapping &&\n\t\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t\t display.lineDiv.style.textRendering = \"auto\";\n\t\t }", "function CodeMirror(place, options) {\n\t\t var this$1$1 = this;\n\n\t\t if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n\t\t this.options = options = options ? copyObj(options) : {};\n\t\t // Determine effective options based on given values and defaults.\n\t\t copyObj(defaults, options, false);\n\n\t\t var doc = options.value;\n\t\t if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n\t\t else if (options.mode) { doc.modeOption = options.mode; }\n\t\t this.doc = doc;\n\n\t\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t\t var display = this.display = new Display(place, doc, input, options);\n\t\t display.wrapper.CodeMirror = this;\n\t\t themeChanged(this);\n\t\t if (options.lineWrapping)\n\t\t { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n\t\t initScrollbars(this);\n\n\t\t this.state = {\n\t\t keyMaps: [], // stores maps added by addKeyMap\n\t\t overlays: [], // highlighting overlays, as added by addOverlay\n\t\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t\t overwrite: false,\n\t\t delayingBlurEvent: false,\n\t\t focused: false,\n\t\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t\t pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n\t\t selectingText: false,\n\t\t draggingText: false,\n\t\t highlight: new Delayed(), // stores highlight worker timeout\n\t\t keySeq: null, // Unfinished key sequence\n\t\t specialChars: null\n\t\t };\n\n\t\t if (options.autofocus && !mobile) { display.input.focus(); }\n\n\t\t // Override magic textarea content restore that IE sometimes does\n\t\t // on our hidden textarea on reload\n\t\t if (ie && ie_version < 11) { setTimeout(function () { return this$1$1.display.input.reset(true); }, 20); }\n\n\t\t registerEventHandlers(this);\n\t\t ensureGlobalHandlers();\n\n\t\t startOperation(this);\n\t\t this.curOp.forceUpdate = true;\n\t\t attachDoc(this, doc);\n\n\t\t if ((options.autofocus && !mobile) || this.hasFocus())\n\t\t { setTimeout(function () {\n\t\t if (this$1$1.hasFocus() && !this$1$1.state.focused) { onFocus(this$1$1); }\n\t\t }, 20); }\n\t\t else\n\t\t { onBlur(this); }\n\n\t\t for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n\t\t { optionHandlers[opt](this, options[opt], Init); } }\n\t\t maybeUpdateLineNumberWidth(this);\n\t\t if (options.finishInit) { options.finishInit(this); }\n\t\t for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n\t\t endOperation(this);\n\t\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t\t // measuring on line wrapping boundaries.\n\t\t if (webkit && options.lineWrapping &&\n\t\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t\t { display.lineDiv.style.textRendering = \"auto\"; }\n\t\t }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\t\n\t this.options = options = options ? copyObj(options) : {};\n\t // Determine effective options based on given values and defaults.\n\t copyObj(defaults, options, false);\n\t setGuttersForLineNumbers(options);\n\t\n\t var doc = options.value;\n\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t this.doc = doc;\n\t\n\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t var display = this.display = new Display(place, doc, input);\n\t display.wrapper.CodeMirror = this;\n\t updateGutters(this);\n\t themeChanged(this);\n\t if (options.lineWrapping)\n\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t if (options.autofocus && !mobile) display.input.focus();\n\t initScrollbars(this);\n\t\n\t this.state = {\n\t keyMaps: [], // stores maps added by addKeyMap\n\t overlays: [], // highlighting overlays, as added by addOverlay\n\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t overwrite: false,\n\t delayingBlurEvent: false,\n\t focused: false,\n\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t selectingText: false,\n\t draggingText: false,\n\t highlight: new Delayed(), // stores highlight worker timeout\n\t keySeq: null, // Unfinished key sequence\n\t specialChars: null\n\t };\n\t\n\t var cm = this;\n\t\n\t // Override magic textarea content restore that IE sometimes does\n\t // on our hidden textarea on reload\n\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\t\n\t registerEventHandlers(this);\n\t ensureGlobalHandlers();\n\t\n\t startOperation(this);\n\t this.curOp.forceUpdate = true;\n\t attachDoc(this, doc);\n\t\n\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t setTimeout(bind(onFocus, this), 20);\n\t else\n\t onBlur(this);\n\t\n\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t optionHandlers[opt](this, options[opt], Init);\n\t maybeUpdateLineNumberWidth(this);\n\t if (options.finishInit) options.finishInit(this);\n\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t endOperation(this);\n\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t // measuring on line wrapping boundaries.\n\t if (webkit && options.lineWrapping &&\n\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t display.lineDiv.style.textRendering = \"auto\";\n\t }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {}\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false)\n setGuttersForLineNumbers(options)\n\n var doc = options.value\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator) }\n this.doc = doc\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this)\n var display = this.display = new Display(place, doc, input)\n display.wrapper.CodeMirror = this\n updateGutters(this)\n themeChanged(this)\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\" }\n initScrollbars(this)\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n }\n\n if (options.autofocus && !mobile) { display.input.focus() }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20) }\n\n registerEventHandlers(this)\n ensureGlobalHandlers()\n\n startOperation(this)\n this.curOp.forceUpdate = true\n attachDoc(this, doc)\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20) }\n else\n { onBlur(this) }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init) } }\n maybeUpdateLineNumberWidth(this)\n if (options.finishInit) { options.finishInit(this) }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1) }\n endOperation(this)\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\" }\n}", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {}\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false)\n setGuttersForLineNumbers(options)\n\n var doc = options.value\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction) }\n this.doc = doc\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this)\n var display = this.display = new Display(place, doc, input)\n display.wrapper.CodeMirror = this\n updateGutters(this)\n themeChanged(this)\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\" }\n initScrollbars(this)\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n }\n\n if (options.autofocus && !mobile) { display.input.focus() }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20) }\n\n registerEventHandlers(this)\n ensureGlobalHandlers()\n\n startOperation(this)\n this.curOp.forceUpdate = true\n attachDoc(this, doc)\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20) }\n else\n { onBlur(this) }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init) } }\n maybeUpdateLineNumberWidth(this)\n if (options.finishInit) { options.finishInit(this) }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1) }\n endOperation(this)\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\" }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\r\n var this$1 = this;\r\n\r\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\r\n\r\n this.options = options = options ? copyObj(options) : {};\r\n // Determine effective options based on given values and defaults.\r\n copyObj(defaults, options, false);\r\n setGuttersForLineNumbers(options);\r\n\r\n var doc = options.value;\r\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\r\n this.doc = doc;\r\n\r\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\r\n var display = this.display = new Display(place, doc, input);\r\n display.wrapper.CodeMirror = this;\r\n updateGutters(this);\r\n themeChanged(this);\r\n if (options.lineWrapping)\r\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\r\n initScrollbars(this);\r\n\r\n this.state = {\r\n keyMaps: [], // stores maps added by addKeyMap\r\n overlays: [], // highlighting overlays, as added by addOverlay\r\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\r\n overwrite: false,\r\n delayingBlurEvent: false,\r\n focused: false,\r\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\r\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\r\n selectingText: false,\r\n draggingText: false,\r\n highlight: new Delayed(), // stores highlight worker timeout\r\n keySeq: null, // Unfinished key sequence\r\n specialChars: null\r\n };\r\n\r\n if (options.autofocus && !mobile) { display.input.focus(); }\r\n\r\n // Override magic textarea content restore that IE sometimes does\r\n // on our hidden textarea on reload\r\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\r\n\r\n registerEventHandlers(this);\r\n ensureGlobalHandlers();\r\n\r\n startOperation(this);\r\n this.curOp.forceUpdate = true;\r\n attachDoc(this, doc);\r\n\r\n if ((options.autofocus && !mobile) || this.hasFocus())\r\n { setTimeout(bind(onFocus, this), 20); }\r\n else\r\n { onBlur(this); }\r\n\r\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\r\n { optionHandlers[opt](this$1, options[opt], Init); } }\r\n maybeUpdateLineNumberWidth(this);\r\n if (options.finishInit) { options.finishInit(this); }\r\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\r\n endOperation(this);\r\n // Suppress optimizelegibility in Webkit, since it breaks text\r\n // measuring on line wrapping boundaries.\r\n if (webkit && options.lineWrapping &&\r\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\r\n { display.lineDiv.style.textRendering = \"auto\"; }\r\n}", "function CodeMirror(place, givenOptions) {\n // Determine effective options based on given values and defaults.\n var options = {}, defaults = CodeMirror.defaults;\n for (var opt in defaults)\n if (defaults.hasOwnProperty(opt))\n options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];\n\n var targetDocument = options[\"document\"];\n // The element in which the editor lives.\n var wrapper = targetDocument.createElement(\"div\");\n wrapper.className = \"CodeMirror\" + (options.lineWrapping ? \" CodeMirror-wrap\" : \"\");\n // This mess creates the base DOM structure for the editor.\n wrapper.innerHTML =\n '<div style=\"overflow: hidden; position: relative; width: 3px; height: 0px;\">' + // Wraps and hides input textarea\n '<textarea style=\"position: absolute; padding: 0; width: 1px;\" wrap=\"off\" ' +\n 'autocorrect=\"off\" autocapitalize=\"off\"></textarea></div>' +\n '<div class=\"CodeMirror-scroll\" tabindex=\"-1\">' +\n '<div style=\"position: relative\">' + // Set to the height of the text, causes scrolling\n '<div style=\"position: relative\">' + // Moved around its parent to cover visible view\n '<div class=\"CodeMirror-gutter\"><div class=\"CodeMirror-gutter-text\"></div></div>' +\n // Provides positioning relative to (visible) text origin\n '<div class=\"CodeMirror-lines\"><div style=\"position: relative\">' +\n '<div style=\"position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden\"></div>' +\n '<pre class=\"CodeMirror-cursor\">&#160;</pre>' + // Absolutely positioned blinky cursor\n '<div></div>' + // This DIV contains the actual code\n '</div></div></div></div></div>';\n if (place.appendChild) place.appendChild(wrapper); else place(wrapper);\n // I've never seen more elegant code in my life.\n var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,\n scroller = wrapper.lastChild, code = scroller.firstChild,\n mover = code.firstChild, gutter = mover.firstChild, gutterText = gutter.firstChild,\n lineSpace = gutter.nextSibling.firstChild, measure = lineSpace.firstChild,\n cursor = measure.nextSibling, lineDiv = cursor.nextSibling;\n themeChanged();\n // Needed to hide big blue blinking cursor on Mobile Safari\n if (/AppleWebKit/.test(navigator.userAgent) && /Mobile\\/\\w+/.test(navigator.userAgent)) input.style.width = \"0px\";\n if (!webkit) lineSpace.draggable = true;\n if (options.tabindex != null) input.tabIndex = options.tabindex;\n if (!options.gutter && !options.lineNumbers) gutter.style.display = \"none\";\n\n // Check for problem with IE innerHTML not working when we have a\n // P (or similar) parent node.\n try { stringWidth(\"x\"); }\n catch (e) {\n if (e.message.match(/runtime/i))\n e = new Error(\"A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)\");\n throw e;\n }\n\n // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.\n var poll = new Delayed(), highlight = new Delayed(), blinker;\n\n // mode holds a mode API object. doc is the tree of Line objects,\n // work an array of lines that should be parsed, and history the\n // undo history (instance of History constructor).\n var mode, doc = new BranchChunk([new LeafChunk([new Line(\"\")])]), work, focused;\n loadMode();\n // The selection. These are always maintained to point at valid\n // positions. Inverted is used to remember that the user is\n // selecting bottom-to-top.\n var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};\n // Selection-related flags. shiftSelecting obviously tracks\n // whether the user is holding shift.\n var shiftSelecting, lastClick, lastDoubleClick, draggingText, overwrite = false;\n // Variables used by startOperation/endOperation to track what\n // happened during the operation.\n var updateInput, userSelChange, changes, textChanged, selectionChanged, leaveInputAlone,\n gutterDirty, callbacks;\n // Current visible range (may be bigger than the view window).\n var displayOffset = 0, showingFrom = 0, showingTo = 0, lastSizeC = 0;\n // bracketHighlighted is used to remember that a backet has been\n // marked.\n var bracketHighlighted;\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n var maxLine = \"\", maxWidth, tabText = computeTabText();\n\n // Initialize the content.\n operation(function(){setValue(options.value || \"\"); updateInput = false;})();\n var history = new History();\n\n // Register our event handlers.\n connect(scroller, \"mousedown\", operation(onMouseDown));\n connect(scroller, \"dblclick\", operation(onDoubleClick));\n connect(lineSpace, \"dragstart\", onDragStart);\n connect(lineSpace, \"selectstart\", e_preventDefault);\n // Gecko browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for Gecko.\n if (!gecko) connect(scroller, \"contextmenu\", onContextMenu);\n connect(scroller, \"scroll\", function() {\n updateDisplay([]);\n if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + \"px\";\n if (options.onScroll) options.onScroll(instance);\n });\n connect(window, \"resize\", function() {updateDisplay(true);});\n connect(input, \"keyup\", operation(onKeyUp));\n connect(input, \"input\", fastPoll);\n connect(input, \"keydown\", operation(onKeyDown));\n connect(input, \"keypress\", operation(onKeyPress));\n connect(input, \"focus\", onFocus);\n connect(input, \"blur\", onBlur);\n\n connect(scroller, \"dragenter\", e_stop);\n connect(scroller, \"dragover\", e_stop);\n connect(scroller, \"drop\", operation(onDrop));\n connect(scroller, \"paste\", function(){focusInput(); fastPoll();});\n connect(input, \"paste\", fastPoll);\n connect(input, \"cut\", operation(function(){replaceSelection(\"\");}));\n\n // IE throws unspecified error in certain cases, when\n // trying to access activeElement before onload\n var hasFocus; try { hasFocus = (targetDocument.activeElement == input); } catch(e) { }\n if (hasFocus) setTimeout(onFocus, 20);\n else onBlur();\n\n function isLine(l) {return l >= 0 && l < doc.size;}\n // The instance object that we'll return. Mostly calls out to\n // local functions in the CodeMirror function. Some do some extra\n // range checking and/or clipping. operation is used to wrap the\n // call so that changes it makes are tracked, and the display is\n // updated afterwards.\n var instance = wrapper.CodeMirror = {\n getValue: getValue,\n setValue: operation(setValue),\n getSelection: getSelection,\n replaceSelection: operation(replaceSelection),\n focus: function(){focusInput(); onFocus(); fastPoll();},\n setOption: function(option, value) {\n var oldVal = options[option];\n options[option] = value;\n if (option == \"mode\" || option == \"indentUnit\") loadMode();\n else if (option == \"readOnly\" && value) {onBlur(); input.blur();}\n else if (option == \"theme\") themeChanged();\n else if (option == \"lineWrapping\" && oldVal != value) operation(wrappingChanged)();\n else if (option == \"tabSize\") operation(tabsChanged)();\n if (option == \"lineNumbers\" || option == \"gutter\" || option == \"firstLineNumber\" || option == \"theme\")\n operation(gutterChanged)();\n },\n getOption: function(option) {return options[option];},\n undo: operation(undo),\n redo: operation(redo),\n indentLine: operation(function(n, dir) {\n if (isLine(n)) indentLine(n, dir == null ? \"smart\" : dir ? \"add\" : \"subtract\");\n }),\n indentSelection: operation(indentSelected),\n historySize: function() {return {undo: history.done.length, redo: history.undone.length};},\n clearHistory: function() {history = new History();},\n matchBrackets: operation(function(){matchBrackets(true);}),\n getTokenAt: operation(function(pos) {\n pos = clipPos(pos);\n return getLine(pos.line).getTokenAt(mode, getStateBefore(pos.line), pos.ch);\n }),\n getStateAfter: function(line) {\n line = clipLine(line == null ? doc.size - 1: line);\n return getStateBefore(line + 1);\n },\n cursorCoords: function(start){\n if (start == null) start = sel.inverted;\n return pageCoords(start ? sel.from : sel.to);\n },\n charCoords: function(pos){return pageCoords(clipPos(pos));},\n coordsChar: function(coords) {\n var off = eltOffset(lineSpace);\n return coordsChar(coords.x - off.left, coords.y - off.top);\n },\n markText: operation(markText),\n setBookmark: setBookmark,\n setMarker: operation(addGutterMarker),\n clearMarker: operation(removeGutterMarker),\n setLineClass: operation(setLineClass),\n hideLine: operation(function(h) {return setLineHidden(h, true);}),\n showLine: operation(function(h) {return setLineHidden(h, false);}),\n onDeleteLine: function(line, f) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n line = getLine(line);\n }\n (line.handlers || (line.handlers = [])).push(f);\n return line;\n },\n lineInfo: lineInfo,\n addWidget: function(pos, node, scroll, vert, horiz) {\n pos = localCoords(clipPos(pos));\n var top = pos.yBot, left = pos.x;\n node.style.position = \"absolute\";\n code.appendChild(node);\n if (vert == \"over\") top = pos.y;\n else if (vert == \"near\") {\n var vspace = Math.max(scroller.offsetHeight, doc.height * textHeight()),\n hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();\n if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)\n top = pos.y - node.offsetHeight;\n if (left + node.offsetWidth > hspace)\n left = hspace - node.offsetWidth;\n }\n node.style.top = (top + paddingTop()) + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = code.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") left = 0;\n else if (horiz == \"middle\") left = (code.clientWidth - node.offsetWidth) / 2;\n node.style.left = (left + paddingLeft()) + \"px\";\n }\n if (scroll)\n scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);\n },\n\n lineCount: function() {return doc.size;},\n clipPos: clipPos,\n getCursor: function(start) {\n if (start == null) start = sel.inverted;\n return copyPos(start ? sel.from : sel.to);\n },\n somethingSelected: function() {return !posEq(sel.from, sel.to);},\n setCursor: operation(function(line, ch, user) {\n if (ch == null && typeof line.line == \"number\") setCursor(line.line, line.ch, user);\n else setCursor(line, ch, user);\n }),\n setSelection: operation(function(from, to, user) {\n (user ? setSelectionUser : setSelection)(clipPos(from), clipPos(to || from));\n }),\n getLine: function(line) {if (isLine(line)) return getLine(line).text;},\n getLineHandle: function(line) {if (isLine(line)) return getLine(line);},\n setLine: operation(function(line, text) {\n if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: getLine(line).text.length});\n }),\n removeLine: operation(function(line) {\n if (isLine(line)) replaceRange(\"\", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));\n }),\n replaceRange: operation(replaceRange),\n getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},\n\n execCommand: function(cmd) {return commands[cmd](instance);},\n // Stuff used by commands, probably not much use to outside code.\n moveH: operation(moveH),\n deleteH: operation(deleteH),\n moveV: operation(moveV),\n toggleOverwrite: function() {overwrite = !overwrite;},\n\n posFromIndex: function(off) {\n var lineNo = 0, ch;\n doc.iter(0, doc.size, function(line) {\n var sz = line.text.length + 1;\n if (sz > off) { ch = off; return true; }\n off -= sz;\n ++lineNo;\n });\n return clipPos({line: lineNo, ch: ch});\n },\n indexFromPos: function (coords) {\n if (coords.line < 0 || coords.ch < 0) return 0;\n var index = coords.ch;\n doc.iter(0, coords.line, function (line) {\n index += line.text.length + 1;\n });\n return index;\n },\n\n operation: function(f){return operation(f)();},\n refresh: function(){updateDisplay(true);},\n getInputField: function(){return input;},\n getWrapperElement: function(){return wrapper;},\n getScrollerElement: function(){return scroller;},\n getGutterElement: function(){return gutter;}\n };\n\n function getLine(n) { return getLineAt(doc, n); }\n function updateLineHeight(line, height) {\n gutterDirty = true;\n var diff = height - line.height;\n for (var n = line; n; n = n.parent) n.height += diff;\n }\n\n function setValue(code) {\n var top = {line: 0, ch: 0};\n updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},\n splitLines(code), top, top);\n updateInput = true;\n }\n function getValue(code) {\n var text = [];\n doc.iter(0, doc.size, function(line) { text.push(line.text); });\n return text.join(\"\\n\");\n }\n\n function onMouseDown(e) {\n setShift(e.shiftKey);\n // Check whether this is a click in a widget\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == code && n != mover) return;\n\n // See if this is a click in the gutter\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) {\n if (options.onGutterClick)\n options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);\n return e_preventDefault(e);\n }\n\n var start = posFromMouse(e);\n\n switch (e_button(e)) {\n case 3:\n if (gecko && !mac) onContextMenu(e);\n return;\n case 2:\n if (start) setCursor(start.line, start.ch, true);\n return;\n }\n // For button 1, if it was clicked inside the editor\n // (posFromMouse returning non-null), we have to adjust the\n // selection.\n if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}\n\n if (!focused) onFocus();\n\n var now = +new Date;\n if (lastDoubleClick && lastDoubleClick.time > now - 400 && posEq(lastDoubleClick.pos, start)) {\n e_preventDefault(e);\n setTimeout(focusInput, 20);\n return selectLine(start.line);\n } else if (lastClick && lastClick.time > now - 400 && posEq(lastClick.pos, start)) {\n lastDoubleClick = {time: now, pos: start};\n e_preventDefault(e);\n return selectWordAt(start);\n } else { lastClick = {time: now, pos: start}; }\n\n var last = start, going;\n if (dragAndDrop && !posEq(sel.from, sel.to) &&\n !posLess(start, sel.from) && !posLess(sel.to, start)) {\n // Let the drag handler handle this.\n if (webkit) lineSpace.draggable = true;\n var up = connect(targetDocument, \"mouseup\", operation(function(e2) {\n if (webkit) lineSpace.draggable = false;\n draggingText = false;\n up();\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n setCursor(start.line, start.ch, true);\n focusInput();\n }\n }), true);\n draggingText = true;\n return;\n }\n e_preventDefault(e);\n setCursor(start.line, start.ch, true);\n\n function extend(e) {\n var cur = posFromMouse(e, true);\n if (cur && !posEq(cur, last)) {\n if (!focused) onFocus();\n last = cur;\n setSelectionUser(start, cur);\n updateInput = false;\n var visible = visibleLines();\n if (cur.line >= visible.to || cur.line < visible.from)\n going = setTimeout(operation(function(){extend(e);}), 150);\n }\n }\n\n var move = connect(targetDocument, \"mousemove\", operation(function(e) {\n clearTimeout(going);\n e_preventDefault(e);\n extend(e);\n }), true);\n var up = connect(targetDocument, \"mouseup\", operation(function(e) {\n clearTimeout(going);\n var cur = posFromMouse(e);\n if (cur) setSelectionUser(start, cur);\n e_preventDefault(e);\n focusInput();\n updateInput = true;\n move(); up();\n }), true);\n }\n function onDoubleClick(e) {\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) return e_preventDefault(e);\n var start = posFromMouse(e);\n if (!start) return;\n lastDoubleClick = {time: +new Date, pos: start};\n e_preventDefault(e);\n selectWordAt(start);\n }\n function onDrop(e) {\n e.preventDefault();\n var pos = posFromMouse(e, true), files = e.dataTransfer.files;\n if (!pos || options.readOnly) return;\n if (files && files.length && window.FileReader && window.File) {\n function loadFile(file, i) {\n var reader = new FileReader;\n reader.onload = function() {\n text[i] = reader.result;\n if (++read == n) {\n pos = clipPos(pos);\n operation(function() {\n var end = replaceRange(text.join(\"\"), pos, pos);\n setSelectionUser(pos, end);\n })();\n }\n };\n reader.readAsText(file);\n }\n var n = files.length, text = Array(n), read = 0;\n for (var i = 0; i < n; ++i) loadFile(files[i], i);\n }\n else {\n try {\n var text = e.dataTransfer.getData(\"Text\");\n if (text) {\n var end = replaceRange(text, pos, pos);\n var curFrom = sel.from, curTo = sel.to;\n setSelectionUser(pos, end);\n if (draggingText) replaceRange(\"\", curFrom, curTo);\n focusInput();\n }\n }\n catch(e){}\n }\n }\n function onDragStart(e) {\n var txt = getSelection();\n // This will reset escapeElement\n htmlEscape(txt);\n e.dataTransfer.setDragImage(escapeElement, 0, 0);\n e.dataTransfer.setData(\"Text\", txt);\n }\n function handleKeyBinding(e) {\n var name = keyNames[e.keyCode], next = keyMap[options.keyMap].auto, bound, dropShift;\n if (name == null || e.altGraphKey) {\n if (next) options.keyMap = next;\n return null;\n }\n if (e.altKey) name = \"Alt-\" + name;\n if (e.ctrlKey) name = \"Ctrl-\" + name;\n if (e.metaKey) name = \"Cmd-\" + name;\n if (e.shiftKey && (bound = lookupKey(\"Shift-\" + name, options.extraKeys, options.keyMap))) {\n dropShift = true;\n } else {\n bound = lookupKey(name, options.extraKeys, options.keyMap);\n }\n if (typeof bound == \"string\") {\n if (commands.propertyIsEnumerable(bound)) bound = commands[bound];\n else bound = null;\n }\n if (next && (bound || !isModifierKey(e))) options.keyMap = next;\n if (!bound) return false;\n if (dropShift) {\n var prevShift = shiftSelecting;\n shiftSelecting = null;\n bound(instance);\n shiftSelecting = prevShift;\n } else bound(instance);\n e_preventDefault(e);\n return true;\n }\n var lastStoppedKey = null;\n function onKeyDown(e) {\n if (!focused) onFocus();\n var code = e.keyCode;\n // IE does strange things with escape.\n if (ie && code == 27) { e.returnValue = false; }\n setShift(code == 16 || e.shiftKey);\n // First give onKeyEvent option a chance to handle this.\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n var handled = handleKeyBinding(e);\n if (window.opera) {\n lastStoppedKey = handled ? e.keyCode : null;\n // Opera has no cut event... we try to at least catch the key combo\n if (!handled && (mac ? e.metaKey : e.ctrlKey) && e.keyCode == 88)\n replaceSelection(\"\");\n }\n }\n function onKeyPress(e) {\n if (window.opera && e.keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (window.opera && !e.which && handleKeyBinding(e)) return;\n if (options.electricChars && mode.electricChars) {\n var ch = String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode);\n if (mode.electricChars.indexOf(ch) > -1)\n setTimeout(operation(function() {indentLine(sel.to.line, \"smart\");}), 75);\n }\n fastPoll();\n }\n function onKeyUp(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (e.keyCode == 16) shiftSelecting = null;\n }\n\n function onFocus() {\n if (options.readOnly) return;\n if (!focused) {\n if (options.onFocus) options.onFocus(instance);\n focused = true;\n if (wrapper.className.search(/\\bCodeMirror-focused\\b/) == -1)\n wrapper.className += \" CodeMirror-focused\";\n if (!leaveInputAlone) resetInput(true);\n }\n slowPoll();\n restartBlink();\n }\n function onBlur() {\n if (focused) {\n if (options.onBlur) options.onBlur(instance);\n focused = false;\n wrapper.className = wrapper.className.replace(\" CodeMirror-focused\", \"\");\n }\n clearInterval(blinker);\n setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);\n }\n\n // Replace the range from from to to by the strings in newText.\n // Afterwards, set the selection to selFrom, selTo.\n function updateLines(from, to, newText, selFrom, selTo) {\n if (history) {\n var old = [];\n doc.iter(from.line, to.line + 1, function(line) { old.push(line.text); });\n history.addChange(from.line, newText.length, old);\n while (history.done.length > options.undoDepth) history.done.shift();\n }\n updateLinesNoUndo(from, to, newText, selFrom, selTo);\n }\n function unredoHelper(from, to) {\n var change = from.pop();\n if (change) {\n var replaced = [], end = change.start + change.added;\n doc.iter(change.start, end, function(line) { replaced.push(line.text); });\n to.push({start: change.start, added: change.old.length, old: replaced});\n var pos = clipPos({line: change.start + change.old.length - 1,\n ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])});\n updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: getLine(end-1).text.length}, change.old, pos, pos);\n updateInput = true;\n }\n }\n function undo() {unredoHelper(history.done, history.undone);}\n function redo() {unredoHelper(history.undone, history.done);}\n\n function updateLinesNoUndo(from, to, newText, selFrom, selTo) {\n var recomputeMaxLength = false, maxLineLength = maxLine.length;\n if (!options.lineWrapping)\n doc.iter(from.line, to.line, function(line) {\n if (line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}\n });\n if (from.line != to.line || newText.length > 1) gutterDirty = true;\n\n var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);\n // First adjust the line structure, taking some care to leave highlighting intact.\n if (from.ch == 0 && to.ch == 0 && newText[newText.length - 1] == \"\") {\n // This is a whole-line replace. Treated specially to make\n // sure line objects move the way they are supposed to.\n var added = [], prevLine = null;\n if (from.line) {\n prevLine = getLine(from.line - 1);\n prevLine.fixMarkEnds(lastLine);\n } else lastLine.fixMarkStarts();\n for (var i = 0, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], prevLine));\n if (nlines) doc.remove(from.line, nlines, callbacks);\n if (added.length) doc.insert(from.line, added);\n } else if (firstLine == lastLine) {\n if (newText.length == 1)\n firstLine.replace(from.ch, to.ch, newText[0]);\n else {\n lastLine = firstLine.split(to.ch, newText[newText.length-1]);\n firstLine.replace(from.ch, null, newText[0]);\n firstLine.fixMarkEnds(lastLine);\n var added = [];\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n added.push(lastLine);\n doc.insert(from.line + 1, added);\n }\n } else if (newText.length == 1) {\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, \"\");\n firstLine.append(lastLine);\n doc.remove(from.line + 1, nlines, callbacks);\n } else {\n var added = [];\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, newText[newText.length-1]);\n firstLine.fixMarkEnds(lastLine);\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n if (nlines > 1) doc.remove(from.line + 1, nlines - 1, callbacks);\n doc.insert(from.line + 1, added);\n }\n if (options.lineWrapping) {\n var perLine = scroller.clientWidth / charWidth() - 3;\n doc.iter(from.line, from.line + newText.length, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != line.height) updateLineHeight(line, guess);\n });\n } else {\n doc.iter(from.line, i + newText.length, function(line) {\n var l = line.text;\n if (l.length > maxLineLength) {\n maxLine = l; maxLineLength = l.length; maxWidth = null;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) {\n maxLineLength = 0; maxLine = \"\"; maxWidth = null;\n doc.iter(0, doc.size, function(line) {\n var l = line.text;\n if (l.length > maxLineLength) {\n maxLineLength = l.length; maxLine = l;\n }\n });\n }\n }\n\n // Add these lines to the work array, so that they will be\n // highlighted. Adjust work lines if lines were added/removed.\n var newWork = [], lendiff = newText.length - nlines - 1;\n for (var i = 0, l = work.length; i < l; ++i) {\n var task = work[i];\n if (task < from.line) newWork.push(task);\n else if (task > to.line) newWork.push(task + lendiff);\n }\n var hlEnd = from.line + Math.min(newText.length, 500);\n highlightLines(from.line, hlEnd);\n newWork.push(hlEnd);\n work = newWork;\n startWorker(100);\n // Remember that these lines changed, for updating the display\n changes.push({from: from.line, to: to.line + 1, diff: lendiff});\n var changeObj = {from: from, to: to, text: newText};\n if (textChanged) {\n for (var cur = textChanged; cur.next; cur = cur.next) {}\n cur.next = changeObj;\n } else textChanged = changeObj;\n\n // Update the selection\n function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}\n setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));\n\n // Make sure the scroll-size div has the correct height.\n code.style.height = (doc.height * textHeight() + 2 * paddingTop()) + \"px\";\n }\n\n function replaceRange(code, from, to) {\n from = clipPos(from);\n if (!to) to = from; else to = clipPos(to);\n code = splitLines(code);\n function adjustPos(pos) {\n if (posLess(pos, from)) return pos;\n if (!posLess(to, pos)) return end;\n var line = pos.line + code.length - (to.line - from.line) - 1;\n var ch = pos.ch;\n if (pos.line == to.line)\n ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));\n return {line: line, ch: ch};\n }\n var end;\n replaceRange1(code, from, to, function(end1) {\n end = end1;\n return {from: adjustPos(sel.from), to: adjustPos(sel.to)};\n });\n return end;\n }\n function replaceSelection(code, collapse) {\n replaceRange1(splitLines(code), sel.from, sel.to, function(end) {\n if (collapse == \"end\") return {from: end, to: end};\n else if (collapse == \"start\") return {from: sel.from, to: sel.from};\n else return {from: sel.from, to: end};\n });\n }\n function replaceRange1(code, from, to, computeSel) {\n var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;\n var newSel = computeSel({line: from.line + code.length - 1, ch: endch});\n updateLines(from, to, code, newSel.from, newSel.to);\n }\n\n function getRange(from, to) {\n var l1 = from.line, l2 = to.line;\n if (l1 == l2) return getLine(l1).text.slice(from.ch, to.ch);\n var code = [getLine(l1).text.slice(from.ch)];\n doc.iter(l1 + 1, l2, function(line) { code.push(line.text); });\n code.push(getLine(l2).text.slice(0, to.ch));\n return code.join(\"\\n\");\n }\n function getSelection() {\n return getRange(sel.from, sel.to);\n }\n\n var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll\n function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }\n function fastPoll() {\n var missed = false;\n pollingFast = true;\n function p() {\n startOperation();\n var changed = readInput();\n if (!changed && !missed) {missed = true; poll.set(60, p);}\n else {pollingFast = false; slowPoll();}\n endOperation();\n }\n poll.set(20, p);\n }\n\n // Previnput is a hack to work with IME. If we reset the textarea\n // on every change, that breaks IME. So we look for changes\n // compared to the previous content instead. (Modern browsers have\n // events that indicate IME taking place, but these are not widely\n // supported or compatible enough yet to rely on.)\n var prevInput = \"\";\n function readInput() {\n if (leaveInputAlone || !focused || hasSelection(input)) return false;\n var text = input.value;\n if (text == prevInput) return false;\n shiftSelecting = null;\n var same = 0, l = Math.min(prevInput.length, text.length);\n while (same < l && prevInput[same] == text[same]) ++same;\n if (same < prevInput.length)\n sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};\n else if (overwrite && posEq(sel.from, sel.to))\n sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};\n replaceSelection(text.slice(same), \"end\");\n prevInput = text;\n return true;\n }\n function resetInput(user) {\n if (!posEq(sel.from, sel.to)) {\n prevInput = \"\";\n input.value = getSelection();\n input.select();\n } else if (user) prevInput = input.value = \"\";\n }\n\n function focusInput() {\n if (!options.readOnly) input.focus();\n }\n\n function scrollEditorIntoView() {\n if (!cursor.getBoundingClientRect) return;\n var rect = cursor.getBoundingClientRect();\n // IE returns bogus coordinates when the instance sits inside of an iframe and the cursor is hidden\n if (ie && rect.top == rect.bottom) return;\n var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);\n if (rect.top < 0 || rect.bottom > winH) cursor.scrollIntoView();\n }\n function scrollCursorIntoView() {\n var cursor = localCoords(sel.inverted ? sel.from : sel.to);\n var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;\n return scrollIntoView(x, cursor.y, x, cursor.yBot);\n }\n function scrollIntoView(x1, y1, x2, y2) {\n var pl = paddingLeft(), pt = paddingTop(), lh = textHeight();\n y1 += pt; y2 += pt; x1 += pl; x2 += pl;\n var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true;\n if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;}\n else if (y2 > screentop + screen) {scroller.scrollTop = y2 + lh - screen; scrolled = true;}\n\n var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;\n var gutterw = options.fixedGutter ? gutter.clientWidth : 0;\n if (x1 < screenleft + gutterw) {\n if (x1 < 50) x1 = 0;\n scroller.scrollLeft = Math.max(0, x1 - 10 - gutterw);\n scrolled = true;\n }\n else if (x2 > screenw + screenleft - 3) {\n scroller.scrollLeft = x2 + 10 - screenw;\n scrolled = true;\n if (x2 > code.clientWidth) result = false;\n }\n if (scrolled && options.onScroll) options.onScroll(instance);\n return result;\n }\n\n function visibleLines() {\n var lh = textHeight(), top = scroller.scrollTop - paddingTop();\n var from_height = Math.max(0, Math.floor(top / lh));\n var to_height = Math.ceil((top + scroller.clientHeight) / lh);\n return {from: lineAtHeight(doc, from_height),\n to: lineAtHeight(doc, to_height)};\n }\n // Uses a set of changes plus the current scroll position to\n // determine which DOM updates have to be made, and makes the\n // updates.\n function updateDisplay(changes, suppressCallback) {\n if (!scroller.clientWidth) {\n showingFrom = showingTo = displayOffset = 0;\n return;\n }\n // Compute the new visible window\n var visible = visibleLines();\n // Bail out if the visible area is already rendered and nothing changed.\n if (changes !== true && changes.length == 0 && visible.from >= showingFrom && visible.to <= showingTo) return;\n var from = Math.max(visible.from - 100, 0), to = Math.min(doc.size, visible.to + 100);\n if (showingFrom < from && from - showingFrom < 20) from = showingFrom;\n if (showingTo > to && showingTo - to < 20) to = Math.min(doc.size, showingTo);\n\n // Create a range of theoretically intact lines, and punch holes\n // in that using the change info.\n var intact = changes === true ? [] :\n computeIntact([{from: showingFrom, to: showingTo, domStart: 0}], changes);\n // Clip off the parts that won't be visible\n var intactLines = 0;\n for (var i = 0; i < intact.length; ++i) {\n var range = intact[i];\n if (range.from < from) {range.domStart += (from - range.from); range.from = from;}\n if (range.to > to) range.to = to;\n if (range.from >= range.to) intact.splice(i--, 1);\n else intactLines += range.to - range.from;\n }\n if (intactLines == to - from) return;\n intact.sort(function(a, b) {return a.domStart - b.domStart;});\n\n var th = textHeight(), gutterDisplay = gutter.style.display;\n lineDiv.style.display = gutter.style.display = \"none\";\n patchDisplay(from, to, intact);\n lineDiv.style.display = \"\";\n\n // Position the mover div to align with the lines it's supposed\n // to be showing (which will cover the visible display)\n var different = from != showingFrom || to != showingTo || lastSizeC != scroller.clientHeight + th;\n // This is just a bogus formula that detects when the editor is\n // resized or the font size changes.\n if (different) lastSizeC = scroller.clientHeight + th;\n showingFrom = from; showingTo = to;\n displayOffset = heightAtLine(doc, from);\n mover.style.top = (displayOffset * th) + \"px\";\n code.style.height = (doc.height * th + 2 * paddingTop()) + \"px\";\n\n // Since this is all rather error prone, it is honoured with the\n // only assertion in the whole file.\n if (lineDiv.childNodes.length != showingTo - showingFrom)\n throw new Error(\"BAD PATCH! \" + JSON.stringify(intact) + \" size=\" + (showingTo - showingFrom) +\n \" nodes=\" + lineDiv.childNodes.length);\n\n if (options.lineWrapping) {\n maxWidth = scroller.clientWidth;\n var curNode = lineDiv.firstChild;\n doc.iter(showingFrom, showingTo, function(line) {\n if (!line.hidden) {\n var height = Math.round(curNode.offsetHeight / th) || 1;\n if (line.height != height) {updateLineHeight(line, height); gutterDirty = true;}\n }\n curNode = curNode.nextSibling;\n });\n } else {\n if (maxWidth == null) maxWidth = stringWidth(maxLine);\n if (maxWidth > scroller.clientWidth) {\n lineSpace.style.width = maxWidth + \"px\";\n // Needed to prevent odd wrapping/hiding of widgets placed in here.\n code.style.width = \"\";\n code.style.width = scroller.scrollWidth + \"px\";\n } else {\n lineSpace.style.width = code.style.width = \"\";\n }\n }\n gutter.style.display = gutterDisplay;\n if (different || gutterDirty) updateGutter();\n updateCursor();\n if (!suppressCallback && options.onUpdate) options.onUpdate(instance);\n return true;\n }\n\n function computeIntact(intact, changes) {\n for (var i = 0, l = changes.length || 0; i < l; ++i) {\n var change = changes[i], intact2 = [], diff = change.diff || 0;\n for (var j = 0, l2 = intact.length; j < l2; ++j) {\n var range = intact[j];\n if (change.to <= range.from && change.diff)\n intact2.push({from: range.from + diff, to: range.to + diff,\n domStart: range.domStart});\n else if (change.to <= range.from || change.from >= range.to)\n intact2.push(range);\n else {\n if (change.from > range.from)\n intact2.push({from: range.from, to: change.from, domStart: range.domStart});\n if (change.to < range.to)\n intact2.push({from: change.to + diff, to: range.to + diff,\n domStart: range.domStart + (change.to - range.from)});\n }\n }\n intact = intact2;\n }\n return intact;\n }\n\n function patchDisplay(from, to, intact) {\n // The first pass removes the DOM nodes that aren't intact.\n if (!intact.length) lineDiv.innerHTML = \"\";\n else {\n function killNode(node) {\n var tmp = node.nextSibling;\n node.parentNode.removeChild(node);\n return tmp;\n }\n var domPos = 0, curNode = lineDiv.firstChild, n;\n for (var i = 0; i < intact.length; ++i) {\n var cur = intact[i];\n while (cur.domStart > domPos) {curNode = killNode(curNode); domPos++;}\n for (var j = 0, e = cur.to - cur.from; j < e; ++j) {curNode = curNode.nextSibling; domPos++;}\n }\n while (curNode) curNode = killNode(curNode);\n }\n // This pass fills in the lines that actually changed.\n var nextIntact = intact.shift(), curNode = lineDiv.firstChild, j = from;\n var sfrom = sel.from.line, sto = sel.to.line, inSel = sfrom < from && sto >= from;\n var scratch = targetDocument.createElement(\"div\"), newElt;\n doc.iter(from, to, function(line) {\n var ch1 = null, ch2 = null;\n if (inSel) {\n ch1 = 0;\n if (sto == j) {inSel = false; ch2 = sel.to.ch;}\n } else if (sfrom == j) {\n if (sto == j) {ch1 = sel.from.ch; ch2 = sel.to.ch;}\n else {inSel = true; ch1 = sel.from.ch;}\n }\n if (nextIntact && nextIntact.to == j) nextIntact = intact.shift();\n if (!nextIntact || nextIntact.from > j) {\n if (line.hidden) scratch.innerHTML = \"<pre></pre>\";\n else scratch.innerHTML = line.getHTML(ch1, ch2, true, tabText);\n lineDiv.insertBefore(scratch.firstChild, curNode);\n } else {\n curNode = curNode.nextSibling;\n }\n ++j;\n });\n }\n\n function updateGutter() {\n if (!options.gutter && !options.lineNumbers) return;\n var hText = mover.offsetHeight, hEditor = scroller.clientHeight;\n gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + \"px\";\n var html = [], i = showingFrom;\n doc.iter(showingFrom, Math.max(showingTo, showingFrom + 1), function(line) {\n if (line.hidden) {\n html.push(\"<pre></pre>\");\n } else {\n var marker = line.gutterMarker;\n var text = options.lineNumbers ? i + options.firstLineNumber : null;\n if (marker && marker.text)\n text = marker.text.replace(\"%N%\", text != null ? text : \"\");\n else if (text == null)\n text = \"\\u00a0\";\n html.push((marker && marker.style ? '<pre class=\"' + marker.style + '\">' : \"<pre>\"), text);\n for (var j = 1; j < line.height; ++j) html.push(\"<br/>&#160;\");\n html.push(\"</pre>\");\n }\n ++i;\n });\n gutter.style.display = \"none\";\n gutterText.innerHTML = html.join(\"\");\n var minwidth = String(doc.size).length, firstNode = gutterText.firstChild, val = eltText(firstNode), pad = \"\";\n while (val.length + pad.length < minwidth) pad += \"\\u00a0\";\n if (pad) firstNode.insertBefore(targetDocument.createTextNode(pad), firstNode.firstChild);\n gutter.style.display = \"\";\n lineSpace.style.marginLeft = gutter.offsetWidth + \"px\";\n gutterDirty = false;\n }\n function updateCursor() {\n var head = sel.inverted ? sel.from : sel.to, lh = textHeight();\n var pos = localCoords(head, true);\n var wrapOff = eltOffset(wrapper), lineOff = eltOffset(lineDiv);\n inputDiv.style.top = (pos.y + lineOff.top - wrapOff.top) + \"px\";\n inputDiv.style.left = (pos.x + lineOff.left - wrapOff.left) + \"px\";\n if (posEq(sel.from, sel.to)) {\n cursor.style.top = pos.y + \"px\";\n cursor.style.left = (options.lineWrapping ? Math.min(pos.x, lineSpace.offsetWidth) : pos.x) + \"px\";\n cursor.style.display = \"\";\n }\n else cursor.style.display = \"none\";\n }\n\n function setShift(val) {\n if (val) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);\n else shiftSelecting = null;\n }\n function setSelectionUser(from, to) {\n var sh = shiftSelecting && clipPos(shiftSelecting);\n if (sh) {\n if (posLess(sh, from)) from = sh;\n else if (posLess(to, sh)) to = sh;\n }\n setSelection(from, to);\n userSelChange = true;\n }\n // Update the selection. Last two args are only used by\n // updateLines, since they have to be expressed in the line\n // numbers before the update.\n function setSelection(from, to, oldFrom, oldTo) {\n goalColumn = null;\n if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}\n if (posEq(sel.from, from) && posEq(sel.to, to)) return;\n if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}\n\n // Skip over hidden lines.\n if (from.line != oldFrom) from = skipHidden(from, oldFrom, sel.from.ch);\n if (to.line != oldTo) to = skipHidden(to, oldTo, sel.to.ch);\n\n if (posEq(from, to)) sel.inverted = false;\n else if (posEq(from, sel.to)) sel.inverted = false;\n else if (posEq(to, sel.from)) sel.inverted = true;\n\n // Some ugly logic used to only mark the lines that actually did\n // see a change in selection as changed, rather than the whole\n // selected range.\n if (posEq(from, to)) {\n if (!posEq(sel.from, sel.to))\n changes.push({from: oldFrom, to: oldTo + 1});\n }\n else if (posEq(sel.from, sel.to)) {\n changes.push({from: from.line, to: to.line + 1});\n }\n else {\n if (!posEq(from, sel.from)) {\n if (from.line < oldFrom)\n changes.push({from: from.line, to: Math.min(to.line, oldFrom) + 1});\n else\n changes.push({from: oldFrom, to: Math.min(oldTo, from.line) + 1});\n }\n if (!posEq(to, sel.to)) {\n if (to.line < oldTo)\n changes.push({from: Math.max(oldFrom, from.line), to: oldTo + 1});\n else\n changes.push({from: Math.max(from.line, oldTo), to: to.line + 1});\n }\n }\n sel.from = from; sel.to = to;\n selectionChanged = true;\n }\n function skipHidden(pos, oldLine, oldCh) {\n function getNonHidden(dir) {\n var lNo = pos.line + dir, end = dir == 1 ? doc.size : -1;\n while (lNo != end) {\n var line = getLine(lNo);\n if (!line.hidden) {\n var ch = pos.ch;\n if (ch > oldCh || ch > line.text.length) ch = line.text.length;\n return {line: lNo, ch: ch};\n }\n lNo += dir;\n }\n }\n var line = getLine(pos.line);\n if (!line.hidden) return pos;\n if (pos.line >= oldLine) return getNonHidden(1) || getNonHidden(-1);\n else return getNonHidden(-1) || getNonHidden(1);\n }\n function setCursor(line, ch, user) {\n var pos = clipPos({line: line, ch: ch || 0});\n (user ? setSelectionUser : setSelection)(pos, pos);\n }\n\n function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}\n function clipPos(pos) {\n if (pos.line < 0) return {line: 0, ch: 0};\n if (pos.line >= doc.size) return {line: doc.size-1, ch: getLine(doc.size-1).text.length};\n var ch = pos.ch, linelen = getLine(pos.line).text.length;\n if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};\n else if (ch < 0) return {line: pos.line, ch: 0};\n else return pos;\n }\n\n function findPosH(dir, unit) {\n var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;\n var lineObj = getLine(line);\n function findNextLine() {\n for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {\n var lo = getLine(l);\n if (!lo.hidden) { line = l; lineObj = lo; return true; }\n }\n }\n function moveOnce(boundToLine) {\n if (ch == (dir < 0 ? 0 : lineObj.text.length)) {\n if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;\n else return false;\n } else ch += dir;\n return true;\n }\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\") {\n var sawWord = false;\n for (;;) {\n if (dir < 0) if (!moveOnce()) break;\n if (isWordChar(lineObj.text.charAt(ch))) sawWord = true;\n else if (sawWord) {if (dir < 0) {dir = 1; moveOnce();} break;}\n if (dir > 0) if (!moveOnce()) break;\n }\n }\n return {line: line, ch: ch};\n }\n function moveH(dir, unit) {\n var pos = dir < 0 ? sel.from : sel.to;\n if (shiftSelecting || posEq(sel.from, sel.to)) pos = findPosH(dir, unit);\n setCursor(pos.line, pos.ch, true);\n }\n function deleteH(dir, unit) {\n if (!posEq(sel.from, sel.to)) replaceRange(\"\", sel.from, sel.to);\n else if (dir < 0) replaceRange(\"\", findPosH(dir, unit), sel.to);\n else replaceRange(\"\", sel.from, findPosH(dir, unit));\n userSelChange = true;\n }\n var goalColumn = null;\n function moveV(dir, unit) {\n var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);\n if (goalColumn != null) pos.x = goalColumn;\n if (unit == \"page\") dist = scroller.clientHeight;\n else if (unit == \"line\") dist = textHeight();\n var target = coordsChar(pos.x, pos.y + dist * dir + 2);\n setCursor(target.line, target.ch, true);\n goalColumn = pos.x;\n }\n\n function selectWordAt(pos) {\n var line = getLine(pos.line).text;\n var start = pos.ch, end = pos.ch;\n while (start > 0 && isWordChar(line.charAt(start - 1))) --start;\n while (end < line.length && isWordChar(line.charAt(end))) ++end;\n setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});\n }\n function selectLine(line) {\n setSelectionUser({line: line, ch: 0}, {line: line, ch: getLine(line).text.length});\n }\n function indentSelected(mode) {\n if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);\n var e = sel.to.line - (sel.to.ch ? 0 : 1);\n for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);\n }\n\n function indentLine(n, how) {\n if (!how) how = \"add\";\n if (how == \"smart\") {\n if (!mode.indent) how = \"prev\";\n else var state = getStateBefore(n);\n }\n\n var line = getLine(n), curSpace = line.indentation(options.tabSize),\n curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (how == \"prev\") {\n if (n) indentation = getLine(n-1).indentation(options.tabSize);\n else indentation = 0;\n }\n else if (how == \"smart\") indentation = mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n else if (how == \"add\") indentation = curSpace + options.indentUnit;\n else if (how == \"subtract\") indentation = curSpace - options.indentUnit;\n indentation = Math.max(0, indentation);\n var diff = indentation - curSpace;\n\n if (!diff) {\n if (sel.from.line != n && sel.to.line != n) return;\n var indentString = curSpaceString;\n }\n else {\n var indentString = \"\", pos = 0;\n if (options.indentWithTabs)\n for (var i = Math.floor(indentation / options.tabSize); i; --i) {pos += options.tabSize; indentString += \"\\t\";}\n while (pos < indentation) {++pos; indentString += \" \";}\n }\n\n replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});\n }\n\n function loadMode() {\n mode = CodeMirror.getMode(options, options.mode);\n doc.iter(0, doc.size, function(line) { line.stateAfter = null; });\n work = [0];\n startWorker();\n }\n function gutterChanged() {\n var visible = options.gutter || options.lineNumbers;\n gutter.style.display = visible ? \"\" : \"none\";\n if (visible) gutterDirty = true;\n else lineDiv.parentNode.style.marginLeft = 0;\n }\n function wrappingChanged(from, to) {\n if (options.lineWrapping) {\n wrapper.className += \" CodeMirror-wrap\";\n var perLine = scroller.clientWidth / charWidth() - 3;\n doc.iter(0, doc.size, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != 1) updateLineHeight(line, guess);\n });\n lineSpace.style.width = code.style.width = \"\";\n } else {\n wrapper.className = wrapper.className.replace(\" CodeMirror-wrap\", \"\");\n maxWidth = null; maxLine = \"\";\n doc.iter(0, doc.size, function(line) {\n if (line.height != 1 && !line.hidden) updateLineHeight(line, 1);\n if (line.text.length > maxLine.length) maxLine = line.text;\n });\n }\n changes.push({from: 0, to: doc.size});\n }\n function computeTabText() {\n for (var str = '<span class=\"cm-tab\">', i = 0; i < options.tabSize; ++i) str += \" \";\n return str + \"</span>\";\n }\n function tabsChanged() {\n tabText = computeTabText();\n updateDisplay(true);\n }\n function themeChanged() {\n scroller.className = scroller.className.replace(/\\s*cm-s-\\w+/g, \"\") +\n options.theme.replace(/(^|\\s)\\s*/g, \" cm-s-\");\n }\n\n function TextMarker() { this.set = []; }\n TextMarker.prototype.clear = operation(function() {\n var min = Infinity, max = -Infinity;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n if (!mk || !line.parent) continue;\n var lineN = lineNo(line);\n min = Math.min(min, lineN); max = Math.max(max, lineN);\n for (var j = 0; j < mk.length; ++j)\n if (mk[j].set == this.set) mk.splice(j--, 1);\n }\n if (min != Infinity)\n changes.push({from: min, to: max + 1});\n });\n TextMarker.prototype.find = function() {\n var from, to;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n for (var j = 0; j < mk.length; ++j) {\n var mark = mk[j];\n if (mark.set == this.set) {\n if (mark.from != null || mark.to != null) {\n var found = lineNo(line);\n if (found != null) {\n if (mark.from != null) from = {line: found, ch: mark.from};\n if (mark.to != null) to = {line: found, ch: mark.to};\n }\n }\n }\n }\n }\n return {from: from, to: to};\n };\n\n function markText(from, to, className) {\n from = clipPos(from); to = clipPos(to);\n var tm = new TextMarker();\n function add(line, from, to, className) {\n getLine(line).addMark(new MarkedText(from, to, className, tm.set));\n }\n if (from.line == to.line) add(from.line, from.ch, to.ch, className);\n else {\n add(from.line, from.ch, null, className);\n for (var i = from.line + 1, e = to.line; i < e; ++i)\n add(i, null, null, className);\n add(to.line, null, to.ch, className);\n }\n changes.push({from: from.line, to: to.line + 1});\n return tm;\n }\n\n function setBookmark(pos) {\n pos = clipPos(pos);\n var bm = new Bookmark(pos.ch);\n getLine(pos.line).addMark(bm);\n return bm;\n }\n\n function addGutterMarker(line, text, className) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = {text: text, style: className};\n gutterDirty = true;\n return line;\n }\n function removeGutterMarker(line) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = null;\n gutterDirty = true;\n }\n\n function changeLine(handle, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(clipLine(handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no)) changes.push({from: no, to: no + 1});\n else return null;\n return line;\n }\n function setLineClass(handle, className) {\n return changeLine(handle, function(line) {\n if (line.className != className) {\n line.className = className;\n return true;\n }\n });\n }\n function setLineHidden(handle, hidden) {\n return changeLine(handle, function(line, no) {\n if (line.hidden != hidden) {\n line.hidden = hidden;\n updateLineHeight(line, hidden ? 0 : 1);\n if (hidden && (sel.from.line == no || sel.to.line == no))\n setSelection(skipHidden(sel.from, sel.from.line, sel.from.ch),\n skipHidden(sel.to, sel.to.line, sel.to.ch));\n return (gutterDirty = true);\n }\n });\n }\n\n function lineInfo(line) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n var n = line;\n line = getLine(line);\n if (!line) return null;\n }\n else {\n var n = lineNo(line);\n if (n == null) return null;\n }\n var marker = line.gutterMarker;\n return {line: n, handle: line, text: line.text, markerText: marker && marker.text,\n markerClass: marker && marker.style, lineClass: line.className};\n }\n\n function stringWidth(str) {\n measure.innerHTML = \"<pre><span>x</span></pre>\";\n measure.firstChild.firstChild.firstChild.nodeValue = str;\n return measure.firstChild.firstChild.offsetWidth || 10;\n }\n // These are used to go from pixel positions to character\n // positions, taking varying character widths into account.\n function charFromX(line, x) {\n if (x <= 0) return 0;\n var lineObj = getLine(line), text = lineObj.text;\n function getX(len) {\n measure.innerHTML = \"<pre><span>\" + lineObj.getHTML(null, null, false, tabText, len) + \"</span></pre>\";\n return measure.firstChild.firstChild.offsetWidth;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil(x / charWidth()));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return to;\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return (toX - x > x - fromX) ? from : to;\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n\n var tempId = Math.floor(Math.random() * 0xffffff).toString(16);\n function measureLine(line, ch) {\n var extra = \"\";\n // Include extra text at the end to make sure the measured line is wrapped in the right way.\n if (options.lineWrapping) {\n var end = line.text.indexOf(\" \", ch + 2);\n extra = htmlEscape(line.text.slice(ch + 1, end < 0 ? line.text.length : end + (ie ? 5 : 0)));\n }\n measure.innerHTML = \"<pre>\" + line.getHTML(null, null, false, tabText, ch) +\n '<span id=\"CodeMirror-temp-' + tempId + '\">' + htmlEscape(line.text.charAt(ch) || \" \") + \"</span>\" +\n extra + \"</pre>\";\n var elt = document.getElementById(\"CodeMirror-temp-\" + tempId);\n var top = elt.offsetTop, left = elt.offsetLeft;\n // Older IEs report zero offsets for spans directly after a wrap\n if (ie && ch && top == 0 && left == 0) {\n var backup = document.createElement(\"span\");\n backup.innerHTML = \"x\";\n elt.parentNode.insertBefore(backup, elt.nextSibling);\n top = backup.offsetTop;\n }\n return {top: top, left: left};\n }\n function localCoords(pos, inLineWrap) {\n var x, lh = textHeight(), y = lh * (heightAtLine(doc, pos.line) - (inLineWrap ? displayOffset : 0));\n if (pos.ch == 0) x = 0;\n else {\n var sp = measureLine(getLine(pos.line), pos.ch);\n x = sp.left;\n if (options.lineWrapping) y += Math.max(0, sp.top);\n }\n return {x: x, y: y, yBot: y + lh};\n }\n // Coords must be lineSpace-local\n function coordsChar(x, y) {\n if (y < 0) y = 0;\n var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);\n var lineNo = lineAtHeight(doc, heightPos);\n if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};\n var lineObj = getLine(lineNo), text = lineObj.text;\n var tw = options.lineWrapping, innerOff = tw ? heightPos - heightAtLine(doc, lineNo) : 0;\n if (x <= 0 && innerOff == 0) return {line: lineNo, ch: 0};\n function getX(len) {\n var sp = measureLine(lineObj, len);\n if (tw) {\n var off = Math.round(sp.top / th);\n return Math.max(0, sp.left + (off - innerOff) * scroller.clientWidth);\n }\n return sp.left;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil((x + innerOff * scroller.clientWidth * .9) / cw));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return {line: lineNo, ch: to};\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return {line: lineNo, ch: (toX - x > x - fromX) ? from : to};\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n function pageCoords(pos) {\n var local = localCoords(pos, true), off = eltOffset(lineSpace);\n return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};\n }\n\n var cachedHeight, cachedHeightFor, measureText;\n function textHeight() {\n if (measureText == null) {\n measureText = \"<pre>\";\n for (var i = 0; i < 49; ++i) measureText += \"x<br/>\";\n measureText += \"x</pre>\";\n }\n var offsetHeight = lineDiv.clientHeight;\n if (offsetHeight == cachedHeightFor) return cachedHeight;\n cachedHeightFor = offsetHeight;\n measure.innerHTML = measureText;\n cachedHeight = measure.firstChild.offsetHeight / 50 || 1;\n measure.innerHTML = \"\";\n return cachedHeight;\n }\n var cachedWidth, cachedWidthFor = 0;\n function charWidth() {\n if (scroller.clientWidth == cachedWidthFor) return cachedWidth;\n cachedWidthFor = scroller.clientWidth;\n return (cachedWidth = stringWidth(\"x\"));\n }\n function paddingTop() {return lineSpace.offsetTop;}\n function paddingLeft() {return lineSpace.offsetLeft;}\n\n function posFromMouse(e, liberal) {\n var offW = eltOffset(scroller, true), x, y;\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX; y = e.clientY; } catch (e) { return null; }\n // This is a mess of a heuristic to try and determine whether a\n // scroll-bar was clicked or not, and to return null if one was\n // (and !liberal).\n if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))\n return null;\n var offL = eltOffset(lineSpace, true);\n return coordsChar(x - offL.left, y - offL.top);\n }\n function onContextMenu(e) {\n var pos = posFromMouse(e);\n if (!pos || window.opera) return; // Opera is difficult.\n if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))\n operation(setCursor)(pos.line, pos.ch);\n\n var oldCSS = input.style.cssText;\n inputDiv.style.position = \"absolute\";\n input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: white; \" +\n \"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n leaveInputAlone = true;\n var val = input.value = getSelection();\n focusInput();\n input.select();\n function rehide() {\n var newVal = splitLines(input.value).join(\"\\n\");\n if (newVal != val) operation(replaceSelection)(newVal, \"end\");\n inputDiv.style.position = \"relative\";\n input.style.cssText = oldCSS;\n leaveInputAlone = false;\n resetInput(true);\n slowPoll();\n }\n\n if (gecko) {\n e_stop(e);\n var mouseup = connect(window, \"mouseup\", function() {\n mouseup();\n setTimeout(rehide, 20);\n }, true);\n }\n else {\n setTimeout(rehide, 50);\n }\n }\n\n // Cursor-blinking\n function restartBlink() {\n clearInterval(blinker);\n var on = true;\n cursor.style.visibility = \"\";\n blinker = setInterval(function() {\n cursor.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, 650);\n }\n\n var matching = {\"(\": \")>\", \")\": \"(<\", \"[\": \"]>\", \"]\": \"[<\", \"{\": \"}>\", \"}\": \"{<\"};\n function matchBrackets(autoclear) {\n var head = sel.inverted ? sel.from : sel.to, line = getLine(head.line), pos = head.ch - 1;\n var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];\n if (!match) return;\n var ch = match.charAt(0), forward = match.charAt(1) == \">\", d = forward ? 1 : -1, st = line.styles;\n for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)\n if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}\n\n var stack = [line.text.charAt(pos)], re = /[(){}[\\]]/;\n function scan(line, from, to) {\n if (!line.text) return;\n var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;\n for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {\n var text = st[i];\n if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;}\n for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {\n if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {\n var match = matching[cur];\n if (match.charAt(1) == \">\" == forward) stack.push(cur);\n else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};\n else if (!stack.length) return {pos: pos, match: true};\n }\n }\n }\n }\n for (var i = head.line, e = forward ? Math.min(i + 100, doc.size) : Math.max(-1, i - 100); i != e; i+=d) {\n var line = getLine(i), first = i == head.line;\n var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);\n if (found) break;\n }\n if (!found) found = {pos: null, match: false};\n var style = found.match ? \"CodeMirror-matchingbracket\" : \"CodeMirror-nonmatchingbracket\";\n var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),\n two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);\n var clear = operation(function(){one.clear(); two && two.clear();});\n if (autoclear) setTimeout(clear, 800);\n else bracketHighlighted = clear;\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(n) {\n var minindent, minline;\n for (var search = n, lim = n - 40; search > lim; --search) {\n if (search == 0) return 0;\n var line = getLine(search-1);\n if (line.stateAfter) return search;\n var indented = line.indentation(options.tabSize);\n if (minline == null || minindent > indented) {\n minline = search - 1;\n minindent = indented;\n }\n }\n return minline;\n }\n function getStateBefore(n) {\n var start = findStartLine(n), state = start && getLine(start-1).stateAfter;\n if (!state) state = startState(mode);\n else state = copyState(mode, state);\n doc.iter(start, n, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n if (start < n) changes.push({from: start, to: n});\n if (n < doc.size && !getLine(n).stateAfter) work.push(n);\n return state;\n }\n function highlightLines(start, end) {\n var state = getStateBefore(start);\n doc.iter(start, end, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n }\n function highlightWorker() {\n var end = +new Date + options.workTime;\n var foundWork = work.length;\n while (work.length) {\n if (!getLine(showingFrom).stateAfter) var task = showingFrom;\n else var task = work.pop();\n if (task >= doc.size) continue;\n var start = findStartLine(task), state = start && getLine(start-1).stateAfter;\n if (state) state = copyState(mode, state);\n else state = startState(mode);\n\n var unchanged = 0, compare = mode.compareStates, realChange = false,\n i = start, bail = false;\n doc.iter(i, doc.size, function(line) {\n var hadState = line.stateAfter;\n if (+new Date > end) {\n work.push(i);\n startWorker(options.workDelay);\n if (realChange) changes.push({from: task, to: i + 1});\n return (bail = true);\n }\n var changed = line.highlight(mode, state, options.tabSize);\n if (changed) realChange = true;\n line.stateAfter = copyState(mode, state);\n if (compare) {\n if (hadState && compare(hadState, state)) return true;\n } else {\n if (changed !== false || !hadState) unchanged = 0;\n else if (++unchanged > 3 && (!mode.indent || mode.indent(hadState, \"\") == mode.indent(state, \"\")))\n return true;\n }\n ++i;\n });\n if (bail) return;\n if (realChange) changes.push({from: task, to: i + 1});\n }\n if (foundWork && options.onHighlightComplete)\n options.onHighlightComplete(instance);\n }\n function startWorker(time) {\n if (!work.length) return;\n highlight.set(time, operation(highlightWorker));\n }\n\n // Operations are used to wrap changes in such a way that each\n // change won't have to update the cursor and display (which would\n // be awkward, slow, and error-prone), but instead updates are\n // batched and then all combined and executed at once.\n function startOperation() {\n updateInput = userSelChange = textChanged = null;\n changes = []; selectionChanged = false; callbacks = [];\n }\n function endOperation() {\n var reScroll = false, updated;\n if (selectionChanged) reScroll = !scrollCursorIntoView();\n if (changes.length) updated = updateDisplay(changes, true);\n else {\n if (selectionChanged) updateCursor();\n if (gutterDirty) updateGutter();\n }\n if (reScroll) scrollCursorIntoView();\n if (selectionChanged) {scrollEditorIntoView(); restartBlink();}\n\n if (focused && !leaveInputAlone &&\n (updateInput === true || (updateInput !== false && selectionChanged)))\n resetInput(userSelChange);\n\n if (selectionChanged && options.matchBrackets)\n setTimeout(operation(function() {\n if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}\n if (posEq(sel.from, sel.to)) matchBrackets(false);\n }), 20);\n var tc = textChanged, cbs = callbacks; // these can be reset by callbacks\n if (selectionChanged && options.onCursorActivity)\n options.onCursorActivity(instance);\n if (tc && options.onChange && instance)\n options.onChange(instance, tc);\n for (var i = 0; i < cbs.length; ++i) cbs[i](instance);\n if (updated && options.onUpdate) options.onUpdate(instance);\n }\n var nestedOperation = 0;\n function operation(f) {\n return function() {\n if (!nestedOperation++) startOperation();\n try {var result = f.apply(this, arguments);}\n finally {if (!--nestedOperation) endOperation();}\n return result;\n };\n }\n\n for (var ext in extensions)\n if (extensions.propertyIsEnumerable(ext) &&\n !instance.propertyIsEnumerable(ext))\n instance[ext] = extensions[ext];\n return instance;\n } // (end of function CodeMirror)", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n var helpers = CodeMirror.helpers = {};\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function focus() {\n window.focus();\n this.display.input.focus();\n },\n setOption: function setOption(option, value) {\n var options = this.options,\n old = options[option];\n\n if (options[option] == value && option != \"mode\") {\n return;\n }\n\n options[option] = value;\n\n if (optionHandlers.hasOwnProperty(option)) {\n operation(this, optionHandlers[option])(this, value, old);\n }\n\n signal(this, \"optionChange\", this, option);\n },\n getOption: function getOption(option) {\n return this.options[option];\n },\n getDoc: function getDoc() {\n return this.doc;\n },\n addKeyMap: function addKeyMap(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function removeKeyMap(map) {\n var maps = this.state.keyMaps;\n\n for (var i = 0; i < maps.length; ++i) {\n if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true;\n }\n }\n },\n addOverlay: methodOp(function (spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n\n if (mode.startState) {\n throw new Error(\"Overlays may not be stateful.\");\n }\n\n insertSorted(this.state.overlays, {\n mode: mode,\n modeSpec: spec,\n opaque: options && options.opaque,\n priority: options && options.priority || 0\n }, function (overlay) {\n return overlay.priority;\n });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function (spec) {\n var overlays = this.state.overlays;\n\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return;\n }\n }\n }),\n indentLine: methodOp(function (n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) {\n dir = this.options.smartIndent ? \"smart\" : \"prev\";\n } else {\n dir = dir ? \"add\" : \"subtract\";\n }\n }\n\n if (isLine(this.doc, n)) {\n indentLine(this, n, dir, aggressive);\n }\n }),\n indentSelection: methodOp(function (how) {\n var ranges = this.doc.sel.ranges,\n end = -1;\n\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n\n if (!range.empty()) {\n var from = range.from(),\n to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n\n for (var j = start; j < end; ++j) {\n indentLine(this, j, how);\n }\n\n var newRanges = this.doc.sel.ranges;\n\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0) {\n replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll);\n }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n\n if (i == this.doc.sel.primIndex) {\n ensureCursorVisible(this);\n }\n }\n }\n }),\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function getTokenAt(pos, precise) {\n return takeToken(this, pos, precise);\n },\n getLineTokens: function getLineTokens(line, precise) {\n return takeToken(this, Pos(line), precise, true);\n },\n getTokenTypeAt: function getTokenTypeAt(pos) {\n pos = _clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0,\n after = (styles.length - 1) / 2,\n ch = pos.ch;\n var type;\n\n if (ch == 0) {\n type = styles[2];\n } else {\n for (;;) {\n var mid = before + after >> 1;\n\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) {\n after = mid;\n } else if (styles[mid * 2 + 1] < ch) {\n before = mid + 1;\n } else {\n type = styles[mid * 2 + 2];\n break;\n }\n }\n }\n\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1);\n },\n getModeAt: function getModeAt(pos) {\n var mode = this.doc.mode;\n\n if (!mode.innerMode) {\n return mode;\n }\n\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode;\n },\n getHelper: function getHelper(pos, type) {\n return this.getHelpers(pos, type)[0];\n },\n getHelpers: function getHelpers(pos, type) {\n var found = [];\n\n if (!helpers.hasOwnProperty(type)) {\n return found;\n }\n\n var help = helpers[type],\n mode = this.getModeAt(pos);\n\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) {\n found.push(help[mode[type]]);\n }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n\n if (val) {\n found.push(val);\n }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1) {\n found.push(cur.val);\n }\n }\n\n return found;\n },\n getStateAfter: function getStateAfter(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1 : line);\n return getContextBefore(this, line + 1, precise).state;\n },\n cursorCoords: function cursorCoords(start, mode) {\n var pos,\n range = this.doc.sel.primary();\n\n if (start == null) {\n pos = range.head;\n } else if (_typeof(start) == \"object\") {\n pos = _clipPos(this.doc, start);\n } else {\n pos = start ? range.from() : range.to();\n }\n\n return _cursorCoords(this, pos, mode || \"page\");\n },\n charCoords: function charCoords(pos, mode) {\n return _charCoords(this, _clipPos(this.doc, pos), mode || \"page\");\n },\n coordsChar: function coordsChar(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return _coordsChar(this, coords.left, coords.top);\n },\n lineAtHeight: function lineAtHeight(height, mode) {\n height = fromCoordSystem(this, {\n top: height,\n left: 0\n }, mode || \"page\").top;\n return _lineAtHeight(this.doc, height + this.display.viewOffset);\n },\n heightAtLine: function heightAtLine(line, mode, includeWidgets) {\n var end = false,\n lineObj;\n\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n\n if (line < this.doc.first) {\n line = this.doc.first;\n } else if (line > last) {\n line = last;\n end = true;\n }\n\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n\n return intoCoordSystem(this, lineObj, {\n top: 0,\n left: 0\n }, mode || \"page\", includeWidgets || end).top + (end ? this.doc.height - _heightAtLine(lineObj) : 0);\n },\n defaultTextHeight: function defaultTextHeight() {\n return textHeight(this.display);\n },\n defaultCharWidth: function defaultCharWidth() {\n return charWidth(this.display);\n },\n getViewport: function getViewport() {\n return {\n from: this.display.viewFrom,\n to: this.display.viewTo\n };\n },\n addWidget: function addWidget(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = _cursorCoords(this, _clipPos(this.doc, pos));\n var top = pos.bottom,\n left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth); // Default to positioning above (if specified and possible); otherwise default to positioning below\n\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight) {\n top = pos.top - node.offsetHeight;\n } else if (pos.bottom + node.offsetHeight <= vspace) {\n top = pos.bottom;\n }\n\n if (left + node.offsetWidth > hspace) {\n left = hspace - node.offsetWidth;\n }\n }\n\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") {\n left = 0;\n } else if (horiz == \"middle\") {\n left = (display.sizer.clientWidth - node.offsetWidth) / 2;\n }\n\n node.style.left = left + \"px\";\n }\n\n if (scroll) {\n scrollIntoView(this, {\n left: left,\n top: top,\n right: left + node.offsetWidth,\n bottom: top + node.offsetHeight\n });\n }\n },\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n execCommand: function execCommand(cmd) {\n if (commands.hasOwnProperty(cmd)) {\n return commands[cmd].call(null, this);\n }\n },\n triggerElectric: methodOp(function (text) {\n triggerElectric(this, text);\n }),\n findPosH: function findPosH(from, amount, unit, visually) {\n var dir = 1;\n\n if (amount < 0) {\n dir = -1;\n amount = -amount;\n }\n\n var cur = _clipPos(this.doc, from);\n\n for (var i = 0; i < amount; ++i) {\n cur = _findPosH(this.doc, cur, dir, unit, visually);\n\n if (cur.hitSide) {\n break;\n }\n }\n\n return cur;\n },\n moveH: methodOp(function (dir, unit) {\n var this$1 = this;\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty()) {\n return _findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually);\n } else {\n return dir < 0 ? range.from() : range.to();\n }\n }, sel_move);\n }),\n deleteH: methodOp(function (dir, unit) {\n var sel = this.doc.sel,\n doc = this.doc;\n\n if (sel.somethingSelected()) {\n doc.replaceSelection(\"\", null, \"+delete\");\n } else {\n deleteNearSelection(this, function (range) {\n var other = _findPosH(doc, range.head, dir, unit, false);\n\n return dir < 0 ? {\n from: other,\n to: range.head\n } : {\n from: range.head,\n to: other\n };\n });\n }\n }),\n findPosV: function findPosV(from, amount, unit, goalColumn) {\n var dir = 1,\n x = goalColumn;\n\n if (amount < 0) {\n dir = -1;\n amount = -amount;\n }\n\n var cur = _clipPos(this.doc, from);\n\n for (var i = 0; i < amount; ++i) {\n var coords = _cursorCoords(this, cur, \"div\");\n\n if (x == null) {\n x = coords.left;\n } else {\n coords.left = x;\n }\n\n cur = _findPosV(this, coords, dir, unit);\n\n if (cur.hitSide) {\n break;\n }\n }\n\n return cur;\n },\n moveV: methodOp(function (dir, unit) {\n var this$1 = this;\n var doc = this.doc,\n goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse) {\n return dir < 0 ? range.from() : range.to();\n }\n\n var headPos = _cursorCoords(this$1, range.head, \"div\");\n\n if (range.goalColumn != null) {\n headPos.left = range.goalColumn;\n }\n\n goals.push(headPos.left);\n\n var pos = _findPosV(this$1, headPos, dir, unit);\n\n if (unit == \"page\" && range == doc.sel.primary()) {\n addToScrollTop(this$1, _charCoords(this$1, pos, \"div\").top - headPos.top);\n }\n\n return pos;\n }, sel_move);\n\n if (goals.length) {\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n doc.sel.ranges[i].goalColumn = goals[i];\n }\n }\n }),\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function findWordAt(pos) {\n var doc = this.doc,\n line = getLine(doc, pos.line).text;\n var start = pos.ch,\n end = pos.ch;\n\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n\n if ((pos.sticky == \"before\" || end == line.length) && start) {\n --start;\n } else {\n ++end;\n }\n\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper) ? function (ch) {\n return isWordChar(ch, helper);\n } : /\\s/.test(startChar) ? function (ch) {\n return /\\s/.test(ch);\n } : function (ch) {\n return !/\\s/.test(ch) && !isWordChar(ch);\n };\n\n while (start > 0 && check(line.charAt(start - 1))) {\n --start;\n }\n\n while (end < line.length && check(line.charAt(end))) {\n ++end;\n }\n }\n\n return new Range(Pos(pos.line, start), Pos(pos.line, end));\n },\n toggleOverwrite: function toggleOverwrite(value) {\n if (value != null && value == this.state.overwrite) {\n return;\n }\n\n if (this.state.overwrite = !this.state.overwrite) {\n addClass(this.display.cursorDiv, \"CodeMirror-overwrite\");\n } else {\n rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\");\n }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function hasFocus() {\n return this.display.input.getField() == activeElt();\n },\n isReadOnly: function isReadOnly() {\n return !!(this.options.readOnly || this.doc.cantEdit);\n },\n scrollTo: methodOp(function (x, y) {\n scrollToCoords(this, x, y);\n }),\n getScrollInfo: function getScrollInfo() {\n var scroller = this.display.scroller;\n return {\n left: scroller.scrollLeft,\n top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this),\n clientWidth: displayWidth(this)\n };\n },\n scrollIntoView: methodOp(function (range, margin) {\n if (range == null) {\n range = {\n from: this.doc.sel.primary().head,\n to: null\n };\n\n if (margin == null) {\n margin = this.options.cursorScrollMargin;\n }\n } else if (typeof range == \"number\") {\n range = {\n from: Pos(range, 0),\n to: null\n };\n } else if (range.from == null) {\n range = {\n from: range,\n to: null\n };\n }\n\n if (!range.to) {\n range.to = range.from;\n }\n\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n setSize: methodOp(function (width, height) {\n var this$1 = this;\n\n var interpret = function interpret(val) {\n return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val;\n };\n\n if (width != null) {\n this.display.wrapper.style.width = interpret(width);\n }\n\n if (height != null) {\n this.display.wrapper.style.height = interpret(height);\n }\n\n if (this.options.lineWrapping) {\n clearLineMeasurementCache(this);\n }\n\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) {\n for (var i = 0; i < line.widgets.length; i++) {\n if (line.widgets[i].noHScroll) {\n regLineChange(this$1, lineNo, \"widget\");\n break;\n }\n }\n }\n\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n operation: function operation(f) {\n return runInOp(this, f);\n },\n startOperation: function startOperation() {\n return _startOperation(this);\n },\n endOperation: function endOperation() {\n return _endOperation(this);\n },\n refresh: methodOp(function () {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping) {\n estimateLineHeights(this);\n }\n\n signal(this, \"refresh\", this);\n }),\n swapDoc: methodOp(function (doc) {\n var old = this.doc;\n old.cm = null; // Cancel the current text selection if any (#5821)\n\n if (this.state.selectingText) {\n this.state.selectingText();\n }\n\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old;\n }),\n phrase: function phrase(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText;\n },\n getInputField: function getInputField() {\n return this.display.input.getField();\n },\n getWrapperElement: function getWrapperElement() {\n return this.display.wrapper;\n },\n getScrollerElement: function getScrollerElement() {\n return this.display.scroller;\n },\n getGutterElement: function getGutterElement() {\n return this.display.gutters;\n }\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function (type, name, value) {\n if (!helpers.hasOwnProperty(type)) {\n helpers[type] = CodeMirror[type] = {\n _global: []\n };\n }\n\n helpers[type][name] = value;\n };\n\n CodeMirror.registerGlobalHelper = function (type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n\n helpers[type]._global.push({\n pred: predicate,\n val: value\n });\n };\n } // Used for horizontal relative motion. Dir is -1 or 1 (left or", "function addEditorMethods(CodeMirror) {\n\t\t var optionHandlers = CodeMirror.optionHandlers;\n\n\t\t var helpers = CodeMirror.helpers = {};\n\n\t\t CodeMirror.prototype = {\n\t\t constructor: CodeMirror,\n\t\t focus: function(){win(this).focus(); this.display.input.focus();},\n\n\t\t setOption: function(option, value) {\n\t\t var options = this.options, old = options[option];\n\t\t if (options[option] == value && option != \"mode\") { return }\n\t\t options[option] = value;\n\t\t if (optionHandlers.hasOwnProperty(option))\n\t\t { operation(this, optionHandlers[option])(this, value, old); }\n\t\t signal(this, \"optionChange\", this, option);\n\t\t },\n\n\t\t getOption: function(option) {return this.options[option]},\n\t\t getDoc: function() {return this.doc},\n\n\t\t addKeyMap: function(map, bottom) {\n\t\t this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n\t\t },\n\t\t removeKeyMap: function(map) {\n\t\t var maps = this.state.keyMaps;\n\t\t for (var i = 0; i < maps.length; ++i)\n\t\t { if (maps[i] == map || maps[i].name == map) {\n\t\t maps.splice(i, 1);\n\t\t return true\n\t\t } }\n\t\t },\n\n\t\t addOverlay: methodOp(function(spec, options) {\n\t\t var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n\t\t if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n\t\t insertSorted(this.state.overlays,\n\t\t {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n\t\t priority: (options && options.priority) || 0},\n\t\t function (overlay) { return overlay.priority; });\n\t\t this.state.modeGen++;\n\t\t regChange(this);\n\t\t }),\n\t\t removeOverlay: methodOp(function(spec) {\n\t\t var overlays = this.state.overlays;\n\t\t for (var i = 0; i < overlays.length; ++i) {\n\t\t var cur = overlays[i].modeSpec;\n\t\t if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n\t\t overlays.splice(i, 1);\n\t\t this.state.modeGen++;\n\t\t regChange(this);\n\t\t return\n\t\t }\n\t\t }\n\t\t }),\n\n\t\t indentLine: methodOp(function(n, dir, aggressive) {\n\t\t if (typeof dir != \"string\" && typeof dir != \"number\") {\n\t\t if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n\t\t else { dir = dir ? \"add\" : \"subtract\"; }\n\t\t }\n\t\t if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n\t\t }),\n\t\t indentSelection: methodOp(function(how) {\n\t\t var ranges = this.doc.sel.ranges, end = -1;\n\t\t for (var i = 0; i < ranges.length; i++) {\n\t\t var range = ranges[i];\n\t\t if (!range.empty()) {\n\t\t var from = range.from(), to = range.to();\n\t\t var start = Math.max(end, from.line);\n\t\t end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n\t\t for (var j = start; j < end; ++j)\n\t\t { indentLine(this, j, how); }\n\t\t var newRanges = this.doc.sel.ranges;\n\t\t if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n\t\t { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n\t\t } else if (range.head.line > end) {\n\t\t indentLine(this, range.head.line, how, true);\n\t\t end = range.head.line;\n\t\t if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n\t\t }\n\t\t }\n\t\t }),\n\n\t\t // Fetch the parser token for a given character. Useful for hacks\n\t\t // that want to inspect the mode state (say, for completion).\n\t\t getTokenAt: function(pos, precise) {\n\t\t return takeToken(this, pos, precise)\n\t\t },\n\n\t\t getLineTokens: function(line, precise) {\n\t\t return takeToken(this, Pos(line), precise, true)\n\t\t },\n\n\t\t getTokenTypeAt: function(pos) {\n\t\t pos = clipPos(this.doc, pos);\n\t\t var styles = getLineStyles(this, getLine(this.doc, pos.line));\n\t\t var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n\t\t var type;\n\t\t if (ch == 0) { type = styles[2]; }\n\t\t else { for (;;) {\n\t\t var mid = (before + after) >> 1;\n\t\t if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n\t\t else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n\t\t else { type = styles[mid * 2 + 2]; break }\n\t\t } }\n\t\t var cut = type ? type.indexOf(\"overlay \") : -1;\n\t\t return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n\t\t },\n\n\t\t getModeAt: function(pos) {\n\t\t var mode = this.doc.mode;\n\t\t if (!mode.innerMode) { return mode }\n\t\t return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n\t\t },\n\n\t\t getHelper: function(pos, type) {\n\t\t return this.getHelpers(pos, type)[0]\n\t\t },\n\n\t\t getHelpers: function(pos, type) {\n\t\t var found = [];\n\t\t if (!helpers.hasOwnProperty(type)) { return found }\n\t\t var help = helpers[type], mode = this.getModeAt(pos);\n\t\t if (typeof mode[type] == \"string\") {\n\t\t if (help[mode[type]]) { found.push(help[mode[type]]); }\n\t\t } else if (mode[type]) {\n\t\t for (var i = 0; i < mode[type].length; i++) {\n\t\t var val = help[mode[type][i]];\n\t\t if (val) { found.push(val); }\n\t\t }\n\t\t } else if (mode.helperType && help[mode.helperType]) {\n\t\t found.push(help[mode.helperType]);\n\t\t } else if (help[mode.name]) {\n\t\t found.push(help[mode.name]);\n\t\t }\n\t\t for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n\t\t var cur = help._global[i$1];\n\t\t if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n\t\t { found.push(cur.val); }\n\t\t }\n\t\t return found\n\t\t },\n\n\t\t getStateAfter: function(line, precise) {\n\t\t var doc = this.doc;\n\t\t line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n\t\t return getContextBefore(this, line + 1, precise).state\n\t\t },\n\n\t\t cursorCoords: function(start, mode) {\n\t\t var pos, range = this.doc.sel.primary();\n\t\t if (start == null) { pos = range.head; }\n\t\t else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n\t\t else { pos = start ? range.from() : range.to(); }\n\t\t return cursorCoords(this, pos, mode || \"page\")\n\t\t },\n\n\t\t charCoords: function(pos, mode) {\n\t\t return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n\t\t },\n\n\t\t coordsChar: function(coords, mode) {\n\t\t coords = fromCoordSystem(this, coords, mode || \"page\");\n\t\t return coordsChar(this, coords.left, coords.top)\n\t\t },\n\n\t\t lineAtHeight: function(height, mode) {\n\t\t height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n\t\t return lineAtHeight(this.doc, height + this.display.viewOffset)\n\t\t },\n\t\t heightAtLine: function(line, mode, includeWidgets) {\n\t\t var end = false, lineObj;\n\t\t if (typeof line == \"number\") {\n\t\t var last = this.doc.first + this.doc.size - 1;\n\t\t if (line < this.doc.first) { line = this.doc.first; }\n\t\t else if (line > last) { line = last; end = true; }\n\t\t lineObj = getLine(this.doc, line);\n\t\t } else {\n\t\t lineObj = line;\n\t\t }\n\t\t return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n\t\t (end ? this.doc.height - heightAtLine(lineObj) : 0)\n\t\t },\n\n\t\t defaultTextHeight: function() { return textHeight(this.display) },\n\t\t defaultCharWidth: function() { return charWidth(this.display) },\n\n\t\t getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n\t\t addWidget: function(pos, node, scroll, vert, horiz) {\n\t\t var display = this.display;\n\t\t pos = cursorCoords(this, clipPos(this.doc, pos));\n\t\t var top = pos.bottom, left = pos.left;\n\t\t node.style.position = \"absolute\";\n\t\t node.setAttribute(\"cm-ignore-events\", \"true\");\n\t\t this.display.input.setUneditable(node);\n\t\t display.sizer.appendChild(node);\n\t\t if (vert == \"over\") {\n\t\t top = pos.top;\n\t\t } else if (vert == \"above\" || vert == \"near\") {\n\t\t var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n\t\t hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n\t\t // Default to positioning above (if specified and possible); otherwise default to positioning below\n\t\t if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n\t\t { top = pos.top - node.offsetHeight; }\n\t\t else if (pos.bottom + node.offsetHeight <= vspace)\n\t\t { top = pos.bottom; }\n\t\t if (left + node.offsetWidth > hspace)\n\t\t { left = hspace - node.offsetWidth; }\n\t\t }\n\t\t node.style.top = top + \"px\";\n\t\t node.style.left = node.style.right = \"\";\n\t\t if (horiz == \"right\") {\n\t\t left = display.sizer.clientWidth - node.offsetWidth;\n\t\t node.style.right = \"0px\";\n\t\t } else {\n\t\t if (horiz == \"left\") { left = 0; }\n\t\t else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n\t\t node.style.left = left + \"px\";\n\t\t }\n\t\t if (scroll)\n\t\t { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n\t\t },\n\n\t\t triggerOnKeyDown: methodOp(onKeyDown),\n\t\t triggerOnKeyPress: methodOp(onKeyPress),\n\t\t triggerOnKeyUp: onKeyUp,\n\t\t triggerOnMouseDown: methodOp(onMouseDown),\n\n\t\t execCommand: function(cmd) {\n\t\t if (commands.hasOwnProperty(cmd))\n\t\t { return commands[cmd].call(null, this) }\n\t\t },\n\n\t\t triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n\t\t findPosH: function(from, amount, unit, visually) {\n\t\t var dir = 1;\n\t\t if (amount < 0) { dir = -1; amount = -amount; }\n\t\t var cur = clipPos(this.doc, from);\n\t\t for (var i = 0; i < amount; ++i) {\n\t\t cur = findPosH(this.doc, cur, dir, unit, visually);\n\t\t if (cur.hitSide) { break }\n\t\t }\n\t\t return cur\n\t\t },\n\n\t\t moveH: methodOp(function(dir, unit) {\n\t\t var this$1$1 = this;\n\n\t\t this.extendSelectionsBy(function (range) {\n\t\t if (this$1$1.display.shift || this$1$1.doc.extend || range.empty())\n\t\t { return findPosH(this$1$1.doc, range.head, dir, unit, this$1$1.options.rtlMoveVisually) }\n\t\t else\n\t\t { return dir < 0 ? range.from() : range.to() }\n\t\t }, sel_move);\n\t\t }),\n\n\t\t deleteH: methodOp(function(dir, unit) {\n\t\t var sel = this.doc.sel, doc = this.doc;\n\t\t if (sel.somethingSelected())\n\t\t { doc.replaceSelection(\"\", null, \"+delete\"); }\n\t\t else\n\t\t { deleteNearSelection(this, function (range) {\n\t\t var other = findPosH(doc, range.head, dir, unit, false);\n\t\t return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n\t\t }); }\n\t\t }),\n\n\t\t findPosV: function(from, amount, unit, goalColumn) {\n\t\t var dir = 1, x = goalColumn;\n\t\t if (amount < 0) { dir = -1; amount = -amount; }\n\t\t var cur = clipPos(this.doc, from);\n\t\t for (var i = 0; i < amount; ++i) {\n\t\t var coords = cursorCoords(this, cur, \"div\");\n\t\t if (x == null) { x = coords.left; }\n\t\t else { coords.left = x; }\n\t\t cur = findPosV(this, coords, dir, unit);\n\t\t if (cur.hitSide) { break }\n\t\t }\n\t\t return cur\n\t\t },\n\n\t\t moveV: methodOp(function(dir, unit) {\n\t\t var this$1$1 = this;\n\n\t\t var doc = this.doc, goals = [];\n\t\t var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n\t\t doc.extendSelectionsBy(function (range) {\n\t\t if (collapse)\n\t\t { return dir < 0 ? range.from() : range.to() }\n\t\t var headPos = cursorCoords(this$1$1, range.head, \"div\");\n\t\t if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n\t\t goals.push(headPos.left);\n\t\t var pos = findPosV(this$1$1, headPos, dir, unit);\n\t\t if (unit == \"page\" && range == doc.sel.primary())\n\t\t { addToScrollTop(this$1$1, charCoords(this$1$1, pos, \"div\").top - headPos.top); }\n\t\t return pos\n\t\t }, sel_move);\n\t\t if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n\t\t { doc.sel.ranges[i].goalColumn = goals[i]; } }\n\t\t }),\n\n\t\t // Find the word at the given position (as returned by coordsChar).\n\t\t findWordAt: function(pos) {\n\t\t var doc = this.doc, line = getLine(doc, pos.line).text;\n\t\t var start = pos.ch, end = pos.ch;\n\t\t if (line) {\n\t\t var helper = this.getHelper(pos, \"wordChars\");\n\t\t if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n\t\t var startChar = line.charAt(start);\n\t\t var check = isWordChar(startChar, helper)\n\t\t ? function (ch) { return isWordChar(ch, helper); }\n\t\t : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n\t\t : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n\t\t while (start > 0 && check(line.charAt(start - 1))) { --start; }\n\t\t while (end < line.length && check(line.charAt(end))) { ++end; }\n\t\t }\n\t\t return new Range(Pos(pos.line, start), Pos(pos.line, end))\n\t\t },\n\n\t\t toggleOverwrite: function(value) {\n\t\t if (value != null && value == this.state.overwrite) { return }\n\t\t if (this.state.overwrite = !this.state.overwrite)\n\t\t { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\t\t else\n\t\t { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n\t\t signal(this, \"overwriteToggle\", this, this.state.overwrite);\n\t\t },\n\t\t hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n\t\t isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n\t\t scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n\t\t getScrollInfo: function() {\n\t\t var scroller = this.display.scroller;\n\t\t return {left: scroller.scrollLeft, top: scroller.scrollTop,\n\t\t height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n\t\t width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n\t\t clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n\t\t },\n\n\t\t scrollIntoView: methodOp(function(range, margin) {\n\t\t if (range == null) {\n\t\t range = {from: this.doc.sel.primary().head, to: null};\n\t\t if (margin == null) { margin = this.options.cursorScrollMargin; }\n\t\t } else if (typeof range == \"number\") {\n\t\t range = {from: Pos(range, 0), to: null};\n\t\t } else if (range.from == null) {\n\t\t range = {from: range, to: null};\n\t\t }\n\t\t if (!range.to) { range.to = range.from; }\n\t\t range.margin = margin || 0;\n\n\t\t if (range.from.line != null) {\n\t\t scrollToRange(this, range);\n\t\t } else {\n\t\t scrollToCoordsRange(this, range.from, range.to, range.margin);\n\t\t }\n\t\t }),\n\n\t\t setSize: methodOp(function(width, height) {\n\t\t var this$1$1 = this;\n\n\t\t var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n\t\t if (width != null) { this.display.wrapper.style.width = interpret(width); }\n\t\t if (height != null) { this.display.wrapper.style.height = interpret(height); }\n\t\t if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n\t\t var lineNo = this.display.viewFrom;\n\t\t this.doc.iter(lineNo, this.display.viewTo, function (line) {\n\t\t if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n\t\t { if (line.widgets[i].noHScroll) { regLineChange(this$1$1, lineNo, \"widget\"); break } } }\n\t\t ++lineNo;\n\t\t });\n\t\t this.curOp.forceUpdate = true;\n\t\t signal(this, \"refresh\", this);\n\t\t }),\n\n\t\t operation: function(f){return runInOp(this, f)},\n\t\t startOperation: function(){return startOperation(this)},\n\t\t endOperation: function(){return endOperation(this)},\n\n\t\t refresh: methodOp(function() {\n\t\t var oldHeight = this.display.cachedTextHeight;\n\t\t regChange(this);\n\t\t this.curOp.forceUpdate = true;\n\t\t clearCaches(this);\n\t\t scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n\t\t updateGutterSpace(this.display);\n\t\t if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n\t\t { estimateLineHeights(this); }\n\t\t signal(this, \"refresh\", this);\n\t\t }),\n\n\t\t swapDoc: methodOp(function(doc) {\n\t\t var old = this.doc;\n\t\t old.cm = null;\n\t\t // Cancel the current text selection if any (#5821)\n\t\t if (this.state.selectingText) { this.state.selectingText(); }\n\t\t attachDoc(this, doc);\n\t\t clearCaches(this);\n\t\t this.display.input.reset();\n\t\t scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n\t\t this.curOp.forceScroll = true;\n\t\t signalLater(this, \"swapDoc\", this, old);\n\t\t return old\n\t\t }),\n\n\t\t phrase: function(phraseText) {\n\t\t var phrases = this.options.phrases;\n\t\t return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n\t\t },\n\n\t\t getInputField: function(){return this.display.input.getField()},\n\t\t getWrapperElement: function(){return this.display.wrapper},\n\t\t getScrollerElement: function(){return this.display.scroller},\n\t\t getGutterElement: function(){return this.display.gutters}\n\t\t };\n\t\t eventMixin(CodeMirror);\n\n\t\t CodeMirror.registerHelper = function(type, name, value) {\n\t\t if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n\t\t helpers[type][name] = value;\n\t\t };\n\t\t CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n\t\t CodeMirror.registerHelper(type, name, value);\n\t\t helpers[type]._global.push({pred: predicate, val: value});\n\t\t };\n\t\t }", "function CodeMirror(place, givenOptions) {\n // Determine effective options based on given values and defaults.\n var options = {}, defaults = CodeMirror.defaults;\n for (var opt in defaults)\n if (defaults.hasOwnProperty(opt))\n options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];\n\n // The element in which the editor lives.\n var wrapper = document.createElement(\"div\");\n wrapper.className = \"CodeMirror\" + (options.lineWrapping ? \" CodeMirror-wrap\" : \"\");\n // This mess creates the base DOM structure for the editor.\n wrapper.innerHTML =\n '<div style=\"overflow: hidden; position: relative; width: 3px; height: 0px;\">' + // Wraps and hides input textarea\n '<textarea style=\"position: absolute; padding: 0; width: 1px; height: 1em\" wrap=\"off\" ' +\n 'autocorrect=\"off\" autocapitalize=\"off\"></textarea></div>' +\n '<div class=\"CodeMirror-scrollbar\">' + // The vertical scrollbar. Horizontal scrolling is handled by the scroller itself.\n '<div class=\"CodeMirror-scrollbar-inner\">' + // The empty scrollbar content, used solely for managing the scrollbar thumb.\n '</div></div>' + // This must be before the scroll area because it's float-right.\n '<div class=\"CodeMirror-scroll\" tabindex=\"-1\">' +\n '<div style=\"position: relative\">' + // Set to the height of the text, causes scrolling\n '<div style=\"position: relative\">' + // Moved around its parent to cover visible view\n '<div class=\"CodeMirror-gutter\"><div class=\"CodeMirror-gutter-text\"></div></div>' +\n // Provides positioning relative to (visible) text origin\n '<div class=\"CodeMirror-lines\"><div style=\"position: relative; z-index: 0\">' +\n // Used to measure text size\n '<div style=\"position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden;\"></div>' +\n '<pre class=\"CodeMirror-cursor\">&#160;</pre>' + // Absolutely positioned blinky cursor\n '<pre class=\"CodeMirror-cursor\" style=\"visibility: hidden\">&#160;</pre>' + // Used to force a width\n '<div style=\"position: relative; z-index: -1\"></div><div></div>' + // DIVs containing the selection and the actual code\n '</div></div></div></div></div>';\n if (place.appendChild) place.appendChild(wrapper); else place(wrapper);\n // I've never seen more elegant code in my life.\n var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,\n scroller = wrapper.lastChild, code = scroller.firstChild,\n mover = code.firstChild, gutter = mover.firstChild, gutterText = gutter.firstChild,\n lineSpace = gutter.nextSibling.firstChild, measure = lineSpace.firstChild,\n cursor = measure.nextSibling, widthForcer = cursor.nextSibling,\n selectionDiv = widthForcer.nextSibling, lineDiv = selectionDiv.nextSibling,\n scrollbar = inputDiv.nextSibling, scrollbarInner = scrollbar.firstChild;\n themeChanged(); keyMapChanged();\n // Needed to hide big blue blinking cursor on Mobile Safari\n if (ios) input.style.width = \"0px\";\n if (!webkit) scroller.draggable = true;\n lineSpace.style.outline = \"none\";\n if (options.tabindex != null) input.tabIndex = options.tabindex;\n if (options.autofocus) focusInput();\n if (!options.gutter && !options.lineNumbers) gutter.style.display = \"none\";\n // Needed to handle Tab key in KHTML\n if (khtml) inputDiv.style.height = \"1px\", inputDiv.style.position = \"absolute\";\n\n // Check for OS X >= 10.7. If so, we need to force a width on the scrollbar, and \n // make it overlap the content. (But we only do this if the scrollbar doesn't already\n // have a natural width. If the mouse is plugged in or the user sets the system pref\n // to always show scrollbars, the scrollbar shouldn't overlap.)\n if (mac_geLion) {\n scrollbar.className += (overlapScrollbars() ? \" cm-sb-overlap\" : \" cm-sb-nonoverlap\");\n } else if (ie_lt8) {\n // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).\n scrollbar.className += \" cm-sb-ie7\";\n }\n\n // Check for problem with IE innerHTML not working when we have a\n // P (or similar) parent node.\n try { stringWidth(\"x\"); }\n catch (e) {\n if (e.message.match(/runtime/i))\n e = new Error(\"A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)\");\n throw e;\n }\n\n // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.\n var poll = new Delayed(), highlight = new Delayed(), blinker;\n\n // mode holds a mode API object. doc is the tree of Line objects,\n // work an array of lines that should be parsed, and history the\n // undo history (instance of History constructor).\n var mode, doc = new BranchChunk([new LeafChunk([new Line(\"\")])]), work, focused;\n loadMode();\n // The selection. These are always maintained to point at valid\n // positions. Inverted is used to remember that the user is\n // selecting bottom-to-top.\n var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};\n // Selection-related flags. shiftSelecting obviously tracks\n // whether the user is holding shift.\n var shiftSelecting, lastClick, lastDoubleClick, lastScrollTop = 0, lastScrollLeft = 0, draggingText,\n overwrite = false, suppressEdits = false;\n // Variables used by startOperation/endOperation to track what\n // happened during the operation.\n var updateInput, userSelChange, changes, textChanged, selectionChanged, leaveInputAlone,\n gutterDirty, callbacks;\n // Current visible range (may be bigger than the view window).\n var displayOffset = 0, showingFrom = 0, showingTo = 0, lastSizeC = 0;\n // bracketHighlighted is used to remember that a bracket has been\n // marked.\n var bracketHighlighted;\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n var maxLine = \"\", updateMaxLine = false, maxLineChanged = true;\n var tabCache = {};\n\n // Initialize the content.\n operation(function(){setValue(options.value || \"\"); updateInput = false;})();\n var history = new History();\n\n // Register our event handlers.\n connect(scroller, \"mousedown\", operation(onMouseDown));\n connect(scroller, \"dblclick\", operation(onDoubleClick));\n connect(lineSpace, \"selectstart\", e_preventDefault);\n // Gecko browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for Gecko.\n if (!gecko) connect(scroller, \"contextmenu\", onContextMenu);\n connect(scroller, \"scroll\", onScroll);\n connect(scrollbar, \"scroll\", onScroll);\n connect(scrollbar, \"mousedown\", function() {if (focused) setTimeout(focusInput, 0);});\n connect(scroller, \"mousewheel\", onMouseWheel);\n connect(scroller, \"DOMMouseScroll\", onMouseWheel);\n connect(window, \"resize\", function() {updateDisplay(true);});\n connect(input, \"keyup\", operation(onKeyUp));\n connect(input, \"input\", fastPoll);\n connect(input, \"keydown\", operation(onKeyDown));\n connect(input, \"keypress\", operation(onKeyPress));\n connect(input, \"focus\", onFocus);\n connect(input, \"blur\", onBlur);\n\n if (options.dragDrop) {\n connect(scroller, \"dragstart\", onDragStart);\n function drag_(e) {\n if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;\n e_stop(e);\n }\n connect(scroller, \"dragenter\", drag_);\n connect(scroller, \"dragover\", drag_);\n connect(scroller, \"drop\", operation(onDrop));\n }\n connect(scroller, \"paste\", function(){focusInput(); fastPoll();});\n connect(input, \"paste\", fastPoll);\n connect(input, \"cut\", operation(function(){\n if (!options.readOnly) replaceSelection(\"\");\n }));\n\n // Needed to handle Tab key in KHTML\n if (khtml) connect(code, \"mouseup\", function() {\n if (document.activeElement == input) input.blur();\n focusInput();\n });\n\n // IE throws unspecified error in certain cases, when\n // trying to access activeElement before onload\n var hasFocus; try { hasFocus = (document.activeElement == input); } catch(e) { }\n if (hasFocus || options.autofocus) setTimeout(onFocus, 20);\n else onBlur();\n\n function isLine(l) {return l >= 0 && l < doc.size;}\n // The instance object that we'll return. Mostly calls out to\n // local functions in the CodeMirror function. Some do some extra\n // range checking and/or clipping. operation is used to wrap the\n // call so that changes it makes are tracked, and the display is\n // updated afterwards.\n var instance = wrapper.CodeMirror = {\n getValue: getValue,\n setValue: operation(setValue),\n getSelection: getSelection,\n replaceSelection: operation(replaceSelection),\n focus: function(){window.focus(); focusInput(); onFocus(); fastPoll();},\n setOption: function(option, value) {\n var oldVal = options[option];\n options[option] = value;\n if (option == \"mode\" || option == \"indentUnit\") loadMode();\n else if (option == \"readOnly\" && value == \"nocursor\") {onBlur(); input.blur();}\n else if (option == \"readOnly\" && !value) {resetInput(true);}\n else if (option == \"theme\") themeChanged();\n else if (option == \"lineWrapping\" && oldVal != value) operation(wrappingChanged)();\n else if (option == \"tabSize\") updateDisplay(true);\n else if (option == \"keyMap\") keyMapChanged();\n if (option == \"lineNumbers\" || option == \"gutter\" || option == \"firstLineNumber\" || option == \"theme\") {\n gutterChanged();\n updateDisplay(true);\n }\n },\n getOption: function(option) {return options[option];},\n undo: operation(undo),\n redo: operation(redo),\n indentLine: operation(function(n, dir) {\n if (typeof dir != \"string\") {\n if (dir == null) dir = options.smartIndent ? \"smart\" : \"prev\";\n else dir = dir ? \"add\" : \"subtract\";\n }\n if (isLine(n)) indentLine(n, dir);\n }),\n indentSelection: operation(indentSelected),\n historySize: function() {return {undo: history.done.length, redo: history.undone.length};},\n clearHistory: function() {history = new History();},\n matchBrackets: operation(function(){matchBrackets(true);}),\n getTokenAt: operation(function(pos) {\n pos = clipPos(pos);\n return getLine(pos.line).getTokenAt(mode, getStateBefore(pos.line), pos.ch);\n }),\n getStateAfter: function(line) {\n line = clipLine(line == null ? doc.size - 1: line);\n return getStateBefore(line + 1);\n },\n cursorCoords: function(start, mode) {\n if (start == null) start = sel.inverted;\n return this.charCoords(start ? sel.from : sel.to, mode);\n },\n charCoords: function(pos, mode) {\n pos = clipPos(pos);\n if (mode == \"local\") return localCoords(pos, false);\n if (mode == \"div\") return localCoords(pos, true);\n return pageCoords(pos);\n },\n coordsChar: function(coords) {\n var off = eltOffset(lineSpace);\n return coordsChar(coords.x - off.left, coords.y - off.top);\n },\n markText: operation(markText),\n setBookmark: setBookmark,\n findMarksAt: findMarksAt,\n setMarker: operation(addGutterMarker),\n clearMarker: operation(removeGutterMarker),\n setLineClass: operation(setLineClass),\n hideLine: operation(function(h) {return setLineHidden(h, true);}),\n showLine: operation(function(h) {return setLineHidden(h, false);}),\n onDeleteLine: function(line, f) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n line = getLine(line);\n }\n (line.handlers || (line.handlers = [])).push(f);\n return line;\n },\n lineInfo: lineInfo,\n addWidget: function(pos, node, scroll, vert, horiz) {\n pos = localCoords(clipPos(pos));\n var top = pos.yBot, left = pos.x;\n node.style.position = \"absolute\";\n code.appendChild(node);\n if (vert == \"over\") top = pos.y;\n else if (vert == \"near\") {\n var vspace = Math.max(scroller.offsetHeight, doc.height * textHeight()),\n hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();\n if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)\n top = pos.y - node.offsetHeight;\n if (left + node.offsetWidth > hspace)\n left = hspace - node.offsetWidth;\n }\n node.style.top = (top + paddingTop()) + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = code.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") left = 0;\n else if (horiz == \"middle\") left = (code.clientWidth - node.offsetWidth) / 2;\n node.style.left = (left + paddingLeft()) + \"px\";\n }\n if (scroll)\n scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);\n },\n\n lineCount: function() {return doc.size;},\n clipPos: clipPos,\n getCursor: function(start) {\n if (start == null) start = sel.inverted;\n return copyPos(start ? sel.from : sel.to);\n },\n somethingSelected: function() {return !posEq(sel.from, sel.to);},\n setCursor: operation(function(line, ch, user) {\n if (ch == null && typeof line.line == \"number\") setCursor(line.line, line.ch, user);\n else setCursor(line, ch, user);\n }),\n setSelection: operation(function(from, to, user) {\n (user ? setSelectionUser : setSelection)(clipPos(from), clipPos(to || from));\n }),\n getLine: function(line) {if (isLine(line)) return getLine(line).text;},\n getLineHandle: function(line) {if (isLine(line)) return getLine(line);},\n setLine: operation(function(line, text) {\n if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: getLine(line).text.length});\n }),\n removeLine: operation(function(line) {\n if (isLine(line)) replaceRange(\"\", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));\n }),\n replaceRange: operation(replaceRange),\n getRange: function(from, to, lineSep) {return getRange(clipPos(from), clipPos(to), lineSep);},\n\n triggerOnKeyDown: operation(onKeyDown),\n execCommand: function(cmd) {return commands[cmd](instance);},\n // Stuff used by commands, probably not much use to outside code.\n moveH: operation(moveH),\n deleteH: operation(deleteH),\n moveV: operation(moveV),\n toggleOverwrite: function() {\n if(overwrite){\n overwrite = false;\n cursor.className = cursor.className.replace(\" CodeMirror-overwrite\", \"\");\n } else {\n overwrite = true;\n cursor.className += \" CodeMirror-overwrite\";\n }\n },\n\n posFromIndex: function(off) {\n var lineNo = 0, ch;\n doc.iter(0, doc.size, function(line) {\n var sz = line.text.length + 1;\n if (sz > off) { ch = off; return true; }\n off -= sz;\n ++lineNo;\n });\n return clipPos({line: lineNo, ch: ch});\n },\n indexFromPos: function (coords) {\n if (coords.line < 0 || coords.ch < 0) return 0;\n var index = coords.ch;\n doc.iter(0, coords.line, function (line) {\n index += line.text.length + 1;\n });\n return index;\n },\n scrollTo: function(x, y) {\n if (x != null) scroller.scrollLeft = x;\n if (y != null) scrollbar.scrollTop = y;\n updateDisplay([]);\n },\n getScrollInfo: function() {\n return {x: scroller.scrollLeft, y: scrollbar.scrollTop,\n height: scrollbar.scrollHeight, width: scroller.scrollWidth};\n },\n\n operation: function(f){return operation(f)();},\n compoundChange: function(f){return compoundChange(f);},\n refresh: function(){\n updateDisplay(true, null, lastScrollTop);\n if (scrollbar.scrollHeight > lastScrollTop)\n scrollbar.scrollTop = lastScrollTop;\n },\n getInputField: function(){return input;},\n getWrapperElement: function(){return wrapper;},\n getScrollerElement: function(){return scroller;},\n getGutterElement: function(){return gutter;}\n };\n\n function getLine(n) { return getLineAt(doc, n); }\n function updateLineHeight(line, height) {\n gutterDirty = true;\n var diff = height - line.height;\n for (var n = line; n; n = n.parent) n.height += diff;\n }\n\n function setValue(code) {\n var top = {line: 0, ch: 0};\n updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},\n splitLines(code), top, top);\n updateInput = true;\n }\n function getValue(lineSep) {\n var text = [];\n doc.iter(0, doc.size, function(line) { text.push(line.text); });\n return text.join(lineSep || \"\\n\");\n }\n\n function onScroll(e) {\n if (scroller.scrollTop) {\n scrollbar.scrollTop += scroller.scrollTop;\n scroller.scrollTop = 0;\n }\n if (lastScrollTop != scrollbar.scrollTop || lastScrollLeft != scroller.scrollLeft) {\n lastScrollTop = scrollbar.scrollTop;\n lastScrollLeft = scroller.scrollLeft;\n updateDisplay([]);\n if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + \"px\";\n if (options.onScroll) options.onScroll(instance);\n }\n }\n\n function onMouseDown(e) {\n setShift(e_prop(e, \"shiftKey\"));\n // Check whether this is a click in a widget\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == code && n != mover) return;\n\n // See if this is a click in the gutter\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) {\n if (options.onGutterClick)\n options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);\n return e_preventDefault(e);\n }\n\n var start = posFromMouse(e);\n\n switch (e_button(e)) {\n case 3:\n if (gecko && !mac) onContextMenu(e);\n return;\n case 2:\n if (start) setCursor(start.line, start.ch, true);\n setTimeout(focusInput, 20);\n e_preventDefault(e);\n return;\n }\n // For button 1, if it was clicked inside the editor\n // (posFromMouse returning non-null), we have to adjust the\n // selection.\n if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}\n\n if (!focused) onFocus();\n\n var now = +new Date;\n if (lastDoubleClick && lastDoubleClick.time > now - 400 && posEq(lastDoubleClick.pos, start)) {\n e_preventDefault(e);\n setTimeout(focusInput, 20);\n return selectLine(start.line);\n } else if (lastClick && lastClick.time > now - 400 && posEq(lastClick.pos, start)) {\n lastDoubleClick = {time: now, pos: start};\n e_preventDefault(e);\n return selectWordAt(start);\n } else { lastClick = {time: now, pos: start}; }\n\n var last = start, going;\n if (options.dragDrop && dragAndDrop && !options.readOnly && !posEq(sel.from, sel.to) &&\n !posLess(start, sel.from) && !posLess(sel.to, start)) {\n // Let the drag handler handle this.\n if (webkit) scroller.draggable = true;\n function dragEnd(e2) {\n if (webkit) scroller.draggable = false;\n draggingText = false;\n up(); drop();\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n setCursor(start.line, start.ch, true);\n focusInput();\n }\n }\n var up = connect(document, \"mouseup\", operation(dragEnd), true);\n var drop = connect(scroller, \"drop\", operation(dragEnd), true);\n draggingText = true;\n // IE's approach to draggable\n if (scroller.dragDrop) scroller.dragDrop();\n return;\n }\n e_preventDefault(e);\n setCursor(start.line, start.ch, true);\n\n function extend(e) {\n var cur = posFromMouse(e, true);\n if (cur && !posEq(cur, last)) {\n if (!focused) onFocus();\n last = cur;\n setSelectionUser(start, cur);\n updateInput = false;\n var visible = visibleLines();\n if (cur.line >= visible.to || cur.line < visible.from)\n going = setTimeout(operation(function(){extend(e);}), 150);\n }\n }\n\n function done(e) {\n clearTimeout(going);\n var cur = posFromMouse(e);\n if (cur) setSelectionUser(start, cur);\n e_preventDefault(e);\n focusInput();\n updateInput = true;\n move(); up();\n }\n var move = connect(document, \"mousemove\", operation(function(e) {\n clearTimeout(going);\n e_preventDefault(e);\n if (!ie && !e_button(e)) done(e);\n else extend(e);\n }), true);\n var up = connect(document, \"mouseup\", operation(done), true);\n }\n function onDoubleClick(e) {\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) return e_preventDefault(e);\n var start = posFromMouse(e);\n if (!start) return;\n lastDoubleClick = {time: +new Date, pos: start};\n e_preventDefault(e);\n selectWordAt(start);\n }\n function onDrop(e) {\n if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;\n e.preventDefault();\n var pos = posFromMouse(e, true), files = e.dataTransfer.files;\n if (!pos || options.readOnly) return;\n if (files && files.length && window.FileReader && window.File) {\n function loadFile(file, i) {\n var reader = new FileReader;\n reader.onload = function() {\n text[i] = reader.result;\n if (++read == n) {\n pos = clipPos(pos);\n operation(function() {\n var end = replaceRange(text.join(\"\"), pos, pos);\n setSelectionUser(pos, end);\n })();\n }\n };\n reader.readAsText(file);\n }\n var n = files.length, text = Array(n), read = 0;\n for (var i = 0; i < n; ++i) loadFile(files[i], i);\n } else {\n // Don't do a replace if the drop happened inside of the selected text.\n if (draggingText && !(posLess(pos, sel.from) || posLess(sel.to, pos))) return;\n try {\n var text = e.dataTransfer.getData(\"Text\");\n if (text) {\n compoundChange(function() {\n var curFrom = sel.from, curTo = sel.to;\n setSelectionUser(pos, pos);\n if (draggingText) replaceRange(\"\", curFrom, curTo);\n replaceSelection(text);\n focusInput();\n });\n }\n }\n catch(e){}\n }\n }\n function onDragStart(e) {\n var txt = getSelection();\n e.dataTransfer.setData(\"Text\", txt);\n \n // Use dummy image instead of default browsers image.\n if (gecko || chrome || opera) {\n var img = document.createElement('img');\n img.scr = 'data:image/gif;base64,R0lGODdhAgACAIAAAAAAAP///ywAAAAAAgACAAACAoRRADs='; //1x1 image\n e.dataTransfer.setDragImage(img, 0, 0);\n }\n }\n\n function doHandleBinding(bound, dropShift) {\n if (typeof bound == \"string\") {\n bound = commands[bound];\n if (!bound) return false;\n }\n var prevShift = shiftSelecting;\n try {\n if (options.readOnly) suppressEdits = true;\n if (dropShift) shiftSelecting = null;\n bound(instance);\n } catch(e) {\n if (e != Pass) throw e;\n return false;\n } finally {\n shiftSelecting = prevShift;\n suppressEdits = false;\n }\n return true;\n }\n function handleKeyBinding(e) {\n // Handle auto keymap transitions\n var startMap = getKeyMap(options.keyMap), next = startMap.auto;\n clearTimeout(maybeTransition);\n if (next && !isModifierKey(e)) maybeTransition = setTimeout(function() {\n if (getKeyMap(options.keyMap) == startMap) {\n options.keyMap = (next.call ? next.call(null, instance) : next);\n }\n }, 50);\n\n var name = keyNames[e_prop(e, \"keyCode\")], handled = false;\n if (name == null || e.altGraphKey) return false;\n if (e_prop(e, \"altKey\")) name = \"Alt-\" + name;\n if (e_prop(e, \"ctrlKey\")) name = \"Ctrl-\" + name;\n if (e_prop(e, \"metaKey\")) name = \"Cmd-\" + name;\n\n var stopped = false;\n function stop() { stopped = true; }\n\n if (e_prop(e, \"shiftKey\")) {\n handled = lookupKey(\"Shift-\" + name, options.extraKeys, options.keyMap,\n function(b) {return doHandleBinding(b, true);}, stop)\n || lookupKey(name, options.extraKeys, options.keyMap, function(b) {\n if (typeof b == \"string\" && /^go[A-Z]/.test(b)) return doHandleBinding(b);\n }, stop);\n } else {\n handled = lookupKey(name, options.extraKeys, options.keyMap, doHandleBinding, stop);\n }\n if (stopped) handled = false;\n if (handled) {\n e_preventDefault(e);\n restartBlink();\n if (ie) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }\n }\n return handled;\n }\n function handleCharBinding(e, ch) {\n var handled = lookupKey(\"'\" + ch + \"'\", options.extraKeys,\n options.keyMap, function(b) { return doHandleBinding(b, true); });\n if (handled) {\n e_preventDefault(e);\n restartBlink();\n }\n return handled;\n }\n\n var lastStoppedKey = null, maybeTransition;\n function onKeyDown(e) {\n if (!focused) onFocus();\n if (ie && e.keyCode == 27) { e.returnValue = false; }\n if (pollingFast) { if (readInput()) pollingFast = false; }\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n var code = e_prop(e, \"keyCode\");\n // IE does strange things with escape.\n setShift(code == 16 || e_prop(e, \"shiftKey\"));\n // First give onKeyEvent option a chance to handle this.\n var handled = handleKeyBinding(e);\n if (opera) {\n lastStoppedKey = handled ? code : null;\n // Opera has no cut event... we try to at least catch the key combo\n if (!handled && code == 88 && e_prop(e, mac ? \"metaKey\" : \"ctrlKey\"))\n replaceSelection(\"\");\n }\n }\n function onKeyPress(e) {\n if (pollingFast) readInput();\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n var keyCode = e_prop(e, \"keyCode\"), charCode = e_prop(e, \"charCode\");\n if (opera && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}\n if (((opera && (!e.which || e.which < 10)) || khtml) && handleKeyBinding(e)) return;\n var ch = String.fromCharCode(charCode == null ? keyCode : charCode);\n if (options.electricChars && mode.electricChars && options.smartIndent && !options.readOnly) {\n if (mode.electricChars.indexOf(ch) > -1)\n setTimeout(operation(function() {indentLine(sel.to.line, \"smart\");}), 75);\n }\n if (handleCharBinding(e, ch)) return;\n fastPoll();\n }\n function onKeyUp(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (e_prop(e, \"keyCode\") == 16) shiftSelecting = null;\n }\n\n function onFocus() {\n if (options.readOnly == \"nocursor\") return;\n if (!focused) {\n if (options.onFocus) options.onFocus(instance);\n focused = true;\n if (scroller.className.search(/\\bCodeMirror-focused\\b/) == -1)\n scroller.className += \" CodeMirror-focused\";\n if (!leaveInputAlone) resetInput(true);\n }\n slowPoll();\n restartBlink();\n }\n function onBlur() {\n if (focused) {\n if (options.onBlur) options.onBlur(instance);\n focused = false;\n if (bracketHighlighted)\n operation(function(){\n if (bracketHighlighted) { bracketHighlighted(); bracketHighlighted = null; }\n })();\n scroller.className = scroller.className.replace(\" CodeMirror-focused\", \"\");\n }\n clearInterval(blinker);\n setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);\n }\n\n function chopDelta(delta) {\n // Make sure we always scroll a little bit for any nonzero delta.\n if (delta > 0.0 && delta < 1.0) return 1;\n else if (delta > -1.0 && delta < 0.0) return -1;\n else return Math.round(delta);\n }\n\n function onMouseWheel(e) {\n var deltaX = 0, deltaY = 0;\n if (e.type == \"DOMMouseScroll\") { // Firefox\n var delta = -e.detail * 8.0;\n if (e.axis == e.HORIZONTAL_AXIS) deltaX = delta;\n else if (e.axis == e.VERTICAL_AXIS) deltaY = delta;\n } else if (e.wheelDeltaX !== undefined && e.wheelDeltaY !== undefined) { // WebKit\n deltaX = e.wheelDeltaX / 3.0;\n deltaY = e.wheelDeltaY / 3.0;\n } else if (e.wheelDelta !== undefined) { // IE or Opera\n deltaY = e.wheelDelta / 3.0;\n }\n\n var scrolled = false;\n deltaX = chopDelta(deltaX);\n deltaY = chopDelta(deltaY);\n if ((deltaX > 0 && scroller.scrollLeft > 0) ||\n (deltaX < 0 && scroller.scrollLeft + scroller.clientWidth < scroller.scrollWidth)) {\n scroller.scrollLeft -= deltaX;\n scrolled = true;\n }\n if ((deltaY > 0 && scrollbar.scrollTop > 0) ||\n (deltaY < 0 && scrollbar.scrollTop + scrollbar.clientHeight < scrollbar.scrollHeight)) {\n scrollbar.scrollTop -= deltaY;\n scrolled = true;\n }\n if (scrolled) e_stop(e);\n }\n\n // Replace the range from from to to by the strings in newText.\n // Afterwards, set the selection to selFrom, selTo.\n function updateLines(from, to, newText, selFrom, selTo) {\n if (suppressEdits) return;\n if (history) {\n var old = [];\n doc.iter(from.line, to.line + 1, function(line) { old.push(line.text); });\n history.addChange(from.line, newText.length, old);\n while (history.done.length > options.undoDepth) history.done.shift();\n }\n updateLinesNoUndo(from, to, newText, selFrom, selTo);\n }\n function unredoHelper(from, to) {\n if (!from.length) return;\n var set = from.pop(), out = [];\n for (var i = set.length - 1; i >= 0; i -= 1) {\n var change = set[i];\n var replaced = [], end = change.start + change.added;\n doc.iter(change.start, end, function(line) { replaced.push(line.text); });\n out.push({start: change.start, added: change.old.length, old: replaced});\n var pos = {line: change.start + change.old.length - 1,\n ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])};\n updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: getLine(end-1).text.length}, change.old, pos, pos);\n }\n updateInput = true;\n to.push(out);\n }\n function undo() {unredoHelper(history.done, history.undone);}\n function redo() {unredoHelper(history.undone, history.done);}\n\n function updateLinesNoUndo(from, to, newText, selFrom, selTo) {\n if (suppressEdits) return;\n var recomputeMaxLength = false, maxLineLength = maxLine.length;\n if (!options.lineWrapping)\n doc.iter(from.line, to.line + 1, function(line) {\n if (!line.hidden && line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}\n });\n if (from.line != to.line || newText.length > 1) gutterDirty = true;\n\n var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);\n // First adjust the line structure, taking some care to leave highlighting intact.\n if (from.ch == 0 && to.ch == 0 && newText[newText.length - 1] == \"\") {\n // This is a whole-line replace. Treated specially to make\n // sure line objects move the way they are supposed to.\n var added = [], prevLine = null;\n if (from.line) {\n prevLine = getLine(from.line - 1);\n prevLine.fixMarkEnds(lastLine);\n } else lastLine.fixMarkStarts();\n for (var i = 0, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], prevLine));\n if (nlines) doc.remove(from.line, nlines, callbacks);\n if (added.length) doc.insert(from.line, added);\n } else if (firstLine == lastLine) {\n if (newText.length == 1)\n firstLine.replace(from.ch, to.ch, newText[0]);\n else {\n lastLine = firstLine.split(to.ch, newText[newText.length-1]);\n firstLine.replace(from.ch, null, newText[0]);\n firstLine.fixMarkEnds(lastLine);\n var added = [];\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n added.push(lastLine);\n doc.insert(from.line + 1, added);\n }\n } else if (newText.length == 1) {\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, \"\");\n firstLine.append(lastLine);\n doc.remove(from.line + 1, nlines, callbacks);\n } else {\n var added = [];\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, newText[newText.length-1]);\n firstLine.fixMarkEnds(lastLine);\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n if (nlines > 1) doc.remove(from.line + 1, nlines - 1, callbacks);\n doc.insert(from.line + 1, added);\n }\n if (options.lineWrapping) {\n var perLine = Math.max(5, scroller.clientWidth / charWidth() - 3);\n doc.iter(from.line, from.line + newText.length, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != line.height) updateLineHeight(line, guess);\n });\n } else {\n doc.iter(from.line, from.line + newText.length, function(line) {\n var l = line.text;\n if (!line.hidden && l.length > maxLineLength) {\n maxLine = l; maxLineLength = l.length; maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) updateMaxLine = true;\n }\n\n // Add these lines to the work array, so that they will be\n // highlighted. Adjust work lines if lines were added/removed.\n var newWork = [], lendiff = newText.length - nlines - 1;\n for (var i = 0, l = work.length; i < l; ++i) {\n var task = work[i];\n if (task < from.line) newWork.push(task);\n else if (task > to.line) newWork.push(task + lendiff);\n }\n var hlEnd = from.line + Math.min(newText.length, 500);\n highlightLines(from.line, hlEnd);\n newWork.push(hlEnd);\n work = newWork;\n startWorker(100);\n // Remember that these lines changed, for updating the display\n changes.push({from: from.line, to: to.line + 1, diff: lendiff});\n var changeObj = {from: from, to: to, text: newText};\n if (textChanged) {\n for (var cur = textChanged; cur.next; cur = cur.next) {}\n cur.next = changeObj;\n } else textChanged = changeObj;\n\n // Update the selection\n function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}\n setSelection(clipPos(selFrom), clipPos(selTo),\n updateLine(sel.from.line), updateLine(sel.to.line));\n }\n\n function updateVerticalScroll(scrollTop) {\n var th = textHeight(), virtualHeight = Math.floor(doc.height * th + 2 * paddingTop()), scrollbarHeight = scroller.clientHeight;\n scrollbar.style.height = scrollbarHeight + \"px\";\n if (scroller.clientHeight)\n scrollbarInner.style.height = virtualHeight + \"px\";\n // Position the mover div to align with the current virtual scroll position\n if (scrollTop != null) scrollbar.scrollTop = scrollTop;\n mover.style.top = (displayOffset * th - scrollbar.scrollTop) + \"px\";\n scrollbar.style.display = (virtualHeight > scrollbarHeight) ? \"block\" : \"none\";\n }\n \n // On Mac OS X Lion and up, detect whether the mouse is plugged in by measuring \n // the width of a div with a scrollbar in it. If the width is <= 1, then\n // the mouse isn't plugged in and scrollbars should overlap the content.\n function overlapScrollbars() {\n var tmpSb = document.createElement('div'),\n tmpSbInner = document.createElement('div');\n tmpSb.className = \"CodeMirror-scrollbar\";\n tmpSb.style.cssText = \"position: absolute; left: -9999px; height: 100px;\";\n tmpSbInner.className = \"CodeMirror-scrollbar-inner\";\n tmpSbInner.style.height = \"200px\";\n tmpSb.appendChild(tmpSbInner);\n\n document.body.appendChild(tmpSb);\n var result = (tmpSb.offsetWidth <= 1);\n document.body.removeChild(tmpSb);\n return result;\n }\n\n function computeMaxLength() {\n var maxLineLength = 0; \n maxLine = \"\"; maxLineChanged = true;\n doc.iter(0, doc.size, function(line) {\n var l = line.text;\n if (!line.hidden && l.length > maxLineLength) {\n maxLineLength = l.length; maxLine = l;\n }\n });\n updateMaxLine = false;\n }\n\n function replaceRange(code, from, to) {\n from = clipPos(from);\n if (!to) to = from; else to = clipPos(to);\n code = splitLines(code);\n function adjustPos(pos) {\n if (posLess(pos, from)) return pos;\n if (!posLess(to, pos)) return end;\n var line = pos.line + code.length - (to.line - from.line) - 1;\n var ch = pos.ch;\n if (pos.line == to.line)\n ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));\n return {line: line, ch: ch};\n }\n var end;\n replaceRange1(code, from, to, function(end1) {\n end = end1;\n return {from: adjustPos(sel.from), to: adjustPos(sel.to)};\n });\n return end;\n }\n function replaceSelection(code, collapse) {\n replaceRange1(splitLines(code), sel.from, sel.to, function(end) {\n if (collapse == \"end\") return {from: end, to: end};\n else if (collapse == \"start\") return {from: sel.from, to: sel.from};\n else return {from: sel.from, to: end};\n });\n }\n function replaceRange1(code, from, to, computeSel) {\n var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;\n var newSel = computeSel({line: from.line + code.length - 1, ch: endch});\n updateLines(from, to, code, newSel.from, newSel.to);\n }\n\n function getRange(from, to, lineSep) {\n var l1 = from.line, l2 = to.line;\n if (l1 == l2) return getLine(l1).text.slice(from.ch, to.ch);\n var code = [getLine(l1).text.slice(from.ch)];\n doc.iter(l1 + 1, l2, function(line) { code.push(line.text); });\n code.push(getLine(l2).text.slice(0, to.ch));\n return code.join(lineSep || \"\\n\");\n }\n function getSelection(lineSep) {\n return getRange(sel.from, sel.to, lineSep);\n }\n\n var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll\n function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }\n function fastPoll() {\n var missed = false;\n pollingFast = true;\n function p() {\n startOperation();\n var changed = readInput();\n if (!changed && !missed) {missed = true; poll.set(60, p);}\n else {pollingFast = false; slowPoll();}\n endOperation();\n }\n poll.set(20, p);\n }\n\n // Previnput is a hack to work with IME. If we reset the textarea\n // on every change, that breaks IME. So we look for changes\n // compared to the previous content instead. (Modern browsers have\n // events that indicate IME taking place, but these are not widely\n // supported or compatible enough yet to rely on.)\n var prevInput = \"\";\n function readInput() {\n if (leaveInputAlone || !focused || hasSelection(input) || options.readOnly) return false;\n var text = input.value;\n if (text == prevInput) return false;\n shiftSelecting = null;\n var same = 0, l = Math.min(prevInput.length, text.length);\n while (same < l && prevInput[same] == text[same]) ++same;\n if (same < prevInput.length)\n sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};\n else if (overwrite && posEq(sel.from, sel.to))\n sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};\n replaceSelection(text.slice(same), \"end\");\n if (text.length > 1000) { input.value = prevInput = \"\"; }\n else prevInput = text;\n return true;\n }\n function resetInput(user) {\n if (!posEq(sel.from, sel.to)) {\n prevInput = \"\";\n input.value = getSelection();\n selectInput(input);\n } else if (user) prevInput = input.value = \"\";\n }\n\n function focusInput() {\n if (options.readOnly != \"nocursor\") input.focus();\n }\n\n function scrollEditorIntoView() {\n if (!cursor.getBoundingClientRect) return;\n var rect = cursor.getBoundingClientRect();\n // IE returns bogus coordinates when the instance sits inside of an iframe and the cursor is hidden\n if (ie && rect.top == rect.bottom) return;\n var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);\n if (rect.top < 0 || rect.bottom > winH) scrollCursorIntoView();\n }\n function scrollCursorIntoView() {\n var coords = calculateCursorCoords();\n return scrollIntoView(coords.x, coords.y, coords.x, coords.yBot);\n }\n function calculateCursorCoords() {\n var cursor = localCoords(sel.inverted ? sel.from : sel.to);\n var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;\n return {x: x, y: cursor.y, yBot: cursor.yBot};\n }\n function scrollIntoView(x1, y1, x2, y2) {\n var scrollPos = calculateScrollPos(x1, y1, x2, y2), scrolled = false;\n if (scrollPos.scrollLeft != null) {scroller.scrollLeft = scrollPos.scrollLeft; scrolled = true;}\n if (scrollPos.scrollTop != null) {scrollbar.scrollTop = scrollPos.scrollTop; scrolled = true;}\n if (scrolled && options.onScroll) options.onScroll(instance);\n }\n function calculateScrollPos(x1, y1, x2, y2) {\n var pl = paddingLeft(), pt = paddingTop();\n y1 += pt; y2 += pt; x1 += pl; x2 += pl;\n var screen = scroller.clientHeight, screentop = scrollbar.scrollTop, result = {};\n var atTop = y1 < paddingTop() + 10;\n if (y1 < screentop) result.scrollTop = atTop ? 0 : Math.max(0, y1);\n else if (y2 > screentop + screen) result.scrollTop = y2 - screen;\n\n var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;\n var gutterw = options.fixedGutter ? gutter.clientWidth : 0;\n var atLeft = x1 < gutterw + pl + 10;\n if (x1 < screenleft + gutterw || atLeft) {\n if (atLeft) x1 = 0;\n result.scrollLeft = Math.max(0, x1 - 10 - gutterw);\n } else if (x2 > screenw + screenleft - 3) {\n result.scrollLeft = x2 + 10 - screenw;\n }\n return result;\n }\n\n function visibleLines(scrollTop) {\n var lh = textHeight(), top = (scrollTop != null ? scrollTop : scrollbar.scrollTop) - paddingTop();\n var fromHeight = Math.max(0, Math.floor(top / lh));\n var toHeight = Math.ceil((top + scroller.clientHeight) / lh);\n return {from: lineAtHeight(doc, fromHeight),\n to: lineAtHeight(doc, toHeight)};\n }\n // Uses a set of changes plus the current scroll position to\n // determine which DOM updates have to be made, and makes the\n // updates.\n function updateDisplay(changes, suppressCallback, scrollTop) {\n if (!scroller.clientWidth) {\n showingFrom = showingTo = displayOffset = 0;\n return;\n }\n // Compute the new visible window\n // If scrollTop is specified, use that to determine which lines\n // to render instead of the current scrollbar position.\n var visible = visibleLines(scrollTop);\n // Bail out if the visible area is already rendered and nothing changed.\n if (changes !== true && changes.length == 0 && visible.from > showingFrom && visible.to < showingTo) {\n updateVerticalScroll(scrollTop);\n return;\n }\n var from = Math.max(visible.from - 100, 0), to = Math.min(doc.size, visible.to + 100);\n if (showingFrom < from && from - showingFrom < 20) from = showingFrom;\n if (showingTo > to && showingTo - to < 20) to = Math.min(doc.size, showingTo);\n\n // Create a range of theoretically intact lines, and punch holes\n // in that using the change info.\n var intact = changes === true ? [] :\n computeIntact([{from: showingFrom, to: showingTo, domStart: 0}], changes);\n // Clip off the parts that won't be visible\n var intactLines = 0;\n for (var i = 0; i < intact.length; ++i) {\n var range = intact[i];\n if (range.from < from) {range.domStart += (from - range.from); range.from = from;}\n if (range.to > to) range.to = to;\n if (range.from >= range.to) intact.splice(i--, 1);\n else intactLines += range.to - range.from;\n }\n if (intactLines == to - from && from == showingFrom && to == showingTo) {\n updateVerticalScroll(scrollTop);\n return;\n }\n intact.sort(function(a, b) {return a.domStart - b.domStart;});\n\n var th = textHeight(), gutterDisplay = gutter.style.display;\n lineDiv.style.display = \"none\";\n patchDisplay(from, to, intact);\n lineDiv.style.display = gutter.style.display = \"\";\n\n var different = from != showingFrom || to != showingTo || lastSizeC != scroller.clientHeight + th;\n // This is just a bogus formula that detects when the editor is\n // resized or the font size changes.\n if (different) lastSizeC = scroller.clientHeight + th;\n showingFrom = from; showingTo = to;\n displayOffset = heightAtLine(doc, from);\n\n // Since this is all rather error prone, it is honoured with the\n // only assertion in the whole file.\n if (lineDiv.childNodes.length != showingTo - showingFrom)\n throw new Error(\"BAD PATCH! \" + JSON.stringify(intact) + \" size=\" + (showingTo - showingFrom) +\n \" nodes=\" + lineDiv.childNodes.length);\n\n function checkHeights() {\n var curNode = lineDiv.firstChild, heightChanged = false;\n doc.iter(showingFrom, showingTo, function(line) {\n if (!line.hidden) {\n var height = Math.round(curNode.offsetHeight / th) || 1;\n if (line.height != height) {\n updateLineHeight(line, height);\n gutterDirty = heightChanged = true;\n }\n }\n curNode = curNode.nextSibling;\n });\n return heightChanged;\n }\n\n if (options.lineWrapping) {\n // Guess whether we're going to need the scrollbar, so that we don't end up changing the linewrapping\n // after the scrollbar appears (during updateVerticalScroll()). Only do this if the scrollbar is\n // appearing (if it's disappearing, we don't have to worry about the scroll position, and there are\n // issues on IE7 if we turn it off too early).\n var virtualHeight = Math.floor(doc.height * th + 2 * paddingTop()), scrollbarHeight = scroller.clientHeight;\n if (virtualHeight > scrollbarHeight) scrollbar.style.display = \"block\";\n checkHeights();\n }\n\n gutter.style.display = gutterDisplay;\n if (different || gutterDirty) {\n // If the gutter grew in size, re-check heights. If those changed, re-draw gutter.\n updateGutter() && options.lineWrapping && checkHeights() && updateGutter();\n }\n updateSelection();\n updateVerticalScroll(scrollTop);\n if (!suppressCallback && options.onUpdate) options.onUpdate(instance);\n return true;\n }\n\n function computeIntact(intact, changes) {\n for (var i = 0, l = changes.length || 0; i < l; ++i) {\n var change = changes[i], intact2 = [], diff = change.diff || 0;\n for (var j = 0, l2 = intact.length; j < l2; ++j) {\n var range = intact[j];\n if (change.to <= range.from && change.diff)\n intact2.push({from: range.from + diff, to: range.to + diff,\n domStart: range.domStart});\n else if (change.to <= range.from || change.from >= range.to)\n intact2.push(range);\n else {\n if (change.from > range.from)\n intact2.push({from: range.from, to: change.from, domStart: range.domStart});\n if (change.to < range.to)\n intact2.push({from: change.to + diff, to: range.to + diff,\n domStart: range.domStart + (change.to - range.from)});\n }\n }\n intact = intact2;\n }\n return intact;\n }\n\n function patchDisplay(from, to, intact) {\n // The first pass removes the DOM nodes that aren't intact.\n if (!intact.length) lineDiv.innerHTML = \"\";\n else {\n function killNode(node) {\n var tmp = node.nextSibling;\n node.parentNode.removeChild(node);\n return tmp;\n }\n var domPos = 0, curNode = lineDiv.firstChild, n;\n for (var i = 0; i < intact.length; ++i) {\n var cur = intact[i];\n while (cur.domStart > domPos) {curNode = killNode(curNode); domPos++;}\n for (var j = 0, e = cur.to - cur.from; j < e; ++j) {curNode = curNode.nextSibling; domPos++;}\n }\n while (curNode) curNode = killNode(curNode);\n }\n // This pass fills in the lines that actually changed.\n var nextIntact = intact.shift(), curNode = lineDiv.firstChild, j = from;\n var scratch = document.createElement(\"div\");\n doc.iter(from, to, function(line) {\n if (nextIntact && nextIntact.to == j) nextIntact = intact.shift();\n if (!nextIntact || nextIntact.from > j) {\n if (line.hidden) var html = scratch.innerHTML = \"<pre></pre>\";\n else {\n var html = '<pre' + (line.className ? ' class=\"' + line.className + '\"' : '') + '>'\n + line.getHTML(makeTab) + '</pre>';\n // Kludge to make sure the styled element lies behind the selection (by z-index)\n if (line.bgClassName)\n html = '<div style=\"position: relative\"><pre class=\"' + line.bgClassName +\n '\" style=\"position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2\">&#160;</pre>' + html + \"</div>\";\n }\n scratch.innerHTML = html;\n lineDiv.insertBefore(scratch.firstChild, curNode);\n } else {\n curNode = curNode.nextSibling;\n }\n ++j;\n });\n }\n\n function updateGutter() {\n if (!options.gutter && !options.lineNumbers) return;\n var hText = mover.offsetHeight, hEditor = scroller.clientHeight;\n gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + \"px\";\n var html = [], i = showingFrom, normalNode;\n doc.iter(showingFrom, Math.max(showingTo, showingFrom + 1), function(line) {\n if (line.hidden) {\n html.push(\"<pre></pre>\");\n } else {\n var marker = line.gutterMarker;\n var text = options.lineNumbers ? options.lineNumberFormatter(i + options.firstLineNumber) : null;\n if (marker && marker.text)\n text = marker.text.replace(\"%N%\", text != null ? text : \"\");\n else if (text == null)\n text = \"\\u00a0\";\n html.push((marker && marker.style ? '<pre class=\"' + marker.style + '\">' : \"<pre>\"), text);\n for (var j = 1; j < line.height; ++j) html.push(\"<br/>&#160;\");\n html.push(\"</pre>\");\n if (!marker) normalNode = i;\n }\n ++i;\n });\n gutter.style.display = \"none\";\n gutterText.innerHTML = html.join(\"\");\n // Make sure scrolling doesn't cause number gutter size to pop\n if (normalNode != null && options.lineNumbers) {\n var node = gutterText.childNodes[normalNode - showingFrom];\n var minwidth = String(doc.size).length, val = eltText(node.firstChild), pad = \"\";\n while (val.length + pad.length < minwidth) pad += \"\\u00a0\";\n if (pad) node.insertBefore(document.createTextNode(pad), node.firstChild);\n }\n gutter.style.display = \"\";\n var resized = Math.abs((parseInt(lineSpace.style.marginLeft) || 0) - gutter.offsetWidth) > 2;\n lineSpace.style.marginLeft = gutter.offsetWidth + \"px\";\n gutterDirty = false;\n return resized;\n }\n function updateSelection() {\n var collapsed = posEq(sel.from, sel.to);\n var fromPos = localCoords(sel.from, true);\n var toPos = collapsed ? fromPos : localCoords(sel.to, true);\n var headPos = sel.inverted ? fromPos : toPos, th = textHeight();\n var wrapOff = eltOffset(wrapper), lineOff = eltOffset(lineDiv);\n inputDiv.style.top = Math.max(0, Math.min(scroller.offsetHeight, headPos.y + lineOff.top - wrapOff.top)) + \"px\";\n inputDiv.style.left = Math.max(0, Math.min(scroller.offsetWidth, headPos.x + lineOff.left - wrapOff.left)) + \"px\";\n if (collapsed) {\n cursor.style.top = headPos.y + \"px\";\n cursor.style.left = (options.lineWrapping ? Math.min(headPos.x, lineSpace.offsetWidth) : headPos.x) + \"px\";\n cursor.style.display = \"\";\n selectionDiv.style.display = \"none\";\n } else {\n var sameLine = fromPos.y == toPos.y, html = \"\";\n var clientWidth = lineSpace.clientWidth || lineSpace.offsetWidth;\n var clientHeight = lineSpace.clientHeight || lineSpace.offsetHeight;\n function add(left, top, right, height) {\n var rstyle = quirksMode ? \"width: \" + (!right ? clientWidth : clientWidth - right - left) + \"px\"\n : \"right: \" + right + \"px\";\n html += '<div class=\"CodeMirror-selected\" style=\"position: absolute; left: ' + left +\n 'px; top: ' + top + 'px; ' + rstyle + '; height: ' + height + 'px\"></div>';\n }\n if (sel.from.ch && fromPos.y >= 0) {\n var right = sameLine ? clientWidth - toPos.x : 0;\n add(fromPos.x, fromPos.y, right, th);\n }\n var middleStart = Math.max(0, fromPos.y + (sel.from.ch ? th : 0));\n var middleHeight = Math.min(toPos.y, clientHeight) - middleStart;\n if (middleHeight > 0.2 * th)\n add(0, middleStart, 0, middleHeight);\n if ((!sameLine || !sel.from.ch) && toPos.y < clientHeight - .5 * th)\n add(0, toPos.y, clientWidth - toPos.x, th);\n selectionDiv.innerHTML = html;\n cursor.style.display = \"none\";\n selectionDiv.style.display = \"\";\n }\n }\n\n function setShift(val) {\n if (val) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);\n else shiftSelecting = null;\n }\n function setSelectionUser(from, to) {\n var sh = shiftSelecting && clipPos(shiftSelecting);\n if (sh) {\n if (posLess(sh, from)) from = sh;\n else if (posLess(to, sh)) to = sh;\n }\n setSelection(from, to);\n userSelChange = true;\n }\n // Update the selection. Last two args are only used by\n // updateLines, since they have to be expressed in the line\n // numbers before the update.\n function setSelection(from, to, oldFrom, oldTo) {\n goalColumn = null;\n if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}\n if (posEq(sel.from, from) && posEq(sel.to, to)) return;\n if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}\n\n // Skip over hidden lines.\n if (from.line != oldFrom) {\n var from1 = skipHidden(from, oldFrom, sel.from.ch);\n // If there is no non-hidden line left, force visibility on current line\n if (!from1) setLineHidden(from.line, false);\n else from = from1;\n }\n if (to.line != oldTo) to = skipHidden(to, oldTo, sel.to.ch);\n\n if (posEq(from, to)) sel.inverted = false;\n else if (posEq(from, sel.to)) sel.inverted = false;\n else if (posEq(to, sel.from)) sel.inverted = true;\n\n if (options.autoClearEmptyLines && posEq(sel.from, sel.to)) {\n var head = sel.inverted ? from : to;\n if (head.line != sel.from.line && sel.from.line < doc.size) {\n var oldLine = getLine(sel.from.line);\n if (/^\\s+$/.test(oldLine.text))\n setTimeout(operation(function() {\n if (oldLine.parent && /^\\s+$/.test(oldLine.text)) {\n var no = lineNo(oldLine);\n replaceRange(\"\", {line: no, ch: 0}, {line: no, ch: oldLine.text.length});\n }\n }, 10));\n }\n }\n\n sel.from = from; sel.to = to;\n selectionChanged = true;\n }\n function skipHidden(pos, oldLine, oldCh) {\n function getNonHidden(dir) {\n var lNo = pos.line + dir, end = dir == 1 ? doc.size : -1;\n while (lNo != end) {\n var line = getLine(lNo);\n if (!line.hidden) {\n var ch = pos.ch;\n if (toEnd || ch > oldCh || ch > line.text.length) ch = line.text.length;\n return {line: lNo, ch: ch};\n }\n lNo += dir;\n }\n }\n var line = getLine(pos.line);\n var toEnd = pos.ch == line.text.length && pos.ch != oldCh;\n if (!line.hidden) return pos;\n if (pos.line >= oldLine) return getNonHidden(1) || getNonHidden(-1);\n else return getNonHidden(-1) || getNonHidden(1);\n }\n function setCursor(line, ch, user) {\n var pos = clipPos({line: line, ch: ch || 0});\n (user ? setSelectionUser : setSelection)(pos, pos);\n }\n\n function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}\n function clipPos(pos) {\n if (pos.line < 0) return {line: 0, ch: 0};\n if (pos.line >= doc.size) return {line: doc.size-1, ch: getLine(doc.size-1).text.length};\n var ch = pos.ch, linelen = getLine(pos.line).text.length;\n if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};\n else if (ch < 0) return {line: pos.line, ch: 0};\n else return pos;\n }\n\n function findPosH(dir, unit) {\n var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;\n var lineObj = getLine(line);\n function findNextLine() {\n for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {\n var lo = getLine(l);\n if (!lo.hidden) { line = l; lineObj = lo; return true; }\n }\n }\n function moveOnce(boundToLine) {\n if (ch == (dir < 0 ? 0 : lineObj.text.length)) {\n if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;\n else return false;\n } else ch += dir;\n return true;\n }\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\") {\n var sawWord = false;\n for (;;) {\n if (dir < 0) if (!moveOnce()) break;\n if (isWordChar(lineObj.text.charAt(ch))) sawWord = true;\n else if (sawWord) {if (dir < 0) {dir = 1; moveOnce();} break;}\n if (dir > 0) if (!moveOnce()) break;\n }\n }\n return {line: line, ch: ch};\n }\n function moveH(dir, unit) {\n var pos = dir < 0 ? sel.from : sel.to;\n if (shiftSelecting || posEq(sel.from, sel.to)) pos = findPosH(dir, unit);\n setCursor(pos.line, pos.ch, true);\n }\n function deleteH(dir, unit) {\n if (!posEq(sel.from, sel.to)) replaceRange(\"\", sel.from, sel.to);\n else if (dir < 0) replaceRange(\"\", findPosH(dir, unit), sel.to);\n else replaceRange(\"\", sel.from, findPosH(dir, unit));\n userSelChange = true;\n }\n var goalColumn = null;\n function moveV(dir, unit) {\n var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);\n if (goalColumn != null) pos.x = goalColumn;\n if (unit == \"page\") dist = Math.min(scroller.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n else if (unit == \"line\") dist = textHeight();\n var target = coordsChar(pos.x, pos.y + dist * dir + 2);\n if (unit == \"page\") scrollbar.scrollTop += localCoords(target, true).y - pos.y;\n setCursor(target.line, target.ch, true);\n goalColumn = pos.x;\n }\n\n function selectWordAt(pos) {\n var line = getLine(pos.line).text;\n var start = pos.ch, end = pos.ch;\n while (start > 0 && isWordChar(line.charAt(start - 1))) --start;\n while (end < line.length && isWordChar(line.charAt(end))) ++end;\n setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});\n }\n function selectLine(line) {\n setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));\n }\n function indentSelected(mode) {\n if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);\n var e = sel.to.line - (sel.to.ch ? 0 : 1);\n for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);\n }\n\n function indentLine(n, how) {\n if (!how) how = \"add\";\n if (how == \"smart\") {\n if (!mode.indent) how = \"prev\";\n else var state = getStateBefore(n);\n }\n\n var line = getLine(n), curSpace = line.indentation(options.tabSize),\n curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (how == \"smart\") {\n indentation = mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass) how = \"prev\";\n }\n if (how == \"prev\") {\n if (n) indentation = getLine(n-1).indentation(options.tabSize);\n else indentation = 0;\n }\n else if (how == \"add\") indentation = curSpace + options.indentUnit;\n else if (how == \"subtract\") indentation = curSpace - options.indentUnit;\n indentation = Math.max(0, indentation);\n var diff = indentation - curSpace;\n\n if (!diff) {\n if (sel.from.line != n && sel.to.line != n) return;\n var indentString = curSpaceString;\n } else {\n var indentString = \"\", pos = 0;\n if (options.indentWithTabs)\n for (var i = Math.floor(indentation / options.tabSize); i; --i) {pos += options.tabSize; indentString += \"\\t\";}\n while (pos < indentation) {++pos; indentString += \" \";}\n }\n\n replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});\n }\n\n function loadMode() {\n mode = CodeMirror.getMode(options, options.mode);\n doc.iter(0, doc.size, function(line) { line.stateAfter = null; });\n work = [0];\n startWorker();\n }\n function gutterChanged() {\n var visible = options.gutter || options.lineNumbers;\n gutter.style.display = visible ? \"\" : \"none\";\n if (visible) gutterDirty = true;\n else lineDiv.parentNode.style.marginLeft = 0;\n }\n function wrappingChanged(from, to) {\n if (options.lineWrapping) {\n wrapper.className += \" CodeMirror-wrap\";\n var perLine = scroller.clientWidth / charWidth() - 3;\n doc.iter(0, doc.size, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != 1) updateLineHeight(line, guess);\n });\n lineSpace.style.width = code.style.width = \"\";\n widthForcer.style.left = \"\";\n } else {\n wrapper.className = wrapper.className.replace(\" CodeMirror-wrap\", \"\");\n maxLine = \"\"; maxLineChanged = true;\n doc.iter(0, doc.size, function(line) {\n if (line.height != 1 && !line.hidden) updateLineHeight(line, 1);\n if (line.text.length > maxLine.length) maxLine = line.text;\n });\n }\n changes.push({from: 0, to: doc.size});\n }\n function makeTab(col) {\n var w = options.tabSize - col % options.tabSize, cached = tabCache[w];\n if (cached) return cached;\n for (var str = '<span class=\"cm-tab\">', i = 0; i < w; ++i) str += \" \";\n return (tabCache[w] = {html: str + \"</span>\", width: w});\n }\n function themeChanged() {\n scroller.className = scroller.className.replace(/\\s*cm-s-\\S+/g, \"\") +\n options.theme.replace(/(^|\\s)\\s*/g, \" cm-s-\");\n }\n function keyMapChanged() {\n var style = keyMap[options.keyMap].style;\n wrapper.className = wrapper.className.replace(/\\s*cm-keymap-\\S+/g, \"\") +\n (style ? \" cm-keymap-\" + style : \"\");\n }\n\n function TextMarker() { this.set = []; }\n TextMarker.prototype.clear = operation(function() {\n var min = Infinity, max = -Infinity;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n if (!mk || !line.parent) continue;\n var lineN = lineNo(line);\n min = Math.min(min, lineN); max = Math.max(max, lineN);\n for (var j = 0; j < mk.length; ++j)\n if (mk[j].marker == this) mk.splice(j--, 1);\n }\n if (min != Infinity)\n changes.push({from: min, to: max + 1});\n });\n TextMarker.prototype.find = function() {\n var from, to;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n for (var j = 0; j < mk.length; ++j) {\n var mark = mk[j];\n if (mark.marker == this) {\n if (mark.from != null || mark.to != null) {\n var found = lineNo(line);\n if (found != null) {\n if (mark.from != null) from = {line: found, ch: mark.from};\n if (mark.to != null) to = {line: found, ch: mark.to};\n }\n }\n }\n }\n }\n return {from: from, to: to};\n };\n\n function markText(from, to, className) {\n from = clipPos(from); to = clipPos(to);\n var tm = new TextMarker();\n if (!posLess(from, to)) return tm;\n function add(line, from, to, className) {\n getLine(line).addMark(new MarkedText(from, to, className, tm));\n }\n if (from.line == to.line) add(from.line, from.ch, to.ch, className);\n else {\n add(from.line, from.ch, null, className);\n for (var i = from.line + 1, e = to.line; i < e; ++i)\n add(i, null, null, className);\n add(to.line, null, to.ch, className);\n }\n changes.push({from: from.line, to: to.line + 1});\n return tm;\n }\n\n function setBookmark(pos) {\n pos = clipPos(pos);\n var bm = new Bookmark(pos.ch);\n getLine(pos.line).addMark(bm);\n return bm;\n }\n\n function findMarksAt(pos) {\n pos = clipPos(pos);\n var markers = [], marked = getLine(pos.line).marked;\n if (!marked) return markers;\n for (var i = 0, e = marked.length; i < e; ++i) {\n var m = marked[i];\n if ((m.from == null || m.from <= pos.ch) &&\n (m.to == null || m.to >= pos.ch))\n markers.push(m.marker || m);\n }\n return markers;\n }\n\n function addGutterMarker(line, text, className) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = {text: text, style: className};\n gutterDirty = true;\n return line;\n }\n function removeGutterMarker(line) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = null;\n gutterDirty = true;\n }\n\n function changeLine(handle, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(clipLine(handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no)) changes.push({from: no, to: no + 1});\n else return null;\n return line;\n }\n function setLineClass(handle, className, bgClassName) {\n return changeLine(handle, function(line) {\n if (line.className != className || line.bgClassName != bgClassName) {\n line.className = className;\n line.bgClassName = bgClassName;\n return true;\n }\n });\n }\n function setLineHidden(handle, hidden) {\n return changeLine(handle, function(line, no) {\n if (line.hidden != hidden) {\n line.hidden = hidden;\n if (!options.lineWrapping) {\n var l = line.text;\n if (hidden && l.length == maxLine.length) {\n updateMaxLine = true;\n } else if (!hidden && l.length > maxLine.length) {\n maxLine = l; maxWidth = null; updateMaxLine = false;\n }\n }\n updateLineHeight(line, hidden ? 0 : 1);\n var fline = sel.from.line, tline = sel.to.line;\n if (hidden && (fline == no || tline == no)) {\n var from = fline == no ? skipHidden({line: fline, ch: 0}, fline, 0) : sel.from;\n var to = tline == no ? skipHidden({line: tline, ch: 0}, tline, 0) : sel.to;\n // Can't hide the last visible line, we'd have no place to put the cursor\n if (!to) return;\n setSelection(from, to);\n }\n return (gutterDirty = true);\n }\n });\n }\n\n function lineInfo(line) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n var n = line;\n line = getLine(line);\n if (!line) return null;\n } else {\n var n = lineNo(line);\n if (n == null) return null;\n }\n var marker = line.gutterMarker;\n return {line: n, handle: line, text: line.text, markerText: marker && marker.text,\n markerClass: marker && marker.style, lineClass: line.className, bgClass: line.bgClassName};\n }\n\n function stringWidth(str) {\n measure.innerHTML = \"<pre><span>x</span></pre>\";\n measure.firstChild.firstChild.firstChild.nodeValue = str;\n return measure.firstChild.firstChild.offsetWidth || 10;\n }\n // These are used to go from pixel positions to character\n // positions, taking varying character widths into account.\n function charFromX(line, x) {\n if (x <= 0) return 0;\n var lineObj = getLine(line), text = lineObj.text;\n function getX(len) {\n return measureLine(lineObj, len).left;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil(x / charWidth()));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return to;\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return (toX - x > x - fromX) ? from : to;\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n\n var tempId = \"CodeMirror-temp-\" + Math.floor(Math.random() * 0xffffff).toString(16);\n function measureLine(line, ch) {\n if (ch == 0) return {top: 0, left: 0};\n var wbr = options.lineWrapping && ch < line.text.length &&\n spanAffectsWrapping.test(line.text.slice(ch - 1, ch + 1));\n measure.innerHTML = \"<pre>\" + line.getHTML(makeTab, ch, tempId, wbr) + \"</pre>\";\n var elt = document.getElementById(tempId);\n var top = elt.offsetTop, left = elt.offsetLeft;\n // Older IEs report zero offsets for spans directly after a wrap\n if (ie && top == 0 && left == 0) {\n var backup = document.createElement(\"span\");\n backup.innerHTML = \"x\";\n elt.parentNode.insertBefore(backup, elt.nextSibling);\n top = backup.offsetTop;\n }\n return {top: top, left: left};\n }\n function localCoords(pos, inLineWrap) {\n var x, lh = textHeight(), y = lh * (heightAtLine(doc, pos.line) - (inLineWrap ? displayOffset : 0));\n if (pos.ch == 0) x = 0;\n else {\n var sp = measureLine(getLine(pos.line), pos.ch);\n x = sp.left;\n if (options.lineWrapping) y += Math.max(0, sp.top);\n }\n return {x: x, y: y, yBot: y + lh};\n }\n // Coords must be lineSpace-local\n function coordsChar(x, y) {\n if (y < 0) y = 0;\n var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);\n var lineNo = lineAtHeight(doc, heightPos);\n if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};\n var lineObj = getLine(lineNo), text = lineObj.text;\n var tw = options.lineWrapping, innerOff = tw ? heightPos - heightAtLine(doc, lineNo) : 0;\n if (x <= 0 && innerOff == 0) return {line: lineNo, ch: 0};\n function getX(len) {\n var sp = measureLine(lineObj, len);\n if (tw) {\n var off = Math.round(sp.top / th);\n return Math.max(0, sp.left + (off - innerOff) * scroller.clientWidth);\n }\n return sp.left;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil((x + innerOff * scroller.clientWidth * .9) / cw));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return {line: lineNo, ch: to};\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return {line: lineNo, ch: (toX - x > x - fromX) ? from : to};\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n function pageCoords(pos) {\n var local = localCoords(pos, true), off = eltOffset(lineSpace);\n return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};\n }\n\n var cachedHeight, cachedHeightFor, measureText;\n function textHeight() {\n if (measureText == null) {\n measureText = \"<pre>\";\n for (var i = 0; i < 49; ++i) measureText += \"x<br/>\";\n measureText += \"x</pre>\";\n }\n var offsetHeight = lineDiv.clientHeight;\n if (offsetHeight == cachedHeightFor) return cachedHeight;\n cachedHeightFor = offsetHeight;\n measure.innerHTML = measureText;\n cachedHeight = measure.firstChild.offsetHeight / 50 || 1;\n measure.innerHTML = \"\";\n return cachedHeight;\n }\n var cachedWidth, cachedWidthFor = 0;\n function charWidth() {\n if (scroller.clientWidth == cachedWidthFor) return cachedWidth;\n cachedWidthFor = scroller.clientWidth;\n return (cachedWidth = stringWidth(\"x\"));\n }\n function paddingTop() {return lineSpace.offsetTop;}\n function paddingLeft() {return lineSpace.offsetLeft;}\n\n function posFromMouse(e, liberal) {\n var offW = eltOffset(scroller, true), x, y;\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX; y = e.clientY; } catch (e) { return null; }\n // This is a mess of a heuristic to try and determine whether a\n // scroll-bar was clicked or not, and to return null if one was\n // (and !liberal).\n if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))\n return null;\n var offL = eltOffset(lineSpace, true);\n return coordsChar(x - offL.left, y - offL.top);\n }\n function onContextMenu(e) {\n var pos = posFromMouse(e), scrollPos = scrollbar.scrollTop;\n if (!pos || opera) return; // Opera is difficult.\n if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))\n operation(setCursor)(pos.line, pos.ch);\n\n var oldCSS = input.style.cssText;\n inputDiv.style.position = \"absolute\";\n input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: white; \" +\n \"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n leaveInputAlone = true;\n var val = input.value = getSelection();\n focusInput();\n selectInput(input);\n function rehide() {\n var newVal = splitLines(input.value).join(\"\\n\");\n if (newVal != val && !options.readOnly) operation(replaceSelection)(newVal, \"end\");\n inputDiv.style.position = \"relative\";\n input.style.cssText = oldCSS;\n if (ie_lt9) scrollbar.scrollTop = scrollPos;\n leaveInputAlone = false;\n resetInput(true);\n slowPoll();\n }\n\n if (gecko) {\n e_stop(e);\n var mouseup = connect(window, \"mouseup\", function() {\n mouseup();\n setTimeout(rehide, 20);\n }, true);\n } else {\n setTimeout(rehide, 50);\n }\n }\n\n // Cursor-blinking\n function restartBlink() {\n clearInterval(blinker);\n var on = true;\n cursor.style.visibility = \"\";\n blinker = setInterval(function() {\n cursor.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, 650);\n }\n\n var matching = {\"(\": \")>\", \")\": \"(<\", \"[\": \"]>\", \"]\": \"[<\", \"{\": \"}>\", \"}\": \"{<\"};\n function matchBrackets(autoclear) {\n var head = sel.inverted ? sel.from : sel.to, line = getLine(head.line), pos = head.ch - 1;\n var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];\n if (!match) return;\n var ch = match.charAt(0), forward = match.charAt(1) == \">\", d = forward ? 1 : -1, st = line.styles;\n for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)\n if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}\n\n var stack = [line.text.charAt(pos)], re = /[(){}[\\]]/;\n function scan(line, from, to) {\n if (!line.text) return;\n var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;\n for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {\n var text = st[i];\n if (st[i+1] != style) {pos += d * text.length; continue;}\n for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {\n if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {\n var match = matching[cur];\n if (match.charAt(1) == \">\" == forward) stack.push(cur);\n else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};\n else if (!stack.length) return {pos: pos, match: true};\n }\n }\n }\n }\n for (var i = head.line, e = forward ? Math.min(i + 100, doc.size) : Math.max(-1, i - 100); i != e; i+=d) {\n var line = getLine(i), first = i == head.line;\n var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);\n if (found) break;\n }\n if (!found) found = {pos: null, match: false};\n var style = found.match ? \"CodeMirror-matchingbracket\" : \"CodeMirror-nonmatchingbracket\";\n var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),\n two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);\n var clear = operation(function(){one.clear(); two && two.clear();});\n if (autoclear) setTimeout(clear, 800);\n else bracketHighlighted = clear;\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(n) {\n var minindent, minline;\n for (var search = n, lim = n - 40; search > lim; --search) {\n if (search == 0) return 0;\n var line = getLine(search-1);\n if (line.stateAfter) return search;\n var indented = line.indentation(options.tabSize);\n if (minline == null || minindent > indented) {\n minline = search - 1;\n minindent = indented;\n }\n }\n return minline;\n }\n function getStateBefore(n) {\n var start = findStartLine(n), state = start && getLine(start-1).stateAfter;\n if (!state) state = startState(mode);\n else state = copyState(mode, state);\n doc.iter(start, n, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n if (start < n) changes.push({from: start, to: n});\n if (n < doc.size && !getLine(n).stateAfter) work.push(n);\n return state;\n }\n function highlightLines(start, end) {\n var state = getStateBefore(start);\n doc.iter(start, end, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n }\n function highlightWorker() {\n var end = +new Date + options.workTime;\n var foundWork = work.length;\n while (work.length) {\n if (!getLine(showingFrom).stateAfter) var task = showingFrom;\n else var task = work.pop();\n if (task >= doc.size) continue;\n var start = findStartLine(task), state = start && getLine(start-1).stateAfter;\n if (state) state = copyState(mode, state);\n else state = startState(mode);\n\n var unchanged = 0, compare = mode.compareStates, realChange = false,\n i = start, bail = false;\n doc.iter(i, doc.size, function(line) {\n var hadState = line.stateAfter;\n if (+new Date > end) {\n work.push(i);\n startWorker(options.workDelay);\n if (realChange) changes.push({from: task, to: i + 1});\n return (bail = true);\n }\n var changed = line.highlight(mode, state, options.tabSize);\n if (changed) realChange = true;\n line.stateAfter = copyState(mode, state);\n var done = null;\n if (compare) {\n var same = hadState && compare(hadState, state);\n if (same != Pass) done = !!same;\n }\n if (done == null) {\n if (changed !== false || !hadState) unchanged = 0;\n else if (++unchanged > 3 && (!mode.indent || mode.indent(hadState, \"\") == mode.indent(state, \"\")))\n done = true;\n }\n if (done) return true;\n ++i;\n });\n if (bail) return;\n if (realChange) changes.push({from: task, to: i + 1});\n }\n if (foundWork && options.onHighlightComplete)\n options.onHighlightComplete(instance);\n }\n function startWorker(time) {\n if (!work.length) return;\n highlight.set(time, operation(highlightWorker));\n }\n\n // Operations are used to wrap changes in such a way that each\n // change won't have to update the cursor and display (which would\n // be awkward, slow, and error-prone), but instead updates are\n // batched and then all combined and executed at once.\n function startOperation() {\n updateInput = userSelChange = textChanged = null;\n changes = []; selectionChanged = false; callbacks = [];\n }\n function endOperation() {\n if (updateMaxLine) computeMaxLength();\n if (maxLineChanged && !options.lineWrapping) {\n widthForcer.style.left = stringWidth(maxLine) + \"px\";\n maxLineChanged = false;\n }\n var newScrollPos, updated;\n if (selectionChanged) {\n var coords = calculateCursorCoords();\n newScrollPos = calculateScrollPos(coords.x, coords.y, coords.x, coords.yBot);\n }\n if (changes.length) updated = updateDisplay(changes, true, (newScrollPos ? newScrollPos.scrollTop : null));\n else {\n if (selectionChanged) updateSelection();\n if (gutterDirty) updateGutter();\n }\n if (newScrollPos) scrollCursorIntoView();\n if (selectionChanged) {scrollEditorIntoView(); restartBlink();}\n\n if (focused && !leaveInputAlone &&\n (updateInput === true || (updateInput !== false && selectionChanged)))\n resetInput(userSelChange);\n\n if (selectionChanged && options.matchBrackets)\n setTimeout(operation(function() {\n if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}\n if (posEq(sel.from, sel.to)) matchBrackets(false);\n }), 20);\n var sc = selectionChanged, cbs = callbacks; // these can be reset by callbacks\n if (textChanged && options.onChange && instance)\n options.onChange(instance, textChanged);\n if (sc && options.onCursorActivity)\n options.onCursorActivity(instance);\n for (var i = 0; i < cbs.length; ++i) cbs[i](instance);\n if (updated && options.onUpdate) options.onUpdate(instance);\n }\n var nestedOperation = 0;\n function operation(f) {\n return function() {\n if (!nestedOperation++) startOperation();\n try {var result = f.apply(this, arguments);}\n finally {if (!--nestedOperation) endOperation();}\n return result;\n };\n }\n\n function compoundChange(f) {\n history.startCompound();\n try { return f(); } finally { history.endCompound(); }\n }\n\n for (var ext in extensions)\n if (extensions.propertyIsEnumerable(ext) &&\n !instance.propertyIsEnumerable(ext))\n instance[ext] = extensions[ext];\n return instance;\n } // (end of function CodeMirror)", "function CodeMirror(place, givenOptions) {\n // Determine effective options based on given values and defaults.\n var options = {}, defaults = CodeMirror.defaults;\n for (var opt in defaults)\n if (defaults.hasOwnProperty(opt))\n options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];\n\n var targetDocument = options[\"document\"];\n // The element in which the editor lives.\n var wrapper = targetDocument.createElement(\"div\");\n wrapper.className = \"CodeMirror\";\n // This mess creates the base DOM structure for the editor.\n wrapper.innerHTML =\n '<div style=\"overflow: hidden; position: relative; width: 1px; height: 0px;\">' + // Wraps and hides input textarea\n '<textarea style=\"position: absolute; width: 10000px;\" wrap=\"off\" ' +\n 'autocorrect=\"off\" autocapitalize=\"off\"></textarea></div>' +\n '<div class=\"CodeMirror-scroll cm-s-' + options.theme + '\">' +\n '<div style=\"position: relative\">' + // Set to the height of the text, causes scrolling\n '<div style=\"position: absolute; height: 0; width: 0; overflow: hidden;\"></div>' +\n '<div style=\"position: relative\">' + // Moved around its parent to cover visible view\n '<div class=\"CodeMirror-gutter\"><div class=\"CodeMirror-gutter-text\"></div></div>' +\n // Provides positioning relative to (visible) text origin\n '<div class=\"CodeMirror-lines\"><div style=\"position: relative\" draggable=\"true\">' +\n '<pre class=\"CodeMirror-cursor\">&#160;</pre>' + // Absolutely positioned blinky cursor\n '<div></div>' + // This DIV contains the actual code\n '</div></div></div></div></div>';\n if (place.appendChild) place.appendChild(wrapper); else place(wrapper);\n // I've never seen more elegant code in my life.\n var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,\n scroller = wrapper.lastChild, code = scroller.firstChild,\n measure = code.firstChild, mover = measure.nextSibling,\n gutter = mover.firstChild, gutterText = gutter.firstChild,\n lineSpace = gutter.nextSibling.firstChild,\n cursor = lineSpace.firstChild, lineDiv = cursor.nextSibling;\n if (options.tabindex != null) input.tabindex = options.tabindex;\n if (!options.gutter && !options.lineNumbers) gutter.style.display = \"none\";\n\n // Check for problem with IE innerHTML not working when we have a\n // P (or similar) parent node.\n try { stringWidth(\"x\"); }\n catch (e) {\n if (e.message.match(/unknown runtime/i))\n e = new Error(\"A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)\");\n throw e;\n }\n\n // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.\n var poll = new Delayed(), highlight = new Delayed(), blinker;\n\n // mode holds a mode API object. lines an array of Line objects\n // (see Line constructor), work an array of lines that should be\n // parsed, and history the undo history (instance of History\n // constructor).\n var mode, lines = [new Line(\"\")], work, focused;\n loadMode();\n // The selection. These are always maintained to point at valid\n // positions. Inverted is used to remember that the user is\n // selecting bottom-to-top.\n var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};\n // Selection-related flags. shiftSelecting obviously tracks\n // whether the user is holding shift. reducedSelection is a hack\n // to get around the fact that we can't create inverted\n // selections. See below.\n var shiftSelecting, reducedSelection, lastClick, lastDoubleClick, draggingText;\n // Variables used by startOperation/endOperation to track what\n // happened during the operation.\n var updateInput, changes, textChanged, selectionChanged, leaveInputAlone, gutterDirty;\n // Current visible range (may be bigger than the view window).\n var showingFrom = 0, showingTo = 0, lastHeight = 0, curKeyId = null;\n // editing will hold an object describing the things we put in the\n // textarea, to help figure out whether something changed.\n // bracketHighlighted is used to remember that a backet has been\n // marked.\n var editing, bracketHighlighted;\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n var maxLine = \"\", maxWidth;\n\n // Initialize the content.\n operation(function(){setValue(options.value || \"\"); updateInput = false;})();\n var history = new History();\n\n // Register our event handlers.\n connect(scroller, \"mousedown\", operation(onMouseDown));\n connect(scroller, \"dblclick\", operation(onDoubleClick));\n connect(lineSpace, \"dragstart\", onDragStart);\n // Gecko browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for Gecko.\n if (!gecko) connect(scroller, \"contextmenu\", onContextMenu);\n connect(scroller, \"scroll\", function() {\n updateDisplay([]);\n if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + \"px\";\n if (options.onScroll) options.onScroll(instance);\n });\n connect(window, \"resize\", function() {updateDisplay(true);});\n connect(input, \"keyup\", operation(onKeyUp));\n connect(input, \"input\", function() {fastPoll(curKeyId);});\n connect(input, \"keydown\", operation(onKeyDown));\n connect(input, \"keypress\", operation(onKeyPress));\n connect(input, \"focus\", onFocus);\n connect(input, \"blur\", onBlur);\n\n connect(scroller, \"dragenter\", e_stop);\n connect(scroller, \"dragover\", e_stop);\n connect(scroller, \"drop\", operation(onDrop));\n connect(scroller, \"paste\", function(){focusInput(); fastPoll();});\n connect(input, \"paste\", function(){fastPoll();});\n connect(input, \"cut\", function(){fastPoll();});\n\n // IE throws unspecified error in certain cases, when\n // trying to access activeElement before onload\n var hasFocus; try { hasFocus = (targetDocument.activeElement == input); } catch(e) { }\n if (hasFocus) setTimeout(onFocus, 20);\n else onBlur();\n\n function isLine(l) {return l >= 0 && l < lines.length;}\n // The instance object that we'll return. Mostly calls out to\n // local functions in the CodeMirror function. Some do some extra\n // range checking and/or clipping. operation is used to wrap the\n // call so that changes it makes are tracked, and the display is\n // updated afterwards.\n var instance = wrapper.CodeMirror = {\n getValue: getValue,\n setValue: operation(setValue),\n getSelection: getSelection,\n replaceSelection: operation(replaceSelection),\n focus: function(){focusInput(); onFocus(); fastPoll();},\n setOption: function(option, value) {\n options[option] = value;\n if (option == \"lineNumbers\" || option == \"gutter\" || option == \"firstLineNumber\")\n operation(gutterChanged)();\n else if (option == \"mode\" || option == \"indentUnit\") loadMode();\n else if (option == \"readOnly\" && value == \"nocursor\") input.blur();\n else if (option == \"theme\") scroller.className = scroller.className.replace(/cm-s-\\w+/, \"cm-s-\" + value);\n },\n getOption: function(option) {return options[option];},\n undo: operation(undo),\n redo: operation(redo),\n indentLine: operation(function(n, dir) {\n if (isLine(n)) indentLine(n, dir == null ? \"smart\" : dir ? \"add\" : \"subtract\");\n }),\n historySize: function() {return {undo: history.done.length, redo: history.undone.length};},\n clearHistory: function() {history = new History();},\n matchBrackets: operation(function(){matchBrackets(true);}),\n getTokenAt: function(pos) {\n pos = clipPos(pos);\n return lines[pos.line].getTokenAt(mode, getStateBefore(pos.line), pos.ch);\n },\n getStateAfter: function(line) {\n line = clipLine(line == null ? lines.length - 1: line);\n return getStateBefore(line + 1);\n },\n cursorCoords: function(start){\n if (start == null) start = sel.inverted;\n return pageCoords(start ? sel.from : sel.to);\n },\n charCoords: function(pos){return pageCoords(clipPos(pos));},\n coordsChar: function(coords) {\n var off = eltOffset(lineSpace);\n var line = clipLine(Math.min(lines.length - 1, showingFrom + Math.floor((coords.y - off.top) / lineHeight())));\n return clipPos({line: line, ch: charFromX(clipLine(line), coords.x - off.left)});\n },\n getSearchCursor: function(query, pos, caseFold) {return new SearchCursor(query, pos, caseFold);},\n markText: operation(markText),\n setMarker: operation(addGutterMarker),\n clearMarker: operation(removeGutterMarker),\n setLineClass: operation(setLineClass),\n lineInfo: lineInfo,\n addWidget: function(pos, node, scroll, vert, horiz) {\n pos = localCoords(clipPos(pos));\n var top = pos.yBot, left = pos.x;\n node.style.position = \"absolute\";\n code.appendChild(node);\n if (vert == \"over\") top = pos.y;\n else if (vert == \"near\") {\n var vspace = Math.max(scroller.offsetHeight, lines.length * lineHeight()),\n hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();\n if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)\n top = pos.y - node.offsetHeight;\n if (left + node.offsetWidth > hspace)\n left = hspace - node.offsetWidth;\n }\n node.style.top = (top + paddingTop()) + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = code.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") left = 0;\n else if (horiz == \"middle\") left = (code.clientWidth - node.offsetWidth) / 2;\n node.style.left = (left + paddingLeft()) + \"px\";\n }\n if (scroll)\n scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);\n },\n\n lineCount: function() {return lines.length;},\n getCursor: function(start) {\n if (start == null) start = sel.inverted;\n return copyPos(start ? sel.from : sel.to);\n },\n somethingSelected: function() {return !posEq(sel.from, sel.to);},\n setCursor: operation(function(line, ch) {\n if (ch == null && typeof line.line == \"number\") setCursor(line.line, line.ch);\n else setCursor(line, ch);\n }),\n setSelection: operation(function(from, to) {setSelection(clipPos(from), clipPos(to || from));}),\n getLine: function(line) {if (isLine(line)) return lines[line].text;},\n setLine: operation(function(line, text) {\n if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: lines[line].text.length});\n }),\n removeLine: operation(function(line) {\n if (isLine(line)) replaceRange(\"\", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));\n }),\n replaceRange: operation(replaceRange),\n getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},\n\n coordsFromIndex: function(index) { \n var total = lines.length, pos = 0, line, ch, len;\n \n for (line = 0; line < total; line++) {\n len = lines[line].text.length + 1;\n if (pos + len > index) { ch = index - pos; break; }\n pos += len;\n }\n return clipPos({line: line, ch: ch});\n },\n\n operation: function(f){return operation(f)();},\n refresh: function(){updateDisplay(true);},\n getInputField: function(){return input;},\n getWrapperElement: function(){return wrapper;},\n getScrollerElement: function(){return scroller;},\n getGutterElement: function(){return gutter;}\n };\n\n function setValue(code) {\n var top = {line: 0, ch: 0};\n updateLines(top, {line: lines.length - 1, ch: lines[lines.length-1].text.length},\n splitLines(code), top, top);\n updateInput = true;\n }\n function getValue(code) {\n var text = [];\n for (var i = 0, l = lines.length; i < l; ++i)\n text.push(lines[i].text);\n return text.join(\"\\n\");\n }\n\n function onMouseDown(e) {\n // Check whether this is a click in a widget\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == code && n != mover) return;\n\n // First, see if this is a click in the gutter\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) {\n if (options.onGutterClick)\n options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);\n return e_preventDefault(e);\n }\n\n var start = posFromMouse(e);\n\n switch (e_button(e)) {\n case 3:\n if (gecko && !mac) onContextMenu(e);\n return;\n case 2:\n if (start) setCursor(start.line, start.ch, true);\n return;\n }\n // For button 1, if it was clicked inside the editor\n // (posFromMouse returning non-null), we have to adjust the\n // selection.\n if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}\n\n if (!focused) onFocus();\n\n var now = +new Date;\n if (lastDoubleClick > now - 400) {\n e_preventDefault(e);\n return selectLine(start.line);\n } else if (lastClick > now - 400) {\n lastDoubleClick = now;\n e_preventDefault(e);\n return selectWordAt(start);\n } else { lastClick = now; }\n\n var last = start, going;\n if (dragAndDrop && !posEq(sel.from, sel.to) &&\n !posLess(start, sel.from) && !posLess(sel.to, start)) {\n // Let the drag handler handle this.\n var up = connect(targetDocument, \"mouseup\", operation(function(e2) {\n draggingText = false;\n up();\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n setCursor(start.line, start.ch, true);\n focusInput();\n }\n }), true);\n draggingText = true;\n return;\n }\n e_preventDefault(e);\n setCursor(start.line, start.ch, true);\n\n function extend(e) {\n var cur = posFromMouse(e, true);\n if (cur && !posEq(cur, last)) {\n if (!focused) onFocus();\n last = cur;\n setSelectionUser(start, cur);\n updateInput = false;\n var visible = visibleLines();\n if (cur.line >= visible.to || cur.line < visible.from)\n going = setTimeout(operation(function(){extend(e);}), 150);\n }\n }\n\n var move = connect(targetDocument, \"mousemove\", operation(function(e) {\n clearTimeout(going);\n e_preventDefault(e);\n extend(e);\n }), true);\n var up = connect(targetDocument, \"mouseup\", operation(function(e) {\n clearTimeout(going);\n var cur = posFromMouse(e);\n if (cur) setSelectionUser(start, cur);\n e_preventDefault(e);\n focusInput();\n updateInput = true;\n move(); up();\n }), true);\n }\n function onDoubleClick(e) {\n var start = posFromMouse(e);\n if (!start) return;\n lastDoubleClick = +new Date;\n e_preventDefault(e);\n selectWordAt(start);\n }\n function onDrop(e) {\n e.preventDefault();\n var pos = posFromMouse(e, true), files = e.dataTransfer.files;\n if (!pos || options.readOnly) return;\n if (files && files.length && window.FileReader && window.File) {\n function loadFile(file, i) {\n var reader = new FileReader;\n reader.onload = function() {\n text[i] = reader.result;\n if (++read == n) {\n\t pos = clipPos(pos);\n\t var end = replaceRange(text.join(\"\"), pos, pos);\n\t setSelectionUser(pos, end);\n\t }\n };\n reader.readAsText(file);\n }\n var n = files.length, text = Array(n), read = 0;\n for (var i = 0; i < n; ++i) loadFile(files[i], i);\n }\n else {\n try {\n var text = e.dataTransfer.getData(\"Text\");\n if (text) {\n\t var end = replaceRange(text, pos, pos);\n\t var curFrom = sel.from, curTo = sel.to;\n\t setSelectionUser(pos, end);\n if (draggingText) replaceRange(\"\", curFrom, curTo);\n\t focusInput();\n\t }\n }\n catch(e){}\n }\n }\n function onDragStart(e) {\n var txt = getSelection();\n // This will reset escapeElement\n htmlEscape(txt);\n e.dataTransfer.setDragImage(escapeElement, 0, 0);\n e.dataTransfer.setData(\"Text\", txt);\n }\n function onKeyDown(e) {\n if (!focused) onFocus();\n\n var code = e.keyCode;\n // IE does strange things with escape.\n if (ie && code == 27) { e.returnValue = false; }\n // Tries to detect ctrl on non-mac, cmd on mac.\n var mod = (mac ? e.metaKey : e.ctrlKey) && !e.altKey, anyMod = e.ctrlKey || e.altKey || e.metaKey;\n if (code == 16 || e.shiftKey) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);\n else shiftSelecting = null;\n // First give onKeyEvent option a chance to handle this.\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n\n if (code == 33 || code == 34) {scrollPage(code == 34); return e_preventDefault(e);} // page up/down\n if (mod && ((code == 36 || code == 35) || // ctrl-home/end\n mac && (code == 38 || code == 40))) { // cmd-up/down\n scrollEnd(code == 36 || code == 38); return e_preventDefault(e);\n }\n if (mod && code == 65) {selectAll(); return e_preventDefault(e);} // ctrl-a\n if (!options.readOnly) {\n if (!anyMod && code == 13) {return;} // enter\n if (!anyMod && code == 9 && handleTab(e.shiftKey)) return e_preventDefault(e); // tab\n if (mod && code == 90) {undo(); return e_preventDefault(e);} // ctrl-z\n if (mod && ((e.shiftKey && code == 90) || code == 89)) {redo(); return e_preventDefault(e);} // ctrl-shift-z, ctrl-y\n }\n if (code == 36) { if (options.smartHome) { smartHome(); return e_preventDefault(e); } }\n\n // Key id to use in the movementKeys map. We also pass it to\n // fastPoll in order to 'self learn'. We need this because\n // reducedSelection, the hack where we collapse the selection to\n // its start when it is inverted and a movement key is pressed\n // (and later restore it again), shouldn't be used for\n // non-movement keys.\n curKeyId = (mod ? \"c\" : \"\") + (e.altKey ? \"a\" : \"\") + code;\n if (sel.inverted && movementKeys[curKeyId] === true) {\n var range = selRange(input);\n if (range) {\n reducedSelection = {anchor: range.start};\n setSelRange(input, range.start, range.start);\n }\n }\n // Don't save the key as a movementkey unless it had a modifier\n if (!mod && !e.altKey) curKeyId = null;\n fastPoll(curKeyId);\n }\n function onKeyUp(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (reducedSelection) {\n reducedSelection = null;\n updateInput = true;\n }\n if (e.keyCode == 16) shiftSelecting = null;\n }\n function onKeyPress(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (options.electricChars && mode.electricChars) {\n var ch = String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode);\n if (mode.electricChars.indexOf(ch) > -1)\n setTimeout(operation(function() {indentLine(sel.to.line, \"smart\");}), 50);\n }\n var code = e.keyCode;\n // Re-stop tab and enter. Necessary on some browsers.\n if (code == 13) {if (!options.readOnly) handleEnter(); e_preventDefault(e);}\n else if (!e.ctrlKey && !e.altKey && !e.metaKey && code == 9 && options.tabMode != \"default\") e_preventDefault(e);\n else fastPoll(curKeyId);\n }\n\n function onFocus() {\n if (options.readOnly == \"nocursor\") return;\n if (!focused) {\n if (options.onFocus) options.onFocus(instance);\n focused = true;\n if (wrapper.className.search(/\\bCodeMirror-focused\\b/) == -1)\n wrapper.className += \" CodeMirror-focused\";\n if (!leaveInputAlone) prepareInput();\n }\n slowPoll();\n restartBlink();\n }\n function onBlur() {\n if (focused) {\n if (options.onBlur) options.onBlur(instance);\n focused = false;\n wrapper.className = wrapper.className.replace(\" CodeMirror-focused\", \"\");\n }\n clearInterval(blinker);\n setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);\n }\n\n // Replace the range from from to to by the strings in newText.\n // Afterwards, set the selection to selFrom, selTo.\n function updateLines(from, to, newText, selFrom, selTo) {\n if (history) {\n var old = [];\n for (var i = from.line, e = to.line + 1; i < e; ++i) old.push(lines[i].text);\n history.addChange(from.line, newText.length, old);\n while (history.done.length > options.undoDepth) history.done.shift();\n }\n updateLinesNoUndo(from, to, newText, selFrom, selTo);\n }\n function unredoHelper(from, to) {\n var change = from.pop();\n if (change) {\n var replaced = [], end = change.start + change.added;\n for (var i = change.start; i < end; ++i) replaced.push(lines[i].text);\n to.push({start: change.start, added: change.old.length, old: replaced});\n var pos = clipPos({line: change.start + change.old.length - 1,\n ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])});\n updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: lines[end-1].text.length}, change.old, pos, pos);\n updateInput = true;\n }\n }\n function undo() {unredoHelper(history.done, history.undone);}\n function redo() {unredoHelper(history.undone, history.done);}\n\n function updateLinesNoUndo(from, to, newText, selFrom, selTo) {\n var recomputeMaxLength = false, maxLineLength = maxLine.length;\n for (var i = from.line; i <= to.line; ++i) {\n if (lines[i].text.length == maxLineLength) {recomputeMaxLength = true; break;}\n }\n\n var nlines = to.line - from.line, firstLine = lines[from.line], lastLine = lines[to.line];\n // First adjust the line structure, taking some care to leave highlighting intact.\n if (firstLine == lastLine) {\n if (newText.length == 1)\n firstLine.replace(from.ch, to.ch, newText[0]);\n else {\n lastLine = firstLine.split(to.ch, newText[newText.length-1]);\n var spliceargs = [from.line + 1, nlines];\n firstLine.replace(from.ch, null, newText[0]);\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n spliceargs.push(Line.inheritMarks(newText[i], firstLine));\n spliceargs.push(lastLine);\n lines.splice.apply(lines, spliceargs);\n }\n }\n else if (newText.length == 1) {\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, \"\");\n firstLine.append(lastLine);\n lines.splice(from.line + 1, nlines);\n }\n else {\n var spliceargs = [from.line + 1, nlines - 1];\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, newText[newText.length-1]);\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n spliceargs.push(Line.inheritMarks(newText[i], firstLine));\n lines.splice.apply(lines, spliceargs);\n }\n\n\n for (var i = from.line, e = i + newText.length; i < e; ++i) {\n var l = lines[i].text;\n if (l.length > maxLineLength) {\n maxLine = l; maxLineLength = l.length; maxWidth = null;\n recomputeMaxLength = false;\n }\n }\n if (recomputeMaxLength) {\n maxLineLength = 0; maxLine = \"\"; maxWidth = null;\n for (var i = 0, e = lines.length; i < e; ++i) {\n var l = lines[i].text;\n if (l.length > maxLineLength) {\n maxLineLength = l.length; maxLine = l;\n }\n }\n }\n\n // Add these lines to the work array, so that they will be\n // highlighted. Adjust work lines if lines were added/removed.\n var newWork = [], lendiff = newText.length - nlines - 1;\n for (var i = 0, l = work.length; i < l; ++i) {\n var task = work[i];\n if (task < from.line) newWork.push(task);\n else if (task > to.line) newWork.push(task + lendiff);\n }\n if (newText.length < 5) {\n highlightLines(from.line, from.line + newText.length);\n newWork.push(from.line + newText.length);\n } else {\n newWork.push(from.line);\n }\n work = newWork;\n startWorker(100);\n // Remember that these lines changed, for updating the display\n changes.push({from: from.line, to: to.line + 1, diff: lendiff});\n textChanged = {from: from, to: to, text: newText};\n\n // Update the selection\n function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}\n setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));\n\n // Make sure the scroll-size div has the correct height.\n code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + \"px\";\n }\n\n function replaceRange(code, from, to) {\n from = clipPos(from);\n if (!to) to = from; else to = clipPos(to);\n code = splitLines(code);\n function adjustPos(pos) {\n if (posLess(pos, from)) return pos;\n if (!posLess(to, pos)) return end;\n var line = pos.line + code.length - (to.line - from.line) - 1;\n var ch = pos.ch;\n if (pos.line == to.line)\n ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));\n return {line: line, ch: ch};\n }\n var end;\n replaceRange1(code, from, to, function(end1) {\n end = end1;\n return {from: adjustPos(sel.from), to: adjustPos(sel.to)};\n });\n return end;\n }\n function replaceSelection(code, collapse) {\n replaceRange1(splitLines(code), sel.from, sel.to, function(end) {\n if (collapse == \"end\") return {from: end, to: end};\n else if (collapse == \"start\") return {from: sel.from, to: sel.from};\n else return {from: sel.from, to: end};\n });\n }\n function replaceRange1(code, from, to, computeSel) {\n var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;\n var newSel = computeSel({line: from.line + code.length - 1, ch: endch});\n updateLines(from, to, code, newSel.from, newSel.to);\n }\n\n function getRange(from, to) {\n var l1 = from.line, l2 = to.line;\n if (l1 == l2) return lines[l1].text.slice(from.ch, to.ch);\n var code = [lines[l1].text.slice(from.ch)];\n for (var i = l1 + 1; i < l2; ++i) code.push(lines[i].text);\n code.push(lines[l2].text.slice(0, to.ch));\n return code.join(\"\\n\");\n }\n function getSelection() {\n return getRange(sel.from, sel.to);\n }\n\n var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll\n function slowPoll() {\n if (pollingFast) return;\n poll.set(2000, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }\n function fastPoll(keyId) {\n var missed = false;\n pollingFast = true;\n function p() {\n startOperation();\n var changed = readInput();\n if (changed && keyId) {\n if (changed == \"moved\" && movementKeys[keyId] == null) movementKeys[keyId] = true;\n if (changed == \"changed\") movementKeys[keyId] = false;\n }\n if (!changed && !missed) {missed = true; poll.set(80, p);}\n else {pollingFast = false; slowPoll();}\n endOperation();\n }\n poll.set(20, p);\n }\n\n // Inspects the textarea, compares its state (content, selection)\n // to the data in the editing variable, and updates the editor\n // content or cursor if something changed.\n function readInput() {\n if (leaveInputAlone || !focused) return;\n var changed = false, text = input.value, sr = selRange(input);\n if (!sr) return false;\n var changed = editing.text != text, rs = reducedSelection;\n var moved = changed || sr.start != editing.start || sr.end != (rs ? editing.start : editing.end);\n if (!moved && !rs) return false;\n if (changed) {\n shiftSelecting = reducedSelection = null;\n if (options.readOnly) {updateInput = true; return \"changed\";}\n }\n\n // Compute selection start and end based on start/end offsets in textarea\n function computeOffset(n, startLine) {\n var pos = 0;\n for (;;) {\n var found = text.indexOf(\"\\n\", pos);\n if (found == -1 || (text.charAt(found-1) == \"\\r\" ? found - 1 : found) >= n)\n return {line: startLine, ch: n - pos};\n ++startLine;\n pos = found + 1;\n }\n }\n var from = computeOffset(sr.start, editing.from),\n to = computeOffset(sr.end, editing.from);\n // Here we have to take the reducedSelection hack into account,\n // so that you can, for example, press shift-up at the start of\n // your selection and have the right thing happen.\n if (rs) {\n var head = sr.start == rs.anchor ? to : from;\n var tail = shiftSelecting ? sel.to : sr.start == rs.anchor ? from : to;\n if (sel.inverted = posLess(head, tail)) { from = head; to = tail; }\n else { reducedSelection = null; from = tail; to = head; }\n }\n\n // In some cases (cursor on same line as before), we don't have\n // to update the textarea content at all.\n if (from.line == to.line && from.line == sel.from.line && from.line == sel.to.line && !shiftSelecting)\n updateInput = false;\n\n // Magic mess to extract precise edited range from the changed\n // string.\n if (changed) {\n var start = 0, end = text.length, len = Math.min(end, editing.text.length);\n var c, line = editing.from, nl = -1;\n while (start < len && (c = text.charAt(start)) == editing.text.charAt(start)) {\n ++start;\n if (c == \"\\n\") {line++; nl = start;}\n }\n var ch = nl > -1 ? start - nl : start, endline = editing.to - 1, edend = editing.text.length;\n for (;;) {\n c = editing.text.charAt(edend);\n if (text.charAt(end) != c) {++end; ++edend; break;}\n if (c == \"\\n\") endline--;\n if (edend <= start || end <= start) break;\n --end; --edend;\n }\n var nl = editing.text.lastIndexOf(\"\\n\", edend - 1), endch = nl == -1 ? edend : edend - nl - 1;\n updateLines({line: line, ch: ch}, {line: endline, ch: endch}, splitLines(text.slice(start, end)), from, to);\n if (line != endline || from.line != line) updateInput = true;\n }\n else setSelection(from, to);\n\n editing.text = text; editing.start = sr.start; editing.end = sr.end;\n return changed ? \"changed\" : moved ? \"moved\" : false;\n }\n\n // Set the textarea content and selection range to match the\n // editor state.\n function prepareInput() {\n var text = [];\n var from = Math.max(0, sel.from.line - 1), to = Math.min(lines.length, sel.to.line + 2);\n for (var i = from; i < to; ++i) text.push(lines[i].text);\n text = input.value = text.join(lineSep);\n var startch = sel.from.ch, endch = sel.to.ch;\n for (var i = from; i < sel.from.line; ++i)\n startch += lineSep.length + lines[i].text.length;\n for (var i = from; i < sel.to.line; ++i)\n endch += lineSep.length + lines[i].text.length;\n editing = {text: text, from: from, to: to, start: startch, end: endch};\n setSelRange(input, startch, reducedSelection ? startch : endch);\n }\n function focusInput() {\n if (options.readOnly != \"nocursor\") input.focus();\n }\n\n function scrollEditorIntoView() {\n if (!cursor.getBoundingClientRect) return;\n var rect = cursor.getBoundingClientRect();\n var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);\n if (rect.top < 0 || rect.bottom > winH) cursor.scrollIntoView();\n }\n function scrollCursorIntoView() {\n var cursor = localCoords(sel.inverted ? sel.from : sel.to);\n return scrollIntoView(cursor.x, cursor.y, cursor.x, cursor.yBot);\n }\n function scrollIntoView(x1, y1, x2, y2) {\n var pl = paddingLeft(), pt = paddingTop(), lh = lineHeight();\n y1 += pt; y2 += pt; x1 += pl; x2 += pl;\n var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true;\n if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;}\n else if (y2 > screentop + screen) {scroller.scrollTop = y2 + lh - screen; scrolled = true;}\n\n var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;\n var gutterw = options.fixedGutter ? gutter.clientWidth : 0;\n if (x1 < screenleft + gutterw) {\n if (x1 < 50) x1 = 0;\n scroller.scrollLeft = Math.max(0, x1 - 10 - gutterw);\n scrolled = true;\n }\n else if (x2 > screenw + screenleft) {\n scroller.scrollLeft = x2 + 10 - screenw;\n scrolled = true;\n if (x2 > code.clientWidth) result = false;\n }\n if (scrolled && options.onScroll) options.onScroll(instance);\n return result;\n }\n\n function visibleLines() {\n var lh = lineHeight(), top = scroller.scrollTop - paddingTop();\n return {from: Math.min(lines.length, Math.max(0, Math.floor(top / lh))),\n to: Math.min(lines.length, Math.ceil((top + scroller.clientHeight) / lh))};\n }\n // Uses a set of changes plus the current scroll position to\n // determine which DOM updates have to be made, and makes the\n // updates.\n function updateDisplay(changes) {\n if (!scroller.clientWidth) {\n showingFrom = showingTo = 0;\n return;\n }\n // First create a range of theoretically intact lines, and punch\n // holes in that using the change info.\n var intact = changes === true ? [] : [{from: showingFrom, to: showingTo, domStart: 0}];\n for (var i = 0, l = changes.length || 0; i < l; ++i) {\n var change = changes[i], intact2 = [], diff = change.diff || 0;\n for (var j = 0, l2 = intact.length; j < l2; ++j) {\n var range = intact[j];\n if (change.to <= range.from)\n intact2.push({from: range.from + diff, to: range.to + diff, domStart: range.domStart});\n else if (range.to <= change.from)\n intact2.push(range);\n else {\n if (change.from > range.from)\n intact2.push({from: range.from, to: change.from, domStart: range.domStart});\n if (change.to < range.to)\n intact2.push({from: change.to + diff, to: range.to + diff,\n domStart: range.domStart + (change.to - range.from)});\n }\n }\n intact = intact2;\n }\n\n // Then, determine which lines we'd want to see, and which\n // updates have to be made to get there.\n var visible = visibleLines();\n var from = Math.min(showingFrom, Math.max(visible.from - 3, 0)),\n to = Math.min(lines.length, Math.max(showingTo, visible.to + 3)),\n updates = [], domPos = 0, domEnd = showingTo - showingFrom, pos = from, changedLines = 0;\n\n for (var i = 0, l = intact.length; i < l; ++i) {\n var range = intact[i];\n if (range.to <= from) continue;\n if (range.from >= to) break;\n if (range.domStart > domPos || range.from > pos) {\n updates.push({from: pos, to: range.from, domSize: range.domStart - domPos, domStart: domPos});\n changedLines += range.from - pos;\n }\n pos = range.to;\n domPos = range.domStart + (range.to - range.from);\n }\n if (domPos != domEnd || pos != to) {\n changedLines += Math.abs(to - pos);\n updates.push({from: pos, to: to, domSize: domEnd - domPos, domStart: domPos});\n if (to - pos != domEnd - domPos) gutterDirty = true;\n }\n\n if (!updates.length) return;\n lineDiv.style.display = \"none\";\n // If more than 30% of the screen needs update, just do a full\n // redraw (which is quicker than patching)\n if (changedLines > (visible.to - visible.from) * .3)\n refreshDisplay(from = Math.max(visible.from - 10, 0), to = Math.min(visible.to + 7, lines.length));\n // Otherwise, only update the stuff that needs updating.\n else\n patchDisplay(updates);\n lineDiv.style.display = \"\";\n\n // Position the mover div to align with the lines it's supposed\n // to be showing (which will cover the visible display)\n var different = from != showingFrom || to != showingTo || lastHeight != scroller.clientHeight;\n showingFrom = from; showingTo = to;\n mover.style.top = (from * lineHeight()) + \"px\";\n if (different) {\n lastHeight = scroller.clientHeight;\n code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + \"px\";\n }\n if (different || gutterDirty) updateGutter();\n\n if (maxWidth == null) maxWidth = stringWidth(maxLine);\n if (maxWidth > scroller.clientWidth) {\n lineSpace.style.width = maxWidth + \"px\";\n // Needed to prevent odd wrapping/hiding of widgets placed in here.\n code.style.width = \"\";\n code.style.width = scroller.scrollWidth + \"px\";\n } else {\n lineSpace.style.width = code.style.width = \"\";\n }\n\n // Since this is all rather error prone, it is honoured with the\n // only assertion in the whole file.\n if (lineDiv.childNodes.length != showingTo - showingFrom)\n throw new Error(\"BAD PATCH! \" + JSON.stringify(updates) + \" size=\" + (showingTo - showingFrom) +\n \" nodes=\" + lineDiv.childNodes.length);\n updateCursor();\n }\n\n function refreshDisplay(from, to) {\n var html = [], start = {line: from, ch: 0}, inSel = posLess(sel.from, start) && !posLess(sel.to, start);\n for (var i = from; i < to; ++i) {\n var ch1 = null, ch2 = null;\n if (inSel) {\n ch1 = 0;\n if (sel.to.line == i) {inSel = false; ch2 = sel.to.ch;}\n }\n else if (sel.from.line == i) {\n if (sel.to.line == i) {ch1 = sel.from.ch; ch2 = sel.to.ch;}\n else {inSel = true; ch1 = sel.from.ch;}\n }\n html.push(lines[i].getHTML(ch1, ch2, true));\n }\n lineDiv.innerHTML = html.join(\"\");\n }\n function patchDisplay(updates) {\n // Slightly different algorithm for IE (badInnerHTML), since\n // there .innerHTML on PRE nodes is dumb, and discards\n // whitespace.\n var sfrom = sel.from.line, sto = sel.to.line, off = 0,\n scratch = badInnerHTML && targetDocument.createElement(\"div\");\n for (var i = 0, e = updates.length; i < e; ++i) {\n var rec = updates[i];\n var extra = (rec.to - rec.from) - rec.domSize;\n var nodeAfter = lineDiv.childNodes[rec.domStart + rec.domSize + off] || null;\n if (badInnerHTML)\n for (var j = Math.max(-extra, rec.domSize); j > 0; --j)\n lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);\n else if (extra) {\n for (var j = Math.max(0, extra); j > 0; --j)\n lineDiv.insertBefore(targetDocument.createElement(\"pre\"), nodeAfter);\n for (var j = Math.max(0, -extra); j > 0; --j)\n lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);\n }\n var node = lineDiv.childNodes[rec.domStart + off], inSel = sfrom < rec.from && sto >= rec.from;\n for (var j = rec.from; j < rec.to; ++j) {\n var ch1 = null, ch2 = null;\n if (inSel) {\n ch1 = 0;\n if (sto == j) {inSel = false; ch2 = sel.to.ch;}\n }\n else if (sfrom == j) {\n if (sto == j) {ch1 = sel.from.ch; ch2 = sel.to.ch;}\n else {inSel = true; ch1 = sel.from.ch;}\n }\n if (badInnerHTML) {\n scratch.innerHTML = lines[j].getHTML(ch1, ch2, true);\n lineDiv.insertBefore(scratch.firstChild, nodeAfter);\n }\n else {\n node.innerHTML = lines[j].getHTML(ch1, ch2, false);\n node.className = lines[j].className || \"\";\n node = node.nextSibling;\n }\n }\n off += extra;\n }\n }\n\n function updateGutter() {\n if (!options.gutter && !options.lineNumbers) return;\n var hText = mover.offsetHeight, hEditor = scroller.clientHeight;\n gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + \"px\";\n var html = [];\n for (var i = showingFrom; i < Math.max(showingTo, showingFrom + 1); ++i) {\n var marker = lines[i].gutterMarker;\n var text = options.lineNumbers ? i + options.firstLineNumber : null;\n if (marker && marker.text)\n text = marker.text.replace(\"%N%\", text != null ? text : \"\");\n else if (text == null)\n text = \"\\u00a0\";\n html.push((marker && marker.style ? '<pre class=\"' + marker.style + '\">' : \"<pre>\"), text, \"</pre>\");\n }\n gutter.style.display = \"none\";\n gutterText.innerHTML = html.join(\"\");\n var minwidth = String(lines.length).length, firstNode = gutterText.firstChild, val = eltText(firstNode), pad = \"\";\n while (val.length + pad.length < minwidth) pad += \"\\u00a0\";\n if (pad) firstNode.insertBefore(targetDocument.createTextNode(pad), firstNode.firstChild);\n gutter.style.display = \"\";\n lineSpace.style.marginLeft = gutter.offsetWidth + \"px\";\n gutterDirty = false;\n }\n function updateCursor() {\n var head = sel.inverted ? sel.from : sel.to, lh = lineHeight();\n var x = charX(head.line, head.ch);\n var top = head.line * lh - scroller.scrollTop;\n inputDiv.style.top = Math.max(Math.min(top, scroller.offsetHeight), 0) + \"px\";\n inputDiv.style.left = (x - scroller.scrollLeft) + \"px\";\n if (posEq(sel.from, sel.to)) {\n cursor.style.top = (head.line - showingFrom) * lh + \"px\";\n cursor.style.left = x + \"px\";\n cursor.style.display = \"\";\n }\n else cursor.style.display = \"none\";\n }\n\n function setSelectionUser(from, to) {\n var sh = shiftSelecting && clipPos(shiftSelecting);\n if (sh) {\n if (posLess(sh, from)) from = sh;\n else if (posLess(to, sh)) to = sh;\n }\n setSelection(from, to);\n }\n // Update the selection. Last two args are only used by\n // updateLines, since they have to be expressed in the line\n // numbers before the update.\n function setSelection(from, to, oldFrom, oldTo) {\n if (posEq(sel.from, from) && posEq(sel.to, to)) return;\n if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}\n\n if (posEq(from, to)) sel.inverted = false;\n else if (posEq(from, sel.to)) sel.inverted = false;\n else if (posEq(to, sel.from)) sel.inverted = true;\n\n // Some ugly logic used to only mark the lines that actually did\n // see a change in selection as changed, rather than the whole\n // selected range.\n if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}\n if (posEq(from, to)) {\n if (!posEq(sel.from, sel.to))\n changes.push({from: oldFrom, to: oldTo + 1});\n }\n else if (posEq(sel.from, sel.to)) {\n changes.push({from: from.line, to: to.line + 1});\n }\n else {\n if (!posEq(from, sel.from)) {\n if (from.line < oldFrom)\n changes.push({from: from.line, to: Math.min(to.line, oldFrom) + 1});\n else\n changes.push({from: oldFrom, to: Math.min(oldTo, from.line) + 1});\n }\n if (!posEq(to, sel.to)) {\n if (to.line < oldTo)\n changes.push({from: Math.max(oldFrom, from.line), to: oldTo + 1});\n else\n changes.push({from: Math.max(from.line, oldTo), to: to.line + 1});\n }\n }\n sel.from = from; sel.to = to;\n selectionChanged = true;\n }\n function setCursor(line, ch, user) {\n var pos = clipPos({line: line, ch: ch || 0});\n (user ? setSelectionUser : setSelection)(pos, pos);\n }\n\n function clipLine(n) {return Math.max(0, Math.min(n, lines.length-1));}\n function clipPos(pos) {\n if (pos.line < 0) return {line: 0, ch: 0};\n if (pos.line >= lines.length) return {line: lines.length-1, ch: lines[lines.length-1].text.length};\n var ch = pos.ch, linelen = lines[pos.line].text.length;\n if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};\n else if (ch < 0) return {line: pos.line, ch: 0};\n else return pos;\n }\n\n function scrollPage(down) {\n var linesPerPage = Math.floor(scroller.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to;\n setCursor(head.line + (Math.max(linesPerPage - 1, 1) * (down ? 1 : -1)), head.ch, true);\n }\n function scrollEnd(top) {\n var pos = top ? {line: 0, ch: 0} : {line: lines.length - 1, ch: lines[lines.length-1].text.length};\n setSelectionUser(pos, pos);\n }\n function selectAll() {\n var endLine = lines.length - 1;\n setSelection({line: 0, ch: 0}, {line: endLine, ch: lines[endLine].text.length});\n }\n function selectWordAt(pos) {\n var line = lines[pos.line].text;\n var start = pos.ch, end = pos.ch;\n while (start > 0 && /\\w/.test(line.charAt(start - 1))) --start;\n while (end < line.length && /\\w/.test(line.charAt(end))) ++end;\n setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});\n }\n function selectLine(line) {\n setSelectionUser({line: line, ch: 0}, {line: line, ch: lines[line].text.length});\n }\n function handleEnter() {\n replaceSelection(\"\\n\", \"end\");\n if (options.enterMode != \"flat\")\n indentLine(sel.from.line, options.enterMode == \"keep\" ? \"prev\" : \"smart\");\n }\n function handleTab(shift) {\n function indentSelected(mode) {\n if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);\n var e = sel.to.line - (sel.to.ch ? 0 : 1);\n for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);\n }\n shiftSelecting = null;\n switch (options.tabMode) {\n case \"default\":\n return false;\n case \"indent\":\n indentSelected(\"smart\");\n break;\n case \"classic\":\n if (posEq(sel.from, sel.to)) {\n if (shift) indentLine(sel.from.line, \"smart\");\n else replaceSelection(\"\\t\", \"end\");\n break;\n }\n case \"shift\":\n indentSelected(shift ? \"subtract\" : \"add\");\n break;\n }\n return true;\n }\n function smartHome() {\n var firstNonWS = Math.max(0, lines[sel.from.line].text.search(/\\S/));\n setCursor(sel.from.line, sel.from.ch <= firstNonWS && sel.from.ch ? 0 : firstNonWS, true);\n }\n\n function indentLine(n, how) {\n if (how == \"smart\") {\n if (!mode.indent) how = \"prev\";\n else var state = getStateBefore(n);\n }\n\n var line = lines[n], curSpace = line.indentation(), curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (how == \"prev\") {\n if (n) indentation = lines[n-1].indentation();\n else indentation = 0;\n }\n else if (how == \"smart\") indentation = mode.indent(state, line.text.slice(curSpaceString.length));\n else if (how == \"add\") indentation = curSpace + options.indentUnit;\n else if (how == \"subtract\") indentation = curSpace - options.indentUnit;\n indentation = Math.max(0, indentation);\n var diff = indentation - curSpace;\n\n if (!diff) {\n if (sel.from.line != n && sel.to.line != n) return;\n var indentString = curSpaceString;\n }\n else {\n var indentString = \"\", pos = 0;\n if (options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n while (pos < indentation) {++pos; indentString += \" \";}\n }\n\n replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});\n }\n\n function loadMode() {\n mode = CodeMirror.getMode(options, options.mode);\n for (var i = 0, l = lines.length; i < l; ++i)\n lines[i].stateAfter = null;\n work = [0];\n startWorker();\n }\n function gutterChanged() {\n var visible = options.gutter || options.lineNumbers;\n gutter.style.display = visible ? \"\" : \"none\";\n if (visible) gutterDirty = true;\n else lineDiv.parentNode.style.marginLeft = 0;\n }\n\n function markText(from, to, className) {\n from = clipPos(from); to = clipPos(to);\n var set = [];\n function add(line, from, to, className) {\n mark = lines[line].addMark(from, to, className, set);\n }\n if (from.line == to.line) add(from.line, from.ch, to.ch, className);\n else {\n add(from.line, from.ch, null, className);\n for (var i = from.line + 1, e = to.line; i < e; ++i)\n add(i, 0, null, className);\n add(to.line, 0, to.ch, className);\n }\n changes.push({from: from.line, to: to.line + 1});\n return new TextMarker(set);\n }\n\n function TextMarker(set) { this.set = set; }\n TextMarker.prototype.clear = operation(function() {\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var mk = this.set[i].marked;\n for (var j = 0; j < mk.length; ++j) {\n if (mk[j].set == this.set) mk.splice(j--, 1);\n }\n }\n // We don't know the exact lines that changed. Refreshing is\n // cheaper than finding them.\n changes.push({from: 0, to: lines.length});\n });\n TextMarker.prototype.find = function() {\n var from, to;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n for (var j = 0; j < mk.length; ++j) {\n var mark = mk[j];\n if (mark.set == this.set) {\n if (mark.from != null || mark.to != null) {\n var found = indexOf(lines, line);\n if (found > -1) {\n if (mark.from != null) from = {line: found, ch: mark.from};\n if (mark.to != null) to = {line: found, ch: mark.to};\n }\n }\n }\n }\n }\n return {from: from, to: to};\n };\n\n function addGutterMarker(line, text, className) {\n if (typeof line == \"number\") line = lines[clipLine(line)];\n line.gutterMarker = {text: text, style: className};\n gutterDirty = true;\n return line;\n }\n function removeGutterMarker(line) {\n if (typeof line == \"number\") line = lines[clipLine(line)];\n line.gutterMarker = null;\n gutterDirty = true;\n }\n function setLineClass(line, className) {\n if (typeof line == \"number\") {\n var no = line;\n line = lines[clipLine(line)];\n }\n else {\n var no = indexOf(lines, line);\n if (no == -1) return null;\n }\n if (line.className != className) {\n line.className = className;\n changes.push({from: no, to: no + 1});\n }\n return line;\n }\n\n function lineInfo(line) {\n if (typeof line == \"number\") {\n var n = line;\n line = lines[line];\n if (!line) return null;\n }\n else {\n var n = indexOf(lines, line);\n if (n == -1) return null;\n }\n var marker = line.gutterMarker;\n return {line: n, text: line.text, markerText: marker && marker.text, markerClass: marker && marker.style};\n }\n\n function stringWidth(str) {\n measure.innerHTML = \"<pre><span>x</span></pre>\";\n measure.firstChild.firstChild.firstChild.nodeValue = str;\n return measure.firstChild.firstChild.offsetWidth || 10;\n }\n // These are used to go from pixel positions to character\n // positions, taking varying character widths into account.\n function charX(line, pos) {\n if (pos == 0) return 0;\n measure.innerHTML = \"<pre><span>\" + lines[line].getHTML(null, null, false, pos) + \"</span></pre>\";\n return measure.firstChild.firstChild.offsetWidth;\n }\n function charFromX(line, x) {\n if (x <= 0) return 0;\n var lineObj = lines[line], text = lineObj.text;\n function getX(len) {\n measure.innerHTML = \"<pre><span>\" + lineObj.getHTML(null, null, false, len) + \"</span></pre>\";\n return measure.firstChild.firstChild.offsetWidth;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil(x / stringWidth(\"x\")));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return to;\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return (toX - x > x - fromX) ? from : to;\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n\n function localCoords(pos, inLineWrap) {\n var lh = lineHeight(), line = pos.line - (inLineWrap ? showingFrom : 0);\n return {x: charX(pos.line, pos.ch), y: line * lh, yBot: (line + 1) * lh};\n }\n function pageCoords(pos) {\n var local = localCoords(pos, true), off = eltOffset(lineSpace);\n return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};\n }\n\n function lineHeight() {\n var nlines = lineDiv.childNodes.length;\n if (nlines) return (lineDiv.offsetHeight / nlines) || 1;\n measure.innerHTML = \"<pre>x</pre>\";\n return measure.firstChild.offsetHeight || 1;\n }\n function paddingTop() {return lineSpace.offsetTop;}\n function paddingLeft() {return lineSpace.offsetLeft;}\n\n function posFromMouse(e, liberal) {\n var offW = eltOffset(scroller, true), x, y;\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX; y = e.clientY; } catch (e) { return null; }\n // This is a mess of a heuristic to try and determine whether a\n // scroll-bar was clicked or not, and to return null if one was\n // (and !liberal).\n if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))\n return null;\n var offL = eltOffset(lineSpace, true);\n var line = showingFrom + Math.floor((y - offL.top) / lineHeight());\n return clipPos({line: line, ch: charFromX(clipLine(line), x - offL.left)});\n }\n function onContextMenu(e) {\n var pos = posFromMouse(e);\n if (!pos || window.opera) return; // Opera is difficult.\n if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))\n operation(setCursor)(pos.line, pos.ch);\n\n var oldCSS = input.style.cssText;\n inputDiv.style.position = \"absolute\";\n input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: white; \" +\n \"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n leaveInputAlone = true;\n var val = input.value = getSelection();\n focusInput();\n setSelRange(input, 0, input.value.length);\n function rehide() {\n var newVal = splitLines(input.value).join(\"\\n\");\n if (newVal != val) operation(replaceSelection)(newVal, \"end\");\n inputDiv.style.position = \"relative\";\n input.style.cssText = oldCSS;\n leaveInputAlone = false;\n prepareInput();\n slowPoll();\n }\n\n if (gecko) {\n e_stop(e);\n var mouseup = connect(window, \"mouseup\", function() {\n mouseup();\n setTimeout(rehide, 20);\n }, true);\n }\n else {\n setTimeout(rehide, 50);\n }\n }\n\n // Cursor-blinking\n function restartBlink() {\n clearInterval(blinker);\n var on = true;\n cursor.style.visibility = \"\";\n blinker = setInterval(function() {\n cursor.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, 650);\n }\n\n var matching = {\"(\": \")>\", \")\": \"(<\", \"[\": \"]>\", \"]\": \"[<\", \"{\": \"}>\", \"}\": \"{<\"};\n function matchBrackets(autoclear) {\n var head = sel.inverted ? sel.from : sel.to, line = lines[head.line], pos = head.ch - 1;\n var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];\n if (!match) return;\n var ch = match.charAt(0), forward = match.charAt(1) == \">\", d = forward ? 1 : -1, st = line.styles;\n for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)\n if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}\n\n var stack = [line.text.charAt(pos)], re = /[(){}[\\]]/;\n function scan(line, from, to) {\n if (!line.text) return;\n var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;\n for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {\n var text = st[i];\n if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;}\n for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {\n if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {\n var match = matching[cur];\n if (match.charAt(1) == \">\" == forward) stack.push(cur);\n else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};\n else if (!stack.length) return {pos: pos, match: true};\n }\n }\n }\n }\n for (var i = head.line, e = forward ? Math.min(i + 100, lines.length) : Math.max(-1, i - 100); i != e; i+=d) {\n var line = lines[i], first = i == head.line;\n var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);\n if (found) break;\n }\n if (!found) found = {pos: null, match: false};\n var style = found.match ? \"CodeMirror-matchingbracket\" : \"CodeMirror-nonmatchingbracket\";\n var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),\n two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);\n var clear = operation(function(){one.clear(); two && two.clear();});\n if (autoclear) setTimeout(clear, 800);\n else bracketHighlighted = clear;\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(n) {\n var minindent, minline;\n for (var search = n, lim = n - 40; search > lim; --search) {\n if (search == 0) return 0;\n var line = lines[search-1];\n if (line.stateAfter) return search;\n var indented = line.indentation();\n if (minline == null || minindent > indented) {\n minline = search - 1;\n minindent = indented;\n }\n }\n return minline;\n }\n function getStateBefore(n) {\n var start = findStartLine(n), state = start && lines[start-1].stateAfter;\n if (!state) state = startState(mode);\n else state = copyState(mode, state);\n for (var i = start; i < n; ++i) {\n var line = lines[i];\n line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n }\n changes.push({from: start, to: n});\n if (n < lines.length && !lines[n].stateAfter) work.push(n);\n return state;\n }\n function highlightLines(start, end) {\n var state = getStateBefore(start);\n for (var i = start; i < end; ++i) {\n var line = lines[i];\n line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n }\n }\n function highlightWorker() {\n var end = +new Date + options.workTime;\n var foundWork = work.length;\n while (work.length) {\n if (!lines[showingFrom].stateAfter) var task = showingFrom;\n else var task = work.pop();\n if (task >= lines.length) continue;\n var start = findStartLine(task), state = start && lines[start-1].stateAfter;\n if (state) state = copyState(mode, state);\n else state = startState(mode);\n\n var unchanged = 0, compare = mode.compareStates, realChange = false;\n for (var i = start, l = lines.length; i < l; ++i) {\n var line = lines[i], hadState = line.stateAfter;\n if (+new Date > end) {\n work.push(i);\n startWorker(options.workDelay);\n if (realChange) changes.push({from: task, to: i + 1});\n return;\n }\n var changed = line.highlight(mode, state);\n if (changed) realChange = true;\n line.stateAfter = copyState(mode, state);\n if (compare) {\n if (hadState && compare(hadState, state)) break;\n } else {\n if (changed !== false || !hadState) unchanged = 0;\n else if (++unchanged > 3) break;\n }\n }\n if (realChange) changes.push({from: task, to: i + 1});\n }\n if (foundWork && options.onHighlightComplete)\n options.onHighlightComplete(instance);\n }\n function startWorker(time) {\n if (!work.length) return;\n highlight.set(time, operation(highlightWorker));\n }\n\n // Operations are used to wrap changes in such a way that each\n // change won't have to update the cursor and display (which would\n // be awkward, slow, and error-prone), but instead updates are\n // batched and then all combined and executed at once.\n function startOperation() {\n updateInput = null; changes = []; textChanged = selectionChanged = false;\n }\n function endOperation() {\n var reScroll = false;\n if (selectionChanged) reScroll = !scrollCursorIntoView();\n if (changes.length) updateDisplay(changes);\n else {\n if (selectionChanged) updateCursor();\n if (gutterDirty) updateGutter();\n }\n if (reScroll) scrollCursorIntoView();\n if (selectionChanged) {scrollEditorIntoView(); restartBlink();}\n\n // updateInput can be set to a boolean value to force/prevent an\n // update.\n if (focused && !leaveInputAlone &&\n (updateInput === true || (updateInput !== false && selectionChanged)))\n prepareInput();\n\n if (selectionChanged && options.matchBrackets)\n setTimeout(operation(function() {\n if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}\n matchBrackets(false);\n }), 20);\n var tc = textChanged; // textChanged can be reset by cursoractivity callback\n if (selectionChanged && options.onCursorActivity)\n options.onCursorActivity(instance);\n if (tc && options.onChange && instance)\n options.onChange(instance, tc);\n }\n var nestedOperation = 0;\n function operation(f) {\n return function() {\n if (!nestedOperation++) startOperation();\n try {var result = f.apply(this, arguments);}\n finally {if (!--nestedOperation) endOperation();}\n return result;\n };\n }\n\n function SearchCursor(query, pos, caseFold) {\n this.atOccurrence = false;\n if (caseFold == null) caseFold = typeof query == \"string\" && query == query.toLowerCase();\n\n if (pos && typeof pos == \"object\") pos = clipPos(pos);\n else pos = {line: 0, ch: 0};\n this.pos = {from: pos, to: pos};\n\n // The matches method is filled in based on the type of query.\n // It takes a position and a direction, and returns an object\n // describing the next occurrence of the query, or null if no\n // more matches were found.\n if (typeof query != \"string\") // Regexp match\n this.matches = function(reverse, pos) {\n if (reverse) {\n var line = lines[pos.line].text.slice(0, pos.ch), match = line.match(query), start = 0;\n while (match) {\n var ind = line.indexOf(match[0]);\n start += ind;\n line = line.slice(ind + 1);\n var newmatch = line.match(query);\n if (newmatch) match = newmatch;\n else break;\n start++;\n }\n }\n else {\n var line = lines[pos.line].text.slice(pos.ch), match = line.match(query),\n start = match && pos.ch + line.indexOf(match[0]);\n }\n if (match)\n return {from: {line: pos.line, ch: start},\n to: {line: pos.line, ch: start + match[0].length},\n match: match};\n };\n else { // String query\n if (caseFold) query = query.toLowerCase();\n var fold = caseFold ? function(str){return str.toLowerCase();} : function(str){return str;};\n var target = query.split(\"\\n\");\n // Different methods for single-line and multi-line queries\n if (target.length == 1)\n this.matches = function(reverse, pos) {\n var line = fold(lines[pos.line].text), len = query.length, match;\n if (reverse ? (pos.ch >= len && (match = line.lastIndexOf(query, pos.ch - len)) != -1)\n : (match = line.indexOf(query, pos.ch)) != -1)\n return {from: {line: pos.line, ch: match},\n to: {line: pos.line, ch: match + len}};\n };\n else\n this.matches = function(reverse, pos) {\n var ln = pos.line, idx = (reverse ? target.length - 1 : 0), match = target[idx], line = fold(lines[ln].text);\n var offsetA = (reverse ? line.indexOf(match) + match.length : line.lastIndexOf(match));\n if (reverse ? offsetA >= pos.ch || offsetA != match.length\n : offsetA <= pos.ch || offsetA != line.length - match.length)\n return;\n for (;;) {\n if (reverse ? !ln : ln == lines.length - 1) return;\n line = fold(lines[ln += reverse ? -1 : 1].text);\n match = target[reverse ? --idx : ++idx];\n if (idx > 0 && idx < target.length - 1) {\n if (line != match) return;\n else continue;\n }\n var offsetB = (reverse ? line.lastIndexOf(match) : line.indexOf(match) + match.length);\n if (reverse ? offsetB != line.length - match.length : offsetB != match.length)\n return;\n var start = {line: pos.line, ch: offsetA}, end = {line: ln, ch: offsetB};\n return {from: reverse ? end : start, to: reverse ? start : end};\n }\n };\n }\n }\n\n SearchCursor.prototype = {\n findNext: function() {return this.find(false);},\n findPrevious: function() {return this.find(true);},\n\n find: function(reverse) {\n var self = this, pos = clipPos(reverse ? this.pos.from : this.pos.to);\n function savePosAndFail(line) {\n var pos = {line: line, ch: 0};\n self.pos = {from: pos, to: pos};\n self.atOccurrence = false;\n return false;\n }\n\n for (;;) {\n if (this.pos = this.matches(reverse, pos)) {\n this.atOccurrence = true;\n return this.pos.match || true;\n }\n if (reverse) {\n if (!pos.line) return savePosAndFail(0);\n pos = {line: pos.line-1, ch: lines[pos.line-1].text.length};\n }\n else {\n if (pos.line == lines.length - 1) return savePosAndFail(lines.length);\n pos = {line: pos.line+1, ch: 0};\n }\n }\n },\n\n from: function() {if (this.atOccurrence) return copyPos(this.pos.from);},\n to: function() {if (this.atOccurrence) return copyPos(this.pos.to);},\n\n replace: function(newText) {\n var self = this;\n if (this.atOccurrence)\n operation(function() {\n self.pos.to = replaceRange(newText, self.pos.from, self.pos.to);\n })();\n }\n };\n\n for (var ext in extensions)\n if (extensions.propertyIsEnumerable(ext) &&\n !instance.propertyIsEnumerable(ext))\n instance[ext] = extensions[ext];\n return instance;\n } // (end of function CodeMirror)", "function CodeMirror(place, givenOptions) {\n // Determine effective options based on given values and defaults.\n var options = {}, defaults = CodeMirror.defaults;\n for (var opt in defaults)\n if (defaults.hasOwnProperty(opt))\n options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];\n\n var targetDocument = options[\"document\"];\n // The element in which the editor lives.\n var wrapper = targetDocument.createElement(\"div\");\n wrapper.className = \"CodeMirror\";\n // This mess creates the base DOM structure for the editor.\n wrapper.innerHTML =\n '<div style=\"overflow: hidden; position: relative; width: 1px; height: 0px;\">' + // Wraps and hides input textarea\n '<textarea style=\"position: absolute; width: 2px;\" wrap=\"off\"></textarea></div>' +\n '<div class=\"CodeMirror-scroll cm-s-' + options.theme + '\">' +\n '<div style=\"position: relative\">' + // Set to the height of the text, causes scrolling\n '<div style=\"position: absolute; height: 0; width: 0; overflow: hidden;\"></div>' +\n '<div style=\"position: relative\">' + // Moved around its parent to cover visible view\n '<div class=\"CodeMirror-gutter\"><div class=\"CodeMirror-gutter-text\"></div></div>' +\n // Provides positioning relative to (visible) text origin\n '<div class=\"CodeMirror-lines\"><div style=\"position: relative\">' +\n '<pre class=\"CodeMirror-cursor\">&#160;</pre>' + // Absolutely positioned blinky cursor\n '<div></div>' + // This DIV contains the actual code\n '</div></div></div></div></div>';\n if (place.appendChild) place.appendChild(wrapper); else place(wrapper);\n // I've never seen more elegant code in my life.\n var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,\n scroller = wrapper.lastChild, code = scroller.firstChild,\n measure = code.firstChild, mover = measure.nextSibling,\n gutter = mover.firstChild, gutterText = gutter.firstChild,\n lineSpace = gutter.nextSibling.firstChild,\n cursor = lineSpace.firstChild, lineDiv = cursor.nextSibling;\n if (options.tabindex != null) input.tabindex = options.tabindex;\n if (!options.gutter && !options.lineNumbers) gutter.style.display = \"none\";\n\n // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.\n var poll = new Delayed(), highlight = new Delayed(), blinker;\n\n // mode holds a mode API object. lines an array of Line objects\n // (see Line constructor), work an array of lines that should be\n // parsed, and history the undo history (instance of History\n // constructor).\n var mode, lines = [new Line(\"\")], work, history = new History(), focused;\n loadMode();\n // The selection. These are always maintained to point at valid\n // positions. Inverted is used to remember that the user is\n // selecting bottom-to-top.\n var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};\n // Selection-related flags. shiftSelecting obviously tracks\n // whether the user is holding shift. reducedSelection is a hack\n // to get around the fact that we can't create inverted\n // selections. See below.\n var shiftSelecting, reducedSelection, lastDoubleClick;\n // Variables used by startOperation/endOperation to track what\n // happened during the operation.\n var updateInput, changes, textChanged, selectionChanged, leaveInputAlone;\n // Current visible range (may be bigger than the view window).\n var showingFrom = 0, showingTo = 0, lastHeight = 0, curKeyId = null;\n // editing will hold an object describing the things we put in the\n // textarea, to help figure out whether something changed.\n // bracketHighlighted is used to remember that a backet has been\n // marked.\n var editing, bracketHighlighted;\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n var maxLine = \"\", maxWidth;\n\n // Initialize the content.\n operation(function(){setValue(options.value || \"\"); updateInput = false;})();\n\n // Register our event handlers.\n connect(scroller, \"mousedown\", operation(onMouseDown));\n // Gecko browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for Gecko.\n if (!gecko) connect(scroller, \"contextmenu\", onContextMenu);\n connect(code, \"dblclick\", operation(onDblClick));\n connect(scroller, \"scroll\", function() {updateDisplay([]); if (options.onScroll) options.onScroll(instance);});\n connect(window, \"resize\", function() {updateDisplay(true);});\n connect(input, \"keyup\", operation(onKeyUp));\n connect(input, \"keydown\", operation(onKeyDown));\n connect(input, \"keypress\", operation(onKeyPress));\n connect(input, \"focus\", onFocus);\n connect(input, \"blur\", onBlur);\n\n connect(scroller, \"dragenter\", e_stop);\n connect(scroller, \"dragover\", e_stop);\n connect(scroller, \"drop\", operation(onDrop));\n connect(scroller, \"paste\", function(){focusInput(); fastPoll();});\n connect(input, \"paste\", function(){fastPoll();});\n connect(input, \"cut\", function(){fastPoll();});\n \n // IE throws unspecified error in certain cases, when \n // trying to access activeElement before onload\n var hasFocus; try { hasFocus = (targetDocument.activeElement == input); } catch(e) { }\n if (hasFocus) setTimeout(onFocus, 20);\n else onBlur();\n\n function isLine(l) {return l >= 0 && l < lines.length;}\n // The instance object that we'll return. Mostly calls out to\n // local functions in the CodeMirror function. Some do some extra\n // range checking and/or clipping. operation is used to wrap the\n // call so that changes it makes are tracked, and the display is\n // updated afterwards.\n var instance = {\n getValue: getValue,\n setValue: operation(setValue),\n getSelection: getSelection,\n replaceSelection: operation(replaceSelection),\n focus: function(){focusInput(); onFocus(); fastPoll();},\n setOption: function(option, value) {\n options[option] = value;\n if (option == \"lineNumbers\" || option == \"gutter\") gutterChanged();\n else if (option == \"mode\" || option == \"indentUnit\") loadMode();\n else if (option == \"readOnly\" && value == \"nocursor\") input.blur();\n else if (option == \"theme\") scroller.className = scroller.className.replace(/cm-s-\\w+/, \"cm-s-\" + value);\n },\n getOption: function(option) {return options[option];},\n undo: operation(undo),\n redo: operation(redo),\n indentLine: operation(function(n) {if (isLine(n)) indentLine(n, \"smart\");}),\n historySize: function() {return {undo: history.done.length, redo: history.undone.length};},\n matchBrackets: operation(function(){matchBrackets(true);}),\n getTokenAt: function(pos) {\n pos = clipPos(pos);\n return lines[pos.line].getTokenAt(mode, getStateBefore(pos.line), pos.ch);\n },\n getStateAfter: function(line) {\n line = clipLine(line == null ? lines.length - 1: line);\n return getStateBefore(line + 1);\n },\n cursorCoords: function(start){\n if (start == null) start = sel.inverted;\n return pageCoords(start ? sel.from : sel.to);\n },\n charCoords: function(pos){return pageCoords(clipPos(pos));},\n coordsChar: function(coords) {\n var off = eltOffset(lineSpace);\n var line = clipLine(Math.min(lines.length - 1, showingFrom + Math.floor((coords.y - off.top) / lineHeight())));\n return clipPos({line: line, ch: charFromX(clipLine(line), coords.x - off.left)});\n },\n getSearchCursor: function(query, pos, caseFold) {return new SearchCursor(query, pos, caseFold);},\n markText: operation(function(a, b, c){return operation(markText(a, b, c));}),\n setMarker: addGutterMarker,\n clearMarker: removeGutterMarker,\n setLineClass: operation(setLineClass),\n lineInfo: lineInfo,\n addWidget: function(pos, node, scroll, where) {\n pos = localCoords(clipPos(pos));\n var top = pos.yBot, left = pos.x;\n node.style.position = \"absolute\";\n code.appendChild(node);\n node.style.left = left + \"px\";\n if (where == \"over\") top = pos.y;\n else if (where == \"near\") {\n var vspace = Math.max(scroller.offsetHeight, lines.length * lineHeight()),\n hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();\n if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)\n top = pos.y - node.offsetHeight;\n if (left + node.offsetWidth > hspace)\n left = hspace - node.offsetWidth;\n }\n node.style.top = (top + paddingTop()) + \"px\";\n node.style.left = (left + paddingLeft()) + \"px\";\n if (scroll)\n scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);\n },\n\n lineCount: function() {return lines.length;},\n getCursor: function(start) {\n if (start == null) start = sel.inverted;\n return copyPos(start ? sel.from : sel.to);\n },\n somethingSelected: function() {return !posEq(sel.from, sel.to);},\n setCursor: operation(function(line, ch) {\n if (ch == null && typeof line.line == \"number\") setCursor(line.line, line.ch);\n else setCursor(line, ch);\n }),\n setSelection: operation(function(from, to) {setSelection(clipPos(from), clipPos(to || from));}),\n getLine: function(line) {if (isLine(line)) return lines[line].text;},\n setLine: operation(function(line, text) {\n if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: lines[line].text.length});\n }),\n removeLine: operation(function(line) {\n if (isLine(line)) replaceRange(\"\", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));\n }),\n replaceRange: operation(replaceRange),\n getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},\n\n operation: function(f){return operation(f)();},\n refresh: function(){updateDisplay(true);},\n getInputField: function(){return input;},\n getWrapperElement: function(){return wrapper;},\n getScrollerElement: function(){return scroller;}\n };\n\n function setValue(code) {\n history = null;\n var top = {line: 0, ch: 0};\n updateLines(top, {line: lines.length - 1, ch: lines[lines.length-1].text.length},\n splitLines(code), top, top);\n history = new History();\n }\n function getValue(code) {\n var text = [];\n for (var i = 0, l = lines.length; i < l; ++i)\n text.push(lines[i].text);\n return text.join(\"\\n\");\n }\n\n function onMouseDown(e) {\n // Check whether this is a click in a widget\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == code && n != mover) return;\n var ld = lastDoubleClick; lastDoubleClick = null;\n // First, see if this is a click in the gutter\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) {\n if (options.onGutterClick)\n options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom);\n return e_preventDefault(e);\n }\n\n var start = posFromMouse(e);\n \n switch (e_button(e)) {\n case 3:\n if (gecko && !mac) onContextMenu(e);\n return;\n case 2:\n if (start) setCursor(start.line, start.ch, true);\n return;\n }\n // For button 1, if it was clicked inside the editor\n // (posFromMouse returning non-null), we have to adjust the\n // selection.\n if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}\n\n if (!focused) onFocus();\n e_preventDefault(e);\n if (ld && +new Date - ld < 400) return selectLine(start.line);\n\n setCursor(start.line, start.ch, true);\n var last = start, going;\n // And then we have to see if it's a drag event, in which case\n // the dragged-over text must be selected.\n function end() {\n focusInput();\n updateInput = true;\n move(); up();\n }\n function extend(e) {\n var cur = posFromMouse(e, true);\n if (cur && !posEq(cur, last)) {\n if (!focused) onFocus();\n last = cur;\n setSelectionUser(start, cur);\n updateInput = false;\n var visible = visibleLines();\n if (cur.line >= visible.to || cur.line < visible.from)\n going = setTimeout(operation(function(){extend(e);}), 150);\n }\n }\n\n var move = connect(targetDocument, \"mousemove\", operation(function(e) {\n clearTimeout(going);\n e_preventDefault(e);\n extend(e);\n }), true);\n var up = connect(targetDocument, \"mouseup\", operation(function(e) {\n clearTimeout(going);\n var cur = posFromMouse(e);\n if (cur) setSelectionUser(start, cur);\n e_preventDefault(e);\n end();\n }), true);\n }\n function onDblClick(e) {\n var pos = posFromMouse(e);\n if (!pos) return;\n selectWordAt(pos);\n e_preventDefault(e);\n lastDoubleClick = +new Date;\n }\n function onDrop(e) {\n e.preventDefault();\n var pos = posFromMouse(e, true), files = e.dataTransfer.files;\n if (!pos || options.readOnly) return;\n if (files && files.length && window.FileReader && window.File) {\n function loadFile(file, i) {\n var reader = new FileReader;\n reader.onload = function() {\n text[i] = reader.result;\n if (++read == n) replaceRange(text.join(\"\"), clipPos(pos), clipPos(pos));\n };\n reader.readAsText(file);\n }\n var n = files.length, text = Array(n), read = 0;\n for (var i = 0; i < n; ++i) loadFile(files[i], i);\n }\n else {\n try {\n var text = e.dataTransfer.getData(\"Text\");\n if (text) replaceRange(text, pos, pos);\n }\n catch(e){}\n }\n }\n function onKeyDown(e) {\n if (!focused) onFocus();\n\n var code = e.keyCode;\n // IE does strange things with escape.\n if (ie && code == 27) { e.returnValue = false; }\n // Tries to detect ctrl on non-mac, cmd on mac.\n var mod = (mac ? e.metaKey : e.ctrlKey) && !e.altKey, anyMod = e.ctrlKey || e.altKey || e.metaKey;\n if (code == 16 || e.shiftKey) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);\n else shiftSelecting = null;\n // First give onKeyEvent option a chance to handle this.\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n\n if (code == 33 || code == 34) {scrollPage(code == 34); return e_preventDefault(e);} // page up/down\n if (mod && ((code == 36 || code == 35) || // ctrl-home/end\n mac && (code == 38 || code == 40))) { // cmd-up/down\n scrollEnd(code == 36 || code == 38); return e_preventDefault(e);\n }\n if (mod && code == 65) {selectAll(); return e_preventDefault(e);} // ctrl-a\n if (!options.readOnly) {\n if (!anyMod && code == 13) {return;} // enter\n if (!anyMod && code == 9 && handleTab(e.shiftKey)) return e_preventDefault(e); // tab\n if (mod && code == 90) {undo(); return e_preventDefault(e);} // ctrl-z\n if (mod && ((e.shiftKey && code == 90) || code == 89)) {redo(); return e_preventDefault(e);} // ctrl-shift-z, ctrl-y\n }\n\n // Key id to use in the movementKeys map. We also pass it to\n // fastPoll in order to 'self learn'. We need this because\n // reducedSelection, the hack where we collapse the selection to\n // its start when it is inverted and a movement key is pressed\n // (and later restore it again), shouldn't be used for\n // non-movement keys.\n curKeyId = (mod ? \"c\" : \"\") + code;\n if (sel.inverted && movementKeys.hasOwnProperty(curKeyId)) {\n var range = selRange(input);\n if (range) {\n reducedSelection = {anchor: range.start};\n setSelRange(input, range.start, range.start);\n }\n }\n fastPoll(curKeyId);\n }\n function onKeyUp(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (reducedSelection) {\n reducedSelection = null;\n updateInput = true;\n }\n if (e.keyCode == 16) shiftSelecting = null;\n }\n function onKeyPress(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (options.electricChars && mode.electricChars) {\n var ch = String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode);\n if (mode.electricChars.indexOf(ch) > -1)\n setTimeout(operation(function() {indentLine(sel.to.line, \"smart\");}), 50);\n }\n var code = e.keyCode;\n // Re-stop tab and enter. Necessary on some browsers.\n if (code == 13) {if (!options.readOnly) handleEnter(); e_preventDefault(e);}\n else if (!e.ctrlKey && !e.altKey && !e.metaKey && code == 9 && options.tabMode != \"default\") e_preventDefault(e);\n else fastPoll(curKeyId);\n }\n\n function onFocus() {\n if (options.readOnly == \"nocursor\") return;\n if (!focused) {\n if (options.onFocus) options.onFocus(instance);\n focused = true;\n if (wrapper.className.search(/\\bCodeMirror-focused\\b/) == -1)\n wrapper.className += \" CodeMirror-focused\";\n if (!leaveInputAlone) prepareInput();\n }\n slowPoll();\n restartBlink();\n }\n function onBlur() {\n if (focused) {\n if (options.onBlur) options.onBlur(instance);\n focused = false;\n wrapper.className = wrapper.className.replace(\" CodeMirror-focused\", \"\");\n }\n clearInterval(blinker);\n setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);\n }\n\n // Replace the range from from to to by the strings in newText.\n // Afterwards, set the selection to selFrom, selTo.\n function updateLines(from, to, newText, selFrom, selTo) {\n if (history) {\n var old = [];\n for (var i = from.line, e = to.line + 1; i < e; ++i) old.push(lines[i].text);\n history.addChange(from.line, newText.length, old);\n while (history.done.length > options.undoDepth) history.done.shift();\n }\n updateLinesNoUndo(from, to, newText, selFrom, selTo);\n }\n function unredoHelper(from, to) {\n var change = from.pop();\n if (change) {\n var replaced = [], end = change.start + change.added;\n for (var i = change.start; i < end; ++i) replaced.push(lines[i].text);\n to.push({start: change.start, added: change.old.length, old: replaced});\n var pos = clipPos({line: change.start + change.old.length - 1,\n ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])});\n updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: lines[end-1].text.length}, change.old, pos, pos);\n updateInput = true;\n }\n }\n function undo() {unredoHelper(history.done, history.undone);}\n function redo() {unredoHelper(history.undone, history.done);}\n\n function updateLinesNoUndo(from, to, newText, selFrom, selTo) {\n var recomputeMaxLength = false, maxLineLength = maxLine.length;\n for (var i = from.line; i <= to.line; ++i) {\n if (lines[i].text.length == maxLineLength) {recomputeMaxLength = true; break;}\n }\n\n var nlines = to.line - from.line, firstLine = lines[from.line], lastLine = lines[to.line];\n // First adjust the line structure, taking some care to leave highlighting intact.\n if (firstLine == lastLine) {\n if (newText.length == 1)\n firstLine.replace(from.ch, to.ch, newText[0]);\n else {\n lastLine = firstLine.split(to.ch, newText[newText.length-1]);\n var spliceargs = [from.line + 1, nlines];\n firstLine.replace(from.ch, firstLine.text.length, newText[0]);\n for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i]));\n spliceargs.push(lastLine);\n lines.splice.apply(lines, spliceargs);\n }\n }\n else if (newText.length == 1) {\n firstLine.replace(from.ch, firstLine.text.length, newText[0] + lastLine.text.slice(to.ch));\n lines.splice(from.line + 1, nlines);\n }\n else {\n var spliceargs = [from.line + 1, nlines - 1];\n firstLine.replace(from.ch, firstLine.text.length, newText[0]);\n lastLine.replace(0, to.ch, newText[newText.length-1]);\n for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i]));\n lines.splice.apply(lines, spliceargs);\n }\n\n\n for (var i = from.line, e = i + newText.length; i < e; ++i) {\n var l = lines[i].text;\n if (l.length > maxLineLength) {\n maxLine = l; maxLineLength = l.length; maxWidth = null;\n recomputeMaxLength = false;\n }\n }\n if (recomputeMaxLength) {\n maxLineLength = 0; maxLine = \"\"; maxWidth = null;\n for (var i = 0, e = lines.length; i < e; ++i) {\n var l = lines[i].text;\n if (l.length > maxLineLength) {\n maxLineLength = l.length; maxLine = l;\n }\n }\n }\n\n // Add these lines to the work array, so that they will be\n // highlighted. Adjust work lines if lines were added/removed.\n var newWork = [], lendiff = newText.length - nlines - 1;\n for (var i = 0, l = work.length; i < l; ++i) {\n var task = work[i];\n if (task < from.line) newWork.push(task);\n else if (task > to.line) newWork.push(task + lendiff);\n }\n if (newText.length < 5) {\n highlightLines(from.line, from.line + newText.length);\n newWork.push(from.line + newText.length);\n } else {\n newWork.push(from.line);\n }\n work = newWork;\n startWorker(100);\n // Remember that these lines changed, for updating the display\n changes.push({from: from.line, to: to.line + 1, diff: lendiff});\n textChanged = {from: from, to: to, text: newText};\n\n // Update the selection\n function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}\n setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));\n\n // Make sure the scroll-size div has the correct height.\n code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + \"px\";\n }\n\n function replaceRange(code, from, to) {\n from = clipPos(from);\n if (!to) to = from; else to = clipPos(to);\n code = splitLines(code);\n function adjustPos(pos) {\n if (posLess(pos, from)) return pos;\n if (!posLess(to, pos)) return end;\n var line = pos.line + code.length - (to.line - from.line) - 1;\n var ch = pos.ch;\n if (pos.line == to.line)\n ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));\n return {line: line, ch: ch};\n }\n var end;\n replaceRange1(code, from, to, function(end1) {\n end = end1;\n return {from: adjustPos(sel.from), to: adjustPos(sel.to)};\n });\n return end;\n }\n function replaceSelection(code, collapse) {\n replaceRange1(splitLines(code), sel.from, sel.to, function(end) {\n if (collapse == \"end\") return {from: end, to: end};\n else if (collapse == \"start\") return {from: sel.from, to: sel.from};\n else return {from: sel.from, to: end};\n });\n }\n function replaceRange1(code, from, to, computeSel) {\n var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;\n var newSel = computeSel({line: from.line + code.length - 1, ch: endch});\n updateLines(from, to, code, newSel.from, newSel.to);\n }\n\n function getRange(from, to) {\n var l1 = from.line, l2 = to.line;\n if (l1 == l2) return lines[l1].text.slice(from.ch, to.ch);\n var code = [lines[l1].text.slice(from.ch)];\n for (var i = l1 + 1; i < l2; ++i) code.push(lines[i].text);\n code.push(lines[l2].text.slice(0, to.ch));\n return code.join(\"\\n\");\n }\n function getSelection() {\n return getRange(sel.from, sel.to);\n }\n\n var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll\n function slowPoll() {\n if (pollingFast) return;\n poll.set(2000, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }\n function fastPoll(keyId) {\n var missed = false;\n pollingFast = true;\n function p() {\n startOperation();\n var changed = readInput();\n if (changed == \"moved\" && keyId) movementKeys[keyId] = true;\n if (!changed && !missed) {missed = true; poll.set(80, p);}\n else {pollingFast = false; slowPoll();}\n endOperation();\n }\n poll.set(20, p);\n }\n\n // Inspects the textarea, compares its state (content, selection)\n // to the data in the editing variable, and updates the editor\n // content or cursor if something changed.\n function readInput() {\n if (leaveInputAlone || !focused) return;\n var changed = false, text = input.value, sr = selRange(input);\n if (!sr) return false;\n var changed = editing.text != text, rs = reducedSelection;\n var moved = changed || sr.start != editing.start || sr.end != (rs ? editing.start : editing.end);\n if (!moved && !rs) return false;\n if (changed) {\n shiftSelecting = reducedSelection = null;\n if (options.readOnly) {updateInput = true; return \"changed\";}\n }\n\n // Compute selection start and end based on start/end offsets in textarea\n function computeOffset(n, startLine) {\n var pos = 0;\n for (;;) {\n var found = text.indexOf(\"\\n\", pos);\n if (found == -1 || (text.charAt(found-1) == \"\\r\" ? found - 1 : found) >= n)\n return {line: startLine, ch: n - pos};\n ++startLine;\n pos = found + 1;\n }\n }\n var from = computeOffset(sr.start, editing.from),\n to = computeOffset(sr.end, editing.from);\n // Here we have to take the reducedSelection hack into account,\n // so that you can, for example, press shift-up at the start of\n // your selection and have the right thing happen.\n if (rs) {\n var head = sr.start == rs.anchor ? to : from;\n var tail = shiftSelecting ? sel.to : sr.start == rs.anchor ? from : to;\n if (sel.inverted = posLess(head, tail)) { from = head; to = tail; }\n else { reducedSelection = null; from = tail; to = head; }\n }\n\n // In some cases (cursor on same line as before), we don't have\n // to update the textarea content at all.\n if (from.line == to.line && from.line == sel.from.line && from.line == sel.to.line && !shiftSelecting)\n updateInput = false;\n\n // Magic mess to extract precise edited range from the changed\n // string.\n if (changed) {\n var start = 0, end = text.length, len = Math.min(end, editing.text.length);\n var c, line = editing.from, nl = -1;\n while (start < len && (c = text.charAt(start)) == editing.text.charAt(start)) {\n ++start;\n if (c == \"\\n\") {line++; nl = start;}\n }\n var ch = nl > -1 ? start - nl : start, endline = editing.to - 1, edend = editing.text.length;\n for (;;) {\n c = editing.text.charAt(edend);\n if (text.charAt(end) != c) {++end; ++edend; break;}\n if (c == \"\\n\") endline--;\n if (edend <= start || end <= start) break;\n --end; --edend;\n }\n var nl = editing.text.lastIndexOf(\"\\n\", edend - 1), endch = nl == -1 ? edend : edend - nl - 1;\n updateLines({line: line, ch: ch}, {line: endline, ch: endch}, splitLines(text.slice(start, end)), from, to);\n if (line != endline || from.line != line) updateInput = true;\n }\n else setSelection(from, to);\n\n editing.text = text; editing.start = sr.start; editing.end = sr.end;\n return changed ? \"changed\" : moved ? \"moved\" : false;\n }\n\n // Set the textarea content and selection range to match the\n // editor state.\n function prepareInput() {\n var text = [];\n var from = Math.max(0, sel.from.line - 1), to = Math.min(lines.length, sel.to.line + 2);\n for (var i = from; i < to; ++i) text.push(lines[i].text);\n text = input.value = text.join(lineSep);\n var startch = sel.from.ch, endch = sel.to.ch;\n for (var i = from; i < sel.from.line; ++i)\n startch += lineSep.length + lines[i].text.length;\n for (var i = from; i < sel.to.line; ++i)\n endch += lineSep.length + lines[i].text.length;\n editing = {text: text, from: from, to: to, start: startch, end: endch};\n setSelRange(input, startch, reducedSelection ? startch : endch);\n }\n function focusInput() {\n if (options.readOnly != \"nocursor\") input.focus();\n }\n\n function scrollCursorIntoView() {\n var cursor = localCoords(sel.inverted ? sel.from : sel.to);\n return scrollIntoView(cursor.x, cursor.y, cursor.x, cursor.yBot);\n }\n function scrollIntoView(x1, y1, x2, y2) {\n var pl = paddingLeft(), pt = paddingTop(), lh = lineHeight();\n y1 += pt; y2 += pt; x1 += pl; x2 += pl;\n var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true;\n if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;}\n else if (y2 > screentop + screen) {scroller.scrollTop = y2 + lh - screen; scrolled = true;}\n\n var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;\n if (x1 < screenleft) {\n if (x1 < 50) x1 = 0;\n scroller.scrollLeft = Math.max(0, x1 - 10);\n scrolled = true;\n }\n else if (x2 > screenw + screenleft) {\n scroller.scrollLeft = x2 + 10 - screenw;\n scrolled = true;\n if (x2 > code.clientWidth) result = false;\n }\n if (scrolled && options.onScroll) options.onScroll(instance);\n return result;\n }\n\n function visibleLines() {\n var lh = lineHeight(), top = scroller.scrollTop - paddingTop();\n return {from: Math.min(lines.length, Math.max(0, Math.floor(top / lh))),\n to: Math.min(lines.length, Math.ceil((top + scroller.clientHeight) / lh))};\n }\n // Uses a set of changes plus the current scroll position to\n // determine which DOM updates have to be made, and makes the\n // updates.\n function updateDisplay(changes) {\n if (!scroller.clientWidth) {\n showingFrom = showingTo = 0;\n return;\n }\n // First create a range of theoretically intact lines, and punch\n // holes in that using the change info.\n var intact = changes === true ? [] : [{from: showingFrom, to: showingTo, domStart: 0}];\n for (var i = 0, l = changes.length || 0; i < l; ++i) {\n var change = changes[i], intact2 = [], diff = change.diff || 0;\n for (var j = 0, l2 = intact.length; j < l2; ++j) {\n var range = intact[j];\n if (change.to <= range.from)\n intact2.push({from: range.from + diff, to: range.to + diff, domStart: range.domStart});\n else if (range.to <= change.from)\n intact2.push(range);\n else {\n if (change.from > range.from)\n intact2.push({from: range.from, to: change.from, domStart: range.domStart})\n if (change.to < range.to)\n intact2.push({from: change.to + diff, to: range.to + diff,\n domStart: range.domStart + (change.to - range.from)});\n }\n }\n intact = intact2;\n }\n\n // Then, determine which lines we'd want to see, and which\n // updates have to be made to get there.\n var visible = visibleLines();\n var from = Math.min(showingFrom, Math.max(visible.from - 3, 0)),\n to = Math.min(lines.length, Math.max(showingTo, visible.to + 3)),\n updates = [], domPos = 0, domEnd = showingTo - showingFrom, pos = from, changedLines = 0;\n\n for (var i = 0, l = intact.length; i < l; ++i) {\n var range = intact[i];\n if (range.to <= from) continue;\n if (range.from >= to) break;\n if (range.domStart > domPos || range.from > pos) {\n updates.push({from: pos, to: range.from, domSize: range.domStart - domPos, domStart: domPos});\n changedLines += range.from - pos;\n }\n pos = range.to;\n domPos = range.domStart + (range.to - range.from);\n }\n if (domPos != domEnd || pos != to) {\n changedLines += Math.abs(to - pos);\n updates.push({from: pos, to: to, domSize: domEnd - domPos, domStart: domPos});\n }\n\n if (!updates.length) return;\n lineDiv.style.display = \"none\";\n // If more than 30% of the screen needs update, just do a full\n // redraw (which is quicker than patching)\n if (changedLines > (visible.to - visible.from) * .3)\n refreshDisplay(from = Math.max(visible.from - 10, 0), to = Math.min(visible.to + 7, lines.length));\n // Otherwise, only update the stuff that needs updating.\n else\n patchDisplay(updates);\n lineDiv.style.display = \"\";\n\n // Position the mover div to align with the lines it's supposed\n // to be showing (which will cover the visible display)\n var different = from != showingFrom || to != showingTo || lastHeight != scroller.clientHeight;\n showingFrom = from; showingTo = to;\n mover.style.top = (from * lineHeight()) + \"px\";\n if (different) {\n lastHeight = scroller.clientHeight;\n code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + \"px\";\n updateGutter();\n }\n\n if (maxWidth == null) maxWidth = stringWidth(maxLine);\n if (maxWidth > scroller.clientWidth) {\n lineSpace.style.width = maxWidth + \"px\";\n // Needed to prevent odd wrapping/hiding of widgets placed in here.\n code.style.width = \"\";\n code.style.width = scroller.scrollWidth + \"px\";\n } else {\n lineSpace.style.width = code.style.width = \"\";\n }\n\n // Since this is all rather error prone, it is honoured with the\n // only assertion in the whole file.\n if (lineDiv.childNodes.length != showingTo - showingFrom)\n throw new Error(\"BAD PATCH! \" + JSON.stringify(updates) + \" size=\" + (showingTo - showingFrom) +\n \" nodes=\" + lineDiv.childNodes.length);\n updateCursor();\n }\n\n function refreshDisplay(from, to) {\n var html = [], start = {line: from, ch: 0}, inSel = posLess(sel.from, start) && !posLess(sel.to, start);\n for (var i = from; i < to; ++i) {\n var ch1 = null, ch2 = null;\n if (inSel) {\n ch1 = 0;\n if (sel.to.line == i) {inSel = false; ch2 = sel.to.ch;}\n }\n else if (sel.from.line == i) {\n if (sel.to.line == i) {ch1 = sel.from.ch; ch2 = sel.to.ch;}\n else {inSel = true; ch1 = sel.from.ch;}\n }\n html.push(lines[i].getHTML(ch1, ch2, true));\n }\n lineDiv.innerHTML = html.join(\"\");\n }\n function patchDisplay(updates) {\n // Slightly different algorithm for IE (badInnerHTML), since\n // there .innerHTML on PRE nodes is dumb, and discards\n // whitespace.\n var sfrom = sel.from.line, sto = sel.to.line, off = 0,\n scratch = badInnerHTML && targetDocument.createElement(\"div\");\n for (var i = 0, e = updates.length; i < e; ++i) {\n var rec = updates[i];\n var extra = (rec.to - rec.from) - rec.domSize;\n var nodeAfter = lineDiv.childNodes[rec.domStart + rec.domSize + off] || null;\n if (badInnerHTML)\n for (var j = Math.max(-extra, rec.domSize); j > 0; --j)\n lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);\n else if (extra) {\n for (var j = Math.max(0, extra); j > 0; --j)\n lineDiv.insertBefore(targetDocument.createElement(\"pre\"), nodeAfter);\n for (var j = Math.max(0, -extra); j > 0; --j)\n lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);\n }\n var node = lineDiv.childNodes[rec.domStart + off], inSel = sfrom < rec.from && sto >= rec.from;\n for (var j = rec.from; j < rec.to; ++j) {\n var ch1 = null, ch2 = null;\n if (inSel) {\n ch1 = 0;\n if (sto == j) {inSel = false; ch2 = sel.to.ch;}\n }\n else if (sfrom == j) {\n if (sto == j) {ch1 = sel.from.ch; ch2 = sel.to.ch;}\n else {inSel = true; ch1 = sel.from.ch;}\n }\n if (badInnerHTML) {\n scratch.innerHTML = lines[j].getHTML(ch1, ch2, true);\n lineDiv.insertBefore(scratch.firstChild, nodeAfter);\n }\n else {\n node.innerHTML = lines[j].getHTML(ch1, ch2, false);\n node.className = lines[j].className || \"\";\n node = node.nextSibling;\n }\n }\n off += extra;\n }\n }\n\n function updateGutter() {\n if (!options.gutter && !options.lineNumbers) return;\n var hText = mover.offsetHeight, hEditor = scroller.clientHeight;\n gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + \"px\";\n var html = [];\n for (var i = showingFrom; i < Math.max(showingTo, showingFrom + 1); ++i) {\n var marker = lines[i].gutterMarker;\n var text = options.lineNumbers ? i + options.firstLineNumber : null;\n if (marker && marker.text)\n text = marker.text.replace(\"%N%\", text != null ? text : \"\");\n else if (text == null)\n text = \"\\u00a0\";\n html.push((marker && marker.style ? '<pre class=\"' + marker.style + '\">' : \"<pre>\"), text, \"</pre>\");\n }\n gutter.style.display = \"none\";\n gutterText.innerHTML = html.join(\"\");\n var minwidth = String(lines.length).length, firstNode = gutterText.firstChild, val = eltText(firstNode), pad = \"\";\n while (val.length + pad.length < minwidth) pad += \"\\u00a0\";\n if (pad) firstNode.insertBefore(targetDocument.createTextNode(pad), firstNode.firstChild);\n gutter.style.display = \"\";\n lineSpace.style.marginLeft = gutter.offsetWidth + \"px\";\n }\n function updateCursor() {\n var head = sel.inverted ? sel.from : sel.to, lh = lineHeight();\n var x = charX(head.line, head.ch) + \"px\", y = (head.line - showingFrom) * lh + \"px\";\n inputDiv.style.top = (head.line * lh - scroller.scrollTop) + \"px\";\n if (posEq(sel.from, sel.to)) {\n cursor.style.top = y; cursor.style.left = x;\n cursor.style.display = \"\";\n }\n else cursor.style.display = \"none\";\n }\n\n function setSelectionUser(from, to) {\n var sh = shiftSelecting && clipPos(shiftSelecting);\n if (sh) {\n if (posLess(sh, from)) from = sh;\n else if (posLess(to, sh)) to = sh;\n }\n setSelection(from, to);\n }\n // Update the selection. Last two args are only used by\n // updateLines, since they have to be expressed in the line\n // numbers before the update.\n function setSelection(from, to, oldFrom, oldTo) {\n if (posEq(sel.from, from) && posEq(sel.to, to)) return;\n if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}\n\n if (posEq(from, to)) sel.inverted = false;\n else if (posEq(from, sel.to)) sel.inverted = false;\n else if (posEq(to, sel.from)) sel.inverted = true;\n\n // Some ugly logic used to only mark the lines that actually did\n // see a change in selection as changed, rather than the whole\n // selected range.\n if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}\n if (posEq(from, to)) {\n if (!posEq(sel.from, sel.to))\n changes.push({from: oldFrom, to: oldTo + 1});\n }\n else if (posEq(sel.from, sel.to)) {\n changes.push({from: from.line, to: to.line + 1});\n }\n else {\n if (!posEq(from, sel.from)) {\n if (from.line < oldFrom)\n changes.push({from: from.line, to: Math.min(to.line, oldFrom) + 1});\n else\n changes.push({from: oldFrom, to: Math.min(oldTo, from.line) + 1});\n }\n if (!posEq(to, sel.to)) {\n if (to.line < oldTo)\n changes.push({from: Math.max(oldFrom, from.line), to: oldTo + 1});\n else\n changes.push({from: Math.max(from.line, oldTo), to: to.line + 1});\n }\n }\n sel.from = from; sel.to = to;\n selectionChanged = true;\n }\n function setCursor(line, ch, user) {\n var pos = clipPos({line: line, ch: ch || 0});\n (user ? setSelectionUser : setSelection)(pos, pos);\n }\n\n function clipLine(n) {return Math.max(0, Math.min(n, lines.length-1));}\n function clipPos(pos) {\n if (pos.line < 0) return {line: 0, ch: 0};\n if (pos.line >= lines.length) return {line: lines.length-1, ch: lines[lines.length-1].text.length};\n var ch = pos.ch, linelen = lines[pos.line].text.length;\n if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};\n else if (ch < 0) return {line: pos.line, ch: 0};\n else return pos;\n }\n\n function scrollPage(down) {\n var linesPerPage = Math.floor(scroller.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to;\n setCursor(head.line + (Math.max(linesPerPage - 1, 1) * (down ? 1 : -1)), head.ch, true);\n }\n function scrollEnd(top) {\n var pos = top ? {line: 0, ch: 0} : {line: lines.length - 1, ch: lines[lines.length-1].text.length};\n setSelectionUser(pos, pos);\n }\n function selectAll() {\n var endLine = lines.length - 1;\n setSelection({line: 0, ch: 0}, {line: endLine, ch: lines[endLine].text.length});\n }\n function selectWordAt(pos) {\n var line = lines[pos.line].text;\n var start = pos.ch, end = pos.ch;\n while (start > 0 && /\\w/.test(line.charAt(start - 1))) --start;\n while (end < line.length && /\\w/.test(line.charAt(end))) ++end;\n setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});\n }\n function selectLine(line) {\n setSelectionUser({line: line, ch: 0}, {line: line, ch: lines[line].text.length});\n }\n function handleEnter() {\n replaceSelection(\"\\n\", \"end\");\n if (options.enterMode != \"flat\")\n indentLine(sel.from.line, options.enterMode == \"keep\" ? \"prev\" : \"smart\");\n }\n function handleTab(shift) {\n function indentSelected(mode) {\n if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);\n var e = sel.to.line - (sel.to.ch ? 0 : 1);\n for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);\n }\n shiftSelecting = null;\n switch (options.tabMode) {\n case \"default\":\n return false;\n case \"indent\":\n indentSelected(\"smart\");\n break;\n case \"classic\":\n if (posEq(sel.from, sel.to)) {\n if (shift) indentLine(sel.from.line, \"smart\");\n else replaceSelection(\"\\t\", \"end\");\n break;\n }\n case \"shift\":\n indentSelected(shift ? \"subtract\" : \"add\");\n break;\n }\n return true;\n }\n\n function indentLine(n, how) {\n if (how == \"smart\") {\n if (!mode.indent) how = \"prev\";\n else var state = getStateBefore(n);\n }\n\n var line = lines[n], curSpace = line.indentation(), curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (how == \"prev\") {\n if (n) indentation = lines[n-1].indentation();\n else indentation = 0;\n }\n else if (how == \"smart\") indentation = mode.indent(state, line.text.slice(curSpaceString.length));\n else if (how == \"add\") indentation = curSpace + options.indentUnit;\n else if (how == \"subtract\") indentation = curSpace - options.indentUnit;\n indentation = Math.max(0, indentation);\n var diff = indentation - curSpace;\n\n if (!diff) {\n if (sel.from.line != n && sel.to.line != n) return;\n var indentString = curSpaceString;\n }\n else {\n var indentString = \"\", pos = 0;\n if (options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n while (pos < indentation) {++pos; indentString += \" \";}\n }\n\n replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});\n }\n\n function loadMode() {\n mode = CodeMirror.getMode(options, options.mode);\n for (var i = 0, l = lines.length; i < l; ++i)\n lines[i].stateAfter = null;\n work = [0];\n startWorker();\n }\n function gutterChanged() {\n var visible = options.gutter || options.lineNumbers;\n gutter.style.display = visible ? \"\" : \"none\";\n if (visible) updateGutter();\n else lineDiv.parentNode.style.marginLeft = 0;\n }\n\n function markText(from, to, className) {\n from = clipPos(from); to = clipPos(to);\n var accum = [];\n function add(line, from, to, className) {\n var line = lines[line], mark = line.addMark(from, to, className);\n mark.line = line;\n accum.push(mark);\n }\n if (from.line == to.line) add(from.line, from.ch, to.ch, className);\n else {\n add(from.line, from.ch, null, className);\n for (var i = from.line + 1, e = to.line; i < e; ++i)\n add(i, 0, null, className);\n add(to.line, 0, to.ch, className);\n }\n changes.push({from: from.line, to: to.line + 1});\n return function() {\n var start, end;\n for (var i = 0; i < accum.length; ++i) {\n var mark = accum[i], found = indexOf(lines, mark.line);\n mark.line.removeMark(mark);\n if (found > -1) {\n if (start == null) start = found;\n end = found;\n }\n }\n if (start != null) changes.push({from: start, to: end + 1});\n };\n }\n\n function addGutterMarker(line, text, className) {\n if (typeof line == \"number\") line = lines[clipLine(line)];\n line.gutterMarker = {text: text, style: className};\n updateGutter();\n return line;\n }\n function removeGutterMarker(line) {\n if (typeof line == \"number\") line = lines[clipLine(line)];\n line.gutterMarker = null;\n updateGutter();\n }\n function setLineClass(line, className) {\n if (typeof line == \"number\") {\n var no = line;\n line = lines[clipLine(line)];\n }\n else {\n var no = indexOf(lines, line);\n if (no == -1) return null;\n }\n if (line.className != className) {\n line.className = className;\n changes.push({from: no, to: no + 1});\n }\n return line;\n }\n\n function lineInfo(line) {\n if (typeof line == \"number\") {\n var n = line;\n line = lines[line];\n if (!line) return null;\n }\n else {\n var n = indexOf(lines, line);\n if (n == -1) return null;\n }\n var marker = line.gutterMarker;\n return {line: n, text: line.text, markerText: marker && marker.text, markerClass: marker && marker.style};\n }\n\n function stringWidth(str) {\n measure.innerHTML = \"<pre><span>x</span></pre>\";\n measure.firstChild.firstChild.firstChild.nodeValue = str;\n return measure.firstChild.firstChild.offsetWidth || 10;\n }\n // These are used to go from pixel positions to character\n // positions, taking varying character widths into account.\n function charX(line, pos) {\n if (pos == 0) return 0;\n measure.innerHTML = \"<pre><span>\" + lines[line].getHTML(null, null, false, pos) + \"</span></pre>\";\n return measure.firstChild.firstChild.offsetWidth;\n }\n function charFromX(line, x) {\n if (x <= 0) return 0;\n var lineObj = lines[line], text = lineObj.text;\n function getX(len) {\n measure.innerHTML = \"<pre><span>\" + lineObj.getHTML(null, null, false, len) + \"</span></pre>\";\n return measure.firstChild.firstChild.offsetWidth;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil(x / stringWidth(\"x\")));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return to;\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return (toX - x > x - fromX) ? from : to;\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n\n function localCoords(pos, inLineWrap) {\n var lh = lineHeight(), line = pos.line - (inLineWrap ? showingFrom : 0);\n return {x: charX(pos.line, pos.ch), y: line * lh, yBot: (line + 1) * lh};\n }\n function pageCoords(pos) {\n var local = localCoords(pos, true), off = eltOffset(lineSpace);\n return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};\n }\n\n function lineHeight() {\n var nlines = lineDiv.childNodes.length;\n if (nlines) return (lineDiv.offsetHeight / nlines) || 1;\n measure.innerHTML = \"<pre>x</pre>\";\n return measure.firstChild.offsetHeight || 1;\n }\n function paddingTop() {return lineSpace.offsetTop;}\n function paddingLeft() {return lineSpace.offsetLeft;}\n\n function posFromMouse(e, liberal) {\n var offW = eltOffset(scroller, true), x, y;\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX; y = e.clientY; } catch (e) { return null; }\n // This is a mess of a heuristic to try and determine whether a\n // scroll-bar was clicked or not, and to return null if one was\n // (and !liberal).\n if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))\n return null;\n var offL = eltOffset(lineSpace, true);\n var line = showingFrom + Math.floor((y - offL.top) / lineHeight());\n return clipPos({line: line, ch: charFromX(clipLine(line), x - offL.left)});\n }\n function onContextMenu(e) {\n var pos = posFromMouse(e);\n if (!pos || window.opera) return; // Opera is difficult.\n if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))\n operation(setCursor)(pos.line, pos.ch);\n\n var oldCSS = input.style.cssText;\n inputDiv.style.position = \"absolute\";\n input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e_pageY(e) - 1) +\n \"px; left: \" + (e_pageX(e) - 1) + \"px; z-index: 1000; background: white; \" +\n \"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n leaveInputAlone = true;\n var val = input.value = getSelection();\n focusInput();\n setSelRange(input, 0, input.value.length);\n function rehide() {\n var newVal = splitLines(input.value).join(\"\\n\");\n if (newVal != val) operation(replaceSelection)(newVal, \"end\");\n inputDiv.style.position = \"relative\";\n input.style.cssText = oldCSS;\n leaveInputAlone = false;\n prepareInput();\n slowPoll();\n }\n \n if (gecko) {\n e_stop(e);\n var mouseup = connect(window, \"mouseup\", function() {\n mouseup();\n setTimeout(rehide, 20);\n }, true);\n }\n else {\n setTimeout(rehide, 50);\n }\n }\n\n // Cursor-blinking\n function restartBlink() {\n clearInterval(blinker);\n var on = true;\n cursor.style.visibility = \"\";\n blinker = setInterval(function() {\n cursor.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, 650);\n }\n\n var matching = {\"(\": \")>\", \")\": \"(<\", \"[\": \"]>\", \"]\": \"[<\", \"{\": \"}>\", \"}\": \"{<\"};\n function matchBrackets(autoclear) {\n var head = sel.inverted ? sel.from : sel.to, line = lines[head.line], pos = head.ch - 1;\n var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];\n if (!match) return;\n var ch = match.charAt(0), forward = match.charAt(1) == \">\", d = forward ? 1 : -1, st = line.styles;\n for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)\n if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}\n\n var stack = [line.text.charAt(pos)], re = /[(){}[\\]]/;\n function scan(line, from, to) {\n if (!line.text) return;\n var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;\n for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {\n var text = st[i];\n if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;}\n for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {\n if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {\n var match = matching[cur];\n if (match.charAt(1) == \">\" == forward) stack.push(cur);\n else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};\n else if (!stack.length) return {pos: pos, match: true};\n }\n }\n }\n }\n for (var i = head.line, e = forward ? Math.min(i + 100, lines.length) : Math.max(-1, i - 100); i != e; i+=d) {\n var line = lines[i], first = i == head.line;\n var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);\n if (found) break;\n }\n if (!found) found = {pos: null, match: false};\n var style = found.match ? \"CodeMirror-matchingbracket\" : \"CodeMirror-nonmatchingbracket\";\n var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),\n two = found.pos != null\n ? markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style)\n : function() {};\n var clear = operation(function(){one(); two();});\n if (autoclear) setTimeout(clear, 800);\n else bracketHighlighted = clear;\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(n) {\n var minindent, minline;\n for (var search = n, lim = n - 40; search > lim; --search) {\n if (search == 0) return 0;\n var line = lines[search-1];\n if (line.stateAfter) return search;\n var indented = line.indentation();\n if (minline == null || minindent > indented) {\n minline = search;\n minindent = indented;\n }\n }\n return minline;\n }\n function getStateBefore(n) {\n var start = findStartLine(n), state = start && lines[start-1].stateAfter;\n if (!state) state = startState(mode);\n else state = copyState(mode, state);\n for (var i = start; i < n; ++i) {\n var line = lines[i];\n line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n }\n if (n < lines.length && !lines[n].stateAfter) work.push(n);\n return state;\n }\n function highlightLines(start, end) {\n var state = getStateBefore(start);\n for (var i = start; i < end; ++i) {\n var line = lines[i];\n line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n }\n }\n function highlightWorker() {\n var end = +new Date + options.workTime;\n var foundWork = work.length;\n while (work.length) {\n if (!lines[showingFrom].stateAfter) var task = showingFrom;\n else var task = work.pop();\n if (task >= lines.length) continue;\n var start = findStartLine(task), state = start && lines[start-1].stateAfter;\n if (state) state = copyState(mode, state);\n else state = startState(mode);\n\n var unchanged = 0, compare = mode.compareStates;\n for (var i = start, l = lines.length; i < l; ++i) {\n var line = lines[i], hadState = line.stateAfter;\n if (+new Date > end) {\n work.push(i);\n startWorker(options.workDelay);\n changes.push({from: task, to: i + 1});\n return;\n }\n var changed = line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n if (compare) {\n if (hadState && compare(hadState, state)) break;\n } else {\n if (changed || !hadState) unchanged = 0;\n else if (++unchanged > 3) break;\n }\n }\n changes.push({from: task, to: i + 1});\n }\n if (foundWork && options.onHighlightComplete)\n options.onHighlightComplete(instance);\n }\n function startWorker(time) {\n if (!work.length) return;\n highlight.set(time, operation(highlightWorker));\n }\n\n // Operations are used to wrap changes in such a way that each\n // change won't have to update the cursor and display (which would\n // be awkward, slow, and error-prone), but instead updates are\n // batched and then all combined and executed at once.\n function startOperation() {\n updateInput = null; changes = []; textChanged = selectionChanged = false;\n }\n function endOperation() {\n var reScroll = false;\n if (selectionChanged) reScroll = !scrollCursorIntoView();\n if (changes.length) updateDisplay(changes);\n else if (selectionChanged) updateCursor();\n if (reScroll) scrollCursorIntoView();\n if (selectionChanged) restartBlink();\n\n // updateInput can be set to a boolean value to force/prevent an\n // update.\n if (focused && !leaveInputAlone &&\n (updateInput === true || (updateInput !== false && selectionChanged)))\n prepareInput();\n\n if (selectionChanged && options.matchBrackets)\n setTimeout(operation(function() {\n if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}\n matchBrackets(false);\n }), 20);\n var tc = textChanged; // textChanged can be reset by cursoractivity callback\n if (selectionChanged && options.onCursorActivity)\n options.onCursorActivity(instance);\n if (tc && options.onChange && instance)\n options.onChange(instance, tc);\n }\n var nestedOperation = 0;\n function operation(f) {\n return function() {\n if (!nestedOperation++) startOperation();\n try {var result = f.apply(this, arguments);}\n finally {if (!--nestedOperation) endOperation();}\n return result;\n };\n }\n\n function SearchCursor(query, pos, caseFold) {\n this.atOccurrence = false;\n if (caseFold == null) caseFold = typeof query == \"string\" && query == query.toLowerCase();\n\n if (pos && typeof pos == \"object\") pos = clipPos(pos);\n else pos = {line: 0, ch: 0};\n this.pos = {from: pos, to: pos};\n\n // The matches method is filled in based on the type of query.\n // It takes a position and a direction, and returns an object\n // describing the next occurrence of the query, or null if no\n // more matches were found.\n if (typeof query != \"string\") // Regexp match\n this.matches = function(reverse, pos) {\n if (reverse) {\n var line = lines[pos.line].text.slice(0, pos.ch), match = line.match(query), start = 0;\n while (match) {\n var ind = line.indexOf(match[0]);\n start += ind;\n line = line.slice(ind + 1);\n var newmatch = line.match(query);\n if (newmatch) match = newmatch;\n else break;\n start++;\n }\n }\n else {\n var line = lines[pos.line].text.slice(pos.ch), match = line.match(query),\n start = match && pos.ch + line.indexOf(match[0]);\n }\n if (match)\n return {from: {line: pos.line, ch: start},\n to: {line: pos.line, ch: start + match[0].length},\n match: match};\n };\n else { // String query\n if (caseFold) query = query.toLowerCase();\n var fold = caseFold ? function(str){return str.toLowerCase();} : function(str){return str;};\n var target = query.split(\"\\n\");\n // Different methods for single-line and multi-line queries\n if (target.length == 1)\n this.matches = function(reverse, pos) {\n var line = fold(lines[pos.line].text), len = query.length, match;\n if (reverse ? (pos.ch >= len && (match = line.lastIndexOf(query, pos.ch - len)) != -1)\n : (match = line.indexOf(query, pos.ch)) != -1)\n return {from: {line: pos.line, ch: match},\n to: {line: pos.line, ch: match + len}};\n };\n else\n this.matches = function(reverse, pos) {\n var ln = pos.line, idx = (reverse ? target.length - 1 : 0), match = target[idx], line = fold(lines[ln].text);\n var offsetA = (reverse ? line.indexOf(match) + match.length : line.lastIndexOf(match));\n if (reverse ? offsetA >= pos.ch || offsetA != match.length\n : offsetA <= pos.ch || offsetA != line.length - match.length)\n return;\n for (;;) {\n if (reverse ? !ln : ln == lines.length - 1) return;\n line = fold(lines[ln += reverse ? -1 : 1].text);\n match = target[reverse ? --idx : ++idx];\n if (idx > 0 && idx < target.length - 1) {\n if (line != match) return;\n else continue;\n }\n var offsetB = (reverse ? line.lastIndexOf(match) : line.indexOf(match) + match.length);\n if (reverse ? offsetB != line.length - match.length : offsetB != match.length)\n return;\n var start = {line: pos.line, ch: offsetA}, end = {line: ln, ch: offsetB};\n return {from: reverse ? end : start, to: reverse ? start : end};\n }\n };\n }\n }\n\n SearchCursor.prototype = {\n findNext: function() {return this.find(false);},\n findPrevious: function() {return this.find(true);},\n\n find: function(reverse) {\n var self = this, pos = clipPos(reverse ? this.pos.from : this.pos.to);\n function savePosAndFail(line) {\n var pos = {line: line, ch: 0};\n self.pos = {from: pos, to: pos};\n self.atOccurrence = false;\n return false;\n }\n\n for (;;) {\n if (this.pos = this.matches(reverse, pos)) {\n this.atOccurrence = true;\n return this.pos.match || true;\n }\n if (reverse) {\n if (!pos.line) return savePosAndFail(0);\n pos = {line: pos.line-1, ch: lines[pos.line-1].text.length};\n }\n else {\n if (pos.line == lines.length - 1) return savePosAndFail(lines.length);\n pos = {line: pos.line+1, ch: 0};\n }\n }\n },\n\n from: function() {if (this.atOccurrence) return copyPos(this.pos.from);},\n to: function() {if (this.atOccurrence) return copyPos(this.pos.to);},\n\n replace: function(newText) {\n var self = this;\n if (this.atOccurrence)\n operation(function() {\n self.pos.to = replaceRange(newText, self.pos.from, self.pos.to);\n })();\n }\n };\n\n for (var ext in extensions)\n if (extensions.propertyIsEnumerable(ext) &&\n !instance.propertyIsEnumerable(ext))\n instance[ext] = extensions[ext];\n return instance;\n } // (end of function CodeMirror)", "function CodeMirror(place, givenOptions) {\n // Determine effective options based on given values and defaults.\n var options = {}, defaults = CodeMirror.defaults;\n for (var opt in defaults)\n if (defaults.hasOwnProperty(opt))\n options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];\n\n var targetDocument = options[\"document\"];\n // The element in which the editor lives.\n var wrapper = targetDocument.createElement(\"div\");\n wrapper.className = \"CodeMirror\";\n // This mess creates the base DOM structure for the editor.\n wrapper.innerHTML =\n '<div style=\"overflow: hidden; position: relative; width: 1px; height: 0px;\">' + // Wraps and hides input textarea\n '<textarea style=\"position: absolute; width: 2px;\" wrap=\"off\"></textarea></div>' +\n '<div class=\"CodeMirror-scroll cm-s-' + options.theme + '\">' +\n '<div style=\"position: relative\">' + // Set to the height of the text, causes scrolling\n '<div style=\"position: absolute; height: 0; width: 0; overflow: hidden;\"></div>' +\n '<div style=\"position: relative\">' + // Moved around its parent to cover visible view\n '<div class=\"CodeMirror-gutter\"><div class=\"CodeMirror-gutter-text\"></div></div>' +\n // Provides positioning relative to (visible) text origin\n '<div class=\"CodeMirror-lines\"><div style=\"position: relative\">' +\n '<pre class=\"CodeMirror-cursor\">&#160;</pre>' + // Absolutely positioned blinky cursor\n '<div></div>' + // This DIV contains the actual code\n '</div></div></div></div></div>';\n if (place.appendChild) place.appendChild(wrapper); else place(wrapper);\n // I've never seen more elegant code in my life.\n var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,\n scroller = wrapper.lastChild, code = scroller.firstChild,\n measure = code.firstChild, mover = measure.nextSibling,\n gutter = mover.firstChild, gutterText = gutter.firstChild,\n lineSpace = gutter.nextSibling.firstChild,\n cursor = lineSpace.firstChild, lineDiv = cursor.nextSibling;\n if (options.tabindex != null) input.tabindex = options.tabindex;\n if (!options.gutter && !options.lineNumbers) gutter.style.display = \"none\";\n\n // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.\n var poll = new Delayed(), highlight = new Delayed(), blinker;\n\n // mode holds a mode API object. lines an array of Line objects\n // (see Line constructor), work an array of lines that should be\n // parsed, and history the undo history (instance of History\n // constructor).\n var mode, lines = [new Line(\"\")], work, history = new History(), focused;\n loadMode();\n // The selection. These are always maintained to point at valid\n // positions. Inverted is used to remember that the user is\n // selecting bottom-to-top.\n var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};\n // Selection-related flags. shiftSelecting obviously tracks\n // whether the user is holding shift. reducedSelection is a hack\n // to get around the fact that we can't create inverted\n // selections. See below.\n var shiftSelecting, reducedSelection, lastDoubleClick;\n // Variables used by startOperation/endOperation to track what\n // happened during the operation.\n var updateInput, changes, textChanged, selectionChanged, leaveInputAlone;\n // Current visible range (may be bigger than the view window).\n var showingFrom = 0, showingTo = 0, lastHeight = 0, curKeyId = null;\n // editing will hold an object describing the things we put in the\n // textarea, to help figure out whether something changed.\n // bracketHighlighted is used to remember that a backet has been\n // marked.\n var editing, bracketHighlighted;\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n var maxLine = \"\", maxWidth;\n\n // Initialize the content.\n operation(function(){setValue(options.value || \"\"); updateInput = false;})();\n\n // Register our event handlers.\n connect(scroller, \"mousedown\", operation(onMouseDown));\n // Gecko browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for Gecko.\n if (!gecko) connect(scroller, \"contextmenu\", onContextMenu);\n connect(code, \"dblclick\", operation(onDblClick));\n connect(scroller, \"scroll\", function() {updateDisplay([]); if (options.onScroll) options.onScroll(instance);});\n connect(window, \"resize\", function() {updateDisplay(true);});\n connect(input, \"keyup\", operation(onKeyUp));\n connect(input, \"keydown\", operation(onKeyDown));\n connect(input, \"keypress\", operation(onKeyPress));\n connect(input, \"focus\", onFocus);\n connect(input, \"blur\", onBlur);\n\n connect(scroller, \"dragenter\", e_stop);\n connect(scroller, \"dragover\", e_stop);\n connect(scroller, \"drop\", operation(onDrop));\n connect(scroller, \"paste\", function(){focusInput(); fastPoll();});\n connect(input, \"paste\", function(){fastPoll();});\n connect(input, \"cut\", function(){fastPoll();});\n \n // IE throws unspecified error in certain cases, when \n // trying to access activeElement before onload\n var hasFocus; try { hasFocus = (targetDocument.activeElement == input); } catch(e) { }\n if (hasFocus) setTimeout(onFocus, 20);\n else onBlur();\n\n function isLine(l) {return l >= 0 && l < lines.length;}\n // The instance object that we'll return. Mostly calls out to\n // local functions in the CodeMirror function. Some do some extra\n // range checking and/or clipping. operation is used to wrap the\n // call so that changes it makes are tracked, and the display is\n // updated afterwards.\n var instance = {\n getValue: getValue,\n setValue: operation(setValue),\n getSelection: getSelection,\n replaceSelection: operation(replaceSelection),\n focus: function(){focusInput(); onFocus(); fastPoll();},\n setOption: function(option, value) {\n options[option] = value;\n if (option == \"lineNumbers\" || option == \"gutter\") gutterChanged();\n else if (option == \"mode\" || option == \"indentUnit\") loadMode();\n else if (option == \"readOnly\" && value == \"nocursor\") input.blur();\n else if (option == \"theme\") scroller.className = scroller.className.replace(/cm-s-\\w+/, \"cm-s-\" + value);\n },\n getOption: function(option) {return options[option];},\n undo: operation(undo),\n redo: operation(redo),\n indentLine: operation(function(n) {if (isLine(n)) indentLine(n, \"smart\");}),\n historySize: function() {return {undo: history.done.length, redo: history.undone.length};},\n matchBrackets: operation(function(){matchBrackets(true);}),\n getTokenAt: function(pos) {\n pos = clipPos(pos);\n return lines[pos.line].getTokenAt(mode, getStateBefore(pos.line), pos.ch);\n },\n getStateAfter: function(line) {\n line = clipLine(line == null ? lines.length - 1: line);\n return getStateBefore(line + 1);\n },\n cursorCoords: function(start){\n if (start == null) start = sel.inverted;\n return pageCoords(start ? sel.from : sel.to);\n },\n charCoords: function(pos){return pageCoords(clipPos(pos));},\n coordsChar: function(coords) {\n var off = eltOffset(lineSpace);\n var line = clipLine(Math.min(lines.length - 1, showingFrom + Math.floor((coords.y - off.top) / lineHeight())));\n return clipPos({line: line, ch: charFromX(clipLine(line), coords.x - off.left)});\n },\n getSearchCursor: function(query, pos, caseFold) {return new SearchCursor(query, pos, caseFold);},\n markText: operation(function(a, b, c){return operation(markText(a, b, c));}),\n setMarker: addGutterMarker,\n clearMarker: removeGutterMarker,\n setLineClass: operation(setLineClass),\n lineInfo: lineInfo,\n addWidget: function(pos, node, scroll, where) {\n pos = localCoords(clipPos(pos));\n var top = pos.yBot, left = pos.x;\n node.style.position = \"absolute\";\n code.appendChild(node);\n node.style.left = left + \"px\";\n if (where == \"over\") top = pos.y;\n else if (where == \"near\") {\n var vspace = Math.max(scroller.offsetHeight, lines.length * lineHeight()),\n hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();\n if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)\n top = pos.y - node.offsetHeight;\n if (left + node.offsetWidth > hspace)\n left = hspace - node.offsetWidth;\n }\n node.style.top = (top + paddingTop()) + \"px\";\n node.style.left = (left + paddingLeft()) + \"px\";\n if (scroll)\n scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);\n },\n\n lineCount: function() {return lines.length;},\n getCursor: function(start) {\n if (start == null) start = sel.inverted;\n return copyPos(start ? sel.from : sel.to);\n },\n somethingSelected: function() {return !posEq(sel.from, sel.to);},\n setCursor: operation(function(line, ch) {\n if (ch == null && typeof line.line == \"number\") setCursor(line.line, line.ch);\n else setCursor(line, ch);\n }),\n setSelection: operation(function(from, to) {setSelection(clipPos(from), clipPos(to || from));}),\n getLine: function(line) {if (isLine(line)) return lines[line].text;},\n setLine: operation(function(line, text) {\n if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: lines[line].text.length});\n }),\n removeLine: operation(function(line) {\n if (isLine(line)) replaceRange(\"\", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));\n }),\n replaceRange: operation(replaceRange),\n getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},\n\n operation: function(f){return operation(f)();},\n refresh: function(){updateDisplay(true);},\n getInputField: function(){return input;},\n getWrapperElement: function(){return wrapper;},\n getScrollerElement: function(){return scroller;}\n };\n\n function setValue(code) {\n history = null;\n var top = {line: 0, ch: 0};\n updateLines(top, {line: lines.length - 1, ch: lines[lines.length-1].text.length},\n splitLines(code), top, top);\n history = new History();\n }\n function getValue(code) {\n var text = [];\n for (var i = 0, l = lines.length; i < l; ++i)\n text.push(lines[i].text);\n return text.join(\"\\n\");\n }\n\n function onMouseDown(e) {\n // Check whether this is a click in a widget\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == code && n != mover) return;\n var ld = lastDoubleClick; lastDoubleClick = null;\n // First, see if this is a click in the gutter\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) {\n if (options.onGutterClick)\n options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom);\n return e_preventDefault(e);\n }\n\n var start = posFromMouse(e);\n \n switch (e_button(e)) {\n case 3:\n if (gecko && !mac) onContextMenu(e);\n return;\n case 2:\n if (start) setCursor(start.line, start.ch, true);\n return;\n }\n // For button 1, if it was clicked inside the editor\n // (posFromMouse returning non-null), we have to adjust the\n // selection.\n if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}\n\n if (!focused) onFocus();\n e_preventDefault(e);\n if (ld && +new Date - ld < 400) return selectLine(start.line);\n\n setCursor(start.line, start.ch, true);\n var last = start, going;\n // And then we have to see if it's a drag event, in which case\n // the dragged-over text must be selected.\n function end() {\n focusInput();\n updateInput = true;\n move(); up();\n }\n function extend(e) {\n var cur = posFromMouse(e, true);\n if (cur && !posEq(cur, last)) {\n if (!focused) onFocus();\n last = cur;\n setSelectionUser(start, cur);\n updateInput = false;\n var visible = visibleLines();\n if (cur.line >= visible.to || cur.line < visible.from)\n going = setTimeout(operation(function(){extend(e);}), 150);\n }\n }\n\n var move = connect(targetDocument, \"mousemove\", operation(function(e) {\n clearTimeout(going);\n e_preventDefault(e);\n extend(e);\n }), true);\n var up = connect(targetDocument, \"mouseup\", operation(function(e) {\n clearTimeout(going);\n var cur = posFromMouse(e);\n if (cur) setSelectionUser(start, cur);\n e_preventDefault(e);\n end();\n }), true);\n }\n function onDblClick(e) {\n var pos = posFromMouse(e);\n if (!pos) return;\n selectWordAt(pos);\n e_preventDefault(e);\n lastDoubleClick = +new Date;\n }\n function onDrop(e) {\n e.preventDefault();\n var pos = posFromMouse(e, true), files = e.dataTransfer.files;\n if (!pos || options.readOnly) return;\n if (files && files.length && window.FileReader && window.File) {\n function loadFile(file, i) {\n var reader = new FileReader;\n reader.onload = function() {\n text[i] = reader.result;\n if (++read == n) replaceRange(text.join(\"\"), clipPos(pos), clipPos(pos));\n };\n reader.readAsText(file);\n }\n var n = files.length, text = Array(n), read = 0;\n for (var i = 0; i < n; ++i) loadFile(files[i], i);\n }\n else {\n try {\n var text = e.dataTransfer.getData(\"Text\");\n if (text) replaceRange(text, pos, pos);\n }\n catch(e){}\n }\n }\n function onKeyDown(e) {\n if (!focused) onFocus();\n\n var code = e.keyCode;\n // IE does strange things with escape.\n if (ie && code == 27) { e.returnValue = false; }\n // Tries to detect ctrl on non-mac, cmd on mac.\n var mod = (mac ? e.metaKey : e.ctrlKey) && !e.altKey, anyMod = e.ctrlKey || e.altKey || e.metaKey;\n if (code == 16 || e.shiftKey) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);\n else shiftSelecting = null;\n // First give onKeyEvent option a chance to handle this.\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n\n if (code == 33 || code == 34) {scrollPage(code == 34); return e_preventDefault(e);} // page up/down\n if (mod && ((code == 36 || code == 35) || // ctrl-home/end\n mac && (code == 38 || code == 40))) { // cmd-up/down\n scrollEnd(code == 36 || code == 38); return e_preventDefault(e);\n }\n if (mod && code == 65) {selectAll(); return e_preventDefault(e);} // ctrl-a\n if (!options.readOnly) {\n if (!anyMod && code == 13) {return;} // enter\n if (!anyMod && code == 9 && handleTab(e.shiftKey)) return e_preventDefault(e); // tab\n if (mod && code == 90) {undo(); return e_preventDefault(e);} // ctrl-z\n if (mod && ((e.shiftKey && code == 90) || code == 89)) {redo(); return e_preventDefault(e);} // ctrl-shift-z, ctrl-y\n }\n\n // Key id to use in the movementKeys map. We also pass it to\n // fastPoll in order to 'self learn'. We need this because\n // reducedSelection, the hack where we collapse the selection to\n // its start when it is inverted and a movement key is pressed\n // (and later restore it again), shouldn't be used for\n // non-movement keys.\n curKeyId = (mod ? \"c\" : \"\") + code;\n if (sel.inverted && movementKeys.hasOwnProperty(curKeyId)) {\n var range = selRange(input);\n if (range) {\n reducedSelection = {anchor: range.start};\n setSelRange(input, range.start, range.start);\n }\n }\n fastPoll(curKeyId);\n }\n function onKeyUp(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (reducedSelection) {\n reducedSelection = null;\n updateInput = true;\n }\n if (e.keyCode == 16) shiftSelecting = null;\n }\n function onKeyPress(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (options.electricChars && mode.electricChars) {\n var ch = String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode);\n if (mode.electricChars.indexOf(ch) > -1)\n setTimeout(operation(function() {indentLine(sel.to.line, \"smart\");}), 50);\n }\n var code = e.keyCode;\n // Re-stop tab and enter. Necessary on some browsers.\n if (code == 13) {if (!options.readOnly) handleEnter(); e_preventDefault(e);}\n else if (!e.ctrlKey && !e.altKey && !e.metaKey && code == 9 && options.tabMode != \"default\") e_preventDefault(e);\n else fastPoll(curKeyId);\n }\n\n function onFocus() {\n if (options.readOnly == \"nocursor\") return;\n if (!focused) {\n if (options.onFocus) options.onFocus(instance);\n focused = true;\n if (wrapper.className.search(/\\bCodeMirror-focused\\b/) == -1)\n wrapper.className += \" CodeMirror-focused\";\n if (!leaveInputAlone) prepareInput();\n }\n slowPoll();\n restartBlink();\n }\n function onBlur() {\n if (focused) {\n if (options.onBlur) options.onBlur(instance);\n focused = false;\n wrapper.className = wrapper.className.replace(\" CodeMirror-focused\", \"\");\n }\n clearInterval(blinker);\n setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);\n }\n\n // Replace the range from from to to by the strings in newText.\n // Afterwards, set the selection to selFrom, selTo.\n function updateLines(from, to, newText, selFrom, selTo) {\n if (history) {\n var old = [];\n for (var i = from.line, e = to.line + 1; i < e; ++i) old.push(lines[i].text);\n history.addChange(from.line, newText.length, old);\n while (history.done.length > options.undoDepth) history.done.shift();\n }\n updateLinesNoUndo(from, to, newText, selFrom, selTo);\n }\n function unredoHelper(from, to) {\n var change = from.pop();\n if (change) {\n var replaced = [], end = change.start + change.added;\n for (var i = change.start; i < end; ++i) replaced.push(lines[i].text);\n to.push({start: change.start, added: change.old.length, old: replaced});\n var pos = clipPos({line: change.start + change.old.length - 1,\n ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])});\n updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: lines[end-1].text.length}, change.old, pos, pos);\n updateInput = true;\n }\n }\n function undo() {unredoHelper(history.done, history.undone);}\n function redo() {unredoHelper(history.undone, history.done);}\n\n function updateLinesNoUndo(from, to, newText, selFrom, selTo) {\n var recomputeMaxLength = false, maxLineLength = maxLine.length;\n for (var i = from.line; i <= to.line; ++i) {\n if (lines[i].text.length == maxLineLength) {recomputeMaxLength = true; break;}\n }\n\n var nlines = to.line - from.line, firstLine = lines[from.line], lastLine = lines[to.line];\n // First adjust the line structure, taking some care to leave highlighting intact.\n if (firstLine == lastLine) {\n if (newText.length == 1)\n firstLine.replace(from.ch, to.ch, newText[0]);\n else {\n lastLine = firstLine.split(to.ch, newText[newText.length-1]);\n var spliceargs = [from.line + 1, nlines];\n firstLine.replace(from.ch, firstLine.text.length, newText[0]);\n for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i]));\n spliceargs.push(lastLine);\n lines.splice.apply(lines, spliceargs);\n }\n }\n else if (newText.length == 1) {\n firstLine.replace(from.ch, firstLine.text.length, newText[0] + lastLine.text.slice(to.ch));\n lines.splice(from.line + 1, nlines);\n }\n else {\n var spliceargs = [from.line + 1, nlines - 1];\n firstLine.replace(from.ch, firstLine.text.length, newText[0]);\n lastLine.replace(0, to.ch, newText[newText.length-1]);\n for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i]));\n lines.splice.apply(lines, spliceargs);\n }\n\n\n for (var i = from.line, e = i + newText.length; i < e; ++i) {\n var l = lines[i].text;\n if (l.length > maxLineLength) {\n maxLine = l; maxLineLength = l.length; maxWidth = null;\n recomputeMaxLength = false;\n }\n }\n if (recomputeMaxLength) {\n maxLineLength = 0; maxLine = \"\"; maxWidth = null;\n for (var i = 0, e = lines.length; i < e; ++i) {\n var l = lines[i].text;\n if (l.length > maxLineLength) {\n maxLineLength = l.length; maxLine = l;\n }\n }\n }\n\n // Add these lines to the work array, so that they will be\n // highlighted. Adjust work lines if lines were added/removed.\n var newWork = [], lendiff = newText.length - nlines - 1;\n for (var i = 0, l = work.length; i < l; ++i) {\n var task = work[i];\n if (task < from.line) newWork.push(task);\n else if (task > to.line) newWork.push(task + lendiff);\n }\n if (newText.length < 5) {\n highlightLines(from.line, from.line + newText.length);\n newWork.push(from.line + newText.length);\n } else {\n newWork.push(from.line);\n }\n work = newWork;\n startWorker(100);\n // Remember that these lines changed, for updating the display\n changes.push({from: from.line, to: to.line + 1, diff: lendiff});\n textChanged = {from: from, to: to, text: newText};\n\n // Update the selection\n function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}\n setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));\n\n // Make sure the scroll-size div has the correct height.\n code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + \"px\";\n }\n\n function replaceRange(code, from, to) {\n from = clipPos(from);\n if (!to) to = from; else to = clipPos(to);\n code = splitLines(code);\n function adjustPos(pos) {\n if (posLess(pos, from)) return pos;\n if (!posLess(to, pos)) return end;\n var line = pos.line + code.length - (to.line - from.line) - 1;\n var ch = pos.ch;\n if (pos.line == to.line)\n ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));\n return {line: line, ch: ch};\n }\n var end;\n replaceRange1(code, from, to, function(end1) {\n end = end1;\n return {from: adjustPos(sel.from), to: adjustPos(sel.to)};\n });\n return end;\n }\n function replaceSelection(code, collapse) {\n replaceRange1(splitLines(code), sel.from, sel.to, function(end) {\n if (collapse == \"end\") return {from: end, to: end};\n else if (collapse == \"start\") return {from: sel.from, to: sel.from};\n else return {from: sel.from, to: end};\n });\n }\n function replaceRange1(code, from, to, computeSel) {\n var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;\n var newSel = computeSel({line: from.line + code.length - 1, ch: endch});\n updateLines(from, to, code, newSel.from, newSel.to);\n }\n\n function getRange(from, to) {\n var l1 = from.line, l2 = to.line;\n if (l1 == l2) return lines[l1].text.slice(from.ch, to.ch);\n var code = [lines[l1].text.slice(from.ch)];\n for (var i = l1 + 1; i < l2; ++i) code.push(lines[i].text);\n code.push(lines[l2].text.slice(0, to.ch));\n return code.join(\"\\n\");\n }\n function getSelection() {\n return getRange(sel.from, sel.to);\n }\n\n var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll\n function slowPoll() {\n if (pollingFast) return;\n poll.set(2000, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }\n function fastPoll(keyId) {\n var missed = false;\n pollingFast = true;\n function p() {\n startOperation();\n var changed = readInput();\n if (changed == \"moved\" && keyId) movementKeys[keyId] = true;\n if (!changed && !missed) {missed = true; poll.set(80, p);}\n else {pollingFast = false; slowPoll();}\n endOperation();\n }\n poll.set(20, p);\n }\n\n // Inspects the textarea, compares its state (content, selection)\n // to the data in the editing variable, and updates the editor\n // content or cursor if something changed.\n function readInput() {\n if (leaveInputAlone || !focused) return;\n var changed = false, text = input.value, sr = selRange(input);\n if (!sr) return false;\n var changed = editing.text != text, rs = reducedSelection;\n var moved = changed || sr.start != editing.start || sr.end != (rs ? editing.start : editing.end);\n if (!moved && !rs) return false;\n if (changed) {\n shiftSelecting = reducedSelection = null;\n if (options.readOnly) {updateInput = true; return \"changed\";}\n }\n\n // Compute selection start and end based on start/end offsets in textarea\n function computeOffset(n, startLine) {\n var pos = 0;\n for (;;) {\n var found = text.indexOf(\"\\n\", pos);\n if (found == -1 || (text.charAt(found-1) == \"\\r\" ? found - 1 : found) >= n)\n return {line: startLine, ch: n - pos};\n ++startLine;\n pos = found + 1;\n }\n }\n var from = computeOffset(sr.start, editing.from),\n to = computeOffset(sr.end, editing.from);\n // Here we have to take the reducedSelection hack into account,\n // so that you can, for example, press shift-up at the start of\n // your selection and have the right thing happen.\n if (rs) {\n var head = sr.start == rs.anchor ? to : from;\n var tail = shiftSelecting ? sel.to : sr.start == rs.anchor ? from : to;\n if (sel.inverted = posLess(head, tail)) { from = head; to = tail; }\n else { reducedSelection = null; from = tail; to = head; }\n }\n\n // In some cases (cursor on same line as before), we don't have\n // to update the textarea content at all.\n if (from.line == to.line && from.line == sel.from.line && from.line == sel.to.line && !shiftSelecting)\n updateInput = false;\n\n // Magic mess to extract precise edited range from the changed\n // string.\n if (changed) {\n var start = 0, end = text.length, len = Math.min(end, editing.text.length);\n var c, line = editing.from, nl = -1;\n while (start < len && (c = text.charAt(start)) == editing.text.charAt(start)) {\n ++start;\n if (c == \"\\n\") {line++; nl = start;}\n }\n var ch = nl > -1 ? start - nl : start, endline = editing.to - 1, edend = editing.text.length;\n for (;;) {\n c = editing.text.charAt(edend);\n if (text.charAt(end) != c) {++end; ++edend; break;}\n if (c == \"\\n\") endline--;\n if (edend <= start || end <= start) break;\n --end; --edend;\n }\n var nl = editing.text.lastIndexOf(\"\\n\", edend - 1), endch = nl == -1 ? edend : edend - nl - 1;\n updateLines({line: line, ch: ch}, {line: endline, ch: endch}, splitLines(text.slice(start, end)), from, to);\n if (line != endline || from.line != line) updateInput = true;\n }\n else setSelection(from, to);\n\n editing.text = text; editing.start = sr.start; editing.end = sr.end;\n return changed ? \"changed\" : moved ? \"moved\" : false;\n }\n\n // Set the textarea content and selection range to match the\n // editor state.\n function prepareInput() {\n var text = [];\n var from = Math.max(0, sel.from.line - 1), to = Math.min(lines.length, sel.to.line + 2);\n for (var i = from; i < to; ++i) text.push(lines[i].text);\n text = input.value = text.join(lineSep);\n var startch = sel.from.ch, endch = sel.to.ch;\n for (var i = from; i < sel.from.line; ++i)\n startch += lineSep.length + lines[i].text.length;\n for (var i = from; i < sel.to.line; ++i)\n endch += lineSep.length + lines[i].text.length;\n editing = {text: text, from: from, to: to, start: startch, end: endch};\n setSelRange(input, startch, reducedSelection ? startch : endch);\n }\n function focusInput() {\n if (options.readOnly != \"nocursor\") input.focus();\n }\n\n function scrollCursorIntoView() {\n var cursor = localCoords(sel.inverted ? sel.from : sel.to);\n return scrollIntoView(cursor.x, cursor.y, cursor.x, cursor.yBot);\n }\n function scrollIntoView(x1, y1, x2, y2) {\n var pl = paddingLeft(), pt = paddingTop(), lh = lineHeight();\n y1 += pt; y2 += pt; x1 += pl; x2 += pl;\n var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true;\n if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;}\n else if (y2 > screentop + screen) {scroller.scrollTop = y2 + lh - screen; scrolled = true;}\n\n var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;\n if (x1 < screenleft) {\n if (x1 < 50) x1 = 0;\n scroller.scrollLeft = Math.max(0, x1 - 10);\n scrolled = true;\n }\n else if (x2 > screenw + screenleft) {\n scroller.scrollLeft = x2 + 10 - screenw;\n scrolled = true;\n if (x2 > code.clientWidth) result = false;\n }\n if (scrolled && options.onScroll) options.onScroll(instance);\n return result;\n }\n\n function visibleLines() {\n var lh = lineHeight(), top = scroller.scrollTop - paddingTop();\n return {from: Math.min(lines.length, Math.max(0, Math.floor(top / lh))),\n to: Math.min(lines.length, Math.ceil((top + scroller.clientHeight) / lh))};\n }\n // Uses a set of changes plus the current scroll position to\n // determine which DOM updates have to be made, and makes the\n // updates.\n function updateDisplay(changes) {\n if (!scroller.clientWidth) {\n showingFrom = showingTo = 0;\n return;\n }\n // First create a range of theoretically intact lines, and punch\n // holes in that using the change info.\n var intact = changes === true ? [] : [{from: showingFrom, to: showingTo, domStart: 0}];\n for (var i = 0, l = changes.length || 0; i < l; ++i) {\n var change = changes[i], intact2 = [], diff = change.diff || 0;\n for (var j = 0, l2 = intact.length; j < l2; ++j) {\n var range = intact[j];\n if (change.to <= range.from)\n intact2.push({from: range.from + diff, to: range.to + diff, domStart: range.domStart});\n else if (range.to <= change.from)\n intact2.push(range);\n else {\n if (change.from > range.from)\n intact2.push({from: range.from, to: change.from, domStart: range.domStart})\n if (change.to < range.to)\n intact2.push({from: change.to + diff, to: range.to + diff,\n domStart: range.domStart + (change.to - range.from)});\n }\n }\n intact = intact2;\n }\n\n // Then, determine which lines we'd want to see, and which\n // updates have to be made to get there.\n var visible = visibleLines();\n var from = Math.min(showingFrom, Math.max(visible.from - 3, 0)),\n to = Math.min(lines.length, Math.max(showingTo, visible.to + 3)),\n updates = [], domPos = 0, domEnd = showingTo - showingFrom, pos = from, changedLines = 0;\n\n for (var i = 0, l = intact.length; i < l; ++i) {\n var range = intact[i];\n if (range.to <= from) continue;\n if (range.from >= to) break;\n if (range.domStart > domPos || range.from > pos) {\n updates.push({from: pos, to: range.from, domSize: range.domStart - domPos, domStart: domPos});\n changedLines += range.from - pos;\n }\n pos = range.to;\n domPos = range.domStart + (range.to - range.from);\n }\n if (domPos != domEnd || pos != to) {\n changedLines += Math.abs(to - pos);\n updates.push({from: pos, to: to, domSize: domEnd - domPos, domStart: domPos});\n }\n\n if (!updates.length) return;\n lineDiv.style.display = \"none\";\n // If more than 30% of the screen needs update, just do a full\n // redraw (which is quicker than patching)\n if (changedLines > (visible.to - visible.from) * .3)\n refreshDisplay(from = Math.max(visible.from - 10, 0), to = Math.min(visible.to + 7, lines.length));\n // Otherwise, only update the stuff that needs updating.\n else\n patchDisplay(updates);\n lineDiv.style.display = \"\";\n\n // Position the mover div to align with the lines it's supposed\n // to be showing (which will cover the visible display)\n var different = from != showingFrom || to != showingTo || lastHeight != scroller.clientHeight;\n showingFrom = from; showingTo = to;\n mover.style.top = (from * lineHeight()) + \"px\";\n if (different) {\n lastHeight = scroller.clientHeight;\n code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + \"px\";\n updateGutter();\n }\n\n if (maxWidth == null) maxWidth = stringWidth(maxLine);\n if (maxWidth > scroller.clientWidth) {\n lineSpace.style.width = maxWidth + \"px\";\n // Needed to prevent odd wrapping/hiding of widgets placed in here.\n code.style.width = \"\";\n code.style.width = scroller.scrollWidth + \"px\";\n } else {\n lineSpace.style.width = code.style.width = \"\";\n }\n\n // Since this is all rather error prone, it is honoured with the\n // only assertion in the whole file.\n if (lineDiv.childNodes.length != showingTo - showingFrom)\n throw new Error(\"BAD PATCH! \" + JSON.stringify(updates) + \" size=\" + (showingTo - showingFrom) +\n \" nodes=\" + lineDiv.childNodes.length);\n updateCursor();\n }\n\n function refreshDisplay(from, to) {\n var html = [], start = {line: from, ch: 0}, inSel = posLess(sel.from, start) && !posLess(sel.to, start);\n for (var i = from; i < to; ++i) {\n var ch1 = null, ch2 = null;\n if (inSel) {\n ch1 = 0;\n if (sel.to.line == i) {inSel = false; ch2 = sel.to.ch;}\n }\n else if (sel.from.line == i) {\n if (sel.to.line == i) {ch1 = sel.from.ch; ch2 = sel.to.ch;}\n else {inSel = true; ch1 = sel.from.ch;}\n }\n html.push(lines[i].getHTML(ch1, ch2, true));\n }\n lineDiv.innerHTML = html.join(\"\");\n }\n function patchDisplay(updates) {\n // Slightly different algorithm for IE (badInnerHTML), since\n // there .innerHTML on PRE nodes is dumb, and discards\n // whitespace.\n var sfrom = sel.from.line, sto = sel.to.line, off = 0,\n scratch = badInnerHTML && targetDocument.createElement(\"div\");\n for (var i = 0, e = updates.length; i < e; ++i) {\n var rec = updates[i];\n var extra = (rec.to - rec.from) - rec.domSize;\n var nodeAfter = lineDiv.childNodes[rec.domStart + rec.domSize + off] || null;\n if (badInnerHTML)\n for (var j = Math.max(-extra, rec.domSize); j > 0; --j)\n lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);\n else if (extra) {\n for (var j = Math.max(0, extra); j > 0; --j)\n lineDiv.insertBefore(targetDocument.createElement(\"pre\"), nodeAfter);\n for (var j = Math.max(0, -extra); j > 0; --j)\n lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild);\n }\n var node = lineDiv.childNodes[rec.domStart + off], inSel = sfrom < rec.from && sto >= rec.from;\n for (var j = rec.from; j < rec.to; ++j) {\n var ch1 = null, ch2 = null;\n if (inSel) {\n ch1 = 0;\n if (sto == j) {inSel = false; ch2 = sel.to.ch;}\n }\n else if (sfrom == j) {\n if (sto == j) {ch1 = sel.from.ch; ch2 = sel.to.ch;}\n else {inSel = true; ch1 = sel.from.ch;}\n }\n if (badInnerHTML) {\n scratch.innerHTML = lines[j].getHTML(ch1, ch2, true);\n lineDiv.insertBefore(scratch.firstChild, nodeAfter);\n }\n else {\n node.innerHTML = lines[j].getHTML(ch1, ch2, false);\n node.className = lines[j].className || \"\";\n node = node.nextSibling;\n }\n }\n off += extra;\n }\n }\n\n function updateGutter() {\n if (!options.gutter && !options.lineNumbers) return;\n var hText = mover.offsetHeight, hEditor = scroller.clientHeight;\n gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + \"px\";\n var html = [];\n for (var i = showingFrom; i < Math.max(showingTo, showingFrom + 1); ++i) {\n var marker = lines[i].gutterMarker;\n var text = options.lineNumbers ? i + options.firstLineNumber : null;\n if (marker && marker.text)\n text = marker.text.replace(\"%N%\", text != null ? text : \"\");\n else if (text == null)\n text = \"\\u00a0\";\n html.push((marker && marker.style ? '<pre class=\"' + marker.style + '\">' : \"<pre>\"), text, \"</pre>\");\n }\n gutter.style.display = \"none\";\n gutterText.innerHTML = html.join(\"\");\n var minwidth = String(lines.length).length, firstNode = gutterText.firstChild, val = eltText(firstNode), pad = \"\";\n while (val.length + pad.length < minwidth) pad += \"\\u00a0\";\n if (pad) firstNode.insertBefore(targetDocument.createTextNode(pad), firstNode.firstChild);\n gutter.style.display = \"\";\n lineSpace.style.marginLeft = gutter.offsetWidth + \"px\";\n }\n function updateCursor() {\n var head = sel.inverted ? sel.from : sel.to, lh = lineHeight();\n var x = charX(head.line, head.ch) + \"px\", y = (head.line - showingFrom) * lh + \"px\";\n inputDiv.style.top = (head.line * lh - scroller.scrollTop) + \"px\";\n if (posEq(sel.from, sel.to)) {\n cursor.style.top = y; cursor.style.left = x;\n cursor.style.display = \"\";\n }\n else cursor.style.display = \"none\";\n }\n\n function setSelectionUser(from, to) {\n var sh = shiftSelecting && clipPos(shiftSelecting);\n if (sh) {\n if (posLess(sh, from)) from = sh;\n else if (posLess(to, sh)) to = sh;\n }\n setSelection(from, to);\n }\n // Update the selection. Last two args are only used by\n // updateLines, since they have to be expressed in the line\n // numbers before the update.\n function setSelection(from, to, oldFrom, oldTo) {\n if (posEq(sel.from, from) && posEq(sel.to, to)) return;\n if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}\n\n if (posEq(from, to)) sel.inverted = false;\n else if (posEq(from, sel.to)) sel.inverted = false;\n else if (posEq(to, sel.from)) sel.inverted = true;\n\n // Some ugly logic used to only mark the lines that actually did\n // see a change in selection as changed, rather than the whole\n // selected range.\n if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}\n if (posEq(from, to)) {\n if (!posEq(sel.from, sel.to))\n changes.push({from: oldFrom, to: oldTo + 1});\n }\n else if (posEq(sel.from, sel.to)) {\n changes.push({from: from.line, to: to.line + 1});\n }\n else {\n if (!posEq(from, sel.from)) {\n if (from.line < oldFrom)\n changes.push({from: from.line, to: Math.min(to.line, oldFrom) + 1});\n else\n changes.push({from: oldFrom, to: Math.min(oldTo, from.line) + 1});\n }\n if (!posEq(to, sel.to)) {\n if (to.line < oldTo)\n changes.push({from: Math.max(oldFrom, from.line), to: oldTo + 1});\n else\n changes.push({from: Math.max(from.line, oldTo), to: to.line + 1});\n }\n }\n sel.from = from; sel.to = to;\n selectionChanged = true;\n }\n function setCursor(line, ch, user) {\n var pos = clipPos({line: line, ch: ch || 0});\n (user ? setSelectionUser : setSelection)(pos, pos);\n }\n\n function clipLine(n) {return Math.max(0, Math.min(n, lines.length-1));}\n function clipPos(pos) {\n if (pos.line < 0) return {line: 0, ch: 0};\n if (pos.line >= lines.length) return {line: lines.length-1, ch: lines[lines.length-1].text.length};\n var ch = pos.ch, linelen = lines[pos.line].text.length;\n if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};\n else if (ch < 0) return {line: pos.line, ch: 0};\n else return pos;\n }\n\n function scrollPage(down) {\n var linesPerPage = Math.floor(scroller.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to;\n setCursor(head.line + (Math.max(linesPerPage - 1, 1) * (down ? 1 : -1)), head.ch, true);\n }\n function scrollEnd(top) {\n var pos = top ? {line: 0, ch: 0} : {line: lines.length - 1, ch: lines[lines.length-1].text.length};\n setSelectionUser(pos, pos);\n }\n function selectAll() {\n var endLine = lines.length - 1;\n setSelection({line: 0, ch: 0}, {line: endLine, ch: lines[endLine].text.length});\n }\n function selectWordAt(pos) {\n var line = lines[pos.line].text;\n var start = pos.ch, end = pos.ch;\n while (start > 0 && /\\w/.test(line.charAt(start - 1))) --start;\n while (end < line.length && /\\w/.test(line.charAt(end))) ++end;\n setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});\n }\n function selectLine(line) {\n setSelectionUser({line: line, ch: 0}, {line: line, ch: lines[line].text.length});\n }\n function handleEnter() {\n replaceSelection(\"\\n\", \"end\");\n if (options.enterMode != \"flat\")\n indentLine(sel.from.line, options.enterMode == \"keep\" ? \"prev\" : \"smart\");\n }\n function handleTab(shift) {\n function indentSelected(mode) {\n if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);\n var e = sel.to.line - (sel.to.ch ? 0 : 1);\n for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);\n }\n shiftSelecting = null;\n switch (options.tabMode) {\n case \"default\":\n return false;\n case \"indent\":\n indentSelected(\"smart\");\n break;\n case \"classic\":\n if (posEq(sel.from, sel.to)) {\n if (shift) indentLine(sel.from.line, \"smart\");\n else replaceSelection(\"\\t\", \"end\");\n break;\n }\n case \"shift\":\n indentSelected(shift ? \"subtract\" : \"add\");\n break;\n }\n return true;\n }\n\n function indentLine(n, how) {\n if (how == \"smart\") {\n if (!mode.indent) how = \"prev\";\n else var state = getStateBefore(n);\n }\n\n var line = lines[n], curSpace = line.indentation(), curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (how == \"prev\") {\n if (n) indentation = lines[n-1].indentation();\n else indentation = 0;\n }\n else if (how == \"smart\") indentation = mode.indent(state, line.text.slice(curSpaceString.length));\n else if (how == \"add\") indentation = curSpace + options.indentUnit;\n else if (how == \"subtract\") indentation = curSpace - options.indentUnit;\n indentation = Math.max(0, indentation);\n var diff = indentation - curSpace;\n\n if (!diff) {\n if (sel.from.line != n && sel.to.line != n) return;\n var indentString = curSpaceString;\n }\n else {\n var indentString = \"\", pos = 0;\n if (options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n while (pos < indentation) {++pos; indentString += \" \";}\n }\n\n replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});\n }\n\n function loadMode() {\n mode = CodeMirror.getMode(options, options.mode);\n for (var i = 0, l = lines.length; i < l; ++i)\n lines[i].stateAfter = null;\n work = [0];\n startWorker();\n }\n function gutterChanged() {\n var visible = options.gutter || options.lineNumbers;\n gutter.style.display = visible ? \"\" : \"none\";\n if (visible) updateGutter();\n else lineDiv.parentNode.style.marginLeft = 0;\n }\n\n function markText(from, to, className) {\n from = clipPos(from); to = clipPos(to);\n var accum = [];\n function add(line, from, to, className) {\n var line = lines[line], mark = line.addMark(from, to, className);\n mark.line = line;\n accum.push(mark);\n }\n if (from.line == to.line) add(from.line, from.ch, to.ch, className);\n else {\n add(from.line, from.ch, null, className);\n for (var i = from.line + 1, e = to.line; i < e; ++i)\n add(i, 0, null, className);\n add(to.line, 0, to.ch, className);\n }\n changes.push({from: from.line, to: to.line + 1});\n return function() {\n var start, end;\n for (var i = 0; i < accum.length; ++i) {\n var mark = accum[i], found = indexOf(lines, mark.line);\n mark.line.removeMark(mark);\n if (found > -1) {\n if (start == null) start = found;\n end = found;\n }\n }\n if (start != null) changes.push({from: start, to: end + 1});\n };\n }\n\n function addGutterMarker(line, text, className) {\n if (typeof line == \"number\") line = lines[clipLine(line)];\n line.gutterMarker = {text: text, style: className};\n updateGutter();\n return line;\n }\n function removeGutterMarker(line) {\n if (typeof line == \"number\") line = lines[clipLine(line)];\n line.gutterMarker = null;\n updateGutter();\n }\n function setLineClass(line, className) {\n if (typeof line == \"number\") {\n var no = line;\n line = lines[clipLine(line)];\n }\n else {\n var no = indexOf(lines, line);\n if (no == -1) return null;\n }\n if (line.className != className) {\n line.className = className;\n changes.push({from: no, to: no + 1});\n }\n return line;\n }\n\n function lineInfo(line) {\n if (typeof line == \"number\") {\n var n = line;\n line = lines[line];\n if (!line) return null;\n }\n else {\n var n = indexOf(lines, line);\n if (n == -1) return null;\n }\n var marker = line.gutterMarker;\n return {line: n, text: line.text, markerText: marker && marker.text, markerClass: marker && marker.style};\n }\n\n function stringWidth(str) {\n measure.innerHTML = \"<pre><span>x</span></pre>\";\n measure.firstChild.firstChild.firstChild.nodeValue = str;\n return measure.firstChild.firstChild.offsetWidth || 10;\n }\n // These are used to go from pixel positions to character\n // positions, taking varying character widths into account.\n function charX(line, pos) {\n if (pos == 0) return 0;\n measure.innerHTML = \"<pre><span>\" + lines[line].getHTML(null, null, false, pos) + \"</span></pre>\";\n return measure.firstChild.firstChild.offsetWidth;\n }\n function charFromX(line, x) {\n if (x <= 0) return 0;\n var lineObj = lines[line], text = lineObj.text;\n function getX(len) {\n measure.innerHTML = \"<pre><span>\" + lineObj.getHTML(null, null, false, len) + \"</span></pre>\";\n return measure.firstChild.firstChild.offsetWidth;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil(x / stringWidth(\"x\")));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return to;\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return (toX - x > x - fromX) ? from : to;\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n\n function localCoords(pos, inLineWrap) {\n var lh = lineHeight(), line = pos.line - (inLineWrap ? showingFrom : 0);\n return {x: charX(pos.line, pos.ch), y: line * lh, yBot: (line + 1) * lh};\n }\n function pageCoords(pos) {\n var local = localCoords(pos, true), off = eltOffset(lineSpace);\n return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};\n }\n\n function lineHeight() {\n var nlines = lineDiv.childNodes.length;\n if (nlines) return (lineDiv.offsetHeight / nlines) || 1;\n measure.innerHTML = \"<pre>x</pre>\";\n return measure.firstChild.offsetHeight || 1;\n }\n function paddingTop() {return lineSpace.offsetTop;}\n function paddingLeft() {return lineSpace.offsetLeft;}\n\n function posFromMouse(e, liberal) {\n var offW = eltOffset(scroller, true), x, y;\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX; y = e.clientY; } catch (e) { return null; }\n // This is a mess of a heuristic to try and determine whether a\n // scroll-bar was clicked or not, and to return null if one was\n // (and !liberal).\n if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))\n return null;\n var offL = eltOffset(lineSpace, true);\n var line = showingFrom + Math.floor((y - offL.top) / lineHeight());\n return clipPos({line: line, ch: charFromX(clipLine(line), x - offL.left)});\n }\n function onContextMenu(e) {\n var pos = posFromMouse(e);\n if (!pos || window.opera) return; // Opera is difficult.\n if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))\n operation(setCursor)(pos.line, pos.ch);\n\n var oldCSS = input.style.cssText;\n inputDiv.style.position = \"absolute\";\n input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e_pageY(e) - 1) +\n \"px; left: \" + (e_pageX(e) - 1) + \"px; z-index: 1000; background: white; \" +\n \"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n leaveInputAlone = true;\n var val = input.value = getSelection();\n focusInput();\n setSelRange(input, 0, input.value.length);\n function rehide() {\n var newVal = splitLines(input.value).join(\"\\n\");\n if (newVal != val) operation(replaceSelection)(newVal, \"end\");\n inputDiv.style.position = \"relative\";\n input.style.cssText = oldCSS;\n leaveInputAlone = false;\n prepareInput();\n slowPoll();\n }\n \n if (gecko) {\n e_stop(e);\n var mouseup = connect(window, \"mouseup\", function() {\n mouseup();\n setTimeout(rehide, 20);\n }, true);\n }\n else {\n setTimeout(rehide, 50);\n }\n }\n\n // Cursor-blinking\n function restartBlink() {\n clearInterval(blinker);\n var on = true;\n cursor.style.visibility = \"\";\n blinker = setInterval(function() {\n cursor.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, 650);\n }\n\n var matching = {\"(\": \")>\", \")\": \"(<\", \"[\": \"]>\", \"]\": \"[<\", \"{\": \"}>\", \"}\": \"{<\"};\n function matchBrackets(autoclear) {\n var head = sel.inverted ? sel.from : sel.to, line = lines[head.line], pos = head.ch - 1;\n var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];\n if (!match) return;\n var ch = match.charAt(0), forward = match.charAt(1) == \">\", d = forward ? 1 : -1, st = line.styles;\n for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)\n if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}\n\n var stack = [line.text.charAt(pos)], re = /[(){}[\\]]/;\n function scan(line, from, to) {\n if (!line.text) return;\n var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;\n for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {\n var text = st[i];\n if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;}\n for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {\n if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {\n var match = matching[cur];\n if (match.charAt(1) == \">\" == forward) stack.push(cur);\n else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};\n else if (!stack.length) return {pos: pos, match: true};\n }\n }\n }\n }\n for (var i = head.line, e = forward ? Math.min(i + 100, lines.length) : Math.max(-1, i - 100); i != e; i+=d) {\n var line = lines[i], first = i == head.line;\n var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);\n if (found) break;\n }\n if (!found) found = {pos: null, match: false};\n var style = found.match ? \"CodeMirror-matchingbracket\" : \"CodeMirror-nonmatchingbracket\";\n var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),\n two = found.pos != null\n ? markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style)\n : function() {};\n var clear = operation(function(){one(); two();});\n if (autoclear) setTimeout(clear, 800);\n else bracketHighlighted = clear;\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(n) {\n var minindent, minline;\n for (var search = n, lim = n - 40; search > lim; --search) {\n if (search == 0) return 0;\n var line = lines[search-1];\n if (line.stateAfter) return search;\n var indented = line.indentation();\n if (minline == null || minindent > indented) {\n minline = search;\n minindent = indented;\n }\n }\n return minline;\n }\n function getStateBefore(n) {\n var start = findStartLine(n), state = start && lines[start-1].stateAfter;\n if (!state) state = startState(mode);\n else state = copyState(mode, state);\n for (var i = start; i < n; ++i) {\n var line = lines[i];\n line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n }\n if (n < lines.length && !lines[n].stateAfter) work.push(n);\n return state;\n }\n function highlightLines(start, end) {\n var state = getStateBefore(start);\n for (var i = start; i < end; ++i) {\n var line = lines[i];\n line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n }\n }\n function highlightWorker() {\n var end = +new Date + options.workTime;\n var foundWork = work.length;\n while (work.length) {\n if (!lines[showingFrom].stateAfter) var task = showingFrom;\n else var task = work.pop();\n if (task >= lines.length) continue;\n var start = findStartLine(task), state = start && lines[start-1].stateAfter;\n if (state) state = copyState(mode, state);\n else state = startState(mode);\n\n var unchanged = 0, compare = mode.compareStates;\n for (var i = start, l = lines.length; i < l; ++i) {\n var line = lines[i], hadState = line.stateAfter;\n if (+new Date > end) {\n work.push(i);\n startWorker(options.workDelay);\n changes.push({from: task, to: i + 1});\n return;\n }\n var changed = line.highlight(mode, state);\n line.stateAfter = copyState(mode, state);\n if (compare) {\n if (hadState && compare(hadState, state)) break;\n } else {\n if (changed || !hadState) unchanged = 0;\n else if (++unchanged > 3) break;\n }\n }\n changes.push({from: task, to: i + 1});\n }\n if (foundWork && options.onHighlightComplete)\n options.onHighlightComplete(instance);\n }\n function startWorker(time) {\n if (!work.length) return;\n highlight.set(time, operation(highlightWorker));\n }\n\n // Operations are used to wrap changes in such a way that each\n // change won't have to update the cursor and display (which would\n // be awkward, slow, and error-prone), but instead updates are\n // batched and then all combined and executed at once.\n function startOperation() {\n updateInput = null; changes = []; textChanged = selectionChanged = false;\n }\n function endOperation() {\n var reScroll = false;\n if (selectionChanged) reScroll = !scrollCursorIntoView();\n if (changes.length) updateDisplay(changes);\n else if (selectionChanged) updateCursor();\n if (reScroll) scrollCursorIntoView();\n if (selectionChanged) restartBlink();\n\n // updateInput can be set to a boolean value to force/prevent an\n // update.\n if (focused && !leaveInputAlone &&\n (updateInput === true || (updateInput !== false && selectionChanged)))\n prepareInput();\n\n if (selectionChanged && options.matchBrackets)\n setTimeout(operation(function() {\n if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}\n matchBrackets(false);\n }), 20);\n var tc = textChanged; // textChanged can be reset by cursoractivity callback\n if (selectionChanged && options.onCursorActivity)\n options.onCursorActivity(instance);\n if (tc && options.onChange && instance)\n options.onChange(instance, tc);\n }\n var nestedOperation = 0;\n function operation(f) {\n return function() {\n if (!nestedOperation++) startOperation();\n try {var result = f.apply(this, arguments);}\n finally {if (!--nestedOperation) endOperation();}\n return result;\n };\n }\n\n function SearchCursor(query, pos, caseFold) {\n this.atOccurrence = false;\n if (caseFold == null) caseFold = typeof query == \"string\" && query == query.toLowerCase();\n\n if (pos && typeof pos == \"object\") pos = clipPos(pos);\n else pos = {line: 0, ch: 0};\n this.pos = {from: pos, to: pos};\n\n // The matches method is filled in based on the type of query.\n // It takes a position and a direction, and returns an object\n // describing the next occurrence of the query, or null if no\n // more matches were found.\n if (typeof query != \"string\") // Regexp match\n this.matches = function(reverse, pos) {\n if (reverse) {\n var line = lines[pos.line].text.slice(0, pos.ch), match = line.match(query), start = 0;\n while (match) {\n var ind = line.indexOf(match[0]);\n start += ind;\n line = line.slice(ind + 1);\n var newmatch = line.match(query);\n if (newmatch) match = newmatch;\n else break;\n start++;\n }\n }\n else {\n var line = lines[pos.line].text.slice(pos.ch), match = line.match(query),\n start = match && pos.ch + line.indexOf(match[0]);\n }\n if (match)\n return {from: {line: pos.line, ch: start},\n to: {line: pos.line, ch: start + match[0].length},\n match: match};\n };\n else { // String query\n if (caseFold) query = query.toLowerCase();\n var fold = caseFold ? function(str){return str.toLowerCase();} : function(str){return str;};\n var target = query.split(\"\\n\");\n // Different methods for single-line and multi-line queries\n if (target.length == 1)\n this.matches = function(reverse, pos) {\n var line = fold(lines[pos.line].text), len = query.length, match;\n if (reverse ? (pos.ch >= len && (match = line.lastIndexOf(query, pos.ch - len)) != -1)\n : (match = line.indexOf(query, pos.ch)) != -1)\n return {from: {line: pos.line, ch: match},\n to: {line: pos.line, ch: match + len}};\n };\n else\n this.matches = function(reverse, pos) {\n var ln = pos.line, idx = (reverse ? target.length - 1 : 0), match = target[idx], line = fold(lines[ln].text);\n var offsetA = (reverse ? line.indexOf(match) + match.length : line.lastIndexOf(match));\n if (reverse ? offsetA >= pos.ch || offsetA != match.length\n : offsetA <= pos.ch || offsetA != line.length - match.length)\n return;\n for (;;) {\n if (reverse ? !ln : ln == lines.length - 1) return;\n line = fold(lines[ln += reverse ? -1 : 1].text);\n match = target[reverse ? --idx : ++idx];\n if (idx > 0 && idx < target.length - 1) {\n if (line != match) return;\n else continue;\n }\n var offsetB = (reverse ? line.lastIndexOf(match) : line.indexOf(match) + match.length);\n if (reverse ? offsetB != line.length - match.length : offsetB != match.length)\n return;\n var start = {line: pos.line, ch: offsetA}, end = {line: ln, ch: offsetB};\n return {from: reverse ? end : start, to: reverse ? start : end};\n }\n };\n }\n }\n\n SearchCursor.prototype = {\n findNext: function() {return this.find(false);},\n findPrevious: function() {return this.find(true);},\n\n find: function(reverse) {\n var self = this, pos = clipPos(reverse ? this.pos.from : this.pos.to);\n function savePosAndFail(line) {\n var pos = {line: line, ch: 0};\n self.pos = {from: pos, to: pos};\n self.atOccurrence = false;\n return false;\n }\n\n for (;;) {\n if (this.pos = this.matches(reverse, pos)) {\n this.atOccurrence = true;\n return this.pos.match || true;\n }\n if (reverse) {\n if (!pos.line) return savePosAndFail(0);\n pos = {line: pos.line-1, ch: lines[pos.line-1].text.length};\n }\n else {\n if (pos.line == lines.length - 1) return savePosAndFail(lines.length);\n pos = {line: pos.line+1, ch: 0};\n }\n }\n },\n\n from: function() {if (this.atOccurrence) return copyPos(this.pos.from);},\n to: function() {if (this.atOccurrence) return copyPos(this.pos.to);},\n\n replace: function(newText) {\n var self = this;\n if (this.atOccurrence)\n operation(function() {\n self.pos.to = replaceRange(newText, self.pos.from, self.pos.to);\n })();\n }\n };\n\n for (var ext in extensions)\n if (extensions.propertyIsEnumerable(ext) &&\n !instance.propertyIsEnumerable(ext))\n instance[ext] = extensions[ext];\n return instance;\n } // (end of function CodeMirror)", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){win(this).focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){win(this).focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers\n\n var helpers = CodeMirror.helpers = {}\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus()},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option]\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old) }\n signal(this, \"optionChange\", this, option)\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map))\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1)\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec)\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; })\n this.state.modeGen++\n regChange(this)\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1)\n this$1.state.modeGen++\n regChange(this$1)\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\" }\n else { dir = dir ? \"add\" : \"subtract\" }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive) }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i]\n if (!range.empty()) {\n var from = range.from(), to = range.to()\n var start = Math.max(end, from.line)\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how) }\n var newRanges = this$1.doc.sel.ranges\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll) }\n } else if (range.head.line > end) {\n indentLine(this$1, range.head.line, how, true)\n end = range.head.line\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1) }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos)\n var styles = getLineStyles(this, getLine(this.doc, pos.line))\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch\n var type\n if (ch == 0) { type = styles[2] }\n else { for (;;) {\n var mid = (before + after) >> 1\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1 }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = []\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos)\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]) }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]]\n if (val) { found.push(val) }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType])\n } else if (help[mode.name]) {\n found.push(help[mode.name])\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1]\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val) }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line)\n return getStateBefore(this, line + 1, precise)\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary()\n if (start == null) { pos = range.head }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start) }\n else { pos = start ? range.from() : range.to() }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\")\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1\n if (line < this.doc.first) { line = this.doc.first }\n else if (line > last) { line = last; end = true }\n lineObj = getLine(this.doc, line)\n } else {\n lineObj = line\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display\n pos = cursorCoords(this, clipPos(this.doc, pos))\n var top = pos.bottom, left = pos.left\n node.style.position = \"absolute\"\n node.setAttribute(\"cm-ignore-events\", \"true\")\n this.display.input.setUneditable(node)\n display.sizer.appendChild(node)\n if (vert == \"over\") {\n top = pos.top\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth)\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth }\n }\n node.style.top = top + \"px\"\n node.style.left = node.style.right = \"\"\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth\n node.style.right = \"0px\"\n } else {\n if (horiz == \"left\") { left = 0 }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2 }\n node.style.left = left + \"px\"\n }\n if (scroll)\n { scrollIntoView(this, left, top, left + node.offsetWidth, top + node.offsetHeight) }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text) }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move)\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\") }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false)\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }) }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\")\n if (x == null) { x = coords.left }\n else { coords.left = x }\n cur = findPosV(this$1, coords, dir, unit)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = []\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected()\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\")\n if (range.goalColumn != null) { headPos.left = range.goalColumn }\n goals.push(headPos.left)\n var pos = findPosV(this$1, headPos, dir, unit)\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollPos(this$1, null, charCoords(this$1, pos, \"div\").top - headPos.top) }\n return pos\n }, sel_move)\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i] } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text\n var start = pos.ch, end = pos.ch\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\")\n if ((pos.xRel < 0 || end == line.length) && start) { --start; } else { ++end }\n var startChar = line.charAt(start)\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); }\n while (start > 0 && check(line.charAt(start - 1))) { --start }\n while (end < line.length && check(line.charAt(end))) { ++end }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite)\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function(x, y) {\n if (x != null || y != null) { resolveScrollToPos(this) }\n if (x != null) { this.curOp.scrollLeft = x }\n if (y != null) { this.curOp.scrollTop = y }\n }),\n getScrollInfo: function() {\n var scroller = this.display.scroller\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null}\n if (margin == null) { margin = this.options.cursorScrollMargin }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null}\n } else if (range.from == null) {\n range = {from: range, to: null}\n }\n if (!range.to) { range.to = range.from }\n range.margin = margin || 0\n\n if (range.from.line != null) {\n resolveScrollToPos(this)\n this.curOp.scrollToPos = range\n } else {\n var sPos = calculateScrollPos(this, Math.min(range.from.left, range.to.left),\n Math.min(range.from.top, range.to.top) - range.margin,\n Math.max(range.from.right, range.to.right),\n Math.max(range.from.bottom, range.to.bottom) + range.margin)\n this.scrollTo(sPos.scrollLeft, sPos.scrollTop)\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; }\n if (width != null) { this.display.wrapper.style.width = interpret(width) }\n if (height != null) { this.display.wrapper.style.height = interpret(height) }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this) }\n var lineNo = this.display.viewFrom\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo\n })\n this.curOp.forceUpdate = true\n signal(this, \"refresh\", this)\n }),\n\n operation: function(f){return runInOp(this, f)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight\n regChange(this)\n this.curOp.forceUpdate = true\n clearCaches(this)\n this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop)\n updateGutterSpace(this)\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this) }\n signal(this, \"refresh\", this)\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc\n old.cm = null\n attachDoc(this, doc)\n clearCaches(this)\n this.display.input.reset()\n this.scrollTo(doc.scrollLeft, doc.scrollTop)\n this.curOp.forceScroll = true\n signalLater(this, \"swapDoc\", this, old)\n return old\n }),\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n }\n eventMixin(CodeMirror)\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []} }\n helpers[type][name] = value\n }\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value)\n helpers[type]._global.push({pred: predicate, val: value})\n }\n}", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers\n\n var helpers = CodeMirror.helpers = {}\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus()},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option]\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old) }\n signal(this, \"optionChange\", this, option)\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map))\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1)\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec)\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; })\n this.state.modeGen++\n regChange(this)\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1)\n this$1.state.modeGen++\n regChange(this$1)\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\" }\n else { dir = dir ? \"add\" : \"subtract\" }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive) }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i]\n if (!range.empty()) {\n var from = range.from(), to = range.to()\n var start = Math.max(end, from.line)\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how) }\n var newRanges = this$1.doc.sel.ranges\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll) }\n } else if (range.head.line > end) {\n indentLine(this$1, range.head.line, how, true)\n end = range.head.line\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1) }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos)\n var styles = getLineStyles(this, getLine(this.doc, pos.line))\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch\n var type\n if (ch == 0) { type = styles[2] }\n else { for (;;) {\n var mid = (before + after) >> 1\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1 }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = []\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos)\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]) }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]]\n if (val) { found.push(val) }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType])\n } else if (help[mode.name]) {\n found.push(help[mode.name])\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1]\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val) }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line)\n return getStateBefore(this, line + 1, precise)\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary()\n if (start == null) { pos = range.head }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start) }\n else { pos = start ? range.from() : range.to() }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\")\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1\n if (line < this.doc.first) { line = this.doc.first }\n else if (line > last) { line = last; end = true }\n lineObj = getLine(this.doc, line)\n } else {\n lineObj = line\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display\n pos = cursorCoords(this, clipPos(this.doc, pos))\n var top = pos.bottom, left = pos.left\n node.style.position = \"absolute\"\n node.setAttribute(\"cm-ignore-events\", \"true\")\n this.display.input.setUneditable(node)\n display.sizer.appendChild(node)\n if (vert == \"over\") {\n top = pos.top\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth)\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth }\n }\n node.style.top = top + \"px\"\n node.style.left = node.style.right = \"\"\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth\n node.style.right = \"0px\"\n } else {\n if (horiz == \"left\") { left = 0 }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2 }\n node.style.left = left + \"px\"\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}) }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text) }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move)\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\") }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false)\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }) }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\")\n if (x == null) { x = coords.left }\n else { coords.left = x }\n cur = findPosV(this$1, coords, dir, unit)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = []\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected()\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\")\n if (range.goalColumn != null) { headPos.left = range.goalColumn }\n goals.push(headPos.left)\n var pos = findPosV(this$1, headPos, dir, unit)\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollPos(this$1, null, charCoords(this$1, pos, \"div\").top - headPos.top) }\n return pos\n }, sel_move)\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i] } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text\n var start = pos.ch, end = pos.ch\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\")\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end }\n var startChar = line.charAt(start)\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); }\n while (start > 0 && check(line.charAt(start - 1))) { --start }\n while (end < line.length && check(line.charAt(end))) { ++end }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite)\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function(x, y) {\n if (x != null || y != null) { resolveScrollToPos(this) }\n if (x != null) { this.curOp.scrollLeft = x }\n if (y != null) { this.curOp.scrollTop = y }\n }),\n getScrollInfo: function() {\n var scroller = this.display.scroller\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null}\n if (margin == null) { margin = this.options.cursorScrollMargin }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null}\n } else if (range.from == null) {\n range = {from: range, to: null}\n }\n if (!range.to) { range.to = range.from }\n range.margin = margin || 0\n\n if (range.from.line != null) {\n resolveScrollToPos(this)\n this.curOp.scrollToPos = range\n } else {\n var sPos = calculateScrollPos(this, {\n left: Math.min(range.from.left, range.to.left),\n top: Math.min(range.from.top, range.to.top) - range.margin,\n right: Math.max(range.from.right, range.to.right),\n bottom: Math.max(range.from.bottom, range.to.bottom) + range.margin\n })\n this.scrollTo(sPos.scrollLeft, sPos.scrollTop)\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; }\n if (width != null) { this.display.wrapper.style.width = interpret(width) }\n if (height != null) { this.display.wrapper.style.height = interpret(height) }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this) }\n var lineNo = this.display.viewFrom\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo\n })\n this.curOp.forceUpdate = true\n signal(this, \"refresh\", this)\n }),\n\n operation: function(f){return runInOp(this, f)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight\n regChange(this)\n this.curOp.forceUpdate = true\n clearCaches(this)\n this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop)\n updateGutterSpace(this)\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this) }\n signal(this, \"refresh\", this)\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc\n old.cm = null\n attachDoc(this, doc)\n clearCaches(this)\n this.display.input.reset()\n this.scrollTo(doc.scrollLeft, doc.scrollTop)\n this.curOp.forceScroll = true\n signalLater(this, \"swapDoc\", this, old)\n return old\n }),\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n }\n eventMixin(CodeMirror)\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []} }\n helpers[type][name] = value\n }\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value)\n helpers[type]._global.push({pred: predicate, val: value})\n }\n}", "function CodeMirror(place, givenOptions) {\n // Determine effective options based on given values and defaults.\n var options = {}, defaults = CodeMirror.defaults;\n for (var opt in defaults)\n if (defaults.hasOwnProperty(opt))\n options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];\n\n // The element in which the editor lives.\n var wrapper = document.createElement(\"div\");\n wrapper.className = \"CodeMirror\" + (options.lineWrapping ? \" CodeMirror-wrap\" : \"\");\n // This mess creates the base DOM structure for the editor.\n wrapper.innerHTML =\n '<div style=\"overflow: hidden; position: relative; width: 3px; height: 0px;\">' + // Wraps and hides input textarea\n '<textarea style=\"position: absolute; padding: 0; width: 1px; height: 1em\" wrap=\"off\" ' +\n 'autocorrect=\"off\" autocapitalize=\"off\"></textarea></div>' +\n '<div class=\"CodeMirror-scroll\" tabindex=\"-1\">' +\n '<div style=\"position: relative\">' + // Set to the height of the text, causes scrolling\n '<div style=\"position: relative\">' + // Moved around its parent to cover visible view\n '<div class=\"CodeMirror-gutter\"><div class=\"CodeMirror-gutter-text\"></div></div>' +\n // Provides positioning relative to (visible) text origin\n '<div class=\"CodeMirror-lines\"><div style=\"position: relative; z-index: 0\">' +\n '<div style=\"position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden;\"></div>' +\n '<pre class=\"CodeMirror-cursor\">&#160;</pre>' + // Absolutely positioned blinky cursor\n '<div style=\"position: relative; z-index: -1\"></div><div></div>' + // DIVs containing the selection and the actual code\n '</div></div></div></div></div>';\n if (place.appendChild) place.appendChild(wrapper); else place(wrapper);\n // I've never seen more elegant code in my life.\n var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,\n scroller = wrapper.lastChild, code = scroller.firstChild,\n mover = code.firstChild, gutter = mover.firstChild, gutterText = gutter.firstChild,\n lineSpace = gutter.nextSibling.firstChild, measure = lineSpace.firstChild,\n cursor = measure.nextSibling, selectionDiv = cursor.nextSibling,\n lineDiv = selectionDiv.nextSibling;\n themeChanged(); keyMapChanged();\n // Needed to hide big blue blinking cursor on Mobile Safari\n if (ios) input.style.width = \"0px\";\n if (!webkit) lineSpace.draggable = true;\n lineSpace.style.outline = \"none\";\n if (options.tabindex != null) input.tabIndex = options.tabindex;\n if (options.autofocus) focusInput();\n if (!options.gutter && !options.lineNumbers) gutter.style.display = \"none\";\n // Needed to handle Tab key in KHTML\n if (khtml) inputDiv.style.height = \"1px\", inputDiv.style.position = \"absolute\";\n\n // Check for problem with IE innerHTML not working when we have a\n // P (or similar) parent node.\n try { stringWidth(\"x\"); }\n catch (e) {\n if (e.message.match(/runtime/i))\n e = new Error(\"A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)\");\n throw e;\n }\n\n // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.\n var poll = new Delayed(), highlight = new Delayed(), blinker;\n\n // mode holds a mode API object. doc is the tree of Line objects,\n // work an array of lines that should be parsed, and history the\n // undo history (instance of History constructor).\n var mode, doc = new BranchChunk([new LeafChunk([new Line(\"\")])]), work, focused;\n loadMode();\n // The selection. These are always maintained to point at valid\n // positions. Inverted is used to remember that the user is\n // selecting bottom-to-top.\n var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};\n // Selection-related flags. shiftSelecting obviously tracks\n // whether the user is holding shift.\n var shiftSelecting, lastClick, lastDoubleClick, lastScrollPos = 0, draggingText,\n overwrite = false, suppressEdits = false;\n // Variables used by startOperation/endOperation to track what\n // happened during the operation.\n var updateInput, userSelChange, changes, textChanged, selectionChanged, leaveInputAlone,\n gutterDirty, callbacks, maxLengthChanged;\n // Current visible range (may be bigger than the view window).\n var displayOffset = 0, showingFrom = 0, showingTo = 0, lastSizeC = 0;\n // bracketHighlighted is used to remember that a bracket has been\n // marked.\n var bracketHighlighted;\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n var maxLine = \"\", maxWidth;\n var tabCache = {};\n\n // Initialize the content.\n operation(function(){setValue(options.value || \"\"); updateInput = false;})();\n var history = new History();\n\n // Register our event handlers.\n connect(scroller, \"mousedown\", operation(onMouseDown));\n connect(scroller, \"dblclick\", operation(onDoubleClick));\n connect(lineSpace, \"selectstart\", e_preventDefault);\n // Gecko browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for Gecko.\n if (!gecko) connect(scroller, \"contextmenu\", onContextMenu);\n connect(scroller, \"scroll\", function() {\n lastScrollPos = scroller.scrollTop;\n updateDisplay([]);\n if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + \"px\";\n if (options.onScroll) options.onScroll(instance);\n });\n connect(window, \"resize\", function() {updateDisplay(true);});\n connect(input, \"keyup\", operation(onKeyUp));\n connect(input, \"input\", fastPoll);\n connect(input, \"keydown\", operation(onKeyDown));\n connect(input, \"keypress\", operation(onKeyPress));\n connect(input, \"focus\", onFocus);\n connect(input, \"blur\", onBlur);\n\n if (options.dragDrop) {\n connect(lineSpace, \"dragstart\", onDragStart);\n function drag_(e) {\n if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;\n e_stop(e);\n }\n connect(scroller, \"dragenter\", drag_);\n connect(scroller, \"dragover\", drag_);\n connect(scroller, \"drop\", operation(onDrop));\n }\n connect(scroller, \"paste\", function(){focusInput(); fastPoll();});\n connect(input, \"paste\", fastPoll);\n connect(input, \"cut\", operation(function(){\n if (!options.readOnly) replaceSelection(\"\");\n }));\n\n // Needed to handle Tab key in KHTML\n if (khtml) connect(code, \"mouseup\", function() {\n if (document.activeElement == input) input.blur();\n focusInput();\n });\n\n // IE throws unspecified error in certain cases, when\n // trying to access activeElement before onload\n var hasFocus; try { hasFocus = (document.activeElement == input); } catch(e) { }\n if (hasFocus || options.autofocus) setTimeout(onFocus, 20);\n else onBlur();\n\n function isLine(l) {return l >= 0 && l < doc.size;}\n // The instance object that we'll return. Mostly calls out to\n // local functions in the CodeMirror function. Some do some extra\n // range checking and/or clipping. operation is used to wrap the\n // call so that changes it makes are tracked, and the display is\n // updated afterwards.\n var instance = wrapper.CodeMirror = {\n getValue: getValue,\n setValue: operation(setValue),\n getSelection: getSelection,\n replaceSelection: operation(replaceSelection),\n focus: function(){window.focus(); focusInput(); onFocus(); fastPoll();},\n setOption: function(option, value) {\n var oldVal = options[option];\n options[option] = value;\n if (option == \"mode\" || option == \"indentUnit\") loadMode();\n else if (option == \"readOnly\" && value == \"nocursor\") {onBlur(); input.blur();}\n else if (option == \"readOnly\" && !value) {resetInput(true);}\n else if (option == \"theme\") themeChanged();\n else if (option == \"lineWrapping\" && oldVal != value) operation(wrappingChanged)();\n else if (option == \"tabSize\") updateDisplay(true);\n else if (option == \"keyMap\") keyMapChanged();\n if (option == \"lineNumbers\" || option == \"gutter\" || option == \"firstLineNumber\" || option == \"theme\") {\n gutterChanged();\n updateDisplay(true);\n }\n },\n getOption: function(option) {return options[option];},\n undo: operation(undo),\n redo: operation(redo),\n indentLine: operation(function(n, dir) {\n if (typeof dir != \"string\") {\n if (dir == null) dir = options.smartIndent ? \"smart\" : \"prev\";\n else dir = dir ? \"add\" : \"subtract\";\n }\n if (isLine(n)) indentLine(n, dir);\n }),\n indentSelection: operation(indentSelected),\n historySize: function() {return {undo: history.done.length, redo: history.undone.length};},\n clearHistory: function() {history = new History();},\n matchBrackets: operation(function(){matchBrackets(true);}),\n getTokenAt: operation(function(pos) {\n pos = clipPos(pos);\n return getLine(pos.line).getTokenAt(mode, getStateBefore(pos.line), pos.ch);\n }),\n getStateAfter: function(line) {\n line = clipLine(line == null ? doc.size - 1: line);\n return getStateBefore(line + 1);\n },\n cursorCoords: function(start, mode) {\n if (start == null) start = sel.inverted;\n return this.charCoords(start ? sel.from : sel.to, mode);\n },\n charCoords: function(pos, mode) {\n pos = clipPos(pos);\n if (mode == \"local\") return localCoords(pos, false);\n if (mode == \"div\") return localCoords(pos, true);\n return pageCoords(pos);\n },\n coordsChar: function(coords) {\n var off = eltOffset(lineSpace);\n return coordsChar(coords.x - off.left, coords.y - off.top);\n },\n markText: operation(markText),\n setBookmark: setBookmark,\n findMarksAt: findMarksAt,\n setMarker: operation(addGutterMarker),\n clearMarker: operation(removeGutterMarker),\n setLineClass: operation(setLineClass),\n hideLine: operation(function(h) {return setLineHidden(h, true);}),\n showLine: operation(function(h) {return setLineHidden(h, false);}),\n onDeleteLine: function(line, f) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n line = getLine(line);\n }\n (line.handlers || (line.handlers = [])).push(f);\n return line;\n },\n lineInfo: lineInfo,\n addWidget: function(pos, node, scroll, vert, horiz) {\n pos = localCoords(clipPos(pos));\n var top = pos.yBot, left = pos.x;\n node.style.position = \"absolute\";\n code.appendChild(node);\n if (vert == \"over\") top = pos.y;\n else if (vert == \"near\") {\n var vspace = Math.max(scroller.offsetHeight, doc.height * textHeight()),\n hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();\n if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)\n top = pos.y - node.offsetHeight;\n if (left + node.offsetWidth > hspace)\n left = hspace - node.offsetWidth;\n }\n node.style.top = (top + paddingTop()) + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = code.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") left = 0;\n else if (horiz == \"middle\") left = (code.clientWidth - node.offsetWidth) / 2;\n node.style.left = (left + paddingLeft()) + \"px\";\n }\n if (scroll)\n scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);\n },\n\n lineCount: function() {return doc.size;},\n clipPos: clipPos,\n getCursor: function(start) {\n if (start == null) start = sel.inverted;\n return copyPos(start ? sel.from : sel.to);\n },\n somethingSelected: function() {return !posEq(sel.from, sel.to);},\n setCursor: operation(function(line, ch, user) {\n if (ch == null && typeof line.line == \"number\") setCursor(line.line, line.ch, user);\n else setCursor(line, ch, user);\n }),\n setSelection: operation(function(from, to, user) {\n (user ? setSelectionUser : setSelection)(clipPos(from), clipPos(to || from));\n }),\n getLine: function(line) {if (isLine(line)) return getLine(line).text;},\n getLineHandle: function(line) {if (isLine(line)) return getLine(line);},\n setLine: operation(function(line, text) {\n if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: getLine(line).text.length});\n }),\n removeLine: operation(function(line) {\n if (isLine(line)) replaceRange(\"\", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));\n }),\n replaceRange: operation(replaceRange),\n getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},\n\n triggerOnKeyDown: operation(onKeyDown),\n execCommand: function(cmd) {return commands[cmd](instance);},\n // Stuff used by commands, probably not much use to outside code.\n moveH: operation(moveH),\n deleteH: operation(deleteH),\n moveV: operation(moveV),\n toggleOverwrite: function() {\n if(overwrite){\n overwrite = false;\n cursor.className = cursor.className.replace(\" CodeMirror-overwrite\", \"\");\n } else {\n overwrite = true;\n cursor.className += \" CodeMirror-overwrite\";\n }\n },\n\n posFromIndex: function(off) {\n var lineNo = 0, ch;\n doc.iter(0, doc.size, function(line) {\n var sz = line.text.length + 1;\n if (sz > off) { ch = off; return true; }\n off -= sz;\n ++lineNo;\n });\n return clipPos({line: lineNo, ch: ch});\n },\n indexFromPos: function (coords) {\n if (coords.line < 0 || coords.ch < 0) return 0;\n var index = coords.ch;\n doc.iter(0, coords.line, function (line) {\n index += line.text.length + 1;\n });\n return index;\n },\n scrollTo: function(x, y) {\n if (x != null) scroller.scrollLeft = x;\n if (y != null) scroller.scrollTop = y;\n updateDisplay([]);\n },\n\n operation: function(f){return operation(f)();},\n compoundChange: function(f){return compoundChange(f);},\n refresh: function(){\n updateDisplay(true);\n if (scroller.scrollHeight > lastScrollPos)\n scroller.scrollTop = lastScrollPos;\n },\n getInputField: function(){return input;},\n getWrapperElement: function(){return wrapper;},\n getScrollerElement: function(){return scroller;},\n getGutterElement: function(){return gutter;}\n };\n\n function getLine(n) { return getLineAt(doc, n); }\n function updateLineHeight(line, height) {\n gutterDirty = true;\n var diff = height - line.height;\n for (var n = line; n; n = n.parent) n.height += diff;\n }\n\n function setValue(code) {\n var top = {line: 0, ch: 0};\n updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},\n splitLines(code), top, top);\n updateInput = true;\n }\n function getValue() {\n var text = [];\n doc.iter(0, doc.size, function(line) { text.push(line.text); });\n return text.join(\"\\n\");\n }\n\n function onMouseDown(e) {\n setShift(e_prop(e, \"shiftKey\"));\n // Check whether this is a click in a widget\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == code && n != mover) return;\n\n // See if this is a click in the gutter\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) {\n if (options.onGutterClick)\n options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);\n return e_preventDefault(e);\n }\n\n var start = posFromMouse(e);\n\n switch (e_button(e)) {\n case 3:\n if (gecko && !mac) onContextMenu(e);\n return;\n case 2:\n if (start) setCursor(start.line, start.ch, true);\n setTimeout(focusInput, 20);\n return;\n }\n // For button 1, if it was clicked inside the editor\n // (posFromMouse returning non-null), we have to adjust the\n // selection.\n if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}\n\n if (!focused) onFocus();\n\n var now = +new Date;\n if (lastDoubleClick && lastDoubleClick.time > now - 400 && posEq(lastDoubleClick.pos, start)) {\n e_preventDefault(e);\n setTimeout(focusInput, 20);\n return selectLine(start.line);\n } else if (lastClick && lastClick.time > now - 400 && posEq(lastClick.pos, start)) {\n lastDoubleClick = {time: now, pos: start};\n e_preventDefault(e);\n return selectWordAt(start);\n } else { lastClick = {time: now, pos: start}; }\n\n var last = start, going;\n if (options.dragDrop && dragAndDrop && !options.readOnly && !posEq(sel.from, sel.to) &&\n !posLess(start, sel.from) && !posLess(sel.to, start)) {\n // Let the drag handler handle this.\n if (webkit) lineSpace.draggable = true;\n function dragEnd(e2) {\n if (webkit) lineSpace.draggable = false;\n draggingText = false;\n up(); drop();\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n setCursor(start.line, start.ch, true);\n focusInput();\n }\n }\n var up = connect(document, \"mouseup\", operation(dragEnd), true);\n var drop = connect(scroller, \"drop\", operation(dragEnd), true);\n draggingText = true;\n // IE's approach to draggable\n if (lineSpace.dragDrop) lineSpace.dragDrop();\n return;\n }\n e_preventDefault(e);\n setCursor(start.line, start.ch, true);\n\n function extend(e) {\n var cur = posFromMouse(e, true);\n if (cur && !posEq(cur, last)) {\n if (!focused) onFocus();\n last = cur;\n setSelectionUser(start, cur);\n updateInput = false;\n var visible = visibleLines();\n if (cur.line >= visible.to || cur.line < visible.from)\n going = setTimeout(operation(function(){extend(e);}), 150);\n }\n }\n\n function done(e) {\n clearTimeout(going);\n var cur = posFromMouse(e);\n if (cur) setSelectionUser(start, cur);\n e_preventDefault(e);\n focusInput();\n updateInput = true;\n move(); up();\n }\n var move = connect(document, \"mousemove\", operation(function(e) {\n clearTimeout(going);\n e_preventDefault(e);\n if (!ie && !e_button(e)) done(e);\n else extend(e);\n }), true);\n var up = connect(document, \"mouseup\", operation(done), true);\n }\n function onDoubleClick(e) {\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) return e_preventDefault(e);\n var start = posFromMouse(e);\n if (!start) return;\n lastDoubleClick = {time: +new Date, pos: start};\n e_preventDefault(e);\n selectWordAt(start);\n }\n function onDrop(e) {\n if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;\n e.preventDefault();\n var pos = posFromMouse(e, true), files = e.dataTransfer.files;\n if (!pos || options.readOnly) return;\n if (files && files.length && window.FileReader && window.File) {\n function loadFile(file, i) {\n var reader = new FileReader;\n reader.onload = function() {\n text[i] = reader.result;\n if (++read == n) {\n pos = clipPos(pos);\n operation(function() {\n var end = replaceRange(text.join(\"\"), pos, pos);\n setSelectionUser(pos, end);\n })();\n }\n };\n reader.readAsText(file);\n }\n var n = files.length, text = Array(n), read = 0;\n for (var i = 0; i < n; ++i) loadFile(files[i], i);\n }\n else {\n try {\n var text = e.dataTransfer.getData(\"Text\");\n if (text) {\n compoundChange(function() {\n var curFrom = sel.from, curTo = sel.to;\n setSelectionUser(pos, pos);\n if (draggingText) replaceRange(\"\", curFrom, curTo);\n replaceSelection(text);\n focusInput();\n });\n }\n }\n catch(e){}\n }\n }\n function onDragStart(e) {\n var txt = getSelection();\n e.dataTransfer.setData(\"Text\", txt);\n \n // Use dummy image instead of default browsers image.\n if (gecko || chrome) {\n var img = document.createElement('img');\n img.scr = 'data:image/gif;base64,R0lGODdhAgACAIAAAAAAAP///ywAAAAAAgACAAACAoRRADs='; //1x1 image\n e.dataTransfer.setDragImage(img, 0, 0);\n }\n }\n\n function doHandleBinding(bound, dropShift) {\n if (typeof bound == \"string\") {\n bound = commands[bound];\n if (!bound) return false;\n }\n var prevShift = shiftSelecting;\n try {\n if (options.readOnly) suppressEdits = true;\n if (dropShift) shiftSelecting = null;\n bound(instance);\n } catch(e) {\n if (e != Pass) throw e;\n return false;\n } finally {\n shiftSelecting = prevShift;\n suppressEdits = false;\n }\n return true;\n }\n function handleKeyBinding(e) {\n // Handle auto keymap transitions\n var startMap = getKeyMap(options.keyMap), next = startMap.auto;\n clearTimeout(maybeTransition);\n if (next && !isModifierKey(e)) maybeTransition = setTimeout(function() {\n if (getKeyMap(options.keyMap) == startMap) {\n options.keyMap = (next.call ? next.call(null, instance) : next);\n }\n }, 50);\n\n var name = keyNames[e_prop(e, \"keyCode\")], handled = false;\n if (name == null || e.altGraphKey) return false;\n if (e_prop(e, \"altKey\")) name = \"Alt-\" + name;\n if (e_prop(e, \"ctrlKey\")) name = \"Ctrl-\" + name;\n if (e_prop(e, \"metaKey\")) name = \"Cmd-\" + name;\n\n var stopped = false;\n function stop() { stopped = true; }\n\n if (e_prop(e, \"shiftKey\")) {\n handled = lookupKey(\"Shift-\" + name, options.extraKeys, options.keyMap,\n function(b) {return doHandleBinding(b, true);}, stop)\n || lookupKey(name, options.extraKeys, options.keyMap, function(b) {\n if (typeof b == \"string\" && /^go[A-Z]/.test(b)) return doHandleBinding(b);\n }, stop);\n } else {\n handled = lookupKey(name, options.extraKeys, options.keyMap, doHandleBinding, stop);\n }\n if (stopped) handled = false;\n if (handled) {\n e_preventDefault(e);\n restartBlink();\n if (ie) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }\n }\n return handled;\n }\n function handleCharBinding(e, ch) {\n var handled = lookupKey(\"'\" + ch + \"'\", options.extraKeys,\n options.keyMap, function(b) { return doHandleBinding(b, true); });\n if (handled) {\n e_preventDefault(e);\n restartBlink();\n }\n return handled;\n }\n\n var lastStoppedKey = null, maybeTransition;\n function onKeyDown(e) {\n if (!focused) onFocus();\n if (ie && e.keyCode == 27) { e.returnValue = false; }\n if (pollingFast) { if (readInput()) pollingFast = false; }\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n var code = e_prop(e, \"keyCode\");\n // IE does strange things with escape.\n setShift(code == 16 || e_prop(e, \"shiftKey\"));\n // First give onKeyEvent option a chance to handle this.\n var handled = handleKeyBinding(e);\n if (window.opera) {\n lastStoppedKey = handled ? code : null;\n // Opera has no cut event... we try to at least catch the key combo\n if (!handled && code == 88 && e_prop(e, mac ? \"metaKey\" : \"ctrlKey\"))\n replaceSelection(\"\");\n }\n }\n function onKeyPress(e) {\n if (pollingFast) readInput();\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n var keyCode = e_prop(e, \"keyCode\"), charCode = e_prop(e, \"charCode\");\n if (window.opera && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}\n if (((window.opera && (!e.which || e.which < 10)) || khtml) && handleKeyBinding(e)) return;\n var ch = String.fromCharCode(charCode == null ? keyCode : charCode);\n if (options.electricChars && mode.electricChars && options.smartIndent && !options.readOnly) {\n if (mode.electricChars.indexOf(ch) > -1)\n setTimeout(operation(function() {indentLine(sel.to.line, \"smart\");}), 75);\n }\n if (handleCharBinding(e, ch)) return;\n fastPoll();\n }\n function onKeyUp(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (e_prop(e, \"keyCode\") == 16) shiftSelecting = null;\n }\n\n function onFocus() {\n if (options.readOnly == \"nocursor\") return;\n if (!focused) {\n if (options.onFocus) options.onFocus(instance);\n focused = true;\n if (wrapper.className.search(/\\bCodeMirror-focused\\b/) == -1)\n wrapper.className += \" CodeMirror-focused\";\n if (!leaveInputAlone) resetInput(true);\n }\n slowPoll();\n restartBlink();\n }\n function onBlur() {\n if (focused) {\n if (options.onBlur) options.onBlur(instance);\n focused = false;\n if (bracketHighlighted)\n operation(function(){\n if (bracketHighlighted) { bracketHighlighted(); bracketHighlighted = null; }\n })();\n wrapper.className = wrapper.className.replace(\" CodeMirror-focused\", \"\");\n }\n clearInterval(blinker);\n setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);\n }\n\n // Replace the range from from to to by the strings in newText.\n // Afterwards, set the selection to selFrom, selTo.\n function updateLines(from, to, newText, selFrom, selTo) {\n if (suppressEdits) return;\n if (history) {\n var old = [];\n doc.iter(from.line, to.line + 1, function(line) { old.push(line.text); });\n history.addChange(from.line, newText.length, old);\n while (history.done.length > options.undoDepth) history.done.shift();\n }\n updateLinesNoUndo(from, to, newText, selFrom, selTo);\n }\n function unredoHelper(from, to) {\n if (!from.length) return;\n var set = from.pop(), out = [];\n for (var i = set.length - 1; i >= 0; i -= 1) {\n var change = set[i];\n var replaced = [], end = change.start + change.added;\n doc.iter(change.start, end, function(line) { replaced.push(line.text); });\n out.push({start: change.start, added: change.old.length, old: replaced});\n var pos = clipPos({line: change.start + change.old.length - 1,\n ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])});\n updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: getLine(end-1).text.length}, change.old, pos, pos);\n }\n updateInput = true;\n to.push(out);\n }\n function undo() {unredoHelper(history.done, history.undone);}\n function redo() {unredoHelper(history.undone, history.done);}\n\n function updateLinesNoUndo(from, to, newText, selFrom, selTo) {\n if (suppressEdits) return;\n var recomputeMaxLength = false, maxLineLength = maxLine.length;\n if (!options.lineWrapping)\n doc.iter(from.line, to.line + 1, function(line) {\n if (!line.hidden && line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}\n });\n if (from.line != to.line || newText.length > 1) gutterDirty = true;\n\n var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);\n // First adjust the line structure, taking some care to leave highlighting intact.\n if (from.ch == 0 && to.ch == 0 && newText[newText.length - 1] == \"\") {\n // This is a whole-line replace. Treated specially to make\n // sure line objects move the way they are supposed to.\n var added = [], prevLine = null;\n if (from.line) {\n prevLine = getLine(from.line - 1);\n prevLine.fixMarkEnds(lastLine);\n } else lastLine.fixMarkStarts();\n for (var i = 0, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], prevLine));\n if (nlines) doc.remove(from.line, nlines, callbacks);\n if (added.length) doc.insert(from.line, added);\n } else if (firstLine == lastLine) {\n if (newText.length == 1)\n firstLine.replace(from.ch, to.ch, newText[0]);\n else {\n lastLine = firstLine.split(to.ch, newText[newText.length-1]);\n firstLine.replace(from.ch, null, newText[0]);\n firstLine.fixMarkEnds(lastLine);\n var added = [];\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n added.push(lastLine);\n doc.insert(from.line + 1, added);\n }\n } else if (newText.length == 1) {\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, \"\");\n firstLine.append(lastLine);\n doc.remove(from.line + 1, nlines, callbacks);\n } else {\n var added = [];\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, newText[newText.length-1]);\n firstLine.fixMarkEnds(lastLine);\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n if (nlines > 1) doc.remove(from.line + 1, nlines - 1, callbacks);\n doc.insert(from.line + 1, added);\n }\n if (options.lineWrapping) {\n var perLine = Math.max(5, scroller.clientWidth / charWidth() - 3);\n doc.iter(from.line, from.line + newText.length, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != line.height) updateLineHeight(line, guess);\n });\n } else {\n doc.iter(from.line, from.line + newText.length, function(line) {\n var l = line.text;\n if (!line.hidden && l.length > maxLineLength) {\n maxLine = l; maxLineLength = l.length; maxWidth = null;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) maxLengthChanged = true;\n }\n\n // Add these lines to the work array, so that they will be\n // highlighted. Adjust work lines if lines were added/removed.\n var newWork = [], lendiff = newText.length - nlines - 1;\n for (var i = 0, l = work.length; i < l; ++i) {\n var task = work[i];\n if (task < from.line) newWork.push(task);\n else if (task > to.line) newWork.push(task + lendiff);\n }\n var hlEnd = from.line + Math.min(newText.length, 500);\n highlightLines(from.line, hlEnd);\n newWork.push(hlEnd);\n work = newWork;\n startWorker(100);\n // Remember that these lines changed, for updating the display\n changes.push({from: from.line, to: to.line + 1, diff: lendiff});\n var changeObj = {from: from, to: to, text: newText};\n if (textChanged) {\n for (var cur = textChanged; cur.next; cur = cur.next) {}\n cur.next = changeObj;\n } else textChanged = changeObj;\n\n // Update the selection\n function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}\n setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));\n\n // Make sure the scroll-size div has the correct height.\n if (scroller.clientHeight)\n code.style.height = (doc.height * textHeight() + 2 * paddingTop()) + \"px\";\n }\n \n function computeMaxLength() {\n var maxLineLength = 0; \n maxLine = \"\"; maxWidth = null;\n doc.iter(0, doc.size, function(line) {\n var l = line.text;\n if (!line.hidden && l.length > maxLineLength) {\n maxLineLength = l.length; maxLine = l;\n }\n });\n maxLengthChanged = false;\n }\n\n function replaceRange(code, from, to) {\n from = clipPos(from);\n if (!to) to = from; else to = clipPos(to);\n code = splitLines(code);\n function adjustPos(pos) {\n if (posLess(pos, from)) return pos;\n if (!posLess(to, pos)) return end;\n var line = pos.line + code.length - (to.line - from.line) - 1;\n var ch = pos.ch;\n if (pos.line == to.line)\n ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));\n return {line: line, ch: ch};\n }\n var end;\n replaceRange1(code, from, to, function(end1) {\n end = end1;\n return {from: adjustPos(sel.from), to: adjustPos(sel.to)};\n });\n return end;\n }\n function replaceSelection(code, collapse) {\n replaceRange1(splitLines(code), sel.from, sel.to, function(end) {\n if (collapse == \"end\") return {from: end, to: end};\n else if (collapse == \"start\") return {from: sel.from, to: sel.from};\n else return {from: sel.from, to: end};\n });\n }\n function replaceRange1(code, from, to, computeSel) {\n var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;\n var newSel = computeSel({line: from.line + code.length - 1, ch: endch});\n updateLines(from, to, code, newSel.from, newSel.to);\n }\n\n function getRange(from, to) {\n var l1 = from.line, l2 = to.line;\n if (l1 == l2) return getLine(l1).text.slice(from.ch, to.ch);\n var code = [getLine(l1).text.slice(from.ch)];\n doc.iter(l1 + 1, l2, function(line) { code.push(line.text); });\n code.push(getLine(l2).text.slice(0, to.ch));\n return code.join(\"\\n\");\n }\n function getSelection() {\n return getRange(sel.from, sel.to);\n }\n\n var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll\n function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }\n function fastPoll() {\n var missed = false;\n pollingFast = true;\n function p() {\n startOperation();\n var changed = readInput();\n if (!changed && !missed) {missed = true; poll.set(60, p);}\n else {pollingFast = false; slowPoll();}\n endOperation();\n }\n poll.set(20, p);\n }\n\n // Previnput is a hack to work with IME. If we reset the textarea\n // on every change, that breaks IME. So we look for changes\n // compared to the previous content instead. (Modern browsers have\n // events that indicate IME taking place, but these are not widely\n // supported or compatible enough yet to rely on.)\n var prevInput = \"\";\n function readInput() {\n if (leaveInputAlone || !focused || hasSelection(input) || options.readOnly) return false;\n var text = input.value;\n if (text == prevInput) return false;\n shiftSelecting = null;\n var same = 0, l = Math.min(prevInput.length, text.length);\n while (same < l && prevInput[same] == text[same]) ++same;\n if (same < prevInput.length)\n sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};\n else if (overwrite && posEq(sel.from, sel.to))\n sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};\n replaceSelection(text.slice(same), \"end\");\n if (text.length > 1000) { input.value = prevInput = \"\"; }\n else prevInput = text;\n return true;\n }\n function resetInput(user) {\n if (!posEq(sel.from, sel.to)) {\n prevInput = \"\";\n input.value = getSelection();\n selectInput(input);\n } else if (user) prevInput = input.value = \"\";\n }\n\n function focusInput() {\n if (options.readOnly != \"nocursor\") input.focus();\n }\n\n function scrollEditorIntoView() {\n if (!cursor.getBoundingClientRect) return;\n var rect = cursor.getBoundingClientRect();\n // IE returns bogus coordinates when the instance sits inside of an iframe and the cursor is hidden\n if (ie && rect.top == rect.bottom) return;\n var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);\n if (rect.top < 0 || rect.bottom > winH) cursor.scrollIntoView();\n }\n function scrollCursorIntoView() {\n var cursor = localCoords(sel.inverted ? sel.from : sel.to);\n var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;\n return scrollIntoView(x, cursor.y, x, cursor.yBot);\n }\n function scrollIntoView(x1, y1, x2, y2) {\n var pl = paddingLeft(), pt = paddingTop();\n y1 += pt; y2 += pt; x1 += pl; x2 += pl;\n var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true;\n if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1); scrolled = true;}\n else if (y2 > screentop + screen) {scroller.scrollTop = y2 - screen; scrolled = true;}\n\n var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;\n var gutterw = options.fixedGutter ? gutter.clientWidth : 0;\n var atLeft = x1 < gutterw + pl + 10;\n if (x1 < screenleft + gutterw || atLeft) {\n if (atLeft) x1 = 0;\n scroller.scrollLeft = Math.max(0, x1 - 10 - gutterw);\n scrolled = true;\n }\n else if (x2 > screenw + screenleft - 3) {\n scroller.scrollLeft = x2 + 10 - screenw;\n scrolled = true;\n if (x2 > code.clientWidth) result = false;\n }\n if (scrolled && options.onScroll) options.onScroll(instance);\n return result;\n }\n\n function visibleLines() {\n var lh = textHeight(), top = scroller.scrollTop - paddingTop();\n var fromHeight = Math.max(0, Math.floor(top / lh));\n var toHeight = Math.ceil((top + scroller.clientHeight) / lh);\n return {from: lineAtHeight(doc, fromHeight),\n to: lineAtHeight(doc, toHeight)};\n }\n // Uses a set of changes plus the current scroll position to\n // determine which DOM updates have to be made, and makes the\n // updates.\n function updateDisplay(changes, suppressCallback) {\n if (!scroller.clientWidth) {\n showingFrom = showingTo = displayOffset = 0;\n return;\n }\n // Compute the new visible window\n var visible = visibleLines();\n // Bail out if the visible area is already rendered and nothing changed.\n if (changes !== true && changes.length == 0 && visible.from > showingFrom && visible.to < showingTo) return;\n var from = Math.max(visible.from - 100, 0), to = Math.min(doc.size, visible.to + 100);\n if (showingFrom < from && from - showingFrom < 20) from = showingFrom;\n if (showingTo > to && showingTo - to < 20) to = Math.min(doc.size, showingTo);\n\n // Create a range of theoretically intact lines, and punch holes\n // in that using the change info.\n var intact = changes === true ? [] :\n computeIntact([{from: showingFrom, to: showingTo, domStart: 0}], changes);\n // Clip off the parts that won't be visible\n var intactLines = 0;\n for (var i = 0; i < intact.length; ++i) {\n var range = intact[i];\n if (range.from < from) {range.domStart += (from - range.from); range.from = from;}\n if (range.to > to) range.to = to;\n if (range.from >= range.to) intact.splice(i--, 1);\n else intactLines += range.to - range.from;\n }\n if (intactLines == to - from && from == showingFrom && to == showingTo) return;\n intact.sort(function(a, b) {return a.domStart - b.domStart;});\n\n var th = textHeight(), gutterDisplay = gutter.style.display;\n lineDiv.style.display = \"none\";\n patchDisplay(from, to, intact);\n lineDiv.style.display = gutter.style.display = \"\";\n\n // Position the mover div to align with the lines it's supposed\n // to be showing (which will cover the visible display)\n var different = from != showingFrom || to != showingTo || lastSizeC != scroller.clientHeight + th;\n // This is just a bogus formula that detects when the editor is\n // resized or the font size changes.\n if (different) lastSizeC = scroller.clientHeight + th;\n showingFrom = from; showingTo = to;\n displayOffset = heightAtLine(doc, from);\n mover.style.top = (displayOffset * th) + \"px\";\n if (scroller.clientHeight)\n code.style.height = (doc.height * th + 2 * paddingTop()) + \"px\";\n\n // Since this is all rather error prone, it is honoured with the\n // only assertion in the whole file.\n if (lineDiv.childNodes.length != showingTo - showingFrom)\n throw new Error(\"BAD PATCH! \" + JSON.stringify(intact) + \" size=\" + (showingTo - showingFrom) +\n \" nodes=\" + lineDiv.childNodes.length);\n\n function checkHeights() {\n maxWidth = scroller.clientWidth;\n var curNode = lineDiv.firstChild, heightChanged = false;\n doc.iter(showingFrom, showingTo, function(line) {\n if (!line.hidden) {\n var height = Math.round(curNode.offsetHeight / th) || 1;\n if (line.height != height) {\n updateLineHeight(line, height);\n gutterDirty = heightChanged = true;\n }\n }\n curNode = curNode.nextSibling;\n });\n if (heightChanged)\n code.style.height = (doc.height * th + 2 * paddingTop()) + \"px\";\n return heightChanged;\n }\n\n if (options.lineWrapping) {\n checkHeights();\n } else {\n if (maxWidth == null) maxWidth = stringWidth(maxLine);\n if (maxWidth > scroller.clientWidth) {\n lineSpace.style.width = maxWidth + \"px\";\n // Needed to prevent odd wrapping/hiding of widgets placed in here.\n code.style.width = \"\";\n code.style.width = scroller.scrollWidth + \"px\";\n } else {\n lineSpace.style.width = code.style.width = \"\";\n }\n }\n\n gutter.style.display = gutterDisplay;\n if (different || gutterDirty) {\n // If the gutter grew in size, re-check heights. If those changed, re-draw gutter.\n updateGutter() && options.lineWrapping && checkHeights() && updateGutter();\n }\n updateSelection();\n if (!suppressCallback && options.onUpdate) options.onUpdate(instance);\n return true;\n }\n\n function computeIntact(intact, changes) {\n for (var i = 0, l = changes.length || 0; i < l; ++i) {\n var change = changes[i], intact2 = [], diff = change.diff || 0;\n for (var j = 0, l2 = intact.length; j < l2; ++j) {\n var range = intact[j];\n if (change.to <= range.from && change.diff)\n intact2.push({from: range.from + diff, to: range.to + diff,\n domStart: range.domStart});\n else if (change.to <= range.from || change.from >= range.to)\n intact2.push(range);\n else {\n if (change.from > range.from)\n intact2.push({from: range.from, to: change.from, domStart: range.domStart});\n if (change.to < range.to)\n intact2.push({from: change.to + diff, to: range.to + diff,\n domStart: range.domStart + (change.to - range.from)});\n }\n }\n intact = intact2;\n }\n return intact;\n }\n\n function patchDisplay(from, to, intact) {\n // The first pass removes the DOM nodes that aren't intact.\n if (!intact.length) lineDiv.innerHTML = \"\";\n else {\n function killNode(node) {\n var tmp = node.nextSibling;\n node.parentNode.removeChild(node);\n return tmp;\n }\n var domPos = 0, curNode = lineDiv.firstChild, n;\n for (var i = 0; i < intact.length; ++i) {\n var cur = intact[i];\n while (cur.domStart > domPos) {curNode = killNode(curNode); domPos++;}\n for (var j = 0, e = cur.to - cur.from; j < e; ++j) {curNode = curNode.nextSibling; domPos++;}\n }\n while (curNode) curNode = killNode(curNode);\n }\n // This pass fills in the lines that actually changed.\n var nextIntact = intact.shift(), curNode = lineDiv.firstChild, j = from;\n var scratch = document.createElement(\"div\");\n doc.iter(from, to, function(line) {\n if (nextIntact && nextIntact.to == j) nextIntact = intact.shift();\n if (!nextIntact || nextIntact.from > j) {\n if (line.hidden) var html = scratch.innerHTML = \"<pre></pre>\";\n else {\n var html = '<pre' + (line.className ? ' class=\"' + line.className + '\"' : '') + '>'\n + line.getHTML(makeTab) + '</pre>';\n // Kludge to make sure the styled element lies behind the selection (by z-index)\n if (line.bgClassName)\n html = '<div style=\"position: relative\"><pre class=\"' + line.bgClassName +\n '\" style=\"position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2\">&#160;</pre>' + html + \"</div>\";\n }\n scratch.innerHTML = html;\n lineDiv.insertBefore(scratch.firstChild, curNode);\n } else {\n curNode = curNode.nextSibling;\n }\n ++j;\n });\n }\n\n function updateGutter() {\n if (!options.gutter && !options.lineNumbers) return;\n var hText = mover.offsetHeight, hEditor = scroller.clientHeight;\n gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + \"px\";\n var html = [], i = showingFrom, normalNode;\n doc.iter(showingFrom, Math.max(showingTo, showingFrom + 1), function(line) {\n if (line.hidden) {\n html.push(\"<pre></pre>\");\n } else {\n var marker = line.gutterMarker;\n var text = options.lineNumbers ? i + options.firstLineNumber : null;\n if (marker && marker.text)\n text = marker.text.replace(\"%N%\", text != null ? text : \"\");\n else if (text == null)\n text = \"\\u00a0\";\n html.push((marker && marker.style ? '<pre class=\"' + marker.style + '\">' : \"<pre>\"), text);\n for (var j = 1; j < line.height; ++j) html.push(\"<br/>&#160;\");\n html.push(\"</pre>\");\n if (!marker) normalNode = i;\n }\n ++i;\n });\n gutter.style.display = \"none\";\n gutterText.innerHTML = html.join(\"\");\n // Make sure scrolling doesn't cause number gutter size to pop\n if (normalNode != null) {\n var node = gutterText.childNodes[normalNode - showingFrom];\n var minwidth = String(doc.size).length, val = eltText(node), pad = \"\";\n while (val.length + pad.length < minwidth) pad += \"\\u00a0\";\n if (pad) node.insertBefore(document.createTextNode(pad), node.firstChild);\n }\n gutter.style.display = \"\";\n var resized = Math.abs((parseInt(lineSpace.style.marginLeft) || 0) - gutter.offsetWidth) > 2;\n lineSpace.style.marginLeft = gutter.offsetWidth + \"px\";\n gutterDirty = false;\n return resized;\n }\n function updateSelection() {\n var collapsed = posEq(sel.from, sel.to);\n var fromPos = localCoords(sel.from, true);\n var toPos = collapsed ? fromPos : localCoords(sel.to, true);\n var headPos = sel.inverted ? fromPos : toPos, th = textHeight();\n var wrapOff = eltOffset(wrapper), lineOff = eltOffset(lineDiv);\n inputDiv.style.top = Math.max(0, Math.min(scroller.offsetHeight, headPos.y + lineOff.top - wrapOff.top)) + \"px\";\n inputDiv.style.left = Math.max(0, Math.min(scroller.offsetWidth, headPos.x + lineOff.left - wrapOff.left)) + \"px\";\n if (collapsed) {\n cursor.style.top = headPos.y + \"px\";\n cursor.style.left = (options.lineWrapping ? Math.min(headPos.x, lineSpace.offsetWidth) : headPos.x) + \"px\";\n cursor.style.display = \"\";\n selectionDiv.style.display = \"none\";\n } else {\n var sameLine = fromPos.y == toPos.y, html = \"\";\n var clientWidth = lineSpace.clientWidth || lineSpace.offsetWidth;\n var clientHeight = lineSpace.clientHeight || lineSpace.offsetHeight;\n function add(left, top, right, height) {\n var rstyle = quirksMode ? \"width: \" + (!right ? clientWidth : clientWidth - right - left) + \"px\"\n : \"right: \" + right + \"px\";\n html += '<div class=\"CodeMirror-selected\" style=\"position: absolute; left: ' + left +\n 'px; top: ' + top + 'px; ' + rstyle + '; height: ' + height + 'px\"></div>';\n }\n if (sel.from.ch && fromPos.y >= 0) {\n var right = sameLine ? clientWidth - toPos.x : 0;\n add(fromPos.x, fromPos.y, right, th);\n }\n var middleStart = Math.max(0, fromPos.y + (sel.from.ch ? th : 0));\n var middleHeight = Math.min(toPos.y, clientHeight) - middleStart;\n if (middleHeight > 0.2 * th)\n add(0, middleStart, 0, middleHeight);\n if ((!sameLine || !sel.from.ch) && toPos.y < clientHeight - .5 * th)\n add(0, toPos.y, clientWidth - toPos.x, th);\n selectionDiv.innerHTML = html;\n cursor.style.display = \"none\";\n selectionDiv.style.display = \"\";\n }\n }\n\n function setShift(val) {\n if (val) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);\n else shiftSelecting = null;\n }\n function setSelectionUser(from, to) {\n var sh = shiftSelecting && clipPos(shiftSelecting);\n if (sh) {\n if (posLess(sh, from)) from = sh;\n else if (posLess(to, sh)) to = sh;\n }\n setSelection(from, to);\n userSelChange = true;\n }\n // Update the selection. Last two args are only used by\n // updateLines, since they have to be expressed in the line\n // numbers before the update.\n function setSelection(from, to, oldFrom, oldTo) {\n goalColumn = null;\n if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}\n if (posEq(sel.from, from) && posEq(sel.to, to)) return;\n if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}\n\n // Skip over hidden lines.\n if (from.line != oldFrom) {\n var from1 = skipHidden(from, oldFrom, sel.from.ch);\n // If there is no non-hidden line left, force visibility on current line\n if (!from1) setLineHidden(from.line, false);\n else from = from1;\n }\n if (to.line != oldTo) to = skipHidden(to, oldTo, sel.to.ch);\n\n if (posEq(from, to)) sel.inverted = false;\n else if (posEq(from, sel.to)) sel.inverted = false;\n else if (posEq(to, sel.from)) sel.inverted = true;\n\n if (options.autoClearEmptyLines && posEq(sel.from, sel.to)) {\n var head = sel.inverted ? from : to;\n if (head.line != sel.from.line && sel.from.line < doc.size) {\n var oldLine = getLine(sel.from.line);\n if (/^\\s+$/.test(oldLine.text))\n setTimeout(operation(function() {\n if (oldLine.parent && /^\\s+$/.test(oldLine.text)) {\n var no = lineNo(oldLine);\n replaceRange(\"\", {line: no, ch: 0}, {line: no, ch: oldLine.text.length});\n }\n }, 10));\n }\n }\n\n sel.from = from; sel.to = to;\n selectionChanged = true;\n }\n function skipHidden(pos, oldLine, oldCh) {\n function getNonHidden(dir) {\n var lNo = pos.line + dir, end = dir == 1 ? doc.size : -1;\n while (lNo != end) {\n var line = getLine(lNo);\n if (!line.hidden) {\n var ch = pos.ch;\n if (toEnd || ch > oldCh || ch > line.text.length) ch = line.text.length;\n return {line: lNo, ch: ch};\n }\n lNo += dir;\n }\n }\n var line = getLine(pos.line);\n var toEnd = pos.ch == line.text.length && pos.ch != oldCh;\n if (!line.hidden) return pos;\n if (pos.line >= oldLine) return getNonHidden(1) || getNonHidden(-1);\n else return getNonHidden(-1) || getNonHidden(1);\n }\n function setCursor(line, ch, user) {\n var pos = clipPos({line: line, ch: ch || 0});\n (user ? setSelectionUser : setSelection)(pos, pos);\n }\n\n function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}\n function clipPos(pos) {\n if (pos.line < 0) return {line: 0, ch: 0};\n if (pos.line >= doc.size) return {line: doc.size-1, ch: getLine(doc.size-1).text.length};\n var ch = pos.ch, linelen = getLine(pos.line).text.length;\n if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};\n else if (ch < 0) return {line: pos.line, ch: 0};\n else return pos;\n }\n\n function findPosH(dir, unit) {\n var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;\n var lineObj = getLine(line);\n function findNextLine() {\n for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {\n var lo = getLine(l);\n if (!lo.hidden) { line = l; lineObj = lo; return true; }\n }\n }\n function moveOnce(boundToLine) {\n if (ch == (dir < 0 ? 0 : lineObj.text.length)) {\n if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;\n else return false;\n } else ch += dir;\n return true;\n }\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\") {\n var sawWord = false;\n for (;;) {\n if (dir < 0) if (!moveOnce()) break;\n if (isWordChar(lineObj.text.charAt(ch))) sawWord = true;\n else if (sawWord) {if (dir < 0) {dir = 1; moveOnce();} break;}\n if (dir > 0) if (!moveOnce()) break;\n }\n }\n return {line: line, ch: ch};\n }\n function moveH(dir, unit) {\n var pos = dir < 0 ? sel.from : sel.to;\n if (shiftSelecting || posEq(sel.from, sel.to)) pos = findPosH(dir, unit);\n setCursor(pos.line, pos.ch, true);\n }\n function deleteH(dir, unit) {\n if (!posEq(sel.from, sel.to)) replaceRange(\"\", sel.from, sel.to);\n else if (dir < 0) replaceRange(\"\", findPosH(dir, unit), sel.to);\n else replaceRange(\"\", sel.from, findPosH(dir, unit));\n userSelChange = true;\n }\n var goalColumn = null;\n function moveV(dir, unit) {\n var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);\n if (goalColumn != null) pos.x = goalColumn;\n if (unit == \"page\") dist = Math.min(scroller.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n else if (unit == \"line\") dist = textHeight();\n var target = coordsChar(pos.x, pos.y + dist * dir + 2);\n if (unit == \"page\") scroller.scrollTop += localCoords(target, true).y - pos.y;\n setCursor(target.line, target.ch, true);\n goalColumn = pos.x;\n }\n\n function selectWordAt(pos) {\n var line = getLine(pos.line).text;\n var start = pos.ch, end = pos.ch;\n while (start > 0 && isWordChar(line.charAt(start - 1))) --start;\n while (end < line.length && isWordChar(line.charAt(end))) ++end;\n setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});\n }\n function selectLine(line) {\n setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));\n }\n function indentSelected(mode) {\n if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);\n var e = sel.to.line - (sel.to.ch ? 0 : 1);\n for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);\n }\n\n function indentLine(n, how) {\n if (!how) how = \"add\";\n if (how == \"smart\") {\n if (!mode.indent) how = \"prev\";\n else var state = getStateBefore(n);\n }\n\n var line = getLine(n), curSpace = line.indentation(options.tabSize),\n curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (how == \"prev\") {\n if (n) indentation = getLine(n-1).indentation(options.tabSize);\n else indentation = 0;\n }\n else if (how == \"smart\") indentation = mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n else if (how == \"add\") indentation = curSpace + options.indentUnit;\n else if (how == \"subtract\") indentation = curSpace - options.indentUnit;\n indentation = Math.max(0, indentation);\n var diff = indentation - curSpace;\n\n if (!diff) {\n if (sel.from.line != n && sel.to.line != n) return;\n var indentString = curSpaceString;\n }\n else {\n var indentString = \"\", pos = 0;\n if (options.indentWithTabs)\n for (var i = Math.floor(indentation / options.tabSize); i; --i) {pos += options.tabSize; indentString += \"\\t\";}\n while (pos < indentation) {++pos; indentString += \" \";}\n }\n\n replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});\n }\n\n function loadMode() {\n mode = CodeMirror.getMode(options, options.mode);\n doc.iter(0, doc.size, function(line) { line.stateAfter = null; });\n work = [0];\n startWorker();\n }\n function gutterChanged() {\n var visible = options.gutter || options.lineNumbers;\n gutter.style.display = visible ? \"\" : \"none\";\n if (visible) gutterDirty = true;\n else lineDiv.parentNode.style.marginLeft = 0;\n }\n function wrappingChanged(from, to) {\n if (options.lineWrapping) {\n wrapper.className += \" CodeMirror-wrap\";\n var perLine = scroller.clientWidth / charWidth() - 3;\n doc.iter(0, doc.size, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != 1) updateLineHeight(line, guess);\n });\n lineSpace.style.width = code.style.width = \"\";\n } else {\n wrapper.className = wrapper.className.replace(\" CodeMirror-wrap\", \"\");\n maxWidth = null; maxLine = \"\";\n doc.iter(0, doc.size, function(line) {\n if (line.height != 1 && !line.hidden) updateLineHeight(line, 1);\n if (line.text.length > maxLine.length) maxLine = line.text;\n });\n }\n changes.push({from: 0, to: doc.size});\n }\n function makeTab(col) {\n var w = options.tabSize - col % options.tabSize, cached = tabCache[w];\n if (cached) return cached;\n for (var str = '<span class=\"cm-tab\">', i = 0; i < w; ++i) str += \" \";\n return (tabCache[w] = {html: str + \"</span>\", width: w});\n }\n function themeChanged() {\n scroller.className = scroller.className.replace(/\\s*cm-s-\\S+/g, \"\") +\n options.theme.replace(/(^|\\s)\\s*/g, \" cm-s-\");\n }\n function keyMapChanged() {\n var style = keyMap[options.keyMap].style;\n wrapper.className = wrapper.className.replace(/\\s*cm-keymap-\\S+/g, \"\") +\n (style ? \" cm-keymap-\" + style : \"\");\n }\n\n function TextMarker() { this.set = []; }\n TextMarker.prototype.clear = operation(function() {\n var min = Infinity, max = -Infinity;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n if (!mk || !line.parent) continue;\n var lineN = lineNo(line);\n min = Math.min(min, lineN); max = Math.max(max, lineN);\n for (var j = 0; j < mk.length; ++j)\n if (mk[j].marker == this) mk.splice(j--, 1);\n }\n if (min != Infinity)\n changes.push({from: min, to: max + 1});\n });\n TextMarker.prototype.find = function() {\n var from, to;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n for (var j = 0; j < mk.length; ++j) {\n var mark = mk[j];\n if (mark.marker == this) {\n if (mark.from != null || mark.to != null) {\n var found = lineNo(line);\n if (found != null) {\n if (mark.from != null) from = {line: found, ch: mark.from};\n if (mark.to != null) to = {line: found, ch: mark.to};\n }\n }\n }\n }\n }\n return {from: from, to: to};\n };\n\n function markText(from, to, className) {\n from = clipPos(from); to = clipPos(to);\n var tm = new TextMarker();\n if (!posLess(from, to)) return tm;\n function add(line, from, to, className) {\n getLine(line).addMark(new MarkedText(from, to, className, tm));\n }\n if (from.line == to.line) add(from.line, from.ch, to.ch, className);\n else {\n add(from.line, from.ch, null, className);\n for (var i = from.line + 1, e = to.line; i < e; ++i)\n add(i, null, null, className);\n add(to.line, null, to.ch, className);\n }\n changes.push({from: from.line, to: to.line + 1});\n return tm;\n }\n\n function setBookmark(pos) {\n pos = clipPos(pos);\n var bm = new Bookmark(pos.ch);\n getLine(pos.line).addMark(bm);\n return bm;\n }\n\n function findMarksAt(pos) {\n pos = clipPos(pos);\n var markers = [], marked = getLine(pos.line).marked;\n if (!marked) return markers;\n for (var i = 0, e = marked.length; i < e; ++i) {\n var m = marked[i];\n if ((m.from == null || m.from <= pos.ch) &&\n (m.to == null || m.to >= pos.ch))\n markers.push(m.marker || m);\n }\n return markers;\n }\n\n function addGutterMarker(line, text, className) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = {text: text, style: className};\n gutterDirty = true;\n return line;\n }\n function removeGutterMarker(line) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = null;\n gutterDirty = true;\n }\n\n function changeLine(handle, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(clipLine(handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no)) changes.push({from: no, to: no + 1});\n else return null;\n return line;\n }\n function setLineClass(handle, className, bgClassName) {\n return changeLine(handle, function(line) {\n if (line.className != className || line.bgClassName != bgClassName) {\n line.className = className;\n line.bgClassName = bgClassName;\n return true;\n }\n });\n }\n function setLineHidden(handle, hidden) {\n return changeLine(handle, function(line, no) {\n if (line.hidden != hidden) {\n line.hidden = hidden;\n if (!options.lineWrapping) {\n var l = line.text;\n if (hidden && l.length == maxLine.length) {\n maxLengthChanged = true;\n }\n else if (!hidden && l.length > maxLine.length) {\n maxLine = l; maxWidth = null;\n maxLengthChanged = false;\n }\n }\n updateLineHeight(line, hidden ? 0 : 1);\n var fline = sel.from.line, tline = sel.to.line;\n if (hidden && (fline == no || tline == no)) {\n var from = fline == no ? skipHidden({line: fline, ch: 0}, fline, 0) : sel.from;\n var to = tline == no ? skipHidden({line: tline, ch: 0}, tline, 0) : sel.to;\n // Can't hide the last visible line, we'd have no place to put the cursor\n if (!to) return;\n setSelection(from, to);\n }\n return (gutterDirty = true);\n }\n });\n }\n\n function lineInfo(line) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n var n = line;\n line = getLine(line);\n if (!line) return null;\n }\n else {\n var n = lineNo(line);\n if (n == null) return null;\n }\n var marker = line.gutterMarker;\n return {line: n, handle: line, text: line.text, markerText: marker && marker.text,\n markerClass: marker && marker.style, lineClass: line.className, bgClass: line.bgClassName};\n }\n\n function stringWidth(str) {\n measure.innerHTML = \"<pre><span>x</span></pre>\";\n measure.firstChild.firstChild.firstChild.nodeValue = str;\n return measure.firstChild.firstChild.offsetWidth || 10;\n }\n // These are used to go from pixel positions to character\n // positions, taking varying character widths into account.\n function charFromX(line, x) {\n if (x <= 0) return 0;\n var lineObj = getLine(line), text = lineObj.text;\n function getX(len) {\n return measureLine(lineObj, len).left;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil(x / charWidth()));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return to;\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return (toX - x > x - fromX) ? from : to;\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n\n var tempId = \"CodeMirror-temp-\" + Math.floor(Math.random() * 0xffffff).toString(16);\n function measureLine(line, ch) {\n if (ch == 0) return {top: 0, left: 0};\n var wbr = options.lineWrapping && ch < line.text.length &&\n spanAffectsWrapping.test(line.text.slice(ch - 1, ch + 1));\n measure.innerHTML = \"<pre>\" + line.getHTML(makeTab, ch, tempId, wbr) + \"</pre>\";\n var elt = document.getElementById(tempId);\n var top = elt.offsetTop, left = elt.offsetLeft;\n // Older IEs report zero offsets for spans directly after a wrap\n if (ie && top == 0 && left == 0) {\n var backup = document.createElement(\"span\");\n backup.innerHTML = \"x\";\n elt.parentNode.insertBefore(backup, elt.nextSibling);\n top = backup.offsetTop;\n }\n return {top: top, left: left};\n }\n function localCoords(pos, inLineWrap) {\n var x, lh = textHeight(), y = lh * (heightAtLine(doc, pos.line) - (inLineWrap ? displayOffset : 0));\n if (pos.ch == 0) x = 0;\n else {\n var sp = measureLine(getLine(pos.line), pos.ch);\n x = sp.left;\n if (options.lineWrapping) y += Math.max(0, sp.top);\n }\n return {x: x, y: y, yBot: y + lh};\n }\n // Coords must be lineSpace-local\n function coordsChar(x, y) {\n if (y < 0) y = 0;\n var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);\n var lineNo = lineAtHeight(doc, heightPos);\n if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};\n var lineObj = getLine(lineNo), text = lineObj.text;\n var tw = options.lineWrapping, innerOff = tw ? heightPos - heightAtLine(doc, lineNo) : 0;\n if (x <= 0 && innerOff == 0) return {line: lineNo, ch: 0};\n function getX(len) {\n var sp = measureLine(lineObj, len);\n if (tw) {\n var off = Math.round(sp.top / th);\n return Math.max(0, sp.left + (off - innerOff) * scroller.clientWidth);\n }\n return sp.left;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil((x + innerOff * scroller.clientWidth * .9) / cw));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return {line: lineNo, ch: to};\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return {line: lineNo, ch: (toX - x > x - fromX) ? from : to};\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n function pageCoords(pos) {\n var local = localCoords(pos, true), off = eltOffset(lineSpace);\n return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};\n }\n\n var cachedHeight, cachedHeightFor, measureText;\n function textHeight() {\n if (measureText == null) {\n measureText = \"<pre>\";\n for (var i = 0; i < 49; ++i) measureText += \"x<br/>\";\n measureText += \"x</pre>\";\n }\n var offsetHeight = lineDiv.clientHeight;\n if (offsetHeight == cachedHeightFor) return cachedHeight;\n cachedHeightFor = offsetHeight;\n measure.innerHTML = measureText;\n cachedHeight = measure.firstChild.offsetHeight / 50 || 1;\n measure.innerHTML = \"\";\n return cachedHeight;\n }\n var cachedWidth, cachedWidthFor = 0;\n function charWidth() {\n if (scroller.clientWidth == cachedWidthFor) return cachedWidth;\n cachedWidthFor = scroller.clientWidth;\n return (cachedWidth = stringWidth(\"x\"));\n }\n function paddingTop() {return lineSpace.offsetTop;}\n function paddingLeft() {return lineSpace.offsetLeft;}\n\n function posFromMouse(e, liberal) {\n var offW = eltOffset(scroller, true), x, y;\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX; y = e.clientY; } catch (e) { return null; }\n // This is a mess of a heuristic to try and determine whether a\n // scroll-bar was clicked or not, and to return null if one was\n // (and !liberal).\n if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))\n return null;\n var offL = eltOffset(lineSpace, true);\n return coordsChar(x - offL.left, y - offL.top);\n }\n function onContextMenu(e) {\n var pos = posFromMouse(e), scrollPos = scroller.scrollTop;\n if (!pos || window.opera) return; // Opera is difficult.\n if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))\n operation(setCursor)(pos.line, pos.ch);\n\n var oldCSS = input.style.cssText;\n inputDiv.style.position = \"absolute\";\n input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: white; \" +\n \"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n leaveInputAlone = true;\n var val = input.value = getSelection();\n focusInput();\n selectInput(input);\n function rehide() {\n var newVal = splitLines(input.value).join(\"\\n\");\n if (newVal != val) operation(replaceSelection)(newVal, \"end\");\n inputDiv.style.position = \"relative\";\n input.style.cssText = oldCSS;\n if (ie_lt9) scroller.scrollTop = scrollPos;\n leaveInputAlone = false;\n resetInput(true);\n slowPoll();\n }\n\n if (gecko) {\n e_stop(e);\n var mouseup = connect(window, \"mouseup\", function() {\n mouseup();\n setTimeout(rehide, 20);\n }, true);\n } else {\n setTimeout(rehide, 50);\n }\n }\n\n // Cursor-blinking\n function restartBlink() {\n clearInterval(blinker);\n var on = true;\n cursor.style.visibility = \"\";\n blinker = setInterval(function() {\n cursor.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, 650);\n }\n\n var matching = {\"(\": \")>\", \")\": \"(<\", \"[\": \"]>\", \"]\": \"[<\", \"{\": \"}>\", \"}\": \"{<\"};\n function matchBrackets(autoclear) {\n var head = sel.inverted ? sel.from : sel.to, line = getLine(head.line), pos = head.ch - 1;\n var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];\n if (!match) return;\n var ch = match.charAt(0), forward = match.charAt(1) == \">\", d = forward ? 1 : -1, st = line.styles;\n for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)\n if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}\n\n var stack = [line.text.charAt(pos)], re = /[(){}[\\]]/;\n function scan(line, from, to) {\n if (!line.text) return;\n var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;\n for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {\n var text = st[i];\n if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;}\n for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {\n if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {\n var match = matching[cur];\n if (match.charAt(1) == \">\" == forward) stack.push(cur);\n else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};\n else if (!stack.length) return {pos: pos, match: true};\n }\n }\n }\n }\n for (var i = head.line, e = forward ? Math.min(i + 100, doc.size) : Math.max(-1, i - 100); i != e; i+=d) {\n var line = getLine(i), first = i == head.line;\n var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);\n if (found) break;\n }\n if (!found) found = {pos: null, match: false};\n var style = found.match ? \"CodeMirror-matchingbracket\" : \"CodeMirror-nonmatchingbracket\";\n var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),\n two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);\n var clear = operation(function(){one.clear(); two && two.clear();});\n if (autoclear) setTimeout(clear, 800);\n else bracketHighlighted = clear;\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(n) {\n var minindent, minline;\n for (var search = n, lim = n - 40; search > lim; --search) {\n if (search == 0) return 0;\n var line = getLine(search-1);\n if (line.stateAfter) return search;\n var indented = line.indentation(options.tabSize);\n if (minline == null || minindent > indented) {\n minline = search - 1;\n minindent = indented;\n }\n }\n return minline;\n }\n function getStateBefore(n) {\n var start = findStartLine(n), state = start && getLine(start-1).stateAfter;\n if (!state) state = startState(mode);\n else state = copyState(mode, state);\n doc.iter(start, n, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n if (start < n) changes.push({from: start, to: n});\n if (n < doc.size && !getLine(n).stateAfter) work.push(n);\n return state;\n }\n function highlightLines(start, end) {\n var state = getStateBefore(start);\n doc.iter(start, end, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n }\n function highlightWorker() {\n var end = +new Date + options.workTime;\n var foundWork = work.length;\n while (work.length) {\n if (!getLine(showingFrom).stateAfter) var task = showingFrom;\n else var task = work.pop();\n if (task >= doc.size) continue;\n var start = findStartLine(task), state = start && getLine(start-1).stateAfter;\n if (state) state = copyState(mode, state);\n else state = startState(mode);\n\n var unchanged = 0, compare = mode.compareStates, realChange = false,\n i = start, bail = false;\n doc.iter(i, doc.size, function(line) {\n var hadState = line.stateAfter;\n if (+new Date > end) {\n work.push(i);\n startWorker(options.workDelay);\n if (realChange) changes.push({from: task, to: i + 1});\n return (bail = true);\n }\n var changed = line.highlight(mode, state, options.tabSize);\n if (changed) realChange = true;\n line.stateAfter = copyState(mode, state);\n var done = null;\n if (compare) {\n var same = hadState && compare(hadState, state);\n if (same != Pass) done = !!same;\n }\n if (done == null) {\n if (changed !== false || !hadState) unchanged = 0;\n else if (++unchanged > 3 && (!mode.indent || mode.indent(hadState, \"\") == mode.indent(state, \"\")))\n done = true;\n }\n if (done) return true;\n ++i;\n });\n if (bail) return;\n if (realChange) changes.push({from: task, to: i + 1});\n }\n if (foundWork && options.onHighlightComplete)\n options.onHighlightComplete(instance);\n }\n function startWorker(time) {\n if (!work.length) return;\n highlight.set(time, operation(highlightWorker));\n }\n\n // Operations are used to wrap changes in such a way that each\n // change won't have to update the cursor and display (which would\n // be awkward, slow, and error-prone), but instead updates are\n // batched and then all combined and executed at once.\n function startOperation() {\n updateInput = userSelChange = textChanged = null;\n changes = []; selectionChanged = false; callbacks = [];\n }\n function endOperation() {\n var reScroll = false, updated;\n if (maxLengthChanged) computeMaxLength();\n if (selectionChanged) reScroll = !scrollCursorIntoView();\n if (changes.length) updated = updateDisplay(changes, true);\n else {\n if (selectionChanged) updateSelection();\n if (gutterDirty) updateGutter();\n }\n if (reScroll) scrollCursorIntoView();\n if (selectionChanged) {scrollEditorIntoView(); restartBlink();}\n\n if (focused && !leaveInputAlone &&\n (updateInput === true || (updateInput !== false && selectionChanged)))\n resetInput(userSelChange);\n\n if (selectionChanged && options.matchBrackets)\n setTimeout(operation(function() {\n if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}\n if (posEq(sel.from, sel.to)) matchBrackets(false);\n }), 20);\n var tc = textChanged, cbs = callbacks; // these can be reset by callbacks\n if (selectionChanged && options.onCursorActivity)\n options.onCursorActivity(instance);\n if (tc && options.onChange && instance)\n options.onChange(instance, tc);\n for (var i = 0; i < cbs.length; ++i) cbs[i](instance);\n if (updated && options.onUpdate) options.onUpdate(instance);\n }\n var nestedOperation = 0;\n function operation(f) {\n return function() {\n if (!nestedOperation++) startOperation();\n try {var result = f.apply(this, arguments);}\n finally {if (!--nestedOperation) endOperation();}\n return result;\n };\n }\n\n function compoundChange(f) {\n history.startCompound();\n try { return f(); } finally { history.endCompound(); }\n }\n\n for (var ext in extensions)\n if (extensions.propertyIsEnumerable(ext) &&\n !instance.propertyIsEnumerable(ext))\n instance[ext] = extensions[ext];\n return instance;\n } // (end of function CodeMirror)", "function CodeMirror(place, givenOptions) {\n // Determine effective options based on given values and defaults.\n var options = {}, defaults = CodeMirror.defaults;\n for (var opt in defaults)\n if (defaults.hasOwnProperty(opt))\n options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];\n\n // The element in which the editor lives.\n var wrapper = document.createElement(\"div\");\n wrapper.className = \"CodeMirror\" + (options.lineWrapping ? \" CodeMirror-wrap\" : \"\");\n // This mess creates the base DOM structure for the editor.\n wrapper.innerHTML =\n '<div style=\"overflow: hidden; position: relative; width: 3px; height: 0px;\">' + // Wraps and hides input textarea\n '<textarea style=\"position: absolute; padding: 0; width: 1px; height: 1em\" wrap=\"off\" ' +\n 'autocorrect=\"off\" autocapitalize=\"off\"></textarea></div>' +\n '<div class=\"CodeMirror-scroll\" tabindex=\"-1\">' +\n '<div style=\"position: relative\">' + // Set to the height of the text, causes scrolling\n '<div style=\"position: relative\">' + // Moved around its parent to cover visible view\n '<div class=\"CodeMirror-gutter\"><div class=\"CodeMirror-gutter-text\"></div></div>' +\n // Provides positioning relative to (visible) text origin\n '<div class=\"CodeMirror-lines\"><div style=\"position: relative; z-index: 0\">' +\n '<div style=\"position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden;\"></div>' +\n '<pre class=\"CodeMirror-cursor\">&#160;</pre>' + // Absolutely positioned blinky cursor\n '<div style=\"position: relative; z-index: -1\"></div><div></div>' + // DIVs containing the selection and the actual code\n '</div></div></div></div></div>';\n if (place.appendChild) place.appendChild(wrapper); else place(wrapper);\n // I've never seen more elegant code in my life.\n var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,\n scroller = wrapper.lastChild, code = scroller.firstChild,\n mover = code.firstChild, gutter = mover.firstChild, gutterText = gutter.firstChild,\n lineSpace = gutter.nextSibling.firstChild, measure = lineSpace.firstChild,\n cursor = measure.nextSibling, selectionDiv = cursor.nextSibling,\n lineDiv = selectionDiv.nextSibling;\n themeChanged();\n // Needed to hide big blue blinking cursor on Mobile Safari\n if (ios) input.style.width = \"0px\";\n if (!webkit) lineSpace.draggable = true;\n lineSpace.style.outline = \"none\";\n if (options.tabindex != null) input.tabIndex = options.tabindex;\n if (options.autofocus) focusInput();\n if (!options.gutter && !options.lineNumbers) gutter.style.display = \"none\";\n // Needed to handle Tab key in KHTML\n if (khtml) inputDiv.style.height = \"1px\", inputDiv.style.position = \"absolute\";\n\n // Check for problem with IE innerHTML not working when we have a\n // P (or similar) parent node.\n try { stringWidth(\"x\"); }\n catch (e) {\n if (e.message.match(/runtime/i))\n e = new Error(\"A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)\");\n throw e;\n }\n\n // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.\n var poll = new Delayed(), highlight = new Delayed(), blinker;\n\n // mode holds a mode API object. doc is the tree of Line objects,\n // work an array of lines that should be parsed, and history the\n // undo history (instance of History constructor).\n var mode, doc = new BranchChunk([new LeafChunk([new Line(\"\")])]), work, focused;\n loadMode();\n // The selection. These are always maintained to point at valid\n // positions. Inverted is used to remember that the user is\n // selecting bottom-to-top.\n var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};\n // Selection-related flags. shiftSelecting obviously tracks\n // whether the user is holding shift.\n var shiftSelecting, lastClick, lastDoubleClick, lastScrollPos = 0, draggingText,\n overwrite = false, suppressEdits = false;\n // Variables used by startOperation/endOperation to track what\n // happened during the operation.\n var updateInput, userSelChange, changes, textChanged, selectionChanged, leaveInputAlone,\n gutterDirty, callbacks;\n // Current visible range (may be bigger than the view window).\n var displayOffset = 0, showingFrom = 0, showingTo = 0, lastSizeC = 0;\n // bracketHighlighted is used to remember that a bracket has been\n // marked.\n var bracketHighlighted;\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n var maxLine = \"\", maxWidth;\n var tabCache = {};\n\n // Initialize the content.\n operation(function(){setValue(options.value || \"\"); updateInput = false;})();\n var history = new History();\n\n // Register our event handlers.\n connect(scroller, \"mousedown\", operation(onMouseDown));\n connect(scroller, \"dblclick\", operation(onDoubleClick));\n connect(lineSpace, \"selectstart\", e_preventDefault);\n // Gecko browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for Gecko.\n if (!gecko) connect(scroller, \"contextmenu\", onContextMenu);\n connect(scroller, \"scroll\", function() {\n lastScrollPos = scroller.scrollTop;\n updateDisplay([]);\n if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + \"px\";\n if (options.onScroll) options.onScroll(instance);\n });\n connect(window, \"resize\", function() {updateDisplay(true);});\n connect(input, \"keyup\", operation(onKeyUp));\n connect(input, \"input\", fastPoll);\n connect(input, \"keydown\", operation(onKeyDown));\n connect(input, \"keypress\", operation(onKeyPress));\n connect(input, \"focus\", onFocus);\n connect(input, \"blur\", onBlur);\n\n if (options.dragDrop) {\n connect(lineSpace, \"dragstart\", onDragStart);\n function drag_(e) {\n if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;\n e_stop(e);\n }\n connect(scroller, \"dragenter\", drag_);\n connect(scroller, \"dragover\", drag_);\n connect(scroller, \"drop\", operation(onDrop));\n }\n connect(scroller, \"paste\", function(){focusInput(); fastPoll();});\n connect(input, \"paste\", fastPoll);\n connect(input, \"cut\", operation(function(){\n if (!options.readOnly) replaceSelection(\"\");\n }));\n\n // Needed to handle Tab key in KHTML\n if (khtml) connect(code, \"mouseup\", function() {\n if (document.activeElement == input) input.blur();\n focusInput();\n });\n\n // IE throws unspecified error in certain cases, when\n // trying to access activeElement before onload\n var hasFocus; try { hasFocus = (document.activeElement == input); } catch(e) { }\n if (hasFocus || options.autofocus) setTimeout(onFocus, 20);\n else onBlur();\n\n function isLine(l) {return l >= 0 && l < doc.size;}\n // The instance object that we'll return. Mostly calls out to\n // local functions in the CodeMirror function. Some do some extra\n // range checking and/or clipping. operation is used to wrap the\n // call so that changes it makes are tracked, and the display is\n // updated afterwards.\n var instance = wrapper.CodeMirror = {\n getValue: getValue,\n setValue: operation(setValue),\n getSelection: getSelection,\n replaceSelection: operation(replaceSelection),\n focus: function(){window.focus(); focusInput(); onFocus(); fastPoll();},\n setOption: function(option, value) {\n var oldVal = options[option];\n options[option] = value;\n if (option == \"mode\" || option == \"indentUnit\") loadMode();\n else if (option == \"readOnly\" && value == \"nocursor\") {onBlur(); input.blur();}\n else if (option == \"readOnly\" && !value) {resetInput(true);}\n else if (option == \"theme\") themeChanged();\n else if (option == \"lineWrapping\" && oldVal != value) operation(wrappingChanged)();\n else if (option == \"tabSize\") updateDisplay(true);\n if (option == \"lineNumbers\" || option == \"gutter\" || option == \"firstLineNumber\" || option == \"theme\") {\n gutterChanged();\n updateDisplay(true);\n }\n },\n getOption: function(option) {return options[option];},\n undo: operation(undo),\n redo: operation(redo),\n indentLine: operation(function(n, dir) {\n if (typeof dir != \"string\") {\n if (dir == null) dir = options.smartIndent ? \"smart\" : \"prev\";\n else dir = dir ? \"add\" : \"subtract\";\n }\n if (isLine(n)) indentLine(n, dir);\n }),\n indentSelection: operation(indentSelected),\n historySize: function() {return {undo: history.done.length, redo: history.undone.length};},\n clearHistory: function() {history = new History();},\n matchBrackets: operation(function(){matchBrackets(true);}),\n getTokenAt: operation(function(pos) {\n pos = clipPos(pos);\n return getLine(pos.line).getTokenAt(mode, getStateBefore(pos.line), pos.ch);\n }),\n getStateAfter: function(line) {\n line = clipLine(line == null ? doc.size - 1: line);\n return getStateBefore(line + 1);\n },\n cursorCoords: function(start, mode) {\n if (start == null) start = sel.inverted;\n return this.charCoords(start ? sel.from : sel.to, mode);\n },\n charCoords: function(pos, mode) {\n pos = clipPos(pos);\n if (mode == \"local\") return localCoords(pos, false);\n if (mode == \"div\") return localCoords(pos, true);\n return pageCoords(pos);\n },\n coordsChar: function(coords) {\n var off = eltOffset(lineSpace);\n return coordsChar(coords.x - off.left, coords.y - off.top);\n },\n markText: operation(markText),\n setBookmark: setBookmark,\n findMarksAt: findMarksAt,\n setMarker: operation(addGutterMarker),\n clearMarker: operation(removeGutterMarker),\n setLineClass: operation(setLineClass),\n hideLine: operation(function(h) {return setLineHidden(h, true);}),\n showLine: operation(function(h) {return setLineHidden(h, false);}),\n onDeleteLine: function(line, f) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n line = getLine(line);\n }\n (line.handlers || (line.handlers = [])).push(f);\n return line;\n },\n lineInfo: lineInfo,\n addWidget: function(pos, node, scroll, vert, horiz) {\n pos = localCoords(clipPos(pos));\n var top = pos.yBot, left = pos.x;\n node.style.position = \"absolute\";\n code.appendChild(node);\n if (vert == \"over\") top = pos.y;\n else if (vert == \"near\") {\n var vspace = Math.max(scroller.offsetHeight, doc.height * textHeight()),\n hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();\n if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)\n top = pos.y - node.offsetHeight;\n if (left + node.offsetWidth > hspace)\n left = hspace - node.offsetWidth;\n }\n node.style.top = (top + paddingTop()) + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = code.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") left = 0;\n else if (horiz == \"middle\") left = (code.clientWidth - node.offsetWidth) / 2;\n node.style.left = (left + paddingLeft()) + \"px\";\n }\n if (scroll)\n scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);\n },\n\n lineCount: function() {return doc.size;},\n clipPos: clipPos,\n getCursor: function(start) {\n if (start == null) start = sel.inverted;\n return copyPos(start ? sel.from : sel.to);\n },\n somethingSelected: function() {return !posEq(sel.from, sel.to);},\n setCursor: operation(function(line, ch, user) {\n if (ch == null && typeof line.line == \"number\") setCursor(line.line, line.ch, user);\n else setCursor(line, ch, user);\n }),\n setSelection: operation(function(from, to, user) {\n (user ? setSelectionUser : setSelection)(clipPos(from), clipPos(to || from));\n }),\n getLine: function(line) {if (isLine(line)) return getLine(line).text;},\n getLineHandle: function(line) {if (isLine(line)) return getLine(line);},\n setLine: operation(function(line, text) {\n if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: getLine(line).text.length});\n }),\n removeLine: operation(function(line) {\n if (isLine(line)) replaceRange(\"\", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));\n }),\n replaceRange: operation(replaceRange),\n getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},\n\n triggerOnKeyDown: operation(onKeyDown),\n execCommand: function(cmd) {return commands[cmd](instance);},\n // Stuff used by commands, probably not much use to outside code.\n moveH: operation(moveH),\n deleteH: operation(deleteH),\n moveV: operation(moveV),\n toggleOverwrite: function() {\n if(overwrite){\n overwrite = false;\n cursor.className = cursor.className.replace(\" CodeMirror-overwrite\", \"\");\n } else {\n overwrite = true;\n cursor.className += \" CodeMirror-overwrite\";\n }\n },\n\n posFromIndex: function(off) {\n var lineNo = 0, ch;\n doc.iter(0, doc.size, function(line) {\n var sz = line.text.length + 1;\n if (sz > off) { ch = off; return true; }\n off -= sz;\n ++lineNo;\n });\n return clipPos({line: lineNo, ch: ch});\n },\n indexFromPos: function (coords) {\n if (coords.line < 0 || coords.ch < 0) return 0;\n var index = coords.ch;\n doc.iter(0, coords.line, function (line) {\n index += line.text.length + 1;\n });\n return index;\n },\n scrollTo: function(x, y) {\n if (x != null) scroller.scrollLeft = x;\n if (y != null) scroller.scrollTop = y;\n updateDisplay([]);\n },\n\n operation: function(f){return operation(f)();},\n compoundChange: function(f){return compoundChange(f);},\n refresh: function(){\n updateDisplay(true);\n if (scroller.scrollHeight > lastScrollPos)\n scroller.scrollTop = lastScrollPos;\n },\n getInputField: function(){return input;},\n getWrapperElement: function(){return wrapper;},\n getScrollerElement: function(){return scroller;},\n getGutterElement: function(){return gutter;}\n };\n\n function getLine(n) { return getLineAt(doc, n); }\n function updateLineHeight(line, height) {\n gutterDirty = true;\n var diff = height - line.height;\n for (var n = line; n; n = n.parent) n.height += diff;\n }\n\n function setValue(code) {\n var top = {line: 0, ch: 0};\n updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},\n splitLines(code), top, top);\n updateInput = true;\n }\n function getValue() {\n var text = [];\n doc.iter(0, doc.size, function(line) { text.push(line.text); });\n return text.join(\"\\n\");\n }\n\n function onMouseDown(e) {\n setShift(e_prop(e, \"shiftKey\"));\n // Check whether this is a click in a widget\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == code && n != mover) return;\n\n // See if this is a click in the gutter\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) {\n if (options.onGutterClick)\n options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);\n return e_preventDefault(e);\n }\n\n var start = posFromMouse(e);\n\n switch (e_button(e)) {\n case 3:\n if (gecko && !mac) onContextMenu(e);\n return;\n case 2:\n if (start) setCursor(start.line, start.ch, true);\n return;\n }\n // For button 1, if it was clicked inside the editor\n // (posFromMouse returning non-null), we have to adjust the\n // selection.\n if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}\n\n if (!focused) onFocus();\n\n var now = +new Date;\n if (lastDoubleClick && lastDoubleClick.time > now - 400 && posEq(lastDoubleClick.pos, start)) {\n e_preventDefault(e);\n setTimeout(focusInput, 20);\n return selectLine(start.line);\n } else if (lastClick && lastClick.time > now - 400 && posEq(lastClick.pos, start)) {\n lastDoubleClick = {time: now, pos: start};\n e_preventDefault(e);\n return selectWordAt(start);\n } else { lastClick = {time: now, pos: start}; }\n\n var last = start, going;\n if (options.dragDrop && dragAndDrop && !options.readOnly && !posEq(sel.from, sel.to) &&\n !posLess(start, sel.from) && !posLess(sel.to, start)) {\n // Let the drag handler handle this.\n if (webkit) lineSpace.draggable = true;\n function dragEnd(e2) {\n if (webkit) lineSpace.draggable = false;\n draggingText = false;\n up(); drop();\n if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n e_preventDefault(e2);\n setCursor(start.line, start.ch, true);\n focusInput();\n }\n }\n var up = connect(document, \"mouseup\", operation(dragEnd), true);\n var drop = connect(scroller, \"drop\", operation(dragEnd), true);\n draggingText = true;\n // IE's approach to draggable\n if (lineSpace.dragDrop) lineSpace.dragDrop();\n return;\n }\n e_preventDefault(e);\n setCursor(start.line, start.ch, true);\n\n function extend(e) {\n var cur = posFromMouse(e, true);\n if (cur && !posEq(cur, last)) {\n if (!focused) onFocus();\n last = cur;\n setSelectionUser(start, cur);\n updateInput = false;\n var visible = visibleLines();\n if (cur.line >= visible.to || cur.line < visible.from)\n going = setTimeout(operation(function(){extend(e);}), 150);\n }\n }\n\n function done(e) {\n clearTimeout(going);\n var cur = posFromMouse(e);\n if (cur) setSelectionUser(start, cur);\n e_preventDefault(e);\n focusInput();\n updateInput = true;\n move(); up();\n }\n var move = connect(document, \"mousemove\", operation(function(e) {\n clearTimeout(going);\n e_preventDefault(e);\n if (!ie && !e_button(e)) done(e);\n else extend(e);\n }), true);\n var up = connect(document, \"mouseup\", operation(done), true);\n }\n function onDoubleClick(e) {\n for (var n = e_target(e); n != wrapper; n = n.parentNode)\n if (n.parentNode == gutterText) return e_preventDefault(e);\n var start = posFromMouse(e);\n if (!start) return;\n lastDoubleClick = {time: +new Date, pos: start};\n e_preventDefault(e);\n selectWordAt(start);\n }\n function onDrop(e) {\n if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;\n e.preventDefault();\n var pos = posFromMouse(e, true), files = e.dataTransfer.files;\n if (!pos || options.readOnly) return;\n if (files && files.length && window.FileReader && window.File) {\n function loadFile(file, i) {\n var reader = new FileReader;\n reader.onload = function() {\n text[i] = reader.result;\n if (++read == n) {\n pos = clipPos(pos);\n operation(function() {\n var end = replaceRange(text.join(\"\"), pos, pos);\n setSelectionUser(pos, end);\n })();\n }\n };\n reader.readAsText(file);\n }\n var n = files.length, text = Array(n), read = 0;\n for (var i = 0; i < n; ++i) loadFile(files[i], i);\n }\n else {\n try {\n var text = e.dataTransfer.getData(\"Text\");\n if (text) {\n compoundChange(function() {\n var curFrom = sel.from, curTo = sel.to;\n setSelectionUser(pos, pos);\n if (draggingText) replaceRange(\"\", curFrom, curTo);\n replaceSelection(text);\n focusInput();\n });\n }\n }\n catch(e){}\n }\n }\n function onDragStart(e) {\n var txt = getSelection();\n e.dataTransfer.setData(\"Text\", txt);\n \n // Use dummy image instead of default browsers image.\n if (gecko || chrome) {\n var img = document.createElement('img');\n img.scr = 'data:image/gif;base64,R0lGODdhAgACAIAAAAAAAP///ywAAAAAAgACAAACAoRRADs='; //1x1 image\n e.dataTransfer.setDragImage(img, 0, 0);\n }\n }\n\n function doHandleBinding(bound, dropShift) {\n if (typeof bound == \"string\") {\n bound = commands[bound];\n if (!bound) return false;\n }\n var prevShift = shiftSelecting;\n try {\n if (options.readOnly) suppressEdits = true;\n if (dropShift) shiftSelecting = null;\n bound(instance);\n } catch(e) {\n if (e != Pass) throw e;\n return false;\n } finally {\n shiftSelecting = prevShift;\n suppressEdits = false;\n }\n return true;\n }\n function handleKeyBinding(e) {\n // Handle auto keymap transitions\n var startMap = getKeyMap(options.keyMap), next = startMap.auto;\n clearTimeout(maybeTransition);\n if (next && !isModifierKey(e)) maybeTransition = setTimeout(function() {\n if (getKeyMap(options.keyMap) == startMap) {\n options.keyMap = (next.call ? next.call(null, instance) : next);\n }\n }, 50);\n\n var name = keyNames[e_prop(e, \"keyCode\")], handled = false;\n if (name == null || e.altGraphKey) return false;\n if (e_prop(e, \"altKey\")) name = \"Alt-\" + name;\n if (e_prop(e, \"ctrlKey\")) name = \"Ctrl-\" + name;\n if (e_prop(e, \"metaKey\")) name = \"Cmd-\" + name;\n\n var stopped = false;\n function stop() { stopped = true; }\n\n if (e_prop(e, \"shiftKey\")) {\n handled = lookupKey(\"Shift-\" + name, options.extraKeys, options.keyMap,\n function(b) {return doHandleBinding(b, true);}, stop)\n || lookupKey(name, options.extraKeys, options.keyMap, function(b) {\n if (typeof b == \"string\" && /^go[A-Z]/.test(b)) return doHandleBinding(b);\n }, stop);\n } else {\n handled = lookupKey(name, options.extraKeys, options.keyMap, doHandleBinding, stop);\n }\n if (stopped) handled = false;\n if (handled) {\n e_preventDefault(e);\n if (ie) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }\n }\n return handled;\n }\n function handleCharBinding(e, ch) {\n var handled = lookupKey(\"'\" + ch + \"'\", options.extraKeys,\n options.keyMap, function(b) { return doHandleBinding(b, true); });\n if (handled) e_preventDefault(e);\n return handled;\n }\n\n var lastStoppedKey = null, maybeTransition;\n function onKeyDown(e) {\n if (!focused) onFocus();\n if (ie && e.keyCode == 27) { e.returnValue = false; }\n if (pollingFast) { if (readInput()) pollingFast = false; }\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n var code = e_prop(e, \"keyCode\");\n // IE does strange things with escape.\n setShift(code == 16 || e_prop(e, \"shiftKey\"));\n // First give onKeyEvent option a chance to handle this.\n var handled = handleKeyBinding(e);\n if (window.opera) {\n lastStoppedKey = handled ? code : null;\n // Opera has no cut event... we try to at least catch the key combo\n if (!handled && code == 88 && e_prop(e, mac ? \"metaKey\" : \"ctrlKey\"))\n replaceSelection(\"\");\n }\n }\n function onKeyPress(e) {\n if (pollingFast) readInput();\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n var keyCode = e_prop(e, \"keyCode\"), charCode = e_prop(e, \"charCode\");\n if (window.opera && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}\n if (((window.opera && !e.which) || khtml) && handleKeyBinding(e)) return;\n var ch = String.fromCharCode(charCode == null ? keyCode : charCode);\n if (options.electricChars && mode.electricChars && options.smartIndent && !options.readOnly) {\n if (mode.electricChars.indexOf(ch) > -1)\n setTimeout(operation(function() {indentLine(sel.to.line, \"smart\");}), 75);\n }\n if (handleCharBinding(e, ch)) return;\n fastPoll();\n }\n function onKeyUp(e) {\n if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;\n if (e_prop(e, \"keyCode\") == 16) shiftSelecting = null;\n }\n\n function onFocus() {\n if (options.readOnly == \"nocursor\") return;\n if (!focused) {\n if (options.onFocus) options.onFocus(instance);\n focused = true;\n if (wrapper.className.search(/\\bCodeMirror-focused\\b/) == -1)\n wrapper.className += \" CodeMirror-focused\";\n if (!leaveInputAlone) resetInput(true);\n }\n slowPoll();\n restartBlink();\n }\n function onBlur(e) {\n if (focused) {\n if (options.onBlur) options.onBlur(instance, e);\n focused = false;\n if (bracketHighlighted)\n operation(function(){\n if (bracketHighlighted) { bracketHighlighted(); bracketHighlighted = null; }\n })();\n wrapper.className = wrapper.className.replace(\" CodeMirror-focused\", \"\");\n }\n clearInterval(blinker);\n setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);\n }\n\n // Replace the range from from to to by the strings in newText.\n // Afterwards, set the selection to selFrom, selTo.\n function updateLines(from, to, newText, selFrom, selTo) {\n if (suppressEdits) return;\n if (history) {\n var old = [];\n doc.iter(from.line, to.line + 1, function(line) { old.push(line.text); });\n history.addChange(from.line, newText.length, old);\n while (history.done.length > options.undoDepth) history.done.shift();\n }\n updateLinesNoUndo(from, to, newText, selFrom, selTo);\n }\n function unredoHelper(from, to) {\n if (!from.length) return;\n var set = from.pop(), out = [];\n for (var i = set.length - 1; i >= 0; i -= 1) {\n var change = set[i];\n var replaced = [], end = change.start + change.added;\n doc.iter(change.start, end, function(line) { replaced.push(line.text); });\n out.push({start: change.start, added: change.old.length, old: replaced});\n var pos = clipPos({line: change.start + change.old.length - 1,\n ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])});\n updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: getLine(end-1).text.length}, change.old, pos, pos);\n }\n updateInput = true;\n to.push(out);\n }\n function undo() {unredoHelper(history.done, history.undone);}\n function redo() {unredoHelper(history.undone, history.done);}\n\n function updateLinesNoUndo(from, to, newText, selFrom, selTo) {\n if (suppressEdits) return;\n var recomputeMaxLength = false, maxLineLength = maxLine.length;\n if (!options.lineWrapping)\n doc.iter(from.line, to.line + 1, function(line) {\n if (line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}\n });\n if (from.line != to.line || newText.length > 1) gutterDirty = true;\n\n var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);\n // First adjust the line structure, taking some care to leave highlighting intact.\n if (from.ch == 0 && to.ch == 0 && newText[newText.length - 1] == \"\") {\n // This is a whole-line replace. Treated specially to make\n // sure line objects move the way they are supposed to.\n var added = [], prevLine = null;\n if (from.line) {\n prevLine = getLine(from.line - 1);\n prevLine.fixMarkEnds(lastLine);\n } else lastLine.fixMarkStarts();\n for (var i = 0, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], prevLine));\n if (nlines) doc.remove(from.line, nlines, callbacks);\n if (added.length) doc.insert(from.line, added);\n } else if (firstLine == lastLine) {\n if (newText.length == 1)\n firstLine.replace(from.ch, to.ch, newText[0]);\n else {\n lastLine = firstLine.split(to.ch, newText[newText.length-1]);\n firstLine.replace(from.ch, null, newText[0]);\n firstLine.fixMarkEnds(lastLine);\n var added = [];\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n added.push(lastLine);\n doc.insert(from.line + 1, added);\n }\n } else if (newText.length == 1) {\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, \"\");\n firstLine.append(lastLine);\n doc.remove(from.line + 1, nlines, callbacks);\n } else {\n var added = [];\n firstLine.replace(from.ch, null, newText[0]);\n lastLine.replace(null, to.ch, newText[newText.length-1]);\n firstLine.fixMarkEnds(lastLine);\n for (var i = 1, e = newText.length - 1; i < e; ++i)\n added.push(Line.inheritMarks(newText[i], firstLine));\n if (nlines > 1) doc.remove(from.line + 1, nlines - 1, callbacks);\n doc.insert(from.line + 1, added);\n }\n if (options.lineWrapping) {\n var perLine = Math.max(5, scroller.clientWidth / charWidth() - 3);\n doc.iter(from.line, from.line + newText.length, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != line.height) updateLineHeight(line, guess);\n });\n } else {\n doc.iter(from.line, from.line + newText.length, function(line) {\n var l = line.text;\n if (l.length > maxLineLength) {\n maxLine = l; maxLineLength = l.length; maxWidth = null;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) {\n maxLineLength = 0; maxLine = \"\"; maxWidth = null;\n doc.iter(0, doc.size, function(line) {\n var l = line.text;\n if (l.length > maxLineLength) {\n maxLineLength = l.length; maxLine = l;\n }\n });\n }\n }\n\n // Add these lines to the work array, so that they will be\n // highlighted. Adjust work lines if lines were added/removed.\n var newWork = [], lendiff = newText.length - nlines - 1;\n for (var i = 0, l = work.length; i < l; ++i) {\n var task = work[i];\n if (task < from.line) newWork.push(task);\n else if (task > to.line) newWork.push(task + lendiff);\n }\n var hlEnd = from.line + Math.min(newText.length, 500);\n highlightLines(from.line, hlEnd);\n newWork.push(hlEnd);\n work = newWork;\n startWorker(100);\n // Remember that these lines changed, for updating the display\n changes.push({from: from.line, to: to.line + 1, diff: lendiff});\n var changeObj = {from: from, to: to, text: newText};\n if (textChanged) {\n for (var cur = textChanged; cur.next; cur = cur.next) {}\n cur.next = changeObj;\n } else textChanged = changeObj;\n\n // Update the selection\n function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}\n setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));\n\n // Make sure the scroll-size div has the correct height.\n if (scroller.clientHeight)\n code.style.height = (doc.height * textHeight() + 2 * paddingTop()) + \"px\";\n }\n\n function replaceRange(code, from, to) {\n from = clipPos(from);\n if (!to) to = from; else to = clipPos(to);\n code = splitLines(code);\n function adjustPos(pos) {\n if (posLess(pos, from)) return pos;\n if (!posLess(to, pos)) return end;\n var line = pos.line + code.length - (to.line - from.line) - 1;\n var ch = pos.ch;\n if (pos.line == to.line)\n ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));\n return {line: line, ch: ch};\n }\n var end;\n replaceRange1(code, from, to, function(end1) {\n end = end1;\n return {from: adjustPos(sel.from), to: adjustPos(sel.to)};\n });\n return end;\n }\n function replaceSelection(code, collapse) {\n replaceRange1(splitLines(code), sel.from, sel.to, function(end) {\n if (collapse == \"end\") return {from: end, to: end};\n else if (collapse == \"start\") return {from: sel.from, to: sel.from};\n else return {from: sel.from, to: end};\n });\n }\n function replaceRange1(code, from, to, computeSel) {\n var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;\n var newSel = computeSel({line: from.line + code.length - 1, ch: endch});\n updateLines(from, to, code, newSel.from, newSel.to);\n }\n\n function getRange(from, to) {\n var l1 = from.line, l2 = to.line;\n if (l1 == l2) return getLine(l1).text.slice(from.ch, to.ch);\n var code = [getLine(l1).text.slice(from.ch)];\n doc.iter(l1 + 1, l2, function(line) { code.push(line.text); });\n code.push(getLine(l2).text.slice(0, to.ch));\n return code.join(\"\\n\");\n }\n function getSelection() {\n return getRange(sel.from, sel.to);\n }\n\n var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll\n function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }\n function fastPoll() {\n var missed = false;\n pollingFast = true;\n function p() {\n startOperation();\n var changed = readInput();\n if (!changed && !missed) {missed = true; poll.set(60, p);}\n else {pollingFast = false; slowPoll();}\n endOperation();\n }\n poll.set(20, p);\n }\n\n // Previnput is a hack to work with IME. If we reset the textarea\n // on every change, that breaks IME. So we look for changes\n // compared to the previous content instead. (Modern browsers have\n // events that indicate IME taking place, but these are not widely\n // supported or compatible enough yet to rely on.)\n var prevInput = \"\";\n function readInput() {\n if (leaveInputAlone || !focused || hasSelection(input) || options.readOnly) return false;\n var text = input.value;\n if (text == prevInput) return false;\n shiftSelecting = null;\n var same = 0, l = Math.min(prevInput.length, text.length);\n while (same < l && prevInput[same] == text[same]) ++same;\n if (same < prevInput.length)\n sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};\n else if (overwrite && posEq(sel.from, sel.to))\n sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};\n replaceSelection(text.slice(same), \"end\");\n prevInput = text;\n return true;\n }\n function resetInput(user) {\n if (!posEq(sel.from, sel.to)) {\n prevInput = \"\";\n input.value = getSelection();\n selectInput(input);\n } else if (user) prevInput = input.value = \"\";\n }\n\n function focusInput() {\n if (options.readOnly != \"nocursor\") input.focus();\n }\n\n function scrollEditorIntoView() {\n if (!cursor.getBoundingClientRect) return;\n var rect = cursor.getBoundingClientRect();\n // IE returns bogus coordinates when the instance sits inside of an iframe and the cursor is hidden\n if (ie && rect.top == rect.bottom) return;\n var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);\n if (rect.top < 0 || rect.bottom > winH) cursor.scrollIntoView();\n }\n function scrollCursorIntoView() {\n var cursor = localCoords(sel.inverted ? sel.from : sel.to);\n var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;\n return scrollIntoView(x, cursor.y, x, cursor.yBot);\n }\n function scrollIntoView(x1, y1, x2, y2) {\n var pl = paddingLeft(), pt = paddingTop();\n y1 += pt; y2 += pt; x1 += pl; x2 += pl;\n var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true;\n if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1); scrolled = true;}\n else if (y2 > screentop + screen) {scroller.scrollTop = y2 - screen; scrolled = true;}\n\n var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;\n var gutterw = options.fixedGutter ? gutter.clientWidth : 0;\n var atLeft = x1 < gutterw + pl + 10;\n if (x1 < screenleft + gutterw || atLeft) {\n if (atLeft) x1 = 0;\n scroller.scrollLeft = Math.max(0, x1 - 10 - gutterw);\n scrolled = true;\n }\n else if (x2 > screenw + screenleft - 3) {\n scroller.scrollLeft = x2 + 10 - screenw;\n scrolled = true;\n if (x2 > code.clientWidth) result = false;\n }\n if (scrolled && options.onScroll) options.onScroll(instance);\n return result;\n }\n\n function visibleLines() {\n var lh = textHeight(), top = scroller.scrollTop - paddingTop();\n var fromHeight = Math.max(0, Math.floor(top / lh));\n var toHeight = Math.ceil((top + scroller.clientHeight) / lh);\n return {from: lineAtHeight(doc, fromHeight),\n to: lineAtHeight(doc, toHeight)};\n }\n // Uses a set of changes plus the current scroll position to\n // determine which DOM updates have to be made, and makes the\n // updates.\n function updateDisplay(changes, suppressCallback) {\n if (!scroller.clientWidth) {\n showingFrom = showingTo = displayOffset = 0;\n return;\n }\n // Compute the new visible window\n var visible = visibleLines();\n // Bail out if the visible area is already rendered and nothing changed.\n if (changes !== true && changes.length == 0 && visible.from > showingFrom && visible.to < showingTo) return;\n var from = Math.max(visible.from - 100, 0), to = Math.min(doc.size, visible.to + 100);\n if (showingFrom < from && from - showingFrom < 20) from = showingFrom;\n if (showingTo > to && showingTo - to < 20) to = Math.min(doc.size, showingTo);\n\n // Create a range of theoretically intact lines, and punch holes\n // in that using the change info.\n var intact = changes === true ? [] :\n computeIntact([{from: showingFrom, to: showingTo, domStart: 0}], changes);\n // Clip off the parts that won't be visible\n var intactLines = 0;\n for (var i = 0; i < intact.length; ++i) {\n var range = intact[i];\n if (range.from < from) {range.domStart += (from - range.from); range.from = from;}\n if (range.to > to) range.to = to;\n if (range.from >= range.to) intact.splice(i--, 1);\n else intactLines += range.to - range.from;\n }\n if (intactLines == to - from && from == showingFrom && to == showingTo) return;\n intact.sort(function(a, b) {return a.domStart - b.domStart;});\n\n var th = textHeight(), gutterDisplay = gutter.style.display;\n lineDiv.style.display = \"none\";\n patchDisplay(from, to, intact);\n lineDiv.style.display = gutter.style.display = \"\";\n\n // Position the mover div to align with the lines it's supposed\n // to be showing (which will cover the visible display)\n var different = from != showingFrom || to != showingTo || lastSizeC != scroller.clientHeight + th;\n // This is just a bogus formula that detects when the editor is\n // resized or the font size changes.\n if (different) lastSizeC = scroller.clientHeight + th;\n showingFrom = from; showingTo = to;\n displayOffset = heightAtLine(doc, from);\n mover.style.top = (displayOffset * th) + \"px\";\n if (scroller.clientHeight)\n code.style.height = (doc.height * th + 2 * paddingTop()) + \"px\";\n\n // Since this is all rather error prone, it is honoured with the\n // only assertion in the whole file.\n if (lineDiv.childNodes.length != showingTo - showingFrom)\n throw new Error(\"BAD PATCH! \" + JSON.stringify(intact) + \" size=\" + (showingTo - showingFrom) +\n \" nodes=\" + lineDiv.childNodes.length);\n\n function checkHeights() {\n maxWidth = scroller.clientWidth;\n var curNode = lineDiv.firstChild, heightChanged = false;\n doc.iter(showingFrom, showingTo, function(line) {\n if (!line.hidden) {\n var height = Math.round(curNode.offsetHeight / th) || 1;\n if (line.height != height) {\n updateLineHeight(line, height);\n gutterDirty = heightChanged = true;\n }\n }\n curNode = curNode.nextSibling;\n });\n if (heightChanged)\n code.style.height = (doc.height * th + 2 * paddingTop()) + \"px\";\n return heightChanged;\n }\n\n if (options.lineWrapping) {\n checkHeights();\n } else {\n if (maxWidth == null) maxWidth = stringWidth(maxLine);\n if (maxWidth > scroller.clientWidth) {\n lineSpace.style.width = maxWidth + \"px\";\n // Needed to prevent odd wrapping/hiding of widgets placed in here.\n code.style.width = \"\";\n code.style.width = scroller.scrollWidth + \"px\";\n } else {\n lineSpace.style.width = code.style.width = \"\";\n }\n }\n\n gutter.style.display = gutterDisplay;\n if (different || gutterDirty) {\n // If the gutter grew in size, re-check heights. If those changed, re-draw gutter.\n updateGutter() && options.lineWrapping && checkHeights() && updateGutter();\n }\n updateSelection();\n if (!suppressCallback && options.onUpdate) options.onUpdate(instance);\n return true;\n }\n\n function computeIntact(intact, changes) {\n for (var i = 0, l = changes.length || 0; i < l; ++i) {\n var change = changes[i], intact2 = [], diff = change.diff || 0;\n for (var j = 0, l2 = intact.length; j < l2; ++j) {\n var range = intact[j];\n if (change.to <= range.from && change.diff)\n intact2.push({from: range.from + diff, to: range.to + diff,\n domStart: range.domStart});\n else if (change.to <= range.from || change.from >= range.to)\n intact2.push(range);\n else {\n if (change.from > range.from)\n intact2.push({from: range.from, to: change.from, domStart: range.domStart});\n if (change.to < range.to)\n intact2.push({from: change.to + diff, to: range.to + diff,\n domStart: range.domStart + (change.to - range.from)});\n }\n }\n intact = intact2;\n }\n return intact;\n }\n\n function patchDisplay(from, to, intact) {\n // The first pass removes the DOM nodes that aren't intact.\n if (!intact.length) lineDiv.innerHTML = \"\";\n else {\n function killNode(node) {\n var tmp = node.nextSibling;\n node.parentNode.removeChild(node);\n return tmp;\n }\n var domPos = 0, curNode = lineDiv.firstChild, n;\n for (var i = 0; i < intact.length; ++i) {\n var cur = intact[i];\n while (cur.domStart > domPos) {curNode = killNode(curNode); domPos++;}\n for (var j = 0, e = cur.to - cur.from; j < e; ++j) {curNode = curNode.nextSibling; domPos++;}\n }\n while (curNode) curNode = killNode(curNode);\n }\n // This pass fills in the lines that actually changed.\n var nextIntact = intact.shift(), curNode = lineDiv.firstChild, j = from;\n var scratch = document.createElement(\"div\");\n doc.iter(from, to, function(line) {\n if (nextIntact && nextIntact.to == j) nextIntact = intact.shift();\n if (!nextIntact || nextIntact.from > j) {\n if (line.hidden) var html = scratch.innerHTML = \"<pre></pre>\";\n else {\n var html = '<pre' + (line.className ? ' class=\"' + line.className + '\"' : '') + '>'\n + line.getHTML(makeTab) + '</pre>';\n // Kludge to make sure the styled element lies behind the selection (by z-index)\n if (line.bgClassName)\n html = '<div style=\"position: relative\"><pre class=\"' + line.bgClassName +\n '\" style=\"position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2\">&#160;</pre>' + html + \"</div>\";\n }\n scratch.innerHTML = html;\n lineDiv.insertBefore(scratch.firstChild, curNode);\n } else {\n curNode = curNode.nextSibling;\n }\n ++j;\n });\n }\n\n function updateGutter() {\n if (!options.gutter && !options.lineNumbers) return;\n var hText = mover.offsetHeight, hEditor = scroller.clientHeight;\n gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + \"px\";\n var html = [], i = showingFrom, normalNode;\n doc.iter(showingFrom, Math.max(showingTo, showingFrom + 1), function(line) {\n if (line.hidden) {\n html.push(\"<pre></pre>\");\n } else {\n var marker = line.gutterMarker;\n var text = options.lineNumbers ? i + options.firstLineNumber : null;\n if (marker && marker.text)\n text = marker.text.replace(\"%N%\", text != null ? text : \"\");\n else if (text == null)\n text = \"\\u00a0\";\n html.push((marker && marker.style ? '<pre class=\"' + marker.style + '\">' : \"<pre>\"), text);\n for (var j = 1; j < line.height; ++j) html.push(\"<br/>&#160;\");\n html.push(\"</pre>\");\n if (!marker) normalNode = i;\n }\n ++i;\n });\n gutter.style.display = \"none\";\n gutterText.innerHTML = html.join(\"\");\n // Make sure scrolling doesn't cause number gutter size to pop\n if (normalNode != null) {\n var node = gutterText.childNodes[normalNode - showingFrom];\n var minwidth = String(doc.size).length, val = eltText(node), pad = \"\";\n while (val.length + pad.length < minwidth) pad += \"\\u00a0\";\n if (pad) node.insertBefore(document.createTextNode(pad), node.firstChild);\n }\n gutter.style.display = \"\";\n var resized = Math.abs((parseInt(lineSpace.style.marginLeft) || 0) - gutter.offsetWidth) > 2;\n lineSpace.style.marginLeft = gutter.offsetWidth + \"px\";\n gutterDirty = false;\n return resized;\n }\n function updateSelection() {\n var collapsed = posEq(sel.from, sel.to);\n var fromPos = localCoords(sel.from, true);\n var toPos = collapsed ? fromPos : localCoords(sel.to, true);\n var headPos = sel.inverted ? fromPos : toPos, th = textHeight();\n var wrapOff = eltOffset(wrapper), lineOff = eltOffset(lineDiv);\n inputDiv.style.top = Math.max(0, Math.min(scroller.offsetHeight, headPos.y + lineOff.top - wrapOff.top)) + \"px\";\n inputDiv.style.left = Math.max(0, Math.min(scroller.offsetWidth, headPos.x + lineOff.left - wrapOff.left)) + \"px\";\n if (collapsed) {\n cursor.style.top = headPos.y + \"px\";\n cursor.style.left = (options.lineWrapping ? Math.min(headPos.x, lineSpace.offsetWidth) : headPos.x) + \"px\";\n cursor.style.display = \"\";\n selectionDiv.style.display = \"none\";\n } else {\n var sameLine = fromPos.y == toPos.y, html = \"\";\n var clientWidth = lineSpace.clientWidth || lineSpace.offsetWidth;\n var clientHeight = lineSpace.clientHeight || lineSpace.offsetHeight;\n function add(left, top, right, height) {\n var rstyle = quirksMode ? \"width: \" + (!right ? clientWidth : clientWidth - right - left) + \"px\"\n : \"right: \" + right + \"px\";\n html += '<div class=\"CodeMirror-selected\" style=\"position: absolute; left: ' + left +\n 'px; top: ' + top + 'px; ' + rstyle + '; height: ' + height + 'px\"></div>';\n }\n if (sel.from.ch && fromPos.y >= 0) {\n var right = sameLine ? clientWidth - toPos.x : 0;\n add(fromPos.x, fromPos.y, right, th);\n }\n var middleStart = Math.max(0, fromPos.y + (sel.from.ch ? th : 0));\n var middleHeight = Math.min(toPos.y, clientHeight) - middleStart;\n if (middleHeight > 0.2 * th)\n add(0, middleStart, 0, middleHeight);\n if ((!sameLine || !sel.from.ch) && toPos.y < clientHeight - .5 * th)\n add(0, toPos.y, clientWidth - toPos.x, th);\n selectionDiv.innerHTML = html;\n cursor.style.display = \"none\";\n selectionDiv.style.display = \"\";\n }\n }\n\n function setShift(val) {\n if (val) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);\n else shiftSelecting = null;\n }\n function setSelectionUser(from, to) {\n var sh = shiftSelecting && clipPos(shiftSelecting);\n if (sh) {\n if (posLess(sh, from)) from = sh;\n else if (posLess(to, sh)) to = sh;\n }\n setSelection(from, to);\n userSelChange = true;\n }\n // Update the selection. Last two args are only used by\n // updateLines, since they have to be expressed in the line\n // numbers before the update.\n function setSelection(from, to, oldFrom, oldTo) {\n goalColumn = null;\n if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}\n if (posEq(sel.from, from) && posEq(sel.to, to)) return;\n if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}\n\n // Skip over hidden lines.\n if (from.line != oldFrom) {\n var from1 = skipHidden(from, oldFrom, sel.from.ch);\n // If there is no non-hidden line left, force visibility on current line\n if (!from1) setLineHidden(from.line, false);\n else from = from1;\n }\n if (to.line != oldTo) to = skipHidden(to, oldTo, sel.to.ch);\n\n if (posEq(from, to)) sel.inverted = false;\n else if (posEq(from, sel.to)) sel.inverted = false;\n else if (posEq(to, sel.from)) sel.inverted = true;\n\n if (options.autoClearEmptyLines && posEq(sel.from, sel.to)) {\n var head = sel.inverted ? from : to;\n if (head.line != sel.from.line && sel.from.line < doc.size) {\n var oldLine = getLine(sel.from.line);\n if (/^\\s+$/.test(oldLine.text))\n setTimeout(operation(function() {\n if (oldLine.parent && /^\\s+$/.test(oldLine.text)) {\n var no = lineNo(oldLine);\n replaceRange(\"\", {line: no, ch: 0}, {line: no, ch: oldLine.text.length});\n }\n }, 10));\n }\n }\n\n sel.from = from; sel.to = to;\n selectionChanged = true;\n }\n function skipHidden(pos, oldLine, oldCh) {\n function getNonHidden(dir) {\n var lNo = pos.line + dir, end = dir == 1 ? doc.size : -1;\n while (lNo != end) {\n var line = getLine(lNo);\n if (!line.hidden) {\n var ch = pos.ch;\n if (toEnd || ch > oldCh || ch > line.text.length) ch = line.text.length;\n return {line: lNo, ch: ch};\n }\n lNo += dir;\n }\n }\n var line = getLine(pos.line);\n var toEnd = pos.ch == line.text.length && pos.ch != oldCh;\n if (!line.hidden) return pos;\n if (pos.line >= oldLine) return getNonHidden(1) || getNonHidden(-1);\n else return getNonHidden(-1) || getNonHidden(1);\n }\n function setCursor(line, ch, user) {\n var pos = clipPos({line: line, ch: ch || 0});\n (user ? setSelectionUser : setSelection)(pos, pos);\n }\n\n function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}\n function clipPos(pos) {\n if (pos.line < 0) return {line: 0, ch: 0};\n if (pos.line >= doc.size) return {line: doc.size-1, ch: getLine(doc.size-1).text.length};\n var ch = pos.ch, linelen = getLine(pos.line).text.length;\n if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};\n else if (ch < 0) return {line: pos.line, ch: 0};\n else return pos;\n }\n\n function findPosH(dir, unit) {\n var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;\n var lineObj = getLine(line);\n function findNextLine() {\n for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {\n var lo = getLine(l);\n if (!lo.hidden) { line = l; lineObj = lo; return true; }\n }\n }\n function moveOnce(boundToLine) {\n if (ch == (dir < 0 ? 0 : lineObj.text.length)) {\n if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;\n else return false;\n } else ch += dir;\n return true;\n }\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\") {\n var sawWord = false;\n for (;;) {\n if (dir < 0) if (!moveOnce()) break;\n if (isWordChar(lineObj.text.charAt(ch))) sawWord = true;\n else if (sawWord) {if (dir < 0) {dir = 1; moveOnce();} break;}\n if (dir > 0) if (!moveOnce()) break;\n }\n }\n return {line: line, ch: ch};\n }\n function moveH(dir, unit) {\n var pos = dir < 0 ? sel.from : sel.to;\n if (shiftSelecting || posEq(sel.from, sel.to)) pos = findPosH(dir, unit);\n setCursor(pos.line, pos.ch, true);\n }\n function deleteH(dir, unit) {\n if (!posEq(sel.from, sel.to)) replaceRange(\"\", sel.from, sel.to);\n else if (dir < 0) replaceRange(\"\", findPosH(dir, unit), sel.to);\n else replaceRange(\"\", sel.from, findPosH(dir, unit));\n userSelChange = true;\n }\n var goalColumn = null;\n function moveV(dir, unit) {\n var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);\n if (goalColumn != null) pos.x = goalColumn;\n if (unit == \"page\") dist = Math.min(scroller.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n else if (unit == \"line\") dist = textHeight();\n var target = coordsChar(pos.x, pos.y + dist * dir + 2);\n if (unit == \"page\") scroller.scrollTop += localCoords(target, true).y - pos.y;\n setCursor(target.line, target.ch, true);\n goalColumn = pos.x;\n }\n\n function selectWordAt(pos) {\n var line = getLine(pos.line).text;\n var start = pos.ch, end = pos.ch;\n while (start > 0 && isWordChar(line.charAt(start - 1))) --start;\n while (end < line.length && isWordChar(line.charAt(end))) ++end;\n setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});\n }\n function selectLine(line) {\n setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));\n }\n function indentSelected(mode) {\n if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);\n var e = sel.to.line - (sel.to.ch ? 0 : 1);\n for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);\n }\n\n function indentLine(n, how) {\n if (!how) how = \"add\";\n if (how == \"smart\") {\n if (!mode.indent) how = \"prev\";\n else var state = getStateBefore(n);\n }\n\n var line = getLine(n), curSpace = line.indentation(options.tabSize),\n curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (how == \"prev\") {\n if (n) indentation = getLine(n-1).indentation(options.tabSize);\n else indentation = 0;\n }\n else if (how == \"smart\") indentation = mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n else if (how == \"add\") indentation = curSpace + options.indentUnit;\n else if (how == \"subtract\") indentation = curSpace - options.indentUnit;\n indentation = Math.max(0, indentation);\n var diff = indentation - curSpace;\n\n if (!diff) {\n if (sel.from.line != n && sel.to.line != n) return;\n var indentString = curSpaceString;\n }\n else {\n var indentString = \"\", pos = 0;\n if (options.indentWithTabs)\n for (var i = Math.floor(indentation / options.tabSize); i; --i) {pos += options.tabSize; indentString += \"\\t\";}\n while (pos < indentation) {++pos; indentString += \" \";}\n }\n\n replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});\n }\n\n function loadMode() {\n mode = CodeMirror.getMode(options, options.mode);\n doc.iter(0, doc.size, function(line) { line.stateAfter = null; });\n work = [0];\n startWorker();\n }\n function gutterChanged() {\n var visible = options.gutter || options.lineNumbers;\n gutter.style.display = visible ? \"\" : \"none\";\n if (visible) gutterDirty = true;\n else lineDiv.parentNode.style.marginLeft = 0;\n }\n function wrappingChanged(from, to) {\n if (options.lineWrapping) {\n wrapper.className += \" CodeMirror-wrap\";\n var perLine = scroller.clientWidth / charWidth() - 3;\n doc.iter(0, doc.size, function(line) {\n if (line.hidden) return;\n var guess = Math.ceil(line.text.length / perLine) || 1;\n if (guess != 1) updateLineHeight(line, guess);\n });\n lineSpace.style.width = code.style.width = \"\";\n } else {\n wrapper.className = wrapper.className.replace(\" CodeMirror-wrap\", \"\");\n maxWidth = null; maxLine = \"\";\n doc.iter(0, doc.size, function(line) {\n if (line.height != 1 && !line.hidden) updateLineHeight(line, 1);\n if (line.text.length > maxLine.length) maxLine = line.text;\n });\n }\n changes.push({from: 0, to: doc.size});\n }\n function makeTab(col) {\n var w = options.tabSize - col % options.tabSize, cached = tabCache[w];\n if (cached) return cached;\n for (var str = '<span class=\"cm-tab\">', i = 0; i < w; ++i) str += \" \";\n return (tabCache[w] = {html: str + \"</span>\", width: w});\n }\n function themeChanged() {\n scroller.className = scroller.className.replace(/\\s*cm-s-\\S+/g, \"\") +\n options.theme.replace(/(^|\\s)\\s*/g, \" cm-s-\");\n }\n\n function TextMarker() { this.set = []; }\n TextMarker.prototype.clear = operation(function() {\n var min = Infinity, max = -Infinity;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n if (!mk || !line.parent) continue;\n var lineN = lineNo(line);\n min = Math.min(min, lineN); max = Math.max(max, lineN);\n for (var j = 0; j < mk.length; ++j)\n if (mk[j].marker == this) mk.splice(j--, 1);\n }\n if (min != Infinity)\n changes.push({from: min, to: max + 1});\n });\n TextMarker.prototype.find = function() {\n var from, to;\n for (var i = 0, e = this.set.length; i < e; ++i) {\n var line = this.set[i], mk = line.marked;\n for (var j = 0; j < mk.length; ++j) {\n var mark = mk[j];\n if (mark.marker == this) {\n if (mark.from != null || mark.to != null) {\n var found = lineNo(line);\n if (found != null) {\n if (mark.from != null) from = {line: found, ch: mark.from};\n if (mark.to != null) to = {line: found, ch: mark.to};\n }\n }\n }\n }\n }\n return {from: from, to: to};\n };\n\n function markText(from, to, className) {\n from = clipPos(from); to = clipPos(to);\n var tm = new TextMarker();\n if (!posLess(from, to)) return tm;\n function add(line, from, to, className) {\n getLine(line).addMark(new MarkedText(from, to, className, tm));\n }\n if (from.line == to.line) add(from.line, from.ch, to.ch, className);\n else {\n add(from.line, from.ch, null, className);\n for (var i = from.line + 1, e = to.line; i < e; ++i)\n add(i, null, null, className);\n add(to.line, null, to.ch, className);\n }\n changes.push({from: from.line, to: to.line + 1});\n return tm;\n }\n\n function setBookmark(pos) {\n pos = clipPos(pos);\n var bm = new Bookmark(pos.ch);\n getLine(pos.line).addMark(bm);\n return bm;\n }\n\n function findMarksAt(pos) {\n pos = clipPos(pos);\n var markers = [], marked = getLine(pos.line).marked;\n if (!marked) return markers;\n for (var i = 0, e = marked.length; i < e; ++i) {\n var m = marked[i];\n if ((m.from == null || m.from <= pos.ch) &&\n (m.to == null || m.to >= pos.ch))\n markers.push(m.marker || m);\n }\n return markers;\n }\n\n function addGutterMarker(line, text, className) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = {text: text, style: className};\n gutterDirty = true;\n return line;\n }\n function removeGutterMarker(line) {\n if (typeof line == \"number\") line = getLine(clipLine(line));\n line.gutterMarker = null;\n gutterDirty = true;\n }\n\n function changeLine(handle, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") line = getLine(clipLine(handle));\n else no = lineNo(handle);\n if (no == null) return null;\n if (op(line, no)) changes.push({from: no, to: no + 1});\n else return null;\n return line;\n }\n function setLineClass(handle, className, bgClassName) {\n return changeLine(handle, function(line) {\n if (line.className != className || line.bgClassName != bgClassName) {\n line.className = className;\n line.bgClassName = bgClassName;\n return true;\n }\n });\n }\n function setLineHidden(handle, hidden) {\n return changeLine(handle, function(line, no) {\n if (line.hidden != hidden) {\n line.hidden = hidden;\n updateLineHeight(line, hidden ? 0 : 1);\n var fline = sel.from.line, tline = sel.to.line;\n if (hidden && (fline == no || tline == no)) {\n var from = fline == no ? skipHidden({line: fline, ch: 0}, fline, 0) : sel.from;\n var to = tline == no ? skipHidden({line: tline, ch: 0}, tline, 0) : sel.to;\n // Can't hide the last visible line, we'd have no place to put the cursor\n if (!to) return;\n setSelection(from, to);\n }\n return (gutterDirty = true);\n }\n });\n }\n\n function lineInfo(line) {\n if (typeof line == \"number\") {\n if (!isLine(line)) return null;\n var n = line;\n line = getLine(line);\n if (!line) return null;\n }\n else {\n var n = lineNo(line);\n if (n == null) return null;\n }\n var marker = line.gutterMarker;\n return {line: n, handle: line, text: line.text, markerText: marker && marker.text,\n markerClass: marker && marker.style, lineClass: line.className, bgClass: line.bgClassName};\n }\n\n function stringWidth(str) {\n measure.innerHTML = \"<pre><span>x</span></pre>\";\n measure.firstChild.firstChild.firstChild.nodeValue = str;\n return measure.firstChild.firstChild.offsetWidth || 10;\n }\n // These are used to go from pixel positions to character\n // positions, taking varying character widths into account.\n function charFromX(line, x) {\n if (x <= 0) return 0;\n var lineObj = getLine(line), text = lineObj.text;\n function getX(len) {\n return measureLine(lineObj, len).left;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil(x / charWidth()));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return to;\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return (toX - x > x - fromX) ? from : to;\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n\n var tempId = \"CodeMirror-temp-\" + Math.floor(Math.random() * 0xffffff).toString(16);\n function measureLine(line, ch) {\n if (ch == 0) return {top: 0, left: 0};\n var wbr = options.lineWrapping && ch < line.text.length &&\n spanAffectsWrapping.test(line.text.slice(ch - 1, ch + 1));\n measure.innerHTML = \"<pre>\" + line.getHTML(makeTab, ch, tempId, wbr) + \"</pre>\";\n var elt = document.getElementById(tempId);\n var top = elt.offsetTop, left = elt.offsetLeft;\n // Older IEs report zero offsets for spans directly after a wrap\n if (ie && top == 0 && left == 0) {\n var backup = document.createElement(\"span\");\n backup.innerHTML = \"x\";\n elt.parentNode.insertBefore(backup, elt.nextSibling);\n top = backup.offsetTop;\n }\n return {top: top, left: left};\n }\n function localCoords(pos, inLineWrap) {\n var x, lh = textHeight(), y = lh * (heightAtLine(doc, pos.line) - (inLineWrap ? displayOffset : 0));\n if (pos.ch == 0) x = 0;\n else {\n var sp = measureLine(getLine(pos.line), pos.ch);\n x = sp.left;\n if (options.lineWrapping) y += Math.max(0, sp.top);\n }\n return {x: x, y: y, yBot: y + lh};\n }\n // Coords must be lineSpace-local\n function coordsChar(x, y) {\n if (y < 0) y = 0;\n var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);\n var lineNo = lineAtHeight(doc, heightPos);\n if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};\n var lineObj = getLine(lineNo), text = lineObj.text;\n var tw = options.lineWrapping, innerOff = tw ? heightPos - heightAtLine(doc, lineNo) : 0;\n if (x <= 0 && innerOff == 0) return {line: lineNo, ch: 0};\n function getX(len) {\n var sp = measureLine(lineObj, len);\n if (tw) {\n var off = Math.round(sp.top / th);\n return Math.max(0, sp.left + (off - innerOff) * scroller.clientWidth);\n }\n return sp.left;\n }\n var from = 0, fromX = 0, to = text.length, toX;\n // Guess a suitable upper bound for our search.\n var estimated = Math.min(to, Math.ceil((x + innerOff * scroller.clientWidth * .9) / cw));\n for (;;) {\n var estX = getX(estimated);\n if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));\n else {toX = estX; to = estimated; break;}\n }\n if (x > toX) return {line: lineNo, ch: to};\n // Try to guess a suitable lower bound as well.\n estimated = Math.floor(to * 0.8); estX = getX(estimated);\n if (estX < x) {from = estimated; fromX = estX;}\n // Do a binary search between these bounds.\n for (;;) {\n if (to - from <= 1) return {line: lineNo, ch: (toX - x > x - fromX) ? from : to};\n var middle = Math.ceil((from + to) / 2), middleX = getX(middle);\n if (middleX > x) {to = middle; toX = middleX;}\n else {from = middle; fromX = middleX;}\n }\n }\n function pageCoords(pos) {\n var local = localCoords(pos, true), off = eltOffset(lineSpace);\n return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};\n }\n\n var cachedHeight, cachedHeightFor, measureText;\n function textHeight() {\n if (measureText == null) {\n measureText = \"<pre>\";\n for (var i = 0; i < 49; ++i) measureText += \"x<br/>\";\n measureText += \"x</pre>\";\n }\n var offsetHeight = lineDiv.clientHeight;\n if (offsetHeight == cachedHeightFor) return cachedHeight;\n cachedHeightFor = offsetHeight;\n measure.innerHTML = measureText;\n cachedHeight = measure.firstChild.offsetHeight / 50 || 1;\n measure.innerHTML = \"\";\n return cachedHeight;\n }\n var cachedWidth, cachedWidthFor = 0;\n function charWidth() {\n if (scroller.clientWidth == cachedWidthFor) return cachedWidth;\n cachedWidthFor = scroller.clientWidth;\n return (cachedWidth = stringWidth(\"x\"));\n }\n function paddingTop() {return lineSpace.offsetTop;}\n function paddingLeft() {return lineSpace.offsetLeft;}\n\n function posFromMouse(e, liberal) {\n var offW = eltOffset(scroller, true), x, y;\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX; y = e.clientY; } catch (e) { return null; }\n // This is a mess of a heuristic to try and determine whether a\n // scroll-bar was clicked or not, and to return null if one was\n // (and !liberal).\n if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))\n return null;\n var offL = eltOffset(lineSpace, true);\n return coordsChar(x - offL.left, y - offL.top);\n }\n function onContextMenu(e) {\n var pos = posFromMouse(e), scrollPos = scroller.scrollTop;\n if (!pos || window.opera) return; // Opera is difficult.\n if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))\n operation(setCursor)(pos.line, pos.ch);\n\n var oldCSS = input.style.cssText;\n inputDiv.style.position = \"absolute\";\n input.style.cssText = \"position: fixed; width: 30px; height: 30px; top: \" + (e.clientY - 5) +\n \"px; left: \" + (e.clientX - 5) + \"px; z-index: 1000; background: white; \" +\n \"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n leaveInputAlone = true;\n var val = input.value = getSelection();\n focusInput();\n selectInput(input);\n function rehide() {\n var newVal = splitLines(input.value).join(\"\\n\");\n if (newVal != val) operation(replaceSelection)(newVal, \"end\");\n inputDiv.style.position = \"relative\";\n input.style.cssText = oldCSS;\n if (ie_lt9) scroller.scrollTop = scrollPos;\n leaveInputAlone = false;\n resetInput(true);\n slowPoll();\n }\n\n if (gecko) {\n e_stop(e);\n var mouseup = connect(window, \"mouseup\", function() {\n mouseup();\n setTimeout(rehide, 20);\n }, true);\n } else {\n setTimeout(rehide, 50);\n }\n }\n\n // Cursor-blinking\n function restartBlink() {\n clearInterval(blinker);\n var on = true;\n cursor.style.visibility = \"\";\n blinker = setInterval(function() {\n cursor.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, 650);\n }\n\n var matching = {\"(\": \")>\", \")\": \"(<\", \"[\": \"]>\", \"]\": \"[<\", \"{\": \"}>\", \"}\": \"{<\"};\n function matchBrackets(autoclear) {\n var head = sel.inverted ? sel.from : sel.to, line = getLine(head.line), pos = head.ch - 1;\n var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];\n if (!match) return;\n var ch = match.charAt(0), forward = match.charAt(1) == \">\", d = forward ? 1 : -1, st = line.styles;\n for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)\n if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}\n\n var stack = [line.text.charAt(pos)], re = /[(){}[\\]]/;\n function scan(line, from, to) {\n if (!line.text) return;\n var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;\n for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {\n var text = st[i];\n if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;}\n for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {\n if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {\n var match = matching[cur];\n if (match.charAt(1) == \">\" == forward) stack.push(cur);\n else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};\n else if (!stack.length) return {pos: pos, match: true};\n }\n }\n }\n }\n for (var i = head.line, e = forward ? Math.min(i + 100, doc.size) : Math.max(-1, i - 100); i != e; i+=d) {\n var line = getLine(i), first = i == head.line;\n var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);\n if (found) break;\n }\n if (!found) found = {pos: null, match: false};\n var style = found.match ? \"CodeMirror-matchingbracket\" : \"CodeMirror-nonmatchingbracket\";\n var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),\n two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);\n var clear = operation(function(){one.clear(); two && two.clear();});\n if (autoclear) setTimeout(clear, 800);\n else bracketHighlighted = clear;\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(n) {\n var minindent, minline;\n for (var search = n, lim = n - 40; search > lim; --search) {\n if (search == 0) return 0;\n var line = getLine(search-1);\n if (line.stateAfter) return search;\n var indented = line.indentation(options.tabSize);\n if (minline == null || minindent > indented) {\n minline = search - 1;\n minindent = indented;\n }\n }\n return minline;\n }\n function getStateBefore(n) {\n var start = findStartLine(n), state = start && getLine(start-1).stateAfter;\n if (!state) state = startState(mode);\n else state = copyState(mode, state);\n doc.iter(start, n, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n if (start < n) changes.push({from: start, to: n});\n if (n < doc.size && !getLine(n).stateAfter) work.push(n);\n return state;\n }\n function highlightLines(start, end) {\n var state = getStateBefore(start);\n doc.iter(start, end, function(line) {\n line.highlight(mode, state, options.tabSize);\n line.stateAfter = copyState(mode, state);\n });\n }\n function highlightWorker() {\n var end = +new Date + options.workTime;\n var foundWork = work.length;\n while (work.length) {\n if (!getLine(showingFrom).stateAfter) var task = showingFrom;\n else var task = work.pop();\n if (task >= doc.size) continue;\n var start = findStartLine(task), state = start && getLine(start-1).stateAfter;\n if (state) state = copyState(mode, state);\n else state = startState(mode);\n\n var unchanged = 0, compare = mode.compareStates, realChange = false,\n i = start, bail = false;\n doc.iter(i, doc.size, function(line) {\n var hadState = line.stateAfter;\n if (+new Date > end) {\n work.push(i);\n startWorker(options.workDelay);\n if (realChange) changes.push({from: task, to: i + 1});\n return (bail = true);\n }\n var changed = line.highlight(mode, state, options.tabSize);\n if (changed) realChange = true;\n line.stateAfter = copyState(mode, state);\n var done = null;\n if (compare) {\n var same = hadState && compare(hadState, state);\n if (same != Pass) done = !!same;\n }\n if (done == null) {\n if (changed !== false || !hadState) unchanged = 0;\n else if (++unchanged > 3 && (!mode.indent || mode.indent(hadState, \"\") == mode.indent(state, \"\")))\n done = true;\n }\n if (done) return true;\n ++i;\n });\n if (bail) return;\n if (realChange) changes.push({from: task, to: i + 1});\n }\n if (foundWork && options.onHighlightComplete)\n options.onHighlightComplete(instance);\n }\n function startWorker(time) {\n if (!work.length) return;\n highlight.set(time, operation(highlightWorker));\n }\n\n // Operations are used to wrap changes in such a way that each\n // change won't have to update the cursor and display (which would\n // be awkward, slow, and error-prone), but instead updates are\n // batched and then all combined and executed at once.\n function startOperation() {\n updateInput = userSelChange = textChanged = null;\n changes = []; selectionChanged = false; callbacks = [];\n }\n function endOperation() {\n var reScroll = false, updated;\n if (selectionChanged) reScroll = !scrollCursorIntoView();\n if (changes.length) updated = updateDisplay(changes, true);\n else {\n if (selectionChanged) updateSelection();\n if (gutterDirty) updateGutter();\n }\n if (reScroll) scrollCursorIntoView();\n if (selectionChanged) {scrollEditorIntoView(); restartBlink();}\n\n if (focused && !leaveInputAlone &&\n (updateInput === true || (updateInput !== false && selectionChanged)))\n resetInput(userSelChange);\n\n if (selectionChanged && options.matchBrackets)\n setTimeout(operation(function() {\n if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}\n if (posEq(sel.from, sel.to)) matchBrackets(false);\n }), 20);\n var tc = textChanged, cbs = callbacks; // these can be reset by callbacks\n if (selectionChanged && options.onCursorActivity)\n options.onCursorActivity(instance);\n if (tc && options.onChange && instance)\n options.onChange(instance, tc);\n for (var i = 0; i < cbs.length; ++i) cbs[i](instance);\n if (updated && options.onUpdate) options.onUpdate(instance);\n }\n var nestedOperation = 0;\n function operation(f) {\n return function() {\n if (!nestedOperation++) startOperation();\n try {var result = f.apply(this, arguments);}\n finally {if (!--nestedOperation) endOperation();}\n return result;\n };\n }\n\n function compoundChange(f) {\n history.startCompound();\n try { return f(); } finally { history.endCompound(); }\n }\n\n for (var ext in extensions)\n if (extensions.propertyIsEnumerable(ext) &&\n !instance.propertyIsEnumerable(ext))\n instance[ext] = extensions[ext];\n return instance;\n } // (end of function CodeMirror)", "getCodeMirror() {\n return this.editor\n }", "function EditorConstructor() { }", "function EditorConstructor() { }", "get editor() {\n return this._editor;\n }", "get editor() {\n return this._editor;\n }", "_showEditor() {\n const EditorCls = this.richText ? CodeMirrorWrapper : TextAreaWrapper;\n\n if (this.richText) {\n RB.DnDUploader.instance.registerDropTarget(\n this.$el, gettext('Drop to add an image'),\n this._uploadImage.bind(this));\n }\n\n this._editor = new EditorCls({\n parentEl: this.el,\n autoSize: this.options.autoSize,\n minHeight: this.options.minHeight\n });\n\n this._editor.setText(this._value);\n this._value = '';\n this._richTextDirty = false;\n this._prevClientHeight = null;\n\n this._editor.$el.on(\n 'resize',\n _.throttle(() => this.$el.triggerHandler('resize'), 250));\n\n this.listenTo(this._editor, 'change', _.throttle(() => {\n /*\n * Make sure that the editor wasn't closed before the throttled\n * handler was reached.\n */\n if (this._editor === null) {\n return;\n }\n\n const clientHeight = this._editor.getClientHeight();\n\n if (clientHeight !== this._prevClientHeight) {\n this._prevClientHeight = clientHeight;\n this.$el.triggerHandler('resize');\n }\n\n this.trigger('change');\n }, 500));\n\n this.focus();\n }", "function Editor(contentDiv, options) {\n var _this = this;\n if (options === void 0) { options = {}; }\n // 1. Make sure all parameters are valid\n if (roosterjs_editor_dom_1.getTagOfNode(contentDiv) != 'DIV') {\n throw new Error('contentDiv must be an HTML DIV element');\n }\n // 2. Store options values to local variables\n this.core = createEditorCore_1.default(contentDiv, options);\n // 3. Initialize plugins\n this.core.plugins.forEach(function (plugin) { return plugin.initialize(_this); });\n // 4. Ensure initial content and its format\n this.setContent(options.initialContent || contentDiv.innerHTML || '', false /*triggerContentChangedEvent*/);\n // 5. Create event handler to bind DOM events\n this.eventDisposers = mapPluginEvents_1.default(this.core);\n // 6. Add additional content edit features to the editor if specified\n if (options.additionalEditFeatures) {\n options.additionalEditFeatures.forEach(function (feature) { return _this.addContentEditFeature(feature); });\n }\n // 7. Make the container editable and set its selection styles\n if (!options.omitContentEditableAttributeChanges && !contentDiv.isContentEditable) {\n contentDiv.setAttribute('contenteditable', 'true');\n var styles = contentDiv.style;\n styles.userSelect = styles.msUserSelect = styles.webkitUserSelect = 'text';\n this.contenteditableChanged = true;\n }\n // 8. Do proper change for browsers to disable some browser-specified behaviors.\n adjustBrowserBehavior_1.default();\n // 9. Let plugins know that we are ready\n this.triggerPluginEvent(9 /* EditorReady */, {}, true /*broadcast*/);\n // 10. Before give editor to user, make sure there is at least one DIV element to accept typing\n this.core.corePlugins.typeInContainer.ensureTypeInElement(this.getFocusedPosition() || new roosterjs_editor_dom_1.Position(contentDiv, 0 /* Begin */));\n }", "function init() {\n var cm = new CodeMirror(document.getElementById('editor-container'), {\n mode: 'erv',\n tabSize: 4,\n indentWithTabs: false,\n indentUnit: 4,\n lineNumbers: true,\n gutters: ['error-markers'],\n hintOptions: {\n hint: getAutoCompletionHints\n }\n });\n cm.on('change', onEditorContentChange);\n return cm;\n}", "constructor(editor) {\n _defineProperty(this, \"editor\", void 0);\n\n _defineProperty(this, \"command\", void 0);\n\n if (!editor) {\n throw new Error('no editor');\n }\n\n this.editor = editor;\n this.command = this.getCommand();\n }", "function ParsingCodeMirror(place, givenOptions) {\n // Called whenever content of the editor area changes.\n function reparse() {\n var sourceCode = codeMirror.getValue();\n var result = givenOptions.parse(sourceCode);\n codeMirror.trigger(\"reparse\", {\n error: result.error,\n sourceCode: sourceCode,\n document: result.document\n });\n // Cursor activity would've been fired before us, so call it again\n // to make sure it displays the right context-sensitive help based\n // on the new state of the document.\n onCursorActivity();\n }\n\n // Called whenever the user moves their cursor in the editor area.\n function onCursorActivity() {\n codeMirror.trigger(\"cursor-activity\");\n }\n\n // The number of milliseconds to wait before re-parsing the editor\n // content.\n var parseDelay = givenOptions.parseDelay || 300;\n var time = givenOptions.time || window;\n var reparseTimeout;\n\n givenOptions.onChange = function() {\n codeMirror.trigger(\"change\");\n if (reparseTimeout !== undefined)\n time.clearTimeout(reparseTimeout);\n reparseTimeout = time.setTimeout(reparse, parseDelay);\n };\n givenOptions.onCursorActivity = onCursorActivity;\n\n var codeMirror = IndexableCodeMirror(place, givenOptions);\n _.extend(codeMirror, Backbone.Events);\n codeMirror.reparse = reparse;\n return codeMirror;\n}", "function Editor() { }", "function Editor() { }", "function CodeMirrorEditorFactory(defaults) {\n if (defaults === void 0) { defaults = {}; }\n var _this = this;\n /**\n * Create a new editor for inline code.\n */\n this.newInlineEditor = function (options) {\n options.host.dataset.type = 'inline';\n return new editor_1.CodeMirrorEditor(__assign({}, options, { config: __assign({}, _this.inlineCodeMirrorConfig, options.config || {}) }));\n };\n /**\n * Create a new editor for a full document.\n */\n this.newDocumentEditor = function (options) {\n options.host.dataset.type = 'document';\n return new editor_1.CodeMirrorEditor(__assign({}, options, { config: __assign({}, _this.documentCodeMirrorConfig, options.config || {}) }));\n };\n this.inlineCodeMirrorConfig = __assign({}, editor_1.CodeMirrorEditor.defaultConfig, { extraKeys: {\n 'Cmd-Right': 'goLineRight',\n 'End': 'goLineRight',\n 'Cmd-Left': 'goLineLeft',\n 'Tab': 'indentMoreOrinsertTab',\n 'Shift-Tab': 'indentLess',\n 'Cmd-/': 'toggleComment',\n 'Ctrl-/': 'toggleComment',\n } }, defaults);\n this.documentCodeMirrorConfig = __assign({}, editor_1.CodeMirrorEditor.defaultConfig, { extraKeys: {\n 'Tab': 'indentMoreOrinsertTab',\n 'Shift-Tab': 'indentLess',\n 'Shift-Enter': function () { }\n }, lineNumbers: true, scrollPastEnd: true }, defaults);\n }", "get editor() {\n let editor = this.data.editor;\n\n if (editor && !(editor instanceof Widget)) {\n if (typeof editor === 'string') {\n editor = {\n type: editor\n };\n }\n editor = this.data.editor = WidgetHelper.createWidget(Object.assign(this.defaultEditor, editor));\n }\n return editor;\n }", "function createEditor() {\n const gutters = [\"breakpoints\", \"hit-markers\", \"CodeMirror-linenumbers\"];\n\n if (_prefs.features.codeFolding) {\n gutters.push(\"CodeMirror-foldgutter\");\n }\n\n return new _sourceEditor.default({\n mode: \"javascript\",\n foldGutter: _prefs.features.codeFolding,\n enableCodeFolding: _prefs.features.codeFolding,\n readOnly: true,\n lineNumbers: true,\n theme: \"mozilla\",\n styleActiveLine: false,\n lineWrapping: _prefs.prefs.editorWrapping,\n matchBrackets: true,\n showAnnotationRuler: true,\n gutters,\n value: \" \",\n extraKeys: {\n // Override code mirror keymap to avoid conflicts with split console.\n Esc: false,\n \"Cmd-F\": false,\n \"Ctrl-F\": false,\n \"Cmd-G\": false,\n \"Ctrl-G\": false\n }\n });\n}", "constructor(config, editor)\n {\n this.editor = editor;\n this.config = config;\n this.oEditor = null;\n }", "function Editor(selector) {\n this.$el = $(selector);\n this.editor = ace.edit(this.$el[0]);\n this.session = this.editor.getSession();\n this.document = this.session.getDocument();\n\n this.editor.setTheme('ace/theme/tomorrow');\n this.editor.setShowPrintMargin(false);\n this.$el.css({\n fontFamily: 'Menlo, Monaco, Consolas, \"Courier New\", monospace',\n lineHeight: 'inherit'\n });\n\n this.session.setMode('ace/mode/javascript');\n this.session.setUseSoftTabs(true);\n this.session.setTabSize(2);\n this.session.setUseWorker(false);\n\n this.editor.setOption('scrollPastEnd', 0.33);\n }", "function Editor(props) {\n //props destructure we need to send to codemirror\n const { language, displayName, value, onChange } = props;\n\n //Options for the ControlledEditor\n const options = {\n lineWrapping: true,\n lint: true,\n mode: language,\n theme: \"material\",\n lineNumbers: true,\n };\n\n //Check if the column is or not collapsed\n const [open, setOpen] = useState(true);\n\n //Get the editor changes\n function handleChange(editor, data, value) {\n onChange(value);\n }\n\n return (\n <div className={`editor__container ${open ? \"\" : \"collapsed\"} `}>\n <div className=\"editor__title\">\n {displayName}\n <IconButton onClick={() => setOpen((prevOpen) => !prevOpen)}>\n <ZoomOutMapOutlinedIcon />\n </IconButton>\n </div>\n <ControlledEditor\n onBeforeChange={handleChange}\n value={value}\n className=\"code-mirror-wrapper\"\n options={options}\n ></ControlledEditor>\n </div>\n );\n}", "setupCodemirror() {\n this.destroyCodemirror();\n const themes = this.props.theme.split(',').map(s => s.trim());\n let theme = 'default';\n for (let i = 0; i < themes.length; i++) {\n if (THEMES.indexOf(themes[i]) === -1) {\n theme = themes[i];\n break;\n }\n }\n\n const options = objectAssign(\n {\n theme,\n mode: 'markdown',\n readOnly: this.props.readOnly,\n tabSize: this.props.tabSize,\n lineNumbers: this.props.lineNumbers,\n lineWrapping: this.props.lineWrapping,\n indentWithTabs: this.props.indentWithTabs,\n styleActiveLine: this.props.styleActiveLine,\n },\n this.props.codemirrorOptions,\n );\n\n this.codemirror = CodeMirror.fromTextArea(this.codemirrorRef, options);\n this.codemirror.setValue(this.props.value);\n this.codemirror.on('change', this.handleCodemirrorChange);\n this.codemirror.on('focus', this.handleCodemirrorFocus);\n this.codemirror.on('blur', this.handleCodemirrorBlur);\n this.codemirror.on('drop', this.handleCodemirrorDrop);\n this.codemirror.on('cursorActivity', this.handleCodemirrorCursorActivity);\n objectForEach(this.props.codemirrorEvents, (handler, event) => {\n this.codemirror.on(event, handler);\n });\n }", "function makeEditor(_ref) {var editorPluginsToRun = _ref.editorPluginsToRun;var\n\t Editor = function (_React$Component) {_inherits(Editor, _React$Component);\n\n\t function Editor(props, context) {_classCallCheck(this, Editor);var _this = _possibleConstructorReturn(this, (Editor.__proto__ || Object.getPrototypeOf(Editor)).call(this,\n\t props, context));_initialiseProps.call(_this);\n\t if (props.value) {\n\t _this.yaml = props.value;\n\t }\n\t _this.state = {\n\t editor: null,\n\t value: props.value || \"\" };\n\n\n\t // see https://gist.github.com/Restuta/e400a555ba24daa396cc\n\t _this.onClick = _this.onClick.bind(_this);return _this;\n\t }_createClass(Editor, [{ key: \"componentWillMount\", value: function componentWillMount()\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t {\n\t // add user agent info to document\n\t // allows our custom Editor styling for IE10 to take effect\n\t var doc = document.documentElement;\n\t doc.setAttribute(\"data-useragent\", navigator.userAgent);\n\t } }, { key: \"componentDidMount\", value: function componentDidMount()\n\n\t {\n\t // eslint-disable-next-line react/no-did-mount-set-state\n\t this.setState({ width: this.getWidth() });\n\t document.addEventListener(\"click\", this.onClick);\n\n\t if (this.props.markers) {\n\t this.updateMarkerAnnotations({ markers: this.props.markers }, { force: true });\n\t }\n\t } }, { key: \"componentWillReceiveProps\", value: function componentWillReceiveProps(\n\n\t nextProps) {var _this2 = this;var\n\t state = this.state;\n\t var hasChanged = function hasChanged(k) {return !(0, _eq2.default)(nextProps[k], _this2.props[k]);};\n\t var wasEmptyBefore = function wasEmptyBefore(k) {return nextProps[k] && (!_this2.props[k] || (0, _isEmpty2.default)(_this2.props[k]));};\n\n\t this.updateErrorAnnotations(nextProps);\n\t this.setReadOnlyOptions(nextProps);\n\t this.updateMarkerAnnotations(nextProps);\n\n\t if (state.editor && nextProps.goToLine && hasChanged(\"goToLine\")) {\n\t state.editor.gotoLine(nextProps.goToLine.line);\n\t }\n\n\t this.setState({\n\t shouldClearUndoStack: hasChanged(\"specId\") || wasEmptyBefore(\"value\") });\n\n\n\t } }, { key: \"shouldComponentUpdate\", value: function shouldComponentUpdate(\n\n\n\n\t nextProps) {\n\t var oriYaml = this.yaml;\n\t this.yaml = nextProps.value;\n\n\t return oriYaml !== nextProps.value;\n\t } }, { key: \"render\", value: function render()\n\n\t {var\n\t readOnly = this.props.readOnly;\n\t var value = this.yaml;\n\n\t return (\n\t _react2.default.createElement(_reactAce2.default, {\n\t value: value,\n\t mode: \"yaml\",\n\t theme: \"tomorrow_night_eighties\",\n\t onLoad: this.onLoad,\n\t onChange: this.onChange,\n\t name: \"ace-editor\",\n\t width: \"100%\",\n\t height: \"100%\",\n\t tabSize: 2,\n\t fontSize: 14,\n\t readOnly: readOnly,\n\t useSoftTabs: \"true\",\n\t wrapEnabled: true,\n\t editorProps: {\n\t \"display_indent_guides\": true,\n\t folding: \"markbeginandend\" },\n\n\t setOptions: {\n\t cursorStyle: \"smooth\",\n\t wrapBehavioursEnabled: true } }));\n\n\n\n\t } }, { key: \"componentDidUpdate\", value: function componentDidUpdate()\n\n\t {var _state =\n\t this.state,shouldClearUndoStack = _state.shouldClearUndoStack,editor = _state.editor;\n\n\t if (shouldClearUndoStack) {\n\t setTimeout(function () {\n\t editor.getSession().getUndoManager().reset();\n\t }, 100);\n\t }\n\n\t } }, { key: \"componentWillUnmount\", value: function componentWillUnmount()\n\n\t {\n\t document.removeEventListener(\"click\", this.onClick);\n\t } }]);return Editor;}(_react2.default.Component);var _initialiseProps = function _initialiseProps() {var _this3 = this;this.onChange = function (value) {// Set the value in state, now - so that we don't have lag\n\t _this3.setState({ value: value }); // Send it upstream\n\t _this3.props.onChange(value);};this.onLoad = function (editor) {var props = _this3.props,state = _this3.state;var AST = props.AST,specObject = props.specObject;var langTools = _brace2.default.acequire(\"ace/ext/language_tools\");state.editor = editor; // TODO: get editor out of state\n\t editor.getSession().setUseWrapMode(true);var session = editor.getSession();session.on(\"changeScrollLeft\", function (xPos) {// eslint-disable-line no-unused-vars\n\t session.setScrollLeft(0);});(0, _hook2.default)(editor, props, editorPluginsToRun || [], { langTools: langTools, AST: AST, specObject: specObject });editor.setHighlightActiveLine(false);editor.setHighlightActiveLine(true);};this.onResize = function () {var editor = _this3.state.editor;if (editor) {var session = editor.getSession();editor.resize();var wrapLimit = session.getWrapLimit();editor.setPrintMarginColumn(wrapLimit);}};this.onClick = function () {// onClick is deferred by 40ms, to give element resizes time to settle.\n\t setTimeout(function () {if (_this3.getWidth() !== _this3.state.width) {_this3.onResize();_this3.setState({ width: _this3.getWidth() });}}, 40);};this.getWidth = function () {var el = document.getElementById(\"editor-wrapper\");return el ? el.getBoundingClientRect().width : null;};this.updateErrorAnnotations = function (nextProps) {if (_this3.state.editor && nextProps.errors) {var editorAnnotations = nextProps.errors.toJS().map(function (err) {// Create annotation objects that ACE can use\n\t return { row: err.line - 1, column: 0, type: err.level, text: err.message };});_this3.state.editor.getSession().setAnnotations(editorAnnotations);}};this.setReadOnlyOptions = function (nextProps) {var state = _this3.state;if (nextProps.readOnly === true && state.editor) {state.editor.setOptions({ readOnly: true, highlightActiveLine: false, highlightGutterLine: false });} else if (state.editor) {state.editor.setOptions({ readOnly: false, highlightActiveLine: true, highlightGutterLine: true });}};this.updateMarkerAnnotations = function (nextProps) {var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},force = _ref2.force;var state = _this3.state;var onMarkerLineUpdate = nextProps.onMarkerLineUpdate;var size = function size(obj) {return Object.keys(obj).length;}; // FIXME: this is a hacky solution.\n\t // we should find a way to wait until the spec has been loaded into ACE.\n\t if (force === true || _this3.props.specId !== nextProps.specId || size(_this3.props.markers) !== size(nextProps.markers)) {setTimeout(_markerPlacer.placeMarkerDecorations.bind(null, { editor: state.editor, markers: nextProps.markers, onMarkerLineUpdate: onMarkerLineUpdate }), 300);}};this.yaml = this.yaml || \"\";};Editor.propTypes = { specId: _react.PropTypes.string, value: _react.PropTypes.string, onChange: _react.PropTypes.func,\n\t onMarkerLineUpdate: _react.PropTypes.func,\n\n\t readOnly: _react.PropTypes.bool,\n\n\t markers: _react.PropTypes.object,\n\t goToLine: _react.PropTypes.object,\n\t specObject: _react.PropTypes.object.isRequired,\n\n\t AST: _react.PropTypes.object.isRequired,\n\n\t errors: _reactImmutableProptypes2.default.list };\n\n\n\t Editor.defaultProps = {\n\t value: \"\",\n\t specId: \"--unknown--\",\n\t onChange: NOOP,\n\t onMarkerLineUpdate: NOOP,\n\t markers: {},\n\t readOnly: false,\n\t goToLine: {},\n\t errors: (0, _immutable.fromJS)([]) };\n\n\n\t return Editor;\n\t}", "function Editor(el){\n\n // currentEl will hold the selected element\n this.currentEl = el;\n\n /* An example of a text editing method,\n ** will add text to selected element */\n this.text = function(text) {\n this.currentEl.textContent = text;\n return this;\n };\n\n /* An example of a style editing method,\n ** will updated style on selected element */\n this.css = function(property,value) {\n this.currentEl.style[property] = value;\n return this;\n };\n}", "function addCodeMirror(id) {\n\treturn CodeMirror.fromTextArea(document.getElementById(id), {\n\t\tmode: \"application/xml\",\n\t\ttabMode: \"indent\",\n\t\tstyleActiveLine: true,\n\t\tlineNumbers: true,\n\t\tlineWrapping: true,\n\t\tlineNumbers: true,\n\t});\n}", "function createEditorCore(contentDiv, options) {\n var corePlugins = {\n undo: options.undo || new Undo_1.default(),\n edit: new EditPlugin_1.default(),\n typeInContainer: new TypeInContainerPlugin_1.default(),\n mouseUp: new MouseUpPlugin_1.default(),\n domEvent: new DOMEventPlugin_1.default(options.disableRestoreSelectionOnFocus),\n firefoxTypeAfterLink: roosterjs_editor_dom_1.Browser.isFirefox && new FirefoxTypeAfterLink_1.default(),\n copyPlugin: !roosterjs_editor_dom_1.Browser.isIE && new CopyPlugin_1.default(),\n };\n var allPlugins = buildPluginList(corePlugins, options.plugins);\n var eventHandlerPlugins = allPlugins.filter(function (plugin) { return plugin.onPluginEvent || plugin.willHandleEventExclusively; });\n return {\n contentDiv: contentDiv,\n scrollContainer: options.scrollContainer || contentDiv,\n document: contentDiv.ownerDocument,\n defaultFormat: calculateDefaultFormat_1.calculateDefaultFormat(contentDiv, options.defaultFormat, options.inDarkMode),\n corePlugins: corePlugins,\n currentUndoSnapshot: null,\n customData: createCustomData(options.customData || {}),\n cachedSelectionRange: null,\n plugins: allPlugins,\n eventHandlerPlugins: eventHandlerPlugins,\n api: createCoreApiMap(options.coreApiOverride),\n defaultApi: createCoreApiMap(),\n inDarkMode: options.inDarkMode,\n darkModeOptions: options.darkModeOptions,\n };\n}", "initialize(options) {\n this.options = options;\n\n const codeMirrorOptions = {\n mode: {\n highlightFormatting: true,\n name: 'gfm',\n\n /*\n * The following token type overrides will be prefixed with\n * ``cm-`` when used as classes.\n */\n tokenTypeOverrides: {\n code: 'rb-markdown-code',\n list1: 'rb-markdown-list1',\n list2: 'rb-markdown-list2',\n list3: 'rb-markdown-list3'\n }\n },\n theme: 'rb default',\n lineWrapping: true,\n electricChars: false,\n styleSelectedText: true,\n extraKeys: {\n 'Home': 'goLineLeft',\n 'End': 'goLineRight',\n 'Enter': 'newlineAndIndentContinueMarkdownList',\n 'Shift-Tab': false,\n 'Tab': false\n }\n };\n\n if (options.autoSize) {\n codeMirrorOptions.viewportMargin = Infinity;\n }\n\n this._codeMirror = new CodeMirror(options.parentEl,\n codeMirrorOptions);\n\n this.setElement(this._codeMirror.getWrapperElement());\n\n if (this.options.minHeight !== undefined) {\n this.$el.css('min-height', this.options.minHeight);\n }\n\n this._codeMirror.on('viewportChange',\n () => this.$el.triggerHandler('resize'));\n this._codeMirror.on('change', () => this.trigger('change'));\n }", "isEditor(value) {\n if (!isPlainObject(value)) return false;\n var cachedIsEditor = IS_EDITOR_CACHE.get(value);\n\n if (cachedIsEditor !== undefined) {\n return cachedIsEditor;\n }\n\n var isEditor = typeof value.addMark === 'function' && typeof value.apply === 'function' && typeof value.deleteBackward === 'function' && typeof value.deleteForward === 'function' && typeof value.deleteFragment === 'function' && typeof value.insertBreak === 'function' && typeof value.insertFragment === 'function' && typeof value.insertNode === 'function' && typeof value.insertText === 'function' && typeof value.isInline === 'function' && typeof value.isVoid === 'function' && typeof value.normalizeNode === 'function' && typeof value.onChange === 'function' && typeof value.removeMark === 'function' && (value.marks === null || isPlainObject(value.marks)) && (value.selection === null || Range.isRange(value.selection)) && Node.isNodeList(value.children) && Operation.isOperationList(value.operations);\n IS_EDITOR_CACHE.set(value, isEditor);\n return isEditor;\n }", "function load_code_editor(){\n var e_d_count = 0;\n $(\".code_text\").each(function() {\n var lang = $(this).attr(\"data-lang\");\n //php application/x-httpd-php\n //css text/css\n //html text/html\n //javascript text/javascript\n switch(lang){\n case 'php':\n lang = 'application/x-httpd-php';\n break;\n case 'less':\n case 'css':\n lang = 'text/css';\n break;\n case 'html':\n lang = 'text/html';\n break;\n case 'javascript':\n lang = 'text/javascript';\n break;\n default:\n lang = 'application/x-httpd-php';\n }\n var theme = $(this).attr(\"data-theme\");\n switch(theme){\n case 'default':\n theme = 'default';\n break;\n case 'light':\n theme = 'solarizedLight';\n break;\n case 'dark':\n theme = 'solarizedDark';;\n break;\n default:\n theme = 'default';\n }\n \n var editor = CodeMirror.fromTextArea(document.getElementById($(this).attr('id')), {\n lineNumbers: true,\n matchBrackets: true,\n mode: lang,\n indentUnit: 4,\n indentWithTabs: true,\n enterMode: \"keep\",\n tabMode: \"shift\"\n });\n editor.setOption(\"theme\", theme);\n $(editor.getScrollerElement()).width(100); // set this low enough\n width = $(editor.getScrollerElement()).parent().width();\n $(editor.getScrollerElement()).width(width); // set it to\n editor.refresh();\n Ed_array[e_d_count] = editor;\n e_d_count++;\n });\n}", "function uiCodemirrorDirective(e,t){function n(e,n,s,l){var c=angular.extend({value:n.text()},t.codemirror||{},e.$eval(s.uiCodemirror),e.$eval(s.uiCodemirrorOpts)),u=r(n,c);i(u,s.uiCodemirror||s.uiCodemirrorOpts,e),o(u,l,e),a(u,s.uiRefresh,e),e.$on(\"CodeMirror\",function(e,t){if(!angular.isFunction(t))throw new Error(\"the CodeMirror event requires a callback function\");t(u)}),angular.isFunction(c.onLoad)&&c.onLoad(u)}function r(e,t){var n;return\"TEXTAREA\"===e[0].tagName?n=window.CodeMirror.fromTextArea(e[0],t):(e.html(\"\"),n=new window.CodeMirror(function(t){e.append(t)},t)),n}function i(e,t,n){function r(t,n){angular.isObject(t)&&i.forEach(function(r){if(t.hasOwnProperty(r)){if(n&&t[r]===n[r])return;e.setOption(r,t[r])}})}if(t){var i=Object.keys(window.CodeMirror.defaults);n.$watch(t,r,!0)}}function o(e,t,n){t&&(t.$formatters.push(function(e){if(angular.isUndefined(e)||null===e)return\"\";if(angular.isObject(e)||angular.isArray(e))throw new Error(\"ui-codemirror cannot use an object or an array as a model\");return e}),t.$render=function(){var n=t.$viewValue||\"\";e.setValue(n)},e.on(\"change\",function(e){var r=e.getValue();r!==t.$viewValue&&n.$evalAsync(function(){t.$setViewValue(r)})}))}function a(t,n,r){n&&r.$watch(n,function(n,r){n!==r&&e(function(){t.refresh()})})}return{restrict:\"EA\",require:\"?ngModel\",compile:function(){if(angular.isUndefined(window.CodeMirror))throw new Error(\"ui-codemirror needs CodeMirror to work... (o rly?)\");return n}}}" ]
[ "0.76397574", "0.75973415", "0.7584642", "0.7584642", "0.75527847", "0.75521165", "0.75487804", "0.7531102", "0.75298876", "0.7528814", "0.7528267", "0.7528267", "0.75014883", "0.74978673", "0.7479799", "0.7479799", "0.7479799", "0.7479799", "0.7479799", "0.7479799", "0.74789435", "0.74789435", "0.74789435", "0.74789435", "0.74789435", "0.7457695", "0.74372286", "0.743516", "0.743516", "0.743516", "0.73948824", "0.7391429", "0.72113794", "0.72113794", "0.72113794", "0.7191424", "0.7191424", "0.7191424", "0.7191424", "0.7191424", "0.7191424", "0.7191424", "0.7191424", "0.7149247", "0.6990398", "0.6945304", "0.69269025", "0.69086623", "0.6886429", "0.68776083", "0.68776083", "0.68409294", "0.68409294", "0.68409294", "0.68409294", "0.68409294", "0.68409294", "0.68409294", "0.68409294", "0.68409294", "0.6784358", "0.6784358", "0.6783438", "0.6783438", "0.6783438", "0.6783438", "0.6783438", "0.6783438", "0.6769454", "0.6769454", "0.6753214", "0.6753214", "0.6677501", "0.66084933", "0.66084933", "0.65493137", "0.65493137", "0.6487391", "0.6456272", "0.639226", "0.6318769", "0.6265072", "0.6258246", "0.6258246", "0.6251575", "0.62032944", "0.61509234", "0.6107857", "0.61012334", "0.61012214", "0.6054634", "0.6007805", "0.59917194", "0.59746414", "0.5967472", "0.5950151", "0.5930396", "0.5920274", "0.59164464" ]
0.74789435
25
Attach the necessary event handlers when initializing the editor
function registerEventHandlers(cm) { var d = cm.display; on(d.scroller, "mousedown", operation(cm, onMouseDown)); // Older IE's will not fire a second mousedown for a double click if (ie && ie_version < 11) { on(d.scroller, "dblclick", operation(cm, function (e) { if (signalDOMEvent(cm, e)) { return } var pos = posFromMouse(cm, e); if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) { return } e_preventDefault(e); var word = cm.findWordAt(pos); extendSelection(cm.doc, word.anchor, word.head); })); } else { on(d.scroller, "dblclick", function (e) { return signalDOMEvent(cm, e) || e_preventDefault(e); }); } // Some browsers fire contextmenu *after* opening the menu, at // which point we can't mess with it anymore. Context menu is // handled in onMouseDown for these browsers. on(d.scroller, "contextmenu", function (e) { return onContextMenu(cm, e); }); on(d.input.getField(), "contextmenu", function (e) { if (!d.scroller.contains(e.target)) { onContextMenu(cm, e); } }); // Used to suppress mouse event handling when a touch happens var touchFinished, prevTouch = {end: 0}; function finishTouch() { if (d.activeTouch) { touchFinished = setTimeout(function () { return d.activeTouch = null; }, 1000); prevTouch = d.activeTouch; prevTouch.end = +new Date; } } function isMouseLikeTouchEvent(e) { if (e.touches.length != 1) { return false } var touch = e.touches[0]; return touch.radiusX <= 1 && touch.radiusY <= 1 } function farAway(touch, other) { if (other.left == null) { return true } var dx = other.left - touch.left, dy = other.top - touch.top; return dx * dx + dy * dy > 20 * 20 } on(d.scroller, "touchstart", function (e) { if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e) && !clickInGutter(cm, e)) { d.input.ensurePolled(); clearTimeout(touchFinished); var now = +new Date; d.activeTouch = {start: now, moved: false, prev: now - prevTouch.end <= 300 ? prevTouch : null}; if (e.touches.length == 1) { d.activeTouch.left = e.touches[0].pageX; d.activeTouch.top = e.touches[0].pageY; } } }); on(d.scroller, "touchmove", function () { if (d.activeTouch) { d.activeTouch.moved = true; } }); on(d.scroller, "touchend", function (e) { var touch = d.activeTouch; if (touch && !eventInWidget(d, e) && touch.left != null && !touch.moved && new Date - touch.start < 300) { var pos = cm.coordsChar(d.activeTouch, "page"), range; if (!touch.prev || farAway(touch, touch.prev)) // Single tap { range = new Range(pos, pos); } else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) // Double tap { range = cm.findWordAt(pos); } else // Triple tap { range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0))); } cm.setSelection(range.anchor, range.head); cm.focus(); e_preventDefault(e); } finishTouch(); }); on(d.scroller, "touchcancel", finishTouch); // Sync scrolling between fake scrollbars and real scrollable // area, ensure viewport is updated when scrolling. on(d.scroller, "scroll", function () { if (d.scroller.clientHeight) { updateScrollTop(cm, d.scroller.scrollTop); setScrollLeft(cm, d.scroller.scrollLeft, true); signal(cm, "scroll", cm); } }); // Listen to wheel events in order to try and update the viewport on time. on(d.scroller, "mousewheel", function (e) { return onScrollWheel(cm, e); }); on(d.scroller, "DOMMouseScroll", function (e) { return onScrollWheel(cm, e); }); // Prevent wrapper from ever scrolling on(d.wrapper, "scroll", function () { return d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; }); d.dragFunctions = { enter: function (e) {if (!signalDOMEvent(cm, e)) { e_stop(e); }}, over: function (e) {if (!signalDOMEvent(cm, e)) { onDragOver(cm, e); e_stop(e); }}, start: function (e) { return onDragStart(cm, e); }, drop: operation(cm, onDrop), leave: function (e) {if (!signalDOMEvent(cm, e)) { clearDragCursor(cm); }} }; var inp = d.input.getField(); on(inp, "keyup", function (e) { return onKeyUp.call(cm, e); }); on(inp, "keydown", operation(cm, onKeyDown)); on(inp, "keypress", operation(cm, onKeyPress)); on(inp, "focus", function (e) { return onFocus(cm, e); }); on(inp, "blur", function (e) { return onBlur(cm, e); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init() {\n\n\t\t// Bind the editor elements to variables\n\t\tbindElements();\n\n\t\t// Create event listeners for keyup, mouseup, etc.\n\t\tcreateEventBindings();\n\t}", "initEventListners() {\n this.engine.getSession().selection.on('changeCursor', () => this.updateCursorLabels());\n\n this.engine.getSession().on('change', (e) => {\n // console.log(e);\n\n // Make sure the editor has content before allowing submissions\n this.allowCodeSubmission = this.engine.getValue() !== '';\n this.enableRunButton(this.allowCodeSubmission);\n });\n }", "function initEditor() {\n checkSetup();\n initFirebase();\n initConstants();\n initCanvas();\n initButton();\n initEditorData();\n initEventHandlers();\n resetEditor();\n initGrid();\n initSelectorContent();\n}", "async _onReady() {\n // Make the editor \"complex.\" This \"fluffs\" out the DOM and makes the\n // salient controller objects.\n this._editorComplex =\n new EditorComplex(this._sessionInfo, this._window, this._editorNode);\n\n await this._editorComplex.whenReady();\n this._recoverySetup();\n }", "async _onReady() {\n // Make the editor \"complex.\" This \"fluffs\" out the DOM and makes the\n // salient controller objects.\n this._editorComplex =\n new EditorComplex(this._sessionKey, this._window, this._editorNode);\n\n await this._editorComplex.whenReady();\n this._recoverySetup();\n }", "function ckeInitEvents(editor) {\n\t\n\teditor.on('blur', ckeBlurEvent);\n\teditor.on('focus', ckeFocusEvent);\n\teditor.on('change', ckeBlurEvent);\n\teditor.on('resize', ckeResizeEvent);\n\teditor.on('fileUploadRequest', ckeUploadEvent, null, null, 4); \n\n\tvar $textarea = $(editor.element.$);\n\tvar $inputfield = $textarea.closest('.Inputfield.InputfieldColumnWidth');\n\t\n\tif($inputfield.length) setTimeout(function() {\n\t\t$inputfield.trigger('heightChanged');\n\t}, 1000);\n}", "function initStepToolbarEventHandler() {\n initAddFieldSetEventHandler();\n initPreviewToggle();\n }", "init() {\n // Get saved editor settings if any or default values from SettingsHandler\n const initialLanguage = settingsHandler.getEditorLanguageMode();\n const initialContent = settingsHandler.getEditorContent();\n\n this.engine.setTheme('ace/theme/monokai');\n this.engine.$blockScrolling = Infinity;\n this.engine.setShowPrintMargin(false);\n // Define the language mode for syntax highlighting and editor content\n this.engine.getSession().setMode({path:'ace/mode/' + initialLanguage, inline:true});\n this.engine.setValue(initialContent);\n\n this.initEventListners();\n }", "function addEditorListener() {\n\t\t$('.editing .edit').on('keyup', function(e) {\n\t\t\tcheckEditPress(e);\n\t\t})\n\n\t}", "_initEvent() {\n this.eventManager.listen('wysiwygSetValueAfter', () => {\n this._unwrapDivOnHr();\n });\n }", "init() {\n this.editor.style.width = this.width;\n this.editor.style.height = this.height;\n this.bar.setupToolbar();\n\n this.createTag(\"\", this.getActiveTags(), this.getActiveStyle());\n\n let tools = document.querySelectorAll(\".editor-button\");\n tools.forEach(t => {\n t.addEventListener('click', (e) => {\n this.updateStyle(e);\n });\n });\n }", "init() {\n Nova.$on(`ckeditor:media:${this.attribute}:write`, this.writeContent.bind(this))\n this.ui.componentFactory.add('mediaBrowser', this.createButton.bind(this))\n }", "function _registerHandlers(editor) {\n $(editor).on(\"keyEvent\", _cursorHandler);\n $(editor.document).one(\"change\", _handler);\n editor.document.addRef();\n }", "function initEditor() {\n renderWorkingLine();\n renderTextInput();\n renderFontColorPicker();\n renderFontSize();\n toggleStrokeBtn();\n renderStrokeColorPicker();\n renderStrokeSize();\n renderStickers();\n}", "load()\n {\n this.replaceTextArea();\n this.createCustomButtons();\n if (this.config.CKEditor.editorData !== undefined) {\n this.oEditor.setData(this.config.CKEditor.editorData);\n }\n if (this.config.RichFilemanager !== undefined) {\n this.editor.on('dialogDefinition', (event) => {this.connectRichFilemanager(event);});\n }\n }", "function vB_AJAX_QuickEditor_Events()\n{\n}", "initEditor() {\n\t\tlet navigationCallback = e => {\n\t\t\tlet target = this.props.data.nodes.filter(node => {\n\t\t\t\treturn node.instanceId === e.instanceId;\n\t\t\t});\n\n\t\t\t//\n\t\t\tlet nodeIndex = this.props.data.nodes.indexOf(target[0]);\n\t\t\t//\n\n\t\t\tdocument.querySelector(`#page${this.props.index}node${nodeIndex}`).click();\n\t\t};\n\n\t\tthis.editor = new buildfire.components.pluginInstance.sortableList(`#nodelist${this.props.index}`, [], { confirmDeleteItem: true }, false, false, { itemEditable: true, navigationCallback });\n\n\t\tthis.editor.onOrderChange = () => {\n\t\t\tthis.reorderNodes(this.props.index, this.editor.items);\n\t\t};\n\n\t\tthis.editor.onDeleteItem = () => {\n\t\t\tthis.reorderNodes(this.props.index, this.editor.items);\n\t\t};\n\t}", "_initEvents() {\n window.addEventListener(\"submitCommand\", event => this._processInput(event.detail));\n this.input.editableNode.onkeypress = () => {\n if (this.mode == Editor.MODE_INSERT)\n this.modificationSaved = false;\n };\n this.input.editableNode.onkeydown = event => {\n let keycode = event.keyCode;\n if (this.mode != Editor.MODE_INSERT && keycode !== 37 && keycode !== 38 && keycode !== 39 && keycode !== 40) {\n if (keycode !== Editor.KEY_TOGGLE_MODE_COMMAND)\n event.preventDefault();\n }\n }\n }", "function init() {\n\t\t\t\n\t\t\t// Is there any point in continuing?\n\t\t\tif (allElments.length == 0) {\n\t\t\t\tdebug('page contains no elements');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Replace images\n\t\t\treplaceImgboxes();\n\t\t\t\n\t\t\t// Listen for window resize events\n\t\t\t$(window).on('resize', windowResizeImgbox);\n\n\t\t\t// Add mouse listeners if we are in edit mode\n\t\t\tif (settings.command == 'edit') {\n\t\t\t\tdebug('settings.command:edit');\n\t\t\t\t$(allElments).on('click', editClick);\n\t\t\t\t$(allElments).on('mousemove', editMousemove);\n\t\t\t}\n\t\t}", "@autobind\n initEvents() {\n $(document).on('intro', this.triggerIntro);\n $(document).on('instructions', this.triggerInstructions);\n $(document).on('question', this.triggerQuestion);\n $(document).on('submit_query', this.triggerSubmitQuery);\n $(document).on('query_complete', this.triggerQueryComplete);\n $(document).on('bummer', this.triggerBummer);\n }", "initEditor() {\n let savedCode = this.service.getCode(this.currentExo.method);\n if (savedCode)\n this.editor.setValue(savedCode);\n\n byId('editor').style.height = this.editorHeight + 'px';\n this.editor.resize();\n }", "function initEventHandler() {\n // initSortable();\n initFormEvents(fb);\n initListEvents(fb);\n}", "connectedCallback(){super.connectedCallback();let root=this;document.addEventListener(\"selectionchange\",e=>{root.range=root.getRange()});document.addEventListener(\"select-rich-text-editor-editor\",e=>{root._editorChange(e)});document.addEventListener(\"deselect-rich-text-editor-editor\",e=>{root._editorChange(e)})}", "function initEditor() {\n\t\t//first thing to do is set up loading page until we can establish a connection\n\t\tdrawLoadScreen();\n\t\tgetToken();\n\t}", "function attachWorkflowEditorEvents()\n {\n //Bind Save event\n $(\"#perc-wf-save\").off(\"click\").on(\"click\", function(evt)\n {\n saveNewWorkflow();\n });\n\n //Bind Cancel event\n $(\"#perc-wf-cancel, #perc-wf-update-cancel\").off(\"click\").on(\"click\", function(evt)\n {\n cancel();\n });\n\n //Bind Edit event\n\t\t\t$(\"#perc-wf-edit\").off(\"keydown\").on(\"keydown\", function(eventHandler)\n {\n if(eventHandler.code == \"Enter\" || eventHandler.code == \"Space\"){\n\t\t\t\tdocument.activeElement.click();\n\t\t\t}\n });\n $(\"#perc-wf-edit\").off(\"click\").on(\"click\", function(evt)\n {\n editWorkflow(evt);\n });\n\n //Bind Update event\n $(\"#perc-wf-update-save\").off(\"click\").on(\"click\", function(evt)\n {\n updateWorkflow();\n });\n }", "onInit() {\n this.__initEvents();\n }", "function attachEventHandlers() {\n // TODO arrow: attach events for functionality like in assignment-document described\n var clicked;\n $(\"#\"+_this.id).click(function(event){\n clicked = true;\n diagram.selectArrow(_this);\n });\n $(\"#\"+_this.id).contents().on(\"dblclick contextmenu\", function(event){\n clicked = true;\n event.preventDefault();\n });\n\n // TODO arrow optional: attach events for bonus points for 'TAB' to switch between arrows and to select arrow\n $(\"#\"+_this.id).contents().attr(\"tabindex\",\"0\");\n\n $(\"#\"+_this.id).keydown(function(event){\n if(event.which == \"13\"){\n diagram.selectArrow(_this);\n }\n if(event.which == \"9\"){\n clicked = false;\n }\n })\n $(\"#\"+_this.id).contents().focusin(function(event){\n if(!clicked){\n setActive(true);\n }\n });\n $(\"#\"+_this.id).contents().focusout(function(event){\n setActive(false);\n });\n }", "function fnInitialiseEditor()\n {\n elRoot.parentNode.classList.add('-active');\n\n // if it’s already there…\n if (oEditor !== null)\n {\n oEditor.setup();\n return;\n }\n\n // load raw markup from the server, then use it to init the editor\n ajaxRequest( `${options.uri}.json?field=${options.property}` ).then( oJson =>\n {\n // a. swap things out\n sOldMarkup = elRoot.innerHTML;\n elRoot.innerHTML = oJson.content;\n\n // b initiate the editor\n oEditor = new Editor( elRoot, { toolbar: { buttons: EDITOR_BUTTONS }});\n });\n }", "function init() {\n setDomEvents();\n }", "function init () {\n bindEventHandlers();\n}", "_initEvent() {\n this.cm.getWrapperElement().addEventListener('click', () => {\n this.eventManager.emit('click', {\n source: 'markdown'\n });\n });\n\n this.cm.on('beforeChange', (cm, ev) => {\n if (ev.origin === 'paste') {\n this.eventManager.emit('pasteBefore', {\n source: 'markdown',\n data: ev\n });\n }\n });\n\n this.cm.on('change', (cm, cmEvent) => {\n this._refreshCodeMirrorMarks(cmEvent);\n this._emitMarkdownEditorChangeEvent(cmEvent);\n });\n\n this.cm.on('focus', () => {\n this.eventManager.emit('focus', {\n source: 'markdown'\n });\n });\n\n this.cm.on('blur', () => {\n this.eventManager.emit('blur', {\n source: 'markdown'\n });\n });\n\n this.cm.on('scroll', (cm, eventData) => {\n this.eventManager.emit('scroll', {\n source: 'markdown',\n data: eventData\n });\n });\n\n this.cm.on('keydown', (cm, keyboardEvent) => {\n this.eventManager.emit('keydown', {\n source: 'markdown',\n data: keyboardEvent\n });\n\n this.eventManager.emit('keyMap', {\n source: 'markdown',\n keyMap: keyMapper.convert(keyboardEvent),\n data: keyboardEvent\n });\n });\n\n this.cm.on('keyup', (cm, keyboardEvent) => {\n this.eventManager.emit('keyup', {\n source: 'markdown',\n data: keyboardEvent\n });\n });\n\n this.cm.on('copy', (cm, ev) => {\n this.eventManager.emit('copy', {\n source: 'markdown',\n data: ev\n });\n });\n\n this.cm.on('cut', (cm, ev) => {\n this.eventManager.emit('cut', {\n source: 'markdown',\n data: ev\n });\n });\n\n this.cm.on('paste', (cm, clipboardEvent) => {\n this.eventManager.emit('paste', {\n source: 'markdown',\n data: clipboardEvent\n });\n });\n\n this.cm.on('drop', (cm, eventData) => {\n eventData.preventDefault();\n\n this.eventManager.emit('drop', {\n source: 'markdown',\n data: eventData\n });\n });\n\n this.cm.on('cursorActivity', () => this._onChangeCursorActivity());\n }", "function initCanvasAndEditor() {\n // Editor\n initEditor();\n\n // Canvas\n canvasResizer();\n renderCanvas();\n\n // Listeners\n addListeners();\n}", "init(ids) {\n initEditors(ids)\n }", "installed() {\n this._initializeEditor()\n }", "_initializeEditor(editor) {\n const that = this,\n editorTagName = 'jqx-' + JQX.Utilities.Core.toDash(editor),\n editorElement = document.createElement(editorTagName);\n\n if (editor === 'numericTextBox') {\n editorElement.spinButtons = true;\n editorElement.inputFormat = 'floatingPoint';\n }\n else if (editor === 'dateTimePicker') {\n editorElement.calendarButton = true;\n editorElement.dropDownDisplayMode = 'auto';\n editorElement.enableMouseWheelAction = true;\n editorElement.locale = that.locale;\n\n if (!editorElement.messages[that.locale]) {\n editorElement.messages[that.locale] = {};\n }\n\n editorElement.messages[that.locale].dateTabLabel = that.localize('dateTabLabel');\n editorElement.messages[that.locale].timeTabLabel = that.localize('timeTabLabel');\n }\n\n editorElement.tabIndex = '1';\n editorElement.theme = that.theme;\n editorElement.animation = that.animation;\n that.$[editor + 'Editor'] = editorElement;\n editorElement.$ = JQX.Utilities.Extend(editorElement);\n editorElement.className = editorTagName + '-editor jqx-hidden';\n that.$.editorsContainer.appendChild(editorElement);\n that['_' + editor + 'Initialized'] = true;\n }", "_init() {\n this.$inputs = this.$element.find('input, textarea, select');\n\n this._events();\n }", "addEventHandlers() {\n\n\t\tthis.elementConfig.addButton.on(\"click\",this.handleAdd);\n\t\tthis.elementConfig.cancelButton.on(\"click\",this.handleCancel);\n\t\tthis.elementConfig.retrieveButton.on(\"click\",this.retrieveData);\n\n\n\t}", "constructChangeListeners() {\n // TODO it would be best to remove the event listeners after they are fired\n // and then re-instantiate them after a new recipe loads\n\n // Listener for the editor itself\n this.qEditor.on('text-change', () => {\n this.edited = true\n })\n\n // Listener for the tagInput add and remove events\n // FIXME it does not appear that the .offs are working for these\n this.tagInput.on('add', () => {\n this.edited = true\n })\n\n this.tagInput.on('remove', () => {\n this.edited = true\n })\n\n // Listener for title change\n const titleDOM = document.getElementById('title')\n titleDOM.addEventListener('input', () => {this.edited=true})\n\n // Listener for make-soon button\n const makeSoon = document.getElementById('make-soon-box')\n makeSoon.addEventListener('change', (evt) => {\n const checked = evt.srcElement.checked\n this.edited = true\n if(checked) {\n this.makeSoon = true\n } else {\n this.makeSoon = false\n }\n })\n\n // Listener for Tried 'n' True button\n const tried = document.getElementById('tried-box')\n tried.addEventListener('change', (evt) => {\n const checked = evt.srcElement.checked\n this.edited = true\n if(checked) {\n this.triedNTrue = true\n } else {\n this.triedNTrue = false\n }\n })\n }", "function slideEditorInit() {\n\t\t// Unbind anything that was previously bound\n\t\t$('body').off('click', '#fq_kiosk_gallery_add_slide, #fq_gallery_kiosk_save_new_slide, #fq_gallery_kiosk_cancel_slide', function() {\n\t\t\t\n\t\t});\n\t\t\n\t\t// Adding a new slide\n\t\t$('body').on('click', '#fq_kiosk_gallery_add_slide', function(e) {\n\t\t\te.preventDefault();\n\t\t\t\n\t\t\t// Does the editor area already exist? If it does, don't add another\n\t\t\tif ($('.slide-editor').length == 0) {\n\t\t\t\taddSlideEditor();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Cancelling the slide editor\n\t\t$('body').on('click', '#fq_gallery_kiosk_cancel_slide', function(e) {\n\t\t\tremoveSlideEditor();\n\t\t});\n\t\t\n\t\t// Add new slide\n\t\t$('body').on('click', '#fq_gallery_kiosk_save_new_slide', function(e) {\n\t\t\t// Save the tinymce content\n\t\t\ttinyMCE.get(\"slide_content\").save();\n\t\t\t\n\t\t\t// Stop the form submission\n\t\t\te.preventDefault();\n\t\t\t\n\t\t\t// Submit via an ajax promise\n\t\t\tvar promise = $.ajax({\n\t\t\t\turl: mobile_kiosk.template_url + '/fq/admin/mobile-kiosk/slide-create',\n\t\t\t\tmethod: 'POST',\n\t\t\t\tdata:{\n\t\t\t\t\tslide_title: $('[name=\"slide_title\"]').val(),\n\t\t\t\t\tslide_content: $('[name=\"slide_content\"]').val(),\n\t\t\t\t\tfeatured_image_id: $('[name=\"featured_image_id\"]').val()\n\t\t\t\t}\n\t\t\t});\t\t\n\t\t\t\n\t\t\tpromise.done(function(data) {\n\t\t\t\tdata = $.parseJSON(data);\n\t\t\t\t\n\t\t\t\t// Was this successful?\n\t\t\t\tif (!data.success) {\n\t\t\t\t\t// Add an alert with the error\n\t\t\t\t\t$('#slides_messages').html('<p class=\"alert alert-danger\">' + data.message + '</p>');\n\t\t\t\t} else {\n\t\t\t\t\t// Add an alert that this was successful\n\t\t\t\t\t$('#slides_messages').html('<p class=\"alert alert-success\">' + data.message + '</p>');\n\t\t\t\t\t\n\t\t\t\t\t// Add this to our list of slides\n\t\t\t\t\t$('.slides .no-slides').hide();\n\t\t\t\t\t$('.slides').append(data.template);\n\t\t\t\t\t\n\t\t\t\t\t// Remove the slide editor\n\t\t\t\t\tremoveSlideEditor();\n\t\t\t\t\tfadeOutMessages();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\t// Enable adding existing slide\n\t\t$('body').on('click', '#fq_kiosk_gallery_add_existin_slide_trigger', function(e) {\n\t\t\t// Make sure the add slide functinoality isn't already visible\n\t\t\tif ($('#add_slide_wrapper .available-slides').length == 0) {\n\t\t\t\tremoveSlideEditor();\n\t\t\t\tshowAddSlide();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Allow removing of slides\n\t\t$('body').on('click', '.slides li .remove-slide', function(e) {\n\t\t\tvar slide = $(this);\n\t\t\t\n\t\t\t// Fade it out and then remove it\n\t\t\t$(slide).closest('li').fadeOut('250');\n\t\t\tsetTimeout(function() {\n\t\t\t\t$(slide).closest('li').remove();\n\t\t\t}, 500);\n\t\t});\n\t\t\n\t\t\n\t\t// Bind link for editing slide\n\t\t$('body').on('click', '.slide-preview .edit', function(e) {\n\t\t\te.preventDefault();\n\t\t\t\n\t\t\t// Color the row\n\t\t\t$('li.editing').removeClass('editing');\n\t\t\t$(this).closest('li').addClass('editing');\n\t\t\t\n\t\t\tshowSlideEdit($(this).closest('li').data('id'));\n\t\t});\n\t\t\n\t\t\n\t\tif ($('#sortable').length > 0) {\n\t\t\t$(\"#sortable\").sortable({ \n\t\t\t cursor: \"move\", \n\t\t\t containment: \"#gallery-slides\",\n\t\t\t});\n\t\t}\n\t\t\n\t\tif ($('.primary-color').length > 0) {\n\t\t\t$('.primary-color').wpColorPicker();\n\t\t}\n\t\t\n\t\t\n\t\tgalleryLogo();\n\t\t\n\t}", "_initializeEditor(editor) {\n const that = this;\n\n if (that.$[editor + 'Editor']) {\n that._editor = that.$[editor + 'Editor'];\n return;\n }\n\n const editorElement = document.createElement('jqx-' + JQX.Utilities.Core.toDash(editor));\n\n if (editor === 'numericTextBox') {\n editorElement.spinButtons = true;\n editorElement.inputFormat = 'floatingPoint';\n }\n else if (editor === 'dateTimePicker') {\n editorElement.dropDownAppendTo = that.$.container;\n editorElement.calendarButton = true;\n editorElement.dropDownDisplayMode = 'auto';\n editorElement.enableMouseWheelAction = true;\n editorElement.locale = that.locale;\n\n if (!editorElement.messages[that.locale]) {\n editorElement.messages[that.locale] = {};\n }\n\n editorElement.messages[that.locale].dateTabLabel = that.localize('dateTabLabel');\n editorElement.messages[that.locale].timeTabLabel = that.localize('timeTabLabel');\n }\n\n editorElement.theme = that.theme;\n editorElement.animation = that.animation;\n editorElement.$.addClass('jqx-hidden underlined');\n that.$.editorsContainer.appendChild(editorElement);\n that._editor = that.$[editor + 'Editor'] = editorElement;\n }", "function attached() {\n\t/* jslint validthis:true */\n\tthis._editor = create( this, this.$.editor );\n} // end FUNCTION attached()", "getEditorListeners() {\n return {\n focusout: 'onEditorFocusOut',\n focusin: 'onEditorFocusIn',\n start: 'onEditorStart',\n beforecomplete: 'onEditorBeforeComplete',\n complete: 'onEditorComplete',\n cancel: 'onEditorCancel',\n thisObj: this\n };\n }", "getEditorListeners() {\n return {\n focusout: 'onEditorFocusOut',\n focusin: 'onEditorFocusIn',\n start: 'onEditorStart',\n beforecomplete: 'onEditorBeforeComplete',\n complete: 'onEditorComplete',\n cancel: 'onEditorCancel',\n thisObj: this\n };\n }", "function initInstanceCallback(editor) {\n const element = document.getElementById(editor.id).closest(\".element-editor\")\n element.getElementsByClassName(\"spinner\").item(0).remove()\n editor.on(\"dirty\", function () {\n Alchemy.setElementDirty(element)\n })\n editor.on(\"click\", function (event) {\n event.target = element\n Alchemy.ElementEditors.onClickElement(event)\n })\n}", "function MMMediaBundleFileDropzoneInitiateEvents() {\n\n // mandarinmedien/mmcmfadminbundle\n $(document).on('mmcmfadmin:tabs:add:first', MMMediaBundleInit);\n\n // mandarinmedien/mmcmfcontentbundle\n $(document).on('modalOpen.settingsForm.MMCmfContentFieldEditor', MMMediaBundleInit);\n}", "function init(){\n buildComponent();\n attachHandlers();\n addComponents();\n }", "function initEditor()\r\n{\r\n\t// Insert tab in the code box\r\n\t$('[name=\"data\"]').off('keydown').on('keydown', function (e)\r\n\t{\r\n\t\tif (e.keyCode == 9)\r\n\t\t{\r\n\t\t\tvar myValue = \"\\t\";\r\n\t\t\tvar startPos = this.selectionStart;\r\n\t\t\tvar endPos = this.selectionEnd;\r\n\t\t\tvar scrollTop = this.scrollTop;\r\n\r\n\t\t\tthis.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos,this.value.length);\r\n\t\t\tthis.focus();\r\n\t\t\tthis.selectionStart = startPos + myValue.length;\r\n\t\t\tthis.selectionEnd = startPos + myValue.length;\r\n\t\t\tthis.scrollTop = scrollTop;\r\n\r\n\t\t\te.preventDefault();\r\n\t\t}\r\n\t});\r\n\r\n\t// Tick the private checkbox if password is entered\r\n\t$('[name=\"password\"]').off('keyup').on('keyup', function()\r\n\t{\r\n\t\t$('[name=\"private\"]').attr('checked', $(this).val().length > 0);\r\n\t});\r\n}", "function _onEditorChanged() {\n\t\t_close();\n\t\tcurrentEditor = EditorManager.getCurrentFullEditor();\n\n\t\tcurrentEditor.$textNode = $(currentEditor.getRootElement()).find(\".CodeMirror-lines\");\n\t\tcurrentEditor.$textNode = $(currentEditor.$textNode.children()[0].children[3]);\n\t\tcurrentEditor.$numbersNode = $(currentEditor.getRootElement()).find(\".CodeMirror-gutter-text\");\n\n\t\t\n\t}", "_editorChanged() {\n this.dispatchEvent(\n new CustomEvent(\"editor-change\", {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: this,\n })\n );\n }", "initEvents() {\n var self = this;\n\n $('#import-nodes-lists').on('click', 'li.import-node', self.nodeClicked.bind(self));\n $('#import-nodes-lists').on('click', '.import-node-remove', self.nodeRemoved.bind(self));\n $('#import-nodes-lists').on('click', '.import-node-edit', self.nodeEdit.bind(self));\n $('#import-nodes-lists').on('submit', '.import-node-form', self.nodeEdited.bind(self));\n $('#import-nodes-lists').on('focusout', '.import-node-form input', self.nodeEdited.bind(self));\n $('#import_send').click(self.submitNodes.bind(self));\n }", "function initListeners() {\n $('#key').on('click', '.key-show-control', function(ev) {\n dispatch.keyShowLine($(this).data('line-id'));\n });\n\n $('#key').on('click', 'a.key-duplicate-control', function(ev) {\n ev.preventDefault();\n dispatch.keyDuplicateLine($(this).data('line-id'));\n });\n\n $('#key').on('click', 'a.key-delete-control', function(ev) {\n ev.preventDefault();\n dispatch.keyDeleteLine($(this).data('line-id'));\n });\n\n $('#key').on('click', 'a.key-edit-control', function(ev) {\n ev.preventDefault();\n dispatch.keyEditLine($(this).data('line-id'));\n });\n }", "onCreated() {\n\t\tlet brackets = null,\n\t\t\tDocumentManager = null,\n\t\t\tdoc = null;\n\t\tthis.classList.add('closet-instant-editor');\n\t\t$(document.body).append(this);\n\t\tbrackets = utils.checkGlobalContext('brackets');\n\t\tDocumentManager = brackets.getModule('document/DocumentManager');\n\t\tdoc = DocumentManager.createUntitledDocument(1, '.html');\n\t\tthis._textEditor = new TextEditor(doc, false, this.$el);\n\t\tthis._$textEditorEl = this._textEditor.$el;\n\n\t\tthis._$textEditorEl.addClass('closet-instant-editor-item');\n\t\tthis._$textEditorEl.attr('tabindex', 0);\n\n\t\tthis._currentGrammar = null;\n\t\tthis._targetModel = null;\n\n\t\tthis._opened = false;\n\t\tthis._bindEvent();\n\t}", "function init() {\n loadDependencies();\n attachEventHandlers();\n}", "function init(e)\n {\n component = $(e);\n component.addClass('mt-container');\n addTextarea();\n addInput();\n addList();\n component.append('<div style=\"clear:both;\"></div>');\n }", "function initModalListeners() {\n // Inits click for the drop message modal.\n $('#drop').click(messageDropListener);\n // Inits click for the view comments modal.\n $('#add').click(addComment);\n}", "_addEventsListeners ()\n {\n this._onChange();\n }", "function setupViewEventHandlers(self) {\n _view.resetButtonEventBus.onEvent(newWordLogic.bind(self));\n _view.alphabetButtonEventBus.onEvent(letterPressedLogic.bind(self));\n }", "_events() {\n \tthis._addKeyHandler();\n \tthis._addClickHandler();\n }", "function init() {\n\t\tinitEvents();\n\t}", "function attachHandlers () {\n // Custom color input field handler\n $('.custom-color').on('keyup change', function(e) {\n var colorHex = e.target.value,\n colorGex = /^([A-Fa-f0-9]{6})$/;\n\n if (colorGex.test(colorHex)) {\n $(this).siblings('.color-preview').css('background-color', ('#' + colorHex));\n clonedColors[$(this).data('target')] = '#' + colorHex;\n reRenderPreview(clonedColors);\n }\n });\n\n // Toggle link to show or hide customization options\n $('#customization-toggle').on('click', function() {\n $('.customization').toggle();\n $(previewContainer).toggle();\n\n var $this = $(this),\n isVisible = $('.customization').is(':visible'),\n statusTextNode = $this.children('.customization-status'),\n customColorField = $('.custom-color'),\n colorPreview = $('.color-preview');\n\n statusTextNode.text(isVisible ? 'Hide' : 'Show');\n\n initialize();\n reRenderPreview(colors);\n });\n\n // Handler on preset color theme click\n $('.theme').on('mousedown', function(e) {\n $('.custom-color').val(e.target.dataset.color.substr(1));\n $('.custom-color').trigger('change');\n });\n }", "function bindEvents() {\n\t\t\teManager.on('showForm', function() {\n\t\t\t\tshowForm();\n\t\t\t});\n\t\t\teManager.on('csvParseError', function() {\n\t\t\t\tshowError();\n\t\t\t});\n\t\t}", "init(){\n this.addEvents(this.keys);\n }", "_listenSpecsEditorEvents() {\n // listen for save\n this.addEventListener('s-specs-editor.ready', (e) => __awaiter(this, void 0, void 0, function* () {\n // store the specs editor reference\n this._$specsEditor = e.target;\n }));\n // listen for save\n this.addEventListener('s-specs-editor.save', (e) => __awaiter(this, void 0, void 0, function* () {\n this._currentNode.save();\n }));\n // listen for actual updated\n this.addEventListener('s-specs-editor.change', (e) => __awaiter(this, void 0, void 0, function* () {\n // apply the component\n this.applyComponent(e.detail.values);\n }));\n // listen for media change in the specs editor\n this.addEventListener('s-specs-editor.changeMedia', (e) => {\n // change the media internaly\n this._activateMedia(e.detail);\n });\n }", "initializeEvents () {\n }", "function init() {\r\n bindEventListeners();\r\n }", "function eventHandlersInit(){\r\n $.logEvent('[dataVisualization.core.eventHandlersInit]');\r\n \r\n var activeModuleObj;\r\n var interactivePluginId;\r\n var inputObj;\r\n \r\n $('#' + dataVisualization.configuration.visualizationWrapperId).on('click', '.module A.reload',function(e){\r\n e.preventDefault();\r\n \r\n activeModuleObj = $(this).parents('.module');\r\n interactivePluginObj = activeModuleObj.find('[data-initialized=\"true\"]');\r\n \r\n // Show the overlay\r\n activeModuleObj\r\n .find('.overlay')\r\n .show();\r\n \r\n // Unload the active component\r\n interactivePluginObj\r\n .removeAttr('style')\r\n .empty();\r\n \r\n // Remove any '.centre-value' DOM elements\r\n $('.centre-value',activeModuleObj).remove();\r\n \r\n // Remove any standalone keys\r\n $('.key',activeModuleObj).remove();\r\n \r\n // Initialize the required functionality for the desired module\r\n dataVisualization.dispatcher.moduleInitialize({\r\n id: interactivePluginObj.attr('id')\r\n })\r\n });\r\n }", "function init() {\r\n contextListener();\r\n clickListener();\r\n keyupListener();\r\n resizeListener();\r\n }", "initNodeEditor() {\n this.container = document.getElementById('d3-node-editor');\n\n this.editor = new D3NE.NodeEditor(\n `${this.name}NodeEditor${this._version}`,\n this.container,\n this.components,\n this.menu,\n );\n\n this.engine = new D3NE.Engine(`${this.name}NodeEditor${this._version}`,\n this.components);\n\n this.engine.onError =\n (msg, obj) => { console.error(`Node Editor Error: ${msg}`, obj); };\n\n this._addEventListener();\n\n this.editor.view.zoomAt(this.editor.nodes);\n this.engine.process(this.editor.toJSON());\n this.editor.view.resize();\n }", "function init() {\n // contextListener();\n clickListener();\n // keyupListener();\n // resizeListener();\n}", "function initInlineEditor() {\n // Make the rendered font style match the field in the page\n // $('#input-editor input').matchTextStyleTo($el); // Removed by Franco on 16-03-2015\n\n // Prevent the enter key from submitting the form...\n $('#input-editor input').handleEnterKey();\n }", "function _onEditorConnect(editor) {\n\t\tconsole.log(\"Editor connected\");\n\n\t\t// Called when a potential old editor was disconnected (i.e. multiple instances of Brackets are not supported)\n\t\tvar next = function () {\n\t\t\t_setupEditor(editor);\n\t\t\t_connectDebugger();\n\t\t};\n\n\t\tif (_editor) {\n\t\t\t// Cleanup\n\t\t\tconsole.log(\"Disconnecting previous editor\");\n\t\t\t_editor.on(\"disconnect\", next);\n\t\t\t_editor.disconnect();\n\t\t} else {\n\t\t\tnext();\n\t\t}\n\t}", "init() {\n this.fieldEvents()\n this.submitButton.addEventListener( 'mouseover', this.getStyles.bind( this ) );\n this.target.addEventListener( 'submit', this.submit.bind( this ) )\n }", "initEvents() {\n this.root.querySelectorAll(this.options.buttonsSelector).forEach(\n button => {\n button.addEventListener(\n 'focus',\n event => this.focusButtonEventHandler(event)\n )\n\n button.addEventListener(\n 'click',\n event => this.clickButtonEventHandler(event)\n )\n\n button.addEventListener(\n 'keydown',\n event => this.keydownButtonEventHandler(event)\n )\n }\n )\n }", "init() {\n this.initDOMListeners();\n }", "addEditor() {\n // Create new editor\n this.editor = $(`\n <div id=\"${this.id}-Editor\" class=\"editCell\">\n <div class=\"editHeader\">\n <p class=\"editHeaderTitle\">${this.id} Editor</p>\n </div>\n <div class=\"editOptionTable\">\n </div>\n </div>\n `);\n propertyEditor.append(this.editor[0]);\n\n // When working within an editor hilight the relevant shape\n this.editor.on(\"mouseenter\", () => {\n this.hover = true;\n canvas.redrawCanvas();\n });\n this.editor.on(\"mouseleave\", () => {\n this.hover = false;\n canvas.redrawCanvas();\n });\n\n // Add button for deleting a shape off of the canvas\n $(`<button class=\"editHeaderButton\">Delete Shape</button>`)\n .on(\"click\", () => canvas.removeShape(this))\n .appendTo(`div#${this.id}-Editor .editHeader`);\n\n // Fill the editor with options relevant to the shape\n this.refillOptions();\n }", "function registerEventHandlers() {\n\n\t\tEventDispatcher.addEventListener( \"LOAD_BUTTON_CLICKED\" , function(){\n\n\t\t\t// Increment number of visible the Articles model unless all are visible\n\t\t\tif( ArticleStore.visibleArticles < ArticleStore.totalArticles ) {\n\n\t\t\t\tArticleStore.visibleArticles++;\n\t\t\t\t\n\t\t\t\trender();\n\n\t\t\t}\n\n\t\t});\n\t}", "function onModuleEditorLoad() {\n\tif (globals.editMode) {\n\t\tsetEditCode(globals.moduleCode);\n\t}\n}", "function updateQuillEditorListeners() {\n _.each(document.querySelectorAll('.slide-edit-lock'), function (el) {\n el.addEventListener('click', enableQuillEditor, false);\n });\n}", "init(){\n this.newsSourceControls.addEventListener('click', this.clickHandler);\n }", "function initListener()/*:void*/ {\n this.previewExists$67CD = true;\n this.setPreviewLoading$67CD();\n var tempResolver/*:HTMLElement*/ = Ext.dom.Helper.createDom({tag: \"a\", href: Ext.getResourcePath(\"previewProtocol.js\", null, \"com.coremedia.ui.sdk__editor-components\")});\n com.coremedia.cms.editor.sdk.messageService.registerMessageListener(this.previewIFrame$67CD.getEl().dom, com.coremedia.cms.editor.sdk.preview.PreviewMessageTypes.READY,AS3.bind( this,\"readyListener$67CD\"));\n this.sendMessage$67CD(com.coremedia.cms.editor.sdk.preview.PreviewMessageTypes.INIT_CONFIRM, {url: tempResolver.href});\n }", "function init() {\n _on(\"mouseenter\", _onMouseEnter);\n _on(\"focus\", _onMouseEnter);\n _on(\"mouseleave\", _onMouseLeave); \n _on(\"blur\", _onMouseLeave);\n }", "function initialize(editArea) {\r\n this.editArea = editArea;\r\n\r\n this.hasMouseDown = false;\r\n this.element = new Element('div', { 'class': 'editor_toolbar' });\r\n\r\n var toolbar = this;\r\n this.element.observe('mousedown', function(event) { toolbar.mouseDown(event); });\r\n this.element.observe('mouseup', function(event) { toolbar.mouseUp(event); });\r\n\r\n this.editArea.insert({before: this.element});\r\n }", "function attachChangeHandlers() {\n\t$('#template-container .parent_li > span').on('click', function(e) {\n\t\tif(templateEdited == false) {\n\t\t\ttemplateEdited = true;\n\t\t}\n\t});\n}", "function init() {\n contextListener();\n clickListener();\n keyupListener();\n resizeListener();\n }", "function initEventHandlers() {\n\t (0, _event.addEventListener)('annotation:add', function (documentId, pageNumber, annotation) {\n\t reorderAnnotationsByType(documentId, pageNumber, annotation.type);\n\t });\n\t (0, _event.addEventListener)('annotation:edit', function (documentId, annotationId, annotation) {\n\t reorderAnnotationsByType(documentId, annotation.page, annotation.type);\n\t });\n\t (0, _event.addEventListener)('annotation:delete', removeAnnotation);\n\t (0, _event.addEventListener)('comment:add', insertComment);\n\t (0, _event.addEventListener)('comment:delete', removeComment);\n\t}", "function initHandler(){\n switch( +($('.fileSourceMethod.active').attr('data-method')) ){\n case 0: initInteractions(); break; // custom gallery\n case 1: $('#fileSetPicker').chosen(); break; // sets\n }\n jscolor.bind();\n }", "initEventHandlers() {\r\n this.ToggleBtn.initHandler(this.Sidebar.changeSidebarView.bind(this.Sidebar));\r\n }", "_init() {\n this.$input = this.$element.find(':input');\n this.$preview = this.$element.find('[data-preview]');\n\n this._updatePreview();\n this._events();\n }", "_initListeners() {\n this._initResizeListener();\n this._initSwipe();\n }", "function init() {\n\t\tlet selector = $('#theme-selector');\n\t\tselector.on(\"change\", selectionChangeHandler);\n\t}", "function registerEventHandlers() {\n pausePlay = document.getElementById(\"pauseplay\")\n pausePlay\n .addEventListener(\"click\", togglePausePlay);\n\n document\n .getElementById(\"stepButton\")\n .addEventListener(\"click\", stepButtonClick);\n\n document\n .getElementById(\"restart\")\n .addEventListener(\"click\", restartSimulation);\n\n $('#hintModal').on('shown', hintClick)\n\n}", "function bindUIactions() {\n $('body').on('click', '.comment__settings-button', showSettings);\n $('body').on('click', '.comment__settings-close', hideSettings);\n $('body').on('click', '.comments__new-link', showCommentForm);\n }", "function assignEventListeners() {\n \tpageElements.output.addEventListener('click', editDelete, false);\n \t pageElements.authorSelect.addEventListener('change', dropDown, false);\n \t pageElements.tagSelect.addEventListener('change', dropDown, false);\n \t pageElements.saveBtn.addEventListener('click', saveAction ,false);\n \t pageElements.addBtn.addEventListener('click', addAction, false);\n \t pageElements.getAllBtn.addEventListener('click', getAll, false);\n \t pageElements.deleteBtn.addEventListener('click', deleteIt, false);\n }", "function initEditorAction($pre) {\r\n $pre.each(function () {\r\n var editorId = $(this).attr('id');\r\n var editor = init_editor(editorId);\r\n var $script_type = $(this).siblings().find(\"input[name='script_type']\");\r\n var $fullScreen = $(this).siblings(\"button[name='fullScreen']\");\r\n ModifyScriptType(editor, $script_type);\r\n fullScreen(editor, $fullScreen);\r\n exitFullscreen(editor);\r\n console.log($(this).attr('id'))\r\n })\r\n}", "function EditorConstructor() { }", "function EditorConstructor() { }", "init() {\n this.initDomListeners()\n }", "function init() {\n\t\t// look for either the Quick Reply text area or the full editor\n\t\tvar id = 'message';\n\t\tif (typeof clickableEditor != 'undefined') {\n\t\t\tid = clickableEditor.textarea;\n\t\t\tfullEditor = true;\n\t\t\ttextAreaPadding = 2;\n\t\t}\n\n\t\t // if neither are present, get out\n\t\tif (!$(id)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// gotta love ie\n\t\tif (MyBB.browser == 'ie') {\n\t\t\tcursorPointer = 'hand';\n\t\t}\n\n\t\t// store our elements\n\t\ttextarea = $(id);\n\t\tcontainer = textarea.up('div');\n\n\t\t// go ahead and build the popup\n\t\tpopup.init();\n\n\t\t// we'll use these closure-wide to deal with the caret and popup positioning\n\t\tpositioner = new maxkir.CursorPosition(textarea, textAreaPadding);\n\t\tselectionRange = new maxkir.SelectionRange(textarea);\n\n\t\t// poll for the @ char\n\t\tEvent.observe(textarea, 'keyup', onKeyUp);\n\n\t\tif (m.autoComplete.debug) {\n\t\t\tm.autoComplete.debug.init();\n\t\t}\n\t}", "bindEditor(editor){\n\t\tlisten(editor, 'compositionstart', () => {\n\t\t\tthis.inputIsComposing = true\n\t\t})\n\t\tlisten(editor, 'compositionend', e => {\n\t\t\tthis.inputIsComposing = false\n\t\t\tthis.input(e)\n\t\t})\n\t\tlisten(editor, 'input', e => {\n\t\t\tif (!this.inputIsComposing){\n\t\t\t\tthis.input(e)\n\t\t\t}\n\t\t})\n\t}", "_initEvents () {\n this.el.addEventListener('click', (e) => {\n if (e.target.dataset.action in this.actions) {\n this.actions[e.target.dataset.action](e.target);\n } else this._checkForLi(e.target);\n });\n }", "function ckeInitNormal(editorID) {\n\n\tvar $editor = $('#' + editorID);\n\tvar $parent = $editor.parent();\n\t\n\t\n\tif(typeof ProcessWire.config.InputfieldCKEditor.editors[editorID] != \"undefined\") {\n\t\tvar configName = ProcessWire.config.InputfieldCKEditor.editors[editorID];\n\t} else {\n\t\tvar configName = $editor.attr('data-configName');\n\t}\n\n\tif($parent.hasClass('ui-tabs-panel') && $parent.css('display') == 'none') {\n\t\t// CKEditor in a jQuery UI tab (like langTabs)\n\t\tvar parentID = $editor.parent().attr('id');\n\t\tvar $a = $parent.closest('.ui-tabs, .langTabs').find('a[href=#' + parentID + ']');\n\t\t$a.attr('data-editorID', editorID).attr('data-configName', configName);\n\t\t$parent.closest('.ui-tabs, .langTabs').on('tabsactivate', ckeInitTab);\n\t} else {\n\t\t// visible CKEditor\n\t\tvar editor;\n\t\tif(typeof ProcessWire.config[configName] != \"undefined\") {\n\t\t\tvar editor = CKEDITOR.replace(editorID, ProcessWire.config[configName]);\n\t\t} else if(typeof $editor.attr('data-configdata') != \"undefined\") {\n\t\t\t// allow for alternate option of config data being passed through a data attribute\n\t\t\t// useful for some dynamic/ajax situations\n\t\t\tvar configData = JSON.parse($editor.attr('data-configdata'));\n\t\t\tProcessWire.config[configName] = configData;\n\t\t\tvar editor = CKEDITOR.replace(editorID, configData);\n\t\t}\n\t\tif(editor) {\n\t\t\tckeInitEvents(editor);\n\t\t\t$editor.addClass('InputfieldCKEditorLoaded');\n\t\t}\n\t}\n}" ]
[ "0.80966556", "0.77389115", "0.75494534", "0.72982234", "0.7282955", "0.723292", "0.7122359", "0.71221983", "0.71001315", "0.7071713", "0.7025846", "0.6915193", "0.6894815", "0.68728834", "0.685716", "0.68458426", "0.68189013", "0.6798981", "0.6797055", "0.6743994", "0.6728568", "0.6699391", "0.6694577", "0.6679804", "0.66642517", "0.6642829", "0.6626555", "0.6620197", "0.6616476", "0.66094714", "0.66085047", "0.6585209", "0.6584975", "0.65563107", "0.6495067", "0.6490478", "0.6485302", "0.6461782", "0.6455735", "0.6449615", "0.6433038", "0.6425291", "0.6425291", "0.64210796", "0.6404628", "0.6402667", "0.6399429", "0.6397223", "0.63856715", "0.63856304", "0.6375041", "0.6374974", "0.6372485", "0.6365245", "0.6343047", "0.6332577", "0.6304239", "0.6303008", "0.630097", "0.62746054", "0.6264372", "0.6263904", "0.62622654", "0.62357104", "0.6223818", "0.6213533", "0.6200401", "0.6188187", "0.61755085", "0.6167977", "0.6157849", "0.6156412", "0.6151209", "0.61492896", "0.6134839", "0.61346185", "0.6132086", "0.6122023", "0.61201906", "0.6107147", "0.6093489", "0.6087646", "0.6083864", "0.60714", "0.6068875", "0.6061032", "0.6057608", "0.6050514", "0.6045199", "0.604458", "0.60405076", "0.6039878", "0.603947", "0.60339785", "0.6032332", "0.6032332", "0.6024242", "0.6020637", "0.60131913", "0.6008428", "0.6007962" ]
0.0
-1
Indent the given line. The how parameter can be "smart", "add"/null, "subtract", or "prev". When aggressive is false (typically set to true for forced singleline indents), empty lines are not indented, and places where the mode returns Pass are left alone.
function indentLine(cm, n, how, aggressive) { var doc = cm.doc, state; if (how == null) { how = "add"; } if (how == "smart") { // Fall back to "prev" when the mode doesn't have an indentation // method. if (!doc.mode.indent) { how = "prev"; } else { state = getContextBefore(cm, n).state; } } var tabSize = cm.options.tabSize; var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize); if (line.stateAfter) { line.stateAfter = null; } var curSpaceString = line.text.match(/^\s*/)[0], indentation; if (!aggressive && !/\S/.test(line.text)) { indentation = 0; how = "not"; } else if (how == "smart") { indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text); if (indentation == Pass || indentation > 150) { if (!aggressive) { return } how = "prev"; } } if (how == "prev") { if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); } else { indentation = 0; } } else if (how == "add") { indentation = curSpace + cm.options.indentUnit; } else if (how == "subtract") { indentation = curSpace - cm.options.indentUnit; } else if (typeof how == "number") { indentation = curSpace + how; } indentation = Math.max(0, indentation); var indentString = "", pos = 0; if (cm.options.indentWithTabs) { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += "\t";} } if (pos < indentation) { indentString += spaceStr(indentation - pos); } if (indentString != curSpaceString) { replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), "+input"); line.stateAfter = null; return true } else { // Ensure that, if the cursor was in the whitespace at the start // of the line, it is moved to the end of that space. for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) { var range = doc.sel.ranges[i$1]; if (range.head.line == n && range.head.ch < curSpaceString.length) { var pos$1 = Pos(n, curSpaceString.length); replaceOneSelection(doc, i$1, new Range(pos$1, pos$1)); break } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function indentLine(cm, n, how, aggressive) {\n\t var doc = cm.doc, state;\n\t if (how == null) how = \"add\";\n\t if (how == \"smart\") {\n\t // Fall back to \"prev\" when the mode doesn't have an indentation\n\t // method.\n\t if (!doc.mode.indent) how = \"prev\";\n\t else state = getStateBefore(cm, n);\n\t }\n\n\t var tabSize = cm.options.tabSize;\n\t var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n\t if (line.stateAfter) line.stateAfter = null;\n\t var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n\t if (!aggressive && !/\\S/.test(line.text)) {\n\t indentation = 0;\n\t how = \"not\";\n\t } else if (how == \"smart\") {\n\t indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n\t if (indentation == Pass || indentation > 150) {\n\t if (!aggressive) return;\n\t how = \"prev\";\n\t }\n\t }\n\t if (how == \"prev\") {\n\t if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n\t else indentation = 0;\n\t } else if (how == \"add\") {\n\t indentation = curSpace + cm.options.indentUnit;\n\t } else if (how == \"subtract\") {\n\t indentation = curSpace - cm.options.indentUnit;\n\t } else if (typeof how == \"number\") {\n\t indentation = curSpace + how;\n\t }\n\t indentation = Math.max(0, indentation);\n\n\t var indentString = \"\", pos = 0;\n\t if (cm.options.indentWithTabs)\n\t for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n\t if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n\t if (indentString != curSpaceString) {\n\t replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n\t line.stateAfter = null;\n\t return true;\n\t } else {\n\t // Ensure that, if the cursor was in the whitespace at the start\n\t // of the line, it is moved to the end of that space.\n\t for (var i = 0; i < doc.sel.ranges.length; i++) {\n\t var range = doc.sel.ranges[i];\n\t if (range.head.line == n && range.head.ch < curSpaceString.length) {\n\t var pos = Pos(n, curSpaceString.length);\n\t replaceOneSelection(doc, i, new Range(pos, pos));\n\t break;\n\t }\n\t }\n\t }\n\t }", "function indentLine(cm, n, how, aggressive) {\n\t var doc = cm.doc, state;\n\t if (how == null) how = \"add\";\n\t if (how == \"smart\") {\n\t // Fall back to \"prev\" when the mode doesn't have an indentation\n\t // method.\n\t if (!doc.mode.indent) how = \"prev\";\n\t else state = getStateBefore(cm, n);\n\t }\n\n\t var tabSize = cm.options.tabSize;\n\t var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n\t if (line.stateAfter) line.stateAfter = null;\n\t var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n\t if (!aggressive && !/\\S/.test(line.text)) {\n\t indentation = 0;\n\t how = \"not\";\n\t } else if (how == \"smart\") {\n\t indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n\t if (indentation == Pass || indentation > 150) {\n\t if (!aggressive) return;\n\t how = \"prev\";\n\t }\n\t }\n\t if (how == \"prev\") {\n\t if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n\t else indentation = 0;\n\t } else if (how == \"add\") {\n\t indentation = curSpace + cm.options.indentUnit;\n\t } else if (how == \"subtract\") {\n\t indentation = curSpace - cm.options.indentUnit;\n\t } else if (typeof how == \"number\") {\n\t indentation = curSpace + how;\n\t }\n\t indentation = Math.max(0, indentation);\n\n\t var indentString = \"\", pos = 0;\n\t if (cm.options.indentWithTabs)\n\t for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n\t if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n\t if (indentString != curSpaceString) {\n\t replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n\t line.stateAfter = null;\n\t return true;\n\t } else {\n\t // Ensure that, if the cursor was in the whitespace at the start\n\t // of the line, it is moved to the end of that space.\n\t for (var i = 0; i < doc.sel.ranges.length; i++) {\n\t var range = doc.sel.ranges[i];\n\t if (range.head.line == n && range.head.ch < curSpaceString.length) {\n\t var pos = Pos(n, curSpaceString.length);\n\t replaceOneSelection(doc, i, new Range(pos, pos));\n\t break;\n\t }\n\t }\n\t }\n\t }", "function indentLine(cm, n, how, aggressive) {\n\t var doc = cm.doc, state;\n\t if (how == null) how = \"add\";\n\t if (how == \"smart\") {\n\t // Fall back to \"prev\" when the mode doesn't have an indentation\n\t // method.\n\t if (!doc.mode.indent) how = \"prev\";\n\t else state = getStateBefore(cm, n);\n\t }\n\t\n\t var tabSize = cm.options.tabSize;\n\t var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n\t if (line.stateAfter) line.stateAfter = null;\n\t var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n\t if (!aggressive && !/\\S/.test(line.text)) {\n\t indentation = 0;\n\t how = \"not\";\n\t } else if (how == \"smart\") {\n\t indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n\t if (indentation == Pass || indentation > 150) {\n\t if (!aggressive) return;\n\t how = \"prev\";\n\t }\n\t }\n\t if (how == \"prev\") {\n\t if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n\t else indentation = 0;\n\t } else if (how == \"add\") {\n\t indentation = curSpace + cm.options.indentUnit;\n\t } else if (how == \"subtract\") {\n\t indentation = curSpace - cm.options.indentUnit;\n\t } else if (typeof how == \"number\") {\n\t indentation = curSpace + how;\n\t }\n\t indentation = Math.max(0, indentation);\n\t\n\t var indentString = \"\", pos = 0;\n\t if (cm.options.indentWithTabs)\n\t for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n\t if (pos < indentation) indentString += spaceStr(indentation - pos);\n\t\n\t if (indentString != curSpaceString) {\n\t replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n\t line.stateAfter = null;\n\t return true;\n\t } else {\n\t // Ensure that, if the cursor was in the whitespace at the start\n\t // of the line, it is moved to the end of that space.\n\t for (var i = 0; i < doc.sel.ranges.length; i++) {\n\t var range = doc.sel.ranges[i];\n\t if (range.head.line == n && range.head.ch < curSpaceString.length) {\n\t var pos = Pos(n, curSpaceString.length);\n\t replaceOneSelection(doc, i, new Range(pos, pos));\n\t break;\n\t }\n\t }\n\t }\n\t }", "function indentLine(cm, n, how, aggressive) {\n\t\t var doc = cm.doc, state;\n\t\t if (how == null) { how = \"add\"; }\n\t\t if (how == \"smart\") {\n\t\t // Fall back to \"prev\" when the mode doesn't have an indentation\n\t\t // method.\n\t\t if (!doc.mode.indent) { how = \"prev\"; }\n\t\t else { state = getContextBefore(cm, n).state; }\n\t\t }\n\n\t\t var tabSize = cm.options.tabSize;\n\t\t var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n\t\t if (line.stateAfter) { line.stateAfter = null; }\n\t\t var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n\t\t if (!aggressive && !/\\S/.test(line.text)) {\n\t\t indentation = 0;\n\t\t how = \"not\";\n\t\t } else if (how == \"smart\") {\n\t\t indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n\t\t if (indentation == Pass || indentation > 150) {\n\t\t if (!aggressive) { return }\n\t\t how = \"prev\";\n\t\t }\n\t\t }\n\t\t if (how == \"prev\") {\n\t\t if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n\t\t else { indentation = 0; }\n\t\t } else if (how == \"add\") {\n\t\t indentation = curSpace + cm.options.indentUnit;\n\t\t } else if (how == \"subtract\") {\n\t\t indentation = curSpace - cm.options.indentUnit;\n\t\t } else if (typeof how == \"number\") {\n\t\t indentation = curSpace + how;\n\t\t }\n\t\t indentation = Math.max(0, indentation);\n\n\t\t var indentString = \"\", pos = 0;\n\t\t if (cm.options.indentWithTabs)\n\t\t { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n\t\t if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n\t\t if (indentString != curSpaceString) {\n\t\t replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n\t\t line.stateAfter = null;\n\t\t return true\n\t\t } else {\n\t\t // Ensure that, if the cursor was in the whitespace at the start\n\t\t // of the line, it is moved to the end of that space.\n\t\t for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n\t\t var range = doc.sel.ranges[i$1];\n\t\t if (range.head.line == n && range.head.ch < curSpaceString.length) {\n\t\t var pos$1 = Pos(n, curSpaceString.length);\n\t\t replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n\t\t break\n\t\t }\n\t\t }\n\t\t }\n\t\t }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc,\n state;\n\n if (how == null) {\n how = \"add\";\n }\n\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) {\n how = \"prev\";\n } else {\n state = getContextBefore(cm, n).state;\n }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n),\n curSpace = countColumn(line.text, null, tabSize);\n\n if (line.stateAfter) {\n line.stateAfter = null;\n }\n\n var curSpaceString = line.text.match(/^\\s*/)[0],\n indentation;\n\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) {\n return;\n }\n\n how = \"prev\";\n }\n }\n\n if (how == \"prev\") {\n if (n > doc.first) {\n indentation = countColumn(getLine(doc, n - 1).text, null, tabSize);\n } else {\n indentation = 0;\n }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n\n indentation = Math.max(0, indentation);\n var indentString = \"\",\n pos = 0;\n\n if (cm.options.indentWithTabs) {\n for (var i = Math.floor(indentation / tabSize); i; --i) {\n pos += tabSize;\n indentString += \"\\t\";\n }\n }\n\n if (pos < indentation) {\n indentString += spaceStr(indentation - pos);\n }\n\n if (indentString != curSpaceString) {\n _replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n\n line.stateAfter = null;\n return true;\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break;\n }\n }\n }\n } // This will be set to a {lineWise: bool, text: [string]} object, so", "function indentLine(cm, n, how, aggressive) {\n\t\t var doc = cm.doc, state;\n\t\t if (how == null) how = \"add\";\n\t\t if (how == \"smart\") {\n\t\t // Fall back to \"prev\" when the mode doesn't have an indentation\n\t\t // method.\n\t\t if (!doc.mode.indent) how = \"prev\";\n\t\t else state = getStateBefore(cm, n);\n\t\t }\n\t\t\n\t\t var tabSize = cm.options.tabSize;\n\t\t var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n\t\t if (line.stateAfter) line.stateAfter = null;\n\t\t var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n\t\t if (!aggressive && !/\\S/.test(line.text)) {\n\t\t indentation = 0;\n\t\t how = \"not\";\n\t\t } else if (how == \"smart\") {\n\t\t indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n\t\t if (indentation == Pass || indentation > 150) {\n\t\t if (!aggressive) return;\n\t\t how = \"prev\";\n\t\t }\n\t\t }\n\t\t if (how == \"prev\") {\n\t\t if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n\t\t else indentation = 0;\n\t\t } else if (how == \"add\") {\n\t\t indentation = curSpace + cm.options.indentUnit;\n\t\t } else if (how == \"subtract\") {\n\t\t indentation = curSpace - cm.options.indentUnit;\n\t\t } else if (typeof how == \"number\") {\n\t\t indentation = curSpace + how;\n\t\t }\n\t\t indentation = Math.max(0, indentation);\n\t\t\n\t\t var indentString = \"\", pos = 0;\n\t\t if (cm.options.indentWithTabs)\n\t\t for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n\t\t if (pos < indentation) indentString += spaceStr(indentation - pos);\n\t\t\n\t\t if (indentString != curSpaceString) {\n\t\t replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n\t\t line.stateAfter = null;\n\t\t return true;\n\t\t } else {\n\t\t // Ensure that, if the cursor was in the whitespace at the start\n\t\t // of the line, it is moved to the end of that space.\n\t\t for (var i = 0; i < doc.sel.ranges.length; i++) {\n\t\t var range = doc.sel.ranges[i];\n\t\t if (range.head.line == n && range.head.ch < curSpaceString.length) {\n\t\t var pos = Pos(n, curSpaceString.length);\n\t\t replaceOneSelection(doc, i, new Range(pos, pos));\n\t\t break;\n\t\t }\n\t\t }\n\t\t }\n\t\t }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) how = \"add\";\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) how = \"prev\";\n else state = getStateBefore(cm, n);\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) line.stateAfter = null;\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) return;\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n else indentation = 0;\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true;\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i, new Range(pos, pos));\n break;\n }\n }\n }\n }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) how = \"add\";\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) how = \"prev\";\n else state = getStateBefore(cm, n);\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) line.stateAfter = null;\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) return;\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n else indentation = 0;\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true;\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i, new Range(pos, pos));\n break;\n }\n }\n }\n }", "function indentLine(cm, n, how, aggressive) {\r\n var doc = cm.doc, state;\r\n if (how == null) how = \"add\";\r\n if (how == \"smart\") {\r\n // Fall back to \"prev\" when the mode doesn't have an indentation\r\n // method.\r\n if (!doc.mode.indent) how = \"prev\";\r\n else state = getStateBefore(cm, n);\r\n }\r\n\r\n var tabSize = cm.options.tabSize;\r\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\r\n if (line.stateAfter) line.stateAfter = null;\r\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\r\n if (!aggressive && !/\\S/.test(line.text)) {\r\n indentation = 0;\r\n how = \"not\";\r\n } else if (how == \"smart\") {\r\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\r\n if (indentation == Pass || indentation > 150) {\r\n if (!aggressive) return;\r\n how = \"prev\";\r\n }\r\n }\r\n if (how == \"prev\") {\r\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\r\n else indentation = 0;\r\n } else if (how == \"add\") {\r\n indentation = curSpace + cm.options.indentUnit;\r\n } else if (how == \"subtract\") {\r\n indentation = curSpace - cm.options.indentUnit;\r\n } else if (typeof how == \"number\") {\r\n indentation = curSpace + how;\r\n }\r\n indentation = Math.max(0, indentation);\r\n\r\n var indentString = \"\", pos = 0;\r\n if (cm.options.indentWithTabs)\r\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\r\n if (pos < indentation) indentString += spaceStr(indentation - pos);\r\n\r\n if (indentString != curSpaceString) {\r\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\r\n } else {\r\n // Ensure that, if the cursor was in the whitespace at the start\r\n // of the line, it is moved to the end of that space.\r\n for (var i = 0; i < doc.sel.ranges.length; i++) {\r\n var range = doc.sel.ranges[i];\r\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\r\n var pos = Pos(n, curSpaceString.length);\r\n replaceOneSelection(doc, i, new Range(pos, pos));\r\n break;\r\n }\r\n }\r\n }\r\n line.stateAfter = null;\r\n }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) how = \"add\";\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) how = \"prev\";\n else state = getStateBefore(cm, n);\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) line.stateAfter = null;\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) return;\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n else indentation = 0;\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i, new Range(pos, pos));\n break;\n }\n }\n }\n line.stateAfter = null;\n }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) how = \"add\";\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) how = \"prev\";\n else state = getStateBefore(cm, n);\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) line.stateAfter = null;\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) return;\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n else indentation = 0;\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i, new Range(pos, pos));\n break;\n }\n }\n }\n line.stateAfter = null;\n }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) how = \"add\";\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) how = \"prev\";\n else state = getStateBefore(cm, n);\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) line.stateAfter = null;\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) return;\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n else indentation = 0;\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i, new Range(pos, pos));\n break;\n }\n }\n }\n line.stateAfter = null;\n }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) how = \"add\";\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) how = \"prev\";\n else state = getStateBefore(cm, n);\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) line.stateAfter = null;\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) return;\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n else indentation = 0;\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i, new Range(pos, pos));\n break;\n }\n }\n }\n line.stateAfter = null;\n }", "function indentLine(cm, n, how, aggressive) {\r\n var doc = cm.doc, state;\r\n if (how == null) { how = \"add\"; }\r\n if (how == \"smart\") {\r\n // Fall back to \"prev\" when the mode doesn't have an indentation\r\n // method.\r\n if (!doc.mode.indent) { how = \"prev\"; }\r\n else { state = getContextBefore(cm, n).state; }\r\n }\r\n\r\n var tabSize = cm.options.tabSize;\r\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\r\n if (line.stateAfter) { line.stateAfter = null; }\r\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\r\n if (!aggressive && !/\\S/.test(line.text)) {\r\n indentation = 0;\r\n how = \"not\";\r\n } else if (how == \"smart\") {\r\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\r\n if (indentation == Pass || indentation > 150) {\r\n if (!aggressive) { return }\r\n how = \"prev\";\r\n }\r\n }\r\n if (how == \"prev\") {\r\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\r\n else { indentation = 0; }\r\n } else if (how == \"add\") {\r\n indentation = curSpace + cm.options.indentUnit;\r\n } else if (how == \"subtract\") {\r\n indentation = curSpace - cm.options.indentUnit;\r\n } else if (typeof how == \"number\") {\r\n indentation = curSpace + how;\r\n }\r\n indentation = Math.max(0, indentation);\r\n\r\n var indentString = \"\", pos = 0;\r\n if (cm.options.indentWithTabs)\r\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\r\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\r\n\r\n if (indentString != curSpaceString) {\r\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\r\n line.stateAfter = null;\r\n return true\r\n } else {\r\n // Ensure that, if the cursor was in the whitespace at the start\r\n // of the line, it is moved to the end of that space.\r\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\r\n var range = doc.sel.ranges[i$1];\r\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\r\n var pos$1 = Pos(n, curSpaceString.length);\r\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\r\n break\r\n }\r\n }\r\n }\r\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) how = \"add\";\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!cm.doc.mode.indent) how = \"prev\";\n else state = getStateBefore(cm, n);\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) line.stateAfter = null;\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = cm.doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass) {\n if (!aggressive) return;\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) indentation = countColumn(getLine(doc, n-1).text, null, tabSize);\n else indentation = 0;\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";}\n if (pos < indentation) indentString += spaceStr(indentation - pos);\n\n if (indentString != curSpaceString) {\n replaceRange(cm.doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i, new Range(pos, pos));\n break;\n }\n }\n }\n line.stateAfter = null;\n }", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state\n if (how == null) { how = \"add\" }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\" }\n else { state = getStateBefore(cm, n) }\n }\n\n var tabSize = cm.options.tabSize\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize)\n if (line.stateAfter) { line.stateAfter = null }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0\n how = \"not\"\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text)\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\"\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize) }\n else { indentation = 0 }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit\n } else if (typeof how == \"number\") {\n indentation = curSpace + how\n }\n indentation = Math.max(0, indentation)\n\n var indentString = \"\", pos = 0\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\"} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos) }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\")\n line.stateAfter = null\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1]\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length)\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1))\n break\n }\n }\n }\n}", "function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state\n if (how == null) { how = \"add\" }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\" }\n else { state = getStateBefore(cm, n) }\n }\n\n var tabSize = cm.options.tabSize\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize)\n if (line.stateAfter) { line.stateAfter = null }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0\n how = \"not\"\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text)\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\"\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize) }\n else { indentation = 0 }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit\n } else if (typeof how == \"number\") {\n indentation = curSpace + how\n }\n indentation = Math.max(0, indentation)\n\n var indentString = \"\", pos = 0\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\"} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos) }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\")\n line.stateAfter = null\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1]\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length)\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1))\n break\n }\n }\n }\n}", "getInheritIndentForLine(autoIndent, model, lineNumber, honorIntentialIndent = true) {\r\n if (autoIndent < 4 /* Full */) {\r\n return null;\r\n }\r\n const indentRulesSupport = this.getIndentRulesSupport(model.getLanguageIdentifier().id);\r\n if (!indentRulesSupport) {\r\n return null;\r\n }\r\n if (lineNumber <= 1) {\r\n return {\r\n indentation: '',\r\n action: null\r\n };\r\n }\r\n const precedingUnIgnoredLine = this.getPrecedingValidLine(model, lineNumber, indentRulesSupport);\r\n if (precedingUnIgnoredLine < 0) {\r\n return null;\r\n }\r\n else if (precedingUnIgnoredLine < 1) {\r\n return {\r\n indentation: '',\r\n action: null\r\n };\r\n }\r\n const precedingUnIgnoredLineContent = model.getLineContent(precedingUnIgnoredLine);\r\n if (indentRulesSupport.shouldIncrease(precedingUnIgnoredLineContent) || indentRulesSupport.shouldIndentNextLine(precedingUnIgnoredLineContent)) {\r\n return {\r\n indentation: strings.getLeadingWhitespace(precedingUnIgnoredLineContent),\r\n action: IndentAction.Indent,\r\n line: precedingUnIgnoredLine\r\n };\r\n }\r\n else if (indentRulesSupport.shouldDecrease(precedingUnIgnoredLineContent)) {\r\n return {\r\n indentation: strings.getLeadingWhitespace(precedingUnIgnoredLineContent),\r\n action: null,\r\n line: precedingUnIgnoredLine\r\n };\r\n }\r\n else {\r\n // precedingUnIgnoredLine can not be ignored.\r\n // it doesn't increase indent of following lines\r\n // it doesn't increase just next line\r\n // so current line is not affect by precedingUnIgnoredLine\r\n // and then we should get a correct inheritted indentation from above lines\r\n if (precedingUnIgnoredLine === 1) {\r\n return {\r\n indentation: strings.getLeadingWhitespace(model.getLineContent(precedingUnIgnoredLine)),\r\n action: null,\r\n line: precedingUnIgnoredLine\r\n };\r\n }\r\n const previousLine = precedingUnIgnoredLine - 1;\r\n const previousLineIndentMetadata = indentRulesSupport.getIndentMetadata(model.getLineContent(previousLine));\r\n if (!(previousLineIndentMetadata & (1 /* INCREASE_MASK */ | 2 /* DECREASE_MASK */)) &&\r\n (previousLineIndentMetadata & 4 /* INDENT_NEXTLINE_MASK */)) {\r\n let stopLine = 0;\r\n for (let i = previousLine - 1; i > 0; i--) {\r\n if (indentRulesSupport.shouldIndentNextLine(model.getLineContent(i))) {\r\n continue;\r\n }\r\n stopLine = i;\r\n break;\r\n }\r\n return {\r\n indentation: strings.getLeadingWhitespace(model.getLineContent(stopLine + 1)),\r\n action: null,\r\n line: stopLine + 1\r\n };\r\n }\r\n if (honorIntentialIndent) {\r\n return {\r\n indentation: strings.getLeadingWhitespace(model.getLineContent(precedingUnIgnoredLine)),\r\n action: null,\r\n line: precedingUnIgnoredLine\r\n };\r\n }\r\n else {\r\n // search from precedingUnIgnoredLine until we find one whose indent is not temporary\r\n for (let i = precedingUnIgnoredLine; i > 0; i--) {\r\n const lineContent = model.getLineContent(i);\r\n if (indentRulesSupport.shouldIncrease(lineContent)) {\r\n return {\r\n indentation: strings.getLeadingWhitespace(lineContent),\r\n action: IndentAction.Indent,\r\n line: i\r\n };\r\n }\r\n else if (indentRulesSupport.shouldIndentNextLine(lineContent)) {\r\n let stopLine = 0;\r\n for (let j = i - 1; j > 0; j--) {\r\n if (indentRulesSupport.shouldIndentNextLine(model.getLineContent(i))) {\r\n continue;\r\n }\r\n stopLine = j;\r\n break;\r\n }\r\n return {\r\n indentation: strings.getLeadingWhitespace(model.getLineContent(stopLine + 1)),\r\n action: null,\r\n line: stopLine + 1\r\n };\r\n }\r\n else if (indentRulesSupport.shouldDecrease(lineContent)) {\r\n return {\r\n indentation: strings.getLeadingWhitespace(lineContent),\r\n action: null,\r\n line: i\r\n };\r\n }\r\n }\r\n return {\r\n indentation: strings.getLeadingWhitespace(model.getLineContent(1)),\r\n action: null,\r\n line: 1\r\n };\r\n }\r\n }\r\n }", "async _indentToLine() {\n const editor = vscode.window.activeTextEditor;\n\n if (editor && editor.selection.active.line) {\n const pos = editor.selection.active;\n\n await this._addUnderscore(editor.document, pos, '');\n\n // Update current line and preceeding lines\n const {lines, firstRow} = MagikUtils.indentRegion();\n if (lines) {\n await this._indentMagikLines(lines, firstRow, pos.line, true);\n }\n }\n }", "function indentLevel(linea) {\n var level = 0;\n for ( i in linea ) {\n if ( linea[i] != ' ' ) { break;}\n level += 1;\n }\n return (level);\n}", "function getIndent (line) {\n return line.match(/^\\s*/)[0].length\n}", "async _indentMagikLines(\n lines,\n firstRow,\n lastRow,\n updateRangeOnly,\n checkOnly\n ) {\n const editor = vscode.window.activeTextEditor;\n const doc = editor.document;\n\n const lineIndents = [];\n const assignIndentKeywords = [];\n const arrowAssignRows = [];\n const outdentWords = [];\n let indent = 0;\n let tempIndent = false;\n\n const edit = new vscode.WorkspaceEdit();\n\n for (let row = 0; row < lines.length; row++) {\n const text = lines[row];\n const textLength = text.length;\n let testString = text.trim();\n let start = text.search(/\\S/);\n let matches;\n\n if (start === -1) start = textLength;\n\n // Don't reduce indent when chaining method calls when line starts with ').'\n if (testString[0] !== '#' && !/^\\)\\.\\s*(#|$)/.test(testString)) {\n const decWordsLength = MagikUtils.INDENT_DEC_WORDS.length;\n for (let i = 0; i < decWordsLength; i++) {\n if (testString.startsWith(MagikUtils.INDENT_DEC_WORDS[i])) {\n indent--;\n break;\n }\n }\n }\n\n const indentText = '\\t'.repeat(Math.max(indent, 0));\n\n lineIndents.push(indent);\n\n if (\n !checkOnly &&\n indentText !== text.slice(0, start) &&\n (!lastRow ||\n (!updateRangeOnly && firstRow + row === lastRow) ||\n (updateRangeOnly && firstRow + row <= lastRow))\n ) {\n const range = new vscode.Range(\n firstRow + row,\n 0,\n firstRow + row,\n start\n );\n edit.replace(doc.uri, range, indentText);\n }\n\n\n if (firstRow + row === lastRow) break;\n\n if (NO_CODE.test(testString)) {\n if (arrowAssignRows.length > 0) {\n // Defer checking for a statement as the line is empty\n arrowAssignRows[arrowAssignRows.length - 1]++;\n }\n } else {\n testString = MagikUtils.stringBeforeComment(testString).trim();\n\n if (arrowAssignRows.length > 0) {\n if (row === arrowAssignRows.slice(-1)[0] + 1) {\n const startAssignWordsLength = MagikUtils.START_ASSIGN_WORDS.length;\n let assignIndentKeyword;\n for (let i = 0; i < startAssignWordsLength; i++) {\n if (testString.startsWith(MagikUtils.START_ASSIGN_WORDS[i])) {\n assignIndentKeyword = MagikUtils.START_ASSIGN_WORDS[i];\n assignIndentKeywords.push(assignIndentKeyword);\n break;\n }\n }\n if (!assignIndentKeyword) {\n if (this._incompleteInvocationTest(testString)) {\n // Defer checking for a statement as the line is incomplete\n arrowAssignRows[arrowAssignRows.length - 1]++;\n } else {\n indent--;\n arrowAssignRows.pop();\n }\n }\n }\n if (\n arrowAssignRows.length > 0 &&\n this._cancelAssignIndent(\n testString,\n assignIndentKeywords.slice(-1)[0]\n )\n ) {\n indent--;\n arrowAssignRows.pop();\n assignIndentKeywords.pop();\n }\n } else if (assignIndentKeywords.length > 0) {\n if (\n this._cancelAssignIndent(\n testString,\n assignIndentKeywords.slice(-1)[0]\n )\n ) {\n indent--;\n assignIndentKeywords.pop();\n }\n }\n\n if (tempIndent && !/[,(]$/.test(testString)) {\n indent--;\n tempIndent = false;\n }\n\n if (/^\\)\\.$/.test(testString)) {\n // Don't increase indent when chaining method calls\n } else if (this._methodStartTest(testString)) {\n indent++;\n outdentWords[indent] = '_endmethod';\n } else {\n const statementAssignKeyword = this._statementAssignTest(testString);\n if (statementAssignKeyword) {\n indent++;\n assignIndentKeywords.push(statementAssignKeyword);\n if (INDENT_INC_STATEMENT_WORDS.includes(statementAssignKeyword)) {\n indent++;\n }\n outdentWords[indent] = INDENT_PAIRS[statementAssignKeyword];\n } else if (/^[)}]/.test(testString)) {\n // Starts with bracket - explicitly handled here as not included in INDENT_INC_WORDS test below\n indent++;\n } else if (/\\s+_then(\\s+|$)/.test(testString)) {\n indent++;\n if (/(\\s+|;)_endif$/.test(testString)) {\n indent--;\n }\n } else {\n const incWordsLength = MagikUtils.INDENT_INC_WORDS.length;\n for (let i = 0; i < incWordsLength; i++) {\n const iWord = MagikUtils.INDENT_INC_WORDS[i];\n if (testString === iWord || testString.startsWith(`${iWord} `)) {\n indent++;\n outdentWords[indent] = INDENT_PAIRS[iWord];\n break;\n }\n }\n if (this._startProcTest(testString)) {\n indent++;\n outdentWords[indent] = '_endproc';\n }\n if (this._endStatementTest(testString)) {\n indent--;\n }\n }\n }\n\n if (this._arrowAssignTest(testString)) {\n indent++;\n arrowAssignRows.push(row);\n } else {\n const endWordsLength = MagikUtils.END_WORDS.length;\n for (let i = 0; i < endWordsLength; i++) {\n if (testString.endsWith(MagikUtils.END_WORDS[i])) {\n indent++;\n tempIndent = true;\n break;\n }\n }\n }\n\n // Remove strings before counting brackets\n const noStrings = MagikUtils.removeStrings(testString);\n\n matches = noStrings.match(MagikUtils.INC_BRACKETS);\n if (matches) {\n indent += matches.length;\n }\n matches = noStrings.match(MagikUtils.DEC_BRACKETS);\n if (matches) {\n indent -= matches.length;\n }\n }\n }\n\n if (edit.size > 0) {\n await vscode.workspace.applyEdit(edit);\n }\n\n this.magikVSCode.outdentWord = outdentWords[indent];\n\n return lineIndents;\n }", "autoIndentNewLine (start, end) {\n for (var i = start, scopeDiff = 0; i > 0; i--) {\n let char = this.text[i - 1];\n if (char === '\\n') {\n break;\n } else if (scopeDiff === 0) {\n if (char === \"}\") {\n scopeDiff = -1;\n } if (char === \"{\") {\n scopeDiff = 1;\n }\n }\n }\n\n let result = initialWhiteSpace.exec(this.text.substring(i, start));\n let indentation = result ? result[0] : \"\";\n \n if (scopeDiff === 1) {\n initialCloseParen.lastIndex = end;\n let suffix = initialCloseParen.exec(this.text) ? \"\\n\" + indentation : \"\";\n this.replaceText(start, end, \"\\n\\t\" + indentation + suffix, -suffix.length);\n } else {\n this.replaceText(start, end, \"\\n\" + indentation);\n }\n }", "function reindentCodeBlock(action, indent_level) {\n var width = 0;\n var lines = action\n .trim()\n .split('\\n')\n // measure the indent:\n .map(function checkIndentation(line, idx) {\n if (idx === 1) {\n // first line didn't matter: reset width to help us find the block indent level:\n width = Infinity;\n }\n if (line.trim() === '') return '';\n\n // take out any TABs: turn them into spaces (4 per TAB)\n line = line\n .replace(/^[ \\t]+/, function expandTabs(s) {\n return s.replace(/\\t/g, ' ');\n });\n\n var m = /^[ ]+/.exec(line);\n if (m) {\n width = Math.min(m[0].length, width);\n }\n\n return line;\n })\n // remove/adjust the indent:\n .map(function checkIndentation(line, idx) {\n line = line\n .replace(/^[ ]*/, function adjustIndent(s) {\n var l = Math.max(s.length - width, 0) + indent_level;\n var shift = (new Array(l + 1)).join(' ');\n return shift;\n });\n return line;\n });\n\n return lines.join('\\n');\n}", "function oneline(line, options) {\n var key = \"Allow: \",\n index = line.indexOf(key);\n\n if (index !== -1) {\n var page = line.substr(index + key.length).replace(/^\\s+|\\s+$/g, \"\");\n return base.input(options, page);\n }\n\n return true;\n}", "beautify() {\n if(atom.packages.isPackageActive('atom-beautify')) {\n setTimeout(() => {\n atom.commands.dispatch(atom.views.getView(this._editor), \"atom-beautify:beautify-editor\");\n });\n } else {\n atom.commands.dispatch(atom.views.getView(this._editor), \"editor:auto-indent\");\n }\n }", "function reindentCodeBlock(action, indent_level) {\n var width = 0;\n var lines = action.trim().split('\\n')\n // measure the indent:\n .map(function checkIndentation(line, idx) {\n if (idx === 1) {\n // first line didn't matter: reset width to help us find the block indent level:\n width = Infinity;\n }\n if (line.trim() === '') return '';\n\n // take out any TABs: turn them into spaces (4 per TAB)\n line = line.replace(/^[ \\t]+/, function expandTabs(s) {\n return s.replace(/\\t/g, ' ');\n });\n\n var m = /^[ ]+/.exec(line);\n if (m) {\n width = Math.min(m[0].length, width);\n }\n\n return line;\n })\n // remove/adjust the indent:\n .map(function checkIndentation(line, idx) {\n line = line.replace(/^[ ]*/, function adjustIndent(s) {\n var l = Math.max(s.length - width, 0) + indent_level;\n var shift = new Array(l + 1).join(' ');\n return shift;\n });\n return line;\n });\n\n return lines.join('\\n');\n}", "function indentOneSpace() {\n utilitymanager_1.um.utilityManager({\n utilType: utilitymanager_1.um.TIXUtilityType.utLineUtility,\n sp: utilitymanager_1.um.TIXSelPolicy.All,\n }, function (up) { return ' ' + up.intext; });\n }", "function renderIndentation(inputObject, inputLine) {\n\n var leadingIndentTag = \"<a class=\\\"mIndentation\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Line Level\\\">\";\n var trailingTag = \"</a>\";\n var tmpIndentation = \"\";\n\n if (inputObject.lineIndentationArray) {\n if (inputObject.lineIndentationArray.length > 0) {\n for (var i in inputObject.lineIndentationArray) {\n tmpIndentation = tmpIndentation + leadingIndentTag + \".\" + trailingTag + inputObject.lineIndentationArray[i];\n }\n inputLine = inputLine + tmpIndentation;\n }\n }\n return inputLine;\n}", "lineIndent(pos, bias = 1) {\n let { text, from } = this.lineAt(pos, bias);\n let override = this.options.overrideIndentation;\n if (override) {\n let overriden = override(from);\n if (overriden > -1)\n return overriden;\n }\n return this.countColumn(text, text.search(/\\S|$/));\n }", "increaseIndent() {\n if (this.owner.editor) {\n this.owner.editor.increaseIndent();\n }\n }", "function intakeSpace(ov){\n\tvar iRes, maxsp=0, ops = \"\";\n\tov = ov.trim().split(\"\\n\").map((il)=>{\n\t\tiRes = intakeLineToObject(il);\n\t\tif(iRes){\n\t\t\tif(iRes.tl > maxsp){\n\t\t\t\tmaxsp = iRes.tl;\n\t\t\t}\n\t\t\treturn iRes;\n\t\t} else {\n\t\t\treturn il;\n\t\t}\n\t});\n\tov.map((il)=>{\n\t\tif(typeof il == \"object\"){\n\t\t\tops += \til.ind + \" \" +\n\t\t\t\t\til.alg + \" \".repeat(maxsp - il.tl + 1) + \n\t\t\t\t\til.sub + \": \" +\n\t\t\t\t\til.qty + \"\\n\";\n\t\t} else if(il.length > 1){\n\t\t\t//offsets 5 characters to the left. Right justified.\n\t\t\tops += \" \".repeat(maxsp + 5 - il.length) + il + \"\\n\";\n\t\t} else {\n\t\t\tops += il + \"\\n\";\n\t\t}\n\t});\n\treturn ops;\n}", "set firstLineIndent(value) {\n if (value === this.firstLineIndentIn) {\n return;\n }\n this.firstLineIndentIn = value;\n this.notifyPropertyChanged('firstLineIndent');\n }", "function highlightLine(cm, line, context, forceToEnd) {\n\t\t // A styles array always starts with a number identifying the\n\t\t // mode/overlays that it is based on (for easy invalidation).\n\t\t var st = [cm.state.modeGen], lineClasses = {};\n\t\t // Compute the base array of styles\n\t\t runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n\t\t lineClasses, forceToEnd);\n\t\t var state = context.state;\n\n\t\t // Run overlays, adjust style array.\n\t\t var loop = function ( o ) {\n\t\t context.baseTokens = st;\n\t\t var overlay = cm.state.overlays[o], i = 1, at = 0;\n\t\t context.state = true;\n\t\t runMode(cm, line.text, overlay.mode, context, function (end, style) {\n\t\t var start = i;\n\t\t // Ensure there's a token end at the current position, and that i points at it\n\t\t while (at < end) {\n\t\t var i_end = st[i];\n\t\t if (i_end > end)\n\t\t { st.splice(i, 1, end, st[i+1], i_end); }\n\t\t i += 2;\n\t\t at = Math.min(end, i_end);\n\t\t }\n\t\t if (!style) { return }\n\t\t if (overlay.opaque) {\n\t\t st.splice(start, i - start, end, \"overlay \" + style);\n\t\t i = start + 2;\n\t\t } else {\n\t\t for (; start < i; start += 2) {\n\t\t var cur = st[start+1];\n\t\t st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n\t\t }\n\t\t }\n\t\t }, lineClasses);\n\t\t context.state = state;\n\t\t context.baseTokens = null;\n\t\t context.baseTokenPos = 1;\n\t\t };\n\n\t\t for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n\t\t return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n\t\t }", "function appendLine (line) {\n\tline.ishidden = false;\n\tswitch (line.exclude) {\n\t\tcase 'rule':\n\t\t\tappendProblemLineExcludingRule(line);\n\t\t\tbreak;\n\t\tcase 'premises':\n\t\t\tappendProblemLineExcludingPremise(line);\n\t\t\tbreak;\n\t\tcase 'both':\n\t\t\tappendProblemLineExcludingBoth(line);\n\t\t\tbreak;\n\t\tcase 'allbutderived':\n\t\t\tappendProblemLineExcludingBoth(line);\n\t\t\tbreak;\n\t}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen],\n lineClasses = {}; // Compute the base array of styles\n\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) {\n return st.push(end, style);\n }, lineClasses, forceToEnd);\n var state = context.state; // Run overlays, adjust style array.\n\n var loop = function loop(o) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o],\n i = 1,\n at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i; // Ensure there's a token end at the current position, and that i points at it\n\n while (at < end) {\n var i_end = st[i];\n\n if (i_end > end) {\n st.splice(i, 1, end, st[i + 1], i_end);\n }\n\n i += 2;\n at = Math.min(end, i_end);\n }\n\n if (!style) {\n return;\n }\n\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start + 1];\n st[start + 1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) {\n loop(o);\n }\n\n return {\n styles: st,\n classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null\n };\n }", "editorEnter (cm) {\n const cur = cm.getCursor()\n\n const { lineString, lineTokens } = this._getTokenLine(cm, cur)\n const [, indent, firstArrayItem] = lineString.match(/^(\\s*)(-\\s)?(.*?)?$/) || []\n let extraIntent = ''\n if (firstArrayItem) {\n extraIntent = `${repeat(' ', this.arrayBulletIndent)}`\n } else if (this._isTokenLineStartingObject(lineTokens)) {\n extraIntent = `${repeat(' ', this.indentUnit)}`\n }\n cm.replaceSelection(`\\n${indent}${extraIntent}`)\n }", "function incrementsIndent(token) {\n return token.type.label == \"{\"\n || token.isArrayLiteral\n || token.type.keyword == \"switch\";\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n context.state = state;\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n context.state = state;\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n}", "function highlightLine(cm, line, context, forceToEnd) {\r\n // A styles array always starts with a number identifying the\r\n // mode/overlays that it is based on (for easy invalidation).\r\n var st = [cm.state.modeGen], lineClasses = {};\r\n // Compute the base array of styles\r\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\r\n lineClasses, forceToEnd);\r\n var state = context.state;\r\n\r\n // Run overlays, adjust style array.\r\n var loop = function ( o ) {\r\n context.baseTokens = st;\r\n var overlay = cm.state.overlays[o], i = 1, at = 0;\r\n context.state = true;\r\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\r\n var start = i;\r\n // Ensure there's a token end at the current position, and that i points at it\r\n while (at < end) {\r\n var i_end = st[i];\r\n if (i_end > end)\r\n { st.splice(i, 1, end, st[i+1], i_end); }\r\n i += 2;\r\n at = Math.min(end, i_end);\r\n }\r\n if (!style) { return }\r\n if (overlay.opaque) {\r\n st.splice(start, i - start, end, \"overlay \" + style);\r\n i = start + 2;\r\n } else {\r\n for (; start < i; start += 2) {\r\n var cur = st[start+1];\r\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\r\n }\r\n }\r\n }, lineClasses);\r\n context.state = state;\r\n context.baseTokens = null;\r\n context.baseTokenPos = 1;\r\n };\r\n\r\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\r\n\r\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\r\n}", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }", "isNextLineIndented(ignoreComments = true) {\n var EOF, currentIndentation, ret;\n currentIndentation = this.getCurrentLineIndentation();\n EOF = !this.moveToNextLine();\n if (ignoreComments) {\n while (!EOF && this.isCurrentLineEmpty()) {\n EOF = !this.moveToNextLine();\n }\n } else {\n while (!EOF && this.isCurrentLineBlank()) {\n EOF = !this.moveToNextLine();\n }\n }\n if (EOF) {\n return false;\n }\n ret = false;\n if (this.getCurrentLineIndentation() > currentIndentation) {\n ret = true;\n }\n this.moveToPreviousLine();\n return ret;\n }", "function highlightLine(cm, line, state, forceToEnd) {\n\t\t // A styles array always starts with a number identifying the\n\t\t // mode/overlays that it is based on (for easy invalidation).\n\t\t var st = [cm.state.modeGen], lineClasses = {};\n\t\t // Compute the base array of styles\n\t\t runMode(cm, line.text, cm.doc.mode, state, function(end, style) {\n\t\t st.push(end, style);\n\t\t }, lineClasses, forceToEnd);\n\t\t\n\t\t // Run overlays, adjust style array.\n\t\t for (var o = 0; o < cm.state.overlays.length; ++o) {\n\t\t var overlay = cm.state.overlays[o], i = 1, at = 0;\n\t\t runMode(cm, line.text, overlay.mode, true, function(end, style) {\n\t\t var start = i;\n\t\t // Ensure there's a token end at the current position, and that i points at it\n\t\t while (at < end) {\n\t\t var i_end = st[i];\n\t\t if (i_end > end)\n\t\t st.splice(i, 1, end, st[i+1], i_end);\n\t\t i += 2;\n\t\t at = Math.min(end, i_end);\n\t\t }\n\t\t if (!style) return;\n\t\t if (overlay.opaque) {\n\t\t st.splice(start, i - start, end, \"cm-overlay \" + style);\n\t\t i = start + 2;\n\t\t } else {\n\t\t for (; start < i; start += 2) {\n\t\t var cur = st[start+1];\n\t\t st[start+1] = (cur ? cur + \" \" : \"\") + \"cm-overlay \" + style;\n\t\t }\n\t\t }\n\t\t }, lineClasses);\n\t\t }\n\t\t\n\t\t return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null};\n\t\t }", "function betterTab(cm) {\n if (cm.somethingSelected()) {\n cm.indentSelection(\"add\");\n } else {\n cm.replaceSelection(cm.getOption(\"indentWithTabs\")? \"\\t\":\n Array(cm.getOption(\"indentUnit\") + 1).join(\" \"), \"end\", \"+input\");\n }\n}", "lineToken({chunk = this.chunk, offset = 0} = {}) {\r\n\t\t\t\tvar backslash, diff, endsContinuationLineIndentation, indent, match, minLiteralLength, newIndentLiteral, noNewlines, prev, ref, size;\r\n\t\t\t\tif (!(match = MULTI_DENT.exec(chunk))) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\tindent = match[0];\r\n\t\t\t\tprev = this.prev();\r\n\t\t\t\tbackslash = (prev != null ? prev[0] : void 0) === '\\\\';\r\n\t\t\t\tif (!((backslash || ((ref = this.seenFor) != null ? ref.endsLength : void 0) < this.ends.length) && this.seenFor)) {\r\n\t\t\t\t\tthis.seenFor = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!((backslash && this.seenImport) || this.importSpecifierList)) {\r\n\t\t\t\t\tthis.seenImport = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!((backslash && this.seenExport) || this.exportSpecifierList)) {\r\n\t\t\t\t\tthis.seenExport = false;\r\n\t\t\t\t}\r\n\t\t\t\tsize = indent.length - 1 - indent.lastIndexOf('\\n');\r\n\t\t\t\tnoNewlines = this.unfinished();\r\n\t\t\t\tnewIndentLiteral = size > 0 ? indent.slice(-size) : '';\r\n\t\t\t\tif (!/^(.?)\\1*$/.exec(newIndentLiteral)) {\r\n\t\t\t\t\tthis.error('mixed indentation', {\r\n\t\t\t\t\t\toffset: indent.length\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn indent.length;\r\n\t\t\t\t}\r\n\t\t\t\tminLiteralLength = Math.min(newIndentLiteral.length, this.indentLiteral.length);\r\n\t\t\t\tif (newIndentLiteral.slice(0, minLiteralLength) !== this.indentLiteral.slice(0, minLiteralLength)) {\r\n\t\t\t\t\tthis.error('indentation mismatch', {\r\n\t\t\t\t\t\toffset: indent.length\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn indent.length;\r\n\t\t\t\t}\r\n\t\t\t\tif (size - this.continuationLineAdditionalIndent === this.indent) {\r\n\t\t\t\t\tif (noNewlines) {\r\n\t\t\t\t\t\tthis.suppressNewlines();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.newlineToken(offset);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn indent.length;\r\n\t\t\t\t}\r\n\t\t\t\tif (size > this.indent) {\r\n\t\t\t\t\tif (noNewlines) {\r\n\t\t\t\t\t\tif (!backslash) {\r\n\t\t\t\t\t\t\tthis.continuationLineAdditionalIndent = size - this.indent;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (this.continuationLineAdditionalIndent) {\r\n\t\t\t\t\t\t\tprev.continuationLineIndent = this.indent + this.continuationLineAdditionalIndent;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.suppressNewlines();\r\n\t\t\t\t\t\treturn indent.length;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!this.tokens.length) {\r\n\t\t\t\t\t\tthis.baseIndent = this.indent = size;\r\n\t\t\t\t\t\tthis.indentLiteral = newIndentLiteral;\r\n\t\t\t\t\t\treturn indent.length;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdiff = size - this.indent + this.outdebt;\r\n\t\t\t\t\tthis.token('INDENT', diff, {\r\n\t\t\t\t\t\toffset: offset + indent.length - size,\r\n\t\t\t\t\t\tlength: size\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.indents.push(diff);\r\n\t\t\t\t\tthis.ends.push({\r\n\t\t\t\t\t\ttag: 'OUTDENT'\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.outdebt = this.continuationLineAdditionalIndent = 0;\r\n\t\t\t\t\tthis.indent = size;\r\n\t\t\t\t\tthis.indentLiteral = newIndentLiteral;\r\n\t\t\t\t} else if (size < this.baseIndent) {\r\n\t\t\t\t\tthis.error('missing indentation', {\r\n\t\t\t\t\t\toffset: offset + indent.length\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tendsContinuationLineIndentation = this.continuationLineAdditionalIndent > 0;\r\n\t\t\t\t\tthis.continuationLineAdditionalIndent = 0;\r\n\t\t\t\t\tthis.outdentToken({\r\n\t\t\t\t\t\tmoveOut: this.indent - size,\r\n\t\t\t\t\t\tnoNewlines,\r\n\t\t\t\t\t\toutdentLength: indent.length,\r\n\t\t\t\t\t\toffset,\r\n\t\t\t\t\t\tindentSize: size,\r\n\t\t\t\t\t\tendsContinuationLineIndentation\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn indent.length;\r\n\t\t\t}", "function do_js_beautify(js_source, indent_size, preserve_newlines, keep_array_indentation, braces_on_own_line)\r\n{\r\n\tindent_char = ' ';\r\n\tif(indent_size == 1) indent_char = '\\t';\r\n\treturn js_beautify(js_source,\r\n\t{\r\n\t\tindent_size: indent_size,\r\n\t\tindent_char: indent_char,\r\n\t\tpreserve_newlines: preserve_newlines,\r\n\t\tbraces_on_own_line: braces_on_own_line,\r\n\t\tkeep_array_indentation: keep_array_indentation,\r\n\t\tspace_after_anon_function: true\r\n\t});\r\n}", "getCurrentLineIndentation() {\n return this.currentLine.length - Utils.ltrim(this.currentLine, ' ').length;\n }" ]
[ "0.7560999", "0.7560999", "0.75511813", "0.75368756", "0.7525595", "0.74956495", "0.74829096", "0.74829096", "0.7468585", "0.74491745", "0.74491745", "0.74491745", "0.74491745", "0.7437678", "0.7415526", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.7408092", "0.73757243", "0.73757243", "0.4941092", "0.4691241", "0.4586787", "0.4538701", "0.44709098", "0.4455052", "0.44437018", "0.44203988", "0.43943527", "0.43829122", "0.4362429", "0.43481478", "0.43367842", "0.43262345", "0.42585853", "0.42549932", "0.422657", "0.4215362", "0.42086878", "0.41998473", "0.41838357", "0.41808254", "0.41808254", "0.4171781", "0.4171781", "0.4171781", "0.4171781", "0.4171781", "0.4171781", "0.4171781", "0.4171781", "0.4171781", "0.41620278", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41548398", "0.41536614", "0.41034546", "0.40902653", "0.40858707", "0.4085742", "0.40825748" ]
0.7505184
21
The publicly visible API. Note that methodOp(f) means 'wrap f in an operation, performed on its `this` parameter'. This is not the complete set of editor methods. Most of the methods defined on the Doc type are also injected into CodeMirror.prototype, for backwards compatibility and convenience.
function addEditorMethods(CodeMirror) { var optionHandlers = CodeMirror.optionHandlers; var helpers = CodeMirror.helpers = {}; CodeMirror.prototype = { constructor: CodeMirror, focus: function(){window.focus(); this.display.input.focus();}, setOption: function(option, value) { var options = this.options, old = options[option]; if (options[option] == value && option != "mode") { return } options[option] = value; if (optionHandlers.hasOwnProperty(option)) { operation(this, optionHandlers[option])(this, value, old); } signal(this, "optionChange", this, option); }, getOption: function(option) {return this.options[option]}, getDoc: function() {return this.doc}, addKeyMap: function(map, bottom) { this.state.keyMaps[bottom ? "push" : "unshift"](getKeyMap(map)); }, removeKeyMap: function(map) { var maps = this.state.keyMaps; for (var i = 0; i < maps.length; ++i) { if (maps[i] == map || maps[i].name == map) { maps.splice(i, 1); return true } } }, addOverlay: methodOp(function(spec, options) { var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec); if (mode.startState) { throw new Error("Overlays may not be stateful.") } insertSorted(this.state.overlays, {mode: mode, modeSpec: spec, opaque: options && options.opaque, priority: (options && options.priority) || 0}, function (overlay) { return overlay.priority; }); this.state.modeGen++; regChange(this); }), removeOverlay: methodOp(function(spec) { var overlays = this.state.overlays; for (var i = 0; i < overlays.length; ++i) { var cur = overlays[i].modeSpec; if (cur == spec || typeof spec == "string" && cur.name == spec) { overlays.splice(i, 1); this.state.modeGen++; regChange(this); return } } }), indentLine: methodOp(function(n, dir, aggressive) { if (typeof dir != "string" && typeof dir != "number") { if (dir == null) { dir = this.options.smartIndent ? "smart" : "prev"; } else { dir = dir ? "add" : "subtract"; } } if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); } }), indentSelection: methodOp(function(how) { var ranges = this.doc.sel.ranges, end = -1; for (var i = 0; i < ranges.length; i++) { var range = ranges[i]; if (!range.empty()) { var from = range.from(), to = range.to(); var start = Math.max(end, from.line); end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1; for (var j = start; j < end; ++j) { indentLine(this, j, how); } var newRanges = this.doc.sel.ranges; if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0) { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); } } else if (range.head.line > end) { indentLine(this, range.head.line, how, true); end = range.head.line; if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); } } } }), // Fetch the parser token for a given character. Useful for hacks // that want to inspect the mode state (say, for completion). getTokenAt: function(pos, precise) { return takeToken(this, pos, precise) }, getLineTokens: function(line, precise) { return takeToken(this, Pos(line), precise, true) }, getTokenTypeAt: function(pos) { pos = clipPos(this.doc, pos); var styles = getLineStyles(this, getLine(this.doc, pos.line)); var before = 0, after = (styles.length - 1) / 2, ch = pos.ch; var type; if (ch == 0) { type = styles[2]; } else { for (;;) { var mid = (before + after) >> 1; if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; } else if (styles[mid * 2 + 1] < ch) { before = mid + 1; } else { type = styles[mid * 2 + 2]; break } } } var cut = type ? type.indexOf("overlay ") : -1; return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1) }, getModeAt: function(pos) { var mode = this.doc.mode; if (!mode.innerMode) { return mode } return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode }, getHelper: function(pos, type) { return this.getHelpers(pos, type)[0] }, getHelpers: function(pos, type) { var found = []; if (!helpers.hasOwnProperty(type)) { return found } var help = helpers[type], mode = this.getModeAt(pos); if (typeof mode[type] == "string") { if (help[mode[type]]) { found.push(help[mode[type]]); } } else if (mode[type]) { for (var i = 0; i < mode[type].length; i++) { var val = help[mode[type][i]]; if (val) { found.push(val); } } } else if (mode.helperType && help[mode.helperType]) { found.push(help[mode.helperType]); } else if (help[mode.name]) { found.push(help[mode.name]); } for (var i$1 = 0; i$1 < help._global.length; i$1++) { var cur = help._global[i$1]; if (cur.pred(mode, this) && indexOf(found, cur.val) == -1) { found.push(cur.val); } } return found }, getStateAfter: function(line, precise) { var doc = this.doc; line = clipLine(doc, line == null ? doc.first + doc.size - 1: line); return getContextBefore(this, line + 1, precise).state }, cursorCoords: function(start, mode) { var pos, range = this.doc.sel.primary(); if (start == null) { pos = range.head; } else if (typeof start == "object") { pos = clipPos(this.doc, start); } else { pos = start ? range.from() : range.to(); } return cursorCoords(this, pos, mode || "page") }, charCoords: function(pos, mode) { return charCoords(this, clipPos(this.doc, pos), mode || "page") }, coordsChar: function(coords, mode) { coords = fromCoordSystem(this, coords, mode || "page"); return coordsChar(this, coords.left, coords.top) }, lineAtHeight: function(height, mode) { height = fromCoordSystem(this, {top: height, left: 0}, mode || "page").top; return lineAtHeight(this.doc, height + this.display.viewOffset) }, heightAtLine: function(line, mode, includeWidgets) { var end = false, lineObj; if (typeof line == "number") { var last = this.doc.first + this.doc.size - 1; if (line < this.doc.first) { line = this.doc.first; } else if (line > last) { line = last; end = true; } lineObj = getLine(this.doc, line); } else { lineObj = line; } return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || "page", includeWidgets || end).top + (end ? this.doc.height - heightAtLine(lineObj) : 0) }, defaultTextHeight: function() { return textHeight(this.display) }, defaultCharWidth: function() { return charWidth(this.display) }, getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}}, addWidget: function(pos, node, scroll, vert, horiz) { var display = this.display; pos = cursorCoords(this, clipPos(this.doc, pos)); var top = pos.bottom, left = pos.left; node.style.position = "absolute"; node.setAttribute("cm-ignore-events", "true"); this.display.input.setUneditable(node); display.sizer.appendChild(node); if (vert == "over") { top = pos.top; } else if (vert == "above" || vert == "near") { var vspace = Math.max(display.wrapper.clientHeight, this.doc.height), hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth); // Default to positioning above (if specified and possible); otherwise default to positioning below if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight) { top = pos.top - node.offsetHeight; } else if (pos.bottom + node.offsetHeight <= vspace) { top = pos.bottom; } if (left + node.offsetWidth > hspace) { left = hspace - node.offsetWidth; } } node.style.top = top + "px"; node.style.left = node.style.right = ""; if (horiz == "right") { left = display.sizer.clientWidth - node.offsetWidth; node.style.right = "0px"; } else { if (horiz == "left") { left = 0; } else if (horiz == "middle") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; } node.style.left = left + "px"; } if (scroll) { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); } }, triggerOnKeyDown: methodOp(onKeyDown), triggerOnKeyPress: methodOp(onKeyPress), triggerOnKeyUp: onKeyUp, triggerOnMouseDown: methodOp(onMouseDown), execCommand: function(cmd) { if (commands.hasOwnProperty(cmd)) { return commands[cmd].call(null, this) } }, triggerElectric: methodOp(function(text) { triggerElectric(this, text); }), findPosH: function(from, amount, unit, visually) { var dir = 1; if (amount < 0) { dir = -1; amount = -amount; } var cur = clipPos(this.doc, from); for (var i = 0; i < amount; ++i) { cur = findPosH(this.doc, cur, dir, unit, visually); if (cur.hitSide) { break } } return cur }, moveH: methodOp(function(dir, unit) { var this$1 = this; this.extendSelectionsBy(function (range) { if (this$1.display.shift || this$1.doc.extend || range.empty()) { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) } else { return dir < 0 ? range.from() : range.to() } }, sel_move); }), deleteH: methodOp(function(dir, unit) { var sel = this.doc.sel, doc = this.doc; if (sel.somethingSelected()) { doc.replaceSelection("", null, "+delete"); } else { deleteNearSelection(this, function (range) { var other = findPosH(doc, range.head, dir, unit, false); return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other} }); } }), findPosV: function(from, amount, unit, goalColumn) { var dir = 1, x = goalColumn; if (amount < 0) { dir = -1; amount = -amount; } var cur = clipPos(this.doc, from); for (var i = 0; i < amount; ++i) { var coords = cursorCoords(this, cur, "div"); if (x == null) { x = coords.left; } else { coords.left = x; } cur = findPosV(this, coords, dir, unit); if (cur.hitSide) { break } } return cur }, moveV: methodOp(function(dir, unit) { var this$1 = this; var doc = this.doc, goals = []; var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected(); doc.extendSelectionsBy(function (range) { if (collapse) { return dir < 0 ? range.from() : range.to() } var headPos = cursorCoords(this$1, range.head, "div"); if (range.goalColumn != null) { headPos.left = range.goalColumn; } goals.push(headPos.left); var pos = findPosV(this$1, headPos, dir, unit); if (unit == "page" && range == doc.sel.primary()) { addToScrollTop(this$1, charCoords(this$1, pos, "div").top - headPos.top); } return pos }, sel_move); if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++) { doc.sel.ranges[i].goalColumn = goals[i]; } } }), // Find the word at the given position (as returned by coordsChar). findWordAt: function(pos) { var doc = this.doc, line = getLine(doc, pos.line).text; var start = pos.ch, end = pos.ch; if (line) { var helper = this.getHelper(pos, "wordChars"); if ((pos.sticky == "before" || end == line.length) && start) { --start; } else { ++end; } var startChar = line.charAt(start); var check = isWordChar(startChar, helper) ? function (ch) { return isWordChar(ch, helper); } : /\s/.test(startChar) ? function (ch) { return /\s/.test(ch); } : function (ch) { return (!/\s/.test(ch) && !isWordChar(ch)); }; while (start > 0 && check(line.charAt(start - 1))) { --start; } while (end < line.length && check(line.charAt(end))) { ++end; } } return new Range(Pos(pos.line, start), Pos(pos.line, end)) }, toggleOverwrite: function(value) { if (value != null && value == this.state.overwrite) { return } if (this.state.overwrite = !this.state.overwrite) { addClass(this.display.cursorDiv, "CodeMirror-overwrite"); } else { rmClass(this.display.cursorDiv, "CodeMirror-overwrite"); } signal(this, "overwriteToggle", this, this.state.overwrite); }, hasFocus: function() { return this.display.input.getField() == activeElt() }, isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) }, scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }), getScrollInfo: function() { var scroller = this.display.scroller; return {left: scroller.scrollLeft, top: scroller.scrollTop, height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight, width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth, clientHeight: displayHeight(this), clientWidth: displayWidth(this)} }, scrollIntoView: methodOp(function(range, margin) { if (range == null) { range = {from: this.doc.sel.primary().head, to: null}; if (margin == null) { margin = this.options.cursorScrollMargin; } } else if (typeof range == "number") { range = {from: Pos(range, 0), to: null}; } else if (range.from == null) { range = {from: range, to: null}; } if (!range.to) { range.to = range.from; } range.margin = margin || 0; if (range.from.line != null) { scrollToRange(this, range); } else { scrollToCoordsRange(this, range.from, range.to, range.margin); } }), setSize: methodOp(function(width, height) { var this$1 = this; var interpret = function (val) { return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val; }; if (width != null) { this.display.wrapper.style.width = interpret(width); } if (height != null) { this.display.wrapper.style.height = interpret(height); } if (this.options.lineWrapping) { clearLineMeasurementCache(this); } var lineNo = this.display.viewFrom; this.doc.iter(lineNo, this.display.viewTo, function (line) { if (line.widgets) { for (var i = 0; i < line.widgets.length; i++) { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, "widget"); break } } } ++lineNo; }); this.curOp.forceUpdate = true; signal(this, "refresh", this); }), operation: function(f){return runInOp(this, f)}, startOperation: function(){return startOperation(this)}, endOperation: function(){return endOperation(this)}, refresh: methodOp(function() { var oldHeight = this.display.cachedTextHeight; regChange(this); this.curOp.forceUpdate = true; clearCaches(this); scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop); updateGutterSpace(this.display); if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping) { estimateLineHeights(this); } signal(this, "refresh", this); }), swapDoc: methodOp(function(doc) { var old = this.doc; old.cm = null; // Cancel the current text selection if any (#5821) if (this.state.selectingText) { this.state.selectingText(); } attachDoc(this, doc); clearCaches(this); this.display.input.reset(); scrollToCoords(this, doc.scrollLeft, doc.scrollTop); this.curOp.forceScroll = true; signalLater(this, "swapDoc", this, old); return old }), phrase: function(phraseText) { var phrases = this.options.phrases; return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText }, getInputField: function(){return this.display.input.getField()}, getWrapperElement: function(){return this.display.wrapper}, getScrollerElement: function(){return this.display.scroller}, getGutterElement: function(){return this.display.gutters} }; eventMixin(CodeMirror); CodeMirror.registerHelper = function(type, name, value) { if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; } helpers[type][name] = value; }; CodeMirror.registerGlobalHelper = function(type, name, predicate, value) { CodeMirror.registerHelper(type, name, value); helpers[type]._global.push({pred: predicate, val: value}); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map$$1, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n },\n removeKeyMap: function(map$$1) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this$1.state.modeGen++;\n regChange(this$1);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range$$1 = ranges[i];\n if (!range$$1.empty()) {\n var from = range$$1.from(), to = range$$1.to();\n var start = Math.max(end, from.line);\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how); }\n var newRanges = this$1.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range$$1.head.line > end) {\n indentLine(this$1, range$$1.head.line, how, true);\n end = range$$1.head.line;\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range$$1 = this.doc.sel.primary();\n if (start == null) { pos = range$$1.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range$$1.from() : range$$1.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range$$1) {\n if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range$$1) {\n var other = findPosH(doc, range$$1.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this$1, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range$$1) {\n if (collapse)\n { return dir < 0 ? range$$1.from() : range$$1.to() }\n var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range$$1 == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range$$1, margin) {\n if (range$$1 == null) {\n range$$1 = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range$$1 == \"number\") {\n range$$1 = {from: Pos(range$$1, 0), to: null};\n } else if (range$$1.from == null) {\n range$$1 = {from: range$$1, to: null};\n }\n if (!range$$1.to) { range$$1.to = range$$1.from; }\n range$$1.margin = margin || 0;\n\n if (range$$1.from.line != null) {\n scrollToRange(this, range$$1);\n } else {\n scrollToCoordsRange(this, range$$1.from, range$$1.to, range$$1.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo$$1 = this.display.viewFrom;\n this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n ++lineNo$$1;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n var helpers = CodeMirror.helpers = {};\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function focus() {\n window.focus();\n this.display.input.focus();\n },\n setOption: function setOption(option, value) {\n var options = this.options,\n old = options[option];\n\n if (options[option] == value && option != \"mode\") {\n return;\n }\n\n options[option] = value;\n\n if (optionHandlers.hasOwnProperty(option)) {\n operation(this, optionHandlers[option])(this, value, old);\n }\n\n signal(this, \"optionChange\", this, option);\n },\n getOption: function getOption(option) {\n return this.options[option];\n },\n getDoc: function getDoc() {\n return this.doc;\n },\n addKeyMap: function addKeyMap(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function removeKeyMap(map) {\n var maps = this.state.keyMaps;\n\n for (var i = 0; i < maps.length; ++i) {\n if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true;\n }\n }\n },\n addOverlay: methodOp(function (spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n\n if (mode.startState) {\n throw new Error(\"Overlays may not be stateful.\");\n }\n\n insertSorted(this.state.overlays, {\n mode: mode,\n modeSpec: spec,\n opaque: options && options.opaque,\n priority: options && options.priority || 0\n }, function (overlay) {\n return overlay.priority;\n });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function (spec) {\n var overlays = this.state.overlays;\n\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return;\n }\n }\n }),\n indentLine: methodOp(function (n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) {\n dir = this.options.smartIndent ? \"smart\" : \"prev\";\n } else {\n dir = dir ? \"add\" : \"subtract\";\n }\n }\n\n if (isLine(this.doc, n)) {\n indentLine(this, n, dir, aggressive);\n }\n }),\n indentSelection: methodOp(function (how) {\n var ranges = this.doc.sel.ranges,\n end = -1;\n\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n\n if (!range.empty()) {\n var from = range.from(),\n to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n\n for (var j = start; j < end; ++j) {\n indentLine(this, j, how);\n }\n\n var newRanges = this.doc.sel.ranges;\n\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0) {\n replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll);\n }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n\n if (i == this.doc.sel.primIndex) {\n ensureCursorVisible(this);\n }\n }\n }\n }),\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function getTokenAt(pos, precise) {\n return takeToken(this, pos, precise);\n },\n getLineTokens: function getLineTokens(line, precise) {\n return takeToken(this, Pos(line), precise, true);\n },\n getTokenTypeAt: function getTokenTypeAt(pos) {\n pos = _clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0,\n after = (styles.length - 1) / 2,\n ch = pos.ch;\n var type;\n\n if (ch == 0) {\n type = styles[2];\n } else {\n for (;;) {\n var mid = before + after >> 1;\n\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) {\n after = mid;\n } else if (styles[mid * 2 + 1] < ch) {\n before = mid + 1;\n } else {\n type = styles[mid * 2 + 2];\n break;\n }\n }\n }\n\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1);\n },\n getModeAt: function getModeAt(pos) {\n var mode = this.doc.mode;\n\n if (!mode.innerMode) {\n return mode;\n }\n\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode;\n },\n getHelper: function getHelper(pos, type) {\n return this.getHelpers(pos, type)[0];\n },\n getHelpers: function getHelpers(pos, type) {\n var found = [];\n\n if (!helpers.hasOwnProperty(type)) {\n return found;\n }\n\n var help = helpers[type],\n mode = this.getModeAt(pos);\n\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) {\n found.push(help[mode[type]]);\n }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n\n if (val) {\n found.push(val);\n }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1) {\n found.push(cur.val);\n }\n }\n\n return found;\n },\n getStateAfter: function getStateAfter(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1 : line);\n return getContextBefore(this, line + 1, precise).state;\n },\n cursorCoords: function cursorCoords(start, mode) {\n var pos,\n range = this.doc.sel.primary();\n\n if (start == null) {\n pos = range.head;\n } else if (_typeof(start) == \"object\") {\n pos = _clipPos(this.doc, start);\n } else {\n pos = start ? range.from() : range.to();\n }\n\n return _cursorCoords(this, pos, mode || \"page\");\n },\n charCoords: function charCoords(pos, mode) {\n return _charCoords(this, _clipPos(this.doc, pos), mode || \"page\");\n },\n coordsChar: function coordsChar(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return _coordsChar(this, coords.left, coords.top);\n },\n lineAtHeight: function lineAtHeight(height, mode) {\n height = fromCoordSystem(this, {\n top: height,\n left: 0\n }, mode || \"page\").top;\n return _lineAtHeight(this.doc, height + this.display.viewOffset);\n },\n heightAtLine: function heightAtLine(line, mode, includeWidgets) {\n var end = false,\n lineObj;\n\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n\n if (line < this.doc.first) {\n line = this.doc.first;\n } else if (line > last) {\n line = last;\n end = true;\n }\n\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n\n return intoCoordSystem(this, lineObj, {\n top: 0,\n left: 0\n }, mode || \"page\", includeWidgets || end).top + (end ? this.doc.height - _heightAtLine(lineObj) : 0);\n },\n defaultTextHeight: function defaultTextHeight() {\n return textHeight(this.display);\n },\n defaultCharWidth: function defaultCharWidth() {\n return charWidth(this.display);\n },\n getViewport: function getViewport() {\n return {\n from: this.display.viewFrom,\n to: this.display.viewTo\n };\n },\n addWidget: function addWidget(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = _cursorCoords(this, _clipPos(this.doc, pos));\n var top = pos.bottom,\n left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth); // Default to positioning above (if specified and possible); otherwise default to positioning below\n\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight) {\n top = pos.top - node.offsetHeight;\n } else if (pos.bottom + node.offsetHeight <= vspace) {\n top = pos.bottom;\n }\n\n if (left + node.offsetWidth > hspace) {\n left = hspace - node.offsetWidth;\n }\n }\n\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") {\n left = 0;\n } else if (horiz == \"middle\") {\n left = (display.sizer.clientWidth - node.offsetWidth) / 2;\n }\n\n node.style.left = left + \"px\";\n }\n\n if (scroll) {\n scrollIntoView(this, {\n left: left,\n top: top,\n right: left + node.offsetWidth,\n bottom: top + node.offsetHeight\n });\n }\n },\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n execCommand: function execCommand(cmd) {\n if (commands.hasOwnProperty(cmd)) {\n return commands[cmd].call(null, this);\n }\n },\n triggerElectric: methodOp(function (text) {\n triggerElectric(this, text);\n }),\n findPosH: function findPosH(from, amount, unit, visually) {\n var dir = 1;\n\n if (amount < 0) {\n dir = -1;\n amount = -amount;\n }\n\n var cur = _clipPos(this.doc, from);\n\n for (var i = 0; i < amount; ++i) {\n cur = _findPosH(this.doc, cur, dir, unit, visually);\n\n if (cur.hitSide) {\n break;\n }\n }\n\n return cur;\n },\n moveH: methodOp(function (dir, unit) {\n var this$1 = this;\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty()) {\n return _findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually);\n } else {\n return dir < 0 ? range.from() : range.to();\n }\n }, sel_move);\n }),\n deleteH: methodOp(function (dir, unit) {\n var sel = this.doc.sel,\n doc = this.doc;\n\n if (sel.somethingSelected()) {\n doc.replaceSelection(\"\", null, \"+delete\");\n } else {\n deleteNearSelection(this, function (range) {\n var other = _findPosH(doc, range.head, dir, unit, false);\n\n return dir < 0 ? {\n from: other,\n to: range.head\n } : {\n from: range.head,\n to: other\n };\n });\n }\n }),\n findPosV: function findPosV(from, amount, unit, goalColumn) {\n var dir = 1,\n x = goalColumn;\n\n if (amount < 0) {\n dir = -1;\n amount = -amount;\n }\n\n var cur = _clipPos(this.doc, from);\n\n for (var i = 0; i < amount; ++i) {\n var coords = _cursorCoords(this, cur, \"div\");\n\n if (x == null) {\n x = coords.left;\n } else {\n coords.left = x;\n }\n\n cur = _findPosV(this, coords, dir, unit);\n\n if (cur.hitSide) {\n break;\n }\n }\n\n return cur;\n },\n moveV: methodOp(function (dir, unit) {\n var this$1 = this;\n var doc = this.doc,\n goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse) {\n return dir < 0 ? range.from() : range.to();\n }\n\n var headPos = _cursorCoords(this$1, range.head, \"div\");\n\n if (range.goalColumn != null) {\n headPos.left = range.goalColumn;\n }\n\n goals.push(headPos.left);\n\n var pos = _findPosV(this$1, headPos, dir, unit);\n\n if (unit == \"page\" && range == doc.sel.primary()) {\n addToScrollTop(this$1, _charCoords(this$1, pos, \"div\").top - headPos.top);\n }\n\n return pos;\n }, sel_move);\n\n if (goals.length) {\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n doc.sel.ranges[i].goalColumn = goals[i];\n }\n }\n }),\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function findWordAt(pos) {\n var doc = this.doc,\n line = getLine(doc, pos.line).text;\n var start = pos.ch,\n end = pos.ch;\n\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n\n if ((pos.sticky == \"before\" || end == line.length) && start) {\n --start;\n } else {\n ++end;\n }\n\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper) ? function (ch) {\n return isWordChar(ch, helper);\n } : /\\s/.test(startChar) ? function (ch) {\n return /\\s/.test(ch);\n } : function (ch) {\n return !/\\s/.test(ch) && !isWordChar(ch);\n };\n\n while (start > 0 && check(line.charAt(start - 1))) {\n --start;\n }\n\n while (end < line.length && check(line.charAt(end))) {\n ++end;\n }\n }\n\n return new Range(Pos(pos.line, start), Pos(pos.line, end));\n },\n toggleOverwrite: function toggleOverwrite(value) {\n if (value != null && value == this.state.overwrite) {\n return;\n }\n\n if (this.state.overwrite = !this.state.overwrite) {\n addClass(this.display.cursorDiv, \"CodeMirror-overwrite\");\n } else {\n rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\");\n }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function hasFocus() {\n return this.display.input.getField() == activeElt();\n },\n isReadOnly: function isReadOnly() {\n return !!(this.options.readOnly || this.doc.cantEdit);\n },\n scrollTo: methodOp(function (x, y) {\n scrollToCoords(this, x, y);\n }),\n getScrollInfo: function getScrollInfo() {\n var scroller = this.display.scroller;\n return {\n left: scroller.scrollLeft,\n top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this),\n clientWidth: displayWidth(this)\n };\n },\n scrollIntoView: methodOp(function (range, margin) {\n if (range == null) {\n range = {\n from: this.doc.sel.primary().head,\n to: null\n };\n\n if (margin == null) {\n margin = this.options.cursorScrollMargin;\n }\n } else if (typeof range == \"number\") {\n range = {\n from: Pos(range, 0),\n to: null\n };\n } else if (range.from == null) {\n range = {\n from: range,\n to: null\n };\n }\n\n if (!range.to) {\n range.to = range.from;\n }\n\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n setSize: methodOp(function (width, height) {\n var this$1 = this;\n\n var interpret = function interpret(val) {\n return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val;\n };\n\n if (width != null) {\n this.display.wrapper.style.width = interpret(width);\n }\n\n if (height != null) {\n this.display.wrapper.style.height = interpret(height);\n }\n\n if (this.options.lineWrapping) {\n clearLineMeasurementCache(this);\n }\n\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) {\n for (var i = 0; i < line.widgets.length; i++) {\n if (line.widgets[i].noHScroll) {\n regLineChange(this$1, lineNo, \"widget\");\n break;\n }\n }\n }\n\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n operation: function operation(f) {\n return runInOp(this, f);\n },\n startOperation: function startOperation() {\n return _startOperation(this);\n },\n endOperation: function endOperation() {\n return _endOperation(this);\n },\n refresh: methodOp(function () {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping) {\n estimateLineHeights(this);\n }\n\n signal(this, \"refresh\", this);\n }),\n swapDoc: methodOp(function (doc) {\n var old = this.doc;\n old.cm = null; // Cancel the current text selection if any (#5821)\n\n if (this.state.selectingText) {\n this.state.selectingText();\n }\n\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old;\n }),\n phrase: function phrase(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText;\n },\n getInputField: function getInputField() {\n return this.display.input.getField();\n },\n getWrapperElement: function getWrapperElement() {\n return this.display.wrapper;\n },\n getScrollerElement: function getScrollerElement() {\n return this.display.scroller;\n },\n getGutterElement: function getGutterElement() {\n return this.display.gutters;\n }\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function (type, name, value) {\n if (!helpers.hasOwnProperty(type)) {\n helpers[type] = CodeMirror[type] = {\n _global: []\n };\n }\n\n helpers[type][name] = value;\n };\n\n CodeMirror.registerGlobalHelper = function (type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n\n helpers[type]._global.push({\n pred: predicate,\n val: value\n });\n };\n } // Used for horizontal relative motion. Dir is -1 or 1 (left or", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){win(this).focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){win(this).focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }", "function addEditorMethods(CodeMirror) {\n\t\t var optionHandlers = CodeMirror.optionHandlers;\n\n\t\t var helpers = CodeMirror.helpers = {};\n\n\t\t CodeMirror.prototype = {\n\t\t constructor: CodeMirror,\n\t\t focus: function(){win(this).focus(); this.display.input.focus();},\n\n\t\t setOption: function(option, value) {\n\t\t var options = this.options, old = options[option];\n\t\t if (options[option] == value && option != \"mode\") { return }\n\t\t options[option] = value;\n\t\t if (optionHandlers.hasOwnProperty(option))\n\t\t { operation(this, optionHandlers[option])(this, value, old); }\n\t\t signal(this, \"optionChange\", this, option);\n\t\t },\n\n\t\t getOption: function(option) {return this.options[option]},\n\t\t getDoc: function() {return this.doc},\n\n\t\t addKeyMap: function(map, bottom) {\n\t\t this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n\t\t },\n\t\t removeKeyMap: function(map) {\n\t\t var maps = this.state.keyMaps;\n\t\t for (var i = 0; i < maps.length; ++i)\n\t\t { if (maps[i] == map || maps[i].name == map) {\n\t\t maps.splice(i, 1);\n\t\t return true\n\t\t } }\n\t\t },\n\n\t\t addOverlay: methodOp(function(spec, options) {\n\t\t var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n\t\t if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n\t\t insertSorted(this.state.overlays,\n\t\t {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n\t\t priority: (options && options.priority) || 0},\n\t\t function (overlay) { return overlay.priority; });\n\t\t this.state.modeGen++;\n\t\t regChange(this);\n\t\t }),\n\t\t removeOverlay: methodOp(function(spec) {\n\t\t var overlays = this.state.overlays;\n\t\t for (var i = 0; i < overlays.length; ++i) {\n\t\t var cur = overlays[i].modeSpec;\n\t\t if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n\t\t overlays.splice(i, 1);\n\t\t this.state.modeGen++;\n\t\t regChange(this);\n\t\t return\n\t\t }\n\t\t }\n\t\t }),\n\n\t\t indentLine: methodOp(function(n, dir, aggressive) {\n\t\t if (typeof dir != \"string\" && typeof dir != \"number\") {\n\t\t if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n\t\t else { dir = dir ? \"add\" : \"subtract\"; }\n\t\t }\n\t\t if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n\t\t }),\n\t\t indentSelection: methodOp(function(how) {\n\t\t var ranges = this.doc.sel.ranges, end = -1;\n\t\t for (var i = 0; i < ranges.length; i++) {\n\t\t var range = ranges[i];\n\t\t if (!range.empty()) {\n\t\t var from = range.from(), to = range.to();\n\t\t var start = Math.max(end, from.line);\n\t\t end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n\t\t for (var j = start; j < end; ++j)\n\t\t { indentLine(this, j, how); }\n\t\t var newRanges = this.doc.sel.ranges;\n\t\t if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n\t\t { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n\t\t } else if (range.head.line > end) {\n\t\t indentLine(this, range.head.line, how, true);\n\t\t end = range.head.line;\n\t\t if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n\t\t }\n\t\t }\n\t\t }),\n\n\t\t // Fetch the parser token for a given character. Useful for hacks\n\t\t // that want to inspect the mode state (say, for completion).\n\t\t getTokenAt: function(pos, precise) {\n\t\t return takeToken(this, pos, precise)\n\t\t },\n\n\t\t getLineTokens: function(line, precise) {\n\t\t return takeToken(this, Pos(line), precise, true)\n\t\t },\n\n\t\t getTokenTypeAt: function(pos) {\n\t\t pos = clipPos(this.doc, pos);\n\t\t var styles = getLineStyles(this, getLine(this.doc, pos.line));\n\t\t var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n\t\t var type;\n\t\t if (ch == 0) { type = styles[2]; }\n\t\t else { for (;;) {\n\t\t var mid = (before + after) >> 1;\n\t\t if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n\t\t else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n\t\t else { type = styles[mid * 2 + 2]; break }\n\t\t } }\n\t\t var cut = type ? type.indexOf(\"overlay \") : -1;\n\t\t return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n\t\t },\n\n\t\t getModeAt: function(pos) {\n\t\t var mode = this.doc.mode;\n\t\t if (!mode.innerMode) { return mode }\n\t\t return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n\t\t },\n\n\t\t getHelper: function(pos, type) {\n\t\t return this.getHelpers(pos, type)[0]\n\t\t },\n\n\t\t getHelpers: function(pos, type) {\n\t\t var found = [];\n\t\t if (!helpers.hasOwnProperty(type)) { return found }\n\t\t var help = helpers[type], mode = this.getModeAt(pos);\n\t\t if (typeof mode[type] == \"string\") {\n\t\t if (help[mode[type]]) { found.push(help[mode[type]]); }\n\t\t } else if (mode[type]) {\n\t\t for (var i = 0; i < mode[type].length; i++) {\n\t\t var val = help[mode[type][i]];\n\t\t if (val) { found.push(val); }\n\t\t }\n\t\t } else if (mode.helperType && help[mode.helperType]) {\n\t\t found.push(help[mode.helperType]);\n\t\t } else if (help[mode.name]) {\n\t\t found.push(help[mode.name]);\n\t\t }\n\t\t for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n\t\t var cur = help._global[i$1];\n\t\t if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n\t\t { found.push(cur.val); }\n\t\t }\n\t\t return found\n\t\t },\n\n\t\t getStateAfter: function(line, precise) {\n\t\t var doc = this.doc;\n\t\t line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n\t\t return getContextBefore(this, line + 1, precise).state\n\t\t },\n\n\t\t cursorCoords: function(start, mode) {\n\t\t var pos, range = this.doc.sel.primary();\n\t\t if (start == null) { pos = range.head; }\n\t\t else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n\t\t else { pos = start ? range.from() : range.to(); }\n\t\t return cursorCoords(this, pos, mode || \"page\")\n\t\t },\n\n\t\t charCoords: function(pos, mode) {\n\t\t return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n\t\t },\n\n\t\t coordsChar: function(coords, mode) {\n\t\t coords = fromCoordSystem(this, coords, mode || \"page\");\n\t\t return coordsChar(this, coords.left, coords.top)\n\t\t },\n\n\t\t lineAtHeight: function(height, mode) {\n\t\t height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n\t\t return lineAtHeight(this.doc, height + this.display.viewOffset)\n\t\t },\n\t\t heightAtLine: function(line, mode, includeWidgets) {\n\t\t var end = false, lineObj;\n\t\t if (typeof line == \"number\") {\n\t\t var last = this.doc.first + this.doc.size - 1;\n\t\t if (line < this.doc.first) { line = this.doc.first; }\n\t\t else if (line > last) { line = last; end = true; }\n\t\t lineObj = getLine(this.doc, line);\n\t\t } else {\n\t\t lineObj = line;\n\t\t }\n\t\t return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n\t\t (end ? this.doc.height - heightAtLine(lineObj) : 0)\n\t\t },\n\n\t\t defaultTextHeight: function() { return textHeight(this.display) },\n\t\t defaultCharWidth: function() { return charWidth(this.display) },\n\n\t\t getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n\t\t addWidget: function(pos, node, scroll, vert, horiz) {\n\t\t var display = this.display;\n\t\t pos = cursorCoords(this, clipPos(this.doc, pos));\n\t\t var top = pos.bottom, left = pos.left;\n\t\t node.style.position = \"absolute\";\n\t\t node.setAttribute(\"cm-ignore-events\", \"true\");\n\t\t this.display.input.setUneditable(node);\n\t\t display.sizer.appendChild(node);\n\t\t if (vert == \"over\") {\n\t\t top = pos.top;\n\t\t } else if (vert == \"above\" || vert == \"near\") {\n\t\t var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n\t\t hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n\t\t // Default to positioning above (if specified and possible); otherwise default to positioning below\n\t\t if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n\t\t { top = pos.top - node.offsetHeight; }\n\t\t else if (pos.bottom + node.offsetHeight <= vspace)\n\t\t { top = pos.bottom; }\n\t\t if (left + node.offsetWidth > hspace)\n\t\t { left = hspace - node.offsetWidth; }\n\t\t }\n\t\t node.style.top = top + \"px\";\n\t\t node.style.left = node.style.right = \"\";\n\t\t if (horiz == \"right\") {\n\t\t left = display.sizer.clientWidth - node.offsetWidth;\n\t\t node.style.right = \"0px\";\n\t\t } else {\n\t\t if (horiz == \"left\") { left = 0; }\n\t\t else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n\t\t node.style.left = left + \"px\";\n\t\t }\n\t\t if (scroll)\n\t\t { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n\t\t },\n\n\t\t triggerOnKeyDown: methodOp(onKeyDown),\n\t\t triggerOnKeyPress: methodOp(onKeyPress),\n\t\t triggerOnKeyUp: onKeyUp,\n\t\t triggerOnMouseDown: methodOp(onMouseDown),\n\n\t\t execCommand: function(cmd) {\n\t\t if (commands.hasOwnProperty(cmd))\n\t\t { return commands[cmd].call(null, this) }\n\t\t },\n\n\t\t triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n\t\t findPosH: function(from, amount, unit, visually) {\n\t\t var dir = 1;\n\t\t if (amount < 0) { dir = -1; amount = -amount; }\n\t\t var cur = clipPos(this.doc, from);\n\t\t for (var i = 0; i < amount; ++i) {\n\t\t cur = findPosH(this.doc, cur, dir, unit, visually);\n\t\t if (cur.hitSide) { break }\n\t\t }\n\t\t return cur\n\t\t },\n\n\t\t moveH: methodOp(function(dir, unit) {\n\t\t var this$1$1 = this;\n\n\t\t this.extendSelectionsBy(function (range) {\n\t\t if (this$1$1.display.shift || this$1$1.doc.extend || range.empty())\n\t\t { return findPosH(this$1$1.doc, range.head, dir, unit, this$1$1.options.rtlMoveVisually) }\n\t\t else\n\t\t { return dir < 0 ? range.from() : range.to() }\n\t\t }, sel_move);\n\t\t }),\n\n\t\t deleteH: methodOp(function(dir, unit) {\n\t\t var sel = this.doc.sel, doc = this.doc;\n\t\t if (sel.somethingSelected())\n\t\t { doc.replaceSelection(\"\", null, \"+delete\"); }\n\t\t else\n\t\t { deleteNearSelection(this, function (range) {\n\t\t var other = findPosH(doc, range.head, dir, unit, false);\n\t\t return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n\t\t }); }\n\t\t }),\n\n\t\t findPosV: function(from, amount, unit, goalColumn) {\n\t\t var dir = 1, x = goalColumn;\n\t\t if (amount < 0) { dir = -1; amount = -amount; }\n\t\t var cur = clipPos(this.doc, from);\n\t\t for (var i = 0; i < amount; ++i) {\n\t\t var coords = cursorCoords(this, cur, \"div\");\n\t\t if (x == null) { x = coords.left; }\n\t\t else { coords.left = x; }\n\t\t cur = findPosV(this, coords, dir, unit);\n\t\t if (cur.hitSide) { break }\n\t\t }\n\t\t return cur\n\t\t },\n\n\t\t moveV: methodOp(function(dir, unit) {\n\t\t var this$1$1 = this;\n\n\t\t var doc = this.doc, goals = [];\n\t\t var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n\t\t doc.extendSelectionsBy(function (range) {\n\t\t if (collapse)\n\t\t { return dir < 0 ? range.from() : range.to() }\n\t\t var headPos = cursorCoords(this$1$1, range.head, \"div\");\n\t\t if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n\t\t goals.push(headPos.left);\n\t\t var pos = findPosV(this$1$1, headPos, dir, unit);\n\t\t if (unit == \"page\" && range == doc.sel.primary())\n\t\t { addToScrollTop(this$1$1, charCoords(this$1$1, pos, \"div\").top - headPos.top); }\n\t\t return pos\n\t\t }, sel_move);\n\t\t if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n\t\t { doc.sel.ranges[i].goalColumn = goals[i]; } }\n\t\t }),\n\n\t\t // Find the word at the given position (as returned by coordsChar).\n\t\t findWordAt: function(pos) {\n\t\t var doc = this.doc, line = getLine(doc, pos.line).text;\n\t\t var start = pos.ch, end = pos.ch;\n\t\t if (line) {\n\t\t var helper = this.getHelper(pos, \"wordChars\");\n\t\t if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n\t\t var startChar = line.charAt(start);\n\t\t var check = isWordChar(startChar, helper)\n\t\t ? function (ch) { return isWordChar(ch, helper); }\n\t\t : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n\t\t : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n\t\t while (start > 0 && check(line.charAt(start - 1))) { --start; }\n\t\t while (end < line.length && check(line.charAt(end))) { ++end; }\n\t\t }\n\t\t return new Range(Pos(pos.line, start), Pos(pos.line, end))\n\t\t },\n\n\t\t toggleOverwrite: function(value) {\n\t\t if (value != null && value == this.state.overwrite) { return }\n\t\t if (this.state.overwrite = !this.state.overwrite)\n\t\t { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\t\t else\n\t\t { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n\t\t signal(this, \"overwriteToggle\", this, this.state.overwrite);\n\t\t },\n\t\t hasFocus: function() { return this.display.input.getField() == activeElt(doc(this)) },\n\t\t isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n\t\t scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n\t\t getScrollInfo: function() {\n\t\t var scroller = this.display.scroller;\n\t\t return {left: scroller.scrollLeft, top: scroller.scrollTop,\n\t\t height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n\t\t width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n\t\t clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n\t\t },\n\n\t\t scrollIntoView: methodOp(function(range, margin) {\n\t\t if (range == null) {\n\t\t range = {from: this.doc.sel.primary().head, to: null};\n\t\t if (margin == null) { margin = this.options.cursorScrollMargin; }\n\t\t } else if (typeof range == \"number\") {\n\t\t range = {from: Pos(range, 0), to: null};\n\t\t } else if (range.from == null) {\n\t\t range = {from: range, to: null};\n\t\t }\n\t\t if (!range.to) { range.to = range.from; }\n\t\t range.margin = margin || 0;\n\n\t\t if (range.from.line != null) {\n\t\t scrollToRange(this, range);\n\t\t } else {\n\t\t scrollToCoordsRange(this, range.from, range.to, range.margin);\n\t\t }\n\t\t }),\n\n\t\t setSize: methodOp(function(width, height) {\n\t\t var this$1$1 = this;\n\n\t\t var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n\t\t if (width != null) { this.display.wrapper.style.width = interpret(width); }\n\t\t if (height != null) { this.display.wrapper.style.height = interpret(height); }\n\t\t if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n\t\t var lineNo = this.display.viewFrom;\n\t\t this.doc.iter(lineNo, this.display.viewTo, function (line) {\n\t\t if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n\t\t { if (line.widgets[i].noHScroll) { regLineChange(this$1$1, lineNo, \"widget\"); break } } }\n\t\t ++lineNo;\n\t\t });\n\t\t this.curOp.forceUpdate = true;\n\t\t signal(this, \"refresh\", this);\n\t\t }),\n\n\t\t operation: function(f){return runInOp(this, f)},\n\t\t startOperation: function(){return startOperation(this)},\n\t\t endOperation: function(){return endOperation(this)},\n\n\t\t refresh: methodOp(function() {\n\t\t var oldHeight = this.display.cachedTextHeight;\n\t\t regChange(this);\n\t\t this.curOp.forceUpdate = true;\n\t\t clearCaches(this);\n\t\t scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n\t\t updateGutterSpace(this.display);\n\t\t if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n\t\t { estimateLineHeights(this); }\n\t\t signal(this, \"refresh\", this);\n\t\t }),\n\n\t\t swapDoc: methodOp(function(doc) {\n\t\t var old = this.doc;\n\t\t old.cm = null;\n\t\t // Cancel the current text selection if any (#5821)\n\t\t if (this.state.selectingText) { this.state.selectingText(); }\n\t\t attachDoc(this, doc);\n\t\t clearCaches(this);\n\t\t this.display.input.reset();\n\t\t scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n\t\t this.curOp.forceScroll = true;\n\t\t signalLater(this, \"swapDoc\", this, old);\n\t\t return old\n\t\t }),\n\n\t\t phrase: function(phraseText) {\n\t\t var phrases = this.options.phrases;\n\t\t return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n\t\t },\n\n\t\t getInputField: function(){return this.display.input.getField()},\n\t\t getWrapperElement: function(){return this.display.wrapper},\n\t\t getScrollerElement: function(){return this.display.scroller},\n\t\t getGutterElement: function(){return this.display.gutters}\n\t\t };\n\t\t eventMixin(CodeMirror);\n\n\t\t CodeMirror.registerHelper = function(type, name, value) {\n\t\t if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n\t\t helpers[type][name] = value;\n\t\t };\n\t\t CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n\t\t CodeMirror.registerHelper(type, name, value);\n\t\t helpers[type]._global.push({pred: predicate, val: value});\n\t\t };\n\t\t }", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers\n\n var helpers = CodeMirror.helpers = {}\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus()},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option]\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old) }\n signal(this, \"optionChange\", this, option)\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map))\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1)\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec)\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; })\n this.state.modeGen++\n regChange(this)\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1)\n this$1.state.modeGen++\n regChange(this$1)\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\" }\n else { dir = dir ? \"add\" : \"subtract\" }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive) }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i]\n if (!range.empty()) {\n var from = range.from(), to = range.to()\n var start = Math.max(end, from.line)\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how) }\n var newRanges = this$1.doc.sel.ranges\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll) }\n } else if (range.head.line > end) {\n indentLine(this$1, range.head.line, how, true)\n end = range.head.line\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1) }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos)\n var styles = getLineStyles(this, getLine(this.doc, pos.line))\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch\n var type\n if (ch == 0) { type = styles[2] }\n else { for (;;) {\n var mid = (before + after) >> 1\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1 }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = []\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos)\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]) }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]]\n if (val) { found.push(val) }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType])\n } else if (help[mode.name]) {\n found.push(help[mode.name])\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1]\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val) }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line)\n return getStateBefore(this, line + 1, precise)\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary()\n if (start == null) { pos = range.head }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start) }\n else { pos = start ? range.from() : range.to() }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\")\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1\n if (line < this.doc.first) { line = this.doc.first }\n else if (line > last) { line = last; end = true }\n lineObj = getLine(this.doc, line)\n } else {\n lineObj = line\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display\n pos = cursorCoords(this, clipPos(this.doc, pos))\n var top = pos.bottom, left = pos.left\n node.style.position = \"absolute\"\n node.setAttribute(\"cm-ignore-events\", \"true\")\n this.display.input.setUneditable(node)\n display.sizer.appendChild(node)\n if (vert == \"over\") {\n top = pos.top\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth)\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth }\n }\n node.style.top = top + \"px\"\n node.style.left = node.style.right = \"\"\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth\n node.style.right = \"0px\"\n } else {\n if (horiz == \"left\") { left = 0 }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2 }\n node.style.left = left + \"px\"\n }\n if (scroll)\n { scrollIntoView(this, left, top, left + node.offsetWidth, top + node.offsetHeight) }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text) }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move)\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\") }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false)\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }) }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\")\n if (x == null) { x = coords.left }\n else { coords.left = x }\n cur = findPosV(this$1, coords, dir, unit)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = []\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected()\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\")\n if (range.goalColumn != null) { headPos.left = range.goalColumn }\n goals.push(headPos.left)\n var pos = findPosV(this$1, headPos, dir, unit)\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollPos(this$1, null, charCoords(this$1, pos, \"div\").top - headPos.top) }\n return pos\n }, sel_move)\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i] } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text\n var start = pos.ch, end = pos.ch\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\")\n if ((pos.xRel < 0 || end == line.length) && start) { --start; } else { ++end }\n var startChar = line.charAt(start)\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); }\n while (start > 0 && check(line.charAt(start - 1))) { --start }\n while (end < line.length && check(line.charAt(end))) { ++end }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite)\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function(x, y) {\n if (x != null || y != null) { resolveScrollToPos(this) }\n if (x != null) { this.curOp.scrollLeft = x }\n if (y != null) { this.curOp.scrollTop = y }\n }),\n getScrollInfo: function() {\n var scroller = this.display.scroller\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null}\n if (margin == null) { margin = this.options.cursorScrollMargin }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null}\n } else if (range.from == null) {\n range = {from: range, to: null}\n }\n if (!range.to) { range.to = range.from }\n range.margin = margin || 0\n\n if (range.from.line != null) {\n resolveScrollToPos(this)\n this.curOp.scrollToPos = range\n } else {\n var sPos = calculateScrollPos(this, Math.min(range.from.left, range.to.left),\n Math.min(range.from.top, range.to.top) - range.margin,\n Math.max(range.from.right, range.to.right),\n Math.max(range.from.bottom, range.to.bottom) + range.margin)\n this.scrollTo(sPos.scrollLeft, sPos.scrollTop)\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; }\n if (width != null) { this.display.wrapper.style.width = interpret(width) }\n if (height != null) { this.display.wrapper.style.height = interpret(height) }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this) }\n var lineNo = this.display.viewFrom\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo\n })\n this.curOp.forceUpdate = true\n signal(this, \"refresh\", this)\n }),\n\n operation: function(f){return runInOp(this, f)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight\n regChange(this)\n this.curOp.forceUpdate = true\n clearCaches(this)\n this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop)\n updateGutterSpace(this)\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this) }\n signal(this, \"refresh\", this)\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc\n old.cm = null\n attachDoc(this, doc)\n clearCaches(this)\n this.display.input.reset()\n this.scrollTo(doc.scrollLeft, doc.scrollTop)\n this.curOp.forceScroll = true\n signalLater(this, \"swapDoc\", this, old)\n return old\n }),\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n }\n eventMixin(CodeMirror)\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []} }\n helpers[type][name] = value\n }\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value)\n helpers[type]._global.push({pred: predicate, val: value})\n }\n}", "function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers\n\n var helpers = CodeMirror.helpers = {}\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus()},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option]\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old) }\n signal(this, \"optionChange\", this, option)\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map))\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1)\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec)\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; })\n this.state.modeGen++\n regChange(this)\n }),\n removeOverlay: methodOp(function(spec) {\n var this$1 = this;\n\n var overlays = this.state.overlays\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1)\n this$1.state.modeGen++\n regChange(this$1)\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\" }\n else { dir = dir ? \"add\" : \"subtract\" }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive) }\n }),\n indentSelection: methodOp(function(how) {\n var this$1 = this;\n\n var ranges = this.doc.sel.ranges, end = -1\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i]\n if (!range.empty()) {\n var from = range.from(), to = range.to()\n var start = Math.max(end, from.line)\n end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1\n for (var j = start; j < end; ++j)\n { indentLine(this$1, j, how) }\n var newRanges = this$1.doc.sel.ranges\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll) }\n } else if (range.head.line > end) {\n indentLine(this$1, range.head.line, how, true)\n end = range.head.line\n if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1) }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos)\n var styles = getLineStyles(this, getLine(this.doc, pos.line))\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch\n var type\n if (ch == 0) { type = styles[2] }\n else { for (;;) {\n var mid = (before + after) >> 1\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1 }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var this$1 = this;\n\n var found = []\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos)\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]) }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]]\n if (val) { found.push(val) }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType])\n } else if (help[mode.name]) {\n found.push(help[mode.name])\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1]\n if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n { found.push(cur.val) }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line)\n return getStateBefore(this, line + 1, precise)\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary()\n if (start == null) { pos = range.head }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start) }\n else { pos = start ? range.from() : range.to() }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\")\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1\n if (line < this.doc.first) { line = this.doc.first }\n else if (line > last) { line = last; end = true }\n lineObj = getLine(this.doc, line)\n } else {\n lineObj = line\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display\n pos = cursorCoords(this, clipPos(this.doc, pos))\n var top = pos.bottom, left = pos.left\n node.style.position = \"absolute\"\n node.setAttribute(\"cm-ignore-events\", \"true\")\n this.display.input.setUneditable(node)\n display.sizer.appendChild(node)\n if (vert == \"over\") {\n top = pos.top\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth)\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth }\n }\n node.style.top = top + \"px\"\n node.style.left = node.style.right = \"\"\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth\n node.style.right = \"0px\"\n } else {\n if (horiz == \"left\") { left = 0 }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2 }\n node.style.left = left + \"px\"\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}) }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text) }),\n\n findPosH: function(from, amount, unit, visually) {\n var this$1 = this;\n\n var dir = 1\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this$1.doc, cur, dir, unit, visually)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move)\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\") }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false)\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }) }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var this$1 = this;\n\n var dir = 1, x = goalColumn\n if (amount < 0) { dir = -1; amount = -amount }\n var cur = clipPos(this.doc, from)\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this$1, cur, \"div\")\n if (x == null) { x = coords.left }\n else { coords.left = x }\n cur = findPosV(this$1, coords, dir, unit)\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = []\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected()\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\")\n if (range.goalColumn != null) { headPos.left = range.goalColumn }\n goals.push(headPos.left)\n var pos = findPosV(this$1, headPos, dir, unit)\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollPos(this$1, null, charCoords(this$1, pos, \"div\").top - headPos.top) }\n return pos\n }, sel_move)\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i] } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text\n var start = pos.ch, end = pos.ch\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\")\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end }\n var startChar = line.charAt(start)\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); }\n while (start > 0 && check(line.charAt(start - 1))) { --start }\n while (end < line.length && check(line.charAt(end))) { ++end }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\") }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite)\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function(x, y) {\n if (x != null || y != null) { resolveScrollToPos(this) }\n if (x != null) { this.curOp.scrollLeft = x }\n if (y != null) { this.curOp.scrollTop = y }\n }),\n getScrollInfo: function() {\n var scroller = this.display.scroller\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null}\n if (margin == null) { margin = this.options.cursorScrollMargin }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null}\n } else if (range.from == null) {\n range = {from: range, to: null}\n }\n if (!range.to) { range.to = range.from }\n range.margin = margin || 0\n\n if (range.from.line != null) {\n resolveScrollToPos(this)\n this.curOp.scrollToPos = range\n } else {\n var sPos = calculateScrollPos(this, {\n left: Math.min(range.from.left, range.to.left),\n top: Math.min(range.from.top, range.to.top) - range.margin,\n right: Math.max(range.from.right, range.to.right),\n bottom: Math.max(range.from.bottom, range.to.bottom) + range.margin\n })\n this.scrollTo(sPos.scrollLeft, sPos.scrollTop)\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; }\n if (width != null) { this.display.wrapper.style.width = interpret(width) }\n if (height != null) { this.display.wrapper.style.height = interpret(height) }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this) }\n var lineNo = this.display.viewFrom\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo\n })\n this.curOp.forceUpdate = true\n signal(this, \"refresh\", this)\n }),\n\n operation: function(f){return runInOp(this, f)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight\n regChange(this)\n this.curOp.forceUpdate = true\n clearCaches(this)\n this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop)\n updateGutterSpace(this)\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n { estimateLineHeights(this) }\n signal(this, \"refresh\", this)\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc\n old.cm = null\n attachDoc(this, doc)\n clearCaches(this)\n this.display.input.reset()\n this.scrollTo(doc.scrollLeft, doc.scrollTop)\n this.curOp.forceScroll = true\n signalLater(this, \"swapDoc\", this, old)\n return old\n }),\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n }\n eventMixin(CodeMirror)\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []} }\n helpers[type][name] = value\n }\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value)\n helpers[type]._global.push({pred: predicate, val: value})\n }\n}", "function methodOp(f) {\n\t\t return function() {\n\t\t if (this.curOp) return f.apply(this, arguments);\n\t\t startOperation(this);\n\t\t try { return f.apply(this, arguments); }\n\t\t finally { endOperation(this); }\n\t\t };\n\t\t }", "function methodOp(f) {\n\t return function() {\n\t if (this.curOp) return f.apply(this, arguments);\n\t startOperation(this);\n\t try { return f.apply(this, arguments); }\n\t finally { endOperation(this); }\n\t };\n\t }", "function methodOp(f) {\n\t return function() {\n\t if (this.curOp) return f.apply(this, arguments);\n\t startOperation(this);\n\t try { return f.apply(this, arguments); }\n\t finally { endOperation(this); }\n\t };\n\t }", "function methodOp(f) {\n\t return function() {\n\t if (this.curOp) return f.apply(this, arguments);\n\t startOperation(this);\n\t try { return f.apply(this, arguments); }\n\t finally { endOperation(this); }\n\t };\n\t }", "function methodOp(f) {\n\t\t return function() {\n\t\t if (this.curOp) { return f.apply(this, arguments) }\n\t\t startOperation(this);\n\t\t try { return f.apply(this, arguments) }\n\t\t finally { endOperation(this); }\n\t\t }\n\t\t }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\r\n return function() {\r\n if (this.curOp) return f.apply(this, arguments);\r\n startOperation(this);\r\n try { return f.apply(this, arguments); }\r\n finally { endOperation(this); }\r\n };\r\n }", "function methodOp(f) {\r\n return function() {\r\n if (this.curOp) { return f.apply(this, arguments) }\r\n startOperation(this);\r\n try { return f.apply(this, arguments) }\r\n finally { endOperation(this); }\r\n }\r\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this)\n try { return f.apply(this, arguments) }\n finally { endOperation(this) }\n }\n}", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this)\n try { return f.apply(this, arguments) }\n finally { endOperation(this) }\n }\n}", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null // Unfinished key sequence\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null // Unfinished key sequence\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) options.finishInit(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) {\n return new CodeMirror(place, options);\n }\n\n this.options = options = options ? copyObj(options) : {}; // Determine effective options based on given values and defaults.\n\n copyObj(defaults, options, false);\n var doc = options.value;\n\n if (typeof doc == \"string\") {\n doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction);\n } else if (options.mode) {\n doc.modeOption = options.mode;\n }\n\n this.doc = doc;\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n\n if (options.lineWrapping) {\n this.display.wrapper.className += \" CodeMirror-wrap\";\n }\n\n initScrollbars(this);\n this.state = {\n keyMaps: [],\n // stores maps added by addKeyMap\n overlays: [],\n // highlighting overlays, as added by addOverlay\n modeGen: 0,\n // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false,\n // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1,\n cutIncoming: -1,\n // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(),\n // stores highlight worker timeout\n keySeq: null,\n // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) {\n display.input.focus();\n } // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n\n\n if (ie && ie_version < 11) {\n setTimeout(function () {\n return this$1.display.input.reset(true);\n }, 20);\n }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n _startOperation(this);\n\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if (options.autofocus && !mobile || this.hasFocus()) {\n setTimeout(bind(onFocus, this), 20);\n } else {\n onBlur(this);\n }\n\n for (var opt in optionHandlers) {\n if (optionHandlers.hasOwnProperty(opt)) {\n optionHandlers[opt](this, options[opt], Init);\n }\n }\n\n maybeUpdateLineNumberWidth(this);\n\n if (options.finishInit) {\n options.finishInit(this);\n }\n\n for (var i = 0; i < initHooks.length; ++i) {\n initHooks[i](this);\n }\n\n _endOperation(this); // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n\n\n if (webkit && options.lineWrapping && getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\") {\n display.lineDiv.style.textRendering = \"auto\";\n }\n } // The default configuration options.", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null // Unfinished key sequence\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) display.input.focus();\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n var cm = this;\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || cm.hasFocus())\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) options.finishInit(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options || {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed() // stores highlight worker timeout\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n var cm = this;\n runInOp(this, function() {\n cm.curOp.forceUpdate = true;\n attachDoc(cm, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, cm), 20);\n else\n onBlur(cm);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](cm, options[opt], Init);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\n });\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options || {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed() // stores highlight worker timeout\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n var cm = this;\n runInOp(this, function() {\n cm.curOp.forceUpdate = true;\n attachDoc(cm, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, cm), 20);\n else\n onBlur(cm);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](cm, options[opt], Init);\n maybeUpdateLineNumberWidth(cm);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\n });\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options || {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\n this.doc = doc;\n\n var display = this.display = new Display(place, doc);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) focusInput(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false, focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\n draggingText: false,\n highlight: new Delayed() // stores highlight worker timeout\n };\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n var cm = this;\n runInOp(this, function() {\n cm.curOp.forceUpdate = true;\n attachDoc(cm, doc);\n\n if ((options.autofocus && !mobile) || activeElt() == display.input)\n setTimeout(bind(onFocus, cm), 20);\n else\n onBlur(cm);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](cm, options[opt], Init);\n maybeUpdateLineNumberWidth(cm);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\n });\n }", "function CodeMirror(place, options) {\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n this.display.wrapper.className += \" CodeMirror-wrap\";\n if (options.autofocus && !mobile) display.input.focus();\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n var cm = this;\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || cm.hasFocus())\n setTimeout(bind(onFocus, this), 20);\n else\n onBlur(this);\n\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n optionHandlers[opt](this, options[opt], Init);\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) options.finishInit(this);\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n display.lineDiv.style.textRendering = \"auto\";\n }", "function CodeMirror(place, options) {\r\n if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\r\n\r\n this.options = options = options || {};\r\n // Determine effective options based on given values and defaults.\r\n copyObj(defaults, options, false);\r\n setGuttersForLineNumbers(options);\r\n\r\n var doc = options.value;\r\n if (typeof doc == \"string\") doc = new Doc(doc, options.mode);\r\n this.doc = doc;\r\n\r\n var display = this.display = new Display(place, doc);\r\n display.wrapper.CodeMirror = this;\r\n updateGutters(this);\r\n themeChanged(this);\r\n if (options.lineWrapping)\r\n this.display.wrapper.className += \" CodeMirror-wrap\";\r\n if (options.autofocus && !mobile) focusInput(this);\r\n\r\n this.state = {\r\n keyMaps: [], // stores maps added by addKeyMap\r\n overlays: [], // highlighting overlays, as added by addOverlay\r\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\r\n overwrite: false, focused: false,\r\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\r\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in readInput\r\n draggingText: false,\r\n highlight: new Delayed() // stores highlight worker timeout\r\n };\r\n\r\n // Override magic textarea content restore that IE sometimes does\r\n // on our hidden textarea on reload\r\n if (ie && ie_version < 11) setTimeout(bind(resetInput, this, true), 20);\r\n\r\n registerEventHandlers(this);\r\n ensureGlobalHandlers();\r\n\r\n var cm = this;\r\n runInOp(this, function() {\r\n cm.curOp.forceUpdate = true;\r\n attachDoc(cm, doc);\r\n\r\n if ((options.autofocus && !mobile) || activeElt() == display.input)\r\n setTimeout(bind(onFocus, cm), 20);\r\n else\r\n onBlur(cm);\r\n\r\n for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\r\n optionHandlers[opt](cm, options[opt], Init);\r\n maybeUpdateLineNumberWidth(cm);\r\n for (var i = 0; i < initHooks.length; ++i) initHooks[i](cm);\r\n });\r\n }", "function CodeMirror(place, options) {\n\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n\t this.options = options = options ? copyObj(options) : {};\n\t // Determine effective options based on given values and defaults.\n\t copyObj(defaults, options, false);\n\t setGuttersForLineNumbers(options);\n\n\t var doc = options.value;\n\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t this.doc = doc;\n\n\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t var display = this.display = new Display(place, doc, input);\n\t display.wrapper.CodeMirror = this;\n\t updateGutters(this);\n\t themeChanged(this);\n\t if (options.lineWrapping)\n\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t if (options.autofocus && !mobile) display.input.focus();\n\t initScrollbars(this);\n\n\t this.state = {\n\t keyMaps: [], // stores maps added by addKeyMap\n\t overlays: [], // highlighting overlays, as added by addOverlay\n\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t overwrite: false,\n\t delayingBlurEvent: false,\n\t focused: false,\n\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t selectingText: false,\n\t draggingText: false,\n\t highlight: new Delayed(), // stores highlight worker timeout\n\t keySeq: null, // Unfinished key sequence\n\t specialChars: null\n\t };\n\n\t var cm = this;\n\n\t // Override magic textarea content restore that IE sometimes does\n\t // on our hidden textarea on reload\n\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n\t registerEventHandlers(this);\n\t ensureGlobalHandlers();\n\n\t startOperation(this);\n\t this.curOp.forceUpdate = true;\n\t attachDoc(this, doc);\n\n\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t setTimeout(bind(onFocus, this), 20);\n\t else\n\t onBlur(this);\n\n\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t optionHandlers[opt](this, options[opt], Init);\n\t maybeUpdateLineNumberWidth(this);\n\t if (options.finishInit) options.finishInit(this);\n\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t endOperation(this);\n\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t // measuring on line wrapping boundaries.\n\t if (webkit && options.lineWrapping &&\n\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t display.lineDiv.style.textRendering = \"auto\";\n\t }", "function CodeMirror(place, options) {\n\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\n\t this.options = options = options ? copyObj(options) : {};\n\t // Determine effective options based on given values and defaults.\n\t copyObj(defaults, options, false);\n\t setGuttersForLineNumbers(options);\n\n\t var doc = options.value;\n\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t this.doc = doc;\n\n\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t var display = this.display = new Display(place, doc, input);\n\t display.wrapper.CodeMirror = this;\n\t updateGutters(this);\n\t themeChanged(this);\n\t if (options.lineWrapping)\n\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t if (options.autofocus && !mobile) display.input.focus();\n\t initScrollbars(this);\n\n\t this.state = {\n\t keyMaps: [], // stores maps added by addKeyMap\n\t overlays: [], // highlighting overlays, as added by addOverlay\n\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t overwrite: false,\n\t delayingBlurEvent: false,\n\t focused: false,\n\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t selectingText: false,\n\t draggingText: false,\n\t highlight: new Delayed(), // stores highlight worker timeout\n\t keySeq: null, // Unfinished key sequence\n\t specialChars: null\n\t };\n\n\t var cm = this;\n\n\t // Override magic textarea content restore that IE sometimes does\n\t // on our hidden textarea on reload\n\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\n\t registerEventHandlers(this);\n\t ensureGlobalHandlers();\n\n\t startOperation(this);\n\t this.curOp.forceUpdate = true;\n\t attachDoc(this, doc);\n\n\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t setTimeout(bind(onFocus, this), 20);\n\t else\n\t onBlur(this);\n\n\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t optionHandlers[opt](this, options[opt], Init);\n\t maybeUpdateLineNumberWidth(this);\n\t if (options.finishInit) options.finishInit(this);\n\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t endOperation(this);\n\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t // measuring on line wrapping boundaries.\n\t if (webkit && options.lineWrapping &&\n\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t display.lineDiv.style.textRendering = \"auto\";\n\t }", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror$1(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n}", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n\t\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\t\t\n\t\t this.options = options = options ? copyObj(options) : {};\n\t\t // Determine effective options based on given values and defaults.\n\t\t copyObj(defaults, options, false);\n\t\t setGuttersForLineNumbers(options);\n\t\t\n\t\t var doc = options.value;\n\t\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t\t this.doc = doc;\n\t\t\n\t\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t\t var display = this.display = new Display(place, doc, input);\n\t\t display.wrapper.CodeMirror = this;\n\t\t updateGutters(this);\n\t\t themeChanged(this);\n\t\t if (options.lineWrapping)\n\t\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t\t if (options.autofocus && !mobile) display.input.focus();\n\t\t initScrollbars(this);\n\t\t\n\t\t this.state = {\n\t\t keyMaps: [], // stores maps added by addKeyMap\n\t\t overlays: [], // highlighting overlays, as added by addOverlay\n\t\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t\t overwrite: false,\n\t\t delayingBlurEvent: false,\n\t\t focused: false,\n\t\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t\t selectingText: false,\n\t\t draggingText: false,\n\t\t highlight: new Delayed(), // stores highlight worker timeout\n\t\t keySeq: null, // Unfinished key sequence\n\t\t specialChars: null\n\t\t };\n\t\t\n\t\t var cm = this;\n\t\t\n\t\t // Override magic textarea content restore that IE sometimes does\n\t\t // on our hidden textarea on reload\n\t\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\t\t\n\t\t registerEventHandlers(this);\n\t\t ensureGlobalHandlers();\n\t\t\n\t\t startOperation(this);\n\t\t this.curOp.forceUpdate = true;\n\t\t attachDoc(this, doc);\n\t\t\n\t\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t\t setTimeout(bind(onFocus, this), 20);\n\t\t else\n\t\t onBlur(this);\n\t\t\n\t\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t\t optionHandlers[opt](this, options[opt], Init);\n\t\t maybeUpdateLineNumberWidth(this);\n\t\t if (options.finishInit) options.finishInit(this);\n\t\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t\t endOperation(this);\n\t\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t\t // measuring on line wrapping boundaries.\n\t\t if (webkit && options.lineWrapping &&\n\t\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t\t display.lineDiv.style.textRendering = \"auto\";\n\t\t }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n setGuttersForLineNumbers(options);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input);\n display.wrapper.CodeMirror = this;\n updateGutters(this);\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(bind(onFocus, this), 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this$1, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }", "function CodeMirror(place, options) {\n\t if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);\n\t\n\t this.options = options = options ? copyObj(options) : {};\n\t // Determine effective options based on given values and defaults.\n\t copyObj(defaults, options, false);\n\t setGuttersForLineNumbers(options);\n\t\n\t var doc = options.value;\n\t if (typeof doc == \"string\") doc = new Doc(doc, options.mode, null, options.lineSeparator);\n\t this.doc = doc;\n\t\n\t var input = new CodeMirror.inputStyles[options.inputStyle](this);\n\t var display = this.display = new Display(place, doc, input);\n\t display.wrapper.CodeMirror = this;\n\t updateGutters(this);\n\t themeChanged(this);\n\t if (options.lineWrapping)\n\t this.display.wrapper.className += \" CodeMirror-wrap\";\n\t if (options.autofocus && !mobile) display.input.focus();\n\t initScrollbars(this);\n\t\n\t this.state = {\n\t keyMaps: [], // stores maps added by addKeyMap\n\t overlays: [], // highlighting overlays, as added by addOverlay\n\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t overwrite: false,\n\t delayingBlurEvent: false,\n\t focused: false,\n\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t selectingText: false,\n\t draggingText: false,\n\t highlight: new Delayed(), // stores highlight worker timeout\n\t keySeq: null, // Unfinished key sequence\n\t specialChars: null\n\t };\n\t\n\t var cm = this;\n\t\n\t // Override magic textarea content restore that IE sometimes does\n\t // on our hidden textarea on reload\n\t if (ie && ie_version < 11) setTimeout(function() { cm.display.input.reset(true); }, 20);\n\t\n\t registerEventHandlers(this);\n\t ensureGlobalHandlers();\n\t\n\t startOperation(this);\n\t this.curOp.forceUpdate = true;\n\t attachDoc(this, doc);\n\t\n\t if ((options.autofocus && !mobile) || cm.hasFocus())\n\t setTimeout(bind(onFocus, this), 20);\n\t else\n\t onBlur(this);\n\t\n\t for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))\n\t optionHandlers[opt](this, options[opt], Init);\n\t maybeUpdateLineNumberWidth(this);\n\t if (options.finishInit) options.finishInit(this);\n\t for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);\n\t endOperation(this);\n\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t // measuring on line wrapping boundaries.\n\t if (webkit && options.lineWrapping &&\n\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t display.lineDiv.style.textRendering = \"auto\";\n\t }", "function CodeMirror$1(place, options) {\r\n var this$1 = this;\r\n\r\n if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\r\n\r\n this.options = options = options ? copyObj(options) : {};\r\n // Determine effective options based on given values and defaults.\r\n copyObj(defaults, options, false);\r\n setGuttersForLineNumbers(options);\r\n\r\n var doc = options.value;\r\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\r\n this.doc = doc;\r\n\r\n var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\r\n var display = this.display = new Display(place, doc, input);\r\n display.wrapper.CodeMirror = this;\r\n updateGutters(this);\r\n themeChanged(this);\r\n if (options.lineWrapping)\r\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\r\n initScrollbars(this);\r\n\r\n this.state = {\r\n keyMaps: [], // stores maps added by addKeyMap\r\n overlays: [], // highlighting overlays, as added by addOverlay\r\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\r\n overwrite: false,\r\n delayingBlurEvent: false,\r\n focused: false,\r\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\r\n pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\r\n selectingText: false,\r\n draggingText: false,\r\n highlight: new Delayed(), // stores highlight worker timeout\r\n keySeq: null, // Unfinished key sequence\r\n specialChars: null\r\n };\r\n\r\n if (options.autofocus && !mobile) { display.input.focus(); }\r\n\r\n // Override magic textarea content restore that IE sometimes does\r\n // on our hidden textarea on reload\r\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\r\n\r\n registerEventHandlers(this);\r\n ensureGlobalHandlers();\r\n\r\n startOperation(this);\r\n this.curOp.forceUpdate = true;\r\n attachDoc(this, doc);\r\n\r\n if ((options.autofocus && !mobile) || this.hasFocus())\r\n { setTimeout(bind(onFocus, this), 20); }\r\n else\r\n { onBlur(this); }\r\n\r\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\r\n { optionHandlers[opt](this$1, options[opt], Init); } }\r\n maybeUpdateLineNumberWidth(this);\r\n if (options.finishInit) { options.finishInit(this); }\r\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\r\n endOperation(this);\r\n // Suppress optimizelegibility in Webkit, since it breaks text\r\n // measuring on line wrapping boundaries.\r\n if (webkit && options.lineWrapping &&\r\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\r\n { display.lineDiv.style.textRendering = \"auto\"; }\r\n}" ]
[ "0.66755027", "0.66755027", "0.66755027", "0.66755027", "0.66755027", "0.66755027", "0.66755027", "0.66755027", "0.66755027", "0.6658413", "0.6635639", "0.6635639", "0.66199344", "0.6608263", "0.6597126", "0.6597126", "0.615284", "0.61331004", "0.61331004", "0.61331004", "0.6109916", "0.60276324", "0.60276324", "0.60276324", "0.60276324", "0.60276324", "0.60276324", "0.60276324", "0.60276324", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.5965072", "0.59526724", "0.5871152", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5861958", "0.5838999", "0.5838999", "0.5744023", "0.57228607", "0.56973016", "0.5686277", "0.56649196", "0.5635664", "0.5630757", "0.5630757", "0.5628661", "0.56163937", "0.55529404", "0.55529404", "0.55461013", "0.55461013", "0.55461013", "0.55422693", "0.55422693", "0.55422693", "0.55422693", "0.55422693", "0.55422693", "0.55422693", "0.5532547", "0.55211455", "0.5520869", "0.5520869", "0.5520869", "0.5515548", "0.5515548", "0.5515548", "0.5515548", "0.5515548", "0.5515548", "0.55146897", "0.5472543" ]
0.66199344
16
Used for horizontal relative motion. Dir is 1 or 1 (left or right), unit can be "char", "column" (like char, but doesn't cross line boundaries), "word" (across next word), or "group" (to the start of next group of word or nonwordnonwhitespace chars). The visually param controls whether, in righttoleft text, direction 1 means to move towards the next index in the string, or towards the character to the right of the current position. The resulting position will have a hitSide=true property if it reached the end of the document.
function findPosH(doc, pos, dir, unit, visually) { var oldPos = pos; var origDir = dir; var lineObj = getLine(doc, pos.line); var lineDir = visually && doc.direction == "rtl" ? -dir : dir; function findNextLine() { var l = pos.line + lineDir; if (l < doc.first || l >= doc.first + doc.size) { return false } pos = new Pos(l, pos.ch, pos.sticky); return lineObj = getLine(doc, l) } function moveOnce(boundToLine) { var next; if (visually) { next = moveVisually(doc.cm, lineObj, pos, dir); } else { next = moveLogically(lineObj, pos, dir); } if (next == null) { if (!boundToLine && findNextLine()) { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); } else { return false } } else { pos = next; } return true } if (unit == "char") { moveOnce(); } else if (unit == "column") { moveOnce(true); } else if (unit == "word" || unit == "group") { var sawType = null, group = unit == "group"; var helper = doc.cm && doc.cm.getHelper(pos, "wordChars"); for (var first = true;; first = false) { if (dir < 0 && !moveOnce(!first)) { break } var cur = lineObj.text.charAt(pos.ch) || "\n"; var type = isWordChar(cur, helper) ? "w" : group && cur == "\n" ? "n" : !group || /\s/.test(cur) ? null : "p"; if (group && !first && !type) { type = "s"; } if (sawType && sawType != type) { if (dir < 0) {dir = 1; moveOnce(); pos.sticky = "after";} break } if (type) { sawType = type; } if (dir > 0 && !moveOnce(!first)) { break } } } var result = skipAtomic(doc, pos, oldPos, origDir, true); if (equalCursorPos(oldPos, result)) { result.hitSide = true; } return result }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findPosH(doc, pos, dir, unit, visually) {\r\n var line = pos.line, ch = pos.ch, origDir = dir;\r\n var lineObj = getLine(doc, line);\r\n var possible = true;\r\n function findNextLine() {\r\n var l = line + dir;\r\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\r\n line = l;\r\n return lineObj = getLine(doc, l);\r\n }\r\n function moveOnce(boundToLine) {\r\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\r\n if (next == null) {\r\n if (!boundToLine && findNextLine()) {\r\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\r\n else ch = dir < 0 ? lineObj.text.length : 0;\r\n } else return (possible = false);\r\n } else ch = next;\r\n return true;\r\n }\r\n\r\n if (unit == \"char\") moveOnce();\r\n else if (unit == \"column\") moveOnce(true);\r\n else if (unit == \"word\" || unit == \"group\") {\r\n var sawType = null, group = unit == \"group\";\r\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\r\n for (var first = true;; first = false) {\r\n if (dir < 0 && !moveOnce(!first)) break;\r\n var cur = lineObj.text.charAt(ch) || \"\\n\";\r\n var type = isWordChar(cur, helper) ? \"w\"\r\n : group && cur == \"\\n\" ? \"n\"\r\n : !group || /\\s/.test(cur) ? null\r\n : \"p\";\r\n if (group && !first && !type) type = \"s\";\r\n if (sawType && sawType != type) {\r\n if (dir < 0) {dir = 1; moveOnce();}\r\n break;\r\n }\r\n\r\n if (type) sawType = type;\r\n if (dir > 0 && !moveOnce(!first)) break;\r\n }\r\n }\r\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\r\n if (!possible) result.hitSide = true;\r\n return result;\r\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n\t\t var line = pos.line, ch = pos.ch, origDir = dir;\n\t\t var lineObj = getLine(doc, line);\n\t\t function findNextLine() {\n\t\t var l = line + dir;\n\t\t if (l < doc.first || l >= doc.first + doc.size) return false\n\t\t line = l;\n\t\t return lineObj = getLine(doc, l);\n\t\t }\n\t\t function moveOnce(boundToLine) {\n\t\t var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n\t\t if (next == null) {\n\t\t if (!boundToLine && findNextLine()) {\n\t\t if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n\t\t else ch = dir < 0 ? lineObj.text.length : 0;\n\t\t } else return false\n\t\t } else ch = next;\n\t\t return true;\n\t\t }\n\t\t\n\t\t if (unit == \"char\") {\n\t\t moveOnce()\n\t\t } else if (unit == \"column\") {\n\t\t moveOnce(true)\n\t\t } else if (unit == \"word\" || unit == \"group\") {\n\t\t var sawType = null, group = unit == \"group\";\n\t\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t\t for (var first = true;; first = false) {\n\t\t if (dir < 0 && !moveOnce(!first)) break;\n\t\t var cur = lineObj.text.charAt(ch) || \"\\n\";\n\t\t var type = isWordChar(cur, helper) ? \"w\"\n\t\t : group && cur == \"\\n\" ? \"n\"\n\t\t : !group || /\\s/.test(cur) ? null\n\t\t : \"p\";\n\t\t if (group && !first && !type) type = \"s\";\n\t\t if (sawType && sawType != type) {\n\t\t if (dir < 0) {dir = 1; moveOnce();}\n\t\t break;\n\t\t }\n\t\t\n\t\t if (type) sawType = type;\n\t\t if (dir > 0 && !moveOnce(!first)) break;\n\t\t }\n\t\t }\n\t\t var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n\t\t if (!cmp(pos, result)) result.hitSide = true;\n\t\t return result;\n\t\t }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return false\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return false\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") {\n moveOnce()\n } else if (unit == \"column\") {\n moveOnce(true)\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n if (!cmp(pos, result)) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir\n var lineObj = getLine(doc, line)\n function findNextLine() {\n var l = line + dir\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n line = l\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true)\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) { ch = (dir < 0 ? lineRight : lineLeft)(lineObj) }\n else { ch = dir < 0 ? lineObj.text.length : 0 }\n } else { return false }\n } else { ch = next }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce()\n } else if (unit == \"column\") {\n moveOnce(true)\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\"\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\")\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(ch) || \"\\n\"\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\"\n if (group && !first && !type) { type = \"s\" }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce()}\n break\n }\n\n if (type) { sawType = type }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true)\n if (!cmp(pos, result)) { result.hitSide = true }\n return result\n}", "function horizontalDirection(startX, startY, targetX, targetY, bufferService, applicationCursor) {\n let startRow;\n if (moveToRequestedRow(targetX, targetY, bufferService, applicationCursor).length > 0) {\n startRow = targetY - wrappedRowsForRow(bufferService, targetY);\n }\n else {\n startRow = startY;\n }\n if ((startX < targetX &&\n startRow <= targetY) || // down/right or same y/right\n (startX >= targetX &&\n startRow < targetY)) { // down/left or same y/left\n return \"C\" /* RIGHT */;\n }\n return \"D\" /* LEFT */;\n}", "function findPosH(doc, pos, dir, unit, visually) {\n\t var line = pos.line, ch = pos.ch, origDir = dir;\n\t var lineObj = getLine(doc, line);\n\t var possible = true;\n\t function findNextLine() {\n\t var l = line + dir;\n\t if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n\t line = l;\n\t return lineObj = getLine(doc, l);\n\t }\n\t function moveOnce(boundToLine) {\n\t var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n\t if (next == null) {\n\t if (!boundToLine && findNextLine()) {\n\t if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n\t else ch = dir < 0 ? lineObj.text.length : 0;\n\t } else return (possible = false);\n\t } else ch = next;\n\t return true;\n\t }\n\n\t if (unit == \"char\") moveOnce();\n\t else if (unit == \"column\") moveOnce(true);\n\t else if (unit == \"word\" || unit == \"group\") {\n\t var sawType = null, group = unit == \"group\";\n\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t for (var first = true;; first = false) {\n\t if (dir < 0 && !moveOnce(!first)) break;\n\t var cur = lineObj.text.charAt(ch) || \"\\n\";\n\t var type = isWordChar(cur, helper) ? \"w\"\n\t : group && cur == \"\\n\" ? \"n\"\n\t : !group || /\\s/.test(cur) ? null\n\t : \"p\";\n\t if (group && !first && !type) type = \"s\";\n\t if (sawType && sawType != type) {\n\t if (dir < 0) {dir = 1; moveOnce();}\n\t break;\n\t }\n\n\t if (type) sawType = type;\n\t if (dir > 0 && !moveOnce(!first)) break;\n\t }\n\t }\n\t var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n\t if (!possible) result.hitSide = true;\n\t return result;\n\t }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var moveOneUnit = byUnit ? function(pos, dir) {\n do pos += dir;\n while (pos > 0 && isExtendingChar.test(line.text.charAt(pos)));\n return pos;\n } : function(pos, dir) { return pos + dir; };\n var linedir = bidi[0].level;\n for (var i = 0; i < bidi.length; ++i) {\n var part = bidi[i], sticky = part.level % 2 == linedir;\n if ((part.from < start && part.to > start) ||\n (sticky && (part.from == start || part.to == start))) break;\n }\n var target = moveOneUnit(start, part.level % 2 ? -dir : dir);\n\n while (target != null) {\n if (part.level % 2 == linedir) {\n if (target < part.from || target > part.to) {\n part = bidi[i += dir];\n target = part && (dir > 0 == part.level % 2 ? moveOneUnit(part.to, -1) : moveOneUnit(part.from, 1));\n } else break;\n } else {\n if (target == bidiLeft(part)) {\n part = bidi[--i];\n target = part && bidiRight(part);\n } else if (target == bidiRight(part)) {\n part = bidi[++i];\n target = part && bidiLeft(part);\n } else break;\n }\n }\n\n return target < 0 || target > line.text.length ? null : target;\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var moveOneUnit = byUnit ? function(pos, dir) {\n do pos += dir;\n while (pos > 0 && isExtendingChar.test(line.text.charAt(pos)));\n return pos;\n } : function(pos, dir) { return pos + dir; };\n var linedir = bidi[0].level;\n for (var i = 0; i < bidi.length; ++i) {\n var part = bidi[i], sticky = part.level % 2 == linedir;\n if ((part.from < start && part.to > start) ||\n (sticky && (part.from == start || part.to == start))) break;\n }\n var target = moveOneUnit(start, part.level % 2 ? -dir : dir);\n\n while (target != null) {\n if (part.level % 2 == linedir) {\n if (target < part.from || target > part.to) {\n part = bidi[i += dir];\n target = part && (dir > 0 == part.level % 2 ? moveOneUnit(part.to, -1) : moveOneUnit(part.from, 1));\n } else break;\n } else {\n if (target == bidiLeft(part)) {\n part = bidi[--i];\n target = part && bidiRight(part);\n } else if (target == bidiRight(part)) {\n part = bidi[++i];\n target = part && bidiLeft(part);\n } else break;\n }\n }\n\n return target < 0 || target > line.text.length ? null : target;\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var moveOneUnit = byUnit ? function(pos, dir) {\n do pos += dir;\n while (pos > 0 && isExtendingChar.test(line.text.charAt(pos)));\n return pos;\n } : function(pos, dir) { return pos + dir; };\n var linedir = bidi[0].level;\n for (var i = 0; i < bidi.length; ++i) {\n var part = bidi[i], sticky = part.level % 2 == linedir;\n if ((part.from < start && part.to > start) ||\n (sticky && (part.from == start || part.to == start))) break;\n }\n var target = moveOneUnit(start, part.level % 2 ? -dir : dir);\n\n while (target != null) {\n if (part.level % 2 == linedir) {\n if (target < part.from || target > part.to) {\n part = bidi[i += dir];\n target = part && (dir > 0 == part.level % 2 ? moveOneUnit(part.to, -1) : moveOneUnit(part.from, 1));\n } else break;\n } else {\n if (target == bidiLeft(part)) {\n part = bidi[--i];\n target = part && bidiRight(part);\n } else if (target == bidiRight(part)) {\n part = bidi[++i];\n target = part && bidiLeft(part);\n } else break;\n }\n }\n\n return target < 0 || target > line.text.length ? null : target;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n\t var line = pos.line, ch = pos.ch, origDir = dir;\n\t var lineObj = getLine(doc, line);\n\t function findNextLine() {\n\t var l = line + dir;\n\t if (l < doc.first || l >= doc.first + doc.size) return false\n\t line = l;\n\t return lineObj = getLine(doc, l);\n\t }\n\t function moveOnce(boundToLine) {\n\t var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n\t if (next == null) {\n\t if (!boundToLine && findNextLine()) {\n\t if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n\t else ch = dir < 0 ? lineObj.text.length : 0;\n\t } else return false\n\t } else ch = next;\n\t return true;\n\t }\n\t\n\t if (unit == \"char\") {\n\t moveOnce()\n\t } else if (unit == \"column\") {\n\t moveOnce(true)\n\t } else if (unit == \"word\" || unit == \"group\") {\n\t var sawType = null, group = unit == \"group\";\n\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t for (var first = true;; first = false) {\n\t if (dir < 0 && !moveOnce(!first)) break;\n\t var cur = lineObj.text.charAt(ch) || \"\\n\";\n\t var type = isWordChar(cur, helper) ? \"w\"\n\t : group && cur == \"\\n\" ? \"n\"\n\t : !group || /\\s/.test(cur) ? null\n\t : \"p\";\n\t if (group && !first && !type) type = \"s\";\n\t if (sawType && sawType != type) {\n\t if (dir < 0) {dir = 1; moveOnce();}\n\t break;\n\t }\n\t\n\t if (type) sawType = type;\n\t if (dir > 0 && !moveOnce(!first)) break;\n\t }\n\t }\n\t var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n\t if (!cmp(pos, result)) result.hitSide = true;\n\t return result;\n\t }", "function findPosH(doc, pos, dir, unit, visually) {\n\t var line = pos.line, ch = pos.ch, origDir = dir;\n\t var lineObj = getLine(doc, line);\n\t function findNextLine() {\n\t var l = line + dir;\n\t if (l < doc.first || l >= doc.first + doc.size) return false\n\t line = l;\n\t return lineObj = getLine(doc, l);\n\t }\n\t function moveOnce(boundToLine) {\n\t var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n\t if (next == null) {\n\t if (!boundToLine && findNextLine()) {\n\t if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n\t else ch = dir < 0 ? lineObj.text.length : 0;\n\t } else return false\n\t } else ch = next;\n\t return true;\n\t }\n\n\t if (unit == \"char\") {\n\t moveOnce()\n\t } else if (unit == \"column\") {\n\t moveOnce(true)\n\t } else if (unit == \"word\" || unit == \"group\") {\n\t var sawType = null, group = unit == \"group\";\n\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t for (var first = true;; first = false) {\n\t if (dir < 0 && !moveOnce(!first)) break;\n\t var cur = lineObj.text.charAt(ch) || \"\\n\";\n\t var type = isWordChar(cur, helper) ? \"w\"\n\t : group && cur == \"\\n\" ? \"n\"\n\t : !group || /\\s/.test(cur) ? null\n\t : \"p\";\n\t if (group && !first && !type) type = \"s\";\n\t if (sawType && sawType != type) {\n\t if (dir < 0) {dir = 1; moveOnce();}\n\t break;\n\t }\n\n\t if (type) sawType = type;\n\t if (dir > 0 && !moveOnce(!first)) break;\n\t }\n\t }\n\t var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n\t if (!cmp(pos, result)) result.hitSide = true;\n\t return result;\n\t }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (unit > 0 ? 0 : -1));\n if (isNaN(ch)) { next = null; }\n else { next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (ch >= 0xD800 && ch < 0xDC00 ? 2 : 1))),\n -dir); }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\r\n var oldPos = pos;\r\n var origDir = dir;\r\n var lineObj = getLine(doc, pos.line);\r\n function findNextLine() {\r\n var l = pos.line + dir;\r\n if (l < doc.first || l >= doc.first + doc.size) { return false }\r\n pos = new Pos(l, pos.ch, pos.sticky);\r\n return lineObj = getLine(doc, l)\r\n }\r\n function moveOnce(boundToLine) {\r\n var next;\r\n if (visually) {\r\n next = moveVisually(doc.cm, lineObj, pos, dir);\r\n } else {\r\n next = moveLogically(lineObj, pos, dir);\r\n }\r\n if (next == null) {\r\n if (!boundToLine && findNextLine())\r\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\r\n else\r\n { return false }\r\n } else {\r\n pos = next;\r\n }\r\n return true\r\n }\r\n\r\n if (unit == \"char\") {\r\n moveOnce();\r\n } else if (unit == \"column\") {\r\n moveOnce(true);\r\n } else if (unit == \"word\" || unit == \"group\") {\r\n var sawType = null, group = unit == \"group\";\r\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\r\n for (var first = true;; first = false) {\r\n if (dir < 0 && !moveOnce(!first)) { break }\r\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\r\n var type = isWordChar(cur, helper) ? \"w\"\r\n : group && cur == \"\\n\" ? \"n\"\r\n : !group || /\\s/.test(cur) ? null\r\n : \"p\";\r\n if (group && !first && !type) { type = \"s\"; }\r\n if (sawType && sawType != type) {\r\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\r\n break\r\n }\r\n\r\n if (type) { sawType = type; }\r\n if (dir > 0 && !moveOnce(!first)) { break }\r\n }\r\n }\r\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\r\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\r\n return result\r\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function _findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n\n function findNextLine() {\n var l = pos.line + lineDir;\n\n if (l < doc.first || l >= doc.first + doc.size) {\n return false;\n }\n\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l);\n }\n\n function moveOnce(boundToLine) {\n var next;\n\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir);\n } else {\n return false;\n }\n } else {\n pos = next;\n }\n\n return true;\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null,\n group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) {\n break;\n }\n\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\" : group && cur == \"\\n\" ? \"n\" : !group || /\\s/.test(cur) ? null : \"p\";\n\n if (group && !first && !type) {\n type = \"s\";\n }\n\n if (sawType && sawType != type) {\n if (dir < 0) {\n dir = 1;\n moveOnce();\n pos.sticky = \"after\";\n }\n\n break;\n }\n\n if (type) {\n sawType = type;\n }\n\n if (dir > 0 && !moveOnce(!first)) {\n break;\n }\n }\n }\n\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n\n if (equalCursorPos(oldPos, result)) {\n result.hitSide = true;\n }\n\n return result;\n } // For relative vertical movement. Dir may be -1 or 1. Unit can be", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos\n var origDir = dir\n var lineObj = getLine(doc, pos.line)\n function findNextLine() {\n var l = pos.line + dir\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky)\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir)\n } else {\n next = moveLogically(lineObj, pos, dir)\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir) }\n else\n { return false }\n } else {\n pos = next\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce()\n } else if (unit == \"column\") {\n moveOnce(true)\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\"\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\")\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\"\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\"\n if (group && !first && !type) { type = \"s\" }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\"}\n break\n }\n\n if (type) { sawType = type }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true)\n if (equalCursorPos(oldPos, result)) { result.hitSide = true }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n\t\t var oldPos = pos;\n\t\t var origDir = dir;\n\t\t var lineObj = getLine(doc, pos.line);\n\t\t var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n\t\t function findNextLine() {\n\t\t var l = pos.line + lineDir;\n\t\t if (l < doc.first || l >= doc.first + doc.size) { return false }\n\t\t pos = new Pos(l, pos.ch, pos.sticky);\n\t\t return lineObj = getLine(doc, l)\n\t\t }\n\t\t function moveOnce(boundToLine) {\n\t\t var next;\n\t\t if (unit == \"codepoint\") {\n\t\t var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n\t\t if (isNaN(ch)) {\n\t\t next = null;\n\t\t } else {\n\t\t var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n\t\t next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n\t\t }\n\t\t } else if (visually) {\n\t\t next = moveVisually(doc.cm, lineObj, pos, dir);\n\t\t } else {\n\t\t next = moveLogically(lineObj, pos, dir);\n\t\t }\n\t\t if (next == null) {\n\t\t if (!boundToLine && findNextLine())\n\t\t { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n\t\t else\n\t\t { return false }\n\t\t } else {\n\t\t pos = next;\n\t\t }\n\t\t return true\n\t\t }\n\n\t\t if (unit == \"char\" || unit == \"codepoint\") {\n\t\t moveOnce();\n\t\t } else if (unit == \"column\") {\n\t\t moveOnce(true);\n\t\t } else if (unit == \"word\" || unit == \"group\") {\n\t\t var sawType = null, group = unit == \"group\";\n\t\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t\t for (var first = true;; first = false) {\n\t\t if (dir < 0 && !moveOnce(!first)) { break }\n\t\t var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n\t\t var type = isWordChar(cur, helper) ? \"w\"\n\t\t : group && cur == \"\\n\" ? \"n\"\n\t\t : !group || /\\s/.test(cur) ? null\n\t\t : \"p\";\n\t\t if (group && !first && !type) { type = \"s\"; }\n\t\t if (sawType && sawType != type) {\n\t\t if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n\t\t break\n\t\t }\n\n\t\t if (type) { sawType = type; }\n\t\t if (dir > 0 && !moveOnce(!first)) { break }\n\t\t }\n\t\t }\n\t\t var result = skipAtomic(doc, pos, oldPos, origDir, true);\n\t\t if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n\t\t return result\n\t\t }", "checkNextHorizontalPosition(typedLetter) {\n let nextPosition = null;\n let nextValue = null;\n\n typedLetter.parentWords.every(word => {\n if (word.horizontal) {\n // Look for the next x\n nextValue = typedLetter.position.x + 1;\n // Are we at the end of the word or grid?\n if (nextValue <= word.endX && nextValue < this.maxGridWidth) {\n nextPosition = { x: nextValue, y: typedLetter.position.y };\n this.direction = DirectionTypes.HORIZONTAL;\n }\n }\n return nextPosition == null;\n });\n\n return nextPosition;\n }", "move(direction) {\n if (direction === 'left') this.x -= 101; // Step left\n if (direction === 'up') this.y -= 85; // Step up\n if (direction === 'right') this.x += 101; // Step right\n if (direction === 'down') this.y += 85; // Step down\n }", "function navigateHorizontal(x, y, letters, dir, size) {\n let newY = y;\n if (dir === direction.FORWARD && y < size - 1) {\n do {\n newY++;\n } while (newY < size - 2 && letters[x][newY].isBlack)\n } else if (dir === direction.BACK && y > 0) {\n do {\n newY--;\n } while (newY > 1 && letters[x][newY].isBlack)\n }\n\n if (letters[x][newY].isBlack) {\n //we've hit start or end of row without finding a new square, so just stay put\n return y;\n } else {\n return newY;\n }\n}", "function moveVisually(line, start, dir, byUnit) {\n\t\t var bidi = getOrder(line);\n\t\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\t\t\n\t\t for (;;) {\n\t\t if (target > part.from && target < part.to) return target;\n\t\t if (target == part.from || target == part.to) {\n\t\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t\t part = bidi[pos += dir];\n\t\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t\t } else {\n\t\t part = bidi[pos += dir];\n\t\t if (!part) return null;\n\t\t if ((dir > 0) == part.level % 2)\n\t\t target = moveInLine(line, part.to, -1, byUnit);\n\t\t else\n\t\t target = moveInLine(line, part.from, 1, byUnit);\n\t\t }\n\t\t }\n\t\t }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line)\n if (!bidi) { return moveLogically(line, start, dir, byUnit) }\n var pos = getBidiPartAt(bidi, start), part = bidi[pos]\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit)\n\n for (;;) {\n if (target > part.from && target < part.to) { return target }\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) { return target }\n part = bidi[pos += dir]\n return (dir > 0) == part.level % 2 ? part.to : part.from\n } else {\n part = bidi[pos += dir]\n if (!part) { return null }\n if ((dir > 0) == part.level % 2)\n { target = moveInLine(line, part.to, -1, byUnit) }\n else\n { target = moveInLine(line, part.from, 1, byUnit) }\n }\n }\n}", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\r\n var bidi = getOrder(line);\r\n if (!bidi) return moveLogically(line, start, dir, byUnit);\r\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\r\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\r\n\r\n for (;;) {\r\n if (target > part.from && target < part.to) return target;\r\n if (target == part.from || target == part.to) {\r\n if (getBidiPartAt(bidi, target) == pos) return target;\r\n part = bidi[pos += dir];\r\n return (dir > 0) == part.level % 2 ? part.to : part.from;\r\n } else {\r\n part = bidi[pos += dir];\r\n if (!part) return null;\r\n if ((dir > 0) == part.level % 2)\r\n target = moveInLine(line, part.to, -1, byUnit);\r\n else\r\n target = moveInLine(line, part.from, 1, byUnit);\r\n }\r\n }\r\n }", "moveWords() {\n if(this.x < 0 || this.x > width){\n this.xSpeed*=-1;}\n if(this.y < 0 || this.y > height){\n this.ySpeed*=-1;}\n this.x+=this.xSpeed;\n this.y+=this.ySpeed;\n }", "dir() {\n if (TouchInput.isPressed() && Input.isPressed('control')) {\n\n //if ($.editor.wedit = 'point' && !Input.isPressed('ctrl')) return;\n\n // RIGHT\n\n if (Haya.Mouse.x > this.mouse.x) {\n return 'right'\n }\n\n // LEFT\n\n if (Haya.Mouse.x < this.mouse.x) {\n return 'left'\n }\n\n // UP\n\n if (Haya.Mouse.y < this.mouse.y) {\n return 'up'\n }\n\n // DOWN\n if (Haya.Mouse.y > this.mouse.y) {\n return 'down'\n }\n } else {\n this.mouse.x = Haya.Mouse.x + this.threshold_mouse;\n this.mouse.y = Haya.Mouse.y + this.threshold_mouse;\n }\n\n }", "function moveVisually(line, start, dir, byUnit) {\n\t var bidi = getOrder(line);\n\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\t\n\t for (;;) {\n\t if (target > part.from && target < part.to) return target;\n\t if (target == part.from || target == part.to) {\n\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t part = bidi[pos += dir];\n\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t } else {\n\t part = bidi[pos += dir];\n\t if (!part) return null;\n\t if ((dir > 0) == part.level % 2)\n\t target = moveInLine(line, part.to, -1, byUnit);\n\t else\n\t target = moveInLine(line, part.from, 1, byUnit);\n\t }\n\t }\n\t }", "function moveVisually(line, start, dir, byUnit) {\n\t var bidi = getOrder(line);\n\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n\t for (;;) {\n\t if (target > part.from && target < part.to) return target;\n\t if (target == part.from || target == part.to) {\n\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t part = bidi[pos += dir];\n\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t } else {\n\t part = bidi[pos += dir];\n\t if (!part) return null;\n\t if ((dir > 0) == part.level % 2)\n\t target = moveInLine(line, part.to, -1, byUnit);\n\t else\n\t target = moveInLine(line, part.from, 1, byUnit);\n\t }\n\t }\n\t }", "function moveVisually(line, start, dir, byUnit) {\n\t var bidi = getOrder(line);\n\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n\t for (;;) {\n\t if (target > part.from && target < part.to) return target;\n\t if (target == part.from || target == part.to) {\n\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t part = bidi[pos += dir];\n\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t } else {\n\t part = bidi[pos += dir];\n\t if (!part) return null;\n\t if ((dir > 0) == part.level % 2)\n\t target = moveInLine(line, part.to, -1, byUnit);\n\t else\n\t target = moveInLine(line, part.from, 1, byUnit);\n\t }\n\t }\n\t }", "stepDirection() {\n\n switch (this.direction) {\n case 'left':\n this.position['x'] -= 1\n break;\n\n case 'up':\n this.position['y'] -= 1\n break;\n\n case 'right':\n this.position['x'] += 1\n break;\n\n case 'down':\n this.position['y'] += 1\n break;\n }\n\n }", "function wrap_horizontal(direction){\n if(direction) {\n // this.xPos.push(this.xPos.shift());\n this.ptInfo.push(this.ptInfo.shift());\n for(var y = 0; y<this.numRows; y++) {\n this.ptInfo[this.numRows-1][y].update = true;\n }\n } else {\n // this.xPos.unshift(this.xPos.pop());\n this.ptInfo.unshift(this.ptInfo.pop());\n for(var y = 0; y<this.numRows; y++) {\n this.ptInfo[0][y].update = true;\n }\n } \n }", "textDirectionAt(pos) {\n let perLine = this.state.facet(perLineTextDirection);\n if (!perLine || pos < this.viewport.from || pos > this.viewport.to)\n return this.textDirection;\n this.readMeasured();\n return this.docView.textDirectionAt(pos);\n }", "function horizontal(direction){\n // a and d key\n // console.log(String.fromCharCode(key));\n if(index != vCount)\n return;\n var thetaRadian = toRadians( theta );\n // making adjustment for the rotation.\n var tX = Math.cos(thetaRadian) * displacementX[0]; // x component of transfromation\n var tY = Math.sin(thetaRadian) * displacementX[0]; // y component of transfromation\n\n var t;\n if (direction)\n t = [-tX, tY, 0]; // transformation based on rotatation\n else\n t = [tX, -tY, 0]; // transformation based on rotatation\n\n movePolygon(t);\n whereami();\n render();\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "_computePositionAnimationState(dir = this._getLayoutDirection()) {\n if (this._positionIndex < 0) {\n this._position = dir == 'ltr' ? 'left' : 'right';\n }\n else if (this._positionIndex > 0) {\n this._position = dir == 'ltr' ? 'right' : 'left';\n }\n else {\n this._position = 'center';\n }\n }", "function findPosV(cm, pos, dir, unit) {\n\t\t var doc = cm.doc, x = pos.left, y;\n\t\t if (unit == \"page\") {\n\t\t var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);\n\t\t var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n\t\t y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n\t\t } else if (unit == \"line\") {\n\t\t y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n\t\t }\n\t\t var target;\n\t\t for (;;) {\n\t\t target = coordsChar(cm, x, y);\n\t\t if (!target.outside) { break }\n\t\t if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n\t\t y += dir * 5;\n\t\t }\n\t\t return target\n\t\t }", "move(direction) {\r\n let parent = this.selection.parent;\r\n if (parent === null)\r\n return;\r\n let previous, next;\r\n if (direction < 0) {\r\n next = this.selection;\r\n previous = next.previous;\r\n if (previous === null)\r\n return;\r\n }\r\n else {\r\n previous = this.selection;\r\n next = previous.next;\r\n if (next === null)\r\n return;\r\n }\r\n parent.graphic.insertBefore(next.graphic, previous.graphic);\r\n parent.item.lastElementChild.insertBefore(next.item, previous.item);\r\n }", "logic() {\n if (this._headingX > 360 || this._headingX < -360) this._headingX = 0;\n if (this._headingY > 360 || this._headingY < -360) this._headingY = 0;\n\n if (this._x <= 0 || this._x >= this.maxXVal) {\n this._headingX = this._headingX + 180;\n }\n\n if (this._y <= 0 || this._y >= this.maxYVal) {\n this._headingY = -this._headingY;\n }\n\n this._distanceX = dir_x(2, this._headingX);\n this._distanceY = dir_y(2, this._headingY);\n\n //if (this._duration < 10) this._duration += 0.05;\n\n this._x = lerp(this._x, this._x + this._distanceX, this._duration);\n this._y = lerp(this._y, this._y + this._distanceY, this._duration);\n requestAnimationFrame(this.draw.bind(this));\n\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}" ]
[ "0.61296076", "0.6125485", "0.6125485", "0.6125485", "0.6125485", "0.6125485", "0.6125485", "0.6122467", "0.60935616", "0.60555094", "0.60536236", "0.60270697", "0.60214835", "0.60214835", "0.60214835", "0.59962684", "0.59857744", "0.59748083", "0.59748083", "0.59748083", "0.59748083", "0.59748083", "0.59748083", "0.59748083", "0.59748083", "0.59748083", "0.5909736", "0.59045434", "0.58888465", "0.58888465", "0.58888465", "0.58888465", "0.58888465", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.5885754", "0.58702666", "0.58321357", "0.58037466", "0.57950795", "0.5763141", "0.5730652", "0.5704133", "0.56767225", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.5670268", "0.56580126", "0.56566745", "0.5635348", "0.5583622", "0.557227", "0.557227", "0.55705136", "0.5475785", "0.5405334", "0.5405198", "0.5402274", "0.5402274", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.54022175", "0.53858626", "0.5369655", "0.53514826", "0.53427255", "0.5304965", "0.5304965", "0.5304965", "0.5304965", "0.5304965" ]
0.5998135
16
For relative vertical movement. Dir may be 1 or 1. Unit can be "page" or "line". The resulting position will have a hitSide=true property if it reached the end of the document.
function findPosV(cm, pos, dir, unit) { var doc = cm.doc, x = pos.left, y; if (unit == "page") { var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight); var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3); y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount; } else if (unit == "line") { y = dir > 0 ? pos.bottom + 3 : pos.top - 3; } var target; for (;;) { target = coordsChar(cm, x, y); if (!target.outside) { break } if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break } y += dir * 5; } return target }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }", "function findPosV(cm, pos, dir, unit) {\r\n var doc = cm.doc, x = pos.left, y;\r\n if (unit == \"page\") {\r\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\r\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\r\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\r\n\r\n } else if (unit == \"line\") {\r\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\r\n }\r\n var target;\r\n for (;;) {\r\n target = coordsChar(cm, x, y);\r\n if (!target.outside) { break }\r\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\r\n y += dir * 5;\r\n }\r\n return target\r\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight)\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3)\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3\n }\n var target\n for (;;) {\n target = coordsChar(cm, x, y)\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight)\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3)\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3\n }\n var target\n for (;;) {\n target = coordsChar(cm, x, y)\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5\n }\n return target\n}", "function findPosV(cm, pos, dir, unit) {\n\t\t var doc = cm.doc, x = pos.left, y;\n\t\t if (unit == \"page\") {\n\t\t var pageSize = Math.min(cm.display.wrapper.clientHeight, win(cm).innerHeight || doc(cm).documentElement.clientHeight);\n\t\t var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n\t\t y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n\t\t } else if (unit == \"line\") {\n\t\t y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n\t\t }\n\t\t var target;\n\t\t for (;;) {\n\t\t target = coordsChar(cm, x, y);\n\t\t if (!target.outside) { break }\n\t\t if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n\t\t y += dir * 5;\n\t\t }\n\t\t return target\n\t\t }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n for (;;) {\n var target = coordsChar(cm, x, y);\n if (!target.outside) break;\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n y += dir * 5;\n }\n return target;\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n for (;;) {\n var target = coordsChar(cm, x, y);\n if (!target.outside) break;\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n y += dir * 5;\n }\n return target;\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n for (;;) {\n var target = coordsChar(cm, x, y);\n if (!target.outside) break;\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n y += dir * 5;\n }\n return target;\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n for (;;) {\n var target = coordsChar(cm, x, y);\n if (!target.outside) break;\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n y += dir * 5;\n }\n return target;\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n for (;;) {\n var target = coordsChar(cm, x, y);\n if (!target.outside) break;\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n y += dir * 5;\n }\n return target;\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n for (;;) {\n var target = coordsChar(cm, x, y);\n if (!target.outside) break;\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n y += dir * 5;\n }\n return target;\n }", "function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n for (;;) {\n var target = coordsChar(cm, x, y);\n if (!target.outside) break;\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n y += dir * 5;\n }\n return target;\n }", "function findPosV(cm, pos, dir, unit) {\r\n var doc = cm.doc, x = pos.left, y;\r\n if (unit == \"page\") {\r\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\r\n y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\r\n } else if (unit == \"line\") {\r\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\r\n }\r\n for (;;) {\r\n var target = coordsChar(cm, x, y);\r\n if (!target.outside) break;\r\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\r\n y += dir * 5;\r\n }\r\n return target;\r\n }", "function findPosV(cm, pos, dir, unit) {\n\t var doc = cm.doc, x = pos.left, y;\n\t if (unit == \"page\") {\n\t var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n\t var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n\t y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\t } else if (unit == \"line\") {\n\t y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n\t }\n\t for (;;) {\n\t var target = coordsChar(cm, x, y);\n\t if (!target.outside) break;\n\t if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n\t y += dir * 5;\n\t }\n\t return target;\n\t }", "function findPosV(cm, pos, dir, unit) {\n\t\t var doc = cm.doc, x = pos.left, y;\n\t\t if (unit == \"page\") {\n\t\t var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n\t\t y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n\t\t } else if (unit == \"line\") {\n\t\t y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n\t\t }\n\t\t for (;;) {\n\t\t var target = coordsChar(cm, x, y);\n\t\t if (!target.outside) break;\n\t\t if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n\t\t y += dir * 5;\n\t\t }\n\t\t return target;\n\t\t }", "function findPosV(cm, pos, dir, unit) {\n\t var doc = cm.doc, x = pos.left, y;\n\t if (unit == \"page\") {\n\t var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n\t y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n\t } else if (unit == \"line\") {\n\t y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n\t }\n\t for (;;) {\n\t var target = coordsChar(cm, x, y);\n\t if (!target.outside) break;\n\t if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n\t y += dir * 5;\n\t }\n\t return target;\n\t }", "function findPosV(cm, pos, dir, unit) {\n\t var doc = cm.doc, x = pos.left, y;\n\t if (unit == \"page\") {\n\t var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n\t y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));\n\t } else if (unit == \"line\") {\n\t y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n\t }\n\t for (;;) {\n\t var target = coordsChar(cm, x, y);\n\t if (!target.outside) break;\n\t if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }\n\t y += dir * 5;\n\t }\n\t return target;\n\t }", "function _findPosV(cm, pos, dir, unit) {\n var doc = cm.doc,\n x = pos.left,\n y;\n\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n\n var target;\n\n for (;;) {\n target = _coordsChar(cm, x, y);\n\n if (!target.outside) {\n break;\n }\n\n if (dir < 0 ? y <= 0 : y >= doc.height) {\n target.hitSide = true;\n break;\n }\n\n y += dir * 5;\n }\n\n return target;\n } // CONTENTEDITABLE INPUT STYLE", "move(dir){\n this.y += this.speed * dir;\n this.y = constrain(this.y, 0, height - this.h);\n }", "function findPosH(doc, pos, dir, unit, visually) {\n\t\t var oldPos = pos;\n\t\t var origDir = dir;\n\t\t var lineObj = getLine(doc, pos.line);\n\t\t var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n\t\t function findNextLine() {\n\t\t var l = pos.line + lineDir;\n\t\t if (l < doc.first || l >= doc.first + doc.size) { return false }\n\t\t pos = new Pos(l, pos.ch, pos.sticky);\n\t\t return lineObj = getLine(doc, l)\n\t\t }\n\t\t function moveOnce(boundToLine) {\n\t\t var next;\n\t\t if (unit == \"codepoint\") {\n\t\t var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n\t\t if (isNaN(ch)) {\n\t\t next = null;\n\t\t } else {\n\t\t var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n\t\t next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n\t\t }\n\t\t } else if (visually) {\n\t\t next = moveVisually(doc.cm, lineObj, pos, dir);\n\t\t } else {\n\t\t next = moveLogically(lineObj, pos, dir);\n\t\t }\n\t\t if (next == null) {\n\t\t if (!boundToLine && findNextLine())\n\t\t { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n\t\t else\n\t\t { return false }\n\t\t } else {\n\t\t pos = next;\n\t\t }\n\t\t return true\n\t\t }\n\n\t\t if (unit == \"char\" || unit == \"codepoint\") {\n\t\t moveOnce();\n\t\t } else if (unit == \"column\") {\n\t\t moveOnce(true);\n\t\t } else if (unit == \"word\" || unit == \"group\") {\n\t\t var sawType = null, group = unit == \"group\";\n\t\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t\t for (var first = true;; first = false) {\n\t\t if (dir < 0 && !moveOnce(!first)) { break }\n\t\t var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n\t\t var type = isWordChar(cur, helper) ? \"w\"\n\t\t : group && cur == \"\\n\" ? \"n\"\n\t\t : !group || /\\s/.test(cur) ? null\n\t\t : \"p\";\n\t\t if (group && !first && !type) { type = \"s\"; }\n\t\t if (sawType && sawType != type) {\n\t\t if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n\t\t break\n\t\t }\n\n\t\t if (type) { sawType = type; }\n\t\t if (dir > 0 && !moveOnce(!first)) { break }\n\t\t }\n\t\t }\n\t\t var result = skipAtomic(doc, pos, oldPos, origDir, true);\n\t\t if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n\t\t return result\n\t\t }", "function findPosH(doc, pos, dir, unit, visually) {\n\t\t var line = pos.line, ch = pos.ch, origDir = dir;\n\t\t var lineObj = getLine(doc, line);\n\t\t function findNextLine() {\n\t\t var l = line + dir;\n\t\t if (l < doc.first || l >= doc.first + doc.size) return false\n\t\t line = l;\n\t\t return lineObj = getLine(doc, l);\n\t\t }\n\t\t function moveOnce(boundToLine) {\n\t\t var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n\t\t if (next == null) {\n\t\t if (!boundToLine && findNextLine()) {\n\t\t if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n\t\t else ch = dir < 0 ? lineObj.text.length : 0;\n\t\t } else return false\n\t\t } else ch = next;\n\t\t return true;\n\t\t }\n\t\t\n\t\t if (unit == \"char\") {\n\t\t moveOnce()\n\t\t } else if (unit == \"column\") {\n\t\t moveOnce(true)\n\t\t } else if (unit == \"word\" || unit == \"group\") {\n\t\t var sawType = null, group = unit == \"group\";\n\t\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t\t for (var first = true;; first = false) {\n\t\t if (dir < 0 && !moveOnce(!first)) break;\n\t\t var cur = lineObj.text.charAt(ch) || \"\\n\";\n\t\t var type = isWordChar(cur, helper) ? \"w\"\n\t\t : group && cur == \"\\n\" ? \"n\"\n\t\t : !group || /\\s/.test(cur) ? null\n\t\t : \"p\";\n\t\t if (group && !first && !type) type = \"s\";\n\t\t if (sawType && sawType != type) {\n\t\t if (dir < 0) {dir = 1; moveOnce();}\n\t\t break;\n\t\t }\n\t\t\n\t\t if (type) sawType = type;\n\t\t if (dir > 0 && !moveOnce(!first)) break;\n\t\t }\n\t\t }\n\t\t var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n\t\t if (!cmp(pos, result)) result.hitSide = true;\n\t\t return result;\n\t\t }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));\n if (isNaN(ch)) {\n next = null;\n } else {\n var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;\n next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);\n }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (unit > 0 ? 0 : -1));\n if (isNaN(ch)) { next = null; }\n else { next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (ch >= 0xD800 && ch < 0xDC00 ? 2 : 1))),\n -dir); }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir\n var lineObj = getLine(doc, line)\n function findNextLine() {\n var l = line + dir\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n line = l\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true)\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) { ch = (dir < 0 ? lineRight : lineLeft)(lineObj) }\n else { ch = dir < 0 ? lineObj.text.length : 0 }\n } else { return false }\n } else { ch = next }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce()\n } else if (unit == \"column\") {\n moveOnce(true)\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\"\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\")\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(ch) || \"\\n\"\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\"\n if (group && !first && !type) { type = \"s\" }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce()}\n break\n }\n\n if (type) { sawType = type }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true)\n if (!cmp(pos, result)) { result.hitSide = true }\n return result\n}", "function moveVisually(line, start, dir, byUnit) {\n\t\t var bidi = getOrder(line);\n\t\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\t\t\n\t\t for (;;) {\n\t\t if (target > part.from && target < part.to) return target;\n\t\t if (target == part.from || target == part.to) {\n\t\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t\t part = bidi[pos += dir];\n\t\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t\t } else {\n\t\t part = bidi[pos += dir];\n\t\t if (!part) return null;\n\t\t if ((dir > 0) == part.level % 2)\n\t\t target = moveInLine(line, part.to, -1, byUnit);\n\t\t else\n\t\t target = moveInLine(line, part.from, 1, byUnit);\n\t\t }\n\t\t }\n\t\t }", "function moveVisually(line, start, dir, byUnit) {\r\n var bidi = getOrder(line);\r\n if (!bidi) return moveLogically(line, start, dir, byUnit);\r\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\r\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\r\n\r\n for (;;) {\r\n if (target > part.from && target < part.to) return target;\r\n if (target == part.from || target == part.to) {\r\n if (getBidiPartAt(bidi, target) == pos) return target;\r\n part = bidi[pos += dir];\r\n return (dir > 0) == part.level % 2 ? part.to : part.from;\r\n } else {\r\n part = bidi[pos += dir];\r\n if (!part) return null;\r\n if ((dir > 0) == part.level % 2)\r\n target = moveInLine(line, part.to, -1, byUnit);\r\n else\r\n target = moveInLine(line, part.from, 1, byUnit);\r\n }\r\n }\r\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n for (;;) {\n if (target > part.from && target < part.to) return target;\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) return target;\n part = bidi[pos += dir];\n return (dir > 0) == part.level % 2 ? part.to : part.from;\n } else {\n part = bidi[pos += dir];\n if (!part) return null;\n if ((dir > 0) == part.level % 2)\n target = moveInLine(line, part.to, -1, byUnit);\n else\n target = moveInLine(line, part.from, 1, byUnit);\n }\n }\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return false\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return false\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") {\n moveOnce()\n } else if (unit == \"column\") {\n moveOnce(true)\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n if (!cmp(pos, result)) result.hitSide = true;\n return result;\n }", "move(dir = 1){\n this.x += this.xspeed * dir;\n this.y += this.yspeed * dir;\n }", "function findPosH(doc, pos, dir, unit, visually) {\r\n var oldPos = pos;\r\n var origDir = dir;\r\n var lineObj = getLine(doc, pos.line);\r\n function findNextLine() {\r\n var l = pos.line + dir;\r\n if (l < doc.first || l >= doc.first + doc.size) { return false }\r\n pos = new Pos(l, pos.ch, pos.sticky);\r\n return lineObj = getLine(doc, l)\r\n }\r\n function moveOnce(boundToLine) {\r\n var next;\r\n if (visually) {\r\n next = moveVisually(doc.cm, lineObj, pos, dir);\r\n } else {\r\n next = moveLogically(lineObj, pos, dir);\r\n }\r\n if (next == null) {\r\n if (!boundToLine && findNextLine())\r\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\r\n else\r\n { return false }\r\n } else {\r\n pos = next;\r\n }\r\n return true\r\n }\r\n\r\n if (unit == \"char\") {\r\n moveOnce();\r\n } else if (unit == \"column\") {\r\n moveOnce(true);\r\n } else if (unit == \"word\" || unit == \"group\") {\r\n var sawType = null, group = unit == \"group\";\r\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\r\n for (var first = true;; first = false) {\r\n if (dir < 0 && !moveOnce(!first)) { break }\r\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\r\n var type = isWordChar(cur, helper) ? \"w\"\r\n : group && cur == \"\\n\" ? \"n\"\r\n : !group || /\\s/.test(cur) ? null\r\n : \"p\";\r\n if (group && !first && !type) { type = \"s\"; }\r\n if (sawType && sawType != type) {\r\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\r\n break\r\n }\r\n\r\n if (type) { sawType = type; }\r\n if (dir > 0 && !moveOnce(!first)) { break }\r\n }\r\n }\r\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\r\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\r\n return result\r\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }", "function moveVisually(line, start, dir, byUnit) {\n\t var bidi = getOrder(line);\n\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n\t for (;;) {\n\t if (target > part.from && target < part.to) return target;\n\t if (target == part.from || target == part.to) {\n\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t part = bidi[pos += dir];\n\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t } else {\n\t part = bidi[pos += dir];\n\t if (!part) return null;\n\t if ((dir > 0) == part.level % 2)\n\t target = moveInLine(line, part.to, -1, byUnit);\n\t else\n\t target = moveInLine(line, part.from, 1, byUnit);\n\t }\n\t }\n\t }", "function moveVisually(line, start, dir, byUnit) {\n\t var bidi = getOrder(line);\n\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\n\t for (;;) {\n\t if (target > part.from && target < part.to) return target;\n\t if (target == part.from || target == part.to) {\n\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t part = bidi[pos += dir];\n\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t } else {\n\t part = bidi[pos += dir];\n\t if (!part) return null;\n\t if ((dir > 0) == part.level % 2)\n\t target = moveInLine(line, part.to, -1, byUnit);\n\t else\n\t target = moveInLine(line, part.from, 1, byUnit);\n\t }\n\t }\n\t }", "function findPosH(doc, pos, dir, unit, visually) {\r\n var line = pos.line, ch = pos.ch, origDir = dir;\r\n var lineObj = getLine(doc, line);\r\n var possible = true;\r\n function findNextLine() {\r\n var l = line + dir;\r\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\r\n line = l;\r\n return lineObj = getLine(doc, l);\r\n }\r\n function moveOnce(boundToLine) {\r\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\r\n if (next == null) {\r\n if (!boundToLine && findNextLine()) {\r\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\r\n else ch = dir < 0 ? lineObj.text.length : 0;\r\n } else return (possible = false);\r\n } else ch = next;\r\n return true;\r\n }\r\n\r\n if (unit == \"char\") moveOnce();\r\n else if (unit == \"column\") moveOnce(true);\r\n else if (unit == \"word\" || unit == \"group\") {\r\n var sawType = null, group = unit == \"group\";\r\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\r\n for (var first = true;; first = false) {\r\n if (dir < 0 && !moveOnce(!first)) break;\r\n var cur = lineObj.text.charAt(ch) || \"\\n\";\r\n var type = isWordChar(cur, helper) ? \"w\"\r\n : group && cur == \"\\n\" ? \"n\"\r\n : !group || /\\s/.test(cur) ? null\r\n : \"p\";\r\n if (group && !first && !type) type = \"s\";\r\n if (sawType && sawType != type) {\r\n if (dir < 0) {dir = 1; moveOnce();}\r\n break;\r\n }\r\n\r\n if (type) sawType = type;\r\n if (dir > 0 && !moveOnce(!first)) break;\r\n }\r\n }\r\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\r\n if (!possible) result.hitSide = true;\r\n return result;\r\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var moveOneUnit = byUnit ? function(pos, dir) {\n do pos += dir;\n while (pos > 0 && isExtendingChar.test(line.text.charAt(pos)));\n return pos;\n } : function(pos, dir) { return pos + dir; };\n var linedir = bidi[0].level;\n for (var i = 0; i < bidi.length; ++i) {\n var part = bidi[i], sticky = part.level % 2 == linedir;\n if ((part.from < start && part.to > start) ||\n (sticky && (part.from == start || part.to == start))) break;\n }\n var target = moveOneUnit(start, part.level % 2 ? -dir : dir);\n\n while (target != null) {\n if (part.level % 2 == linedir) {\n if (target < part.from || target > part.to) {\n part = bidi[i += dir];\n target = part && (dir > 0 == part.level % 2 ? moveOneUnit(part.to, -1) : moveOneUnit(part.from, 1));\n } else break;\n } else {\n if (target == bidiLeft(part)) {\n part = bidi[--i];\n target = part && bidiRight(part);\n } else if (target == bidiRight(part)) {\n part = bidi[++i];\n target = part && bidiLeft(part);\n } else break;\n }\n }\n\n return target < 0 || target > line.text.length ? null : target;\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var moveOneUnit = byUnit ? function(pos, dir) {\n do pos += dir;\n while (pos > 0 && isExtendingChar.test(line.text.charAt(pos)));\n return pos;\n } : function(pos, dir) { return pos + dir; };\n var linedir = bidi[0].level;\n for (var i = 0; i < bidi.length; ++i) {\n var part = bidi[i], sticky = part.level % 2 == linedir;\n if ((part.from < start && part.to > start) ||\n (sticky && (part.from == start || part.to == start))) break;\n }\n var target = moveOneUnit(start, part.level % 2 ? -dir : dir);\n\n while (target != null) {\n if (part.level % 2 == linedir) {\n if (target < part.from || target > part.to) {\n part = bidi[i += dir];\n target = part && (dir > 0 == part.level % 2 ? moveOneUnit(part.to, -1) : moveOneUnit(part.from, 1));\n } else break;\n } else {\n if (target == bidiLeft(part)) {\n part = bidi[--i];\n target = part && bidiRight(part);\n } else if (target == bidiRight(part)) {\n part = bidi[++i];\n target = part && bidiLeft(part);\n } else break;\n }\n }\n\n return target < 0 || target > line.text.length ? null : target;\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line);\n if (!bidi) return moveLogically(line, start, dir, byUnit);\n var moveOneUnit = byUnit ? function(pos, dir) {\n do pos += dir;\n while (pos > 0 && isExtendingChar.test(line.text.charAt(pos)));\n return pos;\n } : function(pos, dir) { return pos + dir; };\n var linedir = bidi[0].level;\n for (var i = 0; i < bidi.length; ++i) {\n var part = bidi[i], sticky = part.level % 2 == linedir;\n if ((part.from < start && part.to > start) ||\n (sticky && (part.from == start || part.to == start))) break;\n }\n var target = moveOneUnit(start, part.level % 2 ? -dir : dir);\n\n while (target != null) {\n if (part.level % 2 == linedir) {\n if (target < part.from || target > part.to) {\n part = bidi[i += dir];\n target = part && (dir > 0 == part.level % 2 ? moveOneUnit(part.to, -1) : moveOneUnit(part.from, 1));\n } else break;\n } else {\n if (target == bidiLeft(part)) {\n part = bidi[--i];\n target = part && bidiRight(part);\n } else if (target == bidiRight(part)) {\n part = bidi[++i];\n target = part && bidiLeft(part);\n } else break;\n }\n }\n\n return target < 0 || target > line.text.length ? null : target;\n }", "function moveVisually(line, start, dir, byUnit) {\n\t var bidi = getOrder(line);\n\t if (!bidi) return moveLogically(line, start, dir, byUnit);\n\t var pos = getBidiPartAt(bidi, start), part = bidi[pos];\n\t var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);\n\t\n\t for (;;) {\n\t if (target > part.from && target < part.to) return target;\n\t if (target == part.from || target == part.to) {\n\t if (getBidiPartAt(bidi, target) == pos) return target;\n\t part = bidi[pos += dir];\n\t return (dir > 0) == part.level % 2 ? part.to : part.from;\n\t } else {\n\t part = bidi[pos += dir];\n\t if (!part) return null;\n\t if ((dir > 0) == part.level % 2)\n\t target = moveInLine(line, part.to, -1, byUnit);\n\t else\n\t target = moveInLine(line, part.from, 1, byUnit);\n\t }\n\t }\n\t }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function findPosH(doc, pos, dir, unit, visually) {\n var line = pos.line, ch = pos.ch, origDir = dir;\n var lineObj = getLine(doc, line);\n var possible = true;\n function findNextLine() {\n var l = line + dir;\n if (l < doc.first || l >= doc.first + doc.size) return (possible = false);\n line = l;\n return lineObj = getLine(doc, l);\n }\n function moveOnce(boundToLine) {\n var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n if (next == null) {\n if (!boundToLine && findNextLine()) {\n if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n else ch = dir < 0 ? lineObj.text.length : 0;\n } else return (possible = false);\n } else ch = next;\n return true;\n }\n\n if (unit == \"char\") moveOnce();\n else if (unit == \"column\") moveOnce(true);\n else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) break;\n var cur = lineObj.text.charAt(ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) type = \"s\";\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce();}\n break;\n }\n\n if (type) sawType = type;\n if (dir > 0 && !moveOnce(!first)) break;\n }\n }\n var result = skipAtomic(doc, Pos(line, ch), origDir, true);\n if (!possible) result.hitSide = true;\n return result;\n }", "function moveVisually(line, start, dir, byUnit) {\n var bidi = getOrder(line)\n if (!bidi) { return moveLogically(line, start, dir, byUnit) }\n var pos = getBidiPartAt(bidi, start), part = bidi[pos]\n var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit)\n\n for (;;) {\n if (target > part.from && target < part.to) { return target }\n if (target == part.from || target == part.to) {\n if (getBidiPartAt(bidi, target) == pos) { return target }\n part = bidi[pos += dir]\n return (dir > 0) == part.level % 2 ? part.to : part.from\n } else {\n part = bidi[pos += dir]\n if (!part) { return null }\n if ((dir > 0) == part.level % 2)\n { target = moveInLine(line, part.to, -1, byUnit) }\n else\n { target = moveInLine(line, part.from, 1, byUnit) }\n }\n }\n}", "function findPosH(doc, pos, dir, unit, visually) {\n\t var line = pos.line, ch = pos.ch, origDir = dir;\n\t var lineObj = getLine(doc, line);\n\t function findNextLine() {\n\t var l = line + dir;\n\t if (l < doc.first || l >= doc.first + doc.size) return false\n\t line = l;\n\t return lineObj = getLine(doc, l);\n\t }\n\t function moveOnce(boundToLine) {\n\t var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);\n\t if (next == null) {\n\t if (!boundToLine && findNextLine()) {\n\t if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);\n\t else ch = dir < 0 ? lineObj.text.length : 0;\n\t } else return false\n\t } else ch = next;\n\t return true;\n\t }\n\t\n\t if (unit == \"char\") {\n\t moveOnce()\n\t } else if (unit == \"column\") {\n\t moveOnce(true)\n\t } else if (unit == \"word\" || unit == \"group\") {\n\t var sawType = null, group = unit == \"group\";\n\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t for (var first = true;; first = false) {\n\t if (dir < 0 && !moveOnce(!first)) break;\n\t var cur = lineObj.text.charAt(ch) || \"\\n\";\n\t var type = isWordChar(cur, helper) ? \"w\"\n\t : group && cur == \"\\n\" ? \"n\"\n\t : !group || /\\s/.test(cur) ? null\n\t : \"p\";\n\t if (group && !first && !type) type = \"s\";\n\t if (sawType && sawType != type) {\n\t if (dir < 0) {dir = 1; moveOnce();}\n\t break;\n\t }\n\t\n\t if (type) sawType = type;\n\t if (dir > 0 && !moveOnce(!first)) break;\n\t }\n\t }\n\t var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);\n\t if (!cmp(pos, result)) result.hitSide = true;\n\t return result;\n\t }", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}", "function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n function findNextLine() {\n var l = pos.line + dir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n}" ]
[ "0.69151056", "0.69151056", "0.6821693", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.6810372", "0.68065315", "0.68065315", "0.67795277", "0.67302203", "0.67302203", "0.67302203", "0.67302203", "0.67302203", "0.67302203", "0.67302203", "0.67164505", "0.6700995", "0.6643348", "0.66038597", "0.66038597", "0.645812", "0.6232971", "0.5738895", "0.5732456", "0.569551", "0.569551", "0.569551", "0.569551", "0.569551", "0.56613064", "0.5652798", "0.56351817", "0.56209457", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5615584", "0.5583896", "0.5569996", "0.5561711", "0.55567807", "0.55567807", "0.55567807", "0.55567807", "0.55567807", "0.55567807", "0.55567807", "0.55567807", "0.55567807", "0.5554895", "0.5554895", "0.5551053", "0.5546133", "0.5546133", "0.5546133", "0.55460775", "0.5538627", "0.5538627", "0.5538627", "0.5538627", "0.5538627", "0.5538627", "0.5535571", "0.5535519", "0.5525486", "0.5525486", "0.5525486", "0.5525486", "0.5525486", "0.5525486" ]
0.6870279
15
Selectall will be greyed out if there's nothing to select, so this adds a zerowidth space so that we can later check whether it got selected.
function prepareSelectAllHack() { if (te.selectionStart != null) { var selected = cm.somethingSelected(); var extval = "\u200b" + (selected ? te.value : ""); te.value = "\u21da"; // Used to catch context-menu undo te.value = extval; input.prevInput = selected ? "" : "\u200b"; te.selectionStart = 1; te.selectionEnd = extval.length; // Re-set this, in case some other handler touched the // selection in the meantime. display.selForContextMenu = cm.doc.sel; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selectAll()\r\n\t\t{\r\n\t\t\tthis.focus();\r\n\t\t\tthis.select();\r\n\t\t}", "function show_select_all(){\r\n var th = getPatternResult(PATTERN['select_all']).snapshotItem(0);\r\n if (th == null) \r\n return;\r\n th.innerHTML = '<input type=\"checkbox\"/>';\r\n th.setAttribute('title', 'Select All');\r\n th.firstChild.setAttribute('onclick', '');//apparently Opera does not add event listeners unless there is already an onclick attribute\r\n th.firstChild.addEventListener('click', function(){\r\n var checkboxes = getPatternResult(PATTERN['all_checkboxes']);\r\n for (var i = 0; i < checkboxes.snapshotLength; i++) \r\n checkboxes.snapshotItem(i).checked = this.checked;\r\n }, true);\r\n}", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (display.input.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\n display.prevInput = selected ? \"\" : \"\\u200b\";\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\r\n if (display.input.selectionStart != null) {\r\n var selected = cm.somethingSelected();\r\n var extval = display.input.value = \"\\u200b\" + (selected ? display.input.value : \"\");\r\n display.prevInput = selected ? \"\" : \"\\u200b\";\r\n display.input.selectionStart = 1; display.input.selectionEnd = extval.length;\r\n // Re-set this, in case some other handler touched the\r\n // selection in the meantime.\r\n display.selForContextMenu = cm.doc.sel;\r\n }\r\n }", "selectAll() {\n this._setAllOptionsSelected(true);\n }", "function prepareSelectAllHack() {\n\t\t if (te.selectionStart != null) {\n\t\t var selected = cm.somethingSelected();\n\t\t var extval = \"\\u200b\" + (selected ? te.value : \"\");\n\t\t te.value = \"\\u21da\"; // Used to catch context-menu undo\n\t\t te.value = extval;\n\t\t input.prevInput = selected ? \"\" : \"\\u200b\";\n\t\t te.selectionStart = 1; te.selectionEnd = extval.length;\n\t\t // Re-set this, in case some other handler touched the\n\t\t // selection in the meantime.\n\t\t display.selForContextMenu = cm.doc.sel;\n\t\t }\n\t\t }", "function prepareSelectAllHack() {\n\t if (te.selectionStart != null) {\n\t var selected = cm.somethingSelected();\n\t var extval = \"\\u200b\" + (selected ? te.value : \"\");\n\t te.value = \"\\u21da\"; // Used to catch context-menu undo\n\t te.value = extval;\n\t input.prevInput = selected ? \"\" : \"\\u200b\";\n\t te.selectionStart = 1; te.selectionEnd = extval.length;\n\t // Re-set this, in case some other handler touched the\n\t // selection in the meantime.\n\t display.selForContextMenu = cm.doc.sel;\n\t }\n\t }", "function prepareSelectAllHack() {\n\t if (te.selectionStart != null) {\n\t var selected = cm.somethingSelected();\n\t var extval = \"\\u200b\" + (selected ? te.value : \"\");\n\t te.value = \"\\u21da\"; // Used to catch context-menu undo\n\t te.value = extval;\n\t input.prevInput = selected ? \"\" : \"\\u200b\";\n\t te.selectionStart = 1; te.selectionEnd = extval.length;\n\t // Re-set this, in case some other handler touched the\n\t // selection in the meantime.\n\t display.selForContextMenu = cm.doc.sel;\n\t }\n\t }", "function prepareSelectAllHack() {\n\t if (te.selectionStart != null) {\n\t var selected = cm.somethingSelected();\n\t var extval = \"\\u200b\" + (selected ? te.value : \"\");\n\t te.value = \"\\u21da\"; // Used to catch context-menu undo\n\t te.value = extval;\n\t input.prevInput = selected ? \"\" : \"\\u200b\";\n\t te.selectionStart = 1; te.selectionEnd = extval.length;\n\t // Re-set this, in case some other handler touched the\n\t // selection in the meantime.\n\t display.selForContextMenu = cm.doc.sel;\n\t }\n\t }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected()\n var extval = \"\\u200b\" + (selected ? te.value : \"\")\n te.value = \"\\u21da\" // Used to catch context-menu undo\n te.value = extval\n input.prevInput = selected ? \"\" : \"\\u200b\"\n te.selectionStart = 1; te.selectionEnd = extval.length\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected()\n var extval = \"\\u200b\" + (selected ? te.value : \"\")\n te.value = \"\\u21da\" // Used to catch context-menu undo\n te.value = extval\n input.prevInput = selected ? \"\" : \"\\u200b\"\n te.selectionStart = 1; te.selectionEnd = extval.length\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function selectAll($textbox) {\n var textElem = $textbox[0];\n if (textElem.setSelectionRange) {\n var length = $textbox.val().length;\n textElem.setSelectionRange(0, length);\n } else if (textElem.createTextRange) {\n var range = textElem.createTextRange();\n range.execCommand(\"SelectAll\");\n range.select();\n }\n }", "function prepareSelectAllHack() {\n\t\t if (te.selectionStart != null) {\n\t\t var selected = cm.somethingSelected();\n\t\t var extval = \"\\u200b\" + (selected ? te.value : \"\");\n\t\t te.value = \"\\u21da\"; // Used to catch context-menu undo\n\t\t te.value = extval;\n\t\t input.prevInput = selected ? \"\" : \"\\u200b\";\n\t\t te.selectionStart = 1; te.selectionEnd = extval.length;\n\t\t // Re-set this, in case some other handler touched the\n\t\t // selection in the meantime.\n\t\t display.selForContextMenu = cm.doc.sel;\n\t\t }\n\t\t }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }", "function selectAll() {\n\t\tvar newSelections = [];\n\t\tfor(var d = 0; d < 3; d++) {\n\t\t\tnewSelections.push([]);\n\t\t\tnewSelections[d].push({\"minVal\":0, \"maxVal\":dim[d] - 1});\n\t\t}\n\t\tselections = newSelections;\n\t\tdrawSelections();\n\t\tupdateLocalSelections(true);\n\t\tsaveSelectionsInSlot();\n\t}", "function js_select_all(formobj)\n{\n\texclude = new Array();\n\texclude[0] = 'selectall';\n\tjs_toggle_all(formobj, 'select-one', '', exclude, formobj.selectall.selectedIndex);\n}", "unSelectAll () { this.toggSelAll(false); }", "function prepareSelectAllHack() {\r\n if (te.selectionStart != null) {\r\n var selected = cm.somethingSelected();\r\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\r\n te.value = \"\\u21da\"; // Used to catch context-menu undo\r\n te.value = extval;\r\n input.prevInput = selected ? \"\" : \"\\u200b\";\r\n te.selectionStart = 1; te.selectionEnd = extval.length;\r\n // Re-set this, in case some other handler touched the\r\n // selection in the meantime.\r\n display.selForContextMenu = cm.doc.sel;\r\n }\r\n }", "function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200B\" + (selected ? te.value : \"\");\n te.value = \"\\u21DA\"; // Used to catch context-menu undo\n\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200B\";\n te.selectionStart = 1;\n te.selectionEnd = extval.length; // Re-set this, in case some other handler touched the\n // selection in the meantime.\n\n display.selForContextMenu = cm.doc.sel;\n }\n }", "selectAll () { this.toggSelAll(true); }", "function updateSelectAllButtonState(){\r\n\t\t\r\n\t\tvar objButton = g_objPanel.find(\".uc-button-select-all\");\r\n\t\t\r\n\t\tvar numItems = getNumItems();\r\n\t\t\r\n\t\tif(numItems == 0){\r\n\t\t\tobjButton.addClass(\"button-disabled\");\r\n\t\t\t\r\n\t\t\tobjButton.html(objButton.data(\"textselect\"));\r\n\t\t\treturn(false);\r\n\t\t}\r\n\t\t\r\n\t\tobjButton.removeClass(\"button-disabled\");\r\n\t\t\r\n\t\tvar numSelected = getNumSelectedItems();\r\n\t\tif(numSelected != numItems){\r\n\t\t\tobjButton.html(objButton.data(\"textselect\"));\r\n\t\t}else{\r\n\t\t\tobjButton.html(objButton.data(\"textunselect\"));\r\n\t\t}\r\n\t\t\r\n\t}", "selectAll() {\n this._model.isSelectAllActive = true;\n this.refresh();\n this._onSelectionChange.fire();\n }", "selectAll() {\n if (this.selectionMode === 'multiple') {\n this.state.setSelectedKeys('all');\n }\n }", "toggleSelectAll() {\n if (this.isSelectAll) {\n this.clearSelection();\n } else {\n this.selectAll();\n }\n }", "function selectAll(id){\n let sel, range;\n let el = document.getElementById(id); //get element id\n if (window.getSelection && document.createRange) { //Browser compatibility\n sel = window.getSelection();\n if(sel.toString() == ''){ //no text selection\n window.setTimeout(function(){\n range = document.createRange(); //range object\n range.selectNodeContents(el); //sets Range\n sel.removeAllRanges(); //remove all ranges from selection\n sel.addRange(range);//add Range to a Selection.\n },1);\n }\n }else if (document.selection) { //older ie\n sel = document.selection.createRange();\n if(sel.text == ''){ //no text selection\n range = document.body.createTextRange();//Creates TextRange object\n range.moveToElementText(el);//sets Range\n range.select(); //make selection.\n }\n }\n }", "selectAll() {\n return this._setAllOptionsSelected(true);\n }", "selectAll() {\n this.selection.selectAll();\n }", "function selectAllItems() {\n if (items.length === 0) return;\n\n selectedAll = !selectedAll;\n this.innerHTML = selectedAll ? 'Unselect All' : 'Select All';\n\n items.map(item => item.done = selectedAll);\n insertItemsToList(items, itemsList);\n\n}", "function selectAll(area) {\n var textarea = this.textarea;\n textarea.select();\n\n // Chrome support\n textarea.mouseup(function() {\n // Prevent further mouseup intervention\n textarea.unbind(\"mouseup\");\n return false;\n });\n }", "selectAll() {\n var _a;\n (_a = this._selectionService) === null || _a === void 0 ? void 0 : _a.selectAll();\n }", "function selectUnselectAll(){\r\n\t\tvar objUnselectedItems = getObjUnselectedItems();\r\n\t\tif(objUnselectedItems.length != 0)\r\n\t\t\tselectAllItems();\r\n\t\telse\r\n\t\t\tunselectAllItems();\r\n\t\t\r\n\t}", "_updateSelectAllState(dataSourceLength) {\r\n const that = this,\r\n selectedIdsLength = that._selectedIds.length,\r\n selectAllCheckboxTd = that.$.tableContainer.querySelector('.smart-table-select-all');\r\n\r\n if (dataSourceLength === undefined) {\r\n dataSourceLength = that.dataSource.length;\r\n }\r\n\r\n if (selectedIdsLength === 0) {\r\n selectAllCheckboxTd.classList.remove('selected', 'indeterminate');\r\n }\r\n else if (selectedIdsLength === dataSourceLength) {\r\n selectAllCheckboxTd.classList.remove('indeterminate');\r\n selectAllCheckboxTd.classList.add('selected');\r\n }\r\n else {\r\n selectAllCheckboxTd.classList.remove('selected');\r\n selectAllCheckboxTd.classList.add('indeterminate');\r\n }\r\n }", "selectAll() {\n if (this.settings.mode === 'single') return;\n this.activeItems = this.controlChildren();\n\n if (this.activeItems.length) {\n addClasses(this.activeItems, 'active');\n this.hideInput();\n this.close();\n }\n\n this.focus();\n }", "function selectAll() {\n\t\t\teditor.shortcuts.add('meta+a', null, 'SelectAll');\n\t\t}", "function selectAll() {\n\t\t\teditor.shortcuts.add('meta+a', null, 'SelectAll');\n\t\t}", "function selectAll() {\n\t\t\teditor.shortcuts.add('meta+a', null, 'SelectAll');\n\t\t}", "function initSelectAllButton() {\n window.bindsSelectAllButton = document.querySelector('.binds-select-all-button');\n bindsSelectAllButton.addEventListener('click', () => {\n const shouldSelect = bindsSelectAllButton.innerHTML !== 'Deselect all';\n const events = document.querySelectorAll('.log-binds .event input');\n Array.prototype.forEach.call(events, function(event) {\n if (event.checked && !shouldSelect || !event.checked && shouldSelect) {\n event.click();\n }\n });\n bindsSelectAllButton.innerHTML = bindsSelectAllButton.innerHTML === 'Deselect all' ? 'Select all' : 'Deselect all';\n })\n}", "function selectAllPlanes() {\n HighlightedPlane = null;\n\t// if all planes are already selected, deselect them all\n\tif (SelectedAllPlanes) {\n\t\tdeselectAllPlanes();\n\t} else {\n\t\t// If SelectedPlane has something in it, clear out the selected\n\t\tif (SelectedPlane != null) {\n\t\t\tPlanes[SelectedPlane].selected = false;\n\t\t\tPlanes[SelectedPlane].clearLines();\n\t\t\tPlanes[SelectedPlane].updateMarker();\n\t\t\t$(Planes[SelectedPlane].tr).removeClass(\"selected\");\n\t\t}\n\n\t\tSelectedPlane = null;\n\t\tSelectedAllPlanes = true;\n\n\t\tfor(var key in Planes) {\n\t\t\tif (Planes[key].visible && !Planes[key].isFiltered()) {\n\t\t\t\tPlanes[key].selected = true;\n\t\t\t\tPlanes[key].updateLines();\n\t\t\t\tPlanes[key].updateMarker();\n\t\t\t}\n\t\t}\n\t}\n\n\t$('#selectall_checkbox').addClass('settingsCheckboxChecked');\n\n\trefreshSelected();\n\trefreshHighlighted();\n}", "function selectall(obj) {\n\tobj = (typeof obj == \"string\") ? document.getElementById(obj) : obj;\n\tif (obj.tagName.toLowerCase() != \"select\")\n\t\treturn;\n\tfor (var i=0; i<obj.length; i++) {\n\t\tobj[i].selected = true;\n\t}\n}", "function checkSelectAll() {\n if (scope.isEditing && attrs.hasOwnProperty('ggSelectAll')) {\n scope.$applyAsync(function () {\n if (scope.isEditing) {\n input.focus();\n input.setSelectionRange(0, scope.editingValue.length);\n }\n });\n }\n }", "_unmarkAll() {\n if (!this.isEmpty()) {\n this._selection.forEach(value => this._unmarkSelected(value));\n }\n }", "_unmarkAll() {\n if (!this.isEmpty()) {\n this._selection.forEach(value => this._unmarkSelected(value));\n }\n }", "clearSelection() {\n if (!this.disallowEmptySelection && (this.state.selectedKeys === 'all' || this.state.selectedKeys.size > 0)) {\n this.state.setSelectedKeys(new $cc81f14158b02e1e259a5a46d24f0c$export$Selection());\n }\n }", "_unmarkAll() {\n if (!this.isEmpty()) {\n this._selection.forEach(value => this._unmarkSelected(value));\n }\n }", "function selectAllSent(){\r\n\r\n checkBoxSelection(true, 'divSent');\r\n}", "function updateSelectAllCheckbox () {\n var unselectedRows = $(element).find('.select-row:not(:checked)');\n\n if (unselectedRows.length == 0) {\n selectAllCheckbox.prop('checked', true);\n } else {\n selectAllCheckbox.prop('checked', false)\n }\n }", "onSelectAll (name) {\n const f = this.dimProp.find((d) => d.name === name)\n if (!f) return\n\n // if options not filtered then all select items in dimension\n // else append to current selection items from the filter\n if (f.options.length === f.enums.length) {\n f.selection = Array.from(f.options)\n } else {\n const a = f.options.filter(ov => f.selection.findIndex(sv => sv.value === ov.value) < 0)\n f.selection = f.selection.concat(a)\n f.selection.sort(\n (left, right) => (left.value === right.value) ? 0 : ((left.value < right.value) ? -1 : 1)\n )\n }\n\n f.singleSelection = f.selection.length > 0 ? f.selection[0] : {}\n f.options = f.enums\n\n this.updateSelectOrClearView(name)\n }", "function selectall(){\n \n var elem = document.getElementById(\"SelectButton\");\n if (elem.innerHTML==\"Select all\") {\n for (var i = 0; i < 6; i++) {\n filtersc[i].checked =true;\n }\n elem.innerHTML = \"Deselect all\"}\n\n else {elem.innerHTML = \"Select all\";\n for (var i = 0; i < 6; i++) {\n filtersc[i].checked =false;\n }\n}\n}", "selectAll() {\n const that = this;\n\n if ((that.arrayIndexingMode === 'LabVIEW' && that._filledUpTo[0] === -1) ||\n (that.arrayIndexingMode === 'JavaScript' && that._filledUpTo[that._filledUpTo.length - 1] === -1)) {\n return;\n }\n\n const start = new Array(that.dimensions);\n\n start.fill(0);\n\n that._absoluteSelectionStart = start;\n that._absoluteSelectionEnd = that._filledUpTo.slice(0);\n that._refreshSelection();\n }", "function selectAll(select)\n {\n var elementcount=select.options.length;\n var j=0;\n for(j=0;j<elementcount;++j)\n select.options[j].selected=1; //select this option\n }", "function selectAllTrash(){\r\n\r\n checkBoxSelection(true, 'divTrash');\r\n}", "get selectAllOnFocus() {\n\t\treturn this.nativeElement ? this.nativeElement.selectAllOnFocus : undefined;\n\t}", "function selectAll()\r\n\t\t{\r\n\t\t\t$(\":checkbox:visible:not(:checked)\").prop(\"checked\",true)\r\n\t\t\t\t\t\t .each(function(index, element){lsSetVal(\"hosts\", this.id, true)});\r\n\t\t}", "unSelectAll() {\n\n }", "function SelectAllOptions(theSelect) {\n\n for (var i = 0; i < theSelect.options.length; i++) {\n\n theSelect.options[i].selected = true;\n\n}\n\n}", "function setAllSelected() {\n\tvar selected = document.getElementsByTagName(\"select\");\n\tfor (var i=0; i<selected.length; i++) {\n\t\tsetSelected(selected[i]);\n\t}\n}", "function select_all_boxes(select_class_name, input_class_name){\n\t\t$(select_class_name).click(function(){\n\t\t\tif(this.checked){\n\t\t\t\t$(input_class_name).each(function(){\n\t\t\t\t\tthis.checked = true;\n\t\t\t\t});\t\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$(input_class_name).each(function(){\n\t\t\t\t\t\tthis.checked = false;\n\t\t\t\t\t});\t\n\t\t\t\t}\n\t\t});\n\t}", "_selectAllClicked(){\n\t\tconst selectAllState = this.state.selectAllFilters;\n\t\tconst newSelectAllState = !selectAllState;\n\t\tconst searchState = this.state.searchEnabled;\n\t\t// const searchValue = this.searchValue;\n\n\t\tif(searchState){\n\t\t\treturn;\n\t\t}\n\n\t\tconst visibleFiltersValues = this.state.filterList.filter((filterItem) => {\n\t\t\tif(newSelectAllState){\n\t\t\t\treturn (filterItem.visible && !filterItem.selected);\n\t\t\t}else{\n\t\t\t\treturn (filterItem.visible && filterItem.selected);\n\t\t\t}\n\t\t}).map((filterItem) => {\n\t\t\treturn filterItem.key;\n\t\t});\n\n\t\tthis._resetData(visibleFiltersValues, newSelectAllState);\t\t\n\t}", "function selectAll(target, notCheck){\r\n\t\tvar state = $.data(target, 'datagrid');\r\n\t\tvar opts = state.options;\r\n\t\tvar rows = state.data.rows;\r\n\t\tvar selectedRows = $.data(target, 'datagrid').selectedRows;\r\n\t\t\r\n\t\tif (!notCheck && opts.checkOnSelect){\r\n\t\t\tcheckAll(target, true);\t// don't select rows again\r\n\t\t}\r\n\t\topts.finder.getTr(target, '', 'allbody').addClass('datagrid-row-selected');\r\n\t\tif (opts.idField){\r\n\t\t\tfor(var index=0; index<rows.length; index++){\r\n\t\t\t\taddArrayItem(selectedRows, opts.idField, rows[index]);\r\n\t\t\t}\r\n\t\t}\r\n\t\topts.onSelectAll.call(target, rows);\r\n\t}", "function selectAllItems() {\n selectedItems = []\n Object.keys(allItemNames).forEach(itemName => {\n selectItem(itemName)\n })\n updateSelectedItemComponents()\n}", "toggleSelectAll(event) {\n (!this.allCheckboxesSelected) ? this.selectAll() : this.unselectAll()\n }", "function selectAll(target, notCheck, state) {\n if (!state) state = $.data(target, 'datagrid');\n var opts = state.options;\n var rows = state.data.rows;\n state.selectedRows = [];\n var selectedRows = state.selectedRows;\n\n if (!notCheck && opts.checkOnSelect) {\n checkAll(target, true, state);\t// don't select rows again\n }\n opts.finder.getTr(target, '', 'allbody', undefined, state).not( $(\".cannot-select\") ).addClass('datagrid-row-selected');\n if (opts.idField) {\n var sExists = {};\n for (var index = 0, len = rows.length; index < len; index++) {\n if(opts.finder.getTr(target, index, undefined, undefined, state).hasClass('cannot-select'))continue\n var row = rows[index];\n if (row[opts.idField]) {\n if (!sExists[row[opts.idField]]) {\n selectedRows.push(row);\n sExists[row[opts.idField]] = 1;\n }\n } else {\n selectedRows.push(row);\n }\n }\n }\n opts.onSelectAll.call(target, rows);\n }", "function selectAll(obj){\r\n \r\n var objRight=document.getElementById(obj);\r\n \r\n for (var i=0; i<objRight.childNodes.length; i++)\r\n {\r\n //alert(objRight.childNodes[i].nodeName.toLowerCase());\r\n if (objRight.childNodes[i].nodeName.toLowerCase()==\"option\")\r\n objRight.childNodes[i].selected=true;\r\n }\r\n return false\r\n }", "function selectAll() {\n selectElementText(document.getElementById(\"preview\"));\n}", "function selectAllToggle()\n{\n\t$('button.select-all').click(function(){\n\t\tvar $checkboxes = $(this).closest(\"div.category\").find(\"input:checkbox\");\n\t\tif ( $(this).text() === \"Select All\" ) {\n\t\t\t$checkboxes.prop('checked', true);\n\t\t\t$(this).text('Unselect All');\n\t\t} else {\n\t\t\t$checkboxes.removeAttr('checked');\n\t\t\t$(this).text('Select All');\n\t\t}\n\t})\n}", "function selectAll() {\n $(this).parent().parent().next().find('input').click();\n}", "function selectAll(div) {\r\n var m = document.getElementById(div);\r\n for (var i = 0; i < m.options.length; i++) {\r\n m.options[i].selected = true;\r\n }\r\n}", "function selectAll() {\n var $this = $(this);\n var table = $this.closest(\"table\");\n var checkboxes = table.find(\"tbody\").find(\"input[type='checkbox']\");\n var toCheck = $this.prop(\"checked\");\n\n checkboxes.prop(\"checked\", toCheck).each(function(idx, el) {\n selectedDatas[+el.value] = {isSelected: toCheck, data: $(el).data('originalCespite')};\n });\n }" ]
[ "0.7960442", "0.684858", "0.68469757", "0.68469757", "0.68469757", "0.68469757", "0.68469757", "0.6834171", "0.6793573", "0.6772544", "0.67601126", "0.67601126", "0.67601126", "0.67488813", "0.67488813", "0.674015", "0.674015", "0.67336243", "0.67294997", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6716153", "0.6710101", "0.670126", "0.6691937", "0.6689921", "0.6622978", "0.6601104", "0.6571075", "0.655485", "0.65252817", "0.6514514", "0.64954674", "0.6489674", "0.64373523", "0.6433391", "0.64151376", "0.63880074", "0.63719887", "0.6310703", "0.62849617", "0.618614", "0.618614", "0.618614", "0.6184725", "0.61835784", "0.61706245", "0.6157454", "0.6150069", "0.6150069", "0.6135407", "0.613076", "0.61226815", "0.6120708", "0.6120202", "0.61102796", "0.61055857", "0.60897386", "0.6057346", "0.6049073", "0.602475", "0.60102534", "0.6009868", "0.60095334", "0.60006666", "0.60004324", "0.59929174", "0.5978634", "0.5973993", "0.59656835", "0.59618276", "0.59546864", "0.59535515", "0.59314615", "0.5924887", "0.59116334" ]
0.67056537
46
This is a crude lookahead trick to try and notice that we're parsing the argument patterns for a fatarrow function before we actually hit the arrow token. It only works if the arrow is on the same line as the arguments and there's no strange noise (comments) in between. Fallback is to only notice when we hit the arrow, and not declare the arguments as locals for the arrow body.
function findFatArrow(stream, state) { if (state.fatArrowAt) state.fatArrowAt = null; var arrow = stream.string.indexOf("=>", stream.start); if (arrow < 0) return; if (isTS) { // Try to skip TypeScript return type declarations after the arguments var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow)) if (m) arrow = m.index } var depth = 0, sawSomething = false; for (var pos = arrow - 1; pos >= 0; --pos) { var ch = stream.string.charAt(pos); var bracket = brackets.indexOf(ch); if (bracket >= 0 && bracket < 3) { if (!depth) { ++pos; break; } if (--depth == 0) { if (ch == "(") sawSomething = true; break; } } else if (bracket >= 3 && bracket < 6) { ++depth; } else if (wordRE.test(ch)) { sawSomething = true; } else if (/["'\/`]/.test(ch)) { for (;; --pos) { if (pos == 0) return var next = stream.string.charAt(pos - 1) if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break } } } else if (sawSomething && !depth) { ++pos; break; } } if (sawSomething && !depth) state.fatArrowAt = pos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow))\n if (m) arrow = m.index\n }\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow))\n if (m) arrow = m.index\n }\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow))\n if (m) arrow = m.index\n }\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow))\n if (m) arrow = m.index\n }\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow))\n if (m) arrow = m.index\n }\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow))\n if (m) arrow = m.index\n }\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow))\n if (m) arrow = m.index\n }\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n\t\t if (state.fatArrowAt) state.fatArrowAt = null;\n\t\t var arrow = stream.string.indexOf(\"=>\", stream.start);\n\t\t if (arrow < 0) return;\n\n\t\t if (isTS) { // Try to skip TypeScript return type declarations after the arguments\n\t\t var m = /:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(stream.string.slice(stream.start, arrow));\n\t\t if (m) arrow = m.index;\n\t\t }\n\n\t\t var depth = 0, sawSomething = false;\n\t\t for (var pos = arrow - 1; pos >= 0; --pos) {\n\t\t var ch = stream.string.charAt(pos);\n\t\t var bracket = brackets.indexOf(ch);\n\t\t if (bracket >= 0 && bracket < 3) {\n\t\t if (!depth) { ++pos; break; }\n\t\t if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n\t\t } else if (bracket >= 3 && bracket < 6) {\n\t\t ++depth;\n\t\t } else if (wordRE.test(ch)) {\n\t\t sawSomething = true;\n\t\t } else if (/[\"'\\/`]/.test(ch)) {\n\t\t for (;; --pos) {\n\t\t if (pos == 0) return\n\t\t var next = stream.string.charAt(pos - 1);\n\t\t if (next == ch && stream.string.charAt(pos - 2) != \"\\\\\") { pos--; break }\n\t\t }\n\t\t } else if (sawSomething && !depth) {\n\t\t ++pos;\n\t\t break;\n\t\t }\n\t\t }\n\t\t if (sawSomething && !depth) state.fatArrowAt = pos;\n\t\t }", "processPossibleArrowParamEnd() {\n if (this.tokens.matches2(TokenType.parenR, TokenType.colon) && this.tokens.tokenAtRelativeIndex(1).isType) {\n let nextNonTypeIndex = this.tokens.currentIndex() + 1;\n // Look ahead to see if this is an arrow function or something else.\n while (this.tokens.tokens[nextNonTypeIndex].isType) {\n nextNonTypeIndex++;\n }\n if (this.tokens.matches1AtIndex(nextNonTypeIndex, TokenType.arrow)) {\n this.tokens.removeInitialToken();\n while (this.tokens.currentIndex() < nextNonTypeIndex) {\n this.tokens.removeToken();\n }\n this.tokens.replaceTokenTrimmingLeftWhitespace(\") =>\");\n return true;\n }\n }\n return false;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) { if (ch == \"(\") sawSomething = true; break; }\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (/[\"'\\/]/.test(ch)) {\n return;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) break;\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) break;\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) break;\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (wordRE.test(ch)) {\n sawSomething = true;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function findFatArrow(stream, state) {\n\t if (state.fatArrowAt) state.fatArrowAt = null;\n\t var arrow = stream.string.indexOf(\"=>\", stream.start);\n\t if (arrow < 0) return;\n\n\t var depth = 0, sawSomething = false;\n\t for (var pos = arrow - 1; pos >= 0; --pos) {\n\t var ch = stream.string.charAt(pos);\n\t var bracket = brackets.indexOf(ch);\n\t if (bracket >= 0 && bracket < 3) {\n\t if (!depth) { ++pos; break; }\n\t if (--depth == 0) break;\n\t } else if (bracket >= 3 && bracket < 6) {\n\t ++depth;\n\t } else if (wordRE.test(ch)) {\n\t sawSomething = true;\n\t } else if (/[\"'\\/]/.test(ch)) {\n\t return;\n\t } else if (sawSomething && !depth) {\n\t ++pos;\n\t break;\n\t }\n\t }\n\t if (sawSomething && !depth) state.fatArrowAt = pos;\n\t }", "function findFatArrow(stream, state) {\n\t if (state.fatArrowAt) state.fatArrowAt = null;\n\t var arrow = stream.string.indexOf(\"=>\", stream.start);\n\t if (arrow < 0) return;\n\n\t var depth = 0,\n\t sawSomething = false;\n\t for (var pos = arrow - 1; pos >= 0; --pos) {\n\t var ch = stream.string.charAt(pos);\n\t var bracket = brackets.indexOf(ch);\n\t if (bracket >= 0 && bracket < 3) {\n\t if (!depth) {\n\t ++pos;break;\n\t }\n\t if (--depth == 0) break;\n\t } else if (bracket >= 3 && bracket < 6) {\n\t ++depth;\n\t } else if (wordRE.test(ch)) {\n\t sawSomething = true;\n\t } else if (/[\"'\\/]/.test(ch)) {\n\t return;\n\t } else if (sawSomething && !depth) {\n\t ++pos;\n\t break;\n\t }\n\t }\n\t if (sawSomething && !depth) state.fatArrowAt = pos;\n\t }", "function findFatArrow(stream, state) {\n if (state.fatArrowAt) state.fatArrowAt = null;\n var arrow = stream.string.indexOf(\"=>\", stream.start);\n if (arrow < 0) return;\n\n var depth = 0, sawSomething = false;\n for (var pos = arrow - 1; pos >= 0; --pos) {\n var ch = stream.string.charAt(pos);\n var bracket = brackets.indexOf(ch);\n if (bracket >= 0 && bracket < 3) {\n if (!depth) { ++pos; break; }\n if (--depth == 0) break;\n } else if (bracket >= 3 && bracket < 6) {\n ++depth;\n } else if (/[$\\w]/.test(ch)) {\n sawSomething = true;\n } else if (sawSomething && !depth) {\n ++pos;\n break;\n }\n }\n if (sawSomething && !depth) state.fatArrowAt = pos;\n }", "function flowParseArrow() {\n if (match(TokenType.colon)) {\n const oldIsType = pushTypeContext(0);\n const snapshot = state.snapshot();\n\n const oldNoAnonFunctionType = state.noAnonFunctionType;\n state.noAnonFunctionType = true;\n flowParseTypeAndPredicateInitialiser();\n state.noAnonFunctionType = oldNoAnonFunctionType;\n\n if (canInsertSemicolon()) unexpected();\n if (!match(TokenType.arrow)) unexpected();\n\n if (state.error) {\n state.restoreFromSnapshot(snapshot);\n }\n popTypeContext(oldIsType);\n }\n return eat(TokenType.arrow);\n}", "function isParenthesizedArrowFunctionExpression() {\n if (token() === 17 /* OpenParenToken */ || token() === 25 /* LessThanToken */ || token() === 118 /* AsyncKeyword */) {\n return lookAhead(isParenthesizedArrowFunctionExpressionWorker);\n }\n if (token() === 34 /* EqualsGreaterThanToken */) {\n // ERROR RECOVERY TWEAK:\n // If we see a standalone => try to parse it as an arrow function expression as that's\n // likely what the user intended to write.\n return 1 /* True */;\n }\n // Definitely not a parenthesized arrow function.\n return 0 /* False */;\n }", "function parseArrow() {\n if (isTypeScriptEnabled) {\n return tsParseArrow();\n } else if (isFlowEnabled) {\n return flowParseArrow();\n } else {\n return eat(TokenType.arrow);\n }\n}", "function isFlowArrowFunctionTypeAnnotation(path) {\n const { node, parent } = path;\n return (\n node.type === \"FunctionTypeAnnotation\" &&\n (isObjectTypePropertyAFunction(parent) ||\n !(\n ((parent.type === \"ObjectTypeProperty\" ||\n parent.type === \"ObjectTypeInternalSlot\") &&\n !parent.variance &&\n !parent.optional &&\n hasSameLocStart(parent, node)) ||\n parent.type === \"ObjectTypeCallProperty\" ||\n path.getParentNode(2)?.type === \"DeclareFunction\"\n ))\n );\n}", "function visitFunctionCallArguments(traverse, node, path, state) {\n\n utils.catchup(node.callee.range[0], state);\n traverse(node.callee, [node].concat(path), state);\n\n var args = node['arguments'];\n for (var index = 0; index < args.length; ++index) {\n utils.catchup(args[index].range[0], state);\n traverse(args[index], [node].concat(path), state);\n utils.catchup(args[index].range[1], state);\n }\n\n // delete first comma between the last argument and the closing parenthesis\n utils.catchup(node.range[1], state, function(value) {\n return value.replace(\",\", '');\n });\n\n return false;\n}", "function visitFunctionCallArguments(traverse, node, path, state) {\n\n utils.catchup(node.callee.range[0], state);\n traverse(node.callee, [node].concat(path), state);\n\n var args = node['arguments'];\n for (var index = 0; index < args.length; ++index) {\n utils.catchup(args[index].range[0], state);\n traverse(args[index], [node].concat(path), state);\n utils.catchup(args[index].range[1], state);\n }\n\n // delete first comma between the last argument and the closing parenthesis\n utils.catchup(node.range[1], state, function(value) {\n return value.replace(\",\", '');\n });\n\n return false;\n}", "funcArguments () {\n let args = [];\n let ch = this.next('(');\n\n while (ch) {\n ch = this.white();\n if (ch === ')') {\n this.next(')');\n return new Arguments(this, args)\n } else {\n args.push(this.expression());\n ch = this.white();\n }\n if (ch !== ')') { this.next(','); }\n }\n\n this.error('Bad arguments to function');\n }", "function advanceSlash() {\n var regex, previous, check;\n\n function testKeyword(value) {\n return value && (value.length > 1) && (value[0] >= 'a') && (value[0] <= 'z');\n }\n\n previous = extra.tokenValues[extra.tokenValues.length - 1];\n regex = (previous !== null);\n\n switch (previous) {\n case 'this':\n case ']':\n regex = false;\n break;\n\n case ')':\n check = extra.tokenValues[extra.openParenToken - 1];\n regex = (check === 'if' || check === 'while' || check === 'for' || check === 'with');\n break;\n\n case '}':\n // Dividing a function by anything makes little sense,\n // but we have to check for that.\n regex = false;\n if (testKeyword(extra.tokenValues[extra.openCurlyToken - 3])) {\n // Anonymous function, e.g. function(){} /42\n check = extra.tokenValues[extra.openCurlyToken - 4];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : false;\n } else if (testKeyword(extra.tokenValues[extra.openCurlyToken - 4])) {\n // Named function, e.g. function f(){} /42/\n check = extra.tokenValues[extra.openCurlyToken - 5];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : true;\n }\n }\n\n return regex ? collectRegex() : scanPunctuator();\n }", "function advanceSlash() {\n var regex, previous, check;\n\n function testKeyword(value) {\n return value && (value.length > 1) && (value[0] >= 'a') && (value[0] <= 'z');\n }\n\n previous = extra.tokenValues[extra.tokenValues.length - 1];\n regex = (previous !== null);\n\n switch (previous) {\n case 'this':\n case ']':\n regex = false;\n break;\n\n case ')':\n check = extra.tokenValues[extra.openParenToken - 1];\n regex = (check === 'if' || check === 'while' || check === 'for' || check === 'with');\n break;\n\n case '}':\n // Dividing a function by anything makes little sense,\n // but we have to check for that.\n regex = false;\n if (testKeyword(extra.tokenValues[extra.openCurlyToken - 3])) {\n // Anonymous function, e.g. function(){} /42\n check = extra.tokenValues[extra.openCurlyToken - 4];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : false;\n } else if (testKeyword(extra.tokenValues[extra.openCurlyToken - 4])) {\n // Named function, e.g. function f(){} /42/\n check = extra.tokenValues[extra.openCurlyToken - 5];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : true;\n }\n }\n\n return regex ? collectRegex() : scanPunctuator();\n }", "function advanceSlash() {\n var regex, previous, check;\n\n function testKeyword(value) {\n return value && (value.length > 1) && (value[0] >= 'a') && (value[0] <= 'z');\n }\n\n previous = extra.tokenValues[extra.tokens.length - 1];\n regex = (previous !== null);\n\n switch (previous) {\n case 'this':\n case ']':\n regex = false;\n break;\n\n case ')':\n check = extra.tokenValues[extra.openParenToken - 1];\n regex = (check === 'if' || check === 'while' || check === 'for' || check === 'with');\n break;\n\n case '}':\n // Dividing a function by anything makes little sense,\n // but we have to check for that.\n regex = false;\n if (testKeyword(extra.tokenValues[extra.openCurlyToken - 3])) {\n // Anonymous function, e.g. function(){} /42\n check = extra.tokenValues[extra.openCurlyToken - 4];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : false;\n } else if (testKeyword(extra.tokenValues[extra.openCurlyToken - 4])) {\n // Named function, e.g. function f(){} /42/\n check = extra.tokenValues[extra.openCurlyToken - 5];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : true;\n }\n }\n\n return regex ? collectRegex() : scanPunctuator();\n }", "function parseAsyncArrowWithTypeParameters() {\n state.scopeDepth++;\n const startTokenIndex = state.tokens.length;\n parseFunctionParams();\n if (!parseArrow()) {\n return false;\n }\n parseArrowExpression(startTokenIndex);\n return true;\n}", "function advanceSlash() {\n var regex, previous, check;\n\n function testKeyword(value) {\n return value && (value.length > 1) && (value[0] >= 'a') && (value[0] <= 'z');\n }\n\n previous = extra.tokenValues[extra.tokenValues.length - 1];\n regex = (previous !== null);\n\n switch (previous) {\n case 'this':\n case ']':\n regex = false;\n break;\n\n case ')':\n check = extra.tokenValues[extra.openParenToken - 1];\n regex = (check === 'if' || check === 'while' || check === 'for' || check === 'with');\n break;\n\n case '}':\n // Dividing a function by anything makes little sense,\n // but we have to check for that.\n regex = false;\n if (testKeyword(extra.tokenValues[extra.openCurlyToken - 3])) {\n // Anonymous function, e.g. function(){} /42\n check = extra.tokenValues[extra.openCurlyToken - 4];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : false;\n } else if (testKeyword(extra.tokenValues[extra.openCurlyToken - 4])) {\n // Named function, e.g. function f(){} /42/\n check = extra.tokenValues[extra.openCurlyToken - 5];\n regex = check ? (FnExprTokens.indexOf(check) < 0) : true;\n }\n }\n\n return regex ? collectRegex() : scanPunctuator();\n }", "function L() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (Formatter.DEBUG) _vex__WEBPACK_IMPORTED_MODULE_0__[\"Vex\"].L('Vex.Flow.Formatter', args);\n} // Helper function to locate the next non-rest note(s).", "function optArguments_ES6(...args){\n const err=args.shift();\n const callback=(typeof args[args.length-1]=='function')? args.pop() : null;\n const optionalA=(args.length>0) ? args.shift() : null;\n const optionalB=(args.length>0)? args.shift(): null;\n\n if(err && callback) return callback(err);\n\n console.log('optionalA:', optionalA);\n console.log('optionalB:', optionalB);\n console.log('callback:', callback);\n \t }", "function advanceSlash() {\n\t var regex, previous, check;\n\n\t function testKeyword(value) {\n\t return value && (value.length > 1) && (value[0] >= 'a') && (value[0] <= 'z');\n\t }\n\n\t previous = extra.tokenValues[extra.tokens.length - 1];\n\t regex = (previous !== null);\n\n\t switch (previous) {\n\t case 'this':\n\t case ']':\n\t regex = false;\n\t break;\n\n\t case ')':\n\t check = extra.tokenValues[extra.openParenToken - 1];\n\t regex = (check === 'if' || check === 'while' || check === 'for' || check === 'with');\n\t break;\n\n\t case '}':\n\t // Dividing a function by anything makes little sense,\n\t // but we have to check for that.\n\t regex = false;\n\t if (testKeyword(extra.tokenValues[extra.openCurlyToken - 3])) {\n\t // Anonymous function, e.g. function(){} /42\n\t check = extra.tokenValues[extra.openCurlyToken - 4];\n\t regex = check ? (FnExprTokens.indexOf(check) < 0) : false;\n\t } else if (testKeyword(extra.tokenValues[extra.openCurlyToken - 4])) {\n\t // Named function, e.g. function f(){} /42/\n\t check = extra.tokenValues[extra.openCurlyToken - 5];\n\t regex = check ? (FnExprTokens.indexOf(check) < 0) : true;\n\t }\n\t }\n\n\t return regex ? collectRegex() : scanPunctuator();\n\t }", "function test (func, input, expected) { console.log(func.name, \"\\n got:\", applyMaybeCurriedArgs(func, input), \"\\n exp:\", expected) }", "function argsExpectDetail(argDetail) {\n if (argDetail) {\n if (argDetail.charAt(0) !== '-') {\n return argDetail;\n }\n else { console.log(\"failed at firstChar:\" + argDetail.charAt(0) + \";\"); return undefined; }\n }\n else { console.log('failed at arg:' + argDetail + \";\"); return undefined; }\n}", "function parseArrowExpression(startTokenIndex) {\n parseFunctionBody(true);\n const endTokenIndex = state.tokens.length;\n state.scopes.push(new Scope(startTokenIndex, endTokenIndex, true));\n state.scopeDepth--;\n}", "function prepareBadlyRomanticArrow() {\n return (0, _kolmafia.useFamiliar)(familiar);\n}", "function reflectTest(name, block) {\n\t// You cannot access a functions arguments outside of the function itself\n\t// let block_args = block.arguments\n\tblock_str = \"(\" + block.toString() + \")\" // use regex for a disgusting way to access the function source\n\t\t// we need a more abstracted version of what this does\n\t\t// this is incredibly fragile and browser dependent\n\tconsole.log(block_str)\n\tblock.params = [10, 3, 4, 7]\n\t//block(0,800,1,0.9)\n\t//console.log(block.length)\n\tvar ast = acorn.parse(block_str, {ecmaVersion: 2020});\n\t// Get array of parameters\n\t// ast.body[0].expression.params\n\t// 0 is okay because we assert that we only have one function ^\n\n\t// Get array of body statements\n\t//ast.body[0].expression.body.body\n\t\n\t//console.log(ast.body[0].expression.params)\n\t//console.log(ast.body[0].expression.body.body[0].declarations[0].init)\n\t//console.log(ast.body[0].expression.body.body[0].declarations)\n\tvar params = []\n\twalk.full( ast,\n\t\t(node) => {\n\t\t\tif (node.type === 'ArrowFunctionExpression' \n\t\t\t\t|| node.type === 'FunctionDeclaration' \n\t\t\t\t|| node.type === 'FunctionExpression') \n\t\t\t{\n console.log(`There's an arrow function expression declaration node at ${JSON.stringify(node.loc)}`);\n params = node.params.map((param) => {\n\t\t\t\t\tif(param.type === 'Identifier') {\n\t\t\t\t\t\treturn {\"name\":param.name, \"default\": 0}\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.type === 'AssignmentPattern') {\n\t\t\t\t\t\tif(param.right.type === 'Literal') {\n\t\t\t\t\t\t\treturn {\"name\":param.left.name, \"default\":param.right.value}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow 'Default is not a literal!';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n })\n }\n\t\t}\n\t)\n\t\n\tfor(let i = 0; i < params.length; i++) {\n\t\tconsole.log(params[i])\n\t}\n\tconsole.log(\"----------------\")\n\treturn params\n\n\t// Get paramter names\n\t// walk.simple(ast, {\n\t// \tFunction(node) {\n\t// \t\tfor (let i = 0; i < node.params.length; i++) {\n\t// \t\t\tconsole.log(node.params[i].name);\n\t// \t\t}\n\t// \t}\n\t\t\n\t// }\n\t// )\n\n\t/*\n\t\tIdentifier(node) {\n\t\t console.log(`Found an identifier: ${node.name}`)\n\t\t}\n\t\t*/\n}", "function parseParenAndDistinguishExpression(canBeArrow) {\n // Assume this is a normal parenthesized expression, but if we see an arrow, we'll bail and\n // start over as a parameter list.\n const snapshot = state.snapshot();\n\n const startTokenIndex = state.tokens.length;\n expect(TokenType.parenL);\n\n let first = true;\n\n while (!match(TokenType.parenR) && !state.error) {\n if (first) {\n first = false;\n } else {\n expect(TokenType.comma);\n if (match(TokenType.parenR)) {\n break;\n }\n }\n\n if (match(TokenType.ellipsis)) {\n parseRest(false /* isBlockScope */);\n parseParenItem();\n break;\n } else {\n parseMaybeAssign(false, true);\n }\n }\n\n expect(TokenType.parenR);\n\n if (canBeArrow && shouldParseArrow()) {\n const wasArrow = parseArrow();\n if (wasArrow) {\n // It was an arrow function this whole time, so start over and parse it as params so that we\n // get proper token annotations.\n state.restoreFromSnapshot(snapshot);\n state.scopeDepth++;\n // Don't specify a context ID because arrow functions don't need a context ID.\n parseFunctionParams();\n parseArrow();\n parseArrowExpression(startTokenIndex);\n return true;\n }\n }\n\n return false;\n}", "while (true) {\n\t\t\t\tif (Identifier === token.type) {\n\t\t\t\t\tconst parameter = parseIdentifier();\n\t\t\t\t\t// Function parameters are local.\n\t\t\t\t\tscopeIdentifier(parameter);\n\n\t\t\t\t\tparameters.push(parameter);\n\n\t\t\t\t\tif (consume(\",\")) continue;\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\t// No arguments are allowed after a vararg.\n\t\t\t\telse if (VarargLiteral === token.type) {\n\t\t\t\t\tscopeIdentifierName(\"...\");\n\t\t\t\t\thas_varargs = true;\n\t\t\t\t\tparsePrimaryExpression(true);\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tthrow tokenError(errors.expectedType, meta, token, \"<name> or «...»\");\n\t\t\t\t}\n\t\t\t}", "function evaluateArrowFunctionExpression(options) {\n const { node, environment, evaluate, stack, statementTraversalStack, reporting, typescript } = options;\n const arrowFunctionExpression = hasModifier(node, typescript.SyntaxKind.AsyncKeyword)\n ? async (...args) => {\n // Prepare a lexical environment for the function context\n const localLexicalEnvironment = cloneLexicalEnvironment(environment);\n // Define a new binding for a return symbol within the environment\n setInLexicalEnvironment({ env: localLexicalEnvironment, path: RETURN_SYMBOL, value: false, newBinding: true, reporting, node });\n // Define a new binding for the arguments given to the function\n // eslint-disable-next-line prefer-rest-params\n setInLexicalEnvironment({ env: localLexicalEnvironment, path: \"arguments\", value: arguments, newBinding: true, reporting, node });\n // Evaluate the parameters based on the given arguments\n evaluateParameterDeclarations(Object.assign(Object.assign({}, options), { node: node.parameters, environment: localLexicalEnvironment }), args);\n // If the body is a block, evaluate it as a statement\n if (typescript.isBlock(node.body)) {\n evaluate.statement(node.body, localLexicalEnvironment);\n // If a 'return' has occurred within the block, pop the Stack and return that value\n if (pathInLexicalEnvironmentEquals(node, localLexicalEnvironment, true, RETURN_SYMBOL)) {\n return stack.pop();\n }\n // Otherwise, return 'undefined'. Nothing is returned from the function\n else\n return undefined;\n }\n // Otherwise, the body is itself an expression\n else {\n return evaluate.expression(node.body, localLexicalEnvironment, statementTraversalStack);\n }\n }\n : (...args) => {\n // Prepare a lexical environment for the function context\n const localLexicalEnvironment = cloneLexicalEnvironment(environment);\n // Define a new binding for a return symbol within the environment\n setInLexicalEnvironment({ env: localLexicalEnvironment, path: RETURN_SYMBOL, value: false, newBinding: true, reporting, node });\n // Define a new binding for the arguments given to the function\n // eslint-disable-next-line prefer-rest-params\n setInLexicalEnvironment({ env: localLexicalEnvironment, path: \"arguments\", value: arguments, newBinding: true, reporting, node });\n // Evaluate the parameters based on the given arguments\n evaluateParameterDeclarations(Object.assign(Object.assign({}, options), { node: node.parameters, environment: localLexicalEnvironment }), args);\n // If the body is a block, evaluate it as a statement\n if (typescript.isBlock(node.body)) {\n evaluate.statement(node.body, localLexicalEnvironment);\n // If a 'return' has occurred within the block, pop the Stack and return that value\n if (pathInLexicalEnvironmentEquals(node, localLexicalEnvironment, true, RETURN_SYMBOL)) {\n return stack.pop();\n }\n // Otherwise, return 'undefined'. Nothing is returned from the function\n else\n return undefined;\n }\n // Otherwise, the body is itself an expression\n else {\n return evaluate.expression(node.body, localLexicalEnvironment, statementTraversalStack);\n }\n };\n arrowFunctionExpression.toString = () => `[Function: anonymous]`;\n // Make sure to use the Function that is contained within the Realm. Otherwise, 'instanceof' checks may fail\n // since this particular function comes from the executing context.\n Object.setPrototypeOf(arrowFunctionExpression, getFromLexicalEnvironment(node, environment, \"Function\").literal);\n return arrowFunctionExpression;\n}", "function functionDeclaration31a(foo = \"=>\", bar = \"()\") { return \"foo\"; }", "parseArgumentDefs() {\n return this.optionalMany(\n TokenKind.PAREN_L,\n this.parseInputValueDef,\n TokenKind.PAREN_R,\n );\n }", "function functionDeclaration31(foo = \"=>\", bar = \"()\") { return \"foo\"; }", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__[\"TokenKind\"].PAREN_L)) {\n return [];\n }\n\n return many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__[\"TokenKind\"].PAREN_L, parseInputValueDef, _lexer__WEBPACK_IMPORTED_MODULE_3__[\"TokenKind\"].PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_L)) {\n return [];\n }\n\n return many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_L, parseInputValueDef, _lexer__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_L)) {\n return [];\n }\n\n return many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_L, parseInputValueDef, _lexer__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_R);\n}", "function\n// a\nf\n// b\n(\n// c\nx\n// d\n,\n// e\ny\n// f\n)\n// g\n{\n// h\n;\n// i\n;\n// j\n}", "function isFunctionHadBeenCalled(path) {\n let node = path.node || path;\n let result = [];\n // console.log(node.callee);\n try {\n if (node.type === 'CallExpression') {\n \n // console.log(node.type, '----> isFunctionHadBeenCalled')\n // 1. for fn() / await fn() / () => fn()\n if (node.callee.type === 'Identifier') {\n setResult(node.callee, result);\n }\n\n // 2. for jsx: onClick={a.bind(this, 1)} \n // for: this.hello()\n // onClick={a.bind(this, fn)} fn 函数作为参数暂时检测不了\n // a.b() 暂不支持\n // 因为一般 a = {b: fn} b 暂时检测不了是函数\n if (\n node.callee &&\n node.callee.type === 'MemberExpression'\n ) {\n const object = node.callee.object;\n // a.bind(null, args)\n if (object.type === 'Identifier') {\n setResult(object, result);\n } else if (object.type === 'ThisExpression') {\n // this.hello()\n setResult(node.callee.property, result);\n }\n }\n\n // for a(arguments)\n if (node.arguments.length > 0) {\n node.arguments.forEach(item => {\n handleData(item, result);\n })\n }\n } \n\n // return argument\n if (node.type === 'ReturnStatement') {\n handleData(node.argument, result);\n }\n\n // 3. for jsx: onClick={a} / onClick={this.hello()}\n if (\n node.type === 'JSXExpressionContainer' &&\n node.expression \n ) {\n const expression = node.expression;\n // onClick={a}\n if (expression.type === 'Identifier') {\n setResult(expression, result);\n } else if (expression.type === 'MemberExpression') {\n const object = expression.object;\n if (object.type === 'ThisExpression') {\n // onClick={this.hello()}\n setResult(expression.property, result);\n }\n }\n }\n\n // const a = {fn} || const a = [fn]\n if (\n node.type === 'ObjectExpression' || \n node.type === 'ArrayExpression'\n ) {\n handleData(node, result);\n }\n\n if (result.length > 0) {\n result.forEach(item => eventEmitter.emit(FUNCTION_CALL, item));\n }\n } catch (error) {\n console.log('isFunctionHadBeenCalled catch error:');\n console.log(error);\n }\n}", "function foo( a, b ) {\n console.log( `[foo] arguments = `, arguments );\n\n // Step 3: Capture 2 arguments for the inner function and log them. Also log the arguments object.\n let bar = () => {\n\n }\n\n bar( 3, 4 );\n}", "function splattedBlock(args) {\n\n if (!_.isFunction(args[args.length - 1])) {\n throw \"invalid input: last argument must be a callback!\";\n }\n\n var fn = args.pop();\n return [args, fn];\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _tokenKind__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_L)) {\n return [];\n }\n\n return many(lexer, _tokenKind__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_L, parseInputValueDef, _tokenKind__WEBPACK_IMPORTED_MODULE_4__[\"TokenKind\"].PAREN_R);\n}", "function getImmediatelyContainingArgumentInfo(node, position, sourceFile) {\n if (node.parent.kind === 174 /* CallExpression */ || node.parent.kind === 175 /* NewExpression */) {\n var callExpression = node.parent;\n // There are 3 cases to handle:\n // 1. The token introduces a list, and should begin a sig help session\n // 2. The token is either not associated with a list, or ends a list, so the session should end\n // 3. The token is buried inside a list, and should give sig help\n //\n // The following are examples of each:\n //\n // Case 1:\n // foo<#T, U>(#a, b) -> The token introduces a list, and should begin a sig help session\n // Case 2:\n // fo#o<T, U>#(a, b)# -> The token is either not associated with a list, or ends a list, so the session should end\n // Case 3:\n // foo<T#, U#>(a#, #b#) -> The token is buried inside a list, and should give sig help\n // Find out if 'node' is an argument, a type argument, or neither\n if (node.kind === 25 /* LessThanToken */ ||\n node.kind === 17 /* OpenParenToken */) {\n // Find the list that starts right *after* the < or ( token.\n // If the user has just opened a list, consider this item 0.\n var list = getChildListThatStartsWithOpenerToken(callExpression, node, sourceFile);\n var isTypeArgList = callExpression.typeArguments && callExpression.typeArguments.pos === list.pos;\n ts.Debug.assert(list !== undefined);\n return {\n kind: isTypeArgList ? 0 /* TypeArguments */ : 1 /* CallArguments */,\n invocation: callExpression,\n argumentsSpan: getApplicableSpanForArguments(list, sourceFile),\n argumentIndex: 0,\n argumentCount: getArgumentCount(list)\n };\n }\n // findListItemInfo can return undefined if we are not in parent's argument list\n // or type argument list. This includes cases where the cursor is:\n // - To the right of the closing paren, non-substitution template, or template tail.\n // - Between the type arguments and the arguments (greater than token)\n // - On the target of the call (parent.func)\n // - On the 'new' keyword in a 'new' expression\n var listItemInfo = ts.findListItemInfo(node);\n if (listItemInfo) {\n var list = listItemInfo.list;\n var isTypeArgList = callExpression.typeArguments && callExpression.typeArguments.pos === list.pos;\n var argumentIndex = getArgumentIndex(list, node);\n var argumentCount = getArgumentCount(list);\n ts.Debug.assert(argumentIndex === 0 || argumentIndex < argumentCount, \"argumentCount < argumentIndex, \" + argumentCount + \" < \" + argumentIndex);\n return {\n kind: isTypeArgList ? 0 /* TypeArguments */ : 1 /* CallArguments */,\n invocation: callExpression,\n argumentsSpan: getApplicableSpanForArguments(list, sourceFile),\n argumentIndex: argumentIndex,\n argumentCount: argumentCount\n };\n }\n return undefined;\n }\n else if (node.kind === 11 /* NoSubstitutionTemplateLiteral */ && node.parent.kind === 176 /* TaggedTemplateExpression */) {\n // Check if we're actually inside the template;\n // otherwise we'll fall out and return undefined.\n if (ts.isInsideTemplateLiteral(node, position)) {\n return getArgumentListInfoForTemplate(node.parent, /*argumentIndex*/ 0, sourceFile);\n }\n }\n else if (node.kind === 12 /* TemplateHead */ && node.parent.parent.kind === 176 /* TaggedTemplateExpression */) {\n var templateExpression = node.parent;\n var tagExpression = templateExpression.parent;\n ts.Debug.assert(templateExpression.kind === 189 /* TemplateExpression */);\n var argumentIndex = ts.isInsideTemplateLiteral(node, position) ? 0 : 1;\n return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile);\n }\n else if (node.parent.kind === 197 /* TemplateSpan */ && node.parent.parent.parent.kind === 176 /* TaggedTemplateExpression */) {\n var templateSpan = node.parent;\n var templateExpression = templateSpan.parent;\n var tagExpression = templateExpression.parent;\n ts.Debug.assert(templateExpression.kind === 189 /* TemplateExpression */);\n // If we're just after a template tail, don't show signature help.\n if (node.kind === 14 /* TemplateTail */ && !ts.isInsideTemplateLiteral(node, position)) {\n return undefined;\n }\n var spanIndex = templateExpression.templateSpans.indexOf(templateSpan);\n var argumentIndex = getArgumentIndexForTemplatePiece(spanIndex, node, position);\n return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile);\n }\n return undefined;\n }", "function assignableArg(fragment) {\n if (fragment === undefined) {\n text = assignableArg(text)\n\t\tif (text === undefined) {\n\t\t\ttext = \"\"\n\t\t}\n\t\treturn\n\t}\n\n\tfragment = fragment.trim()\n\tvar prefix = getRegexPrefix(INDEXED_RE, fragment)\n \n\tif (prefix === false) {\n\t\tfragment = nameArg(fragment)\n\t} else {\n\t\tfragment = fragment.substring(prefix.length)\n\t\tfragment = expressionArg(fragment)\n fragment = expect(\")\", fragment)\n\n\t\tprogram.push(prefix)\n\t}\n\t\n\treturn fragment\n}", "function parseArgumentDefs(lexer$$1) {\n if (!peek(lexer$$1, lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer$$1, lexer.TokenKind.PAREN_L, parseInputValueDef, lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n\t if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n\t return [];\n\t }\n\t return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n\t}", "function parseArgumentDefs(lexer) {\n\t if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n\t return [];\n\t }\n\t return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n\t}", "function Params() {\n if (currentToken() == \"(\") {\n nextToken();\n ArgList();\n if (currentToken() == \")\") {\n nextToken();\n return;\n } else {\n let errorMessage = \"Não foi encontrado o fechamento da lista de parâmetros da função\";\n handleError(errorMessage);\n nextToken();\n }\n } else {\n return;\n }\n }", "function tsTryParseGenericAsyncArrowFunction() {\n const snapshot = state.snapshot();\n\n tsParseTypeParameters();\n parseFunctionParams();\n tsTryParseTypeOrTypePredicateAnnotation();\n expect(TokenType.arrow);\n\n if (state.error) {\n state.restoreFromSnapshot(snapshot);\n return false;\n }\n\n parseFunctionBody(true);\n return true;\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function validateOptionalArgType(functionName,type,position,argument){if(argument!==undefined){validateArgType(functionName,type,position,argument);}}", "function firstArg() {\n\treturn arguments != \"\" ? [...arguments].shift() : undefined;\n}", "function typedParseConditional(noIn) {\n // If we see ?:, this can't possibly be a valid conditional. typedParseParenItem will be called\n // later to finish off the arrow parameter. We also need to handle bare ? tokens for optional\n // parameters without type annotations, i.e. ?, and ?) .\n if (match(TokenType.question)) {\n const nextType = lookaheadType();\n if (nextType === TokenType.colon || nextType === TokenType.comma || nextType === TokenType.parenR) {\n return;\n }\n }\n baseParseConditional(noIn);\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, _lexer.TokenKind.PAREN_L)) {\n return [];\n }\n\n return many(lexer, _lexer.TokenKind.PAREN_L, parseInputValueDef, _lexer.TokenKind.PAREN_R);\n}", "function tsFillSignature(returnToken) {\n // Arrow fns *must* have return token (`=>`). Normal functions can omit it.\n const returnTokenRequired = returnToken === TokenType.arrow;\n tsTryParseTypeParameters();\n expect(TokenType.parenL);\n // Create a scope even though we're doing type parsing so we don't accidentally\n // treat params as top-level bindings.\n state.scopeDepth++;\n tsParseBindingListForSignature(false /* isBlockScope */);\n state.scopeDepth--;\n if (returnTokenRequired) {\n tsParseTypeOrTypePredicateAnnotation(returnToken);\n } else if (match(returnToken)) {\n tsParseTypeOrTypePredicateAnnotation(returnToken);\n }\n}", "function arrowFn() {\n alert(\"hello from the return of the second sayHi\");\n\n }", "function parseFunctionCall(name) {\n let token, args = [], arg = {};\n\n token = lexer.next();\n if (!matchOp(token, '(')) {\n throw new SyntaxError('Expecting ( in a function call \"' + name + '\"');\n }\n\n token = lexer.peek();\n if (!matchOp(token, ')')) {\n if (name.indexOf(\"step\") >= 0) {\n arg = parseArgument();\n }\n else {\n args = parseArgumentList();\n }\n }\n\n token = lexer.next();\n if (!matchOp(token, ')')) {\n throw new SyntaxError('Expecting ) in a function call \"' + name + '\"');\n }\n if (name.indexOf(\"step\") >= 0) {\n return arg;\n }\n else {\n return {\n 'FunctionCall': {\n 'name': name,\n 'args': args\n }\n }\n }\n }", "function trailingFunctionArgument(args, includeNoop = true) {\n const callback = util_1.asFunction(util_1.last(args));\n return includeNoop || util_1.isUserFunction(callback) ? callback : undefined;\n}", "function trailingFunctionArgument(args, includeNoop = true) {\n const callback = util_1.asFunction(util_1.last(args));\n return includeNoop || util_1.isUserFunction(callback) ? callback : undefined;\n}", "function parseArguments() {\n var args = [], expr;\n\n expect('(');\n\n if (!match(')')) {\n while (startIndex < length) {\n if (match('...')) {\n expr = new Node();\n lex();\n expr.finishSpreadElement(isolateCoverGrammar(parseAssignmentExpression));\n } else {\n expr = isolateCoverGrammar(parseAssignmentExpression);\n }\n args.push(expr);\n if (match(')')) {\n break;\n }\n expectCommaSeparator();\n }\n }\n\n expect(')');\n\n return args;\n }", "function parseDecoratorArgs(args = []) {\n if (!args.length) {\n return [];\n }\n\n return args.map((arg) => {\n if (arg.type === 'StringLiteral') {\n return {\n type: arg.type,\n value: arg.value,\n };\n } else if (arg.type === 'Identifier') {\n return {\n type: arg.type,\n value: arg.name,\n };\n } else if (arg.type === 'NullLiteral') {\n return {\n type: arg.type,\n value: 'null',\n };\n } else if (arg.type === 'ObjectExpression') {\n const value = {};\n arg.properties.forEach((prop) => {\n const key = prop.key.type === 'StringLiteral' ? prop.key.value : prop.key.name;\n value[key] = parseDecoratorArgs([prop.value])[0];\n });\n\n return {\n type: arg.type,\n value,\n };\n } else if (arg.type === 'CallExpression') {\n // for each argument passed to the fun, parse out its value by calling this func\n return {\n type: arg.type,\n value: kebabCase(arg.callee.name),\n args: parseDecoratorArgs(arg.arguments),\n };\n }\n\n return {\n type: 'unknown',\n };\n });\n }", "function parseArgumentList() {\n let token, expr, args = [];\n\n while (true) {\n expr = parseExpression();\n if (typeof expr === 'undefined') {\n // TODO maybe throw exception?\n break;\n }\n args.push(expr);\n token = lexer.peek();\n if (!matchOp(token, ',')) {\n break;\n }\n lexer.next();\n }\n\n return args;\n }", "function isLongCurriedCallExpression( path ) {\n\tconst node = path.getValue();\n\tconst parent = path.getParentNode();\n\treturn isCallOrOptionalCallExpression( node ) && isCallOrOptionalCallExpression( parent ) && parent.callee === node && node.arguments.length > parent.arguments.length && parent.arguments.length > 0;\n}", "function ruleFunc() {\n\tvar node = false;\n\tvar args = {name:\"LX_ARGS\", children:[]};\n\n\tif (accept(\"LX_FUNC\")) {\n\t node = {name:_curr.name, children:[]};\n\t shift();\n\t if (!expect(\"LX_LPAREN\") || !shift())\n\t\treturn (false);\n\t if (expect(\"LX_ID\")) {\n\t\targs.children.push({name:_curr.name, val:_curr.val});\n\t\tshift();\n\t\twhile (accept(\"LX_COMMA\") && shift()) {\n\t\t if (!expect(\"LX_ID\"))\n\t\t\treturn (false);\n\t\t args.children.push({name:_curr.name, val:_curr.val});\n\t\t shift();\n\t\t}\n\t }\n\t node.children.push(args);\n\t if (!expect(\"LX_RPAREN\") || !shift())\n\t\treturn (false);\n\t node.children.push(ruleBlock());\n\t}\n\treturn (node);\n }", "function fn1(a/*: boolean*/, b/*: number*/)/*: void*/ {}", "function ArrowFunctionExpression(node, print) {\n\t if (node.async) this.push(\"async \");\n\n\t if (node.params.length === 1 && t.isIdentifier(node.params[0])) {\n\t print.plain(node.params[0]);\n\t } else {\n\t this._params(node, print);\n\t }\n\n\t this.push(\" => \");\n\n\t var bodyNeedsParens = t.isObjectExpression(node.body);\n\n\t if (bodyNeedsParens) {\n\t this.push(\"(\");\n\t }\n\n\t print.plain(node.body);\n\n\t if (bodyNeedsParens) {\n\t this.push(\")\");\n\t }\n\t}", "function ArrowFunctionExpression(node, print) {\n\t if (node.async) this.push(\"async \");\n\n\t if (node.params.length === 1 && t.isIdentifier(node.params[0])) {\n\t print.plain(node.params[0]);\n\t } else {\n\t this._params(node, print);\n\t }\n\n\t this.push(\" => \");\n\n\t var bodyNeedsParens = t.isObjectExpression(node.body);\n\n\t if (bodyNeedsParens) {\n\t this.push(\"(\");\n\t }\n\n\t print.plain(node.body);\n\n\t if (bodyNeedsParens) {\n\t this.push(\")\");\n\t }\n\t}", "function parseArgumentList() {\n var token, expr, args = [];\n\n while (true) {\n expr = parseExpression();\n if (typeof expr === 'undefined') {\n // TODO maybe throw exception?\n break;\n }\n args.push(expr);\n token = lexer.peek();\n if (!matchOp(token, ',')) {\n break;\n }\n lexer.next();\n }\n\n return args;\n }", "function parseGroupExpression() {\n var expr, expressions, startToken, i, params = [];\n\n expect('(');\n\n if (match(')')) {\n lex();\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [],\n rawParams: []\n };\n }\n\n startToken = lookahead;\n if (match('...')) {\n expr = parseRestElement(params);\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n isBindingElement = true;\n expr = inheritCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n isAssignmentTarget = false;\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n\n if (match('...')) {\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n expressions.push(parseRestElement(params));\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n isBindingElement = false;\n for (i = 0; i < expressions.length; i++) {\n reinterpretExpressionAsPattern(expressions[i]);\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expressions\n };\n }\n\n expressions.push(inheritCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n\n expect(')');\n\n if (match('=>')) {\n if (expr.type === Syntax.Identifier && expr.name === 'yield') {\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n\n if (expr.type === Syntax.SequenceExpression) {\n for (i = 0; i < expr.expressions.length; i++) {\n reinterpretExpressionAsPattern(expr.expressions[i]);\n }\n } else {\n reinterpretExpressionAsPattern(expr);\n }\n\n expr = {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expr.type === Syntax.SequenceExpression ? expr.expressions : [expr]\n };\n }\n isBindingElement = false;\n return expr;\n }", "function parseGroupExpression() {\n var expr, expressions, startToken, i, params = [];\n\n expect('(');\n\n if (match(')')) {\n lex();\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [],\n rawParams: []\n };\n }\n\n startToken = lookahead;\n if (match('...')) {\n expr = parseRestElement(params);\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n isBindingElement = true;\n expr = inheritCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n isAssignmentTarget = false;\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n\n if (match('...')) {\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n expressions.push(parseRestElement(params));\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n isBindingElement = false;\n for (i = 0; i < expressions.length; i++) {\n reinterpretExpressionAsPattern(expressions[i]);\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expressions\n };\n }\n\n expressions.push(inheritCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n\n expect(')');\n\n if (match('=>')) {\n if (expr.type === Syntax.Identifier && expr.name === 'yield') {\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n\n if (expr.type === Syntax.SequenceExpression) {\n for (i = 0; i < expr.expressions.length; i++) {\n reinterpretExpressionAsPattern(expr.expressions[i]);\n }\n } else {\n reinterpretExpressionAsPattern(expr);\n }\n\n expr = {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expr.type === Syntax.SequenceExpression ? expr.expressions : [expr]\n };\n }\n isBindingElement = false;\n return expr;\n }", "function parseGroupExpression() {\n var expr, expressions, startToken, i, params = [];\n\n expect('(');\n\n if (match(')')) {\n lex();\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [],\n rawParams: []\n };\n }\n\n startToken = lookahead;\n if (match('...')) {\n expr = parseRestElement(params);\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n isBindingElement = true;\n expr = inheritCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n isAssignmentTarget = false;\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n\n if (match('...')) {\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n expressions.push(parseRestElement(params));\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n isBindingElement = false;\n for (i = 0; i < expressions.length; i++) {\n reinterpretExpressionAsPattern(expressions[i]);\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expressions\n };\n }\n\n expressions.push(inheritCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n\n expect(')');\n\n if (match('=>')) {\n if (expr.type === Syntax.Identifier && expr.name === 'yield') {\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n\n if (expr.type === Syntax.SequenceExpression) {\n for (i = 0; i < expr.expressions.length; i++) {\n reinterpretExpressionAsPattern(expr.expressions[i]);\n }\n } else {\n reinterpretExpressionAsPattern(expr);\n }\n\n expr = {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expr.type === Syntax.SequenceExpression ? expr.expressions : [expr]\n };\n }\n isBindingElement = false;\n return expr;\n }", "function foo() {\n\tvar a = arguments[0] !== (void 0) ? arguments[0] : 2;\n\tconsole.log( a );\n}", "function parseArgumentDefs(lexer) {\n if (!peek(lexer, TokenKind.PAREN_L)) {\n return [];\n }\n\n return many(lexer, TokenKind.PAREN_L, parseInputValueDef, TokenKind.PAREN_R);\n}", "function f3(a,...b){}", "function parseGroupExpression() {\n var expr, expressions, startToken, i, params = [];\n\n expect('(');\n\n if (match(')')) {\n lex();\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [],\n rawParams: []\n };\n }\n\n startToken = lookahead;\n if (match('...')) {\n expr = parseRestElement(params);\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n isBindingElement = true;\n expr = inheritCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n isAssignmentTarget = false;\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n\n if (match('...')) {\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n expressions.push(parseRestElement(params));\n expect(')');\n if (!match('=>')) {\n expect('=>');\n }\n isBindingElement = false;\n for (i = 0; i < expressions.length; i++) {\n reinterpretExpressionAsPattern(expressions[i]);\n }\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expressions\n };\n }\n\n expressions.push(inheritCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n\n expect(')');\n\n if (match('=>')) {\n if (expr.type === Syntax.Identifier && expr.name === 'yield') {\n return {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: [expr]\n };\n }\n\n if (!isBindingElement) {\n throwUnexpectedToken(lookahead);\n }\n\n if (expr.type === Syntax.SequenceExpression) {\n for (i = 0; i < expr.expressions.length; i++) {\n reinterpretExpressionAsPattern(expr.expressions[i]);\n }\n } else {\n reinterpretExpressionAsPattern(expr);\n }\n\n expr = {\n type: PlaceHolders.ArrowParameterPlaceHolder,\n params: expr.type === Syntax.SequenceExpression ? expr.expressions : [expr]\n };\n }\n isBindingElement = false;\n return expr;\n }" ]
[ "0.65002364", "0.65002364", "0.65002364", "0.65002364", "0.65002364", "0.65002364", "0.65002364", "0.6379487", "0.5909741", "0.58358055", "0.5675954", "0.5675954", "0.5675954", "0.5672122", "0.56436837", "0.5634487", "0.5597511", "0.5436599", "0.5396029", "0.53609353", "0.5207874", "0.5207874", "0.5145331", "0.51345587", "0.51345587", "0.5133932", "0.5063182", "0.5048005", "0.50382954", "0.50370365", "0.49926987", "0.4992554", "0.48490098", "0.48395684", "0.4837544", "0.48044288", "0.48031098", "0.47861776", "0.4782549", "0.47519726", "0.47384888", "0.46934533", "0.46911827", "0.46872762", "0.46872762", "0.4683126", "0.4673578", "0.46733442", "0.46728006", "0.4670518", "0.4649768", "0.46496034", "0.46427488", "0.46349302", "0.46349302", "0.46255273", "0.46189243", "0.45940316", "0.45940316", "0.45940316", "0.45940316", "0.45940316", "0.45940316", "0.45940316", "0.45940316", "0.45940316", "0.45940316", "0.45629138", "0.4560085", "0.45540914", "0.4542011", "0.45316988", "0.45294356", "0.45185998", "0.4514329", "0.4514329", "0.45089835", "0.45057407", "0.44986632", "0.44964123", "0.44893748", "0.44734067", "0.44725007", "0.44725007", "0.44602343", "0.44572824", "0.44572824", "0.44572824", "0.44548327", "0.44516996", "0.4451392", "0.44210806" ]
0.64995736
15
Variables: xSrc, ySrc : coordinates in source image xDst, yDst : coordinates in destination (projected) image uSrc, vSrc : uniform coordinates in source image uDst, vDst : uniform coordinates in destination image wSrc, hSrc : width and height of source image wDst, hDst : width and height of destination image Assumption: pixels have a dimension (are not infinitely small). Then source image has coordinates (x,y) = ([0..width],[0..height]). Or, otherwise, coordinates (u,v) = ([0.5..0.5],[0.5..0.5]) This corresponds to ([hfov/2..hfov/2],[vfov/2..vfov/2]). So: xAngSrc = hfov (xSrc / wSrc 0.5) xSrc = wSrc (xAngSrc / hfov + 0.5) And: xDst = wDst tan(xAngSrc) = wDst tan(hfov (xSrc / wSrc 0.5)) xAngSrc = atan(xDst) / wDst xSrc = wSrc ((atan(xDst) / wDst) / hfov + 0.5 Or: xAngSrc = hfov uSrc uSrc = xAngSrc / hfov And: uDst = tan(xAngSrc) = tan(hfov uSrc) xAngSrc = atan(uDst) uSrc = atan(uDst) / hfov Same for y dimension of course.
function JSPanoViewer(opts) { var debug = false; // Set to true to enable some debug information // Private variables (non-changeable after initialization) var containerId; // id of pano container var container; // pano container var imageUrl; // url of source image var image; // source image var slices; // array with vertical image slices var wSlice; // Width of each slice (in screen pixels) // Image parameters for source and destination image (screen): // width, height, horizontal/vertical field of view var wSrc, hSrc, hFovSrc, vFovSrc; var wDst, hDst, hFovDst, vFovDst; var angCenter; // View angle var mode; var optShift, optScale, optMath, optPower; var optCircleSize; // Set default options this.setDefaults(); // Supplied options override default options this.setOptions(opts); // Load CSS, if not already loaded if(!this.cssLoaded) this.loadCss(); this.init(); this.addControls(); if(typeof(this.imageUrl) != 'undefined') { this.loadImage(this.imageUrl); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "project(ax, ay, az, angles){\r\n var x = ax - this.camera_p.x;\r\n var y = ay - this.camera_p.y;\r\n var z = az - this.camera_p.z;\r\n \r\n var dx = angles.cy*(angles.sz*y + angles.cz*x) - angles.sy*z;\r\n var dy = angles.sx*(angles.cy*z + angles.sy*(angles.sz*y + angles.cz*x)) + angles.cx*(angles.cz*y - angles.sz*x);\r\n var dz = angles.cx*(angles.cy*z + angles.sy*(angles.sz*y + angles.cz*x)) - angles.sx*(angles.cz*y - angles.sz*x);\r\n return {x: (this.view_p.z*dx)/dz - this.view_p.x, y: (this.view_p.z*dy)/dz - this.view_p.y, dx:dx, dy:dy, dz:dz};\r\n }", "function bilinear(src, params) {\n console.log('bilinear transformation');\n var w = src.w, h = src.h;\n\n var p00 = new Point2(parseFloat(params[0]), parseFloat(params[1]));\n var p10 = new Point2(parseFloat(params[2]), parseFloat(params[3]));\n var p01 = new Point2(parseFloat(params[4]), parseFloat(params[5]));\n var p11 = new Point2(parseFloat(params[6]), parseFloat(params[7]));\n\n var v1 = Vector2.fromPoint2(p00, p10);\n var v2 = Vector2.fromPoint2(p00, p01);\n var v3 = Vector2.fromPoint2(p11, p01);\n var e1 = v1.normalized();\n var e2 = v2.normalized();\n\n var corners = {\n x: [p00.x, p10.x, p01.x, p11.x],\n y: [p00.y, p10.y, p01.y, p11.y]\n };\n\n console.log(corners);\n\n var minX = Math.min(0, corners.x.min());\n var minY = Math.min(0, corners.y.min());\n var maxX = Math.max(w, corners.x.max());\n var maxY = Math.max(h, corners.y.max());\n\n var neww = Math.ceil(maxX - minX);\n var newh = Math.ceil(maxY - minY);\n\n var offset = {\n x: Math.round(minX),\n y: Math.round(minY)\n };\n\n console.log(offset);\n\n var dst = new RGBAImage(neww, newh);\n\n if( mapping == 'inverse' ) {\n console.log('inverse mapping');\n // inverse mapping\n for(var i= 0, idx=0;i<newh;i++) {\n var y = i;\n for(var j=0;j<neww;j++, idx+=dst.channels) {\n var x = j;\n\n var p = new Point2(x, y);\n\n // solve for a and b\n // p00 + v1 * a + v2 * b - (v1 + v3) * ab = p\n // equivalent to\n // (x00 - x) + x1 * a + x2 * b - (x1 + x3) * ab = 0\n // (y00 - y) + y1 * a + y2 * b - (y1 + y3) * ab = 0\n\n // (x00 - x) + x1 * a + b * (x2 - (x1 + x3) * a) = 0\n // (y00 - y) + y1 * a + b * (y2 - (y1 + y3) * a) = 0\n\n // b = - (x00 - x + x1 * a) / (x2 - (x1 + x3) * a)\n // b = - (y00 - y + y1 * a) / (y2 - (y1 + y3) * a)\n\n // (x00 - x + x1 * a) / (x2 - (x1 + x3) * a) = (y00 - y + y1 * a) / (y2 - (y1 + y3) * a)\n // (x00 - x + x1 * a) * (y2 - (y1 + y3) * a) = (y00 - y + y1 * a) * (x2 - (x1 + x3) * a)\n // equivalent to\n // A * a^2 + B * a + C = 0\n // A = x1*(y1+y3) -y1*(x1+x3)\n // B = (x00-x)*(y1+y3) - y2*x1 + x2*y1 - (y00-y)*(x1+x3)\n // C = (y00-y)*x2 - (x00-x)*y2\n var A = v1.x*(v1.y+v3.y) - v1.y*(v1.x+v3.x);\n var B = (p00.x-p.x)*(v1.y+v3.y)-v2.y*v1.x+v2.x*v1.y-(p00.y-p.y)*(v1.x+v3.x);\n var C = (p00.y- p.y)*v2.x-(p00.x- p.x)*v2.y;\n var roots = quadraticSolve(A, B, C);\n\n if( roots.length == 0 ) {\n // set the pixel to black\n dst.setPixel(j, i, Color.BLACK);\n }\n else {\n var a = roots.min();\n if( a < 0 ) a = roots.max();\n if( a < 0 || a > 1.0 ) {\n dst.setPixel(j, i, Color.BLACK);\n continue;\n }\n var b = ( - (p00.x - p.x + v1.x * a) / (v2.x - (v1.x + v3.x) * a) )\n || (- (p00.y - p.y + v1.y * a) / (v2.y - (v1.y + v3.y) * a));\n\n if( b < 0 || b > 1.0 ) {\n dst.setPixel(j, i, Color.BLACK);\n continue;\n }\n else {\n // set the pixel by bilinearly sampling the source image\n dst.setPixel(j, i, src.sample(a*(w-1), b*(h-1)));\n }\n }\n }\n }\n }\n else\n {\n console.log('forward mapping');\n // forward mapping\n // set all pixels to black\n for(var y=0;y<newh;y++) {\n for(var x=0;x<neww;x++) {\n dst.setPixel(x, y, Color.BLACK);\n }\n }\n\n for(var i= 0;i<h;i++) {\n var y = i;\n for(var j=0;j<w;j++) {\n var x = j;\n\n var a = x / (w-1);\n var b = y / (h-1);\n\n var p = p00.add(v1.mul(a)).add(v2.mul(b)).sub(v1.add(v3).mul(a*b));\n\n p.x += offset.x;\n p.y += offset.y;\n\n if( p.x < 0 || p.y < 0 || p.x >= neww || p.y >= newh ) {\n }\n else\n {\n // set the pixel by bilinearly sampling the source image\n dst.setPixel(Math.round(p.x), Math.round(p.y), src.getPixel(x, y));\n }\n }\n }\n }\n\n // draw the boundaries of the original image\n for(var x=0;x<w;x++) {\n dst.setPixel(x-offset.x, 0 - offset.y, Color.RED);\n dst.setPixel(x-offset.x, h-1 - offset.y, Color.RED);\n }\n for(var y=0;y<h;y++) {\n dst.setPixel(0-offset.x, y - offset.y, Color.RED);\n dst.setPixel(w-1-offset.x, y - offset.y, Color.RED);\n }\n\n // put the original image in background\n for(var y=0;y<h;y++) {\n for(var x=0;x<w;x++) {\n var c1 = src.getPixel(x,y).mul(0.4);\n var c2 = dst.getPixel(x-offset.x, y-offset.y);\n var alpha = 1.0;\n if( c2.equal(Color.BLACK) ) alpha = 0.0;\n var c = Color.interpolate(c2, c1, alpha);\n c.a = 255;\n dst.setPixel(x-offset.x, y-offset.y, c);\n }\n }\n\n return dst;\n }", "function projectPoint(modelViewMatrix, projMatrix, viewport, src, dest) {\n\tif (!dest)\n\t\tdest = new Float32Array(3);\n\n\t_v0[0] = src[0]; _v0[1] = src[1]; _v0[2] = src[2]; _v0[3] = 1;\n\n\t// transform point from model space to clip space\n\ttransformVector4(modelViewMatrix, _v0, _v1);\n\ttransformVector4(projMatrix, _v1, _v0);\n\n\t/* to normalized device coordinates */\n\t_v0[0] /= _v0[3];\n\t_v0[1] /= _v0[3];\n\t_v0[2] /= _v0[3];\n\n\t/* to window coordinates */\n\tdest[0] = viewport[0] + 0.5 * (1 + _v0[0]) * viewport[2];\n\tdest[1] = -viewport[1] + 0.5 * (1 - _v0[1]) * viewport[3];\n\tdest[2] = 0.5 * (1 + _v0[2]);\n\n\treturn dest;\n}", "function makeFrustum(fovy, aspect, near, far) {\n var ymax = near * Math.tan( fovy * Math.PI / 360 );\n var ymin = -ymax;\n var xmax = ymax * aspect;\n var xmin = ymin * aspect;\n\n return {\n\t\txmin: xmin, \n\t\txmax: xmax, \n\t\tymin: ymin, \n\t\tymax: ymax, \n\t\tnear: near, \n\t\tfar: far\n };\n}", "project() {\r\n for (let j = 0; j < this.objs.length; j++) {\r\n let item = this.objs[j];\r\n for (let i = 0; i < item.vertexs.length && i < 3; i++) {\r\n if (item.changed[i]) { // if the drawable has moved position\r\n let fur = this.locate(item.vertexs[i]);\r\n let htheta = Math.atan(fur[2]/fur[0]); // verticle theta\r\n let vtheta = Math.atan(fur[1]/fur[0]); // horizontal theta\r\n\r\n //console.log('fur', fur, 'horiz theta', htheta, 'verticle theta', vtheta);\r\n\r\n if (Math.abs(htheta) < this.cam.fovHoriz && \r\n Math.abs(vtheta) < this.cam.fovVert) item._visible[i] = true;\r\n else item._visible[i] = false;\r\n\r\n // this could be changed to be xy scaled by distance?\r\n let w = this.cvs.width/2;\r\n let h = this.cvs.height/2;\r\n item.projected[i] = [\r\n w + (htheta/this.cam.fovHoriz * w), \r\n h - (vtheta/this.cam.fovVert * h), \r\n fur[2]\r\n ];\r\n \r\n //console.log('vertex visible', item._visible[i], item.projected[i]);\r\n }\r\n }\r\n \r\n }\r\n }", "update(viewMatrix, projectionMatrix) {\n _math_Matrix44__WEBPACK_IMPORTED_MODULE_0__[\"default\"].multiplyTo(projectionMatrix, viewMatrix, this.__vp);\n this.zNear.x = this.__vp.m20 + this.__vp.m30;\n this.zNear.y = this.__vp.m21 + this.__vp.m31;\n this.zNear.z = this.__vp.m22 + this.__vp.m32;\n this.zNear.w = this.__vp.m23 + this.__vp.m33;\n this.zNear.normalize3();\n this.zFar.x = -this.__vp.m20 + this.__vp.m30;\n this.zFar.y = -this.__vp.m21 + this.__vp.m31;\n this.zFar.z = -this.__vp.m22 + this.__vp.m32;\n this.zFar.w = -this.__vp.m23 + this.__vp.m33;\n this.zFar.normalize3();\n this.bottom.x = this.__vp.m10 + this.__vp.m30;\n this.bottom.y = this.__vp.m11 + this.__vp.m31;\n this.bottom.z = this.__vp.m12 + this.__vp.m32;\n this.bottom.w = this.__vp.m13 + this.__vp.m33;\n this.bottom.normalize3();\n this.top.x = -this.__vp.m10 + this.__vp.m30;\n this.top.y = -this.__vp.m11 + this.__vp.m31;\n this.top.z = -this.__vp.m12 + this.__vp.m32;\n this.top.w = -this.__vp.m13 + this.__vp.m33;\n this.top.normalize3();\n this.left.x = this.__vp.m00 + this.__vp.m30;\n this.left.y = this.__vp.m01 + this.__vp.m31;\n this.left.z = this.__vp.m02 + this.__vp.m32;\n this.left.w = this.__vp.m03 + this.__vp.m33;\n this.left.normalize3();\n this.right.x = -this.__vp.m00 + this.__vp.m30;\n this.right.y = -this.__vp.m01 + this.__vp.m31;\n this.right.z = -this.__vp.m02 + this.__vp.m32;\n this.right.w = -this.__vp.m03 + this.__vp.m33;\n this.right.normalize3();\n }", "applyRotsOnVertAndHoriz(vdegs, hdegs) {\nvar DEGS_TO_RADS, qrotH, qrotV;\n//----------------------\nDEGS_TO_RADS = AvatarCamera.DEGS_TO_RADS;\nif (vdegs !== 0) {\nqrotV = AvatarCamera.createRotation(this.Y_UNIT, vdegs * DEGS_TO_RADS);\nRQ.setProductQV(this.qCamRot, qrotV, this.qCamRot);\n}\nif (hdegs !== 0) {\nqrotH = AvatarCamera.createRotation(this.X_UNIT, hdegs * DEGS_TO_RADS);\nRQ.setProductQV(this.qCamRot, this.qCamRot, qrotH);\n}\n// Assume at least one of our arguments is non-zero.\n// We need the transpose to give the inversion required for the\n// view matrix.\nreturn RQ.setRotMat4x4TransposeFromQV(this.viewMat, this.qCamRot);\n}", "get fov() {return this._p.fov;}", "static transformPoint(m, dst, src) {\n const x = src[0];\n const y = src[1];\n dst[0] = m[0] * x + m[3] * y + m[6];\n dst[1] = m[1] * x + m[4] * y + m[7];\n return dst;\n }", "function vox2 ( fb, edits ) {\n var { w, h } = fb\n var left = bottom = -1\n var right = top = 1\n var rangex = right - left\n var rangey = top - bottom\n\n for ( var i = 0, cx, cy, x, y; i < w * h; i++ ) {\n cx = floor(i / w)\n cy = i % w\n x = lerp(left, right, cx / rangex)\n y = lerp(bottom, top, cy / rangey)\n console.log({ cx, cy, x, y })\n }\n}", "function Camera(startPos, wView, hView, ctx) {\n this.direction = {x: 0, y: 0};\n this.x = startPos.x;\n this.y = startPos.y;\n this.width = wView;\n this.height = hView;\n this.scale = 1;\n\n this.toWorld = function(clientX, clientY) {\n return [\n clientX/this.scale - ((wView/this.scale/2) - this.x),\n clientY/this.scale - ((hView/this.scale/2) - this.y)\n ]\n };\n\n this.zoom = function() {\n if (this.scale == 1) {\n this.scale = 0.75;\n } else {\n this.scale = 1;\n }\n };\n\n this.update = function(mod) {\n if (this.direction.x == 1) {\n this.x += 5;\n }\n if (this.direction.x == -1) {\n this.x -= 5;\n }\n if (this.direction.y == 1) {\n this.y += 5;\n }\n if (this.direction.y == -1) {\n this.y -= 5;\n }\n };\n\n this.render = function() {\n // Apply the scale first\n ctx.scale(this.scale, this.scale);\n // Move the scene, in relation to the middle of the viewport ()\n ctx.translate(this.width/this.scale/2 - this.x, (this.height/this.scale/2) - this.y);\n };\n\n this.inside = function(x, y, width, height) {\n // target x + 1/2 width of target should be great than left bound\n // left bound = camera.x (center) - width/2\n // width should be / by scale\n if (x + width/2/this.scale > this.x - ((this.width/this.scale)/2)\n && x - width/2/this.scale < this.x + ((this.width/this.scale)/2)) {\n if (y + height/2/this.scale > this.y - ((this.height/this.scale)/2)\n && y - height/2/this.scale < this.y + ((this.height/this.scale)/2)) {\n return true\n }\n }\n return false\n };\n}", "resizeImageData(src,newParam,toCopy) {\n\t\tif(src.width==newParam.width&&src.height==newParam.height) {\n\t\t\tif(toCopy){\n\t\t\t\tif(src.left==newParam.left&&src.top==newParam.top){ // No need to change\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // simply move\n\t\t\t\tsrc.left=newParam.left;\n\t\t\t\tsrc.top=newParam.top;\n\t\t\t\tsrc.validArea={ // clear\n\t\t\t\t\twidth: 0,\n\t\t\t\t\theight: 0,\n\t\t\t\t\tleft: 0,\n\t\t\t\t\ttop: 0\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthis.vramManager.verify(src);\n\t\t// copy to tmp\n\t\tconst tmp=this.tmpImageData;\n\t\t// if(src.width>tmp.width||src.height>tmp.height) {\n\t\t// \tLOGGING&&console.warn(\"Resize Imagedata: Tmp texture (\"\n\t\t// \t\t+tmp.width+\"x\"+tmp.height+\") smaller than target (\"\n\t\t// \t\t+src.width+\"x\"+src.height+\"), may be cropped\");\n\t\t// }\n\t\tif(toCopy) { // Try the best to cover larger area\n\t\t\tthis.clearImageData(tmp,null,false);\n\t\t\tconst l1=src.validArea.left;\n\t\t\tconst l2=src.validArea.left+src.validArea.width-tmp.width;\n\t\t\ttmp.left=0;\n\t\t\tif(l1>0) tmp.left=l1;\n\t\t\tif(l2<0) tmp.left=l2;\n\n\t\t\tconst t1=src.validArea.top;\n\t\t\tconst t2=src.validArea.top+src.validArea.height-tmp.height;\n\t\t\ttmp.top=0;\n\t\t\tif(t1>0) tmp.top=t1;\n\t\t\tif(t2<0) tmp.top=t2;\n\n\t\t\ttmp.validArea={...src.validArea}; // src.validArea may shrink\n\t\t\tthis.blendImageData(src,tmp,{mode: BasicRenderer.SOURCE});\n\t\t}\n\n\t\t// resize\n\t\tconst gl=this.gl;\n\t\tgl.bindTexture(gl.TEXTURE_2D,src.data);\n\t\tgl.texImage2D(\n\t\t\tgl.TEXTURE_2D,0,gl.RGBA,\n\t\t\tnewParam.width,newParam.height,0, // size[w,h], border(0)\n\t\t\tgl.RGBA,this.dataFormat,null\n\t\t);\n\t\tsrc.width=newParam.width;\n\t\tsrc.height=newParam.height;\n\t\tsrc.left=newParam.left;\n\t\tsrc.top=newParam.top;\n\t\tsrc.validArea={width: 0,height: 0,left: 0,top: 0};\n\n\t\t// copy back\n\t\tif(toCopy) {\n\t\t\tthis.blendImageData(tmp,src,{mode: BasicRenderer.SOURCE});\n\t\t}\n\t}", "static makeProjectionMatrix(fov, znear, zfar, aspectRatio){\n \n let t = 1/Math.tan(fov/2);\n \n return Matrix.make(\n [\n [(1/aspectRatio)*t, 0, 0, 0 ],\n \n [ 0, t, 0, 0 ],\n \n [ 0, 0, (-znear-zfar)/(znear-zfar), (2*znear*zfar)/(znear-zfar)],\n \n [ 0, 0, 1, 0 ]\n ]\n );\n}", "updateRatio(w, h){\n\n if(this._isPerspective){\n this._camera.aspect = w / h ;\n this._camera.updateProjectionMatrix();\n }else{\n var wRatio = this._windowSize.width / window.innerWidth;\n var hRatio = this._windowSize.height / window.innerHeight;\n\n this._camera.left /= wRatio;\n this._camera.right /= wRatio;\n this._camera.top /= hRatio;\n this._camera.bottom /= hRatio;\n }\n\n this._windowSize.width = window.innerWidth;\n this._windowSize.height = window.innerHeight;\n }", "frustumMat4(left, right, bottom, top, near, far, dest) {\n if (!dest) {\n dest = math.mat4();\n }\n const rl = (right - left);\n const tb = (top - bottom);\n const fn = (far - near);\n dest[0] = (near * 2) / rl;\n dest[1] = 0;\n dest[2] = 0;\n dest[3] = 0;\n dest[4] = 0;\n dest[5] = (near * 2) / tb;\n dest[6] = 0;\n dest[7] = 0;\n dest[8] = (right + left) / rl;\n dest[9] = (top + bottom) / tb;\n dest[10] = -(far + near) / fn;\n dest[11] = -1;\n dest[12] = 0;\n dest[13] = 0;\n dest[14] = -(far * near * 2) / fn;\n dest[15] = 0;\n return dest;\n }", "function trackball_ptov(x, y, v)\n{\n var d, a;\n\n\t/*\n\t * project x,y onto a hemisphere centered within width, height, note z is up\n\t * here\n\t */\n v[0] = x;\n v[1] = y; \n d = v[0] * v[0] + v[1] * v[1];\n\tif (d > 1) {\n\t\tv[2] = 0.0;\n\t} else {\n\t\tv[2] = Math.sqrt(1.0 - d);\n\t}\n\n\ta = 1.0 / Math.sqrt(v[0]*v[0] + v[1]*v[1] + v[2]*v[2]);\n v[0] *= a; \n\tv[1] *= a; \n\tv[2] *= a;\n}", "static makeViewMatrix(cameraPos, target, cameraUp){\n // cameraForward\n let f = Vector.sub(cameraPos, target);\n Vector.normalize(f);\n \n // cameraRight\n let r = Vector.cross(cameraUp, f);\n Vector.normalize(r);\n \n // should be unit vector already\n let v = Vector.cross(f, r);\n \n let p = cameraPos;\n \n return Matrix.make(\n [\n [r[0], r[1], r[2], -r[0]*p[0]-r[1]*p[1]-r[2]*p[2] ],\n [v[0], v[1], v[2], -v[0]*p[0]-v[1]*p[1]-v[2]*p[2] ],\n [f[0], f[1], f[2], -f[0]*p[0]-f[1]*p[1]-f[2]*p[2] ],\n [ 0, 0, 0, 1 ]\n ]\n );\n}", "function downscaleImg (srcIDData, tgtIDData, nh, nw) {\r\n let rowsize = nw * 4;\r\n let sx = nw / 16.0;\r\n let sy = nh / 16.0;\r\n let sxy = sx * sy;\r\n// console.log(\"sx: \"+sx+\" sy: \"+sy+\" sxy: \"+sxy);\r\n let px; // Start of square to average\r\n let py = 0.0;\r\n let psx, psy; // End of square to average\r\n let pxInt, pyInt, psxInt, psyInt; // Smallest bounding square in integer coordinates\r\n let psxInt_1, psyInt_1; // psxInt and psyInt minus 1 when psx and psy are not integers\r\n let i, j;\r\n let pxTmp, pyTmp;\r\n let r, g, b, a, avgR, avgG, avgB, avgA; // Average per channel\r\n let wx, wy, wxy; // Weights to apply to each point\r\n//let swx, swy;\r\n let waxay, swaxay;\r\n let srcIndex;\r\n let tgtIndex = 0;\r\n for (j=0 ; j<16 ; j++,py=psy) { // Go through each target point (i,j)\r\n psy = py + sy;\r\n pyInt = Math.trunc(py);\r\n\tpsyInt = psyInt_1 = Math.trunc(psy);\r\n\tif (psyInt < psy) psyInt++;\r\n\tpx = 0.0;\r\n\tfor (i=0 ; i<16 ; i++,px=psx) {\r\n\t psx = px + sx;\r\n\t pxInt = Math.trunc(px);\r\n\t psxInt = psxInt_1 = Math.trunc(psx);\r\n\t if (psxInt < psx) psxInt++;\r\n/*\r\nif (py < 2)\r\nconsole.log(\"px,py,psx,psy: \"+px+\",\"+py+\",\"+psx+\",\"+psy+\",\");\r\nif (py < 2)\r\nconsole.log(\"pxInt,pyInt,psxInt,psyInt: \"+pxInt+\",\"+pyInt+\",\"+psxInt+\",\"+psyInt+\",\");\r\nswy = 0;\r\n*/\r\n\t // One pixel in target image corresponds to a square (px,py,psx,psy) of pixels at source\r\n\t // Do an average of that square.\r\n\t // Note: IDData objects are Uint8ClampedArray in RGBA order (4 bytes each pixel)\r\n swaxay = avgR = avgG = avgB = avgA = 0;\r\n\t // Go through each point in (pxInt,pyInt,psxInt,psyInt)\r\n\t for (pyTmp=pyInt ; pyTmp<psyInt ; pyTmp++) {\r\n\t\tsrcIndex = pyTmp*rowsize + pxInt*4;\r\n\t\tif (pyTmp == pyInt) {\r\n\t\t wy = pyInt + 1 - py; \r\n\t\t}\r\n\t\telse if (pyTmp == psyInt_1) {\r\n\t\t wy = psy - psyInt_1;\r\n\t\t}\r\n\t\telse {\r\n\t\t wy = 1;\r\n\t\t}\r\n//swy += wy;\r\n//swx = 0;\r\n\t\tfor (pxTmp=pxInt ; pxTmp<psxInt ; pxTmp++) {\r\n\t\t if (pxTmp == pxInt) {\r\n\t\t wx = pxInt + 1 - px; \r\n\t\t }\r\n\t\t else if (pxTmp == psxInt_1) {\r\n\t\t\twx = psx - psxInt_1;\r\n\t\t }\r\n\t\t else {\r\n\t\t\twx = 1;\r\n\t\t }\r\n//swx += wx;\r\n r = srcIDData[srcIndex++];\r\n g = srcIDData[srcIndex++];\r\n b = srcIDData[srcIndex++];\r\n a = srcIDData[srcIndex++];\r\n\t\t wxy = wx * wy;\r\n // Account for transparency in the weighted sum\r\n\t\t waxay = wx * a / 255 * wy * a / 255;\r\n\t\t swaxay += waxay;\r\n\t\t avgR += r * waxay;\r\n\t\t avgG += g * waxay;\r\n\t\t avgB += b * waxay;\r\n\t\t avgA += a * wxy;\r\n//if (py < 2)\r\n//console.log(\"wx,wy,wxy,waxay,R,G,B,A: \"+wx+\",\"+wy+\",\"+wxy+\",\"+waxay+\",\"+avgR+\",\"+avgG+\",\"+avgB+\",\"+avgA+\",\");\r\n\t\t}\r\n//if (py < 2)\r\n//console.log(\"swx: \"+swx);\r\n\t }\r\n//if (py < 2)\r\n//console.log(\"swy: \"+swy);\r\n/*\r\n\t // Take the closest pixel to center of the square (px,py,psx,psy)\r\n\t pyTmp = py + sy / 2;\r\n\t pxTmp = px + sx / 2;\r\n\t pyInt = Math.round(pyTmp);\r\n\t pxInt = Math.round(pxTmp);\r\n\t srcIndex = pyInt*rowsize + pxInt*4;\r\n\t avgR = srcIDData[srcIndex++];\r\n\t avgG = srcIDData[srcIndex++];\r\n\t avgB = srcIDData[srcIndex++];\r\n\t avgA = srcIDData[srcIndex];\r\n\t sxy = 1;\r\n*/\r\n//console.log(\"swaxay,sxy,swxy: \"+swaxay+\",\"+sxy+\",\"+swx*swy);\r\n if (swaxay == 0) {\r\n \t tgtIDData[tgtIndex++] = 0;\r\n\t tgtIDData[tgtIndex++] = 0;\r\n\t tgtIDData[tgtIndex++] = 0;\r\n\t tgtIDData[tgtIndex++] = avgA / sxy;\r\n }\r\n else {\r\n\t tgtIDData[tgtIndex++] = avgR / swaxay;\r\n\t tgtIDData[tgtIndex++] = avgG / swaxay;\r\n\t tgtIDData[tgtIndex++] = avgB / swaxay;\r\n\t tgtIDData[tgtIndex++] = avgA / sxy;\r\n }\r\n\t}\r\n }\r\n}", "verticalFov() {\n return this.fov / this.aspect;\n }", "function PerspectiveTransform( a11, a21, a31, a12, a22, a32, a13, a23, a33)\r\n{\r\n\tthis.a11 = a11;\r\n\tthis.a12 = a12;\r\n\tthis.a13 = a13;\r\n\tthis.a21 = a21;\r\n\tthis.a22 = a22;\r\n\tthis.a23 = a23;\r\n\tthis.a31 = a31;\r\n\tthis.a32 = a32;\r\n\tthis.a33 = a33;\r\n\tthis.transformPoints1=function( points)\r\n\t\t{\r\n\t\t\tvar max = points.length;\r\n\t\t\tvar a11 = this.a11;\r\n\t\t\tvar a12 = this.a12;\r\n\t\t\tvar a13 = this.a13;\r\n\t\t\tvar a21 = this.a21;\r\n\t\t\tvar a22 = this.a22;\r\n\t\t\tvar a23 = this.a23;\r\n\t\t\tvar a31 = this.a31;\r\n\t\t\tvar a32 = this.a32;\r\n\t\t\tvar a33 = this.a33;\r\n\t\t\tfor (var i = 0; i < max; i += 2)\r\n\t\t\t{\r\n\t\t\t\tvar x = points[i];\r\n\t\t\t\tvar y = points[i + 1];\r\n\t\t\t\tvar denominator = a13 * x + a23 * y + a33;\r\n\t\t\t\tpoints[i] = (a11 * x + a21 * y + a31) / denominator;\r\n\t\t\t\tpoints[i + 1] = (a12 * x + a22 * y + a32) / denominator;\r\n\t\t\t}\r\n\t\t}\r\n\tthis. transformPoints2=function(xValues, yValues)\r\n\t\t{\r\n\t\t\tvar n = xValues.length;\r\n\t\t\tfor (var i = 0; i < n; i++)\r\n\t\t\t{\r\n\t\t\t\tvar x = xValues[i];\r\n\t\t\t\tvar y = yValues[i];\r\n\t\t\t\tvar denominator = this.a13 * x + this.a23 * y + this.a33;\r\n\t\t\t\txValues[i] = (this.a11 * x + this.a21 * y + this.a31) / denominator;\r\n\t\t\t\tyValues[i] = (this.a12 * x + this.a22 * y + this.a32) / denominator;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\tthis.buildAdjoint=function()\r\n\t\t{\r\n\t\t\t// Adjoint is the transpose of the cofactor matrix:\r\n\t\t\treturn new PerspectiveTransform(this.a22 * this.a33 - this.a23 * this.a32, this.a23 * this.a31 - this.a21 * this.a33, this.a21 * this.a32 - this.a22 * this.a31, this.a13 * this.a32 - this.a12 * this.a33, this.a11 * this.a33 - this.a13 * this.a31, this.a12 * this.a31 - this.a11 * this.a32, this.a12 * this.a23 - this.a13 * this.a22, this.a13 * this.a21 - this.a11 * this.a23, this.a11 * this.a22 - this.a12 * this.a21);\r\n\t\t}\r\n\tthis.times=function( other)\r\n\t\t{\r\n\t\t\treturn new PerspectiveTransform(this.a11 * other.a11 + this.a21 * other.a12 + this.a31 * other.a13, this.a11 * other.a21 + this.a21 * other.a22 + this.a31 * other.a23, this.a11 * other.a31 + this.a21 * other.a32 + this.a31 * other.a33, this.a12 * other.a11 + this.a22 * other.a12 + this.a32 * other.a13, this.a12 * other.a21 + this.a22 * other.a22 + this.a32 * other.a23, this.a12 * other.a31 + this.a22 * other.a32 + this.a32 * other.a33, this.a13 * other.a11 + this.a23 * other.a12 +this.a33 * other.a13, this.a13 * other.a21 + this.a23 * other.a22 + this.a33 * other.a23, this.a13 * other.a31 + this.a23 * other.a32 + this.a33 * other.a33);\r\n\t\t}\r\n\r\n}", "function pj_transform(srcdefn, dstdefn, xx, yy, zz) {\n var point_count = xx.length;\n var lp = {};\n var xy = {};\n var err, i, tmp;\n\n if (srcdefn.axis != 'enu') {\n pj_adjust_axis(srcdefn.axis, false, xx, yy, zz);\n }\n\n if (srcdefn.vto_meter != 1 && zz) {\n for ( i = 0; i < point_count; i++ )\n zz[i] *= srcdefn.vto_meter;\n }\n\n // convert to lat/lng, if needed\n if (srcdefn.is_geocent) {\n if (!zz) {\n error(PJD_ERR_GEOCENTRIC);\n }\n if (srcdefn.to_meter != 1) {\n for (i = 0; i < point_count; i++) {\n if (xx[i] != HUGE_VAL ) {\n xx[i] *= srcdefn.to_meter;\n yy[i] *= srcdefn.to_meter;\n }\n }\n }\n pj_geocentric_to_geodetic(srcdefn.a_orig, srcdefn.es_orig, xx, yy, zz);\n\n } else if (!srcdefn.is_latlong) {\n if (!srcdefn.inv3d && !srcdefn.inv) {\n // Proj.4 returns error code -17 (a bug?)\n fatal(\"source projection not invertible\");\n }\n if (srcdefn.inv3d) {\n fatal(\"inverse 3d transformations not supported\");\n } else {\n for (i=0; i<point_count; i++) {\n xy.x = xx[i];\n xy.y = yy[i];\n tmp = pj_inv(xy, srcdefn);\n xx[i] = tmp.lam;\n yy[i] = tmp.phi;\n check_fatal_error(); // Proj.4 is a bit different\n }\n }\n }\n\n if (srcdefn.from_greenwich !== 0) {\n for (i=0; i<point_count; i++) {\n if (xx[i] != HUGE_VAL) {\n xx[i] += srcdefn.from_greenwich;\n }\n }\n }\n\n if (srcdefn.has_geoid_vgrids && zz) {\n fatal(\"vgrid transformation not supported\");\n }\n\n pj_datum_transform(srcdefn, dstdefn, xx, yy, zz);\n\n if (dstdefn.has_geoid_vgrids && zz) {\n fatal(\"vgrid transformation not supported\");\n }\n\n if (dstdefn.from_greenwich !== 0) {\n for (i=0; i<point_count; i++) {\n if (xx[i] != HUGE_VAL) {\n xx[i] -= dstdefn.from_greenwich;\n }\n }\n }\n\n if (dstdefn.is_geocent) {\n if (!zz) {\n error(PJD_ERR_GEOCENTRIC);\n }\n pj_geodetic_to_geocentric(dstdefn.a_orig, dstdefn.es_orig, xx, yy, zz);\n\n if (dstdefn.fr_meter != 1) {\n for (i = 0; i<point_count; i++) {\n if (xx[i] != HUGE_VAL) {\n xx[i] *= dstdefn.fr_meter;\n yy[i] *= dstdefn.fr_meter;\n }\n }\n }\n } else if (!dstdefn.is_latlong) {\n if (dstdefn.fwd3d) {\n fatal(\"3d transformation not supported\");\n } else {\n for (i=0; i<point_count; i++) {\n lp.lam = xx[i];\n lp.phi = yy[i];\n tmp = pj_fwd(lp, dstdefn);\n xx[i] = tmp.x;\n yy[i] = tmp.y;\n check_fatal_error(); // Proj.4 is a bit different\n }\n }\n } else if (dstdefn.is_latlong && dstdefn.is_long_wrap_set) {\n for (i=0; i<point_count; i++) {\n if (xx[i] == HUGE_VAL) continue;\n while (xx[i] < dstdefn.long_wrap_center - M_PI) {\n xx[i] += M_TWOPI;\n }\n while (xx[i] > dstdefn.long_wrap_center + M_PI) {\n xx[i] -= M_TWOPI;\n }\n }\n }\n\n if (dstdefn.vto_meter != 1 && zz) {\n for (i=0; i<point_count; i++) {\n zz[i] *= dstdefn.vfr_meter;\n }\n }\n if (dstdefn.axis != 'enu') {\n pj_adjust_axis(dstdefn.axis, true, xx, yy, zz);\n }\n\n return point_count == 1 ? ctx.last_errno : 0;\n}", "project(mode) {\n this.mode = mode;\n let controlsOpts = this.controls;\n\n let aspect = this.aspect;\n //let frustumSize = controlsOpts.boxHeight;\n let distance = controlsOpts.distance;\n\n if (mode === 'perspective') {\n this._camera = new PerspectiveCamera(this.fov, this.aspect, this.near, this.far);\n //默认绘制的物体是贴近近裁面的,根据近裁面呈现高度为frustumSize的物体需要相机位置\n //let centerPosition = new Vector3(0, 0, (this.far - this.near)/2);\n\n\n // let vFOV = _Math.degToRad(this.fov); // convert vertical fov to radians\n\n // var dist = frustumSize / (2 * Math.tan(vFOV / 2));\n this._camera.position.set(0, 0, distance);\n\n\n\n } else {\n //给定一个大的投影空间,方便数据的计算\n //this._camera = new OrthographicCamera(frustumSize * aspect / -2, frustumSize * aspect / 2, frustumSize / 2, frustumSize / - 2, this.near, this.far);\n this._camera = new OrthographicCamera(controlsOpts.boxWidth / -2, controlsOpts.boxWidth / 2, controlsOpts.boxHeight / 2, controlsOpts.boxHeight / - 2, this.near, this.far);\n this._camera.position.set(0, 0, distance);\n }\n\n // console.info(\"getVisableSize\", this.getVisableSize());\n\n }", "function updateFrustrum(camera, mousePos0, mousePos1, frustum) {\n let pos0 = new THREE.Vector3(Math.min(mousePos0.x, mousePos1.x), Math.min(mousePos0.y, mousePos1.y));\n let pos1 = new THREE.Vector3(Math.max(mousePos0.x, mousePos1.x), Math.max(mousePos0.y, mousePos1.y));\n \n // build near and far planes first\n {\n // camera direction IS normal vector for near frustum plane\n // say - plane is looking \"away\" from you\n let cameraDir = new THREE.Vector3();\n camera.getWorldDirection(cameraDir);\n \n // INVERTED! camera direction becomes a normal vector for far frustum plane\n // say - plane is \"facing you\"\n let cameraDirInv = cameraDir.clone().negate();\n \n // calc the point that is in the middle of the view, and lies on the near plane\n let cameraNear = camera.position.clone().add(cameraDir.clone().multiplyScalar(camera.near));\n \n // calc the point that is in the middle of the view, and lies on the far plane\n let cameraFar = camera.position.clone().add(cameraDir.clone().multiplyScalar(camera.far));\n \n // just build near and far planes by normal+point\n frustum.planes[0].setFromNormalAndCoplanarPoint(cameraDir, cameraNear);\n frustum.planes[1].setFromNormalAndCoplanarPoint(cameraDirInv, cameraFar);\n }\n \n // next 4 planes (left, right, top and bottom) are built by 3 points:\n // camera postion + two points on the far plane\n // each time we build a ray casting from camera through mouse coordinate, \n // and finding intersection with far plane.\n // \n // To build a plane we need 2 intersections with far plane.\n // This is why mouse coordinate will be duplicated and \n // \"adjusted\" either in vertical or horizontal direction\n \n // build frustrum plane on the left\n if (true) {\n let ray = new THREE.Ray();\n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n // Here's the example, - we take X coordinate of a mouse, and Y we set to -0.25 and 0.25 \n // values do not matter here, - important that ray will cast two different points to form \n // the vertically aligned frustum plane.\n ray.direction.set(pos0.x, -0.25, 1).unproject(camera).sub(ray.origin).normalize();\n let far1 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far1);\n \n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n // Same as before, making 2nd ray\n ray.direction.set(pos0.x, 0.25, 1).unproject(camera).sub(ray.origin).normalize();\n let far2 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far2);\n \n frustum.planes[2].setFromCoplanarPoints(camera.position, far1, far2);\n }\n \n // build frustrum plane on the right\n if (true) {\n let ray = new THREE.Ray();\n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n ray.direction.set(pos1.x, 0.25, 1).unproject(camera).sub(ray.origin).normalize();\n let far1 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far1);\n \n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n ray.direction.set(pos1.x, -0.25, 1).unproject(camera).sub(ray.origin).normalize();\n let far2 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far2);\n \n frustum.planes[3].setFromCoplanarPoints(camera.position, far1, far2);\n }\n \n // build frustrum plane on the top\n if (true) {\n let ray = new THREE.Ray();\n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n ray.direction.set(0.25, pos0.y, 1).unproject(camera).sub(ray.origin).normalize();\n let far1 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far1);\n \n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n ray.direction.set(-0.25, pos0.y, 1).unproject(camera).sub(ray.origin).normalize();\n let far2 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far2);\n \n frustum.planes[4].setFromCoplanarPoints(camera.position, far1, far2);\n }\n \n // build frustrum plane on the bottom\n if (true) {\n let ray = new THREE.Ray();\n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n ray.direction.set(-0.25, pos1.y, 1).unproject(camera).sub(ray.origin).normalize();\n let far1 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far1);\n \n ray.origin.setFromMatrixPosition(camera.matrixWorld);\n ray.direction.set(0.25, pos1.y, 1).unproject(camera).sub(ray.origin).normalize();\n let far2 = new THREE.Vector3();\n ray.intersectPlane(frustum.planes[1], far2);\n \n frustum.planes[5].setFromCoplanarPoints(camera.position, far1, far2);\n }\n }", "function vproj2d(a, b)\r\n{\r\n return mult2d(unit2d(a), sproj2d(a, b));\r\n}", "camera({ viewportWidth, viewportHeight }) {\n const fovy = Math.PI / 2;\n const aspect = viewportWidth / viewportHeight;\n const near = 0.01;\n const f = 1.0 / Math.tan(fovy / 2);\n const out = [];\n const eps = 1.0;\n\n /*\n Note that we do not use a normal perspective matrix.\n\n This projection matrix below is basically this matrix\n https://github.com/stackgl/gl-mat4/blob/master/perspective.js\n Except that we've let 'far' go to infinity,\n and that we add an epsilon factor at some places\n\n It is basically the matrix given in equation (8) of this article:\n http://www.gamesustra.com/view/feature/131351/the_mechanics_of_robust_stencil_php.?print=1\n */\n out[0] = f / aspect;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = f;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = -1 + eps;\n out[11] = -1;\n out[12] = 0;\n out[13] = 0;\n out[14] = (eps - 2) * near;\n out[15] = 0;\n\n return mat4.multiply([], out, camera.view());\n }", "function Oseen(x, y, fx, fy, vxy){\n var xx = x*x;\n var yy = y*y;\n var xy = x*y;\n var rr = xx + yy;\n var r = Math.sqrt(rr);\n\n vxy[0] = vxy[0] + (fx + (xx*fx + xy*fy)/rr)/r;\n vxy[1] = vxy[1] + (fy + (xy*fx + yy*fy)/rr)/r;\n}", "resize(width, height) {\n\n let dd2 = (width > height) ? width / 2 : height / 2;\n \n m4_ortho_res(this.projectionMatrix, width, height, -dd2, dd2); \n\n this.near = -dd2;\n this.far = dd2;\n }", "function d$2(o,r){o.include(o$7),o.vertex.include(r$b,r),o.varyings.add(\"vPositionWorldCameraRelative\",\"vec3\"),o.varyings.add(\"vPosition_view\",\"vec3\"),o.vertex.uniforms.add(\"uTransform_WorldFromModel_RS\",\"mat3\"),o.vertex.uniforms.add(\"uTransform_WorldFromModel_TH\",\"vec3\"),o.vertex.uniforms.add(\"uTransform_WorldFromModel_TL\",\"vec3\"),o.vertex.uniforms.add(\"uTransform_WorldFromView_TH\",\"vec3\"),o.vertex.uniforms.add(\"uTransform_WorldFromView_TL\",\"vec3\"),o.vertex.uniforms.add(\"uTransform_ViewFromCameraRelative_RS\",\"mat3\"),o.vertex.uniforms.add(\"uTransform_ProjFromView\",\"mat4\"),o.vertex.code.add(t$i`vec3 positionWorldCameraRelative() {\nvec3 rotatedModelPosition = uTransform_WorldFromModel_RS * positionModel();\nvec3 transform_CameraRelativeFromModel = dpAdd(\nuTransform_WorldFromModel_TL,\nuTransform_WorldFromModel_TH,\n-uTransform_WorldFromView_TL,\n-uTransform_WorldFromView_TH\n);\nreturn transform_CameraRelativeFromModel + rotatedModelPosition;\n}\nvec3 position_view() {\nreturn uTransform_ViewFromCameraRelative_RS * positionWorldCameraRelative();\n}\nvoid forwardPosition() {\nvPositionWorldCameraRelative = positionWorldCameraRelative();\nvPosition_view = position_view();\ngl_Position = uTransform_ProjFromView * vec4(vPosition_view, 1.0);\n}\nvec3 positionWorld() {\nreturn uTransform_WorldFromView_TL + vPositionWorldCameraRelative;\n}`),o.fragment.uniforms.add(\"uTransform_WorldFromView_TL\",\"vec3\"),o.fragment.code.add(t$i`vec3 positionWorld() {\nreturn uTransform_WorldFromView_TL + vPositionWorldCameraRelative;\n}`);}", "function drawImage(src, srcdx, srcdy, srcw, srch, dst, dstdx, dstdy, dstw, dsth, scale) {\n let sx = srcdx, sy = srcdy, sw = srcw, sh = srch;\n let dx = dstdx, dy = dstdy;\n if (dx < 0) {\n sx -= dx;\n dx = 0;\n }\n if (dy < 0) {\n sy -= dy;\n dy = 0;\n }\n if (dx + sw > dstw)\n sw = dstw - dx;\n if (dy + sh > dsth)\n sh = dsth - dy;\n dst.drawImage(src, sx, sy, sw, sh, dx * scale, dy * scale, sw * scale, sh * scale);\n}", "clipCoords(t1, t2, clip){\r\n var t = (clip - t2.dz) / (t1.dz - t2.dz);\r\n var t1t = {};\r\n t1t.dx = t*(t1.dx - t2.dx) + t2.dx;\r\n t1t.dy = t*(t1.dy - t2.dy) + t2.dy;\r\n t1t.dz = clip;\r\n t1t.x = (this.view_p.z*t1t.dx)/t1t.dz - this.view_p.x;\r\n t1t.y = (this.view_p.z*t1t.dy)/t1t.dz - this.view_p.y;\r\n return t1t;\r\n }", "function computeCameraOrientation(x, y, quad, vec) {\r\n if (quad == 2) {\r\n x -= originX2;\r\n y -= originY2;\r\n vec[0] = (1 / scaleX) * x;\r\n vec[1] = (-1 / scaleY) * y;\r\n if (vec == cameraLookFrom) {\r\n cameraLookUpnew[0] = vec[0] + cameraLookUp[0];\r\n cameraLookUpnew[1] = vec[1] + cameraLookUp[1];\r\n cameraLookUpnew[2] = vec[2] + cameraLookUp[2];\r\n }\r\n } else if (quad == 3) {\r\n x -= originX3;\r\n y -= originY3;\r\n vec[0] = (1 / scaleX) * x;\r\n vec[2] = (1 / scaleY) * y;\r\n if (vec == cameraLookFrom) {\r\n cameraLookUpnew[0] = vec[0] + cameraLookUp[0];\r\n cameraLookUpnew[1] = vec[1] + cameraLookUp[1];\r\n cameraLookUpnew[2] = vec[2] + cameraLookUp[2];\r\n }\r\n } else if (quad == 4) {\r\n x -= originX4;\r\n y -= originY4;\r\n vec[2] = (-1 / scaleX) * x;\r\n vec[1] = (-1 / scaleY) * y;\r\n if (vec == cameraLookFrom) {\r\n cameraLookUpnew[0] = vec[0] + cameraLookUp[0];\r\n cameraLookUpnew[1] = vec[1] + cameraLookUp[1];\r\n cameraLookUpnew[2] = vec[2] + cameraLookUp[2];\r\n }\r\n }\r\n return vec;\r\n}", "function makePerspectiveProjection(FOV, aspect, near, far){\n var f = 1.0 / Math.tan(Maths.degToRad(FOV)/2.0),\n d = far - near\n \n var col1 = Vec4(f/aspect, 0, 0, 0),\n col2 = Vec4(0, f, 0, 0),\n col3 = Vec4(0, 0, -(near + far)/d, -2 * near * far/d ),\n col4 = Vec4(0, 0, -1, 0)\n return Mat4(col1, col2, col3, col4)\n }", "function u$3(u,c){const p=u.vertex.code,v=u.fragment.code;1!==c.output&&3!==c.output||(u.include(r$9,{linearDepth:!0}),u.include(t$b,c),u.include(e$9,c),u.include(e$7,c),u.include(c$6,c),u.vertex.uniforms.add(\"cameraNearFar\",\"vec2\"),u.varyings.add(\"depth\",\"float\"),c.hasColorTexture&&u.fragment.uniforms.add(\"tex\",\"sampler2D\"),p.add(t$i`void main(void) {\nvpos = calculateVPos();\nvpos = subtractOrigin(vpos);\nvpos = addVerticalOffset(vpos, localOrigin);\ngl_Position = transformPositionWithDepth(proj, view, vpos, cameraNearFar, depth);\nforwardTextureCoordinates();\n}`),u.include(r$h,c),v.add(t$i`\n void main(void) {\n discardBySlice(vpos);\n ${c.hasColorTexture?t$i`\n vec4 texColor = texture2D(tex, vuv0);\n discardOrAdjustAlpha(texColor);`:\"\"}\n outputDepth(depth);\n }\n `)),2===c.output&&(u.include(r$9,{linearDepth:!1}),u.include(o$8,c),u.include(l$5,c),u.include(t$b,c),u.include(e$9,c),c.hasColorTexture&&u.fragment.uniforms.add(\"tex\",\"sampler2D\"),u.vertex.uniforms.add(\"viewNormal\",\"mat4\"),u.varyings.add(\"vPositionView\",\"vec3\"),p.add(t$i`\n void main(void) {\n vpos = calculateVPos();\n vpos = subtractOrigin(vpos);\n ${0===c.normalType?t$i`\n vNormalWorld = dpNormalView(vvLocalNormal(normalModel()));`:\"\"}\n vpos = addVerticalOffset(vpos, localOrigin);\n gl_Position = transformPosition(proj, view, vpos);\n forwardTextureCoordinates();\n }\n `),u.include(c$6,c),u.include(r$h,c),v.add(t$i`\n void main() {\n discardBySlice(vpos);\n ${c.hasColorTexture?t$i`\n vec4 texColor = texture2D(tex, vuv0);\n discardOrAdjustAlpha(texColor);`:\"\"}\n\n ${3===c.normalType?t$i`\n vec3 normal = screenDerivativeNormal(vPositionView);`:t$i`\n vec3 normal = normalize(vNormalWorld);\n if (gl_FrontFacing == false) normal = -normal;`}\n gl_FragColor = vec4(vec3(0.5) + 0.5 * normal, 1.0);\n }\n `)),4===c.output&&(u.include(r$9,{linearDepth:!1}),u.include(t$b,c),u.include(e$9,c),c.hasColorTexture&&u.fragment.uniforms.add(\"tex\",\"sampler2D\"),p.add(t$i`void main(void) {\nvpos = calculateVPos();\nvpos = subtractOrigin(vpos);\nvpos = addVerticalOffset(vpos, localOrigin);\ngl_Position = transformPosition(proj, view, vpos);\nforwardTextureCoordinates();\n}`),u.include(c$6,c),u.include(r$h,c),u.include(r$e),v.add(t$i`\n void main() {\n discardBySlice(vpos);\n ${c.hasColorTexture?t$i`\n vec4 texColor = texture2D(tex, vuv0);\n discardOrAdjustAlpha(texColor);`:\"\"}\n outputHighlight();\n }\n `));}", "function vfovToHfov(vfov, aspect) {\r\n const {tan, atan} = Math\r\n return atan(aspect * tan(vfov / 2)) * 2\r\n}", "static createOriginAndTargets(origin, targetU, targetV, result) {\n return Plane3dByOriginAndVectors.createOriginAndVectorsXYZ(origin.x, origin.y, origin.z, targetU.x - origin.x, targetU.y - origin.y, targetU.z - origin.z, targetV.x - origin.x, targetV.y - origin.y, targetV.z - origin.z, result);\n }", "function PerspectiveTransform( a11, a21, a31, a12, a22, a32, a13, a23, a33)\n{\n\tthis.a11 = a11;\n\tthis.a12 = a12;\n\tthis.a13 = a13;\n\tthis.a21 = a21;\n\tthis.a22 = a22;\n\tthis.a23 = a23;\n\tthis.a31 = a31;\n\tthis.a32 = a32;\n\tthis.a33 = a33;\n\tthis.transformPoints1=function( points)\n\t\t{\n\t\t\tvar max = points.length;\n\t\t\tvar a11 = this.a11;\n\t\t\tvar a12 = this.a12;\n\t\t\tvar a13 = this.a13;\n\t\t\tvar a21 = this.a21;\n\t\t\tvar a22 = this.a22;\n\t\t\tvar a23 = this.a23;\n\t\t\tvar a31 = this.a31;\n\t\t\tvar a32 = this.a32;\n\t\t\tvar a33 = this.a33;\n\t\t\tfor (var i = 0; i < max; i += 2)\n\t\t\t{\n\t\t\t\tvar x = points[i];\n\t\t\t\tvar y = points[i + 1];\n\t\t\t\tvar denominator = a13 * x + a23 * y + a33;\n\t\t\t\tpoints[i] = (a11 * x + a21 * y + a31) / denominator;\n\t\t\t\tpoints[i + 1] = (a12 * x + a22 * y + a32) / denominator;\n\t\t\t}\n\t\t}\n\tthis. transformPoints2=function(xValues, yValues)\n\t\t{\n\t\t\tvar n = xValues.length;\n\t\t\tfor (var i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tvar x = xValues[i];\n\t\t\t\tvar y = yValues[i];\n\t\t\t\tvar denominator = this.a13 * x + this.a23 * y + this.a33;\n\t\t\t\txValues[i] = (this.a11 * x + this.a21 * y + this.a31) / denominator;\n\t\t\t\tyValues[i] = (this.a12 * x + this.a22 * y + this.a32) / denominator;\n\t\t\t}\n\t\t}\n\n\tthis.buildAdjoint=function()\n\t\t{\n\t\t\t// Adjoint is the transpose of the cofactor matrix:\n\t\t\treturn new PerspectiveTransform(this.a22 * this.a33 - this.a23 * this.a32, this.a23 * this.a31 - this.a21 * this.a33, this.a21 * this.a32 - this.a22 * this.a31, this.a13 * this.a32 - this.a12 * this.a33, this.a11 * this.a33 - this.a13 * this.a31, this.a12 * this.a31 - this.a11 * this.a32, this.a12 * this.a23 - this.a13 * this.a22, this.a13 * this.a21 - this.a11 * this.a23, this.a11 * this.a22 - this.a12 * this.a21);\n\t\t}\n\tthis.times=function( other)\n\t\t{\n\t\t\treturn new PerspectiveTransform(this.a11 * other.a11 + this.a21 * other.a12 + this.a31 * other.a13, this.a11 * other.a21 + this.a21 * other.a22 + this.a31 * other.a23, this.a11 * other.a31 + this.a21 * other.a32 + this.a31 * other.a33, this.a12 * other.a11 + this.a22 * other.a12 + this.a32 * other.a13, this.a12 * other.a21 + this.a22 * other.a22 + this.a32 * other.a23, this.a12 * other.a31 + this.a22 * other.a32 + this.a32 * other.a33, this.a13 * other.a11 + this.a23 * other.a12 +this.a33 * other.a13, this.a13 * other.a21 + this.a23 * other.a22 + this.a33 * other.a23, this.a13 * other.a31 + this.a23 * other.a32 + this.a33 * other.a33);\n\t\t}\n\n}", "function extractFrustum()\n{\n var mat = mvpMatrix;\n var a = 0, b = 0, c = 0, d = 0;\n var frustum = [null, null, null, null, null, null];\n var mat1 = mat[0];\n var mat2 = mat[1];\n var mat3 = mat[2];\n var mat4 = mat[3];\n var mat5 = mat[4];\n var mat6 = mat[5];\n var mat7 = mat[6];\n var mat8 = mat[7];\n var mat9 = mat[8];\n var mat10 = mat[9];\n var mat11 = mat[10];\n var mat12 = mat[11];\n var mat13 = mat[12];\n var mat14 = mat[13];\n var mat15 = mat[14];\n var mat16 = mat[15];\n\n// Right plane\n a = mat4 - mat1;\n b = mat8 - mat5;\n c = mat12 - mat9;\n d = mat16 - mat13;\n frustum[0] = new Plane(a, b, c, d);\n frustum[0].normalize();\n\n// Left plane\n a = mat4 + mat1;\n b = mat8 + mat5;\n c = mat12 + mat9;\n d = mat16 + mat13;\n frustum[1] = new Plane(a, b, c, d);\n frustum[1].normalize();\n\n// Bottom plane\n a = mat4 + mat2;\n b = mat8 + mat6;\n c = mat12 + mat10;\n d = mat16 + mat14;\n frustum[2] = new Plane(a, b, c, d);\n frustum[2].normalize();\n\n// Top plane\n a = mat4 - mat2;\n b = mat8 - mat6;\n c = mat12 - mat10;\n d = mat16 - mat14;\n frustum[3] = new Plane(a, b, c, d);\n frustum[3].normalize();\n\n// Far plane\n a = mat4 - mat3;\n b = mat8 - mat7;\n c = mat12 - mat11;\n d = mat16 - mat15;\n frustum[4] = new Plane(a, b, c, d);\n frustum[4].normalize();\n\n// Near plane\n a = mat4 + mat3;\n b = mat8 + mat7;\n c = mat12 + mat11;\n d = mat16 + mat15;\n frustum[5] = new Plane(a, b, c, d);\n frustum[5].normalize();\n\n return frustum;\n}", "function computeOrigin(x, y, quad, vec) {\r\n\r\n switch (quad) {\r\n case 2:\r\n vec = computeCameraOrientation(x, y, quad, vec);\r\n break;\r\n case 3:\r\n vec = computeCameraOrientation(x, y, quad, vec);\r\n break;\r\n case 4:\r\n vec = computeCameraOrientation(x, y, quad, vec);\r\n break;\r\n }\r\n}", "genRay( pix_x, pix_y )\n {\n const fname = 'SimpleCamera.genRay():'\n\n Check( 0 <= pix_x && pix_x < this.viewport.width )\n Check( 0 <= pix_y && pix_y < this.viewport.height )\n\n // compute ray origin and direction in Eye Cords, according to camera type\n\n let org_ec = null, \n dir_ec = null\n\n if ( this.proj_type_str == 'Perspective' )\n {\n const \n r_yx = this.viewport.ratio_yx, // viewport ratio (height/width)\n fovy_r = (this.fovy_deg*Math.PI)/180.0, // fovy, in radians\n h_ec = Math.tan(0.5*fovy_r),\n w_ec = h_ec/r_yx,\n cx = w_ec * ( -1.0 + (2.0*(pix_x+0.5))/this.viewport.width ),\n cy = h_ec * ( -1.0 + (2.0*(pix_y+0.5))/this.viewport.height )\n \n dir_ec = new Vec3([ cx, cy, -1 ])\n org_ec = new Vec3([ 0.0, 0.0, 0.0]) // z == -this.near, i think ....\n }\n else if ( this.proj_type_str == 'Orthogonal' )\n {\n //throw new Error(`${fname} I still don't know how to do this`)\n // compute r,l,b,t,n as in 'Mat4_Orthogonal'\n const \n hsy = this.half_size_y,\n asp_rat = this.viewport.ratio_yx,\n r = hsy/asp_rat,\n l = -r,\n b = -hsy,\n t = +hsy,\n cx = r *( -1.0 + (2.0*(pix_x+0.5))/this.viewport.width ),\n cy = t *( -1.0 + (2.0*(pix_y+0.5))/this.viewport.height )\n\n dir_ec = new Vec3([ 0, 0, -1 ])\n org_ec = new Vec3([ cx, cy, -this.near ]) \n }\n else \n throw new Error(`${fname} invalid string in 'proj_type'`)\n\n // compute the ray dir and org in world coordinates, by using inverse view matrix\n let\n org_wc = this.view_mat_inv.apply_to( org_ec, 1 ),\n dir_wc = this.view_mat_inv.apply_to( dir_ec, 0 )\n\n // done\n return new Ray( org_wc, dir_wc )\n }", "translationMat4v(v, dest) {\n const m = dest || math.identityMat4();\n m[12] = v[0];\n m[13] = v[1];\n m[14] = v[2];\n return m;\n }", "_getWorldCoords() {\n const corners = [\n tempCorner1.set(-1, 1, 0), // plane's top left corner\n tempCorner2.set(1, 1, 0), // plane's top right corner\n tempCorner3.set(1, -1, 0), // plane's bottom right corner\n tempCorner4.set(-1, -1, 0), // plane's bottom left corner\n ];\n\n // corners with model view projection matrix applied\n let mvpCorners = [];\n // eventual clipped corners\n let clippedCorners = [];\n\n // we are going to get our plane's four corners relative to our model view projection matrix\n for(let i = 0; i < corners.length; i++) {\n const mvpCorner = corners[i].applyMat4(this._matrices.modelViewProjection.matrix);\n mvpCorners.push(mvpCorner);\n\n // Z position is > 1 or < -1 means the corner is clipped\n if(Math.abs(mvpCorner.z) > 1) {\n clippedCorners.push(i);\n }\n }\n\n // near plane is clipping, get intersections between plane and near plane\n if(clippedCorners.length) {\n mvpCorners = this._getNearPlaneIntersections(corners, mvpCorners, clippedCorners);\n }\n\n // we need to check for the X and Y min and max values\n // use arbitrary integers that will be overriden anyway\n let minX = Infinity;\n let maxX = -Infinity;\n\n let minY = Infinity;\n let maxY = -Infinity;\n\n for(let i = 0; i < mvpCorners.length; i++) {\n const corner = mvpCorners[i];\n\n if(corner.x < minX) {\n minX = corner.x;\n }\n if(corner.x > maxX) {\n maxX = corner.x;\n }\n\n if(corner.y < minY) {\n minY = corner.y;\n }\n if(corner.y > maxY) {\n maxY = corner.y;\n }\n }\n\n return {\n top: maxY,\n right: maxX,\n bottom: minY,\n left: minX,\n };\n }", "function augment(V, crop, dx, dy, fliplr) {\n // note assumes square outputs of size crop x crop\n if (typeof (fliplr) === 'undefined') {\n fliplr = false;\n }\n if (typeof (dx) === 'undefined') {\n dx = uitl.randi(0, V.sx - crop);\n }\n if (typeof (dy) === 'undefined') {\n dy = uitl.randi(0, V.sy - crop);\n }\n // randomly sample a crop in the input volume\n var W;\n if (crop !== V.sx || dx !== 0 || dy !== 0) {\n W = new convnet_vol_1.Vol(crop, crop, V.depth, 0.0);\n for (var x = 0; x < crop; x++) {\n for (var y = 0; y < crop; y++) {\n if (x + dx < 0 || x + dx >= V.sx || y + dy < 0 || y + dy >= V.sy) {\n continue;\n } // oob\n for (var d = 0; d < V.depth; d++) {\n W.set(x, y, d, V.get(x + dx, y + dy, d)); // copy data over\n }\n }\n }\n }\n else {\n W = V;\n }\n if (fliplr) {\n // flip volume horziontally\n var W2 = W.cloneAndZero();\n for (var x = 0; x < W.sx; x++) {\n for (var y = 0; y < W.sy; y++) {\n for (var d = 0; d < W.depth; d++) {\n W2.set(x, y, d, W.get(W.sx - x - 1, y, d)); // copy data over\n }\n }\n }\n W = W2; //swap\n }\n return W;\n}", "setLookAt(eyeX, eyeY, eyeZ, targetX, targetY, targetZ, upX, upY, upZ){\n // N = eye - target\n let nx, ny, nz;\n nx = eyeX - targetX;\n ny = eyeY - targetY;\n nz = eyeZ - targetZ;\n let rl = 1/Math.sqrt(nx*nx+ny*ny+nz*nz);\n nx *= rl;\n ny *= rl;\n nz *= rl;\n // U = UP cross N\n let ux, uy, uz;\n ux = upY * nz - upZ * ny;\n uy = upZ * nx - upX * nz;\n uz = upX * ny - upY * nx;\n rl = 1/Math.sqrt(ux*ux+uy*uy+uz*uz);\n ux *= rl;\n uy *= rl;\n uz *= rl;\n // V = N cross U\n let vx, vy, vz;\n vx = ny * uz - nz * uy;\n vy = nz * ux - nx * uz;\n vz = nx * uy - ny * ux;\n rl = 1/Math.sqrt(vx*vx+vy*vy+vz*vz);\n vx *= rl;\n vy *= rl;\n vz *= rl;\n \n let e = this.elements;\n e[0] = ux;\n e[1] = vx;\n e[2] = nx;\n e[3] = 0;\n \n e[4] = uy;\n e[5] = vy;\n e[6] = ny;\n e[7] = 0;\n \n e[8] = uz;\n e[9] = vz;\n e[10] = nz;\n e[11] = 0;\n \n e[12] = 0;\n e[13] = 0;\n e[14] = 0;\n e[15] = 1;\n \n return this.translate(-eyeX, -eyeY, -eyeZ);\n }", "function runDefault(){\n var fovy = 60;\n \n var aspect = width/height;\n var znear = 0.1;\n\n var zfar = 1000;\n\n var ymax = znear * Math.tan(fovy * Math.PI / 360.0);\n var ymin = -ymax;\n var xmin = ymin * aspect;\n var xmax = ymax * aspect;\n\n var left = xmin;\n var right = xmax;\n var top = ymax;\n var bottom = ymin;\n\n var X = 2 * znear / (right - left);\n var Y = 2 * znear / (top - bottom);\n var A = (right + left) / (right - left);\n var B = (top + bottom) / (top - bottom);\n var C = -(zfar + znear) / (zfar - znear);\n var D = -2 * zfar * znear / (zfar - znear);\n \n projectionMatrix = M4x4.$(\n X, 0, 0, 0, \n 0, Y, 0, 0, \n A, B, C, -1, \n 0, 0, D, 0);\n \n normalMatrix = M4x4.I;\n }", "function setUpViewport(webgl, canvas, projectionMatrixId, width, height, fov, clipNear, clipFar) {\n canvas.width = width;\n canvas.height = height;\n let aspect = width / height;\n renderSettings.viewPort.aspect = aspect;\n let projectionMat = generateProjectionMatrix(fov, aspect, clipNear, clipFar);\n webgl.uniformMatrix4fv(ctx.uProjectionMatId, false, projectionMat);\n webgl.viewport(0, 0, width, height);\n}", "orthoMat4c(left, right, bottom, top, near, far, dest) {\n if (!dest) {\n dest = math.mat4();\n }\n const rl = (right - left);\n const tb = (top - bottom);\n const fn = (far - near);\n\n dest[0] = 2.0 / rl;\n dest[1] = 0.0;\n dest[2] = 0.0;\n dest[3] = 0.0;\n\n dest[4] = 0.0;\n dest[5] = 2.0 / tb;\n dest[6] = 0.0;\n dest[7] = 0.0;\n\n dest[8] = 0.0;\n dest[9] = 0.0;\n dest[10] = -2.0 / fn;\n dest[11] = 0.0;\n\n dest[12] = -(left + right) / rl;\n dest[13] = -(top + bottom) / tb;\n dest[14] = -(far + near) / fn;\n dest[15] = 1.0;\n\n return dest;\n }", "function setUpViewport(webgl, canvas, projectionMatrixId, width, height, fov, clipNear, clipFar) {\n canvas.width = width;\n canvas.height = height;\n\n let aspect = width / height;\n renderSettings.viewPort.aspect = aspect;\n let projectionMat = generateProjectionMatrix(fov, aspect, clipNear, clipFar);\n webgl.uniformMatrix4fv(ctx.uProjectionMatId, false, projectionMat);\n webgl.viewport(0, 0, width, height);\n}", "function updatePov (dx, dy) {\n if (svl.panorama) {\n var pov = svl.panorama.getPov(),\n alpha = 0.25;\n\n pov.heading -= alpha * dx;\n pov.pitch += alpha * dy;\n\n //\n // View port restriction.\n // Do not allow users to look up the sky or down the ground.\n // If specified, do not allow users to turn around too much by restricting the heading angle.\n if (pov.pitch > properties.maxPitch) {\n pov.pitch = properties.maxPitch;\n } else if (pov.pitch < properties.minPitch) {\n pov.pitch = properties.minPitch;\n }\n\n if (properties.minHeading && properties.maxHeading) {\n if (properties.minHeading <= properties.maxHeading) {\n if (pov.heading > properties.maxHeading) {\n pov.heading = properties.maxHeading;\n } else if (pov.heading < properties.minHeading) {\n pov.heading = properties.minHeading;\n }\n } else {\n if (pov.heading < properties.minHeading &&\n pov.heading > properties.maxHeading) {\n if (Math.abs(pov.heading - properties.maxHeading) < Math.abs(pov.heading - properties.minHeading)) {\n pov.heading = properties.maxHeading;\n } else {\n pov.heading = properties.minHeading;\n }\n }\n }\n }\n\n //\n // Set the property this object. Then update the Street View image\n properties.panoramaPov = pov;\n svl.panorama.setPov(pov);\n } else {\n throw self.className + ' updatePov(): panorama not defined!';\n }\n }", "static translate(dst, src, x, y) {\n const a00 = src[0],\n a01 = src[1],\n a02 = src[2],\n a10 = src[3],\n a11 = src[4],\n a12 = src[5],\n a20 = src[6],\n a21 = src[7],\n a22 = src[8];\n\n dst[0] = a00;\n dst[1] = a01;\n dst[2] = a02;\n\n dst[3] = a10;\n dst[4] = a11;\n dst[5] = a12;\n\n dst[6] = x * a00 + y * a10 + a20;\n dst[7] = x * a01 + y * a11 + a21;\n dst[8] = x * a02 + y * a12 + a22;\n return dst;\n }", "function Maths() {\n\tconst PI = 3.14;\n\t\n\t/**\n\t * Shifts angle into radian. \n\t */\n\tthis.toRadians = function(angle) {\n\t\treturn (angle / 180) * PI;\n\t}\n\t\n\t/**\n\t * Creates perspective transformation (projection) matrix from arguments.\n\t * \n\t * @param nearPlane - Vector4f-type object argument of nearest clipping plane\n\t * @param farPlane - Vector4f-type object argument of farthest clipping plane\n\t * @param FOV - Number-type argument of field of view\n\t * \n\t * @return Matrix4f-type object of projection Matrix\n\t */\n\tthis.createProjectionMatrix = function(nearPlane, farPlane, FOV) {\n\t\tvar projectionMatrix = new __WEBPACK_IMPORTED_MODULE_0__matrix_Matrix4f__[\"a\" /* Matrix4f */]();\n\t\tvar aspectRatio = __WEBPACK_IMPORTED_MODULE_2__index__[\"a\" /* gl */].viewportWidth / __WEBPACK_IMPORTED_MODULE_2__index__[\"a\" /* gl */].viewportHeight;\n\t\tvar yScale = 1 / Math.tan(Math.toRadians(FOV / 2));\n\t\tvar xScale = yScale / aspectRatio;\n\t\tvar frustumLength = farPlane - nearPlane;\n\t\t\n\t\tprojectionMatrix.setIdentity();\n\t\t\n\t\tprojectionMatrix.m[0][0] = xScale;\n\t\tprojectionMatrix.m[1][1] = yScale;\n\t\tprojectionMatrix.m[2][2] = -((farPlane + nearPlane) / frustumLength); \n\t\tprojectionMatrix.m[2][3] = -1;\n\t\tprojectionMatrix.m[3][2] = -((2 * nearPlane * farPlane) / frustumLength);\n\t\tprojectionMatrix.m[3][3] = 0; \n\t\t\n\t\treturn projectionMatrix;\n\t\t\n\t}\n\t\n\t/**\n\t * Creates camera view transformation (view) matrix from camera object.\n\t * \n\t * @param camera - Camera-type object argument\n\t * \n\t * @return Matrix4f-type object of view matrix\n\t */\n\tthis.createViewMatrix = function(camera) {\n\t\tvar viewMatrix = new __WEBPACK_IMPORTED_MODULE_0__matrix_Matrix4f__[\"a\" /* Matrix4f */]();\n\t\tviewMatrix.setIdentity();\n\t\tviewMatrix.rotate(Math.toRadians(camera.getPitch()), new __WEBPACK_IMPORTED_MODULE_1__vector_Vector3f__[\"a\" /* Vector3f */](1, 0, 0));\n\t\tviewMatrix.rotate(Math.toRadians(camera.getYaw()), new __WEBPACK_IMPORTED_MODULE_1__vector_Vector3f__[\"a\" /* Vector3f */](0, 1, 0));\n\t\tviewMatrix.rotate(Math.toRadians(camera.getRoll()), new __WEBPACK_IMPORTED_MODULE_1__vector_Vector3f__[\"a\" /* Vector3f */](0, 0, 1));\n\t\tvar negativeCameraPosition = new __WEBPACK_IMPORTED_MODULE_1__vector_Vector3f__[\"a\" /* Vector3f */](\n\t\t\t\t-camera.getPosition().x, -camera.getPosition().y, -camera.getPosition().z);\n\t\tviewMatrix.translate3f(negativeCameraPosition);\n\t\t\n\t\treturn viewMatrix;\n\t}\n\t\n\t\n}", "function convolveVertically(src, dest, srcW, srcH, destW, filters) {\n\n var r, g, b, a;\n var filterPtr, filterShift, filterSize;\n var srcPtr, srcY, destX, filterVal;\n var srcOffset = 0,\n destOffset = 0;\n\n // For each row\n for (srcY = 0; srcY < srcH; srcY++) {\n filterPtr = 0;\n\n // Apply precomputed filters to each destination row point\n for (destX = 0; destX < destW; destX++) {\n // Get the filter that determines the current output pixel.\n filterShift = filters[filterPtr++];\n filterSize = filters[filterPtr++];\n\n srcPtr = srcOffset + filterShift * 4 | 0;\n\n r = g = b = a = 0;\n\n // Apply the filter to the row to get the destination pixel r, g, b, a\n for (; filterSize > 0; filterSize--) {\n filterVal = filters[filterPtr++];\n\n // Use reverse order to workaround deopts in old v8 (node v.10)\n // Big thanks to @mraleph (Vyacheslav Egorov) for the tip.\n a = a + filterVal * src[srcPtr + 3] | 0;\n b = b + filterVal * src[srcPtr + 2] | 0;\n g = g + filterVal * src[srcPtr + 1] | 0;\n r = r + filterVal * src[srcPtr] | 0;\n srcPtr = srcPtr + 4 | 0;\n }\n\n // Bring this value back in range. All of the filter scaling factors\n // are in fixed point with FIXED_FRAC_BITS bits of fractional part.\n //\n // (!) Add 1/2 of value before clamping to get proper rounding. In other\n // case brightness loss will be noticeable if you resize image with white\n // border and place it on white background.\n //\n dest[destOffset + 3] = clampTo8(a + (1 << 13) >> 14 /*FIXED_FRAC_BITS*/);\n dest[destOffset + 2] = clampTo8(b + (1 << 13) >> 14 /*FIXED_FRAC_BITS*/);\n dest[destOffset + 1] = clampTo8(g + (1 << 13) >> 14 /*FIXED_FRAC_BITS*/);\n dest[destOffset] = clampTo8(r + (1 << 13) >> 14 /*FIXED_FRAC_BITS*/);\n destOffset = destOffset + srcH * 4 | 0;\n }\n\n destOffset = (srcY + 1) * 4 | 0;\n srcOffset = (srcY + 1) * srcW * 4 | 0;\n }\n}", "function createProjection(x1, y1, x2, y2) {\n // Creating two vector objects\n var startVector = createVector(x1, y1);\n var endVector = createVector(x2, y2);\n // Get the direction from strat to end\n var dirVector = endVector.copy().sub(startVector);\n // Save the magnitude = length of the distance\n var magnitude = dirVector.mag();\n // Reduce to unit vector of length 1, then divide the 10 logos in\n dirVector.normalize();\n dirVector.mult(magnitude / 10);\n // This makes all no sense but is working nicely\n for (var i = 0; i < projection.length; i++) {\n startVector.add(dirVector);\n var tempLogo = select('#logo' + i);\n tempLogo.position((startVector.x - LOGOHALF), startVector.y - LOGOHALF);\n }\n}", "function trackTransforms(x, y, w, h) {\n\toriginX = x;\n\toriginY = y;\n\toriginWidth = w;\n\toriginHeight = h;\n}", "function project(a, b){\r\n //proj of a anto b = a dot b / mag(b)^2 * b\r\n return scalar(dot(a,b)/(magnitude(b)*magnitude(b)), b);\r\n}", "update(){ // call to update transforms\n dirty = false;\n m[3] = m[0] = scale;\n m[1] = m[2] = 0;\n m[4] = pos.x;\n m[5] = pos.y;\n if(useConstraint){\n this.constrain();\n }\n this.invScale = 1 / scale;\n // calculate the inverse transformation\n let cross = m[0] * m[3] - m[1] * m[2];\n im[0] = m[3] / cross;\n im[1] = -m[1] / cross;\n im[2] = -m[2] / cross;\n im[3] = m[0] / cross;\n }", "map(fullImage, srcCorners, width, height) {\n let data = fullImage.data\n let destination = [[0, 0], [width, 0], [width, height], [0, height]]\n\n this.transformationMatrix(destination, srcCorners)\n let img = document\n .createElement('canvas')\n .getContext('2d')\n .createImageData(width, height)\n\n for (let ys = 0; ys < height; ys++) {\n for (let xs = 0; xs < width; xs++) {\n let srcCoord = this.transform([xs, ys])\n let x = srcCoord[0]\n let y = srcCoord[1]\n\n let indexDest = (xs + ys * width) * 4\n let index = (x + y * width) * 4\n\n img.data[indexDest] = data[index]\n img.data[indexDest + 1] = data[index + 1]\n img.data[indexDest + 2] = data[index + 2]\n img.data[indexDest + 3] = data[index + 3]\n }\n }\n return img\n }", "function values_of_src_dest(){\n if(prev_src_x!=-1 && prev_src_y!=-1){\n tiles[prev_src_x][prev_src_y].state='e';\n }\n if(prev_des_x!=-1&&prev_des_y!=-1){\n tiles[prev_des_x][prev_des_y].state='e';\n }\n src_x=document.getElementById(\"source_y\").value;\n src_y=document.getElementById(\"source_x\").value;\n des_x=document.getElementById(\"dest_y\").value;\n des_y=document.getElementById(\"dest_x\").value;\n if(src_x==0 || src_y==0) return;\n if(des_x==0 || des_y==0) return;\n\n tiles[src_x][src_y].state='s';\n tiles[des_x][des_y].state='f';\n prev_src_x=src_x;\n prev_src_y=src_y;\n prev_des_x=des_x;\n prev_des_y=des_y;\n}", "constructor(x, y, destX, destY) {\r\n this.velocity = 600;\r\n this.damage = 5;\r\n this.x = x;\r\n this.y = y;\r\n this.live = true;\r\n let diffX = destX - this.x;\r\n let diffY = destY - this.y;\r\n if(Math.abs(diffX) > Math.abs(diffY)) {\r\n this.coeffX = diffX / Math.abs(diffX);\r\n this.coeffY = diffY / Math.abs(diffX);\r\n }\r\n else {\r\n this.coeffY = diffY / Math.abs(diffY);\r\n this.coeffX = diffX / Math.abs(diffY);\r\n }\r\n this.loadImage();\r\n }", "function update_projection() {\r\n\tlet p, w = gl.canvas.width, h = gl.canvas.height;\r\n\tif (show_perspective) {\r\n\t\tp = perspective(45, w/h, 0.01, 10);\r\n\t\t// Need to move the camera away from the origin and flip the z-axis\r\n\t\tp = mult(p, mult(translate(0, 0, -3), scalem(1, 1, -1)));\r\n\t} else {\r\n\t\tp = (w > h) ? ortho(-w/h, w/h, -1, 1, 10, -10) : ortho(-1, 1, -h/w, h/w, 10, -10);\r\n\t}\r\n\tgl.uniformMatrix4fv(projection_loc, false, flatten(p));\r\n}", "function resize() {\r\n \r\n // redefine width and height\r\n width = window.innerWidth; //canvas.offsetWidth;\r\n height = window.innerHeight; //canvas.offsetHeight;\r\n \r\n if (height > width * (3/4)) height = width * (3/4); // scale to meet the ratio of the fov\r\n //projmidx = width/2;\r\n //projmidy = height/2;\r\n\r\n // reset the canvas element's size\r\n canvas.width = width;\r\n canvas.height = height;\r\n //*/\r\n\r\n}", "function reflect(v, n) {\n vec2.negate(v, v);\n let p = vec2.dot(v, n);\n let proj = vec2.create();\n vec2.scale(proj, n, p);\n let perp = vec2.create();\n vec2.sub(perp, v, proj);\n let img = vec2.create();\n vec2.scaleAndAdd(img, v, perp, -2);\n return img;\n}", "function point_plane_proj(p,v,y) {\n // normalized direction from p to v\n var r = norm_vec(from_to_vec(p,v));\n // assumed: the plane is for any x,z value and fixed Y=y\n var normal = [0,1,0];\n // for linear algebra\n var on_plane = [0,y,0];\n // solution from the written homework, saying v' = len*r + p\n var len = dot_vec(normal, from_to_vec(p,on_plane))/dot_vec(normal, r)\n var v_out = add_vec(scale_vec(r,len),p);\n // can do a sanity check: v_out's y-component should be essentially y\n if(Math.abs(v_out[1]-y)>0.001){\n console.log('WARNING: point_plane_proj made a bad projection on inputs (p,v,y) = ('+p+', '+v+', '+y+')');\n }\n // now to avoid colliding with the plane, add 0.001 to the y coord\n return [v_out[0],y+0.001,v_out[2]];\n}", "updateProjMat()\n {\n if ( this.proj_type_str == 'Perspective' )\n this.proj_mat = Mat4_Perspective( this.fovy_deg, this.viewport.ratio_yx, this.near, this.far )\n else if ( this.proj_type_str == 'Orthogonal' )\n {\n const near_adjust = 5.0 // this is used so the grid is not clipped\n this.proj_mat = Mat4_Orthogonal( this.viewport.ratio_yx, this.half_size_y, this.near-near_adjust, this.far ) \n }\n else \n throw new Error(`invalid string in 'proj_type'`)\n }", "function computeTexture(u, v) {\n\t//if texture map is loaded then use it else return as it is.\n\tif (!textureData) {//and texturing is to be done.\n\t\tconsole.log(\"ALERT: CODE TO BE MODIFIED:Performing Procedural Texture\")\n\t\treturn;// {Color:{r:0,g:0,b:0}};// proceduralTexture(u, v);\n\t}\n\t//1. warp u,v of vertices \t\t\t/\n\t//2. interpolate u,v,z of pixel \t/\n\t//3. unwarp u,v of pixel using new z \t/\n\t//4. scale u,v \t\t\t\t\t\t/\n\t//5. identify color \t\t\t\t/\n\t//6. use the color for shading \t\t\n\n\t//texture lookup\n\t//scale u,v to texture image size (Xsize, Ysize);\n\t//interpolating u,v part 1 i.e. scaling\n\t//interpolate u,v,z\n\t//unwarp using new interpolated vz\n\t//using unwarp u,v width,height\n\n\t//color = ka, kd\n\n\tvar U = u * (textureData.width - 1);\n\tvar V = v * (textureData.height - 1);\n\tvar s = U % 1;\n\tvar t = V % 1;\n\tvar Color = {};\n\tvar a = U - U % 1;\n\tvar b = V - V % 1;\n\tvar j = (U !== U % 1) ? eval(U - U % 1 + 1) : U < 1 ? 1 : U;\n\tvar i = (V !== V % 1) ? eval(V - V % 1 + 1) : V < 1 ? 1 : V;\n\t//var width = eval(U-U%1);\n\t/*\n\t\t0.123\n\t\t0.998\n\t\t1.001\n\t\t1.999\n\t\t97.999\n\t*/\n\ti = i >= textureData.height ? eval(textureData.height) : i;\n\tj = j >= textureData.width ? eval(textureData.width) : j;\n\t//switching height and width\n\t// height = height+width;\n\t// width = height-width;\n\t// height = height-width;\n\t//interpolating part 2 i.e. interpolating colors\n\t//Testing code in false... should not be required.\n\tif (false) {\n\t\tconsole.log(\"a:\" + a + \" b:\" + b);\n\t\tif (a >= textureData.height - 1) a = textureData.height - 2;\n\t\tif (b >= textureData.width - 1) b = textureData.width - 2;\n\t\tvar cond2 = b < textureData.width - 1;\n\t\tvar cond1 = a < textureData.height - 1;\n\t\tvar cond3 = (b < textureData.width - 1 || a < textureData.height - 1);\n\t\tColor.r = (cond3 ? s * t * textureData.matrix[a + 1][b + 1].r : 0) + (cond1 ? (1 - s) * t * textureData.matrix[a + 1][b].r : 0) + (cond2 ? s * (1 - t) * textureData.matrix[a][b + 1].r : 0) + (true ? (1 - s) * (1 - t) * textureData.matrix[a][b].r : 0);\n\t\tColor.g = (cond3 ? s * t * textureData.matrix[a + 1][b + 1].g : 0) + (cond1 ? (1 - s) * t * textureData.matrix[a + 1][b].g : 0) + (cond2 ? s * (1 - t) * textureData.matrix[a][b + 1].g : 0) + (true ? (1 - s) * (1 - t) * textureData.matrix[a][b].g : 0);\n\t\tColor.b = (cond3 ? s * t * textureData.matrix[a + 1][b + 1].b : 0) + (cond1 ? (1 - s) * t * textureData.matrix[a + 1][b].b : 0) + (cond2 ? s * (1 - t) * textureData.matrix[a][b + 1].b : 0) + (true ? (1 - s) * (1 - t) * textureData.matrix[a][b].b : 0);\n\t}\n\telse {\n\t\tColor.r = s * t * textureData.matrix[i][j].r + (i > 0 ? (1 - s) * t * textureData.matrix[i][j - 1].r : 0) + (j > 0 ? s * (1 - t) * textureData.matrix[i - 1][j].r : 0) + (i > 0 && j > 0 ? (1 - s) * (1 - t) * textureData.matrix[i - 1][j - 1].r : 0);\n\t\tColor.g = s * t * textureData.matrix[i][j].g + (i > 0 ? (1 - s) * t * textureData.matrix[i][j - 1].g : 0) + (j > 0 ? s * (1 - t) * textureData.matrix[i - 1][j].g : 0) + (i > 0 && j > 0 ? (1 - s) * (1 - t) * textureData.matrix[i - 1][j - 1].g : 0);\n\t\tColor.b = s * t * textureData.matrix[i][j].b + (i > 0 ? (1 - s) * t * textureData.matrix[i][j - 1].b : 0) + (j > 0 ? s * (1 - t) * textureData.matrix[i - 1][j].b : 0) + (i > 0 && j > 0 ? (1 - s) * (1 - t) * textureData.matrix[i - 1][j - 1].b : 0);\n\t\tif (Color.r == NaN || Color.g == NaN || Color.b == NaN)\n\t\t\tconsole.log(\"AssertionFailed ERROR!!! s:\" + s + \" t:\" + t + \"U:\" + U + \" V:\" + V + \" i:\" + i + \" j:\" + j + \" r:\" + Color.r + \" g:\" + Color.g + \" b:\" + Color.b);\n\t}\n\treturn { Color: Color };\n\t//interpolate image pixel colors to texture coord\n\t//interpolate color at scaled u,v location (flat coords) in texture image.\n\t//reconstruct texture image color at sample point\n}", "constructor(g, profile, size = 64) {\n this.size = size;\n this.image = new ImageData(new Uint8ClampedArray(this.size * this.size * 4), this.size, this.size);\n\n this.profile = profile;\n\n profile.backlash *= 0.25;\n profile.backlash -= 0.0125; //magic number! have to do this for some reason\n\n let ilen = this.size * this.size * 4;\n let data = this.image.data;\n for (let i = 3; i < ilen; i += 4) {\n data[i] = 255;\n }\n\n this.fdata = new Float32Array(this.size * this.size);\n this.fdata.fill(1.0, 0, this.fdata.length);\n\n this.projscale = this.profile.modulus * 2.0;\n this._unprojxy_tmp = util.cachering.fromConstructor(Vector2, 64);\n this._projxy_tmp = util.cachering.fromConstructor(Vector2, 64);\n }", "updateMatrices() {\n this.projection = perspective(this.fieldOfViewY, this.aspect, this.near, this.far);\n const up = vec3(0, 1, 0);\n this.view = lookAt(this.eye, this.at, up);\n this.viewProjection = mult(this.projection, this.view);\n }", "update(dt, w, h) {\nvar dts, dx, dxm, dy, dym;\n//-----\nthis.checkUpdateViewport(w, h);\nif (0 <= this.dragMode) {\n// Allow a combination of touch and mouse events\n// Turn mouse-motion and/or touch motion into xy rotation deltas in degrees.\ndts = this.SCALE_TIME * dt;\ndx = this.newMouseXY[0] - this.prevMouseXY[0] + this.newTouchXY[0] - this.prevTouchXY[0];\ndy = this.newMouseXY[1] - this.prevMouseXY[1] + this.newTouchXY[1] - this.prevTouchXY[1];\n// The dts value is large in practice -- so this clamping is\n// probably redundant without some tweaking:\ndx = 0 < dx ? Math.min(dts, dx) : Math.max(-dts, dx);\ndy = 0 < dy ? Math.min(dts, dy) : Math.max(-dts, dy);\ndxm = dx * this.DRAG_SENSITIVITY;\ndym = dy * this.DRAG_SENSITIVITY;\n//stat \"Drag [#{dxm},#{dym}]\" if dxm * dym != 0\nif (this.dragMode === 0) {\n// Neither CTRL nor SHIFT down.\n// Horizontal mouse is rotate around y-axis (model-space).\n// Vertical mouse is zoom -- up==in, down==out.\nthis.applyRotsOnVertAndHoriz(-dxm, 0);\nthis.orbitRadius -= dy * this.DELTA_DIST_SCALE;\n} else if (this.dragMode === 1) {\n// SHIFT down.\n// Horizontal mouse is rotate around y-axis (model-space).\n// Vertical mouse is rotate around x-axis (camera-space).\nthis.applyRotsOnVertAndHoriz(-dxm, -dym);\n} else if (this.dragMode === 2) {\n// CTRL down.\n// Horizontal mouse does nothing.\n// Vertical mouse pans up/down y-axis (object-space).\nV3.setAddV3(this.camTarget, [0, dy * this.DELTA_DIST_SCALE, 0]);\n}\nthis.prevMouseXY = this.newMouseXY;\nthis.prevTouchXY = this.newTouchXY;\nreturn this.updateViewMatrix();\n}\n}", "function updateMatrix(Rpx,Rpy,Gpx,Gpy,Bpx,Bpy,Wpx,Wpy) {\n convCoords = [Rpx,Rpy,Gpx,Gpy,Bpx,Bpy,Wpx,Wpy];\n //http://www.brucelindbloom.com/Eqn_RGB_XYZ_Matrix.html\n //http://www.dr-lex.be/random/matrix_inv.html\n // Convert the (x,y) values to X Y Z.\n var Xr = Rpx / Rpy;\n var Xg = Gpx / Gpy;\n var Xb = Bpx / Bpy;\n var Xw = Wpx / Wpy;\n var Yr = 1;\n var Yg = 1;\n var Yb = 1;\n var Yw = 1;\n var Zr = (1 - Rpx - Rpy) / Rpy;\n var Zg = (1 - Gpx - Gpy) / Gpy;\n var Zb = (1 - Bpx - Bpy) / Bpy;\n var Zw = (1 - Wpx - Wpy) / Wpy;\n\n // Get ready for a bunch of painful math. I need to invert a matrix, then multiply it by a vector.\n // Determinant for inverse matrix\n var sDet = (Xr*((Zb*Yg)-(Zg*Yb)))-(Yr*((Zb*Xg)-(Zg*Xb)))+(Zr*((Yb*Xg)-(Yg*Xb)));\n \n var Sr = ((((Zb*Yg)-(Zg*Yb))/sDet)*Xw) + ((-((Zb*Xg)-(Zg*Xb))/sDet)*Yw) + ((((Yb*Xg)-(Yg*Xb))/sDet)*Zw);\n var Sg = ((-((Zb*Yr)-(Zr*Yb))/sDet)*Xw) + ((((Zb*Xr)-(Zr*Xb))/sDet)*Yw) + ((-((Yb*Xr)-(Yr*Xb))/sDet)*Zw);\n var Sb = ((((Zg*Yr)-(Zr*Yg))/sDet)*Xw) + ((-((Zg*Xr)-(Zr*Xg))/sDet)*Yw) + ((((Yg*Xr)-(Yr*Xg))/sDet)*Zw);\n \n // This should be the completed RGB -> XYZ matrix.\n // Multiply the first three members by R, G, and B respectively, then add\n // them together to get X, for example.\n convMatrix[0] = Sr*Xr;\n convMatrix[1] = Sg*Xg;\n convMatrix[2] = Sb*Xb;\n convMatrix[3] = Sr*Yr;\n convMatrix[4] = Sg*Yg;\n convMatrix[5] = Sb*Yb;\n convMatrix[6] = Sr*Zr;\n convMatrix[7] = Sg*Zg;\n convMatrix[8] = Sb*Zb;\n}", "function cutMoveShader(options) {\r\n\r\n\tvar genRectangles = function() {\r\n\t\treturn [[0.30,0.30], [0.70, 0.70]];\r\n\t};\r\n\r\n\tvar genDistances = function() {\r\n\t\treturn [0.5];\r\n\t};\r\n\r\n\toptions = options || {};\r\n\t// defaults\r\n\tvar brkup, rects, dists, maxRectangles;\r\n\tmaxRectangles = options.maxRectangles !== undefined ? options.maxRectangles : 1.0;\r\n\tbrkup = options.breakup !== undefined ? options.breakup : 0.5;\r\n\trects = options.rects !== undefined ? options.rects : genRectangles();\r\n\tdists = options.distances !== undefined ? options.distances : genDistances();\r\n\r\n\tvar vs = [\r\n\t\t\"varying vec2 vUv;\",\r\n\t\t\"void main() {\",\r\n\t\t\t\"vUv = uv;\",\r\n\t\t\t\"gl_Position = vec4(position, 1.0);\",\r\n\t\t\"}\"\r\n\t].join(\"\\n\");\r\n\r\n\tvar fs = [\r\n\t// first decide if in union of original rectangle and moved rectangle\r\n\t// next decide if in only the original\r\n\t// if only original diplay back with normal coords\r\n\t// if new rect sample front with offset\r\n\t// else sample front\r\n\t\"uniform sampler2D texture1;\",\r\n\t\"uniform sampler2D texture2;\",\r\n\t\"uniform float breakup;\",\r\n\t\"uniform vec2 rects[\", (maxRectangles * 2).toString(), \"];\",\r\n\t\"uniform float distances[\", maxRectangles.toString(), \"];\",\r\n\r\n\t\"varying vec2 vUv;\",\r\n\r\n\t\"void main() {\",\r\n\t\t\"vec4 colorOutput;\",\r\n\t\t\"for(int i = 0; i < \", (maxRectangles * 2).toString(), \"; i += 2) {\",\r\n\t\t\t\"vec4 rect = vec4(rects[i], rects[i+1]);\",\r\n\t\t\t\"float d = distances[int(i/2)];\",\r\n\t\t\t\"vec2 bounds = vec2(rect.z - rect.x, rect.w - rect.y);\",\r\n\t\t\t\"if( vUv.x > rect.x && vUv.y > rect.y && vUv.x < rect.z + (bounds.x * d) && vUv.y < rect.w) {\",\r\n\t\t\t\t\"if(vUv.x < rect.x + (bounds.x * d)) {\",\r\n\t\t\t\t\t\"colorOutput = texture2D(texture2, vUv);\",\r\n\t\t\t\t\"}\",\r\n\t\t\t\t\"else {\",\r\n\t\t\t\t\t\"colorOutput = texture2D(texture1, vec2(vUv.x - (bounds.x * d), vUv.y));\",\r\n\t\t\t\t\"}\",\r\n\t\t\t\"}\",\r\n\t\t\t\"else {\",\r\n\t\t\t\t\"colorOutput = texture2D(texture1, vUv);\",\r\n\t\t\t\"}\",\r\n\t\t\"}\",\r\n\t\t\"gl_FragColor = colorOutput;\",\r\n\t\"}\" \r\n\t].join(\"\\n\");\r\n\r\n\tvar uniforms = {\r\n\t\ttexture1: {type: \"t\", value: null},\r\n\t\ttexture2: {type: \"t\", value: null},\r\n\t\tbreakup: {type: \"f\", value: 0.0},\r\n\t\trects: {type: \"v2v\", value: []},\r\n\t\tdistances: {type: \"fv1\", value: []}\r\n\t};\r\n\r\n\tvar cutMoveShader = new THREE.ShaderMaterial ( {\r\n\t\tuniforms : uniforms, \r\n\t\tvertexShader: vs,\r\n\t\tfragmentShader: fs\r\n\t});\r\n\r\n\tcutMoveShader.uniforms.breakup.value = brkup;\r\n\tcutMoveShader.uniforms.rects.value = rects;\r\n\tcutMoveShader.uniforms.distances.value = dists;\r\n\r\n\tvar update = function (options) {\r\n\t\tcutMoveShader.uniforms.breakup.value = uniforms.breakup;\r\n\t\tcutMoveShader.uniforms.rects.value = uniforms.rects;\r\n\t\tcutMoveShader.uniforms.distances.value = uniforms.distances;\r\n\t}\r\n\r\n\treturn {\r\n\t\tshader: cutMoveShader,\r\n\t\tuniform: uniforms,\r\n\t\tupdate: update\r\n\t}\r\n\r\n}", "function perspective_project(vec, d) {\n var x = vec[0];\n var y = vec[1];\n var z = vec[2];\n if (z > 0) {\n return [x * d / z, -y * d / z];\n } else {\n return false;\n }\n}", "function t$f(t,l){const c=t.vertex.code;l.verticalOffsetEnabled?(t.vertex.uniforms.add(\"verticalOffset\",\"vec4\"),l.screenSizePerspectiveEnabled&&(t.include(r$d),t.vertex.uniforms.add(\"screenSizePerspectiveAlignment\",\"vec4\")),c.add(t$i`\n vec3 calculateVerticalOffset(vec3 worldPos, vec3 localOrigin) {\n float viewDistance = length((view * vec4(worldPos, 1.0)).xyz);\n ${1===l.viewingMode?t$i`vec3 worldNormal = normalize(worldPos + localOrigin);`:t$i`vec3 worldNormal = vec3(0.0, 0.0, 1.0);`}\n ${l.screenSizePerspectiveEnabled?t$i`\n float cosAngle = dot(worldNormal, normalize(worldPos - camPos));\n float verticalOffsetScreenHeight = screenSizePerspectiveScaleFloat(verticalOffset.x, abs(cosAngle), viewDistance, screenSizePerspectiveAlignment);`:t$i`\n float verticalOffsetScreenHeight = verticalOffset.x;`}\n // Screen sized offset in world space, used for example for line callouts\n float worldOffset = clamp(verticalOffsetScreenHeight * verticalOffset.y * viewDistance, verticalOffset.z, verticalOffset.w);\n return worldNormal * worldOffset;\n }\n\n vec3 addVerticalOffset(vec3 worldPos, vec3 localOrigin) {\n return worldPos + calculateVerticalOffset(worldPos, localOrigin);\n }\n `)):c.add(t$i`vec3 addVerticalOffset(vec3 worldPos, vec3 localOrigin) { return worldPos; }`);}", "constrain() {\n if(this.pos.x + this.r > this.constrainX){ //if x_over\n this.pos.x = this.constrainX - this.r;\n }else if(this.pos.x - this.r < -this.constrainX){ //if x_under\n this.pos.x = -this.constrainX + this.r;\n }\n\n if(this.pos.y + this.r > this.constrainY){//if y_over\n this.pos.y = this.constrainY - this.r;\n }else if(this.pos.y - this.r < -this.constrainY){//if y_under\n this.pos.y = -this.constrainY + this.r;\n }\n\n }", "function updateMVP() {\n\n\tviewMatrix_value = SC.getViewMatrix(); // obtain the new view matrix from camera\n\tmvMatrix_value = mat4.create(); // Reset to identity matrix\n\tmvpMatrix_value = mat4.create();\n\tnormalMatrix_value = mat3.create();\n\n\t// Obtain the ModelView Matrix\n\tmat4.multiply(mvMatrix_value, modelMatrix_value, mvMatrix_value);\n\tmat4.multiply(mvMatrix_value, viewMatrix_value, mvMatrix_value);\n\n\t// Based on MV, obtain MVP\n\tmat4.multiply(mvpMatrix_value, mvMatrix_value, mvpMatrix_value);\n\tmat4.multiply(mvpMatrix_value, projMatrix_value, mvpMatrix_value);\n\n\t// Based on MV, obtain Normal Matrix\n\tmat3.fromMat4(normalMatrix_value, mvMatrix_value);\n\tmat3.invert(normalMatrix_value, normalMatrix_value);\n\tmat3.transpose(normalMatrix_value, normalMatrix_value);\n\n\t// Update the graphics card with the latest values\n\tgl.useProgram(shader_program);\n\tgl.uniformMatrix4fv(viewMatrix_location, gl.FALSE, viewMatrix_value);\n\tgl.uniformMatrix4fv(mvMatrix_location, gl.FALSE, mvMatrix_value);\n\tgl.uniformMatrix4fv(mvpMatrix_location, gl.FALSE, mvpMatrix_value);\n\tgl.uniformMatrix3fv(normalMatrix_location, false, normalMatrix_value);\n\tgl.useProgram(null);\n}", "blendBrushtip(src,tgt,param){\n\t\tprogram.setTargetTexture(tgt.data); // draw to temp data\n\t\tgl.viewport(0,0,w,h);\n\t\tgl.clearColor(0,0,0,0);\n\t\tgl.clear(gl.COLOR_BUFFER_BIT);\n\n\t\tprogram.setSourceTexture(\"u_image\",src.data);\n\t\tprogram.setUniform(\"u_aa_step\",[1/w,0]);\n\t\tprogram.setUniform(\"u_aa_cnt\",antiAliasRadius);\n\t\tgl.viewport(imgData.left,h-ih-imgData.top,iw,ih); // set viewport according to the image data\n\t\tgl.blendFunc(this.gl.ONE,this.gl.ZERO); // copy\n\t\tprogram.run();\n\t}", "function returnVec(x, y, quad) {\r\n var vecReturned;\r\n var vec = vec3(0, 0, 0);\r\n var d1 = 0.0;\r\n var d2 = 0.0;\r\n var d3 = 0.0\r\n var smallest = 0.0;\r\n switch (quad) {\r\n case 2:\r\n vec = computeCameraOrientation(x, y, quad, vec);\r\n d1 = getDistance(vec[0], vec[1], cameraLookAt[0], cameraLookAt[1]);\r\n d2 = getDistance(vec[0], vec[1], cameraLookFrom[0], cameraLookFrom[1]);\r\n d3 = getDistance(vec[0], vec[1], cameraLookUpnew[0], cameraLookUpnew[1]);\r\n smallest = minOfThree(d1, d2, d3);\r\n vecReturned = getClosestVector(d1, d2, d3, smallest);\r\n break;\r\n case 3:\r\n vec = computeCameraOrientation(x, y, quad, vec);\r\n d1 = getDistance(vec[0], vec[2], cameraLookAt[0], cameraLookAt[2]);\r\n d2 = getDistance(vec[0], vec[2], cameraLookFrom[0], cameraLookFrom[2]);\r\n d3 = getDistance(vec[0], vec[2], cameraLookUpnew[0], cameraLookUpnew[2]);\r\n smallest = minOfThree(d1, d2, d3);\r\n vecReturned = getClosestVector(d1, d2, d3, smallest);\r\n break;\r\n case 4:\r\n vec = computeCameraOrientation(x, y, quad, vec);\r\n d1 = getDistance(vec[2], vec[1], cameraLookAt[2], cameraLookAt[1]);\r\n d2 = getDistance(vec[2], vec[1], cameraLookFrom[2], cameraLookFrom[1]);\r\n d3 = getDistance(vec[2], vec[1], cameraLookUpnew[2], cameraLookUpnew[1]);\r\n smallest = minOfThree(d1, d2, d3);\r\n vecReturned = getClosestVector(d1, d2, d3, smallest);\r\n break;\r\n }\r\n return vecReturned;\r\n}", "function dist2(v, w) { \n var lx = (v.x - w.x);\n\tvar ly = (v.y - w.y);\n\treturn lx*lx+ly*ly;\n}", "function filter(__src, f)\n{\n var h = __src.h,\n w = __src.w;\n var dst = new RGBAImage(w, h);\n var data = dst.data,\n data2 = __src.data;\n\n var wf = Math.floor(f.width / 2);\n var hf = Math.floor(f.height / 2);\n var bias = f.bias;\n var factor = f.factor;\n var p = f.p;\n\n if( p && p != 1.0 ) {\n for (var y=0;y<h;y++)\n {\n for (var x=0;x<w;x++)\n {\n var fidx = 0;\n var r, g, b;\n r = g = b = 0;\n var idx = (y*w+x)*4;\n for (var i=-hf, fi=0;i<=hf;i++,fi++)\n {\n var py = clamp(i+y,0,h-1);\n for (var j=-wf, fj=0;j<=wf;j++,fj++)\n {\n var px = clamp(j+x,0,w-1);\n\n var pidx = (py * w + px) * 4;\n\n var weight = f.value[fidx++];\n\n r += Math.pow(data2[pidx] * weight, p);\n g += Math.pow(data2[pidx+1] * weight, p);\n b += Math.pow(data2[pidx+2] * weight, p);\n }\n }\n\n r = clamp(Math.pow(r,1/p)/factor+bias, 0.0, 255.0);\n g = clamp(Math.pow(g,1/p)/factor+bias, 0.0, 255.0);\n b = clamp(Math.pow(b,1/p)/factor+bias, 0.0, 255.0);\n\n data[idx] = r;\n data[idx+1] = g;\n data[idx+2] = b;\n data[idx+3] = data2[idx+3];\n }\n }\n }\n else {\n // p is undefined or p is 1.0\n // no need to compute the power, which is time consuming\n for (var y=0;y<h;y++)\n {\n for (var x=0;x<w;x++)\n {\n var fidx = 0;\n var r, g, b;\n r = g = b = 0;\n var idx = (y*w+x)*4;\n for (var i=-hf, fi=0;i<=hf;i++,fi++)\n {\n var py = clamp(i+y,0,h-1);\n for (var j=-wf, fj=0;j<=wf;j++,fj++)\n {\n var px = clamp(j+x,0,w-1);\n\n var pidx = (py * w + px) * 4;\n\n var weight = f.value[fidx++];\n\n r += data2[pidx] * weight;\n g += data2[pidx+1] * weight;\n b += data2[pidx+2] * weight;\n }\n }\n\n r = clamp(r/factor+bias, 0.0, 255.0);\n g = clamp(g/factor+bias, 0.0, 255.0);\n b = clamp(b/factor+bias, 0.0, 255.0);\n\n data[idx] = r;\n data[idx+1] = g;\n data[idx+2] = b;\n data[idx+3] = data2[idx+3];\n }\n }\n }\n\n return dst;\n}", "setProjection() {\n this.extent = [0, 0, this.imwidth, this.imheight];\n this.projection = new ol.proj.Projection({\n code: 'ifu',\n units: 'pixels',\n extent: this.extent\n });\n }", "function j$2(j){const E=new n$8,O=E.vertex.code,_=E.fragment.code;return E.vertex.uniforms.add(\"proj\",\"mat4\").add(\"view\",\"mat4\").add(\"camPos\",\"vec3\").add(\"localOrigin\",\"vec3\"),E.include(o$7),E.varyings.add(\"vpos\",\"vec3\"),E.include(e$9,j),E.include(n$9,j),E.include(t$f,j),0!==j.output&&7!==j.output||(E.include(o$8,j),E.include(r$9,{linearDepth:!1}),j.offsetBackfaces&&E.include(e$8),j.instancedColor&&E.attributes.add(\"instanceColor\",\"vec4\"),E.varyings.add(\"vNormalWorld\",\"vec3\"),E.varyings.add(\"localvpos\",\"vec3\"),j.multipassTerrainEnabled&&E.varyings.add(\"depth\",\"float\"),E.include(t$b,j),E.include(a$5,j),E.include(r$7,j),E.include(r$6,j),E.vertex.uniforms.add(\"externalColor\",\"vec4\"),E.varyings.add(\"vcolorExt\",\"vec4\"),O.add(t$i`\n void main(void) {\n forwardNormalizedVertexColor();\n vcolorExt = externalColor;\n ${j.instancedColor?\"vcolorExt *= instanceColor;\":\"\"}\n vcolorExt *= vvColor();\n vcolorExt *= getSymbolColor();\n forwardColorMixMode();\n\n if (vcolorExt.a < ${t$i.float(o$f)}) {\n gl_Position = vec4(1e38, 1e38, 1e38, 1.0);\n }\n else {\n vpos = calculateVPos();\n localvpos = vpos - view[3].xyz;\n vpos = subtractOrigin(vpos);\n vNormalWorld = dpNormal(vvLocalNormal(normalModel()));\n vpos = addVerticalOffset(vpos, localOrigin);\n gl_Position = transformPosition(proj, view, vpos);\n ${j.offsetBackfaces?\"gl_Position = offsetBackfacingClipPosition(gl_Position, vpos, vNormalWorld, camPos);\":\"\"}\n }\n ${j.multipassTerrainEnabled?t$i`depth = (view * vec4(vpos, 1.0)).z;`:\"\"}\n forwardLinearDepth();\n forwardTextureCoordinates();\n }\n `)),7===j.output&&(E.include(c$6,j),E.include(r$h,j),j.multipassTerrainEnabled&&(E.fragment.include(a$6),E.include(r$c,j)),E.fragment.uniforms.add(\"camPos\",\"vec3\").add(\"localOrigin\",\"vec3\").add(\"opacity\",\"float\").add(\"layerOpacity\",\"float\"),E.fragment.uniforms.add(\"view\",\"mat4\"),j.hasColorTexture&&E.fragment.uniforms.add(\"tex\",\"sampler2D\"),E.fragment.include(i$7),_.add(t$i`\n void main() {\n discardBySlice(vpos);\n ${j.multipassTerrainEnabled?t$i`terrainDepthTest(gl_FragCoord, depth);`:\"\"}\n ${j.hasColorTexture?t$i`\n vec4 texColor = texture2D(tex, vuv0);\n ${j.textureAlphaPremultiplied?\"texColor.rgb /= texColor.a;\":\"\"}\n discardOrAdjustAlpha(texColor);`:t$i`vec4 texColor = vec4(1.0);`}\n ${j.attributeColor?t$i`\n float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:t$i`\n float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));\n `}\n\n gl_FragColor = vec4(opacity_);\n }\n `)),0===j.output&&(E.include(c$6,j),E.include(l$4,j),E.include(o$6,j),E.include(r$h,j),j.receiveShadows&&E.include(i$9,j),j.multipassTerrainEnabled&&(E.fragment.include(a$6),E.include(r$c,j)),E.fragment.uniforms.add(\"camPos\",\"vec3\").add(\"localOrigin\",\"vec3\").add(\"ambient\",\"vec3\").add(\"diffuse\",\"vec3\").add(\"opacity\",\"float\").add(\"layerOpacity\",\"float\"),E.fragment.uniforms.add(\"view\",\"mat4\"),j.hasColorTexture&&E.fragment.uniforms.add(\"tex\",\"sampler2D\"),E.include(r$a,j),E.include(a$4,j),E.fragment.include(i$7),_.add(t$i`\n void main() {\n discardBySlice(vpos);\n ${j.multipassTerrainEnabled?t$i`terrainDepthTest(gl_FragCoord, depth);`:\"\"}\n ${j.hasColorTexture?t$i`\n vec4 texColor = texture2D(tex, vuv0);\n ${j.textureAlphaPremultiplied?\"texColor.rgb /= texColor.a;\":\"\"}\n discardOrAdjustAlpha(texColor);`:t$i`vec4 texColor = vec4(1.0);`}\n vec3 viewDirection = normalize(vpos - camPos);\n ${1===j.pbrMode?\"applyPBRFactors();\":\"\"}\n float ssao = evaluateAmbientOcclusionInverse();\n ssao *= getBakedOcclusion();\n\n float additionalAmbientScale = _oldHeuristicLighting(vpos + localOrigin);\n vec3 additionalLight = ssao * lightingMainIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;\n ${j.receiveShadows?\"float shadow = readShadowMap(vpos, linearDepth);\":1===j.viewingMode?\"float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);\":\"float shadow = 0.0;\"}\n vec3 matColor = max(ambient, diffuse);\n ${j.attributeColor?t$i`\n vec3 albedo_ = mixExternalColor(vColor.rgb * matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));\n float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:t$i`\n vec3 albedo_ = mixExternalColor(matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));\n float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));\n `}\n ${t$i`\n vec3 shadedNormal = normalize(vNormalWorld);\n albedo_ *= 1.2;\n vec3 viewForward = - vec3(view[0][2], view[1][2], view[2][2]);\n float alignmentLightView = clamp(dot(-viewForward, lightingMainDirection), 0.0, 1.0);\n float transmittance = 1.0 - clamp(dot(-viewForward, shadedNormal), 0.0, 1.0);\n float treeRadialFalloff = vColor.r;\n float backLightFactor = 0.5 * treeRadialFalloff * alignmentLightView * transmittance * (1.0 - shadow);\n additionalLight += backLightFactor * lightingMainIntensity;`}\n ${1===j.pbrMode||2===j.pbrMode?1===j.viewingMode?t$i`vec3 normalGround = normalize(vpos + localOrigin);`:t$i`vec3 normalGround = vec3(0.0, 0.0, 1.0);`:t$i``}\n ${1===j.pbrMode||2===j.pbrMode?t$i`\n float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * lightingMainIntensity[2];\n vec3 shadedColor = evaluateSceneLightingPBR(shadedNormal, albedo_, shadow, 1.0 - ssao, additionalLight, viewDirection, normalGround, mrr, emission, additionalAmbientIrradiance);`:\"vec3 shadedColor = evaluateSceneLighting(shadedNormal, albedo_, shadow, 1.0 - ssao, additionalLight);\"}\n gl_FragColor = highlightSlice(vec4(shadedColor, opacity_), vpos);\n ${j.OITEnabled?\"gl_FragColor = premultiplyAlpha(gl_FragColor);\":\"\"}\n }\n `)),E.include(u$3,j),E}", "function render2(now) \n {\n now *= 0.001; // convert to seconds\n const deltaTime = now - then;\n then = now;\n\n if( copyVideo )\n {\n canvas.width = image.videoWidth;\n canvas.height = image.videoHeight;\n\n var vertex_shader_source = document.getElementById( \"vertex_shader\").text;\n var fragment_shader_source = document.getElementById( \"fragment_shader\" ).text;\n\n var vertex_shader = create_shader( gl, gl.VERTEX_SHADER, vertex_shader_source );\n var fragment_shader = create_shader( gl, gl.FRAGMENT_SHADER, fragment_shader_source );\n\n var program = create_shader_program( gl, vertex_shader, fragment_shader );\n\n var position_attr_location = gl.getAttribLocation( program, \"a_position\" );\n var texture_attr_location = gl.getAttribLocation( program, \"a_tex_coord\" );\n\n \n var position_buffer = gl.createBuffer();\n gl.bindBuffer( gl.ARRAY_BUFFER, position_buffer );\n console.log( image );\n console.log( image.videoWidth + \" \" + image.videoHeight );\n\n setRectangle(gl, 0, 0, image.videoWidth, image.videoHeight, 0.5, 0.5 );\n\n var tex_coord_buffer = gl.createBuffer();\n gl.bindBuffer( gl.ARRAY_BUFFER, tex_coord_buffer );\n\n setRectangle( gl, 0,0, image.videoWidth, image.videoHeight, 0.5, 0.5 );\n\n var texture = gl.createTexture();\n\n gl.bindTexture( gl.TEXTURE_2D, texture );\n \n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);\n\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image );\n\n var resolution_location = gl.getUniformLocation(program, \"u_resolution\" );\n\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image );\n\ngl.viewport( 0, 0, canvas.width, canvas.height );\n\n gl.clearColor( 0, 0, 0, 0 );\n\n gl.clear( gl.COLOR_BUFFER_BIT );\n\n gl.useProgram(program);\n\n gl.enableVertexAttribArray( position_attr_location );\n\n gl.bindBuffer( gl.ARRAY_BUFFER, position_buffer );\n\n gl.vertexAttribPointer( position_attr_location, 2, gl.FLOAT, false, 0, 0 );\n\n gl.enableVertexAttribArray( texture_attr_location );\n\n gl.bindBuffer( gl.ARRAY_BUFFER, tex_coord_buffer );\n\n gl.vertexAttribPointer( texture_attr_location, 2, gl.FLOAT, false, 0, 0 );\n\n gl.uniform2f( resolution_location, gl.canvas.width, gl.canvas.height );\n\n var number_of_verts = 12; // we are now creating 4 triangles.\n gl.drawArrays(gl.TRIANGLES, 0, number_of_verts );\n}\n\n requestAnimationFrame(render2);\n }", "activate() {\n // TODO refactor usage of frame..\n const gl = this.gl;\n\n // make sure the texture is unbound!\n this.frameBuffer.bind();\n\n this.calculateProjection(this.destinationFrame, this.sourceFrame);\n\n if (this.transform) {\n this.projectionMatrix.append(this.transform);\n }\n\n // TODO add a check as them may be the same!\n if (this.destinationFrame !== this.sourceFrame) {\n gl.enable(gl.SCISSOR_TEST);\n gl.scissor(\n this.destinationFrame.x | 0,\n this.destinationFrame.y | 0,\n (this.destinationFrame.width * this.resolution) | 0,\n (this.destinationFrame.height * this.resolution) | 0\n );\n } else {\n gl.disable(gl.SCISSOR_TEST);\n }\n\n // TODO - does not need to be updated all the time??\n gl.viewport(\n this.destinationFrame.x | 0,\n this.destinationFrame.y | 0,\n (this.destinationFrame.width * this.resolution) | 0,\n (this.destinationFrame.height * this.resolution) | 0\n );\n }", "function TargetCamera(fov, aspect, near, far) {\n THREE.PerspectiveCamera.call(this);\n var self = this;\n\n self.MAXIMUM_DISTANCE = far < 10000 ? far : 10000;\n self.MINIMUM_DISTANCE = 1;\n self.VIEWS = {\n TOP: 0,\n LEFT: 1,\n RIGHT: 2,\n FRONT: 3,\n BACK: 4,\n PERSPECTIVE: 5\n };\n self.ZOOM_FACTOR = 1.5;\n\n self.aspect = aspect;\n self.far = far;\n self.fov = fov;\n self.near = near;\n self.up = new THREE.Vector3(0, 0, 1);\n self.updateProjectionMatrix();\n\n self.distance = 1;\n self.position.set(0, -1, 0);\n self.target = new THREE.Vector3(0, 0, 0);\n\n // set defaults\n self.lookAt(self.target);\n }", "function set_fov (theta) {\r\n fov = theta;\r\n}", "constructor(img, srcX, srcY, srcW, srcH) {\n this.img = img;\n this.srcX = srcX;\n this.srcY = srcY;\n this.srcW = srcW;\n this.srcH = srcH;\n }", "r(u, v) { return (u[0] * v[0] + u[1] * v[1]) / (this.m(u) * this.m(v)); }", "getProjection(other_vector) {\n\n }", "computeFrustrumCorners() {\n let view_inv = mat4.create();\n let proj_inv = mat4.create();\n let transform = mat4.create();\n mat4.invert(view_inv, this.viewMatrix);\n mat4.invert(proj_inv, this.projectionMatrix);\n mat4.multiply(transform, view_inv, proj_inv);\n\n let points = [\n vec4.fromValues(-1.0, -1.0, -1.0, 1.0),\n vec4.fromValues(-1.0, -1.0, 1.0, 1.0),\n vec4.fromValues(-1.0, 1.0, -1.0, 1.0),\n vec4.fromValues(-1.0, 1.0, 1.0, 1.0),\n vec4.fromValues( 1.0, -1.0, -1.0, 1.0),\n vec4.fromValues( 1.0, -1.0, 1.0, 1.0),\n vec4.fromValues( 1.0, 1.0, -1.0, 1.0),\n vec4.fromValues( 1.0, 1.0, 1.0, 1.0)\n ];\n for (let p of points) {\n vec4.transformMat4(p, p, transform);\n // Divide by p.w\n vec4.divide(p, p, vec4.fromValues(p[3], p[3], p[3], p[3]));\n }\n return points;\n }", "toWorld(pos) {\n let zFar = this.far;\n if (zFar === 0)\n zFar = WbViewpoint.DEFAULT_FAR;\n\n const projection = new WbMatrix4();\n projection.set(1.0 / (this.aspectRatio * this._tanHalfFieldOfViewY), 0, 0, 0, 0, 1.0 / this._tanHalfFieldOfViewY, 0, 0, 0, 0, zFar / (this.near - zFar), -(zFar * this.near) / (zFar - this.near), 0, 0, -1, 0);\n const eye = new WbVector3(this.position.x, this.position.y, this.position.z);\n const center = eye.sub(direction(this.orientation));\n const upVec = up(this.orientation);\n\n const f = (center.sub(eye)).normalized();\n const s = f.cross(upVec).normalized();\n const u = s.cross(f);\n\n const view = new WbMatrix4();\n view.set(-s.x, -s.y, -s.z, s.dot(eye), u.x, u.y, u.z, -u.dot(eye), f.x, f.y, f.z, -f.dot(eye), 0, 0, 0, 1);\n\n const inverse = projection.mul(view);\n if (!inverse.inverse())\n return;\n\n let screenCoord = new WbVector4(pos.x, pos.y, pos.z, 1.0);\n screenCoord = inverse.mulByVec4(screenCoord);\n return screenCoord.div(screenCoord.w);\n }", "function applyProjection(p, m) {\n\t var x = p.x,\n\t y = p.y,\n\t z = p.z;\n\t var e = m.elements;\n\t var w = e[3] * x + e[7] * y + e[11] * z + e[15];\n\t //This is the difference between this function and\n\t //the normal THREE.Vector3.applyProjection. We avoid\n\t //inverting the positions of points behind the camera,\n\t //otherwise our screen area computation can result in\n\t //boxes getting clipped out when they are in fact partially visible.\n\t if (w < 0) w = -w;\n\t var d = 1.0 / w;\n\t p.x = (e[0] * x + e[4] * y + e[8] * z + e[12]) * d;\n\t p.y = (e[1] * x + e[5] * y + e[9] * z + e[13]) * d;\n\t //We also don't need the Z\n\t //p.z = ( e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z + e[ 14 ] ) * d;\n\t }", "function sproj2d(a, b)\r\n{\r\n return dot2d(unit2d(a), b);\r\n}", "function texPrism_line_dist(vparas) {\n var layrs = vparas.layars || 3;\n return { fragmentShader: `\n #define WEIGHT 0.4\n\n uniform sampler2D u_tex;\n\n varying vec2 vUv;\n varying vec3 P;\n varying vec3 P0;\n varying vec3 P1;\n varying vec3 P2;\n varying vec3 P3;\n varying vec4 cent[${layrs}];\n\n // https://math.stackexchange.com/questions/2213165/find-shortest-distance-between-lines-in-3d\n // 𝐧 = 𝐞1 × 𝐞2 = (−20, −11, −26)\n // rasterize functions\n float line(vec3 e, vec3 P, vec3 p0, vec3 p1, float w) {\n vec3 e2 = p1 - p0;\n vec3 e1 = P - e;\n vec3 n = normalize(cross(e1, e2));\n float dist = dot(n, e - p0);\n dist = 1.0/dist * WEIGHT * w;\n // return min(dist * dist, 1.0);\n return abs(dist);\n }\n\n vec4 mainImage( in vec2 fragCoord ) {\n float line_width = 0.4;\n float col = line(cameraPosition, P, P0, P1, line_width);\n col += line(cameraPosition, P, P2, P3, line_width);\n return vec4(col);\n }\n\n void main() {\n gl_FragColor += mainImage(gl_FragCoord.xy);\n gl_FragColor.g += 0.7;\n gl_FragColor.a += 0.2;\n }`,\n\n vertexShader: `\n uniform vec3 wpos;\n uniform vec3 offsets[${layrs}];\n uniform vec3 orbScale;\n\n attribute vec3 a_tan;\n attribute vec3 a_pos;\n\n varying vec2 vUv;\n varying vec3 P;\n varying vec3 P0;\n varying vec3 P1;\n varying vec3 P2;\n varying vec3 P3;\n varying vec3 vscale;\n varying vec4 cent[${layrs}];\n\n void main() {\n // vUv = uv;\n\n // gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n vec4 worldPosition = modelMatrix * vec4(position, 1.0);\n\n P = worldPosition.xyz;\n vscale = orbScale;\n for (int i = 0; i < ${layrs}; i++){\n // cent[i] = modelMatrix * vec4(wpos + offsets[i], 1.);\n cent[i] = worldPosition;\n }\n\n gl_Position = projectionMatrix * viewMatrix * worldPosition;\n\n vec4 v4 = modelMatrix * vec4( vec3(-150., 0., -50.), 1.0 );\n P0 = v4.xyz;\n v4 = modelMatrix * vec4( vec3(150., 0., -50.), 1.0 );\n P1 = v4.xyz;\n\n v4 = modelMatrix * vec4( vec3(0., 150., 50.), 1.0 );\n P2 = v4.xyz;\n v4 = modelMatrix * vec4( vec3(0., -150., 50.), 1.0 );\n P3 = v4.xyz;\n\n v4 = projectionMatrix * modelViewMatrix * vec4(uv.s, uv.t, 0., 1.0);\n vUv = v4.xy; // / v4.z;\n } `\n }\n}", "initTextureBuffer(image) {\r\n let uvCoords = [];\r\n {\r\n // 1\r\n let tl1 = [0, 0.4];\r\n let bl1 = [0, 0];\r\n let tr1 = [0.5, 0.4];\r\n let br1 = [0.5, 0];\r\n uvCoords = uvCoords.concat(tl1, bl1, br1, tl1, br1, tr1);\r\n\r\n // 2\r\n let tl2 = [0, 0.8];\r\n let bl2 = [0, 0.5];\r\n let tr2 = [0.25, 0.8];\r\n let br2 = [0.25, 0.5];\r\n uvCoords = uvCoords.concat(tl2, bl2, br2, tl2, br2, tr2);\r\n\r\n // 3\r\n let tl3 = [0.25, 0.5];\r\n let bl3 = [0.25, 0.4];\r\n let tr3 = [0.5, 0.5];\r\n let br3 = [0.5, 0.4];\r\n uvCoords = uvCoords.concat(tl3, bl3, br3, tl3, br3, tr3);\r\n\r\n // 4\r\n let tl4 = [0.25, 0.75];\r\n let bl4 = [0.25, 0.5];\r\n let tr4 = [0.375, 0.75];\r\n let br4 = [0.375, 0.5];\r\n uvCoords = uvCoords.concat(tl4, bl4, br4, tl4, br4, tr4);\r\n\r\n // 5\r\n let bl5 = [0.375, 0.5];\r\n let t5 = [0.375, 0.75];\r\n let br5 = [0.5, 0.5];\r\n uvCoords = uvCoords.concat(bl5, t5, br5);\r\n\r\n // 6\r\n let tl6 = [0, 1];\r\n let bl6 = [0, 0.9];\r\n let tr6 = [0.15, 1];\r\n let br6 = [0.15, 0.9];\r\n uvCoords = uvCoords.concat(tl6, bl6, br6, tl6, br6, tr6);\r\n\r\n // 7\r\n let tl7 = [0.15, 1];\r\n let bl7 = [0.15, 0.9];\r\n let tr7 = [0.25, 1];\r\n let br7 = [0.25, 0.9];\r\n uvCoords = uvCoords.concat(tl7, bl7, br7, tl7, br7, tr7);\r\n\r\n // Roof\r\n let tlRoof = [0.15, 0.9];\r\n let blRoof = [0.15, 0.8];\r\n let trRoof = [0.2, 0.9];\r\n let brRoof = [0.2, 0.8];\r\n uvCoords = uvCoords.concat(tlRoof, blRoof, brRoof, tlRoof, brRoof, trRoof);\r\n\r\n // BackWindows\r\n let tl10 = [0.5, 1];\r\n let bl10 = [0.5, 0.9];\r\n let tr10 = [0.65, 1];\r\n let br10 = [0.65, 0.9];\r\n uvCoords = uvCoords.concat(tl10, bl10, br10, tl10, br10, tr10);\r\n\r\n // LeftWindow\r\n uvCoords = uvCoords.concat(tl3, bl3, br3, tl3, br3, tr3);\r\n uvCoords = uvCoords.concat(tl4, bl4, br4, tl4, br4, tr4);\r\n uvCoords = uvCoords.concat(bl5, t5, br5);\r\n\r\n // 8\r\n let tl8 = [0.25, 1];\r\n let bl8 = [0.25, 0.8];\r\n let tr8 = [0.5, 1];\r\n let br8 = [0.5, 0.8];\r\n uvCoords = uvCoords.concat(tl8, bl8, br8, tl8, br8, tr8);\r\n\r\n // 9\r\n let tl9 = [0.5, 0.8];\r\n let bl9 = [0.5, 0.5];\r\n let tr9 = [0.75, 0.8];\r\n let br9 = [0.75, 0.5];\r\n uvCoords = uvCoords.concat(tl9, bl9, br9, tl9, br9, tr9);\r\n\r\n // 1_leftSide\r\n uvCoords = uvCoords.concat(tl1, bl1, br1, tl1, br1, tr1);\r\n\r\n // Bottom\r\n let tl11 = [0.5, 0.4];\r\n let bl11 = [0.5, 0];\r\n let tr11 = [1, 0.4];\r\n let br11 = [1, 0];\r\n uvCoords = uvCoords.concat(tl11, bl11, br11, tl11, br11, tr11);\r\n }\r\n\r\n let uvs = new Float32Array(uvCoords);\r\n\r\n this.carTexture = this.gl.createTexture();\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.carTexture);\r\n\r\n this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL, true);\r\n this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);\r\n\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.gl.RGBA, this.gl.UNSIGNED_BYTE, image);\r\n\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_MAG_FILTER, this.gl.NEAREST);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_MIN_FILTER, this.gl.NEAREST);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, null);\r\n\r\n this.carTextureBuffer = this.gl.createBuffer();\r\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.carTextureBuffer);\r\n this.gl.bufferData(this.gl.ARRAY_BUFFER, uvs, this.gl.STATIC_DRAW);\r\n this.carTextureBuffer.itemSize = 2;\r\n this.carTextureBuffer.numberOfItems = uvCoords.length / this.carTextureBuffer.itemSize;\r\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, null);\r\n }", "resetVisibleView() {\n this.computeVisibleBoundingBox();\n this.controls.target.x = 0.5 * (this.visibleBoundingBox.minX + this.visibleBoundingBox.maxX);\n this.controls.target.y = 0.5 * (this.visibleBoundingBox.minY + this.visibleBoundingBox.maxY);\n this.controls.target.z = 0.5 * (this.visibleBoundingBox.minZ + this.visibleBoundingBox.maxZ);\n this.camera.updateProjectionMatrix();\n setTimeout(() => {\n let positions = [\n new THREE.Vector3(this.visibleBoundingBox.minX, this.visibleBoundingBox.minY, this.visibleBoundingBox.minZ),\n new THREE.Vector3(this.visibleBoundingBox.minX, this.visibleBoundingBox.minY, this.visibleBoundingBox.maxZ),\n new THREE.Vector3(this.visibleBoundingBox.minX, this.visibleBoundingBox.maxY, this.visibleBoundingBox.minZ),\n new THREE.Vector3(this.visibleBoundingBox.minX, this.visibleBoundingBox.maxY, this.visibleBoundingBox.maxZ),\n new THREE.Vector3(this.visibleBoundingBox.maxX, this.visibleBoundingBox.minY, this.visibleBoundingBox.minZ),\n new THREE.Vector3(this.visibleBoundingBox.maxX, this.visibleBoundingBox.minY, this.visibleBoundingBox.maxZ),\n new THREE.Vector3(this.visibleBoundingBox.maxX, this.visibleBoundingBox.maxY, this.visibleBoundingBox.minZ),\n new THREE.Vector3(this.visibleBoundingBox.maxX, this.visibleBoundingBox.maxY, this.visibleBoundingBox.maxZ)\n ];\n // From https://stackoverflow.com/a/11771236\n let targetFov = 0.0;\n for (let i = 0; i < 8; i++) {\n let proj2d = positions[i].applyMatrix4(this.camera.matrixWorldInverse);\n let angle = Math.max(Math.abs(Math.atan(proj2d.x / proj2d.z) / this.camera.aspect), Math.abs(Math.atan(proj2d.y / proj2d.z)));\n targetFov = Math.max(targetFov, angle);\n }\n let currentFov = Math.PI * this.fov / 2 / 180;\n let cam_dir = new THREE.Vector3();\n cam_dir.subVectors(this.camera.position, this.controls.target);\n let prevDist = cam_dir.length();\n cam_dir.normalize();\n let dist = prevDist * Math.tan(targetFov) / Math.tan(currentFov);\n let aspect = this.camera.aspect;\n let targetHfov = 2 * Math.atan(Math.tan(targetFov / 2) * aspect);\n let currentHfov = 2 * Math.atan(Math.tan(currentFov / 2) * aspect);\n dist = Math.max(prevDist * Math.tan(targetHfov) / Math.tan(currentHfov), dist);\n this.camera.position.copy(this.controls.target);\n this.camera.position.addScaledVector(cam_dir, dist);\n this.camera.updateProjectionMatrix();\n }, 400);\n }", "function determineCameraTransform(camLoc, up) {\r\n\r\n // Perspective Normalization\r\n far = 100;\r\n near = 0.01;\r\n var Sx = 1 / Math.tan(Math.PI/8);\r\n var Sy = 1 / Math.tan(Math.PI/8);\r\n var alpha = ((far + near) / (far - near));\r\n var beta = -2 * near * far / (near - far);\r\n var perspectiveNormalizationXform = mat4(Sx,0,0,0,\r\n 0,Sy,0,0,\r\n 0,0,alpha,beta,\r\n 0,0,-1,0);\r\n\r\n // Translate To Origin\r\n var translateToOriginXform =mat4(1,0,0,-camLoc[0],\r\n 0,1,0,-camLoc[1],\r\n 0,0,1,-camLoc[2],\r\n 0,0,0,1);\r\n\r\n // Rotate Align transform\r\n var z = normalize(camLoc);\r\n var x = normalize(cross(up, z));\r\n var y = normalize(cross(z, x));\r\n var rotateAlignXform = mat4(x[0],x[1],x[2],0,\r\n y[0],y[1],y[2],0,\r\n z[0],z[1],z[2],0,\r\n 0,0,0,1);\r\n\r\n // World to Camera Centric\r\n var worldToCameraCentricXform = mult(rotateAlignXform, translateToOriginXform);\r\n\r\n // World To Canonical View Xform\r\n return mult(perspectiveNormalizationXform, worldToCameraCentricXform);\r\n}", "transformVec4(m, v, dest) {\n const v0 = v[0];\n const v1 = v[1];\n const v2 = v[2];\n const v3 = v[3];\n dest = dest || math.vec4();\n dest[0] = m[0] * v0 + m[4] * v1 + m[8] * v2 + m[12] * v3;\n dest[1] = m[1] * v0 + m[5] * v1 + m[9] * v2 + m[13] * v3;\n dest[2] = m[2] * v0 + m[6] * v1 + m[10] * v2 + m[14] * v3;\n dest[3] = m[3] * v0 + m[7] * v1 + m[11] * v2 + m[15] * v3;\n return dest;\n }", "function move(p, v) {\n // Move rectangle along x axis\n for (var i = 0; i < world.boxes.length; i++) {\n var b = world.boxes[i];\n var c = box(vec2(p.pos.x + v.x * (v.x < 0), p.pos.y), vec2(p.size.x + Math.abs(v.x), p.size.y));\n if (c.overlaps(b)) {\n if (v.x < 0) v.x = b.pos.x + b.size.x - p.pos.x;\n else if (v.x > 0) v.x = b.pos.x - p.pos.x - p.size.x;\n }\n }\n p.pos.x += v.x;\n\n // Move rectangle along y axis\n for (var i = 0; i < world.boxes.length; i++) {\n var b = world.boxes[i];\n var c = box(vec2(p.pos.x, p.pos.y + v.y * (v.y < 0)), vec2(p.size.x, p.size.y + Math.abs(v.y)));\n if (c.overlaps(b)) {\n if (v.y < 0) v.y = b.pos.y + b.size.y - p.pos.y;\n else if (v.y > 0) v.y = b.pos.y - p.pos.y - p.size.y;\n }\n }\n p.pos.y += v.y;\n}", "function vrej2d(a, b)\r\n{\r\n return sub2d(b, vproj2d(a, b));\r\n}", "onWindowResize() {\n let height = this.container.clientHeight;\n let width = this.container.clientWidth;\n let aspect = width / height;\n let cam_dir = new THREE.Vector3();\n cam_dir.subVectors(this.camera.position, this.controls.target);\n let prevDist = cam_dir.length();\n cam_dir.normalize();\n let hspan = prevDist * 2 * Math.tan(this.prevhfov / 2);\n\n this.prevhfov = 2 * Math.atan(Math.tan(Math.PI * this.fov / 2 / 180) * aspect);\n\n let dist = hspan / 2 / Math.tan(this.prevhfov / 2);\n this.camera.position.copy(this.controls.target);\n this.camera.position.addScaledVector(cam_dir, dist);\n\n this.camera.aspect = aspect;\n this.camera.updateProjectionMatrix();\n\n this.renderer.setSize(width, height);\n this.composer.setSize( width * window.devicePixelRatio,\n height * window.devicePixelRatio);\n this.effectFXAA.uniforms['resolution'].value.set(1 / Math.max(width, 1440), 1 / Math.max(height, 900));\n this.controls.handleResize();\n this.render();\n if (this.dispatch['resize'] !== undefined) {\n this.dispatch['resize']();\n }\n }", "estimate({screenCoords, worldCoords}) {\n const modelViewTransform = estimate({screenCoords, worldCoords, projectionTransform: this.projectionTransform});\n return modelViewTransform;\n }", "function imageSpaceAligned(A,a,B){\n var otherextreme3D=a.clone().add(DirectionalVector);\n var DirectionalVector2D=threeDToScreenSpace(otherextreme3D);\n DirectionalVector2D.sub(A);\n var otherExtreme=A.clone().add(DirectionalVector2D);\n //drawLine(project2DVectorToFarPlane(A),project2DVectorToFarPlane(otherExtreme));\n // Get line passing by A and the Diretional Vector\n var slope=(A.y-otherExtreme.y)/(A.x-otherExtreme.x);\n var b=(A.x*otherExtreme.y-otherExtreme.x*A.y)/(A.x-otherExtreme.x);\n // avaliacao B\n var test=signo(B.y-slope*B.x-b);\n if(slope>0){\n var distance=Math.abs(B.y-slope*B.x-b)/Math.sqrt(1+Math.pow(slope,2));\n if(test==1) return distance*(-1);\n if(test==-1) return distance;\n else return 0;\n } \n else{\n var distance=Math.abs(B.y-slope*B.x-b)/Math.sqrt(1+Math.pow(slope,2));\n if(test==1) return distance;\n if(test==-1) return distance*(-1);\n else return 0;\n }\n}", "transformPts(p1, p2, p3, obj_p, angles){\r\n var clip = 0.1;\r\n var t1 = this.project(p1[0]+obj_p.x, p1[1]+obj_p.y, p1[2]+obj_p.z, angles);\r\n var t2 = this.project(p2[0]+obj_p.x, p2[1]+obj_p.y, p2[2]+obj_p.z, angles);\r\n var t3 = this.project(p3[0]+obj_p.x, p3[1]+obj_p.y, p3[2]+obj_p.z, angles);\r\n if(t1.dz < clip && t2.dz < clip && t3.dz < clip){\r\n return [];\r\n } else if(t1.dz < clip && t2.dz < clip && t3.dz >= clip){\r\n var t1t = this.clipCoords(t1, t3, clip);\r\n var t2t = this.clipCoords(t2, t3, clip);\r\n return [t1t, t2t, t3];\r\n } else if(t1.dz < clip && t2.dz >= clip && t3.dz < clip){\r\n var t1t = this.clipCoords(t1, t2, clip);\r\n var t3t = this.clipCoords(t2, t3, clip);\r\n return [t1t, t2, t3t];\r\n } else if(t1.dz >= clip && t2.dz < clip && t3.dz < clip){\r\n var t2t = this.clipCoords(t1, t2, clip);\r\n var t3t = this.clipCoords(t1, t3, clip);\r\n return [t1, t2t, t3t];\r\n } else if(t1.dz < clip && t2.dz >= clip && t3.dz >= clip){\r\n var t1t = this.clipCoords(t1, t2, clip);\r\n var t3t = this.clipCoords(t1, t3, clip);\r\n return [t1t, t2, t3, t3t];\r\n } else if(t1.dz >= clip && t2.dz >= clip && t3.dz < clip){\r\n var t3t = this.clipCoords(t2, t3, clip);\r\n var t1t = this.clipCoords(t1, t3, clip);\r\n return [t1, t2, t3t, t1t];\r\n } else if(t1.dz >= clip && t2.dz < clip && t3.dz >= clip){\r\n var t2t = this.clipCoords(t1, t2, clip);\r\n var t3t = this.clipCoords(t2, t3, clip);\r\n return [t1, t2t, t3t, t3];\r\n } else{\r\n return [t1, t2, t3];\r\n }\r\n }" ]
[ "0.61471117", "0.6036922", "0.5688516", "0.5638165", "0.5613809", "0.55740416", "0.5479777", "0.53457654", "0.5290381", "0.5269545", "0.5267563", "0.5235603", "0.5201322", "0.5181598", "0.5171746", "0.51491964", "0.5145085", "0.511403", "0.50903916", "0.50893575", "0.50868213", "0.50733185", "0.50677687", "0.50661284", "0.50594074", "0.505855", "0.504667", "0.50358975", "0.5035354", "0.50020415", "0.4998465", "0.49937838", "0.49913403", "0.4989444", "0.49886525", "0.49871245", "0.4986465", "0.4959095", "0.49524832", "0.49487764", "0.49370462", "0.49295038", "0.49289462", "0.49243063", "0.49237233", "0.49090964", "0.49034813", "0.48854798", "0.48851806", "0.48841065", "0.48682207", "0.48647702", "0.48537302", "0.48525476", "0.48518893", "0.4846312", "0.4841824", "0.48408404", "0.48369208", "0.48363665", "0.48347694", "0.48274046", "0.4825436", "0.48109776", "0.4807974", "0.48038676", "0.48016933", "0.47844747", "0.4780132", "0.47769782", "0.47765094", "0.4771388", "0.47692776", "0.47644937", "0.47637013", "0.47566754", "0.4755175", "0.47543418", "0.47490627", "0.47479528", "0.4743798", "0.47422758", "0.47398406", "0.47370374", "0.47264236", "0.47198573", "0.47160712", "0.4708402", "0.47083053", "0.4707629", "0.4706652", "0.4706508", "0.47027266", "0.46975726", "0.46957347", "0.46901283", "0.4687862", "0.468391", "0.4678794", "0.46755698", "0.46746254" ]
0.0
-1
Low Level Functions TODO
static get(path, successHandler, failureHandler) { // returns URL Storage.get(path).then((url) => { log&&console.log("Storage successfully retrieved file! URL = " + url); if (successHandler) { successHandler(url); } }).catch((error) => { err&&console.error("Storage failed to retrieve file with path = " + path + "... Error: " + error); if (failureHandler) { failureHandler(error); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _____SHARED_functions_____(){}", "private public function m246() {}", "static private internal function m121() {}", "private internal function m248() {}", "function miFuncion (){}", "function FunctionUtils() {}", "transient protected internal function m189() {}", "static final private internal function m106() {}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "protected internal function m252() {}", "transient private internal function m185() {}", "static private protected internal function m118() {}", "transient private protected internal function m182() {}", "function Utils() {}", "function Utils() {}", "static transient private protected internal function m55() {}", "static private protected public internal function m117() {}", "function Utils(){}", "transient private protected public internal function m181() {}", "function Util() {}", "transient final protected internal function m174() {}", "function __func(){}", "function AeUtil() {}", "function fn() {\n\t\t }", "function fm(){}", "function TMP(){return;}", "function TMP(){return;}", "static transient final private internal function m43() {}", "static transient private protected public internal function m54() {}", "function normal() {}", "static protected internal function m125() {}", "function StupidBug() {}", "function DWRUtil() { }", "static transient final protected public internal function m46() {}", "function Func_s() {\n}", "function ea(){}", "static final private protected internal function m103() {}", "function wa(){}", "function miFuncion(){\n\n}", "function oi(){}", "static transient final private protected internal function m40() {}", "static transient final protected internal function m47() {}", "static final private protected public internal function m102() {}", "function Ha(){}", "function lalalala() {\n\n}", "function Scdr() {\r\n}", "function Kutility() {\n\n}", "function Kutility() {\n\n}", "static transient private internal function m58() {}", "static final protected internal function m110() {}", "function dummy(){}", "function dummy(){}", "function dummy(){}", "function Helper() {}", "function main(){\n\n\n}", "function fun() { }", "function GraFlicUtil(paramz){\n\t\n}", "function fuction() {\n\n}", "static transient private public function m56() {}", "transient final private internal function m170() {}", "static final private public function m104() {}", "function ba(){}", "function ba(){}", "function ba(){}", "function ba(){}", "static private public function m119() {}", "transient final private protected internal function m167() {}", "transient private public function m183() {}", "function dummy() {}", "function dummy() {}", "function dummy() {}", "function da(){}", "function da(){}", "function da(){}", "function Xuice() {\r\n}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function hc(){}", "function s(){}", "function fun1( /*parametros opcionais*/ ){ /*retorno opcional*/ }", "function TMP(){}", "function TMP(){}", "function Sread() {\r\n}", "function Macex() {\r\n}", "function CCUtility() {}", "function SS() {}", "function StackFunctionSupport() {\r\n}", "function nd(){}" ]
[ "0.6780673", "0.67056334", "0.6682646", "0.6682084", "0.6577993", "0.64812523", "0.64528537", "0.6422087", "0.6412744", "0.6412744", "0.6412744", "0.63291126", "0.6301539", "0.6300643", "0.62916064", "0.626478", "0.626478", "0.6158779", "0.6103225", "0.6051021", "0.6028055", "0.6006629", "0.60029995", "0.5986073", "0.5963424", "0.5951471", "0.59313256", "0.5909145", "0.5909145", "0.58966464", "0.5886749", "0.588472", "0.58756393", "0.58679485", "0.58272654", "0.581669", "0.5812266", "0.5792383", "0.5787151", "0.5784946", "0.57813865", "0.5767564", "0.5764512", "0.5763933", "0.5760856", "0.57532084", "0.5749196", "0.5747673", "0.5745171", "0.5745171", "0.573675", "0.57311183", "0.5713012", "0.5713012", "0.5713012", "0.570413", "0.5703187", "0.56752825", "0.567155", "0.56678003", "0.5663129", "0.5652927", "0.5646691", "0.5628716", "0.5628716", "0.5628716", "0.5628716", "0.561759", "0.56153435", "0.56124943", "0.5605316", "0.5605316", "0.5605316", "0.55954033", "0.55954033", "0.55954033", "0.5578805", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.557241", "0.5563244", "0.55621517", "0.55548686", "0.55527234", "0.55527234", "0.5523983", "0.55180216", "0.5508327", "0.550761", "0.5504073", "0.5495229" ]
0.0
-1
... more overloads ...
function createElement(tagName) { return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "function oi(){}", "transient protected internal function m189() {}", "apply () {}", "function es1(params) {\n \n}", "transient private protected internal function m182() {}", "obtain(){}", "private internal function m248() {}", "function ba(){}", "function ba(){}", "function ba(){}", "function ba(){}", "function SimpleArgs() {\r\n}", "protected internal function m252() {}", "method(){}", "function miFuncion (){}", "function ea(){}", "constructor (){}", "*method(){}", "extend() {}", "extend() {}", "transient private internal function m185() {}", "static private internal function m121() {}", "function methodName (arguments) {\n\t\n}", "function obj(objec){\nreturn objec;\n}", "static id(arg) {\nreturn arg;\n}", "function returnType(arg) {\n return arg;\n}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "function r(){}", "transient private protected public internal function m181() {}", "function o(e,t){return function(n){for(var o=new Array(arguments.length),p=\"error\"===e?n:null,r=0;r<o.length;r++)o[r]=arguments[r];t(p,this,e,o)}}", "__previnit(){}", "function _____SHARED_functions_____(){}", "function overload2(a,b){\n console.log(\"overload function test 2:\", a+b);\n}", "adoptedCallback() { }", "value(...args) {\n return [...this][methodName](...args);\n }", "function s(){}", "function __func(){}", "function zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}", "no_op() {}", "SameSide() {}", "transient final protected internal function m174() {}", "function v2(v3,v4) {\n}", "_add () {\n throw new Error('not implemented')\n }", "static method(){}", "static private protected internal function m118() {}", "function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fi.apply(this,arguments)}", "function va(t,e){0}", "function Pe(){}", "constructor(_t, _r) {\nthis._t = _t;\nthis._r = _r;\n}", "function x(p1, p2) {}", "function foo(x) {}", "static fStr3(x) {\nreturn this.fStr(x, 3);\n}", "static fStr3(x) {\nreturn this.fStr(x, 3);\n}", "function x(p1, p1) {}", "function args() {\n\n}", "error(...args) {\n }", "myBestMethod(){\n\n }", "function o(){}", "function Parameter() {}", "function Li(){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return\"object\"!==Object(ne[\"a\"])(n[n.length-1])&&(t=n.pop()),n.slice(1).reduce(function(e,n,i){return Ci()(e,n,t)},n[0])}", "get (...arg) {\n console.log(arg[0])\n return super.get(...arg)\n }", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function _p(t,e){0}", "function dummy(){}", "function dummy(){}", "function dummy(){}", "function gh(a,b){var c;if(b){var d=this;c=function(a){var c=hh.call(d,a);a=void 0===c?a:null===c?d.yb():c;b.call(d,a);return c}}else c=hh;gh.aa.constructor.call(this,ih,c);this.Xa(a||\"\")}", "static addStuff(a, b) {\n return a + b;\n }", "error(...theArgs) { return this._log('ERROR', {}, theArgs); }", "function blau(a,b,...params){\n return params;\n}", "function a(e,t){return function(n){for(var a=new Array(arguments.length),i=\"error\"===e?n:null,o=0;o<a.length;o++)a[o]=arguments[o];t(i,this,e,a)}}", "function foo(a) {\n\"use strict\";\n return ns5.pick(arguments);\n }", "function foo(x) { return x; }", "function GraFlicUtil(paramz){\n\t\n}", "function nd(){}", "constructor( ) {}", "function r(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('\"'+t+'\" is a required argument.')}", "function wa(){}", "function n(e,t){return function(r){for(var n=new Array(arguments.length),o=this,i=\"error\"===e?r:null,a=0;a<n.length;a++)n[a]=arguments[a];t(i,o,e,n)}}", "static final private internal function m106() {}", "function i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}", "function o0(o1, o2) {\n try {\nreturn o34(o32, o36, o37);\n}catch(e){}\n}", "function returnArg(arg) {\n return arg;\n}", "function r() {}", "function r() {}", "function r() {}", "handle() {}" ]
[ "0.59703475", "0.56033206", "0.5592253", "0.558463", "0.55371785", "0.553448", "0.5449269", "0.54484195", "0.53812164", "0.53812164", "0.53812164", "0.53812164", "0.53737336", "0.536679", "0.53559905", "0.5351454", "0.53463596", "0.5333846", "0.5321548", "0.53132546", "0.53132546", "0.52816004", "0.52537197", "0.5245102", "0.52274656", "0.52262586", "0.5219207", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.52039456", "0.5193183", "0.5186519", "0.51830035", "0.51705724", "0.5165318", "0.51620054", "0.5154407", "0.515149", "0.5148681", "0.5140022", "0.5138209", "0.5138113", "0.5128444", "0.5125187", "0.51057744", "0.51042217", "0.5078657", "0.507412", "0.5063622", "0.50617296", "0.5059638", "0.5049046", "0.5047477", "0.5047314", "0.5047314", "0.5042493", "0.5037513", "0.50295126", "0.5024886", "0.5020628", "0.5015302", "0.5012781", "0.50069535", "0.5006198", "0.5006198", "0.5006198", "0.50006914", "0.4984707", "0.4984707", "0.4984707", "0.49781808", "0.4977869", "0.4975772", "0.4972746", "0.49709213", "0.49636447", "0.49592066", "0.49531135", "0.49506682", "0.49506193", "0.4945985", "0.4944341", "0.49430993", "0.49405774", "0.4935733", "0.49356186", "0.49348292", "0.49346828", "0.49346828", "0.49346828", "0.49337852" ]
0.0
-1
fetching email ids from db
function empDataCollection() { client.query('SELECT * from employees', (err, res) => { if (err) { errorLog(err, 'data fetching issue', 'Pending') } else { console.log('fetching email ids') res.rows.map(item => { //email validation if (mailformat.test(item.emailid.trim())) { email.push(item.emailid) } else { let err = 'Invalid email ' + item.emailid console.log(err); errorLog(err, 'email validation', 'Pending') } }) } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetchEmailsFromDatabase(callback) {\n const emails = [\n {\n author: 'Bobby Bob',\n subject: 'Hey Friend!',\n body: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`,\n },\n {\n author: 'Jenny Jane',\n subject: 'Let me know if you are planning...',\n body: `ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.`,\n },\n {\n author: 'Some Guy',\n subject: 'Please buy my product.',\n body: `My product is the best. For just $1,000 you could buy my product and make me somewhat richer. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat quis nostrud.`,\n },\n\n {\n author: 'Bobby Not-Bob',\n subject: 'Hey Friend!',\n body: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`,\n },\n {\n author: 'Jenny Janey',\n subject: 'Let Jenny know if you are planning...',\n body: `ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.`,\n },\n {\n author: 'Bobby Obo',\n subject: 'Hey Friendo!',\n body: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`,\n },\n {\n author: 'Some Guy',\n subject: 'Please DO NOT buy my product.',\n body: `My product is a scam. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat quis nostrud.`,\n },\n ];\n\n callback(emails);\n}", "function fetchIDfromEmail (knex, req, res)\n{\n knex\n .select()\n .from('patients')\n .where('email', req.body.email)\n .then(function (results) {\n var ids = results.map((row) => { return row.id; });\n if (ids.length == 1)\n util.respond(res, 200, JSON.stringify({id: ids[0]}));\n else\n util.respond(res, 400, JSON.stringify({err: 'Bad Fetch'}));\n });\n}", "function retrieveAllEmails(callback) {\r\n\tvar request = gapi.client.gmail.users.messages.list({\r\n\t\t'userId': 'me',\r\n\t\t'labelIds': 'INBOX'\r\n\t});\r\n\r\n\trequest.execute(function(response) {\r\n\r\n\t\tvar promiseArray = [];\r\n\r\n\t\t$.each(response.messages, function() {\r\n\t\t\t\r\n\t\t\tvar emailId = this.id;\r\n\r\n\t\t\tvar promise = new Promise(function(resolve, reject) {\r\n\t\t\t\tretrieveSingleEmail('me', emailId, function(email) {\r\n\t\t\t\t\tresolve(email);\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\tpromiseArray.push(promise);\r\n\t\t});\r\n\t\t\r\n\t\tPromise.all(promiseArray).then(callback);\r\n\t});\r\n}", "function getEmail(email_id, callback) {\n conn.query('SELECT * FROM Emails WHERE email_id = $1', [email_id],\n function(error, result) {\n if(error) {\n console.error(error);\n }\n if(result.rowCount >= 2) {\n console.error('ERROR: email id corresponds to multiple emails');\n } else if(result.rowCount == 0) {\n callback(null);\n } else {\n callback(new Email(email_id,\n result.rows[0].recipient, \n result.rows[0].date_to_send, \n result.rows[0].entry_id, \n result.rows[0].collection_id,\n result.rows[0].subject,\n result.rows[0].content,\n result.rows[0].status,\n result.rows[0].entry_edition));\n }\n });\n}", "async function getRecipients(ownId) {\n const recipients = await User.aggregate([{$sample: {size: 3}}]);\n ids = [];\n recipients.forEach(function(user) {\n if (user._id != ownId) {\n ids.push(user._id);\n }\n });\n return ids;\n}", "getEmails(callback) {\n const uri = buildUri('emails')\n api.get(\n uri,\n null, null,\n result.$createListener(callback)\n )\n }", "function getEmail(auth){\n console.log(auth)\n let messageList = [];\n const gmail = google.gmail({version: 'v1' , auth});\n gmail.users.messages.list({auth: auth , userId: 'me' , maxResults: 3} , function(err , response){\n if(err){\n console.log('An error occured..' + err);\n return;\n }\n response.data.messages.forEach((ob) => {\n \n gmail.users.messages.get({auth: auth , userId: 'me' , 'id': ob.id} , function(err , response){\n if(err){\n console.log|('An error occured 2 + ' + err);\n return;\n }\n message_raw = response.data.payload.body.data\n // console.log(message_raw)\n const buff = new Buffer.from(message_raw , 'base64')\n text = buff.toString()\n console.log(text)\n messageList.push(text)\n })\n })\n \n })\n return messageList\n}", "function getListOpportunitiesInterestedEmail(email){\n return new Promise((resolve, reject) => {\n pool.query(`SELECT opportunity, objective AS name \n FROM EmailFollowOpportunity \n WHERE email = ?\n AND active = 1 \n `, [email], \n function(error, results, fields){\n if (error){\n reject(error);\n throw error;\n }\n resolve(results);\n }); \n });\n}", "function $getMailTo(_log, _insDB, _gID){\n return new Promise((_rl, _re)=> {\n _log.debug(\"The parameters is [%s]\", typeof({\"group_id\": _gID}));\n\n _insDB.any(\"select email_addr from em_group eg inner join em_users eu on eu.group_id = eg.id and eg.group_name = 'price engine'\", {\"group_id\": _gID})\n .then(_mail_tos => _rl(_mail_tos.map(_mail_to => _mail_to.email_addr).join(\",\")))\n .catch(_err => {_log.error(\"The erro info is \", util.inspect(_err)); _re(_err);});\n });\n}", "function getAttendees(info){\n var courseQry = '';\n if(info['subject'].indexOf(\"|\")>-1){\n var res = info['subject'].split(\"|\");\n courseQry = \"('\" + res[0] + \"','\" + res[1] + \"')\";\n }else{\n courseQry = \"('\" + info['subject'] + \"')\";\n }\n var query = \"SELECT distinct st.st_email as email,st.pref_name, st.surname FROM stma inner join st on st.stkey=stma.skey where status='full' AND stma.ttperiod='2019' AND concat(STMA.mkey,LPAD(STMA.class, 2, '0')) in \" + courseQry;\n var resultSet = Jdbc.getConnection(\"jdbc:mysql://222.16.227.81:3306/Database Name\", \"Username\", \"password\").createStatement().executeQuery(query); \n var userSet = [{'email':info['email'], 'prefname':info['prefname'], 'surname':info['surname']}]\n while(resultSet.next()){\n if(resultSet.getString(1) != ''){\n userSet.push({'email': resultSet.getString(1), 'prefname': resultSet.getString(2), 'surname': resultSet.getString(3)});\n }\n }\n return userSet;\n}", "static list() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const contactEmailAddress = (yield db_1.db.read.columns('*').tables('ContactEmailAddresses').get()).rows;\n return contactEmailAddress;\n }\n catch (err) {\n throw new Error(err);\n }\n });\n }", "static async getDataSourceList(email) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tDatabase.sendQuery('SELECT id,email,sourceurl,sourcetype,sourcename,islivedata FROM datasource WHERE ( email = $1);', [email])\n\t\t\t\t.then((result) => resolve(result.rows))\n\t\t\t\t.catch((result) => reject(result));\n\t\t});\n\t}", "function getMail(callback) {\r\n connection.query(\"SELECT main_mail FROM mail_notif WHERE employees_id=?\", [i], function(err, result) {\r\n if (err) throw err;\r\n callback((result.length > 0) ? result[0].main_mail : \"\");\r\n });\r\n}", "function getid(email)\n {\n app.post(\"/api/idusers\",function (req, res, next) {\n email=req.body.email;\n mysqlcnx.query(\"SELECT id_user FROM users where email='\"+email+\"'\" , function (err, result, fields) {\n if (err) throw err;\n res.send(JSON.stringify(result));\n \n });\n});\n}", "function fetchDoctorPatients (knex, email, res)\n{\n knex\n .select()\n .from('patients')\n .where('doctorEmail', email)\n .then(function (results) {\n var ids = results.map((row) => { return row.id; });\n util.respond(res, 200, JSON.stringify(ids));\n });\n}", "function getRolesByEmail(email) {\n\n let ourQuery = `SELECT C.role \n FROM HawsWA.Users_TB A \n LEFT JOIN\n HawsWA.Users_Role_TB B\n ON A.userId = B.userId\n LEFT JOIN\n HawsWA.Roles_TB C\n ON B.roleId=C.roleID\n WHERE A.email= ? `;\n\n return makeConnection.mysqlQueryExecution(ourQuery, mySqlConfig,email);\n\n}", "getUsersByEmail(db, email) {\n return db('users').select('*').where({ email }).first();\n }", "function getFriendsByEmail(req, res){\n var email = req.params.email;\n MongoClient.connect(\"mongodb://ezplan:[email protected]:13916/ezplan\", function(err, db){\n if(err){ res.send(err)}\n var ret = [];\n db.collection(\"users\").find({\n email: email\n }).forEach(function(doc){\n if(doc.userid != userID){\n ret.push(doc);\n }\n })\n\n setTimeout(function(){\n res.send(ret);\n }, 500);\n\n });\n}", "async function usersEmailsToDbUsers(usersEmails) {\n let dbUsers = [];\n if (Array.isArray(usersEmails)) {\n const dbUsersPromises = usersEmails.map( async userEmail => {\n logger.log(`services.users.usersEmailsToDbUsers -> userEmail: ${userEmail}`); \n const dbUser = await User.findOne({email: userEmail.toLowerCase()}).lean().exec();\n logger.log(`services.users.usersEmailsToDbUsers -> dbUser: ${JSON.stringify(dbUser)}`);\n if (!dbUser) throw createError(`services.users.usersEmailsToDbUsers -> Could not find user by email ${userEmail}`);\n dbUsers.push(dbUser);\n });\n await Promise.all(dbUsersPromises);\n }\n return dbUsers;\n}", "function GetUserEmailsbyUserID(allUsersIDs) {\n var userEmails = \"\";\n if (!IsNullOrUndefined(allUsersIDs) && allUsersIDs.length > 0) {\n allUsersIDs.forEach(user => {\n url = _spPageContextInfo.webAbsoluteUrl + \"/_api/web/getuserbyid(\" + user + \")\";\n headers = {\n \"Accept\": \"application/json;odata=verbose\",\n \"Content-Type\": \"application/json;odata=verbose\",\n \"X-RequestDigest\": $(\"#__REQUESTDIGEST\").val(),\n \"X-HTTP-Method\": \"POST\"\n };\n\n AjaxCall(\n {\n url: url,\n httpmethod: 'GET',\n calldatatype: 'JSON',\n isAsync: false,\n headers: headers,\n sucesscallbackfunction: function (data) { userEmails = userEmails + data.d.Email + \",\"; }\n });\n });\n userEmails = userEmails.substr(0, userEmails.lastIndexOf(',')).replace(/\\,/g, ', ');\n }\n return userEmails;\n}", "function getEmailRecipients() {\n var emails = [];\n \n var range = ss.getRangeByName(ALERT_EMAILS);\n var vals = range.getValues();\n for (var i = 0; i < vals.length; i++)\n if (vals[i][0])\n emails.push(vals[i][0]);\n\n return emails;\n}", "async getByEmail(email, lid) {\n let [res,] = await this.db.query(`SELECT * FROM om_xlista_${lid} WHERE email LIKE ?`, [email])\n .catch(errorHandler.catchThrow.call(this, `No se encontro suscriptor con el email ${email} en la lista ${lid}`));\n\n return res && res[0]\n ? res[0]\n : null;\n }", "function getMails(auth) {\n const gmail = google.gmail({version: 'v1', auth});\n var list = gmail.users.messages.list({\n includeSpamTrash: false,\n maxResults: max,\n q: \"\",\n userId: \"me\"\n }, function (err, res) {\n if (err) return console.log('The API returned an error: ' + err);\n const mails = res.data.messages;\n if (mails.length) \n {\n //console.log(mails);\n mails.forEach((mail) => {\n gmail.users.messages.get({\n id: mail.threadId,\n userId: \"me\"\n }, function (err, results) {\n if (err != null) return true; //console.log(err);\n\n //console.log(mail.threadId);\n results.data.threadId = mail.threadId;\n arrmails.push(results.data);\n });\n });\n } \n else \n {\n console.log('No mails found.');\n }\n });\n setTimeout(printResult,4000);\n}", "function get_ids_fron_email_given(email, id) {\n client_email = \"\";\n client_name = \"\";\n client_id = \"\";\n agent_name = \"\";\n agent_id = \"\";\n array_key = \"\";\n object_key = \"\";\n agent_or_client_assoc = \"\";\n\n if (total_agents > 0) {\n assoc_client = false;\n //ASSOC CLIENT ID TO THE FIRST NULL AGENT\n for (var i = 0; i < total_agents; i++) {\n array_key = i;\n agent_element = agents_ids_assoc_clients[i];\n if (typeof agent_element !== 'undefined') {\n agent_id = agents_ids_assoc_clients[i].agend_id;\n agent_name = agents_ids_assoc_clients[i].agent_name;\n if (agent_id == id) {\n //find agent\n agent_or_client_assoc = \"agent\";\n assoc_client = true;\n break;\n }\n for (var e in agent_element) {\n if (agent_element[e].client_email == email || agent_element[e].client_id == id) {\n object_key = e;\n client_email = agent_element[e].client_email;\n client_name = agent_element[e].client_name;\n client_id = agent_element[e].client_id;\n agent_or_client_assoc = \"client\";\n assoc_client = true;\n break;\n }\n }\n if (assoc_client)\n break;\n } else {\n console.log(\"------------------------AGENTE UNDEFINED \" + id + \"------------------------\");\n }\n }\n if (assoc_client) {\n if (agent_or_client_assoc != \"\")\n return {\n ak: array_key,\n ok: object_key,\n client_or_agent: agent_or_client_assoc\n };\n else\n return {\n ak: array_key,\n ok: object_key\n };\n } else\n return false;\n }\n}", "function getUserByEmail(res, emailQuery) {\n User.find(emailQuery)\n .select('_id email password verified address')\n .exec()\n .then(results => {\n console.log(results);\n const response = {\n count: results.length,\n users: results.map(user => {\n return {\n _id: user._id,\n email: user.email,\n request: {\n type: 'GET',\n url: 'http:localhost:3000/users/' + user._id\n }\n }\n })\n }\n res.status(200).json(response);\n })\n .catch(error => {\n console.log(error);\n res.status(500).json(\n {\n error: error\n }\n )\n });\n}", "function getAllEmailInfo(data) {\r\n return new Promise((resolve, reject) => {\r\n let query = \"SELECT COUNT(*) AS count FROM \" + table.MAIL_DASHBOARD + \" WHERE uploaded_date = ( SELECT MAX( uploaded_date ) FROM \" +\r\n table.MAIL_DASHBOARD + \") ORDER BY uploaded_date DESC, id \"\r\n\r\n db.query(query, (error, rows, fields) => {\r\n if (error) {\r\n reject({ message: message.INTERNAL_SERVER_ERROR })\r\n } else {\r\n let count = 0\r\n if (rows.length > 0) {\r\n count = rows[0].count\r\n }\r\n\r\n let query = \"select * FROM \" + table.MAIL_DASHBOARD + \" WHERE uploaded_date = ( SELECT MAX( uploaded_date ) FROM \" +\r\n table.MAIL_DASHBOARD + \") ORDER BY uploaded_date Desc, id \"\r\n\r\n if (Number(data.page) != -1 && Number(data.rowsPerPage) != -1) {\r\n query += \" LIMIT ?, ?\"\r\n } \r\n\r\n db.query(query, [Number(data.page) * Number(data.rowsPerPage), Number(data.rowsPerPage)], (error, rows, fields) => {\r\n if (error) {\r\n reject({ message: message.INTERNAL_SERVER_ERROR })\r\n } else {\r\n resolve({ count: count, rows: rows })\r\n }\r\n })\r\n }\r\n }) \r\n }) \r\n}", "async function find_individuals_that_match(user_email_str, database)\n {\n let email_array = new Array();\n let database_results_array;\n \n let user_candidates_array;\n let individual_candidates_array;\n\n /*************************************************************************************/\n\n database_results_array =\n await database.collection(\"groups\").find( {email : user_email_str} ).toArray();\n\n user_candidates_array = database_results_array[0].candidates;\n\n /*************************************************************************************/\n\n // GET ALL DOCUMENTS IN THE INDIVIDUALS COLLECTION\n database_results_array =\n await database.collection(\"individuals\").find().toArray();\n\n // GO THROUGH ALL DOCUMENTS IN THE INDIVIDUALS COLLECTION\n for(let i = 0; i < database_results_array.length; ++i)\n {\n individual_candidates_array = database_results_array[i].candidates;\n \n // GO THROUGH ALL CANDIDATES LISTED FOR THE INDIVIDUAL\n for(let j = 0; j < individual_candidates_array.length; ++j)\n {\n // IF IT'S A MATCH, SAVE THE INDIVIDUAL'S EMAIL\n if(individual_candidates_array[j].email === user_email_str)\n {\n if(individual_candidates_array[j].status >= 2 &&\n get_status_towards_this_user(\n database_results_array[i].email, user_candidates_array) >= 2)\n {\n email_array.push(database_results_array[i].email);\n }\n \n break;\n }\n }\n \n } // END GO THROUGH ALL DOCUMENTS IN INDIVIDUALS COLLECTION\n \n return email_array;\n }", "function gRolesByEmail(req, res) {\n\n getRolesByEmail(req.params.email).then(function (result) {\n\n if (typeof result[0] != 'undefined') {\n\n let resultArray = [];\n result.forEach(function (data) {\n resultArray.push(data.role);\n })\n\n res.status(200).send(resultArray);\n\n } else {\n\n res.status(200).send([]);\n\n }\n\n }).catch(function (error) {\n if(typeof error.sqlMessage!='undefined')\n res.status(400).send({ 'Error': error.sqlMessage });\n else \n res.status(400).send(error);\n })\n}", "async function getNoteCollection(email){\n\n}", "function getEmailsList() {\n return listOfValidEmails;\n}", "function getInviteList(userId, gmailId, gmailToken)\n{\n var sync = true;\n var data = null;\n var options = {\n url: 'https://www.googleapis.com/gmail/v1/users/' + gmailId + \"/messages?maxResults=20\", // Add search string in the end as '&q=\"filename:invite.ics subject:invitation Invitation from Google Calendar\"';\n method: 'GET',\n headers: {\n \"content-type\": \"application/json\",\n \"Authorization\": \"Bearer \"+ gmailToken\n }\n };\n request(options, function (error, response, body)\n {\n console.log(\"HTTP response headers are the following:\\n\" + \"Response: \" + JSON.stringify(response) + \"\\nError:\" + error + \"\\nBody\" + JSON.stringify(body) + \"\\n\");\n if (error)\n data = error;\n else\n data = JSON.parse(body);\n sync = false;\n });\n while(sync) {require('deasync').sleep(100);}\n return data;\n\n}", "function checkForUserEmail(data) {\n let sql = \"SELECT id FROM users WHERE email = '\" + data.email + \"'\";\n return db.query(sql);\n}", "async function getSenderIds(body){\n let url = \"/sender/get/all\";\n if(body){\n url+=\"?start=\"+body.start+\"&maxResults=\"+body.maxResults;\n }\n const response =\n await fetch( serverOrigin+url,\n { \n headers: {'Content-Type': 'application/json','Accept': 'application/json'}\n }\n )\n return await response; \n}", "async function find_email(email) {\n return new Promise((res, rej) => {\n con.query(\n `select * from Admin where email = ?`,\n [email],\n async (err, row, field) => {\n if (err) rej(err);\n // console.log(\"+++++++++++\");\n // console.log(row[0].email);\n res(row);\n }\n );\n }).catch((error) => {\n assert.isNotOk(error, 'Promise error');\n done();\n });;\n }", "function getListOpportunitiesVisitedEmail(email){\n return new Promise((resolve, reject) => {\n pool.query(`SELECT opportunity, objective AS name, \n date \n FROM EmailVisitedOpportunity \n WHERE email = ?\n ORDER BY date DESC \n LIMIT 15 \n `, [email], \n function(error, results, fields){\n if (error){\n reject(error);\n throw error;\n }\n resolve(results);\n }); \n });\n}", "function extractEmails ( text ){\n var myRegexp = /([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\\.[a-zA-Z0-9._-]+)/gi;\n email = text.match(myRegexp);\n if(email!==null){\n for (var i = 0; i < email.length; i++) {\n var newString = email[i].replace('@','');\n if(i==0){\n emailtransform = '\"'+newString+'\"';\n }else{\n emailtransform = emailtransform + \",\"+'\"'+newString+'\"';\n }\n //students.push(newString);\n }\n }else{\n emailtransform = '';\n }\n \n }", "findByEmail(email, includeDeleted) {\n return __awaiter(this, void 0, void 0, function* () {\n if (email == null) {\n throw new nullargumenterror_1.NullArgumentError('email');\n }\n for (let i = 0; i < this.users.length; i++) {\n if (this.users[i].email == email) {\n if (!this.users[i].isDeleted) {\n return this.users[i];\n }\n else if (this.users[i].isDeleted && includeDeleted) {\n return this.users[i];\n }\n }\n }\n return undefined;\n });\n }", "getUserIdByEmail(email) {\n this.email = email;\n let myId;\n const userData = this.app.readDataFile(userFilePath);\n\n userData.forEach((item) => {\n if (item.email === this.email) {\n myId = item.id;\n }\n });\n\n return myId;\n }", "async function selectEmail(dado){\n const conn = await connect();\n const sql = 'SELECT email FROM Usuario WHERE email =?;';\n const value = [dado.email];\n const [rows] = await conn.query(sql,value);\n return rows\n}", "async getIdByEmail(email, role) {\n let query = '';\n const data = [];\n this.email = email;\n this.role = role;\n data.push(this.email);\n\n switch (this.role) {\n case constants.USER:\n query = 'SELECT id_user FROM users WHERE email = $1';\n break;\n case constants.ADMIN:\n query = 'SELECT id_admin FROM admin WHERE email = $1';\n break;\n default:\n query = 'SELECT id_user FROM users WHERE email = $1';\n break;\n }\n\n const result = await execute(query, data);\n return result.rows[0];\n }", "function emailChecker (email){\n for (id in users) {\n if (email === users[id].email){\n return users[id]\n } \n }\n return false;\n}", "async function getBlogsByEmail(requestEmail) {\n // let newBlog = new blogModel(requestBody);\n let result = await blogModel.find({ email: requestEmail });\n\n return result;\n}", "function getEmailInfo(callback, id, email) {\n if ((id === undefined) || (email === undefined) || (!email.length)) {\n return callback(returnError(\"Empty email or book id\"));\n }\n sendRequest('addressbooks/' + id + '/emails/' + email, 'GET', {}, true, callback);\n\n}", "function getEmailsFromBook(callback, id) {\n if (id === undefined) {\n return callback(returnError('Empty book id'));\n }\n sendRequest('addressbooks/' + id + '/emails', 'GET', {}, true, callback);\n}", "function emailSearch(emailIn) {\n for (id in users) {\n if (users[id].email == emailIn){\n return true;\n }\n }\n return false;\n}", "function getBusFromItinByEmail(req, res) {\n var query = `\n SELECT i.itinerary_id, i.name as itinerary_name, b.name as business_name\n FROM itinerary i\n LEFT OUTER JOIN itinerarybusiness ib \n ON i.email = :email AND i.itinerary_id = ib.itinerary_id\n JOIN business b \n ON ib.business_id = b.business_id\n ORDER BY i.name\n `;\n let email = req.params.email;\n const binds = [email];\n \n oracledb.getConnection({\n user : credentials.user,\n password : credentials.password,\n connectString : credentials.connectString\n }, function(err, connection) {\n if (err) {\n console.log(err);\n } else {\n connection.execute(query, binds, function(err, result) {\n if (err) {console.log(err);}\n else {\n res.json(result.rows)\n }\n });\n }\n });\n}", "function emailParts(email) {\n email_string = email.toLowerCase();\n return email_string.split('@');\n}", "getLastWeightLogs(email) {\n return new Promise(function (resolve, reject) {\n let sql = `SELECT \n email, date, weight, height, bmi, bmi_class \n FROM weight_log \n WHERE email=?\n ORDER BY rowid DESC`;\n db.all(sql, [email], (err, rows) => {\n if (err) {\n reject(Error(\"Error:\" + err.message));\n }\n resolve({\n email: rows[0].email,\n date: rows[0].date,\n weight: rows[0].weight,\n height: rows[0].height,\n bmi: rows[0].bmi,\n bmiClass: rows[0].bmi_class,\n });\n });\n });\n }", "getUsersValues(ids) {\n return mPool.collection(\"users\").\n find({\"_id\": {$in: ids}})\n .toArray()\n .then( (result) => result );\n }", "async function get_candidates_array(user_email_str, collection_str, database)\n {\n let database_results_array =\n await database.collection(collection_str).find( {email : user_email_str} ).toArray();\n \n let user_candidates_array = database_results_array[0].candidates;\n return user_candidates_array;\n }", "async readByEmail(email) {\n if (!email) {\n return;\n }\n return await this.firebaseProvider.readByQuery({name : \"email\", value : email}, this.collection);\n }", "function returnGMail() {\n return users.filter(user => {\n return user.email.includes('@google')\n })\n}", "async function find_groups_that_match(user_email_str, database)\n {\n let email_array = new Array();\n let database_results_array;\n \n let user_candidates_array;\n let group_candidates_array;\n\n /*************************************************************************************/\n\n database_results_array =\n await database.collection(\"individuals\").find( {email : user_email_str} ).toArray();\n\n user_candidates_array = database_results_array[0].candidates;\n\n /*************************************************************************************/\n\n // GET ALL DOCUMENTS IN THE GROUPS COLLECTION\n database_results_array =\n await database.collection(\"groups\").find().toArray();\n\n // GO THROUGH ALL DOCUMENTS IN THE GROUPS COLLECTION\n for(let i = 0; i < database_results_array.length; ++i)\n {\n group_candidates_array = database_results_array[i].candidates;\n \n // GO THROUGH ALL CANDIDATES LISTED FOR THE GROUP\n for(let j = 0; j < group_candidates_array.length; ++j)\n {\n // IF IT'S A MATCH, SAVE THE GROUP'S EMAIL\n if(group_candidates_array[j].email === user_email_str)\n {\n if(group_candidates_array[j].status >= 2 &&\n get_status_towards_this_user(\n database_results_array[i].email, user_candidates_array) >= 2)\n {\n email_array.push(database_results_array[i].email);\n }\n \n break;\n }\n }\n \n } // END GO THROUGH ALL DOCUMENTS IN GROUPS COLLECTION\n \n return email_array;\n }", "function emailChecker (email) {\n for (id in users){\n if (email === users[id].email){\n return true;\n }\n }\n return false;\n}", "function getUserByEmail (email, callback) {\n var sql =\n `SELECT \n autoid,\n custnumber,\n altnum,\n momcustnum,\n title,\n firstname,\n lastname,\n company,\n address1,\n address2,\n city,\n LTRIM(RTRIM(state)) AS state,\n zip,\n mailinglist_om.country AS country_code,\n country.country AS country_name,\n email,\n password,\n password2,\n password_nodejs,\n phone,\n extension,\n phone2,\n extension2,\n paymentmethod,\n comment,\n specialinstructions,\n norent,\n nomail,\n emailnewsletter,\n emailnewsletter2,\n plaintextversion,\n emailnewslettergallery,\n shipvia,\n oldshipvia,\n tpshipacct,\n showcase,\n hint,\n deleteaddress,\n username,\n auctionname,\n auction18,\n auctionagreement,\n auctionemail,\n reviewerclass,\n permissions,\n datechanged,\n lastnlsent,\n nlcounter,\n lastnl2sent,\n nl2counter,\n noemailnewsletter,\n noemailnewsletter_ga,\n temppasswordsent,\n logins,\n loginsfailed,\n booklistdownloads,\n booklistlastdownloaddate,\n odr_date,\n temppwd,\n visualserver,\n reencrypted,\n guide_super_admin,\n indexsuperadmin,\n sitelinklogin,\n sitelinkpassword,\n bademailid,\n exempt,\n auctionadmin\n FROM mailinglist_om LEFT JOIN country ON mailinglist_om.country = country.countrycode\n WHERE \n email = :email`;\n\n var params = { email: email };\n\n photoeye\n .query(sql, { replacements: params })\n .spread(function(results, metadata) {\n callback(misc.getAddressInfo(results[0]));\n });\n}", "async function getUserByEmail(email) {\n // SQL\n const pool = await database.getPool();\n const query = 'SELECT * FROM user WHERE userEmail = ?';\n const [users] = await pool.query(query, email);\n\n return users[0];\n}", "function checkExistingEmail(email) {\n var flag = false;\n for (let item in databases.users) {\n if(databases.users[item].email === email){\n flag = true;\n userId = databases.users[item].id;\n }\n }\n return flag;\n}", "function filterEmailsByDomain() {\n\n}", "async getUserIds() {\n console.log('GET /users')\n return this.server.getUserIds()\n }", "function getUserByEmail(email, users) {\n for (let user in users) {\n if (users[user].email === email) {\n return users[user].id;\n }\n }\n return false;\n}", "function loginReturn(loginEmail) {\n for (key in users) {\n if (users[key].email == loginEmail){\n return users[key].id;\n }\n }\n return null;\n}", "function prepareStaffAttendees() {\n var emails = [];\n if ($scope.consultation.staffAttendees.length) {\n for (var i = $scope.consultation.staffAttendees.length - 1; i >= 0; i--) {\n emails.push($scope.consultation.staffAttendees[i].email);\n };\n }\n return emails;\n }", "static async getDashboardList(email) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tDatabase.sendQuery('SELECT * FROM Dashboard WHERE (email = $1);', [email])\n\t\t\t\t.then((result) => resolve(result.rows))\n\t\t\t\t.catch((result) => reject(result));\n\t\t});\n\t}", "function getCustItineraryNames(req, res) {\n var query = `\n SELECT *\n FROM itinerary i\n WHERE i.email = :email\n ORDER BY i.itinerary_id DESC\n `;\n let email = req.params.email;\n const binds = [email];\n\n oracledb.getConnection({\n user : credentials.user,\n password : credentials.password,\n connectString : credentials.connectString\n }, function(err, connection) {\n if (err) {\n console.log(err);\n } else {\n connection.execute(query, binds, function(err, result) {\n if (err) {console.log(err);}\n else {\n //console.log(result.rows)\n res.json(result.rows)\n }\n });\n }\n });\n}", "function getUser(email) {\n return new Promise(function (resolve, reject) {\n let query = CovidCentre.find({ Email: email });\n query.exec(function (err, users) {\n if (err) {\n return reject({ err: \"Error while fetching users\" });\n }\n return resolve(users);\n });\n });\n}", "function getIssueList(userId, gmailId, gmailToken)\n{\n console.log(\"----------------Issue Message Id List-------------------\");\n var sync = true;\n var sync1 = true;\n \n var xx = '';\n var data = null;\n var obj = {\"issuelink\":\"\", \"reponame\":\"\", \"owner\":\"\", \"issuenumber\":\"\"};\n \n var arr=[];\n var q= \"You are receiving this because you were mentioned\";\n var options = {\n url: 'https://www.googleapis.com/gmail/v1/users/' + gmailId + \"/messages?q=\" + q, \n method: 'GET',\n headers: {\n \"content-type\": \"application/json\",\n \"Authorization\": \"Bearer \"+ gmailToken\n }\n };\n request(options, function (error, response, body)\n {\n //console.log(\"HTTP response headers are the following:\\n\" + \"Response: \" + JSON.stringify(response) + \"\\nError:\" + error + \"\\nBody\" + JSON.stringify(body) + \"\\n\");\n \n if (error)\n data = error;\n else\n {\n data = JSON.parse(body);\n console.log(\"\\n Result size estimate: \" + data.resultSizeEstimate);\n \n for( var i = 0; i < data.messages.length; i++ )\n {\n var msgId=data.messages[i].id; //message id\n console.log(msgId + \" \");\n xx=getMessage(userId,userId,gmailToken,msgId);\n var msgbody=xx.payload.parts[0].body;\n var convertedString = base64url.decode(msgbody.data);\n var issLink = convertedString.split(/Reply to this email directly or view it on GitHub Enterprise:/)[1].split(/\\r\\n/)[1];//remove enterprise for normal github\n var re3 = new RegExp('github.ncsu.edu/(.*)/(.*)/issues'); // to get Repo Name. Use github.com for normal github; \n var ans3=issLink.match(re3); // to get Repo Name\n var re = new RegExp('/issues/(.*)'); // to get issue number \n var ans=issLink.match(re); // to get issue number\n //console.log('Issue link: ' + issLink + ' Repo Name: ' + ans3[2] + ' Owner: ' + ans3[1] + ' Issue Number: ' + ans[1]);\n obj.issuelink=issLink;\n obj.reponame=ans3[2];\n obj.owner=ans3[1];\n obj.issuenumber=ans[1];\n \n console.log('Issue link: ' + obj.issuelink + ' Repo Name: ' + obj.reponame + ' Owner: ' + obj.owner + ' Issue Number: ' + obj.issuenumber + \"\\n\");\n \n if(obj.issuelink != '' && obj.reponame != '' && obj.owner != '' && obj.issuenumber != ''){\n if (_.findWhere(arr, obj) == null) \n arr.push(obj);\n } \n obj.issuelink='';\n obj.reponame='';\n obj.owner='';\n obj.issuenumber='';\n if(i==data.messages.length -1)\n sync = false;\n }\n \n }\n});\n while(sync) {require('deasync').sleep(100);}\n \n return arr;\n\n}", "function emailParts(email){\n\tlet arr = [];\n\temail = email.toLowerCase();\n\tarr = email.split(\"@\");\n\treturn arr;\n}", "function printEmails() {\r\n users.forEach(x => console.log(x.email));\r\n}", "function getInviteList(userId, gmailId, gmailToken)\n{\n var sync = true;\n var data = null;\n var xx = '';\n var finaldata = '';\n var obj = {\"detail\":\"\", \"yes\":\"\", \"no\":\"\", \"maybe\":\"\", \"content\":\"\"};\n var arr=[];\n var q= \"filename:invite.ics subject:invitation Invitation from Google Calendar\";\n var options = {\n url: 'https://www.googleapis.com/gmail/v1/users/' + gmailId + \"/messages?q=\" + q, // Add search string in the end as '&q=\"filename:invite.ics subject:invitation Invitation from Google Calendar\"';\n method: 'GET',\n headers: {\n \"content-type\": \"application/json\",\n \"Authorization\": \"Bearer \"+ gmailToken\n }\n };\n request(options, function (error, response, body)\n {\n //console.log(\"HTTP response headers are the following:\\n\" + \"Response: \" + JSON.stringify(response) + \"\\nError:\" + error + \"\\nBody\" + JSON.stringify(body) + \"\\n\");\n if (error)\n data = error;\n else{\n data = JSON.parse(body);\n\n console.log(\"\\n Result size estimate: \" + data.resultSizeEstimate);\n \n for( var i = 0; i < data.messages.length; i++ )//data.messages.length\n {\n var msgId=data.messages[i].id; //message id\n //console.log(msgId + \" \");\n xx=getMessage(userId,userId,gmailToken,msgId);\n var h = base64url.decode(xx.payload.parts[0].parts[0].body.data);\n //console.log(\"decoded message \" + h);\n var tempcontent = h.replace(/(\\r\\n|\\n|\\r)*Invitation from Google Calendar(\\r\\n|\\n|\\r|.)*/gm,\"\").replace(/(\\r\\n|\\n|\\r)*You have been invited to the following event.(\\r\\n|\\n|\\r)*/gm,\"\");\n var re = new RegExp('https://www.google.com/calendar/event?(.*)'); // to get pull number ie 9\n var link = tempcontent.match(re)[0];\n var detail = '<' + link + '|\\tEvent Details>';\n var yes = '<' + link.replace(\"VIEW\", \"RESPOND\") + '&rst=1|\\tYes>';\n var no = '<' + link.replace(\"VIEW\", \"RESPOND\") + '&rst=2|\\tNo>';\n var maybe = '<' + link.replace(\"VIEW\", \"RESPOND\") + '&rst=3|\\tMaybe>';\n var content = tempcontent.replace(/(\\r\\n|\\n|\\r)*Event details:(\\r\\n|\\n|\\r|.)*/gm,\"\");\n finaldata = finaldata + \"\\n---------------------------------------------------\\nYou have been invited to the following event\\n---------------------------------------------------\\n\" + content + \"\\nActions:\" + \"\\n\" + yes + \"\\n\" + no + \"\\n\" + maybe + \"\\nFor more information: \" + detail + \"\\n\";\n \n // console.log(\"content:\\n\" + content);\n obj.detail=detail;\n obj.yes=yes;\n obj.no=no;\n obj.maybe=maybe;\n obj.content=content;\n console.log('Event detail: ' + obj.detail + '\\ncontent: ' + obj.content + '\\nYes: ' + obj.yes + '\\nNo: ' + obj.no + '\\nMay be: ' + obj.maybe + \"\\n\");\n \n if(obj.yes != '' && obj.no != '' && obj.maybe != '' && obj.content != '' && obj.detail != ''){\n if (_.findWhere(arr, obj) == null) \n arr.push(obj);\n } \n obj.yes='';\n obj.detail='';\n obj.no='';\n obj.maybe='';\n obj.content='';\n if(i==data.messages.length -1)\n sync = false;\n }\n }\n \n });\n while(sync) {require('deasync').sleep(100);}\n \n return arr;\n\n}", "function smtpListEmails(callback, limit, offset, fromDate, toDate, sender, recipient) {\n if (limit === undefined) {\n limit = 0;\n }\n if (offset === undefined) {\n offset = 0;\n }\n if (fromDate === undefined) {\n fromDate = '';\n }\n if (toDate === undefined) {\n toDate = '';\n }\n if (sender === undefined) {\n sender = '';\n }\n if (recipient === undefined) {\n recipient = '';\n }\n var data = {\n limit: limit,\n offset: offset,\n from: fromDate,\n to: toDate,\n sender: sender,\n recipient: recipient\n }\n sendRequest('smtp/emails', 'GET', data, true, callback);\n}", "function evaluate_emails(callback) {\n // console.log(\"name=\"+JSON.stringify(my_query.fullname));\n for(i=0;i<my_query.email_list.length;i++) {\n my_query.email_list[i]=my_query.email_list[i].replace(/^[^@]+\\//,\"\").replace(/(\\.[a-z]{3})yX$/,\"$1\"); }\n my_query.email_list.sort(function(a,b) {\n try {\n if(a.split(\"@\")[1]<b.split(\"@\")[1]) return -1;\n else if(a.split(\"@\")[1]>b.split(\"@\")[1]) return 1;\n if(a.split(\"@\")[0]<b.split(\"@\")[0]) return -1;\n else if(a.split(\"@\")[0]>b.split(\"@\")[0]) return 1;\n else return 0;\n }\n catch(error) { return 0; }\n });\n remove_dups(my_query.email_list);\n console.log(\"my_query.email_list=\"+JSON.stringify(my_query.email_list));\n var my_email_list=[],i,curremail;\n my_query.fullname={fname:my_query.fields.firstname,lname:my_query.fields.lastname};\n var fname=my_query.fullname.fname.replace(/\\'/g,\"\"),lname=my_query.fullname.lname.replace(/\\'/g,\"\");\n\n var email_regexps=\n [new RegExp(\"^\"+fname.charAt(0)+\"(\\\\.)?\"+lname+\"@\",\"i\"),new RegExp(\"^\"+fname+\"[\\\\._]{1}\"+lname+\"@\",\"i\"),\n new RegExp(\"^\"+fname+lname.charAt(0)+\"@\",\"i\"),new RegExp(\"^\"+lname+fname.charAt(0)+\"@\",\"i\"),new RegExp(\"^\"+my_query.fullname.fname+\"@\")];\n // Judges the quality of an email\n function EmailQual(email) {\n this.email=email;\n this.domain=email.replace(/^[^@]*@/,\"\");\n this.quality=0;\n if(/wix\\.com/.test(this.email)) return;\n if(/^(info|contact|admission|market)/.test(email)) this.quality=1;\n else this.quality=2;\n if(new RegExp(my_query.fullname.fname,\"i\").test(email)) this.quality=3;\n if(new RegExp(my_query.fullname.lname.substr(0,5),\"i\").test(email)) {\n this.quality=4;\n if(email.toLowerCase().indexOf(my_query.fullname.lname.replace(/\\'/g,\"\").toLowerCase())>0 &&\n my_query.fullname.fname.toLowerCase().charAt(0)===email.toLowerCase().charAt(0)) this.quality=5;\n }\n for(var i=0;i<email_regexps.length;i++) if(email_regexps[i].test(email)) this.quality=6;\n if(this.email.replace(/^[^@]*@/,\"\")===MTP.get_domain_only(my_query.url,true)) this.quality+=5;\n\n }\n for(i=0;i<my_query.email_list.length;i++) {\n // console.log(\"my_query.email_list[\"+i+\"]=\"+typeof(my_query.email_list[i]));\n if(MTP.is_bad_email(my_query.email_list[i])) continue;\n curremail=new EmailQual(my_query.email_list[i].trim());\n if(curremail.quality>0) my_email_list.push(curremail);\n }\n my_email_list.sort(function(a, b) { return b.quality-a.quality; });\n console.log(\"my_email_list=\"+JSON.stringify(my_email_list));\n if(my_email_list.length>0) {\n my_query.fields.email=my_email_list[0].email;\n console.log(\"# Calling callback?=submit_if_done, evaluate_emails length>0\");\n\n callback();\n return true;\n }\n console.log(\"# Calling callback?=submit_if_done, evaluate_emails otherwise\");\n callback();\n }", "getReceiverEmail(db, user_id) {\n return db.from(\"users\").select(\"email\").where(\"id\", user_id).first();\n }", "function getParticipants() {\n return db.sqlQuery(getparticipants);\n}", "function findByEmail(email, callback) {\n var sql_search_by_email = 'select id, email, nickname, gender, text, imagepath, need, ' +\n 'position_id, genre_id, city_id, town_id, password ' +\n 'from user ' +\n 'where email = ?';\n\n var user = {};\n\n if (email === undefined) {\n return callback(null, null);\n }\n else {\n dbPool.getConnection(function (err, dbConn) {\n if (err) {\n return callback(err);\n } else {\n dbConn.query(sql_search_by_email, [email], function (err, result) {\n dbConn.release();\n if (err) {\n return callback(err);\n } else {\n if (result[0] === undefined) {\n // no such email\n callback(new Error('there is no user have such email'));\n } else {\n user.id = result[0].id;\n user.email = result[0].email;\n user.nickname = result[0].nickname;\n user.gender = result[0].gender;\n user.text = result[0].text;\n user.imagepath = result[0].imagepath;\n user.position_id = result[0].position_id;\n user.genre_id = result[0].genre_id;\n user.city_id = result[0].city_id;\n user.town_id = result[0].town_id;\n user.need = result[0].need;\n user.password = result[0].password;\n callback(null, user);\n }\n }\n });\n }\n });\n }\n}", "function emailToId(input) {\n for (let id in users) {\n if (users[id].email === input) {\n return id;\n };\n };\n return false;\n}", "function getCollectionsWithCreator(creator_email, callback) {\n conn.query('SELECT * FROM Collections WHERE creator_email=$1', [creator_email],\n function(error, result) {\n var collections = [];\n for(var i = 0; i < result.rowCount; i++) {\n collections.push(new Collection(\n result.rows[i].collection_id,\n result.rows[i].collection_title,\n result.rows[i].collection_description,\n creator_email,\n result.rows[i].visible,\n result.rows[i].email_interval\n ));\n }\n callback(collections);\n });\n}", "function emailParts(email) {\n let lowerCasedEmail = email.toLowerCase();\n return lowerCasedEmail.split(\"@\");\n}", "function getIssueList(userId, gmailId, gmailToken)\n{\n var sync = true;\n var data = null;\n var options = {\n url: 'https://www.googleapis.com/gmail/v1/users/' + gmailId + \"/messages?maxResults=20\", // Add search string in the end as '&q=\"You are receiving this because you are subscribed to this thread -\\\"You can view, comment on, or merge this pull request online at\\\"\"';\n method: 'GET',\n headers: {\n \"content-type\": \"application/json\",\n \"Authorization\": \"Bearer \"+ gmailToken\n }\n };\n request(options, function (error, response, body)\n {\n console.log(\"HTTP response headers are the following:\\n\" + \"Response: \" + JSON.stringify(response) + \"\\nError:\" + error + \"\\nBody\" + JSON.stringify(body) + \"\\n\");\n if (error)\n data = error;\n else\n data = JSON.parse(body);\n sync = false;\n });\n while(sync) {require('deasync').sleep(100);}\n return data;\n\n}", "static async findOne(data) {\n const { email } = data;\n const result = await db.query(\n `SELECT email\n FROM newsletter_emails \n WHERE email = $1`,\n [email]\n );\n return result.rows[0];\n }", "async findByEmail(email) {\n try {\n wlogger.silly(\"Enteried cassandra-db/findByEmail()\")\n\n await this.client.connect()\n\n const data = await this.client.execute(`\n SELECT * FROM users WHERE email='${email}'\n `)\n\n //await this.client.shutdown()\n\n //console.log(`users: ${JSON.stringify(data.rows, null, 2)}`)\n return data.rows[0]\n } catch (err) {\n wlogger.error(`Error in cassandra-db/findByEmail()`)\n throw err\n }\n }", "function getFriendIDs() {\n \n var friendsArray = [];\n\n if (FB_Friends.findOne({owner: Meteor.userId()}) != null)\n {\n // Get the friends objects from the database collection\n friendsArray = FB_Friends.findOne({owner: Meteor.userId()}).friends;\n\n // Extract the id from each object in the array\n friendsArray = friendsArray.map(function(obj){return obj.id;});\n }\n\n return friendsArray;\n}", "function emailStatByCampaigns(callback, email) {\n if ((email === undefined) || (!email.length)) {\n return callback(returnError('Empty email'));\n }\n sendRequest('emails/' + email + '/campaigns', 'GET', {}, true, callback);\n}", "function retrieveIDs(data) {\n\n var dataString;\n\n if (_.isString(data)) {\n dataString = data;\n } else {\n dataString = JSON.stringify(data);\n }\n\n //Find all mongo ids included in the object\n var myregexp = /[0-9a-fA-F]{24}/g;\n var matches = dataString.match(myregexp);\n\n //Make sure the matches are unique\n return _.uniq(matches);\n }", "static async getGraphList(email, dashboardID) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tDatabase.sendQuery('SELECT g.* from graph as g join (SELECT * from dashboard as d WHERE (d.email = $1) AND (d.id = $2)) as de on (g.dashboardid=de.id);', [email, dashboardID])\n\t\t\t\t.then((result) => resolve(result.rows))\n\t\t\t\t.catch((result) => reject(result));\n\t\t});\n\t}", "function getid(email)\n {\n app.post(\"/api/npusers\",function (req, res, next) {\n email=req.body.id_user;\n mysqlcnx.query(\"SELECT nom,prenom FROM users where id_user='\"+id_user+\"'\" , function (err, result, fields) {\n if (err) throw err;\n res.send(JSON.stringify(result));\n \n });\n});\n}", "function emailSearch(email) {\n desk.get('cases/search/',{email: email, sort_field:'created_at', sort_direction: 'desc'}, function(error, data) {\n if (data._embedded.entries.length > 0) {\n caseAttachment(data._embedded.entries[0].id)\n } else if (data._embedded.entries.length < 1) {\n empty()\n } else {\n help()\n }\n });\n }", "async retrieveUsers(){cov_1m9telhrda.f[14]++;const _users=(cov_1m9telhrda.s[163]++,await User.find({}));const users=(cov_1m9telhrda.s[164]++,_users.map(user=>{cov_1m9telhrda.f[15]++;cov_1m9telhrda.s[165]++;return{name:user.name,id:user._id,email:user.email};}));cov_1m9telhrda.s[166]++;return users;}", "function getRecipients(){\n\t\tvar players = [];\n\t\tvar _cc = $(\".team-table-active .email-cc\").text().split(\", \");\n\t\t\n\t\t$(\".team-table-active tbody tr\").each(function(){\n\t\t\tif($(this).children(\"td.email-cell\").length){\n\t\t\t\tplayers.push($(this).children(\"td.email-cell\").text().trim());\n\t\t\t}else if($(this).children(\"td.coach-email-cell\")){\n\t\t\t\t_cc.push($(this).children(\"td.coach-email-cell\").text().trim());\n\t\t\t}\n\t\t})\n\t\trecipients.val(players.join(\", \"))\n\t\tcc.val(_cc.join(\", \"))\n\t}//this function is used only on the roster page", "getContactUserIDs(userID, callback) {\n let query = \"select userID1, userID2 from contact where userID1 = \" + userID + \" or userID2 = \" + userID + \";\";\n this.selectQuery(query, (result) => {\n //durch das select erhält man zwei Tabellen (userID1 und userID2) für jeden Kontakt indem die gegebene\n //userID vorhanden ist (ob diese nun zu userID1 oder userID2 gehört ist unbekannt)\n //es wird ein Array erstellt in dem alle userIDs, welche nicht die gegebene ist gespeichert werden\n let contactUserIDs = [];\n //alle Kontakte von userID werden mit einer Schleife durchgangen. Danach wird überprüft zu welcher Spalte\n //userID gehört und jeweils der Datenwert der anderen Spalte in den Array gespeichert\n for (let i in result) {\n if (result[i].userID1 === userID)\n contactUserIDs.push(result[i].userID2);\n else\n contactUserIDs.push(result[i].userID1);\n }\n //anschließend erhält man ein Array mit allen userIDs mit den die gegebene userID in Kontakt steht\n callback(contactUserIDs);\n });\n }", "function getAllUsers(res) {\n User.find()\n .select('_id email')\n .exec()\n .then(results => {\n console.log(results);\n const response = {\n count: results.length,\n users: results.map(user => {\n return {\n _id: user._id,\n email: user.email,\n request: {\n type: 'GET',\n url: 'http:localhost:3000/api/users/' + user._id\n }\n }\n })\n }\n res.status(200).json(response);\n })\n .catch(error => {\n console.log(error);\n res.status(500).json(\n {\n error: error\n }\n )\n });\n}", "function findUser(email) {\n return new Promise((resolve, reject) => {\n client.getSchema().then(schema => {\n var userCollection = schema.getTable(TABLE.USERS);\n // Lookup by email\n var results = [];\n let recordMap = RECORD_MAP.USERS;\n userCollection.select().where(\"email = :param\").bind(\"param\", email).execute(row => {\n results.push(recordMap(row));\n }).then(() => {\n resolve(results);\n }).catch(err => {\n // Handle database errors\n console.log(\"Error querying user email.\", err);\n reject(err);\n })\n }).catch(err => { reject(err); });\n });\n}", "getUserByEmail(email) {\n const stmt = this.db.prepare(\"SELECT * FROM users WHERE email = ?\");\n return stmt.get(email);\n }", "function getFakeEmailInfo(data) {\r\n return new Promise((resolve, reject) => {\r\n let query = \"SELECT COUNT(*) AS count FROM \" + table.MAIL_DASHBOARD + \" WHERE uploaded_date = ( SELECT MAX( uploaded_date ) FROM \" +\r\n table.MAIL_DASHBOARD + \") AND is_validated = 2 ORDER BY uploaded_date DESC, id \"\r\n\r\n db.query(query, (error, rows, fields) => {\r\n if (error) {\r\n reject({ message: message.INTERNAL_SERVER_ERROR })\r\n } else {\r\n let count = 0\r\n if (rows.length > 0) {\r\n count = rows[0].count\r\n }\r\n\r\n let query = \"select * FROM \" + table.MAIL_DASHBOARD + \" WHERE uploaded_date = ( SELECT MAX( uploaded_date ) FROM \" +\r\n table.MAIL_DASHBOARD + \") AND is_validated = 2 ORDER BY uploaded_date Desc, id \"\r\n\r\n if (Number(data.page) != -1 && Number(data.rowsPerPage) != -1) {\r\n query += \" LIMIT ?, ?\"\r\n } \r\n\r\n db.query(query, [Number(data.page) * Number(data.rowsPerPage), Number(data.rowsPerPage)], (error, rows, fields) => {\r\n if (error) {\r\n reject({ message: message.INTERNAL_SERVER_ERROR })\r\n } else {\r\n resolve({ count: count, rows: rows })\r\n }\r\n })\r\n }\r\n }) \r\n }) \r\n}", "function getMultiplePeopleById( userIdList , numberOfResults , logJson ){\n var idsStr = \"\";\n for( var i in userIdList ){\n idsStr = idsStr + userIdList[i];\n if( i < userIdList.length - 1 ) idsStr = idsStr + \",\";\n }\n Logger.log( BASEURL + \"/people/?count=100&ids=\" + idsStr );\n return fetch( BASEURL + \"/people/?count=100&ids=\" + idsStr, options(\"get\"), logJson );\n}", "get(cb,args = {}){\n\t\tvar argDef = {\n\t\t\tid:[\"int\",false],\n\t\t\temail:[\"varchar\",false]\n\t\t};\n\t\tvar byID = args.id ? 'and person.id = @id' : '';\n\t\tvar byEmail = args.email ? 'and person.email = @email' : '';\n\t\tvar queryText = `\n\t\t\tselect top 3\n\t\t\tperson.*,\n\t\t\tstuff(\n\t\t\t\t(\n\t\t\t\t\tselect ',' + cast(instrument.id as varchar(10))\n\t\t\t\t\tfrom instrument\n\t\t\t\t\tinner join person_instrument on person_instrument.instrument_id = instrument.id\n\t\t\t\t\t\tand person_instrument.active = 1\n\t\t\t\t\t\tand person_instrument.person_id = person.id\n\t\t\t\t\t\twhere instrument.active = 1\n\t\t\t\t\t\torder by instrument.id asc\n\t\t\t\t\t\tfor xml path('')\n\t\t\t\t)\n\t\t\t,1,1,'') as instrument_ids\n\t\t\tfrom person\n\t\t\twhere person.active = 1\n\n\t\t\t${byID}\n\t\t\t${byEmail}\n\t\t`;\n\n\t\tthis.query(cb,queryText,args,argDef);\n\t}", "function filterEmails(){\n\n var uniqueEmails={};\n $(\"tr[id^='student-c']\").each(function(){\n var $elementId = $(this).attr('id');\n var $studentId = $elementId.split('-')[1];\n var $emailElement = $(\"#student_email-\" + $studentId.replace('.', '\\\\.'));\n var $emailText = $emailElement.text();\n if($(this).is(':hidden') || uniqueEmails[$emailText]){\n $emailElement.hide();\n } else {\n uniqueEmails[$emailText] = true;\n $emailElement.show();\n }\n });\n}", "async getUsers(){\n let users = await db.query('SELECT id, name, email FROM users');\n\n return users;\n }", "function GetByEmail(req, res) {\r\n // console.log(\"da el body: \" +req.params.email )\r\n var email = req.params['email'];\r\n console.log(email);\r\n user.findOne({\r\n $or: [\r\n { 'email': email }\r\n ]\r\n })\r\n .populate({\r\n path: 'recipes',\r\n select: 'name -_id'\r\n })\r\n .populate({\r\n path: 'fevRecipes',\r\n select: 'name -_id'\r\n })\r\n .populate({\r\n path: 'shoppingList',\r\n select: 'name -_id'\r\n })\r\n .populate({\r\n path: 'enrolledCourse.course',\r\n select: '-_id',\r\n })\r\n .populate({\r\n path: 'enrolledCourse.visitedSections',\r\n select: '-_id',\r\n })\r\n .populate('badges.badgeid')\r\n .then(_result => res.json(_result))\r\n .catch(_err => res.status(500).send())\r\n}", "function getParticipants(callback) {\n\tquery(\"select * from participants\", callback);\n}", "function getUserId (email) {\n for (let key in users) {\n if (users[key]['email'] === email) {\n return users[key].id\n }\n }\n return false\n}" ]
[ "0.687989", "0.6711965", "0.6588783", "0.646086", "0.6425887", "0.6421459", "0.6415822", "0.63674015", "0.633978", "0.63247657", "0.6318787", "0.6252117", "0.6244056", "0.6229757", "0.62080944", "0.6198618", "0.6193193", "0.6189425", "0.61688787", "0.6145366", "0.6138443", "0.6090811", "0.60872686", "0.6052323", "0.6028842", "0.6022086", "0.60202456", "0.5983362", "0.5956252", "0.5949801", "0.5947899", "0.59380984", "0.592545", "0.59224695", "0.5887147", "0.5845147", "0.58284366", "0.5826948", "0.58031017", "0.5796203", "0.579314", "0.5771956", "0.5763081", "0.57553685", "0.5746272", "0.57347715", "0.57337016", "0.5729363", "0.5718007", "0.57136196", "0.57087034", "0.57012016", "0.5695716", "0.5695516", "0.56852365", "0.5677909", "0.5674008", "0.5652515", "0.5650971", "0.5637443", "0.5631476", "0.56237274", "0.5615614", "0.56131846", "0.56117874", "0.5603172", "0.5598748", "0.55926687", "0.559203", "0.5583679", "0.5583485", "0.5576565", "0.55764955", "0.5571008", "0.55672514", "0.5556428", "0.5554457", "0.55530506", "0.5545487", "0.5535756", "0.5533368", "0.5524045", "0.552143", "0.5513447", "0.5506868", "0.5502807", "0.5497295", "0.5496719", "0.54961884", "0.54836565", "0.54833364", "0.5465086", "0.5463121", "0.54627264", "0.5461571", "0.54488194", "0.5446112", "0.5440781", "0.54325676", "0.5431638" ]
0.63529164
8
fetching data from errorlog table for rerun the scheduler
function errorDataCollection() { let today = new Date() let pendingSchedule = [''] let currentTime = new Date() let timePeriod = new Date(currentTime.setMinutes(currentTime.getMinutes() - 8)); client.query(`SELECT * from schedule_error WHERE error_area != 'email validation' AND status != 'Success' AND datetime <= '${today}' AND datetime >= '${timePeriod}'`, (err, res) => { if (err) { errorLog(err, 'reschedule', 'Pending') } else { pendingSchedule = res.rows for (let errorrow of pendingSchedule) { reScheduling(errorrow); } } // console.log(res.rows); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "refreshAnomalyTable() {\n const { anomalyIds, exploreDimensions } = this.currentModel;\n if (anomalyIds && anomalyIds.length) {\n get(this, 'loadAnomalyData').perform(anomalyIds, exploreDimensions);\n }\n }", "function get_data_from_log_table(func)\n{\n\tif(typeof static_local_db=='undefined')\n\t{\n\t\topen_local_db(function()\n\t\t{\n\t\t\tget_data_from_log_table(func);\n\t\t});\n\t}\n\telse\n\t{\n\t\tvar keyValue=IDBKeyRange.bound(['unsynced','0'],['unsynced','99999999']);\n\t\tvar counter=0;\n\t\tvar log_data=[];\n\t\tvar sub_log_data=[];\n\n\t\tstatic_local_db.transaction(['activities'],\"readonly\").objectStore('activities').index('status').openCursor(keyValue,'next').onsuccess=function(e)\n\t\t{\n\t\t\tvar result=e.target.result;\n\t\t\tif(result)\n\t\t\t{\n\t\t\t\tvar record=result.value;\n\n\t\t\t\tif(counter===200)\n\t\t\t\t{\n\t\t\t\t\tlog_data.push(sub_log_data);\n\t\t\t\t\tsub_log_data=[];\n\t\t\t\t\tcounter=0;\n\t\t\t\t}\n\t\t\t\t//\tconsole.log(record);\n\t\t\t\tsub_log_data.push(record);\n\n\t\t\t\tcounter+=1;\n\t\t\t\tresult.continue();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlog_data.push(sub_log_data);\n\t\t\t\tfunc(log_data);\n\t\t\t}\n\t\t};\n\n\t}\n}", "function fetchRowsFromJdeAuditLogRS(connection, resultSet, numRows, audit)\n{\n resultSet.getRows( numRows, function(err, rows)\n {\n \tif (err)\n\t{\n \tresultSet.close(function(err)\n\t\t{\n\t\t\tif (err)\n\t\t\t{\n\t\t\t\tconsole.log(err.message);\n\t\t\t\tconnection.release(function(err)\n\t\t\t\t{\n\t\t\t\t\tif (err) { console.log(err.message); }\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n \t} else if (rows.length == 0)\n\t{\n\t\tresultSet.close(function(err)\n\t\t{\n\t\t\tif (err)\n\t\t\t{\n\t\t\t\tconsole.log(err.message);\n\t\t\t\tconnection.release(function(err)\n\t\t\t\t{\n\t\t\t\t\tif (err) { console.log(err.message); }\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t} else if (rows.length > 0)\n\t{\n\t\t\n\t\t// Last audit entry retrieved\n\t\t// Process continues by querying the JDE Job Control Master file for eligible PDF's to process\n\n\t\tvar record = rows[0];\n\t\tqueryJdeJobControl(connection, record);\n\t\t\n\t}\n });\n}", "function errorLog(error, area, status) {\r\n var today = new Date();\r\n client.query(\r\n `INSERT INTO schedule_error(message, datetime,error_area,status)VALUES('${error}','${today}','${area}','${status}')`,\r\n (err, res) => {\r\n if (err) {\r\n\r\n console.log(err)\r\n }\r\n }\r\n );\r\n}", "function processLog()\n{\n var log_entry;\n var log_lines;\n var date;\n\tvar time;\n\tvar query_string;\n var entry_stats;\n \n logdata.shift();\t// ignore server infos\n\t\n for (var i = 0; i < logdata.length; i++) {\n \n // load string\n log_entry = \"# Time: \" + logdata[i];\n logdata[i] = {};\n \n log_lines = log_entry.split(\"\\n\");\n\t\t\n // get host\n logdata[i].db_name = log_lines[1].split(\"[\")[1].split(\"]\")[0];\n\t\t\n // get stats\n entry_stats = log_lines[2].split(\" \");\n logdata[i].query_time = parseInt(entry_stats[2]); // query time\n logdata[i].lock_time = parseInt(entry_stats[5]); // lock time\n logdata[i].rows_sent = parseInt(entry_stats[8]); // rows sent\n logdata[i].rows_examined = parseInt(entry_stats[11]); // row examined\n \n // update stats\n\t\tif (logdata[i].query_time < stats.query_time.min) stats.query_time.min = logdata[i].query_time;\n\t\tif (logdata[i].query_time > stats.query_time.max) stats.query_time.max = logdata[i].query_time;\n\t\tif (logdata[i].lock_time < stats.lock_time.min) stats.lock_time.min = logdata[i].lock_time;\n\t\tif (logdata[i].lock_time > stats.lock_time.max) stats.lock_time.max = logdata[i].lock_time;\n\t\tif (logdata[i].rows_sent < stats.rows_sent.min) stats.rows_sent.min = logdata[i].rows_sent;\n\t\tif (logdata[i].rows_sent > stats.rows_sent.max) stats.rows_sent.max = logdata[i].rows_sent;\n\t\tif (logdata[i].rows_examined < stats.rows_read.min) stats.rows_read.min = logdata[i].rows_examined;\n\t\tif (logdata[i].rows_examined > stats.rows_read.max) stats.rows_read.max = logdata[i].rows_examined;\n \n log_lines[0] = log_lines[0].replace(' ', ' ');\n date = str_split(log_lines[0].split(' ')[2],2);\n\t\ttime = log_lines[0].split(' ')[3].split(\":\");\n \n // parse date\n date = new Date(\"20\" + date[0], date[1] - 1, date[2], time[0], time[1], time[2]);\n \n var year = date.getFullYear();\n var month = date.getUTCMonth() + 1; if (month < 10) month = \"0\" + month;\n var day = date.getDate().toString(); if (day < 10) day = \"0\" + day;\n var hours = date.getHours().toString(); if (hours < 10) hours = \"0\" + hours;\n var mins = date.getMinutes().toString(); if (mins < 10) mins = \"0\" + mins;\n \n logdata[i].dateObj = date; // date\n logdata[i].date = year + \"/\" + month + \"/\" + day + \" \" + hours + \":\" + mins;\n logdata[i].hour = hours;\n\t\t\n // isolate query\n log_lines.shift();\n log_lines.shift();\n log_lines.shift();\n \n\t\t// query\n\t\tquery_string = checkMulitpleQueries(log_lines.join(\"<br/>\").split(\"# User@Host: \"), date, i);\n\t\t\n\t\t// add formatted query tou the list\n\t\tlogdata[i].query_string = query_string;\n }\n}", "async function queryAuditLog () {\n // Select the query to run\n let queryRunner\n if (cursor) {\n queryRunner = () => requestEntries(graphqlWithAuth, org, limit, cursor)\n } else {\n queryRunner = () => requestEntries(graphqlWithAuth, org, limit)\n }\n\n // Run the query and store the most recent cursor\n const { data, newestCursorId } = await queryRunner()\n const entries = data\n if (newestCursorId) fs.writeFileSync('.last-cursor-update', newestCursorId)\n\n // Return the data\n if (pretty === true) {\n return JSON.stringify(entries, null, 4)\n } else {\n return JSON.stringify(entries)\n }\n}", "async function readLogs() {\n try {\n return await knex.select('*').from('tb_users_logs');\n } catch (ex) {\n console.log('error when calling select...');\n }\n}", "function getHrmsData(sunConn,hrmsConn,trans,userID){\ntry{\n \n let requestString='SELECT *'\n if(forceTransFlag==false){\n let d=new Date()\n requestString+=` FROM JV_Report_Details_Tbl WHERE The_Month=${ d.getMonth()} AND User_ID=${1};`\n }\n else{\n requestString+=` FROM JV_Report_Details_Tbl WHERE The_Month=${forcedMonth} AND User_ID=${1};`\n }\n //console.log(requestString)\n return new Promise((resolve,reject)=>{\n request = new Request(requestString,async (err,rowCount,rows)=> { \n if (err) { \n reject(err.message)\n console.log(err);\n }\n else{\n console.log(rowCount+' rows selected')\n const headerID=await insertIntoSunHeaders(sunConn)\n if(forceTransFlag==false){\n const detailsInsertion=await insertIntoSunDetails(sunConn,trans,rows,headerID,userID,d.getMonth())\n }\n else{\n const detailsInsertion=await insertIntoSunDetails(sunConn,trans,rows,headerID,userID,forcedMonth)\n }\n }\n }); \n request.on('requestCompleted', function() { \n resolve(1)\n }); \n hrmsConn.execSql(request); \n })\n}\ncatch(err){\n console.log(err.message)\n}\n}", "loadLastRow() {\n loadAllRows().then((response) => this.receiveData(-1, response));\n }", "function viewEmployees() {\n let query = \"SELECT * FROM employee\";\n connection.query(query, function(err,res) {\n console.log(\"\\n\\n\");\n console.table(res); \n reRun();\n })\n \n}", "async getError(errorId, data = null) {\n // On boot, refresh all records;\n if (!this.errorsList)\n this.errorsList = await this.defaultEntityManager.find(ErrorsList_1.ErrorsList);\n // if error is not found. refresh from database table otherwise throw an error.\n try {\n // error not found, refresh whole list.\n // also find again in refreshed list.\n let currError = this.errorsList.find((error) => error.errorId == errorId);\n if (!currError) {\n this.errorsList = await this.defaultEntityManager.find(ErrorsList_1.ErrorsList);\n currError = this.errorsList.find((error) => error.errorId == errorId);\n }\n return new ApiResponse_1.default(currError.errorNumber, currError.errorMessage, data);\n }\n catch (ex) {\n return new ApiResponse_1.default(-1, 'BAD EXECUTION ERROR. API FAILED.');\n }\n }", "function analyse_data(error, retry, deviceId, analysis_event){\n if(retry <= 0) return console.log(error);\n api.calculate_analysis(deviceId, analysis_event.timestamp, (error, results) =>{\n if(error) return setTimeout( () => {analyse_data(error, retry-1, deviceId, analysis_event)}, Math.floor(Math.random() * 5000) + 1000);\n analysis = {\n deviceId,\n timezone: analysis_event.timezone,\n timestamp: analysis_event.timestamp,\n baseline: results.results.baseline,\n max_temp: results.results.max_temp,\n total_carbon: results.results.total_carbon\n };\n analysis_db.insert(analysis, (error, body, header) => {\n if(error) return setTimeout( () => {analyse_data(error, retry-1, deviceId, analysis_event)}, Math.floor(Math.random() * 5000) + 1000 );\n });\n });\n}", "function getLogToAnalyze(request){\n\nvar log =[];\nreturn MIRESAdmin.firestore().collection(MIRESconfig.MIRES_log).where('timestamp', '>=', request.data.timestamp).get()\n.then(snapshot => {\n if(snapshot.empty){\n console.log(\"getLogToAnalyze function: log is empty.\");\n return log;\n }\n else{\n // Get the existing log\n snapshot.forEach(doc => {\n const logRow ={\n id:doc.id,\n data:doc.data(),\n }\n log.push(logRow);\n });\n return log;\n }\n })\n .catch(err => {\n throw new Error(\"getLogToAnalyze function: \"+err);\n }); \n}", "static readAll(){\n return new Promise((resolve,reject) =>{\n (async () =>{\n // 1. connect to the DB\n // query to DB\n // verify format\n // if all is good then resolve\n // if not good reject iwth error\n // close db\n \n try{\n const pool = await sql.connect(con);\n const result = await pool.request().query(`\n SELECT u.userid, u.username, u.useremail, e.eventid, e.eventname, e.eventweek, e.eventdescription, es.schedulearray\n FROM users u\n JOIN eventSchedules es ON es.FK_userid = u.userid\n JOIN event e ON es.FK_eventid = e.eventid\n `)\n\n const schedules = [];\n\n result.recordset.forEach(record =>{\n const newSchedule = {\n userid: record.userid,\n username: record.username,\n useremail: record.useremail,\n eventid: record.eventid,\n eventname: record.eventname,\n eventweek: record.eventweek,\n eventdescription: record.eventdescription,\n schedulearray: record.schedulearray\n }\n\n schedules.push(newSchedule);\n })\n\n const validSchedules = [];\n schedules.forEach(schedule =>{\n const {error} = Schedule.validate(schedule);\n\n if(error) throw {errorMessage: 'Schedule.validate failed'}\n\n validSchedules.push(new Schedule(schedule))\n })\n\n resolve(validSchedules)\n }catch (error){\n reject(error);\n }\n sql.close();\n })();\n })\n }", "function getData(err, user) {\n //logger.debug(user);\n\n //get individual br asset report\n\n var _sql = \"SELECT a.machine as Machine,\\\n a.tacho as Tacho,\\\n a.site as Site,\\\n a.description as Description,\\\n a.order_number as OrderNumber,\\\n a.id_number as ID_Number,\\\n a.jlg_jobnumber as Job_Number,\\\n a.creation_date as Creation_Date,\\\n a.`mileage_e/w` as Mileage,\\\n a.job_status_idjob_status as Status_id,\\\n st.description as Status, \\\n a.finished as Finished,\\\n a.invoiced as Invoiced,\\\n a.idjob as DB_ID, \\\n a.priority as Priority, \\\n b.name as Customer,\\\n IF(c.stoptime IS NULL, 'Not Started', c.stoptime) as Last_Worked\\\n FROM job a \\\n JOIN job_status st \\\n ON st.idjob_status = a.job_status_idjob_status \\\n JOIN customer b \\\n ON b.idcustomer = a.customer_idcustomer\\\n LEFT JOIN (SELECT * FROM (SELECT stoptime, job_idjob FROM work_instance ORDER BY stoptime DESC) as temp GROUP BY job_idjob) as c\\\n ON c.job_idjob = a.idjob\";\n //logger.info(_sql);\n mysql.query(_sql, function(err2, rows) {\n if (!err2) {\n for (var i = 0; i < rows.length; i++) {\n\n if (rows[i]['Last_Worked'] != \"Not Started\") {\n var tempTime = new Date(rows[i]['Last_Worked']);\n //logger.debug(tempTime);\n var tempTime2 = tempTime.toUTCString();\n // logger.debug(tempTime2);\n rows[i]['Last_Worked'] = tempTime2;\n }\n //logger.debug(rows[i]['Last_Worked']);\n }\n res.json(rows);\n\n } else {\n logger.debug('error:', err2);\n res.status(500).send(err);\n }\n })\n\n }", "function getAuditLogs(endpointURL,data){\n\n Alfresco.util.Ajax.jsonGet({\n url: Alfresco.constants.URL_CONTEXT + endpointURL,\n dataObj: data,\n successCallback: {\n fn: function (result) {\n // ページング系処理\n var pagination = result.json[\"list\"][\"pagination\"];\n $('#prev-page').prop('disabled', !Boolean(pagination.skipCount));\n $('#next-page').prop('disabled', !pagination.hasMoreItems);\n $('#download-audit-log').prop('disabled', false);\n $('#delete-audit-log').prop('disabled', false);\n\n result.json.list.entries = settleEntries(result.json.list.entries);\n\n // データテーブル形処理\n YAHOO.example.Data = result.json;\n var dataSource = new YAHOO.util.DataSource(YAHOO.example.Data);\n dataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;\n dataSource.responseSchema = AuditLogBrowser.RESPONSE_SCHEMA;\n\n var dataTable = new YAHOO.widget.DataTable(\"audit-log-table\", AuditLogBrowser.COLUMN_DEFINITION, dataSource, AuditLogBrowser.configs);\n\n // ソート情報\n dataTable.subscribe(\"theadCellClickEvent\", function (oArgs) {\n var uiSortedBy = this.getState().sortedBy;\n delete uiSortedBy.column;\n AuditLogBrowser.configs.sortedBy = uiSortedBy;\n });\n\n },\n scope: this\n },\n failureCallback: {\n fn: function (res) {\n $('#download-audit-log').prop('disabled', true);\n $('#delete-audit-log').prop('disabled', true);\n $('#prev-page').prop('disabled', true);\n $('#next-page').prop('disabled', true);\n $('.alert.alert-danger.data-error').show();\n },\n scope: this\n }\n });\n}", "function viewAll () {\n connection.query(\"SELECT * FROM employee\", (err, res) => {\n if (err) throw err;\n console.table(res);\n restartProcess();\n });\n \n}", "function refetch() {\n try {\n TABLE_ID = PropertiesService.getScriptProperties().getProperty(\"TABLE_ID\");\n if (!TABLE_ID) {\n\n throw new Error(\"Add table ID under File > Project properties > Script Properties\");\n }\n }\n catch (e) {\n Logger.log(e.message);\n //Browser.msgBox(e.message);\n return;\n }\n if (!TABLE_ID) {\n Logger.log(\"no table ID\");\n }\n\n\n\n try {\n var tasks = FusionTables.Task.list(TABLE_ID);\n }\n catch (e) {\n Logger.log(e.message);\n //Browser.msgBox(e.message.toString());\n return;\n }\n\n if (tasks.totalItems == 0) {\n FusionTables.Table.refetchSheet(TABLE_ID);\n Logger.log(\"Done refetching!\");\n //Browser.msgBox(\"Done refetching!\");\n }\n else {\n Logger.log(\"Failed to refetch due to having tasks still running\");\n }\n}", "function refreshSummary() {\n getTraceSummary(minutes).then(function() {\n refreshTraceSummaryTable(minutes);\n });\n}", "function getLastEntries() {\n checkDept();\n var rowsToAdd = [];\n var route = \"/api/timesheets/limit=50/\" + deptURL;\n console.log(route);\n $.get(route, function (data) {\n for (var i = 0; i < data.length; i++) {\n var newEntry = {\n id: data[i].id,\n employee_id: data[i].employee_id,\n name: data[i].name,\n date: data[i].date,\n category: data[i].category,\n task: data[i].task,\n ecr: data[i].ecr,\n timespent: data[i].timespent,\n program: data[i].program,\n notes: data[i].notes,\n }\n // console.log(newEntry);\n rowsToAdd.push(newEntry);\n // console.log(rowsToAdd);\n }\n renderList(createRow(rowsToAdd));\n });\n }", "async myTask(data, msg, conn, ch, db) {\n\n\t\ttry\n\t\t{\n\t\t\tif (!data.authToken || !data.authToken.id || !data.authToken.app) {\n\t\t\t\tthrow Error(\"Must include authorization\");\n\t\t\t}\n\n\t\t\tif (!data.authToken.admin) {\n\t\t\t\tdata.filters.app = data.authToken.app;\n\t\t\t\tdata.filters.user_id = data.authToken.id;\n\t\t\t}\n\n\t\t\tlet rows = await DataRepository.drill_completionSummary(data, db);\n\n\t\t\t//console.log(` [x] Wrote ${JSON.stringify(rows)} to ${this.DbName + \".\" + c}`);\n\n\t\t\tch.ack(msg);\n\n\t\t\treturn rows;\n\t\t} catch (ex) {\n\t\t\tthis.logError(data, msg, ex);\n\t\t\tch.ack(msg);\n\t\t}\n\t}", "function recall() {\n for (i = 0; i < lastLog.length; i++) {\n $(\"#dataTable\")\n .find(\"tbody\")\n .append(\n $(\"<tr>\").append(\n $(\"<td>\").append([1 + i]),\n $(\"<td>\").append(lastLog[i].Time),\n $(\"<td>\").append(lastLog[i].Equipment),\n $(\"<td>\").append(lastLog[i].Temperature),\n $(\"<td>\").append(lastLog[i].Employee)\n )\n );\n }\n}", "function getHoursSummaryFailed(err) {\n vm.workingHours = false;\n vm.message = LOGBOOK_CONSTANT.MSG_HOURS_SUMMARY_GET_ERROR;\n }", "function update(row, status) {\r\n let errorId = parseInt(row.errorId)\r\n client.query(\r\n `UPDATE schedule_error SET status = '${status}' WHERE \"errorId\"= '${errorId}'`,\r\n (err, res) => {\r\n console.log(`UPDATE schedule_error SET status = '${status}' WHERE \"errorId\"= '${errorId}'`);\r\n if (err) {\r\n\r\n errorLog(err, 'rescheduling updation failed', 'Failed')\r\n }else {\r\n console.log('successfully updated');\r\n }\r\n }\r\n );\r\n}", "function fetchRunResults() {\n // Request URL for test runs\n var runAPI = testRailURL + \"/index.php?/api/v2/get_runs/\" + projectID + \"&milestone_id=\" + milestoneID;\n var params = setTestRailHeaders();\n\n // Proxy the request through the container server\n gadgets.io.makeRequest(runAPI, handleRunResponse, params);\n}", "function dataStatus() {\n Promise.props({\n etutor_org: mongoose.model('LogExt').count().execAsync(),\n etutor: mongoose.model('LogExt2').count().execAsync(),\n markov: mongoose.model('LogMarkov2').count().execAsync(),\n iwrm: mongoose.model('LogIWRM').count().execAsync()\n }).then(function(results) {\n console.log('***********************');\n console.log(results);\n console.log('***********************');\n }).catch(function(err) {\n console.log(err)\n res.send(500); // oops - we're even handling errors!\n });\n }", "backlogRecords(date){\n \n }", "function empDataCollection() {\r\n client.query('SELECT * from employees', (err, res) => {\r\n\r\n if (err) {\r\n errorLog(err, 'data fetching issue', 'Pending')\r\n } else {\r\n\r\n console.log('fetching email ids')\r\n res.rows.map(item => {\r\n //email validation\r\n if (mailformat.test(item.emailid.trim())) {\r\n email.push(item.emailid)\r\n } else {\r\n let err = 'Invalid email ' + item.emailid\r\n console.log(err);\r\n errorLog(err, 'email validation', 'Pending')\r\n\r\n }\r\n })\r\n\r\n\r\n\r\n }\r\n })\r\n}", "function fetchData() {\n var data,\n baseRow = 2,\n baseColumn = 1,\n dateNow = new Date(),\n today = dateNow.getDate() + \".\" + (dateNow.getMonth()+1) + \".\" + dateNow.getYear() + \":\" + dateNow.getHours(),\n sprintId = sheet.getRange(5, sprintInfoColumn).getValue();\n\n // Try and find the row in the spreadsheet for the current data\n while (sheet.getRange(baseRow, baseColumn).getValue() != \"\") {\n if (sheet.getRange(baseRow, baseColumn).getValue() == today) {\n break;\n }\n\n // not this row, try and next one\n baseRow++;\n }\n\n // Fetch the data from Trello and update the row\n data = getActiveSprintData(sprintId);\n sheet.getRange(baseRow, baseColumn + 1, 1, 7).setValues(data);\n}", "function getData(err, user) {\n //logger.debug(user);\n\n //get individual br asset report\n\n var _sql = \"SELECT a.machine as Machine,\\\n a.tacho as Tacho,\\\n a.site as Site,\\\n a.description as Description,\\\n a.order_number as OrderNumber,\\\n a.id_number as ID_Number,\\\n a.jlg_jobnumber as Job_Number,\\\n a.creation_date as Creation_Date,\\\n a.`mileage_e/w` as Mileage,\\\n a.job_status_idjob_status as Status_id,\\\n st.description as Status, \\\n a.finished as Finished,\\\n a.invoiced as Invoiced,\\\n a.idjob as DB_ID, \\\n a.priority as Priority, \\\n b.name as Customer,\\\n IF(c.stoptime IS NULL, 'Not Started', c.stoptime) as Last_Worked\\\n FROM job a \\\n JOIN job_status st \\\n ON st.idjob_status = a.job_status_idjob_status \\\n JOIN customer b \\\n ON b.idcustomer = a.customer_idcustomer\\\n LEFT JOIN (SELECT * FROM (SELECT stoptime, job_idjob FROM work_instance ORDER BY stoptime DESC) as temp GROUP BY job_idjob) as c\\\n ON c.job_idjob = a.idjob \\\n WHERE a.jlg_jobnumber = ?\";\n //logger.info(_sql);\n var _array = [req.params.job_number];\n mysql.query(_sql, _array, function(err2, rows) {\n if (!err2) {\n for (var i = 0; i < rows.length; i++) {\n\n if (rows[i]['Last_Worked'] != \"Not Started\") {\n var tempTime = new Date(rows[i]['Last_Worked']);\n logger.debug(tempTime);\n var tempTime2 = tempTime.toUTCString();\n // logger.debug(tempTime2);\n rows[i]['Last_Worked'] = tempTime2;\n }\n //logger.debug(rows[i]['Last_Worked']);\n }\n res.json(rows);\n\n } else {\n logger.debug('error:', err2);\n res.status(500).send(err);\n }\n })\n\n }", "function logs() {\n\t$.ajax({\n\t\turl \t: 'admin/getLogs',\n\t\ttype \t: 'post',\n\t\tdataType: 'json',\n\t\tsuccess : function(data) {\n\t\t\tvar html = '';\n\t\t\tfor (var i = 0; i < data.length; i++) {\n\t\t\t\thtml += '<tr>'+\n\t\t\t\t\t\t\t'<td>'+data[i].fac_fname+' '+data[i].fac_mname+' '+data[i].fac_lname+' <small><i>'+data[i].task+' '+data[i].file_title+' on '+data[i].log_date+'</i></small></td>'+\n\t\t\t\t\t\t'</tr>';\n\t\t\t}\n\t\t\t$('#all-logs').html(html);\n\t\t},\n\t\terror \t: function() {\n\t\t\talert('error: getLogs');\n\t\t}\n\t});\n}", "function cron() {\n console.log(`Updating db - ${new Date()}`);\n updateDb(payload)()\n .then((res) => console.log('sucess!'))\n .catch((err) => console.error(err));\n }", "function checkData(){\n var query3 = pool.query('select * from env_var;');\n query3\n .on('result', async function(row) {\n console.log(row)\n })\n}", "function fetchAllApiError(error) {\n i18nNotifications.pushForCurrentRoute('crud.default.error', 'warning');\n }", "function fetchAllApiError(error) {\n i18nNotifications.pushForCurrentRoute('crud.default.error', 'warning');\n }", "function onSchedulerRefreshNeeded() {\n calendar.refetchEvents();\n }", "function refreshMonitoringData() {\r\n var startDate = new Date();\r\n startDate.setHours(0, 0, 0, 0);\r\n var endDate = new Date();\r\n endDate.setHours(23, 59, 59, 999);\r\n\r\n getAnalysisData()\r\n .then(function (res, status, headers, config) {\r\n calPowerEfficiencyData(res.data.AnalysisData);\r\n refreshPowerEfficiencyPerDevice(res.data);\r\n refreshPowerEfficiencyPerDate(res.data);\r\n })\r\n .catch(function (e) {\r\n var newMessage = 'XHR Failed for getPowerData'\r\n if (e.data && e.data.description) {\r\n newMessage = newMessage + '\\n' + e.data.description;\r\n }\r\n\r\n e.data.description = newMessage;\r\n });\r\n}", "getData(id) {\n return new Promise((resolve, reject) => {\n const url = this.url + '/' + id;\n\n request.get(url, (err, response, body) => {\n if (err) {\n return reject(err);\n }\n if (!body) {\n return resolve([]);\n }\n\n const rows = _.compact(_.map(_.trim(body).split('\\n'), (rowString) => {\n const pieces = rowString.split(/\\s+/);\n const value = Number(pieces[1]);\n const timestamp = parseInt(pieces[2]);\n let anomalyScore = pieces[3];\n\n if (!value && !timestamp) {\n return null;\n }\n\n if (anomalyScore === 'None') {\n anomalyScore = undefined;\n } else {\n anomalyScore = Number(anomalyScore);\n }\n\n return {\n value,\n timestamp,\n anomalyScore\n };\n }));\n\n return resolve(rows);\n });\n });\n }", "async function getData() {\n var res = await get_all_reports();\n await SetEventReports(res.data.data);\n $(\"#eventReportTable\").dataTable();\n }", "function fetchRunResults() {\n // Request URL for test runs\n var runAPI = testRailURL + \"/index.php?/api/v2/get_runs/\" + projectList[plIndex][0];\n var params = setTestRailHeaders();\n\n // Proxy the request through the container server\n gadgets.io.makeRequest(runAPI, handleRunResponse, params);\n}", "issueQueries(datasource) {\n this.updateTimeRange();\n\n //console.log('block issueQueries', datasource);\n }", "function refreshData() {\n DailyInOutReportService.GetInOutDetailsOfEmployee($scope.timeZone, $scope.filterData.date, $scope.EmpData.EmployeeId).then(function (result) {\n $scope.EmployeeInOutDetailList = result.data.DataList;\n })\n }", "doFetchLastLogChunk() {\n // if the FSM is not in a terminal state, stop the log fetch\n // and get the latest logs\n if (!Jobs.isTerminalStatus(this.fsm.getCurrentState().state.mode)) {\n this.doStopLogs();\n this.requestLatestJobLog();\n }\n this.getLogPanel().scrollTo(0, this.getLastLogLine().offsetTop);\n }", "function runOrder() {\n connection.query(\"SELECT * FROM orders\", function(err, res) {\n if (err) throw err;\n var lastindex = res.length - 1;\n \n var ordertime = moment.unix(res[lastindex].processed).format(\"YYYY-MM-DD HH:mm\");\n console.table(res[lastindex]);\n console.log(\"Order: \" + res[lastindex].ord_number + \" | Item#/Desc: \" + res[lastindex].item + \" \" + res[lastindex].product + \" | Price: \" + res[lastindex].price + \" | Qty: \" + res[lastindex].qty + \" | Sale Amt: \" + res[lastindex].total_sale + \" | \" + ordertime);\n\n runList();\n });\n}", "__downloadData() {\n return axios.get(`http://${this.address}.edupage.org/timetable/`)\n .then(res => regex.exec(res.data))\n .then(data => JSON.parse(data[1]))\n .then(data => data.changes.reduce((obj, { table, rows }) => ({\n ...obj,\n [table]: (\n table == 'classes' ||\n table == 'classrooms' ||\n table == 'lessons' ||\n table == 'subjects'\n )? arr2obj(rows): rows\n })))\n }", "function refreshLog() {\n $firebaseArray(teamLogRef.orderByKey()).$loaded(function (data) {\n self.teamLog = data;\n });\n }", "function errorlogging(err) \r\n{\r\n\talert(\"Error processing SQL: Main err\"+err.code);\r\n}", "async index(ctx) {\n const { request, response } = ctx\n\n try {\n const q = await GetRequestQuery(ctx)\n const redisKey = `ErrorLog_${q.redisKey}`\n let cached = await RedisHelper.get(redisKey)\n\n if (cached && !q.search) {\n console.log(redisKey)\n return cached\n }\n\n const data = await ErrorLog.query()\n .where(function() {\n if (q.search && q.search != \"\") {\n this.where(\"from\", \"like\", `%${q.search}%`)\n this.orWhere(\"resource\", \"like\", `%${q.search}%`)\n this.orWhere(\"action\", \"like\", `%${q.search}%`)\n }\n\n if (q.search_by && q.search_query) {\n this.where(q.search_by, q.search_query)\n }\n\n if (q.between_date && q.start_date && q.end_date) {\n this.whereBetween(q.between_date, [q.start_date, q.end_date])\n }\n })\n .orderBy(q.sort_by, q.sort_mode)\n .paginate(q.page, q.limit)\n\n let parsed = ResponseParser.apiCollection(data.toJSON())\n\n if (!q.search || q.search == \"\") {\n await RedisHelper.set(redisKey, parsed)\n }\n return response.status(200).send(parsed)\n } catch (e) {\n console.log(\"e\", e)\n }\n }", "function _reportError(err){\n console.log(\"Mysql \"+ err);\n}", "function getAllLogEntries(worker) {\n var logEntries = datastore.readLogEntries();\n worker.port.emit(\"LogEntriesLoaded\", logEntries);\n}", "processLog(results,operation) {\n if (results[0].logRecords !== null) {\n const log = JSON.parse(results[0].logRecords)\n super.processLog(log, operation, this.status, this.yadamuLogger)\n return log\n }\n else {\n return null\n }\n }", "function fetchRowsFromRS(connection, resultSet, numRows, audit)\n{\n console.log('>>>>> Start Processing results from Query of F556110 <<<<<');\n resultSet.getRows( numRows, function(err, rows)\n {\n \tif (err)\n\t{\n \tresultSet.close(function(err)\n\t\t{\n\t\t\tif (err)\n\t\t\t{\n\t\t\t\tconsole.log(err.message);\n\t\t\t\tconnection.release(function(err)\n\t\t\t\t{\n\t\t\t\t\tif (err) { console.log(err.message); }\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n \t} else if (rows.length == 0)\n\t{\n\t\tresultSet.close(function(err)\n\t\t{\n\t\t\tif (err)\n\t\t\t{\n\t\t\t\tconsole.log(err.message);\n\t\t\t\tconnection.release(function(err)\n\t\t\t\t{\n\t\t\t\t\tif (err) { console.log(err.message); }\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t} else if (rows.length > 0)\n\t{\n\n\t\t// Query read has returned a record so we have a valid eligible PDF file to process\n\n\t\tvar record = rows[0];\n\n\t\t// Multiple pdfhandler processes could be running so need to establish exclusive rights to \n\t\t// process this PDF file - if not simply move onto next eligible PDF file to process.\n\n\t\tlock.gainExclusivity(record, hostname, connection, processLockedPdfFile);\t\t\n\t\t\n\t\t// Read next record \n\n \tfetchRowsFromRS(connection, resultSet, numRows, audit);\n\t}\n });\n}", "function loadData() {\n consolidatedresults.loaded = false;\n dataService.getConsolidatedResults()\n .then(function(response) {\n //handle the success condition here\n var data = response.data;\n consolidatedresults.realdata = data[0];\n consolidatedresults.col_names = data[1];\n consolidatedresults.loaded = true;\n // console.log(consolidatedresults.realdata);\n // console.log(consolidatedresults.col_names);\n });\n }", "function allEmployees() {\n //Build SQL query\n var query = \"SELECT employees.employee_id, employees.first_name, employees.last_name, roles.title, roles.salary, departments.department_name \";\n query += \"FROM employees LEFT JOIN roles ON employees.role_id = roles.role_id LEFT JOIN departments ON roles.department_id = departments.department_id\";\n connection.query(query, function (err, res) {\n if (err) throw err;\n console.table('Employees', res);\n start();\n });\n}", "requestLatestJobLog() {\n this.state.scrollToEndOnNext = true;\n this.ui.showElement('spinner');\n this.state.awaitingLog = true;\n this.bus.emit(jcm.MESSAGE_TYPE.LOGS, {\n [jcm.PARAM.JOB_ID]: this.jobId,\n latest: true,\n });\n }", "function axiosGetAllLeaderboardResults() {\n axios\n .get(dataSource)\n .then((response) => {\n setLeaderboardData(response.data);\n })\n .catch(function (error) {\n console.log('🥺 leaderboard unavailable');\n console.log('axiosGetAllLeaderboardResults() error:', error);\n setLeaderboardServerDown(true);\n });\n }", "displayAllDepartments()\n {\n const sql = \"SELECT * FROM departments ORDER BY id\";\n \n this.db.promise().query(sql)\n .then( ([rows]) => {\n\n //log a line break and then a table with data\n console.log(\"\");\n console.table(rows);\n\n //rerun the main application loop\n this.runApplication();\n })\n .catch( err => {\n //catch the error, display the error message and restart the loop\n console.log(`\\nError: ${err.message}\\n`);\n this.runApplication();\n });\n }", "function failedCb(){\n\t\t\t\tdbm.updateJobFailed(uuid, function(err, rows, fields){\n\t\t\t\t\tif(err) log.error('update status error:', err);\n\n\t\t\t\t\tdbm.loadJobById(uuid, function(err, rows, fields){\n\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\tlog.error('load job by id:%s error', uuid, err);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//delete job first\n\t\t\t\t\t\tlog.warn('delete job first...');\n\t\t\t\t\t\tdelete jobpool[uuid];\n\t\t\t\t\t\tlog.warn('query result:%s ', rows.length, rows);\n\t\t\t\t\t\tif(rows.length > 0 && rows[0].retry_times < rows[0].retry_max) {\n\t\t\t\t\t\t\tlog.warn('re-insert job...');\n\t\t\t\t\t\t\tlog.warn('retry_times:%s, retry_max:%s, retry_interval:%s', \n\t\t\t\t\t\t\t\trows[0].retry_times, rows[0].retry_max, rows[0].retry_interval);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar newRetryInterval = new Date( jobtime.getTime() + rows[0].retry_interval * 1000 )\n\t\t\t\t\t\t//if(retry_times >= retry_max)\n\t\t\t\t\t\t\tinitJobFromDb(jobid, jobname, jobtime, catg, opts, \n\t\t\t\t\t\t\t\trows[0].retry_max, rows[0].retry_times , cron_job, job_endtime, retry_interval);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t}", "async handleMessage({taskId, deadline, remove}) {\n // Query for entity for which we have exact rowKey too, limit to 1, and\n // require that deadline matches. This is essentially a conditional load\n // operation\n var {entries: [task]} = await this.Task.query({\n taskId: taskId, // Matches an exact entity\n deadline: deadline // Load conditionally\n }, {\n matchRow: 'exact', // Validate that we match row key exactly\n limit: 1 // Load at most one entity, no need to search\n });\n\n // If the task doesn't exist, we'll log and be done, it's an interesting\n // metric that's all\n if (!task) {\n debug(\"[not-a-bug] Task doesn't exist, taskId: %s, deadline: %s\",\n taskId, deadline.toJSON());\n return remove();\n }\n\n // Check if this is the deadline we're supposed to be resolving for, if\n // this check fails, then the conditional load must have failed so we should\n // alert operator!\n if (task.deadline.getTime() !== deadline.getTime()) {\n debug(\"[alert-operator] Task deadline doesn't match deadline from \" +\n \"message, taskId: %s, task.deadline: %s, message.deadline: %s \",\n taskId, task.deadline.toJSON(), deadline.toJSON());\n return remove();\n }\n\n // Ensure that all runs are resolved\n await task.modify((task) => {\n // If there is no run, we add a new one to signal that the task is\n // resolved. As this run is purely to signal an exception, we set\n // `reasonCreated: 'exception'`.\n if (task.runs.length === 0) {\n var now = new Date().toJSON();\n task.runs.push({\n state: 'exception',\n reasonCreated: 'exception',\n reasonResolved: 'deadline-exceeded',\n scheduled: now,\n resolved: now\n });\n }\n\n task.runs.forEach((run, runId) => {\n // don't modify resolved runs\n if (_.includes(RESOLVED_STATES, run.state)) {\n return;\n }\n\n // If a run that isn't the last run is unresolved, it violates an\n // invariant and we shall log and error...\n if (task.runs.length - 1 !== runId) {\n debug(\"[alert-operator] runId: %s, isn't the last of %s, but \" +\n \"isn't resolved. run info: %j\", runId, taskId, run);\n }\n\n // Resolve run as deadline-exceeded\n run.state = 'exception';\n run.reasonResolved = 'deadline-exceeded';\n run.resolved = new Date().toJSON();\n });\n\n // Clear takenUntil, for ClaimResolver\n task.takenUntil = new Date(0);\n });\n\n // Publish messages about the last run if it was resolved here\n var run = _.last(task.runs);\n if (run.reasonResolved === 'deadline-exceeded' &&\n run.state === 'exception') {\n debug(\"Resolved taskId: %s, by deadline\", taskId);\n await this.publisher.taskException({\n status: task.status(),\n runId: task.runs.length - 1\n }, task.routes);\n }\n\n return remove();\n }", "function getLastExecutionsLogs() {\n\t\t\n\t\t$(\"#execLogsContainer\").empty();\n\n\t\t$.ajax({\n\t\t\ttype: \"GET\",\n\t\t\turl: \"/getLastExecutionsLogs\",\n\t\t\tcontentType: \"application/json\",\n\t\t\tdataType: \"json\"\n\t\t})\n\t\n\t\t.done(function(d) {\n\n\t\t\t$.each(d.execLogs, function(idx, val){\n\t\t\t\tif (val.date_log == \"0\" && val.sigmaRule_log == \"0\" && val.matches_log == \"0\") {\n\t\t\t\t\t$(\"#execLogsContainer\").append('<b style=\"font-size:15px;color:black;\">'+\"0 rules executed today.\"+'</b>'+'</br>');\n\t\t\t\t} else if (val.matches_log == \"0\") {\n\t\t\t\t\t$(\"#execLogsContainer\").append('<b style=\"font-size:15px;color:green;\">'+val.date_log+\" : \"+val.sigmaRule_log+\" => \"+val.matches_log+\" matches. \"+val.logfile_log+'</b>'+'</br>');\n\t\t\t\t} else if (val.matches_log == \"Unsupported\") {\n\t\t\t\t\t$(\"#execLogsContainer\").append('<b style=\"font-size:15px;color:orange;\">'+val.date_log+\" : \"+val.sigmaRule_log+\" => \"+val.matches_log+\". Check rule. \"+val.logfile_log+'</b>'+'</br>');\n\t\t\t\t} else if (parseInt(val.matches_log) >= 100) {\n\t\t\t\t\t$(\"#execLogsContainer\").append('<b style=\"font-size:15px;color:red;\">'+val.date_log+\" : \"+val.sigmaRule_log+\" => \"+val.matches_log+\" matches. Check alerts, possible False Positives. \"+val.logfile_log+'</b>'+'</br>');\n\t\t\t\t} else {\n\t\t\t\t\t$(\"#execLogsContainer\").append('<b style=\"font-size:15px;color:red;\">'+val.date_log+\" : \"+val.sigmaRule_log+\" => \"+val.matches_log+\" matches. Check alerts. \"+val.logfile_log+'</b>'+'</br>');\n\t\t\t\t}\n\t\t\t});\t\n\n\t\t})\n\t\n\t\t.fail(function(d) {\n\t\t\tconsole.log(\"getLastExecutionsLogs - fail!\")\n\t\t});\n\t}", "logQueryError(error) {\n if (this.options.logFailedQueryError /*|| process.env.LOGGER_CLI_SCHEMA_SYNC*/)\n this.log(\"error\", \"error during executing query:\" + error);\n }", "function displayQueryLogs() {\n\t\t\t$scope.queryLogsBusy = true;\n\t\t\tdisplayLogsTimeout = $timeout(function() {\n\t\t\t\tvar queryLogsStamp=lastLogStamp;\n\t\t\t\tjawsService.getQueryLogs(curQueryId,lastLogStamp,CONFIG.LOGS_PER_PAGE)\n\t\t\t\t\t.then(function(response) {\n\t\t\t\t\t\tvar logsNum = response.logs.length;\n\t\t\t\t\t\t//remove first log as we already processed it in last request\n\t\t\t\t\t\tif (queryLogsStamp!==0)\n\t\t\t\t\t\t\tresponse.logs.shift();\n\t\t\t\t\t\t\n\t\t\t\t\t\taddLogs(response.logs);\n\t\t\t\t\t\tif (logsNum >= CONFIG.LOGS_PER_PAGE) \n\t\t\t\t\t\t\tdisplayQueryLogs();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$scope.queryLogsBusy = false;\n\t\t\t\t\t});\n\t\t\t\t},10);\n\t\t\t\n\t\t}", "function logUserHostMaintainDetails() {\n if (createMaintenanceScheduleReq.readyState == 4) {\n\n var createMaintenanceScheduleReqdbData = JSON.parse(showErrorCreate(createMaintenanceScheduleReq.responseText, \"Error Found\"));\n\n if (Object.entries(createMaintenanceScheduleReqdbData).length != 0) {\n\n\n\n var scheduleId = document.getElementById(\"selectSchedule\").value;\n var selectedSite = document.getElementById(\"selectSite\").value;\n var selectedHost = document.getElementById(\"selectAgent\").value;\n\n // var selectedAgent = document.getElementById(\"selectAgent\").value;\n var selectedService = document.getElementById(\"selectService\").value;\n var selectedSource = document.getElementById(\"selectSource\").value;\n\n\n var currentUser;\n var userProfileID = \"\";\n var dateNow;\n\n // var remoteVodaEXT = \"?remotehost=https://41.0.203.210:8443/InovoCentralMonitorClient/MonitorData&action=runopenquery&query=\";\n\n\n var newUserId;\n\n var dbData = JSON.parse(showErrorMain(userManagementProfileReq.responseText, \"Error Found\"));\n\n\n var userProfileData = JSON.parse(showErrorMain(userProfilereq.responseText, \"Error Found\"));\n if ((Object.entries(dbData).length != 0) && (Object.entries(userProfileData).length != 0)) {\n var userDetails = dbData['queryresult'];\n var userProfile = userProfileData['UserInfo'];\n currentUser = userProfile['userLogin']\n for (var iAlarm = 0; iAlarm < userDetails.length; iAlarm++) {\n\n var rowData = userDetails[iAlarm];\n if (currentUser == rowData['userlogin']) {\n userProfileID = rowData['id'];\n }\n }\n\n // // --------------------------------------------------------------------------------------------------------------------------------------------------\n // // UPDATE USER LOG\n // // -------------------------------------------------------------------------------------------------------------------------------------------------- \n var updateReason = createUserLogReasonForHostMaintenance(scheduleId, selectedSite, selectedHost, selectedService, selectedSource);\n // var query = \"SELECT * FROM InovoMonitor.tblAlarms;\"\n\n dateNow = new Date();\n dateNow = dateNow.getFullYear() + '-' +\n ('00' + (dateNow.getMonth() + 1)).slice(-2) + '-' +\n ('00' + dateNow.getDate()).slice(-2) + ' ' +\n ('00' + dateNow.getHours()).slice(-2) + ':' +\n ('00' + dateNow.getMinutes()).slice(-2) + ':' +\n ('00' + dateNow.getSeconds()).slice(-2);\n\n var insertLogquery = \"INSERT INTO InovoMonitor.tblUserLog (userid, reason, datecreated, createdby) VALUES ('\" + userProfileID + \"','\" + String(updateReason) + \"', '\" + dateNow + \"','\" + currentUser + \"');\";\n\n\n\n createHMUserlogReq.open(\"POST\", serverURL + \"/MonitorData\", true);\n createHMUserlogReq.onreadystatechange = completeHostMaintain;\n createHMUserlogReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\n createHMUserlogReq.send(\"action=runopenquery&query=\" + insertLogquery);\n }\n\n\n }\n }\n // else {\n // //set variables \n // var newScheduleName = document.getElementById(\"selectSchedule\").value;\n // var selectedSite = document.getElementById(\"selectSite\").value;\n // var selectedHost = document.getElementById(\"selectAgent\").value;\n\n // //set time \n // var toastDelayTime = 10000;\n // // set title\n // var toastTitle = \"ERROR!HOST MAINTENANCE SCHEDULE CREATION COMPLETE!\";\n // //Set Message\n // var toastMessage = \"FAILED to set the Schedule: \" + newScheduleName + \", for the Site: \" + selectedSite + \", Host: \" + selectedHost + \". Please Contact Inovo for assistance. \";\n\n // //set objects\n // var toastPopup = document.getElementById(\"mainPageToastAlert\");\n // var toastTITLEObj = document.getElementById(\"toastTitle\");\n // var toastMSGObj = document.getElementById(\"toastMessage\");\n\n\n // // run toast \n // toastPopup.setAttribute(\"data-delay\", toastDelayTime);\n // toastTITLEObj.innerHTML = toastTitle;\n // toastMSGObj.innerHTML = toastMessage;\n // $(function () { $('#mainPageToastAlert').toast('show'); });\n // }\n\n\n}", "function readFromTable() {\n var conn = Jdbc.getCloudSqlConnection(dbUrl, user, userPwd);\n\n var start = new Date();\n var stmt = conn.createStatement();\n stmt.setMaxRows(1000);\n var results = stmt.executeQuery('SELECT * FROM entries');\n var numCols = results.getMetaData().getColumnCount();\n\n while (results.next()) {\n var rowString = '';\n for (var col = 0; col < numCols; col++) {\n rowString += results.getString(col + 1) + '\\t';\n }\n Logger.log(rowString);\n }\n\n results.close();\n stmt.close();\n\n var end = new Date();\n Logger.log('Time elapsed: %sms', end - start);\n}", "function refreshSourceDatas() {\n sourceDataService.findSourceData(\"\").then(\n // Success\n function(response) {\n sourceDatas = response.sourceDatas;\n refreshSourceDataTable();\n });\n }", "function DB(){\n\tfunction loadHour(){\n\t\tvar logJson = JSON.parse((fs.readFileSync(\"ping-log.json\",{encoding:\"UTF-8\"}) + \"]}\"));\n\t\t\tfor(var i = 0;i < logJson.logs.length;i=i){\n\t\t\t\tif(logJson.logs[i].t < (new Date().getTime() - 1000*60*60))\n\t\t\t\t\tlogJson.logs.splice(i,1);\n\t\t\t\telse //it should have reached the end of too old updates\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\treturn logJson;\n\t}\n\t\n\treturn {\n\t\tloadHour:loadHour\n\t}\n}", "function getAircraftSummaryFailed(err) {\n vm.message = LOGBOOK_CONSTANT.MSG_AIRCRAFT_SUMMARY_GET_ERROR;\n vm.workingAircraft = false;\n }", "function queryJdeAuditLog(connection) \n{\n\n\tvar query = \"SELECT paupmj, paupmt, pasawlatm FROM testdta.F559859 ORDER BY pasawlatm DESC\";\n\n\tconnection.execute(query, [], { resultSet: true }, function(err, result) \n\t{\n\t\tif (err) { console.log(err.message) };\n\t\tfetchRowsFromJdeAuditLogRS( connection, result.resultSet, numRows, audit );\t\n\t}); \n}", "async function main(rssk, rsCode, prevDays = 0, nextDays = 0) {\n const startDate = addDays(prevDays);\n const stopDate = addDays(nextDays);\n const pool = new sql.ConnectionPool(sqlConfig);\n try {\n await pool.connect();\n console.log('Connected to WfmData');\n } catch (err) {\n console.log('Could not connect to WfmData');\n console.log(err.stack);\n return;\n }\n console.log(\n `importing idps for ${rsCode} from between ${startDate.toLocaleString()} and ${stopDate.toLocaleString()}`\n );\n try {\n let idpList = await getIdpList(rssk, prevDays, nextDays);\n let idpDetails = getIdpListData(idpList);\n for (let i = 0; i < idpDetails.ForGrp.length; i++) {\n let idpFgData = await getIdpFgData(\n idpDetails.ForGrp[i].idpSk,\n idpDetails.ForGrp[i].fgsk\n );\n await importFgData(\n pool,\n idpFgToString(idpFgData, idpDetails.ForGrp[i].idpSk)\n );\n }\n for (let i = 0; i < idpDetails.StfGrp.length; i++) {\n let idpSgData = await getIdpSgData(\n idpDetails.StfGrp[i].idpSk,\n idpDetails.StfGrp[i].sgsk\n );\n await importSgData(\n pool,\n idpSgToString(idpSgData, idpDetails.StfGrp[i].idpSk)\n );\n }\n } catch (er) {\n console.log('An error occurred: ' + er);\n console.log(er.stack);\n } finally {\n await pool.close();\n console.log('Closed connection to WfmData');\n }\n}", "function viewAllEmployees() {\n const query = \"SELECT employee.id, employee.first_name, employee.last_name, role.title, department.department_name AS department, role.salary FROM employee LEFT JOIN role ON employee.role_id = role.id LEFT JOIN department on role.department_id = department.id\";\n db.query(query, function (err, res) {\n console.table(res);\n startTracker();\n });\n}", "refreshData() {\n if (!this.refreshUrl) {\n return;\n }\n Csv.parseUrl(proxyCatalogItemUrl(this, this.refreshUrl), true, this.ignoreRowsStartingWithComment).then(dataColumnMajor => {\n runInAction(() => {\n if (this.polling.shouldReplaceData) {\n this.dataColumnMajor = dataColumnMajor;\n }\n else {\n this.append(dataColumnMajor);\n }\n });\n });\n }", "function submitTableRow(data) {\n $.post(\"/api/timesheets\", data)\n .then(getLastEntries);\n }", "update() {\n this.$table = $(this._tableSelector);\n\n if (this.$table.length === 0) {\n return;\n //throw new Error(`The log table with selector \"\" does not exists.`);\n }\n\n this.$checkboxes = this.$table.find('input[name=\"ids[]\"]');\n this.$selectAllCheckbox = this.$table.find('input[name=\"select-all-logs\"]');\n this.$selectedRow = null;\n\n this._registerEvents();\n }", "reloadCurrentRow() {\n loadAllRows().then((response) => this.receiveData(this.currentRowIndex, response));\n }", "function ticketUpdateScrapeController() {\n\n return new Promise( async(resolve, reject) => {\n\n try { \n\n const updatedData = await updated_data();\n\n const chunkedData = await chunkQueries(5, updatedData);\n\n const ticketToBeUpdated = [];\n\n const data = await chunkedData.reduce( async(accumulator, currentValue) => {\n\n const accum = await accumulator;\n\n const arrFuncs = currentValue.reduce((acc, curVal) => {\n\n ticketToBeUpdated.push(curVal.tckt_nmbr);\n\n return [...acc, scrapeTicketData(curVal.tckt_nmbr)];\n\n }, []);\n\n const result = await Promise.all(arrFuncs);\n\n const scrapeFuncs = result.reduce((acc, curVal) => {\n\n return [...acc, workNotedataScraper(curVal)];\n\n }, []);\n\n const extractedData = await Promise.all(scrapeFuncs);\n\n const spreadedData = extractedData.reduce((cur, val) => {\n\n return [...cur, ...val];\n \n }, []);\n\n return [...accum, ...spreadedData];\n\n }, Promise.resolve([]));\n\n await removeOldUpdateLogs(ticketToBeUpdated); \n\n await insertTicketUpdateLogs(data);\n\n resolve();\n \n } catch (error) {\n\n logger.error(error, 'An issue occured in workNoteDataScraper function');\n \n reject();\n\n }\n\n })\n\n}", "function refresh() {\n refreshBulkImport();\n}", "function updateJobLogs(){\n getPendingJobsLog()\n .then(res=>{\n // console.log('pending joblogs ---------------------\\n',res)\n if(res && res.length > 0){\n res.forEach(async (item)=>{\n // console.log('item',item);\n let objJobStatus = await getJobsStatus(item);\n // console.log('objJobStatus ---',objJobStatus);\n if(objJobStatus.status == 'Completed'){\n var PageLink = `${FrontendUrl}TeamAdmin/team/players/${objJobStatus.organization}/${objJobStatus.team}?brand=`;\n PageLink = encodeURI(PageLink);\n var address = item.email;\n var body = `Hi There,\\n\\nYour simulations have been completed. Please check them out here:\\n${PageLink}\\n\\nKeep Computing!\\nThe nsfcareer.ioTeam`;\n var subject = \"Your BrainSims are complete!\";\n var mailStatus = await sendMailToUser(address, body, subject);\n // console.log('mailStatus',mailStatus);\n if(mailStatus.message == \"Success\"){\n updateJobStatus(item.created);\n // Finish...\n }\n }\n })\n }\n }).catch(err=>{\n console.log('err job logs ----------\\n',err)\n })\n }", "function connectingMail(){\r\n client.query('select * from scheduler_table', (err, res) => {\r\n if(err){\r\n errorCatch(err.message, \"ConnectionError\", \"Pending\");\r\n }else{\r\n var mailformat = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{​​​​​​​​|}​​​​​​​​~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$/;\r\n res.rows.map(rowsVal => {\r\n errorMail = [''];\r\n \r\n //email validation \r\n errorMail = process.env.mail_strVal + rowsVal.emailid;\r\n if (err == null && mailformat.test(rowsVal.emailid.trim())) {\r\n for (let i = 0; i < res.rows.length; i++) {\r\n emailVal[i] = res.rows[i].emailid\r\n\r\n }\r\n mailSend(emailVal)\r\n } else {\r\n errorCatch(errorMail, \"emailValidationError\",\"Pending\");\r\n }\r\n })\r\n }\r\n })\r\n}", "function fetchLookupTableDetail() {\n\tvar i = lookupTablesConfig.itemIndex;\n\tajaxGet(lookupTablesConfig.items[i].uri, 'processLookupTableDetail','ajaxError');\n}", "async function getAllPastGames(){\n let data ={games:\"\",eventLogs:\"\"};\n const currentDate = new Date();\n const timestamp = currentDate.getTime(); \n const past_games = await DButils.execQuery(\n `SELECT * FROM dbo.Games WHERE game_timestamp < '${timestamp}' `\n );\n past_games.sort(function(first, second) {\n return first.game_timestamp - second.game_timestamp;\n });\n let logs = [];\n past_games.forEach(async (g)=> {\n const log = await getEventLog(g.game_id);\n if(log.length>0){\n logs.push(log);\n }\n })\n data.games = past_games;\n data.eventLogs = logs;\n return data;\n}", "function gotAllData(err) {\n console.log(\"gotAllData()\");\n // report an error, you’d want to do something better than this in production\n if (err) {\n console.log(\"error loading data\");\n console.error(err);\n return;\n }\n // call function to show the data\n showData();\n}", "function refreshData() {\n\t\tlistTasks({ category });\n\t\tlistTodayTasks({ category });\n\t}", "function loadDataProc(date) {\n //ngProgress.start();\n $scope.showError = false;\n $scope.errorMsg = \"\";\n var dataInfo = {\n SystemName: $scope.System,\n SystemSerial: $scope.SystemSerial,\n CPUNum: $scope.CPUNum,\n ProcessName: $scope.ProcessName,\n Pin: $scope.Pin,\n FileName: $scope.FileName,\n StartTime: date / 1000\n };\n apiService.loadFileTableData(dataInfo).then(function (result) {\n $scope.dataset = result;\n });\n\n }", "function viewAllEmployees() {\n db.query(employeeQuery, function (err, res) {\n if (err) throw err;\n console.log(\n \"---------------------------------------------------------------------------------------------------------------------------------------\"\n );\n console.table(res);\n console.log(\n \"---------------------------------------------------------------------------------------------------------------------------------------\"\n );\n start();\n });\n}", "function fetchLogs(root, msg, callback) {\n const number = msg.number;\n const logfile = msg.logfile;\n const serverId = msg.serverId;\n const filePath = path.join(root, getLogFileName(logfile, serverId));\n\n const endLogs = [];\n exec(`tail -n ${number} ${filePath}`, (error, output) => {\n const endOut = [];\n output = output.replace(/^\\s+|\\s+$/g, '').split(/\\s+/);\n\n for (let i = 5; i < output.length; i += 6) {\n endOut.push(output[i]);\n }\n\n const endLength = endOut.length;\n for (let j = 0; j < endLength; j++) {\n const map = {};\n let json;\n try {\n json = JSON.parse(endOut[j]);\n } catch (e) {\n logger.error(`the log cannot parsed to json, ${e}`);\n continue; // eslint-disable-line\n }\n map.time = json.time;\n map.route = json.route || json.service;\n map.serverId = serverId;\n map.timeUsed = json.timeUsed;\n map.params = endOut[j];\n endLogs.push(map);\n }\n\n callback({ logfile: logfile, dataArray: endLogs });\n });\n}", "readActiveData(params, division_db, token) {\n const self = this;\n const deferred = Q.defer();\n // const sql = ` use [${division_db}]; select dbo.employee.*,dbo.employee.StatusDate as HireDate,dbo.employee.InactiveDate as TermDate, dbo.employee.className as Country,dbo.classification.Description as Class,\n // paychexID as paychexID,MiddleInit as MiddleInitial,independentContractor as IndependentContractor,doNotRehire as DoNotRehire,str_Gender as Gender\n // from dbo.employee\n // LEFT JOIN dbo.classification ON dbo.employee.ClassificationID=dbo.classification.ClassificationID `;\n\n const sql = ` use [${division_db}]; select dbo.employee.*,dbo.employee.StatusDate as HireDate,dbo.employee.InactiveDate as TermDate, dbo.employee.className as Country,dbo.classification.Description as Class,\n paychexID as paychexID,MiddleInit as MiddleInitial,independentContractor as IndependentContractor,doNotRehire as DoNotRehire,str_Gender as Gender, str_reason as Reason\n from dbo.employee\n LEFT JOIN dbo.classification ON dbo.employee.ClassificationID=dbo.classification.ClassificationID where NOT str_reason='TERMINATED' and Status='A' `;\n\n self.db\n .request()\n .query(sql)\n .then(result => {\n deferred.resolve(result.recordset);\n })\n .catch(err => {\n console.trace(err); // todo : will do to logger later\n deferred.reject(err);\n });\n return deferred.promise;\n }", "function findErrHandler(error, result) {\n\tif (error) {\n\t\tlog(\"cannot find data\")\n\t\tthrow error\n\t} else {\n\t\tlog(result) \n\t}\n}", "function viewAllTerminatedEmployees(conn, start) {\n conn.query(`${qry_standardEmpList}\n WHERE e.active = false\n ORDER BY e.first_name;`, (err, results) => {\n if (err) throw err;\n console.table(results);\n start();\n });\n }", "function loadDataIntoTables()\n{\n\t// Get the issue\n\tvar issue = viewFeedbackDataLoader.getIssue();\n\n\t// Show the issue no\n\t$(\"#issueNumberPanelTitle\").text(\"Feedback #: \" + issue.get(\"feedbackNumber\"));\n\n\t// Show Last Updated\n\tvar lastUpdatedDate = issue.updatedAt;\n\t$(\"#lastUpdatedPanelTitle\").text(\"Last Updated: \" + lastUpdatedDate.toLocaleDateString());\n\n\t// Show reporter username\n\t$(\"#inputReporterUsername\").val(issue.get(\"username\"));\n\n\t// Show reporter email\n\t$(\"#inputReporterEmail\").val(issue.get(\"userEmail\"));\n\n\t// Show the content\n\t$(\"#contentField\").val(issue.get(\"feedbackText\"));\n}", "handleRdsRequestSuccess() {\r\n return refreshApex(this.refreshTable);\r\n }", "function viewEmployees(){\n // Select all data from the departmenets table\n connection.query(`SELECT * FROM employee_table`, (err, res) => {\n // If error log error\n if (err) throw err;\n // Display the data in a table format...\n console.table(res);\n // Run the task completed function\n taskComplete();\n })\n }", "doFetchFirstLogChunk() {\n // check the FSM state\n // if the job is still queued or running, stop the current log fetch and get logs.\n if (!Jobs.isTerminalStatus(this.fsm.getCurrentState().state.mode)) {\n this.doStopLogs();\n this.requestJobLog(0);\n }\n this.getLogPanel().scrollTo(0, 0);\n }", "getLastWeightLogs(email) {\n return new Promise(function (resolve, reject) {\n let sql = `SELECT \n email, date, weight, height, bmi, bmi_class \n FROM weight_log \n WHERE email=?\n ORDER BY rowid DESC`;\n db.all(sql, [email], (err, rows) => {\n if (err) {\n reject(Error(\"Error:\" + err.message));\n }\n resolve({\n email: rows[0].email,\n date: rows[0].date,\n weight: rows[0].weight,\n height: rows[0].height,\n bmi: rows[0].bmi,\n bmiClass: rows[0].bmi_class,\n });\n });\n });\n }", "async retrieveLogs(opts = {}) {\n const logs = this._logDb.iterator({ limit: -1, ...opts }).collect();\n\n const parsedLogs = logs.map(l => l.payload.value);\n parsedLogs.sort((a, b) => {\n const v1 = a._timestamp;\n const v2 = b._timestamp;\n\n if (v1 > v2) return 1;\n if (v2 > v1) return -1;\n return 0;\n }, []);\n\n return parsedLogs;\n }", "getScheduleFromDB() {\n return idbKeyval.get(\"schedule\").catch(err => console.err(err));\n }", "function processErrorResult(e) {\n /*let rep = {\n start: start,\n end: end,\n duration: (end-start)*1000,\n error: e\n }*/\n setBindings(undefined)\n setReport({error: e})\n }", "initialFetch() {\n this.fetchData({type: \"INITIAL_TABLE_DATA_FETCH\"})\n }", "async function fetchData(){\r\n\t//we'll hold the feed in feed\r\n\tlet feed;\r\n\t//fetch the text feed from our local copy\r\n\tawait fetch(\"/feed\")\r\n\t\t.then(response => response.json())\r\n\t\t.then(data => {feed = data.feed});\r\n\t//split to arr by lines\r\n\tmodbusValues = feed.split(\"\\n\");\r\n\t//store the date from first row\r\n\tserverLastUpdate = new Date(modbusValues[0]).toString();\r\n\tclientLastUpdate = new Date().toString();\r\n\t//remove an empty string from the end\r\n\tmodbusValues.pop();\r\n\t//goes through whole array and separates the register values from strings\r\n\tmodbusValues.forEach((item, index, arr) => {\r\n\t\tarr[index] = Number(item.split(\":\")[1]);\r\n\t});\r\n}", "function queryAircraftFailed(err) {\n resetPagination();\n vm.message = LOGBOOK_CONSTANT.MSG_AIRCRAFT_QUERY_ERROR;\n vm.working = false;\n }", "function getUserLogs(pg) {\n $(\"#userlogres\").html(\"\");\n //alert(rl);\n //var logfetchurl = config.fetchLogs;\n var logfetchurl = 'scripts/logs/get_logs.php';\n var suser = $(\"#loguser\").val();\n\tvar param = '';\n\tif (suser != \"\" && suser != null) {\n\t\tparam = \"&user=\" + suser;\n\t}\n\n if($(\"input#impersonateOn\").is(\":checked\")) {\n\t param += \"&search_impersonate=true\";\n }\n var end = parseInt(pg) * 30;\n var start = end - 30 + 1;\n param += \"&start=\" + start + \"&end=\" + end;\n if (search_logparam != \"\") {\n\tparam += search_logparam;\n }\n $.ajax({\n\turl: logfetchurl,\n\ttype: 'POST',\n\tdata: param,\n\theader: \"application/x-www-form-urlencoded\",\n\tasync: false,\n\tsuccess: function(data) {\n\t var status1 = \"<p style=\\\"direction:ltr;\\\">Status:\" + \" \" + data['status'] + \", Message:\" + data['message'] + \"</p>\";\n\t if (data[\"status\"].toLowerCase() == \"success\") {\n\t\t$('.notify').remove();\n\t\t$.notify(status1, {\n\t\t type: \"success\",\n\t\t \"position\": \"top\",\n\t\t background: \"#31b0d5\"\n\t\t});\n\t\tvar table = $('<table></table>').addClass('table table-striped table-bordered dt-responsive nowrap').attr('id', \"jtable\").css(\"width\", \"100%\");\n\t\tvar th = $('<thead><tr><td>SNO</td><td>Date/Time</td><td>Logged Message</td><td>User</td></tr></thead>').css(\"font-weight\", \"600\").appendTo(table);\n\n\t\tvar count=start;\n\t\t//activelogspage = parseInt(activelogspage);\n\t\t//for (var k = data.records.length - 1; k >= 0; k--) \n\t\tfor (var k = 0; k <= data.records.length - 1; k++) {\n\t\t\tvar impersonated_by = '';\n\t\t\tif(typeof data.records[k].impersonated_by != \"undefined\") {\n\t\t\t\timpersonated_by = data.records[k].impersonated_by;\n\t\t\t} \n\t\t\tvar disdatetime = formatDate_ddmonyyyy(data.records[k].logged_at);\n\t\t\tdisdatetime += ' ' + formatDateToTime(data.records[k].logged_at);\n\t\t\t$('<tr><td>' + count + '</td>'\n\t\t\t\t\t//+'<td>'+data.records[k].logged_at+'</td>'\n\t\t\t\t\t+\n\t\t\t\t\t'<td>' + disdatetime + '</td>' +\n\t\t\t\t\t'<td title=\"'+impersonated_by+'\">' + escapeHtml(data.records[k].message) + '</td>' +\n\t\t\t\t\t'<td>' + getUserId(data.records[k].user) + '</td>' +\n\t\t\t\t\t'</tr>').attr('id', '').appendTo(table);\n\t\t\tcount++;\n\t\t}\n\t\tvar next = pg+1;\n\t\tvar prev = pg -1;\n\t\t$(\"#userlogres\").html(table);\n\t\tif(prev >= 1) {\n\t\t\t$(\"#userlogres\").append('<button onclick=\\\"getUserLogs('+prev+')\\\">Prev</button>');\n\t\t}\n\t\t$(\"#userlogres\").append('<button onclick=\\\"getUserLogs('+next+')\\\">Next</button>');\n\t } else {\n\t\t$(\"#userlogres\").html(\"\");\n\t\t $('.notify').remove();\n\t\t $.notify(status1, {\n\t\t\t type: \"warning\",\n\t\t\t \"position\": \"top\"\n\t\t });\n\t }\n\t},\n\terror: function(jqXHR, exception) {\n\t var msg = '';\n\t if (jqXHR.status === 0) {\n\t\tmsg = 'Not connect.\\n Verify Network.';\n\t } else if (jqXHR.status == 404) {\n\t\tmsg = 'Requested page not found. [404]';\n\t } else if (jqXHR.status == 500) {\n\t\tmsg = 'Internal Server Error [500].';\n\t } else if (exception === 'parsererror') {\n\t\tmsg = 'Requested JSON parse failed.';\n\t } else if (exception === 'timeout') {\n\t\tmsg = 'Time out error.';\n\t } else if (exception === 'abort') {\n\t\tmsg = 'Ajax request aborted.';\n\t } else {\n\t\tmsg = 'Uncaught Error.\\n' + jqXHR.responseText;\n\t }\n\t //alert(msg);\n\t}\n });\n return false;\n}" ]
[ "0.625712", "0.56987184", "0.55910146", "0.54449993", "0.54331005", "0.54055744", "0.5359964", "0.53308415", "0.52409154", "0.522169", "0.52164537", "0.5203963", "0.51914084", "0.5180849", "0.51371044", "0.51195794", "0.5112088", "0.5087484", "0.5078544", "0.5068073", "0.5056197", "0.5053275", "0.50522035", "0.503553", "0.50147974", "0.500436", "0.49864036", "0.49799177", "0.49740946", "0.49705228", "0.4969536", "0.49652028", "0.4960414", "0.49570382", "0.49570382", "0.49561685", "0.49430543", "0.49379593", "0.49140072", "0.49105635", "0.49089625", "0.49084988", "0.49063927", "0.49061206", "0.48945758", "0.48941424", "0.48918402", "0.48913458", "0.4890813", "0.48885158", "0.48833814", "0.48828593", "0.4877982", "0.4876875", "0.4872167", "0.48696592", "0.4868366", "0.4867905", "0.48626098", "0.48530722", "0.48505217", "0.48473042", "0.48447663", "0.4844371", "0.4843979", "0.48424017", "0.48391694", "0.48299822", "0.48254225", "0.4823464", "0.48231834", "0.48226857", "0.48154512", "0.48148182", "0.48128644", "0.4812823", "0.48081407", "0.48028082", "0.4800459", "0.4800284", "0.4798536", "0.47931677", "0.4792448", "0.47848436", "0.4783238", "0.47824398", "0.47798115", "0.47758844", "0.47740835", "0.47680306", "0.4767874", "0.47656903", "0.47648457", "0.47585732", "0.47518766", "0.47445884", "0.47439528", "0.47437567", "0.47407424", "0.4739667" ]
0.7026856
0
insering error to db
function errorLog(error, area, status) { var today = new Date(); client.query( `INSERT INTO schedule_error(message, datetime,error_area,status)VALUES('${error}','${today}','${area}','${status}')`, (err, res) => { if (err) { console.log(err) } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function errorDB(tx, err) {\n\t\tif (err && err.message) {\n\t\t alert(\"Error processing SQL: \" + err.message);\n\t\t} else {\n\t\t alert(\"Error processing SQL: \" + tx);\n\t\t}\n\t}", "function showError() {\n console.log(\"error in writing data to the database\")\n}", "function dbErrorHandler(err) {\r\n// 없앰\r\n}", "function handleError(err,callback)\n {\n logger.error(err); //to save more data (e.g. ts)\n var d = {};\n d['Error'] = err.toString();\n d['roundId'] = $scope.round.roundId;\n d['robotName'] = err.robotName;\n d['created'] = err.created;\n d['fileName'] = err.fileName;\n d['timestamp'] = (new Date()).getTime();\n db.collection('errors').insertOne(d,function(err,res)\n {\n $scope.round['errors'].push(res['_id']);\n setTimeout(callback,0);//to save id of error to current round and than save round to db with errorId\n });\n }", "LogAppliError(Valeur= \"undefined\", User= \"undefined\", UserId= \"undefined\"){\n var now = new Date()\n this.LogDebug(this.GetDateString(now) + \" Error \" + User + \" \" + Valeur)\n const DataToDb = { [this._MongoVar.LogAppliNow]: now, [this._MongoVar.LogAppliType]: \"Error\", [this._MongoVar.LogAppliValeur]: Valeur, [this._MongoVar.LogAppliUser]: User, [this._MongoVar.LogAppliUserId]: UserId}\n this._Mongo.InsertOnePromise(DataToDb, this._MongoVar.LogAppliCollection).then((reponse)=>{\n },(erreur)=>{\n this.LogDebug(\"LogAppliError DB error : \" + erreur)\n })\n }", "function pet_insert() {\n\tdb.transaction(pet_insert_db, errorDB, successDB);\n}", "function errorCB(tx, err) {\n\t//alert(\"Error processing SQL: \"+err);\n}", "function tableInsertionCallback(err) {\n if (err) {\n console.log(\"data storing error\", err);\n respondObject.status = \"data storing error\";\n res.json(respondObject);\n } else {\n console.log(\"data stored\");\n respondObject.status = \"data stored\";\n res.json(respondObject);\n //db.close();\n }\n }", "function agenda_insert() {\n\tdb.transaction(agenda_insert_db, errorDB, successDB);\n}", "add({i, n, s, b, ph}, callback) {\r\n if (s < 0 || 2 < s)\r\n callback(new RangeError('Invalid s: s should between 0 and 2'));\r\n else\r\n pool.query('insert into empl values (?,?,?,?,?,default)',\r\n [i, n, s, b, ph],\r\n (e, r) => {\r\n if (e)\r\n if (e.code === 'ER_DUP_ENTRY') callback(0, 2);\r\n else callback(e);\r\n else callback(0, r.affectedRows);\r\n });\r\n }", "function onDBError(error) {\n console.error(error);\n}", "function errorCB(err) {\n //alert(\"Error processing SQL: \"+err.code);\n \n }", "insert() {\r\n var sql = 'INSERT INTO post (id, title, text) VALUES (?,?,?)'\r\n var params = [this.id, this.title, this.text]\r\n db.run(sql, params, function (err, result) {\r\n if (err) {\r\n throw err // TODO: useful error handling here...\r\n return\r\n }\r\n });\r\n }", "function insertData(sqlQuery, obj, successFn, errFn){\r\n console.log(\"\\nSQL Query::\"+sqlQuery);\r\n console.log(\"\\nObJ : \" + obj);\r\n connMgr.getConn(function (connection) {\r\n connection.query(sqlQuery, obj, function(err,res){\r\n if(err) throw err;\r\n if(successFn)successFn(obj, res.insertId);\r\n if(res != undefined)\r\n console.log('Last insert ID:', res.insertId);\r\n }, errFn);\r\n });\r\n}", "insertCallback(error) {\n if (error) {\n Bert.alert({ type: 'danger', message: `Add failed: ${error.message}` });\n } else {\n Bert.alert({ type: 'success', message: 'Add succeeded' });\n this.formRef.reset();\n }\n }", "function insert(query, params, response) {\n connection.query(query, params, (error, result) => {\n if (error) {\n response.status(500);\n response.json({\n ok: false,\n results: error.message,\n });\n } else {\n response.json({\n ok: true,\n results: result.insertId,\n });\n }\n });\n}", "function _errorCb(err, result) {\n\n // if there is a conflict error, retrieve the document's revision first\n function _successCb(err, result) {\n\n // use the revision to update the existing documents\n // NOTE: it is not impossible that the revision of this document\n // is modified by other operations right before updating, Couchpenter\n // will only try once to avoid any possibility of retrying infinitely.\n doc._rev = result._rev;\n self.couch.use(dbName).insert(doc, self._handle(cb, {\n dbName: dbName,\n docId: doc._id,\n message: 'updated'\n }));\n }\n\n self.couch.use(dbName).get(doc._id, self._handle(cb, {\n dbName: dbName,\n docId: doc._id,\n successCb: _successCb\n }));\n }", "addProduct(req, res){\n try {\n assert(req.body.name,\"Name is required\");\n assert(req.body.description,\"Description is required\");\n assert(req.body.rate,\"Rate is required\");\n assert(req.body.sku,\"SKU/Unique Code is required\");\n assert(req.user_id, 'User not logged in');\n\n let name = req.body.name;\n let description = req.body.description;\n let rate = req.body.rate ;\n let sku = req.body.sku;\n let label = req.body.hasOwnProperty('label') ? req.body.label : \"\";\n\n connectionPool.query(`INSERT into invoicer.product(name,label,description,rate ,sku,user_id) \n VALUES(?,?,?,?,?,?)`, [name,label,description,rate,sku,req.user_id], function(error, result, fields) {\n if (error) {\n if(error.code==='ER_DUP_ENTRY'){\n res.status(422).send({\n status: \"error\",\n message: \"Product with this SKU already exists\"\n });\n }\n else{\n res.status(500).send({\n status: \"error\",\n code: error.code,\n message: error.sqlMessage\n });\n }\n } else if(result.insertId > 0){\n res.status(200).send({\n status: \"success\",\n data: \"\",\n message: \"Product added successfully\"\n });\n }\n else{\n res.status(422).send({\n status: \"error\",\n message: \"Product with this SKU already exists\"\n });\n }\n });\n }\n catch (e) {\n if(e instanceof AssertionError){\n console.log(req.url,\"-\",__function,\"-\",\"AssertionError : \",e.message);\n res.status(500).send({\n status: \"AssertionError\",\n message: e.message\n });\n }\n else{\n console.log(req.url,\"-\",__function,\"-\",\"Error : \",e.message);\n res.status(500).send({\n status: \"error\",\n message: e.message\n });\n }\n }\n }", "function insertData(data) {\n db.concerts.insert(data, {continueOnError: true}, function(err, docs){\n // code = 11000 : duplicate key. code = 13027 : Point out of geo point interval\n if(err && !err.code != 11000 && !err.code != 13027){\n logger.warn(err);\n }\n else logger.info('concerts inserted successfully!\\n');\n });\n}", "function _reportError(err){\n console.log(\"Mysql \"+ err);\n}", "function errorBD(err) {\n\talert(\"Error \" + err.code + \" procesando SQL: \" + err.message);\n}", "function insert_to_db(table, row){\n var schema = db.model(table);\n var data = new schema(row);\n schema.findOne({sensID: row.sensID, teamID: row.teamID}).exec(function (err, result) {\n if (err){\n console.log(err);\n } else {\n if (result == null) {\n data.save(function(err, result){\n if (err){\n console.log(err);\n } else {\n console.log('add Data');\n }\n });\n }\n }\n })\n\n}", "function successInsert() {\n console.info(\"Success: Create table: friend successful.\");\n }", "onWriteResult(error, result) {\n if (error && error.code === UNDEFINED_TABLE) {\n this.createTable();\n }\n else if (error) {\n this.end(error);\n }\n else {\n this.end(null);\n }\n }", "function errorCB(err) {\r\n console.log(\"Error occured while executing SQL: \"+err.code);\r\n }", "function errorlogging(err) \r\n{\r\n\talert(\"Error processing SQL: Main err\"+err.code);\r\n}", "async function catchSQLError(err, client, msg) {\n if (err.code === 'SQLITE_MISUSE') {\n await sendEmbed(msg, messages.error.SQLITE_MISUSE);\n await sql.open('./database.sqlite');\n await generateDatabase(client);\n await insertUserIntoDatabase(msg.author, client, msg);\n }\n}", "function send_err(msg, input) {\n\t\t\tsendMsg({ msg: 'tx_error', e: msg, input: input });\n\t\t\tsendMsg({ msg: 'tx_step', state: 'committing_failed' });\n\t\t}", "function send_err(msg, input) {\n\t\t\tsendMsg({ msg: 'tx_error', e: msg, input: input });\n\t\t\tsendMsg({ msg: 'tx_step', state: 'committing_failed' });\n\t\t}", "function _dbFailure(error) {\n\treturn {\n\t\tsuccess: false,\n\t\terror: error,\n\t\tdata: undefined,\n\t};\n}", "function errorCB(err) {\n console.log(\"Error processing SQL: \"+err.code);\n}", "function reportError(user, erb, error) {\n var newError = new ErrorObj;\n newError.save({\n uid: user,\n ErrorBeschr: erb,\n ErrorText: error\n }, {\n success: function (object) {},\n error: function (model, error) {}\n });\n}", "function queryInsert(sql, cb) {\n con.query(sql, (err, _) => {\n cb((!err) ? 1 : 0);\n });\n}", "function tableInsertionCallback(err) {\n if (err) {\n console.log(\"userdb; new user insertion error\", err);\n } else {\n console.log(\"userdb; new user insertion success\");\n }\n }", "function log(conn,profile_id,status,msg) {\r\n var sql = 'insert into Log(profile_id,status,txmsg) values(?,?,?)';\r\n conn.query(sql,[profile_id,status,msg], function(err,res,f) { \r\n if (err) { \r\n console.log(\"SQL LOG error: \"+err+\" trying to reconnect once.\")\r\n conn = dbconn()\r\n conn.query(sql,[profile_id,status,msg], function(err,res,f) { if (err) console.log(\"SQL LOG error: \"+err+\" still doesnt work.\") })\r\n }\r\n })\r\n}", "function insertTempObra(x) {\n //code Insertando avances fisicos\n \n if (AOTI && x >= AOTI.length) {\n //code\n console.log(\"Todas las inserciones terminadas:::::::::::::::::::::::::::::::::\");\n location.href=\"mapa_proyectos.html\";\n // insertarAvanceFinancieroProyectos(0);\n }\n \n else if (AOTI && AOTI.length > 0) {\n console.log(\"Cargando datos espere un momento ::: 4 X=\" + x + \" Avances: \"+ AOTI.length);\n \n \n \n db.transaction(function(tx) {\n \n tx.executeSql('INSERT INTO TempAvanceObras(idAvanceFinanciero, idAvanceFisico, idObra)' +\n ' VALUES (?, ?, ?)',\n [AOTI.item(x).idAvanceFinanciero, AOTI.item(x).idAvanceFisico, AOTI.item(x).idObraFisico]);\n console.log(\"Avance Temp en Proyectos: \" + AOTI.item(x).idObraFisico);\n \n \n }, errorCB, function (){\n console.log(\"Se inserto correctamente el avance temporal: \" + AOTI.item(x).idObraFisico);\n \n x++;\n insertTempObra(x);\n \n }); \n \n } else {\n console.log(\"No hay avances temporales de obra :::::::::::::::::::::::\");\n // insertarAvanceFinancieroProyectos(0);\n }\n}", "function updateErrHandler(error, result) {\n\tif (error) {\n\t\tlog(\"cannot update data\")\n\t\tthrow error\n\t} else {\n\t\tlog(\"Update Success\") \n\t}\n}", "insertCallback(error) {\n if (error) {\n Bert.alert({ type: 'danger', message: `Profile update failed: ${error.message}` });\n } else {\n Bert.alert({ type: 'success', message: 'Profile update succeeded' });\n }\n }", "function addItemsEscalerasItemsDefectos(k_coditem_escaleras,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO escaleras_items_defectos (k_coditem_escaleras, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_escaleras,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items defectos...Espere\");\n });\n}", "function handleDBError (err) {\n debug(`${chalk.red('[error]')}: ${err.message}`)\n console.error(err.stack)\n}", "function saveFailed(error) {\n equal(saveSuccessCount += 1, 2,\n \"Second save should fail on the client\");\n \n var expected = /key fixup.*unable to locate/i;\n ok(expected.test(error.message),\n \"2nd save of same entity fails on client \" +\n \"only because of id fixup error: '{0}'\"\n .format(error.message));\n }", "function insertQuery() {\n var interesse = $('#query-input').val();\n\n databaseManager\n .query(\"INSERT INTO interesses (INTERESSE) VALUES (?)\", [interesse])\n .done(function () {\n alert(\"Interesse is in de database toegevoegd!\");\n loadController(CONTROLLER_ADMIN_HOME);\n })\n .fail(function () {\n alert(\"Interesse is in de database toegevoegd!\")\n });\n }", "function addItemsPuertasItemsElementos(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_elementos (k_coditem,o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items elementos...Espere\");\n });\n}", "function errorInsertarBitacora(rpta){console.log(rpta)}", "function errorCB(err) {\r\n alert(\"Error processing SQL: \"+err.code);\r\n }", "insertBinanceLog(obj){\n let query = `insert into binancemessages set ?`;\n \n return new Promise((resolve, reject) => {\n db.query(query, obj, (err, data) => {\n if (err)\n reject(new errModel(err.code, err));\n else\n resolve(data)\n })\n })\n }", "function addItemsPuertasItemsProteccion(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_proteccion (k_coditem, o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items protección...Espere\");\n });\n}", "function addItemsEscalerasItemsProteccion(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO escaleras_items_proteccion (k_coditem, o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items protección...Espere\");\n });\n}", "function insertVol(id, preference){\n db.transaction(tx => {\n tx.executeSql(\n 'INSERT INTO volunteer_role_t (person_id, preference) VALUES (?,?)',\n [id, preference],\n (tx, results) => {\n console.log('Results', results.rowsAffected);\n if (results.rowsAffected > 0) {\n\n } else {\n alert('Registration Failed');\n }\n }\n );\n });\n}", "function insertdb(user_name, user_password, user_email,fisrt_name,last_name, callback) {\n var sql=\"INSERT INTO user (user_name,user_password,user_email,fisrt_name,last_name) VALUES ('\" + user_name + \"','\" + user_password + \"','\" + user_email + \"','\"+ fisrt_name + \"','\" + last_name + \"' ) \";\n connection.query(sql, function(err, result, fields) {\n if (err) {\n console.log('this.sql', this.sql); //command/query\n callback(err, null);\n } else callback(null, result);\n });\n}", "function insertData(req, res) {\n req.body.user_id= req.userId;\n var p = config.getDB().then(function(db){\n db.collection(\"chartinsert\").insertOne(req.body,function(err,obj){\n console.log(err)\n if(err) res.status(400).json({success:false, sucerror:err.errors})\n else{\n res.status(200).json({success:true, message: 'inserted successfully.'})\n }\n })\n })\n \n}", "function insertToUserData() {\n var request = new Request();\n var sql = \"INSERT INTO userData (id, password) VALUES ('emma', 'lalala')\";\n\n request = new Request(sql, (err, rowCount, rows) => {\n console.log(rowCount + ' row(s) returned');\n process.exit();\n });\n \n connection.execSql(request);\n}", "_checkInsertIsAble () {\n function error (parameter) {\n throw new Error (`Parameter '${parameter}' is forbidden in INSERT query`)\n }\n if (this._selectStr.length > 1) error('only')\n if (this._orderStr) error('orderBy')\n if (this._limitStr) error('limit')\n if (this._offsetStr) error('offset')\n if (this._where.str) error('where')\n if (this._joinStr) error('join')\n return true\n }", "function errorCB(err) {\n\talert(\"Error processing SQL: \"+err.code+\" msg: \"+err.message);\n}", "addExam(exam) {\n console.log(\"exam:\",exam);\n if (!exam) throw \"Exam has no title\";\n return db.addExam(exam);\n }", "function makeDBError(pgerr) {\n // If the error is already a fresco error, pass it on\n if (pgerr instanceof FrescoError) return pgerr;\n\n let error = Launcher(pgerr);\n let found = true; // must be true for default: to handle flagging it as not found\n\n switch (pgerr.constraint) {\n case 'already_exists':\n error.type(Launcher.INVALID_REQUEST).msg('This object already exists!');\n break;\n case 'assignment_outlets_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('Outlet is already a part of this assignment!');\n break;\n case 'assignment_users_pkey':\n error.type(Launcher.FAILED_REQUEST).msg('This assignment has already been accepted!');\n break;\n case 'following_users_other_id_fkey':\n error.type(Launcher.NOT_FOUND).msg('This user does not exist!');\n break;\n case 'following_users_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('You are already following this user!');\n break;\n case 'gallery_articles_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('This gallery already has this article!');\n break;\n case 'gallery_likes_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('You\\'ve already liked this gallery!');\n break;\n case 'gallery_posts_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('Post is already a member of this gallery!');\n break;\n case 'gallery_reposts_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('You\\'ve already reposted this gallery!');\n break;\n case 'installation_unique_device_token':\n error.type(Launcher.FAILED_REQUEST).param('installation[device_token]').msg('This token already exists!');\n break;\n case 'one_per_platform_per_user':\n error.type(Launcher.FAILED_REQUEST).msg(`This account already has a social link for ${pgerr.network || 'this platform'}.`);\n break;\n case 'one_per_platform_per_account_id':\n error.type(Launcher.FAILED_REQUEST).msg(`Another user is already using this ${pgerr.network || 'social'} account. If possible, unlink the account from the old account before linking it to a new one.`);\n break;\n case 'outlet_invite_unique':\n case 'outlet_invites_fkey':\n error.type(Launcher.FAILED_REQUEST).msg('This account has already been invited to your outlet!');\n break;\n case 'outlet_location_notification_settings_pkey':\n error.type(Launcher.FAILED_REQUEST).msg('You already have a setting object for this outlet location');\n break;\n case 'repurchase':\n error.type(Launcher.INVALID_REQUEST).param('post_id').msg('You already own this post!');\n break;\n case 'story_articles_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('This story already has this article!');\n break;\n case 'story_galleries_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('Story already contains gallery!');\n break;\n case 'social_import_exists':\n error.type(Launcher.INVALID_REQUEST).msg('This media has already been imported!');\n break;\n case 'story_reposts_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('You\\'ve already reposted this story!');\n break;\n case 'story_likes_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('You\\'ve already liked this story!');\n break;\n case 'unique_email':\n error.type(Launcher.INVALID_REQUEST).param('email').msg('This email address is already taken!');\n break;\n case 'unique_location_per_outlet':\n error.type(Launcher.INVALID_REQUEST).param('title').msg('This location has already been saved!');\n break;\n case 'unique_outlet_title':\n error.type(Launcher.INVALID_REQUEST).param('outlet[title]').msg('This outlet title is already taken!');\n break;\n case 'unique_platform_account':\n error.type(Launcher.INVALID_REQUEST).msg('Social account is already linked!');\n break;\n case 'unique_user_notif_setting':\n error.type(Launcher.INVALID_REQUEST).msg('There already exists a setting for this notification!');\n break;\n case 'unique_username':\n error.type(Launcher.INVALID_REQUEST).param('username').msg('This username is already taken!');\n break;\n case 'user_blocks_pkey':\n error.type(Launcher.INVALID_REQUEST).msg('You have already blocked this user!');\n break;\n case 'user_reports_user_id_fkey':\n error.type(Launcher.NOT_FOUND).msg('This user does not exist!');\n break;\n default:\n found = false;\n break;\n }\n\n if (!found) {\n switch (pgerr.code) {\n case '22001':\n error.type(Launcher.INVALID_REQUEST).msg('String value too long');\n case '23502':\n case '22004':\n case '39004':\n error.type(Launcher.INVALID_REQUEST).msg('Missing required parameter');\n default:\n error.type(Launcher.API);\n }\n }\n\n return error;\n}", "function errback(err) {\n rdbAdmin.showErrorMessage('<pre>' + err[0] + ':' + err[1] + '</pre>');\n }", "function addItemsEscalerasItemsElementos(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO escaleras_items_elementos (k_coditem,o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items elementos...Espere\");\n });\n}", "function tableCreationCallback(err) {\n if (err) {\n\tconsole.log(\"sotring error\",err);\n } else {\n\tconsole.log(\"data stored\");\n\tdb.close();\n }\n}", "function connectionError(err) {\n // Record failure in statsd\n statsClient.increment('opentsdb.failure');\n\n log.fatal('OpenTSDB connection error: ' + err);\n process.exit(1);\n }", "insertCallback(error) {\n if (error) {\n Bert.alert({ type: 'danger', message: `Add failed: ${error.message}` });\n } else {\n Bert.alert({ type: 'success', message: 'The task has been completed' });\n this.formRef.reset();\n }\n }", "postError(err) {\n //TODO:\n console.log(err);\n // throw err;\n }", "function beforeInsert(row, errors){\r\n beforeBoth(errors, row);\r\n}", "function addItemsEscalerasItemsPreliminar(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO escaleras_items_preliminar (k_coditem, o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items preliminares...Espere\");\n });\n}", "function insert() {\r\n let query = \"command=insert\"; //https://eia2-michel.herokuapp.com/command=insert&name=peter&punkte=100\r\n query += \"&name=\" + HabosHaihappen.spielerName;\r\n query += \"&punkte=\" + HabosHaihappen.highscore;\r\n sendRequest(query, handleInsertResponse);\r\n }", "insertEthereumLog(obj){\n let query = `insert into ethereummessages set ?`;\n\n return new Promise((resolve, reject) => {\n db.query(query, obj, (err, suc) => {\n if (err)\n reject(new errModel(err.code, err));\n else\n resolve(true);\n })\n })\n }", "function insertBookToDB(book)\n{\n\talert(\"insertBookToDB\");\n if(db == null)\n {\n alert('Databases are not supported in this browser.');\n return; \n }\n db.transaction(function (tx) {\n tx.executeSql(('INSERT INTO books VALUES (?,?,?,?,?);'), [book.identifier,book.name,book.author,book.coverimage,book.bookpath],\n \t\t null,\n \t\t errorHandler); \n });\n}", "function addItemsPuertasItemsPreliminar(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_preliminar (k_coditem, o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items preliminares...Espere\");\n });\n}", "function errback(err) {\n //alert(err.toString());\n rdbAdmin.showErrorMessage('<pre>' + err[0] + ':' + err[1] + '</pre>');\n }", "function insertTemp(x) {\n //code Insertando avances fisicos\n \n \n \n if (APTI && x >= APTI.length) {\n //code\n console.log(\"Cargando datos espere un momento vamos a insertar avances temporales de Obra::: X=\" + x );\n \n insertarTempAvancesObras();\n }\n \n else if (APTI && APTI.length > 0) {\n console.log(\"Cargando datos espere un momento ::: 4 X=\" + x + \" Avances: \"+ APTI.length);\n \n \n \n db.transaction(function(tx) {\n \n tx.executeSql('INSERT INTO TempAvanceProyectos(idAvanceFinanciero, idAvanceFisico, idProyecto)' +\n ' VALUES (?, ?, ?)',\n [APTI.item(x).idAvanceFinanciero, APTI.item(x).idAvanceFisico, APTI.item(x).idProyectoFisico]);\n console.log(\"Avance Temp en Proyectos: \" + APTI.item(x).idProyectoFisico);\n \n \n }, errorCB, function (){\n console.log(\"Se inserto correctamente el avance temporal: \" + APTI.item(x).idProyectoFisico);\n \n x++;\n insertTemp(x);\n \n }); \n \n } else {\n console.log(\"No hay avances temporales de proyecto :::::::::::::::::::::::\");\n // insertarAvanceFinancieroProyectos(0);\n }\n}", "function storeNewEntryFailed() {\r\n topPlayers[newPosition - 1] = 'failed'; // indicates an error\r\n render();\r\n }", "function addItemsPuertasItemsElectrica(k_coditem_electrica,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_electrica (k_coditem_electrica, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_electrica,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items eléctrica...Espere\");\n });\n}", "postCallError(change) {\n if (change && change.service === 'DatabaseService'\n && (change.operation === 'insertTableData' || change.operation === 'insertMultiPartTableData')\n && this.transactionLocalId) {\n const entityName = change.params.entityName;\n const dataModelName = change.params.dataModelName;\n return this.localDBManagementService.getStore(dataModelName, entityName).then(store => {\n change.params.data[store.primaryKeyName] = this.transactionLocalId;\n });\n }\n }", "function dberrorhandlerForResponseForStudent(err){\n console.log(\"Response entries for a student DB Error: \"+err.message + \"\\nCode=\"+err.code);\n alert(\"Response entries for for a student DB Error: \"+err.message + \"\\nCode=\"+err.code);\n}", "addURL(data, callback) {\n this.executeMySQL(\"INSERT INTO data(data_url, status, data_url_md5, site_id) VALUES (?)\", [data]).then(function (success) {\n callback(success);\n }).catch(function (err) {\n // console.log(err);\n callback(false);\n });\n }", "function gribError(wdb, lvl, stat, msg) {\n // alert(msg);\n dbg(lvl, msg);\n wdb.statusMsg = msg;\n wdb.status = stat;\n\tthrow error;\n return wdb;\n}", "function setDBData(addSql, addSqlParams){\n // var addSql = 'users(name, account, password) VALUES(?,?,?)';\n // var addSqlParams = [name, account,password];\n connection.query('INSERT INTO ' + addSql,addSqlParams,function (err, results) {\n if(err){\n console.log('[INSERT ERROR] - ',err.message);\n return;\n } \n \n console.log('--------------------------INSERT----------------------------');\n console.log('INSERT ID:',results); \n console.log('-----------------------------------------------------------------\\n'); \n });\n // connection.release();\n}", "function postInsert(response) {\n\tif (response != \"ERROR\") {\n\t\twindow.location.reload();\n\t} else\n\t\talert(\"Action failed\");\n}", "function addItemsAscensorItemsProteccion(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO ascensor_items_proteccion (k_coditem, o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items protección...Espere\");\n });\n}", "function errorCB(err) {\n alert(\"Error processing SQL: \"+err.code);\n}", "function addHotelToDb(args, onSuccess, onError){\n const hotel = new Hotel(args)\n hotel.save((err, success) => {\n if (err) {\n console.log(err)\n onError(err)\n }\n else {\n console.log(success)\n onSuccess(success)\n }\n })\n}", "function complete(){\r\n var anotherSql = \"INSERT INTO chemical_in_container(chemical_id, container_barcode) VALUES ((SELECT chemical.chemical_id FROM chemical WHERE chemical.name = ?),?)\";\r\n var anotherInserts = [req.body.chemicalName, req.body.newContainerBarcode];\r\n anotherSql = mysql.pool.query(anotherSql,anotherInserts,function(error, results, fields){\r\n if(error){\r\n console.log(JSON.stringify(error));\r\n //res.write(JSON.stringify(error));\r\n //console.log(\"SORRY THAT CONTAINER DOES NOT EXIST IN THE DATABASE\");\r\n res.send(\"SORRY THAT CONTAINER DOES NOT EXIST IN THE DATABASE. THE CHEMICAL WAS STILL REGISTERED. PLEASE MOVE CHEMICAL TO AN EXISTING CONTAINER\");\r\n res.end();\r\n }else{\r\n res.redirect('/chemical');\r\n }\r\n });\r\n }", "insertOne(table,cols,vals,cb) {\n let query = `INSERT INTO ${table}`;\n query += ` (${cols.toString()}) `;\n query += ` VALUES (${printQuestionMarks(vals.length)})`;\n \n connection.query(query,vals,(err,result) =>{\n if(err) throw err;\n cb(result);\n });\n }", "function insertRecord(){\n\n var usernametemp = $('input:text[id=username]').val();\n\n var usernameemailtemp = $('input:text[id=useremail]').val();\n\n db.transaction(function (tx){ tx.executeSql(insertStatemen); });\n\n //tx.executeSql(SQL Query Statement,[ Parameters ] , Sucess Result Handler Function, Error Result Handler Function);\n}", "static addLineItem(resource_id){\n try{\n let data = connection.query(\"INSERT INTO resource_line_item (resource_id, date_due) VALUES (\"+resource_id+\", '')\");\n let data2 = connection.query(`SELECT * FROM resource_line_item WHERE id=${data.insertId}`)\n return {message: 'Resource Added', lineItem: data2[0]};\n }catch(error){\n return {message: 'Resource '+error};\n }\n }", "function successDB() { }", "function successDB() { }", "function addItemsAscensorItemsFoso(k_coditem_foso,v_item,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO ascensor_items_foso (k_coditem_foso, v_item, o_descripcion, v_clasificacion) VALUES (?,?,?,?)\";\n tx.executeSql(query, [k_coditem_foso,v_item,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items foso...Espere\");\n });\n}", "function registerResponse(resp,cb){\n if(resp.response != \"\"){\n console.log(\"Response registration Start\");\n dbShellResponsesForExercise.transaction(\n function(tx){\n// console.log(resp.teacher_id + \" \"+ resp.student_id + \" \" + resp.lesson_id + \" \" + resp.exercise_id + \" \" + resp.response);\n// \"CREATE TABLE IF NOT EXISTS responseandmark(row_id INTEGER,teacher_id INTEGER,student_id INTEGER,lesson_id INTEGER,\\\n// exercise_id INTEGER,response,scoremark,comment,PRIMARY KEY(row_id))\"\n tx.executeSql(\"select response from responseandmark where teacher_id=? and student_id=? and lesson_id=? and exercise_id=?\",\n [resp.teacher_id,resp.student_id,resp.lesson_id,resp.exercise_id],\n function(tx1,res1){\n if(res1.rows.length == 0){\n tx.executeSql( \"insert into responseandmark(teacher_id,student_id,lesson_id,exercise_id,response) \\\n values(?,?,?,?,?)\",\n [resp.teacher_id,resp.student_id,resp.lesson_id,resp.exercise_id,resp.response],\n function(tx2,res2){\n console.log(\"Response data registered(no update) for student in the responseandmark table in database.\");\n },\n function(err){\n console.log(\"Response register(no update) Error: \"+err.message + \"\\nCode=\"+err.code);\n alert(\"Response register(no update) Error: \"+err.message + \"\\nCode=\"+err.code);\n }\n );\n }else{\n console.log(\"scoremark = \" + resp.scoremark + \"comment = \" + resp.comment);\n\n \n if(resp.scoremark == null && resp.comment == null){\n tx1.executeSql(\"update responseandmark set response=? where teacher_id=? and student_id=? and lesson_id=? and exercise_id=?\",\n [resp.response,resp.teacher_id,resp.student_id,resp.lesson_id,resp.exercise_id],\n function(tx3,res3){\n console.log(\"Response data registered(update) for student in the responseandmark table in database.\");\n },\n function(err){\n console.log(\"Response register(update) Error: \"+err.message + \"\\nCode=\"+err.code);\n alert(\"Response register(update) Error: \"+err.message + \"\\nCode=\"+err.code);\n }\n ); \n }else{\n tx1.executeSql(\"update responseandmark set response=?,scoremark=?,comment=? where teacher_id=? and student_id=? and lesson_id=? and exercise_id=?\",\n [resp.response,resp.scoremark,resp.comment,resp.teacher_id,resp.student_id,resp.lesson_id,resp.exercise_id],\n function(tx3,res3){\n console.log(\"Response data registered(update with score,comment) for student in the responseandmark table in database.\");\n $(\"#scoremarkHolder\").html(\"スコアー: \" + resp.scoremark);\n $(\"#commentHolder\").html(\"先生のコメント: \" + resp.comment);\n },\n function(err){\n console.log(\"Response register(update with score,comment) Error: \"+err.message + \"\\nCode=\"+err.code);\n alert(\"Response register(update with score,comment) Error: \"+err.message + \"\\nCode=\"+err.code);\n }\n );\n }\n \n }\n },\n function(err){\n console.log(\"Response register Error: \"+err.message + \"\\nCode=\"+err.code);\n alert(\"Response register Error: \"+err.message + \"\\nCode=\"+err.code);\n }\n );\n },function(err){\n console.log(\"Response Register DB Error: \"+err.message + \"\\nCode=\"+err.code);\n alert(\"Response Register DB Error: \"+err.message + \"\\nCode=\"+err.code);\n },cb\n );\n\n }\n\n}", "async function insertProducto(obj) {\n try {\n // {stock_p : \"palabra\"}\n const rows = await query (\"insert into producto set ?\",obj);\n // undefined insertId es una propiedad que nos devuelve el primary A_I con el que se inserto el ultimo producto de esta peticion. \n\n return rows.insertId;\n } catch(err) {\n console.log(\"Entro al catch del model\")\n throw err;\n // console.log(err);\n }\n}", "static insert(request, response) {\r\n \r\n //recupera do body os campos que serao atualizados na tabela\r\n const conditions = [\r\n {\r\n field: 'title',\r\n value: request.body.title\r\n },\r\n {\r\n field: 'descr',\r\n value: request.body.descr\r\n },\r\n {\r\n field: 'photo',\r\n value: request.body.photo\r\n },\r\n {\r\n field: 'category',\r\n value: request.body.category\r\n },\r\n {\r\n field: 'Owner_ID',\r\n value: request.body.Owner_ID\r\n },\r\n ];\r\n\r\n //chama rotina para inclusao dos dados\r\n itemsModel.insert(conditions) \r\n .then( _ => {\r\n response.sendStatus(200);\r\n console.log('Item has been inserted'); \r\n })\r\n .catch(err => {\r\n response.sendStatus(500);\r\n console.log('Error inserting Item', err);\r\n });\r\n \r\n }", "function addItemsAscensorItemsElementos(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO ascensor_items_elementos (k_coditem,o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items elementos...Espere\");\n });\n}", "function insertRecord(req,res){\n var animal = new Animal()\n animal.name = req.body.name;\n animal.age = req.body.age;\n animal.description = req.body.description;\n //save the record\n animal.save((err, doc) => {\n //error check the entry\n if(!err){\n res.redirect('animal/list')\n } else{\n console.log('Error inserting record: '+ err)\n }\n });\n}", "saveAddOneError(collection, action) {\n return this.setLoadingFalse(collection);\n }", "insertCallback(error) {\n if (error) {\n Bert.alert({ type: 'danger', message: `Report failed: ${error.message}` });\n } else {\n Bert.alert({ type: 'success', message: 'Report succeeded' });\n this.formRef.reset();\n }\n }", "insert(h_query) {\n\n\t\t// ref insert list\n\t\tlet a_inserts = h_query.insert;\n\n\t\t// prep list of rows that have been observed from first element\n\t\tlet a_keys = Object.keys(a_inserts[0]);\n\n\t\t// build columns part of sql string\n\t\tlet s_keys = a_keys.map(s_key => `\"${s_key}\"`).join(',');\n\n\t\t// build values part of sql string\n\t\tlet a_rows = [];\n\n\t\t// each insert row\n\t\ta_inserts.forEach((h_row) => {\n\n\t\t\t// list of values to insert for this row\n\t\t\tlet a_values = [];\n\n\t\t\t// each key-value pair in row\n\t\t\tfor(let s_key in h_row) {\n\n\t\t\t\t// key is missing from accepted values section\n\t\t\t\tif(-1 === a_keys.indexOf(s_key)) {\n\t\t\t\t\treturn local.fail('new key \"${s_key}\" introduced after first element in insert chain');\n\t\t\t\t}\n\n\t\t\t\t// append to values\n\t\t\t\ta_values.push(valuify(h_row[s_key]));\n\t\t\t}\n\n\t\t\t// push row to values list\n\t\t\ta_rows.push(`(${a_values.join(',')})`);\n\t\t});\n\n\t\t//\n\t\tlet s_tail = '';\n\n\t\t//\n\t\tif(h_query.conflict_target && h_query.conflict_action) {\n\t\t\ts_tail += `on conflict ${h_query.conflict_target} ${h_query.conflict_action}`;\n\t\t}\n\n\t\t// prep sql query string\n\t\treturn `insert into \"${h_query.into}\" (${s_keys}) values ${a_rows.join(',')} ${s_tail}`;\n\t}", "function testExec_ThrowsMissingValues() {\n asyncTestCase.waitForAsync('testExec_ThrowsMissingValues');\n var query = new lf.query.InsertBuilder(hr.db.getGlobal());\n query.into(db.getSchema().getJob());\n query.exec().then(\n fail,\n function(e) {\n asyncTestCase.continueTesting();\n });\n}", "function addItemsPuertasItemsManiobras(k_coditem_maniobras,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_maniobras (k_coditem_maniobras, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_maniobras,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items maniobras...Espere\");\n });\n}", "Insert() {\n\n }", "function pet_insert_db(tx) {\n\n\tvar nome = $(\"#pet_nome\").val();\n var qtd = $(\"#pet_qtd\").val();\n var preco = $(\"#pet_preco\").val();\n\n //converter \n qtd = parseInt(qtd); \n preco = parseFloat(preco);\n\n //parar a inserção chama validação do forms jquery\n if(nome.length < 3 || qtd <=0 || preco <=0 ){\n return false;\n }\n if(nome =='' || qtd =='' || preco ==''){\n return false;\n }\n \n\n //-------------------------------------------------\n tx.executeSql('INSERT INTO Pet (nome, qtd, preco) VALUES (\"' + nome.toUpperCase() + '\", \"' + qtd + '\", \"' + preco + '\")');\n \n cadastrado();\n\n\tpet_view();\n}" ]
[ "0.70000505", "0.66978574", "0.6451408", "0.6393154", "0.6319233", "0.6264156", "0.6204822", "0.61405236", "0.6096386", "0.6084221", "0.60840803", "0.59512264", "0.59374774", "0.5872387", "0.5869617", "0.58605194", "0.5832813", "0.5815779", "0.58133054", "0.5811347", "0.5807199", "0.5800911", "0.5797511", "0.5797374", "0.57967734", "0.57878834", "0.57775396", "0.5751156", "0.5751156", "0.573825", "0.57371616", "0.57344913", "0.5714905", "0.57000625", "0.5687138", "0.5663551", "0.56601006", "0.5649536", "0.5647426", "0.56227356", "0.5617507", "0.56110936", "0.5590478", "0.55874455", "0.55845755", "0.5575367", "0.5573709", "0.55688894", "0.5567024", "0.5566401", "0.55631787", "0.55584234", "0.55559367", "0.55528396", "0.5545099", "0.5536989", "0.55351406", "0.55320483", "0.5530648", "0.5530461", "0.5530389", "0.55285776", "0.55276126", "0.5524089", "0.5515998", "0.551501", "0.551019", "0.54998815", "0.54969877", "0.5490454", "0.5481316", "0.54747355", "0.546856", "0.54603845", "0.5459561", "0.54565144", "0.545517", "0.5447912", "0.54446924", "0.54432195", "0.54398894", "0.5436362", "0.54336447", "0.543107", "0.54307824", "0.5421547", "0.5421547", "0.5420454", "0.5419008", "0.54170644", "0.5412553", "0.54109496", "0.5410896", "0.5408508", "0.5408358", "0.5407252", "0.54026014", "0.5398121", "0.5395098", "0.53947" ]
0.6570999
2
updating db status after rescheduling the cron
function update(row, status) { let errorId = parseInt(row.errorId) client.query( `UPDATE schedule_error SET status = '${status}' WHERE "errorId"= '${errorId}'`, (err, res) => { console.log(`UPDATE schedule_error SET status = '${status}' WHERE "errorId"= '${errorId}'`); if (err) { errorLog(err, 'rescheduling updation failed', 'Failed') }else { console.log('successfully updated'); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cron() {\n console.log(`Updating db - ${new Date()}`);\n updateDb(payload)()\n .then((res) => console.log('sucess!'))\n .catch((err) => console.error(err));\n }", "changeStatus(req, res, taskDB) {\n\n taskDB.status = 'On Hold';\n taskDB.total_time = 0;\n taskDB.updated_at = this.dateNow;\n\n\n // Update information\n taskDB.save((err, taskUpdated) => {\n\n if (err) {\n return res.status(500).json({\n success: false,\n message: err.message\n });\n }\n\n return this.restartLog(req, res, taskUpdated);\n });\n }", "refreshUpdateStatus() {}", "function updateStatusSCHEDULE(now, board, status, done) {\n db.getSchedules(function(err, schedules) {\n\n var selected = null;\n for(var i in schedules) {\n selected = checkSingleSchedule(now, status, schedules[i]);\n if (selected) break;\n }\n\n status.schedule = selected;\n if (selected) {\n status.temp_desired = selected.temp_desired;\n\n if (status.temp_desired <= status.temp_indoor) {\n //hay que apagar la calefaccion\n powerOff(status, board);\n } else {\n //hay que encender\n powerOn(status, board)\n }\n } else {\n //ninguno encaja\n //hay que apagar la calefaccion\n powerOff(status, board);\n }\n\n return done();\n });\n \n }", "function refresh(){\n getStatus(function(err, data){\n // Get time since last save in minutes\n var savediff = Math.ceil(getDateDiff(new Date(data.storage.db_last_save), new Date()) / timeCalc[1] );\n\n // Get number of changes to DB\n var changes = data.storage.db_changes;\n\n if(DEBUG){ \n smc.getMessage(4,null,`Database Refresh`);\n smc.getMessage(4,null,`DateDiff Time Between: ${ savediff } minutes`);\n smc.getMessage(4,null,`DB Changes: ${changes}`);\n }\n\n // Backup Database if more than 15 minues has passed or 5 or more changes have been made to the db\n if(savediff > (15) || changes > 5 ){\n smc.getMessage(1,6,\"Database Backup Started\")\n client.BGSAVE(function(err, res){\n if(err){ smc.getMessage(1,5,`Error Backing Up Redis: ${err}`); }\n else { smc.getMessage(1,null,\"Backup Complete\"); }\n });\n }\n });\n\n // Function calculates the difference between 2 date objects by comparing the objects milliseciond conversion of valueOf()\n function getDateDiff( date1, date2 ){\n if(date1 instanceof Date && date2 instanceof Date){\n var d1 = date1.valueOf(), d2 = date2.valueOf();\n \n return d2 - d1;\n }\n else { return 0; }\n }\n}", "function updateStatus(jobId, stageName, callback) {\n retrieveStage(jobId, stageName,function(err,res){\n if (err) {\n console.log(err);\n }\n else {\n console.log(res);\n var stages = JSON.parse(res[0]);\n var comand = stages.type;\n var status = stages.status;\n var input = stages.input;\n if (status == \"Initialized\") {\n stages.status = \"Scheduled\";\n //updating status and ts_scheduled in redis\n stages.ts_scheduled = new Date();\n console.log(\"changed status\");\n updateStage(jobId, stageName, JSON.stringify(stages),function(err,res){\n if (err) {\n console.log(err);\n }\n else {\n console.log(\"update stage\");\n schedule(jobId, stageName, input, comand, callback);\n }\n });\n }\n }\n });\n}", "function updateStatus () {\n get('services', function (services) {\n dataPackageCache = makeUpdatePackage(services);\n console.log('%s: Sending update.', new Date());\n sendUpdate(dataPackageCache);\n });\n}", "updateStatus(){\n getStatus();\n }", "function updateJobStatusToActive(req,res,next){\n db.none(`update Jobs set status = $1 where id = $2`,\n ['active', req.params.job_id])\n .then(() => {\n console.log('Updated Job Status to Active');\n next()\n })\n .catch((err) => {\n console.error('error updating job status: ', err);\n })\n}", "baseStatus(arg, callback) {\n if(arg.status == '1'){\n var up_status = 0;\n }else{\n var up_status = 1;\n }\n db.run(`UPDATE base_mast SET is_active = ? WHERE bid = ?`, [up_status, arg.unique], function (err) {\n if (err) {\n callback(err.message);\n }\n callback('1');\n })\n\t\t\t\n\t\t\n\t}", "function updateBookingStatus() {\n\n }", "async saveStatus(status) {\n const db = FirebaseLib.FIRESTORE_DB;\n try {\n const ref = db.collection(config.DBPaths.HISTORY).doc();\n const now = firebase.firestore.Timestamp.now();\n await ref.set({value: status, startedAt: now});\n this._checkNext(status);\n } catch (err) {\n console.error(\"Unable to save the status in the DB\", err);\n // TODO: saveStatus --> Error\n }\n }", "function updateStatus(newStatus) {\n console.log(\"PX: UPDATE STATUS:\" + newStatus + \"\\n\");\n }", "function startStatusUpdates(){\n if(!pound.userOptions.printStatusUpdateEveryNseconds){return;}\n var intervalCount = 1;\n pound.statusUpdateIntervalId = setInterval(function(){\n console.log('============= status update %s ==================', intervalCount++);\n printTotals();\n }, pound.userOptions.printStatusUpdateEveryNseconds * 1000);\n\n }", "async updateStatusTaskAdmin(parent, args, { db }) {\n try {\n if (db.payload.result.role === \"admin\") {\n // All Status\n const newData = {\n status: args.status,\n };\n const data = await db.task.update(newData, {\n where: {\n id: args.id,\n },\n });\n return await db.task.findOne({\n where: {\n id: args.id,\n },\n });\n } else {\n throw new Error(\"you are not allowed\");\n }\n } catch (error) {\n throw new Error(error);\n }\n }", "function refreshTimer() {\n $scope.refreshJobStatus();\n }", "function StatusTimer() {\n\tvar self = this;\n\tself.timer = undefined;\n\n\tself.setInterval = function(logic) {\n\t\tclearInterval(self.timer);\n\t\tself.timer = setInterval(function() {\n\t\t\tconsole.log(PROCESS_NAME + ' updating status....' + moment().format());\n\t\t\tlogic();\n\t\t}, process.env.INTERVAL_TIME || 5000);\n\t};\n\n\tself.clearInterval = function() {\n\t\tclearInterval(self.timer);\n\t};\n}", "function update_status () {\n $timeout(function () {\n var system_status = system_service.get_system_status_by_type(\"flow_in\");\n console.log('hv tgc flowin controller: query system status FlowIn[%s]', system_status);\n\n if (system_status == \"start\") {\n $scope.tgc_lock_state = true;\n $scope.hv_lock_state = true;\n }\n else if (system_status == \"stop\") {\n $scope.hv_lock_state = hv_tgc_service.get_lock_state(\"flow_in\", \"hv\");\n $scope.tgc_lock_state = hv_tgc_service.get_lock_state(\"flow_in\", \"tgc\");\n }\n else {\n console.log('hv tgc flowin controller: received invalid system status - '+system_status);\n }\n }, 0);\n }", "async updateStatusTaskPlanner(parent, args, { db }) {\n try {\n if (\n db.payload.result.role === \"planner\" ||\n db.payload.result.role === \"admin\"\n ) {\n // Status Submit\n const dataPlan = await db.task.findAll({\n include: [\n {\n model: db.project,\n where: { created_by: db.payload.result.id },\n },\n ],\n });\n if (dataPlan[0] !== undefined) {\n const newData = {\n status: args.status,\n };\n const dataWorker = await db.task.update(newData, {\n include: [\n {\n model: db.project,\n where: { created_by: db.payload.result.id },\n },\n ],\n });\n return await db.task.findOne({\n include: [\n {\n model: db.project,\n where: { created_by: db.payload.result.id },\n },\n ],\n });\n } else {\n throw new Error(\"data doesn't exist\");\n }\n } else {\n throw new Error(\"you are not allowed\");\n }\n } catch (error) {\n throw new Error(error);\n }\n }", "static async refreshStatus(bot){\n\t\t\n\t}", "sizeStatus(arg, callback) {\n if(arg.status == '1'){\n var up_status = 0;\n }else{\n var up_status = 1;\n }\n db.run(`UPDATE size_mast SET is_active = ? WHERE szid = ?`, [up_status, arg.unique], function (err) {\n if (err) {\n callback(err.message);\n }\n callback('1');\n })\n\t\t\t\n\t\t\n\t}", "function updateJobStatusToArchived(req,res,next){\n db.none(`update Jobs set status = $1 where id = $2`,\n ['archived', req.params.job_id])\n .then(() => {\n console.log('Updated Job Status to Archived');\n next()\n })\n .catch((err) => {\n console.error('error updating job status: ', err);\n })\n}", "async updateStatusTaskSpv(parent, args, { db }) {\n try {\n if (\n db.payload.result.role === \"supervisor\" ||\n db.payload.result.role === \"admin\"\n ) {\n const newStatus = {\n status: args.status,\n };\n const dataTask = await db.task.findOne({\n include: [\n {\n model: db.user,\n where: { spv_id: db.payload.result.id },\n },\n ],\n where: {\n id: args.id,\n },\n });\n\n const data = await db.task.update(newStatus, {\n include: [\n {\n model: db.user,\n where: { spv_id: db.payload.result.id },\n },\n ],\n where: {\n id: args.id,\n },\n });\n // console.log(dataTask.dataValues.id);\n const dataNote = await db.note.create({\n task_id: dataTask.dataValues.id,\n note: args.note,\n });\n const dataEmail = await db.task.findOne({\n include: [\n {\n model: db.project,\n include: [\n {\n model: db.user,\n },\n ],\n },\n ],\n where: {\n id: args.id,\n },\n });\n main(\n dataEmail.project.user.email,\n db.payload.result.email,\n dataEmail.title,\n dataEmail.description,\n args.status,\n args.note\n );\n } else {\n throw new Error(\"you are not allowed\");\n }\n } catch (error) {\n throw new Error(error);\n }\n }", "async function updateTaskStatus(pStatus) {\r\n await taskRef.update({status: pStatus});\r\n console.log(\"Status of \" + task + \"updated to \" + pStatus + \".\");\r\n}", "async updateStatusTaskWorker(parent, args, { db }) {\n try {\n if (\n db.payload.result.role === \"worker\" ||\n db.payload.result.role === \"admin\"\n ) {\n // Status Todo Doing Done\n const findData = await db.task.findAll({\n where: {\n assignee: db.payload.result.id,\n },\n });\n if (findData[0] !== undefined) {\n const newData = {\n status: args.status,\n };\n const dataWorker = await db.task.update(newData, {\n where: {\n id: args.id,\n },\n });\n return await db.task.findOne({\n where: {\n assignee: args.id,\n },\n });\n }\n } else {\n throw new Error(\"you are not allowed\");\n }\n } catch (error) {\n throw new Error(\"you are not allowed\");\n }\n }", "updateDB(task, newStatus) {\n const completedTaskKey = task.key;\n // Updated the task status property in that selected object\n task.taskStatus = newStatus;\n // Update that specific object in firebase\n const dbRefComplete = firebase.database().ref(`${this.props.userId}/${completedTaskKey}`);\n dbRefComplete.update(task);\n }", "async function updateWorkerStatus(initial = false) {\n if (initial === true) {\n return await Setting.findOrCreate({\n where: { type: \"worker\" },\n defaults: { data: new Date().toISOString() },\n });\n }\n\n await Setting.update(\n { data: new Date().toISOString() },\n { where: { type: \"worker\" } }\n );\n}", "runUpdate() {\n this.utils.log(\"\");\n this.utils.log(\"******************* Running update ******************* \");\n this.utils.log(\"\");\n\n // Reset update flags\n this.updateTweets = false;\n this.updateStatus = false;\n\n // Process any new tweets before performing other operations\n this.checkTrackedTweets().then(() => {\n // Process any mentions\n this.checkMentions().then(() => {\n // Save the status file if needed\n if (this.updateTweets || this.updateStatus) {\n this.dataHandler.saveStatus(this.botStatus);\n }\n });\n\n // Post a normal tweet\n this.actionHandler.postTweet(this.generator.generateResponse());\n\n });\n }", "function successCb(){\n\t\t\t\tdbm.updateJobFinish(uuid, function(err, rows, fields){\n\t\t\t\t\tif(err) log.error('update status error:', err);\n\t\t\t\t\tdelete jobpool[uuid];\n\t\t\t\t})\n\t\t\t}", "function updateSchedule() {\n //update schedules of all arenas ! \n Arena.find(function (err, arenaArr) {\n \n if (!err) {\n async.each(arenaArr,function(arena){\n arena.schedule.shift();\n arena.schedule.push(arena.default_weekly_schedule);\n arena.markModified('schedule');\n arena.save(function(arenaSaveErr){\n console.log(\"Arena Save Error \" + arenaSaveErr);\n })\n },function(asyncErr){\n console.log(\"Async has encountered an error \"+ asyncErr);\n })\n }\n else {\n console.log(err + \"Error accessing arenas from database\");\n\n }\n })\n}", "function cronJob() {\n\t\t//Schedule Synchronized Loop, so we dont get of sync \n\t\tnextMinute(function () {\n util.log(\"Exec loop\"); \n MomoInstance.execCronsNow(); \n cronJob();\n\t\t});\n\t}", "scheduleRefresh() {}", "scheduleRefresh() {}", "async makeCurrent() {\n await Period.query()\n .where('active', 1)\n .update({ active: false });\n\n this.active = true;\n this.save();\n }", "function update()\n\t{\n\t setNavBarState({buttonDisabled: true});\n\t\t\n\t fetch('/api/get_script_status').then(res => res.json()).then(data => {\n\n\t\t//If our script is not currently \"Running\", then we start it.\n\t if (data.hasOwnProperty('status') === false || data[0]['status'] !== \"Running\" ) {\n\t\t setNavBarState({chipColor: \"yellow\", buttonDisabled: true, chipDisplay: \"inline\"});\n\t\t fetch('/api/update_data');\n\t\t}});\n\t}", "function updateStatusData() {\r\n\r\n var requestURL = 'comm/getStatus';\r\n var method = 'POST';\r\n var headers = {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n };\r\n var body = {\r\n all: true\r\n }\r\n\r\n jsonBody = JSON.stringify(body);\r\n\r\n fetch(requestURL, {\r\n headers: headers,\r\n method: method,\r\n body: jsonBody\r\n }).then((response) => {\r\n if (parseInt(response.clone().status) < 400) {\r\n // fetch was successful, store it in the IDB.\r\n response.clone().json().then((result) => {\r\n for(var i in result.zoneStatus){\r\n StatusIDBFuncSet.addData(StatusIDBSettings.tables[0].tableName, result.zoneStatus[i]);\r\n }\r\n }).catch((err) => {\r\n console.log(`[SW] ERROR in status json: ${err}`);\r\n console.log(response.clone().json());\r\n })\r\n } else {\r\n console.log('[SW] Server returned error for /comm/getStaus:', response.clone().status);\r\n }\r\n }).catch((err) => {\r\n console.log('[SW] Failed to get new status for loc: ', loc);\r\n })\r\n}", "async function updateStatus($items, status){\n\t\t//TODO: Error handling in case Promise rejects\n\t\tawait Promise.all($items.toArray().map(async function(item) {\n\t\t\treturn self.db.updateStatus($(item).attr('id'), status);\n\t\t}));\n\t\tawait self.loadAllItems();\n\t}", "function statusUpdate(status, custId) {\n\n STATUS = status\n updateStatusCSS();\n detailsUpdate(customerId);\n}", "updateOnboardingStatus ({ commit }, status) {\n commit('SET_ONBOARDING_STATUS', status)\n }", "updateScheduledState(callback) {\n if (isScheduled) {\n series([staging, production].map(FunctionName=> {\n return function update(callback) {\n if (state === 'disabled') {\n setTimeout(function rateLimit() {\n cloudwatch.disableRule({\n Name: FunctionName,\n }, callback)\n }, 200)\n }\n else {\n setTimeout(function rateLimit() {\n cloudwatch.enableRule({\n Name: FunctionName,\n }, callback)\n }, 200)\n }\n }\n }), callback)\n }\n else {\n callback()\n }\n }", "function bgApplyPrefs() {\n\tscheduleReleaseUpdates();\n\tscheduleSyncs();\n\tlistenNotifications();\n}", "function sendStatusUpdate() {\n var queryParamString = \"type=heartbeat\";\n queryParamString += \"&username=\" + AccountServices.username;\n queryParamString += \"&displayName=\" + MyAvatar.displayName;\n queryParamString += \"&status=\";\n queryParamString += currentStatus;\n\n var uri = REQUEST_URL + \"?\" + queryParamString;\n\n if (DEBUG) {\n console.log(\"sendStatusUpdate: \" + uri);\n }\n\n request({\n uri: uri\n }, function (error, response) {\n startHeartbeatTimer();\n\n if (error || !response || response.status !== \"success\") {\n console.error(\"Error with updateStatus: \" + JSON.stringify(response));\n return;\n }\n });\n }", "updateStatus(db, username, status, callback) {\n this.collection = db.collection(\"USERS\");\n this.collection.update({\"username\" : username}, {$set : { \"status\" : status}}, function(err, results) {\n callback(results, null);\n });\n }", "function updateDBs()\r\n{\r\n update_genresDB(true);\r\n update_monthDB();\r\n\tupdate_tableDB();\r\n\tupdate_mpaaDB();\r\n}", "async function updateDatabaseOnInit () {}", "static markTaskAsDone(taskId='0'){\n var updateQueryClause = `UPDATE ${Task.tableName} SET isCompleted = ? WHERE id = ? `;\n const params = [1, taskId]\n console.log(\"Query \"+updateQueryClause)\n return this.repository.databaseLayer.executeSql(updateQueryClause, params)\n }", "function cron(req, config, callback){\n checkETLStatus(req, config, function(err, response, data){\n if (err){\n callback(err);\n } else {\n console.log(\"ETL Status Check Successful\", data);\n fetchPIList(req, config, function(err, response, data){\n if (err){\n callback(err);\n } else {\n console.log(\"Investigators List Successfully fetched and uploaded to S3\");\n }\n });\n }\n });\n}", "function updateAppStatus(app){\n if (app.running){\n if (app.state == \"STOPPED\"){\n app.state = \"MONITORING\";\n app.status = \"RUNNING\";\n }\n else if (app.state == \"STOPPING\"){\n app.status = \"STOPPING\";\n }\n else if (app.state == \"STARTING\"){\n app.state = \"MONITORING\";\n app.status = \"RUNNING\";\n }\n else {\n app.state = \"RUNNING\";\n app.status = \"RUNNING\";\n }\n }\n else { //!app.running\n if (app.state == \"STARTING\"){\n app.status = \"STARTING\";\n }\n else if (app.state == \"MONITORING\" && app.restart == \"true\"){\n startApp(app);\n }\n else {\n app.state = \"STOPPED\";\n app.status = \"STOPPED\";\n }\n }\n updateAppLabelStatus(app);\n}", "changeAllSubTaskStatusWithId(subTaskId, status) {\n let realm = new Realm({schema: [TaskSchema, SubTaskSchema, NotesSchema]});\n const file = realm.objects('SUBTASK').filtered('taskId == $0', subTaskId);\n realm.write(() => {\n for (let i = 0; i < file.length; i++) {\n file[i].isDone = status;\n }\n });\n }", "function updateDatabase() {\n var promises = [];\n getAllData();\n}", "function startCron (){\n\n stopCron();\n if(CRON_STATUS =='START'){\n interval = setInterval(postInit,CRON_INTERVAL*60*1000 )\n }\n return pushData();\n\n}", "function getStatus() {\n\tapi({ data: \"cmd=getstatus\" },syncStatus);\n}", "function updateEmailStatus(email_id, status){\n conn.query('UPDATE Emails SET status=$1 WHERE email_id=$2',\n [\n status,\n email_id\n ]).on('error', console.error);\n}", "function commit_battle_count(){\n\tbattle_count=battle_count+1;\n\tvar battle_count_log=database.ref(\"global-variables/\");\n\tbattle_count_log.update({\n\t\t\"battle_count\" : battle_count\n\t});\n}", "changeMainTaskStatusWithId(taskId, status) {\n let realm = new Realm({schema: [TaskSchema, SubTaskSchema, NotesSchema]});\n const file = realm.objects('TASK').filtered('id == $0', taskId);\n realm.write(() => {\n file[0].isDone = status;\n });\n this.changeAllSubTaskStatusWithId(taskId, status);\n }", "function processStatus(db)\n{\n try {\n var doRow = false;\n var secondRow = false;\n globalStatus = 4;\n statusMarquee = `<div class=\"row\">\n <div class=\"col-2 text-warning\">\n \t<strong>System</strong>\n </div>\n <div class=\"col text-white\">\n \t<strong>Status</strong>\n </div>\n <div class=\"col-2 text-warning\">\n \t<strong>System</strong>\n </div>\n <div class=\"col text-white\">\n \t<strong>Status</strong>\n </div>\n </div><div class=\"row\" style=\"${secondRow ? `background: rgba(255, 255, 255, 0.1);` : ``}\">`;\n\n\n db.each(function (thestatus) {\n try {\n if (doRow)\n {\n if (!secondRow)\n {\n secondRow = true;\n } else {\n secondRow = false;\n }\n statusMarquee += `</div><div class=\"row\" style=\"${secondRow ? `background: rgba(255, 255, 255, 0.1);` : ``}\">`;\n doRow = false;\n } else {\n doRow = true;\n }\n\n switch (thestatus.status)\n {\n case 1:\n statusMarquee += `<div class=\"col-2\">\n \t<span class=\"m-1 badge badge-danger\">${thestatus.label}</span>\n </div>\n <div class=\"col text-white\">\n \t<strong>CRITICAL</strong>: ${thestatus.data}\n </div>`;\n if (globalStatus > 1)\n globalStatus = 1;\n break;\n case 2:\n statusMarquee += `<div class=\"col-2\">\n \t<span class=\"m-1 badge badge-urgent\">${thestatus.label}</span>\n </div>\n <div class=\"col text-white\">\n \t<strong>Urgent</strong>: ${thestatus.data}\n </div>`;\n if (globalStatus > 2)\n globalStatus = 2;\n break;\n case 3:\n statusMarquee += `<div class=\"col-2\">\n \t<span class=\"m-1 badge badge-warning\">${thestatus.label}</span>\n </div>\n <div class=\"col text-white\">\n \t<strong>Warning</strong>: ${thestatus.data}\n </div>`;\n if (globalStatus > 3)\n globalStatus = 3;\n break;\n case 4:\n statusMarquee += `<div class=\"col-2\">\n \t<span class=\"m-1 badge badge-secondary\">${thestatus.label}</span>\n </div>\n <div class=\"col text-white\">\n \t<strong>Offline</strong>: ${thestatus.data}\n </div>`;\n break;\n case 5:\n statusMarquee += `<div class=\"col-2\">\n \t<span class=\"m-1 badge badge-success\">${thestatus.label}</span>\n </div>\n <div class=\"col text-white\">\n \t<strong>Good</strong>: ${thestatus.data}\n </div>`;\n if (globalStatus > 3)\n globalStatus = 5;\n break;\n default:\n }\n } catch (e) {\n iziToast.show({\n title: 'An error occurred - Please check the logs',\n message: `Error occurred during Status iteration in processStatus call.`\n });\n console.error(e);\n }\n });\n\n statusMarquee += `</div>`;\n\n if (disconnected)\n globalStatus = 0;\n\n\n var status = document.getElementById('status-div');\n var color = 'rgba(158, 158, 158, 0.3)';\n clearInterval(flashInterval);\n switch (globalStatus)\n {\n case 0:\n color = 'rgba(244, 67, 54, 0.5)';\n statusLine.innerHTML = 'No connection to WWSU! The server might be offline and WWSU not functional';\n if (globalStatus !== prevStatus)\n offlineTimer = setTimeout(function () {\n responsiveVoice.speak(\"Attention! The display sign has been disconnected from the server for one minute. This could indicate a network problem, the server crashed, or the server is rebooting.\");\n }, 60000);\n // Flash screen for major outages every second\n flashInterval = setInterval(function () {\n $(\"html, body\").css(\"background-color\", \"#D32F2F\");\n setTimeout(function () {\n $(\"html, body\").css(\"background-color\", \"#000000\");\n }, 250);\n }, 1000);\n\n Slides.slide(`system`).isSticky = true;\n Slides.slide(`system`).active = true;\n break;\n case 1:\n color = 'rgba(244, 67, 54, 0.5)';\n statusLine.innerHTML = 'WWSU is critically unstable and is not functioning properly!';\n clearTimeout(offlineTimer);\n if (globalStatus !== prevStatus)\n responsiveVoice.speak(\"Warning! Warning! The WWSU system is in a critically unstable state. Please review the display sign and take action immediately to fix the problems.\");\n // Flash screen for major outages every second\n flashInterval = setInterval(function () {\n $(\"html, body\").css(\"background-color\", \"#D32F2F\");\n setTimeout(function () {\n $(\"html, body\").css(\"background-color\", \"#000000\");\n }, 250);\n }, 1000);\n\n Slides.slide(`system`).isSticky = true;\n Slides.slide(`system`).active = true;\n break;\n case 2:\n color = 'rgba(245, 124, 0, 0.5)';\n statusLine.innerHTML = 'WWSU is experiencing issues that may impact operation';\n clearTimeout(offlineTimer);\n if (globalStatus !== prevStatus)\n responsiveVoice.speak(\"Attention! The WWSU system is encountering issues at this time that need addressed.\");\n // Flash screen for partial outages every 5 seconds\n // Flash screen for major outages every second\n flashInterval = setInterval(function () {\n $(\"html, body\").css(\"background-color\", \"#FF9800\");\n setTimeout(function () {\n $(\"html, body\").css(\"background-color\", \"#000000\");\n }, 250);\n }, 5000);\n\n Slides.slide(`system`).isSticky = true;\n Slides.slide(`system`).active = true;\n break;\n case 3:\n statusLine.innerHTML = 'WWSU is experiencing minor issues';\n clearTimeout(offlineTimer);\n color = 'rgba(251, 192, 45, 0.5)';\n\n Slides.slide(`system`).isSticky = false;\n Slides.slide(`system`).active = true;\n break;\n case 5:\n statusLine.innerHTML = 'WWSU is operational';\n clearTimeout(offlineTimer);\n color = 'rgba(76, 175, 80, 0.5)';\n Slides.slide(`system`).active = false;\n Slides.slide(`system`).isSticky = false;\n break;\n default:\n statusLine.innerHTML = 'WWSU status is unknown';\n color = 'rgba(158, 158, 158, 0.3)';\n Slides.slide(`system`).active = false;\n Slides.slide(`system`).isSticky = false;\n }\n\n prevStatus = globalStatus;\n\n status.style.backgroundColor = color;\n status.style.color = 'rgba(255, 255, 255, 1)';\n statusLine.style.color = 'rgba(255, 255, 255, 1)';\n\n // Update status html\n var innercontent = document.getElementById('system-status');\n if (innercontent)\n innercontent.innerHTML = statusMarquee;\n\n } catch (e) {\n iziToast.show({\n title: 'An error occurred - Please check the logs',\n message: 'Error occurred during the call of Status[0].'\n });\n console.error(e);\n }\n}", "setReminderStatusIfNotError(id, status) {\n debug('setReminderStatusIfNotError(id=%d, status=%s)', id, status);\n return database.ready.then(db =>\n db.update(\n 'reminders SET status = ? WHERE id = ? AND status != \"error\"',\n status, id\n )\n );\n }", "async updateStatusTaskSpvApprove(parent, args, { db }) {\n try {\n if (\n db.payload.result.role === \"supervisor\" ||\n db.payload.result.role === \"admin\"\n ) {\n const newData = {\n status: args.status,\n };\n const data = await db.task.update(newData, {\n include: [\n {\n model: db.user,\n where: { spv_id: db.payload.result.id },\n },\n ],\n where: {\n id: args.id,\n },\n });\n\n const dataEmail = await db.task.findOne({\n include: [\n {\n model: db.project,\n include: [\n {\n model: db.user,\n },\n ],\n },\n ],\n where: {\n id: args.id,\n },\n });\n main(\n dataEmail.project.user.email,\n db.payload.result.email,\n dataEmail.title,\n dataEmail.description,\n dataEmail.status\n );\n // console.log(dataEmail.title);\n } else {\n throw new Error(\"you are not allowed\");\n }\n } catch (error) {\n throw new Error(error);\n }\n }", "function doRefresh(){\n let nextUpdate = new Date();\n nextUpdate.setMinutes(nextUpdate.getMinutes() + 1);\n $('#nextUpdate').html(nextUpdate.toLocaleString());\n clearTable();\n loadDefaults();\n}", "function updateDatabase() {\n for (i = 0; i < 100; i++) {\n delaycalculator.platsuppslag(LIST_OF_STATIONS[i], database.updateDelay);\n }\n }", "setStatus(pid, status) {\n\t\tthis.statusCache[pid] = status;\n\t}", "function statusUpdate() {\n\t\tvar webAPI3 = new globals.xml.gameStatus(gameID);\n\t}", "function updateQueue(status, queue_id, callback) {\n const sql_check = \"SELECT 1 FROM companyqueue WHERE queue_id = UPPER($1)\";\n var sql = \"\";\n if (status == 'ACTIVATE') {\n sql = \"UPDATE companyqueue SET status = 'ACTIVE' WHERE queue_id = UPPER($1)\";\n } else if (status == 'DEACTIVATE') {\n sql = \"UPDATE companyqueue SET status = 'INACTIVE' WHERE queue_id = UPPER($1)\";\n }\n if (callback) {\n pool\n .query(sql_check, [queue_id])\n .then(function (result) {\n if (result.rows.length == 1) {\n pool\n .query(sql, [queue_id])\n .then(function (results) {\n callback(null, results);\n })\n .catch(function (error) {\n callback(error, null);\n });\n } else {\n callback(new Error(\"UNKNOWN_QUEUE\"), null);\n }\n\n })\n .catch(function (error) {\n callback(error, null);\n });\n }\n}", "async function refresher(msg) {\n for (let i of initPaths)\n if (!existsSync(i)) mkdirSync(i)\n const time = new Date(`${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate() + 1}`)\n setTimeout(async () => {\n statdb.refreshAllStat()\n .then(() => msg.static().log.modLog('osubot initializer', 'Refreshed user status'))\n setInterval(async () => {\n statdb.refreshAllStat()\n .then(() => msg.static().log.modLog('osubot initializer', 'Refreshed user status'))\n }, 86400000)\n }, time.getTime() - Date.now())\n}", "async function dailyUpdate() {\n //QUOTA CHECK AND THEN CONSOLE LOG THE LAST UPDATE IF QUOTA IS EMPTY\n var lastUpdateStamp = await db.query(`SELECT last_update_stamp FROM info WHERE id = 1`);\n let currentQuota = await quotaCheck();\n if (currentQuota > 0) {\n console.log(`Checking if database requires daily update...`);\n var currentTimestamp = getCurrentTimestamp();\n //Check if it's been 24 hours since last daily update\n if (currentTimestamp - lastUpdateStamp[0].last_update_stamp > 86400) {\n console.log(`Last update performed at ${timestampToDate(lastUpdateStamp[0].last_update_stamp)}, executing Daily Update...`);\n //API quota has room, set last update stamp in DB and execute Daily Update functions\n\n let APIdata = await APIRequest(\"https://api-football-v1.p.rapidapi.com/v2/fixtures/league/524\");\n\n await pointPenalty(APIdata, currentTimestamp);\n await checkGames(APIdata, currentTimestamp, \"Daily\");\n await oddsUpdate();\n await standingsUpdtate();\n //Update Database with new update timestamp\n db.query(`UPDATE info SET last_update_stamp = ${currentTimestamp} WHERE id = 1`);\n console.log(`Daily Update completed as of ${timestampToDate(getCurrentTimestamp())}.`)\n }\n else {\n console.log(`Last Daily Update performed at ${timestampToDate(lastUpdateStamp[0].last_update_stamp)}, Daily Update is not required.`);\n };\n }\n else if (currentQuota == 0) {\n console.log(`Unable to run Daily Update function due to insufficient API Quota. Last update performed on ${timestampToDate(lastUpdateStamp)}`);\n };\n}", "function updateDB(POST,response){\n\n\ttitle=POST.title; description=POST.description; location=POST.location; id=POST.id; link=POST.link; status=POST.status;\n\tvar sqlQuery = 'UPDATE issues SET title=\"'+title+'\",description=\"'+description+'\",location=\"'+location+'\",link=\"'+link+'\", status=\"'+status +'\" WHERE id=' + id;\n\tdbAccess.runQuery(sqlQuery, serve(response,id));\n }", "scheduleWatchMessages() {\n this.cronJob = schedule(checkFrequency, this.checkNewMessages.bind(this), {});\n }", "async handlePullRequestChange(context) {\n const timeStart = Date.now()\n const newStatus = await getStatus(context)\n await setStatus({ timeStart, ...newStatus }, context)\n }", "_load() {\n if (this._loading === undefined) this._loading = false;\n if (this._loading) return;\n this._loading = true;\n\n this._table().children('caption').addClass('updating');\n\n Fwk.web_service_GET(\n \"/replication/qserv/worker/status\",\n {timeout_sec: 2, version: Common.RestAPIVersion},\n (data) => {\n this._display(data.status);\n Fwk.setLastUpdate(this._table().children('caption'));\n this._table().children('caption').removeClass('updating');\n this._loading = false;\n },\n (msg) => {\n console.log('request failed', this.fwk_app_name, msg);\n this._table().children('caption').html('<span style=\"color:maroon\">No Response</span>');\n this._table().children('caption').removeClass('updating');\n this._loading = false;\n }\n );\n }", "function module_sync() {\n\t//tycheesdb_syncDatabaseNow(APP_NAME_SETTINGS);\n} // .end of module_sync", "_scheduleUpdate() {\n let date = new Date().getTime();\n if (date - this._lastRefresh > MIN_REFRESH) {\n this.refresh();\n }\n else {\n this._requested = true;\n }\n }", "function sync() {\n// start sync process\n\tsetStatusDisplay(\"syncStatus\",1);\n\n\tgetStatus();\n}", "async function resetAll() {\n let query = `UPDATE weekdays SET days_counter = 0, avail_status = 'less'`;\n return await pool.query(query);\n }", "static reScheduleTask(taskId='0', taskFinishBy=''){\n var updateQueryClause = `UPDATE ${Task.tableName} SET taskFinishBy = ? WHERE id = ? `;\n console.log(\"Update query \"+updateQueryClause)\n const params = [taskFinishBy, taskId]\n return this.repository.databaseLayer.executeSql(updateQueryClause, params)\n }", "function checkstatusdatabase()\n{ \t\n db.transaction(getstatusOfflineValues, errorCB);\n}", "async function refreshServerDatabase() {\n try {\n console.log(\"refreshServerDatabase\");\n } catch (error) {\n console.error(\"Error: \", error);\n // possibly send e-mail here.\n }\n}", "function updateClassDB(){\n\n}", "async checkin(req, res){\n const {id_scheduling} = req.params\n\n let scheduling = await Scheduling.findById({_id: id_scheduling}).where('status').equals(\"scheduled\").exec() \n if(!scheduling)\n return res.status(404).send()\n\n let user = await User.findById({_id: scheduling.user}).exec() \n if(!user)\n return res.status(404).send()\n \n let updateUser = []\n let updateScheduling = []\n if(scheduling.services == \"Pé e Mão\"){\n return res.status(404).send()\n\n }else{\n /* update = {$inc: {'remainingPack' : -1}, '$push': {'usageHistory': {'$each': [scheduling.services]}, 'dateHistory': {'$each': [scheduling.date]}}} */\n updateUser = {$inc: {'remainingPack' : -1}}\n updateScheduling = {$set: {'status': \"confirmed\"}}\n }\n \n user = await User.findByIdAndUpdate({_id: scheduling.user}, updateUser, {new: true}).exec()\n if(!user)\n return res.status(404).send()\n \n scheduling = await Scheduling.findByIdAndUpdate({_id: scheduling._id}, updateScheduling, {new: true}).exec()\n if(!scheduling)\n return res.status(404).send()\n\n if(user.remainingPack == 0){\n update = {$set: {'status': \"finished\"}}\n user = await User.findByIdAndUpdate({_id: scheduling.user}, update, {new: true}).exec()\n if(!user)\n return res.status(404).send()\n else\n return res.status(200).json(user)\n }else\n return res.status(200).json(user)\n }", "function UpdateDatabase() {\n // This function is used to update the database's values, and runs frequently on small sets of data\n const props = PropertiesService.getScriptProperties();\n var LastRan = parseInt(props.getProperty('LastRan'), 10); // Determine the last successfully processed record\n const BatchSize = 127; // Number of records to process on each execution\n const db = getMyDb_(1); // Get the alphabetized db.\n const nMembers = db.length; // Database records count.\n const SS = wb.getSheetByName('Members');\n // Read in the tiers as a 21x3 array (If the tiers are moved, this getRange MUST be updated!)\n const aRankTitle = wb.getSheetByName('Ranks').getRange(2, 1, 21, 3).getValues();\n\n if (nMembers < SS.getLastRow() - 1) {\n // Add new members.\n return AddMemberToDB_(db);\n } else if (LastRan >= nMembers) {\n // Perform scoreboard update.\n UpdateScoreboard();\n props.setProperty(\"LastRan\", \"0\");\n return true;\n }\n\n const lock = LockService.getScriptLock();\n if (lock.tryLock(30000)) {\n const start = new Date().getTime();\n do {\n var batch = db.slice(LastRan, LastRan + BatchSize);\n var idString = batch.map(function (member) { return member[1]; }).filter(function (id) { return !!id; }).join(\",\");\n var response = UrlFetchApp.fetch(\"http://horntracker.com/backend/mostmice.php?function=hunters&hunters=\" + idString).getContentText();\n if (response.indexOf(\"maintenance\") !== -1 || response.indexOf(\"Unexpected\") === 0)\n return false;\n var mmData = JSON.parse(response).hunters;\n batch.forEach(function (member) {\n var htId = \"ht_\" + member[1];\n var data = mmData[htId];\n if (!data) {\n // Hunter was queried for, but not found -> Lost\n member[11] = \"Lost\";\n } else {\n var whelps = data.mice[\"Whelpling\"] || 0;\n var wardens = data.mice[\"Draconic Warden\"] || 0;\n var dragons = data.mice[\"Dragon\"] || 0;\n // Update the LastSeen timestamp.\n member[3] = Date.parse(data.lst.replace(/-/g, \"/\"));\n // Update the LastChange if needed.\n if (member[4] === 0 || (whelps !== member[6] || wardens !== member[7] || dragons !== member[8])) {\n member[4] = member[3];\n }\n member[5] = new Date().getTime();\n member[6] = whelps;\n member[7] = wardens;\n member[8] = dragons;\n // Determine the member's title.\n for (var k = 0; k < aRankTitle.length; ++k) {\n if (dragons <= aRankTitle[k][2]) {\n member[9] = aRankTitle[k][0];\n break;\n }\n }\n member[11] = (member[3] < new Date().getTime() - 20 * 86400 * 1000) ? \"Old\" : \"Current\";\n }\n });\n\n saveMyDb_(batch, [2 + LastRan, 1, batch.length, batch[0].length]);\n LastRan += BatchSize;\n props.setProperty(\"LastRan\", LastRan.toString());\n } while (LastRan < nMembers && (new Date().getTime() - start) < 140000);\n }\n lock.releaseLock();\n}", "function updateStatus(id, status){\n return db('tickets')\n .where({id})\n .first()\n .update(status, 'id')\n .then(count => {\n return findById(id)\n })\n}", "static tickFullUpdate() {\n let updateParcel = {\n text: \"\",\n color: \"#d352ad\",\n tooltip: \"\"\n };\n\n this.refreshState()\n .then((timerState) => {\n console.debug('[Net]', '(API status result)', timerState);\n\n this.handleTimerState(timerState, updateParcel);\n this.networkOk = true;\n })\n .catch((err) => {\n console.warn('[Net]', '(API status fetch failed)', err);\n\n updateParcel.text = \"!\";\n updateParcel.color = \"#e74c3c\";\n updateParcel.tooltip = \"Communication error\";\n\n this.networkOk = false;\n })\n .then(() => {\n this.applyBadgeConfig(updateParcel);\n });\n }", "updateBusinessOwnerStatus(id, type) {\n return new Promise((resolve, reject) => {\n logger.info('initialize updateBusinessOwnerStatus() ');\n let timestamp = util.getGMT();\n let sql = sqlConfig.businessOwner.updateBusinessOwnerStatus;\n let sqlQuery = format(sql, type, timestamp, id)\n DbInstance.doUpdate(sqlQuery).then(status => {\n logger.info('success in updateBusinessOwnerStatus() ');\n resolve(status);\n }).catch(err => {\n logger.error('error in updateBusinessOwnerStatus() ');\n reject(err);\n });\n });\n }", "function updateTasks() {\n\n let toDoContainer = allTasks.filter(t => t['status'] == 'toDoContainer');\n update('toDoContainer', toDoContainer);\n\n let progress = allTasks.filter(t => t['status'] == 'progress');\n update('progress', progress);\n\n let testing = allTasks.filter(t => t['status'] == 'testing');\n update('testing', testing);\n\n let done = allTasks.filter(t => t['status'] == 'done');\n update('done', done); \n}", "async check() {\n this.logger.log('Checking if the database is healthy...');\n let checkRequired = true;\n await this.dbutil.transaction(async (task) => {\n while (checkRequired) {\n checkRequired = await this.initSubmodules(task);\n }\n });\n this.logger.log('database is healthy');\n }", "function sched_refresh_global() {\n setTimeout(function() {\n client.get('refresh_interval', function(err, reply) {\n refreshInterval = reply;\n });\n\n client.lrange('op-qps', 0, -1, function(err, ops) {\n qpsOps = ops;\n });\n\n client.lrange('op-bps', 0, -1, function(err, ops) {\n bpsOps = ops;\n });\n\n client.lrange('op-total', 0, -1, function(err, ops) {\n totalOps = ops;\n });\n\n client.lrange('apps', 0, -1, function(err, appList) {\n apps = appList;\n });\n\n sched_refresh_global();\n }, 2000);\n}", "updateStatus(requestID, status, processed) {\n this.assertDefined(requestID);\n this._collection.update({ _id: requestID }, { $set: { status, processed } });\n }", "function updateAppStatus() {\n record(curAlist.toNumList());\n curAlist = getAdjlist();\n updateAdjlistFrame();\n updatePropFrame();\n}", "function finalizeJobs() {\n getCompletedJobs().then(function (jobs) {\n var Job = mongoose.model('Job');\n var ReportLog = mongoose.model('ReportLog');\n jobs.forEach(function (job) {\n var current=job.current;\n var modDate = new Date();\n\n Job.findOneAndUpdate({ '_id' : new mongoose.Types.ObjectId(job._id) }, { current:current ,modified: modDate, status: 'F' }, function(err, updatedJob) {\n if(err)\n console.error('Error updating job -> ', err);\n else {\n //creating jobLog\n createJobLogs(updatedJob, current);\n\n completeDurationLogs(job._id);\n }\n });\n });\n });\n }", "function update(){\r\n updateBackground();\r\n //extractData();\r\n loop();\r\n // checkStatus();\r\n \r\n}", "function startUpdating() {\n\tif(!retrying) updateTicker(false);\n\tupdateHistory();\n}", "function updateJobStatus() {\n\treturn JobsService.updateJobStatus(_transactionId, _jobStatusTag)\n\t\t.catch(function (err) {\n\t\t\tif (err) {\n\t\t\t\tconsole.log(err);\n\t\t\t}\n\t\t});\n}", "function updateNotificationStatus(notificationId,delivered){\n var query = connection.query('UPDATE notifications set delivered='+delivered+',attempted=1 where id=:NOTIFICATION_ID',{NOTIFICATION_ID:notificationId},function(err,rows){console.log(err);})}", "function markInactive() {\n try {\n console.log('in markInactive ');\n model.$where('( ISODate() - this.updatedAt ) > 10 * 60000 && this.status == \"login\" ')\n .exec(function (err, users) {\n if (err) console.log('error at markInactive()' + err);\n if (users === 'undefined') {\n console.log('no logged on user at markInactive()'); return;\n }\n else {\n users.forEach(function (usr) {\n console.log('updating => ' + usr);\n if ((new Date() - usr.updatedAt) > 20 * 60000)\n model.findOneAndUpdate({ _id: usr._id }, { status: 'disconnected' }, function (err, data) {\n console.log('updated => ' + data);\n });\n else\n model.findOneAndUpdate({ _id: usr._id }, { status: 'inactive' }, function (err, data) {\n console.log('updated => ' + data);\n });\n });\n }\n });\n }//end try\n catch (err) {\n console.log(err);\n }\n }", "@action.bound\n updateStatus(newStatus) {\n this.status = newStatus;\n }", "update(state){\ndatabase.ref('/').update({gamestate:state})\ngameState=state;\n}", "async function continuousRefresh() {\n\t// get the dns details\n\ttry {\n\t\tvar backends = \"\";\n\t\tconst records = await lookup(serviceHost);\n\t\trecords.forEach((item, index) => {\n\t\t\tbackends = backends + \"ftp://\" + item.name + \":\" + item.port + \" \";\n\t\t});\n\t\tvar newConfig = config.replace(/%BACKENDS%/, backends);\n\t\tif(currentConfig == newConfig) {\n\t\t\tlogger.info(\"No config change detected\");\n\t\t} else {\n\t\t\tlogger.info(\"Config has changed, reloading proftpd...\");\n\t\t\tcurrentConfig = newConfig;\n\t\t\tfs.writeFileSync(\"/etc/proftpd.conf\", newConfig);\n\t\t\texec(\"killall -1 proftpd\").unref();\n\t\t}\n\t\thaveConfig = true;\n\t\tnumFailures = 0;\n\t\tsetTimeout(continuousRefresh, sleepTime);\n\t} catch(err) {\n\t\tlogger.error(\"Hit error while trying to get SRV record\");\n\t\tlogger.error(err);\n\t\tif(!haveConfig) {\n\t\t\tlogger.error(\"Exiting as we've not been able to create a config\");\n\t\t\tprocess.exit(1);\n\t\t}\n\t\tnumFailures++;\n\t\tsetTimeout(continuousRefresh, sleepTime);\n\t}\n}", "setScheduleStatus(id) {\n\n let statusToSet = this.state.scheduleIsOn ? 'enabled' : 'disabled';\n\n /**\n * REST call to change the status of a schedule to enabled/disabled.\n */\n fetch('http://192.168.0.21/api/CeyiFspaKI7cxGvtu9uOLJmQgOmAZuoUyMaxwETp/schedules/' + id, {\n method: 'PUT',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n 'status': statusToSet\n })\n });\n }", "function updateJobStatus() {\n\treturn JobsService.updateJobStatus(_transactionId, _jobStatusTag)\n\t\t.catch(function(err) {\n\t\t\tif (err) {\n\t\t\t\tconsole.log(err);\n\t\t\t}\n\t\t});\n}", "function refreshInfo() { \t \n everyone.now.setStatus(statusv);\n\t upSongNum();\n\t setTimeout(upPlaylist(everyone),350);\n }", "function pushNotificationCron() {\n async.waterfall([\n // connectDB,\n getListAutoPush,\n putItemIntoQueue,\n getUserIdBySearhQuery,\n // closeDB\n ], function (err, result) {\n if (err) {\n pushToSlack(\"@loint\", err);\n }\n });\n}" ]
[ "0.74272317", "0.69068563", "0.6885459", "0.63597184", "0.63363063", "0.63096744", "0.6302215", "0.6151328", "0.6123157", "0.60297394", "0.59153324", "0.5911979", "0.59087694", "0.58488804", "0.5837589", "0.58220947", "0.58122486", "0.5798191", "0.5788578", "0.5756711", "0.57368106", "0.573143", "0.57075197", "0.57036847", "0.56735826", "0.56706434", "0.56629837", "0.5661627", "0.56548667", "0.5648231", "0.56146026", "0.5612776", "0.5612776", "0.5609301", "0.5594536", "0.55767876", "0.5555869", "0.5553392", "0.5550934", "0.55397415", "0.55311185", "0.55207324", "0.5518576", "0.5514768", "0.5495126", "0.5477238", "0.54683536", "0.5458589", "0.54547715", "0.5447741", "0.5438596", "0.5434439", "0.5424407", "0.5406835", "0.5406005", "0.54039645", "0.54027", "0.5397833", "0.53909224", "0.5386069", "0.53814", "0.53776217", "0.5374997", "0.53719836", "0.5359727", "0.53581125", "0.5354161", "0.5351973", "0.5347268", "0.5345683", "0.53368473", "0.53335387", "0.532611", "0.5318984", "0.5317939", "0.53172547", "0.53138554", "0.53122777", "0.53039336", "0.52952254", "0.5294178", "0.5290516", "0.52900004", "0.528551", "0.5275966", "0.5272598", "0.5268653", "0.5245649", "0.5235519", "0.52329826", "0.5232506", "0.5232284", "0.5227658", "0.5227347", "0.52264005", "0.5225356", "0.5224719", "0.5224031", "0.52232367", "0.5219518" ]
0.55259514
41
TODO add mousedragged panning system
function draw() { background(0, 0, 0, 0.031); translate(posX ? posX : 0, posY ? posY : 0) stroke(78, 255, 255) rect(0.9 * width, 0, 10, accumulator); // fill(0,255,0,0.05) // fft.smooth(); // fft.log // noise.start(); spectrum = fft.analyze(); chunkSize = Math.floor(spectrum.length / population); reducedSpectrum = arrayChunk(spectrum, chunkSize); // con reducedSpectrum.map((cluster, index) => { let sum = cluster.reduce((accum, element) => { return accum + element; }); // then((sum) => { let val = sum / cluster.length; // console.log(val) if (index < population) { var comp = map(index, 0, population, 360, 0); stroke(comp, 255, 255); var r = map(val, 0, 255, 0.1, 125); x = map(index, 0, population, 0, width); y = map(index, 0, population, height, 0); ellipse(width / 2 + ants[index].dist, y , r); random(1) < 0.13 ? ants[index].move() : null; } else { accumulator += val; } // }) // }) }) // for (i = 0; i < spectrum.length; i++) { // if (i < population) { // var comp = map(i, 0, population, 360, 0); // stroke(comp, 255, 255); // var r = map(spectrum[i], 0, 255, 0.1, 125); // x = map(i, 0, population, 0, width); // y = map(i, 0, population, height, 0); // ellipse(width / 2 + ants[i].dist, y, r); // ants[i].move(); // } else { // accumulator += spectrum[i]; // } // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mouseDrag(prev, pt) {}", "mouseDrag(prev, pt) {}", "onDrag(mousePosition) {\n }", "function mouseDragged(){\r\n inputForMDragging(mouseX, mouseY);\r\n\r\n\r\n}", "function MouseDownHandler(e) {\n pan_context = true;\n pan_dx = e.x;\n pan_dy = e.y;\n}", "function drag(e, selected) {\r\n\r\n //the name\r\n let name = \"#\" + selected;\r\n\r\n //the positions\r\n let x = e.pageX;\r\n let y = e.pageY;\r\n\r\n x *= zoomx / window.innerWidth;\r\n y *= zoomy / window.innerHeight;\r\n\r\n //updating positions\r\n set_position(name, x, y);\r\n}", "onMinimapDragMouseDown() {\n this.isMinimapPanning = true;\n }", "onDragStarted(mousePosition) {\n }", "drag_repan(mouse_event) {\n // Convenience\n var annbox = jquery_default()(\"#\" + this.config[\"annbox_id\"]);\n\n // Pan based on mouse position\n const aX = mouse_event.clientX;\n const aY = mouse_event.clientY;\n annbox.scrollLeft(\n this.drag_state[\"pan\"][\"offset_start\"][0] + (this.drag_state[\"pan\"][\"mouse_start\"][0] - aX)\n );\n annbox.scrollTop(\n this.drag_state[\"pan\"][\"offset_start\"][1] + (this.drag_state[\"pan\"][\"mouse_start\"][1] - aY)\n );\n }", "function mousedown() { // pan\n d3.event.preventDefault();\n if (d3.event.which !== 1 || d3.event.ctrlKey) { return; } // ingore other mouse buttons\n startposX = curX - d3.event.clientX;\n startposY = curY - d3.event.clientY;\n el.on('mousemove', mousemove, true);\n el.on('mouseup', mouseup, true);\n }", "function mouseDragged() {\n onceMoved = true;\n mouseMove = true;\n \n xCentreCoord -= (1/coordToPixelRatio)*(mouseX - startMouseX);\n yCentreCoord += (1/coordToPixelRatio)*(mouseY - startMouseY);\n\n startMouseX = mouseX;\n startMouseY = mouseY;\n }", "function bindDrag(){\n var currentPoint = this;\n window.zr.on('mousemove', function(params){\n var targetX = params.event.offsetX;\n var targetY = params.event.offsetY;\n currentPoint.style.x = targetX\n currentPoint.style.y = targetY\n zr.modShape(currentPoint);\n if(currentPoint == _startPoint){\n _this.style.xStart = targetX\n _this.style.yStart = targetY;\n }else if(currentPoint == _endPoint){\n _this.style.xEnd = targetX\n _this.style.yEnd = targetY;\n }\n\n zr.modShape(_this)\n });\n }", "onMouseDrag(e) {}", "function dragMain(){\n\t//\t\tmove handle points if one is being dragged\n\tif(dragPointIndex != -1){//\t\tis set back to -1 by KeyboardMouseInput.js in mouseUp()\n\t\tvar dmouse;//\t\tchange in mouse position in screen space\n\t\tvar sign;//\t\t\tsign must be inverted when using the y axis\n\t\n\t\tif(dragDirection[dragPointIndex] == 'x'){//\t\tdrag along the X\n\t\t\tdmouse = mouseX - dragStart;\n\t\t\tsign = 1;\n\t\t}else{\n\t\t\tdmouse = -mouseY + dragStart;\n\t\t\tsign = -1;\n\t\t}\n\t\t\n\t\tif(ctrlHeld){//\t\tmove by incraments of 1\n\t\t\tif(math.abs(dmouse/screenScale) > 0.1){//\t\tnumber will not change (since it is rounded to the nearest 0.001) so return\n\t\t\t\tdragVar[dragPointIndex] = Math.round((dragVar[dragPointIndex] + dmouse/screenScale)*10)/10;\n\t\t\t\tdragStart += sign * Math.round(dmouse/screenScale*10)/10*screenScale;\n\t\t\t\tdragUpdateEqu();\n\t\t\t\tdragCheckInput();\n\t\t\t}\n\t\t}else if(shiftHeld){//\t\tmove by incraments of 0.00001\n\t\t\tif(math.abs(dmouse/screenScale) > 0.00001){//\t\tnumber will not change (since it is rounded to the nearest 0.001) so return\n\t\t\t\tdragVar[dragPointIndex] = Math.round((dragVar[dragPointIndex] + dmouse/screenScale/5)*100000)/100000;\n\t\t\t\tdragStart += sign * Math.round(dmouse/screenScale*100000)/100000*screenScale;\n\t\t\t\tdragUpdateEqu();\n\t\t\t\tdragCheckInput();\n\t\t\t}\n\t\t}else{//\t\tmove by incraments of 0.001\n\t\t\tif(math.abs(dmouse/screenScale) > 0.001){//\t\tnumber will not change (since it is rounded to the nearest 0.001) so return\n\t\t\t\tdragVar[dragPointIndex] = Math.round((dragVar[dragPointIndex] + dmouse/screenScale)*1000)/1000;\n\t\t\t\tdragStart += sign * Math.round(dmouse/screenScale*1000)/1000*screenScale;\n\t\t\t\tdragUpdateEqu();\n\t\t\t\tdragCheckInput();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\t\tupdate all point positions based on the new values set above\n\t\tdragUpdatePoints();\n\t}\n\t\n\t\n\t//\t----------------------------------\t\t[ Draw Handle Points ]\t\t----------------------------------\n\tif(!simulating){\n\t\tctx.lineWidth = 3;\n\n\t\tfor(i = dragVar.length-1 ; i > -1 ; i--){\n\t\t\tif(dragPointIndex == -1 || dragPointIndex == i){//\t\tcurrent point is being dragged or no point is being dragged, color all handle points\n\t\t\t\tctx.strokeStyle = _colors[i]; \n\t\t\t}else{//\t\t\t\t\t\ta point is being dragged and it isn't this one, set color to grey\n\t\t\t\tctx.strokeStyle = _dragFadeColor;\n\t\t\t}\n\t\t\t\n\t\t\t//\t\tglobal temp variables. Convert points to screen space.\n\t\t\ttmpx = (dragx[i] - screenx)*screenScale;\n\t\t\ttmpy = -(dragy[i]-screeny)*screenScale;\n\t\t\t\n\t\t\t//\t\tdraw point\n\t\t\tctx.beginPath();\n\t\t\tctx.arc( tmpx , tmpy , 4 , 0 , _piTimes2);\n\t\t\tctx.stroke();\n\t\t\t\n\t\t\t//\t\tdraw move direction arrows\n\t\t\tctx.beginPath();\n\t\t\tif(dragDirection[i] == 'x'){\n\t\t\t\tctx.moveTo(tmpx + 13 , tmpy + 7);\n\t\t\t\tctx.lineTo(tmpx + 20, tmpy);\n\t\t\t\tctx.lineTo(tmpx + 13 , tmpy - 7);\n\t\t\t\t\n\t\t\t\tctx.moveTo(tmpx + 17 , tmpy);\n\t\t\t\tctx.lineTo(tmpx - 17 , tmpy);\n\t\t\t\t\n\t\t\t\tctx.moveTo(tmpx - 13 , tmpy + 7);\n\t\t\t\tctx.lineTo(tmpx - 20, tmpy);\n\t\t\t\tctx.lineTo(tmpx - 13 , tmpy - 7);\n\t\t\t}else{\n\t\t\t\tctx.moveTo(tmpx-7 , tmpy + 13);\n\t\t\t\tctx.lineTo(tmpx , tmpy + 20);\n\t\t\t\tctx.lineTo(tmpx+7 , tmpy + 13);\n\t\t\t\t\n\t\t\t\tctx.moveTo(tmpx , tmpy + 17);\n\t\t\t\tctx.lineTo(tmpx , tmpy - 17);\n\t\t\t\t\n\t\t\t\tctx.moveTo(tmpx-7 , tmpy - 13);\n\t\t\t\tctx.lineTo(tmpx , tmpy - 20);\n\t\t\t\tctx.lineTo(tmpx+7 , tmpy - 13);\n\t\t\t}\n\t\t\tctx.stroke();\n\t\t}\n\t}\n}", "drag_feedback(){\r\n this.dragging = true;\r\n }", "_onMouseMove(event) {\n super._onMouseMove(event);\n if (event.data.createState >= 1) {\n let drawing = event.data.object;\n let [gx, gy] = [event.data.originalEvent.x, event.data.originalEvent.y];\n\n // If the cursor has moved close to the edge of the window\n this._panCanvasEdge(gx, gy);\n\n drawing.updateDragPosition(event.data.destination)\n drawing.refresh();\n event.data.createState = 2;\n }\n }", "function mouseDragged(){\n\toffsetX -= (pmouseX - mouseX) * 0.5;\n\toffsetY -= (pmouseY - mouseY) * 0.5;\n\n\tgrid.offsetY = offsetY;\n\tgrid.offsetX = offsetX;\n\n //Update offsets for every model\n for (let i = 0; i < models.length; i++)\n models[i].setOffsets(offsetX, offsetY);\n}", "__mousemove(idx, ex, ey){\n let player = this.players[idx];\n if(player.dragActive){\n player.selectedTile.x = ex - player.initialX;\n player.selectedTile.y = ey - player.initialY;\n }\n }", "function onMouseDown(event)\n{\n dragging = true;\n var pos = getRelative(event);\n mouseDragStartX = pos.x;\n mouseDragStartY = pos.y;\n}", "function DIF_mousemove(e) {\r\n\tif (DIF_dragging) {\r\n\t\tvar pos = {x: e.pageX, y: e.pageY};\r\n\t\tDIF_drag(pos.x - DIF_pageMouseDownLeft[DIF_iframeBeingDragged] , pos.y - DIF_pageMouseDownTop[DIF_iframeBeingDragged]);\r\n\t}\r\n}", "startDrag(x, y) {}", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }", "function drag(e) {\n if (scroll_delta) {\n var pos = eventPos(e);\n\n position[0] = Math.round(clamp(\n pos.pageX + scroll_delta[0],\n -(size[1] + size[3]) * tilesize + container_size[0],\n 0\n ));\n\n position[1] = Math.round(clamp(\n pos.pageY + scroll_delta[1],\n -(size[0] + size[2]) * tilesize + container_size[1],\n 0\n ));\n\n update();\n }\n }" ]
[ "0.7735252", "0.7735252", "0.73893714", "0.7227028", "0.7152726", "0.70997655", "0.7056806", "0.6971906", "0.6926726", "0.69207484", "0.691976", "0.6884179", "0.6860881", "0.68426406", "0.6799577", "0.6771831", "0.67569953", "0.6738576", "0.67344797", "0.6700918", "0.6698888", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285", "0.66932285" ]
0.0
-1
make a function that returns it to use later in the gridlines
function make_xAxis(){ return xAxis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addGridLines () {\n }", "function makeGrid() {\n\n\n}", "function FunctionNumberLineGrid(options) {\n let grid,\n lineInterval,\n strokeWidth,\n stroke,\n group,\n where;\n\n grid = this;\n\n init(options);\n\n return grid;\n\n /* INITIALIZE */\n function init(options) {\n\n _required(options);\n _defaults(options);\n\n group = addGroup();\n grid.gridLines = addgridLines();\n grid.hasTransitioned = false;\n\n }\n\n\n\n /* PRIVATE METHODS */\n function _defaults(options) {\n\n lineInterval = options.lineInterval ? options.lineInterval : 1;\n stroke = options.stroke ? options.stroke : \"rgba(0,0,0,0.25)\";\n strokeWidth = options.strokeWidth ? options.strokeWidth : 1;\n\n }\n\n function _required(options) {\n\n grid.hasTransitioned = false;\n grid.parent = options.parent;\n grid.functionToPlot = grid.parent.functionToPlot;\n grid.inputY = grid.parent.inputY;\n grid.outputY = grid.parent.outputY;\n grid.scale = grid.parent.scale;\n\n where = grid.parent.layers.data;\n }\n\n function addGroup() {\n let group;\n\n group = explorableGroup({\n \"where\":where\n });\n\n return group;\n }\n\n function addgridLines() {\n let data,\n finiteData,\n lines;\n\n data = d3.range(grid.scale.domain()[0],grid.scale.domain()[1] + lineInterval,lineInterval);\n\n finiteData = data.filter(validateDatum);\n\n lines = group\n .selectAll(\"line\")\n .data(finiteData)\n .enter()\n .append(\"line\")\n .attr(\"x1\",(datum) => { return grid.scale(datum); })\n .attr(\"x2\",(datum) => { return grid.scale(grid.functionToPlot(datum)); })\n .attr(\"y1\",grid.inputY)\n .attr(\"y2\",grid.outputY)\n .attr(\"stroke\",stroke)\n .attr(\"stroke-width\",strokeWidth);\n\n return lines;\n }\n\n function validateDatum(datum) {\n let acceptable,\n functionValue;\n\n functionValue = grid\n .functionToPlot(datum);\n\n acceptable = true;\n\n if(!isFinite(functionValue)) { acceptable = false; }\n if(functionValue < grid.scale.domain()[0]) { acceptable = false; }\n if(functionValue > grid.scale.domain()[1]) { acceptable = false; }\n\n return acceptable;\n }\n\n}", "function ROW()\n{\n if(arguments.length==0)\n {\n alert(\"please enter parameter into function \");\n return \"=ROWS()\";\n }\n \n var valuesearchy=window.cell($(\"#\"+passedid[0])).getindex().y;\n return valuesearchy;\n}", "function offset_function(_, i){\n var x = -0.5 + ( Math.floor(i / num_cell) ) / num_cell ;\n var y = -0.5 + (i % num_cell) / num_cell ;\n return [x, y];\n }", "drawLineOnGrid(x1, y1, x2, y2) { \n\n let deltaX = x2 - x1;\n let deltaY = y2 - y1; \n \n // function to return one of \"-\" or \"X\" depending on line orientation\n let keyCharacter = this.getKeyCharacterForLine(deltaX, deltaY);\n \n // if the line has gradient < 1\n if (Math.abs(deltaY) <= Math.abs(deltaX)) { \n if (deltaX >= 0) {\n // line is drawn left to right\n this.drawShallowLine(x1, y1, x2, deltaX, deltaY, keyCharacter);\n } else {\n // line is drawn right to left\n this.drawShallowLine(x2, y2, x1, deltaX, deltaY, keyCharacter);\n } \n // if the line has gradient > 1 \n } else { \n if (deltaY >= 0) {\n // line is drawn downwards\n this.drawSteepLine(x1, y1, y2, deltaX, deltaY, keyCharacter)\n } else { \n // line is drawn upwards\n this.drawSteepLine(x2, y2, y1, deltaX, deltaY, keyCharacter)\n } \n }\n // log the end square so we can get the highlighting dimensions when required\n this.endSquare = this.filledSquares[this.filledSquares.length - 1];\n }", "function getFunc() { return \"gate\"; }", "function ticketNumberGeneratorFunc(){\n let insideNum = 0 \n\n return function returnFunc(line){\n // insideNum is available here because scope\n insideNum += 1\n line.push(insideNum)\n return `Welcome, you are ticket number ${insideNum}.`\n }\n // insideNum is available here because scope\n}", "function getYFn(column) {\n return function (d) {\n return d[column];\n };\n }", "function FunctionPlotterGrid(options) {\n let domain,\n grid,\n range,\n scales,\n where,\n tickEvery;\n\n grid = this;\n\n init(options);\n\n return grid;\n\n /* INITIALIZE */\n function init(options) {\n _required(options);\n // _default(options);\n\n grid.xTicks = addXTicks();\n grid.yTicks = addYTicks();\n\n\n }\n\n /* PRIVATE METHODS */\n // function _default(options) {\n //\n //}\n\n function _required(options) {\n tickEvery = options.tickEvery;\n grid.scales = options.scales;\n where = options.where;\n grid.domain = options.domain;\n grid.range = options.range;\n }\n\n function addXTicks() {\n let data,\n group,\n lines;\n\n group = where\n .append(\"g\");\n\n data = d3.range(domain[0],domain[1] + 1,tickEvery);\n\n lines = group\n .selectAll(\"line\")\n .data(data)\n .enter()\n .append(\"line\")\n .attr(\"x1\",(d) => { return scales.x(d) ;})\n .attr(\"x2\",(d) =>{ return scales.x(d) ;})\n .attr(\"y1\",scales.y(range[0]))\n .attr(\"y2\",scales.y(range[1]))\n .attr(\"stroke\",\"#ddd\")\n .attr(\"stroke-width\",1)\n .attr(\"stroke-dasharray\",\"1,0\");\n\n return lines;\n }\n\n function addYTicks() {\n let data,\n group,\n lines;\n\n group = where\n .append(\"g\");\n\n data = d3.range(domain[0],domain[1],tickEvery);\n\n lines = group\n .selectAll(\"line\")\n .data(data)\n .enter()\n .append(\"line\")\n .attr(\"x1\",scales.x(domain[0]))\n .attr(\"x2\",scales.x(domain[1]))\n .attr(\"y1\",(d) => { return scales.y(d); })\n .attr(\"y2\",(d) => { return scales.y(d); })\n .attr(\"stroke\",\"#ddd\")\n .attr(\"stroke-width\",1)\n .attr(\"stroke-dasharray\",\"1,0\");\n\n return lines;\n }\n\n}", "getCellState(i, j) {\n let that = this;\n return function () {\n return that.state.grid[i][j];\n }\n }", "function getYFn(column) {\n return function (d) {\n return d[column];\n };\n }", "function getPlotFunction() {\n\t// route the data to the appropriate func depending on the current display setting\t\n\tif (c_display_option == \"location\") {\n\t\treturn plotMapMarkerZip;\n\t}\n\telse if (c_display_option == \"total_number\") {\n\t\treturn plotMapCircleZip;\n\t}\n\telse if (c_display_option == \"weight_ratio\") {\n\t\treturn plotMapWeightZip;\n\t}\n\telse if (c_display_option == \"heatmap\") {\n\t\treturn null;\n\t}\n\telse { \n\t\talert(\"Something went wrong!\");\n\t\treturn null;\n\t}\n}", "calculateLerpFunction ()\n {\n\n // Get the styles we are interested in using\n let transition = Transition[this.transition];\n let style = Style[this.style];\n\n // Build up the function name and get our function\n let functionName = 'lerpStyle' + transition + style;\n let functionToCall = this.lerpFunctions[functionName];\n\n // Send back our function\n return functionToCall;\n }", "function onGanttRender_todayLine(today) {\n return function f() {\n var $today = $(\"#campaignchain_gantt_today\");\n if (!$today.length) {\n var elem = document.createElement(\"div\");\n elem.id = \"campaignchain_gantt_today\";\n gantt.$task_data.appendChild(elem);\n $today = $(elem);\n }\n var x_start = gantt.posFromDate(moment(today).zone(window.campaignchainTimezoneOffset));\n var x_end = gantt.posFromDate(moment(today).zone(window.campaignchainTimezoneOffset).add('day',1));\n $today.css(\"left\", Math.floor(x_start + 0.5 * (x_end - x_start)) + \"px\");\n };\n}", "function Line() {}", "function Line() {}", "function Line() {}", "function Line() {}", "function Line() {}", "getInterpolateFunction(c) {\n const swiper = this;\n if (!swiper.controller.spline) {\n swiper.controller.spline = swiper.params.loop\n ? new Controller.LinearSpline(swiper.slidesGrid, c.slidesGrid)\n : new Controller.LinearSpline(swiper.snapGrid, c.snapGrid);\n }\n }", "function functionNumberLineHighlightValue(publicObject) {\n return (value) => {\n let line;\n\n line = group\n .append(\"line\")\n .attr(\"x1\",publicObject.scale(value))\n .attr(\"x2\",publicObject.scale(publicObject.functionToPlot(value)))\n .attr(\"y1\",margins.top)\n .attr(\"y2\",height - margins.bottom)\n .attr(\"stroke\",\"blue\")\n .attr(\"stroke-width\",3);\n\n\n return publicObject;\n };\n}", "function coordonnees() {\n // code fictif\n return { x:25, y:12.5 };\n}", "createGrids () {\n }", "function linfunc1(x){\n\treturn {x:x,y:x};\n}", "function ROWS()\n{\n if(arguments.length==0)\n {\n alert(\"please enter parameter into function \");\n return \"=ROWS()\";\n }\n \n var valuesearchy=window.cell($(\"#\"+passedid[arguments.length-1])).getindex().y;\n return valuesearchy;\n}", "function PdfGridRowStyle(){//\n}", "function getPlugin() {\n\t\tvar line = new Kinetic.Line({\n\t\t\tpoints: [group.getX() + plugin.getPoints()[0].x, group.getY() + plugin.getPoints()[0].y, group.getX() + plugin.getPoints()[1].x, group.getY() + plugin.getPoints()[1].y]\n\t\t});\n\t\t\n\t\treturn line;\n\t}", "function pointLineaire() {\n\tpoint1 = board.create('point', [1, (ordonnee + pente)], {\n\t\tstyle : 6,\n\t\tname : 'p1'\n\t});\n\tpoint1.setAttribute({\n\t\tstrokeColor : 'blue',\n\t\tfillColor : 'yellow',\n\t\tsize : 4\n\t});\n\tpoint2 = board.create('point', [(ordonnee / -pente), 0], {\n\t\tstyle : 6,\n\t\tname : 'p2'\n\t});\n\tpoint2.setAttribute({\n\t\tstrokeColor : 'blue',\n\t\tfillColor : 'yellow',\n\t\tsize : 4\n\t});\n\tpoint3 = board.create('point', [0, (ordonnee)], {\n\t\tvisible : false,\n\t\tstyle : 6\n\t});\n\tvar ligne = board.create('line', [point1, point2]);\n\t// affichage dynamique de l'équation à l'extérieur du graphe\n\tboard.on('update', function() {\n\t\tdocument.getElementById('equationGraph').innerHTML = \"y = \" + dynamiqueA() + 'x + ' + dynamiqueB();\n\t});\n\t//creation triangle de la pente pour equation de premier degree/\n\ttriangle = board.create('slopetriangle', [ligne, point1], {\n\t\tvisible : false\n\t});\n\ttriangle.label.setAttribute({\n\t\tvisible : false\n\t});\n\taffichageEquationLineairePoint(point1, point2);\n\tdocument.getElementById(\"equationGraph\").innerHTML = \" Équation linéaire: y = \" + pente + \"x\" + \" + \" + ordonnee;\n\tmisajour();\n}", "function gp(){return function(l){return l}}", "_setLineFunctions(){\n this.lines = {};\n const graph = this; // needed for nested functions\n\n this.channelNames.forEach((channelName) => {\n this.lines[channelName] = d3.svg.line()\n .x(function(d){ return graph.xRange(d.timestamp); })\n .y(function(d){ return graph.yRange(d[channelName]); });\n });\n\n }", "myRenderer (api, rowIdx) {\n\n\t}", "function fuctionPanier(){\n\n}", "function next(modifier) {\n return function(m) {\n if (m) return next(m);\n modifier();\n if (y === grid.length) {\n y = 0;\n }\n if (y < 0) {\n y = grid.length-1;\n }\n if (x === grid[y].length) {\n x = 0;\n }\n if (x < 0) {\n x = grid[y].length-1;\n }\n return c = grid[y][x];\n };\n }", "function formSkyline() {\n\n}", "function addCurve(board, func, atts) {\n\tvar f = board.create('functiongraph', [func], atts, {\n\t\tfixed : false\n\t});\n\treturn f;\n}", "[_draw]() {\n }", "function createFareMultiplier(integar){\nreturn function (Multiplier) {\n return Multiplier * integar;\n }}", "_getFuncBlock(title, imagePath, isLast = false) {\n return (\n <View>\n <View style={styles.function_block}>\n <Image style={styles.img_func}\n source={imagePath}\n />\n <Text style={styles.txt_func}> {title}</Text>\n <Image\n style={styles.arrow}\n source={R.images.ic_arrow_right}\n />\n </View>\n {!isLast && <View style={styles.line}></View>}\n </View>\n )\n }", "[_draw]() {\n\n }", "static CalcLineTranslation() {}", "function grid(ctx, color, style,d,axisx,axisy) {\n var w = ctx.canvas.width;\n var h = ctx.canvas.height;\n\n //creates dotted grid for the x direction\n\n if(axisx == undefined && axisy == undefined){\n if (style == \"dotx\") {\n for (var x = d; x <= h; x += d) {\n //line dash makes small dots\n ctx.setLineDash([1, 5]);\n \n lines(ctx, color, 0, x, w, x, 1);\n }\n }\n \n //doty does not work yet\n else if (style == \"doty\") {\n for (var y = d; y <= w; y +=d) {\n ctx.setLineDash([1, 5]);\n lines(ctx, color, 0,y , w/2, y, 1);\n }\n }\n //todo: add dot both ways\n else if (style == \"grid\") {\n\n for (var x = d; x <= w; x +=d) {\n lines(ctx, color, 0, x, w, x, 1);\n }\n\n for (var y = d; y <= w; y +=d) {\n lines(ctx, color, y, 1, y, w, 1);\n }\n }\n //creates grid only in y direction\n else if (style == \"gridy\") {\n for (var x = 0; x <= w; x +=d) {\n lines(ctx, color, x, 0, x, w, 2);\n }\n }\n \n //creates grid only in x direction\n else if (style == \"gridx\") {\n for (var y = 0; y <= w; y +=d) {\n lines(ctx, color, 0, y, w, y, 2);\n }\n }\n }\n\n }", "consoleDisplayGrid(grid) {\n grid.map(function(row, index){\n let line = row.map(function(elem) {\n if(elem){\n if(elem===true) {\n return(\"x\");\n }\n else{\n return(\"y\")\n }\n }\n else {\n return(\"0\");\n }\n },this);\n console.log(index + JSON.stringify(line));\n },this)\n }", "function drawFunc(ctx, axis, color, funcStr, show = false, blod = false) {\n\tif (!show) { /* do now show */\n\t\treturn;\n\t} else if (blod){ /* need to blod the line */\n\t\tlineSize = 4;\n\t} else { /* don't need to blod the line */\n\t\tlineSize = 2;\n\t}\n\tif (funcStr.length == 0) /* input is null */\n\t\treturn;\n\t/* transform the function expression string to a function */\n\tfuncStr = input2FuncStr(funcStr);\n\tlet func = str2Func(funcStr);\n\t/* define the drawing range */\n\tlet xLeft = axis.xLeftRange + funcBlank;\n\tlet xRight = axis.xRightRange - funcBlank;\n\t/* yLeftRange is pos and yRightRange is neg */\n\tlet yLeft = axis.yLeftRange - funcBlank;\n\tlet yRight = axis.yRightRange + funcBlank;\n\tlet yc, yb; /* the current point and the point before it */\n\tfor (let x = xLeft; x <= xRight; ++x) {\n\t\tyb = -1 * axis.yScale * func((x - 1) / axis.xScale);\n\t\tyc = -1 * axis.yScale * func(x / axis.xScale);\n\t\t/* ensure the function image does not exceed the axis\n\t\t * area, yLeft is pos and yRight is neg\n\t\t */\n\t\tif (yb <= yLeft && yb >= yRight &&\n\t\t\tyc <= yLeft && yc >= yRight)\n\t\t\tdrawLine(ctx, (x - 1), yb, x, yc, color, lineSize);\n\t}\n}", "function returnStyle(val) {\n\t\tif (val < 0.3) {\n\t\t\treturn 'blank';\n\t\t} else if (val < 0.6) {\n\t\t\treturn 'grid';\n\t\t} else {\n\t\t\treturn 'sliced';\n\t\t}\n\t}", "[_draw]() {\n\n }", "function yFindCellular(func)\n{\n return YCellular.FindCellular(func);\n}", "draw () { //change name to generate?? also need to redo\n return null;\n }", "function getStyleFun($scope, num) {\n\t$scope.getStyle = function(){\n\t var transform = ($scope.isSemi ? '' : 'translateY(-50%) ') + 'translateX(-50%)';\n\n\t return {\n\t 'top': $scope.isSemi ? 'auto' : num,\n\t 'bottom': $scope.isSemi ? '5%' : 'auto',\n\t 'left': '50%',\n\t 'transform': transform,\n\t '-moz-transform': transform,\n\t '-webkit-transform': transform,\n\t 'font-size': $scope.radius/3.5 + 'px'\n\t };\n\t};\n}", "function generateShape(type, func){\n //here happens part of the magic!\n //do as many computations, API calls and database calls as you wish\n var theType = \"i am generating the following shape type: \" + type\n var randNumber = func()\n \n //function as an expression\n var shapeGenerator \n\n if (randNumber > .5) {\n //here depending on the 50% of possibilities, we decide the f's implementation\n shapeGenerator = function () {\n console.log(\"Implementation type I\")\n console.log(theType)\n console.log(randNumber)\n }\n } else {\n shapeGenerator = function () {\n console.log(\"Implementation type II\")\n console.log(randNumber)\n console.log(theType)\n }\n }\n return shapeGenerator\n}", "getRowOperator() {\n this.position = this.props.visStore.secondaryHeight;\n const _self = this;\n if (this.props.timepoint) {\n return this.props.timepoint.heatmap.map(function (d, i) {\n let lineHeight;\n let fontWeight;\n if (d.variable === _self.props.dataStore.globalPrimary) {\n lineHeight = _self.props.visStore.secondaryHeight;// _self.props.visStore.primaryHeight;\n fontWeight = \"bold\";\n }\n else {\n lineHeight = _self.props.visStore.secondaryHeight;\n fontWeight = \"normal\";\n }\n const transform = \"translate(0,\" + _self.position + \")\";\n const iconScale = (_self.props.visStore.secondaryHeight - _self.props.visStore.gap) / 20;\n let fontSize = 10;\n if (lineHeight < fontSize) {\n fontSize = Math.round(lineHeight);\n }\n return <g key={d.variable} className={\"clickable\"} transform={transform}>\n {_self.getRowLabel(_self.props.timepoint, d.variable, (lineHeight + fontSize / 2) / 2, iconScale, _self.props.width, fontWeight, fontSize)}\n </g>\n\n });\n }\n else return null;\n\n }", "function makeFunc() {\n var name = \"Mozilla\";\n function displayName() {\n console.log(name);\n }\n return displayName;\n}", "drawLineFunction(){\n //Using the pre set variables (this.) from the constructor, this.fillcolour will equal to the random values of this.Green/Red/Blue/Alpha\n this.fillcolour = color(this.Red, this.Green, this.Blue, this.Alpha);\n fill(this.fillcolour);//This then fills a line with the a random colour \n stroke(this.fillcolour);//This then fills a lines stroke with the a random colour \n \n //This creates a new operator (this.x2) and maps it to the value of x1 with a range of 0 to width to width to 0.\n this.x2 = map(this.x1, 0, width, width, 0);\n //This creates a new operator (this.y2) and maps it to the value of y1 with a range of 0 to height to height to 0.\n this.y2 = map(this.y1, 0, height, height, 0);\n \n //this is creating the lines and their partners to refelect\n line(this.x1, this.y1, this.size, this.size);\n line(this.x2, this.y2, this.size, this.size);\n line(this.x2, this.y1, this.size, this.size);\n line(this.x1, this.y2, this.size, this.size);\n \n }", "function colorfn(a) {\n return intervalChoice(a, [\n function() { return c0; },\n x0,\n lerpColorFactory(c0, c1),\n x1,\n lerpColorFactory(c1, c2),\n x2,\n lerpColorFactory(c2, c3),\n x3,\n lerpColorFactory(c3, c4),\n x4,\n function() { return c4; }\n ]);\n}", "function colorFunction() {\r\n\t\tvar colorArray = ['#1ab394', '#f8ac59'];\r\n\r\n\t\treturn function(d, i) {\r\n\t \treturn colorArray[i];\r\n\t };\r\n\t}", "function drawFunctionPoints(func) {\n \n var point_options = {\n style: 6,\n withLabel: false\n };\n \n var xvals = $.map(func.data, function(o,i) { return pointFilter(o)[0]; });\n var yvals = $.map(func.data, function(o,i) { return pointFilter(o)[1]; });\n var x_min = Math.min.apply(this, xvals);\n var x_max = Math.max.apply(this, xvals);\n \n // create and bind event handler for each point\n var points = $.map(func.data, function(o,i) {\n \n var p = optimalApp.board.create('point', pointFilter(o), point_options);\n \n // mousemove highlight of data table\n JXG.addEvent(p.rendNode, 'click', function(e) {\n //selectFunction(func);\n }, p);\n \n // display tooltip when mouse is over function\n JXG.addEvent(p.rendNode, 'mouseover', function(e) {\n if (optimalApp.copyMode === true) {\n setTooltip('Drag to copy and edit function');\n } else {\n setTooltip('Drag to edit');\n }\n }, p);\n \n // clear tooltip when mouse is not over function\n JXG.addEvent(p.rendNode, 'mouseout', function(e) {\n setTooltip();\n }, p);\n \n // handle copying of functions\n JXG.addEvent(p.rendNode, 'mousedown', function(e) {\n if (!optimalApp.copyMode) return;\n addFunction(deepcopy(func.data));\n }, p);\n \n // handle editing of functions\n JXG.addEvent(p.rendNode, 'mouseup', function(e) {\n var newpoint = [p.coords.usrCoords[1], p.coords.usrCoords[2]];\n func.dataTable.setDataAtCell(i, 0, pointInvFilter(newpoint)[0]);\n func.dataTable.setDataAtCell(i, 1, pointInvFilter(newpoint)[1]);\n func.data[i][0] = pointInvFilter(newpoint)[0];\n func.data[i][1] = pointInvFilter(newpoint)[1];\n }, p);\n \n return p;\n });\n \n return points;\n}", "function closure(self) {\n\t\t\t\treturn function (values) {\n\t\t\t\t\tchart.animatedLow = values.low;\n\t\t\t\t\tchart.animatedHigh = values.high;\n\t\t\t\t\tself.draw();\n\t\t\t\t};\n\t\t\t}", "function miFuncion (){}", "function equilatGrid(L,R,dx,dy){\n let yVals = [];\n let ytip = 70;\n let xtip = 300;\n let yChange = dy/10;\n let xChange = 2*dx/10\n for(let i = 0; i < 9; i++){\n yVals.push((ytip+dy)-yChange*(i+1));\n }\n push();\n let x1, x2, y1, y2;\n // Carrier grid\n stroke(255,100,0,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-L[1])/L[0];\n y2 = ytip + dy;\n x2 = (xtip-dx) + xChange*(i+1);\n line(x1,y1,x2,y2);\n }\n \n // Solvent grid\n stroke(128,0,128,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-R[1])/R[0];\n y2 = ytip + dy;\n x2 = (xtip+dx) - xChange*(i+1);\n line(x1,y1,x2,y2);\n }\n // Solute grid\n stroke(0,0,255,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-L[1])/L[0];\n y2 = y1;\n x2 = (y2-R[1])/R[0];\n line(x1,y1,x2,y2);\n }\n pop();\n}", "function hoge() {}", "getMappingFunction() {\n return (v) => {\n const x = v.x*this[0][0] + v.y*this[0][1] + v.z*this[0][2] + this[0][3];\n const y = v.x*this[1][0] + v.y*this[1][1] + v.z*this[1][2] + this[1][3];\n const z = v.x*this[2][0] + v.y*this[2][1] + v.z*this[2][2] + this[2][3];\n const w = v.x*this[3][0] + v.y*this[3][1] + v.z*this[3][2] + this[3][3];\n\n return (w !== 0) ? new Point(x / w, y / w, z / w) : new Point(0, 0, 0);\n };\n }", "function myFnCall(fn) {\n return new Function('return ' + fn)();\n }", "function lineType(){\n $('#linesolid').click(function(){\n context.setLineDash([0]);\n\n });\n\n $('#linedash').click(function(){\n context.setLineDash([2,30]);\n \n\n });\n }", "function g(){return function(){}}", "visit(x, y, z) {\n const position = [x, y, z];\n return this.grid.getPoint(position) || this.grid.set(position, '.');\n }", "function generateSliderControlFunctions(i, j, k, input, text) {\n return function () {\n if (Date.now() - lastUpdate > mspf) {\n controlPoints[i][j][k] = parseFloat(input.value);\n\n text.innerHTML = \"Bez(\" + i + \" , \" + j + \") \" + index[k] + \" = \" + input.value;\n\n runGrid();\n surface[\"vPos\"] = surfaceVertexPos;\n surface[\"tPos\"] = surfaceTextPos;\n surface[\"index\"] = currentShader === \"wireframe\" ? surfaceWireframeIndex : surfaceIndex;\n surface[\"normal\"] = surfaceNormal;\n initializeObject(surface);\n\n requestAnimationFrame(render);\n lastUpdate = Date.now();\n }\n }\n}", "function makefunc(x) {\r\n// return function() { return x; }\r\n// return new Function($direct_func_xxx$);\r\n return new Function(\"return x;\")\r\n}", "function hourlyFunction() {\naddNewLineChartFunction('hourlyId', 'hourly', hourlyData, ctLine, 'line' );\naddNewBarChartFunction('hourlyId', 'hourly', hourlyData, ctBar, 'bar' );\naddNewDoughnutChartFunction('hourlyId', 'hourly', hourlyDataDoughnut, ctDoughnut, 'doughnut' );\n}", "function createLineAndStringifyUsingCallback(startingCoordinates, callbackFunction) {\n return callbackFunction(startingCoordinates);\n}", "function salesHeatmap() {}", "function areaCuadrado(lado) {\n return lado * lado;\n}", "function toonGetal() {\n return function (getal, naam) {\n console.log(getal + ' voor ' + naam);\n }\n}", "getGrid(gridNr) {\n var gridVal = this.state.gridValues[gridNr];\n if (gridVal == null) {\n gridVal = '.';\n }\n return <Grid value={gridVal} onClick={() => this.gridClick(gridNr)} />\n }", "function getPrintFunc(n) {\n return function() {\n console.log(n);\n };\n }", "function Line(){}", "function make_y_gridlines() {\r\n return d3.axisLeft(yLeft)\r\n }", "function make_y_gridlines() {\r\n return d3.axisLeft(yLeft)\r\n }", "function produceTipCalculator(percentage) {\n return function(rideFare) {\n return rideFare * percentage;\n }\n}", "GCpf_A(){\n\t\tlet k;\n\t\t\tswitch(true){\n\t\t\t\tcase (this.slope<=5) :\n\t\t\t\t\treturn {\n Z1:0.4,Z2:-0.69,Z3:-0.37,Z4:-0.29,\n Z1E:0.61,Z2E:-1.07,Z3E:-0.53,Z4E:-0.43\n }\n\t\t\t\t\tbreak;\n\t\t\t\tcase (this.slope<=20) :\n\t\t\t\t\treturn {\n Z1:interpolate(5,0.4,20,0.53,this.slope),\n Z2:-0.69,\n Z3:interpolate(5,-0.37,20,-0.48,this.slope),\n Z4:interpolate(5,-0.29,20,-0.43,this.slope),\n Z1E:interpolate(5,0.61,20,0.8,this.slope),\n Z2E:-1.07,\n Z3E:interpolate(5,-0.53,20,-0.69,this.slope),\n Z4E:interpolate(5,-0.43,20,-0.64,this.slope),\n\t\t\t\t\t\t\t};\n\t\t\t\t\tbreak;\n\t\t\t\tcase (this.slope<30) :\n\t\t\t\t\treturn {\n Z1:interpolate(20,0.53,30,0.56,this.slope),\n\t\t\t\t\t\t\t\tZ2:interpolate(20,-0.69,30,0.21,this.slope),\n\t\t\t\t\t\t\t\tZ3:interpolate(20,-0.48,30,-0.43,this.slope),\n\t\t\t\t\t\t\t\tZ4:interpolate(20,-0.43,30,-0.37,this.slope),\n\t\t\t\t\t\t\t\tZ1E:interpolate(20,0.8,30,0.69,this.slope),\n\t\t\t\t\t\t\t\tZ2E:interpolate(20,-1.07,30,0.27,this.slope),\n\t\t\t\t\t\t\t\tZ3E:interpolate(20,-0.69,30,-0.53,this.slope),\n\t\t\t\t\t\t\t\tZ4E:interpolate(20,-0.64,30,-0.48,this.slope),\n\t\t\t\t\t\t\t};\n\t\t\t\t\tbreak;\n\t\t\t\tcase (this.slope>=30 && this.slope<=45):\n\t\t\t\t\treturn {\n Z1:0.56,Z2:0.21,Z3:-0.43,Z4:-0.37,\n Z1E:0.69,Z2E:0.27,Z3E:-0.53,Z4E:-0.48\n };\n\t\t\t\t\tbreak;\n\t\t\t\tcase (this.slope<=90) :\n\t\t\t\t\treturn {\n Z1:0.56,\n\t\t\t\t\t\t\t Z2:interpolate(45,0.21,90,0.56,this.slope),\n\t\t\t\t\t\t\t Z3:interpolate(45,-0.43,90,-0.373,this.slope),\n\t\t\t\t\t\t\t Z4:-0.37,\n\t\t\t\t\t\t\t Z1E:0.69,\n\t\t\t\t\t\t\t Z2E:interpolate(45,0.27,90,0.69,this.slope),\n\t\t\t\t\t\t\t Z3E:interpolate(45,-0.53,90,-0.48,this.slope),\n\t\t\t\t\t\t\t Z4E:-0.48,\n }\n\t\t\t\t\tbreak;\n\t\t\t}\n }", "toLine() {\n return {\n x1: this[0][0],\n y1: this[0][1],\n x2: this[1][0],\n y2: this[1][1]\n };\n }", "function magic(x) {\n\n\t\treturn function calc(x) {\n\t\t\treturn x * 30;\n\t\t}\n\n\t}", "function FunctionNumberLineRegion(options) {\n let color,\n parent,\n region,\n values;\n\n region = this;\n\n init(options);\n\n return region;\n\n function init(options) {\n _required(options);\n _defaults(options);\n\n region.coordinates = getCoordinates();\n region.lineGenerator = defineLineGenerator();\n region.group = addGroup();\n region.path = addPath();\n\n }\n\n /* PRIVATE */\n function _defaults(options) {\n\n color = options.color ? options.color : \"white\";\n\n }\n\n function _required(options) {\n\n parent = options.parent;\n values = options.values;\n\n }\n\n function addGroup() {\n let group;\n\n group = explorableGroup({\n \"where\":parent.layers.highlights\n });\n\n return group;\n }\n\n function addPath() {\n let path;\n\n path = region.group\n .append(\"path\")\n .attr(\"d\",region.lineGenerator(region.coordinates))\n .attr(\"fill\",color);\n\n return path;\n }\n\n function getCoordinates() {\n let coordinates,\n firstCorners,\n secondCorners;\n\n //TODO: THIS IS GROSS AND NEEDS A BETTER SOLUTION!\n\n firstCorners = parent\n .lineCoordinatesForValue(values[0]);\n\n secondCorners = parent\n .lineCoordinatesForValue(values[1]);\n\n coordinates = [];\n coordinates[0] = {\n \"x\":firstCorners.x1,\n \"y\":firstCorners.y1\n };\n\n coordinates[1] = {\n \"x\":firstCorners.x2,\n \"y\":firstCorners.y2\n };\n\n coordinates[2] = {\n \"x\":secondCorners.x2,\n \"y\":secondCorners.y2\n };\n\n coordinates[3] = {\n \"x\":secondCorners.x1,\n \"y\":secondCorners.y1\n };\n\n return coordinates;\n }\n\n function defineLineGenerator() {\n let generator;\n\n generator = d3.line()\n .x((datum) => { return datum.x; })\n .y((datum) => { return datum.y ;});\n\n return generator;\n }\n\n\n}", "function exercise(sport) {\n return (function() {\n return \"Today's exercise:\" + sport\n })\n}", "function lineThemUp(x,y,z) {\n return [x,y,z];\n}", "function gen_function_data(f,n,xmin,xmax) {\n\t let x = linspace(xmin,xmax,n) ;\n\t let y = x.map(v => f(v)) ;\n\t return make_d3_ready({x:x, y:y}) ;\n\t}", "function drawSplines() {\n}", "_gridIterator(fn) {\n\n\t\tthis._grid.forEach( (row, i) => {\n\n\t\t\trow.forEach( (col, j) => fn(col, i, j));\n\t\t});\n\t}", "function tema4(){\n\n}", "function FixedValueGetter(value){\n return function(){return value};\n}", "function get_line_x2(step) {\n\treturn get_line_x1(step + 1);\n}", "function makeExpressionCallbackPreprocessor(args) {\n return function expressionCallbackPreprocessor(val) {\n return 'function('+args+'){return(' + val + ');}';\n };\n }", "function createCircle(radius)\n{\n return{\n radius,\n draw:function(){\n console.log(\"draw method\");\n } \n };\n}", "function Callable(wat) {\nreturn wat;\n}", "function lightCell(str){\n if ( convertRow(str) <= countRows() && convertColumn(str) <= countColumns() ) {\n return GRID[convertRow(str)][convertColumn(str)];\n } else {\n return false;\n }\n}", "getFunction() {\n const expression = document.getElementById(\"funct\").value.toLowerCase();\n\n if (expression == \"\") {\n console.log(\"empty function field\");\n return;\n }\n // replace('ln(x)', 'log(x, 2.71828182846)')\n const finalexpression = this.scrubln(expression).trim();\n // console.log(finalexpression, expression);\n\n if (!this.functionAlreadyExists(expression)) {\n try {\n const node = math.parse(finalexpression);\n const code = node.compile();\n\n const coords = this.getExpressionValues(code);\n\n this.functionArray.push(\n new FunctionObject(expression, finalexpression, coords, code, this)\n );\n this.addFunctionDetailsDiv();\n this.drawFunctionValuesToGraph(coords);\n } catch (err) {\n console.log(\"input created a problem...\");\n console.log(err);\n }\n }\n console.log(\"expression alreadu input\");\n }", "function getMakeActive(){\n /*void -> function*/\n return function(){makeActive(this);}\n}", "function getMakeActive(){\n /*void -> function*/\n return function(){makeActive(this);}\n}", "function makeFunc() {\r\n var name = \"Mozilla\";\r\n function displayName() {\r\n alert(name);\r\n console.log(name)\r\n }\r\n return displayName;\r\n }", "function getLineRecordDecorator(exp, lyr, arcs) {\n // repurpose arc classifier function to convert arc ids to shape ids of original polygons\n var procArcId = getArcClassifier(lyr.shapes, arcs)(procShapeIds);\n var compiled = compileFeaturePairExpression(exp, lyr, arcs);\n var tmp;\n\n function procShapeIds(shpA, shpB) {\n compiled(shpA, shpB, tmp);\n }\n\n return function(rec, shp) {\n tmp = rec;\n procArcId(shp[0][0]);\n return rec;\n };\n }", "function createLine(p1, p2) {\n return function(t) {\n return {\n x: lerp(p1.x, p2.x, t),\n y: lerp(p1.y, p2.y, t)\n };\n };\n}", "topLeftCell() {\n return \n }" ]
[ "0.6213417", "0.59470516", "0.57941544", "0.559212", "0.55903167", "0.5544916", "0.548228", "0.54819", "0.5469781", "0.5462998", "0.5451679", "0.5450763", "0.54480135", "0.5445739", "0.54091287", "0.54035133", "0.54035133", "0.54035133", "0.54035133", "0.54035133", "0.5401679", "0.5399057", "0.5391562", "0.53317225", "0.53237754", "0.53094417", "0.5301563", "0.52558523", "0.52472675", "0.52318525", "0.5224085", "0.5220923", "0.51953316", "0.51950526", "0.5188404", "0.5180258", "0.5158887", "0.5156822", "0.5153777", "0.5147513", "0.51251984", "0.51112723", "0.5109753", "0.51074904", "0.5106779", "0.5100334", "0.5090144", "0.5085961", "0.50822306", "0.5079432", "0.5058658", "0.50491107", "0.5043789", "0.5038374", "0.5036131", "0.5035061", "0.5034229", "0.50251186", "0.50239", "0.5023081", "0.50162095", "0.5010014", "0.50075394", "0.50005615", "0.49848515", "0.4978501", "0.4977163", "0.4975349", "0.4974114", "0.49718255", "0.4968143", "0.4965873", "0.49656168", "0.49589366", "0.49429354", "0.49354565", "0.49354565", "0.49335203", "0.4933499", "0.4930278", "0.4928977", "0.4925714", "0.49236146", "0.49003714", "0.48963743", "0.4891606", "0.48890975", "0.48882446", "0.4887275", "0.48828754", "0.4882092", "0.48809776", "0.48787865", "0.48778057", "0.4877642", "0.4873827", "0.4873827", "0.48737213", "0.48725852", "0.4866826", "0.48545513" ]
0.0
-1
Change to color to match the result
function markerSize(earthquake_size) { return 200; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function colorForCurrent(){\n\n}", "function changeColorFaded() {\n\n temp = 330;\n cont1 = 0;\n cont2 = 125;\n cont3 = 254;\n\n function cycler(cont) {\n if(cont >= 255) \n op = 'decr';\n else\n op = 'incr';\n\n switch(op) {\n case 'decr':\n cont--;\n break;\n case 'incr':\n cont++;\n break;\n }\n return cont;\n }\n\n var r = cycler(cont1);\n var g = cycler(cont2);\n var b = cycler(cont3);\n // Costruisco un colore RGB utilizzando i 3 numeri creati sopra \n \n colore_rgb = \"rgb(\" + r + \",\" + g + \", \" + b + \")\";\n \n // Applico il colore al tag span id->letterN\n letterN.style.color = colore_rgb;\n }", "function oldColor() {\n if (ALaxis === 'distanceSpot')\n return '#ff0000';\n else if (ALaxis === 'angleSpot')\n return '#0000ff';\n else if (ALaxis === 'colorRing' || ALaxis === 'lightnessRing')\n return '#888';\n}", "set color(value) {}", "function switchColor(){\n\tif (currentColor === \"red\"){\n\t\tcurrentColor = \"black\";\n\t}\telse {\n\t\t\tcurrentColor = \"red\";\n\t\t}\n}", "changeColor(color){\n this.circleBasic.set('fill', ColorLuminance(color, -0.1));\n this.circleBasicEtx.set('fill', ColorLuminance(color, 0.1));\n this.text.set({\n fill : ColorLuminance(color, -0.15),\n stroke : ColorLuminance(color, -0.20)\n });\n }", "function changeColorScheme() {\n\n}", "function setMatchColor() {\n var random = randomNumber(0, numDivs - 1);\n matchColor1 = $cb.eq(random).data('color');\n $('#color-to-pick').data('matchcolor', matchColor1);\n var substring1 = matchColor1.substr(1,2);\n var substring2 = matchColor1.substr(3,2);\n var substring3 = matchColor1.substr(5,2);\n $('#red').text(substring1).css('background-color', '#fff');\n $('#green').text(substring2).css('background-color', '#fff');\n $('#blue').text(substring3).css('background-color', '#fff');\n\n }", "brighter(){\n\t\tthis.addColorValue(\"red\", 30);\n\t\tthis.addColorValue(\"green\", 30);\n\t\tthis.addColorValue(\"blue\", 30);\n\t}", "darker(){\n\t\tthis.addColorValue(\"red\", -30);\n\t\tthis.addColorValue(\"green\", -30);\n\t\tthis.addColorValue(\"blue\", -30);\n\t}", "function colorReplace(){\n var color = colorGetter.getColor(this);\n}", "set color(c){\n this.currentColor = this.findPalRGB(c);\n }", "function changeColor2N() {\n\n // Genero tre numeri random di valore compreso tra 1 e 256\n var r = Math.round(Math.random()*256);\n var g = Math.round(Math.random()*256);\n var b = Math.round(Math.random()*256);\n // Costruisco un colore RGB utilizzando i 3 numeri creati sopra \n\n colore_rgb = \"rgb(\" + r + \",\" + g + \", \" + b + \")\";\n\n // Applico il colore al tag span id->letterN\n letterN.style.color = colore_rgb;\n if(typeof(winner) != \"undefined\")\n winner.style.backgroundColor = colore_rgb;\n}", "function set_color(){\t\n\tfor (var i=0; i<objects.length; i++){\n\t\tif(i == diff)\n\t\t\tobjects[i].style.background = trans_color;\t\n\t\telse\n\t\t\tobjects[i].style.background = gener_color;\n\t}\n\t\n\t\n}", "function ChangeColor(){\n selected_object.material.color.setHex(shape_params.color);\n }", "function dualColor (){\n \n\tcounter += 1;\n\tdocument.getElementById('model__baseC').getAttribute('color');\n\tswitch (counter) {\n\t\tcase 1:\n\t\tdocument.getElementById('model__baseC').setAttribute('color', '0.4627 0.4627 0.4627 0.3549 0.3549 0.3549');\n\t\t\t\n\t\t\tbreak;\n\t\tcase 2:\n\t\tdocument.getElementById('model__baseC').setAttribute('color', '0.003922 0.1255 0.3059 0.1294 0.1294 0.1294');\n\t\t\tbreak;\n\t\tcase 3:\n\t\tdocument.getElementById('model__baseC').setAttribute('color', '0.2549 -0.5529 -0.5529 0.1294 0.1294 0.1294');\n\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\tdocument.getElementById('model__baseC').setAttribute('color', '0.003922 0.5333 0.4275 0.1725 0.04314 0.09412');\n\t\t\tbreak;\n\n\t\tcase 5:\n\t\t\tcounter = 0;\n\t\t\tdocument.getElementById('model__baseC').setAttribute('color', '0.003922 0.003922 0.003922 0.1294 0.1294 0.1294');\n\t\t\tbreak;\n\t}\n\t\t\t\n\n}", "function newColor1()\n{\n\tIN.doFocus();\n\tIN.clr=\"#109FA6\";\n\trcCookie.set(\"c\",IN.clr,365);\n\tIN.ec(\"ForeColor\",false,IN.clr);\n\tIN.tBC();\n}", "function changeColor(e){\n if (colorScheme == \"BLACK\"){\n e.target.style.backgroundColor = \"BLACK\";\n e.target.style.opacity = 1;\n } else if (colorScheme == \"RAINBOW\"){\n e.target.style.backgroundColor = \"#\" + Math.floor(Math.random() * 4096).toString(16);\n e.target.style.opacity = 1;\n } else if (colorScheme == \"DARKEN\"){\n let darken = Number(e.target.style.opacity);\n e.target.style.opacity = darken += 0.1;\n e.target.style.backgroundColor = '#000';\n }\n}", "setColor(index){\n if(index===this.state.currentQuestionIndex){\n return `${stylesCSS.yellow}`;\n } else {\n if(this.state.markedIndexes.indexOf(index)>=0){\n return `${stylesCSS.lightViolet}`;\n } else {\n if(this.state.answeredIndexes.indexOf(index)>=0){\n return `${stylesCSS.lightGreen}`;\n }\n else{\n return ``;\n }\n }\n }\n }", "function changeColor(tmp_stage,tmp_arr){\n tmp_arr.forEach(function (item) {\n tmp_stage.find(\"#\" + item[0]).fill(DICT_COLORS[item[1]]);\n tmp_stage.find(\"#main_l\").draw();\n });\n}", "redder(){\n\t\tthis.multiplyColorValue(\"red\", 1.2);\n\t}", "function recentColor() {\n if (tipResult === '中') {\n $(`#recent-${results.indexOf(result)}`).css(\"background-color\", \"#77D353\");\n } else {\n $(`#recent-${results.indexOf(result)}`).css(\"background-color\", \"#F95F62\");\n }\n }", "function changeColor() {\n\t\tvar randomColor = '#' + Math.floor(Math.random() * 16777215).toString(16);\n\t\tvar text = document.getElementById(\"color-div\");\n\t\ttext.style.color = randomColor;\n\t}", "function changeColor() {\n console.log($('#red').val() +\",\" + $('#green').val() + \",\" + $('#blue').val());\n var r = colors.red;\n var g = colors.green;\n // var b = $('#blue').val()\n var b = colors.blue;\n console.log(b)\n $kuler = \"rgb(\" + r + \",\" + g + \",\" + b +\")\";\n $(\"#newColor\").css(\"background-color\", $kuler);\n }", "function eleccion_color(){\r\n\r\n }", "function uvColor (index) {\n if (index > 0 && index < 3 ) {\n green (index)\n }\n else if (index > 3 && index < 5 ) {\n yellow (index)\n }\n else if (index > 3 && index < 5 ) {\n yellow (index)\n }\n else if (index > 5 && index < 8 ) {\n orange (index)\n }\n else if (index > 8 && index < 11 ) {\n red (index)\n }\n else if (index > 11) {\n violet (index)\n }\n $(`#uvIndex2`).html(`\n <span> ${ index }</span>\n `) \n }", "function putColor(color) {\n var span = document.getElementsByClassName(\"text\")[0].getElementsByClassName(\"color-span\");\n span[IndexRunner].setAttribute(\"style\", \"color:\" + color);\n}", "_setItemColor() {\n const that = this,\n label = that.querySelector('.jqx-content-label'),\n color = /(^#[0-9A-F]{3}$)|(^#[0-9A-F]{6}$)|(^#[0-9A-F]{8}$)/i.test(that.color) ? that.color : ''; //HEX check\n\n label.style.backgroundColor = color;\n label.style.color = that._getContrastColor(color);\n }", "function updateColors() {\n\tfor (var i=0; i<allTissues.length; i++){\n\t\tchangeFillColor(allTissues[i].tissue, allTissues[i].color);\n\t\t//console.log(allTissues[i].tissue+\" \"+allTissues[i].value+\" \"+allTissues[i].color);\n\t}\n\tif(searchByTable){\n\t\tgenerateSelectionTable();\n\t}\n}", "function onColorUpdate(e){\n current.color = e.target.className.split(' ')[1];\n }", "function setColor() {\n roll.style.backgroundColor = roll.style.backgroundColor == \"green\" ? \"blue\" : \"green\";\n }", "function changeColor() {\n var note = $(this).parent().parent();\n var color = note.css(\"background-color\");\n\n if (color === \"rgb(255, 255, 0)\") {\n note.css(\"background-color\", \"rgb(105, 205, 255)\");\n } else if (color === \"rgb(105, 205, 255)\") {\n note.css(\"background-color\", \"rgb(255, 160, 220)\");\n } else {\n note.css(\"background-color\", \"rgb(255, 255, 0)\");\n }\n}", "function changeColor (){\t\t\t\n\t\t\t$pageColor = pagecolors[$index];\n\t\t\t// Darken a color\n\t\t\t$gradiantcolor = alterColorIntensity($pageColor,$colorChangePercantage);\n\n\t\t\t//Resetting the index if it hits the end\n\t\t\tif ($index < pagecolors.length -1 ) {\n\t\t\t\t$index += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$index = 0;\n\t\t\t}\t\t\t\n\t\t\tif ($('#Laag_1').length) {\n\t\t\t\t//background color of svg\n \t\t\t\t$('#background').fadeTo('slow', 0, function()\n\t\t\t\t\t{\n\t\t\t\t\t $(this).css('fill', $pageColor);\n\t\t\t\t\t}).fadeTo(fadeTimeItems, 1 , 'linear');\t \t\t\t\n\t \t\t\t//Color for gradient, adding the html code for the gradient inside the svg html code\n \t\t\t\t$('.st0').fadeTo('slow', 0, function()\n\t\t\t\t\t{\n\t\t\t\t\t\t$( \"#svgGradient\" ).html( '<stop offset=\"0\" style=\"stop-color:#FFFFFF;stop-opacity:0\"/> <stop offset=\"'+$index+'\" style=\"stop-color:'+$gradiantcolor+'\"/>' );\n\n\t\t\t\t\t}).fadeTo(fadeTimeItems, 1 , 'linear');\t \t\t\t\n\t \t\t}\n\t\t}", "function setColor() {\n var r_hex = parseInt(r.value, 10).toString(16);\n var g_hex = parseInt(g.value, 10).toString(16);\n var b_hex = parseInt(b.value, 10).toString(16);\n\n\n //updates the sliders output colors\n r_out.style.backgroundColor=\"#\"+r_hex+\"0000\";\n r_out.value=r.value;\n g_out.style.backgroundColor=\"#00\"+g_hex+\"00\";\n g_out.value=g.value;\n b_out.style.backgroundColor=\"#0000\"+b_hex;\n b_out.value=b.value;\n\n hex = \"#\" + pad(r_hex) + pad(g_hex) + pad(b_hex);\n strokeOut.style.backgroundColor=hex;\n}", "function recolor(val){\n\n\t\tjc = 0;\n\t\t\n\t\tpolies.getLayers().forEach(\n\t\t\tfunction(x){\n\t\t\t\tx.setStyle({color:getColor(refData[val][jc].dist)});\n\t\t\t\tjc +=1;\n\t\t\t\treturn x;\n\t\t\t\t\n\t\t\t}\n\t\t);\n\t\treturn 1;\n\t\t\n\t}", "function updateSelectedColor(newColor) {\n selectedColor = newColor;\n page3_selected_color.style.backgroundColor = selectedColor;\n\n //For the current implementation text color has the same value with the drawing color\n canvas_text_color = newColor;\n}", "function changeColor (color) {\n // -(7.1)- Loop through all squares \n for (let index = 0; index < squares.length; index++) {\n\n // -(7.2)- Change each color to match goal color\n squares[index].style.backgroundColor = color;\n }\n}", "function cambiacolor(el){\n if(el.style.color !== 'blue')\n el.style.color = 'blue'\n \n else if (el.style.color === 'blue')\n el.style.color = 'red'\n \n else if (el.style.color === 'red')\n el.style.color = '#000'\n}", "oncolor() {\n let color = Haya.Utils.Color.rgbHex($.color.red, $.color.green, $.color.blue, \"0x\");\n this.target.sprite.color = color;\n this.target.sprite.tint = color;\n }", "function ChangeColor(color){\n var col = \"\";\n switch (color) {\n case \"black\": col = \"#000000\"; break;\n case \"darkgray\": col = \"#696969\"; break;\n case \"gray\": col = \"#808080\"; break;\n case \"lightgray\": col = \"#D3D3D3\"; break;\n case \"white\": col = \"#ffffff\"; break;\n\n case \"red\": col = \"#ff1100\"; break;\n case \"orange\": col = \"#FFA500\"; break;\n case \"yellow\": col = \"#FFFF00\"; break;\n\n case \"purple\": col = \"#800080\"; break;\n case \"darkblue\": col = \"#000080\"; break;\n case \"blue\": col = \"#0000ff\"; break;\n case \"lightblue\": col = \"#00BFFF\"; break;\n\n case \"darkpink\": col = \"#C71585\"; break;\n case \"pink\": col = \"#FF69B4\"; break;\n case \"lightpink\": col = \"#FFC0CB\"; break;\n\n case \"darkgreen\": col = \"#006400\"; break;\n case \"green\": col = \"#00b400\"; break;\n case \"lightgreen\": col = \"#7CFC00\"; break;\n\t\n case \"darkbrown\": col = \"#8B4513\"; break;\n case \"brown\": col = \"#b4522d\"; break;\n case \"gold\": col = \"#FFD700\"; break;\n \n case \"turquoise\": col = \"#40E0D0\"; break;\n\n }\n\n Graphics.strokeStyle = col;\n Graphics.fillStyle = col;\n label1.style.backgroundColor = col;\n label2.style.backgroundColor = col;\n\n}", "updateColor() {\n this.color = this.player_side == PLAYER_1 ? \"#dfe6e9\" : \"#ffeaa7\";\n }", "function changeColor(){\n\tif(colorRGB === 0xFFFFFF){ //white\n\t\tcolorRGB = 0xC0C0C0; //ltgrey\n\t\tcolorSel.classList.toggle(\"whiteRGB\");\n\t\tcolorSel.classList.toggle(\"greyRGB\");\n\n\t} else if (colorRGB === 0xC0C0C0){ //ltgrey\n\t\tcolorRGB = 0xFFC0CB; //pink\n\t\tcolorSel.classList.toggle(\"greyRGB\");\n\t\tcolorSel.classList.toggle(\"pinkRGB\");\n\n\n\t} else if (colorRGB === 0xFFC0CB){ //pink\n\t\tcolorRGB = 0xFFFFFF; //white\n\t\tcolorSel.classList.toggle(\"whiteRGB\");\n\t\tcolorSel.classList.toggle(\"pinkRGB\");\n\t}\n\t// colorSel.classList.add(\"pinkRGB\");\n\t// classList.remove\n\t\n}", "function newOutputColor() {\n switch (outputColorBox.value()) {\n case 'red':\n outputs[propOutput].colr = 0;\n break;\n case 'yellow':\n outputs[propOutput].colr = 1;\n break;\n case 'green':\n outputs[propOutput].colr = 2;\n break;\n case 'blue':\n outputs[propOutput].colr = 3;\n break;\n default:\n }\n outputs[propOutput].updateColor();\n}", "changeColor() {\n // wrap around, but should be 7?\n\t\tvar nxtColorIdx = this.current + 1 > 6 ? 0 : this.current + 1;\n var curColorIdx = this.current;\n // color transition, set old color invisible\n var esta = this;\n\t\tANIM.customAnimation.to(this.materials[curColorIdx], 5, {\n\t\t\topacity: 0,\n\t\t\tonComplete: function() {\n\t\t\t\testa.obj.children[curColorIdx].visible = false\n\t\t\t}\n\t\t});\n // set next color visible and gradually switch to new color\n this.obj.children[nxtColorIdx].visible = true\n ANIM.customAnimation.to(this.materials[nxtColorIdx], 4, {\n\t\t\topacity: 1\n\t\t});\n\n this.current = nxtColorIdx;\n }", "function Colorir(cor) {\n//transform.renderer.material.color = Color(.1, .9, .9, 1);\n\t\n\t\n\t//print(transform.renderer);\n\tif (transform.renderer.material) {\n\t\tif (cor == \"OriginalColor\") {\n\t\t\ttransform.renderer.material.color = originalColor;\n\t\t}\n\t\t\n\t\tif (cor == \"Slow\") {\n\t\t\ttransform.renderer.material.color = Color.cyan;\n\t\t}\n\t\t\n\t\tif (cor == \"Haste\") {\n\t\t\ttransform.renderer.material.color = Color.yellow;\n\t\t}\n\t\t\n\t\tif (cor == \"TravaArma\") {\n\t\t\ttransform.renderer.material.color = Color.green;\n\t\t}\n\t\t\n\t\tif (cor == \"TravaDirecao\") {\n\t\t\ttransform.renderer.material.color = Color.magenta;\n\t\t}\n\t\t\n\t\tif (cor == \"Confusao\") {\n\t\t\ttransform.renderer.material.color = Color.black;\n\t\t}\n\t\t\n\t\t// Cor do heavy e hyperArmor\n\t\tif (cor == \"Danificado\") {\n\t\t\ttransform.renderer.material.color = Color.red;\n\t\t}\n\t}\n}", "greener(){\n\t\tthis.multiplyColorValue(\"green\", 1.2);\n\t}", "function setColor(){\n\tcolor1.value = \"#FF0000\";\n\tcolor2.value = \"#ffff00\";\n}", "function colourChange() {\n if (aktuellerSpieler === playerOne) {\n return \"#78CDD7\"\n } else if (aktuellerSpieler === playerTwo) {\n return \"#F7CACD\"\n }\n}", "function changeColor() {\n firstP.style('color', '#ff68bd');//style() a DOM element with CSS from within P5\n firstP.style('font-size', '34px');//style() a DOM element with CSS from within P5\n }", "function changeColor(e) {}", "function olcolor(input)\n{\n\t$(\"#display\").css(\"color\", input);\n}", "function setColor(winner) {\n\tif (winner == 'x') {\n\t\treturn('green');\n\t}\n\telse if (winner == 'o') {\n\t\treturn('yellow');\n\t}\n}", "set dryColor(value) {}", "function winningcolor(correctcolor) {\n\tfor ( var i=0; i < modeselect ; i++) {\n\t\tsqlist[i].style.backgroundColor = correctcolor;\n\t}\t\n}", "function scorecolor() {\r\n\t\tfor (var i = 1; i < allScores.length - 1; i++) {\r\n\t\t\tif (strokesDisp[i] - (TOTAL_PAR[i] - TOTAL_PAR[i - 1]) > 0) {\r\n\t\t\t\tallScores[i].addColor('#228B22', 0);\r\n\t\t\t} else if (strokesDisp[i] - (TOTAL_PAR[i] - TOTAL_PAR[i - 1]) == 0) {\r\n\t\t\t\tallScores[i].addColor('#000000', 0);\r\n\t\t\t} else if (strokesDisp[i] - (TOTAL_PAR[i] - TOTAL_PAR[i - 1]) < 0) {\r\n\t\t\t\tallScores[i].addColor('#ff0000', 0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function colorChange(currentPrice, openingPrice) {\n if (currentPrice > openingPrice) {\n return 'green'\n }\n else if (currentPrice < openingPrice) {\n return 'red'\n }\n else {\n return 'grey'\n }\n}", "function mapColor(id,type) {\n var arrColors = guiData.colorPalette;\n var resColor = \"hsl(195, 100%, 35%)\";\n //console.log(emailDomains);\n //console.log(id);\n if (id != -1) {\n if (id < arrColors.length - 1) {\n resColor = arrColors[id];\n }else{\n resColor = arrColors[arrColors.length - 1];\n }\n }else{\n switch (type) {\n case 'node': resColor = arrColors[0]; break;\n case 'edge': resColor = arrColors[0];\n //\"rgba(0, 134, 179,0.5)\";\n //\"rgba(59, 124, 171, 0.42)\";\n break;\n }\n }\n return resColor;\n }", "function color(d) {\n return '#2960b5'\n }", "function onChangeColor(txt, color) {\n changeColor(txt, color)\n draw()\n}", "function setAIColor() {\n switch (difficulty) {\n case \"easy\": base_color1 = [34, 142, 250]; break; // (blue)\n case \"medium\": base_color1 = [230, 54, 230]; break; // (fuscia)\n case \"hard\": base_color1 = [255, 60, 0]; break; // (red)\n default: base_color1 = [255, 255, 0]; // (yellow)\n }\n // make cell colors public\n cell_module.player_colors = [base_color0, base_color1];\n\n // update AI score color\n document.querySelector(\"#score1\").style.color = vec2rgb(base_color1);\n\n }", "function color(interest1) { //interest1 is 0-1 scaled relative value of first word in pair\n if (interest1 === undefined || interest1 === GREYVALUE) {\n return GREYCOLOR;\n }\n let red = 255 * interest1;\n let blue = 255 * (1 - interest1);\n return `rgb(${red}, 25, ${blue})` //backtick means string, ${} interpolates rgb values \n}", "function changeColor() {\n\tresponse = xmlHttpGetColor.responseText;\n\n\t// checks for server error\n\tif (response.indexOf(\"ERRNO\") >= 0 || response.indexOf(\"error:\") >= 0 || response.length == 0)\n\t\tthrow (response.length == 0 ? \"Can't change color!\" : response);\n\n\t// changes text color\n\tvar oColor = document.getElementById(\"color\");\n\tvar oSampleText = document.getElementById(\"sampleText\");\n\toColor.value = response;\n\toSampleText.style.color = response;\n}", "function getColor(num){\n if (num>4) {\n return \"white\";\n } else {\n return \"#776e65\";\n }\n }", "function SwitchColor(pnt){\r\n\tvar value = pnt.value;\r\n\t\r\n\tif (value == \"Undecided\"){\r\n\t\tpnt.style.backgroundColor = \"#FFFFFF\";\r\n\t\tpnt.style.color = \"#000000\";\r\n\t} else {\r\n\t\tpnt.style.backgroundColor = \"#000000\";\r\n\t\tpnt.style.color = \"#FFFFFF\";\r\n\t}\r\n\t\r\n}", "function updateColor() {\n bOpts['color'] = ('rgba(' + parseInt(r) + ', ' + parseInt(g) + ', '\n + parseInt(b) + ', ' + bOpts['opacity'] + ')');\n }", "function colorSwap(){\n myCenter.color = col.value;\n for(var i=0; i<myDots.length; i++){\n myDots[i].color = col.value;\n }\n}", "function chcolor(){if(v_chcolor == 1){ document.getElementById(\"sgb\").style.color=color[x];(x < color.length-1) ? x++ : x = 0;}}", "function color_animation(){ \n if(turn_text_color<255 && color_anim_var==0){ \n turn_text_color+=6;\n }\n else if(turn_text_color>=255){\n color_anim_var=1; \n turn_text_color-=6;\n }\n else if(turn_text_color>126 && color_anim_var==1){ \n turn_text_color-=6;\n }\n else{\n color_anim_var=0;\n turn_text_color+=6;\n }\n return \"rgb(\"+turn_text_color+\",\"+turn_text_color+\",\"+turn_text_color+\")\";\n }", "function change_background(){\r\n\r\n for(x=0;x<6;x++){\r\n generated = hexa[color_generator()];\r\n color += generated;\r\n\r\n };\r\n body.style.backgroundColor = color;\r\n span.innerText = color;\r\n color = \"#\"; // reinitialize the value of color to '#'\r\n \r\n\r\n \r\n\r\n \r\n}", "function replace_color() {\n const new_body = parseInt(nes_vals[0], 16)\n const new_feet = parseInt(nes_vals[1], 16)\n const new_border = parseInt(nes_vals[2], 16)\n\n for (var i = 0; i < color_locations.length; i++) {\n var colorAddress = color_locations[i]\n // Palette data is encoded as Body-Feet-Border indices\n rom[colorAddress] = new_body\n rom[colorAddress + 1] = new_feet\n rom[colorAddress + 2] = new_border\n }\n}", "setBeakerColor()\n {\n if(this.gameDifficulty === 3)\n {\n let color = this.determineDifficulty2_Color();\n\n }\n else if (this.gameDifficulty === 2)\n {\n\n let color = this.determineDifficulty2_Color();\n }\n else\n {\n\n let color = this.determineDifficulty1_Color();\n\n }\n }", "function changeColor() {\n console.log(\"Hello, there. This is changeColor.\");\n if(color.value == \"colorRed\") {\n curColor = colorArray[0];\n }\n else if(color.value == \"colorGreen\") {\n curColor = colorArray[1];\n }\n else if(color.value == \"colorYellow\") {\n curColor = colorArray[2];\n }\n else if(color.value == \"colorBlue\") {\n curColor = colorArray[3];\n }\n else {\n curColor = colorArray[0];\n }\n\n }", "function changeColor() {\n switch (underScore.join(\"\")) {\n case \"red\":\n $body.style.background = '#FF0000';\n $body.style.color = '#00FF00';\n $body.style.transition = \"all 1s\";\n break;\n case \"orange\":\n $body.style.background = '#FF7F00';\n $body.style.color = '#0000FF';\n $body.style.transition = \"all 1s\";\n break;\n case \"yellow\":\n $body.style.background = '#FFFF00';\n $body.style.color = '#9400D3';\n $body.style.transition = \"all 1s\";\n break;\n case \"green\":\n $body.style.background = '#00FF00';\n $body.style.color = '#FF0000';\n $body.style.transition = \"all 1s\";\n break;\n case \"blue\":\n $body.style.background = '#0000FF';\n $body.style.color = '#FF7F00';\n $body.style.transition = \"all 1s\";\n break;\n case \"indigo\":\n $body.style.background = '#4B0082';\n $body.style.color = '#FF7F00';\n $body.style.transition = \"all 1s\";\n break;\n case \"violet\":\n $body.style.background = '#9400D3';\n $body.style.color = '#FFFF00';\n $body.style.transition = \"all 1s\";\n break;\n }\n}", "function changeColor()\n\t\t{\n\n\t\t(this.style.backgroundColor == \"black\") ? this.style.backgroundColor = \"white\" : this.style.backgroundColor = \"black\";\n\t\t\t\n\t\t}", "function color() {\n var map = {\n \"black\" : [ 0/255,0/255,0/255 ],\n \"silver\": [ 192/255,192/255,192/255 ],\n \"gray\" : [ 128/255,128/255,128/255 ],\n \"white\" : [ 255/255,255/255,255/255 ],\n \"maroon\": [ 128/255,0/255,0/255 ],\n \"red\" : [ 255/255,0/255,0/255 ],\n \"purple\": [ 128/255,0/255,128/255 ],\n \"fuchsia\": [ 255/255,0/255,255/255 ],\n \"green\" : [ 0/255,128/255,0/255 ],\n \"lime\" : [ 0/255,255/255,0/255 ],\n \"olive\" : [ 128/255,128/255,0/255 ],\n \"yellow\": [ 255/255,255/255,0/255 ],\n \"navy\" : [ 0/255,0/255,128/255 ],\n \"blue\" : [ 0/255,0/255,255/255 ],\n \"teal\" : [ 0/255,128/255,128/255 ],\n \"aqua\" : [ 0/255,255/255,255/255 ],\n \"aliceblue\" : [ 240/255,248/255,255/255 ],\n \"antiquewhite\" : [ 250/255,235/255,215/255 ],\n \"aqua\" : [ 0/255,255/255,255/255 ],\n \"aquamarine\" : [ 127/255,255/255,212/255 ],\n \"azure\" : [ 240/255,255/255,255/255 ],\n \"beige\" : [ 245/255,245/255,220/255 ],\n \"bisque\" : [ 255/255,228/255,196/255 ],\n \"black\" : [ 0/255,0/255,0/255 ],\n \"blanchedalmond\" : [ 255/255,235/255,205/255 ],\n \"blue\" : [ 0/255,0/255,255/255 ],\n \"blueviolet\" : [ 138/255,43/255,226/255 ],\n \"brown\" : [ 165/255,42/255,42/255 ],\n \"burlywood\" : [ 222/255,184/255,135/255 ],\n \"cadetblue\" : [ 95/255,158/255,160/255 ],\n \"chartreuse\" : [ 127/255,255/255,0/255 ],\n \"chocolate\" : [ 210/255,105/255,30/255 ],\n \"coral\" : [ 255/255,127/255,80/255 ],\n \"cornflowerblue\" : [ 100/255,149/255,237/255 ],\n \"cornsilk\" : [ 255/255,248/255,220/255 ],\n \"crimson\" : [ 220/255,20/255,60/255 ],\n \"cyan\" : [ 0/255,255/255,255/255 ],\n \"darkblue\" : [ 0/255,0/255,139/255 ],\n \"darkcyan\" : [ 0/255,139/255,139/255 ],\n \"darkgoldenrod\" : [ 184/255,134/255,11/255 ],\n \"darkgray\" : [ 169/255,169/255,169/255 ],\n \"darkgreen\" : [ 0/255,100/255,0/255 ],\n \"darkgrey\" : [ 169/255,169/255,169/255 ],\n \"darkkhaki\" : [ 189/255,183/255,107/255 ],\n \"darkmagenta\" : [ 139/255,0/255,139/255 ],\n \"darkolivegreen\" : [ 85/255,107/255,47/255 ],\n \"darkorange\" : [ 255/255,140/255,0/255 ],\n \"darkorchid\" : [ 153/255,50/255,204/255 ],\n \"darkred\" : [ 139/255,0/255,0/255 ],\n \"darksalmon\" : [ 233/255,150/255,122/255 ],\n \"darkseagreen\" : [ 143/255,188/255,143/255 ],\n \"darkslateblue\" : [ 72/255,61/255,139/255 ],\n \"darkslategray\" : [ 47/255,79/255,79/255 ],\n \"darkslategrey\" : [ 47/255,79/255,79/255 ],\n \"darkturquoise\" : [ 0/255,206/255,209/255 ],\n \"darkviolet\" : [ 148/255,0/255,211/255 ],\n \"deeppink\" : [ 255/255,20/255,147/255 ],\n \"deepskyblue\" : [ 0/255,191/255,255/255 ],\n \"dimgray\" : [ 105/255,105/255,105/255 ],\n \"dimgrey\" : [ 105/255,105/255,105/255 ],\n \"dodgerblue\" : [ 30/255,144/255,255/255 ],\n \"firebrick\" : [ 178/255,34/255,34/255 ],\n \"floralwhite\" : [ 255/255,250/255,240/255 ],\n \"forestgreen\" : [ 34/255,139/255,34/255 ],\n \"fuchsia\" : [ 255/255,0/255,255/255 ],\n \"gainsboro\" : [ 220/255,220/255,220/255 ],\n \"ghostwhite\" : [ 248/255,248/255,255/255 ],\n \"gold\" : [ 255/255,215/255,0/255 ],\n \"goldenrod\" : [ 218/255,165/255,32/255 ],\n \"gray\" : [ 128/255,128/255,128/255 ],\n \"green\" : [ 0/255,128/255,0/255 ],\n \"greenyellow\" : [ 173/255,255/255,47/255 ],\n \"grey\" : [ 128/255,128/255,128/255 ],\n \"honeydew\" : [ 240/255,255/255,240/255 ],\n \"hotpink\" : [ 255/255,105/255,180/255 ],\n \"indianred\" : [ 205/255,92/255,92/255 ],\n \"indigo\" : [ 75/255,0/255,130/255 ],\n \"ivory\" : [ 255/255,255/255,240/255 ],\n \"khaki\" : [ 240/255,230/255,140/255 ],\n \"lavender\" : [ 230/255,230/255,250/255 ],\n \"lavenderblush\" : [ 255/255,240/255,245/255 ],\n \"lawngreen\" : [ 124/255,252/255,0/255 ],\n \"lemonchiffon\" : [ 255/255,250/255,205/255 ],\n \"lightblue\" : [ 173/255,216/255,230/255 ],\n \"lightcoral\" : [ 240/255,128/255,128/255 ],\n \"lightcyan\" : [ 224/255,255/255,255/255 ],\n \"lightgoldenrodyellow\" : [ 250/255,250/255,210/255 ],\n \"lightgray\" : [ 211/255,211/255,211/255 ],\n \"lightgreen\" : [ 144/255,238/255,144/255 ],\n \"lightgrey\" : [ 211/255,211/255,211/255 ],\n \"lightpink\" : [ 255/255,182/255,193/255 ],\n \"lightsalmon\" : [ 255/255,160/255,122/255 ],\n \"lightseagreen\" : [ 32/255,178/255,170/255 ],\n \"lightskyblue\" : [ 135/255,206/255,250/255 ],\n \"lightslategray\" : [ 119/255,136/255,153/255 ],\n \"lightslategrey\" : [ 119/255,136/255,153/255 ],\n \"lightsteelblue\" : [ 176/255,196/255,222/255 ],\n \"lightyellow\" : [ 255/255,255/255,224/255 ],\n \"lime\" : [ 0/255,255/255,0/255 ],\n \"limegreen\" : [ 50/255,205/255,50/255 ],\n \"linen\" : [ 250/255,240/255,230/255 ],\n \"magenta\" : [ 255/255,0/255,255/255 ],\n \"maroon\" : [ 128/255,0/255,0/255 ],\n \"mediumaquamarine\" : [ 102/255,205/255,170/255 ],\n \"mediumblue\" : [ 0/255,0/255,205/255 ],\n \"mediumorchid\" : [ 186/255,85/255,211/255 ],\n \"mediumpurple\" : [ 147/255,112/255,219/255 ],\n \"mediumseagreen\" : [ 60/255,179/255,113/255 ],\n \"mediumslateblue\" : [ 123/255,104/255,238/255 ],\n \"mediumspringgreen\" : [ 0/255,250/255,154/255 ],\n \"mediumturquoise\" : [ 72/255,209/255,204/255 ],\n \"mediumvioletred\" : [ 199/255,21/255,133/255 ],\n \"midnightblue\" : [ 25/255,25/255,112/255 ],\n \"mintcream\" : [ 245/255,255/255,250/255 ],\n \"mistyrose\" : [ 255/255,228/255,225/255 ],\n \"moccasin\" : [ 255/255,228/255,181/255 ],\n \"navajowhite\" : [ 255/255,222/255,173/255 ],\n \"navy\" : [ 0/255,0/255,128/255 ],\n \"oldlace\" : [ 253/255,245/255,230/255 ],\n \"olive\" : [ 128/255,128/255,0/255 ],\n \"olivedrab\" : [ 107/255,142/255,35/255 ],\n \"orange\" : [ 255/255,165/255,0/255 ],\n \"orangered\" : [ 255/255,69/255,0/255 ],\n \"orchid\" : [ 218/255,112/255,214/255 ],\n \"palegoldenrod\" : [ 238/255,232/255,170/255 ],\n \"palegreen\" : [ 152/255,251/255,152/255 ],\n \"paleturquoise\" : [ 175/255,238/255,238/255 ],\n \"palevioletred\" : [ 219/255,112/255,147/255 ],\n \"papayawhip\" : [ 255/255,239/255,213/255 ],\n \"peachpuff\" : [ 255/255,218/255,185/255 ],\n \"peru\" : [ 205/255,133/255,63/255 ],\n \"pink\" : [ 255/255,192/255,203/255 ],\n \"plum\" : [ 221/255,160/255,221/255 ],\n \"powderblue\" : [ 176/255,224/255,230/255 ],\n \"purple\" : [ 128/255,0/255,128/255 ],\n \"red\" : [ 255/255,0/255,0/255 ],\n \"rosybrown\" : [ 188/255,143/255,143/255 ],\n \"royalblue\" : [ 65/255,105/255,225/255 ],\n \"saddlebrown\" : [ 139/255,69/255,19/255 ],\n \"salmon\" : [ 250/255,128/255,114/255 ],\n \"sandybrown\" : [ 244/255,164/255,96/255 ],\n \"seagreen\" : [ 46/255,139/255,87/255 ],\n \"seashell\" : [ 255/255,245/255,238/255 ],\n \"sienna\" : [ 160/255,82/255,45/255 ],\n \"silver\" : [ 192/255,192/255,192/255 ],\n \"skyblue\" : [ 135/255,206/255,235/255 ],\n \"slateblue\" : [ 106/255,90/255,205/255 ],\n \"slategray\" : [ 112/255,128/255,144/255 ],\n \"slategrey\" : [ 112/255,128/255,144/255 ],\n \"snow\" : [ 255/255,250/255,250/255 ],\n \"springgreen\" : [ 0/255,255/255,127/255 ],\n \"steelblue\" : [ 70/255,130/255,180/255 ],\n \"tan\" : [ 210/255,180/255,140/255 ],\n \"teal\" : [ 0/255,128/255,128/255 ],\n \"thistle\" : [ 216/255,191/255,216/255 ],\n \"tomato\" : [ 255/255,99/255,71/255 ],\n \"turquoise\" : [ 64/255,224/255,208/255 ],\n \"violet\" : [ 238/255,130/255,238/255 ],\n \"wheat\" : [ 245/255,222/255,179/255 ],\n \"white\" : [ 255/255,255/255,255/255 ],\n \"whitesmoke\" : [ 245/255,245/255,245/255 ],\n \"yellow\" : [ 255/255,255/255,0/255 ],\n \"yellowgreen\" : [ 154/255,205/255,50/255 ] };\n\n var o, i = 1, a = arguments, c = a[0], alpha;\n\n if(a[0].length<4 && (a[i]*1-0)==a[i]) { alpha = a[i++]; } // first argument rgb (no a), and next one is numeric?\n if(a[i].length) { a = a[i], i = 0; } // next arg an array, make it our main array to walk through\n if(typeof c == 'string')\n c = map[c.toLowerCase()];\n if(alpha!==undefined)\n c = c.concat(alpha);\n for(o=a[i++]; i<a.length; i++) {\n o = o.union(a[i]);\n }\n return o.setColor(c);\n}", "blueify(){\n this.transformType = 'blueified';\n const rgbValues = [...this.colorTable].map(a => {\n return [a.slice(0, 2), a.slice(2,4), a.slice(4, 6)].map((b, i) => {\n let rgb = i === 0 ? 'ff' : Math.floor(parseInt(b,16)/2).toString(16);\n return rgb.length === 1 ? `0${rgb}` : rgb;\n }).join('');\n });\n\n this.updateColorTable(rgbValues.join(''));\n }", "function colorChange() {\n\t\tvar colorReplace;\n\t\tvar itemList = $('.item');\n\t\tvar i, color, thisItem;\n\n\t\tif (scheme == 'warm') {\n\t\t\tfor (i = 0; i < itemList.length; i++) {\n\t\t\t\tcolor = 255 - (i * 10);\n\t\t\t\tcolorReplace = 'rgb(' + color + ', 70, 0)';\n\t\t\t\tthisItem = itemList[i];\n\t\t\t\t$(thisItem).css({'background': colorReplace, 'color': 'white'});\n\t\t\t}\n\t\t} else if (scheme == 'cool') {\n\t\t\tfor (i = 0; i < itemList.length; i++) {\n\t\t\t\tif (i <= 20) {\n\t\t\t\t\tcolor = 100 + (i * 5);\n\t\t\t\t\tcolorReplace = 'rgb(0, 70, ' + color + ')';\n\t\t\t\t} else {\n\t\t\t\t\tcolor = 70 + ((i - 20) * 5);\n\t\t\t\t\tcolorReplace = 'rgb(0, ' + color + ', 225)';\n\t\t\t\t}\n\t\t\t\tthisItem = itemList[i];\n\t\t\t\t$(thisItem).css({'background': colorReplace, 'color': 'white'});\n\t\t\t}\n\t\t} else if (scheme == 'default') {\n\t\t\tfor (i = 0; i < itemList.length; i++) {\n\t\t\t\tcolorReplace = 'aquamarine';\n\t\t\t\tthisItem = itemList[i];\n\t\t\t\t$(thisItem).css({'background': colorReplace, 'color': 'black'});\n\t\t\t}\n\t\t} else if (scheme == 'custom') {\n\t\t\tfor (i = 0; i < itemList.length; i++) {\n\t\t\t\tcolorReplace = $('#custom').text();\n\t\t\t\tthisItem = itemList[i];\n\t\t\t\t$(thisItem).css({'background': colorReplace, 'color': 'black'});\n\t\t\t}\n\t\t}\n\t\t//end the colorChange()\n\t}", "function changeEveryColorToRed(colors) {\n}", "selectColor(x, y, wd, ht){\n this.colorSec = this.colorPromedio(x, y, wd, ht);\n if (this.colorG){\n let tempG = this.colorSec.reduce((a, b) => a+b);\n this.colorSec = this.colorSec.map(t => tempG/3);\n }\n this.ctx.fillStyle = 'rgb('+this.colorSec[0]+\n ','+ this.colorSec[1]+\n ','+ this.colorSec[2]+')';\n }", "function updateColor(color) {\n var hexColor = \"transparent\";\n if (color) {\n hexColor = color.toHexString();\n }\n $('.background').css('background-color', hexColor);\n\n $('.ratio').each( function (i) {\n $(this).html(contrastRatio(colors[i], hexColor));\n });\n\n $('.pass').each( function (i) {\n $(this).html(isPassing(contrastRatio(colors[i], hexColor)));\n });\n }", "function setColor(magnitude) {\n \tif (magnitude > 5) {\n \treturn '#FF0000'\n \t} else if (magnitude > 4) {\n \treturn '#FF7C00'\n \t} else if (magnitude > 3) {\n \treturn '#FFBE00'\n \t} else if (magnitude > 2) {\n \treturn '#FFF500'\n \t} else if (magnitude > 1) {\n \treturn '#AEFF00'\n \t} else {\n \treturn '#39FF00'\n \t}\n}", "function color (i){\n\tif (i===0){\n\t\treturn \"rgb(1, 95, 102)\";\n\t} else if (i===1) {\n\t\treturn \"rgb(45, 241, 255)\";\n\t} else if (i===2) {\n\t\treturn \"rgb(34, 86, 150)\";\n\t} else if (i===3) {\n\t\treturn \"rgb(0, 132, 88)\";\n\t} else if (i===4) {\n\t\treturn \"rgb(56, 255, 188)\";\n\t} else if (i===5) {\n\t\treturn \"rgb(77, 168, 137)\";\n\t} else {\n\t\treturn \"rgb(1, 95, 102)\";\n\t}\n}", "set colorValue(value) {}", "function changeColor(){\n\tif (colorIndex >= bodyColors.length - 1) {\n\t\tcolorIndex = -1;\n\t}\n\tcolorIndex++;\n\tconsole.log(colorIndex);\n\tbodyBcg.style.backgroundColor = bodyColors[colorIndex];\n\tbodyBcg.style.color = bodyFontColors[colorIndex];\n\tcontainer.style.backgroundColor = containerColors[colorIndex];\n\tcontainer.style.color = clockFontColors[colorIndex];\n\tclock.style.backgroundColor = clockColors[colorIndex];\n}", "updateColor() {\n if (this.colorToLerpTo == 0) {\n if (this.r != 255) {\n this.r++;\n if (this.g != 20) this.g--;\n if (this.b != 147) this.b--;\n this.color = makeColor(this.r, this.g, this.b);\n } else {\n this.g = 20;\n this.b = 147;\n this.colorToLerpTo = 1;\n this.color = makeColor(this.r, this.g, this.b);\n }\n } else if (this.colorToLerpTo == 1) {\n if (this.g != 255) {\n this.g++;\n if (this.b != 20) this.b--;\n if (this.r != 147) this.r--;\n this.color = makeColor(this.r, this.g, this.b);\n } else {\n this.r = 147;\n this.b = 20;\n this.colorToLerpTo = 2;\n this.color = makeColor(this.r, this.g, this.b);\n }\n } else if (this.colorToLerpTo == 2) {\n if (this.b != 255) {\n this.b++;\n if (this.r != 20) this.r--;\n if (this.g != 147) this.g--;\n this.color = makeColor(this.r, this.g, this.b);\n } else {\n this.g = 147;\n this.r = 20;\n this.colorToLerpTo = 0;\n this.color = makeColor(this.r, this.g, this.b);\n }\n }\n }", "function changeColor()\n{\n if (this.style.backgroundColor === 'rgb(255, 255, 255)' || flag === 1)\n {\n this.style.backgroundColor = 'rgb(' + Math.floor(Math.random() * 256) + ','\n + Math.floor(Math.random() * 256) + ',' + Math.floor(Math.random() * 256) + ')';\n }\n else if (flag === 0)\n {\n let lightness = parseInt(this.style.filter.match(/\\d+/));\n lightness != 0 ? this.style.filter = `brightness(${lightness - 10}%)` : false;\n }\n}", "function pintarColor() {\n var color = document.getElementById(\"botonColor\");\n ctx.fillStyle = color.value;\n ctx.strokeStyle = color.value;\n }", "function colour() {\n var CID = this.id;\n var COL = this.value;\n this.style.background = HEX[COL];\n this.style.color = fontCol(COL);\n createCookie(CID, COL, 3);\n var CID = (CID.indexOf(\"[\") != -1) ? CID.slice(0, CID.indexOf(\"[\")) : CID;\n if (CID.slice(-10) == \"TextColour\") {\n CID = CID.substr(0, CID.length - 10)\n }\n var i;\n var FILV = S.getElementsByClassName(CID + \" fill\");\n for (i = 0; i < FILV.length; i++) {\n FILV[i].style.fill = HEX[COL];\n }\n var STRV = S.getElementsByClassName(CID + \" stroke\");\n for (i = 0; i < STRV.length; i++) {\n STRV[i].style.stroke = HEX[COL];\n }\n var FADV = S.getElementsByClassName(CID + \" stopColor\");\n for (i = 0; i < FADV.length; i++) {\n FADV[i].style.stopColor = HEX[COL];\n }\n}", "function setColor(magnitude) {\n return magnitude > 5 ? \"red\":\n magnitude > 4 ? \"orange\":\n magnitude > 3 ? \"pink\":\n magnitude > 2 ? \"yellow\":\n magnitude > 1 ? \"lightgreen\":\n \"lightyellow\";\n }", "function newColor() {\n this.style.background = colorPicker.value;\n }", "function SetColor(){\n\tvar newColor : Color;\n\tnewColor.r = (Random.Range(0, 17) / 16.0);\n\tnewColor.g = (Random.Range(0, 17) / 16.0);\n\tnewColor.b = (Random.Range(0, 17) / 16.0);\n\tnewColor.a = 1.0;\n\n\tfor(var i = 0; i < meshData.Length; i++){\n\t\tvar skinnedMeshData : SkinnedMeshRenderer = meshData[i].GetComponent(SkinnedMeshRenderer);\n\t\tif(skinnedMeshData){\n\t\t\tskinnedMeshData.material.color = newColor;\n\t\t}\n\t\telse{\n\t\t\tmeshData[i].GetComponent(MeshRenderer).material.color = newColor;\n\t\t}\n\t}\n}", "changeCouleurText(val) {\r\n this.textlogoid.style.color = val;\r\n}", "function color(turn) {\n\n // By the end of this loop, i is the number of 1s in the binary representation of turn.\n for (var i = 0; turn != 0; i++) {\n turn = turn & (turn - 1);\n }\n\n if (i % 2 ==0) {\n return \"red\";\n }\n else {\n return \"blue\";\n }\n }", "function ChangeColor(n){\n noteBackground = n;\n let button = document.getElementById(\"add\");\n if(n==='white' || n===\"yellow\"){\n button.style.background=n;\n button.style.color='black'\n }\n else{\n button.style.background=n;\n button.style.color='white'\n }\n \n }", "function cambiarIndicadorDeColor(color){\n indicadorDeColor.style.backgroundColor = color;\n indicadorDeColorMensaje.textContent = color;\n}", "function color() {\n return colorValue() + colorValue() + colorValue();\n}", "function changeColor(c) {\n block.style.color = c;\n}", "function getColor(e) {\n color = e.value;\n }", "function colorChange(i) {\n //do module to find every 5th move\n if(i % 5 == 0){\n //if state ment to change the color of the text\n if((obj.style.color == \"red\") ? (obj.style.color = \"blue\") : (obj.style.color = \"red\"));\n }\n\n\n}", "function changeColors(color) {\r\n for (let i = 0; i < sq.length; i++) {\r\n sq[i].style.background = color;\r\n }\r\n}", "function colorPuntos(d) { \n\treturn d == \"Ateles geoffroyi\" ? '#FF0000' : \n\td == \"Alouatta palliata\" ? '#000000' : \n\td == \"Saimiri oerstedii\" ? '#D17656' : \n\td == \"Cebus capucinus\" ? '#FFFFFF' :\n\t\t'#0000FF'; \n}" ]
[ "0.7579182", "0.7420032", "0.71965784", "0.7143855", "0.7115005", "0.7096492", "0.7084842", "0.70112765", "0.69973755", "0.6982523", "0.69674814", "0.69609386", "0.695327", "0.6947832", "0.69305116", "0.6929169", "0.6917636", "0.6910333", "0.68937707", "0.6892108", "0.68756515", "0.68721175", "0.6864684", "0.6830012", "0.6829755", "0.68219185", "0.6813741", "0.68121463", "0.6789623", "0.6782369", "0.67747146", "0.677168", "0.67683953", "0.6766082", "0.6763853", "0.6748792", "0.6745023", "0.67409664", "0.6740669", "0.6735643", "0.6735094", "0.67312515", "0.67252195", "0.67175305", "0.670767", "0.67070335", "0.670487", "0.67038685", "0.6678181", "0.66762215", "0.667523", "0.6666736", "0.66555035", "0.66488284", "0.6641269", "0.6639177", "0.6632676", "0.6621265", "0.6620101", "0.66193026", "0.66188145", "0.65917003", "0.6584321", "0.65822196", "0.6581811", "0.65799206", "0.65771085", "0.65724474", "0.6572398", "0.6560855", "0.65525806", "0.65497273", "0.65439343", "0.6541388", "0.6541256", "0.6539721", "0.65396667", "0.6536636", "0.65295887", "0.6528617", "0.65239346", "0.65199196", "0.6514273", "0.65137005", "0.6502329", "0.6502031", "0.6498653", "0.6495587", "0.6494358", "0.64875144", "0.64854854", "0.6483929", "0.6479887", "0.64793885", "0.6479299", "0.6475122", "0.6474856", "0.647334", "0.64726174", "0.6468912", "0.6468367" ]
0.0
-1
Define a function we want to run once for each feature in the features array Give each feature a popup describing the place and time of the earthquake
function onEachFeature(feature, layer) { console.log("I'm in onEachFeature") layer.bindPopup("<h3>" + feature.properties.YEAR_MONTH + "</h3><hr><p>" + feature.properties.NARRATIVE + "</p>"); var two_coords =[] two_coords.push(feature.properties.Longitude); two_coords.push(feature.properties.Latitude); console.log(two_coords); console.log("Year" +feature.properties.YR); sizeMarkers.push( L.circle(two_coords, { color: 'red', stroke: false, fillColor: '#f03', fillOpacity: 1,//(feature.properties.mag/5), radius: 50//markerSize(feature.properties.mag) }) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onEachFeature(feature, layer) {\n // Give each feature a popup describing the place and time of the earthquake\n layer.bindPopup(`<h3> ${feature.properties.place} </h3> <hr> <p> ${Date(feature.properties.time)} </p>`);\n }", "function onEachFeature(feature, layer) {\n // does this feature have a property named popupContent?\n if (feature.properties && feature.properties.mag) {\n\n // Convert timestamp to formatted datetime\n var formattedDate = \"\";\n if (feature.properties.time) {\n var d = new Date(feature.properties.time);\n formattedDate = + d.getFullYear() + \"-\" + (d.getMonth() + 1) + \"-\" + d.getDate();\n var hours = (d.getHours() < 10) ? \"0\" + d.getHours() : d.getHours();\n var minutes = (d.getMinutes() < 10) ? \"0\" + d.getMinutes() : d.getMinutes();\n var formattedTime = hours + \":\" + minutes;\n\n formattedDate = formattedDate + \" \" + formattedTime;\n }\n\n // Add popup with earthquake information\n layer.bindPopup('<h3>' + feature.properties.place + '</h3><hr>' +\n formattedDate + '<br>' +\n 'Magnitude ' + feature.properties.mag + '<br>' +\n '<a href = \"' + feature.properties.url + '\" target=\"_blank\" >More info</a>'\n );\n }\n}", "function createFeatures(earthquakeData) { \n // Define a function to run once for each feature in the features array\n // Give each feature a popup describing the place, date/time and magnitude of the earthquake \n var earthquakes = L.geoJSON(earthquakeData, {\n \n onEachFeature: function (feature, layer){\n layer.bindPopup(`<strong>Place:</strong> ${feature.properties.place}<br>\n <strong>Time:</strong> ${new Date(feature.properties.time)}<br>\n <strong>Magnitude:</strong> ${feature.properties.mag}`);\n },\n \n pointToLayer: function (feature, latlng) {\n return new L.circle(latlng,\n {radius: getRadius(feature.properties.mag),\n fillColor: getColor(feature.properties.mag),\n color: \"#000\",\n weight: .5,\n fillOpacity: .6,\n stroke: true\n })\n }\n });\n // Send earthquakes layer to the createMap function\n createMap(earthquakes); \n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3> Location: \" + feature.properties.place +\n \"<br> Magnitude: \" + feature.properties.mag + \n \"</h3> <hr><p>Occurrence Time: \" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature,layer){\n layer.bindPopup(\"<h3>Place: \" + feature.properties.place +\n \"</h3><hr><h3>Magnitude: \"+ feature.properties.mag +\n \"</h3><hr><h3>Time: \" + new Date(feature.properties.time) + \"</h3>\")\n }", "function onEachFeatureFunc(feature, layer) {\n layer.bindPopup(\"Magnitude: \" + feature.properties.mag + \"<br>Location: \" + feature.properties.place+\"<br>Time:\"+new Date(feature.properties.time));\n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) +\n \"</p><p>Magnitude: \" + feature.properties.mag + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n\t\t\"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\" +\n\t\t\"</h3><hr><p>Magnitude: \" + feature.properties.mag + \"</p>\");\n }", "function do_OnEachFeature(feature, obj) {\r\n obj.bindPopup(\"<h2>\" + feature.properties.title +\r\n \"</h2><hr>\" + \"<h4>\" + new Date(feature.properties.time) + \"</h4>\"\r\n + \"<h4>\" + \"For more information on this event visit:\" + \"</h4>\"\r\n + \"<h5>\" + feature.properties.url + \"</h5></p>\");\r\n\r\n console.log(feature);\r\n\r\n\r\n// Set color of markers\r\n\r\n var color = \"\";\r\n if (feature.properties.mag > 5.5) {\r\n color = \"red\" \r\n }\r\n else if (feature.properties.mag > 5) {\r\n color = \"orange\"\r\n }\r\n else if (feature.properties.mag > 4.5) {\r\n color = \"light orange\"\r\n }\r\n else {\r\n color = \"yellow\"\r\n }\r\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\" +\n \"<p>Magnitude:\" + feature.properties.mag + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p><p>\" + \"Magnitude: \" + feature.properties.mag + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + Math.round(feature.properties.mag * 100) / 100 +\n \" Magnitude Earthquake</h3><hr><p>\" + feature.properties.place +\n \"</p><p>\" + new Date(feature.properties.time) + \"</p>\")\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place + \n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\r\n layer.bindPopup(\"<h3>\" + feature.properties.place + \r\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p><hr><p>\" + feature.properties.mag + \"</p>\");\r\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(`<h3>${feature.properties.place}</h3><hr>\n <h3>Magnitude: ${feature.properties.mag}</h3><hr><p>${new Date(feature.properties.time)}</p>`);\n }", "function onEachFeature(feature, layer) {\r\n layer.bindPopup(\"<h3>\" + feature.properties.place +\r\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\r\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<p>\" + feature.properties.place +\n \"</p><p>\" + new Date(feature.properties.time) + \"</p>\" +\n \"<p>Magnitude: \" + feature.properties.mag + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place + \"</h3><hr><p>Magnitude: \" +\n feature.properties.mag + \"</p><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p align='left'>Magnitude: \" + \"<strong>\" + feature.properties.mag + \"</strong><br>\" +\n \"Time: \" + \"<strong>\" + new Date(feature.properties.time) + \"</strong></p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + \"Magnitude: \" + feature.properties.mag + \". \" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p> Magnitude = \" + feature.properties.mag + \"</p>\" +\n \"<hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \". <br> Magnitude: \" + feature.properties.mag + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n\n // bind popup with additional detail to each marker\n layer.bindPopup(\"<h3>Earthquake Details</h3><hr><strong>Location: </strong>\" + feature.properties.place + \"<br><strong>Magnitude: </strong>\" + feature.properties.mag + \"<br><strong>Date/Time: </strong>\" + new Date(feature.properties.time) + \"<br><strong>Depth: </strong>\" + feature.geometry.coordinates[2]);\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.title +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"<p>\");\n }", "function createFeatures(Earthquakes_data) {\n\n /*** First get marker color and radius \n * based on earthquake magnitude classes\n * found here: http://www.geo.mtu.edu/UPSeis/magnitude.html */\n function getRadius(d){\n return d > 8 ? 192:\n d > 7 ? 96 :\n d > 6 ? 48 :\n d > 5 ? 24 :\n d > 4 ? 12 :\n 6;\n }\n function getColor(d) { // ranges from pale yellowish to dark reddish\n return d > 8 ? '#710016' :\n d > 7 ? '#E31A1C':\n d > 6 ? '#FC4E2A' :\n d > 5 ? '#FD8D3C' :\n d > 4 ? '#fec981' :\n '#fff6cf';\n }\n function geojsonMarkerOptions(feature) {\n return {\n radius: getRadius(feature.properties.mag),\n fillColor: getColor(feature.properties.mag),\n color: \"#000\",\n weight: 1,\n opacity: 1,\n fillOpacity: 0.8\n };\n\n } // end geojsonMarkerOptions()\n\n /*** Binds popup on each circle feature.\n * Used below in the L.geoJSON for Earthquake data */\n function onEachFeature(feature, layer) {\n // if properties is not empty\n if (feature.properties) {\n layer.bindPopup(\n \"Event: \" + feature.properties.title \n + \"<hr>Time: \" \n + getTime(feature.properties.time)\n );\n \n // popups on circle on hover and close when mouse moves out\n layer.on(\"mouseover\", function(event){\n this.openPopup();\n });\n layer.on('mouseout', function (e) {\n this.closePopup();\n });\n\n // function: Get readable date from UTC time stamp in the api\n function getTime(feature) {\n var date = new Date(feature);\n // Day part of the timestamp\n var getDate = date.getUTCDate();\n // month part of the timestamp\n var utcMonth = date.getUTCMonth();\n // returns the month based on UTC month (range: 0-11)\n var month = new Array(12);\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n var getMonth = month[utcMonth];\n // Hours part from the timestamp\n var hours = date.getUTCHours();\n // Minutes part from the timestamp\n var minutes = \"0\" + date.getUTCMinutes();\n // Will display time in 10:30:23 format\n var formattedTime = getMonth + \" \" + getDate + \" - \" \n + hours + ':' + minutes.substr(-2) + \" UTC\"; \n return formattedTime;\n } // end function getTime(feature)\n } // end if (feature.properties)\n } //End onEachFeature()\n\n // *** leaflet geoJSON to convert data into circles on the map w/ other features\n var quakePoints = \n // add to time dimension control\n L.geoJson(Earthquakes_data, {\n pointToLayer: function (feature, latlng) {\n return L.circleMarker(latlng); // create circle for each coordinate\n },\n style: geojsonMarkerOptions,\n onEachFeature: onEachFeature // to bind mouse-hover popups\n }); // end geoJSON\n\n /*** Time dimension layer for earthquake points, auto get dimensions***/\n TimeDimLay = L.timeDimension.layer.geoJson(quakePoints, {\n addlastPoint: true, // add point for earliest data\n updateTimeDimension: true // use the time dimensions range for this geoJson layer \n }).addTo(mymap); \t\n\n // add to master control layer\n controlLayers.addOverlay(TimeDimLay, 'Earthquake Points');\n\n // *** Add fault lines to mymap \n var faultsURL = \"https://raw.githubusercontent.com/fraxen/tectonicplates/master/GeoJSON/PB2002_plates.json\" \n d3.json(faultsURL, function(faultsData) {\n drawFaults(faultsData.features);\n });\n\n function drawFaults(faultsData) {\n var faultLayer = L.geoJSON(faultsData, {\n pointToLayer: function (feature, latlng) {\n return new L.polyline(latlng);\n },\n }).addTo(mymap);\n controlLayers.addOverlay(faultLayer, 'Fault Lines');\n // bring to front earthquake data points when page first loads\n TimeDimLay.bringToFront();\n }\n\n /*** Always keep quakePoints time dimension layer in front\n * add eventlistener for whenever layers are overlayed. \n * Keep Earthquake data at the front */\n mymap.on(\"overlayadd\", function (event) {\n TimeDimLay.bringToFront();\n });\n\n // *** Create legend at bottom-right\n // adapted from http://leafletjs.com/examples/choropleth/\n var legend = L.control({position: 'bottomright'});\n\n legend.onAdd = function (map) {\n\n var div = L.DomUtil.create('div', 'info legend'),\n grades = [0, 4, 5, 6, 7, 8],\n labels = [\"Minor\", \"Light\", \"Moderate\", \"Strong\", \"Major\", \"Great\"];\n\n // loop through our density intervals and generate a label with a colored square for each interval\n for (var i = 0; i < grades.length; i++) {\n div.innerHTML +=\n '<i style=\"background:' + getColor(grades[i] + 1) + '\"></i> ' +\n \"(\" + grades[i] + (grades[i + 1] ? '&ndash;' + grades[i + 1] + \") \" \n + labels[i] + '<br>' : \"+) \" + labels[i]);\n }\n\n return div;\n };\n\n\n // adding legend to mymap\n legend.addTo(mymap);\n\n} //end createFeatures()", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3 align ='center'>\" + feature.properties.place +\n \"</h3><hr><p><strong>Time: <strong>\" + new Date(feature.properties.time) + \"</p>\" +\n \"</h3><p><strong>Magnitude: <strong>\" + feature.properties.mag + \"</p>\" +\n \"</h3><p><strong>Depth: <strong>\" + feature.geometry.coordinates[2] + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3> Place: \" + feature.properties.place + \"</h3><h3>Magnitude:\" + feature.properties.mag + \"</h3><h3>Depth:\" + feature.geometry.coordinates[2] + \"</h3><h3>Time:\" + new Date(feature.properties.time) + \"</h3>\")\n\n }", "function onEachFeature(feature, layer) { \n layer.bindPopup(\"<h2>\" + feature.properties.place +\n \"</h2><hr><h4>Magnitude: \" + feature.properties.mag + \"</h4><hr><h4>Depth: \" + feature.geometry.coordinates[2] + \"km</h4><hr><p>\" + new Date(feature.properties.time) + \"</p>\")\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place + \"</h3>\" +\n \"Magnitude: <strong>\" + feature.properties.mag + \"</strong><hr>\" +\n \"<p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function createFeatures(quakeData, tectonicData) {\n /**** onEachFeature properties ******** */\n function onEachFeature(feature, layer) {\n // Does this feature have a property ?\n if (feature.properties) {\n // Create a popup that provides detailed description\n popupContent = \"<h3>\" + feature.properties.place +\n \"</h3> <h4> Magnitude: \" + feature.properties.mag + \"</h4><hr><p>\" + \n new Date(feature.properties.time) + \"</p>\";\n layer.bindPopup(popupContent,{offset: new L.Point(0, -10)});\n }\n }\n // Creating earthquakes overlay map\n var earthquakes = L.geoJSON(quakeData, {\n pointToLayer: function(quakeData, latlng){\n return L.circle ( latlng,{ \n radius: MarkerSize(quakeData.properties.mag),\n fillColor: MarkerColors(quakeData.properties.mag),\n fillOpacity: 1.0,\n weight: 1,\n color: \"black\",\n className: 'blinking'\n });\n },\n onEachFeature: onEachFeature\n }); \n // Creating tectonic plates overlay map\n var tectonic_plates = L.geoJSON(tectonicData, {\n style: function(feature){\n return {color: \"orange\",\n weight: 2};\n },\n onEachFeature: function(feature, layer ){\n // Create a popup that provides detailed description\n popupContent = \"<h3>\" + feature.properties.Name +\n \"</h3><h4> PlateA: \" + feature.properties.PlateA + \n \"<br>PlateB:\" + feature.properties.PlateB +\"</h4> <hr><p>\" + \n feature.properties.Source + \"</p>\";\n layer.bindPopup(popupContent)\n }\n });\n\n // Sending our earthquakes layer to the createMap function\n createMap(earthquakes, tectonic_plates);\n}", "function onEachFeature(feature, layer) {\n // First we get the define a the variable earthquake_day_of_week\n // Then see use a switch-case statement to check the numbered day of the earthquake\n // and defined it the day of the week in words as appropriate\n // that is, 0 = Sunday, 1 = Monday, ..., 6 = Saturday\n var earthquake_day_of_week;\n switch (new Date(feature.properties.time).getDay()) {\n case 0:\n earthquake_day_of_week = \"Sunday\";\n break;\n case 1:\n earthquake_day_of_week = \"Monday\";\n break;\n case 2:\n earthquake_day_of_week = \"Tuesday\";\n break;\n case 3:\n earthquake_day_of_week = \"Wednesday\";\n break;\n case 4:\n earthquake_day_of_week = \"Thursday\";\n break;\n case 5:\n earthquake_day_of_week = \"Friday\";\n break;\n default:\n earthquake_day_of_week = \"Saturday\";\n break;\n }\n \n // Next we define the earthquake_date variable to gold the date of the earthquake\n var earthquake_date = new Date(feature.properties.time).toLocaleDateString();\n\n // Then we define earthquake_time_hours to hold the hour of the time the earthquake happened\n // If the hour is less than 0, we concatenate a 0 before it for a more natural-looking time\n // That is, for example: 06:30 lookds better than 6:30\n var earthquake_time_hours = new Date(feature.properties.time).getHours() < 10 ?\n \"0\" + new Date(feature.properties.time).getHours() : new Date(feature.properties.time).getHours();\n\n // After that we define earthquake_time_hours to hold the minuts of the time the earthquake happened\n // If the minute is less than 0, we concatenate a 0 before it for a more natural-looking time\n // That is, for example: 06:05 lookds better than 06:5\n var earthquake_time_minutes = new Date(feature.properties.time).getMinutes() < 10 ?\n \"0\" + new Date(feature.properties.time).getMinutes() : new Date(feature.properties.time).getMinutes();\n \n // Finally we concatenate the earthquake_time_hours variable with the earthquake_time_minutes for a full nicely-formatted time.\n var earthquake_time = earthquake_time_hours + \":\" + earthquake_time_minutes\n layer.bindPopup(`<h3>Location: ${feature.properties.place}</h3><hr><p>Date: ${earthquake_day_of_week}, ${earthquake_date}</p><p>Time: ${earthquake_time}</p><p>Magnitude: ${feature.properties.mag}</p>`);\n }", "function oneachfeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p><hr><p>Magnitude: \" + (feature.properties.mag) + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n // if properties is not empty\n if (feature.properties) {\n layer.bindPopup(\n \"Event: \" + feature.properties.title \n + \"<hr>Time: \" \n + getTime(feature.properties.time)\n );\n \n // popups on circle on hover and close when mouse moves out\n layer.on(\"mouseover\", function(event){\n this.openPopup();\n });\n layer.on('mouseout', function (e) {\n this.closePopup();\n });\n\n // function: Get readable date from UTC time stamp in the api\n function getTime(feature) {\n var date = new Date(feature);\n // Day part of the timestamp\n var getDate = date.getUTCDate();\n // month part of the timestamp\n var utcMonth = date.getUTCMonth();\n // returns the month based on UTC month (range: 0-11)\n var month = new Array(12);\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n var getMonth = month[utcMonth];\n // Hours part from the timestamp\n var hours = date.getUTCHours();\n // Minutes part from the timestamp\n var minutes = \"0\" + date.getUTCMinutes();\n // Will display time in 10:30:23 format\n var formattedTime = getMonth + \" \" + getDate + \" - \" \n + hours + ':' + minutes.substr(-2) + \" UTC\"; \n return formattedTime;\n } // end function getTime(feature)\n } // end if (feature.properties)\n } //End onEachFeature()", "function createFeatures(quakeData) {\n /**** onEachFeature properties ******** */\n function onEachFeature(feature, layer) {\n // Does this feature have a property ?\n if (feature.properties) {\n // Create a popup that provides detailed description\n popupContent = \"<h3>\" + feature.properties.place +\n \"</h3> <h4> Magnitude: \" + feature.properties.mag + \"</h4><hr><p>\" + \n new Date(feature.properties.time) + \"</p>\";\n layer.bindPopup(popupContent,{offset: new L.Point(0, -10)});\n }\n }\n // Creating earthquakes overlay map\n var earthquakes = L.geoJSON(quakeData, {\n pointToLayer: function(quakeData, latlng){\n return L.circle ( latlng,{ \n radius: MarkerSize(quakeData.properties.mag),\n fillColor: MarkerColors(quakeData.properties.mag),\n fillOpacity: 1.0,\n weight: 1,\n color: \"black\",\n className: 'blinking'\n });\n },\n onEachFeature: onEachFeature\n }); \n // Sending our earthquakes layer to the createMap function\n createMap(earthquakes);\n}", "function createFeatures(earthquakeData) {\n // function to add popup info about each earthquake\n function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + `Location: ${feature.properties.place}` + \"</h3><hr><p>\" +\n `<strong>Time</strong>: ${new Date(feature.properties.time)}` + \"</p>\" + \"</h3><hr><p>\" +\n `<strong>magnitude</strong>: ${feature.properties.mag}` + \"</p>\" + \"</h3><hr><p>\" +\n `<strong>Status</strong>: ${feature.properties.status}` + \"</p>\");\n }\n\n // Create a GeoJSON layer containing the features array on the earthquakeData object\n // Run the onEachFeature function once for each piece of data in the array\n let layerToMap = L.geoJSON(earthquakeData, {\n onEachFeature: onEachFeature,\n\n // define marker circle radius and color based on earthquake magitude..\n pointToLayer: function pointToLayer(feature, latlng) {\n let radius = feature.properties.mag * 5.0;\n let magnitude = feature.properties.mag;\n\n if (magnitude > 5) {\n fillcolor = '#ea2c2c';\n }\n else if (magnitude > 4) {\n fillcolor = '#ea822c';\n }\n else if (magnitude > 3) {\n fillcolor = '#ee9c00';\n }\n else if (magnitude > 2) {\n fillcolor = '#eecc00';\n }\n else if (magnitude > 1) {\n fillcolor = '#d4ee00';\n }\n else fillcolor = '#98ee00';\n\n return L.circleMarker(latlng, {\n radius: radius,\n color: 'black',\n fillColor: fillcolor,\n fillOpacity: 1,\n weight: 0.5\n });\n }\n });\n\n // create marker circles\n createMap(layerToMap);\n}", "function onEachFeature(feature, layer) {\r\n\r\n // date formatter for popup\r\n var format = d3.timeFormat(\"%d-%b-%Y at %H:%M\");\r\n\r\n layer.bindPopup(`<strong>Place: </strong> ${feature.properties.place}<br><strong>Time: </strong>${format(new Date(feature.properties.time))}<br><strong>depth: </strong>${feature.properties.mag}<br><strong>Depth: </strong>${feature.geometry.coordinates[2]}`);\r\n }", "function addPopup(feature, layer) {\n // Give each feature a popup describing the place and time of the earthquake\n return layer.bindPopup(`<h3> ${feature.properties.place} </h3> <hr> <h4>Magnitude: ${feature.properties.mag} </h4> <p> ${Date(feature.properties.time)} </p>`);\n}", "function createFeatures(earthquakeData) {\n\n // nested onEachFeature function to create the popup that shows individual earthquake data\n function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.title +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"<p>\");\n }\n\n // nested pointToLayer function to create the markers based on the markerSize & markerColor features designated \n function pointToLayer (feature, latlng) {\n return new L.CircleMarker(latlng, {\n radius: markerSize(feature.properties.mag),\n fillColor: markerColor(feature.properties.mag),\n color: \"#000000\",\n weight: 1,\n fillOpacity: 1\n});\n }\n\n// create a GeoJson layer calling both previous functions, which will use and store all necesary features for data display\n var earthquakes = L.geoJSON(earthquakeData, {\n onEachFeature: onEachFeature,\n pointToLayer: pointToLayer,\n });\n\n // create the map \n createMap(earthquakes);\n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + `Location: ${feature.properties.place}` + \"</h3><hr><p>\" +\n `<strong>Time</strong>: ${new Date(feature.properties.time)}` + \"</p>\" + \"</h3><hr><p>\" +\n `<strong>magnitude</strong>: ${feature.properties.mag}` + \"</p>\" + \"</h3><hr><p>\" +\n `<strong>Status</strong>: ${feature.properties.status}` + \"</p>\");\n }", "function createFeatures(earthquakeData) {\n\n // Define function which determines the circle size\n function markerSize(mag) {\n return mag * 5;\n }\n\n // Define function which determines the circle size\n function chooseColor(mag) {\n switch (true) {\n case mag > 5:\n return \"#f06b6b\";\n case mag > 4:\n return \"#f0a76b\";\n case mag > 3:\n return \"#f3ba4d\";\n case mag > 2:\n return \"#f3db4d\";\n case mag > 1:\n return \"#e1f34d\"; \n default:\n return \"#b7f34d\";\n }\n }\n\n // Define a function which creates circles for each feature \n function pointToLayer(feature, latlng) {\n\n return L.circleMarker(latlng, {\n radius: markerSize(feature.properties.mag),\n fillColor: chooseColor(feature.properties.mag),\n color: \"#000\",\n weight: 0.5,\n opacity: 1,\n fillOpacity: 1\n });\n }\n\n // Define a function which binds a popup for each feature \n function onEachFeature(feature, layer) {\n \n layer.bindPopup(\"<h3> Magnitude: \" + feature.properties.mag +\n \"</h3><hr><p>\" + feature.properties.place + \"</p>\");\n }\n\n // Create a GeoJSON layer containing the features array and add it to the map\n L.geoJSON(earthquakeData, {\n\n // Call circles function\n pointToLayer: pointToLayer,\n\n // Call popups function\n onEachFeature: onEachFeature\n\n }).addTo(myMap);\n\n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>Date & Time: \" + new Date(feature.properties.time) +\n \"<br>Magnitude: \" + feature.properties.mag +\n \"<br>Depth: \" + feature.geometry.coordinates[2] + \"</p>\");\n }", "function createFeatures(earthquakeData) {\n\n // Create a GeoJSON layer containing the features array on the earthquakeData object\n var earthquakes = L.geoJSON(earthquakeData, {\n\n // Create circle markers based on earthquake magnitude\n pointToLayer: function(feature) {\n return L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], {\n fillColor: circleHue(+feature.properties.mag), // Use function to apply marker fill based on magnitude\n color: \"rgb(153,51,204)\",\n weight: 0.5,\n opacity: 0.7,\n fillOpacity: 0.7,\n radius: calcRadius(+feature.properties.mag) // Use function to calculate radius based on magnitude \n });\n },\n\n \n // Define a function we want to run once for each feature in the features array\n // Give each feature a popup describing the place and time of the earthquake\n onEachFeature: function(feature, layer) {\n layer.bindPopup(\"<h5>\" + feature.properties.place +\n \"</h5><hr><p>Magnitude: \" + feature.properties.mag + \"</p>\");\n }\n \n });\n\n // Sending our earthquakes layer to the createMap function\n createMap(earthquakes);\n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p><b>Magnitude:</b> \" + feature.properties.mag + \"</p>\");\n}", "function createFeatures(earthquakeData) {\n\n\n // define function to run on each feature in features array\n function onEachFeature(feature, layer) {\n\n // bind popup with additional detail to each marker\n layer.bindPopup(\"<h3>Earthquake Details</h3><hr><strong>Location: </strong>\" + feature.properties.place + \"<br><strong>Magnitude: </strong>\" + feature.properties.mag + \"<br><strong>Date/Time: </strong>\" + new Date(feature.properties.time) + \"<br><strong>Depth: </strong>\" + feature.geometry.coordinates[2]);\n }\n\n\n\n // create geojson layer\n var earthquakes = L.geoJSON(earthquakeData, {\n onEachFeature: onEachFeature,\n\n\n // define radius based on marker size and opacity based on depth of earthquake\n // refered to this website for help on pointToLayer: https://leafletjs.com/examples/geojson/\n pointToLayer: function(feature, latlng) {\n return new L.circle(latlng, {\n radius: markerSize(feature.properties.mag),\n fillColor: getColor(feature.geometry.coordinates[2]),\n color: getColor(feature.geometry.coordinates[2]),\n opacity: 5\n });\n }\n \n });\n\n\n // send earthquakes layer to createMap function\n createMap(earthquakes);\n}", "function onEachFeature (feature, featureLayer) { 
 \n if (feature.properties && feature.properties.Museum && feature.properties.Activity && feature.properties.Link) {\n 
 featureLayer.bindPopup('<h7>' + feature.properties.Museum + '</h7><br>' + '<b>' + '<h8>' + feature.properties.Activity + '</h8>'+ '</b><br>' \n + '<p class=\"maptext\">' + feature.properties.Short_Description + '</p>' + '<p class=\"maplink\">' + '<a href=\"'+feature.properties.Link+'\" target=\"_blank\">' + feature.properties.Link + '</a>'+'</p>'); 
 
\n }\n 
 //if no properties, popup saying record is being updated 
 \n var popupContent = \"<p>ops, I'm being updated</p>\"; 
\n }", "function featPopUp(feat, layer) {\n\t\tlayer.bindPopup(\"<h3>\" + feat.properties.place +\"</h3>\" +\n\t\t\t\t\t\t\"<hr><p>\" + new Date(feat.properties.time) + \"</p></hr>\" +\n\t\t\t\t\t\t\"<hr><p> Magnitude: \" + feat.properties.mag + \"</p>\");\t\t\t\t\n\t}", "function createFeatures(earthquakeData) {\n // Give each feature a popup describing the place and time of the earthquake\n function onEachFeature(feature, layer) {\n layer.bindPopup(feature.properties.title + \"<hr>\" + new Date(feature.properties.time) + \" | Depth: \" + feature.geometry.coordinates[2] + \" km\");\n }\n\n // Create a GeoJSON layer containing the features array on the earthquakeData object\n // Run the onEachFeature function once for each piece of data in the array\n var earthquakes = L.geoJSON(earthquakeData, {\n pointToLayer: function (feature, latlng) {\n return L.circleMarker(latlng, {radius: markerSize(feature.properties.mag), \n fillColor: getColor(feature.properties.mag), \n color: \"#000\", \n opacity: 0.3, \n fillOpacity: 0.8});\n },\n onEachFeature: onEachFeature\n });\n\n // Sending earthquakes layer to the createMap function\n createMap(earthquakes);\n}", "function createFeatures(earthquakeData) {\n var earthquakes = L.geoJSON(earthquakeData, {\n onEachFeature: function(feature, layer) {\n layer.bindPopup(\"<h2>\" + feature.properties.place +\n \"</h2><h3>Magnitude: \" + feature.properties.mag + \"</h3>\" +\n \"<p>\" + new Date(feature.properties.time) + \"</p>\");},\n\n pointToLayer: function (feature, latlng) {\n return new L.circle(latlng,\n {radius: getRadius(feature.properties.mag),\n fillColor: getColor(feature.properties.mag),\n fillOpacity: .5,\n color: \"black\",\n stroke: true,\n weight: .8\n })\n }\n });\n\n createMap(earthquakes);\n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(\n // for state text\n \"<p class='state-text'>\" + feature.properties.place.split(\", \")[1] + \"</p>\" +\n \"<hr>\" +\n\n \"<dl>\" +\n // for location text\n \"<dt class='popUp-title'>Location:</dt>\" +\n \"<dd class'popUp-val'>\" + feature.properties.place.split(\", \")[0] + \"</dd>\" +\n \"</dt><br>\" +\n\n // for magnitude text\n \"<dt class='popUp-title'>Magnitude:</dt>\" +\n \"<dd class'popUp-val'>\" + feature.properties.mag + \" Richter</dd>\" +\n \"</dt><br>\" +\n\n // for time text\n \"<dt class='popUp-title'>Time:</dt>\" +\n \"<dd class'popUp-val'>\" + new Date(feature.properties.time) + \" Richter</dd>\" +\n \"</dt>\\\n </dl>\"\n );\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(`<h3>${feature.properties.place}</h3><p>Magnitude: ${(feature.properties.mag)}</p>`);\n }", "function onEachFeature(feature, layer) { \n layer.bindPopup(\"<h3>\"+feature.properties.state +\"</h3><hr><p>\" + feature.properties.Name +\"</p><hr><p>\" + \"year: 1980 to 2018\" + \"</p><hr><p>\"+ \"Number:\" + feature.properties.Number +\"</p>\");\n }", "function onEachFeature(features, layer) {\n layer.bindPopup(\"<strong>\" + (features.properties.place).split(\"of\").pop() + \"</strong>\" +\n \"<li>\"+\"Magnitude: \" + features.properties.mag + \"</li>\" + \"<li>\" + \"Depth: \" + features.geometry.coordinates[2]+ \"</li>\" );\n }", "function onEachFeature(feature, layer) {\n // Loop through the cities array and create one marker for each city object\n for (var i = 0; i < feature.length; i++) {\n L.circle(feature[i].location, {\n fillOpacity: 0.75,\n color: \"white\",\n fillColor: \"purple\",\n // Setting our circle's radius equal to the output of our markerSize function\n // This will make our marker's size proportionate to the earthquakes magnitude\n radius: markerSize(feature[i].properties.mag)\n })\n }\n layer.bindPopup(\"<h3>\" + feature.properties.title +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function createFeatures(quakeData) {\n \n // Bind popups to each marker and add info from the API to the popups. \n // Adjusts date to be more readible.\n function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p> Magnitude = \" + feature.properties.mag + \"</p>\" +\n \"<hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }\n\n // Create points based on the geoJSON data in the API.\n // Make the markers into different colored and sized circles based on the magnitude.\n var quakeLocations = L.geoJSON(quakeData, {\n pointToLayer: function(quakeData, latlng) {\n return L.circle(latlng, {\n radius: radiusSize(quakeData.properties.mag),\n color: \"black\",\n weight: .5,\n fillColor: circleColor(quakeData.properties.mag),\n fillOpacity: 1\n });\n },\n onEachFeature: onEachFeature\n });\n\n // Create a map layer of the earthquake locations\n createMap(quakeLocations);\n}", "function onEachFeature(feature, layer) {\r\n// Creating a HTML string with all of the properties\r\n var popupContent = \"\";\r\n if (feature.properties) {\r\n// Creating a loop to add feature property names and values to the html string\r\n for (var property in feature.properties){\r\n popupContent += \"<p>\" + property + \":\" + feature.properties[property] + \"</p>\";\r\n }\r\n layer.bindPopup(popupContent);\r\n }\r\n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(feature.properties.title + \"<hr>\" + new Date(feature.properties.time) + \" | Depth: \" + feature.geometry.coordinates[2] + \" km\");\n }", "function definePopup(evt, layerInfo, features, wmsLayers, count, id){\n var data = '';\n if(layerInfo.length === 1){\n if(count < 2) {\n if(features[layerInfo+'0'] !== undefined) {\n queries[id] = [evt.coordinate, layerInfo, features[layerInfo + '0']];\n displaySimplePopup(id);\n }else{\n var url = wmsLayers[layerInfo].getSource().getGetFeatureInfoUrl(evt.coordinate,\n GlobalMap.getView().getResolution(),\n GlobalMap.getView().getProjection(),\n {'INFO_FORMAT': 'text/javascript'});\n $.ajax({\n url: url,\n dataType: 'jsonp',\n jsonpCallback: 'parseResponse',\n success: function (data) {\n if(dataJson === null) {\n dataJson = data;\n setTimeout(definePopup(evt, layerInfo, features, wmsLayers, count, id), 1000);\n }\n }\n });\n if(dataJson !== null) {\n var feature;\n if (wmsLayers[layerInfo].getSource().coordKeyPrefix_.indexOf('geoserver') > -1) {\n feature = geoJsonFormat.readFeatures(dataJson)[0];\n }else{\n feature = esriJsonFormat.readFeatures(dataJson)[0];\n }\n queries[id] = [evt.coordinate, layerInfo, feature];\n displaySimplePopup(id);\n }\n }\n }else{\n for(var i = 0; i < count; i++){\n queries[id] = [evt.coordinate, layerInfo, features[layerInfo+i]];\n data = data + popupForm.definePopupMultiForm(layerInfo, id, features[layerInfo+i].get(queryData[layerInfo][1]), evt);\n id++;\n }\n popupForm.displayPopupForm(overlay, evt.coordinate, data);\n }\n }else if(layerInfo.length > 1){\n for (var l = 0; l < layerInfo.length; l++) {\n if(wmsLayers[layerInfo[l]] !== null && wmsLayers[layerInfo[l]] !== undefined){\n var urlWms = wmsLayers[layerInfo[l]].getSource().getGetFeatureInfoUrl(evt.coordinate,\n GlobalMap.getView().getResolution(),\n GlobalMap.getView().getProjection(),\n {'INFO_FORMAT': 'text/javascript'});\n $.ajax({\n url: urlWms,\n dataType: 'jsonp',\n jsonpCallback: 'parseResponse',\n success: function (data) {\n if(dataJson === null) {\n dataJson = data;\n setTimeout(definePopup(evt, layerInfo, features, wmsLayers, count, id), 1000);\n }\n }\n });\n if(dataJson !== null) {\n var featureWms;\n if (wmsLayers[layerInfo[l]].getSource().coordKeyPrefix_.indexOf('geoserver') > -1) {\n featureWms = geoJsonFormat.readFeatures(dataJson)[0];\n }else{\n featureWms = esriJsonFormat.readFeatures(dataJson)[0];\n }\n queries[id] = [evt.coordinate, layerInfo, featureWms];\n queries[id] = [evt.coordinate, layerInfo[l], featureWms];\n data = data + popupForm.definePopupMultiForm(layerInfo[l], id, featureWms.get(queryData[layerInfo[l]][1]), evt);\n id++;\n }\n }else{\n for(var m = 0; m < count; m++){\n if(features[layerInfo[l]+m] !== null && features[layerInfo[l]+m] !== undefined){\n var queryFeature = features[layerInfo[l]+m];\n queries[id] = [evt.coordinate, layerInfo[l], queryFeature];\n data = data + popupForm.definePopupMultiForm(layerInfo[l], id, queryFeature.get(queryData[layerInfo[l]][1]), evt);\n id++;\n }\n }\n }\n }\n popupForm.displayPopupForm(overlay, evt.coordinate, data);\n }\n }", "function onEachFeature(feature, layer) {\n \n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p> Magnitude \" + feature.properties.mag +\n \"</p><hr><p>Depth \" + feature.geometry.coordinates[2] + \"(km)</p>\");\n }", "function addEarthquakeMapFeature(feature , layer) {\n\n layer.on({\n\n // Mouse Over event - feature's opacity changes to 90% so that it stands out \n mouseover: function(event) {\n layer = event.target;\n layer.setStyle({\n fillOpacity: 0.90\n });\n },\n\n // Mouse Out event - feature's opacity reverts back to 50%\n mouseout: function(event) {\n layer = event.target;\n layer.setStyle({\n fillOpacity: 0.5\n });\n },\n });\n \n // Tool tip popup on Mouse Click \n layer.bindPopup(\"<h3> Magnitude: \" + feature.properties.mag + \"</h3> <hr> <h4> Location: \" + feature.properties.place + \"</h4>\");\n}", "function onEachFeature(feature, layer) {\r\n\r\n //abracadabra\r\n let stopId = feature.properties.stopId;\r\n let stopTitle = feature.properties.title;\r\n // let muniLine = feature.properties.Route;\r\n\r\n let stopInfo = APICallResponse.filter(function(stop) {\r\n return stop.stop_point_ref == stopId;\r\n });\r\n\r\n // console.log(stopInfo.length, feature.properties.Route);\r\n // console.log(\"stops being used\", stopInfo, feature.properties.Route, stopId);\r\n\r\n\r\n // if the stopID was found in the APICallResponse and there were no duplicate stop IDs found, then it will return an array with length 1\r\n if(stopInfo.length == 1){\r\n\r\n let direction = stopInfo[0].direction_ref;\r\n let lines = stopInfo[0].lines;\r\n\r\n layer.bindPopup(\r\n \"<h4>\" + \"Stop ID: \" + stopId + \"</h4>\" +\r\n \"<h4>\" + \"Direction: \" + direction + \"</h4>\" + \r\n \"<h4>\" + \"Title: \" + stopTitle + \"</h4>\" + \r\n linesInfo(lines)\r\n );\r\n\r\n // this function is used to generate the HTML for each line in the lines array\r\n function linesInfo(linesArray){\r\n\r\n let htmlBlock = \"\";\r\n \r\n linesArray.forEach((line) =>{\r\n\r\n let lineName = line.line_ref;\r\n let minLate = line.scores.min_late;\r\n let shameScorePredictionLabel = line.scores.prediction_label;\r\n let shameScoreDescription = shameScoreInfo[shameScorePredictionLabel].description;\r\n\r\n // console.log(\"minstype\", minLate);\r\n // console.log(\"mintype\", typeof(minLate));\r\n\r\n if(typeof(minLate) == \"number\"){\r\n minLate = parseFloat(minLate.toFixed(2));\r\n // console.log(\"minslate\", minLate);\r\n minLate = hhmmss(minLate);\r\n // console.log(\"minslate 2\", minLate);\r\n \r\n }\r\n\r\n if(userSelectedMUNILineList.includes(lineName)){\r\n htmlBlock += \"<hr>\" +\r\n \"<p>\" + \r\n \"<big><b>Line: </b>\" + lineName + \"</big><br><br>\" +\r\n \"<b>Current Shame Score: </b>\" + shameScoreDescription + \"<br>\" +\r\n \"<b>Current Trip Prognosis: </b>There is a 50% chance that this bus will be \" + shameScorePredictionLabel + \"<br>\" + \"<br>\" +\r\n \"<b>Historical average minutes late: </b>\" + minLate + \r\n \"</p>\";\r\n\r\n }\r\n\r\n });\r\n \r\n return htmlBlock;\r\n }\r\n\r\n\r\n } else {\r\n layer.bindPopup(\r\n \"<h4>\" + \"Stop ID: \" + stopId + \"</h4>\" +\r\n \"<hr>\" +\r\n \"<b>\" + \"Title: \" + \"</b>\" + stopTitle + \"</p>\"\r\n );\r\n }\r\n }", "function onEachFeature4 (feature,layer) {\n layer.on('click',function(event){\n layer.bindPopup(\"The hourly departure projection of selected station rounds to \" + Math.round(feature.properties.predict));\n map.setView(event.latlng,15);\n });\n }", "function onEachFeature(feature, layer) {\r\n var date = new Date(0);\r\n date.setUTCSeconds(feature.properties.time);\r\n var d = new Date();\r\n\r\n // if data is not 'old data', then allow it to be clicked for the data modal.\r\n if(d - date <= timeInterval) {\r\n layer.bindPopup('<strong>client id:</strong> '+ feature.properties.clientID);\r\n // on click - set the popup modal values to the device clicked on\r\n layer.on('click', function (e) {\r\n map.panTo(this.getLatLng())\r\n $('.flex-clientID').text(feature.properties.clientID)\r\n $('.flex-temperature').text(feature.properties.temp + String.fromCharCode(176))\r\n $('.flex-pressure').text(feature.properties.pressure + 'mb')\r\n $('.flex-humidity').text(feature.properties.humidity + '%')\r\n $('.flex-voc').text(feature.properties.voc)\r\n $('.flex-particulate').text(feature.properties.particulate)\r\n $('.flex-nox').text(feature.properties.nox + 'V')\r\n $('.flex-vcc').text(feature.properties.vcc + 'V')\r\n $('.flex-time').text(time)\r\n $(\"#modChart\").modal()\r\n });\r\n } else {\r\n // display 'OFFLINE' in popup if device if old data detected\r\n layer.bindPopup('<strong>client id:</strong> '+ feature.properties.clientID + '<br><strong>OFFLINE</strong>');\r\n }\r\n\r\n // format into 12 hour AM/PM time\r\n var AM_PM = (date.getHours() >= 12) ? \"PM\" : \"AM\"\r\n var hours = (get_hours(date)%12 == 0) ? get_hours(date) : get_hours(date)%12\r\n var time = hours + \":\" + get_minutes(date) + AM_PM + \" \" + (date.getMonth() + 1) + \"/\" + date.getDate() + \"/\" + date.getFullYear()\r\n\r\n\r\n // mouse over shows the client id - applicable to desktop version only\r\n layer.on('mouseover', function (e) {\r\n this.openPopup();\r\n });\r\n layer.on('mouseout', function (e) {\r\n this.closePopup();\r\n });\r\n\r\n}", "function showPopup1(e) {\n // Show the popup at the coordinates with some data\n popup\n .setLngLat(e.lngLat)\n .setHTML(\n e.features[0].properties.name + \n \"<br><a href='https://waba.org/20x20map/' target='blank'><button class=blue-button2>Take Action</button></a>\"\n )\n .addTo(map);\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(makePopupContent(feature), {\n closeButton: false,\n offset: L.point(0, -8),\n });\n}", "function onEachFeature(feature, layer) {\n\tvar popupContent = rosenholm;\n/*\n\tif (feature.properties && feature.properties.popupContent) {\n\t\tpopupContent += feature.properties.popupContent;\n\t}\n*/\n\tlayer.bindPopup(popupContent);\n}", "function createFeatures(earthquakeData, faultLineData) {\n\n // Defines two functions that are run once for each feature in earthquakeData\n // Creates markers for each earthquake and adds a popup describing the place, time, and magnitude of each\n function onEachQuakeLayer(feature, layer) {\n return new L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], {\n fillOpacity: 0.7,\n weight: 0.5,\n color: \"black\",\n fillColor: chooseColor(feature.properties.mag),\n radius: markerSize(feature.properties.mag)\n });\n }\n function onEachEarthquake(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place + \"</h3><hr>\" + \n \"<p><b>Time:</b> \" + new Date(feature.properties.time) + \n \"<br /><b>Magnitude:</b> \" + feature.properties.mag + \"</p>\");\n };\n\n // Defines a function that is run once for each feature in faultLineData\n // Create fault lines\n function onEachFaultLine(feature, layer) {\n L.polyline(feature.geometry.coordinates);\n };\n\n // Creates a GeoJSON layer containing the features array of the earthquakeData object\n // Run the onEachEarthquake & onEachQuakeLayer functions once for each element in the array\n var earthquakes = L.geoJSON(earthquakeData, {\n onEachFeature: onEachEarthquake,\n pointToLayer: onEachQuakeLayer\n });\n\n // Creates a GeoJSON layer containing the features array of the faultLineData object\n // Run the onEachFaultLine function once for each element in the array\n var faultLines = L.geoJSON(faultLineData, {\n onEachFeature: onEachFaultLine,\n style: {\n weight: 2,\n color: 'orange'\n }\n });\n\n createMap(earthquakes, faultLines);\n }", "function onEachFeature(feature, layer) {\n\n\t//* No field named 'popupContent', so create html string using all fields/properties\n\tvar popupContent = \"\";\n\n\tif (feature.properties) {\n\n\t\t//* Loop through all features\n\t\t//* and add feature property names (fields) and values to html string\n\t\tfor (var property in feature.properties){\n\n\t\t\t// this prints out the value of each field\n\t\t\t// console.log(\"property: \",feature.properties[property]);\n\t\t\t\n\t\t\tvar myValue = String(feature.properties[property]);\n\t\t\tconsole.log(\"myValue: \", myValue, \" property: \",property);\n\n\t\t\t//* Do Not Include 'Area' or 'FIPS' Columns in the Popup\n\t\t\tif (property != 'Area' && property != 'FIPS'){\n\t\t\t\tpopupContent += \"<p>\" + property + \": \" + feature.properties[property] + \"</p>\";\n\t\t\t};\n\n\t\t} // end for()\n\t\t\n\t\tlayer.bindPopup(popupContent);\n\t};\n\n}", "function onEachFeature(feature, layer) {\n // Check for featured image, then image gallery. If neither, don't use an image in popup\n if (feature.properties.field_featured_image.length > 2) {\n layer.bindPopup(\n \t'<img src=\"' + feature.properties.field_featured_image + '\" width=\"301px\" class=\"popup-top-image\">' +\n '<div class=\"popupbody\"><div class=\"popuptitle\"><h3><a href=\"' + feature.properties.path + '\" >' + feature.properties.name + '</a></h3></div>' +\n feature.properties.description +\n '<p><a href=\"' + feature.properties.path + '\" class=\"btn btn-default orbitist-btn\"><span class=\"fa fa-link center-block\"></span> Learn More</a></p>' +\n '<p><a href=\"https://www.google.com/maps/dir/Current+Location/' + feature.geometry.coordinates[1] + ',' + feature.geometry.coordinates[0] + '\" target=\"_blank\" class=\"btn btn-default orbitist-btn\"><span class=\"fa fa-car center-block\"></span> Driving Directions</a></p>',\n \t{closeButton: true}\n );\n } else if (feature.properties.field_featured_image.length == 0 && feature.properties.field_image_gallery.length > 2) {\n layer.bindPopup(\n '<img src=\"' + feature.properties.field_image_gallery + '\" width=\"301px\" class=\"popup-top-image\">' +\n '<div class=\"popupbody\"><div class=\"popuptitle\"><h3><a href=\"' + feature.properties.path + '\">' + feature.properties.name + '</a></h3></div>' +\n feature.properties.description +\n '<p><a href=\"' + feature.properties.path + '\" class=\"btn btn-default orbitist-btn\"><span class=\"fa fa-link center-block\"></span> Learn More</a></p>' +\n '<p><a href=\"https://www.google.com/maps/dir/Current+Location/' + feature.geometry.coordinates[1] + ',' + feature.geometry.coordinates[0] + '\" target=\"_blank\" class=\"btn btn-default orbitist-btn\"><span class=\"fa fa-car center-block\"></span> Driving Directions</a></p>',\n \t{closeButton: true}\n );\n } else {\n layer.bindPopup(\n '<div class=\"popupbody\"><div class=\"popuptitle\"><h3><a href=\"' + feature.properties.path + '\">' + feature.properties.name + '</a></h3></div>' +\n feature.properties.description +\n '<p><a href=\"' + feature.properties.path + '\" class=\"btn btn-default orbitist-btn\"><span class=\"fa fa-link center-block\"></span> Learn More</a></p>' +\n '<p><a href=\"https://www.google.com/maps/dir/Current+Location/' + feature.geometry.coordinates[1] + ',' + feature.geometry.coordinates[0] + '\" target=\"_blank\" class=\"btn btn-default orbitist-btn\"><span class=\"fa fa-car center-block\"></span> Driving Directions</a></p>',\n {closeButton: true}\n );\n }\n}", "function interactiveFunction(feature, layer) {\n layer.on({\n mouseover: highlightFeature,\n mouseout: resetHighlight,\n click: zoomToFeature\n } );\n layer.bindPopup('This ciycle is area of ride time between ' + feature.properties.Name );\n\n}", "function onEachFeature(feature, layer) {\n // does this feature have a property named popupContent?\n if (feature.properties && feature.properties.name) {\n layer.bindPopup( 'Name: ' + feature.properties.name + '<br>'+ 'Total Price: ' + feature.properties.totalprice + '<br>' + 'Area: ' +feature.properties.area + '<br>' + 'Bedrooms: ' + feature.properties.bedrooms + '<br>' + 'Price per Sq m: ' + feature.properties.priceperm2 + '<br>' +'Year Built: ' + feature.properties.yearbuilt);\n }\n}", "function onEachFeature(feature, layer) {\n //no property named popupContent; instead, create html string with all properties\n var popupContent = \"\";\n if (feature.properties) {\n //loop to add feature property names and values to html string\n for (var property in feature.properties){\n popupContent += \"<p>\" + property + \": \" + feature.properties[property] + \"</p>\";\n }\n layer.bindPopup(popupContent), layer.setIcon(boatIcon);\n };\n}", "function onEachFeature(feature, layer) {\n \n layer.bindPopup(\"<h3> Magnitude: \" + feature.properties.mag +\n \"</h3><hr><p>\" + feature.properties.place + \"</p>\");\n }", "function createFeatures(earthquakeData) {\n\n // The popup box display's the place (reformatted from the original result so only city and state appears), the earthquake magnitude and depth.\n function onEachFeature(features, layer) {\n layer.bindPopup(\"<strong>\" + (features.properties.place).split(\"of\").pop() + \"</strong>\" +\n \"<li>\"+\"Magnitude: \" + features.properties.mag + \"</li>\" + \"<li>\" + \"Depth: \" + features.geometry.coordinates[2]+ \"</li>\" );\n }\n\n // Creating a GeoJson layer for the earthquakeData object and adding the styles to the circles.\n var earthquakes = L.geoJSON(earthquakeData, {\n pointToLayer: function(features, latlng) {\n return L.circleMarker(latlng, {\n weight: 0.4,\n color: \"black\",\n fillColor: magnitudeColor(features.geometry.coordinates[2]),\n fillOpacity: 0.7,\n radius: (features.properties.mag) *4\n });\n },\n onEachFeature: onEachFeature\n })\n \n // Sending the earthquake layer to the createMap function.\n createMap(earthquakes);\n\n }", "function markEvents(data) {\n\n\n function bindPopups (feature, layer) {\n\n layer.bindPopup(\"<h3>\" + feature.properties.place + \"</h3><hr>\" + \n \"<p>Magnitude: \" + feature.properties.mag + \"</p>\"\n )\n };\n\n\n var events = L.geoJSON(data, {\n //For each event, we need popups and circles\n onEachFeature: bindPopups,\n\n //geojson circles are not supported, so we bind circles to points\n pointToLayer: function (feature) {\n\n return L.circle([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], {\n color: '',\n fillColor: Intensity(feature.properties.mag),\n fillOpacity: 0.5,\n radius: feature.properties.mag * 50000\n });\n }\n });\n\n\n MapIt(events);\n\n\n\n}", "function createFeatures(earthquakeData) {\n \n function onEachFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }\n\n // Read GeoJSON data, create circle markers, and add to earthquake layer group\n L.geoJSON(earthquakeData, {\n pointToLayer: function (feature, latlng) {\n return L.circleMarker(latlng, {\n radius: feature.properties.mag * 5,\n fillColor: chooseColour(feature.properties.mag),\n color: \"black\",\n weight: 0.5,\n opacity: 0.5,\n fillOpacity: 0.8\n });\n },\n onEachFeature: onEachFeature\n }).addTo(earthquakes);\n\n // Define street map layer\n var streetmap = L.tileLayer(\"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors, <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox/streets-v11\",\n accessToken: API_KEY\n });\n\n // Define satellite map layer\n var satellitemap = L.tileLayer(\"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors,\\\n <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.satellite\",\n accessToken: API_KEY\n });\n\n // Define outdoors map layer\n var outdoorsmap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/outdoors-v9/tiles/256/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors,\\\n <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox/outdoors\",\n accessToken: API_KEY\n });\n\n // define greyscale map layer\n var lightmap = L.tileLayer(\"https://api.mapbox.com/styles/v1/mapbox/light-v9/tiles/256/{z}/{x}/{y}?access_token={accessToken}\", {\n attribution: \"Map data &copy; <a href=\\\"https://www.openstreetmap.org/\\\">OpenStreetMap</a> contributors,\\\n <a href=\\\"https://creativecommons.org/licenses/by-sa/2.0/\\\">CC-BY-SA</a>, Imagery © <a href=\\\"https://www.mapbox.com/\\\">Mapbox</a>\",\n maxZoom: 18,\n id: \"mapbox.light\",\n accessToken: API_KEY\n });\n\n // Define the baseMaps for the map types we created above\n var baseMaps = {\n \"Street Map\": streetmap,\n \"Satellite Map\": satellitemap,\n \"Outdoors Map\": outdoorsmap,\n \"Greyscale Map\": lightmap\n };\n\n // Read the tectonic Plate GeoJSON from the source URL, and add to faultLines layer group\n d3.json(\"https://raw.githubusercontent.com/fraxen/tectonicplates/master/GeoJSON/PB2002_boundaries.json\",\n function(platedata) {\n L.geoJson(platedata, {\n color: \"orange\",\n weight: 2\n }).addTo(faultLines);\n });\n\n // Create a new map\n var myMap = L.map(\"map\", {\n center: [\n 48.10, -100.10\n ],\n zoom: 3,\n layers: [streetmap, earthquakes, faultLines]\n });\n\n // create overlay map with the 2 data layers\n var overlayMaps = {\n \"Earthquakes\": earthquakes,\n \"Fault Lines\": faultLines,\n };\n\n // Add a layer control to the map\n L.control.layers(baseMaps, overlayMaps, {\n collapsed: false\n }).addTo(myMap);\n\n // function to set the earthquake circle size based on value of mag (magnitude)\n function chooseColour(mag) {\n if (mag > 5) {\n return \"red\";\n }\n else if (mag > 4){\n return \"orangered\";\n }\n else if (mag > 3){\n return \"orange\";\n }\n else if (mag > 2){\n return \"gold\";\n }\n else if (mag > 1){\n return \"yellow\"\n }\n else {\n return \"greenyellow\";\n }\n }\n\n // Create the legend control and set its position\n var legend = L.control({\n position: \"bottomright\"\n });\n\n // function to assign values to the legend, as well as color boxes (see style.css file)\n legend.onAdd = function (myMap) {\n\n var div = L.DomUtil.create('div', 'info legend'),\n grades = [0, 1, 2, 3, 4, 5],\n labels = [];\n\n // loop through our density intervals and generate a label with a colored square for each interval\n for (var i = 0; i < grades.length; i++) {\n div.innerHTML +=\n '<i style=\"background:' + chooseColour(grades[i] + 1) + '\"></i> ' +\n grades[i] + (grades[i + 1] ? '&ndash;' + grades[i + 1] + '<br>' : '+');\n }\n return div;\n };\n // add the legend to the map\n legend.addTo(myMap);\n\n}", "function onEachFeature(feature, layer) {\n\n layer.bindPopup(`<h1>${feature.properties.COUNTY}</h1><br>\n <h5>Tax Rate: ${roundUp(feature.properties.tax_rate,2)}</h5><br>\n <strong>Crime Rate per 100K: ${roundUp(feature.properties.crime_rate,2)}</strong><br>\n <strong>School Rating: ${roundUp(feature.properties.school_rating,2)}%</strong><br>\n <strong>Median household income: $${feature.properties.median_hh_income}</strong><br>\n <strong>Population: ${roundUp(feature.properties.population,0)}</strong><br>\n <strong>Poverty Rate: ${feature.properties.poverty_rate}%</strong>\n `).on('mouseover', function (e) {\n this.openPopup();\n }).on('mouseout', function (e) {\n this.closePopup();\n });\n}", "function createFeatures(quakeData, faultData) {\n //Create the markers and the data about the earthquake\n //use the functions to set the color and the size of the circle\n console.log(\"in createfeatures\");\n console.log(faultData);\n console.log(quakeData);\n function onEachQuakeInst(feature, layer) {\n return new L.circleMarker([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], {\n fillOpacity: 1,\n color: setColor(feature.properties.mag),\n fillColor: setColor(feature.properties.mag),\n radius: markSize(feature.properties.mag)\n });\n }\n function onEachQuake(feature, layer) {\n console.log(\"in EachQuake\");\n layer.bindPopup(\"<h3>\" + feature.properties.place + \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p><hr><p>Magnitude: \" + feature.properties.mag + \"</p>\");\n\n };\n\n function onEachFault(feature, layer) {\n L.polyline(feature.geometry.coordinates);\n };\n\n //geoJson of quakes\n var earthquakes = L.geoJSON(quakeData, {\n onEachFeature: onEachQuake,\n pointToLayer: onEachQuakeInst\n });\n\n //Create the geojason for faultlines\n var faultlines = L.geoJSON(faultData, {\n onEachFeature: onEachFault,\n style: {\n weight: 1,\n color: 'red'\n }\n });\n\n //Create the map\n createMap(earthquakes, faultlines);\n console.log(earthquakes);\n console.log(\"create Features Map\");\n }", "function onEachFeature(feature, layer) {\n\n // If the tsunami flag is 1 then the earthquake occurred in\n // a region that can generate tsunamis\n if (feature.properties.tsunami == 1) {\n\n // Get PAGER alert level. This indicates fatality and economic loss \n // impact estimates following significant earthquakes worldwide. \n // If the alert level is orange or red then a tsunami is highly likely.\n var alert = feature.properties.alert\n\n // Calculate how long ago the quake occurred\n var time = moment(feature.properties.time).fromNow()\n\n // Get magnitude\n var magnitude = feature.properties.mag\n\n // Get location\n var location = feature.properties.place\n\n // Get more details. The detail property contains a url to another JSON object\n // which contains detailed information about a single earthquake.\n $http.get(feature.properties.detail)\n .success(function(data, status, headers, config) {\n L.geoJson(data, {\n onEachFeature: function(feature, layer) {\n if (feature.properties.products[\"impact-link\"] != undefined) {\n console.log(feature.properties.products[\"impact-link\"][0].properties.text)\n }\n }\n })\n })\n .error(function(error, status, headers, config) {\n console.log(status)\n console.log(\"Error occured\")\n });\n\n // Add tsunami properties to list\n var list = [alert, time, magnitude, location]\n vm.tsunamis.push(list)\n }\n }", "function popupF (feature,layer){\n layer.bindPopup(\n \"</p>Nombre: \"+feature.properties.Nombre+ \n \"</p>Casos cada cien mil (100.000) habitantes, mes de mayo:\"+feature.properties.may+\"</p>\"\n);\n layer.on('mouseover', function () { this.openPopup(); })\n}", "function onEachFeature(feature, layer) {\n var popupContent = \"\"\n if (feature.properties) {\n if (feature.properties.id) {\n popupContent +='<b><a href=\"https://www.openstreetmap.org/' + feature.properties.id + '\" target=\"_blank\">' + feature.properties.id + '</a></b><hr>'\n //popupContent += \"<b>Id: </b>\";\n //popupContent += feature.properties.id;\n }\n if (feature.properties.highway) {\n popupContent += \"<b>category: </b>\";\n popupContent += feature.properties.highway;\n }\n for (let property in feature.properties) {\n //console.log('Dragana:: tag ' + JSON.stringify(tag) +', value: '+ way.tags[tag])\n if ((property !== \"id\") && (property !== \"decisionMsg\") && (property !== \"highway\") && (feature.properties[property] != null)){\n popupContent += \"<br><b>\" + property + \": </b>\";\n popupContent += feature.properties[property];\n }\n }\n if (feature.properties.decisionMsg) {\n popupContent += \"<br><br><b>Decision Msg: </b>\";\n popupContent += feature.properties.decisionMsg;\n }\n }\n layer.bindPopup(popupContent);\n\n // for mobile, use popup functions\n if (L.Browser.mobile) {\n layer.on({\n popupopen: highlightFeature,\n popupclose: resetHighlight,\n });\n } else {\n layer.on({\n mouseover: highlightFeature,\n mouseout: resetHighlight,\n });\n }\n}", "function onEachFeature(feature, layer) {\r\n var popupContent = \"\";\r\n if (feature.properties) {\r\n for (var property in feature.properties){\r\n popupContent += \"<p>\" + property + \": \" + feature.properties[property] + \"</p>\";\r\n }\r\n layer.bindPopup(popupContent);\r\n };\r\n}", "function onEachFeature(feature, layer) {\n layer.on('mouseover', function(e) {\n layer.setStyle({\n dashArray: '',\n fillOpacity: 1\n });\n\n if (!L.Browser.ie && !L.Browser.opera && !L.Browser.edge) {\n this.bringToFront();\n }\n layer.openPopup();\n }).on('mouseout', function(e) {\n layer.closePopup();\n });\n \n // create the popup variable\n var popup = \"<h3>\" + (feature.properties.name) + \"</h3>\" + \n \"<p><strong>Predicted Median Price: </strong>\" + feature.properties.price + \"</p>\";\n // add the popup to the map and set location\n layer.bindPopup(popup, { className: 'popup', 'offset': L.point(0, -20) });\n }", "function onEachFeature(possible_roundabouts, layer) {\n\t\tvar popupContent = \n\t\t\t\t\"<p><b>\"+ possible_roundabouts.properties.type+\"</b></p>\"\n +\"<p>Id: <label id=\\\"geoId\\\">\"+possible_roundabouts.properties.id+\"</label></p>\"\n +\"<p>Status: <label id=\\\"status\\\">\"+getCurrentStatusForId(possible_roundabouts.properties.id)+\"</label></p>\"\n +\"<p><a href=\"+possible_roundabouts.properties.url+\" target='_blank'>\"+\"Edit in iD\"+\"</a>\"\n +\" | \" \n +\"<a href=\"+possible_roundabouts.properties.josm+\" target='_blank'>\"+\"Edit in JOSM\"+\"</a>\"+\"</p>\"\n +\"<button id=\\\"falsePositiveButton\\\" onClick=\\\"setFalsePositive()\\\">False Positive</button>\" \n +\"<button id=\\\"closedButton\\\" onClick=\\\"setClosed()\\\">Closed</button>\"\n +\"<button id=\\\"clearStatusButton\\\" onClick=\\\"setClear()\\\">Clear Status</button>\"\n ; \n\n if (possible_roundabouts.properties && possible_roundabouts.properties.url) {\n\t\t\tpopupContent;\n\t\t}\n\t\tlayer.bindPopup(popupContent);\n}", "function onEachFeature(feature, layer) {\n layer.bindPopup(Popcorn(feature));\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<p>\" + feature.properties.NAME + \"</p>\");\n }", "function onEachFeature(feature, layer) {\n layer.bindPopup(\"<p>\" + feature.properties.NAME + \"</p>\");\n }", "function handleFeature(feature, layer) {\n layer.bindPopup(\"<h3>\" + feature.properties.place +\n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\");\n }", "function createFeatures(eqData) {\n var earthquakes = L.geoJSON(eqData, {\n onEachFeature: function(feature, layer) {\n layer.bindPopup(\"<p><h3>Magnitude: \" + feature.properties.mag +\"</h3></p><hr><p><strong>Location:</strong> \"+ feature.properties.place +\n \"</h3></p><p><strong>Date & Time:</strong> \" + new Date(feature.properties.time) + \"</p>\");\n },\n\n pointToLayer: function (feature, latlng) {\n return new L.CircleMarker(latlng,\n {radius: markerRadius(feature.properties.mag),\n fillColor: markerColor(feature.properties.mag),\n fillOpacity: 1,\n color: \"black\",\n stroke: true,\n weight: .5\n })\n }\n });\n\n createMap(earthquakes);\n}", "function displayBeachClosures(beach_closures) {\n var points = [];\n\n beach_closures.forEach(function(beach) {\n points.push(\n turf.point(\n [beach.longitude, beach.latitude],\n {\n // Properties\n 'status_color': beach.status_color,\n 'name': beach.title,\n 'date_updated': beach.date_updated,\n 'external_link': beach.external_link,\n 'status_color': beach.status_color,\n 'status_text': beach.beachstatus\n }\n )\n );\n });\n\n // Looks like it's not yet possible to set \"icon-color\"\n // for Mapbox GL JS's built-in (Maki) icons, but that\n // we'd need to create custom SDF icons.\n //\n //MAP.addLayer({\n // \"id\": \"beach_closures\",\n // \"type\": \"symbol\",\n // \"source\": {\n // \"type\": \"geojson\",\n // \"data\": {\n // \"type\": \"FeatureCollection\",\n // \"features\": points\n // }\n // },\n // \"layout\": {\n // \"icon-image\": \"marker-15\",\n // \"icon-size\": 1.8,\n // },\n // \"paint\": {\n // \"icon-color\": [\"concat\", \"#\", [\"get\", \"status_color\"]]\n // }\n //});\n\n MAP.addLayer({\n \"id\": \"beach_closures\",\n \"type\": \"circle\",\n \"source\": {\n \"type\": \"geojson\",\n \"data\": {\n \"type\": \"FeatureCollection\",\n \"features\": points\n }\n },\n \"paint\": {\n \"circle-radius\": 10,\n \"circle-color\": [\"concat\", \"#\", [\"get\", \"status_color\"]]\n }\n });\n\n // When a click event occurs on a feature in the places layer, open a popup at the\n // location of the feature, with description HTML from its properties.\n MAP.on(\"click\", \"beach_closures\", function (e) {\n var coordinates = e.features[0].geometry.coordinates.slice();\n var popupMarkup = beachPopupMarkup(e.features[0].properties);\n\n // Ensure that if the map is zoomed out such that multiple\n // copies of the feature are visible, the popup appears\n // over the copy being pointed to.\n while (Math.abs(e.lngLat.lng - coordinates[0]) > 180) {\n coordinates[0] += e.lngLat.lng > coordinates[0] ? 360 : -360;\n }\n\n new mapboxgl.Popup()\n .setLngLat(coordinates)\n .setHTML(popupMarkup)\n .addTo(MAP);\n });\n\n // Change the cursor to a pointer when the mouse is over the places layer.\n MAP.on(\"mouseenter\", \"beach_closures\", function () {\n MAP.getCanvas().style.cursor = \"pointer\";\n });\n\n // Change it back to a pointer when it leaves.\n MAP.on(\"mouseleave\", \"beach_closures\", function () {\n MAP.getCanvas().style.cursor = \"\";\n });\n}", "function openFeaturePopup(feature){\n map.infoWindow.setFeatures([feature]);\n map.infoWindow.show(feature.geometry);\n }", "function bindPopupToEarthQuake(feature, layer) {\n layer.bindPopup(`<h3>${feature.properties.place}</h3><hr><p>${new Date(feature.properties.time)}</p>`);\n }", "function pop_Statistics1(feature, layer) {\n layer.on({\n mouseout: function (e) {\n layer.setStyle(style_Statistics1(feature));\n\n },\n mouseover: highlightFeature_nopop,\n click: function (e) {\n var dn = e.target.feature.properties['USERBASINI'];\n var content = '<iframe id=\"ts_wa\" width=\"700\" height=\"420\" src=\"timeseries.html?param1=eastafrica&param2=&param3=\" frameborder=\"0\" style=\"z-index:1000000;\"></iframe>';\n var popupContent = content.replace(\"param2=&param3=\", \"param2=\" + dn + \"&param3=\" + dataset.value);\n layer.bindPopup(popupContent).openPopup();\n },\n });\n}", "function popupI (feature,layer){\n layer.bindPopup(\n \"</p>Nombre: \"+feature.properties.Nombre+ \n \"</p>Casos cada cien mil (100.000) habitantes, mes de agosto:\"+feature.properties.ago+\"</p>\"\n);\n layer.on('mouseover', function () { this.openPopup(); })\n}", "function onEachFeature(feature, layer) {\n\t\tvar popupContent = feature.properties.naam\n\n\t\tif (feature.properties && feature.properties.popupContent) {\n\t\t\tpopupContent += feature.properties.popupContent;\n\t\t}\n\t\t\n\t\t\n\n\t\t\t\n\n\t\t\n\t\t\n\t\t\n\t\tlayer.bindPopup(popupContent);\n\t}", "function onEachFeature(feature, layer) {\n // Set mouse events to change map styling\n layer.on({\n // When a user's mouse touches a map feature, the mouseover event calls this function, \n // that feature's opacity changes to 100% so that it stands out\n mouseover: function (event) {\n layer = event.target;\n layer.setStyle({\n color: \"#fff\",\n weight: 3,\n fillOpacity: 1.0\n });\n },\n // When the cursor no longer hovers over a map feature - when the mouseout event occurs - \n // the feature's opacity reverts back to 40%\n mouseout: function (event) {\n layer = event.target;\n layer.setStyle({\n color: \"#000\",\n weight: 1,\n fillOpacity: 0.3\n });\n }\n });\n \n // Bind popups for all earthquakes\n layer.bindPopup(\n \"<h3>Location: \" + feature.properties.place + \"<br> Magnitude: \" + \n feature.properties.mag +\"<br>Depth: \" + feature.geometry.coordinates[2] + \n \"</h3><hr><p>\" + new Date(feature.properties.time) + \"</p>\")\n }", "function showFeatures() {\n featureContainer.innerText = feature[i];\n featureInfoContainer.innerText = featureInfo[i];\n\n if (++i < feature.length) {\n setTimeout(showFeatures, 5000);\n }else if(i == 4) {\n i = 0;\n if(i == 0) {\n showFeatures();\n }\n }\n}", "function setupFeatures() {\n /** Set callbacks for each graffiti post on the map */\n for(var i in features) {\n var dist = current_pos.distanceTo(features[i].geo.geometry.coordinates.slice().reverse());\n var rad = Math.abs(parseInt(200 + 10.0*(features[i].votes)));\n\n\n features[i].geo.dist = parseInt(dist);\n features[i].geo.radius = rad; // store on global data variable for easier access in callback function\n features[i].geo.id = features[i].id; // a workaroud for popup events later on\n features[i].geo.votes = features[i].votes;\n\n\n\n if (dist <= rad) {\n L.geoJSON(features[i].geo, {\n pointToLayer: function (feature, latlng) {\n if (rad >= 1000) {\n return L.marker(latlng, {icon: icon_hot});\n } else { return L.marker(latlng, {icon: icon_pin}); }\n },\n onEachFeature: setupFeature\n }).addTo(map);\n } else {\n // add custom markers for unexplored graffiti area\n L.geoJSON(features[i].geo, {\n pointToLayer: function (feature, latlng) {\n return L.marker(latlng, {icon: icon_unexplored}); //.bindPopup(\"<h4>You must travel within this radius to view this pintura.</h4>\");\n },\n onEachFeature: setupHiddenFeature\n }).addTo(hiddenpost);\n post_hidden++;\n }\n }\n }" ]
[ "0.7831195", "0.764172", "0.7465871", "0.7382966", "0.7374346", "0.737402", "0.7373242", "0.7370269", "0.73434675", "0.7341874", "0.7341864", "0.7328692", "0.72994506", "0.72984785", "0.72964346", "0.72964346", "0.72964346", "0.72761595", "0.72721845", "0.725579", "0.72524047", "0.72523576", "0.7239095", "0.7234146", "0.7234126", "0.7220138", "0.71960247", "0.7194429", "0.71493113", "0.7146619", "0.71356547", "0.71342915", "0.71161044", "0.71047795", "0.70773923", "0.706859", "0.70672804", "0.7062223", "0.7060387", "0.70340276", "0.70319295", "0.70300364", "0.70258045", "0.7015654", "0.69675064", "0.69673556", "0.69479334", "0.6935366", "0.69318897", "0.69117016", "0.6906104", "0.67869747", "0.67773753", "0.6759951", "0.67459226", "0.6706947", "0.6698817", "0.66831446", "0.66821724", "0.6681427", "0.66772807", "0.6656852", "0.66537064", "0.66253996", "0.66107064", "0.6607711", "0.66038483", "0.6596654", "0.6595307", "0.6594067", "0.65795624", "0.6552217", "0.6539998", "0.65193933", "0.6509846", "0.6509011", "0.6508154", "0.6503602", "0.6500664", "0.64849824", "0.6484665", "0.6481914", "0.64757276", "0.64632577", "0.6460477", "0.64545447", "0.64449006", "0.6434855", "0.6434855", "0.64209634", "0.64192414", "0.6417774", "0.6413041", "0.6408801", "0.63964885", "0.6392436", "0.635957", "0.63593304", "0.63582957", "0.6348621" ]
0.6347618
100
welcome to experience this demo, and fork to modify it. ^_^ concent build a ctx for every instance, it supplies state, sync, dispatch and etc ... you can use them in any of components bellow more details see doc: and your can copy left side bar other file's content to experience like registerhookcomp.js ... visit more demos:
function changeGreeting(greeting) { return { greeting }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function App() {\n \n \n return (\n <div className=\"App\">\n <div className=\"count\">\n \n {/* <HookuseState/>\n <HookuseState2/>\n <UseStateArray/>\n <HookMouse/> */}\n {/* <MouseContainer/> */}\n <firstName.Provider value = {{name:\"pavan \" ,lastname:\"kmar\" , number:861545}}>\n \n <ConA/>\n \n </firstName.Provider>\n \n </div>\n </div>\n );\n}", "function App() {\n return (\n <div>\n {/* <UserProfile /> */}\n {/* <DemoJSS /> */}\n {/* <DemoTheme /> */}\n {/* <LifeCycleReact /> */}\n {/* <DemoHookUseState/> */}\n {/* <DemoHookUseEffect /> */}\n {/* <DemoHookUseCallBack/> */}\n {/* <DemoHookUseMeno /> */}\n {/* <DemoUseRef/> */}\n {/* <DemoHookUseReducer/> */}\n {/* <DemoHookUseContext /> */}\n {/* <DemoReduxApp/> */}\n {/* <DemoUseSpring /> */}\n {/* <Ex2UseSpring /> */}\n {/* <Ex3UseSpring /> */}\n <Ex4UseSpring />\n </div>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <UserProvider value=\"Prince\">\n <ComponentC />\n </UserProvider>\n\n {/*\n <ClickCounter name=\"Prince\" />\n <HoverCounter name=\"Prince\"/>\n <ErrorBoundary>\n <Hero heroName=\"superman\"/>\n </ErrorBoundary>\n <ErrorBoundary>\n <Hero heroName=\"batman\"/>\n </ErrorBoundary>\n <ErrorBoundary>\n <Hero heroName=\"joker\"/>\n </ErrorBoundary>\n <PortalsDemo />\n <FRParentInput />\n <Focusfile />\n <RefsDemo />\n <ParentComp />\n <Fragmentdemo />\n <Column />\n <LifecycleA />\n <Form />\n <Namelist />\n <Usergreeting />\n <Parentcomponent />\n {/* <Eventbind />\n */}\n {/* <Functionclick />\n <Classclick />\n /* /* < Counter />\n <Message />\n <Hello lastname=\" Roy\">\n <p>Your age is 22 Years</p>\n </Hello>\n <Greet name=\"abhishek\" lastname=\" kumar\">\n <p>Your age is 31 Years</p>\n </Greet>\n <Greet name=\"Ram\" lastname=\" singh\">\n <button>show</button>\n <p>\n Your Age is 32 Years\n </p></Greet>\n <Welcome name='one'/>\n <Welcome name='two' />\n <Welcome name='three' /> } */}\n </div>\n );\n}", "function ContextAPI() {\n }", "function App () {\n return (\n <div className=\"App\">\n {/* <ContextDemo /> */}\n {/* <Header /> */}\n <HookDemo />\n </div>\n );\n}", "function activate(context) {\n // Use the console to output diagnostic information (console.log) and errors (console.error)\n // This line of code will only be executed once when your extension is activated\n console.log('Congratulations, your extension \"hellowd\" is now active!');\n // The command has been defined in the package.json file\n // Now provide the implementation of the command with registerCommand\n // The commandId parameter must match the command field in package.json\n let disposable = vscode.commands.registerCommand('extension.sayHello', () => {\n // The code you place here will be executed every time your command is executed\n // Display a message box to the user\n vscode.window.showInformationMessage('Hello World!');\n });\n context.subscriptions.push(disposable);\n let sayName = vscode.commands.registerCommand('extension.sayName', () => {\n vscode.window.showInformationMessage(\"my name is zhujinshan\");\n });\n context.subscriptions.push(sayName);\n // 统计字符个数\n let wordCounter = new WordCounter();\n let controller = new WordCounterController(wordCounter);\n let countWord = vscode.commands.registerCommand('extension.countWord', () => {\n vscode.window.showInformationMessage(\"my name is zhujinshan\");\n wordCounter.updateWordCount();\n });\n context.subscriptions.push(countWord);\n context.subscriptions.push(controller);\n context.subscriptions.push(wordCounter);\n // 创建自定义输出\n let log = vscode.window.createOutputChannel(\"hellowdlog\");\n log.show();\n log.append(\"this is test log out ---- \\n\");\n // 创建终端\n let ternimal = vscode.window.createTerminal(\"hellowd\");\n ternimal.show();\n ternimal.sendText(\"cmd\");\n // 创建状态栏按钮\n let btn = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 7);\n btn.command = \"extension.sayName\"; //与package.json相同\n btn.text = \"$(bug)按钮\";\n btn.tooltip = \"this is btn tips\";\n btn.show();\n // 创建选项列表\n // let items: vscode.QuickPickItem[] = [];\n // items.push({label: \"item111\", description: \"The item 111\"});\n // items.push({label: \"item222\", description: \"The item 222\"});\n // let chose: vscode.QuickPickItem | undefined = vscode.window.showQuickPick(items);\n // if (chose) {\n // btn.text = chose.label;\n // }\n}", "function Xian() {\n\n //base\n this.Class = require(\"./src/base/class\");\n this.Enum = require(\"./src/base/enum\");\n this.EventEmitter = require(\"./src/base/event_emitter\");\n this.util = require(\"./src/base/util\");\n this.Config = require(\"./src/base/config\");\n this.Enums = require(\"./src/base/enums\");\n\n //context\n this.MainContext = require(\"./src/context/main_context\");\n //context/screen\n //this.ResolutionPolicy = require(\"./src/context/screen/ResolutionPolicy\");\n //this.ContainerStrategy = require(\"./src/context/screen/container_strategy\");\n //this.ContentStrategy = require(\"./src/context/screen/content_strategy\");\n //this.AudioCtx = require(\"./context/audio_ctx\");\n //this.Device = require(\"./context/device\");\n //this.Dom = require(\"./context/dom\");\n //this.requestAnimationFrame = require(\"./context/request_animation_frame\");\n //this.io = require(\"./context/socket.io.js\");\n //this.Time = require(\"./context/time\");\n //this.Log = require(\"./src/context/log\");\n //this.Handler = require(\"./context/input/handler\");\n //this.Input = require(\"./context/input\");\n //this.Canvas = require(\"./context/canvas\");\n //context/assets\n this.Asset = require(\"./src/context/assets/asset\");\n this.AssetLoader = require(\"./src/context/assets/asset_loader\");\n this.AssetLoaderLib = require(\"./src/context/assets/asset_loader_lib\");\n this.AudioClip = require(\"./src/context/assets/audio_clip\");\n this.Texture = require(\"./src/context/assets/texture\");\n this.RenderTexture = require(\"./src/context/assets/render_texture\");\n this.JsonData = require(\"./src/context/assets/json_data\");\n this.Prefab = require(\"./src/context/assets/prefab\");\n this.Module = require(\"./src/context/assets/module\");\n this.BitmapFont = require(\"./src/context/assets/bitmap_font\");\n //context/render\n //this.RendererLib = require(\"./src/context/graphics/renderer_lib\");\n\n //components\n this.AudioSource = require(\"./src/components/audio_source\");\n this.Camera = require(\"./src/components/camera\");\n this.Component = require(\"./src/core/component\");\n //this.Sprite = require(\"./src/components/sprite\");\n this.Transform = require(\"./src/components/transform\");\n this.Behaviour = require(\"./src/components/behaviour\");\n\n //behaviours\n this.AssetAgent = require(\"./src/components/asset_agent\");\n\n //core\n this.Game = require(\"./src/core/game\");\n this.GameObject = require(\"./src/core/game_object\");\n this.Scene = require(\"./src/core/scene\");\n this.System = require(\"./src/core/system\");\n\n //systems\n this.ComponentSystem = require(\"./src/systems/component_system\");\n this.TransformSystem = require(\"./src/systems/transform_system\");\n this.BehaviourSystem = require(\"./src/systems/behaviour_system\");\n //this.AssetSystem = require(\"./src/systems/asset_system\");\n\n //math\n this.AABB2 = require(\"./src/math/aabb2\");\n this.AABB3 = require(\"./src/math/aabb3\");\n this.Color = require(\"./src/math/color\");\n this.Mat2 = require(\"./src/math/mat2\");\n this.Mat3 = require(\"./src/math/mat3\");\n this.Mat32 = require(\"./src/math/mat32\");\n this.Mat4 = require(\"./src/math/mat4\");\n this.Mathf = require(\"./src/math/mathf\");\n this.Quat = require(\"./src/math/quat\");\n this.Rect = require(\"./src/math/rect\");\n this.RectOffset = require(\"./src/math/rect_offset\");\n this.Vec2 = require(\"./src/math/vec2\");\n this.Vec3 = require(\"./src/math/vec3\");\n this.Vec4 = require(\"./src/math/vec4\");\n\n //xian2d/base\n this.Enums2D = require(\"./src/xian2d/base/enums_2d\");\n //xian2d/contexts\n //this.XianShader = require(\"./src/xian2d/context/renderer/shaders/xian_shader\");\n this.FilterLib = require(\"./src/xian2d/context/graphics/g2d/webgl/filters/FilterLib\");\n //register renderer lib\n //var CanvasRenderer2D = require(\"./src/xian2d/context/renderer/canvas_renderer_2d\");\n //var WebGLRenderer2D = require(\"./src/xian2d/context/renderer/webgl_renderer_2d\");\n var CanvasRenderContext2D = require(\"./src/xian2d/context/graphics/g2d/canvas/canvas_render_context_2d\");\n var WebGLRenderContext2D = require(\"./src/xian2d/context/graphics/g2d/webgl/webgl_render_context_2d\");\n this.MainContext.GraphicsContext.setRenderContext(\"2d\", CanvasRenderContext2D, WebGLRenderContext2D);\n this.Sprite2DData = require(\"./src/xian2d/context/graphics/g2d/sprite_2d_data\");\n this.GraphicsData = require(\"./src/xian2d/context/graphics/g2d/graphics_data\");\n this.GraphicsShapeData = require(\"./src/xian2d/context/graphics/g2d/graphics_shape_data\");\n\n //xian2d/context/assets\n this.TextureClipData = require(\"./src/xian2d/context/assets/texture_clip_data\");\n this.SpriteSheet = require(\"./src/xian2d/context/assets/sprite_sheet\");\n var SpriteSheetLoader = require(\"./src/xian2d/context/assets/sprite_sheet_loader\");\n this.AssetLoaderLib.registerLoader(\"json\", \"SpriteSheet\", SpriteSheetLoader);\n\n this.Skeleton2DData = require(\"./src/xian2d/context/assets/skeleton_2d_data\");\n var Skeleton2DDataLoader = require(\"./src/xian2d/context/assets/skeleton_2d_data_loader\");\n this.AssetLoaderLib.registerLoader(\"json\", \"Skeleton2DData\", Skeleton2DDataLoader);\n\n this.Phys2D = require(\"./src/xian2d/context/phys2d/phys2d\");\n\n //xian2d/components\n this.Transform2D = require(\"./src/xian2d/components/transform_2d\");\n this.Camera2D = require(\"./src/xian2d/components/camera_2d\");\n //this.Renderer2D = require(\"./src/xian2d/context/renderer/canvas_renderer_2d\");\n this.Renderer2D = require(\"./src/xian2d/components/renderer_2d\");\n this.Renderable2D = require(\"./src/xian2d/components/renderable_2d\");\n this.Sprite2D = require(\"./src/xian2d/components/sprite_2d\");\n this.TilingSprite2D = require(\"./src/xian2d/components/tiling_sprite_2d\");\n this.Graphics = require(\"./src/xian2d/components/graphics\");\n this.Text2D = require(\"./src/xian2d/components/text_2d\");\n this.RigidBody2D = require(\"./src/xian2d/components/rigid_body_2d\");\n this.SkeletonAnimation2D = require(\"./src/xian2d/components/skeleton_animation_2d\");\n\n //xian2d systems\n this.Render2DSystem = require(\"./src/xian2d/systems/render_2d_system\");\n this.Transform2DSystem = require(\"./src/xian2d/systems/transform_2d_system\");\n this.Phys2DSystem = require(\"./src/xian2d/systems/phys_2d_system\");\n\n}", "bindHooks() {\n //\n }", "function App() {\n return (\n <div className=\"App\">\n {/* <HookCounter></HookCounter> */}\n {/* <Select1></Select1> */}\n {/* <SelectMultiple></SelectMultiple> */}\n {/* <test></test> */}\n {/* <VotingSystem></VotingSystem> */}\n{/* <RegistrationForm></RegistrationForm> */}\n {/* <MultiUse></MultiUse> */}\n {/* <Example></Example> */}\n <TableExample></TableExample>\n {/* <HookcounterThree></HookcounterThree> */}\n {/* <HookCounter4></HookCounter4> */}\n {/* <HookCounterOne></HookCounterOne> */}\n {/* <HookMouse></HookMouse> */}\n {/* <MouseContainer></MouseContainer> */}\n {/* <IntervalHookCounter></IntervalHookCounter> */}\n {/* <DataFetching></DataFetching> */}\n latha hai from App\n </div>\n );\n}", "function activate(context) {\n get();\n updateTimer();\n // 命令\n // 同步\n const sync = vscode.commands.registerCommand(\"emp-sync-base.syncCommand\", () => {\n get();\n });\n context.subscriptions.push(sync);\n // 初始化项目\n const init = vscode.commands.registerCommand(\"emp-sync-base.initCommand\", () => {\n initProject();\n });\n context.subscriptions.push(init);\n const syncStatusBarItem = initBarButton();\n context.subscriptions.push(syncStatusBarItem);\n}", "function App() {\n return (\n <div>\n <h1>Hooks vs Classes!</h1>\n {/* useState */}\n {/* <FirstExampleWithClass /> */}\n {/* <FirstExampleWithHooks /> */}\n {/* <SecondExampleWithClass /> */}\n {/* <SecondExampleWithHooks /> */}\n {/* <ThirdExampleWithClass /> */}\n {/* <ThirdExampleWithHooks /> */}\n {/* <FourthExampleWithHooks /> */}\n {/* <FifthExampleWithHooks /> */}\n\n {/* {useEffect} */}\n {/* <ClassMouse /> */}\n {/* <HookMouse /> */}\n {/* <MouseContainer /> */}\n {/* <FirstExampleWithClassInterval /> */}\n {/* <FirstExampleWithHooksInterval /> */}\n {/* <DataFetching /> */}\n {/* <DataFetchingIndividualItem /> */}\n {/* <DataFetchingIndividualItemWithButton /> */}\n <DataFetchingIndividualItemWithManyButtons />\n\n {/* useContext */}\n {/* <UserContext.Provider value={\"Carlos\"}>\n <Channel.Provider value={\"Valle\"}>\n <UseContextHook />\n </Channel.Provider>\n </UserContext.Provider> */}\n {/* <CounterOne /> */}\n </div>\n );\n}", "function Menu() {\n var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_PlaygroundContext__WEBPACK_IMPORTED_MODULE_4__.default),\n currentProject = _useContext.currentProject;\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"side-menu\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"input\", {\n type: \"checkbox\",\n id: \"toggle\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"aside\", {\n className: \"left-bar\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"rows\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"menu top s-1\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"btn-toggle hamburger hamburger--arrowturn is-active\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"label\", {\n htmlFor: \"toggle\",\n className: \"hamburger-box\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n htmlFor: \"toggle\",\n className: \"hamburger-inner\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"menu icons s-1-6 columns\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"rows align-items center start\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_icons_fa__WEBPACK_IMPORTED_MODULE_6__.FaCubes, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"label\", {\n className: \"active\",\n htmlFor: \"toggle\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_icons_vsc__WEBPACK_IMPORTED_MODULE_7__.VscFiles, null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"grow\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"rows align-items center start\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_icons_vsc__WEBPACK_IMPORTED_MODULE_7__.VscRefresh, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkbox__WEBPACK_IMPORTED_MODULE_5__.default, {\n title: \"Live refresh\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"menu body active s-5-6 columns\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"grow\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ProjStructure__WEBPACK_IMPORTED_MODULE_3__.default, {\n project: currentProject\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"bottom rows align-items center\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n className: \"menu-version grow\"\n }, \"v.: \", _package_json__WEBPACK_IMPORTED_MODULE_1__.version), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_icons_go__WEBPACK_IMPORTED_MODULE_8__.GoMarkGithub, {\n className: \"menu-icon\",\n title: \"Click here to check the Playground's repository\",\n onClick: function onClick() {\n window.open('https://github.com/marcelo-ferraz/react-webpack-playground');\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_icons_ai__WEBPACK_IMPORTED_MODULE_9__.AiFillLinkedin, {\n className: \"menu-icon\",\n title: \"Click here to check my linkedIn profile\",\n onClick: function onClick() {\n window.open('https://www.linkedin.com/in/marceloferraz/');\n }\n }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"label\", {\n htmlFor: \"toggle\",\n className: \"overlay\"\n }));\n}", "render() {\n console.log('..inside Dashbard', this.context);\n //destructure those properties frm the context\n const { isLightTheme, light, dark } = this.context;\n const theme = isLightTheme? light : dark;\n \n return (\n <>\n <aside style = {{background: theme.ui, color: theme.bg}} className=\"opeeny-aside\">\n <div className=\"control-bar\">\n <div className=\"text-center\">\n <span className=\"menu-toggle\">\n <i className=\"chart\"></i>\n <i className=\"chart\"></i>\n <i className=\"chart\"></i>\n </span>\n </div> \n <p className=\"copyright\">\n <Link to = \"/\">Green Miles 2020</Link> - &copy; We deliver safely<i className=\"fa fa-heart\"></i> \n </p>\n </div>\n\n\n <div style = {{background: theme.ui, color: theme.bg}} className=\"slide-menu-container\">\n <div className=\"slide-menu menu-opend navbar-scrolled opeeny-menu-style-2\">\n <div className=\"opeeny-user-info\">\n <ul className=\"social-media list-unstyled text-center opeeny-links\">\n <li className = \"first\"><Link to=\"/https\" className=\"facebook\" ><i className=\"fab fa-facebook\"></i></Link></li>\n <li className = \"first\"><Link to=\"https\" className=\"twitter\" ><i className=\"fab fa-twitter-square\"></i></Link></li>\n <li className = \"first\"><Link to=\"#!\" className=\"google-plus\"><i className=\"fab fa-google-plus\"></i></Link></li>\n <li className = \"first\"><Link to=\"https\" className=\"linkedin\" ><i className=\"fab fa-linkedin\"></i></Link></li>\n <li className = \"first\"><Link to=\"http\" className=\"behance\"><i className=\"fab fa-skype\"></i></Link></li>\n </ul>\n\n <div className=\"opeeny-img-box\">\n <div id = \"profile\" className=\"opeeny-img\">\n <i class=\"fas fa-user\"></i>\n </div>\n </div>\n </div>\n <div className=\"nav\">\n <ul className=\"list-unstyled opeeny-links\">\n <li className=\"active\">\n <Link to = \"/\"><i className=\"fa fa-home\"></i>Dashboard</Link>\n </li>\n <li className = \"first\">\n <Link to = \"/suppliers\"><i className=\"fa fa-laptop\"></i>view suppliers</Link>\n </li>\n <li className = \"first\">\n <Link to = \"/loaders\"><i className=\"fa fa-laptop\"></i>view suppliers</Link>\n </li>\n <li className = \"first\">\n <Link to = \"/suppliers\"><i className=\"fa fa-laptop\"></i>view suppliers</Link>\n </li>\n <li className = \"first\">\n <Link to = \"/suppliers\"><i className=\"fa fa-laptop\"></i>view suppliers</Link>\n </li>\n <li className = \"first\">\n <Link to = \"/suppliers\"><i class=\"fas fa-question-circle\"></i>Help!</Link>\n </li>\n <li className = \"first\">\n <Link to = \"/suppliers\"><i className=\"fas fa-cog\"></i>Settings</Link>\n </li>\n \n </ul>\n \n </div>\n </div>\n \n </div>\n\n </aside> \n <Logout />\n <ChangeTheme/>\n <main style = {{background: theme.ui, color: theme.bg}} className=\"main-page-content\">\n \n <section style = {{background: theme.ui, color: theme.bg}} className=\"full-page\" id=\"home\">\n <div className=\"home overlay-container\">\n <div className=\"overlay\">\n \n <div className=\"section-intro opeeny-container display-table\">\n <div className=\"display-table-cell\">\n <h3 className=\"opeeny-hello\">HI, IAM</h3>\n <h1 className=\"opeeny\">GREEN MILE DASHBOARD</h1>\n <h3 className=\"opeeny-work-description\">&nbsp;<span className=\"opeeny-work\"></span></h3>\n </div>\n </div>\n </div>\n </div>\n </section>\n </main>\n <Footer/>\n </>\n );\n \n }", "function App() {\n\n //init StepLength for 70bpm\n let initBeatLength = 60 / 70;\n let initStepLength = initBeatLength / 4;\n\n const [mainState, setMyState] = useState({\n viewBtnState: \"drums\",\n numberOfLoops: 2,\n currentTempo: 70,\n currentStepLength: initStepLength,\n guiDataObj: appDataStore\n });\n\n //console.log(mainState, \"mainstate from main App\");\n \n const panelViewHandler = (panelName) => {\n setMyState({...mainState,\n viewBtnState: panelName });\n };\n\n const onLoopChange = (loopValue) => {\n setMyState({...mainState, numberOfLoops: loopValue });\n };\n\n const onTempoChange = (selectedTempo) => {\n setMyState({ ...mainState, currentTempo: selectedTempo });\n //console.log(\"new tempo\", selectedTempo);\n\n let beatLength = 60 / selectedTempo;\n let newStepLength = beatLength / 4;\n setMyState({...mainState, currentStepLength: newStepLength });\n };\n\n //---------------------onPlayNotes----------------\n const onPlayNotes = (e) => {\n let sampleObj = sampleGetter();\n playNotes(sampleObj, mainState, mainState.guiDataObj);\n }\n\n const onStopNotes = () => {\n stopNotes();\n }\n\n return (\n <GlobalContext.Provider value={{mainState, setMyState}}>\n <div className=\"App appContainer\">\n <NavComponent\n stepLength={mainState.currentStepLength}\n numberOfLoops={mainState.numberOfLoops}\n\n onViewPanelSelect={panelViewHandler}\n loopHandler={onLoopChange}\n tempoHandler={onTempoChange}\n playNotesHandler={onPlayNotes}\n stopNotesHandler={onStopNotes}\n />\n\n <InfoHolder />\n <PatternContainer\n viewPanelState={mainState.viewBtnState}\n />\n </div>\n </GlobalContext.Provider>\n );\n}", "enterBase(ctx) {\n\t}", "function App() {\n const [flag,setFlag] = useState(true);\n const [id,setId] = useState(1);\n \n return (\n <div className=\"App\">\n {/* <button onClick={()=>{setFlag(false)}}>显示/隐藏</button> */}\n {/* <DragDemo></DragDemo> */}\n {/* <DragOrder></DragOrder> */}\n {/* <CrossArea /> */}\n {/* 拖拽排序 */}\n {/* <CanvasSignature /> */}\n\n {/* 企业签章 */}\n {/* <Signature /> */}\n {/* redux demo */}\n {/* <ReduxDemo></ReduxDemo> */}\n {/* <AsyncRedux></AsyncRedux> */}\n {/* <ClickCount></ClickCount> */}\n {\n // flag && <LifeCycles />\n }\n {/* <FriendStatusClass /> */}\n\n\n {/* <div>\n <button onClick={()=>{setFlag(false)}}>flag = false</button>\n <button onClick={()=>{setId(id+1)}}>id++</button>\n </div> */}\n {/* {\n flag && <FriendStatusFn friendId={id} />\n }\n <FriendStatusFn /> */}\n\n {/* <UseRefDemo /> */}\n {/* <UseContextDemo /> */}\n {/* <UseReducerDemo /> */}\n {/* <UseMemoDemo /> */}\n <CustomHookUse />\n {/* <UseStateTrap /> */}\n {/* <UseEffectChangeState /> */}\n </div>\n );\n}", "start() {\n this.createContext();\n }", "function setup() {\n // the SSB_MANIFEST variable is created by /manifest.js, which is loaded before the javascript bundle.\n var ssb = muxrpc(SSB_MANIFEST, false, function (stream) { return Serializer(stream, JSON, {split: '\\n\\n'}) })()\n var localhost = channel.connect(ssb, 'localhost')\n\n // master state object\n window.phoenix = {\n // sbot rpc connection\n ssb: ssb,\n\n // api\n refreshPage: refreshPage,\n setPage: setPage, // :TODO: make internal\n\n // component registry\n add: add,\n get: get,\n getAll: getAll,\n registry: {},\n\n // page params parsed from the url\n page: {\n id: 'feed',\n param: null,\n qs: {}\n },\n\n // ui data\n ui: {\n emojis: [],\n suggestOptions: { ':': [], '@': [] },\n actionItems: null\n // ui helper methods added by `addUi`\n },\n\n // userdata, fetched every refresh\n user: {\n id: null,\n profile: null\n },\n users: {\n names: null,\n nameTrustRanks: null,\n profiles: null,\n link: function (id) { return h('span', com.user(phoenix, id)) }\n },\n\n // for plugins\n h: require('hyperscript'),\n pull: require('pull-stream')\n }\n addUI(phoenix) // add ui methods\n\n // events\n window.addEventListener('hashchange', phoenix.refreshPage)\n window.addEventListener('resize', resizeControls)\n document.body.addEventListener('click', onClick)\n\n // periodically poll and rerender the current connections\n setInterval(pollPeers, 5000)\n\n // emojis\n for (var emoji in emojis) {\n phoenix.ui.emojis.push(emoji)\n phoenix.ui.suggestOptions[':'].push({\n image: '/img/emoji/' + emoji + '.png',\n title: emoji,\n subtitle: emoji,\n value: emoji + ':'\n })\n }\n\n // rpc connection\n localhost.on('connect', function() {\n // authenticate the connection\n auth.getToken(window.location.host, function(err, token) {\n if (err) return localhost.close(), console.error('Token fetch failed', err)\n ssb.auth(token, function(err) {\n phoenix.ui.setStatus(false)\n setupRpcConnection()\n phoenix.refreshPage()\n })\n })\n })\n localhost.on('error', function(err) {\n // inform user and attempt a reconnect\n console.log('Connection Error', err)\n phoenix.ui.setStatus('danger', 'Lost connection to the host program. Please restart the host program. Trying again in 10 seconds.')\n localhost.reconnect()\n })\n localhost.on('reconnecting', function(err) {\n console.log('Attempting Reconnect')\n phoenix.ui.setStatus('danger', 'Lost connection to the host program. Reconnecting...')\n })\n}", "function App() {\n return (\n <div className=\"App\">\n {/* <ClassCount/> */}\n {/* <HookCounter/> */}\n {/* <HookCountertwo />\n <HookForm />\n <HookArray />\n <ClassCounterTitle />\n <HookCounteruseEffect />*/}\n <MovemouseContainer />\n </div>\n );\n}", "main( opts ) {\n let key = APP_STATES.get( 'MAIN' )\n\n return <Main\n key={ key }\n state={ key }\n canvas={ key }\n />\n }", "function LContext() { }", "function LContext() { }", "function LContext() {}", "function LContext() {}", "function LContext() {}", "function App() {\n return (\n <Provider store={store}>\n <CounterContainer />\n </Provider>\n )\n}", "function SideBar() {\n\n const { userData } = useUserContext();\n\n return (\n <NewProjectContextProvider>\n <div className={CLASS.sideBar}>\n <p className={CLASS.sectionTitle}>Hello, {userData.name} {userData.surname}</p>\n <Accordion defaultActiveKey=\"0\">\n <Card>\n <Accordion.Toggle as={Card.Header} eventKey=\"0\" className={CLASS.subSectionTitle}>\n projects &#x25BF;\n </Accordion.Toggle>\n <Accordion.Collapse eventKey=\"0\">\n <TasksContextProvider>\n <EditContextProvider>\n <Card.Body className={CLASS.cardBody}>\n <Projects/>\n </Card.Body>\n </EditContextProvider>\n </TasksContextProvider>\n </Accordion.Collapse>\n </Card>\n </Accordion>\n </div>\n </NewProjectContextProvider>\n )\n}", "activate() {\n\n }", "function App() {\n\n\n return (\n <div>\n {/* <MyHooks />\n <Click /> */}\n {/* <One /> */}\n {/* <Again /> */}\n {/* <Clicking /> */}\n {/* <OpenPage /> */}\n <InstaClick />\n </div>\n );\n}", "activate() {\n }", "function App() {\n\n // useUpdatedConsoleLog(name)\n\n return (\n <>\n {/* <UseLocalStorageComp /> */}\n {/* < UseToggleComp /> */}\n {/* < UpdatedEffectComp /> */}\n <UseArrayComp />\n </>\n ); \n}", "function LContext(){}", "function App() {\n return (\n <Provider store={store}>\n <div className=\"App\">\n <TopNavigation></TopNavigation>\n <FeaturedSlider></FeaturedSlider>\n <ProductCardList></ProductCardList>\n <ProductModal></ProductModal>\n </div>\n </Provider>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <DocTitle/>\n <DocTitleTwo/>\n {/* <HookTimer/> */}\n {/* <FocusInput/> */}\n {/* <Counter/> */}\n {/* <CounterTwo/> */}\n {/* <CounterOne/> */}\n {/* <CompA/> */}\n {/* <IntervalHookCounter/> */}\n {/* <MouseContainer/> */}\n {/* <HookMouse/> */}\n {/* <HookCounterOne/> */}\n {/* <HookCounterFour/> */}\n {/* <HookCounterThree/> */}\n {/* <ClassCounter/>\n <HookCounter/> */}\n {/* <HookCounterTwo/> */}\n </div>\n );\n}", "function activate(context) {\n let clippyPanel = null;\n context.subscriptions.push(vscode.window.onDidChangeTextEditorSelection((event) => {\n let text = event.textEditor.document.getText(event.selections[0]);\n if (text) {\n if (clippyPanel)\n clippyPanel.dispose();\n let helpText = clippySays(text);\n console.log(helpText);\n clippyPanel = clippy(context, helpText.say, helpText.linkText);\n }\n }));\n}", "function decorateContextFunction(ctx, next) {\r\n ctx.render = (content) => render(content, document.querySelector('main'));\r\n ctx.setUserNav = setUserNav;\r\n next();\r\n}", "function App() {\n return (\n <div className=\"container\">\n {/* <Basic />\n <Array />\n <Object />\n <Counter />\n <UseEffectBasics />\n <UseEffectCleanup />\n <UseEffectFetchData />\n <MultipleReturns />\n <ShortCircuit />\n <ShowHide /> \n <ControlledInputs />\n <MultipleInputs /> \n <UseRefBasics /> */}\n {/* <Index /> */}\n {/* <PropDrilling/> */}\n {/* <ContextApi /> */}\n {/* <FetchExample /> */}\n <ReactRouterSetup/>\n </div>\n \n );\n}", "function rp(e){let{basename:n,children:t,window:r}=e,l=Y.useRef();l.current==null&&(l.current=Gd({window:r,v5Compat:!0}));let o=l.current,[i,u]=Y.useState({action:o.action,location:o.location}),s=Y.useCallback(c=>{\"startTransition\"in jc?Y.startTransition(()=>u(c)):u(c)},[u]);return Y.useLayoutEffect(()=>o.listen(s),[o,s]),Y.createElement(tp,{basename:n,children:t,location:i.location,navigationType:i.action,navigator:o})}", "function App() {\n return (\n <div className=\"App\">\n <header className=\"App-header\"> \n <ThemeContextProvider>\n <Navbar />\n <BookList />\n <ToggleButton/>\n </ThemeContextProvider>\n </header>\n </div>\n );\n}", "constructor(props, context) {\n if (typeof context !== 'object') {\n throw new Error(`HyperloopContext instance is required to instantiate components`)\n }\n\n Object.defineProperties(this, {\n context: { value: context },\n initializing: { value: false, writable: true },\n node: { value: null, writable: true },\n props: { value: Object.assign({}, props) },\n wire: { value: null, writable: true },\n })\n\n if (this.defaultState) {\n this.setState(this.defaultState(this.props), false)\n }\n\n if (!context.initializing && this.oninit) {\n this.initializing = true\n if (this.isBrowser) {\n console.group(`${this.constructor.name}.oninit`)\n }\n Promise.resolve(this.oninit()).then((newState) => {\n this.initializing = false\n this.setState(newState)\n if (this.isBrowser) {\n console.debug('newState:', newState)\n console.groupEnd()\n }\n })\n }\n }", "function activate(context) {\n store_1.store.extensionPath = context.extensionPath;\n store_1.store.booksPath = Path.join(context.extensionPath, 'book');\n // Use the console to output diagnostic information (console.log) and errors (console.error)\n // This line of code will only be executed once when your extension is activated\n console.log('Congratulations, your extension \"xv-book\" is now active!');\n treeViewProvider_1.treeViewProvider.initTreeView();\n // The command has been defined in the package.json file\n // Now provide the implementation of the command with registerCommand\n // The commandId parameter must match the command field in package.json\n context.subscriptions.push(vscode.commands.registerCommand(config_1.Commands.setCookie, commands_1.setCookie), vscode.commands.registerCommand(config_1.Commands.searchOnline, commands_1.searchOnline), vscode.commands.registerCommand(config_1.Commands.openChapterWebView, (treeNode) => {\n if (!webView) {\n webView = ChapterView_1.createWebView(context, vscode.ViewColumn.Active, treeNode);\n context.subscriptions.push(webView.webviewPanel);\n }\n webView.updateChapter(treeNode);\n }));\n}", "function AppHook() {\n\n return (\n <Demo />\n )\n}", "function AppInit(){\n \n ctx = document.body.getAttribute(\"data-context\");\n if (ctx == null) throw \"No context defined!\" ;//on verra plus tard!\n\n //si une function, initialise\n ctx = window[ctx];\n if (ctx instanceof Function){\n CONTEXT = new ctx();\n }\n else {\n CONTEXT = ctx;//permet toujours de recuperer un objet, pour un site tout simple amateur, c'est suffisant\n ctx = CONTEXT.constructor;//recupere le type;\n }\n if (CONTEXT == null)throw \"No context defined!\" ;//on verra plus tard!\n \n defineBindObject(CONTEXT);\n\n //qqs property necessaires:\n //process_update: true/false: indique si est en train de mettre a jour les données\n \n CONTEXT[\"__process_update\"] = false;\n ctx.defineBindProperty( \"process_update\",{\n get : function(){\n return this.__process_update;\n },\n set: function(value){\n if (this.__process_update != value){\n this.__process_update = value;\n key = this.__uuid__+\":process_update\";\n\n if (key in BINDINGS) {\n\n __notifyDatasetChanged(this,BINDINGS[key], key);\n }\n }\n\n\n },\n enumerable: false,\n });\n\n //end_init: si true, initialisations terminées\n //en theorie, modifié 1 seule fois dans l'appli...\n CONTEXT[\"__end_init\"] = false;\n ctx.defineBindProperty( \"end_init\",{\n get : function(){\n return this.__end_init;\n },\n set: function(value){\n if (this.__end_init != value){\n this.__end_init = value;\n key = this.__uuid__+\":end_init\";\n\n if (key in BINDINGS) {\n __notifyDatasetChanged(this,BINDINGS[key], key);\n }\n }\n\n\n },\n enumerable: false,\n });\n \n \n //si existent des models dans la page (ie: models globaux), recupere les\n var model_node = document.querySelector(\"body>div[data-role='presenters']\");\n\n if (model_node != null){\n //n'affiche pas le contenu\n model_node.style.display = \"none\";\n\n models = model_node.querySelectorAll(\"body>div[data-role=presenters]>[data-role=presenter]\");\n //pour chque model trouvé....\n for (moi=0;moi<models.length;moi++){\n var model = models[moi];\n\n id = model.getAttribute(\"id\");\n //probleme EDGE et SVG: pas de children pour le SVG...\n if (id == null || (model.children==null && model.childNodes == null)) continue; //n'autorise pas de models sans id!\n \n\n //SI EDGE ET SVG, DOIT PASSER PAR ChildNodes????\n children = model.children;\n if (children==null){\n children = [];\n \n end = model.childNodes.length ;\n current = 0;\n cn = model.childNodes;\n do{\n node = cn[current];\n if (node.nodeType != 8 && (node.nodeType!=3 || /\\S/.test(node.nodeValue))){\n \n children.push(node);;\n }\n //ajoute\n \n current++;\n }while(current<end);\n }\n \n //ici, si plusieurs childs, veut dire plusieurs data-type\n if (children.length == 1){\n //cree les bindings pour ce model\n //bindings: les bindings presents dans le model\n //template: le template/presenter html pour le model\n //recycle: des presenters deja crées pour reutilisation\n //MODELS[id] = __get_bindings(children[0], false);//false: ne met pas en place les events handlers\n MODELS[id] ={bindings: __get_bindings(children[0], false), template: children[0], recycle:[]};\n } else {\n //utilise des data-types, doit creer un binding par data-type\n for (c_i = 0; c_i < children.length; c_i++){\n mdl = children[c_i];\n dtype = mdl.getAttribute(\"data-type\");\n \n if (dtype == null){\n //model par defaut\n //MODELS[id] = __get_bindings(mdl, false);\n MODELS[id] = {bindings: __get_bindings(mdl, false), template: mdl, recycle:[]};\n } else {\n //un datatype\n MODELS[id+\"_\"+dtype] = {bindings: __get_bindings(mdl, false), template: mdl, recycle:[]};\n }\n }\n }\n \n \n //comment faire pour eviter a chaque initialisation de binding model de devoir recuperer le html????\n }\n\n }\n\n //les bindings de la page web...\n BINDINGS = __get_bindings(document.body, true, \"//*[not(ancestor::div[@data-role='presenters']) and (@*[contains(.,'{binding ')] or contains(text(),'{binding ')) ]\");\n \n \n notifyDatasetChanged();\n\n CONTEXT.end_init = true;//notifie la fin du chargement...\n}", "constructor(...args) {\n super(...args);\n\n // Register action handlers\n this.actions.toggleDebugBar.listen(this._toggleDebugBar.bind(this));\n this.actions.toggleNavbar.listen(this._toggleNavbar.bind(this));\n this.actions.setNavBarTitle.listen(this._setNavBarTitle.bind(this));\n this.actions.setNavBarClassName.listen(this._setNavBarClassName.bind(this));\n this.actions.setNavigationBarLeftLink.listen(this._setNavigationBarLeftLink.bind(this));\n this.actions.setNavigationBarRightLink.listen(this._setNavigationBarRightLink.bind(this));\n this.actions.setNavBarComponent.listen(this._setNavBarComponent.bind(this));\n this.actions.setSlideLabel.listen(this._setSlideLabel.bind(this));\n this.actions.nextSlide.listen(this._nextSlide.bind(this));\n this.actions.setMaxSlides.listen(this._setMaxSlides.bind(this));\n this.actions.debug.listen(this._debug.bind(this));\n this.actions.loginAttempt.listen(this._loginAttempt.bind(this));\n }", "constructor(props: any, context: any) {\n super(props, context);\n this.back = this.back.bind(this);\n this.renderHeader = this.renderHeader.bind(this);\n this.renderScene = this.renderScene.bind(this);\n }", "render() {\n return (\n <div>\n I am Comp #3 - Accessing Context using STATIC variable - {this.context}\n </div>\n )\n }", "function activate(context) {\n _context = context;\n context.subscriptions.push(vscode.commands.registerCommand(\"ev3-micropython.newProject\", newProject), vscode.commands.registerCommand(\"ev3-micropython.showExampleBrowser\", showExampleBrowser), vscode.commands.registerCommand(\"ev3-micropython.openExample\", openExample), vscode.commands.registerCommand(\"ev3-micropython.openOfflineDocs\", openOfflineDocs), vscode.window.registerTreeDataProvider(\"ev3-micropython.activities\", activitiesProvider));\n}", "bindCorrectContext() {\n\t\tthis.onTitleChange = this.onTitleChange.bind(this);\n\t\tthis.onShowDockingToolTip = this.onShowDockingToolTip.bind(this);\n\t\tthis.onToggleDockingIcon = this.onToggleDockingIcon.bind(this);\n\t\tthis.onDocking = this.onDocking.bind(this);\n\t\tthis.showLinkerButton = this.showLinkerButton.bind(this);\n\t}", "setupComponents() {\n\t\tthis.contactBar = new ContactBar();\n\t\tthis.contactBar.setup();\n\n\t\tthis.modal = new Modal();\n\t\tthis.modal.setup();\n\n\t\tthis.accordion = new Accordion();\n\t\tthis.accordion.setup();\n\n\t\tthis.mediaGallery = new MediaGallery();\n\t\tthis.mediaGallery.setup();\n\t}", "enterObj(ctx) {\n }", "constructor(props, context) {\n super(props, context);\n this.state = {message: \"Hello Gen Name Human\"};\n }", "constructor(props, context){\n super(props, context);\n\n }", "bindCorrectContext() {\n\t\tthis.onTitleChange = this.onTitleChange.bind(this);\n\t\tthis.onShowDockingToolTip = this.onShowDockingToolTip.bind(this);\n\t\tthis.onToggleDockingIcon = this.onToggleDockingIcon.bind(this);\n\t\tthis.onDockingEnabledChanged = this.onDockingEnabledChanged.bind(this);\n\t\tthis.onAlwaysOnTopChanged = this.onAlwaysOnTopChanged.bind(this);\n\t\tthis.showLinkerButton = this.showLinkerButton.bind(this);\n\t\tthis.isTopRight = this.isTopRight.bind(this);\n\t\tthis.allowDragOnCenterRegion = this.allowDragOnCenterRegion.bind(this);\n\t\tthis.disallowDragOnCenterRegion = this.disallowDragOnCenterRegion.bind(this);\n\n\t\tthis.onShareEmitterChanged = this.onShareEmitterChanged.bind(this);\n\t\tthis.onTabsChanged = this.onTabsChanged.bind(this);\n\t\tthis.onShowTabsChanged = this.onShowTabsChanged.bind(this);\n\t\tthis.onHackScrollbarChanged = this.onHackScrollbarChanged.bind(this);\n\t\tthis.onTilingStop = this.onTilingStop.bind(this);\n\t\tthis.onTilingStart = this.onTilingStart.bind(this);\n\t\tthis.resizeDragHandle = this.resizeDragHandle.bind(this);\n\t\tthis.onDoubleClick = this.onDoubleClick.bind(this);\n\n\t}", "function App() {\n return (\n <div className=\"App\">\n {/* <h1>sreedhar</h1>\n <Student />\n <Add_1 /> */}\n {/* <Props_Components/> */}\n {/* <Props_Classcomponents sayhello=\"good morning\"/> */}\n {/* <State_Components/> */}\n {/* <Events_Component /> */}\n {/* <Binding_Component/> */}\n <Navbar_Component />\n {/* <Conditions_Components/> */}\n {/* <Loops_FunctionalComponets /> */}\n </div>\n );\n}", "function Context() {\n this.scope = {};\n this.ordered = false;\n this._commands = {};\n this._beforeFn = [];\n this._queue = [];\n this._refreshCommands = [];\n}", "async componentDidMount(){\n //Context menu options\n const options = [\n {label:\"Primera\",value:\"one\",action:()=>{}},\n {label:\"Segunda\",value:\"two\"},\n {label:\"OPEN SETTINGS (try this)\",action:()=>{this.openSettings()}},\n {label:\"Cuarta\",anyData:1234},\n {label:\"Quinta\",num:\"five\",action:()=>{}},\n {label:\"Sexta\"},\n 'Only label option',\n 'Only label option 2',\n undefined\n ]\n\n this.divref.current.addEventListener('contextmenu', event => {\n event.preventDefault()\n contextmenu(\n event,\n options,\n e => {\n if(e.num == 'five') {alert('five');return;}\n if(e.label == 'OPEN SETTINGS (try this)') return;\n alert('Clicked: '+e.label)\n }\n )\n })\n\n //Check initial data\n if(!this.state.initialDataLoaded){ //initialDataLoaded is used to know if the data is loaded\n const initialData = await Home.initialData(this.props.params)\n this.setState({...initialData})\n }\n }", "init() {\n // hello from the other side\n }", "function gameAreaContext(){\n\t\t//setActiveTool($handTool);\n\t}", "function activate(context) {\n\n // Use the console to output diagnostic information (console.log) and errors (console.error)\n // This line of code will only be executed once when your extension is activated\n console.log('Congratulations, your extension \"vscode-plugin-seek\" is now active!');\n\n const os = require('os');\n const createServer = require('./lib/service-bridge/server');\n const driver = require('./lib/driver');\n const spawnElectron = require('./lib/spawnElectron');\n const tmpdir = os.tmpdir();\n const sockPath = `unix://${tmpdir}/seek.sock`;\n\n const currDir = vscode.workspace.rootPath;\n\n createServer(driver, {\n path: sockPath\n });\n\n // The command has been defined in the package.json file\n // Now provide the implementation of the command with registerCommand\n // The commandId parameter must match the command field in package.json\n\n const seekAdd = vscode.commands.registerCommand('extension.seekAdd', function () {\n const statusBar = vscode.window.setStatusBarMessage('$(watch)\\t 正在启动添加场景界面...');\n setTimeout(function () {\n statusBar.dispose();\n }, 3000);\n electronProcess = spawnElectron({\n appPath: path.join(__dirname, 'app'),\n sockPath,\n envParams: {\n ELECTRON_CURR_VIEW: 'add',\n ELECTRON_CURR_DIR: currDir\n }\n // others options in the future\n });\n })\n\n context.subscriptions.push(seekAdd);\n}", "constructor(options) {\n super();\n /**\n * A message hook for child add/remove messages on the main area dock panel.\n */\n this._dockChildHook = (handler, msg) => {\n switch (msg.type) {\n case 'child-added':\n msg.child.addClass(ACTIVITY_CLASS);\n this._tracker.add(msg.child);\n break;\n case 'child-removed':\n msg.child.removeClass(ACTIVITY_CLASS);\n this._tracker.remove(msg.child);\n break;\n default:\n break;\n }\n return true;\n };\n this._activeChanged = new Signal(this);\n this._cachedLayout = null;\n this._currentChanged = new Signal(this);\n this._currentPath = '';\n this._currentPathChanged = new Signal(this);\n this._modeChanged = new Signal(this);\n this._isRestored = false;\n this._layoutModified = new Signal(this);\n this._layoutDebouncer = new Debouncer(() => {\n this._layoutModified.emit(undefined);\n }, 0);\n this._restored = new PromiseDelegate();\n this._tracker = new FocusTracker();\n this._mainOptionsCache = new Map();\n this._sideOptionsCache = new Map();\n this.addClass(APPLICATION_SHELL_CLASS);\n this.id = 'main';\n const trans = ((options && options.translator) || nullTranslator).load('jupyterlab');\n const headerPanel = (this._headerPanel = new BoxPanel());\n const menuHandler = (this._menuHandler = new Private.PanelHandler());\n menuHandler.panel.node.setAttribute('role', 'navigation');\n menuHandler.panel.node.setAttribute('aria-label', trans.__('main'));\n const topHandler = (this._topHandler = new Private.PanelHandler());\n topHandler.panel.node.setAttribute('role', 'banner');\n const bottomPanel = (this._bottomPanel = new BoxPanel());\n bottomPanel.node.setAttribute('role', 'contentinfo');\n const hboxPanel = new BoxPanel();\n const vsplitPanel = (this._vsplitPanel = new Private.RestorableSplitPanel());\n const dockPanel = (this._dockPanel = new DockPanelSvg());\n MessageLoop.installMessageHook(dockPanel, this._dockChildHook);\n const hsplitPanel = (this._hsplitPanel = new Private.RestorableSplitPanel());\n const downPanel = (this._downPanel = new TabPanelSvg({\n tabsMovable: true\n }));\n const leftHandler = (this._leftHandler = new Private.SideBarHandler());\n const rightHandler = (this._rightHandler = new Private.SideBarHandler());\n const rootLayout = new BoxLayout();\n headerPanel.id = 'jp-header-panel';\n menuHandler.panel.id = 'jp-menu-panel';\n topHandler.panel.id = 'jp-top-panel';\n bottomPanel.id = 'jp-bottom-panel';\n hboxPanel.id = 'jp-main-content-panel';\n vsplitPanel.id = 'jp-main-vsplit-panel';\n dockPanel.id = 'jp-main-dock-panel';\n hsplitPanel.id = 'jp-main-split-panel';\n downPanel.id = 'jp-down-stack';\n leftHandler.sideBar.addClass(SIDEBAR_CLASS);\n leftHandler.sideBar.addClass('jp-mod-left');\n leftHandler.sideBar.node.setAttribute('aria-label', trans.__('main sidebar'));\n leftHandler.sideBar.contentNode.setAttribute('aria-label', trans.__('main sidebar'));\n leftHandler.sideBar.node.setAttribute('role', 'complementary');\n leftHandler.stackedPanel.id = 'jp-left-stack';\n rightHandler.sideBar.addClass(SIDEBAR_CLASS);\n rightHandler.sideBar.addClass('jp-mod-right');\n rightHandler.sideBar.node.setAttribute('aria-label', trans.__('alternate sidebar'));\n rightHandler.sideBar.contentNode.setAttribute('aria-label', trans.__('alternate sidebar'));\n rightHandler.sideBar.node.setAttribute('role', 'complementary');\n rightHandler.stackedPanel.id = 'jp-right-stack';\n dockPanel.node.setAttribute('role', 'main');\n hboxPanel.spacing = 0;\n vsplitPanel.spacing = 1;\n dockPanel.spacing = 5;\n hsplitPanel.spacing = 1;\n headerPanel.direction = 'top-to-bottom';\n vsplitPanel.orientation = 'vertical';\n hboxPanel.direction = 'left-to-right';\n hsplitPanel.orientation = 'horizontal';\n bottomPanel.direction = 'bottom-to-top';\n SplitPanel.setStretch(leftHandler.stackedPanel, 0);\n SplitPanel.setStretch(downPanel, 0);\n SplitPanel.setStretch(dockPanel, 1);\n SplitPanel.setStretch(rightHandler.stackedPanel, 0);\n BoxPanel.setStretch(leftHandler.sideBar, 0);\n BoxPanel.setStretch(hsplitPanel, 1);\n BoxPanel.setStretch(rightHandler.sideBar, 0);\n SplitPanel.setStretch(vsplitPanel, 1);\n hsplitPanel.addWidget(leftHandler.stackedPanel);\n hsplitPanel.addWidget(dockPanel);\n hsplitPanel.addWidget(rightHandler.stackedPanel);\n vsplitPanel.addWidget(hsplitPanel);\n vsplitPanel.addWidget(downPanel);\n hboxPanel.addWidget(leftHandler.sideBar);\n hboxPanel.addWidget(vsplitPanel);\n hboxPanel.addWidget(rightHandler.sideBar);\n rootLayout.direction = 'top-to-bottom';\n rootLayout.spacing = 0; // TODO make this configurable?\n // Use relative sizing to set the width of the side panels.\n // This will still respect the min-size of children widget in the stacked\n // panel. The default sizes will be overwritten during layout restoration.\n vsplitPanel.setRelativeSizes([3, 1]);\n hsplitPanel.setRelativeSizes([1, 2.5, 1]);\n BoxLayout.setStretch(headerPanel, 0);\n BoxLayout.setStretch(menuHandler.panel, 0);\n BoxLayout.setStretch(topHandler.panel, 0);\n BoxLayout.setStretch(hboxPanel, 1);\n BoxLayout.setStretch(bottomPanel, 0);\n rootLayout.addWidget(headerPanel);\n rootLayout.addWidget(topHandler.panel);\n rootLayout.addWidget(hboxPanel);\n rootLayout.addWidget(bottomPanel);\n // initially hiding header and bottom panel when no elements inside,\n this._headerPanel.hide();\n this._bottomPanel.hide();\n this._downPanel.hide();\n this.layout = rootLayout;\n // Connect change listeners.\n this._tracker.currentChanged.connect(this._onCurrentChanged, this);\n this._tracker.activeChanged.connect(this._onActiveChanged, this);\n // Connect main layout change listener.\n this._dockPanel.layoutModified.connect(this._onLayoutModified, this);\n // Connect vsplit layout change listener\n this._vsplitPanel.updated.connect(this._onLayoutModified, this);\n // Connect down panel change listeners\n this._downPanel.currentChanged.connect(this._onLayoutModified, this);\n this._downPanel.tabBar.tabMoved.connect(this._onTabPanelChanged, this);\n this._downPanel.stackedPanel.widgetRemoved.connect(this._onTabPanelChanged, this);\n // Catch current changed events on the side handlers.\n this._leftHandler.sideBar.currentChanged.connect(this._onLayoutModified, this);\n this._rightHandler.sideBar.currentChanged.connect(this._onLayoutModified, this);\n // Catch update events on the horizontal split panel\n this._hsplitPanel.updated.connect(this._onLayoutModified, this);\n // Setup single-document-mode title bar\n const titleHandler = (this._titleHandler = new Private.TitleHandler(this));\n this.add(titleHandler, 'top', { rank: 100 });\n if (this._dockPanel.mode === 'multiple-document') {\n this._topHandler.addWidget(this._menuHandler.panel, 100);\n titleHandler.hide();\n }\n else {\n rootLayout.insertWidget(2, this._menuHandler.panel);\n }\n // Skip Links\n const skipLinkWidget = (this._skipLinkWidget = new Private.SkipLinkWidget(this));\n this.add(skipLinkWidget, 'top', { rank: 0 });\n this._skipLinkWidget.show();\n // Wire up signals to update the title panel of the simple interface mode to\n // follow the title of this.currentWidget\n this.currentChanged.connect((sender, args) => {\n let newValue = args.newValue;\n let oldValue = args.oldValue;\n // Stop watching the title of the previously current widget\n if (oldValue) {\n oldValue.title.changed.disconnect(this._updateTitlePanelTitle, this);\n }\n // Start watching the title of the new current widget\n if (newValue) {\n newValue.title.changed.connect(this._updateTitlePanelTitle, this);\n this._updateTitlePanelTitle();\n }\n if (newValue && newValue instanceof DocumentWidget) {\n newValue.context.pathChanged.connect(this._updateCurrentPath, this);\n }\n this._updateCurrentPath();\n });\n }", "bindActions() {\n\t\t// @props\n\t\t// onComplete\n\t\t// buttons\n\t\t// cancelIndex\n\t\t// title\n\t\t// &\n\t\t// this will be an abstraction\n\t\t// so we don't have to worry about\n\t\t// changing props AND showing\n\t\t// the action sheet within other\n\t\t// parts of the app\n\t\t// the action sheet will be shown\n\t\t// after required props have been mounted \n\t\t// to the component\n\t\tActions.ActionSheet = props => this.fromGlobalActionSheet(props)\n\t}", "constructor(props){\n\t\tsuper(props);\n\n\t\tthis.ctx = null;\n\t\tthis.canvas = null;\n\t\tthis.endpoint = `${environment.middleware.protocol}://${environment.middleware.endpoint}:${environment.middleware.port}`;\n\t\tthis.websocket = new WebSocket(this.endpoint);\n\t\t\n\t\tthis.serializer = new Serializer('json'); //json or protobuf\n\n\t\tthis.commands = [];\n\n\t\t//protobuf commands\n\t\tthis.touchDown = null;\n\t\tthis.touchMove = null;\n\t\tthis.touchUp = null;\n\t\tthis.touchCommit = null;\n\t\tthis.touchReset = null;\n\n\t\tthis.pressure = null;\n\n\t\t//State will be done with Redux when moved to MCB\n\t\tthis.state = {\n\t\t\tswiping: false,\n\t\t\tfocused: false,\n\t\t\tshiftDown: false,\n\t\t\tdevice: {\n\t\t\t\twidth: null,\n\t\t\t\theight: null,\n\t\t\t\tmaxX: null,\n\t\t\t\tmaxY:null,\n\t\t\t\tmaxContacts: null,\n\t\t\t\tmaxPressure: null\n\t\t\t}\n\t\t};\n\t}", "function App() {\n return (\n\n \n <div className=\"App\">\n <Top /> \n \n <CardDeck className=\"pt-5 mt-5 size mx-auto my-auto\">\n <Sidesmall />\n <Side>\n <ul className=\"channel-list\">\n <li />\n <li />\n </ul>\n\n </Side>\n <Chat /><Sideright />\n\n \n </CardDeck>\n <Footer /> \n \n </div>\n \n );\n}", "function App() {\n\n return (\n <div className=\"App\">\n {/* <BaiTapDanLayout /> */}\n {/* <DataBinding /> */}\n {/* <EventBinding /> */}\n {/* <State /> */}\n {/* <ExState /> */}\n {/* <ExState2 /> */}\n {/* <RenderWithMap /> */}\n {/* <DemoProps /> */}\n {/* <BT2ProductList productData={dataJson}/> */}\n {/* <BT3PhoneList /> */}\n {/* <BTCart /> */}\n {/* <TodoApp /> */}\n {/* <CartsRedux /> */}\n <StudentManagementForm />\n {/* <LifeCycle /> */}\n </div>\n );\n}", "render() {\n return (\n <div>\n <Container>\n <LanguageStore>\n <LanguageSelector />\n <ColorContext.Provider value=\"facebook\">\n <UserCreate />\n </ColorContext.Provider>\n </LanguageStore>\n </Container>\n </div>\n );\n }", "function App() {\n return (\n <div className=\"App\">\n {/* <Hoek /> */}\n {/* <Ani /> */}\n {/* <IntervalTimer /> */}\n {/* <DataFetching /> */}\n {/* <Counter /> */}\n {/* <FetchData /> */}\n {/* <FocusInput /> */}\n {/* <HookTimer /> */}\n <DocOne />\n <DocTwo />\n {/* <HookCount /> */}\n {/* <div>Derek</div> */}\n </div>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n {/* <BaiTapLayout1 />\n {/* <BaiTapThucHanhLayout /> */}\n {/* < Databinding /> */}\n {/* <Styles /> */}\n {/* <HandleEvent /> */}\n {/* <StateDemo /> */}\n {/* <BaiTapChonXe /> */}\n {/* <RenderWithMap /> */}\n {/* < BaiTapLayoutMap /> */}\n <DanhSachSanPhamProps />\n </div>\n );\n}", "render() { \n // this.context; \n return (\n <CounterContext.Consumer>\n {count => {\n return( <TodosContext.Consumer>\n { todos => {\n console.log(todos.todos)\n return(\n <div>\n <h1>Class Counter</h1>\n <h3>Class Count is {count.count} </h3>\n </div>\n\n )\n }\n\n }\n </TodosContext.Consumer>\n )\n }}\n\n </CounterContext.Consumer>\n );\n }", "function useDocusaurusContext(){return Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useContext\"])(_context__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"a\"]);}", "constructor(settings, cb) {\n this.settings = settings || {};\n this.languageManager = new Language();\n this.setDefaultSettings();\n this.observers = {};\n this.builder = builder;\n this.createStorage();\n this.createTemplate();\n this.createConnector();\n this.createBot();\n this.createObservers();\n this.createRenderFactory();\n this.cardManager = new FlowRequireManager({ logger: settings.logger, pattern: '*.json' });\n this.actionManager = new FlowRequireManager({ logger: settings.logger, pattern: '*.js' });\n this.dialogManager = new FlowRequireManager({ logger: settings.logger, pattern: '*.flow' });\n this.pluginManager = new FlowRequireManager({ logger: settings.logger, pattern: '*.js'});\n this.createCards(function(err) {\n if (err) {\n this.log('error', err);\n }\n this.log('info','now will load plugins');\n this.createPlugins(function(err) {\n if (err) {\n this.log('error', err);\n }\n this.log('info', 'now will load actions');\n this.createActions(function(err) {\n if (err) {\n this.log('error', err);\n }\n this.createDialogs(function(err) {\n if (err) {\n this.log('error', err);\n }\n this.buildDialogs();\n if (this.constructorMethod) {\n this.constructorMethod.method.bind(this)(function(err){\n if (err) {\n this.log('error', err);\n }\n if (cb) {\n cb();\n }\n });\n } else {\n if (cb) {\n cb();\n }\n }\n }.bind(this));\n }.bind(this));\n }.bind(this));\n }.bind(this));\n }", "function setup(args, ctx) {\n}", "function App() {\n return (\n <Provider store={store}>\n <div className=\"App\">\n <CounterApp />\n </div>\n </Provider>\n );\n}", "initialize(config) {\r\n this.context = config.context;\r\n }", "initialize(config) {\n this.context = config.context;\n }", "initialize(config) {\n this.context = config.context;\n }", "initialize(config) {\n this.context = config.context;\n }", "initialize(config) {\n this.context = config.context;\n }", "initialize(config) {\n this.context = config.context;\n }", "initialize(config) {\n this.context = config.context;\n }", "function loadHook() {\n targetBlank();\n bindEnqueue();\n bindIndexButtons();\n}", "function setup(args, ctx) {\n ctx.worldData.isReset = true;\n setTimeout(() => {\n var toolbox = ctx.worldData.levels[ctx.worldData.currentLevel].toolbox;\n\n workspace = Blockly.inject(\"blocklyDiv\", {\n toolbox: document.getElementById(toolbox)\n });\n\n workspace.addChangeListener(Blockly.Events.disableOrphans);\n Blockly.Xml.domToWorkspace(\n document.getElementById(\"startBlocks\"),\n workspace\n );\n Blockly.JavaScript.STATEMENT_PREFIX = \"highlightBlock(%1);\\n\";\n Blockly.JavaScript.addReservedWords(\"highlightBlock\");\n\n ctx.runCode = function(evt) {\n runCode(ctx);\n };\n ctx.levelChanged = function(evt) {\n levelChanged(ctx);\n };\n ctx.startGame = function(evt) {\n startGame();\n };\n ctx.onChange = function(evt) {\n onChange(ctx);\n };\n ctx.showInstructions = function(evt) {\n showInstructions();\n };\n\n SystemBus.addListener(\"levelChanged\", ctx.levelChanged);\n SystemBus.addListener(\"showInstructions\", ctx.showInstructions);\n\n workspace.addChangeListener(ctx.onChange);\n\n document.addEventListener(\"contextmenu\", event => event.preventDefault());\n document.getElementById(\"btnRun\").addEventListener(\"click\", ctx.runCode);\n document\n .getElementById(\"btnStart\")\n .addEventListener(\"click\", ctx.startGame);\n\n ctx.worldData.numOfBlocks = workspace.getAllBlocks().length - 1;\n document.getElementById(\"numOfBlocks\").innerText =\n ctx.worldData.numOfBlocks;\n document.getElementById(\"maxBlocks\").innerText =\n ctx.worldData.levels[ctx.worldData.currentLevel].blocks;\n\n showCode();\n });\n}", "function activate(context) {\n\n // Use the console to output diagnostic information (console.log) and errors (console.error)\n // This line of code will only be executed once when your extension is activated\n console.log('Congratulations, your extension \"youdao-translator\" is now active!');\n // The command has been defined in the package.json file\n // Now provide the implementation of the command with registerCommand\n // The commandId parameter must match the command field in package.json\n var disposable = vscode.commands.registerCommand('extension.youdaoTranslate', function () {\n // The code you place here will be executed every time your command is executed\n var editor = vscode.window.activeTextEditor;\n\n if (!editor) {\n return console.log('no open text editor!');\n }\n\n var selection = editor.selection;\n var text = editor.document.getText(selection);\n\n if (!text) return;\n text = encodeText(text);\n var url = api + text;\n\n if (cache[text]) return result(cache[text], url);\n \n request.get(url, function (err, res, body) {\n if (err) return result('错误:' + err.message, url);\n try {\n // 单词\n // <h2 class=\"wordbook-js\">...<div class=\"trans-container\">...</div>\n var msg = body.replace(\n /^[\\s\\S]*<h2 class=\"wordbook-js\">([\\s\\S]*?)<div\\s+class=\"trans-container\">([\\s\\S]*?)<\\/div>[\\s\\S]*$/g,\n '$1###$2'\n );\n if (msg !== body) {\n msg = msg.replace(/<\\/?\\s?[^>]+>/g, '').replace(/\\s+/g, ' ').replace('###', \"\\n\").trim();\n cache[text] = msg;\n return result(msg, url, text);\n }\n // 句子\n // <div id=\"fanyiToggle\">...</div>\n msg = body.replace(\n /^[\\s\\S]*<div id=\"fanyiToggle\">([\\s\\S]*?)<\\/div>[\\s\\S]*$/g,\n '$1'\n );\n if (msg !== body) {\n msg = msg.replace(/<\\/p>/g, '###').replace(/<\\/?\\s?[^>]+>/g, '')\n .replace(/\\s+/g, ' ').replace(/###/g, \"\\n\")\n .replace(/以上为机器翻译结果,长、整句建议使用 人工翻译.*/g, '')\n .trim();\n cache[text] = msg;\n return result(msg, url);\n }\n return result('错误:匹配翻译内容失败', url);\n\n } catch (e) {\n return result('错误:' + e.message, url);\n }\n\n });\n\n });\n\n context.subscriptions.push(disposable);\n hover();\n}", "function get_context()\n\t{\n\t\treturn os_ctx;\n\t\t//return ctx;\n\t}", "function activate(context) {\n\n // Use the console to output diagnostic information (console.log) and errors (console.error)\n // This line of code will only be executed once when your extension is activated\n console.log('Congratulations, your extension \"pokemon-code\" is now active!');\n\n // The command has been defined in the package.json file\n // Now provide the implementation of the command with registerCommand\n // The commandId parameter must match the command field in package.json\n var disposable = vscode.commands.registerCommand('extension.startPokemonCode', function () {\n // The code you place here will be executed every time your command is executed\n\n init_tallgrass();\n\n // Display a message box to the user\n vscode.window.showInformationMessage('Your Pokemon journey has begun!', {});\n\n });\n\n var disposable2 = vscode.commands.registerCommand('extension.showPokemon', function () {\n // The code you place here will be executed every time your command is executed\n\n show_pokemon();\n\n });\n\n var disposable3 = vscode.commands.registerCommand('extension.showInventory', function () {\n // The code you place here will be executed every time your command is executed\n\n show_inventory();\n\n });\n\n context.subscriptions.push(disposable);\n context.subscriptions.push(disposable2);\n context.subscriptions.push(disposable3);\n}", "haxHooks() {\n return {\n editModeChanged: \"haxeditModeChanged\",\n activeElementChanged: \"haxactiveElementChanged\",\n };\n }", "haxHooks() {\n return {\n editModeChanged: \"haxeditModeChanged\",\n activeElementChanged: \"haxactiveElementChanged\",\n };\n }", "constructor() {\n super();\n this.loadContext();\n }", "function Home() {\n\n\n\n// const {inicioSesion} = useContext(userContext);\n return (\n <>\n <Navbar></Navbar>\n <Dashboard/>\n </>\n )\n}", "initContext (mode) {\n this._screenDispatcher = new ScreenDispatcher(constant.SCR_INITIAL)\n this._screenDispatcher.register(constant.SCR_INITIAL, new InitialScreen())\n this._screenDispatcher.register(constant.SCR_SELECT_MODE, new SelectModeScreen())\n this._screenDispatcher.register(constant.SCR_PLAYING, new PlayingScreen())\n this._screenDispatcher.register(constant.SCR_GAMEOVER, new GameOverScreen())\n this._needleSelection = new NeedleSelection()\n this._threadSelection = new ThreadSelection()\n this._gameOverSelection = new GameOverSelection()\n this._pauseSelection = new PauseSelection()\n this._pressStartSelection = new PressStartSelection()\n this._initialTransparentRect = new InitialTransparentRect()\n this._levelUpSelection = new LevelUpSelection()\n this._selectModeScreenSelection = new SelectModeScreenSelection()\n this._statusSelection = new StatusSelection(mode)\n\n this._ctx = this._getInitVars(mode)\n this._statusSelection.setMode(mode)\n this._prevUpdatedTime = Date.now()\n this._selectedMode = mode\n }", "function App() {\n return (\n <div className=\"App\">\n <h3>Redux toolkit</h3>\n <Counter/>\n </div>\n );\n}", "extend(config, ctx) {\n \n }", "extend(config, ctx) {\n \n }", "render() {\n return (\n <div class=\"reduxBase\">\n <Provider store={store}>\n <ReduxCounter></ReduxCounter>\n </Provider>\n </div>\n );\n }", "pruebaContext({ rootState }, width) {\n console.log(\" PRUEBA DE CONTEXT \", rootState.mainLayoutType);\n\n }", "function App() {\n return (\n <div className=\"App\">\n <header className=\"App-header\">\n {/* <img src={logo} className=\"App-logo\" alt=\"logo\" /> */}\n {/*Componente propio Greting.jsdx y funcional F */}\n {/* <Greeting name='Clemen'></Greeting> */}\n {/* <Greetingf name=\"Clemente\"></Greetingf> */}\n <TaskListComponent></TaskListComponent>\n {/* Ejemplo de uso de hooks */}\n {/* <Ejemplo1></Ejemplo1> */}\n {/* <Ejemplo2></Ejemplo2> */}\n {/* <Ejemplo3></Ejemplo3> */}\n {/* <MiComponenteConContexto></MiComponenteConContexto> */}\n {/* <Ejemplo4 nombre=\"Clemen\">\n // Todo lo que hay aqui, es tratado como props.children \n <h3>\n Contenido del props.children\n </h3>\n </Ejemplo4> */}\n {/* <GrettingStyled name=\"Clemen\"></GrettingStyled> */}\n </header>\n </div>\n );\n}", "render() {\n return (\n <div className=\"ui container\">\n <LanguageStore>\n <LanguageSelector />\n <ColorContext.Provider value=\"primary\">\n <UserCreate />\n </ColorContext.Provider>\n </LanguageStore>\n </div>\n )\n }", "_reflow() {\n this._init();\n }", "function activate(context) {\n const rootPath = vscode.workspace.rootPath;\n const configPath = path.join(rootPath, \"reactION-config.json\");\n const setup = {};\n setup.system = process.platform;\n // Setting the executable path on config file based on user's OS.\n switch (setup.system) {\n // For iOS environment.\n case 'darwin':\n setup.executablePath = '/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome';\n break;\n // For Linux environment.\n case 'linux':\n setup.executablePath = '';\n vscode.window.showInformationMessage('Please specify your Chrominum executablePath in reactION.config.json file created in your local directory.');\n break;\n // For Window 10 environment.\n case 'win32':\n setup.executablePath = 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe';\n break;\n default:\n vscode.window.showInformationMessage('Current Operating System is not supported.');\n }\n setup.localhost = 'localhost:3000';\n setup.headless_browser = false;\n setup.headless_embedded = true;\n setup.reactTheme = 'dark';\n fs.stat(configPath, (err, stats) => {\n if (err) {\n console.log(err);\n }\n if (!stats) {\n fs.writeFileSync(configPath, JSON.stringify(setup, null, '\\t'));\n }\n else {\n // else read off and apply config to the running instance\n parseInfo = JSON.parse(fs.readFileSync(configPath));\n }\n });\n context.subscriptions.push(vscode.commands.registerCommand('ReactION.openTree', () => {\n ViewPanel_1.default.createOrShow(context.extensionPath, parseInfo);\n }));\n context.subscriptions.push(vscode.commands.registerCommand('ReactION.openWeb', () => {\n EmbeddedViewPanel_1.default.createOrShow(context.extensionPath, parseInfo);\n }));\n vscode.window.registerTreeDataProvider('startExtension', new StartExtensionProvider_1.default());\n}", "function LeftBar() {\n //const context = useContext(AppContext)\n \n return (\n <div>\n <h6>Tips for starting a campaign</h6>\n <ul>\n <li><a href=\"https://support.gofundme.com/hc/en-us/articles/203604494-6-Steps-to-a-Successful-Campaign\">6 Steps to a Successful Campaign </a> </li>\n <li><a href=\"https://support.gofundme.com/hc/en-us/articles/115011597367-How-to-Write-a-GoFundMe-Story-in-5-Easy-Steps\">Writing a GoFundMe Campaign </a> </li>\n <li><a href=\"https://www.gofundme.com/c/fundraising-tips/sharing\">25 Fundraiser Sharing Tips to Increase Donations </a> </li>\n <li><a href=\"https://www.quora.com/How-can-you-run-a-massively-successful-Go-Fund-Me-page\">How to run a massively successful Go Fund Me page </a> </li>\n <li><a href=\"https://medium.com/gofundme-stories/campaign-tips-from-7-top-gofundme-organizers-870de6682c44\">Fundraising Tips From 7 Top GoFundMe Organizers </a> </li>\n <li><a href=\"https://www.facebook.com/notes/gofundme-fundraising/starting-a-successful-gofundme-top-fundraising-tips/10157638809223550/\">Starting a Successful GoFundMe: Top Fundraising Tips </a> </li>\n <li><a href=\"https://support.gofundme.com/hc/en-us/articles/360001992627-Creating-a-GoFundMe-From-Start-to-Finish-\">Creating a GoFundMe From Start to Finish </a> </li>\n </ul>\n </div>\n );\n}", "function Xie(e){let{basename:t,children:r,window:n}=e,i=T.exports.useRef();i.current==null&&(i.current=Cie({window:n,v5Compat:!0}));let a=i.current,[o,l]=T.exports.useState({action:a.action,location:a.location});return T.exports.useLayoutEffect(()=>a.listen(l),[a]),R(Yie,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a})}", "function init(){\n buildComponent();\n attachHandlers();\n addComponents();\n }" ]
[ "0.65954447", "0.6262957", "0.62339205", "0.6203804", "0.6031257", "0.59684414", "0.5920189", "0.5849903", "0.58327913", "0.58259284", "0.5818412", "0.5815311", "0.5801055", "0.5776937", "0.5754485", "0.5722362", "0.5694953", "0.56917197", "0.5671994", "0.5655382", "0.56480134", "0.56480134", "0.5619919", "0.5619919", "0.5619919", "0.56196153", "0.5590319", "0.5588465", "0.5575885", "0.5549378", "0.55492795", "0.5547467", "0.55413544", "0.55408657", "0.5539732", "0.55352104", "0.55290693", "0.552775", "0.55211556", "0.5512582", "0.5494986", "0.54937416", "0.54863054", "0.54827833", "0.547149", "0.54702127", "0.54663336", "0.54633296", "0.54425544", "0.5435608", "0.54096323", "0.54082656", "0.54034066", "0.5392694", "0.5383424", "0.53833216", "0.5379646", "0.53743935", "0.5372205", "0.53712285", "0.5366166", "0.5362541", "0.535939", "0.53564936", "0.53557634", "0.53495973", "0.5348195", "0.53460276", "0.53335506", "0.5331419", "0.53307414", "0.5327854", "0.53165764", "0.53136915", "0.53136915", "0.53136915", "0.53136915", "0.53136915", "0.53136915", "0.5311062", "0.5309732", "0.5308076", "0.53069913", "0.53066665", "0.5305971", "0.5305971", "0.52991146", "0.5292471", "0.5290815", "0.52898234", "0.52882546", "0.52882546", "0.52871644", "0.5284449", "0.52821857", "0.52748394", "0.5273058", "0.5271474", "0.52681464", "0.5260805", "0.5258078" ]
0.0
-1
show loadig mask on modal before form submission;
function maskModal($maskTarget) { var padding = $maskTarget.height() - 80; if (padding > 0) { padding = Math.floor(padding / 2); } $maskTarget.append("<div class='modal-mask'><div class='circle-loader'></div></div>"); //check scrollbar var height = $maskTarget.outerHeight(); $('.modal-mask').css({"width": $maskTarget.width() + 30 + "px", "height": height + "px", "padding-top": padding + "px"}); $maskTarget.closest('.modal-dialog').find('[type="submit"]').attr('disabled', 'disabled'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadSubmitForm() {\n $(\".modal\").css(\"display\", \"block\");\n}", "function showPopupFormular() {\r\n $(\"#\" + global.Element.PopupFormular).modal(\"show\");\r\n }", "function showLoadingGifOnFormSubmit(){\r\n\t$(\"form\").on('submit',function(){$(\".se-pre-con\").show();});\r\n}", "function showPopupElementFormular() {\r\n $(\"#\" + global.Element.PopupElementFormular).modal(\"show\");\r\n }", "loading() {\n this.modal.jQueryModalFade.addClass('modal_fade_trick');\n this.modal.jQueryModalAwait.css('display', 'block');\n this.modal.jQueryModalWindow.css('display', 'none');\n }", "function showModal() {\n setVisible(true);\n setSignUp(false);\n }", "function addTaskForm() \n{\n $(document).ready(function() {\n $(\"#add-error-bag\").hide();\n $('#addTaskModal').modal('show');\n });\n}", "function formAppear() {\r\n overlay.style.visibility = 'visible';\r\n }", "function showLoading() {\n $('#modalLoading').show();\n}", "function nuvoInscPreli(){ \n $(\".modal-title\").html(\"Nueva incripción\"); \n $('#formIncPreliminar').modal('show');\n}", "function formModalRelatorio() {\n console.log(\"www\");\n //$('#formModalRelatorio').modal();\n}", "function fnPluginTaskShowAdvancedSearchForm() {\n\t//Fade in the Popup\n\t$(\"#modal-box\").fadeIn(300);\n\t$(\"#cbxFolderList\").focus();\n\n\ttry {\n\t\t$(\"#cbxFolderList\").val(marknotes.search.restrict_folder);\n\t} catch (e) {\n\t} finally {\n\t}\n\n\t// Set the center alignment padding + border see css style\n\tvar popMargTop = ($(\"#modal-box\").height() + 24) / 2;\n\tvar popMargLeft = ($(\"#modal-box\").width() + 24) / 2;\n\n\t$(\"#modal-box\").css({\n\t\t\"margin-top\": -popMargTop,\n\t\t\"margin-left\": -popMargLeft\n\t});\n\n\t// Add the mask to body\n\t$(\"body\").append('<div id=\"mask\"></div>');\n\t$(\"#mask\").fadeIn(300);\n\n\t$(\"#modal-box .submit\").click(function(e) {\n\t\t$(\"#mask, .modal-popup\").fadeOut(300, function() {\n\t\t\t$(\"#mask\").remove();\n\t\t});\n\n\t\t$(\"#search_folder\").prop(\n\t\t\t\"checked\",\n\t\t\tmarknotes.search.restrict_folder !== \".\"\n\t\t);\n\n\t\tfnPluginTaskSearch_resetSearchURL();\n\t});\n}", "function unmaskModal() {\n var $maskTarget = $(\".modal-body\");\n $maskTarget.closest('.modal-dialog').find('[type=\"submit\"]').removeAttr('disabled');\n $(\".modal-mask\").remove();\n }", "function showForm(frm){\n\t\tdocument.getElementById(\"divBgModal\").style.display=\"block\";\n\t\tfrm.style.display=\"block\";\t\n\t}", "function displayModalForm() {\n modalBackground.classList.remove('fadeOut');\n modalBackground.classList.add('fadeIn');\n }", "function MUP_Open(){\n //console.log(\" ----- MUP_Open ----\")\n\n // --- show modal\n $(\"#id_mod_upload_permits\").modal({backdrop: true});\n } // MUP_Open", "function showModal() {\n $('#modal-container').show(\"fold\", 1000);\n}", "function showLoadingModal() {\n $(\"#LoadingModal\").modal(\"show\");\n}", "function initFormValidationModal() {\n $('#formValidationModal').modal();\n}", "function show() {\n loadingModal.show();\n }", "function setInlineEmailFormLoading() {\n $('#email-sending-icon').show();\n}", "function modalShown(o){\n\t\t/*\n\t\tif(o.template){\n\t\t\t//show spinner dialogue\n\t\t\t//render o.template into o.target here\n\t\t}\n\t\t*/\n\t\tsaveTabindex();\n\t\ttdc.Grd.Modal.isVisible=true;\n\t}", "function showConfirmForm(animate) {\n $('input[name=accept]').val('Allow');\n $('.secondary_form').css({visibility:\"visible\"})\n $('.initial_form').hide();\n\n if(animate)\n $('.initial_form, .secondary_form').addClass('animated')\n else\n $('.initial_form, .secondary_form').removeClass('animated')\n\n $('form').addClass('confirm');\n $('section').addClass('confirm');\n\n $('input[name=email]').focus();\n \n }", "function attShowModal() {\n setShowModal(!showModal);\n }", "function showModal() {\n\t\t \tvar action = $(\"#myModal\").attr(\"action\");\n\t\t \n\t\t \tif (action == 'update' || action == 'create') {\n\t\t \t\t$(\"#myModal\").modal(\"show\");\n\t\t \t}\n\t\t \t\n\t\t \tshowContractEndDateSelect();\n\t\t \tshowHidePassword();\n\t\t \tshowHideConfirmPassword();\n\t\t }", "function modalCheque()\n{\n $('#agregar_cheque').modal('show');\n}", "function showThanks() {\n\t\t\t$(\"#IP-head-reg\").modal('hide');\n\t\t\t$('#post-sub').modal('show');\n\t\t}", "customShowModalPopup() { \n this.customFormModal = true;\n }", "function loadSignUpModal\n(\n)\n{\n $('#signUpModal').clearForm();\n isFbisLoggedin();\n $('#signUpModal').modal('show');\n signUpValidation();\n}", "function openForm() {\n setTimeout(function () {\n document.querySelector(\".bg-modal\").style.display = \"flex\";\n }, 250);\n}", "function get_form_new_poste(){\n\t$.get(\n base_url + 'index.php/adm/contacts_postes_load_form',\n {nohtml:'nohtml'},\n function(data){\n $(\"#modal-global-body\").html(data);\n } \n );\n $('#modal-global-label').html('<i class=\"fa fa-suitcase\"></i>&nbsp;&nbsp;Nouveau poste');\n $('#modal-global').modal('show');\n}", "function loadPrijavaForm() {\n $(\"#btns\").addClass(\"hidden\");\n $(\"#registracijaDiv\").addClass(\"hidden\");\n $(\"#uspesna_registracija\").addClass(\"hidden\");\n $(\"#loginDiv\").css(\"display\", \"block\"); \n $(\"#loginEmail\").val('');\n $(\"#loginPass\").val('');\n }", "function showForm(){\n form.reset();\n background.classList.add(\"transparent\")\n addBookForm.classList.remove(\"form--hidden\");\n }", "function showForgetModal() {\r\n $(\"#myModal\").modal(\"show\");\r\n}", "function loadingStatus() {\n\n //get rid of previous messages\n clearFormStatus();\n \n //add the message with a pulsing spinner, thanks font awesome!\n $(\"#myModalLabel\").html('Sending ' + '<i class=\"fa fa-spinner fa-pulse fa-lg\"></i>');\n}", "function openNewRatingForm() {\n $('#newRatingModal').modal('show');\n}", "function loadSignInModal\n(\n)\n{ \n $('#signInModal').clearForm();\n $('#signInModal').modal('show');\n signInValidation();\n}", "showForm(){\n //close settings\n this.#btnClose.addEventListener('click', ()=> this.#animations.outputAnimation(this.#bg, this.#container, 'own-settings--hidden'));\n //input animation of container\n this.#animations.inputAnimation(this.#bg, this.#container, 'own-settings--hidden');\n }", "function showNotifValid() {\n modalBg.style.display = 'none';\n thxBg.style.display = 'block';\n}", "function invalidInput() {\n jQuery.noConflict();\n $(\"#invalidModal\").modal('show');\n }", "function AbrirModalnuevo(){\n $(\"#nuevo\").modal('show');\n}", "function modalFormSK(){\n\n clearFormSK();\n\n $('#modal_data_sk').modal('show');\n\n $('#modal_data_sk').on('shown.bs.modal', function() {\n\n $(\"#txt_sktugas_no\").focus();\n })\n}", "function showRegForm()\r\n\t{\r\n\t\t$(\".formDiv\").show();\r\n\t\t$(\".backDiv\").css(\"display\",\"block\");\r\n\r\n\t}", "function setModal() {\n $('.overlay').fadeIn('slow');\n $('.modal').slideDown('slow');\n }", "function modalRegistrar() {\n sent = false;\n $('#r_centrocmodal').modal({ backdrop: 'static', keyboard: false });\n $('#r_rowEmpleado').hide();\n}", "function openFormEditKienNghi() {\n showLoadingOverlay(modalIdKienNghi + \" .modal-content\");\n $.ajax({\n type: \"GET\",\n url: editKienNghiUrl,\n data: {\n id: HoSoVuAnID\n },\n success: function (response) {\n $(modalIdKienNghi + \" .modal-content\").html(response);\n\n hideLoadingOverlay(modalIdKienNghi + \" .modal-content\");\n }\n });\n }", "function modal_prestamo() \r\n{\r\n $('#modal_prestamo').modal('toggle');\r\n /*Reiniciar formulario*/\r\n document.getElementById('frm_add_prestamo').reset();\r\n return false;\r\n}", "function show() {\n $('.form-group').show();\n $('#time').show();\n $('#done').show();\n}", "function showForm(name) {\n $('#signinmodal form').hide();\n $('#' + name + '-signin').show();\n}", "function success(){\r\n document.querySelector(\".modal-bg\").style.display = \"none\";\r\n document.querySelector(\".success-bg\").style.display = \"flex\";\r\n}", "function ShowModalForm(modal_id){\n console.log(modal_id.data);\n var btn = $(this);\n\n $.ajax({\n url: btn.attr(\"data-url\"),\n \n type: 'get',\n\n dataType: 'json',\n\n beforeSend: function () {\n \n $(modal_id.data).modal('show');\n \n },\n\n success: function (data) {\n \n $(modal_id.data + ' .modal-content').html(data.html_form);\n }\n });\n }", "function warn() {\n modal.style.display = 'block';\n}", "function show() {\n $$invalidate('modalIsVisible', modalIsVisible = true);\n }", "function showModal() {\n $(\"#exampleModal\").modal();\n }", "function showModal() {\n\tvar btnShowModal = $('.button-show-modal');\n\tif (btnShowModal.length > 0) {\n\t\tbtnShowModal.bind('click', function(e) {\n\t\t\te.preventDefault();\n\t\t\tvar modalTarget = $(this).data('target-modal');\n\t\t\tvar package = $(this).data('option');\n\n\t\t\tif (modalTarget.length > 0) {\n\t\t\t\t$(modalTarget).addClass('show');\n\n\t\t\t\tif ($(modalTarget).hasClass('show')) {\n\t\t\t\t\tchangeValueOptionInForm(package);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n}", "function showSignInModal() {\n\tsigninModal.style.display = 'block';\n}", "function showModal(message) {\n\t\tvar modal = $(\"#modal\")[0];\n\t\tmodal.style.display = \"block\";\n\t\tmodal.onclick = function () {\n\t\t\tmodal.style.display = \"none\";\n\t\t}\n\t\tvar html = \"<div id='modal-content'>\";\n\t\thtml += \"<h3>\";\n\t\thtml += \"Please fix the parts of this form highlighted in red.\";\n\t\thtml += \"</h3>\";\n\t\thtml += \"<p>\";\n\t\thtml += message;\n\t\thtml += \"</p>\";\n\t\thtml += \"</div>\";\n\t\tmodal.innerHTML = html;\n}", "function showSignUpModal() {\n\tsignupModal.style.display = 'block';\n}", "function openContactForm() {\n var contactForm = document.getElementById(\"myModal\")\n contactForm.style.display = \"block\";\n}", "function showModal() {\n debug('showModal');\n if (!modal.ready) {\n initModal();\n modal.anim = true;\n currentSettings.showBackground(modal, currentSettings, endBackground);\n } else {\n modal.anim = true;\n modal.transition = true;\n currentSettings.showTransition(modal, currentSettings, function(){endHideContent();modal.anim=false;showContentOrLoading();});\n }\n }", "function ShowModalPopup() {\n $find(\"mpe\").show();\n return false;\n}", "function showForm(form, time, date){\n\tform.style.opacity = \"1\";\n\tform.style.zIndex = \"4\";\n\n\tif(form === openedForm3){ //modael signup form\n\t\t\n\t\tuserTimeSpan.textContent = `זמן נוכחי: ${time} שניות`;\n\t\tuserDateSpan.textContent = `${date.getDate()}.${date.getMonth() + 1}.${date.getFullYear()}`;\n\t\t //using the phantom element for design\n\t\tbackground.style = \"width:100vw; height:110vh; z-index:3; background-color: rgba(233,197,81, 0.7); filter: blur(20px);position:absolute;\";\n\t\tdocument.body.insertBefore(background, topbar);\n\t\t\n\t}\n }", "function displayOverlay() {\n $(\"div.container\").css({\n opacity: .3,\n });\n $(\"div#submitted\").show();\n}", "function modalWindow() {\n $(\"#modal\").css('display', 'block');\n }", "function showModal() {\r\n\t\tdebug('showModal');\r\n\t\tif (!modal.ready) {\r\n\t\t\tinitModal();\r\n\t\t\tmodal.anim = true;\r\n\t\t\tcurrentSettings.showBackground(modal, currentSettings, endBackground);\r\n\t\t} else {\r\n\t\t\tmodal.anim = true;\r\n\t\t\tmodal.transition = true;\r\n\t\t\tcurrentSettings.showTransition(modal, currentSettings, function(){endHideContent();modal.anim=false;showContentOrLoading();});\r\n\t\t}\r\n\t}", "function showNewProgramForm() {\n var url = \"includes/new_program_form.php\";\n var contentContainer = $('#injected-content');\n $('#main-content').hide();\n getData(url, injectContent, contentContainer);\n contentContainer.fadeIn();\n $('aside div').hide();\n $('aside div.cancel').fadeIn().css(\"display\",\"inline-block\");\n}", "function okOnGet(data, postFun){\r\n $(\"#\"+modal+\" .modal-body\").html(data.content);\r\n registerForm(postFun);\r\n $(\"#\"+modal).modal(\"show\");\r\n //mymodal.open();\r\n }", "function showmaskfade() {\n\n // Get window width\n var wid = windowwidth;\n\n // Get the current document height\n maskfadeheight = $(document).height();\n\n // Set sane minimum\n if(wid < minmaskfadewidth) \n wid = minmaskfadewidth;\n\n // Set css\n maskfade.css(\n {\n 'width':wid + 'px', \n 'height': maskfadeheight + maskfadebottommargin + 'px', \n 'opacity':maskfadeopacity, \n 'display':'block'\n }\n );\n\n // Set new maskfadewidth\n maskfadewidth = wid;\n }", "function showRes(){\n isShowLoginForm = !isShowLoginForm;\n if(isShowLoginForm){\n document.getElementById(\"modal\").style.display = \"flex\";\n document.getElementById(\"modallogin\").style.display = \"none\";\n } else {\n document.getElementById(\"modal\").style.display = \"none\";\n }\n \n}", "function show_modal() {\n \t$('#promoModal').modal();\n }", "function formEventHaveBeenSubmitted() {\n $('.event_not_yet').hide();\n $('.event_submitted').fadeIn();\n}", "function shown_bs_modal( /*event*/ ) {\n //Focus on focus-element\n var $focusElement = $(this).find('.init_focus').last();\n if ($focusElement.length){\n document.activeElement.blur();\n $focusElement.focus();\n }\n }", "function show_addprogram() {\n $('#addprogram').modal('show')\n}", "async function hideForm() {\n form.style.display = \"none\";\n grid.style.display = \"flex\";\n modal.style.display = \"block\";\n document.querySelectorAll(\".icon\")[1].style.display = \"inline-block\";\n\n Object.assign(human, compareDiet, compareHeight, compareWeight, randomFact);\n await GridOutput(getJSON());\n await ModalOutput(human);\n await factaOnHover();\n const images = document.querySelectorAll(\".grid-item>img\");\n images.forEach((item) =>\n item.addEventListener(\"click\", generateModalOnClick)\n );\n}", "function showFullPaymentFormTF(){\r\n $('#div-for-full').show('blind',1000);\r\n}", "function lockForm(){\n\t\t\t$scope.isLoading = true;\n\t\t}", "function runModal() {\r\n $(\"#myModal\").modal(\"show\");\r\n }", "function showAjaxWaiting() {\n\t\t// show the loading img\n\t\t$(\"#loadingImg\").show();\n\n\t\t// disable the submit button and show loadingimg\n\t\t$(\"#submit-button\").bind(\"click\", function(event) {\n\t\t\tevent.preventDefault();\n\t\t});\n\n\t\t// hide the error message\n\t\t$(\"#error\").hide();\n\t\t$(\"#noMatch\").hide();\n\t}", "function openModal(){\n $(\"#inputModal\").modal('show');\n}", "function apriModaleRicercaFattura() {\n var modale = $(\"#modaleRicercaFattura\");\n // Chiudo l'alert di errore\n alertErroriModale.slideUp();\n // Cancello tutti i campi\n modale.find(\":input\").val(\"\");\n // Apro il modale\n modale.modal(\"show\");\n }", "function abrirModalAlta(){\r\n cargaSelectAlta();\r\n $(\"#formularioAlta\").css(\"visibility\",\"visible\");\r\n $(\"#doc\").addClass(\"contenedorDesactivado\");\r\n}", "function start() {\n $('#myModal').modal('show');\n }", "function showForm() {\n form.style.visibility = 'visible'\n}", "function loadCreationForm() {\n /* Cacher le formulaire qui est déjà affiché, s'il y a lieu */\n $(\"#updateProjetForm\").hide(\"slide\", {direction: \"right\"}, 500);\n /* Afficher creationForm*/\n $(\"#creerProjetForm\").toggle(\"slide\", {direction: \"right\"}, 500);\n $(\"#creerProjetForm\").focus();\n}", "function successUpdate() {\n updateForm.style.display = \"none\";\n updateSuccessView.style.display = \"block\";\n setTimeout(closeUpdateModal, 1500);\n }", "function showARBFormDialog() {\n\tdocument.getElementById('arbpopupModal').style.display = \"block\";\n $(\"body\").addClass('sidebar-collapse').trigger('collapsed.pushMenu');\n\n}", "function aceptar()\n{\n $('#ok').hide();\n $('#button').hide();\n $('#loading').show();\n $('#esperar').modal('hide');\n}", "function formSender(){\r\n\t\t$('#form').submit(function(e) {\t\r\n\t\t\te.preventDefault();\r\n\t\t\t$(this).ajaxSubmit({ \r\n\t\t\t\ttarget: '#target', \r\n\t\t\t\tbeforeSubmit: function() {\r\n\t\t\t\t $('#form').css({backgroundColor:'rgba(83,50,83,0.2)', opacity:'0.3'}).prepend('<img src=\"img/loading.gif\" alt=\"...\" class=\"load\"/>');\r\n\t\t\t\t\t\r\n\t\t\t\t},\r\n\t\t\t\tsuccess:function (){\r\n\t\t\t\t\t$(\".load\").hide();\r\n\t\t\t\t\t$('#target').fadeIn(); //Show the target block\r\n\t\t\t\t\tstatus();\r\n\t\t\t\t\tcounter();\r\n\t\t\t\t\tresetForm();\r\n\t\t\t\t},\r\n\t\t\t\tresetForm: false\r\n\t\t\t}); \r\n\t\t\treturn false;\r\n\t\t});\r\n\t}", "function showLoading()\n{\n\t$chatlogs.append($('#loadingGif'));\n\t$(\"#loadingGif\").show();\n\n\t// $('#submit').css('visibility', 'hidden');\n\t// $('input').css('visibility', 'hidden');\n\n\t$('.chat-form').css('visibility', 'hidden');\n }", "function openOrCloseUpdateTaskForm() {\n const h2 = document.querySelector(\".container h2\");\n const submitInput = document.querySelector(`input[type=\"submit\"]`);\n\n if (modalOpen) {\n formContainer.style.pointerEvents = \"none\";\n formContainer.style.transform = \"scale(0)\";\n overlay.style.opacity = 0;\n modalOpen = false;\n } else {\n h2.textContent = \"Update Task\";\n submitInput.value = \"Update\";\n formContainer.style.pointerEvents = \"auto\";\n formContainer.style.transform = \"scale(1)\";\n overlay.style.opacity = 1;\n modalOpen = true;\n }\n}", "function enableForm() {\n $('#logo-footer').animate({ bottom: \"-100px\", opacity: '0'}, 0);\n $('#logo-footer').animate({bottom: \"0\", opacity: '1'}, 1000);\n }", "_showForm(mapPointer) {\r\n \r\n this.#mapEvent = mapPointer;\r\n form.classList.remove(\"hidden\");\r\n form.classList.add(\"animate__animated\", \"animate__fadeInDown\");\r\n distanceInp.focus();\r\n }", "function esconderModal() {\n\tmodal.style.display = 'none';\n}", "function get_form_edit_poste(pid){\n\t$.get(\n base_url + 'index.php/adm/contacts_postes_load_form/'+pid,\n {nohtml:'nohtml'},\n function(data){\n $(\"#modal-global-body\").html(data);\n } \n );\n $('#modal-global-label').html('<i class=\"fa fa-suitcase\"></i>&nbsp;&nbsp;Modification poste');\n $('#modal-global').modal('show');\n}", "function reactivateSubmit(form)\n{\n $(form).find('.processing_form_msg').html('Successfully saved!').css({'float':'none'}).show().pulse(false);\n $(form).find('.save_button').removeClass('in_use').parents('span').show();\n setTimeout(function() { $(form).find('.processing_form_msg').hide() }, 4000);\n}", "function showModalAwardEventForm(fk_award, fk_event){\n\n _resetAwardFieldForm();\n\n // Update\n if(fk_award != undefined && fk_event != undefined){\n\n _formAction = 'edit';\n\n $.post('/admin/abrasce-award/award-event/list', {fk_award:fk_award, fk_event:fk_event}, function(response){\n\n if(!response.success){\n toastr.error(data.message);\n return;\n }\n\n var data = response.data;\n\n // Populate form\n $('#formAwardEvent select[name=fk_award]').val(data.fk_award);\n $('#formAwardEvent input[name=fk_event]').val(data.fk_event);\n $('#formAwardEvent input[name=title]').val(data.title);\n $('#formAwardEvent input[name=billing_days_to_due]').val(data.billing_days_to_due);\n $('#formAwardEvent input[name=registration_price]').val(data.registration_price);\n\n // Date setup\n var dateBegin = moment(data.registration_date_begin);\n var dateEnd = moment(data.registration_date_end);\n $('#formAwardEvent input[name=registration_date_begin]').val(dateBegin.format('DD/MM/YYYY HH:mm'));\n $('#formAwardEvent input[name=registration_date_end]').val(dateEnd.format('DD/MM/YYYY HH:mm'));\n\n // Logo\n if (data.logo != \"\") {\n $('#file-logo').fileinput('refresh', {\n 'allowedFileExtensions': ['jpg', 'png', 'gif'],\n 'initialPreview': [\"<img src='/uploads/award-event/\" +data.logo + \"' class='file-preview-image'>\",],\n 'overwriteInitial': true,\n 'maxFileSize': 500,\n 'initialCaption': data.logo\n });\n }\n\n // Banner\n if (data.banner != \"\") {\n $('#file-banner').fileinput('refresh', {\n 'allowedFileExtensions': ['jpg', 'png', 'gif'],\n 'initialPreview': [\"<img src='/uploads/award-event/\" +data.banner + \"' class='file-preview-image'>\",],\n 'overwriteInitial': true,\n 'maxFileSize': 500,\n 'initialCaption': data.banner\n });\n }\n\n var description = $('#description-award-event').data(\"wysihtml5\").editor;\n description.setValue(data.description);\n\n // Show\n $('#modal-award-event-form').modal('show');\n\n }).fail(function(jqXHR, textStatus){\n\n toastr.error(\"Ocorreu um erro ao executar a solicitação: \" + textStatus);\n\n });\n\n }else{ // New\n\n _formAction = 'new';\n _resetAwardFieldForm();\n\n $('input[name=fk_event]').val(_fkEvent);\n\n $('#modal-award-event-form').modal('show');\n\n }\n\n}", "function modal_reasignar(bien_id) \r\n{\r\n $('#modal_reasignar').modal('toggle');\r\n /*Llamar */\r\n return false;\r\n}", "showModal() {\n $('.modal').modal('show');\n }", "function openOrCloseAddTaskForm() {\n const h2 = document.querySelector(\".container h2\");\n const submitInput = document.querySelector(`input[type=\"submit\"]`);\n\n if (modalOpen) {\n formContainer.style.pointerEvents = \"none\";\n formContainer.style.transform = \"scale(0)\";\n overlay.style.opacity = 0;\n modalOpen = false;\n } else {\n h2.textContent = \"New Task\";\n submitInput.value = \"Submit\";\n formContainer.style.pointerEvents = \"auto\";\n formContainer.style.transform = \"scale(1)\";\n overlay.style.opacity = 1;\n modalOpen = true;\n }\n}", "function showMessage() {\n modal.style.display = \"block\";\n }" ]
[ "0.73136425", "0.7036392", "0.6976032", "0.67675775", "0.6669644", "0.6627278", "0.66062284", "0.6520373", "0.6496843", "0.6449265", "0.64232475", "0.6415154", "0.63968897", "0.63818896", "0.637293", "0.63629764", "0.63433206", "0.6342307", "0.63421863", "0.62763625", "0.627074", "0.6266393", "0.62607855", "0.6233873", "0.6233295", "0.62129617", "0.6203635", "0.61870617", "0.6184045", "0.61752295", "0.6172803", "0.6152221", "0.6141324", "0.61380404", "0.611685", "0.61154634", "0.61099935", "0.6099672", "0.60985535", "0.6096636", "0.6079414", "0.60673654", "0.6055127", "0.60535854", "0.605225", "0.604737", "0.6043719", "0.60421014", "0.6039763", "0.60326093", "0.6025081", "0.6014039", "0.6012853", "0.6006844", "0.60050493", "0.6000497", "0.59967214", "0.59878564", "0.59875757", "0.597259", "0.5969368", "0.596611", "0.5955627", "0.59553784", "0.595427", "0.5948524", "0.594825", "0.5946098", "0.5940244", "0.59369224", "0.5925747", "0.5925318", "0.59248513", "0.592463", "0.59235424", "0.5920525", "0.5913943", "0.59038794", "0.590255", "0.5901887", "0.5891673", "0.5888925", "0.5885206", "0.58831257", "0.58798176", "0.58770776", "0.58770704", "0.5875672", "0.5867811", "0.5863967", "0.58615386", "0.5857534", "0.5857154", "0.585618", "0.58522725", "0.5852057", "0.5849419", "0.5848151", "0.58436847", "0.5843102" ]
0.6713065
4
remove loadig mask from modal
function unmaskModal() { var $maskTarget = $(".modal-body"); $maskTarget.closest('.modal-dialog').find('[type="submit"]').removeAttr('disabled'); $(".modal-mask").remove(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function closeModal() {\n $(\".mask\").removeClass(\"active-modal\");\n}", "_remove() {\n this.backdrop.remove();\n this.modal.remove();\n Utils.removeClass(document.body, 'modal-mode');\n }", "function removeModal() {\n modal.innerHTML = \"\";\n removeClass(modal, 'modal-show');\n }", "function skjulModal() {\n\n\n modal.classList.remove(\"vis\");\n }", "function closeModal() {\n $('#modal, #modal .wrap-modal').hide();\n $('.videomodal .videoresponsive, .imagemodal .label-imagemodal').empty();\n fechaMask();\n}", "function hide() {\n // Remove background\n bg.remove();\n // Remove modal\n modal.style.display = \"none\";\n}", "modify () {\n\n // Hide modal\n this.modal.hide();\n }", "function esconderModal() {\n\tmodal.style.display = 'none';\n}", "function maskModal($maskTarget) {\n var padding = $maskTarget.height() - 80;\n if (padding > 0) {\n padding = Math.floor(padding / 2);\n }\n $maskTarget.append(\"<div class='modal-mask'><div class='circle-loader'></div></div>\");\n //check scrollbar\n var height = $maskTarget.outerHeight();\n $('.modal-mask').css({\"width\": $maskTarget.width() + 30 + \"px\", \"height\": height + \"px\", \"padding-top\": padding + \"px\"});\n $maskTarget.closest('.modal-dialog').find('[type=\"submit\"]').attr('disabled', 'disabled');\n }", "function preAjaxCaller() {\n $('#zoomModal').remove();\n }", "function removeModal() {\n $('#modal-point').modal('hide');\n}", "cancel() {\n this.modal.jQueryModalFade.removeClass('modal_fade_trick');\n this.modal.jQueryModalWindow.css('display', 'none');\n this.clear();\n this.clearInvalid();\n this.hideNotes();\n if(!this.good){\n this.initPlaceholders();\n }\n }", "function closeModal() {\n $(\".mask\").removeClass(\"active-term\");\n}", "function CierraPopup() {\n $(\"#exampleModal\").modal('hide');//ocultamos el modal\n $('body').removeClass('modal-open');//eliminamos la clase del body para poder hacer scroll\n $('.modal-backdrop').remove();//eliminamos el backdrop del modal\n}", "function remove(e){\n if (!e.target.classList.contains('modals') || !e.currentTarget.classList.contains('close')) return false\n const modal = document.querySelector('.modal')\n setTimeout(\n function(){\n modal.remove()\n document.querySelector('.ui.dimmer.modals').innerHTML = ''\n init()\n },250)\n}", "function removeModal(){\n $(\"#warningModal\").remove();\n $(\".modal-backdrop\").remove();\n}", "unmaskBody() {\n const me = this;\n me.loadmaskHideTimer && me.clearTimeout(me.loadmaskHideTimer);\n me.loadmaskHideTimer = null;\n me.activeMask && me.activeMask.destroy();\n me.activeMask = null;\n }", "function abrirModalRemover(dados) {\n $(\"#modalRemover\").modal()\n\n adicionalSelecionadaRemover = dados\n\n}", "function hideMask() {\n document.getElementById('overlay').style.display = 'none';\n \n}", "hideModal() {\r\n document.querySelector(\".glass\").classList.toggle(\"hidden\");\r\n document.querySelector(\".glass\").dataset.lat = null;\r\n document.querySelector(\".glass\").dataset.lng = null;\r\n app.resetModalFields();\r\n }", "removeBackdrop () {\n $('.modal-backdrop').remove()\n }", "unmaskBody() {\n const me = this;\n\n me.loadmaskHideTimer && me.clearTimeout(me.loadmaskHideTimer);\n me.loadmaskHideTimer = null;\n\n me.activeMask && me.activeMask.destroy();\n me.activeMask = null;\n }", "function abrirModalRemover(dados) {\n $(\"#modalRemover\").modal();\n\n categoriaSelecionadaRemover = dados;\n}", "function hideLoading() {\n $('#modalLoading').hide();\n}", "function removeModal() {\n cleanModal();\n $(\".modal\").removeClass(\"is-active\");\n}", "endLoading() {\n this.modal.jQueryModalFade.removeClass('modal_fade_trick');\n this.modal.jQueryModalAwait.css('display', 'none');\n }", "function fermer() {\n var modal1Left = document.getElementById('modal1Left');\n //modal1Left.style.visibility=\"hidden\";\n modal1Left.remove('section');\n}", "function aceptCancelar(){\n document.querySelector(\".modal\").style.display=\"none\"\n}", "function hideModal() {\n //var $modalContainer = document.querySelector('#modal-container');\n $modalContainer.removeClass('is-visible');\n $modalContainer.text('');\n}", "function resetPinModal() {\n $('#modal-newPin').modal('close');\n setTimeout(() => {\n $('input').val('');\n $('input').removeClass('invalid valid');\n $('#newPinImg').attr('src', '../public/img/galaxy.jpg');\n }, 1000);\n lastUrl = '';\n}", "function closeimgmodal(){\n $(\"#custom-image-modal\").css('display', \"none\");\n $('#modal-img').attr('src', '');\n $('#caption > h3 > span').html(\"\");\n $('#caption > h4 > span').html(\"\");\n $('#caption > h4 > a').attr('href', '');\n $('#caption > h4 > a').html(\"\");\n}", "function limparModal() {\r\n document.getElementById('modal').innerHTML = '';\r\n}", "function modalpurge(){\n $('#modaltitle').empty();\n $('#modalbody').empty();\n $('#modalconsole').empty();\n $('#modalfooter').empty();\n $('#modalloading').hide();\n $('#modalbody').hide();\n $('#modalconsole').hide();\n $('#modalfooter').hide();\n}", "function modalClose() {\t\t\n\t\tif($('mb_Title')) $('mb_Title').remove();\n\t\tif($('mb_Error')) $('mb_Error').remove();\n\t\tif($('mb_header')) $('mb_header').removeClass('yt-Panel-Primary');\n\n\t\t$('mb_center').style.display = 'none';\n\t\t\n\t\t$('mb_contents').getChildren()[0].remove();\n\t\t$('mb_overlay').setStyle('opacity',0);\n\t\t$('mb_frame').setStyle('opacity',0);\n\t\twindow.location.reload(true); \n}", "hide(){\n\t\tthis.modalShadow.hide();\n\t\tthis.modalBody.hide();\n\t}", "function modalHidden(){\n\t\trestoreTabindex();\n\t\ttdc.Grd.Modal.isVisible=false;\n\t}", "function onShownBsModal() {\n isModalInTransitionToShow = false;\n }", "function removeModal(e) {\n if (scoreModal.style.display === 'flex' && e.target.classList.contains('overlay')) {\n UI.displayOverlay(false); // remove the overlay\n UI.displayScoreModal(false); // remove the score modal\n UI.clearInput(); // clear the game input \n }\n else if (instructionModal.style.display === 'flex' && e.target.classList.contains('overlay')) {\n UI.displayOverlay(false); // remove the overlay\n UI.displayInstructionModal(false); // remnove the score modal\n }\n}", "function hideSelectedImage() {\n let fullSelectedImage = document.querySelector(\"#fullSelectedImage\");\n let imageModal = document.querySelector(\"#imageModal\");\n\n imageModal.className = \"hidden fixed top-16 z-20 h-3/4 w-3/4 rounded-lg\";\n fullSelectedImage.src = \"\";\n}", "function mostrarModalAyuda(){\n $('#modalAyuda').modal({\n backdrop: false\n });\n //$('.modal-backdrop').removeClass(\"modal-backdrop\"); \n}", "function closeModalBox() {\r\n\t\t$['mapsettings'].modal = false;\r\n\t\t$('#modal').slideUp(\"slow\", function(){\r\n\t\t\t$('#modal').remove();\r\n\t\t});\r\n\t\t$(\"#overlay\").fadeTo(\"slow\", 0, function() {\r\n\t\t\t$(\"#overlay\").remove();\r\n\t\t\tif($['mapsettings'].afterModal.length > 0) ($['mapsettings'].afterModal.shift())();\r\n\t\t});\r\n\t}", "function abrirModalRemover(dados) {\n $(\"#modalRemover\").modal()\n\n produtoSelecionadoRemover = dados\n\n}", "function hideModal() {\n vm.modalVisible = false;\n }", "function hideModal() {\n vm.modalVisible = false;\n }", "function hideShareModal() {\n // modal animation\n $( '.celebration-cards-share-modal' ).animate( {\n opacity: 0\n }, 500, function() {\n $( '.celebration-cards-share-modal' ).css( \"display\", \"none\" );\n $('.celebration-cards-share-modal__content__cancel').css('display', 'block');\n $('.celebration-cards-share-modal__content__input').css('display', 'none');\n $('.celebration-cards-share-modal__content__input').css('opacity', '0');\n });\n }", "function modalHideUpload() {\n\t\n\t//console.log('hello !')\n\t\n\t$('#fade-wall').fadeTo(218, 0, function() {\n\t\t$('#fade-wall').css('display', 'none');\n\t});\n\t$('#modal-upload').fadeTo(218, 0, function() {\n\t\t$('#modal-upload').css('display', 'none');\n\t});\n\t$('#modal-meta').fadeTo(218, 0, function() {\n\t\t$('#modal-meta').empty();\n\t\t$('#modal-meta').css('display', 'none');\n\t});\n\t\n\t$('#modal-newdir').fadeTo(218, 0, function() {\n\t\t$('#modal-newdir').css('display', 'none');\n\t});\n\t\n\t$('#modal-pref').fadeTo(218, 0, function() {\n\t\t$('#modal-pref').css('display', 'none');\n\t});\n}", "function removeModal() {\n modal = document.getElementById('modal');\n modal.remove();\n resetGame();\n}", "function hideModal() {\n const element = document.getElementById('modal');\n element.classList.remove('is-active');\n document.getElementsByTagName('body')[0].classList.remove('is-clipped');\n}", "function hideModal(modal) {\n $(\"#flex-overlay\").css({\n 'display': 'none',\n opacity: 0\n });\n\n if (typeof modal == 'string')\n modal = $(modal);\n\n modal.css({\n \"display\": \"none\"\n })\n }", "function hideLayers(evt) {\n dialogLayer.style.display = \"none\";\n maskLayer.style.display = \"none\";\n }", "function hideDialog() {\n document.getElementById('dialog').style.display = \"none\";\n document.getElementById('dialog-mask').style.display = \"none\";\n}", "function removeModal(){\n modal.style.display = 'none';\n inner.innerHTML = '';\n}", "function hideLoading(){\n\t$('#loading-mask').removeClass('active');\n}", "function removeModal() {\n var m_id = 'modal_container';\n var modal = document.getElementById(m_id);\n modal.setAttribute('class','modal-container remove');\n\n // Detect transition out completion and remove styles and class names\n let transitionEvent = whichTransitionEvent(m_id);\n transitionEvent && document.addEventListener(transitionEvent,function(){\n // Remove extra classes\n modal.remove();\n });\n}", "function hideMask(){\n\tList.showMask = false;\n\tCard.showMask = false;\n}", "function demodalificate() {\r\n\tnew Effect.Fade(\"zmodal\");\r\n\t\r\n//after a few seconds, once the fade has occured, remove the child node\r\n\td = document.getElementById('zmodal');\r\n\tsetTimeout('d.parentNode.removeChild(d)',1800);\r\n\t}", "function onHiddenBsModal() {\n isModalInTransitionToHide = false;\n isModalVisible = false;\n }", "function hideModal() {\n $(\"#modal-container\").hide(\"fold\", 1000);\n}", "function removeModalActionAttr() {\n\t\t \t$(\".close\").click(function() {\n\t\t \t\t$(\"#myModal\").removeAttr( \"action\" );\n\t\t \t});\n\t\t }", "function resetModal() {\n modalBody.style.display = \"block\";\n successMsg.style.display = \"none\";\n}", "function modalRegistrar() {\n sent = false;\n $('#r_centrocmodal').modal({ backdrop: 'static', keyboard: false });\n $('#r_rowEmpleado').hide();\n}", "function unsetPreviewLoading()/*:void*/ {\n if (this.previewLoadMask$67CD) {\n this.previewLoadMask$67CD.hide();\n this.previewLoadMask$67CD.disable();\n\n this.previewLoadMask$67CD.getEl().removeListener('click',AS3.bind( this,\"unsetPreviewLoading\"));\n }\n }", "function clearModal() {\n document.getElementById(\"modal\").removeAttribute(\"class\");\n document.getElementById(\"modal\").innerHTML = '';\n startNewGame();\n}", "function hideWelcomeModal() {\n $('body').removeClass(\"modal-open\");\n $('#welcome-modal').addClass(\"hide\");\n $('#modal-backdrop').addClass(\"hide\"); \n }", "function removeOfficialTravelPassengerCustom(id){\n\t\n\t$('#preview-modal').on('show.bs.modal', function (e) {\n\t $('#preview-modal-dialog').load('travel/modal/remove',function(data){\n\t \tremoveContextListElement('api/travel/official/custom/',id);\n\t })\n\t});\n\n\t$('#preview-modal').modal('toggle');\n\n\t\n}", "function cerrarModalModi(){\r\n $(\"#formularioModi\").css(\"visibility\",\"hidden\");\r\n $(\"#doc\").removeClass(\"contenedorDesactivado\");\r\n}", "loading() {\n this.modal.jQueryModalFade.addClass('modal_fade_trick');\n this.modal.jQueryModalAwait.css('display', 'block');\n this.modal.jQueryModalWindow.css('display', 'none');\n }", "function closeImg() { \r\n modal.style.display = \"none\";\r\n }", "modalHide(myModal) {\n myModal.style.display = \"none\";\n player.choosePlayer();\n }", "function removeModal() {\n var visibleClass = 'reg-block_active';\n if (document.querySelector('.' + visibleClass)) {\n document.querySelector('.' + visibleClass).classList.remove(visibleClass);\n // Return the focus to the last focused element\n lastFocusedElement.focus();\n }\n}", "function maskDesktop() {\n\t\tExt.getBody().mask(i18n.get(\"label.loadingSitools\"));\n\t\tExt.get(\"ux-taskbar\").hide();\n\t}", "function removeInvite() {\n $('#TenTimes-Modal').modal('hide');\n}", "function closeModal() {\n \tMODAL.style.display = 'none';\n \tRESET();\n }", "function aceptar()\n{\n $('#ok').hide();\n $('#button').hide();\n $('#loading').show();\n $('#esperar').modal('hide');\n}", "function MasklayerHide()\n{\n\tvar bgObj=document.getElementById(\"MaskLayout\");\n\tbgObj.style.display = \"none\";\n//\tif($.browser.firefox){\n//\t\tvar bgObjfirefox=document.getElementById(\"MaskLayoutFirefox\");\n//\t\tbgObjfirefox.style.display = \"none\";\n//\t}\n}", "function modalClose() {\r\n\r\n $(\"body\").removeClass(\"bgFreeze\");\r\n $(\"main\").removeClass(\"bgDarken\");\r\n $(\".temp\").addClass(\"remElement\");\r\n $(\".remElement\").removeClass(\"temp\");\r\n $(\"main\").off(\"click\", modalClose);\r\n}", "function showForgetModal() {\r\n $(\"#myModal\").modal(\"show\");\r\n}", "hideModal() {\n this.clearModal();\n $('.modal').modal('hide');\n }", "function removeLoadingScreen() {\n $('#loading-screen').dimmer('hide');\n}", "function showCancelMODAL() {\r\n $(\"#trasanoModalHeader\").empty();\r\n $(\"#trasanoModalBody\").empty();\r\n $(\"#trasanoModalFooter\").empty();\r\n\r\n $(\"#trasanoModalHeader\").append(\"<h4>Cancelar Ambulancia</h4>\");\r\n\r\n $(\"#trasanoModalBody\").append(\r\n \"<p><strong>¿Desea cancelar la ambulancia?</strong></p>\" + \r\n \"<div class='alert alert-danger' role='alert'>\" + \r\n \"<span class='glyphicon glyphicon-info-sign' aria-hidden='true'></span> \" + \r\n \"Última reclamación: <strong>\" + getClaimTime().toLocaleTimeString() + \r\n \" (\"+ getClaimTime().toLocaleDateString() + \r\n \")</strong></div>\");\r\n\r\n $(\"#trasanoModalFooter\").append(\r\n \"<button type='button' class='btn btn-default' data-dismiss='modal'>NO</button>\" + \r\n \"<a class='btn btn btn-primary' href='javascript:showCancelReasonALERT();' role='button'>SI</a>\"); \r\n $('#trasanoMODAL').modal('show');\r\n}", "function removeModal() {\n let modal = document.querySelector('.modal');\n\n modal.remove();\n }", "function closeModal() {\n const classModalOpen = $(\".modal-open\");\n classModalOpen.removeAttr(\"style\");\n classModalOpen.removeAttr(\"class\");\n $(\".modal-backdrop\").remove();\n }", "function hideModal() {\n //var $modalContainer = document.querySelector('#modal-container');\n $modalContainer.classList.remove('is-visible');\n $modalContainer.innerHTML = \"\"\n}", "hideModal(){\n if(document.getElementById('modal')){\n document.getElementById('modal').style.display = 'none';\n document.getElementById('caption').style.display = 'none';\n document.getElementById('modal').style.zIndex = 0;\n }\n \n }", "function div_hide(){ \n\t\t//$('#myModal').modal('hide');\n\t\t$('#dialog-overlay6, #dialog-box6').hide();\n\t}", "function hideModal(modal){\n modal.className = \"Modal is-hidden\";\n app_container.className = \"\";\n}", "function showCloseMODAL() {\r\n $(\"#trasanoModalHeader\").empty();\r\n $(\"#trasanoModalBody\").empty();\r\n $(\"#trasanoModalFooter\").empty();\r\n\r\n $(\"#trasanoModalHeader\").append(\"<h4>Aproxime el móvil a la pegatina NFC...</h4>\");\r\n\r\n $(\"#trasanoModalBody\").append(\r\n \"<img src='img/nfcAnimation-550x344.gif' class='img-responsive img-rounded' alt='Use of NFC'> \");\r\n\r\n $(\"#trasanoModalFooter\").append(\r\n \"<button type='button' class='btn btn-danger pull-right' data-dismiss='modal'>CANCELAR</button>\"); \r\n\r\n $('#trasanoMODAL').modal('show');\r\n \r\n /***********************************\r\n * MOCK \r\n ************************************/\r\n //setTimeout(getAmbulance_MOCK, 2000);\r\n\r\n /***********************************\r\n * PRODUCTION \r\n ************************************/\r\n getAmbulance();\r\n}", "clearModal() {\n if ($(\"body\").hasClass(\"modal-open\")) {\n // Ensure animation has time to finish:\n Meteor.setTimeout(() => {\n $(\".modal\").each(() => {\n const modalId = $(this).attr(\"id\")\n UX.dismissModal(modalId)\n })\n $(\"body\").removeClass(\"modal-open\")\n $(\".modal-backdrop\").remove()\n }, 1000)\n }\n }", "function span() { \n document.getElementById('myModal').style = \"display:none\";\n}", "function getFromMoreSpecialVersionsModal() {\n\t$('#modalMoreSpecialVersions').modal('hide');\n}", "function outsideClick4(e) {\n if (e.target == modal4) {\n modal4.style.display = 'none';\n }\n }", "function modalAnimation() {}", "function removeOfficialTravelItenerary(id){\n\t$('#preview-modal').on('show.bs.modal', function (e) {\n\t $('#preview-modal-dialog').load('travel/modal/remove',function(data){\n\t \tremoveContextListElement('api/travel/official/itenerary/',id);\n\t })\n\t});\n\n\t$('#preview-modal').modal('toggle');\n\t\n}", "function onHideBsModal() {\n isModalInTransitionToHide = true;\n }", "function hide () {\n modal.classList.remove('modalOn');\n document.getElementById('modalOff').innerHTML = '';\n}", "function hideLoading() {\n $(\"body\").find(\".pmDynaformLoading\").remove();\n}", "function hideModalOverlay() \n{\n\t$(\"#ajaxindicator-modal-overlay\").stop().fadeOut(100);\n}", "function resetPopups() {\n jQuery('.lightbox,.editboard_box,.succes_box,.overlay_whislist,.RNhelpbox').hide()\n}", "destoryEditor() {\n $('#overlay').addClass('d-none');\n $('#overlay').removeClass('d-flex');\n $('#overlay').html('');\n }", "function hide() {\n _modal.hide(true);\n _modalCloseSubscriber.dispose();\n _modalCloseSubscriber = null;\n\n _markedObjects.forEach(function (object) {\n TweenLite.killDelayedCallsTo(object.shape);\n _toolTip.remove(object.shape);\n _mountPoint.removeChild(object.shape);\n delete object.shape;\n });\n }" ]
[ "0.71414036", "0.6967064", "0.6928043", "0.6900116", "0.6839112", "0.682834", "0.67987084", "0.67844504", "0.67694855", "0.6729312", "0.66909117", "0.6657209", "0.6653627", "0.6600607", "0.65530455", "0.6522409", "0.64977694", "0.6493927", "0.6480022", "0.64788026", "0.646669", "0.6453601", "0.6450101", "0.6445697", "0.64028555", "0.639011", "0.638317", "0.6382052", "0.6349269", "0.6349069", "0.63193786", "0.6317192", "0.6296334", "0.6281322", "0.62610644", "0.6247938", "0.6243557", "0.6227089", "0.6224054", "0.6224023", "0.62198097", "0.6216327", "0.62130284", "0.62130284", "0.6207673", "0.6203635", "0.61995935", "0.6189593", "0.61880165", "0.6184298", "0.61776155", "0.6169975", "0.6153607", "0.6150895", "0.61413765", "0.6137054", "0.61346954", "0.61337596", "0.6128905", "0.61171764", "0.61161774", "0.6114902", "0.6098399", "0.6097125", "0.6091404", "0.60852855", "0.6080873", "0.60801387", "0.6070109", "0.6068689", "0.6065923", "0.6055466", "0.60531956", "0.60518926", "0.60515946", "0.6043786", "0.60376155", "0.6036405", "0.60344523", "0.6033865", "0.60247743", "0.6014606", "0.60073394", "0.6001072", "0.6000819", "0.5997888", "0.5994483", "0.59936136", "0.5987165", "0.59781116", "0.59779024", "0.5968172", "0.59647095", "0.59626895", "0.59618366", "0.59559584", "0.59545636", "0.59425855", "0.594121", "0.5936329" ]
0.77769476
0
colse ajax modal and show success check mark
function closeAjaxModal(success) { if (success) { toastmessage(showSuccessToast) $(".modal-mask").html("<div class='circle-done'><i class='fa fa-check'></i></div>"); setTimeout(function () { $(".modal-mask").find('.circle-done').addClass('ok'); }, 30); } setTimeout(function () { $(".modal-mask").remove(); // toggleAjaxSlickModal(); settings.onModalClose(); }, 1000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajax_success() {\n console.log('Update Status worked');\n // TODO: \n // improve loading time of ajax request because modal is loading to slow\n $(\".modal\").addClass(\"is-active\"); \n}", "function successModal(message1,message2) {\n $(\"#modalsave\").hide();\n $(\"#sure .modal-title\").text(message1);\n $(\"#sure .modal-body\").html(message2);\n $(\"#sure\").modal('show');\n $(\"#sure\").modal('handleUpdate'); \n }", "function showManageAgentSuccessAlert() {\n\t\t \tvar successMsg = $(\"#myModal\").attr(\"saveAgentWithSuccess\");\n\t\t \t\n\t\t \tif (successMsg !== undefined) {\n\t\t \t\tdisplaySuccessMsg(successMsg);\n\t\t \t}\n\t\t }", "function successUpdate() {\n updateForm.style.display = \"none\";\n updateSuccessView.style.display = \"block\";\n setTimeout(closeUpdateModal, 1500);\n }", "function setNShowStatus(data) {\r\n $('.likesmodel').html(data);\r\n $('.likesmodel').modal('show')\r\n }", "function success() {\n\n Modal.success({\n okText:\"Done\",\n title: 'Submit successful!',\n // content: 'View your requests to see your new entry.',\n onOk() {\n doneRedirect();\n }\n });\n }", "function show_modal_response( data ){\n //debugger\n if(data){\n j('#response').html( S(data) );\n j('#fancybox_trigger').trigger('click');\n }\n }", "function showConfirmationModal() {\n $(\"#modalConfirmation\").modal(\"show\");\n}", "function success(){\r\n document.querySelector(\".modal-bg\").style.display = \"none\";\r\n document.querySelector(\".success-bg\").style.display = \"flex\";\r\n}", "function checksvdone(element) {\n $(`#${element}`).prop(\"checked\") === true ? $('.modal-visitresult-container').show() : (\n $('.modal-visitresult-container').hide(),\n $(\"#visitresult\").val(\"\")\n )\n}", "function response_in_modal(response) {\n $(\".modal-title\").html(response);\n $(\"#empModal\").modal(\"show\");\n}", "success(res) {\n if ((res.data.status == \"SUCCEED\") && (\"data\" in res.data)) {\n self.setData({\n showModa: true,\n result: res.data\n });\n } else {\n wx.showModal({\n title: '警告',\n content: '此烟是假货',\n confirmColor: '#FF0000',\n showCancel: false,\n success: function (res) {\n if (res.confirm) {//这里是点击了确定以后\n console.log('用户点击确定')\n } else {//这里是点击了取消以后\n console.log('用户点击取消')\n }\n }\n })\n }\n }", "function AddMemberDonateTypeSuccess() {\n\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#addMemberDonateTypeDialog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Donate Type saved successfully.\", \"dialogSuccess\");\n\n memberDonateTypeObjData.fnDraw();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n }\n}", "function checkupBonus(advocate_token)\n{\n var request = $.ajax({\n type: \"GET\",\n url: 'checkup_bonus.php',\n data: {'advocate_token': advocate_token}\n });\n $('#checkupBonusModal').modal('show');\n request.done(function(response) {\n if (response) {\n $('#checkupBonusModal').html(response);\n $('#checkupBonusModal').html(response);\n $('#checkupBonusModal #reference').val('');\n $('#checkupBonusModal #amount_payments').val('');\n $('#checkupBonusModal #payment_amount').val('');\n $('#checkupBonusModal #container_status_success').css('display', 'none');\n $('#checkupBonusModal #container_status_fail').css('display', 'none');\n }\n });\n}", "function okOnGet(data, postFun){\r\n $(\"#\"+modal+\" .modal-body\").html(data.content);\r\n registerForm(postFun);\r\n $(\"#\"+modal).modal(\"show\");\r\n //mymodal.open();\r\n }", "function generate_new_rank(){\n\n $('#rank_alert').modal({backdrop: 'static', keyboard: false});\n\n $.ajax({\n url: url_path + 'generate_new_rank',\n type: 'POST',\n cache: false,\n processData: false,\n contentType: false,\n success: function(msg){\n if(msg.status) {\n $(\"#rank_alert\").modal('hide');\n $(\"#after_rank_alert\").modal('toggle');\n\n }\n }\n });\n\n}", "function AddMemberHospitalSuccess() {\n\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#addMemberHospitalDialog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Hospital saved successfully.\", \"dialogSuccess\");\n\n memberHospitalObjData.fnDraw();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n }\n}", "function displaySuccess () {\n $('.validationText').hide();\n $('#wishForm').hide();\n return $(\"#successMsg\").show();\n }", "function showModal() {\n\t\t \tvar action = $(\"#myModal\").attr(\"action\");\n\t\t \n\t\t \tif (action == 'update' || action == 'create') {\n\t\t \t\t$(\"#myModal\").modal(\"show\");\n\t\t \t}\n\t\t \t\n\t\t \tshowContractEndDateSelect();\n\t\t \tshowHidePassword();\n\t\t \tshowHideConfirmPassword();\n\t\t }", "function EditMemberDonateTypeSuccess() {\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#editMemberDonateTypeDialog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Donate Type updated successfully.\", \"dialogSuccess\");\n\n memberDonateTypeObjData.fnDraw();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n }\n}", "function okOnPost(data, fun){\r\n if(data.modal !== undefined)\r\n modal = data.modal;\r\n if(data.status == 'success'){\r\n $(\"#\"+modal).modal(\"hide\");\r\n fun(data);\r\n }else{\r\n $(\"#\"+modal+\" .modal-body\").html(data.content);\r\n registerForm(function(post_data){\r\n okOnPost(post_data, fun);\r\n });\r\n }\r\n }", "function showLoading() {\n $('#modalLoading').show();\n}", "renderSuccess( success ) {\n $( this.thankYouPaneSelector ).data('response-id', success.id);\n this.showThankYouPane();\n\n }", "function showModalUntilAjaxResponse(modalId){\n $('.pace').removeClass('pace-inactive');\n $('.pace').addClass('pace-active');\n $('.pace').find('.pace-progress').css('-webkit-transform','translate3d(0, 0px, 0px)');\n $('.pace').find('.pace-progress').css('transform','translate3d(0, 0px, 0px)');\n $('#page-overlay').show();\n}", "function modalCheque()\n{\n $('#agregar_cheque').modal('show');\n}", "function Add() {\n //var res = validate();\n //if (res == false) {\n // return false;\n //}\n var isChecked;\n if ($(\"#competitionFragmentedMyModal\").is(':checked'))\n isChecked = true;\n else\n isChecked = false;\n\n var constComputationObj = {\n competitionNo: $('#competitionNoMyModal').val(),\n competitionNote: $('#competitionNoteMyModal').val(),\n competitionFragmented: isChecked,\n };\n $.ajax({\n url: \"/ConstComputation/Add\",\n data: JSON.stringify(constComputationObj),\n type: \"POST\",\n contentType: \"application/json;charset=utf-8\",\n dataType: \"json\",\n success: function (result) {\n loadData();\n $(\"#myTable tbody tr:first\").effect(\"highlight\", {}, 3000); \n $('#myModal').modal('hide'); \n },\n error: function (errormessage) {\n alert(errormessage.responseText);\n }\n });\n}", "function modalShown(o){\n\t\t/*\n\t\tif(o.template){\n\t\t\t//show spinner dialogue\n\t\t\t//render o.template into o.target here\n\t\t}\n\t\t*/\n\t\tsaveTabindex();\n\t\ttdc.Grd.Modal.isVisible=true;\n\t}", "function EditMemberHospitalSuccess() {\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#editMemberHospitalDialog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Hospital updated successfully.\", \"dialogSuccess\");\n\n memberHospitalObjData.fnDraw();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n }\n}", "function updateUserStatus( user_id, status, checkAuthority ) {\n\tif(!checkAuthority)\n\t{\n\t\ttoastr.error(\"Access Denied\", \"Error\");\n\t\treturn false;\n\t}\n if(status == 1){\n $( '#sm_modal_body' ).html( 'Do you really want to activate?' );\n }else{\n $( '#sm_modal_body' ).html( 'Do you really want to deactivate?' );\n }\n $( '#small_modal' ).modal();\n $( '#sm_modal_title' ).html( 'Are you Sure?' );\n $( '#sm_modal_footer' ).html( '<button type=\"button\" class=\"btn dark btn-outline\" data-dismiss=\"modal\">Cancel</button><button type=\"button\" id=\"continuemodal'+user_id+'\" class=\"btn green\">Yes</button>' );\n $( '#continuemodal'+user_id ).click( function() {\n $.ajax({\n type : 'POST',\n url : 'updateUserStatus',\n data : { 'user_id' : user_id, 'status' : status },\n beforeSend: function() { \n $(\"#continuemodal\"+user_id).html('<img src=\"../resources/img/input-spinner.gif\"> Loading...');\n $(\"#continuemodal\"+user_id).prop('disabled', true);\n },\n success : function( msg ) \n {\n $(\"#continuemodal\"+user_id).html('Yes');\n $(\"#continuemodal\"+user_id).prop('disabled', false);\n $('#small_modal').modal('hide');\n if(msg == \"****\")\n {\n \tlocation.reload();\n }\n else\n \ttoastr.error(msg,\"Error\");\n }\n });\n });\n}", "function _checkInSuccess(data) {\n if (data) {\n vm.$alertService.success(\"Checked In!\");\n\n vm.Checkbutton = \"Good to go!\";\n\n render();\n }\n }", "function SaveSuccessApprover(data, status) {\n debugger;\n var JsonResult = JSON.parse(data)\n switch (JsonResult.Result) {\n case \"OK\":\n if ($('#hdnMasterCall').val() == \"MSTR\") {\n $('#IsUpdate').val('True');\n if (JsonResult.Records.IsDefault == true) {\n $(\"#IsDefault\").prop(\"checked\", true);\n $('#IsDefault').prop(\"disabled\", true);\n }\n else {\n $(\"#IsDefault\").prop(\"checked\", false);\n $('#IsDefault').prop(\"disabled\", false);\n }\n BindOrReloadApproverTable();\n }\n else if ($('#hdnMasterCall').val() == \"OTR\") {\n $('#divApproverDropdown').load('/Approver/ApproverDropdown');\n }\n MasterAlert(\"success\", JsonResult.Records.Message)\n\n\n break;\n case \"ERROR\":\n MasterAlert(\"danger\", JsonResult.Message)\n break;\n default:\n MasterAlert(\"danger\", JsonResult.Message)\n break;\n }\n $('#divModelMasterPopUp').modal('hide');\n\n}", "function EditProductSuccess() {\n\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#editProductDialog').dialog('close');\n\n SuccessMessage(\"Information has been updated successfully\");\n\n //Reset Add Form\n //ResetAddProductForm();\n\n //Refresh Kendo Grid\n dtKendoGridRefresh();\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n }\n}", "function show_modal() {\n \t$('#promoModal').modal();\n }", "function nuvoInscPreli(){ \n $(\".modal-title\").html(\"Nueva incripción\"); \n $('#formIncPreliminar').modal('show');\n}", "function showJobLoadingModal(state,message) {\n modal = $('#saving_job_modal');\n if (state == \"Success\") {\n $(modal).find('.progress').removeClass('is-info').addClass('is-success');\n } else {\n $(modal).find('.progress').removeClass('is-info').addClass('is-danger');\n }\n $(modal).find('.modal-close').removeClass('is-hidden');\n $(modal).find('.progress').attr('value','100');\n $(modal).find('.modal-background').attr('onclick','closeJobLoadingModal();');\n $(modal).find('.modal-message').html(message);\n}", "loading() {\n this.modal.jQueryModalFade.addClass('modal_fade_trick');\n this.modal.jQueryModalAwait.css('display', 'block');\n this.modal.jQueryModalWindow.css('display', 'none');\n }", "function showLoadingModal() {\n $(\"#LoadingModal\").modal(\"show\");\n}", "RespondSuccess(data) {\n if (data.status == true) {\n toastr.success(data.message);\n this.loadThanhVien();\n }\n else {\n setTimeout(function () {\n $('.modal-body > .card-body').append(data.message);\n }, 3000);\n }\n }", "function getbyID(constID) {\n $('#CompetitionIDMyModal').css('border-color', 'lightgrey');\n $('#competitionNoMyModal').css('border-color', 'lightgrey');\n $('#competitionNoteMyModal').css('border-color', 'lightgrey');\n $('#competitionFragmentedMyModal').css('border-color', 'lightgrey');\n $.ajax({\n url: \"/ConstComputation/getbyID/\" + constID,\n typr: \"GET\",\n contentType: \"application/json;charset=UTF-8\",\n dataType: \"json\",\n success: function (result) {\n $('#CompetitionIDMyModal').val(result.CompetitionID);\n $('#competitionNoMyModal').val(result.competitionNo);\n $('#competitionNoteMyModal').val(result.competitionNote);\n if (result.competitionFragmented == true) {\n $('#competitionFragmentedMyModal').parent().addClass(\"checked\");\n $('#competitionFragmentedMyModal').prop('checked', true);\n }\n else {\n $('#competitionFragmentedMyModal').parent().removeClass(\"checked\");\n $('#competitionFragmentedMyModal').prop('checked', false);\n } \n $('#myModal').modal('show');\n $('#btnUpdate').show();\n $('#btnAdd').hide();\n },\n error: function (errormessage) {\n alert(errormessage.responseText);\n }\n });\n return false;\n}", "function successCB() {\n //debug\n //alert(\"banco populado\");\n //\n}", "function checkCompletado(id){\n \n if($(\"#checkSelect\").is(':checked')) { \n $.ajax({\n url : 'controlador/calcula.php',\n type: 'POST',\n data: 'accion=observacionGuardado&id='+id,\n success : function(resultado){\n $(\".modal-body-observacion\").html(resultado);\n }\n })\n }\n}", "function showPopupFormular() {\r\n $(\"#\" + global.Element.PopupFormular).modal(\"show\");\r\n }", "function addSuccess(self) {\n if (!self.error | self.validations == 1) {\n // If fv-valid-func exists then run the JS method\n if ($(self).attr('fv-valid-func') != \"undefined\") {\n var func = $(self).attr('fv-valid-func');\n\n Function('\"use strict\";return(' + func + ')')();\n }\n\n $(self).removeClass('fv-error').addClass('fv-success');\n if($(self).siblings('.fv-error-message').length > 0) {\n var id = $(self).attr('data-fvid');\n $('small[data-fvid=\"'+id+'\"]').remove();\n $(self).removeAttr('data-fvid');\n }\n $(self).closest('form').find('input[type=\"submit\"]').prop('disabled', false);\n } else {\n self.error = false;\n }\n }", "function loadingStatus() {\n\n //get rid of previous messages\n clearFormStatus();\n \n //add the message with a pulsing spinner, thanks font awesome!\n $(\"#myModalLabel\").html('Sending ' + '<i class=\"fa fa-spinner fa-pulse fa-lg\"></i>');\n}", "function actualizar_oi(){\n $('#confirmar_actualizar_oi').modal('show');\n}", "function ajaxRespPositiva(response) {\n \n console.log('response.ok: ', response.ok);\n\n $('#selecProductoAjuste').val(null).trigger('change');\t\n $(\"#form_agregaAjuste\")[0].reset();\n $(\"#tbodyajuste\").empty();\n $(\"#renglon\").empty();\n $(\"#total\").empty();\n $('#modalAgregarAjuste').modal('hide')\n $('#datatableAI').DataTable().ajax.reload(null, false);\n\n if(response.ok) {\n response.text().then(showResult);\n\n const Toast = Swal.mixin({\n toast: true,\n position: 'top-end',\n showConfirmButton: false,\n timer: 3000,\n timerProgressBar: true,\n onOpen: (toast) => {\n toast.addEventListener('mouseenter', Swal.stopTimer)\n toast.addEventListener('mouseleave', Swal.resumeTimer)\n }\n })\n \n Toast.fire({\n icon: 'success',\n title: 'Ajuste guardado correctamente. Espere...'\n })\n \n } else {\n showError('status code: ' + response.status);\n }\n }", "function notification_modal_confirm_add() {\n\n header_style = 'style=\"background-color: #1DB198; color: #ffffff;\"';\n\n var modal = '<div class=\"modal fade\" id=\"modal_div\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">';\n modal += '<div class=\"modal-dialog\">';\n modal += '<div class=\"modal-content\">';\n\n modal += '<div class=\"modal-header\" ' + header_style + '>';\n modal += '<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>';\n modal += '<h4 class=\"modal-title\" id=\"myModalLabel\">' + \"Confirmation\" + '</h4>';\n modal += '</div>';\n\n modal += '<div class=\"modal-body\"><br />';\n modal += \"Are you sure you want to add this machine type?\";\n modal += '</div>';\n\n modal += '<div class=\"modal-footer\" style=\"text-align:center;\">';\n modal += '<button type=\"button\" class=\"btn btn-success\" onclick=\"insertRecord();\">OK</button>';\n modal += '<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>';\n\n modal += '</div>';\n\n modal += '</div>';\n modal += '</div>';\n modal += '</div>';\n\n $(\"#notification_modal\").html(modal);\n $(\"#modal_div\").modal(\"show\");\n $(\"#modal_div\").css('z-index', '1000002');\n\n $(\"#form_modal_div\").modal(\"hide\");\n\n $(\"body\").css(\"margin\", \"0px\");\n $(\"body\").css(\"padding\", \"0px\");\n\n $(\"#modal_div\").on(\"hidden.bs.modal\", function () {\n\n if (modal_checker == 0) {\n $(\"#form_modal_div\").modal(\"show\");\n }\n else {\n $(\"#form_modal_div\").modal(\"hide\");\n }\n\n $(\"body\").css(\"margin\", \"0px\");\n $(\"body\").css(\"padding\", \"0px\");\n\n modal_checker = 0;\n });\n}", "function showSuccess() {\n showStatus();\n}", "function myIssigned() {\n\n $.ajax({\n url: base_url + 'getIassign',\n type: 'GET',\n dataType: 'json',\n success: function (data) {\n var isign = '';\n for (i = 0; i < data.length; i++) {\n if (data[i].status == '0') {\n isign +=\n divStart + `\n <label class=\"form-check-label\"><input type=\"checkbox\" class=\"change issign1\" data-oke=\"`+ data[i].id_todos + `\" data-fouc></label>\n <a href=\"detail?id=`+ data[i].id_todos + `&page=issign\"><span class=\"text-primary\">` + data[i].subject_todos + ` ` + data[i].message_todos + `<i class=\"mi-swap-horiz ml-1\"></i><i class=\"icon-paperplane ml-1\"></i><strong> ` + data[i].name_recived + `</strong> </span></a>\n <i class=\"icon-bookmark` + data[i].flag + ` ml-2 text-warning flag\"></i>` + divEnd\n\n } else {\n isign +=\n divStart + `\n <label class=\"form-check-label\"><input type=\"checkbox\" checked class=\"change issign1\" data-oke=\"`+ data[i].id_todos + `\" data-fouc></label>\n <a href=\"detail?id=`+ data[i].id_todos + `&page=issign\"><span class=\"text-success\"><del>` + data[i].subject_todos + ` ` + data[i].message_todos + `</del><i class=\"mi-swap-horiz ml-1\"></i><i class=\"icon-paperplane ml-1\"></i><strong> ` + data[i].name_recived + `</strong> Completed </span></a>\n <i class=\"icon-bookmark` + data[i].flag + ` ml-2 text-warning flag\"></i>` + divEnd\n }\n\n\n }\n // nores += '<strong><a href=\"#\" class=\"text-danger\"><i class=\"mi-cached ml-1\"></i> Load More . .</a></strong>';\n\n $('#tab1_issign').html(isign);\n $('.issign1').uniform({\n wrapperClass: 'border-dark-600 text-dark-800'\n });\n $('#issigned-bg-1').html(data.length);\n issign1();\n clickFlag();\n }\n })\n\n $.ajax({\n url: base_url + 'getIssigned',\n type: 'get',\n dataType: 'json',\n success: function (data) {\n var baris = '';\n for (i = 0; i < data.length; i++) {\n baris +=\n divStart +\n `<label class=\"form-check-label\"><input type=\"checkbox\" class=\"change issign2\" data-oke=\"` + data[i].id_todos + `\" data-fouc></label>\n <a href=\"detail?id=`+ data[i].id_todos + `&page=issign\" class=\"text-dark\"><span>` + data[i].subject_todos + data[i].message_todos + `<i class=\"mi-swap-horiz ml-1\"></i>\n <strong class=\"text-danger\">` + '<i class=\"mi-restore ml-1\"></i> ' + timee(data[i].expired_todos) + `!</strong>\n </span></a> `\n + divEnd\n }\n // baris += '<strong><a href=\"\" class=\"text-dark\"><i class=\"mi-cached ml-1\"></i> Load More . .</a></strong>';\n\n $('#tab2_issign').html(baris);\n $('.issign2').uniform();\n $('#issigned-bg-2').html(data.length);\n issign2();\n }\n })\n\n $.ajax({\n url: base_url + 'getIssignedNores',\n type: 'GET',\n dataType: 'json',\n success: function (data) {\n var nores = '';\n for (i = 0; i < data.length; i++) {\n nores +=\n divStart + `\n <label class=\"form-check-label\"><input type=\"checkbox\" class=\"change issign3\" data-oke=\"`+ data[i].id_todos + `\" data-fouc></label>\n <a href=\"detail?id=`+ data[i].id_todos + `&page=issign\"><span class=\"text-danger\">` + data[i].subject_todos + ` ` + data[i].message_todos + `<i class=\"mi-swap-horiz ml-1\"></i><i class=\"mi-sentiment-dissatisfied mr-1\"></i><strong>Please Click Me</strong></span></a>\n `+ divEnd\n }\n // nores += '<strong><a href=\"#\" class=\"text-danger\"><i class=\"mi-cached ml-1\"></i> Load More . .</a></strong>';\n\n $('#tab3_issign').html(nores);\n $('.issign3').uniform({\n wrapperClass: 'border-danger-600 text-danger-800'\n });\n $('#issigned-bg-3').html(data.length);\n issign3();\n\n }\n })\n\n\n\n $.ajax({\n url: base_url + 'getIssignedDone',\n type: 'GET',\n dataType: 'json',\n success: function (data) {\n\n var html = '';\n for (i = 0; i < data.length; i++) {\n html +=\n divStart + `\n <label class=\"form-check-label\"><input type=\"checkbox\" class=\"change issign4\" checked data-oke=\"`+ data[i].id_todos + `\" data-fouc></label> \n <a href=\"detail?id=`+ data[i].id_todos + `&page=issign\"><span class=\"text-success\"><del>` + data[i].subject_todos + ` ` + data[i].message_todos + `</del><i class=\"mi-swap-horiz ml-1\"></i><i class=\"mi-check-box ml-1\"></i> <strong>Completed At </strong>` + funSub(data[i].date_completed) + `</span></a>\n <i class=\"icon-bookmark`+ data[i].flag + ` ml-2 text-warning flag\" data-id=\"` + data[i].id_todos + `\"></i>` + divEnd\n\n }\n // html += '<strong><a href=\"#\" class=\"text-success\"><i class=\"mi-cached ml-1\"></i> Load More . .</a></strong>';\n $('#tab4_issign').html(html);\n $('.issign4').uniform({\n wrapperClass: 'border-success-600 text-success-800'\n });\n $('#issigned-bg-4').html(data.length);\n issign4();\n }\n })\n\n\n}", "function listaContactoPosicion()\n {\n $.ajax({\n type:\"GET\",\n dataType:\"json\",\n data:{\n id_obra:$(\"#id_obra\").val()\n },\n url:\"../../../dl/datos_obra/r_listaContactoPosicion_tb_firma.php\",\n success:function(data) {\n $.each(data,function(index,value) {\n $(\"#tblr_listaContactoPosicion tbody\").append(\n '<tr>'+\n '<td>'+\n data[index].txt_puesto+\n '<td>'+\n data[index].nombre_contacto+\n '<td>'+\n '<input type=\"checkbox\" name=\"id_contactoReporte\" id=\"idcontactoReporte\" value=\"'+data[index].id_contacto+'\"/>'+\n '</tr>' \n )\n });\n }\n });\n $(\"#modal_r_listaContactoPosicion\").dialog(\"open\");\n }", "function showThanks() {\n\t\t\t$(\"#IP-head-reg\").modal('hide');\n\t\t\t$('#post-sub').modal('show');\n\t\t}", "function AddRequestTypeSuccess() {\n\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#addRequestTypeDialog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Data saved successfully.\", \"dialogSuccess\");\n\n ResetRequestTypeGrid();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n }\n}", "function MessageBox(msg, bool) {\n $('#modal h4 span').remove();\n if (bool)\n $('#modal h4').append(\"<span>\" + msg + \"</span>\");\n else\n $('#modal h4').append(\"<span class=\\\"red\\\">\" + msg + \"</span>\");\n\n $(\".box-Error\").show();\n $(\".box-Confirm\").hide();\n return false;\n}", "function successSave() {\n var saveSuccess = $('#save-success');\n showSaveResult(saveSuccess);\n}", "function updateCallbackOk(result) {\n $(\"#mdlAlert\").modal(\"hide\");\n $(\"#tblAlerts\").bootstrapTable(\"updateRow\", {\n index: TableUtil.getTableIndexById(\"#tblAlerts\", $(\"#txtAlertId\").val()),\n row: {\n Id: $(\"#txtAlertId\").val(),\n Name: $(\"#txtAlertName\").val(),\n Description: $(\"#txtAlertDescription\").val(),\n DueDate: DateUtil.formatDateTime($(\"#txtAlertDueDate\")\n .data(\"DateTimePicker\").date())\n }\n });\n }", "function notification_modal_confirm_update() {\n\n header_style = 'style=\"background-color: #1DB198; color: #ffffff;\"';\n\n var modal = '<div class=\"modal fade\" id=\"modal_div\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">';\n modal += '<div class=\"modal-dialog\">';\n modal += '<div class=\"modal-content\">';\n\n modal += '<div class=\"modal-header\" ' + header_style + '>';\n modal += '<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>';\n modal += '<h4 class=\"modal-title\" id=\"myModalLabel\">' + \"Confirmation\" + '</h4>';\n modal += '</div>';\n\n modal += '<div class=\"modal-body\"><br />';\n modal += \"Are you sure you want to update this machine type?\";\n modal += '</div>';\n\n modal += '<div class=\"modal-footer\" style=\"text-align:center;\">';\n modal += '<button type=\"button\" class=\"btn btn-success\" onclick=\"updateRecord();\">OK</button>';\n modal += '<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>';\n\n modal += '</div>';\n\n modal += '</div>';\n modal += '</div>';\n modal += '</div>';\n\n $(\"#notification_modal\").html(modal);\n $(\"#modal_div\").modal(\"show\");\n $(\"#modal_div\").css('z-index', '1000002');\n\n $(\"#form_modal_div\").modal(\"hide\");\n\n $(\"body\").css(\"margin\", \"0px\");\n $(\"body\").css(\"padding\", \"0px\");\n\n $(\"#modal_div\").on(\"hidden.bs.modal\", function () {\n\n if (modal_checker == 0) {\n $(\"#form_modal_div\").modal(\"show\");\n }\n else {\n $(\"#form_modal_div\").modal(\"hide\");\n }\n\n $(\"body\").css(\"margin\", \"0px\");\n $(\"body\").css(\"padding\", \"0px\");\n\n modal_checker = 0;\n });\n}", "function updateService() { //add to onlick\n $.ajax({'success': function (html) {\n\t\t$('#modalServiceGroupsBody').html(html);\n\t\t$('#modalServiceGroups').modal('show');\n\t\t$('#Paid_Services_price').inputmask(\"9{2,9}.9{2}\");\n\t},\n\t\t\t'url': $(this).attr('href')\n });\n return false;\n}", "function verdetalle(idventa_d) {\n\t// alert(idventa);\n\tlistar_detalle_modal(idventa_d)\n\t$(\"#myModal_detalles .modal-title\").html('<i class=\"fa fa-list-ol\" aria-hidden=\"true\"></i> Detalle de Venta 00'+idventa_d);\n\t$('#myModal_detalles').modal('show');\n\n}", "function showModal() {\n setVisible(true);\n setSignUp(false);\n }", "function Update() {\n //var res = validate();\n //if (res == false) {\n // return false;\n //}\n var isChecked;\n if ($(\"#competitionFragmentedMyModal\").is(':checked'))\n isChecked = true;\n else\n isChecked = false;\n\n var constComputationObj = {\n CompetitionID: $('#CompetitionIDMyModal').val(),\n competitionNo: $('#competitionNoMyModal').val(),\n competitionNote: $('#competitionNoteMyModal').val(),\n competitionFragmented: isChecked,\n };\n $.ajax({\n url: \"/ConstComputation/Update\",\n data: JSON.stringify(constComputationObj),\n type: \"POST\",\n contentType: \"application/json;charset=utf-8\",\n dataType: \"json\",\n success: function (result) {\n loadData();\n //location.reload();\n $('#myModal').modal('hide');\n $('#CompetitionIDMyModal').val(\"\");\n $('#competitionNoMyModal').val(\"\");\n $('#competitionNoteMyModal').val(\"\");\n $('#competitionFragmentedMyModal').parent().removeClass(\"checked\");\n $('#competitionFragmentedMyModal').prop('checked', false);\n },\n error: function (errormessage) {\n alert(errormessage.responseText);\n }\n });\n}", "function Report_problem_server()\n {\n var inp, post_id, report_ct, Div = document.getElementById(\"phanhoivebaidang\");\n inp = Div.getElementsByTagName(\"input\");\n post_id = inp[0].value;\n report_ct = document.getElementById(\"comments111\").value;\n if( report_ct == \"\")\n {\n document.getElementById(\"canhbaoloi\").style.display = \"block\";\n }else\n {\n $.ajax({\n type: \"POST\",\n url: \"../../Controller/users_controller.php\",\n data:{Report_postid: post_id, Report_userid: user_id, Report_content: report_ct},\n success: function(data){\n }\n });\n\n $('#myModal1').modal('toggle'); \n setTimeout(function(){alert(\"Phản hồi của bạn đã được gửi đi. Cảm ơn sự đóng góp của bạn.\"); }, 2000);\n }\n }", "function modalDenunciaPostagem(id) {\n document.getElementById('denunciaModal').innerHTML = \"\";\n document.getElementById('txt1').checked = null;\n document.getElementById('txt2').checked = null;\n document.getElementById('txt3').checked = null;\n document.getElementById('outroDenuncia').innerHTML = \"\";\n var cd = id;\n event.preventDefault();\n console.log('Tentando abrir modal de denuncia');\n $.ajax({\n url: \"paginas/recursos/salvar-modal_denuncia.php\",\n type: \"POST\",\n data: {\n chave: 'valorizado demais esse AJAX!!',\n id: cd\n },\n success: function success(result) {\n resultado = JSON.parse(result);\n $.each(resultado, function (i, contato) {\n $(\"#denunciaModal\").append(\"<div class='textoDenuncia'>\" + \"<p> Deseja denunciar essa postagem efeituada por <a href''>\" + resultado[i].nm_nickname + \" </a> pelo seguite motivo: </p>\" + \"</div>\");\n });\n },\n error: function error(result) {\n console.error(result);\n }\n });\n}", "function DeleteMemberDonateTypeSuccess() {\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#deleteMemberDonateTypeDailog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Donate Type deleted successfully.\", \"dialogSuccess\");\n\n memberDonateTypeObjData.fnDraw();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n\n }\n}", "function update_user_booking_status(bookid,status,rowid,review){ \n if(status==5 || status==7){\n $('#myCancel').modal('hide');\n }\n $.confirm({\n title: 'Confirmations..!',\n content: 'Do you want continue on this proccess..',\n buttons: {\n confirm: function () {\n $.ajax({\n url: base_url+\"update_status_user\",\n data: {'booking_id':bookid,'status':status,'review':review,'csrf_token_name':csrf_token},\n type: 'POST',\n dataType: 'JSON',\n success: function(response){\n\n if(response=='3'){ // session expiry\n swal({\n title: \"Session was Expired... !\",\n text: \"Session Was Expired ..\",\n icon: \"error\",\n button: \"okay\",\n closeOnEsc: false,\n closeOnClickOutside: false\n }).then(function(){\n window.location.reload();\n });\n }\n\n if(response=='2'){ //not updated\n swal({\n title: \"Somethings wrong !\",\n text: \"Somethings wents to wrongs\",\n icon: \"error\",\n button: \"okay\",\n closeOnEsc: false,\n closeOnClickOutside: false\n }).then(function(){\n window.location.reload();\n });\n }\n \n if(response=='1'){ //not updated\n swal({\n title: \"Updated the booking status !\",\n text: \"Service is Updated successfully...\",\n icon: \"success\",\n button: \"okay\",\n closeOnEsc: false,\n closeOnClickOutside: false\n }).then(function(){\n $('#update_div'+rowid).hide();\n window.location.reload();\t\n });\n }\n\n\n }\n })\n },cancel: function () {\n\n },\n }\n});\n}", "function DeleteMemberHospitalSuccess() {\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#deleteMemberHospitalDailog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Hospital deleted successfully.\", \"dialogSuccess\");\n\n memberHospitalObjData.fnDraw();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n\n }\n}", "function etBdMd() {\n let no = $('#borrowing table tbody input:checked');\n let id = no.parent().next();\n let cat = id.next();\n let name = cat.next().next();\n let pos = name.next().next();\n if(no.length > 0) {\n $('#bw-modal-table table').show();\n $('#bw-modal-table p').hide();\n $('#bw-modal-table>table>tbody').html('');\n for(let i=0; i<id.length; i++) {\n $('#bw-modal-table>table>tbody').append('<tr><td class=\"bw-no\" hidden>'+no[i].id+'</td><td class=\"bw-id\">'+id[i].textContent+'</td><td class=\"bw-cat\">'+cat[i].textContent+'</td><td class=\"bw-pos\" hidden>'+pos[i].textContent+'</td><td>'+name[i].textContent+'</td><td><input value=\"1\" type=\"text\" class=\"bw-day\"></td></tr>');\n }\n $('#bw-modal').modal('open');\n $('#bw-modal>.modal-footer').html('<a class=\"modal-action modal-close waves-effect waves-green btn-flat\">取消</a><a id=\"extendBd\" class=\"modal-action modal-close waves-effect waves-green btn-flat\">續借</a>');\n } else {\n Materialize.toast('請選擇任意項目', 2000, 'rounded white-text red darken-4');\n }\n}", "function userAcceptConfirm() {\n\t\n\tvar user_id = $('#modal_user_id').val();\n\tvar user_type = $('#user_type').val();\n\n\t$(\"#user_accept_alert_msg\").css(\"display\",\"none\");\n\t$(\"#user_accept_yes_btn\").button('loading');\n\t$(\"#user_accept_no_btn\").attr(\"disabled\",true);\n\n\t$.post(basePath+\"/users/acceptuser\", { q: 1, user_id: user_id, user_type:user_type }, function( data ) {\n\n\t\t$(\"#user_accept_no_btn\").attr(\"disabled\",false);\n\t\t$(\"#user_accept_yes_btn\").button('reset');\n\t\tif(data.success == false) {\n\t\t\t//$(\"#user_accept_yes_btn\").button('reset');\n\t\t\t$(\"#user_accept_alert_msg\").html(data.data.msg);\n\t\t\t$(\"#user_accept_alert_msg\").css(\"display\",\"block\");\n\t\t\treturn false;\n\t\t}\n\t\tif(data.success == true) {\n\t\t\t//$(\"#user_accept_yes_btn\").button('reset');\n\t\t\t$(\"#user_accept_alert_msg\").html(data.data.msg);\n\t\t\t$(\"#user_accept_alert_msg\").css(\"display\",\"block\");\n\t\t\twindow.location.reload();\n\t\t}\n\t},'json');\n\n}", "function showNotifyDialog(autofetchon,vid,type){\n var isautofetch = !vid || storageGet(\"autofetchjobs_showdialog_\"+type) == vid || autofetchon == 1;\n var html = '<div class=\"modal-header\">';\n html+= '<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>';\n html+= '<h3 id=\"myModalLabel\">&nbsp;</h3>';\n html+= '</div>';\n html+= '<div class=\"modal-body\">';\n html+= '<div class=\"wrap_content\">';\n html+= '<div class=\"greenwords yahei clearfix\">';\n html+= '<i class=\"pull-left\" style=\"margin-left:40px;\"></i>';\n html+= '<div class=\"pull-left\" style=\"margin-left:10px;\">';\n html+= '<div class=\"sync_nowing '+isautofetch+'\">职位获取中</div>';\n if(isautofetch){\n html+= '';\n }else{\n html+= '<label class=\"checkbox medium gray\" style=\"padding-top:0px; text-align:left; color:#d2871d; display:none;\">'; //bug8880,取消可选每三天同步,设为默认\n html+= '<input name=\"noaskagain\" data-syncaction=\"autofetchjobs\" data-synctype=\"'+type+'\" data-vid=\"'+vid+'\" type=\"checkbox\" checked=\"checked\"/>每3天为您自动获取';\n html+= '</label>';\n }\n html+= '</div>';\n html+= '</div>';\n html+= '<div class=\"sync_redtexttips medium songti\">点击顶部“消息-任务通知”可查看进度</div>';\n html+= '<div class=\"greybakwrap\" style=\"margin-bottom:30px;\">';\n html+= '<div class=\"tipgraywords medium gray\">每3天为您自动获取,可在账户设置中关闭此服务</div>';\n html+= '</div>';\n html+= '</div>';\n html+= '</div>';\n $('#autofetchjobs').html(html).modal();\n}", "function travelFromModal() {\n $('#submit').prop('disabled', true);\n $('#return').prop('disabled', true);\n var number = $('#modal .modal-body div.target').length;\n $('#modal .modal-body div.target').each(function () {\n var that = this;\n $.ajax({\n url: basePath + '/travelers',\n type: 'POST',\n contentType: 'application/json',\n data: JSON.stringify({\n form: this.id\n })\n }).done(function () {\n $(that).prepend('<i class=\"fa fa-check\"></i>');\n $(that).addClass('text-success');\n // success = true;\n }).fail(function (jqXHR) {\n $(that).prepend('<i class=\"icon-question\"></i>');\n $(that).append(' : ' + jqXHR.responseText);\n $(that).addClass('text-error');\n }).always(function () {\n number = number - 1;\n if (number === 0) {\n $('#return').prop('disabled', false);\n }\n });\n });\n}", "function carritoVacio() {\n\n $(\".modal-body-aviso\").text(\"Debes tener al menos un producto en el carrito para poder registrarte y confirmar la compra.\");\n $(\".btnRevisar\").hide();\n $(\"#modalAviso\").modal(\"show\");\n\n}", "function showPopupElementFormular() {\r\n $(\"#\" + global.Element.PopupElementFormular).modal(\"show\");\r\n }", "function modal_modifica(garantia) \r\n{\r\n /*Recuperar el id de la garantia que se desea actualizar*/\r\n var garantia_id = garantia;\r\n $('#modal_actualiza').modal('toggle');\r\n \r\n return false;\r\n}", "function showSerialManageModal(data)\r\n{\r\n //you can do anything with data, or pass more data to this function. i set this data to modal header for example\r\n\t $('.serialManageDeleteByAdmin').attr('href','/serialManageDeleteByAdmin?id='+data);\r\n\t$(\"#mySerialManageModal .serialManageDeleteByAdminId\").html(data)\r\n $(\"#mySerialManageModal\").modal();\r\n}", "function showConfirmModal(title, message, one_button, callback) {\n var raw_html_begin = '\\\n <div class=\"modal fade\" id=\"confirm-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modal-label\">\\\n <div class=\"modal-dialog modal-sm\" role=\"document\">\\\n <div class=\"modal-content\">\\\n <div class=\"modal-header\">\\\n <h4 style=\"font-size: 19px;\" class=\"modal-title\" id=\"modal-label\">\\\n <!-- title -->\\\n </h4>\\\n </div>\\\n <div class=\"modal-body\" style=\"text-align: center;\">\\\n <!-- message -->\\\n </div>\\\n <div id=\"modal-click-buttons\" class=\"modal-footer\">';\n\n var raw_html_end = '\\\n </div>\\\n </div>\\\n </div>\\\n </div>';\n var no_button = '<button id=\"modal-no-button\" class=\"btn btn-danger\" data-dismiss=\"modal\">取消</button>'\n var yes_button = '<button id=\"modal-yes-button\" class=\"btn btn-success\" data-dismiss=\"modal\">确认</button>'\n\n if (one_button === undefined || one_button === false) raw_html_begin += no_button;\n raw_html_begin += yes_button;\n $(\"body\").append(raw_html_begin + raw_html_end);\n var modal = $(\"#confirm-modal\");\n\n modal.find(\".modal-header > h4\").html(title);\n modal.find(\".modal-body\").html(message);\n modal.find(\"#modal-yes-button\").click(callback);\n\n modal.on(\"hidden.bs.modal\", function () {\n modal.remove();\n });\n modal.modal();\n\n resizeComponents();\n loadComplete();\n}", "function registerEditDealerusnVehicletranspModal(){\r\n\r\n\r\n\t\t//Add a Bootstrap Modal DIV to Edit Dealer Vehicle Quotation Details\r\n\t\tvar editDealerusnVehicletranspModal = '<div class=\"modal fade\" id=\"editDealerusnVehicletranspModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\\\r\n\t\t <div class=\"modal-dialog\">\\\r\n\t\t <div class=\"modal-content\">\\\r\n\t\t <div class=\"modal-header\">\\\r\n\t\t <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>\\\r\n\t\t <h3 class=\"modal-title product-search-title\" id=\"myModalLabel\"><center>AutoScoop</center></h3>\\\r\n\t\t </div>\\\r\n\t\t\t\t\t<h4 class=\"modal-title\" id=\"myModalLabel\"><center>View User Notification Details</center></h4>\\\r\n\t\t\t <form id=\"edit-dealer-usn-vehicle-transp-content-form\">\\\r\n\t\t\t\t\t<div class=\"modal-body edit-dealer-usn-vehicle-transp-content\">\\\r\n\t\t </div>\\\r\n\t\t <div class=\"modal-footer\">\\\r\n\t\t <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>\\\r\n\t\t\t<button type=\"button\" class=\"btn btn-primary submit-editDealerusnVehicletranspModal\" data-dismiss=\"modal\">Save changes</button>\\\r\n\t\t\t\t\t</div>\\\r\n\t\t </form>\\\r\n\t\t\t\t\t<p><center>&copy; 2017 Autoscoop</center></p>\\\r\n\t\t </div>\\\r\n\t\t </div>\\\r\n\t\t</div>';\r\n\r\n\t\t$(document.body).append(editDealerusnVehicletranspModal);\r\n\r\n\r\n\t\t$('a.anchor-editDealerusnVehicletranspModal').on('click', function(event) {\r\n\r\n\r\n\t\t\tvar data = $(event.target).data('details');\r\n\t\t\tvar quotIdHiddenField = '<input type=\"hidden\" name=\"userNotificationId\" value=\"' + data.userNotificationId + '\" />';\r\n\t\t\t// start work here\r\n\t\t\t\r\n\t\t\tvar status = '<input type=\"checkbox\" name=\"status\" />';\r\n\t\t\tif(data.status)\r\n\t\t\t\tstatus = '<input type=\"checkbox\" name=\"status\" checked=\"checked\" />';\r\n\t\t\tvar editDealerusnVehicletranspForm = '<form id=\"edit-dealer-usn-vehicle-transp-content-form\"><table>\\\r\n\t\t\t\t<tr><td>userNotificationId</td><td>' + data.userNotificationId + '</td></tr>\\\r\n\t\t\t\t<tr><td>' + quotIdHiddenField + '</td></tr>\\\r\n\t\t\t\t<tr><td>Reminder Type </td><td>' + data.code + '</td></tr>\\\r\n\t\t\t\t<tr><td>Vehicle Type </td><td>' + data.typeOfReq + '</td></tr>\\\r\n\t\t\t\t<tr><td>Reg No / VIN </td><td>' + data.makeDescription + '</td></tr>\\\r\n\t\t\t\t<tr><td>Due Date</td><td> <input type=\"text\" onfocus=\"(this.type=\\'date\\')\" name=\"date\" class=\"input-text full-width\" value=\"' + data.flex11 + '\"/></td></tr>\\\r\n\t\t\t\t<tr><td>Message </td><td>' + data.comment + '</td></tr>\\\r\n\t\t\t\t<tr><td>Status</td><td>' + status + '</td></tr>\\\r\n\t\t\t\t</table></form>';\r\n\t\t\teditDealerusnVehicletranspForm = editDealerusnVehicletranspForm.replace(/>null</g, \">--NA--<\");\r\n\t\t\teditDealerusnVehicletranspForm = editDealerusnVehicletranspForm.replace(/>undefined</g, \">--NA--<\");\r\n\t\t\t$(\".edit-dealer-usn-vehicle-transp-content\").html(editDealerusnVehicletranspForm);\r\n\t\t});\r\n\r\n\t\t$('button.submit-editDealerusnVehicletranspModal').on('click', function(e) {\r\n\r\n\t\t\tvar jsonInput = $(\"#edit-dealer-usn-vehicle-transp-content-form\").convertFormDataToJSON();\r\n\r\n\r\n\t\t\t$.ajax({\r\n\t\t\t\ttype: \"POST\",\r\n\t\t\t\turl: \"api/myVehicleNotifyeUpdate?_method=PUT\",\r\n\t\t\t\tdata: jsonInput,\r\n\t\t\t\tcontentType:'application/json',\r\n\t\t\t\tsuccess: function(result){\r\n\t\t\t\t\t$(\"#anchor-editDealerusnVehicletranspModal-\" + result.myVehicleId).data('details', result);\r\n\t\t\t\t\talert(\"Successfully upated the My Vehicle Garage Details..\");\r\n\t\t\t\t\t//angular.element(document.getElementById('myController13')).scope().vehicleRetrievalforLogBook();\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\r\n\t\t});\r\n\t\t$.fn.convertFormDataToJSON = function(){\r\n\t\t\tvar checkboxes = [];\r\n\t\t\t$(this).find('input:checkbox:checked').each(function(){\r\n\t\t\t\tcheckboxes.push($(this).attr(\"name\"));\r\n\t\t\t});\r\n\t\t\tvar o = {};\r\n\t\t var a = this.serializeArray();\r\n\t\t $.each(a, function() {\r\n\t\t if (o[this.name] != undefined) {\r\n\t\t if (!o[this.name].push) {\r\n\t\t o[this.name] = [o[this.name]];\r\n\t\t }\r\n\t\t if($.inArray(this.name, checkboxes) != -1)\r\n\t\t o[this.name].push('true' || '');\r\n\t\t else\r\n\t\t \to[this.name].push(this.value || '');\r\n\t\t } else {\r\n\t\t \tif($.inArray(this.name, checkboxes) != -1)\r\n\t\t \t\to[this.name] = 'true' || '';\r\n\t\t\t else\r\n\t\t\t \to[this.name] = this.value || '';\r\n\t\t }\r\n\t\t });\r\n\t\t return JSON.stringify(o);\r\n\t\t}\r\n\r\n\r\n\t}", "function modal_reasignar(bien_id) \r\n{\r\n $('#modal_reasignar').modal('toggle');\r\n /*Llamar */\r\n return false;\r\n}", "function carrega_modal_elementos_rede(pep_id){ \n\n\n //antes de enviar verifica se o usuario esta logado\n var sessao_expirada = valida_sessao_expirada();\n\n //atualiza as opções do modal\n $( \"#conteudo_elemento_rede\" ).show( \"slow\");\n $( \"#conteudo_plantas_configuracao\" ).hide( \"slow\");\n $( \"#mensagem_retorno_valida_elemento_rede\" ).hide();\n $( \"#id_pep_nivel2_conf\" ).val(pep_id);\n $( \"#botao_finaliza_configuracao\" ).hide();\n $( \"#botao_avanca_configuracao\" ).show();\n $( \"#mensagem_retorno_funcao_configuracao\").hide();\n $( \"#mensagem_erro_valida_elemento_rede\" ).hide();\n $( \"#botao_fechar_modal\").hide();\n \n\n\n /* Faz a configuração necessaria do laravel antes de enviar */\n $.ajaxSetup({\n headers: {\n 'X-CSRF-TOKEN': $('meta[name=\"csrf-token\"]').attr('content')\n }\n });\n\n $.ajax({ \n type: 'GET', \n contentType: \"application/json\",\n url: './lista_elemento_segmento?pep2='+pep_id, \n data: '',\n dataType:'json',\n cache: false,\n beforeSend:function(xhr, settings){\n $(\"#lista_elementos_rede\").html( \"<tr align='center' ><td colspan='10'><i class='fa fa-circle-o-notch fa-spin fa_carregando'></i></td></tr>\" );\n },\n success:function(results){\n var i = 1;\n\n /***********************************Preenche a listagem dos dados***************************/\n $(\"#lista_elementos_rede\").html('');\n\n $.each(results.lista, function() {\n\n var checked = '';\n\n if(this.tem_acesso!=null){\n var checked = \" checked='checked' \";\n }else{\n var checked = \" \"; \n }\n\n\n $(\"#lista_elementos_rede\").append(\"<label for='checkbox1' class='form-check-label '>\"+\n \"<input \"+checked+\" type='checkbox' name='id_elemento_rede[]' \"+ \n \"' value='\"+this.id_elemento_rede+\"' class='form-check-input'>\"+this.codigo_elemento_rede+\n \" - \"+this.elemento_rede+\"</label><br>\");\n\n });\n\n /***********************************Preenche a listagem dos dados***************************/\n \n\n },\n error: function(data) { \n //Exibe mensage de erro\n $(\"#lista_elementos_rede\").html(\"Falha ao executar função,Por favor faça o login novamente. Caso o erro persista Por favor informe ao adminstrador do sistema\");\n\n }\n });\n }", "function btncheck() {\n //alert(\"ok\");\n\n $(\"#butsave\").attr(\"disabled\", \"disabled\");\n var name = $('#txtname').val();\n var email = $('#txtemail').val();\n var phone = $('#txtcontact').val();\n var city = $('#city').val();\n //alert(name);\n if (name != \"\" && email != \"\" && phone != \"\" && city != \"\") {\n $.ajax({\n url: \"my_ajax.php\",\n type: \"POST\",\n data: {\n name: name,\n email: email,\n phone: phone,\n city: city,\n status: '1'\n },\n cache: false,\n success: function (dataResult) {\n //var dataResult = JSON.parse(dataResult);\n //alert(dataResult);\n // if(dataResult.statusCode==200){\n // \t$(\"#butsave\").removeAttr(\"disabled\");\n // \t$('#fupForm').find('input:text').val('');\n // \t$(\"#success\").show();\n // \t$('#success').html('Data added successfully !'); \t\t\t\t\t\t\n // }\n // else if(dataResult.statusCode==201){\n // alert(\"Error occured !\");\n // }\n if (dataResult == 1) {\n $(\"#butsave\").removeAttr(\"disabled\");\n $('#fupForm').find('input:text').val('');\n $(\"#success\").show();\n $('#success').html('Data added successfully !');\n }\n else {\n alert(\"Error occured !\");\n }\n\n }\n });\n }\n else {\n alert('Please fill all the field !');\n $(\"#butsave\").attr(\"disabled\", false);\n }\n}", "function successfulCallback(data) {\n\n\tif( data[\"flag\"]!=0 ) {\n\t console.log(\"Error: Failed to save updated argument :(\");\n\t return false;\n\t}\n\t\n\t$('#SaveLeft').hide();\n }", "function showConfirmationModal(arg) {\n\tjQuery('#modal_message_confirm_generic_title').text(arg.title);\n\tjQuery('#modal_message_confirm_generic_body').text(arg.message);\n\tjQuery('#modal_message_confirm_generic').modal('show');\n}", "function EditRequestTypeSuccess() {\n if ($(\"#updateTargetId\").html() == \"True\") {\n\n //now we can close the dialog\n $('#editRequestTypeDialog').dialog('close');\n\n //JQDialogAlert mass, status\n JQDialogAlert(\"Data updated successfully.\", \"dialogSuccess\");\n\n ResetRequestTypeGrid();\n\n }\n else {\n //show message in popup\n $(\"#updateTargetId\").show();\n }\n}", "function success(result) {\n\n try {\n\n if (result === true)\n {\n\n var curRec = currentRecord.get();\n var recordId = curRec[\"id\"];\n\n log.debug({title: 'record', details: curRec});\n log.debug({title: 'record ID', details: recordId});\n\n // setting Email for Account Confirmation field value to true.\n\n var id = record.submitFields({\n type: record.Type.CUSTOMER,\n id: recordId,\n values: {\n custentity_email_approve_chckbox: true\n }\n });\n\n window.location.reload();\n }\n\n\n } catch (err) {\n log.error({title: \"Error in dialog block\", details: err.message});\n }\n }", "function modalSearch(){\n\t$('#lbl_title').text('Search Data Infaq');\n\t$('#m_search').modal('show');\n}", "function addstaff(){\r\n resetModal();\r\n help = true;\r\n $('#modal_add').text(\"Add Now !\");\r\n $('.modal-title').text(\"Add New Staff Infomation\");\r\n $('#modal_id').attr('disabled',false);\r\n}", "function orderCancleButtonClick() {\n $('#orderCancleModal').modal('show');\n}", "function ShowModalForm(modal_id){\n console.log(modal_id.data);\n var btn = $(this);\n\n $.ajax({\n url: btn.attr(\"data-url\"),\n \n type: 'get',\n\n dataType: 'json',\n\n beforeSend: function () {\n \n $(modal_id.data).modal('show');\n \n },\n\n success: function (data) {\n \n $(modal_id.data + ' .modal-content').html(data.html_form);\n }\n });\n }", "function success(data) {\n flag = 1;\n }", "function modalisshowing() {\n\n return isshowing;\n\n }", "function showSearchBookingsModal() {\n $.ajax({\n url: \"/Booking/SearchModal/\",\n cache: false,\n type: \"Post\",\n success: function (html) {\n $(\"#modalPlaceholder\").html(html);\n $('#searchModal').modal('show');\n\n applyStyles();\n }\n });\n}", "function setCreateButton(){ \n $(\"#create_contact_form\").on('ajax:success', createContactResponse) \n }", "function ajaxindicatorstart() {\n if ($('body').find('#loadingDiv').attr('id') != 'loadingDiv') {\n var loadingString = '<div id=\"loadingDiv\" class=\"modal1\"><div id=\"loading-image\" class=\"center\"><img src=\"../assets/img/loader.gif\" alt=\"Loading...\" /></div></div>';\n $('body').append(loadingString);\n $('#loadingDiv .bg').height('100%');\n $('#loadingDiv').fadeIn(300);\n $('body').css('cursor', 'wait');\n }\n }", "function generateAproposdenous(){\n var request = new XMLHttpRequest();\n var url = \"/aproposdenous\";\n var lan = document.getElementById(\"cboxfltLang\").value;\n if (lan!=null && lan!=\"\") url = url +'?lan=' +lan;\n request.open(\"GET\", url, true);\n request.send(); \n if( $('#blockAproposdenous').hasClass('in') )\n var a=1;\n else \n $(\"#blockAproposdenous\").modal({backdrop: 'static', keyboard: false}); //(\"show\");\n} // end a propos de nous", "function modal(content, callbackOk) {\n\t$(\"#modalGP .modal-body\").html(content);\n\t$(\"#modalGP\").modal();\n\t$(\"#modalGP .ircms-modal-ok\").off(\"click\");\n\t$(\"#modalGP .ircms-modal-ok\").on(\"click\", callbackOk);\n}", "function modal_detalle(garantia) \r\n{\r\n /*Recuperar el id de la garantia que se desea actualizar*/\r\n var garantia_id = garantia;\r\n $('#modal_detalle').modal('toggle');\r\n \r\n return false;\r\n}", "function updateCallbackOk(result) {\n $(\"#mdlTask\").modal(\"hide\");\n $(\"#tblTasks\").bootstrapTable(\"updateRow\", {\n index: TableUtil.getTableIndexById(\"#tblTasks\", $(\"#txtTaskId\").val()),\n row: {\n Id: $(\"#txtTaskId\").val(),\n Name: $(\"#txtTaskName\").val(),\n Description: $(\"#txtTaskDescription\").val(),\n Order: $(\"#txtTaskOrder\").val(),\n Status: $(\"#ddlTaskStatus option:selected\").text()\n }\n });\n }", "function mostrarModalParaConfirmarListarOrgSoc(id) {\n var ruta = \"/confirmarListarOrgSoc/\"+id;\n var metodo = \"POST\";\n $.ajax({\n type : metodo,\n url : ruta,\n datatype : \"html\",\n success : function (result) {\n showInModal(\"modal2\", result);\n }\n });\n}", "function notification_modal_confirm() {\n\n header_style = 'style=\"background-color: #1DB198; color: #ffffff;\"';\n\n var modal = '<div class=\"modal fade\" id=\"modal_div\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">';\n modal += '<div class=\"modal-dialog\">';\n modal += '<div class=\"modal-content\">';\n\n modal += '<div class=\"modal-header\" ' + header_style + '>';\n modal += '<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>';\n modal += '<h4 class=\"modal-title\" id=\"myModalLabel\">' + \"Confirmation\" + '</h4>';\n modal += '</div>';\n\n modal += '<div class=\"modal-body\"><br />';\n modal += \"Are you sure you want to submit WIP Data?\";\n modal += '</div>';\n\n modal += '<div class=\"modal-footer\" style=\"text-align:center;\">';\n modal += '<button type=\"button\" class=\"btn btn-success\" onclick=\"SubmitWIPData();\">OK</button>';\n modal += '<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>';\n\n modal += '</div>';\n\n modal += '</div>';\n modal += '</div>';\n modal += '</div>';\n\n $(\"#notification_modal\").html(modal);\n $(\"#modal_div\").modal(\"show\");\n $(\"#modal_div\").css('z-index', '1000001');\n\n $(\"body\").css(\"margin\", \"0px\");\n $(\"body\").css(\"padding\", \"0px\");\n}", "function confirm_dialog(mensaje) {\n\n var contenido='<div id=\"mensaje\">';\n\t contenido+='<p style=\"color:black; text-align:center;\" class=\"mensaje\">Esta Seguro de '+mensaje+' el Usuario?</p>';\n\t\t contenido+='<div class=\"botones\" style=\"text-align:center;\">';\n\t\t contenido+='<a href=\"#\" style=\"color:#fff;\" id=\"aceptar\" class=\"btn btn-primary\">Aceptar</a>';\n\t\t contenido+='<a href=\"#\" style=\"color:#fff; margin-left:10px;\" id=\"cancelar\" class=\"btn btn-primary\">Cancelar</a>';\n\t\t contenido+='</div>'\n\t contenido+='</div>';\n\t \n\t modals(\"Informaci&oacute;n <i class='icon-question-sign'></i>\",contenido);\n\t \n\t $(\"#aceptar\").click(function(){\n\t\n\t\tvar cuanto=$(\".cedula_super\").length;\n\t\tif(cuanto >0){\n\t\t\tvar cedula=$(\".cedula_super\").html();\n\t\t\tvar estado=$(\".estado_super\").html();\n\t\t\t\n\t\t\t$.ajax({\n\t\t\t\turl:'activar_super.php',\n\t\t\t\ttype:'POST',\n\t\t\t\tdata:\"cedula=\"+cedula+\"&estado=\"+estado,\n\t\t\t\tsuccess:function(data){\n\t\t\t\t\t//document.write(data); return false;\n\t\t\t\t\tif(data=='3'){\n\t\t\t\t\t\t$(\".mensaje\").html(\"\");\n\t\t\t\t\t\t$(\".mensaje\").html('No se puede inactivar el usuario porque esta cubriendo un turno');\n\t\t\t\t\t\t$(\"#cancelar\").css(\"display\",\"none\");\n\t\t\t\t\t\t $(\"#aceptar\").click(function(){\n\t\t\t\t\t\t\t$('#myModal2').modal('hide');\n\t\t\t\t\t\t });\t \t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(data=='1'){\n\t\t\t\t\t\t\n\t\t\t\t\t\t$(\".mensaje\").html(\"\");\n\t\t\t\t\t\t$(\".mensaje\").html('Se hicieron los cambios correctamente');\n\t\t\t\t\t\t $(\"#content\").load('supernumerario_catalogo.php');\n\t\t\t\t\t\t $(\"#cancelar\").css(\"display\",\"none\");\n\t\t\t\t\t\t$(\"#aceptar\").click(function(){\n\t\t\t\t\t\t\t$('#myModal2').modal('hide');\n\t\t\t\t\t\t })\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\t\n\t\t}\n\t\treturn false;\n\t });\n\t \n\t $(\"#cancelar\").click(function(){\n\t\t$('#myModal2').modal('hide');\n\t });\n\t \n\t \n}", "function runModal() {\r\n $(\"#myModal\").modal(\"show\");\r\n }", "function adminProfileModal(adminID){\r\n// alert(adminID);\r\n $.ajax({\r\n url: site_url+\"hpp/admin/selectAdminProfileModalById?adminID=\"+adminID,\r\n method:'POST',\r\n data:{ADMIN_ID:adminID},\r\n success:function(res){\r\n $('#adminProfileModalBody').html(res);\r\n }\r\n \r\n });\r\n}" ]
[ "0.7221789", "0.7013255", "0.68668854", "0.68075836", "0.67512566", "0.6748442", "0.6672075", "0.66658974", "0.6620404", "0.6616794", "0.6615691", "0.66063505", "0.6568175", "0.6550736", "0.65324014", "0.649554", "0.64890504", "0.6488747", "0.6460605", "0.64553523", "0.63936025", "0.6374709", "0.63607913", "0.6358997", "0.6353709", "0.6342478", "0.6331766", "0.63251597", "0.6315942", "0.63055813", "0.62756455", "0.6257655", "0.6243113", "0.62334704", "0.62326485", "0.62235266", "0.62180245", "0.62054497", "0.61901116", "0.6168518", "0.615774", "0.6156388", "0.61558676", "0.6154757", "0.6154049", "0.6146575", "0.61315554", "0.6115242", "0.610035", "0.60979193", "0.6094345", "0.60934955", "0.6092056", "0.6087613", "0.6087604", "0.60863584", "0.6084489", "0.6082714", "0.6077518", "0.6069653", "0.6067575", "0.60639215", "0.60630953", "0.60590243", "0.6047185", "0.6042956", "0.6042136", "0.60371333", "0.6032676", "0.6026862", "0.6021871", "0.6019335", "0.6005851", "0.6004775", "0.60044867", "0.6003812", "0.600002", "0.5996093", "0.59954166", "0.5994995", "0.59922844", "0.5992077", "0.59897906", "0.59889734", "0.5984752", "0.5982611", "0.5981601", "0.59814173", "0.5976547", "0.5974377", "0.59700966", "0.5967534", "0.59655637", "0.5963683", "0.5962801", "0.59626937", "0.59601104", "0.5953761", "0.5952394", "0.5951393" ]
0.6455422
19
abort ajax request on modal close. console.log(dialogFx);
function CloseFxDialog(e) { $('#app-ajax-modal .modal-dynamic-content').html(''); // console.log('modal close events',e); // $(this).find(".modal-dialog").removeClass("modal-lg").addClass("mini-modal"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abort() {\n if ( this.xhr ) {\n this.xhr.abort();\n }\n }", "abort () {\n this.request.abort();\n }", "abort() {\n if (this.xhr) {\n this.xhr.abort();\n }\n }", "close() {\n window.http.xmlHtpRequest.abort();\n }", "cancel() {\n $('#snmpDialog').jqxWindow('hide');\n }", "function dialogAjaxDone(json){\n\tNUI.ajaxDone(json);\n\tif (json.statusCode == NUI.statusCode.ok){\n\n\t\t\n\t\tif (\"true\" == json.closeDialog) {\n\t\t\t$.pdialog.close();\n\t\t}\n\t}\n}", "endLoading() {\n this.modal.jQueryModalFade.removeClass('modal_fade_trick');\n this.modal.jQueryModalAwait.css('display', 'none');\n }", "abort() {\n this.$mdDialog.hide();\n }", "modalCancel(){\n\t\t// save nothing\n this.setValues = null;\n\t\t// and exit \n this.modalEXit();\n }", "function closeDialog(obj) {\n if (typeof obj == 'undefined' || obj == 'all' ) {\n $('dialog').removeClass('isVisible');\n $('#dialog_mask').removeClass('isVisible');\n $('main,nav').removeClass('dialogIsOpen');\n // e.preventDefault();\n }\n}", "function AjaxLoading() {\n EndAjaxLoading();\n\n $(\"#dialog_progress\").dialog({\n modal: true,\n width: 150,\n height: 130,\n resizable: false,\n autosize: false\n }).siblings('.ui-dialog-titlebar').remove().css(\"z-index\", 1005);\n}", "function closeRemoteModal(){\n\t$remoteModal.data(\"overlay\").close();\n\t$remoteModalContent.html('').html($remoteModalLoading);\n}", "function X() {\n $(\"#Dialog_Grid\").dialog(\"close\");\n}", "function handleClose() {\n setDialog(false);\n }", "function handleClose() {\n setDialog(false);\n }", "closemodal() {\n this.modalCtr.dismiss();\n }", "function dialogCancel(){\n\n // clear old inputs\n $content.find( localCfg.tabQueryItems ).remove();\n $content.find( localCfg.tabResultList ).empty();\n $content.find( localCfg.tabDistrList ).empty();\n $content.find( localCfg.tabDistrChart ).empty();\n $content.find( localCfg.tabAdjustList ).empty();\n\n // close the dialog\n dialog.close();\n\n }", "cancel() {\n this.$modalInstance.close();\n\n }", "function closeModalDialog () {\n mainView.send('close-modal-dialog');\n}", "function onDialogCancel()\n{\n\tdialogClosed();\n\treturn true;\n}", "cancel(e) {\n // reset and close dialog\n this.close();\n }", "abortRequest() {\n if (this.layer.request) {\n if (this.layer.request.readyState !== 4) {\n // Abort the request && reset the layer\n this.layer.request.abort();\n this.layer = {};\n }\n }\n }", "cancel() {\n this.modal.jQueryModalFade.removeClass('modal_fade_trick');\n this.modal.jQueryModalWindow.css('display', 'none');\n this.clear();\n this.clearInvalid();\n this.hideNotes();\n if(!this.good){\n this.initPlaceholders();\n }\n }", "function endloading(){\n\t//$(\"#ajaxloading\").fadeOut(1000);\n\t$('.sl-popup:visible .overlay').fadeOut(1000);\n}", "_closeOutOfSyncModal() {\n this._hideOutOfSyncModal();\n }", "cancel() {\n\t\tthis.$uibModalInstance.dismiss();\n\t}", "function X_Inac() {\n $(\"#Dialog_Inactivar\").dialog(\"close\");\n}", "function onCancelButtonClick() {\n modal.close();\n }", "function onCancelButtonClick() {\n modal.close();\n }", "function CancelModalDialog() {\r\n tb_remove();\r\n }", "abort () {\n // ...\n }", "function onClosed()\n\t{\n\t\t//cancel dialog with no data\n\t\tModalDialog.close();\n\t}", "handleModalClose() {}", "closeModal() {\n this.uploadFileModal = false;\n this.closedModel = false;\n this.reNameModel = false;\n this.deleteModel = false;\n }", "handleCancel() {\n this.handleModalToggle();\n this.resetData();\n }", "function hideModalOverlay() \n{\n\t$(\"#ajaxindicator-modal-overlay\").stop().fadeOut(100);\n}", "function close() {\n $modalInstance.dismiss();\n }", "function X_Emer() {\n $(\"#Dialog_emergente\").dialog(\"close\");\n}", "function xhrOnUnloadAbort() {\n\tjQuery( window ).unload(function() {\n\t\t// Abort all pending requests\n\t\tfor ( var key in xhrCallbacks ) {\n\t\t\txhrCallbacks[ key ]( 0, 1 );\n\t\t}\n\t});\n}", "function xhrOnUnloadAbort() {\n\tjQuery( window ).unload(function() {\n\t\t// Abort all pending requests\n\t\tfor ( var key in xhrCallbacks ) {\n\t\t\txhrCallbacks[ key ]( 0, 1 );\n\t\t}\n\t});\n}", "function closeProgressBar() {\n\n $(\"#appProgressBar\").dialog(\"close\");\n}", "_onCancel () {\n this._toggleModal(false);\n this.setState({refreshed: false});\n this.restartModal();\n }", "_xhrOnAbort() {\n var xhr = this.xhr;\n this.abort(ResourceLoader.reqType(xhr) + ' Request was aborted by the user.');\n }", "function doCloseConfirmPending(){\r\n\t$(\"#modalConfirmPending\").modal(\"hide\");\r\n}", "closeModal() {\n this.close();\n }", "function handleClose() {\n props.handleDialog(false);\n }", "abort() {\n this.emit('abort');\n }", "handleCancelButtonDialog() {\n this.showDialog(false);\n }", "onCancel_() {\n this.close();\n }", "function closeDialog()\n\t\t{\n\t\t\t$(\"#dialog\").fadeOut(\"slow\", function()\n\t\t\t\t{\n\t\t\t\t\t$(\"#dialog\").empty();\n\t\t\t\t});\n\t\t}", "abort () {\n this.requests.forEach(req => req.abort())\n super.abort()\n }", "closeModal() {\n this.closeModal();\n }", "function abortXHR(xhr) {\n if (xhr && xhr.readyState < 4) {\n xhr.onreadystatechange = $.noop;\n xhr.abort();\n }\n }", "handleModalClose() {\n if (!this.state.submitBusy) {\n this.child.closeModal();\n }\n }", "function cancel() {\n $uibModalInstance.dismiss('cancel');\n }", "function cancel() {\n $uibModalInstance.dismiss('cancel');\n }", "function cancel() {\n $uibModalInstance.dismiss('cancel');\n }", "function cancel() {\n $uibModalInstance.dismiss('cancel');\n }", "function cancel() {\n $uibModalInstance.dismiss('cancel');\n }", "function cancel() {\n $uibModalInstance.dismiss('cancel');\n }", "function cancel() {\n $uibModalInstance.dismiss('cancel');\n }", "cancel() {\n if (this._abortController != null) {\n this._abortController.abort();\n\n this._abortController = null;\n }\n }", "function cancelPendingAjaxLoad() {\n if (goCancelAjax) {\n console.log(\"Cancelling current AJAX call\");\n goCancelAjax.cancel();\n goCancelAjax = null;\n }\n}", "function abortXHR(xhr) {\n if (xhr && xhr.readyState < 4) {\n xhr.onreadystatechange = $.noop\n xhr.abort()\n }\n }", "downloadingCanceled() {\n if (this.request !== null) {\n this.request.abort();\n }\n }", "onRequestClose() {\n this.request = undefined\n this.loading = false\n }", "function X_Conuntry() {\n $(\"#Dialog_Country\").dialog(\"close\");\n}", "abort() {\n }", "handleCancelModal() {\n this.template.querySelector(\"c-modal-component-template\").hide();\n }", "handleCloseModal(){\n this.bShowModal = false;\n }", "function closeIframeDialog() {\r\n window.parent.postMessage(kradVariables.MODAL.MODAL_CLOSE_DIALOG, \"*\");\r\n // Fix for lingering loading message in IE\r\n hideLoading();\r\n}", "function abortXHR(xhr) {\n if ( xhr && xhr.readyState < 4) {\n xhr.onreadystatechange = $.noop\n xhr.abort()\n }\n}", "function abortXHR(xhr) {\n if ( xhr && xhr.readyState < 4) {\n xhr.onreadystatechange = $.noop\n xhr.abort()\n }\n}", "'click .close' (event) {\n console.log(\"MODAL CLOSED VIA X\");\n modal.hide();\n }", "function cancel(){\n $uibModalInstance.dismiss('delete');\n }", "function cancel ()\n {\n $uibModalInstance.dismiss('cancel');\n }", "close() {\n this.modal.dismiss();\n }", "function closeImportProjectDialog() {\n $('#import-project-dialog').modal('hide');\n}", "function closeAlertIframe(){\n\n $('#modal').fadeOut('fast');\n}", "onSubmit() {\n this.activeModal.close(1);\n }", "function triggerStopAction(ob) {\r\n\t$('#stopActionPrompt').dialog({ bgiframe: true, modal: true, width: (isMobileDevice ? $('body').width() : 550), \r\n\t\tclose: function(){\r\n\t\t\tvar obname = ob.prop('name');\r\n\t\t\tvar varname = ''\r\n\t\t\t// Undo last response if closing and returning to survey\r\n\t\t\tif (obname.substring(0,8) == '__chkn__'){\r\n\t\t\t\t// Checkbox\r\n\t\t\t\t$('#form input[name=\"'+obname+'\"]').each(function(){\r\n\t\t\t\t\tif ($(this).attr('code') == ob.attr('code')) {\r\n\t\t\t\t\t\t$(this).prop('checked',false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t$('#form input[name=\"'+obname.replace('__chkn__','__chk__')+'_RC_'+ob.attr('code')+'\"]').val('');\r\n\t\t\t\tvarname = obname.substring(8,obname.length);\r\n\t\t\t} else if (obname.substring(obname.length-8,obname.length) == '___radio'){\r\n\t\t\t\t// Radio\r\n\t\t\t\tuncheckRadioGroup(ob);\r\n\t\t\t\t$('#form input[name=\"'+obname.substring(0,obname.length-8)+'\"]').val('');\r\n\t\t\t\tvarname = obname.substring(0,obname.length-8);\r\n\t\t\t} else {\r\n\t\t\t\t// Drop-down\r\n\t\t\t\t$('#form select[name=\"'+obname+'\"]').val('');\r\n\t\t\t\tvarname = obname;\r\n\t\t\t}\r\n\t\t\t// Highlight the row they need to return to \r\n\t\t\tsetTimeout(function(){\r\n\t\t\t\t$('#stopActionReturn').dialog({ bgiframe: true, modal: true, width: 320, buttons: { \r\n\t\t\t\t\t'Continue survey': function() { \r\n\t\t\t\t\t\thighlightTableRow(varname+'-tr',2500); $(this).dialog('close'); \r\n\t\t\t\t\t}\r\n\t\t\t\t} });\r\n\t\t\t},100);\r\n\t\t},\r\n\t\tbuttons: { \r\n\t\t\t'Continue survey and undo last response': function() { \r\n\t\t\t\t// Trigger calculations and branching logic\r\n\t\t\t\tsetTimeout(function(){calculate();doBranching();},50);\r\n\t\t\t\t$(this).dialog('close'); \r\n\t\t\t},\r\n\t\t\t'End the survey now': function() {\r\n\t\t\t\t$('#form').prop('action', $('#form').prop('action')+'&__endsurvey=1' );\r\n\t\t\t\tdataEntrySubmit(document.getElementById('submit-action'));\r\n\t\t\t}\r\n\t\t} \r\n\t});\r\n}", "cancelModalBox() {\n // Hide modal\n $(this.refs.paginationModal).modal(\"hide\");\n }", "function closeContentEditor(){\n $.PercBlockUI();\n cancelCallback(assetid);\n dialog.remove();\n $.unblockUI();\n $.PercDirtyController.setDirty(false);\n }", "closemodal() {\n this.modalCtr.dismiss(this.items);\n }", "function abortRequest(){\n this.aborted = true;\n this.clearTimeout();\n this.emit('abort');\n}", "function actionCanceled() { \n\tOK = 3;\n\tdlg.hide();\n}", "abort() {\n abortSignal(getSignal(this));\n }", "abort() {\n abortSignal(getSignal(this));\n }", "cancel() {\n if (this._requestTask && typeof this._requestTask.abort === 'function') {\n this._requestTask.abort();\n }\n\n this._requestTask = null;\n }", "function eliminarPago(id){ \n $.ajax({\n type: \"POST\",\n url: \"include/pagos/eliminar_pago_temp.php\",\n data: {\"id\": id},\n success: function(response){ \n $(\"#close-pagos\").click();\n }\n }); \n}", "dialogFadeOut() {\r\n $('#dialog').fadeOut()\r\n }", "function close() {\n $uibModalInstance.dismiss('exit');\n }", "function close() {\n $uibModalInstance.dismiss('exit');\n }", "function close() {\n $uibModalInstance.dismiss('exit');\n }", "function excluirComModal() {\r\n\t\t\t\t var html_text = \"\";\r\n\t\t\t\t $.post(\"deletaFuncionarioAjax\", {tipo_pesq:$(\"#select_val_func\").val(),name_pesq:$(\"#name_pesquisar_func\").val(),id : $('#ASerExcluido_func').val()}, function(data) {\r\n\t\t\t\t \r\n\t\t\t\t\t obj = JSON.parse(data);\r\n\t\t\t\t $(\"#lista_de_funcionarios\").html(\"\");\r\n\r\n\t \t\t //inserindo a tabela na div #ajax4\t\t\t \r\n\t\t\t\t $(\"#lista_de_funcionarios\").html(Tabela_Funcionarios(html_text));\r\n\t\t\t\t $(\"#carregando_lista_func\").hide();\r\n\r\n\t\t\t\t // tirar a tela de opacidade de fundo do modal\r\n\t\t\t\t $(\".modal-backdrop\").css('position','inherit'); \r\n\t\t\t\t $(\"#btncancelar_func\").click();\r\n\t\t\t\t \r\n\t\t\t\t });\r\n\t\t\t\t}", "function eliminarVehiculos(idVehiculo) {\n mostrarModal(\"myModal\", \"Espere por favor..\", \"Se esta eliminando al vehiculo seleccionado\");\n //Se envia la información por ajax\n $.ajax({\n url: 'VehiculosServlet',\n data: {\n accion: \"eliminarVehiculos\",\n idVehiculo: idVehiculo\n },\n error: function () { //si existe un error en la respuesta del ajax\n cambiarMensajeModal(\"myModal\",\"Resultado acción\",\"Se presento un error, contactar al administador\");\n },\n success: function (data) { //si todo esta correcto en la respuesta del ajax, la respuesta queda en el data\n // se cambia el mensaje del modal por la respuesta del ajax\n var respuestaTxt = data.substring(2);\n var tipoRespuesta = data.substring(0, 2);\n if (tipoRespuesta === \"E~\") {\n cambiarMensajeModal(\"myModal\",\"Resultado acción\",respuestaTxt);\n }else{\n setTimeout(consultarVehiculos, 3000);// hace una pausa y consulta la información de la base de datos\n }\n },\n type: 'POST',\n dataType: \"text\"\n });\n}", "cancel() {\r\n this.mdDialog_.cancel();\r\n }", "cancel() {\r\n this.mdDialog_.cancel();\r\n }", "closeDialog() {\n this.dialog = false;\n this.errors = \"\";\n this.valid = true;\n }", "deleteModalCancel() {\n this.set('deleteAccountConfirmationShow', false);\n }" ]
[ "0.69036615", "0.6819364", "0.6784362", "0.67662436", "0.671851", "0.6714289", "0.6650974", "0.66455555", "0.6547914", "0.64068896", "0.6378657", "0.6334685", "0.6310845", "0.6302307", "0.6302307", "0.62889886", "0.62829703", "0.6265919", "0.6260881", "0.6260623", "0.62488747", "0.6247449", "0.6235698", "0.6225393", "0.62055117", "0.6204979", "0.619989", "0.61964804", "0.61964804", "0.6177076", "0.6149141", "0.6145252", "0.6133358", "0.61329603", "0.6123693", "0.61214316", "0.61094856", "0.60900366", "0.6073203", "0.6073203", "0.60701406", "0.6068909", "0.60676324", "0.6065917", "0.6060581", "0.6057977", "0.605207", "0.6046335", "0.60354555", "0.60335004", "0.601305", "0.60066605", "0.6000465", "0.5994005", "0.59908044", "0.59908044", "0.59908044", "0.59908044", "0.59908044", "0.59908044", "0.59908044", "0.5983602", "0.5980737", "0.59784746", "0.5975364", "0.5960604", "0.59596175", "0.59553117", "0.594985", "0.59479374", "0.59476554", "0.59256715", "0.59256715", "0.5924827", "0.5914404", "0.5912542", "0.5909392", "0.59089506", "0.58984065", "0.589399", "0.5892546", "0.5889361", "0.588634", "0.5884752", "0.5883684", "0.5882405", "0.5879756", "0.5879756", "0.5878758", "0.5878366", "0.5864472", "0.5863777", "0.5863777", "0.5863777", "0.585767", "0.5856757", "0.5855157", "0.5855157", "0.5844287", "0.58408856" ]
0.70408756
0
function to be called when above animation needed
function fadeinup() { var time = 0; $(".radio_select" ).addClass("hide").each(function( index ) { setTimeout(function(){ openAnimate(".radio_select:eq( "+index+" )",'fadeInUp'); },time+=200); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function animcompleted() {\n\t\t\t\t\t\t}", "function initAnimation() {\n}", "onAnimationEnd() {\n\n }", "function checkAnimation() {\n chartBarCheckAnimation();\n portfolioCheckAnimation();\n //contactBackgrounCheck();\n }", "if (m_bInitialAnim) { return; }", "updateAnimation() {\n return;\n }", "function firePreviousFrame() {\n // Trigger event for animator.\n // Notice, when animator handles the event, it also gives the callback event back.\n // Then, the flow automatically continues also here.\n firePause();\n changeToPreviousFrame();\n }", "function firePreviousFrame() {\n // Trigger event for animator.\n // Notice, when animator handles the event, it also gives the callback event back.\n // Then, the flow automatically continues also here.\n firePause();\n changeToPreviousFrame();\n }", "notifyAnimationEnd() {}", "function modalAnimation() {}", "function callStack(){\n if(waitForAnimation.callStack.length > 0){\n if(waitForAnimation.isAnimated === 0) {\n var actionToDo = waitForAnimation.callStack.pop();\n\n if(actionToDo == \"hideLoading\"){\n processHide();\n }\n else if(actionToDo == \"showLoading\"){\n processShow();\n }\n }\n }\n }", "function main() {\n var N = 22; //Number of animation frames from 0 e.g. N=1 is the same as having two images which swap...\n Conf.augment ? Conf.animate += 1 : Conf.animate -= 1;\n if(Conf.animate === 0 || Conf.animate === N) {\n Conf.augment ? Conf.augment = false : Conf.augment = true;\n }\n }", "function animloopTouched(){\n if(touched){\n //scrollAnim();\n makeHistory();\n ganttAnim();\n scrollbarAnim();\n count ++;\n requestAnimFrame(animloopTouched);\n }\n else{\n animloopUntouched();\n }\n }", "function animationLost() {\n\t\tconsole.log(\"he perdido\");\t\n\tposX2=hasta;\t\nhasta=hasta-60;\nposX=posX-60;\n\t\t// Start the animation.\n\t\trequestID2 = requestAnimationFrame(animate2);\n\t}", "function trigger_animation() {\n\t\t\tvar $this = $('#slide-num' + brick.to + ' a');\n\t\t\t\n\t\t\t$num.removeClass('slide-on');\n\t\t\t$this.addClass('slide-on');\n\t\t\t\n\t\t\tgotohere = -((brick.to - 1) * 1024);\n\t\t\t\n\t\t\t$scrollable.stop().animate({\n\t\t\t\tleft: gotohere},\n\t\t\t\t1000,\n\t\t\t\tfunction(){\n\t\t\t\t\tif (!$('#swf-' + brick.from).hasClass('image-loaded')) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//var image = $('<img>').attr('src', brick.images[function_objs.lang][brick.from]);\n\t\t\t\t\t\tvar useimage = '<img src=\"' + brick.images[function_objs.lang][brick.from] + '\" alt=\"\" />'\n\t\t\t\t\t\t//console.log(useimage);\n\t\t\t\t\t\t$('#swf-' + brick.from)\n\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t.addClass('image-loaded')\n\t\t\t\t\t\t\t.attr('id','swf-' + brick.from)\n\t\t\t\t\t\t\t.innerHTML = useimage;\n\t\t\t\t\t\t\t//.html(useimage);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!$('#swf-' + brick.to).hasClass('image-loaded')) {\n\t\t\t\t\t\t//call function to start flash animation\n\t\t\t\t\t\tvar swf = document.getElementById(\"swf-\" + brick.to);\n\t\t\t\t\t\tswf.replay();\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbrick.from = brick.to;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t);\n\t\t}", "function resumeAnimation() {\n startAnimation()\n}", "function testAnimation(element) {\n if (!element.hasClass('anim-running') &&\n Utils.isInView(element, {topoffset: offset})) {\n element\n .addClass('anim-running');\n\n setTimeout(function () {\n element\n .addClass('anim-done')\n .animo({animation: animation, duration: 0.7});\n }, delay);\n\n }\n }", "function animate() {\r\n if (!doAnim) {\r\n river.context=null; \r\n return;\r\n }\r\n\trequestAnimFrame( animate );\r\n river.background.draw();\r\n}", "animation() {}", "function animationTrigger() {\n // Slide 1\n if (slide1Flag == false) {\n var currSlideTopPosition = jQuery('.slide-1').offset().top - jQuery(window).scrollTop();\n if (currSlideTopPosition < screenHeightToStartAnimation) {\n slide1Bird();\n };\n };\n // Slide 2\n if (slide2Flag == false) {\n var currSlideTopPosition = jQuery('.slide-2').offset().top - jQuery(window).scrollTop();\n if (currSlideTopPosition < screenHeightToStartAnimation) {\n slide2Bird();\n };\n };\n // Slide 3\n if (slide3Flag == false) {\n var currSlideTopPosition = jQuery('.slide-3').offset().top - jQuery(window).scrollTop();\n if (currSlideTopPosition < screenHeightToStartAnimation) {\n slide3Bird();\n };\n };\n // Slide 4\n if (slide4Flag == false) {\n var currSlideTopPosition = jQuery('.slide-4').offset().top - jQuery(window).scrollTop();\n if (currSlideTopPosition < screenHeightToStartAnimation) {\n slide4Bird();\n };\n };\n // Products Button\n if (productsBtnFlag == false) {\n var currSlideTopPosition = jQuery('#productServicesBar').offset().top - jQuery(window).scrollTop();\n if (currSlideTopPosition < screenHeightToStartAnimationForServicesBar) {\n productsBtnBird();\n };\n };\n }", "function setEndAnimation() {\r\n\t\t\tinAnimation = false;\r\n\t\t}", "function animation() {\r\n switchOn();\r\n switchOff();\r\n}", "function testAnimation(element) {\n if ( !element.hasClass('anim-running') &&\n Utils.isInView(element, {topoffset: offset})) {\n element\n .addClass('anim-running');\n\n setTimeout(function() {\n element\n .addClass('anim-done')\n .animo( { animation: animation, duration: 0.7} );\n }, delay);\n\n }\n }", "function testAnimation(element) {\n if ( !element.hasClass('anim-running') &&\n Utils.isInView(element, {topoffset: offset})) {\n element\n .addClass('anim-running');\n\n setTimeout(function() {\n element\n .addClass('anim-done')\n .animo( { animation: animation, duration: 0.7} );\n }, delay);\n\n }\n }", "function initElementsAnimation() {\n if ($(\".animated\").length > 0) {\n $(\".animated\").each(function() {\n var $this = $(this);\n $this.appear(function() {\n $this.addClass(\"go\");\n }, {\n accX: 0,\n accY: -200\n });\n })\n };\n}", "function lastClick(){\n\n anime({\n targets:'div.circle',\n translateY: [\n { value: 320, duration: 800,delay:60, easing:'easeInOutCubic'}\n ],\n easing:'easeInOutCubic',\n delay:300,\n backgroundColor:'#00FF00', \n });\n anime({\n targets:'div.invis',\n width:0,\n height:0,\n opacity:0,\n })\n \n}", "function onAnimationEnd() {\n // stop the last frame from being missed..\n rec.stop();\n }", "function AnimComplete() {\n // Add timer to mark sure at end place\n setTimeout(function () {\n VariableModule(that);\n va.$capLast.css('visibility', '');\n va.$capInner.css('height', '');\n }, 10);\n }", "function animations() {\n\tarthur.srcX = arthur.currentFrame * arthur.width;\n\tif (arthur.goRight) {\n\t\tarthur.srcY = arthur.goRowRight * arthur.height;\n\t} else if (arthur.goLeft) {\n\t\tarthur.srcY = arthur.goRowLeft * arthur.height;\n\t} else if (arthur.duckRight) {\n\t\tarthur.srcY = arthur.duckRowRight * arthur.height;\n\t} else if (arthur.atkRight) {\n\t\tarthur.srcY = arthur.atkRowRight * arthur.height;\n\t} else if (arthur.jumpRight) {\n\t\tarthur.srcY = arthur.jumpRowRight * arthur.height;\n\t} else if (arthur.die) {\n\t\tarthur.srcY = arthur.dieRowRight * arthur.height;\n\t}\n}", "animateNoFire1() {\r\n this.p1StreakLvl = 0;\r\n }", "_startAnimation() {\n // @breaking-change 8.0.0 Combine with _resetAnimation.\n this._panelAnimationState = 'enter';\n }", "function onAnimationDone() {\n sourceFrameIndex = currentFrameIndex;\n if (playing) {\n waitTimeout();\n }\n }", "function animate() {\n\t\trequestAnimFrame(function(){\n animate();\n });\n\t\t\n\t\tplaceHover();\n\t\titemHover();\n\t\titemDrag();\n\t\t//$('#place').text(getSceneMembers(self.places));\n\t\t//$('#sticky').text(self.items);\n\t\t\n\t\t\n\n self.renderer.render(self.scene, self.camera);\n //self.controls.update(self.clock.getDelta());\n\t\t\n\t}", "function animate() {\n\treqAnimFrame(animate);\n\tcanvasDraw();\n}", "function onetone_animation(e){\n\t\n\te.css({'visibility':'visible'});\n\t\t\te.find(\"img,i.fa\").css({'visibility':'visible'});\t\n\n\t\t\t// this code is executed for each appeared element\n\t\t\tvar animation_type = e.data('animationtype');\n\t\t\tvar animation_duration = e.data('animationduration');\n\t var image_animation = e.data('imageanimation');\n\t\t\t if(image_animation === \"yes\"){\n\t\t\t\t\t\t \n\t\t\te.find(\"img,i.fa\").addClass(\"animated \"+animation_type);\n\n\t\t\tif(animation_duration) {\n\t\t\t\te.find(\"img,i.fa\").css('-moz-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('-webkit-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('-ms-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('-o-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('animation-duration', animation_duration+'s');\n\t\t\t}\n\t\t\t\n\t\t\t }else{\n\t\t\te.addClass(\"animated \"+animation_type);\n\n\t\t\tif(animation_duration) {\n\t\t\t\te.css('-moz-animation-duration', animation_duration+'s');\n\t\t\t\te.css('-webkit-animation-duration', animation_duration+'s');\n\t\t\t\te.css('-ms-animation-duration', animation_duration+'s');\n\t\t\t\te.css('-o-animation-duration', animation_duration+'s');\n\t\t\t\te.css('animation-duration', animation_duration+'s');\n\t\t\t}\n\t\t\t }\n\t}", "onMove() {\n }", "handleAnimation (callback) {\n let animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';\n $('.card').addClass('animated fadeOutDown').one(animationEnd, function() {\n $('.card').removeClass('animated fadeOutDown ');\n callback(true);\n\n $('.card').addClass('animated fadeInRight').one(animationEnd, function() {\n $('.card').removeClass('animated fadeInRight ');\n \n });\n \n });\n }", "animate(inCollection) {\n\n // Don't animate when not visible.\n if (!this.isVisible) { return; }\n\n // Adjust how often the animation occurs.\n this.frameSkipCount++;\n if (this.frameSkipCount < this.frameSkip) {\n return;\n }\n this.frameSkipCount = 0;\n\n // Hide the img of the current frame.\n this[`frame${this.currentFrame}`].style.display = \"none\";\n // Bump to the next frame, reset when it's time to wrap around.\n this.currentFrame++;\n if (this.currentFrame === this.frameCount) {\n this.currentFrame = 0;\n if (this.animationCallback) {\n this.animationCallback(inCollection);\n }\n }\n // Show the new current frame's img.\n this[`frame${this.currentFrame}`].style.display = \"\";\n\n }", "stop(){this.__stopped=!1;this.toggleAnimation()}", "function checkAnimation() {\n\t var $elem = $('.slide-intro');\n\n\t // If the animation has already been started\n\n\t if (isElementInViewport($elem)) {\n\t // Start the animation\n\t\t\t$('.easing').css('opacity', '1');\n\t\t\t$('.easing').css('transform', 'none');\n\t }\n\t if(isElementInViewport(slides)) {\n\t \ttop.css('opacity', '0');\n\t } else {\n\t \ttop.css('opacity', '1');\n\t }\n\t}", "pageAnimatingInCompleted() {\n eventBus.trigger(eventBus.eventKeys.PAGE_ANIMATED_IN_COMPLETE);\n }", "_onAnimationDone(event) {\n this._animationDone.next(event);\n this._isAnimating = false;\n }", "function restart(){\n animate_ca();\n }", "function animationComplete() {\n\t\t\t\t\t\tself._setHashTag();\n\t\t\t\t\t\tself.active = false;\n\t\t\t\t\t\tself._resetAutoPlay(true, self.settings.autoPlayDelay);\n\t\t\t\t\t}", "onTransitionEnd() {\n this.isInAnimation = false;\n // if any method in queue, then invoke it\n if (this.visualEffectQueue.length) {\n let action = this.visualEffectQueue.shift(); // remove method from queue and invoke it\n this.isInAnimation = action.isAnimated;\n action.action();\n }\n }", "function fireNextFrame() {\n // Trigger event for animator.\n // Notice, when animator handles the event, it also gives the callback event back.\n // Then, the flow automatically continues also here.\n firePause();\n changeToNextFrame();\n }", "function fireNextFrame() {\n // Trigger event for animator.\n // Notice, when animator handles the event, it also gives the callback event back.\n // Then, the flow automatically continues also here.\n firePause();\n changeToNextFrame();\n }", "function anim() {\r\n Loop();\r\n requestAnimFrame(anim);\r\n }", "afterShown() {}", "startAnimation(callback){\n\t\t\t\n\t\t\tthis.node.animate({left:\"-=\"+this.getRestLength()+\"px\"},this.getRestDuration(),'linear',function(e){\n\t\t\t$(this).data('ancestor').hide();\n\t\t\tif(!Base.isnull(callback)){\n\t\t\t\tcallback($(this));\n\t\t\t}\n\t\t\t$(this).data('ancestor').alive = false;\n\t\t\t$(this).clearQueue();\n\t\t});\t\t\n\t}", "function looper() {\n\t\t\tif (isScrolling) {\n\t\t\t\tc.log(\"looper\", new Date());\n\t\t\t\twindow.requestAnimFrame(looper);\n\t\t\t}\n\t\t}", "function animationCompleted()\n{\n // Remove the tick event listener.\n TweenMax.ticker.removeEventListener(\"tick\");\n\n // Reenable the test button.\n animationTest.disabled = false;\n}", "function processShow(){\n if(increaseCounter() == 1) { // Check if we have to show the loader it's the first\n initLoading();\n\n // We set a param to know that the animation to hide has begin\n waitForAnimation.isAnimated = nbLoadingElements;\n $loadingBar.fadeIn(speed, function(){\n\n // We set a param to know that the animation to show is finished\n waitForAnimation.isAnimated--;\n\n // During destroying, calls can be made to show the loader. So we let's the loader disappear and then we show it again\n callStack();\n\n });\n }\n else{\n callStack();\n }\n }", "transitionCompleted() {\n // implement if needed\n }", "function appear ()\r\n{\r\n\tpopping_back = 0; \r\n \r\n selectText(); \r\n\t \r\n if (stack_num <= 5)\r\n{\r\n\tvar anim = manager.createAnimObject(\"Stack\" + stack_num); \r\n\tvar anim2 = manager.createAnimObject(\"bottom\" + stack_num);\r\n\tvar anim3 = manager.createAnimObject(\"text\" + stack_num);\r\n anim.add({property: Prop.backgroundColor, from: new Col(255,255,255), to: new Col(100,205,55), \r\n duration:500}); \r\n\t anim2.add({property: Prop.backgroundColor, from: new Col(255,255,255), to: new Col(10,105,55), \r\n duration:500});\r\n\t anim3.add({property: Prop.backgroundColor, from: new Col(255,255,255), to: new Col(100,205,55), \r\n duration:500});// this is for fadeing in to view animation\r\n\t \r\n\t\r\n\t \r\n\t \r\n}\r\n\r\nstack_num++;\r\nlast--;\r\nif(last<1)\r\n{\r\n\tlast = 0; \r\n}\r\nif(stack_num>2)\r\n{\r\nstretch();\r\n}\r\nif(stack_num>5)\r\n{\r\n\tstack_num = 6;\r\n}\r\n\r\n}", "function animacionButton(){\n /* no esta hecha aun */\n}", "function clickHandler() {\r\n\r\n playerJumpAnim();\r\n}", "function animateData(){\n //Add logic here to animate the data\n\n}", "function backToStart() {\n var realStartPos = basePosY + NUM_POS_START_Y;\n if ( isDefaultType() ) {\n $refreshMain.css('top', realStartPos + 'px');\n $refreshMain.css('-webkit-transform', 'scale(' + 0 + ')');\n } else {\n // Distance must greater than NUM_POS_MIN_Y\n $refreshMain.css('top', customNavTop + 'px');\n /* $refreshMain.css('-webkit-transform', 'translateY(' + realStartPos + 'px)'); */\n }\n setTimeout(function(){\n // Handle button action\n if(!isShowLoading){\n $refreshMain.css('opacity', 0);\n $refreshMain.hide();\n }\n }, 300);\n }", "function newFrame() {\n //update position of game item for animation \nrepositionGameItem();\n//check for collision \n \n }", "animate(){\n if (this.timeFromLast > this.animationTime){\n this.currentFrameNum++;\n this.currentFrameX += this.frameWidth;\n this.timeFromLast = 0;\n this.timeUntilLast = millis();\n }\n \n //change to stationary after hadouken is used\n if (this.state === \"hadouken\" && this.currentFrameNum > this.maxFrame) this.stationaryState();\n\n //resetting the animation after the ninth frame\n if (this.currentFrameNum > this.maxFrame){ \n this.currentFrameX = 0;\n this.currentFrameNum = 0;\n\n //changed to stationary if the user has let go of a movement key\n if (this.willStop === true) this.stationaryState();\n\n this.timeFromLast = 0;\n this.timeUntilLast = millis();\n\n }\n\n \n \n\n }", "function animate() { \n console.log('animate')\n \n gsap.registerEffect({\n name: \"fadeIn\",\n effect: (targets, config) => {\n var tlEffect = gsap.timeline();\n tlEffect.from(targets, {duration: config.duration, y:config.y, force3D:true, rotation: 0.01, stagger:config.stagger, ease:\"power2\"})\n .from(targets, {duration: config.duration, stagger:config.stagger, alpha:0, ease:\"none\"}, \"<\")\n return tlEffect;\n },\n defaults: {duration: 1.5, y:\"-=7\", stagger:4.5},\n extendTimeline: true,\n });\n \n gsap.to(plantWraps, {duration:25, rotation:\"+=20\", ease:\"none\"})\n gsap.to(flowerWraps, {duration:25, rotation:\"+=100\", ease:\"none\"})\n \n var imageDivs = selectAll('.imageDiv');\n // logoIntro = false;\n\n\t\t\ttl\n .to(bannerCover, {duration:0.7, alpha:0, ease:\"none\"})\n \n .from(plants, {duration:3, drawSVG:\"50% 50%\", ease:\"sine.inOut\"}, \"<\")\n .from(flowers, {duration:2, alpha:0, ease:\"none\"}, \"<\")\n \n if(logoIntro) {\n tl\n .from(letter_w, {duration:0.5, drawSVG: 0, ease:\"sine.in\"}, \"<\")\n .from(letter_y, {duration:0.3, drawSVG: 0, ease:\"sine.in\"}, \">\")\n .from(letter_nn, {duration:0.8, drawSVG: 0, ease:\"sine.inOut\"}, \">\")\n .from(lasvegas, {duration:0.7, y:\"-=10\", alpha: 0, ease:\"sine\"}, \">\")\n .from(sign_r, {duration:0.5, alpha: 0, ease:\"none\"}, \"<\")\n\n .to(logo, {duration:0.7, alpha:0, ease:\"none\"}, \">1\")\n .set(logo, {scale: 0.37, y:99, x:-60}, \">\")\n } else {\n tl\n .set(logo, {scale: 0.37, alpha:0,y:99, x:-60}, \"<\")\n }\n \n tl\n .from(imageDivs, {duration:1.3, stagger:4, alpha:0, blur:10, force3D:true, rotation: 0.01, ease:\"none\"}, \"<\")\n \n .fadeIn(text_head, \"<0.4\")\n .fadeIn(text_subHead,{y:\"0\", duration: 1,},\"<0.6\")\n .to(logo, {duration:1, alpha:1, ease:\"none\"}, \"<0.4\")\n .from(cta, {duration:0.8, alpha: 0, ease:\"none\"}, \"<\")\n .from(cta, {duration:1.6, rotateX:90, ease:\"power2\"}, \"<\") \n\t\t}", "function animate() {\n if (PLAY_STATUS != PlayStatus.PLAYING) {\n return;\n } else {\n stepAndAnimate()\n }\n}", "function curentAnimation(mark) {\r\n mark.setIcon('http://maps.gstatic.com/mapfiles/ms2/micons/bar.png');\r\n mark.setAnimation(google.maps.Animation.BOUNCE);\r\n}", "function contentAnimation() {\n\n var tl = gsap.timeline();\n tl.from('.is-animated', { duration: 1, translateY: 60, opacity: 0, stagger: 0.4 });\n tl.from('.fadein', { duration: 0.5, opacity: 0.9 });\n}", "function animationEffect() {\n marker.setAnimation(window.google.maps.Animation.BOUNCE)\n setTimeout(function(){ marker.setAnimation(null) }, 550)\n }", "function resetRuning(){\r\n Joey.changeAnimation(\"running\",Running_Joey);\r\n \r\n}", "function clonedAnimationDone(){\n // scroll body\n anime({\n targets: \"html, body\",\n scrollTop: 0,\n easing: easingSwing, // swing\n duration: 150\n });\n\n // fadeOut oldContainer\n anime({\n targets: this.oldContainer,\n opacity : .5,\n easing: easingSwing, // swing\n duration: 300\n })\n\n // show new Container\n anime({\n targets: $newContainer.get(0),\n opacity: 1,\n easing: easingSwing, // swing\n duration: 300,\n complete: function(anim) {\n triggerBody()\n _this.done();\n }\n });\n\n $newContainer.addClass('one-team-anim')\n }", "onTransitionEnd() {\n this.nextKeyframe();\n }", "function elOver() {\n // Verify if the card is showing front or back\n // if is front -> do the animation\n // if is back -> do the reverse animation\n if($(this).children(\".turned\")[0].innerText == \"front\"){\n $(this).children(\".turned\")[0].innerText = \"back\";\n this.animation.play();\n }else{\n $(this).children(\".turned\")[0].innerText = \"front\";\n this.animation.reverse();\n }\n}", "function runAnimay(){\n ropAnimation();\n headAnimation();\n bodyAnimation();\n larmAnimation();\n rarmAnimation();\n llegAnimation();\n rlegAnimation();\n}", "play(){this.__stopped=!0;this.toggleAnimation()}", "function startAnimation(){\n\tif (carIsRunning === true){\n\t\treturn;\n\t}\n\t$(\"#streetImg\").animate({\n\t\tbackgroundPositionY: '+=200px'\n\t}, 500, 'linear', startAnimation);\n}", "isAnimating() {\n return animationFrame > 1;\n }", "function customanimation(){\r\n\t$(\".animation-sec\").each(function(index){ \t\t\t\t\t\r\n\t var res = ($(this).isOnScreen());\r\n\t if(res == true){ \r\n\t \t$(this).addClass(\"animated\"); \r\n\t }\r\n \t});\r\n}", "function animate(){\n\n\tanimateCloth();\n\trender();\n\trequestAnimationFrame( animate );\n\n\t\n}", "function pageBeforeAnimation(pageData) {\n // todo\n\n } // end pageBeforeRemove", "wait_GM_Camera_AnimationEnd(){\n if(this.check_Reset())\n return;\n if (this.scene.camera_rotation == 0) {\n this.state = 'GAME_MOVIE';\n }\n }", "function animationGoForward()\n{\n\tif(eventSliderOb != null)\n\t{\n\t\teventSliderOb.moveSliderForward();\n\t}\n}", "_onEnd() {\n this._duringDisplayAnim = false;\n // - need to re render at the end of the display animation\n this._setAnimParams();\n }", "function handleInteruption() {\n // Remove animate in instance\n anime.remove(scrollToObject);\n\n // Remove the events\n dettachEvents();\n}", "function checkAnimation() {\r\n var $elem = $('.bar .level');\r\n\r\n // If the animation has already been started\r\n if ($elem.hasClass('start')) return;\r\n\r\n if (isElementInViewport($elem)) {\r\n // Start the animation\r\n $elem.addClass('start');\r\n }\r\n}", "begin () {\n this.container.classList.remove('visible')\n this.callback(this.cargo)\n }", "function animationCallback() {\n current = nextSlide;\n\n if (nextSlide === 0) {\n current = orgNumSlides;\n\n if (options.animation !== 'fade') {\n inner.css('left', -current * width);\n }\n } else if (nextSlide === numSlides - 1) {\n current = 1;\n\n if (options.animation !== 'fade') {\n inner.css('left', -width);\n }\n }\n\n // Fix for Zepto hiding the slide\n if (options.animation === 'fade') {\n slides.eq(current).show();\n }\n\n if (options.showBullets) {\n slider.next('.as-nav').find('a').removeClass('as-active').eq(current - 1).addClass('as-active');\n }\n\n running = false;\n\n options.afterChange.call(slider[0]);\n }", "_onAnimationDone({ toState, totalTime }) {\n if (toState === 'enter') {\n this._trapFocus();\n this._animationStateChanged.next({ state: 'opened', totalTime });\n }\n else if (toState === 'exit') {\n this._restoreFocus();\n this._animationStateChanged.next({ state: 'closed', totalTime });\n }\n }", "animate(){\n if (this.timeFromLast > this.animationTime){\n this.currentFrameNum++;\n this.currentFrameX += this.frameWidth;\n this.timeFromLast = 0;\n this.timeUntilLast = millis();\n }\n \n if (this.currentFrameNum > this.maxFrame){\n this.currentFrameNum = 3;\n this.currentFrameX = 22;\n }\n \n }", "function animate() \r\n{\r\n\trequestAnimationFrame( animate );\t\r\n\r\n\tcameraZoomTopLoop();\t\r\n\tmoveCameraToNewPosition();\r\n\t\r\n\tupdateKeyDown();\r\n}", "function prepareAnimateCreator() {\n var cic = jQuery('#caption-inout-controll');\n cic.data('direction', 0);\n jQuery('#caption-inout-controll').click(function() {\n if (cic.data('direction') == 0) {\n cic.data('direction', 1);\n jQuery('#revshowmetheinanim').removeClass(\"reviconinaction\");\n jQuery('#revshowmetheoutanim').addClass(\"reviconinaction\");\n } else\n if (cic.data('direction') == 1) {\n cic.data('direction', 2);\n jQuery('#revshowmetheinanim').addClass(\"reviconinaction\");\n jQuery('#revshowmetheoutanim').addClass(\"reviconinaction\");\n } else\n if (cic.data('direction') == 2) {\n cic.data('direction', 0);\n jQuery('#revshowmetheinanim').addClass(\"reviconinaction\");\n jQuery('#revshowmetheoutanim').removeClass(\"reviconinaction\");\n }\n });\n startAnimationInCreator();\n }", "function stillHandler() { \n Options.scenes.forEach(function(scene) {\n \tif ( pageYOffset > scene.offset) {\n \t\tscene.action(scene.target);\n \t}\n });\n }", "_animateIn() {\n\n setTimeout(() => {\n document.getElementById(this.id).className += \" animated zoomInLoader\";\n document.getElementById(this.id).style.display = \"\";\n }, 400);\n\n }", "function afterShowAnimation(scope, element, options) {\n // post-show code here: DOM element focus, etc.\n }", "function afterShowAnimation(scope, element, options) {\n // post-show code here: DOM element focus, etc.\n }", "function afterShowAnimation(scope, element, options) {\n // post-show code here: DOM element focus, etc.\n }", "function animate() {\n // if (stackHelper) {\n // stackHelper.index += 1;\n // if (stackHelper.outOfBounds === true) {\n // stackHelper.orientation = (stackHelper.orientation + 1) % 3;\n // stackHelper.index = 0;\n // }\n // }\n\n controls.update();\n renderer.render(scene, camera);\n stats.update();\n\n // request new frame\n requestAnimationFrame(function() {\n animate();\n });\n }", "function openMenuAnimation_1() {\n if (!menuDisappearComplete_1) {\n menuDisappearAnimation_1();\n } else if (!arrowAppearComplete_1) {\n arrowAppearAnimation_1();\n }\n }", "function checkAnimation() {\r\n \r\n\r\n if (isElementInViewport($('.bars'))) {\r\n var $elem = $('.bar');\r\n // Start the animation\r\n $elem.addClass('animate-bar');\r\n }\r\n }", "function frame() {\n\t\tleft += 2.5;\n\t\t//opacity += 0.02;\n\t\tanimal.style.left = left + 'px';\n\t\t//txt.style.opacity = opacity;\n\t\tif (left >= 15) {\n\t\t\tclearInterval(interval);\n\t\t\tanimal.style.left = \"15px\";\n\t\t\t//txt.style.opacity = 1;\n\t\t\tspots_disabled = false;\n\t\t\tfadein_text();\n\t\t}\n\t}", "function startAnim() {\n console.log('startAnim');\n\n //TweenMax.from(closeButton, fadeTime/2, {delay:0, autoAlpha:0, ease:animTypeIn});\n\n TweenMax.from(bg1, fadeTime, {\n delay: 0,\n autoAlpha: 0,\n ease: animTypeIn\n });\n TweenMax.to(bg1, imagePanTime, {\n delay: 0,\n y: -50,\n ease: imagePanAnimType\n });\n\n TweenMax.from([bookmarkBase, map, location1, bookmarkDivider, pnzSmall], animTimeIn, {\n delay: 1,\n autoAlpha: 0,\n y: -animOffsetDist,\n ease: animTypeIn\n });\n TweenMax.from(headline1, animTimeIn, {\n delay: 1,\n autoAlpha: 0,\n y: animOffsetDist,\n ease: animTypeIn\n });\n TweenMax.from(mapMarker1, mapMarkerAnimTime, {\n delay: 2,\n autoAlpha: 0,\n scale: 0,\n ease: mapMarkerAnimType\n });\n\n TweenMax.from(expandButton, animTimeIn, {\n delay: 2,\n autoAlpha: 0,\n y: animOffsetDist,\n ease: animTypeIn\n });\n\n TweenMax.delayedCall(6, frame2);\n}", "re_animate_ghost() {\r\n\r\n this.sprite.status = this.statusEnum.ALIVE;\r\n this.set_animation_frame(0, 0);\r\n this.animate_start();\r\n \r\n }", "start() {\n this._enableAnimation = true;\n this._numberOfAnimationCycles = 0;\n }", "function animate(flag){\n if (flag){ \n $(\"#qr\").hide();\n $(\"#sidebar\").show();\n $(\"#container\").animate({\n marginTop: '0%'\n }, delay, function(){ $(\"#container\").css(\"margin-top\",\"0%\"); });\n }else{\n $(\"#container\").animate({\n marginTop: padding,\n }, delay * 1.3);\n $(\"#sidebar\").hide();\n $(\"#qr\").show();\n }\n}" ]
[ "0.6965173", "0.6893152", "0.6892171", "0.6869036", "0.68424535", "0.6834406", "0.68333143", "0.68333143", "0.6763035", "0.65878785", "0.65238184", "0.64966154", "0.64811736", "0.6477121", "0.646685", "0.6462727", "0.64462996", "0.63869977", "0.6381941", "0.6381366", "0.6380356", "0.63744736", "0.63534254", "0.63534254", "0.6348315", "0.6332284", "0.63182735", "0.6306402", "0.6299506", "0.6299501", "0.6296063", "0.62949777", "0.62838507", "0.6277301", "0.6267081", "0.6261041", "0.6252267", "0.62376523", "0.62285507", "0.62260747", "0.6225236", "0.62240905", "0.6219081", "0.62036586", "0.6197163", "0.618119", "0.618119", "0.61756265", "0.61737365", "0.6166402", "0.61656195", "0.61450243", "0.614109", "0.61387277", "0.61249167", "0.61234546", "0.6122588", "0.61088264", "0.6103529", "0.6091866", "0.6089381", "0.6071207", "0.6070804", "0.6070255", "0.60677105", "0.6067055", "0.60587126", "0.6058562", "0.6055554", "0.6054254", "0.60426944", "0.60409427", "0.6034515", "0.6028229", "0.60271955", "0.6025128", "0.60203767", "0.60124373", "0.6006572", "0.60043144", "0.60040313", "0.5997954", "0.59945416", "0.59856725", "0.59852713", "0.5981047", "0.5977563", "0.5977103", "0.59756285", "0.59688616", "0.5966587", "0.5966587", "0.5966587", "0.5966439", "0.59658253", "0.5962139", "0.59445566", "0.59414136", "0.5941033", "0.5940732", "0.5934533" ]
0.0
-1
IN: Min (int) y Max (int) OUT: Valor aleatorio (int)
function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min + 1) ) + min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "limits() {\n var keys = Object.keys(this.data);\n var min = parseInt(this.data[keys[0]]); // ignoring case of empty list for conciseness\n var max = parseInt(this.data[keys[0]]);\n var i;\n for (i = 1; i < keys.length; i++) {\n var value = parseInt(this.data[keys[i]]);\n if (value < min) min = value;\n if (value > max) max = value;\n }\n this.yMin =min - Math.round(min/4);\n if(this.yMin <= 0)\n this.yMin=0;\n this.yMax = max + Math.round(max/4);\n\n }", "function getYForValueAndRange(val, range) {\n var h = rotated ? width : height;\n\n return h - (h * ((val - range[0]) / (range[1] - range[0])));\n }", "function randomXToY(minVal, maxVal) {\r\n\tvar randVal = minVal + (Math.random() * (maxVal - minVal));\r\n\treturn Math.round(randVal);\r\n}", "_getAbsoluteValue(val, min = windowDimensions.width * -2, max = 0)\n {\n if (val < min)\n return min\n else if (val > max)\n return max\n else \n return val\n }", "function point(min, max) {\n return chance.integer({min: min || -100, max: max || 1100})\n }", "function aleatorio(min, max) {\n\tvar resultado;\n \tresultado = Math.floor(Math.random() * (max - min + 1)) + min;\n \treturn resultado;\n}", "function increaseMinMax() {\n min -= 10;\n max += 10;\n }", "function getYForValue(val) {\n var h = rotated ? width : height;\n\n return h - (h * ((val - range[0]) / (range[1] - range[0])));\n }", "function point(min, max){\n return chance.integer({ min: min || -50, max: max || 150 });\n }", "function aleatorio(min, max){\n var resultado;\n resultado = Math.floor(Math.random() * (max - min + 1)) + min;\n return resultado;\n}", "function validator(minXValue, maxXValue, minYValue, maxYValue){\r\n\r\n if(isNaN(minXValue) || isNaN(maxXValue) || isNaN(minYValue) || isNaN(maxYValue))\r\n return 0;\r\n else if (minXValue < -150 || maxXValue > 150 || minYValue < -150 || maxYValue > 150)\r\n return 0;\r\n else\r\n return 1;\r\n \r\n}", "function aleatorio (min,max)\r\n{\r\n var result;\r\n result = Math.floor(Math.random()*(max-min + 1))+min;\r\n return result; // Return result guarda el resultado en la funcion, podemos asignar la funcion auna variable,\r\n // de este modo se guardara el valor de result en la variable\r\n}", "function aleatorio(min ,maxi){\n var resultado;\n resultado = Math.floor(Math.random() * (maxi - min + 1)) + min;\n return resultado;\n}", "function calculateRange(upperOrLower, series) {\n if (upperOrLower === 'upper') {\n highestPoint = _.max(_.pluck(series, 'y'))\n return Math.ceil(highestPoint/5)*5;\n }\n else if (upperOrLower === 'lower') {\n lowestPoint = _.min(_.pluck(series, 'y'))\n return Math.floor(lowestPoint/5)*5;\n }\n else {\n return 0;\n }\n }", "function point(min, max) {\n return chance.integer({ min: min || -50, max: max || 150 });\n }", "function map(x, oMin, oMax, nMin, nMax) {\n // check range\n\n if (oMin === oMax) {\n console.log(\"Warning: Zero input range\");\n return null;\n }\n\n if (nMin === nMax) {\n console.log(\"Warning: Zero output range\");\n return null;\n }\n\n // check reversed input range\n let reverseInput = false;\n let oldMin = Math.min(oMin, oMax);\n let oldMax = Math.max(oMin, oMax);\n\n if (oldMin != oMin) reverseInput = true;\n\n // check reversed output range\n let reverseOutput = false;\n let newMin = Math.min(nMin, nMax);\n let newMax = Math.max(nMin, nMax);\n\n if (newMin != nMin) reverseOutput = true;\n\n // calculate new range\n let portion = (x - oldMin) * (newMax - newMin) / (oldMax - oldMin);\n\n if (reverseInput) portion = (oldMax - x) * (newMax - newMin) / (oldMax - oldMin);\n\n let result = portion + newMin;\n\n if (reverseOutput) result = newMax - portion;\n\n return result;\n }", "function MaxX() {\r\n return 20 ;\r\n}", "function mapRange(value, x1, y1, x2, y2){\n var r=(value - x1) * (y2 - x2) / (y1 - x1) + x2;\n return clamp(r, x2, y2);\n}", "function range(input,min,max) {\n\t\tif(min > max) { var x = min; min = max; max = x;}\n\t\treturn Math.max(Math.min(input,max),min);\n\t}", "function range(nbr,min,max){if(nbr<min){return min;}else if(nbr>max){return max;}else{return nbr;}}", "function range(x,y){\n if ( x === -2) return y -1; \n return x + 1 + \" , \" + range(x+1, y);\n}", "function getXForValueAndRange(val, range) {\n var w = rotated ? height : width;\n \n return (w * ((val - range[0]) / (range[1] - range[0])));\n }", "calc_range() {\n let z = this.zoom / this.drug.z\n let zk = (1 / z - 1) / 2\n\n let range = this.y_range.slice()\n let delta = range[0] - range[1]\n range[0] = range[0] + delta * zk\n range[1] = range[1] - delta * zk\n\n return range\n }", "function yMinMax() {\n // min will grab the smallest datum from the selected column.\n yMin = d3.min(theData, function(d) {\n return parseFloat(d[curY]) * 0.90;\n });\n\n // .max will grab the largest datum from the selected column.\n yMax = d3.max(theData, function(d) {\n return parseFloat(d[curY]) * 1.10;\n });\n }", "get value(){ \r\n return { \r\n min : this._value[ 0 ], \r\n max : this._value[ 1 ]\r\n };\r\n }", "function valueMapRange(value, inValueX, inValueY, outValueX, outValueY) {\n return (value - inValueX) * (outValueY - outValueX) / (inValueY - inValueX) + outValueX;\n}", "ValueToPosition(value){\n\t\tif(typeof this.settings.min !== 'undefined' \n\t\t&& typeof this.settings.max !== 'undefined'){\n\t\t\treturn ((value-this.settings.min)/(this.settings.max - this.settings.min))*100\n\t\t}\n\t\treturn 0\n\t}", "function setMinAndMaxRange(e) {\n e.preventDefault();\n var minRangeValue = parseInt(minRangeInput.value);\n var maxRangeValue = parseInt(maxRangeInput.value);\n minNumber.innerText = minRangeValue;\n maxNumber.innerText = maxRangeValue;\n minNumber.style.fontWeight = 'bold';\n maxNumber.style.fontWeight = 'bold';\n console.log(minRangeValue);\n console.log(maxRangeValue);\n generateRandomNumber(minRangeValue, maxRangeValue);\n displayRangeError();\n}", "function iclamp(a, min, max) {\n\treturn Math.max(min, Math.min(a, max));\n}", "function linearMap(x, minx, maxx, miny, maxy) {\n // t is in the range [0,1]\n t = (x - minx) / (maxx - minx);\n y = t * (maxy - miny) + miny;\n return y;\n}", "getXValue(max, min) {\n const rnd = Math.random() * (max - min) + min;\n return rnd;\n }", "function getMaxY() {\n var max = 0;\n\n for(var i = 0; i < data.values.length; i ++) {\n if(data.values[i].Y > max) {\n max = data.values[i].Y;\n }\n }\n\n max += 10 - max % 10;\n return max;\n }", "calculateRange() {\n if (!this.grid || !this.grid[0]) {\n return\n }\n let rows = this.grid.length\n let cols = this.grid[0].length\n // const vectors = [];\n let min\n let max\n // @from: https://stackoverflow.com/questions/13544476/how-to-find-max-and-min-in-array-using-minimum-comparisons\n for (let j = 0; j < rows; j++) {\n for (let i = 0; i < cols; i++) {\n let vec = this.grid[j][i]\n if (vec !== null) {\n let val = vec.m || vec.magnitude()\n // vectors.push();\n if (min === undefined) {\n min = val\n } else if (max === undefined) {\n max = val\n // update min max\n // 1. Pick 2 elements(a, b), compare them. (say a > b)\n min = Math.min(min, max)\n max = Math.max(min, max)\n } else {\n // 2. Update min by comparing (min, b)\n // 3. Update max by comparing (max, a)\n min = Math.min(val, min)\n max = Math.max(val, max)\n }\n }\n }\n }\n return [min, max]\n }", "function VerticalLimit (angle : float, minimum : float, maximum : float){ \n if (angle < -360) \n { \n angle += 360; \n } \n if (angle > 360)\n { \n angle -= 360; \n } \n return Mathf.Clamp(angle, minimum, maximum); \n}", "getRandomPositionY(min, max) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min)) + min; //The maximum is exclusive and the minimum is inclusive\n }", "function getMaxY() {\n var max = 0;\n for (var i = 0; i < data.values.length; i++) {\n if (data.values[i].Y > max) {\n max = data.values[i].Y;\n }\n }\n max += 10 - max % 10;\n return max;\n }", "function rangeFunc() {\n let rangeNum = Math.max(num1, num2, num3) - Math.min(num1, num2, num3);\n console.log(\"RANGE: \" + rangeNum);\n results[4].textContent = \"Range: \" + rangeNum;\n}", "getComeGoal(max_value, value, current_value) {\n\n var temp = parseInt(current_value) + parseInt(value);\n if (temp < 0) {\n return 0;\n }\n if (temp >= max_value) {\n return max_value;\n } else {\n return temp;\n }\n }", "function range(x, y, result = []) {\r\n let min = Math.min(x, y);\r\n let max = Math.max(x, y);\r\n if (min === max) {\r\n result.push(min);\r\n return result;\r\n }\r\n result.push(min);\r\n min++;\r\n return range(min, max, result);\r\n}", "mapDataPoint (value, in_min, in_max, out_min, out_max) {\n // Shift negative values up into positive range\n if (in_min < 0 || in_max < 0) {\n in_max = in_max + -in_min\n value = value + -in_min\n in_min = in_min + -in_min\n }\n return out_min + (out_max - out_min) * ((value - in_min) / (in_max - in_min))\n }", "function randomXToY(minVal,maxVal,floatVal) {\n\n\tvar randVal = minVal+(Math.random()*(maxVal-minVal));\n\treturn typeof floatVal=='undefined'?Math.round(randVal):randVal.toFixed(floatVal);\n\n}", "get endA() { return Math.max(this.fromA, this.toA - 1); }", "rangeMapping(value, from, to) {\n return Math.floor(to[0] + (value - from[0]) * (to[1] - to[0]) / (from[1] - from[0]));\n }", "function calcSlope(sliderVal)\r\n{\r\n return -1*mmax*Math.tan(Math.atan(Math.PI/180*(sliderVal-100)*0.8)/Math.atan(Math.PI/180*(0-100)*0.8));\r\n}", "function clamp(min, x, max) { return Math.min(Math.max(x, min), max); }", "function validateRange(activity, xValue, yValue) {\n\n}", "function setN1Range() {\n minValue1 = Number(document.getElementById('low1').value);\n maxValue1 = Number(document.getElementById('high1').value);\n}", "function getMaxY(data) {\r\n\tvar max = 0;\r\n\r\n\tfor(var i = 0; i < data.values.length; i ++) {\r\n\t\tif(data.values[i].Y > max) {\r\n\t\t\tmax = data.values[i].Y;\r\n\t\t}\r\n\t}\r\n\r\n\tmax += 10 - max % 10;\r\n\treturn max;\r\n}", "function clamp(a,min,max)\r\n{return Math.min(Math.max(a,min),max);}", "function clamp(lower, upper, x) {\n return max (lower, min (upper, x));\n }", "calculateMaxYValue() {\n const { data = [] } = this.props;\n const valuesArr = data.map(el => el.y_value);\n let maxValue = Math.max.apply(null, valuesArr);\n maxValue = Math.round(maxValue);\n let exponent = maxValue.toString().length;\n exponent -= 1;\n exponent = !exponent ? 1 : exponent;\n const prec = 10 ** exponent;\n maxValue = Math.round(maxValue / prec) * prec;\n return maxValue;\n }", "get yMin() {\n return this.yRange.min;\n }", "function absoluteValue(x) {\n var y;\n if (x < 0 || x >= 0) {\n this.y = Math.abs(x);\n }\n return y;\n}", "function updateMinMax() {\n min = parseInt(minValueField.value);\n max = parseInt(maxValueField.value);\n}", "function remap(value, inputMin, inputMax, outputMin, outputMax) {\n return Math.abs(inputMin - inputMax) !== 0 ?\n ((value - inputMin) / (inputMax - inputMin) * (outputMax - outputMin) + outputMin) : outputMin\n}", "static map(val, inputMin, inputMax, outputMin, outputMax) {\n return ((outputMax - outputMin) * ((val - inputMin) / (inputMax - inputMin))) + outputMin;\n }", "function getMinMax() {\n var minPt = pts[0];\n var maxPt = pts[0];\n for (var i=1; i<pts.length; i++) {\n minPt = minPt.$min( pts[i] );\n }\n for (i=1; i<pts.length; i++) {\n maxPt = maxPt.$max( pts[i] );\n }\n nextRect.set( minPt).to( maxPt );\n}", "function range(){\nmin =Math.floor( Math.min.apply(null, resultHotel.map((item)=> {\n return item.price;\n}))),\nmax = Math.round( Math.max.apply(null,resultHotel.map((item)=> {\n return item.price;\n})));\n// console.log(min , max)\n}", "function Ay(t,e,n){var r=t.getResolution(n),i=my(t,e[0],e[1],r,!1),o=py(i,2),a=o[0],s=o[1],l=my(t,e[2],e[3],r,!0),u=py(l,2),c=u[0],d=u[1];return{minX:a,minY:s,maxX:c,maxY:d}}", "function aleatorio(minimo, maximo){\n\tvar Numero= Math.floor(Math.random() * (maximo - minimo + 1) + minimo );\n\treturn Numero;\n}", "function rangeRad(a,b){\n var min = Math.min.apply(Math, [a, b]);\n var max = Math.max.apply(Math, [a, b]);\n console.log('min ' + min + ' max '+max);\n return this > min && this < max;\n }", "clamp(curNum, changeNum,rMin, rMax){\n if((curNum + changeNum >= rMin) && (curNum + changeNum <= rMax)){\n return curNum + changeNum;\n }else if((curNum + changeNum < rMin)){\n return rMin;\n }else if((curNum + changeNum > rMax)){\n return rMax;\n }\n }", "function between_values(x, min, max) {\r\n return {'passed': x.value >= min && x.value <= max,\r\n 'value': x.value};\r\n }", "convertRange(oldMin, oldMax, newMin, newMax, oldValue) {\n return (((oldValue - oldMin) * (newMax - newMin)) / (oldMax - oldMin)) + newMin;\n }", "function randomXToY(minVal, maxVal, floatVal) {\n var randVal = minVal + (Math.random() * (maxVal - minVal));\n return typeof floatVal == 'undefined' ? Math.round(randVal) : randVal.toFixed(floatVal);\n}", "function setN2Range() {\n minValue2 = Number(document.getElementById('low2').value);\n maxValue2 = Number(document.getElementById('high2').value);\n}", "get yMax() {\n return this.yRange.max;\n }", "function blackjack(x,y){\n if (x > 21 && y > 21) {\n return 0;\n }\n if (x <= 21 && y <=21) {\n return Math.max(x,y);\n }\n if (x > 21 && y <= 21) {\n return y;\n }\n if (y > 21 && x <= 21) {\n return x;\n }\n}", "function adjustMines() {\n maxMines = (lines*collumns) - 1;\n \n document.getElementById(\"mineSlider\").setAttribute(\"max\", maxMines);\n document.getElementById(\"valueMax\").innerHTML = maxMines;\n \n if (mines > maxMines) {\n document.getElementById(\"valueM\").innerHTML = maxMines;\n mines = parseInt(maxMines);\n }\n}", "function maxOrMin (dataArray) {\n var maxX = dataArray[0].x; \n var minX = dataArray[0].x;\n\n for (var i = 0; i < dataArray.length ; i++) {\n if (dataArray[i].x >= maxX) {\n maxX = Math.round(dataArray[i].x);\n }\n if (dataArray[i].x <= minX) {\n minX = Math.round(dataArray[i].x);\n }\n }\n var maxAndMin = {\"max\": maxX, \"min\": minX};\n return maxAndMin; \n }", "function between(val, min, max) {\n\t\treturn Math.min(Math.max(min, val), max);\n\t}", "function convertYCoord(inputY) {\n\treturn Math.floor((plot.ymax - inputY)/((plot.ymax-plot.ymin) / 800));\n}", "function map(value, fromRangeMin, fromRangeMax, toRangeMin, toRangeMax) {\n return (value - fromRangeMin) * (toRangeMax - toRangeMin) / (fromRangeMax - fromRangeMin) + toRangeMin;\n }", "function sliderPos(Y)\n {\n return Math.floor(Y / sliderHeight * maxPos);\n }", "function range(x, y) {\r\n var lower = Math.min(x, y);\r\n var upper = Math.max(x, y);\r\n\r\n var count = 0;\r\n\r\n for (var i = lower; i <= upper; i++) {\r\n count += i;\r\n }\r\n return count;\r\n}", "_getRange() {\n const that = this;\n\n if (that.logarithmicScale) {\n that._range = that._drawMax - that._drawMin;\n return;\n }\n\n if (that.scaleType === 'floatingPoint') {\n that._range = (that._drawMax - that._drawMin).toString();\n }\n else {\n that._range = new JQX.Utilities.BigNumber(that._drawMax).subtract(that._drawMin).toString();\n }\n }", "function changeVal(roomSize, old_value){\n\nif (roomSize==\"Small\")\n{\nvar new_min = -40;\nvar new_max = 40;\n}\nelse if (roomSize==\"Medium\")\n{\nvar new_min = -180;\nvar new_max = 180;\n}\nelse{\nvar new_min = -400;\nvar new_max = 400;\n}\n\nreturn (((old_value - old_min) / (old_max - old_min) ) * (new_max - new_min) + new_min);\n\n}", "createRandomCoord(min, max) {\n return Math.random() * (max - min) + min;\n }", "function entierAleatoire(min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n }", "function ordinamento (x, y) {\r\n return x - y;\r\n}", "function minMax(min, max){\n return (min) + (Math.random() * (max - min));\n }", "function setRange () {\n event.preventDefault();\n\n minInputValue = document.getElementById( 'minInput' ).value;\n maxInputValue = document.getElementById( 'maxInput' ).value;\n\n minInput = parseInt( minInputValue );\n maxInput = parseInt( maxInputValue );\n\n solution = generateRandomNumber( minInput, maxInput );\n}", "function getYMax(values, ucl, goal) {\n \t \t\n \tvar i, value, max = ucl;\n \t\n \tif (goal !== undefined && goal > max) {\n \t\tmax = goal;\n \t}\n \t\n \tfor(i = 0; i < values.length; i++) {\n \t\tvalue = values[i];\n \t\tif (value > max) {\n \t\t\tmax = value;\n \t\t}\n \t}\n \t\n \treturn max;\n }", "function between(a, b) {\n // your code here\n let array = []\n let min = Math.min(a,b)\n let max = Math.max(a,b)\n for(let i=min; i<=max; i++){\n array.push(i)\n }\n return array\n\n}", "bound(num, prop) {\n num = Math.min(num, this.max);\n num = Math.max(num, this.min);\n // ensure that maxValue and minValue don't swap positions\n if (prop === \"maxValue\") {\n num = Math.max(num, this.minValue);\n }\n if (prop === \"minValue\") {\n num = Math.min(num, this.maxValue);\n }\n return num;\n }", "stepsIn(el) {\n return Number(el.max) - Number(el.min) + 1;\n}", "function map(value, sourceMin, sourceMax, destinationMin, destinationMax) {\n\treturn destinationMin + (destinationMax - destinationMin) * ((value - sourceMin) / (sourceMax - sourceMin)) || 0;\n}", "function mapValue(value, origMin, origMax, newMin, newMax) {\n return (value - origMin) * (newMax - newMin) / (origMax - origMin) + newMin;\n }", "_a(){\n\t\t\treturn Math.max(Math.min(0.1*this.B,0.4*this.z),0.04*this.B,3)\n }", "clamp(min, max) {\r\n if (this.data < min) return FNumber(min)\r\n if (this.data > max) return FNumber(max)\r\n\r\n return FNumber(this.data)\r\n }", "function rangeMatch(X1, minX1, maxX1, minX2, maxX2) {\n return minX2 + ((X1 - minX1) / (maxX1 - minX1)) * (maxX2 - minX2)\n}", "function getRandomInt(min, max) {\n\t\tvar minimum = parseInt(min);\n\t\tvar maximum = parseInt(max);\n\t\tvar randomeins = Math.round(Math.random() * (maximum - minimum)); //did not work when not split up\n\t\tvar randomzwei = randomeins + minimum;\n\treturn randomzwei;\n\t}", "function numbers_ranges(x, y) {\n if ((x >= 0 && x <= 15 && y >= 0 && y <= 15))\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "function numero_entero_al_azar(minimo,maximo) {\r\n return Math.floor(Math.random() * (maximo - minimo + 1) + minimo);\r\n}", "get xMax() {\n return this.xRange.max;\n }", "function getRange(m, mx){\r\n let arrRange= []\r\n for(let i = min; i<=max; i++){\r\n arrRange.push(i)\r\n }\r\nreturn arrRange\r\n }", "function normRange(val,min,max) {\n let range = max-min;\n return (val-min)/range;\n }", "validateColorRange(value) {\n const that = this.context;\n\n return Math.min(Math.max(value, that.min), that.max);\n }", "function between(value, min, max) {\n return Math.max(min, Math.min(value, max));\n }", "function setMaxYValue(dataId) {\n\n if (dataId == \"Above5\" || dataId == \"Above4\") {\n return 1;\n } else if (dataId == \"Attainment8\") {\n return 90;\n } else {\n return 0.5;\n }\n}", "checkRectangleSide(min, max, value) {\n //Does the whole magic\n if (value < min) {\n return min;\n } else if (value > max) {\n return max;\n } else {\n return value;\n }\n }" ]
[ "0.67397434", "0.658559", "0.64779675", "0.63878226", "0.63664895", "0.63454515", "0.6339881", "0.63163865", "0.6304568", "0.62992996", "0.6296427", "0.62957144", "0.62934166", "0.6291427", "0.62857276", "0.61903274", "0.61647516", "0.6160126", "0.61532164", "0.61035377", "0.60957617", "0.6082527", "0.60699016", "0.6068712", "0.6056515", "0.60501295", "0.604192", "0.6041771", "0.6033709", "0.6033248", "0.6025859", "0.6016629", "0.5999329", "0.5975988", "0.59689915", "0.5965687", "0.5954816", "0.59477633", "0.59414715", "0.5935403", "0.5923114", "0.5903385", "0.5902172", "0.5898041", "0.58749926", "0.5870804", "0.586803", "0.5860094", "0.58467627", "0.5840115", "0.5829758", "0.5825288", "0.58222646", "0.58166933", "0.5811484", "0.5809476", "0.5808203", "0.58030313", "0.5801875", "0.5797209", "0.5796698", "0.5795232", "0.5794665", "0.57897663", "0.5788379", "0.57880163", "0.57862175", "0.5783642", "0.57786083", "0.5773864", "0.57713836", "0.5771371", "0.5766837", "0.57660556", "0.57647634", "0.5762353", "0.5757284", "0.57477784", "0.57449806", "0.5738392", "0.57335615", "0.57293445", "0.57289356", "0.5720621", "0.5714468", "0.5710526", "0.5706991", "0.57059777", "0.57042354", "0.57026756", "0.57014954", "0.5694357", "0.56942236", "0.5690581", "0.56874985", "0.56874985", "0.5684275", "0.5684002", "0.5679076", "0.56603837", "0.56602204" ]
0.0
-1
Clase cadena que contiene un numero aleatorio de simbolos
function Cadena(){ this.Caracteres = []; this.longitud = getRndInteger(5,35); this.velocidad = getRndInteger(2,10); this.rellenarCadena = function(x, y){ var first = (Math.random()>0.75) ? true : false; for(var i=0;i<this.longitud;i++){ var Caracter = new Simbolo(x,y,this.velocidad,first); Caracter.SimboloAleatorio(); this.Caracteres.push(Caracter); y -= tamLetra; first = false; } } this.Representar = function(){ this.Caracteres.forEach(function(caracter){ ctx.shadowColor = "#FFFFFF"; if (caracter.primero == true){ ctx.fillStyle = "#c8ffc8"; ctx.shadowBlur = 5; } else { ctx.fillStyle = "#32CD32"; ctx.shadowBlur = 0; } ctx.fillText(caracter.valor,caracter.x,caracter.y); caracter.Mover(); }); } this.Mover = function(){ this.y = (this.y>=alto) ? 0 : this.y += this.vel; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generarAleatorio(valor)\r\n{\r\n return numIdentificacion = Math.floor(Math.random() * ((valor+1) - 0) + 0); \r\n}", "function soma(nnumero){\r\n let cont = 0;\r\n for (let num of numeros){\r\n cont = cont +num\r\n }\r\n return soma \r\n }", "function sequencia1(num) {\n return 0\n}", "function generateNumCommande() {\n var random = Math.floor(100000000 + Math.random() * 900000000);\n num_commande = 'NH'+random\n }", "function sequencia2(num) {\n return 0\n}", "function Telefono(num, marca, color) {\n\tthis.marca = marca;\n\tthis.color = color;\n\tthis.num = num;\n\tthis.numLlamadas = 0;\n\tthis.marcar = function(){\n\tconsole.log(\"llamada realizada\");\n\tthis.numLlamadas++;\n\treturn this.numLlamadas;\n\t};\n}", "function aleatorio(minimo, maximo){\n\tvar Numero= Math.floor(Math.random() * (maximo - minimo + 1) + minimo );\n\treturn Numero;\n}", "constructor (number) {\n this.number = number\n }", "function Jugador(n){\r\n\tthis.numero = n;\r\n\tthis.vidas = 5;\r\n}", "function sequencia4(num) {\n return 0\n}", "constructor(num/*: number*/, id/*:string*/=uuid()) {\n this.id = id;\n this.num = num;\n }", "function tamanhoAleatorio() {\n let classe = Math.floor(Math.random() * 3)\n\n switch(classe) {\n case 0:\n return 'mosquito1'\n \n case 1:\n return 'mosquito2'\n \n case 2:\n return 'mosquito3'\n }\n}", "function crearNumeroAleatorio() {\n let number = Math.round(Math.random() * 10000);\n\n return number;\n}", "function sequencia3(num) {\n return 0\n}", "function tamanhoAleatorio() {\n var classe = Math.floor(Math.random() * 3)\n\n // alterar a classe do elemento (borboleta)\n switch(classe) {\n case 0:\n return \"borboleta1\"\n case 1:\n return \"borboleta2\"\n case 2:\n return \"borboleta3\"\n\n }\n}", "constructor(a_num,a_name) {\n this.a_num = a_num;\n this.a_name = a_name;\n this.a_id = ++A.num_1;\n }", "function tamanhoMosquito() {\n let classe = Math.floor(Math.random() * 3);\n\n switch (classe) {\n case 0:\n return 'mosca1';\n case 1:\n return 'mosca2';\n case 2:\n return 'mosca3';\n }\n}", "function clasificacion(numero) {\n let salida = \"hola\";\n switch (numero) {\n case \"0\":\n salida = \" Personal \"\n break;\n case \"1\":\n salida = \" Hipotecario \"\n break;\n case \"2\":\n salida = \" Prendario \"\n break;\n\n }\n return (salida);\n}", "function mascota(name){\n\treturn{\n\t\tcomida: 0,\n\t\tnombre: name,\n\t\tcomer: function comer(){\n\t\t\tthis.comida += 3\n\t\t}\n\t}\n}", "constructor(numero1,numero2){//funcion donde se declaran parametros\r\n this.Numero1=numero1;//atributos\r\n this.Numero2=numero2;//atributos\r\n }", "nextID(){\n this.uniiqueID = this.uniiqueID || 0;\n return this.uniiqueID++;\n }", "function classRandom(){\n let myRandom = Math.random(); // our number between 0-1\n return Math.floor(11 * myRandom);\n}", "function Numeral (number) {\n this._n = number;\n }", "function Numeral (number) {\n this._n = number;\n }", "function somaPrimos(num) {\n return 0\n}", "function generaNumeroCasuale (){\n return numero = Math.floor(Math.random()*100);\n}", "function auxNaipes(promedio) {\n let simbolo;\n\n if(promedio > 0 && promedio <= 19) \n simbolo = 'A';\n else if(promedio >= 20 && promedio <= 38) \n simbolo = 'B';\n else if(promedio >= 39 && promedio <= 57) \n simbolo = 'C';\n else if(promedio >= 58 && promedio <= 76) \n simbolo = 'D';\n else if(promedio >= 77 && promedio <= 95) \n simbolo = 'E';\n else if(promedio >= 96 && promedio <= 114) \n simbolo = 'F';\n else if(promedio >= 115 && promedio <= 133) \n simbolo = 'G';\n else if(promedio >= 134 && promedio <= 152) \n simbolo = 'H';\n else if(promedio >= 153 && promedio <= 171) \n simbolo = 'I';\n else if(promedio >= 172 && promedio <= 190) \n simbolo = 'J';\n else if(promedio >= 191 && promedio <= 209) \n simbolo = 'K';\n else if(promedio >= 210 && promedio <= 228) \n simbolo = 'L';\n else if(promedio >= 229 && promedio <= 256) \n simbolo = 'M';\n return simbolo;\n\n}", "function Numbro(number) {\n this._value = number;\n }", "function oNumero(numero) {\n\t//Propiedades\n\tthis.valor = numero || 0\n\tthis.dec = -1;\n\t// Metodos\n\tthis.formato = numFormat;\n\tthis.ponValor = ponValor;\n\t// Definicion de los metodos\n\tfunction ponValor(cad) {\n\t\tif (cad == '-' || cad == '+')\n\t\t\treturn\n\n\t\tif (cad.length == 0)\n\t\t\treturn\n\n\t\tif (cad.indexOf('.') >= 0)\n\t\t\tthis.valor = parseFloat(cad);\n\t\telse\n\t\t\tthis.valor = parseInt(cad);\n\t}\n\tfunction numFormat(dec, miles) {\n\t\tvar num = this.valor, signo = 3, expr;\n\t\tvar cad = \"\" + this.valor;\n\t\tvar ceros = \"\", pos, pdec, i;\n\t\tfor (i = 0; i < dec; i++)\n\t\t\tceros += '0';\n\t\tpos = cad.indexOf('.');\n\t\tif (pos < 0) {\n\t\t\tif (ceros != \"\") {\n\t\t\t\tcad = cad + \".\" + ceros;\n\t\t\t}\n\t\t} else {\n\t\t\tpdec = cad.length - pos - 1;\n\t\t\tif (pdec <= dec) {\n\t\t\t\tfor (i = 0; i < (dec - pdec); i++)\n\t\t\t\t\tcad += '0';\n\t\t\t} else {\n\t\t\t\tnum = num * Math.pow(10, dec);\n\t\t\t\tnum = Math.round(num);\n\t\t\t\tnum = num / Math.pow(10, dec);\n\t\t\t\tcad = new String(num);\n\t\t\t}\n\t\t}\n\t\tpos = cad.indexOf('.');\n\t\tif (pos < 0)\n\t\t\tpos = cad.lentgh;\n\n\t\tif (cad.substr(0, 1) == '-' || cad.substr(0, 1) == '+')\n\t\t\tsigno = 4;\n\n\t\tif (miles && pos > signo)\n\t\t\tdo {\n\t\t\t\texpr = /([+-]?\\d)(\\d{3}[\\.\\,]\\d*)/;\n\t\t\t\tcad.match(expr);\n\t\t\t\tcad = cad.replace(expr, RegExp.$1 + '' + RegExp.$2);\n\t\t\t} while (cad.indexOf(',') > signo);\n\n\t\tif (dec < 0)\n\t\t\tcad = cad.replace(/\\./, '');\n\n\t\treturn cad;\n\t}\n}", "generarSecuencia(){\n this.secuencia = new Array(10).fill(0).map(m => Math.floor(Math.random() * 4))\n }", "function crear(numero) {\n return {\n porDos: function() {\n const resultado = numero * 2;\n console.log('el numero es', resultado);\n return resultado;\n }\n };\n}", "function dobro(numero) {\n return numero * 2;\n}", "function numeroAleatorio(maior){\n\n return Math.floor(Math.random() * maior) +1 ;\n}", "function genaratoreNumeriRandom(numero) {\n return Math.floor(Math.random() * numero) +1;\n}", "generaSecuencia() {\n this.secuencia = new Array(this.Ultimo_nivel)\n .fill(0)\n .map((n) => Math.floor(Math.random() * 4));\n }", "randomNum() {\n let i = Math.floor(Math.random() * this.length);\n let j = Math.floor(Math.random() * this.breath);\n return i + \"-\" + j;\n }", "function comenzar()\n{\n numeroSecreto=(Math.floor(Math.random() *100) + 1); // Se Genera El Numero Secreto Random\n}", "constructor() { //fungsi math.floor adlah membulatkan angka ke bawah ke angka integer terdekat dan mengebalikan hasilnya\n this.numberofCars = [Math.floor(Math.random() * 4)];// fungsi angka 4 adalah jumlah mobil yang di tulisakan dalam parameter\n }", "function tamanhoAleatorio() {\n var tamanho = Math.floor(Math.random() * 3)\n\n switch (tamanho) {\n case 0:\n return 'mosca1'\n case 1:\n return 'mosca2'\n case 2:\n return 'mosca3'\n }\n}", "function comenzar()\n{\n\t//Genero el número RANDOM entre 1 y 100\n\t numeroSecreto=Math.floor(Math.random()*100+1);//asigno a la variable 'numeroSecreto' un numero random entre el 1-100\n\t contadorIntentos=0;//asigno a la variable 'contadorIntentos' un valor =0(porque aun no tubo intentos.)\n\t\n\n}", "function generaNumero(num) {\n\n nRandom = parseInt(Math.random() * num + 1);\n\n return nRandom;\n}", "function tiraOponente(){\n var eleccionJugador2=Math.floor(Math.random()*3)+1; //Calcula un numero aleatorio entre 1 y 3\n switch(eleccionJugador2){\n case 1:\n eleccionJugador2=\"piedra\";\n break;\n case 2:\n eleccionJugador2=\"papel\";\n break;\n case 3:\n eleccionJugador2=\"tijeras\";\n break;\n default:\n return 0;\n }\n return eleccionJugador2;\n}", "function arretNumber() {\n if (this.enCours) {\n this.sonMatricule.stop();\n this.sonAmbiance.fade(0.8 , 1) //Volume son ambiance\n this.sonAmbiance.loop();\n numPrecedent = 10;\n this.enCours = false;\n clearInterval(this.changeNumber);\n // On se bloque sur un matricule connu\n selectMatricule = (this.recupererMatriculeAlea()).toString();\n ordre = (tabMatricule.indexOf(selectMatricule))+1;\n afficherMatricule(selectMatricule);\n }\n}", "function elevar_al_cuadrado(numero)\n{\n return numero * numero;\n}", "function creacionCombinacion(numero_elegido, posicion_elegida){\n var id_combinacion = 'combinacion-' + posicion_elegida;\n var posicion_actual = document.getElementById(id_combinacion);\n if(numero_elegido <= 9){\n posicion_actual.innerText = '0' + numero_elegido;\n } else {\n posicion_actual.innerText = numero_elegido;\n }\n}", "function Numbro(number) {\n\t this._value = number;\n\t }", "static genereazaVariabilaNormala01() {\n\t\t\t// Lista pentru numere aleatoare U1...U12\n\t\t\tlet U = [];\n\n\t\t\t// Se genereaza cu RNG 12 numere aleatoare U1...U12\n\t\t\t// uniforme si independente pe (0, 1)\n\t\t\tfor(let i = 0; i < 12; i++) {\n\t\t\t\t// Atasam numerele in lista\n\t\t\t\tU.push(Math.random());\n\t\t\t}\n\n\t\t\t// Iesire Z = U1+...+U12 - 6 \n\t\t\treturn (U.reduce((a, b) => a + b, 0) - 6);\n\t\t}", "function auxDomino(promedio) {\n let simbolo;\n\n if (promedio > 0 && promedio <= 25)\n simbolo = '1';\n else if (promedio >= 26 && promedio <= 50)\n simbolo = '2';\n else if (promedio >= 51 && promedio <= 75)\n simbolo = '3';\n else if (promedio >= 76 && promedio <= 100)\n simbolo = '4';\n else if (promedio >= 101 && promedio <= 125)\n simbolo = '5';\n else if (promedio >= 126 && promedio <= 150)\n simbolo = '6';\n else if (promedio >= 151 && promedio <= 175)\n simbolo = '7';\n else if (promedio >= 176 && promedio <= 200)\n simbolo = '8';\n else if (promedio >= 201 && promedio <= 225)\n simbolo = '9';\n else if (promedio >= 226 && promedio <= 256)\n simbolo = '0';\n return simbolo;\n\n}", "constructor(length){ \n this.n=BigInt(length)\n this.A={}\n }", "constructor(length){ \n this.n=BigInt(length)\n this.A={}\n }", "constructor(param) {\n this.number = param;\n }", "function Rola(numero, limite) {\n var resultado = 0;\n for (var i = 0; i < numero; ++i) {\n resultado += Math.floor(Math.random() * limite) + 1;\n }\n return resultado;\n}", "function amelioration(){\n return nbMultiplicateurAmelioAutoclick +9;\n}", "secuencia() {\n this.secuencia = new Array(ULTIMO_NIVEL).fill(0).map(n => Math.floor(Math.random() * 4))\n // console.log(this.secuencia)\n }", "function numeroAlCuadrado (numero) {\n var calculo;\n calculo = numero*numero;\n\n return calculo;\n}", "function getClass(lixNumber) {\n if (lixNumber < 10) return 1;\n if (lixNumber < 20) return 2;\n if (lixNumber < 25) return 3;\n if (lixNumber < 30) return 4;\n if (lixNumber < 35) return 5;\n if (lixNumber < 40) return 6;\n if (lixNumber < 45) return 7;\n if (lixNumber < 50) return 8;\n\n return 9;\n}", "function generaNumero(){\n let numero = Math.floor(Math.random() * 4 ) + 1;\n return numero;\n}", "function ladoAleatorio() {\n let classe = Math.floor(Math.random() * 2)\n\n if (classe === 0){\n return 'ladoA'\n } else {\n return 'ladoB'\n }\n}", "function getNum1() {\n return 4;\n}", "nuevoCiclo() {\n let suma = 0;\n for (let i = 0; i < this.vecinos.length; i++) {\n if (this.vecinos[i].estado === 1) {\n suma++;\n }\n }\n\n // Aplicamos las normas\n this.estadoProx = this.estado; // Por defecto queda igual\n\n // Vida: tiene 3 vecinos\n if (this.estado === 0 && suma === 3) {\n this.estadoProx = 1;\n }\n\n // Muerte: menos de 2(soledad) o mas de 3 (inanicion)\n if (this.estado == 1 && (suma < 2 || suma > 3)) {\n this.estadoProx = 0;\n }\n }", "function rand(numero) {\n\treturn Math.floor(Math.random() * numero) + 1;\n}", "function numAleatorio(lng) {\n var num = \"\";\n for (i = 0; i < lng; i++) {\n num += \"9\";\n }\n return Math.floor(Math.random() * parseInt(num)) + 1;\n}", "transformar(numero) {\n switch (numero) {\n case 0:\n return 'celeste'\n case 1:\n return 'violeta'\n case 2:\n return 'naranja'\n case 3:\n return 'verde'\n }\n }", "function duplicar(numero){\n return numero*2;\n}", "static calcularPersonas(num){\n for (let i = 0; i < num; i++) {\n personas[i] = new Persona();\n personas[i].getNumero(i + 1);\n }\n }", "function enviarNumero(){\n let n = Math.round(Math.random()*2)\n return n\n}", "function alCubo(numero)\r\n{\r\n return numero * numero;\r\n}", "function strNum() {\n return {\n type: [String, Number],\n default: null\n };\n} // Memoized function for better performance on generating class names", "function strNum() {\n return {\n type: [String, Number],\n default: null\n };\n} // Memoized function for better performance on generating class names", "function obtenerAleatorio(){\n\treturn Math.random();\n}", "function createTrainNum(){\n trainNum = (Math.floor(Math.random() * 9999))\n }", "function numberGenerator() {\n var numero = Math.floor(Math.random() * numeroTotaleGiocate) + 1;\n return numero;\n}", "constructor (number = 1) {\n this.data = number;\n }", "static fromNumerical(numerical ) {\n const string_of_number = Number(numerical).toString();\n if (string_of_number === \"0\") {\n return new this(0, 0, null);\n }\n const index_of_decimal = [...string_of_number].findIndex((element) => element === \".\");\n const number_character_array = [...string_of_number.replace(\".\", \"\")];\n const length = number_character_array.length;\n const decimal_offset = (index_of_decimal === -1) ? length : index_of_decimal;\n\n let last_unit = null;\n for (let i = length - 1; i >= 0; i--) {\n const power = decimal_offset - i - 1;\n const value = Number(number_character_array[i]);\n if (value === 0) {\n continue;\n }\n last_unit = new this(power, value, last_unit);\n }\n return last_unit;\n }", "function miFuncion(x) {\n\n return this.numero + x;\n\n}", "function operacion(){\r\n if (numeros.segundo === null || numeros.segundo === \"\" || Number.isNaN(numeros.segundo)){ \r\n return raiz(); // Si hay un solo número, llamar a la funcion raiz\r\n } else {\r\n return aritmetica(); // Si hay dos a la función aritmética\r\n }\r\n }", "function mkNum(machine, i, n) {\n if(!machine.validSlot(i)) {\n return errorPlan(\"Bad slot for mkNum\");\n }\n if(machine.getProponentSlot(i).field !== id) {\n return errorPlan(\"Not an id function in slot \" + i + \" to mkNum!!!\");\n }\n if(typeof n !== \"number\") { return errorPlan(\"n not a number in mkNum\"); }\n\n function getList(n) {\n if(n == 0) { return [{type: \"R\", card: Zero, slot: i}]; }\n if((n % 2) == 0) { \n var arr = getList(n / 2);\n print(arr);\n arr[arr.length] = {type: \"L\", card: Dbl, slot: i};\n return arr;\n }\n var arr = getList(n - 1);\n print(arr);\n arr[arr.length] = {type: \"L\", card: Succ, slot: i};\n return arr;\n }\n\n var list = getList(n);\n var ix = 0;\n return {\n next: function() {\n if(ix >= list.length) { return nullMove; }\n var move = list[ix];\n ix += 1;\n return move;\n }};\n}", "function fatorial(numero) {\n return 0\n}", "function Numeral(number){this._value=number;}", "function agregarNumero(num){\n opActual = opActual + num; \n actualizarDisplay();\n}", "tratarDigito() {\n let numero = \"\";\n\n numero = numero.concat(this.caracter);\n this.lerCaracter();\n\n while (/[0-9]/g.test(this.caracter) === true) {\n numero = numero.concat(this.caracter);\n this.lerCaracter();\n }\n this.token.lexema = +numero\n this.token.simbolo = \"snumero\"\n this.token.linha = this.numLinha\n }", "randomLikeGenerator() {\n return Math.floor(Math.random() * 10) + 1\n }", "LanzarBomba(num){\n return this.bomba[num];\n\n }", "function Numeral(number) {\n this._value = number;\n }", "function Numeral(number) {\n this._value = number;\n }", "function Numeral(number) {\n this._value = number;\n }", "function Numeral(number) {\n this._value = number;\n }", "function agregarNumero(num) {\n // llevandolo a texto para concatenar (para unir), recordar que la pantalla es in input text\n opeActual = opeActual.toString() + num.toString();\n actualizarPantalla();\n\n}", "function generarNumero(numero){\n return (Math.random()*numero).toFixed(0);\n }", "function reestablece(){\n colector = \"0\";\n operacion = \"\";\n operador0 = 0;\n operador1 = 0;\n resultado = 0;\n iteracion = 0;\n }", "function numeroAleatorio(min, max) {\n var numero = Math.random() * (max - min) + min;\n var entero = Math.round(numero);\n return entero;\n }", "function aleatorio(max){\n return ~~(Math.random()*max);//retorno del numero aleatorio\n}", "function generateNumber() {\n return 5;\n}", "function generarAleatorio(){\r\n let aleatorio = Math.floor(Math.random()*(10-5)+5);\r\n alert(aleatorio);\r\n}", "function aleatorios(limite = 1) {\n let r = []\n for (let i = 0; i < limite; i++) {\n r[i] = numeroAlAzar100()\n }\n\n return r\n \n }", "function Ruleta(){\n\tRuleta.prototype.tirar = function(){\n\t\t\treturn Math.floor((Math.random() * _numCasilleros));\n\t}\n}", "function aletorio(minimo, maximo){\n\tvar n = Math.floor( Math.random() * (maximo - minimo + 1) + minimo);\n\treturn n;\n}", "function getRandomInt(numeroMassimo) {\n return Math.floor(Math.random() * numeroMassimo + 1);\n }", "function proximoRegistro() {\n let ultimo = personas.find((x) => x.id === personas.length);\n let registro = ultimo.id + 1;\n return registro;\n}", "function numeroAleatorio(min, max) {\n return Math.floor(Math.random() * (max - min)) + min;\n }", "function numero_entero_al_azar(minimo,maximo) {\r\n return Math.floor(Math.random() * (maximo - minimo + 1) + minimo);\r\n}" ]
[ "0.64673537", "0.63441026", "0.63142586", "0.62975824", "0.6282687", "0.62693846", "0.6196332", "0.6183926", "0.6175108", "0.61521196", "0.61468077", "0.60744035", "0.60362285", "0.60308456", "0.6003629", "0.60004634", "0.59629554", "0.58911943", "0.58869135", "0.58610123", "0.58289707", "0.58266836", "0.58244014", "0.58244014", "0.5811262", "0.5810252", "0.5792849", "0.57875645", "0.5773716", "0.577165", "0.57708097", "0.5762582", "0.57565063", "0.57559484", "0.57487077", "0.57422984", "0.57347864", "0.57267845", "0.57190984", "0.5710725", "0.5703757", "0.5702281", "0.56942904", "0.56855285", "0.5683471", "0.56833404", "0.56722647", "0.5671199", "0.566134", "0.566134", "0.5656609", "0.5650687", "0.5650134", "0.5643981", "0.56425077", "0.5639361", "0.5603997", "0.560211", "0.55837405", "0.55783165", "0.5566157", "0.5559848", "0.5557518", "0.5556541", "0.5556364", "0.55502355", "0.5545997", "0.5542475", "0.5542475", "0.554049", "0.5535692", "0.5533103", "0.55318606", "0.55267066", "0.5520767", "0.5518765", "0.5513695", "0.5507278", "0.5505799", "0.5504007", "0.5492483", "0.5483778", "0.5467183", "0.5466448", "0.5466448", "0.5466448", "0.5466448", "0.5465715", "0.5464337", "0.54636323", "0.5453504", "0.5446655", "0.54459107", "0.54387265", "0.543723", "0.5435757", "0.54353726", "0.5432006", "0.54294294", "0.54203385", "0.54153323" ]
0.0
-1
Funcion encargada de animar esperando al refresco de la pantalla
function Animar(){ FPS = (FPS > 59) ? 0 : FPS += 1; ctx.clearRect(0,0,ancho,alto); cadenas.forEach(function(cad){ cad.Representar(); }); requestAnimFrame(Animar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function animacaoJogo(){\n __life.step();\n __life.desenhaGrid(window.ctx);\n window.idTimeoutJogo = setTimeout(animacaoJogo, 10);\n }", "function animacion(algo){\n\tvar contenido = document.getElementById(\"esfera\");\n\t$(\"#esfera\").addClass('esfera');\n\t$(\"#direccion\").addClass('direccion');\n $(\"#escrituraA\").addClass('escrituraA');\n $(\"#direccion\").fadeIn();\n\n\tcontenido.addEventListener('animationend', function(){\n $(\"#direccion\").fadeOut();\n\t\t$(\"#esfera\").removeClass('esfera');\n\t\t$(\"#direccion\").removeClass('direccion');\n $(\"#escrituraA\").removeClass('escrituraA');\n $(\".datoTranformar\").empty(); // limpiar el contenido del \"p\"\n $(\".direccionHe\").empty(); // limpiar el contenido del \"p\"\n $(\"#demo2\").empty();\n alert('SU LETRA FUE GUARDADA CORRECTAMENTE...');\n\t}, false);\n}", "function sinistra_destra() {\n // Riporto\n titolo_iniziale.style.left = \"0px\";\n titolo_iniziale.animate({opacity: 1}, 1100);\n}", "function animatie(){\n var timeline = new TimelineMax ({repeat:-1});\n timeline.to(\"#klok\", 50, {ease: Elastic.easeOut.config(10), y:6});\n}", "function objectos_jogo()\n{\n\n estado = 2;\n objectos_jogadores();\n objectos_comida();\n jog_activo = 0;\n\n // animaçao inicial do tabuleiro de jogo\n move_obj($('mapa_jogo_img'),23,48);\n move_obj($('jogador_1'),290,320);\n move_obj($('preparado'),320,450);\n move_obj($('comida_img'),0,50);\n move_obj($('comida_pw_img'),1,49);\n\n\n setTimeout(\"move_obj($('jogador_1'),-1000,0); move_obj($('jogador_2'),-1000,0); nascer(); \", 2143);\n}", "function animateIntro() {\n // Declarando las constantes para seleccion en el dom los elementos (La forma especifica de declarar es por la libreria, se declara con selectores de CSS)\n\n // Primera fila\n const boxTop = '.box-top .box';\n // Segunda fila\n const boxMiddle = '.box-middle .box';\n // Tercera fila\n const boxBottom = '.box-bottom .box';\n\n\n// Poner las constantes dentro de un array para poder hacer un loop\n let boxArray = [boxTop, boxMiddle, boxBottom];\n\n// Declaro un counter para poder incrementar la difencia en que se deben ejecutar las animaciones entre las filas\n let counter = 0;\n\n// El translate value es la distancia vertical hasta donde va la animacion\n let TranslateValue = -300;\n\n// Loop para cambiar los tiempos de cada pieza al hacer la animacion\n for (let pos in boxArray) {\n setTimeout(() => {\n anime({\n targets: boxArray[pos],\n opacity: 0,\n translateY: [\n {value: TranslateValue, duration: 500}\n ],\n rotate: {\n value: '1turn',\n easing: 'easeInOutSine'\n },\n backgroundColor: '#ffb840',\n borderRadius: ['0', '50px'],\n easing: 'easeInOutQuad',\n delay: function(el, i, l){return i * 400},\n autoplay:true\n });\n } , counter);\n\n counter += 1000;\n TranslateValue += -130;\n };\n}", "function animacionResultado (etiqueta, opcion) // Le agrego un poco de CSS al dar un resultado o al limpiar el formulario\r\n{\r\n switch (opcion){\r\n case 1: // Resultado de la reserva\r\n $(etiqueta).css(\"color\", \"white\")\r\n .css(\"background\", \"#18bc9c\")\r\n .css(\"padding\", \"1rem\")\r\n .slideUp(0)\r\n .slideDown(1000);\r\n break;\r\n\r\n case 2: // Volver a los colores iniciales del sitio\r\n $(etiqueta).css(\"color\", \"#2c3e50\")\r\n .css(\"background\", \"white\")\r\n .css(\"padding\", \"0\")\r\n .slideUp(0)\r\n .slideDown(1000);\r\n break;\r\n case 3: // Resultado de error\r\n $(etiqueta).css(\"color\", \"white\")\r\n .css(\"background\", \"red\")\r\n .css(\"padding\", \"1rem\")\r\n .slideUp(0)\r\n .slideDown(1000);\r\n break;\r\n \r\n case 4: // Volver a los colores iniciales del sitio sin animación\r\n $(etiqueta).css(\"color\", \"#2c3e50\")\r\n .css(\"background\", \"white\")\r\n .css(\"padding\", \"0\")\r\n \r\n break;\r\n default:\r\n break;\r\n }\r\n \r\n}", "function animacion1(id,nombre,cual,nom){\n\t\t//Animamos el circulo\n\t\tvar padre = $(id).parent();\n\t\tpadre.animate({borderWidth:10,opacity:0},350,function(){\n\t\t\tpadre.animate({opacity:1,borderWidth:3},350);\n\t\t});\n\t\t\n\t\tif(nom){\n\t\t\t//Animamos el nombre\n\t\t\tvar palabras = creaPalabras(alfabeto,nombre);\n\t\t\t$(id+\"_n\").animate({opacity:0},100,function(){\n\t\t\t\t$(id+\"_n\").animate({opacity:1},1000);\n\t\t\t});\n\t\t\tvar anim = setInterval(function(){\n\t\t\t\t$(id+\"_n\").html(palabras[cual]);\n\t\t\t\tcual++;\n\t\t\t\tif(cual == palabras.length + 1){\n\t\t\t\t\tcual = 0;\n\t\t\t\t\tclearInterval(anim);\n\t\t\t\t}\n\t\t\t},100);\n\t\t}\n\t}", "function animcompleted() {\n\t\t\t\t\t\t}", "function animate() { \n console.log('animate')\n \n gsap.registerEffect({\n name: \"fadeIn\",\n effect: (targets, config) => {\n var tlEffect = gsap.timeline();\n tlEffect.from(targets, {duration: config.duration, y:config.y, force3D:true, rotation: 0.01, stagger:config.stagger, ease:\"power2\"})\n .from(targets, {duration: config.duration, stagger:config.stagger, alpha:0, ease:\"none\"}, \"<\")\n return tlEffect;\n },\n defaults: {duration: 1.5, y:\"-=7\", stagger:4.5},\n extendTimeline: true,\n });\n \n gsap.to(plantWraps, {duration:25, rotation:\"+=20\", ease:\"none\"})\n gsap.to(flowerWraps, {duration:25, rotation:\"+=100\", ease:\"none\"})\n \n var imageDivs = selectAll('.imageDiv');\n // logoIntro = false;\n\n\t\t\ttl\n .to(bannerCover, {duration:0.7, alpha:0, ease:\"none\"})\n \n .from(plants, {duration:3, drawSVG:\"50% 50%\", ease:\"sine.inOut\"}, \"<\")\n .from(flowers, {duration:2, alpha:0, ease:\"none\"}, \"<\")\n \n if(logoIntro) {\n tl\n .from(letter_w, {duration:0.5, drawSVG: 0, ease:\"sine.in\"}, \"<\")\n .from(letter_y, {duration:0.3, drawSVG: 0, ease:\"sine.in\"}, \">\")\n .from(letter_nn, {duration:0.8, drawSVG: 0, ease:\"sine.inOut\"}, \">\")\n .from(lasvegas, {duration:0.7, y:\"-=10\", alpha: 0, ease:\"sine\"}, \">\")\n .from(sign_r, {duration:0.5, alpha: 0, ease:\"none\"}, \"<\")\n\n .to(logo, {duration:0.7, alpha:0, ease:\"none\"}, \">1\")\n .set(logo, {scale: 0.37, y:99, x:-60}, \">\")\n } else {\n tl\n .set(logo, {scale: 0.37, alpha:0,y:99, x:-60}, \"<\")\n }\n \n tl\n .from(imageDivs, {duration:1.3, stagger:4, alpha:0, blur:10, force3D:true, rotation: 0.01, ease:\"none\"}, \"<\")\n \n .fadeIn(text_head, \"<0.4\")\n .fadeIn(text_subHead,{y:\"0\", duration: 1,},\"<0.6\")\n .to(logo, {duration:1, alpha:1, ease:\"none\"}, \"<0.4\")\n .from(cta, {duration:0.8, alpha: 0, ease:\"none\"}, \"<\")\n .from(cta, {duration:1.6, rotateX:90, ease:\"power2\"}, \"<\") \n\t\t}", "function buttonAnimation () {\n\t\tlet fd_tmp = widthOfEltInDiap(); // recevoire la taille d'un élément\n\t\tif(innerWidth < 800){\n\t\t\tif(fd_position < fd_tmp * 10){\n\t\t\t\t// translate le diapo par une unité (fd_tmp la taille d'un seul élément de diapo) \n\t\t\t\tfd_ulDiapo.css('transition', '0.8s ease-in').css('transform', 'translateX(' + (-1)*(fd_tmp + fd_position) + 'px)');\n\t\t\t\tfd_position += fd_tmp; // position de reférence (continue translate lorsque l'événement est regénérer)\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(fd_position < fd_tmp * 8){\n\t\t\t\t// translate le diapo par une unité (fd_tmp la taille d'un seul élément de diapo) \n\t\t\t\tfd_ulDiapo.css('transition', '0.8s ease-in').css('transform', 'translateX(' + (-1)*(fd_tmp + fd_position) + 'px)');\n\t\t\t\tfd_position += fd_tmp; // position de reférence (continue translate lorsque l'événement est regénérer)\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "function animacionButton(){\n /* no esta hecha aun */\n}", "function amarillo(elemento){\n if (tiempoJuego > 0) \n {\n $(elemento).animate(\n {\n 'color': \"yellow\"\n }, 500, function()\n {\n blanco(elemento);\n }\n );\n }\n}", "function movimineto_por_punto ( posicionActual , click )\n {\n \n if(click)\n {\n clearInterval( intervalo );\n }\n \n \n \n var lefTotal = posicionActual * ancho; /*posicion * 1024*/\n var seleccion = posicionActual * -1;\n \n var slidelI = $('ul.ulSlide li'); //sleecion de los li \n \n var seleccionPuntoActual = botoneraSlide //selecciona la botomera\n .find('div') //busque todos los div \n .eq( seleccion ); //seleccione el que pasamos al llamar la funcion\n \n var puntoDeselecionar = botoneraSlide\n .find('div') //busque todos los div\n .not( seleccionPuntoActual ); //le decimos qu eno seleccione el punto actual\n\n \n \n var tl = new TimelineMax(); //variable propia de la libreria\n\n\n //accdemos a la variable tl\n //to le pasamos algo\n // el slide show\n // en 1.2 segundos\n // le modificamos la porpiedad margin left\n // y le apsamos el eefecto propio de la libreria\n tl.to(slideShow , 1.2, {\n marginLeft: lefTotal,\n ease: Elastic.easeOut.config(1, 0.75) //propiedad de efecto propio de la libreria\n })\n .to( seleccionPuntoActual , 0.5 , { //le pasamos el punto seleccionado \n backgroundColor: \"rgba(0,0,0,.9)\" //le modificamos el css\n } , \"-=1.2\") //le decimos que inicie en -1.2 segundos \n .to( puntoDeselecionar, 0.5, {\n backgroundColor: \"rgba(255,255,255,0.7)\" \n } , \"-=1.2\");\n \n }", "function blanco(elemento){\n if (tiempoJuego > 0) \n {\n $(elemento).animate(\n {\n 'color': \"white\"\n }, 500, function()\n {\n amarillo(elemento);\n }\n );\n }\n}", "function recorrerBajada() {\n nuevaPosicion();\n $('.bajada').animate({'left': '150%'}, tempo, function() {\n actualizarBajada();\n });\n\n // Iniciar BANDAA\n animarBandaA();\n // Iniciar BANDAB\n animarBandaB();\n // Iniciar BANDAC\n animarBandaC();\n }", "function bouger() {\n console.log(\"Animation logo activée\");\n $('.image')\n .transition({\n debug: true,\n animation: 'jiggle',\n duration: 500,\n interval: 200\n })\n ;\n}", "function Animation (){\n var animation = anime.timeline();\n \n animation.add({\n targets:'.animat',\n height:['100%',0],\n easing:'easeInOutCirc',\n delay:1200\n });\n \n \n }", "function animarCuadro(cuadro_id) {\n $(cuadro_id).animate({left: '400px'});\n $(cuadro_id).animate({left: '0px'});\n}", "function onetone_animation(e){\n\t\n\te.css({'visibility':'visible'});\n\t\t\te.find(\"img,i.fa\").css({'visibility':'visible'});\t\n\n\t\t\t// this code is executed for each appeared element\n\t\t\tvar animation_type = e.data('animationtype');\n\t\t\tvar animation_duration = e.data('animationduration');\n\t var image_animation = e.data('imageanimation');\n\t\t\t if(image_animation === \"yes\"){\n\t\t\t\t\t\t \n\t\t\te.find(\"img,i.fa\").addClass(\"animated \"+animation_type);\n\n\t\t\tif(animation_duration) {\n\t\t\t\te.find(\"img,i.fa\").css('-moz-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('-webkit-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('-ms-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('-o-animation-duration', animation_duration+'s');\n\t\t\t\te.find(\"img,i.fa\").css('animation-duration', animation_duration+'s');\n\t\t\t}\n\t\t\t\n\t\t\t }else{\n\t\t\te.addClass(\"animated \"+animation_type);\n\n\t\t\tif(animation_duration) {\n\t\t\t\te.css('-moz-animation-duration', animation_duration+'s');\n\t\t\t\te.css('-webkit-animation-duration', animation_duration+'s');\n\t\t\t\te.css('-ms-animation-duration', animation_duration+'s');\n\t\t\t\te.css('-o-animation-duration', animation_duration+'s');\n\t\t\t\te.css('animation-duration', animation_duration+'s');\n\t\t\t}\n\t\t\t }\n\t}", "function agitar() {\n const div = document.getElementById(\"enviarCorreo\");\n executeScroll();\n div.style.animationName = \"agitar\";\n setTimeout(() => {\n div.style.animationName = \"\";\n }, 1000);\n }", "function contentAnimation() {\n\n var tl = gsap.timeline();\n tl.from('.is-animated', { duration: 1, translateY: 60, opacity: 0, stagger: 0.4 });\n tl.from('.fadein', { duration: 0.5, opacity: 0.9 });\n}", "function eseguiAnimazione() {\n\t\t// rimuovo l'evento\n\t\t_btnAvvia.off(\"click\");\n\t\tlampeggio = false;\t// faccio partire l'animazione --> nascondo graficamente il pulsante\n\t\t_btnAvvia.css(\"cursor\", \"default\");\t// cambio l'aspetto del cursore del mpuse\n\t\t$(\"#pedina\")\n\t\t\t.css({ \"left\": \"10px\", \"top\": \"260px\", \"width\": \"15px\", \"height\": \"15px\" })\n\t\t\t.animate({ \"left\": '+=60px', \"width\": \"8px\", \"height\": \"8px\" }, '1300')\n\t\t\t.animate({ \"top\": '+=38px', \"width\": \"15px\", \"height\": \"15px\" }, '1300')\n\t\t\t.animate({ \"left\": '+=116px', \"width\": \"8px\", \"height\": \"8px\" }, '1300')\n\t\t\t.animate({ \"top\": '+=77px', \"width\": \"15px\", \"height\": \"15px\" }, '1300')\n\t\t\t.animate({ \"left\": '+=250px', \"width\": \"8px\", \"height\": \"8px\" }, '1300',\n\t\t\t\tfunction () {\n\t\t\t\t\t_btnAvvia.on(\"click\", eseguiAnimazione);\n\t\t\t\t\tlampeggio = true;\n\t\t\t\t\t_btnAvvia.css(\"cursor\", \"pointer\");\n\t\t\t\t\tlamp();\n\t\t\t\t});\n\t}", "function ecra_inicial()\n{\n\n estado = 0;\n\n // OPENING creditos ANIMATION\n move_obj($('mapa_jogo_img'),-1000,0);\n move_obj($('mapa_jogo_flash'),-1000,0);\n move_obj($('comida_img'),-1000,0);\n move_obj($('comida_pw_img'),-1000,0);\n move_obj($(\"jog_1\"),40,-1);\n move_obj($(\"pontuacao_jog1\"),9,22);\n move_obj($(\"jog_2\"),610,0);\n move_obj($(\"pontuacao_jog2\"),580,22);\n move_obj($(\"maxpontuacao\"),300,-1);\n move_obj($(\"pontuacao_maxim\"),290,22);\n\n limpa_pontuacaos();\n\n move_obj($('ecra_inicial_obj'),0,50);\n\n setTimeout(\"move_obj($('ecra_inicial_obj_0'),265,150);\", 0);\n setTimeout(\"move_obj($('ecra_inicial_obj_1'),260,185);\", 500);\n setTimeout(\"move_obj($('ecra_inicial_obj_2'),293,190);\", 1000);\n setTimeout(\"move_obj($('ecra_inicial_obj_3'),433,190);\", 1500);\n\n setTimeout(\"move_obj($('ecra_inicial_obj_4'),260,215);\", 2000);\n setTimeout(\"move_obj($('ecra_inicial_obj_5'),293,220);\", 2500);\n setTimeout(\"move_obj($('ecra_inicial_obj_6'),433,220);\", 3000);\n\n setTimeout(\"move_obj($('ecra_inicial_obj_7'),260,245);\", 3500);\n setTimeout(\"move_obj($('ecra_inicial_obj_8'),293,250);\", 4000);\n setTimeout(\"move_obj($('ecra_inicial_obj_9'),433,250);\", 4500);\n\n setTimeout(\"move_obj($('ecra_inicial_obj_10'),260,275);\", 5000);\n setTimeout(\"move_obj($('ecra_inicial_obj_11'),293,280);\", 5500);\n setTimeout(\"move_obj($('ecra_inicial_obj_12'),433,280);\", 6000);\n}", "function revelarSumario(){\n\t\tsumario.removeClass('easing-invertido');\n\t\tsetTimeout(function(){\n\t\t\tsumario.addClass('visivel');\n\t\t\tsumarioAberto = true;\n\t\t}, 20)\n\t}", "function next_img_slide(dem,class_name,vitri)\n{\n let temp = document.getElementsByClassName(class_name)[vitri];\n let a = new Number(temp.style.left.replace(\"%\",\"\"));\n if(a > dem*(-33))\n {\n a -= 33;\n }\n let right_deg = a +\"%\";\n document.getElementsByClassName(class_name)[vitri].style.left = right_deg;\n var moveAndChangePosition = [\n {\n left : right_deg,\n }\n ]\n temp.animate(moveAndChangePosition,{\n duration : 500,\n fill: 'forwards'\n })\n}", "function animateContenedor(target){\n anime({\n targets: target,\n opacity: 1,\n easing: 'easeInOutQuad',\n delay: 80,\n autoplay: true\n });\n}", "function sobrePage(do_sobre) {\r\n function startAnimation(element) {\r\n var animationData = {\r\n assets: [],\r\n v: \"4.2.0\",\r\n ddd: 0,\r\n layers: [{\r\n ddd: 0,\r\n ind: 0,\r\n ty: 4,\r\n nm: \"mask\",\r\n td: 1,\r\n ks: {\r\n o: {\r\n k: 100\r\n },\r\n r: {\r\n k: 0\r\n },\r\n p: {\r\n k: [9, 9, 0]\r\n },\r\n a: {\r\n k: [0, 0, 0]\r\n },\r\n s: {\r\n k: [50, 50, 100]\r\n }\r\n },\r\n shapes: [{\r\n ty: \"gr\",\r\n it: [{\r\n ind: 0,\r\n ty: \"sh\",\r\n closed: !0,\r\n ks: {\r\n k: [{\r\n i: {\r\n x: .833,\r\n y: .833\r\n },\r\n o: {\r\n x: .167,\r\n y: .167\r\n },\r\n n: \"0p833_0p833_0p167_0p167\",\r\n t: 0,\r\n s: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [0, -24.375],\r\n [25.913, -1.203],\r\n [35, -8.5]\r\n ]\r\n }],\r\n e: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [17.125, -.625],\r\n [25.913, -1.203],\r\n [35, -8.5]\r\n ]\r\n }]\r\n }, {\r\n i: {\r\n x: .833,\r\n y: .833\r\n },\r\n o: {\r\n x: .167,\r\n y: .167\r\n },\r\n n: \"0p833_0p833_0p167_0p167\",\r\n t: 4,\r\n s: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [17.125, -.625],\r\n [25.913, -1.203],\r\n [35, -8.5]\r\n ]\r\n }],\r\n e: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [.125, 26.625],\r\n [25.913, -1.203],\r\n [35, -8.5]\r\n ]\r\n }]\r\n }, {\r\n i: {\r\n x: .833,\r\n y: .833\r\n },\r\n o: {\r\n x: .167,\r\n y: .167\r\n },\r\n n: \"0p833_0p833_0p167_0p167\",\r\n t: 8,\r\n s: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [.125, 26.625],\r\n [25.913, -1.203],\r\n [35, -8.5]\r\n ]\r\n }],\r\n e: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [-28.5, -.125],\r\n [7.538, 38.672],\r\n [35.125, 33.875]\r\n ]\r\n }]\r\n }, {\r\n i: {\r\n x: .833,\r\n y: .833\r\n },\r\n o: {\r\n x: .167,\r\n y: .167\r\n },\r\n n: \"0p833_0p833_0p167_0p167\",\r\n t: 12,\r\n s: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [-28.5, -.125],\r\n [7.538, 38.672],\r\n [35.125, 33.875]\r\n ]\r\n }],\r\n e: [{\r\n i: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n o: [\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0],\r\n [0, 0]\r\n ],\r\n v: [\r\n [23.25, -18.375],\r\n [0, -18.125],\r\n [0, 0],\r\n [.375, -18.25],\r\n [-50.212, 7.672],\r\n [19.75, 38]\r\n ]\r\n }]\r\n }, {\r\n t: 16.0000006516934\r\n }]\r\n },\r\n nm: \"Path 1\"\r\n }, {\r\n ty: \"fl\",\r\n fillEnabled: !0,\r\n c: {\r\n k: [.05, 1, 0, 1]\r\n },\r\n o: {\r\n k: 100\r\n },\r\n nm: \"Fill 1\"\r\n }, {\r\n ty: \"tr\",\r\n p: {\r\n k: [0, 0],\r\n ix: 2\r\n },\r\n a: {\r\n k: [0, 0],\r\n ix: 1\r\n },\r\n s: {\r\n k: [100, 100],\r\n ix: 3\r\n },\r\n r: {\r\n k: 0,\r\n ix: 6\r\n },\r\n o: {\r\n k: 100,\r\n ix: 7\r\n },\r\n sk: {\r\n k: 0,\r\n ix: 4\r\n },\r\n sa: {\r\n k: 0,\r\n ix: 5\r\n },\r\n nm: \"Transform\"\r\n }],\r\n nm: \"Shape 1\"\r\n }],\r\n bounds: {\r\n l: -51,\r\n t: -25,\r\n b: 39,\r\n r: 36\r\n },\r\n ip: 0,\r\n op: 600.000024438501,\r\n st: 0\r\n }, {\r\n ddd: 0,\r\n ind: 1,\r\n ty: 4,\r\n nm: \"circle cheio\",\r\n tt: 1,\r\n ks: {\r\n o: {\r\n k: 100\r\n },\r\n r: {\r\n k: 0\r\n },\r\n p: {\r\n k: [9.01, 9.045, 0]\r\n },\r\n a: {\r\n k: [-12.49, -7.08, 0]\r\n },\r\n s: {\r\n k: [50, 50, 100]\r\n }\r\n },\r\n shapes: [{\r\n ty: \"gr\",\r\n it: [{\r\n d: 1,\r\n ty: \"el\",\r\n s: {\r\n k: [26.84, 26.84]\r\n },\r\n p: {\r\n k: [0, 0]\r\n },\r\n nm: \"Ellipse Path 1\",\r\n closed: !0\r\n }, {\r\n d: 1,\r\n ty: \"el\",\r\n s: {\r\n k: [26.84, 26.84]\r\n },\r\n p: {\r\n k: [0, 0]\r\n },\r\n nm: \"Ellipse Path 1\",\r\n closed: !0\r\n }, {\r\n ty: \"fl\",\r\n fillEnabled: !0,\r\n c: {\r\n k: [1, 1, 1, 1]\r\n },\r\n o: {\r\n k: 100\r\n },\r\n nm: \"Fill 1\"\r\n }, {\r\n ty: \"tr\",\r\n p: {\r\n k: [-12.49, -7.08],\r\n ix: 2\r\n },\r\n a: {\r\n k: [0, 0],\r\n ix: 1\r\n },\r\n s: {\r\n k: [100, 100],\r\n ix: 3\r\n },\r\n r: {\r\n k: 0,\r\n ix: 6\r\n },\r\n o: {\r\n k: 100,\r\n ix: 7\r\n },\r\n sk: {\r\n k: 0,\r\n ix: 4\r\n },\r\n sa: {\r\n k: 0,\r\n ix: 5\r\n },\r\n nm: \"Transform\"\r\n }],\r\n nm: \"Ellipse 1\"\r\n }],\r\n bounds: {\r\n l: -31,\r\n t: -26,\r\n b: 11,\r\n r: 6\r\n },\r\n ip: 1.00000004073083,\r\n op: 128.000005213547,\r\n st: 1.00000004073083\r\n }, {\r\n ddd: 0,\r\n ind: 2,\r\n ty: 4,\r\n nm: \"circle\",\r\n ks: {\r\n o: {\r\n k: 100\r\n },\r\n r: {\r\n k: 0\r\n },\r\n p: {\r\n k: [9.01, 9.045, 0]\r\n },\r\n a: {\r\n k: [-12.49, -7.08, 0]\r\n },\r\n s: {\r\n k: [50, 50, 100]\r\n }\r\n },\r\n shapes: [{\r\n ty: \"gr\",\r\n it: [{\r\n d: 1,\r\n ty: \"el\",\r\n s: {\r\n k: [26.84, 26.84]\r\n },\r\n p: {\r\n k: [0, 0]\r\n },\r\n nm: \"Ellipse Path 1\",\r\n closed: !0\r\n }, {\r\n d: 1,\r\n ty: \"el\",\r\n s: {\r\n k: [26.84, 26.84]\r\n },\r\n p: {\r\n k: [0, 0]\r\n },\r\n nm: \"Ellipse Path 1\",\r\n closed: !0\r\n }, {\r\n ty: \"st\",\r\n fillEnabled: !0,\r\n c: {\r\n k: [1, 1, 1, 1]\r\n },\r\n o: {\r\n k: 100\r\n },\r\n w: {\r\n k: 2\r\n },\r\n lc: 1,\r\n lj: 1,\r\n ml: 4,\r\n nm: \"Stroke 1\"\r\n }, {\r\n ty: \"tr\",\r\n p: {\r\n k: [-12.49, -7.08],\r\n ix: 2\r\n },\r\n a: {\r\n k: [0, 0],\r\n ix: 1\r\n },\r\n s: {\r\n k: [100, 100],\r\n ix: 3\r\n },\r\n r: {\r\n k: 0,\r\n ix: 6\r\n },\r\n o: {\r\n k: 100,\r\n ix: 7\r\n },\r\n sk: {\r\n k: 0,\r\n ix: 4\r\n },\r\n sa: {\r\n k: 0,\r\n ix: 5\r\n },\r\n nm: \"Transform\"\r\n }],\r\n nm: \"Ellipse 1\"\r\n }],\r\n bounds: {\r\n l: -33,\r\n t: -28,\r\n b: 13,\r\n r: 8\r\n },\r\n ip: 0,\r\n op: 127.000005172816,\r\n st: 0\r\n }],\r\n ip: 0,\r\n op: 17.0000006924242,\r\n fr: 29.9700012207031,\r\n w: 18,\r\n h: 18\r\n };\r\n loaderHighPic = bodymovin.loadAnimation({\r\n container: element,\r\n renderer: \"svg\",\r\n loop: !1,\r\n autoplay: !1,\r\n animationData: animationData\r\n })\r\n } /*functions*/\r\n function initHeaderAnim(type) {\r\n \"init\" == type && (TweenMax.set($pageHeader.find(\"h2\"), {\r\n opacity: 0,\r\n y: \"50px\"\r\n }), TweenMax.set($pageHeader.find(\".circle-btn\"), {\r\n scale: 0,\r\n opacity: 1\r\n })), \"start\" == type && (TweenMax.to($pageHeader.find(\"h2\"), 1, {\r\n opacity: 1,\r\n y: \"0px\",\r\n ease: Circ.easeOut\r\n }, .1), TweenMax.to($pageHeader.find(\".circle-btn\"), 1, {\r\n scale: 1,\r\n delay: .5,\r\n ease: Elastic.easeOut.config(1, 1),\r\n onComplete: function() {\r\n TweenMax.set($pageHeader.find(\".circle-btn\"), {\r\n clearProps: \"scale\"\r\n })\r\n }\r\n }), $.doTimeout(700, function() {\r\n $pageHeader.find(\".circle-btn .arrow-down path\").addClass(\"active\")\r\n }))\r\n }\r\n\r\n function scrollTweens() {\r\n 0 == window.pageYOffset ? ($jsMaskDownWrapper.each(function() {\r\n var $this = $(this),\r\n $mask = $(\"<span class='mask-bg'></span>\");\r\n $mask.css({\r\n display: \"block\",\r\n position: \"absolute\",\r\n width: \"100%\",\r\n height: \"100%\",\r\n top: 0,\r\n left: 0,\r\n \"background-color\": \"#ffffff\"\r\n }), $this.find(\".js-mask-down\").append($mask)\r\n }), $jsMaskLeftWrapper.each(function() {\r\n var $this = $(this),\r\n $mask = $(\"<span class='mask-bg'></span>\");\r\n $mask.css({\r\n display: \"block\",\r\n position: \"absolute\",\r\n width: \"100%\",\r\n height: \"100%\",\r\n top: 0,\r\n left: 0,\r\n \"background-color\": \"#ffbb02\"\r\n }), $this.find(\".js-mask-left\").append($mask)\r\n }), $jsAnimUpGroup.each(function() {\r\n var $this = $(this);\r\n TweenMax.set($this.children(), {\r\n y: \"50px\",\r\n opacity: 0\r\n })\r\n }), $jsAnimUp.each(function() {\r\n var $this = $(this);\r\n TweenMax.set($this, {\r\n y: \"50px\",\r\n opacity: 0\r\n })\r\n }), $jsAnimReveal.each(function() {\r\n var $this = $(this);\r\n if (\"left\" == $this.attr(\"data-from\")) var offset_x = \"100px\",\r\n offset_y = \"0px\";\r\n if (\"right\" == $this.attr(\"data-from\")) var offset_x = \"-100px\",\r\n offset_y = \"0px\";\r\n if (\"top\" == $this.attr(\"data-from\")) var offset_y = \"100px\",\r\n offset_x = \"0px\";\r\n if (\"down\" == $this.attr(\"data-from\")) var offset_y = \"-100px\",\r\n offset_x = \"0px\";\r\n TweenMax.set($this, {\r\n x: offset_x,\r\n y: offset_y,\r\n opacity: 0\r\n })\r\n })) : ($jsMaskLeftWrapper.addClass(\"js-animated\"), $jsMaskDownWrapper.addClass(\"js-animated\"))\r\n } /*Animation Loop*/\r\n function sobrePage_scroll() {\r\n _raf_loop_id = _rAF_loop(sobrePage_scroll_rAF)\r\n }\r\n\r\n function sobrePage_scroll_rAF() {\r\n var $pageScrollHeader = $(\".page-scroll-header\");\r\n // Avoid calculations if not needed\r\n lastPosition != window.pageYOffset && (window.pageYOffset > lastPosition ? direction = \"down\" : direction = \"up\", lastPosition = window.pageYOffset, $thumbnail.hasClass(\"js-hover\") && $thumbnail.trigger(\"mouseleave\"), lastPosition > 10 && \"down\" == direction && !$_body.hasClass(\"js-scrolled-down\") && ($_body.addClass(\"js-scrolled-down\"), $pageScrollHeader.addClass(\"active\")), lastPosition < 10 && ($_body.removeClass(\"js-scrolled-down\"), $pageScrollHeader.removeClass(\"active\")), verge.inY($sobreTitle, -300) && $sobreTitle.find(\".picto\").addClass(\"active\"), $jsAnimUpGroup.each(function() {\r\n var $this = $(this);\r\n $this.hasClass(\"js-animated\") || verge.inY($this, -100) && ($this.addClass(\"js-animated\"), TweenMax.staggerTo($this.children(), 1, {\r\n y: 0,\r\n opacity: 1,\r\n ease: Power2.easeOut\r\n }, .2))\r\n }), $jsAnimUp.each(function() {\r\n var $this = $(this);\r\n $this.hasClass(\"js-animated\") || verge.inY($this, -100) && ($this.addClass(\"js-animated\"), TweenMax.staggerTo($this, 1, {\r\n y: 0,\r\n opacity: 1,\r\n ease: Power2.easeOut\r\n }, .2))\r\n }), $jsAnimReveal.each(function() {\r\n var $this = $(this);\r\n $this.hasClass(\"js-animated\") || verge.inY($this, -100) && ($this.addClass(\"js-animated active\"), TweenMax.staggerTo($this, 1, {\r\n x: 0,\r\n y: 0,\r\n opacity: 1,\r\n ease: Expo.easeOut\r\n }, .2))\r\n }), $jsMaskDownWrapper.each(function() {\r\n var $this = $(this);\r\n $this.hasClass(\"js-animated\") || verge.inY($this, -100) && ($this.addClass(\"js-animated\"), TweenMax.staggerTo($this.find(\".mask-bg\"), 1, {\r\n y: \"100%\",\r\n ease: Circ.easeInOut\r\n }, .2))\r\n }), $jsMaskLeftWrapper.each(function() {\r\n var $this = $(this);\r\n $this.hasClass(\"js-animated\") || verge.inY($this, -700) && ($this.addClass(\"js-animated\"), TweenMax.staggerTo($this.find(\".mask-bg\"), .8, {\r\n x: \"101%\",\r\n ease: Circ.easeInOut\r\n }, .1))\r\n }))\r\n }\r\n if (!do_sobre) return $_window.off(\"scroll.sobrePage\"), $_body.removeClass(\"sobre-page\"), !1;\r\n $_window.on(\"scroll.sobrePage\", sobrePage_scroll), $_body.addClass(\"sobre-page\");\r\n var loaderHighPic, lastPosition = -1,\r\n $pageHeader = $(\".page-header\"),\r\n $fullImages = $(\".full-images\"),\r\n $thumbnail = $(\".thumbnail\"),\r\n $jsMaskDownWrapper = ($(\".slideshow-container\"), $(\".js-mask-down-wrapper\")),\r\n $jsMaskLeftWrapper = $(\".js-mask-left-wrapper\"),\r\n $hiddenProtocols = $(\".hidden-protocols\"),\r\n $showHideProtocols = $(\".show-more-protocols\");\r\n $sobreTitle = $(\".sobre-title\"), $jsAnimUpGroup = $(\".js-anim-up-group\"), $jsAnimUp = $(\".js-anim-up\"), $jsAnimReveal = $(\".js-anim-reveal\"), /*Initializations*/\r\n initHeaderAnim(\"init\"), initHeaderAnim(\"start\"), pressAnime(), scrollTweens(), /*events*/\r\n $_body.hasClass(\"mobile\") ? (window.innerWidth > 767 ? $(\".slideshow-container\").vTicker({\r\n speed: 500,\r\n pause: 1500,\r\n height: 60,\r\n mousePause: !1\r\n }) : $(\".slideshow-container\").vTicker({\r\n speed: 500,\r\n pause: 1500,\r\n height: 40,\r\n mousePause: !1\r\n }), $thumbnail.on(\"click\", function() {\r\n var $this = $(this),\r\n $bgHover = $this.find(\".bg-hover\"),\r\n $goAnime = $this.find(\".go-anime\"),\r\n $closeToolTip = $this.find(\".close-tooltip\");\r\n if (!$this.hasClass(\"active\")) {\r\n if ($.each($thumbnail, function() {\r\n $(this).hasClass(\"active\") && ($(this).toggleClass(\"active\"), TweenMax.to($(this).find(\".close-tooltip\"), .1, {\r\n autoAlpha: 0,\r\n y: 0\r\n }), TweenMax.to($(this).find(\".bg-hover\"), .1, {\r\n delay: .35,\r\n autoAlpha: 0\r\n }), TweenMax.staggerTo($(this).find(\".go-anime\"), .4, {\r\n opacity: 0,\r\n y: 0\r\n }, .2))\r\n }), $this.addClass(\"js-hover\"), !$this.hasClass(\"js-hover\")) return !1;\r\n $this.hasClass(\"active\") || ($this.toggleClass(\"active\"), TweenMax.set($closeToolTip, {\r\n y: 10\r\n }), TweenMax.to($closeToolTip, .1, {\r\n delay: .25,\r\n autoAlpha: 1,\r\n y: 0\r\n }), TweenMax.to($bgHover, .1, {\r\n autoAlpha: 1\r\n }), TweenMax.staggerTo($goAnime, .4, {\r\n opacity: 1,\r\n y: -10,\r\n delay: .15\r\n }, .2))\r\n }\r\n }), $(document).on(\"click\", \".thumbnail.active .close-tooltip\", function() {\r\n var $this = $(this),\r\n $thisThumb = $this.parent(\".thumbnail\"),\r\n $bgHover = $this.parent(\".thumbnail\").find(\".bg-hover\"),\r\n $goAnime = $this.parent(\".thumbnail\").find(\".go-anime\");\r\n $thisThumb.toggleClass(\"active\"), TweenMax.to($this, .1, {\r\n autoAlpha: 0,\r\n y: 10\r\n }), TweenMax.to($bgHover, .1, {\r\n delay: .35,\r\n autoAlpha: 0\r\n }), TweenMax.staggerTo($goAnime, .4, {\r\n opacity: 0,\r\n y: 0\r\n }, .2)\r\n })) : ($(\".slideshow-container\").vTicker({\r\n speed: 500,\r\n pause: 1500,\r\n height: 60,\r\n mousePause: !1\r\n }), $thumbnail.on(\"mouseenter\", function(e) {\r\n var $this = $(this),\r\n $bgHover = $this.find(\".bg-hover\"),\r\n $goAnime = $this.find(\".go-anime\"),\r\n imageTarget = $this.attr(\"data-image-target\"),\r\n $loader = $this.find(\".loader\"),\r\n offset = $(this).offset();\r\n e.pageX - offset.left, e.pageY - offset.top;\r\n // relativeX = relativeX-$bgHover.width()/2;\r\n // relativeY = relativeY-$bgHover.height()/2;\r\n // $bgHover.css({\r\n // \"left\": 0,\r\n // \"top\": 0,\r\n // 'width':'100%',\r\n // 'height':'100%'\r\n // \"transform\": \"scale(2)\",\r\n // \"-webkit-transform\": \"scale(2)\"\r\n // });\r\n //TweenMax.to($bgHover, .1, {autoAlpha:.9});\r\n return startAnimation($loader[0]), $this.find(\"img\").hide(), $this.addClass(\"js-hover\"), !!$this.hasClass(\"js-hover\") && (TweenMax.to($bgHover, .1, {\r\n opacity: .9,\r\n visibility: \"visible\"\r\n }), TweenMax.staggerTo($goAnime, .4, {\r\n opacity: 1,\r\n y: 0,\r\n delay: .15\r\n }, .2), void $.doTimeout(0, function() {\r\n return !!$this.hasClass(\"js-hover\") && ($loader.css(\"opacity\", 1), loaderHighPic.play(), void loaderHighPic.addEventListener(\"complete\", function() {\r\n $(\".titles-columns\").css(\"opacity\", 0), $thumbnail.css(\"opacity\", .15), $this.css(\"opacity\", 1), $loader.css(\"opacity\", 0), TweenMax.to($fullImages.find(\".image-wrapper[data-image='\" + imageTarget + \"']\"), .2, {\r\n autoAlpha: 1,\r\n ease: Power4.easeOut,\r\n onComplete: function() {\r\n $fullImages.find(\".image-wrapper[data-image='\" + imageTarget + \"']\").addClass(\"js-scale\")\r\n }\r\n })\r\n }))\r\n }))\r\n }).on(\"mouseleave\", function(e) {\r\n var $this = $(this),\r\n $bgHover = $this.find(\".bg-hover\"),\r\n $loader = $this.find(\".loader\"),\r\n $goAnime = $this.find(\".go-anime\");\r\n $this.find(\".close-tooltip\");\r\n $this.removeClass(\"js-hover\"), $this.find(\"img\").show(), $(\".titles-columns\").css(\"opacity\", 1), TweenMax.to($bgHover, .1, {\r\n autoAlpha: 0\r\n }), TweenMax.killTweensOf($goAnime), TweenMax.killTweensOf($fullImages.find(\".image-wrapper\")), $thumbnail.css(\"opacity\", \"\"), TweenMax.to($fullImages.find(\".image-wrapper\"), .2, {\r\n autoAlpha: 0,\r\n ease: Power4.easeOut\r\n }), $fullImages.find(\".image-wrapper\").removeClass(\"js-scale\"), $loader.css(\"opacity\", 0), loaderHighPic.destroy(),\r\n // $bgHover.css({\r\n // \"transform\": \"scale(0)\",\r\n // \"-webkit-transform\": \"scale(0)\"\r\n // });\r\n TweenMax.to($goAnime, .2, {\r\n opacity: 0,\r\n y: 10\r\n })\r\n })), $showHideProtocols.on(\"click\", function() {\r\n var $this = $(this);\r\n $hiddenProtocols.toggleClass(\"active\"), TweenMax.set($hiddenProtocols.find(\"p\"), {\r\n y: \"20px\"\r\n }), $hiddenProtocols.hasClass(\"active\") ? ($this.text(\"Esconder\"), TweenMax.to($hiddenProtocols, 1.2, {\r\n autoAlpha: 1,\r\n height: $hiddenProtocols.find(\"p\").height() * $hiddenProtocols.find(\"p\").length,\r\n ease: Expo.easeOut\r\n }), TweenMax.staggerTo($hiddenProtocols.find(\"p\"), .5, {\r\n y: \"0px\",\r\n autoAlpha: 1,\r\n ease: Power4.easeOut\r\n }, .05)) : ($this.text(\"Mostrar Mais\"), TweenMax.set($hiddenProtocols.find(\"p\"), {\r\n y: \"20px\",\r\n autoAlpha: 0\r\n }), TweenMax.to($hiddenProtocols, .3, {\r\n autoAlpha: 0,\r\n height: \"0\"\r\n }))\r\n })\r\n}", "function trigger_animation() {\n\t\t\tvar $this = $('#slide-num' + brick.to + ' a');\n\t\t\t\n\t\t\t$num.removeClass('slide-on');\n\t\t\t$this.addClass('slide-on');\n\t\t\t\n\t\t\tgotohere = -((brick.to - 1) * 1024);\n\t\t\t\n\t\t\t$scrollable.stop().animate({\n\t\t\t\tleft: gotohere},\n\t\t\t\t1000,\n\t\t\t\tfunction(){\n\t\t\t\t\tif (!$('#swf-' + brick.from).hasClass('image-loaded')) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//var image = $('<img>').attr('src', brick.images[function_objs.lang][brick.from]);\n\t\t\t\t\t\tvar useimage = '<img src=\"' + brick.images[function_objs.lang][brick.from] + '\" alt=\"\" />'\n\t\t\t\t\t\t//console.log(useimage);\n\t\t\t\t\t\t$('#swf-' + brick.from)\n\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t.addClass('image-loaded')\n\t\t\t\t\t\t\t.attr('id','swf-' + brick.from)\n\t\t\t\t\t\t\t.innerHTML = useimage;\n\t\t\t\t\t\t\t//.html(useimage);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!$('#swf-' + brick.to).hasClass('image-loaded')) {\n\t\t\t\t\t\t//call function to start flash animation\n\t\t\t\t\t\tvar swf = document.getElementById(\"swf-\" + brick.to);\n\t\t\t\t\t\tswf.replay();\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbrick.from = brick.to;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t);\n\t\t}", "function loader(){\n tl\n .to(pre_loader_logo, 3, {rotation:360, ease:Power0.easeNone})\n .to([title, pre_loader_logo], 1, {opacity:0 , ease:Power1.easeInOut})\n .add('red')\n .add('blue')\n\n .to(blue, 1.2, {x: 500, ease:Power1.easeInOut, opacity:0}, 'blue')\n .to(red, 1.2, {x: -500, ease:Power1.easeInOut, opacity:0}, 'red')\n\n tl.pause();\n $('.title, #preLoaderLogo').click(function(){\n tl.play()\n setTimeout(function(){\n redirect()\n }, 5500)\n })\n }", "fadeUp(){\n this.animating = true;\n const item = this.getItem({foreground:this.index})\n \n this.tween = fromTo(\n this.setArtToNextAndCloak(item),\n DISSOLVE_DURATION / 1000,\n {opacity:0},\n {opacity:1, ease:Power4.easeOut, onComplete:this.onFadeUpComplete}\n )\n \n }", "animation() {}", "function animaTodasBolas() {\n for (let i = 0; i < bolas.length; i++) {\n this.bolas[i].mueve();\n }\n choque(bolas);\n}", "function paolettibibite_load(){\n jQuery(\"#loader\").slideUp(1000,'easeInOutExpo');\n /*.queue(function () {\n //Slide Birra\n jQuery(\"#birra\").delay(2600).slideDown(800,'easeInOutExpo');\n });*/\n}", "function agregarAlcarrito() {\n counter++;\n $(\".counter\").html(counter).animate({\n 'opacity' : '0'\n },300, function() {\n $(\".counter\").delay(300).animate({\n 'opacity' : '1'\n })\n })\n }", "function Animation (){\n var animation = anime.timeline();\n \n animation.add({\n targets:'.animation',\n height:['100%',0],\n easing:'easeInOutCirc',\n delay:1200\n });\n \n \n }", "function animar_dulce(sentido_X,sentido_Y){\r\n var top1 = sentido_Y*96;\r\n var left1 = (sentido_X*100).toString()+'%';\r\n $('.col-'+info_movido.columna+' .fila'+info_movido.fila+' img').animate({\r\n top: top1,\r\n left: left1\r\n },250,function(){\r\n moverse()\r\n })\r\n }", "function start(){\r\n\t\t\r\n $('#bigWrap').animate({opacity:\"1\"},3000);\r\n $('#devstyle').animate({opacity:\"0\"},3000);\r\n }", "function anim() {\r\n Loop();\r\n requestAnimFrame(anim);\r\n }", "function rotarImagenes()\n {\n // cambiamos la imagen y la url\n contador++;\n \n \n const imagen = document.getElementById('imagen');\n imagen.style.opacity = \"0\";\nsetTimeout(() => {\n \n document.getElementById(\"imagen\").src=imagenes[contador%imagenes.length][0];\n document.getElementById(\"link\").href=imagenes[contador%imagenes.length][1];\n\n imagen.style.opacity = \"1\";\n}, 1000);\n }", "function homeAnim() { //homepage animation on load \n qsCl(\"home__logo-fill\").left = '-177px';\n qsCl(\"home__logo-dolya\").color = 'black';\n qsCl(\"home__logo-consulting\").color = 'black';\n qsCl(\"home__logo-frame\").opacity = '1';\n qsCl(\"home__tagline-line\").width = '60px';\n qsCl(\"home__mission-statement\").color = '#303030';\n qsCl(\"home__tagline\").color = '#303030';\n qsCl(\"home__golden-thread\").color = 'var(--gold)';\n qsCl(\"path-logo\").animation = 'dash 3s ease-in forwards 1s'\n qsCl(\"path-home\").animation = 'dash 5s ease-in-out forwards 4s';\n drawn.home = true;\n}", "function WR_Item_Animation() {\n\t \tif ( typeof ScrollReveal != 'undefined' ) {\n\t \t\twindow.sr = ScrollReveal().reveal( '.wr-item-animation', {\n\t \t\t\tduration: 700\n\t \t\t} );\n\t \t}\n\t }", "function modalAnimation() {}", "function actividade()\n{\n\n estado = 4;\n\n // animacao pacman e monstros\n\n if (flag_vida != 0)\n {\n for(i = 0; i < 5; i++)\n {\n descarta_objecto(i);\n }\n move_pacman();\n move_monstros();\n for(i = 0; i < 5; i++)\n {\n chama_objecto(i);\n }\n animacao_pisca();\n accao();\n\n condicao_vit_derr = setTimeout(\"actividade(); \", velocidade);\n }\n else\n {\n if (jogador_total_comida[jog_activo] > 0)\n {\n clearTimeout(condicao_vit_derr);\n setTimeout(\"morre(); \", 500);\n }\n else\n {\n vidas_jogador[jog_activo]++;\n clearTimeout(condicao_vit_derr);\n setTimeout(\"vitoria(); \", 500);\n }\n }\n}", "function Animation (){\n var animation = anime.timeline();\n \n animation.add({\n targets:'.animation',\n height:['100%',0],\n easing:'easeInOutCirc',\n delay:1000,\n duration:1000\n }).add({\n targets:'.animation h1',\n scale:[1.4, 1],\n duration:1000,\n easing :'easeOutExpo'\n },80);\n\n \n }", "function nascer()\n{\n\n estado = 3;\n flag_vida = 1;\n vidas_jogador[jog_activo]--;\n\tsom_inicio.play();\n if(jog_activo == 0)\n move_obj($('jogador_1'),290,320);\n else\n move_obj($('jogador_2'),290,320);\n\n // coloca objectos iniciais\n inicializa_objectos();\n objectos_comida();\n for(i = 0; i < 5; i++)\n {\n chama_objecto(i);\n }\n\n move_obj($('preparado'),320,450);\n setTimeout(\"move_obj($('jogador_1'),-1000,0); move_obj($('jogador_2'),-1000,0); move_obj($('preparado'),-1000,0); actividade(); \", 2143);\n}", "function animacaoJanela2() {\r\n $('#janela2').fadeOut(100);\r\n $('#janela2').fadeIn(100);\r\n}", "static thumbAnimation(obj, params, name, duration) {\n const navigationAnimation = new R.AnimationClip(name, params);\n navigationAnimation.duration(duration);\n obj.animation.add(navigationAnimation);\n obj.animation.start(name);\n }", "function next(){\n let sliderSectionFirst = document.getElementsByClassName(\"sliderSection\")[0];\n slider.style.marginLeft = \"-200%\";\n slider.style.transition = \"all .6s\";\n setTimeout(function(){\n slider.style.transition = \"none\"; //quito la transicion\n slider.insertAdjacentElement(\"beforeend\", sliderSectionFirst ); //Coloco la primera imagen antes q termine el slider, asi crea el efecto de scroll infinito\n slider.style.marginLeft = \"-100%\";\n }, 600); //SetTimeout es una funcion que recibe de parametros la funcion en si y el tiempo que queres q demore en hacerla. \n}", "function page_animations() {\n\n var headerTl = new TimelineMax();\n\n headerTl.to('header', 0.25 ,{ opacity: 1})\n .to('header .logo h2', 0.25 ,{ opacity: 1})\n .staggerTo($('.color-box'), 0.3 ,{ opacity: 1}, 0.15, \"header\")\n .staggerTo($('#raw, #build'), 0.3 ,{ opacity: 0.3}, 0.15)\n .staggerTo($('.preview-window, .status'), 0.5 ,{ opacity: 1}, 0.15, \"header\")\n .to($('.tutorial, .about, footer'), 0.25 ,{ opacity: 1}, \"header\");\n\n\n\n // Animates footer heart.\n TweenMax.to('#heart', 1, {scale: 1.2, repeat: -1});\n\n // Animates Tutorial navigation.\n // Mouse in and out need to be monitored.\n $('.tutorial nav img').hover(over, out);\n function over(){\n TweenMax.to(this, 0.25, {y:5});\n //TweenMax.to('.tutorial_slides img', 1, {rotationY:360, immediateRender: false});\n }\n function out(){\n TweenMax.to(this, 0.25, {y:0});\n //TweenMax.to('.tutorial_slides img', 0, {rotationY:0});\n }\n\n}", "function animateOmnish(){\r\n const omnishHeading = document.querySelector(\".front-page h1\");\r\n omnishHeading.style.animation = \"omnishAnimation 2s ease-in forwards\";\r\n}", "function trailerAnimate() {\n\t\t$('.trailer-logo').removeClass('start').delay(800).queue(function(next){\n\t\t $(this).addClass('end');\n\t\t next();\n\t\t});\n\t}", "function anim(){\n\tarray.forEach(function(a){\n\t\ta.style.animation = ''\n\t})\t\n\t// Wykonaj funckja czysczesnia divow po 3995 sekundy\n\tsetTimeout(anim, 3995)\n}", "function moverDerecha() {\n\n //con is hago una comprobacion, me devuelve un booleano\n if (!slider.is(':animated')) {\n slider.animate({\n marginLeft : '-105.6%'\n }, 700, function () {\n $('#slider .slide:first').insertAfter('#slider .slide:last');\n slider.css('margin-left', '-43%');\n resetInterval();\n });\n }\n \n\n\n}", "function aniLinkOn()\n{\n $(this).animate({opacity:'1'}, {duration:LINK_FADE_TIME,queue:false});\n}", "function ondea(){\n /* REFIERE AL TÍTULO */ \n var titulo = document.querySelector(\"h1\"); \n /* CAPTURA EL CONTENIDO DEL TÍTULO */\n var texto = titulo.innerHTML; \n /* MIDE EL TAMAÑO DEL TÍTULO */\n var ancho = 700; \n var alto = 120; \n\n /*SIEMPRE AJUSTA EL ancho COMO MÚLTIPLO DE anchoFaja EN PIXELES*/\n ancho = ancho+(anchoFaja-ancho%anchoFaja); \n /* FIJA EL TAMAÑO DEL TÍTULO */\n titulo.style.width = ancho+\"px\"; \n titulo.style.height = alto+\"px\"; \n\n /* LA CANTIDAD DE BANDAS ES EL ANCHO DE TÍTULO SOBRE ANCHO DE CLIP */\n var totalFajas = ancho/1.4; \n\n /* VACÍA EL TÍTULO CONTENEDOR DE TEXTO */\n titulo.innerHTML = \"\"; \n\n /* CREA LAS BANDAS Y LES DA FORMATO */\n for(i=0; i<totalFajas; i++) {\n /* UN DIV PARA CADA FAJA */\n faja = document.createElement(\"div\"); \n // $(\"div\").addClass( \"fulljit\" );\n /* LE ASIGNA LA MISMA ALTURA DEL TÍTULO */\n faja.style.height = alto+\"px\"; \n faja.style.width = ancho+\"px;\"\n /* PONE EL MISMO TEXTO ORIGINAL */\n faja.innerHTML = texto; \n /* DEJA VISIBLE UN CLIP DE 2px DE ANCHO, CADA UNO 2px A LA IZQUIERDA DEL ANTERIOR PARA QUE PAREZCA UNA IMAGEN DE TÍTULO COMPLETA SIN CORTES */\n faja.style.clip = \"rect(0, \"+((i+1)*anchoFaja)+\"px, \"+alto+\"px, \"+(i*anchoFaja)+\"px)\"; \n /* RETRASA LA ANIMACIÓN CSS DE CADA FAJA SIGUIENDO UNA ONDA DE TIEMPO SENOIDE */\n faja.style.animationDelay = (Math.cos(i)+i*anchoOnda)+\"ms\"; \n /* AGREGA LA CAPA AL CONTENEDOR */\n titulo.appendChild(faja);\n }\n}", "function animationLost() {\n\t\tconsole.log(\"he perdido\");\t\n\tposX2=hasta;\t\nhasta=hasta-60;\nposX=posX-60;\n\t\t// Start the animation.\n\t\trequestID2 = requestAnimationFrame(animate2);\n\t}", "function colorTittle(selector) {\n $(selector).animate({\n // Añadimos algo de opacidad.\n opacity:'1',\n }, {\n //step:, la cual nos permite ejecutar acciones mientras se realiza la animación, por ejemplo hacer modificaciones a las propiedades CSS que no tienen valores numéricos\n step: function () {\n $(this).css('color', 'white');\n },\n //queue true: Debe esperar a q se realice la anterior animacion para poder ejecutarse\n queue: true\n })\n .animate({\n opacity:'1'\n }, {\n step:function(){\n $(this).css('color', 'yellow');\n },\n queue:true\n },600)\n //Generamos un tiempo de espera de 1 segundo para activar la siguiente animacion\n .delay(1000)\n .animate({\n opacity:'1'\n }, {\n step: function(){\n $(this).css('color', 'white');\n },\n queue:true\n })\n .animate({\n opacity:'1'\n }, {\n step: function(){\n $(this).css('color', 'yellow');\n //al llamar la funcion hacemos repetido el cambio de colores de amarillo a blanco\n colorTittle('h1.main-titulo');\n },\n queue: true\n });\n}", "function moverIzquierda() {\n if (!slider.is(':animated')) {\n $('#slider .slide:last').insertBefore('#slider .slide:first');\n slider.css('margin-left', '-105.6%');\n slider.animate({\n marginLeft: '-43%'\n },700, function () {\n resetInterval()\n });\n \n }\n }", "function moverIzquierda(){\n $('.slider .equipamento-slider:last').insertBefore('.slider .equipamento-slider:first');\n slider.css('margin-left', '-200%');\n slider.animate({\n marginLeft: '-100%'\n }, 700)\n }", "function startAnim() {\n console.log('startAnim');\n\n //TweenMax.from(closeButton, fadeTime/2, {delay:0, autoAlpha:0, ease:animTypeIn});\n\n TweenMax.from(bg1, fadeTime, {\n delay: 0,\n autoAlpha: 0,\n ease: animTypeIn\n });\n TweenMax.to(bg1, imagePanTime, {\n delay: 0,\n y: -50,\n ease: imagePanAnimType\n });\n\n TweenMax.from([bookmarkBase, map, location1, bookmarkDivider, pnzSmall], animTimeIn, {\n delay: 1,\n autoAlpha: 0,\n y: -animOffsetDist,\n ease: animTypeIn\n });\n TweenMax.from(headline1, animTimeIn, {\n delay: 1,\n autoAlpha: 0,\n y: animOffsetDist,\n ease: animTypeIn\n });\n TweenMax.from(mapMarker1, mapMarkerAnimTime, {\n delay: 2,\n autoAlpha: 0,\n scale: 0,\n ease: mapMarkerAnimType\n });\n\n TweenMax.from(expandButton, animTimeIn, {\n delay: 2,\n autoAlpha: 0,\n y: animOffsetDist,\n ease: animTypeIn\n });\n\n TweenMax.delayedCall(6, frame2);\n}", "function animate() {\r\n console.log(\"Animate called\");\r\n //Bild übermalen\r\n Objektorientiert.crc2.putImageData(image, 0, 0);\r\n //zufällige Flugrichtung\r\n for (let i = 0; i < bees.length; i++) {\r\n let b = bees[i];\r\n b.move();\r\n b.drawBee();\r\n }\r\n window.setTimeout(animate, 20);\r\n }", "function animate() {\n window.setTimeout(animate, 25);\n L10_Canvas.crc2.putImageData(imagedata, 0, 0);\n moveFishes();\n drawFishes();\n moveBubbles();\n drawBubbles();\n }", "function animateLogoComponent(btnName, bgCol, colSequence){\r\n\r\n $(btnName).css(\"background-color\", bgCol);\r\n slideAni(btnName);\r\n setTimeout(function(){\r\n colourAni(btnName, colSequence);\r\n }, 2000);\r\n\r\n\r\n}", "function anim4() {\n $('#quatre').animate( { left : '400px' },3000)\n .animate({ left : '0px'},3000, anim4); // 0px sénifie 0 par rapport à la position d'origine = revient du navigateur ( revient à la position origine). On aurait pu mettre -=400px à la place. In peut mettre une fonction callback dans l'animate(), elle s'exécute une fois l'animation complètement terminée. Ainsi, ici on appelle la fonction elle - même à chaque fin d'animation.\n}", "function animate() {\r\n if (!doAnim) {\r\n river.context=null; \r\n return;\r\n }\r\n\trequestAnimFrame( animate );\r\n river.background.draw();\r\n}", "function perder(){\n turnoJugador=false;\n sonido=false;\n //TODO: animacion al perder\n iluminar(0);\n iluminar(1);\n iluminar(2);\n iluminar(3);\n iluminar(2);\n iluminar(1);\n iluminar(0);\n sonido=true;\n reiniciar();\n}", "mov(){\n if (!this.pausa) {\n switch (this.game.nivel) {\n case 1:\n if (this.cambiaAnim) {\n this.animacion.play(this.animIzq);\n this.cambiaAnim = false;\n }\n this.setPosition(this.t * 25, this.n + 150 * Math.sin(this.t/7));\n this.animacion.setPosition(this.t * 25, this.n + 150 * Math.sin(this.t/7));\n this.t -= 0.1;\n if (this.t <= 10) { this.pausa = true; this.animacion.anims.stop(); }\n break;\n case 2:\n //DISPONEMOS DE 2 CAMINOS EN ESTE NIVEL (DIR)\n //CADA CAMINO ESTÁ FORMADO POR 2 FUNCIONES CADA UNO\n if (this.funcion == 0) {\n if (this.cambiaAnim) {\n if (this.dir == 0) { \n this.animacion.play(this.animDer);\n this.t = 7;\n }\n if (this.dir == 1) {\n this.animacion.play(this.animIzq);\n this.t = -7;\n }\n this.cambiaAnim = false;\n }\n let y0 = Math.sqrt(1 - (Math.pow(Math.abs(this.t/7) - 1, 2)));\n if (!isNaN(y0)) {\n this.setPosition(this.m + this.t * 25, this.r - 200 * y0);\n this.animacion.setPosition(this.m + this.t * 25, this.r - 200 * y0);\n }\n else {\n if (this.dir == 0) this.t = 14;\n if (this.dir == 1) this.t = -14;\n this.funcion = 1;\n this.cambiaAnim = true;\n }\n if (this.dir == 0) this.t += 0.1;\n if (this.dir == 1) this.t -= 0.1;\n }\n if (this.funcion == 1) {\n if (this.cambiaAnim) {\n if (this.dir == 0) this.animacion.play(this.animIzq);\n if (this.dir == 1) this.animacion.play(this.animDer);\n this.cambiaAnim = false;\n }\n let y1 = -2.5 * Math.sqrt(1 - Math.sqrt(Math.abs(this.t/7) / 2));\n if (!isNaN(y1)) {\n this.setPosition(this.m + this.t * 25, this.r - 200 * y1);\n this.animacion.setPosition(this.m + this.t * 25, this.r - 200 * y1);\n }\n if (this.dir == 0) this.t -= 0.1;\n if (this.dir == 1) this.t += 0.1;\n }\n if (this.y >= 700) { this.pausa = true; this.animacion.anims.stop(); }\n break;\n }\n }\n }", "CrossFadeQueued() {}", "function doAnimation() {\n slideContainer.children[0].classList.add('moveSlide')\n slideContainer.children[1].classList.add('moveSlide')\n addAnimationEventToChild()\n}", "function animationStep() {\n var _stableMarriageProces = stableMarriageProcessQueue.shift(),\n process = _stableMarriageProces.process,\n content = _stableMarriageProces.content;\n\n var male = content.male,\n female = content.female,\n dumped = content.dumped;\n var groundMaleDOM;\n var groundFemaleDOM; // If the process is not called done,\n\n if (process !== 'done') {\n groundMaleDOM = male.element.cloneNode(true);\n groundFemaleDOM = female.element.cloneNode(true);\n groundMaleDOM.style.opacity = '0';\n groundFemaleDOM.style.opacity = '0'; // then the ground elements are prepared,\n\n groundMaleDOM.classList.add('prepare');\n groundFemaleDOM.classList.add('prepare');\n groundMaleDOM.classList.add('disabled');\n groundFemaleDOM.classList.add('disabled'); // and if the process is also not prepared,\n\n if (process !== 'prepare') {\n // then the ground male element can be added \n // to the ground container.\n groundDOM.appendChild(groundMaleDOM);\n openAndSelectGroundDOM(groundMaleDOM, male._preferences.indexOf(female.name));\n }\n }\n\n if (process == 'prepare') {\n // The first step is prepare which is to highlight the\n // male element.\n highlightEntityDOM(male.element);\n } else if (process == 'engage') {\n // This is the animation\n // for engage.\n highlightEntityDOM(female.element);\n groundDOM.appendChild(groundFemaleDOM);\n openAndSelectGroundDOM(groundFemaleDOM);\n closeGroundDOM(groundMaleDOM);\n closeGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n groundMaleDOM.classList.remove('reject');\n groundFemaleDOM.classList.remove('prepare');\n groundMaleDOM.classList.add('engage');\n groundFemaleDOM.classList.add('engage');\n }, 500);\n animationQueue.add(function () {\n male.element.classList.remove('reject');\n male.element.classList.add('engage');\n female.element.classList.add('engage');\n notifier.queueMessage('warning', \"\".concat(male.name, \" is engaged with \").concat(female.name, \".\"), 1000);\n }, 500);\n } else if (process == 'break') {\n // This is the animation for break.\n // Break means the female dumps a male\n // and gets a new partner.\n groundFemaleDOM.classList.add('engage');\n\n var oldPartnerIndex = female._preferences.indexOf(dumped.name);\n\n groundFemaleDOM.querySelector('.preference').children[oldPartnerIndex].classList.add('partner-highlight');\n groundDOM.appendChild(groundFemaleDOM);\n openAndSelectGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n var preferenceDOM = groundFemaleDOM.querySelector('.preference');\n\n var maleIndex = female._preferences.indexOf(male.name);\n\n var oldPartnerIndex = female._preferences.indexOf(dumped.name);\n\n preferenceDOM.children[maleIndex].classList.add('select-highlight');\n notifier.queueMessage('warning', \"\".concat(female.name, \" breaks up with current partner \").concat(dumped.name, \" and engages with \").concat(male.name, \".\"), 2000);\n }, 500);\n closeGroundDOM(groundMaleDOM);\n closeGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n groundMaleDOM.classList.remove('reject');\n groundMaleDOM.classList.add('engage');\n male.element.classList.remove('reject');\n male.element.classList.add('engage');\n dumped.element.classList.remove('engage');\n dumped.element.classList.add('reject');\n }, 500);\n } else if (process == 'reject') {\n // This is the animation for reject. \n // Reject means the female stays with\n // their current partner, opposite of \n // break.\n groundFemaleDOM.classList.add('engage');\n var preferenceDOM = groundFemaleDOM.querySelector('.preference');\n\n var partnerIndex = female._preferences.indexOf(female.partner.name);\n\n preferenceDOM.children[partnerIndex].classList.add('partner-highlight');\n groundDOM.appendChild(groundFemaleDOM);\n openAndSelectGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n var maleIndex = female._preferences.indexOf(male.name);\n\n preferenceDOM.children[maleIndex].classList.add('select-highlight');\n }, 250);\n closeGroundDOM(groundMaleDOM);\n closeGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n groundMaleDOM.classList.remove('prepare');\n groundFemaleDOM.classList.remove('engage');\n groundMaleDOM.classList.add('reject');\n groundFemaleDOM.classList.add('reject');\n notifier.queueMessage('warning', \"\".concat(female.name, \" stays with current partner \").concat(female.partner.name, \" and rejects \").concat(male.name, \".\"), 2000);\n }, 250);\n animationQueue.add(function () {\n male.element.classList.add('reject');\n female.element.classList.add('reject');\n }, 250);\n animationQueue.add(function () {\n female.element.classList.remove('reject');\n female.element.classList.add('engage');\n }, 250);\n } else if (process == 'done') {\n // Animation for when the process is done.\n // Basically removes the elements.\n var _iterator14 = _createForOfIteratorHelper(groundDOM.children),\n _step14;\n\n try {\n for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {\n var child = _step14.value;\n child.style.opacity = '0';\n }\n } catch (err) {\n _iterator14.e(err);\n } finally {\n _iterator14.f();\n }\n\n animationQueue.add(function () {\n groundDOM.innerHTML = '';\n }, 250);\n } // This first conditional is called when\n // the visualization is finished.\n\n\n if (stableMarriageProcessQueue.length == 0) {\n skipVisualizationDOM.classList.add('disabled');\n makeResultInteractable();\n notifier.queueMessage('valid', 'Tap an entity to show its partner.');\n } else {\n // This conditional is called whenever there is still\n // anything to visualize.\n animationQueue.add(function () {\n animationStep();\n }, 250);\n }\n}", "function test_animate() {\n //Do the preview (IS THIS NEEDED?)\n if (AUTO_ANIM) {\n for (var i = 0; i < NODES.length; i++) {\n if (NODES[i].parent) {\n var r = Math.min(Math.max(parseFloat(atob(NODES[i].id)), 0.3), 0.7);\n NODES[i].th = NODES[i].th0 + Math.sin((new Date()).getTime() * 0.003 / r + r * Math.PI * 2) * r * 0.5;\n } else {\n NODES[i].th = NODES[i].th0\n }\n }\n }\n doodleMeta.forwardKinematicsNodes(NODES);\n doodleMeta.calculateSkin(SKIN);\n\n //Do the transfered drawings\n if (AUTO_ANIM) {\n for (let i = 0; i < drawings.length; i++) {\n drawings[i].animate();\n }\n }\n //anim_render();\n master_render();\n}", "function epiAnimate(epi, name, color, centerX, centerY, exonJSON) {\n let c = epi.getBBox()\n epi.mouseover(function () {\n epi.animate({\n transform: 's1.5,' + c.cx + ',' + c.cy\n }, 200)\n text = textCenter(centerX, centerY, name, 15, color)\n })\n .mouseout(function () {\n epi.animate({\n transform: 's1,' + c.cx + ',' + c.cy\n }, 200)\n text.remove()\n })\n .click(function () {\n openNewTab(exonJSON[i]['mod'][t].link)\n })\n}", "function mouseUp() {\n if ( !finita_animazione ) {\n isMouseDown = false;\n // Se abbiamo scrollato abbastanza a sinistra\n if (perc_movimento === -100) {\n // Non permettere più l'animazione\n finita_animazione = true;\n // Avvio animazione per i vari file php\n html_to_php();\n sinistra_destra()\n } else {\n // Se non ha completato, riportal all'inizio\n titolo_iniziale.style.left = \"0px\";\n }\n }\n}", "function __loadAnima() {\n var elem = document.getElementById(\"barra_progresso\");\n if (elem != null) {\n if (_loadPos == 0) _loadLen += _loadDir;\n if (_loadLen > 32 || _loadPos > 79) _loadPos += _loadDir;\n if (_loadPos > 79) _loadLen -= _loadDir;\n if (_loadPos > 79 && _loadLen == 0) _loadPos = 0;\n elem.style.left = _loadPos;\n elem.style.width = _loadLen;\n }\n}", "function step1($step, $pag){\n \n // animate the step in\n setTimeout(function(){\n $step.removeClass('animate-out is-showing')\n .next().addClass('animate-in');\n $('.modal-header span.num6').css(\"opacity\" ,\"0.2\") ; \n\n \n $pag.removeClass('is-active')\n .next().addClass('is-active');\n }, 50);\n \n // after the animation, adjust the classes\n setTimeout(function(){\n $step.next().removeClass('animate-in')\n .addClass('is-showing');\n\n \n }, 1200);\n}", "function limpiarGrilla(){\n $(document).ready(function(){\n $(\"#grilla-pixeles\").children().animate({\"backgroundColor\":\"white\"}, 1500);\n });\n}", "avancer() {\n\t\tlet fermee = this.cellule.ouverture(this.direction);\n\t\tif (fermee) { //il y a un mur\n\t\t\treturn this.finMouvement();\n\t\t} else if (this.verifierBlocage()===true) { //la porte est bloquee\n return this.finMouvement();\n }\n\t\tthis.visuel.style.transitionDuration = (this.animMouvement) + \"ms\";\n\t\tthis.cellule = this.cellule.voisine(this.direction);\n\n console.log(\"Déplacement: \"+[\"↑\",\"→\",\"↓\",\"←\"][this.direction]+\" / \"+this.cellule.infoDebogage());\n\n\t\tthis.visuel.addEventListener('transitionend', this.evt.visuel.transitionend);\n\t}", "function projectClickAnimation(proj) {\n $(\".project\").hide();\n $(proj).show();\n $(proj).css(\"left\", \"50%\");\n $(proj).css(\"top\", \"10%\");\n $(proj).css(\"transition-duration\", \".8s\");\n $(\".project\").css(\"animation\", \"none\");\n $(\"#sub-termProject\").css(\"animation\", \"none\");\n $(\"#rotate\").css(\"animation\", \"none\");\n $(\"#sub-rotate\").css(\"animation\", \"none\");\n setTimeout(marioAnimation, 700);\n // $(\"#mario\").css(\"top\",\"90%\");\n // $(\"#mario\").css(\"transition-duration\", \"2s\");\n}", "function animator() {\n var delay, speed;\n $('.animated').each(function() {\n var el = $(this);\n //console.log( elements[i] , i );\n if (el.visible(true)) {\n if (el.data('animtype') == 'animate-progress') {\n\n el.css('opacity', 1);\n el.addClass('animatedVisi');\n el.css('opacity', 1);\n el.css('width', el.attr('aria-valuenow'));\n //el.find('.progress .progress-bar').html(el.data('progress-to'));\n\n return;\n }\n\n delay = el.data('animdelay');\n if (!delay) {\n delay = 0;\n }\n\n el.css('-webkit-animation-delay', delay);\n el.css('-moz-animation-delay', delay);\n el.css('-o-animation-delay', delay);\n el.css('animation-delay', delay);\n\n speed = el.data('animspeed');\n\n if (!speed) {\n speed = 0.5;\n }\n\n el.css('-webkit-animation-duration', speed);\n el.css('-moz-animation-duration', speed);\n el.css('-o-animation-duration', speed);\n el.css('animation-duration', speed);\n\n if (el.data('animtype')) {\n el.addClass(el.data('animtype'));\n }\n\n el.addClass('animatedVisi');\n // que.push(this);\n }\n else if (el.data('animrepeat') == '1') {\n el.removeClass(el.data('animtype'));\n el.removeClass('animatedVisi');\n }\n });\n}", "onAnimationEnd() {\n\n }", "function animate(){\n svg.transition()\n .duration(30000)\n .ease(d3.easeLinear)\n .tween(\"year\", tweenYear);\n }", "function welcomeAnimation() {\n $('#welcome, #crocobox, #motivation, #get-started').addClass('fade-in');\n $('#get-started').addClass('fade-in').click(function() {\n slideToNextRow(this, 0);\n });\n}", "get importAnimation() {}", "function desplazarMenu1() {\r\n\t$solapa_animada = $('.menu_left_1');\r\n\t// margin-left: 30px; - (Las posición final de las solapas será 30px)\r\n\t$solapa_animada.animate({marginLeft: \"30px\", opacity: \"0.5\"}, {queue:false,duration:2000});\r\n\t$solapa_animada.animate({opacity: \"1.0\"}, {queue:false,duration:2000});\r\n}", "function index_desplazamiento_direccion(direccion) {\n\tclearTimeout(index_galeria_timer);\n\tvar padre = $(\".galeria\");\n\tvar hijos = padre.find(\".desplazamiento .bloque\").length;\n\tvar posActual = parseInt(padre.find(\".desplazamiento\").attr(\"data-pos\"));\n\tvar posSiguiente = posActual;\n\tdireccion = parseInt(direccion);\n\t\n\tif (direccion == 0)//izquierda\n\t\tposSiguiente = posActual == 0 ? (hijos - 1) : (posActual - 1);\n\telse//derecha\n\t\tposSiguiente = posActual == (hijos - 1) ? 0 : (posActual + 1);\n\t\n\tpadre.find(\".desplazamiento\").animate({\n\t\tleft: \"-\"+(posSiguiente * 100)+\"%\"\n\t}, 500);\n\t\n\tpadre.find(\".desplazamiento\").attr(\"data-pos\", posSiguiente);\n\t\n\tif (posSiguiente == (hijos - 1)) {\n\t\tpadre.find(\".desplazamiento\").promise().done(function(){\n\t\t\tpadre.find(\".desplazamiento\").css(\"left\", \"0%\");\n\t\t\tpadre.find(\".desplazamiento\").attr(\"data-pos\", \"0\");\n\t\t});\n\t}\n\t\n\tindex_galeria_timer = setTimeout(\"index_desplazamiento_direccion(1)\", index_galeria_desp);\n}", "function frame0() {\n bu.removeClass(ad_content, 'invisible');\n bu.removeClass(cta, 'alpha-0');\n TweenLite.set(cta_box, { transformOrigin: '50% 50%' });\n\n\n var tl = new TimelineMax({ onComplete: frameStop });\n tl\n .from(txt1_1, 0.25, { autoAlpha: 0 })\n .to(txt1_1, 0.25, { delay: 1.4, autoAlpha: 0 })\n .staggerFrom([txt2_1, txt2_2], 0.5, { autoAlpha: 0 }, 0.5)\n .to(txt2_2, 2, { delay: 0.1, x: 50, ease: Power1.easeIn},'-=0.55')\n .set(precio, {autoAlpha: 1})\n .from(tarjeta, 0.4, { rotation: 20, top: '-150', x: 50},'-=0.7')\n .to(tarjeta, 0.25, { x: 100},'-=0.1')\n .to(tarjeta, 0.2, { top: '-150', x:120, rotation: '-10'},'-=0.1')\n .to(txt2_2, 0.15, { x: 0 , ease: Back. easeOut.config( 1.7)}, '-=0.3')\n .to([txt2_1, txt2_2], 0.25, { delay: 0.25, autoAlpha: 0 })\n .to(telefono, 0.25, { scale: 1 , left: '-70', top: 15})\n .staggerFrom([txt3_1, txt3_2 , cta ], 0.7, { autoAlpha: 0 }, 0.5)\n .to([txt3_1, txt3_2], 0.25, { delay: 0.5, autoAlpha: 0 }) \n .staggerFrom([ txt4_1, txt4_2 ], 0.5, { autoAlpha: 0 }, 0.25);\n }", "function animacaoSlideUp(idReferencia) {\r\n for (let item of idReferencia) {\r\n $(item).slideUp(300)\r\n }\r\n}", "function puedo_moverme(){\r\n Puntaje(1,'#movimientos-text')\r\n var X_adonde = info_movido.columna - info_arrastrado.columna\r\n var Y_adonde = info_movido.fila - info_arrastrado.fila\r\n if (Math.abs(X_adonde)==1 && Y_adonde==0) {\r\n animar_dulce(-X_adonde,Y_adonde)\r\n }\r\n else if (Math.abs(Y_adonde)==1 && X_adonde==0) {\r\n animar_dulce(X_adonde,Y_adonde)\r\n } else {\r\n $('.col-'+info_arrastrado.columna+' .fila'+info_arrastrado.fila+' img').animate({\r\n top: 0,\r\n left: 0\r\n },200)\r\n }\r\n }", "function animateGrande()\n{\n\t$(\"#video\").animate({\n\t\t\"width\": \"1000px\",\n\t\t\"height\": \"720px\",\n\t\t\"opacity\":1\n\t}, 1000, function() {\n\t \tvideo.play();\n\t});\n\t$(\"#videoAbs\").css(\"z-index\",\"3\");\n\t$(\"img\").animate({\n\t\t\"width\": \"0px\",\n\t\t\"height\": \"0px\"\n\t}, 1000);\n\t$(\"#preguntas\").animate({\n\t\t\"width\": \"0px\",\n\t\t\"height\": \"0px\",\n\t\t\"opacity\":0\n\t}, 1000);\n\t$(\"#cont\").animate({\n\t\t\"opacity\":0\n\t},1000);\n}", "function advancedExamples(){\n\tLeanTween.delayedCall(gameObject, 14f, function(){\n\t\tfor(var i:int=0; i < 10; i++){\n\t\t\t// Instantiate Container\n\t\t\tvar rotator:GameObject = new GameObject(\"rotator\"+i);\n\t\t\trotator.transform.position = new Vector3(10.2f,2.85f,0f);\n\n\t\t\t// Instantiate Avatar\n\t\t\tvar dude:GameObject = GameObject.Instantiate(prefabAvatar, Vector3.zero, prefabAvatar.transform.rotation ) as GameObject;\n\t\t\tdude.transform.parent = rotator.transform;\n\t\t\tdude.transform.localPosition = new Vector3(0f,1.5f,2.5f*i);\n\n\t\t\t// Scale, pop-in\n\t\t\tdude.transform.localScale = new Vector3(0f,0f,0f);\n\t\t\tLeanTween.scale(dude, new Vector3(0.65f,0.65f,0.65f), 1f).setDelay(i*0.2f).setEase(LeanTweenType.easeOutBack);\n\n\t\t\t// Color like the rainbow\n\t\t\tvar period:float = LeanTween.tau/10*i;\n\t\t\tvar red:float = Mathf.Sin(period + LeanTween.tau*0f/3f) * 0.5f + 0.5f;\n \t\t\tvar green:float = Mathf.Sin(period + LeanTween.tau*1f/3f) * 0.5f + 0.5f;\n \t\t\tvar blue:float = Mathf.Sin(period + LeanTween.tau*2f/3f) * 0.5f + 0.5f;\n\t\t\tvar rainbowColor:Color = new Color(red, green, blue);\n\t\t\tLeanTween.color(dude, rainbowColor, 0.3f).setDelay(1.2f + i*0.4f);\n\t\t\t\n\t\t\t// Push into the wheel\n\t\t\tLeanTween.moveZ(dude, 0f, 0.3f).setDelay(1.2f + i*0.4f).setEase(LeanTweenType.easeSpring).setOnComplete(\n\t\t\t\tfunction( rot:GameObject ){\n\t\t\t\t\tLeanTween.rotateAround(rot, Vector3.forward, -1080f, 12f);\n\t\t\t\t}\n\t\t\t).setOnCompleteParam( rotator );\n\n\t\t\t// Jump Up and back down\n\t\t\tLeanTween.moveLocalY(dude,4f,1.2f).setDelay(5f + i*0.2f).setLoopPingPong().setRepeat(2).setEase(LeanTweenType.easeInOutQuad);\n\t\t\n\t\t\t// Alpha Out, and destroy\n\t\t\tLeanTween.alpha(dude, 0f, 0.6f).setDelay(9.2f + i*0.4f).setDestroyOnComplete(true).setOnComplete(\n\t\t\t\tfunction(rot:GameObject){\n\t\t\t\t\tDestroy( rot ); // destroying parent as well\n\t\t\t\t}\n\t\t\t).setOnCompleteParam( rotator );\t\n\t\t}\n\n\t}).setOnCompleteOnStart(true).setRepeat(-1); // Have the OnComplete play in the beginning and have the whole group repeat endlessly\n}", "toggleGalleryDeco() {\n return gsap.timeline({\n defaults: {\n duration: !this.isMenuPage ? 1 : 0.3, \n ease: 'power4'\n },\n onStart: () => !this.isMenuPage ? gsap.set(this.DOM.galleryDeco, {x: '15%', y: '100%'}) : null\n })\n .to(this.DOM.galleryDeco, {\n opacity: !this.isMenuPage ? 1 : 0,\n x: !this.isMenuPage ? '0%' : '5%',\n y: !this.isMenuPage ? '0%' : '100%'\n }, !this.isMenuPage ? 0.5 : 0);\n }", "moveTo(dest, dur=1000, smoothFunc=(e)=>e) {\n return new Promise((resolve, reject) => {\n Animate.tween(this, { pos:clonePos(dest) }, dur, smoothFunc).after(() => {\n resolve();\n });\n });\n }", "function clonedAnimationDone(){\n // scroll body\n anime({\n targets: \"html, body\",\n scrollTop: 0,\n easing: easingSwing, // swing\n duration: 150\n });\n\n // fadeOut oldContainer\n anime({\n targets: this.oldContainer,\n opacity : .5,\n easing: easingSwing, // swing\n duration: 300\n })\n\n // show new Container\n anime({\n targets: $newContainer.get(0),\n opacity: 1,\n easing: easingSwing, // swing\n duration: 300,\n complete: function(anim) {\n triggerBody()\n _this.done();\n }\n });\n\n $newContainer.addClass('one-team-anim')\n }", "function menjaj(smer = \"napred\")\n{\n if(smer == \"napred\")\n {\n id++;\n if(id == 3)\n id = 0;\n }\n else\n {\n id--;\n if(id == -1)\n id = 2;\n }\n\n /*ovde u slike[id] ti prosledjujes id slike koja zelis da se prikaze, a pomocu ovog #bannerSlika\n kazes na koji se to element u html-u odnosi */\n $(\"#bannerSlika\").animate({opacity: 0}, 500, function () { $(\"#bannerSlika\").attr(\"src\", slike[id]); } );\n $(\"#bannerSlika\").animate({opacity: 1}, 500);\n}", "function apparition (g,i){\n setTimeout(function(){\n g.life = true\n g.style.width = \"10px\"\n g.style.height = \"10px\"\n g.style.backgroundColor = \"rgb(216, 212, 205)\"\n g.style.borderRadius = \"50px\"\n g.style.border = \"2px solid black\"\n g.position = entierAleatoire(1,830)\n //METHODE CASES COLOR GHOST\n g.color = function(){\n if(cases[this.position].color == \"black\" && this.style.backgroundColor == \"blue\"){\n cases[this.position].style.backgroundColor = \"blue\"\n cases[this.position].color = \"blue\"\n pointsBlue++\n }\n else if(cases[this.position].color == \"black\" && this.style.backgroundColor == \"orange\"){\n cases[this.position].style.backgroundColor = \"orange\"\n cases[this.position].color = \"orange\"\n pointsOrange++\n }\n else if(cases[this.position].color == \"blue\" && this.style.backgroundColor == \"orange\"){\n cases[this.position].style.backgroundColor = \"orange\"\n cases[this.position].color = \"orange\"\n pointsOrange++\n pointsBlue--\n }\n else if(cases[this.position].color == \"orange\" && this.style.backgroundColor == \"blue\"){\n cases[this.position].style.backgroundColor = \"blue\"\n cases[this.position].color = \"blue\"\n pointsOrange--\n pointsBlue++\n }\n }\n let barre = document.getElementById(\"barre\")\n let blumLogo = document.getElementById(\"blumLogo\")\n let etLogo = document.getElementById(\"etLogo\")\n let rangoLogo = document.getElementById(\"rangoLogo\")\n\n function end(color, shadow, animeB, animeEt, animeR){\n bordure[0].style.backgroundColor = color\n bordure[0].style.boxShadow = shadow\n bordure[1].style.backgroundColor = color\n bordure[1].style.boxShadow = shadow\n cacheD.style.transition = \"transform 300ms\"\n cacheD.style.transform = \"scaleX(1)\"\n cacheG.style.transition = \"transform 300ms\"\n cacheG.style.transform = \"scaleX(1)\"\n barre.style.transform = \"scale(0)\"\n blue.remove()\n blue = false\n orange.remove()\n orange = false \n fin = true\n blumLogo.style.animation = animeB \n etLogo.style.animation = animeEt \n rangoLogo.style.animation = animeR\n }\n //METHODE GHOST TOUCHE JOUEUR\n function win1(couleur){\n let win = document.getElementById(\"win\")\n win.style.color = couleur\n setTimeout(function(){win.innerHTML = \"A\"}, 8300)\n setTimeout(function(){win.innerHTML = \"A G\"}, 8400)\n setTimeout(function(){win.innerHTML = \"A GA\"}, 8500)\n setTimeout(function(){win.innerHTML = \"A GAG\"}, 8600)\n setTimeout(function(){win.innerHTML = \"A GAGN\"}, 8700)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ\"}, 8800)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ HÉ \"}, 15000)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ HÉ HÉ\"}, 15200)\n }\n function win2(couleur){\n let win = document.getElementById(\"win\")\n win.style.color = couleur\n setTimeout(function(){win.innerHTML = \"A\"}, 8300)\n setTimeout(function(){win.innerHTML = \"A G\"}, 8400)\n setTimeout(function(){win.innerHTML = \"A GA\"}, 8500)\n setTimeout(function(){win.innerHTML = \"A GAG\"}, 8600)\n setTimeout(function(){win.innerHTML = \"A GAGN\"}, 8700)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ\"}, 8800)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ AV \"}, 9000)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ AVE\"}, 9200)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ AVEC\"}, 9300)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ AVEC C\"}, 9500)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ AVEC CL\"}, 9700)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ AVEC CLAS\"}, 10000)\n setTimeout(function(){win.innerHTML = \"A GAGNÉ AVEC CLASSE !\"}, 10200)\n }\n g.eat = function(){\n if(this.position == blue.position){\n end(\"orange\",\"0 0 10px orange\",\"blumLose both linear 7s\",\"etRango both linear 7s\",\"rangoWin both linear 7s\")\n win1(\"orange\")\n }\n else if(this.position == orange.position){\n end(\"blue\",\"0 0 10px blue\",\"blumWin both linear 7s\",\"etBlum both linear 7s\",\"rangoLose both linear 7s\")\n win1(\"blue\")\n }\n }\n //METHODE JOUEUR BARRE WIN\n setInterval(function(){g.eat()\n if(pointsBlue == pointFinal){\n end(\"blue\",\"0 0 10px blue\",\"blumWin both linear 7s\",\"etBlum both linear 7s\",\"rangoLose both linear 7s\")\n win2(\"blue\")\n }\n else if(pointsOrange == pointFinal){\n end(\"orange\",\"0 0 10px orange\",\"blumLose both linear 7s\",\"etRango both linear 7s\",\"rangoWin both linear 7s\")\n win2(\"orange\")\n }\n }\n ,100),cases[g.position].appendChild(g)}, i)\n\n setInterval(function(){if (g.life == true){marche(g)}}, entierAleatoire(500, 1000))\n }", "function advance(){\n var tweenDelay = 0;\n clearInterval(timer);\n \n if(phase === 0){\n console.log(\"phase===0\") \n //slide(collapseCopy, \"-1300px\", 7, 'linear', 0); \n slide(colcopyl1, \"-913px\", 11, 'linear', 0);\n slide(colcopyl2, \"1213px\", 12, 'linear', 0);\n slide(colcopyl3, \"-913px\", 13, 'linear', 0);\n slide(colcopyl4, \"1213px\", 14, 'linear', 0);\n //fade(opportunity, 1, 'ease-in-out', 3.7);\n timer = setInterval(advance, 3000);\n }\n if(phase === 1){\n console.log(\"phase===1\")\n var colcopyl1w = colcopyl1.offsetLeft;\n var colcopyl2w = colcopyl2.offsetLeft;\n var colcopyl3w = colcopyl3.offsetLeft;\n var colcopyl4w = colcopyl4.offsetLeft;\n slide(colcopyl1, (colcopyl1w +'px'), 40, 'linear', 0.5);\n slide(colcopyl2, (colcopyl2w +'px'), 42, 'linear', 0.5);\n slide(colcopyl3, (colcopyl3w +'px'), 44, 'linear', 0.5);\n slide(colcopyl4, (colcopyl4w +'px'), 46, 'linear', 0.5);\n\n colorChange(colcopywhite1, 0.75, 40, 'linear', 0.5);\n colorChange(colcopywhite4, 0.75, 40, 'linear', 0.5);\n\n fadeOut(colcopyl1txt, 0.75, 'ease-in-out', 0);\n fadeOut(colcopyl1btxt, 0.75, 'ease-in-out', 0);\n fadeOut(colcopyl2txt, 0.75, 'ease-in-out', 0);\n fadeOut(colcopyl2btxt, 0.75, 'ease-in-out', 0);\n fadeOut(colcopyl3txt, 0.75, 'ease-in-out', 0);\n fadeOut(colcopyl4txt, 0.75, 'ease-in-out', 0);\n fadeOut(colcopyl4btxt, 0.75, 'ease-in-out', 0);\n \n //slide(opportunity, \"243px\", 0.6, 'ease-in-out', 0); \n\n timer = setInterval(advance, 1000);\n }\n if(phase === 2){\n console.log(\"phase===2\")\n var mq = window.matchMedia( \"(max-device-width: 480px)\" );\n\n if( mq.matches ) {\n fade(colcopyHidden1, 0.5, 'ease-in-out', 0.2);\n fade(colcopyHidden2, 0.5, 'ease-in-out', 0.2);\n\n rePosition(colcopyl1, 271, 32, 0.5, 'ease-in-out', tweenDelay);\n //rePosition(colcopy2, 305, 32, 0.5, 'ease-in-out', tweenDelay);\n rePosition(colcopyl4, 455, 32, 0.5, 'ease-in-out', tweenDelay);\n fade(clickToExpand, 0.3, 'ease-in-out', 0.4); \n } else {\n fade(colcopyHidden1, 0.5, 'ease-in-out', 0.2);\n fade(colcopyHidden2, 0.5, 'ease-in-out', 0.2);\n \n rePosition(colcopyl1, 271, 32, 0.5, 'ease-in-out', tweenDelay);\n //rePosition(colcopyl2, 262, 32, 0.5, 'ease-in-out', tweenDelay);\n rePosition(colcopyl4, 455, 32, 0.5, 'ease-in-out', tweenDelay); \n fade(clickToExpand, 0.3, 'ease-in-out', .9);\n }\n\n timer = setInterval(advance, 1000);\n }\n\n phase ++;\n }", "function mostrarCartelPerdio() {\n hideAndShow('#cartel-perdedor','#juego-contenedor');\n animateContenedor('#cartel-perdedor');\n setTimeout(() => {\n window.location.href = \"index.html\";\n }, 4000);\n}", "function startTheArmada() {\n // The first animation is the back-and-forth one, which cycles every 4 seconds.\n // The second animation runs only once and \"unfolds\" the playing field.\n armada.style.animation = 'armada-movement 4s infinite, unfold-armada 200ms forwards';\n armada.style.animationTimingFunction='linear';\n armada.style.animationDirection='alternate';\n }", "function startMoving(){\n ninjaLevitation(animTime);\n //sunrise();\n var particular4transl_50 = 50 / animTime;\n var particular4transl_100 = 100 / animTime;\n var particular4opacity_0 = 1 / animTime;\n var particular4opacity_075 = 0.75 / animTime;\n animate(function(timePassed) {\n forBackgnd.attr({opacity : particular4opacity_0 * timePassed});\n instagramLogo.attr({opacity : particular4opacity_0 * timePassed, 'transform' : 't 0, '+(100 - particular4transl_100 * timePassed)});\n mountFog.attr({opacity : 0.75 - particular4opacity_075 * timePassed});\n sunRays.attr({opacity : particular4opacity_0 * timePassed, 'transform' : 't 0, '+(50 - particular4transl_50 * timePassed)});\n }, animTime);\n}" ]
[ "0.6773356", "0.67409164", "0.66439044", "0.65856576", "0.65445185", "0.6470602", "0.64201653", "0.63934785", "0.63816625", "0.63495076", "0.6347462", "0.634076", "0.629086", "0.6290574", "0.62838614", "0.62724656", "0.6258089", "0.62214375", "0.62159", "0.62074697", "0.6207189", "0.6204385", "0.6192935", "0.61922294", "0.618998", "0.6182706", "0.61741924", "0.61732525", "0.6159351", "0.6134836", "0.6131505", "0.6128679", "0.612088", "0.6115026", "0.61121273", "0.6109513", "0.6098503", "0.60948724", "0.608637", "0.60800844", "0.6068888", "0.60565567", "0.6053495", "0.60472965", "0.6043187", "0.60349226", "0.6032773", "0.60109764", "0.6009328", "0.6006002", "0.60005444", "0.59906447", "0.5987234", "0.59864825", "0.5972568", "0.59708893", "0.5970646", "0.5969832", "0.5936034", "0.593496", "0.5921767", "0.5919577", "0.59148926", "0.59094846", "0.5908798", "0.59039116", "0.5901121", "0.58975196", "0.5897177", "0.58952105", "0.58945346", "0.5888514", "0.58785903", "0.58719146", "0.58636653", "0.5856868", "0.58526176", "0.58517605", "0.5845181", "0.58420414", "0.5839133", "0.5837571", "0.5828455", "0.5827591", "0.582231", "0.58122087", "0.5809819", "0.5809166", "0.5808016", "0.58074325", "0.58016086", "0.5787807", "0.5783566", "0.57821685", "0.5779517", "0.5772237", "0.57696974", "0.57669723", "0.57555735", "0.57522255" ]
0.59244645
60
Import an existing client VPN endpoint.
static fromEndpointAttributes(scope, id, attrs) { class Import extends core_1.Resource { constructor() { super(...arguments); this.endpointId = attrs.endpointId; this.connections = new connections_1.Connections({ securityGroups: attrs.securityGroups }); this.targetNetworksAssociated = new core_1.ConcreteDependable(); } } return new Import(scope, id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function connect() {\n\tlet endpoint = document.getElementById('endpoint').value;\n\tif (!window.substrate || global.endpoint != endpoint) {\n\t\tconst provider = new api.WsProvider(endpoint);\n\t\tlog.innerHTML = 'Connecting to Endpoint...';\n\t\twindow.substrate = await api.ApiPromise.create({ provider });\n\t\tglobal.endpoint = endpoint;\n\t\tglobal.chainDecimals = substrate.registry.chainDecimals;\n\t\tglobal.chainToken = substrate.registry.chainTokens[0];\n\t\tlog.innerHTML = 'Connected';\n\t}\n}", "async replaceEndpoint() {\n if (!this.dlg) {\n this.logger.error('CallSession:replaceEndpoint cannot be called without stable dlg');\n return;\n }\n this.ep = await this.ms.createEndpoint({remoteSdp: this.dlg.remote.sdp});\n await this.ep.set('hangup_after_bridge', false);\n\n await this.dlg.modify(this.ep.local.sdp);\n this.logger.debug('CallSession:replaceEndpoint completed');\n return this.ep;\n }", "endpoint(e) {\n\t\tlet value = GhostInstance.endpoints;\n\t\tconst paths = e.split('.');\n\t\tpaths.forEach((path) => {\n\t\t\tvalue = value[path] || {};\n\t\t});\n\n\t\tif (typeof value === 'object') {\n\t\t\tif (value.path) {\n\t\t\t\tvalue = Object.assign({}, value);\n\t\t\t} else {\n\t\t\t\tvalue = {};\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}", "function deriveEndpoint(edge, index, ep, conn) {\n return options.deriveEndpoint ? options.deriveEndpoint(edge, index, ep, conn) : options.endpoint ? options.endpoint : ep.type;\n }", "async function connect() {\n\tlet endpoint = document.getElementById('endpoint').value;\n\tif (!window.substrate || global.endpoint != endpoint) {\n\t\tconst provider = new WsProvider(endpoint);\n\t\toutput('Connecting to Endpoint...');\n\t\twindow.substrate = await ApiPromise.create({ provider });\n\t\tglobal.endpoint = endpoint;\n\t\toutput('Connected');\n\t}\n}", "function setupEndpoint() {\n if (host.val().indexOf('/') != -1) {\n var hostArr = host.val().split('/');\n\n path = \"http://\" + hostArr[0] + \":\" + port.val();\n hostArr.shift(); // remove host\n\n if (hostArr.length > 0) { // anything left?\n path += \"/\" + hostArr.join('/');\n }\n } else {\n path = \"http://\" + host.val() + \":\" + port.val();\n }\n endpoint = path;\n }", "function configureEndpoint() {\n\tif(!o().isEndpoint()) {\n\t\to().config({\n\t\t\tendpoint:'http://services.odata.org/V4/%28S%28wptr35qf3bz4kb5oatn432ul%29%29/TripPinServiceRW/',\n\t\t\tversion:4,\n\t\t\tstrictMode:true\n\t\t});\n\t}\n}", "async function endpointsCreateOrUpdateNfsMount() {\n const subscriptionId =\n process.env[\"STORAGEMOVER_SUBSCRIPTION_ID\"] || \"60bcfc77-6589-4da2-b7fd-f9ec9322cf95\";\n const resourceGroupName = process.env[\"STORAGEMOVER_RESOURCE_GROUP\"] || \"examples-rg\";\n const storageMoverName = \"examples-storageMoverName\";\n const endpointName = \"examples-endpointName\";\n const endpoint = {\n properties: {\n description: \"Example NFS Mount Endpoint Description\",\n endpointType: \"NfsMount\",\n export: \"examples-exportName\",\n host: \"0.0.0.0\",\n },\n };\n const credential = new DefaultAzureCredential();\n const client = new StorageMoverClient(credential, subscriptionId);\n const result = await client.endpoints.createOrUpdate(\n resourceGroupName,\n storageMoverName,\n endpointName,\n endpoint\n );\n console.log(result);\n}", "static import(scope, id, props) {\n return new ImportedNetworkListener(scope, id, props);\n }", "function readImportLocation()\n{\n var localWsdl, bRemote = false;\n with(this)\n { \n if (importlocation.length)\n {\n // read the wsdl into a string\n if (importlocation.substr(0, 5).toLowerCase() == \"http:\" || importlocation.substr(0, 6).toLowerCase() == \"https:\")\n bRemote = true;\n if(!bRemote)\n localWsdl = importlocation; \n else\n { \n localWsdl = getWSDL(importlocation);\n }\n if (localWsdl)\n { \n var inStr = DWfile.read(MMNotes.filePathToLocalURL(localWsdl));\n if (inStr)\n {\n if (dreamweaver.scanSourceString(inStr, this))\n {\n }\n // delete the file it is remote, as we have created a local file\n // in the temp directory...\n if(bRemote && localWsdl.length && DWfile.exists(localWsdl))\n DWfile.remove(localWsdl); \n }\n }\n }\n }\n}", "getImport(import_id) {\n return new Promise((resolve, reject) => {\n const verticesPromise = this.graphStorage.findVerticesByImportId(import_id);\n const edgesPromise = this.graphStorage.findEdgesByImportId(import_id);\n\n Promise.all([verticesPromise, edgesPromise]).then((values) => {\n var nodes = [];\n var edges = [];\n values[0].forEach((vertex) => {\n const isRoot = !!((vertex._id === 'ot_vertices/Transport'\n || vertex._id === 'ot_vertices/Transformation'\n || vertex._id === 'ot_vertices/Product'\n || vertex._id === 'ot_vertices/Ownership'\n || vertex._id === 'ot_vertices/Observation'\n || vertex._id === 'ot_vertices/Location'\n || vertex._id === 'ot_vertices/Actor'\n ));\n const caption = (vertex.vertex_type === 'CLASS') ?\n vertex._key : vertex.identifiers.uid;\n nodes.push({\n id: vertex._id,\n type: caption,\n caption,\n root: isRoot,\n data: vertex,\n });\n });\n values[1].forEach((edge) => {\n edges.push({\n source: edge._from,\n target: edge._to,\n type: edge.edge_type,\n caption: edge.edge_type,\n github: edge,\n });\n });\n\n this.socket.emit('visualise', { nodes, edges });\n resolve();\n });\n });\n }", "constructor() { \n \n VpcEndpoint.initialize(this);\n }", "makeEndpoint(schema) {\n return (options) => {\n const ep = new endpoint_1.Endpoint(options);\n ep.applySchema(ep, schema, schema, ep);\n return ep;\n };\n }", "async import() {\n writeLocalConfig(this.remoteConfig);\n\n log(`${chalk.cyan(resolve(process.cwd(), 'app/config/stripe.json'))} has been created from existing Stripe configuration.`);\n }", "set endpoint(endpoint) {\n\t\tif (Array.isArray(endpoint)) {\n\t\t\tthis._endpoint = endpoint.map((i) => new Reference(i));\n\t\t} else {\n\t\t\tthis._endpoint = [new Reference(endpoint)];\n\t\t}\n\t}", "constructor(scope, id, props) {\n super(scope, id, { type: CfnVPCEndpointService.resourceTypeName, properties: props });\n cdk.requireProperty(props, 'networkLoadBalancerArns', this);\n this.vpcEndpointServiceId = this.ref.toString();\n }", "import() {\n }", "async function createPrivateEndpoint() {\n const credential = new DefaultAzureCredential();\n const client = createNetworkManagementClient(credential);\n const subscriptionId = \"\";\n const resourceGroupName = \"rg1\";\n const privateEndpointName = \"testPe\";\n const options = {\n body: {\n location: \"eastus2euap\",\n properties: {\n customNetworkInterfaceName: \"testPeNic\",\n ipConfigurations: [\n {\n name: \"pestaticconfig\",\n properties: {\n groupId: \"file\",\n memberName: \"file\",\n privateIPAddress: \"192.168.0.6\",\n },\n },\n ],\n privateLinkServiceConnections: [\n {\n properties: {\n groupIds: [\"groupIdFromResource\"],\n privateLinkServiceId:\n \"/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls\",\n requestMessage: \"Please approve my connection.\",\n },\n },\n ],\n subnet: {\n id: \"/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet\",\n },\n },\n },\n queryParameters: { \"api-version\": \"2022-05-01\" },\n };\n const initialResponse = await client\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}\",\n subscriptionId,\n resourceGroupName,\n privateEndpointName\n )\n .put(options);\n const poller = getLongRunningPoller(client, initialResponse);\n const result = await poller.pollUntilDone();\n console.log(result);\n}", "function endpoint(path, method) {\n function Endpoint(path, method) {\n this.path = path;\n this.method = method;\n }\n allEndpoints.push( new Endpoint(path, method) );\n}", "function openClientConnection() {\n\t\tclient.open(address, () => {\n\t\t\tif (document.URL.includes(\"edit.html\")) { //one edit HTML page for all possible edit options\n\t\t\t\tclient.addEditEventListeners(diagram);\n\t\t\t}\n\t\t\tclient.refreshDiagram(diagram);\n\t\t});\n\t}", "function _import(file) {\n return require('@/' + file + '.vue').default\n}", "function _import(file) {\n return require('@/' + file + '.vue').default\n}", "function _import(file) {\n return require('@/' + file + '.vue').default\n}", "static defaultIlpClientWithEndpoint(grpcURL, forceWeb = false) {\n return utils_1.default() && !forceWeb\n ? new DefaultIlpClient(new grpc_ilp_network_client_1.default(grpcURL))\n : new DefaultIlpClient(new grpc_ilp_network_client_web_1.default(grpcURL));\n }", "static defaultIlpClientWithEndpoint(grpcURL, forceWeb = false) {\n return utils_1.default() && !forceWeb\n ? new DefaultIlpClient(new grpc_ilp_network_client_1.default(grpcURL))\n : new DefaultIlpClient(new grpc_ilp_network_client_web_1.default(grpcURL));\n }", "function Client(options) {\n // parse vcap using cfenv if available\n if(options.appEnv && !options.credentials) {\n options.credentials = cfEnvUtil.getServiceCredsByLabel(options.appEnv, exports.serviceRegex);\n }\n // try again with name\n if(options.appEnv && !options.credentials) {\n options.credentials = options.appEnv.getServiceCreds(exports.serviceRegex);\n }\n this._options = options;\n if ( !this._options.credentials ) {\n throw new Error(\"g11n-pipeline: missing 'credentials' \" + Object.keys(exports.exampleCredentials));\n }\n var missingField = isMissingField(this._options.credentials, Object.keys(exports.exampleCredentials));\n if(missingField.length !== 0) {\n throw new Error(\"g11n-pipeline: missing credentials fields: \\\"\" + missingField.join(' ') + \"\\\" - expected: \" + exampleCredentialsString);\n }\n \n // instanceId optional\n if( this._options.credentials.instanceId ) {\n this._options.serviceInstance = this._options.credentials.instanceId;\n }\n\n this._options.credentials.url = exports._normalizeUrl(this._options.credentials.url); \n if ( debugURL ) /*istanbul ignore next*/ console.log('just created a client with ' + JSON.stringify(options));\n}", "async function createPrivateEndpointWithManualApprovalConnection() {\n const credential = new DefaultAzureCredential();\n const client = createNetworkManagementClient(credential);\n const subscriptionId = \"\";\n const resourceGroupName = \"rg1\";\n const privateEndpointName = \"testPe\";\n const options = {\n body: {\n location: \"eastus\",\n properties: {\n customNetworkInterfaceName: \"testPeNic\",\n ipConfigurations: [\n {\n name: \"pestaticconfig\",\n properties: {\n groupId: \"file\",\n memberName: \"file\",\n privateIPAddress: \"192.168.0.5\",\n },\n },\n ],\n manualPrivateLinkServiceConnections: [\n {\n properties: {\n groupIds: [\"groupIdFromResource\"],\n privateLinkServiceId:\n \"/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls\",\n requestMessage: \"Please manually approve my connection.\",\n },\n },\n ],\n subnet: {\n id: \"/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet\",\n },\n },\n },\n queryParameters: { \"api-version\": \"2022-05-01\" },\n };\n const initialResponse = await client\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}\",\n subscriptionId,\n resourceGroupName,\n privateEndpointName\n )\n .put(options);\n const poller = getLongRunningPoller(client, initialResponse);\n const result = await poller.pollUntilDone();\n console.log(result);\n}", "function importNetwork() {\n\tvar localDrivetoUI = document.getElementById('input-file');\n\n\t\tif(localDrivetoUI) {\n\t\t\tconsole.log(localDrivetoUI);\n\t\t\tlocalDrivetoUI.addEventListener('change', getJSONFromDrive, false);\n\t\t}\t\n\tdata_Vue.project_saved = false;\n\tshowCorrDiv(\"true\");\n\t\n}", "importFromUrl(importFromUrlInput, options = { headers: {} }) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarPath = this.basePath + '/files/v3/files/import-from-url/async';\n let localVarQueryParameters = {};\n let localVarHeaderParams = Object.assign({}, this._defaultHeaders);\n const produces = ['application/json', '*/*'];\n // give precedence to 'application/json'\n if (produces.indexOf('application/json') >= 0) {\n localVarHeaderParams.Accept = 'application/json';\n }\n else {\n localVarHeaderParams.Accept = produces.join(',');\n }\n let localVarFormParams = {};\n // verify required parameter 'importFromUrlInput' is not null or undefined\n if (importFromUrlInput === null || importFromUrlInput === undefined) {\n throw new Error('Required parameter importFromUrlInput was null or undefined when calling importFromUrl.');\n }\n Object.assign(localVarHeaderParams, options.headers);\n let localVarUseFormData = false;\n let localVarRequestOptions = {\n method: 'POST',\n qs: localVarQueryParameters,\n headers: localVarHeaderParams,\n uri: localVarPath,\n useQuerystring: this._useQuerystring,\n json: true,\n body: models_1.ObjectSerializer.serialize(importFromUrlInput, \"ImportFromUrlInput\")\n };\n let authenticationPromise = Promise.resolve();\n if (this.authentications.hapikey.apiKey) {\n authenticationPromise = authenticationPromise.then(() => this.authentications.hapikey.applyToRequest(localVarRequestOptions));\n }\n if (this.authentications.oauth2.accessToken) {\n authenticationPromise = authenticationPromise.then(() => this.authentications.oauth2.applyToRequest(localVarRequestOptions));\n }\n authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));\n let interceptorPromise = authenticationPromise;\n for (const interceptor of this.interceptors) {\n interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));\n }\n return interceptorPromise.then(() => {\n if (Object.keys(localVarFormParams).length) {\n if (localVarUseFormData) {\n localVarRequestOptions.formData = localVarFormParams;\n }\n else {\n localVarRequestOptions.form = localVarFormParams;\n }\n }\n return new Promise((resolve, reject) => {\n localVarRequest(localVarRequestOptions, (error, response, body) => {\n if (error) {\n reject(error);\n }\n else {\n body = models_1.ObjectSerializer.deserialize(body, \"ImportFromUrlTaskLocator\");\n if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {\n resolve({ response: response, body: body });\n }\n else {\n reject(new apis_1.HttpError(response, body, response.statusCode));\n }\n }\n });\n });\n });\n });\n }", "importAccount(){\n\n this.props.navigator.push({\n id: 'EnterPrivateKey',\n passProps: {test: 'nextIndex'},\n });\n \n }", "createEntity(entity) {\n this.endpoints[entity.name] = this.createBasicCRUDEndpoints(entity);\n }", "importAccountWithStrategy(strategy, args) {\n return __awaiter(this, void 0, void 0, function* () {\n let privateKey;\n switch (strategy) {\n case 'privateKey':\n const [importedKey] = args;\n if (!importedKey) {\n throw new Error('Cannot import an empty key.');\n }\n const prefixed = ethereumjs_util_1.addHexPrefix(importedKey);\n /* istanbul ignore if */\n if (!ethereumjs_util_1.isValidPrivate(ethereumjs_util_1.toBuffer(prefixed))) {\n throw new Error('Cannot import invalid private key.');\n }\n privateKey = ethjs_util_1.stripHexPrefix(prefixed);\n break;\n case 'json':\n let wallet;\n const [input, password] = args;\n try {\n wallet = ethereumjs_wallet_1.thirdparty.fromEtherWallet(input, password);\n }\n catch (e) {\n wallet = wallet || (yield ethereumjs_wallet_1.default.fromV3(input, password, true));\n }\n privateKey = ethereumjs_util_1.bufferToHex(wallet.getPrivateKey());\n break;\n default:\n throw new Error(`Unexpected import strategy: '${strategy}'`);\n }\n const newKeyring = yield privates\n .get(this)\n .keyring.addNewKeyring(KeyringTypes.simple, [privateKey]);\n const accounts = yield newKeyring.getAccounts();\n const allAccounts = yield privates.get(this).keyring.getAccounts();\n this.updateIdentities(allAccounts);\n this.setSelectedAddress(accounts[0]);\n return this.fullUpdate();\n });\n }", "async function endpointsCreateOrUpdateSmbMount() {\n const subscriptionId =\n process.env[\"STORAGEMOVER_SUBSCRIPTION_ID\"] || \"60bcfc77-6589-4da2-b7fd-f9ec9322cf95\";\n const resourceGroupName = process.env[\"STORAGEMOVER_RESOURCE_GROUP\"] || \"examples-rg\";\n const storageMoverName = \"examples-storageMoverName\";\n const endpointName = \"examples-endpointName\";\n const endpoint = {\n properties: {\n description: \"Example SMB Mount Endpoint Description\",\n credentials: {\n type: \"AzureKeyVaultSmb\",\n passwordUri: \"https://examples-azureKeyVault.vault.azure.net/secrets/examples-password\",\n usernameUri: \"https://examples-azureKeyVault.vault.azure.net/secrets/examples-username\",\n },\n endpointType: \"SmbMount\",\n host: \"0.0.0.0\",\n shareName: \"examples-shareName\",\n },\n };\n const credential = new DefaultAzureCredential();\n const client = new StorageMoverClient(credential, subscriptionId);\n const result = await client.endpoints.createOrUpdate(\n resourceGroupName,\n storageMoverName,\n endpointName,\n endpoint\n );\n console.log(result);\n}", "_attachEndpoint(func, endpoint) {\n\t\t// Validate method and path\n\t\t/* istanbul ignore next */\n\t\tif (!endpoint.method || !endpoint.path) {\n\t\t\treturn this.log(\n\t\t\t\t`Endpoint ${endpoint.type} for function ${func.name} has no method or path`\n\t\t\t)\n\t\t}\n\t\t// Add HTTP endpoint to Express\n\t\tthis.app[endpoint.method.toLowerCase()](\n\t\t\tendpoint.path,\n\t\t\t(request, response) => {\n\t\t\t\tthis.log(`${endpoint}`)\n\t\t\t\t// Execute Lambda with corresponding event, forward response to Express\n\t\t\t\tlet lambdaEvent = endpoint.getLambdaEvent(request)\n\t\t\t\tthis._executeLambdaHandler(func, lambdaEvent)\n\t\t\t\t\t.then(result => {\n\t\t\t\t\t\tthis.log(' ➡ Success')\n\t\t\t\t\t\tif (process.env.SLS_DEBUG) console.info(result)\n\t\t\t\t\t\tendpoint.handleLambdaSuccess(response, result)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tthis.log(` ➡ Failure: ${error.message}`)\n\t\t\t\t\t\tif (process.env.SLS_DEBUG) console.error(error.stack)\n\t\t\t\t\t\tendpoint.handleLambdaFailure(response, error)\n\t\t\t\t\t})\n\t\t\t}\n\t\t)\n\t}", "function addVertex1(npi) {\n console.log(\"Running Add Vertex1\");\n return clientGraph\n .submit(\"g.addV(label).property('id', id).property('City','id')\", {\n label: \"NPI\",\n id: npi,\n })\n .then(function (result) {\n console.log(\"Result: %s\\n\", JSON.stringify(result));\n });\n}", "function createConnection () {\n connection = App.models.endpoint({\n id: options.connectTo,\n client: client,\n onMessage: renderReply\n });\n }", "async function loadClient() {\n client = await mongodb.MongoClient.connect(url, { useNewUrlParser: true })\n}", "function createLocalAPIClient() {\r\n\t\t\tvar idata = Class.interfaceDataOf(appClass,ILocalAPIImports);\r\n\t\t\tvar importTable = null;\r\n\t\t\tif (idata != null) importTable = idata.get();\r\n\t\t\treturn new LocalAPIClient(importTable,apiHubs);\r\n\t\t}", "constructor(endpoint, options) {\n super(endpoint, options);\n this.communicationIdentity = new operations.CommunicationIdentity(this);\n }", "async function register() {\n const service = {\n name: \"client\",\n host: \"localhost\",\n port: \"3001\",\n endpoints: [\n {\n method: 'GET',\n endpoint: '/order-list',\n parameters: []\n },\n {\n method: 'GET',\n endpoint: '/request-order',\n parameters: ['idrest', 'idmenu', 'dir', 'phone']\n },\n {\n method: 'GET',\n endpoint: '/state-restaurant',\n parameters: ['idpedido']\n },\n {\n method: 'GET',\n endpoint: '/state-delivery',\n parameters: ['idpedido']\n }\n ]\n }\n\n await fetch('http://localhost:3000/api/esb/add-service', {\n method: 'post',\n body: JSON.stringify(service),\n headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }\n })\n .then(res => {\n return res.json();\n })\n .then(json => {\n console.log(\"registered service\");\n });\n}", "function SeamonkeyImportAddressbook() {\n this.migrator = Cc[\n \"@mozilla.org/profile/migrator;1?app=mail&type=seamonkey\"\n ].createInstance(Ci.nsIMailProfileMigrator);\n this.sourceProfileName = null;\n this.sourceProfileLocation = null;\n}", "static fromFargateServiceArn(scope, id, fargateServiceArn) {\n class Import extends cdk.Resource {\n constructor() {\n super(...arguments);\n this.serviceArn = fargateServiceArn;\n this.serviceName = cdk.Stack.of(scope).parseArn(fargateServiceArn).resourceName;\n }\n }\n return new Import(scope, id);\n }", "function onConnectClick() {\n var ws_protocol = document.getElementById(\"protocol\").value;\n var ws_hostname = document.getElementById(\"hostname\").value;\n var ws_port = document.getElementById(\"port\").value;\n var ws_endpoint = document.getElementById(\"endpoint\").value;\n openWSConnection(ws_protocol, ws_hostname, ws_port, ws_endpoint);\n}", "function _Import(options) {\n for (const key of Object.keys(options)) {\n const uppedKey = key.charAt(0).toUpperCase() + key.slice(1);\n console.log(\"Command-line option\", `${key}:`, options[key]);\n module.exports[uppedKey] = options[key];\n }\n}", "async connect() {\n const _alice = '//Alice';\n const _bob = '//Bob';\n const _charlie = '//Charlie';\n const _dave = '//Dave';\n if (!self.api) {\n self.api = await ApiPromise.create({\n provider: self.wsProvider,\n types: {\n Address: 'MultiAddress',\n LookupSource: 'MultiAddress',\n },\n });\n }\n if (!self.myself) {\n self.myself = self.keyring.addFromUri(_alice);\n self.alice = self.keyring.addFromUri(_alice);\n self.bob = self.keyring.addFromUri(_bob);\n self.charlie = self.keyring.addFromUri(_charlie);\n self.dave = self.keyring.addFromUri(_dave);\n }\n return self.api;\n }", "function addPeer(gun, ip, port) {\n\t //const oldPeers = gun.opt()['_'].opt.peers;\n\t return gun.opt({ peers: ['http: *' + ip + ':' + port + '/gun'] }); // Should these be linked both ways?\n\t }", "function TrainingAPIClient(apiKey, endpoint, options) {\n return _super.call(this, apiKey, endpoint, options) || this;\n }", "function importMethod(methodName, file, base, importName=methodName) {\n // methodPath is used to create a unique identifier of a method+base pair\n // in order to track the source of the import. This is useful, for example,\n // if the program includes fp/map and lodash/map (fp/ is one base whereas */ is the other)\n var methodPath = `${base || '*'}/${methodName}`;\n if (!selectedMethods[methodPath]) {\n let importPath = resolveModule(methodName, base);\n selectedMethods[methodPath] = file.addImport(importPath, 'default', importName);\n }\n return selectedMethods[methodPath];\n }", "function importOffers(data) {\n appState.setImporting(true);\n\n return postHelper('/import/offers', { chass_offers: data }, () => {\n appState.setImporting(false, true);\n fetchAll();\n }).catch(() => appState.setImporting(false));\n}", "import() {\n settings.importFromFile(this.files[0])\n .then(restore)\n .catch(() => notifier.error('Cannot import settings file'));\n }", "function resetEndpoint(endpoint) {\n return endpoint = \"https://localhost:44367/api/movie/\";\n }", "constructor(endpoint, https=true) {\n winston.info(\"Creating JSONClient instance.\");\n this.endpoint = endpoint;\n this.https = https;\n }", "addEndpoint(options = {}) {\n const state = this[kInternalState];\n if (this.destroyed)\n throw new ERR_INVALID_STATE('QuicSocket is already destroyed');\n if (state.state !== kSocketUnbound)\n throw new ERR_INVALID_STATE('QuicSocket is already being bound');\n\n options = {\n lookup: state.lookup,\n ...options\n };\n\n const endpoint = new QuicEndpoint(this, options);\n state.endpoints.add(endpoint);\n return endpoint;\n }", "constructor(scope, id, props) {\n super(scope, id, { type: CfnVPCEndpoint.resourceTypeName, properties: props });\n cdk.requireProperty(props, 'serviceName', this);\n cdk.requireProperty(props, 'vpcId', this);\n this.vpcEndpointCreationTimestamp = this.getAtt('CreationTimestamp').toString();\n this.vpcEndpointDnsEntries = this.getAtt('DnsEntries').toList();\n this.vpcEndpointNetworkInterfaceIds = this.getAtt('NetworkInterfaceIds').toList();\n this.vpcEndpointId = this.ref.toString();\n }", "constructor(endpoint, options) {\n super(endpoint, options);\n }", "constructor(endpoint, options) {\n super(endpoint, options);\n }", "saveHarvestingEndpoint(endpoint) {\n if (this._Wallet.network == nem.model.network.data.mainnet.id) {\n this._storage.harvestingMainnetNode = endpoint;\n } else if (this._Wallet.network == nem.model.network.data.testnet.id) {\n this._storage.harvestingTestnetNode = endpoint;\n } else {\n this._storage.harvestingMijinNode = endpoint;\n }\n }", "function SeamonkeyImport() {}", "function _api (endpoint, callback) {\r\n endpoint = endpoint.replace(/^\\/+/, '').replace(/\\/+$/, '');\r\n _get(_default_host + endpoint, callback);\r\n }", "async importIdentity(client, label, identity) {\n\t\t// check the identity type\n\t\tconst cryptoContent = {\n\t\t\tsignedCertPEM: identity.certificate\n\t\t};\n\t\tconst publicKey = KEYUTIL.getKey(identity.certificate);\n\t\tconst ecdsakey = new ecdsaKey(publicKey);\n\t\tcryptoContent.privateKeyObj = await this.cryptoSuite.getKey(Buffer.from(ecdsakey.getSKI(), 'hex'));\n\n\t\tawait client.createUser({\n\t\t\tusername: label,\n\t\t\tmspid: identity.mspId,\n\t\t\tcryptoContent: cryptoContent\n\t\t});\n\n\t}", "enterImport_from(ctx) {\n\t}", "addImport(path, version, as) {\n this.importSolver.addImport(path, version, as);\n }", "endpoint() {\n //\n }", "createBraintreeClient(clientAuth) {\n client\n .create({\n authorization: clientAuth,\n })\n .then(receivedClientInstance => {\n\n this.createHostedFields(receivedClientInstance);\n\n })\n .catch(err => console.log(err));\n }", "async openIntercomClient () {\n\t\t// NOTE: THE LINE BELOW MAKES THIS SCRIPT OBSOLETE, WE NO LONGER HAVE AN INTERCOM KEY\n\t\t//this.intercomClient = new Intercom.Client({ token: ApiConfig.getPreferredConfig().telemetry.intercom.token });\n\t}", "function init() {\n log.trace(module, init);\n const dir = `${SERVER_ROOT}/api/routes`;\n // Find all Javascript files in dir.\n util.walk(dir, (filePath) => {\n filePath = path.posix.normalize(filePath.replace(/\\\\/g, '/'));\n if (path.extname(filePath) == '.js') {\n const relPath = filePath.replace(dir, '');\n // Try to load the module\n var epModule = require(filePath);\n // Check for REL, METHOD and CALLBACK.\n if (util.isNullOrUndefined(epModule.REL) ||\n util.isNullOrUndefined(epModule.METHOD) ||\n util.isNullOrUndefined(epModule.INPUTS) ||\n util.isNullOrUndefined(epModule.CALLBACK)) {\n // Not a valid module - log and skip.\n return log.warn(`Javascript source file ${filePath} does not define an endpoint`);\n }\n // Compute the endpoint path from the filePath. If the module is called 'index.js',\n // strip the filename from the path.\n var epPath = relPath.replace('.js', '');\n if (path.basename(epPath) == 'index') {\n epPath = path.dirname(epPath);\n }\n // Append the endpoint to the table.\n log.info(`Adding endpoint ${epModule.REL}=${epPath}`);\n module.exports.endpoints.push({\n 'rel': epModule.REL,\n 'href': epPath,\n 'method': epModule.METHOD,\n 'inputs': epModule.INPUTS,\n 'callback': epModule.CALLBACK\n });\n }\n });\n}", "constructor(endpoint, options) {\n super(endpoint, options);\n this.communicationIdentity = new CommunicationIdentity$1(this);\n }", "handleClientLoad() {\n gapi.load(\"client:auth2\", this.initClient);\n }", "function createEndpointFromPath(path, query, filePath) {\n filePath = filePath || path;\n return createEndpointFromObject(path, query, getJSON(filePath));\n}", "enterImportSection(ctx) {\n\t}", "static fromJSON(options, additionalOptions) {\n var _a;\n if (options && options.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) {\n if ((_a = options.credential_source) === null || _a === void 0 ? void 0 : _a.environment_id) {\n return new awsclient_1.AwsClient(options, additionalOptions);\n }\n else {\n return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions);\n }\n }\n else {\n return null;\n }\n }", "addDefaultBindingProperty(service) {\n service.setBindingSchemaDefaultValues('CLIENT_ID', this.props.appName);\n }", "function importFile(fileLocation) {\n \n projectItems = project.rootFolder.items;\n \n var driveFolder;\n \n if (projectItems.length == 0) {\n driveFolder = project.items.addFolder('Google Drive Downloads');\n }\n \n // Scans each project item and adds the Google Drive Downloads folder if it doens't already exist\n for (var i = 1; i <= projectItems.length; i++) { \n if (projectItems[i].name == 'Google Drive Downloads') {\n driveFolder = projectItems[i];\n break;\n }\n else if (i == projectItems.length) {\n break;\n }\n }\n\n app.beginUndoGroup(\"Google Drive Files Import\");\n var importedFile = project.importFile(new ImportOptions(fileLocation));\n importedFile.parentFolder = driveFolder;\n importedFile.selected = true;\n app.endUndoGroup();\n}", "_createNewClient() {\n if (this.client) {\n this.client.off(\"tokensUpdated\", this._onTokensUpdated);\n }\n this._onTokensUpdated = () => {\n this.updateTokens(this.client.accessToken, this.client.refreshToken, false);\n };\n this._client = new MyButtercupClient(this._clientID, this._clientSecret, this.accessToken, this.refreshToken);\n this._client.on(\"tokensUpdated\", this._onTokensUpdated);\n /**\n * On client updated\n * @event MyButtercupDatasource#updatedClient\n * @type {Object}\n */\n this.emit(\"updatedClient\", this._client);\n }", "async requestInverterEndpoint() {\n try {\n const inverterUrl = this.apiVersion === 'v2' ? `http://${this.ip}/api/v2/inverter` : `http://${this.ip}:8080/api/inverter`;\n const data = (await (0, axios_1.default)({ url: inverterUrl, ...this.requestOptions })).data;\n const promises = [];\n promises.push(this.setStateAsync(`info.inverter`, JSON.stringify(data), true));\n // V1 has other response, handle it accordingly\n if (this.apiVersion === 'v1') {\n const relevantStates = [\n 'iac1',\n 'iac2',\n 'iac3',\n 'uac1',\n 'uac2',\n 'uac3',\n 'udc',\n 'temphmi',\n 'tempbdc',\n 'temppu',\n 'pac1',\n 'pac2',\n 'pac3'\n ];\n for (const state of relevantStates) {\n // inverter states are string but are all numbers\n promises.push(this.setStateAsync(`inverter.${state}`, parseFloat(data.status[state]), true));\n }\n }\n else if (this.apiVersion === 'v2') {\n const invererData = data;\n promises.push(this.setStateAsync('inverter.pacTotal', invererData.pac_total, true));\n promises.push(this.setStateAsync('inverter.tmax', invererData.tmax, true));\n promises.push(this.setStateAsync('inverter.ubat', invererData.ubat, true));\n }\n await Promise.all(promises);\n // inverter endpoint exists\n this.inverterEndpoint = true;\n }\n catch (e) {\n if (this.inverterEndpoint) {\n throw new Error(`Could not request inverter endpoint: ${e.message}`);\n }\n else {\n // not all batteries seem to have this endpoint so don't throw an error if it was never there, see Issue #55\n this.log.debug(`Could not request inverter endpoint: ${e.message}`);\n }\n }\n }", "async function addToClient(client, file, output) {\n\tconst path = require('path');\n\n\tlet c = require(path.join(__dirname, file));\n\tclient.command_list.set(c.name, c);\n\tconsole.log(`* Command ${c.name} successfully loaded.`);\n\toutput ? client.say(target, `Command ${c.name} successfully loaded.`) : null;\n}", "addRoute(id, props) {\n return new client_vpn_route_1.ClientVpnRoute(this, id, {\n ...props,\n clientVpnEndoint: this,\n });\n }", "static importPrivateWallet(options) {\n if (!options.privateKey) {\n throw new Error(`Invalid privateKey=${options.privateKey}`);\n }\n return new PrivateWallet(options);\n }", "SetNewReverseToIp(reverse, serviceName) {\n let url = `/hosting/reseller/${serviceName}/reverse`;\n return this.client.request('POST', url, { reverse });\n }", "function ClickImportar() {\n var input = Dom(\"json-personagem\");\n gEntradas = JSON.parse(input.value);\n CorrigePericias();\n AtualizaGeralSemLerEntradas();\n Mensagem(Traduz('Personagem') + ' \"' + gPersonagem.nome + '\" ' + Traduz('importado com sucesso') + '.');\n}", "function withPreferredEndpoint(url) {\n return url.replace(\"https://api.github.com/repos/glassechidna/trackiam\", preferredEndpoint);\n}", "constructor(scope, id, props) {\n super(scope, id, { type: CfnEgressOnlyInternetGateway.resourceTypeName, properties: props });\n cdk.requireProperty(props, 'vpcId', this);\n this.egressOnlyInternetGatewayId = this.ref.toString();\n }", "function apiClientLoad() {\n\n //gapi.client.load('oauth2', 'v2', apiClientLoaded);\n gapi.client.load('plus', 'v1', apiClientLoaded);\n}", "get endpoint () {\n\t\treturn this._endpoint;\n\t}", "function importFile() {\n\t\topenDialog({\n\t\t\tfilters: [{ name: 'Javascript', extensions: ['js'] }],\n\t\t})\n\t\t\t.then(filename => filename && run('import_extension', { srcPath: filename }))\n\t\t\t.catch(e => alert(e));\n\t}", "function putStackInstanceFile(path, endpoint) {\n\n // See if endpoint exists - stack endpoints are a recent innovation.\n if (!endPointTransceiver.serverSupports(endpoint)) {\n warn(\"stacksCannotBeSent\", {path})\n return\n }\n\n // Get the metadata for the stack instance.\n return readMetadata(path, constants.stackInstanceMetadataJson).then(metadata => {\n\n if (metadata) {\n\n return endPointTransceiver[endpoint]([metadata.repositoryId],\n request().fromPathAs(path, \"source\").withEtag(metadata.etag)).tap(results => processPutResultAndEtag(path, results))\n } else {\n warn(\"cannotUpdateStack\", {path})\n }\n })\n}", "registerEndpoint(fn, options)\n {\n if (!fn) throw new Error('Must include a function to register endpoint');\n\n options.modelName = this.modelName;\n const endpoint = buildEndpoint(this, options, fn);\n if (!options.private) this.publicEndpoints.push(endpoint);\n this[options.name] = fn;\n }", "static connect({\n root,\n bindings,\n options: {\n username,\n password,\n hostname,\n path,\n port,\n ssl,\n ...settings\n }\n }) {\n const url = `ws${ssl ? 's' : ''}://${hostname}:${port}/${path}`\n\n const wrapper = name => e => {\n if (import.meta.env.DEV) {\n console.debug(name, e)\n }\n\n return bindings[name](e)\n }\n\n const rfb = new VuenseeRFB(root, url, {\n shared: settings.sharedMode,\n repeaterID: settings.repeaterId,\n\n // NOTE: It's important to set to undefined, or else it will\n // try to send the value as credentials, making connection fail!\n // We want a login prompt in this case.\n credentials: {\n username: username || undefined,\n password: password || undefined\n }\n })\n\n // NOTE: Manually unsubscribe from all events when we disconnect.\n // This is because we create a new instance whenever a connection goes down.\n // We might find a way to get around that in the future.\n const listeners = events.map(name => [name, wrapper(name)])\n listeners.forEach(([name, cb]) => rfb.addEventListener(name, cb))\n\n rfb.addEventListener('disconnect', () => {\n listeners.forEach(([name, cb]) => rfb.removeEventListener(name, cb))\n })\n\n rfb.applySettings(settings)\n\n return rfb\n }", "function assembleProtocol(fpath, opts, cb) {\n if (!cb && typeof opts == 'function') {\n cb = opts;\n opts = undefined;\n }\n opts = opts || {};\n if (!opts.importHook) {\n opts.importHook = files.createImportHook();\n }\n\n importFile(fpath, function (err, protocol) {\n if (err) {\n cb(err);\n return;\n }\n if (!protocol) {\n cb(new Error('empty root import'));\n return;\n }\n var schemas = protocol.types;\n if (schemas) {\n // Strip redundant namespaces from types before returning the protocol.\n // Note that we keep empty (`''`) nested namespaces when the outer one is\n // non-empty. This allows figuring out whether unqualified imported names\n // should be qualified by the protocol's namespace: they should if their\n // namespace is `undefined` and should not if it is empty.\n var namespace = protocolNamespace(protocol) || '';\n schemas.forEach(function (schema) {\n if (schema.namespace === namespace) {\n delete schema.namespace;\n }\n });\n }\n cb(null, protocol);\n });\n\n function importFile(fpath, cb) {\n opts.importHook(fpath, 'idl', function (err, str) {\n if (err) {\n cb(err);\n return;\n }\n if (str === undefined) {\n // This signals an already imported file by the default import hooks.\n // Implementors who wish to disallow duplicate imports should provide a\n // custom hook which throws an error when a duplicate is detected.\n cb();\n return;\n }\n try {\n var reader = new Reader(str, opts);\n var obj = reader._readProtocol(str, opts);\n } catch (err) {\n err.path = fpath; // To help debug which file caused the error.\n cb(err);\n return;\n }\n fetchImports(obj.protocol, obj.imports, path.dirname(fpath), cb);\n });\n }\n\n function fetchImports(protocol, imports, dpath, cb) {\n var importedProtocols = [];\n next();\n\n function next() {\n var info = imports.shift();\n if (!info) {\n // We are done with this file. We prepend all imported types to this\n // file's and we can return the final result.\n importedProtocols.reverse();\n try {\n importedProtocols.forEach(function (imported) {\n mergeImport(protocol, imported);\n });\n } catch (err) {\n cb(err);\n return;\n }\n cb(null, protocol);\n return;\n }\n var importPath = path.join(dpath, info.name);\n if (info.kind === 'idl') {\n importFile(importPath, function (err, imported) {\n if (err) {\n cb(err);\n return;\n }\n if (imported) {\n importedProtocols.push(imported);\n }\n next();\n });\n } else {\n // We are importing a protocol or schema file.\n opts.importHook(importPath, info.kind, function (err, str) {\n if (err) {\n cb(err);\n return;\n }\n switch (info.kind) {\n case 'protocol':\n case 'schema':\n if (str === undefined) {\n // Skip duplicate import (see related comment above).\n next();\n return;\n }\n try {\n var obj = JSON.parse(str);\n } catch (err) {\n err.path = importPath;\n cb(err);\n return;\n }\n var imported = info.kind === 'schema' ? {types: [obj]} : obj;\n importedProtocols.push(imported);\n next();\n return;\n default:\n cb(new Error(f('invalid import kind: %s', info.kind)));\n }\n });\n }\n }\n }\n\n function mergeImport(protocol, imported) {\n // Merge first the types (where we don't need to check for duplicates\n // since instantiating the service will take care of it), then the messages\n // (where we need to, as duplicates will overwrite each other).\n var schemas = imported.types || [];\n schemas.reverse();\n schemas.forEach(function (schema) {\n if (!protocol.types) {\n protocol.types = [];\n }\n // Ensure the imported protocol's namespace is inherited correctly (it\n // might be different from the current one).\n if (schema.namespace === undefined) {\n schema.namespace = protocolNamespace(imported) || '';\n }\n protocol.types.unshift(schema);\n });\n Object.keys(imported.messages || {}).forEach(function (name) {\n if (!protocol.messages) {\n protocol.messages = {};\n }\n if (protocol.messages[name]) {\n throw new Error(f('duplicate message: %s', name));\n }\n protocol.messages[name] = imported.messages[name];\n });\n }\n}", "async function importProducts(inputConfig, errorConfig) {\n const operation = await productClient.importProducts({\n parent: defaultCatalog,\n requestId: uuidV4(),\n inputConfig: inputConfig,\n errorsConfig: errorConfig\n });\n return operation[0];\n}", "importTournament() {\n if(!this.checkFields()) {\n Socket.send(\"integrations_challonge_import\", {\n knife_config: this.fields.knife_config.value,\n match_config: this.fields.main_config.value,\n max_games: parseInt(this.fields.match_type.value),\n game_mode: this.fields.game_mode.value,\n server: this.fields.server.value,\n tournament: this.fields.tournament.value,\n match_group: this.fields.match_group.value\n });\n\n this.fields.tournament.selectedIndex = 0;\n this.fields.server.selectedIndex = 0;\n this.fields.match_type.selectedIndex = 0;\n this.fields.game_mode.selectedIndex = 0;\n this.fields.knife_config.selectedIndex = 0;\n this.fields.main_config.selectedIndex = 0;\n this.fields.match_group.selectedIndex = 0;\n\n window.events.emit(\"notification\", {\n title: \"Challonge import started...\",\n color: \"primary\"\n });\n\n route('/');\n }\n }", "static fromDatabaseInstanceAttributes(scope, id, attrs) {\n class Import extends DatabaseInstanceBase {\n constructor() {\n super(...arguments);\n this.defaultPort = ec2.Port.tcp(attrs.port);\n this.connections = new ec2.Connections({\n securityGroups: attrs.securityGroups,\n defaultPort: this.defaultPort,\n });\n this.instanceIdentifier = attrs.instanceIdentifier;\n this.dbInstanceEndpointAddress = attrs.instanceEndpointAddress;\n this.dbInstanceEndpointPort = attrs.port.toString();\n this.instanceEndpoint = new endpoint_1.Endpoint(attrs.instanceEndpointAddress, attrs.port);\n this.engine = attrs.engine;\n this.enableIamAuthentication = true;\n }\n }\n return new Import(scope, id);\n }", "function importAccount () {\n var data = {\n passphrase: ''\n // TODO second passphrase\n // secondpassphrase: ''\n }\n\n function save () {\n if (!$scope.importAccountForm.$valid) {\n return\n }\n\n accountService.createAccount($scope.send.data.passphrase)\n .then(\n function (account) {\n // Check for already imported account\n for (var i = 0; i < self.accounts.length; i++) {\n if (self.accounts[i].address === account.address) {\n toastService.error(\n gettextCatalog.getString('Account was already imported: ') + account.address,\n null,\n true\n )\n return selectAccount(account)\n }\n }\n\n self.accounts.push(account)\n toastService.success(\n gettextCatalog.getString('Account successfully imported: ') + account.address,\n null,\n true\n )\n selectAccount(account)\n // TODO save passphrases after we have local encrytion\n },\n formatAndToastError\n )\n $mdDialog.hide()\n }\n\n function cancel () {\n $mdDialog.hide()\n }\n\n $scope.send = {\n data: data,\n cancel: cancel,\n save: save\n }\n\n $mdDialog.show({\n parent: angular.element(document.getElementById('app')),\n templateUrl: './src/accounts/view/importAccount.html',\n clickOutsideToClose: false,\n preserveScope: true,\n scope: $scope\n })\n }", "constructor(options) {;BaseClient.prototype.__init.call(this);BaseClient.prototype.__init2.call(this);BaseClient.prototype.__init3.call(this);BaseClient.prototype.__init4.call(this);\n this._options = options;\n if (options.dsn) {\n this._dsn = utils.makeDsn(options.dsn);\n const url = api.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn, options);\n this._transport = options.transport({\n recordDroppedEvent: this.recordDroppedEvent.bind(this),\n ...options.transportOptions,\n url,\n });\n } else {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('No DSN provided, client will not do anything.');\n }\n }", "static import(scope, id, props) {\n return new ImportedRole(scope, id, props);\n }", "async function createLoadBalancerWithInboundNatPool() {\n const subscriptionId = process.env[\"NETWORK_SUBSCRIPTION_ID\"] || \"subid\";\n const resourceGroupName = process.env[\"NETWORK_RESOURCE_GROUP\"] || \"rg1\";\n const loadBalancerName = \"lb\";\n const parameters = {\n backendAddressPools: [],\n frontendIPConfigurations: [\n {\n name: \"test\",\n id: \"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test\",\n privateIPAllocationMethod: \"Dynamic\",\n subnet: {\n id: \"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/lbvnet/subnets/lbsubnet\",\n },\n zones: [],\n },\n ],\n inboundNatPools: [\n {\n name: \"test\",\n backendPort: 8888,\n enableFloatingIP: true,\n enableTcpReset: true,\n frontendIPConfiguration: {\n id: \"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test\",\n },\n frontendPortRangeEnd: 8085,\n frontendPortRangeStart: 8080,\n id: \"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test\",\n idleTimeoutInMinutes: 10,\n protocol: \"Tcp\",\n },\n ],\n inboundNatRules: [],\n loadBalancingRules: [],\n location: \"eastus\",\n outboundRules: [],\n probes: [],\n sku: { name: \"Standard\" },\n };\n const credential = new DefaultAzureCredential();\n const client = new NetworkManagementClient(credential, subscriptionId);\n const result = await client.loadBalancers.beginCreateOrUpdateAndWait(\n resourceGroupName,\n loadBalancerName,\n parameters\n );\n console.log(result);\n}", "async function importFileCommand({ ttn, logger = console }) {\r\n\tlet { appID, appAccessKey } = ttn || {};\r\n\tconst answers = await prompt(questions);\r\n\tconst { path_to_template_file } = answers;\r\n\r\n\tconsole.log(__dirname);\r\n\tconsole.log(path_to_template_file, path.resolve(path_to_template_file));\r\n\r\n\tconst config = yaml.safeLoad(\r\n\t\t// fs.readFileSync('C:\\\\Users\\\\student\\\\Desktop\\\\ttn-cli\\\\src\\\\config\\\\parameter-file.yml', 'utf8')\r\n\t\tfs.readFileSync(path.resolve(path_to_template_file))\r\n\t);\r\n\r\n\tconst spinner = ora('Importing...').start();\r\n\ttry {\r\n\t\t/**\r\n \t\t * Format messages (parameters) before sending them from a file\r\n\t\t */\r\n\t\tconst keys = Object.keys(config);\r\n\r\n\t\tkeys.forEach(function(key) {\r\n\t\t\tlista_params = config[key];\r\n\t\t\tlet buffer = Buffer.alloc(0);\r\n\r\n\t\t\tlista_params.forEach(function(param) {\r\n\t\t\t\tconst id = param['paramID'];\r\n\t\t\t\tconst value = param['paramValue'];\r\n\t\t\t\tconst size = parameters[id]['size'];\r\n\r\n\t\t\t\tconst params = Buffer.alloc(1 + size);\r\n\t\t\t\tparams[0] = id;\r\n\t\t\t\tparams.writeIntLE(value, 1, size);\r\n\r\n\t\t\t\tbuffer = Buffer.concat([ buffer, params ]);\r\n\t\t\t});\r\n\r\n\t\t\tconsole.log('\\n', buffer);\r\n\r\n\t\t\tsend({ appID, appAccessKey, buffer }, key);\r\n\t\t});\r\n\t\tspinner.succeed('Successfully imported file');\r\n\t} catch (error) {\r\n\t\tspinner.fail('Failed importing...');\r\n\t\tlogger.error(error);\r\n\t\tconsole.error(error);\r\n\t}\r\n}", "import() {\n\t\tthis.msg.clear();\n\t\t//open a dialog asking the user to upload\n\t\t//must be named 'presentationConfig.pres'\n\t\t// .pres is just a rename of .zip\n\t\t// but must be 'presentationConfig' to match the directory name here\n\t\tdialog.showOpenDialog(\n\t\t\t{ filters: [ { name: 'presentationFlow', extensions: ['pres'] } ], properties:['openFile'] },\n\t\t\tthis.importChosenFiles.bind(this)\n\t\t);\n\n\t}", "static get(name, id, opts) {\n return new Endpoint(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));\n }", "function createClient({ headers }) {\n return new ApolloClient({\n cache: new InMemoryCache(),\n link: errorLink.concat(createUploadLink({ uri: `http://localhost:4000` })),\n uri: `http://localhost:4000`,\n request: operation => {\n operation.setContext({\n fetchOptions: {\n credentials: \"include\"\n },\n headers\n });\n }\n });\n}" ]
[ "0.48225453", "0.4765728", "0.47521713", "0.4705232", "0.46199226", "0.4579531", "0.4577182", "0.44900233", "0.44326177", "0.44282335", "0.44114634", "0.44019303", "0.43894327", "0.4327132", "0.427638", "0.42644092", "0.42630386", "0.42555544", "0.42428967", "0.42097768", "0.4188182", "0.4188182", "0.4188182", "0.41857135", "0.41857135", "0.41736144", "0.4146299", "0.4142457", "0.4132323", "0.41200042", "0.41182923", "0.41160712", "0.40884158", "0.40612394", "0.4029635", "0.40233666", "0.40207788", "0.40150392", "0.40125012", "0.40096307", "0.4000672", "0.39995623", "0.39960456", "0.3994119", "0.39925304", "0.39840785", "0.39837834", "0.39755866", "0.39692092", "0.39675024", "0.3962198", "0.39593458", "0.39576042", "0.39407635", "0.39350584", "0.39350584", "0.392822", "0.39262012", "0.39164287", "0.39112675", "0.38952142", "0.38937366", "0.38910797", "0.3858293", "0.38520184", "0.38468233", "0.38423032", "0.38403946", "0.3837146", "0.38341954", "0.3832648", "0.38271934", "0.3821579", "0.3820011", "0.38071078", "0.3806819", "0.38040987", "0.37956154", "0.37947252", "0.37887272", "0.37835792", "0.37745968", "0.3774278", "0.37726346", "0.37705195", "0.3769968", "0.37623653", "0.37602472", "0.375313", "0.37510896", "0.37504482", "0.37501162", "0.3747901", "0.37429598", "0.37407258", "0.3739899", "0.37328967", "0.37301496", "0.37265962", "0.37212005" ]
0.46052915
5
Adds an authorization rule to this endpoint.
addAuthorizationRule(id, props) { return new client_vpn_authorization_rule_1.ClientVpnAuthorizationRule(this, id, { ...props, clientVpnEndoint: this, }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function internal_initialiseAclRule(access) {\n let newRule = createThing();\n newRule = setIri(newRule, rdf.type, acl.Authorization);\n if (access.read) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.read);\n }\n if (access.append && !access.write) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.append);\n }\n if (access.write) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.write);\n }\n if (access.control) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.control);\n }\n return newRule;\n}", "function internal_initialiseAclRule(access) {\n let newRule = createThing();\n newRule = setIri(newRule, rdf.type, acl.Authorization);\n if (access.read) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.read);\n }\n if (access.append && !access.write) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.append);\n }\n if (access.write) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.write);\n }\n if (access.control) {\n newRule = addIri(newRule, acl.mode, internal_accessModeIriStrings.control);\n }\n return newRule;\n}", "add(rule) { \n this.rules[rule.type] = rule \n rule.parser = this\n }", "static _addAuthorization(url, options = {}) {\n const oAuthToken = this.getTokenFromLS();\n\n let bearer = \"Bearer \" + oAuthToken;\n\n // Append token to header. Create header if it does not exist\n if (options.headers === undefined) {\n options.headers = {};\n }\n options.headers[\"Authorization\"] = bearer;\n\n return this._fetchFromAPI(url, options);\n }", "addRule(rule) {\n if (!this.rules[rule.input]) this.rules[rule.input] = [];\n this.rules[rule.input].push(rule);\n }", "addToResourcePolicy(permission) {\n if (!this.policy && this.autoCreatePolicy) {\n this.policy = new bucket_policy_1.BucketPolicy(this, 'Policy', { bucket: this });\n }\n if (this.policy) {\n this.policy.document.addStatement(permission);\n }\n }", "function appendOwnerRule (url, aclString) {\n var currentUser = auth.currentUser()\n\n if (currentUser) {\n var string = '<#policy0> a <http://www.w3.org/ns/auth/acl#Authorization>;\\n' +\n '<http://www.w3.org/ns/auth/acl#accessTo> <' + url + '>;\\n' +\n '<http://www.w3.org/ns/auth/acl#agent> <' + currentUser + '>;\\n' +\n '<http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Control>, <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Write>.\\n\\n'\n return string + aclString\n } else {\n return ''\n }\n}", "function addPermissions (req, res, next) {\n const { acl, session } = req\n if (!acl) return next()\n\n // Turn permissions for the public and the user into a header\n const resource = utils.getFullUri(req)\n Promise.all([\n getPermissionsFor(acl, null, resource),\n getPermissionsFor(acl, session.userId, resource)\n ])\n .then(([publicPerms, userPerms]) => {\n debug.ACL(`Permissions on ${resource} for ${session.userId || '(none)'}: ${userPerms}`)\n debug.ACL(`Permissions on ${resource} for public: ${publicPerms}`)\n res.set('WAC-Allow', `user=\"${userPerms}\",public=\"${publicPerms}\"`)\n })\n .then(next, next)\n}", "addAuthorizeStep(step) {\r\n return this.addPipelineStep(\"authorize\" /* Authorize */, step);\r\n }", "addRule(_subject) {\n\t\tthis.rules.push(new Rule());\n\t\tthis.rules[this.rules.length-1].addSubject(_subject);\n\t}", "function authorize(req, res, next) {\n\tdebug('url: ' + req.originalUrl);\n\tdebug('method: ' + req.method);\n\tif (!req[configs.roleObjectKey].role) {\n\t\tif (!configs.defaultRole) {\n\t\t\tnext(new UnauthorizedError('No Role found'));\n\t\t\treturn;\n\t\t}\n\n\t\treq[configs.roleObjectKey].role = configs.defaultRole;\n\t}\n\n\tlet role = req[configs.roleObjectKey].role;\n\tlet url = req.originalUrl;\n\n\tlet rules = configs.rules[role];\n\tlet rule;\n\n\tif (rules) {\n\t\trule = findRule(rules, url, req.method);\n\t\tdebug(rule);\n\t}\n\n\tif (!rule) {\n\t\tlet message = 'No matching rule found for \\'' + role + '\\' on \\'' + url + '\\'';\n\t\tdebug(message);\n\t\tnext(new UnauthorizedError(message));\n\t\treturn;\n\t}\n\n\tnext();\n}", "function addRule (name, command) {\n if (!ninja_config.rules.hasOwnProperty(name)) {\n ninja_config.rules[name] = [];\n }\n\n ninja_config.rules[name] = ninja_config.rules[name].concat(command);\n}", "authorize(options) {\n logger.debug('Creating authorization endpoint middleware')\n return async (ctx, next) => {\n logger.debug('Running authorize endpoint middleware')\n const { request, response } = build(ctx)\n\n await this.server\n .authorize(request, response, options)\n .then(async code => {\n ctx.state.oauth.code = code\n handleResponse(ctx, response)\n if (next) await next()\n })\n .catch(err => {\n handleError(err, ctx)\n })\n }\n }", "function addRoleRule() {\n\t\t// показываем все правила если они есть\n\t\t$('#acl-rules tbody .rule-row').show();\n\t\t//сбрасывем селекторы\n\t\tdropRuleSelectors();\n\t\t//перемещяем селекторы в начало таблицы;\n\t\t$(\"#acl-rules tbody\").prepend($('#rule-selectors'));\n\t\tshowHide('#rule-selectors', 'show');\n\t\t//устанавливаем спрятанные поля\n\t\t$('#rule-id').val('');\n\t\t$('#save-type').val('add');\n\t}", "async addPolicies(sec, ptype, rules) {\n throw new Error('not implemented');\n }", "function createRuleValidator(path) {\n\t return function (req, res, next) {\n\n\t if (req.headers.authorization && req.headers.authorization.split(' ')[0] === 'Bearer') {\n\t var token = req.headers.authorization.split(' ')[1];\n\t return _jsonwebtoken2.default.verify(token, req.webtaskContext.data.EXTENSION_SECRET, {\n\t audience: (0, _urlJoin2.default)(req.webtaskContext.data.WT_URL, path),\n\t issuer: 'https://' + req.webtaskContext.data.AUTH0_DOMAIN\n\t }, function (err, decoded) {\n\t if (err) {\n\t return res.sendStatus(401);\n\t }\n\t return next();\n\t });\n\t }\n\n\t return res.sendStatus(401);\n\t };\n\t}", "async addOrgRules(id, token, data) {\n let response = await axios.patch(\n `${API_URL}/Organizations/${id}?${token}`,\n data\n );\n return response;\n }", "function registerPropertyRule(rule) {\n var propRules = Property$getRules(rule.property);\n propRules.push(rule);\n // Raise events if registered.\n var subscriptions = getEventSubscriptions(rule.property._events.ruleRegisteredEvent);\n if (subscriptions && subscriptions.length > 0) {\n rule.property._events.ruleRegisteredEvent.publish(rule.property, { rule: rule });\n }\n}", "disableRule(ruleId) {\n this.disabledRules.add(ruleId);\n }", "add(name, description, order, basePermissions) {\r\n const postBody = jsS({\r\n BasePermissions: {\r\n High: basePermissions.High.toString(),\r\n Low: basePermissions.Low.toString(),\r\n },\r\n Description: description,\r\n Name: name,\r\n Order: order,\r\n __metadata: { \"type\": \"SP.RoleDefinition\" },\r\n });\r\n return this.postCore({ body: postBody }).then((data) => {\r\n return {\r\n data: data,\r\n definition: this.getById(data.Id),\r\n };\r\n });\r\n }", "function addRule(name, discard) {\n var funcName = language.ruleFuncName(name, discard, false);\n rulesToGenerate.push({\n name: name,\n discard: discard,\n funcName: funcName\n });\n return funcName;\n }", "function addRule(name, callback)\n {\n if(name == null || typeof callback !== 'function')\n {\n throw new Error('Invalid arguments');\n }\n validations[name.toUpperCase()] = callback;\n }", "add(name, description, order, basePermissions) {\n return __awaiter(this, void 0, void 0, function* () {\n const postBody = body({\n BasePermissions: { \"High\": basePermissions.High.toString(), \"Low\": basePermissions.Low.toString() },\n Description: description,\n Name: name,\n Order: order,\n __metadata: { \"type\": \"SP.RoleDefinition\" },\n });\n const data = yield spPost(this, postBody);\n return {\n data: data,\n definition: this.getById(data.Id),\n };\n });\n }", "function checkAuthorization(req, res, next) {\n\t// if user is authenticated (logged-in)\n\tif (req.isAuthenticated()) {\n\t\t// find the poll to check for authorization as well\n\t\tPoll.findById(req.params.id, (err, foundPoll) => {\n\t\t\tif (err) {\n\t\t\t\tres.redirect('back');\n\t\t\t} else {\n\t\t\t\t// if current user is the one who added the poll\n\t\t\t\tif (foundPoll.user.id && foundPoll.user.id.equals(req.user._id)) {\n\t\t\t\t\tnext();\n\t\t\t\t} else {\n\t\t\t\t\tres.redirect('back');\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} else {\n\t\tres.redirect('back');\n\t}\n}", "function RuleAction(type) {\n this.addProperties({ actionType: type });\n}", "authorize(auth, callback) {\n var authorization;\n if (Array.isArray(auth)) {\n authorization = auth;\n }\n else if (auth instanceof authorization_1.default) {\n authorization = [auth];\n }\n else {\n authorization = [new authorization_1.default(auth)];\n }\n callback(new Registrar(this.__commands, this.__context, this.__authorization.concat(authorization)));\n return this;\n }", "function addRule(baseSelector, rule) {\n var prefix = baseSelector;\n var suffix = '';\n var sel = rule.selector.replace(/{([^?}]*)\\?([^}]*)}/g, function (_, a, b) {\n prefix = a + prefix;\n suffix += b;\n return '';\n });\n\n applyRule(rule, createRule(prefix + sel + suffix).style);\n}", "function AddRule(rule,callback){\n\n //Check if user exists\n FindUser(rule.id, function(result) {\n if (result == \"\") {\n res.send(\"405 access denied\")\n return;\n }\n\n //Check if rule exists for this cube\n FindRule(rule.id,rule.cube,rule.smartSensor,rule.sensorLoc,function(ruleResult){\n\n //Check if requested cube exist\n if(PhysikitCubeExist(rule.cube)){\n\n //Check if request sensor exists\n if(SmartCitizenSensorExist(rule.smartSensor)){\n\n //Add new rule or replace if exist\n ruleResult == undefined ? db.Add(\"rules\",rule):db.Replace(\"rules\",rule,\"_id\",ruleResult._id);\n\n //send update event of new rule\n io.to(rule.id).emit('newRule',rule);\n\n //Run the new rule\n RunRule(rule);\n\n debug.dataLog(\"Rule Engine\",\"Added\",JSON.stringify(rule));\n\n //Callback\n var data = {};\n data.code = 200;\n data.result = 'rule added';\n data.rule = rule;\n if(callback != undefined) callback(data);\n }\n //Error -> sensor type does not exist\n else{\n var data = {};\n data.code = 400;\n data.error = 'requested sensor type ' + rule.smartSensor + ' not found';\n data.rule = rule;\n if(callback != undefined) callback(data);\n }\n\n }\n //Error -> cube type does not exist\n else{\n var data = {};\n data.code = 400;\n data.error = 'requested cube type ' + rule.cube + ' not found';\n data.rule = rule;\n if(callback != undefined) callback(data);\n }\n });\n });\n}", "static ensureAuthorized(request, response, next) {\n let bearerToken;\n const bearerHeader = request.headers.authorization || request.query.authorization;\n if (typeof bearerHeader !== 'undefined') {\n const bearer = bearerHeader.split(' ');\n bearerToken = bearer[1];\n request.token = bearerToken;\n next();\n } else {\n const error = new UndefinedTokenError(ErrorCode.NOT_ALLOWED.msg.noBearer);\n Http.sendResponse(response, 403, ErrorCode.NOT_ALLOWED.code, error);\n }\n }", "function _define(ruleId, ruleModule) {\n _rules[ruleId] = ruleModule;\n }", "function addUserAuthorizationHeader(httpConfig) {\n httpConfig.headers = angular.extend(httpConfig.headers || {},{\n 'Authorization': function () {\n return userAuthorizationHeader;\n }\n });\n return httpConfig;\n }", "function Authorize(target, propertyName, descriptor) {\n var method = descriptor.value;\n descriptor.value = function () {\n var session = this;\n if (!session.isAuthenticated)\n throw new Error(\"This action requires authentication.\");\n return method.apply(session, arguments);\n };\n}", "addToDeploymentRolePolicy(statement) {\n return this.getDeploymentRole('method addToRolePolicy()').addToPolicy(statement);\n }", "function addStyle(rule)\r\n\t{\r\n\t\tif (!style)\r\n\t\t{\r\n\t\t\tstyle = document.createElement('style');\r\n\t\t\tstyle.setAttribute('type', 'text/css')\r\n\t\t\tstyle.setAttribute('id', 'style');\r\n\t\t\t\r\n\t\t\tvar head = document.head || document.getElementsByTagName('head')[0];\r\n\t\t\thead.appendChild(style);\r\n\t\t}\r\n\t\t\r\n\t\tstyle.appendChild(document.createTextNode(rule + \"\\n\"));\r\n\t}", "async addRules (add) {\n if (!Array.isArray(add)) {\n add = [ add ]\n }\n\n const result = await needle('post', 'https://' + this.TWT_API_HOST + '/2/tweets/search/stream/rules', {\n add\n }, {\n headers: {\n \"content-type\": \"application/json\",\n Authorization: `Bearer ${this.BEARER}`\n }\n })\n if (result.body.data) {\n this.rules = this.rules.concat(result.body.data)\n return result.body.data\n }\n return []\n }", "addLifecycleRule(rule) {\n if ((rule.noncurrentVersionExpirationInDays !== undefined\n || (rule.noncurrentVersionTransitions && rule.noncurrentVersionTransitions.length > 0))\n && !this.versioned) {\n throw new Error(\"Cannot use 'noncurrent' rules on a nonversioned bucket\");\n }\n this.lifecycleRules.push(rule);\n }", "async function addRedirect(inputs, {namespace, apihost}) {\n const redirectRules = []\n\n if (deployWeb) {\n redirectRules.push(`/* https://${namespace}-${apihost}/:splat 200!`)\n } else if (inputs.path) {\n const redirectPath = inputs.path.endsWith('/')\n ? inputs.path\n : inputs.path + '/'\n const pkg = isProject ? '' : 'default/'\n redirectRules.push(\n `${redirectPath}* https://${apihost}/api/v1/web/${namespace}/${pkg}:splat 200!`\n )\n }\n\n return redirectRules\n}", "handleOnAuthorizationPress() {\n Router.push('authorization');\n }", "function internal_duplicateAclRule(sourceRule) {\n let targetRule = createThing();\n targetRule = setIri(targetRule, rdf.type, acl.Authorization);\n function copyIris(inputRule, outputRule, predicate) {\n return getIriAll(inputRule, predicate).reduce((outputRule, iriTarget) => addIri(outputRule, predicate, iriTarget), outputRule);\n }\n targetRule = copyIris(sourceRule, targetRule, acl.accessTo);\n targetRule = copyIris(sourceRule, targetRule, acl.default);\n targetRule = copyIris(sourceRule, targetRule, acl.defaultForNew);\n targetRule = copyIris(sourceRule, targetRule, acl.agent);\n targetRule = copyIris(sourceRule, targetRule, acl.agentGroup);\n targetRule = copyIris(sourceRule, targetRule, acl.agentClass);\n targetRule = copyIris(sourceRule, targetRule, acl.origin);\n targetRule = copyIris(sourceRule, targetRule, acl.mode);\n return targetRule;\n}", "function setAuthorization(){\n let username = '';\n let password = '';\n let authorization = Utilities.base64Encode(username + ':' + password);\n let userProperties = PropertiesService.getUserProperties();\n userProperties.setProperty('CAPWATCH_AUTHORIZATION', authorization);\n}", "addToPrincipalPolicy(statement) {\n try {\n jsiiDeprecationWarnings.aws_cdk_lib_aws_iam_PolicyStatement(statement);\n }\n catch (error) {\n if (process.env.JSII_DEBUG !== \"1\" && error.name === \"DeprecationError\") {\n Error.captureStackTrace(error, this.addToPrincipalPolicy);\n }\n throw error;\n }\n if (this.role) {\n return this.role.addToPrincipalPolicy(statement);\n }\n else {\n this.statements.push(statement);\n return { statementAdded: true, policyDependable: this };\n }\n }", "function authorizationLink(req) {\n var returning = req && req.session && req.session.profiles;\n\n return function(service, name) {\n if (returning && req.session.profiles[service] !== undefined) {\n return '<span class=\"check\">&#10003;</span> ' + name;\n }\n\n var options = {\n client_id: clientId,\n redirect_uri: callbackUrl\n };\n\n // set account to the user's Singly id for profile merging\n // see https://singly.com/docs/authorization\n if (returning && req.session.profiles.id) {\n options.access_token = req.session.accessToken;\n }\n else {\n options.account = 'false';\n }\n\n var url = singly.getAuthenticateURL(service, options);\n return sprintf('<a href=\"%s\">%s</a>', url, name);\n };\n }", "constructor(scope, id, props) {\n super(scope, id, { type: CfnRule.CFN_RESOURCE_TYPE_NAME, properties: props });\n try {\n jsiiDeprecationWarnings.aws_cdk_lib_aws_connect_CfnRuleProps(props);\n }\n catch (error) {\n if (process.env.JSII_DEBUG !== \"1\" && error.name === \"DeprecationError\") {\n Error.captureStackTrace(error, CfnRule);\n }\n throw error;\n }\n cdk.requireProperty(props, 'actions', this);\n cdk.requireProperty(props, 'function', this);\n cdk.requireProperty(props, 'instanceArn', this);\n cdk.requireProperty(props, 'name', this);\n cdk.requireProperty(props, 'publishStatus', this);\n cdk.requireProperty(props, 'triggerEventSource', this);\n this.attrRuleArn = cdk.Token.asString(this.getAtt('RuleArn', cdk.ResolutionTypeHint.STRING));\n this.actions = props.actions;\n this.function = props.function;\n this.instanceArn = props.instanceArn;\n this.name = props.name;\n this.publishStatus = props.publishStatus;\n this.triggerEventSource = props.triggerEventSource;\n this.tags = new cdk.TagManager(cdk.TagType.STANDARD, \"AWS::Connect::Rule\", props.tags, { tagPropertyName: 'tags' });\n }", "function internal_duplicateAclRule(sourceRule) {\n let targetRule = createThing();\n targetRule = setIri(targetRule, rdf.type, acl.Authorization);\n function copyIris(inputRule, outputRule, predicate) {\n return getIriAll(inputRule, predicate).reduce((outputRule, iriTarget) => addIri(outputRule, predicate, iriTarget), outputRule);\n }\n targetRule = copyIris(sourceRule, targetRule, acl.accessTo);\n targetRule = copyIris(sourceRule, targetRule, acl.default);\n targetRule = copyIris(sourceRule, targetRule, acl.defaultForNew);\n targetRule = copyIris(sourceRule, targetRule, acl.agent);\n targetRule = copyIris(sourceRule, targetRule, acl.agentGroup);\n targetRule = copyIris(sourceRule, targetRule, acl.agentClass);\n targetRule = copyIris(sourceRule, targetRule, acl.origin);\n targetRule = copyIris(sourceRule, targetRule, acl.mode);\n return targetRule;\n}", "function setACL(uri, aclURI, webid, ws, dom) {\n if (dom) {\n var d = document.querySelector(\"webid-signup\");\n d.$.profilestatus.querySelector('#acl'+ws).hidden = false;\n }\n\n var g = new $rdf.graph();\n\n // Owner ACLs\n g.add($rdf.sym(\"#owner\"), RDF(\"type\"), WAC('Authorization'));\n g.add($rdf.sym(\"#owner\"), WAC(\"accessTo\"), $rdf.sym(uri));\n g.add($rdf.sym(\"#owner\"), WAC(\"accessTo\"), $rdf.sym(aclURI));\n g.add($rdf.sym(\"#owner\"), WAC(\"agent\"), $rdf.sym(webid));\n g.add($rdf.sym(\"#owner\"), WAC(\"defaultForNew\"), $rdf.sym(uri));\n g.add($rdf.sym(\"#owner\"), WAC(\"mode\"), WAC('Read'));\n g.add($rdf.sym(\"#owner\"), WAC(\"mode\"), WAC('Write'));\n g.add($rdf.sym(\"#owner\"), WAC(\"mode\"), WAC('Control'));\n\n if (ws == 'Public') {\n g.add($rdf.sym(\"#\"+ws), RDF(\"type\"), WAC('Authorization'));\n g.add($rdf.sym(\"#\"+ws), WAC(\"accessTo\"), $rdf.sym(uri));\n g.add($rdf.sym(\"#\"+ws), WAC(\"agentClass\"), FOAF(\"Agent\"));\n g.add($rdf.sym(\"#\"+ws), WAC(\"defaultForNew\"), $rdf.sym(uri));\n g.add($rdf.sym(\"#\"+ws), WAC(\"mode\"), WAC('Read'));\n g.add($rdf.sym(\"#\"+ws), WAC(\"mode\"), WAC('Write'));\n }\n var s = new $rdf.Serializer(g).toN3(g);\n\n var xhr = new XMLHttpRequest();\n xhr.open(\"PUT\", aclURI, true);\n xhr.setRequestHeader(\"Content-Type\", \"text/turtle\");\n xhr.withCredentials = true;\n xhr.send(s);\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState == xhr.DONE) {\n if (xhr.status == 200 || xhr.status == 201) {\n if (dom) {\n d.$.profilestatus.querySelector('#acldone'+ws).hidden = false;\n window.scrollTo(0,document.body.scrollHeight);\n }\n } else {\n console.log(\"Could not write ACL \"+aclURI+\" | HTTP status: \"+xhr.status);\n }\n }\n };\n}", "insertRule(){\n \n\n\t switch(this.methodToCall){\n\t \n\t case \"End\" :\n\t this.addRuleToEndFunction();\n this.state.isToShowAddRuleDialog=false;\n\t break;\n\t case \"Begining\":\n\t this.addRuleToBeginingFunction();\n this.state.isToShowAddRuleDialog=false;\n\t break;\n\t case \"After\":\n\t \n\t if(this.indexToInsert >=0){\n\t \n\t this.addRuleAfterSomeRuleFunction(this.indexToInsert);\n this.indexToInsert = -1;\n this.state.isToShowAddRuleDialog=false;\n\t }\n\t break;\n\t case \"Before\":\n\t \n\t if(this.indexToInsert >=0){\n\t \n\t this.addRuleBeforeSomeRuleFunction(this.indexToInsert);\n this.indexToInsert = -1;\n this.state.isToShowAddRuleDialog=false;\n\t }\n\t break;\t \n\n\n\t }//switch\n \n \n\t}", "addRules(name, rules) {\n // Find the rule\n let rule = this._rules[name];\n\n // Check if the rule exits\n if( rule === undefined )\n return false;\n\n //\n if( !isArray(rule) ) {\n // Set the rule\n this._rules[name] = rules[0];\n\n // Return!\n return true;\n }\n\n // Push all the rules\n for( let i = 0; i < rules.length; i++ )\n rule.push(rules[i]);\n\n // Return!\n return true;\n }", "addStrategy(collectionStrategy: Function, matcher: (items: any) => boolean) {\n this.strategies.push(collectionStrategy);\n this.matchers.push(matcher);\n }", "function registerRules() {\n var redirectRule = {\n priority: 100,\n conditions: [\n // If any of these conditions is fulfilled, the actions are executed.\n new RequestMatcher({\n // Both, the url and the resourceType must match.\n url: { pathSuffix: \".jpg\" },\n resourceType: [\"image\"],\n }),\n new RequestMatcher({\n url: { pathSuffix: \".jpeg\" },\n resourceType: [\"image\"],\n }),\n ],\n actions: [new RedirectRequest({ redirectUrl: catImageUrl })],\n };\n\n var exceptionRule = {\n priority: 1000,\n conditions: [\n // We use hostContains to compensate for various top-level domains.\n new RequestMatcher({ url: { hostContains: \".google.\" } }),\n ],\n actions: [new IgnoreRules({ lowerPriorityThan: 1000 })],\n };\n\n var callback = function () {\n if (chrome.runtime.lastError) {\n console.error(\"Error adding rules: \" + chrome.runtime.lastError);\n } else {\n console.info(\"Rules successfully installed\");\n chrome.declarativeWebRequest.onRequest.getRules(null, function (rules) {\n console.info(\n \"Now the following rules are registered: \" +\n JSON.stringify(rules, null, 2)\n );\n });\n }\n };\n\n chrome.declarativeWebRequest.onRequest.addRules(\n [redirectRule, exceptionRule],\n callback\n );\n}", "parseAuthorization(){\n\t\tthis.app.use(\n\t\t\t(req, res, next) => {\n\t\t\t\tconst b64Auth = req.get('Authorization');\n\t\t\t\tif(typeof b64Auth == 'string'){\n\t\t\t\t\tlet {user: userID, pass: plainword, authToken} = this.decipherCredentials(b64Auth);\n\t\t\t\t\tthis.log.debug(`Authorization: user=${userID}, pass=${plainword}, authToken=${authToken}, b64Auth=${b64Auth}`);\n\t\t\t\t\treq.parsedParams = {\n\t\t\t\t\t\t...req.parsedParams,\n\t\t\t\t\t\tplainword,\n\t\t\t\t\t\tauthToken,\n\t\t\t\t\t\tuserID\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tnext();\n\t\t\t}\n\t\t);\n\t}", "function _addHandlerForRule(_ruleID, _handlerFn) {\n _ruleHandlersList[_ruleID] = _handlerFn;\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n }", "addRule(rule, marker) {\n this.__Markers[marker] ? this.__Markers[marker] += `|${rule}` : this.__Markers[marker] = rule;\n if(!this.__Answers[marker]) this.__Answers[marker] = Array();\n }", "async function createNetworkSecurityGroupWithRule() {\n const credential = new DefaultAzureCredential();\n const client = createNetworkManagementClient(credential);\n const subscriptionId = \"\";\n const resourceGroupName = \"rg1\";\n const networkSecurityGroupName = \"testnsg\";\n const options = {\n body: {\n location: \"eastus\",\n properties: {\n securityRules: [\n {\n name: \"rule1\",\n properties: {\n access: \"Allow\",\n destinationAddressPrefix: \"*\",\n destinationPortRange: \"80\",\n direction: \"Inbound\",\n priority: 130,\n sourceAddressPrefix: \"*\",\n sourcePortRange: \"*\",\n protocol: \"*\",\n },\n },\n ],\n },\n },\n queryParameters: { \"api-version\": \"2022-05-01\" },\n };\n const initialResponse = await client\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}\",\n subscriptionId,\n resourceGroupName,\n networkSecurityGroupName\n )\n .put(options);\n const poller = getLongRunningPoller(client, initialResponse);\n const result = await poller.pollUntilDone();\n console.log(result);\n}", "constructor(scope, id, props) {\n super(scope, id, { type: CfnWebACL.CFN_RESOURCE_TYPE_NAME, properties: props });\n try {\n jsiiDeprecationWarnings.aws_cdk_lib_aws_wafv2_CfnWebACLProps(props);\n }\n catch (error) {\n if (process.env.JSII_DEBUG !== \"1\" && error.name === \"DeprecationError\") {\n Error.captureStackTrace(error, CfnWebACL);\n }\n throw error;\n }\n cdk.requireProperty(props, 'defaultAction', this);\n cdk.requireProperty(props, 'scope', this);\n cdk.requireProperty(props, 'visibilityConfig', this);\n this.attrArn = cdk.Token.asString(this.getAtt('Arn', cdk.ResolutionTypeHint.STRING));\n this.attrCapacity = cdk.Token.asNumber(this.getAtt('Capacity', cdk.ResolutionTypeHint.NUMBER));\n this.attrId = cdk.Token.asString(this.getAtt('Id', cdk.ResolutionTypeHint.STRING));\n this.attrLabelNamespace = cdk.Token.asString(this.getAtt('LabelNamespace', cdk.ResolutionTypeHint.STRING));\n this.defaultAction = props.defaultAction;\n this.scope = props.scope;\n this.visibilityConfig = props.visibilityConfig;\n this.captchaConfig = props.captchaConfig;\n this.challengeConfig = props.challengeConfig;\n this.customResponseBodies = props.customResponseBodies;\n this.description = props.description;\n this.name = props.name;\n this.rules = props.rules;\n this.tags = new cdk.TagManager(cdk.TagType.STANDARD, \"AWS::WAFv2::WebACL\", props.tags, { tagPropertyName: 'tags' });\n this.tokenDomains = props.tokenDomains;\n }", "function addCSS(rule) {\r\n\tvar styleElement = document.createElement(\"style\");\r\n\tstyleElement.type = \"text/css\";\r\n\tif (typeof styleElement.styleSheet !== 'undefined')\r\n\t\tstyleElement.styleSheet.cssText = rule;\r\n\telse\r\n\t\tstyleElement.appendChild(document.createTextNode(rule));\r\n\tdocument.getElementsByTagName(\"head\")[0].appendChild(styleElement);\r\n\t}", "function createOpaMiddleware(opaAgentUri) {\n const client = axios.create({\n baseURL: opaAgentUri,\n })\n\n return (action, object) => {\n // this will be run per request\n return async (request, response, next) => {\n try {\n // extract request's information from JWT token\n const token = request.headers.authorization\n\n if (!token) {\n throw new Error(\"No authorization header\")\n }\n\n const decodedToken = jwt.decode(token)\n\n // query OPA api server\n const response = await client.post(\n '/v1/data/permission/allow',\n {\n input: {\n subject: decodedToken,\n action,\n object,\n }\n },\n )\n\n // OPA api server query's result\n const allow = response.data?.result\n if (!allow) {\n throw new Error(\"Unauthorized\")\n }\n\n // authorized\n await next()\n } catch (err) {\n // unauthorized\n response.status(403).send(err.message)\n }\n\n }\n }\n}", "function appendToAuthorizationList(allAuthorizations, authorizationsToAdd) {\n if (!utils.isValueNullOrUndefined(authorizationsToAdd)) {\n if (Array.isArray(authorizationsToAdd)) {\n for (var i = 0; i < authorizationsToAdd.length; i++) {\n var authorization = authorizationsToAdd[i];\n if (allAuthorizations.indexOf(authorization) < 0) {\n allAuthorizations.push(authorization);\n }\n }\n } else if (allAuthorizations.indexOf(authorizationsToAdd) < 0) {\n allAuthorizations.push(authorizationsToAdd);\n }\n }\n }", "function addNewRule(URL) {\n // var first = (new Date()).getTime();\n $.ajax({\n url: URL,\n type: 'PUT',\n success: function() {\n // console.log(\"Milliseconds for request: \" + ((new Date()).getTime() - first));\n updateLog(\"Add\", URL);\n resetDropdownSelections();\n return getFirewallData();\n },\n error: function() {\n return addRuleErrorMsg();\n }\n });\n}", "function authorize(req, res, next) {\n if(!req.header('authorization')) {\n return res.status(401).json({\n status: 401,\n message: 'Unauthorized. Missing Auth Header'\n })\n } else {\n let token = jwt.verify(req.headers['authorization'], jwtkey);\n if(!token) {\n return res.status(401).json({\n status: 401,\n message: 'Unauthorized. Auth Header Invalid'\n })\n } else {\n req.userId = token.sub;\n next();\n }\n }\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "function linkRule(rule, cssRule) {\n rule.renderable = cssRule;\n if (rule.rules && cssRule.cssRules) rule.rules.link(cssRule.cssRules);\n}", "async strategyRequired(ctx, next) {\n const { service: { mysql } } = ctx;\n const user = ctx.user;\n const strategyId = ctx.request.body.strategyId;\n if (!strategyId) {\n ctx.body = { ok: false, message: '必须填写规则 ID!' };\n return;\n }\n const strategy = await mysql.getStrategyById(strategyId);\n if (!strategy) {\n ctx.body = { ok: false, message: '规则不存在!' };\n return;\n }\n const auth = await checkUserAppAuth(mysql, user, strategy.app_id);\n if (auth) {\n await next();\n } else {\n ctx.body = { ok: false, message: '用户没有操作此告警规则的权限!' };\n }\n }", "function callAuthorizationApi(body) {\n let xhr = new XMLHttpRequest();\n xhr.open(\"POST\", TOKEN, true);\n xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\n xhr.setRequestHeader('Authorization', 'Basic ' + btoa(clientId + \":\" + clientSec));\n xhr.send(body);\n xhr.onload = handleAuthorizationResponse;\n}", "function addCSS(rule) {\n\tvar styleElement = document.createElement(\"style\");\n\tstyleElement.type = \"text/css\";\n\tif (typeof styleElement.styleSheet !== 'undefined')\n\t\tstyleElement.styleSheet.cssText = rule;\n\telse\n\t\tstyleElement.appendChild(document.createTextNode(rule));\n\tdocument.getElementsByTagName(\"head\")[0].appendChild(styleElement);\n\t}", "authorize() {\n window.location.href = process.env.VUE_APP_AUTHORIZATION_API;\n }", "function appendPermissions (aclString, rules) {\n var agentPermissions = encodeModes(rules)\n for (var j = 0; j < agentPermissions.length - 1; j++) {\n var permission = agentPermissions[j]\n aclString += '<' + permission + '>,'\n }\n aclString += '<' + agentPermissions[agentPermissions.length - 1] + '>.\\n\\n'\n\n return aclString\n}", "auth(ctx, doc) {\n winston.warn(\n `${this.constructor.name} does not implement auth, disallowing.`\n );\n throw new Resource.ForbiddenError();\n }", "function useHeaders() {\n this.ruleID = 'useHeaders';\n}" ]
[ "0.53518724", "0.530408", "0.5295703", "0.5171888", "0.4973788", "0.4855524", "0.46431932", "0.45918423", "0.4578135", "0.45691445", "0.45688903", "0.45602107", "0.44586676", "0.44305253", "0.4387325", "0.4367352", "0.4365117", "0.43496346", "0.4349448", "0.433964", "0.4336289", "0.4330444", "0.43103355", "0.4293646", "0.42429554", "0.42244804", "0.42239657", "0.42204925", "0.42147738", "0.4210389", "0.42098442", "0.4186598", "0.41794133", "0.41492477", "0.41431862", "0.41381976", "0.41331196", "0.41260615", "0.41195178", "0.41139767", "0.40992495", "0.40945858", "0.40842283", "0.40818018", "0.40737772", "0.40710342", "0.40669394", "0.40629947", "0.40555176", "0.40483662", "0.40471247", "0.40428248", "0.40385634", "0.40361327", "0.40230814", "0.40075356", "0.40056488", "0.40030587", "0.40013152", "0.3996687", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39955524", "0.39952096", "0.39947736", "0.3988827", "0.39884543", "0.3978519", "0.39748895", "0.39582" ]
0.6404505
0
Adds a route to this endpoint.
addRoute(id, props) { return new client_vpn_route_1.ClientVpnRoute(this, id, { ...props, clientVpnEndoint: this, }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addRoute(route, fn) {\n this.routes.push({\n params: this._getParams(route),\n pattern: this._getPattern(route),\n route,\n fn\n })\n }", "addRoute(method, route, ...handlers) {\n this.routes.add({\n method,\n route,\n handlers\n });\n }", "addRoute(route, callback) {\n this.routes[route] = callback;\n }", "addRoute(route) {\n this.mapRoutes.push(new MapRoute(route));\n }", "function addCustomRoute(route) {\n customRoutes.push(route);\n}", "addRoute(route, controller) {\n this.routes[route] = controller;\n }", "setupRoute(route) {\n this.mapRoutes.push(new MapRoute(route));\n }", "function addRoute(app, nodecg, bundleName, pageName, graphicName, validationTemplate){\n let handlerReqRes = createHandlerReqRes(nodecg, bundleName, pageName, graphicName, validationTemplate)\n\n let route = getRouteName(bundleName, graphicName)\n console.log(`Add the route ${route}`)\n\tapp.post(route, handlerReqRes)\n}", "addRoute(router, method, route, middlewares) {\n if (this.serverModule.options.deaf) return;\n\n let generators = [];\n\n _.forOwn(middlewares, (options, name) => {\n let middleware = this.getMiddleware(name);\n\n if (typeof middleware !== 'function') {\n throw new Error.ServerError('Unregistered middleware: ' + name);\n }\n\n generators.push(middleware(options, this));\n\n this.log('verbose', `Middleware \"${name}\" is attached at \"${method}:${this.route}${route}\".`);\n });\n\n router[method](route, ...generators);\n\n this.log('verbose', `Route \"${method}:${this.route}${route}\" is added from module [${this.name}].`);\n }", "function add_route(r_name, path, params1) {\n dr[r_name] = {path: path, params: params1};\n\n // create new custom function for an added route with saved and optional additional parameters\n this[r_name] = function(params2) {\n const data = {};\n params1.forEach(param => data[param] = db[path][param]);\n params2.forEach(param => data[param] = db[path][param]);\n return data\n }\n return this\n }", "function addRoute(routeName, channel, func){\n routes[channel] = func;\n routeList[routeName] = channel;\n subscribe(channel);\n}", "function addRoute(el, parent) {\n\t validate(el);\n\n\t var type = el.type;\n\t var attributes = el.attributes;\n\t var children = el.children;\n\t var component = attributes.component;\n\n\n\t if (type.name == 'Redirect') {\n\t var path = (0, _normalizePath2.default)(join(attributes.from, parent));\n\t var to = (0, _normalizePath2.default)(join(attributes.to, parent));\n\t routes[path] = renderRediect(to);\n\t } else {\n\t var _path = (0, _normalizePath2.default)(join(attributes.path, parent));\n\t var _render = renderRoute(attributes, parent);\n\t if (children) addRoutes(children, { render: _render, path: _path });\n\t routes[_path] = _render;\n\t }\n\t }", "onRoute (info) {\n openApi.addRoute(info, {\n basePath: env.REST_API_PREFIX\n })\n }", "function add_route(path, handler, verb) {\n\tverb = verb || 'get';\n\tthis.server[verb].call(this.server, path, this.create_route(handler));\n}", "route(where, service) {\n logger.info(\"going to add service at: \" + where);\n this.app.use(where, service.add(this.app));\n }", "function addRoutes(startloc, endloc, mapOpt, map, lineColor, routes){\t\t\n\tvar start= findId(startloc);\n\tvar end = findId(endloc);\n\n\t//GoogleMaps.ready(mapOpt,function(map){\n\t\t\tvar theRoute = [\n\t\t\t\tnew google.maps.LatLng(start.x,start.y),\n\t\t\t\tnew google.maps.LatLng(end.x,end.y),\n\t\t\t];\n\t\t\t// var contentString = \"<b>\" + start + \"</b> to <b>\" + end+\"</b>: \"+description+\"<br>\";\n\n\t\t\tvar drawr = new google.maps.Polyline({\n\t\t\t\tpath:theRoute,\n\t\t\t\tgeodesic:true,\n\t\t\t\tstrokeColor: lineColor,\n\t\t\t strokeOpacity: 1.0,\n\t\t\t strokeWeight: 4,\n\t\t\t map: map.instance\n\t\t\t});\n\t\t\troutes.push(drawr);\n\t//})\n\n}", "addRoute(points) {\n L.polyline([points], { color: \"rgba(15, 81, 89,0.7)\" }).addTo(this.map);\n }", "addPostRoute(route, ...handlers) {\n this.addRoute('post', route, ...handlers);\n }", "function addRoutes(api) {\n //api.post('/api/v2/outbound/:name', postItem);\n}", "route(path, ...actions) {\n this.routes.push(new Route(path, actions));\n return this;\n }", "function addRoute(parent, child) {\n \n var childRoute = parent.addChild(child.path);\n\n for (var i = 0; i < child.actions.length; i++) {\n var action = child.actions[i];\n childRoute.addAction(action.verb, action.handlers);\n }\n\n for (i = 0; i < child.children.length; i++) {\n addRoute(childRoute, child.children[i]);\n }\n \n return childRoute;\n }", "registerRoute (r) {\n\t\t// Register multiple as an array\n\t\tif (Array.isArray(r)) {\n\t\t\treturn r.map(this.registerRoute.bind(this));\n\t\t}\n\n\t\t// Create route object\n\t\tvar route = new Route(r);\n\t\tthis[_routes].push(route);\n\n\t\t// Plugin hook\n\t\tthis.emit('registerRoute', route);\n\n\t\t// Request handler method\n\t\tvar handleRequest = function handleRequest (req, res, next) {\n\t\t\t// Check for hostname match\n\t\t\tif (req.headers && route.hostname && req.headers.host !== route.hostname) {\n\t\t\t\treturn next();\n\t\t\t}\n\n\t\t\t// Matched a route, handle request\n\t\t\troute.handle(req, res, next);\n\t\t};\n\n\t\t// Register route handlers for each supported method\n\t\troute.methods.forEach((method) => {\n\t\t\tthis.router[method](route.path, handleRequest);\n\t\t});\n\n\t\treturn route;\n\t}", "addRoute(name, path) {\n let self = this;\n this.subjects[name] = new Rx.Subject();\n this.routes[path] = function() {\n let params = parseParams(path, getPath(window.location.href));\n self.emit(name, params);\n }\n return this;\n }", "function addRouteFactory(router, method, end) {\n return (pattern, ...middlewares) => {\n if (typeof pattern === 'function') {\n middlewares = [pattern, ...middlewares];\n pattern = '/';\n }\n\n // create a route with multiple middlewares\n const route = compose(middlewares, { beforeRunMiddleware: (middleware, req, resp) => {\n const len = req.routePath ? req.routePath.length : 0;\n if (req.url.slice(0, len) !== req.routePath) return false;// url changed\n return true;\n } });\n route.method = method;\n\n const keys = [];\n const re = ptre(pattern, keys, { end, strict: false, sensitive: false });\n route.re = re;// used to test the remain of req.url\n route.keys = keys;\n\n router.routes.push(route);\n\n return router;\n };\n}", "function createNewRoute(location, route){\n\tvar control = L.Routing.control({\n\t waypoints: [\n\t L.latLng(location.lat, location.long),\n\t L.latLng(route.lat, route.long)\n\t ],\n\t router: L.Routing.graphHopper('2f1f160d-40d5-4c50-9625-40c20317d3b4'),\n\t \n\t lineOptions: {\n\t styles: [{color: '#2980b9', opacity: 1, weight: 5}]\n\t }\n\t})\n\t.on('routesfound', function(e) {\n\t \tvar formatter = new L.Routing.Formatter();\n\n \tuserInformation.totalTime = formatter.formatTime(e.routes[0].summary.totalTime);\n \tuserInformation.totalDistance = formatter.formatDistance(e.routes[0].summary.totalDistance);\n \tuserInformation.instructions = e.routes[0].instructions;\n \t\n \tdisplayUserInformationToDom();\n\t}).addTo(map);\n}", "function addRoute(coords, type, name, avg) {\n switch(type) {\n case 'low':\n colour = \"#03AA46\";\n break;\n case 'moderate':\n colour = \"#FFA500\";\n break;\n case 'high':\n colour = \"#FF0000\";\n break;\n case 'path':\n colour = \"#808080\";\n break;\n default:\n colour = \"#03AA46\";\n }\n\n map.addLayer({\n \"id\": String(name),\n \"type\": \"line\",\n \"source\": {\n \"type\": \"geojson\",\n \"data\": {\n \"type\": \"Feature\",\n \"properties\": { \"avg\": avg },\n \"geometry\": coords\n }\n },\n \"layout\": {\n \"line-join\": \"round\",\n \"line-cap\": \"round\"\n },\n \"paint\": {\n \"line-color\": colour,\n \"line-width\": 6,\n \"line-opacity\": 0.8\n }\n });\n}", "addPutRoute(route, ...handlers) {\n this.addRoute('put', route, ...handlers);\n }", "addRoutes (array) {\n array.forEach(route => {\n this.addRoute(route)\n })\n }", "constructor (route) {\n super(route);\n }", "function Route(options) {\n /**\n * Internal ID.\n *\n * @type {String}\n */\n this.id = options.id;\n\n /**\n * ID of the agency that manages this line.\n *\n * @type {String}\n */\n this.agencyId = options.agencyId;\n\n /**\n * Line short name (e.g. '4').\n *\n * @type {String}\n */\n this.shortName = options.shortName;\n\n /**\n * Line long name (e.g. 'Boy Konen/LT.Mich.Lucius').\n *\n * @type {String}\n */\n this.longName = options.longName;\n\n /**\n * Hexadecimal color code (e.g. 43FA7A).\n *\n * @type {String}\n */\n this.color = options.color;\n }", "registerEndpoint(fn, options)\n {\n if (!fn) throw new Error('Must include a function to register endpoint');\n\n options.modelName = this.modelName;\n const endpoint = buildEndpoint(this, options, fn);\n if (!options.private) this.publicEndpoints.push(endpoint);\n this[options.name] = fn;\n }", "addPatchRoute(route, ...handlers) {\n this.addRoute('patch', route, ...handlers);\n }", "function createRoute(tripId, route) {\n return $http.post(\"/api/route\", route)\n .then(function (response) {\n return response.data;\n });\n }", "addRouter(routerFunction, routerInfoOption) {\n const prefix = routerInfoOption.prefix || '';\n routerInfoOption.requestMethod = (routerInfoOption.requestMethod || 'GET').toUpperCase();\n if (!this.routes.has(prefix)) {\n this.routes.set(prefix, []);\n this.routesPriority.push({\n prefix,\n priority: 0,\n middleware: [],\n routerOptions: {},\n controllerId: undefined,\n routerModule: undefined,\n });\n }\n this.checkDuplicateAndPush(prefix, Object.assign(routerInfoOption, {\n method: routerFunction,\n }));\n }", "function add(url, f, c){\n var $, nested\n\n if (typeof url !== 'string')\n throw new Error('Router accepts only a string as the first argument.')\n\n c = arguments[arguments.length-1]\n f = (_.isArray(f)) ? f : []\n\n if (!_.isFunction(c)) throw new Error('Controller either not specified or invalid.')\n _.each(f,function(e){\n if (!_.isFunction(e)) throw new Error('Filter is not a function: '+{}.toString.apply(e))\n })\n\n $ = [].concat(f).concat(c)\n\n if (logger && _.isFunction(logger))\n logger('add route:', url, 'filters and controller:', $)\n // Convert route string into array of path segments.\n url = url.replace(/(^\\/|\\/$)/g,'').split('/')\n url[url.length] = '$'\n nested = newBranch(url, $)\n\n // Now include the new route in our routes map object.\n _.merge(routes_tree, nested, function(a,b){\n var arr = a || b\n if (_.isArray(a))\n return _.uniq(a.concat(b), function(x){if (x) return x.toString()})\n else if (_.isArray(b))\n return b\n }) // Arrays are used for storing any segments which contain regex.\n\n return add\n }", "_attachEndpoint(func, endpoint) {\n\t\t// Validate method and path\n\t\t/* istanbul ignore next */\n\t\tif (!endpoint.method || !endpoint.path) {\n\t\t\treturn this.log(\n\t\t\t\t`Endpoint ${endpoint.type} for function ${func.name} has no method or path`\n\t\t\t)\n\t\t}\n\t\t// Add HTTP endpoint to Express\n\t\tthis.app[endpoint.method.toLowerCase()](\n\t\t\tendpoint.path,\n\t\t\t(request, response) => {\n\t\t\t\tthis.log(`${endpoint}`)\n\t\t\t\t// Execute Lambda with corresponding event, forward response to Express\n\t\t\t\tlet lambdaEvent = endpoint.getLambdaEvent(request)\n\t\t\t\tthis._executeLambdaHandler(func, lambdaEvent)\n\t\t\t\t\t.then(result => {\n\t\t\t\t\t\tthis.log(' ➡ Success')\n\t\t\t\t\t\tif (process.env.SLS_DEBUG) console.info(result)\n\t\t\t\t\t\tendpoint.handleLambdaSuccess(response, result)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tthis.log(` ➡ Failure: ${error.message}`)\n\t\t\t\t\t\tif (process.env.SLS_DEBUG) console.error(error.stack)\n\t\t\t\t\t\tendpoint.handleLambdaFailure(response, error)\n\t\t\t\t\t})\n\t\t\t}\n\t\t)\n\t}", "function addRoutes(router, segs, params, seqNumber) {\n var routePath = '/' + segs.join('/');\n if (seqNumber > 0) {\n // when is a sequence, add only the file\n if (!_.has(router.routeMap, routePath)) {\n router.addRoute(routePath, params);\n } else {\n router.routeMap[routePath].file.push(params.file[0]);\n }\n } else {\n if (!_.has(router.routeMap, routePath)) {\n router.addRoute(routePath, params);\n }\n // force JS files over JSON\n else if(params.ext === '.js') {\n router.routeMap[routePath].fn = params;\n }\n }\n}", "function AddLigne(route){\n var directionsService = new google.maps.DirectionsService();\n\n var request = {\n origin: route.origin,\n destination: route.destination,\n travelMode: google.maps.TravelMode.DRIVING\n };\n \n\n var symbolOne = {\n path: \"M -2,0 0,-2 2,0 0,2 z\",\n strokeColor: \"#F00\",\n fillColor: \"#F00\"\n \n };\n\n var symbolTwo = {\n path:\n google.maps.SymbolPath.CIRCLE,\n strokeColor: \"#00F\"\n \n }; \n\n var directionsDisplay = new google.maps.DirectionsRenderer({\n polylineOptions: {\n strokeColor: route.color,\n strokeWeight:route.strokeWeight,\n icons: [\n {\n icon: symbolOne,\n offset: \"0%\",\n\n strokeWeight: 0.5\n },\n {\n icon: symbolTwo,\n offset: \"100%\",\n strokeWeight: 0.5\n }]\n\n\n }\n });\n\n directionsDisplay.setOptions({suppressMarkers: true});\n directionsDisplay.setMap(map);\n\n directionsService.route(request, function(result, status) {\n \n\n if (status == google.maps.DirectionsStatus.OK) {\n directionsDisplay.setDirections(result);\n }\n });\n}", "function addRoute(pointIndex) {\n\tpoints = [];\n\tvar i = 0;\n\tvar max = (pointIndex*perData >= dataList.length ? dataList.length : pointIndex*perData);\n\tmax = (max == 0 ? 1 : max);\n\tvar endPoint = new OpenLayers.LonLat(parseFloat(dataList[max-1].longitude/60).toFixed(6), parseFloat(dataList[max-1].latitude/60).toFixed(6)).transform(fromProjection, OSM_toProjection);\t//根据坐标取点,并计算投影偏移量\n//\tclearMess();\n\tvar sinobj;\n\tfor(; i < max; i++) {\n\t\tsinobj = dataList[i];\n\t\tpoint = new OpenLayers.Geometry.Point(parseFloat(sinobj.longitude/60).toFixed(6), parseFloat(sinobj.latitude/60).toFixed(6)).transform(fromProjection, OSM_toProjection);\t//根据坐标取点,并计算投影偏移量\n\t\tpoints.push(point);\n//\t\taddMess(i, 'Time: ' + sinobj.gpsDateTime + \n//\t\t\t\t\t\t\t'; Longitude: ' + parseFloat(sinobj.longitude/60).toFixed(6) + \n//\t\t\t\t\t\t\t'; Latitude: ' + parseFloat(sinobj.latitude/60).toFixed(6) + \n//\t\t\t\t\t\t\t'; Speed: ' + sinobj.speed + \n//\t\t\t\t\t\t\t'; Direction: ' + sinobj.direction\n//\t\t\t\t\t\t\t);\n\t}\n\tlineFeature = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString(points), null, style_green);\t//build the route\n\t$('#sTime').text('Time:' + dataList[max-1].gpsDateTime/* + '-' + parseFloat(dataList[max-1].longitude/60).toFixed(6) + '-' + parseFloat(dataList[max-1].latitude/60).toFixed(6)*/);\n\tvectorLayer.addFeatures(lineFeature);\t\t//add the route to the layer\n\tdelMarkers(markLayer[1]);\n\taddMarkers('endP', endPoint, 1, 'Ending location: Time: ' +dataList[max-1].gpsDateTime + '</br>Longitude:' + parseFloat(dataList[max-1].longitude/60).toFixed(6) + '</br>Latitude:' + parseFloat(dataList[max-1].latitude/60).toFixed(6));\n\t//change the center of the map when the ending lication outsides the current view\n\tif(endPoint.lon <= map.getExtent().left || endPoint.lon >= map.getExtent().right || endPoint.lat <= map.getExtent().bottom || endPoint.lat >= map.getExtent().top) {\n\t\tmap.setCenter(endPoint);\n\t}\n}", "_updateRouter(route) {\n\n /*\n (R.intersection(getMetods(route), verbs)).forEach(routeVerb => {\n route.log(`found route handler for '${routeVerb}' method`);\n route.router[routeVerb]('/', route[routeVerb].bind(route));\n });\n */\n\n this._getMethods(route).forEach(method => {\n let verb = this._startsWithVerb(method);\n if (verb) {\n let spec = this._routeify(method);\n if (spec) {\n route.log(`found route handler for '${spec.verb}' method`);\n route.router[spec.verb](spec.route, route[method].bind(route));\n }\n }\n });\n }", "route(pattern, methods, handler) {\n const route = new Route_1.Route(pattern, methods, handler, this.matchers);\n const openedGroup = this.getRecentGroup();\n if (openedGroup) {\n openedGroup.routes.push(route);\n }\n else {\n this.routes.push(route);\n }\n return route;\n }", "function setRoute(route) {\n\t\thasher.setHash(route);\n\t}", "addRoutePoint (routePoint, index = -1)\n {\n if (index == -1)\n {\n this.route.points.push(routePoint);\n index = this.route.points.length - 1;\n }\n else\n {\n this.route.points.splice(index, 0, routePoint);\n }\n\n routePoint.setOwner(this);\n routePoint.index = index;\n\n for (var i = index + 1; i < this.route.points.length; i++)\n {\n this.route.points[i].index = i;\n }\n\n // Send events after all operation finished, or in callback it will get incorrect value.\n this.sendEvent(SceneObjectEvent.ROUTE_POINT_ADDED, routePoint);\n for (var i = index + 1; i < this.route.points.length; i++)\n {\n this.route.points[i].sendEvent(ObjectEvent.VALUE_CHANGED, new Set([\"index\"]));\n }\n\n routePoint.afterAdded();\n }", "function addStop(evt) {\n routeParams.stops.features.push(\n mapObj.graphics.add(\n new esri.Graphic(\n evt.mapPoint,\n stopSymbol,\n { RouteName:dom.byId(\"routeName\").value }\n )\n )\n );\n }", "function route (path, templateId) {\n\t routes[path] = {templateId: templateId};\n\t}", "addGetRoute(route, ...handlers) {\n this.addRoute('get', route, ...handlers);\n }", "writeRoute(route, opts) {\n opts = opts || {}\n let routeString = this.stringifyRoute(route)\n if (!routeString) {\n this.clearRoute(opts);\n } else {\n this._writeRoute(routeString, opts);\n }\n }", "function addVehicle(agency, route, vehicle) {\n if (agency.routes.has(route.id)) {\n return agency.setIn(['routes', route.id], RouteType.addVehicle(route, vehicle));\n } else {\n console.warn('Trying to add vehicle to a null route');\n return agency;\n }\n}", "function addRoutes(routes, parent) {\n\t routes.forEach(function (r) {\n\t return addRoute(r, parent);\n\t });\n\t }", "function addStop(evt) {\n require([\"esri/graphic\"], function (Graphic) {\n var graphic = new Graphic(evt.mapPoint, stopSymbol);\n routeParams.stops.features.push(\n map.graphics.add(graphic)\n );\n });\n}", "mapRoute(config) {\r\n this.instructions.push(router => {\r\n let routeConfigs = _ensureArrayWithSingleRoutePerConfig(config);\r\n let navModel;\r\n for (let i = 0, ii = routeConfigs.length; i < ii; ++i) {\r\n let routeConfig = routeConfigs[i];\r\n routeConfig.settings = routeConfig.settings || {};\r\n if (!navModel) {\r\n navModel = router.createNavModel(routeConfig);\r\n }\r\n router.addRoute(routeConfig, navModel);\r\n }\r\n });\r\n return this;\r\n }", "addInstanceCustomRoutes(node) {\n // Reference static vars\n const uib = this.uib\n // const RED = this.RED\n const log = this.log\n\n // Is this capability turned on in settings.js?\n\n // Add routers from each <uibRoot>/<node.url>/routes/*.js file (Empty list if fldr doesn't exist or no files)\n const routeFiles = fg.sync(`${uib.rootFolder}/${node.url}/routes/*.js`)\n routeFiles.forEach( routeFilePath => {\n let instanceRouteFile = {}\n let routeKeys = []\n try {\n instanceRouteFile = require(routeFilePath)\n routeKeys = Object.keys(instanceRouteFile)\n } catch (e) {\n log.error(`[uibuilder:webjs:addInstanceCustomRoutes:${node.url}] Could not require instance route file. '${routeFilePath}'. ${e.message}`)\n return false\n }\n\n routeKeys.forEach( routeFnName => {\n const route = instanceRouteFile[routeFnName]\n // Route must contain all 3 properties, callback must EITHER be a function or an array of functions\n if ( !(route.method && route.path && route.callback) ) {\n log.warn(`[uibuilder:webjs:addInstanceApiRouter:${node.url}] Cannot add route from '${routeFilePath}'. '${routeFnName}' has invalid data. Ensure it has 'method', 'path' and 'callback' properties.`)\n } else {\n // if (!route.path.startsWith('/')) route.path = `/${route.path}` // Must start with a /\n\n log.trace(`[uibuilder:webjs:addInstanceApiRouter:${node.url}] Custom route added. '${routeFilePath}', '${routeFnName}'`)\n\n this.instanceRouters[node.url][route.method]( route.path, route.callback )\n\n // Track routes\n this.routers.instances[node.url].push( { name: `Custom route: ${routeFnName}`, path: `${this.uib.httpRoot}/${node.url}${route.path}`, desc: `Custom route from '${routeFilePath}'`, type: route.method.toUpperCase(), folder: routeFilePath } )\n }\n })\n })\n }", "set partialRoute(route) {\n\t this._setRoute(route ? convert.objectToRoute(route) : null);\n\t }", "function addFlightPath(flightPlan, map, color) {\n var flightPath;\n flightPath = new google.maps.Polyline({\n path: flightPlan,\n geodesic: true,\n strokeOpacity: 0.8,\n strokeWeight: 4,\n strokeColor: color\n });\n\n flightPath.setMap(map);\n}", "function renderRoute(route) {\n var points = _.sortBy(route.points, point => point.position);\n var polyLine = _.map(points, (latLng, index) => {\n var point = new google.maps.LatLng(latLng.lat, latLng.lng);\n\n renderMarker(point, index);\n\n return point;\n });\n var path = new google.maps.Polyline({\n path: polyLine,\n strokeColor: '#000000',\n strokeOpacity: 1.0,\n strokeWeight: 3\n });\n\n path.setMap(map);\n\n route = _.extend({}, route, { path: path });\n\n var routeIndex = _.findIndex($scope.routes, route0 => route0.id == route.id);\n\n if ($scope.routes[routeIndex] && !$scope.routes[routeIndex].path) {\n $scope.routes[routeIndex].path = route.path;\n }\n\n $scope.toggleRouteSelected(route.selected, route);\n\n return route;\n }", "function polo_route_register(message){\n\n\t \n}", "function AddBusLine(points, color, width) {\n map.addLayer({\n \"id\": \"route\",\n \"type\": \"line\",\n \"source\": {\n \"type\": \"geojson\",\n \"data\": {\n \"type\": \"Feature\",\n \"properties\": {},\n \"geometry\": {\n \"type\": \"LineString\",\n \"coordinates\": points\n }\n }\n },\n \"layout\": {\n \"line-join\": \"round\",\n \"line-cap\": \"round\"\n },\n \"paint\": {\n \"line-color\": color,\n \"line-width\": width\n }\n });\n\n //Get the bounds of the line\n var bounds = points.reduce(function (bounds, coord) {\n return bounds.extend(coord);\n }, new mapboxgl.LngLatBounds(points[0], points[0]));\n\n //Move the camera so the line fits on screen\n map.fitBounds(bounds, {\n padding: 80\n });\n}", "addRoute(config, navModel) {\r\n if (Array.isArray(config.route)) {\r\n let routeConfigs = _ensureArrayWithSingleRoutePerConfig(config);\r\n // the following is wrong. todo: fix this after TS refactoring release\r\n routeConfigs.forEach(this.addRoute.bind(this));\r\n return;\r\n }\r\n validateRouteConfig(config);\r\n if (!('viewPorts' in config) && !config.navigationStrategy) {\r\n config.viewPorts = {\r\n 'default': {\r\n moduleId: config.moduleId,\r\n view: config.view\r\n }\r\n };\r\n }\r\n if (!navModel) {\r\n navModel = this.createNavModel(config);\r\n }\r\n this.routes.push(config);\r\n let path = config.route;\r\n if (path.charAt(0) === '/') {\r\n path = path.substr(1);\r\n }\r\n let caseSensitive = config.caseSensitive === true;\r\n let state = this._recognizer.add({\r\n path: path,\r\n handler: config,\r\n caseSensitive: caseSensitive\r\n });\r\n if (path) {\r\n let settings = config.settings;\r\n delete config.settings;\r\n let withChild = JSON.parse(JSON.stringify(config));\r\n config.settings = settings;\r\n withChild.route = `${path}/*childRoute`;\r\n withChild.hasChildRouter = true;\r\n this._childRecognizer.add({\r\n path: withChild.route,\r\n handler: withChild,\r\n caseSensitive: caseSensitive\r\n });\r\n withChild.navModel = navModel;\r\n withChild.settings = config.settings;\r\n withChild.navigationStrategy = config.navigationStrategy;\r\n }\r\n config.navModel = navModel;\r\n let navigation = this.navigation;\r\n if ((navModel.order || navModel.order === 0) && navigation.indexOf(navModel) === -1) {\r\n if ((!navModel.href && navModel.href !== '') && (state.types.dynamics || state.types.stars)) {\r\n throw new Error('Invalid route config for \"' + config.route + '\" : dynamic routes must specify an \"href:\" to be included in the navigation model.');\r\n }\r\n if (typeof navModel.order !== 'number') {\r\n navModel.order = ++this._fallbackOrder;\r\n }\r\n navigation.push(navModel);\r\n // this is a potential error / inconsistency between browsers\r\n //\r\n // MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort\r\n // If compareFunction(a, b) returns 0, leave a and b unchanged with respect to each other,\r\n // but sorted with respect to all different elements.\r\n // Note: the ECMAscript standard does not guarantee this behaviour,\r\n // and thus not all browsers (e.g. Mozilla versions dating back to at least 2003) respect this.\r\n navigation.sort((a, b) => a.order - b.order);\r\n }\r\n }", "function addRoute(path) {\n\t\t$.each(mapGroup.path, function(i, current) {\n\t\t\tvar runMark = new google.maps.LatLng(current.lat, current.lon);\n\t\t\tvar runOptions = new google.maps.Marker({\n\t\t\t\ticon : 'http://maps.google.com/mapfiles/ms/icons/blue-dot.png',\n\t\t\t\tposition : runMark,\n\t\t\t\tmap : mapGroup.theMap,\n\t\t\t\ttitle : \"Current Marker Number: \" + current.markerNum,\n\t\t\t\tcontent : '<span class=\"markerContent\">Lat:' + current.lat + \", Long:\" + current.lon + '</span><br><span>' + current.description + '</span><br><span>Marker Number: ' + current.markerNum + '</span>',\n\n\t\t\t});\n\t\t\t\n\t\t\t//push markers to array\n\t\t\tlinePath.push(runMark); \n\t\t\tvar popupWindowOptions = {\n\t\t\t\tcontent : runOptions.content,\n\t\t\t\tposition : runOptions.position\n\t\t\t};\n\t\t\tvar popUpWindow = new google.maps.InfoWindow(popupWindowOptions);\n\t\t\tgoogle.maps.event.addListener(runOptions, 'click', function() {\n\t\t\t\tpopUpWindow.open(mapGroup.theMap);\n\t\t\t})\n\t\t\tvar polyLine = new google.maps.Polyline({ //add the objects to the line\n\t\t\t\tpath : linePath,\n\t\t\t\tstrokeColor : \"#FF0000\",\n\t\t\t\tstrockeOpacity : 1.0,\n\t\t\t\tstrokeWeight : 2\n\t\t\t});\n\t\t\t\n\t\t\t//draw the line\n\t\t\tpolyLine.setMap(mapGroup.theMap);\n\n\t\t})\n\t}", "store(route, handle) {\n // console.log('store', route);\n this.storedRouteHandles.set(route.routeConfig.path, handle);\n }", "includeRoutes() {\n new Routes(this.app,this.socket).routesConfig();\n }", "doRoute() {\n let routename = 'HTTP:' + this.request.method + ':' + this.url.pathname;\n this.run(routename, this.restnio.routes, \n Parser.parseFullHttpParams, this.request, this.url);\n }", "function on (route, cb) {\n assert.equal(typeof route, 'string')\n assert.equal(typeof cb, 'function')\n\n route = route || '/'\n\n if (cb && cb._wayfarer && cb._trie) {\n _trie.mount(route, cb._trie.trie)\n } else {\n var node = _trie.create(route)\n node.cb = cb\n }\n\n return emit\n }", "function endpoint(path, method) {\n function Endpoint(path, method) {\n this.path = path;\n this.method = method;\n }\n allEndpoints.push( new Endpoint(path, method) );\n}", "setupRoute(route) {\n let controller = this.controllers[route.controller];\n let action = controller[route.action] || this.defaultAction;\n let authMethod = (req, res, next) => {\n return next();\n };\n if (route.authentication && route.authentication.controller && route.authentication.action) {\n authMethod = this.controllers[route.authentication.controller][route.authentication.action]();\n }\n this.router[route.method](route.url, authMethod, (req, res) => {\n let values = route.method === 'get' ? req.query : req.body;\n const validator = new Validator_1.default(route.params, Object.assign({}, values, req.files));\n validator.addCustomTypes(this.customTypes);\n try {\n if (validator.isValid() === false) {\n const errorMessage = `This request failed validation, please check the documentation for ${route.method.toUpperCase()} ${route.url}`;\n const err = new ErrorResponse_1.ErrorResponse({ req, res, errorMessage, errors: validator.getErrors(), status: 400 });\n return err.send();\n }\n }\n catch (e) {\n const errorMessage = e.message;\n const errors = [\n `Invalid route definition for ${route.method.toUpperCase()} ${route.url}`\n ];\n const err = new ErrorResponse_1.ErrorResponse({ req, res, errorMessage, errors, status: 501 });\n return err.send();\n }\n values = Object.assign(validator.values, req.params);\n let routeHandler;\n // streaming route\n if (route.streaming === true) {\n routeHandler = new StreamingRouteHandler_1.StreamingRouteHandler(values, action, req, res);\n }\n else {\n routeHandler = new DefaultRouteHandler_1.DefaultRouteHandler(values, action, req, res);\n }\n // handle route\n routeHandler.handle();\n });\n }", "attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n }", "attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n }", "attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n }", "attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n }", "attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n }", "drawRoute(start, finish) {\n let params = {\n \"mode\": \"fastest;car\",\n \"waypoint0\": \"geo!\" + start.Latitude + \",\" + start.Longitude,\n \"waypoint1\": \"geo!\" + finish.Latitude + \",\" + finish.Longitude,\n \"representation\": \"display\"\n }\n this.router.calculateRoute(params, data => {\n if(data.response) {\n data = data.response.route[0];\n let lineString = new H.geo.LineString();\n data.shape.forEach(point => {\n let parts = point.split(\",\");\n lineString.pushLatLngAlt(parts[0], parts[1]);\n });\n let routeLine = new H.map.Polyline(lineString, {\n style: { strokeColor: \"blue\", lineWidth: 5 }\n });\n this.map.addObjects([routeLine]);\n }\n }, error => {\n console.error(error);\n });\n }", "function addPolyline(params) {\n var pathCoords = [{ lat: params.origin.lat, lng: params.origin.lng }, { lat: params.destination.lat, lng: params.destination.lng }];\n myPath = new google.maps.Polyline({\n path: pathCoords,\n geodesic: true,\n strokeColor: '#f4733d',\n strokeOpacity: 1.0,\n strokeWeight: 4\n });\n myPath.setMap(map);\n}", "function route(method: string, path: string, action: string, handler) {\n // $FlowFixMe - doesn't like calling a computed method\n router[method](path, can(action), wrap(handler));\n }", "bindRouteHandler() {\n\t\tthis.app.singleton('router.handler', Handler);\n\t}", "function addRouter(method, curUrl, handler, requireAuth){\n let router = {\n method: method,\n url: curUrl,\n handler: handler,\n requireAuth: requireAuth\n };\n\n // url parameters\n let index = curUrl.indexOf(\":\");\n if (index > 0){\n router.parameter = curUrl.substring(index+1); //'/api/v1/configuration/:name' ==> parameter='name'\n router.url = curUrl.substring(0, index); //'/api/v1/configuration/:name' ==>'/api/v1/configuration/' , with slash\n }\n\n _routers.push(router);\n}", "function registerRoute(extension) {\n var app = this.app,\n $log = this.$log,\n route = Object.create(extension);\n\n // Adjust path for bundle\n if (route.templateUrl) {\n route.templateUrl = [\n route.bundle.path,\n route.bundle.resources,\n route.templateUrl\n ].join(Constants.SEPARATOR);\n }\n\n // Log the registration\n $log.info(\"Registering route: \" + (route.key || route.when));\n\n // Register the route with Angular\n app.config(['$routeProvider', function ($routeProvider) {\n if (route.when) {\n $routeProvider.when(route.when, route);\n } else {\n $routeProvider.otherwise(route);\n }\n }]);\n }", "function showRoute(route) {\r\n // create line to represent route\r\n var polyroute = new google.maps.Polyline({\r\n strokeColor: '#3366FF',\r\n strokeWeight: 7\r\n });\r\n\r\n // for ensuring correct bounds/zoom level\r\n var bounds = new google.maps.LatLngBounds();\r\n\r\n $(route.legs).each(function(i, leg) {\r\n $(leg.steps).each(function(j, step) {\r\n $(step.path).each(function(k, point) {\r\n polyroute.getPath().push(point);\r\n bounds.extend(point);\r\n })\r\n })\r\n });\r\n\r\n globals.map.fitBounds(bounds);\r\n polyroute.setMap(globals.map);\r\n\r\n // let person place marker at every point in path\r\n google.maps.event.addListener(polyroute, 'click', function(event) {\r\n placeMarker(event.latLng);\r\n });\r\n}", "attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n this.attachEvents.emit(ref.instance);\n }", "addDeleteRoute(route, ...handlers) {\n this.addRoute('delete', route, ...handlers);\n }", "function makeExpressRoute(router, mountpath, route, securityDefinitions) {\n let path;\n let args;\n let before;\n let validators, handlers;\n\n path = buildRoutePath(mountpath, route.path);\n args = [path];\n before = [];\n handlers = [];\n\n if (route.security) {\n before.push(Authorize(route.security, securityDefinitions));\n }\n\n if (Thing.isArray(route.handler)) {\n if (route.handler.length > 1) {\n Array.prototype.push.apply(before, route.handler.slice(0, route.handler.length - 1));\n }\n\n route.handler = [].concat(route.handler[route.handler.length - 1]);\n } else {\n route.handler = [route.handler];\n }\n\n for (let i = 0; i < route.handler.length; ++i) {\n if (route.handler[i].constructor.name === 'AsyncFunction') {\n handlers.push(asyncMiddleware(route.handler[i]));\n } else {\n handlers.push(route.handler[i]);\n }\n }\n\n validators = [];\n\n if (route.validators) {\n for (let i = 0; i < route.validators.length; ++i) {\n validators.push(MakeValidator(route.validators[i], route.consumes));\n }\n }\n\n before = before.concat(validators);\n\n Array.prototype.push.apply(args, before);\n Array.prototype.push.apply(args, handlers);\n router[route.method].apply(router, args);\n}", "function prependRoute(route) {\n\n\treturn '/' + config.api.prepend + route;\n\n}", "AddRouteGet(RouteName, Fct){\n let object = new Object()\n object.RouteName = RouteName\n object.Fct = Fct\n this._RouteGetList.push(object)\n }", "function RouteHandler(method = '*', path = '*', callback = (request, response) => {}) {\n this.route = new Route(method, path);\n this.requestHandler = new RequestHandler(callback);\n}", "function updateRoute(route){\n if(linechart !== undefined){\n linechart.setRoute(route);\n }\n if(sparklines !== undefined){\n sparklines.setRoute(route);\n }\n}", "function makeExpressRoute(router, mountpath, route, securityDefinitions) {\n var path, args, before, validators;\n\n path = buildRoutePath(mountpath, route.path);\n args = [path];\n before = [];\n\n if (route.security) {\n before.push(authorizeFor(route.security, securityDefinitions));\n }\n\n if (thing.isArray(route.handler)) {\n if (route.handler.length > 1) {\n Array.prototype.push.apply(before, route.handler.slice(0, route.handler.length - 1));\n }\n route.handler = route.handler[route.handler.length - 1];\n }\n\n validators = [];\n\n for (var i = 0; i < route.validators.length; ++i) {\n validators.push(makeValidator(route.validators[i], route.consumes));\n }\n\n before = before.concat(validators);\n\n\n Array.prototype.push.apply(args, before);\n args.push(route.handler);\n router[route.method].apply(router, args);\n}", "function _map_addDirections(map,target){\r\n\tif (map){\r\n\t\tgdir = new GDirections(map,target);\r\n\t\tGEvent.addListener(gdir, \"error\", __directions_handleErrors);\r\n\t}\r\n}", "addPayloadEndpoint(opts) {\n if (this.event.payload.endpoints === undefined) this.event.payload.endpoints = [];\n\n this.event.payload.endpoints.push(this.createPayloadEndpoint(opts));\n }", "async function getRoute(start, end, vid, partofroute, col, mapname) {\n var url = 'https://api.mapbox.com/directions/v5/mapbox/driving-traffic/' + start[0] + ',' + start[1] + ';' + end[0] + ',' + end[1] + '?steps=true&geometries=geojson&access_token=' + mapboxgl.accessToken;\n let result = await makeRequest('GET', url);\n var json = JSON.parse(result);\n var data = json.routes[0];\n if (partofroute == 'driven'){\n trucks[vid].distanceDriven = data.distance;\n }\n else{\n trucks[vid].distanceLeft = data.distance;\n }\n var route = data.geometry.coordinates;\n var geojson = {\n type: 'Feature',\n properties: {},\n geometry: {\n type: 'LineString',\n coordinates: route\n }\n };\n // if the route already exists on the map, reset it using setData\n if (eval(mapname).getSource(vid + partofroute + 'route')) {\n eval(mapname).getSource(vid + partofroute + 'route').setData(geojson);\n } else { // otherwise, make a new request\n eval(mapname).addLayer({\n id: vid + partofroute + 'route',\n type: 'line',\n source: {\n type: 'geojson',\n data: {\n type: 'Feature',\n properties: {\n 'distance': ['get', 'distance'],\n 'duration': ['get', 'duration']\n },\n geometry: {\n type: 'LineString',\n coordinates: geojson\n }\n }\n },\n paint: {\n 'line-color': col,\n 'line-width': 5,\n 'line-opacity': 0.75\n },\n layout: {\n 'visibility': 'none',\n 'line-join': 'round',\n 'line-cap': 'round'\n }\n });\n }\n}", "function route(coordinates, color) {\n // Encode coordinates string\n var coordinatesString = [];\n for (coordinate of coordinates) {\n coordinatesString.push(coordinate.join(','));\n }\n coordinatesString = coordinatesString.join(';');\n\n // Make request URL\n var url = 'https://api.mapbox.com/directions/v5/mapbox/' + profile + '/' + coordinatesString;\n\n // Send AJAX request\n $.getJSON(\n url,\n {\n access_token: L.mapbox.accessToken,\n overview: 'full'\n },\n function(data, textStatus, jqXHR) {\n wayLayers.push(\n addFeature(\n {\n type: 'Feature',\n geometry: polyline.toGeoJSON(data.routes[0].geometry),\n properties: {\n 'stroke': color,\n 'stroke-opacity': 0.8,\n 'stroke-width': 5,\n }\n })\n );\n }\n );\n}", "registerComplexRoute(routeName, varName){\n\t\t\trouteListComplex.push({\n\t\t\t\trouteName: routeName,\n\t\t\t\tvarName: varName,\n\t\t\t\tcomponent: this\n\t\t\t});\n\t\t\treturn this;\n\t\t}", "function SetRoute(_a) {\n var path = _a.path, component = _a.component;\n var setRoute = hooks_1.useAction('setRoute');\n hooks_1.useSetter(function () { return component && setRoute(path, component); });\n // tslint:disable-next-line:no-null-keyword\n return null;\n}", "function createRoute(client) {\n ss.http.route(client.route, function(req, res){ \n res.serveClient(client.name) \n });\n}", "function _addPath(p1_index, p1, p2_index, p2, dist) {\n self.paths.push({\n p1_index : p1_index,\n p1 : p1,\n p2_index : p2_index,\n p2 : p2,\n distance : dist\n });\n }", "calculateNewRoute() {\n\t\tvar request = {\n\t\t\torigin: this.props.data.origin,\n\t\t\tdestination: this.props.data.destination,\n\t\t\ttravelMode: 'DRIVING'\n\t\t}\n\t\t\n\t\tthis.directionService.route(request, (response, status) => {\n\t\t\tif (status == 'OK') {\n\t\t\t\tthis.directionDisplay.setDirections(response);\n\t\t\t}\n\t\t});\n\t\t\n\t\tvar doneEvent = {\n\t\t\ttype: 'route-done',\n\t\t\tposition: null\n\t\t}\n\t\tthis.props.onChange(doneEvent);\n\t}", "function routeHook(obj, args, router) {\r\n\t\tvar method = args[0].toUpperCase();\r\n\t\tvar path = args[1];\r\n\t\tvar route;\r\n\r\n\t\t// start request\r\n\t\tproxy.callback(args, -1, function(obj, args) {\r\n\t\t\tif(nf.paused) return;\r\n\r\n\t\t\tvar req = args[0];\r\n\t\t\tvar res = args[1];\r\n\t\t\tvar time = samples.time(\"Express Server\", path, true);\r\n\t\t\t\r\n\t\t\t// finish request\r\n\t\t\tproxy.after(res, 'end', function(obj, args) {\r\n\t\t\t\tif(!time.done()) return;\r\n\r\n\t\t\t\troute = route || (method + ' ' + (res.app.route === '/' ? '' : res.app.route) + path);\r\n\t\t\t\ttopFunctions.add('expressCalls', route, time.ms, time.cputime, req.tiers, req.graph);\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t}", "bindRouteHandler() {\n this.app.singleton('router.handler', _Handler.default);\n }", "function createRoute(top, routeMutationParams) {\n\n top.props.createRouteMutation({\n variables: routeMutationParams\n })\n .then(({ data }) => {\n var newFcRoute = JSON.parse(data.createRouteMutation);\n top.props.showRouteForm(false);\n top.props.addNewEventToFullcalendar(newFcRoute);\n // lastWorkingDate\n\n // # cookies.permanent[:last_working_date] = @route.starts_at.iso8601\n // # session[:last_route_id_edited] = @route.id # used to plant a Class to mark the event in the calendar, so the js can highlight the change and scroll to it.\n }).catch((error) => {\n console.log('there was an error sending the query', error);\n });\n}", "function draw_route(obj, color, width, layer) {\n\n // var gpoint = g.append(\"line\");\n var srcCoor = projection([obj.SrcLon, obj.SrcLat]);\n var destCoor = projection([obj.DestLon, obj.DestLat]);\n\n layer.append(\"svg:line\")\n .attr(\"class\", \"route\")\n .attr(\"x1\", srcCoor[0])\n .attr(\"y1\", srcCoor[1])\n .attr(\"x2\", destCoor[0])\n .attr(\"y2\", destCoor[1])\n .attr(\"stroke\", color)\n .attr(\"stroke-width\", width);\n}", "function sendRoute(route) {\n\n\tstompClient.send(\"/app/map/route/clientupdate\", {}, JSON.stringify(route)); \n}", "function drawRoute() {\n\t\t$.each(routes, function(i,route) {\n\t\t\tvar p = svg.selectAll(\"path.route\")\n\t\t .data(routes[route.tag][\"path\"])\n\t\t .enter()\n\t\t .append(\"path\")\n\t\t .attr(\"d\", function(m) { return lines(m.point); })\n\t\t .attr(\"class\", \"path_\" + route.tag)\n\t\t .attr(\"stroke\", \"#\" + routes[route.tag][\"color\"])\n\t\t .attr(\"stroke-width\", 1.5)\n\t\t .attr(\"fill\", \"none\")\n\t\t .attr(\"visibility\", \"hidden\");\n\t\t});\n\t}" ]
[ "0.7348392", "0.73283225", "0.7174983", "0.70851684", "0.6981869", "0.64044505", "0.6316121", "0.6303698", "0.62048244", "0.61579347", "0.60936403", "0.6076617", "0.60673183", "0.5975605", "0.5882683", "0.5813818", "0.57438993", "0.5739003", "0.5731479", "0.56811005", "0.566346", "0.5624083", "0.55999964", "0.5562162", "0.55620056", "0.5548707", "0.5520566", "0.5504596", "0.54164225", "0.5408036", "0.5388458", "0.5306551", "0.5303126", "0.52917236", "0.5289042", "0.5264649", "0.52573013", "0.5236459", "0.5234287", "0.52163285", "0.51884806", "0.5187901", "0.5181947", "0.5170901", "0.5146937", "0.5129336", "0.51146275", "0.5110682", "0.50981265", "0.5080697", "0.5076226", "0.50650346", "0.5062646", "0.50599486", "0.50297385", "0.50290716", "0.50018483", "0.5000877", "0.49826133", "0.49820068", "0.49780497", "0.4963116", "0.49471262", "0.49443105", "0.49429074", "0.49393085", "0.49393085", "0.49393085", "0.49393085", "0.49393085", "0.49375236", "0.49314234", "0.4924708", "0.4923002", "0.49179226", "0.49165848", "0.49152994", "0.49087575", "0.49039194", "0.48883232", "0.48828107", "0.48613685", "0.4858921", "0.48488048", "0.48407936", "0.48387715", "0.4838413", "0.48306975", "0.4826443", "0.48224035", "0.4812285", "0.480969", "0.4805464", "0.48013386", "0.4800901", "0.47980115", "0.47970238", "0.4784543", "0.47816962", "0.47799233" ]
0.590955
14
Code was taken from
function link(scope, element, attrs, ngModel){ ngModel.$parsers.push(function(value) { return '' + value; }); ngModel.$formatters.push(function(value) { return parseFloat(value, 10); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "private public function m246() {}", "static private internal function m121() {}", "transient protected internal function m189() {}", "static final private internal function m106() {}", "transient private protected internal function m182() {}", "transient private internal function m185() {}", "static private protected internal function m118() {}", "transient final protected internal function m174() {}", "static private protected public internal function m117() {}", "static transient private protected internal function m55() {}", "transient final private internal function m170() {}", "transient final private protected internal function m167() {}", "transient private protected public internal function m181() {}", "function o0(o1)\n{\n var o2 = -1;\n try {\nfor (var o259 = 0; o3 < o1.length; function (o502, name, o38, o781, o782, o837, o585, o838, o549) {\n try {\no839.o468();\n}catch(e){}\n // TODO we should allow people to just pass in a complete filename instead\n // of parent and name being that we just join them anyways\n var o840 = name ? o591.resolve(o591.o592(o502, name)) : o502;\n\n function o841(o842) {\n function o843(o842) {\n try {\nif (!o838) {\n try {\no474.o800(o502, name, o842, o781, o782, o549);\n}catch(e){}\n }\n}catch(e){}\n try {\nif (o837) try {\no837();\n}catch(e){}\n}catch(e){}\n try {\no334('cp ' + o840);\n}catch(e){}\n }\n var o844 = false;\n try {\nModule['preloadPlugins'].forEach(function (o845) {\n try {\nif (o844) try {\nreturn;\n}catch(e){}\n}catch(e){}\n try {\nif (o845['canHandle'](o840)) {\n try {\no845['handle'](o842, o840, o843, function () {\n try {\nif (o585) try {\no585();\n}catch(e){}\n}catch(e){}\n try {\no334('cp ' + o840);\n}catch(e){}\n });\n}catch(e){}\n try {\no844 = true;\n}catch(e){}\n }\n}catch(e){}\n });\n}catch(e){}\n try {\nif (!o844) try {\no843(o842);\n}catch(e){}\n}catch(e){}\n }\n try {\no332('cp ' + o840);\n}catch(e){}\n try {\nif (typeof o38 == 'string') {\n try {\no839.o846(o38, function (o842) {\n try {\no841(o842);\n}catch(e){}\n }, o585);\n}catch(e){}\n } else {\n try {\no841(o38);\n}catch(e){}\n }\n}catch(e){}\n })\n {\n try {\nif (o1[o3] == undefined)\n {\n try {\nif (o2 == -1)\n {\n try {\no2 = o3;\n}catch(e){}\n }\n}catch(e){}\n }\n else\n {\n try {\nif (o2 != -1)\n {\n try {\no4.o5(o2 + \"-\" + (o3-1) + \" = undefined\");\n}catch(e){}\n try {\no2 = -1;\n}catch(e){}\n }\n}catch(e){}\n try {\no4.o5(o3 + \" = \" + o1[o3]);\n}catch(e){}\n }\n}catch(e){}\n }\n}catch(e){}\n}", "static transient final private internal function m43() {}", "static protected internal function m125() {}", "function T7(){return typeof window>\"u\"&&(self.window=self),function(n){var e={parse:function(r){var s=e._bin,o=new Uint8Array(r);if(s.readASCII(o,0,4)==\"ttcf\"){var a=4;s.readUshort(o,a),a+=2,s.readUshort(o,a),a+=2;var l=s.readUint(o,a);a+=4;for(var c=[],d=0;d<l;d++){var h=s.readUint(o,a);a+=4,c.push(e._readFont(o,h))}return c}return[e._readFont(o,0)]},_readFont:function(r,s){var o=e._bin,a=s;o.readFixed(r,s),s+=4;var l=o.readUshort(r,s);s+=2,o.readUshort(r,s),s+=2,o.readUshort(r,s),s+=2,o.readUshort(r,s),s+=2;for(var c=[\"cmap\",\"head\",\"hhea\",\"maxp\",\"hmtx\",\"name\",\"OS/2\",\"post\",\"loca\",\"glyf\",\"kern\",\"CFF \",\"GPOS\",\"GSUB\",\"SVG \"],d={_data:r,_offset:a},h={},p=0;p<l;p++){var m=o.readASCII(r,s,4);s+=4,o.readUint(r,s),s+=4;var v=o.readUint(r,s);s+=4;var y=o.readUint(r,s);s+=4,h[m]={offset:v,length:y}}for(p=0;p<c.length;p++){var x=c[p];h[x]&&(d[x.trim()]=e[x.trim()].parse(r,h[x].offset,h[x].length,d))}return d},_tabOffset:function(r,s,o){for(var a=e._bin,l=a.readUshort(r,o+4),c=o+12,d=0;d<l;d++){var h=a.readASCII(r,c,4);c+=4,a.readUint(r,c),c+=4;var p=a.readUint(r,c);if(c+=4,a.readUint(r,c),c+=4,h==s)return p}return 0}};e._bin={readFixed:function(r,s){return(r[s]<<8|r[s+1])+(r[s+2]<<8|r[s+3])/65540},readF2dot14:function(r,s){return e._bin.readShort(r,s)/16384},readInt:function(r,s){return e._bin._view(r).getInt32(s)},readInt8:function(r,s){return e._bin._view(r).getInt8(s)},readShort:function(r,s){return e._bin._view(r).getInt16(s)},readUshort:function(r,s){return e._bin._view(r).getUint16(s)},readUshorts:function(r,s,o){for(var a=[],l=0;l<o;l++)a.push(e._bin.readUshort(r,s+2*l));return a},readUint:function(r,s){return e._bin._view(r).getUint32(s)},readUint64:function(r,s){return 4294967296*e._bin.readUint(r,s)+e._bin.readUint(r,s+4)},readASCII:function(r,s,o){for(var a=\"\",l=0;l<o;l++)a+=String.fromCharCode(r[s+l]);return a},readUnicode:function(r,s,o){for(var a=\"\",l=0;l<o;l++){var c=r[s++]<<8|r[s++];a+=String.fromCharCode(c)}return a},_tdec:typeof window<\"u\"&&window.TextDecoder?new window.TextDecoder:null,readUTF8:function(r,s,o){var a=e._bin._tdec;return a&&s==0&&o==r.length?a.decode(r):e._bin.readASCII(r,s,o)},readBytes:function(r,s,o){for(var a=[],l=0;l<o;l++)a.push(r[s+l]);return a},readASCIIArray:function(r,s,o){for(var a=[],l=0;l<o;l++)a.push(String.fromCharCode(r[s+l]));return a},_view:function(r){return r._dataView||(r._dataView=r.buffer?new DataView(r.buffer,r.byteOffset,r.byteLength):new DataView(new Uint8Array(r).buffer))}},e._lctf={},e._lctf.parse=function(r,s,o,a,l){var c=e._bin,d={},h=s;c.readFixed(r,s),s+=4;var p=c.readUshort(r,s);s+=2;var m=c.readUshort(r,s);s+=2;var v=c.readUshort(r,s);return s+=2,d.scriptList=e._lctf.readScriptList(r,h+p),d.featureList=e._lctf.readFeatureList(r,h+m),d.lookupList=e._lctf.readLookupList(r,h+v,l),d},e._lctf.readLookupList=function(r,s,o){var a=e._bin,l=s,c=[],d=a.readUshort(r,s);s+=2;for(var h=0;h<d;h++){var p=a.readUshort(r,s);s+=2;var m=e._lctf.readLookupTable(r,l+p,o);c.push(m)}return c},e._lctf.readLookupTable=function(r,s,o){var a=e._bin,l=s,c={tabs:[]};c.ltype=a.readUshort(r,s),s+=2,c.flag=a.readUshort(r,s),s+=2;var d=a.readUshort(r,s);s+=2;for(var h=c.ltype,p=0;p<d;p++){var m=a.readUshort(r,s);s+=2;var v=o(r,h,l+m,c);c.tabs.push(v)}return c},e._lctf.numOfOnes=function(r){for(var s=0,o=0;o<32;o++)r>>>o&1&&s++;return s},e._lctf.readClassDef=function(r,s){var o=e._bin,a=[],l=o.readUshort(r,s);if(s+=2,l==1){var c=o.readUshort(r,s);s+=2;var d=o.readUshort(r,s);s+=2;for(var h=0;h<d;h++)a.push(c+h),a.push(c+h),a.push(o.readUshort(r,s)),s+=2}if(l==2){var p=o.readUshort(r,s);for(s+=2,h=0;h<p;h++)a.push(o.readUshort(r,s)),s+=2,a.push(o.readUshort(r,s)),s+=2,a.push(o.readUshort(r,s)),s+=2}return a},e._lctf.getInterval=function(r,s){for(var o=0;o<r.length;o+=3){var a=r[o],l=r[o+1];if(r[o+2],a<=s&&s<=l)return o}return-1},e._lctf.readCoverage=function(r,s){var o=e._bin,a={};a.fmt=o.readUshort(r,s),s+=2;var l=o.readUshort(r,s);return s+=2,a.fmt==1&&(a.tab=o.readUshorts(r,s,l)),a.fmt==2&&(a.tab=o.readUshorts(r,s,3*l)),a},e._lctf.coverageIndex=function(r,s){var o=r.tab;if(r.fmt==1)return o.indexOf(s);if(r.fmt==2){var a=e._lctf.getInterval(o,s);if(a!=-1)return o[a+2]+(s-o[a])}return-1},e._lctf.readFeatureList=function(r,s){var o=e._bin,a=s,l=[],c=o.readUshort(r,s);s+=2;for(var d=0;d<c;d++){var h=o.readASCII(r,s,4);s+=4;var p=o.readUshort(r,s);s+=2;var m=e._lctf.readFeatureTable(r,a+p);m.tag=h.trim(),l.push(m)}return l},e._lctf.readFeatureTable=function(r,s){var o=e._bin,a=s,l={},c=o.readUshort(r,s);s+=2,c>0&&(l.featureParams=a+c);var d=o.readUshort(r,s);s+=2,l.tab=[];for(var h=0;h<d;h++)l.tab.push(o.readUshort(r,s+2*h));return l},e._lctf.readScriptList=function(r,s){var o=e._bin,a=s,l={},c=o.readUshort(r,s);s+=2;for(var d=0;d<c;d++){var h=o.readASCII(r,s,4);s+=4;var p=o.readUshort(r,s);s+=2,l[h.trim()]=e._lctf.readScriptTable(r,a+p)}return l},e._lctf.readScriptTable=function(r,s){var o=e._bin,a=s,l={},c=o.readUshort(r,s);s+=2,l.default=e._lctf.readLangSysTable(r,a+c);var d=o.readUshort(r,s);s+=2;for(var h=0;h<d;h++){var p=o.readASCII(r,s,4);s+=4;var m=o.readUshort(r,s);s+=2,l[p.trim()]=e._lctf.readLangSysTable(r,a+m)}return l},e._lctf.readLangSysTable=function(r,s){var o=e._bin,a={};o.readUshort(r,s),s+=2,a.reqFeature=o.readUshort(r,s),s+=2;var l=o.readUshort(r,s);return s+=2,a.features=o.readUshorts(r,s,l),a},e.CFF={},e.CFF.parse=function(r,s,o){var a=e._bin;(r=new Uint8Array(r.buffer,s,o))[s=0],r[++s],r[++s],r[++s],s++;var l=[];s=e.CFF.readIndex(r,s,l);for(var c=[],d=0;d<l.length-1;d++)c.push(a.readASCII(r,s+l[d],l[d+1]-l[d]));s+=l[l.length-1];var h=[];s=e.CFF.readIndex(r,s,h);var p=[];for(d=0;d<h.length-1;d++)p.push(e.CFF.readDict(r,s+h[d],s+h[d+1]));s+=h[h.length-1];var m=p[0],v=[];s=e.CFF.readIndex(r,s,v);var y=[];for(d=0;d<v.length-1;d++)y.push(a.readASCII(r,s+v[d],v[d+1]-v[d]));if(s+=v[v.length-1],e.CFF.readSubrs(r,s,m),m.CharStrings){s=m.CharStrings,v=[],s=e.CFF.readIndex(r,s,v);var x=[];for(d=0;d<v.length-1;d++)x.push(a.readBytes(r,s+v[d],v[d+1]-v[d]));m.CharStrings=x}if(m.ROS){s=m.FDArray;var w=[];for(s=e.CFF.readIndex(r,s,w),m.FDArray=[],d=0;d<w.length-1;d++){var _=e.CFF.readDict(r,s+w[d],s+w[d+1]);e.CFF._readFDict(r,_,y),m.FDArray.push(_)}s+=w[w.length-1],s=m.FDSelect,m.FDSelect=[];var S=r[s];if(s++,S!=3)throw S;var b=a.readUshort(r,s);for(s+=2,d=0;d<b+1;d++)m.FDSelect.push(a.readUshort(r,s),r[s+2]),s+=3}return m.Encoding&&(m.Encoding=e.CFF.readEncoding(r,m.Encoding,m.CharStrings.length)),m.charset&&(m.charset=e.CFF.readCharset(r,m.charset,m.CharStrings.length)),e.CFF._readFDict(r,m,y),m},e.CFF._readFDict=function(r,s,o){var a;for(var l in s.Private&&(a=s.Private[1],s.Private=e.CFF.readDict(r,a,a+s.Private[0]),s.Private.Subrs&&e.CFF.readSubrs(r,a+s.Private.Subrs,s.Private)),s)[\"FamilyName\",\"FontName\",\"FullName\",\"Notice\",\"version\",\"Copyright\"].indexOf(l)!=-1&&(s[l]=o[s[l]-426+35])},e.CFF.readSubrs=function(r,s,o){var a=e._bin,l=[];s=e.CFF.readIndex(r,s,l);var c,d=l.length;c=d<1240?107:d<33900?1131:32768,o.Bias=c,o.Subrs=[];for(var h=0;h<l.length-1;h++)o.Subrs.push(a.readBytes(r,s+l[h],l[h+1]-l[h]))},e.CFF.tableSE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,0,111,112,113,114,0,115,116,117,118,119,120,121,122,0,123,0,124,125,126,127,128,129,130,131,0,132,133,0,134,135,136,137,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,138,0,139,0,0,0,0,140,141,142,143,0,0,0,0,0,144,0,0,0,145,0,0,146,147,148,149,0,0,0,0],e.CFF.glyphByUnicode=function(r,s){for(var o=0;o<r.charset.length;o++)if(r.charset[o]==s)return o;return-1},e.CFF.glyphBySE=function(r,s){return s<0||s>255?-1:e.CFF.glyphByUnicode(r,e.CFF.tableSE[s])},e.CFF.readEncoding=function(r,s,o){e._bin;var a=[\".notdef\"],l=r[s];if(s++,l!=0)throw\"error: unknown encoding format: \"+l;var c=r[s];s++;for(var d=0;d<c;d++)a.push(r[s+d]);return a},e.CFF.readCharset=function(r,s,o){var a=e._bin,l=[\".notdef\"],c=r[s];if(s++,c==0)for(var d=0;d<o;d++){var h=a.readUshort(r,s);s+=2,l.push(h)}else{if(c!=1&&c!=2)throw\"error: format: \"+c;for(;l.length<o;){h=a.readUshort(r,s),s+=2;var p=0;for(c==1?(p=r[s],s++):(p=a.readUshort(r,s),s+=2),d=0;d<=p;d++)l.push(h),h++}}return l},e.CFF.readIndex=function(r,s,o){var a=e._bin,l=a.readUshort(r,s)+1,c=r[s+=2];if(s++,c==1)for(var d=0;d<l;d++)o.push(r[s+d]);else if(c==2)for(d=0;d<l;d++)o.push(a.readUshort(r,s+2*d));else if(c==3)for(d=0;d<l;d++)o.push(16777215&a.readUint(r,s+3*d-1));else if(l!=1)throw\"unsupported offset size: \"+c+\", count: \"+l;return(s+=l*c)-1},e.CFF.getCharString=function(r,s,o){var a=e._bin,l=r[s],c=r[s+1];r[s+2],r[s+3],r[s+4];var d=1,h=null,p=null;l<=20&&(h=l,d=1),l==12&&(h=100*l+c,d=2),21<=l&&l<=27&&(h=l,d=1),l==28&&(p=a.readShort(r,s+1),d=3),29<=l&&l<=31&&(h=l,d=1),32<=l&&l<=246&&(p=l-139,d=1),247<=l&&l<=250&&(p=256*(l-247)+c+108,d=2),251<=l&&l<=254&&(p=256*-(l-251)-c-108,d=2),l==255&&(p=a.readInt(r,s+1)/65535,d=5),o.val=p??\"o\"+h,o.size=d},e.CFF.readCharString=function(r,s,o){for(var a=s+o,l=e._bin,c=[];s<a;){var d=r[s],h=r[s+1];r[s+2],r[s+3],r[s+4];var p=1,m=null,v=null;d<=20&&(m=d,p=1),d==12&&(m=100*d+h,p=2),d!=19&&d!=20||(m=d,p=2),21<=d&&d<=27&&(m=d,p=1),d==28&&(v=l.readShort(r,s+1),p=3),29<=d&&d<=31&&(m=d,p=1),32<=d&&d<=246&&(v=d-139,p=1),247<=d&&d<=250&&(v=256*(d-247)+h+108,p=2),251<=d&&d<=254&&(v=256*-(d-251)-h-108,p=2),d==255&&(v=l.readInt(r,s+1)/65535,p=5),c.push(v??\"o\"+m),s+=p}return c},e.CFF.readDict=function(r,s,o){for(var a=e._bin,l={},c=[];s<o;){var d=r[s],h=r[s+1];r[s+2],r[s+3],r[s+4];var p=1,m=null,v=null;if(d==28&&(v=a.readShort(r,s+1),p=3),d==29&&(v=a.readInt(r,s+1),p=5),32<=d&&d<=246&&(v=d-139,p=1),247<=d&&d<=250&&(v=256*(d-247)+h+108,p=2),251<=d&&d<=254&&(v=256*-(d-251)-h-108,p=2),d==255)throw v=a.readInt(r,s+1)/65535,p=5,\"unknown number\";if(d==30){var y=[];for(p=1;;){var x=r[s+p];p++;var w=x>>4,_=15&x;if(w!=15&&y.push(w),_!=15&&y.push(_),_==15)break}for(var S=\"\",b=[0,1,2,3,4,5,6,7,8,9,\".\",\"e\",\"e-\",\"reserved\",\"-\",\"endOfNumber\"],T=0;T<y.length;T++)S+=b[y[T]];v=parseFloat(S)}d<=21&&(m=[\"version\",\"Notice\",\"FullName\",\"FamilyName\",\"Weight\",\"FontBBox\",\"BlueValues\",\"OtherBlues\",\"FamilyBlues\",\"FamilyOtherBlues\",\"StdHW\",\"StdVW\",\"escape\",\"UniqueID\",\"XUID\",\"charset\",\"Encoding\",\"CharStrings\",\"Private\",\"Subrs\",\"defaultWidthX\",\"nominalWidthX\"][d],p=1,d==12&&(m=[\"Copyright\",\"isFixedPitch\",\"ItalicAngle\",\"UnderlinePosition\",\"UnderlineThickness\",\"PaintType\",\"CharstringType\",\"FontMatrix\",\"StrokeWidth\",\"BlueScale\",\"BlueShift\",\"BlueFuzz\",\"StemSnapH\",\"StemSnapV\",\"ForceBold\",0,0,\"LanguageGroup\",\"ExpansionFactor\",\"initialRandomSeed\",\"SyntheticBase\",\"PostScript\",\"BaseFontName\",\"BaseFontBlend\",0,0,0,0,0,0,\"ROS\",\"CIDFontVersion\",\"CIDFontRevision\",\"CIDFontType\",\"CIDCount\",\"UIDBase\",\"FDArray\",\"FDSelect\",\"FontName\"][h],p=2)),m!=null?(l[m]=c.length==1?c[0]:c,c=[]):c.push(v),s+=p}return l},e.cmap={},e.cmap.parse=function(r,s,o){r=new Uint8Array(r.buffer,s,o),s=0;var a=e._bin,l={};a.readUshort(r,s),s+=2;var c=a.readUshort(r,s);s+=2;var d=[];l.tables=[];for(var h=0;h<c;h++){var p=a.readUshort(r,s);s+=2;var m=a.readUshort(r,s);s+=2;var v=a.readUint(r,s);s+=4;var y=\"p\"+p+\"e\"+m,x=d.indexOf(v);if(x==-1){var w;x=l.tables.length,d.push(v);var _=a.readUshort(r,v);_==0?w=e.cmap.parse0(r,v):_==4?w=e.cmap.parse4(r,v):_==6?w=e.cmap.parse6(r,v):_==12?w=e.cmap.parse12(r,v):console.debug(\"unknown format: \"+_,p,m,v),l.tables.push(w)}if(l[y]!=null)throw\"multiple tables for one platform+encoding\";l[y]=x}return l},e.cmap.parse0=function(r,s){var o=e._bin,a={};a.format=o.readUshort(r,s),s+=2;var l=o.readUshort(r,s);s+=2,o.readUshort(r,s),s+=2,a.map=[];for(var c=0;c<l-6;c++)a.map.push(r[s+c]);return a},e.cmap.parse4=function(r,s){var o=e._bin,a=s,l={};l.format=o.readUshort(r,s),s+=2;var c=o.readUshort(r,s);s+=2,o.readUshort(r,s),s+=2;var d=o.readUshort(r,s);s+=2;var h=d/2;l.searchRange=o.readUshort(r,s),s+=2,l.entrySelector=o.readUshort(r,s),s+=2,l.rangeShift=o.readUshort(r,s),s+=2,l.endCount=o.readUshorts(r,s,h),s+=2*h,s+=2,l.startCount=o.readUshorts(r,s,h),s+=2*h,l.idDelta=[];for(var p=0;p<h;p++)l.idDelta.push(o.readShort(r,s)),s+=2;for(l.idRangeOffset=o.readUshorts(r,s,h),s+=2*h,l.glyphIdArray=[];s<a+c;)l.glyphIdArray.push(o.readUshort(r,s)),s+=2;return l},e.cmap.parse6=function(r,s){var o=e._bin,a={};a.format=o.readUshort(r,s),s+=2,o.readUshort(r,s),s+=2,o.readUshort(r,s),s+=2,a.firstCode=o.readUshort(r,s),s+=2;var l=o.readUshort(r,s);s+=2,a.glyphIdArray=[];for(var c=0;c<l;c++)a.glyphIdArray.push(o.readUshort(r,s)),s+=2;return a},e.cmap.parse12=function(r,s){var o=e._bin,a={};a.format=o.readUshort(r,s),s+=2,s+=2,o.readUint(r,s),s+=4,o.readUint(r,s),s+=4;var l=o.readUint(r,s);s+=4,a.groups=[];for(var c=0;c<l;c++){var d=s+12*c,h=o.readUint(r,d+0),p=o.readUint(r,d+4),m=o.readUint(r,d+8);a.groups.push([h,p,m])}return a},e.glyf={},e.glyf.parse=function(r,s,o,a){for(var l=[],c=0;c<a.maxp.numGlyphs;c++)l.push(null);return l},e.glyf._parseGlyf=function(r,s){var o=e._bin,a=r._data,l=e._tabOffset(a,\"glyf\",r._offset)+r.loca[s];if(r.loca[s]==r.loca[s+1])return null;var c={};if(c.noc=o.readShort(a,l),l+=2,c.xMin=o.readShort(a,l),l+=2,c.yMin=o.readShort(a,l),l+=2,c.xMax=o.readShort(a,l),l+=2,c.yMax=o.readShort(a,l),l+=2,c.xMin>=c.xMax||c.yMin>=c.yMax)return null;if(c.noc>0){c.endPts=[];for(var d=0;d<c.noc;d++)c.endPts.push(o.readUshort(a,l)),l+=2;var h=o.readUshort(a,l);if(l+=2,a.length-l<h)return null;c.instructions=o.readBytes(a,l,h),l+=h;var p=c.endPts[c.noc-1]+1;for(c.flags=[],d=0;d<p;d++){var m=a[l];if(l++,c.flags.push(m),(8&m)!=0){var v=a[l];l++;for(var y=0;y<v;y++)c.flags.push(m),d++}}for(c.xs=[],d=0;d<p;d++){var x=(2&c.flags[d])!=0,w=(16&c.flags[d])!=0;x?(c.xs.push(w?a[l]:-a[l]),l++):w?c.xs.push(0):(c.xs.push(o.readShort(a,l)),l+=2)}for(c.ys=[],d=0;d<p;d++)x=(4&c.flags[d])!=0,w=(32&c.flags[d])!=0,x?(c.ys.push(w?a[l]:-a[l]),l++):w?c.ys.push(0):(c.ys.push(o.readShort(a,l)),l+=2);var _=0,S=0;for(d=0;d<p;d++)_+=c.xs[d],S+=c.ys[d],c.xs[d]=_,c.ys[d]=S}else{var b;c.parts=[];do{b=o.readUshort(a,l),l+=2;var T={m:{a:1,b:0,c:0,d:1,tx:0,ty:0},p1:-1,p2:-1};if(c.parts.push(T),T.glyphIndex=o.readUshort(a,l),l+=2,1&b){var A=o.readShort(a,l);l+=2;var L=o.readShort(a,l);l+=2}else A=o.readInt8(a,l),l++,L=o.readInt8(a,l),l++;2&b?(T.m.tx=A,T.m.ty=L):(T.p1=A,T.p2=L),8&b?(T.m.a=T.m.d=o.readF2dot14(a,l),l+=2):64&b?(T.m.a=o.readF2dot14(a,l),l+=2,T.m.d=o.readF2dot14(a,l),l+=2):128&b&&(T.m.a=o.readF2dot14(a,l),l+=2,T.m.b=o.readF2dot14(a,l),l+=2,T.m.c=o.readF2dot14(a,l),l+=2,T.m.d=o.readF2dot14(a,l),l+=2)}while(32&b);if(256&b){var C=o.readUshort(a,l);for(l+=2,c.instr=[],d=0;d<C;d++)c.instr.push(a[l]),l++}}return c},e.GPOS={},e.GPOS.parse=function(r,s,o,a){return e._lctf.parse(r,s,o,a,e.GPOS.subt)},e.GPOS.subt=function(r,s,o,a){var l=e._bin,c=o,d={};if(d.fmt=l.readUshort(r,o),o+=2,s==1||s==2||s==3||s==7||s==8&&d.fmt<=2){var h=l.readUshort(r,o);o+=2,d.coverage=e._lctf.readCoverage(r,h+c)}if(s==1&&d.fmt==1){var p=l.readUshort(r,o);o+=2;var m=e._lctf.numOfOnes(p);p!=0&&(d.pos=e.GPOS.readValueRecord(r,o,p))}else if(s==2&&d.fmt>=1&&d.fmt<=2){p=l.readUshort(r,o),o+=2;var v=l.readUshort(r,o);o+=2,m=e._lctf.numOfOnes(p);var y=e._lctf.numOfOnes(v);if(d.fmt==1){d.pairsets=[];var x=l.readUshort(r,o);o+=2;for(var w=0;w<x;w++){var _=c+l.readUshort(r,o);o+=2;var S=l.readUshort(r,_);_+=2;for(var b=[],T=0;T<S;T++){var A=l.readUshort(r,_);_+=2,p!=0&&(V=e.GPOS.readValueRecord(r,_,p),_+=2*m),v!=0&&(W=e.GPOS.readValueRecord(r,_,v),_+=2*y),b.push({gid2:A,val1:V,val2:W})}d.pairsets.push(b)}}if(d.fmt==2){var L=l.readUshort(r,o);o+=2;var C=l.readUshort(r,o);o+=2;var R=l.readUshort(r,o);o+=2;var k=l.readUshort(r,o);for(o+=2,d.classDef1=e._lctf.readClassDef(r,c+L),d.classDef2=e._lctf.readClassDef(r,c+C),d.matrix=[],w=0;w<R;w++){var H=[];for(T=0;T<k;T++){var V=null,W=null;p!=0&&(V=e.GPOS.readValueRecord(r,o,p),o+=2*m),v!=0&&(W=e.GPOS.readValueRecord(r,o,v),o+=2*y),H.push({val1:V,val2:W})}d.matrix.push(H)}}}else{if(s==9&&d.fmt==1){var F=l.readUshort(r,o);o+=2;var J=l.readUint(r,o);if(o+=4,a.ltype==9)a.ltype=F;else if(a.ltype!=F)throw\"invalid extension substitution\";return e.GPOS.subt(r,a.ltype,c+J)}console.debug(\"unsupported GPOS table LookupType\",s,\"format\",d.fmt)}return d},e.GPOS.readValueRecord=function(r,s,o){var a=e._bin,l=[];return l.push(1&o?a.readShort(r,s):0),s+=1&o?2:0,l.push(2&o?a.readShort(r,s):0),s+=2&o?2:0,l.push(4&o?a.readShort(r,s):0),s+=4&o?2:0,l.push(8&o?a.readShort(r,s):0),s+=8&o?2:0,l},e.GSUB={},e.GSUB.parse=function(r,s,o,a){return e._lctf.parse(r,s,o,a,e.GSUB.subt)},e.GSUB.subt=function(r,s,o,a){var l=e._bin,c=o,d={};if(d.fmt=l.readUshort(r,o),o+=2,s!=1&&s!=4&&s!=5&&s!=6)return null;if(s==1||s==4||s==5&&d.fmt<=2||s==6&&d.fmt<=2){var h=l.readUshort(r,o);o+=2,d.coverage=e._lctf.readCoverage(r,c+h)}if(s==1&&d.fmt>=1&&d.fmt<=2){if(d.fmt==1)d.delta=l.readShort(r,o),o+=2;else if(d.fmt==2){var p=l.readUshort(r,o);o+=2,d.newg=l.readUshorts(r,o,p),o+=2*d.newg.length}}else if(s==4){d.vals=[],p=l.readUshort(r,o),o+=2;for(var m=0;m<p;m++){var v=l.readUshort(r,o);o+=2,d.vals.push(e.GSUB.readLigatureSet(r,c+v))}}else if(s==5&&d.fmt==2){if(d.fmt==2){var y=l.readUshort(r,o);o+=2,d.cDef=e._lctf.readClassDef(r,c+y),d.scset=[];var x=l.readUshort(r,o);for(o+=2,m=0;m<x;m++){var w=l.readUshort(r,o);o+=2,d.scset.push(w==0?null:e.GSUB.readSubClassSet(r,c+w))}}}else if(s==6&&d.fmt==3){if(d.fmt==3){for(m=0;m<3;m++){p=l.readUshort(r,o),o+=2;for(var _=[],S=0;S<p;S++)_.push(e._lctf.readCoverage(r,c+l.readUshort(r,o+2*S)));o+=2*p,m==0&&(d.backCvg=_),m==1&&(d.inptCvg=_),m==2&&(d.ahedCvg=_)}p=l.readUshort(r,o),o+=2,d.lookupRec=e.GSUB.readSubstLookupRecords(r,o,p)}}else{if(s==7&&d.fmt==1){var b=l.readUshort(r,o);o+=2;var T=l.readUint(r,o);if(o+=4,a.ltype==9)a.ltype=b;else if(a.ltype!=b)throw\"invalid extension substitution\";return e.GSUB.subt(r,a.ltype,c+T)}console.debug(\"unsupported GSUB table LookupType\",s,\"format\",d.fmt)}return d},e.GSUB.readSubClassSet=function(r,s){var o=e._bin.readUshort,a=s,l=[],c=o(r,s);s+=2;for(var d=0;d<c;d++){var h=o(r,s);s+=2,l.push(e.GSUB.readSubClassRule(r,a+h))}return l},e.GSUB.readSubClassRule=function(r,s){var o=e._bin.readUshort,a={},l=o(r,s),c=o(r,s+=2);s+=2,a.input=[];for(var d=0;d<l-1;d++)a.input.push(o(r,s)),s+=2;return a.substLookupRecords=e.GSUB.readSubstLookupRecords(r,s,c),a},e.GSUB.readSubstLookupRecords=function(r,s,o){for(var a=e._bin.readUshort,l=[],c=0;c<o;c++)l.push(a(r,s),a(r,s+2)),s+=4;return l},e.GSUB.readChainSubClassSet=function(r,s){var o=e._bin,a=s,l=[],c=o.readUshort(r,s);s+=2;for(var d=0;d<c;d++){var h=o.readUshort(r,s);s+=2,l.push(e.GSUB.readChainSubClassRule(r,a+h))}return l},e.GSUB.readChainSubClassRule=function(r,s){for(var o=e._bin,a={},l=[\"backtrack\",\"input\",\"lookahead\"],c=0;c<l.length;c++){var d=o.readUshort(r,s);s+=2,c==1&&d--,a[l[c]]=o.readUshorts(r,s,d),s+=2*a[l[c]].length}return d=o.readUshort(r,s),s+=2,a.subst=o.readUshorts(r,s,2*d),s+=2*a.subst.length,a},e.GSUB.readLigatureSet=function(r,s){var o=e._bin,a=s,l=[],c=o.readUshort(r,s);s+=2;for(var d=0;d<c;d++){var h=o.readUshort(r,s);s+=2,l.push(e.GSUB.readLigature(r,a+h))}return l},e.GSUB.readLigature=function(r,s){var o=e._bin,a={chain:[]};a.nglyph=o.readUshort(r,s),s+=2;var l=o.readUshort(r,s);s+=2;for(var c=0;c<l-1;c++)a.chain.push(o.readUshort(r,s)),s+=2;return a},e.head={},e.head.parse=function(r,s,o){var a=e._bin,l={};return a.readFixed(r,s),s+=4,l.fontRevision=a.readFixed(r,s),s+=4,a.readUint(r,s),s+=4,a.readUint(r,s),s+=4,l.flags=a.readUshort(r,s),s+=2,l.unitsPerEm=a.readUshort(r,s),s+=2,l.created=a.readUint64(r,s),s+=8,l.modified=a.readUint64(r,s),s+=8,l.xMin=a.readShort(r,s),s+=2,l.yMin=a.readShort(r,s),s+=2,l.xMax=a.readShort(r,s),s+=2,l.yMax=a.readShort(r,s),s+=2,l.macStyle=a.readUshort(r,s),s+=2,l.lowestRecPPEM=a.readUshort(r,s),s+=2,l.fontDirectionHint=a.readShort(r,s),s+=2,l.indexToLocFormat=a.readShort(r,s),s+=2,l.glyphDataFormat=a.readShort(r,s),s+=2,l},e.hhea={},e.hhea.parse=function(r,s,o){var a=e._bin,l={};return a.readFixed(r,s),s+=4,l.ascender=a.readShort(r,s),s+=2,l.descender=a.readShort(r,s),s+=2,l.lineGap=a.readShort(r,s),s+=2,l.advanceWidthMax=a.readUshort(r,s),s+=2,l.minLeftSideBearing=a.readShort(r,s),s+=2,l.minRightSideBearing=a.readShort(r,s),s+=2,l.xMaxExtent=a.readShort(r,s),s+=2,l.caretSlopeRise=a.readShort(r,s),s+=2,l.caretSlopeRun=a.readShort(r,s),s+=2,l.caretOffset=a.readShort(r,s),s+=2,s+=8,l.metricDataFormat=a.readShort(r,s),s+=2,l.numberOfHMetrics=a.readUshort(r,s),s+=2,l},e.hmtx={},e.hmtx.parse=function(r,s,o,a){for(var l=e._bin,c={aWidth:[],lsBearing:[]},d=0,h=0,p=0;p<a.maxp.numGlyphs;p++)p<a.hhea.numberOfHMetrics&&(d=l.readUshort(r,s),s+=2,h=l.readShort(r,s),s+=2),c.aWidth.push(d),c.lsBearing.push(h);return c},e.kern={},e.kern.parse=function(r,s,o,a){var l=e._bin,c=l.readUshort(r,s);if(s+=2,c==1)return e.kern.parseV1(r,s-2,o,a);var d=l.readUshort(r,s);s+=2;for(var h={glyph1:[],rval:[]},p=0;p<d;p++){s+=2,o=l.readUshort(r,s),s+=2;var m=l.readUshort(r,s);s+=2;var v=m>>>8;if((v&=15)!=0)throw\"unknown kern table format: \"+v;s=e.kern.readFormat0(r,s,h)}return h},e.kern.parseV1=function(r,s,o,a){var l=e._bin;l.readFixed(r,s),s+=4;var c=l.readUint(r,s);s+=4;for(var d={glyph1:[],rval:[]},h=0;h<c;h++){l.readUint(r,s),s+=4;var p=l.readUshort(r,s);s+=2,l.readUshort(r,s),s+=2;var m=p>>>8;if((m&=15)!=0)throw\"unknown kern table format: \"+m;s=e.kern.readFormat0(r,s,d)}return d},e.kern.readFormat0=function(r,s,o){var a=e._bin,l=-1,c=a.readUshort(r,s);s+=2,a.readUshort(r,s),s+=2,a.readUshort(r,s),s+=2,a.readUshort(r,s),s+=2;for(var d=0;d<c;d++){var h=a.readUshort(r,s);s+=2;var p=a.readUshort(r,s);s+=2;var m=a.readShort(r,s);s+=2,h!=l&&(o.glyph1.push(h),o.rval.push({glyph2:[],vals:[]}));var v=o.rval[o.rval.length-1];v.glyph2.push(p),v.vals.push(m),l=h}return s},e.loca={},e.loca.parse=function(r,s,o,a){var l=e._bin,c=[],d=a.head.indexToLocFormat,h=a.maxp.numGlyphs+1;if(d==0)for(var p=0;p<h;p++)c.push(l.readUshort(r,s+(p<<1))<<1);if(d==1)for(p=0;p<h;p++)c.push(l.readUint(r,s+(p<<2)));return c},e.maxp={},e.maxp.parse=function(r,s,o){var a=e._bin,l={},c=a.readUint(r,s);return s+=4,l.numGlyphs=a.readUshort(r,s),s+=2,c==65536&&(l.maxPoints=a.readUshort(r,s),s+=2,l.maxContours=a.readUshort(r,s),s+=2,l.maxCompositePoints=a.readUshort(r,s),s+=2,l.maxCompositeContours=a.readUshort(r,s),s+=2,l.maxZones=a.readUshort(r,s),s+=2,l.maxTwilightPoints=a.readUshort(r,s),s+=2,l.maxStorage=a.readUshort(r,s),s+=2,l.maxFunctionDefs=a.readUshort(r,s),s+=2,l.maxInstructionDefs=a.readUshort(r,s),s+=2,l.maxStackElements=a.readUshort(r,s),s+=2,l.maxSizeOfInstructions=a.readUshort(r,s),s+=2,l.maxComponentElements=a.readUshort(r,s),s+=2,l.maxComponentDepth=a.readUshort(r,s),s+=2),l},e.name={},e.name.parse=function(r,s,o){var a=e._bin,l={};a.readUshort(r,s),s+=2;var c=a.readUshort(r,s);s+=2,a.readUshort(r,s);for(var d,h=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"ID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"urlVendor\",\"urlDesigner\",\"licence\",\"licenceURL\",\"---\",\"typoFamilyName\",\"typoSubfamilyName\",\"compatibleFull\",\"sampleText\",\"postScriptCID\",\"wwsFamilyName\",\"wwsSubfamilyName\",\"lightPalette\",\"darkPalette\"],p=s+=2,m=0;m<c;m++){var v=a.readUshort(r,s);s+=2;var y=a.readUshort(r,s);s+=2;var x=a.readUshort(r,s);s+=2;var w=a.readUshort(r,s);s+=2;var _=a.readUshort(r,s);s+=2;var S=a.readUshort(r,s);s+=2;var b,T=h[w],A=p+12*c+S;if(v==0)b=a.readUnicode(r,A,_/2);else if(v==3&&y==0)b=a.readUnicode(r,A,_/2);else if(y==0)b=a.readASCII(r,A,_);else if(y==1)b=a.readUnicode(r,A,_/2);else if(y==3)b=a.readUnicode(r,A,_/2);else{if(v!=1)throw\"unknown encoding \"+y+\", platformID: \"+v;b=a.readASCII(r,A,_),console.debug(\"reading unknown MAC encoding \"+y+\" as ASCII\")}var L=\"p\"+v+\",\"+x.toString(16);l[L]==null&&(l[L]={}),l[L][T!==void 0?T:w]=b,l[L]._lang=x}for(var C in l)if(l[C].postScriptName!=null&&l[C]._lang==1033)return l[C];for(var C in l)if(l[C].postScriptName!=null&&l[C]._lang==0)return l[C];for(var C in l)if(l[C].postScriptName!=null&&l[C]._lang==3084)return l[C];for(var C in l)if(l[C].postScriptName!=null)return l[C];for(var C in l){d=C;break}return console.debug(\"returning name table with languageID \"+l[d]._lang),l[d]},e[\"OS/2\"]={},e[\"OS/2\"].parse=function(r,s,o){var a=e._bin.readUshort(r,s);s+=2;var l={};if(a==0)e[\"OS/2\"].version0(r,s,l);else if(a==1)e[\"OS/2\"].version1(r,s,l);else if(a==2||a==3||a==4)e[\"OS/2\"].version2(r,s,l);else{if(a!=5)throw\"unknown OS/2 table version: \"+a;e[\"OS/2\"].version5(r,s,l)}return l},e[\"OS/2\"].version0=function(r,s,o){var a=e._bin;return o.xAvgCharWidth=a.readShort(r,s),s+=2,o.usWeightClass=a.readUshort(r,s),s+=2,o.usWidthClass=a.readUshort(r,s),s+=2,o.fsType=a.readUshort(r,s),s+=2,o.ySubscriptXSize=a.readShort(r,s),s+=2,o.ySubscriptYSize=a.readShort(r,s),s+=2,o.ySubscriptXOffset=a.readShort(r,s),s+=2,o.ySubscriptYOffset=a.readShort(r,s),s+=2,o.ySuperscriptXSize=a.readShort(r,s),s+=2,o.ySuperscriptYSize=a.readShort(r,s),s+=2,o.ySuperscriptXOffset=a.readShort(r,s),s+=2,o.ySuperscriptYOffset=a.readShort(r,s),s+=2,o.yStrikeoutSize=a.readShort(r,s),s+=2,o.yStrikeoutPosition=a.readShort(r,s),s+=2,o.sFamilyClass=a.readShort(r,s),s+=2,o.panose=a.readBytes(r,s,10),s+=10,o.ulUnicodeRange1=a.readUint(r,s),s+=4,o.ulUnicodeRange2=a.readUint(r,s),s+=4,o.ulUnicodeRange3=a.readUint(r,s),s+=4,o.ulUnicodeRange4=a.readUint(r,s),s+=4,o.achVendID=[a.readInt8(r,s),a.readInt8(r,s+1),a.readInt8(r,s+2),a.readInt8(r,s+3)],s+=4,o.fsSelection=a.readUshort(r,s),s+=2,o.usFirstCharIndex=a.readUshort(r,s),s+=2,o.usLastCharIndex=a.readUshort(r,s),s+=2,o.sTypoAscender=a.readShort(r,s),s+=2,o.sTypoDescender=a.readShort(r,s),s+=2,o.sTypoLineGap=a.readShort(r,s),s+=2,o.usWinAscent=a.readUshort(r,s),s+=2,o.usWinDescent=a.readUshort(r,s),s+=2},e[\"OS/2\"].version1=function(r,s,o){var a=e._bin;return s=e[\"OS/2\"].version0(r,s,o),o.ulCodePageRange1=a.readUint(r,s),s+=4,o.ulCodePageRange2=a.readUint(r,s),s+=4},e[\"OS/2\"].version2=function(r,s,o){var a=e._bin;return s=e[\"OS/2\"].version1(r,s,o),o.sxHeight=a.readShort(r,s),s+=2,o.sCapHeight=a.readShort(r,s),s+=2,o.usDefault=a.readUshort(r,s),s+=2,o.usBreak=a.readUshort(r,s),s+=2,o.usMaxContext=a.readUshort(r,s),s+=2},e[\"OS/2\"].version5=function(r,s,o){var a=e._bin;return s=e[\"OS/2\"].version2(r,s,o),o.usLowerOpticalPointSize=a.readUshort(r,s),s+=2,o.usUpperOpticalPointSize=a.readUshort(r,s),s+=2},e.post={},e.post.parse=function(r,s,o){var a=e._bin,l={};return l.version=a.readFixed(r,s),s+=4,l.italicAngle=a.readFixed(r,s),s+=4,l.underlinePosition=a.readShort(r,s),s+=2,l.underlineThickness=a.readShort(r,s),s+=2,l},e==null&&(e={}),e.U==null&&(e.U={}),e.U.codeToGlyph=function(r,s){var o=r.cmap,a=-1;if(o.p0e4!=null?a=o.p0e4:o.p3e1!=null?a=o.p3e1:o.p1e0!=null?a=o.p1e0:o.p0e3!=null&&(a=o.p0e3),a==-1)throw\"no familiar platform and encoding!\";var l=o.tables[a];if(l.format==0)return s>=l.map.length?0:l.map[s];if(l.format==4){for(var c=-1,d=0;d<l.endCount.length;d++)if(s<=l.endCount[d]){c=d;break}return c==-1||l.startCount[c]>s?0:65535&(l.idRangeOffset[c]!=0?l.glyphIdArray[s-l.startCount[c]+(l.idRangeOffset[c]>>1)-(l.idRangeOffset.length-c)]:s+l.idDelta[c])}if(l.format==12){if(s>l.groups[l.groups.length-1][1])return 0;for(d=0;d<l.groups.length;d++){var h=l.groups[d];if(h[0]<=s&&s<=h[1])return h[2]+(s-h[0])}return 0}throw\"unknown cmap table format \"+l.format},e.U.glyphToPath=function(r,s){var o={cmds:[],crds:[]};if(r.SVG&&r.SVG.entries[s]){var a=r.SVG.entries[s];return a==null?o:(typeof a==\"string\"&&(a=e.SVG.toPath(a),r.SVG.entries[s]=a),a)}if(r.CFF){var l={x:0,y:0,stack:[],nStems:0,haveWidth:!1,width:r.CFF.Private?r.CFF.Private.defaultWidthX:0,open:!1},c=r.CFF,d=r.CFF.Private;if(c.ROS){for(var h=0;c.FDSelect[h+2]<=s;)h+=2;d=c.FDArray[c.FDSelect[h+1]].Private}e.U._drawCFF(r.CFF.CharStrings[s],l,c,d,o)}else r.glyf&&e.U._drawGlyf(s,r,o);return o},e.U._drawGlyf=function(r,s,o){var a=s.glyf[r];a==null&&(a=s.glyf[r]=e.glyf._parseGlyf(s,r)),a!=null&&(a.noc>-1?e.U._simpleGlyph(a,o):e.U._compoGlyph(a,s,o))},e.U._simpleGlyph=function(r,s){for(var o=0;o<r.noc;o++){for(var a=o==0?0:r.endPts[o-1]+1,l=r.endPts[o],c=a;c<=l;c++){var d=c==a?l:c-1,h=c==l?a:c+1,p=1&r.flags[c],m=1&r.flags[d],v=1&r.flags[h],y=r.xs[c],x=r.ys[c];if(c==a)if(p){if(!m){e.U.P.moveTo(s,y,x);continue}e.U.P.moveTo(s,r.xs[d],r.ys[d])}else m?e.U.P.moveTo(s,r.xs[d],r.ys[d]):e.U.P.moveTo(s,(r.xs[d]+y)/2,(r.ys[d]+x)/2);p?m&&e.U.P.lineTo(s,y,x):v?e.U.P.qcurveTo(s,y,x,r.xs[h],r.ys[h]):e.U.P.qcurveTo(s,y,x,(y+r.xs[h])/2,(x+r.ys[h])/2)}e.U.P.closePath(s)}},e.U._compoGlyph=function(r,s,o){for(var a=0;a<r.parts.length;a++){var l={cmds:[],crds:[]},c=r.parts[a];e.U._drawGlyf(c.glyphIndex,s,l);for(var d=c.m,h=0;h<l.crds.length;h+=2){var p=l.crds[h],m=l.crds[h+1];o.crds.push(p*d.a+m*d.b+d.tx),o.crds.push(p*d.c+m*d.d+d.ty)}for(h=0;h<l.cmds.length;h++)o.cmds.push(l.cmds[h])}},e.U._getGlyphClass=function(r,s){var o=e._lctf.getInterval(s,r);return o==-1?0:s[o+2]},e.U.getPairAdjustment=function(r,s,o){var a=!1;if(r.GPOS)for(var l=r.GPOS,c=l.lookupList,d=l.featureList,h=[],p=0;p<d.length;p++){var m=d[p];if(m.tag==\"kern\"){a=!0;for(var v=0;v<m.tab.length;v++)if(!h[m.tab[v]]){h[m.tab[v]]=!0;for(var y=c[m.tab[v]],x=0;x<y.tabs.length;x++)if(y.tabs[x]!=null){var w,_=y.tabs[x];if((!_.coverage||(w=e._lctf.coverageIndex(_.coverage,s))!=-1)&&y.ltype!=1){if(y.ltype==2){var S=null;if(_.fmt==1){var b=_.pairsets[w];for(p=0;p<b.length;p++)b[p].gid2==o&&(S=b[p])}else if(_.fmt==2){var T=e.U._getGlyphClass(s,_.classDef1),A=e.U._getGlyphClass(o,_.classDef2);S=_.matrix[T][A]}if(S){var L=0;return S.val1&&S.val1[2]&&(L+=S.val1[2]),S.val2&&S.val2[0]&&(L+=S.val2[0]),L}}}}}}}if(r.kern&&!a){var C=r.kern.glyph1.indexOf(s);if(C!=-1){var R=r.kern.rval[C].glyph2.indexOf(o);if(R!=-1)return r.kern.rval[C].vals[R]}}return 0},e.U._applySubs=function(r,s,o,a){for(var l=r.length-s-1,c=0;c<o.tabs.length;c++)if(o.tabs[c]!=null){var d,h=o.tabs[c];if(!h.coverage||(d=e._lctf.coverageIndex(h.coverage,r[s]))!=-1){if(o.ltype==1)r[s],h.fmt==1?r[s]=r[s]+h.delta:r[s]=h.newg[d];else if(o.ltype==4)for(var p=h.vals[d],m=0;m<p.length;m++){var v=p[m],y=v.chain.length;if(!(y>l)){for(var x=!0,w=0,_=0;_<y;_++){for(;r[s+w+(1+_)]==-1;)w++;v.chain[_]!=r[s+w+(1+_)]&&(x=!1)}if(x){for(r[s]=v.nglyph,_=0;_<y+w;_++)r[s+_+1]=-1;break}}}else if(o.ltype==5&&h.fmt==2)for(var S=e._lctf.getInterval(h.cDef,r[s]),b=h.cDef[S+2],T=h.scset[b],A=0;A<T.length;A++){var L=T[A],C=L.input;if(!(C.length>l)){for(x=!0,_=0;_<C.length;_++){var R=e._lctf.getInterval(h.cDef,r[s+1+_]);if(S==-1&&h.cDef[R+2]!=C[_]){x=!1;break}}if(x){var k=L.substLookupRecords;for(m=0;m<k.length;m+=2)k[m],k[m+1]}}}else if(o.ltype==6&&h.fmt==3){if(!e.U._glsCovered(r,h.backCvg,s-h.backCvg.length)||!e.U._glsCovered(r,h.inptCvg,s)||!e.U._glsCovered(r,h.ahedCvg,s+h.inptCvg.length))continue;var H=h.lookupRec;for(A=0;A<H.length;A+=2){S=H[A];var V=a[H[A+1]];e.U._applySubs(r,s+S,V,a)}}}}},e.U._glsCovered=function(r,s,o){for(var a=0;a<s.length;a++)if(e._lctf.coverageIndex(s[a],r[o+a])==-1)return!1;return!0},e.U.glyphsToPath=function(r,s,o){for(var a={cmds:[],crds:[]},l=0,c=0;c<s.length;c++){var d=s[c];if(d!=-1){for(var h=c<s.length-1&&s[c+1]!=-1?s[c+1]:0,p=e.U.glyphToPath(r,d),m=0;m<p.crds.length;m+=2)a.crds.push(p.crds[m]+l),a.crds.push(p.crds[m+1]);for(o&&a.cmds.push(o),m=0;m<p.cmds.length;m++)a.cmds.push(p.cmds[m]);o&&a.cmds.push(\"X\"),l+=r.hmtx.aWidth[d],c<s.length-1&&(l+=e.U.getPairAdjustment(r,d,h))}}return a},e.U.P={},e.U.P.moveTo=function(r,s,o){r.cmds.push(\"M\"),r.crds.push(s,o)},e.U.P.lineTo=function(r,s,o){r.cmds.push(\"L\"),r.crds.push(s,o)},e.U.P.curveTo=function(r,s,o,a,l,c,d){r.cmds.push(\"C\"),r.crds.push(s,o,a,l,c,d)},e.U.P.qcurveTo=function(r,s,o,a,l){r.cmds.push(\"Q\"),r.crds.push(s,o,a,l)},e.U.P.closePath=function(r){r.cmds.push(\"Z\")},e.U._drawCFF=function(r,s,o,a,l){for(var c=s.stack,d=s.nStems,h=s.haveWidth,p=s.width,m=s.open,v=0,y=s.x,x=s.y,w=0,_=0,S=0,b=0,T=0,A=0,L=0,C=0,R=0,k=0,H={val:0,size:0};v<r.length;){e.CFF.getCharString(r,v,H);var V=H.val;if(v+=H.size,V==\"o1\"||V==\"o18\")c.length%2!=0&&!h&&(p=c.shift()+a.nominalWidthX),d+=c.length>>1,c.length=0,h=!0;else if(V==\"o3\"||V==\"o23\")c.length%2!=0&&!h&&(p=c.shift()+a.nominalWidthX),d+=c.length>>1,c.length=0,h=!0;else if(V==\"o4\")c.length>1&&!h&&(p=c.shift()+a.nominalWidthX,h=!0),m&&e.U.P.closePath(l),x+=c.pop(),e.U.P.moveTo(l,y,x),m=!0;else if(V==\"o5\")for(;c.length>0;)y+=c.shift(),x+=c.shift(),e.U.P.lineTo(l,y,x);else if(V==\"o6\"||V==\"o7\")for(var W=c.length,F=V==\"o6\",J=0;J<W;J++){var K=c.shift();F?y+=K:x+=K,F=!F,e.U.P.lineTo(l,y,x)}else if(V==\"o8\"||V==\"o24\"){W=c.length;for(var ue=0;ue+6<=W;)w=y+c.shift(),_=x+c.shift(),S=w+c.shift(),b=_+c.shift(),y=S+c.shift(),x=b+c.shift(),e.U.P.curveTo(l,w,_,S,b,y,x),ue+=6;V==\"o24\"&&(y+=c.shift(),x+=c.shift(),e.U.P.lineTo(l,y,x))}else{if(V==\"o11\")break;if(V==\"o1234\"||V==\"o1235\"||V==\"o1236\"||V==\"o1237\")V==\"o1234\"&&(_=x,S=(w=y+c.shift())+c.shift(),k=b=_+c.shift(),A=b,C=x,y=(L=(T=(R=S+c.shift())+c.shift())+c.shift())+c.shift(),e.U.P.curveTo(l,w,_,S,b,R,k),e.U.P.curveTo(l,T,A,L,C,y,x)),V==\"o1235\"&&(w=y+c.shift(),_=x+c.shift(),S=w+c.shift(),b=_+c.shift(),R=S+c.shift(),k=b+c.shift(),T=R+c.shift(),A=k+c.shift(),L=T+c.shift(),C=A+c.shift(),y=L+c.shift(),x=C+c.shift(),c.shift(),e.U.P.curveTo(l,w,_,S,b,R,k),e.U.P.curveTo(l,T,A,L,C,y,x)),V==\"o1236\"&&(w=y+c.shift(),_=x+c.shift(),S=w+c.shift(),k=b=_+c.shift(),A=b,L=(T=(R=S+c.shift())+c.shift())+c.shift(),C=A+c.shift(),y=L+c.shift(),e.U.P.curveTo(l,w,_,S,b,R,k),e.U.P.curveTo(l,T,A,L,C,y,x)),V==\"o1237\"&&(w=y+c.shift(),_=x+c.shift(),S=w+c.shift(),b=_+c.shift(),R=S+c.shift(),k=b+c.shift(),T=R+c.shift(),A=k+c.shift(),L=T+c.shift(),C=A+c.shift(),Math.abs(L-y)>Math.abs(C-x)?y=L+c.shift():x=C+c.shift(),e.U.P.curveTo(l,w,_,S,b,R,k),e.U.P.curveTo(l,T,A,L,C,y,x));else if(V==\"o14\"){if(c.length>0&&!h&&(p=c.shift()+o.nominalWidthX,h=!0),c.length==4){var O=c.shift(),U=c.shift(),X=c.shift(),D=c.shift(),G=e.CFF.glyphBySE(o,X),$=e.CFF.glyphBySE(o,D);e.U._drawCFF(o.CharStrings[G],s,o,a,l),s.x=O,s.y=U,e.U._drawCFF(o.CharStrings[$],s,o,a,l)}m&&(e.U.P.closePath(l),m=!1)}else if(V==\"o19\"||V==\"o20\")c.length%2!=0&&!h&&(p=c.shift()+a.nominalWidthX),d+=c.length>>1,c.length=0,h=!0,v+=d+7>>3;else if(V==\"o21\")c.length>2&&!h&&(p=c.shift()+a.nominalWidthX,h=!0),x+=c.pop(),y+=c.pop(),m&&e.U.P.closePath(l),e.U.P.moveTo(l,y,x),m=!0;else if(V==\"o22\")c.length>1&&!h&&(p=c.shift()+a.nominalWidthX,h=!0),y+=c.pop(),m&&e.U.P.closePath(l),e.U.P.moveTo(l,y,x),m=!0;else if(V==\"o25\"){for(;c.length>6;)y+=c.shift(),x+=c.shift(),e.U.P.lineTo(l,y,x);w=y+c.shift(),_=x+c.shift(),S=w+c.shift(),b=_+c.shift(),y=S+c.shift(),x=b+c.shift(),e.U.P.curveTo(l,w,_,S,b,y,x)}else if(V==\"o26\")for(c.length%2&&(y+=c.shift());c.length>0;)w=y,_=x+c.shift(),y=S=w+c.shift(),x=(b=_+c.shift())+c.shift(),e.U.P.curveTo(l,w,_,S,b,y,x);else if(V==\"o27\")for(c.length%2&&(x+=c.shift());c.length>0;)_=x,S=(w=y+c.shift())+c.shift(),b=_+c.shift(),y=S+c.shift(),x=b,e.U.P.curveTo(l,w,_,S,b,y,x);else if(V==\"o10\"||V==\"o29\"){var ne=V==\"o10\"?a:o;if(c.length==0)console.debug(\"error: empty stack\");else{var ie=c.pop(),q=ne.Subrs[ie+ne.Bias];s.x=y,s.y=x,s.nStems=d,s.haveWidth=h,s.width=p,s.open=m,e.U._drawCFF(q,s,o,a,l),y=s.x,x=s.y,d=s.nStems,h=s.haveWidth,p=s.width,m=s.open}}else if(V==\"o30\"||V==\"o31\"){var fe=c.length,de=(ue=0,V==\"o31\");for(ue+=fe-(W=-3&fe);ue<W;)de?(_=x,S=(w=y+c.shift())+c.shift(),x=(b=_+c.shift())+c.shift(),W-ue==5?(y=S+c.shift(),ue++):y=S,de=!1):(w=y,_=x+c.shift(),S=w+c.shift(),b=_+c.shift(),y=S+c.shift(),W-ue==5?(x=b+c.shift(),ue++):x=b,de=!0),e.U.P.curveTo(l,w,_,S,b,y,x),ue+=4}else{if((V+\"\").charAt(0)==\"o\")throw console.debug(\"Unknown operation: \"+V,r),V;c.push(V)}}}s.x=y,s.y=x,s.nStems=d,s.haveWidth=h,s.width=p,s.open=m};var t=e,i={Typr:t};return n.Typr=t,n.default=i,Object.defineProperty(n,\"__esModule\",{value:!0}),n}({}).Typr}", "static transient final protected internal function m47() {}", "static transient private internal function m58() {}", "static transient final private protected internal function m40() {}", "static private public function m119() {}", "static final private protected internal function m103() {}", "function _____SHARED_functions_____(){}", "static transient private protected public internal function m54() {}", "static final protected internal function m110() {}", "setFromXML(boneel) {\nvar bname, brot, btrans, c, pel, rel, xyz, xyzw;\n//---------\nbtrans = null;\nbrot = null;\nbname = boneel.getAttribute(\"name\");\npel = (boneel.getElementsByTagName(\"position\")).item(0);\nrel = (boneel.getElementsByTagName(\"qRotation\")).item(0);\nif (pel) {\nxyz = [\"x\", \"y\", \"z\"];\nbtrans = (function() {\nvar j, len, results;\nresults = [];\nfor (j = 0, len = xyz.length; j < len; j++) {\nc = xyz[j];\nresults.push(Number(pel.getAttribute(c)));\n}\nreturn results;\n})();\n}\nif (rel) {\nxyzw = [\"x\", \"y\", \"z\", \"w\"];\nbrot = (function() {\nvar j, len, results;\nresults = [];\nfor (j = 0, len = xyzw.length; j < len; j++) {\nc = xyzw[j];\nresults.push(Number(rel.getAttribute(c)));\n}\nreturn results;\n})();\n}\nreturn this.setFromStr(bname, brot, btrans);\n}", "function o0(stdlib,o1,buffer) {\n try {\nthis.o559 = this.o560;\n}catch(e){}\n var o2 = o254 = [].fround;\n //views\n var charCodeAt =new Map.prototype.keys.call(buffer);\n\n function o4(){\n var o5 = 0.5\n var o35 = { writable: false, value: 1, configurable: false, enumerable: false };\n try {\no849 = o6;\n}catch(e){}\n try {\nreturn +(o0[o1])\n}catch(e){}\n }\n try {\nreturn o4;\n}catch(e){}\n}", "function o0(stdlib,o1,buffer) {\n try {\no8[4294967294];\n}catch(e){}\n function o104(o49, o50, o73) {\n try {\no95(o49, o50, o73, this);\n}catch(e){}\n\n try {\no489.o767++;\n}catch(e){}\n\n try {\nif (o97 === o49) {\n try {\nreturn true;\n}catch(e){}\n }\n}catch(e){}\n\n try {\nreturn false;\n}catch(e){}\n };\n //views\n var o3 =this;\n\n function o4(){\n var o30\n var o6 = o2(1.5);\n try {\no3[1] = o6;\n}catch(e){}\n try {\nreturn +(o3[1])\n}catch(e){}\n }\n try {\nreturn o4;\n}catch(e){}\n}", "static transient final protected public internal function m46() {}", "function Scdr() {\r\n}", "transient private public function m183() {}", "static final private protected public internal function m102() {}", "function wR(a,b){this.Fb=[];this.HF=a;this.YE=b||null;this.Pq=this.un=!1;this.ai=void 0;this.Gz=this.AK=this.ez=!1;this.uu=0;this.cb=null;this.az=0}", "function PinYin(){function z(){function g(){this.Layer=this.Index=0;this.End=!1;this.Char=\"\";this.Results=[];this.m_values={};this.Parent=this.Failure=null;this.Add=function(a){if(null!=this.m_values[a])return this.m_values[a];var b=new g;b.Parent=this;b.Char=a;return this.m_values[a]=b};this.SetResults=function(a){0==this.End&&(this.End=!0);this.Results.push(a)}}function c(){this.End=!1;this.Results=[];this.m_values={};this.minflag=65535;this.maxflag=0;this.Add=function(a,b){this.minflag>a&&(this.minflag=a);this.maxflag<a&&(this.maxflag=a);this.m_values[a]=b};this.SetResults=function(a){0==this.End&&(this.End=!0);-1==this.Results.indexOf(a)&&this.Results.push(a)};this.HasKey=function(a){return void 0!=this.m_values[a]};this.TryGetValue=function(a){return this.minflag<=a&&this.maxflag>=a?this.m_values[a]:null}}var e=[],b=[];this.SetKeywords=function(a){b=a;a=new g;var h=[];h.push(a);for(var k={},f=0;f<b.length;f++){for(var n=b[f],d=a,p=0;p<n.length;p++)d=d.Add(n.charCodeAt(p)),0==d.Layer&&(d.Layer=p+1,k[d.Layer]||(k[d.Layer]=[]),k[d.Layer].push(d));d.SetResults(f)}for(var l in k)for(d=k[l],f=0;f<d.length;f++)h.push(d[f]);f=[];for(l in a.m_values)if(0!=a.m_values.hasOwnProperty(l)){d=a.m_values[l];d.Failure=a;for(var v in d.m_values)0!=d.m_values.hasOwnProperty(v)&&f.push(d.m_values[v])}for(;0!=f.length;){v=[];for(l in f)if(0!=f.hasOwnProperty(l)){d=f[l];k=d.Parent.Failure;for(n=d.Char;null!=k&&!k.m_values[n];)k=k.Failure;if(null==k)d.Failure=a;else{d.Failure=k.m_values[n];for(var m in d.Failure.Results)0!=d.Failure.Results.hasOwnProperty(m)&&d.SetResults(d.Failure.Results[m])}for(var q in d.m_values)0!=d.m_values.hasOwnProperty(q)&&v.push(d.m_values[q])}f=v}a.Failure=a;for(f=0;f<h.length;f++)h[f].Index=f;l=[];for(f=0;f<h.length;f++)l.push(new c);for(f=0;f<l.length;f++){m=h[f];q=l[f];for(var t in m.m_values)0!=m.m_values.hasOwnProperty(t)&&(d=m.m_values[t].Index,q.Add(t,l[d]));for(d=0;d<m.Results.length;d++)q.SetResults(m.Results[d]);if(m.Failure!=a){for(var u in m.Failure.m_values)0!=m.Failure.m_values.hasOwnProperty(u)&&0==q.HasKey(u)&&(d=m.Failure.m_values[u].Index,q.Add(u,l[d]));for(d=0;d<m.Failure.Results.length;d++)q.SetResults(m.Failure.Results[d])}}t=[];for(u=0;65535>u;u++)t.push(null);for(var r in l[0].m_values)0!=l[0].m_values.hasOwnProperty(r)&&(t[r]=l[0].m_values[r]);e=t};this.FindAll=function(a){for(var c=null,g=[],f=0;f<a.length;f++){var n=a.charCodeAt(f);null==c?c=e[n]:(c=c.TryGetValue(n))||(c=e[n]);if(null!=c&&c.End)for(n=0;n<c.Results.length;n++){var d=c.Results[n];g.push({Keyword:b[d],Success:!0,End:f,Start:f+1-b[d].length,Index:d})}}return g}}var x={\"\\u827e\":[15],\"\\u5b89\":[29],\"\\u6556\":[43],\"\\u5df4\":[59],\"\\u767d\":[63],\"\\u67cf\":[67],\"\\u73ed\":[79],\"\\u5305\":[99],\"\\u66b4\":[95],\"\\u9c8d\":[95],\"\\u8d1d\":[103],\"\\u8d32\":[115],\"\\u6bd5\":[131],\"\\u8fb9\":[143],\"\\u535e\":[139],\"\\u522b\":[157],\"\\u90b4\":[175],\"\\u8584\":[181],\"\\u535c\":[195],\"\\u6b65\":[193],\"\\u8521\":[211],\"\\u82cd\":[233],\"\\u66f9\":[237],\"\\u5c91\":[251],\"\\u67f4\":[275],\"\\u5355\\u4e8e\":[285,3237],\"\\u660c\":[301],\"\\u5e38\":[295],\"\\u5de2\":[305],\"\\u6641\":[305],\"\\u8f66\":[319],\"\\u9648\":[323],\"\\u6210\":[333],\"\\u7a0b\":[333],\"\\u6c60\":[343],\"\\u5145\":[359],\"\\u50a8\":[377],\"\\u891a\":[377],\"\\u6df3\\u4e8e\":[427,3237],\"\\u4ece\":[451],\"\\u5d14\":[485],\"\\u6234\":[519],\"\\u515a\":[537],\"\\u9093\":[567],\"\\u72c4\":[575],\"\\u7b2c\\u4e94\":[577,2973],\"\\u5201\":[601],\"\\u4e01\":[617],\"\\u4e1c\\u65b9\":[631,751],\"\\u4e1c\":[631],\"\\u8463\":[629],\"\\u7aa6\":[635],\"\\u90fd\":[649],\"\\u5835\":[647],\"\\u675c\":[645],\"\\u6bb5\":[653],\"\\u9102\":[689],\"\\u6a0a\":[735],\"\\u8303\":[737],\"\\u65b9\":[751],\"\\u623f\":[745],\"\\u8d39\":[757],\"\\u4e30\":[781],\"\\u5c01\":[781],\"\\u9146\":[781],\"\\u51af\":[775],\"\\u51e4\":[777],\"\\u4f0f\":[799],\"\\u6276\":[799],\"\\u798f\":[799],\"\\u7b26\":[799],\"\\u5085\":[801],\"\\u5bcc\":[801],\"\\u5e72\":[831],\"\\u7518\":[831],\"\\u9ad8\":[847],\"\\u90dc\":[843],\"\\u6208\":[857],\"\\u76d6\":[855],\"\\u845b\":[855],\"\\u803f\":[877],\"\\u516c\\u5b59\":[887,2703],\"\\u516c\\u7f8a\":[887,3153],\"\\u516c\\u51b6\":[887,3177],\"\\u5b97\\u653f\":[887,3177],\"\\u516c\":[887],\"\\u5bab\":[887],\"\\u5f13\":[887],\"\\u9f9a\":[887],\"\\u5de9\":[885],\"\\u8d21\":[883],\"\\u52fe\":[899],\"\\u53e4\":[907],\"\\u8c37\":[907],\"\\u987e\":[905],\"\\u5173\":[935],\"\\u7ba1\":[933],\"\\u5e7f\":[941],\"\\u6842\":[947],\"\\u90ed\":[967],\"\\u56fd\":[961],\"\\u97e9\":[991],\"\\u676d\":[1001],\"\\u90dd\":[1013],\"\\u4f55\":[1019],\"\\u548c\":[1019],\"\\u8d6b\\u8fde\":[1021,1495],\"\\u8d3a\":[1021],\"\\u8861\":[1039],\"\\u5f18\":[1047],\"\\u6d2a\":[1047],\"\\u7ea2\":[1047],\"\\u4faf\":[1057],\"\\u5f8c\":[1059],\"\\u80e1\":[1067],\"\\u6248\":[1069],\"\\u82b1\":[1081],\"\\u6ed1\":[1077],\"\\u534e\":[1079],\"\\u6000\":[1085],\"\\u6853\":[1091],\"\\u5ba6\":[1093],\"\\u7687\\u752b\":[1101,803],\"\\u9ec4\":[1101],\"\\u60e0\":[1113],\"\\u970d\":[1131],\"\\u59ec\":[1145],\"\\u5d47\":[1145],\"\\u5409\":[1139],\"\\u6c72\":[1139],\"\\u7eaa\":[1143],\"\\u5180\":[1141],\"\\u5b63\":[1141],\"\\u66a8\":[1141],\"\\u84df\":[1141],\"\\u8ba1\":[1141],\"\\u5bb6\":[1155],\"\\u90cf\":[1149],\"\\u8d3e\":[1153],\"\\u7b80\":[1163],\"\\u59dc\":[1173],\"\\u6c5f\":[1173],\"\\u848b\":[1171],\"\\u7126\":[1183],\"\\u91d1\":[1201],\"\\u9773\":[1197],\"\\u7ecf\":[1209],\"\\u8346\":[1209],\"\\u4e95\":[1207],\"\\u666f\":[1207],\"\\u5c45\":[1241],\"\\u97a0\":[1241],\"\\u961a\":[1283],\"\\u5eb7\":[1297],\"\\u67ef\":[1315],\"\\u7a7a\":[1337],\"\\u5b54\":[1335],\"\\u5bc7\":[1341],\"\\u84af\":[1367],\"\\u5321\":[1383],\"\\u5914\":[1387],\"\\u9697\":[1387],\"\\u8d56\":[1421],\"\\u84dd\":[1427],\"\\u90ce\":[1435],\"\\u52b3\":[1445],\"\\u96f7\":[1461],\"\\u51b7\":[1475],\"\\u9ece\":[1481],\"\\u674e\":[1485],\"\\u5229\":[1483],\"\\u5389\":[1483],\"\\u90e6\":[1483],\"\\u5ec9\":[1495],\"\\u8fde\":[1495],\"\\u6881\":[1503],\"\\u5ed6\":[1513],\"\\u6797\":[1531],\"\\u853a\":[1533],\"\\u4ee4\\u72d0\":[1541,1067],\"\\u51cc\":[1541],\"\\u5218\":[1559],\"\\u67f3\":[1563],\"\\u9686\":[1575],\"\\u9f99\":[1575],\"\\u5a04\":[1585],\"\\u95fe\\u4e18\":[1595,2285],\"\\u5362\":[1595],\"\\u5415\":[1601],\"\\u9c81\":[1601],\"\\u7984\":[1597],\"\\u8def\":[1597],\"\\u902f\":[1597],\"\\u9646\":[1597],\"\\u683e\":[1613],\"\\u7f57\":[1633],\"\\u9a86\":[1635],\"\\u9ebb\":[1649],\"\\u9a6c\":[1653],\"\\u6ee1\":[1671],\"\\u6bdb\":[1685],\"\\u8305\":[1685],\"\\u6885\":[1703],\"\\u8499\":[1719],\"\\u5b5f\":[1721],\"\\u7cdc\":[1729],\"\\u7c73\":[1733],\"\\u5b93\":[1731],\"\\u82d7\":[1747],\"\\u7f2a\":[1749],\"\\u95f5\":[1765],\"\\u660e\":[1769],\"\\u4e07\\u4fdf\":[1785,2185],\"\\u83ab\":[1785],\"\\u6155\\u5bb9\":[1803,2375],\"\\u6155\":[1803],\"\\u7267\":[1803],\"\\u7a46\":[1803],\"\\u90a3\":[1815],\"\\u80fd\":[1821],\"\\u502a\":[1881],\"\\u4e5c\":[1915],\"\\u8042\":[1915],\"\\u5b81\":[1929],\"\\u725b\":[1943],\"\\u94ae\":[1947],\"\\u519c\":[1953],\"\\u6b27\\u9633\":[2017,3153],\"\\u6b27\":[2017],\"\\u6f58\":[2045],\"\\u5e9e\":[2049],\"\\u9004\":[2049],\"\\u88f4\":[2069],\"\\u5f6d\":[2089],\"\\u84ec\":[2089],\"\\u76ae\":[2099],\"\\u5e73\":[2147],\"\\u6fee\\u9633\":[2175,3153],\"\\u6fee\":[2175],\"\\u84b2\":[2175],\"\\u6d66\":[2179],\"\\u621a\":[2191],\"\\u7941\":[2185],\"\\u9f50\":[2185],\"\\u94b1\":[2205],\"\\u5f3a\":[2215],\"\\u4e54\":[2229],\"\\u79e6\":[2249],\"\\u79cb\":[2285],\"\\u90b1\":[2285],\"\\u4ec7\":[2281],\"\\u88d8\":[2281],\"\\u5c48\":[2295],\"\\u9eb4\":[2295],\"\\u74a9\":[2289],\"\\u77bf\":[2289],\"\\u5168\":[2299],\"\\u6743\":[2299],\"\\u9619\":[2313],\"\\u5189\":[2325],\"\\u9976\":[2339],\"\\u4efb\":[2355],\"\\u5bb9\":[2375],\"\\u620e\":[2375],\"\\u8363\":[2375],\"\\u878d\":[2375],\"\\u8339\":[2393],\"\\u962e\":[2407],\"\\u82ae\":[2413],\"\\u6851\":[2459],\"\\u6c99\":[2491],\"\\u5c71\":[2507],\"\\u5355\":[2503],\"\\u4e0a\\u5b98\":[2511,935],\"\\u5c1a\":[2511],\"\\u97f6\":[2519],\"\\u90b5\":[2521],\"\\u538d\":[2531],\"\\u7533\\u5c60\":[2549,2845],\"\\u7533\":[2549],\"\\u8398\":[2549],\"\\u6c88\":[2547],\"\\u614e\":[2545],\"\\u76db\":[2551],\"\\u5e08\":[2569],\"\\u65bd\":[2569],\"\\u65f6\":[2563],\"\\u77f3\":[2563],\"\\u53f2\":[2567],\"\\u5bff\":[2579],\"\\u6bb3\":[2593],\"\\u8212\":[2593],\"\\u675f\":[2589],\"\\u53cc\":[2623],\"\\u6c34\":[2631],\"\\u53f8\\u7a7a\":[2651,1337],\"\\u53f8\\u9a6c\":[2651,1653],\"\\u53f8\\u5f92\":[2651,2845],\"\\u53f8\":[2651],\"\\u677e\":[2661],\"\\u5b8b\":[2657],\"\\u82cf\":[2677],\"\\u5bbf\":[2675],\"\\u5b59\":[2703],\"\\u7d22\":[2709],\"\\u90b0\":[2723],\"\\u592a\\u53d4\":[2725,2593],\"\\u6fb9\\u53f0\":[2733,2723],\"\\u8c08\":[2733],\"\\u8c2d\":[2733],\"\\u6c64\":[2749],\"\\u5510\":[2743],\"\\u9676\":[2753],\"\\u6ed5\":[2767],\"\\u7530\":[2785],\"\\u901a\":[2831],\"\\u4f5f\":[2825],\"\\u7ae5\":[2825],\"\\u94ad\":[2839],\"\\u5c60\":[2845],\"\\u4e07\":[2915],\"\\u6c6a\":[2929],\"\\u738b\":[2923],\"\\u5371\":[2939],\"\\u97e6\":[2933],\"\\u536b\":[2935],\"\\u851a\":[2935],\"\\u9b4f\":[2935],\"\\u6e29\":[2949],\"\\u95fb\\u4eba\":[2943,2355],\"\\u6587\":[2943],\"\\u95fb\":[2943],\"\\u7fc1\":[2957],\"\\u6c83\":[2961],\"\\u4e4c\":[2975],\"\\u5deb\":[2975],\"\\u90ac\":[2975],\"\\u5434\":[2969],\"\\u6bcb\":[2969],\"\\u4f0d\":[2973],\"\\u6b66\":[2973],\"\\u595a\":[2985],\"\\u90d7\":[2985],\"\\u4e60\":[2979],\"\\u5e2d\":[2979],\"\\u90e4\":[2981],\"\\u590f\\u4faf\":[2991,1057],\"\\u590f\":[2991],\"\\u9c9c\\u4e8e\":[3005,3237],\"\\u54b8\":[2999],\"\\u5411\":[3011],\"\\u76f8\":[3011],\"\\u9879\":[3011],\"\\u8427\":[3025],\"\\u89e3\":[3031],\"\\u8c22\":[3031],\"\\u8f9b\":[3045],\"\\u90a2\":[3049],\"\\u5e78\":[3051],\"\\u718a\":[3059],\"\\u80e5\":[3091],\"\\u987b\":[3091],\"\\u5f90\":[3085],\"\\u8bb8\":[3089],\"\\u8f69\\u8f95\":[3101,3247],\"\\u5ba3\":[3101],\"\\u859b\":[3111],\"\\u8340\":[3115],\"\\u71d5\":[3149],\"\\u4e25\":[3143],\"\\u8a00\":[3143],\"\\u960e\":[3143],\"\\u989c\":[3143],\"\\u664f\":[3145],\"\\u6768\":[3153],\"\\u7f8a\":[3153],\"\\u4ef0\":[3157],\"\\u517b\":[3157],\"\\u59da\":[3163],\"\\u53f6\":[3175],\"\\u4f0a\":[3189],\"\\u6613\":[3185],\"\\u76ca\":[3185],\"\\u7fbf\":[3185],\"\\u6bb7\":[3199],\"\\u9634\":[3199],\"\\u5c39\":[3197],\"\\u5370\":[3195],\"\\u5e94\":[3209],\"\\u96cd\":[3223],\"\\u5c24\":[3227],\"\\u6e38\":[3227],\"\\u65bc\":[3243],\"\\u4e8e\":[3237],\"\\u4f59\":[3237],\"\\u4fde\":[3237],\"\\u865e\":[3237],\"\\u9c7c\":[3237],\"\\u5b87\\u6587\":[3241,2943],\"\\u5ebe\":[3241],\"\\u79b9\":[3241],\"\\u5c09\\u8fdf\":[3239,343],\"\\u55bb\":[3239],\"\\u90c1\":[3239],\"\\u5143\":[3247],\"\\u8881\":[3247],\"\\u4e50\":[3257],\"\\u8d8a\":[3257],\"\\u4e91\":[3265],\"\\u5bb0\":[3285],\"\\u661d\":[3295],\"\\u81e7\":[3305],\"\\u66fe\":[3341],\"\\u67e5\":[3351],\"\\u7fdf\":[3355],\"\\u8a79\":[3371],\"\\u6e5b\":[3367],\"\\u5f20\":[3379],\"\\u7ae0\":[3379],\"\\u957f\\u5b59\":[3377,2703],\"\\u8d75\":[3385],\"\\u7504\":[3411],\"\\u90d1\":[3415],\"\\u652f\":[3429],\"\\u949f\\u79bb\":[3437,1481],\"\\u4ef2\\u5b59\":[3437,2703],\"\\u7ec8\":[3437],\"\\u949f\":[3437],\"\\u4ef2\":[3433],\"\\u5468\":[3447],\"\\u8bf8\\u845b\":[3457,855],\"\\u6731\":[3457],\"\\u8bf8\":[3457],\"\\u7afa\":[3451],\"\\u795d\":[3453],\"\\u5e84\":[3487],\"\\u5353\":[3507],\"\\u8a3e\":[3519],\"\\u5b97\":[3529],\"\\u90b9\":[3537],\"\\u7956\":[3545],\"\\u5de6\":[3579]},p=\" A A A \\u00c1 A \\u00c0 A \\u01cd A \\u0100 Ai Ai Ai \\u00c1i Ai \\u00c0i Ai \\u01cdi Ai \\u0100i An An An \\u00c1n An \\u00c0n An \\u01cdn An \\u0100n Ang Ang Ang \\u00c1ng Ang \\u00c0ng Ang \\u01cdng Ang \\u0100ng Ao Ao Ao \\u00c1o Ao \\u00c0o Ao \\u01cdo Ao \\u0100o Ba Ba Ba B\\u00e1 Ba B\\u00e0 Ba B\\u01ce Ba B\\u0101 Bai Bai Bai B\\u00e1i Bai B\\u00e0i Bai B\\u01cei Bai B\\u0101i Baike B\\u01ceik\\u00e8 Ban Ban Ban B\\u00e0n Ban B\\u01cen Ban B\\u0101n Bang Bang Bang B\\u00e1ng Bang B\\u00e0ng Bang B\\u01ceng Bang B\\u0101ng Bao Bao Bao B\\u00e1o Bao B\\u00e0o Bao B\\u01ceo Bao B\\u0101o Bei Bei Bei B\\u00e8i Bei B\\u011bi Bei B\\u0113i Ben Ben Ben B\\u00e8n Ben B\\u011bn Ben B\\u0113n Beng Beng Beng B\\u00e9ng Beng B\\u00e8ng Beng B\\u011bng Beng B\\u0113ng Bi Bi Bi B\\u00ed Bi B\\u00ec Bi B\\u01d0 Bi B\\u012b Bian Bian Bian Bi\\u00e0n Bian Bi\\u01cen Bian Bi\\u0101n Biao Biao Biao Bi\\u00e1o Biao Bi\\u00e0o Biao Bi\\u01ceo Biao Bi\\u0101o Bie Bie Bie Bi\\u00e9 Bie Bi\\u00e8 Bie Bi\\u011b Bie Bi\\u0113 Bin Bin Bin B\\u00ecn Bin B\\u012bn Bing Bing Bing B\\u00ecng Bing B\\u01d0ng Bing B\\u012bng Bo Bo Bo B\\u00f3 Bo B\\u00f2 Bo B\\u01d2 Bo B\\u014d Bu Bu Bu B\\u00fa Bu B\\u00f9 Bu B\\u01d4 Bu B\\u016b Ca Ca Ca C\\u00e0 Ca C\\u01ce Ca C\\u0101 Cai Cai Cai C\\u00e1i Cai C\\u00e0i Cai C\\u01cei Cai C\\u0101i Can Can Can C\\u00e1n Can C\\u00e0n Can C\\u01cen Can C\\u0101n Cang Cang Cang C\\u00e1ng Cang C\\u00e0ng Cang C\\u0101ng Cao Cao Cao C\\u00e1o Cao C\\u00e0o Cao C\\u01ceo Cao C\\u0101o Ce Ce Ce C\\u00e8 Cen Cen Cen C\\u00e9n Cen C\\u0113n Ceng Ceng Ceng C\\u00e9ng Ceng C\\u00e8ng Ceng C\\u0113ng Cha Cha Cha Ch\\u00e1 Cha Ch\\u00e0 Cha Ch\\u01ce Cha Ch\\u0101 Chai Chai Chai Ch\\u00e1i Chai Ch\\u00e0i Chai Ch\\u01cei Chai Ch\\u0101i Chan Chan Chan Ch\\u00e1n Chan Ch\\u00e0n Chan Ch\\u01cen Chan Ch\\u0101n Chang Chang Chang Ch\\u00e1ng Chang Ch\\u00e0ng Chang Ch\\u01ceng Chang Ch\\u0101ng Chao Chao Chao Ch\\u00e1o Chao Ch\\u00e0o Chao Ch\\u01ceo Chao Ch\\u0101o Che Che Che Ch\\u00e8 Che Ch\\u011b Che Ch\\u0113 Chen Chen Chen Ch\\u00e9n Chen Ch\\u00e8n Chen Ch\\u011bn Chen Ch\\u0113n Cheng Cheng Cheng Ch\\u00e9ng Cheng Ch\\u00e8ng Cheng Ch\\u011bng Cheng Ch\\u0113ng Chi Chi Chi Ch\\u00ed Chi Ch\\u00ec Chi Ch\\u01d0 Chi Ch\\u012b Chong Chong Chong Ch\\u00f3ng Chong Ch\\u00f2ng Chong Ch\\u01d2ng Chong Ch\\u014dng Chou Chou Chou Ch\\u00f3u Chou Ch\\u00f2u Chou Ch\\u01d2u Chou Ch\\u014du Chu Chu Chu Ch\\u00fa Chu Ch\\u00f9 Chu Ch\\u01d4 Chu Ch\\u016b Chua Chu\\u00e0 Chua Chu\\u0101 Chuai Chuai Chuai Chu\\u00e1i Chuai Chu\\u00e0i Chuai Chu\\u01cei Chuai Chu\\u0101i Chuan Chuan Chuan Chu\\u00e1n Chuan Chu\\u00e0n Chuan Chu\\u01cen Chuan Chu\\u0101n Chuang Chuang Chuang Chu\\u00e1ng Chuang Chu\\u00e0ng Chuang Chu\\u01ceng Chuang Chu\\u0101ng Chui Chui Chui Chu\\u00ed Chui Chu\\u00ec Chui Chu\\u01d0 Chui Chu\\u012b Chun Chun Chun Ch\\u00fan Chun Ch\\u01d4n Chun Ch\\u016bn Chuo Chuo Chuo Chu\\u00f2 Chuo Chu\\u014d Ci Ci Ci C\\u00ed Ci C\\u00ec Ci C\\u01d0 Ci C\\u012b Cong Cong Cong C\\u00f3ng Cong C\\u00f2ng Cong C\\u014dng Cou Cou Cou C\\u00f2u Cu Cu Cu C\\u00fa Cu C\\u00f9 Cu C\\u01d4 Cu C\\u016b Cuan Cuan Cuan Cu\\u00e1n Cuan Cu\\u00e0n Cuan Cu\\u0101n Cui Cui Cui Cu\\u00ec Cui Cu\\u01d0 Cui Cu\\u012b Cun Cun Cun C\\u00fan Cun C\\u00f9n Cun C\\u01d4n Cun C\\u016bn Cuo Cuo Cuo Cu\\u00f3 Cuo Cu\\u00f2 Cuo Cu\\u01d2 Cuo Cu\\u014d Da Da Da D\\u00e1 Da D\\u00e0 Da D\\u01ce Da D\\u0101 Dai Dai Dai D\\u00e0i Dai D\\u01cei Dai D\\u0101i Dan Dan Dan D\\u00e0n Dan D\\u01cen Dan D\\u0101n Dang Dang Dang D\\u00e0ng Dang D\\u01ceng Dang D\\u0101ng Dao Dao Dao D\\u00e1o Dao D\\u00e0o Dao D\\u01ceo Dao D\\u0101o De De De D\\u00e9 De D\\u0113 Dei Dei Dei D\\u011bi Dei D\\u0113i Den D\\u00e8n Deng Deng Deng D\\u00e8ng Deng D\\u011bng Deng D\\u0113ng Di Di Di D\\u00ed Di D\\u00ec Di D\\u01d0 Di D\\u012b Dia Dia Dia Di\\u01ce Dian Dian Dian Di\\u00e0n Dian Di\\u01cen Dian Di\\u0101n Diao Diao Diao Di\\u00e0o Diao Di\\u01ceo Diao Di\\u0101o Die Die Die Di\\u00e9 Die Di\\u00e8 Die Di\\u0113 Ding Ding Ding D\\u00ecng Ding D\\u01d0ng Ding D\\u012bng Diu Diu Diu Di\\u016b Diu D\\u012bu Dong Dong Dong D\\u00f2ng Dong D\\u01d2ng Dong D\\u014dng Dou Dou Dou D\\u00f2u Dou D\\u01d2u Dou D\\u014du Du Du Du D\\u00fa Du D\\u00f9 Du D\\u01d4 Du D\\u016b Duan Duan Duan Du\\u00e0n Duan Du\\u01cen Duan Du\\u0101n Dui Dui Dui Du\\u00ec Dui Du\\u01d0 Dui Du\\u012b Dun Dun Dun D\\u00f9n Dun D\\u01d4n Dun D\\u016bn Duo Duo Duo Du\\u00f3 Duo Du\\u00f2 Duo Du\\u01d2 Duo Du\\u014d E E E \\u00c9 E \\u00c8 E \\u011a E \\u0112 Ei \\u00c9i Ei \\u00c8i Ei \\u011ai Ei \\u0112i En En En \\u00c9n En \\u00c8n En \\u011an En \\u0112n Eng \\u0112ng Er Er Er \\u00c9r Er \\u00c8r Er \\u011ar Fa Fa Fa F\\u00e1 Fa F\\u00e0 Fa F\\u01ce Fa F\\u0101 Fan Fan Fan F\\u00e1n Fan F\\u00e0n Fan F\\u01cen Fan F\\u0101n Fang Fang Fang F\\u00e1ng Fang F\\u00e0ng Fang F\\u01ceng Fang F\\u0101ng Fei Fei Fei F\\u00e9i Fei F\\u00e8i Fei F\\u011bi Fei F\\u0113i Fen Fen Fen F\\u00e9n Fen F\\u00e8n Fen F\\u011bn Fen F\\u0113n Feng Feng Feng F\\u00e9ng Feng F\\u00e8ng Feng F\\u011bng Feng F\\u0113ng Fenwa F\\u0113nw\\u01ce Fiao Fi\\u00e0o Fo Fo Fo F\\u00f3 Fou Fou Fou F\\u00f3u Fou F\\u01d2u Fu Fu Fu F\\u00fa Fu F\\u00f9 Fu F\\u01d4 Fu F\\u016b Ga Ga Ga G\\u00e1 Ga G\\u00e0 Ga G\\u01ce Ga G\\u0101 Gai Gai Gai G\\u00e0i Gai G\\u01cei Gai G\\u0101i Gan Gan Gan G\\u00e0n Gan G\\u01cen Gan G\\u0101n Gang Gang Gang G\\u00e0ng Gang G\\u01ceng Gang G\\u0101ng Gao Gao Gao G\\u00e0o Gao G\\u01ceo Gao G\\u0101o Ge Ge Ge G\\u00e9 Ge G\\u00e8 Ge G\\u011b Ge G\\u0113 Gei Gei Gei G\\u011bi Gen Gen Gen G\\u00e9n Gen G\\u00e8n Gen G\\u011bn Gen G\\u0113n Geng Geng Geng G\\u00e8ng Geng G\\u011bng Geng G\\u0113ng Gong Gong Gong G\\u00f2ng Gong G\\u01d2ng Gong G\\u014dng Gongfen G\\u014dngf\\u0113n Gongli G\\u014dngl\\u01d0 Gou Gou Gou G\\u00f2u Gou G\\u01d2u Gou G\\u014du Gu Gu Gu G\\u00fa Gu G\\u00f9 Gu G\\u01d4 Gu G\\u016b Gua Gua Gua Gu\\u00e0 Gua Gu\\u01ce Gua Gu\\u0101 Guai Guai Guai Gu\\u00e1i Guai Gu\\u00e0i Guai Gu\\u01cei Guai Gu\\u0101i Guan Guan Guan Gu\\u00e0n Guan Gu\\u01cen Guan Gu\\u0101n Guang Guang Guang Gu\\u00e0ng Guang Gu\\u01ceng Guang Gu\\u0101ng Gui Gui Gui Gu\\u00ec Gui Gu\\u01d0 Gui Gu\\u012b Gun Gun Gun G\\u00f9n Gun G\\u01d4n Guo Guo Guo Gu\\u00f3 Guo Gu\\u00f2 Guo Gu\\u01d2 Guo Gu\\u014d Ha Ha Ha H\\u00e1 Ha H\\u00e0 Ha H\\u01ce Ha H\\u0101 Hai Hai Hai H\\u00e1i Hai H\\u00e0i Hai H\\u01cei Hai H\\u0101i Han Han Han H\\u00e1n Han H\\u00e0n Han H\\u01cen Han H\\u0101n Hang Hang Hang H\\u00e1ng Hang H\\u00e0ng Hang H\\u0101ng Hao Hao Hao H\\u00e1o Hao H\\u00e0o Hao H\\u01ceo Hao H\\u0101o He He He H\\u00e9 He H\\u00e8 He H\\u0113 Hei Hei Hei H\\u0113i Hen Hen Hen H\\u00e9n Hen H\\u00e8n Hen H\\u011bn Heng Heng Heng H\\u00e9ng Heng H\\u00e8ng Heng H\\u0113ng Hong Hong Hong H\\u00f3ng Hong H\\u00f2ng Hong H\\u01d2ng Hong H\\u014dng Hou Hou Hou H\\u00f3u Hou H\\u00f2u Hou H\\u01d2u Hou H\\u014du Hu Hu Hu H\\u00fa Hu H\\u00f9 Hu H\\u01d4 Hu H\\u016b Hua Hua Hua Hu\\u00e1 Hua Hu\\u00e0 Hua Hu\\u0101 Huai Huai Huai Hu\\u00e1i Huai Hu\\u00e0i Huan Huan Huan Hu\\u00e1n Huan Hu\\u00e0n Huan Hu\\u01cen Huan Hu\\u0101n Huang Huang Huang Hu\\u00e1ng Huang Hu\\u00e0ng Huang Hu\\u01ceng Huang Hu\\u0101ng Hui Hui Hui Hu\\u00ed Hui Hu\\u00ec Hui Hu\\u01d0 Hui Hu\\u012b Hun Hun Hun H\\u00fan Hun H\\u00f9n Hun H\\u016bn Huo Huo Huo Hu\\u00f3 Huo Hu\\u00f2 Huo Hu\\u01d2 Huo Hu\\u014d Ji Ji Ji J\\u00ed Ji J\\u00ec Ji J\\u01d0 Ji J\\u012b Jia Jia Jia Ji\\u00e1 Jia Ji\\u00e0 Jia Ji\\u01ce Jia Ji\\u0101 Jialun Ji\\u0101l\\u00fan Jian Jian Jian Ji\\u00e0n Jian Ji\\u01cen Jian Ji\\u0101n Jiang Jiang Jiang Ji\\u00e0ng Jiang Ji\\u01ceng Jiang Ji\\u0101ng Jiao Jiao Jiao Ji\\u00e1o Jiao Ji\\u00e0o Jiao Ji\\u01ceo Jiao Ji\\u0101o Jie Jie Jie Ji\\u00e9 Jie Ji\\u00e8 Jie Ji\\u011b Jie Ji\\u0113 Jin Jin Jin J\\u00ecn Jin J\\u01d0n Jin J\\u012bn Jing Jing Jing J\\u00ecng Jing J\\u01d0ng Jing J\\u012bng Jiong Jiong Jiong Ji\\u01d2ng Jiong Ji\\u014dng Jiu Jiu Jiu Ji\\u00fa Jiu Ji\\u00f9 Jiu Ji\\u01d4 Jiu Ji\\u016b Jiu J\\u00ecu Jiu J\\u01d0u Jiu J\\u012bu Ju Ju Ju J\\u00fa Ju J\\u00f9 Ju J\\u01d4 Ju J\\u016b Juan Juan Juan Ju\\u00e0n Juan Ju\\u01cen Juan Ju\\u0101n Jue Jue Jue Ju\\u00e9 Jue Ju\\u00e8 Jue Ju\\u011b Jue Ju\\u0113 Jun Jun Jun J\\u00f9n Jun J\\u016bn Ka Ka Ka K\\u01ce Ka K\\u0101 Kai Kai Kai K\\u00e0i Kai K\\u01cei Kai K\\u0101i Kan Kan Kan K\\u00e0n Kan K\\u01cen Kan K\\u0101n Kang Kang Kang K\\u00e1ng Kang K\\u00e0ng Kang K\\u01ceng Kang K\\u0101ng Kao Kao Kao K\\u00e0o Kao K\\u01ceo Kao K\\u0101o Ke Ke Ke K\\u00e9 Ke K\\u00e8 Ke K\\u011b Ke K\\u0113 Kei K\\u0113i Ken Ken Ken K\\u00e8n Ken K\\u011bn Keng Keng Keng K\\u011bng Keng K\\u0113ng Kong Kong Kong K\\u00f2ng Kong K\\u01d2ng Kong K\\u014dng Kou Kou Kou K\\u00f2u Kou K\\u01d2u Kou K\\u014du Ku Ku Ku K\\u00f9 Ku K\\u01d4 Ku K\\u016b Kua Kua Kua Ku\\u00e0 Kua Ku\\u01ce Kua Ku\\u0101 Kuai Kuai Kuai Ku\\u00e0i Kuai Ku\\u01cei Kuan Kuan Kuan Ku\\u01cen Kuan Ku\\u0101n Kuang Kuang Kuang Ku\\u00e1ng Kuang Ku\\u00e0ng Kuang Ku\\u01ceng Kuang Ku\\u0101ng Kui Kui Kui Ku\\u00ed Kui Ku\\u00ec Kui Ku\\u01d0 Kui Ku\\u012b Kun Kun Kun K\\u00f9n Kun K\\u01d4n Kun K\\u016bn Kuo Kuo Kuo Ku\\u00f2 La La La L\\u00e1 La L\\u00e0 La L\\u01ce La L\\u0101 Lai Lai Lai L\\u00e1i Lai L\\u00e0i Lai L\\u01cei Lan Lan Lan L\\u00e1n Lan L\\u00e0n Lan L\\u01cen Lang Lang Lang L\\u00e1ng Lang L\\u00e0ng Lang L\\u01ceng Lang L\\u0101ng Lao Lao Lao L\\u00e1o Lao L\\u00e0o Lao L\\u01ceo Lao L\\u0101o Le Le Le L\\u00e8 Le L\\u0113 Lei Lei Lei L\\u00e9i Lei L\\u00e8i Lei L\\u011bi Lei L\\u0113i Leng Leng Leng L\\u00e9ng Leng L\\u00e8ng Leng L\\u011bng Leng L\\u0113ng Li Li Li L\\u00ed Li L\\u00ec Li L\\u01d0 Li L\\u012b Lia Lia Lia Li\\u01ce Lian Lian Lian Li\\u00e1n Lian Li\\u00e0n Lian Li\\u01cen Liang Liang Liang Li\\u00e1ng Liang Li\\u00e0ng Liang Li\\u01ceng Liao Liao Liao Li\\u00e1o Liao Li\\u00e0o Liao Li\\u01ceo Liao Li\\u0101o Lie Lie Lie Li\\u00e9 Lie Li\\u00e8 Lie Li\\u011b Lie Li\\u0113 Lin Lin Lin L\\u00edn Lin L\\u00ecn Lin L\\u01d0n Lin L\\u012bn Ling Ling Ling L\\u00edng Ling L\\u00ecng Ling L\\u01d0ng Ling L\\u012bng Liu Liu Liu Li\\u00fa Liu Li\\u00f9 Liu Li\\u01d4 Liu Li\\u016b Liu L\\u00edu Liu L\\u00ecu Liu L\\u01d0u Liu L\\u012bu Liwa L\\u00edw\\u01ce Liwa L\\u01d0w\\u01ce Lo Lo Long Long Long L\\u00f3ng Long L\\u00f2ng Long L\\u01d2ng Long L\\u014dng Lou Lou Lou L\\u00f3u Lou L\\u00f2u Lou L\\u01d2u Lou L\\u014du Lu Lu Lu L\\u00fa Lu L\\u00f9 Lv L\\u00fc Lu L\\u01d4 Lu L\\u016b Lv L\\u01d8 Lv L\\u01dc Lv L\\u01da Luan Luan Luan Lu\\u00e1n Luan Lu\\u00e0n Luan Lu\\u01cen Lve L\\u00fc\\u00e8 Lun Lun Lun L\\u00fan Lun L\\u00f9n Lun L\\u01d4n Lun L\\u016bn Luo Luo Luo Lu\\u00f3 Luo Lu\\u00f2 Luo Lu\\u01d2 Luo Lu\\u014d Lve Lve Lve Lv\\u00e8 Lve Lv\\u011b Ma Ma Ma M\\u00e1 Ma M\\u00e0 Ma M\\u01ce Ma M\\u0101 Mai Mai Mai M\\u00e1i Mai M\\u00e0i Mai M\\u01cei Man Man Man M\\u00e1n Man M\\u00e0n Man M\\u01cen Man M\\u0101n Mang Mang Mang M\\u00e1ng Mang M\\u01ceng Mang M\\u0101ng Mao Mao Mao M\\u00e1o Mao M\\u00e0o Mao M\\u01ceo Mao M\\u0101o Maowa M\\u00e1ow\\u01ce Me Me Me M\\u00e8 Me M\\u0113 Mei Mei Mei M\\u00e9i Mei M\\u00e8i Mei M\\u011bi Men Men Men M\\u00e9n Men M\\u00e8n Men M\\u0113n Meng Meng Meng M\\u00e9ng Meng M\\u00e8ng Meng M\\u011bng Meng M\\u0113ng Mi Mi Mi M\\u00ed Mi M\\u00ec Mi M\\u01d0 Mi M\\u012b Mian Mian Mian Mi\\u00e1n Mian Mi\\u00e0n Mian Mi\\u01cen Miao Miao Miao Mi\\u00e1o Miao Mi\\u00e0o Miao Mi\\u01ceo Miao Mi\\u0101o Mie Mie Mie Mi\\u00e8 Mie Mi\\u0113 Min Min Min M\\u00edn Min M\\u01d0n Ming Ming Ming M\\u00edng Ming M\\u00ecng Ming M\\u01d0ng Miu Miu Miu Mi\\u00f9 Miu M\\u00ecu Mo Mo Mo M\\u00f3 Mo M\\u00f2 Mo M\\u01d2 Mo M\\u014d Mou Mou Mou M\\u00f3u Mou M\\u01d2u Mou M\\u014du Mu Mu Mu M\\u00fa Mu M\\u00f9 Mu M\\u01d4 Na Na Na N\\u00e1 Na N\\u00e0 Na N\\u01ce Na N\\u0101 Nai Nai Nai N\\u00e1i Nai N\\u00e0i Nai N\\u01cei Nan Nan Nan N\\u00e1n Nan N\\u00e0n Nan N\\u01cen Nan N\\u0101n Nang Nang Nang N\\u00e1ng Nang N\\u00e0ng Nang N\\u01ceng Nang N\\u0101ng Nao Nao Nao N\\u00e1o Nao N\\u00e0o Nao N\\u01ceo Nao N\\u0101o Ne Ne Ne N\\u00e9 Ne N\\u00e8 Nei Nei Nei N\\u00e8i Nei N\\u011bi Nen Nen Nen N\\u00e8n Neng Neng Neng N\\u00e9ng Neng N\\u00e8ng Neng N\\u011bng Ni Ni Ni N\\u00ed Ni N\\u00ec Ni N\\u01d0 Ni N\\u012b Nian Nian Nian Ni\\u00e1n Nian Ni\\u00e0n Nian Ni\\u01cen Nian Ni\\u0101n Niang Niang Niang Ni\\u00e1ng Niang Ni\\u00e0ng Niao Niao Niao Ni\\u00e0o Niao Ni\\u01ceo Nie Nie Nie Ni\\u00e9 Nie Ni\\u00e8 Nie Ni\\u0113 Nin Nin Nin N\\u00edn Nin N\\u01d0n Ning Ning Ning N\\u00edng Ning N\\u00ecng Ning N\\u01d0ng Niu Niu Niu Ni\\u00fa Niu Ni\\u00f9 Niu Ni\\u01d4 Niu Ni\\u016b Niu N\\u00edu Niu N\\u00ecu Niu N\\u01d0u Niu N\\u012bu Nong Nong Nong N\\u00f3ng Nong N\\u00f2ng Nong N\\u01d2ng Nou N\\u00f3u Nou N\\u00f2u Nou N\\u01d2u Nu Nu Nu N\\u00fa Nu N\\u00f9 Nv N\\u00fc Nu N\\u01d4 Nv N\\u01dc Nv N\\u01da Nuan Nuan Nuan Nu\\u00e1n Nuan Nu\\u01cen Nve N\\u00fc\\u00e8 Nun N\\u00fan Nuo Nuo Nuo Nu\\u00f3 Nuo Nu\\u00f2 Nuo Nu\\u01d2 Nve Nve Nve Nv\\u00e8 O O O \\u00d3 O \\u00d2 O \\u01d1 O \\u014c Ou Ou Ou \\u00d2u Ou \\u01d1u Ou \\u014cu Pa Pa Pa P\\u00e1 Pa P\\u00e0 Pa P\\u0101 Pai Pai Pai P\\u00e1i Pai P\\u00e0i Pai P\\u01cei Pai P\\u0101i Pan Pan Pan P\\u00e1n Pan P\\u00e0n Pan P\\u01cen Pan P\\u0101n Pang Pang Pang P\\u00e1ng Pang P\\u00e0ng Pang P\\u01ceng Pang P\\u0101ng Pao Pao Pao P\\u00e1o Pao P\\u00e0o Pao P\\u01ceo Pao P\\u0101o Pei Pei Pei P\\u00e9i Pei P\\u00e8i Pei P\\u011bi Pei P\\u0113i Pen Pen Pen P\\u00e9n Pen P\\u00e8n Pen P\\u011bn Pen P\\u0113n Peng Peng Peng P\\u00e9ng Peng P\\u00e8ng Peng P\\u011bng Peng P\\u0113ng Pi Pi Pi P\\u00ed Pi P\\u00ec Pi P\\u01d0 Pi P\\u012b Pian Pian Pian Pi\\u00e1n Pian Pi\\u00e0n Pian Pi\\u01cen Pian Pi\\u0101n Piao Piao Piao Pi\\u00e1o Piao Pi\\u00e0o Piao Pi\\u01ceo Piao Pi\\u0101o Pie Pie Pie Pi\\u00e8 Pie Pi\\u011b Pie Pi\\u0113 Pin Pin Pin P\\u00edn Pin P\\u00ecn Pin P\\u01d0n Pin P\\u012bn Ping Ping Ping P\\u00edng Ping P\\u00ecng Ping P\\u01d0ng Ping P\\u012bng Po Po Po P\\u00f3 Po P\\u00f2 Po P\\u01d2 Po P\\u014d Pou Pou Pou P\\u00f3u Pou P\\u01d2u Pou P\\u014du Pu Pu Pu P\\u00fa Pu P\\u00f9 Pu P\\u01d4 Pu P\\u016b Qi Qi Qi Q\\u00ed Qi Q\\u00ec Qi Q\\u01d0 Qi Q\\u012b Qia Qia Qia Qi\\u00e1 Qia Qi\\u00e0 Qia Qi\\u01ce Qia Qi\\u0101 Qian Qian Qian Qi\\u00e1n Qian Qi\\u00e0n Qian Qi\\u01cen Qian Qi\\u0101n Qiang Qiang Qiang Qi\\u00e1ng Qiang Qi\\u00e0ng Qiang Qi\\u01ceng Qiang Qi\\u0101ng Qianke Qi\\u0101nk\\u00e8 Qianwa Qi\\u0101nw\\u01ce Qiao Qiao Qiao Qi\\u00e1o Qiao Qi\\u00e0o Qiao Qi\\u01ceo Qiao Qi\\u0101o Qie Qie Qie Qi\\u00e9 Qie Qi\\u00e8 Qie Qi\\u011b Qie Qi\\u0113 Qin Qin Qin Q\\u00edn Qin Q\\u00ecn Qin Q\\u01d0n Qin Q\\u012bn Qing Qing Qing Q\\u00edng Qing Q\\u00ecng Qing Q\\u01d0ng Qing Q\\u012bng Qiong Qiong Qiong Qi\\u00f3ng Qiu Qiu Qiu Qi\\u00fa Qiu Qi\\u00f9 Qiu Qi\\u01d4 Qiu Qi\\u016b Qiu Q\\u00edu Qiu Q\\u01d0u Qiu Q\\u012bu Qu Qu Qu Q\\u00fa Qu Q\\u00f9 Qu Q\\u01d4 Qu Q\\u016b Quan Quan Quan Qu\\u00e1n Quan Qu\\u00e0n Quan Qu\\u01cen Quan Qu\\u0101n Que Que Que Qu\\u00e9 Que Qu\\u00e8 Que Qu\\u0113 Qun Qun Qun Q\\u00fan Qun Q\\u016bn Ran Ran Ran R\\u00e1n Ran R\\u01cen Rang Rang Rang R\\u00e1ng Rang R\\u00e0ng Rang R\\u01ceng Rang R\\u0101ng Rao Rao Rao R\\u00e1o Rao R\\u00e0o Rao R\\u01ceo Re Re Re R\\u00e9 Re R\\u00e8 Re R\\u011b Ren Ren Ren R\\u00e9n Ren R\\u00e8n Ren R\\u011bn Reng Reng Reng R\\u00e9ng Reng R\\u00e8ng Reng R\\u0113ng Ri Ri Ri R\\u00ec Rong Rong Rong R\\u00f3ng Rong R\\u00f2ng Rong R\\u01d2ng Rong R\\u014dng Rou Rou Rou R\\u00f3u Rou R\\u00f2u Rou R\\u01d2u Ru Ru Ru R\\u00fa Ru R\\u00f9 Ru R\\u01d4 Ru R\\u016b Ruan Ruan Ruan Ru\\u00e1n Ruan Ru\\u00e0n Ruan Ru\\u01cen Rui Rui Rui Ru\\u00ed Rui Ru\\u00ec Rui Ru\\u01d0 Run Run Run R\\u00fan Run R\\u00f9n Ruo Ruo Ruo Ru\\u00f3 Ruo Ru\\u00f2 Sa Sa Sa S\\u00e0 Sa S\\u01ce Sa S\\u0101 Sai Sai Sai S\\u00e0i Sai S\\u01cei Sai S\\u0101i San San San S\\u00e0n San S\\u01cen San S\\u0101n Sang Sang Sang S\\u00e0ng Sang S\\u01ceng Sang S\\u0101ng Sao Sao Sao S\\u00e0o Sao S\\u01ceo Sao S\\u0101o Se Se Se S\\u00e8 Se S\\u0113 Sen Sen Sen S\\u0113n Seng Seng Seng S\\u0113ng Sha Sha Sha Sh\\u00e1 Sha Sh\\u00e0 Sha Sh\\u01ce Sha Sh\\u0101 Shai Shai Shai Sh\\u00e0i Shai Sh\\u01cei Shai Sh\\u0101i Shan Shan Shan Sh\\u00e0n Shan Sh\\u01cen Shan Sh\\u0101n Shang Shang Shang Sh\\u00e0ng Shang Sh\\u01ceng Shang Sh\\u0101ng Shao Shao Shao Sh\\u00e1o Shao Sh\\u00e0o Shao Sh\\u01ceo Shao Sh\\u0101o She She She Sh\\u00e9 She Sh\\u00e8 She Sh\\u011b She Sh\\u0113 Shei Shei Shei Sh\\u00e9i Shen Shen Shen Sh\\u00e9n Shen Sh\\u00e8n Shen Sh\\u011bn Shen Sh\\u0113n Sheng Sheng Sheng Sh\\u00e9ng Sheng Sh\\u00e8ng Sheng Sh\\u011bng Sheng Sh\\u0113ng Shi Shi Shi Sh\\u00ed Shi Sh\\u00ec Shi Sh\\u01d0 Shi Sh\\u012b Shike Sh\\u00edk\\u011b Shiwa Sh\\u00edw\\u01ce Shou Shou Shou Sh\\u00f3u Shou Sh\\u00f2u Shou Sh\\u01d2u Shou Sh\\u014du Shu Shu Shu Sh\\u00fa Shu Sh\\u00f9 Shu Sh\\u01d4 Shu Sh\\u016b Shua Shua Shua Shu\\u00e0 Shua Shu\\u01ce Shua Shu\\u0101 Shuai Shuai Shuai Shu\\u00e0i Shuai Shu\\u01cei Shuai Shu\\u0101i Shuan Shuan Shuan Shu\\u00e0n Shuan Shu\\u0101n Shuang Shuang Shuang Shu\\u00e0ng Shuang Shu\\u01ceng Shuang Shu\\u0101ng Shui Shui Shui Shu\\u00ed Shui Shu\\u00ec Shui Shu\\u01d0 Shun Shun Shun Sh\\u00f9n Shun Sh\\u01d4n Shuo Shuo Shuo Shu\\u00f2 Shuo Shu\\u014d Si Si Si S\\u00ec Si S\\u01d0 Si S\\u012b Song Song Song S\\u00f3ng Song S\\u00f2ng Song S\\u01d2ng Song S\\u014dng Sou Sou Sou S\\u00f2u Sou S\\u01d2u Sou S\\u014du Su Su Su S\\u00fa Su S\\u00f9 Su S\\u016b Suan Suan Suan Su\\u00e0n Suan Su\\u01cen Suan Su\\u0101n Sui Sui Sui Su\\u00ed Sui Su\\u00ec Sui Su\\u01d0 Sui Su\\u012b Sun Sun Sun S\\u00f9n Sun S\\u01d4n Sun S\\u016bn Suo Suo Suo Su\\u00f2 Suo Su\\u01d2 Suo Su\\u014d Ta Ta Ta T\\u00e0 Ta T\\u01ce Ta T\\u0101 Tai Tai Tai T\\u00e1i Tai T\\u00e0i Tai T\\u01cei Tai T\\u0101i Tan Tan Tan T\\u00e1n Tan T\\u00e0n Tan T\\u01cen Tan T\\u0101n Tang Tang Tang T\\u00e1ng Tang T\\u00e0ng Tang T\\u01ceng Tang T\\u0101ng Tao Tao Tao T\\u00e1o Tao T\\u00e0o Tao T\\u01ceo Tao T\\u0101o Te Te Te T\\u00e8 Teng Teng Teng T\\u00e9ng Teng T\\u00e8ng Teng T\\u0113ng Ti Ti Ti T\\u00ed Ti T\\u00ec Ti T\\u01d0 Ti T\\u012b Tian Tian Tian Ti\\u00e1n Tian Ti\\u00e0n Tian Ti\\u01cen Tian Ti\\u0101n Tiao Tiao Tiao Ti\\u00e1o Tiao Ti\\u00e0o Tiao Ti\\u01ceo Tiao Ti\\u0101o Tie Tie Tie Ti\\u00e9 Tie Ti\\u00e8 Tie Ti\\u011b Tie Ti\\u0113 Ting Ting Ting T\\u00edng Ting T\\u00ecng Ting T\\u01d0ng Ting T\\u012bng Tong Tong Tong T\\u00f3ng Tong T\\u00f2ng Tong T\\u01d2ng Tong T\\u014dng Tou Tou Tou T\\u00f3u Tou T\\u00f2u Tou T\\u01d2u Tou T\\u014du Tu Tu Tu T\\u00fa Tu T\\u00f9 Tu T\\u01d4 Tu T\\u016b Tuan Tuan Tuan Tu\\u00e1n Tuan Tu\\u00e0n Tuan Tu\\u01cen Tuan Tu\\u0101n Tui Tui Tui Tu\\u00ed Tui Tu\\u00ec Tui Tu\\u01d0 Tui Tu\\u012b Tun Tun Tun T\\u00fan Tun T\\u00f9n Tun T\\u01d4n Tun T\\u016bn Tuo Tuo Tuo Tu\\u00f3 Tuo Tu\\u00f2 Tuo Tu\\u01d2 Tuo Tu\\u014d Wa Wa Wa W\\u00e1 Wa W\\u00e0 Wa W\\u01ce Wa W\\u0101 Wai Wai Wai W\\u00e0i Wai W\\u01cei Wai W\\u0101i Wan Wan Wan W\\u00e1n Wan W\\u00e0n Wan W\\u01cen Wan W\\u0101n Wang Wang Wang W\\u00e1ng Wang W\\u00e0ng Wang W\\u01ceng Wang W\\u0101ng Wei Wei Wei W\\u00e9i Wei W\\u00e8i Wei W\\u011bi Wei W\\u0113i Wen Wen Wen W\\u00e9n Wen W\\u00e8n Wen W\\u011bn Wen W\\u0113n Weng Weng Weng W\\u00e8ng Weng W\\u011bng Weng W\\u0113ng Wo Wo Wo W\\u00f2 Wo W\\u01d2 Wo W\\u014d Wu Wu Wu W\\u00fa Wu W\\u00f9 Wu W\\u01d4 Wu W\\u016b Xi Xi Xi X\\u00ed Xi X\\u00ec Xi X\\u01d0 Xi X\\u012b Xia Xia Xia Xi\\u00e1 Xia Xi\\u00e0 Xia Xi\\u01ce Xia Xi\\u0101 Xian Xian Xian Xi\\u00e1n Xian Xi\\u00e0n Xian Xi\\u01cen Xian Xi\\u0101n Xiang Xiang Xiang Xi\\u00e1ng Xiang Xi\\u00e0ng Xiang Xi\\u01ceng Xiang Xi\\u0101ng Xiao Xiao Xiao Xi\\u00e1o Xiao Xi\\u00e0o Xiao Xi\\u01ceo Xiao Xi\\u0101o Xie Xie Xie Xi\\u00e9 Xie Xi\\u00e8 Xie Xi\\u011b Xie Xi\\u0113 Xin Xin Xin X\\u00edn Xin X\\u00ecn Xin X\\u01d0n Xin X\\u012bn Xing Xing Xing X\\u00edng Xing X\\u00ecng Xing X\\u01d0ng Xing X\\u012bng Xiong Xiong Xiong Xi\\u00f3ng Xiong Xi\\u00f2ng Xiong Xi\\u01d2ng Xiong Xi\\u014dng Xiu Xiu Xiu Xi\\u00fa Xiu Xi\\u00f9 Xiu Xi\\u01d4 Xiu Xi\\u016b Xiu X\\u00ecu Xiu X\\u01d0u Xiu X\\u012bu Xu Xu Xu X\\u00fa Xu X\\u00f9 Xu X\\u01d4 Xu X\\u016b Xuan Xuan Xuan Xu\\u00e1n Xuan Xu\\u00e0n Xuan Xu\\u01cen Xuan Xu\\u0101n Xue Xue Xue Xu\\u00e9 Xue Xu\\u00e8 Xue Xu\\u011b Xue Xu\\u0113 Xun Xun Xun X\\u00fan Xun X\\u00f9n Xun X\\u016bn Ya Ya Ya Y\\u00e1 Ya Y\\u00e0 Ya Y\\u01ce Ya Y\\u0101 Yai Yai Yai Y\\u00e1i Yai Y\\u00e0i Yai Y\\u01cei Yai Y\\u0101i Yan Yan Yan Y\\u00e1n Yan Y\\u00e0n Yan Y\\u01cen Yan Y\\u0101n Yang Yang Yang Y\\u00e1ng Yang Y\\u00e0ng Yang Y\\u01ceng Yang Y\\u0101ng Yao Yao Yao Y\\u00e1o Yao Y\\u00e0o Yao Y\\u01ceo Yao Y\\u0101o Ye Ye Ye Y\\u00e9 Ye Y\\u00e8 Ye Y\\u011b Ye Y\\u0113 Yi Yi Yi Y\\u00ed Yi Y\\u00ec Yi Y\\u01d0 Yi Y\\u012b Yin Yin Yin Y\\u00edn Yin Y\\u00ecn Yin Y\\u01d0n Yin Y\\u012bn Ying Ying Ying Y\\u00edng Ying Y\\u00ecng Ying Y\\u01d0ng Ying Y\\u012bng Yo Yo Yo Y\\u014d Yong Yong Yong Y\\u00f3ng Yong Y\\u00f2ng Yong Y\\u01d2ng Yong Y\\u014dng You You You Y\\u00f3u You Y\\u00f2u You Y\\u01d2u You Y\\u014du Yu Yu Yu Y\\u00fa Yu Y\\u00f9 Yu Y\\u01d4 Yu Y\\u016b Yuan Yuan Yuan Yu\\u00e1n Yuan Yu\\u00e0n Yuan Yu\\u01cen Yuan Yu\\u0101n Yue Yue Yue Yu\\u00e8 Yue Yu\\u011b Yue Yu\\u0113 Yun Yun Yun Y\\u00fan Yun Y\\u00f9n Yun Y\\u01d4n Yun Y\\u016bn Za Za Za Z\\u00e1 Za Z\\u01ce Za Z\\u0101 Zai Zai Zai Z\\u00e0i Zai Z\\u01cei Zai Z\\u0101i Zan Zan Zan Z\\u00e1n Zan Z\\u00e0n Zan Z\\u01cen Zan Z\\u0101n Zang Zang Zang Z\\u00e0ng Zang Z\\u01ceng Zang Z\\u0101ng Zao Zao Zao Z\\u00e1o Zao Z\\u00e0o Zao Z\\u01ceo Zao Z\\u0101o Ze Ze Ze Z\\u00e9 Ze Z\\u00e8 Zei Zei Zei Z\\u00e9i Zen Zen Zen Z\\u00e8n Zen Z\\u011bn Zen Z\\u0113n Zeng Zeng Zeng Z\\u00e8ng Zeng Z\\u011bng Zeng Z\\u0113ng Zha Zha Zha Zh\\u00e1 Zha Zh\\u00e0 Zha Zh\\u01ce Zha Zh\\u0101 Zhai Zhai Zhai Zh\\u00e1i Zhai Zh\\u00e0i Zhai Zh\\u01cei Zhai Zh\\u0101i Zhan Zhan Zhan Zh\\u00e1n Zhan Zh\\u00e0n Zhan Zh\\u01cen Zhan Zh\\u0101n Zhang Zhang Zhang Zh\\u00e0ng Zhang Zh\\u01ceng Zhang Zh\\u0101ng Zhao Zhao Zhao Zh\\u00e1o Zhao Zh\\u00e0o Zhao Zh\\u01ceo Zhao Zh\\u0101o Zhe Zhe Zhe Zh\\u00e9 Zhe Zh\\u00e8 Zhe Zh\\u011b Zhe Zh\\u0113 Zhei Zhei Zhei Zh\\u00e8i Zhen Zhen Zhen Zh\\u00e8n Zhen Zh\\u011bn Zhen Zh\\u0113n Zheng Zheng Zheng Zh\\u00e8ng Zheng Zh\\u011bng Zheng Zh\\u0113ng Zhi Zhi Zhi Zh\\u00ed Zhi Zh\\u00ec Zhi Zh\\u01d0 Zhi Zh\\u012b Zhong Zhong Zhong Zh\\u00f2ng Zhong Zh\\u01d2ng Zhong Zh\\u014dng Zhou Zhou Zhou Zh\\u00f3u Zhou Zh\\u00f2u Zhou Zh\\u01d2u Zhou Zh\\u014du Zhu Zhu Zhu Zh\\u00fa Zhu Zh\\u00f9 Zhu Zh\\u01d4 Zhu Zh\\u016b Zhua Zhua Zhua Zhu\\u01ce Zhua Zhu\\u0101 Zhuai Zhuai Zhuai Zhu\\u00e0i Zhuai Zhu\\u01cei Zhuai Zhu\\u0101i Zhuan Zhuan Zhuan Zhu\\u00e0n Zhuan Zhu\\u01cen Zhuan Zhu\\u0101n Zhuang Zhuang Zhuang Zhu\\u00e0ng Zhuang Zhu\\u01ceng Zhuang Zhu\\u0101ng Zhui Zhui Zhui Zhu\\u00ec Zhui Zhu\\u01d0 Zhui Zhu\\u012b Zhun Zhun Zhun Zh\\u00f9n Zhun Zh\\u01d4n Zhun Zh\\u016bn Zhuo Zhuo Zhuo Zhu\\u00f3 Zhuo Zhu\\u00f2 Zhuo Zhu\\u014d Zi Zi Zi Z\\u00ed Zi Z\\u00ec Zi Z\\u01d0 Zi Z\\u012b Zong Zong Zong Z\\u00f2ng Zong Z\\u01d2ng Zong Z\\u014dng Zou Zou Zou Z\\u00f2u Zou Z\\u01d2u Zou Z\\u014du Zu Zu Zu Z\\u00fa Zu Z\\u00f9 Zu Z\\u01d4 Zu Z\\u016b Zuan Zuan Zuan Zu\\u00e0n Zuan Zu\\u01cen Zuan Zu\\u0101n Zui Zui Zui Zu\\u00ec Zui Zu\\u01d0 Zui Zu\\u012b Zun Zun Zun Z\\u00f9n Zun Z\\u01d4n Zun Z\\u016bn Zuo Zuo Zuo Zu\\u00f3 Zuo Zu\\u00f2 Zuo Zu\\u01d2 Zuo Zu\\u014d\".split(\" \"),r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,56,57,58,59,60,61,62,63,65,65,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,390,391,392,393,394,395,396,397,398,399,400,401,401,402,403,403,404,405,406,407,408,409,410,411,412,413,414,414,415,416,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,482,483,484,485,486,487,488,489,490,491,492,493,494,495,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,560,562,563,564,565,566,567,568,569,570,571,572,573,574,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,770,771,772,773,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,881,882,883,884,885,886,887,888,889,890,891,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1E3,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1752,1753,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1809,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1926,1927,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2E3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2601,2602,2603,2604,2605,2606,2607,2608,2609,2610,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2729,2730,2731,2732,2733,2734,2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,2751,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,2767,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,2780,2781,2782,2783,2784,2785,2786,2787,2788,2789,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2808,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2857,2858,2859,2860,2861,2862,2863,2864,2865,2866,2867,2868,2869,2870,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,2931,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2943,2944,2945,2946,2947,2948,2949,2950,2951,2952,2953,2954,2955,2956,2957,2958,2959,2960,2961,2962,2963,2964,2965,2966,2967,2968,2969,2970,2971,2972,2973,2974,2975,2976,2977,2978,2979,2980,2981,2982,2983,2984,2985,2986,2987,2988,2989,2990,2991,2992,2993,2994,2995,2996,2997,2998,2999,3E3,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,3071,3072,3073,3074,3075,3076,3077,3078,3079,3080,3081,3082,3083,3084,3085,3086,3087,3088,3089,3090,3091,3092,3093,3094,3095,3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,3109,3110,3111,3112,3113,3114,3115,3116,3117,3118,3119,3120,3121,3122,3123,3124,3125,3126,3127,3128,3129,3130,3131,3132,3133,3134,3135,3136,3137,3138,3139,3140,3141,3142,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3167,3168,3169,3170,3171,3172,3173,3174,3175,3176,3177,3178,3179,3180,3181,3182,3183,3184,3185,3186,3187,3188,3189,3190,3191,3192,3193,3194,3195,3196,3197,3198,3199,3200,3201,3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3239,3240,3241,3242,3243,3244,3245,3246,3247,3248,3249,3250,3251,3252,3253,3254,3255,3256,3257,3258,3259,3260,3261,3262,3263,3264,3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277,3278,3279,3280,3281,3282,3283,3284,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,3296,3297,3298,3299,3300,3301,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,3312,3313,3314,3315,3316,3317,3318,3319,3320,3321,3322,3323,3324,3325,3326,3327,3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,3338,3339,3340,3341,3342,3344,3345,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,3360,3361,3362,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3387,3388,3389,3390,3391,3392,3393,3394,3395,3396,3397,3398,3399,3400,3401,3402,3403,3404,3405,3406,3407,3408,3409,3410,3411,3412,3413,3414,3415,3416,3417,3418,3419,3420,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431,3432,3433,3434,3435,3436,3437,3438,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,3458,3459,3460,3461,3462,3463,3464,3465,3466,3467,3468,3469,3470,3471,3472,3473,3474,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,3487,3488,3489,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3506,3507,3508,3509,3510,3511,3512,3513,3514,3515,3516,3517,3518,3519,3520,3521,3522,3523,3524,3525,3526,3527,3528,3529,3530,3531,3532,3533,3534,3535,3536,3537,3538,3539,3540,3541,3542,3543,3544,3545,3545,3546,3547,3547,3548,3549,3550,3551,3552,3553,3554,3555,3556,3557,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,3574,3575,3576,3577,3578,3579,3580,3581,3582,3583,3584,3585,3586,3587,3588,3589,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,3643,3644,3645,3646,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,3676,3677,3678,3679,3680,3681,3682,3683,3684,3685,3686,3687,3688,3689,3690,3691,3692,3693,3694,3695,3696,3697,3698,3699,3700,3701,3702,3703,3704,3705,3706,3707,3708,3709,3710,3711,3712,3713,3714,3715,3716,3717,3718,3719,3720,3721,3722,3723,3724,3725,3726,3727,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,3739,3740,3741,3742,3743,3745,3746,3747,3748,3749,3750,3751,3752,3753,3754,3755,3756,3757,3758,3759,3760,3761,3762,3763,3764,3765,3766,3767,3768,3769,3770,3771,3772,3773,3774,3775,3776,3777,3778,3779,3780,3781,3782,3783,3784,3785,3786,3787,3788,3789,3790,3791,3792,3793,3794,3795,3796,3797,3798,3799,3800,3801,3802,3803,3804,3805,3806,3807,3808,3809,3810,3811,3812,3813,3814,3815,3816,3817,3818,3819,3820,3821,3822,3823,3824,3825,3826,3827,3828,3829,3830,3831,3832,3833,3834,3835,3836,3837,3838,3839,3840,3841,3842,3843,3844,3845,3846,3847,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3865,3866,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,3893,3894,3895,3896,3897,3898,3899,3900,3901,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947,3948,3949,3950,3951,3952,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965,3966,3967,3968,3969,3970,3971,3972,3973,3974,3975,3976,3977,3978,3979,3980,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,3992,3993,3994,3995,3996,3997,3998,3999,4E3,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,4174,4175,4176,4177,4178,4179,4180,4181,4182,4183,4184,4185,4186,4187,4188,4189,4190,4191,4192,4193,4194,4195,4196,4197,4198,4199,4200,4201,4202,4203,4204,4205,4206,4207,4208,4209,4210,4214,4215,4216,4217,4218,4219,4220,4221,4222,4223,4224,4225,4226,4227,4228,4229,4230,4231,4232,4233,4234,4235,4236,4237,4238,4239,4240,4241,4242,4243,4244,4245,4246,4247,4248,4249,4250,4251,4252,4253,4254,4255,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,4266,4267,4268,4269,4271,4272,4273,4274,4275,4276,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4290,4291,4292,4293,4294,4295,4296,4297,4298,4299,4300,4301,4302,4303,4304,4305,4306,4307,4308,4309,4311,4312,4313,4314,4315,4316,4317,4318,4319,4320,4321,4322,4323,4324,4325,4326,4327,4328,4329,4330,4330,4331,4332,4333,4334,4335,4336,4337,4338,4339,4340,4341,4342,4343,4344,4345,4346,4347,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,4358,4359,4360,4361,4362,4363,4364,4365,4366,4367,4368,4369,4370,4371,4372,4373,4374,4375,4376,4377,4378,4379,4380,4381,4382,4383,4384,4385,4386,4387,4388,4389,4390,4391,4392,4393,4394,4395,4396,4397,4398,4399,4400,4401,4402,4403,4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433,4434,4435,4436,4437,4438,4439,4441,4442,4443,4444,4445,4446,4447,4448,4449,4450,4451,4452,4453,4454,4455,4456,4457,4458,4459,4460,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4471,4472,4473,4474,4475,4476,4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487,4488,4489,4490,4491,4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,4536,4537,4538,4539,4540,4541,4542,4543,4544,4545,4546,4547,4548,4549,4550,4551,4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,4568,4569,4570,4571,4572,4573,4574,4575,4576,4577,4578,4579,4580,4581,4582,4583,4584,4585,4586,4587,4588,4589,4590,4591,4592,4593,4594,4595,4596,4597,4598,4599,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4647,4648,4649,4650,4651,4652,4653,4654,4655,4656,4657,4658,4659,4660,4660,4661,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,4683,4684,4685,4686,4687,4688,4689,4690,4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4713,4714,4715,4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,4732,4733,4734,4735,4736,4737,4738,4739,4740,4741,4742,4743,4744,4745,4746,4747,4749,4750,4751,4752,4753,4754,4755,4756,4757,4758,4759,4760,4761,4762,4763,4764,4765,4766,4767,4768,4769,4770,4771,4772,4773,4776,4777,4778,4779,4780,4781,4782,4783,4784,4785,4786,4787,4788,4789,4790,4791,4792,4793,4794,4795,4796,4797,4798,4799,4800,4801,4802,4803,4804,4805,4806,4807,4808,4809,4810,4811,4812,4813,4814,4815,4816,4817,4818,4819,4820,4821,4822,4823,4824,4825,4826,4827,4828,4829,4830,4831,4832,4833,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,4880,4881,4882,4883,4884,4885,4886,4887,4888,4889,4890,4891,4892,4893,4894,4895,4896,4897,4898,4899,4900,4901,4902,4903,4904,4905,4906,4907,4908,4909,4910,4911,4912,4913,4914,4915,4916,4917,4918,4919,4920,4921,4922,4923,4924,4925,4926,4927,4928,4929,4930,4931,4932,4933,4934,4935,4936,4937,4938,4939,4940,4941,4942,4943,4944,4945,4946,4947,4948,4949,4950,4951,4952,4953,4954,4955,4956,4957,4958,4959,4960,4961,4964,4965,4966,4967,4968,4969,4970,4971,4972,4973,4974,4975,4976,4977,4978,4979,4980,4981,4982,4983,4984,4985,4986,4987,4988,4989,4990,4991,4992,4993,4994,4995,4996,4997,4998,4999,5E3,5001,5002,5003,5004,5005,5006,5007,5008,5009,5010,5011,5012,5013,5014,5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027,5028,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5057,5058,5059,5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,5073,5074,5075,5076,5077,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102,5103,5104,5105,5106,5107,5108,5109,5110,5111,5112,5113,5114,5115,5116,5117,5118,5119,5120,5121,5122,5123,5124,5125,5126,5127,5128,5129,5130,5131,5132,5133,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,5149,5150,5151,5152,5153,5154,5155,5156,5157,5158,5159,5160,5161,5162,5163,5164,5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,5176,5177,5178,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5197,5198,5199,5200,5201,5202,5203,5204,5205,5206,5207,5208,5209,5210,5211,5212,5213,5214,5215,5216,5217,5218,5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,5248,5249,5250,5251,5252,5253,5254,5255,5256,5257,5258,5259,5260,5261,5262,5263,5264,5265,5266,5267,5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,5279,5280,5281,5282,5283,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,5294,5295,5296,5297,5298,5299,5300,5301,5302,5303,5304,5305,5306,5307,5308,5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,5322,5323,5324,5325,5326,5327,5328,5329,5330,5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,5354,5355,5356,5357,5358,5359,5360,5361,5362,5363,5364,5365,5366,5367,5368,5369,5370,5371,5372,5373,5374,5375,5376,5377,5378,5379,5380,5381,5382,5383,5384,5385,5386,5387,5388,5389,5390,5391,5392,5393,5394,5395,5396,5397,5398,5399,5400,5401,5402,5403,5404,5404,5405,5406,5407,5408,5409,5410,5411,5412,5413,5414,5415,5416,5417,5418,5419,5420,5421,5422,5423,5424,5425,5426,5427,5428,5429,5430,5431,5432,5433,5434,5435,5436,5437,5438,5439,5440,5441,5442,5443,5444,5445,5446,5447,5448,5449,5450,5451,5452,5453,5454,5455,5456,5457,5458,5459,5460,5461,5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472,5473,5474,5475,5476,5477,5478,5479,5480,5481,5482,5483,5484,5485,5486,5487,5488,5489,5490,5491,5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504,5505,5506,5507,5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520,5521,5522,5523,5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536,5537,5538,5539,5540,5541,5542,5543,5544,5545,5546,5547,5548,5549,5550,5551,5552,5553,5554,5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568,5569,5570,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,5615,5616,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,5647,5648,5649,5650,5651,5652,5653,5654,5655,5656,5657,5658,5659,5660,5661,5662,5663,5664,5665,5666,5667,5668,5669,5670,5671,5672,5673,5674,5675,5676,5677,5678,5679,5680,5681,5682,5683,5684,5685,5686,5687,5688,5689,5690,5691,5692,5693,5694,5695,5696,5697,5698,5699,5700,5701,5702,5703,5704,5705,5706,5707,5708,5709,5710,5711,5712,5713,5714,5715,5716,5717,5718,5719,5720,5721,5722,5723,5724,5725,5726,5727,5728,5729,5730,5731,5732,5733,5734,5735,5736,5737,5738,5739,5740,5741,5742,5743,5744,5745,5746,5747,5748,5749,5750,5751,5752,5753,5754,5755,5756,5757,5758,5759,5760,5761,5762,5763,5764,5765,5766,5767,5768,5769,5770,5771,5772,5773,5774,5775,5776,5777,5778,5779,5780,5781,5782,5783,5784,5785,5786,5787,5788,5789,5790,5791,5792,5793,5794,5795,5796,5797,5798,5799,5800,5801,5802,5803,5804,5805,5806,5807,5808,5809,5810,5811,5812,5813,5814,5815,5816,5817,5818,5819,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5830,5831,5832,5833,5834,5835,5836,5837,5838,5839,5840,5841,5842,5843,5844,5845,5846,5847,5848,5849,5850,5851,5852,5853,5854,5855,5856,5857,5858,5859,5860,5861,5862,5863,5864,5865,5866,5867,5868,5869,5870,5871,5872,5873,5874,5875,5876,5877,5878,5879,5880,5881,5882,5883,5884,5885,5886,5887,5888,5889,5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5901,5902,5903,5904,5905,5906,5907,5908,5909,5910,5911,5912,5913,5914,5915,5916,5917,5918,5919,5920,5921,5922,5923,5924,5925,5926,5927,5928,5929,5930,5931,5932,5933,5934,5935,5936,5937,5938,5939,5940,5941,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,5952,5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,5980,5981,5982,5983,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,5994,5995,5996,5997,5998,5999,6E3,6001,6002,6003,6004,6005,6006,6007,6008,6009,6010,6011,6012,6013,6014,6015,6016,6017,6018,6019,6020,6021,6022,6023,6024,6025,6026,6027,6028,6029,6030,6031,6032,6033,6034,6035,6036,6037,6038,6039,6040,6041,6042,6043,6044,6045,6046,6047,6048,6049,6050,6051,6052,6053,6054,6055,6056,6057,6058,6059,6060,6061,6062,6063,6064,6065,6066,6067,6068,6069,6070,6071,6072,6073,6074,6075,6076,6077,6078,6079,6080,6081,6082,6083,6084,6085,6086,6087,6088,6089,6090,6091,6092,6093,6094,6095,6096,6097,6098,6099,6100,6101,6102,6103,6104,6105,6106,6107,6108,6109,6110,6111,6112,6113,6114,6115,6116,6117,6118,6119,6120,6121,6122,6123,6124,6125,6126,6127,6128,6129,6130,6131,6132,6133,6134,6135,6136,6137,6138,6139,6140,6141,6142,6143,6144,6145,6146,6147,6147,6148,6149,6150,6151,6152,6153,6154,6155,6156,6157,6158,6159,6160,6161,6162,6163,6164,6165,6166,6167,6168,6169,6170,6171,6172,6173,6174,6175,6176,6177,6178,6179,6180,6181,6182,6183,6184,6185,6186,6187,6188,6189,6190,6191,6192,6193,6194,6195,6196,6197,6198,6199,6200,6201,6202,6203,6204,6205,6206,6207,6208,6209,6210,6211,6212,6213,6214,6215,6216,6217,6218,6219,6220,6221,6222,6223,6224,6225,6226,6227,6228,6229,6230,6231,6232,6233,6234,6235,6236,6237,6238,6239,6240,6241,6242,6243,6244,6245,6246,6247,6248,6249,6250,6251,6252,6253,6254,6255,6256,6257,6258,6259,6260,6261,6262,6263,6264,6265,6266,6267,6268,6269,6270,6271,6272,6273,6274,6275,6276,6277,6278,6279,6280,6281,6282,6283,6284,6285,6286,6287,6288,6289,6290,6291,6292,6293,6294,6295,6296,6297,6298,6299,6300,6301,6302,6303,6304,6305,6306,6307,6308,6309,6310,6311,6312,6313,6314,6315,6316,6317,6318,6319,6320,6321,6322,6323,6324,6325,6326,6327,6328,6329,6330,6331,6332,6333,6334,6335,6336,6337,6338,6339,6340,6341,6342,6343,6344,6345,6346,6347,6348,6349,6350,6351,6352,6353,6354,6355,6356,6357,6358,6359,6360,6361,6362,6363,6364,6365,6366,6367,6368,6369,6370,6371,6372,6373,6374,6375,6376,6377,6378,6379,6380,6381,6382,6383,6384,6385,6386,6387,6388,6389,6390,6391,6392,6393,6394,6395,6396,6397,6398,6399,6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,6410,6411,6412,6413,6414,6415,6416,6417,6418,6419,6420,6421,6422,6423,6424,6425,6426,6427,6428,6429,6430,6431,6432,6433,6434,6435,6436,6437,6438,6439,6440,6441,6442,6443,6444,6445,6446,6447,6448,6449,6450,6451,6452,6453,6454,6455,6456,6457,6458,6459,6460,6461,6462,6463,6464,6465,6466,6467,6468,6469,6470,6471,6472,6473,6474,6475,6476,6477,6478,6479,6480,6481,6482,6483,6484,6485,6486,6487,6488,6489,6490,6491,6492,6493,6494,6495,6496,6497,6498,6499,6500,6501,6502,6503,6504,6505,6506,6507,6508,6509,6510,6511,6512,6513,6514,6515,6516,6517,6518,6519,6520,6521,6522,6523,6524,6525,6526,6527,6528,6529,6530,6531,6532,6533,6534,6535,6536,6537,6538,6539,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,6564,6565,6566,6567,6568,6569,6570,6571,6572,6573,6574,6575,6576,6577,6578,6579,6580,6581,6582,6583,6584,6585,6586,6587,6588,6589,6590,6591,6592,6593,6594,6595,6596,6597,6598,6599,6600,6601,6602,6603,6604,6605,6606,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6607,6611,6614,6619,6620,6621,6622,6624,6627,6628,6629,6632,6634,6636,6640,6644,6645,6646,6647,6648,6650,6652,6654,6655,6656,6659,6660,6661,6663,6665,6666,6667,6670,6673,6674,6677,6678,6679,6682,6683,6686,6688,6690,6693,6695,6697,6699,6700,6701,6702,6704,6706,6707,6709,6710,6712,6713,6715,6716,6719,6720,6721,6723,6725,6727,6728,6731,6734,6735,6736,6738,6740,6743,6747,6749,6751,6752,6754,6755,6757,6758,6760,6763,6765,6767,6769,6770,6771,6773,6775,6776,6780,6782,6786,6788,6790,6791,6792,6794,6795,6797,6798,6799,6800,6801,6802,6803,6804,6805,6806,6807,6808,6809,6810,6812,6813,6815,6817,6819,6820,6821,6822,6824,6825,6826,6827,6828,6831,6834,6835,6837,6839,6842,6843,6845,6847,6850,6853,6855,6856,6858,6859,6860,6862,6864,6866,6868,6869,6870,6871,6872,6873,6875,6876,6879,6881,6883,6887,6890,6894,6896,6899,6901,6903,6904,6906,6908,6909,6910,6913,6914,6915,6916,6917,6918,6920,6921,6922,6923,6926,6927,6928,6929,6931,6933,6934,6936,6938,6940,6941,6942,6944,6945,6948,6949,6950,6951,6953,6956,6959,6963,6964,6965,6967,6968,6969,6971,6974,6976,6979,6981,6982,6984,6988,6989,6990,6992,6993,6994,6995,7001,7002,7003,7004,7005,7007,7009,7010,7011,7014,7015,7016,7019,7020,7022,7023,7024,7026,7027,7028,7031,7033,7035,7036,7039,7040,7041,7042,7046,7049,7050,7054,7056,7057,7059,7060,7062,7063,7064,7066,7069,7070,7072,7074,7075,7076,7078,7079,7080,7082,7083,7085,7086,7087,7091,7095,7097,7099,7101,7104,7105,7106,7108,7110,7112,7116,7118,7119,7120,7124,7126,7128,7130,7131,7133,7135,7138,7139,7140,7141,7142,7144,7146,7149,7154,7156,7157,7159,7160,7161,7162,7163,7164,7165,7168,7171,7173,7175,7178,7180,7181,7182,7185,7186,7189,7191,7192,7193,7194,7195,7196,7198,7202,7204,7205,7206,7207,7208,7209,7210,7213,7216,7219,7221,7223,7225,7227,7229,7234,7238,7241,7243,7244,7245,7246,7247,7250,7251,7252,7254,7256,7258,7260,7262,7264,7265,7266,7268,7269,7270,7271,7273,7274,7276,7277,7278,7282,7283,7285,7286,7287,7289,7291,7292,7294,7295,7296,7298,7299,7300,7303,7305,7306,7308,7310,7313,7314,7316,7317,7319,7320,7321,7322,7325,7326,7328,7329,7332,7336,7338,7341,7343,7345,7346,7347,7349,7351,7352,7353,7354,7355,7356,7359,7361,7367,7369,7370,7372,7374,7375,7378,7379,7381,7383,7385,7388,7389,7391,7393,7394,7395,7397,7398,7399,7404,7405,7406,7407,7411,7413,7415,7417,7419,7420,7423,7425,7427,7429,7432,7434,7435,7436,7438,7440,7443,7444,7446,7447,7449,7451,7452,7454,7456,7457,7458,7459,7461,7463,7465,7469,7471,7472,7474,7477,7479,7480,7482,7483,7484,7486,7489,7490,7492,7493,7494,7497,7498,7499,7501,7502,7503,7504,7506,7509,7511,7512,7516,7518,7519,7521,7522,7524,7527,7530,7531,7532,7534,7535,7539,7542,7544,7546,7550,7553,7556,7557,7558,7560,7561,7562,7564,7566,7569,7572,7576,7577,7578,7581,7583,7584,7586,7587,7588,7590,7591,7593,7596,7598,7599,7600,7602,7604,7606,7607,7608,7609,7611,7612,7614,7615,7617,7619,7620,7623,7624,7627,7628,7630,7631,7632,7633,7635,7636,7637,7639,7640,7642,7643,7645,7647,7649,7653,7655,7657,7659,7661,7662,7665,7667,7669,7670,7671,7673,7675,7676,7678,7679,7680,7681,7682,7683,7684,7685,7686,7688,7689,7690,7692,7693,7694,7695,7698,7701,7702,7703,7705,7706,7708,7709,7712,7713,7715,7716,7717,7718,7719,7720,7722,7724,7730,7732,7734,7735,7736,7737,7742,7744,7745,7747,7748,7750,7753,7754,7756,7758,7759,7761,7764,7766,7767,7769,7771,7774,7776,7778,7779,7780,7781,7782,7784,7786,7788,7792,7795,7796,7797,7798,7799,7803,7804,7806,7807,7808,7809,7810,7812,7813,7815,7816,7817,7819,7820,7822,7826,7827,7829,7832,7834,7836,7839,7843,7845,7849,7851,7853,7857,7858,7860,7861,7863,7865,7866,7867,7868,7871,7872,7873,7875,7876,7879,7882,7885,7887,7890,7891,7892,7895,7896,7898,7902,7903,7904,7906,7908,7911,7913,7915,7916,7918,7920,7922,7923,7924,7927,7931,7933,7934,7935,7936,7940,7942,7944,7947,7949,7951,7952,7953,7956,7959,7961,7962,7964,7967,7968,7969,7970,7972,7973,7974,7976,7977,7979,7984,7986,7988,7989,7990,7992,7994,7995,7997,7998,8001,8002,8004,8005,8007,8008,8009,8010,8012,8015,8017,8019,8021,8024,8027,8029,8031,8033,8035,8036,8038,8040,8041,8043,8044,8046,8048,8049,8051,8053,8054,8055,8056,8058,8061,8063,8064,8065,8066,8067,8068,8070,8073,8074,8075,8076,8079,8080,8082,8084,8086,8088,8090,8091,8092,8094,8096,8098,8101,8103,8105,8107,8109,8110,8112,8114,8115,8117,8119,8120,8122,8125,8126,8130,8131,8133,8136,8138,8142,8145,8148,8149,8150,8152,8154,8155,8157,8158,8160,8161,8163,8165,8166,8167,8169,8170,8172,8173,8175,8177,8180,8181,8182,8185,8188,8190,8193,8194,8196,8197,8199,8201,8202,8205,8206,8208,8209,8210,8213,8214,8215,8216,8217,8218,8219,8220,8221,8223,8224,8227,8230,8232,8233,8235,8237,8240,8243,8245,8247,8249,8252,8254,8255,8257,8260,8262,8263,8265,8267,8270,8272,8273,8275,8276,8277,8279,8280,8283,8286,8287,8289,8291,8293,8294,8296,8297,8299,8301,8303,8305,8306,8308,8311,8312,8313,8315,8317,8319,8320,8321,8322,8323,8325,8327,8329,8330,8331,8333,8334,8336,8337,8338,8339,8340,8341,8343,8345,8347,8349,8350,8351,8353,8355,8356,8357,8359,8361,8363,8364,8366,8368,8370,8372,8373,8374,8376,8378,8380,8382,8383,8385,8387,8388,8389,8390,8391,8392,8394,8395,8396,8397,8398,8399,8400,8402,8403,8405,8406,8408,8409,8410,8412,8414,8416,8417,8418,8421,8423,8424,8425,8426,8427,8429,8430,8431,8433,8434,8435,8437,8440,8442,8443,8444,8445,8446,8447,8448,8450,8451,8452,8453,8457,8459,8461,8462,8463,8464,8466,8468,8470,8473,8474,8475,8476,8477,8478,8480,8481,8482,8483,8485,8486,8487,8490,8492,8493,8496,8498,8499,8501,8503,8504,8506,8508,8510,8511,8512,8513,8516,8519,8523,8526,8527,8528,8529,8531,8532,8534,8535,8536,8537,8538,8539,8540,8542,8544,8546,8549,8551,8553,8554,8558,8560,8562,8563,8565,8566,8567,8569,8571,8573,8574,8576,8577,8579,8581,8586,8587,8590,8593,8596,8598,8599,8600,8605,8606,8607,8609,8610,8611,8613,8618,8619,8621,8623,8624,8625,8626,8628,8630,8633,8636,8637,8641,8643,8644,8646,8647,8649,8650,8653,8655,8657,8659,8662,8664,8665,8667,8668,8671,8673,8674,8677,8678,8679,8680,8682,8683,8684,8685,8686,8687,8688,8689,8691,8694,8695,8696,8697,8699,8700,8701,8702,8703,8705,8706,8707,8710,8712,8714,8715,8717,8719,8721,8722,8723,8725,8726,8728,8730,8731,8734,8735,8736,8738,8739,8740,8741,8742,8744,8745,8746,8747,8748,8750,8751,8754,8756,8758,8760,8762,8763,8765,8767,8768,8769,8770,8773,8774,8775,8776,8778,8782,8784,8786,8787,8789,8790,8791,8792,8794,8795,8796,8799,8801,8802,8803,8804,8807,8809,8810,8812,8815,8818,8819,8820,8821,8825,8826,8828,8831,8832,8833,8834,8835,8836,8837,8838,8839,8840,8842,8843,8845,8847,8849,8851,8853,8856,8857,8859,8860,8862,8863,8864,8866,8868,8869,8871,8872,8873,8875,8876,8878,8879,8880,8881,8882,8883,8885,8886,8888,8890,8892,8893,8896,8897,8899,8900,8902,8903,8905,8907,8908,8909,8910,8911,8912,8913,8914,8918,8919,8921,8922,8924,8925,8928,8929,8930,8933,8935,8937,8938,8939,8941,8944,8945,8947,8950,8951,8953,8956,8957,8958,8961,8962,8963,8964,8966,8967,8971,8972,8973,8974,8976,8977,8978,8980,8983,8984,8986,8987,8991,8992,8993,8996,8998,9E3,9001,9004,9005,9008,9010,9012,9013,9014,9016,9020,9021,9022,9023,9024,9026,9028,9029,9031,9032,9033,9036,9038,9039,9040,9042,9043,9045,9046,9048,9050,9052,9055,9056,9059,9061,9063,9067,9068,9069,9070,9071,9072,9077,9081,9082,9083,9084,9086,9090,9091,9093,9097,9101,9103,9104,9107,9109,9111,9112,9114,9116,9119,9120,9121,9122,9124,9125,9126,9128,9130,9132,9134,9139,9141,9142,9144,9145,9147,9150,9151,9152,9154,9158,9160,9161,9165,9166,9167,9169,9171,9172,9174,9176,9178,9180,9182,9186,9191,9192,9194,9195,9196,9198,9200,9203,9204,9210,9216,9220,9225,9228,9229,9230,9235,9236,9238,9240,9241,9242,9246,9247,9250,9252,9254,9255,9259,9260,9261,9262,9263,9265,9266,9268,9269,9272,9273,9275,9277,9279,9281,9282,9285,9286,9288,9292,9293,9295,9297,9301,9303,9304,9306,9309,9311,9312,9313,9316,9318,9320,9323,9325,9326,9328,9329,9330,9332,9333,9335,9337,9341,9342,9344,9346,9349,9350,9351,9354,9356,9357,9360,9363,9365,9366,9367,9369,9370,9372,9374,9375,9376,9378,9381,9383,9384,9386,9388,9389,9391,9393,9395,9397,9401,9403,9405,9407,9410,9414,9416,9418,9419,9421,9423,9425,9429,9431,9432,9433,9435,9438,9441,9442,9445,9447,9452,9453,9455,9458,9460,9461,9465,9467,9469,9473,9475,9476,9478,9479,9482,9483,9484,9485,9486,9488,9489,9491,9493,9495,9496,9500,9503,9506,9507,9509,9513,9514,9516,9521,9524,9528,9531,9532,9535,9536,9538,9539,9543,9546,9551,9553,9555,9556,9557,9558,9559,9560,9562,9565,9566,9568,9570,9573,9578,9581,9582,9585,9592,9593,9595,9597,9598,9600,9601,9603,9605,9609,9613,9616,9619,9621,9623,9624,9626,9627,9630,9631,9632,9634,9639,9646,9649,9651,9653,9654,9655,9656,9657,9660,9662,9665,9666,9667,9668,9670,9672,9674,9675,9677,9678,9679,9681,9682,9684,9685,9689,9690,9694,9695,9697,9699,9700,9701,9704,9705,9710,9712,9717,9718,9721,9722,9725,9727,9729,9730,9733,9736,9739,9743,9747,9748,9749,9751,9753,9754,9755,9759,9761,9765,9767,9771,9773,9774,9778,9779,9780,9784,9786,9787,9792,9793,9794,9796,9799,9801,9803,9804,9805,9806,9807,9811,9813,9815,9817,9818,9823,9827,9830,9831,9833,9837,9839,9841,9844,9850,9852,9854,9856,9857,9858,9859,9863,9864,9865,9867,9868,9870,9872,9874,9875,9876,9877,9879,9881,9885,9887,9888,9890,9891,9893,9895,9897,9899,9901,9902,9905,9907,9910,9913,9915,9917,9918,9919,9920,9923,9924,9928,9929,9934,9935,9936,9937,9940,9942,9943,9946,9947,9948,9951,9952,9953,9954,9955,9957,9959,9961,9963,9965,9966,9970,9973,9974,9975,9977,9979,9981,9983,9984,9985,9987,9991,9992,9995,9997,9999,10001,10003,10004,10006,10007,10009,10013,10014,10016,10017,10020,10021,10024,10027,10030,10035,10037,10039,10045,10046,10048,10051,10057,10058,10059,10060,10061,10062,10063,10066,10070,10073,10075,10078,10079,10084,10085,10086,10088,10089,10090,10092,10094,10096,10098,10100,10103,10104,10107,10108,10110,10112,10113,10116,10118,10119,10122,10125,10126,10127,10128,10129,10130,10131,10133,10134,10137,10139,10140,10142,10146,10147,10148,10149,10151,10152,10156,10157,10158,10159,10162,10163,10165,10166,10170,10175,10177,10182,10183,10185,10186,10187,10189,10191,10192,10193,10198,10199,10203,10204,10206,10209,10211,10213,10215,10216,10218,10222,10224,10225,10227,10230,10234,10237,10239,10243,10246,10251,10252,10254,10257,10258,10260,10261,10264,10265,10267,10268,10270,10271,10273,10275,10277,10279,10280,10281,10285,10288,10291,10294,10295,10297,10299,10302,10303,10306,10307,10310,10312,10314,10316,10319,10321,10322,10324,10325,10328,10329,10332,10334,10337,10338,10339,10340,10341,10343,10345,10346,10347,10349,10350,10352,10356,10360,10361,10363,10365,10366,10367,10369,10373,10374,10376,10378,10382,10383,10384,10386,10388,10390,10392,10396,10400,10401,10403,10404,10405,10407,10408,10410,10411,10415,10420,10421,10424,10425,10426,10428,10429,10432,10434,10437,10439,10442,10444,10445,10446,10448,10449,10451,10453,10455,10457,10460,10462,10464,10465,10467,10468,10471,10472,10473,10475,10476,10478,10480,10482,10483,10485,10486,10488,10493,10494,10497,10498,10500,10501,10504,10506,10508,10509,10510,10511,10515,10516,10519,10520,10523,10525,10527,10532,10533,10535,10538,10540,10544,10545,10546,10548,10553,10554,10557,10561,10563,10565,10566,10567,10568,10569,10571,10573,10574,10575,10577,10579,10581,10583,10584,10585,10587,10588,10590,10592,10593,10595,10597,10599,10601,10603,10607,10608,10609,10610,10611,10612,10613,10618,10620,10624,10627,10631,10633,10635,10638,10639,10640,10644,10646,10648,10649,10651,10653,10655,10658,10660,10662,10663,10665,10666,10671,10673,10674,10676,10678,10679,10684,10686,10690,10692,10693,10695,10697,10698,10699,10703,10704,10706,10707,10710,10711,10713,10715,10717,10720,10721,10722,10723,10725,10729,10730,10733,10734,10736,10737,10738,10739,10741,10742,10743,10745,10747,10748,10749,10750,10752,10753,10755,10758,10760,10761,10764,10765,10767,10768,10771,10776,10777,10779,10780,10782,10784,10787,10791,10792,10793,10795,10796,10797,10800,10803,10807,10809,10810,10813,10814,10819,10820,10821,10823,10824,10825,10828,10830,10831,10833,10836,10837,10839,10841,10842,10843,10845,10846,10848,10850,10854,10856,10858,10860,10862,10864,10868,10869,10870,10872,10873,10874,10876,10878,10880,10881,10882,10884,10885,10887,10889,10890,10891,10892,10893,10894,10895,10896,10897,10899,10901,10903,10905,10906,10908,10910,10915,10917,10918,10919,10923,10924,10926,10930,10932,10934,10936,10938,10940,10942,10943,10944,10946,10949,10950,10951,10954,10956,10958,10959,10961,10962,10963,10964,10966,10967,10968,10971,10973,10975,10976,10980,10981,10982,10984,10985,10988,10990,10991,10993,10994,10995,10997,10998,10999,11E3,11003,11006,11008,11009,11010,11011,11012,11014,11015,11016,11017,11019,11021,11023,11027,11032,11035,11037,11039,11040,11041,11046,11047,11049,11051,11052,11054,11055,11056,11057,11060,11062,11063,11064,11065,11066,11067,11068,11070,11072,11075,11076,11078,11079,11080,11082,11084,11085,11087,11088,11090,11091,11092,11094,11097,11098,11100,11102,11103,11106,11108,11110,11112,11114,11116,11119,11120,11121,11122,11124,11125,11126,11128,11129,11130,11131,11132,11134,11135,11136,11139,11140,11143,11144,11145,11146,11148,11150,11151,11152,11154,11155,11156,11158,11159,11161,11162,11164,11166,11167,11169,11170,11172,11173,11175,11177,11179,11180,11182,11183,11184,11185,11186,11187,11188,11191,11193,11195,11196,11197,11199,11200,11201,11203,11204,11205,11208,11210,11213,11215,11216,11218,11221,11222,11224,11227,11229,11231,11235,11238,11242,11244,11246,11248,11249,11252,11253,11255,11256,11258,11262,11263,11264,11266,11269,11270,11271,11272,11273,11274,11275,11277,11278,11280,11281,11283,11284,11289,11292,11296,11299,11301,11304,11305,11308,11310,11311,11313,11315,11316,11318,11320,11322,11324,11328,11330,11331,11332,11334,11335,11336,11338,11339,11342,11343,11346,11347,11350,11352,11353,11354,11356,11357,11358,11359,11365,11367,11369,11372,11374,11375,11376,11377,11379,11381,11384,11386,11388,11389,11391,11392,11393,11394,11396,11398,11400,11402,11404,11406,11408,11409,11414,11416,11418,11419,11423,11424,11428,11432,11434,11435,11437,11439,11440,11441,11442,11444,11447,11450,11451,11454,11455,11457,11459,11460,11461,11462,11464,11467,11469,11473,11475,11476,11477,11479,11480,11481,11483,11485,11487,11489,11490,11491,11492,11494,11495,11497,11499,11501,11503,11504,11506,11508,11510,11511,11513,11514,11518,11519,11520,11521,11523,11527,11529,11530,11532,11534,11535,11536,11537,11539,11541,11542,11543,11545,11548,11550,11552,11553,11555,11556,11557,11561,11562,11564,11565,11566,11568,11571,11574,11575,11576,11580,11582,11583,11584,11586,11588,11590,11591,11594,11595,11597,11598,11599,11601,11604,11605,11608,11610,11611,11612,11616,11617,11618,11619,11621,11623,11624,11626,11627,11628,11629,11630,11632,11634,11636,11637,11639,11640,11644,11646,11649,11653,11655,11659,11660,11662,11664,11668,11669,11670,11672,11673,11674,11676,11678,11680,11681,11682,11684,11685,11686,11687,11691,11692,11693,11697,11699,11701,11705,11707,11708,11709,11710,11712,11716,11717,11718,11719,11720,11721,11722,11723,11724,11726,11727,11728,11730,11734,11735,11736,11738,11740,11741,11742,11743,11745,11746,11748,11750,11751,11752,11755,11756,11758,11759,11760,11761,11763,11765,11766,11768,11770,11771,11772,11773,11774,11776,11777,11778,11782,11783,11784,11785,11786,11788,11789,11790,11791,11793,11794,11795,11798,11799,11800,11805,11807,11810,11812,11816,11817,11819,11820,11822,11824,11825,11826,11828,11829,11833,11834,11835,11836,11838,11839,11840,11846,11850,11852,11853,11854,11855,11856,11857,11859,11861,11862,11864,11867,11869,11870,11871,11875,11878,11880,11881,11884,11887,11889,11890,11894,11896,11898,11900,11901,11903,11906,11908,11909,11912,11916,11917,11918,11919,11921,11925,11926,11928,11930,11931,11933,11936,11937,11939,11941,11942,11943,11945,11946,11947,11950,11952,11954,11955,11958,11960,11964,11967,11968,11969,11970,11973,11975,11976,11977,11980,11981,11983,11987,11988,11990,11992,11994,11998,12001,12002,12005,12006,12008,12010,12012,12013,12014,12015,12016,12018,12020,12022,12025,12027,12030,12032,12033,12034,12036,12038,12040,12042,12044,12045,12046,12047,12049,12051,12054,12055,12056,12058,12060,12061,12062,12063,12065,12066,12068,12071,12073,12074,12075,12076,12077,12081,12082,12083,12085,12087,12089,12094,12096,12099,12101,12103,12105,12107,12108,12110,12112,12114,12116,12117,12121,12123,12124,12127,12128,12129,12131,12132,12133,12134,12136,12137,12139,12141,12142,12146,12148,12150,12151,12152,12154,12156,12157,12158,12159,12160,12162,12163,12164,12166,12167,12168,12170,12171,12172,12173,12174,12176,12178,12179,12181,12182,12183,12184,12185,12187,12190,12191,12193,12195,12197,12198,12200,12201,12202,12203,12204,12205,12207,12209,12212,12215,12218,12219,12220,12222,12225,12226,12228,12229,12230,12232,12234,12238,12241,12243,12245,12246,12248,12251,12252,12254,12256,12258,12260,12263,12265,12266,12267,12269,12270,12271,12272,12273,12275,12278,12280,12282,12284,12285,12288,12289,12291,12293,12294,12295,12296,12298,12299,12300,12304,12307,12310,12312,12313,12314,12316,12319,12323,12327,12329,12330,12331,12332,12333,12334,12335,12337,12339,12341,12344,12347,12349,12350,12353,12355,12357,12358,12360,12361,12362,12363,12364,12365,12368,12369,12370,12371,12374,12376,12377,12381,12383,12384,12385,12386,12388,12393,12395,12397,12398,12399,12401,12403,12404,12406,12407,12408,12410,12411,12414,12415,12417,12419,12420,12422,12424,12426,12427,12428,12429,12432,12433,12434,12435,12439,12442,12444,12446,12448,12450,12452,12453,12455,12460,12461,12464,12466,12470,12471,12473,12474,12475,12476,12477,12478,12479,12480,12481,12483,12484,12485,12486,12489,12490,12492,12494,12497,12499,12501,12503,12504,12505,12509,12511,12512,12513,12514,12516,12518,12519,12520,12522,12524,12525,12526,12527,12529,12533,12534,12536,12537,12538,12539,12542,12543,12546,12548,12549,12553,12555,12556,12558,12559,12561,12562,12563,12565,12566,12568,12569,12571,12572,12575,12577,12579,12580,12582,12583,12585,12586,12588,12590,12592,12594,12595,12596,12600,12601,12603,12605,12608,12609,12611,12614,12616,12618,12620,12625,12627,12628,12630,12632,12633,12634,12636,12637,12638,12640,12642,12644,12646,12647,12650,12653,12654,12656,12661,12662,12663,12665,12667,12668,12669,12670,12673,12675,12678,12682,12684,12686,12688,12690,12691,12692,12693,12694,12695,12697,12699,12700,12702,12704,12705,12706,12710,12713,12714,12716,12717,12718,12719,12721,12723,12724,12725,12726,12727,12728,12729,12730,12731,12733,12736,12737,12739,12740,12742,12743,12744,12745,12748,12749,12750,12752,12754,12755,12757,12758,12760,12761,12763,12768,12769,12771,12773,12775,12777,12779,12780,12782,12784,12786,12787,12789,12791,12793,12795,12797,12799,12801,12804,12805,12806,12809,12811,12812,12813,12814,12815,12817,12818,12820,12821,12822,12824,12826,12827,12829,12831,12832,12834,12837,12839,12841,12842,12844,12847,12849,12851,12853,12857,12860,12863,12865,12867,12868,12870,12872,12873,12875,12877,12878,12879,12882,12883,12885,12886,12887,12888,12890,12891,12892,12894,12895,12897,12899,12901,12903,12906,12908,12910,12913,12914,12916,12918,12919,12920,12923,12925,12926,12929,12930,12931,12932,12934,12935,12937,12938,12940,12942,12943,12945,12948,12952,12954,12955,12956,12958,12960,12962,12963,12965,12967,12969,12971,12973,12974,12975,12976,12977,12979,12982,12983,12984,12985,12987,12988,12989,12990,12993,12995,12997,12999,13E3,13001,13002,13003,13005,13006,13007,13008,13009,13010,13012,13014,13015,13016,13020,13021,13022,13024,13025,13028,13030,13032,13033,13037,13038,13039,13041,13043,13045,13046,13048,13050,13057,13059,13060,13061,13063,13064,13066,13068,13069,13070,13071,13073,13074,13075,13078,13080,13081,13082,13084,13085,13087,13088,13091,13094,13097,13100,13102,13104,13106,13109,13111,13112,13114,13117,13119,13121,13122,13123,13124,13127,13130,13132,13133,13135,13137,13139,13140,13141,13143,13144,13145,13146,13148,13151,13153,13155,13156,13158,13160,13161,13162,13163,13168,13169,13170,13172,13173,13174,13176,13180,13182,13185,13188,13190,13193,13195,13196,13198,13200,13201,13202,13204,13207,13210,13213,13214,13215,13216,13218,13219,13220,13222,13223,13225,13227,13229,13230,13231,13234,13235,13236,13237,13238,13241,13242,13247,13248,13249,13250,13251,13252,13253,13256,13257,13260,13261,13262,13263,13265,13266,13267,13268,13270,13273,13275,13276,13279,13281,13285,13286,13288,13289,13291,13293,13294,13295,13297,13299,13300,13301,13302,13303,13304,13305,13309,13310,13311,13313,13315,13316,13317,13318,13319,13321,13323,13325,13329,13330,13332,13334,13336,13337,13338,13339,13340,13341,13342,13343,13344,13345,13347,13348,13350,13352,13354,13356,13360,13362,13363,13364,13365,13366,13370,13371,13372,13374,13376,13377,13378,13379,13382,13383,13385,13386,13388,13390,13391,13392,13393,13394,13396,13398,13399,13400,13402,13403,13404,13407,13409,13410,13412,13413,13414,13416,13417,13418,13422,13423,13425,13426,13427,13428,13429,13430,13431,13432,13434,13435,13437,13440,13442,13443,13444,13449,13451,13452,13455,13456,13458,13460,13463,13465,13466,13467,13468,13469,13470,13472,13474,13476,13477,13479,13482,13483,13485,13486,13488,13491,13492,13493,13495,13496,13497,13498,13500,13501,13503,13506,13507,13509,13510,13512,13513,13514,13516,13519,13520,13521,13522,13524,13526,13527,13529,13531,13532,13534,13537,13539,13540,13542,13543,13545,13546,13550,13551,13553,13555,13556,13557,13559,13561,13562,13564,13567,13568,13569,13570,13571,13573,13574,13576,13577,13578,13579,13580,13582,13584,13586,13587,13589,13592,13595,13596,13597,13599,13602,13604,13605,13606,13607,13608,13610,13611,13612,13614,13615,13617,13619,13621,13625,13626,13628,13630,13632,13638,13640,13642,13644,13646,13648,13649,13650,13652,13655,13656,13657,13658,13659,13663,13665,13667,13668,13670,13672,13676,13678,13680,13681,13683,13684,13686,13687,13689,13691,13693,13694,13697,13698,13699,13700,13702,13705,13707,13708,13709,13710,13712,13713,13715,13716,13717,13718,13719,13720,13721,13722,13723,13725,13727,13729,13731,13732,13734,13736,13738,13740,13742,13744,13746,13748,13749,13751,13753,13755,13756,13757,13759,13760,13762,13764,13766,13769,13770,13774,13776,13777,13779,13783,13784,13785,13787,13788,13790,13792,13794,13796,13800,13802,13803,13804,13806,13809,13810,13811,13813,13814,13817,13821,13822,13823,13824,13825,13827,13829,13832,13833,13834,13835,13840,13842,13843,13844,13845,13847,13851,13852,13853,13855,13856,13858,13860,13862,13863,13864,13866,13867,13868,13872,13873,13875,13877,13881,13884,13885,13887,13888,13890,13892,13893,13895,13896,13897,13898,13900,13902,13905,13906,13908,13911,13914,13915,13917,13920,13921,13922,13924,13925,13926,13927,13929,13930,13932,13935,13936,13938,13942,13943,13944,13945,13947,13948,13949,13950,13951,13954,13956,13957,13958,13959,13960,13962,13964,13965,13966,13968,13970,13972,13974,13976,13978,13980,13982,13984,13985,13986,13988,13989,13990,13991,13992,13993,13994,13996,13997,13998,13999,14E3,14003,14005,14013,14016,14019,14020,14021,14022,14024,14025,14027,14030,14031,14033,14034,14037,14038,14039,14041,14044,14046,14048,14050,14051,14052,14054,14055,14057,14058,14059,14060,14061,14062,14063,14064,14065,14066,14068,14069,14071,14073,14074,14077,14079,14081,14082,14084,14085,14086,14087,14088,14089,14090,14092,14094,14097,14099,14101,14102,14104,14105,14108,14110,14111,14113,14114,14116,14117,14118,14120,14122,14123,14126,14128,14129,14130,14132,14135,14137,14139,14140,14141,14143,14144,14146,14148,14150,14151,14152,14153,14154,14156,14158,14159,14160,14161,14162,14163,14165,14166,14167,14168,14169,14173,14175,14176,14178,14179,14181,14182,14184,14185,14186,14188,14189,14190,14192,14193,14196,14198,14200,14201,14203,14205,14207,14209,14212,14214,14216,14218,14219,14220,14221,14222,14225,14227,14229,14230,14232,14234,14235,14237,14238,14239,14240,14241,14243,14247,14249,14250,14252,14253,14254,14257,14258,14260,14262,14266,14268,14269,14273,14276,14277,14278,14279,14280,14281,14283,14286,14288,14289,14290,14292,14294,14296,14298,14299,14300,14302,14304,14305,14306,14307,14308,14309,14312,14315,14316,14317,14318,14319,14321,14325,14326,14328,14329,14332,14333,14335,14338,14341,14343,14344,14346,14348,14350,14352,14353,14355,14357,14359,14361,14362,14366,14367,14368,14370,14371,14374,14376,14379,14381,14382,14383,14384,14385,14387,14389,14391,14395,14397,14399,14400,14402,14403,14405,14406,14407,14408,14409,14410,14411,14413,14415,14417,14418,14421,14426,14427,14428,14430,14432,14433,14435,14437,14438,14439,14440,14441,14442,14443,14445,14446,14447,14450,14451,14453,14454,14455,14458,14459,14460,14461,14462,14463,14465,14467,14468,14469,14470,14473,14474,14476,14479,14480,14482,14484,14485,14486,14487,14488,14490,14491,14492,14493,14494,14496,14498,14499,14500,14501,14502,14505,14507,14508,14509,14510,14514,14515,14518,14519,14520,14521,14524,14525,14526,14527,14529,14530,14532,14534,14536,14539,14541,14543,14545,14549,14550,14551,14552,14553,14556,14557,14560,14563,14565,14567,14569,14571,14572,14574,14575,14576,14578,14579,14580,14582,14583,14586,14589,14593,14594,14597,14600,14602,14604,14606,14607,14608,14611,14612,14613,14615,14616,14617,14618,14619,14620,14621,14622,14623,14625,14627,14630,14631,14633,14634,14636,14638,14640,14642,14644,14646,14647,14649,14651,14653,14656,14657,14658,14660,14662,14664,14667,14668,14671,14672,14673,14675,14676,14678,14679,14681,14683,14685,14686,14688,14689,14690,14692,14693,14694,14696,14697,14699,14700,14701,14705,14707,14708,14709,14710,14711,14713,14715,14718,14720,14724,14725,14726,14728,14729,14731,14732,14735,14736,14739,14741,14742,14743,14744,14746,14748,14749,14750,14751,14752,14753,14758,14759,14760,14761,14762,14764,14767,14768,14770,14772,14773,14774,14776,14777,14779,14780,14783,14784,14785,14787,14788,14790,14792,14794,14796,14798,14799,14800,14801,14802,14804,14805,14806,14807,14808,14809,14810,14812,14816,14818,14820,14822,14823,14824,14825,14826,14828,14830,14832,14834,14839,14843,14844,14845,14846,14847,14848,14849,14851,14852,14855,14857,14860,14862,14865,14866,14867,14869,14871,14872,14873,14879,14882,14884,14885,14887,14889,14891,14892,14893,14897,14899,14902,14903,14904,14905,14907,14908,14910,14912,14914,14915,14916,14919,14920,14923,14925,14927,14929,14930,14932,14933,14935,14938,14941,14942,14943,14945,14947,14948,14952,14953,14955,14959,14961,14962,14964,14965,14968,14969,14970,14971,14972,14974,14976,14977,14978,14979,14980,14982,14984,14985,14987,14989,14990,14991,14994,14995,14999,15E3,15002,15003,15004,15006,15007,15009,15010,15011,15012,15016,15017,15018,15019,15020,15024,15025,15027,15028,15029,15031,15033,15034,15036,15037,15038,15040,15042,15045,15048,15049,15050,15053,15056,15057,15058,15059,15061,15062,15063,15065,15066,15068,15069,15070,15071,15073,15074,15076,15078,15080,15081,15084,15086,15087,15090,15092,15094,15095,15096,15098,15099,15100,15105,15106,15107,15109,15111,15113,15114,15116,15117,15119,15121,15125,15128,15130,15133,15134,15137,15140,15142,15143,15144,15146,15147,15148,15151,15152,15153,15154,15155,15156,15157,15158,15159,15162,15164,15167,15169,15170,15171,15174,15175,15176,15178,15179,15181,15182,15184,15186,15187,15188,15190,15191,15192,15194,15196,15197,15198,15200,15202,15204,15205,15206,15208,15210,15213,15214,15215,15216,15217,15218,15219,15220,15222,15224,15228,15229,15230,15232,15233,15235,15236,15238,15239,15240,15241,15243,15247,15249,15250,15253,15256,15257,15259,15262,15264,15265,15266,15269,15270,15272,15273,15275,15276,15278,15279,15280,15281,15286,15289,15291,15292,15294,15295,15296,15298,15299,15300,15301,15302,15304,15306,15307,15308,15309,15311,15312,15314,15317,15318,15320,15322,15324,15325,15327,15328,15330,15332,15334,15336,15337,15338,15340,15341,15342,15343,15344,15346,15349,15351,15353,15354,15356,15358,15360,15361,15363,15367,15371,15373,15374,15377,15378,15382,15383,15385,15387,15388,15390,15394,15395,15398,15402,15406,15408,15409,15410,15412,15414,15416,15419,15421,15423,15426,15427,15429,15431,15433,15434,15435,15436,15439,15440,15441,15443,15444,15446,15447,15448,15449,15450,15453,15455,15457,15458,15460,15461,15462,15465,15466,15468,15470,15472,15474,15475,15476,15479,15480,15482,15485,15487,15490,15493,15494,15495,15496,15498,15500,15502,15504,15506,15509,15511,15512,15513,15516,15518,15520,15521,15523,15524,15526,15527,15529,15532,15535,15537,15542,15544,15545,15546,15547,15549,15551,15552,15554,15556,15557,15559,15562,15564,15566,15568,15569,15570,15572,15574,15575,15579,15580,15581,15583,15584,15585,15586,15587,15588,15589,15590,15592,15594,15596,15598,15600,15602,15604,15605,15607,15610,15613,15615,15617,15619,15621,15622,15623,15624,15628,15630,15632,15634,15636,15637,15638,15639,15641,15642,15643,15644,15646,15648,15649,15651,15652,15654,15656,15658,15660,15661,15662,15664,15665,15666,15667,15670,15671,15672,15674,15676,15677,15681,15682,15685,15687,15689,15691,15692,15696,15698,15699,15702,15704,15705,15706,15708,15709,15711,15712,15713,15714,15716,15718,15721,15724,15725,15727,15730,15732,15733,15737,15742,15745,15746,15749,15750,15752,15753,15754,15755,15757,15759,15762,15763,15764,15765,15766,15767,15769,15770,15774,15776,15777,15780,15781,15783,15784,15785,15787,15788,15789,15790,15791,15793,15795,15796,15798,15799,15802,15803,15805,15808,15811,15814,15815,15816,15817,15818,15820,15821,15823,15825,15826,15827,15828,15829,15830,15831,15832,15834,15836,15838,15840,15841,15843,15845,15846,15847,15849,15850,15851,15853,15854,15855,15856,15858,15859,15860,15861,15863,15864,15867,15868,15870,15872,15874,15876,15877,15878,15879,15881,15883,15884,15885,15887,15888,15889,15890,15891,15893,15894,15897,15898,15900,15902,15903,15904,15907,15908,15910,15912,15914,15916,15917,15921,15924,15927,15929,15931,15934,15936,15938,15939,15941,15943,15944,15948,15952,15955,15959,15961,15962,15966,15972,15977,15978,15979,15980,15981,15982,15983,15985,15986,15989,15990,15993,15995,15997,15999,16003,16006,16008,16009,16011,16012,16015,16017,16019,16020,16023,16024,16025,16027,16029,16030,16032,16035,16036,16037,16040,16042,16044,16045,16047,16049,16051,16053,16054,16056,16058,16062,16063,16064,16066,16068,16069,16070,16072,16076,16079,16080,16081,16082,16086,16088,16090,16091,16094,16097,16100,16101,16103,16104,16107,16108,16109,16111,16113,16114,16116,16118,16119,16120,16122,16125,16127,16130,16131,16133,16137,16138,16141,16142,16143,16145,16146,16147,16149,16151,16154,16157,16160,16161,16165,16169,16171,16173,16178,16179,16180,16182,16183,16185,16186,16188,16189,16190,16194,16195,16197,16199,16204,16206,16207,16211,16215,16217,16218,16220,16221,16222,16224,16225,16226,16230,16232,16233,16237,16238,16242,16243,16245,16249,16250,16252,16253,16255,16256,16257,16258,16260,16263,16266,16268,16272,16273,16277,16278,16280,16284,16288,16289,16290,16292,16294,16295,16299,16301,16303,16305,16306,16308,16309,16311,16313,16316,16319,16321,16324,16327,16328,16329,16331,16335,16336,16338,16339,16340,16341,16343,16347,16350,16351,16353,16355,16357,16359,16362,16363,16364,16365,16367,16370,16373,16375,16377,16378,16380,16382,16384,16385,16388,16392,16395,16396,16397,16399,16404,16405,16406,16407,16408,16412,16414,16416,16418,16420,16424,16425,16427,16431,16432,16434,16437,16442,16443,16448,16450,16451,16452,16455,16457,16459,16461,16465,16467,16470,16471,16473,16477,16479,16482,16484,16486,16487,16490,16491,16493,16495,16496,16498,16500,16501,16506,16508,16509,16511,16512,16514,16515,16518,16519,16521,16523,16526,16529,16532,16533,16535,16538,16540,16541,16542,16544,16545,16548,16553,16556,16558,16559,16560,16561,16562,16565,16568,16570,16573,16575,16576,16577,16580,16582,16583,16584,16585,16587,16589,16590,16592,16593,16595,16596,16598,16602,16604,16607,16608,16610,16613,16615,16619,16621,16625,16626,16627,16628,16629,16630,16631,16632,16634,16636,16638,16642,16643,16645,16646,16648,16650,16651,16652,16653,16655,16656,16659,16660,16662,16665,16670,16671,16672,16673,16675,16677,16678,16681,16684,16686,16688,16690,16692,16693,16696,16698,16701,16702,16706,16708,16710,16712,16715,16717,16719,16720,16723,16726,16727,16728,16731,16734,16735,16737,16739,16742,16744,16746,16748,16749,16752,16758,16759,16761,16763,16764,16766,16768,16770,16772,16773,16775,16777,16778,16782,16783,16788,16791,16793,16796,16797,16799,16800,16801,16802,16803,16805,16807,16810,16812,16813,16816,16819,16821,16822,16824,16827,16829,16831,16833,16836,16838,16839,16841,16843,16844,16845,16849,16852,16854,16856,16858,16859,16861,16862,16867,16870,16871,16872,16875,16877,16879,16881,16883,16885,16887,16889,16892,16894,16895,16896,16899,16900,16904,16905,16907,16908,16909,16912,16914,16917,16919,16920,16922,16925,16928,16930,16931,16932,16935,16936,16938,16939,16940,16941,16943,16944,16947,16950,16951,16952,16953,16955,16956,16957,16961,16964,16965,16971,16972,16974,16976,16977,16979,16981,16984,16988,16991,16993,16996,16997,16999,17E3,17001,17002,17005,17007,17009,17011,17014,17017,17018,17019,17021,17023,17025,17027,17028,17029,17030,17035,17036,17039,17042,17045,17046,17049,17055,17057,17060,17062,17063,17065,17071,17074,17077,17078,17079,17081,17083,17084,17085,17086,17089,17092,17095,17096,17098,17099,17102,17103,17107,17109,17110,17111,17112,17115,17118,17119,17120,17121,17124,17126,17128,17130,17132,17134,17136,17137,17140,17141,17142,17145,17148,17149,17151,17152,17154,17156,17159,17161,17163,17165,17166,17169,17170,17172,17177,17180,17182,17184,17186,17187,17188,17189,17191,17193,17194,17195,17199,17202,17203,17204,17206,17208,17209,17210,17211,17212,17216,17219,17220,17221,17223,17224,17225,17226,17228,17229,17230,17232,17233,17237,17238,17242,17245,17247,17249,17251,17252,17253,17255,17257,17259,17260,17261,17262,17263,17264,17265,17267,17268,17270,17273,17274,17275,17276,17278,17279,17281,17285,17288,17289,17291,17293,17294,17295,17296,17298,17299,17300,17302,17303,17308,17310,17313,17314,17315,17317,17320,17322,17325,17327,17328,17331,17333,17335,17338,17340,17341,17343,17344,17345,17346,17349,17350,17351,17353,17354,17355,17356,17358,17360,17362,17363,17366,17368,17370,17374,17376,17379,17383,17385,17387,17390,17391,17394,17396,17398,17400,17402,17404,17405,17406,17407,17409,17412,17413,17416,17418,17419,17421,17422,17423,17424,17425,17427,17428,17429,17430,17432,17433,17434,17436,17439,17440,17442,17444,17445,17447,17449,17452,17453,17454,17457,17459,17460,17462,17463,17465,17467,17469,17471,17472,17473,17476,17478,17480,17482,17484,17486,17487,17490,17491,17492,17495,17496,17500,17503,17506,17507,17509,17511,17513,17514,17515,17518,17520,17525,17528,17530,17533,17534,17535,17538,17539,17544,17545,17548,17550,17551,17553,17554,17556,17558,17560,17562,17564,17566,17567,17568,17570,17572,17573,17574,17576,17578,17581,17583,17584,17587,17588,17589,17590,17593,17594,17596,17599,17600,17602,17603,17604,17606,17607,17609,17611,17613,17615,17617,17618,17620,17622,17625,17626,17627,17629,17630,17631,17633,17635,17636,17637,17638,17639,17640,17644,17646,17647,17648,17650,17651,17652,17654,17656,17660,17661,17663,17666,17667,17670,17671,17672,17674,17675,17677,17681,17683,17684,17685,17688,17689,17690,17691,17693,17695,17696,17698,17700,17701,17702,17703,17704,17705,17706,17708,17709,17710,17711,17713,17715,17717,17718,17719,17720,17721,17723,17724,17726,17727,17728,17729,17730,17731,17732,17733,17734,17736,17737,17739,17742,17744,17745,17746,17747,17748,17749,17750,17752,17754,17759,17761,17763,17765,17766,17768,17770,17771,17772,17774,17775,17776,17777,17778,17781,17783,17785,17787,17788,17789,17791,17792,17793,17794,17795,17797,17799,17800,17801,17802,17803,17804,17805,17806,17807,17808,17810,17814,17816,17817,17819,17820,17821,17822,17823,17824,17825,17826,17828,17830,17832,17834,17836,17838,17841,17842,17843,17845,17847,17849,17851,17852,17853,17854,17855,17856,17857,17858,17859,17860,17863,17864,17866,17868,17872,17874,17876,17877,17879,17880,17881,17882,17884,17885,17886,17888,17889,17890,17893,17894,17895,17896,17898,17900,17901,17903,17904,17905,17907,17908,17909,17910,17911,17912,17915,17917,17918,17919,17921,17923,17924,17926,17927,17929,17931,17932,17933,17934,17935,17936,17938,17939,17940,17941,17942,17943,17947,17949,17951,17952,17955,17957,17958,17959,17961,17963,17967,17968,17969,17972,17973,17974,17977,17979,17980,17981,17983,17984,17985,17986,17987,17988,17990,17992,17994,17995,17997,17998,17999,18001,18003,18005,18007,18011,18013,18015,18016,18017,18019,18020,18022,18023,18024,18025,18026,18027,18028,18029,18031,18033,18034,18035,18036,18040,18041,18043,18045,18046,18047,18048,18049,18051,18053,18055,18057,18058,18059,18060,18061,18062,18063,18064,18065,18066,18067,18069,18070,18072,18074,18075,18076,18077,18078,18080,18082,18083,18085,18087,18088,18090,18091,18093,18094,18095,18099,18100,18101,18102,18104,18105,18107,18108,18110,18111,18113,18114,18115,18116,18118,18120,18121,18123,18124,18125,18126,18128,18129,18132,18133,18135,18136,18137,18138,18139,18140,18142,18145,18148,18149,18151,18155,18156,18158,18160,18162,18163,18166,18167,18169,18171,18172,18174,18177,18178,18182,18185,18186,18189,18191,18193,18195,18196,18197,18201,18203,18206,18207,18209,18212,18214,18216,18217,18219,18220,18223,18224,18225,18227,18228,18229,18231,18232,18234,18236,18237,18240,18243,18244,18246,18247,18248,18255,18257,18258,18261,18262,18266,18267,18269,18271,18274,18278,18280,18282,18283,18285,18286,18287,18290,18292,18293,18296,18299,18300,18301,18302,18303,18305,18306,18308,18309,18311,18315,18318,18320,18321,18322,18324,18325,18328,18329,18330,18336,18337,18338,18341,18343,18345,18346,18347,18349,18350,18351,18352,18354,18356,18359,18362,18364,18367,18368,18369,18371,18373,18374,18375,18376,18378,18379,18381,18382,18383,18386,18387,18388,18390,18391,18393,18394,18396,18398,18400,18401,18402,18404,18409,18410,18413,18415,18416,18417,18419,18420,18421,18423,18427,18430,18431,18433,18435,18437,18439,18441,18442,18444,18445,18447,18451,18453,18454,18455,18456,18457,18459,18460,18461,18462,18463,18464,18465,18466,18468,18469,18472,18474,18476,18480,18481,18482,18483,18484,18485,18486,18490,18493,18494,18496,18497,18498,18499,18501,18503,18506,18509,18510,18511,18514,18515,18516,18518,18519,18520,18521,18523,18527,18530,18533,18535,18536,18537,18539,18541,18543,18546,18548,18549,18550,18552,18553,18555,18557,18559,18562,18564,18565,18567,18570,18573,18576,18577,18578,18581,18583,18586,18587,18588,18593,18596,18597,18598,18599,18602,18604,18606,18608,18609,18610,18612,18615,18616,18619,18620,18621,18623,18624,18625,18627,18628,18629,18630,18634,18635,18637,18639,18640,18641,18643,18644,18645,18647,18649,18651,18652,18655,18657,18659,18662,18664,18665,18666,18667,18669,18670,18673,18678,18679,18681,18682,18685,18686,18687,18688,18689,18690,18692,18694,18695,18696,18699,18701,18702,18703,18706,18707,18708,18710,18711,18712,18714,18716,18717,18719,18720,18722,18723,18725,18727,18729,18730,18731,18734,18735,18737,18740,18741,18743,18745,18747,18749,18751,18753,18754,18756,18757,18759,18760,18762,18764,18765,18767,18769,18771,18772,18774,18778,18781,18782,18783,18784,18786,18787,18789,18792,18794,18796,18797,18799,18800,18802,18803,18804,18805,18806,18808,18812,18813,18815,18818,18819,18820,18823,18824,18827,18828,18830,18831,18832,18834,18836,18837,18839,18841,18844,18848,18850,18853,18855,18856,18857,18859,18860,18861,18862,18863,18867,18871,18872,18875,18876,18878,18879,18880,18881,18882,18884,18885,18887,18888,18889,18891,18893,18894,18896,18897,18898,18899,18902,18906,18909,18911,18913,18915,18916,18917,18920,18921,18923,18924,18925,18926,18927,18928,18931,18933,18934,18936,18937,18938,18939,18940,18942,18943,18944,18947,18948,18950,18953,18954,18957,18958,18959,18960,18961,18963,18967,18968,18969,18970,18971,18973,18976,18977,18979,18982,18985,18987,18993,18994,18996,18999,19E3,19001,19003,19004,19006,19008,19009,19013,19015,19016,19018,19019,19022,19025,19026,19027,19029,19030,19032,19035,19037,19040,19041,19043,19045,19047,19051,19052,19053,19056,19057,19059,19062,19064,19067,19068,19069,19070,19072,19073,19077,19079,19080,19081,19082,19085,19087,19090,19091,19092,19094,19098,19099,19101,19102,19106,19109,19110,19113,19115,19116,19117,19119,19120,19121,19122,19123,19124,19125,19126,19127,19128,19129,19130,19131,19132,19133,19134,19135,19138,19139,19140,19142,19143,19144,19145,19147,19150,19152,19153,19154,19156,19157,19159,19161,19163,19165,19166,19169,19170,19174,19176,19178,19179,19181,19183,19184,19187,19188,19191,19193,19194,19197,19198,19200,19201,19202,19204,19206,19207,19209,19210,19212,19213,19215,19216,19218,19220,19221,19222,19224,19225,19228,19229,19231,19233,19234,19235,19237,19239,19240,19244,19248,19250,19253,19255,19257,19260,19261,19265,19266,19267,19271,19273,19276,19277,19278,19282,19283,19284,19287,19290,19291,19294,19295,19296,19298,19299,19300,19302,19303,19304,19305,19306,19310,19312,19313,19314,19315,19316,19317,19320,19321,19322,19323,19328,19331,19333,19335,19336,19338,19339,19342,19343,19344,19345,19347,19350,19353,19355,19356,19358,19360,19361,19362,19363,19364,19366,19368,19369,19370,19373,19375,19377,19378,19380,19381,19382,19384,19386,19387,19390,19392,19393,19395,19397,19399,19400,19401,19402,19403,19405,19406,19410,19412,19414,19415,19416,19417,19419,19422,19423,19424,19426,19429,19431,19433,19435,19438,19439,19440,19442,19444,19446,19447,19449,19450,19451,19454,19455,19457,19459,19460,19461,19464,19465,19467,19470,19472,19475,19476,19479,19480,19481,19482,19483,19488,19489,19491,19494,19499,19501,19503,19504,19506,19507,19508,19509,19511,19512,19514,19516,19517,19518,19519,19524,19526,19528,19530,19534,19536,19537,19541,19544,19547,19548,19551,19552,19553,19554,19556,19558,19560,19561,19562,19564,19565,19568,19570,19571,19572,19573,19576,19578,19581,19582,19583,19584,19585,19587,19590,19593,19594,19595,19596,19597,19600,19601,19602,19605,19606,19608,19609,19610,19611,19612,19613,19615,19616,19618,19620,19622,19624,19627,19628,19629,19632,19634,19636,19637,19638,19639,19641,19642,19645,19646,19647,19649,19651,19654,19656,19658,19660,19661,19663,19665,19667,19669,19671,19673,19675,19679,19680,19682,19684,19685,19686,19692,19694,19696,19698,19699,19700,19702,19703,19705,19708,19710,19711,19714,19717,19720,19722,19726,19729,19732,19733,19735,19736,19738,19739,19740,19741,19742,19744,19746,19747,19748,19749,19751,19753,19755,19756,19759,19760,19761,19763,19764,19766,19767,19768,19769,19771,19773,19774,19775,19777,19779,19780,19782,19784,19786,19787,19788,19789,19792,19793,19795,19798,19801,19802,19803,19805,19807,19808,19809,19810,19811,19815,19816,19817,19818,19819,19822,19824,19826,19828,19829,19831,19833,19835,19838,19839,19840,19841,19843,19846,19848,19849,19851,19854,19856,19857,19859,19861,19864,19868,19869,19871,19872,19874,19877,19878,19880,19882,19884,19886,19887,19888,19889,19890,19891,19892,19897,19898,19899,19902,19903,19904,19905,19907,19909,19912,19913,19915,19916,19917,19919,19920,19922,19924,19926,19928,19929,19932,19933,19934,19935,19936,19937,19940,19941,19942,19945,19948,19949,19951,19953,19955,19957,19958,19961,19964,19965,19966,19967,19970,19971,19972,19974,19976,19978,19979,19980,19981,19982,19984,19986,19987,19989,19991,19994,19996,19997,19998,20001,20003,20005,20007,20009,20013,20015,20017,20020,20021,20022,20023,20024,20026,20027,20028,20029,20031,20032,20033,20035,20037,20039,20040,20042,20045,20047,20049,20050,20051,20054,20055,20058,20061,20063,20065,20066,20068,20070,20073,20074,20076,20079,20080,20084,20086,20087,20089,20093,20095,20097,20099,20101,20103,20106,20108,20110,20113,20114,20115,20117,20118,20119,20121,20123,20125,20126,20130,20132,20133,20135,20136,20137,20138,20140,20141,20142,20145,20146,20149,20150,20151,20152,20154,20155,20157,20158,20160,20162,20163,20164,20165,20166,20167,20169,20170,20171,20174,20175,20176,20178,20179,20181,20182,20183,20186,20188,20189,20192,20193,20194,20195,20196,20197,20200,20201,20202,20203,20205,20206,20208,20209,20210,20211,20212,20213,20214,20216,20219,20221,20223,20226,20228,20230,20232,20234,20235,20238,20240,20244,20246,20249,20250,20251,20253,20255,20257,20259,20260,20262,20263,20265,20266,20268,20270,20272,20275,20277,20278,20279,20280,20281,20283,20285,20286,20287,20288,20289,20291,20293,20294,20299,20302,20303,20305,20308,20312,20315,20316,20317,20319,20320,20322,20326,20328,20329,20331,20332,20334,20335,20336,20337,20339,20341,20342,20343,20345,20346,20348,20350,20352,20354,20356,20358,20360,20362,20363,20365,20366,20367,20370,20371,20372,20373,20375,20377,20380,20382,20383,20385,20386,20388,20389,20390,20393,20396,20397,20398,20400,20402,20403,20405,20407,20408,20409,20410,20414,20415,20416,20418,20420,20421,20422,20423,20425,20426,20428,20429,20431,20433,20435,20438,20439,20441,20442,20444,20447,20448,20450,20452,20454,20456,20458,20461,20463,20465,20466,20467,20468,20469,20471,20472,20474,20476,20477,20478,20479,20481,20482,20484,20486,20487,20489,20490,20492,20494,20495,20496,20498,20500,20501,20502,20503,20504,20506,20508,20510,20512,20515,20516,20518,20519,20520,20521,20523,20525,20527,20532,20533,20534,20537,20541,20543,20544,20546,20547,20548,20549,20551,20554,20556,20559,20561,20564,20565,20567,20569,20573,20574,20575,20577,20579,20580,20583,20586,20587,20588,20590,20591,20592,20594,20595,20597,20599,20601,20603,20604,20605,20607,20609,20610,20611,20612,20614,20616,20617,20619,20622,20623,20624,20625,20628,20631,20632,20635,20637,20639,20641,20644,20645,20646,20647,20648,20650,20651,20652,20654,20656,20658,20661,20663,20664,20665,20666,20670,20672,20673,20674,20675,20678,20681,20683,20684,20688,20690,20693,20695,20698,20699,20701,20702,20705,20707,20709,20711,20714,20716,20717,20720,20721,20723,20725,20726,20727,20728,20730,20732,20733,20735,20737,20740,20743,20746,20747,20750,20754,20757,20758,20760,20762,20764,20765,20767,20768,20769,20771,20772,20773,20776,20777,20779,20782,20785,20786,20787,20788,20791,20793,20797,20800,20802,20805,20806,20809,20810,20811,20812,20814,20815,20816,20818,20821,20824,20827,20832,20834,20836,20837,20838,20841,20842,20843,20844,20846,20847,20851,20852,20853,20854,20856,20860,20861,20862,20864,20865,20866,20867,20869,20870,20872,20874,20877,20878,20879,20882,20883,20885,20888,20889,20891,20893,20894,20895,20896,20897,20899,20900,20902,20903,20904,20906,20909,20910,20911,20912,20913,20914,20916,20918,20921,20922,20924,20925,20927,20930,20931,20932,20933,20934,20939,20941,20943,20946,20948,20949,20951,20952,20954,20956,20957,20958,20960,20961,20962,20966,20967,20968,20970,20971,20972,20973,20975,20977,20978,20980,20981,20984,20985,20987,20989,20990,20992,20995,20997,20998,21E3,21001,21002,21003,21005,21007,21009,21011,21012,21013,21015,21016,21018,21020,21022,21023,21025,21027,21028,21029,21031,21032,21035,21036,21037,21040,21042,21044,21045,21046,21049,21050,21051,21052,21053,21054,21057,21059,21062,21063,21064,21066,21067,21068,21070,21071,21072,21075,21077,21079,21080,21082,21083,21084,21086,21088,21090,21091,21094,21095,21099,21100,21102,21104,21105,21107,21109,21111,21113,21114,21115,21117,21119,21122,21123,21126,21127,21128,21129,21130,21132,21136,21138,21140,21141,21142,21143,21144,21145,21146,21147,21148,21150,21152,21154,21155,21157,21160,21161,21162,21164,21166,21167,21169,21170,21171,21173,21174,21176,21178,21180,21181,21183,21184,21186,21191,21192,21195,21197,21198,21199,21200,21202,21204,21206,21207,21208,21209,21211,21212,21214,21215,21216,21217,21218,21220,21222,21225,21229,21231,21233,21234,21235,21237,21238,21239,21240,21241,21242,21245,21246,21247,21249,21250,21251,21254,21256,21258,21260,21264,21265,21268,21269,21271,21272,21273,21275,21277,21279,21281,21283,21285,21286,21287,21289,21292,21293,21297,21300,21301,21303,21305,21308,21309,21311,21313,21315,21317,21318,21321,21324,21327,21329,21333,21337,21339,21340,21342,21343,21345,21347,21349,21350,21351,21352,21354,21355,21357,21359,21360,21361,21363,21365,21366,21367,21369,21370,21371,21372,21375,21377,21381,21383,21385,21386,21389,21390,21391,21392,21394,21397,21399,21401,21403,21404,21406,21407,21408,21411,21414,21416,21418,21420,21421,21422,21423,21425,21427,21429,21431,21432,21433,21435,21437,21438,21439,21441,21442,21443,21444,21447,21448,21449,21450,21452,21454,21455,21457,21459,21460,21464,21467,21470,21471,21472,21473,21474,21475,21476,21477,21478,21480,21481,21482,21484,21486,21487,21488,21490,21492,21495,21496,21497,21498,21500,21501,21504,21508,21513,21517,21520,21524,21526,21527,21528,21530,21531,21533,21534,21535,21537,21538,21539,21540,21544,21547,21548,21550,21551,21553,21554,21555,21558,21560,21562,21563,21564,21565,21566,21567,21568,21569,21571,21574,21575,21577,21578,21580,21586,21587,21589,21591,21592,21593,21594,21596,21597,21602,21606,21608,21610,21612,21613,21614,21616,21617,21619,21621,21622,21624,21625,21626,21628,21629,21631,21632,21634,21636,21640,21641,21644,21647,21649,21651,21652,21654,21656,21659,21660,21661,21663,21665,21666,21668,21669,21671,21674,21676,21678,21679,21680,21683,21684,21687,21688,21689,21690,21692,21693,21694,21695,21696,21698,21699,21700,21702,21704,21706,21707,21709,21711,21716,21719,21720,21722,21724,21726,21728,21730,21731,21732,21734,21735,21737,21738,21740,21743,21744,21746,21748,21749,21750,21751,21752,21753,21755,21757,21759,21760,21762,21763,21764,21765,21766,21768,21770,21773,21775,21777,21781,21782,21784,21785,21786,21787,21788,21790,21791,21792,21794,21795,21799,21800,21801,21802,21803,21804,21806,21807,21809,21811,21813,21817,21820,21821,21822,21823,21825,21826,21827,21829,21831,21833,21834,21835,21838,21839,21841,21843,21844,21846,21847,21848,21850,21852,21854,21855,21857,21858,21860,21861,21862,21866,21868,21870,21874,21877,21880,21881,21882,21884,21888,21889,21890,21893,21894,21896,21897,21898,21902,21904,21905,21907,21908,21909,21913,21917,21921,21924,21926,21927,21928,21929,21930,21931,21932,21934,21936,21937,21938,21940,21941,21942,21944,21946,21948,21950,21952,21954,21957,21959,21965,21966,21969,21971,21973,21974,21975,21978,21981,21982,21984,21987,21988,21990,21992,21994,21995,21996,21997,21998,21999,22002,22004,22005,22006,22007,22009,22011,22014,22015,22017,22019,22020,22021,22023,22025,22026,22028,22030,22031,22033,22037,22039,22040,22043,22044,22045,22046,22047,22048,22050,22052,22053,22055,22057,22059,22061,22062,22063,22065,22068,22069,22071,22072,22075,22078,22079,22085,22086,22089,22091,22093,22095,22096,22097,22099,22102,22104,22105,22107,22109,22111,22112,22114,22116,22117,22118,22120,22121,22122,22124,22125,22127,22131,22133,22134,22137,22139,22142,22143,22144,22146,22148,22149,22150,22152,22154,22156,22159,22160,22161,22163,22165,22166,22167,22170,22173,22174,22177,22179,22180,22182,22186,22187,22188,22190,22192,22193,22195,22197,22199,22201,22204,22209,22211,22213,22214,22218,22219,22220,22221,22223,22225,22227,22229,22230,22232,22234,22237,22239,22240,22241,22242,22244,22246,22247,22248,22250,22252,22254,22255,22256,22257,22258,22260,22261,22264,22267,22268,22272,22273,22275,22276,22278,22279,22280,22281,22283,22284,22285,22287,22288,22290,22291,22292,22294,22296,22297,22299,22301,22302,22305,22307,22308,22310,22311,22313,22314,22316,22317,22319,22320,22322,22325,22328,22329,22331,22332,22333,22334,22335,22336,22339,22340,22341,22342,22344,22346,22350,22351,22354,22355,22356,22358,22359,22361,22362,22363,22364,22366,22368,22369,22370,22371,22373,22376,22378,22379,22381,22382,22383,22385,22387,22388,22389,22390,22391,22392,22394,22395,22396,22398,22400,22403,22404,22406,22407,22409,22411,22412,22415,22417,22419,22420,22421,22422,22423,22424,22425,22427,22428,22430,22432,22435,22436,22438,22439,22441,22443,22445,22446,22447,22448,22451,22453,22456,22458,22460,22461,22462,22464,22466,22468,22469,22471,22475,22478,22479,22480,22481,22484,22486,22488,22490,22491,22492,22494,22496,22497,22498,22499,22500,22501,22502,22503,22504,22507,22508,22509,22510,22511,22512,22514,22516,22517,22518,22522,22524,22527,22528,22529,22530,22531,22532,22535,22536,22538,22540,22543,22544,22546,22548,22549,22550,22551,22553,22554,22555,22558,22559,22561,22562,22563,22564,22566,22569,22572,22573,22575,22579,22580,22581,22582,22583,22586,22588,22590,22592,22593,22595,22596,22597,22600,22601,22603,22607,22609,22611,22612,22613,22615,22616,22618,22620,22621,22622,22623,22625,22627,22629,22630,22631,22634,22636,22638,22640,22641,22642,22643,22645,22647,22648,22649,22652,22653,22654,22656,22658,22659,22660,22661,22663,22665,22669,22674,22675,22676,22678,22679,22680,22683,22684,22686,22688,22689,22691,22692,22693,22694,22695,22696,22697,22699,22700,22701,22703,22705,22706,22710,22711,22713,22715,22716,22718,22719,22722,22724,22727,22728,22730,22732,22734,22736,22738,22739,22741,22743,22745,22746,22751,22753,22755,22757,22759,22763,22765,22766,22770,22772,22775,22777,22779,22782,22783,22784,22786,22787,22789,22790,22794,22795,22798,22800,22801,22803,22806,22807,22809,22810,22811,22813,22815,22818,22820,22824,22826,22827,22829,22831,22833,22835,22836,22839,22840,22842,22844,22846,22848,22849,22850,22851,22853,22856,22858,22861,22863,22865,22866,22867,22868,22869,22871,22873,22874,22878,22879,22880,22882,22883,22885,22887,22888,22889,22890,22894,22895,22897,22898,22899,22900,22901,22905,22906,22908,22910,22912,22914,22915,22916,22918,22919,22921,22923,22926,22928,22929,22931,22932,22934,22935,22937,22939,22941,22943,22947,22950,22951,22953,22954,22955,22957,22961,22962,22964,22966,22968,22972,22973,22974,22975,22978,22979,22981,22984,22988,22990,22992,22994,22996,22997,22999,23002,23003,23004,23005,23006,23007,23008,23010,23012,23015,23016,23018,23020,23022,23023,23026,23028,23029,23032,23033,23039,23042,23044,23046,23048,23050,23054,23056,23058,23059,23062,23063,23064,23065,23068,23069,23071,23072,23074,23077,23078,23080,23081,23083,23084,23086,23087,23089,23091,23092,23094,23098,23101,23102,23103,23104,23105,23108,23109,23110,23112,23113,23114,23115,23116,23121,23122,23124,23126,23128,23129,23131,23134,23135,23136,23138,23141,23143,23144,23146,23148,23149,23151,23153,23155,23158,23161,23163,23164,23165,23167,23169,23172,23173,23174,23175,23176,23178,23179,23180,23181,23183,23185,23187,23188,23190,23191,23193,23194,23195,23196,23198,23199,23201,23203,23207,23210,23211,23213,23214,23217,23219,23221,23224,23225,23227,23229,23232,23234,23236,23238,23240,23241,23243,23245,23248,23249,23251,23252,23254,23256,23257,23259,23260,23263,23264,23265,23266,23267,23268,23269,23271,23273,23274,23276,23278,23282,23283,23285,23286,23288,23289,23291,23293,23295,23297,23299,23302,23305,23308,23309,23310,23311,23312,23313,23314,23315,23317,23318,23320,23324,23325,23326,23327,23328,23330,23332,23333,23334,23336,23337,23338,23339,23340,23342,23343,23344,23346,23347,23348,23349,23350,23351,23352,23354,23355,23357,23360,23362,23363,23365,23366,23367,23368,23370,23371,23373,23374,23375,23377,23378,23379,23380,23381,23382,23383,23384,23385,23387,23389,23390,23391,23392,23393,23394,23395,23396,23397,23400,23402,23404,23405,23406,23410,23411,23412,23414,23416,23417,23420,23421,23423,23425,23428,23430,23431,23433,23434,23435,23439,23443,23444,23446,23448,23450,23451,23453,23454,23456,23457,23458,23459,23460,23461,23463,23464,23468,23470,23471,23472,23475,23476,23477,23479,23481,23482,23483,23484,23486,23488,23489,23490,23491,23493,23494,23496,23500,23502,23504,23506,23508,23510,23511,23512,23514,23516,23517,23519,23523,23524,23525,23526,23527,23528,23530,23532,23534,23536,23539,23541,23543,23545,23546,23548,23551,23552,23553,23554,23556,23558,23559,23560,23561,23562,23563,23565,23566,23569,23570,23571,23573,23575,23577,23578,23580,23581,23583,23585,23587,23589,23591,23593,23595,23596,23597,23600,23602,23603,23605,23607,23608,23609,23610,23611,23613,23614,23615,23616,23617,23619,23621,23622,23624,23626,23629,23631,23634,23638,23639,23643,23644,23645,23648,23650,23651,23652,23654,23655,23657,23660,23662,23663,23665,23666,23668,23671,23672,23674,23675,23676,23677,23678,23680,23682,23684,23686,23687,23688,23689,23690,23691,23693,23695,23698,23701,23705,23707,23709,23711,23712,23715,23718,23719,23721,23723,23724,23729,23730,23731,23733,23735,23739,23743,23744,23745,23747,23748,23749,23750,23751,23752,23754,23756,23757,23760,23762,23763,23766,23769,23770,23771,23772,23774,23776,23777,23778,23781,23782,23783,23784,23786,23788,23791,23796,23799,23800,23802,23804,23807,23810,23811,23812,23813,23814,23815,23816,23817,23819,23820,23822,23824,23825,23827,23830,23831,23832,23833,23834,23837,23838,23840,23843,23844,23846,23847,23849,23852,23854,23856,23860,23861,23862,23864,23865,23866,23867,23869,23870,23871,23872,23875,23877,23878,23879,23883,23884,23885,23888,23890,23891,23893,23895,23897,23898,23900,23901,23902,23904,23907,23908,23910,23911,23913,23915,23917,23919,23921,23922,23923,23925,23927,23928,23929,23931,23932,23933,23934,23936,23939,23940,23941,23942,23944,23945,23947,23951,23952,23954,23955,23956,23957,23958,23960,23961,23962,23963,23964,23966,23967,23968,23969,23971,23973,23974,23976,23978,23979,23980,23981,23983,23984,23985,23986,23987,23988,23990,23994,23996,23999,24001,24002,24004,24007,24009,24011,24013,24014,24015,24017,24019,24021,24022,24023,24024,24027,24028,24031,24032,24035,24037,24039,24040,24041,24043,24045,24047,24050,24053,24055,24057,24061,24062,24063,24064,24065,24067,24069,24070,24072,24074,24075,24077,24080,24082,24083,24084,24086,24088,24090,24092,24094,24096,24098,24099,24101,24103,24104,24105,24107,24109,24110,24111,24113,24115,24116,24117,24118,24120,24122,24123,24124,24126,24127,24129,24132,24133,24135,24138,24140,24141,24142,24144,24146,24149,24150,24151,24152,24154,24155,24157,24158,24160,24161,24163,24164,24165,24167,24168,24170,24172,24175,24176,24177,24179,24180,24181,24182,24184,24188,24191,24193,24195,24197,24198,24200,24203,24206,24208,24210,24212,24214,24216,24217,24219,24221,24223,24225,24226,24228,24231,24233,24235,24238,24239,24240,24242,24244,24245,24247,24248,24249,24250,24253,24255,24256,24257,24258,24260,24261,24265,24267,24268,24269,24271,24272,24273,24275,24277,24278,24279,24280,24282,24284,24286,24287,24288,24289,24291,24294,24295,24297,24299,24300,24302,24304,24305,24307,24309,24311,24315,24316,24318,24320,24321,24322,24324,24326,24328,24329,24330,24331,24332,24333,24334,24336,24339,24340,24342,24343,24344,24346,24347,24348,24349,24350,24351,24352,24353,24356,24357,24361,24362,24363,24364,24367,24369,24370,24372,24374,24375,24377,24379,24380,24381,24382,24384,24385,24387,24388,24389,24390,24391,24393,24395,24397,24398,24399,24400,24401,24402,24403,24405,24407,24408,24411,24413,24415,24416,24417,24420,24421,24423,24425,24428,24429,24431,24432,24434,24435,24436,24437,24438,24439,24442,24444,24446,24448,24450,24452,24453,24455,24457,24459,24460,24462,24463,24464,24466,24468,24470,24471,24473,24475,24476,24477,24478,24479,24481,24482,24484,24485,24487,24489,24490,24491,24493,24495,24497,24500,24502,24503,24505,24506,24508,24509,24510,24511,24514,24516,24518,24519,24521,24523,24526,24529,24531,24534,24536,24537,24539,24541,24542,24544,24545,24546,24548,24550,24551,24552,24553,24554,24557,24558,24559,24560,24561,24562,24563,24565,24566,24568,24570,24572,24574,24575,24576,24579,24583,24584,24586,24588,24591,24594,24595,24598,24600,24601,24603,24604,24608,24611,24612,24614,24615,24617,24619,24620,24621,24622,24626,24628,24629,24631,24633,24634,24636,24640,24641,24642,24645,24647,24648,24650,24653,24654,24656,24657,24659,24661,24663,24668,24670,24671,24672,24673,24675,24677,24679,24680,24681,24683,24684,24685,24687,24690,24692,24693,24694,24695,24696,24700,24702,24703,24704,24705,24706,24707,24711,24712,24716,24718,24720,24721,24722,24724,24726,24727,24728,24729,24731,24732,24733,24735,24737,24738,24740,24742,24744,24745,24746,24747,24749,24752,24754,24756,24757,24759,24760,24762,24765,24767,24769,24770,24771,24773,24775,24776,24777,24780,24781,24783,24785,24788,24789,24791,24793,24794,24795,24796,24797,24798,24799,24800,24802,24803,24804,24807,24809,24810,24812,24813,24814,24816,24817,24818,24819,24820,24821,24824,24825,24826,24827,24830,24831,24834,24836,24837,24841,24845,24847,24849,24853,24855,24856,24857,24859,24860,24862,24864,24866,24867,24869,24871,24872,24873,24876,24878,24879,24880,24882,24883,24884,24885,24887,24888,24890,24891,24893,24896,24898,24899,24900,24902,24904,24906,24907,24908,24909,24911,24912,24914,24915,24917,24919,24923,24924,24928,24930,24932,24934,24935,24936,24938,24939,24941,24942,24943,24945,24946,24947,24949,24950,24951,24953,24954,24955,24956,24957,24959,24961,24962,24963,24964,24965,24966,24969,24971,24972,24973,24975,24977,24979,24980,24982,24983,24984,24985,24987,24989,24991,24993,24994,24996,24998,24999,25001,25002,25003,25006,25007,25010,25013,25015,25016,25018,25020,25022,25023,25024,25025,25026,25027,25030,25031,25032,25034,25035,25037,25038,25040,25041,25042,25043,25045,25047,25048,25050,25051,25052,25053,25055,25058,25059,25060,25061,25064,25065,25066,25067,25071,25073,25074,25075,25076,25078,25079,25082,25083,25084,25086,25087,25090,25092,25093,25094,25095,25097,25099,25100,25101,25102,25104,25107,25108,25109,25110,25112,25114,25115,25116,25117,25119,25120,25122,25124,25125,25127,25130,25132,25133,25135,25137,25138,25139,25140,25142,25145,25146,25148,25149,25150,25152,25154,25156,25158,25159,25163,25164,25166,25167,25168,25170,25171,25174,25175,25176,25177,25179,25180,25181,25182,25184,25185,25187,25188,25191,25193,25194,25196,25198,25199,25203,25204,25206,25207,25210,25212,25213,25214,25215,25217,25218,25220,25221,25223,25225,25226,25228,25229,25230,25232,25233,25235,25237,25238,25239,25240,25241,25242,25244,25246,25247,25248,25250,25253,25256,25258,25259,25261,25262,25263,25265,25267,25269,25272,25273,25276,25277,25278,25279,25281,25282,25283,25285,25288,25289,25290,25291,25294,25295,25298,25299,25300,25301,25303,25304,25307,25308,25311,25312,25313,25316,25317,25319,25321,25322,25323,25325,25329,25330,25331,25332,25333,25334,25336,25338,25343,25344,25347,25348,25351,25354,25355,25356,25358,25363,25365,25366,25368,25370,25372,25373,25374,25376,25379,25380,25381,25387,25388,25389,25390,25395,25396,25397,25398,25399,25403,25405,25406,25409,25410,25411,25413,25415,25416,25417,25419,25422,25426,25427,25428,25430,25432,25434,25435,25436,25437,25439,25443,25445,25446,25449,25451,25454,25457,25458,25459,25460,25461,25465,25466,25467,25468,25470,25471,25472,25473,25475,25476,25479,25481,25483,25484,25485,25486,25487,25489,25492,25494,25496,25498,25499,25500,25501,25502,25504,25505,25509,25513,25515,25517,25518,25523,25524,25525,25526,25529,25530,25532,25535,25537,25539,25540,25541,25543,25544,25545,25547,25549,25553,25555,25558,25560,25561,25562,25565,25568,25571,25573,25574,25576,25578,25579,25581,25582,25584,25586,25587,25589,25590,25591,25594,25595,25600,25602,25605,25607,25608,25610,25611,25612,25613,25614,25616,25618,25620,25621,25623,25626,25627,25628,25630,25634,25635,25637,25638,25639,25641,25643,25645,25646,25647,25648,25651,25652,25654,25657,25659,25660,25661,25662,25663,25664,25668,25673,25678,25680,25682,25684,25685,25686,25687,25689,25691,25692,25693,25695,25696,25699,25701,25703,25705,25708,25710,25711,25712,25714,25715,25717,25718,25719,25720,25721,25722,25726,25730,25731,25732,25733,25734,25735,25737,25738,25740,25741,25742,25744,25746,25748,25751,25752,25754,25755,25756,25760,25761,25763,25765,25766,25769,25771,25773,25774,25776,25777,25779,25781,25782,25783,25784,25785,25788,25790,25792,25794,25796,25797,25799,25801,25803,25805,25806,25808,25811,25812,25815,25817,25818,25819,25820,25821,25823,25825,25827,25828,25830,25832,25833,25834,25835,25837,25838,25839,25840,25842,25843,25844,25847,25848,25849,25850,25852,25853,25855,25857,25859,25865,25866,25869,25871,25874,25875,25876,25877,25880,25881,25883,25885,25889,25891,25893,25895,25896,25901,25902,25903,25905,25908,25909,25910,25914,25916,25919,25920,25921,25922,25924,25925,25926,25928,25930,25932,25934,25937,25938,25939,25940,25943,25944,25947,25949,25950,25953,25954,25957,25961,25962,25964,25965,25969,25970,25972,25974,25976,25977,25979,25980,25982,25983,25988,25990,25992,25995,25996,25997,25999,26E3,26001,26003,26007,26009,26010,26013,26014,26015,26017,26019,26021,26023,26024,26025,26027,26029,26030,26031,26032,26034,26036,26039,26043,26045,26046,26047,26049,26050,26052,26053,26054,26055,26058,26060,26061,26063,26064,26066,26068,26072,26073,26074,26076,26079,26080,26082,26086,26088,26089,26093,26096,26098,26101,26103,26104,26106,26108,26112,26113,26116,26117,26121,26123,26126,26127,26129,26131,26133,26134,26136,26138,26139,26140,26144,26146,26148,26149,26150,26152,26154,26157,26159,26161,26162,26165,26167,26169,26171,26172,26173,26175,26176,26177,26179,26180,26182,26183,26184,26185,26187,26188,26189,26190,26192,26197,26199,26200,26201,26202,26204,26205,26206,26208,26210,26211,26213,26215,26219,26221,26223,26226,26227,26228,26229,26232,26233,26234,26235,26237,26239,26240,26242,26244,26247,26248,26249,26251,26253,26255,26256,26258,26260,26261,26263,26265,26267,26268,26271,26272,26273,26274,26276,26277,26279,26280,26281,26282,26283,26284,26285,26286,26288,26289,26291,26293,26296,26297,26298,26299,26301,26303,26304,26305,26306,26307,26308,26309,26310,26311,26315,26316,26317,26320,26321,26323,26324,26325,26326,26327,26328,26329,26330,26331,26334,26336,26337,26338,26339,26340,26341,26342,26343,26345,26347,26349,26351,26353,26354,26356,26357,26358,26359,26362,26363,26364,26365,26366,26369,26371,26373,26375,26377,26379,26380,26381,26383,26384,26385,26386,26387,26388,26389,26390,26392,26393,26394,26395,26398,26399,26400,26401,26403,26406,26408,26409,26410,26411,26413,26414,26415,26417,26418,26420,26422,26423,26425,26428,26429,26430,26431,26432,26433,26434,26436,26439,26440,26442,26443,26444,26445,26446,26447,26449,26450,26452,26453,26455,26456,26458,26459,26460,26462,26463,26464,26467,26468,26469,26470,26471,26473,26474,26475,26477,26479,26483,26484,26485,26487,26488,26489,26492,26493,26494,26495,26497,26500,26501,26503,26504,26505,26507,26510,26513,26516,26517,26519,26521,26522,26524,26525,26526,26528,26530,26532,26536,26539,26540,26542,26544,26545,26546,26548,26550,26551,26552,26553,26556,26558,26560,26561,26562,26563,26565,26566,26567,26568,26570,26571,26574,26575,26577,26580,26583,26585,26586,26587,26589,26590,26591,26592,26594,26595,26596,26599,26601,26603,26604,26605,26608,26609,26610,26612,26613,26614,26615,26616,26618,26621,26622,26624,26626,26627,26629,26630,26631,26634,26636,26637,26639,26641,26642,26644,26647,26648,26649,26652,26653,26658,26660,26662,26666,26668,26669,26671,26672,26673,26674,26678,26680,26682,26684,26687,26689,26692,26693,26695,26699,26702,26704,26705,26706,26708,26709,26710,26712,26714,26718,26720,26723,26725,26727,26728,26729,26731,26732,26735,26739,26741,26742,26744,26746,26747,26748,26750,26753,26754,26755,26756,26757,26758,26760,26762,26764,26766,26768,26770,26773,26774,26776,26778,26779,26780,26781,26782,26784,26787,26789,26791,26793,26795,26798,26801,26802,26803,26806,26807,26808,26810,26811,26814,26816,26819,26822,26824,26825,26827,26831,26834,26835,26836,26837,26839,26841,26842,26843,26844,26846,26847,26848,26850,26851,26853,26854,26857,26862,26864,26865,26866,26868,26869,26870,26872,26873,26875,26877,26879,26881,26882,26883,26884,26886,26888,26889,26891,26892,26893,26895,26897,26898,26900,26901,26903,26906,26908,26909,26912,26914,26916,26918,26919,26920,26921,26922,26924,26928,26929,26931,26933,26934,26935,26938,26940,26944,26947,26950,26951,26953,26955,26956,26958,26961,26963,26965,26967,26968,26969,26970,26971,26972,26973,26974,26975,26977,26978,26979,26980,26981,26982,26983,26985,26987,26988,26989,26990,26993,26994,26995,26996,26997,26998,26999,27001,27002,27003,27005,27008,27009,27010,27011,27012,27013,27014,27016,27018,27019,27021,27023,27024,27025,27026,27027,27029,27030,27031,27033,27036,27037,27039,27041,27042,27043,27044,27045,27046,27047,27050,27052,27053,27054,27056,27058,27060,27062,27065,27067,27068,27071,27072,27077,27081,27083,27084,27085,27087,27088,27089,27092,27093,27094,27095,27097,27098,27099,27100,27102,27104,27105,27106,27107,27110,27112,27113,27114,27115,27116,27117,27120,27122,27125,27127,27128,27129,27131,27132,27133,27134,27136,27137,27138,27140,27143,27144,27145,27146,27147,27148,27150,27152,27153,27154,27156,27158,27160,27161,27164,27166,27167,27169,27171,27172,27173,27175,27176,27177,27179,27181,27183,27184,27185,27187,27189,27191,27192,27193,27195,27196,27200,27201,27202,27203,27205,27206,27207,27208,27209,27212,27213,27215,27216,27217,27218,27219,27220,27221,27223,27224,27227,27229,27232,27233,27234,27235,27236,27238,27240,27243,27244,27245,27246,27251,27253,27255,27257,27259,27263,27264,27267,27269,27271,27272,27275,27276,27279,27280,27282,27285,27286,27287,27288,27290,27293,27295,27299,27300,27302,27303,27304,27305,27307,27309,27313,27314,27319,27321,27323,27325,27327,27328,27330,27332,27333,27334,27336,27337,27339,27340,27342,27343,27344,27346,27348,27350,27351,27353,27354,27357,27359,27360,27361,27363,27368,27369,27372,27373,27374,27375,27376,27380,27382,27384,27386,27388,27389,27390,27391,27394,27396,27397,27398,27400,27401,27402,27404,27405,27406,27407,27408,27410,27412,27414,27415,27417,27419,27420,27421,27423,27426,27429,27430,27431,27433,27435,27436,27438,27440,27441,27444,27446,27447,27449,27450,27451,27452,27454,27456,27458,27460,27462,27467,27473,27475,27478,27479,27481,27483,27487,27489,27491,27493,27494,27495,27496,27497,27499,27501,27502,27503,27504,27506,27507,27510,27511,27513,27516,27518,27519,27520,27521,27523,27524,27525,27526,27529,27532,27534,27535,27536,27537,27538,27539,27541,27543,27544,27546,27547,27548,27552,27553,27554,27555,27556,27557,27558,27559,27560,27561,27562,27564,27565,27566,27567,27569,27571,27572,27574,27576,27578,27579,27581,27583,27584,27586,27587,27588,27590,27592,27593,27594,27597,27598,27599,27601,27603,27604,27605,27606,27607,27609,27610,27614,27616,27617,27618,27619,27620,27621,27622,27624,27626,27627,27629,27631,27634,27635,27637,27638,27639,27640,27641,27642,27644,27645,27647,27649,27650,27653,27655,27656,27657,27658,27660,27662,27663,27664,27665,27666,27667,27669,27670,27671,27672,27674,27675,27676,27677,27678,27679,27683,27684,27685,27688,27691,27693,27694,27696,27698,27699,27700,27702,27703,27704,27705,27706,27707,27708,27710,27712,27714,27717,27718,27721,27723,27724,27725,27726,27728,27729,27730,27734,27737,27738,27741,27743,27744,27745,27746,27747,27748,27749,27750,27751,27752,27754,27756,27758,27759,27760,27761,27762,27763,27764,27766,27767,27768,27770,27772,27773,27775,27776,27778,27780,27781,27783,27785,27786,27787,27788,27790,27794,27795,27796,27798,27799,27800,27801,27803,27804,27806,27809,27811,27812,27815,27816,27818,27819,27820,27823,27825,27826,27827,27829,27830,27831,27833,27834,27836,27839,27840,27841,27842,27844,27845,27846,27848,27849,27851,27853,27855,27856,27857,27858,27860,27861,27862,27867,27870,27874,27877,27878,27880,27882,27884,27887,27890,27891,27892,27894,27897,27899,27901,27903,27904,27906,27909,27912,27913,27914,27915,27917,27919,27922,27923,27927,27931,27933,27935,27936,27937,27938,27939,27941,27942,27943,27946,27948,27951,27952,27954,27956,27959,27961,27963,27965,27966,27967,27968,27970,27971,27974,27977,27979,27980,27981,27982,27985,27986,27988,27989,27990,27992,27993,27994,27997,27999,28002,28003,28004,28005,28006,28009,28012,28015,28016,28017,28018,28019,28021,28022,28023,28024,28026,28028,28032,28033,28034,28038,28040,28042,28043,28044,28046,28049,28052,28053,28055,28057,28059,28061,28064,28066,28069,28073,28074,28075,28078,28082,28084,28087,28089,28092,28093,28095,28096,28099,28101,28102,28103,28104,28105,28106,28108,28109,28110,28112,28115,28120,28122,28123,28124,28127,28128,28130,28131,28132,28135,28138,28141,28144,28146,28150,28151,28152,28153,28154,28155,28157,28158,28160,28161,28164,28165,28166,28169,28171,28173,28174,28175,28176,28180,28184,28185,28187,28189,28191,28193,28194,28197,28198,28199,28202,28204,28206,28209,28210,28211,28212,28215,28216,28218,28220,28221,28225,28228,28229,28230,28234,28237,28239,28240,28241,28243,28246,28247,28248,28249,28251,28255,28257,28260,28262,28263,28264,28265,28266,28268,28270,28272,28274,28276,28279,28280,28282,28283,28284,28285,28286,28287,28288,28289,28290,28292,28295,28296,28298,28300,28302,28303,28306,28309,28312,28314,28316,28317,28320,28322,28323,28326,28330,28331,28332,28333,28334,28338,28340,28342,28343,28345,28348,28351,28355,28357,28358,28361,28362,28367,28368,28369,28370,28373,28376,28379,28380,28381,28382,28385,28386,28387,28389,28390,28392,28393,28396,28398,28399,28400,28401,28406,28407,28409,28414,28415,28421,28423,28427,28428,28429,28431,28434,28436,28438,28439,28443,28444,28447,28449,28451,28454,28455,28456,28457,28459,28462,28464,28465,28468,28472,28473,28476,28477,28481,28482,28484,28485,28487,28489,28492,28494,28496,28498,28501,28502,28506,28510,28513,28514,28518,28520,28522,28531,28534,28535,28537,28538,28540,28543,28544,28546,28548,28550,28554,28557,28558,28560,28561,28562,28564,28569,28571,28572,28575,28578,28579,28581,28583,28585,28588,28590,28591,28593,28594,28595,28596,28598,28599,28601,28603,28604,28605,28606,28607,28612,28614,28616,28619,28621,28624,28625,28626,28628,28630,28634,28637,28638,28640,28641,28642,28645,28646,28648,28650,28651,28653,28654,28655,28657,28659,28660,28661,28662,28665,28667,28669,28671,28672,28673,28674,28676,28678,28680,28682,28684,28685,28689,28690,28691,28692,28694,28697,28699,28701,28704,28705,28707,28709,28711,28712,28714,28715,28718,28719,28720,28722,28723,28725,28729,28731,28733,28734,28735,28738,28741,28742,28743,28746,28747,28748,28750,28752,28753,28755,28756,28757,28758,28760,28762,28763,28765,28767,28768,28769,28770,28771,28772,28774,28775,28777,28778,28780,28782,28785,28787,28789,28791,28793,28794,28797,28800,28801,28803,28805,28807,28808,28810,28811,28813,28816,28817,28819,28820,28821,28823,28824,28825,28826,28827,28828,28829,28831,28834,28835,28837,28838,28839,28840,28841,28845,28846,28847,28849,28850,28854,28855,28857,28859,28862,28863,28864,28865,28866,28867,28868,28869,28871,28873,28878,28880,28881,28882,28884,28887,28888,28890,28892,28893,28894,28896,28897,28900,28903,28905,28906,28908,28910,28913,28919,28921,28923,28924,28925,28926,28928,28931,28933,28934,28935,28938,28947,28949,28950,28951,28952,28955,28956,28957,28962,28963,28966,28968,28970,28971,28973,28975,28977,28979,28980,28981,28983,28984,28986,28988,28989,28990,28991,28992,28993,28995,28996,28997,28998,29E3,29001,29002,29003,29004,29005,29006,29008,29011,29012,29014,29015,29017,29018,29019,29020,29021,29022,29023,29024,29025,29027,29029,29034,29036,29039,29041,29042,29043,29045,29047,29049,29052,29053,29055,29056,29058,29059,29060,29061,29062,29064,29065,29067,29072,29073,29074,29075,29076,29078,29079,29081,29082,29084,29085,29087,29089,29091,29094,29096,29097,29098,29100,29102,29104,29105,29106,29107,29109,29111,29112,29113,29114,29116,29117,29118,29120,29122,29125,29126,29128,29129,29130,29133,29134,29135,29136,29138,29140,29142,29143,29144,29145,29148,29150,29151,29153,29156,29158,29160,29161,29162,29164,29165,29166,29167,29168,29169,29171,29172,29174,29175,29176,29177,29179,29181,29182,29183,29185,29186,29187,29189,29191,29193,29194,29195,29197,29198,29200,29201,29206,29207,29210,29211,29214,29215,29216,29217,29218,29219,29220,29223,29224,29225,29227,29229,29230,29231,29234,29236,29238,29240,29242,29244,29245,29246,29248,29250,29252,29254,29257,29258,29259,29260,29262,29263,29265,29267,29268,29270,29272,29274,29276,29277,29280,29282,29283,29284,29285,29287,29288,29289,29290,29291,29293,29294,29295,29297,29299,29301,29303,29305,29307,29309,29311,29315,29317,29318,29322,29323,29324,29325,29327,29328,29329,29331,29333,29335,29339,29340,29342,29343,29344,29345,29346,29347,29350,29352,29354,29356,29357,29358,29359,29361,29364,29365,29366,29367,29368,29369,29370,29371,29372,29373,29374,29376,29377,29379,29381,29384,29386,29387,29388,29389,29391,29392,29393,29395,29396,29398,29399,29400,29401,29402,29406,29407,29408,29409,29411,29412,29415,29417,29419,29420,29421,29423,29424,29425,29426,29428,29429,29430,29432,29434,29435,29438,29439,29441,29443,29444,29445,29446,29447,29449,29451,29453,29455,29457,29459,29462,29464,29466,29468,29470,29472,29474,29476,29477,29479,29481,29482,29483,29485,29486,29488,29489,29491,29492,29494,29495,29497,29498,29500,29501,29503,29504,29506,29508,29510,29511,29513,29514,29517,29519,29520,29522,29524,29525,29526,29528,29529,29531,29533,29534,29537,29540,29542,29545,29546,29549,29550,29552,29554,29556,29559,29560,29562,29564,29566,29570,29571,29572,29575,29576,29577,29579,29581,29583,29584,29587,29589,29590,29591,29595,29596,29599,29600,29602,29604,29605,29606,29607,29608,29609,29610,29611,29612,29613,29615,29616,29621,29622,29623,29624,29626,29628,29630,29631,29633,29637,29638,29639,29642,29645,29649,29653,29655,29656,29657,29659,29660,29662,29663,29665,29666,29667,29669,29671,29673,29675,29676,29677,29678,29680,29682,29683,29684,29686,29688,29690,29692,29693,29695,29697,29700,29702,29705,29707,29709,29711,29712,29714,29716,29718,29721,29722,29725,29727,29729,29730,29732,29733,29734,29736,29739,29741,29743,29745,29748,29750,29751,29752,29755,29756,29757,29759,29760,29762,29766,29767,29769,29771,29774,29778,29779,29781,29783,29785,29788,29790,29791,29792,29794,29795,29797,29800,29804,29807,29812,29815,29817,29818,29819,29823,29826,29827,29829,29831,29832,29834,29835,29836,29837,29839,29842,29847,29848,29850,29851,29853,29856,29858,29860,29862,29868,29871,29872,29874,29876,29877,29878,29880,29881,29884,29886,29887,29890,29892,29893,29894,29896,29897,29899,29901,29903,29905,29907,29908,29909,29910,29915,29919,29921,29923,29924,29926,29927,29929,29930,29931,29932,29934,29935,29937,29938,29940,29941,29943,29946,29948,29949,29950,29954,29956,29957,29959,29961,29963,29964,29965,29966,29967,29968,29971,29973,29979,29981,29982,29983,29984,29985,29987,29989,29991,29992,29994,29995,29996,29998,29999,30002,30003,30005,30007,30009,30012,30014,30016,30018,30020,30021,30023,30024,30025,30026,30032,30034,30036,30037,30039,30040,30041,30042,30044,30047,30048,30049,30051,30053,30055,30058,30059,30062,30064,30065,30067,30068,30070,30072,30075,30076,30079,30080,30081,30083,30085,30086,30087,30088,30090,30092,30095,30097,30100,30101,30102,30104,30106,30108,30111,30113,30114,30115,30117,30119,30120,30123,30125,30126,30127,30129,30130,30133,30134,30136,30137,30138,30140,30141,30142,30144,30146,30149,30151,30152,30154,30156,30160,30164,30166,30170,30171,30173,30175,30179,30180,30182,30185,30187,30189,30190,30191,30192,30193,30196,30199,30202,30204,30206,30208,30209,30211,30213,30214,30216,30217,30220,30221,30223,30225,30229,30232,30234,30236,30239,30241,30244,30246,30248,30249,30252,30253,30254,30256,30257,30259,30260,30261,30263,30265,30267,30269,30270,30271,30272,30273,30275,30276,30277,30278,30279,30280,30281,30282,30285,30287,30288,30291,30293,30294,30295,30296,30298,30299,30300,30302,30305,30306,30307,30308,30310,30311,30312,30315,30318,30319,30321,30322,30323,30324,30325,30327,30329,30330,30331,30333,30334,30335,30337,30340,30341,30342,30343,30346,30347,30349,30351,30352,30354,30356,30357,30358,30360,30361,30362,30363,30364,30366,30367,30368,30369,30370,30371,30372,30373,30374,30376,30378,30379,30380,30381,30382,30384,30386,30387,30388,30389,30393,30395,30396,30398,30400,30402,30403,30405,30406,30408,30410,30413,30416,30417,30418,30421,30424,30425,30427,30428,30430,30431,30433,30435,30436,30438,30440,30442,30444,30445,30447,30448,30449,30452,30454,30456,30457,30458,30461,30462,30466,30467,30468,30469,30470,30471,30473,30474,30475,30478,30479,30481,30484,30486,30487,30489,30490,30494,30495,30496,30498,30500,30501,30503,30505,30506,30508,30510,30513,30514,30516,30518,30520,30523,30525,30527,30530,30533,30535,30537,30540,30541,30542,30543,30544,30545,30546,30548,30549,30550,30552,30554,30555,30558,30560,30562,30564,30565,30567,30570,30571,30573,30574,30576,30578,30580,30581,30582,30584,30586,30588,30589,30590,30592,30594,30598,30600,30603,30604,30606,30607,30609,30611,30612,30613,30615,30616,30617,30619,30621,30623,30625,30627,30628,30629,30632,30633,30634,30637,30640,30643,30644,30646,30647,30648,30649,30651,30652,30653,30654,30657,30658,30659,30660,30662,30663,30664,30666,30668,30670,30673,30675,30676,30678,30681,30683,30684,30686,30688,30689,30691,30694,30695,30697,30700,30701,30702,30703,30705,30707,30709,30710,30712,30715,30717,30719,30721,30723,30727,30728,30730,30731,30734,30735,30736,30738,30740,30743,30746,30748,30749,30751,30752,30753,30754,30755,30756,30757,30758,30759,30760,30762,30763,30764,30766,30767,30768,30769,30771,30773,30776,30777,30778,30780,30782,30784,30785,30788,30791,30792,30793,30794,30795,30798,30800,30802,30804,30805,30809,30811,30812,30814,30816,30819,30820,30821,30823,30825,30827,30830,30831,30832,30833,30835,30836,30838,30839,30840,30841,30842,30844,30847,30849,30852,30855,30856,30857,30859,30861,30862,30864,30865,30866,30867,30869,30870,30872,30873,30874,30875,30876,30877,30879,30882,30885,30886,30887,30889,30890,30891,30895,30896,30898,30899,30901,30903,30905,30906,30907,30909,30913,30914,30915,30917,30918,30919,30922,30924,30927,30928,30930,30933,30934,30937,30942,30943,30944,30945,30946,30948,30950,30952,30953,30955,30957,30958,30959,30962,30963,30964,30966,30967,30968,30970,30975,30976,30977,30978,30980,30981,30986,30988,30989,30990,30991,30992,30995,30998,31E3,31001,31002,31006,31008,31009,31010,31012,31014,31015,31017,31019,31020,31021,31022,31023,31024,31026,31027,31028,31030,31032,31034,31035,31037,31038,31041,31043,31044,31046,31050,31053,31055,31058,31059,31060,31063,31067,31071,31072,31074,31075,31077,31080,31081,31084,31085,31086,31089,31091,31092,31093,31094,31096,31097,31099,31101,31103,31104,31107,31109,31110,31112,31114,31117,31118,31120,31121,31125,31126,31129,31133,31136,31138,31139,31140,31144,31146,31147,31148,31150,31151,31152,31153,31154,31155,31156,31157,31158,31159,31160,31163,31164,31166,31168,31171,31174,31176,31178,31180,31182,31184,31186,31187,31189,31192,31194,31196,31198,31200,31201,31206,31207,31210,31212,31213,31216,31217,31218,31221,31223,31225,31226,31227,31231,31232,31233,31234,31235,31237,31239,31241,31242,31243,31244,31247,31248,31252,31253,31254,31256,31258,31260,31262,31264,31265,31266,31268,31269,31271,31272,31274,31275,31276,31277,31278,31279,31281,31283,31284,31286,31287,31291,31293,31294,31295,31298,31300,31301,31303,31304,31305,31306,31307,31309,31311,31313,31314,31316,31317,31318,31320,31321,31322,31324,31325,31327,31330,31331,31332,31333,31335,31336,31339,31340,31342,31343,31345,31347,31349,31351,31352,31355,31359,31360,31362,31363,31366,31367,31368,31369,31373,31374,31376,31377,31379,31381,31382,31383,31386,31388,31390,31392,31393,31395,31396,31397,31399,31401,31402,31404,31406,31407,31409,31410,31411,31412,31414,31416,31418,31420,31421,31423,31425,31429,31431,31432,31434,31435,31436,31437,31439,31441,31445,31447,31448,31449,31450,31452,31453,31455,31456,31458,31459,31461,31463,31465,31466,31467,31469,31470,31472,31473,31474,31475,31476,31477,31479,31480,31481,31482,31486,31489,31490,31491,31493,31494,31496,31498,31502,31503,31505,31512,31514,31518,31519,31520,31522,31523,31525,31526,31528,31530,31532,31533,31535,31536,31537,31538,31540,31542,31544,31545,31547,31551,31553,31555,31556,31558,31561,31563,31564,31565,31567,31568,31573,31574,31576,31580,31581,31582,31584,31587,31588,31590,31592,31594,31596,31597,31598,31601,31602,31604,31608,31610,31611,31615,31617,31620,31622,31623,31626,31627,31628,31629,31631,31632,31633,31634,31639,31640,31641,31642,31645,31647,31648,31650,31652,31653,31654,31655,31657,31658,31660,31662,31664,31665,31666,31667,31671,31673,31675,31676,31678,31680,31682,31684,31685,31686,31688,31690,31691,31692,31693,31696,31697,31698,31699,31701,31703,31705,31708,31710,31713,31716,31718,31720,31722,31723,31724,31726,31729,31731,31733,31734,31735,31736,31738,31742,31744,31745,31746,31750,31752,31753,31755,31756,31758,31759,31761,31762,31763,31764,31766,31770,31772,31774,31775,31779,31780,31782,31783,31784,31785,31786,31789,31790,31794,31796,31797,31798,31799,31801,31802,31804,31806,31807,31809,31810,31812,31813,31815,31817,31818,31820,31823,31824,31825,31826,31827,31828,31830,31831,31834,31835,31836,31837,31838,31839,31840,31841,31842,31843,31844,31846,31849,31851,31853,31855,31857,31859,31860,31864,31865,31866,31868,31869,31870,31871,31873,31875,31877,31878,31879,31880,31885,31887,31889,31890,31893,31896,31898,31900,31904,31906,31908,31910,31911,31912,31914,31916,31918,31919,31920,31921,31922,31924,31925,31926,31927,31929,31930,31931,31932,31933,31937,31938,31939,31942,31943,31944,31945,31947,31949,31951,31952,31956,31958,31960,31963,31967,31969,31970,31972,31974,31976,31978,31979,31981,31983,31985,31986,31990,31992,31994,31996,31998,32E3,32003,32005,32007,32008,32012,32016,32019,32020,32021,32024,32026,32027,32030,32032,32035,32036,32038,32041,32043,32044,32045,32047,32048,32051,32054,32056,32057,32058,32060,32061,32062,32063,32065,32066,32067,32068,32070,32073,32077,32078,32079,32081,32082,32083,32084,32086,32089,32090,32091,32093,32094,32095,32096,32097,32099,32100,32101,32102,32103,32105,32106,32107,32108,32109,32110,32111,32112,32113,32115,32116,32117,32119,32123,32124,32127,32128,32130,32131,32132,32135,32137,32138,32140,32141,32142,32143,32144,32145,32147,32150,32153,32154,32155,32157,32159,32160,32161,32163,32165,32166,32167,32169,32172,32174,32175,32178,32180,32181,32182,32184,32185,32187,32190,32192,32193,32195,32197,32199,32200,32202,32204,32206,32207,32208,32211,32212,32215,32216,32217,32219,32220,32222,32224,32226,32230,32232,32233,32234,32236,32237,32238,32240,32242,32244,32248,32252,32254,32257,32258,32259,32261,32262,32263,32264,32265,32266,32268,32270,32272,32274,32276,32277,32278,32280,32281,32283,32285,32286,32290,32293,32294,32296,32298,32301,32302,32303,32304,32305,32306,32307,32309,32310,32314,32316,32319,32320,32321,32322,32323,32325,32327,32328,32329,32332,32333,32334,32335,32336,32338,32339,32340,32341,32343,32345,32347,32349,32350,32352,32355,32356,32357,32358,32359,32361,32362,32363,32365,32367,32368,32370,32372,32374,32376,32378,32379,32380,32381,32383,32385,32386,32388,32389,32391,32392,32393,32394,32395,32396,32397,32399,32400,32403,32406,32408,32409,32411,32412,32413,32415,32416,32417,32419,32420,32421,32424,32427,32429,32431,32432,32433,32435,32437,32439,32440,32444,32445,32446,32447,32449,32450,32451,32453,32454,32456,32457,32460,32463,32464,32466,32467,32468,32470,32472,32475,32477,32478,32480,32481,32483,32484,32486,32487,32488,32490,32491,32492,32494,32496,32499,32501,32503,32507,32508,32512,32513,32514,32515,32517,32518,32519,32521,32522,32523,32525,32527,32528,32529,32531,32532,32534,32536,32538,32539,32540,32541,32542,32543,32545,32546,32547,32548,32550,32551,32553,32554,32555,32557,32558,32560,32561,32564,32565,32566,32569,32570,32572,32573,32576,32577,32578,32582,32584,32586,32587,32588,32590,32591,32592,32594,32598,32599,32601,32603,32605,32606,32608,32609,32612,32614,32616,32618,32622,32625,32626,32627,32629,32631,32632,32633,32636,32638,32640,32641,32642,32644,32646,32648,32650,32652,32654,32656,32658,32660,32661,32662,32665,32666,32668,32670,32674,32675,32676,32677,32678,32680,32682,32683,32686,32689,32691,32692,32694,32695,32698,32699,32701,32703,32704,32706,32708,32709,32711,32712,32714,32716,32718,32719,32720,32723,32724,32725,32727,32729,32731,32733,32735,32736,32737,32739,32740,32743,32744,32746,32748,32749,32753,32754,32755,32758,32759,32762,32765,32766,32767,32769,32770,32772,32773,32776,32777,32779,32780,32781,32783,32784,32787,32789,32790,32791,32792,32796,32797,32799,32800,32801,32802,32803,32804,32806,32807,32812,32814,32816,32818,32819,32822,32824,32826,32827,32830,32831,32834,32837,32838,32839,32840,32841,32842,32844,32845,32847,32848,32849,32850,32851,32853,32856,32857,32859,32860,32862,32864,32866,32867,32869,32871,32873,32875,32877,32878,32879,32880,32881,32883,32884,32886,32887,32889,32890,32891,32892,32894,32895,32897,32898,32899,32900,32901,32904,32906,32908,32909,32912,32914,32915,32916,32917,32919,32920,32921,32922,32923,32924,32926,32929,32931,32933,32934,32935,32936,32938,32939,32940,32941,32943,32945,32946,32947,32949,32951,32954,32955,32957,32959,32961,32962,32963,32964,32965,32970,32972,32973,32980,32982,32984,32986,32987,32988,32990,32991,32992,32995,32997,32998,32999,33001,33002,33003,33004,33007,33008,33009,33011,33013,33014,33016,33017,33019,33020,33022,33024,33027,33029,33030,33032,33033,33035,33037,33041,33042,33043,33044,33045,33047,33048,33049,33050,33053,33054,33056,33057,33058,33060,33062,33064,33066,33067,33069,33071,33073,33075,33077,33078,33082,33084,33086,33090,33091,33092,33093,33095,33097,33098,33100,33102,33104,33107,33109,33111,33112,33114,33115,33116,33117,33119,33120,33121,33123,33124,33125,33126,33128,33131,33134,33136,33138,33139,33141,33143,33144,33145,33147,33148,33150,33154,33159,33161,33162,33164,33168,33171,33173,33174,33175,33176,33178,33179,33181,33183,33184,33186,33187,33188,33189,33190,33191,33193,33195,33197,33198,33199,33201,33203,33205,33207,33208,33210,33212,33213,33215,33217,33219,33222,33224,33225,33226,33228,33229,33230,33232,33234,33235,33237,33239,33241,33242,33244,33246,33250,33252,33253,33255,33256,33258,33260,33262,33263,33265,33266,33269,33271,33275,33277,33281,33282,33284,33288,33289,33291,33292,33293,33295,33297,33298,33300,33302,33303,33304,33306,33308,33310,33311,33312,33314,33316,33320,33324,33327,33328,33331,33333,33335,33337,33340,33342,33344,33346,33348,33350,33351,33352,33353,33358,33359,33361,33362,33363,33365,33368,33370,33371,33373,33376,33378,33382,33384,33386,33388,33390,33391,33392,33393,33395,33397,33398,33399,33400,33401,33402,33403,33406,33407,33408,33409,33411,33412,33413,33414,33417,33421,33422,33424,33427,33428,33432,33433,33437,33438,33440,33442,33444,33448,33449,33451,33452,33454,33456,33457,33459,33462,33464,33465,33467,33468,33471,33474,33476,33478,33479,33481,33483,33485,33486,33489,33491,33492,33493,33495,33496,33497,33499,33500,33501,33503,33506,33508,33509,33511,33512,33514,33515,33516,33519,33520,33521,33522,33523,33524,33526,33528,33530,33532,33534,33537,33538,33539,33540,33542,33543,33544,33545,33548,33550,33551,33553,33555,33559,33561,33562,33564,33566,33570,33571,33572,33574,33576,33580,33582,33583,33585,33586,33587,33589,33591,33592,33593,33594,33596,33598,33599,33600,33601,33604,33606,33607,33609,33611,33613,33615,33617,33619,33621,33623,33625,33628,33630,33632,33633,33637,33639,33640,33641,33642,33644,33646,33649,33651,33653,33654,33656,33657,33658,33659,33663,33664,33665,33666,33668,33670,33672,33674,33676,33680,33683,33685,33688,33690,33691,33692,33693,33694,33695,33698,33700,33701,33703,33704,33705,33706,33709,33710,33711,33712,33715,33716,33719,33720,33722,33723,33726,33728,33729,33731,33733,33734,33735,33736,33737,33738,33741,33742,33744,33745,33747,33749,33751,33753,33755,33757,33759,33760,33761,33764,33767,33769,33770,33772,33773,33774,33775,33776,33780,33781,33783,33785,33787,33788,33790,33792,33793,33794,33796,33798,33799,33801,33802,33805,33807,33808,33810,33811,33813,33815,33817,33819,33820,33821,33822,33823,33825,33826,33827,33830,33832,33834,33836,33839,33842,33843,33844,33846,33849,33850,33851,33853,33854,33856,33857,33858,33860,33862,33864,33868,33869,33870,33871,33873,33874,33876,33877,33878,33882,33883,33884,33885,33886,33887,33888,33889,33892,33894,33895,33897,33899,33901,33903,33905,33907,33908,33910,33911,33912,33914,33915,33917,33918,33919,33920,33921,33923,33924,33927,33928,33929,33931,33934,33937,33938,33939,33940,33941,33943,33944,33945,33946,33947,33949,33952,33954,33955,33958,33962,33963,33965,33967,33969,33972,33973,33975,33980,33981,33982,33983,33986,33987,33989,33990,33991,33992,33993,33995,33997,33999,34E3,34005,34006,34007,34008,34010,34011,34012,34014,34016,34018,34020,34022,34025,34026,34028,34029,34030,34031,34032,34034,34036,34037,34038,34039,34043,34045,34049,34050,34051,34053,34056,34057,34058,34060,34062,34063,34065,34066,34067,34069,34073,34074,34075,34077,34079,34083,34086,34087,34088,34089,34091,34093,34094,34095,34097,34098,34099,34100,34102,34103,34108,34111,34112,34113,34114,34115,34117,34119,34122,34123,34125,34126,34129,34131,34134,34135,34137,34139,34141,34142,34143,34146,34147,34148,34150,34151,34152,34154,34155,34156,34157,34159,34160,34162,34166,34167,34169,34171,34172,34174,34175,34176,34177,34178,34180,34181,34183,34184,34186,34187,34189,34190,34191,34192,34193,34195,34196,34197,34201,34203,34204,34205,34206,34208,34211,34212,34214,34216,34217,34220,34222,34224,34226,34228,34230,34231,34232,34233,34235,34236,34238,34239,34240,34241,34242,34245,34249,34252,34253,34254,34255,34256,34257,34258,34261,34262,34264,34267,34269,34270,34273,34275,34277,34279,34281,34284,34287,34289,34290,34293,34295,34296,34299,34302,34304,34306,34308,34309,34311,34312,34313,34314,34315,34316,34318,34319,34320,34322,34324,34325,34327,34329,34330,34331,34333,34335,34337,34338,34341,34344,34345,34348,34350,34351,34353,34354,34355,34357,34359,34361,34362,34364,34365,34368,34369,34370,34372,34373,34375,34376,34378,34379,34380,34381,34382,34383,34384,34385,34386,34387,34389,34390,34393,34394,34396,34398,34399,34400,34402,34403,34406,34407,34408,34409,34410,34411,34412,34415,34416,34417,34419,34420,34421,34422,34423,34424,34425,34426,34428,34429,34431,34432,34434,34436,34437,34438,34440,34441,34443,34444,34446,34448,34449,34450,34451,34452,34453,34454,34455,34456,34457,34458,34460,34462,34463,34464,34466,34467,34468,34469,34471,34472,34474,34475,34477,34478,34481,34483,34485,34486,34488,34489,34491,34492,34493,34494,34496,34498,34501,34503,34504,34506,34508,34509,34510,34512,34513,34515,34517,34518,34520,34521,34522,34523,34525,34526,34528,34529,34531,34532,34533,34535,34536,34538,34539,34540,34541,34542,34543,34544,34546,34548,34549,34550,34552,34553,34554,34557,34559,34560,34562,34563,34564,34565,34569,34571,34576,34577,34578,34580,34582,34584,34585,34587,34588,34589,34591,34594,34595,34600,34601,34602,34604,34606,34607,34608,34609,34611,34612,34614,34615,34616,34617,34619,34620,34621,34622,34624,34626,34627,34628,34630,34632,34633,34636,34638,34639,34640,34641,34643,34644,34645,34647,34648,34649,34651,34653,34656,34657,34658,34661,34662,34664,34667,34668,34670,34672,34674,34675,34676,34677,34680,34681,34682,34683,34684,34685,34686,34688,34690,34691,34694,34695,34697,34698,34700,34701,34702,34703,34705,34707,34708,34710,34713,34714,34715,34716,34717,34718,34720,34722,34723,34724,34725,34727,34728,34730,34731,34732,34733,34734,34735,34736,34737,34738,34740,34744,34745,34746,34749,34750,34753,34754,34756,34757,34758,34759,34760,34762,34764,34765,34767,34768,34770,34771,34772,34773,34775,34777,34779,34781,34782,34784,34786,34788,34789,34790,34791,34792,34795,34797,34801,34803,34806,34807,34809,34810,34812,34813,34815,34817,34818,34821,34823,34825,34826,34827,34831,34832,34833,34834,34835,34837,34838,34840,34845,34846,34847,34848,34850,34852,34854,34856,34858,34859,34860,34861,34864,34868,34869,34870,34871,34872,34874,34875,34876,34877,34879,34881,34882,34885,34886,34887,34890,34891,34892,34894,34895,34896,34900,34901,34903,34904,34905,34907,34908,34911,34912,34914,34916,34917,34919,34920,34921,34923,34925,34927,34929,34931,34934,34936,34938,34940,34941,34943,34944,34946,34947,34948,34950,34952,34954,34956,34958,34959,34961,34962,34964,34966,34968,34969,34970,34971,34972,34974,34978,34980,34982,34984,34986,34988,34989,34991,34992,34993,34996,35E3,35001,35003,35005,35007,35008,35009,35010,35011,35014,35016,35018,35020,35024,35026,35027,35028,35030,35032,35033,35035,35036,35038,35040,35041,35043,35045,35046,35047,35049,35050,35052,35053,35055,35057,35058,35060,35061,35066,35067,35068,35072,35074,35075,35076,35077,35078,35079,35080,35082,35083,35085,35086,35087,35088,35089,35093,35094,35095,35096,35097,35098,35099,35101,35102,35103,35105,35106,35108,35109,35110,35112,35113,35115,35116,35117,35119,35122,35124,35126,35128,35129,35130,35131,35132,35133,35135,35137,35138,35140,35142,35144,35146,35147,35149,35150,35154,35156,35158,35160,35161,35165,35167,35168,35169,35170,35172,35173,35175,35176,35179,35180,35181,35182,35183,35184,35185,35186,35188,35190,35191,35193,35194,35196,35197,35198,35199,35201,35205,35206,35207,35210,35212,35215,35217,35218,35221,35224,35227,35228,35229,35230,35231,35234,35235,35237,35239,35242,35243,35246,35250,35251,35253,35254,35255,35256,35257,35259,35260,35263,35265,35267,35268,35269,35273,35275,35279,35282,35283,35285,35286,35291,35292,35293,35296,35298,35301,35306,35308,35310,35311,35314,35315,35316,35317,35319,35320,35323,35328,35329,35331,35334,35335,35336,35337,35341,35342,35343,35344,35347,35350,35351,35353,35357,35358,35359,35363,35364,35365,35366,35368,35370,35372,35373,35376,35378,35380,35381,35383,35388,35389,35390,35392,35396,35397,35398,35399,35400,35402,35404,35405,35406,35410,35411,35413,35414,35416,35417,35419,35422,35423,35425,35427,35428,35432,35433,35437,35438,35440,35442,35443,35445,35447,35449,35451,35452,35453,35454,35455,35456,35458,35460,35464,35465,35467,35468,35469,35471,35475,35476,35477,35479,35481,35483,35484,35486,35488,35491,35493,35495,35497,35500,35501,35502,35504,35506,35507,35509,35511,35512,35514,35515,35516,35518,35521,35522,35523,35524,35528,35529,35531,35534,35536,35537,35539,35540,35541,35542,35545,35546,35549,35550,35552,35556,35558,35559,35562,35564,35565,35567,35568,35573,35575,35576,35579,35582,35584,35586,35588,35590,35591,35594,35596,35597,35598,35600,35603,35604,35606,35608,35609,35611,35612,35614,35615,35618,35621,35623,35624,35625,35626,35628,35629,35632,35634,35635,35637,35638,35639,35641,35643,35644,35646,35648,35650,35651,35655,35656,35658,35659,35662,35664,35665,35666,35667,35669,35672,35673,35676,35678,35681,35683,35686,35687,35689,35693,35695,35696,35698,35700,35702,35703,35706,35708,35710,35711,35712,35713,35715,35717,35718,35719,35720,35722,35724,35726,35727,35728,35731,35733,35734,35735,35737,35738,35740,35742,35743,35744,35746,35747,35748,35749,35751,35753,35754,35755,35757,35759,35763,35764,35766,35769,35771,35772,35773,35774,35775,35776,35777,35778,35779,35780,35781,35782,35783,35785,35786,35788,35789,35790,35791,35794,35795,35797,35798,35800,35801,35804,35805,35806,35807,35808,35809,35811,35813,35817,35818,35820,35821,35822,35824,35825,35828,35830,35831,35832,35833,35834,35836,35838,35840,35841,35842,35843,35844,35846,35847,35848,35850,35851,35852,35855,35856,35859,35861,35862,35865,35867,35868,35869,35870,35871,35872,35873,35874,35875,35876,35879,35880,35881,35883,35884,35886,35888,35890,35891,35892,35894,35895,35896,35897,35899,35901,35902,35905,35906,35907,35910,35911,35913,35914,35916,35918,35919,35922,35926,35927,35929,35930,35931,35932,35934,35936,35937,35939,35940,35941,35942,35943,35944,35946,35947,35948,35949,35950,35952,35954,35956,35957,35958,35960,35961,35962,35964,35966,35967,35968,35970,35972,35974,35978,35981,35982,35983,35984,35986,35987,35988,35992,35995,35998,36E3,36004,36006,36008,36010,36012,36014,36016,36019,36020,36025,36026,36030,36031,36032,36034,36035,36036,36038,36039,36040,36042,36043,36044,36045,36047,36048,36049,36052,36053,36056,36057,36058,36059,36061,36062,36063,36065,36067,36069,36073,36074,36076,36077,36078,36083,36084,36086,36088,36089,36090,36092,36094,36096,36097,36098,36099,36101,36102,36103,36104,36105,36108,36109,36111,36112,36113,36114,36116,36117,36118,36119,36121,36122,36123,36125,36126,36127,36128,36129,36131,36132,36133,36137,36138,36140,36142,36144,36147,36149,36150,36152,36153,36154,36156,36158,36163,36165,36166,36167,36168,36170,36173,36174,36175,36176,36177,36179,36180,36181,36183,36184,36187,36188,36190,36191,36192,36194,36197,36200,36201,36203,36205,36207,36209,36211,36212,36214,36216,36217,36218,36220,36222,36223,36224,36228,36231,36232,36233,36235,36239,36240,36242,36243,36245,36247,36249,36252,36254,36255,36256,36258,36259,36262,36265,36266,36268,36271,36272,36274,36276,36277,36280,36281,36285,36287,36289,36290,36293,36294,36295,36296,36299,36301,36303,36305,36306,36307,36311,36312,36313,36314,36316,36317,36320,36323,36324,36325,36326,36327,36330,36331,36332,36334,36336,36339,36340,36342,36343,36344,36346,36348,36354,36355,36356,36358,36359,36363,36364,36365,36368,36369,36370,36371,36372,36373,36374,36376,36379,36381,36383,36385,36386,36387,36389,36390,36392,36393,36395,36396,36397,36398,36399,36402,36405,36407,36410,36413,36414,36416,36417,36418,36419,36421,36423,36424,36426,36427,36428,36429,36431,36433,36434,36436,36438,36440,36442,36444,36446,36449,36451,36453,36455,36457,36459,36460,36462,36463,36465,36466,36467,36470,36471,36472,36473,36476,36479,36482,36483,36484,36486,36488,36489,36490,36493,36494,36495,36497,36499,36502,36504,36506,36507,36508,36509,36510,36511,36513,36514,36516,36518,36520,36521,36522,36524,36526,36527,36530,36532,36534,36536,36538,36539,36545,36547,36549,36550,36551,36552,36553,36555,36556,36557,36558,36560,36565,36567,36568,36569,36571,36572,36574,36575,36578,36580,36582,36583,36584,36585,36586,36587,36588,36590,36591,36592,36594,36595,36598,36600,36601,36602,36603,36607,36609,36610,36613,36619,36620,36621,36623,36625,36626,36627,36632,36634,36635,36636,36637,36638,36639,36642,36645,36647,36648,36650,36651,36652,36653,36656,36657,36659,36660,36661,36662,36663,36665,36667,36670,36672,36674,36675,36676,36678,36679,36680,36682,36683,36684,36687,36690,36691,36692,36693,36694,36696,36698,36699,36700,36703,36704,36705,36708,36709,36711,36712,36713,36714,36716,36718,36719,36720,36721,36724,36726,36728,36729,36731,36732,36734,36735,36736,36737,36738,36741,36743,36745,36746,36747,36748,36751,36753,36754,36755,36757,36759,36760,36762,36764,36765,36767,36768,36769,36770,36772,36774,36776,36778,36780,36782,36784,36785,36786,36788,36789,36791,36792,36795,36798,36800,36801,36802,36804,36805,36807,36809,36810,36811,36813,36814,36816,36818,36819,36822,36824,36825,36829,36831,36832,36833,36835,36836,36838,36840,36841,36842,36843,36844,36846,36848,36850,36852,36853,36856,36857,36858,36860,36862,36863,36865,36868,36869,36870,36871,36873,36874,36877,36878,36880,36881,36882,36885,36886,36887,36889,36892,36893,36895,36896,36898,36899,36901,36903,36908,36910,36911,36914,36915,36916,36918,36919,36920,36922,36924,36925,36927,36929,36931,36934,36935,36936,36938,36941,36942,36946,36948,36949,36950,36952,36953,36954,36955,36956,36957,36958,36960,36961,36963,36964,36966,36967,36968,36970,36973,36975,36977,36980,36982,36985,36986,36987,36991,36992,36994,36995,36997,36999,37001,37003,37005,37007,37009,37011,37012,37013,37014,37015,37016,37020,37022,37024,37026,37027,37028,37030,37031,37032,37035,37037,37039,37041,37042,37044,37045,37046,37048,37050,37054,37055,37056,37057,37059,37060,37062,37064,37065,37066,37069,37070,37072,37073,37074,37079,37082,37084,37086,37087,37089,37091,37092,37094,37096,37098,37099,37101,37104,37106,37108,37110,37112,37113,37114,37115,37116,37118,37120,37121,37124,37127,37129,37131,37134,37135,37137,37138,37140,37143,37146,37149,37151,37152,37154,37155,37156,37158,37159,37160,37161,37163,37166,37167,37170,37171,37173,37176,37178,37180,37182,37183,37184,37187,37189,37190,37191,37192,37196,37198,37199,37200,37202,37203,37204,37207,37210,37213,37218,37221,37222,37225,37227,37228,37230,37232,37234,37237,37240,37243,37244,37246,37248,37250,37252,37253,37254,37256,37258,37262,37264,37265,37267,37268,37270,37272,37273,37274,37276,37278,37279,37280,37281,37282,37283,37284,37285,37286,37288,37289,37290,37291,37293,37294,37295,37297,37298,37299,37302,37305,37306,37307,37308,37311,37313,37314,37317,37319,37320,37321,37322,37323,37326,37327,37330,37331,37332,37333,37334,37338,37340,37343,37345,37347,37351,37352,37355,37356,37360,37361,37362,37363,37365,37367,37369,37370,37371,37372,37374,37375,37378,37379,37380,37381,37383,37384,37385,37386,37387,37390,37392,37393,37394,37397,37398,37399,37400,37401,37402,37403,37404,37405,37406,37408,37409,37410,37412,37413,37414,37416,37418,37420,37422,37425,37427,37430,37432,37434,37436,37437,37438,37441,37442,37443,37444,37445,37448,37450,37452,37454,37455,37457,37460,37463,37465,37467,37468,37470,37472,37473,37475,37477,37479,37482,37488,37489,37492,37494,37496,37497,37498,37500,37502,37504,37505,37507,37509,37511,37514,37515,37516,37518,37519,37521,37522,37523,37524,37525,37527,37529,37531,37534,37535,37538,37542,37544,37545,37547,37552,37554,37557,37561,37562,37564,37565,37568,37569,37573,37574,37575,37577,37579,37580,37582,37583,37584,37585,37586,37591,37592,37593,37595,37596,37598,37603,37606,37609,37610,37611,37613,37616,37619,37621,37622,37623,37626,37627,37629,37632,37634,37635,37637,37638,37641,37642,37643,37645,37646,37648,37649,37651,37652,37653,37655,37656,37658,37662,37664,37666,37672,37674,37677,37678,37679,37682,37685,37686,37687,37689,37690,37691,37693,37695,37697,37699,37703,37706,37708,37710,37712,37716,37718,37720,37722,37723,37724,37728,37729,37732,37734,37735,37736,37738,37740,37743,37746,37750,37751,37753,37755,37758,37759,37761,37763,37764,37765,37767,37769,37770,37773,37775,37776,37780,37781,37783,37784,37786,37787,37788,37790,37791,37793,37795,37796,37797,37798,37801,37802,37803,37804,37805,37807,37809,37810,37811,37812,37814,37816,37819,37822,37824,37825,37826,37827,37828,37832,37833,37835,37836,37837,37839,37842,37843,37844,37845,37846,37848,37849,37851,37853,37854,37855,37856,37857,37859,37861,37862,37863,37864,37866,37868,37870,37872,37874,37875,37876,37879,37880,37882,37884,37885,37887,37888,37889,37891,37892,37894,37896,37897,37900,37901,37902,37903,37906,37907,37908,37909,37911,37913,37915,37916,37920,37923,37927,37928,37930,37932,37934,37936,37939,37942,37943,37945,37947,37948,37949,37951,37953,37955,37958,37959,37960,37962,37967,37969,37972,37973,37974,37975,37976,37977,37981,37983,37985,37987,37988,37991,37994,37997,38E3,38002,38003,38005,38006,38008,38009,38010,38011,38012,38014,38016,38018,38019,38020,38021,38023,38024,38025,38026,38028,38031,38033,38038,38039,38041,38044,38046,38048,38050,38051,38052,38054,38055,38057,38059,38062,38065,38066,38068,38070,38072,38073,38075,38076,38079,38081,38083,38085,38086,38087,38088,38090,38091,38092,38095,38097,38098,38099,38101,38102,38103,38104,38105,38107,38109,38111,38114,38116,38118,38119,38120,38121,38123,38127,38129,38131,38133,38134,38137,38140,38141,38144,38145,38148,38150,38151,38153,38155,38156,38158,38159,38161,38163,38164,38168,38170,38172,38173,38175,38176,38180,38182,38183,38185,38187,38189,38191,38193,38194,38197,38199,38200,38202,38204,38207,38208,38209,38210,38211,38213,38216,38218,38220,38221,38223,38224,38226,38228,38229,38233,38235,38236,38237,38240,38242,38245,38247,38248,38251,38255,38257,38260,38261,38262,38263,38265,38267,38268,38269,38270,38272,38274,38275,38278,38279,38280,38281,38283,38284,38287,38289,38292,38293,38294,38295,38297,38298,38302,38303,38305,38306,38309,38310,38311,38312,38313,38314,38316,38317,38318,38320,38322,38323,38325,38327,38328,38329,38330,38331,38332,38333,38334,38336,38338,38339,38341,38342,38343,38344,38346,38348,38349,38352,38353,38354,38355,38358,38360,38362,38364,38366,38367,38368,38370,38372,38373,38374,38376,38379,38381,38383,38385,38386,38387,38389,38391,38393,38394,38395,38396,38398,38399,38401,38403,38404,38405,38406,38407,38409,38412,38414,38415,38416,38419,38420,38421,38423,38425,38427,38428,38430,38432,38433,38434,38435,38437,38440,38442,38444,38446,38447,38448,38449,38450,38452,38453,38454,38455,38458,38459,38460,38461,38464,38465,38467,38468,38469,38471,38474,38475,38479,38480,38482,38485,38487,38488,38491,38492,38493,38495,38496,38497,38498,38502,38503,38504,38505,38506,38507,38508,38511,38512,38513,38514,38516,38518,38519,38520,38522,38524,38527,38533,38534,38535,38537,38539,38542,38543,38545,38546,38547,38549,38550,38551,38552,38554,38556,38558,38560,38561,38562,38565,38568,38570,38572,38574,38576,38577,38578,38579,38582,38583,38584,38586,38587,38590,38592,38595,38596,38597,38599,38601,38603,38605,38606,38607,38609,38611,38612,38613,38615,38617,38619,38620,38622,38624,38625,38626,38628,38630,38631,38632,38633,38635,38637,38639,38640,38641,38643,38645,38647,38649,38650,38651,38652,38654,38655,38656,38658,38660,38661,38662,38663,38665,38667,38668,38670,38671,38672,38673,38675,38676,38677,38678,38679,38681,38682,38683,38686,38687,38688,38690,38691,38693,38695,38696,38699,38702,38706,38707,38708,38710,38712,38714,38716,38718,38719,38721,38723,38724,38726,38729,38731,38733,38736,38738,38739,38741,38742,38746,38747,38749,38751,38753,38754,38755,38756,38759,38760,38762,38763,38765,38767,38768,38769,38771,38774,38777,38779,38781,38783,38786,38788,38790,38793,38794,38795,38797,38799,38801,38802,38804,38806,38809,38811,38812,38814,38817,38819,38820,38822,38823,38824,38827,38829,38831,38833,38834,38835,38838,38839,38840,38842,38845,38846,38848,38850,38852,38855,38858,38859,38862,38863,38864,38866,38867,38869,38871,38873,38875,38876,38878,38880,38881,38882,38883,38884,38885,38887,38890,38892,38894,38896,38898,38901,38906,38907,38909,38911,38913,38915,38918,38919,38920,38922,38924,38927,38928,38930,38932,38934,38935,38938,38939,38940,38942,38945,38946,38948,38949,38952,38955,38958,38959,38960,38962,38966,38969,38971,38973,38976,38977,38978,38981,38984,38985,38986,38988,38989,38990,38992,38994,38996,38999,39001,39003,39005,39007,39008,39009,39010,39012,39014,39017,39020,39021,39023,39024,39026,39027,39029,39030,39032,39033,39034,39035,39037,39039,39040,39042,39045,39047,39049,39051,39052,39054,39055,39058,39061,39062,39063,39064,39065,39067,39069,39070,39072,39073,39076,39078,39079,39080,39082,39083,39084,39085,39086,39087,39088,39092,39094,39095,39096,39099,39100,39101,39103,39107,39109,39111,39112,39114,39115,39116,39117,39119,39121,39122,39123,39126,39127,39128,39130,39131,39134,39136,39139,39141,39143,39148,39149,39150,39151,39153,39154,39155,39157,39158,39159,39160,39162,39163,39166,39167,39168,39169,39171,39172,39173,39175,39177,39179,39181,39183,39185,39186,39187,39188,39189,39193,39194,39196,39198,39199,39200,39201,39203,39205,39206,39208,39211,39213,39216,39217,39220,39222,39223,39225,39228,39231,39232,39234,39235,39237,39238,39239,39241,39243,39244,39247,39248,39249,39252,39254,39258,39259,39261,39264,39265,39266,39268,39271,39274,39277,39278,39279,39281,39284,39288,39290,39292,39293,39295,39296,39299,39301,39302,39303,39304,39305,39306,39308,39309,39312,39313,39315,39317,39319,39320,39322,39324,39326,39329,39331,39332,39333,39334,39335,39336,39337,39340,39341,39343,39344,39345,39347,39349,39351,39356,39360,39361,39363,39367,39371,39372,39377,39379,39381,39384,39386,39390,39391,39392,39393,39394,39396,39400,39402,39404,39405,39406,39407,39409,39410,39412,39413,39414,39416,39417,39419,39421,39423,39425,39427,39429,39430,39432,39433,39435,39436,39440,39443,39445,39447,39448,39451,39453,39455,39456,39458,39460,39461,39463,39464,39466,39468,39469,39471,39472,39473,39474,39476,39478,39481,39482,39483,39485,39486,39487,39488,39489,39490,39491,39492,39495,39496,39498,39500,39501,39502,39503,39504,39505,39507,39509,39510,39511,39513,39514,39516,39518,39520,39521,39523,39525,39528,39529,39531,39532,39533,39534,39536,39537,39538,39540,39542,39544,39546,39547,39548,39550,39552,39553,39554,39556,39557,39558,39559,39561,39564,39565,39566,39567,39569,39570,39571,39573,39575,39576,39577,39578,39579,39583,39585,39587,39588,39591,39593,39595,39596,39598,39601,39604,39605,39606,39608,39609,39610,39611,39612,39613,39614,39616,39618,39621,39622,39623,39626,39628,39630,39633,39635,39637,39639,39641,39643,39646,39648,39649,39652,39653,39656,39657,39660,39662,39663,39665,39667,39668,39669,39670,39671,39672,39674,39676,39678,39680,39681,39683,39684,39685,39687,39689,39690,39691,39693,39694,39695,39698,39699,39700,39701,39703,39704,39706,39709,39710,39712,39713,39715,39717,39719,39720,39721,39722,39724,39725,39728,39730,39732,39733,39737,39742,39743,39745,39746,39748,39753,39755,39756,39757,39761,39763,39765,39766,39769,39772,39775,39777,39780,39781,39783,39784,39785,39786,39789,39791,39793,39794,39795,39796,39797,39798,39801,39803,39804,39805,39807,39809,39811,39812,39813,39814,39815,39817,39819,39820,39821,39822,39824,39825,39826,39827,39828,39829,39831,39834,39835,39836,39840,39841,39843,39845,39847,39849,39852,39853,39854,39856,39857,39860,39864,39866,39868,39871,39874,39875,39876,39877,39878,39879,39880,39881,39882,39885,39886,39888,39890,39891,39892,39893,39894,39896,39898,39900,39902,39903,39904,39906,39907,39909,39910,39912,39914,39915,39916,39918,39919,39920,39923,39925,39927,39930,39931,39932,39934,39936,39938,39940,39941,39945,39947,39951,39953,39956,39957,39959,39960,39962,39963,39964,39966,39967,39970,39972,39975,39976,39977,39979,39981,39982,39983,39984,39986,39988,39991,39993,39994,39996,39997,39999,40002,40004,40005,40006,40007,40008,40009,40012,40013,40014,40017,40019,40021,40024,40026,40028,40029,40030,40032,40034,40037,40039,40040,40041,40042,40046,40049,40051,40052,40054,40055,40056,40057,40059,40062,40065,40069,40071,40073,40074,40075,40076,40078,40080,40083,40086,40087,40091,40092,40093,40095,40098,40100,40102,40103,40104,40106,40107,40108,40112,40113,40116,40118,40120,40122,40123,40125,40126,40129,40131,40132,40134,40135,40136,40137,40139,40141,40142,40143,40145,40146,40149,40150,40152,40154,40158,40160,40161,40162,40164,40167,40170,40171,40172,40174,40175,40177,40179,40180,40183,40184,40186,40187,40188,40189,40190,40191,40195,40196,40198,40200,40201,40203,40205,40206,40208,40209,40210,40212,40214,40216,40217,40219,40224,40225,40226,40227,40228,40231,40232,40234,40235,40236,40239,40241,40244,40245,40247,40248,40249,40250,40251,40252,40254,40257,40258,40260,40261,40264,40266,40268,40270,40272,40274,40276,40277,40279,40280,40282,40285,40287,40288,40289,40291,40292,40293,40294,40295,40296,40298,40300,40302,40304,40306,40307,40309,40311,40315,40316,40318,40319,40320,40321,40323,40324,40326,40327,40329,40330,40332,40335,40338,40341,40342,40343,40347,40350,40352,40354,40358,40360,40361,40362,40364,40366,40367,40368,40370,40371,40372,40374,40375,40378,40380,40382,40384,40385,40386,40388,40389,40390,40392,40393,40395,40396,40397,40399,40401,40403,40404,40406,40408,40409,40411,40413,40415,40416,40419,40420,40421,40422,40425,40426,40427,40428,40429,40431,40433,40434,40437,40438,40439,40441,40444,40445,40446,40447,40448,40450,40451,40454,40456,40457,40458,40459,40462,40464,40465,40466,40468,40469,40471,40474,40475,40477,40478,40479,40480,40481,40483,40485,40487,40490,40492,40493,40495,40497,40498,40501,40502,40504,40505,40507,40508,40510,40511,40512,40513,40514,40515,40517,40519,40521,40522,40523,40525,40526,40527,40529,40530,40531,40532,40534,40536,40538,40539,40540,40542,40544,40545,40548,40549,40550,40552,40553,40554,40555,40556,40558,40559,40561,40563,40565,40566,40568,40570,40571,40572,40574,40576,40578,40579,40580,40581,40582,40585,40587,40588,40589,40590,40591,40592,40593,40597,40600,40602,40604,40605,40607,40609,40610,40612,40613,40614,40616,40617,40619,40621,40624,40625,40626,40628,40629,40631,40633,40634,40635,40638,40639,40640,40642,40643,40644,40646,40649,40651,40652,40655,40658,40660,40661,40662,40664,40666,40669,40670,40671,40673,40675,40676,40678,40680,40681,40682,40684,40687,40690,40691,40692,40694,40695,40697,40699,40701,40703,40704,40705,40706,40707,40709,40711,40713,40717,40718,40719,40721,40723,40724,40725,40726,40728,40730,40732,40733,40735,40736,40738,40739,40740,40742,40743,40745,40750,40752,40753,40755,40756,40758,40759,40760,40762,40764,40765,40766,40768,40770,40771,40773,40775,40776,40778,40779,40780,40782,40784,40786,40788,40789,40790,40793,40794,40796,40799,40801,40803,40805,40806,40808,40810,40811,40813,40814,40816,40818,40820,40821,40822,40823,40824,40826,40828,40830,40831,40833,40834,40835,40836,40838,40839,40841,40842,40844,40846,40848,40849,40851,40852,40855,40856,40858,40859,40860,40862,40863,40866,40867,40868,40869,40871,40873,40876,40878,40879,40880,40883,40885,40886,40887,40888,40889,40891,40894,40896,40900,40902,40903,40905,40906,40908,40909,40910,40911,40913,40914,40916,40917,40919,40921,40923,40924,40925,40927,40928,40930,40931,40933,40934,40935,40936,40940,40942,40943,40945,40948,40949,40950,40951,40952,40954,40955,40956,40957,40958,40962,40963,40965,40968,40969,40971,40972,40973,40974,40975,40979,40980,40981,40982,40984,40986,40987,40989,40991,40992,40993,40995,40996,40997,40999,41001,41002,41004,41006,41008,41012,41013,41014,41016,41017,41019,41021,41022,41024,41025,41027,41029,41031,41033,41035,41036,41038,41041,41042,41045,41047,41049,41050,41054,41055,41057,41058,41059,41060,41062,41063,41066,41069,41072,41075,41077,41078,41079,41081,41082,41083,41085,41087,41091,41092,41093,41095,41097,41102,41103,41105,41106,41108,41110,41112,41114,41115,41117,41119,41122,41123,41126,41127,41131,41134,41138,41140,41142,41143,41144,41145,41146,41147,41150,41152,41154,41156,41158,41159,41161,41163,41165,41167,41169,41170,41172,41176,41178,41180,41182,41183,41186,41188,41189,41190,41192,41194,41195,41196,41198,41199,41201,41203,41205,41207,41210,41214,41217,41218,41221,41222,41223,41226,41229,41230,41231,41233,41236,41238,41239,41240,41242,41244,41246,41247,41249,41250,41251,41253,41255,41256,41259,41260,41261,41263,41264,41266,41268,41270,41271,41272,41274,41276,41278,41280,41281,41282,41283,41284,41287,41288,41291,41293,41295,41296,41299,41300,41301,41303,41305,41306,41307,41309,41310,41311,41313,41315,41317,41319,41321,41323,41325,41329,41330,41333,41335,41337,41338,41340,41341,41342,41344,41345,41346,41348,41349,41350,41355,41356,41357,41359,41360,41361,41364,41368,41369,41370,41371,41372,41373,41375,41377,41379,41380,41382,41383,41384,41386,41387,41389,41390,41391,41393,41395,41397,41399,41401,41402,41404,41406,41409,41412,41415,41417,41418,41419,41420,41421,41425,41427,41428,41430,41432,41433,41436,41437,41439,41440,41441,41442,41443,41445,41447,41449,41451,41454,41457,41459,41461,41464,41466,41467,41469,41472,41473,41475,41476,41478,41479,41481,41484,41486,41488,41489,41492,41493,41495,41496,41497,41498,41500,41503,41506,41507,41508,41509,41510,41511,41514,41515,41517,41518,41520,41521,41523,41524,41526,41528,41531,41532,41534,41537,41541,41543,41544,41545,41546,41547,41549,41550,41552,41554,41555,41556,41558,41559,41560,41562,41564,41566,41567,41569,41571,41573,41574,41577,41579,41582,41583,41585,41586,41588,41590,41592,41594,41595,41596,41597,41598,41600,41601,41602,41603,41605,41606,41608,41610,41611,41612,41613,41614,41615,41617,41619,41622,41623,41625,41627,41628,41630,41632,41633,41635,41636,41638,41639,41641,41643,41645,41647,41648,41649,41650,41651,41654,41655,41656,41657,41658,41659,41660,41662,41663,41664,41665,41666,41667,41669,41670,41671,41673,41675,41677,41680,41681,41683,41685,41688,41691,41692,41694,41695,41696,41697,41699,41701,41702,41705,41706,41707,41709,41710,41712,41714,41715,41716,41718,41720,41722,41723,41724,41725,41727,41728,41729,41730,41731,41734,41736,41737,41738,41740,41742,41743,41745,41747,41748,41749,41751,41752,41753,41754,41755,41758,41760,41761,41764,41767,41768,41769,41770,41771,41776,41780,41782,41783,41785,41787,41788,41790,41791,41792,41793,41795,41796,41798,41799,41801,41804,41805,41806,41809,41811,41812,41815,41817,41818,41819,41820,41821,41822,41823,41825,41827,41830,41831,41832,41834,41835,41837,41838,41839,41840,41842,41843,41846,41847,41848,41850,41852,41855,41857,41859,41860,41861,41862,41863,41864,41866,41868,41869,41870,41871,41873,41874,41875,41877,41879,41880,41882,41884,41885,41886,41888,41889,41891,41893,41894,41897,41898,41900,41901,41903,41904,41905,41906,41908,41909,41910,41911,41913,41915,41916,41917,41918,41920,41921,41923,41924,41925,41926,41927,41929,41931,41932,41934,41935,41937,41939,41940,41941,41943,41945,41947,41949,41950,41951,41953,41954,41955,41958,41959,41960,41961,41963,41965,41967,41968,41970,41971,41974,41975,41978,41979,41980,41981,41982,41983,41985,41987,41988,41989,41990,41991,41993,41995,41996,41998,42E3,42001,42003,42005,42007,42008,42009,42011,42012,42014,42016,42017,42018,42019,42021,42022,42025,42026,42027,42028,42030,42032,42034,42035,42038,42039,42040,42041,42044,42045,42046,42048,42050,42052,42055,42056,42058,42060,42062,42064,42067,42068,42070,42072,42073,42076,42079,42081,42082,42084,42086,42088,42092,42093,42095,42096,42098,42100,42101,42103,42105,42106,42110,42111,42113,42117,42118,42119,42120,42121,42123,42125,42126,42127,42129,42130,42131,42135,42136,42137,42139,42140,42142,42144,42147,42149,42150,42153,42154,42155,42156,42158,42160,42161,42164,42166,42167,42168,42169,42170,42172,42174,42176,42177,42179,42181,42182,42183,42185,42188,42190,42192,42194,42195,42196,42197,42199,42200,42201,42202,42205,42207,42209,42210,42213,42215,42216,42218,42220,42222,42223,42225,42226,42227,42229,42231,42232,42233,42234,42236,42237,42238,42242,42245,42246,42247,42250,42251,42252,42256,42257,42258,42260,42261,42262,42263,42264,42266,42267,42268,42269,42271,42273,42275,42276,42277,42279,42280,42281,42283,42284,42285,42286,42287,42288,42290,42291,42293,42295,42296,42300,42302,42303,42306,42307,42308,42309,42310,42311,42313,42315,42317,42321,42324,42326,42327,42329,42330,42332,42333,42336,42338,42339,42341,42344,42346,42349,42351,42352,42353,42354,42357,42358,42359,42360,42363,42364,42366,42367,42369,42370,42372,42373,42374,42375,42376,42377,42379,42381,42383,42385,42387,42390,42391,42393,42395,42396,42398,42400,42401,42402,42404,42405,42406,42408,42409,42410,42411,42412,42414,42416,42417,42419,42421,42422,42425,42427,42429,42431,42433,42435,42437,42439,42442,42444,42446,42447,42449,42450,42452,42454,42456,42457,42459,42460,42461,42463,42464,42466,42467,42468,42470,42471,42473,42475,42477,42478,42479,42480,42481,42483,42485,42486,42487,42489,42490,42492,42493,42495,42499,42500,42501,42503,42504,42506,42508,42509,42510,42511,42514,42516,42517,42519,42520,42522,42523,42524,42526,42527,42528,42529,42530,42531,42533,42534,42535,42537,42538,42539,42541,42544,42546,42547,42549,42551,42552,42554,42556,42559,42561,42563,42564,42566,42567,42569,42570,42571,42572,42574,42575,42577,42579,42581,42582,42583,42584,42586,42589,42591,42593,42594,42596,42597,42598,42599,42600,42602,42604,42605,42607,42608,42609,42610,42612,42614,42616,42618,42619,42620,42621,42623,42625,42627,42629,42630,42632,42633,42635,42638,42640,42641,42642,42643,42644,42646,42648,42650,42651,42652,42653,42655,42656,42657,42659,42660,42662,42664,42666,42667,42668,42669,42670,42671,42673,42674,42676,42677,42679,42680,42681,42683,42685,42686,42687,42690,42692,42693,42694,42696,42697,42700,42702,42703,42706,42710,42711,42712,42714,42716,42718,42720,42721,42725,42727,42728,42729,42730,42732,42736,42737,42739,42740,42743,42744,42746,42747,42749,42750,42752,42753,42754,42755,42757,42759,42761,42763,42765,42766,42767,42768,42769,42770,42771,42772,42773,42775,42776,42777,42779,42780,42781,42783,42784,42785,42786,42787,42790,42792,42794,42795,42796,42798,42799,42800,42801,42802,42804,42806,42808,42809,42810,42811,42812,42813,42814,42815,42817,42819,42821,42823,42824,42825,42826,42827,42830,42831,42832,42834,42835,42836,42837,42840,42841,42842,42844,42845,42846,42848,42849,42851,42852,42854,42855,42857,42859,42862,42864,42869,42871,42874,42875,42877,42878,42879,42881,42883,42884,42885,42886,42887,42888,42889,42894,42898,42900,42902,42903,42906,42907,42908,42909,42912,42914,42915,42917,42919,42921,42924,42926,42927,42931,42932,42935,42936,42938,42939,42941,42942,42943,42945,42947,42949,42951,42953,42955,42956,42957,42958,42959,42960,42962,42965,42968,42969,42971,42972,42973,42974,42975,42976,42977,42978,42979,42981,42982,42983,42985,42987,42988,42989,42990,42991,42993,42994,42996,42997,43E3,43001,43003,43005,43008,43009,43011,43012,43015,43017,43018,43019,43020,43023,43025,43026,43027,43029,43030,43034,43035,43037,43038,43039,43040,43044,43050,43051,43053,43055,43057,43060,43062,43065,43066,43067,43068,43069,43070,43071,43072,43076,43078,43080,43081,43082,43084,43087,43088,43089,43090,43095,43098,43099,43101,43103,43106,43107,43108,43109,43113,43115,43116,43117,43119,43122,43124,43125,43126,43132,43133,43134,43136,43137,43138,43142,43144,43145,43146,43147,43150,43152,43154,43156,43158,43160,43162,43163,43164,43165,43166,43167,43168,43169,43170,43176,43179,43180,43186,43187,43189,43190,43193,43194,43196,43197,43198,43199,43200,43201,43202,43203,43204,43205,43207,43208,43210,43211,43212,43213,43214,43215,43216,43217,43218,43219,43220,43221,43222,43223,43224,43225,43226,43227,43228,43229,43230,43231,43232,43233,43234,43235,43236,43237,43238,43238,43239,43240,43241,43242,43242,43243,43244],y=[2279,2787,2983,1655,1357,2973,3197,1223,635,617,2565,2849,3183,3387,2943,2973,1967,631,3385,1313,3013,3227,3029,1449,1733,635,2969,3229,363,1241,2185,761,2397,1993,799,1349,531,373,1239,1057,3087,3049,985,3065,1551,1535,3015,3223,3041,3409,519,2971,2045,2393,1079,1081,1653,2207,3185,3193,1863,335,781,2407,3249,2725,3511,749,47,2973,3577,737,3185,3443,627,2675,3185,2269,1383,1463,1851,3453,2593,1431,1141,2211,1263,3089,2629,3433,2549,1189,605,1991,2675,3185,1577,3205,123,2589,1139,1187,1427,1747,3185,1483,1141,3241,1633,275,2189,909,133,1121,3089,1113,2343,1827,3443,2255,993,2981,2725,3163,1113,1263,1651,1619,2743,3163,3385,3361,3241,3507,719,2325,2189,345,2973,993,2747,2471,2651,2269,1461,2431,991,3117,1391,2175,2715,2587,3159,2015,2723,2589,1739,3195,597,3241,1757,1263,1909,3031,3227,3257,3205,315,781,1465,1483,3005,1637,2985,1141,2929,1401,1117,3175,2299,1721,209,1507,907,1687,887,915,2691,593,2927,1687,1667,2305,2565,1481,801,2927,1341,645,3407,2821,1623,2961,173,1131,627,883,339,359,2255,1213,1597,3051,2191,1827,3031,1757,131,1187,2675,3065,887,887,3229,3049,2197,2099,589,803,1635,2197,2197,2749,69,831,441,3101,1439,519,1353,2529,601,1481,1079,2835,2115,581,2407,689,2241,3185,3511,2413,1165,839,345,353,2985,1481,1619,571,1531,1253,2675,3021,3293,2163,757,3455,3369,1165,3533,383,3031,1483,2211,345,2979,1163,1139,1155,757,375,125,1187,1187,53,1507,1365,2565,2995,163,1253,1461,3041,65,3157,1607,103,689,1601,3579,3507,315,1991,3095,1039,3241,949,949,3185,3099,883,1587,2781,1455,2565,2105,2701,3165,3005,3533,3227,2311,3193,2985,3427,1149,1069,1415,3187,1311,805,2249,15,3145,1311,373,3033,373,2939,285,2821,1093,2675,3229,225,1263,3387,3087,2567,2565,2601,1389,2623,1019,819,3147,2273,2549,1079,2985,737,2051,529,749,887,49,803,1859,3107,3227,1077,3065,323,961,709,1079,1483,725,3025,2169,3065,2647,3023,1019,1021,1129,1131,1067,1455,1533,3185,1061,3447,3087,2289,717,1449,2189,3115,2273,637,1915,2937,3031,2775,1047,2879,1915,1915,3193,3411,1155,907,3013,2909,2579,1993,3175,2185,2837,991,1263,629,1125,1597,1241,1131,1541,2669,2789,1623,2825,2825,3175,2397,2947,851,3149,2563,3105,2085,429,1935,681,3319,689,3029,3233,689,2557,2947,1353,1067,851,2989,1669,1619,1139,1057,3425,3361,1151,2909,1311,1315,61,15,3495,2211,895,527,107,181,379,1483,3021,3071,847,2159,3453,1823,1047,2777,465,1405,1445,3425,3035,2985,2105,2241,3351,2985,3397,451,1139,1131,2717,3143,3087,2163,2441,2999,1179,2431,967,3175,3013,3111,1019,3577,3185,441,2427,1477,2999,2727,2375,3185,3425,2985,2999,1237,1139,995,545,2061,1483,3433,1427,2441,995,3143,2295,2071,3143,995,1287,347,1915,1131,413,131,2989,2955,3095,2919,3227,2249,3087,1915,131,1011,1207,45,45,3185,2845,299,295,3411,2739,1235,2279,3577,193,1187,15,3301,441,725,3199,3287,3241,1915,1553,1703,661,89,131,97,1047,375,2991,2789,295,2185,2675,683,2939,801,681,3241,3177,1387,2937,1365,3241,2939,3169,1579,3055,195,343,3029,1915,1439,3189,3529,1667,3375,2991,955,3029,1553,1141,1511,3185,1139,3193,2313,1253,515,3185,3031,1011,3221,1285,287,2723,2743,3423,95,1719,1387,285,1465,2565,2981,2985,2985,2231,1839,3271,3425,577,1575,801,3529,2559,907,1279,601,1079,1391,2291,845,2755,1541,2505,1423,1915,799,845,2239,75,1155,1337,2981,3239,3495,2547,435,3025,1143,1967,3019,3185,3237,3183,3147,2547,2325,1011,2431,1265,3227,531,3039,2075,2279,291,693,193,631,2647,721,2651,1689,3267,1145,1941,2233,3065,2059,373,2095,1995,1187,3189,719,679,3487,1303,2983,681,1823,1891,1893,2241,1609,2273,2667,221,635,2985,781,3185,2711,2245,2159,3045,2829,3041,3227,103,1577,2999,2913,3071,3265,1481,2715,1431,1671,2219,3441,3145,2985,1597,2985,2465,737,1125,2937,727,3185,1851,339,2735,1145,2589,2109,29,1361,271,2507,2503,2999,3425,2623,3351,271,3277,781,1497,3115,3087,1731,1113,1803,3223,3369,3185,1963,2743,2985,3265,2589,799,3185,509,1205,1495,237,225,1237,1597,2675,1869,45,27,2207,829,485,455,1609,2323,1895,1659,3039,3257,1819,45,2549,1651,3371,531,539,1429,2985,3257,3425,2955,1085,1721,1909,2917,1729,1915,2289,3293,1497,3423,3519,981,3087,1011,3101,3425,1743,427,895,2983,427,1613,3453,2581,1515,1221,3033,613,1189,2375,1677,1241,1311,3167,1927,3183,1435,3217,3193,3143,2675,2985,1531,3129,1685,1769,3559,3241,3185,895,1733,1263,2947,1091,3247,1297,589,1575,1067,3053,481,2229,1739,1721,2253,2913,553,15,3115,139,1959,1495,1199,3243,417,3579,185,1117,3165,2869,1141,29,1635,1143,2937,187,3279,3087,1895,3267,1305,57,3393,1241,2937,3031,2187,3183,3031,441,2273,649,1907,2187,1143,2871,2191,2655,589,1445,3369,3429,771,3193,251,1143,1113,3519,1427,1847,1237,2251,519,379,1187,3089,455,3219,637,343,2759,1765,1101,2691,1313,3541,1011,333,3107,1881,345,1495,25,1805,2651,3009,3153,1077,501,2273,1445,799,661,1677,1435,2889,991,1679,181,2319,2185,991,637,1577,169,2795,3319,2185,3293,1729,2069,3367,3011,837,1245,2185,2661,1597,253,3267,689,657,1763,2939,2299,2667,1763,2851,689,1773,3167,1253,1483,1365,837,3247,507,847,1445,1585,2207,43,151,3223,1679,547,253,43,575,2979,799,531,1221,2421,2825,2295,689,2191,1139,1139,1077,1179,3559,151,1719,65,2937,3187,45,3241,1009,661,2961,1883,473,3419,1481,1595,1909,1085,1483,2333,1607,781,1733,3239,1107,1237,909,909,3369,2095,3187,1141,133,1803,2357,1107,735,851,1349,1189,2491,2985,2651,2825,3253,3521,131,1359,1483,1107,3115,1995,1107,3393,2945,2999,2197,3173,1687,1653,2507,2235,2549,2589,1165,2235,3503,1401,2971,3209,407,2775,1495,135,899,1677,3031,777,1585,3315,3415,373,1669,1575,799,3195,2143,3415,1165,1613,1913,3185,1145,1143,1141,1139,3355,3241,1223,1091,3427,1415,1541,3427,113,3347,1241,527,1513,3185,3385,3001,345,443,347,3147,1435,635,1577,285,3143,2865,265,17,347,1315,693,3207,3393,2835,693,2865,265,3167,3527,3223,2045,2231,1495,2249,1601,3145,1293,2677,3185,291,1213,1171,131,1205,3277,627,857,1245,993,577,2975,2507,1047,2759,343,601,131,1705,3117,1595,2985,3029,131,2759,131,131,2101,2999,2413,159,721,1245,1073,3407,103,689,3241,2289,3293,1729,3185,2647,887,3075,531,2503,2723,1803,1205,139,2375,259,221,617,511,2725,1069,1241,575,2829,2715,3049,2661,677,2981,2759,3437,2775,2503,1161,3425,2939,3195,909,1531,1095,3435,2187,3529,1827,3031,3031,3319,2933,2969,1101,2715,3371,1929,2411,3205,3045,3185,2359,2589,267,3507,2925,1743,1139,745,2071,15,737,47,2251,2201,3021,771,831,2235,857,2825,291,3229,847,111,801,375,3453,2725,3443,711,1001,1921,1253,359,267,1335,1523,1483,3239,2095,3237,983,1483,1057,885,1311,3249,553,1113,1183,939,1213,3577,801,2241,105,315,441,1677,997,2981,2273,1105,1627,3029,363,2447,3149,3423,553,2763,1713,1541,2579,2867,219,605,315,2089,3189,1235,1141,1419,2789,3249,3233,213,2191,3239,1495,455,2305,2241,3437,3237,1139,2935,1733,2691,3029,3091,345,2273,1113,1201,935,2249,3237,2241,2635,2629,681,1585,673,2049,2725,3443,3197,2467,759,329,3247,3183,1123,2471,3175,1765,769,1019,2191,3195,247,1883,45,775,1495,295,289,1649,609,1073,1597,15,3185,1077,3351,1073,689,1131,2701,1883,3001,1481,3001,3145,1575,1713,1201,1145,3237,141,3241,1131,1751,363,1659,661,1455,1187,2935,3185,3101,2981,223,1427,3197,3031,3279,1637,1541,2205,1131,1165,2963,3287,3287,851,3457,605,3221,1143,3153,2395,2979,2619,3239,3183,2209,1139,2291,2785,2583,2209,1803,1201,1689,3197,819,2163,3099,1687,749,3123,839,2659,1117,3239,917,923,1555,689,3519,3517,131,2899,2211,2915,1523,2199,53,1367,1729,983,3199,3457,355,3003,3097,2593,2273,2071,949,717,885,2269,1073,1449,1483,325,2449,3509,2963,2167,1329,2877,2095,2763,2715,3507,149,905,1073,413,175,3425,629,663,3447,1863,1535,2157,1143,1763,2937,317,895,89,2393,2739,195,3529,1393,1445,993,3203,3425,1187,3053,3029,3115,2505,2205,3035,2675,987,1731,1121,2105,3223,1113,1811,2659,111,369,1187,1103,1431,3247,1069,639,1131,957,3163,247,949,1161,1163,547,1197,1651,1113,1743,219,1619,2101,3155,1237,1237,2311,1067,2211,2499,369,1221,1131,3269,509,3101,3025,757,247,3175,1027,563,3275,2431,2249,1115,2875,1541,2215,2979,1885,2443,1719,2855,1431,1009,443,3357,49,1637,1757,1117,805,3005,3029,181,1113,2263,3029,3425,2985,181,2205,2157,1181,1253,1399,2659,1235,689,1915,2211,605,605,2105,2191,3429,2185,3491,1353,3237,2249,1353,1019,799,879,875,579,3001,947,1019,2317,993,2829,181,2505,133,1597,3175,1881,387,2447,597,1597,2839,1499,1313,2447,3409,391,1497,1687,673,2211,1275,2523,3025,131,3351,3195,2985,2503,2675,2431,2413,437,1595,1541,265,3361,1093,637,637,1149,75,1067,637,3411,1589,1241,1245,1313,2709,1635,3393,615,653,3453,3147,2049,265,1729,1733,3237,1885,3187,3371,1209,3227,1117,3167,3167,3427,885,2189,867,943,3427,1059,1731,799,1073,939,2737,581,2759,3143,75,631,2291,1723,299,1773,2759,95,29,431,431,3003,3087,2563,3517,1687,1437,1831,103,323,3021,761,3445,1145,1193,2589,2985,1397,605,1597,2513,2695,1241,271,3237,2723,287,1669,1765,1093,2949,1983,1093,1057,1205,181,3003,1483,1197,1131,1679,2121,1009,3153,2189,3001,2675,2937,315,2985,1197,257,1021,771,2495,1541,2985,661,2191,2177,3257,181,1021,1113,605,3145,1237,1179,1829,1523,3237,2777,2791,2973,1051,3019,1011,1263,2801,3419,2767,1107,801,689,3185,2881,2565,2363,1181,839,3041,2507,2491,1785,3249,1253,1077,2985,85,1793,2191,839,2937,1785,1705,2647,139,1595,2295,725,3239,851,3393,1609,2031,2375,2273,1523,885,3003,2981,3045,2945,1909,801,3355,1827,3029,1523,805,499,3507,59,3577,3393,3563,1019,1139,3021,1165,751,2845,2999,3147,2743,2715,579,1253,33,991,3019,1235,2939,87,3495,1915,2787,1821,2989,1687,3231,1739,1165,107,1821,2557,271,3149,867,355,2407,1149,2249,1685,689,1483,343,3305,1019,1187,1895,2375,931,1057,819,2661,111,2709,2975,1141,2985,2269,1019,2957,2999,1187,1121,2099,2549,369,3407,2669,3371,2641,1145,2657,3427,113,2467,2503,79,1439,131,3097,2069,519,2191,3429,2099,289,131,2675,1131,1031,1213,397,1171,1869,907,749,3379,1731,2715,481,2985,553,2999,1371,3393,2719,1067,481,1597,1245,1597,2207,2061,3407,771,1483,237,2185,311,1483,2777,1541,2289,1499,1601,2587,883,3393,2065,1197,2259,2375,629,3529,2175,1199,151,1161,957,1315,169,3315,1523,1481,1637,2547,1739,1161,575,103,1165,1499,3411,2999,2137,2311,1575,3559,847,1253,2507,3105,1431,3031,2985,1431,2185,3183,1991,1481,3257,593,3187,349,1141,1005,3031,1329,3521,1023,2981,2291,987,2995,987,951,291,3115,3091,2545,1341,2995,2487,3243,3125,2169,3541,3231,3517,1499,3005,2991,3187,2487,3145,1179,2985,347,2565,1297,3197,1027,3185,2985,2471,1197,3175,3233,2311,3173,1613,1401,3415,2973,2691,1023,1541,3035,951,481,3075,25,3073,219,401,3345,2919,3231,3185,2105,1353,2559,1435,2869,2985,1541,2191,2961,1497,643,1713,1429,2937,653,1365,13,3285,1113,3185,1785,3517,767,2089,1139,131,1483,1595,1635,987,3409,823,2311,3411,1337,333,1221,1253,1141,1541,631,2825,2519,2311,2413,435,1875,3429,1585,2065,1541,2631,95,2375,3005,1463,3025,805,2289,2669,2491,3427,2733,2379,2677,3207,1685,1821,139,2669,2609,2743,993,2463,2375,2715,571,2175,1183,2737,2715,2323,1927,1523,605,605,3433,3025,1607,527,2985,949,1139,1883,3185,1893,3241,2927,963,3321,3143,481,2999,1181,2839,801,2071,2265,3233,2279,3129,193,139,2565,3345,3185,139,3229,661,1427,3189,277,359,3097,3087,3237,3075,1383,359,887,2715,967,2229,1449,2593,1577,3031,315,1163,2739,2101,3295,3095,2999,1907,2549,899,3153,2725,1311,1731,1141,1963,1073,1081,2927,3227,3319,131,1733,2221,3031,737,3185,2739,1463,3221,3025,1197,2531,3195,1143,3253,2675,909,333,1821,2927,1741,2675,3185,2499,2985,1139,1635,3233,1687,3349,2691,3425,139,1481,2759,3247,991,3437,3183,3453,2231,931,2985,3407,3223,1915,1263,3031,3167,3031,3429,1873,2549,2651,1579,323,1731,2311,531,2505,1729,1155,2589,3453,2675,3031,181,615,3541,1107,2589,2529,993,2739,845,2785,909,1531,1811,1731,3115,1713,1161,483,1253,1021,757,2563,317,2545,1975,2147,1669,2263,803,2503,1827,3185,363,2939,1353,93,1461,1313,2487,131,2689,851,2101,3185,2999,1883,3203,3455,427,775,3087,2123,2973,1511,229,3533,3581,139,3165,1091,2031,3075,3031,1465,2261,3021,1183,961,1101,2969,3143,3105,3457,1039,3203,2985,3183,2411,1495,3003,1091,3199,3205,1497,2505,229,103,1163,2589,737,589,2411,55,3237,3253,3205,1841,1465,3185,519,943,285,309,831,1197,1869,2105,2547,2105,1515,1785,3231,2525,1553,991,113,3219,1197,347,2357,1953,3091,3029,1049,2787,781,19,917,153,181,2269,2589,421,1115,309,801,1117,689,2935,765,2733,951,1623,1021,3221,1115,3149,3237,3527,3145,2273,3385,1213,2723,1165,2881,99,3185,2851,1059,2867,1531,1213,3349,3055,1069,3419,3087,3247,781,1213,2985,481,2263,1785,781,3315,121,349,3059,627,3145,851,1785,103,1247,605,3385,3145,2969,3145,2503,1253,3005,2723,995,2691,591,1141,1187,1301,3553,1183,3031,1421,735,1131,2981,1915,1729,2323,475,3193,1731,1283,1253,2295,2825,2915,3399,1485,2519,1333,3005,3393,3429,2799,2593,103,3175,2111,287,1069,1321,1225,29,427,2205,103,59,765,1315,2885,2885,3575,1541,3023,949,3149,2565,1061,1523,2491,2647,781,103,2357,643,181,1503,2209,757,1141,3527,1117,1019,1481,3247,3257,3075,289,575,1461,1199,353,2647,2179,3167,1173,1097,1093,2759,2395,2955,3203,2339,3193,2565,3193,1253,2875,3095,1155,3437,2241,3453,601,3157,3229,1205,2507,3183,2567,3185,1785,3075,943,2311,3025,2969,879,3207,2815,2567,1881,879,2715,2965,1235,289,2123,3507,1073,1851,3143,897,3241,1057,2651,349,1069,3155,2957,3001,2137,2375,1585,1449,2507,3025,3319,983,735,995,291,3367,2563,2717,3453,1953,993,3237,3507,3229,1483,1131,2985,3005,285,1495,3025,2651,1221,2175,2273,885,3519,3237,1955,1577,2569,2363,1939,1703,59,1219,1225,3087,2147,139,1687,799,3095,2269,2105,1213,3183,3237,951,2147,2295,97,1113,3097,2299,895,193,1677,1411,2845,2969,1483,1541,2319,1141,1263,3537,681,1253,519,103,2547,3239,2089,297,455,1411,169,2689,2845,3111,2569,1287,897,3227,679,2915,1495,2691,131,2851,2471,221,2845,1743,1201,1609,1483,2269,3367,133,1139,3333,3101,1483,661,2733,2691,3223,2591,509,3187,687,1523,1145,1379,3203,2269,1633,3407,2875,909,3241,1465,181,1865,2109,1497,2747,1495,2949,539,1483,2815,2899,3443,839,3049,35,737,2091,181,2885,2593,3183,181,2241,2839,885,2825,991,333,1187,1093,3051,589,281,627,2099,2407,1523,2557,2015,577,3237,397,2375,1297,2743,451,2119,411,1597,2825,3415,1483,2431,2045,2651,571,539,1067,3185,3001,3031,1633,1553,831,2733,827,2785,2733,2559,3393,2411,3227,1827,1805,837,1263,345,899,2917,1483,1551,1523,2989,107,27,3239,1235,2385,3115,3521,499,221,3339,3223,801,2407,3055,2979,2589,1181,1181,3091,3375,3487,1225,2629,323,739,1139,3429,3197,905,2971,967,2241,2589,987,2885,643,3519,2323,1803,801,1541,1139,3075,3099,1819,3129,1189,1483,509,2393,3253,1609,2547,1485,1505,877,3041,3035,2253,2241,315,3227,193,1377,2311,15,2255,2221,375,2071,1405,3189,927,2557,2115,1193,3443,1101,1117,1067,103,43,3521,3351,1141,907,2985,845,275,1651,3453,2869,3491,3005,1435,79,3025,3419,3425,15,3003,967,2979,3223,2869,223,2463,3005,1189,767,2317,3183,3165,547,1149,1465,3143,1595,2865,3203,2101,1635,1483,161,3015,1687,63,1103,639,3165,1023,429,1019,1929,363,1483,2747,1091,131,59,315,3155,509,43,3105,2191,3521,515,2325,89,499,2917,2715,93,831,3143,2985,3453,3127,737,3229,29,2865,1719,2531,1197,907,1141,2229,1181,3143,2981,1283,1743,3097,2507,2961,2211,1093,2357,3407,2791,1253,3029,2187,33,1705,907,2099,2759,735,1237,287,2635,131,1687,2641,907,1051,1079,1635,1001,1149,2299,823,1107,195,907,781,1803,15,3207,2635,1505,1187,345,1187,369,2149,329,3143,647,577,615,1505,3001,153,3051,1723,3175,1731,2187,2187,2961,3031,3239,2197,333,3167,3209,3153,1139,3529,3101,1763,1591,1277,3167,3147,2701,947,1103,3203,2557,265,1495,2505,3095,397,315,1883,2291,1747,1131,3237,3369,1067,257,153,2205,2985,1171,1345,1659,1679,3369,141,1145,1253,1837,131,2565,2641,1785,1523,1757,1785,2985,285,2289,1179,1131,3005,3087,1939,2825,1057,3239,2389,359,181,3553,601,3511,1145,2197,951,3051,1113,2563,1353,281,665,3163,3237,85,1187,3395,1155,2567,579,629,441,801,1763,3411,3409,3507,3145,2233,1005,885,2235,1619,923,1411,2413,729,503,3143,887,1187,927,961,2709,2963,3415,1915,597,1423,2715,481,3129,957,1847,839,1503,581,2185,1739,1193,1763,1239,3237,3411,3385,3347,3055,2851,79,1019,895,1047,1445,2971,187,1329,1597,465,1495,3189,2231,2587,2451,3097,1201,2255,1115,2675,407,673,1575,2215,1847,2733,529,2937,829,509,1483,205,3001,2039,1411,3457,1909,1085,3203,3001,1429,1783,55,379,799,949,133,805,1131,3185,1553,3159,3199,1245,1129,333,635,687,3425,3147,3491,3347,2189,3237,2301,1129,1915,1101,1239,2531,3237,3249,2089,1769,237,1585,1481,413,1141,485,2503,531,2185,643,1421,1541,1515,2363,3237,3185,599,2189,3183,1891,805,1163,3123,751,2413,3005,2641,1481,131,2563,2159,1891,3425,2753,2789,2789,2395,3185,1523,25,1019,2269,1483,951,3517,2675,3249,3125,265,2917,1249,2819,3231,1113,1163,2411,1677,1239,3521,1241,29,2691,1419,1123,2303,301,679,1337,1859,223,2775,3089,1221,1101,2187,1187,1685,3149,3015,3427,2865,1619,15,2049,231,2743,709,1123,2185,373,2709,3507,1961,2845,2549,1589,153,1481,1667,3045,251,1101,1707,847,1495,545,3369,3521,3313,777,3425,55,481,2279,3185,1575,3005,757,961,333,1221,689,359,3257,1047,3167,3129,3163,2825,3347,3229,3107,3167,1311,1093,1435,3257,323,403,403,2545,2965,1927,1769,1053,413,3269,3101,1197,3507,3243,2739,1297,2269,3311,333,1225,3107,3419,359,2045,2231,1311,2289,1427,3185,2375,2651,2211,2647,3185,725,1719,1079,1047,983,2231,375,2311,661,1483,55,1189,3091,1635,3091,3269,3437,1069,3197,2181,3427,2209,1165,831,1161,3453,3453,1351,1915,2413,3319,37,3425,883,3185,349,1145,3457,1449,2357,2375,3419,1811,247,1165,3183,1253,157,333,1263,635,2937,3185,3393,3143,247,2451,1623,2147,3387,991,3239,519,3385,755,2487,1541,2715,2295,1677,3175,93,947,915,1831,851,1155,2563,1315,2709,441,3443,2723,1365,2251,3091,647,247,1095,455,2441,3415,2205,1201,3529,2937,3001,1161,2981,1811,2175,2669,1237,3411,2525,2759,79,2715,2207,2957,2375,1635,1067,2667,3437,2175,1757,1201,2525,1731,2589,1541,1465,1171,1471,3425,599,2545,2449,909,737,1705,2691,1163,2743,3031,1353,2969,735,1635,225,257,1541,3189,451,3265,1719,3239,3425,3187,529,1131,2933,2733,2471,3031,2667,2659,2211,1551,3185,2017,1463,1481,757,1523,1533,3001,3021,2017,1729,3005,2329,3475,2623,3143,139,1541,1047,2185,1513,77,131,1067,1067,2549,247,2071,2269,1769,1221,193,1703,2449,2935,3487,131,1481,2303,2449,2549,1121,3013,1209,2565,3203,3371,1831,1101,1221,3149,665,2431,2855,3031,3393,1711,2981,1667,1173,1101,2733,3021,3175,131,1633,735,1483,483,383,545,575,1379,373,3005,287,1729,2207,2273,3407,209,3243,3005,1069,831,347,923,1803,181,1079,877,3163,1687,2927,1935,1603,3185,2393,3105,3419,1763,1171,693,3367,3575,3257,1523,2593,3443,131,2357,3239,1165,435,721,3185,1733,2261,3209,2927,1141,195,2593,163,735,3257,1481,735,2289,803,717,693,3419,2791,3239,1197,2189,1235,1419,317,105,1937,3185,3089,1793,3115,799,2279,1921,2821,123,3349,2939,1315,3169,2013,3025,877,2743,947,1113,2719,839,3163,515,2187,1199,1619,1731,1731,1165,1597,735,2017,1729,1187,803,159,1103,2677,3163,1915,1201,1499,181,1165,2779,1541,3553,2569,3197,545,363,205,1757,3147,1431,353,1183,2623,2305,1915,1635,3119,2569,1635,3451,209,369,1245,1213,721,3185,2413,213,2355,799,1427,2691,3237,3227,591,1541,3453,2715,2147,3359,1183,417,193,1341,491,2927,995,995,1795,1069,887,581,799,3097,1729,1703,1437,905,3385,2715,3239,3525,1481,1597,2969,1461,1143,1483,1481,3305,2163,3157,2897,2885,2095,3305,3385,949,3169,3085,1819,2311,2937,3419,631,2937,181,2507,1093,3097,3297,1483,3147,1101,3107,1067,97,2325,3025,2159,1513,3447,3185,3087,1635,1301,375,805,1811,991,309,1597,3369,2715,805,1053,3341,2229,2675,2143,931,1449,1125,373,3397,717,717,2407,2189,2647,1235,907,3147,85,3175,3521,1859,409,55,243,2777,993,3575,55,3393,2897,879,131,719,3453,2971,2943,3425,3443,1597,2943,957,2273,1411,3285,2667,1739,579,2187,237,2121,1495,2569,1575,2675,2187,3249,775,3091,1253,577,2111,933,1939,2357,3407,819,2101,2737,309,429,1023,3479,1785,157,2187,2565,133,1253,2647,2739,917,1811,1115,2985,719,3075,1793,3453,2979,3425,2421,1235,605,3395,2521,1723,131,993,3237,3001,2055,1873,219,193,2055,2189,1141,3507,1597,1263,3001,2985,213,2947,3423,3517,1401,455,2789,375,581,429,2279,3393,3351,2385,167,1139,2985,3457,1253,851,1145,515,329,2707,2427,3013,1105,2185,3453,2701,281,2955,1315,1301,907,823,737,455,237,3425,289,1461,3075,3357,3393,3237,947,887,3297,531,1131,2669,2735,909,2981,1667,677,45,2101,2971,17,1719,2101,1719,3157,3425,181,3203,2933,2333,1427,3149,289,2299,3409,2175,3425,2723,757,2591,1187,535,499,2739,2785,347,2715,1153,2635,1101,1515,271,267,269,265,2971,329,1197,689,899,799,679,907,689,125,2759,577,681,577,193,2917,3385,1623,2185,1803,2207,1165,3529,2669,741,3227,3447,2715,1131,2675,193,2979,1171,239,801,2767,315,801,757,2973,2985,3157,1771,2053,1679,2481,1719,241,2795,1277,65,3023,3041,2187,2695,229,3301,2523,1093,1935,3019,323,531,781,3197,33,2325,2371,1667,737,2295,2567,1019,139,519,1785,569,2269,2269,1383,3419,267,681,3231,1011,2791,917,3107,1463,1199,2189,2295,2927,3189,1511,1187,1235,569,3143,3185,3193,2185,3393,2981,3185,3173,2969,3429,3425,995,435,805,427,2147,1367,363,2889,2269,455,847,1361,2295,2295,3429,1721,1483,3447,2715,3429,905,1507,1073,1411,591,443,3209,3429,3185,2185,3507,267,1687,643,3199,275,2413,1035,2407,805,1421,3051,1165,3185,1707,1341,1677,1141,2711,993,1263,1483,3519,3545,3163,857,1481,2189,883,1483,177,2711,847,647,2675,365,1165,3029,103,3089,1205,2175,1541,3009,3577,597,427,2263,1827,3361,1607,3183,2523,3237,1077,1481,2025,3025,1703,1481,2953,2675,2621,2593,3185,1929,2651,1349,801,3189,571,2323,247,1165,2775,2249,151,2691,2933,673,2471,15,2187,3569,1371,759,3251,2937,3195,3419,2465,635,1113,3031,3319,2733,2743,3425,3185,799,687,799,1263,1155,265,2999,1669,2703,131,1541,1187,1389,1149,481,339,1437,3055,757,1605,3349,1019,1145,1885,3203,3021,2767,1449,3319,1387,1173,2205,1235,2119,735,2835,1535,1729,3507,3029,1069,1729,1193,3275,451,1483,2323,3451,3193,993,3025,3185,1613,3257,2323,1541,1903,3239,1985,3091,3185,1985,3185,2205,2989,377,3193,1731,2985,1811,1285,3545,2989,3143,2845,2781,2975,2709,3193,353,3445,1679,3247,1975,1747,3313,2917,1481,2295,1811,2563,131,3521,85,1153,1245,3013,1387,2031,1383,3115,3347,3163,1401,1117,2985,687,3153,2795,3227,1253,1481,2913,1481,339,1141,1071,3367,803,295,933,1235,1719,301,2735,1793,3055,1485,3149,2669,2569,3185,173,455,1057,2917,577,1145,851,991,181,3075,1551,219,219,3185,3095,3143,3313,993,3217,3529,781,1297,3237,2191,3395,1649,781,1093,2621,1197,931,2175,1533,571,2815,1173,1411,3185,3223,443,3147,1187,3119,2935,3003,1927,801,851,1165,1785,3453,1819,3003,2943,1483,219,1757,1165,1883,277,2919,3087,1975,1661,3563,1283,1271,1001,2999,1117,3239,2935,3451,1145,1201,3185,601,799,133,3455,3519,2589,2989,1881,1705,1181,3115,359,1961,2375,3425,2459,2525,2507,3239,2255,1201,3437,1597,997,163,3185,3559,3367,3239,2917,1881,933,1253,123,219,3437,679,2187,3169,1389,2403,1057,3115,3031,3101,1389,761,3029,181,1311,485,3087,67,2017,3527,125,2777,377,343,1909,931,775,3031,571,2933,1253,1389,3337,2431,681,1541,1719,3119,965,1719,1575,2647,3205,2211,931,465,1481,643,2211,153,2211,2985,427,3503,553,553,3001,1495,447,2521,3029,2569,2935,1161,329,1021,3227,1597,1421,3207,2557,1245,2187,1163,3267,847,2187,413,1473,1483,1533,1139,1659,407,1895,169,1483,1541,839,333,3101,3003,1067,135,3541,521,521,1123,2443,315,2775,3237,1993,3425,1551,757,1181,935,2979,1531,3101,2363,2757,2103,3041,2503,3425,2897,2839,2791,3189,3031,2103,3163,3163,1975,1011,1921,3195,739,1827,3169,2915,3251,2989,3443,3251,2565,1741,2985,1141,2753,757,3107,1881,441,1731,139,1165,1809,3239,689,3427,2355,3087,1619,1113,3117,1847,993,1149,635,1079,2851,2153,465,2985,2657,1729,3041,2971,2269,3379,2753,3051,1221,1237,1123,2775,1667,3145,1145,2579,1465,2917,315,221,1189,3229,1115,3349,2675,851,1851,2981,1011,665,343,2933,3393,957,311,349,3315,1113,1613,1511,1445,2891,1117,2971,45,2531,2689,1661,2735,3041,1207,23,2715,285,2935,2859,1141,323,315,3239,3003,3045,1049,527,3115,1851,1093,3145,2273,1173,2659,1263,1511,1235,1015,1671,1523,635,375,347,3009,2255,1707,2589,279,347,903,3237,3199,2589,1551,1445,2589,3393,2623,1117,1073,1117,689,1725,1719,1723,2487,3525,1253,1263,2861,1585,2933,359,3453,1523,1097,3393,3387,3075,3185,379,1881,187,2685,3187,1011,3125,1091,1669,1669,2289,1449,1009,3437,1763,2999,3407,2591,3575,3453,895,3097,3185,3425,3029,1197,219,1145,193,1503,3429,1141,2917,931,1241,1205,15,801,947,1059,3145,2407,3425,149,3183,2709,605,947,2555,3117,325,2529,2259,301,2651,429,1047,627,339,2937,2393,2591,215,1139,3275,2185,3149,801,3239,799,2159,3429,2737,3575,317,2289,3229,1019,1059,949,689,1169,3269,2837,495,2851,801,3575,1067,3257,181,3389,1257,2749,1253,801,1101,431,3221,421,2709,343,2211,215,3019,1667,225,2187,1161,131,1145,3423,3451,2289,3369,1139,143,3295,1483,1483,3257,2299,339,801,267,2745,2565,1003,2241,2185,181,1811,2837,373,465,3257,3429,323,375,131,1719,53,2785,1763,1525,779,339,2275,2795,799,1405,1163,1145,453,349,3241,3407,2273,3577,345,1387,1523,103,645,2973,2593,3507,1597,2749,1145,373,1507,2789,1399,295,1253,2845,1093,757,131,2715,2995,2961,1141,2291,1391,1067,2279,2691,215,3521,2275,2101,2049,2897,3163,2375,3119,465,605,345,499,1721,3099,681,157,3395,373,287,947,653,3533,567,1419,2767,3257,2299,3451,1541,329,3409,801,2531,2799,1361,13,2945,2269,2589,981,2505,2905,3369,1579,1225,1483,949,431,2375,3257,1253,1295,739,2185,1047,799,1595,1047,2885,1763,2785,1245,2189,3417,2261,885,2785,1435,1687,3195,1597,3253,1235,2101,1329,3029,139,1125,3457,2375,2457,2975,267,1329,2503,2089,1669,3075,3529,455,1329,3477,285,2651,359,2691,103,1275,1757,3425,2935,1763,1541,3555,1915,1541,2187,3257,1483,3185,2983,323,2379,2379,323,1953,3227,1141,181,749,1141,637,463,579,1183,3237,1019,3087,3239,2295,2581,65,879,1213,951,3125,2589,3227,2657,3175,231,3163,2589,3143,2605,1513,455,3239,181,2689,2211,3145,1463,1531,2781,643,3257,1143,2211,3265,89,1811,531,1241,1239,379,323,887,3011,3003,29,949,3241,1465,3031,2845,323,3049,2273,1003,2491,537,213,579,3147,3521,887,3209,285,947,1481,2709,1653,1653,847,2743,2069,1585,2191,499,2845,689,219,1187,3183,1139,537,1253,133,1463,3185,427,427,2159,1481,3285,2725,2159,463,1237,3087,737,465,3087,719,1129,3457,2325,725,1249,997,1503,3429,1731,3243,251,1703,3199,1743,2845,1387,2669,2985,1731,2375,3239,2221,1729,1235,2103,1199,2925,1141,1719,1161,3107,95,829,289,1483,1485,2273,669,3205,3269,323,3427,2325,1019,1619,1279,949,3257,1113,2101,265,681,285,2491,2565,2531,3049,3203,2565,345,3175,991,757,3175,3147,3551,2669,1201,679,3001,935,2759,2241,289,991,1721,3257,465,2207,1199,2503,1805,3253,2221,2095,3415,3425,427,3241,1793,2915,1169,2191,2675,2131,2785,1371,465,2691,379,1193,1161,43,1181,3175,3411,3175,1575,3309,93,1495,679,1091,1607,2933,3003,2809,181,3415,3451,107,1719,3033,2017,3233,1249,3023,1483,3345,1729,1915,3173,2969,2971,2163,3033,1483,3237,89,2503,3511,1485,2503,1253,1141,1193,2647,1909,43,375,2971,933,3031,2819,3107,535,3371,2737,2095,3029,3087,3001,2647,1357,3415,2969,1135,2421,2947,649,1091,1405,801,389,2999,2249,2239,1427,2943,3125,3209,2311,1005,429,3425,1225,2937,3143,3011,3185,1885,3415,389,3237,2563,617,3519,1253,3087,3247,1047,3089,545,2785,853,3183,1047,3189,3199,1485,1353,3003,2695,2981,3097,1169,967,581,1419,3447,1893,333,1161,131,3475,1541,1011,85,2743,349,1651,3001,2613,3223,2295,3199,2175,1113,2933,3187,3175,829,315,1009,169,455,3001,285,1123,1225,993,441,3429,2185,1387,2385,909,3209,3059,857,1067,483,2593,2311,575,2971,2279,3145,3145,1511,129,2623,169,3209,3253,1985,93,3207,1047,441,2197,2775,3239,1461,93,3243,1141,799,3001,251,1073,2471,125,2265,3241,2901,17,991,527,851,575,1131,2055,3199,3495,1541,1659,1661,1495,3025,3109,3407,2159,801,1959,2981,661,527,3269,3001,3197,2593,661,121,1069,759,757,3275,103,761,3005,2565,1743,3369,3369,3371,1113,803,2917,1787,2229,1515,1163,1757,1073,1047,3237,2185,679,33,2491,55,577,3097,577,131,3443,2059,2805,3183,2821,1149,3425,2845,3029,527,2795,3031,297,3251,933,1507,123,1145,1597,1139,3097,2589,649,2669,1067,3267,289,89,2375,687,2957,55,775,3243,3395,765,933,195,851,673,1101,643,2779,181,2207,1523,1575,2935,3367,1427,2695,1811,131,2885,3453,609,195,1235,2159,2989,2937,2159,515,741,291,1069,3275,1145,1145,1145,1145,1145,735,3031,1047,343,93,3193,1155,1209,181,2407,367,3209,3189,821,1401,3269,3409,3127,1241,1059,1763,69,851,139,3511,1011,3409,2557,869,131,681,427,381,2447,333,2323,327,1687,2069,2939,2103,803,3511,2191,1531,3189,1711,2969,2187,605,327,2989,1019,2457,917,1057,49,803,2235,1123,2105,3143,2651,2979,1769,1391,851,845,45,2449,2621,1585,3409,1113,285,3189,1533,1809,993,643,1197,1739,735,689,311,1047,1047,3239,3107,2065,135,311,3231,3183,3107,2431,3087,1483,1483,3249,661,1131,2487,1471,2171,1073,961,193,2411,2935,2669,25,3237,3015,1039,3153,3025,3163,741,131,349,1039,2753,1551,761,3453,2759,2981,3293,3185,635,3247,1221,3361,181,2775,3207,2759,3183,1891,2521,111,899,77,1785,823,707,2533,225,3425,3155,1161,3249,2629,2775,2937,3117,3425,3185,2359,2565,1067,1859,3179,1161,2693,3207,97,1067,1067,3175,141,3155,1495,2985,707,665,3295,3453,3207,3207,1199,407,527,1511,1365,3185,3175,1163,707,1927,441,2209,3107,187,1733,2629,1783,1503,2189,2189,2581,799,181,121,157,3187,2935,1091,735,2185,1685,97,33,37,801,2185,2317,2885,3185,181,2109,53,2295,3095,3257,2105,3239,343,1595,3183,1483,3075,1909,2981,2969,1215,1463,2181,3511,3563,3507,301,25,717,3239,1473,801,3345,1121,429,2669,135,131,3345,2459,1019,1483,1183,993,3285,903,333,1585,1785,1731,1661,45,3393,3451,1101,735,567,2825,153,643,2961,2935,1141,345,1531,153,1575,1163,1915,1633,2549,29,917,1915,3185,1353,2913,2901,2197,181,1305,1541,827,917,981,1383,1039,1393,3319,2821,1435,131,1093,2159,3167,2915,2777,2693,1361,661,47,1161,1783,1389,1365,25,1651,2263,2235,1303,1011,681,3005,1819,2711,1189,2105,2025,2661,295,1915,1667,2661,443,3005,1405,821,575,2167,2795,3541,2963,757,211,2089,2443,3091,2385,2185,499,2039,181,1667,3527,443,1389,1141,1427,3091,1719,1739,2039,1595,3553,1225,1551,3187,2943,1483,1483,3337,3455,1121,2543,345,3051,2927,631,1131,2103,1073,1705,317,1705,311,1235,1961,3185,3185,2393,1541,3125,617,2187,3521,1677,85,887,3319,1189,3237,2249,103,59,2885,3159,2229,3231,3425,1189,1785,2553,2503,2185,2503,1733,885,3183,875,875,2839,805,3105,3175,2815,2795,1793,1551,225,1481,2593,1597,1131,501,2029,1551,1237,3367,1235,3419,3541,3001,3425,2937,3147,3425,2927,151,1411,3091,875,687,1801,3433,2775,3247,3371,875,2957,1435,3237,2669,3349,981,1077,3369,301,1585,287,3425,2935,3095,3313,1763,951,2677,2675,1649,2651,679,251,1371,2767,1865,1445,1601,3183,3031,3147,2259,2181,363,2999,933,1187,1421,1719,3175,301,1483,3195,431,2279,2767,3237,1223,1225,519,645,1047,2569,2981,1225,2185,349,3247,1139,3267,749,887,1001,3407,2311,777,3025,1189,2099,827,3095,2559,2563,2233,441,605,181,601,2917,441,3427,63,2973,97,527,53,2825,1249,887,1221,947,443,3231,3247,1449,1235,799,1915,687,687,3053,1283,3145,2845,2169,123,1769,2629,3145,2185,3247,163,1541,3101,1057,1101,3169,1245,1387,689,1139,1785,353,97,2971,3407,3087,2715,345,2985,451,1649,1341,3145,219,2017,1021,571,2323,2825,3239,3011,1847,2635,765,2175,1541,47,1091,3183,1091,1719,3209,1465,3145,97,605,1541,2569,1183,1523,1209,1235,2781,2101,837,3025,2909,389,575,1091,3167,1483,1729,1073,2559,1155,3193,2939,3247,2119,1597,1541,3185,209,2503,1073,2587,2891,1785,1077,2807,175,2089,1121,805,965,193,1481,287,2099,499,1719,2709,2217,3423,1379,129,43,1719,3001,1349,2835,2861,2937,3005,2881,2861,1449,289,1883,1883,1481,629,1237,2207,181,2495,3351,2757,2207,1957,3185,1205,829,575,1163,1705,509,1163,3239,3031,3283,1677,1481,955,3119,2715,3395,3155,2859,2515,2981,2235,2935,3205,383,2289,2901,465,3429,2819,907,2515,201,799,2807,2715,2715,3507,991,2147,1019,3495,3443,181,1551,1975,2985,2061,577,1023,2777,2905,2777,2185,1141,343,55,1197,1311,1483,1237,2293,1411,907,2197,2185,3001,1163,2563,1165,13,1077,3351,3319,3167,3371,1141,267,3145,1165,2929,3147,1393,1183,2825,1827,3257,423,343,3189,3183,3185,3181,617,3419,611,1303,2233,3237,1299,3235,2191,2511,2991,995,2563,2915,1785,2911,3375,2451,2511,2513,2509,2991,2987,2185,1145,193,795,191,189,3241,3239,3237,3235,1743,819,367,367,3479,3473,2243,1241,2105,2097,2565,2565,2279,2285,2271,175,3175,451,449,631,625,2651,333,621,623,619,2279,2285,2271,1507,621,623,619,3231,1507,3143,3147,3141,173,2459,2455,2453,957,2589,1225,1231,853,855,849,3129,3139,2039,1169,3437,3433,1143,1189,781,931,1379,399,395,289,1531,1529,3507,3455,591,59,2913,2911,531,2933,2935,2931,3455,1207,1483,1481,1239,1233,2131,2127,799,3183,1139,799,3185,15,11,1823,2973,1223,1229,1223,1229,2891,3393,2883,3169,1783,1647,1695,3185,3183,3189,1073,3429,2975,2971,3347,1073,1065,725,1455,3257,3193,2045,3191,2153,2145,2055,2047,2229,2227,1071,927,333,2555,333,2555,3187,1009,3187,3197,3191,3187,3393,1759,1915,1755,1911,1223,1229,2189,2183,3177,2979,3015,3011,819,1223,1229,2991,1069,2593,637,2567,1145,1837,1155,1237,2563,1689,1073,1663,1615,1611,3521,2397,2391,3105,3103,3147,3141,803,2491,1813,2205,831,2709,3237,3453,3397,2205,831,825,3425,1615,1611,951,2205,831,1615,1611,1535,1533,1529,3185,1253,1251,1515,1453,853,1655,617,3237,3241,3235,3419,3415,2565,2565,2561,719,375,3237,3235,1393,1385,3237,3235,3265,3263,1069,2185,2973,1207,2647,2691,2687,867,867,875,873,3125,3135,3035,2707,3125,3129,3139,3135,2185,3361,3353,3129,3125,3139,3135,1139,2187,2835,2943,2941,2923,2969,1293,1289,511,1183,1175,983,979,3185,289,1043,2095,1037,1805,3171,3013,1209,2815,1505,1501,3013,1209,3175,2255,2261,2247,181,3229,3031,529,527,1495,1493,681,2937,1711,2355,2353,2355,531,1139,1139,2923,2969,3185,2563,2543,2561,2355,1455,617,3321,3317,1199,1197,1195,2181,2175,2173,363,2273,2281,2271,59,3377,1201,1195,1189,177,2363,2361,451,3525,449,789,787,1201,2449,2759,1623,1621,177,233,227,3521,3519,3285,3281,2565,2719,3375,3373,801,3005,3005,2891,267,677,263,2885,2883,1047,2825,2357,2211,829,993,3185,857,181,519,1541,1545,1543,3187,307,295,3377,293,2435,295,293,3183,1803,1711,1709,2357,739,307,1751,1745,3157,33,2205,1209,3433,2103,2099,2097,2961,2973,1161,1151,1189,1185,1147,3167,789,787,781,233,227,409,405,2357,2355,2923,767,169,581,749,83,3437,2189,2071,2067,3237,3241,3235,597,669,667,2947,2971,3185,3043,1293,1289,3189,1139,15,11,2973,1141,2185,799,725,3075,3089,3081,3067,1197,3193,1195,3191,2105,2097,529,2547,805,799,2747,1967,1965,3433,3233,1133,1127,1113,1365,3241,3235,481,479,3541,3539,3265,3263,2449,2937,397,3475,395,3473,319,1241,3123,3133,2207,3001,2515,301,293,1623,1621,233,321,227,3117,3041,2937,3453,347,317,2999,3095,1967,1973,1965,181,67,55,61,179,909,905,1885,1885,1883,3031,75,3087,1541,3443,2549,2295,3543,3539,2647,443,439,125,117,2647,2565,2239,1155,815,2105,2097,3185,2647,3187,345,2647,3419,589,2785,2783,997,827,1661,527,3453,193,2295,133,127,3389,2521,2517,3381,445,439,2935,581,3453,3579,3229,3157,2779,2781,111,3367,593,291,1019,1023,1021,131,127,2885,2883,2529,2527,3237,3235,3185,605,789,799,131,181,787,3577,3581,3575,3573,899,1341,893,1929,1925,2825,1885,3005,2289,3223,3219,3215,2899,2211,3229,2563,1269,1267,99,91,2071,2067,1111,1085,851,1021,1449,3009,851,687,3153,67,729,1773,1767,1155,719,1821,173,1139,1035,1029,1039,1037,1129,949,951,2299,2801,1181,1175,443,439,3185,2567,2561,3049,2549,2891,2883,1285,3423,823,983,979,1419,1417,3183,347,341,1359,1355,887,943,937,1483,3199,3191,2565,1733,1727,3457,3087,3229,29,27,21,1597,1793,1791,717,1623,1625,1621,627,2825,2829,625,267,263,345,349,341,3117,3115,887,883,3447,3189,2393,2391,489,1161,2989,2647,519,1609,2713,1181,3163,1175,3411,3405,247,3321,3361,245,3317,3353,2229,2227,1365,275,273,1929,1925,1953,1199,1197,1195,2973,1057,1059,1213,1211,337,2819,3407,3411,3405,3577,1011,367,2255,2247,1609,1235,2589,639,2819,2545,2885,2867,2863,2891,2883,181,1827,3025,139,2109,137,2107,2869,2863,3241,3235,2981,2977,465,461,687,2273,2281,2271,3085,2593,939,937,1349,1347,2971,2969,2973,1263,1261,3185,803,1503,1439,3545,3539,2231,3021,2227,1483,3221,3215,1123,1205,3203,2207,3001,2447,2073,2067,2673,2671,799,2985,1485,803,1743,2153,2145,97,91,3237,3239,2589,3235,2647,2185,2989,3041,2549,3075,3081,3067,3241,3235,577,319,1241,363,3425,3147,3141,1491,1489,1507,1483,1419,1417,2651,1163,3075,3081,3067,803,1131,1237,1241,3021,2029,1161,149,145,375,2777,2593,757,753,777,3125,3129,3139,3135,27,21,103,3239,3235,3045,133,127,1071,343,341,301,293,333,3429,173,1221,1227,3163,481,3541,479,3539,1491,1489,1507,2917,2911,1419,1417,233,227,409,405,3527,3525,3523,853,855,849,935,103,2789,2783,2593,2593,1711,1709,547,545,2733,2735,527,1253,1255,1251,417,415,3491,3489,3051,2089,2747,295,293,1059,1055,3187,2191,2185,2777,827,1505,1205,1189,2695,2687,297,301,293,1187,2241,749,3423,1337,1335,1245,1243,3529,3523,1237,2207,1881,1623,1621,3511,2965,2939,1637,2661,2653,1473,1541,1123,631,627,625,3517,111,115,109,2973,1237,1241,1823,213,1163,3357,3353,3179,3423,2487,2483,2265,1929,1925,3209,339,325,2205,1163,3147,3141,2407,2393,2391,2401,3433,2825,429,425,1153,1151,1141,1187,2937,3237,3241,3235,175,173,2427,2423,2775,2939,2115,2107,3145,3141,781,2747,535,2961,689,3029,317,2557,1285,577,3577,271,263,2815,103,3031,3175,1101,3167,3367,367,2231,2227,29,3149,3141,3227,1161,3091,3089,3351,447,439,801,135,127,801,3425,3527,3523,1743,1139,3187,3031,3115,215,2651,657,651,247,3321,3361,245,3317,3353,3411,3405,2015,2011,2841,2841,103,3275,3277,3273,3291,3289,1609,1585,1187,2937,2933,767,295,293,1391,951,1385,2667,3425,2651,2675,2671,2995,801,797,3249,3247,3245,2379,2373,1483,1969,1965,3267,3263,1171,895,893,1651,1653,85,81,593,2743,1011,1187,2985,2981,2507,2503,2207,1165,2311,1253,1251,2307,233,321,227,375,2449,103,3021,2375,2373,3221,3215,3163,2715,2735,2711,3157,725,173,1155,1185,521,3283,3281,2747,907,169,165,377,1991,1989,225,221,217,2449,1465,485,479,3223,359,3215,3315,237,3527,3523,2089,125,117,2659,2621,2617,2653,45,41,397,3475,395,3473,3241,3235,3357,3353,2191,459,3541,3539,2515,411,405,1205,345,341,2489,2483,993,3379,2265,3149,3145,3141,577,3031,1609,1585,103,2121,153,2117,1199,1197,1195,1497,1495,1493,1597,1511,1669,1667,1665,2211,3005,2737,2735,1429,3203,627,625,3475,3473,3571,3565,3011,2503,2229,2227,1213,1211,2869,2865,2863,3569,3565,2175,2173,2985,1445,1447,299,293,943,937,1511,2191,339,571,2767,3367,3475,285,3473,2937,2933,1145,187,1113,401,395,429,425,2809,1161,527,285,1181,3163,1175,1221,1227,2481,2479,767,3001,3239,1235,3235,689,2971,2975,1183,1175,1161,2825,3483,1535,1533,1529,181,905,3005,2675,2671,3001,1173,1765,1761,3175,1197,1195,1151,1185,1147,2199,2193,2231,2227,2101,2097,781,3443,15,11,2439,2437,3183,1263,1261,1953,285,2737,2503,3185,539,535,1207,3101,3093,1365,1163,375,531,527,1181,1183,1175,2489,2483,3283,3281,221,217,169,167,165,23,25,21,2393,2391,2723,2725,363,545,275,273,1427,1885,3185,1199,1195,2207,1719,1717,2973,1927,1925,2269,2267,1885,295,293,1523,1411,1465,1609,1381,95,91,3239,575,3235,153,145,3295,3425,2647,3233,1009,2261,1205,325,2251,2247,1483,2767,2937,1579,1575,1577,377,285,287,2329,3015,2593,2795,1113,3029,1483,1481,1633,3295,1991,1989,2747,2745,3147,3141,1461,1465,1637,1839,1843,717,715,2971,2975,3269,3263,3297,3247,3245,3065,3057,359,3385,3381,3065,3057,3005,943,937,661,2413,3257,1311,661,2413,3257,659,1743,2847,2845,295,3377,293,717,1881,661,2413,3257,659,717,715,1881,2255,1201,1195,2847,2647,3147,3141,3147,3141,2567,2571,1311,537,2223,1311,639,889,771,1685,1311,2549,639,71,1311,1209,891,887,1105,2395,2391,2923,2969,1863,1811,1861,2299,1507,3237,2589,3235,59,53,51,887,881,1553,1597,1561,2985,989,1187,1427,883,887,2791,2783,935,3055,3051,3047,177,2185,1145,1237,591,3521,441,439,771,3157,1165,2579,1141,3185,1141,289,1215,2825,1687,2325,2323,2321,1863,1811,1861,3247,3245,1689,839,833,2325,2321,247,245,3347,1215,1213,1211,247,245,3283,3281,915,911,1213,1215,1211,1687,1785,3443,1687,1785,895,899,893,3085,3089,1743,1731,2851,2379,2373,3193,3227,3191,3033,3031,1285,1265,1261,1953,3183,1729,1727,2565,935,931,929,1723,1719,1717,3435,3559,1237,3253,3245,1769,1767,1341,1531,1529,801,3033,3031,1731,1727,177,1507,631,625,2725,839,833,775,2147,2145,177,1069,359,355,1253,1251,3125,1069,1379,3177,1475,2041,731,799,1765,1761,627,625,3003,1523,2197,2193,1165,1205,339,2669,1707,2845,2191,905,3501,3497,2661,2653,1205,339,1503,1505,2261,601,1541,1547,627,625,827,1163,3199,3191,459,457,13,11,1483,233,227,1773,1767,3501,3497,485,479,2651,677,1197,1195,1535,1529,1535,1529,1927,1925,2985,643,635,1145,1143,735,735,735,777,1241,375,377,3419,781,1803,3427,799,781,2147,2145,781,1277,1273,1101,1277,1273,831,567,2147,2145,1285,2209,3065,3057,1365,2851,49,2901,41,379,371,1145,535,991,991,3309,3577,549,601,549,1483,2357,2357,413,405,771,767,763,2245,2241,3185,1145,1287,2207,493,373,2947,2941,1145,529,3049,1077,1079,1075,1083,2913,2911,1253,1251,1481,3257,1523,1551,1559,3319,3317,839,833,409,413,405,799,379,2291,601,2507,1765,1761,1541,3437,2041,157,159,1187,1187,2059,95,91,1483,1479,2507,157,159,155,289,287,1207,917,911,879,873,545,409,405,1393,1385,1353,1347,679,719,3425,2601,2597,2595,2301,3097,3093,267,2491,263,2483,443,447,439,1311,1187,947,443,439,947,1277,1273,679,1141,2777,1207,639,1637,3319,3317,3253,3245,501,497,3025,3111,3103,1317,1311,1411,1409,2205,267,2491,263,2483,409,405,915,911,1161,501,497,1481,2781,757,753,2171,2165,289,287,2185,409,405,3517,839,833,2919,2911,99,187,91,2181,2173,1145,683,345,341,2259,1643,1641,3147,2503,3141,649,3507,1161,1141,99,187,91,2181,2173,3149,1237,1131,1135,2555,1163,677,645,3425,657,651,2855,2853,2975,915,911,801,2101,2555,1161,857,509,3345,1277,1273,409,413,405,397,403,395,289,2855,3479,2853,3473,1597,1225,1481,2095,2093,2507,2125,2117,1345,1181,311,1175,917,911,2235,2227,1253,1251,1077,1079,1075,3351,3345,3507,1495,1493,1237,2105,2103,2097,1551,1559,947,1181,311,1175,947,1161,1161,2749,2831,1135,1141,1161,3185,1161,3425,285,3555,3549,1783,1729,1727,1481,3451,1483,3125,3135,2301,75,887,1155,2971,2967,1661,1523,1197,1205,1195,1329,1325,3029,1523,3427,627,625,3453,373,1973,1965,1187,2289,2521,2517,3185,3455,3457,1751,1785,1483,1197,1205,1195,1445,1445,1245,1243,1343,3153,2901,3021,1793,1791,1383,1187,1523,1019,2565,2561,1311,1197,1205,1195,843,841,181,103,1765,1761,345,341,1435,3221,3215,3221,3215,1743,1311,3119,1245,1249,1243,2259,1597,193,1723,1717,345,341,1421,1417,1455,1467,1275,1273,1743,627,625,3087,3087,1287,2971,2967,3185,3119,2955,3157,2951,2555,2559,1445,1803,1597,2125,2121,2117,2565,2561,1141,2249,2247,1169,1171,2219,1181,311,1175,2301,3011,3185,2235,1253,1251,2227,741,1249,1243,2825,627,625,1237,531,3029,1661,3119,3119,1607,1483,315,2329,3015,2301,99,91,2519,2517,3265,3263,1225,1231,95,91,899,895,893,2971,3265,3263,2943,3065,3057,819,819,99,91,455,449,3185,3065,3057,2095,1241,2753,3163,851,2175,2173,689,2059,799,887,509,1221,1227,887,133,127,1079,1081,105,103,1851,343,2561,341,751,1221,1227,3183,3279,3273,1169,1293,1289,1169,1167,1383,1073,2989,2295,735,949,2241,3305,229,227,3299,1383,759,753,1073,3241,3235,949,1389,947,1385,1113,531,1389,947,1385,1495,1493,1495,1493,2683,643,1221,1227,1253,1251,2289,2981,2103,2097,2295,2017,2011,3189,1315,2197,3147,3145,3141,141,1883,2295,2017,2011,2563,3117,2211,1893,1889,2431,3541,465,461,3539,2559,2973,1113,75,73,2565,2981,2915,2911,1077,1079,1081,3029,2915,2911,107,3541,465,461,3539,3507,3029,531,2503,285,1661,1657,1827,1815,531,1139,345,341,181,2605,1607,2603,195,179,931,1379,139,195,3371,3367,2199,1269,1267,2193,1595,3231,1601,2985,913,911,2961,2959,3031,1187,531,1187,2935,3157,33,31,2269,2267,3429,1689,3195,3191,2939,2521,2517,1139,2311,2307,1617,1611,347,341,1245,1247,1243,3031,3087,2677,2671,1199,1195,2311,2307,2971,1391,1389,1385,1139,689,2265,2985,2451,299,29,993,21,293,2939,3143,2937,3141,689,2821,1483,3393,3355,993,25,21,995,1483,3127,3137,3129,3125,3139,3135,3145,3129,3139,3141,2531,2527,579,3349,3359,3353,2049,2047,3123,2821,2241,3123,3133,3425,2569,247,245,2645,1677,2775,1481,2531,2527,1059,2821,3563,3557,501,497,757,753,3247,3245,247,245,443,439,2645,3247,3245,3015,3147,3141,1483,1253,1251,2487,2991,2483,593,373,1221,1227,1199,1195,2249,2247,43,41,949,3145,3129,3139,3141,2651,1483,299,293,2211,1427,1483,3143,3141,3147,3141,3247,3245,2651,1795,887,1047,1531,1751,1529,1743,2385,2273,2281,2271,2383,2291,2291,2287,721,1465,649,647,3001,3095,3479,1113,3473,2451,225,2549,253,2451,217,249,225,2549,253,2451,217,249,225,2549,253,2451,225,2549,253,2451,217,15,3187,11,519,3229,271,265,269,267,263,1139,3231,3225,2623,2617,739,2583,921,923,1253,1251,53,731,727,723,2427,2423,1483,2565,2593,3507,3187,1483,1253,2293,2579,139,3087,1153,2989,2041,2667,2669,1139,2935,3239,3235,2667,605,603,2413,2409,451,449,1343,1339,907,1237,899,893,1543,915,911,2759,549,543,541,1341,3429,3427,1179,1175,3385,2521,2517,3381,59,51,617,1313,1311,2723,2729,2721,345,341,2567,3229,2273,2281,2271,2161,2155,3175,3029,1011,1009,1007,2651,2645,2735,347,341,1455,601,1145,1137,1515,1053,1047,1759,1755,3091,3239,3243,3235,1677,349,341,853,855,3101,2657,3093,3169,3519,1019,855,1017,1139,1137,597,635,491,679,2825,2827,2823,1769,1767,1059,1483,2849,2847,3011,3347,3351,2991,1021,3179,1609,3129,9,1649,1653,1647,2015,2011,1135,3189,2985,1265,1261,367,1533,1529,2881,2873,3193,3191,757,753,2103,133,127,2097,2251,2247,2251,2247,1189,853,193,2171,2165,795,2103,791,2097,59,51,673,667,771,687,1081,991,989,2821,2813,1001,1329,999,1325,2637,2633,2189,1047,3429,3521,3197,2547,3191,2969,3237,3235,2969,309,311,303,1811,1859,3107,435,1253,1251,3103,2985,423,415,639,2393,2391,2947,2941,1061,1061,1053,2017,2011,2969,3239,843,841,3129,3121,3139,3131,1263,1261,1609,689,685,851,2947,1703,2941,523,2189,333,2969,843,841,805,1179,1175,1053,1047,347,341,2559,1811,1859,1807,1855,2881,2791,2873,803,1783,1801,3185,523,2727,2015,2017,2013,2011,1483,101,65,3247,3265,3267,3245,3263,2901,915,967,1077,2187,2947,2941,2221,2217,2213,2975,689,15,11,2569,1247,1243,2083,2947,1765,1761,2941,1881,1855,1879,1783,1793,1791,1801,1803,1541,1543,2323,2321,3233,579,3447,2565,3443,2807,315,2981,345,341,3185,2187,3429,2147,2145,3519,447,439,917,909,915,911,2031,3521,447,439,2935,3089,1061,895,1023,1,1315,9,3,7,5,1847,2995,815,2075,2067,3185,3025,1009,2549,1073,1065,1771,1767,509,527,3125,3135,2295,1271,1267,2291,1239,3561,3557,2999,831,991,3279,3273,2891,2883,683,2169,2165,2059,131,127,157,799,3157,1019,1021,3277,3319,3351,3273,3317,1019,1021,1129,1131,1067,1017,1127,987,979,2729,1221,1227,3221,3215,801,515,3443,2899,1269,1271,1267,909,901,1271,815,1267,3573,193,1575,631,625,1927,1925,2891,2719,2651,3001,2999,1131,2187,719,717,689,943,937,3347,605,2985,603,2981,3183,1525,1527,1521,1519,3521,1759,1755,1735,1727,3427,3167,1145,2985,2197,3443,1269,1635,857,1571,1267,2589,3115,3275,3277,3273,3291,3289,3021,1309,987,979,1117,1361,1359,1355,1087,2565,2753,2797,2999,689,25,21,3099,3101,3093,3075,3081,3067,2901,915,967,2909,3149,3145,3175,3141,1449,3189,19,11,2141,2135,2547,2825,1053,1051,1049,1045,3065,3057,683,347,341,675,2901,2893,977,975,973,969,3287,3281,3229,607,577,1731,1727,2031,3013,19,17,15,11,865,1035,1383,3127,3129,689,3139,3137,515,3025,131,127,3259,1113,3255,1891,1889,1077,1081,3049,1365,681,771,1141,1193,3361,1137,1953,1951,1797,1791,3213,3211,1011,3247,3265,3267,3245,3263,1577,1271,1269,1267,2169,2165,2837,1677,857,849,2003,2005,687,2001,349,341,2521,2517,1479,1485,1487,1813,1865,1807,1857,1823,1861,3541,3539,1021,1019,1353,1347,3021,3001,1445,2159,59,187,2155,3393,3351,1505,1435,59,1759,1755,1523,1607,2695,2687,799,195,997,1043,1037,877,873,435,3257,2643,2639,855,1155,3229,3145,3141,909,909,907,101,65,991,993,2711,2705,427,425,3185,19,15,11,1149,2209,2849,2847,2851,527,2999,3143,2917,2911,1483,1487,2985,2743,3577,2273,2281,2271,319,2971,2969,705,703,3311,3127,689,3129,3139,3137,639,2189,575,2251,2255,2247,1651,1661,1785,883,1051,885,637,2291,1447,1445,1443,1507,2709,3311,1093,1471,1433,2491,2483,1145,1137,3545,3539,2965,2937,779,1197,3193,1195,3191,1071,2991,1065,2187,2579,2933,2937,2601,2595,297,293,717,2901,1483,2217,27,21,1189,3319,1139,3317,3213,1893,589,1889,3243,3235,2789,2783,1421,1417,2487,2483,2985,2887,2883,1073,13,11,3447,3389,2797,3381,895,1323,1319,3507,3507,3385,3381,2515,575,577,2565,1041,689,1037,1427,1531,1529,9,3,7,5,1,213,215,2221,3015,3503,2881,3015,663,2873,3497,2973,2945,2941,481,2183,479,2487,1187,605,2777,603,2483,907,2189,2189,2753,527,527,3261,2901,3175,3519,445,447,439,133,2845,127,481,479,435,389,385,1019,3127,3129,689,3139,3137,2189,3393,761,753,1507,2999,2099,2097,2485,2483,1415,1407,3319,3317,2259,3209,913,915,911,2025,3319,2565,3317,2471,3475,3473,1915,1911,967,1639,1633,1631,3143,3141,581,2299,1253,1251,2739,289,2891,179,613,1441,3021,1235,2743,345,341,2775,29,23,21,1225,1231,527,1271,1267,3217,3215,3237,3235,2935,1827,2503,3239,3235,3393,1413,1415,1409,1407,1193,1057,995,605,3345,603,3447,275,273,2909,1993,2351,1989,2345,1131,961,3087,3239,3235,3199,3191,3275,3277,3273,3291,3289,3169,2009,2965,1743,1067,3269,3263,401,395,1113,1093,1093,3247,3099,1019,3245,2983,1023,1021,3175,1017,1145,1389,1385,3435,407,357,2933,2935,2487,2483,3089,3087,1101,677,3347,3143,1915,1911,3141,3101,3093,1505,3239,3235,2459,2455,2453,349,341,1275,1273,2229,1183,2227,3145,3141,531,2503,285,529,2081,115,109,225,2703,2191,217,2697,1481,3213,3211,3351,271,263,2939,1753,1745,3203,2085,2081,2077,195,1387,1385,2979,3239,3235,1193,1585,1583,1349,1347,3311,2235,1069,907,2775,3163,1021,3025,3021,1069,2487,3,2483,3071,3077,3067,2221,2217,2213,2471,3223,3215,2675,2671,883,1051,885,3029,3185,15,11,2711,1649,1653,1647,271,263,983,979,1315,1311,2715,515,507,2457,2453,329,2395,2391,2669,2901,907,909,1145,125,2053,2047,2975,2971,2999,2207,2241,2565,851,3521,1193,1447,1597,2957,2951,2897,2647,349,341,1009,2711,2705,1157,1155,1623,1621,987,1027,979,1025,2709,2249,2247,1915,1911,1023,3513,2441,2437,703,705,709,707,855,1809,1811,585,583,17,15,19,11,2221,2831,131,127,43,41,43,41,1495,1493,3563,2695,2687,3557,3399,3395,3453,3391,1785,2665,2663,2667,2737,575,581,2191,1179,1175,359,1179,547,1183,1175,1277,855,851,1275,1273,2735,2507,221,217,237,1155,13,11,3021,2125,2121,2117,1585,1583,815,809,813,907,1153,3025,1183,1175,1073,1069,1113,967,2015,2011,3005,3319,3317,295,293,3091,2569,2157,2155,555,561,557,1649,1647,1651,1661,1067,1459,1457,649,815,809,813,2749,3177,125,117,3209,2443,2437,1179,1175,1731,1727,3021,1077,1081,1663,2323,2321,3581,389,385,3467,3465,2095,1447,1445,1443,3021,1145,1137,3455,305,3389,3381,1389,1385,3561,3557,3025,2651,1009,803,1783,1801,1803,1511,2229,2231,2227,2985,375,3087,2579,2739,289,527,2733,1027,1785,987,979,1025,3117,691,2971,3571,3569,3565,741,179,349,341,1275,1273,1117,3295,407,405,465,3279,1019,461,3273,527,1253,3239,3235,2881,1405,1403,2873,261,339,1179,1175,3179,2985,2187,1009,1495,1493,3091,2569,571,1117,3193,3191,2181,2173,1259,1251,2249,2247,3115,1915,1603,1593,2651,3147,3141,3209,3205,515,3371,531,2009,2001,3443,3507,1197,1195,1953,1951,3259,1113,3261,3255,3031,2187,689,3311,3189,2565,1179,2231,349,1175,2227,3249,3245,17,15,19,11,3223,3221,3215,1253,3105,1251,3103,1365,923,3241,3235,2085,2081,2077,545,809,3045,1035,1033,1029,673,667,539,535,3045,2443,2437,2105,2097,2103,2097,3199,3195,3191,3561,3557,1927,1925,575,1429,995,2715,1131,2007,1135,2001,2961,2393,2391,1015,1021,2991,3145,3175,683,3071,2101,2097,3077,3067,3447,363,1141,1193,3361,1137,1197,1195,1009,2777,2773,295,293,3119,1699,205,271,199,263,2777,1603,1593,1113,181,2061,95,3233,1915,1911,3193,3191,1069,3211,1705,1695,1785,1053,3393,1481,1551,1559,3029,981,983,979,1837,3025,43,41,1789,3145,3141,1483,1595,1575,2157,1783,527,325,2137,2135,2103,2097,3011,1131,1697,2985,2981,681,1349,1347,3143,3147,3141,285,291,3209,2333,2335,2327,591,1409,1413,2715,3025,43,41,1177,1253,1179,1175,1251,435,1093,1097,1131,3475,3473,1915,1911,3025,43,41,3275,201,199,3351,1481,289,277,273,1483,3185,1639,1633,1631,1837,1843,1835,3275,3293,225,3273,2677,2671,2983,3337,3329,3327,1165,3145,3275,1915,1911,3273,3455,1427,1915,1911,1843,1431,1633,1639,1631,2933,961,1111,3199,3191,2273,2281,2271,2647,1921,1919,1163,1833,1111,3041,3199,3191,1833,2855,2853,2855,2853,669,2875,667,2873,1293,1289,3253,3245,1213,1211,2115,2107,3265,3263,455,413,405,449,1067,1111,3247,3245,687,961,1397,1395,455,449,2933,2831,2845,2933,1623,1621,961,2319,2315,2371,2563,1541,905,961,2729,961,2845,3229,961,3193,3191,1123,1093,2179,2173,3241,3235,991,3247,3245,1623,1621,2305,1245,1249,1243,2297,3241,3235,2265,961,397,417,395,415,2933,3247,3245,2305,1245,1249,1243,1353,1347,2179,2173,3247,3245,3247,3245,3125,3135,2861,2853,2845,2845,2855,2853,1619,1643,1641,1113,3185,1091,3247,3245,1613,1611,1613,1611,2849,3125,3135,2849,2819,2555,2175,2173,1597,1365,3129,1241,3139,3283,3281,2933,3091,857,3239,3503,3235,3497,2975,951,2103,2097,3183,577,551,573,2211,2673,2211,3407,3405,3507,535,2197,2193,2991,2507,1379,295,299,293,2185,3193,3191,1915,1911,1785,1145,1149,3427,3427,3425,77,3119,3185,2253,2247,1703,765,1265,1261,2379,1329,1325,2373,2875,669,667,2877,2873,751,745,743,111,767,111,109,2739,1285,1087,2075,2105,2069,2097,3577,1329,1325,131,127,1207,577,1429,1209,1141,1365,579,343,341,1209,3049,1165,2733,1483,55,2971,765,3491,3489,2163,2155,2043,75,2041,2743,1401,1395,2295,2737,3427,3423,2885,2883,831,2147,2145,589,913,911,1881,2723,2105,2097,1215,1211,2513,3157,789,787,45,41,1597,2279,2285,2271,1803,1805,1315,1313,895,893,3107,3103,725,53,579,343,341,315,1541,3453,801,799,1073,3425,417,415,1415,1579,1579,1595,45,41,519,2059,1763,1765,1761,3049,627,2825,625,1141,1021,1607,441,439,347,341,1465,823,3199,3191,1059,665,3385,3381,799,943,937,3163,681,679,681,679,949,265,263,3153,3193,3191,725,895,893,3247,3245,605,603,3029,1323,1319,2513,2581,689,173,589,1047,3125,689,3135,1359,1355,509,515,1269,535,1277,1273,1001,1851,27,21,3055,3001,3249,1091,3245,89,81,2167,799,2165,55,103,3185,3195,3191,993,25,21,3087,417,415,251,2249,2247,877,873,19,11,123,781,117,775,577,745,751,2311,1253,1251,2307,3221,3215,1263,1261,2989,1155,577,1659,1667,1665,1437,1247,1243,333,3143,2507,2249,1201,1195,2247,3393,1523,1523,1525,2179,193,2173,333,1081,193,2563,3119,967,1215,1211,3177,1893,1889,581,3239,3235,193,3125,689,3129,3139,3135,2299,1247,1243,2691,2675,2671,2687,2099,2101,2097,2265,3419,2917,2919,2911,1237,1627,1625,1621,3419,333,1337,357,2513,631,625,519,2733,2735,27,21,213,211,375,2837,123,85,81,117,3001,1285,3423,681,3185,2565,3423,3185,2069,2067,1145,3501,665,3497,2185,2463,2465,2461,1237,1881,75,1883,1353,1347,1311,2743,1401,1395,1883,1165,665,1201,1199,1197,1195,2249,2247,839,833,3239,3235,689,3125,3135,2089,121,905,2847,1473,751,745,3123,3133,2207,3293,1161,1401,1395,25,21,2549,679,1117,1851,2851,333,3199,3191,1091,1121,131,127,1497,1493,967,2965,605,603,3475,3473,1059,97,195,2177,91,2173,97,91,3237,3235,581,1685,1793,2973,1791,1193,2403,1993,1989,2401,689,15,3175,11,875,873,1287,3529,3523,3237,3235,1101,689,3163,3145,3141,95,91,801,1139,441,439,1703,295,299,293,647,2885,2883,3195,3191,775,3433,1189,1201,1195,781,1041,1037,839,833,401,395,431,425,1163,1285,2147,1465,1171,3051,1107,1471,653,651,2919,2911,3101,3093,1141,2981,1139,1365,3203,2719,2713,333,3221,3215,1277,1273,2675,2671,2675,2671,2563,1731,1727,2717,507,2955,2951,333,2845,2843,2743,2311,2235,2227,2307,3435,1483,2089,85,81,2443,2439,2471,2437,3301,3299,665,2785,2783,2971,2973,3415,3119,851,3407,3405,15,11,887,3143,3001,1285,2785,3407,2783,3247,3245,2949,2941,3031,1553,1561,985,1439,295,299,293,2515,2089,121,117,323,1597,1601,1595,2017,2279,2011,2207,3293,1161,1703,1785,3479,2855,2853,3473,2621,2617,2587,1589,343,341,1669,1665,153,145,1205,2191,247,245,2589,3425,577,3375,1283,3223,3215,589,1893,1889,327,3427,3507,3423,2981,1141,967,2219,1197,1195,2249,2247,577,2515,1803,485,479,3145,3141,2717,3341,3335,2205,2215,1503,2935,3491,3489,2235,2227,3341,3335,3091,2503,289,2503,725,53,757,753,2175,2173,1365,2865,2863,2859,629,625,2853,735,741,2229,2311,2227,2307,1785,673,667,673,667,3571,673,495,3565,577,2555,679,1117,679,2733,567,571,2969,1801,765,767,1101,2733,515,509,3175,3453,1161,45,41,3239,3235,2215,1145,2235,43,2231,2227,1323,1319,3185,2845,2099,131,127,2097,131,127,589,1173,3177,3223,3215,3105,181,1253,3103,2733,1431,1237,1087,535,2333,2207,3119,3001,1429,2983,1021,15,11,3129,3125,3139,3135,547,1009,2403,2401,1197,1195,1465,1379,1595,3143,3141,2733,2933,2937,1087,1113,1579,1579,2415,2413,2409,1483,1531,1529,2333,285,3119,3143,3141,1465,1461,55,2919,2911,2565,2561,2355,2445,3483,3483,2559,2551,3189,1661,1309,2231,1307,2227,3453,3483,1067,1067,1399,1395,3189,1067,3087,1399,1395,2579,1679,489,673,667,2579,3189,3427,3437,631,625,3393,907,3203,377,375,371,1169,3009,775,781,2049,2047,103,3361,3353,139,2695,2687,2319,2315,1541,801,501,497,2991,3061,3097,3057,3093,3031,1847,2991,1387,1385,2985,2905,3249,2917,2919,3253,2911,3245,1689,2917,2919,2911,2675,2671,683,683,3175,2259,2905,895,893,895,893,2187,1721,1717,1721,1719,1717,3193,3191,1133,327,511,519,2725,507,247,3321,3317,2791,2783,2725,805,799,797,923,1253,1251,3169,2909,3159,1005,111,109,999,845,841,2569,2561,2759,113,2725,2835,2833,3147,2759,3141,133,127,3183,1361,1357,1355,1155,1149,815,2989,677,1079,1381,3269,3263,1155,1149,815,2989,59,711,703,1495,1493,1093,581,2777,3147,3149,3141,2061,1245,1243,2185,1145,1821,777,3029,1523,767,591,2305,1245,1243,1387,1385,3533,3531,1093,2187,2241,3031,1279,1273,2535,347,3347,2527,115,111,109,3185,1171,2755,3301,3485,3299,113,109,2985,1105,759,761,753,601,3117,3491,125,117,1329,1325,589,45,41,2535,2527,2955,2951,2159,975,2727,2155,45,3239,41,2971,45,3239,41,1171,1495,1493,677,661,3271,3263,1171,2565,767,1131,131,127,1613,1611,681,317,1977,2397,1971,1967,1965,615,617,2789,1823,1817,2211,1165,2719,1191,1223,1229,1981,1979,267,263,1013,1011,3005,737,1143,2641,2639,2393,2391,761,2071,753,2925,1047,3487,3481,801,797,1655,531,2357,805,3233,1205,3143,3141,983,1189,977,2945,2941,3437,2025,645,1141,1329,1001,999,1325,3433,3169,1197,1195,3265,3263,1749,1745,795,2075,2105,791,2097,349,341,3257,1253,1251,3487,3481,1941,1949,3145,3141,1811,1829,3045,765,771,133,127,3237,3235,2889,2883,781,2915,3247,2911,3245,745,751,2973,3239,3241,3235,951,645,53,187,1887,3441,3507,3389,3381,509,1885,1823,3249,3245,2839,2999,3095,3087,3093,3423,3185,693,691,1705,1785,2191,2187,131,127,2549,2241,693,1019,3089,3091,725,3419,1763,1761,75,1805,805,799,1541,3519,3519,2567,2325,2321,2507,2503,3159,1667,1665,1191,909,2647,3051,2937,2939,3521,447,439,1237,2507,2503,2143,2135,2357,2355,3163,627,625,1173,2593,1139,823,3011,1077,1129,1249,1243,1183,3019,1175,895,645,893,1805,1449,1443,1165,1165,3183,3181,1891,1893,1889,3423,3409,3405,1145,3001,1039,1037,943,937,1265,3115,1261,3119,1361,1069,1355,3145,3141,1773,1767,1523,2071,2067,689,3125,3135,3229,3143,3141,267,263,2549,3005,3199,3191,2563,1141,2775,949,2895,2299,3521,2661,2653,2939,1047,2895,1585,3125,3135,2339,2343,2337,1183,1175,1613,1611,2153,2145,3001,2521,2525,2517,1485,333,2555,3035,3031,1677,805,2711,2973,1805,2937,1311,435,1421,465,461,435,465,461,2819,2789,2783,1901,1899,3049,1827,3237,3235,1811,1991,1989,2171,133,127,2165,1865,2695,1861,2687,1249,1243,2549,3425,991,577,3487,687,2137,2135,2867,2863,1671,3001,1743,2917,2911,2969,2971,3237,3143,3141,2973,2985,19,11,3143,3141,3237,3235,2647,3237,3235,2901,1483,2999,1241,2293,3491,2629,3489,2191,2999,3507,631,627,625,301,293,1597,17,13,689,11,693,691,693,1585,1739,451,449,2169,2069,193,2067,2165,1235,1241,2157,2155,213,1541,2917,2911,151,145,3025,2593,2587,2189,1117,801,737,2963,2963,2411,2409,2733,761,753,761,753,1187,2791,2783,1881,1885,2299,1245,1205,1125,1209,2211,1199,1195,589,3051,1069,2919,2897,931,2911,1419,1421,1417,131,127,3199,3191,3447,369,435,1849,801,797,1205,1623,1621,1985,25,21,1999,1997,1427,1123,1401,1395,3193,3191,3125,3127,3137,3135,1241,1483,1481,591,2999,1081,1079,3209,285,2547,2815,535,3153,3167,2971,1829,2427,435,2423,1153,2841,3237,3087,3083,3239,3237,3235,2933,2937,577,2775,2385,2383,1707,531,2407,1869,1867,2401,2255,2247,1117,2961,2205,431,425,1747,1745,801,1191,657,651,3183,2071,3433,1703,1101,1739,1743,29,21,3147,3141,3209,3101,3093,1193,2939,1705,3249,3247,3245,3419,2279,2285,2271,2775,2565,3031,2885,679,2889,2883,1497,1493,1687,2325,2321,2651,2115,2107,2935,2901,465,461,1067,47,41,1187,97,91,3091,2841,3237,3235,951,947,373,3533,3163,2101,2097,2979,3247,3245,3205,2375,2373,2395,2391,349,341,1551,1559,1707,2039,47,41,3269,3263,1655,895,893,1389,1385,2249,2549,2247,1151,2465,2461,3411,3409,3405,3247,3245,1193,2709,2375,2373,1769,1773,1719,1717,1767,3209,3055,1139,2675,2671,1909,1905,2999,2759,2049,2047,1435,1851,147,145,15,11,2101,2097,2137,2135,3185,2119,2125,2117,3239,3241,3235,1461,3095,3093,1669,1673,1665,3253,3245,3189,3379,1297,1289,3223,3215,1883,1481,575,951,3563,3557,3149,3141,1199,1197,1195,3479,2855,2853,3473,295,293,3319,3317,997,1831,1869,1867,1447,1783,3399,1069,1069,45,41,1869,1867,2215,1655,1649,2129,2127,909,2973,2229,1183,1175,2227,2889,679,2883,3369,1747,1745,2999,2999,1785,1511,1515,1495,1493,1079,951,571,3423,3091,3189,1079,2985,1389,1385,2339,2343,2337,2985,3145,3141,285,1183,1175,1707,737,741,3005,3147,1197,3185,1113,1179,1175,801,737,2565,131,127,2503,2691,2687,2215,1499,1493,1091,3101,2269,2267,3093,3045,1909,1905,629,625,3187,3185,225,217,15,11,1901,1927,1925,1783,1781,2799,597,363,1197,1195,441,439,3237,3235,2137,2135,2375,2373,2393,2391,1823,721,3149,3145,3141,2723,3209,2207,219,217,1909,1905,3257,3203,1739,129,1783,1781,2547,3051,3055,1883,643,1555,1563,3253,3245,1431,3145,3141,2623,2617,1541,1181,1175,1901,1899,2329,1431,1429,3005,2211,3209,2623,2617,3029,1117,1113,1097,2299,1733,1727,1481,1483,1613,1497,1493,1611,3147,3143,3141,3451,435,2587,1431,1429,3519,3513,1187,1253,1251,1253,1251,1335,3267,3263,3521,1655,3517,489,2703,3117,2697,799,103,181,3521,3021,3041,1721,1717,2647,2729,99,91,1141,909,901,1967,1965,3105,3103,3229,1941,3477,1883,3473,981,979,1613,1611,2703,3117,2697,1853,1759,1755,451,449,2211,2587,285,221,217,3129,3139,3521,1885,1883,3185,805,3521,1481,3105,3103,183,2393,2391,1819,1915,1911,1915,1911,3209,1613,1611,1739,97,91,1927,1929,3453,1925,2379,2373,2719,949,3355,3353,2269,2267,3241,3235,2581,29,21,2851,1155,2657,2653,2913,2911,2387,2383,3167,1047,3183,1207,3503,3497,1731,799,1727,3455,535,1047,3529,3523,935,3443,613,2917,3253,2911,3183,3181,97,91,2563,2561,2563,357,2547,1311,3101,3093,2565,3229,1093,3183,2799,2567,2985,3001,3003,887,333,2317,1213,1211,2315,887,3025,3285,3281,3347,97,2563,91,983,979,3145,3141,3025,1155,1147,1185,909,2547,323,2375,2373,1107,1105,1731,1727,1341,1373,1369,169,165,2675,3073,3071,2671,3079,3077,3067,213,211,3295,1141,3253,3245,1141,3193,3191,1731,1727,1341,2265,1021,3411,3405,1161,801,1927,1929,1925,175,173,1091,1705,2253,2247,991,3239,3235,2563,1927,1929,1925,1197,2253,1195,1927,1929,1925,3425,2785,2783,3241,3235,97,91,1373,1369,1927,1929,1925,2253,2247,1785,265,263,1237,1585,1607,915,911,2253,2247,1073,2971,1511,2563,2561,3425,1927,1929,1925,3357,3353,2547,2937,2933,3033,3031,1373,1369,1113,1511,1263,1261,1091,3185,3183,97,91,2255,2251,2247,357,1575,97,91,781,491,487,661,659,2647,3115,547,1619,1633,1607,1643,1641,661,2579,2161,2155,781,3479,805,193,2531,3175,3185,2527,1317,1311,1173,1169,2221,1173,1169,2221,3479,3473,2935,3239,3235,3571,3565,3115,2589,3453,661,659,547,3023,1187,1139,2523,2521,2517,721,1733,1727,721,1733,1727,721,813,1165,2587,2593,323,2511,2511,2509,1783,809,807,295,293,1511,1513,3003,3003,1123,1401,1395,3227,2929,3227,1513,1513,1909,1905,3163,1575,1677,1719,2049,1717,2929,2929,2929,811,3163,679,1389,1391,1385,3435,1221,1227,1217,831,907,831,2865,2863,831,831,2569,3197,3191,347,317,341,1305,1299,1881,1197,1199,1195,2937,3187,1907,2695,1905,2687,1235,2101,2097,257,2981,3031,135,127,1241,1189,2785,2783,2295,2287,2777,1189,2975,599,2569,2567,2147,175,177,2145,1145,3031,3409,3405,2981,3031,1881,3369,2985,2937,1671,1665,693,1315,1587,1585,2151,175,2147,2145,2777,757,753,2591,3455,3031,2777,2845,1609,1609,2983,257,1609,1237,3031,1237,1259,1251,1511,1259,1251,2591,3455,2981,3031,315,241,2875,3503,2873,3497,1883,1143,2507,2901,3005,1483,25,689,3147,3141,1113,1113,1047,1575,3185,857,2189,2357,2971,993,25,21,2549,3241,3235,379,2691,2687,2189,1277,2357,3257,77,3167,33,31,3123,3133,2971,1187,689,1139,1139,2211,765,267,263,2913,2911,2185,251,249,2205,2185,267,263,1189,2295,837,839,835,833,3001,45,41,1427,547,59,3577,3577,3157,1237,839,833,1313,897,893,3107,3105,3103,2163,2155,1483,2795,1241,1239,2295,3545,3539,3143,3141,799,3071,3077,3067,1153,1545,1541,2885,2883,2105,2099,2097,45,41,519,1379,3257,2295,1069,2159,2155,1763,1761,25,21,2795,1545,1541,581,343,341,2147,631,625,3371,1393,1385,3071,3077,3067,1689,2825,3105,3103,3185,139,1019,1311,59,1635,687,689,801,1915,1911,3115,605,603,1597,709,703,717,823,2299,2305,2825,627,625,3183,1805,2563,29,21,2933,2937,1091,3425,2565,1731,1727,1485,729,1141,2825,627,625,2933,2937,3229,2199,2193,2989,1485,1523,3163,1179,2229,1175,2227,3419,1613,1611,1183,1175,687,687,3239,3235,3029,3173,197,2231,2227,2317,2319,2315,781,781,1847,1485,3233,3227,3001,2375,2373,547,2549,333,2845,877,873,1263,1261,843,841,2989,3193,3191,2969,3241,3235,1439,1437,1841,1283,1445,1419,1417,3003,3147,3141,2311,2307,1337,353,353,2715,1531,1529,1079,1241,1419,1417,2185,1763,1761,1401,1395,1401,1395,3541,481,479,3539,905,485,479,3123,3133,3123,3133,837,839,89,81,835,833,1623,1621,1623,1621,1541,1471,1253,1251,681,683,3419,967,3193,3191,631,627,625,991,3419,2937,3019,2099,133,127,2097,3149,3141,2661,2653,1187,125,117,3541,3539,1253,1251,1353,1347,631,625,3369,285,905,3193,3191,3521,3321,3317,1101,3237,3235,2907,2939,3153,535,781,2273,2281,2271,3153,2775,3187,3425,2565,2565,605,603,3285,3281,3167,689,3453,1287,3367,1607,3147,3141,1707,991,1145,1145,1093,2815,2555,1703,2207,1283,2971,1685,3237,3235,3529,3523,1427,1313,1187,3143,3141,3143,3141,2939,2937,3529,3523,265,263,2691,2687,2375,2373,1315,2255,2247,3237,3235,2185,2189,1589,2845,485,665,2985,2955,2951,233,227,535,2743,2375,3203,2373,1187,1277,13,11,1273,1551,1559,2971,2661,2653,1305,2235,1299,2227,3521,2933,125,117,593,499,497,2255,2209,3221,3215,1915,1911,499,447,439,497,1143,1139,2563,2427,2659,2653,3527,3529,3523,1169,1511,1297,1289,289,605,577,603,253,225,217,249,615,2851,1589,3375,3369,285,3369,285,43,45,41,237,2295,2221,2937,485,479,3561,3557,3561,3557,547,547,2979,3239,3235,2103,2071,2067,2097,1575,3011,257,3419,187,2255,2247,1183,1175,3149,3141,1445,3367,1531,1529,1511,1511,2249,1201,1195,2247,567,2887,679,3571,3565,1179,2229,1175,2227,1253,947,1251,3163,1183,1175,3163,1253,1251,3371,2503,3185,3105,3103,1847,3175,3175,3183,3187,1915,1911,3003,3147,3141,1139,3031,1189,1313,1187,1309,951,2985,1245,577,45,41,3559,3561,3557,2939,3183,2375,2373,547,1545,1187,3241,3235,3257,3197,3191,2399,1993,1989,1187,1483,1523,951,2985,1245,2979,1575,1575,593,3203,1053,2985,1235,285,3207,1393,1389,1385,3143,3141,2939,1847,2299,309,473,471,1613,1611,593,593,1915,1911,3143,3141,3143,3141,3147,3141,1387,1385,3147,3141,403,395,1365,1097,403,395,3447,1107,1209,3049,3115,305,305,1523,887,3579,2233,2227,1237,885,1237,2975,909,2181,2173,909,197,267,271,281,447,263,277,273,439,2273,2281,2271,2273,2281,2271,1143,3187,2647,59,51,3429,3389,3381,3011,1003,999,3183,1199,1195,3117,1245,1247,1243,59,3117,1201,1195,799,2157,2155,3279,3273,131,127,2565,2561,193,617,2605,2603,741,1915,1911,2569,771,2023,3427,2985,1069,527,2933,3375,2747,1967,519,1785,2897,2071,2067,2023,2807,2809,2811,799,181,1495,1493,3425,3445,3439,181,3425,577,1785,3185,3185,2147,2145,2197,2193,1245,1247,1243,2393,2391,2605,2603,519,3411,3405,2629,2235,2231,2227,3411,3405,2569,2317,2315,2979,89,81,519,951,363,545,2147,2145,3375,1163,1165,2447,2919,2911,519,2933,295,293,2487,2241,2483,2185,1141,3319,3317,961,1687,3455,647,1057,3411,3405,3415,3091,1731,1727,2933,2961,799,3185,89,81,2147,2145,605,887,2039,1105,2759,1731,1727,1151,2767,1117,3437,2507,2235,2549,2227,1669,1665,1803,153,145,961,3319,3317,1803,89,81,3375,1207,289,287,799,3425,1073,2969,741,407,3483,405,131,127,131,127,3377,1731,1727,2235,2227,291,287,765,767,1719,1723,1717,89,81,363,545,1757,1755,373,1187,3003,1427,831,827,825,2147,2145,1891,1889,1165,173,177,173,177,3051,827,831,3169,1093,3229,3233,1145,1143,941,29,21,937,2103,2097,2821,3321,3317,941,3487,1783,1655,1695,2261,131,127,2249,2185,669,2875,667,2873,407,405,949,3127,3123,3133,3137,65,2821,3041,1189,3087,1595,2973,3487,1349,1347,3209,3205,3201,579,551,2059,589,3129,3139,1749,1745,879,873,443,439,803,2825,2049,2047,757,753,3009,3187,3425,2801,3425,3075,3081,3067,645,677,641,3577,3025,2845,949,1349,1347,1677,1719,2049,1717,2815,3227,3231,197,173,2147,175,337,1419,1417,107,131,127,1145,501,1139,29,21,2589,1297,1289,3223,3215,2889,2883,2661,2653,2589,2263,2265,3239,3235,3241,3235,1749,1745,2669,247,245,443,439,3015,757,1221,1227,689,951,2937,1113,1553,1561,2487,2991,2483,1495,1493,1435,2669,3425,193,2263,2265,1221,1227,1221,1227,1199,2249,1195,2247,43,41,1405,1403,1585,3195,3191,1513,519,2979,1597,3185,373,285,2845,2651,3045,2207,1749,1745,299,293,2973,757,731,753,941,29,21,939,937,1349,1365,131,127,2215,2471,3031,1535,1529,1535,1529,1511,1595,1141,3207,3005,2821,3223,3215,1481,2821,3197,3195,3191,3115,3143,3141,2815,575,2159,2033,2155,1161,1111,1823,1111,885,1893,1889,1279,1273,139,3185,2187,1955,1577,1951,767,1239,2293,3147,3149,3141,3185,3301,3299,131,127,3185,3189,719,2451,2565,2561,719,2565,2565,887,597,577,3197,3191,1069,799,1047,2975,2865,577,2777,343,341,1169,55,2547,577,2777,2865,573,3379,1253,3379,1251,2759,803,579,1729,1733,1727,2999,1067,311,1973,1965,1205,3409,3405,3181,3183,1733,1727,1245,2305,1243,2919,2911,2525,2517,2427,2423,3101,3253,3093,3245,1205,601,3379,1169,2215,2219,1169,2089,527,2733,2731,2215,2219,1169,131,127,131,127,2531,2527,527,2733,1163,895,893,857,731,131,127,1345,1163,159,155,3025,527,2733,2731,967,1405,1403,2215,2219,1169,1173,1047,1729,1733,1727,967,1405,1403,2919,2911,1253,1251,1141,3109,1141,951,539,535,533,1597,1597,2857,2853,1113,3425,1113,1113,3183,3183,3183,3183,1131,3261,1131,3261,2507,3003,2451,3049,2943,2941,2825,3145,3141,3145,3141,3239,3235,349,341,213,207,153,145,601,169,165,2089,89,3221,3215,2125,2121,2117,3379,3207,349,341,345,341,3507,181,2889,3183,2883,1139,2049,749,2047,3437,3185,2927,2923,315,133,127,581,1541,1545,801,799,2927,2925,3419,463,461,2927,1205,519,523,2985,3117,1035,1029,3153,1085,1111,1607,1059,2925,1155,2901,2927,337,3415,3425,3085,1205,2845,451,449,451,2985,1421,1419,1417,451,449,553,559,551,557,2029,2983,631,625,1141,295,293,3425,451,3525,449,3447,1419,1421,1417,3239,3235,3031,1189,1161,2565,2779,1153,2989,139,1101,801,3115,2937,2049,85,81,749,2047,3163,2939,2985,3419,2121,2117,2775,343,341,553,3427,3419,3427,3419,157,553,3435,359,315,1181,3163,1113,1181,1179,1175,1117,1703,1577,1579,3015,95,91,2289,1237,3045,3037,3045,2589,131,127,3185,1455,2355,549,613,2817,821,1141,2359,2355,287,2737,2763,2761,2763,2871,2761,2863,831,993,3185,2187,2565,2725,493,3425,2925,1677,2985,1525,741,737,3209,3205,2789,2783,1765,2947,1763,1761,2941,1765,2947,1763,2941,3437,359,2971,1139,2973,2981,1149,1189,3233,2913,2915,2911,455,449,2661,3437,2653,1365,1363,3239,2593,3235,139,3425,2185,2565,481,479,323,2725,2875,3503,669,667,2873,3497,2205,2249,2247,1893,1889,1121,3065,3057,1939,1947,1377,2927,3005,3045,1297,1003,1293,1289,1073,1065,1275,2981,1273,767,1085,2725,2659,2653,2973,2013,2011,297,293,409,405,1237,3185,97,95,91,311,1763,1711,1761,2075,2067,3577,3347,3331,3327,3155,1341,1237,75,1969,1965,1847,1935,1943,3419,3415,3413,2023,193,2811,3371,1069,905,1069,469,1237,3547,2295,509,1495,1493,2651,2443,2437,2645,3227,363,577,519,517,3183,2851,605,603,3227,805,1139,2095,3051,3047,3249,3245,1881,923,799,2981,131,127,3233,3165,2241,3097,3093,455,449,175,1105,3087,3107,3103,375,131,2105,127,2097,2589,2985,2589,2739,3221,3527,3523,661,1731,1785,3427,3185,2565,1869,1921,1867,1919,3115,2565,2981,1449,1039,875,873,1037,1383,1793,1791,3427,3029,1497,1493,2801,3163,1105,605,603,1011,1335,949,2933,1039,1037,2985,2191,3087,3021,1181,1175,2589,2651,1073,1361,1355,2279,2285,2271,3155,1113,1111,345,341,1149,3183,3065,3057,923,1533,1529,1117,3517,3087,347,341,2511,1975,1971,1033,1029,711,703,1311,627,625,2831,2785,2783,887,2299,3479,2305,2985,2977,2197,2193,3257,2095,1323,1319,553,1113,689,2971,691,2975,2967,2279,2827,3149,3141,1277,1273,247,245,1851,3267,3263,1677,3221,3215,3221,3215,3253,1245,1243,3245,2105,2103,2097,1399,1395,2233,2235,2227,3257,3239,2593,3235,2845,3237,3235,1189,1311,2985,3393,1533,1529,2777,993,1011,1179,1175,2241,2777,193,3185,2207,1115,2985,103,1667,1713,1665,3189,3185,1043,1041,1037,2659,2653,2305,337,1393,1485,1385,2971,2971,3233,3225,1481,1505,1439,1093,455,449,3185,1893,3257,1483,1921,1919,1851,689,2311,2307,3095,3093,2211,2971,1765,1761,451,449,759,753,107,553,481,479,297,293,1713,1715,1709,1483,1141,931,931,3051,545,2191,1337,1335,2789,2783,1627,1625,1623,1621,2985,1285,957,953,1883,2259,2257,363,673,667,965,3371,1209,2917,2911,3253,2917,2911,3245,1201,1195,1141,1427,1531,1529,3239,3087,3235,1131,1019,1021,1245,2299,1243,2733,527,2777,2777,1893,1915,1911,2927,435,419,1073,1125,1713,2985,299,293,3045,2933,1113,689,2971,691,2975,2967,2709,2415,2409,3527,3523,1165,3221,3215,589,1237,223,217,333,553,103,2241,219,217,527,509,931,679,1851,3267,3263,3013,3491,3489,605,603,2811,1101,429,425,2269,2267,2351,2345,3055,247,245,141,1765,1125,3529,3523,2775,2565,2233,2227,363,103,3101,3093,2939,851,2211,2937,3239,3235,3237,2841,3235,131,127,3101,3093,1093,1765,1761,131,127,3185,3181,1743,3221,3215,2187,1275,1021,1273,535,2515,2743,3153,3199,3191,689,323,3041,531,1687,1311,2197,2201,2193,1311,3237,3235,15,11,2241,3147,3141,1993,1989,2407,2401,829,3267,3269,3263,453,2661,449,2653,2443,2651,2649,2437,1473,1469,767,3209,1389,1385,1389,1385,2311,2307,887,883,1051,3265,3263,2675,2671,2675,2641,2671,2185,3163,3165,2659,2653,1103,1105,1139,907,1237,409,411,405,1883,3029,1277,1273,3417,3221,3215,241,3117,2545,181,1275,2981,1273,3249,3245,2981,3029,1123,3221,3215,3157,1483,241,2467,2461,2759,3199,3191,441,439,3087,375,2207,2241,2725,1107,3267,3269,3263,2545,1773,1767,887,883,1051,2531,2527,237,451,449,2125,2121,2117,1803,1803,961,345,341,223,217,219,217,219,217,485,479,1763,1765,1761,2763,2761,3379,2827,45,43,41,2621,2617,1669,1665,931,2311,2307,3311,1221,1227,1113,1277,1273,1495,1499,1493,2013,2017,2011,2659,2653,2249,1197,1199,1195,2247,3195,3191,1607,2515,2935,2855,2853,1667,1665,2211,2531,2527,3223,3215,2261,1297,1289,577,345,341,3423,3393,1585,1609,1245,1243,2191,2191,3239,3235,2147,2145,1511,453,449,2661,2653,3233,359,3429,3425,2827,339,2187,2295,2089,103,163,2269,2267,1183,1175,3341,3335,345,341,1495,1493,2147,2145,1389,1385,1113,2229,2227,333,567,3415,3195,3041,3191,3195,3191,2983,2985,2983,2985,527,509,2733,679,661,661,669,2881,667,2675,2671,1253,1251,247,245,3025,1183,741,767,1445,1447,1445,359,997,2187,2999,3001,1765,1761,1207,1515,1511,2973,223,217,1253,1251,465,461,3001,3003,2737,2553,2105,2097,3185,375,3005,1847,1851,1837,527,2737,1207,1205,2661,2653,993,1181,1143,1145,1175,2935,3101,1097,3093,629,625,2249,2247,2249,2247,1237,241,2467,2463,2461,1323,1319,3031,3209,3205,3201,45,41,1687,3185,1535,1529,2471,1263,1261,1085,1713,1431,15,11,1535,1529,3149,3145,3141,967,1405,1403,2991,345,341,3241,3237,3235,3195,3191,523,1721,1719,1723,1717,15,3185,1885,11,1883,1719,1723,1717,661,2185,1145,1141,1787,1427,3001,1713,363,3425,1993,1989,1993,1989,3149,373,3141,3157,181,3425,1379,1381,3233,3231,805,1551,1555,1559,1563,1757,1755,333,1113,2691,2687,287,1723,1717,1431,1085,3095,3093,2331,287,1141,1237,1097,931,2531,2527,3185,1497,1493,1831,1729,1783,1727,2747,1253,1251,835,3483,833,835,3483,833,835,3483,833,857,3257,2971,1165,3091,2287,2589,2375,2373,2981,1073,333,2963,1189,857,1165,2221,1131,2221,2217,3367,3363,627,625,2191,2183,1149,605,603,3325,3323,1149,1143,3423,3429,1287,1139,1387,1385,819,569,3367,2221,2217,857,1163,1187,3239,3235,1163,3147,3141,3231,1597,2981,1073,3367,3363,2981,1073,2981,1073,437,519,2289,1069,1065,1069,1065,1069,689,2565,3183,2777,1689,1069,1483,745,743,2709,141,2115,2107,589,1215,1211,2513,1215,3183,3187,2503,2507,2501,1069,761,753,3147,3141,2581,2575,2581,2775,209,3279,3351,3345,3273,2273,2281,2271,1455,1483,209,2181,2173,59,2021,513,509,507,2367,2361,739,799,2395,3283,3281,2891,2883,3375,599,575,3261,1483,1291,839,833,1289,3243,2975,3235,3243,2975,1353,1347,993,829,2549,271,263,281,273,2891,347,3187,341,2211,2883,907,2981,857,1187,2187,1341,2971,563,2211,3423,2357,1405,1403,1711,2465,2463,2461,3153,1939,1947,1933,75,73,317,313,2343,2337,2985,271,2187,263,2205,2249,2247,79,2045,1149,3237,3235,799,59,45,41,2985,3393,2105,2097,3427,3425,2701,1285,689,563,3387,3381,333,331,1141,3147,3141,1377,2927,3283,139,311,1241,899,893,2947,2941,1067,907,3257,1253,1251,57,55,2251,2247,529,2547,3417,3269,3263,2913,2911,1859,1883,2413,1811,3185,2593,3463,3459,2167,2165,2835,637,1293,1289,3399,3393,2529,2527,2167,2171,805,803,2065,53,47,45,1937,41,3319,3317,2855,2853,1345,1629,1623,1621,2221,2219,339,3265,1265,1261,1069,95,91,175,3427,3359,3353,2095,1827,193,2181,2105,2097,2723,3167,2759,3409,3405,3351,3159,95,91,1023,1021,2201,1885,1881,3175,2529,2527,579,345,341,2105,2075,2067,2097,1155,1787,1785,1655,1705,329,3129,3139,369,2295,1765,1761,3453,375,1155,3123,3133,799,131,127,3349,3347,3369,3455,531,527,529,525,281,205,199,273,1805,1799,1897,1889,1415,1409,1413,1411,1407,803,2065,75,2041,2035,1537,1529,1809,925,919,2205,1237,2887,2715,3423,2883,53,2891,2883,2891,2883,47,45,1937,41,1945,1241,899,3511,2041,2143,741,2135,3389,2229,2227,3381,65,61,65,579,3427,1885,1237,1405,1403,1579,1163,2199,1955,2195,2193,3223,3215,1427,1927,1931,1929,1925,187,3319,3355,3317,3353,2211,1031,1029,1405,917,911,1403,2565,1187,1149,3417,1923,1919,885,885,2299,2615,2611,489,3567,3565,3279,3295,3273,1303,1299,3183,347,983,341,3029,247,2471,435,245,1117,2143,2135,3467,3471,3175,3465,2563,2531,2527,2561,1809,69,343,341,913,911,3425,1405,943,937,1403,679,681,681,679,3427,3421,2241,25,21,1955,3407,3405,851,1019,1179,1183,1175,1357,1353,1355,627,625,2393,1809,2391,2801,2799,2793,1523,3351,1609,1601,605,2531,603,2527,2901,1253,1251,1525,1239,3425,1613,1611,3125,3127,3137,3135,3463,2965,3459,2715,3029,1155,1847,1845,537,535,1181,1175,3415,3419,3413,1143,1117,2999,3241,3235,19,13,11,2891,2629,2883,1991,1989,501,497,181,877,873,2779,2777,3407,3405,333,2711,2491,2483,2711,2491,2435,2483,1329,2211,1325,1707,1955,1235,1241,85,2089,81,125,117,1163,3185,2819,2507,2425,2423,2695,2687,2917,2911,3029,1155,271,263,2089,775,1181,1349,1175,1347,2973,1263,1261,1221,1241,2281,2271,2829,1399,1395,1131,345,341,2845,2593,265,271,263,3511,2167,2171,805,799,2165,1639,1609,59,993,2525,2521,2517,1917,1911,1249,1243,3321,3317,2589,2659,2669,2653,3173,3237,1253,3507,1251,195,2913,2911,193,2175,3425,2173,3567,3565,3175,3467,3465,3361,3353,1609,1601,2669,2891,2629,2883,1451,2701,2697,89,81,1163,1093,1089,547,541,2937,2915,2917,2919,3239,2911,2249,2247,2093,2533,2527,1523,1763,1761,1711,803,801,195,67,1237,1241,543,547,2963,1635,1637,13,19,11,1247,2299,1243,3257,3527,3523,329,2789,2783,417,415,1187,2851,111,109,1811,1895,1917,1889,2425,2937,2347,2423,2965,3575,465,461,2961,2989,2191,3005,333,593,2465,2463,2461,1629,1623,1621,2261,2207,839,835,833,683,675,2579,597,2169,2167,2165,579,577,3377,1123,1143,2759,2753,2201,2193,2185,2029,2033,2593,2211,2915,1541,3175,3179,3125,3127,3137,3135,1253,1251,3419,3415,3413,1507,913,911,1885,1915,3185,1131,3087,2503,3145,3147,3141,3417,613,1619,1645,1643,1641,213,2735,315,177,1193,2777,1333,2871,2863,3147,3141,501,497,3537,3447,369,3531,1241,2787,2783,2205,1321,1319,69,183,2021,1193,1601,961,927,1771,1187,879,873,3425,529,2503,1725,1719,1717,291,3005,221,2505,217,2467,931,2091,3249,3245,1993,1989,1163,3419,1329,1325,1225,3227,1231,1163,1165,3237,3235,3143,3141,1387,1385,1831,1053,3097,3093,2385,2383,2101,315,2097,2939,2443,3527,215,2437,3533,3531,3101,3093,1747,1745,2775,581,579,1917,1911,271,263,2565,3527,2661,3523,3407,3411,3405,3189,3115,1101,3217,3215,141,143,139,3153,1093,1089,3147,3141,3295,3551,3549,27,21,3091,1241,3125,3135,2961,1309,2201,2193,391,389,393,2855,3495,385,1139,2777,577,1411,1409,1411,333,323,1279,1273,1225,1231,1225,1231,2845,1193,2187,1117,1121,867,355,629,357,625,3025,2529,605,3175,603,2527,3035,3029,3031,3247,3245,2205,1161,1163,3173,271,263,3351,107,3163,2939,121,117,1431,1425,2945,2941,2971,2251,2247,291,857,851,849,1589,1591,1583,3527,3523,867,1181,1175,895,899,893,2251,2247,2375,2373,2311,2307,369,3535,3531,393,385,3369,2701,2697,2703,2697,181,375,2375,1837,1841,2373,85,2089,81,505,497,2467,2461,1315,689,3163,547,541,3429,1969,1993,1961,1965,1989,1415,3029,3001,1165,2669,2277,2283,2271,845,841,3003,3005,2641,2639,2457,2453,1197,1195,1757,1755,689,3185,417,415,665,1993,1989,2507,2715,1187,3393,3349,2743,2039,79,2157,2155,79,515,507,1483,2759,1067,1353,1347,3425,1819,2901,2899,2897,1077,2989,2211,2945,2941,2221,2219,339,2785,2549,2783,3411,3405,689,3029,1809,1993,1989,2299,265,263,3347,851,2973,707,703,2531,839,1291,1289,2531,1915,2527,2593,67,3163,167,165,2669,2739,2431,2491,2497,2483,289,2699,2697,2711,1225,1551,1511,1181,1847,1231,359,413,405,961,927,173,775,2093,2609,2603,577,2845,3423,2187,1141,265,263,2669,2659,2653,3361,3353,1499,1497,1493,339,349,341,931,1597,1635,1589,1591,1583,3527,3523,819,2981,1069,379,3351,3463,3459,2221,2219,2217,2745,1079,485,479,3425,1819,1783,1655,1173,2217,951,3207,3423,43,2229,41,2235,2227,3425,1915,315,1911,1667,1669,1665,287,219,217,1345,379,349,341,2471,1729,2675,1727,2531,2527,2855,2853,1181,311,1175,1789,1781,1783,3393,1415,291,3005,221,2505,217,2507,1329,2211,1325,149,153,145,1169,3163,895,893,2211,2207,1513,1145,3209,1259,1253,1251,2133,2131,2127,2133,2131,2127,1451,673,667,3001,2403,2401,2423,947,3295,3297,3333,2205,3189,3185,2999,339,339,2435,2433,2429,1847,1845,3025,1049,2651,993,1039,939,937,515,2715,3569,3565,1895,1889,1535,1529,3417,333,1117,2933,3483,1181,1183,1175,1143,243,529,527,2735,529,2503,527,315,187,725,317,1259,1251,3025,2669,1517,1511,1513,111,109,803,1783,2231,2227,187,505,3579,497,3507,3475,3473,2937,2889,2883,3491,3489,2181,195,2173,2251,2247,673,667,1895,1889,1077,3029,1603,1181,1175,477,471,2715,993,2231,3169,1145,2227,3463,2965,3459,1163,829,3223,3215,1461,1463,1841,1601,2503,3507,3319,3355,3317,3353,2179,2181,2173,435,1145,537,535,2471,243,2259,2259,1207,1093,1193,2249,2247,1367,531,527,529,525,3029,2201,1155,3175,2193,2103,183,2097,183,69,45,41,1237,1241,3175,689,1725,1717,2665,2667,1729,1727,1143,2723,3507,547,3053,1431,205,199,1239,3179,3173,2397,2395,2391,3175,3175,1885,1131,1069,1187,167,165,1927,1931,1929,1925,857,851,849,3425,3425,1187,1405,1403,1783,1161,3029,1523,1411,2739,67,2665,2667,1603,1483,1635,3257,1643,1641,2343,2337,2781,3425,3361,2045,3157,1461,1463,205,2433,199,2593,1597,3295,473,471,1895,1889,3003,1263,2071,1261,1135,1131,1483,1635,1411,1421,1417,1093,1095,3203,1595,1633,1579,2211,2211,3295,473,471,2211,1427,3005,1165,3209,1703,2333,291,2503,2955,2951,477,471,3029,2531,1915,2527,1633,1637,1263,1261,1729,1733,1783,1727,349,341,3295,473,471,1613,1497,1493,1611,2739,1829,3551,3549,1483,2495,2493,593,2901,2899,2897,537,2747,1181,1175,1253,1251,1431,1425,1483,1637,1841,3429,947,949,947,2191,3187,1145,3115,2181,2163,2155,2181,739,2583,1303,1299,3233,821,3187,887,831,993,79,747,3415,2159,2155,593,1341,1765,1761,2971,1793,1791,905,1019,2569,247,245,3021,1733,1727,375,2583,851,961,689,575,3087,1179,1183,1175,1765,1761,323,1221,1227,2549,677,661,3241,3235,345,341,43,41,65,3087,1179,1183,1175,677,661,1499,1493,1915,1911,131,127,299,293,591,683,2311,2307,3185,829,2447,2449,2445,1313,3145,1181,1175,3141,673,661,667,2191,3187,1145,2839,3021,3105,683,2311,1181,1175,1205,3153,2989,951,2995,1765,1761,2589,2591,2641,2585,2639,13,3451,11,2235,2227,13,3451,11,3417,575,323,3407,3405,805,2589,2591,2641,2585,2639,1511,2295,2017,2011,3061,3097,3187,1181,1175,2503,1181,1175,3507,3451,3185,645,1499,1493,131,127,1481,2723,3021,3021,2943,2941,3105,3103,2185,2185,3361,3353,169,165,1253,1179,1251,3361,3353,1435,759,761,753,79,79,1427,3241,3437,3235,1427,2937,1711,637,635,633,2559,1513,1509,1153,1067,3029,3027,1153,3241,3235,3411,3405,1179,1175,2961,933,2839,2799,635,1201,1195,345,341,3193,3425,3191,803,2221,3369,3367,2289,3507,3369,3367,653,651,3507,2651,3045,3507,3507,2249,1199,1195,2247,1531,1529,3507,375,653,651,3451,751,289,1189,1001,999,3237,2975,3243,3235,2569,2071,2067,1551,3227,1559,1705,2049,85,2047,2185,3371,1685,1687,1609,2071,2067,2105,131,127,2097,1551,1559,805,749,3095,3097,3093,1209,1209,1885,3541,3539,3385,3381,3187,1551,1559,2525,2517,1161,3237,3187,2185,3425,741,2125,2117,741,3371,1365,2691,2687,3237,3235,2969,1783,1141,1141,1141,1131,2371,2369,527,1221,1227,3427,3313,3029,2801,3115,3087,815,1409,827,993,993,2723,3209,577,575,551,3087,3091,289,2563,1379,3153,2563,2925,1763,1761,1763,1761,2881,3499,2873,3407,3405,431,425,2971,2973,3265,3263,103,33,31,3321,3317,77,1187,1401,1395,2559,1069,749,1011,947,1213,1211,301,293,3101,3093,1769,1767,1125,771,2253,2247,1073,3185,2985,3045,3143,3141,3321,3317,749,2733,2545,1237,3153,3295,175,3055,3205,3097,3093,2159,2071,2067,2155,3409,3405,1541,431,425,1011,1705,3575,1785,139,3087,1125,3389,3381,3525,3523,2565,2561,2565,2991,3239,3235,757,753,605,3185,603,1689,1883,299,293,2949,2941,631,625,17,11,175,33,3443,1575,3003,1379,2799,305,2563,1105,1103,1107,1105,3101,3093,1387,1385,3087,1361,1355,3091,1181,1175,1197,1195,3425,1197,1195,2513,2825,1051,3145,3141,823,3013,2495,2493,3023,3175,3267,3271,3263,1117,991,993,1263,1261,2917,2911,3001,1401,1395,3443,2985,2555,333,2555,197,3393,3393,2971,2917,993,2911,1113,1109,1011,323,2917,2911,2789,2783,3507,3559,3557,3445,2179,2173,1207,3207,2985,2505,1885,2985,2259,2189,645,1209,949,3417,3185,3425,25,27,3147,21,2917,2911,1531,1529,1505,339,301,293,2927,2925,3023,3293,761,753,3101,3093,3099,875,873,3093,3183,2989,3267,3271,3263,1117,3089,1765,1763,1761,1387,1385,3179,3205,2591,647,2937,2591,2259,1687,1827,1163,1427,1983,1979,25,21,3153,431,425,3163,2709,2179,2173,1769,1767,1181,1175,1277,1273,1011,845,843,841,2955,2951,297,293,2187,1011,3145,3141,1483,15,11,1141,1141,1713,3293,3031,1011,1803,1803,1785,455,449,1883,3379,1113,95,2177,91,2173,993,3095,3093,397,395,1511,3005,2737,1207,2133,2127,1531,1529,2881,2873,2985,2983,3185,1141,1103,519,3175,3175,1483,2733,2825,3023,757,753,2547,3385,3381,1011,1009,3185,3011,3055,2549,1181,1175,95,91,1205,3145,3141,15,11,3175,2393,2391,2591,1719,1717,3119,3165,2177,95,91,2173,1483,323,1379,605,603,1515,3145,3165,1131,1595,1605,2985,2375,2373,1575,1841,1637,1613,1611,2495,2493,2747,3147,3141,3451,3261,3261,2295,2293,3175,879,875,873,3175,1073,1069,1019,2593,237,237,2559,1669,1665,3341,257,3335,3341,257,3335,2777,3559,3557,223,2205,1161,217,3087,1113,1365,3197,3191,2241,1019,771,131,2099,2097,3257,3231,3229,2407,2401,2089,765,79,799,801,797,1541,759,1353,753,1347,2289,3087,429,2777,1975,813,1971,2799,2797,2641,2639,3407,3405,1439,1439,1249,3563,1243,3557,1769,1767,1107,1677,2923,2925,2881,2873,3389,305,3381,1145,2191,2191,1145,3209,3529,3523,2925,2825,407,405,1439,1445,1719,1717,1575,1803,2139,569,2935,1785,1781,113,109,3345,2589,2587,3451,2589,2587,3451,1803,3457,2587,2355,59,2179,2159,2163,2119,2117,2155,2173,681,675,681,549,2795,1803,1483,2273,949,2281,2271,1145,1225,1231,133,127,3073,3079,3067,333,339,3411,3405,443,439,2491,2483,2395,3275,3273,2299,2211,3237,2975,3235,831,829,2975,271,267,263,2491,2483,2507,3115,735,2971,3519,1485,1479,3051,209,207,495,2357,717,2519,153,145,2517,2891,3393,2883,577,679,3375,1677,345,341,3185,909,819,851,887,645,3183,1483,1481,679,2887,3425,2189,2589,835,839,833,2795,2801,1187,1169,1739,2915,1419,1417,1223,1677,3153,1651,1653,1751,1745,2647,3427,2983,3247,2913,3245,1001,999,757,103,753,107,1187,631,625,845,841,3167,3005,377,431,425,2021,2593,661,1079,3045,1939,367,1947,3453,367,2661,2653,77,2661,2653,1139,2961,3257,1197,1195,895,893,1145,1685,2099,2097,2105,1731,131,127,2097,2927,35,33,31,751,173,765,3185,799,805,1827,2985,1069,579,3129,3123,3133,3179,639,637,3455,3039,3409,3405,3167,3169,1531,1529,2413,2409,691,689,1703,3385,3381,965,3429,2185,455,3529,449,3523,3267,3263,1079,2559,2593,3313,577,679,1483,1595,1163,333,2661,2221,781,3371,1827,3025,3005,3411,3405,1353,1347,2147,2145,2647,2723,441,439,2983,3427,925,3025,1151,1155,1239,897,899,893,99,799,91,1785,3185,3031,3175,3175,2565,1915,1911,133,127,2885,679,2883,3183,679,1481,1541,175,1885,345,341,1415,1019,2039,75,735,3437,519,441,439,3157,3155,3159,3209,805,803,801,67,181,183,1795,1791,831,2191,2325,2321,2385,2383,1687,2593,2519,2521,2517,2661,2653,3395,2989,3229,3227,2549,947,1239,2887,2883,3577,3347,1827,2323,2321,1927,1925,3221,579,343,3425,605,603,3351,3545,3547,265,3351,263,527,909,193,2181,2173,1221,1227,49,45,41,799,1163,59,799,2071,181,163,679,3575,2971,1315,1821,3453,131,157,127,1555,1563,275,273,2507,3347,2647,3453,107,2075,2565,757,753,925,265,3351,263,3167,339,1221,1227,2565,3429,1555,1563,1703,1483,2375,3347,2507,2561,247,3313,153,145,3367,3369,3425,1575,627,625,1595,2559,1483,3257,1427,1425,3221,3215,2589,3115,2701,2697,2615,2611,2187,2241,323,3411,3405,2191,2985,1483,3183,3009,3407,3405,1483,2471,443,439,917,2789,911,1405,1403,1287,115,177,2359,3021,1179,1175,67,2359,173,3521,363,3185,3031,443,439,3089,3457,1161,3567,3565,3559,3557,717,721,3231,3239,3235,725,885,1303,1299,1449,3371,1523,1483,3199,3191,3155,1019,1067,871,3429,3185,2565,851,857,3287,3281,1613,1611,799,1187,1039,1001,1037,947,2753,2751,943,939,937,2933,1379,1375,2393,2391,25,21,29,21,1245,1243,3183,2775,3511,1353,1347,3425,2269,2267,2825,2459,2453,2459,2453,1091,1187,1235,1221,1227,3107,3103,679,417,415,3237,1793,1791,3235,3279,3295,3273,1951,3209,1187,1555,1563,3367,3129,3139,2339,1847,2337,3411,3405,535,539,2191,2229,2227,1079,947,1113,1171,3487,3115,2711,2491,2483,323,3407,3411,3405,107,2821,3203,917,1405,1403,1205,181,111,737,109,799,2411,2415,2409,2829,1253,1251,2985,1435,1555,1563,781,777,2191,2947,2941,1265,1261,829,831,993,2675,3195,2671,3191,1503,1501,2273,2281,2271,2819,2817,3231,1703,89,81,1577,2095,3487,577,3101,1249,3029,3093,2845,265,267,263,3311,49,3229,41,905,131,127,575,991,3519,3429,2357,717,103,877,873,1163,1093,2917,2911,1991,1989,1155,2795,2801,1141,3025,1609,1371,1121,1369,2525,2463,2461,2517,323,251,249,771,765,2661,2653,1721,1717,2969,1481,2647,2189,1481,635,2253,2247,3207,2711,1241,2781,3031,1399,1121,1395,3511,3507,2593,291,3143,737,2937,1205,1481,169,177,2991,789,363,2753,545,3425,1419,1417,1495,1499,1493,1163,3511,2891,2883,1541,1481,2187,175,1623,1621,455,2661,449,2653,2207,1739,2185,2185,213,211,955,1123,953,285,553,3393,759,755,753,2029,103,2071,85,81,85,2169,103,107,81,2165,1125,3529,3523,333,295,293,3313,1139,1483,1523,2089,3239,3235,3239,3235,905,1263,955,953,1261,627,625,2743,839,833,2927,577,519,2777,2311,501,497,735,339,3367,3369,2189,3253,3245,3147,3145,3141,3239,3235,2305,1245,1243,3185,2477,2475,2359,2547,417,415,1471,1477,1541,1469,2191,3511,799,2675,2671,1315,1419,1417,3537,2667,3531,3537,3531,3385,3511,3381,935,771,765,329,2549,2259,1881,1885,1915,1911,2917,2911,965,1597,1009,1193,2241,1187,3187,3189,363,3443,601,1239,1235,333,2555,3541,481,479,3575,1503,2221,1337,3423,3495,417,415,3489,3129,691,3139,1241,107,2099,2097,1183,1175,3507,3521,169,165,2089,613,377,301,1715,1081,1163,951,2981,643,2207,545,947,591,1633,3429,2305,1245,2299,1771,803,879,873,2091,2503,3183,2889,2883,2477,2449,2475,681,397,3179,801,2937,1117,2939,653,651,1153,1155,3529,3523,1165,991,3183,3411,2545,3405,2979,3125,3135,3145,3141,3147,3141,397,395,1165,431,425,3241,3235,1019,3351,265,263,2961,2115,2109,2107,135,127,3169,967,1359,1131,3091,2427,2423,3153,1411,3143,3141,113,109,1117,1387,1385,1189,1387,1385,2651,781,735,3035,2889,2883,1139,3425,1161,1803,1685,1687,377,1351,1069,1347,1067,1497,1493,1471,1469,2815,1827,3237,3235,3227,3231,1703,2659,455,449,2653,3097,3247,3093,3245,3097,3093,3157,3155,3209,3411,3405,2109,2107,605,3175,603,1139,1193,1187,2197,2193,3175,377,2637,669,667,2633,3237,3235,459,3533,457,2939,1703,577,579,2565,2777,1139,1187,1277,1193,1273,2279,2285,2271,3203,2385,2387,2383,1101,1585,1455,3257,2299,3015,2141,2135,2567,819,2733,1431,2949,3267,2941,3263,3237,3235,325,1605,1239,2543,379,135,2097,127,3031,1153,3185,3369,1895,3407,289,3405,799,801,181,1993,1989,1731,1727,1435,2375,2373,907,1161,1197,1195,1239,2719,3167,3411,3405,87,85,81,2491,3031,2483,3247,3245,3519,1769,1767,2675,2671,1151,3163,1187,1103,827,991,759,753,3347,2205,1651,1655,1653,2701,2697,3247,3245,3031,2375,2373,2563,3429,485,479,2949,2941,2815,1551,1559,1549,2375,2373,2743,2311,2307,3361,3353,2647,2651,2555,2715,1315,2985,905,907,2191,845,841,1301,1299,845,841,2703,2697,2039,2759,851,431,425,593,3409,3405,1961,1139,2641,2639,895,893,1187,417,415,2221,339,265,263,2209,1495,3001,1085,1703,3087,375,835,833,847,841,3511,2885,2883,2229,3155,593,3409,3411,1153,1161,1285,3559,3557,547,1575,169,177,165,3457,2459,2453,2979,605,603,1145,951,1495,1499,1493,1113,2375,3223,3215,2207,965,819,819,2855,2613,2299,2611,2853,1079,2187,2471,2477,2475,2547,485,3427,479,3561,3557,2091,2089,3231,309,1067,1171,1173,1069,1093,947,1915,1911,3185,847,841,1297,1289,951,951,237,1669,2915,1667,1665,2911,1199,1195,581,575,3487,359,1455,3257,3165,1447,1435,1439,323,455,3529,449,3523,1481,349,341,3075,3081,3067,2259,2513,2621,2617,735,2831,931,3319,3317,2675,2671,1461,1465,1601,1503,1731,1727,1585,305,1181,311,2675,2671,1315,379,2743,153,149,145,1597,643,1225,1511,1231,3395,3351,2593,3379,1667,1665,1783,1801,1781,1909,1803,1905,3155,2795,2089,3453,2491,3031,2483,2985,2299,1039,1041,1037,1165,455,449,1145,3149,2215,3109,3209,719,3429,3115,3423,3185,2229,2227,3563,3557,451,449,2179,2175,2173,2589,1079,947,1389,1385,3411,3405,3571,3565,3257,2503,2985,431,425,589,725,757,753,829,1783,2969,2973,2235,2227,2339,1847,2337,1533,1529,1551,1559,2229,2227,3001,2421,2417,739,735,3369,1163,2885,2883,1511,1449,3265,3263,2635,2633,2865,673,667,2863,339,2743,339,1719,1717,1235,333,2675,2279,2285,2271,2671,3025,1253,1251,1253,1251,2733,589,1113,1145,1991,1989,3011,2889,2883,1927,1931,1925,2415,2409,3457,2825,407,405,3341,257,3335,765,767,757,2269,2267,2325,3149,2321,3141,1039,1041,1037,2205,2249,2247,909,1555,1563,1447,847,841,373,2983,2555,3519,3297,2449,1143,1139,639,1209,1601,3001,1161,469,371,3247,3245,2715,2593,2235,2227,1173,2733,1535,1529,1953,3197,3191,2979,1113,2507,3559,3557,3095,3093,339,827,1241,1235,3559,3557,3185,2249,2247,2179,2173,3143,3141,1461,781,1115,535,539,537,1141,2691,2687,183,1915,1911,2147,183,2145,333,377,3463,3459,947,1113,1139,1191,1153,2259,3355,2565,2845,3353,1163,2215,545,3187,153,151,145,2661,2653,2535,2527,1535,1529,1483,265,263,1719,1717,3193,3191,363,2753,547,2723,1739,2185,2855,2853,169,177,165,1131,1079,1141,2211,1495,1885,1729,1727,1927,1925,3189,845,841,1161,1285,3197,3195,3191,1961,2407,2393,2401,2263,3147,3141,2185,1731,1727,3385,575,3381,947,431,425,1145,1141,1387,1385,2157,2155,567,373,851,1739,3233,3425,1105,965,907,939,937,2211,1465,1461,1465,1525,2431,1601,1483,473,471,1607,379,1757,1705,1755,1113,2017,2011,1605,3425,847,841,643,3247,3245,1483,3257,757,753,3507,3453,2667,1495,1499,1493,1169,373,2261,3457,1595,3143,3147,3141,1483,3457,325,2251,2247,1253,1141,1187,689,2677,2671,1085,951,1915,1911,3239,3235,1575,1411,1421,1417,2229,1177,1175,3003,951,1239,3025,2285,2271,1541,3209,1165,2507,3197,3191,3229,3227,3203,3015,1953,181,285,3367,1427,1425,1239,2623,2617,2531,2527,2933,3559,3557,451,449,2299,2289,229,3305,3299,1221,1227,3239,3235,1633,1637,1483,1485,473,471,3551,3549,1613,1611,537,2747,2289,1253,1251,3143,1431,1427,3451,1461,1637,1485,55,1837,3239,3235,1541,931,2207,2203,443,439,1097,1089,3045,3237,3235,3239,3185,1097,2211,3005,2017,2011,3091,311,375,2291,2981,2187,1275,15,1273,3185,3199,3191,1253,1251,2981,1275,3087,1023,2989,3239,3235,1365,1389,1385,1435,1371,1369,2641,2665,2639,2985,697,17,19,11,2191,1145,2191,3091,383,347,389,341,385,2255,2247,1371,1369,1285,2207,1371,1369,1285,1311,401,397,395,2487,2483,917,911,3149,3199,3191,3045,3035,3237,3235,2207,3025,3179,3175,857,849,2975,3159,2735,1197,2319,1195,2315,2017,2011,1073,2777,3025,1097,3091,2085,2983,3187,3021,3091,2985,2531,2527,2503,1499,997,1493,375,3185,689,3237,3235,435,1097,1089,3427,3415,3419,445,439,193,2973,2185,193,193,2909,2903,1237,2205,3425,343,341,2471,347,2471,2487,3435,2691,2687,2691,1483,3319,1141,3317,3237,3235,1483,951,1389,1385,521,689,2649,1165,3393,1785,2947,2941,1785,3169,1785,463,461,3159,2789,2783,2559,519,2515,3087,3117,2593,219,217,1207,1253,1251,2123,2117,2197,2193,2273,2281,2271,2675,2671,2259,1205,3269,3263,1497,1493,3185,795,181,3175,3423,2561,3175,3149,3145,3141,219,217,1125,1705,1713,531,1139,605,603,3411,3405,3269,3263,2949,2941,365,167,165,2777,1197,1195,2515,3193,3191,349,341,1221,1227,1389,1113,1385,475,471,3185,531,645,1173,1497,1493,167,165,643,1165,1165,2593,2017,2011,653,651,3453,3199,3149,3197,3141,3191,2261,1329,2559,3185,2491,2483,1309,2231,2227,1309,2231,1307,2227,3019,3163,3021,3117,589,1115,1113,1115,907,909,2235,2227,2311,2307,1145,1141,3185,2017,2011,1115,653,651,3189,3025,2969,931,2919,1805,1799,1707,1707,17,11,1191,643,519,3239,3235,133,127,131,127,131,127,2099,2097,2099,2097,131,127,285,1685,1683,1009,213,133,2099,2097,1525,1155,3371,2443,2437,1803,1687,2887,2889,2883,3115,3117,721,2375,2373,3003,1241,1235,1801,1009,2273,2281,2271,635,1993,1989,2491,2737,2069,2067,1241,1235,683,481,479,135,127,2451,2451,1687,2443,2695,2437,2687,2593,2593,2887,2883,1019,1313,1161,2715,2451,1605,2593,1801,1685,1481,2825,2379,2373,299,293,2179,2173,1601,1603,1593,3371,2463,2461,3371,1719,1717,1601,1603,1593,2289,605,603,2565,3429,581,579,1763,1761,1253,1251,1719,1677,1717,2187,2183,2133,2127,1823,2187,549,3005,403,395,771,3153,2371,1863,1861,1863,799,2549,631,625,2265,2187,2183,3199,3191,2985,983,979,3157,29,21,3125,3135,1311,2265,3125,3135,631,625,527,1607,2259,3157,3271,3263,3271,3263,2631,2625,2631,2451,3417,333,3415,177,3221,3215,535,2631,1455,1883,1705,2879,2873,737,735,949,1223,1229,2281,2271,2821,3429,2273,2281,2271,169,2023,2025,165,3321,3317,1743,477,471,1113,601,993,267,263,3507,2311,3257,399,395,2913,1091,2911,737,725,2725,511,519,2985,2891,2883,1677,1679,2273,2281,2271,3227,2187,2503,2139,2135,993,991,2211,2975,3237,3235,2975,3237,3235,3117,2647,2397,2391,885,1173,343,341,2975,2843,2849,1223,1229,2749,2515,3429,1141,3427,2211,1731,1727,907,3239,2929,1207,1207,2413,2409,1265,1261,1047,2725,2721,2725,799,2303,1139,139,139,827,991,251,2945,1711,2941,3437,751,2055,2047,3065,3057,1253,1251,1071,1105,1935,3227,1943,2187,765,3087,3087,2251,2247,3183,2961,3265,3263,3247,3245,1003,999,3147,2937,3141,2547,323,323,527,3227,669,667,3475,3473,1069,1067,1131,2191,1803,1975,1939,1971,1703,1785,1701,2715,509,1743,1731,2971,805,1727,359,355,1047,2055,2047,133,127,2491,2487,2483,3427,2071,2067,2041,3493,3519,3489,3279,3273,899,893,2031,1559,1703,1785,1701,3319,3317,781,2013,2017,2011,1483,1623,1621,233,227,781,2933,1069,1785,1781,1705,1113,2589,1239,1237,3275,3273,2891,677,2883,2885,679,2883,2885,679,2883,1019,1483,3409,3405,1733,1483,1727,1885,3183,343,341,731,757,753,3227,3233,2785,2783,3425,3387,3381,909,3371,3143,3141,2651,1379,1213,1211,3203,1241,3031,3185,2273,2281,2271,3185,605,603,1155,3437,2299,181,2163,2155,1113,1115,1731,131,127,1727,115,111,109,3319,3317,375,2531,3451,1455,3233,3229,49,909,1047,831,729,723,1689,2647,1073,1071,2095,2147,2145,445,439,3519,737,735,733,3429,343,341,579,3427,2675,2671,1929,1925,339,1541,2061,2065,2057,187,2187,2647,1881,1883,1235,3257,2431,3107,3103,3453,2559,1463,3097,3093,1253,3107,1251,3103,799,2041,1765,1761,2725,3159,1143,3221,3215,931,121,117,3105,3103,1575,2623,2617,1595,527,1635,2163,2155,3031,2163,2155,3319,2565,3317,1209,3193,3191,2039,3447,1187,3175,1117,1111,3283,3281,333,3199,3191,2933,1059,1161,489,3153,3009,3159,1523,2647,1141,717,3049,799,801,2433,2983,2471,2187,3517,3427,3195,3191,2969,2983,3003,1303,1301,1299,3457,1169,1635,1635,25,3145,689,21,3141,627,625,3183,2777,2647,1793,1791,1465,1463,3189,1733,1727,2299,1201,1195,2159,2155,2937,3019,3031,3185,1047,3087,2675,2641,2639,2671,1383,2753,2241,1187,1237,721,3447,2395,2391,2147,2145,3115,3065,3057,3425,943,937,1103,1091,1769,1767,1129,1127,2901,2197,2193,2031,2025,2027,2975,1069,2295,1551,1559,3185,1155,1205,2209,1165,1173,1169,1183,1175,3411,3405,2569,3507,247,245,725,1365,1113,1141,1143,1551,1559,289,1121,1123,1071,3089,1953,3115,1197,1195,1523,2273,2281,2271,2937,3395,1263,3117,1261,991,993,89,81,1677,3507,3233,575,3227,2985,181,635,1093,1047,3185,3125,3135,2179,2173,3207,333,3203,1431,1011,1437,1433,995,1485,879,873,799,2969,1483,1497,1493,427,425,775,1047,3185,3239,3235,2825,1445,985,979,1197,1195,1155,2989,359,1213,1215,1211,1707,2695,1865,1861,2687,339,2071,2067,3001,1163,2545,2845,2843,1397,1395,2153,2145,1915,1911,993,1209,3025,3017,2531,2527,1895,1889,2359,2851,3221,359,3215,3021,2999,2819,687,2675,2671,2881,3271,2873,3263,1249,1243,251,249,2777,1483,2629,2647,1463,2629,2759,643,1447,1445,1419,1417,1495,1493,2933,2965,967,3265,3269,3263,1093,575,1043,1037,2421,2417,1161,3377,3375,2471,799,935,931,3051,2579,2759,2613,2611,3123,3133,435,3375,3377,3175,1337,1837,2917,2961,3253,2911,3245,991,2891,2887,2883,631,625,1019,2965,1241,2531,2527,1503,1505,1125,1123,2715,3511,589,2241,1139,553,1245,1243,3521,2985,3019,2185,907,1069,965,931,3149,993,3141,1531,1533,1537,1529,2747,299,3447,601,2093,1011,301,293,2593,2191,751,3423,1597,1849,435,3511,1235,2753,451,449,1463,3395,2147,2089,2145,755,753,2661,2653,2789,2783,2101,2071,2067,2097,527,3239,3087,3235,1881,3243,3235,1597,827,1731,1727,1205,339,1541,1547,1623,1621,3193,3191,481,479,2289,1085,3239,3235,1895,2547,1889,2549,153,1071,145,1073,427,3503,425,1073,3253,3245,1419,1417,1123,1121,1119,2265,3149,3141,2209,1165,2791,2783,1751,1745,3427,3197,3195,3191,181,2163,2155,111,115,109,3253,3245,2945,1763,1761,2941,2427,2349,1635,2423,761,753,2265,3253,3245,1313,1141,1143,2531,2527,3253,3245,2471,1597,3517,643,635,3189,1161,1165,1743,2553,2031,2985,3237,3235,3253,3245,2547,2545,2385,2383,1093,3455,1163,1983,1981,1979,3237,3235,2273,2971,2281,2271,2815,2821,2289,1237,645,781,735,775,3351,181,2961,2965,967,2775,581,577,2937,2939,2949,2941,2393,2391,3031,247,245,2935,1019,837,1171,833,3149,3147,3141,1047,883,3097,3093,1733,1727,1313,1685,3209,3147,3141,3227,3225,1053,2261,1751,1745,2557,1707,3287,3281,1121,1123,1821,949,345,341,689,2031,1703,1497,1429,1493,2187,2187,1703,2785,2783,459,457,2933,225,217,2861,2853,1743,1113,1765,3091,1761,2159,181,2155,3089,3091,3087,1139,2079,1165,1163,1067,777,3015,3185,3195,3191,3367,2563,1193,3029,3411,3405,1101,2735,3237,3235,131,127,1765,1125,1761,2569,2851,2559,3221,3215,1235,627,629,625,2857,1983,1979,2853,2279,1181,1175,2285,2271,2279,1181,1175,1227,2273,2281,2271,3149,3199,3141,3191,2749,2515,1575,1131,3247,3245,1831,75,2039,3231,2299,3487,1121,1505,285,2999,427,425,3503,3497,1915,1021,1911,3521,2919,2911,2569,1671,1665,3203,1411,1389,1113,1385,775,1047,1161,1165,3087,1585,2933,819,187,3203,2163,1197,1195,3145,947,3141,2743,3247,3245,2709,3247,3245,1495,1499,1891,2999,3001,1493,3167,1719,1717,3501,3497,333,1311,2725,509,2717,2901,1557,1553,1565,1561,1549,899,837,833,893,2467,2461,1769,1767,3347,3351,2563,3185,1625,1621,1653,2179,2173,2939,1703,1483,3287,3281,2971,2985,2949,2941,2221,3319,3317,2569,2675,2671,13,11,3411,2249,2247,3405,2669,3265,3269,3263,3071,3077,3067,3199,3191,2375,2373,1123,2675,2671,2707,2471,1883,1907,1905,2719,2569,2395,2391,19,11,2041,375,3087,373,2055,2047,2955,2957,2951,233,227,1757,1755,851,593,1011,3107,3103,1103,2187,2981,3035,3521,575,3425,3049,3203,803,1187,1077,857,3519,3513,2759,2767,2695,2687,131,127,1179,1175,1113,957,953,3193,3191,3319,1011,847,841,3317,1575,2623,2617,3425,3145,3141,2531,2527,1671,1665,3203,3205,427,425,1607,1429,1613,1611,3163,169,165,2739,3239,3235,3073,3079,3067,1069,131,127,153,145,3425,1169,1341,2545,2515,581,573,1731,1727,43,41,1601,1071,3089,1073,3233,289,737,3223,3215,957,953,1671,1665,1713,2263,2265,3237,3235,2125,2123,2121,2117,1141,3123,3133,305,2191,2983,1141,1597,1603,1585,1575,1199,1195,961,451,2659,449,2653,1587,3423,819,2215,1481,3147,3141,237,1179,1175,455,449,427,425,2855,3479,2853,3473,2013,2017,2011,2767,3177,2979,1731,1727,2743,1785,2515,2745,993,2739,1495,1493,1431,2901,343,341,2729,831,775,2089,3095,3093,3189,1669,1665,3517,1679,1297,1289,1635,2715,115,2095,2589,3377,3375,3379,353,3483,3087,1093,1133,1131,1405,1403,1161,1165,3149,3141,2621,411,405,2617,1511,1551,3021,483,485,479,2775,3155,1173,1169,451,3527,449,3523,3207,1047,3073,3079,3067,2589,931,1093,3203,3025,451,3529,449,3523,1401,1395,3087,1497,1493,3425,2933,2101,2133,2097,2127,3239,1253,1251,2589,1179,2229,1181,1175,2163,187,2155,535,3011,1113,1187,2973,2021,1139,2045,2933,951,2675,2671,2205,2205,2985,3125,1597,2981,3117,2697,669,667,1101,943,1765,1761,2421,2417,2675,2671,1449,1447,1511,3411,3405,455,3525,451,449,3529,3523,3185,3423,3425,3395,2919,2911,2739,2503,2733,305,3115,3193,3191,1389,1113,1385,3179,2521,2517,2845,3351,3345,3457,2447,2433,1027,1025,131,127,2507,285,285,2591,2825,2181,2179,2173,1531,1529,2933,2471,2471,333,567,1213,1211,333,567,571,1079,1183,1175,1447,1445,315,829,495,489,1207,1049,2651,2589,3453,2089,2095,991,3265,3263,1557,1553,1565,1561,1049,885,799,1011,845,841,1019,2999,1161,2507,2981,45,3239,1601,1595,1427,1929,1925,3237,3235,1535,1529,1743,2553,3313,539,1093,993,3319,2565,3317,3031,3239,3235,1485,2565,499,497,3105,3021,3103,1541,2915,1669,1665,2015,2011,2911,3521,3223,3221,3215,1365,1113,221,217,1497,1493,589,3175,45,41,1091,3097,3093,3411,3405,285,1669,1665,829,529,527,2733,3185,2691,2687,2101,2097,1237,2715,2249,2247,1145,3507,1495,1493,1953,967,2965,1197,1195,2255,2247,765,2085,2471,1139,2487,2483,2695,2687,1113,1131,2935,377,2715,2661,2653,615,2817,2471,3455,1421,1417,169,165,1495,1493,1733,1885,1727,2569,2589,1731,1727,1929,1925,3203,3203,1719,1725,1717,1197,1201,1195,2185,131,2101,127,1141,1143,1009,2393,2391,481,3561,479,3557,2961,2759,3197,3191,3199,3191,661,441,439,1131,1069,2261,1205,1429,1431,1263,3117,1261,17,1275,1311,11,1273,2175,2173,3507,3385,2933,169,89,81,165,907,2205,3203,169,165,1405,1403,757,753,233,227,1697,1161,1165,2937,661,1635,2163,2155,3293,473,1607,1483,3233,3157,3155,1601,1595,2647,3425,3203,3205,643,635,2927,2929,1117,3031,2039,2547,153,145,285,1757,1785,1755,1551,1565,1559,1165,2177,95,91,2173,2471,333,567,907,169,165,1131,3001,1595,2251,2247,993,3203,2375,2373,1483,1205,333,3025,3203,2693,2687,2937,661,3031,1085,2909,3107,3103,3457,1575,2623,2617,1421,1417,661,737,735,1067,1421,1417,2593,1495,1541,3203,1729,1727,1141,1497,1493,1161,3567,3565,3209,3207,3205,767,1531,1529,3185,1165,3257,285,519,2329,1841,2331,1163,1427,735,2619,2617,3253,3245,3507,1179,3319,1175,781,2531,1883,2527,1465,1427,451,449,2289,3223,3215,2205,729,931,1253,1251,3145,3141,1011,3203,2433,3293,473,1613,1615,1611,3145,3141,1481,1733,1727,2503,2739,537,2747,1181,1175,289,3203,1011,55,3451,1431,1429,1427,1841,2919,2911,1613,1611,3115,2299,2301,3003,3145,3141,827,3145,3141,3239,3235,1133,1133,153,145,1757,1755,943,937,571,1117,3025,3025,1117,1053,1541,1539,3311,3475,3473,1223,1229,3347,3239,3235,3031,345,341,3507,3287,3281,3287,3281,221,217,3153,2187,3437,765,111,109,1939,1947,1213,947,1211,2943,2941,2181,2173,3185,1595,423,415,2105,2097,1275,1273,2041,3143,3141,3143,1275,1273,3141,2051,781,2047,1803,309,1513,2313,947,2307,1293,1289,669,667,943,937,3041,3425,943,937,943,937,2937,2217,143,509,2989,3419,3451,1313,3385,3389,3381,799,53,3031,3031,1543,3511,375,3097,3093,1237,2735,2059,99,2061,91,1213,1211,2059,795,791,2723,2723,175,3157,2831,2505,2205,2507,3453,3347,3345,591,587,2933,2935,2931,2563,1497,1493,345,341,1105,3447,1073,2641,2639,1429,2821,1181,3165,1175,3087,1039,1037,2303,1523,1093,3153,3155,3025,3081,3067,3075,3081,3067,3003,3193,3191,2975,2971,3129,3139,3447,3163,2565,2939,2825,627,625,1757,1755,3287,3281,1275,1273,1053,1447,1635,2989,3451,3099,1115,3093,3419,2159,2155,3149,3141,3199,3191,1111,1115,943,937,315,1117,1303,1299,1237,735,733,2525,2517,3175,1113,3407,2745,2741,1197,1195,2349,2345,1523,2985,799,2059,805,1213,1211,3031,315,2179,2173,2821,3507,2819,2913,2911,985,979,2095,1439,3145,2507,3141,3087,781,345,341,2375,2373,1067,2985,2593,1021,1131,3119,1125,1349,1301,1299,1347,1249,3175,1243,1253,1251,3025,2985,3149,3141,993,3483,2295,1263,1261,577,3031,315,1139,2187,2971,3149,3141,1609,991,3145,1093,1713,1235,545,2759,103,765,1533,1529,1401,1395,1123,2881,2871,2863,2873,2985,481,479,2969,1783,1053,309,1237,803,2961,15,11,1183,1175,3527,455,449,777,2147,2145,2269,2267,2427,2423,2985,3185,2269,2267,3041,3511,311,3145,3141,3145,3141,3185,1253,1183,1175,2229,2227,3239,3235,835,833,2323,2321,2099,2097,3063,3209,907,3057,835,833,2559,297,293,917,911,2525,2517,3063,3209,3057,1895,1889,879,873,2295,1405,1403,323,1021,1391,1385,3435,653,651,2995,1117,3267,3119,1111,777,1497,1429,1493,3101,3093,3055,1101,1107,1181,2235,1175,1165,131,127,3209,3455,2937,1117,2861,2853,2505,2205,2507,2985,3183,1983,1979,3101,3093,1983,1979,285,3149,3141,1213,1211,1213,1211,3239,3235,1705,2491,2487,2483,2935,3175,3345,1197,1195,2269,2267,2385,2383,1703,1093,3087,3385,3381,2939,3239,3235,735,733,2273,2281,2271,2691,2687,3153,3155,1523,3455,1193,3311,917,911,99,91,1067,3271,3269,3267,3263,1831,2565,1133,1505,143,895,893,2867,2863,2743,309,2507,711,3271,703,3263,181,1105,3175,3029,2981,2971,2985,3271,3269,3267,3263,1019,1021,3025,2985,3183,3265,3263,3059,3057,3059,2505,2269,2267,3165,3119,3117,1731,1727,1495,1493,2211,3203,3049,2973,2375,2373,883,3145,3141,2217,1557,1565,2985,3183,131,127,153,145,455,3527,449,3523,1597,49,41,1165,2587,2577,3185,1585,2089,781,2695,483,479,2687,3185,2771,2831,1253,1251,3529,3523,3239,3235,3267,3263,1069,3183,3425,49,43,41,2935,1555,1563,993,2325,2321,2017,2015,2013,2011,2349,2345,1213,1211,1669,1665,1401,1395,2515,475,471,3337,3341,3335,1165,2985,2985,2985,3185,3021,345,341,1101,1105,289,529,287,3175,2733,3115,2323,2321,3145,3141,3115,2235,2227,3025,1263,1261,571,669,673,667,2549,1183,2229,1253,3507,1175,2227,765,111,109,2651,2985,1511,1515,3239,3235,1531,1529,2825,627,1213,1211,2525,2517,765,767,735,3145,3149,3141,3115,1429,1707,2745,535,2741,3185,1213,1211,1713,3455,1207,1181,1179,1175,3203,3239,3235,3185,3105,3103,1427,2725,1523,3311,221,217,2691,2687,2985,2311,2307,3527,455,449,3523,1495,1493,2211,1115,3451,3031,1541,2939,3239,3235,3185,3029,3385,3381,1113,509,1953,1427,3091,2393,2391,2407,2401,3003,1021,3025,3119,3117,1197,1195,363,545,2759,3165,2641,2639,1021,1429,153,145,2375,3203,2373,1483,1523,1785,95,91,2427,2423,1607,1411,1523,49,41,3119,3117,1379,1105,1381,2641,1635,2639,1511,1515,1483,1595,1253,1251,1511,1515,3145,3115,3141,2985,3031,1575,3175,225,217,2333,3257,1429,451,449,1253,1251,353,2825,931,2289,1237,315,1729,1727,2747,1429,3451,1431,1429,1541,475,471,3239,3235,3387,3461,3381,3459,3387,3461,3381,2021,3419,3415,2059,339,325,335,3247,3245,15,11,2933,2935,2931,989,1253,1251,1253,1251,801,803,797,3173,3171,55,51,609,603,3173,3171,3163,3545,3539,2621,2617,721,1733,1727,2039,407,405,1315,3305,3299,605,603,2221,3223,3215,2215,2111,2115,2107,77,2041,305,1165,2029,643,413,405,3237,3235,3345,143,1741,605,603,87,81,2055,2047,181,413,405,3231,3231,3223,643,3123,3133,339,335,1935,1943,1935,1943,2139,2135,1225,1455,1231,1793,1803,1791,2719,2885,2883,1805,1445,2357,1681,751,1685,1803,839,833,2971,3145,3141,857,2273,2281,2271,103,2647,1161,907,3229,369,1315,857,2559,1805,579,581,2211,2301,2299,3517,2763,2761,2985,1677,1329,1325,2211,2973,905,2985,1481,1481,2169,2165,1145,839,833,3423,2763,2761,115,109,2299,427,425,643,1237,1155,1165,2205,781,2115,2107,1315,1235,1301,1299,373,2981,103,1635,1189,1649,2451,2935,1685,1481,673,667,2825,2229,1169,2985,1483,643,1523,2029,2125,2061,2117,95,181,2985,2711,369,2933,1387,1385,2339,2337,369,2303,2303,739,2303,53,737,2273,2281,2271,1143,275,273,3507,95,997,25,21,857,1019,3483,941,937,1653,3227,1293,837,833,1289,2071,757,181,2067,1061,3125,3135,3193,3191,1097,741,3483,3269,3263,1377,1939,1947,575,1377,3433,1803,103,2105,2097,1235,3183,2299,343,341,2559,3055,2059,2989,2885,3183,2883,1067,1541,757,753,2105,2097,1885,3167,3229,897,893,3107,3103,1241,527,181,1351,1347,3003,1927,1925,1091,1097,3101,3093,1035,1029,1181,1175,1019,1785,3385,3381,1187,1139,3117,2507,2715,2565,2375,2373,2579,2825,627,1449,627,625,1445,643,2989,2569,1365,3419,3239,3235,2703,2697,3237,3235,131,127,1677,635,3507,2985,2567,1245,1243,1481,1479,2989,3193,3191,2685,1263,1261,1435,103,3425,3143,3141,2491,2483,1483,993,3003,1209,2029,761,753,3025,65,2099,2097,2185,1881,153,145,3195,3191,1419,1417,1523,1165,3145,2221,1401,1395,3145,3141,967,965,3525,3523,1729,1727,301,293,3189,3187,3425,3419,3123,2935,3133,1723,1717,215,465,461,2535,2527,1523,591,1633,1067,3529,3523,947,2937,781,2965,3247,3245,3055,3047,3457,1691,1685,2935,2931,399,403,395,3001,2711,2861,2857,2853,3125,1149,2241,3135,1847,3035,1021,851,983,1155,1057,143,2111,2107,3227,3163,3227,1703,265,263,3163,2703,2697,181,2159,2155,1769,1767,1077,3247,3245,2669,1653,1651,1091,3247,3245,523,3239,3235,2569,1009,2221,3185,3411,3405,233,227,1009,847,1669,1665,1205,1171,1785,3379,285,43,41,43,41,1009,845,841,2709,485,479,765,767,111,109,1253,1251,131,127,131,127,1101,2175,195,2173,1531,1533,1529,3087,2825,3483,3165,3025,1511,2641,2985,2311,2307,2639,3025,2579,673,667,1179,1175,851,1523,3035,853,1245,1243,3101,3093,643,1113,1365,1077,3003,3031,2717,3003,3119,1927,1925,143,2111,1131,1961,2393,2391,1719,1717,1523,1847,1851,3233,941,937,1207,2579,1595,2717,3001,2711,1729,1727,2329,1097,1847,3233,1851,1633,3003,2185,1253,1251,3095,3093,1749,1745,3169,3521,441,439,3095,3093,2605,1607,2603,1595,3239,3235,2675,2671,2923,2925,2921,2273,2281,2271,813,617,1455,59,1145,1047,577,399,395,831,1223,1229,3237,3235,2189,3237,3235,297,3153,293,1653,1047,2973,805,1763,2943,1761,1189,3123,3133,169,771,165,139,85,81,3257,1253,1251,1711,3269,3263,1253,1251,2913,2911,1165,2205,3193,3191,1703,529,2137,2135,2937,1091,3001,2221,233,1541,519,3185,23,831,21,2147,2145,589,799,3095,2999,3097,3093,2983,187,447,445,439,897,893,1153,2519,2517,2159,2155,441,439,1315,2325,2321,2559,2549,3183,2729,3545,1237,3539,1155,1763,1761,2507,1555,1563,131,127,3411,3405,3411,3405,1253,1251,727,1575,1201,1195,1179,1175,1161,1483,943,937,3005,3447,885,3149,3141,3071,3077,3067,3153,3089,1635,2675,2671,3457,2249,2247,3193,1321,1319,3191,3115,97,91,721,3011,3163,2989,1039,1037,951,359,3087,79,2071,2067,1449,539,3209,1121,1117,2943,2941,687,333,2819,577,2775,2973,2969,333,1263,1261,1703,103,2819,3001,375,991,993,3095,2269,2267,3093,3143,3141,2273,2281,2271,3097,3093,1435,1485,1479,3071,3077,3067,799,805,1551,1559,3123,3133,2985,1541,1481,1483,1201,1195,1499,1493,2709,2709,781,2913,2917,2911,589,2137,175,2135,3369,481,2471,479,1763,1761,3239,3235,1241,329,1419,1417,1763,1761,2555,2925,2933,3239,3235,2789,2787,2783,2593,375,3507,3575,123,2073,117,2067,339,1071,2185,689,1401,1395,301,293,2185,123,117,2917,2911,1597,451,449,933,955,953,3147,3141,601,103,1531,1529,2249,2247,2099,2097,2021,2019,2311,2221,3507,3511,2249,2247,727,1201,1195,2269,2267,647,1189,1121,1117,3241,3235,1687,1703,431,425,3101,3093,2775,3055,519,2385,2383,1763,1761,1165,2937,2407,2401,1093,3029,1193,403,397,395,1163,3475,3473,297,3153,293,1497,1493,2299,2989,653,651,3249,3245,3173,3123,3133,1851,1067,3209,3237,3235,1101,2413,2409,2471,1551,1559,2569,2375,2373,2709,3163,2949,2941,2973,3411,3405,1197,1195,3203,3207,3209,1653,2759,1551,1559,2743,1483,1435,951,945,2787,2785,3407,2783,2221,233,339,505,497,1253,1251,3387,3381,3163,15,11,169,2109,165,2845,2593,2851,295,293,1401,1395,3479,3473,455,449,1199,1195,3189,483,479,455,449,2185,1145,1481,1479,1207,3313,2709,2273,2281,2271,3095,3093,43,41,1499,1495,1493,1711,3379,3193,3191,3175,1077,3209,3425,2935,1597,2969,571,3071,3077,3067,3341,3335,3115,2289,535,1531,1529,1511,2269,1253,1251,2267,2675,2671,1101,951,2175,2173,1207,735,1201,1195,1551,1559,1145,1113,1207,15,11,131,127,221,217,2289,3313,539,1181,1175,933,955,953,2737,1113,1365,1091,1093,2471,2691,2687,2785,2783,377,3237,3235,1197,1195,1595,805,169,2109,165,2107,2587,2945,2941,3561,3557,1427,2983,1141,3521,3095,3093,2407,2401,2961,819,1461,643,1483,3425,2385,2383,1481,1487,1479,3293,2269,2267,2777,951,2689,2687,1411,1575,1595,1483,3293,1429,3209,1729,2983,1727,3015,2269,2937,2935,2267,931,545,3293,1091,3175,3125,917,911,181,605,603,181,2059,1069,3423,1067,2119,2117,75,2329,1483,2899,2897,2573,3009,1047,2225,77,2079,749,529,531,2953,2951,2017,2011,783,1693,2893,1067,1541,3183,2147,2145,441,439,67,1245,1249,1243,295,293,349,341,1569,535,2901,1723,1717,193,3491,3489,2147,2145,143,2115,2107,3443,3411,3405,1567,441,439,3209,2187,2999,1589,577,2017,2015,2011,1719,1717,3479,3473,121,117,1533,1529,3337,3335,2973,2101,2097,531,527,2953,2951,3209,3147,3141,831,519,2545,2543,2785,2783,2785,2783,991,295,293,2559,2551,2259,2549,289,289,2411,2409,2559,2677,2671,2549,3219,3215,2607,2603,1597,803,3221,3215,119,117,119,777,1927,1929,1925,2785,2783,3227,1153,1147,2549,3227,3345,589,799,1827,589,2785,2555,2153,2145,2819,617,1079,2819,617,3407,2303,3287,3521,3281,1719,1677,1717,131,127,131,2185,127,1805,1227,3115,1551,1559,297,293,1805,3265,3263,737,799,879,873,2785,2783,1189,1189,2303,2935,799,131,127,2785,1805,683,2041,1173,2901,509,799,1827,1551,1559,113,109,3409,3405,3087,375,1805,1805,247,1141,245,3287,3521,2785,2783,823,131,127,509,515,3425,363,2565,1619,1643,1641,2185,1619,1643,1641,741,2045,3189,741,2045,1079,2535,3237,2527,3235,2535,3237,3235,1805,1263,1261,3185,1551,1559,2535,2527,605,363,1079,539,535,537,533,3491,3489,1145,2917,2911,1173,1169,333,297,293,2859,2853,2879,2873,1461,1145,271,281,273,1551,1559,605,2859,2853,1531,1533,1529,1173,1173,2215,363,2101,2097,605,603,605,603,2103,3127,2593,2097,3137,1187,2241,527,2593,2593,3425,577,3183,1885,1859,173,1823,617,133,127,1193,1511,839,833,857,3185,849,1221,1227,3445,2991,2503,3091,1985,3165,1999,1997,1483,1421,3153,325,3227,59,1189,1253,3107,1251,3103,2185,3127,2995,3123,3133,481,479,131,127,3185,1483,3525,3523,413,405,781,3453,2061,2099,2097,831,1315,447,439,3111,3103,3429,529,507,3409,3405,725,141,3427,2767,1241,1139,1137,757,755,753,899,1241,2507,589,1155,3095,3093,3347,173,171,1915,1883,1911,3415,3419,3223,3215,1205,2299,2767,353,2831,2825,3183,1193,2937,3229,3239,1111,2739,2567,3157,3151,3425,345,341,3425,1031,1029,3127,3137,1705,635,1205,3025,2827,2851,1677,2103,2097,3025,2685,2181,2177,2173,1483,1479,3425,499,497,677,2971,2491,2483,1445,2579,1093,2999,3185,125,2089,117,3375,933,2733,757,755,753,1649,1649,1533,1529,349,341,1141,2789,589,591,2783,29,3175,689,21,345,341,131,127,131,127,2099,2097,1763,1761,905,665,1315,693,2937,3243,3235,481,479,3127,3137,3451,465,461,527,531,2545,3435,3425,345,341,3239,3235,1057,781,1411,1407,3153,323,2845,3241,3235,967,2943,2941,1093,1349,1347,1153,2989,2995,3199,3191,3185,1587,2463,2461,1253,1251,345,341,2985,935,3185,2949,2941,1139,413,405,79,1113,1465,1551,1559,277,499,273,497,2579,1985,3165,1999,1997,593,329,509,507,163,161,2739,3375,153,145,2545,465,461,1637,3185,3525,3523,369,3375,3357,3353,2665,2471,2309,2307,597,1587,1587,1785,2249,2247,3197,3191,3207,1101,799,1511,1575,2229,1179,2227,1551,1559,1445,2999,757,753,527,531,3195,3191,1021,13,11,79,2999,935,947,2939,1955,1953,3239,3235,2939,2933,3185,3223,3215,2103,2097,1465,1483,1421,2591,527,1535,175,1529,589,1535,175,1529,1421,1411,1417,163,161,1141,349,341,3157,3151,3099,3093,1193,3419,1721,1483,1131,1421,1411,1417,1145,593,3099,3093,3207,3197,3191,2289,3223,3215,2739,593,1637,1613,1611,1613,1611,187,187,185,949,53,731,571,565,731,187,723,63,67,2239,1139,135,127,3311,3311,1687,575,577,551,573,2025,55,1193,1101,951,445,439,1541,847,1009,841,1785,1139,1181,1175,2093,847,3163,841,13,11,687,1011,993,131,127,2917,2911,363,2207,2985,13,11,3023,2159,2155,1011,1103,1011,3319,3317,483,479,1011,3023,3175,2157,2155,1011,1181,1175,15,11,3055,1103,1105,1483,1635,187,2123,2117,1019,1179,1175,2099,2097,829,2061,3443,1265,1261,2273,2281,2271,495,2311,2307,3351,907,1265,1261,1265,1261,3443,3447,3351,467,907,3389,3369,529,3381,643,1765,1761,2189,3203,3237,3235,107,597,3389,3381,3437,2079,1019,3203,3209,1019,3185,187,2917,2911,1019,35,31,3369,3143,3145,3141,1165,1161,1019,3243,3235,1393,1385,737,819,855,1019,817,545,2039,2037,803,2273,2281,2271,2555,333,545,1597,3369,1719,1717,1481,1197,1195,3087,1165,1161,2039,2037,931,29,21,1595,3089,3447,363,535,29,21,907,905,1483,1803,617,827,3091,1677,1675,1677,2925,3423,2187,3251,3245,2999,2785,2783,3015,3011,3007,671,667,3045,2981,2043,2041,781,669,667,1763,1761,1769,1767,2557,3053,2551,2565,3265,1123,3263,1743,2045,749,1751,1745,531,1703,1687,1705,1283,1287,1281,3001,1345,2565,3159,3157,3205,3419,3167,49,47,2549,1131,511,3409,3405,1379,1241,3091,1345,2545,3183,345,341,2557,1705,1785,1757,1755,3453,3411,3405,3411,3405,1739,2565,3253,3245,605,2777,369,603,1883,3517,3517,309,3349,3097,3093,175,749,2051,2039,1733,1727,2041,1575,947,2695,2687,2825,1735,1729,1727,605,3425,603,577,1859,1769,1767,3097,2635,3115,2633,3093,349,341,1379,1245,1243,1793,1791,3407,3405,2797,3153,3147,3141,1785,1731,1727,3433,1785,3507,3383,3389,3391,3381,3505,3419,1703,2711,2229,2521,3025,2227,2517,993,1095,577,337,499,3467,497,3465,1245,1243,687,1743,1671,1665,3001,2985,1397,1395,1421,1417,1163,2505,2789,2783,955,953,1091,2919,2917,2915,2911,1473,2565,2269,2267,1483,1523,3123,3133,1209,3419,1481,1421,1417,2691,3559,2687,3557,1245,1243,2629,1117,2695,2687,649,641,131,2101,2097,131,2101,2097,1803,1125,1883,1597,3185,3319,847,841,1187,213,3445,3237,3235,1125,1651,2991,3053,3051,1117,1123,955,953,3287,3281,429,425,1165,1705,647,1057,3101,3093,2775,2787,2783,1387,1385,847,841,2413,2409,1687,3087,725,2961,1747,1745,367,947,2935,1389,1385,1735,1729,1733,1727,2955,2951,1341,1141,535,329,2545,2785,2787,2783,1315,2667,2995,2269,1091,2267,1785,1769,1767,1667,1711,1665,767,769,3319,3317,3375,3185,601,639,1345,1785,2635,2633,455,449,1585,1605,1583,1591,349,341,1667,1711,1665,2123,2117,339,951,1719,1723,1717,2915,1093,2911,2419,2635,2633,2133,2127,2985,2229,2227,2175,2173,3455,567,571,2547,2635,2633,1515,1513,315,2999,1161,1283,3175,3107,3087,3103,2825,2973,1729,1727,1793,1791,1531,1529,947,1389,1385,1161,2999,3175,15,11,1113,3371,1163,907,3385,3381,2289,1237,2933,1703,367,2463,2461,1931,339,1925,3119,3165,1131,3257,1725,1719,1723,1717,1739,2137,2135,1739,1465,1379,967,1253,1251,3101,3093,1739,1131,1595,1719,1723,1717,1575,931,2299,1671,1667,1665,2983,1481,375,2747,1283,3455,1685,1201,2249,935,1195,1201,2249,935,1195,2247,3239,3087,1253,1251,3235,2641,2639,3319,3317,1253,1251,2567,3187,2547,3429,3425,1057,1059,2547,3207,1239,1233,3447,1181,1177,1175,499,497,655,651,17,11,1181,1177,1175,3341,3335,3261,55,2563,527,613,2187,601,1145,3519,831,2971,3393,1353,1347,2197,2193,839,2221,1333,833,2985,735,1379,535,1653,2491,2483,531,1253,1251,1483,805,1763,1761,689,691,3091,1081,1297,1293,1289,3427,2187,2241,1285,1189,2143,169,771,2135,689,3125,3135,2105,2097,3393,3143,3145,3141,2691,2687,3479,3473,319,669,667,2899,3145,3141,1201,1195,781,729,1785,3349,1241,3547,3539,3239,3235,1315,1637,2885,2883,2885,2883,579,3357,3353,3411,3405,691,689,799,757,1805,3453,3455,1483,1415,1409,143,1973,1967,1965,2153,2145,2095,1541,2061,1455,2159,2155,187,689,2159,2155,2549,3275,3273,15,11,1483,1575,2825,3219,3215,1483,1379,377,1329,1325,2299,3457,1383,943,937,951,689,1847,2197,2193,1597,2937,947,15,11,1635,853,1321,3001,957,3197,1319,3191,3049,3143,3145,3141,627,625,2095,2147,2145,2985,1449,1047,2641,2563,2639,2989,2235,2227,2259,1111,2933,2935,13,11,2229,2227,3185,1141,1329,1325,3025,2311,1311,1349,1347,2307,287,1435,1053,1047,3239,3237,3235,3025,2989,1679,85,81,1677,1635,1577,3221,2825,3215,319,315,2961,1551,1559,3205,1677,2311,2307,3145,3141,2491,2483,1399,1395,3239,907,3235,345,1081,1601,327,251,249,1163,1985,1999,1997,2661,2653,3507,1329,1327,1325,2089,3149,3147,3141,3491,417,681,3489,1337,339,333,2185,3525,451,449,3523,2261,1531,1529,1265,1261,187,2039,613,1763,1761,601,1165,3367,1021,1597,1553,1561,1603,1593,15,11,2691,2687,2311,2985,2307,1471,107,3193,3191,661,2973,2185,2191,1623,1627,1625,1621,2917,2911,591,1847,839,833,103,2187,327,321,2407,2401,3143,3141,605,603,613,3441,2885,2883,1187,3125,3209,141,1311,131,127,2937,2935,2641,2563,2639,3411,27,21,3405,653,651,2989,535,2775,581,1851,2091,2087,1163,577,2735,265,271,263,2785,2783,2187,669,667,781,3097,3093,2311,2307,2311,2235,2227,2307,1653,887,1895,1889,2675,3031,2671,687,441,439,1551,1553,1559,1561,2651,2775,2743,85,2049,81,2047,1077,1313,909,2105,2097,1391,2937,1385,2457,2453,1465,505,497,2785,2783,2989,2197,3125,2193,2985,1495,2211,1493,2039,2935,13,819,11,3269,3263,665,417,415,3393,1315,1307,1409,1415,3479,3473,3163,957,953,3479,3473,285,2187,43,2235,41,2227,2095,2091,1553,1561,1601,1283,411,405,327,321,3199,3197,3191,1465,1461,153,145,2187,1783,1785,1781,2187,3451,485,479,3529,3523,2261,435,1623,1621,1145,2503,1445,1635,2289,3341,3335,567,1161,2981,1531,1529,613,589,1101,2039,187,1139,2529,2527,3275,3273,2235,2227,581,1483,1161,1183,1175,2985,3377,2229,2227,673,667,1163,3239,3235,3491,3489,1019,2235,2231,2227,1311,1131,3319,3317,1461,1465,1463,1187,377,3175,2311,1067,2307,535,3187,1173,2105,2097,2105,2097,3239,2143,2135,689,2187,15,11,3183,1315,1165,3239,3235,2407,2401,1719,1717,2061,441,439,187,181,3157,1757,1651,203,199,2999,3039,1379,1461,1465,1463,1465,3425,1483,1483,1635,735,2311,2307,2061,3209,1483,1575,1575,1785,181,2623,2617,931,1165,1427,203,199,3143,3147,3141,2565,2565,1485,2363,2361,2531,2527,3257,2647,2185,2719,1651,3031,3169,3005,3427,2185,343,341,2185,3427,125,751,117,661,3433,359,2357,3189,2563,3229,3425,2795,799,801,1731,131,1727,3545,3539,3429,2681,1705,3577,2295,1069,3453,2543,2541,2691,2687,441,439,275,273,1729,1727,1609,3241,3235,3009,2969,2801,2121,2125,2117,3453,949,2989,3429,1141,3357,3353,843,841,3411,3405,843,841,2629,1463,1197,1195,2545,823,1399,1395,577,547,1131,2753,2185,905,931,3559,3557,1541,1597,175,1201,1197,1195,547,3423,1597,285,2503,131,2099,127,377,3397,1117,3231,2981,3199,3191,3521,1131,3411,3405,799,3249,3245,3085,2969,3003,2515,3153,2775,3427,3429,3189,1703,2651,577,103,3507,3411,3405,3203,3221,3215,1141,843,841,2743,2651,1651,2715,801,3101,3093,2185,3239,3235,2983,1145,1141,2647,2503,285,527,947,2691,2687,1485,1953,1729,1727,1885,547,1483,2329,3257,2775,3429,3293,1463,2385,2383,3241,3235,3237,3239,2015,3235,1481,3031,2249,2247,1019,2851,3071,3077,3067,2651,2355,2851,3519,3517,265,1809,263,829,3185,3423,3005,175,1891,1889,2279,2285,2271,2279,2285,2271,3435,3433,353,767,1011,1687,3265,3263,1315,1751,1745,3429,1209,133,127,3427,3429,3239,3235,1731,131,127,1727,1349,1353,1347,75,2105,2097,1881,1883,1483,3227,3547,3539,2105,2097,181,1541,1785,335,325,339,1891,1889,2249,2247,3159,3575,3425,581,3429,2587,1237,3519,1129,1405,1145,339,325,335,2825,2565,3425,1129,1405,1403,1135,851,1019,3199,3191,3521,3425,1193,1185,2359,645,3183,3457,3453,1113,1953,801,2181,197,2985,2977,845,841,1435,805,3117,3321,3317,2629,1609,1399,1395,829,1209,2775,333,2845,2591,2525,2521,2517,2629,3125,3135,1627,1621,1597,909,905,3575,2359,3499,3501,3497,85,81,65,1145,2185,3429,3423,3425,1399,1395,1471,1477,1541,2089,1315,175,1535,1529,363,3559,3541,2677,3539,3557,3239,3235,2677,2671,1619,1645,1643,1641,3015,3011,3189,2981,2241,141,1141,799,2101,131,127,2097,1993,1989,1193,1185,3435,3433,3529,3527,3523,3089,3091,339,325,335,545,2947,2941,2999,1165,1497,1493,3521,1225,1231,3239,3235,1141,3087,3409,3405,3425,545,1151,1147,1145,2189,845,841,1301,1299,845,841,907,3239,3235,2375,2373,2691,2687,2377,1141,1297,1289,1803,223,2507,253,1711,1703,1729,1727,3425,2775,1141,1597,1231,2677,2671,1145,3207,2947,2941,2279,2285,2271,2471,1021,3185,1101,2241,1143,1141,2691,2687,3025,2341,2175,2173,1183,1175,3511,181,2825,3435,3433,3581,1601,1609,2691,2687,1953,2471,1113,2329,1993,1989,3241,3239,3235,2143,2135,1141,3517,2865,2863,2947,2941,339,325,335,1131,1069,1135,1379,1609,153,2065,145,2471,2329,3511,1253,1481,473,3293,471,3105,3103,2901,3125,3135,1225,1231,1217,2269,2267,2985,2269,2267,1337,1333,1335,1331,3243,3241,3235,2549,1207,3165,403,395,3503,3497,2851,1445,2241,3359,3353,3167,141,93,91,3167,173,175,2901,3451,1353,1347,1179,1511,1553,1175,2061,2231,2227,597,2975,2901,951,3163,3425,413,405,3165,2799,3163,1179,1175,413,405,1213,1211,3025,333,1341,475,471,2965,2959,527,1353,1347,1315,3507,1131,3091,2677,2671,935,1393,1385,635,3511,3507,3195,3119,3191,2965,2959,2901,3125,3179,3135,3237,3235,1237,1585,2269,2267,3163,3163,2799,305,3241,3235,2785,593,3147,2783,597,1237,1585,1513,1511,2985,2971,1393,1391,1385,413,405,311,1315,3389,3381,1371,475,1369,1371,475,1369,1575,339,335,481,479,1511,3311,951,475,477,471,2231,2227,2269,2267,635,643,3311,1579,2241,1483,375,2563,801,2211,375,2187,1047,2185,1009,2559,771,2589,1749,1745,2293,1343,3367,3453,1541,1575,1873,1871,173,1205,1205,3379,67,2647,1263,1261,1047,2825,2659,2653,1205,3409,3405,597,3185,2589,1205,2293,1187,2147,2145,657,651,1481,3477,3473,257,3341,571,495,2909,1205,1285,1283,1205,3451,3451,647,1455,1201,1195,2089,3237,3235,343,341,831,1677,3451,2913,647,1145,1181,1179,1175,59,51,2681,1139,2253,2247,3385,3381,2701,2697,3123,3133,3491,2413,3489,3247,3245,1069,1001,1003,999,3021,251,1197,991,249,1195,2099,131,127,2097,133,127,1163,3187,631,625,2507,2559,515,2989,1811,575,3451,1811,349,341,909,1483,2241,1765,1761,99,91,2795,2647,799,247,245,2503,111,109,725,509,3519,577,1541,3575,3319,3317,1967,1965,799,757,753,897,893,735,1155,855,829,737,2567,1689,2161,2155,2777,1165,2269,2267,1575,1579,1573,1765,143,1635,947,2295,343,341,3199,3191,3165,3003,133,127,2269,2267,1405,1403,569,1181,1179,1175,1201,1195,2299,2701,2697,2393,2391,725,1383,3453,3451,2829,1145,509,515,1001,999,247,245,3433,1341,1419,1417,131,127,2499,2493,539,3419,247,245,805,3265,1265,1261,3263,2845,2021,1481,1435,1437,1239,933,1163,991,2829,3221,3215,2989,3425,3427,333,2681,2565,3453,3575,3023,2525,2517,2815,247,245,1155,3143,3141,843,845,841,1365,831,363,1383,835,833,3265,3263,2001,2017,2011,2211,3023,1163,2167,193,799,2175,2165,1419,1417,3537,3531,2029,107,131,127,131,127,2099,2097,853,2723,343,341,925,519,3243,3235,1165,3385,545,3381,909,343,341,1071,3419,2261,1209,2487,2483,3345,3445,1597,181,1145,1137,1531,1535,1529,2681,2679,1263,2319,1261,2315,799,3345,3351,909,1337,2205,2305,2211,1263,1261,417,415,3495,3489,933,2917,3253,2919,2911,3245,247,245,3541,3539,2161,185,3319,3317,2241,2887,2883,1633,1631,531,3025,2427,2423,1161,3101,3093,143,2701,2697,3015,3003,2147,2145,3411,3405,3055,3053,1067,2569,3183,3453,3261,3165,435,431,425,1607,2975,629,625,2641,3025,2231,2227,2639,1139,1187,1193,1185,1101,3055,1705,737,397,395,657,651,3475,3473,2115,2107,781,775,3453,3451,1047,2241,1057,2279,2285,2271,1751,1745,2207,909,1389,1385,3185,1589,3265,3263,1019,2743,3257,369,847,841,759,753,2427,2423,3419,899,893,1915,1911,2207,3023,475,471,887,829,1579,2089,2049,2047,647,1483,131,127,3507,1131,373,2499,2493,343,341,3453,2221,233,227,1575,1579,1427,1163,1165,193,1481,1113,131,127,3451,575,455,449,3149,3141,2089,2087,253,3297,223,2477,2475,3475,3551,2683,3473,3553,3549,2099,2097,2123,153,2117,639,3239,3235,1757,1755,2855,3479,2853,3473,3319,3317,2499,2493,961,947,3183,1069,289,1341,465,461,2147,2145,3311,1145,949,2675,2671,1589,247,1139,245,1597,1895,1889,2711,2695,2687,475,471,601,2711,1455,653,651,3453,3025,181,1731,1757,1727,2499,2651,2493,535,2749,1511,531,589,803,1163,1765,1761,1389,1385,519,1183,1175,571,1101,2701,3475,2697,3473,1445,3297,3025,1597,2565,3297,2185,2029,2185,2029,829,827,1237,1597,1597,3143,3141,183,185,539,2439,2437,3463,3459,899,893,2211,1495,1493,193,181,3443,1421,1417,2561,1427,1389,1385,3237,3235,3257,1009,3411,1165,3405,2723,2777,1915,1911,363,2753,1139,3183,2185,2767,3475,3473,3443,741,2045,143,79,2667,2591,3443,2211,3507,2767,1597,1595,1163,1165,2887,2883,3203,3239,3235,1421,1417,1575,1579,1573,2241,1495,1493,1427,2211,3257,3437,2289,1495,1493,143,653,651,3553,3549,1481,2499,2493,2569,1633,1631,3203,3257,3507,3239,3235,1733,1727,575,735,2549,3393,2549,1977,1971,1019,1463,3005,3519,3513,1881,491,3375,2211,3361,133,127,2105,2097,77,2971,2491,309,2483,1297,1209,1289,2385,2383,769,131,127,481,479,3197,3393,1733,1727,2715,1069,59,1483,831,1237,2159,2155,3239,1785,469,461,3371,1891,1889,3443,349,341,1481,2675,2671,2797,1483,2985,2675,2671,1047,2825,3521,441,447,439,247,2471,245,3257,3447,3239,3235,1531,1529,3487,67,1451,767,717,2295,1019,1503,3001,805,799,1503,1501,221,217,1209,1485,3257,1597,1235,2185,481,479,65,3379,1531,1529,3525,3523,1209,965,1079,1081,2449,2549,2549,2449,2743,143,141,2385,2383,1741,1057,3089,3525,3523,1073,1067,1069,1065,1161,3297,441,439,1481,3031,805,1993,1989,103,907,895,3073,3079,3067,847,841,2743,2277,2283,2271,1155,243,235,3487,2743,1729,1703,1727,2449,2549,767,3315,1297,1289,1169,1783,2449,2549,2449,1993,1989,2985,345,341,1503,1169,1365,181,183,1091,2591,3525,1141,3001,1993,1989,2855,2853,1915,1911,1483,3577,575,1915,1911,2797,1429,1731,2651,1181,1175,1727,2651,1181,1175,1225,1223,1231,1229,2981,1141,2977,887,3419,3417,1225,1231,887,3229,1141,1143,1137,267,269,263,3443,3115,3261,3169,1047,887,1053,3243,3235,1019,857,2913,2911,2357,2947,2941,2943,2945,2941,2273,2281,2271,1811,3521,2839,1939,1947,793,791,1141,1187,1189,2593,427,425,3501,3497,2105,2099,133,2097,3407,3405,2491,2483,1047,3427,1139,771,3265,3263,2357,529,1201,1197,1195,2675,2671,749,87,81,2709,481,479,1223,1229,3351,3279,3273,977,59,1199,1195,805,801,3425,2191,3519,369,363,1047,3351,3279,3273,1461,1465,1463,2981,2977,799,3031,2549,187,131,127,3453,2295,2293,1541,3453,2521,2517,827,3157,799,757,753,2885,2883,3409,2789,3405,519,375,2569,3437,2999,3097,3093,3545,2295,3539,1215,1213,1211,75,2289,1785,2589,3559,3557,1379,1209,2357,1001,999,3031,3185,1187,1193,1141,1185,3457,363,913,1361,911,1355,67,1785,1253,1251,1379,1067,443,439,1091,879,873,879,875,873,2759,3029,1187,1349,1347,1181,1175,2299,2615,821,17,11,1635,1447,3097,3093,3115,125,177,2095,117,3001,799,861,1143,859,2831,2825,627,625,2375,2373,2797,597,545,3199,3191,1465,1463,1461,3031,1245,1243,3087,823,983,979,605,603,2829,2651,1169,3009,1113,1253,1251,3423,1163,1245,1243,349,3427,341,1743,2945,1667,2915,2941,3407,3405,1609,333,2273,2281,2271,2593,87,81,2829,3025,1091,1093,2915,2255,3005,2247,877,175,873,3091,3079,3067,2775,2777,3071,2837,3077,3067,3029,1047,2981,799,2821,2689,2687,661,1399,1395,805,1209,1205,1203,1069,3429,3143,3001,3141,1213,1211,775,777,1141,3087,2359,3529,3337,3335,3523,1531,329,1529,2549,681,1483,1523,1607,1597,1209,1503,363,2759,2303,2521,311,2517,2185,2185,3501,3499,3497,1145,2185,2917,2911,2207,2265,3419,3001,2579,2933,2261,2189,2263,2753,2917,2911,839,833,2927,125,123,121,117,3491,435,3489,213,965,481,479,3541,3539,1623,935,1621,1555,1563,2189,3367,131,127,435,311,433,1541,1739,2191,1145,2241,2785,2737,291,2783,3529,3523,957,953,1123,3537,3531,2985,3521,3051,1507,1199,1195,761,753,2411,2409,1763,1761,3239,3235,3527,3529,3523,735,1607,1597,3087,3209,2511,3521,3087,3015,1165,1311,3001,2997,2407,2405,2401,1739,1145,2191,653,651,353,3433,577,1763,1739,1761,1747,1685,1745,3247,3249,3245,3031,3175,97,91,2651,2279,2285,2271,143,141,1095,879,875,873,3527,455,449,3523,1743,2935,801,2937,2841,3091,2593,2835,899,893,1751,1745,3029,1497,1493,3529,3525,3523,139,2109,2107,957,3267,953,3263,3199,3191,2775,917,2965,911,3425,3267,3271,2949,2941,3263,339,285,519,3029,653,651,3247,3249,3245,3527,3529,3523,3091,2553,2939,879,875,873,3101,3203,1197,1195,3185,3491,3489,1883,89,85,81,907,1067,2039,3443,1165,447,501,2709,439,497,2299,2621,2617,3267,3271,2949,2941,3263,2989,485,2695,2609,479,2603,2687,2981,1141,2375,2379,2377,2373,2759,801,3265,3263,3409,329,3405,845,841,2395,2391,1067,3283,3341,3281,3335,2767,3001,3095,3093,2675,2671,3409,3405,3525,3527,3523,2759,1105,211,131,127,775,777,773,465,461,1481,2711,2675,2671,3147,3197,3141,3191,2983,3525,3527,3523,1461,3475,1245,1243,3473,2207,1669,1665,3423,1609,1599,1803,1785,2123,2125,2117,1495,1493,1729,1727,3097,3093,3527,3529,3523,1141,2507,2467,2461,3005,2691,483,479,2687,735,2157,2155,1607,125,123,121,117,3189,3185,2467,2461,1793,1777,1749,1803,1515,1745,1779,1775,1791,3163,3227,3443,2219,2553,1121,3005,1141,2981,3529,3525,3523,3071,2323,2321,3097,3093,2691,2687,2235,1259,1251,2227,3341,3337,3335,3579,3429,3425,2503,2449,1531,1529,1235,1253,1251,3239,3235,741,735,1511,437,435,311,3571,3569,3565,1161,2341,2337,289,285,2415,2409,3071,3077,3067,1113,1111,1079,3553,3549,2985,2219,2943,507,509,2553,1113,947,2981,1141,2471,1163,1173,1091,2235,2467,2227,2461,3313,455,449,3031,1189,1181,3507,1175,131,127,527,2733,285,3185,1957,2691,2687,3185,2565,2491,2483,2497,2493,2393,2391,3091,1141,169,165,2209,1427,2175,799,2173,3119,3553,3549,3521,2185,2089,3165,1483,1785,1463,3031,3029,3553,3549,1379,3233,3087,1461,1465,1463,3005,1165,285,283,1181,1175,1595,285,3209,209,2507,3015,2333,3005,1165,3563,3557,3553,3549,1635,1481,2983,1485,2433,545,1431,1461,1497,1493,2651,1181,1175,1225,1231,3243,3235,1047,887,1053,3443,3005,2207,1019,857,3261,3169,1139,2913,2911,1379,1141,1143,1137,2357,2937,3265,3263,1047,427,425,2105,2099,133,2097,2491,2483,839,833,1811,2357,3525,3527,3523,1623,935,1621,771,3427,2943,2945,2941,749,3453,3407,3405,1939,1947,2593,3001,2997,827,3031,799,1497,1493,3545,3539,2549,2981,2977,3429,3425,3437,3443,75,799,375,2521,2517,3185,1209,1203,519,87,81,2375,2373,1187,1193,1185,1349,1347,2341,2337,605,603,1001,999,1113,861,1143,859,3097,3093,3115,1169,1635,1447,1253,1251,1181,1175,2829,877,873,3025,1245,1243,3071,3077,3067,2981,2689,2687,2759,1141,2775,2777,1141,3087,1541,3209,3087,2189,761,753,435,311,433,2511,957,953,2553,2933,1739,2579,125,123,121,117,363,2753,1555,1563,2303,3529,3337,3335,3523,3367,2917,2911,1607,1597,3491,435,3489,3521,1311,3015,1165,1743,1431,2775,1751,1745,1145,2191,3267,3271,2949,2941,3263,1113,1111,2651,681,653,651,139,2109,2107,3001,899,893,3491,3489,1095,577,1609,1599,143,1763,1739,1761,3247,3249,3245,1197,1195,801,2395,2391,3409,3405,775,777,773,485,2695,2609,479,2603,2687,845,841,285,283,1481,3185,1165,169,165,2123,2125,2117,1669,1665,1461,3209,2711,2675,2671,1793,1777,1749,1803,1515,1745,1779,1775,1791,2467,2461,3029,1511,2503,3341,3337,3335,1173,2209,2235,2467,2227,2461,3313,1091,1181,3507,1175,3553,3549,795,791,3031,839,833,795,791,2313,2307,795,791,2313,187,2147,2145,3011,3385,597,839,833,3209,3209,2261,2991,931,3571,3565,2733,339,2187,2953,2951,3209,1461,2733,1595,931,2927,2927,2647,2927,839,833,2927,995,989,2927,1633,1631,799,2549,725,909,3455,1241,1685,907,1763,1761,839,833,55,51,2099,59,2097,913,911,2775,1401,1395,1245,1243,799,2549,3147,3141,3385,3381,3559,3557,925,913,911,3507,3239,3235,3425,27,21,725,1431,2591,2651,2099,2097,1651,1555,1563,55,51,2099,59,2097,725,1481,305,2935,131,127,1141,3341,3335,359,1555,1563,1145,1245,1243,1731,1727,3385,3381,1633,1639,1631,2099,2097,1145,1145,1613,1611,3153,3009,1733,1727,2221,509,1707,3153,3009,1541,3231,3231,765,59,847,841,3155,907,2221,3231,3305,3299,1707,847,841,1541,3185,2985,3453,581,3075,3081,3067,2219,3183,3001,2375,2373,2317,2315,2317,2315,2219,1091,2711,3001,3143,3141,3185,3183,3233,2221,1333,2205,2999,3143,3237,3235,879,873,1187,2749,3247,3245,2985,735,2507,765,2507,1499,1493,1461,879,873,1959,2217,287,3241,3235,1047,883,3185,359,2957,2951,771,1047,345,341,345,341,481,479,799,2989,113,109,3185,1411,1415,3185,2105,131,2163,127,2097,1541,1553,1561,1597,3425,2289,3239,3235,2979,3029,3009,2985,2985,1309,2229,2231,2227,1113,1117,3025,2593,2487,2483,1047,1173,575,3355,3353,481,479,759,753,545,3447,2487,2483,345,341,3453,1163,3101,3093,345,341,2115,2107,3529,3523,2913,2915,2911,1117,1057,1019,1021,1011,993,43,41,2125,2117,3185,1495,1493,1057,2289,43,41,1531,1529,2083,2229,2231,2227,43,41,741,3185,1113,3101,3093,545,3165,1449,1449,1303,1299,1687,3397,2185,2565,897,893,897,893,897,893,605,603,605,603,717,721,2599,2595,2407,1993,1989,2401,717,1821,1821,657,3479,651,3473,1465,2821,3519,879,873,307,1011,3265,3263,55,2021,2105,2097,2647,343,341,3183,2647,2291,373,1155,1237,1135,373,1447,1623,1627,1621,1139,1189,2747,2749,2015,2011,1585,1961,1171,2053,2047,3345,3319,3317,1585,1145,1447,1131,3233,1785,1085,721,3185,617,3173,3179,515,2659,2653,2249,2247,3265,3203,3263,347,341,531,531,1047,877,873,3423,2041,1915,1911,531,3409,3405,315,1541,3419,3231,2897,2869,3507,2863,1511,1575,3423,1927,1925,2801,717,1975,1971,3125,3135,2811,3393,967,3087,1495,1493,1011,2555,1523,2139,2135,1209,1237,133,127,579,3425,961,2943,2945,2941,3087,2153,2145,455,449,613,1881,2815,1239,455,449,1393,1385,1495,1493,1389,1385,455,449,1495,1493,2957,2955,2951,1389,1385,1495,1493,1495,1493,455,449,43,41,2559,2551,2659,2653,2821,1389,1385,1915,1911,3423,531,1927,1925,2239,1885,1161,2821,2821,2813,1575,3239,3235,3239,3385,3381,2647,2675,2671,3185,2675,2671,2647,3385,3381,3385,3381,2387,2383,3185,1463,1457,1145,2273,2281,2271,1323,1319,239,857,2187,181,575,1093,1107,347,341,2357,3025,3021,2397,2391,3445,3253,3249,3245,645,647,641,839,833,2375,329,2373,831,281,271,263,2961,295,293,907,901,3429,3421,2249,991,993,805,755,753,79,765,2075,2067,2041,781,2055,2047,1165,745,3503,427,3497,3227,1811,39,31,1323,1319,2323,2321,887,3239,3213,3235,2947,2941,3163,2185,2099,133,131,2097,2209,2985,131,127,2985,757,753,1323,1319,1207,2725,2545,3435,3375,3029,2545,2935,3443,605,603,529,757,131,127,759,753,53,181,2289,2785,2783,103,107,917,911,2729,3519,757,759,1353,753,1347,3429,1883,2147,2095,2145,3517,441,439,805,799,3445,803,2041,2039,2051,2047,3411,3405,2999,3577,2075,2067,1153,2555,2559,3429,99,91,1805,2295,1067,1065,2197,1315,347,341,3195,3191,3091,3159,1575,627,625,1269,1267,1595,1205,1973,1965,3149,3141,2055,2047,1357,1355,3183,943,937,985,979,857,851,815,627,625,349,341,3425,1183,1175,3065,3057,3065,3057,717,25,21,1039,1037,2109,2107,1873,1821,1871,3517,951,1389,1385,3419,333,2799,2797,3429,481,479,1703,3029,481,479,3029,2985,3001,1661,1785,1661,1785,1143,1137,3029,2985,3005,1921,1919,1365,2431,3301,3305,3299,2185,1851,1733,1727,1953,1613,1611,2915,2911,2945,2941,181,2947,2941,2917,2911,3075,3081,3067,1181,1175,1253,1251,1205,2385,3231,1043,1037,503,497,1523,1613,1611,2507,291,2819,1703,427,425,2545,1149,2209,551,2763,2761,1249,1243,3563,3557,465,461,1139,3075,3025,3081,3067,3231,3041,349,341,2891,2883,2065,333,1865,1861,2869,2863,803,2175,2173,635,2891,2883,1907,1905,1851,2103,2097,907,1633,1483,1499,1493,3375,295,293,485,481,479,2691,2687,1193,1507,1439,2627,2099,2097,153,149,145,1623,1621,2109,2107,963,1465,1245,1243,1389,1385,2305,2299,417,415,1057,527,2789,2783,1865,1861,1209,1819,1411,2985,3175,9,3149,3141,2357,589,2545,3491,435,3489,803,797,803,1241,755,753,2221,2915,2911,627,625,2099,2097,961,1131,3529,3523,613,2961,1703,2407,1869,1867,1881,2401,3475,669,667,3473,345,341,459,457,1633,2015,2011,577,29,21,3055,1851,2589,2613,2611,1831,3267,3263,3435,2385,2383,689,2443,2437,2845,669,667,3169,3161,1161,2937,1181,1175,1253,1251,3237,3235,1155,653,651,131,127,295,293,801,3001,1883,1743,2897,2767,2771,2765,2869,2863,87,85,81,2055,2049,2047,2209,3001,1609,2897,2579,2743,2675,2671,3491,3489,851,853,3185,181,179,1511,1139,2099,2097,3029,847,843,841,1609,167,165,2017,2011,295,293,1597,153,145,961,1131,2055,2047,387,385,153,145,1171,805,1595,2743,1783,2985,3479,397,427,3477,395,3473,1607,1597,1183,1175,3205,1605,1585,3425,3109,495,1533,1529,2825,407,405,2089,1883,389,385,1511,1515,481,479,1389,951,1385,3025,2771,2875,2873,735,2039,3423,1183,1175,2503,1073,2973,481,479,2421,3193,3191,3015,2693,2687,2937,767,3209,2507,527,3463,3459,529,1365,1953,2875,2873,1495,1493,131,101,127,3223,3215,1253,1241,1251,375,3185,1247,1243,1411,851,1499,1493,2467,2463,2461,2875,2873,907,2185,481,479,167,165,3119,1849,2393,2391,2961,3257,3301,3001,153,145,3051,1373,1401,1395,1411,3149,3141,1595,1131,3279,3273,1637,2289,3301,3299,1613,1611,1881,1613,1611,3279,3273,323,2211,2999,2961,2959,939,1213,937,1211,3305,3301,229,3299,1531,1529,941,1213,937,1211,3517,1181,1175,1915,1911,365,3071,3077,3067,1141,847,841,365,3077,3067,1739,143,1915,1911,3425,3425,851,1161,605,3423,603,3429,1197,1195,3075,3081,3067,2723,2721,3411,3405,1221,1227,3001,3237,3235,271,263,3167,3237,3235,359,2981,2311,2307,2981,1221,1227,3237,3235,3241,3237,3239,3235,3055,3051,3047,1239,1233,1221,1227,3041,2945,2941,2529,2527,2531,2533,2527,2531,2527,1223,1229,2565,2739,2323,2321,2593,2565,2789,2783,2735,2177,2173,2177,933,1079,2187,2787,2783,401,395,2635,2633,2989,2973,3447,549,397,395,2507,3187,735,2025,2725,735,77,397,395,735,1001,999,749,79,187,2039,133,127,1595,3437,1161,233,227,1541,3451,3319,3317,679,2885,2883,181,2999,855,397,395,2989,1595,2269,1047,2267,2049,775,2047,2985,1361,1355,799,3311,775,1481,2525,2517,3237,3235,1435,2819,3239,3235,2937,181,1723,1717,1893,1889,2207,1241,1101,2581,1311,3529,3523,139,1803,1785,605,603,545,85,81,271,263,3185,2669,233,227,237,1585,519,3109,3165,2797,359,571,539,2215,1601,3187,1139,1161,1131,2961,1719,1717,2185,1601,1595,285,2623,2617,867,869,1503,1165,1165,2471,2497,2469,2493,3145,3141,799,2153,2145,3145,3141,3145,3141,241,47,241,3185,1455,1139,615,2821,1183,2273,1175,15,11,3185,1823,2795,2273,1183,1175,1187,1193,1185,2089,2913,2911,3185,271,263,1739,1733,1727,829,831,2211,3239,3235,3239,3235,2519,2517,3065,3057,645,1069,2991,2189,1677,3517,3519,3521,1113,1073,2695,2687,3425,3015,131,2099,2097,799,2875,431,425,2873,2937,2969,3429,2187,2507,2943,2941,2207,2355,799,795,791,1345,1189,819,1595,1601,1593,3087,3453,1145,2249,2247,2185,3247,3143,3141,3245,771,59,2413,2409,3045,3041,1141,1081,1075,1623,1081,751,2971,1073,1253,1251,899,897,893,3427,3265,3263,2249,2247,47,41,373,3537,3531,1685,1687,3123,3133,757,799,753,2365,2363,2361,1001,999,455,449,285,3193,3191,3231,139,3185,2245,2937,1483,2103,2097,689,3001,295,293,233,227,3453,2677,2675,2671,577,2775,3249,3245,2325,2321,1541,2723,2729,2795,2519,2517,575,1747,1745,2263,1483,1145,3219,3215,1315,1023,1803,103,99,91,897,893,1763,1761,3187,3187,1237,2293,2131,2127,2427,2351,2345,2423,1351,1347,3453,1927,1925,1885,2025,181,175,2507,2503,3069,3067,3167,3005,113,109,1047,3209,3575,3349,631,625,1241,265,605,603,1913,1911,831,1073,2147,2095,2145,1703,799,2559,2411,2409,909,917,911,131,127,157,2935,799,181,3507,1687,737,2239,1155,1685,1685,53,3519,441,439,1785,3521,3427,343,341,1141,1209,1575,1579,455,449,1909,1905,3247,3249,3245,3105,3103,3203,2269,2267,853,851,1635,1769,1767,1483,2375,2373,3195,3191,867,2207,2985,279,273,3427,323,3239,3235,1015,3081,3067,3517,1523,2969,1141,683,951,947,443,439,1163,441,439,1059,895,893,943,937,1677,1681,265,263,1183,1175,1183,1175,1909,1905,799,3237,3235,3457,3521,441,439,1173,1111,3199,3191,265,263,725,2071,2067,2375,2381,2373,2393,2391,359,1679,1805,2825,3433,2211,3451,3115,1091,805,2299,823,509,2715,1209,3051,401,395,241,1209,717,25,21,2229,2227,343,341,2185,2359,1161,3183,2775,1107,1099,2147,2145,1483,1201,1195,2205,1449,271,263,2589,3487,509,1149,2339,2337,3163,131,127,247,245,2229,2227,1113,1141,441,439,2185,535,533,3517,2375,2373,1125,3119,3049,3209,3203,1635,3203,2205,3115,1197,1195,2703,2697,3199,3195,3191,1663,1047,3443,3165,3161,645,2937,2935,1481,635,805,2359,3193,3191,1019,1021,1017,129,127,193,2175,2173,3269,3265,3263,575,2845,2695,2687,2695,2687,333,323,1953,2969,157,2985,877,873,1483,2175,2173,3453,1785,1483,3487,3575,2891,2883,2273,2281,2271,2711,2491,2483,2711,323,2089,781,1239,1703,1719,1717,2263,2979,3051,1205,1209,319,2549,3045,1265,1261,3143,3141,2815,3227,501,497,935,933,2917,2911,993,3231,501,497,1149,2923,2675,3227,2671,1939,1947,2525,3025,2517,3001,1437,1503,799,2123,2117,687,1785,1803,1781,2945,2917,1743,2911,2941,1187,1827,1803,1285,1419,1417,1495,1493,2565,2563,2965,2847,2845,3005,1499,1131,3227,3203,3209,3207,3209,883,427,425,1679,1679,443,439,2917,3267,2911,3239,3235,1209,577,2289,631,625,1165,3537,375,473,471,3531,909,901,1415,1597,1235,2935,1265,1263,1261,1915,2359,1911,1401,1395,1019,2175,3521,3517,3287,3281,845,841,965,799,1623,1621,301,293,363,2661,2653,417,415,3367,1711,211,53,1481,2847,2845,187,993,95,91,2251,2247,1247,1243,2985,2249,2247,579,1193,2487,2483,2175,2173,535,1199,1195,2229,3387,2227,3381,2723,3429,343,879,873,1077,1079,1081,909,1541,761,759,753,2249,2255,1201,2247,29,21,3147,3141,2927,123,117,3445,3149,3141,3547,1237,3539,1165,1535,1649,1529,2737,2593,2785,2787,2783,545,547,1071,2185,1019,481,479,2753,431,425,131,127,295,293,1091,757,755,753,1419,1417,2191,1719,1717,2147,2145,2937,2939,2935,527,2487,2483,1091,3147,1245,1243,3141,3183,2795,2519,2517,2185,441,439,1141,2917,935,933,247,245,1821,3409,2887,2883,3319,3317,1225,1231,2811,1633,131,127,3185,2045,181,2065,613,3203,3203,3203,3025,2431,2279,2285,2271,1315,3015,3011,2915,2911,3241,1239,3235,3237,3241,3235,801,103,1497,1493,3101,3093,3101,3093,1831,1827,247,245,2965,429,425,2525,2517,3025,3237,3235,143,141,1687,1803,29,21,689,1411,1635,1447,1639,1631,3203,1405,1129,1403,1405,1403,1173,1743,2917,2911,3577,3577,3547,1237,3539,97,91,2385,2383,2983,3175,29,21,3147,3141,2289,1165,799,1607,1209,1165,2079,765,781,777,1047,1047,1057,3051,3145,3141,2851,3453,3507,3391,3505,3521,3015,2545,2357,851,855,2201,2193,2259,1205,1733,1727,1101,2549,2175,2173,819,629,625,3443,2205,1161,2937,181,2939,2025,1141,1067,1065,3301,3299,1155,653,651,3165,1263,1261,2695,2687,455,449,2299,2939,3411,2205,3405,1387,1385,2815,1125,3119,2983,2569,2187,1427,3529,3523,3169,3167,3253,3245,1703,3271,3263,2589,577,3475,3473,935,2325,3111,3103,289,1277,1273,1389,1365,1385,1081,1171,1585,2937,1081,2031,3219,3221,3215,2669,3199,3191,2569,427,425,2565,2563,3271,3263,3411,3405,1437,2393,1809,2391,1725,1719,1723,1717,1483,2313,2307,2681,3247,1091,3245,1483,1239,2985,85,81,2049,2047,373,3085,2587,2845,1551,1559,1131,2961,591,2207,3547,1237,3539,2159,2155,499,497,3253,3245,373,3239,3235,1367,2039,2175,2173,2175,2173,1811,2641,2639,2979,2981,765,3265,3263,3419,1165,1139,2427,2423,233,227,711,703,1729,1727,1015,2703,2697,3411,3405,1769,1731,1727,1767,2669,2667,3087,1551,1559,2979,909,1435,2375,2373,2955,2951,819,855,1019,817,501,497,2569,2743,1637,2395,2391,2711,3101,3093,103,3167,3507,947,131,127,3527,3523,957,953,3577,2795,247,245,2071,1427,1425,527,1141,1481,2549,1439,3239,3235,1541,3203,1785,597,2795,575,3227,2795,3081,3067,1689,2831,3451,375,2089,29,21,1495,1493,455,449,3527,3523,2983,2147,2145,2279,3091,805,2017,2011,2285,2271,1199,1195,427,425,2855,2853,1187,2933,2871,2863,237,3239,3235,3185,3515,1235,1515,1597,131,127,1601,3087,3083,193,3379,1461,2215,1169,1669,1665,3143,3141,1541,1141,2981,153,145,2123,2117,957,953,993,995,575,2675,2671,1597,469,461,2531,2527,2515,575,1757,1755,1125,1669,2915,1667,1665,2911,179,577,519,499,463,461,497,3395,2549,3097,3093,2935,3239,3235,1067,43,41,1733,1727,1585,1609,465,461,3437,211,2157,183,2155,1171,1731,1727,455,413,405,449,1909,1905,1113,1245,1243,1263,1261,3193,3191,1165,1161,2507,1897,1889,2593,3199,3195,3191,961,323,1069,2491,2483,1341,2207,1649,3301,229,227,3305,3299,3319,2215,639,1499,1493,2999,1533,1529,1341,17,11,131,127,1481,2937,1139,2205,3115,2555,735,741,1719,1717,2015,2011,289,591,3117,1183,1175,2229,2227,2415,2409,2415,2409,1465,3237,3235,2229,2227,3457,373,1077,1081,1165,1663,3265,3263,99,91,3227,2289,1597,2339,2337,3163,1113,689,2775,759,753,1253,1251,3559,3557,727,757,753,2393,2391,765,757,753,1389,1365,1385,2635,2633,2411,2409,3127,3137,3091,801,1253,1251,535,533,2749,2969,2973,629,625,2651,3025,2981,2431,1575,3267,2949,2941,3263,2525,2517,2185,1165,3267,2949,2941,3263,2703,2697,1541,3239,3235,2989,2953,2951,1139,1049,1047,2647,1953,1465,3101,3093,3267,2949,2941,3263,3239,3235,2979,3021,1011,93,181,183,91,1015,15,11,2939,1113,1113,1141,441,3521,439,3015,2915,1615,1611,2911,1757,1755,3185,1471,1173,221,217,2549,2215,2471,1495,1493,1315,3247,3245,509,2777,3425,2749,3111,3103,131,127,3371,2703,2697,3005,1499,1493,735,615,3031,907,3031,2591,3451,1161,1015,1303,1299,1053,2431,3045,3119,3165,65,2667,2591,3119,661,2137,2135,3251,2937,3245,1927,1925,363,3443,1659,2965,2393,2391,2119,2117,2723,1141,2185,441,439,3313,323,3411,3405,721,1885,3203,845,841,451,449,3025,1011,2185,725,1163,3087,3239,3091,3241,3235,1387,1385,1189,1139,141,597,3507,575,1729,1731,1727,1427,1425,1197,1195,229,3301,227,3299,1751,1745,2269,2267,2187,2241,3003,1511,2015,2011,2999,2211,2675,2671,1605,3185,3087,3033,1481,1479,3185,1413,1465,1179,1175,575,3427,107,2767,3165,2641,2639,3161,1785,1093,153,2065,145,741,2667,2733,2871,2863,2269,2267,2229,2227,2935,1551,1555,1559,1563,1113,1111,2017,2011,845,843,841,3267,2949,2941,3263,97,91,1483,2591,3457,3457,373,17,11,1533,1529,3313,3101,3093,2251,2247,1421,1417,1131,2887,2883,3319,3317,2971,689,2415,2409,2415,2409,2185,1145,1039,1037,1595,1601,1593,2677,2671,2865,2863,1677,3267,2949,2941,3263,2137,2147,2135,2145,3239,3241,3235,3119,1141,1215,1213,1211,3101,3093,1783,2279,2285,2271,2677,2671,1215,1213,1211,2089,1915,1911,183,131,127,2329,3015,3185,3003,3237,3235,1235,1499,1493,3005,1499,1493,3005,3197,3191,2215,3209,1575,1579,2839,1081,3257,1543,1541,2289,3163,735,1729,1703,1427,993,1429,951,1115,1393,1385,1427,1141,535,2749,1669,1463,1461,1117,1079,781,2661,2653,3429,2935,1387,1385,3367,1085,1481,1141,1729,1727,1465,1087,1633,1145,1387,1385,1597,1165,2431,2767,1461,2303,3025,3185,1613,1611,1711,163,1073,1071,1071,1073,1069,1065,1601,1985,1999,1997,1607,2651,2775,3025,2205,377,375,371,1073,1067,3091,499,497,799,3091,3091,1601,1071,3237,3235,1011,1009,1007,1183,1009,1175,1237,961,95,91,3143,3141,3367,3367,1393,1385,169,165,2981,2589,353,351,2273,2281,2271,601,549,1143,2273,2281,2271,617,339,2569,2995,1253,1251,3393,2529,2527,3237,3243,3235,991,831,3519,1047,1169,1115,1117,1719,1717,853,2695,2687,2995,971,277,273,2563,3187,1653,1655,1651,3013,751,85,81,689,59,347,341,2211,2943,2941,2943,2941,2413,2409,85,121,81,117,2099,2097,3257,3257,1265,1261,2185,2825,3197,3191,2185,3427,219,217,3247,2913,2911,3245,1253,2313,1251,2307,1111,3227,2249,2205,2247,2185,3433,3123,3133,1009,1803,2923,765,765,1001,999,887,3437,3313,3307,801,803,2323,2321,1189,799,349,341,637,95,91,3003,3001,1881,519,553,2763,2761,2279,2285,2271,3227,3347,3343,2147,2145,343,349,341,3229,1315,997,1237,1483,801,2323,2321,3345,897,2289,3087,893,2099,2097,2099,185,2097,2999,3453,601,157,177,175,909,907,3371,2295,2529,3183,2527,2809,1541,907,527,2875,907,3203,1483,339,2295,2287,1793,1791,851,1635,443,439,1111,1111,1115,1677,85,81,801,3153,2901,1523,3457,3449,3189,2999,1405,1403,1183,1175,1483,3185,3089,2147,2145,1187,2241,851,971,2529,2527,3183,2927,1785,2269,2267,2241,1881,949,2269,2267,3425,1667,1665,1449,3393,1149,1847,2651,2185,3049,3055,1189,2273,2281,2271,3025,2525,2517,3221,3215,1149,2867,2863,319,103,687,3187,993,2591,3095,3093,781,2545,2545,3407,3405,803,2175,2173,3003,3001,3393,3399,2969,799,1483,1481,1435,1503,131,127,373,3253,3101,3093,3245,3231,1187,527,3143,3141,2815,589,2867,2863,1111,2965,1633,3429,3437,2661,2653,761,759,753,1241,1731,1727,2185,2185,3239,3235,1263,1261,1411,2985,3347,1723,1717,2221,2651,2985,2985,1623,1621,1483,605,603,2795,2753,1401,1395,991,993,3239,3235,85,81,755,757,753,2099,2097,2939,2937,673,667,2881,2873,3185,3253,3245,3271,3263,2707,2299,2209,2413,2409,1881,2265,2935,2937,1507,965,2919,2911,631,625,689,77,577,3511,2927,219,217,3157,3153,3203,3201,967,285,613,1411,1315,1139,1187,3035,2815,1687,3091,3031,1739,3237,3235,1193,2563,3101,3093,1101,3147,3141,143,2385,1847,2383,2939,801,3247,3253,3245,1705,2935,2931,799,2393,2407,2401,3029,3227,2273,2281,2271,3227,1685,2969,2995,971,3209,2569,353,3437,2749,3457,3529,3523,577,343,341,2775,801,3247,3245,1387,1385,1719,1717,1411,519,643,1067,2279,2285,2271,605,603,1483,2979,2965,1633,3271,47,41,3263,2293,3241,3235,1831,1585,431,425,2375,2373,3203,1173,79,2867,2863,1435,1433,2049,2047,2651,2985,443,439,2985,2191,3247,3245,2957,2951,1495,1493,2667,2669,79,2039,2375,2373,2375,2373,1139,2975,3071,3077,3067,993,2249,2247,3183,2651,135,2099,127,2097,1077,2743,3187,645,1821,1877,1019,2989,1067,947,1115,951,1653,1655,1651,1769,1767,3185,2943,2941,3203,2767,2763,2761,3437,233,227,2467,2461,2185,1671,1665,549,2795,2515,2565,3399,237,349,341,577,519,43,41,1597,2935,605,3425,603,2743,323,2125,2117,2289,1237,2099,2097,3237,3235,285,1161,1633,1585,2253,2247,3437,3197,3193,3191,1173,2605,2603,2943,2941,3025,2915,1669,1665,2911,3393,3395,1649,1785,1647,1649,967,3239,3235,1551,1513,1559,1685,2985,455,449,1481,1671,1665,3025,285,295,293,3379,1679,1723,3011,1785,3563,3557,2651,2279,2285,2271,2763,2761,3423,2089,2089,1181,1175,2229,2227,2289,163,157,1511,2039,949,2983,1143,3479,3473,1101,757,115,109,755,753,1445,1511,1253,1251,1253,1251,1113,3193,3115,3191,285,2775,1183,1175,2503,1847,2341,2337,3025,2969,1793,1791,353,351,3433,3115,2651,373,339,539,1481,1485,3031,2503,527,3187,1207,509,285,2187,1141,447,439,1139,3013,2531,2527,1637,2249,2247,3203,3201,277,273,1483,3325,3323,3101,3093,1495,1493,3451,2587,3319,3317,3035,1679,3031,2185,2375,2373,1163,1723,1717,1009,2393,2391,1131,3507,1187,2137,2135,1023,1757,1755,735,1465,1187,1411,1765,1739,1761,1485,1481,429,425,1483,2279,2281,2271,1915,1911,1595,645,3025,3457,373,1575,1481,1575,781,3179,2099,2097,1837,2333,2511,907,3177,1249,1243,3209,2591,2985,219,217,2289,2299,645,219,217,1667,1665,2289,1187,3451,2587,3507,3511,3033,3107,3103,1107,1975,1971,2075,2067,1975,1971,3041,3433,1661,721,1311,1271,1267,1279,1273,1757,1755,2981,1001,3049,1003,999,1039,1037,3051,3147,3141,1283,1285,3249,3245,2289,1541,3097,3093,2589,2999,2827,627,625,3011,1577,1193,2999,3123,3133,1067,2935,545,359,357,355,2935,545,3503,3497,1039,1037,2289,3189,3185,3189,195,189,829,3237,3235,151,145,267,269,263,3185,3183,2507,325,321,805,957,953,771,2079,2609,485,479,2603,1187,1811,3437,529,2371,3185,3433,3437,1189,3427,2779,3429,3029,2323,2321,3429,2357,2255,2247,1201,1195,1265,1261,3247,3245,1705,277,273,47,41,1909,1905,1117,3189,2323,2321,1155,2885,2891,2889,2883,1545,1541,519,517,95,2059,2061,91,2059,3165,3577,131,127,2521,2517,2737,1237,1193,1021,1311,3105,3103,3071,3077,3067,3409,3405,3183,3185,2023,799,187,581,2897,801,957,953,3425,3425,2323,2321,2041,3185,1687,2891,2883,1811,1253,1251,899,895,893,3097,3093,3393,291,2295,103,2105,3239,3235,2979,1729,181,187,187,799,797,347,1995,341,1989,347,2189,681,1995,341,1349,1347,2357,2089,1169,1149,1187,2201,2193,1161,3567,3565,181,1785,1187,717,857,2393,2391,3457,951,913,3199,3191,209,1523,1525,1269,1001,3487,539,3091,1401,1395,1321,1319,1909,1905,2589,1149,1399,1395,333,337,1485,1479,1249,1243,2549,2167,2165,851,1193,3185,3239,3235,3409,3405,1551,1559,2273,2281,2271,2317,2315,1141,3185,195,189,3487,2629,2491,2483,2317,2315,1485,1495,1493,1499,1493,1349,1347,1163,99,91,291,287,131,2099,127,2097,1401,1395,2753,3249,3245,1541,347,341,301,293,363,549,683,151,145,1507,295,2509,293,2069,2067,2069,755,753,2067,761,753,3253,957,953,3245,1637,965,959,3147,29,21,3141,643,2985,2777,3425,1241,3187,2189,2185,1141,965,913,911,1321,1319,2191,2777,2775,2565,801,799,353,359,3031,141,605,603,1401,1395,657,651,2861,2853,3071,3077,3067,3229,3071,3077,3067,1021,3249,3247,3245,99,91,97,91,801,799,3237,2835,3235,2857,2853,3147,3141,1117,3189,103,101,3455,377,1609,2059,531,3267,2949,2941,3269,3263,2719,899,893,515,1085,2375,2373,3247,3249,3245,2395,2391,1821,1213,1211,2709,265,263,79,2039,2867,2877,2863,2873,347,341,2457,2453,1909,1905,3209,3205,1189,2211,1085,1349,1347,1495,1493,1427,1481,3397,2569,1609,3185,609,605,603,3031,3005,2935,151,145,237,1141,2219,2477,2475,2507,99,91,2167,2165,3015,131,127,799,2175,2173,1163,3475,1245,1243,3473,1163,481,479,505,497,1139,531,285,3275,3273,735,183,181,187,757,753,3011,3039,3115,157,2339,2337,1671,1163,1427,47,41,3319,3185,3317,947,1113,239,2691,2687,1953,291,287,531,1499,291,1493,131,127,1201,1195,539,2591,643,2737,3367,131,127,1427,799,2175,2173,2393,2391,3427,661,2591,643,2897,2565,67,107,3029,181,325,321,1423,1421,1417,1575,1577,2979,3005,2507,1427,3397,3393,519,1239,3293,473,471,2569,1163,2041,3185,1427,3125,3135,2985,2977,3125,2985,3165,3169,779,77,2733,2249,2247,801,785,801,55,2159,1019,1145,1145,1161,3001,1159,935,931,139,3145,3141,951,947,1253,1179,1175,1251,2113,2107,1687,1731,1727,1731,1727,2133,1757,1755,2127,2565,2647,291,531,3409,3405,1253,1179,1175,1251,1731,1727,2797,1495,1493,3165,3425,1265,1261,2985,2979,2505,2939,2981,2789,2783,3237,3235,1431,689,647,2255,2261,2247,2053,2047,1141,1769,1767,3203,3207,895,893,2295,2291,3367,3371,1197,1195,935,931,567,571,1161,141,1633,1617,1611,2291,2295,1161,1165,2933,1253,1179,1175,1251,2291,2295,1633,1431,2547,575,1139,935,931,1161,3001,1159,935,931,3145,3141,951,1731,1727,2565,291,1431,1253,1179,1175,1251,1141,2979,575,2789,2783,3237,3235,895,893,1197,1195,2291,2295,1181,1253,1175,1251,2273,2281,2271,1201,1195,469,375,461,1253,1251,3425,307,1139,909,527,3521,3561,3557,579,3427,2515,1079,3031,2299,851,2565,1191,1189,3031,949,887,375,1191,1189,3031,1123,2273,2281,2271,3055,2675,2671,1881,1145,2185,2189,1253,1597,3425,3351,3349,131,127,3055,1067,2515,887,3425,3105,1069,3103,375,2985,2933,3183,1483,1597,1253,1251,2985,2933,3145,3141,2985,2933,3143,3141,3143,3141,613,801,2273,2281,2271,2273,2281,2271,1179,1175,1053,1141,1137,737,3117,597,1049,277,271,263,273,2757,3091,3089,1187,1141,527,3183,2357,3117,3113,3193,3191,2503,2187,2891,2883,1141,1137,3117,3193,3191,687,771,169,165,3125,3135,3169,2657,2653,2547,3193,3191,3045,2985,1253,1251,3019,1809,1859,323,3227,3427,3065,3057,749,3041,311,1751,1745,2531,2527,3143,3141,2433,2431,3499,3503,3497,3091,1071,3089,3185,3185,2675,2671,349,345,341,1023,2549,1019,1021,3087,3409,3405,3453,3415,895,893,3521,3519,3519,3521,3371,315,593,3367,907,801,1163,605,603,1541,579,2777,3155,1483,1847,1809,1969,1965,2041,3443,827,3185,1237,3165,3347,2885,679,2883,3183,519,2293,3385,3381,2147,2145,131,127,3061,3057,2295,375,53,181,509,3545,3539,2759,3455,441,439,3393,3221,3215,3089,3115,3185,1105,1019,851,2565,265,263,2241,3021,2569,1035,1029,267,263,645,895,893,1059,949,2299,1113,1187,1079,1075,823,3009,2939,2549,363,3443,2825,627,625,1729,1727,3371,1769,1771,1767,1635,689,1643,1641,1117,3143,3141,3065,3057,913,911,719,347,341,173,2799,597,3183,347,345,343,341,1465,3457,1383,1361,1357,1355,2975,3239,3235,2767,1141,3425,2357,465,461,1439,1437,687,691,1377,701,695,699,697,2985,2565,2819,527,103,181,285,3229,1329,1325,2231,2227,2255,2247,2597,2595,29,21,3241,3239,3235,3021,333,331,1189,3001,2975,2971,843,841,2657,2653,197,1113,1205,2643,2629,3257,2639,3407,3405,2643,2629,3257,2639,643,1081,297,293,2627,2539,2537,1187,1311,2295,1255,451,449,3019,2691,2687,2927,2999,759,753,349,1421,341,1417,2715,3185,1883,1809,3193,3191,597,2795,595,2797,2103,107,2097,3507,289,329,3503,3497,1141,1145,2191,2733,3491,3489,2937,1241,2263,629,625,3415,3319,3577,3349,501,3317,3537,3447,3531,2211,3507,1505,1161,375,1139,2991,1009,1625,1623,1621,2547,151,145,1079,139,2109,2107,3237,3235,605,603,3031,3091,2113,2107,2565,577,3101,3093,2565,1123,1079,917,911,689,3433,577,2775,3029,799,2179,2173,2815,1161,2189,3239,3235,3521,3479,3473,2983,2499,19,2493,1113,3199,3191,29,21,2999,1827,1829,323,779,3457,3153,3145,3141,1101,3101,3093,851,1993,1989,3089,1793,1791,3175,2935,3055,2767,3447,369,2503,1163,181,2059,2157,2155,1389,1385,1105,1131,857,3203,3209,1729,1705,1727,3023,1731,1727,2983,2991,2221,329,3407,3405,3107,3103,2775,2651,2675,2671,85,81,343,341,2211,2565,1171,3247,3245,3031,1021,3025,2759,3163,3163,1603,3237,3091,3235,153,145,2125,2117,453,455,449,2263,1481,1783,1783,2515,3393,1777,1779,1775,1163,3319,3317,1193,3545,3539,1495,1493,1585,221,217,3311,2017,2011,955,953,2979,315,3507,2589,43,45,41,43,45,41,1199,1195,3393,3183,343,341,1073,3025,1169,1667,1669,1665,305,3389,3381,993,3001,1077,2895,289,527,3091,3341,3335,2471,2985,3351,661,3415,1847,3025,1427,687,3209,3205,1253,1251,1145,3569,3565,1181,1175,183,1113,3475,3473,2969,1783,3329,3327,3345,2563,2561,3425,2229,2231,2227,2733,1161,3329,3327,2179,2173,2553,3101,3093,3311,2733,537,535,2691,2687,3003,3005,1145,1179,1175,1207,3367,1495,1493,1953,3189,17,11,3371,2101,2097,1115,1079,1113,3185,3185,2503,2331,2387,2209,661,2715,1069,3447,363,1009,15,11,3183,3209,1165,1161,3239,3235,1163,1113,643,635,3393,1245,3101,1243,3293,1465,2547,2935,289,1483,3183,2871,2863,139,3393,3145,3141,689,363,2935,363,3165,285,2331,3197,3191,1427,325,287,3029,1915,1911,1097,1093,3293,3185,537,535,3365,3145,3141,643,3143,3141,1141,1137,613,801,2357,1145,1187,1049,2757,2331,2503,2187,2891,2883,3117,3113,3185,3117,1141,1137,2357,1171,1113,2017,2011,1237,3125,3135,1859,3089,1071,687,1625,1623,1621,3065,3057,2657,2653,779,2531,2527,749,1253,1251,3415,907,1023,2147,2145,3545,3539,2563,3425,2561,3061,3057,3347,2675,2671,3409,3405,579,3447,441,439,2295,3385,3381,131,127,3185,3183,519,1383,1465,2565,913,911,2569,1187,1139,1117,333,331,3457,2549,1079,1075,527,895,893,2299,949,3115,3185,3415,823,3009,3153,267,263,1123,3089,3447,363,1189,2975,3241,3239,3235,2231,2227,2971,843,841,3229,1113,1377,2643,2629,3257,2639,2657,2653,701,695,699,697,2985,2263,3457,3537,3531,1993,1989,643,635,3507,759,753,1311,2937,3237,3235,2627,2539,2537,2547,2795,597,3447,595,2797,289,1505,3503,3497,2691,2687,2733,2547,3185,1793,1791,323,605,603,1105,1161,3029,3107,3103,3175,2935,689,3239,3235,3101,3093,285,3521,29,21,3145,3141,577,1729,1705,1727,2113,2107,3091,1783,537,2675,2671,3031,3163,85,81,2565,2211,1731,1727,1199,1195,1667,1669,1665,3393,1163,1777,1779,1775,2733,3329,3327,2229,2231,2227,1427,2179,2173,1253,1251,3145,3141,2209,3371,325,907,3239,3235,2211,1047,2995,1139,1047,997,1053,1575,2985,1145,2985,1135,1131,1077,1511,995,829,643,1575,1577,635,1173,2189,347,341,1485,781,571,2919,2911,135,127,141,2589,3001,781,3425,3425,3145,3141,3145,3141,2567,375,1117,2875,2873,3185,2875,2873,3185,1165,59,1059,689,373,3011,1093,1165,3145,1323,1319,1401,1395,823,1237,799,805,801,2985,169,165,1097,1009,3239,3235,3457,1155,765,2985,1069,181,2949,2941,1091,169,165,575,3529,3523,765,3185,3425,95,91,275,273,25,21,2099,2097,1811,2105,2097,897,893,1811,679,3229,601,1785,2647,3075,3081,3067,1091,1097,1323,1401,1319,1395,1019,1785,1019,1009,1785,1785,25,21,1687,1481,1659,1881,133,127,3241,3235,1155,2861,2857,2853,1691,1685,2099,2097,2985,3185,1237,1585,3237,3235,1785,379,2733,1097,1253,1251,103,3411,3405,3247,3265,3267,3245,3263,801,209,883,2763,2761,3185,3183,1001,999,2913,2911,2137,2135,1131,737,2739,931,2919,2911,3319,3357,3317,3353,3425,719,3453,2565,131,127,3521,719,947,2113,2107,141,725,1663,519,2763,2761,2555,1379,757,753,799,2811,3183,343,341,1687,1021,131,115,109,127,1597,1533,1529,1113,823,2109,2107,3521,1153,907,1151,3087,3325,3323,1181,1175,823,3305,3299,1161,3209,1263,3117,3407,3405,2535,2527,169,165,169,165,2273,2281,2271,2535,2527,399,395,3305,3299,3447,1421,1417,3293,443,439,329,2513,2789,2783,2069,2067,879,873,2999,3001,1661,1657,1161,2691,2687,801,529,2735,451,449,451,449,3425,1145,3375,647,1197,1195,3065,1763,1761,3057,429,425,3269,3263,97,91,3287,3281,1421,1417,777,231,227,1145,2555,15,11,3185,3475,3551,3473,3549,801,895,893,2439,2437,3319,3317,1511,3185,65,327,2915,3475,2911,3425,3423,3491,3489,153,145,3271,169,165,3263,3337,3335,527,3293,3145,3141,2175,2173,2503,2915,2911,3203,1197,1195,827,883,2999,3305,3299,131,127,643,2587,3145,3141,2513,3097,3093,1577,827,883,3305,3299,103,3411,3405,801,3247,3267,3245,3265,3263,883,209,3319,3317,3357,3353,2999,3001,65,3375,1131,3425,737,2739,2137,2135,141,895,893,3453,931,719,1161,131,115,109,127,2565,2811,947,1379,519,1687,757,753,1021,3183,3325,3323,3425,1153,907,1113,3521,1533,1529,1597,3305,3299,3521,823,1197,1195,2273,2281,2271,3407,3405,1421,1417,2535,2527,801,647,1145,2587,2513,443,439,131,127,3447,879,873,2069,2067,529,2735,1421,1417,777,3491,3489,801,3475,3473,3551,3549,2439,2437,3319,3317,3145,3141,3293,3271,169,165,3263,3337,3335,2503,3203,827,345,341,2985,2531,2527,1831,2825,3059,3057,2981,339,1021,339,3397,2989,2743,3535,3531,3535,3531,1483,1225,1231,801,3385,3381,829,2189,2503,2269,2267,3197,2253,2247,3191,3003,3521,1253,947,1251,2253,2247,343,341,577,447,439,325,325,3411,3405,605,2845,603,2241,1241,2237,311,581,2981,3371,1253,1235,1251,3257,2295,465,1139,1187,2295,343,341,373,917,1129,911,3107,345,341,3103,3521,2797,2795,681,1523,829,2711,465,461,2979,3385,597,3381,2675,2671,3197,3191,1235,1161,2311,2187,1139,2307,2745,2749,437,3507,307,435,483,479,2937,1597,2291,465,535,2279,465,461,2285,2271,3521,2775,2295,465,461,345,341,1101,943,937,2229,309,1179,1175,2227,2235,2227,1179,1175,3311,2777,3257,3165,721,3295,3295,3541,3539,2025,95,187,91,1357,2971,1349,1347,2975,1315,671,667,1253,947,1251,805,327,1163,751,747,2049,2047,3427,2719,3257,55,2059,2021,2185,2189,2187,3257,2221,2217,2887,345,341,2883,2723,3185,1161,323,1895,1889,1541,1705,53,609,603,1353,1347,2885,2883,1155,447,445,439,2063,2059,2199,2193,3453,1241,2293,591,2811,605,603,3367,3423,805,2039,75,1241,1237,2241,2295,2507,185,1881,1237,1483,1635,871,863,3183,1141,519,679,683,343,3003,1183,1175,679,3457,373,2299,1357,1355,3469,2565,3465,947,2269,2267,1391,1385,3009,605,345,341,603,1597,2109,121,117,2107,3425,1187,1149,2797,2753,213,1161,1159,509,507,2235,2227,131,127,3005,679,1145,1235,1141,2593,369,2845,677,435,375,465,461,1205,1915,1911,3025,193,3105,3103,2319,495,3571,3565,1805,2593,1503,1505,3221,3215,1181,1175,363,2235,2227,1793,1791,2715,2719,2713,1161,1159,1145,2185,2965,2939,2937,465,461,437,1187,1139,2187,1915,1911,1241,1915,1911,1623,1621,1597,1473,1471,1085,1237,343,341,2917,2911,2961,2299,2781,181,3541,465,461,3539,2241,2191,1145,465,461,575,3529,3523,213,3529,3523,2091,3425,3419,591,609,603,3423,3237,3163,3235,677,669,667,401,395,429,425,3221,3215,3435,577,343,341,3397,3349,327,389,385,1161,917,915,911,2885,2883,2743,2747,1239,799,131,127,465,3541,3539,605,603,2109,2107,2385,2383,1993,1989,2775,269,263,3351,2869,2863,1163,547,505,497,2985,2191,2183,2715,2221,2217,1895,3369,593,2775,577,1139,1915,1911,2039,1557,1565,1561,3293,219,217,131,127,359,1597,1511,465,461,2749,519,609,603,2675,2671,2983,1391,1385,1141,3423,2221,2217,575,3423,2039,3529,3523,1495,1493,121,117,3315,1895,1889,2325,2321,157,2865,2863,1235,571,567,565,259,255,3005,735,373,3437,355,673,489,667,187,465,461,1217,465,461,1253,1257,1251,1253,1251,1533,1531,1529,2715,2235,2227,2235,1181,1175,2227,2179,2173,1517,673,667,477,471,931,933,3311,2715,509,507,131,127,131,127,3451,1237,373,2231,2227,671,667,363,1145,2973,3257,2777,1895,1889,1533,1529,1523,3423,1483,1635,3257,3425,3429,285,373,653,651,2935,1575,1579,1533,1529,3005,2935,3555,3549,1427,3031,2329,2433,3031,1915,1911,2715,2289,1139,2187,477,471,3555,499,497,3549,2983,1387,1385,1253,1251,2187,1533,1529,2549,887,531,771,2295,2779,681,681,887,1435,2359,1637,17,11,1145,1241,1235,2747,1337,1447,3147,3145,3141,1707,1297,1289,2295,1585,1609,1447,681,2889,2883,3423,3145,2779,545,3209,3239,3235,319,1241,3125,3345,809,3135,949,1265,1261,2935,3257,3041,3001,519,3101,3001,3093,737,949,2357,2507,1377,2593,2875,2873,323,2185,519,2721,689,1811,2185,1685,2407,2401,1377,2205,3475,3477,1053,1073,2289,899,893,1379,579,343,341,1541,1545,519,49,45,41,3409,3405,737,1383,3157,2095,103,909,909,2059,3453,2379,801,2373,689,53,3441,3443,3427,3163,601,1315,1313,3185,605,2265,2565,2147,2145,717,885,1235,1179,1175,943,937,1597,1277,1275,1273,2299,3447,3283,3285,3281,3425,2535,2527,1505,3239,3235,2525,2517,3227,2915,1095,2911,3197,2319,2315,3191,3393,2917,2911,803,2265,3447,1881,3185,1541,1471,3393,993,3367,1505,3521,1117,2927,435,965,1079,1285,3187,2089,2207,957,953,1895,1889,2147,2145,933,103,1623,1621,2029,1503,2407,2401,2385,2383,1139,3153,2999,1283,397,395,459,457,431,425,2637,2633,851,3125,3135,3227,1053,2593,801,191,3521,799,2949,2941,3271,3263,737,111,109,3369,1895,1889,3237,3235,2949,2941,3271,3263,2759,1285,907,909,3411,3405,2989,1019,3247,3245,1597,1593,1183,1175,3023,305,3477,3469,3465,3475,3473,2935,1125,1121,3101,3093,3109,3393,1179,1175,3367,191,1449,1445,765,741,1531,1529,851,2471,1285,1093,1091,3187,1139,661,3491,3489,717,3237,3239,3235,1161,1053,1461,2071,2067,1483,1483,1595,1593,1533,1529,319,1241,3125,809,3135,3345,949,3101,3093,519,2357,3477,3475,3469,3465,3473,689,1623,1621,2407,2401,1053,909,1315,1313,1595,1593,3441,3443,3427,3185,1073,3409,3405,1483,3163,2265,2565,3285,3283,3281,3425,1179,1175,3447,2299,1597,1179,1175,3393,803,1505,1895,1889,103,1117,957,953,2927,1503,435,3521,459,457,799,1139,2949,2941,3271,3263,2593,2071,2067,3247,3245,2989,1019,3369,1895,1889,1597,1593,3393,1531,1529,3045,909,441,439,441,439,131,2101,127,2105,2097,3559,3557,139,1411,1411,441,439,3111,3103,3185,75,139,139,139,3111,3103,139,79,441,439,139,139,2109,2107,323,2397,2391,1953,1953,3409,3405,435,3535,3531,435,3535,3531,3189,2363,2361,143,137,545,143,2561,2563,3243,3235,1511,509,507,291,285,831,2211,3243,3235,3243,3235,2187,3117,3187,3183,2885,2883,963,959,967,1661,2191,3279,3273,2925,1383,939,937,2847,3503,3497,3203,509,2777,3267,3263,1197,1195,1001,999,3009,3125,3135,739,2973,509,2777,687,1091,981,979,3395,3403,3401,509,1197,1195,3251,3249,3245,2933,1495,1493,343,341,315,343,341,1883,2795,3425,1483,345,341,3187,3183,1213,1211,1155,323,3407,3405,519,721,575,2159,2033,2155,3453,2927,605,603,3319,3317,2753,2589,3187,3183,2885,2883,2291,1205,1111,627,625,3229,1729,1735,1727,121,117,2095,1141,1823,3183,1187,3495,665,3489,1523,3117,2867,2863,2657,2653,2565,1405,1403,2753,2049,2047,1059,1883,669,667,1213,1211,3099,2601,2595,2681,3097,3093,3117,197,3233,3227,3025,2273,2285,2281,2271,2837,3451,2273,2281,2271,577,577,2845,1205,2777,635,3187,2647,3395,3403,3401,2831,2827,939,937,2973,2971,2565,337,2675,2671,3311,2319,2315,775,1495,1493,2707,1111,1485,907,1419,1421,1417,111,115,109,501,497,3451,1253,1251,121,117,2095,1093,519,521,1597,3227,3447,1197,1195,3239,3235,437,1387,1385,2939,2777,3185,509,2715,3251,3245,1633,135,127,1993,1989,3237,3235,535,2743,2689,2687,669,667,2691,2689,2687,3147,3141,397,395,343,341,577,2775,3239,3235,2563,3411,3405,3227,3267,3263,689,139,963,967,959,689,2989,1101,2273,2281,2271,545,549,541,509,507,2715,2933,1827,3183,2935,895,893,3163,365,1553,1559,1561,3117,2715,577,2565,343,341,3251,3249,3245,2675,2671,2715,2719,2209,1653,3163,931,3379,43,41,2565,201,199,345,341,2675,2671,3315,3399,669,667,577,2565,1585,343,341,3425,505,497,1531,1529,3571,3565,2341,2337,2211,3099,2601,2595,2681,3097,3093,3239,3235,3183,2935,689,1511,1237,2565,131,127,3169,1661,3031,2691,2687,1091,981,979,3095,3093,3371,3367,2767,721,1751,1745,143,143,137,1415,1481,343,341,3247,3245,3163,3227,1633,1485,3185,2815,567,2189,3223,3215,2507,991,3237,3235,1677,2393,799,2391,2269,2267,2985,1379,805,1293,1001,999,1289,169,165,751,3049,877,873,1811,1813,1863,1815,1859,1861,3045,2547,89,81,3247,3245,495,1133,3029,3123,3173,3237,3085,89,81,2975,1237,3227,991,2723,2279,2285,2271,131,127,139,2105,2097,175,2521,2517,103,2899,579,3537,1237,3531,3175,1531,1529,1383,951,3457,2569,1353,1347,3239,3235,823,981,979,1019,2989,2241,2981,3425,1139,3115,1091,1059,3049,1183,1175,2979,951,1811,1991,1989,1435,1437,1433,1149,1365,3415,1435,3267,3263,3143,3141,333,635,2985,349,341,1609,803,2969,3237,3235,799,843,841,1013,1435,1149,877,873,1263,1261,3207,181,2981,103,1235,2291,1483,3423,3265,3263,193,3019,47,2191,2099,2097,2265,967,3447,2733,3537,1239,3531,2147,2145,1419,1417,1881,329,3227,193,2169,2165,3015,3011,531,1235,3223,3215,2235,2227,3189,649,639,3147,3141,1703,2427,2423,103,689,2593,1245,1243,3241,3235,3267,3263,1057,1059,1387,1385,3015,3011,3015,3011,2669,2743,1769,1767,2985,2397,2391,375,3521,1197,1195,3537,1237,3531,3185,3175,2975,3015,3265,3263,1011,3223,3215,133,127,1687,305,805,1597,1515,3193,3191,3479,3473,1069,2235,2229,2227,3149,3141,3379,1669,1665,2915,2911,2235,2227,3089,567,131,127,3115,131,127,3341,3335,2933,3415,1687,2503,1531,1529,2157,2155,531,683,1719,1717,3175,239,2467,2461,1365,781,1719,1717,3537,3531,1379,1499,1493,3293,499,497,285,3233,2185,3145,3141,285,3293,499,497,1541,1097,2305,2985,781,3293,499,497,1483,3231,617,615,2273,2281,2271,3507,2071,2067,3443,3187,3185,831,3237,3235,1223,1229,3147,3145,3141,3197,3191,3559,3557,1685,531,3407,3405,3087,635,3411,3405,771,3247,805,803,3267,3263,2725,2791,2783,2199,2193,2885,2883,3577,465,461,997,909,2677,2671,2163,731,2155,363,3283,3281,3559,3557,1773,1767,1447,435,363,361,3229,2825,3427,3005,1169,333,3195,3191,2845,1179,1175,1703,1349,1347,2685,1463,2175,2173,3559,799,3557,985,979,3145,3141,2569,2499,2493,1903,1901,2933,3491,3489,1597,1431,3149,39,31,3141,2753,2075,2067,3369,427,425,2733,527,3559,3557,3491,3489,465,461,1401,1395,2775,2779,2999,1163,649,1067,3089,3053,2737,2273,369,2281,2271,427,425,3267,3263,2163,731,1315,2669,1729,1727,2299,367,505,503,497,3267,3263,3219,3215,35,31,3347,985,979,2743,1169,2123,2117,289,327,3239,2017,2011,3235,1481,3315,1445,3189,3187,1169,191,193,1179,1175,2985,2733,2163,731,2155,1953,3185,2565,1485,1237,3145,1499,3005,1493,3141,3185,15,11,1903,1901,2393,2391,3119,363,2579,3145,3141,1541,1729,1727,1729,1727,1903,1901,3041,1179,1175,2569,2499,2493,1729,1727,3145,3141,139,141,213,211,2565,3229,2565,2565,1485,1479,3433,353,3177,1503,1505,1501,1481,2983,2985,1201,1195,1201,1195,809,2281,2271,3187,1515,1513,549,3389,3381,617,613,611,2163,2159,2155,2273,2281,2271,1019,59,803,3411,3405,3423,59,1615,1611,803,1823,597,2507,2503,2233,1181,2227,1341,399,403,395,3519,735,739,1077,3237,3235,1077,2975,993,831,839,833,2185,1677,2371,2357,1161,577,519,2647,2981,3185,281,271,263,273,2569,3183,2849,2985,1977,1971,2211,2273,2371,2357,1161,2105,3389,2097,3173,3123,3133,1201,1195,3193,3197,3191,57,59,2021,751,323,2249,2247,3049,1165,637,3257,3165,2211,3437,805,803,193,2105,2097,1811,2413,2409,3045,2251,2247,687,1253,1251,669,667,899,893,3197,3191,2205,77,2431,2981,2357,2355,311,309,1751,1745,1939,1947,771,3269,3263,3187,2249,2247,2105,2097,967,1047,3193,3191,1265,1261,597,3185,3437,2983,819,2371,1133,2725,1293,1289,3247,1595,689,2249,2247,677,3521,1881,1885,2845,2565,1763,1765,1761,909,2101,2097,1315,1541,175,2647,441,439,907,905,181,2099,2105,2097,3239,3235,2647,3575,197,3227,589,2785,2783,1153,3411,3407,3405,2567,2565,2809,1237,3555,291,2205,3549,2569,3183,2719,2885,2883,3097,3093,3389,3381,95,93,91,2059,1019,131,127,2471,2559,373,1239,3547,3539,2563,181,3453,345,341,3279,3273,2161,2155,2825,2205,799,3359,3353,1689,2211,3143,3141,799,1483,3257,2105,2097,3159,75,187,1187,899,895,893,2589,3087,3419,1805,2983,1885,1911,2983,577,1155,1803,2737,2543,3187,2651,1379,1269,1267,105,1161,2825,3507,3049,1047,1181,1175,347,341,721,719,853,1635,175,2147,2145,2565,2563,1685,1793,1791,977,1155,3193,3191,1265,1261,3447,355,3013,1215,1211,2825,1785,1463,1145,3239,2647,3235,3087,1113,2355,2359,3567,3565,3425,2269,2267,2503,2641,2507,345,1483,341,3003,2983,3049,1165,2299,2105,2097,2809,3183,3457,1057,3011,1769,1767,1359,1355,597,2795,3163,3005,1405,2789,917,911,2783,2999,3075,3081,3067,1265,1261,271,263,1449,1139,2103,2097,2393,2391,1733,1727,3189,3199,3191,943,937,27,21,621,623,619,3231,2471,1301,1299,2205,1613,1611,2651,19,597,993,2413,2409,2565,3425,1329,1325,2273,2281,2271,3025,3393,1915,1911,3071,3077,3067,3229,3301,3299,2781,501,497,3005,1405,2789,917,911,1049,885,3437,3223,3215,2841,2847,635,2837,1609,1703,1719,1435,2915,1163,2911,3045,3265,1265,1261,3263,103,2971,2675,2671,3239,3235,285,2819,613,181,993,1149,1047,1249,1165,477,471,1243,781,291,2917,2911,3425,2651,2885,3101,1249,1245,1243,3093,1077,2969,2975,2969,3241,3235,2795,1379,3507,435,1619,1643,1641,3049,3051,1209,2253,2247,2545,991,1619,1643,1641,3173,373,1239,3337,3341,3335,1241,1235,3001,687,2809,1677,2181,2177,2173,1481,2041,2413,2409,333,843,841,1485,2763,2761,177,3453,3407,3405,2851,1555,1563,3559,1915,1911,3557,1237,1241,299,293,3251,3253,2917,2919,2911,3245,1165,1161,839,835,833,597,2753,2513,295,293,1623,771,1621,1311,1541,2105,2097,1597,1481,2265,2221,2069,2067,1247,1243,1763,1761,3559,3547,3539,3557,2089,121,117,25,21,2105,2097,3001,2207,3129,3125,3139,3135,3495,3489,1463,1483,9,1315,1337,2715,1401,957,953,1395,643,1863,1861,2935,417,415,3521,3419,115,109,1915,1911,451,3525,3523,427,425,661,2733,2789,2783,3005,613,2185,3187,2205,2203,3491,435,3489,1145,3239,3235,1199,1195,933,1685,301,293,2789,2783,2985,1497,1165,1493,601,2753,905,501,465,461,497,2589,3411,3405,1597,1723,1717,1597,1081,151,145,809,1419,1417,1323,1319,751,197,1821,2915,1163,2911,3293,1071,553,3005,2115,2107,1131,1135,1505,729,1711,1277,1273,3159,3209,343,341,581,1497,1161,1493,967,965,3003,645,2845,2933,3529,2917,2911,3523,801,2385,2383,1139,689,1265,1261,327,3411,3405,2775,3345,1069,3153,653,651,2989,3237,3235,1329,1325,2559,1101,2937,801,3389,3381,271,263,2241,2569,1053,1387,1385,1993,1989,1793,1791,2235,2227,2235,2227,1057,2841,455,3527,3523,1091,3175,3029,1763,1761,1161,657,651,1161,2651,1387,1385,1067,3101,3093,3397,647,1187,3411,2205,3405,143,3437,3521,3075,3081,3067,3173,1707,2031,19,11,1189,821,2205,1163,1703,505,271,263,2709,515,2715,509,85,81,2055,2047,2989,1495,1493,2709,2471,1275,1273,1551,1559,3163,3541,3539,3175,2715,851,1961,2957,2951,2375,2373,2743,2709,2221,339,851,1483,2641,2639,417,415,665,181,2039,515,2431,135,131,2105,127,2097,2457,2453,839,835,833,3521,2975,3203,1103,2795,1551,1553,1559,1561,1277,1273,2701,2697,2491,2483,2669,2915,1163,2911,845,1011,841,3407,3411,3405,3407,3411,3405,1435,1637,3185,3247,3245,2747,1915,1911,2979,1155,857,1653,1249,1243,2657,2653,3545,3539,2709,2991,781,2949,2941,1809,1601,2709,2017,2011,3541,435,3539,2855,2853,3075,3071,3081,3077,3067,931,3097,3093,1497,1495,1493,2579,2669,45,41,1671,1665,1785,1633,131,127,2935,1551,1559,575,581,2449,2235,221,455,3527,3523,3183,1597,43,43,41,1329,1325,2221,485,479,2191,2513,295,293,2749,2743,1669,1665,3223,3215,289,781,1205,153,145,2589,1587,3071,3077,3067,455,449,1575,3293,1161,3293,237,1481,2991,2985,1297,1289,2621,2617,121,117,3379,1199,1195,2211,2207,3419,339,1597,1077,1139,2175,2173,1113,2691,2413,2687,2219,2221,2163,2155,1531,1529,2471,3071,3077,3067,2449,3001,2431,339,947,1389,1385,2651,1551,1559,1561,1847,1849,1101,2131,2127,2691,2687,735,2229,2227,2305,2985,3153,2745,2749,3011,1253,1251,3239,3235,1183,1175,3571,3565,1513,2187,2241,1445,665,661,673,667,3039,2733,3297,1145,2185,1163,1165,3437,3431,567,571,3129,3139,3207,665,673,667,1253,1251,1961,3297,2777,2179,2173,2809,605,603,735,339,615,2503,1279,1273,1163,1165,1161,757,753,2691,2687,1601,1249,1243,1113,3239,3235,1495,1493,3511,2235,2227,2463,2461,1161,2211,3507,1461,131,103,127,2809,2803,1091,3097,3093,3175,3029,677,963,967,965,539,339,533,2749,1237,2289,765,115,109,509,103,3185,15,11,3529,3523,3117,597,3453,1039,1037,3491,3489,1145,1915,1885,1911,1019,1131,2265,169,165,3209,947,1389,1385,1927,1925,3091,2393,2391,1161,1161,2209,269,263,3425,1757,1731,1727,1755,1481,1461,1465,1145,3555,3551,3549,1379,2513,2089,1411,643,2641,2639,435,1607,153,145,95,91,1601,2999,3425,1373,1369,1575,689,1595,3045,1161,1427,181,1165,2211,3257,3165,285,3015,2329,1161,2985,931,229,227,1915,1911,1465,477,475,471,2289,2041,1633,3555,3551,3549,1613,1611,3309,3577,1915,1911,1253,1251,2747,3451,1429,1427,1201,1195,809,3187,3411,3405,617,613,611,3389,3381,2163,2155,1515,1513,2849,2211,399,395,2507,2503,2431,2981,735,597,1711,1977,1971,3153,281,273,3049,1165,819,193,2725,1237,669,667,311,1751,1745,3437,3431,1811,103,839,835,833,77,2205,3257,3165,2255,2247,1265,1261,2975,899,893,1293,1289,751,1133,637,1939,1947,57,2021,59,3239,3235,2205,2203,3419,3415,2205,907,187,1315,2161,2155,197,181,3257,3555,3551,3549,1803,2737,1153,589,2785,2783,3227,2809,2803,181,1541,2641,2639,2211,3143,3141,1689,95,93,91,2059,2565,3097,3093,2719,2885,2883,131,127,1881,2099,2105,2097,677,3049,1301,1299,1449,721,1677,3129,3125,3139,3135,3231,333,1149,3173,1847,3425,539,339,533,2825,1609,597,3199,3191,1277,1273,3345,3457,3003,2983,2819,613,621,623,619,3005,1405,2789,917,911,2783,1077,2299,2491,2483,977,1315,597,2795,3163,853,1769,1767,3419,2471,1181,1175,3189,289,355,2745,2749,27,21,3193,3191,2393,2391,3453,1445,2181,2177,2173,2969,3241,3235,1419,1417,2763,2761,1497,1493,1329,1325,3025,2709,1485,3337,3341,3335,373,967,843,841,687,3071,3077,3067,501,497,1619,1643,1641,781,3045,1555,1563,1279,1273,1163,1161,2413,2409,2781,1435,2253,2247,1241,1235,9,2221,3397,647,1993,1989,501,497,1685,115,109,2185,3187,553,1311,1401,1395,301,293,2985,905,1633,417,415,3495,3489,1199,1195,3425,3005,1247,1243,1131,1135,2069,2067,2733,3005,613,1161,1237,1723,1717,3521,2241,3209,3159,1277,1273,2221,2651,689,271,263,2235,2227,3437,653,651,2669,1101,1091,19,11,645,1707,1587,3521,757,753,1703,1785,3407,3411,3405,181,851,1915,1911,2747,1249,1243,1915,1911,1809,1551,1559,1561,845,841,1011,85,81,2055,2047,3185,1155,169,165,2375,2373,153,145,2749,2743,1669,1665,1633,121,117,3223,3215,1205,575,581,3541,435,3539,3097,3093,1551,1559,3039,285,2733,1253,1251,1513,2175,2173,1601,665,661,673,667,1427,2179,2173,477,471,2219,2221,567,1131,1461,1091,3097,3093,3507,1495,1493,3185,269,263,153,145,1411,285,3015,2329,295,3377,293,295,293,3377,1223,1229,47,41,605,603,1187,1253,1251,1515,1511,1729,1727,295,3377,293,1711,1651,2615,2611,2505,2501,1131,2505,1711,3143,3141,131,127,993,131,127,131,127,2507,1279,1273,1297,1293,1289,125,117,1047,2421,2417,2447,2999,2999,1165,1161,1165,1161,1765,1761,2995,2993,2631,635,3345,3129,3139,1849,3371,2095,2091,2993,1313,691,1541,139,935,131,127,2421,2417,1019,15,11,935,2919,2911,851,1019,851,857,725,375,1049,3011,951,1765,1761,2473,2985,1399,1395,1437,1435,1605,2815,2819,2487,2483,1235,3257,3257,289,2291,1533,1529,301,293,2749,2491,2483,1399,1395,3149,3141,2943,2941,3143,3147,3141,689,3149,3141,3239,3235,1125,3239,3235,2943,2941,1049,3011,99,91,1049,1247,3011,2291,3167,2943,2941,77,2041,25,29,21,2933,3199,3191,1405,1403,2311,2307,1427,649,2529,2527,2299,781,2785,2783,1915,1757,1755,2715,1277,1273,1019,2311,2313,2307,411,325,405,935,2919,2911,635,2189,1393,1385,2743,2749,301,293,935,2919,2911,2119,2117,1283,995,2981,2471,2715,1113,289,2101,2105,2097,539,535,2749,1091,2715,2943,2941,2719,1711,2615,2611,2505,2501,3143,3141,993,131,127,131,127,2945,2941,411,405,2421,2417,2933,2999,1047,1165,1161,1765,1761,1293,1297,1289,1713,1715,1709,3345,1849,1845,951,2943,2941,2715,1765,1761,1605,1277,1273,725,851,1019,1399,1395,1225,1231,3257,1437,1435,649,2529,2527,3239,3235,3149,3141,301,293,2981,2943,2941,1125,3143,3147,3141,689,3149,3141,289,1427,2291,1113,1405,1403,2311,2307,1019,2785,2783,2715,2313,2311,2307,1283,995,1091,801,803,3579,1455,661,3041,2211,2971,3185,2885,2883,3187,3425,3199,3191,3153,637,689,15,11,2559,77,2069,2067,1329,839,833,1325,3269,3263,2407,2401,3427,2099,2097,1207,745,3153,3199,3191,3407,3405,1193,339,689,15,11,2295,579,3545,3539,3577,589,3143,3141,1531,1541,9,693,1,2885,2883,2885,2883,107,2099,2163,2097,2155,175,801,1141,1597,1561,1579,323,3049,1205,679,1587,1785,1169,3009,2593,679,2689,2687,3001,717,949,3243,3235,823,2505,1263,1261,2231,2227,3049,1205,427,425,2973,801,131,127,2989,2505,2559,3425,2181,197,193,2173,637,3249,3245,3407,3405,373,3001,547,1915,1911,3269,3263,3003,2069,2067,757,759,753,3537,3531,2185,3187,3185,661,1623,1625,1621,3199,3191,1241,417,415,323,3407,3405,2105,2099,2097,1541,2753,3163,3001,1597,1561,2559,3003,3199,3191,3455,647,3153,2363,717,2361,2989,353,3145,3147,3141,3199,3191,3237,3163,2589,3235,581,3237,3235,1575,1581,1573,2939,2939,1915,1911,661,3491,3489,2689,679,2687,25,27,21,1101,1193,2689,2687,3197,3195,3191,2185,823,13,11,3147,3141,1117,679,851,3269,3263,2971,2937,1387,1385,15,11,2981,2743,1141,3375,547,43,41,2981,3197,3195,3191,2431,2343,2337,1531,1529,2865,2863,567,2099,2097,2691,2687,2689,2687,45,3239,3235,3003,1163,765,1885,717,1145,547,2979,3197,3195,3191,3425,1117,679,1579,2985,1483,519,1483,519,1483,519,3495,485,2933,479,3489,1067,1021,2311,2307,3429,2701,2697,1263,1245,1243,1261,1827,1829,1991,1825,3185,2311,2235,2233,2227,2307,3145,3141,2249,2247,1165,1189,2211,3059,3057,3127,3129,3139,3137,1139,905,1091,3425,895,893,1263,1245,1243,1261,441,439,3223,3215,1241,373,1073,3275,3273,1635,3237,3235,363,601,2695,2687,993,1131,2961,2623,2617,931,1091,373,1235,3275,3273,3223,3215,1145,951,2985,363,1553,1561,1481,1827,1829,1991,1825,3239,3105,3103,3275,3273,363,1139,1139,3241,3239,3235,3237,3235,3109,3103,1813,795,791,2471,2979,1803,2943,2941,771,2055,2047,3265,3263,1483,345,341,3159,1541,1461,23,21,93,91,2971,1719,1717,589,535,1073,1069,2971,597,3091,1141,1803,323,3025,3345,2487,2483,2815,3407,3405,2071,2067,1703,1541,2191,3447,1131,2487,2483,761,753,1047,3371,3199,3191,1881,2589,3453,2875,2873,1531,1529,1541,627,625,3209,3159,2971,1719,1717,1541,2623,2617,1541,2989,1047,3199,3191,1661,1661,3269,3263,1553,1561,1721,1717,169,165,2971,2935,1405,1403,3193,3191,2979,3185,17,11,527,2769,3001,3239,3235,1587,1597,1583,1575,519,1139,2055,2047,3153,55,2105,2097,2939,2933,781,2981,1141,1659,1719,1687,1717,2971,1719,1717,1461,1463,1483,1131,2693,2687,17,11,757,753,519,1575,1541,1543,1541,1539,15,11,3187,781,1483,97,91,1021,1021,1021,173,2265,2265,1205,1505,2791,2783,3415,3411,3405,1205,339,2261,1205,2265,1205,1203,1205,1505,589,3197,3191,1205,1203,2791,2783,761,753,761,753,1301,1299,1729,1733,1727,1741,1737,1741,2061,95,91,3175,1743,2789,2783,1113,3175,3147,3141,851,1139,617,265,263,1165,2205,2357,575,645,2971,2357,2249,2247,1197,1195,3111,3103,1939,1947,57,3197,3191,2433,1811,1785,2897,3545,3539,509,75,3031,3185,3165,2753,103,131,127,1193,1047,2059,3159,3155,175,3199,3191,851,2715,2433,2753,1187,1139,3029,29,21,29,21,1031,1029,885,2199,509,2229,2227,2821,1667,1713,1665,143,3205,2695,2687,2795,2231,2525,2227,2517,3101,1249,1243,3097,3093,1333,123,117,2715,2511,3377,175,2099,131,107,127,1405,1403,1241,1407,3031,605,603,3345,2385,2383,89,81,713,2279,2285,2271,2279,2285,2271,1019,2529,2527,2231,2227,1803,1793,1791,1241,1161,1165,143,581,1165,2949,3267,3263,2759,2755,899,893,2715,103,3029,2039,851,131,175,127,1405,1403,2749,1585,947,1113,2229,2227,3111,3103,1145,1165,1173,287,509,2715,1131,1069,3003,2211,643,2901,2897,1165,1427,2933,2357,799,1705,2897,2301,1245,1243,851,2937,2231,2227,2525,2517,991,297,293,1405,1403,2389,2383,3267,3263,2531,3031,2527,2937,851,65,799,2759,899,103,893,3267,2949,2941,3263,847,841,131,127,2937,3111,3103,2691,1113,2687,643,2897,643,2933,2357,799,991,2937,3267,2949,3263,2759,1223,1229,1223,1229,3005,3031,3005,1145,3199,3191,3275,3273,3267,3263,2519,2517,1455,2089,1101,3209,3209,3267,3263,2089,29,21,3199,3191,3013,1069,3175,3029,615,2263,2273,1387,1385,3011,3007,2635,2633,997,25,21,3091,3183,3087,3091,691,905,2657,2653,1391,1385,2185,1001,839,833,999,3239,3235,2913,1401,1395,2911,79,765,669,643,667,575,531,589,2041,2163,2155,1545,315,1207,1205,1463,1019,851,991,2235,2227,689,25,21,687,2937,1187,3029,1405,1403,2547,3183,3183,1315,1309,663,665,3241,139,3235,2153,2145,1463,803,2797,1149,2835,2833,1113,2171,2165,1387,1385,1149,1639,2819,339,3207,1265,3271,3263,1067,993,1207,877,873,2865,2863,2865,2863,169,2137,2135,1421,1417,2865,2863,3521,3521,417,415,613,615,1421,1419,1417,2733,2505,993,2211,1315,481,479,3541,3539,1213,1211,3001,2255,2247,3183,2443,2437,2775,687,689,3143,3141,2945,1121,2941,1285,3145,3141,3217,3215,3237,3235,3479,3473,3143,3141,3003,3041,3187,3249,3245,2457,2453,593,2785,2783,593,2785,2783,1171,1393,1359,1355,1385,1463,1445,2123,2117,2905,3467,3465,1673,1665,465,461,3163,1011,2229,2227,905,3117,3147,2251,2247,3141,1113,287,2507,3367,2393,2391,1719,1717,169,165,3003,2137,2135,1595,1431,1535,1529,1915,1911,2299,3175,3029,615,2263,997,3011,3007,2635,2633,3091,3091,2913,2911,905,669,643,667,2185,79,765,2657,2653,1001,839,833,999,3239,3235,1595,1545,2163,2155,1207,877,873,1187,3029,1149,1149,2819,1019,851,3207,1213,1211,1315,1309,3183,2137,169,2135,1113,2865,2863,993,3207,3207,1315,2775,3217,3215,3237,3235,689,3479,3473,3143,3141,687,1915,1911,1673,1665,593,2457,2453,1011,1463,287,3367,2393,2391,2137,2135,2299,781,779,153,621,601,623,619,917,799,2995,3369,153,145,2059,2431,53,799,2723,1523,917,911,1143,3097,3093,3025,2525,2517,1237,153,145,2651,2937,3153,3163,2669,1277,1273,2467,2669,2461,741,1551,1559,2979,1553,1511,1561,2125,2117,2125,2117,1551,1559,153,145,153,145,153,145,1511,153,145,2471,781,779,3075,3081,3067,781,779,3153,3369,153,145,2431,1237,2651,2669,3163,1551,1559,2125,2117,153,145,153,145,761,753,741,761,753,761,753,2563,2647,3185,2561,2563,225,217,1145,613,2647,2891,2883,3371,2703,2697,3013,2875,2873,2357,3239,3235,3157,1245,1243,345,341,2565,3197,3195,3191,737,737,2703,225,217,2697,3197,3195,3191,3453,2839,3183,2647,3577,3319,3351,3317,131,127,1191,2759,97,91,441,439,2807,2647,97,91,2565,679,983,979,2357,2789,2785,2783,1181,1175,1019,1149,175,171,3163,2825,441,439,3013,3157,1245,1243,721,3145,3141,1455,2985,225,217,187,179,1865,1861,689,197,193,1263,1261,635,2675,2671,3237,3235,2565,2985,3163,1121,1401,1395,965,2565,1161,435,3491,3489,175,3001,193,3175,527,2733,761,753,3379,2935,1865,1861,933,689,1983,1979,3267,1121,3263,1067,1101,2807,1113,1165,3371,1057,15,11,1019,3049,2743,771,2935,907,271,263,3343,2657,2653,2743,181,847,841,2981,1389,1385,1553,1559,1561,2669,2753,2759,3175,2949,1783,2743,1667,1665,131,127,3239,3235,3075,3081,3067,1199,1195,2449,1389,1385,3475,3473,2503,2985,345,341,527,3185,3179,1145,2339,2337,339,3223,3215,2759,2935,3013,3371,771,983,979,1719,1717,3145,3141,1783,285,3013,1837,1633,3293,1837,1841,2563,613,1145,2891,2883,3049,2743,2875,2873,2981,2357,3239,3235,345,341,737,3197,3195,3191,1161,2565,97,91,2647,679,3183,721,2339,2337,3013,1019,1149,857,1453,1181,1175,2985,175,171,187,179,635,689,3237,3235,1865,1861,1263,1261,965,1121,3001,933,271,263,3343,1389,1385,907,2669,285,3175,1783,181,1553,1551,1559,1561,3075,3081,3067,1199,1195,1667,1665,2449,3475,3473,1837,1841,2581,1387,1385,961,3015,771,765,181,1881,1885,131,127,181,2159,2155,2845,997,761,753,1165,29,21,15,11,801,3005,3271,2961,3263,3045,765,2143,2135,3045,1653,3239,3235,775,2147,2145,993,991,575,2885,679,2883,2891,3393,2883,343,341,3117,3453,3429,2565,2071,2067,3041,1197,1195,2371,2431,3269,3263,2943,2941,3423,529,527,1595,1605,3227,181,97,91,1253,1365,1251,2885,679,2883,3185,2295,2943,2941,2295,1215,1211,2161,2155,3389,3381,3253,3245,2095,3443,1237,3453,1967,1965,1241,1237,2105,2097,3303,3299,3543,3539,1151,1541,3409,3405,2723,519,801,3157,2567,131,127,2885,2883,2885,2883,2647,1551,1559,1651,2109,2107,2753,3425,2375,2373,2767,627,625,3115,3101,3097,3093,3119,2299,2305,2549,1215,1211,721,983,979,181,3457,3199,3191,1635,1151,3447,527,983,979,1551,1559,1235,2659,2653,2255,2247,1677,1503,1435,993,2845,3101,3093,2867,2863,1263,1261,691,687,337,3055,2647,13,11,1597,3495,3489,3447,627,625,2531,2527,2109,2107,1401,1395,2753,1419,1417,3529,3523,1311,2185,1141,2185,3145,3141,761,753,2467,2461,3145,851,3167,2971,2111,2107,455,449,2111,2107,2205,761,753,1101,2205,1135,3237,3235,2775,2299,2305,2989,3529,3523,1387,1385,2385,2383,2651,917,911,2885,951,2865,2863,2669,2211,1163,333,3425,1551,1559,2089,2767,2771,2765,2979,241,643,3145,3141,3247,3245,3537,3457,3531,2467,2461,2503,2185,3425,345,341,2623,2617,1597,2979,1633,3379,1785,1651,45,41,3165,225,217,2121,153,145,2117,455,449,2295,131,127,3425,3239,3235,3091,1077,187,2675,2671,3025,1531,1529,3367,673,667,1551,1559,2885,2883,257,589,1183,1175,2809,3145,3141,1633,3371,3367,1209,3185,3175,2885,2891,2883,3393,2143,2135,3443,3145,3141,1575,3303,3299,1605,2767,3015,1141,2623,2617,1235,2979,1097,1481,153,145,2125,2117,1653,3239,3235,2885,679,2883,3117,343,341,2295,2371,181,1605,3303,3299,3543,3539,2567,2647,801,1241,1237,3537,3531,3453,2885,2883,1967,1965,1151,3185,2723,519,3025,1651,3199,3191,1183,1175,1077,1635,1151,983,979,2109,2107,153,145,2125,2117,1481,337,3145,3141,3055,2255,2247,1263,1261,2185,2185,1141,1311,3495,3489,3529,3523,2675,2671,225,217,2111,2107,3425,1387,1385,2467,2465,2461,2971,43,45,41,1551,1559,2211,1163,2503,2121,153,145,2117,1633,455,449,289,3443,1141,2623,2617,3015,907,909,901,2937,2913,2911,2937,2913,2911,2937,2913,2911,3237,3235,827,3185,39,31,2835,1189,95,91,103,1783,447,439,3357,3353,2779,579,1353,1347,981,979,2235,3025,1183,1175,2227,1057,1357,1355,851,2869,2863,877,873,2109,2107,131,127,1315,2197,2193,3237,3235,2689,2693,2687,1585,181,2159,2155,3025,87,81,2053,2047,181,1253,1251,447,439,505,497,1373,1369,167,165,1783,1511,1585,3025,643,3305,3303,3299,2693,2687,2779,2781,167,165,1373,1369,1595,847,841,847,841,2231,2227,1305,1299,2233,2227,1445,2463,2461,153,145,2121,2117,1401,1395,1401,1395,575,2777,749,3075,3081,3067,2323,2321,1685,527,1401,1395,167,165,727,2795,2105,2097,3521,727,723,2323,2321,2777,577,95,91,131,2161,127,1685,1719,2385,2383,799,757,753,717,719,2375,2373,2295,887,3075,3081,3067,1405,3257,1403,1141,2089,3463,3459,2525,2523,2517,2491,2711,2777,1483,167,165,3529,3523,2777,577,2089,2661,2653,3419,2299,3529,3523,2635,2633,1163,681,417,415,1067,1411,1225,1231,2185,1495,1493,3409,3405,167,165,2089,1651,2451,2447,1667,1665,1667,1665,2481,2479,3091,1523,2211,2211,1953,1837,1839,1091,1405,1365,1403,1927,1925,167,165,1523,2329,1927,1925,635,635,1849,1845,1049,3011,2981,635,1283,995,635,635,1225,1231,297,293,3239,3235,3239,3235,851,1483,3145,3141,803,1483,3337,2249,2247,3039,951,3529,3335,3523,1553,1561,951,3029,2515,3239,3235,949,1705,1141,2185,2185,811,1387,1385,1121,53,2159,181,2155,2887,2883,1705,3091,3147,3141,3025,1507,3239,1131,3235,2865,2863,3495,3489,2191,2927,1507,2935,831,349,341,2125,2117,131,127,1783,1145,2185,3091,367,3147,3141,3371,3237,3235,549,2355,1141,1187,59,55,1047,887,2891,2883,597,575,1143,3237,3235,687,1079,1141,689,2241,2491,2483,2711,1001,1005,999,2875,2873,1785,1189,2547,77,3247,2917,2911,3245,2099,2097,1601,2943,2941,1067,1069,1595,3279,2569,3273,745,765,767,1811,3227,2111,1783,1019,855,2989,2995,2295,3029,997,991,2105,2099,2097,1541,1531,1529,2885,2883,55,187,2273,2281,2271,2147,2145,799,131,127,445,1141,439,2935,1241,2289,601,181,55,3227,957,953,2099,2105,2097,1891,1889,3055,3419,2723,95,99,91,801,3349,3347,1237,909,2563,631,625,361,519,363,2717,605,603,1187,2593,1059,3013,717,29,25,21,2933,3385,3381,3457,3195,3191,1523,1635,851,2825,3183,2779,3185,2185,173,131,127,2937,1183,1175,1353,1349,1347,951,3029,2901,1387,3005,3003,851,1111,1449,799,1301,1299,3075,2891,677,1265,1261,2775,1743,2525,2517,3349,2711,2255,2247,3237,3235,1865,1861,3393,957,953,877,873,2677,2671,2969,2273,2281,2271,2507,2547,2181,197,2173,1093,2795,363,1485,2491,2483,2491,2483,1301,1299,1719,1717,333,1481,3535,2985,3221,3215,2549,3521,2185,2265,3419,3013,1865,1861,427,425,1141,601,2241,905,3445,631,625,1419,1417,761,757,753,1881,3185,2651,1401,1395,1597,1221,1227,301,293,1209,1623,1621,1541,3537,3531,1481,1723,1717,3529,3523,3425,1141,1891,1889,1071,3237,579,2569,2549,225,217,1093,2775,1057,3055,3457,1411,3529,3523,1141,143,143,1093,2299,3325,3323,2939,2939,3237,3235,431,425,2385,2383,605,603,2241,1101,1497,1493,3147,3141,2279,2285,2271,2279,2285,2271,1163,135,127,689,3153,801,2443,2437,1165,829,2995,2889,2883,2937,1067,2565,2427,2423,3101,2949,2941,1165,2207,1011,2975,2049,2047,2467,2461,1551,1559,1653,2563,2569,935,931,3521,2767,2717,3163,689,687,851,3217,3215,2205,2185,2949,2941,2427,2423,2543,1495,1493,43,41,1455,1117,1765,1761,1141,2795,2295,1165,2549,225,217,1667,1665,2979,2273,2281,2271,2121,149,145,1141,1141,3451,1173,3075,2285,2271,3081,3067,3479,2855,2853,3473,3223,3215,3379,1297,1289,3109,3103,163,3239,3235,2295,3011,187,1181,1175,3115,2675,2671,1101,3571,3565,2503,2885,2883,2503,741,947,1253,1251,1531,1529,3115,3163,1747,1745,2983,2985,3341,3015,767,935,1059,1365,3325,3323,2467,2461,3371,2507,2503,829,947,3205,2553,1485,295,293,1461,2591,15,2393,2391,1141,3087,3237,3235,1069,2591,1485,1483,1523,1411,1455,1483,1597,1757,1755,3411,3405,3013,689,1595,931,1481,3005,3003,3237,3235,549,1143,3227,2875,2873,1601,745,59,55,1019,855,55,2147,2145,1891,1889,1595,3227,3349,3347,801,181,55,95,91,1059,2099,2105,2097,2723,951,3029,1187,1301,1299,2937,717,2825,3325,3323,1059,1365,1141,1183,1175,3005,3003,3349,3013,3115,877,873,1481,1495,1493,1165,1485,2563,2795,957,953,2491,2483,1093,1265,1261,1141,3221,3215,2265,3419,1541,2185,3537,3531,761,753,1401,1395,301,293,905,1881,1891,1889,601,1209,2549,225,217,2569,3521,767,605,603,135,127,295,293,2775,2949,2941,2939,2443,2983,2437,689,2279,2285,2271,801,1101,2299,1173,143,2467,2461,43,41,2185,2717,935,3163,2049,2047,1165,2207,1455,149,145,3109,3103,163,1667,1665,1765,1761,3223,3215,2935,2979,947,1253,2503,1531,1529,3571,3565,1069,829,1485,3371,2503,933,1909,599,1905,3187,799,1483,1225,1231,191,195,3145,3141,799,601,3389,3381,1145,777,2395,831,993,3145,2569,777,1769,1767,97,91,3253,3245,3429,345,341,1069,2249,2247,805,951,79,765,2943,2941,1165,2211,3371,2569,3239,3235,795,791,3169,1253,951,1251,1253,951,1251,2103,2097,1097,3407,3405,97,91,3145,3141,3129,3127,3139,3137,3415,751,749,777,2943,2941,2017,2011,519,1155,857,2393,2391,1541,1757,131,127,1755,799,2885,2883,1763,1761,2943,2941,1483,141,3425,857,3253,3245,441,439,2289,3025,349,341,527,1241,3169,49,41,3167,909,3437,3239,3235,3159,3239,3235,3129,3139,605,1067,2809,3239,3235,2785,3209,3105,3103,665,2975,717,917,911,15,11,3429,3145,689,3141,1039,1037,3025,1149,1523,3457,3153,3009,3183,2775,1047,1049,1597,2393,2391,1793,1791,857,2355,1183,3025,3075,3081,3067,3447,599,349,341,1635,851,1039,1891,691,1613,1611,1149,1141,2845,1097,1249,1243,2889,2883,197,195,2969,1165,1249,1243,3239,3235,181,1263,1261,1263,1261,135,127,2985,1263,1261,1235,2851,1205,1209,2775,2781,687,687,1377,1067,907,2973,2549,1421,345,341,1417,3297,1181,1175,2041,1597,2099,2147,2145,2593,799,29,21,3129,3139,3507,2089,2249,2247,2211,107,601,1597,2311,2307,1165,1235,2847,3129,3139,3253,3245,2185,2191,1481,3175,3495,3489,1337,679,1401,1395,2559,2185,1209,3185,3185,1209,2265,3521,1419,1417,631,625,2191,427,425,2855,2853,879,873,1241,2295,1253,1251,3185,3571,1145,2589,3209,345,341,1747,1745,2385,2383,29,21,3129,3139,2279,2285,2271,2775,343,1067,2775,343,689,1193,1189,1685,799,131,127,431,425,2845,3147,3141,1019,1189,1021,3247,3245,2115,141,2107,1401,1395,1703,1067,3209,399,3425,395,2971,1235,631,233,2221,227,749,1021,1067,3209,3247,3245,3005,2957,2951,2569,1021,373,2743,2989,2427,2423,1551,1559,1145,1139,907,1067,1165,2211,2701,3117,2697,993,441,439,441,439,3185,3165,3163,3145,3141,1145,1483,2785,2783,1341,2781,2781,2651,3185,2845,1653,3025,847,841,2785,2783,323,1141,1139,2855,2853,3395,43,45,41,3167,3021,3189,3185,2017,2011,345,341,3425,3393,1553,1561,3223,3215,1585,1609,1605,131,127,2623,2617,3507,3237,3235,2969,1253,1251,3193,3191,2775,2733,2651,1183,1175,3185,1077,131,127,3209,2675,2671,1101,735,1183,1175,1511,3145,3141,847,841,1221,1227,2999,2999,2845,1663,3571,3565,3239,3235,3209,1597,2855,2853,2999,3105,3103,3185,2101,2097,3455,375,2591,3451,1633,2985,3185,3183,1145,3319,3317,3237,3235,3371,3175,3153,2101,131,127,1927,1925,1069,1729,1727,3209,1719,1717,575,3257,3239,3235,1465,195,1595,1021,1575,2623,2617,3257,3209,931,1097,2289,1481,1613,1611,1909,599,1905,1225,1231,1145,3253,3245,1769,1767,2569,2017,2011,3129,3139,233,227,2221,97,91,3407,3405,909,631,625,1595,3129,3139,3025,3159,1541,349,341,2289,3253,3245,3105,3103,2885,2883,2651,3425,717,917,911,3075,3081,3067,1039,1037,3447,599,857,1613,1611,1047,2969,181,1481,1249,1243,1067,907,687,3239,3235,2999,2775,2973,2311,2307,1747,1745,29,21,1401,1395,107,2089,2211,427,425,879,873,3253,3245,2675,2671,1067,1019,1021,689,907,1067,2279,2285,2271,441,439,1703,2971,3185,3165,2957,2951,1551,1559,1145,1139,3185,1165,1021,3189,3185,3209,3395,1553,1561,1511,1183,1175,1221,1227,3239,3235,1597,1091,3371,3209,1069,1719,1717,931,2623,2617,1601,1201,1195,1541,1163,2999,1163,499,497,1163,1163,3143,3145,3141,499,497,1597,3233,469,461,1143,2059,153,145,469,461,2059,3453,469,461,1265,2317,1261,2315,3455,1165,1729,1727,1729,1727,3241,3235,1551,1559,323,1265,1261,2317,2315,1531,1529,1881,2185,1597,1221,1227,1265,1261,2317,2315,1209,1481,1483,3015,2999,3143,3141,1155,1729,1727,1483,2531,2527,3379,1531,1529,1209,2185,1541,3143,3141,469,461,1661,1657,1661,1657,1019,1021,309,805,1741,1741,805,2061,2291,2295,1793,1791,805,3001,1419,1417,2295,1741,341,349,781,805,2295,1741,1649,1655,1647,1783,1695,1783,1695,1117,1729,3537,3531,1987,765,1101,1101,1201,1195,943,937,2791,2783,2839,1047,1079,1379,1047,2591,1481,1891,1889,349,341,1027,1025,1027,1025,3185,2205,529,2981,2875,2881,2873,1785,1785,2205,1165,519,375,3231,591,587,3371,3189,2989,3147,3141,2295,1707,3147,3141,2259,3257,3175,1481,537,2747,643,223,217,3149,3141,3147,3143,3141,3147,3141,527,2545,529,3407,3405,25,21,3409,3149,3405,519,223,217,3189,1703,529,3369,3147,3141,643,1595,3427,769,799,803,1765,1743,1723,1717,1761,1765,1743,1723,1761,3247,3245,465,461,2291,305,3389,3381,2901,3457,3429,1723,1719,1717,43,41,163,2885,2883,131,127,3247,3245,305,3389,3381,2885,2883,615,1731,1215,1211,1727,1821,615,3411,3405,3521,907,901,907,631,625,765,2753,3253,3245,2099,2097,301,293,847,841,239,2187,3253,3245,2749,2771,2591,2591,765,757,753,2943,2945,2941,53,757,753,601,2885,2883,3437,2289,2559,2563,3229,2563,2815,2969,1235,2979,1209,1121,1235,2979,3147,3141,2851,2651,2985,3001,3147,3141,1461,129,127,3165,2273,2281,2271,997,2971,1117,2971,1117,1063,1349,1347,3031,689,1021,3351,3071,3077,3067,2953,2951,3351,1955,1839,2185,3361,1141,3361,3353,1141,3521,1139,1145,1145,2185,1141,3521,3361,1145,347,341,325,325,1019,3123,3125,3133,3135,3199,3147,3141,3193,3197,3191,3031,99,91,3319,3317,3031,2565,3521,275,273,349,341,3145,3147,3141,1239,2795,1541,1541,379,2299,3031,3193,1323,1319,3191,1915,1911,1221,1227,3167,435,3269,3263,3241,2969,3235,377,3187,1881,3319,247,245,3317,3347,3537,435,3531,2293,3269,3263,3147,3141,3237,2011,3235,689,2961,3185,447,439,499,497,3537,3531,593,377,1197,1195,3125,689,3135,347,341,325,1019,3193,1323,3147,3141,3197,3191,1239,1541,99,91,2795,3521,3193,1323,1319,3191,3241,3235,435,2293,2961,1575,1579,1677,2049,2047,887,2961,2049,2047,3147,3141,1575,1677,1575,1579,887,1287,509,1541,509,1575,887,1287,951,1265,2279,1261,2285,2271,2279,2285,2271,163,951,1265,2279,1261,2285,2271,3257,423,415,1019,1181,1253,1251,3029,3239,3235,295,2589,1085,1197,801,827,2927,3185,3185,3257,1113,3427,2647,3041,1349,1597,3221,2581,2265,2985,537,1247,2205,139,2413,1183,1235,1155,3189,1049,1909,2505,1503,1541,799,3419,317,2973,3427,2983,1503,835,1661,1223,1253,3175,857,531],A=\"\\u963f\\u91cc\\u5c71 \\u516b\\u884c\\u4e66 \\u5b62\\u5b50\\u56ca \\u50ac\\u5410\\u5242 \\u7b54\\u832c\\u513f \\u5355\\u4e2a\\u513f \\u5355\\u76f8\\u601d \\u5355\\u5b50\\u53f6 \\u7535\\u7ebf\\u6746 \\u5206\\u5b50\\u75c5 \\u5206\\u5b50\\u952e \\u5206\\u5b50\\u8bba \\u8d76\\u6d6a\\u5934 \\u7eff\\u8425\\u5175 \\u6c11\\u4e50\\u53bf \\u660e\\u6643\\u6643 \\u9ecf\\u7740\\u529b \\u9ecf\\u7740\\u8bed \\u519c\\u573a\\u4e3b \\u72ee\\u5b50\\u4e61 \\u58eb\\u5927\\u592b \\u53cc\\u6298\\u5c04 \\u8096\\u50cf\\u6743 \\u91cd\\u5934\\u620f \\u963f\\u62c9\\u4f2f\\u4eba \\u963f\\u62c9\\u4f2f\\u8bed \\u6309\\u637a\\u4e0d\\u4f4f \\u767d\\u9996\\u76f8\\u5e84 \\u767e\\u822c\\u5949\\u627f \\u767e\\u4e0d\\u5f53\\u4e00 \\u534a\\u534a\\u62c9\\u62c9 \\u5e01\\u91cd\\u8a00\\u7518 \\u907f\\u96be\\u8d8b\\u6613 \\u4e0d\\u5f53\\u4e0d\\u6b63 \\u4e0d\\u5f53\\u4eba\\u5b50 \\u4e0d\\u767b\\u5927\\u96c5 \\u4e0d\\u89c1\\u5929\\u65e5 \\u4e0d\\u5207\\u5b9e\\u9645 \\u4e0d\\u723d\\u6beb\\u53d1 \\u624d\\u5927\\u96be\\u7528 \\u6750\\u5927\\u96be\\u7528 \\u8f66\\u8f7d\\u8239\\u88c5 \\u55d4\\u76ee\\u5207\\u9f7f \\u6210\\u8d25\\u5174\\u5e9f \\u51fa\\u5904\\u8fdb\\u9000 \\u51fa\\u5904\\u6b8a\\u9014 \\u51fa\\u5904\\u6b8a\\u6d82 \\u51fa\\u5904\\u8bed\\u9ed8 \\u51fa\\u5165\\u65e0\\u95f4 \\u6625\\u98ce\\u4e00\\u5ea6 \\u6253\\u606d\\u4f5c\\u63d6 \\u6253\\u62f1\\u4f5c\\u63d6 \\u5927\\u96c5\\u541b\\u5b50 \\u5927\\u96c5\\u4e4b\\u5802 \\u6234\\u9ad8\\u5e3d\\u5b50 \\u5012\\u56e0\\u4e3a\\u679c \\u5824\\u6e83\\u8681\\u7a74 \\u7825\\u783a\\u7422\\u78e8 \\u98a0\\u5012\\u8863\\u88f3 \\u4e1c\\u8eb2\\u897f\\u85cf \\u52a8\\u5982\\u53c2\\u5546 \\u6d1e\\u89c1\\u75c7\\u7ed3 \\u6d1e\\u4e2d\\u80af\\u7dae \\u8bfb\\u4e66\\u79cd\\u5b50 \\u7b03\\u5fd7\\u597d\\u5b66 \\u989d\\u624b\\u76f8\\u5e86 \\u7f5a\\u4e0d\\u5f53\\u7f6a \\u6cb8\\u6cb8\\u6c64\\u6c64 \\u5206\\u5b50\\u6742\\u4ea4 \\u8702\\u623f\\u8681\\u7a74 \\u8702\\u7aa0\\u8681\\u7a74 \\u8179\\u6709\\u9cde\\u7532 \\u5e72\\u52b2\\u51b2\\u5929 \\u9ad8\\u5934\\u5927\\u9a6c \\u9ad8\\u5934\\u8bb2\\u7ae0 \\u818f\\u6cfd\\u8102\\u9999 \\u9f13\\u5507\\u548b\\u820c \\u5173\\u60c5\\u8109\\u8109 \\u89c4\\u77e9\\u94a9\\u7ef3 \\u89c4\\u77e9\\u7ef3\\u58a8 \\u89c4\\u77e9\\u51c6\\u7ef3 \\u56fd\\u65e0\\u5b81\\u65e5 \\u6beb\\u53d1\\u4e1d\\u7c9f \\u8c6a\\u6a2a\\u8dcb\\u6248 \\u597d\\u6076\\u4e0d\\u540c \\u597d\\u5947\\u5c1a\\u5f02 \\u6068\\u6d77\\u96be\\u586b \\u540e\\u751f\\u5c0f\\u5b50 \\u56eb\\u56f5\\u534a\\u7247 \\u56eb\\u56f5\\u541e\\u67a3 \\u82b1\\u7532\\u4e4b\\u5e74 \\u6094\\u4e0d\\u5f53\\u521d \\u7978\\u798f\\u76f8\\u751f \\u7978\\u798f\\u76f8\\u4f9d \\u9e21\\u80a4\\u9e64\\u53d1 \\u5bb6\\u957f\\u793c\\u77ed \\u5bb6\\u957f\\u91cc\\u77ed \\u89c1\\u96c0\\u5f20\\u7f57 \\u89c1\\u6240\\u4e0d\\u89c1 \\u77eb\\u60c5\\u5e72\\u8a89 \\u77eb\\u60c5\\u9970\\u8c8c \\u77eb\\u60c5\\u9970\\u8bc8 \\u77eb\\u60c5\\u9547\\u7269 \\u811a\\u8e0f\\u5b9e\\u5730 \\u89e3\\u4eba\\u96be\\u5f97 \\u91d1\\u76f8\\u7389\\u5f0f \\u91d1\\u76f8\\u7389\\u6620 \\u91d1\\u76f8\\u7389\\u632f \\u8fdb\\u9000\\u51fa\\u5904 \\u8fdb\\u9000\\u6d88\\u957f \\u4e3e\\u624b\\u76f8\\u5e86 \\u5f00\\u82b1\\u7ed3\\u5b9e \\u53e3\\u89d2\\u6625\\u98ce \\u53e3\\u89d2\\u98ce\\u60c5 \\u53e3\\u89d2\\u751f\\u98ce \\u82e6\\u4e2d\\u4f5c\\u4e50 \\u62c9\\u95f2\\u6563\\u95f7 \\u51b7\\u6c34\\u6d47\\u5934 \\u8821\\u6d4b\\u7ba1\\u7aa5 \\u655b\\u58f0\\u5c4f\\u606f \\u4e34\\u96be\\u4e0d\\u907f \\u4e34\\u96be\\u65e0\\u6151 \\u7eff\\u5973\\u7ea2\\u7537 \\u9a6c\\u5165\\u534e\\u5c71 \\u8109\\u8109\\u76f8\\u901a \\u6ee1\\u4e0d\\u5728\\u4e4e \\u6bdb\\u53d1\\u4e0d\\u723d \\u6bdb\\u53d1\\u5012\\u7ad6 \\u6bdb\\u53d1\\u8038\\u7136 \\u6bdb\\u53d1\\u609a\\u7136 \\u95e8\\u53ef\\u5f20\\u7f57 \\u8499\\u8499\\u7ec6\\u96e8 \\u547d\\u4e2d\\u6ce8\\u5b9a \\u8c0b\\u81e3\\u731b\\u5c06 \\u6728\\u5934\\u6728\\u8111 \\u76ee\\u4e0d\\u89c1\\u776b \\u76ee\\u7a7a\\u4f59\\u5b50 \\u5e74\\u767b\\u82b1\\u7532 \\u5b7d\\u969c\\u79cd\\u5b50 \\u9e25\\u6c34\\u76f8\\u4f9d \\u5e9e\\u7709\\u9e64\\u53d1 \\u75b2\\u4e8e\\u5954\\u547d \\u7fe9\\u7fe9\\u5e74\\u5c11 \\u5e73\\u94fa\\u76f4\\u53d9 \\u5c4f\\u6c14\\u541e\\u58f0 \\u840d\\u6c34\\u76f8\\u9022 \\u5a46\\u5a46\\u5988\\u5988 \\u7834\\u955c\\u91cd\\u5408 \\u59bb\\u513f\\u8001\\u5c11 \\u7275\\u5f3a\\u9644\\u5408 \\u7275\\u5f3a\\u9644\\u4f1a \\u5f3a\\u5e72\\u5f31\\u679d \\u62a2\\u8d2d\\u4e00\\u7a7a \\u5207\\u78cb\\u7422\\u78e8 \\u5207\\u8eab\\u4f53\\u4f1a \\u5207\\u4e2d\\u8981\\u5bb3 \\u60c5\\u975e\\u5f97\\u5df2 \\u4eba\\u4e2d\\u72ee\\u5b50 \\u5fcd\\u4fca\\u4e0d\\u4f4f \\u65e5\\u4e2d\\u5c06\\u6603 \\u4e73\\u81ed\\u672a\\u9664 \\u585e\\u5317\\u6c5f\\u5357 \\u5c71\\u9634\\u4e58\\u5174 \\u8d4f\\u4e0d\\u5f53\\u529f \\u4e0a\\u5f53\\u5b66\\u4e56 \\u5c11\\u5e74\\u8001\\u8bda \\u6df1\\u77e5\\u707c\\u89c1 \\u6df1\\u4e2d\\u80af\\u7dae \\u795e\\u5175\\u5929\\u5c06 \\u65f6\\u6765\\u8fd0\\u8f6c \\u89c6\\u800c\\u4e0d\\u89c1 \\u662f\\u975e\\u5f97\\u5931 \\u9002\\u5f53\\u5176\\u51b2 \\u9002\\u5f53\\u5176\\u65f6 \\u9996\\u8eab\\u5206\\u79bb \\u675f\\u5e26\\u7ed3\\u53d1 \\u675f\\u53d1\\u5c01\\u5e1b \\u6c34\\u679c\\u7f50\\u5934 \\u987a\\u5929\\u5e94\\u65f6 \\u9042\\u5fc3\\u5e94\\u624b \\u5929\\u5e74\\u4e0d\\u9042 \\u5929\\u53f0\\u8def\\u8ff7 \\u5929\\u738b\\u8001\\u5b50 \\u6761\\u8d2f\\u90e8\\u5206 \\u94c1\\u677f\\u4e00\\u5757 \\u94dc\\u81ed\\u718f\\u5929 \\u5934\\u9ad8\\u5934\\u4f4e \\u5154\\u8475\\u71d5\\u9ea6 \\u5154\\u4e1d\\u71d5\\u9ea6 \\u8131\\u58f3\\u91d1\\u8749 \\u5b9b\\u8f6c\\u60a0\\u626c \\u4e07\\u592b\\u4e0d\\u5f53 \\u4ea1\\u56fd\\u5927\\u592b \\u671b\\u98ce\\u54cd\\u5e94 \\u5c3e\\u5927\\u96be\\u6389 \\u6587\\u4e0d\\u5bf9\\u9898 \\u6587\\u6b66\\u5dee\\u4e8b \\u95fb\\u98ce\\u54cd\\u5e94 \\u65e0\\u95f4\\u51ac\\u590f \\u65e0\\u95f4\\u53ef\\u4e58 \\u65e0\\u95f4\\u53ef\\u4f3a \\u65e0\\u4f24\\u5927\\u96c5 \\u4e94\\u7f96\\u5927\\u592b \\u4e94\\u884c\\u516b\\u4f5c \\u4e94\\u884c\\u5e76\\u4e0b \\u4e94\\u8272\\u76f8\\u5ba3 \\u6b66\\u65ad\\u4e13\\u6a2a \\u559c\\u6012\\u54c0\\u4e50 \\u778e\\u5b50\\u6478\\u8c61 \\u76f8\\u751f\\u76f8\\u6210 \\u76f8\\u751f\\u76f8\\u514b \\u5411\\u4e0a\\u4e00\\u8def \\u50cf\\u5fc3\\u79f0\\u610f \\u5c0f\\u5b50\\u540e\\u751f \\u5fc3\\u53e3\\u76f8\\u5e94 \\u5fc3\\u624b\\u76f8\\u5fd8 \\u80f8\\u6709\\u9cde\\u7532 \\u80f8\\u4e2d\\u7532\\u5175 \\u80f8\\u4e2d\\u9cde\\u7532 \\u5bfb\\u6b22\\u4f5c\\u4e50 \\u598d\\u86a9\\u597d\\u6076 \\u71d5\\u5b50\\u8854\\u98df \\u4e00\\u822c\\u89c1\\u8bc6 \\u4e00\\u822c\\u65e0\\u4e8c \\u4e00\\u9f3b\\u5b50\\u7070 \\u4e00\\u7b14\\u62b9\\u715e \\u4e00\\u70b9\\u534a\\u70b9 \\u4e00\\u70b9\\u7075\\u7280 \\u4e00\\u70b9\\u4e00\\u6ef4 \\u4e00\\u5b9a\\u4e0d\\u79fb \\u4e00\\u5b9a\\u4e0d\\u6613 \\u4e00\\u5b9a\\u4e4b\\u89c4 \\u4e00\\u4e2a\\u534a\\u4e2a \\u4e00\\u8def\\u98ce\\u5c18 \\u4e00\\u8def\\u98ce\\u6e05 \\u4e00\\u8def\\u798f\\u661f \\u4e00\\u8def\\u8d27\\u8272 \\u4e00\\u8def\\u5e73\\u5b89 \\u4e00\\u8def\\u987a\\u98ce \\u4e00\\u76ee\\u4e94\\u884c \\u4e00\\u5e74\\u4e00\\u5ea6 \\u4e00\\u5207\\u4e07\\u7269 \\u4e00\\u5f0f\\u4e00\\u6837 \\u4e00\\u5929\\u661f\\u6597 \\u4e00\\u5929\\u4e00\\u5730 \\u4e00\\u65e0\\u6240\\u5f97 \\u4e00\\u5fc3\\u4e00\\u8def \\u4e00\\u5750\\u4e00\\u8d77 \\u8863\\u51a0\\u695a\\u695a \\u8863\\u51a0\\u79bd\\u517d \\u8863\\u51a0\\u571f\\u67ad \\u8863\\u51a0\\u67ad\\u734d \\u4ee5\\u8821\\u6d4b\\u6d77 \\u8681\\u7a74\\u574f\\u5824 \\u8681\\u7a74\\u6e83\\u5824 \\u8681\\u7a74\\u81ea\\u5c01 \\u610f\\u60f3\\u4e0d\\u5230 \\u610f\\u5174\\u7d22\\u7136 \\u56e0\\u516c\\u5047\\u79c1 \\u996e\\u9a6c\\u957f\\u6c5f \\u82f1\\u96c4\\u672c\\u8272 \\u96cd\\u5bb9\\u5927\\u96c5 \\u6c38\\u65e0\\u5b81\\u65e5 \\u4f18\\u5b5f\\u8863\\u51a0 \\u6709\\u56fd\\u96be\\u6295 \\u53c8\\u5f31\\u4e00\\u4e2a \\u9c7c\\u6c34\\u76f8\\u6b22 \\u5a31\\u4e50\\u573a\\u6240 \\u8fd0\\u8f6c\\u65f6\\u6765 \\u707e\\u96be\\u6df1\\u91cd \\u5728\\u52ab\\u96be\\u9003 \\u6512\\u7709\\u82e6\\u8138 \\u62db\\u67b6\\u4e0d\\u4f4f \\u6574\\u9f50\\u5212\\u4e00 \\u6267\\u7ecf\\u95ee\\u96be \\u5fd7\\u5f97\\u6c14\\u76c8 \\u6731\\u989c\\u9e64\\u53d1 \\u8ffd\\u6b22\\u4f5c\\u4e50 \\u8db3\\u8e0f\\u5b9e\\u5730 \\u7f6a\\u6709\\u5e94\\u5f97 \\u7f6a\\u8d23\\u96be\\u9003 \\u963f\\u62c9\\u4f2f\\u534a\\u5c9b \\u963f\\u62c9\\u4f2f\\u6570\\u5b57 \\u7535\\u89c6\\u7cfb\\u5217\\u7247 \\u9ad8\\u4e49\\u8584\\u4e91\\u5929 \\u89c1\\u7269\\u4e0d\\u89c1\\u4eba \\u652b\\u91d1\\u4e0d\\u89c1\\u4eba \\u6740\\u4eba\\u4e0d\\u89c1\\u8840 \\u4e8b\\u540e\\u8bf8\\u845b\\u4eae \\u773c\\u4e0d\\u89c1\\u4e3a\\u51c0 \\u6709\\u5929\\u6ca1\\u65e5\\u5934 \\u5634\\u5c16\\u820c\\u5934\\u5feb \\u963f\\u5c14\\u5351\\u65af\\u5c71\\u8109 \\u4e0d\\u767b\\u5927\\u96c5\\u4e4b\\u5802 \\u9e21\\u86cb\\u91cc\\u627e\\u9aa8\\u5934 \\u9a74\\u5507\\u4e0d\\u5bf9\\u9a6c\\u5634 \\u9a74\\u5934\\u4e0d\\u5bf9\\u9a6c\\u5634 \\u4f38\\u624b\\u4e0d\\u89c1\\u4e94\\u6307 \\u4e07\\u592b\\u4e0d\\u5f53\\u4e4b\\u52c7 \\u4e4c\\u5934\\u767d\\u9a6c\\u751f\\u89d2 \\u4e00\\u6b65\\u4e00\\u4e2a\\u811a\\u5370 \\u4e0d\\u89c1\\u68fa\\u6750\\u4e0d\\u4e0b\\u6cea \\u4e0d\\u80fd\\u767b\\u5927\\u96c5\\u4e4b\\u5802 \\u4e0d\\u662f\\u51a4\\u5bb6\\u4e0d\\u805a\\u5934 \\u795e\\u9f99\\u89c1\\u9996\\u4e0d\\u89c1\\u5c3e \\u5929\\u4e0b\\u4e4c\\u9e26\\u4e00\\u822c\\u9ed1 \\u5fc3\\u6709\\u7075\\u7280\\u4e00\\u70b9\\u901a \\u4e00\\u4e2a\\u5df4\\u638c\\u62cd\\u4e0d\\u54cd \\u4f17\\u4eba\\u62fe\\u67f4\\u706b\\u7130\\u9ad8 \\u6b7b\\u8bf8\\u845b\\u80fd\\u8d70\\u751f\\u4ef2\\u8fbe \\u6b7b\\u8bf8\\u845b\\u5413\\u8d70\\u751f\\u4ef2\\u8fbe \\u505a\\u4e00\\u65e5\\u548c\\u5c1a\\u649e\\u4e00\\u5929\\u949f \\u505a\\u4e00\\u5929\\u548c\\u5c1a\\u649e\\u4e00\\u5929\\u949f \\u963f\\u6597 \\u963f\\u98de \\u963f\\u516c \\u963f\\u62c9 \\u963f\\u7247 \\u54c0\\u8f9e \\u54c0\\u6b4c \\u54c0\\u54ed \\u54c0\\u6ce3 \\u54c0\\u5207 \\u54c0\\u4f24 \\u54c0\\u75db \\u54c0\\u5b50 \\u764c\\u53d8 \\u77ee\\u4eba \\u77ee\\u5c0f \\u77ee\\u661f \\u77ee\\u5b50 \\u7231\\u79f0 \\u7231\\u56fd \\u7231\\u6cb3 \\u7231\\u62a4 \\u7231\\u6155 \\u7231\\u60c5 \\u7231\\u4eba \\u7231\\u5fc3 \\u7231\\u5b50 \\u9698\\u53e3 \\u788d\\u53e3 \\u788d\\u4e8b \\u788d\\u624b \\u5b89\\u5b89 \\u5b89\\u5b9a \\u5b89\\u987f \\u5b89\\u653e \\u5b89\\u56fd \\u5b89\\u597d \\u5b89\\u5bb6 \\u5b89\\u68c0 \\u5b89\\u5c45 \\u5b89\\u62c9 \\u5b89\\u4e50 \\u5b89\\u7720 \\u5b89\\u6c11 \\u5b89\\u6392 \\u5b89\\u5e73 \\u5b89\\u5168 \\u5b89\\u4e0a \\u5b89\\u8eab \\u5b89\\u795e \\u5b89\\u751f \\u5b89\\u7761 \\u5b89\\u987a \\u5b89\\u6cf0 \\u5b89\\u5371 \\u5b89\\u7a33 \\u5b89\\u606f \\u5b89\\u8be6 \\u5b89\\u5fc3 \\u5b89\\u8425 \\u5b89\\u6795 \\u5b89\\u88c5 \\u6849\\u6811 \\u8c19\\u719f \\u978d\\u9a6c \\u978d\\u5b50 \\u5cb8\\u6807 \\u6309\\u4f8b \\u6309\\u8109 \\u6309\\u6469 \\u6309\\u671f \\u6309\\u65f6 \\u6309\\u8bed \\u6309\\u7167 \\u6848\\u5377 \\u6848\\u4f8b \\u6848\\u5b50 \\u6697\\u85cf \\u6697\\u6de1 \\u6697\\u5730 \\u6697\\u5408 \\u6697\\u6cb3 \\u6697\\u82b1 \\u6697\\u4e8f \\u6697\\u91cc \\u6697\\u5668 \\u6697\\u8272 \\u6697\\u6740 \\u6697\\u4f24 \\u6697\\u5ba4 \\u6697\\u7b97 \\u6697\\u9501 \\u6697\\u559c \\u6697\\u5f71 \\u6697\\u8bed \\u6697\\u4e2d \\u6697\\u8f6c \\u6697\\u81ea \\u9eef\\u6de1 \\u6602\\u85cf \\u6602\\u9996 \\u6602\\u626c \\u76ce\\u53f8 \\u51f9\\u9677 \\u9068\\u6e38 \\u9ccc\\u5934 \\u93d6\\u5175 \\u50b2\\u9aa8 \\u50b2\\u6c14 \\u5965\\u535a \\u5965\\u79d8 \\u5965\\u63f4 \\u6fb3\\u95e8 \\u516b\\u5b9d \\u516b\\u6210 \\u516b\\u65b9 \\u516b\\u98ce \\u516b\\u80a1 \\u516b\\u8352 \\u516b\\u89d2 \\u516b\\u4ed9 \\u516b\\u90aa \\u516b\\u97f3 \\u516b\\u5b57 \\u5df4\\u8c46 \\u5df4\\u91d1 \\u5df4\\u671b \\u6252\\u5f00 \\u7b06\\u6597 \\u62d4\\u9664 \\u62d4\\u5730 \\u62d4\\u9ad8 \\u62d4\\u6cb3 \\u62d4\\u5c16 \\u62d4\\u811a \\u62d4\\u7fa4 \\u62d4\\u64e2 \\u8dcb\\u6248 \\u8dcb\\u6587 \\u628a\\u98ce \\u628a\\u5173 \\u628a\\u8109 \\u628a\\u95e8 \\u628a\\u52bf \\u628a\\u624b \\u628a\\u5b88 \\u628a\\u5934 \\u628a\\u73a9 \\u628a\\u7a33 \\u628a\\u63e1 \\u9776\\u5fc3 \\u9776\\u5b50 \\u575d\\u5730 \\u575d\\u57fa \\u575d\\u5b50 \\u9738\\u9053 \\u5427\\u5973 \\u767d\\u767d \\u767d\\u73ed \\u767d\\u5403 \\u767d\\u5e26 \\u767d\\u9053 \\u767d\\u5730 \\u767d\\u8d39 \\u767d\\u5bab \\u767d\\u9aa8 \\u767d\\u679c \\u767d\\u6cb3 \\u767d\\u9e64 \\u767d\\u5589 \\u767d\\u864e \\u767d\\u82b1 \\u767d\\u91d1 \\u767d\\u5377 \\u767d\\u53e3 \\u767d\\u9e6d \\u767d\\u9a6c \\u767d\\u6bdb \\u767d\\u8305 \\u767d\\u7c73 \\u767d\\u9762 \\u767d\\u70ed \\u767d\\u4eba \\u767d\\u65e5 \\u767d\\u8089 \\u767d\\u6da6 \\u767d\\u8272 \\u767d\\u5c71 \\u767d\\u98df \\u767d\\u4e8b \\u767d\\u624b \\u767d\\u9996 \\u767d\\u6c34 \\u767d\\u6c64 \\u767d\\u7cd6 \\u767d\\u85e4 \\u767d\\u5929 \\u767d\\u94dc \\u767d\\u5934 \\u767d\\u5154 \\u767d\\u6587 \\u767d\\u591c \\u767d\\u8863 \\u767d\\u8681 \\u767d\\u94f6 \\u767d\\u9c7c \\u767d\\u4e91 \\u767d\\u7eb8 \\u767d\\u79cd \\u767d\\u663c \\u767d\\u5b57 \\u767e\\u822c \\u767e\\u500d \\u767e\\u8349 \\u767e\\u51fa \\u767e\\u5ea6 \\u767e\\u5b98 \\u767e\\u5408 \\u767e\\u82b1 \\u767e\\u4f1a \\u767e\\u8d27 \\u767e\\u91cc \\u767e\\u7075 \\u767e\\u7c73 \\u767e\\u5e74 \\u767e\\u8272 \\u767e\\u5341 \\u767e\\u4e07 \\u767e\\u53f6 \\u67cf\\u4e61 \\u67cf\\u6cb9 \\u6446\\u52a8 \\u6446\\u653e \\u6446\\u5f00 \\u6446\\u5217 \\u6446\\u5f04 \\u6446\\u5e73 \\u6446\\u624b \\u6446\\u8131 \\u8d25\\u5317 \\u8d25\\u7b14 \\u8d25\\u8349 \\u8d25\\u574f \\u8d25\\u5bb6 \\u8d25\\u5c40 \\u8d25\\u519b \\u8d25\\u9000 \\u8d25\\u7d6e \\u8d25\\u8d70 \\u62dc\\u522b \\u62dc\\u8f9e \\u62dc\\u5012 \\u62dc\\u4f1a \\u62dc\\u89c1 \\u62dc\\u91d1 \\u62dc\\u5e74 \\u62dc\\u5e08 \\u62dc\\u6258 \\u62dc\\u671b \\u7a17\\u8349 \\u7a17\\u5b50 \\u6273\\u9053 \\u6273\\u52a8 \\u6273\\u673a \\u6273\\u624b \\u6273\\u5b50 \\u73ed\\u7985 \\u73ed\\u6b21 \\u73ed\\u673a \\u73ed\\u8f6e \\u73ed\\u671f \\u73ed\\u5e08 \\u6591\\u767d \\u6591\\u9a6c \\u642c\\u5175 \\u642c\\u52a8 \\u642c\\u5bb6 \\u642c\\u5f04 \\u642c\\u7528 \\u642c\\u8fd0 \\u677f\\u6750 \\u677f\\u9f13 \\u677f\\u80e1 \\u677f\\u9e2d \\u677f\\u6cb9 \\u677f\\u6b63 \\u7248\\u672c \\u7248\\u6b21 \\u7248\\u753b \\u7248\\u523b \\u7248\\u53e3 \\u7248\\u9762 \\u7248\\u7eb3 \\u7248\\u7a0e \\u7248\\u56fe \\u7248\\u5fc3 \\u529e\\u6cd5 \\u529e\\u516c \\u529e\\u4e8b \\u529e\\u5b66 \\u534a\\u767e \\u534a\\u5927 \\u534a\\u9053 \\u534a\\u5f84 \\u534a\\u7a7a \\u534a\\u65e5 \\u534a\\u5c71 \\u534a\\u8eab \\u534a\\u751f \\u534a\\u6570 \\u534a\\u6b7b \\u534a\\u5929 \\u534a\\u591c \\u534a\\u97f3 \\u534a\\u5f71 \\u534a\\u5706 \\u534a\\u6708 \\u534a\\u5b50 \\u4f34\\u5531 \\u4f34\\u751f \\u4f34\\u9001 \\u4f34\\u968f \\u4f34\\u540c \\u4f34\\u661f \\u4f34\\u97f3 \\u4f34\\u6e38 \\u4f34\\u594f \\u62cc\\u79cd \\u7eca\\u5012 \\u7eca\\u5b50 \\u626e\\u88c5 \\u90a6\\u4ea4 \\u5e2e\\u8865 \\u5e2e\\u5de5 \\u5e2e\\u4f1a \\u5e2e\\u6559 \\u5e2e\\u8154 \\u5e2e\\u624b \\u5e2e\\u540c \\u5e2e\\u4e3b \\u5e2e\\u52a9 \\u5e2e\\u5b50 \\u7ed1\\u5e26 \\u699c\\u9996 \\u699c\\u6587 \\u68d2\\u64cd \\u68d2\\u69cc \\u508d\\u5348 \\u508d\\u4f9d \\u78c5\\u79e4 \\u5305\\u88ab \\u5305\\u85cf \\u5305\\u4ea7 \\u5305\\u6284 \\u5305\\u5e72 \\u5305\\u5de5 \\u5305\\u516c \\u5305\\u7ba1 \\u5305\\u88f9 \\u5305\\u542b \\u5305\\u673a \\u5305\\u91d1 \\u5305\\u4e3e \\u5305\\u56ca \\u5305\\u8d54 \\u5305\\u5934 \\u5305\\u9500 \\u5305\\u8863 \\u5305\\u94f6 \\u5305\\u6708 \\u5305\\u624e \\u5305\\u88c5 \\u82de\\u7c73 \\u80de\\u6ce2 \\u80de\\u5144 \\u80de\\u8863 \\u8912\\u8bcd \\u8912\\u626c \\u8912\\u4e49 \\u96f9\\u5b50 \\u8584\\u8584 \\u8584\\u997c \\u8584\\u7247 \\u9971\\u9910 \\u9971\\u542b \\u9971\\u548c \\u9971\\u6696 \\u9971\\u98df \\u9971\\u53d7 \\u9971\\u5b66 \\u5b9d\\u5b9d \\u5b9d\\u5239 \\u5b9d\\u5200 \\u5b9d\\u5730 \\u5b9d\\u8d27 \\u5b9d\\u5c71 \\u5b9d\\u73e0 \\u4fdd\\u5b89 \\u4fdd\\u672c \\u4fdd\\u85cf \\u4fdd\\u5355 \\u4fdd\\u5b9a \\u4fdd\\u7ba1 \\u4fdd\\u62a4 \\u4fdd\\u7687 \\u4fdd\\u6d01 \\u4fdd\\u4e3e \\u4fdd\\u6696 \\u4fdd\\u5168 \\u4fdd\\u4eba \\u4fdd\\u5c71 \\u4fdd\\u5b88 \\u4fdd\\u7a0e \\u4fdd\\u9001 \\u4fdd\\u9c9c \\u4fdd\\u517b \\u4fdd\\u6709 \\u4fdd\\u771f \\u4fdd\\u91cd \\u9e28\\u6bcd \\u62a5\\u8868 \\u62a5\\u5448 \\u62a5\\u5355 \\u62a5\\u9053 \\u62a5\\u5fb7 \\u62a5\\u6069 \\u62a5\\u529f \\u62a5\\u5173 \\u62a5\\u56fd \\u62a5\\u8b66 \\u62a5\\u520a \\u62a5\\u540d \\u62a5\\u8bf7 \\u62a5\\u4eba \\u62a5\\u4e27 \\u62a5\\u793e \\u62a5\\u5ba1 \\u62a5\\u5931 \\u62a5\\u65f6 \\u62a5\\u6570 \\u62a5\\u7a0e \\u62a5\\u5934 \\u62a5\\u559c \\u62a5\\u9500 \\u62a5\\u6653 \\u62a5\\u6548 \\u62a5\\u4fe1 \\u62a5\\u7ad9 \\u62a5\\u7eb8 \\u62b1\\u5c48 \\u62b1\\u517b \\u9c8d\\u9c7c \\u66b4\\u8dcc \\u66b4\\u52a8 \\u66b4\\u53d1 \\u66b4\\u98ce \\u66b4\\u5bcc \\u66b4\\u5149 \\u66b4\\u529b \\u66b4\\u5229 \\u66b4\\u623e \\u66b4\\u655b \\u66b4\\u4e71 \\u66b4\\u6b7b \\u66b4\\u7a81 \\u66b4\\u5f92 \\u66b4\\u96e8 \\u66b4\\u6da8 \\u66b4\\u5352 \\u7206\\u53d1 \\u7206\\u88c2 \\u7206\\u68da \\u7206\\u7834 \\u676f\\u8d5b \\u5351\\u9119 \\u5351\\u52a3 \\u5351\\u5fae \\u5351\\u4e0b \\u60b2\\u54c0 \\u60b2\\u6b4c \\u60b2\\u82e6 \\u60b2\\u6ce3 \\u60b2\\u4f24 \\u60b2\\u58f0 \\u60b2\\u75db \\u7891\\u523b \\u7891\\u6587 \\u7891\\u5b66 \\u7891\\u9634 \\u7891\\u5fd7 \\u5317\\u90e8 \\u5317\\u6597 \\u5317\\u65b9 \\u5317\\u975e \\u5317\\u98ce \\u5317\\u56fd \\u5317\\u6d77 \\u5317\\u6c5f \\u5317\\u95e8 \\u5317\\u9762 \\u5317\\u4e0a \\u5317\\u5b8b \\u5317\\u6d0b \\u8d1d\\u96d5 \\u8d1d\\u5229 \\u8d1d\\u6bcd \\u8d1d\\u5b50 \\u5907\\u8015 \\u5907\\u8352 \\u5907\\u54c1 \\u5907\\u7528 \\u80cc\\u90e8 \\u80cc\\u5730 \\u80cc\\u98ce \\u80cc\\u5149 \\u80cc\\u79bb \\u80cc\\u9762 \\u80cc\\u56ca \\u80cc\\u6c14 \\u80cc\\u4eba \\u80cc\\u65f6 \\u80cc\\u719f \\u80cc\\u5411 \\u80cc\\u5fc3 \\u80cc\\u4fe1 \\u80cc\\u9634 \\u80cc\\u5f71 \\u80cc\\u8fd0 \\u94a1\\u9910 \\u500d\\u52a0 \\u500d\\u9891 \\u500d\\u6570 \\u500d\\u589e \\u6096\\u4e71 \\u6096\\u9006 \\u88ab\\u5355 \\u88ab\\u52a8 \\u88ab\\u8986 \\u88ab\\u9762 \\u88ab\\u5934 \\u8f88\\u51fa \\u7119\\u5e72 \\u7119\\u70e7 \\u5954\\u6ce2 \\u5954\\u653e \\u5954\\u8dd1 \\u5954\\u4e27 \\u5954\\u8d70 \\u951b\\u5b50 \\u672c\\u672c \\u672c\\u90e8 \\u672c\\u8349 \\u672c\\u5730 \\u672c\\u8be5 \\u672c\\u56fd \\u672c\\u884c \\u672c\\u7eaa \\u672c\\u5bb6 \\u672c\\u91d1 \\u672c\\u79d1 \\u672c\\u6765 \\u672c\\u5229 \\u672c\\u540d \\u672c\\u672b \\u672c\\u80fd \\u672c\\u5e74 \\u672c\\u4eba \\u672c\\u8eab \\u672c\\u4e8b \\u672c\\u571f \\u672c\\u6587 \\u672c\\u606f \\u672c\\u4e61 \\u672c\\u6027 \\u672c\\u4e49 \\u672c\\u610f \\u672c\\u5f71 \\u672c\\u6708 \\u82ef\\u73af \\u82ef\\u57fa \\u7b28\\u91cd \\u5d29\\u6e83 \\u5d29\\u88c2 \\u5d29\\u584c \\u7ef7\\u5e26 \\u7ef7\\u5b50 \\u8ff8\\u53d1 \\u8ff8\\u6e85 \\u8ff8\\u88c2 \\u8ff8\\u5c04 \\u8e66\\u9ad8 \\u903c\\u548c \\u903c\\u8feb \\u903c\\u4eba \\u903c\\u771f \\u9f3b\\u513f \\u9f3b\\u7532 \\u9f3b\\u5c16 \\u9f3b\\u8154 \\u9f3b\\u5934 \\u9f3b\\u606f \\u9f3b\\u70df \\u9f3b\\u97f3 \\u9f3b\\u7956 \\u5315\\u9996 \\u6bd4\\u6bd4 \\u6bd4\\u65b9 \\u6bd4\\u9644 \\u6bd4\\u4f8b \\u6bd4\\u91cf \\u6bd4\\u7f8e \\u6bd4\\u5e74 \\u6bd4\\u914d \\u6bd4\\u70ed \\u6bd4\\u5982 \\u6bd4\\u8d5b \\u6bd4\\u8bd5 \\u6bd4\\u7d22 \\u6bd4\\u7279 \\u6bd4\\u7167 \\u6bd4\\u91cd \\u6bd4\\u4f5c \\u5f7c\\u6b64 \\u7b14\\u6cd5 \\u7b14\\u950b \\u7b14\\u8015 \\u7b14\\u753b \\u7b14\\u4f1a \\u7b14\\u5c16 \\u7b14\\u529b \\u7b14\\u8bd5 \\u7b14\\u987a \\u7b14\\u7b97 \\u7b14\\u633a \\u7b14\\u4e0b \\u7b14\\u610f \\u7b14\\u76f4 \\u9119\\u4eba \\u5fc5\\u5b9a \\u5fc5\\u5c06 \\u5fc5\\u80dc \\u5fc5\\u8981 \\u6bd5\\u751f \\u95ed\\u5173 \\u95ed\\u5408 \\u95ed\\u4f1a \\u95ed\\u7ecf \\u95ed\\u5377 \\u95ed\\u53e3 \\u95ed\\u6c14 \\u95ed\\u5e02 \\u95ed\\u9501 \\u5e87\\u62a4 \\u965b\\u4e0b \\u6bd9\\u547d \\u6bd9\\u4f24 \\u655d\\u4eba \\u5a62\\u5973 \\u78a7\\u6ce2 \\u78a7\\u8349 \\u78a7\\u6d77 \\u78a7\\u7a7a \\u78a7\\u7eff \\u78a7\\u6843 \\u7b85\\u5b50 \\u7be6\\u5b50 \\u58c1\\u864e \\u58c1\\u753b \\u58c1\\u9970 \\u58c1\\u7eb8 \\u907f\\u98ce \\u907f\\u5f00 \\u907f\\u4e71 \\u907f\\u7a0e \\u907f\\u5acc \\u907f\\u90aa \\u907f\\u5f79 \\u907f\\u96e8 \\u81c2\\u529b \\u81c2\\u8180 \\u74a7\\u8fd8 \\u8fb9\\u6750 \\u8fb9\\u5e26 \\u8fb9\\u5730 \\u8fb9\\u9632 \\u8fb9\\u950b \\u8fb9\\u5173 \\u8fb9\\u89d2 \\u8fb9\\u5361 \\u8fb9\\u6b3e \\u8fb9\\u95e8 \\u8fb9\\u6c11 \\u8fb9\\u6cbf \\u8fb9\\u97f3 \\u8fb9\\u8fdc \\u8fb9\\u957f \\u7f16\\u6b21 \\u7f16\\u961f \\u7f16\\u53d1 \\u7f16\\u5217 \\u7f16\\u76ee \\u7f16\\u5e74 \\u7f16\\u6392 \\u7f16\\u914d \\u7f16\\u5ba1 \\u7f16\\u5916 \\u97ad\\u6253 \\u8d2c\\u8bcd \\u8d2c\\u4f4e \\u8d2c\\u5b98 \\u8d2c\\u6bc1 \\u8d2c\\u4e49 \\u6241\\u8c46 \\u6241\\u6843 \\u6241\\u5706 \\u533e\\u6587 \\u53d8\\u4ea7 \\u53d8\\u6210 \\u53d8\\u52a8 \\u53d8\\u6cd5 \\u53d8\\u9769 \\u53d8\\u4f8b \\u53d8\\u5356 \\u53d8\\u8272 \\u53d8\\u58f0 \\u53d8\\u6570 \\u53d8\\u901f \\u53d8\\u5929 \\u53d8\\u901a \\u53d8\\u4e3a \\u53d8\\u73b0 \\u53d8\\u5fc3 \\u53d8\\u661f \\u53d8\\u6027 \\u53d8\\u79cd \\u53d8\\u594f \\u4fbf\\u6b65 \\u4fbf\\u9910 \\u4fbf\\u5f53 \\u4fbf\\u9053 \\u4fbf\\u5229 \\u4fbf\\u79d8 \\u4fbf\\u6c11 \\u4fbf\\u8840 \\u4fbf\\u8863 \\u4fbf\\u88c5 \\u904d\\u5730 \\u904d\\u5386 \\u904d\\u8eab \\u904d\\u91ce \\u8fa8\\u522b \\u8fa8\\u660e \\u8fa8\\u8bc6 \\u8fa9\\u767d \\u8fa9\\u624d \\u8fa9\\u62a4 \\u8fa9\\u89e3 \\u8fa9\\u8bba \\u6807\\u672c \\u6807\\u5175 \\u6807\\u79f0 \\u6807\\u5b9a \\u6807\\u5ea6 \\u6807\\u9ad8 \\u6807\\u91d1 \\u6807\\u660e \\u6807\\u56fe \\u6807\\u8bed \\u6807\\u5fd7 \\u8198\\u80a5 \\u9556\\u5c40 \\u9556\\u5e08 \\u8868\\u767d \\u8868\\u683c \\u8868\\u529f \\u8868\\u91cc \\u8868\\u9762 \\u8868\\u660e \\u8868\\u4eb2 \\u8868\\u60c5 \\u8868\\u5934 \\u8868\\u571f \\u8868\\u73b0 \\u8868\\u5144 \\u8868\\u626c \\u8868\\u8bed \\u8868\\u5f70 \\u8868\\u9488 \\u8868\\u5f81 \\u8868\\u5b57 \\u88f1\\u753b \\u618b\\u6c14 \\u9cd6\\u7532 \\u522b\\u79f0 \\u522b\\u7ba1 \\u522b\\u56fd \\u522b\\u5bb6 \\u522b\\u79bb \\u522b\\u8bba \\u522b\\u540d \\u522b\\u4eba \\u522b\\u63d0 \\u522b\\u9488 \\u522b\\u5b57 \\u8e69\\u811a \\u5bbe\\u8bcd \\u6ee8\\u6d77 \\u69df\\u5b50 \\u6fd2\\u6d77 \\u6fd2\\u4e34 \\u6fd2\\u6b7b \\u6fd2\\u5371 \\u6448\\u9664 \\u9acc\\u9aa8 \\u9b13\\u89d2 \\u9b13\\u6bdb \\u51b0\\u5ddd \\u51b0\\u5200 \\u51b0\\u96d5 \\u51b0\\u6597 \\u51b0\\u5c01 \\u51b0\\u6d77 \\u51b0\\u6cb3 \\u51b0\\u82b1 \\u51b0\\u51b7 \\u51b0\\u51dd \\u51b0\\u7247 \\u51b0\\u671f \\u51b0\\u5c71 \\u51b0\\u971c \\u51b0\\u7cd6 \\u51b0\\u5fc3 \\u51b0\\u9547 \\u5175\\u53d8 \\u5175\\u90e8 \\u5175\\u6cd5 \\u5175\\u5de5 \\u5175\\u5bb6 \\u5175\\u529b \\u5175\\u9a6c \\u5175\\u5668 \\u5175\\u56e2 \\u5175\\u5f79 \\u5175\\u8425 \\u5175\\u7ad9 \\u5175\\u79cd \\u5175\\u5352 \\u4e19\\u7eb6 \\u79c9\\u7b14 \\u79c9\\u516c \\u79c9\\u6027 \\u79c9\\u6b63 \\u997c\\u80a5 \\u997c\\u5e72 \\u7980\\u660e \\u7980\\u6027 \\u7980\\u594f \\u5e76\\u53d1 \\u5e76\\u8fdb \\u5e76\\u4e3e \\u5e76\\u7acb \\u5e76\\u5217 \\u5e76\\u6392 \\u5e76\\u4e14 \\u5e76\\u541e \\u5e76\\u7528 \\u5e76\\u91cd \\u75c5\\u5012 \\u75c5\\u52bf \\u75c5\\u5ba4 \\u75c5\\u75db \\u75c5\\u9000 \\u75c5\\u5371 \\u75c5\\u56e0 \\u75c5\\u5f81 \\u75c5\\u91cd \\u6452\\u9664 \\u62e8\\u52a8 \\u62e8\\u53d1 \\u62e8\\u6b3e \\u62e8\\u62c9 \\u62e8\\u5f04 \\u6ce2\\u52a8 \\u6ce2\\u6bb5 \\u6ce2\\u5149 \\u6ce2\\u6d6a \\u6ce2\\u901f \\u6ce2\\u957f \\u5265\\u76ae \\u64ad\\u51fa \\u64ad\\u53d1 \\u64ad\\u653e \\u64ad\\u5f04 \\u64ad\\u6563 \\u64ad\\u9001 \\u64ad\\u626c \\u64ad\\u97f3 \\u64ad\\u79cd \\u4f2f\\u7235 \\u4f2f\\u4e50 \\u4f2f\\u6bcd \\u9a73\\u5012 \\u9a73\\u56de \\u9a73\\u8bba \\u9a73\\u8fd0 \\u9a73\\u6742 \\u5e1b\\u753b \\u6cca\\u5730 \\u52c3\\u53d1 \\u535a\\u7231 \\u535a\\u767d \\u535a\\u5927 \\u535a\\u53e4 \\u535a\\u8bc6 \\u535a\\u5b66 \\u535a\\u96c5 \\u6e24\\u6d77 \\u640f\\u52a8 \\u640f\\u51fb \\u640f\\u6740 \\u8ddb\\u811a \\u8ddb\\u5b50 \\u64d8\\u753b \\u535c\\u8f9e \\u8865\\u767d \\u8865\\u5dee \\u8865\\u5145 \\u8865\\u53d1 \\u8865\\u8fc7 \\u8865\\u89d2 \\u8865\\u54c1 \\u8865\\u6c14 \\u8865\\u8272 \\u8865\\u7a0e \\u8865\\u517b \\u8865\\u9057 \\u8865\\u8bed \\u8865\\u6b63 \\u8865\\u52a9 \\u6355\\u635e \\u6355\\u62ff \\u6355\\u6740 \\u6355\\u98df \\u6355\\u6349 \\u54fa\\u4e73 \\u54fa\\u517b \\u4e0d\\u5b89 \\u4e0d\\u6bd4 \\u4e0d\\u53d8 \\u4e0d\\u4fbf \\u4e0d\\u624d \\u4e0d\\u6210 \\u4e0d\\u9f7f \\u4e0d\\u8f9e \\u4e0d\\u9519 \\u4e0d\\u5927 \\u4e0d\\u4e39 \\u4e0d\\u5355 \\u4e0d\\u5f97 \\u4e0d\\u8fed \\u4e0d\\u5b9a \\u4e0d\\u72ec \\u4e0d\\u65ad \\u4e0d\\u6cd5 \\u4e0d\\u72af \\u4e0d\\u8be5 \\u4e0d\\u7518 \\u4e0d\\u516c \\u4e0d\\u591f \\u4e0d\\u987e \\u4e0d\\u7ba1 \\u4e0d\\u5149 \\u4e0d\\u8fc7 \\u4e0d\\u597d \\u4e0d\\u5408 \\u4e0d\\u548c \\u4e0d\\u8bb3 \\u4e0d\\u8ba1 \\u4e0d\\u68c0 \\u4e0d\\u89e3 \\u4e0d\\u7981 \\u4e0d\\u62d8 \\u4e0d\\u53ef \\u4e0d\\u514b \\u4e0d\\u4e86 \\u4e0d\\u529b \\u4e0d\\u5229 \\u4e0d\\u8bba \\u4e0d\\u6bdb \\u4e0d\\u660e \\u4e0d\\u80fd \\u4e0d\\u914d \\u4e0d\\u5e73 \\u4e0d\\u5c48 \\u4e0d\\u65e5 \\u4e0d\\u5982 \\u4e0d\\u5584 \\u4e0d\\u80dc \\u4e0d\\u65f6 \\u4e0d\\u540c \\u4e0d\\u56fe \\u4e0d\\u5916 \\u4e0d\\u65e0 \\u4e0d\\u606f \\u4e0d\\u4e0b \\u4e0d\\u8be6 \\u4e0d\\u538c \\u4e0d\\u626c \\u4e0d\\u4e00 \\u4e0d\\u4f9d \\u4e0d\\u610f \\u4e0d\\u7528 \\u4e0d\\u5728 \\u4e0d\\u632f \\u4e0d\\u652f \\u4e0d\\u6b62 \\u5e03\\u9053 \\u5e03\\u9632 \\u5e03\\u5c40 \\u5e03\\u96f7 \\u5e03\\u4ec0 \\u5e03\\u65bd \\u5e03\\u8863 \\u6b65\\u5175 \\u6b65\\u5c65 \\u6b65\\u97f5 \\u6b65\\u957f \\u90e8\\u961f \\u90e8\\u95e8 \\u90e8\\u9996 \\u90e8\\u5c5e \\u90e8\\u4e0b \\u7c3f\\u5b50 \\u64e6\\u80cc \\u64e6\\u97f3 \\u731c\\u8c1c \\u731c\\u5acc \\u624d\\u5177 \\u624d\\u529b \\u624d\\u8c8c \\u624d\\u80fd \\u624d\\u5973 \\u624d\\u6c14 \\u624d\\u60c5 \\u624d\\u4eba \\u624d\\u8bc6 \\u624d\\u5b66 \\u624d\\u667a \\u624d\\u5b50 \\u8d22\\u5b9d \\u8d22\\u4ea7 \\u8d22\\u4e1c \\u8d22\\u5bcc \\u8d22\\u8d27 \\u8d22\\u7ecf \\u8d22\\u793c \\u8d22\\u529b \\u8d22\\u6c14 \\u8d22\\u795e \\u8d22\\u52bf \\u8d22\\u7a0e \\u8d22\\u56e2 \\u8d22\\u8fd0 \\u8d22\\u4e3b \\u88c1\\u5e76 \\u88c1\\u64a4 \\u88c1\\u5b9a \\u88c1\\u65ad \\u88c1\\u526a \\u88c1\\u519b \\u91c7\\u98ce \\u91c7\\u5149 \\u91c7\\u7164 \\u91c7\\u7eb3 \\u91c7\\u6696 \\u91c7\\u98df \\u91c7\\u6536 \\u91c7\\u8840 \\u91c7\\u7528 \\u91c7\\u6cb9 \\u91c7\\u62e9 \\u91c7\\u6458 \\u91c7\\u79cd \\u5f69\\u7b14 \\u5f69\\u6392 \\u5f69\\u8272 \\u5f69\\u4e91 \\u8e29\\u6c34 \\u83dc\\u5355 \\u83dc\\u5200 \\u83dc\\u8c46 \\u83dc\\u91d1 \\u83dc\\u8272 \\u83dc\\u7f8a \\u83dc\\u5b50 \\u53c2\\u534a \\u53c2\\u7985 \\u53c2\\u5408 \\u53c2\\u52a0 \\u53c2\\u89c1 \\u53c2\\u519b \\u53c2\\u770b \\u53c2\\u8c0b \\u53c2\\u8d5b \\u53c2\\u4e8b \\u53c2\\u6570 \\u53c2\\u5929 \\u53c2\\u900f \\u53c2\\u8bae \\u53c2\\u6742 \\u53c2\\u7167 \\u9910\\u5177 \\u9910\\u5ba4 \\u6b8b\\u8d25 \\u6b8b\\u66b4 \\u6b8b\\u672c \\u6b8b\\u5175 \\u6b8b\\u90e8 \\u6b8b\\u51ac \\u6b8b\\u8d27 \\u6b8b\\u5c40 \\u6b8b\\u5377 \\u6b8b\\u5e74 \\u6b8b\\u7247 \\u6b8b\\u7834 \\u6b8b\\u6740 \\u6b8b\\u751f \\u6b8b\\u4f59 \\u6b8b\\u6708 \\u6b8b\\u7167 \\u8695\\u8c46 \\u8695\\u519c \\u8695\\u6851 \\u8695\\u6c99 \\u8695\\u98df \\u8695\\u79cd \\u4ed3\\u7687 \\u4ed3\\u9889 \\u82cd\\u767d \\u82cd\\u82cd \\u82cd\\u9ec4 \\u82cd\\u8001 \\u82cd\\u9f99 \\u82cd\\u9e6d \\u82cd\\u5c71 \\u82cd\\u751f \\u82cd\\u5929 \\u82cd\\u5934 \\u82cd\\u8747 \\u6ca7\\u6d77 \\u6ca7\\u6c5f \\u6ca7\\u6851 \\u8231\\u53e3 \\u85cf\\u950b \\u85cf\\u8eab \\u64cd\\u5200 \\u64cd\\u795e \\u64cd\\u5b88 \\u64cd\\u5fc3 \\u64cd\\u4f5c \\u7cd9\\u7c73 \\u5608\\u6742 \\u6f15\\u6cb3 \\u6f15\\u8fd0 \\u69fd\\u53e3 \\u69fd\\u5934 \\u69fd\\u5b50 \\u825a\\u5b50 \\u8349\\u672c \\u8349\\u8349 \\u8349\\u5730 \\u8349\\u679c \\u8349\\u8352 \\u8349\\u82a5 \\u8349\\u7387 \\u8349\\u7eff \\u8349\\u6728 \\u8349\\u68da \\u8349\\u5723 \\u8349\\u56fe \\u8349\\u9c7c \\u8349\\u7eb8 \\u8349\\u5b57 \\u518c\\u5c01 \\u518c\\u7acb \\u5395\\u8eab \\u4fa7\\u67cf \\u4fa7\\u51fb \\u4fa7\\u95e8 \\u4fa7\\u9762 \\u4fa7\\u76ee \\u4fa7\\u8eab \\u4fa7\\u5ba4 \\u4fa7\\u5411 \\u4fa7\\u5f71 \\u4fa7\\u91cd \\u6d4b\\u5b9a \\u6d4b\\u91cf \\u6d4b\\u8bc4 \\u6d4b\\u8bd5 \\u6d4b\\u7b97 \\u6d4b\\u9a8c \\u6d4b\\u5b57 \\u607b\\u9690 \\u7b56\\u52a8 \\u7b56\\u53cd \\u7b56\\u8bba \\u7b56\\u9a6c \\u5c42\\u6b21 \\u5c42\\u53e0 \\u5c42\\u4e91 \\u66fe\\u90fd \\u66fe\\u5bb6 \\u66fe\\u7956 \\u53c9\\u70e7 \\u53c9\\u624b \\u53c9\\u5b50 \\u63d2\\u73ed \\u63d2\\u961f \\u63d2\\u82b1 \\u63d2\\u753b \\u63d2\\u811a \\u63d2\\u53e3 \\u63d2\\u5c4f \\u63d2\\u8eab \\u63d2\\u624b \\u63d2\\u5934 \\u63d2\\u56fe \\u63d2\\u9500 \\u63d2\\u8a00 \\u832c\\u53e3 \\u832c\\u5b50 \\u8336\\u676f \\u8336\\u9053 \\u8336\\u82b1 \\u8336\\u4f1a \\u8336\\u51e0 \\u8336\\u5177 \\u8336\\u519c \\u8336\\u8272 \\u8336\\u793e \\u8336\\u98df \\u8336\\u6811 \\u8336\\u6c34 \\u8336\\u6c64 \\u8336\\u6258 \\u8336\\u53f6 \\u8336\\u6cb9 \\u67e5\\u6284 \\u67e5\\u5bf9 \\u67e5\\u5c01 \\u67e5\\u52d8 \\u67e5\\u6263 \\u67e5\\u660e \\u67e5\\u6e05 \\u67e5\\u5b9e \\u67e5\\u6536 \\u67e5\\u9a8c \\u67e5\\u591c \\u78b4\\u513f \\u5bdf\\u770b \\u5c94\\u9053 \\u5c94\\u5f00 \\u5c94\\u53e3 \\u5c94\\u6c14 \\u5c94\\u5b50 \\u5239\\u90a3 \\u5dee\\u52b2 \\u5dee\\u5931 \\u62c6\\u9664 \\u62c6\\u7a7f \\u62c6\\u6bc1 \\u62c6\\u501f \\u62c6\\u5f00 \\u62c6\\u5356 \\u62c6\\u6563 \\u62c6\\u606f \\u62c6\\u5b57 \\u67f4\\u8349 \\u67f4\\u5200 \\u67f4\\u80e1 \\u67f4\\u7c73 \\u67f4\\u6cb9 \\u8c7a\\u72d7 \\u8c7a\\u72fc \\u89c7\\u6807 \\u63ba\\u6c34 \\u63ba\\u6742 \\u998b\\u6d8e \\u7985\\u673a \\u7985\\u95e8 \\u7985\\u5e08 \\u7985\\u5b66 \\u7985\\u9662 \\u7f20\\u7ef5 \\u7f20\\u78e8 \\u7f20\\u7ed5 \\u7f20\\u8eab \\u7f20\\u624b \\u8749\\u8863 \\u87fe\\u5bab \\u87fe\\u5149 \\u4ea7\\u9053 \\u4ea7\\u5730 \\u4ea7\\u513f \\u4ea7\\u79d1 \\u4ea7\\u54c1 \\u4ea7\\u671f \\u4ea7\\u524d \\u4ea7\\u751f \\u4ea7\\u9500 \\u4ea7\\u9662 \\u94f2\\u5b50 \\u98a4\\u52a8 \\u98a4\\u6296 \\u98a4\\u97f3 \\u4f25\\u9b3c \\u660c\\u90fd \\u660c\\u4e50 \\u660c\\u76db \\u660c\\u56fe \\u9cb3\\u9c7c \\u80a0\\u65ad \\u80a0\\u8863 \\u5c1d\\u8bd5 \\u5c1d\\u9c9c \\u5c1d\\u65b0 \\u5e38\\u5fb7 \\u5e38\\u89c4 \\u5e38\\u4f8b \\u507f\\u8fd8 \\u507f\\u6e05 \\u5382\\u89c4 \\u5382\\u5bb6 \\u5382\\u5546 \\u5382\\u5b50 \\u573a\\u9662 \\u655e\\u5f00 \\u655e\\u53e3 \\u7545\\u6000 \\u7545\\u901a \\u7545\\u9500 \\u7545\\u996e \\u7545\\u6e38 \\u7545\\u6708 \\u5021\\u8a00 \\u5021\\u8bae \\u5531\\u672c \\u5531\\u8bcd \\u5531\\u6bb5 \\u5531\\u5de5 \\u5531\\u5934 \\u5531\\u9488 \\u6284\\u672c \\u6284\\u5bb6 \\u6284\\u8eab \\u6284\\u9001 \\u8d85\\u62d4 \\u8d85\\u4ea7 \\u8d85\\u51fa \\u8d85\\u5ea6 \\u8d85\\u8fc7 \\u8d85\\u524d \\u8d85\\u7fa4 \\u8d85\\u4eba \\u8d85\\u751f \\u8d85\\u58f0 \\u8d85\\u8131 \\u8d85\\u652f \\u8d85\\u91cd \\u8d85\\u5353 \\u671d\\u66ae \\u671d\\u6c14 \\u671d\\u9633 \\u5632\\u5f04 \\u6f6e\\u7ea2 \\u6f6e\\u89e3 \\u6f6e\\u6c14 \\u6f6e\\u6da6 \\u6f6e\\u6c34 \\u6f6e\\u5934 \\u5435\\u95f9 \\u7092\\u8d27 \\u7092\\u5356 \\u7092\\u7c73 \\u7092\\u9762 \\u7092\\u9752 \\u8f66\\u6b21 \\u8f66\\u5200 \\u8f66\\u9053 \\u8f66\\u961f \\u8f66\\u8d39 \\u8f66\\u5de5 \\u8f66\\u7978 \\u8f66\\u95f4 \\u8f66\\u88c2 \\u8f66\\u8f6e \\u8f66\\u95e8 \\u8f66\\u524d \\u8f66\\u8eab \\u8f66\\u624b \\u8f66\\u901f \\u8f66\\u5934 \\u8f66\\u524a \\u8f66\\u7ad9 \\u8f66\\u7167 \\u8f66\\u8f74 \\u8f66\\u4e3b \\u5f7b\\u9aa8 \\u5f7b\\u591c \\u577c\\u88c2 \\u63a3\\u8098 \\u64a4\\u5175 \\u64a4\\u9664 \\u64a4\\u9632 \\u64a4\\u56de \\u64a4\\u519b \\u64a4\\u79bb \\u64a4\\u9000 \\u64a4\\u6d88 \\u64a4\\u9500 \\u64a4\\u8d70 \\u62bb\\u9762 \\u81e3\\u6c11 \\u81e3\\u4e0b \\u81e3\\u5b50 \\u5c18\\u5c01 \\u5c18\\u82a5 \\u5c18\\u4e8b \\u5c18\\u571f \\u5c18\\u70df \\u8fb0\\u65f6 \\u6c89\\u6c89 \\u6c89\\u6d6e \\u6c89\\u79ef \\u6c89\\u6d78 \\u6c89\\u96f7 \\u6c89\\u6ca6 \\u6c89\\u7761 \\u6c89\\u75db \\u6c89\\u7a33 \\u6c89\\u9677 \\u6c89\\u9999 \\u6c89\\u541f \\u6c89\\u7740 \\u6c89\\u91cd \\u9648\\u5175 \\u9648\\u8bcd \\u9648\\u653e \\u9648\\u89c4 \\u9648\\u8d27 \\u9648\\u5217 \\u9648\\u7c73 \\u9648\\u5e74 \\u9648\\u60c5 \\u9648\\u8bf7 \\u9648\\u8a00 \\u6668\\u98ce \\u6668\\u660f \\u6668\\u661f \\u886c\\u91cc \\u886c\\u6258 \\u886c\\u8863 \\u886c\\u7eb8 \\u886c\\u5b57 \\u8d81\\u4fbf \\u8d81\\u673a \\u8d81\\u70ed \\u8d81\\u52bf \\u8d81\\u65e9 \\u8c36\\u8bed \\u79f0\\u4fbf \\u79f0\\u9053 \\u79f0\\u547c \\u79f0\\u91cf \\u79f0\\u4e3a \\u79f0\\u96c4 \\u79f0\\u626c \\u79f0\\u4f5c \\u86cf\\u5b50 \\u77a0\\u76ee \\u6210\\u8d25 \\u6210\\u672c \\u6210\\u624d \\u6210\\u6750 \\u6210\\u90fd \\u6210\\u6cd5 \\u6210\\u65b9 \\u6210\\u98ce \\u6210\\u529f \\u6210\\u89c4 \\u6210\\u679c \\u6210\\u6d3b \\u6210\\u5bb6 \\u6210\\u89c1 \\u6210\\u4ea4 \\u6210\\u7acb \\u6210\\u4f8b \\u6210\\u7720 \\u6210\\u540d \\u6210\\u547d \\u6210\\u5e74 \\u6210\\u54c1 \\u6210\\u5668 \\u6210\\u4eb2 \\u6210\\u5168 \\u6210\\u7fa4 \\u6210\\u4eba \\u6210\\u65e5 \\u6210\\u8272 \\u6210\\u4e8b \\u6210\\u719f \\u6210\\u6570 \\u6210\\u7b97 \\u6210\\u5929 \\u6210\\u4e3a \\u6210\\u6587 \\u6210\\u4ed9 \\u6210\\u6548 \\u6210\\u5fc3 \\u6210\\u6027 \\u6210\\u591c \\u6210\\u8863 \\u6210\\u8bae \\u6210\\u56e0 \\u6210\\u8bed \\u5448\\u4ea4 \\u5448\\u8bf7 \\u5448\\u4e0a \\u5448\\u9001 \\u5448\\u6587 \\u5448\\u73b0 \\u5448\\u732e \\u5448\\u6b63 \\u5448\\u5b50 \\u8bda\\u5b9e \\u8bda\\u5fc3 \\u8bda\\u4fe1 \\u8bda\\u610f \\u627f\\u5f53 \\u627f\\u5fb7 \\u627f\\u5149 \\u627f\\u5e73 \\u627f\\u6ce3 \\u627f\\u60c5 \\u627f\\u53d7 \\u627f\\u6258 \\u627f\\u671b \\u627f\\u8fd0 \\u627f\\u91cd \\u627f\\u8f6c \\u57ce\\u5821 \\u57ce\\u96d5 \\u57ce\\u9632 \\u57ce\\u5173 \\u57ce\\u91cc \\u57ce\\u95e8 \\u57ce\\u5e02 \\u57ce\\u5934 \\u57ce\\u4e61 \\u57ce\\u9547 \\u4e58\\u4fbf \\u4e58\\u4e58 \\u4e58\\u9664 \\u4e58\\u6cd5 \\u4e58\\u65b9 \\u4e58\\u673a \\u4e58\\u79ef \\u4e58\\u8b66 \\u4e58\\u80dc \\u4e58\\u52bf \\u4e58\\u6570 \\u4e58\\u865a \\u4e58\\u5750 \\u7a0b\\u5ea6 \\u6f84\\u78a7 \\u6f84\\u6c5f \\u6f84\\u6e05 \\u6a59\\u7ea2 \\u6a59\\u9ec4 \\u6a59\\u8272 \\u6a59\\u5b50 \\u901e\\u80fd \\u901e\\u5f3a \\u9a8b\\u6000 \\u9a8b\\u76ee \\u79e4\\u9524 \\u5403\\u5403 \\u5403\\u5149 \\u5403\\u7d27 \\u5403\\u52b2 \\u5403\\u60ca \\u5403\\u82e6 \\u5403\\u4e8f \\u5403\\u529b \\u5403\\u8bf7 \\u5403\\u98df \\u5403\\u6c34 \\u5403\\u7d20 \\u5403\\u900f \\u5403\\u9999 \\u5403\\u91cd \\u75f4\\u60c5 \\u75f4\\u5fc3 \\u5f1b\\u7f13 \\u9a70\\u7535 \\u9a70\\u540d \\u8fdf\\u8fdf \\u8fdf\\u7f13 \\u8fdf\\u66ae \\u8fdf\\u7591 \\u8fdf\\u65e9 \\u6301\\u6cd5 \\u6301\\u5bb6 \\u6301\\u8bba \\u6301\\u5e73 \\u6301\\u8eab \\u6301\\u6709 \\u6301\\u91cd \\u5c3a\\u5bf8 \\u5c3a\\u5ea6 \\u5c3a\\u9aa8 \\u9f7f\\u51b7 \\u9f7f\\u8f6e \\u4f88\\u9761 \\u803b\\u9aa8 \\u803b\\u8fb1 \\u65a5\\u9769 \\u65a5\\u529b \\u65a5\\u9000 \\u8d64\\u80cc \\u8d64\\u9053 \\u8d64\\u5730 \\u8d64\\u8c46 \\u8d64\\u7ea2 \\u8d64\\u811a \\u8d64\\u91d1 \\u8d64\\u88f8 \\u8d64\\u8d2b \\u8d64\\u70ed \\u8d64\\u65e5 \\u8d64\\u8272 \\u8d64\\u8eab \\u8d64\\u5b50 \\u70bd\\u70ed \\u70bd\\u76db \\u7fc5\\u679c \\u7fc5\\u8180 \\u51b2\\u51b2 \\u51b2\\u523a \\u51b2\\u6de1 \\u51b2\\u52a8 \\u51b2\\u950b \\u51b2\\u51fb \\u51b2\\u79ef \\u51b2\\u53e3 \\u51b2\\u6d6a \\u51b2\\u529b \\u51b2\\u7834 \\u51b2\\u6740 \\u51b2\\u584c \\u51b2\\u5929 \\u51b2\\u7a81 \\u51b2\\u559c \\u51b2\\u9500 \\u51b2\\u8981 \\u5145\\u5f53 \\u5145\\u7535 \\u5145\\u516c \\u5145\\u519b \\u5145\\u6c14 \\u5145\\u5b9e \\u5145\\u6570 \\u866b\\u8349 \\u866b\\u60c5 \\u5d07\\u9ad8 \\u5d07\\u660e \\u5d07\\u6587 \\u5ba0\\u7231 \\u5ba0\\u513f \\u5ba0\\u4fe1 \\u5ba0\\u7528 \\u62bd\\u6253 \\u62bd\\u52a8 \\u62bd\\u6597 \\u62bd\\u98ce \\u62bd\\u68c0 \\u62bd\\u7a7a \\u62bd\\u6ce3 \\u62bd\\u8eab \\u62bd\\u6c34 \\u62bd\\u7a0e \\u62bd\\u7f29 \\u62bd\\u5934 \\u62bd\\u70df \\u4ec7\\u5bb6 \\u4ec7\\u4eba \\u4ec7\\u6740 \\u7ef8\\u7f2a \\u916c\\u5bf9 \\u916c\\u91d1 \\u7a20\\u5ea6 \\u6101\\u80a0 \\u6101\\u6000 \\u6101\\u82e6 \\u6101\\u4e91 \\u7b79\\u501f \\u7b79\\u6b3e \\u7b79\\u8c0b \\u7b79\\u62cd \\u7b79\\u5546 \\u7b79\\u7b97 \\u4e11\\u6076 \\u4e11\\u65f6 \\u4e11\\u4e8b \\u7785\\u89c1 \\u81ed\\u7f8e \\u81ed\\u68cb \\u81ed\\u6c14 \\u51fa\\u5175 \\u51fa\\u64cd \\u51fa\\u4ea7 \\u51fa\\u5382 \\u51fa\\u8d85 \\u51fa\\u4e58 \\u51fa\\u4e11 \\u51fa\\u9519 \\u51fa\\u9053 \\u51fa\\u52a8 \\u51fa\\u53d1 \\u51fa\\u4f0f \\u51fa\\u683c \\u51fa\\u5de5 \\u51fa\\u606d \\u51fa\\u56fd \\u51fa\\u6d77 \\u51fa\\u6c57 \\u51fa\\u822a \\u51fa\\u6d3b \\u51fa\\u8d27 \\u51fa\\u51fb \\u51fa\\u5bb6 \\u51fa\\u5c16 \\u51fa\\u501f \\u51fa\\u5c40 \\u51fa\\u5177 \\u51fa\\u53e3 \\u51fa\\u6765 \\u51fa\\u529b \\u51fa\\u5217 \\u51fa\\u9a6c \\u51fa\\u5356 \\u51fa\\u95e8 \\u51fa\\u9762 \\u51fa\\u540d \\u51fa\\u7eb3 \\u51fa\\u54c1 \\u51fa\\u5947 \\u51fa\\u6c14 \\u51fa\\u52e4 \\u51fa\\u8d5b \\u51fa\\u4e27 \\u51fa\\u8272 \\u51fa\\u5c71 \\u51fa\\u8eab \\u51fa\\u795e \\u51fa\\u751f \\u51fa\\u58f0 \\u51fa\\u5e08 \\u51fa\\u4e8b \\u51fa\\u624b \\u51fa\\u9996 \\u51fa\\u6c34 \\u51fa\\u5ead \\u51fa\\u5934 \\u51fa\\u5f92 \\u51fa\\u571f \\u51fa\\u8131 \\u51fa\\u5916 \\u51fa\\u606f \\u51fa\\u73b0 \\u51fa\\u8840 \\u51fa\\u5de1 \\u51fa\\u8a00 \\u51fa\\u6d0b \\u51fa\\u6e38 \\u51fa\\u9662 \\u51fa\\u6708 \\u51fa\\u5f81 \\u51fa\\u4f17 \\u51fa\\u81ea \\u51fa\\u8d70 \\u521d\\u6b65 \\u521d\\u6625 \\u521d\\u6b21 \\u521d\\u51ac \\u521d\\u5ea6 \\u521d\\u72af \\u521d\\u4f0f \\u521d\\u4f1a \\u521d\\u89c1 \\u521d\\u4ea4 \\u521d\\u6c11 \\u521d\\u5e74 \\u521d\\u671f \\u521d\\u8d5b \\u521d\\u5ba1 \\u521d\\u751f \\u521d\\u8bd5 \\u521d\\u901f \\u521d\\u5c0f \\u521d\\u5fc3 \\u521d\\u5b66 \\u521d\\u53f6 \\u521d\\u591c \\u521d\\u4e00 \\u521d\\u6708 \\u521d\\u4e2d \\u520d\\u8bae \\u9664\\u8349 \\u9664\\u6389 \\u9664\\u6cd5 \\u9664\\u975e \\u9664\\u5f00 \\u9664\\u540d \\u9664\\u5374 \\u9664\\u6570 \\u9664\\u5916 \\u9664\\u591c \\u9664\\u5b50 \\u53a8\\u5177 \\u53a8\\u5e08 \\u53a8\\u5b50 \\u9504\\u8349 \\u9504\\u5730 \\u96cf\\u513f \\u50a8\\u85cf \\u50a8\\u6cb9 \\u50a8\\u8fd0 \\u695a\\u8f9e \\u5904\\u65b9 \\u5904\\u5973 \\u5904\\u8eab \\u5904\\u4e8b \\u5904\\u6b7b \\u5904\\u5728 \\u5904\\u65a9 \\u5904\\u5b50 \\u6035\\u5934 \\u755c\\u4ea7 \\u755c\\u517b \\u6410\\u52a8 \\u6410\\u7f29 \\u89e6\\u7535 \\u89e6\\u52a8 \\u89e6\\u53d1 \\u89e6\\u72af \\u89e6\\u89d2 \\u89e6\\u6478 \\u89e6\\u76ee \\u89e6\\u624b \\u89e6\\u75db \\u61b7\\u5934 \\u9edc\\u9000 \\u77d7\\u7acb \\u63e3\\u6469 \\u640b\\u5b50 \\u5ddd\\u519b \\u7a7f\\u523a \\u7a7f\\u7834 \\u7a7f\\u900f \\u7a7f\\u51ff \\u7a7f\\u9488 \\u4f20\\u672c \\u4f20\\u5531 \\u4f20\\u6284 \\u4f20\\u5355 \\u4f20\\u9053 \\u4f20\\u52a8 \\u4f20\\u547c \\u4f20\\u5bb6 \\u4f20\\u6559 \\u4f20\\u7ecf \\u4f20\\u540d \\u4f20\\u5947 \\u4f20\\u60c5 \\u4f20\\u70ed \\u4f20\\u4eba \\u4f20\\u795e \\u4f20\\u8f93 \\u4f20\\u9001 \\u4f20\\u8a00 \\u4f20\\u626c \\u4f20\\u771f \\u4f20\\u79cd \\u693d\\u5b50 \\u821b\\u9519 \\u5598\\u6c14 \\u5598\\u606f \\u4e32\\u8fde \\u4e32\\u95e8 \\u4e32\\u901a \\u4e32\\u6e38 \\u4e32\\u73e0 \\u75ae\\u53e3 \\u7a97\\u82b1 \\u7a97\\u53e3 \\u7a97\\u95e8 \\u7a97\\u5e37 \\u5e8a\\u5355 \\u5e8a\\u5934 \\u5e8a\\u6cbf \\u95ef\\u7978 \\u95ef\\u8fdb \\u95ef\\u52b2 \\u521b\\u6c47 \\u521b\\u89c1 \\u521b\\u520a \\u521b\\u7acb \\u521b\\u5229 \\u521b\\u6536 \\u521b\\u65b0 \\u521b\\u610f \\u521b\\u4f5c \\u6006\\u75db \\u5439\\u6253 \\u5439\\u52a8 \\u5439\\u98ce \\u5439\\u7ba1 \\u5439\\u62cd \\u5439\\u594f \\u708a\\u5177 \\u708a\\u4e8b \\u708a\\u70df \\u5782\\u7231 \\u5782\\u62f1 \\u5782\\u8001 \\u5782\\u66ae \\u5782\\u9752 \\u5782\\u624b \\u5782\\u9996 \\u5782\\u6b7b \\u5782\\u5934 \\u5782\\u5371 \\u5782\\u6d8e \\u5782\\u76f4 \\u9524\\u6253 \\u9524\\u9aa8 \\u6625\\u997c \\u6625\\u80a5 \\u6625\\u98ce \\u6625\\u8015 \\u6625\\u5149 \\u6625\\u5bd2 \\u6625\\u8352 \\u6625\\u56f0 \\u6625\\u96f7 \\u6625\\u60c5 \\u6625\\u65e5 \\u6625\\u8272 \\u6625\\u4e0a \\u6625\\u8bd5 \\u6625\\u6c34 \\u6625\\u5929 \\u6625\\u5fc3 \\u6625\\u610f \\u6625\\u6e38 \\u6625\\u96e8 \\u6625\\u8fd0 \\u6625\\u88c5 \\u7eaf\\u767d \\u7eaf\\u5ea6 \\u7eaf\\u539a \\u7eaf\\u6d01 \\u7eaf\\u91d1 \\u7eaf\\u5229 \\u7eaf\\u7f8e \\u7eaf\\u60c5 \\u7eaf\\u719f \\u7eaf\\u4e00 \\u7eaf\\u97f3 \\u7eaf\\u771f \\u7eaf\\u6b63 \\u7eaf\\u79cd \\u5507\\u9f7f \\u5507\\u818f \\u5507\\u88c2 \\u5507\\u97f3 \\u6df3\\u539a \\u6df3\\u7f8e \\u9e51\\u8863 \\u9187\\u548c \\u9187\\u539a \\u9187\\u7f8e \\u9187\\u9999 \\u9187\\u6b63 \\u6233\\u7a7f \\u6233\\u7834 \\u555c\\u6ce3 \\u8f8d\\u7b14 \\u8f8d\\u5b66 \\u8bcd\\u513f \\u8bcd\\u6cd5 \\u8bcd\\u950b \\u8bcd\\u6c47 \\u8bcd\\u53e5 \\u8bcd\\u4eba \\u8bcd\\u7d20 \\u8bcd\\u5934 \\u8bcd\\u6027 \\u8bcd\\u4e49 \\u8bcd\\u8bed \\u8bcd\\u97f5 \\u74f7\\u96d5 \\u74f7\\u5668 \\u74f7\\u571f \\u8f9e\\u522b \\u8f9e\\u5448 \\u8f9e\\u5de5 \\u8f9e\\u6d77 \\u8f9e\\u8272 \\u8f9e\\u5c81 \\u8f9e\\u9000 \\u6148\\u7231 \\u6148\\u60b2 \\u6148\\u59d1 \\u6148\\u822a \\u6148\\u548c \\u6148\\u6bcd \\u6148\\u5584 \\u78c1\\u5e26 \\u78c1\\u529b \\u78c1\\u94c1 \\u78c1\\u5934 \\u78c1\\u6027 \\u78c1\\u9488 \\u96cc\\u8702 \\u96cc\\u4f0f \\u96cc\\u82b1 \\u96cc\\u9ec4 \\u96cc\\u6027 \\u96cc\\u96c4 \\u6b64\\u5730 \\u6b64\\u95f4 \\u6b64\\u523b \\u6b64\\u751f \\u6b64\\u65f6 \\u6b64\\u5916 \\u6b21\\u8d27 \\u6b21\\u8d2b \\u6b21\\u54c1 \\u6b21\\u65e5 \\u6b21\\u6570 \\u6b21\\u8981 \\u6b21\\u97f5 \\u6b21\\u5b50 \\u523a\\u67cf \\u523a\\u9f3b \\u523a\\u5200 \\u523a\\u513f \\u523a\\u9aa8 \\u523a\\u6fc0 \\u523a\\u76ee \\u523a\\u914d \\u523a\\u7834 \\u523a\\u6740 \\u523a\\u4f24 \\u523a\\u75db \\u523a\\u9488 \\u523a\\u5b57 \\u8d50\\u6559 \\u8471\\u767d \\u8471\\u82b1 \\u8471\\u7eff \\u8471\\u5934 \\u806a\\u660e \\u4ece\\u4e0d \\u4ece\\u6b64 \\u4ece\\u72af \\u4ece\\u6559 \\u4ece\\u53e5 \\u4ece\\u519b \\u4ece\\u6765 \\u4ece\\u547d \\u4ece\\u524d \\u4ece\\u5e08 \\u4ece\\u5b9e \\u4ece\\u4e8b \\u4ece\\u5c5e \\u4ece\\u901f \\u4ece\\u5934 \\u4ece\\u5148 \\u4ece\\u5c0f \\u4ece\\u65b0 \\u4ece\\u5f81 \\u4ece\\u4e2d \\u4ece\\u4f17 \\u4e1b\\u520a \\u4e1b\\u5c71 \\u4e1b\\u751f \\u4e1b\\u6742 \\u51d1\\u624b \\u51d1\\u6570 \\u7c97\\u66b4 \\u7c97\\u653e \\u7c97\\u6d45 \\u7c97\\u4eba \\u4fc3\\u6210 \\u4fc3\\u8fdb \\u4fc3\\u8bf7 \\u4fc3\\u819d \\u4fc3\\u9500 \\u731d\\u5012 \\u918b\\u5fc3 \\u918b\\u610f \\u7c07\\u5c45 \\u7c07\\u751f \\u7c07\\u65b0 \\u7c07\\u62e5 \\u64ba\\u5f04 \\u7a9c\\u6539 \\u7be1\\u515a \\u7be1\\u6539 \\u7be1\\u56fd \\u50ac\\u4ea7 \\u50ac\\u53d1 \\u50ac\\u80a5 \\u50ac\\u7720 \\u50ac\\u547d \\u50ac\\u8feb \\u50ac\\u60c5 \\u50ac\\u751f \\u50ac\\u719f \\u6467\\u6bc1 \\u8106\\u9aa8 \\u8106\\u54cd \\u8106\\u6027 \\u7cb9\\u767d \\u7fe0\\u67cf \\u7fe0\\u7eff \\u7fe0\\u9e1f \\u7fe0\\u5fae \\u6751\\u59d1 \\u6751\\u53e3 \\u6751\\u91cc \\u6751\\u6c11 \\u6751\\u4e0a \\u6751\\u820d \\u6751\\u5934 \\u6751\\u91ce \\u6751\\u9547 \\u76b4\\u6cd5 \\u76b4\\u88c2 \\u5b58\\u5355 \\u5b58\\u653e \\u5b58\\u6d3b \\u5b58\\u8d27 \\u5b58\\u6b3e \\u5b58\\u8eab \\u5b58\\u98df \\u5b58\\u606f \\u5b58\\u5fc3 \\u5b58\\u7591 \\u5b58\\u5728 \\u5b58\\u7167 \\u5bf8\\u6b65 \\u5bf8\\u8349 \\u5bf8\\u65ad \\u5bf8\\u529f \\u5bf8\\u8fdb \\u5bf8\\u5934 \\u5bf8\\u571f \\u5bf8\\u5fc3 \\u5bf8\\u9634 \\u5bf8\\u957f \\u6413\\u5f04 \\u78cb\\u5546 \\u64ae\\u5408 \\u64ae\\u5f04 \\u64ae\\u8981 \\u5d6f\\u5ce8 \\u77ec\\u5b50 \\u632b\\u8d25 \\u632b\\u4f24 \\u63aa\\u8f9e \\u9509\\u5200 \\u9509\\u5b50 \\u9519\\u7231 \\u9519\\u52a8 \\u9519\\u8fc7 \\u9519\\u91d1 \\u9519\\u5f00 \\u9519\\u4e71 \\u9519\\u5931 \\u9519\\u4e8b \\u9519\\u6742 \\u9519\\u5b57 \\u8037\\u62c9 \\u642d\\u4fbf \\u642d\\u8865 \\u642d\\u4e58 \\u642d\\u6263 \\u642d\\u914d \\u642d\\u8154 \\u642d\\u624b \\u8fbe\\u6807 \\u8fbe\\u6210 \\u8fbe\\u65e6 \\u8fbe\\u9053 \\u8fbe\\u5fb7 \\u8fbe\\u5b98 \\u8fbe\\u610f \\u8fbe\\u56e0 \\u7b54\\u8bcd \\u7b54\\u5bf9 \\u7b54\\u5377 \\u7b54\\u793c \\u7b54\\u6570 \\u7b54\\u8a00 \\u7b54\\u7591 \\u6253\\u8d25 \\u6253\\u6bd4 \\u6253\\u8349 \\u6253\\u573a \\u6253\\u6625 \\u6253\\u4ece \\u6253\\u5012 \\u6253\\u6389 \\u6253\\u52a8 \\u6253\\u65ad \\u6253\\u53d1 \\u6253\\u6cd5 \\u6253\\u5de5 \\u6253\\u9f13 \\u6253\\u9b3c \\u6253\\u6eda \\u6253\\u6a2a \\u6253\\u6ed1 \\u6253\\u51fb \\u6253\\u5c16 \\u6253\\u6405 \\u6253\\u7d27 \\u6253\\u5f00 \\u6253\\u635e \\u6253\\u96f7 \\u6253\\u4e71 \\u6253\\u95e8 \\u6253\\u78e8 \\u6253\\u95f9 \\u6253\\u5e73 \\u6253\\u7834 \\u6253\\u6c14 \\u6253\\u6563 \\u6253\\u6740 \\u6253\\u4f24 \\u6253\\u624b \\u6253\\u6c34 \\u6253\\u7b97 \\u6253\\u94c1 \\u6253\\u542c \\u6253\\u901a \\u6253\\u5934 \\u6253\\u9000 \\u6253\\u4e0b \\u6253\\u54cd \\u6253\\u6d88 \\u6253\\u659c \\u6253\\u6cb9 \\u6253\\u9c7c \\u6253\\u63f4 \\u6253\\u6742 \\u6253\\u9488 \\u6253\\u8f6c \\u6253\\u5b57 \\u6253\\u5750 \\u5927\\u5b89 \\u5927\\u767d \\u5927\\u8d25 \\u5927\\u73ed \\u5927\\u534a \\u5927\\u676f \\u5927\\u5317 \\u5927\\u7b14 \\u5927\\u4fbf \\u5927\\u5175 \\u5927\\u997c \\u5927\\u4f2f \\u5927\\u9910 \\u5927\\u80a0 \\u5927\\u6210 \\u5927\\u4e58 \\u5927\\u9519 \\u5927\\u5927 \\u5927\\u5200 \\u5927\\u9053 \\u5927\\u5fb7 \\u5927\\u5730 \\u5927\\u6597 \\u5927\\u8c46 \\u5927\\u5ea6 \\u5927\\u961f \\u5927\\u591a \\u5927\\u6cd5 \\u5927\\u65b9 \\u5927\\u98ce \\u5927\\u6982 \\u5927\\u529f \\u5927\\u59d1 \\u5927\\u9f13 \\u5927\\u6545 \\u5927\\u5173 \\u5927\\u5b98 \\u5927\\u56fd \\u5927\\u8fc7 \\u5927\\u6d77 \\u5927\\u5bd2 \\u5927\\u597d \\u5927\\u6cb3 \\u5927\\u7ea2 \\u5927\\u4f1a \\u5927\\u8ba1 \\u5927\\u5bb6 \\u5927\\u6c5f \\u5927\\u89d2 \\u5927\\u811a \\u5927\\u89e3 \\u5927\\u5c40 \\u5927\\u4e3e \\u5927\\u519b \\u5927\\u53e3 \\u5927\\u6b3e \\u5927\\u6d6a \\u5927\\u529b \\u5927\\u8fde \\u5927\\u6bdb \\u5927\\u95e8 \\u5927\\u7c73 \\u5927\\u9762 \\u5927\\u540d \\u5927\\u660e \\u5927\\u62ff \\u5927\\u8111 \\u5927\\u5185 \\u5927\\u9006 \\u5927\\u5e74 \\u5927\\u7247 \\u5927\\u6c14 \\u5927\\u5668 \\u5927\\u9752 \\u5927\\u5e86 \\u5927\\u66f2 \\u5927\\u5168 \\u5927\\u7fa4 \\u5927\\u4eba \\u5927\\u8089 \\u5927\\u8d5b \\u5927\\u53a6 \\u5927\\u58f0 \\u5927\\u5723 \\u5927\\u5e08 \\u5927\\u52bf \\u5927\\u4e8b \\u5927\\u6811 \\u5927\\u6c34 \\u5927\\u987a \\u5927\\u8086 \\u5927\\u901a \\u5927\\u540c \\u5927\\u5934 \\u5927\\u4e3a \\u5927\\u5c09 \\u5927\\u6211 \\u5927\\u559c \\u5927\\u5c0f \\u5927\\u6821 \\u5927\\u5b66 \\u5927\\u70df \\u5927\\u6d0b \\u5927\\u8981 \\u5927\\u8863 \\u5927\\u59e8 \\u5927\\u4e49 \\u5927\\u610f \\u5927\\u6cb9 \\u5927\\u6709 \\u5927\\u4f59 \\u5927\\u96e8 \\u5927\\u79b9 \\u5927\\u5706 \\u5927\\u9662 \\u5927\\u6708 \\u5927\\u65e9 \\u5927\\u5fd7 \\u5927\\u4f17 \\u5927\\u4e13 \\u5927\\u5b57 \\u5927\\u4f5c \\u5446\\u6c14 \\u6b79\\u4eba \\u6b79\\u5f92 \\u6b79\\u5fc3 \\u6b79\\u610f \\u4ee3\\u7b14 \\u4ee3\\u8868 \\u4ee3\\u6b65 \\u4ee3\\u79f0 \\u4ee3\\u8bcd \\u4ee3\\u8015 \\u4ee3\\u7ba1 \\u4ee3\\u6570 \\u4ee3\\u66ff \\u4ee3\\u4e3a \\u4ee3\\u9500 \\u4ee3\\u8a00 \\u4ee3\\u7528 \\u5cb1\\u5c71 \\u5e26\\u73ed \\u5e26\\u5175 \\u5e26\\u64cd \\u5e26\\u7535 \\u5e26\\u52a8 \\u5e26\\u52b2 \\u5e26\\u8109 \\u5e26\\u5934 \\u5e26\\u4e0b \\u5e26\\u9c7c \\u8d37\\u65b9 \\u8d37\\u6b3e \\u5f85\\u673a \\u5f85\\u547d \\u5f85\\u4eba \\u5f85\\u7528 \\u6020\\u5de5 \\u6234\\u80dc \\u9edb\\u7eff \\u4e39\\u65b9 \\u4e39\\u51e4 \\u4e39\\u6842 \\u4e39\\u9752 \\u4e39\\u5fc3 \\u62c5\\u4fdd \\u62c5\\u5f53 \\u62c5\\u5fc3 \\u5355\\u5175 \\u5355\\u4ea7 \\u5355\\u4f20 \\u5355\\u8bcd \\u5355\\u6253 \\u5355\\u5355 \\u5355\\u5200 \\u5355\\u72ec \\u5355\\u53d1 \\u5355\\u65b9 \\u5355\\u5bd2 \\u5355\\u673a \\u5355\\u95f4 \\u5355\\u53e5 \\u5355\\u53e3 \\u5355\\u5229 \\u5355\\u5217 \\u5355\\u95e8 \\u5355\\u8eab \\u5355\\u6570 \\u5355\\u7cd6 \\u5355\\u5f26 \\u5355\\u5411 \\u5355\\u4e00 \\u5355\\u8863 \\u5355\\u7528 \\u5355\\u5143 \\u5355\\u5b57 \\u5355\\u4f5c \\u80c6\\u7ba1 \\u80c6\\u5bd2 \\u80c6\\u529b \\u80c6\\u56ca \\u80c6\\u6c14 \\u80c6\\u8bc6 \\u80c6\\u865a \\u63b8\\u5b50 \\u8bde\\u751f \\u6de1\\u6de1 \\u6de1\\u6c34 \\u6de1\\u96c5 \\u6de1\\u6708 \\u5f39\\u4e38 \\u5f39\\u5b50 \\u6c2e\\u80a5 \\u6c2e\\u6c14 \\u5f53\\u73ed \\u5f53\\u5175 \\u5f53\\u521d \\u5f53\\u9053 \\u5f53\\u5730 \\u5f53\\u5b98 \\u5f53\\u5f52 \\u5f53\\u5373 \\u5f53\\u5bb6 \\u5f53\\u5c40 \\u5f53\\u7a7a \\u5f53\\u9762 \\u5f53\\u5e74 \\u5f53\\u671f \\u5f53\\u524d \\u5f53\\u65e5 \\u5f53\\u65f6 \\u5f53\\u4e8b \\u5f53\\u5ead \\u5f53\\u5934 \\u5f53\\u5348 \\u5f53\\u4e0b \\u5f53\\u5148 \\u5f53\\u5fc3 \\u5f53\\u4e2d \\u5f53\\u4f17 \\u6321\\u5b50 \\u6863\\u6b21 \\u6863\\u5b50 \\u515a\\u90e8 \\u515a\\u8d39 \\u515a\\u98ce \\u515a\\u5fbd \\u515a\\u7eaa \\u515a\\u520a \\u515a\\u7fa4 \\u515a\\u5f92 \\u515a\\u56e2 \\u515a\\u6821 \\u515a\\u6027 \\u8361\\u6da4 \\u8361\\u5e73 \\u8361\\u5b50 \\u5200\\u80cc \\u5200\\u7b14 \\u5200\\u5175 \\u5200\\u8c46 \\u5200\\u6cd5 \\u5200\\u950b \\u5200\\u5177 \\u5200\\u53e3 \\u5200\\u7247 \\u5200\\u5c71 \\u5200\\u4f24 \\u53e8\\u5149 \\u53e8\\u6559 \\u5bfc\\u5f39 \\u5bfc\\u7535 \\u5bfc\\u7ba1 \\u5bfc\\u822a \\u5bfc\\u8f6e \\u5bfc\\u8bba \\u5bfc\\u70ed \\u5bfc\\u5e08 \\u5bfc\\u5411 \\u5bfc\\u8a00 \\u5bfc\\u626c \\u5bfc\\u56e0 \\u5bfc\\u6e38 \\u5bfc\\u8bed \\u5c9b\\u56fd \\u6363\\u9f13 \\u6363\\u9b3c \\u6363\\u6bc1 \\u6363\\u4e71 \\u5012\\u73ed \\u5012\\u95ed \\u5012\\u6241 \\u5012\\u4ed3 \\u5012\\u5782 \\u5012\\u98ce \\u5012\\u4f0f \\u5012\\u597d \\u5012\\u526a \\u5012\\u5377 \\u5012\\u5356 \\u5012\\u624b \\u5012\\u7b97 \\u5012\\u584c \\u5012\\u66ff \\u5012\\u5934 \\u5012\\u4e0b \\u5012\\u8fd0 \\u8e48\\u6d77 \\u5230\\u5bb6 \\u5230\\u6765 \\u5230\\u671f \\u5230\\u624b \\u5230\\u5ead \\u5230\\u5934 \\u9053\\u767d \\u9053\\u73ed \\u9053\\u522b \\u9053\\u5fb7 \\u9053\\u5730 \\u9053\\u9489 \\u9053\\u6cd5 \\u9053\\u59d1 \\u9053\\u5149 \\u9053\\u8d3a \\u9053\\u5bb6 \\u9053\\u6559 \\u9053\\u7ecf \\u9053\\u5177 \\u9053\\u53e3 \\u9053\\u95e8 \\u9053\\u6728 \\u9053\\u7834 \\u9053\\u60c5 \\u9053\\u4eba \\u9053\\u559c \\u9053\\u5b66 \\u9053\\u4e49 \\u9053\\u9662 \\u9053\\u5b50 \\u7a3b\\u8349 \\u7a3b\\u7c73 \\u7a3b\\u5b50 \\u5f97\\u9053 \\u5f97\\u6cd5 \\u5f97\\u52b2 \\u5f97\\u529b \\u5f97\\u80dc \\u5f97\\u624b \\u5f97\\u610f \\u5f97\\u77e5 \\u5f97\\u5fd7 \\u5f97\\u7f6a \\u5fb7\\u90fd \\u5fb7\\u671b \\u5fb7\\u8bed \\u706f\\u6807 \\u706f\\u8349 \\u706f\\u5149 \\u706f\\u82b1 \\u706f\\u4f1a \\u706f\\u5177 \\u706f\\u5e02 \\u706f\\u5934 \\u706f\\u5fc3 \\u706f\\u5f71 \\u706f\\u6cb9 \\u706f\\u8bed \\u767b\\u5c01 \\u767b\\u9ad8 \\u767b\\u57fa \\u767b\\u79d1 \\u767b\\u4e34 \\u767b\\u95e8 \\u767b\\u6500 \\u767b\\u5c71 \\u767b\\u65f6 \\u7b49\\u6bd4 \\u7b49\\u5dee \\u7b49\\u6b21 \\u7b49\\u4eba \\u7b49\\u8eab \\u7b49\\u540c \\u7b49\\u5916 \\u7b49\\u6548 \\u6225\\u5b50 \\u51f3\\u5b50 \\u4f4e\\u77ee \\u4f4e\\u4ea7 \\u4f4e\\u6c89 \\u4f4e\\u5782 \\u4f4e\\u5730 \\u4f4e\\u5f8a \\u4f4e\\u7f13 \\u4f4e\\u56de \\u4f4e\\u7a7a \\u4f4e\\u5229 \\u4f4e\\u52a3 \\u4f4e\\u80fd \\u4f4e\\u9891 \\u4f4e\\u70ed \\u4f4e\\u70e7 \\u4f4e\\u58f0 \\u4f4e\\u901f \\u4f4e\\u5934 \\u4f4e\\u5fae \\u4f4e\\u606f \\u4f4e\\u4e0b \\u4f4e\\u97f3 \\u4f4e\\u541f \\u4f4e\\u8bed \\u4f4e\\u4e91 \\u5824\\u9632 \\u6ef4\\u5b9a \\u6ef4\\u7ba1 \\u6ef4\\u6ca5 \\u6ef4\\u6c34 \\u654c\\u5bf9 \\u654c\\u65b9 \\u654c\\u56fd \\u654c\\u673a \\u654c\\u519b \\u654c\\u60c5 \\u654c\\u4eba \\u654c\\u624b \\u654c\\u7279 \\u654c\\u610f \\u6da4\\u9664 \\u6da4\\u7eb6 \\u5ae1\\u51fa \\u5ae1\\u4f20 \\u5ae1\\u6bcd \\u5ae1\\u4eb2 \\u5ae1\\u7cfb \\u5ae1\\u5b50 \\u8bcb\\u6bc1 \\u62b5\\u8865 \\u62b5\\u8fd8 \\u62b5\\u547d \\u62b5\\u4e8b \\u62b5\\u6b7b \\u62b5\\u6d88 \\u62b5\\u9500 \\u62b5\\u7f6a \\u5e95\\u672c \\u5e95\\u80a5 \\u5e95\\u5de5 \\u5e95\\u89d2 \\u5e95\\u7247 \\u5e95\\u6c14 \\u5e95\\u8272 \\u5e95\\u6570 \\u5e95\\u571f \\u5e95\\u4e0b \\u9ab6\\u9aa8 \\u9ab6\\u690e \\u5730\\u78c5 \\u5730\\u4fdd \\u5730\\u8868 \\u5730\\u6ce2 \\u5730\\u6b65 \\u5730\\u4ea7 \\u5730\\u79e4 \\u5730\\u5e26 \\u5730\\u9053 \\u5730\\u7535 \\u5730\\u52a8 \\u5730\\u6bb5 \\u5730\\u65b9 \\u5730\\u5bab \\u5730\\u74dc \\u5730\\u6838 \\u5730\\u9ec4 \\u5730\\u673a \\u5730\\u57fa \\u5730\\u811a \\u5730\\u7cbe \\u5730\\u96f7 \\u5730\\u5229 \\u5730\\u9f99 \\u5730\\u8109 \\u5730\\u8c8c \\u5730\\u9762 \\u5730\\u540d \\u5730\\u5e73 \\u5730\\u6c14 \\u5730\\u70ed \\u5730\\u4e0a \\u5730\\u52bf \\u5730\\u7a0e \\u5730\\u94c1 \\u5730\\u5934 \\u5730\\u56fe \\u5730\\u4e0b \\u5730\\u5fc3 \\u5730\\u5b66 \\u5730\\u8863 \\u5730\\u652f \\u5730\\u5fd7 \\u5730\\u8f74 \\u5730\\u4e3b \\u5f1f\\u5144 \\u5f1f\\u5b50 \\u5e1d\\u90fd \\u5e1d\\u56fd \\u5e1d\\u738b \\u9012\\u53d8 \\u9012\\u8865 \\u9012\\u5f52 \\u9012\\u52a0 \\u9012\\u964d \\u9012\\u4ea4 \\u9012\\u8fdb \\u9012\\u9001 \\u9012\\u589e \\u8c1b\\u542c \\u7f14\\u5408 \\u7f14\\u4ea4 \\u98a0\\u5012 \\u98a0\\u8986 \\u5178\\u6545 \\u5178\\u793c \\u5178\\u5356 \\u5178\\u96c5 \\u70b9\\u5175 \\u70b9\\u7a7f \\u70b9\\u6ef4 \\u70b9\\u53d1 \\u70b9\\u6b4c \\u70b9\\u540d \\u70b9\\u660e \\u70b9\\u8bc4 \\u70b9\\u7834 \\u70b9\\u5c04 \\u70b9\\u6536 \\u70b9\\u6570 \\u70b9\\u5934 \\u70b9\\u5fc3 \\u70b9\\u9a8c \\u70b9\\u5b50 \\u8e2e\\u811a \\u7535\\u7b14 \\u7535\\u8868 \\u7535\\u6ce2 \\u7535\\u5382 \\u7535\\u4f20 \\u7535\\u5927 \\u7535\\u52a8 \\u7535\\u5de5 \\u7535\\u5149 \\u7535\\u8d3a \\u7535\\u6c47 \\u7535\\u51fb \\u7535\\u673a \\u7535\\u6559 \\u7535\\u89e3 \\u7535\\u79bb \\u7535\\u529b \\u7535\\u95e8 \\u7535\\u6728 \\u7535\\u8111 \\u7535\\u80fd \\u7535\\u6c14 \\u7535\\u5668 \\u7535\\u70ed \\u7535\\u52bf \\u7535\\u6587 \\u7535\\u4fe1 \\u7535\\u5f71 \\u7535\\u7ad9 \\u7535\\u73e0 \\u7535\\u5b50 \\u7535\\u963b \\u4f43\\u519c \\u5e97\\u4e1c \\u5e97\\u5bb6 \\u5e97\\u9762 \\u5e97\\u4e3b \\u5e97\\u5b50 \\u73b7\\u8fb1 \\u57ab\\u9ad8 \\u57ab\\u811a \\u57ab\\u6b3e \\u57ab\\u7247 \\u57ab\\u5e73 \\u57ab\\u652f \\u57ab\\u5b50 \\u60e6\\u5ff5 \\u5960\\u5b9a \\u5960\\u90fd \\u5960\\u57fa \\u6bbf\\u519b \\u6bbf\\u8bd5 \\u6bbf\\u4e0b \\u975b\\u9752 \\u5201\\u6ed1 \\u51cb\\u8d25 \\u51cb\\u96f6 \\u7889\\u5821 \\u96d5\\u82b1 \\u96d5\\u523b \\u96d5\\u9542 \\u96d5\\u9970 \\u96d5\\u50cf \\u96d5\\u51ff \\u96d5\\u7422 \\u540a\\u6253 \\u540a\\u5e26 \\u540a\\u6597 \\u540a\\u73af \\u540a\\u4e27 \\u540a\\u6b7b \\u540a\\u7d22 \\u540a\\u9500 \\u540a\\u88c5 \\u9493\\u5177 \\u9493\\u9c7c \\u6389\\u961f \\u6389\\u5934 \\u6389\\u8f6c \\u94eb\\u5b50 \\u8dcc\\u5012 \\u8dcc\\u6c34 \\u8dcc\\u5750 \\u8fed\\u51fa \\u8fed\\u6b21 \\u8fed\\u8d77 \\u558b\\u558b \\u53e0\\u52a0 \\u53e0\\u97f5 \\u53e0\\u5b57 \\u789f\\u5b50 \\u4e01\\u5f53 \\u4e01\\u51ac \\u4e01\\u96f6 \\u4e01\\u9999 \\u4e01\\u5b57 \\u53ee\\u5f53 \\u53ee\\u54ac \\u9876\\u73ed \\u9876\\u90e8 \\u9876\\u591a \\u9876\\u98ce \\u9876\\u683c \\u9876\\u9aa8 \\u9876\\u5c16 \\u9876\\u89d2 \\u9876\\u793c \\u9876\\u68da \\u9876\\u4e8b \\u9876\\u6570 \\u9876\\u66ff \\u9876\\u5929 \\u9876\\u5934 \\u9876\\u7528 \\u9876\\u9488 \\u9876\\u73e0 \\u9876\\u5b50 \\u9876\\u7f6a \\u9f0e\\u9f0e \\u9f0e\\u9769 \\u9f0e\\u6e56 \\u9f0e\\u529b \\u9f0e\\u7acb \\u9f0e\\u76db \\u9f0e\\u65b0 \\u8ba2\\u5355 \\u8ba2\\u8d27 \\u8ba2\\u4ea4 \\u8ba2\\u91d1 \\u8ba2\\u7acb \\u8ba2\\u6b63 \\u5b9a\\u672c \\u5b9a\\u6807 \\u5b9a\\u90fd \\u5b9a\\u683c \\u5b9a\\u89c4 \\u5b9a\\u8d27 \\u5b9a\\u8ba1 \\u5b9a\\u89c1 \\u5b9a\\u91d1 \\u5b9a\\u5c45 \\u5b9a\\u5c40 \\u5b9a\\u793c \\u5b9a\\u4f8b \\u5b9a\\u8bba \\u5b9a\\u540d \\u5b9a\\u8bc4 \\u5b9a\\u671f \\u5b9a\\u4eb2 \\u5b9a\\u60c5 \\u5b9a\\u795e \\u5b9a\\u65f6 \\u5b9a\\u52bf \\u5b9a\\u6570 \\u5b9a\\u606f \\u5b9a\\u5f26 \\u5b9a\\u5411 \\u5b9a\\u9500 \\u5b9a\\u5fc3 \\u5b9a\\u6027 \\u5b9a\\u4e49 \\u5b9a\\u97f3 \\u5b9a\\u5f71 \\u5b9a\\u8bed \\u5b9a\\u8fdc \\u5b9a\\u5b50 \\u5b9a\\u7f6a \\u952d\\u5b50 \\u4e1c\\u5317 \\u4e1c\\u90e8 \\u4e1c\\u9053 \\u4e1c\\u65b9 \\u4e1c\\u975e \\u4e1c\\u98ce \\u4e1c\\u5bab \\u4e1c\\u6d77 \\u4e1c\\u6e56 \\u4e1c\\u5bb6 \\u4e1c\\u6c5f \\u4e1c\\u7ecf \\u4e1c\\u95e8 \\u4e1c\\u9762 \\u4e1c\\u660e \\u4e1c\\u5357 \\u4e1c\\u5e73 \\u4e1c\\u5c71 \\u4e1c\\u5934 \\u4e1c\\u897f \\u4e1c\\u4e61 \\u4e1c\\u6d0b \\u51ac\\u85cf \\u51ac\\u8015 \\u51ac\\u74dc \\u51ac\\u5bd2 \\u51ac\\u7720 \\u51ac\\u9752 \\u51ac\\u65e5 \\u51ac\\u5929 \\u51ac\\u5b66 \\u51ac\\u8863 \\u51ac\\u6708 \\u51ac\\u8fd0 \\u51ac\\u88c5 \\u8463\\u4e8b \\u61c2\\u884c \\u61c2\\u4e8b \\u52a8\\u7b14 \\u52a8\\u5175 \\u52a8\\u4ea7 \\u52a8\\u8bcd \\u52a8\\u5de5 \\u52a8\\u673a \\u52a8\\u53e3 \\u52a8\\u529b \\u52a8\\u4e71 \\u52a8\\u8f6e \\u52a8\\u8109 \\u52a8\\u80fd \\u52a8\\u6c14 \\u52a8\\u60c5 \\u52a8\\u4eba \\u52a8\\u8eab \\u52a8\\u624b \\u52a8\\u542c \\u52a8\\u571f \\u52a8\\u5411 \\u52a8\\u5fc3 \\u52a8\\u6447 \\u52a8\\u8bae \\u52a8\\u56e0 \\u52a8\\u7528 \\u52a8\\u4f5c \\u51bb\\u5e72 \\u51bb\\u8089 \\u51bb\\u4f24 \\u51bb\\u6b7b \\u51bb\\u571f \\u51bb\\u96e8 \\u6d1e\\u5bdf \\u6d1e\\u7a7f \\u6d1e\\u89c1 \\u6d1e\\u5f00 \\u6d1e\\u5929 \\u6d1e\\u6089 \\u6d1e\\u6653 \\u6d1e\\u5b50 \\u90fd\\u5b89 \\u90fd\\u7075 \\u90fd\\u5e02 \\u90fd\\u5300 \\u515c\\u6284 \\u515c\\u98ce \\u515c\\u9500 \\u515c\\u5b50 \\u6296\\u52a8 \\u9661\\u53d8 \\u9661\\u5ea6 \\u9661\\u7acb \\u9661\\u76f4 \\u6597\\u65b9 \\u6597\\u62f1 \\u6597\\u95e8 \\u6597\\u5ba4 \\u8c46\\u997c \\u8c46\\u82b1 \\u8c46\\u89d2 \\u8c46\\u79d1 \\u8c46\\u7eff \\u8c46\\u9762 \\u8c46\\u9752 \\u8c46\\u4e73 \\u8c46\\u6c99 \\u8c46\\u85af \\u8c46\\u6cb9 \\u9017\\u4e50 \\u9017\\u5f04 \\u9017\\u4eba \\u7763\\u5bdf \\u7763\\u5de5 \\u7763\\u519b \\u7763\\u8109 \\u7763\\u5b66 \\u6bd2\\u8349 \\u6bd2\\u523a \\u6bd2\\u6253 \\u6bd2\\u8ba1 \\u6bd2\\u8fa3 \\u6bd2\\u8c0b \\u6bd2\\u54c1 \\u6bd2\\u6c14 \\u6bd2\\u6740 \\u6bd2\\u86c7 \\u6bd2\\u624b \\u6bd2\\u6b7b \\u6bd2\\u7d20 \\u6bd2\\u6027 \\u72ec\\u767d \\u72ec\\u6b65 \\u72ec\\u5531 \\u72ec\\u72ec \\u72ec\\u65ad \\u72ec\\u6d3b \\u72ec\\u5bb6 \\u72ec\\u89d2 \\u72ec\\u5177 \\u72ec\\u529b \\u72ec\\u7acb \\u72ec\\u95e8 \\u72ec\\u5973 \\u72ec\\u5584 \\u72ec\\u8eab \\u72ec\\u751f \\u72ec\\u7279 \\u72ec\\u541e \\u72ec\\u9662 \\u72ec\\u5b50 \\u72ec\\u81ea \\u72ec\\u594f \\u8bfb\\u672c \\u8bfb\\u7ecf \\u8bfb\\u7834 \\u8bfb\\u6570 \\u8bfb\\u97f3 \\u728a\\u9f3b \\u728a\\u5b50 \\u7b03\\u7231 \\u7b03\\u5b9a \\u7b03\\u539a \\u7b03\\u5b9e \\u7b03\\u5b88 \\u7b03\\u4fe1 \\u7b03\\u5b66 \\u7b03\\u5fd7 \\u5835\\u5fc3 \\u8d4c\\u672c \\u8d4c\\u535a \\u8d4c\\u98ce \\u8d4c\\u9b3c \\u8d4c\\u5c40 \\u8d4c\\u5177 \\u8d4c\\u6c14 \\u8d4c\\u5f92 \\u675c\\u9e43 \\u675c\\u95e8 \\u809a\\u80a0 \\u809a\\u5e26 \\u5ea6\\u8fc7 \\u5ea6\\u547d \\u5ea6\\u65e5 \\u5ea6\\u6570 \\u6e21\\u6cb3 \\u6e21\\u53e3 \\u6e21\\u8f6e \\u6e21\\u5934 \\u9540\\u91d1 \\u9540\\u94f6 \\u7aef\\u65b9 \\u7aef\\u91cf \\u7aef\\u9762 \\u7aef\\u6728 \\u7aef\\u5e73 \\u7aef\\u5348 \\u7aef\\u8be6 \\u7aef\\u96c5 \\u7aef\\u6b63 \\u7aef\\u76f4 \\u7aef\\u5b50 \\u7aef\\u5750 \\u77ed\\u6ce2 \\u77ed\\u79e4 \\u77ed\\u4f20 \\u77ed\\u6253 \\u77ed\\u5200 \\u77ed\\u77ed \\u77ed\\u53d1 \\u77ed\\u5de5 \\u77ed\\u89c1 \\u77ed\\u53e5 \\u77ed\\u547d \\u77ed\\u8dd1 \\u77ed\\u7247 \\u77ed\\u8bc4 \\u77ed\\u671f \\u77ed\\u6c14 \\u77ed\\u6d45 \\u77ed\\u6587 \\u77ed\\u5c0f \\u77ed\\u8bed \\u77ed\\u6682 \\u77ed\\u957f \\u77ed\\u88c5 \\u6bb5\\u5b50 \\u65ad\\u80a0 \\u65ad\\u5b9a \\u65ad\\u65ad \\u65ad\\u987f \\u65ad\\u9b42 \\u65ad\\u4ea4 \\u65ad\\u53e5 \\u65ad\\u53e3 \\u65ad\\u9762 \\u65ad\\u7247 \\u65ad\\u4e03 \\u65ad\\u6c14 \\u65ad\\u5f26 \\u65ad\\u8a00 \\u65ad\\u8bed \\u65ad\\u79cd \\u6934\\u6728 \\u6934\\u6811 \\u7145\\u70e7 \\u953b\\u6253 \\u953b\\u5de5 \\u953b\\u94c1 \\u5806\\u53e0 \\u5806\\u653e \\u5806\\u80a5 \\u5806\\u79ef \\u961f\\u90e8 \\u961f\\u793c \\u961f\\u5217 \\u961f\\u65e5 \\u5bf9\\u767d \\u5bf9\\u534a \\u5bf9\\u672c \\u5bf9\\u6bd4 \\u5bf9\\u5531 \\u5bf9\\u8bcd \\u5bf9\\u6253 \\u5bf9\\u65b9 \\u5bf9\\u6b4c \\u5bf9\\u653b \\u5bf9\\u5149 \\u5bf9\\u8fc7 \\u5bf9\\u5bb6 \\u5bf9\\u89d2 \\u5bf9\\u52b2 \\u5bf9\\u5c40 \\u5bf9\\u5f00 \\u5bf9\\u53e3 \\u5bf9\\u7acb \\u5bf9\\u95e8 \\u5bf9\\u9762 \\u5bf9\\u5185 \\u5bf9\\u624b \\u5bf9\\u6570 \\u5bf9\\u5934 \\u5bf9\\u6d88 \\u5bf9\\u7167 \\u5bf9\\u5b50 \\u5151\\u6b3e \\u5151\\u73b0 \\u6566\\u539a \\u6566\\u8bf7 \\u6566\\u5b9e \\u58a9\\u5b50 \\u8e72\\u73ed \\u8e72\\u4f0f \\u7096\\u8089 \\u949d\\u89d2 \\u949d\\u54cd \\u987f\\u65f6 \\u987f\\u9996 \\u987f\\u6d88 \\u987f\\u8db3 \\u9041\\u8bcd \\u591a\\u534a \\u591a\\u53d8 \\u591a\\u591a \\u591a\\u65b9 \\u591a\\u4e8f \\u591a\\u5e74 \\u591a\\u60c5 \\u591a\\u65e5 \\u591a\\u65f6 \\u591a\\u4e8b \\u591a\\u6570 \\u591a\\u5934 \\u591a\\u5fc3 \\u591a\\u7591 \\u591a\\u4e49 \\u591a\\u4f59 \\u591a\\u5143 \\u591a\\u4e91 \\u6387\\u62fe \\u593a\\u6807 \\u593a\\u76ee \\u8e31\\u6b65 \\u579b\\u53e3 \\u8eb2\\u907f \\u8eb2\\u85cf \\u8eb2\\u5f00 \\u5241\\u8089 \\u8235\\u624b \\u5815\\u5730 \\u5815\\u9a6c \\u60f0\\u6027 \\u8dfa\\u811a \\u8bb9\\u4f20 \\u8bb9\\u8bc8 \\u4fc4\\u8bed \\u9e45\\u9ec4 \\u9e45\\u6bdb \\u989d\\u5b9a \\u989d\\u5ea6 \\u989d\\u9aa8 \\u989d\\u89d2 \\u989d\\u6570 \\u989d\\u5934 \\u989d\\u5916 \\u5384\\u8fd0 \\u627c\\u6740 \\u627c\\u5b88 \\u627c\\u6b7b \\u627c\\u8981 \\u5443\\u9006 \\u6076\\u53d8 \\u6076\\u72d7 \\u6076\\u9b3c \\u6076\\u679c \\u6076\\u6d6a \\u6076\\u52a3 \\u6076\\u540d \\u6076\\u5ff5 \\u6076\\u6c14 \\u6076\\u4eba \\u6076\\u58f0 \\u6076\\u5f92 \\u6076\\u6027 \\u6076\\u8a00 \\u6076\\u610f \\u6076\\u8bed \\u997f\\u9b3c \\u997f\\u6b8d \\u843c\\u7247 \\u904f\\u6b62 \\u816d\\u88c2 \\u5669\\u8fd0 \\u6069\\u7231 \\u6069\\u5fb7 \\u6069\\u516c \\u6069\\u60c5 \\u6069\\u4eba \\u6069\\u5e08 \\u6069\\u65bd \\u6069\\u4e49 \\u513f\\u6b4c \\u513f\\u79d1 \\u513f\\u9a6c \\u513f\\u5973 \\u513f\\u65f6 \\u800c\\u7acb \\u800c\\u4e14 \\u800c\\u5916 \\u5c14\\u683c \\u8033\\u80cc \\u8033\\u5782 \\u8033\\u9f13 \\u8033\\u5149 \\u8033\\u73af \\u8033\\u673a \\u8033\\u5c16 \\u8033\\u79d1 \\u8033\\u5ed3 \\u8033\\u8f6e \\u8033\\u95e8 \\u8033\\u76ee \\u8033\\u70ed \\u8033\\u585e \\u8033\\u751f \\u8033\\u98df \\u8033\\u9970 \\u8033\\u719f \\u8033\\u987a \\u8033\\u8717 \\u8033\\u6027 \\u8033\\u97f3 \\u8033\\u8bed \\u8033\\u9488 \\u8033\\u5b50 \\u8fe9\\u6765 \\u6d31\\u6d77 \\u4e8c\\u516b \\u4e8c\\u4f0f \\u4e8c\\u80e1 \\u4e8c\\u9ec4 \\u4e8c\\u7532 \\u4e8c\\u8001 \\u4e8c\\u5ba1 \\u4e8c\\u624b \\u4e8c\\u5fc3 \\u4e8c\\u6708 \\u53d1\\u767d \\u53d1\\u6807 \\u53d1\\u8868 \\u53d1\\u5175 \\u53d1\\u75c5 \\u53d1\\u8d22 \\u53d1\\u51fa \\u53d1\\u5355 \\u53d1\\u7535 \\u53d1\\u52a8 \\u53d1\\u6296 \\u53d1\\u653e \\u53d1\\u75af \\u53d1\\u7ed9 \\u53d1\\u5149 \\u53d1\\u8fd8 \\u53d1\\u6c57 \\u53d1\\u6a2a \\u53d1\\u7ea2 \\u53d1\\u82b1 \\u53d1\\u6325 \\u53d1\\u660f \\u53d1\\u8d27 \\u53d1\\u6025 \\u53d1\\u5bb6 \\u53d1\\u5939 \\u53d1\\u520a \\u53d1\\u56f0 \\u53d1\\u51b7 \\u53d1\\u6bdb \\u53d1\\u8499 \\u53d1\\u9762 \\u53d1\\u660e \\u53d1\\u6728 \\u53d1\\u6392 \\u53d1\\u914d \\u53d1\\u98d8 \\u53d1\\u8d77 \\u53d1\\u6c14 \\u53d1\\u60c5 \\u53d1\\u70ed \\u53d1\\u6563 \\u53d1\\u4e27 \\u53d1\\u70e7 \\u53d1\\u5c04 \\u53d1\\u751f \\u53d1\\u58f0 \\u53d1\\u6c34 \\u53d1\\u9001 \\u53d1\\u5a01 \\u53d1\\u6587 \\u53d1\\u73b0 \\u53d1\\u4fe1 \\u53d1\\u865a \\u53d1\\u82bd \\u53d1\\u8a00 \\u53d1\\u626c \\u53d1\\u97f3 \\u53d1\\u8fd0 \\u53d1\\u4f5c \\u4e4f\\u529b \\u4f10\\u6728 \\u4f10\\u5584 \\u7f5a\\u91d1 \\u7f5a\\u6b3e \\u9600\\u95e8 \\u7b4f\\u5b50 \\u6cd5\\u5b9d \\u6cd5\\u5b9a \\u6cd5\\u5ea6 \\u6cd5\\u5b98 \\u6cd5\\u89c4 \\u6cd5\\u56fd \\u6cd5\\u7eaa \\u6cd5\\u5bb6 \\u6cd5\\u8b66 \\u6cd5\\u62c9 \\u6cd5\\u8001 \\u6cd5\\u529b \\u6cd5\\u4f8b \\u6cd5\\u76f2 \\u6cd5\\u95e8 \\u6cd5\\u540d \\u6cd5\\u5668 \\u6cd5\\u4eba \\u6cd5\\u8eab \\u6cd5\\u5e08 \\u6cd5\\u4e8b \\u6cd5\\u5ead \\u6cd5\\u738b \\u6cd5\\u5b66 \\u6cd5\\u8863 \\u6cd5\\u8bed \\u6cd5\\u9662 \\u6cd5\\u5b50 \\u756a\\u74dc \\u756a\\u85af \\u85e9\\u56fd \\u85e9\\u5c5e \\u85e9\\u9547 \\u7ffb\\u672c \\u7ffb\\u5012 \\u7ffb\\u5730 \\u7ffb\\u52a8 \\u7ffb\\u6597 \\u7ffb\\u756a \\u7ffb\\u98de \\u7ffb\\u8986 \\u7ffb\\u6539 \\u7ffb\\u8015 \\u7ffb\\u6eda \\u7ffb\\u68c0 \\u7ffb\\u523b \\u7ffb\\u6bdb \\u7ffb\\u5f04 \\u7ffb\\u62cd \\u7ffb\\u8eab \\u7ffb\\u5929 \\u7ffb\\u65b0 \\u7ffb\\u8f6c \\u51e1\\u4f8b \\u51e1\\u4eba \\u51e1\\u4e8b \\u51e1\\u54cd \\u51e1\\u5fc3 \\u51e1\\u5eb8 \\u77fe\\u571f \\u70e6\\u4e71 \\u70e6\\u8bf7 \\u70e6\\u4eba \\u70e6\\u795e \\u70e6\\u5fc3 \\u70e6\\u8a00 \\u70e6\\u6742 \\u7e41\\u535a \\u7e41\\u591a \\u7e41\\u82b1 \\u7e41\\u7b80 \\u7e41\\u4e71 \\u7e41\\u76db \\u7e41\\u661f \\u7e41\\u6742 \\u7e41\\u91cd \\u53cd\\u6bd4 \\u53cd\\u4fa7 \\u53cd\\u5dee \\u53cd\\u51b2 \\u53cd\\u52a8 \\u53cd\\u5bf9 \\u53cd\\u65b9 \\u53cd\\u987e \\u53cd\\u5149 \\u53cd\\u51fb \\u53cd\\u526a \\u53cd\\u8bd8 \\u53cd\\u53e3 \\u53cd\\u9762 \\u53cd\\u76ee \\u53cd\\u6f5c \\u53cd\\u5c04 \\u53cd\\u8eab \\u53cd\\u624b \\u53cd\\u9501 \\u53cd\\u54cd \\u53cd\\u5411 \\u53cd\\u54ac \\u53cd\\u8bed \\u53cd\\u7167 \\u53cd\\u6b63 \\u53cd\\u8f6c \\u53cd\\u5750 \\u8fd4\\u5de5 \\u8fd4\\u5f52 \\u8fd4\\u8fd8 \\u8fd4\\u822a \\u8fd4\\u56de \\u8fd4\\u9752 \\u8fd4\\u9500 \\u8fd4\\u7167 \\u72af\\u6cd5 \\u72af\\u89c4 \\u72af\\u79d1 \\u72af\\u56f0 \\u72af\\u4eba \\u72af\\u4e0a \\u72af\\u4e8b \\u72af\\u7591 \\u72af\\u7f6a \\u996d\\u5c40 \\u996d\\u56ca \\u996d\\u98df \\u996d\\u56e2 \\u6cdb\\u767d \\u6cdb\\u79f0 \\u6cdb\\u6ee5 \\u6cdb\\u8bba \\u6cdb\\u97f3 \\u8303\\u672c \\u8303\\u4f8b \\u8303\\u6587 \\u8d29\\u5356 \\u8d29\\u8fd0 \\u8d29\\u5b50 \\u65b9\\u4fbf \\u65b9\\u6b65 \\u65b9\\u624d \\u65b9\\u5dee \\u65b9\\u5bf8 \\u65b9\\u6cd5 \\u65b9\\u683c \\u65b9\\u5bb6 \\u65b9\\u9762 \\u65b9\\u5c71 \\u65b9\\u5934 \\u65b9\\u5916 \\u65b9\\u5411 \\u65b9\\u8a00 \\u65b9\\u97f3 \\u65b9\\u5706 \\u65b9\\u9488 \\u65b9\\u6b63 \\u65b9\\u5b50 \\u574a\\u672c \\u574a\\u95f4 \\u574a\\u5b50 \\u82b3\\u8349 \\u82b3\\u83f2 \\u82b3\\u540d \\u82b3\\u5e74 \\u82b3\\u9999 \\u82b3\\u5fc3 \\u9632\\u66b4 \\u9632\\u5f39 \\u9632\\u5730 \\u9632\\u98ce \\u9632\\u5bd2 \\u9632\\u6d2a \\u9632\\u62a4 \\u9632\\u7a7a \\u9632\\u8eab \\u9632\\u5b88 \\u9632\\u6c34 \\u9632\\u6b62 \\u623f\\u4ea7 \\u623f\\u4e1c \\u623f\\u6539 \\u623f\\u7ba1 \\u623f\\u57fa \\u623f\\u95f4 \\u623f\\u5c71 \\u623f\\u820d \\u623f\\u4e8b \\u623f\\u5ba4 \\u623f\\u4e3b \\u4eff\\u5355 \\u4eff\\u53e4 \\u4eff\\u5b8b \\u4eff\\u6548 \\u4eff\\u7167 \\u4eff\\u771f \\u4eff\\u7eb8 \\u8bbf\\u53e4 \\u653e\\u51fa \\u653e\\u5927 \\u653e\\u7535 \\u653e\\u98de \\u653e\\u98ce \\u653e\\u6b4c \\u653e\\u5de5 \\u653e\\u5149 \\u653e\\u8fc7 \\u653e\\u8fd8 \\u653e\\u6000 \\u653e\\u5f00 \\u653e\\u7a7a \\u653e\\u6b3e \\u653e\\u6d6a \\u653e\\u6c14 \\u653e\\u60c5 \\u653e\\u6563 \\u653e\\u5c04 \\u653e\\u751f \\u653e\\u58f0 \\u653e\\u624b \\u653e\\u6c34 \\u653e\\u8086 \\u653e\\u9001 \\u653e\\u4e0b \\u653e\\u50cf \\u653e\\u5fc3 \\u653e\\u5b66 \\u653e\\u8840 \\u653e\\u517b \\u653e\\u6063 \\u98de\\u767d \\u98de\\u5730 \\u98de\\u52a8 \\u98de\\u7ea2 \\u98de\\u72d0 \\u98de\\u82b1 \\u98de\\u673a \\u98de\\u6e85 \\u98de\\u9f99 \\u98de\\u8f6e \\u98de\\u9e1f \\u98de\\u8dd1 \\u98de\\u4eba \\u98de\\u6d12 \\u98de\\u6563 \\u98de\\u8eab \\u98de\\u901f \\u98de\\u5929 \\u98de\\u626c \\u98de\\u9c7c \\u98de\\u6da8 \\u98de\\u5b50 \\u98de\\u8d70 \\u5983\\u5b50 \\u975e\\u72ec \\u975e\\u6cd5 \\u975e\\u793c \\u975e\\u547d \\u975e\\u4eba \\u975e\\u7279 \\u975e\\u8bae \\u83f2\\u83f2 \\u871a\\u58f0 \\u871a\\u8bed \\u80a5\\u80a0 \\u80a5\\u5927 \\u80a5\\u539a \\u80a5\\u529b \\u80a5\\u7f8e \\u80a5\\u8089 \\u80a5\\u5b9e \\u80a5\\u7626 \\u80a5\\u6c34 \\u80a5\\u7855 \\u80a5\\u571f \\u80a5\\u6548 \\u8153\\u9aa8 \\u532a\\u5175 \\u532a\\u9996 \\u532a\\u5f92 \\u69a7\\u5b50 \\u80ba\\u53f6 \\u80ba\\u9c7c \\u5e9f\\u9664 \\u5e9f\\u5377 \\u5e9f\\u54c1 \\u5e9f\\u6c14 \\u5e9f\\u4eba \\u5e9f\\u6c34 \\u5e9f\\u94c1 \\u5e9f\\u6b62 \\u6cb8\\u70ed \\u6cb8\\u6c34 \\u8d39\\u5de5 \\u8d39\\u89e3 \\u8d39\\u52b2 \\u8d39\\u529b \\u8d39\\u7c73 \\u8d39\\u795e \\u8d39\\u65f6 \\u8d39\\u4e8b \\u8d39\\u5fc3 \\u8d39\\u7528 \\u75f1\\u5b50 \\u5206\\u522b \\u5206\\u5175 \\u5206\\u90e8 \\u5206\\u9910 \\u5206\\u6210 \\u5206\\u8bcd \\u5206\\u5bf8 \\u5206\\u9053 \\u5206\\u6bb5 \\u5206\\u961f \\u5206\\u53d1 \\u5206\\u5c01 \\u5206\\u5de5 \\u5206\\u7ba1 \\u5206\\u884c \\u5206\\u7ea2 \\u5206\\u6d2a \\u5206\\u4f1a \\u5206\\u673a \\u5206\\u5bb6 \\u5206\\u89e3 \\u5206\\u5c45 \\u5206\\u5c40 \\u5206\\u5f00 \\u5206\\u79bb \\u5206\\u529b \\u5206\\u7acb \\u5206\\u88c2 \\u5206\\u7c73 \\u5206\\u660e \\u5206\\u6bcd \\u5206\\u914d \\u5206\\u7247 \\u5206\\u9891 \\u5206\\u671f \\u5206\\u6e05 \\u5206\\u6da6 \\u5206\\u8272 \\u5206\\u8eab \\u5206\\u795e \\u5206\\u65f6 \\u5206\\u624b \\u5206\\u6570 \\u5206\\u9001 \\u5206\\u5934 \\u5206\\u4e3a \\u5206\\u6587 \\u5206\\u6653 \\u5206\\u6821 \\u5206\\u5fc3 \\u5206\\u91ce \\u5206\\u9634 \\u5206\\u8d43 \\u5206\\u9488 \\u5206\\u652f \\u82ac\\u9999 \\u7eb7\\u5448 \\u7eb7\\u7e41 \\u7eb7\\u98de \\u7eb7\\u4e71 \\u7eb7\\u6742 \\u575f\\u5730 \\u575f\\u5c71 \\u575f\\u5934 \\u711a\\u98ce \\u711a\\u6bc1 \\u711a\\u70e7 \\u711a\\u9999 \\u7c89\\u7b14 \\u7c89\\u80a0 \\u7c89\\u523a \\u7c89\\u7ea2 \\u7c89\\u672b \\u7c89\\u8272 \\u7c89\\u6c99 \\u7c89\\u9970 \\u4efd\\u513f \\u594b\\u53d1 \\u594b\\u98de \\u594b\\u6fc0 \\u594b\\u8fdb \\u594b\\u529b \\u594b\\u8d77 \\u7caa\\u4fbf \\u7caa\\u80a5 \\u7caa\\u571f \\u6124\\u6fc0 \\u4e30\\u7891 \\u4e30\\u4ea7 \\u4e30\\u90fd \\u4e30\\u5bcc \\u4e30\\u539a \\u4e30\\u7f8e \\u4e30\\u5e74 \\u4e30\\u6da6 \\u4e30\\u76db \\u4e30\\u5b9e \\u4e30\\u6536 \\u4e30\\u7855 \\u4e30\\u97f5 \\u98ce\\u66b4 \\u98ce\\u6ce2 \\u98ce\\u4f20 \\u98ce\\u9053 \\u98ce\\u6597 \\u98ce\\u5ea6 \\u98ce\\u53d1 \\u98ce\\u5e72 \\u98ce\\u683c \\u98ce\\u9aa8 \\u98ce\\u7ba1 \\u98ce\\u5149 \\u98ce\\u5bd2 \\u98ce\\u7eaa \\u98ce\\u53e3 \\u98ce\\u6d6a \\u98ce\\u96f7 \\u98ce\\u529b \\u98ce\\u8c8c \\u98ce\\u95e8 \\u98ce\\u78e8 \\u98ce\\u80fd \\u98ce\\u6c14 \\u98ce\\u60c5 \\u98ce\\u8272 \\u98ce\\u6c99 \\u98ce\\u795e \\u98ce\\u58f0 \\u98ce\\u52bf \\u98ce\\u971c \\u98ce\\u6c34 \\u98ce\\u901f \\u98ce\\u571f \\u98ce\\u5411 \\u98ce\\u90aa \\u98ce\\u96c5 \\u98ce\\u8863 \\u98ce\\u96e8 \\u98ce\\u6708 \\u98ce\\u97f5 \\u67ab\\u9999 \\u67ab\\u53f6 \\u5c01\\u95ed \\u5c01\\u5730 \\u5c01\\u4e8c \\u5c01\\u6cb3 \\u5c01\\u53e3 \\u5c01\\u91cc \\u5c01\\u95e8 \\u5c01\\u9762 \\u5c01\\u4e09 \\u5c01\\u6740 \\u5c01\\u5c71 \\u5c01\\u56db \\u5c01\\u9501 \\u5c01\\u571f \\u5c01\\u738b \\u5c01\\u4e00 \\u75af\\u72d7 \\u70fd\\u70df \\u950b\\u5229 \\u950b\\u8292 \\u950b\\u9762 \\u8702\\u805a \\u8702\\u9e1f \\u8702\\u8d77 \\u8702\\u7fa4 \\u8702\\u4e73 \\u8702\\u738b \\u8702\\u8170 \\u8702\\u62e5 \\u7f1d\\u8865 \\u7f1d\\u5408 \\u8bbd\\u523a \\u51e4\\u5c71 \\u5949\\u516c \\u5949\\u8fd8 \\u5949\\u547d \\u5949\\u529d \\u5949\\u9001 \\u5949\\u6258 \\u5949\\u732e \\u5949\\u517b \\u4f5b\\u6cd5 \\u4f5b\\u9aa8 \\u4f5b\\u5149 \\u4f5b\\u5bb6 \\u4f5b\\u6559 \\u4f5b\\u7ecf \\u4f5b\\u8001 \\u4f5b\\u95e8 \\u4f5b\\u5c71 \\u4f5b\\u4e8b \\u4f5b\\u624b \\u4f5b\\u50cf \\u4f5b\\u5b66 \\u4f5b\\u73e0 \\u4f5b\\u7956 \\u5426\\u5b9a \\u592b\\u4eba \\u592b\\u5b50 \\u80a4\\u6d45 \\u80a4\\u8272 \\u9eb8\\u5b50 \\u6577\\u9648 \\u4f0f\\u5b89 \\u4f0f\\u7b14 \\u4f0f\\u5175 \\u4f0f\\u5730 \\u4f0f\\u6cd5 \\u4f0f\\u864e \\u4f0f\\u51fb \\u4f0f\\u7279 \\u4f0f\\u5929 \\u4f0f\\u5154 \\u6276\\u98ce \\u6276\\u8d2b \\u6276\\u6851 \\u6276\\u624b \\u6276\\u758f \\u6276\\u517b \\u6276\\u6447 \\u6276\\u4f59 \\u6276\\u6b63 \\u6276\\u52a9 \\u62c2\\u9006 \\u62c2\\u6653 \\u670d\\u4ece \\u670d\\u8001 \\u670d\\u6c14 \\u670d\\u4e27 \\u670d\\u8272 \\u670d\\u9970 \\u670d\\u8f93 \\u670d\\u5f79 \\u670d\\u7528 \\u670d\\u88c5 \\u670d\\u7f6a \\u832f\\u795e \\u6d6e\\u767d \\u6d6e\\u6807 \\u6d6e\\u8d22 \\u6d6e\\u6c89 \\u6d6e\\u8bcd \\u6d6e\\u96d5 \\u6d6e\\u52a8 \\u6d6e\\u6ed1 \\u6d6e\\u529b \\u6d6e\\u9762 \\u6d6e\\u540d \\u6d6e\\u6d45 \\u6d6e\\u5c71 \\u6d6e\\u751f \\u6d6e\\u6c34 \\u6d6e\\u571f \\u6d6e\\u73b0 \\u6d6e\\u6e38 \\u6d6e\\u4e91 \\u6d6e\\u5b50 \\u7b26\\u5408 \\u5e45\\u5ea6 \\u5e45\\u9762 \\u8f90\\u5c04 \\u8f90\\u7167 \\u798f\\u5b89 \\u798f\\u5730 \\u798f\\u6d77 \\u798f\\u5c06 \\u798f\\u5229 \\u798f\\u6c14 \\u798f\\u4eba \\u798f\\u661f \\u798f\\u97f3 \\u798f\\u8fd0 \\u798f\\u5dde \\u629a\\u7231 \\u629a\\u6478 \\u629a\\u6469 \\u629a\\u5f04 \\u629a\\u987a \\u629a\\u517b \\u65a7\\u5934 \\u65a7\\u51ff \\u65a7\\u6b63 \\u5e9c\\u4e0a \\u4fef\\u5bdf \\u4fef\\u51b2 \\u4fef\\u4f0f \\u4fef\\u89d2 \\u4fef\\u5ff5 \\u4fef\\u62cd \\u4fef\\u8eab \\u4fef\\u9996 \\u4fef\\u4ef0 \\u8f85\\u97f3 \\u8f85\\u52a9 \\u8150\\u8d25 \\u8150\\u6076 \\u8150\\u8089 \\u8150\\u4e73 \\u8150\\u751f \\u7236\\u672c \\u7236\\u8001 \\u7236\\u6bcd \\u7236\\u4eb2 \\u7236\\u7cfb \\u7236\\u5144 \\u7236\\u6267 \\u7236\\u5b50 \\u4ed8\\u51fa \\u4ed8\\u6b3e \\u4ed8\\u6e05 \\u4ed8\\u6258 \\u4ed8\\u606f \\u4ed8\\u73b0 \\u4ed8\\u4e0e \\u4ed8\\u8bf8 \\u8d1f\\u7535 \\u8d1f\\u8346 \\u8d1f\\u9762 \\u8d1f\\u7247 \\u8d1f\\u6c14 \\u8d1f\\u5c48 \\u8d1f\\u4f24 \\u8d1f\\u6570 \\u8d1f\\u5fc3 \\u8d1f\\u91cd \\u8d1f\\u7f6a \\u5987\\u9053 \\u5987\\u79d1 \\u5987\\u5973 \\u5987\\u4eba \\u5987\\u5e7c \\u9644\\u767d \\u9644\\u7b14 \\u9644\\u5e26 \\u9644\\u4f1a \\u9644\\u52a0 \\u9644\\u4e0a \\u9644\\u5c5e \\u9644\\u9001 \\u9644\\u56fe \\u9644\\u5c0f \\u9644\\u8a00 \\u9644\\u8bae \\u9644\\u5eb8 \\u9644\\u7740 \\u9644\\u4e2d \\u9644\\u5b50 \\u9a78\\u9a6c \\u8d74\\u4f1a \\u590d\\u672c \\u590d\\u65e6 \\u590d\\u53d1 \\u590d\\u8fd4 \\u590d\\u65b9 \\u590d\\u5de5 \\u590d\\u53e4 \\u590d\\u5f52 \\u590d\\u5408 \\u590d\\u6838 \\u590d\\u4f1a \\u590d\\u6d3b \\u590d\\u4ea4 \\u590d\\u53e5 \\u590d\\u520a \\u590d\\u5229 \\u590d\\u660e \\u590d\\u547d \\u590d\\u8f9f \\u590d\\u8d5b \\u590d\\u5ba1 \\u590d\\u751f \\u590d\\u8bd5 \\u590d\\u6570 \\u590d\\u73b0 \\u590d\\u4fe1 \\u590d\\u6027 \\u590d\\u5b66 \\u590d\\u53f6 \\u590d\\u8bae \\u590d\\u97f3 \\u590d\\u6742 \\u590d\\u79cd \\u590d\\u8f6c \\u526f\\u672c \\u526f\\u8bcd \\u526f\\u5b98 \\u526f\\u520a \\u526f\\u54c1 \\u526f\\u98df \\u526f\\u624b \\u8d4b\\u7a0e \\u8d4b\\u6027 \\u8d4b\\u5f79 \\u8d4b\\u6709 \\u5bcc\\u56fd \\u5bcc\\u5bb6 \\u5bcc\\u6c11 \\u5bcc\\u519c \\u5bcc\\u5e73 \\u5bcc\\u5f3a \\u5bcc\\u4eba \\u5bcc\\u5546 \\u5bcc\\u5b9e \\u5bcc\\u6709 \\u5bcc\\u4f59 \\u8179\\u90e8 \\u8179\\u5730 \\u8179\\u8154 \\u8179\\u6c34 \\u8179\\u75db \\u8179\\u5fc3 \\u876e\\u86c7 \\u8986\\u88ab \\u8986\\u706d \\u560e\\u5df4 \\u560e\\u5431 \\u8be5\\u5f53 \\u8be5\\u6b7b \\u8d45\\u535a \\u6539\\u53d8 \\u6539\\u79f0 \\u6539\\u9053 \\u6539\\u6389 \\u6539\\u52a8 \\u6539\\u9769 \\u6539\\u8fc7 \\u6539\\u884c \\u6539\\u8fdb \\u6539\\u53e3 \\u6539\\u671f \\u6539\\u65e5 \\u6539\\u8272 \\u6539\\u5584 \\u6539\\u5929 \\u6539\\u4e3a \\u6539\\u5143 \\u6539\\u6b63 \\u6539\\u88c5 \\u76d6\\u5934 \\u6982\\u8bba \\u6982\\u8c8c \\u6982\\u5ff5 \\u6982\\u6570 \\u6982\\u7b97 \\u6982\\u8981 \\u7518\\u8349 \\u7518\\u5f53 \\u7518\\u5c45 \\u7518\\u82e6 \\u7518\\u7f8e \\u7518\\u85af \\u7518\\u5fc3 \\u7518\\u6cb9 \\u7518\\u96e8 \\u809d\\u80a0 \\u809d\\u513f \\u809d\\u6c14 \\u809d\\u7d20 \\u809d\\u7cd6 \\u6cd4\\u6c34 \\u67d1\\u5b50 \\u7aff\\u5b50 \\u75b3\\u79ef \\u79c6\\u5b50 \\u8d76\\u8d85 \\u8d76\\u5de5 \\u8d76\\u6d77 \\u8d76\\u4f1a \\u8d76\\u811a \\u8d76\\u7d27 \\u8d76\\u8dd1 \\u8d76\\u4e0a \\u8d76\\u65e9 \\u8d76\\u8d70 \\u6562\\u5f53 \\u6562\\u60c5 \\u611f\\u52a8 \\u611f\\u6069 \\u611f\\u5b98 \\u611f\\u5149 \\u611f\\u6000 \\u611f\\u6fc0 \\u611f\\u5ff5 \\u611f\\u60c5 \\u611f\\u4eba \\u611f\\u4f24 \\u611f\\u53d7 \\u611f\\u6027 \\u611f\\u8a00 \\u611f\\u77e5 \\u5e72\\u5df4 \\u5e72\\u676f \\u5e72\\u8349 \\u5e72\\u67f4 \\u5e72\\u80a1 \\u5e72\\u679c \\u5e72\\u82b1 \\u5e72\\u8d27 \\u5e72\\u6025 \\u5e72\\u54b3 \\u5e72\\u51b7 \\u5e72\\u8fde \\u5e72\\u88c2 \\u5e72\\u4eb2 \\u5e72\\u70ed \\u5e72\\u5c38 \\u5e72\\u7626 \\u5e72\\u7cfb \\u5e72\\u8863 \\u5e72\\u652f \\u5e72\\u91cd \\u7ec0\\u9752 \\u521a\\u624d \\u521a\\u5ea6 \\u521a\\u521a \\u521a\\u679c \\u521a\\u597d \\u521a\\u6bdb \\u521a\\u5f3a \\u521a\\u6027 \\u521a\\u6b63 \\u521a\\u76f4 \\u809b\\u9053 \\u809b\\u95e8 \\u7eb2\\u7eaa \\u7eb2\\u76ee \\u7eb2\\u8981 \\u94a2\\u7b14 \\u94a2\\u6750 \\u94a2\\u5200 \\u94a2\\u9aa8 \\u94a2\\u7ba1 \\u94a2\\u82b1 \\u94a2\\u6c34 \\u94a2\\u7d22 \\u94a2\\u94c1 \\u94a2\\u9488 \\u94a2\\u79cd \\u94a2\\u73e0 \\u7f38\\u7ba1 \\u7f38\\u5b50 \\u7f61\\u98ce \\u5c97\\u5b50 \\u6e2f\\u8b66 \\u6e2f\\u53e3 \\u6e2f\\u5546 \\u6e2f\\u6e7e \\u6e2f\\u5143 \\u9ad8\\u77ee \\u9ad8\\u5b89 \\u9ad8\\u50b2 \\u9ad8\\u500d \\u9ad8\\u624d \\u9ad8\\u53c2 \\u9ad8\\u4ea7 \\u9ad8\\u5531 \\u9ad8\\u8d85 \\u9ad8\\u5927 \\u9ad8\\u4f4e \\u9ad8\\u5730 \\u9ad8\\u5ea6 \\u9ad8\\u98de \\u9ad8\\u6b4c \\u9ad8\\u5de5 \\u9ad8\\u5bd2 \\u9ad8\\u547c \\u9ad8\\u80e1 \\u9ad8\\u89c1 \\u9ad8\\u6559 \\u9ad8\\u6d01 \\u9ad8\\u4e3e \\u9ad8\\u770b \\u9ad8\\u7a7a \\u9ad8\\u5229 \\u9ad8\\u8bba \\u9ad8\\u660e \\u9ad8\\u80fd \\u9ad8\\u6500 \\u9ad8\\u9891 \\u9ad8\\u5e73 \\u9ad8\\u8154 \\u9ad8\\u5f3a \\u9ad8\\u8df7 \\u9ad8\\u70ed \\u9ad8\\u4eba \\u9ad8\\u5c71 \\u9ad8\\u70e7 \\u9ad8\\u6df1 \\u9ad8\\u58f0 \\u9ad8\\u624b \\u9ad8\\u901f \\u9ad8\\u6c64 \\u9ad8\\u5f92 \\u9ad8\\u5371 \\u9ad8\\u4e0b \\u9ad8\\u5c0f \\u9ad8\\u6821 \\u9ad8\\u6548 \\u9ad8\\u60ac \\u9ad8\\u96c5 \\u9ad8\\u626c \\u9ad8\\u90ae \\u9ad8\\u8fdc \\u9ad8\\u4e91 \\u9ad8\\u6da8 \\u9ad8\\u62db \\u9ad8\\u6795 \\u9ad8\\u4e2d \\u9ad8\\u7956 \\u7f94\\u7f8a \\u7f94\\u5b50 \\u7cd5\\u997c \\u641e\\u6cd5 \\u641e\\u9b3c \\u641e\\u597d \\u641e\\u6d3b \\u641e\\u4e71 \\u7f1f\\u7d20 \\u69c1\\u6728 \\u9550\\u5934 \\u7a3f\\u672c \\u7a3f\\u8d39 \\u7a3f\\u7eb8 \\u85c1\\u672c \\u544a\\u767d \\u544a\\u4fbf \\u544a\\u522b \\u544a\\u6210 \\u544a\\u5439 \\u544a\\u8f9e \\u544a\\u5012 \\u544a\\u53d1 \\u544a\\u5b98 \\u544a\\u6025 \\u544a\\u501f \\u544a\\u8b66 \\u544a\\u8001 \\u544a\\u9000 \\u544a\\u8bed \\u544a\\u77e5 \\u544a\\u7f6a \\u8bf0\\u5c01 \\u8bf0\\u547d \\u54af\\u8840 \\u54e5\\u513f \\u80f3\\u80a2 \\u6401\\u7b14 \\u6401\\u6d45 \\u5272\\u7231 \\u5272\\u9664 \\u5272\\u5730 \\u5272\\u65ad \\u5272\\u793c \\u5272\\u88c2 \\u5272\\u5207 \\u5272\\u820d \\u6b4c\\u672c \\u6b4c\\u5531 \\u6b4c\\u8bcd \\u6b4c\\u513f \\u6b4c\\u5589 \\u6b4c\\u5973 \\u6b4c\\u58f0 \\u6b4c\\u624b \\u6b4c\\u661f \\u6b4c\\u541f \\u6b4c\\u548f \\u6b4c\\u5b50 \\u9769\\u9664 \\u9769\\u5c65 \\u9769\\u547d \\u9769\\u65b0 \\u9601\\u4e0b \\u9601\\u5b50 \\u683c\\u5c40 \\u683c\\u6740 \\u683c\\u5916 \\u683c\\u8a00 \\u9694\\u65ad \\u9694\\u884c \\u9694\\u5f00 \\u9694\\u79bb \\u9694\\u70ed \\u9694\\u65e5 \\u9694\\u5c71 \\u9694\\u5fc3 \\u9694\\u591c \\u9694\\u97f3 \\u845b\\u85e4 \\u4e2a\\u522b \\u4e2a\\u513f \\u4e2a\\u4eba \\u4e2a\\u5934 \\u4e2a\\u6027 \\u4e2a\\u4e2d \\u5404\\u522b \\u5404\\u4eba \\u5404\\u8272 \\u5404\\u79cd \\u5404\\u81ea \\u7ed9\\u5b9a \\u7ed9\\u4ee5 \\u6839\\u672c \\u6839\\u90e8 \\u6839\\u9664 \\u6839\\u96d5 \\u6839\\u57fa \\u6839\\u6bdb \\u6839\\u7cfb \\u8ddf\\u73ed \\u8ddf\\u4ece \\u8ddf\\u6597 \\u8ddf\\u811a \\u8ddf\\u8fdb \\u8ddf\\u524d \\u8ddf\\u968f \\u4e98\\u53e4 \\u8015\\u5730 \\u8015\\u4f5c \\u57c2\\u5b50 \\u803f\\u4ecb \\u803f\\u76f4 \\u6897\\u6982 \\u6897\\u6b7b \\u6897\\u963b \\u66f4\\u53d8 \\u66f4\\u6b21 \\u66f4\\u8fed \\u66f4\\u5b9a \\u66f4\\u52a8 \\u66f4\\u756a \\u66f4\\u6539 \\u66f4\\u9f13 \\u66f4\\u540d \\u66f4\\u6df1 \\u66f4\\u751f \\u66f4\\u66ff \\u66f4\\u9999 \\u66f4\\u65b0 \\u66f4\\u8863 \\u66f4\\u5f20 \\u66f4\\u6b63 \\u5de5\\u672c \\u5de5\\u7b14 \\u5de5\\u5175 \\u5de5\\u5382 \\u5de5\\u515a \\u5de5\\u5730 \\u5de5\\u6bb5 \\u5de5\\u8702 \\u5de5\\u884c \\u5de5\\u4f1a \\u5de5\\u95f4 \\u5de5\\u4ea4 \\u5de5\\u5177 \\u5de5\\u79d1 \\u5de5\\u529b \\u5de5\\u68da \\u5de5\\u671f \\u5de5\\u4eba \\u5de5\\u65e5 \\u5de5\\u4f24 \\u5de5\\u65f6 \\u5de5\\u4e8b \\u5de5\\u5934 \\u5de5\\u7a33 \\u5de5\\u6548 \\u5de5\\u8681 \\u5de5\\u4f59 \\u5de5\\u8fd0 \\u5de5\\u79cd \\u5de5\\u88c5 \\u5de5\\u4f5c \\u5f13\\u80cc \\u5f13\\u8eab \\u5f13\\u5f26 \\u516c\\u5b89 \\u516c\\u4ea7 \\u516c\\u79f0 \\u516c\\u51fa \\u516c\\u9053 \\u516c\\u5fb7 \\u516c\\u65ad \\u516c\\u6cd5 \\u516c\\u65b9 \\u516c\\u8d39 \\u516c\\u516c \\u516c\\u80a1 \\u516c\\u5173 \\u516c\\u56fd \\u516c\\u6d77 \\u516c\\u4f1a \\u516c\\u5bb6 \\u516c\\u4ea4 \\u516c\\u4e3e \\u516c\\u7235 \\u516c\\u5f00 \\u516c\\u6b3e \\u516c\\u4e86 \\u516c\\u91cc \\u516c\\u5386 \\u516c\\u7acb \\u516c\\u4f8b \\u516c\\u8bba \\u516c\\u6c11 \\u516c\\u5e73 \\u516c\\u4f24 \\u516c\\u793e \\u516c\\u5ba1 \\u516c\\u4e8b \\u516c\\u53f8 \\u516c\\u63a8 \\u516c\\u6587 \\u516c\\u5fc3 \\u516c\\u7f8a \\u516c\\u8bae \\u516c\\u610f \\u516c\\u8425 \\u516c\\u7528 \\u516c\\u6709 \\u516c\\u5143 \\u516c\\u6b63 \\u516c\\u4f17 \\u516c\\u4e3b \\u516c\\u52a9 \\u516c\\u5b50 \\u529f\\u5fb7 \\u529f\\u8fc7 \\u529f\\u529b \\u529f\\u5229 \\u529f\\u540d \\u529f\\u80fd \\u529f\\u6548 \\u529f\\u7528 \\u529f\\u7f6a \\u653b\\u9519 \\u653b\\u6253 \\u653b\\u5173 \\u653b\\u51fb \\u653b\\u514b \\u653b\\u7834 \\u653b\\u52bf \\u653b\\u5b88 \\u653b\\u9677 \\u653b\\u5fc3 \\u80b1\\u9aa8 \\u5bab\\u95e8 \\u5bab\\u5973 \\u5bab\\u5ba4 \\u606d\\u8d3a \\u606d\\u8c28 \\u606d\\u8bf7 \\u606d\\u987a \\u606d\\u559c \\u8eac\\u8015 \\u8eac\\u4eb2 \\u8eac\\u8eab \\u62f1\\u62b1 \\u62f1\\u95e8 \\u62f1\\u624b \\u5171\\u5ea6 \\u5171\\u72af \\u5171\\u7ba1 \\u5171\\u548c \\u5171\\u8ba1 \\u5171\\u5c45 \\u5171\\u805a \\u5171\\u8c0b \\u5171\\u6816 \\u5171\\u751f \\u5171\\u8bc6 \\u5171\\u4e8b \\u5171\\u901a \\u5171\\u540c \\u5171\\u6027 \\u5171\\u8bae \\u5171\\u6709 \\u5171\\u632f \\u5171\\u603b \\u8d21\\u5949 \\u8d21\\u54c1 \\u8d21\\u751f \\u8d21\\u7a0e \\u8d21\\u732e \\u8d21\\u9662 \\u4f9b\\u7535 \\u4f9b\\u6c14 \\u4f9b\\u9500 \\u52fe\\u9664 \\u52fe\\u753b \\u52fe\\u9b42 \\u52fe\\u8fde \\u52fe\\u901a \\u52fe\\u9500 \\u6c9f\\u9053 \\u6c9f\\u901a \\u6c9f\\u5b50 \\u94a9\\u6c89 \\u94a9\\u85e4 \\u94a9\\u9488 \\u82df\\u5b89 \\u82df\\u5408 \\u82df\\u6d3b \\u82df\\u4e14 \\u82df\\u5168 \\u82df\\u540c \\u72d7\\u9c7c \\u6784\\u6210 \\u6784\\u8bcd \\u6784\\u56fe \\u6784\\u9677 \\u8d2d\\u9500 \\u591f\\u683c \\u5f40\\u4e2d \\u5abe\\u5408 \\u5abe\\u548c \\u4f30\\u4ea7 \\u4f30\\u8ba1 \\u4f30\\u6478 \\u4f30\\u7b97 \\u6cbd\\u540d \\u5b64\\u50b2 \\u5b64\\u672c \\u5b64\\u5355 \\u5b64\\u72ec \\u5b64\\u513f \\u5b64\\u9ad8 \\u5b64\\u9b42 \\u5b64\\u519b \\u5b64\\u82e6 \\u5b64\\u8001 \\u5b64\\u7acb \\u5b64\\u5973 \\u5b64\\u8eab \\u5b64\\u5b50 \\u59d1\\u8868 \\u59d1\\u59d1 \\u59d1\\u6bcd \\u59d1\\u4e14 \\u59d1\\u606f \\u59d1\\u5b50 \\u53e4\\u5239 \\u53e4\\u9053 \\u53e4\\u90fd \\u53e4\\u65b9 \\u53e4\\u98ce \\u53e4\\u56fd \\u53e4\\u753b \\u53e4\\u6765 \\u53e4\\u8001 \\u53e4\\u4eba \\u53e4\\u5c38 \\u53e4\\u65f6 \\u53e4\\u73a9 \\u53e4\\u6587 \\u53e4\\u7a00 \\u53e4\\u96c5 \\u53e4\\u97f3 \\u53e4\\u8bed \\u53e4\\u8fdc \\u53e4\\u97f5 \\u53e4\\u88c5 \\u53e4\\u5b57 \\u8c37\\u4ed3 \\u8c37\\u8349 \\u8c37\\u5730 \\u8c37\\u53e3 \\u8c37\\u7c73 \\u8c37\\u96e8 \\u80a1\\u672c \\u80a1\\u4e1c \\u80a1\\u9aa8 \\u80a1\\u91d1 \\u80a1\\u5229 \\u80a1\\u5e02 \\u80a1\\u606f \\u80a1\\u5b50 \\u9aa8\\u523a \\u9aa8\\u79d1 \\u9aa8\\u529b \\u9aa8\\u6c14 \\u9aa8\\u8089 \\u9f13\\u5439 \\u9f13\\u69cc \\u9f13\\u52a8 \\u9f13\\u98ce \\u9f13\\u89d2 \\u9f13\\u52b2 \\u9f13\\u5f04 \\u9f13\\u6c14 \\u9f13\\u5ba4 \\u9f13\\u624b \\u56fa\\u8f9e \\u56fa\\u5b9a \\u56fa\\u5b88 \\u56fa\\u6709 \\u56fa\\u6267 \\u6545\\u6b64 \\u6545\\u9053 \\u6545\\u5730 \\u6545\\u90fd \\u6545\\u5bab \\u6545\\u56fd \\u6545\\u4ea4 \\u6545\\u5c45 \\u6545\\u91cc \\u6545\\u4eba \\u6545\\u4e8b \\u6545\\u571f \\u6545\\u6211 \\u6545\\u4e61 \\u6545\\u610f \\u6545\\u77e5 \\u6545\\u7eb8 \\u6545\\u667a \\u6545\\u4f5c \\u987e\\u5bb6 \\u987e\\u5ff5 \\u987e\\u5168 \\u987e\\u4e3b \\u96c7\\u5de5 \\u96c7\\u519c \\u96c7\\u8bf7 \\u96c7\\u7528 \\u96c7\\u4e3b \\u74dc\\u679c \\u74dc\\u519c \\u74dc\\u7247 \\u74dc\\u5b50 \\u522e\\u5200 \\u522e\\u98ce \\u522e\\u5bab \\u522e\\u524a \\u5be1\\u5408 \\u5be1\\u5c45 \\u5be1\\u6bcd \\u5be1\\u60c5 \\u5be1\\u4eba \\u5be1\\u5934 \\u5be1\\u8a00 \\u5366\\u8f9e \\u6302\\u8868 \\u6302\\u9f7f \\u6302\\u5355 \\u6302\\u6597 \\u6302\\u679c \\u6302\\u7ea2 \\u6302\\u82b1 \\u6302\\u6000 \\u6302\\u7532 \\u6302\\u5386 \\u6302\\u96f6 \\u6302\\u9762 \\u6302\\u540d \\u6302\\u5ff5 \\u6302\\u62cd \\u6302\\u5c4f \\u6302\\u5931 \\u6302\\u9501 \\u6302\\u56fe \\u6302\\u5fc3 \\u6302\\u8f74 \\u4e56\\u5f20 \\u62d0\\u5e26 \\u62d0\\u89d2 \\u62d0\\u5356 \\u62d0\\u5b50 \\u602a\\u9053 \\u602a\\u8bba \\u602a\\u4eba \\u602a\\u4e8b \\u602a\\u7f6a \\u5173\\u7231 \\u5173\\u95ed \\u5173\\u4e1c \\u5173\\u9632 \\u5173\\u987e \\u5173\\u6000 \\u5173\\u7d27 \\u5173\\u5361 \\u5173\\u53e3 \\u5173\\u91cc \\u5173\\u95e8 \\u5173\\u5185 \\u5173\\u5c71 \\u5173\\u4e0a \\u5173\\u7a0e \\u5173\\u5934 \\u5173\\u5916 \\u5173\\u7cfb \\u5173\\u5fc3 \\u5173\\u5f20 \\u5173\\u7167 \\u5173\\u4e2d \\u5173\\u5b50 \\u89c2\\u5bdf \\u89c2\\u98ce \\u89c2\\u5149 \\u89c2\\u770b \\u89c2\\u793c \\u89c2\\u6469 \\u89c2\\u5ff5 \\u89c2\\u671b \\u89c2\\u97f3 \\u89c2\\u6b62 \\u89c2\\u4f17 \\u5b98\\u5175 \\u5b98\\u79f0 \\u5b98\\u5012 \\u5b98\\u9053 \\u5b98\\u65b9 \\u5b98\\u8d39 \\u5b98\\u7235 \\u5b98\\u519b \\u5b98\\u540d \\u5b98\\u80fd \\u5b98\\u6c14 \\u5b98\\u8154 \\u5b98\\u4eba \\u5b98\\u5546 \\u5b98\\u53f8 \\u5b98\\u8fd0 \\u68fa\\u6750 \\u68fa\\u6728 \\u9986\\u820d \\u9986\\u5b50 \\u7ba1\\u4fdd \\u7ba1\\u6750 \\u7ba1\\u9053 \\u7ba1\\u6bb5 \\u7ba1\\u62a4 \\u7ba1\\u5bb6 \\u7ba1\\u89c1 \\u7ba1\\u6559 \\u7ba1\\u7aa5 \\u7ba1\\u7247 \\u7ba1\\u4e8b \\u7ba1\\u675f \\u7ba1\\u5f26 \\u7ba1\\u7528 \\u7ba1\\u5b50 \\u7ba1\\u81ea \\u8d2f\\u7a7f \\u8d2f\\u901a \\u8d2f\\u4f17 \\u704c\\u80a0 \\u704c\\u6728 \\u704c\\u8f93 \\u5149\\u6807 \\u5149\\u997c \\u5149\\u6ce2 \\u5149\\u8d64 \\u5149\\u5927 \\u5149\\u7535 \\u5149\\u5ea6 \\u5149\\u987e \\u5149\\u6ed1 \\u5149\\u73af \\u5149\\u6d01 \\u5149\\u89e3 \\u5149\\u9611 \\u5149\\u4e34 \\u5149\\u9762 \\u5149\\u660e \\u5149\\u80fd \\u5149\\u5e74 \\u5149\\u5708 \\u5149\\u6da6 \\u5149\\u675f \\u5149\\u901f \\u5149\\u5934 \\u5149\\u7ea4 \\u5149\\u9c9c \\u5149\\u5b66 \\u5149\\u6d0b \\u5149\\u9634 \\u5149\\u5f71 \\u5149\\u7167 \\u5149\\u5b50 \\u54a3\\u5f53 \\u5e7f\\u5b89 \\u5e7f\\u535a \\u5e7f\\u5927 \\u5e7f\\u4e1c \\u5e7f\\u5ea6 \\u5e7f\\u8d27 \\u5e7f\\u5e73 \\u5e7f\\u53a6 \\u5e7f\\u4e3a \\u5e7f\\u897f \\u5e7f\\u4e49 \\u5e7f\\u8fdc \\u5e7f\\u5dde \\u901b\\u6e38 \\u5f52\\u5e76 \\u5f52\\u9664 \\u5f52\\u961f \\u5f52\\u516c \\u5f52\\u529f \\u5f52\\u56fd \\u5f52\\u8fd8 \\u5f52\\u822a \\u5f52\\u56de \\u5f52\\u53e3 \\u5f52\\u6765 \\u5f52\\u7eb3 \\u5f52\\u671f \\u5f52\\u5c5e \\u5f52\\u987a \\u5f52\\u5929 \\u5f52\\u897f \\u5f52\\u5411 \\u5f52\\u5fc3 \\u5f52\\u5bbf \\u5f52\\u4f9d \\u5f52\\u9690 \\u5f52\\u771f \\u5f52\\u603b \\u5f52\\u7f6a \\u572d\\u8868 \\u572d\\u89d2 \\u9f9f\\u80cc \\u9f9f\\u7f29 \\u9f9f\\u5934 \\u89c4\\u907f \\u89c4\\u5b9a \\u89c4\\u683c \\u89c4\\u4f8b \\u89c4\\u6a21 \\u89c4\\u529d \\u89c4\\u6b63 \\u7688\\u4f9d \\u95fa\\u95e8 \\u95fa\\u5973 \\u7470\\u5b9d \\u7470\\u5947 \\u9c91\\u9c7c \\u8f68\\u9053 \\u8f68\\u5ea6 \\u8f68\\u6795 \\u8be1\\u79f0 \\u8be1\\u8ba1 \\u8be1\\u79d8 \\u8be1\\u5947 \\u8be1\\u8bc8 \\u9b3c\\u624d \\u9b3c\\u9b42 \\u9b3c\\u795e \\u9b3c\\u872e \\u67dc\\u4e0a \\u8d35\\u5fb7 \\u8d35\\u4eba \\u8d35\\u91cd \\u8d35\\u5dde \\u6842\\u82b1 \\u6842\\u5706 \\u6842\\u5b50 \\u8dea\\u5012 \\u8dea\\u4e0b \\u8f8a\\u8f74 \\u8f8a\\u5b50 \\u6eda\\u52a8 \\u6eda\\u6eda \\u6eda\\u5f00 \\u6eda\\u96f7 \\u6eda\\u8f6e \\u6eda\\u6728 \\u6eda\\u70ed \\u6eda\\u6c34 \\u6eda\\u5706 \\u6eda\\u73e0 \\u6eda\\u5b50 \\u78d9\\u5b50 \\u9505\\u5df4 \\u9505\\u997c \\u56fd\\u5b9d \\u56fd\\u672c \\u56fd\\u522b \\u56fd\\u4ea7 \\u56fd\\u9053 \\u56fd\\u90fd \\u56fd\\u5ea6 \\u56fd\\u6cd5 \\u56fd\\u9632 \\u56fd\\u6b4c \\u56fd\\u683c \\u56fd\\u6545 \\u56fd\\u82b1 \\u56fd\\u753b \\u56fd\\u5fbd \\u56fd\\u4f1a \\u56fd\\u9b42 \\u56fd\\u8d27 \\u56fd\\u5bb6 \\u56fd\\u4ea4 \\u56fd\\u811a \\u56fd\\u6559 \\u56fd\\u529b \\u56fd\\u7acb \\u56fd\\u95e8 \\u56fd\\u6c11 \\u56fd\\u5185 \\u56fd\\u60c5 \\u56fd\\u5e86 \\u56fd\\u4eba \\u56fd\\u4e27 \\u56fd\\u8272 \\u56fd\\u52bf \\u56fd\\u4e8b \\u56fd\\u624b \\u56fd\\u7a0e \\u56fd\\u571f \\u56fd\\u738b \\u56fd\\u5a01 \\u56fd\\u6587 \\u56fd\\u4fe1 \\u56fd\\u5b66 \\u56fd\\u8425 \\u56fd\\u6709 \\u56fd\\u8fd0 \\u679c\\u65ad \\u679c\\u6728 \\u679c\\u519c \\u679c\\u54c1 \\u679c\\u812f \\u679c\\u8089 \\u679c\\u5b9e \\u679c\\u6811 \\u679c\\u7cd6 \\u679c\\u771f \\u679c\\u5b50 \\u88f9\\u631f \\u88f9\\u811a \\u8fc7\\u534a \\u8fc7\\u78c5 \\u8fc7\\u79e4 \\u8fc7\\u4ece \\u8fc7\\u9519 \\u8fc7\\u5f53 \\u8fc7\\u9053 \\u8fc7\\u7535 \\u8fc7\\u51ac \\u8fc7\\u5ea6 \\u8fc7\\u591a \\u8fc7\\u5173 \\u8fc7\\u6d3b \\u8fc7\\u6fc0 \\u8fc7\\u52b2 \\u8fc7\\u6765 \\u8fc7\\u793c \\u8fc7\\u95e8 \\u8fc7\\u76ee \\u8fc7\\u5e74 \\u8fc7\\u671f \\u8fc7\\u70ed \\u8fc7\\u4eba \\u8fc7\\u751a \\u8fc7\\u5931 \\u8fc7\\u65f6 \\u8fc7\\u624b \\u8fc7\\u719f \\u8fc7\\u5934 \\u8fc7\\u671b \\u8fc7\\u5348 \\u8fc7\\u5fc3 \\u8fc7\\u591c \\u8fc7\\u65e9 \\u8fc7\\u91cd \\u54c8\\u6c14 \\u8fd8\\u672c \\u8fd8\\u7ed9 \\u8fd8\\u9b42 \\u8fd8\\u51fb \\u8fd8\\u5bb6 \\u8fd8\\u53e3 \\u8fd8\\u793c \\u8fd8\\u6e05 \\u8fd8\\u60c5 \\u8fd8\\u624b \\u8fd8\\u4e61 \\u5b69\\u513f \\u5b69\\u63d0 \\u9ab8\\u9aa8 \\u6d77\\u62d4 \\u6d77\\u6ce2 \\u6d77\\u8349 \\u6d77\\u4ea7 \\u6d77\\u5e26 \\u6d77\\u5730 \\u6d77\\u6cd5 \\u6d77\\u9632 \\u6d77\\u98ce \\u6d77\\u72d7 \\u6d77\\u5173 \\u6d77\\u9f9f \\u6d77\\u6cb3 \\u6d77\\u8d27 \\u6d77\\u89d2 \\u6d77\\u519b \\u6d77\\u53e3 \\u6d77\\u91cc \\u6d77\\u8f6e \\u6d77\\u9a6c \\u6d77\\u95e8 \\u6d77\\u7c73 \\u6d77\\u7ef5 \\u6d77\\u9762 \\u6d77\\u5357 \\u6d77\\u5185 \\u6d77\\u9e1f \\u6d77\\u4e0a \\u6d77\\u86c7 \\u6d77\\u795e \\u6d77\\u4e8b \\u6d77\\u6c34 \\u6d77\\u56fe \\u6d77\\u5916 \\u6d77\\u6e7e \\u6d77\\u9c9c \\u6d77\\u661f \\u6d77\\u6d0b \\u6d77\\u8fd0 \\u6d77\\u732a \\u6d77\\u5b50 \\u4ea5\\u65f6 \\u5bb3\\u547d \\u5bb3\\u9e1f \\u5bb3\\u4eba \\u5bb3\\u559c \\u86b6\\u5b50 \\u9163\\u7545 \\u9163\\u7720 \\u9163\\u7761 \\u9163\\u996e \\u61a8\\u539a \\u61a8\\u5b9e \\u61a8\\u76f4 \\u61a8\\u5b50 \\u9f3e\\u58f0 \\u9097\\u6c5f \\u542b\\u60b2 \\u542b\\u60c5 \\u542b\\u4e49 \\u542b\\u610f \\u542b\\u6709 \\u51fd\\u5927 \\u51fd\\u7535 \\u51fd\\u6570 \\u51fd\\u7d22 \\u97e9\\u56fd \\u5bd2\\u5e26 \\u5bd2\\u51ac \\u5bd2\\u98ce \\u5bd2\\u5149 \\u5bd2\\u82e6 \\u5bd2\\u51b7 \\u5bd2\\u6bdb \\u5bd2\\u95e8 \\u5bd2\\u6c14 \\u5bd2\\u70ed \\u5bd2\\u8272 \\u5bd2\\u820d \\u5bd2\\u98df \\u5bd2\\u7d20 \\u5bd2\\u9178 \\u5bd2\\u5fae \\u5bd2\\u5fc3 \\u5bd2\\u661f \\u5bd2\\u591c \\u5bd2\\u8863 \\u5bd2\\u610f \\u7f55\\u89c1 \\u7f55\\u6709 \\u558a\\u58f0 \\u6c49\\u53e3 \\u6c49\\u6c11 \\u6c49\\u4eba \\u6c49\\u6c34 \\u6c49\\u738b \\u6c49\\u6587 \\u6c49\\u5b66 \\u6c49\\u9634 \\u6c49\\u8bed \\u6c49\\u4e2d \\u6c49\\u5b57 \\u6c57\\u811a \\u6c57\\u6bdb \\u6c57\\u9752 \\u6c57\\u6c34 \\u6c57\\u73e0 \\u65f1\\u5730 \\u65f1\\u5e74 \\u65f1\\u60c5 \\u65f1\\u70df \\u9894\\u9996 \\u64bc\\u52a8 \\u61be\\u4e8b \\u701a\\u6d77 \\u592f\\u6b4c \\u592f\\u5b9e \\u884c\\u5f53 \\u884c\\u89c4 \\u884c\\u4f1a \\u884c\\u8d27 \\u884c\\u5bb6 \\u884c\\u95f4 \\u884c\\u6b3e \\u884c\\u5217 \\u884c\\u60c5 \\u884c\\u5e02 \\u676d\\u5dde \\u822a\\u73ed \\u822a\\u6807 \\u822a\\u6b21 \\u822a\\u9053 \\u822a\\u6d77 \\u822a\\u5fbd \\u822a\\u7a7a \\u822a\\u6a21 \\u822a\\u901f \\u822a\\u5929 \\u822a\\u56fe \\u822a\\u5411 \\u822a\\u8fd0 \\u84bf\\u8349 \\u84bf\\u5b50 \\u8585\\u8349 \\u869d\\u6cb9 \\u8c6a\\u653e \\u8c6a\\u5bcc \\u8c6a\\u4e3e \\u8c6a\\u95e8 \\u8c6a\\u6c14 \\u8c6a\\u5f3a \\u8c6a\\u60c5 \\u8c6a\\u5546 \\u8c6a\\u996e \\u8c6a\\u96e8 \\u8c6a\\u8bed \\u8c6a\\u732a \\u568e\\u54ed \\u597d\\u6bd4 \\u597d\\u4e0d \\u597d\\u5403 \\u597d\\u591a \\u597d\\u8fc7 \\u597d\\u770b \\u597d\\u8bc4 \\u597d\\u6c14 \\u597d\\u4eba \\u597d\\u751f \\u597d\\u4f3c \\u597d\\u4e8b \\u597d\\u624b \\u597d\\u53d7 \\u597d\\u542c \\u597d\\u73a9 \\u597d\\u50cf \\u597d\\u5fc3 \\u597d\\u8a00 \\u597d\\u610f \\u597d\\u8fd0 \\u597d\\u5728 \\u597d\\u8f6c \\u53f7\\u5175 \\u53f7\\u79f0 \\u53f7\\u89d2 \\u53f7\\u54ed \\u53f7\\u8109 \\u53f7\\u624b \\u53f7\\u6570 \\u53f7\\u5934 \\u53f7\\u5916 \\u53f7\\u8863 \\u53f7\\u5b50 \\u8017\\u8d39 \\u8017\\u6563 \\u8017\\u5b50 \\u6d69\\u535a \\u6d69\\u5927 \\u6d69\\u7e41 \\u6d69\\u6c14 \\u6d69\\u7279 \\u7693\\u9f7f \\u7693\\u9996 \\u7693\\u6708 \\u8bc3\\u5b50 \\u5475\\u62a4 \\u559d\\u6c34 \\u79be\\u8349 \\u79be\\u573a \\u5408\\u62b1 \\u5408\\u5e76 \\u5408\\u5531 \\u5408\\u6210 \\u5408\\u5ea6 \\u5408\\u6cd5 \\u5408\\u80a5 \\u5408\\u8be5 \\u5408\\u683c \\u5408\\u80a1 \\u5408\\u51fb \\u5408\\u8ba1 \\u5408\\u811a \\u5408\\u91d1 \\u5408\\u520a \\u5408\\u53e3 \\u5408\\u529b \\u5408\\u9f99 \\u5408\\u8c0b \\u5408\\u62cd \\u5408\\u7fa4 \\u5408\\u8eab \\u5408\\u5341 \\u5408\\u65f6 \\u5408\\u624b \\u5408\\u6570 \\u5408\\u7b97 \\u5408\\u540c \\u5408\\u5fc3 \\u5408\\u53f6 \\u5408\\u4e00 \\u5408\\u8bae \\u5408\\u610f \\u5408\\u8425 \\u5408\\u5f71 \\u5408\\u7528 \\u5408\\u7167 \\u5408\\u5b50 \\u5408\\u594f \\u5408\\u4f5c \\u4f55\\u4e0d \\u4f55\\u5e72 \\u4f55\\u6545 \\u4f55\\u82e6 \\u4f55\\u5982 \\u4f55\\u65f6 \\u4f55\\u4e8b \\u4f55\\u4ee5 \\u4f55\\u5728 \\u4f55\\u6b62 \\u548c\\u7545 \\u548c\\u98ce \\u548c\\u597d \\u548c\\u5408 \\u548c\\u7f13 \\u548c\\u4f1a \\u548c\\u89e3 \\u548c\\u5c40 \\u548c\\u7f8e \\u548c\\u6696 \\u548c\\u5e73 \\u548c\\u68cb \\u548c\\u6c14 \\u548c\\u4eb2 \\u548c\\u5584 \\u548c\\u58f0 \\u548c\\u6570 \\u548c\\u987a \\u548c\\u7855 \\u548c\\u5f26 \\u548c\\u8863 \\u548c\\u8bae \\u6cb3\\u868c \\u6cb3\\u5317 \\u6cb3\\u5ddd \\u6cb3\\u9053 \\u6cb3\\u4e1c \\u6cb3\\u6bb5 \\u6cb3\\u9632 \\u6cb3\\u80a5 \\u6cb3\\u5de5 \\u6cb3\\u95f4 \\u6cb3\\u53e3 \\u6cb3\\u9a6c \\u6cb3\\u5357 \\u6cb3\\u5185 \\u6cb3\\u66f2 \\u6cb3\\u6c99 \\u6cb3\\u5c71 \\u6cb3\\u8eab \\u6cb3\\u6c34 \\u6cb3\\u6e7e \\u6cb3\\u897f \\u6cb3\\u7cfb \\u6cb3\\u9c9c \\u6cb3\\u5fc3 \\u6cb3\\u6cbf \\u6cb3\\u9c7c \\u6cb3\\u8fd0 \\u8377\\u82b1 \\u6838\\u5f39 \\u6838\\u5b9a \\u6838\\u5bf9 \\u6838\\u679c \\u6838\\u8ba1 \\u6838\\u80fd \\u6838\\u5b9e \\u6838\\u7b97 \\u6838\\u6843 \\u6838\\u9500 \\u6838\\u5fc3 \\u6838\\u5b50 \\u9616\\u5bb6 \\u8d3a\\u8bcd \\u8d3a\\u8f9e \\u8d3a\\u7535 \\u8d3a\\u793c \\u8d3a\\u5e74 \\u8d3a\\u559c \\u8d3a\\u4fe1 \\u8910\\u8272 \\u9e64\\u5c71 \\u9ed1\\u767d \\u9ed1\\u9053 \\u9ed1\\u5730 \\u9ed1\\u8c82 \\u9ed1\\u8c46 \\u9ed1\\u53d1 \\u9ed1\\u7ba1 \\u9ed1\\u5149 \\u9ed1\\u6d77 \\u9ed1\\u7ea2 \\u9ed1\\u8d27 \\u9ed1\\u53e3 \\u9ed1\\u9a6c \\u9ed1\\u4eba \\u9ed1\\u8272 \\u9ed1\\u5e02 \\u9ed1\\u624b \\u9ed1\\u7cd6 \\u9ed1\\u5929 \\u9ed1\\u5934 \\u9ed1\\u571f \\u9ed1\\u5fc3 \\u9ed1\\u4fe1 \\u9ed1\\u591c \\u9ed1\\u5f71 \\u9ed1\\u9c7c \\u9ed1\\u96e8 \\u9ed1\\u4e91 \\u9ed1\\u79cd \\u9ed1\\u5b50 \\u72e0\\u52b2 \\u72e0\\u547d \\u72e0\\u5fc3 \\u6068\\u4e8b \\u4ea8\\u901a \\u54fc\\u5531 \\u6052\\u4ea7 \\u6052\\u9f7f \\u6052\\u5b9a \\u6052\\u5c71 \\u6052\\u5fc3 \\u6052\\u661f \\u6a2a\\u6807 \\u6a2a\\u7a7f \\u6a2a\\u65ad \\u6a2a\\u961f \\u6a2a\\u52a0 \\u6a2a\\u7a7a \\u6a2a\\u5217 \\u6a2a\\u6392 \\u6a2a\\u62ab \\u6a2a\\u5207 \\u6a2a\\u8089 \\u6a2a\\u751f \\u6a2a\\u5411 \\u6a2a\\u5fc3 \\u6a2a\\u76f4 \\u8861\\u91cf \\u8861\\u5e73 \\u8861\\u5668 \\u8861\\u5c71 \\u8861\\u6c34 \\u8f70\\u52a8 \\u8f70\\u8d76 \\u8f70\\u51fb \\u8f70\\u54cd \\u70d8\\u5e72 \\u70d8\\u6258 \\u5f18\\u626c \\u7ea2\\u8c46 \\u7ea2\\u6d77 \\u7ea2\\u6cb3 \\u7ea2\\u82b1 \\u7ea2\\u8d27 \\u7ea2\\u6559 \\u7ea2\\u519b \\u7ea2\\u5229 \\u7ea2\\u6728 \\u7ea2\\u4eba \\u7ea2\\u65e5 \\u7ea2\\u6da6 \\u7ea2\\u8272 \\u7ea2\\u70e7 \\u7ea2\\u751f \\u7ea2\\u85af \\u7ea2\\u6811 \\u7ea2\\u7cd6 \\u7ea2\\u6843 \\u7ea2\\u85e4 \\u7ea2\\u94dc \\u7ea2\\u571f \\u7ea2\\u5fc3 \\u7ea2\\u661f \\u7ea2\\u5b66 \\u7ea2\\u53f6 \\u7ea2\\u8863 \\u7ea2\\u9c7c \\u7ea2\\u4e91 \\u7ea2\\u8fd0 \\u7ea2\\u4e13 \\u7ea2\\u88c5 \\u5b8f\\u624d \\u5b8f\\u5927 \\u5b8f\\u5bcc \\u5b8f\\u8bba \\u5b8f\\u56fe \\u8679\\u5438 \\u6d2a\\u6ce2 \\u6d2a\\u5927 \\u6d2a\\u6069 \\u6d2a\\u6e56 \\u6d2a\\u8352 \\u6d2a\\u6c34 \\u6d2a\\u96c5 \\u9e3f\\u9e44 \\u9e3f\\u6bdb \\u9e3f\\u8fd0 \\u54c4\\u4f20 \\u54c4\\u95f9 \\u4faf\\u7235 \\u5589\\u5934 \\u5589\\u97f3 \\u7334\\u513f \\u7334\\u5934 \\u7334\\u738b \\u760a\\u5b50 \\u543c\\u58f0 \\u540e\\u6b65 \\u540e\\u64a4 \\u540e\\u6bb5 \\u540e\\u65b9 \\u540e\\u9632 \\u540e\\u8ddf \\u540e\\u5bab \\u540e\\u987e \\u540e\\u679c \\u540e\\u811a \\u540e\\u91d1 \\u540e\\u8fdb \\u540e\\u52b2 \\u540e\\u6765 \\u540e\\u95e8 \\u540e\\u9762 \\u540e\\u6bcd \\u540e\\u8111 \\u540e\\u5e74 \\u540e\\u6392 \\u540e\\u671f \\u540e\\u8d77 \\u540e\\u4eba \\u540e\\u8eab \\u540e\\u751f \\u540e\\u5e02 \\u540e\\u4e8b \\u540e\\u624b \\u540e\\u5929 \\u540e\\u5ead \\u540e\\u9000 \\u540e\\u6548 \\u540e\\u5fc3 \\u540e\\u5b66 \\u540e\\u5f71 \\u540e\\u63f4 \\u540e\\u9662 \\u540e\\u5750 \\u539a\\u7231 \\u539a\\u8584 \\u539a\\u9053 \\u539a\\u5ea6 \\u539a\\u6069 \\u539a\\u975e \\u539a\\u793c \\u539a\\u5229 \\u539a\\u5b9e \\u539a\\u671b \\u539a\\u5473 \\u539a\\u610f \\u539a\\u91cd \\u5019\\u8865 \\u5019\\u6559 \\u5019\\u9e1f \\u5019\\u5ba1 \\u547c\\u547c \\u547c\\u6c14 \\u547c\\u58f0 \\u547c\\u5438 \\u5ffd\\u5730 \\u72d0\\u4ed9 \\u72d0\\u7591 \\u5f27\\u5ea6 \\u5f27\\u5149 \\u5f27\\u957f \\u80e1\\u626f \\u80e1\\u5439 \\u80e1\\u8c46 \\u80e1\\u8702 \\u80e1\\u74dc \\u80e1\\u6405 \\u80e1\\u6765 \\u80e1\\u4e71 \\u80e1\\u95f9 \\u80e1\\u4eba \\u80e1\\u6843 \\u80e1\\u8a00 \\u80e1\\u5b50 \\u9e44\\u7acb \\u9e44\\u671b \\u6e56\\u5317 \\u6e56\\u7b14 \\u6e56\\u5e7f \\u6e56\\u5357 \\u6e56\\u8272 \\u6e56\\u5fc3 \\u864e\\u6b65 \\u864e\\u9aa8 \\u864e\\u864e \\u864e\\u52b2 \\u864e\\u53e3 \\u864e\\u72fc \\u864e\\u95e8 \\u864e\\u6c14 \\u864e\\u5a01 \\u864e\\u5b50 \\u4e92\\u8865 \\u4e92\\u4ea4 \\u4e92\\u5229 \\u4e92\\u751f \\u4e92\\u901a \\u4e92\\u76f8 \\u4e92\\u52a9 \\u6237\\u53e3 \\u6237\\u5934 \\u6237\\u5916 \\u6237\\u4e3b \\u62a4\\u5175 \\u62a4\\u4ece \\u62a4\\u77ed \\u62a4\\u6cd5 \\u62a4\\u5c01 \\u62a4\\u5de5 \\u62a4\\u822a \\u62a4\\u58eb \\u62a4\\u5b88 \\u62a4\\u9001 \\u62a4\\u819d \\u62a4\\u80f8 \\u62a4\\u517b \\u62a4\\u9662 \\u62a4\\u7167 \\u74e0\\u5b50 \\u82b1\\u767d \\u82b1\\u88ab \\u82b1\\u8349 \\u82b1\\u7c07 \\u82b1\\u65e6 \\u82b1\\u96d5 \\u82b1\\u90fd \\u82b1\\u513f \\u82b1\\u8d39 \\u82b1\\u9f13 \\u82b1\\u7ea2 \\u82b1\\u73af \\u82b1\\u4f1a \\u82b1\\u540d \\u82b1\\u6728 \\u82b1\\u9e1f \\u82b1\\u519c \\u82b1\\u671f \\u82b1\\u8154 \\u82b1\\u9752 \\u82b1\\u5b50 \\u5212\\u62c9 \\u5212\\u7834 \\u5212\\u6c34 \\u5212\\u7b97 \\u5212\\u5b50 \\u534e\\u5317 \\u534e\\u8868 \\u534e\\u4e1c \\u534e\\u5de5 \\u534e\\u91cc \\u534e\\u7f8e \\u534e\\u5357 \\u534e\\u5e74 \\u534e\\u4eba \\u534e\\u6da6 \\u534e\\u897f \\u534e\\u8bed \\u534e\\u4e2d \\u54d7\\u53d8 \\u6ed1\\u9053 \\u6ed1\\u52a8 \\u6ed1\\u7cbe \\u6ed1\\u8f6e \\u6ed1\\u6da6 \\u6ed1\\u6c34 \\u6ed1\\u5934 \\u6ed1\\u97f3 \\u5316\\u80a5 \\u5316\\u5de5 \\u5316\\u5408 \\u5316\\u89e3 \\u5316\\u540d \\u5316\\u8eab \\u5316\\u751f \\u5316\\u5916 \\u5316\\u4e3a \\u5316\\u7ea4 \\u5316\\u5b66 \\u5316\\u9a8c \\u5316\\u88c5 \\u5316\\u4f5c \\u753b\\u672c \\u753b\\u7b14 \\u753b\\u997c \\u753b\\u6cd5 \\u753b\\u5de5 \\u753b\\u5bb6 \\u753b\\u5939 \\u753b\\u5177 \\u753b\\u5377 \\u753b\\u520a \\u753b\\u9762 \\u753b\\u5c4f \\u753b\\u5e08 \\u753b\\u5ba4 \\u753b\\u56fe \\u753b\\u50cf \\u753b\\u9662 \\u753b\\u8f74 \\u8bdd\\u672c \\u8bdd\\u522b \\u8bdd\\u950b \\u8bdd\\u5934 \\u8bdd\\u97f3 \\u8bdd\\u8bed \\u6000\\u5b89 \\u6000\\u62b1 \\u6000\\u8868 \\u6000\\u6625 \\u6000\\u5fb7 \\u6000\\u53e4 \\u6000\\u6765 \\u6000\\u5ff5 \\u6000\\u4e61 \\u6000\\u7591 \\u6000\\u8fdc \\u69d0\\u82b1 \\u69d0\\u6811 \\u574f\\u4eba \\u574f\\u4e8b \\u574f\\u6c34 \\u574f\\u6b7b \\u6b22\\u7545 \\u6b22\\u5531 \\u6b22\\u5ea6 \\u6b22\\u6b4c \\u6b22\\u547c \\u6b22\\u805a \\u6b22\\u4e50 \\u6b22\\u95f9 \\u6b22\\u5e86 \\u6b22\\u58f0 \\u6b22\\u5b9e \\u6b22\\u9001 \\u6b22\\u559c \\u6b22\\u5fc3 \\u73af\\u4fdd \\u73af\\u62b1 \\u73af\\u987e \\u73af\\u5408 \\u73af\\u5217 \\u73af\\u7ed5 \\u73af\\u5c71 \\u73af\\u751f \\u73af\\u98df \\u73af\\u6e38 \\u73af\\u4e2d \\u73af\\u5b50 \\u7f13\\u6b65 \\u7f13\\u51b2 \\u7f13\\u548c \\u7f13\\u7f13 \\u7f13\\u6025 \\u7f13\\u89e3 \\u7f13\\u671f \\u7f13\\u6c14 \\u7f13\\u5f79 \\u7f13\\u5f81 \\u5e7b\\u706d \\u5e7b\\u6570 \\u5e7b\\u542c \\u5e7b\\u50cf \\u5e7b\\u5f71 \\u5ba6\\u5b98 \\u5ba6\\u6d77 \\u5ba6\\u6e38 \\u6362\\u73ed \\u6362\\u9632 \\u6362\\u5de5 \\u6362\\u884c \\u6362\\u9a6c \\u6362\\u6bdb \\u6362\\u6c14 \\u6362\\u4eb2 \\u6362\\u4eba \\u6362\\u7b97 \\u6362\\u6587 \\u6362\\u5fc3 \\u6362\\u88c5 \\u5524\\u8d77 \\u6da3\\u6563 \\u8c62\\u517b \\u8352\\u6751 \\u8352\\u5730 \\u8352\\u53e4 \\u8352\\u5bd2 \\u8352\\u4e71 \\u8352\\u5e74 \\u8352\\u758f \\u8352\\u91ce \\u8352\\u6deb \\u614c\\u4e71 \\u614c\\u795e \\u614c\\u5f20 \\u7687\\u5bab \\u7687\\u7687 \\u7687\\u5bb6 \\u7687\\u5386 \\u7687\\u4eb2 \\u7687\\u4e0a \\u7687\\u5ba4 \\u7687\\u5929 \\u7687\\u5b50 \\u9ec4\\u67cf \\u9ec4\\u96c0 \\u9ec4\\u6c99 \\u9ec4\\u85e4 \\u9ec4\\u94dc \\u9ec4\\u7f8a \\u60f6\\u6025 \\u60f6\\u6050 \\u604d\\u5982 \\u7070\\u767d \\u7070\\u8272 \\u7070\\u571f \\u7070\\u5fc3 \\u6325\\u52a8 \\u6325\\u53d1 \\u6325\\u6beb \\u6325\\u6d12 \\u6325\\u5e08 \\u6325\\u624b \\u6062\\u5ed3 \\u8f89\\u5149 \\u9ebe\\u4e0b \\u56de\\u907f \\u56de\\u6ce2 \\u56de\\u80a0 \\u56de\\u6625 \\u56de\\u5355 \\u56de\\u7535 \\u56de\\u8dcc \\u56de\\u8fd4 \\u56de\\u987e \\u56de\\u5f52 \\u56de\\u8fd8 \\u56de\\u822a \\u56de\\u5408 \\u56de\\u73af \\u56de\\u56de \\u56de\\u51fb \\u56de\\u89c1 \\u56de\\u4ea4 \\u56de\\u6559 \\u56de\\u7a7a \\u56de\\u6263 \\u56de\\u6765 \\u56de\\u793c \\u56de\\u5386 \\u56de\\u95e8 \\u56de\\u6c11 \\u56de\\u76ee \\u56de\\u6696 \\u56de\\u8bf7 \\u56de\\u7ed5 \\u56de\\u8eab \\u56de\\u795e \\u56de\\u751f \\u56de\\u58f0 \\u56de\\u5e08 \\u56de\\u6536 \\u56de\\u624b \\u56de\\u9996 \\u56de\\u6c34 \\u56de\\u6eaf \\u56de\\u5929 \\u56de\\u5934 \\u56de\\u671b \\u56de\\u6587 \\u56de\\u4e61 \\u56de\\u54cd \\u56de\\u9500 \\u56de\\u4fe1 \\u56de\\u97f3 \\u56de\\u6e38 \\u56de\\u6da8 \\u56de\\u6267 \\u56de\\u8f6c \\u8334\\u9999 \\u6094\\u6539 \\u6094\\u8fc7 \\u6094\\u68cb \\u6094\\u7f6a \\u6bc1\\u574f \\u6bc1\\u706d \\u6bc1\\u4f24 \\u6c47\\u51fa \\u6c47\\u8d39 \\u6c47\\u5408 \\u6c47\\u805a \\u6c47\\u6b3e \\u6c47\\u6c34 \\u6c47\\u603b \\u4f1a\\u6807 \\u4f1a\\u9910 \\u4f1a\\u64cd \\u4f1a\\u515a \\u4f1a\\u8d39 \\u4f1a\\u98ce \\u4f1a\\u5408 \\u4f1a\\u5fbd \\u4f1a\\u89c1 \\u4f1a\\u805a \\u4f1a\\u520a \\u4f1a\\u9762 \\u4f1a\\u671f \\u4f1a\\u5546 \\u4f1a\\u4e0a \\u4f1a\\u5ba1 \\u4f1a\\u5e08 \\u4f1a\\u8bd5 \\u4f1a\\u9996 \\u4f1a\\u6c34 \\u4f1a\\u901a \\u4f1a\\u540c \\u4f1a\\u5fc3 \\u4f1a\\u538c \\u4f1a\\u8bae \\u4f1a\\u610f \\u4f1a\\u9634 \\u4f1a\\u5143 \\u4f1a\\u4f17 \\u4f1a\\u5b50 \\u8bb3\\u8a00 \\u7ed8\\u753b \\u7ed8\\u56fe \\u8d3f\\u8d42 \\u60e0\\u5b89 \\u60e0\\u98ce \\u60e0\\u987e \\u60e0\\u6765 \\u60e0\\u4e34 \\u60e0\\u6c11 \\u60e0\\u5dde \\u6167\\u5fc3 \\u660f\\u6c89 \\u660f\\u5012 \\u660f\\u82b1 \\u660f\\u9ec4 \\u660f\\u660f \\u660f\\u4e71 \\u660f\\u8ff7 \\u660f\\u7761 \\u660f\\u6b7b \\u660f\\u5eb8 \\u8364\\u8165 \\u8364\\u6cb9 \\u6d51\\u539a \\u6d51\\u5bb6 \\u6d51\\u5982 \\u6d51\\u8eab \\u6d51\\u4f3c \\u6d51\\u6c34 \\u6d51\\u5706 \\u9b42\\u7075 \\u8be8\\u540d \\u8c41\\u51fa \\u8c41\\u53e3 \\u6d3b\\u5b9d \\u6d3b\\u52a8 \\u6d3b\\u513f \\u6d3b\\u6cd5 \\u6d3b\\u8be5 \\u6d3b\\u6d3b \\u6d3b\\u8ba1 \\u6d3b\\u68c0 \\u6d3b\\u53e3 \\u6d3b\\u6263 \\u6d3b\\u529b \\u6d3b\\u57cb \\u6d3b\\u95e8 \\u6d3b\\u547d \\u6d3b\\u671f \\u6d3b\\u6c14 \\u6d3b\\u4eba \\u6d3b\\u585e \\u6d3b\\u98df \\u6d3b\\u4f3c \\u6d3b\\u6c34 \\u6d3b\\u8131 \\u6d3b\\u73b0 \\u6d3b\\u50cf \\u6d3b\\u6027 \\u6d3b\\u7528 \\u6d3b\\u6349 \\u6d3b\\u5b57 \\u6d3b\\u7f6a \\u706b\\u5e76 \\u706b\\u67f4 \\u706b\\u7535 \\u706b\\u653b \\u706b\\u5149 \\u706b\\u6d77 \\u706b\\u7ea2 \\u706b\\u72d0 \\u706b\\u82b1 \\u706b\\u6025 \\u706b\\u8b66 \\u706b\\u8fa3 \\u706b\\u529b \\u706b\\u9f99 \\u706b\\u8f6e \\u706b\\u6c14 \\u706b\\u5668 \\u706b\\u60c5 \\u706b\\u70ed \\u706b\\u5c71 \\u706b\\u70e7 \\u706b\\u795e \\u706b\\u7ef3 \\u706b\\u52bf \\u706b\\u901f \\u706b\\u5934 \\u706b\\u661f \\u706b\\u6027 \\u706b\\u6cb9 \\u706b\\u79cd \\u4f19\\u72af \\u4f19\\u8ba1 \\u4f19\\u98df \\u4f19\\u540c \\u8d27\\u5355 \\u8d27\\u673a \\u8d27\\u6b3e \\u8d27\\u8f6e \\u8d27\\u54c1 \\u8d27\\u8272 \\u8d27\\u8fd0 \\u8d27\\u4e3b \\u83b7\\u5f97 \\u83b7\\u5229 \\u83b7\\u80dc \\u83b7\\u6089 \\u83b7\\u77e5 \\u83b7\\u7f6a \\u60d1\\u4e71 \\u60d1\\u4f17 \\u970d\\u5730 \\u970d\\u4e71 \\u970d\\u5c71 \\u85ff\\u9999 \\u8ba5\\u523a \\u8ba5\\u8bc4 \\u51fb\\u8d25 \\u51fb\\u7a7f \\u51fb\\u6253 \\u51fb\\u5012 \\u51fb\\u53d1 \\u51fb\\u9f13 \\u51fb\\u6bc1 \\u51fb\\u6e83 \\u51fb\\u7834 \\u51fb\\u4f24 \\u51fb\\u6c34 \\u51fb\\u9000 \\u9965\\u80a0 \\u9965\\u997f \\u9965\\u5bd2 \\u9965\\u8352 \\u9965\\u6c11 \\u9965\\u8272 \\u673a\\u53d8 \\u673a\\u7535 \\u673a\\u52a8 \\u673a\\u950b \\u673a\\u8015 \\u673a\\u5de5 \\u673a\\u5173 \\u673a\\u4f1a \\u673a\\u8b66 \\u673a\\u5177 \\u673a\\u7075 \\u673a\\u8c0b \\u673a\\u80fd \\u673a\\u5668 \\u673a\\u7fa4 \\u673a\\u8eab \\u673a\\u8981 \\u673a\\u6cb9 \\u673a\\u667a \\u673a\\u5b50 \\u808c\\u80a4 \\u808c\\u8089 \\u9e21\\u516c \\u9e21\\u820d \\u9e21\\u5934 \\u9e21\\u5fc3 \\u9e21\\u80f8 \\u9e21\\u5b50 \\u79ef\\u5fb7 \\u79ef\\u80a5 \\u79ef\\u805a \\u79ef\\u6728 \\u79ef\\u5e74 \\u79ef\\u5584 \\u79ef\\u98df \\u79ef\\u6570 \\u79ef\\u6c34 \\u79ef\\u4e91 \\u79ef\\u6512 \\u7284\\u89d2 \\u7f09\\u62ff \\u7578\\u53d8 \\u7578\\u96f6 \\u8dfb\\u8eab \\u7a3d\\u6838 \\u7a3d\\u5f81 \\u6fc0\\u53d8 \\u6fc0\\u6ce2 \\u6fc0\\u52a8 \\u6fc0\\u53d1 \\u6fc0\\u5149 \\u6fc0\\u6d3b \\u6fc0\\u8fdb \\u6fc0\\u6d6a \\u6fc0\\u7075 \\u6fc0\\u8d77 \\u6fc0\\u60c5 \\u6fc0\\u7d20 \\u6fc0\\u626c \\u6fc0\\u589e \\u6fc0\\u5b50 \\u53ca\\u683c \\u53ca\\u65f6 \\u53ca\\u65e9 \\u5409\\u5229 \\u5409\\u5217 \\u5409\\u671f \\u5409\\u5e86 \\u5409\\u65e5 \\u5409\\u661f \\u5409\\u8a00 \\u7ea7\\u522b \\u7ea7\\u5dee \\u7ea7\\u6570 \\u6781\\u5927 \\u6781\\u5730 \\u6781\\u5ea6 \\u6781\\u5149 \\u6781\\u4e50 \\u6781\\u529b \\u6781\\u76ee \\u6781\\u54c1 \\u6781\\u5708 \\u6781\\u76db \\u6781\\u4e3a \\u6781\\u5c0f \\u6781\\u6027 \\u6781\\u591c \\u6781\\u610f \\u6781\\u663c \\u5373\\u4fbf \\u5373\\u5c06 \\u5373\\u523b \\u5373\\u671f \\u5373\\u65e5 \\u5373\\u5982 \\u5373\\u65f6 \\u6025\\u53d8 \\u6025\\u6b65 \\u6025\\u7535 \\u6025\\u8fdb \\u6025\\u8feb \\u6025\\u4e8b \\u6025\\u901f \\u6025\\u6027 \\u6025\\u8981 \\u6025\\u7528 \\u6025\\u667a \\u75be\\u6b65 \\u75be\\u98ce \\u75be\\u547c \\u75be\\u82e6 \\u75be\\u901f \\u75be\\u8d70 \\u68d8\\u523a \\u68d8\\u624b \\u96c6\\u5b89 \\u96c6\\u90e8 \\u96c6\\u6210 \\u96c6\\u5408 \\u96c6\\u4f1a \\u96c6\\u9526 \\u96c6\\u5c45 \\u96c6\\u805a \\u96c6\\u520a \\u96c6\\u7eb3 \\u96c6\\u7fa4 \\u96c6\\u65e5 \\u96c6\\u6563 \\u96c6\\u5e02 \\u96c6\\u675f \\u96c6\\u56e2 \\u96c6\\u90ae \\u96c6\\u8fd0 \\u96c6\\u9547 \\u96c6\\u4e2d \\u96c6\\u5b50 \\u8f91\\u8981 \\u7620\\u7626 \\u5df1\\u65b9 \\u5df1\\u89c1 \\u6324\\u51fa \\u6324\\u5bf9 \\u6324\\u8f67 \\u810a\\u80cc \\u810a\\u9aa8 \\u810a\\u7d22 \\u810a\\u690e \\u8ba1\\u91cf \\u8bb0\\u5de5 \\u8bb0\\u529f \\u8bb0\\u8fc7 \\u8bb0\\u540d \\u8bb0\\u4e8b \\u8bb0\\u6027 \\u8bb0\\u8981 \\u7eaa\\u68c0 \\u7eaa\\u5e74 \\u7eaa\\u5ff5 \\u7eaa\\u5b9e \\u7eaa\\u4e8b \\u7eaa\\u8981 \\u7eaa\\u5143 \\u6280\\u6cd5 \\u6280\\u5de5 \\u6280\\u51fb \\u6280\\u80fd \\u6280\\u5e08 \\u5fcc\\u523b \\u5fcc\\u53e3 \\u5fcc\\u65e5 \\u9645\\u4f1a \\u5993\\u5973 \\u5b63\\u51ac \\u5b63\\u5ea6 \\u5b63\\u98ce \\u5b63\\u519b \\u5b63\\u520a \\u5242\\u5b50 \\u6d4e\\u8d2b \\u6d4e\\u4e8b \\u65e2\\u5b9a \\u7ee7\\u6bcd \\u7ee7\\u914d \\u7ee7\\u5ba4 \\u7ee7\\u5b50 \\u796d\\u54c1 \\u5180\\u671b \\u5180\\u5dde \\u52a0\\u73ed \\u52a0\\u500d \\u52a0\\u9910 \\u52a0\\u6cd5 \\u52a0\\u5c01 \\u52a0\\u5de5 \\u52a0\\u5b98 \\u52a0\\u6025 \\u52a0\\u7d27 \\u52a0\\u52b2 \\u52a0\\u5f3a \\u52a0\\u70ed \\u52a0\\u6df1 \\u52a0\\u6570 \\u52a0\\u901f \\u52a0\\u4ee5 \\u52a0\\u610f \\u52a0\\u6cb9 \\u52a0\\u91cd \\u4f73\\u53e5 \\u4f73\\u7f8e \\u4f73\\u54c1 \\u4f73\\u671f \\u4f73\\u4eba \\u4f73\\u97f3 \\u4f73\\u4f5c \\u631f\\u5e26 \\u631f\\u5acc \\u67b7\\u9501 \\u5bb6\\u8d22 \\u5bb6\\u4ea7 \\u5bb6\\u4e11 \\u5bb6\\u4f20 \\u5bb6\\u9053 \\u5bb6\\u7535 \\u5bb6\\u6cd5 \\u5bb6\\u98ce \\u5bb6\\u89c4 \\u5bb6\\u8ba1 \\u5bb6\\u5bb6 \\u5bb6\\u6559 \\u5bb6\\u5c45 \\u5bb6\\u5177 \\u5bb6\\u53e3 \\u5bb6\\u91cc \\u5bb6\\u95e8 \\u5bb6\\u6bcd \\u5bb6\\u4eba \\u5bb6\\u4ec0 \\u5bb6\\u4e8b \\u5bb6\\u5ba4 \\u5bb6\\u5c5e \\u5bb6\\u5ead \\u5bb6\\u5154 \\u5bb6\\u7cfb \\u5bb6\\u4e61 \\u5bb6\\u5c0f \\u5bb6\\u4fe1 \\u5bb6\\u5144 \\u5bb6\\u5b66 \\u5bb6\\u517b \\u5bb6\\u8747 \\u5bb6\\u7528 \\u5bb6\\u5b50 \\u5609\\u5e86 \\u5609\\u5584 \\u5609\\u9c7c \\u5939\\u5e26 \\u5939\\u9053 \\u5939\\u653b \\u5939\\u51fb \\u5939\\u526a \\u5939\\u89d2 \\u5939\\u7d27 \\u5939\\u5177 \\u5939\\u751f \\u5939\\u5fc3 \\u5939\\u6742 \\u835a\\u679c \\u7532\\u9c7c \\u7532\\u5b50 \\u5cac\\u89d2 \\u94be\\u80a5 \\u5047\\u9762 \\u5047\\u8a00 \\u4ef7\\u683c \\u4ef7\\u76ee \\u9a7e\\u4e34 \\u67b6\\u6b21 \\u67b6\\u7a7a \\u67b6\\u52bf \\u5ac1\\u7978 \\u5ac1\\u4eba \\u5c16\\u5175 \\u5c16\\u5200 \\u5c16\\u523b \\u5c16\\u5389 \\u5c16\\u5229 \\u5c16\\u5934 \\u5c16\\u524a \\u5978\\u8ba1 \\u5978\\u60c5 \\u5978\\u4eba \\u5978\\u5546 \\u5978\\u5f92 \\u5978\\u90aa \\u5978\\u96c4 \\u5978\\u6deb \\u5978\\u8bc8 \\u6b7c\\u51fb \\u6b7c\\u706d \\u575a\\u5b9a \\u575a\\u679c \\u575a\\u5f3a \\u575a\\u5b9e \\u575a\\u5b88 \\u575a\\u633a \\u575a\\u4fe1 \\u575a\\u8d1e \\u80a9\\u80cc \\u80a9\\u90e8 \\u80a9\\u8180 \\u80a9\\u5934 \\u8270\\u82e6 \\u8270\\u6df1 \\u8270\\u5371 \\u76d1\\u5bdf \\u76d1\\u72af \\u76d1\\u5de5 \\u76d1\\u7ba1 \\u76d1\\u89c4 \\u76d1\\u62a4 \\u76d1\\u4e8b \\u76d1\\u5b88 \\u76d1\\u542c \\u517c\\u5e76 \\u517c\\u987e \\u517c\\u65bd \\u517c\\u8425 \\u7f04\\u53e3 \\u714e\\u997c \\u62e3\\u62e9 \\u4fed\\u6734 \\u4fed\\u7701 \\u6361\\u62fe \\u8dbc\\u5b50 \\u51cf\\u534a \\u51cf\\u606f \\u526a\\u5207 \\u7b80\\u672c \\u7b80\\u4fbf \\u7b80\\u79f0 \\u7b80\\u5355 \\u7b80\\u77ed \\u7b80\\u53e4 \\u7b80\\u6d01 \\u7b80\\u4ecb \\u7b80\\u5386 \\u7b80\\u660e \\u7b80\\u7701 \\u7b80\\u7f29 \\u7b80\\u8981 \\u7b80\\u76f4 \\u7b80\\u88c5 \\u78b1\\u5730 \\u78b1\\u8352 \\u78b1\\u571f \\u78b1\\u6027 \\u89c1\\u5730 \\u89c1\\u65b9 \\u89c1\\u9b3c \\u89c1\\u597d \\u89c1\\u673a \\u89c1\\u6559 \\u89c1\\u89e3 \\u89c1\\u8001 \\u89c1\\u793c \\u89c1\\u9762 \\u89c1\\u8bc6 \\u89c1\\u5929 \\u89c1\\u5916 \\u89c1\\u6548 \\u89c1\\u65b0 \\u89c1\\u7f6a \\u996f\\u522b \\u5efa\\u5b89 \\u5efa\\u6750 \\u5efa\\u5fb7 \\u5efa\\u90fd \\u5efa\\u56fd \\u5efa\\u884c \\u5efa\\u4ea4 \\u5efa\\u519b \\u5efa\\u7acb \\u5efa\\u6811 \\u5efa\\u8bae \\u5efa\\u5143 \\u8350\\u4e3e \\u8350\\u690e \\u8d31\\u5356 \\u8d31\\u6c11 \\u8d31\\u5185 \\u5065\\u6b65 \\u5065\\u513f \\u5065\\u7f8e \\u5065\\u5168 \\u5065\\u8eab \\u5065\\u5728 \\u8230\\u961f \\u8171\\u5b50 \\u6e85\\u5c04 \\u9274\\u522b \\u9274\\u5b9a \\u9274\\u8bc6 \\u8e3a\\u5b50 \\u7bad\\u6b65 \\u7bad\\u5934 \\u7bad\\u732a \\u6c5f\\u5317 \\u6c5f\\u5ddd \\u6c5f\\u4e1c \\u6c5f\\u90fd \\u6c5f\\u9632 \\u6c5f\\u5e72 \\u6c5f\\u6cb3 \\u6c5f\\u6e56 \\u6c5f\\u53e3 \\u6c5f\\u8f6e \\u6c5f\\u95e8 \\u6c5f\\u7c73 \\u6c5f\\u5357 \\u6c5f\\u5c71 \\u6c5f\\u6c34 \\u6c5f\\u5929 \\u6c5f\\u897f \\u6c5f\\u5fc3 \\u6c5f\\u9634 \\u5c06\\u624d \\u5c06\\u6b21 \\u5c06\\u519b \\u5c06\\u6765 \\u5c06\\u606f \\u5c06\\u517b \\u5c06\\u8981 \\u59dc\\u997c \\u59dc\\u9ec4 \\u8c47\\u8c46 \\u6d46\\u679c \\u50f5\\u5c40 \\u50f5\\u51b7 \\u50f5\\u5c38 \\u50f5\\u6b7b \\u50f5\\u76f4 \\u7f30\\u7ef3 \\u7586\\u571f \\u8bb2\\u9053 \\u8bb2\\u6cd5 \\u8bb2\\u53e4 \\u8bb2\\u548c \\u8bb2\\u89e3 \\u8bb2\\u8bc4 \\u8bb2\\u60c5 \\u8bb2\\u5e08 \\u8bb2\\u5b66 \\u8bb2\\u4e49 \\u5956\\u676f \\u5956\\u91d1 \\u5956\\u54c1 \\u6868\\u53f6 \\u5320\\u6c14 \\u5320\\u4eba \\u5320\\u5fc3 \\u964d\\u4f4e \\u964d\\u683c \\u964d\\u89e3 \\u964d\\u4e34 \\u964d\\u6c14 \\u964d\\u751f \\u964d\\u6c34 \\u964d\\u4e0b \\u964d\\u9999 \\u964d\\u96e8 \\u9171\\u8272 \\u9171\\u6cb9 \\u729f\\u52b2 \\u7ce8\\u5b50 \\u4ea4\\u73ed \\u4ea4\\u4fdd \\u4ea4\\u676f \\u4ea4\\u5175 \\u4ea4\\u5e76 \\u4ea4\\u9519 \\u4ea4\\u9053 \\u4ea4\\u53e0 \\u4ea4\\u950b \\u4ea4\\u7ed9 \\u4ea4\\u5de5 \\u4ea4\\u516c \\u4ea4\\u5173 \\u4ea4\\u8fd8 \\u4ea4\\u597d \\u4ea4\\u4e92 \\u4ea4\\u6c47 \\u4ea4\\u4f1a \\u4ea4\\u8d27 \\u4ea4\\u52a0 \\u4ea4\\u89d2 \\u4ea4\\u8b66 \\u4ea4\\u5377 \\u4ea4\\u53e3 \\u4ea4\\u6b3e \\u4ea4\\u56f0 \\u4ea4\\u7eb3 \\u4ea4\\u914d \\u4ea4\\u8feb \\u4ea4\\u60c5 \\u4ea4\\u624b \\u4ea4\\u7a0e \\u4ea4\\u66ff \\u4ea4\\u901a \\u4ea4\\u54cd \\u4ea4\\u5fc3 \\u4ea4\\u6e38 \\u4ea4\\u6742 \\u90ca\\u5916 \\u90ca\\u53bf \\u90ca\\u91ce \\u90ca\\u6e38 \\u832d\\u767d \\u6d47\\u6d12 \\u6d47\\u6c34 \\u5a07\\u513f \\u5a07\\u597d \\u5a07\\u7f8e \\u5a07\\u6c14 \\u5a07\\u58f0 \\u5a07\\u5c0f \\u5a07\\u517b \\u59e3\\u597d \\u59e3\\u7f8e \\u9a84\\u50b2 \\u9a84\\u6c14 \\u9a84\\u4eba \\u9a84\\u5b50 \\u80f6\\u5e26 \\u80f6\\u5408 \\u80f6\\u8f6e \\u80f6\\u6728 \\u80f6\\u56ca \\u80f6\\u7247 \\u80f6\\u4e73 \\u80f6\\u6c34 \\u80f6\\u5b50 \\u86df\\u9f99 \\u7126\\u6bd4 \\u7126\\u9ec4 \\u7126\\u6025 \\u7126\\u96f7 \\u7126\\u7164 \\u7126\\u7cd6 \\u7126\\u571f \\u7126\\u5fc3 \\u7126\\u6cb9 \\u8549\\u519c \\u56bc\\u5b50 \\u89d2\\u5ea6 \\u89d2\\u95e8 \\u89d2\\u94c1 \\u89d2\\u5b50 \\u72e1\\u8ba1 \\u72e1\\u8bc8 \\u7ede\\u5200 \\u7ede\\u6740 \\u7ede\\u624b \\u7ede\\u6b7b \\u7ede\\u7d22 \\u7ede\\u75db \\u6405\\u62cc \\u6405\\u52a8 \\u6405\\u5c40 \\u6405\\u4e71 \\u527f\\u9664 \\u527f\\u706d \\u7f34\\u7eb3 \\u7f34\\u7a0e \\u7f34\\u9500 \\u53eb\\u6625 \\u53eb\\u597d \\u53eb\\u9b42 \\u53eb\\u52b2 \\u53eb\\u82e6 \\u53eb\\u5356 \\u53eb\\u95e8 \\u53eb\\u540d \\u53eb\\u5c48 \\u89c9\\u5bdf \\u8f83\\u6bd4 \\u8f83\\u5dee \\u8f83\\u5927 \\u8f83\\u597d \\u8f83\\u52b2 \\u8f83\\u4e3a \\u8f83\\u771f \\u6559\\u6cd5 \\u6559\\u6c11 \\u7a96\\u85cf \\u9175\\u6bcd \\u9175\\u7d20 \\u9636\\u5730 \\u9636\\u6bb5 \\u7596\\u5b50 \\u63a5\\u53e3 \\u63a5\\u9f99 \\u63ed\\u7a7f \\u63ed\\u77ed \\u63ed\\u53d1 \\u63ed\\u63ed \\u63ed\\u5f00 \\u63ed\\u7834 \\u63ed\\u6653 \\u8857\\u9053 \\u8857\\u53e3 \\u8857\\u95e8 \\u8857\\u9762 \\u8857\\u4e0a \\u8857\\u5e02 \\u8857\\u5934 \\u8857\\u5df7 \\u8857\\u5fc3 \\u8857\\u5b50 \\u5b51\\u9057 \\u8282\\u54c0 \\u8282\\u672c \\u8282\\u64cd \\u8282\\u95f4 \\u8282\\u76ee \\u8282\\u80fd \\u8282\\u62cd \\u8282\\u7247 \\u8282\\u6c14 \\u8282\\u5e86 \\u8282\\u65e5 \\u8282\\u7701 \\u8282\\u98df \\u8282\\u6c34 \\u8282\\u4e0b \\u8282\\u7528 \\u8282\\u6cb9 \\u8282\\u4f59 \\u8282\\u652f \\u8282\\u594f \\u52ab\\u9053 \\u52ab\\u673a \\u52ab\\u6570 \\u6770\\u51fa \\u6770\\u4f5c \\u6d01\\u767d \\u6d01\\u8eab \\u7ed3\\u80a0 \\u7ed3\\u6210 \\u7ed3\\u961f \\u7ed3\\u679c \\u7ed3\\u5408 \\u7ed3\\u6838 \\u7ed3\\u5589 \\u7ed3\\u6c47 \\u7ed3\\u4ea4 \\u7ed3\\u5c40 \\u7ed3\\u8bba \\u7ed3\\u4eb2 \\u7ed3\\u6e05 \\u7ed3\\u793e \\u7ed3\\u8bc6 \\u7ed3\\u675f \\u7ed3\\u7b97 \\u7ed3\\u4e49 \\u7ed3\\u4f59 \\u7ed3\\u8bed \\u7ed3\\u624e \\u7ed3\\u5b50 \\u776b\\u6bdb \\u622a\\u65ad \\u622a\\u51fb \\u622a\\u9762 \\u622a\\u6b62 \\u7aed\\u529b \\u7faf\\u9f13 \\u7faf\\u7f8a \\u89e3\\u9664 \\u89e3\\u997f \\u89e3\\u653e \\u89e3\\u7532 \\u89e3\\u5f00 \\u89e3\\u56f0 \\u89e3\\u79bb \\u89e3\\u56ca \\u89e3\\u5256 \\u89e3\\u6c14 \\u89e3\\u529d \\u89e3\\u70ed \\u89e3\\u6563 \\u89e3\\u624b \\u89e3\\u8c03 \\u89e3\\u8131 \\u89e3\\u5438 \\u89e3\\u7591 \\u4ecb\\u8bcd \\u4ecb\\u6000 \\u4ecb\\u610f \\u4ecb\\u97f3 \\u4ecb\\u5b50 \\u6212\\u9664 \\u6212\\u5200 \\u6212\\u89c4 \\u6212\\u5fc3 \\u6212\\u70df \\u82a5\\u672b \\u82a5\\u5b50 \\u5c4a\\u671f \\u5c4a\\u65f6 \\u754c\\u7891 \\u754c\\u6807 \\u754c\\u5b9a \\u754c\\u6cb3 \\u754c\\u9762 \\u754c\\u9996 \\u501f\\u8bcd \\u501f\\u65b9 \\u501f\\u6545 \\u501f\\u5149 \\u501f\\u53e3 \\u501f\\u6b3e \\u501f\\u52bf \\u501f\\u5bbf \\u501f\\u4ee5 \\u501f\\u7528 \\u501f\\u652f \\u501f\\u91cd \\u501f\\u52a9 \\u65a4\\u6597 \\u65a4\\u4e24 \\u4eca\\u671d \\u4eca\\u513f \\u4eca\\u756a \\u4eca\\u5e74 \\u4eca\\u4eba \\u4eca\\u65e5 \\u4eca\\u751f \\u4eca\\u5c81 \\u4eca\\u5929 \\u4eca\\u6587 \\u4eca\\u97f3 \\u91d1\\u7b14 \\u91d1\\u4e39 \\u91d1\\u521a \\u91d1\\u5de5 \\u91d1\\u74dc \\u91d1\\u5149 \\u91d1\\u9f9f \\u91d1\\u6842 \\u91d1\\u82b1 \\u91d1\\u9ec4 \\u91d1\\u83b2 \\u91d1\\u9a6c \\u91d1\\u95e8 \\u91d1\\u5668 \\u91d1\\u8272 \\u91d1\\u6c99 \\u91d1\\u5c71 \\u91d1\\u5c5e \\u91d1\\u6c34 \\u91d1\\u6c64 \\u91d1\\u6587 \\u91d1\\u661f \\u91d1\\u8a00 \\u91d1\\u53f6 \\u91d1\\u94f6 \\u91d1\\u9c7c \\u91d1\\u5143 \\u91d1\\u9488 \\u91d1\\u73e0 \\u91d1\\u5b57 \\u6d25\\u5e02 \\u6d25\\u8981 \\u7b4b\\u9053 \\u7b4b\\u6597 \\u7b4b\\u9aa8 \\u7b4b\\u8109 \\u7b4b\\u8089 \\u895f\\u6000 \\u4ec5\\u89c1 \\u7d27\\u95ed \\u7d27\\u8ddf \\u7d27\\u6025 \\u7d27\\u7d27 \\u7d27\\u8feb \\u7d27\\u8eab \\u7d27\\u7f29 \\u7d27\\u9501 \\u7d27\\u63e1 \\u7d27\\u8981 \\u7d27\\u5f20 \\u9526\\u6807 \\u9526\\u6c5f \\u9526\\u7eb6 \\u9526\\u5c4f \\u9526\\u5dde \\u8c28\\u9632 \\u5c3d\\u529b \\u5c3d\\u60c5 \\u5c3d\\u6570 \\u5c3d\\u901f \\u5c3d\\u5934 \\u5c3d\\u5fc3 \\u5c3d\\u65e9 \\u8fdb\\u5175 \\u8fdb\\u6b65 \\u8fdb\\u9910 \\u8fdb\\u5448 \\u8fdb\\u51fa \\u8fdb\\u5ea6 \\u8fdb\\u53d1 \\u8fdb\\u72af \\u8fdb\\u5949 \\u8fdb\\u653b \\u8fdb\\u8d21 \\u8fdb\\u8d27 \\u8fdb\\u51fb \\u8fdb\\u89c1 \\u8fdb\\u527f \\u8fdb\\u519b \\u8fdb\\u53e3 \\u8fdb\\u6b3e \\u8fdb\\u6765 \\u8fdb\\u95e8 \\u8fdb\\u6df1 \\u8fdb\\u98df \\u8fd1\\u4fbf \\u8fd1\\u9053 \\u8fd1\\u4e1c \\u8fd1\\u53e4 \\u8fd1\\u6d77 \\u8fd1\\u6765 \\u8fd1\\u5e74 \\u8fd1\\u65c1 \\u8fd1\\u671f \\u8fd1\\u524d \\u8fd1\\u4eb2 \\u8fd1\\u60c5 \\u8fd1\\u4eba \\u8fd1\\u65e5 \\u8fd1\\u4f3c \\u8fd1\\u6d0b \\u8fd1\\u56e0 \\u8fd1\\u5f71 \\u8fd1\\u6708 \\u8fd1\\u7167 \\u5997\\u5b50 \\u52b2\\u5934 \\u664b\\u89c1 \\u6d78\\u6c89 \\u6d78\\u51fa \\u6d78\\u6da6 \\u6d78\\u6c34 \\u6d78\\u900f \\u6d78\\u79cd \\u7981\\u53d7 \\u7981\\u7528 \\u7f19\\u4e91 \\u89d0\\u89c1 \\u5664\\u58f0 \\u4eac\\u767d \\u4eac\\u90fd \\u4eac\\u5b98 \\u4eac\\u80e1 \\u4eac\\u95e8 \\u4eac\\u8154 \\u4eac\\u5e08 \\u6cfe\\u5ddd \\u7ecf\\u90e8 \\u7ecf\\u5ea6 \\u7ecf\\u8d39 \\u7ecf\\u7ba1 \\u7ecf\\u8fc7 \\u7ecf\\u7eaa \\u7ecf\\u5377 \\u7ecf\\u5386 \\u7ecf\\u7eb6 \\u7ecf\\u8109 \\u7ecf\\u5e74 \\u7ecf\\u671f \\u7ecf\\u5546 \\u7ecf\\u624b \\u7ecf\\u53d7 \\u7ecf\\u75db \\u7ecf\\u6587 \\u7ecf\\u9500 \\u7ecf\\u5fc3 \\u7ecf\\u5b66 \\u7ecf\\u9a8c \\u7ecf\\u610f \\u7ecf\\u8425 \\u8346\\u68d8 \\u8346\\u82a5 \\u8346\\u95e8 \\u8346\\u5dde \\u60ca\\u98ce \\u60ca\\u547c \\u60ca\\u5fc3 \\u6676\\u683c \\u8148\\u7eb6 \\u7cb3\\u7c73 \\u7cbe\\u767d \\u7cbe\\u5175 \\u7cbe\\u5ea6 \\u7cbe\\u5de5 \\u7cbe\\u5149 \\u7cbe\\u9b42 \\u7cbe\\u7b80 \\u7cbe\\u8fdb \\u7cbe\\u529b \\u7cbe\\u7075 \\u7cbe\\u7f8e \\u7cbe\\u660e \\u7cbe\\u54c1 \\u7cbe\\u6c14 \\u7cbe\\u8089 \\u7cbe\\u6df1 \\u7cbe\\u795e \\u7cbe\\u7626 \\u7cbe\\u901a \\u7cbe\\u5fae \\u7cbe\\u5fc3 \\u7cbe\\u8981 \\u7cbe\\u6cb9 \\u7cbe\\u6e5b \\u7cbe\\u88c5 \\u7cbe\\u5b50 \\u9cb8\\u541e \\u9cb8\\u9c7c \\u4e95\\u5f84 \\u4e95\\u53e3 \\u4e95\\u55b7 \\u4e95\\u7ef3 \\u9888\\u690e \\u9888\\u5b50 \\u666f\\u6559 \\u666f\\u6c14 \\u666f\\u8272 \\u666f\\u6df1 \\u666f\\u5929 \\u666f\\u4ef0 \\u8b66\\u5bdf \\u8b66\\u5b98 \\u8b66\\u53e5 \\u8b66\\u79cd \\u5f84\\u8d5b \\u5f84\\u5ead \\u5f84\\u5411 \\u5f84\\u76f4 \\u5f84\\u81ea \\u51c0\\u9ad8 \\u51c0\\u7a7a \\u51c0\\u53e3 \\u51c0\\u5229 \\u51c0\\u8eab \\u51c0\\u5ba4 \\u51c0\\u624b \\u51c0\\u6c34 \\u51c0\\u571f \\u51c0\\u4f59 \\u51c0\\u91cd \\u80eb\\u9aa8 \\u7ade\\u8d5b \\u7ade\\u8d70 \\u656c\\u7231 \\u656c\\u8f9e \\u656c\\u5949 \\u656c\\u8d3a \\u656c\\u8001 \\u656c\\u793c \\u656c\\u6155 \\u656c\\u732e \\u656c\\u9999 \\u656c\\u4ef0 \\u656c\\u610f \\u656c\\u8bed \\u656c\\u91cd \\u9759\\u5b89 \\u9759\\u7535 \\u9759\\u4e50 \\u9759\\u8109 \\u9759\\u7a46 \\u9759\\u5ba4 \\u9759\\u542c \\u9759\\u5fc3 \\u9759\\u517b \\u9759\\u6b62 \\u9759\\u5750 \\u5883\\u5730 \\u955c\\u7247 \\u955c\\u5934 \\u7a98\\u56f0 \\u7a98\\u8feb \\u62d8\\u4f20 \\u62d8\\u7ba1 \\u62d8\\u8c28 \\u62d8\\u793c \\u62d8\\u62ff \\u62d8\\u675f \\u62d8\\u5f79 \\u62d8\\u6267 \\u72d9\\u51fb \\u5c45\\u591a \\u5c45\\u529f \\u5c45\\u5b98 \\u5c45\\u79ef \\u5c45\\u5bb6 \\u5c45\\u95f4 \\u5c45\\u91cc \\u5c45\\u6c11 \\u5c45\\u5947 \\u5c45\\u4e27 \\u5c45\\u5ba4 \\u5c45\\u5fc3 \\u5c45\\u4e2d \\u97a0\\u8eac \\u97a0\\u517b \\u5c40\\u90e8 \\u5c40\\u5ea6 \\u5c40\\u9762 \\u5c40\\u52bf \\u5c40\\u5916 \\u5c40\\u5b50 \\u6854\\u6897 \\u6a58\\u7ea2 \\u6a58\\u9ec4 \\u6a58\\u6811 \\u4e3e\\u54c0 \\u4e3e\\u5175 \\u4e3e\\u6b65 \\u4e3e\\u52a8 \\u4e3e\\u53d1 \\u4e3e\\u56fd \\u4e3e\\u5bb6 \\u4e3e\\u501f \\u4e3e\\u4f8b \\u4e3e\\u76ee \\u4e3e\\u4eba \\u4e3e\\u4e8b \\u4e3e\\u8981 \\u4e3e\\u6b62 \\u4e3e\\u91cd \\u5de8\\u53d8 \\u5de8\\u5927 \\u5de8\\u5bcc \\u5de8\\u6b3e \\u5de8\\u8f6e \\u5de8\\u4eba \\u5de8\\u5546 \\u5de8\\u5934 \\u5de8\\u54cd \\u5de8\\u661f \\u5de8\\u91ce \\u5de8\\u5b50 \\u53e5\\u6cd5 \\u62d2\\u6536 \\u5177\\u4fdd \\u5177\\u540d \\u5177\\u4f53 \\u5177\\u6587 \\u5177\\u6709 \\u4ff1\\u5168 \\u5028\\u50b2 \\u5267\\u672c \\u5267\\u53d8 \\u5267\\u76ee \\u5267\\u8bc4 \\u5267\\u60c5 \\u5267\\u793e \\u5267\\u75db \\u5267\\u56e2 \\u5267\\u9662 \\u5267\\u589e \\u5267\\u7167 \\u5267\\u79cd \\u5267\\u4f5c \\u98d3\\u98ce \\u952f\\u9f7f \\u952f\\u672b \\u952f\\u5b50 \\u805a\\u53d8 \\u805a\\u8d22 \\u805a\\u9910 \\u805a\\u5149 \\u805a\\u5408 \\u805a\\u4f1a \\u805a\\u79ef \\u805a\\u5c45 \\u805a\\u655b \\u805a\\u6563 \\u805a\\u9996 \\u805a\\u5934 \\u805a\\u661f \\u805a\\u4f17 \\u6350\\u6b3e \\u6350\\u8eaf \\u6350\\u7a0e \\u6350\\u732e \\u6350\\u52a9 \\u6d93\\u6ef4 \\u954c\\u523b \\u954c\\u9542 \\u5377\\u67cf \\u5377\\u6b21 \\u5377\\u4e39 \\u5377\\u9762 \\u5377\\u5934 \\u5377\\u53f6 \\u5377\\u8f74 \\u5026\\u8272 \\u5026\\u610f \\u7ee2\\u672c \\u7ee2\\u82b1 \\u7ee2\\u5b50 \\u51b3\\u4e0d \\u51b3\\u5b9a \\u51b3\\u65ad \\u51b3\\u8ba1 \\u51b3\\u53e3 \\u51b3\\u88c2 \\u51b3\\u8d5b \\u51b3\\u80dc \\u51b3\\u7b97 \\u51b3\\u5fc3 \\u51b3\\u8bae \\u51b3\\u610f \\u8bc0\\u522b \\u6289\\u62e9 \\u6289\\u6458 \\u7edd\\u7b14 \\u7edd\\u5531 \\u7edd\\u5012 \\u7edd\\u5730 \\u7edd\\u5bf9 \\u7edd\\u975e \\u7edd\\u4ea4 \\u7edd\\u7ecf \\u7edd\\u53e3 \\u7edd\\u706d \\u7edd\\u54c1 \\u7edd\\u60c5 \\u7edd\\u8272 \\u7edd\\u98df \\u7edd\\u671b \\u7edd\\u54cd \\u7edd\\u5b66 \\u7edd\\u79cd \\u8c32\\u8bc8 \\u6a5b\\u5b50 \\u9562\\u5934 \\u7235\\u58eb \\u8e76\\u5b50 \\u519b\\u90e8 \\u519b\\u5200 \\u519b\\u961f \\u519b\\u6cd5 \\u519b\\u8d39 \\u519b\\u98ce \\u519b\\u6b4c \\u519b\\u5de5 \\u519b\\u529f \\u519b\\u5b98 \\u519b\\u7ba1 \\u519b\\u89c4 \\u519b\\u5fbd \\u519b\\u673a \\u519b\\u7eaa \\u519b\\u8b66 \\u519b\\u793c \\u519b\\u529b \\u519b\\u5217 \\u519b\\u65c5 \\u519b\\u9a6c \\u519b\\u6c11 \\u519b\\u68cb \\u519b\\u60c5 \\u519b\\u4eba \\u519b\\u5e08 \\u519b\\u4e8b \\u519b\\u5c5e \\u519b\\u56e2 \\u519b\\u5a01 \\u519b\\u6821 \\u519b\\u5fc3 \\u519b\\u8425 \\u519b\\u7528 \\u519b\\u90ae \\u519b\\u63f4 \\u519b\\u79cd \\u519b\\u88c5 \\u5747\\u5dee \\u5747\\u70ed \\u5747\\u52bf \\u5747\\u4e00 \\u5747\\u5300 \\u541b\\u4e34 \\u541b\\u738b \\u541b\\u4e3b \\u541b\\u5b50 \\u4fca\\u7f8e \\u4fca\\u96c5 \\u90e1\\u5b88 \\u90e1\\u738b \\u90e1\\u53bf \\u90e1\\u4e3b \\u5cfb\\u62d4 \\u9a8f\\u9a6c \\u7ae3\\u5de5 \\u5580\\u4ec0 \\u5361\\u5177 \\u5f00\\u62d4 \\u5f00\\u73ed \\u5f00\\u672c \\u5f00\\u7b14 \\u5f00\\u95ed \\u5f00\\u6807 \\u5f00\\u6b65 \\u5f00\\u79e4 \\u5f00\\u521d \\u5f00\\u9664 \\u5f00\\u6625 \\u5f00\\u6253 \\u5f00\\u5200 \\u5f00\\u9053 \\u5f00\\u51ac \\u5f00\\u52a8 \\u5f00\\u6069 \\u5f00\\u53d1 \\u5f00\\u65b9 \\u5f00\\u653e \\u5f00\\u5c01 \\u5f00\\u5de5 \\u5f00\\u5173 \\u5f00\\u5149 \\u5f00\\u56fd \\u5f00\\u822a \\u5f00\\u6cb3 \\u5f00\\u82b1 \\u5f00\\u6000 \\u5f00\\u8352 \\u5f00\\u4f1a \\u5f00\\u673a \\u5f00\\u95f4 \\u5f00\\u6c5f \\u5f00\\u89e3 \\u5f00\\u91d1 \\u5f00\\u8fdb \\u5f00\\u5c40 \\u5f00\\u5177 \\u5f00\\u5377 \\u5f00\\u53e3 \\u5f00\\u5217 \\u5f00\\u88c2 \\u5f00\\u95e8 \\u5f00\\u660e \\u5f00\\u62cd \\u5f00\\u5c4f \\u5f00\\u8154 \\u5f00\\u8d5b \\u5f00\\u5c71 \\u5f00\\u5ba1 \\u5f00\\u5e02 \\u5f00\\u6c34 \\u5f00\\u5ead \\u5f00\\u901a \\u5f00\\u5934 \\u5f00\\u8131 \\u5f00\\u62d3 \\u5f00\\u5916 \\u5f00\\u5148 \\u5f00\\u9500 \\u5f00\\u5fc3 \\u5f00\\u5b66 \\u5f00\\u5143 \\u5f00\\u8fdc \\u5f00\\u51ff \\u5f00\\u5f20 \\u5f00\\u5f81 \\u5f00\\u652f \\u5f00\\u7f6a \\u63e9\\u6cb9 \\u51ef\\u6b4c \\u6977\\u6a21 \\u520a\\u672c \\u520a\\u53d1 \\u520a\\u5934 \\u6221\\u4e71 \\u574e\\u513f \\u574e\\u5b50 \\u780d\\u5200 \\u770b\\u6210 \\u770b\\u51fa \\u770b\\u7a7f \\u770b\\u8dcc \\u770b\\u6cd5 \\u770b\\u987e \\u770b\\u5b98 \\u770b\\u597d \\u770b\\u89c1 \\u770b\\u5f00 \\u770b\\u770b \\u770b\\u6765 \\u770b\\u7834 \\u770b\\u8f7b \\u770b\\u6e05 \\u770b\\u4e0a \\u770b\\u4f3c \\u770b\\u6b7b \\u770b\\u900f \\u770b\\u671b \\u770b\\u6da8 \\u770b\\u91cd \\u770b\\u4f5c \\u625b\\u6d3b \\u4ea2\\u8fdb \\u6297\\u66b4 \\u6297\\u6d2a \\u6297\\u51fb \\u6297\\u529b \\u6297\\u547d \\u6297\\u7a0e \\u6297\\u6027 \\u6297\\u8bae \\u7095\\u5934 \\u7095\\u6cbf \\u8003\\u5bdf \\u8003\\u53e4 \\u8003\\u5b98 \\u8003\\u6838 \\u8003\\u5377 \\u8003\\u91cf \\u8003\\u8bc4 \\u8003\\u671f \\u8003\\u751f \\u8003\\u8bd5 \\u8003\\u9a8c \\u8003\\u4e2d \\u62f7\\u6253 \\u70e4\\u7535 \\u70e4\\u8089 \\u70e4\\u9e2d \\u70e4\\u70df \\u9760\\u80cc \\u9760\\u5c71 \\u9760\\u6795 \\u82db\\u523b \\u79d1\\u73ed \\u79d1\\u7532 \\u79d1\\u6559 \\u79d1\\u4e3e \\u79d1\\u514b \\u79d1\\u76f2 \\u79d1\\u76ee \\u79d1\\u5ba4 \\u79d1\\u5b66 \\u79d1\\u7814 \\u68f5\\u5b50 \\u78d5\\u6253 \\u78d5\\u5934 \\u778c\\u7761 \\u58f3\\u5b50 \\u53ef\\u7231 \\u53ef\\u60b2 \\u53ef\\u9119 \\u53ef\\u53d8 \\u53ef\\u4e0d \\u53ef\\u5426 \\u53ef\\u597d \\u53ef\\u5609 \\u53ef\\u89c1 \\u53ef\\u53ef \\u53ef\\u53e3 \\u53ef\\u4e50 \\u53ef\\u80fd \\u53ef\\u9006 \\u53ef\\u6c14 \\u53ef\\u4eb2 \\u53ef\\u4eba \\u53ef\\u671b \\u53ef\\u559c \\u53ef\\u5fc3 \\u53ef\\u4fe1 \\u53ef\\u7591 \\u53ef\\u4ee5 \\u53ef\\u610f \\u53ef\\u618e \\u53ef\\u77e5 \\u6e34\\u6155 \\u6e34\\u5ff5 \\u6e34\\u671b \\u514b\\u5df1 \\u514b\\u6263 \\u514b\\u62c9 \\u514b\\u671f \\u514b\\u65e5 \\u514b\\u98df \\u514b\\u661f \\u523b\\u672c \\u523b\\u5200 \\u523b\\u5ea6 \\u523b\\u5de5 \\u523b\\u9aa8 \\u523b\\u753b \\u523b\\u82e6 \\u523b\\u4e0b \\u523b\\u610f \\u523b\\u5b57 \\u606a\\u5b88 \\u5ba2\\u961f \\u5ba2\\u5b98 \\u5ba2\\u8d27 \\u5ba2\\u673a \\u5ba2\\u5bb6 \\u5ba2\\u5c45 \\u5ba2\\u8f6e \\u5ba2\\u6c14 \\u5ba2\\u4eba \\u5ba2\\u5546 \\u5ba2\\u820d \\u5ba2\\u5ba4 \\u5ba2\\u6b7b \\u5ba2\\u571f \\u5ba2\\u661f \\u5ba2\\u8fd0 \\u8bfe\\u672c \\u8bfe\\u8868 \\u8bfe\\u95f4 \\u8bfe\\u5377 \\u8bfe\\u76ee \\u8bfe\\u65f6 \\u8bfe\\u5ba4 \\u8bfe\\u7a0e \\u8bfe\\u5916 \\u8bfe\\u6587 \\u8bfe\\u4f59 \\u9a92\\u9a6c \\u80af\\u5b9a \\u57a6\\u8352 \\u6073\\u8bf7 \\u6073\\u6258 \\u5751\\u9053 \\u5751\\u6728 \\u5751\\u4eba \\u7a7a\\u80a0 \\u7a7a\\u5f53 \\u7a7a\\u9632 \\u7a7a\\u8179 \\u7a7a\\u683c \\u7a7a\\u6000 \\u7a7a\\u95f4 \\u7a7a\\u964d \\u7a7a\\u519b \\u7a7a\\u7a7a \\u7a7a\\u53e3 \\u7a7a\\u5ed3 \\u7a7a\\u7075 \\u7a7a\\u8bba \\u7a7a\\u95e8 \\u7a7a\\u540d \\u7a7a\\u6c14 \\u7a7a\\u524d \\u7a7a\\u8154 \\u7a7a\\u8eab \\u7a7a\\u624b \\u7a7a\\u758f \\u7a7a\\u901f \\u7a7a\\u8c03 \\u7a7a\\u5934 \\u7a7a\\u6295 \\u7a7a\\u6587 \\u7a7a\\u5fc3 \\u7a7a\\u865a \\u7a7a\\u8a00 \\u7a7a\\u6709 \\u7a7a\\u8fd0 \\u7a7a\\u4e2d \\u5b54\\u9053 \\u5b54\\u6559 \\u5b54\\u5f84 \\u5b54\\u96c0 \\u5b54\\u5b50 \\u6050\\u9f99 \\u82a4\\u8109 \\u53e3\\u7891 \\u53e3\\u5317 \\u53e3\\u624d \\u53e3\\u79f0 \\u53e3\\u5403 \\u53e3\\u9f7f \\u53e3\\u4f20 \\u53e3\\u98ce \\u53e3\\u7ea2 \\u53e3\\u7d27 \\u53e3\\u5f84 \\u53e3\\u6c14 \\u53e3\\u5668 \\u53e3\\u8154 \\u53e3\\u8f7b \\u53e3\\u5b9e \\u53e3\\u8bd5 \\u53e3\\u6c34 \\u53e3\\u7b97 \\u53e3\\u5934 \\u53e3\\u5916 \\u53e3\\u4fe1 \\u53e3\\u97f3 \\u53e3\\u8bed \\u53e3\\u91cd \\u53e9\\u5173 \\u53e9\\u51fb \\u53e9\\u89c1 \\u53e9\\u95e8 \\u53e9\\u9996 \\u53e9\\u5934 \\u6263\\u9664 \\u6263\\u513f \\u6263\\u53d1 \\u6263\\u6740 \\u67af\\u8349 \\u67af\\u80a0 \\u67af\\u5e72 \\u67af\\u9aa8 \\u67af\\u9ec4 \\u67af\\u6728 \\u67af\\u7626 \\u67af\\u6811 \\u67af\\u6c34 \\u67af\\u53f6 \\u67af\\u5750 \\u54ed\\u7075 \\u54ed\\u6ce3 \\u54ed\\u7a77 \\u82e6\\u5de5 \\u82e6\\u529f \\u82e6\\u74dc \\u82e6\\u679c \\u82e6\\u6d77 \\u82e6\\u5bd2 \\u82e6\\u6d3b \\u82e6\\u53e3 \\u82e6\\u82e6 \\u82e6\\u529b \\u82e6\\u547d \\u82e6\\u60c5 \\u82e6\\u4e8b \\u82e6\\u6c34 \\u82e6\\u75db \\u82e6\\u5934 \\u82e6\\u76f8 \\u82e6\\u5fc3 \\u82e6\\u5b66 \\u82e6\\u5f79 \\u82e6\\u96e8 \\u82e6\\u4e3b \\u5e93\\u85cf \\u88e4\\u7ba1 \\u88e4\\u811a \\u88e4\\u5934 \\u9177\\u7231 \\u9177\\u5bd2 \\u9177\\u70ed \\u9177\\u4f3c \\u5938\\u5927 \\u5938\\u53e3 \\u5938\\u9970 \\u5938\\u8131 \\u5938\\u5f20 \\u4f89\\u5b50 \\u630e\\u6597 \\u80ef\\u9aa8 \\u80ef\\u5b50 \\u8de8\\u5ea6 \\u8de8\\u8fdb \\u5757\\u89c4 \\u5757\\u5934 \\u5feb\\u9910 \\u5feb\\u5f53 \\u5feb\\u653b \\u5feb\\u6d3b \\u5feb\\u4e50 \\u5feb\\u9a6c \\u5feb\\u95e8 \\u5feb\\u4e8b \\u5feb\\u624b \\u5feb\\u901f \\u5feb\\u4fe1 \\u5feb\\u8981 \\u5feb\\u610f \\u5feb\\u8bed \\u5feb\\u7167 \\u5bbd\\u7545 \\u5bbd\\u5927 \\u5bbd\\u5e26 \\u5bbd\\u5ea6 \\u5bbd\\u5e7f \\u5bbd\\u548c \\u5bbd\\u539a \\u5bbd\\u89e3 \\u5bbd\\u5fc3 \\u5bbd\\u8863 \\u5bbd\\u4f59 \\u9acb\\u9aa8 \\u6b3e\\u6b65 \\u6b3e\\u51ac \\u6b3e\\u6b3e \\u6b3e\\u5b50 \\u5321\\u7b97 \\u5321\\u6b63 \\u5321\\u52a9 \\u7b50\\u5b50 \\u72c2\\u50b2 \\u72c2\\u66b4 \\u72c2\\u8349 \\u72c2\\u8dcc \\u72c2\\u653e \\u72c2\\u98ce \\u72c2\\u547c \\u72c2\\u4e71 \\u72c2\\u6c14 \\u72c2\\u70ed \\u72c2\\u4eba \\u72c2\\u5984 \\u72c2\\u559c \\u72c2\\u8a00 \\u72c2\\u91ce \\u72c2\\u996e \\u8bf3\\u8bed \\u65f7\\u5de5 \\u65f7\\u53e4 \\u65f7\\u91ce \\u65f7\\u8fdc \\u51b5\\u4e14 \\u77ff\\u85cf \\u77ff\\u4ea7 \\u77ff\\u5de5 \\u77ff\\u8109 \\u77ff\\u5c71 \\u6846\\u56fe \\u4e8f\\u672c \\u4e8f\\u77ed \\u4e8f\\u7a7a \\u4e8f\\u5fc3 \\u76d4\\u5b50 \\u7aa5\\u5bdf \\u7aa5\\u89c1 \\u7aa5\\u4f3a \\u8475\\u82b1 \\u9b41\\u9996 \\u9b41\\u68a7 \\u9b41\\u661f \\u8770\\u86c7 \\u8dec\\u6b65 \\u9988\\u7535 \\u9988\\u9001 \\u6e83\\u8d25 \\u6e83\\u5175 \\u6e83\\u519b \\u6e83\\u4e71 \\u6e83\\u706d \\u6e83\\u6563 \\u6e83\\u9000 \\u6127\\u6c57 \\u6127\\u8272 \\u6127\\u75db \\u5764\\u8868 \\u6606\\u660e \\u6606\\u8154 \\u6606\\u5c71 \\u56f0\\u987f \\u56f0\\u82e6 \\u56f0\\u7a77 \\u56f0\\u4eba \\u56f0\\u5b88 \\u6269\\u5145 \\u6269\\u5927 \\u6269\\u519b \\u6269\\u6563 \\u6269\\u5f20 \\u9614\\u522b \\u9614\\u6b65 \\u9614\\u6c14 \\u9614\\u4eba \\u9614\\u91ce \\u5ed3\\u6e05 \\u62c9\\u5df4 \\u62c9\\u62d4 \\u62c9\\u626f \\u62c9\\u5012 \\u62c9\\u5fb7 \\u62c9\\u811a \\u62c9\\u5f00 \\u62c9\\u529b \\u62c9\\u9762 \\u62c9\\u5e73 \\u62c9\\u624b \\u62c9\\u7a00 \\u62c9\\u6742 \\u62c9\\u957f \\u814a\\u516b \\u814a\\u80a0 \\u814a\\u65e5 \\u814a\\u8089 \\u814a\\u6708 \\u8721\\u767d \\u8721\\u7b14 \\u8721\\u82b1 \\u8721\\u9ec4 \\u8721\\u4eba \\u8721\\u50cf \\u8721\\u7eb8 \\u8fa3\\u6912 \\u8fa3\\u624b \\u8fa3\\u5b50 \\u6765\\u7535 \\u6765\\u72af \\u6765\\u5f52 \\u6765\\u56de \\u6765\\u52b2 \\u6765\\u5386 \\u6765\\u4e34 \\u6765\\u5e74 \\u6765\\u4eba \\u6765\\u65e5 \\u6765\\u751f \\u6765\\u52bf \\u6765\\u4e8b \\u6765\\u6587 \\u6765\\u4fe1 \\u6765\\u610f \\u6765\\u81ea \\u765e\\u74dc \\u765e\\u5b50 \\u5170\\u82b1 \\u5170\\u5dde \\u62e6\\u6d2a \\u62e6\\u51fb \\u62e6\\u963b \\u680f\\u76ee \\u680f\\u6805 \\u9611\\u5e72 \\u84dd\\u672c \\u84dd\\u56fe \\u8c30\\u8a00 \\u89c8\\u80dc \\u63fd\\u5de5 \\u63fd\\u6d3b \\u63fd\\u8d27 \\u63fd\\u80dc \\u7f06\\u7ef3 \\u7f06\\u7d22 \\u70c2\\u719f \\u6ee5\\u4ea4 \\u6ee5\\u7528 \\u90ce\\u5f53 \\u90ce\\u4e2d \\u72fc\\u72d7 \\u72fc\\u70df \\u6717\\u58f0 \\u6d6a\\u8d39 \\u6d6a\\u82b1 \\u6d6a\\u4eba \\u6d6a\\u6e38 \\u6d6a\\u5b50 \\u635e\\u672c \\u635e\\u6478 \\u52b3\\u4fdd \\u52b3\\u52a8 \\u52b3\\u987f \\u52b3\\u65b9 \\u52b3\\u6539 \\u52b3\\u5de5 \\u52b3\\u6559 \\u52b3\\u91d1 \\u52b3\\u519b \\u52b3\\u82e6 \\u52b3\\u529b \\u52b3\\u788c \\u52b3\\u6a21 \\u52b3\\u795e \\u52b3\\u5e08 \\u52b3\\u5fc3 \\u52b3\\u5f79 \\u52b3\\u4f5c \\u7262\\u5ea6 \\u7262\\u5b9e \\u7262\\u7a33 \\u5d02\\u5c71 \\u8001\\u672c \\u8001\\u8868 \\u8001\\u5175 \\u8001\\u8d22 \\u8001\\u6210 \\u8001\\u5927 \\u8001\\u65e6 \\u8001\\u9053 \\u8001\\u516c \\u8001\\u864e \\u8001\\u5bb6 \\u8001\\u8fa3 \\u8001\\u4f8b \\u8001\\u547d \\u8001\\u6bcd \\u8001\\u5e74 \\u8001\\u519c \\u8001\\u6c14 \\u8001\\u4eb2 \\u8001\\u4eba \\u8001\\u8eab \\u8001\\u751f \\u8001\\u5e08 \\u8001\\u5b9e \\u8001\\u624b \\u8001\\u6c64 \\u8001\\u5929 \\u8001\\u5934 \\u8001\\u571f \\u8001\\u5916 \\u8001\\u4e61 \\u8001\\u76f8 \\u8001\\u5c0f \\u8001\\u5144 \\u8001\\u8425 \\u8001\\u5e7c \\u8001\\u65e9 \\u8001\\u603b \\u5520\\u626f \\u70d9\\u997c \\u70d9\\u82b1 \\u70d9\\u94c1 \\u4e50\\u5b89 \\u4e50\\u9053 \\u4e50\\u90fd \\u4e50\\u513f \\u4e50\\u679c \\u4e50\\u5c71 \\u4e50\\u4e8b \\u4e50\\u5929 \\u4e50\\u571f \\u4e50\\u610f \\u4e50\\u5b50 \\u52d2\\u7d22 \\u4e86\\u65ad \\u4e86\\u89e3 \\u4e86\\u5c40 \\u4e86\\u5374 \\u4e86\\u7136 \\u4e86\\u4e8b \\u4e86\\u65e0 \\u96f7\\u66b4 \\u96f7\\u7535 \\u96f7\\u52a8 \\u96f7\\u516c \\u96f7\\u7ba1 \\u96f7\\u51fb \\u96f7\\u9f99 \\u96f7\\u9e1f \\u96f7\\u540c \\u96f7\\u96e8 \\u7fb8\\u987f \\u78ca\\u78ca \\u808b\\u9aa8 \\u6cea\\u82b1 \\u6cea\\u4eba \\u6cea\\u6c34 \\u6cea\\u73e0 \\u7c7b\\u6bd4 \\u7c7b\\u522b \\u7c7b\\u805a \\u7c7b\\u4f3c \\u7c7b\\u540c \\u7c7b\\u63a8 \\u64c2\\u9f13 \\u68f1\\u89d2 \\u68f1\\u5b50 \\u51b7\\u9910 \\u51b7\\u85cf \\u51b7\\u6de1 \\u51b7\\u98ce \\u51b7\\u950b \\u51b7\\u5bab \\u51b7\\u5149 \\u51b7\\u6c57 \\u51b7\\u8d27 \\u51b7\\u95e8 \\u51b7\\u9762 \\u51b7\\u51dd \\u51b7\\u6696 \\u51b7\\u6c14 \\u51b7\\u6e05 \\u51b7\\u5374 \\u51b7\\u70ed \\u51b7\\u98df \\u51b7\\u971c \\u51b7\\u6c34 \\u51b7\\u5929 \\u51b7\\u996e \\u51b7\\u8bed \\u51b7\\u5b57 \\u6123\\u795e \\u5398\\u5b9a \\u5398\\u7c73 \\u5398\\u6b63 \\u79bb\\u522b \\u79bb\\u961f \\u79bb\\u5bab \\u79bb\\u5408 \\u79bb\\u89e3 \\u79bb\\u5f00 \\u79bb\\u4e71 \\u79bb\\u5947 \\u79bb\\u60c5 \\u79bb\\u6563 \\u79bb\\u7d22 \\u79bb\\u4e61 \\u79bb\\u5fc3 \\u79bb\\u5b50 \\u9a8a\\u6b4c \\u68a8\\u82b1 \\u68a8\\u5b50 \\u9ece\\u6c11 \\u9ece\\u660e \\u7f79\\u7978 \\u7bf1\\u6805 \\u8821\\u53bf \\u793c\\u6bd5 \\u793c\\u90e8 \\u793c\\u5355 \\u793c\\u6cd5 \\u793c\\u82b1 \\u793c\\u6559 \\u793c\\u91d1 \\u793c\\u8c8c \\u793c\\u54c1 \\u793c\\u5668 \\u793c\\u6570 \\u674e\\u767d \\u674e\\u5b50 \\u91cc\\u5e26 \\u91cc\\u6d77 \\u91cc\\u95f4 \\u91cc\\u62c9 \\u91cc\\u9762 \\u91cc\\u624b \\u91cc\\u5916 \\u91cc\\u5df7 \\u91cc\\u5b50 \\u4fda\\u6b4c \\u4fda\\u8bed \\u9ca4\\u9c7c \\u529b\\u9053 \\u529b\\u5ea6 \\u529b\\u653b \\u529b\\u77e9 \\u529b\\u514b \\u529b\\u6c14 \\u529b\\u56fe \\u529b\\u5fc3 \\u529b\\u5b66 \\u529b\\u4e3b \\u529b\\u4f5c \\u5386\\u6b21 \\u5386\\u6cd5 \\u5386\\u7ecf \\u5386\\u6765 \\u5386\\u5386 \\u5386\\u5e74 \\u5386\\u65f6 \\u5389\\u9b3c \\u5389\\u8272 \\u5389\\u58f0 \\u7acb\\u6625 \\u7acb\\u5730 \\u7acb\\u5b9a \\u7acb\\u51ac \\u7acb\\u6cd5 \\u7acb\\u65b9 \\u7acb\\u529f \\u7acb\\u56fd \\u7acb\\u5373 \\u7acb\\u4ea4 \\u7acb\\u811a \\u7acb\\u5377 \\u7acb\\u523b \\u7acb\\u8bba \\u7acb\\u9a6c \\u7acb\\u5c04 \\u7acb\\u65f6 \\u7acb\\u8a00 \\u7acb\\u610f \\u7acb\\u6b63 \\u7acb\\u5fd7 \\u7acb\\u8f74 \\u540f\\u90e8 \\u4e3d\\u90fd \\u4e3d\\u4eba \\u4e3d\\u65e5 \\u52b1\\u5fd7 \\u5229\\u53e3 \\u5229\\u9a6c \\u5229\\u6c11 \\u5229\\u5c3f \\u5229\\u5668 \\u5229\\u6da6 \\u5229\\u5e02 \\u5229\\u7d22 \\u5229\\u606f \\u5229\\u7528 \\u5229\\u8bf1 \\u6ca5\\u6ca5 \\u6ca5\\u9752 \\u6ca5\\u6c34 \\u4f8b\\u89c4 \\u4f8b\\u4f1a \\u4f8b\\u53e5 \\u4f8b\\u5982 \\u4f8b\\u5916 \\u4f8b\\u8a00 \\u96b6\\u5c5e \\u96b6\\u5b57 \\u96b6\\u5352 \\u8385\\u4e34 \\u6817\\u8272 \\u7c92\\u5b50 \\u8fde\\u6bd4 \\u8fde\\u8bcd \\u8fde\\u5e26 \\u8fde\\u961f \\u8fde\\u53d1 \\u8fde\\u73af \\u8fde\\u51fb \\u8fde\\u6c5f \\u8fde\\u8fde \\u601c\\u7231 \\u83b2\\u90fd \\u83b2\\u82b1 \\u83b2\\u5fc3 \\u83b2\\u5b50 \\u6d9f\\u6ce2 \\u8054\\u4fdd \\u8054\\u5927 \\u8054\\u961f \\u8054\\u9632 \\u8054\\u5408 \\u8054\\u673a \\u8054\\u53e5 \\u8054\\u519b \\u8054\\u540d \\u8054\\u8d5b \\u8054\\u624b \\u8054\\u7cfb \\u8054\\u8425 \\u8054\\u8fd0 \\u5ec9\\u6d01 \\u5ec9\\u660e \\u5ec9\\u6b63 \\u5ec9\\u76f4 \\u9570\\u5200 \\u8138\\u5b50 \\u7ec3\\u7b14 \\u7ec3\\u5175 \\u7ec3\\u961f \\u7ec3\\u529f \\u70bc\\u4e39 \\u70bc\\u53e5 \\u70bc\\u4e73 \\u70bc\\u94c1 \\u70bc\\u94dc \\u70bc\\u6cb9 \\u70bc\\u5b57 \\u604b\\u7231 \\u604b\\u6b4c \\u604b\\u5bb6 \\u604b\\u5ff5 \\u604b\\u60c5 \\u604b\\u7fa4 \\u604b\\u4eba \\u94fe\\u73af \\u94fe\\u8f6e \\u94fe\\u5b50 \\u826f\\u6750 \\u826f\\u65b9 \\u826f\\u597d \\u826f\\u673a \\u826f\\u8ba1 \\u826f\\u5bb6 \\u826f\\u9a6c \\u826f\\u6c11 \\u826f\\u4eba \\u826f\\u5584 \\u826f\\u5e08 \\u826f\\u5fc3 \\u826f\\u6027 \\u826f\\u8a00 \\u826f\\u77e5 \\u826f\\u79cd \\u51c9\\u62cc \\u51c9\\u98ce \\u51c9\\u9762 \\u51c9\\u68da \\u51c9\\u6c14 \\u51c9\\u6c34 \\u51c9\\u610f \\u7cae\\u4ed3 \\u7cae\\u8349 \\u7cae\\u9053 \\u7cae\\u884c \\u7cae\\u8352 \\u7cae\\u98df \\u7cae\\u7ad9 \\u4e24\\u4fbf \\u4e24\\u4fa7 \\u4e24\\u5f53 \\u4e24\\u5730 \\u4e24\\u5e7f \\u4e24\\u6e56 \\u4e24\\u53ef \\u4e24\\u7acb \\u4e24\\u5229 \\u4e24\\u9762 \\u4e24\\u65c1 \\u4e24\\u6816 \\u4e24\\u6e05 \\u4e24\\u5168 \\u4e24\\u624b \\u4e24\\u5934 \\u4e24\\u6027 \\u4eae\\u5ea6 \\u4eae\\u513f \\u4eae\\u5149 \\u4eae\\u8272 \\u8c05\\u5bdf \\u8c05\\u89e3 \\u91cf\\u676f \\u91cf\\u5ea6 \\u91cf\\u89c4 \\u91cf\\u8ba1 \\u91cf\\u5177 \\u91cf\\u5668 \\u667e\\u5e72 \\u8fbd\\u4e1c \\u8fbd\\u6cb3 \\u8fbd\\u897f \\u8fbd\\u8fdc \\u7597\\u6cd5 \\u7597\\u6548 \\u7597\\u517b \\u50da\\u673a \\u50da\\u5c5e \\u5be5\\u5ed3 \\u5be5\\u5be5 \\u7f2d\\u4e71 \\u7f2d\\u7ed5 \\u6599\\u5b9a \\u6599\\u6597 \\u6599\\u5668 \\u6482\\u5012 \\u6482\\u8352 \\u6482\\u624b \\u5217\\u8868 \\u5217\\u5175 \\u5217\\u8f66 \\u5217\\u961f \\u5217\\u56fd \\u5217\\u4e3e \\u5217\\u5f3a \\u5217\\u4e3a \\u52a3\\u8ff9 \\u52a3\\u9a6c \\u52a3\\u52bf \\u52a3\\u79cd \\u70c8\\u5ea6 \\u70c8\\u98ce \\u70c8\\u9a6c \\u70c8\\u5973 \\u70c8\\u65e5 \\u70c8\\u5c5e \\u70c8\\u6027 \\u88c2\\u53d8 \\u88c2\\u679c \\u88c2\\u5f00 \\u88c2\\u53e3 \\u88c2\\u7247 \\u9b23\\u72d7 \\u90bb\\u6751 \\u90bb\\u56fd \\u90bb\\u5bb6 \\u90bb\\u89d2 \\u90bb\\u5c45 \\u90bb\\u91cc \\u90bb\\u4eba \\u90bb\\u820d \\u6797\\u4ea7 \\u6797\\u5e26 \\u6797\\u5730 \\u6797\\u6d77 \\u6797\\u7acb \\u6797\\u6728 \\u6797\\u519c \\u6797\\u4e0b \\u4e34\\u5b89 \\u4e34\\u522b \\u4e34\\u4ea7 \\u4e34\\u98ce \\u4e34\\u6d77 \\u4e34\\u673a \\u4e34\\u4e86 \\u4e34\\u95e8 \\u4e34\\u65f6 \\u4e34\\u6b7b \\u4e34\\u5934 \\u4e34\\u5371 \\u6dcb\\u96e8 \\u6dcb\\u6d74 \\u9716\\u96e8 \\u78f7\\u80a5 \\u9cde\\u6ce2 \\u9cde\\u7247 \\u9cde\\u722a \\u9e9f\\u6e38 \\u6aa9\\u5b50 \\u4f36\\u4eba \\u7075\\u5b9d \\u7075\\u4fbf \\u7075\\u5ddd \\u7075\\u4e39 \\u7075\\u52a8 \\u7075\\u5149 \\u7075\\u9b42 \\u7075\\u6d3b \\u7075\\u673a \\u7075\\u68da \\u7075\\u6c14 \\u7075\\u5c71 \\u51cc\\u6ce2 \\u51cc\\u6668 \\u51cc\\u8fdf \\u51cc\\u7a7a \\u51cc\\u5389 \\u51cc\\u4e71 \\u51cc\\u4eba \\u51cc\\u8fb1 \\u51cc\\u4e91 \\u51cc\\u6742 \\u9675\\u66ff \\u7fce\\u6bdb \\u7eeb\\u5b50 \\u96f6\\u5ea6 \\u96f6\\u5de5 \\u96f6\\u82b1 \\u96f6\\u6d3b \\u96f6\\u4e71 \\u96f6\\u5356 \\u96f6\\u65f6 \\u96f6\\u98df \\u96f6\\u6570 \\u96f6\\u5934 \\u96f6\\u4e0b \\u96f6\\u661f \\u96f6\\u7528 \\u5cad\\u5357 \\u9886\\u5e26 \\u9886\\u6559 \\u9886\\u4e8b \\u9886\\u571f \\u53e6\\u52a0 \\u53e6\\u5916 \\u9f99\\u67cf \\u9f99\\u5bab \\u9f99\\u9aa8 \\u9f99\\u53e3 \\u9f99\\u95e8 \\u9f99\\u5ead \\u9f99\\u5934 \\u9f99\\u738b \\u9f99\\u5b50 \\u9686\\u5b50 \\u7643\\u95ed \\u9647\\u6d77 \\u9647\\u897f \\u62e2\\u5b50 \\u62e2\\u603b \\u5784\\u65ad \\u5784\\u4f5c \\u5a04\\u5b50 \\u697c\\u9053 \\u697c\\u9762 \\u697c\\u4e0a \\u697c\\u5b50 \\u877c\\u8681 \\u6402\\u62b1 \\u7bd3\\u5b50 \\u964b\\u89c4 \\u964b\\u5ba4 \\u964b\\u5df7 \\u9542\\u523b \\u9542\\u7a7a \\u6f0f\\u7535 \\u6f0f\\u6597 \\u6f0f\\u98ce \\u6f0f\\u5149 \\u6f0f\\u6c14 \\u6f0f\\u5931 \\u6f0f\\u6c34 \\u6f0f\\u7a0e \\u6f0f\\u591c \\u6f0f\\u5b50 \\u5362\\u6bd4 \\u82a6\\u67f4 \\u82a6\\u82b1 \\u5e90\\u5c71 \\u5e90\\u820d \\u7089\\u5177 \\u6cf8\\u5dde \\u5364\\u6c34 \\u5364\\u7d20 \\u9c81\\u73ed \\u9c81\\u76f4 \\u9646\\u6c89 \\u9646\\u5730 \\u9646\\u98ce \\u9646\\u519b \\u9646\\u79bb \\u9646\\u4e0a \\u9646\\u8fd0 \\u5f55\\u653e \\u5f55\\u50cf \\u5f55\\u97f3 \\u5f55\\u7528 \\u9e7f\\u89d2 \\u788c\\u788c \\u8def\\u6807 \\u8def\\u9053 \\u8def\\u5fb7 \\u8def\\u6bb5 \\u8def\\u8d39 \\u8def\\u89c4 \\u8def\\u8fc7 \\u8def\\u5fbd \\u8def\\u57fa \\u8def\\u8b66 \\u8def\\u5f84 \\u8def\\u5c40 \\u8def\\u5361 \\u8def\\u53e3 \\u8def\\u9762 \\u8def\\u4eba \\u8def\\u4e0a \\u8def\\u6570 \\u8def\\u5934 \\u622e\\u529b \\u9732\\u767d \\u9732\\u4e11 \\u9732\\u51fa \\u9732\\u98ce \\u9732\\u5bcc \\u9732\\u9762 \\u5b6a\\u751f \\u631b\\u7f29 \\u5375\\u767d \\u5375\\u9ec4 \\u5375\\u88c2 \\u5375\\u751f \\u5375\\u5b50 \\u4e71\\u5175 \\u4e71\\u52a8 \\u4e71\\u53d1 \\u4e71\\u6765 \\u4e71\\u79bb \\u4e71\\u6c11 \\u4e71\\u6742 \\u4e71\\u771f \\u4e71\\u5b50 \\u4f26\\u5df4 \\u4f26\\u6bd4 \\u4f26\\u6b21 \\u6ca6\\u4e3a \\u6ca6\\u9677 \\u8f6e\\u73ed \\u8f6e\\u5531 \\u8f6e\\u9f7f \\u8f6e\\u6b21 \\u8f6e\\u5e26 \\u8f6e\\u756a \\u8f6e\\u56de \\u8f6e\\u673a \\u8f6e\\u5ed3 \\u8f6e\\u8f74 \\u8f6e\\u4f5c \\u8bba\\u65ad \\u8bba\\u6587 \\u8bba\\u7f6a \\u7f57\\u5239 \\u7f57\\u7ecf \\u7f57\\u62c9 \\u7f57\\u5217 \\u7f57\\u9a6c \\u7f57\\u5708 \\u9523\\u9f13 \\u9aa1\\u9a6c \\u87ba\\u9489 \\u87ba\\u6bcd \\u87ba\\u6813 \\u6d1b\\u5ddd \\u7edc\\u8109 \\u6f2f\\u6cb3 \\u9a74\\u5b50 \\u95fe\\u91cc \\u95fe\\u5df7 \\u65c5\\u6b21 \\u65c5\\u8d39 \\u65c5\\u5c45 \\u65c5\\u820d \\u65c5\\u793e \\u65c5\\u6e38 \\u5c61\\u6b21 \\u7f15\\u9648 \\u5c65\\u5e26 \\u5c65\\u5386 \\u5c65\\u65b0 \\u5f8b\\u5e08 \\u7387\\u5148 \\u7387\\u6027 \\u7387\\u771f \\u7387\\u76f4 \\u6c2f\\u6c14 \\u6ee4\\u997c \\u6ee4\\u6ce2 \\u6ee4\\u8fc7 \\u6ee4\\u5668 \\u6ee4\\u7eb8 \\u9ebb\\u5200 \\u9ebb\\u5229 \\u9ebb\\u6728 \\u9ebb\\u96c0 \\u9a6c\\u5b9d \\u9a6c\\u97ad \\u9a6c\\u8868 \\u9a6c\\u5175 \\u9a6c\\u6b65 \\u9a6c\\u523a \\u9a6c\\u5200 \\u9a6c\\u9053 \\u9a6c\\u961f \\u9a6c\\u8702 \\u9a6c\\u864e \\u9a6c\\u7532 \\u9a6c\\u811a \\u9a6c\\u9a79 \\u9a6c\\u514b \\u9a6c\\u529b \\u9a6c\\u83b2 \\u9a6c\\u5217 \\u9a6c\\u9f99 \\u9a6c\\u68da \\u9a6c\\u7fa4 \\u9a6c\\u4e0a \\u9a6c\\u8e44 \\u9a6c\\u5934 \\u9a6c\\u8747 \\u9a6c\\u5b50 \\u9a6c\\u7956 \\u7801\\u5934 \\u7801\\u5b50 \\u7801\\u5b57 \\u8682\\u8681 \\u9a82\\u540d \\u9a82\\u4eba \\u57cb\\u85cf \\u57cb\\u4f0f \\u57cb\\u540d \\u57cb\\u9996 \\u57cb\\u5934 \\u4e70\\u65ad \\u4e70\\u65b9 \\u4e70\\u597d \\u4e70\\u5bb6 \\u4e70\\u8fdb \\u4e70\\u5356 \\u4e70\\u901a \\u4e70\\u4e3b \\u8fc8\\u6b65 \\u8fc8\\u51fa \\u8fc8\\u8fdb \\u9ea6\\u8349 \\u9ea6\\u51ac \\u9ea6\\u52a0 \\u9ea6\\u89d2 \\u9ea6\\u7cbe \\u9ea6\\u514b \\u9ea6\\u6d6a \\u9ea6\\u7247 \\u9ea6\\u6536 \\u5356\\u5531 \\u5356\\u6625 \\u5356\\u65b9 \\u5356\\u56fd \\u5356\\u597d \\u5356\\u52b2 \\u5356\\u7a7a \\u5356\\u8001 \\u5356\\u529b \\u5356\\u547d \\u5356\\u5f04 \\u5356\\u4fcf \\u5356\\u8eab \\u5356\\u6deb \\u5356\\u4e3b \\u8109\\u51b2 \\u8109\\u52a8 \\u8109\\u7ba1 \\u8109\\u95e8 \\u8109\\u606f \\u86ee\\u8352 \\u86ee\\u52b2 \\u86ee\\u5b50 \\u9992\\u9996 \\u6ee1\\u6000 \\u6ee1\\u53e3 \\u6ee1\\u95e8 \\u6ee1\\u9762 \\u6ee1\\u76ee \\u6ee1\\u671f \\u6ee1\\u8154 \\u6ee1\\u6e05 \\u6ee1\\u4eba \\u6ee1\\u8eab \\u6ee1\\u5e08 \\u6ee1\\u5929 \\u6ee1\\u5fc3 \\u6ee1\\u610f \\u6ee1\\u6708 \\u66fc\\u58f0 \\u8513\\u8349 \\u5e54\\u5b50 \\u6f2b\\u7b14 \\u6f2b\\u6b65 \\u6f2b\\u9053 \\u6f2b\\u753b \\u6f2b\\u5377 \\u6f2b\\u5929 \\u6f2b\\u6e38 \\u6f2b\\u957f \\u6162\\u6b65 \\u6162\\u6027 \\u6162\\u8d70 \\u8292\\u523a \\u8292\\u679c \\u5fd9\\u6d3b \\u5fd9\\u788c \\u5fd9\\u4e71 \\u5fd9\\u4eba \\u5fd9\\u97f3 \\u5fd9\\u6708 \\u76f2\\u80a0 \\u76f2\\u4ece \\u76f2\\u52a8 \\u76f2\\u76ee \\u76f2\\u68cb \\u76f2\\u4eba \\u76f2\\u6587 \\u76f2\\u5b57 \\u83bd\\u82cd \\u83bd\\u8349 \\u87d2\\u86c7 \\u6bdb\\u7b14 \\u6bdb\\u523a \\u6bdb\\u8c46 \\u6bdb\\u5c16 \\u6bdb\\u62c9 \\u6bdb\\u5229 \\u6bdb\\u6bdb \\u6bdb\\u56ca \\u6bdb\\u7247 \\u6bdb\\u6843 \\u6bdb\\u8863 \\u6bdb\\u91cd \\u6bdb\\u88c5 \\u6bdb\\u5b50 \\u77db\\u5934 \\u8305\\u8349 \\u8305\\u68da \\u8305\\u5c71 \\u8305\\u820d \\u951a\\u5730 \\u951a\\u5b9a \\u536f\\u65f6 \\u94c6\\u9489 \\u94c6\\u5de5 \\u8302\\u76db \\u5192\\u5145 \\u5192\\u72af \\u5192\\u529f \\u5192\\u5c16 \\u5192\\u8fdb \\u5192\\u540d \\u5192\\u5931 \\u5192\\u5934 \\u5192\\u70df \\u5192\\u96e8 \\u5e3d\\u5fbd \\u8c8c\\u4f3c \\u8c8c\\u76f8 \\u6ca1\\u52b2 \\u6ca1\\u547d \\u6ca1\\u4e8b \\u6ca1\\u5b8c \\u6ca1\\u7528 \\u6ca1\\u6709 \\u73ab\\u7470 \\u679a\\u4e3e \\u7709\\u6bdb \\u7709\\u76ee \\u7709\\u5c71 \\u7709\\u5934 \\u7709\\u5fc3 \\u6885\\u96e8 \\u6885\\u5b50 \\u5a92\\u4ecb \\u5a92\\u4eba \\u7164\\u672b \\u7164\\u6c14 \\u7164\\u70df \\u7164\\u6cb9 \\u9709\\u6c14 \\u9709\\u96e8 \\u6bcf\\u5f53 \\u6bcf\\u5e74 \\u6bcf\\u4eba \\u6bcf\\u65e5 \\u7f8e\\u9910 \\u7f8e\\u79f0 \\u7f8e\\u5fb7 \\u7f8e\\u7684 \\u7f8e\\u5de5 \\u7f8e\\u597d \\u7f8e\\u91d1 \\u7f8e\\u8c8c \\u7f8e\\u7f8e \\u7f8e\\u540d \\u7f8e\\u5973 \\u7f8e\\u4eba \\u7f8e\\u8272 \\u7f8e\\u58f0 \\u7f8e\\u98df \\u7f8e\\u4e8b \\u7f8e\\u5b66 \\u7f8e\\u8a00 \\u7f8e\\u610f \\u7f8e\\u5143 \\u9541\\u5149 \\u59b9\\u5b50 \\u6627\\u5fc3 \\u5a9a\\u9aa8 \\u5a9a\\u6c14 \\u5a9a\\u5916 \\u9b45\\u529b \\u9b45\\u4eba \\u95e8\\u9f7f \\u95e8\\u9053 \\u95e8\\u9489 \\u95e8\\u6597 \\u95e8\\u98ce \\u95e8\\u73af \\u95e8\\u5c06 \\u95e8\\u8b66 \\u95e8\\u5f84 \\u95e8\\u574e \\u95e8\\u53e3 \\u95e8\\u9762 \\u95e8\\u4eba \\u95e8\\u795e \\u95e8\\u751f \\u95e8\\u5e02 \\u95e8\\u9996 \\u95e8\\u5ead \\u95e8\\u5f92 \\u95e8\\u4e0b \\u95e8\\u5b50 \\u626a\\u5fc3 \\u95f7\\u5934 \\u840c\\u52a8 \\u8499\\u4e8b \\u76df\\u56fd \\u76df\\u519b \\u76df\\u4e3b \\u731b\\u53ef \\u731b\\u5b50 \\u5b5f\\u6625 \\u5b5f\\u51ac \\u5b5f\\u6d6a \\u5b5f\\u5b50 \\u5f25\\u8865 \\u5f25\\u5c01 \\u5f25\\u5408 \\u5f25\\u6563 \\u5f25\\u5929 \\u5f25\\u671b \\u5f25\\u6708 \\u8ff7\\u77aa \\u8ff7\\u5bab \\u8ff7\\u822a \\u8ff7\\u79bb \\u8ff7\\u4e71 \\u8ff7\\u4eba \\u8ff7\\u5931 \\u8ff7\\u4fe1 \\u9761\\u8d39 \\u7c73\\u9ec4 \\u7c73\\u9762 \\u7c73\\u8272 \\u7c73\\u6c64 \\u89c5\\u98df \\u79d8\\u5b9d \\u79d8\\u672c \\u79d8\\u85cf \\u79d8\\u4f20 \\u79d8\\u65b9 \\u5bc6\\u8bed \\u5bc6\\u4e91 \\u871c\\u8702 \\u871c\\u996f \\u871c\\u8272 \\u871c\\u6708 \\u7ef5\\u957f \\u68c9\\u88ab \\u68c9\\u82b1 \\u68c9\\u519c \\u68c9\\u6843 \\u68c9\\u7d6e \\u68c9\\u8863 \\u514d\\u9664 \\u514d\\u8d39 \\u514d\\u8bd5 \\u514d\\u7a0e \\u514d\\u9a8c \\u514d\\u5f79 \\u514d\\u5f81 \\u514d\\u7f6a \\u52c9\\u529b \\u5a29\\u51fa \\u7f05\\u6000 \\u9762\\u90e8 \\u9762\\u9648 \\u9762\\u5448 \\u9762\\u5bf9 \\u9762\\u80a5 \\u9762\\u79ef \\u9762\\u4ea4 \\u9762\\u5177 \\u9762\\u4e34 \\u9762\\u8c8c \\u9762\\u95e8 \\u9762\\u9762 \\u9762\\u76ee \\u9762\\u524d \\u9762\\u8272 \\u9762\\u5584 \\u9762\\u5546 \\u9762\\u751f \\u9762\\u98df \\u9762\\u5e02 \\u9762\\u8bd5 \\u9762\\u9996 \\u9762\\u719f \\u9762\\u6c64 \\u9762\\u56e2 \\u9762\\u76f8 \\u9762\\u5411 \\u9762\\u8bae \\u82d7\\u6728 \\u82d7\\u671f \\u82d7\\u60c5 \\u82d7\\u5934 \\u82d7\\u5b50 \\u79d2\\u8868 \\u79d2\\u9488 \\u6e3a\\u5c0f \\u6e3a\\u8fdc \\u85d0\\u5c0f \\u9088\\u8fdc \\u5999\\u7b14 \\u5999\\u6cd5 \\u5999\\u65b9 \\u5999\\u8ba1 \\u5999\\u8bba \\u5999\\u54c1 \\u5999\\u624b \\u5999\\u7b97 \\u5999\\u7528 \\u5999\\u8bed \\u5e99\\u4f1a \\u5e99\\u4e3b \\u706d\\u53e3 \\u706d\\u95e8 \\u706d\\u6740 \\u706d\\u79cd \\u7bfe\\u5de5 \\u7bfe\\u9ec4 \\u7bfe\\u7247 \\u6c11\\u53d8 \\u6c11\\u5175 \\u6c11\\u6cd5 \\u6c11\\u9632 \\u6c11\\u98ce \\u6c11\\u6b4c \\u6c11\\u5de5 \\u6c11\\u822a \\u6c11\\u5bb6 \\u6c11\\u95f4 \\u6c11\\u8b66 \\u6c11\\u5c45 \\u6c11\\u529b \\u6c11\\u547d \\u6c11\\u54c1 \\u6c11\\u6c14 \\u6c11\\u60c5 \\u6c11\\u751f \\u6c11\\u4e8b \\u6c11\\u5ead \\u6c11\\u671b \\u6c11\\u5fc3 \\u6c11\\u610f \\u6c11\\u8425 \\u6c11\\u7528 \\u6c11\\u8fd0 \\u6c11\\u667a \\u6c11\\u4f17 \\u6c11\\u4e3b \\u5cb7\\u6c5f \\u62bf\\u5b50 \\u6cef\\u706d \\u540d\\u4ea7 \\u540d\\u79f0 \\u540d\\u8bcd \\u540d\\u6b21 \\u540d\\u5355 \\u540d\\u82b1 \\u540d\\u753b \\u540d\\u5bb6 \\u540d\\u53e5 \\u540d\\u5229 \\u540d\\u95e8 \\u540d\\u76ee \\u540d\\u7247 \\u540d\\u54c1 \\u540d\\u6c14 \\u540d\\u4eba \\u540d\\u5c71 \\u540d\\u58f0 \\u540d\\u80dc \\u540d\\u5e08 \\u540d\\u5b9e \\u540d\\u624b \\u540d\\u6570 \\u540d\\u671b \\u540d\\u4e0b \\u540d\\u5bbf \\u540d\\u8a00 \\u540d\\u4e49 \\u540d\\u5b57 \\u540d\\u4f5c \\u660e\\u767d \\u660e\\u5bdf \\u660e\\u7545 \\u660e\\u6668 \\u660e\\u5ea6 \\u660e\\u65ad \\u660e\\u513f \\u660e\\u5149 \\u660e\\u9ec4 \\u660e\\u6559 \\u660e\\u6d01 \\u660e\\u4e86 \\u660e\\u91cc \\u660e\\u706d \\u660e\\u660e \\u660e\\u76ee \\u660e\\u5e74 \\u660e\\u5668 \\u660e\\u524d \\u660e\\u4eba \\u660e\\u65e5 \\u660e\\u6c34 \\u660e\\u5929 \\u660e\\u738b \\u660e\\u6587 \\u660e\\u663e \\u660e\\u661f \\u660e\\u8a00 \\u660e\\u6708 \\u660e\\u65e9 \\u660e\\u77e5 \\u660e\\u5fd7 \\u660e\\u667a \\u660e\\u73e0 \\u660e\\u5b50 \\u9e23\\u97ad \\u9e23\\u653e \\u9e23\\u91d1 \\u9e23\\u9e1f \\u9e23\\u58f0 \\u9e23\\u54cd \\u9e23\\u594f \\u51a5\\u51a5 \\u51a5\\u5668 \\u51a5\\u8863 \\u7791\\u76ee \\u547d\\u7b14 \\u547d\\u5b9a \\u547d\\u5b98 \\u547d\\u8109 \\u547d\\u95e8 \\u547d\\u540d \\u547d\\u6570 \\u547d\\u76f8 \\u547d\\u610f \\u547d\\u8fd0 \\u6478\\u7d22 \\u6478\\u5934 \\u6478\\u8425 \\u6479\\u672c \\u6479\\u523b \\u6a21\\u672c \\u6a21\\u4eff \\u6469\\u5929 \\u6469\\u6258 \\u78e8\\u5149 \\u78e8\\u5408 \\u78e8\\u706d \\u78e8\\u7259 \\u9b54\\u6cd5 \\u9b54\\u65b9 \\u9b54\\u9b3c \\u9b54\\u529b \\u9b54\\u5973 \\u9b54\\u624b \\u9b54\\u5934 \\u9b54\\u738b \\u9b54\\u5f71 \\u9b54\\u722a \\u62b9\\u6740 \\u672b\\u4f0f \\u672b\\u8282 \\u672b\\u4e86 \\u672b\\u5e74 \\u672b\\u671f \\u672b\\u65e5 \\u672b\\u53f6 \\u672b\\u5b50 \\u964c\\u751f \\u83ab\\u4e0d \\u83ab\\u5927 \\u83ab\\u975e \\u83ab\\u540d \\u83ab\\u9006 \\u83ab\\u5982 \\u6f20\\u5317 \\u58a8\\u5b9d \\u58a8\\u7b14 \\u58a8\\u6597 \\u58a8\\u5bb6 \\u58a8\\u7eff \\u58a8\\u56ca \\u58a8\\u8272 \\u58a8\\u6c34 \\u58a8\\u9c7c \\u9ed8\\u54c0 \\u9ed8\\u5ff5 \\u9ed8\\u7247 \\u9ed8\\u7b97 \\u9ed8\\u5750 \\u725f\\u5229 \\u7738\\u5b50 \\u67d0\\u5730 \\u67d0\\u4eba \\u6bcd\\u7231 \\u6bcd\\u672c \\u6bcd\\u56fd \\u6bcd\\u673a \\u6bcd\\u4eb2 \\u6bcd\\u7cfb \\u6bcd\\u6821 \\u6bcd\\u6027 \\u6bcd\\u97f3 \\u6bcd\\u8bed \\u6bcd\\u732a \\u6bcd\\u5b50 \\u7261\\u4e39 \\u6728\\u672c \\u6728\\u6750 \\u6728\\u67f4 \\u6728\\u69cc \\u6728\\u96d5 \\u6728\\u8c46 \\u6728\\u5de5 \\u6728\\u74dc \\u6728\\u7b80 \\u6728\\u523b \\u6728\\u83b2 \\u6728\\u9a6c \\u6728\\u95e8 \\u6728\\u8bb7 \\u6728\\u6392 \\u6728\\u5668 \\u6728\\u85af \\u6728\\u6813 \\u6728\\u901a \\u6728\\u9999 \\u6728\\u661f \\u6728\\u9c7c \\u6728\\u6805 \\u6728\\u4f5c \\u76ee\\u6807 \\u76ee\\u6b21 \\u76ee\\u7779 \\u76ee\\u5149 \\u76ee\\u51fb \\u76ee\\u89c1 \\u76ee\\u529b \\u76ee\\u8bba \\u76ee\\u524d \\u76ee\\u9001 \\u76ee\\u4e0b \\u6c90\\u6d74 \\u7267\\u8349 \\u7267\\u755c \\u7267\\u5730 \\u7267\\u653e \\u7267\\u6b4c \\u7267\\u5de5 \\u7267\\u6c11 \\u7267\\u7fa4 \\u7267\\u4eba \\u7267\\u5e08 \\u7267\\u7f8a \\u7267\\u4e3b \\u52df\\u5175 \\u52df\\u6b3e \\u5893\\u7891 \\u5893\\u8868 \\u5893\\u9053 \\u5893\\u5730 \\u5893\\u95e8 \\u5893\\u5ba4 \\u5893\\u5fd7 \\u6155\\u540d \\u66ae\\u6625 \\u66ae\\u5e74 \\u66ae\\u6c14 \\u66ae\\u8272 \\u62ff\\u7ed9 \\u62ff\\u4eba \\u62ff\\u624b \\u54ea\\u513f \\u54ea\\u91cc \\u54ea\\u80fd \\u90a3\\u822c \\u90a3\\u513f \\u90a3\\u91cc \\u7eb3\\u8d21 \\u7eb3\\u8d3f \\u7eb3\\u7a0e \\u7eb3\\u65b0 \\u5976\\u540d \\u5976\\u6c34 \\u5976\\u5934 \\u5976\\u6cb9 \\u5976\\u5b50 \\u5948\\u4f55 \\u67f0\\u5b50 \\u8010\\u7a7f \\u8010\\u5bd2 \\u8010\\u770b \\u8010\\u529b \\u8010\\u78e8 \\u8010\\u70ed \\u8010\\u53d7 \\u8010\\u5fc3 \\u8010\\u6027 \\u8010\\u7528 \\u7537\\u513f \\u7537\\u65b9 \\u7537\\u5de5 \\u7537\\u5bb6 \\u7537\\u7235 \\u7537\\u5973 \\u7537\\u4eba \\u7537\\u751f \\u7537\\u58f0 \\u7537\\u6027 \\u7537\\u88c5 \\u7537\\u5b50 \\u5357\\u5317 \\u5357\\u90e8 \\u5357\\u5ddd \\u5357\\u65b9 \\u5357\\u98ce \\u5357\\u5bab \\u5357\\u74dc \\u5357\\u56fd \\u5357\\u6d77 \\u5357\\u6e56 \\u5357\\u8d27 \\u5357\\u6c5f \\u5357\\u519b \\u5357\\u95e8 \\u5357\\u9762 \\u5357\\u5e73 \\u5357\\u5c71 \\u5357\\u5b8b \\u5357\\u661f \\u5357\\u6d0b \\u5357\\u97f3 \\u5357\\u957f \\u5357\\u4e2d \\u96be\\u4fdd \\u96be\\u4ea7 \\u96be\\u5403 \\u96be\\u5f53 \\u96be\\u5012 \\u96be\\u9053 \\u96be\\u5ea6 \\u96be\\u5173 \\u96be\\u8fc7 \\u96be\\u770b \\u96be\\u8010 \\u96be\\u4eba \\u96be\\u8272 \\u96be\\u4e8b \\u96be\\u53d7 \\u96be\\u542c \\u96be\\u4e3a \\u96be\\u8a00 \\u96be\\u4ee5 \\u6960\\u6728 \\u652e\\u5b50 \\u5b6c\\u79cd \\u6320\\u66f2 \\u6320\\u5934 \\u607c\\u4eba \\u8111\\u74dc \\u8111\\u6d77 \\u8111\\u529b \\u8111\\u95e8 \\u8111\\u5ba4 \\u95f9\\u9b3c \\u95f9\\u6c14 \\u95f9\\u5e02 \\u95f9\\u4e8b \\u8bb7\\u8bb7 \\u5462\\u5b50 \\u5185\\u90e8 \\u5185\\u53c2 \\u5185\\u5730 \\u5185\\u5b9a \\u5185\\u529f \\u5185\\u5173 \\u5185\\u6d77 \\u5185\\u884c \\u5185\\u6cb3 \\u5185\\u6838 \\u5185\\u6025 \\u5185\\u5f84 \\u5185\\u79d1 \\u5185\\u91cc \\u5185\\u529b \\u5185\\u4e71 \\u5185\\u9762 \\u5185\\u4eb2 \\u5185\\u60c5 \\u5185\\u70ed \\u5185\\u4eba \\u5185\\u4f24 \\u5185\\u5ba4 \\u5185\\u5ead \\u5185\\u5916 \\u5185\\u9677 \\u5185\\u4e61 \\u5185\\u8be6 \\u5185\\u5411 \\u5185\\u9500 \\u5185\\u5fc3 \\u5185\\u5144 \\u5185\\u8863 \\u5185\\u56e0 \\u5185\\u5728 \\u5185\\u4e2d \\u5185\\u52a9 \\u5185\\u5b50 \\u5ae9\\u8349 \\u5ae9\\u7ea2 \\u5ae9\\u9ec4 \\u5ae9\\u6c5f \\u5ae9\\u7eff \\u80fd\\u52a8 \\u80fd\\u5426 \\u80fd\\u591f \\u80fd\\u529b \\u80fd\\u8010 \\u80fd\\u4eba \\u80fd\\u4e8b \\u80fd\\u624b \\u59ae\\u5b50 \\u5c3c\\u59d1 \\u5c3c\\u9f99 \\u6ce5\\u5df4 \\u6ce5\\u5c01 \\u6ce5\\u4eba \\u6ce5\\u6c99 \\u6ce5\\u6c34 \\u6ce5\\u571f \\u62df\\u5b9a \\u62df\\u53e4 \\u62df\\u5408 \\u62df\\u4eba \\u62df\\u8bae \\u62df\\u4f5c \\u4f60\\u597d \\u6635\\u79f0 \\u9006\\u5dee \\u9006\\u4ea7 \\u9006\\u8033 \\u9006\\u98ce \\u9006\\u5149 \\u9006\\u65c5 \\u9006\\u6c34 \\u9006\\u5411 \\u9006\\u8f6c \\u9006\\u5b50 \\u533f\\u85cf \\u533f\\u4f0f \\u533f\\u540d \\u817b\\u4eba \\u817b\\u6b6a \\u817b\\u5b50 \\u6eba\\u7231 \\u6eba\\u6c34 \\u6eba\\u6b7b \\u62c8\\u9999 \\u852b\\u5df4 \\u5e74\\u8868 \\u5e74\\u6210 \\u5e74\\u9f7f \\u5e74\\u521d \\u5e74\\u5ea6 \\u5e74\\u9ad8 \\u5e74\\u5173 \\u5e74\\u5149 \\u5e74\\u753b \\u5e74\\u4f1a \\u5e74\\u8d27 \\u5e74\\u7eaa \\u5e74\\u95f4 \\u5e74\\u91d1 \\u5e74\\u520a \\u5e74\\u6765 \\u5e74\\u8001 \\u5e74\\u793c \\u5e74\\u5386 \\u5e74\\u5229 \\u5e74\\u8f6e \\u5e74\\u8c8c \\u5e74\\u672b \\u5e74\\u5e74 \\u5e74\\u9752 \\u5e74\\u8f7b \\u5e74\\u65f6 \\u5e74\\u4e8b \\u5e74\\u5c81 \\u5e74\\u5934 \\u5e74\\u606f \\u5e74\\u4e0b \\u5e74\\u5144 \\u5e74\\u591c \\u5e74\\u5e7c \\u5e74\\u6708 \\u9c87\\u9c7c \\u9ecf\\u5ea6 \\u9ecf\\u9644 \\u9ecf\\u7c73 \\u9ecf\\u571f \\u637b\\u5b50 \\u78be\\u78e8 \\u78be\\u5b50 \\u5ff5\\u767d \\u5ff5\\u7ecf \\u5ff5\\u73e0 \\u5a18\\u5bb6 \\u5a18\\u4eb2 \\u5a18\\u5b50 \\u9e1f\\u96c0 \\u8885\\u8885 \\u8885\\u7ed5 \\u5c3f\\u9053 \\u5c3f\\u7d20 \\u5c3f\\u8840 \\u634f\\u5408 \\u634f\\u5f04 \\u556e\\u9f7f \\u556e\\u5408 \\u989e\\u9aa8 \\u5b7d\\u6d77 \\u5b7d\\u79cd \\u6041\\u5730 \\u5b81\\u5b89 \\u5b81\\u90fd \\u5b81\\u5357 \\u5b81\\u65e5 \\u72de\\u6076 \\u51dd\\u5b9a \\u51dd\\u805a \\u51dd\\u76ee \\u51dd\\u795e \\u51dd\\u671b \\u51dd\\u91cd \\u4f5e\\u4eba \\u519c\\u4ea7 \\u519c\\u6751 \\u519c\\u8015 \\u519c\\u5de5 \\u519c\\u884c \\u519c\\u4f1a \\u519c\\u6d3b \\u519c\\u673a \\u519c\\u5bb6 \\u519c\\u7ecf \\u519c\\u5177 \\u519c\\u79d1 \\u519c\\u5386 \\u519c\\u6c11 \\u519c\\u4eba \\u519c\\u6851 \\u519c\\u820d \\u519c\\u65f6 \\u519c\\u4e8b \\u519c\\u6821 \\u519c\\u5b66 \\u519c\\u7528 \\u6d53\\u6de1 \\u6d53\\u5ea6 \\u6d53\\u539a \\u6d53\\u7f29 \\u6d53\\u9999 \\u6d53\\u91cd \\u8113\\u80f8 \\u5f04\\u9519 \\u5f04\\u9b3c \\u5f04\\u6b7b \\u5974\\u624d \\u5974\\u5bb6 \\u5974\\u6027 \\u5974\\u5f79 \\u9a7d\\u9a6c \\u52aa\\u529b \\u5f29\\u673a \\u6012\\u653e \\u6012\\u6c5f \\u6012\\u76ee \\u6012\\u6c14 \\u6012\\u8272 \\u6696\\u98ce \\u6696\\u950b \\u6696\\u6c14 \\u6696\\u8272 \\u6696\\u610f \\u632a\\u6b65 \\u632a\\u52a8 \\u632a\\u501f \\u632a\\u7528 \\u50a9\\u795e \\u8bfa\\u8a00 \\u7cef\\u7c73 \\u5973\\u513f \\u5973\\u65b9 \\u5973\\u5de5 \\u5973\\u7687 \\u5973\\u5bb6 \\u5973\\u4eba \\u5973\\u8272 \\u5973\\u795e \\u5973\\u751f \\u5973\\u5c38 \\u5973\\u738b \\u5973\\u6027 \\u5973\\u8d1e \\u5973\\u771f \\u5973\\u88c5 \\u5973\\u5b50 \\u8bb4\\u6b4c \\u6ca4\\u80a5 \\u6b27\\u7f8e \\u6b27\\u6587 \\u6bb4\\u6253 \\u6bb4\\u8fb1 \\u6bb4\\u4f24 \\u5455\\u5fc3 \\u5076\\u53d1 \\u5076\\u5408 \\u5076\\u4eba \\u5076\\u50cf \\u85d5\\u8272 \\u6004\\u6c14 \\u8db4\\u4e0b \\u8019\\u5730 \\u7b62\\u5b50 \\u6015\\u4eba \\u6015\\u751f \\u6015\\u4e8b \\u62cd\\u6253 \\u62cd\\u53d1 \\u62cd\\u82b1 \\u62cd\\u51fb \\u62cd\\u9a6c \\u62cd\\u5356 \\u62cd\\u624b \\u62cd\\u62d6 \\u62cd\\u7167 \\u4ff3\\u53e5 \\u6392\\u73ed \\u6392\\u7b14 \\u6392\\u9664 \\u6392\\u961f \\u6392\\u653e \\u6392\\u9aa8 \\u6392\\u884c \\u6392\\u51fb \\u6392\\u89e3 \\u6392\\u7a7a \\u6392\\u9063 \\u6392\\u5916 \\u6392\\u5b57 \\u724c\\u98ce \\u724c\\u5c40 \\u724c\\u7167 \\u6d3e\\u522b \\u6d3e\\u6b3e \\u6d3e\\u9063 \\u6d3e\\u751f \\u6d3e\\u5934 \\u6d3e\\u7cfb \\u6d3e\\u9a7b \\u6500\\u6bd4 \\u6500\\u626f \\u6500\\u9644 \\u6500\\u9ad8 \\u6500\\u4ea4 \\u6500\\u722c \\u6500\\u4eb2 \\u6500\\u63f4 \\u76d8\\u8bd8 \\u87e0\\u9f99 \\u87e0\\u6843 \\u5224\\u522b \\u5224\\u8bcd \\u5224\\u5b9a \\u5224\\u65ad \\u5224\\u5b98 \\u5224\\u4f8b \\u5224\\u660e \\u5224\\u7f6a \\u76fc\\u987e \\u76fc\\u671b \\u53db\\u53d8 \\u53db\\u515a \\u53db\\u56fd \\u53db\\u519b \\u53db\\u79bb \\u53db\\u4e71 \\u53db\\u5356 \\u53db\\u9006 \\u53db\\u5f92 \\u5e9e\\u5927 \\u5e9e\\u6742 \\u65c1\\u767d \\u65c1\\u4fa7 \\u65c1\\u51fa \\u65c1\\u95e8 \\u65c1\\u4eba \\u65c1\\u542c \\u65c1\\u652f \\u65c1\\u5750 \\u629b\\u5149 \\u629b\\u8352 \\u629b\\u79bb \\u629b\\u5374 \\u629b\\u6d12 \\u629b\\u5c04 \\u5228\\u9664 \\u72cd\\u5b50 \\u888d\\u5b50 \\u8dd1\\u8868 \\u8dd1\\u6b65 \\u8dd1\\u9053 \\u8dd1\\u7535 \\u8dd1\\u52a8 \\u8dd1\\u5149 \\u8dd1\\u9a6c \\u8dd1\\u5916 \\u6ce1\\u6c64 \\u6ce1\\u5f71 \\u80da\\u4e73 \\u80da\\u8f74 \\u80da\\u73e0 \\u966a\\u90fd \\u966a\\u62a4 \\u966a\\u5ba1 \\u966a\\u9001 \\u966a\\u540c \\u8d54\\u672c \\u8d54\\u6b3e \\u8d54\\u793c \\u8d54\\u60c5 \\u8d54\\u7f6a \\u4f69\\u5e26 \\u4f69\\u5200 \\u914d\\u6bd4 \\u914d\\u9910 \\u914d\\u7535 \\u914d\\u5bf9 \\u914d\\u53d1 \\u914d\\u65b9 \\u914d\\u5408 \\u914d\\u519b \\u914d\\u8272 \\u914d\\u5c5e \\u914d\\u97f3 \\u914d\\u79cd \\u914d\\u91cd \\u914d\\u5b50 \\u8f94\\u5934 \\u55b7\\u53d1 \\u55b7\\u7ba1 \\u55b7\\u6e85 \\u55b7\\u53e3 \\u55b7\\u6c14 \\u55b7\\u6d12 \\u55b7\\u5c04 \\u55b7\\u6c34 \\u55b7\\u5934 \\u55b7\\u5410 \\u76c6\\u5730 \\u76c6\\u82b1 \\u76c6\\u8154 \\u76c6\\u6c64 \\u76c6\\u6d74 \\u62a8\\u51fb \\u70f9\\u8c03 \\u670b\\u515a \\u68da\\u820d \\u84ec\\u83b1 \\u84ec\\u4e71 \\u6f8e\\u6e56 \\u7bf7\\u5b50 \\u81a8\\u5927 \\u78b0\\u676f \\u78b0\\u89c1 \\u78b0\\u9762 \\u78b0\\u9501 \\u78b0\\u5934 \\u6279\\u53d1 \\u6279\\u6539 \\u6279\\u8bc4 \\u6279\\u6587 \\u6279\\u8bed \\u6279\\u8f6c \\u576f\\u5b50 \\u62ab\\u98ce \\u62ab\\u7ea2 \\u62ab\\u7532 \\u62ab\\u5377 \\u62ab\\u6ca5 \\u7812\\u971c \\u5288\\u523a \\u5288\\u5200 \\u5288\\u9762 \\u5288\\u556a \\u5288\\u6740 \\u5288\\u5c71 \\u5288\\u624b \\u5288\\u5934 \\u5288\\u80f8 \\u567c\\u556a \\u9739\\u96f7 \\u76ae\\u97ad \\u76ae\\u5e26 \\u76ae\\u80a4 \\u76ae\\u9769 \\u76ae\\u9ec4 \\u76ae\\u8d27 \\u76ae\\u5939 \\u76ae\\u6bdb \\u76ae\\u9762 \\u76ae\\u56ca \\u76ae\\u8089 \\u76ae\\u5b9e \\u76ae\\u8863 \\u76ae\\u5f20 \\u76ae\\u7eb8 \\u76ae\\u91cd \\u6bd7\\u8fde \\u75b2\\u987f \\u75b2\\u56f0 \\u813e\\u6c14 \\u813e\\u6027 \\u8c94\\u864e \\u5339\\u914d \\u4ef3\\u79bb \\u75de\\u79ef \\u7656\\u6027 \\u5c41\\u80a1 \\u8f9f\\u90aa \\u5ab2\\u7f8e \\u50fb\\u5df7 \\u50fb\\u8fdc \\u8b6c\\u5982 \\u504f\\u7231 \\u504f\\u950b \\u504f\\u597d \\u504f\\u6fc0 \\u504f\\u79bb \\u504f\\u95e8 \\u504f\\u751f \\u504f\\u98df \\u504f\\u8892 \\u504f\\u659c \\u504f\\u4fe1 \\u504f\\u91cd \\u7bc7\\u76ee \\u7bc7\\u4ec0 \\u7bc7\\u5b50 \\u9a88\\u6587 \\u7247\\u6bb5 \\u7247\\u65ad \\u7247\\u523b \\u7247\\u9762 \\u7247\\u65f6 \\u7247\\u8a00 \\u9a97\\u5c40 \\u9a97\\u9a6c \\u9a97\\u4eba \\u6f02\\u6d6e \\u6f02\\u6d0b \\u6f02\\u6e38 \\u98d8\\u5e26 \\u98d8\\u52a8 \\u98d8\\u6d6e \\u98d8\\u96f6 \\u98d8\\u6d12 \\u98d8\\u6563 \\u98d8\\u626c \\u98d8\\u6447 \\u5ad6\\u5bbf \\u77a5\\u89c1 \\u6487\\u5f00 \\u62fc\\u523a \\u62fc\\u5408 \\u62fc\\u529b \\u62fc\\u547d \\u62fc\\u6740 \\u62fc\\u6b7b \\u62fc\\u97f3 \\u62fc\\u88c5 \\u59d8\\u5c45 \\u8d2b\\u5bd2 \\u8d2b\\u82e6 \\u8d2b\\u56f0 \\u8d2b\\u6c11 \\u8d2b\\u519c \\u8d2b\\u6c14 \\u8d2b\\u7a77 \\u8d2b\\u6cb9 \\u8d2b\\u5634 \\u9891\\u4f20 \\u9891\\u6b21 \\u9891\\u5e26 \\u9891\\u9053 \\u9891\\u5ea6 \\u9891\\u6bb5 \\u9891\\u7e41 \\u9891\\u9891 \\u54c1\\u5fb7 \\u54c1\\u683c \\u54c1\\u7ea2 \\u54c1\\u7eff \\u54c1\\u8c8c \\u54c1\\u540d \\u54c1\\u76ee \\u54c1\\u8bc4 \\u54c1\\u8131 \\u54c1\\u7cfb \\u54c1\\u6027 \\u54c1\\u5b66 \\u54c1\\u79cd \\u8058\\u91d1 \\u8058\\u793c \\u8058\\u671f \\u8058\\u8bf7 \\u8058\\u7528 \\u5e73\\u5b89 \\u5e73\\u767d \\u5e73\\u4ea7 \\u5e73\\u5ddd \\u5e73\\u6de1 \\u5e73\\u5730 \\u5e73\\u5b9a \\u5e73\\u52a8 \\u5e73\\u5ea6 \\u5e73\\u53cd \\u5e73\\u65b9 \\u5e73\\u5149 \\u5e73\\u548c \\u5e73\\u6ed1 \\u5e73\\u7f13 \\u5e73\\u6bc1 \\u5e73\\u5c40 \\u5e73\\u4e50 \\u5e73\\u5217 \\u5e73\\u4e71 \\u5e73\\u7c73 \\u5e73\\u9762 \\u5e73\\u6c11 \\u5e73\\u660e \\u5e73\\u5e74 \\u5e73\\u5e73 \\u5e73\\u65e5 \\u5e73\\u8eab \\u5e73\\u751f \\u5e73\\u58f0 \\u5e73\\u65f6 \\u5e73\\u5b9e \\u5e73\\u624b \\u5e73\\u987a \\u5e73\\u7d20 \\u5e73\\u5934 \\u5e73\\u7a33 \\u5e73\\u897f \\u5e73\\u606f \\u5e73\\u5df7 \\u5e73\\u5fc3 \\u5e73\\u4fe1 \\u5e73\\u91ce \\u5e73\\u8bae \\u5e73\\u5eb8 \\u5e73\\u8fdc \\u5e73\\u6708 \\u5e73\\u6b63 \\u5e73\\u76f4 \\u5e73\\u88c5 \\u8bc4\\u6bd4 \\u8bc4\\u5b9a \\u8bc4\\u65ad \\u8bc4\\u6539 \\u8bc4\\u529f \\u8bc4\\u4ecb \\u8bc4\\u5377 \\u8bc4\\u8bba \\u8bc4\\u5ba1 \\u8bc4\\u4e3a \\u8bc4\\u8bae \\u8bc4\\u8bed \\u51ed\\u5355 \\u51ed\\u501f \\u51ed\\u7a7a \\u51ed\\u4fe1 \\u51ed\\u4f9d \\u51ed\\u7167 \\u5c4f\\u853d \\u5c4f\\u98ce \\u5c4f\\u95e8 \\u5c4f\\u5c71 \\u74f6\\u53e3 \\u5761\\u9053 \\u5761\\u5730 \\u5761\\u5ea6 \\u6cfc\\u8fa3 \\u6cfc\\u6d12 \\u9887\\u4e3a \\u5a46\\u5b50 \\u8feb\\u964d \\u8feb\\u4e34 \\u7834\\u8d25 \\u7834\\u8d22 \\u7834\\u4ea7 \\u7834\\u9664 \\u7834\\u8d39 \\u7834\\u683c \\u7834\\u574f \\u7834\\u51fb \\u7834\\u89e3 \\u7834\\u53e3 \\u7834\\u6d6a \\u7834\\u4f8b \\u7834\\u88c2 \\u7834\\u95e8 \\u7834\\u706d \\u7834\\u571f \\u7834\\u4e94 \\u7834\\u6653 \\u9b44\\u529b \\u5256\\u767d \\u5256\\u89e3 \\u5256\\u9762 \\u6251\\u9f3b \\u6251\\u6253 \\u6251\\u5730 \\u6251\\u514b \\u6251\\u7a7a \\u6251\\u9762 \\u6251\\u706d \\u6251\\u901a \\u94fa\\u9648 \\u94fa\\u9762 \\u94fa\\u6392 \\u94fa\\u5e73 \\u94fa\\u9996 \\u94fa\\u5f20 \\u8461\\u7cd6 \\u84b2\\u8349 \\u84b2\\u6843 \\u84b2\\u56e2 \\u6734\\u539a \\u6734\\u5b9e \\u6734\\u7d20 \\u6734\\u5b66 \\u6734\\u76f4 \\u6d66\\u53e3 \\u666e\\u5ea6 \\u666e\\u6cd5 \\u666e\\u964d \\u666e\\u6559 \\u666e\\u7279 \\u666e\\u5929 \\u666e\\u901a \\u666e\\u7167 \\u8c31\\u8868 \\u8c31\\u7cfb \\u8c31\\u5b50 \\u4e03\\u53e4 \\u4e03\\u4e03 \\u4e03\\u60c5 \\u4e03\\u4e00 \\u4e03\\u6708 \\u59bb\\u5c0f \\u59bb\\u5b50 \\u6816\\u5c45 \\u6816\\u8eab \\u6816\\u606f \\u6816\\u6b62 \\u51c4\\u82e6 \\u51c4\\u51b7 \\u51c4\\u5389 \\u51c4\\u6e05 \\u671f\\u8d27 \\u671f\\u95f4 \\u671f\\u520a \\u671f\\u95e8 \\u671f\\u672b \\u671f\\u671f \\u671f\\u671b \\u671f\\u4e2d \\u6b3a\\u751f \\u6b3a\\u8bc8 \\u6f06\\u96d5 \\u6f06\\u5de5 \\u6f06\\u753b \\u6f06\\u5668 \\u6f06\\u6811 \\u8e4a\\u5f84 \\u9f50\\u6b65 \\u9f50\\u5531 \\u9f50\\u540d \\u9f50\\u5168 \\u9f50\\u58f0 \\u9f50\\u5929 \\u9f50\\u5934 \\u9f50\\u5fc3 \\u9f50\\u594f \\u5c90\\u5c71 \\u5176\\u6b21 \\u5176\\u95f4 \\u5176\\u5185 \\u5176\\u5b9e \\u5176\\u5148 \\u5176\\u4f59 \\u5176\\u4e2d \\u5947\\u5175 \\u5947\\u624d \\u5947\\u529f \\u5947\\u7978 \\u5947\\u95e8 \\u5947\\u8c0b \\u5947\\u4e8b \\u5947\\u7279 \\u5947\\u6587 \\u5947\\u5fd7 \\u6b67\\u51fa \\u6b67\\u4e49 \\u7948\\u5e74 \\u7948\\u671b \\u7948\\u96e8 \\u8006\\u8001 \\u8006\\u5bbf \\u9880\\u957f \\u8110\\u5e26 \\u9a91\\u4e58 \\u9a91\\u9a6c \\u9a91\\u624b \\u7426\\u5584 \\u68cb\\u5c40 \\u68cb\\u5723 \\u68cb\\u624b \\u68cb\\u5b50 \\u65d7\\u4eba \\u65d7\\u624b \\u65d7\\u4e0b \\u65d7\\u8bed \\u8572\\u86c7 \\u9e92\\u9e9f \\u4e5e\\u7075 \\u4e5e\\u98df \\u4e5e\\u63f4 \\u5c82\\u4e0d \\u5c82\\u975e \\u5c82\\u53ef \\u5c82\\u80fd \\u5c82\\u6b62 \\u4f01\\u9e45 \\u4f01\\u6155 \\u4f01\\u56fe \\u4f01\\u671b \\u542f\\u95ed \\u542f\\u9f7f \\u542f\\u52a8 \\u542f\\u53d1 \\u542f\\u5c01 \\u542f\\u53e3 \\u542f\\u660e \\u542f\\u4e8b \\u542f\\u7528 \\u542f\\u8fd0 \\u542f\\u594f \\u8d77\\u7b14 \\u8d77\\u5175 \\u8d77\\u6b65 \\u8d77\\u8349 \\u8d77\\u521d \\u8d77\\u7535 \\u8d77\\u52a8 \\u8d77\\u98de \\u8d77\\u98ce \\u8d77\\u4f0f \\u8d77\\u822a \\u8d77\\u8d27 \\u8d77\\u6025 \\u8d77\\u5bb6 \\u8d77\\u89c1 \\u8d77\\u964d \\u8d77\\u811a \\u8d77\\u52b2 \\u8d77\\u5c45 \\u8d77\\u6765 \\u8d77\\u7acb \\u8d77\\u6bdb \\u8d77\\u540d \\u8d77\\u8dd1 \\u8d77\\u8272 \\u8d77\\u8eab \\u8d77\\u4e8b \\u8d77\\u9996 \\u8d77\\u5934 \\u8d77\\u5148 \\u8d77\\u591c \\u8d77\\u7591 \\u8d77\\u4e49 \\u8d77\\u610f \\u8d77\\u56e0 \\u8d77\\u7528 \\u8d77\\u8fd0 \\u8d77\\u65e9 \\u8d77\\u6b62 \\u8d77\\u91cd \\u8d77\\u5b50 \\u6c14\\u52a8 \\u6c14\\u5ea6 \\u6c14\\u77ed \\u6c14\\u6982 \\u6c14\\u529f \\u6c14\\u7ba1 \\u6c14\\u6d77 \\u6c14\\u6025 \\u6c14\\u53e3 \\u6c14\\u6d6a \\u6c14\\u51b7 \\u6c14\\u529b \\u6c14\\u8109 \\u6c14\\u7164 \\u6c14\\u95e8 \\u6c14\\u56ca \\u6c14\\u5708 \\u6c14\\u8272 \\u6c14\\u76db \\u6c14\\u52bf \\u6c14\\u6570 \\u6c14\\u56e2 \\u6c14\\u606f \\u6c14\\u6027 \\u6c14\\u80f8 \\u6c14\\u865a \\u6c14\\u97f5 \\u5f03\\u513f \\u5f03\\u5b98 \\u6c7d\\u6696 \\u6c7d\\u6c34 \\u6c7d\\u6cb9 \\u5951\\u4e39 \\u5951\\u5408 \\u5951\\u673a \\u5668\\u6750 \\u5668\\u5b98 \\u5668\\u5177 \\u5668\\u8bc6 \\u5668\\u7528 \\u5668\\u91cd \\u61a9\\u606f \\u6d3d\\u5546 \\u6070\\u597d \\u6070\\u5207 \\u6070\\u5982 \\u6070\\u4f3c \\u5343\\u4f0f \\u5343\\u53e4 \\u5343\\u91d1 \\u5343\\u514b \\u5343\\u7c73 \\u5343\\u5c81 \\u5343\\u4e07 \\u5343\\u5f20 \\u8fc1\\u5b89 \\u8fc1\\u90fd \\u8fc1\\u5c45 \\u948e\\u5b50 \\u7275\\u626f \\u7275\\u63a3 \\u7275\\u8fde \\u7275\\u5ff5 \\u7275\\u5934 \\u7275\\u7cfb \\u94c5\\u7b14 \\u94c5\\u4e39 \\u94c5\\u5f39 \\u94c5\\u76f4 \\u94c5\\u5b57 \\u8c26\\u5351 \\u8c26\\u79f0 \\u8c26\\u8f9e \\u8c26\\u606d \\u8c26\\u548c \\u8c26\\u987a \\u8c26\\u865a \\u7b7e\\u53d1 \\u7b7e\\u540d \\u7b7e\\u6536 \\u7b7e\\u5b57 \\u6106\\u671f \\u524d\\u6b64 \\u524d\\u6b21 \\u524d\\u65b9 \\u524d\\u950b \\u524d\\u811a \\u524d\\u8fdb \\u524d\\u79d1 \\u524d\\u6765 \\u524d\\u4f8b \\u524d\\u5217 \\u524d\\u8305 \\u524d\\u95e8 \\u524d\\u9762 \\u524d\\u8111 \\u524d\\u5e74 \\u524d\\u6392 \\u524d\\u671f \\u524d\\u60c5 \\u524d\\u4eba \\u524d\\u65e5 \\u524d\\u8eab \\u524d\\u751f \\u524d\\u4e8b \\u524d\\u63d0 \\u524d\\u5929 \\u524d\\u5ead \\u524d\\u5acc \\u524d\\u80f8 \\u524d\\u8a00 \\u524d\\u6cbf \\u524d\\u591c \\u524d\\u9662 \\u524d\\u7ad9 \\u524d\\u594f \\u524d\\u4f5c \\u8654\\u5fc3 \\u94b1\\u8d22 \\u94b3\\u5de5 \\u94b3\\u53e3 \\u4e7e\\u5b89 \\u4e7e\\u5764 \\u4e7e\\u53bf \\u6f5c\\u85cf \\u6f5c\\u4f0f \\u6f5c\\u529b \\u6f5c\\u80fd \\u6f5c\\u70ed \\u6f5c\\u6c34 \\u6f5c\\u5fc3 \\u6f5c\\u5728 \\u9ed4\\u6c5f \\u9ed4\\u5357 \\u9ed4\\u9996 \\u6d45\\u767d \\u6d45\\u6de1 \\u6d45\\u8015 \\u6d45\\u6d77 \\u6d45\\u89c1 \\u6d45\\u6d45 \\u6d45\\u8272 \\u6d45\\u6c34 \\u6d45\\u663e \\u6d45\\u5b66 \\u6d45\\u5b50 \\u9063\\u8fd4 \\u9063\\u6563 \\u9063\\u9001 \\u6b20\\u5b89 \\u6b20\\u4ea7 \\u6b20\\u6b3e \\u6b20\\u8eab \\u82a1\\u5b9e \\u831c\\u8349 \\u5029\\u5f71 \\u5d4c\\u5408 \\u6b49\\u5e74 \\u6b49\\u6536 \\u6b49\\u5c81 \\u6b49\\u610f \\u67aa\\u523a \\u67aa\\u5f39 \\u67aa\\u6cd5 \\u67aa\\u51fb \\u67aa\\u53e3 \\u67aa\\u6740 \\u67aa\\u4f24 \\u67aa\\u624b \\u67aa\\u6813 \\u67aa\\u6258 \\u67aa\\u652f \\u6217\\u98ce \\u8154\\u5b50 \\u9516\\u8272 \\u5f3a\\u66b4 \\u5f3a\\u5927 \\u5f3a\\u5ea6 \\u5f3a\\u961f \\u5f3a\\u98ce \\u5f3a\\u653b \\u5f3a\\u56fd \\u5f3a\\u51fb \\u5f3a\\u52a0 \\u5f3a\\u529b \\u5f3a\\u8eab \\u5f3a\\u76db \\u5f3a\\u4f3c \\u5f3a\\u52bf \\u5f3a\\u624b \\u5f3a\\u76f4 \\u5f3a\\u5b50 \\u5899\\u57fa \\u5899\\u89d2 \\u5899\\u811a \\u5899\\u9762 \\u5899\\u5934 \\u5899\\u7eb8 \\u6084\\u58f0 \\u6572\\u6253 \\u6572\\u5b9a \\u6572\\u51fb \\u6572\\u95e8 \\u6572\\u8bc8 \\u4e54\\u6728 \\u4e54\\u88c5 \\u4fa8\\u6c47 \\u4fa8\\u5c45 \\u4fa8\\u6c11 \\u4fa8\\u5c5e \\u4fa8\\u4e61 \\u835e\\u9762 \\u6865\\u57fa \\u6865\\u9762 \\u6865\\u5934 \\u77a7\\u89c1 \\u5de7\\u5408 \\u5de7\\u8ba1 \\u5de7\\u52b2 \\u5de7\\u4e8b \\u5de7\\u624b \\u5de7\\u8a00 \\u4fcf\\u8d27 \\u4fcf\\u9500 \\u5ced\\u62d4 \\u5ced\\u7acb \\u5ced\\u76f4 \\u7a8d\\u95e8 \\u7fd8\\u66f2 \\u7fd8\\u9996 \\u7fd8\\u671b \\u5207\\u53d8 \\u5207\\u9664 \\u5207\\u5f53 \\u5207\\u5200 \\u5207\\u65ad \\u5207\\u82b1 \\u5207\\u5f00 \\u5207\\u53e3 \\u5207\\u9762 \\u5207\\u7247 \\u5207\\u5207 \\u5207\\u524a \\u8304\\u79d1 \\u4e14\\u672b \\u59be\\u8eab \\u7a83\\u56fd \\u7a83\\u542c \\u94a6\\u5b9a \\u94a6\\u6155 \\u94a6\\u4ef0 \\u4fb5\\u6668 \\u4fb5\\u72af \\u4fb5\\u541e \\u4eb2\\u672c \\u4eb2\\u7b14 \\u4eb2\\u5175 \\u4eb2\\u7779 \\u4eb2\\u6545 \\u4eb2\\u548c \\u4eb2\\u53e3 \\u4eb2\\u5386 \\u4eb2\\u4e34 \\u4eb2\\u4eb2 \\u4eb2\\u60c5 \\u4eb2\\u70ed \\u4eb2\\u4eba \\u4eb2\\u5584 \\u4eb2\\u8eab \\u4eb2\\u751f \\u4eb2\\u4e8b \\u4eb2\\u624b \\u4eb2\\u758f \\u4eb2\\u5c5e \\u4eb2\\u968f \\u4eb2\\u738b \\u4eb2\\u4fe1 \\u4eb2\\u5f81 \\u4eb2\\u77e5 \\u4eb2\\u5b50 \\u4eb2\\u81ea \\u79e6\\u90fd \\u79e6\\u8154 \\u7434\\u5e08 \\u7434\\u5f26 \\u79bd\\u820d \\u52e4\\u8c28 \\u52e4\\u82e6 \\u52e4\\u738b \\u52e4\\u5b66 \\u52e4\\u6742 \\u64d2\\u62ff \\u5bdd\\u5bab \\u5bdd\\u5177 \\u5bdd\\u98df \\u5bdd\\u5ba4 \\u9752\\u767d \\u9752\\u8349 \\u9752\\u5ddd \\u9752\\u6625 \\u9752\\u8c46 \\u9752\\u5de5 \\u9752\\u679c \\u9752\\u6d77 \\u9752\\u83b2 \\u9752\\u7075 \\u9752\\u9f99 \\u9752\\u7eff \\u9752\\u5e74 \\u9752\\u9e1f \\u9752\\u9752 \\u9752\\u8272 \\u9752\\u5c71 \\u9752\\u86c7 \\u9752\\u795e \\u9752\\u5929 \\u9752\\u94dc \\u9752\\u8863 \\u9752\\u9c7c \\u9752\\u4e91 \\u9752\\u5dde \\u9752\\u7d2b \\u8f7b\\u4fbf \\u8f7b\\u5ea6 \\u8f7b\\u98ce \\u8f7b\\u6d6e \\u8f7b\\u7f13 \\u8f7b\\u6d3b \\u8f7b\\u770b \\u8f7b\\u7075 \\u8f7b\\u6696 \\u8f7b\\u98d8 \\u8f7b\\u9a91 \\u8f7b\\u8f7b \\u8f7b\\u4f24 \\u8f7b\\u8eab \\u8f7b\\u751f \\u8f7b\\u58f0 \\u8f7b\\u7701 \\u8f7b\\u6c34 \\u8f7b\\u4f7b \\u8f7b\\u5fae \\u8f7b\\u4fe1 \\u8f7b\\u626c \\u8f7b\\u91cd \\u8f7b\\u88c5 \\u8f7b\\u5b50 \\u8f7b\\u7f6a \\u6c22\\u5f39 \\u6c22\\u6c14 \\u503e\\u4fa7 \\u503e\\u5012 \\u503e\\u52a8 \\u503e\\u8986 \\u503e\\u89d2 \\u503e\\u6155 \\u503e\\u56ca \\u503e\\u584c \\u503e\\u542c \\u503e\\u5410 \\u503e\\u5411 \\u503e\\u9500 \\u503e\\u659c \\u503e\\u5fc3 \\u503e\\u8f67 \\u6e05\\u767d \\u6e05\\u6de1 \\u6e05\\u9ad8 \\u6e05\\u5bd2 \\u6e05\\u660e \\u6e05\\u73a9 \\u6e05\\u65b0 \\u6e05\\u626c \\u60c5\\u9762 \\u6674\\u597d \\u6674\\u548c \\u6674\\u7a7a \\u6674\\u5929 \\u9877\\u523b \\u8bf7\\u5b89 \\u8bf7\\u4fbf \\u8bf7\\u529f \\u8bf7\\u6559 \\u8bf7\\u547d \\u8bf7\\u6258 \\u8bf7\\u7f6a \\u5e86\\u529f \\u5e86\\u8d3a \\u5e86\\u4e91 \\u7a77\\u56fd \\u7a77\\u82e6 \\u7a77\\u56f0 \\u7a77\\u671f \\u7a77\\u4eba \\u7a79\\u82cd \\u743c\\u6d77 \\u743c\\u5c71 \\u533a\\u522b \\u533a\\u6bb5 \\u533a\\u95f4 \\u533a\\u5185 \\u533a\\u53bf \\u9a71\\u9664 \\u9a71\\u52a8 \\u9a71\\u8d76 \\u9a71\\u5bd2 \\u9a71\\u8feb \\u9a71\\u9063 \\u9a71\\u6563 \\u9a71\\u90aa \\u9a71\\u8d70 \\u5c48\\u624d \\u5c48\\u4ece \\u5c48\\u5c45 \\u5c48\\u8fb1 \\u5c48\\u6b7b \\u5c48\\u819d \\u795b\\u9664 \\u795b\\u98ce \\u795b\\u90aa \\u8d8b\\u907f \\u8d8b\\u5949 \\u8d8b\\u9644 \\u8d8b\\u65f6 \\u8d8b\\u52bf \\u8d8b\\u5411 \\u6e20\\u9053 \\u66f2\\u89e3 \\u66f2\\u5f84 \\u66f2\\u76f4 \\u53d6\\u4fdd \\u53d6\\u6750 \\u53d6\\u9053 \\u53d6\\u6cd5 \\u53d6\\u7ecf \\u53d6\\u4e50 \\u53d6\\u540d \\u53d6\\u95f9 \\u53d6\\u6696 \\u53d6\\u5e73 \\u53d6\\u80dc \\u53d6\\u4e0b \\u53d6\\u5411 \\u53d6\\u6d88 \\u53d6\\u4fe1 \\u9f8b\\u9f7f \\u53bb\\u9664 \\u53bb\\u6389 \\u53bb\\u56fd \\u53bb\\u5e74 \\u53bb\\u65e5 \\u53bb\\u58f0 \\u53bb\\u5c81 \\u53bb\\u5411 \\u53bb\\u96c4 \\u8da3\\u4e8b \\u5708\\u5730 \\u6743\\u53d8 \\u6743\\u529b \\u6743\\u5229 \\u6743\\u95e8 \\u6743\\u8c0b \\u6743\\u80fd \\u6743\\u4e14 \\u6743\\u65f6 \\u6743\\u52bf \\u6743\\u6570 \\u6743\\u5a01 \\u6743\\u8bc8 \\u6743\\u91cd \\u5168\\u672c \\u5168\\u90e8 \\u5168\\u624d \\u5168\\u79f0 \\u5168\\u56fd \\u5168\\u4f1a \\u5168\\u5bb6 \\u5168\\u5c40 \\u5168\\u519b \\u5168\\u5f00 \\u5168\\u529b \\u5168\\u8c8c \\u5168\\u9762 \\u5168\\u6c11 \\u5168\\u80fd \\u5168\\u5e74 \\u5168\\u4eba \\u5168\\u8272 \\u5168\\u8eab \\u5168\\u80dc \\u5168\\u76db \\u5168\\u98df \\u5168\\u6570 \\u5168\\u901f \\u5168\\u5929 \\u5168\\u6258 \\u5168\\u6587 \\u5168\\u606f \\u5168\\u6821 \\u5168\\u65b0 \\u5168\\u97f3 \\u5168\\u957f \\u8be0\\u6b21 \\u6cc9\\u6c34 \\u6cc9\\u4e0b \\u62f3\\u53c2 \\u62f3\\u51fb \\u62f3\\u811a \\u62f3\\u5e08 \\u62f3\\u624b \\u62f3\\u738b \\u8737\\u4f0f \\u8737\\u5c40 \\u8737\\u66f2 \\u8737\\u7f29 \\u98a7\\u9aa8 \\u72ac\\u9f7f \\u72ac\\u9a6c \\u72ac\\u5b50 \\u529d\\u548c \\u529d\\u89e3 \\u529d\\u8fdb \\u529d\\u5584 \\u529d\\u5b66 \\u529d\\u8bf1 \\u529d\\u963b \\u7f3a\\u5fb7 \\u7f3a\\u8d27 \\u7f3a\\u53e3 \\u7f3a\\u95e8 \\u7f3a\\u5931 \\u7f3a\\u9677 \\u7638\\u5b50 \\u5374\\u6b65 \\u786e\\u4fdd \\u786e\\u5b9a \\u786e\\u7acb \\u786e\\u5b9e \\u786e\\u4fe1 \\u786e\\u51ff \\u9e4a\\u8d77 \\u9619\\u5982 \\u9619\\u7591 \\u9021\\u5de1 \\u88d9\\u5e26 \\u7fa4\\u5c45 \\u7fa4\\u805a \\u7fa4\\u60c5 \\u7fa4\\u5c71 \\u7fa4\\u50cf \\u7fa4\\u96c4 \\u7fa4\\u4f17 \\u9aef\\u53e3 \\u71c3\\u653e \\u71c3\\u70e7 \\u67d3\\u8272 \\u74e4\\u5b50 \\u58e4\\u571f \\u6518\\u9664 \\u6518\\u5916 \\u8ba9\\u6b65 \\u8ba9\\u9053 \\u8ba9\\u5f00 \\u9976\\u547d \\u9976\\u4eba \\u9976\\u5934 \\u6861\\u9aa8 \\u6270\\u52a8 \\u6270\\u4e71 \\u6270\\u6c11 \\u7ed5\\u9053 \\u60f9\\u7978 \\u60f9\\u6c14 \\u60f9\\u4e8b \\u70ed\\u7231 \\u70ed\\u8865 \\u70ed\\u80a0 \\u70ed\\u5e26 \\u70ed\\u7535 \\u70ed\\u5ea6 \\u70ed\\u98ce \\u70ed\\u72d7 \\u70ed\\u673a \\u70ed\\u6d6a \\u70ed\\u529b \\u70ed\\u95e8 \\u70ed\\u95f9 \\u70ed\\u80fd \\u70ed\\u6c14 \\u70ed\\u60c5 \\u70ed\\u6c34 \\u70ed\\u6c64 \\u70ed\\u5929 \\u70ed\\u571f \\u70ed\\u671b \\u70ed\\u9500 \\u70ed\\u5fc3 \\u70ed\\u996e \\u4eba\\u624d \\u4eba\\u79f0 \\u4eba\\u6b21 \\u4eba\\u5927 \\u4eba\\u4e39 \\u4eba\\u9053 \\u4eba\\u72af \\u4eba\\u9632 \\u4eba\\u683c \\u4eba\\u5de5 \\u4eba\\u6d77 \\u4eba\\u7978 \\u4eba\\u5bb6 \\u4eba\\u95f4 \\u4eba\\u7cbe \\u4eba\\u53e3 \\u4eba\\u529b \\u4eba\\u9a6c \\u4eba\\u6c11 \\u4eba\\u547d \\u4eba\\u54c1 \\u4eba\\u6c14 \\u4eba\\u60c5 \\u4eba\\u7fa4 \\u4eba\\u4eba \\u4eba\\u65e5 \\u4eba\\u8eab \\u4eba\\u751f \\u4eba\\u58f0 \\u4eba\\u65f6 \\u4eba\\u4e8b \\u4eba\\u624b \\u4eba\\u6570 \\u4eba\\u5934 \\u4eba\\u671b \\u4eba\\u4e3a \\u4eba\\u6587 \\u4eba\\u50cf \\u4eba\\u5fc3 \\u4eba\\u6027 \\u4eba\\u70df \\u4eba\\u610f \\u4eba\\u5f71 \\u4eba\\u9c7c \\u4eba\\u4e2d \\u4eba\\u79cd \\u4eba\\u4e3b \\u4ec1\\u7231 \\u4ec1\\u5fb7 \\u4ec1\\u679c \\u4ec1\\u539a \\u4ec1\\u4eba \\u4ec1\\u5144 \\u4ec1\\u4e49 \\u5fcd\\u8010 \\u5fcd\\u53d7 \\u5fcd\\u75db \\u5fcd\\u5fc3 \\u7a14\\u719f \\u7a14\\u77e5 \\u5203\\u5177 \\u5203\\u53e3 \\u8ba4\\u51fa \\u8ba4\\u9519 \\u8ba4\\u5b9a \\u8ba4\\u80a1 \\u8ba4\\u53ef \\u8ba4\\u660e \\u8ba4\\u547d \\u8ba4\\u4eb2 \\u8ba4\\u6e05 \\u8ba4\\u751f \\u8ba4\\u8f93 \\u8ba4\\u540c \\u8ba4\\u5934 \\u8ba4\\u4e3a \\u8ba4\\u771f \\u8ba4\\u77e5 \\u8ba4\\u5b57 \\u8ba4\\u7f6a \\u8ba4\\u4f5c \\u4efb\\u4fbf \\u4efb\\u4ece \\u4efb\\u4f55 \\u4efb\\u6559 \\u4efb\\u8109 \\u4efb\\u547d \\u4efb\\u671f \\u4efb\\u60c5 \\u4efb\\u6027 \\u4efb\\u610f \\u4efb\\u7528 \\u97e7\\u5e26 \\u97e7\\u52b2 \\u97e7\\u6027 \\u65e5\\u73ed \\u65e5\\u672c \\u65e5\\u51fa \\u65e5\\u5de5 \\u65e5\\u5149 \\u65e5\\u89c4 \\u65e5\\u95f4 \\u65e5\\u89c1 \\u65e5\\u6e10 \\u65e5\\u520a \\u65e5\\u5386 \\u65e5\\u66ae \\u65e5\\u5185 \\u65e5\\u671f \\u65e5\\u524d \\u65e5\\u5c04 \\u65e5\\u98df \\u65e5\\u6258 \\u65e5\\u591c \\u65e5\\u5f71 \\u65e5\\u7528 \\u65e5\\u8bed \\u65e5\\u5143 \\u65e5\\u5706 \\u65e5\\u6708 \\u65e5\\u6742 \\u65e5\\u7167 \\u65e5\\u5fd7 \\u65e5\\u4e2d \\u620e\\u673a \\u620e\\u9a6c \\u620e\\u88c5 \\u8338\\u6bdb \\u8363\\u5149 \\u8363\\u5f52 \\u8363\\u8fb1 \\u7ed2\\u82b1 \\u7ed2\\u6bdb \\u7ed2\\u8863 \\u5bb9\\u9519 \\u5bb9\\u5149 \\u5bb9\\u79ef \\u5bb9\\u8c8c \\u5bb9\\u7eb3 \\u5bb9\\u5668 \\u5bb9\\u60c5 \\u5bb9\\u4eba \\u5bb9\\u8eab \\u6eb6\\u5408 \\u6eb6\\u89e3 \\u6eb6\\u6eb6 \\u6995\\u6811 \\u7194\\u65ad \\u7194\\u89e3 \\u878d\\u5408 \\u878d\\u548c \\u878d\\u4f1a \\u878d\\u89e3 \\u878d\\u901a \\u5197\\u7b14 \\u5197\\u7e41 \\u5197\\u4f59 \\u5197\\u6742 \\u5197\\u957f \\u67d4\\u80a0 \\u67d4\\u9053 \\u67d4\\u548c \\u67d4\\u6ed1 \\u67d4\\u7f8e \\u67d4\\u60c5 \\u67d4\\u6da6 \\u67d4\\u987a \\u67d4\\u6027 \\u7cc5\\u5408 \\u8089\\u997c \\u8089\\u5e72 \\u8089\\u6842 \\u8089\\u679c \\u8089\\u7ea2 \\u8089\\u7cdc \\u8089\\u672b \\u8089\\u6392 \\u8089\\u7247 \\u8089\\u8272 \\u8089\\u8eab \\u8089\\u98df \\u8089\\u75db \\u8089\\u5934 \\u8089\\u732a \\u5982\\u521d \\u5982\\u6b64 \\u5982\\u6b21 \\u5982\\u6545 \\u5982\\u679c \\u5982\\u4f55 \\u5982\\u6765 \\u5982\\u671f \\u5982\\u4e0a \\u5982\\u5b9e \\u5982\\u6570 \\u5982\\u540c \\u5982\\u4e0b \\u5982\\u4e00 \\u5982\\u610f \\u5112\\u5bb6 \\u5112\\u6559 \\u5112\\u751f \\u5112\\u5b66 \\u5112\\u96c5 \\u5685\\u52a8 \\u5b7a\\u5b50 \\u8815\\u52a8 \\u8815\\u8815 \\u4e73\\u767d \\u4e73\\u9f7f \\u4e73\\u513f \\u4e73\\u7cdc \\u4e73\\u540d \\u4e73\\u6bcd \\u4e73\\u7cd6 \\u4e73\\u5934 \\u4e73\\u9999 \\u8fb1\\u547d \\u5165\\u8d85 \\u5165\\u515a \\u5165\\u9053 \\u5165\\u5b9a \\u5165\\u51ac \\u5165\\u961f \\u5165\\u4f0f \\u5165\\u80a1 \\u5165\\u9aa8 \\u5165\\u753b \\u5165\\u4f1a \\u5165\\u53e3 \\u5165\\u5217 \\u5165\\u95e8 \\u5165\\u7720 \\u5165\\u5c04 \\u5165\\u795e \\u5165\\u58f0 \\u5165\\u65f6 \\u5165\\u5ba4 \\u5165\\u624b \\u5165\\u7761 \\u5165\\u571f \\u5165\\u56e2 \\u5165\\u6258 \\u5165\\u5fae \\u5165\\u90aa \\u5165\\u5b66 \\u5165\\u591c \\u5165\\u9662 \\u5165\\u4e3b \\u6ebd\\u70ed \\u8925\\u5355 \\u962e\\u5143 \\u8f6f\\u98ce \\u8f6f\\u818f \\u8f6f\\u9aa8 \\u8f6f\\u7ba1 \\u8f6f\\u78e8 \\u8f6f\\u6728 \\u8f6f\\u7247 \\u8f6f\\u98df \\u8f6f\\u6c34 \\u8f6f\\u7cd6 \\u8f6f\\u6027 \\u9510\\u89d2 \\u9510\\u5229 \\u9510\\u6c14 \\u9510\\u610f \\u745e\\u91d1 \\u745e\\u9999 \\u745e\\u661f \\u777f\\u667a \\u95f0\\u5e74 \\u95f0\\u65e5 \\u95f0\\u6708 \\u6da6\\u7b14 \\u6da6\\u683c \\u6da6\\u6ed1 \\u6da6\\u8272 \\u6da6\\u9970 \\u82e5\\u975e \\u82e5\\u5e72 \\u82e5\\u679c \\u82e5\\u4f55 \\u504c\\u5927 \\u5f31\\u6c34 \\u5f31\\u5c0f \\u5f31\\u667a \\u6d12\\u5bb6 \\u6d12\\u6d12 \\u6d12\\u8131 \\u6492\\u65e6 \\u6492\\u5f00 \\u6492\\u62c9 \\u6492\\u6c14 \\u6492\\u624b \\u6492\\u91ce \\u816e\\u7ea2 \\u585e\\u89c4 \\u585e\\u4e0a \\u8d5b\\u4f1a \\u8d5b\\u9a6c \\u8d5b\\u8dd1 \\u8d5b\\u4e8b \\u4e09\\u516b \\u4e09\\u73ed \\u4e09\\u5b9d \\u4e09\\u4e58 \\u4e09\\u90fd \\u4e09\\u4f0f \\u4e09\\u56fd \\u4e09\\u597d \\u4e09\\u5408 \\u4e09\\u6cb3 \\u4e09\\u7687 \\u4e09\\u6c5f \\u4e09\\u89d2 \\u4e09\\u6559 \\u4e09\\u519b \\u4e09\\u8f6e \\u4e09\\u95e8 \\u4e09\\u660e \\u4e09\\u519c \\u4e09\\u4e03 \\u4e09\\u751f \\u4e09\\u7272 \\u4e09\\u5341 \\u4e09\\u601d \\u4e09\\u9c9c \\u4e09\\u5f26 \\u4e09\\u76f8 \\u4e09\\u661f \\u4e09\\u5143 \\u4e09\\u6708 \\u4f1e\\u5175 \\u6563\\u6b65 \\u6563\\u653e \\u6563\\u4f1a \\u6563\\u5f00 \\u6563\\u5931 \\u6563\\u6c34 \\u6563\\u5fc3 \\u6851\\u679c \\u6851\\u53f6 \\u55d3\\u95e8 \\u55d3\\u97f3 \\u4e27\\u793c \\u4e27\\u4e71 \\u4e27\\u4e8b \\u6414\\u9996 \\u6414\\u5934 \\u9a9a\\u52a8 \\u9a9a\\u4e71 \\u9a9a\\u4eba \\u626b\\u9664 \\u626b\\u5730 \\u626b\\u9ec4 \\u626b\\u96f7 \\u626b\\u76f2 \\u626b\\u706d \\u626b\\u5e73 \\u626b\\u6e05 \\u626b\\u5c04 \\u626b\\u6570 \\u8272\\u5dee \\u8272\\u5ea6 \\u8272\\u5149 \\u8272\\u9b3c \\u8272\\u62c9 \\u8272\\u72fc \\u8272\\u76f2 \\u8272\\u60c5 \\u8272\\u6563 \\u8272\\u7d20 \\u745f\\u7f29 \\u50e7\\u4eba \\u50e7\\u5f92 \\u50e7\\u4f17 \\u6740\\u673a \\u6740\\u6c14 \\u6740\\u9752 \\u6740\\u4eba \\u6740\\u4f24 \\u6740\\u751f \\u6740\\u624b \\u6740\\u6b7b \\u6740\\u5934 \\u6c99\\u66b4 \\u6c99\\u5730 \\u6c99\\u53d1 \\u6c99\\u679c \\u6c99\\u8352 \\u6c99\\u7687 \\u6c99\\u68d8 \\u6c99\\u91d1 \\u6c99\\u9f99 \\u6c99\\u95e8 \\u6c99\\u6c99 \\u6c99\\u5e02 \\u6c99\\u571f \\u6c99\\u9c7c \\u6c99\\u6d74 \\u7eb1\\u5382 \\u7eb1\\u95e8 \\u7802\\u91d1 \\u7802\\u8f6e \\u7802\\u56ca \\u7802\\u7cd6 \\u7802\\u571f \\u7802\\u7eb8 \\u7802\\u5b50 \\u838e\\u8349 \\u50bb\\u74dc \\u50bb\\u6c14 \\u715e\\u7b14 \\u970e\\u65f6 \\u7b5b\\u5b50 \\u6652\\u573a \\u6652\\u5e72 \\u6652\\u56fe \\u5c71\\u8349 \\u5c71\\u5ddd \\u5c71\\u6751 \\u5c71\\u4e39 \\u5c71\\u9053 \\u5c71\\u5730 \\u5c71\\u98a0 \\u5c71\\u4e1c \\u5c71\\u98ce \\u5c71\\u6b4c \\u5c71\\u56fd \\u5c71\\u679c \\u5c71\\u6cb3 \\u5c71\\u6d2a \\u5c71\\u547c \\u5c71\\u82b1 \\u5c71\\u8d27 \\u5c71\\u811a \\u5c71\\u5f84 \\u5c71\\u5c45 \\u5c71\\u53e3 \\u5c71\\u8109 \\u5c71\\u95e8 \\u5c71\\u6c11 \\u5c71\\u96c0 \\u5c71\\u4eba \\u5c71\\u8272 \\u5c71\\u795e \\u5c71\\u52bf \\u5c71\\u6c34 \\u5c71\\u6843 \\u5c71\\u5934 \\u5c71\\u897f \\u5c71\\u7cfb \\u5c71\\u4e61 \\u5c71\\u54cd \\u5c71\\u7f8a \\u5c71\\u91ce \\u5c71\\u9634 \\u5c71\\u732a \\u5c71\\u5b50 \\u829f\\u9664 \\u6749\\u6728 \\u5220\\u9664 \\u5220\\u6539 \\u717d\\u52a8 \\u717d\\u60c5 \\u7a47\\u5b50 \\u81bb\\u6c14 \\u81bb\\u4e2d \\u95ea\\u907f \\u95ea\\u7535 \\u95ea\\u52a8 \\u95ea\\u5149 \\u95ea\\u8fc7 \\u95ea\\u51fb \\u95ea\\u5f00 \\u95ea\\u5ff5 \\u95ea\\u5c04 \\u95ea\\u8eab \\u95ea\\u5931 \\u95ea\\u73b0 \\u9655\\u897f \\u759d\\u6c14 \\u6247\\u9aa8 \\u6247\\u9762 \\u6247\\u5760 \\u5584\\u672c \\u5584\\u53d8 \\u5584\\u4e3e \\u5584\\u4eba \\u5584\\u4e8b \\u5584\\u5fc3 \\u5584\\u610f \\u912f\\u5584 \\u64c5\\u957f \\u64c5\\u81ea \\u81b3\\u8d39 \\u81b3\\u98df \\u5b17\\u53d8 \\u8d61\\u517b \\u4f24\\u60b2 \\u4f24\\u5175 \\u4f24\\u98ce \\u4f24\\u5bd2 \\u4f24\\u6000 \\u4f24\\u79d1 \\u4f24\\u53e3 \\u4f24\\u60c5 \\u4f24\\u8eab \\u4f24\\u795e \\u4f24\\u751f \\u4f24\\u52bf \\u4f24\\u75db \\u4f24\\u5fc3 \\u5546\\u5b9a \\u5546\\u90fd \\u5546\\u961f \\u5546\\u884c \\u5546\\u4f1a \\u5546\\u8ba1 \\u5546\\u5bb6 \\u5546\\u68c0 \\u5546\\u91cf \\u5546\\u54c1 \\u5546\\u60c5 \\u5546\\u4eba \\u5546\\u56e2 \\u5546\\u8bae \\u5892\\u60c5 \\u664c\\u5348 \\u8d4f\\u5c01 \\u8d4f\\u5149 \\u8d4f\\u91d1 \\u8d4f\\u8bc6 \\u8d4f\\u73a9 \\u8d4f\\u6708 \\u4e0a\\u73ed \\u4e0a\\u82cd \\u4e0a\\u64cd \\u4e0a\\u4e58 \\u4e0a\\u5507 \\u4e0a\\u6b21 \\u4e0a\\u65b9 \\u4e0a\\u98ce \\u4e0a\\u6d6e \\u4e0a\\u5de5 \\u4e0a\\u53e4 \\u4e0a\\u5b98 \\u4e0a\\u6d77 \\u4e0a\\u597d \\u4e0a\\u56de \\u4e0a\\u8d27 \\u4e0a\\u5bb6 \\u4e0a\\u4ea4 \\u4e0a\\u7d27 \\u4e0a\\u8fdb \\u4e0a\\u52b2 \\u4e0a\\u7a7a \\u4e0a\\u53e3 \\u4e0a\\u6b3e \\u4e0a\\u6765 \\u4e0a\\u5217 \\u4e0a\\u9a6c \\u4e0a\\u95e8 \\u4e0a\\u9762 \\u4e0a\\u5e74 \\u4e0a\\u54c1 \\u4e0a\\u4eba \\u4e0a\\u5c71 \\u4e0a\\u4e0a \\u4e0a\\u8eab \\u4e0a\\u5e02 \\u4e0a\\u624b \\u4e0a\\u9996 \\u4e0a\\u6c34 \\u4e0a\\u7a0e \\u4e0a\\u53f8 \\u4e0a\\u6eaf \\u4e0a\\u7b97 \\u4e0a\\u9501 \\u4e0a\\u5929 \\u4e0a\\u5c09 \\u4e0a\\u6587 \\u4e0a\\u5348 \\u4e0a\\u4e0b \\u4e0a\\u5f26 \\u4e0a\\u6821 \\u4e0a\\u5fc3 \\u4e0a\\u5b66 \\u4e0a\\u53f6 \\u4e0a\\u8863 \\u4e0a\\u6e38 \\u4e0a\\u9662 \\u4e0a\\u6708 \\u4e0a\\u6da8 \\u4e0a\\u88c5 \\u4e0a\\u594f \\u5c1a\\u53ef \\u5c1a\\u4e14 \\u5c1a\\u5fd7 \\u634e\\u5e26 \\u634e\\u811a \\u70e7\\u676f \\u70e7\\u997c \\u70e7\\u8352 \\u70e7\\u6bc1 \\u70e7\\u5356 \\u70e7\\u4f24 \\u70e7\\u9999 \\u70e7\\u5fc3 \\u70e7\\u7eb8 \\u7a0d\\u4e8b \\u7a0d\\u5fae \\u7a0d\\u4e3a \\u8244\\u516c \\u97f6\\u5149 \\u5c11\\u513f \\u5c11\\u6d77 \\u5c11\\u89c1 \\u5c11\\u523b \\u5c11\\u793c \\u5c11\\u5546 \\u5c11\\u65f6 \\u5c11\\u6570 \\u5c11\\u6709 \\u54e8\\u5175 \\u54e8\\u5361 \\u820d\\u95f4 \\u820d\\u5229 \\u820d\\u8eab \\u820d\\u4e0b \\u8bbe\\u5b9a \\u8bbe\\u6cd5 \\u8bbe\\u9632 \\u8bbe\\u4f0f \\u8bbe\\u8ba1 \\u8bbe\\u5c40 \\u8bbe\\u7acb \\u8bbe\\u8272 \\u8bbe\\u65bd \\u793e\\u4f1a \\u793e\\u4ea4 \\u793e\\u8bba \\u793e\\u8bc4 \\u793e\\u7fa4 \\u793e\\u56e2 \\u5c04\\u51fb \\u5c04\\u7cbe \\u5c04\\u95e8 \\u5c04\\u9891 \\u5c04\\u624b \\u5c04\\u5f71 \\u6d89\\u7b14 \\u6d89\\u5916 \\u6d89\\u5acc \\u6444\\u751f \\u6444\\u98df \\u6444\\u50cf \\u6444\\u5f71 \\u9e9d\\u9999 \\u7533\\u660e \\u7533\\u8bf7 \\u7533\\u65f6 \\u4f38\\u51fa \\u4f38\\u5f00 \\u4f38\\u624b \\u4f38\\u7f29 \\u4f38\\u5f20 \\u4f38\\u957f \\u4f38\\u76f4 \\u8eab\\u6750 \\u8eab\\u6bb5 \\u8eab\\u9ad8 \\u8eab\\u6545 \\u8eab\\u5bb6 \\u8eab\\u6559 \\u8eab\\u8eaf \\u8eab\\u4e0a \\u8eab\\u624b \\u8eab\\u53d7 \\u8eab\\u5fc3 \\u8eab\\u5f71 \\u8eab\\u957f \\u8eab\\u7740 \\u547b\\u541f \\u6df1\\u5ea6 \\u6df1\\u8015 \\u6df1\\u5e7f \\u6df1\\u6d45 \\u6df1\\u60c5 \\u6df1\\u5c71 \\u6df1\\u6df1 \\u6df1\\u901a \\u6df1\\u900f \\u6df1\\u5df7 \\u6df1\\u4fe1 \\u6df1\\u591c \\u6df1\\u610f \\u6df1\\u5e7d \\u6df1\\u8fdc \\u6df1\\u957f \\u4ec0\\u9526 \\u795e\\u7b14 \\u795e\\u9053 \\u795e\\u5c01 \\u795e\\u9b42 \\u795e\\u4ea4 \\u795e\\u7ecf \\u795e\\u529b \\u795e\\u804a \\u795e\\u7075 \\u795e\\u95e8 \\u795e\\u79d8 \\u795e\\u660e \\u795e\\u6728 \\u795e\\u519c \\u795e\\u5973 \\u795e\\u54c1 \\u795e\\u5947 \\u795e\\u6c14 \\u795e\\u5668 \\u795e\\u60c5 \\u795e\\u66f2 \\u795e\\u4eba \\u795e\\u8272 \\u795e\\u4f24 \\u795e\\u793e \\u795e\\u5723 \\u795e\\u4f3c \\u795e\\u901f \\u795e\\u7b97 \\u795e\\u5ead \\u795e\\u901a \\u795e\\u5a01 \\u795e\\u4ed9 \\u795e\\u50cf \\u795e\\u6548 \\u795e\\u5b66 \\u795e\\u6e38 \\u795e\\u97f5 \\u795e\\u5fd7 \\u795e\\u667a \\u795e\\u5dde \\u795e\\u4e3b \\u5ba1\\u5bdf \\u5ba1\\u5b9a \\u5ba1\\u6539 \\u5ba1\\u6838 \\u5ba1\\u8ba1 \\u5ba1\\u7f8e \\u5ba1\\u5224 \\u5ba1\\u9a8c \\u5ba1\\u8bae \\u54c2\\u7eb3 \\u80be\\u4e8f \\u80be\\u56ca \\u751a\\u4e3a \\u614e\\u91cd \\u5347\\u73ed \\u5347\\u6c89 \\u5347\\u9ad8 \\u5347\\u683c \\u5347\\u5b98 \\u5347\\u964d \\u5347\\u7a7a \\u5347\\u529b \\u5347\\u5e73 \\u5347\\u8d77 \\u5347\\u5929 \\u5347\\u5b66 \\u5347\\u6da8 \\u751f\\u53d8 \\u751f\\u8d22 \\u751f\\u4ea7 \\u751f\\u6210 \\u751f\\u8bcd \\u751f\\u5730 \\u751f\\u52a8 \\u751f\\u756a \\u751f\\u98ce \\u751f\\u5149 \\u751f\\u8fd8 \\u751f\\u6d3b \\u751f\\u673a \\u751f\\u8ba1 \\u751f\\u6050 \\u751f\\u6765 \\u751f\\u51b7 \\u751f\\u529b \\u751f\\u7075 \\u751f\\u9762 \\u751f\\u547d \\u751f\\u6bcd \\u751f\\u5e73 \\u751f\\u6c14 \\u751f\\u524d \\u751f\\u4eba \\u751f\\u65e5 \\u751f\\u8089 \\u751f\\u8272 \\u751f\\u8eab \\u751f\\u751f \\u751f\\u4e8b \\u751f\\u624b \\u751f\\u758f \\u751f\\u6c34 \\u751f\\u6b7b \\u751f\\u94c1 \\u751f\\u571f \\u751f\\u606f \\u751f\\u6548 \\u751f\\u6027 \\u751f\\u517b \\u751f\\u7591 \\u751f\\u610f \\u751f\\u6cb9 \\u751f\\u80b2 \\u751f\\u732a \\u751f\\u5b57 \\u58f0\\u6ce2 \\u58f0\\u90e8 \\u58f0\\u79f0 \\u58f0\\u5e26 \\u58f0\\u5149 \\u58f0\\u6d6a \\u58f0\\u95e8 \\u58f0\\u540d \\u58f0\\u660e \\u58f0\\u6bcd \\u58f0\\u7eb3 \\u58f0\\u65c1 \\u58f0\\u9891 \\u58f0\\u8154 \\u58f0\\u60c5 \\u58f0\\u8bf7 \\u58f0\\u8272 \\u58f0\\u52bf \\u58f0\\u901f \\u58f0\\u671b \\u58f0\\u5a01 \\u58f0\\u606f \\u58f0\\u54cd \\u58f0\\u5b66 \\u58f0\\u8a00 \\u58f0\\u626c \\u58f0\\u97f3 \\u58f0\\u63f4 \\u58f0\\u97f5 \\u58f0\\u5f20 \\u58f0\\u963b \\u7272\\u53e3 \\u7525\\u5973 \\u7701\\u4fbf \\u7701\\u9053 \\u7701\\u4f1a \\u7701\\u529b \\u7701\\u5374 \\u7701\\u4e8b \\u7701\\u5fc3 \\u5723\\u5730 \\u5723\\u6d01 \\u5723\\u7ecf \\u5723\\u7075 \\u5723\\u660e \\u5723\\u6bcd \\u5723\\u4eba \\u5723\\u4e0a \\u5723\\u624b \\u5723\\u6c34 \\u80dc\\u8d25 \\u80dc\\u5730 \\u80dc\\u8fc7 \\u80dc\\u5229 \\u80dc\\u4f3c \\u80dc\\u7b97 \\u5269\\u4e0b \\u5269\\u4f59 \\u5c38\\u9aa8 \\u5c38\\u8eab \\u5c38\\u9996 \\u5931\\u8d25 \\u5931\\u5bdf \\u5931\\u4f20 \\u5931\\u5355 \\u5931\\u5730 \\u5931\\u6389 \\u5931\\u548c \\u5931\\u68c0 \\u5931\\u53e3 \\u5931\\u793c \\u5931\\u5229 \\u5931\\u7075 \\u5931\\u7720 \\u5931\\u660e \\u5931\\u914d \\u5931\\u5374 \\u5931\\u7fa4 \\u5931\\u6563 \\u5931\\u8272 \\u5931\\u8eab \\u5931\\u795e \\u5931\\u58f0 \\u5931\\u65f6 \\u5931\\u5b9e \\u5931\\u52bf \\u5931\\u4e8b \\u5931\\u624b \\u5931\\u5b88 \\u5931\\u6c34 \\u5931\\u901f \\u5931\\u7b97 \\u5931\\u8c03 \\u5931\\u671b \\u5931\\u9677 \\u5931\\u6548 \\u5931\\u4fe1 \\u5931\\u5b66 \\u5931\\u8a00 \\u5931\\u610f \\u5931\\u97f3 \\u5931\\u771f \\u5931\\u91cd \\u5931\\u4e3b \\u5e08\\u8868 \\u5e08\\u4f20 \\u5e08\\u5fb7 \\u5e08\\u6cd5 \\u5e08\\u516c \\u5e08\\u6bcd \\u5e08\\u751f \\u5e08\\u4e8b \\u5e08\\u5f92 \\u5e08\\u56e2 \\u5e08\\u5144 \\u8bd7\\u7891 \\u8bd7\\u624d \\u8bd7\\u6284 \\u8bd7\\u8bcd \\u8bd7\\u98ce \\u8bd7\\u6b4c \\u8bd7\\u884c \\u8bd7\\u4f1a \\u8bd7\\u53e5 \\u8bd7\\u8bba \\u8bd7\\u60c5 \\u8bd7\\u4eba \\u8bd7\\u793e \\u8bd7\\u5723 \\u8bd7\\u6587 \\u8bd7\\u5b66 \\u8bd7\\u610f \\u8bd7\\u97f5 \\u8bd7\\u4f5c \\u65bd\\u6069 \\u65bd\\u6cd5 \\u65bd\\u653e \\u65bd\\u80a5 \\u65bd\\u5de5 \\u65bd\\u52a0 \\u65bd\\u6559 \\u65bd\\u793c \\u65bd\\u4e8b \\u65bd\\u5a01 \\u65bd\\u7528 \\u65bd\\u4e0e \\u65bd\\u4e3b \\u6e7f\\u5730 \\u6e7f\\u5ea6 \\u6e7f\\u6c14 \\u6e7f\\u70ed \\u6e7f\\u6da6 \\u6e7f\\u900f \\u84cd\\u8349 \\u5341\\u4e8c \\u5341\\u65b9 \\u5341\\u5e74 \\u5341\\u5168 \\u5341\\u4e07 \\u5341\\u4e00 \\u5341\\u6708 \\u5341\\u5b57 \\u77f3\\u7891 \\u77f3\\u7b14 \\u77f3\\u6750 \\u77f3\\u96d5 \\u77f3\\u65b9 \\u77f3\\u818f \\u77f3\\u5de5 \\u77f3\\u9f13 \\u77f3\\u5173 \\u77f3\\u7ecf \\u77f3\\u574e \\u77f3\\u523b \\u77f3\\u95e8 \\u77f3\\u78e8 \\u77f3\\u5973 \\u77f3\\u5c4f \\u77f3\\u5668 \\u77f3\\u9752 \\u77f3\\u5c71 \\u77f3\\u5ba4 \\u77f3\\u9996 \\u77f3\\u9501 \\u77f3\\u50cf \\u77f3\\u6cb9 \\u77f3\\u5b50 \\u65f6\\u5dee \\u65f6\\u5149 \\u65f6\\u673a \\u65f6\\u95f4 \\u65f6\\u5c40 \\u65f6\\u523b \\u65f6\\u7a7a \\u65f6\\u8bc4 \\u65f6\\u671f \\u65f6\\u6c14 \\u65f6\\u4eba \\u65f6\\u65e5 \\u65f6\\u65f6 \\u65f6\\u52bf \\u65f6\\u4e8b \\u65f6\\u901f \\u65f6\\u4e0b \\u65f6\\u9c9c \\u65f6\\u6548 \\u65f6\\u65b0 \\u8bc6\\u522b \\u8bc6\\u624d \\u8bc6\\u8d27 \\u8bc6\\u89c1 \\u8bc6\\u7834 \\u8bc6\\u5b57 \\u5b9e\\u8bcd \\u5b9e\\u5f39 \\u5b9e\\u5730 \\u5b9e\\u529b \\u5b9e\\u4f8b \\u5b9e\\u60c5 \\u5b9e\\u65bd \\u5b9e\\u65f6 \\u5b9e\\u5b9e \\u5b9e\\u4e8b \\u5b9e\\u6536 \\u5b9e\\u6570 \\u5b9e\\u73b0 \\u5b9e\\u50cf \\u5b9e\\u6548 \\u5b9e\\u5fc3 \\u5b9e\\u5b66 \\u5b9e\\u9a8c \\u5b9e\\u610f \\u5b9e\\u7528 \\u5b9e\\u5728 \\u5b9e\\u62db \\u5b9e\\u5b57 \\u62fe\\u8352 \\u62fe\\u96f6 \\u62fe\\u9057 \\u98df\\u9053 \\u98df\\u7ba1 \\u98df\\u79ef \\u98df\\u5177 \\u98df\\u54c1 \\u98df\\u8089 \\u98df\\u751a \\u98df\\u7cd6 \\u98df\\u76f8 \\u98df\\u6027 \\u98df\\u5bbf \\u98df\\u8a00 \\u98df\\u7528 \\u98df\\u6cb9 \\u8680\\u672c \\u8680\\u523b \\u53f2\\u5b98 \\u53f2\\u8bba \\u53f2\\u8bc4 \\u53f2\\u524d \\u53f2\\u5b9e \\u53f2\\u5b66 \\u77e2\\u53e3 \\u77e2\\u5fd7 \\u4f7f\\u574f \\u4f7f\\u52b2 \\u4f7f\\u547d \\u4f7f\\u5973 \\u4f7f\\u56e2 \\u4f7f\\u5f79 \\u4f7f\\u7528 \\u59cb\\u672b \\u59cb\\u7956 \\u58eb\\u5175 \\u58eb\\u5b98 \\u58eb\\u5973 \\u58eb\\u6c14 \\u58eb\\u4eba \\u58eb\\u5352 \\u793a\\u8b66 \\u793a\\u4f8b \\u793a\\u4eba \\u793a\\u5a01 \\u793a\\u610f \\u793a\\u4f17 \\u4e16\\u4f20 \\u4e16\\u9053 \\u4e16\\u98ce \\u4e16\\u6545 \\u4e16\\u7eaa \\u4e16\\u5bb6 \\u4e16\\u95f4 \\u4e16\\u4ea4 \\u4e16\\u5c40 \\u4e16\\u9762 \\u4e16\\u4eb2 \\u4e16\\u60c5 \\u4e16\\u4eba \\u4e16\\u4e0a \\u4e16\\u4e8b \\u4e16\\u5916 \\u4e16\\u7cfb \\u4e16\\u5144 \\u4ed5\\u8fdb \\u4ed5\\u5973 \\u5e02\\u5bf8 \\u5e02\\u7535 \\u5e02\\u91cc \\u5e02\\u4e24 \\u5e02\\u9762 \\u5e02\\u6c11 \\u5e02\\u60c5 \\u5e02\\u58f0 \\u5e02\\u8086 \\u5e02\\u62db \\u5e02\\u9547 \\u5f0f\\u5fae \\u5f0f\\u5b50 \\u52bf\\u529b \\u52bf\\u5229 \\u52bf\\u80fd \\u52bf\\u5934 \\u52bf\\u8981 \\u4e8b\\u53d8 \\u4e8b\\u513f \\u4e8b\\u6545 \\u4e8b\\u673a \\u4e8b\\u4f8b \\u4e8b\\u524d \\u4e8b\\u60c5 \\u4e8b\\u5b9e \\u4e8b\\u4e8b \\u4e8b\\u5148 \\u4e8b\\u4e3b \\u4f8d\\u4ece \\u4f8d\\u5949 \\u4f8d\\u7acb \\u4f8d\\u5f04 \\u4f8d\\u5973 \\u4f8d\\u517b \\u9970\\u8bcd \\u8bd5\\u8868 \\u8bd5\\u4ea7 \\u8bd5\\u98de \\u8bd5\\u5de5 \\u8bd5\\u7ba1 \\u8bd5\\u822a \\u8bd5\\u5377 \\u8bd5\\u520a \\u8bd5\\u770b \\u8bd5\\u7247 \\u8bd5\\u624b \\u8bd5\\u56fe \\u8bd5\\u9500 \\u8bd5\\u9a8c \\u8bd5\\u7528 \\u8bd5\\u7eb8 \\u89c6\\u5bdf \\u89c6\\u5dee \\u89c6\\u89d2 \\u89c6\\u529b \\u89c6\\u542c \\u89c6\\u4e3a \\u89c6\\u91ce \\u67ff\\u997c \\u67ff\\u971c \\u662f\\u975e \\u662f\\u5426 \\u9002\\u624d \\u9002\\u5ea6 \\u9002\\u5408 \\u9002\\u53e3 \\u9002\\u65f6 \\u9002\\u9500 \\u9002\\u610f \\u9002\\u7528 \\u9002\\u4e2d \\u5ba4\\u5185 \\u5ba4\\u5973 \\u5ba4\\u5916 \\u91ca\\u653e \\u91ca\\u6000 \\u91ca\\u6559 \\u91ca\\u5377 \\u91ca\\u4f8b \\u91ca\\u624b \\u91ca\\u6587 \\u91ca\\u7591 \\u91ca\\u4e49 \\u8a93\\u8bcd \\u8a93\\u5e08 \\u8a93\\u6b7b \\u8a93\\u8a00 \\u87ab\\u9488 \\u6536\\u5175 \\u6536\\u85cf \\u6536\\u6210 \\u6536\\u53d1 \\u6536\\u65b9 \\u6536\\u8d39 \\u6536\\u5de5 \\u6536\\u56de \\u6536\\u7d27 \\u6536\\u770b \\u6536\\u53e3 \\u6536\\u793c \\u6536\\u655b \\u6536\\u7eb3 \\u6536\\u6e05 \\u6536\\u5ba1 \\u6536\\u751f \\u6536\\u5c38 \\u6536\\u62fe \\u6536\\u5e02 \\u6536\\u53d7 \\u6536\\u675f \\u6536\\u7f29 \\u6536\\u542c \\u6536\\u6587 \\u6536\\u6089 \\u6536\\u6548 \\u6536\\u5fc3 \\u6536\\u517b \\u6536\\u652f \\u6536\\u6267 \\u624b\\u80cc \\u624b\\u672c \\u624b\\u7b14 \\u624b\\u8868 \\u624b\\u6284 \\u624b\\u7535 \\u624b\\u6bb5 \\u624b\\u6cd5 \\u624b\\u5de5 \\u624b\\u9f13 \\u624b\\u673a \\u624b\\u811a \\u624b\\u7d27 \\u624b\\u5377 \\u624b\\u96f7 \\u624b\\u8f6e \\u624b\\u9762 \\u624b\\u6a21 \\u624b\\u5e15 \\u624b\\u6c14 \\u624b\\u751f \\u624b\\u52bf \\u624b\\u5934 \\u624b\\u4e0b \\u624b\\u5fc3 \\u624b\\u6deb \\u624b\\u8bed \\u624b\\u957f \\u624b\\u7eb8 \\u624b\\u8db3 \\u5b88\\u5175 \\u5b88\\u6210 \\u5b88\\u6cd5 \\u5b88\\u5bab \\u5b88\\u62a4 \\u5b88\\u5c06 \\u5b88\\u519b \\u5b88\\u7075 \\u5b88\\u95e8 \\u5b88\\u4e27 \\u5b88\\u8eab \\u5b88\\u65f6 \\u5b88\\u52bf \\u5b88\\u5c81 \\u5b88\\u571f \\u5b88\\u671b \\u5b88\\u4fe1 \\u5b88\\u591c \\u9996\\u6b21 \\u9996\\u90fd \\u9996\\u6076 \\u9996\\u53d1 \\u9996\\u72af \\u9996\\u5bcc \\u9996\\u529f \\u9996\\u822a \\u9996\\u8111 \\u9996\\u9970 \\u9996\\u5148 \\u9996\\u8981 \\u9996\\u4e49 \\u5bff\\u6750 \\u5bff\\u5149 \\u5bff\\u793c \\u5bff\\u9762 \\u5bff\\u547d \\u5bff\\u6728 \\u5bff\\u6570 \\u5bff\\u6843 \\u5bff\\u661f \\u5bff\\u8863 \\u53d7\\u8fc7 \\u53d7\\u5bd2 \\u53d7\\u8d3f \\u53d7\\u6559 \\u53d7\\u60ca \\u53d7\\u7cbe \\u53d7\\u82e6 \\u53d7\\u51b7 \\u53d7\\u793c \\u53d7\\u547d \\u53d7\\u6c14 \\u53d7\\u7a77 \\u53d7\\u5c48 \\u53d7\\u70ed \\u53d7\\u8fb1 \\u53d7\\u4f24 \\u53d7\\u5ba1 \\u53d7\\u4e8b \\u53d7\\u542c \\u53d7\\u6258 \\u53d7\\u7528 \\u53d7\\u963b \\u53d7\\u7f6a \\u517d\\u6027 \\u7626\\u5c0f \\u7626\\u957f \\u7626\\u5b50 \\u4e66\\u80cc \\u4e66\\u672c \\u4e66\\u6cd5 \\u4e66\\u753b \\u4e66\\u5bb6 \\u4e66\\u7b80 \\u4e66\\u5c40 \\u4e66\\u5377 \\u4e66\\u520a \\u4e66\\u53e3 \\u4e66\\u8bba \\u4e66\\u9762 \\u4e66\\u540d \\u4e66\\u76ee \\u4e66\\u8bc4 \\u4e66\\u793e \\u4e66\\u751f \\u4e66\\u5723 \\u4e66\\u5e02 \\u4e66\\u8086 \\u4e66\\u9999 \\u4e66\\u4fe1 \\u4e66\\u5f71 \\u4e66\\u9662 \\u6292\\u53d1 \\u6292\\u6000 \\u6292\\u60c5 \\u67a2\\u673a \\u67a2\\u8981 \\u67a2\\u8f74 \\u53d4\\u516c \\u53d4\\u6bcd \\u53d4\\u5b50 \\u53d4\\u7956 \\u6b8a\\u6b7b \\u6dd1\\u5973 \\u8212\\u7545 \\u8212\\u7f13 \\u8212\\u5377 \\u8212\\u6563 \\u8212\\u5fc3 \\u8212\\u5f20 \\u758f\\u653e \\u758f\\u9644 \\u758f\\u526a \\u758f\\u89e3 \\u758f\\u6563 \\u758f\\u5931 \\u758f\\u901a \\u758f\\u8fdc \\u8f93\\u51fa \\u8f93\\u7535 \\u8f93\\u5bb6 \\u8f93\\u9001 \\u852c\\u679c \\u79eb\\u7c73 \\u8d4e\\u56de \\u8d4e\\u91d1 \\u8d4e\\u8eab \\u8d4e\\u7f6a \\u587e\\u5e08 \\u719f\\u9053 \\u719f\\u5730 \\u719f\\u5e74 \\u719f\\u4eba \\u719f\\u8bc6 \\u719f\\u98df \\u719f\\u624b \\u719f\\u7761 \\u719f\\u94c1 \\u719f\\u571f \\u719f\\u6089 \\u719f\\u8bed \\u719f\\u77e5 \\u719f\\u5b57 \\u6691\\u4f0f \\u6691\\u671f \\u6691\\u6c14 \\u6691\\u70ed \\u6691\\u5929 \\u9ecd\\u5b50 \\u7f72\\u540d \\u8700\\u9526 \\u66d9\\u5149 \\u66d9\\u8272 \\u672f\\u79d1 \\u672f\\u8bed \\u620d\\u5b88 \\u675f\\u5e26 \\u675f\\u8eab \\u675f\\u624b \\u675f\\u88c5 \\u8ff0\\u6000 \\u8ff0\\u8bc4 \\u6811\\u5fb7 \\u6811\\u7acb \\u6811\\u6728 \\u6811\\u4eba \\u6811\\u8eab \\u6811\\u53f6 \\u6811\\u9634 \\u6811\\u5f71 \\u6811\\u79cd \\u7ad6\\u7acb \\u7ad6\\u76f4 \\u7ad6\\u5b50 \\u6055\\u7f6a \\u5eb6\\u51e0 \\u5eb6\\u5b50 \\u6570\\u8868 \\u6570\\u8bcd \\u6570\\u5217 \\u6570\\u8bba \\u6570\\u76ee \\u6570\\u5b66 \\u6570\\u73e0 \\u6570\\u5b57 \\u6f31\\u53e3 \\u5237\\u62c9 \\u5237\\u65b0 \\u5237\\u5b50 \\u800d\\u6ed1 \\u800d\\u5f04 \\u8870\\u8d25 \\u8870\\u53d8 \\u8870\\u8349 \\u8870\\u8001 \\u8870\\u9000 \\u8870\\u5fae \\u6454\\u5012 \\u7529\\u5f00 \\u7529\\u5356 \\u7529\\u624b \\u7529\\u8131 \\u5e05\\u624d \\u6813\\u5b50 \\u53cc\\u6253 \\u53cc\\u5200 \\u53cc\\u65b9 \\u53cc\\u5173 \\u53cc\\u4eb2 \\u53cc\\u5168 \\u53cc\\u65e5 \\u53cc\\u751f \\u53cc\\u58f0 \\u53cc\\u53cc \\u53cc\\u7cd6 \\u53cc\\u54cd \\u53cc\\u661f \\u53cc\\u6708 \\u971c\\u6668 \\u971c\\u82b1 \\u971c\\u964d \\u971c\\u671f \\u971c\\u5929 \\u971c\\u53f6 \\u5b40\\u5c45 \\u723d\\u5229 \\u723d\\u5fc3 \\u723d\\u6027 \\u8c01\\u77e5 \\u6c34\\u7b14 \\u6c34\\u8868 \\u6c34\\u5175 \\u6c34\\u6ce2 \\u6c34\\u8349 \\u6c34\\u4ea7 \\u6c34\\u9053 \\u6c34\\u6ef4 \\u6c34\\u5730 \\u6c34\\u7535 \\u6c34\\u8c82 \\u6c34\\u9041 \\u6c34\\u53d1 \\u6c34\\u80a5 \\u6c34\\u8d39 \\u6c34\\u5c01 \\u6c34\\u5de5 \\u6c34\\u679c \\u6c34\\u5408 \\u6c34\\u9e64 \\u6c34\\u7ea2 \\u6c34\\u6d52 \\u6c34\\u82b1 \\u6c34\\u8352 \\u6c34\\u8d27 \\u6c34\\u89e3 \\u6c34\\u8b66 \\u6c34\\u519b \\u6c34\\u53e3 \\u6c34\\u96f7 \\u6c34\\u529b \\u6c34\\u5229 \\u6c34\\u7075 \\u6c34\\u9f99 \\u6c34\\u8f6e \\u6c34\\u7eff \\u6c34\\u95e8 \\u6c34\\u9762 \\u6c34\\u78e8 \\u6c34\\u6bcd \\u6c34\\u80fd \\u6c34\\u9e1f \\u6c34\\u5e73 \\u6c34\\u6c14 \\u6c34\\u60c5 \\u6c34\\u8272 \\u6c34\\u86c7 \\u6c34\\u795e \\u6c34\\u5e08 \\u6c34\\u52bf \\u6c34\\u624b \\u6c34\\u5934 \\u6c34\\u571f \\u6c34\\u6587 \\u6c34\\u7cfb \\u6c34\\u4e0b \\u6c34\\u4ed9 \\u6c34\\u4e61 \\u6c34\\u661f \\u6c34\\u6027 \\u6c34\\u70df \\u6c34\\u94f6 \\u6c34\\u6d74 \\u6c34\\u8fd0 \\u6c34\\u73e0 \\u7a0e\\u5355 \\u7a0e\\u6cd5 \\u7a0e\\u91d1 \\u7a0e\\u5361 \\u7a0e\\u6b3e \\u7a0e\\u5229 \\u7a0e\\u76ee \\u7a0e\\u6536 \\u7a0e\\u79cd \\u7761\\u83b2 \\u7761\\u7720 \\u7761\\u4e61 \\u7761\\u8863 \\u7761\\u610f \\u542e\\u5438 \\u987a\\u4fbf \\u987a\\u4ea7 \\u987a\\u7545 \\u987a\\u6b21 \\u987a\\u4ece \\u987a\\u5e26 \\u987a\\u5f53 \\u987a\\u9053 \\u987a\\u5fb7 \\u987a\\u98ce \\u987a\\u548c \\u987a\\u811a \\u987a\\u53e3 \\u987a\\u5229 \\u987a\\u6c11 \\u987a\\u6c14 \\u987a\\u60c5 \\u987a\\u52bf \\u987a\\u624b \\u987a\\u6c34 \\u987a\\u5fc3 \\u987a\\u4e49 \\u987a\\u610f \\u77ac\\u95f4 \\u77ac\\u523b \\u77ac\\u65f6 \\u77ac\\u606f \\u8bf4\\u767d \\u8bf4\\u5531 \\u8bf4\\u7a7f \\u8bf4\\u8f9e \\u8bf4\\u9053 \\u8bf4\\u6cd5 \\u8bf4\\u597d \\u8bf4\\u5408 \\u8bf4\\u548c \\u8bf4\\u6559 \\u8bf4\\u5f00 \\u8bf4\\u660e \\u8bf4\\u7834 \\u8bf4\\u4eb2 \\u8bf4\\u60c5 \\u6714\\u65b9 \\u6714\\u98ce \\u6714\\u65e5 \\u6714\\u671b \\u6714\\u6708 \\u7855\\u679c \\u84b4\\u679c \\u53f8\\u6cd5 \\u53f8\\u673a \\u53f8\\u7a7a \\u53f8\\u9a6c \\u53f8\\u5357 \\u53f8\\u5f92 \\u53f8\\u52a1 \\u4e1d\\u67cf \\u4e1d\\u5e26 \\u4e1d\\u74dc \\u4e1d\\u5149 \\u4e1d\\u7ef5 \\u4e1d\\u5f26 \\u79c1\\u85cf \\u79c1\\u4ea7 \\u79c1\\u5fb7 \\u79c1\\u6cd5 \\u79c1\\u65b9 \\u79c1\\u8d27 \\u79c1\\u5bb6 \\u79c1\\u89c1 \\u79c1\\u4ea4 \\u79c1\\u4e86 \\u79c1\\u7acb \\u79c1\\u5229 \\u79c1\\u56ca \\u79c1\\u5ff5 \\u79c1\\u60c5 \\u79c1\\u4eba \\u79c1\\u5546 \\u79c1\\u4e8b \\u79c1\\u901a \\u79c1\\u56fe \\u79c1\\u541e \\u79c1\\u4e0b \\u601d\\u5fd6 \\u601d\\u53e4 \\u601d\\u8fc7 \\u601d\\u8c0b \\u601d\\u6155 \\u601d\\u5ff5 \\u601d\\u4eb2 \\u601d\\u60c5 \\u601d\\u7d22 \\u601d\\u8bae \\u65af\\u6587 \\u53ae\\u6253 \\u53ae\\u6740 \\u53ae\\u5b88 \\u6495\\u626f \\u6495\\u6bc1 \\u6495\\u5f00 \\u6495\\u88c2 \\u6495\\u54ac \\u6b7b\\u522b \\u6b7b\\u4ea7 \\u6b7b\\u6c89 \\u6b7b\\u515a \\u6b7b\\u5730 \\u6b7b\\u5149 \\u6b7b\\u9b3c \\u6b7b\\u7f13 \\u6b7b\\u6d3b \\u6b7b\\u89d2 \\u6b7b\\u6263 \\u6b7b\\u529b \\u6b7b\\u9762 \\u6b7b\\u706d \\u6b7b\\u547d \\u6b7b\\u671f \\u6b7b\\u68cb \\u6b7b\\u6c14 \\u6b7b\\u4eba \\u6b7b\\u4f24 \\u6b7b\\u795e \\u6b7b\\u5c38 \\u6b7b\\u5b88 \\u6b7b\\u6c34 \\u6b7b\\u6b7b \\u6b7b\\u4ea1 \\u6b7b\\u5fc3 \\u6b7b\\u4fe1 \\u6b7b\\u56e0 \\u6b7b\\u7f6a \\u5df3\\u65f6 \\u56db\\u767d \\u56db\\u90e8 \\u56db\\u51fa \\u56db\\u5ddd \\u56db\\u65b9 \\u56db\\u987e \\u56db\\u6d77 \\u56db\\u884c \\u56db\\u547c \\u56db\\u4f1a \\u56db\\u6e85 \\u56db\\u89d2 \\u56db\\u9762 \\u56db\\u65c1 \\u56db\\u5e73 \\u56db\\u8d77 \\u56db\\u6e05 \\u56db\\u6563 \\u56db\\u5c04 \\u56db\\u58f0 \\u56db\\u65f6 \\u56db\\u5916 \\u56db\\u671b \\u56db\\u4e0b \\u56db\\u4e61 \\u56db\\u91ce \\u5bfa\\u9662 \\u4f3a\\u673a \\u9972\\u8349 \\u9972\\u517b \\u9a77\\u9a6c \\u4fdf\\u673a \\u8086\\u529b \\u8086\\u610f \\u55e3\\u5b50 \\u677e\\u67cf \\u677e\\u52a8 \\u677e\\u679c \\u677e\\u82b1 \\u677e\\u7f13 \\u677e\\u6c5f \\u677e\\u7d27 \\u677e\\u52b2 \\u677e\\u5f00 \\u677e\\u53e3 \\u677e\\u660e \\u677e\\u6728 \\u677e\\u6c14 \\u677e\\u624b \\u677e\\u6811 \\u677e\\u571f \\u677e\\u4e0b \\u677e\\u9999 \\u677e\\u5fc3 \\u677e\\u70df \\u677e\\u53f6 \\u677e\\u9488 \\u677e\\u5b50 \\u5d69\\u5c71 \\u8038\\u52a8 \\u8038\\u7acb \\u8038\\u542c \\u8bbc\\u8bcd \\u8bbc\\u5e08 \\u9001\\u522b \\u9001\\u5448 \\u9001\\u98ce \\u9001\\u7ed9 \\u9001\\u8fd8 \\u9001\\u8d27 \\u9001\\u68c0 \\u9001\\u4ea4 \\u9001\\u793c \\u9001\\u547d \\u9001\\u6c14 \\u9001\\u4eb2 \\u9001\\u60c5 \\u9001\\u5ba1 \\u9001\\u6b7b \\u9001\\u4fe1 \\u9882\\u8bcd \\u9882\\u6b4c \\u9882\\u626c \\u641c\\u68c0 \\u641c\\u527f \\u641c\\u8eab \\u641c\\u7d22 \\u8258\\u6b21 \\u82cf\\u767d \\u82cf\\u4e39 \\u82cf\\u6728 \\u82cf\\u5b50 \\u9165\\u7cd6 \\u9165\\u6cb9 \\u4fd7\\u79f0 \\u4fd7\\u5bb6 \\u4fd7\\u540d \\u4fd7\\u6c14 \\u4fd7\\u4eba \\u4fd7\\u4e8b \\u4fd7\\u8bed \\u4fd7\\u5b50 \\u4fd7\\u5b57 \\u5919\\u5acc \\u5919\\u591c \\u8bc9\\u82e6 \\u8bc9\\u8bf8 \\u8083\\u53cd \\u8083\\u7acb \\u8083\\u7a46 \\u8083\\u6e05 \\u8083\\u6740 \\u7d20\\u767d \\u7d20\\u6750 \\u7d20\\u9910 \\u7d20\\u6de1 \\u7d20\\u88f9 \\u7d20\\u6d01 \\u7d20\\u6765 \\u7d20\\u65e5 \\u7d20\\u8272 \\u7d20\\u98df \\u7d20\\u6570 \\u7d20\\u5fc3 \\u7d20\\u6027 \\u7d20\\u96c5 \\u7d20\\u517b \\u7d20\\u6cb9 \\u7d20\\u5fd7 \\u7d20\\u88c5 \\u901f\\u6210 \\u901f\\u5ea6 \\u901f\\u6ed1 \\u901f\\u6eb6 \\u901f\\u5c04 \\u901f\\u7b97 \\u901f\\u6548 \\u7c9f\\u7c73 \\u55c9\\u56ca \\u55c9\\u5b50 \\u5851\\u50cf \\u5851\\u6027 \\u9178\\u8d25 \\u9178\\u9f3b \\u9178\\u82e6 \\u9178\\u75db \\u9178\\u5fc3 \\u9178\\u6027 \\u9178\\u96e8 \\u849c\\u9ec4 \\u849c\\u5934 \\u7b97\\u8349 \\u7b97\\u6cd5 \\u7b97\\u8ba1 \\u7b97\\u547d \\u7b97\\u6570 \\u7b97\\u5b66 \\u7b97\\u5b50 \\u7b97\\u4f5c \\u7ee5\\u8fdc \\u968f\\u548c \\u9ad3\\u6d77 \\u5c81\\u5dee \\u5c81\\u51fa \\u5c81\\u9664 \\u5c81\\u672b \\u5c81\\u66ae \\u5c81\\u9996 \\u5c81\\u6570 \\u5c81\\u6708 \\u9042\\u5fc3 \\u9042\\u610f \\u788e\\u6b65 \\u788e\\u82b1 \\u788e\\u88c2 \\u788e\\u7c73 \\u788e\\u7247 \\u96a7\\u9053 \\u7a57\\u5b50 \\u5b59\\u5973 \\u635f\\u574f \\u635f\\u6bc1 \\u635f\\u4eba \\u635f\\u4f24 \\u635f\\u5931 \\u7b0b\\u5e72 \\u7b0b\\u74dc \\u7b0b\\u5c16 \\u69ab\\u5934 \\u68ad\\u5b50 \\u84d1\\u8863 \\u7fa7\\u57fa \\u7f29\\u77ed \\u7f29\\u56de \\u7f29\\u7d27 \\u7f29\\u8fdb \\u7f29\\u805a \\u7f29\\u624b \\u7f29\\u6c34 \\u7f29\\u5934 \\u7f29\\u5fae \\u7f29\\u5c0f \\u7f29\\u5f71 \\u6240\\u90e8 \\u6240\\u5c5e \\u6240\\u4ee5 \\u6240\\u6709 \\u6240\\u5728 \\u6240\\u957f \\u7d22\\u9053 \\u7d22\\u8fd8 \\u7d22\\u8d3f \\u7d22\\u89e3 \\u7d22\\u8d54 \\u7d22\\u7d22 \\u7d22\\u6027 \\u7d22\\u8981 \\u7d22\\u5b50 \\u9501\\u9aa8 \\u9501\\u56fd \\u9501\\u4e0a \\u9501\\u94a5 \\u9501\\u5b50 \\u4ed6\\u5e74 \\u4ed6\\u4eba \\u4ed6\\u65e5 \\u4ed6\\u6740 \\u4ed6\\u4e61 \\u8dbf\\u62c9 \\u584c\\u65b9 \\u584c\\u9677 \\u584c\\u5fc3 \\u8e0f\\u6b65 \\u8e0f\\u6625 \\u8e0f\\u6b4c \\u8e0f\\u52d8 \\u8e0f\\u770b \\u8e0f\\u7a7a \\u8e0f\\u9752 \\u80ce\\u52a8 \\u80ce\\u513f \\u80ce\\u6559 \\u80ce\\u5177 \\u80ce\\u6bdb \\u80ce\\u6c14 \\u80ce\\u751f \\u80ce\\u8863 \\u53f0\\u5b89 \\u53f0\\u5317 \\u53f0\\u6b65 \\u53f0\\u79e4 \\u53f0\\u8bcd \\u53f0\\u5730 \\u53f0\\u98ce \\u53f0\\u57fa \\u53f0\\u5386 \\u53f0\\u9762 \\u53f0\\u4e2d \\u62ac\\u7231 \\u62ac\\u79e4 \\u62ac\\u9ad8 \\u62ac\\u4e3e \\u62ac\\u624b \\u62ac\\u5934 \\u592a\\u767d \\u592a\\u4fdd \\u592a\\u4ed3 \\u592a\\u516c \\u592a\\u53e4 \\u592a\\u548c \\u592a\\u6e56 \\u592a\\u7a7a \\u592a\\u5e73 \\u592a\\u751a \\u592a\\u5e08 \\u592a\\u5b88 \\u592a\\u5c81 \\u592a\\u592a \\u592a\\u5c09 \\u592a\\u606f \\u592a\\u865a \\u592a\\u5b66 \\u592a\\u9634 \\u592a\\u6e0a \\u592a\\u5b50 \\u592a\\u7956 \\u6001\\u5ea6 \\u6001\\u52bf \\u6cf0\\u6597 \\u6cf0\\u56fd \\u6cf0\\u548c \\u6cf0\\u5c71 \\u6cf0\\u8bed \\u574d\\u65b9 \\u574d\\u584c \\u574d\\u9677 \\u8d2a\\u676f \\u8d2a\\u8d22 \\u8d2a\\u5b98 \\u8d2a\\u8d3f \\u8d2a\\u8272 \\u8d2a\\u751f \\u8d2a\\u98df \\u8d2a\\u56fe \\u8d2a\\u73a9 \\u8d2a\\u5fc3 \\u8d2a\\u8d43 \\u644a\\u5f00 \\u644a\\u5546 \\u6ee9\\u5730 \\u6ee9\\u5934 \\u6ee9\\u7f8a \\u762b\\u5b50 \\u6619\\u82b1 \\u8c08\\u950b \\u8c08\\u8bba \\u8c08\\u5929 \\u8c08\\u5410 \\u8c08\\u5fc3 \\u75f0\\u996e \\u6a80\\u9999 \\u5766\\u767d \\u5766\\u7f13 \\u5766\\u514b \\u5766\\u76f4 \\u8892\\u62a4 \\u53f9\\u8bcd \\u53f9\\u6c14 \\u53f9\\u606f \\u70ad\\u7b14 \\u70ad\\u753b \\u70ad\\u7cbe \\u63a2\\u82b1 \\u63a2\\u5b50 \\u6c64\\u9762 \\u6c64\\u6c34 \\u6c64\\u5934 \\u6c64\\u56e2 \\u6c64\\u5706 \\u8025\\u8019 \\u7fb0\\u57fa \\u5510\\u5c71 \\u5510\\u7a81 \\u5510\\u88c5 \\u5802\\u7687 \\u5802\\u4f1a \\u5802\\u5b50 \\u6e8f\\u4fbf \\u6e8f\\u5fc3 \\u7cd6\\u5382 \\u7cd6\\u5f39 \\u7cd6\\u74dc \\u7cd6\\u679c \\u7cd6\\u7cbe \\u7cd6\\u4eba \\u7cd6\\u98df \\u7cd6\\u6c34 \\u7cd6\\u7a00 \\u7cd6\\u8863 \\u7cd6\\u7eb8 \\u8eba\\u5012 \\u70eb\\u82b1 \\u70eb\\u91d1 \\u70eb\\u9762 \\u70eb\\u4f24 \\u70eb\\u624b \\u70eb\\u5934 \\u8d9f\\u9a6c \\u7ee6\\u5b50 \\u6ed4\\u5929 \\u97ec\\u6666 \\u9003\\u907f \\u9003\\u5175 \\u9003\\u9041 \\u9003\\u72af \\u9003\\u8352 \\u9003\\u6c47 \\u9003\\u79bb \\u9003\\u547d \\u9003\\u8dd1 \\u9003\\u6563 \\u9003\\u751f \\u9003\\u7a0e \\u9003\\u8131 \\u9003\\u5b66 \\u9003\\u8d70 \\u6843\\u7ea2 \\u6843\\u82b1 \\u6843\\u674e \\u6843\\u8272 \\u9676\\u5de5 \\u9676\\u7ba1 \\u9676\\u94a7 \\u9676\\u5668 \\u9676\\u571f \\u9676\\u6587 \\u6dd8\\u91d1 \\u6dd8\\u7c73 \\u6dd8\\u795e \\u8ba8\\u5403 \\u8ba8\\u8fd8 \\u8ba8\\u597d \\u8ba8\\u6559 \\u8ba8\\u8bba \\u8ba8\\u7c73 \\u8ba8\\u5e73 \\u8ba8\\u4e5e \\u8ba8\\u4eb2 \\u8ba8\\u60c5 \\u8ba8\\u5acc \\u8ba8\\u538c \\u8ba8\\u8981 \\u5957\\u8015 \\u5957\\u7ba1 \\u5957\\u7ea2 \\u5957\\u6c47 \\u5957\\u95f4 \\u5957\\u5229 \\u5957\\u9a6c \\u5957\\u6570 \\u5957\\u7d22 \\u5957\\u7528 \\u5957\\u8bed \\u5957\\u88c5 \\u5957\\u5b50 \\u5957\\u4f5c \\u7279\\u522b \\u7279\\u4ea7 \\u7279\\u51fa \\u7279\\u6b64 \\u7279\\u5730 \\u7279\\u5b9a \\u7279\\u5de5 \\u7279\\u62a4 \\u7279\\u6025 \\u7279\\u520a \\u7279\\u4f8b \\u7279\\u547d \\u7279\\u8272 \\u7279\\u6548 \\u7279\\u6027 \\u7279\\u610f \\u7279\\u6709 \\u7279\\u957f \\u7279\\u5f81 \\u7279\\u79cd \\u75bc\\u7231 \\u75bc\\u75db \\u817e\\u51b2 \\u817e\\u98de \\u817e\\u7a7a \\u8a8a\\u6e05 \\u85e4\\u9ec4 \\u85e4\\u5b50 \\u5254\\u9664 \\u5254\\u7ea2 \\u5254\\u900f \\u8e22\\u6253 \\u63d0\\u62d4 \\u63d0\\u7b14 \\u63d0\\u6210 \\u63d0\\u51fa \\u63d0\\u8bcd \\u63d0\\u5355 \\u63d0\\u6cd5 \\u63d0\\u9ad8 \\u63d0\\u4f9b \\u63d0\\u82b1 \\u63d0\\u8d27 \\u63d0\\u4ea4 \\u63d0\\u6b3e \\u63d0\\u540d \\u63d0\\u8d77 \\u63d0\\u524d \\u63d0\\u4eb2 \\u63d0\\u8bf7 \\u63d0\\u795e \\u63d0\\u5ba1 \\u63d0\\u624b \\u63d0\\u8981 \\u63d0\\u8bae \\u63d0\\u65e9 \\u557c\\u54ed \\u9898\\u8dcb \\u9898\\u6750 \\u9898\\u8bcd \\u9898\\u82b1 \\u9898\\u89e3 \\u9898\\u6b3e \\u9898\\u540d \\u9898\\u76ee \\u9898\\u610f \\u9898\\u5b57 \\u4f53\\u8868 \\u4f53\\u64cd \\u4f53\\u5bdf \\u4f53\\u683c \\u4f53\\u4f1a \\u4f53\\u79ef \\u4f53\\u68c0 \\u4f53\\u529b \\u4f53\\u4f8b \\u4f53\\u8c8c \\u4f53\\u9762 \\u4f53\\u5185 \\u4f53\\u80fd \\u4f53\\u5ff5 \\u4f53\\u8154 \\u4f53\\u7cfb \\u4f53\\u73b0 \\u4f53\\u6821 \\u4f53\\u6027 \\u4f53\\u9a8c \\u4f53\\u957f \\u4f53\\u91cd \\u5243\\u5200 \\u5243\\u5ea6 \\u5243\\u5934 \\u6d95\\u96f6 \\u6d95\\u6ce3 \\u66ff\\u73ed \\u66ff\\u8865 \\u66ff\\u5de5 \\u66ff\\u8eab \\u5929\\u5b9d \\u5929\\u4fdd \\u5929\\u5175 \\u5929\\u6ce2 \\u5929\\u624d \\u5929\\u6210 \\u5929\\u51b2 \\u5929\\u9053 \\u5929\\u5730 \\u5929\\u7535 \\u5929\\u9e45 \\u5929\\u65b9 \\u5929\\u5e72 \\u5929\\u5de5 \\u5929\\u516c \\u5929\\u5bab \\u5929\\u72d7 \\u5929\\u5149 \\u5929\\u56fd \\u5929\\u548c \\u5929\\u6cb3 \\u5929\\u82b1 \\u5929\\u7687 \\u5929\\u673a \\u5929\\u7a7a \\u5929\\u9a6c \\u5929\\u95e8 \\u5929\\u660e \\u5929\\u547d \\u5929\\u5e74 \\u5929\\u5973 \\u5929\\u68da \\u5929\\u5e73 \\u5929\\u6c14 \\u5929\\u9752 \\u5929\\u5168 \\u5929\\u65e5 \\u5929\\u8272 \\u5929\\u5c71 \\u5929\\u4e0a \\u5929\\u795e \\u5929\\u751f \\u5929\\u5e08 \\u5929\\u65f6 \\u5929\\u6570 \\u5929\\u5929 \\u5929\\u5ead \\u5929\\u5934 \\u5929\\u7a81 \\u5929\\u5916 \\u5929\\u738b \\u5929\\u5a01 \\u5929\\u6587 \\u5929\\u4e0b \\u5929\\u4ed9 \\u5929\\u5fc3 \\u5929\\u6027 \\u5929\\u610f \\u5929\\u6e0a \\u5929\\u5143 \\u5929\\u62e9 \\u5929\\u957f \\u5929\\u771f \\u5929\\u6b63 \\u5929\\u4e3b \\u5929\\u5b50 \\u6dfb\\u8865 \\u6dfb\\u52a0 \\u7530\\u4ea7 \\u7530\\u5730 \\u7530\\u5bb6 \\u7530\\u95f4 \\u7530\\u5f84 \\u7530\\u574e \\u7530\\u91cc \\u7530\\u4e03 \\u7530\\u8d5b \\u7530\\u820d \\u7530\\u5934 \\u7530\\u91ce \\u7530\\u4e3b \\u7530\\u5b50 \\u606c\\u6de1 \\u606c\\u7f8e \\u586b\\u8865 \\u586b\\u5145 \\u586b\\u8bcd \\u586b\\u5835 \\u586b\\u53d1 \\u586b\\u65b9 \\u586b\\u5e73 \\u586b\\u585e \\u586b\\u9e2d \\u6311\\u523a \\u6311\\u98df \\u6311\\u5934 \\u6761\\u9648 \\u6761\\u89c4 \\u6761\\u51e0 \\u6761\\u6b3e \\u6761\\u4f8b \\u6761\\u76ee \\u6761\\u6587 \\u8c03\\u5408 \\u8c03\\u548c \\u8c03\\u62a4 \\u8c03\\u6559 \\u8c03\\u89e3 \\u8c03\\u5f04 \\u8c03\\u9891 \\u8c03\\u60c5 \\u8c03\\u8272 \\u8c03\\u8bd5 \\u8c03\\u505c \\u8c03\\u606f \\u8c03\\u517b \\u8c03\\u97f3 \\u8c03\\u5300 \\u9aeb\\u5e74 \\u8df3\\u73ed \\u8df3\\u52a8 \\u8df3\\u9ad8 \\u8df3\\u884c \\u8df3\\u6cb3 \\u8df3\\u811a \\u8df3\\u9a6c \\u8df3\\u68cb \\u8df3\\u795e \\u8df3\\u7ef3 \\u8df3\\u6c34 \\u8df3\\u8fdc \\u5e16\\u5b66 \\u8d34\\u8865 \\u8d34\\u5408 \\u8d34\\u82b1 \\u8d34\\u753b \\u8d34\\u91d1 \\u8d34\\u9762 \\u8d34\\u8eab \\u8d34\\u6c34 \\u8d34\\u606f \\u8d34\\u73b0 \\u8d34\\u5fc3 \\u94c1\\u7b14 \\u94c1\\u997c \\u94c1\\u5382 \\u94c1\\u6253 \\u94c1\\u9053 \\u94c1\\u9489 \\u94c1\\u5b9a \\u94c1\\u5de5 \\u94c1\\u7ba1 \\u94c1\\u753b \\u94c1\\u73af \\u94c1\\u6d3b \\u94c1\\u7532 \\u94c1\\u519b \\u94c1\\u9a6c \\u94c1\\u95e8 \\u94c1\\u8019 \\u94c1\\u7247 \\u94c1\\u5668 \\u94c1\\u9752 \\u94c1\\u4eba \\u94c1\\u6811 \\u94c1\\u6c34 \\u94c1\\u7d22 \\u94c1\\u8e44 \\u94c1\\u5fc3 \\u94c1\\u8863 \\u542c\\u4fbf \\u542c\\u4ece \\u542c\\u4f1a \\u542c\\u89c1 \\u542c\\u529b \\u542c\\u547d \\u542c\\u5ba1 \\u542c\\u4fe1 \\u542c\\u4f17 \\u542c\\u88c5 \\u542c\\u5b50 \\u5ef7\\u8bd5 \\u5ef7\\u5c09 \\u4ead\\u5348 \\u5ead\\u9664 \\u5ead\\u5ba1 \\u5ead\\u9662 \\u505c\\u95ed \\u505c\\u8868 \\u505c\\u4ea7 \\u505c\\u7535 \\u505c\\u653e \\u505c\\u5de5 \\u505c\\u822a \\u505c\\u520a \\u505c\\u98df \\u505c\\u624b \\u505c\\u6c34 \\u505c\\u606f \\u505c\\u5b66 \\u633a\\u62d4 \\u633a\\u8fdb \\u633a\\u4e3e \\u633a\\u7acb \\u633a\\u8d77 \\u633a\\u8eab \\u633a\\u76f4 \\u6883\\u5b50 \\u901a\\u4fbf \\u901a\\u624d \\u901a\\u8349 \\u901a\\u7545 \\u901a\\u79f0 \\u901a\\u5403 \\u901a\\u9053 \\u901a\\u7535 \\u901a\\u98ce \\u901a\\u5173 \\u901a\\u8fc7 \\u901a\\u6d77 \\u901a\\u822a \\u901a\\u597d \\u901a\\u8d27 \\u901a\\u5bb6 \\u901a\\u89e3 \\u901a\\u7ecf \\u901a\\u529b \\u901a\\u4f8b \\u901a\\u8fde \\u901a\\u7075 \\u901a\\u8bba \\u901a\\u540d \\u901a\\u660e \\u901a\\u5e74 \\u901a\\u6c14 \\u901a\\u4eba \\u901a\\u5546 \\u901a\\u8eab \\u901a\\u4e8b \\u901a\\u987a \\u901a\\u5929 \\u901a\\u901a \\u901a\\u540c \\u901a\\u900f \\u901a\\u6653 \\u901a\\u4fe1 \\u901a\\u6027 \\u901a\\u591c \\u901a\\u7528 \\u901a\\u90ae \\u901a\\u957f \\u901a\\u77e5 \\u901a\\u5dde \\u540c\\u73ed \\u540c\\u6b65 \\u540c\\u515a \\u540c\\u9053 \\u540c\\u5fb7 \\u540c\\u72af \\u540c\\u5f52 \\u540c\\u884c \\u540c\\u5c45 \\u540c\\u79d1 \\u540c\\u4e50 \\u540c\\u95e8 \\u540c\\u540d \\u540c\\u8c0b \\u540c\\u5e74 \\u540c\\u671f \\u540c\\u524d \\u540c\\u60c5 \\u540c\\u5e86 \\u540c\\u4eba \\u540c\\u65e5 \\u540c\\u4e0a \\u540c\\u58f0 \\u540c\\u65f6 \\u540c\\u4e8b \\u540c\\u5c81 \\u540c\\u559c \\u540c\\u4e61 \\u540c\\u5fc3 \\u540c\\u6027 \\u540c\\u5b66 \\u540c\\u4e00 \\u540c\\u4e49 \\u540c\\u610f \\u540c\\u97f3 \\u540c\\u5fd7 \\u540c\\u79cd \\u5f64\\u4e91 \\u6850\\u4e61 \\u6850\\u6cb9 \\u6850\\u5b50 \\u94dc\\u7eff \\u7ae5\\u4fbf \\u7ae5\\u5de5 \\u7ae5\\u5e74 \\u7ae5\\u5973 \\u7ae5\\u5c71 \\u7ae5\\u58f0 \\u7ae5\\u5fc3 \\u7ae5\\u661f \\u7ae5\\u8d1e \\u7ae5\\u771f \\u7ae5\\u88c5 \\u7ae5\\u5b50 \\u6f7c\\u5173 \\u7edf\\u79f0 \\u7edf\\u7ba1 \\u7edf\\u8d27 \\u7edf\\u8ba1 \\u7edf\\u914d \\u7edf\\u5c5e \\u7edf\\u901a \\u7edf\\u9500 \\u7edf\\u4e00 \\u7b52\\u7ba1 \\u7b52\\u5b50 \\u6078\\u54ed \\u75db\\u9648 \\u75db\\u6253 \\u75db\\u98ce \\u75db\\u51fb \\u75db\\u7ecf \\u75db\\u54ed \\u75db\\u82e6 \\u75db\\u5fc3 \\u75db\\u996e \\u5077\\u7a0e \\u5077\\u8425 \\u5934\\u5bf8 \\u5934\\u4f0f \\u5934\\u529f \\u5934\\u9aa8 \\u5934\\u660f \\u5934\\u5bb6 \\u5934\\u89d2 \\u5934\\u91cc \\u5934\\u9a6c \\u5934\\u9762 \\u5934\\u540d \\u5934\\u76ee \\u5934\\u8111 \\u5934\\u5e74 \\u5934\\u524d \\u5934\\u4eba \\u5934\\u751f \\u5934\\u7ef3 \\u5934\\u9970 \\u5934\\u5929 \\u5934\\u75db \\u5934\\u5934 \\u5934\\u50cf \\u5934\\u7f8a \\u5934\\u6cb9 \\u6295\\u6807 \\u6295\\u4ea7 \\u6295\\u5f39 \\u6295\\u653e \\u6295\\u5408 \\u6295\\u673a \\u6295\\u4eb2 \\u6295\\u5c04 \\u6295\\u8eab \\u6295\\u751f \\u6295\\u5e08 \\u6295\\u624b \\u6295\\u6548 \\u6295\\u5bbf \\u6295\\u5f71 \\u9ab0\\u5b50 \\u900f\\u98ce \\u900f\\u9aa8 \\u900f\\u5149 \\u900f\\u8fc7 \\u900f\\u6c57 \\u900f\\u660e \\u900f\\u6c14 \\u900f\\u5c04 \\u900f\\u6c34 \\u900f\\u96e8 \\u900f\\u652f \\u51f8\\u51fa \\u51f8\\u8f6e \\u51f8\\u8d77 \\u51f8\\u73b0 \\u79c3\\u7b14 \\u79c3\\u53d1 \\u79c3\\u5c71 \\u79c3\\u5934 \\u79c3\\u5b50 \\u7a81\\u53d8 \\u7a81\\u51fa \\u7a81\\u53d1 \\u7a81\\u51fb \\u7a81\\u8fdb \\u7a81\\u7834 \\u7a81\\u8d77 \\u7a81\\u7a81 \\u7a81\\u73b0 \\u56fe\\u8868 \\u56fe\\u9489 \\u56fe\\u753b \\u56fe\\u89e3 \\u56fe\\u5377 \\u56fe\\u5229 \\u56fe\\u4f8b \\u56fe\\u8c0b \\u56fe\\u7247 \\u56fe\\u50cf \\u56fe\\u7eb8 \\u5f92\\u6b65 \\u5f92\\u5de5 \\u5f92\\u624b \\u9014\\u7ecf \\u9014\\u5f84 \\u9014\\u4e2d \\u6d82\\u6539 \\u6d82\\u62b9 \\u6d82\\u7247 \\u6d82\\u9970 \\u5c60\\u9f99 \\u571f\\u4ea7 \\u571f\\u5730 \\u571f\\u8c46 \\u571f\\u9041 \\u571f\\u6cd5 \\u571f\\u65b9 \\u571f\\u80a5 \\u571f\\u98ce \\u571f\\u8702 \\u571f\\u6539 \\u571f\\u5de5 \\u571f\\u9ec4 \\u571f\\u8d27 \\u571f\\u574e \\u571f\\u6728 \\u571f\\u6c14 \\u571f\\u4eba \\u571f\\u8272 \\u571f\\u5c71 \\u571f\\u53f8 \\u571f\\u7cfb \\u571f\\u661f \\u571f\\u6027 \\u571f\\u97f3 \\u571f\\u8bed \\u5410\\u53e3 \\u5410\\u6c14 \\u5410\\u7d6e \\u5410\\u5b57 \\u5154\\u5507 \\u5154\\u6bdb \\u5154\\u8131 \\u6e4d\\u6025 \\u56e2\\u5fbd \\u56e2\\u805a \\u56e2\\u5e74 \\u56e2\\u5f04 \\u56e2\\u56e2 \\u56e2\\u97f3 \\u56e2\\u9c7c \\u56e2\\u5706 \\u56e2\\u5b50 \\u56e2\\u5750 \\u5f56\\u8f9e \\u63a8\\u5012 \\u63a8\\u5b50 \\u9893\\u8d25 \\u9893\\u98ce \\u9893\\u52bf \\u817f\\u811a \\u817f\\u5b50 \\u9000\\u4fdd \\u9000\\u907f \\u9000\\u5175 \\u9000\\u6b65 \\u9000\\u51fa \\u9000\\u515a \\u9000\\u8015 \\u9000\\u80a1 \\u9000\\u8fd8 \\u9000\\u56de \\u9000\\u8d27 \\u9000\\u5c45 \\u9000\\u6b3e \\u9000\\u8d54 \\u9000\\u4eb2 \\u9000\\u5374 \\u9000\\u70ed \\u9000\\u70e7 \\u9000\\u5b88 \\u9000\\u7a0e \\u9000\\u7f29 \\u9000\\u5ead \\u9000\\u5b66 \\u9000\\u517b \\u9000\\u5f79 \\u9000\\u9690 \\u9000\\u8d43 \\u9000\\u8d70 \\u8715\\u53d8 \\u541e\\u5e76 \\u541e\\u5403 \\u541e\\u91d1 \\u541e\\u706d \\u541e\\u58f0 \\u541e\\u98df \\u541e\\u5410 \\u5c6f\\u5175 \\u5c6f\\u805a \\u5c6f\\u5b88 \\u5c6f\\u5b50 \\u81c0\\u90e8 \\u81c0\\u5c16 \\u6258\\u8bcd \\u6258\\u8f9e \\u6258\\u5b64 \\u6258\\u6545 \\u6258\\u7ba1 \\u6258\\u91cc \\u6258\\u540d \\u6258\\u751f \\u6258\\u719f \\u6258\\u5e7c \\u6258\\u8fd0 \\u6258\\u5b50 \\u62d6\\u5e26 \\u62d6\\u6597 \\u62d6\\u62c9 \\u62d6\\u8f6e \\u62d6\\u8154 \\u9a6e\\u9a6c \\u9a6e\\u8fd0 \\u5768\\u5b50 \\u9a7c\\u80cc \\u9a7c\\u8272 \\u9a7c\\u5b50 \\u7823\\u5b50 \\u9e35\\u9e1f \\u59a5\\u5584 \\u59a5\\u5b9e \\u692d\\u5706 \\u62d3\\u8dcb \\u62d3\\u5730 \\u62d3\\u8352 \\u6316\\u8865 \\u6316\\u65b9 \\u6316\\u82e6 \\u6316\\u6f5c \\u6d3c\\u5730 \\u6d3c\\u9677 \\u86d9\\u4eba \\u5a03\\u513f \\u5a03\\u5b50 \\u74e6\\u5f53 \\u74e6\\u5de5 \\u74e6\\u89e3 \\u74e6\\u7247 \\u74e6\\u5708 \\u74e6\\u7279 \\u6b6a\\u624d \\u6b6a\\u9053 \\u6b6a\\u98ce \\u6b6a\\u66f2 \\u6b6a\\u659c \\u5916\\u8868 \\u5916\\u90e8 \\u5916\\u8d22 \\u5916\\u5dee \\u5916\\u51fa \\u5916\\u5e26 \\u5916\\u9053 \\u5916\\u5730 \\u5916\\u7535 \\u5916\\u65b9 \\u5916\\u653e \\u5916\\u516c \\u5916\\u529f \\u5916\\u5173 \\u5916\\u56fd \\u5916\\u6d77 \\u5916\\u884c \\u5916\\u6c47 \\u5916\\u8d27 \\u5916\\u7978 \\u5916\\u52a0 \\u5916\\u5bb6 \\u5916\\u95f4 \\u5916\\u4ea4 \\u5916\\u89d2 \\u5916\\u5f84 \\u5916\\u519b \\u5916\\u79d1 \\u5916\\u6765 \\u5916\\u529b \\u5916\\u8c8c \\u5916\\u9762 \\u5916\\u5207 \\u5916\\u4eb2 \\u5916\\u4eba \\u5916\\u4f24 \\u5916\\u5546 \\u5916\\u7701 \\u5916\\u4e8b \\u5916\\u624b \\u5916\\u6c34 \\u5916\\u6587 \\u5916\\u53bf \\u5916\\u4e61 \\u5916\\u5411 \\u5916\\u9500 \\u5916\\u5fc3 \\u5916\\u626c \\u5916\\u6d0b \\u5916\\u8863 \\u5916\\u56e0 \\u5916\\u7528 \\u5916\\u8bed \\u5916\\u63f4 \\u5916\\u5728 \\u5916\\u5b50 \\u5f2f\\u5200 \\u5f2f\\u5ea6 \\u5f2f\\u7ba1 \\u5f2f\\u66f2 \\u5f2f\\u5934 \\u5f2f\\u5b50 \\u8c4c\\u8c46 \\u4e38\\u5b50 \\u5b8c\\u6bd5 \\u5b8c\\u6210 \\u5b8c\\u5de5 \\u5b8c\\u597d \\u5b8c\\u805a \\u5b8c\\u7f8e \\u5b8c\\u5168 \\u5b8c\\u4eba \\u5b8c\\u5584 \\u5b8c\\u4e8b \\u5b8c\\u7a0e \\u73a9\\u513f \\u73a9\\u5177 \\u73a9\\u4e50 \\u73a9\\u547d \\u73a9\\u5f04 \\u73a9\\u800d \\u73a9\\u610f \\u987d\\u6897 \\u987d\\u52a3 \\u987d\\u5f3a \\u70f7\\u57fa \\u5b9b\\u5982 \\u5b9b\\u4f3c \\u5b9b\\u8f6c \\u633d\\u8bcd \\u633d\\u6b4c \\u633d\\u56de \\u633d\\u5177 \\u5a49\\u8a00 \\u4e07\\u5b89 \\u4e07\\u822c \\u4e07\\u6076 \\u4e07\\u65b9 \\u4e07\\u53e4 \\u4e07\\u56fd \\u4e07\\u673a \\u4e07\\u5386 \\u4e07\\u6c11 \\u4e07\\u80fd \\u4e07\\u5e74 \\u4e07\\u5343 \\u4e07\\u5168 \\u4e07\\u4e8b \\u4e07\\u6b7b \\u4e07\\u5c81 \\u4e07\\u4e07 \\u4e07\\u4e00 \\u4e07\\u4f17 \\u8155\\u9aa8 \\u8155\\u529b \\u8155\\u5b50 \\u6c6a\\u6d0b \\u6c6a\\u5b50 \\u4ea1\\u6545 \\u4ea1\\u56fd \\u4ea1\\u9b42 \\u4ea1\\u7075 \\u4ea1\\u547d \\u738b\\u9053 \\u738b\\u6cd5 \\u738b\\u516c \\u738b\\u5bab \\u738b\\u56fd \\u738b\\u820d \\u738b\\u5ba4 \\u738b\\u6c34 \\u738b\\u5b50 \\u7f51\\u5427 \\u7f51\\u683c \\u7f51\\u5177 \\u7f51\\u76ee \\u6789\\u6cd5 \\u6789\\u8d39 \\u6789\\u6b7b \\u6789\\u81ea \\u5f80\\u8fd4 \\u5f80\\u8fd8 \\u5f80\\u56de \\u5f80\\u6765 \\u5f80\\u5e74 \\u5f80\\u524d \\u5f80\\u65e5 \\u5f80\\u65f6 \\u5f80\\u4e8b \\u5984\\u79f0 \\u5984\\u52a8 \\u5984\\u65ad \\u5984\\u5ff5 \\u5984\\u4eba \\u5984\\u56fe \\u5984\\u4e3a \\u5984\\u8a00 \\u5984\\u8bed \\u5fd8\\u672c \\u5fd8\\u6389 \\u5fd8\\u6000 \\u5fd8\\u60c5 \\u5fd8\\u5374 \\u5fd8\\u6211 \\u5fd8\\u6027 \\u65fa\\u76db \\u65fa\\u9500 \\u65fa\\u6708 \\u671b\\u90fd \\u671b\\u5b50 \\u5371\\u673a \\u5371\\u6025 \\u5371\\u5c40 \\u5371\\u8a00 \\u5371\\u91cd \\u5371\\u5750 \\u5a01\\u98ce \\u5a01\\u529b \\u5a01\\u540d \\u5a01\\u8feb \\u5a01\\u52bf \\u5a01\\u671b \\u5a01\\u4fe1 \\u504e\\u508d \\u504e\\u4f9d \\u5fae\\u6ce2 \\u5fae\\u8bcd \\u5fae\\u8f9e \\u5fae\\u96d5 \\u5fae\\u98ce \\u5fae\\u670d \\u5fae\\u7ba1 \\u5fae\\u673a \\u5fae\\u5229 \\u5fae\\u672b \\u5fae\\u8c03 \\u5fae\\u5fae \\u5fae\\u5c0f \\u5dcd\\u5ce8 \\u4e3a\\u529b \\u4e3a\\u671f \\u4e3a\\u4eba \\u4e3a\\u5584 \\u4e3a\\u751f \\u4e3a\\u65f6 \\u4e3a\\u9996 \\u4e3a\\u6570 \\u4e3a\\u6b62 \\u4e3a\\u91cd \\u4e3a\\u4e3b \\u5729\\u5b50 \\u8fdd\\u80cc \\u8fdd\\u6cd5 \\u8fdd\\u53cd \\u8fdd\\u72af \\u8fdd\\u548c \\u8fdd\\u7eaa \\u8fdd\\u4f8b \\u8fdd\\u9006 \\u8fdd\\u5fc3 \\u56f4\\u8116 \\u56f4\\u5835 \\u56f4\\u653b \\u56f4\\u88f9 \\u56f4\\u62a4 \\u56f4\\u51fb \\u56f4\\u527f \\u56f4\\u805a \\u56f4\\u56f0 \\u56f4\\u68cb \\u56f4\\u7ed5 \\u56f4\\u5b50 \\u56f4\\u5750 \\u552f\\u72ec \\u552f\\u4e00 \\u5e37\\u5b50 \\u4f1f\\u5927 \\u4f1f\\u529b \\u4f1f\\u4eba \\u4f2a\\u519b \\u4f2a\\u52a3 \\u4f2a\\u5584 \\u4f2a\\u9970 \\u4f2a\\u6258 \\u4f2a\\u88c5 \\u4f2a\\u4f5c \\u82c7\\u5b50 \\u5c3e\\u5df4 \\u5c3e\\u90e8 \\u5c3e\\u9aa8 \\u5c3e\\u82b1 \\u5c3e\\u6c14 \\u5c3e\\u58f0 \\u5c3e\\u6570 \\u5c3e\\u968f \\u5c3e\\u97f3 \\u5c3e\\u690e \\u7eac\\u5ea6 \\u59d4\\u987f \\u59d4\\u5c48 \\u59d4\\u66f2 \\u59d4\\u8eab \\u59d4\\u5b9e \\u59d4\\u6258 \\u59d4\\u7f6a \\u8bff\\u8fc7 \\u8bff\\u7f6a \\u840e\\u987f \\u840e\\u9ec4 \\u840e\\u7f29 \\u536b\\u5175 \\u536b\\u9053 \\u536b\\u961f \\u536b\\u62a4 \\u536b\\u751f \\u536b\\u661f \\u672a\\u4fbf \\u672a\\u5b9a \\u672a\\u53ef \\u672a\\u6765 \\u672a\\u4e86 \\u672a\\u65f6 \\u672a\\u8be6 \\u4f4d\\u6b21 \\u4f4d\\u5c45 \\u4f4d\\u80fd \\u4f4d\\u52bf \\u5473\\u9053 \\u5473\\u7cbe \\u5473\\u7d20 \\u754f\\u907f \\u754f\\u7f29 \\u754f\\u7f6a \\u80c3\\u53e3 \\u5c09\\u5b98 \\u5582\\u98df \\u5582\\u517b \\u851a\\u8d77 \\u6170\\u5b89 \\u6170\\u85c9 \\u9b4f\\u7891 \\u9b4f\\u90fd \\u6e29\\u5dee \\u6e29\\u5e26 \\u6e29\\u5ea6 \\u6e29\\u548c \\u6e29\\u539a \\u6e29\\u5c45 \\u6e29\\u6696 \\u6e29\\u60c5 \\u6e29\\u70ed \\u6e29\\u6da6 \\u6e29\\u5ba4 \\u6e29\\u6c34 \\u6e29\\u987a \\u6e29\\u96c5 \\u761f\\u795e \\u6587\\u672c \\u6587\\u7b14 \\u6587\\u624d \\u6587\\u6210 \\u6587\\u4e11 \\u6587\\u8bcd \\u6587\\u8f9e \\u6587\\u65e6 \\u6587\\u7535 \\u6587\\u6cd5 \\u6587\\u98ce \\u6587\\u5b98 \\u6587\\u86e4 \\u6587\\u6559 \\u6587\\u53e5 \\u6587\\u5177 \\u6587\\u79d1 \\u6587\\u8109 \\u6587\\u76f2 \\u6587\\u660e \\u6587\\u6c14 \\u6587\\u4eba \\u6587\\u5c71 \\u6587\\u8eab \\u6587\\u9970 \\u6587\\u73a9 \\u6587\\u732e \\u6587\\u5b66 \\u6587\\u96c5 \\u6587\\u8a00 \\u6587\\u6458 \\u6587\\u5b57 \\u7eb9\\u8eab \\u7eb9\\u9970 \\u7eb9\\u94f6 \\u95fb\\u98ce \\u95fb\\u89c1 \\u95fb\\u540d \\u95fb\\u4eba \\u95fb\\u6089 \\u868a\\u9999 \\u868a\\u8747 \\u543b\\u522b \\u543b\\u5408 \\u7d0a\\u4e71 \\u7a33\\u4fbf \\u7a33\\u6b65 \\u7a33\\u4ea7 \\u7a33\\u5f53 \\u7a33\\u5b9a \\u7a33\\u62ff \\u7a33\\u5b9e \\u7a33\\u91cd \\u95ee\\u5b89 \\u95ee\\u9053 \\u95ee\\u9f0e \\u95ee\\u597d \\u95ee\\u8346 \\u95ee\\u5377 \\u95ee\\u65a9 \\u95ee\\u7f6a \\u6c76\\u4e0a \\u83b4\\u82e3 \\u502d\\u74dc \\u7a9d\\u85cf \\u7a9d\\u5de5 \\u7a9d\\u5bb6 \\u7a9d\\u68da \\u7a9d\\u6c14 \\u7a9d\\u5934 \\u7a9d\\u5fc3 \\u7a9d\\u8d43 \\u7a9d\\u4e3b \\u7a9d\\u5b50 \\u8717\\u5c45 \\u6c83\\u571f \\u6c83\\u91ce \\u5367\\u5012 \\u5367\\u5177 \\u5367\\u9f99 \\u5367\\u5c04 \\u5367\\u5ba4 \\u63e1\\u522b \\u63e1\\u624b \\u4e4c\\u9f9f \\u4e4c\\u547c \\u4e4c\\u6c5f \\u4e4c\\u91d1 \\u4e4c\\u9f99 \\u4e4c\\u6728 \\u4e4c\\u9752 \\u4e4c\\u4ec0 \\u4e4c\\u5934 \\u4e4c\\u6709 \\u4e4c\\u9c7c \\u4e4c\\u4e91 \\u6c61\\u79fd \\u6c61\\u540d \\u6c61\\u8fb1 \\u6c61\\u6c34 \\u5deb\\u5973 \\u5deb\\u5c71 \\u5deb\\u795e \\u5deb\\u5e08 \\u545c\\u547c \\u545c\\u545c \\u8bec\\u9677 \\u5c4b\\u9762 \\u5c4b\\u820d \\u65e0\\u6bd4 \\u65e0\\u8865 \\u65e0\\u4e0d \\u65e0\\u731c \\u65e0\\u6210 \\u65e0\\u4ece \\u65e0\\u5ea6 \\u65e0\\u6cd5 \\u65e0\\u65b9 \\u65e0\\u975e \\u65e0\\u98ce \\u65e0\\u5e72 \\u65e0\\u529f \\u65e0\\u6545 \\u65e0\\u5173 \\u65e0\\u4f55 \\u65e0\\u673a \\u65e0\\u793c \\u65e0\\u529b \\u65e0\\u804a \\u65e0\\u8bba \\u65e0\\u540d \\u65e0\\u80fd \\u65e0\\u671f \\u65e0\\u524d \\u65e0\\u60c5 \\u65e0\\u7a77 \\u65e0\\u4eba \\u65e0\\u65e5 \\u65e0\\u5982 \\u65e0\\u8272 \\u65e0\\u58f0 \\u65e0\\u6570 \\u65e0\\u53cc \\u65e0\\u671b \\u65e0\\u4e3a \\u65e0\\u7455 \\u65e0\\u6548 \\u65e0\\u90aa \\u65e0\\u5fc3 \\u65e0\\u6027 \\u65e0\\u70df \\u65e0\\u9057 \\u65e0\\u7591 \\u65e0\\u610f \\u65e0\\u7528 \\u65e0\\u4f59 \\u65e0\\u63f4 \\u65e0\\u77e5 \\u65e0\\u7f6a \\u6bcb\\u5eb8 \\u829c\\u79fd \\u829c\\u52a3 \\u829c\\u6742 \\u543e\\u4eba \\u5434\\u6c5f \\u5434\\u8bed \\u5434\\u4e2d \\u4e94\\u4fdd \\u4e94\\u53cd \\u4e94\\u65b9 \\u4e94\\u5b98 \\u4e94\\u6cb3 \\u4e94\\u52a0 \\u4e94\\u91d1 \\u4e94\\u7ecf \\u4e94\\u9a6c \\u4e94\\u5185 \\u4e94\\u8272 \\u4e94\\u9999 \\u4e94\\u661f \\u4e94\\u97f3 \\u5348\\u9910 \\u5348\\u95f4 \\u5348\\u95e8 \\u5348\\u524d \\u5348\\u65f6 \\u5348\\u7761 \\u5348\\u591c \\u4ef5\\u4f5c \\u5fe4\\u9006 \\u6b66\\u4e11 \\u6b66\\u6253 \\u6b66\\u65e6 \\u6b66\\u90fd \\u6b66\\u65ad \\u6b66\\u5de5 \\u6b66\\u529f \\u6b66\\u5b98 \\u6b66\\u8fdb \\u6b66\\u8b66 \\u6b66\\u4e3e \\u6b66\\u529b \\u6b66\\u5668 \\u6b66\\u4eba \\u6b66\\u751f \\u6b66\\u5e08 \\u6b66\\u5a01 \\u6b66\\u4e49 \\u6b66\\u88c5 \\u4fae\\u8fb1 \\u821e\\u8e48 \\u821e\\u52a8 \\u821e\\u4f1a \\u821e\\u5f04 \\u821e\\u5973 \\u5140\\u7acb \\u5140\\u7a81 \\u52a1\\u5de5 \\u52a1\\u519c \\u52a1\\u671f \\u52a1\\u5b9e \\u52a1\\u865a \\u52a1\\u8981 \\u52a1\\u6b63 \\u7269\\u4ea7 \\u7269\\u6545 \\u7269\\u529b \\u7269\\u54c1 \\u7269\\u60c5 \\u7269\\u8272 \\u7269\\u4e8b \\u7269\\u5916 \\u7269\\u50cf \\u7269\\u6027 \\u7269\\u8bae \\u7269\\u79cd \\u7269\\u4e3b \\u8bef\\u4f20 \\u8bef\\u5de5 \\u8bef\\u56fd \\u8bef\\u4f1a \\u8bef\\u89e3 \\u8bef\\u671f \\u8bef\\u6740 \\u8bef\\u4f24 \\u8bef\\u4e8b \\u8bef\\u4fe1 \\u8bef\\u7528 \\u609f\\u9053 \\u609f\\u6027 \\u75e6\\u5b50 \\u96fe\\u6c14 \\u5915\\u70df \\u5915\\u7167 \\u897f\\u5b89 \\u897f\\u5317 \\u897f\\u9910 \\u897f\\u65b9 \\u897f\\u975e \\u897f\\u98ce \\u897f\\u5bab \\u897f\\u74dc \\u897f\\u6d77 \\u897f\\u6e56 \\u897f\\u753b \\u897f\\u6c5f \\u897f\\u7ecf \\u897f\\u5386 \\u897f\\u95e8 \\u897f\\u5357 \\u897f\\u5c71 \\u897f\\u65bd \\u897f\\u5929 \\u897f\\u5934 \\u897f\\u738b \\u897f\\u6587 \\u897f\\u4e61 \\u897f\\u5b66 \\u897f\\u6d0b \\u897f\\u8bed \\u897f\\u88c5 \\u5438\\u9644 \\u5438\\u7ba1 \\u5438\\u529b \\u5438\\u7eb3 \\u5438\\u6c14 \\u5438\\u70ed \\u5438\\u58f0 \\u5438\\u98df \\u5438\\u6536 \\u5438\\u70df \\u5e0c\\u56fe \\u5e0c\\u671b \\u6614\\u5e74 \\u6614\\u4eba \\u6614\\u65e5 \\u6614\\u65f6 \\u6790\\u51fa \\u6790\\u7591 \\u727a\\u7272 \\u606f\\u5175 \\u606f\\u8089 \\u606f\\u5f71 \\u7a00\\u62c9 \\u7a00\\u5947 \\u7a00\\u758f \\u7a00\\u6709 \\u7fd5\\u52a8 \\u7fd5\\u5f20 \\u7280\\u89d2 \\u7280\\u5229 \\u9521\\u7eb8 \\u6eaa\\u6c34 \\u7199\\u548c \\u7184\\u706d \\u819d\\u5934 \\u819d\\u4e0b \\u5b09\\u95f9 \\u5b09\\u800d \\u4e60\\u597d \\u4e60\\u89c1 \\u4e60\\u6c14 \\u4e60\\u6c34 \\u4e60\\u6027 \\u4e60\\u7528 \\u4e60\\u5b57 \\u4e60\\u4f5c \\u5e2d\\u8349 \\u5e2d\\u6b21 \\u5e2d\\u5730 \\u5e2d\\u9762 \\u6a84\\u6587 \\u6d17\\u6da4 \\u6d17\\u793c \\u6d17\\u7164 \\u6d17\\u4e09 \\u6d17\\u624b \\u6d17\\u8131 \\u6d17\\u8863 \\u6d17\\u6d74 \\u559c\\u7231 \\u559c\\u4e50 \\u559c\\u6c14 \\u559c\\u5e86 \\u559c\\u4eba \\u559c\\u8272 \\u559c\\u4e8b \\u559c\\u7cd6 \\u559c\\u96e8 \\u620f\\u73ed \\u620f\\u672c \\u620f\\u8bcd \\u620f\\u5355 \\u620f\\u6cd5 \\u620f\\u76ee \\u620f\\u5f04 \\u620f\\u8bc4 \\u620f\\u800d \\u620f\\u6c34 \\u620f\\u6587 \\u620f\\u8a00 \\u620f\\u9662 \\u620f\\u7167 \\u620f\\u88c5 \\u620f\\u5b50 \\u7cfb\\u8bcd \\u7cfb\\u5217 \\u7cfb\\u5ff5 \\u7cfb\\u6570 \\u7ec6\\u522b \\u7ec6\\u90e8 \\u7ec6\\u5de5 \\u7ec6\\u6545 \\u7ec6\\u7ba1 \\u7ec6\\u6d3b \\u7ec6\\u770b \\u7ec6\\u6bdb \\u7ec6\\u76ee \\u7ec6\\u60c5 \\u7ec6\\u5fae \\u7ec6\\u5c0f \\u7ec6\\u5fc3 \\u7ec6\\u96e8 \\u7ec6\\u8bed \\u7ec6\\u957f \\u7ec6\\u4f5c \\u867e\\u7c73 \\u867e\\u5b50 \\u778e\\u626f \\u778e\\u5439 \\u778e\\u95f9 \\u778e\\u6293 \\u4fa0\\u9aa8 \\u4fa0\\u6c14 \\u4fa0\\u4e49 \\u5ce1\\u6c5f \\u5ce1\\u53e3 \\u5ce1\\u6e7e \\u72ed\\u5c0f \\u72ed\\u4e49 \\u72ed\\u957f \\u971e\\u5149 \\u4e0b\\u5df4 \\u4e0b\\u73ed \\u4e0b\\u7b14 \\u4e0b\\u6807 \\u4e0b\\u90e8 \\u4e0b\\u64cd \\u4e0b\\u6c89 \\u4e0b\\u4e58 \\u4e0b\\u5782 \\u4e0b\\u5507 \\u4e0b\\u6b21 \\u4e0b\\u5730 \\u4e0b\\u8dcc \\u4e0b\\u5b9a \\u4e0b\\u53d1 \\u4e0b\\u65b9 \\u4e0b\\u653e \\u4e0b\\u98ce \\u4e0b\\u6d6e \\u4e0b\\u5de5 \\u4e0b\\u5173 \\u4e0b\\u5b98 \\u4e0b\\u6d77 \\u4e0b\\u6000 \\u4e0b\\u56de \\u4e0b\\u5bb6 \\u4e0b\\u6c5f \\u4e0b\\u964d \\u4e0b\\u811a \\u4e0b\\u52b2 \\u4e0b\\u53e3 \\u4e0b\\u6b3e \\u4e0b\\u6765 \\u4e0b\\u529b \\u4e0b\\u5217 \\u4e0b\\u9a6c \\u4e0b\\u9762 \\u4e0b\\u54c1 \\u4e0b\\u68cb \\u4e0b\\u6c14 \\u4e0b\\u60c5 \\u4e0b\\u4eba \\u4e0b\\u5c71 \\u4e0b\\u8eab \\u4e0b\\u624b \\u4e0b\\u9996 \\u4e0b\\u5c5e \\u4e0b\\u6c34 \\u4e0b\\u540c \\u4e0b\\u63a8 \\u4e0b\\u6587 \\u4e0b\\u5348 \\u4e0b\\u5f26 \\u4e0b\\u9677 \\u4e0b\\u4e61 \\u4e0b\\u5b66 \\u4e0b\\u91ce \\u4e0b\\u6e38 \\u4e0b\\u96e8 \\u4e0b\\u9662 \\u4e0b\\u6708 \\u4e0b\\u79cd \\u4e0b\\u88c5 \\u4e0b\\u5760 \\u4e0b\\u5b50 \\u4e0b\\u4f5c \\u5413\\u5012 \\u5413\\u4eba \\u590f\\u5386 \\u590f\\u65e5 \\u590f\\u6536 \\u590f\\u719f \\u590f\\u5929 \\u590f\\u8863 \\u590f\\u88c5 \\u4ed9\\u4e39 \\u4ed9\\u59d1 \\u4ed9\\u9e64 \\u4ed9\\u5c45 \\u4ed9\\u8305 \\u4ed9\\u5973 \\u4ed9\\u4eba \\u4ed9\\u6843 \\u4ed9\\u6e38 \\u4ed9\\u5b50 \\u5148\\u950b \\u5148\\u6cb3 \\u5148\\u673a \\u5148\\u89c1 \\u5148\\u8fdb \\u5148\\u4f8b \\u5148\\u6c11 \\u5148\\u671f \\u5148\\u524d \\u5148\\u9063 \\u5148\\u4eba \\u5148\\u751f \\u5148\\u58f0 \\u5148\\u624b \\u5148\\u5929 \\u5148\\u5934 \\u5148\\u738b \\u5148\\u77e5 \\u5148\\u7956 \\u7ea4\\u6bdb \\u7ea4\\u7626 \\u7ea4\\u7ea4 \\u7ea4\\u5c0f \\u7ea4\\u957f \\u7c7c\\u7c73 \\u9c9c\\u5351 \\u9c9c\\u679c \\u9c9c\\u7ea2 \\u9c9c\\u82b1 \\u9c9c\\u6d3b \\u9c9c\\u8d27 \\u9c9c\\u7075 \\u9c9c\\u7eff \\u9c9c\\u7f8e \\u9c9c\\u660e \\u9c9c\\u6da6 \\u9c9c\\u98df \\u9c9c\\u9c7c \\u95f2\\u6b65 \\u95f2\\u626f \\u95f2\\u5c45 \\u95f2\\u804a \\u95f2\\u6c14 \\u95f2\\u60c5 \\u95f2\\u4eba \\u95f2\\u65f6 \\u95f2\\u4e8b \\u95f2\\u5ead \\u95f2\\u5fc3 \\u8d24\\u624d \\u8d24\\u5fb7 \\u8d24\\u660e \\u8d24\\u80fd \\u8d24\\u4eba \\u5f26\\u6b4c \\u5f26\\u7d22 \\u54b8\\u6de1 \\u54b8\\u8089 \\u54b8\\u6c34 \\u6d8e\\u6c34 \\u5a34\\u719f \\u5a34\\u96c5 \\u5acc\\u7591 \\u5acc\\u618e \\u663e\\u51fa \\u663e\\u89c1 \\u663e\\u7075 \\u663e\\u660e \\u663e\\u76ee \\u663e\\u80fd \\u663e\\u5723 \\u663e\\u5fae \\u663e\\u73b0 \\u663e\\u6548 \\u663e\\u5b66 \\u663e\\u8981 \\u663e\\u5f71 \\u9669\\u5730 \\u9669\\u6bb5 \\u9669\\u6076 \\u9669\\u5de5 \\u9669\\u5173 \\u9669\\u60c5 \\u9669\\u80dc \\u9669\\u8981 \\u9669\\u8bc8 \\u9669\\u963b \\u53bf\\u5b98 \\u53bf\\u5fd7 \\u73b0\\u6210 \\u73b0\\u4e11 \\u73b0\\u5730 \\u73b0\\u8d27 \\u73b0\\u91d1 \\u73b0\\u5c40 \\u73b0\\u6b3e \\u73b0\\u5e74 \\u73b0\\u671f \\u73b0\\u65f6 \\u73b0\\u5b9e \\u73b0\\u52bf \\u73b0\\u4e0b \\u73b0\\u6d0b \\u73b0\\u5f79 \\u73b0\\u6709 \\u73b0\\u5728 \\u9650\\u5b9a \\u9650\\u5ea6 \\u9650\\u671f \\u9650\\u6b62 \\u7ebf\\u6750 \\u7ebf\\u6bb5 \\u7ebf\\u5708 \\u7ebf\\u7ef3 \\u7ebf\\u7d22 \\u7ebf\\u5934 \\u7ebf\\u56e2 \\u7ebf\\u9999 \\u7ebf\\u8f74 \\u7ebf\\u88c5 \\u5baa\\u5175 \\u5baa\\u6cd5 \\u9677\\u8eab \\u7fa1\\u6155 \\u732e\\u5b9d \\u732e\\u4e11 \\u732e\\u8bcd \\u732e\\u82b1 \\u732e\\u8ba1 \\u732e\\u793c \\u732e\\u4e0a \\u732e\\u8eab \\u9730\\u5f39 \\u4e61\\u6751 \\u4e61\\u515a \\u4e61\\u95f4 \\u4e61\\u5c45 \\u4e61\\u91cc \\u4e61\\u6c11 \\u4e61\\u4eb2 \\u4e61\\u60c5 \\u4e61\\u66f2 \\u4e61\\u4eba \\u4e61\\u8bd5 \\u4e61\\u571f \\u4e61\\u4e0b \\u4e61\\u91ce \\u4e61\\u97f3 \\u4e61\\u90ae \\u4e61\\u9547 \\u76f8\\u7231 \\u76f8\\u5b89 \\u76f8\\u6bd4 \\u76f8\\u5dee \\u76f8\\u6210 \\u76f8\\u4e58 \\u76f8\\u4f20 \\u76f8\\u5f53 \\u76f8\\u5bf9 \\u76f8\\u53cd \\u76f8\\u4eff \\u76f8\\u5e72 \\u76f8\\u987e \\u76f8\\u5173 \\u76f8\\u597d \\u76f8\\u5408 \\u76f8\\u4e92 \\u76f8\\u4f1a \\u76f8\\u89c1 \\u76f8\\u4ea4 \\u76f8\\u805a \\u76f8\\u770b \\u76f8\\u8fde \\u76f8\\u914d \\u76f8\\u5207 \\u76f8\\u4eb2 \\u76f8\\u529d \\u76f8\\u5546 \\u76f8\\u8bc6 \\u76f8\\u4f3c \\u76f8\\u719f \\u76f8\\u968f \\u76f8\\u901a \\u76f8\\u540c \\u76f8\\u6295 \\u76f8\\u6258 \\u76f8\\u671b \\u76f8\\u5411 \\u76f8\\u50cf \\u76f8\\u4fe1 \\u76f8\\u6cbf \\u76f8\\u4f9d \\u76f8\\u4e0e \\u76f8\\u77e5 \\u76f8\\u52a9 \\u9999\\u69df \\u9999\\u6ce2 \\u9999\\u8349 \\u9999\\u80a0 \\u9999\\u6a59 \\u9999\\u5e72 \\u9999\\u74dc \\u9999\\u82b1 \\u9999\\u51e0 \\u9999\\u6c5f \\u9999\\u7cbe \\u9999\\u8305 \\u9999\\u56ca \\u9999\\u7247 \\u9999\\u6c14 \\u9999\\u5c71 \\u9999\\u6c34 \\u9999\\u70df \\u9999\\u6cb9 \\u9999\\u9c7c \\u6e58\\u6c5f \\u8944\\u52a9 \\u8be6\\u660e \\u8be6\\u60c5 \\u8be6\\u5b9e \\u8be6\\u6089 \\u7965\\u548c \\u7965\\u4e91 \\u7fd4\\u5b9e \\u4eab\\u4e50 \\u4eab\\u5e74 \\u4eab\\u53d7 \\u4eab\\u7528 \\u4eab\\u6709 \\u54cd\\u9f3b \\u54cd\\u97ad \\u54cd\\u52a8 \\u54cd\\u5ea6 \\u54cd\\u96f7 \\u54cd\\u9a6c \\u54cd\\u58f0 \\u54cd\\u97f3 \\u9977\\u94f6 \\u60f3\\u6cd5 \\u60f3\\u89c1 \\u60f3\\u6765 \\u60f3\\u5ff5 \\u60f3\\u671b \\u5411\\u80cc \\u5411\\u6765 \\u5411\\u4f8b \\u5411\\u524d \\u5411\\u4e0a \\u5411\\u4e0b \\u5411\\u5fc3 \\u5411\\u5b66 \\u9879\\u80cc \\u9879\\u76ee \\u9879\\u5708 \\u9879\\u9970 \\u5df7\\u53e3 \\u50cf\\u7247 \\u6a61\\u5b50 \\u8096\\u6069 \\u67ad\\u5c06 \\u67ad\\u9996 \\u67ad\\u96c4 \\u6d88\\u6c89 \\u6d88\\u9664 \\u6d88\\u9632 \\u6d88\\u8d39 \\u6d88\\u89e3 \\u6d88\\u706d \\u6d88\\u6cef \\u6d88\\u78e8 \\u6d88\\u6c14 \\u6d88\\u9063 \\u6d88\\u6563 \\u6d88\\u58f0 \\u6d88\\u5931 \\u6d88\\u98df \\u6d88\\u53d7 \\u6d88\\u7626 \\u6d88\\u505c \\u6d88\\u9000 \\u6d88\\u606f \\u6d88\\u591c \\u5bb5\\u5c0f \\u5bb5\\u591c \\u785d\\u57fa \\u785d\\u70df \\u9500\\u9489 \\u9500\\u6bc1 \\u9500\\u9b42 \\u9500\\u52bf \\u9500\\u8d43 \\u9500\\u5b50 \\u6f47\\u6d12 \\u56a3\\u6742 \\u56a3\\u5f20 \\u6dc6\\u4e71 \\u6dc6\\u6742 \\u5c0f\\u73ed \\u5c0f\\u534a \\u5c0f\\u4fbf \\u5c0f\\u522b \\u5c0f\\u5175 \\u5c0f\\u6b65 \\u5c0f\\u4ea7 \\u5c0f\\u80a0 \\u5c0f\\u5403 \\u5c0f\\u4e11 \\u5c0f\\u6625 \\u5c0f\\u8bcd \\u5c0f\\u65e6 \\u5c0f\\u5200 \\u5c0f\\u9053 \\u5c0f\\u8c46 \\u5c0f\\u961f \\u5c0f\\u513f \\u5c0f\\u8d39 \\u5c0f\\u5de5 \\u5c0f\\u59d1 \\u5c0f\\u9f13 \\u5c0f\\u9b3c \\u5c0f\\u56fd \\u5c0f\\u6d77 \\u5c0f\\u5bd2 \\u5c0f\\u811a \\u5c0f\\u89e3 \\u5c0f\\u5f84 \\u5c0f\\u805a \\u5c0f\\u5f00 \\u5c0f\\u770b \\u5c0f\\u53ef \\u5c0f\\u9f99 \\u5c0f\\u9a6c \\u5c0f\\u6bdb \\u5c0f\\u7c73 \\u5c0f\\u540d \\u5c0f\\u8111 \\u5c0f\\u5e74 \\u5c0f\\u519c \\u5c0f\\u5973 \\u5c0f\\u8dd1 \\u5c0f\\u54c1 \\u5c0f\\u6c14 \\u5c0f\\u4eba \\u5c0f\\u5c71 \\u5c0f\\u751f \\u5c0f\\u65f6 \\u5c0f\\u5e02 \\u5c0f\\u4e8b \\u5c0f\\u6570 \\u5c0f\\u7761 \\u5c0f\\u5934 \\u5c0f\\u738b \\u5c0f\\u6211 \\u5c0f\\u5fc3 \\u5c0f\\u5b66 \\u5c0f\\u59e8 \\u5c0f\\u5f71 \\u5c0f\\u96e8 \\u5c0f\\u6708 \\u5c0f\\u7ad9 \\u5c0f\\u7167 \\u5c0f\\u5b57 \\u5c0f\\u5352 \\u5c0f\\u5750 \\u6653\\u7545 \\u6653\\u6708 \\u5b5d\\u9053 \\u5b5d\\u5973 \\u5b5d\\u987a \\u5b5d\\u5fc3 \\u5b5d\\u8863 \\u5b5d\\u4e49 \\u5b5d\\u5b50 \\u6821\\u98ce \\u6821\\u6b4c \\u6821\\u5de5 \\u6821\\u5b98 \\u6821\\u89c4 \\u6821\\u82b1 \\u6821\\u5fbd \\u6821\\u520a \\u6821\\u5e86 \\u6821\\u820d \\u6821\\u5c09 \\u7b11\\u8c8c \\u7b11\\u7eb3 \\u7b11\\u6c14 \\u7b11\\u58f0 \\u7b11\\u610f \\u7b11\\u5f71 \\u7b11\\u8bed \\u6548\\u6cd5 \\u6548\\u4eff \\u6548\\u679c \\u6548\\u529b \\u6548\\u547d \\u6548\\u80fd \\u6548\\u9a8c \\u6548\\u7528 \\u5578\\u805a \\u4e9b\\u5fae \\u4e9b\\u5c0f \\u6954\\u5b50 \\u6b47\\u73ed \\u6b47\\u4f0f \\u6b47\\u5de5 \\u6b47\\u811a \\u6b47\\u6c14 \\u6b47\\u624b \\u6b47\\u606f \\u6b47\\u5bbf \\u6b47\\u591c \\u874e\\u864e \\u874e\\u5b50 \\u534f\\u5b9a \\u534f\\u548c \\u534f\\u4f1a \\u534f\\u529b \\u534f\\u5546 \\u534f\\u8c03 \\u534f\\u540c \\u534f\\u8bae \\u534f\\u52a9 \\u534f\\u4f5c \\u90aa\\u8d22 \\u90aa\\u9053 \\u90aa\\u6076 \\u90aa\\u6559 \\u90aa\\u95e8 \\u90aa\\u5ff5 \\u90aa\\u6c14 \\u90aa\\u5fc3 \\u80c1\\u4ece \\u80c1\\u8feb \\u5055\\u8001 \\u643a\\u5e26 \\u643a\\u624b \\u978b\\u5e26 \\u978b\\u8ddf \\u978b\\u9762 \\u978b\\u6cb9 \\u978b\\u5b50 \\u7f2c\\u8349 \\u5199\\u672c \\u5199\\u6cd5 \\u5199\\u751f \\u5199\\u5b9e \\u5199\\u4fe1 \\u5199\\u610f \\u5199\\u7167 \\u5199\\u771f \\u5199\\u5b57 \\u5199\\u4f5c \\u6cc4\\u6d2a \\u6cc4\\u52b2 \\u6cc4\\u9732 \\u6cc4\\u6c14 \\u6cc4\\u6c34 \\u6cfb\\u6e56 \\u5378\\u8d27 \\u5378\\u88c5 \\u8c22\\u8bcd \\u8c22\\u6069 \\u8c22\\u793c \\u8c22\\u5374 \\u8c22\\u610f \\u8c22\\u7f6a \\u87f9\\u9ec4 \\u87f9\\u9752 \\u5fc3\\u7231 \\u5fc3\\u5b89 \\u5fc3\\u75c5 \\u5fc3\\u6750 \\u5fc3\\u80a0 \\u5fc3\\u4f20 \\u5fc3\\u5f97 \\u5fc3\\u5730 \\u5fc3\\u5b9a \\u5fc3\\u52a8 \\u5fc3\\u6d6e \\u5fc3\\u7518 \\u5fc3\\u9ad8 \\u5fc3\\u6d77 \\u5fc3\\u5bd2 \\u5fc3\\u82b1 \\u5fc3\\u6000 \\u5fc3\\u673a \\u5fc3\\u6025 \\u5fc3\\u8ba1 \\u5fc3\\u5c16 \\u5fc3\\u52b2 \\u5fc3\\u574e \\u5fc3\\u53e3 \\u5fc3\\u91cc \\u5fc3\\u529b \\u5fc3\\u7075 \\u5fc3\\u76ee \\u5fc3\\u6c14 \\u5fc3\\u60c5 \\u5fc3\\u4f24 \\u5fc3\\u795e \\u5fc3\\u58f0 \\u5fc3\\u4e8b \\u5fc3\\u5ba4 \\u5fc3\\u6570 \\u5fc3\\u7b97 \\u5fc3\\u75db \\u5fc3\\u5934 \\u5fc3\\u571f \\u5fc3\\u5f26 \\u5fc3\\u6027 \\u5fc3\\u80f8 \\u5fc3\\u865a \\u5fc3\\u610f \\u5fc3\\u97f3 \\u5fc3\\u5fd7 \\u5fc3\\u667a \\u5fc3\\u4e2d \\u5fc3\\u91cd \\u8f9b\\u82e6 \\u8f9b\\u8fa3 \\u8f9b\\u672a \\u6b23\\u6089 \\u6b23\\u559c \\u950c\\u767d \\u65b0\\u5175 \\u65b0\\u6625 \\u65b0\\u6751 \\u65b0\\u90fd \\u65b0\\u6cd5 \\u65b0\\u98ce \\u65b0\\u5e72 \\u65b0\\u5149 \\u65b0\\u4ea4 \\u65b0\\u6559 \\u65b0\\u5c45 \\u65b0\\u519b \\u65b0\\u6b3e \\u65b0\\u7eff \\u65b0\\u8c8c \\u65b0\\u6c11 \\u65b0\\u5e74 \\u65b0\\u5947 \\u65b0\\u4eba \\u65b0\\u751f \\u65b0\\u624b \\u65b0\\u5c81 \\u65b0\\u9c9c \\u65b0\\u661f \\u65b0\\u5b66 \\u65b0\\u96c5 \\u65b0\\u4e49 \\u65b0\\u610f \\u65b0\\u96e8 \\u65b0\\u6708 \\u65b0\\u5f20 \\u65b0\\u77e5 \\u65b0\\u88c5 \\u65b0\\u4f5c \\u85aa\\u91d1 \\u85aa\\u6c34 \\u99a8\\u9999 \\u56df\\u95e8 \\u4fe1\\u7b14 \\u4fe1\\u6b65 \\u4fe1\\u4ece \\u4fe1\\u9053 \\u4fe1\\u98ce \\u4fe1\\u5c01 \\u4fe1\\u5949 \\u4fe1\\u6c47 \\u4fe1\\u6559 \\u4fe1\\u53e3 \\u4fe1\\u5ff5 \\u4fe1\\u5973 \\u4fe1\\u624b \\u4fe1\\u5b88 \\u4fe1\\u5f92 \\u4fe1\\u6258 \\u4fe1\\u606f \\u4fe1\\u90aa \\u4fe1\\u5fc3 \\u4fe1\\u4ef0 \\u4fe1\\u4e49 \\u4fe1\\u7528 \\u4fe1\\u7eb8 \\u661f\\u6597 \\u661f\\u5149 \\u661f\\u6cb3 \\u661f\\u7a7a \\u661f\\u5386 \\u661f\\u671f \\u661f\\u56fe \\u661f\\u56e2 \\u661f\\u7cfb \\u661f\\u661f \\u661f\\u591c \\u661f\\u4e91 \\u661f\\u5b50 \\u7329\\u7ea2 \\u8165\\u6c14 \\u5211\\u90e8 \\u5211\\u6cd5 \\u5211\\u8b66 \\u5211\\u5177 \\u5211\\u540d \\u5211\\u671f \\u5211\\u4e8b \\u5211\\u5ead \\u5f62\\u53d8 \\u5f62\\u6210 \\u5f62\\u8c8c \\u5f62\\u65c1 \\u5f62\\u58f0 \\u5f62\\u4f3c \\u5f62\\u52bf \\u5f62\\u5f71 \\u9192\\u76ee \\u5174\\u5b89 \\u5174\\u5175 \\u5174\\u53d1 \\u5174\\u5de5 \\u5174\\u56fd \\u5174\\u6d77 \\u5174\\u548c \\u5174\\u5e73 \\u5174\\u8d77 \\u5174\\u5c71 \\u5174\\u76db \\u5174\\u5e08 \\u5174\\u8870 \\u5174\\u6587 \\u5174\\u53bf \\u5174\\u5b66 \\u5174\\u4e49 \\u674f\\u5e72 \\u674f\\u7ea2 \\u674f\\u9ec4 \\u674f\\u812f \\u674f\\u5b50 \\u5e78\\u597d \\u5e78\\u4f1a \\u5e78\\u8fdb \\u5e78\\u4e8f \\u5e78\\u751a \\u5e78\\u4e8b \\u5e78\\u559c \\u5e78\\u8fd0 \\u6027\\u7231 \\u6027\\u522b \\u6027\\u683c \\u6027\\u6025 \\u6027\\u4ea4 \\u6027\\u547d \\u6027\\u80fd \\u6027\\u60c5 \\u6027\\u5f81 \\u59d3\\u540d \\u51f6\\u66b4 \\u51f6\\u6076 \\u51f6\\u72af \\u51f6\\u5149 \\u51f6\\u5e74 \\u51f6\\u6c14 \\u51f6\\u5668 \\u51f6\\u6740 \\u51f6\\u795e \\u51f6\\u4e8b \\u51f6\\u624b \\u51f6\\u6b7b \\u51f6\\u4fe1 \\u6c79\\u6c79 \\u6c79\\u6d8c \\u80f8\\u90e8 \\u80f8\\u9aa8 \\u80f8\\u6000 \\u80f8\\u53e3 \\u80f8\\u5ed3 \\u80f8\\u8154 \\u80f8\\u81c6 \\u80f8\\u690e \\u96c4\\u5175 \\u96c4\\u624d \\u96c4\\u5927 \\u96c4\\u98ce \\u96c4\\u5173 \\u96c4\\u539a \\u96c4\\u9ec4 \\u96c4\\u5947 \\u96c4\\u8d77 \\u96c4\\u5e08 \\u96c4\\u56fe \\u96c4\\u5a01 \\u96c4\\u6587 \\u96c4\\u5fc3 \\u718a\\u5e02 \\u5bbf\\u820d \\u620c\\u65f6 \\u5401\\u5401 \\u987b\\u8981 \\u987b\\u77e5 \\u987b\\u5b50 \\u865a\\u6c57 \\u865a\\u7a7a \\u865a\\u50cf \\u9700\\u7d22 \\u9700\\u8981 \\u9700\\u7528 \\u5f90\\u6b65 \\u5f90\\u7f13 \\u5f90\\u56fe \\u5f90\\u5dde \\u8bb8\\u591a \\u8bb8\\u53ef \\u8bb8\\u914d \\u65ed\\u65e5 \\u5e8f\\u8dcb \\u5e8f\\u6b21 \\u5e8f\\u5217 \\u5e8f\\u8bba \\u5e8f\\u76ee \\u5e8f\\u6570 \\u5e8f\\u6587 \\u5e8f\\u8a00 \\u53d9\\u522b \\u53d9\\u529f \\u53d9\\u4e8b \\u6064\\u91d1 \\u7d6e\\u7d6e \\u7d6e\\u8bed \\u84c4\\u53d1 \\u84c4\\u6d2a \\u84c4\\u79ef \\u84c4\\u8c0b \\u84c4\\u6c34 \\u84c4\\u517b \\u84c4\\u610f \\u5ba3\\u79f0 \\u5ba3\\u4f20 \\u5ba3\\u6069 \\u5ba3\\u6559 \\u5ba3\\u8a00 \\u5ba3\\u626c \\u5ba3\\u7eb8 \\u8431\\u8349 \\u55a7\\u95f9 \\u55a7\\u5929 \\u55a7\\u6742 \\u7384\\u72d0 \\u7384\\u673a \\u7384\\u79d8 \\u7384\\u9752 \\u7384\\u865a \\u7384\\u5b66 \\u60ac\\u63e3 \\u65cb\\u5b50 \\u9009\\u62d4 \\u9009\\u672c \\u9009\\u6750 \\u9009\\u5b9a \\u9009\\u6bb5 \\u9009\\u4e3e \\u9009\\u520a \\u9009\\u7f8e \\u9009\\u6c11 \\u9009\\u914d \\u9009\\u6536 \\u9009\\u624b \\u9009\\u9001 \\u9009\\u7528 \\u9009\\u62e9 \\u9009\\u79cd \\u70ab\\u76ee \\u7729\\u76ee \\u6966\\u5b50 \\u524a\\u9762 \\u7a74\\u9053 \\u7a74\\u5c45 \\u7a74\\u5934 \\u5b66\\u6b65 \\u5b66\\u90e8 \\u5b66\\u8d39 \\u5b66\\u98ce \\u5b66\\u6d77 \\u5b66\\u597d \\u5b66\\u4f1a \\u5b66\\u79d1 \\u5b66\\u529b \\u5b66\\u5386 \\u5b66\\u540d \\u5b66\\u5e74 \\u5b66\\u671f \\u5b66\\u4eba \\u5b66\\u751f \\u5b66\\u65f6 \\u5b66\\u8bc6 \\u5b66\\u5f92 \\u5b66\\u6821 \\u5b66\\u9662 \\u5b66\\u5b50 \\u52cb\\u7235 \\u718f\\u98ce \\u718f\\u9999 \\u65ec\\u520a \\u65ec\\u65e5 \\u5bfb\\u673a \\u5bfb\\u4eba \\u5bfb\\u58f0 \\u5bfb\\u6b7b \\u5de1\\u5bdf \\u5de1\\u98ce \\u5de1\\u822a \\u5de1\\u56de \\u5de1\\u68c0 \\u5de1\\u8b66 \\u5de1\\u793c \\u5de1\\u5b88 \\u5de1\\u5929 \\u5de1\\u6e38 \\u8368\\u9ebb \\u5faa\\u73af \\u9c9f\\u9c7c \\u8bad\\u8bcd \\u8baf\\u606f \\u6c5b\\u671f \\u6c5b\\u60c5 \\u8fc5\\u5373 \\u8fc5\\u6025 \\u8fc5\\u96f7 \\u8fc5\\u901f \\u9a6f\\u719f \\u9a6f\\u987a \\u9a6f\\u517b \\u5f87\\u60c5 \\u900a\\u8272 \\u6b89\\u9053 \\u6b89\\u56fd \\u6b89\\u6559 \\u6b89\\u60c5 \\u538b\\u79e4 \\u538b\\u5012 \\u538b\\u961f \\u538b\\u5149 \\u538b\\u8d27 \\u538b\\u60ca \\u538b\\u5377 \\u538b\\u529b \\u538b\\u5e73 \\u538b\\u8feb \\u538b\\u5f3a \\u538b\\u7f29 \\u538b\\u75db \\u538b\\u5934 \\u62bc\\u5b9d \\u62bc\\u91d1 \\u62bc\\u6b3e \\u62bc\\u9001 \\u62bc\\u8fd0 \\u62bc\\u97f5 \\u9e26\\u7247 \\u9e2d\\u9ec4 \\u9e2d\\u5b50 \\u7259\\u9f7f \\u7259\\u96d5 \\u7259\\u818f \\u7259\\u5173 \\u7259\\u5177 \\u7259\\u53e3 \\u7259\\u8272 \\u7259\\u75db \\u4f22\\u5b50 \\u8859\\u95e8 \\u8859\\u5185 \\u8859\\u5f79 \\u54d1\\u5df4 \\u54d1\\u8bed \\u96c5\\u6c14 \\u96c5\\u4eba \\u96c5\\u8a00 \\u96c5\\u610f \\u96c5\\u6b63 \\u4e9a\\u5f53 \\u4e9a\\u4e1c \\u4e9a\\u519b \\u54bd\\u5589 \\u54bd\\u5934 \\u70df\\u6ce2 \\u70df\\u8349 \\u70df\\u9053 \\u70df\\u6597 \\u70df\\u9b3c \\u70df\\u82b1 \\u70df\\u5177 \\u70df\\u5377 \\u70df\\u7164 \\u70df\\u6c11 \\u70df\\u519c \\u70df\\u6c14 \\u70df\\u8272 \\u70df\\u5934 \\u70df\\u571f \\u70df\\u53f6 \\u70df\\u96e8 \\u70df\\u4e91 \\u6e6e\\u706d \\u5ae3\\u7ea2 \\u5ef6\\u5b89 \\u5ef6\\u8fdf \\u5ef6\\u7f13 \\u5ef6\\u7ef5 \\u5ef6\\u8111 \\u5ef6\\u5e74 \\u5ef6\\u671f \\u5ef6\\u8bf7 \\u5ef6\\u5e86 \\u5ef6\\u957f \\u4e25\\u8bcd \\u4e25\\u8f9e \\u4e25\\u51ac \\u4e25\\u9632 \\u4e25\\u683c \\u4e25\\u5bd2 \\u4e25\\u7d27 \\u4e25\\u8c28 \\u4e25\\u5389 \\u4e25\\u660e \\u4e25\\u5e08 \\u4e25\\u5b9e \\u4e25\\u5b88 \\u4e25\\u971c \\u4e25\\u6b63 \\u4e25\\u91cd \\u8a00\\u4f20 \\u8a00\\u8bcd \\u8a00\\u8f9e \\u8a00\\u9053 \\u8a00\\u548c \\u8a00\\u6559 \\u8a00\\u8bba \\u8a00\\u60c5 \\u8a00\\u8bed \\u8a00\\u91cd \\u5ca9\\u753b \\u5ca9\\u6eb6 \\u5ca9\\u7f8a \\u708e\\u9ec4 \\u708e\\u70ed \\u708e\\u65e5 \\u6cbf\\u9769 \\u6cbf\\u6d77 \\u6cbf\\u6cb3 \\u6cbf\\u6c5f \\u6cbf\\u7528 \\u7814\\u78e8 \\u76d0\\u5df4 \\u76d0\\u90fd \\u76d0\\u5de5 \\u76d0\\u6e56 \\u76d0\\u6c11 \\u76d0\\u5546 \\u76d0\\u6c34 \\u76d0\\u7a0e \\u989c\\u9762 \\u989c\\u8272 \\u6a90\\u53e3 \\u884d\\u53d8 \\u884d\\u5c04 \\u884d\\u751f \\u884d\\u6587 \\u63a9\\u9970 \\u773c\\u89c1 \\u773c\\u5b50 \\u6f14\\u53d8 \\u6f14\\u5531 \\u6f14\\u51fa \\u6f14\\u8fdb \\u6f14\\u7b97 \\u6f14\\u4e49 \\u6f14\\u594f \\u781a\\u5c71 \\u8273\\u7ea2 \\u8273\\u60c5 \\u8273\\u88c5 \\u5501\\u7535 \\u5bb4\\u4f1a \\u5bb4\\u4e50 \\u5bb4\\u8bf7 \\u5bb4\\u996e \\u9a8c\\u65b9 \\u9a8c\\u5173 \\u9a8c\\u5149 \\u9a8c\\u6838 \\u9a8c\\u660e \\u9a8c\\u5c38 \\u9a8c\\u6536 \\u9a8c\\u7b97 \\u96c1\\u884c \\u7130\\u5fc3 \\u71d5\\u96c0 \\u8d5d\\u672c \\u8d5d\\u54c1 \\u592e\\u884c \\u592e\\u6258 \\u79e7\\u6b4c \\u79e7\\u5b50 \\u626c\\u97ad \\u626c\\u573a \\u626c\\u82b1 \\u626c\\u540d \\u626c\\u58f0 \\u626c\\u6c34 \\u626c\\u5a01 \\u626c\\u8a00 \\u626c\\u626c \\u626c\\u957f \\u7f8a\\u80a0 \\u7f8a\\u89d2 \\u7f8a\\u6bdb \\u7f8a\\u6c34 \\u7f8a\\u5b50 \\u9633\\u6625 \\u9633\\u7535 \\u9633\\u521a \\u9633\\u5173 \\u9633\\u5149 \\u9633\\u95f4 \\u9633\\u5386 \\u9633\\u9762 \\u9633\\u5e73 \\u9633\\u5c71 \\u9633\\u6587 \\u9633\\u6027 \\u9633\\u865a \\u6768\\u6811 \\u6768\\u6843 \\u4f6f\\u79f0 \\u4f6f\\u52a8 \\u4f6f\\u653b \\u4f6f\\u8a00 \\u4f6f\\u88c5 \\u6d0b\\u8d22 \\u6d0b\\u884c \\u6d0b\\u7ea2 \\u6d0b\\u8d27 \\u6d0b\\u9762 \\u6d0b\\u6c14 \\u6d0b\\u4eba \\u6d0b\\u94c1 \\u6d0b\\u6587 \\u6d0b\\u70df \\u6d0b\\u6d0b \\u6d0b\\u88c5 \\u4ef0\\u5149 \\u4ef0\\u89d2 \\u4ef0\\u9762 \\u4ef0\\u6155 \\u4ef0\\u9996 \\u4ef0\\u5929 \\u4ef0\\u671b \\u517b\\u5175 \\u517b\\u6210 \\u517b\\u8702 \\u517b\\u62a4 \\u517b\\u6d3b \\u517b\\u5bb6 \\u517b\\u8001 \\u517b\\u6bcd \\u517b\\u5973 \\u517b\\u6c14 \\u517b\\u4eba \\u517b\\u4f24 \\u517b\\u795e \\u517b\\u751f \\u517b\\u606f \\u517b\\u5fc3 \\u517b\\u6027 \\u517b\\u5b50 \\u6c27\\u6c14 \\u6837\\u672c \\u6837\\u673a \\u6837\\u7247 \\u6837\\u54c1 \\u6837\\u5f20 \\u592d\\u77eb \\u5406\\u547c \\u5996\\u9053 \\u5996\\u98ce \\u5996\\u7cbe \\u5996\\u6c14 \\u5996\\u4eba \\u5996\\u8a00 \\u8170\\u90e8 \\u8170\\u5e26 \\u8170\\u5200 \\u8170\\u9f13 \\u8170\\u679c \\u8170\\u82b1 \\u8170\\u8eab \\u8170\\u4fde \\u8170\\u65a9 \\u8170\\u690e \\u8170\\u5b50 \\u9080\\u529f \\u9080\\u8bf7 \\u5c27\\u90fd \\u7a91\\u5b50 \\u8c23\\u4f20 \\u8c23\\u8a00 \\u6447\\u52a8 \\u6447\\u624b \\u6447\\u5934 \\u5fad\\u5f79 \\u9065\\u671b \\u9065\\u8fdc \\u54ac\\u5b9a \\u54ac\\u5408 \\u54ac\\u5b57 \\u8200\\u5b50 \\u836f\\u6750 \\u836f\\u8349 \\u836f\\u5382 \\u836f\\u5355 \\u836f\\u65b9 \\u836f\\u8d39 \\u836f\\u818f \\u836f\\u529b \\u836f\\u519c \\u836f\\u7247 \\u836f\\u54c1 \\u836f\\u5e08 \\u836f\\u6c34 \\u836f\\u738b \\u836f\\u6548 \\u836f\\u6027 \\u836f\\u5b66 \\u8981\\u4e0d \\u8981\\u51b2 \\u8981\\u9053 \\u8981\\u5730 \\u8981\\u72af \\u8981\\u7d27 \\u8981\\u547d \\u8981\\u76ee \\u8981\\u5f3a \\u8981\\u4eba \\u8981\\u4e8b \\u8981\\u6b7b \\u8981\\u7d20 \\u8981\\u56fe \\u8981\\u8a00 \\u8981\\u4e49 \\u9e5e\\u5b50 \\u6396\\u53bf \\u6930\\u6cb9 \\u7237\\u513f \\u4e5f\\u597d \\u4e5f\\u95e8 \\u51b6\\u91d1 \\u4e1a\\u5927 \\u4e1a\\u7ecf \\u4e1a\\u5e08 \\u4e1a\\u4f59 \\u4e1a\\u4e3b \\u53f6\\u8702 \\u53f6\\u8f6e \\u53f6\\u8109 \\u53f6\\u9762 \\u53f6\\u7247 \\u53f6\\u8089 \\u9875\\u9762 \\u9875\\u5fc3 \\u591c\\u73ed \\u591c\\u534a \\u591c\\u9910 \\u591c\\u5927 \\u591c\\u5de5 \\u591c\\u5149 \\u591c\\u822a \\u591c\\u95f4 \\u591c\\u7a7a \\u591c\\u91cc \\u591c\\u76f2 \\u591c\\u8272 \\u591c\\u6df1 \\u591c\\u5e02 \\u591c\\u6821 \\u591c\\u591c \\u591c\\u83ba \\u814b\\u6bdb \\u4e00\\u534a \\u4e00\\u5e76 \\u4e00\\u671d \\u4e00\\u6253 \\u4e00\\u65e6 \\u4e00\\u9053 \\u4e00\\u6bb5 \\u4e00\\u5bf9 \\u4e00\\u4e8c \\u4e00\\u756a \\u4e00\\u65b9 \\u4e00\\u6982 \\u4e00\\u5e72 \\u4e00\\u5bb6 \\u4e00\\u7ecf \\u4e00\\u4e3e \\u4e00\\u523b \\u4e00\\u53e3 \\u4e00\\u6765 \\u4e00\\u8fde \\u4e00\\u9762 \\u4e00\\u7247 \\u4e00\\u6c14 \\u4e00\\u7fa4 \\u4e00\\u5982 \\u4e00\\u8272 \\u4e00\\u8eab \\u4e00\\u751f \\u4e00\\u65f6 \\u4e00\\u624b \\u4e00\\u540c \\u4e00\\u5934 \\u4e00\\u5411 \\u4e00\\u5fc3 \\u4e00\\u65b0 \\u4e00\\u4e00 \\u4e00\\u6708 \\u4e00\\u65e9 \\u4e00\\u76f4 \\u4e00\\u79cd \\u4e00\\u603b \\u4f0a\\u5ddd \\u4f0a\\u4eba \\u8863\\u5e26 \\u8863\\u5c65 \\u8863\\u98df \\u8863\\u9c7c \\u8863\\u7740 \\u8863\\u88c5 \\u533b\\u9053 \\u533b\\u5fb7 \\u533b\\u62a4 \\u533b\\u79d1 \\u533b\\u751f \\u533b\\u5723 \\u533b\\u5e08 \\u533b\\u5b66 \\u533b\\u9662 \\u4f9d\\u508d \\u4f9d\\u6b21 \\u4f9d\\u4ece \\u4f9d\\u6cd5 \\u4f9d\\u9644 \\u4f9d\\u5f52 \\u4f9d\\u987a \\u4f9d\\u968f \\u4f9d\\u6258 \\u4f9d\\u7a00 \\u4f9d\\u4f9d \\u4f9d\\u7167 \\u4eea\\u8868 \\u4eea\\u5668 \\u5937\\u706d \\u5937\\u5e73 \\u9974\\u7cd6 \\u6021\\u548c \\u6021\\u795e \\u5b9c\\u6625 \\u5b9c\\u90fd \\u5b9c\\u4eba \\u59e8\\u8868 \\u59e8\\u6bcd \\u79fb\\u884c \\u9057\\u4ea7 \\u9057\\u4f20 \\u9057\\u98ce \\u9057\\u5b64 \\u9057\\u9aa8 \\u9057\\u7978 \\u9057\\u8001 \\u9057\\u6c11 \\u9057\\u5c3f \\u9057\\u5931 \\u9057\\u5c5e \\u9057\\u50cf \\u9057\\u8a00 \\u9057\\u7167 \\u9057\\u5fd7 \\u9057\\u4f5c \\u9890\\u517b \\u7591\\u4f3c \\u7591\\u56e2 \\u7591\\u5fc3 \\u7591\\u4e49 \\u7591\\u4e91 \\u4e59\\u8111 \\u5df2\\u7ecf \\u4ee5\\u4fbf \\u4ee5\\u6765 \\u4ee5\\u5185 \\u4ee5\\u671f \\u4ee5\\u524d \\u4ee5\\u4e0a \\u4ee5\\u592a \\u4ee5\\u5916 \\u4ee5\\u4e3a \\u4ee5\\u4e0b \\u8681\\u6c11 \\u8681\\u738b \\u501a\\u91cd \\u4ebf\\u4e07 \\u4e49\\u9f7f \\u4e49\\u4e3e \\u4e49\\u519b \\u4e49\\u5356 \\u4e49\\u6bcd \\u4e49\\u5973 \\u4e49\\u6c14 \\u4e49\\u5b50 \\u827a\\u540d \\u827a\\u80fd \\u827a\\u4eba \\u5fc6\\u5ff5 \\u8bae\\u5b9a \\u8bae\\u548c \\u8bae\\u4f1a \\u8bae\\u8bba \\u8bae\\u4e8b \\u8bae\\u9662 \\u5c79\\u7acb \\u5f02\\u624d \\u5f02\\u8bcd \\u5f02\\u5730 \\u5f02\\u56fd \\u5f02\\u6559 \\u5f02\\u540d \\u5f02\\u80fd \\u5f02\\u65e5 \\u5f02\\u540c \\u5f02\\u4e61 \\u5f02\\u9999 \\u5f02\\u5fc3 \\u5f02\\u6027 \\u5f02\\u8a00 \\u5f02\\u8bae \\u6291\\u626c \\u6291\\u6b62 \\u8bd1\\u672c \\u8bd1\\u7b14 \\u8bd1\\u7535 \\u8bd1\\u540d \\u8bd1\\u6587 \\u8bd1\\u97f3 \\u8bd1\\u4f5c \\u6613\\u5730 \\u6613\\u7ecf \\u6613\\u4eba \\u6613\\u624b \\u9a7f\\u9053 \\u9a7f\\u7ad9 \\u5f08\\u68cb \\u75ab\\u60c5 \\u76ca\\u53d1 \\u76ca\\u9e1f \\u76ca\\u667a \\u76ca\\u5dde \\u9038\\u4e50 \\u610f\\u8868 \\u610f\\u4f1a \\u610f\\u89c1 \\u610f\\u5ff5 \\u610f\\u6c14 \\u610f\\u8bc6 \\u610f\\u56fe \\u610f\\u5916 \\u610f\\u5473 \\u610f\\u4e0b \\u610f\\u5411 \\u610f\\u4e49 \\u610f\\u5fd7 \\u610f\\u4e2d \\u6ea2\\u51fa \\u6bc5\\u529b \\u858f\\u7c73 \\u81c6\\u65ad \\u7ffc\\u4fa7 \\u56e0\\u6b64 \\u56e0\\u679c \\u56e0\\u6570 \\u56e0\\u7d20 \\u56e0\\u5b50 \\u9634\\u6c89 \\u9634\\u9053 \\u9634\\u5fb7 \\u9634\\u7535 \\u9634\\u98ce \\u9634\\u6666 \\u9634\\u9b42 \\u9634\\u95f4 \\u9634\\u51b7 \\u9634\\u5386 \\u9634\\u6bdb \\u9634\\u95e8 \\u9634\\u9762 \\u9634\\u6a21 \\u9634\\u8c0b \\u9634\\u56ca \\u9634\\u5e73 \\u9634\\u5c71 \\u9634\\u5e02 \\u9634\\u5929 \\u9634\\u6587 \\u9634\\u6027 \\u9634\\u865a \\u9634\\u5f71 \\u9634\\u96e8 \\u9634\\u4e91 \\u8335\\u9648 \\u836b\\u853d \\u97f3\\u53d8 \\u97f3\\u6807 \\u97f3\\u6ce2 \\u97f3\\u5e26 \\u97f3\\u9ad8 \\u97f3\\u9891 \\u97f3\\u54c1 \\u97f3\\u5f3a \\u97f3\\u8272 \\u97f3\\u7d20 \\u97f3\\u901f \\u97f3\\u54cd \\u97f3\\u50cf \\u97f3\\u6548 \\u97f3\\u4fe1 \\u97f3\\u97f5 \\u97f3\\u957f \\u59fb\\u4eb2 \\u6bb7\\u5bcc \\u6bb7\\u5546 \\u6bb7\\u5b9e \\u6bb7\\u6bb7 \\u541f\\u5531 \\u541f\\u548f \\u94f6\\u884c \\u6deb\\u5a01 \\u6deb\\u96e8 \\u5f15\\u4ea7 \\u5f15\\u51fa \\u5f15\\u52a8 \\u5f15\\u53d1 \\u5f15\\u6cb3 \\u5f15\\u89c1 \\u5f15\\u8fdb \\u5f15\\u6765 \\u5f15\\u529b \\u5f15\\u8d77 \\u5f15\\u6c34 \\u5f15\\u9000 \\u5f15\\u6587 \\u5f15\\u8a00 \\u5f15\\u7528 \\u5f15\\u8bf1 \\u5f15\\u8bed \\u5f15\\u5b50 \\u996e\\u5f39 \\u996e\\u7247 \\u996e\\u6ce3 \\u996e\\u98df \\u996e\\u6c34 \\u9690\\u853d \\u763e\\u5934 \\u5370\\u672c \\u5370\\u6b21 \\u5370\\u5ea6 \\u5370\\u53d1 \\u5370\\u82b1 \\u5370\\u8272 \\u5370\\u4fe1 \\u5370\\u6cb9 \\u5370\\u5f20 \\u5370\\u5b50 \\u82f1\\u624d \\u82f1\\u5bf8 \\u82f1\\u9b42 \\u82f1\\u91cc \\u82f1\\u7075 \\u82f1\\u540d \\u82f1\\u660e \\u82f1\\u5e74 \\u82f1\\u6c14 \\u82f1\\u633a \\u82f1\\u96c4 \\u82f1\\u8bed \\u7f28\\u5b50 \\u6a31\\u82b1 \\u6a31\\u6843 \\u9e70\\u722a \\u8fce\\u6625 \\u8fce\\u98ce \\u8fce\\u5408 \\u8fce\\u51fb \\u8fce\\u9762 \\u8fce\\u4eb2 \\u8fce\\u9001 \\u8fce\\u5934 \\u8fce\\u9999 \\u8fce\\u65b0 \\u8314\\u5730 \\u8367\\u5149 \\u8367\\u5c4f \\u76c8\\u4e8f \\u76c8\\u5229 \\u76c8\\u4f59 \\u83b9\\u6da6 \\u8425\\u5b50 \\u8426\\u6000 \\u8747\\u5934 \\u8747\\u5b50 \\u8d62\\u5bb6 \\u8d62\\u5229 \\u701b\\u6d77 \\u5f71\\u8bc4 \\u5f71\\u5c04 \\u5f71\\u54cd \\u5f71\\u50cf \\u5f71\\u661f \\u5f71\\u9662 \\u5e94\\u5f53 \\u5e94\\u8be5 \\u5e94\\u58f0 \\u5e94\\u6709 \\u6620\\u5c04 \\u6620\\u73b0 \\u6620\\u50cf \\u6620\\u7167 \\u4f63\\u5de5 \\u4f63\\u4eba \\u62e5\\u62b1 \\u62e5\\u62a4 \\u62e5\\u8fdb \\u62e5\\u519b \\u62e5\\u7acb \\u62e5\\u6709 \\u5eb8\\u788c \\u96cd\\u6b63 \\u6c38\\u5b89 \\u6c38\\u522b \\u6c38\\u5609 \\u6c38\\u5e74 \\u6c38\\u751f \\u6c38\\u65b0 \\u6c38\\u8fdc \\u752c\\u9053 \\u548f\\u5531 \\u548f\\u6000 \\u548f\\u53f9 \\u6cf3\\u9053 \\u52c7\\u529b \\u52c7\\u6c14 \\u6d8c\\u51fa \\u6d8c\\u8fdb \\u6d8c\\u6d6a \\u6d8c\\u73b0 \\u86f9\\u671f \\u7528\\u7b14 \\u7528\\u5175 \\u7528\\u9910 \\u7528\\u6cd5 \\u7528\\u8d39 \\u7528\\u5de5 \\u7528\\u529f \\u7528\\u8ba1 \\u7528\\u52b2 \\u7528\\u5177 \\u7528\\u6765 \\u7528\\u529b \\u7528\\u547d \\u7528\\u8111 \\u7528\\u54c1 \\u7528\\u4eba \\u7528\\u4e8b \\u7528\\u5fc3 \\u7528\\u610f \\u7528\\u8bed \\u4f18\\u539a \\u4f18\\u52a3 \\u4f18\\u7f8e \\u4f18\\u751f \\u4f18\\u80dc \\u4f18\\u52bf \\u4f18\\u5148 \\u4f18\\u96c5 \\u4f18\\u6e38 \\u5fe7\\u8272 \\u5fe7\\u4f24 \\u5fe7\\u5fc3 \\u5e7d\\u95ed \\u5e7d\\u4f1a \\u5e7d\\u9b42 \\u5e7d\\u5f84 \\u5e7d\\u5c45 \\u5e7d\\u7075 \\u5e7d\\u7f8e \\u5e7d\\u95e8 \\u5e7d\\u51a5 \\u5e7d\\u60c5 \\u5e7d\\u6df1 \\u5e7d\\u5fae \\u5e7d\\u9999 \\u5e7d\\u96c5 \\u5e7d\\u5e7d \\u5e7d\\u8fdc \\u5e7d\\u5dde \\u60a0\\u957f \\u5c24\\u4e3a \\u7531\\u6765 \\u90ae\\u7535 \\u90ae\\u8d39 \\u90ae\\u6c47 \\u90ae\\u5c40 \\u90ae\\u8f6e \\u90ae\\u54c1 \\u72b9\\u5927 \\u72b9\\u5982 \\u72b9\\u81ea \\u6cb9\\u997c \\u6cb9\\u85cf \\u6cb9\\u818f \\u6cb9\\u5149 \\u6cb9\\u82b1 \\u6cb9\\u6ed1 \\u6cb9\\u753b \\u6cb9\\u8f6e \\u6cb9\\u7eff \\u6cb9\\u95e8 \\u6cb9\\u6c14 \\u6cb9\\u6c34 \\u6cb9\\u9999 \\u6cb9\\u6027 \\u6cb9\\u70df \\u6cb9\\u7eb8 \\u9c7f\\u9c7c \\u6e38\\u65b9 \\u6e38\\u5b50 \\u53cb\\u7231 \\u53cb\\u597d \\u53cb\\u519b \\u53cb\\u60c5 \\u53cb\\u4eba \\u53cb\\u5584 \\u6709\\u6210 \\u6709\\u65b9 \\u6709\\u529f \\u6709\\u5173 \\u6709\\u9b3c \\u6709\\u673a \\u6709\\u52b2 \\u6709\\u529b \\u6709\\u5229 \\u6709\\u540d \\u6709\\u5e74 \\u6709\\u6c14 \\u6709\\u60c5 \\u6709\\u8bf7 \\u6709\\u4eba \\u6709\\u5982 \\u6709\\u8272 \\u6709\\u795e \\u6709\\u751f \\u6709\\u58f0 \\u6709\\u65f6 \\u6709\\u4e8b \\u6709\\u6570 \\u6709\\u671b \\u6709\\u4e3a \\u6709\\u559c \\u6709\\u6548 \\u6709\\u5fc3 \\u6709\\u6027 \\u6709\\u610f \\u6709\\u7528 \\u6709\\u4f59 \\u6709\\u79cd \\u6709\\u7f6a \\u9149\\u65f6 \\u53f3\\u4fa7 \\u53f3\\u9762 \\u53f3\\u624b \\u53f3\\u9996 \\u5e7c\\u513f \\u5e7c\\u6559 \\u5e7c\\u5e74 \\u5e7c\\u65f6 \\u5e7c\\u5c0f \\u5e7c\\u5b50 \\u8bf1\\u53d8 \\u8bf1\\u53d1 \\u8bf1\\u8feb \\u8bf1\\u4eba \\u8bf1\\u6740 \\u8bf1\\u56e0 \\u91c9\\u5b50 \\u8fc2\\u7f13 \\u8fc2\\u56de \\u8fc2\\u66f2 \\u8fc2\\u6267 \\u7600\\u4f24 \\u4e8e\\u90fd \\u4f59\\u6ce2 \\u4f59\\u515a \\u4f59\\u5730 \\u4f59\\u5e72 \\u4f59\\u89d2 \\u4f59\\u6b3e \\u4f59\\u529b \\u4f59\\u5e74 \\u4f59\\u5207 \\u4f59\\u5e86 \\u4f59\\u70ed \\u4f59\\u751f \\u4f59\\u6570 \\u4f59\\u5934 \\u4f59\\u5a01 \\u4f59\\u4e0b \\u4f59\\u5f26 \\u9c7c\\u767d \\u9c7c\\u5507 \\u9c7c\\u523a \\u9c7c\\u9053 \\u9c7c\\u72d7 \\u9c7c\\u8d2f \\u9c7c\\u53e3 \\u9c7c\\u96f7 \\u9c7c\\u7247 \\u9c7c\\u8089 \\u9c7c\\u6c34 \\u9c7c\\u6c64 \\u9c7c\\u5c3e \\u9c7c\\u6cb9 \\u9c7c\\u79cd \\u9c7c\\u5b50 \\u5a31\\u4e50 \\u903e\\u671f \\u6986\\u6728 \\u6986\\u793e \\u6986\\u4e2d \\u611a\\u89c1 \\u611a\\u9c81 \\u611a\\u6c11 \\u611a\\u5f04 \\u611a\\u4eba \\u611a\\u5984 \\u8206\\u8bba \\u8206\\u60c5 \\u8206\\u56fe \\u4e0e\\u95e8 \\u5b87\\u822a \\u5b87\\u5185 \\u5b87\\u6587 \\u7fbd\\u6bdb \\u96e8\\u5e26 \\u96e8\\u6ef4 \\u96e8\\u811a \\u96e8\\u5177 \\u96e8\\u62ab \\u96e8\\u524d \\u96e8\\u60c5 \\u96e8\\u52bf \\u96e8\\u6c34 \\u96e8\\u8863 \\u96e8\\u4e91 \\u96e8\\u73e0 \\u8bed\\u8bcd \\u8bed\\u6cd5 \\u8bed\\u6c47 \\u8bed\\u53e5 \\u8bed\\u6c14 \\u8bed\\u58f0 \\u8bed\\u7d20 \\u8bed\\u6587 \\u8bed\\u7cfb \\u8bed\\u8a00 \\u8bed\\u610f \\u8bed\\u97f3 \\u8bed\\u79cd \\u7ab3\\u8d25 \\u7ab3\\u52a3 \\u7389\\u6210 \\u7389\\u5e26 \\u7389\\u96d5 \\u7389\\u73af \\u7389\\u6d01 \\u7389\\u7acb \\u7389\\u95e8 \\u7389\\u7c73 \\u7389\\u5973 \\u7389\\u5668 \\u7389\\u5c71 \\u7389\\u6811 \\u7389\\u5154 \\u7389\\u97f3 \\u7389\\u7167 \\u7389\\u6795 \\u9a6d\\u624b \\u90c1\\u79ef \\u90c1\\u91d1 \\u90c1\\u6c14 \\u80b2\\u624d \\u80b2\\u80a5 \\u80b2\\u79cd \\u72f1\\u5352 \\u6d74\\u5177 \\u6d74\\u5ba4 \\u6d74\\u8863 \\u9884\\u5b9a \\u9884\\u65ad \\u9884\\u9632 \\u9884\\u8ba1 \\u9884\\u89c1 \\u9884\\u8b66 \\u9884\\u79d1 \\u9884\\u8c0b \\u9884\\u671f \\u9884\\u70ed \\u9884\\u8d5b \\u9884\\u5ba1 \\u9884\\u6536 \\u9884\\u7b97 \\u9884\\u5148 \\u9884\\u8a00 \\u9884\\u5f81 \\u9884\\u652f \\u9884\\u77e5 \\u57df\\u5916 \\u6108\\u53d1 \\u6108\\u5408 \\u6108\\u52a0 \\u8a89\\u4e3a \\u51a4\\u9b42 \\u51a4\\u5bb6 \\u51a4\\u82e6 \\u51a4\\u6c14 \\u51a4\\u60c5 \\u51a4\\u5c48 \\u51a4\\u6b7b \\u5143\\u5b9d \\u5143\\u65e6 \\u5143\\u8001 \\u5143\\u8c0b \\u5143\\u5e74 \\u5143\\u914d \\u5143\\u6c14 \\u5143\\u620e \\u5143\\u9996 \\u5143\\u7d20 \\u5143\\u591c \\u5143\\u97f3 \\u5143\\u9c7c \\u5143\\u6708 \\u82ab\\u82b1 \\u56ed\\u5730 \\u56ed\\u5b50 \\u5458\\u5de5 \\u5458\\u5916 \\u539f\\u672c \\u539f\\u521d \\u539f\\u5730 \\u539f\\u5c01 \\u539f\\u6765 \\u539f\\u6bdb \\u539f\\u8c8c \\u539f\\u7164 \\u539f\\u540d \\u539f\\u6728 \\u539f\\u914d \\u539f\\u8272 \\u539f\\u5ba1 \\u539f\\u6c64 \\u539f\\u56fe \\u539f\\u6587 \\u539f\\u5148 \\u539f\\u91ce \\u539f\\u610f \\u539f\\u56e0 \\u539f\\u6cb9 \\u539f\\u4e3b \\u539f\\u5b50 \\u539f\\u4f5c \\u5706\\u6210 \\u5706\\u96d5 \\u5706\\u89c4 \\u5706\\u6ed1 \\u5706\\u5708 \\u5706\\u6da6 \\u5706\\u5b9e \\u5706\\u719f \\u5706\\u901a \\u5706\\u5fc3 \\u5706\\u6708 \\u5706\\u5468 \\u733f\\u4eba \\u6e90\\u5934 \\u8f95\\u9a6c \\u8f95\\u95e8 \\u8fdc\\u5927 \\u8fdc\\u9053 \\u8fdc\\u4e1c \\u8fdc\\u65b9 \\u8fdc\\u53e4 \\u8fdc\\u6d77 \\u8fdc\\u822a \\u8fdc\\u89c1 \\u8fdc\\u79bb \\u8fdc\\u95e8 \\u8fdc\\u8c0b \\u8fdc\\u671f \\u8fdc\\u4eb2 \\u8fdc\\u671b \\u8fdc\\u9500 \\u8fdc\\u626c \\u8fdc\\u6d0b \\u8fdc\\u56e0 \\u6028\\u5973 \\u6028\\u6c14 \\u6028\\u671b \\u6028\\u8a00 \\u57b8\\u5b50 \\u613f\\u671b \\u613f\\u610f \\u7ea6\\u65e6 \\u7ea6\\u5b9a \\u7ea6\\u6cd5 \\u7ea6\\u4f1a \\u7ea6\\u8ba1 \\u7ea6\\u89c1 \\u7ea6\\u6478 \\u7ea6\\u83ab \\u7ea6\\u671f \\u7ea6\\u8bf7 \\u7ea6\\u675f \\u7ea6\\u6570 \\u7ea6\\u8a00 \\u6708\\u767d \\u6708\\u534a \\u6708\\u997c \\u6708\\u521d \\u6708\\u5ea6 \\u6708\\u5de5 \\u6708\\u5bab \\u6708\\u5149 \\u6708\\u6842 \\u6708\\u7ecf \\u6708\\u520a \\u6708\\u8001 \\u6708\\u5386 \\u6708\\u5229 \\u6708\\u672b \\u6708\\u8272 \\u6708\\u98df \\u6708\\u606f \\u6708\\u591c \\u6708\\u5f71 \\u6708\\u4e2d \\u6708\\u5b50 \\u5cb3\\u5bb6 \\u5cb3\\u6bcd \\u9605\\u5175 \\u9605\\u5377 \\u9605\\u5386 \\u60a6\\u76ee \\u6655\\u9488 \\u4e91\\u8c46 \\u4e91\\u6d6e \\u4e91\\u6d77 \\u4e91\\u548c \\u4e91\\u96c6 \\u4e91\\u9526 \\u4e91\\u9f99 \\u4e91\\u95e8 \\u4e91\\u6bcd \\u4e91\\u5357 \\u4e91\\u6c14 \\u4e91\\u96c0 \\u4e91\\u5ba4 \\u4e91\\u5929 \\u4e91\\u5934 \\u4e91\\u56fe \\u4e91\\u56e2 \\u4e91\\u70df \\u4e91\\u6e38 \\u4e91\\u96e8 \\u4e91\\u4e91 \\u5300\\u5b9e \\u82b8\\u8c46 \\u82b8\\u9999 \\u9668\\u706d \\u9668\\u94c1 \\u9668\\u661f \\u6b92\\u547d \\u5b55\\u671f \\u8fd0\\u7b14 \\u8fd0\\u5355 \\u8fd0\\u52a8 \\u8fd0\\u8d39 \\u8fd0\\u6cb3 \\u8fd0\\u529b \\u8fd0\\u6c14 \\u8fd0\\u8f93 \\u8fd0\\u6570 \\u8fd0\\u9001 \\u8fd0\\u7b97 \\u8fd0\\u9500 \\u8fd0\\u8425 \\u8fd0\\u7528 \\u8fd0\\u4f5c \\u97f5\\u767d \\u97f5\\u811a \\u97f5\\u6bcd \\u97f5\\u4e8b \\u97f5\\u6587 \\u97f5\\u8bed \\u8574\\u85cf \\u8574\\u542b \\u8574\\u85c9 \\u531d\\u9053 \\u531d\\u5730 \\u5482\\u6478 \\u6742\\u62cc \\u6742\\u8349 \\u6742\\u80a5 \\u6742\\u8d39 \\u6742\\u8d27 \\u6742\\u5bb6 \\u6742\\u4ea4 \\u6742\\u5c45 \\u6742\\u4e71 \\u6742\\u9762 \\u6742\\u6728 \\u6742\\u5ff5 \\u6742\\u54c1 \\u6742\\u8272 \\u6742\\u98df \\u6742\\u4e8b \\u6742\\u800d \\u6742\\u7a0e \\u6742\\u6587 \\u6742\\u5f79 \\u6742\\u97f3 \\u6742\\u7528 \\u6742\\u5fd7 \\u6742\\u79cd \\u707e\\u53d8 \\u707e\\u8352 \\u707e\\u7978 \\u707e\\u6c11 \\u707e\\u5e74 \\u707e\\u60c5 \\u707e\\u661f \\u683d\\u5012 \\u683d\\u82b1 \\u683d\\u8d43 \\u5bb0\\u6740 \\u518d\\u4e0d \\u518d\\u6b21 \\u518d\\u5ea6 \\u518d\\u72af \\u518d\\u4f1a \\u518d\\u89c1 \\u518d\\u6765 \\u518d\\u4e09 \\u518d\\u5ba1 \\u518d\\u751f \\u518d\\u73b0 \\u5728\\u884c \\u5728\\u5373 \\u5728\\u5bb6 \\u5728\\u6559 \\u5728\\u5185 \\u5728\\u5916 \\u5728\\u671b \\u5728\\u63e1 \\u5728\\u4e0b \\u5728\\u5148 \\u5728\\u5fc3 \\u5728\\u5b66 \\u5728\\u91ce \\u5728\\u610f \\u5728\\u5728 \\u7c2a\\u82b1 \\u7c2a\\u5b50 \\u6682\\u77ed \\u6682\\u7f13 \\u6682\\u505c \\u933e\\u5b50 \\u8d5e\\u6210 \\u8d5e\\u8bcd \\u8d5e\\u6b4c \\u8d5e\\u793c \\u8d5e\\u7f8e \\u8d5e\\u540c \\u8d5e\\u626c \\u8d5e\\u8bed \\u8d5e\\u52a9 \\u8d43\\u5b98 \\u8d43\\u6b3e \\u810f\\u5668 \\u906d\\u53d7 \\u906d\\u7f6a \\u7cdf\\u5fc3 \\u51ff\\u5b50 \\u65e9\\u5b89 \\u65e9\\u73ed \\u65e9\\u9910 \\u65e9\\u64cd \\u65e9\\u4ea7 \\u65e9\\u6668 \\u65e9\\u6625 \\u65e9\\u95f4 \\u65e9\\u5e74 \\u65e9\\u671f \\u65e9\\u8d77 \\u65e9\\u524d \\u65e9\\u65e5 \\u65e9\\u4e0a \\u65e9\\u5e02 \\u65e9\\u719f \\u65e9\\u8870 \\u65e9\\u971c \\u65e9\\u9000 \\u65e9\\u5148 \\u65e9\\u65e9 \\u67a3\\u6838 \\u67a3\\u7ea2 \\u67a3\\u6728 \\u67a3\\u5b50 \\u7682\\u767d \\u7682\\u89d2 \\u7682\\u7d20 \\u7076\\u5177 \\u7076\\u795e \\u9020\\u6210 \\u9020\\u6b21 \\u9020\\u53cd \\u9020\\u53e5 \\u9020\\u5f71 \\u9020\\u7eb8 \\u9020\\u5b57 \\u9020\\u4f5c \\u566a\\u58f0 \\u566a\\u97f3 \\u71e5\\u88c2 \\u71e5\\u70ed \\u8e81\\u52a8 \\u5219\\u4f8b \\u8d23\\u6210 \\u8d23\\u6253 \\u62e9\\u4ea4 \\u62e9\\u8981 \\u6cfd\\u56fd \\u4ec4\\u58f0 \\u8d3c\\u98ce \\u8d3c\\u4eba \\u8d3c\\u5fc3 \\u8d3c\\u8d43 \\u600e\\u5730 \\u600e\\u751f \\u589e\\u8865 \\u589e\\u4ea7 \\u589e\\u5927 \\u589e\\u591a \\u589e\\u9ad8 \\u589e\\u5149 \\u589e\\u52a0 \\u589e\\u8fdb \\u589e\\u520a \\u589e\\u5f3a \\u589e\\u8272 \\u589e\\u751f \\u589e\\u6536 \\u589e\\u63f4 \\u589e\\u91cd \\u8d60\\u522b \\u8d60\\u793c \\u8d60\\u54c1 \\u8d60\\u9001 \\u8d60\\u8a00 \\u8d60\\u4e0e \\u624e\\u7d27 \\u6e23\\u5b50 \\u8f67\\u5149 \\u95f8\\u5200 \\u95f8\\u53e3 \\u95f8\\u95e8 \\u7728\\u5df4 \\u4e4d\\u770b \\u8bc8\\u5c38 \\u8bc8\\u8bed \\u70b8\\u5f39 \\u70b8\\u6bc1 \\u70b8\\u96f7 \\u70b8\\u88c2 \\u69a8\\u6cb9 \\u658b\\u671f \\u658b\\u6708 \\u6458\\u6284 \\u6458\\u9664 \\u6458\\u53d1 \\u6458\\u501f \\u6458\\u5fc3 \\u6458\\u8981 \\u5b85\\u5730 \\u5b85\\u57fa \\u5b85\\u95e8 \\u5b85\\u820d \\u5b85\\u9662 \\u7a84\\u5e26 \\u7a84\\u5c0f \\u503a\\u6b3e \\u503a\\u4e3b \\u5be8\\u4e3b \\u6cbe\\u5149 \\u6cbe\\u4eb2 \\u6cbe\\u624b \\u6be1\\u5b50 \\u7c98\\u80f6 \\u8c35\\u5984 \\u8c35\\u8bed \\u77bb\\u987e \\u77bb\\u5ff5 \\u77bb\\u671b \\u77bb\\u4ef0 \\u65a9\\u65ad \\u65a9\\u9996 \\u5c55\\u51fa \\u5c55\\u7f13 \\u5c55\\u5f00 \\u5c55\\u54c1 \\u5c55\\u8bc4 \\u5c55\\u671f \\u5c55\\u5ba4 \\u5c55\\u671b \\u5c55\\u73b0 \\u5c55\\u9500 \\u5c55\\u6027 \\u8f97\\u8f67 \\u8f97\\u8f6c \\u5360\\u661f \\u6808\\u9053 \\u6218\\u8d25 \\u6218\\u5200 \\u6218\\u5730 \\u6218\\u6cd5 \\u6218\\u72af \\u6218\\u6b4c \\u6218\\u529f \\u6218\\u9f13 \\u6218\\u56fd \\u6218\\u679c \\u6218\\u7978 \\u6218\\u5c40 \\u6218\\u5177 \\u6218\\u4e71 \\u6218\\u9a6c \\u6218\\u80dc \\u6218\\u65f6 \\u6218\\u4e8b \\u6218\\u5f79 \\u6218\\u4e91 \\u7ad9\\u961f \\u7ad9\\u7acb \\u7ad9\\u7a33 \\u5f20\\u7687 \\u5f20\\u5f00 \\u5f20\\u53e3 \\u5f20\\u529b \\u5f20\\u76ee \\u5f20\\u671b \\u5f20\\u626c \\u7ae0\\u5b50 \\u7350\\u5b50 \\u6a1f\\u8111 \\u957f\\u5b89 \\u957f\\u767d \\u957f\\u6ce2 \\u957f\\u57ce \\u957f\\u5ddd \\u957f\\u6625 \\u957f\\u5200 \\u957f\\u5ea6 \\u957f\\u77ed \\u957f\\u6cd5 \\u957f\\u65b9 \\u957f\\u5de5 \\u957f\\u9aa8 \\u957f\\u9f13 \\u957f\\u6d77 \\u957f\\u6cb3 \\u957f\\u6d3b \\u957f\\u6c5f \\u957f\\u5c40 \\u957f\\u5377 \\u957f\\u7a7a \\u957f\\u4e50 \\u957f\\u9f99 \\u957f\\u6bdb \\u957f\\u95e8 \\u957f\\u7720 \\u957f\\u9e23 \\u957f\\u547d \\u957f\\u5e74 \\u957f\\u6392 \\u957f\\u8dd1 \\u957f\\u671f \\u957f\\u5d0e \\u957f\\u9752 \\u957f\\u6e05 \\u957f\\u6c99 \\u957f\\u5c71 \\u957f\\u86c7 \\u957f\\u751f \\u957f\\u987a \\u957f\\u968f \\u957f\\u6cf0 \\u957f\\u5929 \\u957f\\u6548 \\u957f\\u6027 \\u957f\\u591c \\u957f\\u5706 \\u957f\\u8fdc \\u957f\\u5f81 \\u6da8\\u6c34 \\u638c\\u63e1 \\u4e08\\u91cf \\u4e08\\u6bcd \\u4e08\\u4eba \\u4ed7\\u52bf \\u4ed7\\u4e49 \\u8d26\\u672c \\u8d26\\u5355 \\u8d26\\u6b3e \\u8d26\\u9762 \\u8d26\\u76ee \\u969c\\u853d \\u969c\\u5b50 \\u5e5b\\u5b50 \\u7634\\u6c14 \\u62db\\u5b89 \\u62db\\u6807 \\u62db\\u5175 \\u62db\\u98ce \\u62db\\u5de5 \\u62db\\u80a1 \\u62db\\u547c \\u62db\\u9b42 \\u62db\\u7eb3 \\u62db\\u4eb2 \\u62db\\u751f \\u62db\\u4e8b \\u62db\\u6536 \\u62db\\u624b \\u62db\\u6570 \\u62db\\u6447 \\u62db\\u5b50 \\u662d\\u5f70 \\u662d\\u662d \\u627e\\u8865 \\u627e\\u5e73 \\u627e\\u4e8b \\u6cbc\\u5730 \\u6cbc\\u6c14 \\u53ec\\u56de \\u53ec\\u89c1 \\u53ec\\u5f00 \\u7167\\u642c \\u7167\\u6284 \\u7167\\u5ea6 \\u7167\\u53d1 \\u7167\\u987e \\u7167\\u7ba1 \\u7167\\u62a4 \\u7167\\u4f1a \\u7167\\u89c1 \\u7167\\u770b \\u7167\\u4f8b \\u7167\\u9762 \\u7167\\u660e \\u7167\\u5c04 \\u7167\\u5b9e \\u7167\\u76f4 \\u7f69\\u68da \\u7f69\\u8863 \\u7f69\\u5b50 \\u8087\\u7978 \\u8087\\u4e8b \\u906e\\u853d \\u906e\\u85cf \\u906e\\u4e11 \\u906e\\u62a4 \\u906e\\u9634 \\u54f2\\u4eba \\u54f2\\u5b66 \\u54f2\\u8a00 \\u8c2a\\u5c45 \\u8936\\u5b50 \\u8fd9\\u822c \\u8fd9\\u6b21 \\u8fd9\\u513f \\u6d59\\u6c5f \\u8517\\u519c \\u8517\\u7cd6 \\u7740\\u7b14 \\u7740\\u529b \\u7740\\u8272 \\u7740\\u5b9e \\u7740\\u624b \\u7740\\u610f \\u7740\\u91cd \\u7740\\u88c5 \\u8d1e\\u64cd \\u8d1e\\u6d01 \\u8d1e\\u5973 \\u9488\\u9f3b \\u9488\\u523a \\u9488\\u5bf9 \\u9488\\u7ba1 \\u9488\\u5c16 \\u9488\\u811a \\u9488\\u5934 \\u9488\\u53f6 \\u4fa6\\u5bdf \\u4fa6\\u7834 \\u4fa6\\u542c \\u73cd\\u7231 \\u73cd\\u5b9d \\u73cd\\u672c \\u73cd\\u85cf \\u73cd\\u54c1 \\u73cd\\u5947 \\u73cd\\u73a9 \\u73cd\\u7a00 \\u73cd\\u91cd \\u73cd\\u73e0 \\u771f\\u4f20 \\u771f\\u683c \\u771f\\u679c \\u771f\\u7ecf \\u771f\\u7a7a \\u771f\\u54c1 \\u771f\\u60c5 \\u771f\\u4eba \\u771f\\u8eab \\u771f\\u5b9e \\u771f\\u662f \\u771f\\u6570 \\u771f\\u5fc3 \\u771f\\u6027 \\u771f\\u8a00 \\u771f\\u610f \\u771f\\u6b63 \\u771f\\u77e5 \\u771f\\u4e3b \\u7827\\u6728 \\u7504\\u522b \\u699b\\u5b50 \\u7bb4\\u8a00 \\u8bca\\u5bdf \\u8bca\\u65ad \\u8bca\\u8109 \\u8bca\\u5ba4 \\u6795\\u85c9 \\u6795\\u6728 \\u6795\\u5fc3 \\u75b9\\u5b50 \\u9635\\u5730 \\u9635\\u53d1 \\u9635\\u98ce \\u9635\\u811a \\u9635\\u5217 \\u9635\\u52bf \\u9635\\u75db \\u9635\\u8425 \\u9635\\u96e8 \\u632f\\u52a8 \\u632f\\u5b50 \\u632f\\u4f5c \\u9707\\u6ce2 \\u9707\\u52a8 \\u9707\\u60ca \\u9707\\u60c5 \\u9707\\u54cd \\u9707\\u4e2d \\u9547\\u5b89 \\u9547\\u5b9a \\u9547\\u54b3 \\u9547\\u65e5 \\u9547\\u5b88 \\u9547\\u75db \\u9547\\u5fc3 \\u9547\\u7eb8 \\u4e89\\u950b \\u4e89\\u5149 \\u4e89\\u8bba \\u4e89\\u95f9 \\u4e89\\u6c14 \\u4e89\\u5f3a \\u4e89\\u80dc \\u4e89\\u5148 \\u4e89\\u96c4 \\u4e89\\u8bae \\u4e89\\u6267 \\u5f81\\u5175 \\u5f81\\u53d1 \\u5f81\\u6536 \\u5f81\\u7a0e \\u5f81\\u6587 \\u5f81\\u7528 \\u84b8\\u997c \\u84b8\\u53d1 \\u84b8\\u6c14 \\u84b8\\u6563 \\u6574\\u515a \\u6574\\u5730 \\u6574\\u961f \\u6574\\u987f \\u6574\\u6539 \\u6574\\u6d01 \\u6574\\u4eba \\u6574\\u65e5 \\u6574\\u9970 \\u6574\\u6570 \\u6574\\u5929 \\u6574\\u8863 \\u6574\\u88c5 \\u6b63\\u672c \\u6b63\\u6bd4 \\u6b63\\u6b65 \\u6b63\\u9910 \\u6b63\\u51fa \\u6b63\\u5927 \\u6b63\\u5f53 \\u6b63\\u9053 \\u6b63\\u5fb7 \\u6b63\\u7535 \\u6b63\\u5b9a \\u6b63\\u6cd5 \\u6b63\\u65b9 \\u6b63\\u5bab \\u6b63\\u9aa8 \\u6b63\\u89c4 \\u6b63\\u679c \\u6b63\\u597d \\u6b63\\u7ecf \\u6b63\\u8bba \\u6b63\\u95e8 \\u6b63\\u9762 \\u6b63\\u540d \\u6b63\\u7247 \\u6b63\\u54c1 \\u6b63\\u6c14 \\u6b63\\u5207 \\u6b63\\u8272 \\u6b63\\u8eab \\u6b63\\u89c6 \\u6b63\\u5ba4 \\u6b63\\u624b \\u6b63\\u6570 \\u6b63\\u6587 \\u6b63\\u5348 \\u6b63\\u5f26 \\u6b63\\u5411 \\u6b63\\u50cf \\u6b63\\u8981 \\u6b63\\u4e49 \\u6b63\\u97f3 \\u6b63\\u5728 \\u6b63\\u76f4 \\u6b63\\u4e2d \\u6b63\\u5b57 \\u8bc1\\u8bcd \\u8bc1\\u89c1 \\u8bc1\\u660e \\u8bc1\\u4eba \\u8bc1\\u5b9e \\u8bc1\\u8a00 \\u8bc1\\u9a8c \\u90d1\\u91cd \\u90d1\\u5dde \\u8be4\\u8a00 \\u653f\\u53d8 \\u653f\\u515a \\u653f\\u6cd5 \\u653f\\u5de5 \\u653f\\u7eaa \\u653f\\u89c1 \\u653f\\u5c40 \\u653f\\u8bba \\u653f\\u60c5 \\u653f\\u5ba1 \\u653f\\u4e8b \\u653f\\u8981 \\u6323\\u65ad \\u6323\\u5f00 \\u6323\\u547d \\u6323\\u8131 \\u4e4b\\u524d \\u652f\\u90e8 \\u652f\\u51fa \\u652f\\u961f \\u652f\\u884c \\u652f\\u5f00 \\u652f\\u79bb \\u652f\\u8109 \\u652f\\u519c \\u652f\\u914d \\u652f\\u524d \\u652f\\u6258 \\u652f\\u63f4 \\u53ea\\u89c1 \\u53ea\\u8eab \\u53ea\\u5b57 \\u6c41\\u6c34 \\u5431\\u5431 \\u679d\\u5934 \\u679d\\u53f6 \\u679d\\u5b50 \\u77e5\\u9053 \\u77e5\\u4ea4 \\u77e5\\u4e86 \\u77e5\\u540d \\u77e5\\u547d \\u77e5\\u9752 \\u77e5\\u60c5 \\u77e5\\u8bc6 \\u77e5\\u6089 \\u77e5\\u53bf \\u77e5\\u6653 \\u77e5\\u5fc3 \\u77e5\\u97f3 \\u77e5\\u5dde \\u80a2\\u89e3 \\u7ec7\\u8865 \\u7ec7\\u6210 \\u7ec7\\u82b1 \\u7ec7\\u91d1 \\u7ec7\\u9526 \\u7ec7\\u5973 \\u7ec7\\u54c1 \\u6800\\u5b50 \\u8102\\u818f \\u8102\\u6cb9 \\u6267\\u7b14 \\u6267\\u97ad \\u6267\\u6cd5 \\u6267\\u6559 \\u6267\\u793c \\u6267\\u610f \\u6267\\u7167 \\u6267\\u7740 \\u76f4\\u767d \\u76f4\\u7b14 \\u76f4\\u80a0 \\u76f4\\u9648 \\u76f4\\u9053 \\u76f4\\u89d2 \\u76f4\\u5f84 \\u76f4\\u7acb \\u76f4\\u9762 \\u76f4\\u5c04 \\u76f4\\u5c5e \\u76f4\\u7cfb \\u76f4\\u8a00 \\u4f84\\u513f \\u4f84\\u5973 \\u503c\\u73ed \\u503c\\u65e5 \\u503c\\u591c \\u6b62\\u6b65 \\u6b62\\u54b3 \\u6b62\\u75db \\u6b62\\u606f \\u65e8\\u610f \\u65e8\\u5728 \\u7eb8\\u5e26 \\u7eb8\\u82b1 \\u7eb8\\u5939 \\u7eb8\\u9a6c \\u7eb8\\u70df \\u7eb8\\u5f20 \\u6307\\u6807 \\u6307\\u51fa \\u6307\\u5b9a \\u6307\\u6cd5 \\u6307\\u753b \\u6307\\u73af \\u6307\\u6325 \\u6307\\u5c16 \\u6307\\u6559 \\u6307\\u540d \\u6307\\u660e \\u6307\\u5357 \\u6307\\u6570 \\u6307\\u671b \\u6307\\u5411 \\u6307\\u6458 \\u6307\\u9488 \\u6307\\u6b63 \\u67b3\\u5b9e \\u81f3\\u5b9d \\u81f3\\u8fdf \\u81f3\\u6b64 \\u81f3\\u591a \\u81f3\\u597d \\u81f3\\u4ea4 \\u81f3\\u4eb2 \\u81f3\\u60c5 \\u81f3\\u4e0a \\u81f3\\u9634 \\u5fd7\\u6c14 \\u5fd7\\u5411 \\u5236\\u8868 \\u5236\\u5b9a \\u5236\\u52a8 \\u5236\\u5ea6 \\u5236\\u4f0f \\u5236\\u9769 \\u5236\\u51b7 \\u5236\\u54c1 \\u5236\\u80dc \\u5236\\u7cd6 \\u5236\\u56fe \\u5236\\u6b62 \\u5236\\u4f5c \\u8d28\\u53d8 \\u8d28\\u5730 \\u8d28\\u5bf9 \\u8d28\\u68c0 \\u8d28\\u6570 \\u8d28\\u5fc3 \\u8d28\\u7591 \\u8d28\\u5b50 \\u7099\\u70ed \\u6cbb\\u5b89 \\u6cbb\\u4fdd \\u6cbb\\u672c \\u6cbb\\u6807 \\u6cbb\\u56fd \\u6cbb\\u5bb6 \\u6cbb\\u4e27 \\u6cbb\\u6c34 \\u6cbb\\u5b66 \\u6cbb\\u7f6a \\u6809\\u6bd4 \\u631a\\u7231 \\u631a\\u60c5 \\u81f4\\u54c0 \\u81f4\\u8bcd \\u81f4\\u8f9e \\u81f4\\u5bcc \\u81f4\\u8d3a \\u81f4\\u51b7 \\u81f4\\u529b \\u81f4\\u547d \\u81f4\\u4f24 \\u81f4\\u6b7b \\u81f4\\u610f \\u81f4\\u7528 \\u9e37\\u9e1f \\u667a\\u9f7f \\u667a\\u56ca \\u667a\\u5546 \\u7f6e\\u653e \\u7f6e\\u8bc4 \\u7f6e\\u8eab \\u7f6e\\u4fe1 \\u7f6e\\u7591 \\u7a1a\\u6c14 \\u7a1a\\u5b50 \\u4e2d\\u73ed \\u4e2d\\u4fdd \\u4e2d\\u6ce2 \\u4e2d\\u90e8 \\u4e2d\\u9910 \\u4e2d\\u8bcd \\u4e2d\\u4e1c \\u4e2d\\u90fd \\u4e2d\\u6bb5 \\u4e2d\\u65ad \\u4e2d\\u961f \\u4e2d\\u65b9 \\u4e2d\\u975e \\u4e2d\\u5c01 \\u4e2d\\u950b \\u4e2d\\u4f0f \\u4e2d\\u8015 \\u4e2d\\u53e4 \\u4e2d\\u56fd \\u4e2d\\u548c \\u4e2d\\u9ec4 \\u4e2d\\u5b50 \\u5fe0\\u9aa8 \\u5fe0\\u539a \\u5fe0\\u9b42 \\u5fe0\\u5b9e \\u5fe0\\u987a \\u5fe0\\u5fc3 \\u5fe0\\u4fe1 \\u5fe0\\u8a00 \\u5fe0\\u4e49 \\u5fe0\\u8d1e \\u7ec8\\u5f52 \\u7ec8\\u5c06 \\u7ec8\\u5c40 \\u7ec8\\u8001 \\u7ec8\\u4e86 \\u7ec8\\u5e74 \\u7ec8\\u65e5 \\u7ec8\\u8eab \\u7ec8\\u5ba1 \\u7ec8\\u751f \\u7ec8\\u5c81 \\u7ec8\\u5929 \\u7ec8\\u591c \\u7ec8\\u6b62 \\u949f\\u7231 \\u949f\\u8868 \\u949f\\u9f0e \\u949f\\u9f13 \\u949f\\u60c5 \\u949f\\u5c71 \\u949f\\u5934 \\u8877\\u80a0 \\u8877\\u60c5 \\u8877\\u5fc3 \\u80bf\\u5927 \\u80bf\\u75db \\u79cd\\u522b \\u79cd\\u5dee \\u79cd\\u9a6c \\u79cd\\u7fa4 \\u79cd\\u7cfb \\u79cd\\u79cd \\u4ef2\\u6625 \\u4ef2\\u51ac \\u4f17\\u591a \\u4f17\\u4eba \\u4f17\\u751f \\u4f17\\u6570 \\u4f17\\u671b \\u4f17\\u9662 \\u91cd\\u5175 \\u91cd\\u5927 \\u91cd\\u5730 \\u91cd\\u72af \\u91cd\\u6d3b \\u91cd\\u91d1 \\u91cd\\u529b \\u91cd\\u5229 \\u91cd\\u4f24 \\u91cd\\u6c34 \\u91cd\\u6258 \\u91cd\\u671b \\u91cd\\u5fc3 \\u91cd\\u8981 \\u91cd\\u97f3 \\u91cd\\u6cb9 \\u91cd\\u9547 \\u91cd\\u5b50 \\u91cd\\u7f6a \\u5468\\u520a \\u5468\\u672b \\u5468\\u5e74 \\u5468\\u671f \\u5468\\u5168 \\u5468\\u65e5 \\u5468\\u8eab \\u5468\\u5c81 \\u5468\\u5929 \\u5468\\u8be6 \\u5468\\u6e38 \\u5468\\u957f \\u5468\\u8f6c \\u8f74\\u5fc3 \\u8f74\\u5b50 \\u8098\\u5b50 \\u5492\\u8bed \\u663c\\u591c \\u76b1\\u7f29 \\u9aa4\\u53d8 \\u9aa4\\u964d \\u9aa4\\u96e8 \\u7c40\\u6587 \\u6731\\u7b14 \\u6731\\u7ea2 \\u6731\\u95e8 \\u6731\\u96c0 \\u6731\\u6587 \\u6731\\u5b50 \\u73e0\\u868c \\u73e0\\u5b9d \\u73e0\\u88ab \\u73e0\\u5149 \\u73e0\\u6d77 \\u73e0\\u82b1 \\u73e0\\u6c5f \\u73e0\\u7b97 \\u682a\\u8fde \\u8bf8\\u822c \\u8bf8\\u591a \\u8bf8\\u516c \\u8bf8\\u5982 \\u8bf8\\u5b50 \\u732a\\u6392 \\u7af9\\u96d5 \\u7af9\\u7ba1 \\u7af9\\u884c \\u7af9\\u9ec4 \\u7af9\\u7b80 \\u7af9\\u523b \\u7af9\\u6ca5 \\u7af9\\u6392 \\u7af9\\u5668 \\u7af9\\u8339 \\u7af9\\u53f6 \\u7af9\\u7eb8 \\u9010\\u6b65 \\u9010\\u6b21 \\u9010\\u6e10 \\u9010\\u53e5 \\u9010\\u5e74 \\u9010\\u65e5 \\u9010\\u4e00 \\u9010\\u6708 \\u9010\\u5b57 \\u70db\\u5149 \\u70db\\u82b1 \\u4e3b\\u7b14 \\u4e3b\\u8bcd \\u4e3b\\u6b21 \\u4e3b\\u4ece \\u4e3b\\u5200 \\u4e3b\\u52a8 \\u4e3b\\u961f \\u4e3b\\u513f \\u4e3b\\u72af \\u4e3b\\u516c \\u4e3b\\u653b \\u4e3b\\u987e \\u4e3b\\u7ba1 \\u4e3b\\u673a \\u4e3b\\u5bb6 \\u4e3b\\u89c1 \\u4e3b\\u6559 \\u4e3b\\u529b \\u4e3b\\u8c0b \\u4e3b\\u8111 \\u4e3b\\u4eba \\u4e3b\\u4e0a \\u4e3b\\u98df \\u4e3b\\u4e8b \\u4e3b\\u8981 \\u4e3b\\u4e49 \\u4e3b\\u610f \\u4e3b\\u97f3 \\u4e3b\\u8bed \\u4e3b\\u5f20 \\u4e3b\\u8f74 \\u5631\\u6258 \\u77a9\\u76ee \\u77a9\\u671b \\u4f2b\\u7acb \\u52a9\\u4ea7 \\u52a9\\u8bcd \\u52a9\\u8015 \\u52a9\\u5de5 \\u52a9\\u653b \\u52a9\\u6559 \\u52a9\\u529b \\u52a9\\u8dd1 \\u52a9\\u624b \\u52a9\\u5a01 \\u52a9\\u5b66 \\u52a9\\u7814 \\u4f4f\\u5730 \\u4f4f\\u5bb6 \\u4f4f\\u5c45 \\u4f4f\\u53e3 \\u4f4f\\u624b \\u4f4f\\u6821 \\u4f4f\\u5bbf \\u4f4f\\u9662 \\u8d2e\\u85cf \\u6ce8\\u5b9a \\u6ce8\\u811a \\u6ce8\\u89e3 \\u6ce8\\u660e \\u6ce8\\u76ee \\u6ce8\\u5c04 \\u6ce8\\u758f \\u6ce8\\u6587 \\u6ce8\\u9500 \\u6ce8\\u610f \\u6ce8\\u97f3 \\u6ce8\\u91cd \\u9a7b\\u5730 \\u9a7b\\u9632 \\u9a7b\\u519b \\u9a7b\\u5b88 \\u9a7b\\u5c6f \\u9a7b\\u5916 \\u67f1\\u8eab \\u795d\\u8bcd \\u795d\\u8f9e \\u795d\\u8d3a \\u8457\\u79f0 \\u8457\\u540d \\u8457\\u4f5c \\u6293\\u7d27 \\u6293\\u4e3e \\u6293\\u624b \\u4e13\\u7535 \\u4e13\\u65ad \\u4e13\\u653b \\u4e13\\u673a \\u4e13\\u5bb6 \\u4e13\\u520a \\u4e13\\u79d1 \\u4e13\\u6b3e \\u4e13\\u5229 \\u4e13\\u5217 \\u4e13\\u5356 \\u4e13\\u95e8 \\u4e13\\u540d \\u4e13\\u4eba \\u4e13\\u5fc3 \\u4e13\\u4e00 \\u4e13\\u7528 \\u4e13\\u6709 \\u4e13\\u957f \\u7816\\u5382 \\u7816\\u96d5 \\u7816\\u5934 \\u8f6c\\u53d8 \\u8f6c\\u4ea7 \\u8f6c\\u9053 \\u8f6c\\u53d1 \\u8f6c\\u884c \\u8f6c\\u56de \\u8f6c\\u673a \\u8f6c\\u4ea4 \\u8f6c\\u89d2 \\u8f6c\\u501f \\u8f6c\\u53e3 \\u8f6c\\u5356 \\u8f6c\\u5e74 \\u8f6c\\u5ff5 \\u8f6c\\u8eab \\u8f6c\\u751f \\u8f6c\\u624b \\u8f6c\\u9001 \\u8f6c\\u5934 \\u8f6c\\u6258 \\u8f6c\\u4e3a \\u8f6c\\u5411 \\u8f6c\\u5b66 \\u8f6c\\u4e49 \\u8f6c\\u8fd0 \\u8f6c\\u6b63 \\u8f6c\\u8f74 \\u64b0\\u6587 \\u7bc6\\u523b \\u7bc6\\u6587 \\u7bc6\\u5b57 \\u5986\\u9970 \\u5e84\\u5bb6 \\u5e84\\u9662 \\u5e84\\u91cd \\u6869\\u5b50 \\u88c5\\u675f \\u58ee\\u5927 \\u58ee\\u5de5 \\u58ee\\u6000 \\u58ee\\u4e3e \\u58ee\\u7f8e \\u58ee\\u5e74 \\u58ee\\u5b9e \\u58ee\\u5fc3 \\u58ee\\u5fd7 \\u72b6\\u8c8c \\u72b6\\u8bed \\u72b6\\u5143 \\u72b6\\u7eb8 \\u72b6\\u5b50 \\u649e\\u51fb \\u649e\\u89c1 \\u649e\\u9501 \\u649e\\u9488 \\u8ffd\\u5175 \\u8ffd\\u8865 \\u8ffd\\u80a5 \\u8ffd\\u98ce \\u8ffd\\u8d76 \\u8ffd\\u8fd8 \\u8ffd\\u6000 \\u8ffd\\u9b42 \\u8ffd\\u51fb \\u8ffd\\u52a0 \\u8ffd\\u527f \\u8ffd\\u5ff5 \\u8ffd\\u6eaf \\u8ffd\\u968f \\u8ffd\\u7d22 \\u8ffd\\u8d43 \\u690e\\u9aa8 \\u9525\\u5ea6 \\u9525\\u5b50 \\u5760\\u5730 \\u5760\\u6bc1 \\u5760\\u5b50 \\u8d58\\u8a00 \\u51c6\\u4fdd \\u51c6\\u7ef3 \\u51c6\\u65f6 \\u51c6\\u4fe1 \\u51c6\\u661f \\u62d9\\u7b14 \\u62d9\\u89c1 \\u62d9\\u52a3 \\u62d9\\u4f5c \\u6349\\u5200 \\u6349\\u6478 \\u6349\\u62ff \\u6349\\u5f04 \\u684c\\u9762 \\u707c\\u89c1 \\u707c\\u70ed \\u707c\\u70e7 \\u707c\\u75db \\u5353\\u89c1 \\u5353\\u7acb \\u5353\\u8bc6 \\u6d4a\\u5ea6 \\u6d4a\\u97f3 \\u914c\\u5b9a \\u914c\\u60c5 \\u64e2\\u7528 \\u956f\\u5b50 \\u54a8\\u6587 \\u59ff\\u8272 \\u59ff\\u52bf \\u8d44\\u672c \\u8d44\\u6750 \\u8d44\\u8d22 \\u8d44\\u4ea7 \\u8d44\\u65b9 \\u8d44\\u8d39 \\u8d44\\u683c \\u8d44\\u91d1 \\u8d44\\u529b \\u8d44\\u5386 \\u8d44\\u6df1 \\u8d44\\u671b \\u8d44\\u52a9 \\u8f8e\\u91cd \\u5b50\\u90e8 \\u5b50\\u5f39 \\u5b50\\u5bab \\u5b50\\u91d1 \\u5b50\\u53e5 \\u5b50\\u6c11 \\u5b50\\u76ee \\u5b50\\u56ca \\u5b50\\u5973 \\u5b50\\u7fa4 \\u5b50\\u65f6 \\u5b50\\u5b9e \\u5b50\\u606f \\u5b50\\u661f \\u5b50\\u865a \\u5b50\\u53f6 \\u5b50\\u591c \\u5b50\\u957f \\u7c7d\\u5b9e \\u7c7d\\u79cd \\u7d2b\\u85e4 \\u81ea\\u7231 \\u81ea\\u50b2 \\u81ea\\u62d4 \\u81ea\\u767d \\u81ea\\u5351 \\u81ea\\u4fbf \\u81ea\\u79f0 \\u81ea\\u4e58 \\u81ea\\u4ece \\u81ea\\u6253 \\u81ea\\u5927 \\u81ea\\u5f97 \\u81ea\\u52a8 \\u81ea\\u53d1 \\u81ea\\u8d39 \\u81ea\\u5c01 \\u81ea\\u5949 \\u81ea\\u53e4 \\u81ea\\u6c57 \\u81ea\\u6bc1 \\u81ea\\u5bb6 \\u81ea\\u68c0 \\u81ea\\u5c45 \\u81ea\\u6765 \\u81ea\\u7acb \\u81ea\\u547d \\u81ea\\u9063 \\u81ea\\u5f3a \\u81ea\\u5982 \\u81ea\\u6740 \\u81ea\\u4f24 \\u81ea\\u8eab \\u81ea\\u9996 \\u81ea\\u5916 \\u81ea\\u6211 \\u81ea\\u5c0f \\u81ea\\u65b0 \\u81ea\\u4fe1 \\u81ea\\u5b66 \\u81ea\\u517b \\u81ea\\u8425 \\u81ea\\u7528 \\u81ea\\u5728 \\u81ea\\u91cd \\u81ea\\u4e3b \\u81ea\\u52a9 \\u5b57\\u753b \\u5b57\\u6c47 \\u5b57\\u53e5 \\u5b57\\u9762 \\u5b57\\u6bcd \\u5b57\\u6570 \\u5b57\\u4e49 \\u5b57\\u97f3 \\u5b57\\u957f \\u6063\\u60c5 \\u6063\\u8086 \\u6063\\u610f \\u5b97\\u6cd5 \\u5b97\\u6559 \\u5b97\\u4eb2 \\u5b97\\u5e08 \\u5b97\\u5ba4 \\u5b97\\u4ef0 \\u7efc\\u5408 \\u8e2a\\u5f71 \\u9b03\\u6bdb \\u603b\\u90e8 \\u603b\\u79f0 \\u603b\\u6210 \\u603b\\u961f \\u603b\\u653b \\u603b\\u7ba1 \\u603b\\u5f52 \\u603b\\u5408 \\u603b\\u548c \\u603b\\u6c47 \\u603b\\u673a \\u603b\\u8ba1 \\u603b\\u8bba \\u603b\\u76ee \\u603b\\u6570 \\u603b\\u7b97 \\u603b\\u56fe \\u603b\\u6821 \\u603b\\u88c5 \\u7eb5\\u6ce2 \\u7eb5\\u6b65 \\u7eb5\\u961f \\u7eb5\\u6a2a \\u7eb5\\u8bba \\u7eb5\\u76ee \\u7eb5\\u60c5 \\u7eb5\\u8eab \\u7eb5\\u6df1 \\u7eb5\\u58f0 \\u7eb5\\u5411 \\u8d70\\u7b14 \\u8d70\\u6b65 \\u8d70\\u9053 \\u8d70\\u52a8 \\u8d70\\u98ce \\u8d70\\u72d7 \\u8d70\\u7ea2 \\u8d70\\u9a6c \\u8d70\\u68cb \\u8d70\\u4eba \\u8d70\\u6563 \\u8d70\\u795e \\u8d70\\u5931 \\u8d70\\u65f6 \\u8d70\\u6c34 \\u8d70\\u8131 \\u8d70\\u5411 \\u8d70\\u8fd0 \\u8d70\\u5352 \\u594f\\u672c \\u594f\\u758f \\u594f\\u6548 \\u594f\\u8bae \\u79df\\u8d39 \\u79df\\u501f \\u79df\\u91d1 \\u79df\\u7a0e \\u79df\\u7528 \\u79df\\u5b50 \\u8db3\\u8d64 \\u8db3\\u591f \\u8db3\\u89c1 \\u8db3\\u91d1 \\u8db3\\u8272 \\u8db3\\u5c81 \\u8db3\\u4e0b \\u8db3\\u4ee5 \\u8db3\\u97f3 \\u8db3\\u6708 \\u5352\\u5c81 \\u5352\\u5b50 \\u963b\\u65ad \\u963b\\u51fb \\u963b\\u529b \\u963b\\u6b62 \\u7ec4\\u6210 \\u7ec4\\u6b4c \\u7ec4\\u5408 \\u7ec4\\u753b \\u7ec4\\u88c5 \\u7956\\u4ea7 \\u7956\\u4f20 \\u7956\\u56fd \\u7956\\u5c45 \\u7956\\u6bcd \\u7956\\u4e0a \\u7956\\u5e08 \\u7956\\u5148 \\u94bb\\u52b2 \\u94bb\\u8c0b \\u94bb\\u5fc3 \\u94bb\\u7814 \\u94bb\\u8425 \\u5634\\u5df4 \\u5634\\u5507 \\u5634\\u5c16 \\u5634\\u89d2 \\u5634\\u7d27 \\u5634\\u5934 \\u5634\\u76f4 \\u5634\\u5b50 \\u6700\\u4e3a \\u7f6a\\u6076 \\u7f6a\\u72af \\u7f6a\\u8fc7 \\u7f6a\\u540d \\u7f6a\\u4eba \\u9189\\u9b3c \\u9189\\u4eba \\u9189\\u4e61 \\u9189\\u5fc3 \\u9189\\u610f \\u9075\\u4ece \\u9075\\u5949 \\u9075\\u547d \\u9075\\u5b88 \\u9075\\u7167 \\u6628\\u513f \\u6628\\u65e5 \\u6628\\u5929 \\u6628\\u591c \\u5de6\\u4fa7 \\u5de6\\u65b9 \\u5de6\\u8f6e \\u5de6\\u9762 \\u5de6\\u624b \\u5de6\\u9996 \\u5de6\\u8892 \\u5de6\\u8f6c \\u4f50\\u9910 \\u4f5c\\u4fdd \\u4f5c\\u522b \\u4f5c\\u5bf9 \\u4f5c\\u6076 \\u4f5c\\u98ce \\u4f5c\\u6897 \\u4f5c\\u53e4 \\u4f5c\\u753b \\u4f5c\\u5bb6 \\u4f5c\\u4e71 \\u4f5c\\u7f8e \\u4f5c\\u5455 \\u4f5c\\u54c1 \\u4f5c\\u8272 \\u4f5c\\u58f0 \\u4f5c\\u52bf \\u4f5c\\u6570 \\u4f5c\\u75db \\u4f5c\\u4e3a \\u4f5c\\u6587 \\u4f5c\\u606f \\u4f5c\\u54cd \\u4f5c\\u7528 \\u5750\\u73ed \\u5750\\u6807 \\u5750\\u7985 \\u5750\\u5b9a \\u5750\\u529f \\u5750\\u9aa8 \\u5750\\u679c \\u5750\\u5177 \\u5750\\u5546 \\u5750\\u5931 \\u5750\\u5b88 \\u5750\\u50cf \\u5750\\u9547 \\u5ea7\\u6b21 \\u5ea7\\u673a \\u5ea7\\u5b50 \\u505a\\u4e1c \\u505a\\u6cd5 \\u505a\\u6d3b \\u505a\\u4eb2 \\u505a\\u4eba \\u505a\\u58f0 \\u505a\\u4e8b \\u505a\\u4e3b \\u963f\\u5bcc\\u6c57 \\u7231\\u7389\\u5b50 \\u5b89\\u54e5\\u62c9 \\u5b89\\u5fbd\\u7701 \\u5b89\\u5bb6\\u8d39 \\u5b89\\u4e50\\u6b7b \\u5b89\\u7406\\u4f1a \\u5b89\\u57f9\\u8ba1 \\u5b89\\u57f9\\u529b \\u5b89\\u742a\\u513f \\u5b89\\u5168\\u5e26 \\u5b89\\u5168\\u95e8 \\u5b89\\u987a\\u5e02 \\u5b89\\u606f\\u9999 \\u5b89\\u9633\\u5e02 \\u6697\\u6c89\\u6c89 \\u6697\\u5730\\u91cc \\u6697\\u95e8\\u5b50 \\u5965\\u5730\\u5229 \\u5965\\u8fd0\\u4f1a \\u516b\\u5b9d\\u5c71 \\u516b\\u6597\\u624d \\u516b\\u6bb5\\u9526 \\u516b\\u80a1\\u6587 \\u516b\\u5366\\u6559 \\u516b\\u8def\\u519b \\u516b\\u9762\\u950b \\u516b\\u5b57\\u6b65 \\u516b\\u5b57\\u80e1 \\u516b\\u5b57\\u811a \\u5df4\\u4e0d\\u5f97 \\u5df4\\u621f\\u5929 \\u5df4\\u62c9\\u572d \\u5df4\\u62ff\\u9a6c \\u53ed\\u513f\\u72d7 \\u7b06\\u7bf1\\u5b50 \\u9738\\u738b\\u97ad \\u767d\\u62a5\\u7eb8 \\u767d\\u765c\\u98ce \\u767d\\u5e72\\u513f \\u767d\\u9aa8\\u7cbe \\u767d\\u82b1\\u82b1 \\u767d\\u8bdd\\u6587 \\u767d\\u5f00\\u6c34 \\u767d\\u5170\\u5730 \\u767d\\u83b2\\u6559 \\u767d\\u9762\\u513f \\u767d\\u5a18\\u5b50 \\u767d\\u5c71\\u5e02 \\u767d\\u751f\\u751f \\u767e\\u5206\\u6bd4 \\u767e\\u5206\\u6570 \\u767e\\u5408\\u82b1 \\u767e\\u7075\\u9e1f \\u767e\\u8872\\u672c \\u767e\\u8872\\u8863 \\u767e\\u65e5\\u54b3 \\u767e\\u8272\\u5e02 \\u767e\\u820c\\u9e1f \\u767e\\u4e16\\u5e08 \\u767e\\u4e8b\\u901a \\u6446\\u95e8\\u9762 \\u8d25\\u5bb6\\u5b50 \\u62dc\\u5929\\u5730 \\u62dc\\u7269\\u6559 \\u6273\\u6307\\u513f \\u677f\\u64e6\\u513f \\u529e\\u516c\\u5ba4 \\u534a\\u8fb9\\u83b2 \\u534a\\u8fb9\\u4eba \\u534a\\u8fb9\\u5929 \\u534a\\u6210\\u54c1 \\u534a\\u540a\\u5b50 \\u534a\\u5b98\\u65b9 \\u534a\\u51b3\\u8d5b \\u534a\\u7a7a\\u4e2d \\u534a\\u8eab\\u50cf \\u534a\\u8870\\u671f \\u534a\\u8131\\u4ea7 \\u534a\\u6587\\u76f2 \\u534a\\u5143\\u97f3 \\u534a\\u6708\\u520a \\u534a\\u957f\\u8f74 \\u534a\\u652f\\u83b2 \\u534a\\u5236\\u54c1 \\u534a\\u81ea\\u52a8 \\u7eca\\u9a6c\\u7d22 \\u68d2\\u68d2\\u7cd6 \\u508d\\u8fb9\\u513f \\u508d\\u9ed1\\u513f \\u508d\\u4eae\\u513f \\u5305\\u5e72\\u513f \\u5305\\u5de5\\u5934 \\u5305\\u8eab\\u5de5 \\u5305\\u5934\\u5e02 \\u5305\\u56f4\\u5708 \\u5305\\u5706\\u513f \\u8912\\u4e49\\u8bcd \\u9971\\u55dd\\u513f \\u5b9d\\u5174\\u53bf \\u4fdd\\u5b89\\u961f \\u4fdd\\u4e0d\\u5b9a \\u4fdd\\u5b9a\\u5e02 \\u4fdd\\u62a4\\u56fd \\u4fdd\\u62a4\\u9e1f \\u4fdd\\u62a4\\u4eba \\u4fdd\\u62a4\\u8272 \\u4fdd\\u7687\\u515a \\u4fdd\\u5065\\u64cd \\u4fdd\\u5065\\u7ad9 \\u4fdd\\u5c71\\u5e02 \\u4fdd\\u6e29\\u676f \\u4fdd\\u9669\\u5200 \\u4fdd\\u9669\\u6cd5 \\u4fdd\\u9669\\u8d39 \\u4fdd\\u80b2\\u9662 \\u4fdd\\u771f\\u5ea6 \\u4fdd\\u8bc1\\u91d1 \\u4fdd\\u8bc1\\u4eba \\u62a5\\u6625\\u82b1 \\u62a5\\u8bdd\\u673a \\u62b1\\u4e0d\\u5e73 \\u62b1\\u4f5b\\u811a \\u62b1\\u56e2\\u513f \\u66b4\\u98ce\\u96e8 \\u7206\\u53d1\\u529b \\u7206\\u51b7\\u95e8 \\u7206\\u7c73\\u82b1 \\u7206\\u7834\\u624b \\u5317\\u51b0\\u6d0b \\u5317\\u90e8\\u6e7e \\u5317\\u5927\\u8352 \\u5317\\u6234\\u6cb3 \\u5317\\u6597\\u661f \\u5317\\u6597\\u9547 \\u5317\\u4f10\\u519b \\u5317\\u6d77\\u9053 \\u5317\\u6d77\\u5e02 \\u5317\\u5bd2\\u5e26 \\u5317\\u6781\\u5149 \\u5317\\u6781\\u5708 \\u5317\\u6781\\u661f \\u5317\\u4eac\\u4eba \\u5317\\u4eac\\u5e02 \\u5317\\u4eac\\u9e2d \\u5317\\u6e29\\u5e26 \\u5907\\u7528\\u91d1 \\u5907\\u7528\\u54c1 \\u80cc\\u642d\\u5b50 \\u80cc\\u5730\\u91cc \\u80cc\\u98ce\\u9762 \\u80cc\\u5149\\u6027 \\u80cc\\u9760\\u80cc \\u80cc\\u65e5\\u6027 \\u88ab\\u544a\\u4eba \\u88ab\\u5bb3\\u4eba \\u88ab\\u7a9d\\u513f \\u8f88\\u6570\\u513f \\u672c\\u5730\\u4eba \\u672c\\u79d1\\u751f \\u672c\\u547d\\u5e74 \\u672c\\u5e74\\u5ea6 \\u672c\\u4e16\\u7eaa \\u672c\\u6eaa\\u5e02 \\u672c\\u4e3b\\u513f \\u82ef\\u7532\\u57fa \\u7b28\\u6d3b\\u513f \\u9f3b\\u7fc5\\u513f \\u9f3b\\u6d3c\\u5b50 \\u9f3b\\u97f5\\u6bcd \\u6bd4\\u5229\\u65f6 \\u6bd4\\u90bb\\u661f \\u6bd4\\u76ee\\u9c7c \\u6bd4\\u7ffc\\u9e1f \\u7b14\\u5e95\\u4e0b \\u7b14\\u8bb0\\u672c \\u5fc5\\u7136\\u6027 \\u5fc5\\u9700\\u54c1 \\u6bd5\\u4e1a\\u751f \\u95ed\\u5e55\\u8bcd \\u78a7\\u87ba\\u6625 \\u78a7\\u6cb9\\u6cb9 \\u907f\\u96f7\\u5668 \\u907f\\u96f7\\u9488 \\u8fb9\\u9632\\u519b \\u7f16\\u8f91\\u90e8 \\u7f16\\u8005\\u6309 \\u8d2c\\u4e49\\u8bcd \\u53d8\\u7535\\u7ad9 \\u53d8\\u6cd5\\u513f \\u53d8\\u5206\\u6cd5 \\u53d8\\u8272\\u9f99 \\u53d8\\u901f\\u5668 \\u53d8\\u620f\\u6cd5 \\u53d8\\u538b\\u5668 \\u53d8\\u963b\\u5668 \\u8fa9\\u62a4\\u4eba \\u8fa9\\u62a4\\u58eb \\u8fa9\\u8bc1\\u6cd5 \\u6807\\u51c6\\u65f6 \\u6807\\u51c6\\u50cf \\u6807\\u51c6\\u97f3 \\u6807\\u51c6\\u8bed \\u8868\\u51b3\\u5668 \\u8868\\u9762\\u5149 \\u8868\\u9762\\u79ef \\u8868\\u6f14\\u5531 \\u8868\\u6f14\\u8d5b \\u8868\\u4f84\\u5973 \\u522b\\u52a8\\u961f \\u51b0\\u78b4\\u513f \\u51b0\\u5ddd\\u671f \\u51b0\\u5ddd\\u5b66 \\u51b0\\u68cd\\u513f \\u5175\\u5de5\\u5382 \\u5175\\u5f79\\u6cd5 \\u5175\\u6cb9\\u5b50 \\u5e76\\u8482\\u83b2 \\u75c5\\u7406\\u5b66 \\u75c5\\u6b6a\\u6b6a \\u75c5\\u79e7\\u5b50 \\u62e8\\u6d6a\\u9f13 \\u6ce2\\u58eb\\u987f \\u6ce2\\u65af\\u6e7e \\u64ad\\u97f3\\u5ba4 \\u64ad\\u79cd\\u673a \\u4f2f\\u7956\\u6bcd \\u6cca\\u5934\\u5e02 \\u535a\\u767d\\u53bf \\u535a\\u89c8\\u4f1a \\u535a\\u7269\\u9662 \\u535a\\u5174\\u53bf \\u6e24\\u6d77\\u6e7e \\u4e0d\\u6210\\u5668 \\u4e0d\\u6253\\u7d27 \\u4e0d\\u5927\\u79bb \\u4e0d\\u9053\\u5fb7 \\u4e0d\\u5f97\\u4e0d \\u4e0d\\u5f97\\u52b2 \\u4e0d\\u5f97\\u4e86 \\u4e0d\\u52a8\\u4ea7 \\u4e0d\\u6562\\u5f53 \\u4e0d\\u8fc7\\u610f \\u4e0d\\u6d4e\\u4e8b \\u4e0d\\u7ecf\\u610f \\u4e0d\\u666f\\u6c14 \\u4e0d\\u80fd\\u4e0d \\u4e0d\\u4eba\\u9053 \\u4e0d\\u5931\\u4e3a \\u4e0d\\u76f8\\u5e72 \\u4e0d\\u81ea\\u5728 \\u4e0d\\u8db3\\u9053 \\u4e0d\\u4f5c\\u4e3a \\u4e0d\\u505a\\u58f0 \\u5e03\\u62c9\\u683c \\u6b65\\u8bdd\\u673a \\u64e6\\u9ed1\\u513f \\u83dc\\u5b50\\u6cb9 \\u53c2\\u8bae\\u4f1a \\u53c2\\u8bae\\u9662 \\u53c2\\u7167\\u7cfb \\u53c2\\u653f\\u515a \\u6b8b\\u75be\\u4eba \\u8695\\u5b9d\\u5b9d \\u85cf\\u732b\\u513f \\u8349\\u6807\\u513f \\u8349\\u7538\\u5b50 \\u8349\\u57ab\\u5b50 \\u6d4b\\u91cf\\u5b66 \\u7b56\\u52d2\\u53bf \\u7b56\\u6e90\\u5730 \\u66fe\\u5b59\\u5973 \\u66fe\\u7956\\u6bcd \\u8336\\u8910\\u8272 \\u8336\\u8bdd\\u4f1a \\u8336\\u5364\\u513f \\u5239\\u90a3\\u95f4 \\u5dee\\u4e0d\\u591a \\u5dee\\u4e0d\\u79bb \\u62c6\\u5899\\u811a \\u67f4\\u6cb9\\u673a \\u4ea7\\u8925\\u671f \\u4ea7\\u8925\\u70ed \\u660c\\u90fd\\u53bf \\u80a0\\u6897\\u963b \\u80a0\\u5957\\u53e0 \\u5e38\\u719f\\u5e02 \\u5531\\u8bd7\\u73ed \\u8d85\\u77ed\\u6ce2 \\u8d85\\u9ad8\\u9891 \\u8d85\\u58f0\\u6ce2 \\u8d85\\u58f0\\u901f \\u8d85\\u65b0\\u661f \\u671d\\u6b4c\\u9547 \\u7092\\u9c7f\\u9c7c \\u8f66\\u8f86\\u5382 \\u8f66\\u9a6c\\u8d39 \\u8f66\\u524d\\u5b50 \\u6c89\\u4f4f\\u6c14 \\u9648\\u5217\\u54c1 \\u9648\\u5217\\u5ba4 \\u9648\\u8ff0\\u53e5 \\u79f0\\u4e4b\\u4e3a \\u6491\\u95e8\\u9762 \\u6210\\u90fd\\u5e02 \\u6210\\u7ee9\\u5355 \\u6210\\u5e74\\u4eba \\u6210\\u6587\\u6cd5 \\u6210\\u763e\\u6027 \\u627f\\u5fb7\\u5e02 \\u57ce\\u91cc\\u4eba \\u57ce\\u5e02\\u7fa4 \\u901e\\u82f1\\u96c4 \\u5403\\u767d\\u98df \\u5403\\u4e0d\\u5f00 \\u5403\\u4e0d\\u6765 \\u5403\\u4e0d\\u4e86 \\u5403\\u4e0d\\u4e0a \\u5403\\u4e0d\\u900f \\u5403\\u4e0d\\u6d88 \\u5403\\u72ec\\u98df \\u5403\\u5b98\\u53f8 \\u5403\\u9986\\u5b50 \\u5403\\u56de\\u6263 \\u5403\\u52b3\\u4fdd \\u5403\\u8001\\u672c \\u5403\\u504f\\u98df \\u9f7f\\u5507\\u97f3 \\u8d64\\u7ec3\\u86c7 \\u8d64\\u88f8\\u88f8 \\u8d64\\u9709\\u7d20 \\u51b2\\u51fb\\u6ce2 \\u866b\\u5a92\\u82b1 \\u62bd\\u51b7\\u5b50 \\u62bd\\u6c34\\u673a \\u62bd\\u6c34\\u7ad9 \\u81ed\\u76ae\\u56ca \\u51fa\\u7248\\u793e \\u51fa\\u5c94\\u5b50 \\u51fa\\u70b9\\u5b50 \\u51fa\\u5bb6\\u4eba \\u51fa\\u53e3\\u7a0e \\u51fa\\u4e71\\u5b50 \\u51fa\\u95e8\\u5b50 \\u51fa\\u5708\\u513f \\u51fa\\u4eba\\u547d \\u51fa\\u6708\\u5b50 \\u521d\\u7ea7\\u793e \\u521d\\u4e2d\\u751f \\u5904\\u7406\\u54c1 \\u5904\\u7406\\u5668 \\u5904\\u5973\\u5730 \\u5904\\u5973\\u4f5c \\u755c\\u4ea7\\u54c1 \\u89e6\\u53d1\\u5668 \\u89e6\\u9709\\u5934 \\u7a7f\\u5c71\\u7532 \\u7a7f\\u5802\\u98ce \\u7a7f\\u5fc3\\u83b2 \\u4f20\\u5e2e\\u5e26 \\u4f20\\u8fbe\\u5ba4 \\u4f20\\u52a8\\u5e26 \\u4f20\\u611f\\u5668 \\u4f20\\u5bb6\\u5b9d \\u4f20\\u58f0\\u5668 \\u4f20\\u9001\\u5e26 \\u5598\\u5401\\u5401 \\u4e32\\u95e8\\u5b50 \\u95ef\\u5173\\u4e1c \\u95ef\\u6c5f\\u6e56 \\u521b\\u59cb\\u4eba \\u521b\\u4e16\\u7eaa \\u521b\\u9020\\u529b \\u521b\\u9020\\u6027 \\u5439\\u98ce\\u673a \\u5439\\u9f13\\u624b \\u5439\\u51b7\\u98ce \\u5782\\u82b1\\u95e8 \\u5782\\u76f4\\u9762 \\u8bcd\\u6c47\\u5b66 \\u78c1\\u6d4b\\u91cf \\u523a\\u6fc0\\u7d20 \\u523a\\u6fc0\\u6027 \\u51d1\\u70ed\\u95f9 \\u50ac\\u6cea\\u5f39 \\u8106\\u751f\\u751f \\u7fe0\\u751f\\u751f \\u5b58\\u50a8\\u5668 \\u9519\\u522b\\u5b57 \\u8fbe\\u5c14\\u6587 \\u8fbe\\u59c6\\u5f39 \\u6253\\u628a\\u52bf \\u6253\\u6446\\u5b50 \\u6253\\u8fb9\\u9f13 \\u6253\\u51b2\\u950b \\u6253\\u77ed\\u513f \\u6253\\u77ed\\u5de5 \\u6253\\u8db8\\u513f \\u6253\\u8033\\u5149 \\u6253\\u5b98\\u8154 \\u6253\\u5b98\\u53f8 \\u6253\\u706b\\u673a \\u6253\\u4ea4\\u9053 \\u6253\\u778c\\u7761 \\u6253\\u57cb\\u4f0f \\u6253\\u6bdb\\u8863 \\u6253\\u9e23\\u513f \\u6253\\u852b\\u513f \\u6253\\u524d\\u7ad9 \\u6253\\u624b\\u52bf \\u6253\\u6b7b\\u864e \\u6253\\u5929\\u4e0b \\u6253\\u633a\\u513f \\u6253\\u901a\\u5173 \\u6253\\u5934\\u98ce \\u6253\\u4e0b\\u624b \\u6253\\u5148\\u950b \\u6253\\u63a9\\u62a4 \\u6253\\u5370\\u673a \\u6253\\u6e38\\u51fb \\u6253\\u62db\\u547c \\u6253\\u4e3b\\u610f \\u6253\\u6869\\u673a \\u6253\\u5b57\\u673a \\u5927\\u5305\\u5e72 \\u5927\\u672c\\u8425 \\u5927\\u522b\\u5c71 \\u5927\\u4e0d\\u4e86 \\u5927\\u90e8\\u5934 \\u5927\\u52a8\\u8109 \\u5927\\u52a8\\u4f5c \\u5927\\u6e21\\u6cb3 \\u5927\\u591a\\u6570 \\u5927\\u65b9\\u5411 \\u5927\\u54e5\\u5927 \\u5927\\u9769\\u547d \\u5927\\u59d1\\u5b50 \\u5927\\u5408\\u5531 \\u5927\\u540e\\u65b9 \\u5927\\u540e\\u5e74 \\u5927\\u540e\\u5929 \\u5927\\u8334\\u9999 \\u5927\\u5bb6\\u5ead \\u5927\\u5757\\u5934 \\u5927\\u8001\\u8fdc \\u5927\\u7406\\u5e02 \\u5927\\u4e3d\\u82b1 \\u5927\\u8fde\\u5e02 \\u5927\\u8def\\u6d3b \\u5927\\u8def\\u8d27 \\u5927\\u5e74\\u591c \\u5927\\u6c14\\u5708 \\u5927\\u524d\\u5e74 \\u5927\\u524d\\u63d0 \\u5927\\u524d\\u5929 \\u5927\\u6e05\\u65e9 \\u5927\\u6674\\u5929 \\u5927\\u5e86\\u5e02 \\u5927\\u626b\\u9664 \\u5927\\u5a76\\u513f \\u5927\\u624b\\u7b14 \\u5927\\u53f8\\u9a6c \\u5927\\u8e0f\\u6b65 \\u5927\\u540c\\u5e02 \\u5927\\u5934\\u9c7c \\u5927\\u5934\\u9488 \\u5927\\u56e2\\u5706 \\u5927\\u4e94\\u91d1 \\u5927\\u897f\\u5317 \\u5927\\u897f\\u6d0b \\u5927\\u5b66\\u751f \\u5927\\u96ea\\u5c71 \\u5927\\u5faa\\u73af \\u5927\\u70df\\u9b3c \\u5927\\u59e8\\u5b50 \\u5927\\u7ea6\\u6478 \\u5927\\u8dc3\\u8fdb \\u5927\\u8fd0\\u6cb3 \\u5927\\u6742\\u9662 \\u5927\\u4e3b\\u6559 \\u4ee3\\u8868\\u56e2 \\u4ee3\\u8868\\u4f5c \\u4ee3\\u7406\\u4eba \\u4ee3\\u540d\\u8bcd \\u4ee3\\u6570\\u548c \\u4ee3\\u6570\\u5b66 \\u4ee3\\u8a00\\u4eba \\u4ee3\\u7528\\u54c1 \\u5e26\\u523a\\u513f \\u5e26\\u597d\\u513f \\u4e39\\u9876\\u9e64 \\u4e39\\u4e1c\\u5e02 \\u62c5\\u67b6\\u961f \\u5355\\u7eaf\\u8bcd \\u5355\\u6253\\u4e00 \\u5355\\u65b9\\u9762 \\u5355\\u7c27\\u7ba1 \\u5355\\u4eba\\u6ed1 \\u5355\\u8272\\u5149 \\u5355\\u5f26\\u513f \\u5355\\u97f3\\u8bcd \\u80c6\\u5c0f\\u9b3c \\u6de1\\u6c34\\u6e56 \\u5f39\\u5b50\\u9501 \\u5f53\\u5bb6\\u4eba \\u5f53\\u4e8b\\u4eba \\u6321\\u8f66\\u5de5 \\u6863\\u6848\\u5b66 \\u515a\\u516b\\u80a1 \\u515a\\u4ee3\\u8868 \\u5200\\u65a7\\u624b \\u5200\\u9a6c\\u65e6 \\u5200\\u524a\\u9762 \\u5bfc\\u706b\\u7d22 \\u5012\\u6625\\u5bd2 \\u5012\\u597d\\u513f \\u5012\\u8ba1\\u65f6 \\u5012\\u80c3\\u53e3 \\u5230\\u5934\\u6765 \\u9053\\u5c14\\u987f \\u9053\\u6797\\u7eb8 \\u7a3b\\u8349\\u4eba \\u5f97\\u4eba\\u5fc3 \\u5fb7\\u90fd\\u53bf \\u5fb7\\u5174\\u5e02 \\u706f\\u4eae\\u513f \\u706f\\u5fc3\\u8349 \\u7b49\\u5916\\u54c1 \\u9093\\u5c0f\\u5e73 \\u4f4e\\u80fd\\u513f \\u6ef4\\u5b9a\\u7ba1 \\u8fea\\u65af\\u79d1 \\u62b5\\u62bc\\u54c1 \\u5e95\\u4e0b\\u4eba \\u5730\\u8868\\u6c34 \\u5730\\u5c42\\u5b66 \\u5730\\u65b9\\u5b98 \\u5730\\u65b9\\u65f6 \\u5730\\u65b9\\u7a0e \\u5730\\u65b9\\u5fd7 \\u5730\\u80a4\\u5b50 \\u5730\\u4ef7\\u7a0e \\u5730\\u8001\\u864e \\u5730\\u7406\\u5b66 \\u5730\\u6ca5\\u9752 \\u5730\\u8c8c\\u5b66 \\u5730\\u9762\\u6c34 \\u5730\\u5934\\u86c7 \\u5730\\u56fe\\u5b66 \\u5730\\u4e0b\\u6cb3 \\u5730\\u4e0b\\u5ba4 \\u5730\\u4e0b\\u6c34 \\u5730\\u5f62\\u56fe \\u5730\\u7aa8\\u5b50 \\u5730\\u9707\\u6ce2 \\u5730\\u9707\\u5b66 \\u5730\\u8d28\\u5b66 \\u5730\\u4e2d\\u6d77 \\u9012\\u773c\\u8272 \\u7b2c\\u4e8c\\u5ba1 \\u7b2c\\u4e00\\u5ba1 \\u7f14\\u7ea6\\u56fd \\u5178\\u578b\\u6027 \\u7535\\u62a5\\u673a \\u7535\\u5531\\u673a \\u7535\\u5439\\u98ce \\u7535\\u78c1\\u6ce2 \\u7535\\u78c1\\u94c1 \\u7535\\u78c1\\u5b66 \\u7535\\u52a8\\u673a \\u7535\\u52a8\\u52bf \\u7535\\u5ea6\\u8868 \\u7535\\u8d1f\\u6027 \\u7535\\u5de5\\u5b66 \\u7535\\u704c\\u7ad9 \\u7535\\u8bdd\\u673a \\u7535\\u8bdd\\u5c40 \\u7535\\u8001\\u864e \\u7535\\u70d9\\u94c1 \\u7535\\u8def\\u56fe \\u7535\\u9a74\\u5b50 \\u7535\\u629b\\u5149 \\u7535\\u70ed\\u676f \\u7535\\u5bb9\\u5668 \\u7535\\u77f3\\u6c14 \\u7535\\u52bf\\u5dee \\u7535\\u89c6\\u673a \\u7535\\u89c6\\u7247 \\u7535\\u4f4d\\u5dee \\u7535\\u538b\\u8868 \\u7535\\u538b\\u8ba1 \\u7535\\u5f71\\u9662 \\u7535\\u5b50\\u8868 \\u7535\\u5b50\\u4f0f \\u7535\\u5b50\\u7ba1 \\u7535\\u5b50\\u8bba \\u7535\\u5b50\\u675f \\u7535\\u5b50\\u5b66 \\u7535\\u5b50\\u4e91 \\u7535\\u963b\\u5668 \\u5e97\\u5c0f\\u4e8c \\u57ab\\u5e95\\u513f \\u540a\\u889c\\u5e26 \\u540a\\u80c3\\u53e3 \\u6389\\u8fc7\\u513f \\u4e01\\u516c\\u85e4 \\u9876\\u5471\\u5471 \\u9876\\u95e8\\u513f \\u9876\\u89c6\\u56fe \\u8ba2\\u4e66\\u9489 \\u8ba2\\u4e66\\u673a \\u9489\\u9f7f\\u8019 \\u5b9a\\u76d8\\u661f \\u5b9a\\u65f6\\u5668 \\u5b9a\\u5174\\u53bf \\u5b9a\\u97f3\\u9f13 \\u952d\\u5b50\\u6cb9 \\u4e1c\\u5317\\u864e \\u4e1c\\u7a97\\u8ba1 \\u4e1c\\u9053\\u56fd \\u4e1c\\u9053\\u4e3b \\u4e1c\\u4eac\\u6e7e \\u4e1c\\u6797\\u515a \\u4e1c\\u5174\\u5e02 \\u4e1c\\u6b63\\u6559 \\u4e1c\\u76f4\\u95e8 \\u51ac\\u4e0d\\u62c9 \\u51ac\\u74dc\\u5b50 \\u51ac\\u5019\\u9e1f \\u8463\\u4e8b\\u4f1a \\u52a8\\u4e0d\\u52a8 \\u52a8\\u6ed1\\u8f6e \\u52a8\\u529b\\u673a \\u52a8\\u529b\\u5b66 \\u52a8\\u7269\\u5b66 \\u52a8\\u7269\\u6cb9 \\u6d1e\\u5ead\\u6e56 \\u90fd\\u5bdf\\u9662 \\u90fd\\u660c\\u53bf \\u90fd\\u5170\\u53bf \\u90fd\\u5300\\u5e02 \\u6296\\u5a01\\u98ce \\u6597\\u5357\\u9547 \\u8c46\\u8150\\u82b1 \\u8c46\\u8150\\u8111 \\u8c46\\u8150\\u4e73 \\u8c46\\u82bd\\u513f \\u9017\\u95f7\\u5b50 \\u9017\\u8da3\\u513f \\u9017\\u7b11\\u513f \\u72ec\\u7acb\\u56fd \\u72ec\\u95e8\\u513f \\u72ec\\u5c71\\u5b50 \\u72ec\\u751f\\u5973 \\u72ec\\u751f\\u5b50 \\u72ec\\u773c\\u9f99 \\u72ec\\u9662\\u513f \\u8bfb\\u4e66\\u4eba \\u6e0e\\u804c\\u7f6a \\u675c\\u9e43\\u82b1 \\u675c\\u677e\\u5b50 \\u9540\\u950c\\u94c1 \\u77ed\\u4e0d\\u4e86 \\u77ed\\u8bad\\u73ed \\u65ad\\u8def\\u5668 \\u65ad\\u9762\\u56fe \\u5bf9\\u6bd4\\u5ea6 \\u5bf9\\u6bd4\\u8272 \\u5bf9\\u4e0d\\u8d77 \\u5bf9\\u8bb2\\u673a \\u5bf9\\u6297\\u8d5b \\u5bf9\\u7acb\\u9762 \\u5bf9\\u5473\\u513f \\u5bf9\\u80c3\\u53e3 \\u5428\\u516c\\u91cc \\u591a\\u5f39\\u5934 \\u591a\\u53d1\\u75c5 \\u591a\\u65b9\\u9762 \\u591a\\u4f26\\u591a \\u591a\\u9762\\u89d2 \\u591a\\u9762\\u624b \\u591a\\u7459\\u6cb3 \\u591a\\u5e74\\u751f \\u591a\\u795e\\u6559 \\u591a\\u4e00\\u534a \\u591a\\u4e49\\u8bcd \\u591a\\u97f3\\u5b57 \\u591a\\u5143\\u8bba \\u5ce8\\u7709\\u5c71 \\u9e45\\u638c\\u98ce \\u6076\\u52bf\\u529b \\u9102\\u5dde\\u5e02 \\u6441\\u9489\\u513f \\u6441\\u6263\\u513f \\u513f\\u7ae5\\u56e2 \\u8033\\u62a5\\u795e \\u8033\\u8fb9\\u98ce \\u8033\\u522e\\u5b50 \\u8033\\u65c1\\u98ce \\u8033\\u6316\\u5b50 \\u8033\\u54bd\\u7ba1 \\u8033\\u5760\\u5b50 \\u4e8c\\u628a\\u5200 \\u4e8c\\u628a\\u624b \\u4e8c\\u767e\\u4e94 \\u4e8c\\u4f20\\u624b \\u4e8c\\u5730\\u4e3b \\u4e8c\\u623f\\u4e1c \\u4e8c\\u9505\\u5934 \\u4e8c\\u6781\\u7ba1 \\u4e8c\\u8fdb\\u5bab \\u4e8c\\u6123\\u5b50 \\u4e8c\\u9762\\u89d2 \\u4e8c\\u5e74\\u751f \\u4e8c\\u624b\\u8d27 \\u4e8c\\u8e22\\u811a \\u4e8c\\u5143\\u8bba \\u53d1\\u62a5\\u673a \\u53d1\\u7535\\u5382 \\u53d1\\u7535\\u673a \\u53d1\\u52a8\\u673a \\u53d1\\u7aef\\u8bcd \\u53d1\\u520a\\u8bcd \\u53d1\\u660e\\u5bb6 \\u53d1\\u813e\\u6c14 \\u53d1\\u8d77\\u4eba \\u53d1\\u795e\\u7ecf \\u53d1\\u7965\\u5730 \\u53d1\\u8a00\\u4eba \\u53d1\\u6d0b\\u8d22 \\u53d1\\u8bed\\u8bcd \\u53d1\\u6e90\\u5730 \\u6cd5\\u4eba\\u80a1 \\u6cd5\\u533b\\u5b66 \\u756a\\u7ea2\\u82b1 \\u756a\\u6728\\u74dc \\u7ffb\\u8f66\\u9c7c \\u7ffb\\u4e2a\\u513f \\u7ffb\\u7b4b\\u6597 \\u51e1\\u5c14\\u8d5b \\u7e41\\u4f53\\u5b57 \\u53cd\\u6bd4\\u4f8b \\u53cd\\u51b2\\u529b \\u53cd\\u7535\\u5b50 \\u53cd\\u5bf9\\u515a \\u53cd\\u9769\\u547d \\u53cd\\u7c92\\u5b50 \\u53cd\\u6f5c\\u673a \\u53cd\\u5c04\\u89d2 \\u53cd\\u4e49\\u8bcd \\u53cd\\u6620\\u8bba \\u53cd\\u8bc1\\u6cd5 \\u53cd\\u8f6c\\u7247 \\u53cd\\u4f5c\\u7528 \\u72af\\u4e0d\\u4e0a \\u72af\\u8282\\u6c14 \\u6cdb\\u795e\\u8bba \\u65b9\\u4fbf\\u9762 \\u65b9\\u6cd5\\u8bba \\u65b9\\u5dfe\\u6c14 \\u65b9\\u5757\\u5b57 \\u65b9\\u6846\\u56fe \\u65b9\\u9762\\u519b \\u65b9\\u4f4d\\u8bcd \\u65b9\\u4f4d\\u89d2 \\u9632\\u75ab\\u7ad9 \\u623f\\u5730\\u4ea7 \\u4eff\\u751f\\u5b66 \\u7eba\\u7ec7\\u54c1 \\u653e\\u5927\\u5668 \\u653e\\u5927\\u7eb8 \\u653e\\u7a7a\\u6c14 \\u653e\\u51b7\\u98ce \\u653e\\u5c04\\u6027 \\u653e\\u50cf\\u673a \\u653e\\u5370\\u5b50 \\u653e\\u6620\\u673a \\u975e\\u5b98\\u65b9 \\u975e\\u91d1\\u5c5e \\u975e\\u5356\\u54c1 \\u8bfd\\u8c24\\u7f6a \\u80ba\\u52a8\\u8109 \\u80ba\\u7ed3\\u6838 \\u80ba\\u9759\\u8109 \\u80ba\\u5faa\\u73af \\u8d39\\u7c73\\u5b50 \\u8d39\\u624b\\u811a \\u5206\\u955c\\u5934 \\u5206\\u7c7b\\u5b66 \\u5206\\u6790\\u8bed \\u7c89\\u6251\\u513f \\u7c89\\u84b8\\u8089 \\u4e30\\u90fd\\u53bf \\u98ce\\u7eaa\\u6263 \\u98ce\\u666f\\u753b \\u98ce\\u5a92\\u82b1 \\u98ce\\u5207\\u53d8 \\u98ce\\u4fd7\\u753b \\u98ce\\u5411\\u6807 \\u98ce\\u4fe1\\u5b50 \\u98ce\\u6cb9\\u7cbe \\u98ce\\u96e8\\u8863 \\u5c01\\u5efa\\u4e3b \\u75af\\u4eba\\u9662 \\u8702\\u9e23\\u5668 \\u8702\\u7a9d\\u7164 \\u7f1d\\u7eab\\u673a \\u7f1d\\u8863\\u9488 \\u51e4\\u51f0\\u6728 \\u51e4\\u51f0\\u8863 \\u51e4\\u5c3e\\u8349 \\u51e4\\u5c3e\\u9c7c \\u51e4\\u4ed9\\u82b1 \\u4f5b\\u5f97\\u89d2 \\u4f5b\\u5188\\u53bf \\u4f5b\\u7532\\u8349 \\u4f5b\\u6559\\u5f92 \\u4f5b\\u576a\\u53bf \\u4f5b\\u5c71\\u5e02 \\u4f5b\\u624b\\u74dc \\u4f0f\\u7279\\u8ba1 \\u4f0f\\u7279\\u52a0 \\u8299\\u84c9\\u56fd \\u7b26\\u53f7\\u8bba \\u8f90\\u5c04\\u80fd \\u798f\\u5b89\\u5e02 \\u798f\\u9f0e\\u5e02 \\u798f\\u5efa\\u7701 \\u798f\\u6e05\\u5e02 \\u798f\\u6cc9\\u5e02 \\u798f\\u5174\\u4e61 \\u798f\\u5dde\\u5e02 \\u629a\\u6064\\u91d1 \\u4fef\\u89c6\\u56fe \\u7236\\u6bcd\\u5b98 \\u8d1f\\u7535\\u5b50 \\u8d1f\\u79bb\\u5b50 \\u5987\\u4ea7\\u79d1 \\u9644\\u52a0\\u7a0e \\u9644\\u5c5e\\u56fd \\u9644\\u7740\\u529b \\u590d\\u8f85\\u97f3 \\u590d\\u5408\\u8bcd \\u590d\\u540d\\u6570 \\u590d\\u8272\\u5149 \\u590d\\u5199\\u7eb8 \\u590d\\u5174\\u95e8 \\u590d\\u5174\\u793e \\u590d\\u5174\\u4e61 \\u590d\\u5370\\u673a \\u590d\\u5236\\u54c1 \\u526f\\u4ea7\\u54c1 \\u526f\\u98df\\u54c1 \\u526f\\u4f5c\\u7528 \\u5bcc\\u6625\\u6c5f \\u8986\\u76d6\\u9762 \\u65ee\\u65ef\\u513f \\u4f3d\\u5357\\u9999 \\u560e\\u6e23\\u513f \\u9499\\u79bb\\u5b50 \\u809d\\u786c\\u53d8 \\u8d76\\u4e0d\\u4e0a \\u8d76\\u5e99\\u4f1a \\u8d76\\u660e\\u513f \\u8d76\\u70ed\\u95f9 \\u8d76\\u8d9f\\u513f \\u6562\\u6b7b\\u961f \\u611f\\u5149\\u7247 \\u611f\\u5149\\u7eb8 \\u611f\\u67d3\\u529b \\u611f\\u53d7\\u5668 \\u611f\\u53f9\\u8bcd \\u611f\\u53f9\\u53e5 \\u6a44\\u6984\\u7eff \\u6a44\\u6984\\u6cb9 \\u5e72\\u5df4\\u5df4 \\u5e72\\u916a\\u7d20 \\u5e72\\u6270\\u7d20 \\u5e72\\u9c9c\\u679c \\u5e72\\u71e5\\u673a \\u5e72\\u71e5\\u5668 \\u5e72\\u71e5\\u5ba4 \\u94a2\\u4e1d\\u7ef3 \\u6e2f\\u52a1\\u5c40 \\u9ad8\\u62e8\\u5b50 \\u9ad8\\u624d\\u751f \\u9ad8\\u6750\\u751f \\u9ad8\\u5ea6\\u8ba1 \\u9ad8\\u7ea7\\u793e \\u9ad8\\u52a0\\u7d22 \\u9ad8\\u811a\\u676f \\u9ad8\\u7cbe\\u5c16 \\u9ad8\\u7cb1\\u7c73 \\u9ad8\\u5cad\\u571f \\u9ad8\\u7eac\\u5ea6 \\u9ad8\\u6d88\\u8d39 \\u9ad8\\u96c4\\u5e02 \\u9ad8\\u538b\\u7535 \\u9ad8\\u7956\\u6bcd \\u54e5\\u8001\\u4f1a \\u5272\\u5c3e\\u5df4 \\u6b4c\\u5531\\u5bb6 \\u6b4c\\u821e\\u4f0e \\u9769\\u5409\\u53bf \\u9769\\u547d\\u5bb6 \\u9769\\u547d\\u519b \\u6839\\u672c\\u6cd5 \\u6839\\u636e\\u5730 \\u6839\\u6307\\u6570 \\u66f4\\u5e74\\u671f \\u66f4\\u8863\\u5ba4 \\u5de5\\u7a0b\\u5175 \\u5de5\\u7a0b\\u5e08 \\u5de5\\u95f4\\u64cd \\u5de5\\u4e1a\\u56fd \\u5de5\\u4e1a\\u54c1 \\u5de5\\u827a\\u54c1 \\u5de5\\u4f5c\\u9762 \\u5de5\\u4f5c\\u65e5 \\u5f13\\u7bad\\u624b \\u5f13\\u5f29\\u624b \\u516c\\u500d\\u6570 \\u516c\\u79ef\\u91d1 \\u516c\\u68c0\\u6cd5 \\u516c\\u5f00\\u4fe1 \\u516c\\u5e73\\u79e4 \\u516c\\u8bc9\\u4eba \\u516c\\u76ca\\u91d1 \\u516c\\u56e0\\u5b50 \\u516c\\u7ea6\\u6570 \\u5171\\u4ea7\\u515a \\u5171\\u548c\\u515a \\u5171\\u548c\\u56fd \\u5171\\u8fdb\\u4f1a \\u5171\\u9752\\u56e2 \\u5171\\u540c\\u793e \\u5171\\u540c\\u8bed \\u5171\\u632f\\u5668 \\u4f9b\\u9500\\u793e \\u6c9f\\u6cbf\\u513f \\u72d7\\u5c3e\\u8349 \\u72d7\\u54ac\\u72d7 \\u6784\\u8bcd\\u6cd5 \\u6784\\u9020\\u6e56 \\u8d2d\\u4e70\\u529b \\u591f\\u4ea4\\u60c5 \\u4f30\\u5806\\u513f \\u5b64\\u54c0\\u5b50 \\u5b64\\u7acb\\u5b50 \\u5b64\\u96f6\\u96f6 \\u59d1\\u5a18\\u5bb6 \\u53e4\\u4ea4\\u5e02 \\u53e4\\u5170\\u7ecf \\u53e4\\u94dc\\u8272 \\u53e4\\u6587\\u5b57 \\u9aa8\\u7ed3\\u6838 \\u9aa8\\u788e\\u8865 \\u9f13\\u70b9\\u5b50 \\u9f13\\u98ce\\u673a \\u6545\\u4e8b\\u7247 \\u96c7\\u4f63\\u519b \\u74dc\\u5b50\\u91d1 \\u522e\\u80e1\\u5b50 \\u6302\\u53f7\\u4fe1 \\u62d0\\u8116\\u513f \\u602a\\u4e0d\\u5f97 \\u5173\\u4e1c\\u7cd6 \\u5173\\u952e\\u671f \\u5173\\u952e\\u5b57 \\u5173\\u8282\\u75db \\u5173\\u8054\\u8bcd \\u5173\\u7cfb\\u5b66 \\u89c2\\u5bdf\\u5bb6 \\u89c2\\u5bdf\\u529b \\u89c2\\u4e16\\u97f3 \\u89c2\\u97f3\\u571f \\u5b98\\u80fd\\u56e2 \\u51a0\\u5fc3\\u75c5 \\u76e5\\u6d17\\u5ba4 \\u704c\\u7c73\\u6c64 \\u5149\\u677f\\u513f \\u5149\\u6ce2\\u957f \\u5149\\u7535\\u5b50 \\u5149\\u68cd\\u513f \\u5149\\u6d01\\u5ea6 \\u5e7f\\u5b89\\u95e8 \\u5e7f\\u5b89\\u5e02 \\u5e7f\\u64ad\\u7ad9 \\u5e7f\\u5bd2\\u5bab \\u5e7f\\u4ea4\\u4f1a \\u9b3c\\u70b9\\u5b50 \\u9b3c\\u7075\\u7cbe \\u9b3c\\u95e8\\u5173 \\u9b3c\\u5243\\u5934 \\u9b3c\\u9488\\u8349 \\u523d\\u5b50\\u624b \\u8d35\\u91d1\\u5c5e \\u9505\\u8d34\\u513f \\u8748\\u8748\\u513f \\u56fd\\u9632\\u519b \\u56fd\\u9645\\u6cd5 \\u56fd\\u9645\\u6b4c \\u56fd\\u6c11\\u6027 \\u56fd\\u52a1\\u9662 \\u679c\\u6599\\u513f \\u679c\\u4ec1\\u513f \\u8fc7\\u534a\\u6570 \\u8fc7\\u7535\\u5f71 \\u8fc7\\u8282\\u513f \\u8fc7\\u6765\\u4eba \\u8fc7\\u751f\\u65e5 \\u8fc7\\u6c34\\u9762 \\u8fc7\\u5802\\u98ce \\u8fc7\\u4e94\\u5173 \\u54c8\\u5df4\\u6cb3 \\u54c8\\u5587\\u5b50 \\u54c8\\u5bc6\\u74dc \\u8fd8\\u4e61\\u56e2 \\u8fd8\\u539f\\u7cd6 \\u6d77\\u6d1b\\u56e0 \\u6d77\\u5357\\u7701 \\u6d77\\u738b\\u661f \\u6d77\\u5174\\u53bf \\u5bd2\\u6691\\u8868 \\u5bd2\\u6b66\\u7eaa \\u6c57\\u80cc\\u5fc3 \\u65f1\\u9e2d\\u5b50 \\u884c\\u4e1a\\u8bed \\u822a\\u7a7a\\u4fe1 \\u597d\\u597d\\u513f \\u597d\\u4eba\\u5bb6 \\u597d\\u73a9\\u513f \\u597d\\u671b\\u89d2 \\u597d\\u6d88\\u606f \\u53f7\\u7801\\u673a \\u559d\\u58a8\\u6c34 \\u79be\\u672c\\u79d1 \\u5408\\u4e0d\\u6765 \\u5408\\u6210\\u8bcd \\u5408\\u6210\\u9769 \\u5408\\u8ba2\\u672c \\u5408\\u6cd5\\u6027 \\u5408\\u4f19\\u4eba \\u5408\\u540c\\u5de5 \\u5408\\u8bae\\u5ead \\u5408\\u4f5c\\u793e \\u4f55\\u9996\\u4e4c \\u548c\\u5c1a\\u5934 \\u548c\\u4e8b\\u8001 \\u6cb3\\u5317\\u7701 \\u6838\\u5f39\\u5934 \\u6838\\u86cb\\u767d \\u6838\\u7535\\u5382 \\u6838\\u7535\\u7ad9 \\u6838\\u8bb9\\u8bc8 \\u6838\\u9ec4\\u7d20 \\u6838\\u8bd5\\u9a8c \\u6838\\u6b66\\u5668 \\u8d3a\\u5170\\u5c71 \\u8d3a\\u5e74\\u7247 \\u9ed1\\u767d\\u7247 \\u9ed1\\u6c89\\u6c89 \\u9ed1\\u9499\\u571f \\u9ed1\\u9f99\\u6c5f \\u9ed1\\u540d\\u5355 \\u9ed1\\u65d7\\u519b \\u9ed1\\u8272\\u7d20 \\u9ed1\\u793e\\u4f1a \\u9ed1\\u624b\\u515a \\u9ed1\\u773c\\u73e0 \\u9ed1\\u6cb9\\u6cb9 \\u9ed1\\u4e91\\u6bcd \\u9ed1\\u73cd\\u73e0 \\u6068\\u4e0d\\u5f97 \\u6a2a\\u65ad\\u9762 \\u6a2a\\u5207\\u9762 \\u6a2a\\u5750\\u6807 \\u8f70\\u70b8\\u673a \\u70d8\\u5e72\\u673a \\u70d8\\u5e72\\u5668 \\u7ea2\\u6f84\\u6f84 \\u7ea2\\u9709\\u7d20 \\u7ea2\\u5a18\\u5b50 \\u7ea2\\u65d7\\u624b \\u7ea2\\u6c34\\u6cb3 \\u7ea2\\u836f\\u6c34 \\u7ea2\\u6bb7\\u6bb7 \\u8679\\u5438\\u7ba1 \\u6d2a\\u6cfd\\u6e56 \\u5589\\u64e6\\u97f3 \\u540e\\u534a\\u751f \\u540e\\u534a\\u5929 \\u540e\\u534a\\u591c \\u540e\\u5907\\u519b \\u540e\\u6765\\u4eba \\u540e\\u8138\\u513f \\u540e\\u5750\\u529b \\u5019\\u8f66\\u5ba4 \\u5019\\u9009\\u4eba \\u547c\\u5438\\u9053 \\u69f2\\u5bc4\\u751f \\u8774\\u8776\\u82b1 \\u8774\\u8776\\u88c5 \\u864e\\u751f\\u751f \\u62a4\\u57ce\\u6cb3 \\u82b1\\u70b9\\u5b50 \\u5212\\u4e0d\\u6765 \\u534e\\u76db\\u987f \\u534e\\u9634\\u5e02 \\u6ed1\\u7fd4\\u673a \\u5316\\u5986\\u54c1 \\u753b\\u5341\\u5b57 \\u753b\\u5916\\u97f3 \\u6866\\u7538\\u5e02 \\u8e1d\\u5b50\\u9aa8 \\u574f\\u4e1c\\u897f \\u5e7b\\u706f\\u7247 \\u6362\\u4e2a\\u513f \\u6362\\u7b97\\u8868 \\u614c\\u795e\\u513f \\u7687\\u592a\\u5b50 \\u9ec4\\u6d66\\u6c5f \\u9ec4\\u5c71\\u5e02 \\u9ec4\\u836f\\u5b50 \\u6325\\u53d1\\u6027 \\u6325\\u53d1\\u6cb9 \\u6062\\u590d\\u671f \\u73f2\\u6625\\u5e02 \\u56de\\u5f52\\u5e74 \\u56de\\u5f52\\u70ed \\u56de\\u8001\\u5bb6 \\u4f1a\\u9053\\u95e8 \\u4f1a\\u5ba2\\u5ba4 \\u4f1a\\u8bae\\u5ba4 \\u4f1a\\u5458\\u56fd \\u6d3b\\u52a8\\u5bb6 \\u6d3b\\u706b\\u5c71 \\u6d3b\\u89c1\\u9b3c \\u6d3b\\u94b1\\u513f \\u6d3b\\u751f\\u751f \\u6d3b\\u53d7\\u7f6a \\u6d3b\\u9c9c\\u9c9c \\u706b\\u8f66\\u5934 \\u706b\\u8fa3\\u8fa3 \\u706b\\u5c71\\u53e3 \\u706b\\u70e7\\u4e91 \\u706b\\u5934\\u519b \\u706b\\u5934\\u4e0a \\u706b\\u7130\\u5c71 \\u8d27\\u90ce\\u9f13 \\u82a8\\u82a8\\u8349 \\u673a\\u7075\\u9b3c \\u673a\\u5668\\u4eba \\u673a\\u52a1\\u6bb5 \\u673a\\u68b0\\u8bba \\u673a\\u68b0\\u624b \\u9e21\\u6bdb\\u4fe1 \\u9e21\\u897f\\u5e02 \\u79ef\\u6781\\u6027 \\u79ef\\u96ea\\u8349 \\u79ef\\u96e8\\u4e91 \\u53ca\\u65f6\\u96e8 \\u5409\\u535c\\u8d5b \\u6781\\u4e50\\u9e1f \\u6025\\u5df4\\u5df4 \\u6025\\u832c\\u513f \\u6025\\u5148\\u950b \\u96c6\\u5927\\u6210 \\u96c6\\u6563\\u5730 \\u96c6\\u56e2\\u519b \\u96c6\\u4e2d\\u8425 \\u6324\\u7259\\u818f \\u810a\\u6881\\u9aa8 \\u810a\\u795e\\u7ecf \\u810a\\u67f1\\u88c2 \\u810a\\u690e\\u9aa8 \\u8bb0\\u5f55\\u7247 \\u8bb0\\u53d9\\u6587 \\u8bb0\\u5fc6\\u529b \\u7eaa\\u5ff5\\u7891 \\u7eaa\\u5ff5\\u54c1 \\u7eaa\\u5ff5\\u65e5 \\u7ee7\\u627f\\u6cd5 \\u7ee7\\u627f\\u4eba \\u7ee7\\u7535\\u5668 \\u52a0\\u585e\\u513f \\u52a0\\u901f\\u5ea6 \\u52a0\\u901f\\u5668 \\u52a0\\u6cb9\\u7ad9 \\u5bb6\\u5929\\u4e0b \\u5bb6\\u52a1\\u6d3b \\u5bb6\\u52a1\\u4e8b \\u5609\\u9675\\u6c5f \\u5609\\u5174\\u5e02 \\u5609\\u5cea\\u5173 \\u5939\\u677f\\u6c14 \\u5939\\u7af9\\u6843 \\u7532\\u9aa8\\u6587 \\u5047\\u6148\\u60b2 \\u5047\\u5206\\u6570 \\u6b7c\\u51fb\\u673a \\u80a9\\u80db\\u9aa8 \\u76d1\\u62a4\\u4eba \\u526a\\u5207\\u673a \\u526a\\u5207\\u529b \\u7b80\\u5206\\u6570 \\u7b80\\u5316\\u5b57 \\u7b80\\u4f53\\u5b57 \\u78b1\\u91d1\\u5c5e \\u89c1\\u4e0d\\u5f97 \\u89c1\\u9762\\u793c \\u89c1\\u4e60\\u751f \\u89c1\\u8bc1\\u4eba \\u5efa\\u8bbe\\u6027 \\u5efa\\u7b51\\u5b66 \\u5251\\u9f7f\\u864e \\u5065\\u8eab\\u64cd \\u9274\\u5b9a\\u4eba \\u7bad\\u9776\\u5b50 \\u6c5f\\u90fd\\u5e02 \\u6c5f\\u95e8\\u5e02 \\u6c5f\\u82cf\\u7701 \\u5956\\u5b66\\u91d1 \\u4ea4\\u767d\\u5377 \\u4ea4\\u6362\\u673a \\u4ea4\\u9645\\u82b1 \\u4ea4\\u901a\\u7ad9 \\u4ea4\\u6218\\u56fd \\u5a07\\u6ef4\\u6ef4 \\u80f6\\u5dde\\u6e7e \\u7126\\u5708\\u513f \\u89d2\\u901f\\u5ea6 \\u811a\\u8e6c\\u5b50 \\u811a\\u8155\\u5b50 \\u811a\\u4e2b\\u5b50 \\u6405\\u62cc\\u673a \\u9636\\u7ea7\\u6027 \\u8282\\u76ee\\u5355 \\u7ed3\\u675f\\u8bed \\u89e3\\u653e\\u519b \\u89e3\\u6263\\u513f \\u89e3\\u5256\\u5ba4 \\u89e3\\u5256\\u5b66 \\u89e3\\u8bf4\\u8bcd \\u89e3\\u8c03\\u5668 \\u4ecb\\u7ecd\\u4eba \\u4ecb\\u7ecd\\u4fe1 \\u82a5\\u5b50\\u6c14 \\u501f\\u4e1c\\u98ce \\u91d1\\u8fbe\\u83b1 \\u91d1\\u9f9f\\u5b50 \\u91d1\\u73af\\u86c7 \\u91d1\\u83b2\\u82b1 \\u91d1\\u94c3\\u5b50 \\u91d1\\u9709\\u7d20 \\u91d1\\u94b1\\u8349 \\u91d1\\u67aa\\u9c7c \\u91d1\\u6c99\\u6c5f \\u91d1\\u77f3\\u5b66 \\u91d1\\u4e1d\\u96c0 \\u91d1\\u5c0f\\u8702 \\u91d1\\u8170\\u5e26 \\u91d1\\u94f6\\u82b1 \\u91d1\\u6a31\\u5b50 \\u91d1\\u9c7c\\u8349 \\u91d1\\u76cf\\u82b1 \\u7d27\\u5df4\\u5df4 \\u9526\\u6807\\u8d5b \\u9526\\u5dde\\u5e02 \\u5c3d\\u53ef\\u80fd \\u5c3d\\u4eba\\u4e8b \\u8fdb\\u51fa\\u53e3 \\u8fdb\\u5316\\u8bba \\u8fdb\\u53e3\\u8d27 \\u8fdb\\u53e3\\u7a0e \\u8fdb\\u6c14\\u53e3 \\u8fd1\\u4f3c\\u89e3 \\u8fd1\\u536b\\u519b \\u7981\\u4e0d\\u8d77 \\u4eac\\u4e8c\\u80e1 \\u4eac\\u6cb9\\u5b50 \\u7ecf\\u7eaa\\u4eba \\u7ecf\\u7eac\\u5ea6 \\u8346\\u5dde\\u5e02 \\u7cbe\\u5bc6\\u5ea6 \\u7cbe\\u786e\\u5ea6 \\u4e95\\u5188\\u5c71 \\u666f\\u5fb7\\u9547 \\u8b66\\u62a5\\u5668 \\u8b66\\u5bdf\\u5c40 \\u8b66\\u6212\\u8272 \\u8b66\\u60d5\\u6027 \\u656c\\u8001\\u9662 \\u72d9\\u51fb\\u624b \\u5c40\\u5185\\u4eba \\u5c40\\u5916\\u4eba \\u5c40\\u9650\\u6027 \\u5c40\\u4e2d\\u4eba \\u4ff1\\u4e50\\u90e8 \\u5267\\u4e2d\\u4eba \\u5267\\u4f5c\\u5bb6 \\u5377\\u5c42\\u4e91 \\u5377\\u79ef\\u4e91 \\u5377\\u8f74\\u88c5 \\u51b3\\u5b9a\\u8bba \\u51b3\\u5b9a\\u6027 \\u51b3\\u660e\\u5b50 \\u519b\\u7ba1\\u4f1a \\u519b\\u9700\\u54c1 \\u5747\\u5300\\u6027 \\u541b\\u4e3b\\u56fd \\u541b\\u5b50\\u56fd \\u5496\\u5561\\u56e0 \\u5580\\u4ec0\\u5e02 \\u5580\\u65af\\u7279 \\u5f00\\u90fd\\u6cb3 \\u5f00\\u623f\\u95f4 \\u5f00\\u5c01\\u5e02 \\u5f00\\u540e\\u95e8 \\u5f00\\u5377\\u673a \\u5f00\\u53e3\\u9500 \\u5f00\\u9614\\u5730 \\u5f00\\u95e8\\u7ea2 \\u5f00\\u53f8\\u7c73 \\u51ef\\u65cb\\u95e8 \\u582a\\u57f9\\u62c9 \\u574e\\u5e15\\u62c9 \\u770b\\u4e0d\\u8fc7 \\u770b\\u4e0d\\u8d77 \\u770b\\u8d77\\u6765 \\u770b\\u533b\\u751f \\u5eb7\\u6709\\u4e3a \\u625b\\u957f\\u5de5 \\u6297\\u5012\\u4f0f \\u6297\\u83cc\\u7d20 \\u6297\\u751f\\u7d20 \\u6297\\u836f\\u6027 \\u7095\\u684c\\u513f \\u8003\\u53e4\\u5b66 \\u8003\\u636e\\u5b66 \\u9760\\u8fb9\\u7ad9 \\u79d1\\u5b66\\u5bb6 \\u79d1\\u5b66\\u9662 \\u58f3\\u90ce\\u732a \\u53ef\\u8bfb\\u6027 \\u53ef\\u8015\\u5730 \\u53ef\\u89c1\\u5ea6 \\u53ef\\u89c1\\u5149 \\u53ef\\u9760\\u6027 \\u53ef\\u5170\\u7ecf \\u53ef\\u5851\\u6027 \\u8bfe\\u7a0b\\u8868 \\u7a7a\\u5305\\u5f39 \\u7a7a\\u57ce\\u8ba1 \\u7a7a\\u5bf9\\u7a7a \\u7a7a\\u95f4\\u7ad9 \\u7a7a\\u58f3\\u5b50 \\u7a7a\\u6c14\\u6d74 \\u7a7a\\u624b\\u9053 \\u7a7a\\u8c03\\u5668 \\u5b54\\u65b9\\u5144 \\u5b54\\u96c0\\u7eff \\u62a0\\u95e8\\u513f \\u53e3\\u54e8\\u513f \\u53e3\\u5934\\u7985 \\u53e3\\u5934\\u8bed \\u53e3\\u9999\\u7cd6 \\u82e6\\u8089\\u8ba1 \\u5e93\\u4ed1\\u8ba1 \\u5938\\u6d77\\u53e3 \\u8de8\\u5e74\\u5ea6 \\u5feb\\u4e2d\\u5b50 \\u77ff\\u6cc9\\u6c34 \\u4e8f\\u5fc3\\u4e8b \\u8475\\u82b1\\u5b50 \\u9b41\\u5317\\u514b \\u6606\\u866b\\u5b66 \\u6606\\u4ed1\\u5c71 \\u6606\\u660e\\u6e56 \\u6346\\u624e\\u673a \\u6269\\u80f8\\u5668 \\u6269\\u97f3\\u673a \\u6269\\u97f3\\u5668 \\u9614\\u53f6\\u6811 \\u62c9\\u5173\\u7cfb \\u62c9\\u4ea4\\u60c5 \\u62c9\\u4e8f\\u7a7a \\u62c9\\u62c9\\u961f \\u62c9\\u529b\\u5668 \\u62c9\\u9a6c\\u514b \\u62c9\\u4e70\\u5356 \\u62c9\\u5c71\\u5934 \\u62c9\\u4e0b\\u9a6c \\u62c9\\u4e0b\\u6c34 \\u62c9\\u6d0b\\u7247 \\u5587\\u53ed\\u82b1 \\u760c\\u75e2\\u5934 \\u6765\\u4e0d\\u5f97 \\u6765\\u8def\\u8d27 \\u83b1\\u8335\\u6cb3 \\u62e6\\u8def\\u864e \\u6f9c\\u6ca7\\u6c5f \\u61d2\\u6d0b\\u6d0b \\u6ee5\\u5957\\u5b50 \\u635e\\u7a3b\\u8349 \\u635e\\u4e00\\u628a \\u52b3\\u52a8\\u6cd5 \\u52b3\\u52a8\\u529b \\u52b3\\u4ec0\\u5b50 \\u8001\\u534a\\u5929 \\u8001\\u592b\\u5b50 \\u8001\\u9769\\u547d \\u8001\\u516c\\u516c \\u8001\\u597d\\u4eba \\u8001\\u7687\\u5386 \\u8001\\u6c5f\\u6e56 \\u8001\\u4ea4\\u60c5 \\u8001\\u4e24\\u53e3 \\u8001\\u6bdb\\u5b50 \\u8001\\u5e74\\u4eba \\u8001\\u5a46\\u5b50 \\u8001\\u4eba\\u5bb6 \\u8001\\u4eba\\u661f \\u8001\\u5bff\\u661f \\u8001\\u592a\\u592a \\u8001\\u5957\\u5b50 \\u8001\\u5148\\u751f \\u8001\\u76f8\\u8bc6 \\u8001\\u773c\\u5149 \\u8001\\u7237\\u5b50 \\u8001\\u6cb9\\u5b50 \\u8001\\u7389\\u7c73 \\u8001\\u8d44\\u683c \\u4e50\\u98a0\\u98a0 \\u4e50\\u90fd\\u53bf \\u4e86\\u4e0d\\u5f97 \\u4e86\\u4e0d\\u8d77 \\u96f7\\u8fbe\\u5175 \\u96f7\\u8fbe\\u7ad9 \\u96f7\\u96e8\\u4e91 \\u96f7\\u9635\\u96e8 \\u956d\\u5c04\\u6c14 \\u6cea\\u4eba\\u513f \\u7c7b\\u6bd2\\u7d20 \\u51b7\\u5175\\u5668 \\u51b7\\u4e0d\\u9632 \\u51b7\\u52a0\\u5de5 \\u51b7\\u8138\\u5b50 \\u79bb\\u4e0d\\u5f00 \\u79bb\\u683c\\u513f \\u79bb\\u5408\\u5668 \\u79bb\\u5fc3\\u673a \\u79bb\\u5fc3\\u529b \\u79bb\\u5b50\\u675f \\u793c\\u62dc\\u65e5 \\u793c\\u62dc\\u5929 \\u91cc\\u7a0b\\u7891 \\u91cc\\u5916\\u91cc \\u529b\\u6c14\\u6d3b \\u7acb\\u65b9\\u7c73 \\u7acb\\u4f53\\u58f0 \\u5229\\u6539\\u7a0e \\u5229\\u6eda\\u5229 \\u7c92\\u5b50\\u675f \\u8fde\\u6839\\u62d4 \\u8fde\\u8d2f\\u6027 \\u8fde\\u73af\\u4fdd \\u8fde\\u73af\\u753b \\u8fde\\u73af\\u8ba1 \\u8054\\u5408\\u56fd \\u8054\\u5408\\u673a \\u8054\\u7ef5\\u5b57 \\u8138\\u76d8\\u513f \\u70bc\\u6cb9\\u5382 \\u94fe\\u9709\\u7d20 \\u826f\\u5bb6\\u5b50 \\u51c9\\u767d\\u5f00 \\u4e24\\u8fb9\\u5012 \\u4e24\\u70b9\\u8bba \\u4e24\\u5206\\u6cd5 \\u4e24\\u56de\\u4e8b \\u4e24\\u811a\\u89c4 \\u4e24\\u7801\\u4e8b \\u4e24\\u9762\\u5149 \\u4e24\\u9762\\u6027 \\u4e24\\u4e0b\\u5b50 \\u4eae\\u5149\\u5149 \\u4eae\\u773c\\u4eba \\u91cf\\u89d2\\u5668 \\u91cf\\u70ed\\u5668 \\u8fbd\\u4e1c\\u8c55 \\u7597\\u517b\\u9662 \\u804a\\u57ce\\u5e02 \\u5c25\\u8e76\\u5b50 \\u6599\\u8c46\\u513f \\u52a3\\u6839\\u6027 \\u6797\\u4ea7\\u54c1 \\u6797\\u7538\\u53bf \\u6797\\u836b\\u9053 \\u4e34\\u754c\\u89d2 \\u4e34\\u65f6\\u5de5 \\u9cde\\u7fc5\\u76ee \\u541d\\u556c\\u9b3c \\u7075\\u654f\\u5ea6 \\u51cc\\u9704\\u82b1 \\u9f99\\u6d8e\\u9999 \\u9f99\\u987b\\u8349 \\u9f99\\u987b\\u9762 \\u9686\\u5b50\\u53bf \\u697c\\u68af\\u95f4 \\u6cf8\\u5dde\\u5e02 \\u9c81\\u7538\\u53bf \\u5f55\\u50cf\\u673a \\u5f55\\u97f3\\u673a \\u9e7f\\u8c37\\u4e61 \\u9e7f\\u89d2\\u971c \\u8def\\u8def\\u901a \\u9732\\u9a6c\\u811a \\u9732\\u9985\\u513f \\u9732\\u4e00\\u624b \\u5b6a\\u751f\\u5b50 \\u5375\\u80ce\\u751f \\u4f26\\u7406\\u5b66 \\u8f6e\\u673a\\u624b \\u8bba\\u8bf4\\u6587 \\u7f57\\u7538\\u53bf \\u7f57\\u9505\\u513f \\u7f57\\u6c49\\u8c46 \\u7f57\\u6c49\\u679c \\u87ba\\u4e1d\\u5200 \\u87ba\\u4e1d\\u9489 \\u87ba\\u4e1d\\u6bcd \\u6d1b\\u9633\\u5e02 \\u9a86\\u9a7c\\u523a \\u9a74\\u6253\\u6eda \\u9a74\\u76ae\\u5f71 \\u5415\\u5b8b\\u70df \\u5c65\\u5386\\u8868 \\u6c2f\\u79bb\\u5b50 \\u9ebb\\u96f7\\u5b50 \\u9a6c\\u8921\\u5b50 \\u9a6c\\u5fb7\\u91cc \\u9a6c\\u7caa\\u7eb8 \\u9a6c\\u6d77\\u6bdb \\u9a6c\\u8d6b\\u6570 \\u9a6c\\u53e3\\u94c1 \\u9a6c\\u94c3\\u85af \\u9a6c\\u5976\\u5b50 \\u9a6c\\u524d\\u5352 \\u9a6c\\u94b1\\u5b50 \\u9a6c\\u8d5b\\u514b \\u9a6c\\u8e44\\u8868 \\u9a6c\\u8e44\\u83b2 \\u9a6c\\u8e44\\u94c1 \\u9a6c\\u7f28\\u82b1 \\u8682\\u87e5\\u9489 \\u4e70\\u5356\\u4eba \\u9ea6\\u514b\\u98ce \\u9ea6\\u95e8\\u51ac \\u9ea6\\u4e73\\u7cbe \\u9ea6\\u82bd\\u7cd6 \\u5356\\u5173\\u5b50 \\u5356\\u529b\\u6c14 \\u5356\\u4eba\\u60c5 \\u6ee1\\u6c5f\\u7ea2 \\u6ee1\\u5802\\u7ea2 \\u6ee1\\u5929\\u98de \\u6ee1\\u5929\\u661f \\u6f2b\\u53cd\\u5c04 \\u6162\\u541e\\u541e \\u5fd9\\u4e0d\\u8fed \\u6bdb\\u8fb9\\u7eb8 \\u6bdb\\u5730\\u9ec4 \\u6bdb\\u5dfe\\u88ab \\u6bdb\\u6bdb\\u96e8 \\u6bdb\\u7ec6\\u7ba1 \\u6bdb\\u6cfd\\u4e1c \\u6bdb\\u7ec7\\u54c1 \\u5192\\u724c\\u8d27 \\u5192\\u5931\\u9b3c \\u8d38\\u6613\\u98ce \\u5e3d\\u76d4\\u513f \\u6ca1\\u8fb9\\u513f \\u6ca1\\u51fa\\u606f \\u6ca1\\u8bcd\\u513f \\u6ca1\\u6cd5\\u513f \\u6ca1\\u5173\\u7cfb \\u6ca1\\u597d\\u6c14 \\u6ca1\\u95e8\\u513f \\u6ca1\\u4e8b\\u513f \\u6ca1\\u4e8b\\u4eba \\u6ca1\\u5f71\\u513f \\u73ab\\u7470\\u8272 \\u6e44\\u516c\\u6cb3 \\u7164\\u9ed1\\u5b50 \\u7164\\u7126\\u6cb9 \\u7164\\u781f\\u5b50 \\u7f8e\\u4eba\\u8ba1 \\u7f8e\\u5bb9\\u9662 \\u7f8e\\u98df\\u5bb6 \\u7f8e\\u672f\\u7247 \\u7f8e\\u672f\\u5b57 \\u9541\\u79bb\\u5b50 \\u6627\\u826f\\u5fc3 \\u95e8\\u9f3b\\u513f \\u95e8\\u9759\\u8109 \\u95e8\\u5e02\\u90e8 \\u95e8\\u8bca\\u90e8 \\u5f25\\u52d2\\u53bf \\u8ff7\\u9b42\\u6c64 \\u7c73\\u7c89\\u8089 \\u7c73\\u6cd4\\u6c34 \\u7c73\\u9ec4\\u8272 \\u7c73\\u7cae\\u5ddd \\u6c68\\u7f57\\u6c5f \\u5e42\\u7ea7\\u6570 \\u68c9\\u7ec7\\u54c1 \\u68c9\\u7c7d\\u6cb9 \\u514d\\u4e0d\\u5f97 \\u514d\\u4e0d\\u4e86 \\u514d\\u75ab\\u529b \\u514d\\u75ab\\u6027 \\u9762\\u5bf9\\u9762 \\u9762\\u7801\\u513f \\u9762\\u4eba\\u513f \\u9762\\u795e\\u7ecf \\u9762\\u56e2\\u56e2 \\u706d\\u706b\\u5668 \\u6c11\\u4fd7\\u5b66 \\u660e\\u767d\\u4eba \\u660e\\u65af\\u514b \\u660e\\u4fe1\\u7247 \\u660e\\u773c\\u4eba \\u9e23\\u4e0d\\u5e73 \\u51a5\\u738b\\u661f \\u6478\\u95e8\\u513f \\u6a21\\u7279\\u513f \\u6469\\u64e6\\u529b \\u78e8\\u4e0d\\u5f00 \\u78e8\\u6d0b\\u5de5 \\u8611\\u83c7\\u4e91 \\u9b54\\u672f\\u5e08 \\u964c\\u751f\\u4eba \\u83ab\\u65af\\u79d1 \\u83ab\\u987b\\u6709 \\u58a8\\u6597\\u9c7c \\u58a8\\u5c14\\u672c \\u58a8\\u6c34\\u513f \\u6bcd\\u8001\\u864e \\u6728\\u5170\\u82b1 \\u6728\\u9a6c\\u8ba1 \\u6728\\u5076\\u7247 \\u6728\\u70ad\\u753b \\u7267\\u7f8a\\u4eba \\u66ae\\u751f\\u513f \\u62ff\\u4e3b\\u610f \\u54ea\\u95e8\\u5b50 \\u90a3\\u7a0b\\u5b50 \\u90a3\\u8fbe\\u6155 \\u90a3\\u9635\\u513f \\u7eb3\\u95f7\\u513f \\u8010\\u7528\\u54c1 \\u7537\\u4f4e\\u97f3 \\u7537\\u9ad8\\u97f3 \\u7537\\u4e2d\\u97f3 \\u5357\\u74dc\\u5b50 \\u5357\\u6ce5\\u6e7e \\u5357\\u5929\\u95e8 \\u5357\\u6e29\\u5e26 \\u5357\\u9633\\u5e02 \\u96be\\u4e3a\\u60c5 \\u8111\\u888b\\u74dc \\u8111\\u7535\\u6ce2 \\u8111\\u7535\\u56fe \\u8111\\u74dc\\u5b50 \\u8111\\u79ef\\u6c34 \\u8111\\u95e8\\u513f \\u8111\\u95e8\\u5b50 \\u8111\\u795e\\u7ecf \\u8111\\u840e\\u7f29 \\u95f9\\u9965\\u8352 \\u95f9\\u4e71\\u5b50 \\u95f9\\u813e\\u6c14 \\u95f9\\u610f\\u89c1 \\u95f9\\u610f\\u6c14 \\u5185\\u5f53\\u5bb6 \\u5185\\u9646\\u56fd \\u5185\\u9646\\u6d77 \\u5185\\u9646\\u6cb3 \\u5185\\u9646\\u6e56 \\u5185\\u5207\\u5706 \\u5185\\u71c3\\u673a \\u5185\\u4f84\\u5973 \\u80fd\\u52a8\\u6027 \\u80fd\\u89c1\\u5ea6 \\u5c3c\\u52d2\\u514b \\u5c3c\\u7f57\\u6cb3 \\u9006\\u8fd0\\u7b97 \\u533f\\u540d\\u4fe1 \\u852b\\u5df4\\u5df4 \\u852b\\u547c\\u547c \\u5e74\\u8f7b\\u4eba \\u5e74\\u4e09\\u5341 \\u78be\\u78d9\\u5b50 \\u5a18\\u5b50\\u5173 \\u5a18\\u5b50\\u519b \\u9e1f\\u517d\\u6563 \\u5b81\\u90fd\\u53bf \\u5b81\\u99a8\\u513f \\u51dd\\u805a\\u529b \\u519c\\u4ea7\\u54c1 \\u519c\\u5974\\u4e3b \\u519c\\u4e1a\\u56fd \\u519c\\u4e1a\\u7a0e \\u519c\\u8f6c\\u975e \\u5f04\\u6f6e\\u513f \\u5974\\u96b6\\u4e3b \\u6012\\u51b2\\u51b2 \\u6696\\u547c\\u547c \\u6696\\u6c14\\u56e2 \\u6696\\u6d0b\\u6d0b \\u632a\\u7a9d\\u513f \\u5973\\u516c\\u5b50 \\u5973\\u5b69\\u513f \\u5973\\u4e3b\\u4eba \\u5076\\u51fd\\u6570 \\u722c\\u5c71\\u864e \\u62cd\\u5356\\u884c \\u6392\\u5934\\u5175 \\u6d3e\\u529b\\u53f8 \\u6d3e\\u751f\\u8bcd \\u6500\\u679d\\u82b1 \\u87e0\\u6843\\u4f1a \\u5224\\u65ad\\u529b \\u65c1\\u5c94\\u513f \\u65c1\\u5207\\u5706 \\u65c1\\u538b\\u529b \\u5228\\u6839\\u513f \\u888d\\u7f69\\u513f \\u8dd1\\u6c5f\\u6e56 \\u8dd1\\u7801\\u5934 \\u8dd1\\u4e70\\u5356 \\u8dd1\\u751f\\u610f \\u8dd1\\u817f\\u513f \\u80da\\u80ce\\u5b66 \\u57f9\\u517b\\u57fa \\u8d54\\u5c0f\\u5fc3 \\u55b7\\u706b\\u5668 \\u55b7\\u96fe\\u5668 \\u6f8e\\u6e56\\u53bf \\u78b0\\u7c27\\u9501 \\u78b0\\u5934\\u4f1a \\u78b0\\u8fd0\\u6c14 \\u6279\\u53d1\\u5546 \\u6279\\u8bc4\\u5bb6 \\u76ae\\u677f\\u513f \\u76ae\\u7334\\u513f \\u76ae\\u6876\\u5b50 \\u7435\\u7436\\u9aa8 \\u504f\\u5fc3\\u8f6e \\u7247\\u5047\\u540d \\u7247\\u9762\\u6027 \\u7968\\u8d29\\u5b50 \\u8d2b\\u96c7\\u519c \\u5e73\\u65b9\\u7c73 \\u5e73\\u8861\\u6728 \\u5e73\\u5047\\u540d \\u5e73\\u5747\\u5dee \\u5e73\\u5747\\u6570 \\u5e73\\u9762\\u6ce2 \\u5e73\\u9762\\u89d2 \\u5e73\\u9762\\u56fe \\u5e73\\u578b\\u5173 \\u8bc4\\u8bba\\u5bb6 \\u6cfc\\u51b7\\u6c34 \\u9131\\u9633\\u6e56 \\u7834\\u4f24\\u98ce \\u7834\\u4f53\\u5b57 \\u7834\\u5929\\u8352 \\u5256\\u8179\\u4ea7 \\u5256\\u9762\\u56fe \\u5256\\u89c6\\u56fe \\u8386\\u7530\\u5e02 \\u83e9\\u63d0\\u5b50 \\u8461\\u8404\\u5e72 \\u8461\\u8404\\u7cd6 \\u6fee\\u9633\\u5e02 \\u666e\\u904d\\u6027 \\u666e\\u53ca\\u672c \\u666e\\u901a\\u4eba \\u4e03\\u8fd4\\u4e39 \\u4e03\\u91cc\\u9999 \\u4e03\\u53f6\\u6811 \\u6816\\u971e\\u5e02 \\u9f50\\u6b65\\u8d70 \\u7941\\u8fde\\u5c71 \\u7948\\u4f7f\\u53e5 \\u4f01\\u4e1a\\u5bb6 \\u542f\\u660e\\u661f \\u8d77\\u52a8\\u5668 \\u8d77\\u5c45\\u5ba4 \\u8d77\\u91cd\\u673a \\u8d77\\u4f5c\\u7528 \\u6c14\\u4e0d\\u516c \\u6c14\\u4e0d\\u8fc7 \\u6c14\\u51b2\\u51b2 \\u6c14\\u9f13\\u9f13 \\u6c14\\u5019\\u5b66 \\u6c14\\u547c\\u547c \\u6c14\\u5934\\u4e0a \\u6c14\\u8c61\\u7ad9 \\u6c14\\u6c79\\u6c79 \\u6c14\\u5401\\u5401 \\u6c14\\u538b\\u8868 \\u6c7d\\u5316\\u70ed \\u6c7d\\u8f6e\\u673a \\u6c7d\\u6cb9\\u673a \\u6ce3\\u9b3c\\u795e \\u5343\\u4f5b\\u5c71 \\u5343\\u91cc\\u5149 \\u5343\\u91cc\\u9a79 \\u5343\\u91cc\\u9a6c \\u5343\\u65e5\\u7ea2 \\u7275\\u5f15\\u529b \\u94c5\\u7b14\\u753b \\u524d\\u534a\\u5929 \\u524d\\u534a\\u591c \\u94b1\\u4e32\\u5b50 \\u94b1\\u5858\\u6c5f \\u4e7e\\u5b89\\u53bf \\u6f5c\\u4f0f\\u671f \\u6f5c\\u6c34\\u8863 \\u6f5c\\u53f0\\u8bcd \\u6f5c\\u610f\\u8bc6 \\u6d45\\u6d6e\\u96d5 \\u5f3a\\u6709\\u529b \\u5899\\u5934\\u8349 \\u6572\\u8fb9\\u9f13 \\u6865\\u5934\\u5821 \\u77a7\\u4e0d\\u8d77 \\u5de7\\u514b\\u529b \\u5207\\u5206\\u97f3 \\u5207\\u5272\\u673a \\u5207\\u7a7a\\u95f4 \\u5207\\u7247\\u673a \\u5207\\u5e73\\u9762 \\u5207\\u8089\\u5200 \\u5207\\u5411\\u529b \\u5207\\u524a\\u89d2 \\u5207\\u524a\\u529b \\u5207\\u524a\\u9762 \\u8304\\u8423\\u4e61 \\u602f\\u751f\\u751f \\u4eb2\\u9aa8\\u8089 \\u4eb2\\u548c\\u529b \\u52e4\\u52a1\\u5175 \\u9752\\u57ce\\u5c71 \\u9752\\u6625\\u671f \\u9752\\u6d77\\u6e56 \\u9752\\u9709\\u7d20 \\u9752\\u6728\\u9999 \\u9752\\u94dc\\u5668 \\u9752\\u7f8a\\u5bab \\u8f7b\\u91d1\\u5c5e \\u8f7b\\u98d8\\u98d8 \\u8f7b\\u6b66\\u5668 \\u8f7b\\u5143\\u7d20 \\u6c22\\u539f\\u5b50 \\u503e\\u5411\\u6027 \\u503e\\u659c\\u5ea6 \\u6e05\\u541b\\u4fa7 \\u6e05\\u4e00\\u8272 \\u60c5\\u62a5\\u5b66 \\u6674\\u96e8\\u8868 \\u9a71\\u9010\\u673a \\u5c48\\u5149\\u5ea6 \\u8d8b\\u5149\\u6027 \\u86d0\\u86d0\\u513f \\u66f2\\u7ebf\\u7f8e \\u66f2\\u7ebf\\u56fe \\u6743\\u5a01\\u6027 \\u5168\\u8fd0\\u4f1a \\u88d9\\u5e26\\u98ce \\u7fa4\\u82f1\\u4f1a \\u71c3\\u6599\\u6cb9 \\u71c3\\u70e7\\u5f39 \\u6861\\u52a8\\u8109 \\u7ed5\\u5f2f\\u513f \\u7ed5\\u5f2f\\u5b50 \\u7ed5\\u8fdc\\u513f \\u60f9\\u4e71\\u5b50 \\u60f9\\u662f\\u975e \\u70ed\\u5e26\\u9c7c \\u70ed\\u7535\\u5382 \\u70ed\\u7535\\u7ad9 \\u70ed\\u8f90\\u5c04 \\u70ed\\u52a0\\u5de5 \\u70ed\\u8fa3\\u8fa3 \\u70ed\\u529b\\u5b66 \\u70ed\\u8eab\\u8d5b \\u70ed\\u5fc3\\u80a0 \\u4eba\\u8d29\\u5b50 \\u4eba\\u5de5\\u6e56 \\u4eba\\u516c\\u91cc \\u4eba\\u6765\\u75af \\u4eba\\u7c7b\\u5b66 \\u4eba\\u4e16\\u95f4 \\u4eba\\u5934\\u7a0e \\u4eba\\u7269\\u753b \\u4eba\\u5fc3\\u679c \\u4eba\\u6027\\u8bba \\u4eba\\u5f71\\u513f \\u4eba\\u7f18\\u513f \\u4eba\\u9020\\u9769 \\u4eba\\u9020\\u6bdb \\u65e5\\u672c\\u4eba \\u65e5\\u7a0b\\u8868 \\u65e5\\u5149\\u6d74 \\u65e5\\u73af\\u98df \\u65e5\\u8bb0\\u672c \\u65e5\\u5386\\u8868 \\u65e5\\u5168\\u98df \\u65e5\\u7528\\u54c1 \\u65e5\\u6708\\u5c71 \\u5bb9\\u7535\\u5668 \\u6eb6\\u89e3\\u5ea6 \\u8089\\u4e2d\\u523a \\u4e73\\u5236\\u54c1 \\u8f6f\\u5305\\u88c5 \\u8f6f\\u9aa8\\u9c7c \\u8f6f\\u79d1\\u5b66 \\u8f6f\\u7ef5\\u7ef5 \\u8f6f\\u584c\\u584c \\u6da6\\u6ed1\\u6cb9 \\u6d12\\u72d7\\u8840 \\u6492\\u6b22\\u513f \\u6492\\u4e2b\\u5b50 \\u816e\\u5e2e\\u5b50 \\u4e09\\u767d\\u8349 \\u4e09\\u73ed\\u5012 \\u4e09\\u4e0d\\u7ba1 \\u4e09\\u5408\\u4f1a \\u4e09\\u5408\\u571f \\u4e09\\u6781\\u7ba1 \\u4e09\\u5bb6\\u6751 \\u4e09\\u89d2\\u94c1 \\u4e09\\u89d2\\u5b66 \\u4e09\\u7ed3\\u5408 \\u4e09\\u8054\\u5355 \\u4e09\\u660e\\u5e02 \\u4e09\\u4e03\\u5f00 \\u4e09\\u9752\\u56e2 \\u4e09\\u5143\\u91cc \\u4e09\\u539f\\u8272 \\u4e09\\u5b57\\u7ecf \\u6563\\u70ed\\u5668 \\u6851\\u5bc4\\u751f \\u4e27\\u846c\\u8d39 \\u7f2b\\u4e1d\\u5382 \\u5ac2\\u592b\\u4eba \\u6740\\u4eba\\u72af \\u6740\\u4f24\\u529b \\u6c99\\u4e01\\u9c7c \\u970e\\u65f6\\u95f4 \\u5c71\\u6d77\\u5173 \\u5c71\\u6d77\\u7ecf \\u5c71\\u6838\\u6843 \\u5c71\\u91cc\\u7ea2 \\u5c71\\u6c34\\u753b \\u5c71\\u6850\\u5b50 \\u6c55\\u5934\\u5e02 \\u6247\\u9762\\u513f \\u5546\\u90fd\\u53bf \\u4e0a\\u534a\\u8eab \\u4e0a\\u534a\\u5929 \\u4e0a\\u534a\\u591c \\u4e0a\\u7b49\\u5175 \\u4e0a\\u8f68\\u9053 \\u4e0a\\u8fdb\\u5fc3 \\u4e0a\\u5e74\\u7eaa \\u4e0a\\u5c81\\u6570 \\u4e0a\\u4e0b\\u6c34 \\u4e0a\\u4e0b\\u6587 \\u4e0a\\u4e2d\\u519c \\u634e\\u9a6c\\u5b50 \\u70e7\\u9ad8\\u9999 \\u5c11\\u767d\\u5934 \\u5c11\\u4e1c\\u5bb6 \\u5c11\\u800c\\u7cbe \\u5c11\\u5148\\u961f \\u90b5\\u9633\\u5e02 \\u7ecd\\u5174\\u5e02 \\u820c\\u6839\\u97f3 \\u820c\\u5c16\\u97f3 \\u820d\\u5229\\u5b50 \\u793e\\u4f1a\\u5b66 \\u6444\\u6c0f\\u5ea6 \\u6444\\u50cf\\u7ba1 \\u6444\\u50cf\\u673a \\u6444\\u5f71\\u68da \\u6444\\u5f71\\u5e08 \\u6444\\u653f\\u738b \\u6df1\\u547c\\u5438 \\u6df1\\u5733\\u5e02 \\u4ec0\\u5239\\u6d77 \\u4ec0\\u90a1\\u5e02 \\u4ec0\\u4ef6\\u513f \\u795e\\u9053\\u7891 \\u795e\\u7ecf\\u75db \\u795e\\u7ecf\\u5143 \\u795e\\u67aa\\u624b \\u795e\\u4ed9\\u4f1a \\u5ba1\\u5224\\u5b98 \\u5ba1\\u5224\\u5ead \\u80be\\u5c0f\\u7ba1 \\u751a\\u9ad8\\u9891 \\u5347\\u964d\\u673a \\u751f\\u4ea7\\u529b \\u751f\\u6d3b\\u8d39 \\u751f\\u6d3b\\u529b \\u751f\\u7406\\u5b66 \\u751f\\u529b\\u519b \\u751f\\u547d\\u529b \\u751f\\u77f3\\u818f \\u751f\\u6001\\u5b66 \\u751f\\u7269\\u5708 \\u751f\\u7269\\u5b66 \\u751f\\u610f\\u7ecf \\u751f\\u610f\\u4eba \\u58f0\\u97f5\\u5b66 \\u7272\\u53e3\\u68da \\u7701\\u8f96\\u5e02 \\u5723\\u8bde\\u6811 \\u65bd\\u7538\\u53bf \\u6e7f\\u5ea6\\u8ba1 \\u5341\\u6ef4\\u6c34 \\u5341\\u4e09\\u7ecf \\u5341\\u5830\\u5e02 \\u5341\\u5b57\\u519b \\u77f3\\u9f13\\u6587 \\u77f3\\u6cb3\\u5b50 \\u77f3\\u7070\\u6c34 \\u77f3\\u51b3\\u660e \\u77f3\\u8111\\u6cb9 \\u77f3\\u72ee\\u5e02 \\u77f3\\u5c24\\u98ce \\u77f3\\u949f\\u4e73 \\u65f6\\u4e0d\\u65f6 \\u65f6\\u95f4\\u6027 \\u8bc6\\u5b57\\u73ed \\u5b9e\\u6253\\u5b9e \\u5b9e\\u4e60\\u751f \\u5b9e\\u9a8c\\u5ba4 \\u5b9e\\u4e1a\\u5bb6 \\u4f7f\\u7eca\\u513f \\u4f7f\\u4e0d\\u5f97 \\u4f7f\\u541b\\u5b50 \\u4f7f\\u773c\\u8272 \\u59cb\\u5174\\u53bf \\u59cb\\u7956\\u9e1f \\u58eb\\u654f\\u571f \\u4e16\\u7eaa\\u672b \\u4e16\\u754c\\u65f6 \\u4e16\\u754c\\u8bed \\u5e02\\u4e2d\\u5fc3 \\u4e8b\\u5b9e\\u4e0a \\u4e8b\\u4e1a\\u5fc3 \\u8bd5\\u7535\\u7b14 \\u89c6\\u529b\\u8868 \\u662f\\u5473\\u513f \\u6536\\u85cf\\u5bb6 \\u6536\\u5f55\\u673a \\u6536\\u97f3\\u673a \\u624b\\u6284\\u672c \\u624b\\u5e95\\u4e0b \\u624b\\u8155\\u5b50 \\u624b\\u4e0b\\u4eba \\u624b\\u643a\\u624b \\u624b\\u827a\\u4eba \\u624b\\u638c\\u5fc3 \\u9996\\u65e5\\u5c01 \\u53d7\\u4e0d\\u4e86 \\u53d7\\u8bdd\\u5668 \\u53d7\\u8d3f\\u7f6a \\u4e66\\u9986\\u513f \\u4e66\\u5377\\u6c14 \\u4e66\\u9762\\u8bed \\u4e66\\u751f\\u6c14 \\u67a2\\u5bc6\\u9662 \\u53d4\\u7956\\u6bcd \\u6b8a\\u4e0d\\u77e5 \\u758f\\u52d2\\u56fd \\u758f\\u52d2\\u53bf \\u8f93\\u7cbe\\u7ba1 \\u8f93\\u5375\\u7ba1 \\u8f93\\u5c3f\\u7ba1 \\u8f93\\u6cb9\\u7ba1 \\u719f\\u77f3\\u818f \\u9f20\\u6807\\u5668 \\u6570\\u76ee\\u5b57 \\u800d\\u7334\\u513f \\u800d\\u82b1\\u8154 \\u800d\\u82b1\\u62db \\u800d\\u6ed1\\u5934 \\u800d\\u813e\\u6c14 \\u800d\\u8d2b\\u5634 \\u800d\\u624b\\u6bb5 \\u800d\\u6001\\u5ea6 \\u800d\\u5a01\\u98ce \\u6dae\\u7f8a\\u8089 \\u53cc\\u5bbe\\u8bed \\u53cc\\u5507\\u97f3 \\u53cc\\u5173\\u8bed \\u53cc\\u7c27\\u7ba1 \\u53cc\\u751f\\u5b50 \\u53cc\\u6c27\\u6c34 \\u53cc\\u6708\\u520a \\u53cc\\u804c\\u5de5 \\u53cc\\u5468\\u520a \\u53cc\\u5b50\\u5bab \\u53cc\\u5b50\\u53f6 \\u6c34\\u5f69\\u753b \\u6c34\\u7535\\u7ad9 \\u6c34\\u7c89\\u753b \\u6c34\\u679c\\u7cd6 \\u6c34\\u6d47\\u5730 \\u6c34\\u6676\\u5bab \\u6c34\\u7075\\u7075 \\u6c34\\u9f99\\u5e26 \\u6c34\\u9f99\\u5934 \\u6c34\\u7164\\u6c14 \\u6c34\\u871c\\u6843 \\u6c34\\u58a8\\u753b \\u6c34\\u5e73\\u9762 \\u6c34\\u4ed9\\u82b1 \\u6c34\\u84b8\\u6c14 \\u8bf4\\u4e0d\\u5f97 \\u8bf4\\u4e0d\\u5b9a \\u8bf4\\u4e0d\\u6765 \\u8bf4\\u4e0d\\u6e05 \\u8bf4\\u4e0d\\u4e0a \\u8bf4\\u660e\\u6587 \\u4e1d\\u7ec7\\u54c1 \\u79c1\\u751f\\u6d3b \\u79c1\\u751f\\u5b50 \\u79c1\\u4e0b\\u91cc \\u601d\\u60f3\\u5bb6 \\u601d\\u60f3\\u6027 \\u6b7b\\u5bf9\\u5934 \\u56db\\u4e0d\\u50cf \\u56db\\u65b9\\u6b65 \\u56db\\u5408\\u9662 \\u56db\\u73af\\u7d20 \\u56db\\u5b63\\u8c46 \\u56db\\u811a\\u86c7 \\u56db\\u541b\\u5b50 \\u56db\\u4e0b\\u91cc \\u56db\\u5b50\\u738b \\u677e\\u82b1\\u6c5f \\u677e\\u8282\\u6cb9 \\u677e\\u7d27\\u5e26 \\u677e\\u9999\\u6c34 \\u5b8b\\u4f53\\u5b57 \\u9001\\u98ce\\u673a \\u9001\\u8bdd\\u5668 \\u9001\\u4eba\\u60c5 \\u9001\\u4fe1\\u513f \\u998a\\u4e3b\\u610f \\u82cf\\u5408\\u9999 \\u9165\\u6cb9\\u82b1 \\u4fd7\\u4f53\\u5b57 \\u4fd7\\u6587\\u5b66 \\u8bc9\\u8bbc\\u6cd5 \\u901f\\u6210\\u73ed \\u9178\\u8fa3\\u6c64 \\u9178\\u6885\\u6c64 \\u849c\\u74e3\\u513f \\u7b97\\u76d8\\u73e0 \\u968f\\u98ce\\u5012 \\u788e\\u5634\\u5b50 \\u635f\\u76ca\\u8868 \\u6240\\u5728\\u5730 \\u53f0\\u5357\\u5e02 \\u53f0\\u6e7e\\u7701 \\u592a\\u767d\\u661f \\u592a\\u884c\\u5c71 \\u592a\\u6781\\u56fe \\u592a\\u5e73\\u9f13 \\u592a\\u5e73\\u95f4 \\u592a\\u5e73\\u519b \\u592a\\u5e73\\u95e8 \\u592a\\u5e73\\u6d0b \\u592a\\u4e0a\\u7687 \\u592a\\u9633\\u5386 \\u592a\\u9633\\u80fd \\u592a\\u9633\\u5e74 \\u592a\\u9633\\u65e5 \\u592a\\u9633\\u65f6 \\u592a\\u9633\\u7cfb \\u592a\\u9634\\u5386 \\u6cf0\\u5174\\u5e02 \\u8c08\\u4e0d\\u4e0a \\u6f6d\\u5b50\\u4e61 \\u5766\\u514b\\u5175 \\u78b3\\u5faa\\u73af \\u6843\\u82b1\\u8fd0 \\u8ba8\\u4eba\\u5acc \\u8ba8\\u751f\\u6d3b \\u5957\\u4e2d\\u4eba \\u4f53\\u6e29\\u8868 \\u4f53\\u6e29\\u8ba1 \\u5243\\u5149\\u5934 \\u66ff\\u6b7b\\u9b3c \\u66ff\\u7f6a\\u7f8a \\u5929\\u5b89\\u95e8 \\u5929\\u624d\\u8bba \\u5929\\u5e95\\u4e0b \\u5929\\u5730\\u4f1a \\u5929\\u6d25\\u5e02 \\u5929\\u84dd\\u8272 \\u5929\\u72fc\\u661f \\u5929\\u8001\\u513f \\u5929\\u7406\\u6559 \\u5929\\u95e8\\u51ac \\u5929\\u76ee\\u5c71 \\u5929\\u6c14\\u56fe \\u5929\\u7136\\u6c14 \\u5929\\u738b\\u661f \\u5929\\u6587\\u5b66 \\u5929\\u4ed9\\u5b50 \\u5929\\u957f\\u5e02 \\u5929\\u77e5\\u9053 \\u5929\\u4e3b\\u6559 \\u7530\\u5f84\\u8d5b \\u8c03\\u8282\\u5668 \\u8c03\\u8282\\u7a0e \\u8c03\\u89e3\\u4eba \\u8c03\\u76ae\\u9b3c \\u8c03\\u9891\\u5668 \\u8c03\\u901f\\u5668 \\u8c03\\u5473\\u54c1 \\u8c03\\u538b\\u5668 \\u8c03\\u5236\\u6ce2 \\u8c03\\u5236\\u5668 \\u94c1\\u8695\\u8c46 \\u94c1\\u9053\\u5175 \\u94c1\\u77fe\\u571f \\u94c1\\u89c2\\u97f3 \\u542c\\u8bdd\\u513f \\u542c\\u795e\\u7ecf \\u542c\\u8bca\\u5668 \\u901a\\u98ce\\u673a \\u901a\\u4fe1\\u5175 \\u901a\\u8baf\\u793e \\u540c\\u6848\\u72af \\u540c\\u8def\\u4eba \\u540c\\u76df\\u56fd \\u540c\\u76df\\u519b \\u540c\\u60c5\\u5fc3 \\u540c\\u4f4d\\u7d20 \\u540c\\u4e61\\u4f1a \\u540c\\u5fc3\\u5706 \\u540c\\u4e00\\u6027 \\u540c\\u4e49\\u8bcd \\u540c\\u97f3\\u8bcd \\u94dc\\u5ddd\\u5e02 \\u7ae5\\u5b50\\u519b \\u7edf\\u8ba1\\u5b66 \\u6345\\u5a04\\u5b50 \\u5934\\u76d6\\u9aa8 \\u900f\\u4eae\\u513f \\u900f\\u660e\\u5ea6 \\u900f\\u5e73\\u673a \\u900f\\u89c6\\u56fe \\u7a81\\u51fb\\u961f \\u56fe\\u4e66\\u5ba4 \\u5c60\\u5bb0\\u7a0e \\u571f\\u5730\\u7a0e \\u571f\\u9709\\u7d20 \\u571f\\u58e4\\u6c34 \\u571f\\u58e4\\u5b66 \\u571f\\u77f3\\u65b9 \\u571f\\u7279\\u4ea7 \\u571f\\u8165\\u6c14 \\u571f\\u8457\\u4eba \\u571f\\u4e13\\u5bb6 \\u56e2\\u4f53\\u64cd \\u817f\\u8155\\u5b50 \\u6258\\u95e8\\u5b50 \\u6258\\u4eba\\u60c5 \\u62d6\\u62c9\\u673a \\u62d3\\u6251\\u5b66 \\u6316\\u5899\\u811a \\u74e6\\u695e\\u7eb8 \\u74e6\\u695e\\u5b50 \\u5916\\u56fd\\u8bed \\u5916\\u63a5\\u5706 \\u5916\\u6765\\u8bcd \\u5916\\u6765\\u8bed \\u5916\\u7525\\u5973 \\u5916\\u5b59\\u5973 \\u5916\\u661f\\u4eba \\u5916\\u7956\\u6bcd \\u73a9\\u513f\\u547d \\u73a9\\u513f\\u5b8c \\u73a9\\u82b1\\u62db \\u73a9\\u610f\\u513f \\u4e07\\u91d1\\u6cb9 \\u4e07\\u5e74\\u5386 \\u4e07\\u5e74\\u9752 \\u4e07\\u4e8b\\u901a \\u5fd8\\u5e74\\u4ea4 \\u5fd8\\u5f62\\u4ea4 \\u671b\\u90fd\\u53bf \\u5fae\\u7535\\u8111 \\u5fae\\u7535\\u5b50 \\u5fae\\u7c92\\u5b50 \\u5fae\\u97f3\\u5668 \\u56f4\\u5634\\u513f \\u552f\\u7269\\u8bba \\u4f2a\\u541b\\u5b50 \\u59d4\\u5458\\u4f1a \\u536b\\u751f\\u95f4 \\u536b\\u751f\\u8863 \\u536b\\u751f\\u7eb8 \\u672a\\u6765\\u5b66 \\u672a\\u4ea1\\u4eba \\u672a\\u77e5\\u6570 \\u5473\\u4e4b\\u7d20 \\u80c3\\u6269\\u5f20 \\u80c3\\u4e0b\\u5782 \\u6e29\\u5ea6\\u8868 \\u6e29\\u5ea6\\u8ba1 \\u6587\\u660c\\u9c7c \\u6587\\u6284\\u516c \\u6587\\u5de5\\u56e2 \\u6587\\u5316\\u5bab \\u6587\\u5316\\u4eba \\u6587\\u5b66\\u5bb6 \\u6587\\u8a00\\u6587 \\u6587\\u827a\\u5b66 \\u6587\\u5b57\\u5b66 \\u6da1\\u9633\\u53bf \\u7a9d\\u7a9d\\u5934 \\u4e4c\\u6c89\\u6c89 \\u4e4c\\u68a2\\u86c7 \\u4e4c\\u4ec0\\u53bf \\u4e4c\\u6cb9\\u6cb9 \\u5c4b\\u4e0a\\u4e4c \\u65e0\\u82b1\\u679c \\u65e0\\u60a3\\u5b50 \\u65e0\\u4ef7\\u5b9d \\u65e0\\u7406\\u6570 \\u65e0\\u540d\\u5b50 \\u65e0\\u5948\\u4f55 \\u65e0\\u7a77\\u5927 \\u65e0\\u7a77\\u5c0f \\u65e0\\u795e\\u8bba \\u65e0\\u58f0\\u7247 \\u65e0\\u971c\\u671f \\u65e0\\u4e3a\\u53bf \\u65e0\\u9650\\u5927 \\u65e0\\u9650\\u5c0f \\u65e0\\u7ebf\\u7535 \\u65e0\\u5f62\\u4e2d \\u65e0\\u70df\\u7164 \\u65e0\\u610f\\u8bc6 \\u65e0\\u8d44\\u683c \\u4e94\\u500d\\u5b50 \\u4e94\\u6597\\u7c73 \\u4e94\\u82b1\\u8089 \\u4e94\\u53f0\\u5c71 \\u4e94\\u5473\\u5b50 \\u4e94\\u6307\\u5c71 \\u4e94\\u5b50\\u68cb \\u6b66\\u660c\\u9c7c \\u6b66\\u5f53\\u5c71 \\u6b66\\u5de5\\u961f \\u6b66\\u58eb\\u9053 \\u96fe\\u6c89\\u6c89 \\u897f\\u5317\\u98ce \\u897f\\u95e8\\u5b50 \\u897f\\u738b\\u6bcd \\u897f\\u897f\\u91cc \\u897f\\u6d0b\\u753b \\u5438\\u5c18\\u5668 \\u5438\\u58a8\\u7eb8 \\u5438\\u5f15\\u529b \\u5e0c\\u814a\\u6587 \\u819d\\u76d6\\u9aa8 \\u87cb\\u87c0\\u8349 \\u4e60\\u60ef\\u6cd5 \\u5ab3\\u5987\\u513f \\u6d17\\u7164\\u5382 \\u6d17\\u624b\\u95f4 \\u6d17\\u8863\\u673a \\u559c\\u51b2\\u51b2 \\u559c\\u6d0b\\u6d0b \\u620f\\u9986\\u5b50 \\u620f\\u5267\\u6027 \\u620f\\u56ed\\u5b50 \\u7ec6\\u4f22\\u5b50 \\u4e0b\\u534a\\u5929 \\u4e0b\\u534a\\u591c \\u4e0b\\u4e0d\\u6765 \\u4e0b\\u811a\\u8d27 \\u4e0b\\u9a6c\\u5a01 \\u4e0b\\u6c34\\u9053 \\u4e0b\\u610f\\u8bc6 \\u4e0b\\u4e2d\\u519c \\u590f\\u5019\\u9e1f \\u4ed9\\u9e64\\u8349 \\u4ed9\\u5ba2\\u6765 \\u4ed9\\u4eba\\u97ad \\u5148\\u9a8c\\u8bba \\u7ea4\\u7ef4\\u7d20 \\u5f26\\u5207\\u89d2 \\u54b8\\u6c34\\u6e56 \\u5acc\\u7591\\u72af \\u663e\\u50cf\\u7ba1 \\u53bf\\u77e5\\u4e8b \\u73b0\\u5927\\u6d0b \\u73b0\\u4ee3\\u4eba \\u7ebf\\u576f\\u5b50 \\u9985\\u513f\\u997c \\u4e61\\u4e0b\\u4eba \\u76f8\\u5bf9\\u8bba \\u76f8\\u53cd\\u6570 \\u76f8\\u7ed3\\u5408 \\u76f8\\u4f3c\\u6027 \\u9999\\u9644\\u5b50 \\u9999\\u8549\\u6c34 \\u9999\\u55b7\\u55b7 \\u9999\\u7350\\u5b50 \\u54cd\\u5f53\\u5f53 \\u54cd\\u5c3e\\u86c7 \\u60f3\\u4e0d\\u5f00 \\u60f3\\u8c61\\u529b \\u5411\\u5fc3\\u529b \\u6a61\\u80f6\\u6811 \\u6a61\\u76ae\\u818f \\u6a61\\u76ae\\u5708 \\u6a61\\u76ae\\u6811 \\u6d88\\u8d39\\u54c1 \\u6d88\\u5316\\u9053 \\u6d88\\u708e\\u7247 \\u6d88\\u97f3\\u5668 \\u5c0f\\u767e\\u8d27 \\u5c0f\\u8fab\\u513f \\u5c0f\\u6284\\u513f \\u5c0f\\u5403\\u90e8 \\u5c0f\\u806a\\u660e \\u5c0f\\u5200\\u4f1a \\u5c0f\\u52a8\\u4f5c \\u5c0f\\u513f\\u79d1 \\u5c0f\\u800c\\u5168 \\u5c0f\\u5206\\u961f \\u5c0f\\u59d1\\u5b50 \\u5c0f\\u5b69\\u513f \\u5c0f\\u5408\\u5531 \\u5c0f\\u80e1\\u5b50 \\u5c0f\\u9ec4\\u9c7c \\u5c0f\\u8334\\u9999 \\u5c0f\\u96c6\\u56e2 \\u5c0f\\u5bb6\\u5ead \\u5c0f\\u4e24\\u53e3 \\u5c0f\\u5356\\u90e8 \\u5c0f\\u7c73\\u9762 \\u5c0f\\u5e74\\u8f7b \\u5c0f\\u5e74\\u591c \\u5c0f\\u5a18\\u5b50 \\u5c0f\\u54c1\\u6587 \\u5c0f\\u6c14\\u9b3c \\u5c0f\\u524d\\u63d0 \\u5c0f\\u9752\\u5e74 \\u5c0f\\u5546\\u54c1 \\u5c0f\\u751f\\u4ea7 \\u5c0f\\u5e02\\u6c11 \\u5c0f\\u53d4\\u5b50 \\u5c0f\\u8bf4\\u5bb6 \\u5c0f\\u5929\\u5730 \\u5c0f\\u4e94\\u91d1 \\u5c0f\\u5148\\u751f \\u5c0f\\u6027\\u513f \\u5c0f\\u5b66\\u751f \\u5c0f\\u9633\\u6625 \\u5c0f\\u4e1a\\u4e3b \\u5c0f\\u59e8\\u5b50 \\u7b11\\u9762\\u864e \\u7b11\\u541f\\u541f \\u6b47\\u540e\\u8bed \\u534f\\u7ea6\\u56fd \\u90aa\\u95e8\\u513f \\u8c10\\u632f\\u5b50 \\u5199\\u5b57\\u95f4 \\u5fc3\\u7535\\u56fe \\u5fc3\\u7ede\\u75db \\u5fc3\\u7406\\u5b66 \\u5fc3\\u8fde\\u5fc3 \\u5fc3\\u4e0a\\u4eba \\u5fc3\\u5934\\u8089 \\u5fc3\\u7a9d\\u513f \\u5fc3\\u773c\\u513f \\u65b0\\u5b89\\u6c5f \\u65b0\\u5e72\\u53bf \\u65b0\\u7eaa\\u5143 \\u65b0\\u90ce\\u5b98 \\u65b0\\u540d\\u8bcd \\u65b0\\u5a18\\u5b50 \\u65b0\\u751f\\u513f \\u65b0\\u56db\\u519b \\u65b0\\u5929\\u5730 \\u65b0\\u6587\\u5b66 \\u65b0\\u95fb\\u793e \\u65b0\\u95fb\\u7eb8 \\u65b0\\u5174\\u53bf \\u4fe1\\u5f97\\u8fc7 \\u4fe1\\u53f7\\u5f39 \\u4fe1\\u5929\\u6e38 \\u4fe1\\u606f\\u8bba \\u4fe1\\u7528\\u793e \\u661f\\u671f\\u65e5 \\u661f\\u5b50\\u53bf \\u7329\\u7ea2\\u70ed \\u7329\\u7329\\u8349 \\u5211\\u4e8b\\u72af \\u5f62\\u5bb9\\u8bcd \\u5174\\u5b89\\u53bf \\u5174\\u57ce\\u5e02 \\u5174\\u51b2\\u51b2 \\u5174\\u594b\\u6027 \\u5174\\u56fd\\u53bf \\u5174\\u6d77\\u53bf \\u5174\\u548c\\u53bf \\u5174\\u5316\\u5e02 \\u5174\\u51ef\\u6e56 \\u5174\\u9686\\u53bf \\u5174\\u5b81\\u5e02 \\u5174\\u5e73\\u5e02 \\u5174\\u4ec1\\u53bf \\u5174\\u5c71\\u53bf \\u5174\\u6587\\u53bf \\u5174\\u4e1a\\u53bf \\u5174\\u4e49\\u5e02 \\u5174\\u4e2d\\u4f1a \\u674f\\u82b1\\u6751 \\u5e78\\u8fd0\\u513f \\u6027\\u6fc0\\u7d20 \\u96c4\\u914d\\u5b50 \\u865a\\u7c92\\u5b50 \\u865a\\u5957\\u5b50 \\u53d9\\u4e8b\\u6587 \\u7eed\\u968f\\u5b50 \\u5ba3\\u4f20\\u5f39 \\u5ba3\\u4f20\\u961f \\u5ba3\\u4f20\\u753b \\u5ba3\\u4f20\\u54c1 \\u7384\\u6b66\\u6e56 \\u9009\\u62d4\\u8d5b \\u9009\\u62e9\\u6027 \\u5b66\\u751f\\u88c5 \\u5b66\\u5f92\\u5de5 \\u5bfb\\u7538\\u53bf \\u5bfb\\u77ed\\u89c1 \\u5bfb\\u5f00\\u5fc3 \\u5faa\\u73af\\u8bba \\u6b89\\u846c\\u54c1 \\u538b\\u8def\\u673a \\u538b\\u7f29\\u673a \\u9e2d\\u86cb\\u9752 \\u9e2d\\u86cb\\u5706 \\u9e2d\\u8dd6\\u8349 \\u9e2d\\u5634\\u7b14 \\u54d1\\u5df4\\u4e8f \\u4e9a\\u975e\\u62c9 \\u4e9a\\u70ed\\u5e26 \\u4e9a\\u539f\\u5b50 \\u54bd\\u9f13\\u7ba1 \\u70df\\u5e55\\u5f39 \\u5ef6\\u5c55\\u6027 \\u5ef6\\u957f\\u5668 \\u5ef6\\u957f\\u53bf \\u6cbf\\u6761\\u513f \\u76d0\\u80a4\\u6728 \\u76d0\\u78b1\\u5730 \\u76d0\\u78b1\\u571f \\u76d0\\u6c7d\\u6c34 \\u76d0\\u5768\\u5b50 \\u773c\\u4e2d\\u9489 \\u6f14\\u64ad\\u5ba4 \\u6f14\\u7ece\\u6cd5 \\u8273\\u9633\\u5929 \\u9a8c\\u7535\\u5668 \\u96c1\\u8361\\u5c71 \\u96c1\\u6765\\u7ea2 \\u96c1\\u95e8\\u5173 \\u626c\\u58f0\\u5668 \\u626c\\u6c34\\u7ad9 \\u626c\\u5b50\\u6c5f \\u7f8a\\u89d2\\u98ce \\u7f8a\\u76ae\\u7eb8 \\u7f8a\\u75eb\\u98ce \\u9633\\u6625\\u9762 \\u9633\\u7535\\u5b50 \\u9633\\u5173\\u9053 \\u9633\\u79bb\\u5b50 \\u9633\\u660e\\u5c71 \\u6d0b\\u5730\\u9ec4 \\u6d0b\\u67aa\\u961f \\u517b\\u8001\\u91d1 \\u517b\\u8001\\u9662 \\u6c27\\u5316\\u94dc \\u8170\\u677f\\u513f \\u9080\\u8bf7\\u8d5b \\u6447\\u94b1\\u6811 \\u54ac\\u820c\\u513f \\u836f\\u5f15\\u5b50 \\u8981\\u4e0d\\u5f97 \\u53f6\\u7ea2\\u7d20 \\u53f6\\u9ec4\\u7d20 \\u53f6\\u7eff\\u7d20 \\u66f3\\u5149\\u5f39 \\u66f3\\u5f15\\u673a \\u591c\\u5927\\u5b66 \\u591c\\u5149\\u676f \\u591c\\u5149\\u8868 \\u591c\\u6765\\u9999 \\u591c\\u732b\\u5b50 \\u591c\\u660e\\u73e0 \\u591c\\u751f\\u6d3b \\u591c\\u6e38\\u795e \\u591c\\u603b\\u4f1a \\u6db2\\u538b\\u6cb9 \\u4e00\\u628a\\u624b \\u4e00\\u628a\\u6293 \\u4e00\\u534a\\u5929 \\u4e00\\u8fb9\\u5012 \\u4e00\\u5239\\u90a3 \\u4e00\\u573a\\u7a7a \\u4e00\\u7a0b\\u5b50 \\u4e00\\u5927\\u534a \\u4e00\\u5927\\u65e9 \\u4e00\\u5200\\u5207 \\u4e00\\u800c\\u5149 \\u4e00\\u65b9\\u9762 \\u4e00\\u98ce\\u5439 \\u4e00\\u5ffd\\u513f \\u4e00\\u5bb6\\u4eba \\u4e00\\u5bb6\\u5b50 \\u4e00\\u53e3\\u6c14 \\u4e00\\u89c8\\u8868 \\u4e00\\u63fd\\u5b50 \\u4e00\\u9762\\u5012 \\u4e00\\u76d8\\u68cb \\u4e00\\u54c1\\u7ea2 \\u4e00\\u6e05\\u65e9 \\u4e00\\u970e\\u90a3 \\u4e00\\u95ea\\u5ff5 \\u4e00\\u795e\\u6559 \\u4e00\\u65f6\\u95f4 \\u4e00\\u6c34\\u513f \\u4e00\\u987a\\u513f \\u4e00\\u6761\\u9f99 \\u4e00\\u6761\\u5fc3 \\u4e00\\u5934\\u70ed \\u4e00\\u7cfb\\u5217 \\u4e00\\u4e0b\\u5b50 \\u4e00\\u5143\\u8bba \\u4e00\\u9635\\u98ce \\u4e00\\u679d\\u9999 \\u4e00\\u5b57\\u5e08 \\u4f0a\\u7281\\u6cb3 \\u8863\\u5e3d\\u95f4 \\u4eea\\u4ed7\\u961f \\u5b9c\\u90fd\\u5e02 \\u5b9c\\u5174\\u5e02 \\u59e8\\u592a\\u592a \\u80f0\\u5c9b\\u7d20 \\u9057\\u4ea7\\u7a0e \\u9057\\u4f20\\u5b66 \\u9057\\u8179\\u5b50 \\u7591\\u95ee\\u53e5 \\u7591\\u5fc3\\u75c5 \\u5df2\\u77e5\\u6570 \\u4e49\\u548c\\u56e2 \\u4e49\\u52c7\\u519b \\u827a\\u672f\\u5bb6 \\u827a\\u672f\\u54c1 \\u827a\\u672f\\u6027 \\u8bae\\u8bba\\u6587 \\u5f02\\u4f53\\u5b57 \\u8bd1\\u610f\\u98ce \\u8bd1\\u5236\\u7247 \\u76ca\\u6bcd\\u8349 \\u610f\\u4e2d\\u4eba \\u6ea2\\u6d2a\\u9053 \\u9634\\u6697\\u9762 \\u9634\\u7535\\u5b50 \\u9634\\u79bb\\u5b50 \\u9634\\u9633\\u5bb6 \\u9634\\u9633\\u5386 \\u9634\\u9633\\u751f \\u9634\\u9633\\u6c34 \\u97f3\\u97f5\\u5b66 \\u94f6\\u884c\\u5bb6 \\u94f6\\u884c\\u5b66 \\u996e\\u7528\\u6c34 \\u9690\\u541b\\u5b50 \\u763e\\u541b\\u5b50 \\u5370\\u5ea6\\u6559 \\u5370\\u5ea6\\u6d0b \\u5370\\u82b1\\u7a0e \\u5370\\u5237\\u54c1 \\u9e70\\u94a9\\u9f3b \\u9e70\\u6f6d\\u5e02 \\u8fce\\u6625\\u82b1 \\u8367\\u5149\\u5c4f \\u5f71\\u5267\\u9662 \\u6620\\u5c71\\u7ea2 \\u6c38\\u5b9a\\u6cb3 \\u6c38\\u52a8\\u673a \\u6c38\\u5174\\u53bf \\u4f18\\u751f\\u5b66 \\u4f18\\u9009\\u6cd5 \\u4f18\\u8d8a\\u6027 \\u7531\\u4e0d\\u5f97 \\u90ae\\u7535\\u5c40 \\u90ae\\u653f\\u5c40 \\u72b9\\u592a\\u6559 \\u72b9\\u592a\\u4eba \\u6cb9\\u5370\\u673a \\u53cb\\u8c0a\\u8d5b \\u6709\\u5149\\u7eb8 \\u6709\\u4f1a\\u5b50 \\u6709\\u7406\\u6570 \\u6709\\u795e\\u8bba \\u6709\\u6548\\u671f \\u6709\\u5fc3\\u529b \\u6709\\u5fc3\\u4eba \\u6709\\u610f\\u8bc6 \\u8fc2\\u592b\\u5b50 \\u4e8e\\u90fd\\u53bf \\u4f59\\u7518\\u5b50 \\u4f59\\u5e72\\u53bf \\u9c7c\\u809d\\u6cb9 \\u9c7c\\u6c34\\u60c5 \\u9c7c\\u8165\\u8349 \\u9c7c\\u79e7\\u5b50 \\u865e\\u7f8e\\u4eba \\u96e8\\u6c34\\u7ba1 \\u8bed\\u6cd5\\u5b66 \\u8bed\\u6c14\\u8bcd \\u8bed\\u4f53\\u6587 \\u8bed\\u8a00\\u5b66 \\u8bed\\u4e49\\u5b66 \\u8bed\\u97f3\\u5b66 \\u8bed\\u6e90\\u5b66 \\u8bed\\u52a9\\u8bcd \\u7389\\u5170\\u7247 \\u7389\\u95e8\\u5173 \\u7389\\u7c73\\u9762 \\u90c1\\u91d1\\u9999 \\u9884\\u5907\\u961f \\u9884\\u5907\\u5f79 \\u9884\\u4ea7\\u671f \\u9884\\u4ed8\\u6b3e \\u9884\\u9009\\u8d5b \\u51a4\\u5927\\u5934 \\u5143\\u4e66\\u7eb8 \\u5143\\u957f\\u4e61 \\u8881\\u5927\\u5934 \\u539f\\u52a8\\u529b \\u539f\\u7ebf\\u5708 \\u539f\\u5b50\\u7b14 \\u539f\\u5b50\\u5f39 \\u539f\\u5b50\\u6838 \\u539f\\u5b50\\u8bba \\u539f\\u5b50\\u80fd \\u539f\\u5b50\\u65f6 \\u539f\\u5b50\\u675f \\u539f\\u5b50\\u56e2 \\u5706\\u73e0\\u7b14 \\u5706\\u684c\\u9762 \\u6028\\u4e0d\\u5f97 \\u6708\\u6d1e\\u95e8 \\u6708\\u6842\\u6811 \\u6708\\u9ed1\\u5929 \\u6708\\u7ecf\\u5e26 \\u6708\\u4eae\\u95e8 \\u6708\\u5168\\u98df \\u6708\\u6708\\u7ea2 \\u4e91\\u6d6e\\u5e02 \\u8fd0\\u7b79\\u5b66 \\u8fd0\\u52a8\\u4f1a \\u8fd0\\u52a8\\u5b66 \\u8fd0\\u8f93\\u673a \\u8fd0\\u7b97\\u5668 \\u6742\\u62cc\\u513f \\u6742\\u724c\\u519b \\u518d\\u751f\\u4ea7 \\u5728\\u91ce\\u515a \\u65e9\\u65e9\\u513f \\u9020\\u8239\\u5382 \\u9020\\u7269\\u4e3b \\u8d23\\u4efb\\u4eba \\u8d23\\u4efb\\u5fc3 \\u589e\\u503c\\u7a0e \\u8f67\\u82b1\\u673a \\u69a8\\u6cb9\\u673a \\u503a\\u6743\\u4eba \\u503a\\u52a1\\u4eba \\u5c55\\u89c8\\u4f1a \\u5c55\\u89c8\\u54c1 \\u5c55\\u9500\\u4f1a \\u6218\\u5229\\u54c1 \\u6e5b\\u6c5f\\u5e02 \\u5f20\\u6396\\u5e02 \\u957f\\u767d\\u5c71 \\u957f\\u767d\\u9547 \\u957f\\u6ee8\\u4e61 \\u957f\\u6625\\u5e02 \\u957f\\u5c9b\\u53bf \\u957f\\u77ed\\u53e5 \\u957f\\u4e30\\u53bf \\u957f\\u5e9a\\u661f \\u957f\\u6d77\\u53bf \\u957f\\u955c\\u5934 \\u957f\\u8ddd\\u79bb \\u957f\\u4e50\\u5bab \\u957f\\u4e50\\u5e02 \\u957f\\u5cad\\u53bf \\u957f\\u547d\\u9501 \\u957f\\u5b81\\u53bf \\u957f\\u671f\\u6027 \\u957f\\u6c99\\u5e02 \\u957f\\u6c99\\u53bf \\u957f\\u751f\\u679c \\u957f\\u987a\\u53bf \\u957f\\u6cf0\\u53bf \\u957f\\u6c40\\u53bf \\u957f\\u6b66\\u53bf \\u957f\\u5174\\u53bf \\u957f\\u57a3\\u53bf \\u957f\\u6cbb\\u5e02 \\u957f\\u6cbb\\u53bf \\u957f\\u6cbb\\u4e61 \\u969c\\u773c\\u6cd5 \\u62db\\u5546\\u5c40 \\u62db\\u8d34\\u753b \\u627e\\u78b4\\u513f \\u627e\\u5c94\\u5b50 \\u6cbc\\u6cfd\\u5730 \\u7167\\u660e\\u5f39 \\u906e\\u773c\\u6cd5 \\u8fd9\\u7a0b\\u5b50 \\u6d59\\u6c5f\\u7701 \\u9488\\u9f3b\\u513f \\u9488\\u7ec7\\u54c1 \\u4fa6\\u5bdf\\u5175 \\u4fa6\\u5bdf\\u673a \\u73cd\\u73e0\\u7c73 \\u771f\\u5206\\u6570 \\u771f\\u7a7a\\u7ba1 \\u771f\\u9762\\u76ee \\u771f\\u5584\\u7f8e \\u771f\\u5b9e\\u6027 \\u9547\\u6c5f\\u5e02 \\u84b8\\u6c7d\\u673a \\u6b63\\u6bd4\\u4f8b \\u6b63\\u5f53\\u5e74 \\u6b63\\u5f53\\u65f6 \\u6b63\\u5f53\\u4e2d \\u6b63\\u89c4\\u519b \\u6b63\\u5b57\\u6cd5 \\u8bc1\\u5a5a\\u4eba \\u653f\\u52a1\\u9662 \\u653f\\u6cbb\\u72af \\u653f\\u6cbb\\u5bb6 \\u653f\\u6cbb\\u5b66 \\u652f\\u6c14\\u7ba1 \\u652f\\u59d4\\u4f1a \\u829d\\u9ebb\\u5b98 \\u829d\\u9ebb\\u6cb9 \\u77e5\\u60c5\\u4eba \\u7ec7\\u5e03\\u673a \\u7ec7\\u5973\\u661f \\u8102\\u86cb\\u767d \\u8102\\u7c89\\u6c14 \\u6267\\u653f\\u515a \\u6267\\u653f\\u5b98 \\u76f4\\u77aa\\u77aa \\u76f4\\u5347\\u673a \\u76f4\\u633a\\u633a \\u76f4\\u901a\\u901a \\u76f4\\u8f96\\u5e02 \\u4f84\\u5b59\\u5973 \\u690d\\u7269\\u5b66 \\u6b96\\u6c11\\u5730 \\u7eb8\\u8001\\u864e \\u7eb8\\u7164\\u513f \\u6307\\u5317\\u9488 \\u6307\\u6325\\u5200 \\u6307\\u5357\\u9488 \\u5fd7\\u613f\\u5175 \\u5fd7\\u613f\\u519b \\u5236\\u6210\\u54c1 \\u5236\\u52a8\\u5668 \\u5236\\u836f\\u5382 \\u5236\\u9020\\u5382 \\u8d28\\u56e0\\u6570 \\u8d28\\u5b50\\u6570 \\u81f4\\u547d\\u4f24 \\u667a\\u56ca\\u56e2 \\u4e2d\\u7538\\u53bf \\u4e2d\\u56fd\\u753b \\u4e2d\\u56fd\\u4eba \\u4e2d\\u56fd\\u901a \\u4e2d\\u56fd\\u5b57 \\u4e2d\\u957f\\u8dd1 \\u4e2d\\u5b50\\u5f39 \\u4e2d\\u5b50\\u6570 \\u4e2d\\u5b50\\u661f \\u949f\\u9f0e\\u6587 \\u4f17\\u8bae\\u9662 \\u91cd\\u91d1\\u5c5e \\u91cd\\u79bb\\u5b50 \\u91cd\\u6b66\\u5668 \\u91cd\\u8981\\u6027 \\u91cd\\u5143\\u7d20 \\u76b1\\u5df4\\u5df4 \\u732a\\u7b3c\\u8349 \\u7af9\\u53f6\\u9752 \\u7af9\\u679d\\u8bcd \\u4e3b\\u52a8\\u8109 \\u4e3b\\u529b\\u519b \\u4e3b\\u6743\\u56fd \\u4e3b\\u4eba\\u516c \\u4e3b\\u4eba\\u5bb6 \\u4e3b\\u5c5e\\u6027 \\u4e3b\\u9898\\u6b4c \\u4e3b\\u5e2d\\u56e2 \\u4e3b\\u5fc3\\u9aa8 \\u52a9\\u52a8\\u8bcd \\u52a9\\u542c\\u5668 \\u52a9\\u5b66\\u91d1 \\u6ce8\\u76ee\\u793c \\u6ce8\\u5c04\\u5668 \\u6ce8\\u610f\\u529b \\u9a7b\\u5728\\u56fd \\u6293\\u603b\\u513f \\u4e13\\u95e8\\u5bb6 \\u7816\\u74e6\\u5382 \\u8f6c\\u5173\\u7cfb \\u5e84\\u6237\\u4eba \\u5e84\\u7a3c\\u5730 \\u5e84\\u7a3c\\u4eba \\u8ffd\\u60bc\\u4f1a \\u6349\\u8ff7\\u85cf \\u6dbf\\u5dde\\u5e02 \\u8d44\\u672c\\u5bb6 \\u8d44\\u672c\\u91d1 \\u8d44\\u672c\\u8bba \\u8d44\\u5174\\u5e02 \\u8d44\\u6e90\\u7a0e \\u5b50\\u5f1f\\u5175 \\u5b50\\u516c\\u53f8 \\u5b50\\u7a7a\\u95f4 \\u5b50\\u6bcd\\u5f39 \\u5b50\\u6bcd\\u6263 \\u5b50\\u5348\\u83b2 \\u5b50\\u957f\\u53bf \\u5b50\\u6d32\\u53bf \\u7d2b\\u8272\\u571f \\u81ea\\u8015\\u519c \\u81ea\\u8d21\\u5e02 \\u81ea\\u987e\\u81ea \\u81ea\\u5df1\\u4eba \\u81ea\\u5bb6\\u4eba \\u81ea\\u89c9\\u6027 \\u81ea\\u6765\\u7ea2 \\u81ea\\u6765\\u6c34 \\u81ea\\u7136\\u6751 \\u81ea\\u7136\\u529b \\u81ea\\u7136\\u7f8e \\u81ea\\u8bc9\\u4eba \\u81ea\\u4fe1\\u5fc3 \\u81ea\\u7531\\u6c11 \\u81ea\\u6cbb\\u53bf \\u81ea\\u6cbb\\u5dde \\u81ea\\u52a9\\u9910 \\u81ea\\u5c0a\\u5fc3 \\u5b57\\u7801\\u513f \\u5b57\\u6bcd\\u8868 \\u5b97\\u4e3b\\u56fd \\u603b\\u7f62\\u5de5 \\u603b\\u5de5\\u4f1a \\u603b\\u9886\\u4e8b \\u603b\\u6307\\u6325 \\u7eb5\\u65ad\\u9762 \\u7eb5\\u5256\\u9762 \\u7eb5\\u5207\\u9762 \\u7eb5\\u5750\\u6807 \\u8d70\\u8bfb\\u751f \\u8d70\\u540e\\u95e8 \\u8d70\\u6c5f\\u6e56 \\u8d70\\u5a18\\u5bb6 \\u79df\\u501f\\u5730 \\u7ec4\\u7ec7\\u5b66 \\u7956\\u6bcd\\u7eff \\u94bb\\u63a2\\u673a \\u9075\\u4e49\\u5e02 \\u5de6\\u4e0d\\u8fc7 \\u5de6\\u53f3\\u624b \\u4f5c\\u4e1a\\u672c \\u5750\\u6807\\u8f74 \\u5750\\u6c5f\\u5c71 \\u5750\\u5929\\u4e0b \\u5750\\u6708\\u5b50 \\u505a\\u597d\\u4e8b \\u505a\\u4e70\\u5356 \\u505a\\u6ee1\\u6708 \\u505a\\u751f\\u65e5 \\u505a\\u624b\\u811a \\u9162\\u6d46\\u8349 \\u5416\\u5576 \\u963f\\u5df4 \\u963f\\u575d \\u963f\\u57ce \\u963f\\u9644 \\u963f\\u80f6 \\u963f\\u91cc \\u963f\\u4f26 \\u963f\\u95e8 \\u963f\\u76df \\u963f\\u660e \\u963f\\u8c00 \\u54c0\\u53f7 \\u54c0\\u4e50 \\u54c0\\u6c42 \\u6328\\u6253 \\u6328\\u51bb \\u6328\\u6597 \\u6328\\u997f \\u6328\\u7f5a \\u6328\\u6324 \\u6328\\u9a82 \\u6328\\u6279 \\u6328\\u6574 \\u6328\\u63cd \\u77ee\\u80d6 \\u7231\\u597d \\u7231\\u5c06 \\u55f3\\u8150 \\u55f3\\u6c14 \\u5b89\\u5206 \\u5b89\\u4e18 \\u6697\\u573a \\u6697\\u5904 \\u6697\\u6d41 \\u80ae\\u810f \\u71ac\\u714e \\u71ac\\u591c \\u61ca\\u4e27 \\u6252\\u7cd5 \\u6252\\u9e21 \\u6252\\u62c9 \\u6252\\u7a83 \\u6252\\u624b \\u628a\\u513f \\u628a\\u9152 \\u628a\\u5b50 \\u9776\\u573a \\u7238\\u7238 \\u5427\\u55d2 \\u767d\\u53d1 \\u767d\\u9152 \\u767d\\u9732 \\u767d\\u672f \\u767d\\u76f8 \\u767e\\u4e2d \\u67cf\\u6797 \\u8d25\\u5c06 \\u8d25\\u9732 \\u8d25\\u843d \\u8d25\\u5174 \\u73ed\\u957f \\u73ed\\u5b50 \\u822c\\u82e5 \\u6591\\u9e20 \\u677f\\u5b50 \\u534a\\u62c9 \\u534a\\u7403 \\u534a\\u4f11 \\u62cc\\u548c \\u626e\\u76f8 \\u6886\\u5b50 \\u868c\\u57e0 \\u68d2\\u559d \\u68d2\\u7403 \\u68d2\\u5b50 \\u78c5\\u7934 \\u5305\\u573a \\u5305\\u5b50 \\u5b62\\u5b50 \\u8584\\u4ea7 \\u8584\\u5f85 \\u8584\\u5730 \\u8584\\u8377 \\u8584\\u539a \\u8584\\u9152 \\u8584\\u793c \\u8584\\u5229 \\u8584\\u547d \\u8584\\u66ae \\u8584\\u60c5 \\u8584\\u5f31 \\u8584\\u7530 \\u8584\\u96fe \\u5b9d\\u85cf \\u5b9d\\u5e94 \\u4fdd\\u7532 \\u4fdd\\u7559 \\u4fdd\\u4fee \\u4fdd\\u957f \\u5821\\u5b50 \\u62a5\\u4fee \\u62a5\\u5e94 \\u66b4\\u884c \\u66b4\\u9732 \\u66b4\\u8650 \\u7206\\u809a \\u9642\\u9640 \\u676f\\u5b50 \\u60b2\\u5207 \\u60b2\\u54bd \\u7891\\u62d3 \\u5317\\u671d \\u5317\\u66f2 \\u80cc\\u5305 \\u80cc\\u5e26 \\u80cc\\u8d1f \\u80cc\\u7b50 \\u80cc\\u7bd3 \\u80cc\\u5934 \\u80cc\\u503a \\u80cc\\u7740 \\u500d\\u7387 \\u88ab\\u96be \\u88ab\\u5b50 \\u8f88\\u5b50 \\u5954\\u6d41 \\u5954\\u547d \\u5954\\u5934 \\u8d32\\u95e8 \\u672c\\u5206 \\u672c\\u8272 \\u672c\\u76f8 \\u672c\\u7740 \\u672c\\u5b50 \\u755a\\u6597 \\u7ef7\\u8138 \\u8ff8\\u6d41 \\u903c\\u4f9b \\u8378\\u8360 \\u9f3b\\u585e \\u9f3b\\u5b50 \\u6bd4\\u5212 \\u6bd4\\u7387 \\u6bd4\\u4e18 \\u5421\\u5576 \\u5421\\u54af \\u7b14\\u6746 \\u7b14\\u4f9b \\u7b14\\u5212 \\u7b14\\u8c03 \\u9119\\u8584 \\u5fc5\\u4fee \\u6bd5\\u9732 \\u6bd5\\u8096 \\u95ed\\u585e \\u5e87\\u836b \\u72f4\\u72b4 \\u88e8\\u5c06 \\u78a7\\u8840 \\u907f\\u96be \\u8fb9\\u585e \\u7f16\\u66f2 \\u7f16\\u4fee \\u97ad\\u70ae \\u97ad\\u5b50 \\u6241\\u62c5 \\u6241\\u821f \\u53d8\\u5f97 \\u53d8\\u6545 \\u53d8\\u91cf \\u53d8\\u8c03 \\u53d8\\u76f8 \\u4fbf\\u6eba \\u4fbf\\u5b9c \\u8fa9\\u96be \\u8fab\\u5b50 \\u6807\\u91cf \\u6807\\u8bc6 \\u8868\\u8205 \\u8868\\u9732 \\u88f1\\u7cca \\u522b\\u5904 \\u522b\\u4f20 \\u522b\\u626d \\u50a7\\u76f8 \\u69df\\u6994 \\u9b13\\u53d1 \\u51b0\\u573a \\u51b0\\u7403 \\u997c\\u94db \\u997c\\u5b50 \\u5e76\\u884c \\u5e76\\u5dde \\u75c5\\u5047 \\u6452\\u6321 \\u6ce2\\u6298 \\u73bb\\u7483 \\u5265\\u9664 \\u5265\\u593a \\u5265\\u79bb \\u5265\\u843d \\u5265\\u8680 \\u5265\\u8131 \\u5265\\u524a \\u64ad\\u6492 \\u4f2f\\u4f2f \\u8116\\u9888 \\u8116\\u5b50 \\u535a\\u5f97 \\u640f\\u6597 \\u7c38\\u7b95 \\u7c38\\u7ba9 \\u8865\\u5047 \\u8865\\u6551 \\u8865\\u4f11 \\u8865\\u8840 \\u8865\\u79cd \\u4e0d\\u66fe \\u4e0d\\u5f53 \\u4e0d\\u5bf9 \\u4e0d\\u83f2 \\u4e0d\\u884c \\u4e0d\\u4f1a \\u4e0d\\u89c1 \\u4e0d\\u4e45 \\u4e0d\\u662f \\u4e0d\\u9042 \\u4e0d\\u8096 \\u4e0d\\u4f11 \\u4e0d\\u673d \\u4e0d\\u8981 \\u4e0d\\u53ea \\u4e0d\\u4f4f \\u6b65\\u884c \\u6b65\\u8c03 \\u6b65\\u5b50 \\u90e8\\u5206 \\u90e8\\u5c06 \\u90e8\\u843d \\u90e8\\u66f2 \\u90e8\\u957f \\u731c\\u5ea6 \\u731c\\u4e2d \\u624d\\u5206 \\u624d\\u5e72 \\u8d22\\u4f1a \\u53c2\\u5dee \\u53c2\\u9519 \\u53c2\\u91cf \\u53c2\\u8338 \\u53c2\\u5546 \\u53c2\\u6821 \\u53c2\\u4e0e \\u6b8b\\u7559 \\u82cd\\u52b2 \\u82cd\\u672f \\u6ca7\\u6d6a \\u85cf\\u7352 \\u85cf\\u72ec \\u85cf\\u84dd \\u85cf\\u5386 \\u85cf\\u6c11 \\u85cf\\u9752 \\u85cf\\u6587 \\u85cf\\u620f \\u85cf\\u533b \\u85cf\\u8bed \\u85cf\\u65cf \\u64cd\\u573a \\u64cd\\u884c \\u64cd\\u5207 \\u8349\\u573a \\u8349\\u8019 \\u518c\\u5b50 \\u4fa7\\u68f1 \\u7b56\\u5212 \\u7b56\\u7565 \\u7b56\\u5e94 \\u5c91\\u53c2 \\u5c42\\u6d41 \\u66fe\\u7ecf \\u8e6d\\u8e6c \\u63d2\\u66f2 \\u8336\\u573a \\u8336\\u9508 \\u67e5\\u7981 \\u67e5\\u7a76 \\u67e5\\u94fa \\u6c4a\\u6d41 \\u5c94\\u6d41 \\u5239\\u8f66 \\u5dee\\u522b \\u5dee\\u6c60 \\u5dee\\u9519 \\u5dee\\u989d \\u5dee\\u4ef7 \\u5dee\\u8ddd \\u5dee\\u9063 \\u5dee\\u4eba \\u5dee\\u5546 \\u5dee\\u4f7f \\u5dee\\u4e8b \\u5dee\\u6570 \\u5dee\\u5f02 \\u5dee\\u5f79 \\u67f4\\u706b \\u63ba\\u5408 \\u63ba\\u548c \\u5a75\\u5a9b \\u7985\\u8ba9 \\u4ea7\\u5047 \\u4ea7\\u91cf \\u4ea7\\u4ed4 \\u80a0\\u5b50 \\u5382\\u4f11 \\u5382\\u957f \\u573a\\u6b21 \\u573a\\u5730 \\u573a\\u5408 \\u573a\\u8bb0 \\u573a\\u666f \\u573a\\u9762 \\u573a\\u6240 \\u573a\\u957f \\u573a\\u5b50 \\u7545\\u884c \\u5531\\u548c \\u5531\\u7247 \\u5531\\u66f2 \\u6284\\u6ca1 \\u8d85\\u8f7d \\u671d\\u62dc \\u671d\\u81e3 \\u671d\\u4ee3 \\u671d\\u670d \\u671d\\u7eb2 \\u671d\\u8d21 \\u671d\\u89c1 \\u671d\\u89d0 \\u671d\\u9732 \\u671d\\u5723 \\u671d\\u5929 \\u671d\\u5ef7 \\u671d\\u9c9c \\u671d\\u5411 \\u671d\\u91ce \\u671d\\u7740 \\u671d\\u653f \\u6f6e\\u5dee \\u6f6e\\u6d41 \\u8f66\\u573a \\u8f66\\u6d41 \\u8f66\\u4ec6 \\u8f66\\u8f7d \\u8f66\\u5b50 \\u64a4\\u5dee \\u6c89\\u6ca1 \\u9648\\u9152 \\u9648\\u65e7 \\u67fd\\u67f3 \\u79f0\\u8eab \\u79f0\\u5fc3 \\u79f0\\u610f \\u79f0\\u804c \\u6210\\u5206 \\u6210\\u5c31 \\u6210\\u957f \\u4e1e\\u76f8 \\u5448\\u9732 \\u627f\\u8499 \\u627f\\u5e94 \\u627f\\u8f7d \\u4e58\\u5174 \\u6f84\\u6c99 \\u79e4\\u6746 \\u5403\\u76f8 \\u54e7\\u6e9c \\u9e31\\u9e3a \\u6c60\\u5b50 \\u6301\\u4e45 \\u6301\\u7403 \\u5c3a\\u5b50 \\u9f7f\\u6570 \\u53f1\\u559d \\u53f1\\u4ee4 \\u8d64\\u9732 \\u996c\\u4ee4 \\u51b2\\u5e8a \\u51b2\\u52b2 \\u51b2\\u5b54 \\u51b2\\u91cf \\u51b2\\u6a21 \\u51b2\\u538b \\u51b2\\u5b50 \\u5145\\u5206 \\u5145\\u585e \\u5145\\u8840 \\u866b\\u5b50 \\u62bd\\u7403 \\u62bd\\u8c03 \\u62bd\\u54bd \\u916c\\u548c \\u916c\\u5e94 \\u6101\\u715e \\u7b79\\u5212 \\u4e11\\u884c \\u4e11\\u89d2 \\u4e11\\u76f8 \\u51fa\\u5dee \\u51fa\\u573a \\u51fa\\u5904 \\u51fa\\u884c \\u51fa\\u6ca1 \\u51fa\\u585e \\u521d\\u4e5d \\u521d\\u79cb \\u9664\\u4e86 \\u9664\\u4e27 \\u9504\\u5934 \\u50a8\\u91cf \\u5904\\u5904 \\u5904\\u5206 \\u5904\\u6240 \\u755c\\u680f \\u755c\\u7c7b \\u755c\\u529b \\u755c\\u7272 \\u63e3\\u5ea6 \\u7a7f\\u884c \\u7a7f\\u7740 \\u4f20\\u8bb0 \\u4f20\\u4ee4 \\u4f20\\u7403 \\u4e32\\u4f9b \\u7a97\\u5b50 \\u5e8a\\u94fa \\u95ef\\u5c06 \\u521b\\u53e3 \\u521b\\u9762 \\u521b\\u4f24 \\u521b\\u75db \\u5439\\u5f39 \\u5439\\u64c2 \\u5439\\u725b \\u5782\\u67f3 \\u5782\\u843d \\u9524\\u5934 \\u9524\\u5b50 \\u6625\\u5047 \\u6625\\u9152 \\u6625\\u5377 \\u6625\\u4ee4 \\u6625\\u725b \\u6625\\u79cb \\u6625\\u79cd \\u9187\\u9152 \\u6233\\u513f \\u8bcd\\u4ee4 \\u8bcd\\u66f2 \\u8bcd\\u8c03 \\u8f9e\\u884c \\u8f9e\\u4ee4 \\u78c1\\u573a \\u6b21\\u957f \\u523a\\u53c2 \\u523a\\u5566 \\u523a\\u6e9c \\u523a\\u7ee3 \\u523a\\u75d2 \\u8d50\\u4e88 \\u679e\\u9633 \\u64ba\\u6387 \\u50ac\\u5410 \\u6751\\u843d \\u6751\\u957f \\u6751\\u5b50 \\u5b58\\u7559 \\u5b58\\u6298 \\u5fd6\\u5ea6 \\u632b\\u6298 \\u9519\\u843d \\u9519\\u8c2c \\u642d\\u6551 \\u642d\\u8f7d \\u55d2\\u55d2 \\u7b54\\u832c \\u7b54\\u8154 \\u7b54\\u5e94 \\u7b54\\u5141 \\u6253\\u6748 \\u6253\\u98a4 \\u6253\\u6597 \\u6253\\u5443 \\u6253\\u64c2 \\u6253\\u91cf \\u6253\\u843d \\u6253\\u70ae \\u6253\\u7403 \\u6253\\u70ca \\u6253\\u6298 \\u6253\\u4e2d \\u5927\\u85cf \\u5927\\u90fd \\u5927\\u592b \\u5927\\u5e72 \\u5927\\u5c06 \\u5927\\u8205 \\u5927\\u5361 \\u5927\\u91cf \\u5927\\u6e9c \\u5927\\u96be \\u5927\\u70ae \\u5927\\u79cb \\u5927\\u8c03 \\u5927\\u4fee \\u5927\\u96c5 \\u5446\\u5b50 \\u5e26\\u7d2f \\u5e26\\u5b50 \\u6234\\u4e0a \\u4e39\\u53c2 \\u62c5\\u5b50 \\u5355\\u8584 \\u5355\\u5e72 \\u5355\\u4e2a \\u5355\\u884c \\u5355\\u66f2 \\u5355\\u8c03 \\u5355\\u53bf \\u5355\\u76f8 \\u5355\\u4e8e \\u5355\\u5b50 \\u80c6\\u91cf \\u80c6\\u5b50 \\u65e6\\u89d2 \\u6de1\\u8584 \\u5f39\\u62e8 \\u5f39\\u5531 \\u5f39\\u8bcd \\u5f39\\u52be \\u5f39\\u7c27 \\u5f39\\u56de \\u5f39\\u529b \\u5f39\\u7434 \\u5f39\\u5c04 \\u5f39\\u8df3 \\u5f39\\u6027 \\u5f39\\u538b \\u5f39\\u6307 \\u5f39\\u594f \\u5f53\\u5dee \\u5f53\\u573a \\u5f53\\u671d \\u5f53\\u6210 \\u5f53\\u91cf \\u5f53\\u7968 \\u5f53\\u94fa \\u5f53\\u5929 \\u5f53\\u665a \\u5f53\\u591c \\u5f53\\u6708 \\u5f53\\u771f \\u5f53\\u4f5c \\u5f53\\u505a \\u515a\\u53c2 \\u5200\\u628a \\u5200\\u5b50 \\u53e8\\u53e8 \\u53e8\\u5495 \\u53e8\\u5520 \\u53e8\\u5ff5 \\u5012\\u5f69 \\u5012\\u63d2 \\u5012\\u8f66 \\u5012\\u523a \\u5012\\u6302 \\u5012\\u704c \\u5012\\u776b \\u5012\\u7acb \\u5012\\u6d41 \\u5012\\u8d54 \\u5012\\u6570 \\u5012\\u9501 \\u5012\\u8d34 \\u5012\\u9000 \\u5012\\u4f11 \\u5012\\u53d9 \\u5012\\u60ac \\u5012\\u5f71 \\u5012\\u6620 \\u5012\\u7f6e \\u5012\\u8f6c \\u5012\\u88c5 \\u5230\\u573a \\u5230\\u5904 \\u9053\\u573a \\u9053\\u89c2 \\u9053\\u884c \\u5f97\\u5f53 \\u5f97\\u6765 \\u5f97\\u6c14 \\u5f97\\u6570 \\u5f97\\u5e78 \\u5fb7\\u884c \\u767b\\u573a \\u7b49\\u91cf \\u4f4e\\u843d \\u4f4e\\u8c03 \\u5600\\u55d2 \\u654c\\u914b \\u6da4\\u5361 \\u5e95\\u5b50 \\u5730\\u58f3 \\u5730\\u94fa \\u5730\\u7403 \\u5730\\u715e \\u5f1f\\u5f1f \\u9012\\u89e3 \\u6382\\u91cf \\u98a0\\u7c38 \\u5178\\u5f53 \\u70b9\\u5c06 \\u70b9\\u7403 \\u70b9\\u79cd \\u7898\\u914a \\u7898\\u9152 \\u7535\\u573a \\u7535\\u8377 \\u7535\\u952f \\u7535\\u91cf \\u7535\\u6d41 \\u7535\\u78e8 \\u7535\\u94ae \\u7535\\u6655 \\u7535\\u94bb \\u5e97\\u94fa \\u5201\\u6a2a \\u5201\\u96be \\u51cb\\u843d \\u540a\\u94fa \\u6389\\u8272 \\u8dcc\\u5b95 \\u8dcc\\u843d \\u558b\\u8840 \\u9876\\u6746 \\u9876\\u725b \\u9876\\u7403 \\u9489\\u8019 \\u9489\\u5b50 \\u5b9a\\u91cf \\u5b9a\\u8c03 \\u4e22\\u4e11 \\u4e22\\u6389 \\u4e22\\u8352 \\u4e22\\u8138 \\u4e22\\u5f03 \\u4e22\\u5374 \\u4e22\\u4eba \\u4e22\\u5931 \\u4e22\\u624b \\u4e1c\\u963f \\u4e1c\\u6d41 \\u51ac\\u4ee4 \\u61c2\\u5f97 \\u52a8\\u5f39 \\u52a8\\u91cf \\u606b\\u5413 \\u90fd\\u7763 \\u90fd\\u4f1a \\u6296\\u843d \\u6296\\u64de \\u6597\\u6cd5 \\u6597\\u5bcc \\u6597\\u9e21 \\u6597\\u725b \\u6597\\u6bb4 \\u6597\\u6c14 \\u6597\\u58eb \\u6597\\u8273 \\u6597\\u4e89 \\u6597\\u5fd7 \\u6597\\u667a \\u6597\\u5634 \\u8c46\\u5b50 \\u9017\\u7559 \\u6bd2\\u9152 \\u6bd2\\u7624 \\u72ec\\u884c \\u72ec\\u5360 \\u5835\\u585e \\u8d4c\\u573a \\u809a\\u91cf \\u809a\\u5b50 \\u5ea6\\u5047 \\u5ea6\\u91cf \\u5ea6\\u66f2 \\u7aef\\u7684 \\u77ed\\u5904 \\u6bb5\\u843d \\u65ad\\u559d \\u7f0e\\u5b50 \\u961f\\u957f \\u5bf9\\u79f0 \\u5bf9\\u6d41 \\u5bf9\\u8c03 \\u5bf9\\u5e94 \\u5bf9\\u6298 \\u591a\\u4e45 \\u591a\\u4e48 \\u591a\\u91cd \\u54c6\\u55e6 \\u593a\\u5f97 \\u593a\\u51a0 \\u6735\\u513f \\u579b\\u5b50 \\u5a40\\u5a1c \\u8bb9\\u8c2c \\u86fe\\u5b50 \\u5384\\u96be \\u6076\\u6597 \\u6076\\u884c \\u6076\\u9732 \\u6076\\u5c11 \\u6076\\u5fc3 \\u513f\\u5b50 \\u8033\\u7247 \\u4e8c\\u6d41 \\u4e8c\\u91cd \\u53d1\\u8fab \\u53d1\\u83dc \\u53d1\\u884c \\u53d1\\u9645 \\u53d1\\u9afb \\u53d1\\u5eca \\u53d1\\u4ee4 \\u53d1\\u843d \\u53d1\\u96be \\u53d1\\u80d6 \\u53d1\\u59bb \\u53d1\\u7403 \\u53d1\\u4e73 \\u53d1\\u5f0f \\u53d1\\u5c4b \\u53d1\\u578b \\u53d1\\u6655 \\u53d1\\u6014 \\u53d1\\u6307 \\u7f5a\\u9152 \\u7f5a\\u7403 \\u6cd5\\u573a \\u6cd5\\u4ee4 \\u756a\\u79ba \\u8543\\u8304 \\u7ffb\\u4f9b \\u7ffb\\u5377 \\u7ffb\\u4fee \\u7e41\\u5cd9 \\u53cd\\u5012 \\u53cd\\u95f4 \\u53cd\\u5207 \\u53cd\\u7701 \\u53cd\\u8c03 \\u53cd\\u5e94 \\u8fd4\\u4fee \\u72af\\u7981 \\u996d\\u91cf \\u996d\\u94fa \\u68b5\\u5457 \\u9632\\u9508 \\u623f\\u5b50 \\u4eff\\u4f5b \\u4eff\\u884c \\u8bbf\\u65e7 \\u8bbf\\u6c42 \\u653e\\u884c \\u653e\\u5047 \\u653e\\u91cf \\u653e\\u725b \\u653e\\u70ae \\u98de\\u884c \\u975e\\u5f97 \\u975e\\u5206 \\u975e\\u96be \\u83f2\\u8584 \\u871a\\u880a \\u80a5\\u80d6 \\u5e9f\\u65e7 \\u5206\\u53c9 \\u5206\\u51fa \\u5206\\u91cf \\u5206\\u6d41 \\u5206\\u998f \\u5206\\u5185 \\u5206\\u6563 \\u5206\\u5916 \\u5206\\u503c \\u5206\\u5b50 \\u575f\\u573a \\u575f\\u4e18 \\u6c7e\\u9152 \\u7c89\\u574a \\u594b\\u6597 \\u98ce\\u884c \\u98ce\\u91cf \\u98ce\\u6d41 \\u98ce\\u9761 \\u98ce\\u5934 \\u98ce\\u94bb \\u5c01\\u7985 \\u5c01\\u7981 \\u75af\\u957f \\u75af\\u5b50 \\u7f1d\\u5de5 \\u7f1d\\u9645 \\u7f1d\\u7a77 \\u7f1d\\u9699 \\u7f1d\\u7ebf \\u7f1d\\u5b50 \\u5949\\u627f \\u5949\\u884c \\u5949\\u4ee4 \\u4f0f\\u6d41 \\u4f0f\\u5e16 \\u62c2\\u8896 \\u670d\\u5e16 \\u798f\\u76f8 \\u65a7\\u5b50 \\u4fef\\u5c31 \\u8151\\u810f \\u8150\\u65e7 \\u8150\\u673d \\u8d1f\\u8377 \\u8d1f\\u759a \\u8d1f\\u7d2f \\u8d1f\\u8f7d \\u9644\\u548c \\u8d74\\u96be \\u590d\\u65e7 \\u8d4b\\u4e88 \\u8986\\u6ca1 \\u560e\\u5b50 \\u5676\\u53a6 \\u8be5\\u7740 \\u76d6\\u5b50 \\u6982\\u7387 \\u7518\\u9732 \\u7518\\u4f11 \\u6746\\u79e4 \\u6746\\u83cc \\u6746\\u5854 \\u6746\\u72b6 \\u6746\\u5b50 \\u8d76\\u573a \\u8d76\\u5729 \\u611f\\u5e94 \\u5e72\\u767d \\u5e72\\u762a \\u5e72\\u90e8 \\u5e72\\u624d \\u5e72\\u9053 \\u5e72\\u6389 \\u5e72\\u7c89 \\u5e72\\u53f7 \\u5e72\\u6d3b \\u5e72\\u5c06 \\u5e72\\u7ed3 \\u5e72\\u52b2 \\u5e72\\u8b66 \\u5e72\\u7ec3 \\u5e72\\u6d41 \\u5e72\\u998f \\u5e72\\u8def \\u5e72\\u5417 \\u5e72\\u6e20 \\u5e72\\u4e8b \\u5e72\\u677e \\u5e72\\u7ebf \\u5e72\\u6821 \\u5e72\\u9884 \\u5e72\\u653f \\u521a\\u52b2 \\u6760\\u6746 \\u6760\\u5b50 \\u6206\\u76f4 \\u9ad8\\u5e72 \\u9ad8\\u5c31 \\u9ad8\\u4e3d \\u9ad8\\u8c03 \\u9ad8\\u5934 \\u9ad8\\u5174 \\u9ad8\\u7740 \\u9ad8\\u77e5 \\u818f\\u8840 \\u818f\\u6cb9 \\u818f\\u6cfd \\u7a3f\\u5b50 \\u544a\\u5047 \\u7599\\u7629 \\u54af\\u5654 \\u54af\\u54af \\u54af\\u5431 \\u54e5\\u54e5 \\u54e5\\u4eec \\u80f3\\u81c2 \\u80f3\\u818a \\u9e3d\\u5b50 \\u6b4c\\u66f2 \\u683c\\u6597 \\u683c\\u8c03 \\u683c\\u5b50 \\u9694\\u6247 \\u4e2a\\u65e7 \\u4e2a\\u5b50 \\u5404\\u5904 \\u7ed9\\u4ed8 \\u7ed9\\u517b \\u7ed9\\u4e88 \\u6839\\u7a76 \\u6839\\u7624 \\u6839\\u5b50 \\u8ddf\\u5934 \\u8ddf\\u7740 \\u5e9a\\u5e16 \\u8015\\u755c \\u8015\\u725b \\u8015\\u79cd \\u54fd\\u585e \\u54fd\\u54bd \\u6897\\u585e \\u66f4\\u52a0 \\u66f4\\u5176 \\u66f4\\u4e3a \\u5de5\\u573a \\u5de5\\u5c3a \\u5de5\\u4f11 \\u5de5\\u957f \\u5f13\\u5b50 \\u516c\\u755c \\u516c\\u5e72 \\u516c\\u5047 \\u516c\\u725b \\u516c\\u4ec6 \\u516c\\u4f11 \\u516c\\u8f6c \\u529f\\u7387 \\u653b\\u5360 \\u5bab\\u7981 \\u5bab\\u9619 \\u5bab\\u8c03 \\u8eac\\u884c \\u62f1\\u5238 \\u8d21\\u560e \\u4f9b\\u6848 \\u4f9b\\u8bcd \\u4f9b\\u5949 \\u4f9b\\u7a3f \\u4f9b\\u7ed9 \\u4f9b\\u679c \\u4f9b\\u82b1 \\u4f9b\\u6696 \\u4f9b\\u54c1 \\u4f9b\\u6c42 \\u4f9b\\u8ba4 \\u4f9b\\u4e8b \\u4f9b\\u517b \\u4f9b\\u5e94 \\u4f9b\\u804c \\u4f9b\\u72b6 \\u4f9b\\u684c \\u52fe\\u5f53 \\u52fe\\u7559 \\u4f5d\\u507b \\u94a9\\u5b50 \\u67b8\\u6a58 \\u67b8\\u675e \\u8d2d\\u5f97 \\u4f30\\u91cf \\u5495\\u9686 \\u5b64\\u884c \\u59d1\\u8205 \\u53e4\\u65e7 \\u8c37\\u574a \\u8c37\\u5b50 \\u80a1\\u957f \\u9aa8\\u6735 \\u9aa8\\u5e72 \\u9aa8\\u788c \\u9aa8\\u5934 \\u9aa8\\u8840 \\u9aa8\\u6298 \\u9aa8\\u5b50 \\u726f\\u725b \\u9f13\\u4e50 \\u56fa\\u76f8 \\u6545\\u65e7 \\u987e\\u7ee3 \\u74dc\\u8513 \\u5471\\u55d2 \\u6302\\u7d2f \\u8902\\u5b50 \\u4e56\\u8c2c \\u5173\\u5207 \\u5b98\\u5dee \\u5b98\\u573a \\u5b98\\u957f \\u68fa\\u67e9 \\u839e\\u5c14 \\u7ba1\\u4e50 \\u51a0\\u5e26 \\u51a0\\u519b \\u51a0\\u4ee5 \\u7f50\\u5934 \\u5149\\u6e9c \\u5149\\u6805 \\u5e7f\\u573a \\u6844\\u5b50 \\u5f52\\u964d \\u5f52\\u548e \\u5f52\\u7701 \\u9f9f\\u7532 \\u9f9f\\u88c2 \\u9f9f\\u5179 \\u89c4\\u5212 \\u89c4\\u77e9 \\u95fa\\u79c0 \\u9b3c\\u5b50 \\u67dc\\u5b50 \\u8d35\\u5e72 \\u6eda\\u843d \\u68cd\\u5b50 \\u9505\\u5b50 \\u56fd\\u8205 \\u56fd\\u4e50 \\u56fd\\u96be \\u679c\\u5e72 \\u679c\\u9152 \\u8fc7\\u573a \\u8fc7\\u5206 \\u8fc7\\u91cf \\u8fc7\\u6dcb \\u8fc7\\u8f7d \\u54c8\\u8fbe \\u86e4\\u870a \\u86e4\\u87c6 \\u86e4\\u4ed4 \\u8fd8\\u597d \\u8fd8\\u662f \\u8fd8\\u7530 \\u5b69\\u5b50 \\u6d77\\u53c2 \\u6d77\\u7981 \\u6d77\\u91cf \\u6d77\\u6d41 \\u6d77\\u96be \\u6d77\\u725b \\u6d77\\u76f8 \\u5bb3\\u5904 \\u5bb3\\u81ca \\u5bb3\\u7f9e \\u542b\\u7cca \\u542b\\u91cf \\u542b\\u7f9e \\u5bd2\\u5047 \\u5bd2\\u6d41 \\u5bd2\\u9732 \\u850a\\u83dc \\u6c49\\u5b50 \\u6c57\\u56fd \\u884c\\u7b14 \\u884c\\u85cf \\u884c\\u8349 \\u884c\\u8f66 \\u884c\\u7a0b \\u884c\\u8239 \\u884c\\u523a \\u884c\\u52a8 \\u884c\\u623f \\u884c\\u5bab \\u884c\\u597d \\u884c\\u8d3f \\u884c\\u8ff9 \\u884c\\u8d3e \\u884c\\u5c06 \\u884c\\u811a \\u884c\\u52ab \\u884c\\u8fdb \\u884c\\u7ecf \\u884c\\u5f84 \\u884c\\u519b \\u884c\\u6977 \\u884c\\u4e50 \\u884c\\u793c \\u884c\\u674e \\u884c\\u730e \\u884c\\u4ee4 \\u884c\\u8def \\u884c\\u56ca \\u884c\\u9a97 \\u884c\\u8058 \\u884c\\u671f \\u884c\\u4e5e \\u884c\\u8154 \\u884c\\u7a83 \\u884c\\u4eba \\u884c\\u5584 \\u884c\\u65f6 \\u884c\\u4f7f \\u884c\\u9a76 \\u884c\\u4e8b \\u884c\\u4e66 \\u884c\\u7f72 \\u884c\\u5510 \\u884c\\u5934 \\u884c\\u4e3a \\u884c\\u6587 \\u884c\\u9500 \\u884c\\u661f \\u884c\\u5211 \\u884c\\u51f6 \\u884c\\u533b \\u884c\\u8bc8 \\u884c\\u957f \\u884c\\u8005 \\u884c\\u653f \\u884c\\u821f \\u884c\\u88c5 \\u884c\\u8e2a \\u884c\\u8d70 \\u676d\\u80b2 \\u822a\\u884c \\u6beb\\u53d1 \\u8c6a\\u6a2a \\u8c6a\\u5174 \\u597d\\u5904 \\u597d\\u6597 \\u597d\\u6076 \\u597d\\u4e45 \\u597d\\u9152 \\u597d\\u5ba2 \\u597d\\u5947 \\u597d\\u5f3a \\u597d\\u8272 \\u597d\\u80dc \\u597d\\u5b66 \\u597d\\u6218 \\u53f7\\u53eb \\u53f7\\u4ee4 \\u53f7\\u70ae \\u53f7\\u5555 \\u559d\\u5f69 \\u559d\\u9053 \\u559d\\u4ee4 \\u559d\\u95ee \\u5408\\u7f1d \\u5408\\u6d41 \\u5408\\u7740 \\u4f55\\u66fe \\u548c\\u9762 \\u548c\\u5f04 \\u548c\\u8bd7 \\u6cb3\\u6d41 \\u6cb3\\u67f3 \\u8377\\u8f7d \\u8377\\u91cd \\u6838\\u513f \\u8d3a\\u5361 \\u9e64\\u53d1 \\u6052\\u4e45 \\u6052\\u91cf \\u6a2a\\u66b4 \\u6a2a\\u8d22 \\u6a2a\\u884c \\u6a2a\\u7978 \\u6a2a\\u86ee \\u6a2a\\u9006 \\u6a2a\\u6b7b \\u8f70\\u9686 \\u7ea2\\u53c2 \\u7ea2\\u573a \\u7ea2\\u66f2 \\u7ea2\\u82d5 \\u5b8f\\u91cf \\u6d2a\\u91cf \\u6d2a\\u6d41 \\u9e3f\\u8499 \\u54c4\\u9017 \\u54c4\\u5f04 \\u54c4\\u9a97 \\u54c4\\u62a2 \\u54c4\\u529d \\u7334\\u5b50 \\u540e\\u5934 \\u5019\\u573a \\u547c\\u53f7 \\u547c\\u559d \\u547c\\u6551 \\u547c\\u5401 \\u547c\\u5e94 \\u56eb\\u56f5 \\u72d0\\u88d8 \\u80e1\\u540c \\u9e44\\u7684 \\u6e56\\u6cca \\u7cca\\u7cbe \\u7cca\\u53e3 \\u7cca\\u5f04 \\u7cca\\u6d82 \\u864e\\u8d32 \\u864e\\u5c06 \\u82b1\\u7532 \\u82b1\\u5377 \\u82b1\\u9732 \\u82b1\\u70ae \\u5212\\u62e8 \\u5212\\u5b9a \\u5212\\u5206 \\u5212\\u5f52 \\u5212\\u4ef7 \\u5212\\u6e05 \\u5212\\u7ebf \\u5212\\u4e00 \\u534e\\u53d1 \\u534e\\u9f99 \\u534e\\u5c71 \\u534e\\u4f57 \\u54d7\\u54d7 \\u54d7\\u5566 \\u6ed1\\u884c \\u6ed1\\u6e9c \\u6ed1\\u843d \\u753b\\u4f9b \\u753b\\u7247 \\u8bdd\\u65e7 \\u6000\\u65e7 \\u69d0\\u836b \\u574f\\u5904 \\u73af\\u884c \\u73af\\u6d41 \\u73af\\u7403 \\u5bf0\\u7403 \\u7f13\\u884c \\u6362\\u5e16 \\u5524\\u5934 \\u60a3\\u96be \\u8352\\u843d \\u8352\\u8c2c \\u7687\\u671d \\u6643\\u8361 \\u6643\\u52a8 \\u6643\\u6643 \\u6643\\u60a0 \\u5e4c\\u5b50 \\u5fbd\\u8c03 \\u56de\\u5f39 \\u56de\\u9e58 \\u56de\\u6d41 \\u56de\\u843d \\u56de\\u5e16 \\u56de\\u5e94 \\u6c47\\u6d41 \\u6c47\\u7387 \\u4f1a\\u573a \\u4f1a\\u513f \\u4f1a\\u8ba1 \\u4f1a\\u957f \\u660f\\u6655 \\u5a5a\\u5047 \\u6df7\\u86cb \\u6df7\\u6d4a \\u952a\\u5b54 \\u8c41\\u8fbe \\u8c41\\u6717 \\u8c41\\u4eae \\u8c41\\u514d \\u8c41\\u7136 \\u6d3b\\u8840 \\u706b\\u573a \\u706b\\u70ae \\u706b\\u7403 \\u4f19\\u5b50 \\u8d27\\u573a \\u83b7\\u6551 \\u51fb\\u843d \\u51fb\\u7403 \\u51fb\\u4e2d \\u673a\\u573a \\u673a\\u4fee \\u673a\\u957f \\u79ef\\u7d2f \\u7b95\\u6597 \\u7a3d\\u7559 \\u6fc0\\u5c06 \\u6fc0\\u6d41 \\u6fc0\\u5207 \\u7f81\\u7559 \\u6781\\u91cf \\u5373\\u884c \\u5373\\u4ee4 \\u5373\\u5174 \\u6025\\u6551 \\u6025\\u6d41 \\u6025\\u96be \\u6025\\u5207 \\u68d8\\u722a \\u51e0\\u66fe \\u51e0\\u591a \\u51e0\\u5206 \\u51e0\\u4e2a \\u51e0\\u4f55 \\u51e0\\u7ecf \\u51e0\\u7387 \\u51e0\\u65f6 \\u51e0\\u8bb8 \\u6324\\u5360 \\u8bb0\\u5f97 \\u4f0e\\u4fe9 \\u7eaa\\u884c \\u5b63\\u79cb \\u5b63\\u76f8 \\u5242\\u91cf \\u6d4e\\u5357 \\u6d4e\\u5b81 \\u5180\\u6c42 \\u52a0\\u4e0a \\u5bb6\\u755c \\u5bb6\\u5f53 \\u5bb6\\u4f19 \\u5bb6\\u7d2f \\u5bb6\\u96c0 \\u5bb6\\u957f \\u5bb6\\u79cd \\u5609\\u836b \\u5939\\u8884 \\u5939\\u88ab \\u5939\\u5e03 \\u5939\\u7f1d \\u5939\\u514b \\u5939\\u8863 \\u5939\\u5b50 \\u88b7\\u88a2 \\u7532\\u5175 \\u7532\\u58f3 \\u8d3e\\u4eba \\u5047\\u53d1 \\u5047\\u671f \\u5047\\u65e5 \\u5047\\u6761 \\u67b6\\u5b50 \\u5c16\\u513f \\u5c16\\u5b50 \\u95f4\\u8c0d \\u95f4\\u65ad \\u95f4\\u9694 \\u95f4\\u6216 \\u95f4\\u63a5 \\u95f4\\u82d7 \\u95f4\\u65e5 \\u95f4\\u8272 \\u95f4\\u9699 \\u95f4\\u6b47 \\u95f4\\u6742 \\u95f4\\u79cd \\u95f4\\u4f5c \\u76d1\\u573a \\u76d1\\u7981 \\u517c\\u5dee \\u728d\\u725b \\u728d\\u4e3a \\u714e\\u71ac \\u8327\\u5b50 \\u89c1\\u5f97 \\u89c1\\u957f \\u996f\\u884c \\u5065\\u5c06 \\u8230\\u70ae \\u6bfd\\u5b50 \\u6e85\\u843d \\u7bad\\u6746 \\u5c06\\u5b98 \\u5c06\\u5c31 \\u5c06\\u9886 \\u5c06\\u4ee4 \\u5c06\\u95e8 \\u5c06\\u58eb \\u5c06\\u5e05 \\u5c06\\u6821 \\u5c06\\u4f50 \\u6d46\\u7cca \\u7586\\u573a \\u8bb2\\u7a76 \\u8bb2\\u6c42 \\u964d\\u4f0f \\u964d\\u670d \\u964d\\u5c06 \\u964d\\u9f99 \\u964d\\u843d \\u964d\\u987a \\u7ce8\\u7cca \\u4ea4\\u5dee \\u4ea4\\u6076 \\u4ea4\\u6d41 \\u6d47\\u8584 \\u6d47\\u5934 \\u5a07\\u7f9e \\u9a84\\u6a2a \\u80f6\\u5377 \\u89d2\\u6597 \\u89d2\\u529b \\u89d2\\u843d \\u89d2\\u7403 \\u89d2\\u8272 \\u89d2\\u9010 \\u997a\\u5b50 \\u77eb\\u60c5 \\u811a\\u6746 \\u6405\\u548c \\u527f\\u88ad \\u89c9\\u5f97 \\u8f7f\\u5b50 \\u8f83\\u573a \\u8f83\\u91cf \\u6559\\u7ed9 \\u6559\\u8bfe \\u6559\\u4e66 \\u63a5\\u5e94 \\u63a5\\u79cd \\u63ed\\u9732 \\u63ed\\u5e16 \\u8282\\u4ee4 \\u8282\\u6d41 \\u52ab\\u96be \\u62ee\\u636e \\u7ed3\\u5df4 \\u7ed3\\u53d1 \\u7ed3\\u58f3 \\u7ed3\\u5b9e \\u6840\\u9a9c \\u9889\\u9883 \\u622a\\u7559 \\u622a\\u6d41 \\u59d0\\u59d0 \\u89e3\\u7981 \\u89e3\\u9152 \\u89e3\\u6551 \\u89e3\\u6570 \\u89e3\\u9001 \\u4ecb\\u58f3 \\u82a5\\u84dd \\u501f\\u8c03 \\u91d1\\u53d1 \\u91d1\\u725b \\u91d1\\u79cb \\u91d1\\u76f8 \\u91d1\\u5b50 \\u7d27\\u7740 \\u9526\\u7ee3 \\u5c3d\\u7ba1 \\u5c3d\\u5feb \\u5c3d\\u91cf \\u5c3d\\u5148 \\u5c3d\\u5174 \\u8fdb\\u573a \\u8fd1\\u573a \\u8fd1\\u5904 \\u52b2\\u8349 \\u52b2\\u5439 \\u52b2\\u654c \\u52b2\\u98ce \\u52b2\\u5065 \\u52b2\\u65c5 \\u52b2\\u5c04 \\u6d78\\u6ca1 \\u7981\\u95ed \\u7981\\u5730 \\u7981\\u9522 \\u7981\\u679c \\u7981\\u6bc1 \\u7981\\u706b \\u7981\\u5fcc \\u7981\\u7edd \\u7981\\u519b \\u7981\\u4f8b \\u7981\\u730e \\u7981\\u4ee4 \\u7981\\u5f8b \\u7981\\u533a \\u7981\\u98df \\u7981\\u4e66 \\u7981\\u536b \\u7981\\u7269 \\u7981\\u70df \\u7981\\u6e14 \\u7981\\u6b32 \\u7981\\u8fd0 \\u7981\\u6b62 \\u7981\\u5236 \\u7981\\u963b \\u830e\\u5e72 \\u7ecf\\u4f20 \\u7ecf\\u4e45 \\u7ecf\\u8840 \\u7cbe\\u5f53 \\u7cbe\\u5e72 \\u7cbe\\u998f \\u7cbe\\u8f9f \\u8b66\\u957f \\u5f84\\u6d41 \\u7ade\\u79c0 \\u656c\\u9152 \\u9759\\u573a \\u955c\\u5b50 \\u7a98\\u76f8 \\u7ea0\\u5bdf \\u7ea0\\u7f20 \\u7ea0\\u9519 \\u7ea0\\u7eb7 \\u7ea0\\u845b \\u7ea0\\u5408 \\u7ea0\\u96c6 \\u7ea0\\u7ed3 \\u7ea0\\u504f \\u7ea0\\u6b63 \\u9e20\\u5c3e \\u7a76\\u529e \\u7a76\\u8bd8 \\u7a76\\u7adf \\u7a76\\u95ee \\u8d73\\u8d73 \\u63ea\\u6597 \\u63ea\\u75e7 \\u63ea\\u5fc3 \\u557e\\u5527 \\u557e\\u557e \\u4e5d\\u9f0e \\u4e5d\\u5bab \\u4e5d\\u9f99 \\u4e5d\\u96be \\u4e5d\\u6cc9 \\u4e5d\\u5929 \\u4e5d\\u9704 \\u4e5d\\u539f \\u4e5d\\u6708 \\u4e5d\\u91cd \\u4e5d\\u5dde \\u4e5d\\u8f6c \\u4e5d\\u65cf \\u4e5d\\u94bb \\u4e45\\u522b \\u4e45\\u75c5 \\u4e45\\u7b49 \\u4e45\\u7ecf \\u4e45\\u4e45 \\u4e45\\u7559 \\u4e45\\u6155 \\u4e45\\u8fdd \\u4e45\\u4ef0 \\u4e45\\u5df2 \\u4e45\\u8fdc \\u4e45\\u957f \\u97ed\\u83dc \\u97ed\\u9ec4 \\u9152\\u5427 \\u9152\\u4fdd \\u9152\\u676f \\u9152\\u83dc \\u9152\\u5e97 \\u9152\\u996d \\u9152\\u7f38 \\u9152\\u9986 \\u9152\\u9b3c \\u9152\\u58f6 \\u9152\\u82b1 \\u9152\\u4f1a \\u9152\\u5bb6 \\u9152\\u6d46 \\u9152\\u7cbe \\u9152\\u5177 \\u9152\\u529b \\u9152\\u91cf \\u9152\\u9f84 \\u9152\\u4ee4 \\u9152\\u697c \\u9152\\u917f \\u9152\\u5668 \\u9152\\u94b1 \\u9152\\u66f2 \\u9152\\u6cc9 \\u9152\\u8272 \\u9152\\u98df \\u9152\\u6c34 \\u9152\\u8086 \\u9152\\u575b \\u9152\\u5f92 \\u9152\\u6da1 \\u9152\\u7a9d \\u9152\\u5e2d \\u9152\\u4ed9 \\u9152\\u9192 \\u9152\\u5174 \\u9152\\u7b75 \\u9152\\u5bb4 \\u9152\\u80b4 \\u9152\\u836f \\u9152\\u610f \\u9152\\u53cb \\u9152\\u7cdf \\u9152\\u76c5 \\u9152\\u9189 \\u65e7\\u6848 \\u65e7\\u75c5 \\u65e7\\u90e8 \\u65e7\\u5730 \\u65e7\\u90fd \\u65e7\\u6076 \\u65e7\\u6545 \\u65e7\\u89c2 \\u65e7\\u56fd \\u65e7\\u597d \\u65e7\\u8d27 \\u65e7\\u8ff9 \\u65e7\\u4ea4 \\u65e7\\u6559 \\u65e7\\u5c45 \\u65e7\\u5386 \\u65e7\\u4f8b \\u65e7\\u5e74 \\u65e7\\u60c5 \\u65e7\\u65e5 \\u65e7\\u8bd7 \\u65e7\\u65f6 \\u65e7\\u5f0f \\u65e7\\u4e8b \\u65e7\\u4e66 \\u65e7\\u4fd7 \\u65e7\\u4f53 \\u65e7\\u95fb \\u65e7\\u7269 \\u65e7\\u4e60 \\u65e7\\u5b66 \\u65e7\\u4e1a \\u65e7\\u53cb \\u65e7\\u96e8 \\u65e7\\u7ea6 \\u65e7\\u5b85 \\u65e7\\u7ae0 \\u65e7\\u8d26 \\u65e7\\u77e5 \\u65e7\\u5740 \\u65e7\\u5236 \\u81fc\\u9f7f \\u6551\\u9a7e \\u6551\\u5e94 \\u5c31\\u4f34 \\u5c31\\u4fbf \\u5c31\\u9910 \\u5c31\\u6b64 \\u5c31\\u9053 \\u5c31\\u5730 \\u5c31\\u8303 \\u5c31\\u5408 \\u5c31\\u6b7c \\u5c31\\u6559 \\u5c31\\u8fd1 \\u5c31\\u91cc \\u5c31\\u8058 \\u5c31\\u64d2 \\u5c31\\u5bdd \\u5c31\\u8ba9 \\u5c31\\u4efb \\u5c31\\u98df \\u5c31\\u52bf \\u5c31\\u4e8b \\u5c31\\u662f \\u5c31\\u624b \\u5c31\\u7b97 \\u5c31\\u4f4d \\u5c31\\u5e2d \\u5c31\\u7eea \\u5c31\\u5b66 \\u5c31\\u8981 \\u5c31\\u4e1a \\u5c31\\u533b \\u5c31\\u4e49 \\u5c31\\u8bca \\u5c31\\u6b63 \\u5c31\\u804c \\u5c31\\u5ea7 \\u8205\\u7236 \\u8205\\u59d1 \\u8205\\u8205 \\u8205\\u5988 \\u8205\\u6bcd \\u8205\\u7237 \\u8205\\u5b50 \\u62d8\\u7981 \\u62d8\\u7559 \\u62d8\\u6ce5 \\u5c45\\u7559 \\u96ce\\u9e20 \\u5c40\\u91cf \\u6a58\\u5b50 \\u5480\\u56bc \\u6cae\\u4e27 \\u4e3e\\u884c \\u5de8\\u91cf \\u53e5\\u8bfb \\u53e5\\u8292 \\u53e5\\u5b50 \\u5267\\u573a \\u805a\\u843d \\u5a1f\\u79c0 \\u5377\\u5c3a \\u5377\\u53d1 \\u5377\\u66f2 \\u5377\\u70df \\u5377\\u626c \\u5377\\u4e91 \\u5377\\u5b50 \\u51b3\\u6597 \\u5014\\u5f3a \\u519b\\u4e50 \\u519b\\u4ee4 \\u519b\\u957f \\u83cc\\u67c4 \\u83cc\\u76d6 \\u83cc\\u4f1e \\u7b60\\u8fde \\u4fca\\u79c0 \\u96bd\\u6c38 \\u5494\\u5693 \\u5496\\u55b1 \\u5580\\u5427 \\u5580\\u5693 \\u5361\\u8f66 \\u5361\\u5c3a \\u5361\\u5e26 \\u5361\\u89c4 \\u5361\\u7247 \\u5361\\u5176 \\u5361\\u94b3 \\u5361\\u901a \\u5361\\u7eb8 \\u5361\\u5b50 \\u5f00\\u573a \\u5f00\\u7981 \\u5f00\\u6e9c \\u5f00\\u70ae \\u5f00\\u8f9f \\u5f00\\u7403 \\u520a\\u884c \\u52d8\\u6821 \\u574e\\u5777 \\u770b\\u7ba1 \\u770b\\u62a4 \\u770b\\u5bb6 \\u770b\\u95e8 \\u770b\\u5b88 \\u770b\\u5934 \\u770b\\u76f8 \\u770b\\u62bc \\u770b\\u4e2d \\u8003\\u573a \\u8003\\u7a76 \\u82db\\u6c42 \\u79d1\\u957f \\u7aa0\\u81fc \\u54b3\\u8840 \\u53ef\\u66fe \\u53ef\\u6076 \\u53ef\\u6c57 \\u53ef\\u884c \\u53ef\\u6570 \\u53ef\\u7740 \\u6e34\\u6c42 \\u523b\\u8584 \\u5ba2\\u6d41 \\u57a6\\u79cd \\u6073\\u5207 \\u6073\\u6c42 \\u5751\\u8499 \\u542d\\u54e7 \\u542d\\u6c14 \\u542d\\u58f0 \\u7a7a\\u767d \\u7a7a\\u762a \\u7a7a\\u573a \\u7a7a\\u5730 \\u7a7a\\u989d \\u7a7a\\u513f \\u7a7a\\u843d \\u7a7a\\u96be \\u7a7a\\u70ae \\u7a7a\\u7f3a \\u7a7a\\u9699 \\u7a7a\\u6687 \\u7a7a\\u95f2 \\u7a7a\\u4f59 \\u7a7a\\u8f6c \\u7a7a\\u5b50 \\u5025\\u4f97 \\u5025\\u506c \\u6050\\u5413 \\u53e3\\u4f9b \\u53e3\\u89d2 \\u53e3\\u4ee4 \\u53e3\\u5b50 \\u6263\\u7559 \\u6263\\u7403 \\u6263\\u5b50 \\u67af\\u673d \\u54ed\\u4e27 \\u82e6\\u71ac \\u82e6\\u53c2 \\u82e6\\u5dee \\u82e6\\u6597 \\u82e6\\u5e72 \\u82e6\\u884c \\u82e6\\u9152 \\u82e6\\u96be \\u88e4\\u8869 \\u88e4\\u5b50 \\u7b77\\u5b50 \\u5bbd\\u7ef0 \\u6b3e\\u7559 \\u6b3e\\u66f2 \\u6b3e\\u8bc6 \\u5321\\u6551 \\u5321\\u8c2c \\u6846\\u5b50 \\u4e8f\\u5f97 \\u4e8f\\u7d2f \\u7aa5\\u5ea6 \\u55b9\\u5549 \\u6e83\\u8113 \\u6127\\u759a \\u6606\\u66f2 \\u56f0\\u89c9 \\u9614\\u5c11 \\u5ed3\\u843d \\u62c9\\u6746 \\u62c9\\u7ea4 \\u5587\\u561b \\u6765\\u5f97 \\u6765\\u5934 \\u6765\\u7740 \\u83b1\\u585e \\u765e\\u75e2 \\u7bee\\u7403 \\u7bee\\u5b50 \\u61d2\\u5f97 \\u61d2\\u6563 \\u70c2\\u7cca \\u6ee5\\u8c03 \\u90ce\\u8205 \\u72fc\\u85c9 \\u5eca\\u574a \\u6994\\u5934 \\u6d6a\\u5934 \\u635e\\u7740 \\u52b3\\u7d2f \\u8001\\u51e0 \\u8001\\u5c06 \\u8001\\u9152 \\u8001\\u5c11 \\u8001\\u8c03 \\u8001\\u673d \\u8001\\u5b50 \\u59e5\\u59e5 \\u59e5\\u7237 \\u5520\\u53e8 \\u5520\\u55d1 \\u4e50\\u6c60 \\u4e50\\u5f97 \\u4e50\\u6bb5 \\u4e50\\u961f \\u4e50\\u5e9c \\u4e50\\u611f \\u4e50\\u6b4c \\u4e50\\u7406 \\u4e50\\u5f8b \\u4e50\\u8ff7 \\u4e50\\u8c31 \\u4e50\\u5668 \\u4e50\\u6e05 \\u4e50\\u66f2 \\u4e50\\u58f0 \\u4e50\\u5e08 \\u4e50\\u624b \\u4e50\\u575b \\u4e50\\u56e2 \\u4e50\\u821e \\u4e50\\u97f3 \\u4e50\\u7ae0 \\u52d2\\u4ee4 \\u4e86\\u5f53 \\u4e86\\u5f97 \\u6a91\\u6728 \\u5792\\u7403 \\u78ca\\u843d \\u7d2f\\u6b21 \\u7d2f\\u79ef \\u7d2f\\u53ca \\u7d2f\\u8ba1 \\u7d2f\\u52a0 \\u7d2f\\u8fdb \\u7d2f\\u7d2f \\u7d2f\\u5e74 \\u7d2f\\u4e16 \\u7d2f\\u6708 \\u64c2\\u53f0 \\u64c2\\u4e3b \\u51b7\\u573a \\u51b7\\u843d \\u51b7\\u8f67 \\u79bb\\u95f4 \\u79bb\\u4f11 \\u7f79\\u96be \\u8821\\u6d4b \\u793c\\u70ae \\u91cc\\u5f04 \\u91cc\\u5934 \\u4fda\\u66f2 \\u7406\\u53d1 \\u529b\\u573a \\u529b\\u884c \\u529b\\u91cf \\u529b\\u6c42 \\u5386\\u671d \\u5386\\u4e45 \\u5386\\u6570 \\u5389\\u884c \\u7acb\\u573a \\u7acb\\u79cb \\u4e3d\\u6c34 \\u5229\\u843d \\u5229\\u7387 \\u4f8b\\u884c \\u4f8b\\u5047 \\u4f8b\\u5b50 \\u6817\\u5b50 \\u8fde\\u6746 \\u8fde\\u7d2f \\u8fde\\u957f \\u5e18\\u5b50 \\u8138\\u76f8 \\u7ec3\\u5c31 \\u604b\\u65e7 \\u94fe\\u7403 \\u826f\\u5c06 \\u826f\\u4e45 \\u83a8\\u7ef8 \\u4e24\\u91cd \\u4eae\\u76f8 \\u9753\\u767d \\u9753\\u4e3d \\u9753\\u59b9 \\u9753\\u5973 \\u9753\\u4ed4 \\u91cf\\u53d8 \\u91cf\\u8bcd \\u91cf\\u7eb2 \\u91cf\\u529b \\u91cf\\u80fd \\u91cf\\u5211 \\u91cf\\u5b50 \\u8e09\\u8dc4 \\u5be5\\u843d \\u64a9\\u62e8 \\u64a9\\u52a8 \\u64a9\\u9017 \\u64a9\\u5f00 \\u64a9\\u60f9 \\u6f66\\u8349 \\u6f66\\u5012 \\u6599\\u9152 \\u6599\\u5b50 \\u77ad\\u54e8 \\u77ad\\u671b \\u54a7\\u54a7 \\u5217\\u4f20 \\u70c8\\u9152 \\u88c2\\u7f1d \\u8d94\\u8d84 \\u6797\\u573a \\u6797\\u5b50 \\u4e34\\u573a \\u4e34\\u671d \\u4e34\\u884c \\u4e34\\u96be \\u6dcb\\u75c5 \\u6dcb\\u6ee4 \\u9cde\\u7532 \\u7075\\u67e9 \\u7075\\u4e18 \\u94c3\\u94db \\u96f6\\u843d \\u96f6\\u6563 \\u53e6\\u884c \\u4ee4\\u7231 \\u4ee4\\u5ad2 \\u4ee4\\u5f1f \\u4ee4\\u7bad \\u4ee4\\u90ce \\u4ee4\\u724c \\u4ee4\\u65d7 \\u4ee4\\u4eb2 \\u4ee4\\u4eba \\u4ee4\\u5802 \\u4ee4\\u5144 \\u4ee4\\u5c0a \\u6e9c\\u8fb9 \\u6e9c\\u51b0 \\u6e9c\\u69fd \\u6e9c\\u8fbe \\u6e9c\\u5149 \\u6e9c\\u53f7 \\u6e9c\\u6ed1 \\u6e9c\\u5706 \\u6e9c\\u8d70 \\u5218\\u90a6 \\u5218\\u6d77 \\u6d4f\\u89c8 \\u6d4f\\u9633 \\u7559\\u522b \\u7559\\u6b65 \\u7559\\u6210 \\u7559\\u4f20 \\u7559\\u5b58 \\u7559\\u5f85 \\u7559\\u7ea7 \\u7559\\u5c45 \\u7559\\u5ba2 \\u7559\\u7a7a \\u7559\\u604b \\u7559\\u95e8 \\u7559\\u96be \\u7559\\u5ff5 \\u7559\\u9e1f \\u7559\\u60c5 \\u7559\\u4efb \\u7559\\u795e \\u7559\\u5b88 \\u7559\\u4e0b \\u7559\\u5fc3 \\u7559\\u5bbf \\u7559\\u5b66 \\u7559\\u8a00 \\u7559\\u6d0b \\u7559\\u610f \\u7559\\u5f71 \\u7559\\u7528 \\u7559\\u804c \\u7559\\u7f6e \\u7559\\u79cd \\u7559\\u4f4f \\u7559\\u9a7b \\u6d41\\u5f0a \\u6d41\\u53d8 \\u6d41\\u64ad \\u6d41\\u5e03 \\u6d41\\u4ea7 \\u6d41\\u7545 \\u6d41\\u7a0b \\u6d41\\u4f20 \\u6d41\\u7a9c \\u6d41\\u5f39 \\u6d41\\u8361 \\u6d41\\u52a8 \\u6d41\\u6bd2 \\u6d41\\u82b3 \\u6d41\\u653e \\u6d41\\u98ce \\u6d41\\u611f \\u6d41\\u5149 \\u6d41\\u6c57 \\u6d41\\u884c \\u6d41\\u5c3d \\u6d41\\u5bc7 \\u6d41\\u6d6a \\u6d41\\u6cea \\u6d41\\u79bb \\u6d41\\u4e3d \\u6d41\\u5229 \\u6d41\\u8fde \\u6d41\\u91cf \\u6d41\\u9732 \\u6d41\\u843d \\u6d41\\u6c13 \\u6d41\\u6c11 \\u6d41\\u660e \\u6d41\\u8111 \\u6d41\\u5e74 \\u6d41\\u6d3e \\u6d41\\u76fc \\u6d41\\u6c14 \\u6d41\\u6563 \\u6d41\\u6c99 \\u6d41\\u5931 \\u6d41\\u98df \\u6d41\\u77e2 \\u6d41\\u901d \\u6d41\\u6c34 \\u6d41\\u82cf \\u6d41\\u4fd7 \\u6d41\\u901f \\u6d41\\u6dcc \\u6d41\\u4f53 \\u6d41\\u901a \\u6d41\\u4ea1 \\u6d41\\u5f99 \\u6d41\\u6d8e \\u6d41\\u5411 \\u6d41\\u6cfb \\u6d41\\u661f \\u6d41\\u5f62 \\u6d41\\u8a00 \\u6d41\\u6ea2 \\u6d41\\u8424 \\u6d41\\u57df \\u6d41\\u5bd3 \\u6d41\\u8d28 \\u6d41\\u8f6c \\u786b\\u5316 \\u786b\\u9ec4 \\u786b\\u78fa \\u786b\\u9178 \\u998f\\u5206 \\u69b4\\u5f39 \\u69b4\\u706b \\u69b4\\u83b2 \\u954f\\u91d1 \\u954f\\u5b50 \\u7624\\u80c3 \\u7624\\u5b50 \\u67f3\\u7f16 \\u67f3\\u7b1b \\u67f3\\u82b1 \\u67f3\\u6c5f \\u67f3\\u6797 \\u67f3\\u7709 \\u67f3\\u7434 \\u67f3\\u4e1d \\u67f3\\u4f53 \\u67f3\\u6761 \\u67f3\\u5df7 \\u67f3\\u7d6e \\u67f3\\u8170 \\u67f3\\u53f6 \\u67f3\\u83ba \\u67f3\\u679d \\u67f3\\u5dde \\u516d\\u5b89 \\u516d\\u671d \\u516d\\u755c \\u516d\\u8151 \\u516d\\u6839 \\u516d\\u5408 \\u516d\\u7532 \\u516d\\u8def \\u516d\\u4eb2 \\u516d\\u795e \\u516d\\u4e66 \\u516d\\u4e00 \\u516d\\u827a \\u516d\\u6b32 \\u516d\\u6708 \\u905b\\u9a6c \\u905b\\u9e1f \\u905b\\u5f2f \\u9f99\\u5377 \\u7b3c\\u7edc \\u7b3c\\u7edf \\u7b3c\\u7f69 \\u7089\\u5b50 \\u5f55\\u4f9b \\u788c\\u66f2 \\u788c\\u78a1 \\u8def\\u5b50 \\u8f98\\u8f73 \\u9732\\u5e03 \\u9732\\u70b9 \\u9732\\u9aa8 \\u9732\\u9152 \\u9732\\u6c34 \\u9732\\u53f0 \\u9732\\u5929 \\u9732\\u5934 \\u9732\\u76f8 \\u9732\\u5bbf \\u9732\\u8425 \\u9732\\u73e0 \\u5375\\u6ce1 \\u4e71\\u5f39 \\u4e71\\u6d41 \\u6ca6\\u843d \\u6ca6\\u6ca1 \\u6ca6\\u4e27 \\u7eb6\\u5dfe \\u8f6e\\u6d41 \\u8f6e\\u4f11 \\u8f6e\\u79cd \\u8f6e\\u8f6c \\u8f6e\\u5b50 \\u8bba\\u96be \\u8bba\\u8c03 \\u8bba\\u8bed \\u903b\\u8f91 \\u9aa1\\u5b50 \\u87ba\\u6746 \\u88f8\\u9732 \\u843d\\u699c \\u843d\\u7b14 \\u843d\\u8198 \\u843d\\u6cca \\u843d\\u8349 \\u843d\\u5dee \\u843d\\u6f6e \\u843d\\u5c18 \\u843d\\u6210 \\u843d\\u5f97 \\u843d\\u5730 \\u843d\\u7b2c \\u843d\\u70b9 \\u843d\\u53d1 \\u843d\\u540e \\u843d\\u6237 \\u843d\\u8352 \\u843d\\u7c4d \\u843d\\u4ef7 \\u843d\\u811a \\u843d\\u7a7a \\u843d\\u6b3e \\u843d\\u6cea \\u843d\\u9a6c \\u843d\\u5bde \\u843d\\u58a8 \\u843d\\u5e55 \\u843d\\u96be \\u843d\\u65e5 \\u843d\\u5c71 \\u843d\\u5b9e \\u843d\\u6c34 \\u843d\\u9501 \\u843d\\u5957 \\u843d\\u4f53 \\u843d\\u62d3 \\u843d\\u7f51 \\u843d\\u4f0d \\u843d\\u9009 \\u843d\\u53f6 \\u843d\\u97f3 \\u843d\\u82f1 \\u843d\\u7167 \\u843d\\u6795 \\u843d\\u5b50 \\u843d\\u5ea7 \\u65c5\\u884c \\u5c65\\u884c \\u5f8b\\u4ee4 \\u7eff\\u6797 \\u7eff\\u8425 \\u5988\\u5988 \\u9ebb\\u5c06 \\u9a6c\\u53a9 \\u9a6c\\u7403 \\u9a6c\\u5708 \\u9a6c\\u624e \\u739b\\u66f2 \\u8682\\u8782 \\u8682\\u86b1 \\u5417\\u5561 \\u57cb\\u6ca1 \\u57cb\\u6028 \\u9ea6\\u9152 \\u9ea6\\u79cb \\u9ea6\\u5b50 \\u5356\\u76f8 \\u8109\\u8109 \\u86ee\\u5e72 \\u86ee\\u6a2a \\u9992\\u5934 \\u7792\\u54c4 \\u6ee1\\u62e7 \\u6ee1\\u8f7d \\u8c29\\u9a82 \\u8513\\u83c1 \\u6f2b\\u6d41 \\u8292\\u79cd \\u76f2\\u6d41 \\u732b\\u8170 \\u6bdb\\u53d1 \\u7266\\u725b \\u5e3d\\u5b50 \\u6ca1\\u6551 \\u6ca1\\u843d \\u6ca1\\u5165 \\u6ca1\\u6536 \\u6ca1\\u7f9e \\u7164\\u6838 \\u7164\\u7403 \\u7f8e\\u5dee \\u7f8e\\u53d1 \\u7f8e\\u9152 \\u59b9\\u59b9 \\u95e8\\u7f1d \\u95e8\\u7981 \\u95e8\\u69db \\u95f7\\u9152 \\u95f7\\u96f7 \\u95f7\\u6c14 \\u95f7\\u70ed \\u8499\\u853d \\u8499\\u5c18 \\u8499\\u57a2 \\u8499\\u54c4 \\u8499\\u6df7 \\u8499\\u6627 \\u8499\\u8499 \\u8499\\u96be \\u8499\\u9a97 \\u8499\\u5c71 \\u8499\\u53d7 \\u8499\\u6587 \\u8499\\u7f9e \\u8499\\u533b \\u8499\\u51a4 \\u8499\\u65cf \\u731b\\u5c06 \\u5b5f\\u79cb \\u54aa\\u5511 \\u5f25\\u7559 \\u5f25\\u8499 \\u8ff7\\u7cca \\u8ff7\\u8499 \\u7cdc\\u5b50 \\u9761\\u4e3d \\u9761\\u9761 \\u7c73\\u82be \\u7c73\\u9152 \\u7ef5\\u8584 \\u514d\\u5f97 \\u52c9\\u5f3a \\u9762\\u7cca \\u9762\\u5b50 \\u5999\\u5904 \\u6c11\\u4e50 \\u6cef\\u6ca1 \\u540d\\u5c06 \\u540d\\u89d2 \\u540d\\u9152 \\u540d\\u6d41 \\u540d\\u66f2 \\u540d\\u5e16 \\u660e\\u671d \\u660e\\u5904 \\u660e\\u4ee4 \\u660e\\u62a2 \\u660e\\u79c0 \\u9169\\u914a \\u547d\\u4ee4 \\u547d\\u4e2d \\u8c2c\\u5956 \\u8c2c\\u8bba \\u8c2c\\u8bf4 \\u8c2c\\u8bef \\u8c2c\\u79cd \\u6a21\\u677f \\u6a21\\u7cca \\u6a21\\u5177 \\u6a21\\u6837 \\u6a21\\u5b50 \\u6469\\u6332 \\u78e8\\u53e8 \\u78e8\\u574a \\u78e8\\u7c89 \\u78e8\\u96be \\u78e8\\u76d8 \\u78e8\\u788e \\u78e8\\u6298 \\u78e8\\u5b50 \\u62b9\\u5e03 \\u62b9\\u7070 \\u62b9\\u89d2 \\u62b9\\u8138 \\u62b9\\u9762 \\u62b9\\u715e \\u672b\\u6d41 \\u83ab\\u5f97 \\u83ab\\u90aa \\u84e6\\u5730 \\u8c89\\u7ed2 \\u8c89\\u5b50 \\u725f\\u5e73 \\u67d0\\u7532 \\u6bcd\\u755c \\u6bcd\\u725b \\u6728\\u5934 \\u76ee\\u7684 \\u82dc\\u84ff \\u7267\\u573a \\u66ae\\u79cb \\u54ea\\u8fb9 \\u54ea\\u5412 \\u90a3\\u4e48 \\u90a3\\u66f2 \\u7eb3\\u964d \\u5976\\u9152 \\u5976\\u5976 \\u5976\\u725b \\u8010\\u4e45 \\u5357\\u671d \\u5357\\u4e50 \\u5357\\u66f2 \\u96be\\u71ac \\u96be\\u80de \\u96be\\u5f97 \\u96be\\u6c11 \\u96be\\u4fa8 \\u96be\\u5c5e \\u96be\\u53cb \\u56ca\\u81aa \\u8111\\u5b50 \\u5185\\u4f20 \\u5185\\u759a \\u5185\\u8499 \\u5185\\u7701 \\u5185\\u79c0 \\u5185\\u5e94 \\u80fd\\u5e72 \\u80fd\\u91cf \\u6ce5\\u53e4 \\u6ce5\\u9cc5 \\u4f60\\u4eec \\u9006\\u884c \\u9006\\u6d41 \\u5e74\\u5047 \\u5e74\\u5c11 \\u5e74\\u957f \\u9ecf\\u7cca \\u9ecf\\u7740 \\u78be\\u573a \\u78be\\u574a \\u5ff5\\u53e8 \\u5ff5\\u65e7 \\u5ff5\\u5934 \\u5a18\\u8205 \\u917f\\u9152 \\u8885\\u5a1c \\u5c3f\\u812c \\u954a\\u5b50 \\u5b81\\u53ef \\u5b81\\u80af \\u5b81\\u5e16 \\u5b81\\u613f \\u62e7\\u7d27 \\u599e\\u513f \\u599e\\u599e \\u599e\\u5b50 \\u725b\\u6252 \\u725b\\u84a1 \\u725b\\u8f66 \\u725b\\u75d8 \\u725b\\u728a \\u725b\\u809a \\u725b\\u987f \\u725b\\u8033 \\u725b\\u7caa \\u725b\\u500c \\u725b\\u9ec4 \\u725b\\u89d2 \\u725b\\u7b4b \\u725b\\u52b2 \\u725b\\u680f \\u725b\\u90ce \\u725b\\u9a6c \\u725b\\u6bdb \\u725b\\u867b \\u725b\\u5976 \\u725b\\u8169 \\u725b\\u6392 \\u725b\\u68da \\u725b\\u76ae \\u725b\\u6c14 \\u725b\\u5708 \\u725b\\u8089 \\u725b\\u4e73 \\u725b\\u820d \\u725b\\u5934 \\u725b\\u819d \\u725b\\u6027 \\u725b\\u9785 \\u725b\\u75ab \\u725b\\u6cb9 \\u725b\\u4ed4 \\u626d\\u626f \\u626d\\u642d \\u626d\\u6253 \\u626d\\u52a8 \\u626d\\u7ede \\u626d\\u7ed3 \\u626d\\u4e8f \\u626d\\u529b \\u626d\\u634f \\u626d\\u66f2 \\u626d\\u4f24 \\u626d\\u9001 \\u626d\\u5934 \\u626d\\u8f6c \\u5ff8\\u6029 \\u7ebd\\u5e26 \\u7ebd\\u7ed3 \\u7ebd\\u6263 \\u7ebd\\u897b \\u7ebd\\u5b50 \\u62d7\\u52b2 \\u62d7\\u53e3 \\u519c\\u573a \\u519c\\u755c \\u5f04\\u5802 \\u5f04\\u810f \\u5974\\u4ec6 \\u6012\\u53f7 \\u6012\\u559d \\u6696\\u548c \\u6696\\u6d41 \\u6696\\u8896 \\u759f\\u75be \\u759f\\u868a \\u759f\\u5b50 \\u5973\\u7ea2 \\u5973\\u5c06 \\u5973\\u6d41 \\u5973\\u4ec6 \\u6bb4\\u6597 \\u5455\\u5410 \\u5455\\u8840 \\u556a\\u5693 \\u556a\\u55d2 \\u722c\\u884c \\u8019\\u5b50 \\u6015\\u7f9e \\u62cd\\u5b50 \\u6392\\u573a \\u6392\\u70ae \\u6392\\u957f \\u724c\\u4e5d \\u724c\\u5b50 \\u6500\\u4f9b \\u6500\\u6298 \\u76d8\\u66f2 \\u76fc\\u5934 \\u65c1\\u843d \\u8180\\u80f1 \\u8180\\u5b50 \\u80d6\\u5b50 \\u5228\\u51b0 \\u5228\\u5e8a \\u5228\\u5200 \\u5228\\u5b50 \\u8dd1\\u8c03 \\u6ce1\\u6850 \\u70ae\\u5175 \\u70ae\\u8f66 \\u70ae\\u5f39 \\u70ae\\u7070 \\u70ae\\u706b \\u70ae\\u51fb \\u70ae\\u8230 \\u70ae\\u53e3 \\u70ae\\u70d9 \\u70ae\\u697c \\u70ae\\u624b \\u70ae\\u5854 \\u70ae\\u53f0 \\u70ae\\u819b \\u70ae\\u8247 \\u70ae\\u4f4d \\u70ae\\u773c \\u70ae\\u8863 \\u70ae\\u4ed7 \\u70ae\\u7af9 \\u70ae\\u5b50 \\u966a\\u9152 \\u57f9\\u4fee \\u914d\\u79f0 \\u914d\\u7ed9 \\u914d\\u89d2 \\u914d\\u4e50 \\u914d\\u66f2 \\u55b7\\u8584 \\u55b7\\u9999 \\u76c6\\u5b50 \\u62a8\\u5f39 \\u68da\\u5708 \\u68da\\u5b50 \\u6279\\u6597 \\u6279\\u5047 \\u6279\\u91cf \\u7eb0\\u7f2a \\u62ab\\u9732 \\u62ab\\u9761 \\u62ab\\u6563 \\u5288\\u53c9 \\u5288\\u67f4 \\u76ae\\u7403 \\u76ae\\u76f8 \\u76ae\\u5b50 \\u75b2\\u7d2f \\u75b2\\u6c93 \\u813e\\u810f \\u8c94\\u8c85 \\u75de\\u5b50 \\u7656\\u597d \\u8f9f\\u8c23 \\u504f\\u5dee \\u504f\\u5c06 \\u728f\\u725b \\u7247\\u513f \\u7247\\u5934 \\u7247\\u5b50 \\u9a97\\u5b50 \\u6f02\\u767d \\u6f02\\u4eae \\u6f02\\u6d41 \\u6f02\\u67d3 \\u6f02\\u6d17 \\u7f25\\u7f08 \\u98d8\\u843d \\u560c\\u5464 \\u82e4\\u84dd \\u6487\\u5634 \\u62fc\\u62a2 \\u59d8\\u5934 \\u8d2b\\u8840 \\u9891\\u7387 \\u9891\\u6570 \\u54c1\\u884c \\u54c1\\u9152 \\u5e73\\u884c \\u5e73\\u6d41 \\u5e73\\u94fa \\u5e73\\u8c03 \\u8bc4\\u4f20 \\u8bc4\\u5f39 \\u5c4f\\u6c14 \\u5c4f\\u9000 \\u5c4f\\u606f \\u74f6\\u5b50 \\u8feb\\u4ee4 \\u8feb\\u5207 \\u7834\\u65e7 \\u7834\\u843d \\u7834\\u76f8 \\u6251\\u6551 \\u6251\\u68f1 \\u6251\\u6247 \\u94fa\\u677f \\u94fa\\u5e95 \\u94fa\\u6237 \\u94fa\\u644a \\u94fa\\u4f4d \\u94fa\\u5b50 \\u4ec6\\u4ece \\u4ec6\\u5987 \\u4ec6\\u4ec6 \\u4ec6\\u4eba \\u4ec6\\u5f79 \\u812f\\u5b50 \\u84b2\\u67f3 \\u6734\\u785d \\u8c31\\u513f \\u8c31\\u66f2 \\u6c06\\u6c07 \\u66dd\\u5149 \\u66dd\\u9732 \\u59bb\\u8205 \\u51c4\\u5207 \\u671f\\u5e74 \\u671f\\u6c42 \\u6b3a\\u54c4 \\u6b3a\\u8499 \\u8e4a\\u8df7 \\u5947\\u96f6 \\u5947\\u5076 \\u5947\\u6570 \\u5947\\u79c0 \\u7948\\u6c42 \\u65d7\\u5b50 \\u9ba8\\u79d1 \\u4e5e\\u964d \\u4e5e\\u6c42 \\u4f01\\u6c42 \\u675e\\u67f3 \\u542f\\u8499 \\u8d77\\u884c \\u8d77\\u54c4 \\u8d77\\u89e3 \\u8d77\\u843d \\u8d77\\u5174 \\u6c14\\u91cf \\u6c14\\u6d41 \\u6c14\\u7403 \\u6c14\\u8840 \\u6c14\\u94bb \\u6c7d\\u9152 \\u5668\\u4e50 \\u5668\\u91cf \\u6070\\u5f53 \\u5343\\u5361 \\u5343\\u79cb \\u8fc1\\u5c31 \\u8fc1\\u6d41 \\u7275\\u7d2f \\u7275\\u725b \\u7275\\u5f3a \\u94c5\\u7403 \\u94c5\\u5c71 \\u524d\\u573a \\u524d\\u671d \\u524d\\u884c \\u524d\\u5934 \\u94b3\\u5b50 \\u6f5c\\u884c \\u6f5c\\u6d41 \\u6d45\\u8584 \\u6d45\\u9732 \\u6b49\\u759a \\u67aa\\u6746 \\u67aa\\u70ae \\u6217\\u810a \\u6217\\u9762 \\u8154\\u8c03 \\u5f3a\\u903c \\u5f3a\\u5e72 \\u5f3a\\u884c \\u5f3a\\u6a2a \\u5f3a\\u5c06 \\u5f3a\\u52b2 \\u5f3a\\u4ee4 \\u5f3a\\u7559 \\u5f3a\\u8feb \\u5f3a\\u6c42 \\u5f3a\\u4eba \\u5f3a\\u8c03 \\u5f3a\\u7b11 \\u5f3a\\u989c \\u5f3a\\u5360 \\u5f3a\\u5634 \\u62a2\\u767d \\u62a2\\u6e21 \\u62a2\\u593a \\u62a2\\u653b \\u62a2\\u8d2d \\u62a2\\u8bdd \\u62a2\\u5efa \\u62a2\\u52ab \\u62a2\\u6551 \\u62a2\\u62cd \\u62a2\\u4eb2 \\u62a2\\u5892 \\u62a2\\u5e02 \\u62a2\\u6536 \\u62a2\\u624b \\u62a2\\u5148 \\u62a2\\u9669 \\u62a2\\u4fee \\u62a2\\u8fd0 \\u62a2\\u5360 \\u62a2\\u79cd \\u62a2\\u5634 \\u956a\\u6c34 \\u8dc4\\u8e09 \\u6084\\u6084 \\u8df7\\u8e4a \\u5de7\\u5e72 \\u4fcf\\u5934 \\u7fd8\\u68f1 \\u5207\\u9f7f \\u5207\\u5408 \\u5207\\u8bb0 \\u5207\\u5fcc \\u5207\\u8fd1 \\u5207\\u8109 \\u5207\\u76fc \\u5207\\u8eab \\u5207\\u5b9e \\u5207\\u9898 \\u5207\\u8981 \\u5207\\u97f3 \\u5207\\u8bca \\u5207\\u4e2d \\u8304\\u5b50 \\u602f\\u573a \\u60ec\\u5f53 \\u94a6\\u5dee \\u4fb5\\u7565 \\u4fb5\\u5360 \\u4eb2\\u5bb6 \\u4eb2\\u5207 \\u9752\\u85cf \\u8f7b\\u8584 \\u6e05\\u79c0 \\u60c5\\u5206 \\u8bf7\\u5047 \\u8bf7\\u964d \\u8bf7\\u6c42 \\u8bf7\\u8c03 \\u8bf7\\u5e16 \\u7a77\\u7a76 \\u4e18\\u58d1 \\u4e18\\u9675 \\u4e18\\u5893 \\u4e18\\u8111 \\u4e18\\u75b9 \\u79cb\\u6ce2 \\u79cb\\u64ad \\u79cb\\u83dc \\u79cb\\u5206 \\u79cb\\u98ce \\u79cb\\u8015 \\u79cb\\u5149 \\u79cb\\u6beb \\u79cb\\u540e \\u79cb\\u5b63 \\u79cb\\u666f \\u79cb\\u51c9 \\u79cb\\u7cae \\u79cb\\u4ee4 \\u79cb\\u5343 \\u79cb\\u65e5 \\u79cb\\u8272 \\u79cb\\u6536 \\u79cb\\u719f \\u79cb\\u971c \\u79cb\\u6c34 \\u79cb\\u5929 \\u79cb\\u95f1 \\u79cb\\u6c5b \\u79cb\\u610f \\u79cb\\u6e38 \\u79cb\\u79cd \\u6e6b\\u9698 \\u56da\\u8f66 \\u56da\\u72af \\u56da\\u7981 \\u56da\\u7262 \\u56da\\u7b3c \\u56da\\u5ba4 \\u56da\\u5f92 \\u56da\\u8863 \\u72b0\\u72f3 \\u6c42\\u7231 \\u6c42\\u6210 \\u6c42\\u544a \\u6c42\\u8d2d \\u6c42\\u548c \\u6c42\\u5a5a \\u6c42\\u89c1 \\u6c42\\u964d \\u6c42\\u6559 \\u6c42\\u89e3 \\u6c42\\u501f \\u6c42\\u6551 \\u6c42\\u5076 \\u6c42\\u4e5e \\u6c42\\u7b7e \\u6c42\\u4eb2 \\u6c42\\u60c5 \\u6c42\\u5168 \\u6c42\\u9976 \\u6c42\\u4eba \\u6c42\\u795e \\u6c42\\u751f \\u6c42\\u5b9e \\u6c42\\u552e \\u6c42\\u7d22 \\u6c42\\u4ed9 \\u6c42\\u5b66 \\u6c42\\u533b \\u6c42\\u96e8 \\u6c42\\u63f4 \\u6c42\\u6218 \\u6c42\\u8bc1 \\u6c42\\u77e5 \\u6c42\\u52a9 \\u866c\\u9aef \\u6cc5\\u6e21 \\u6cc5\\u6c34 \\u914b\\u957f \\u7403\\u5dee \\u7403\\u5b50 \\u9052\\u52b2 \\u88d8\\u76ae \\u8764\\u86d1 \\u533a\\u5212 \\u5c48\\u5c31 \\u5c48\\u66f2 \\u8eaf\\u5e72 \\u8eaf\\u58f3 \\u66f2\\u6c60 \\u66f2\\u6c5f \\u66f2\\u9756 \\u66f2\\u5267 \\u66f2\\u7387 \\u66f2\\u9762 \\u66f2\\u76ee \\u66f2\\u724c \\u66f2\\u8c31 \\u66f2\\u5947 \\u66f2\\u6cc9 \\u66f2\\u5f0f \\u66f2\\u6c34 \\u66f2\\u677e \\u66f2\\u575b \\u66f2\\u8c03 \\u66f2\\u6c83 \\u66f2\\u9633 \\u66f2\\u827a \\u66f2\\u6cfd \\u66f2\\u6298 \\u66f2\\u79cd \\u66f2\\u5468 \\u66f2\\u5b50 \\u53d6\\u5f97 \\u53d6\\u820d \\u53bb\\u5904 \\u53bb\\u7559 \\u5708\\u80a5 \\u5708\\u517b \\u5708\\u5b50 \\u5168\\u573a \\u5168\\u90fd \\u5168\\u7403 \\u5168\\u4f11 \\u6cc9\\u6d41 \\u62f3\\u5934 \\u529d\\u964d \\u529d\\u9152 \\u96c0\\u5b50 \\u786e\\u5f53 \\u786e\\u5207 \\u88d9\\u5b50 \\u67d3\\u53d1 \\u56b7\\u56b7 \\u7ed5\\u884c \\u70ed\\u548c \\u70ed\\u91cf \\u70ed\\u6d41 \\u70ed\\u5207 \\u70ed\\u8840 \\u70ed\\u8f67 \\u4eba\\u53c2 \\u4eba\\u6d41 \\u4eba\\u4eec \\u8ba4\\u5f97 \\u8ba4\\u8bc6 \\u4efb\\u4e18 \\u4ecd\\u65e7 \\u65e5\\u573a \\u65e5\\u843d \\u65e5\\u5934 \\u65e5\\u5b50 \\u7ed2\\u7403 \\u7ed2\\u7ee3 \\u5bb9\\u91cf \\u5bb9\\u7559 \\u6eb6\\u6597 \\u6eb6\\u8840 \\u8089\\u755c \\u8089\\u7624 \\u8089\\u725b \\u8089\\u94fa \\u5982\\u65e7 \\u5112\\u5c06 \\u8815\\u884c \\u4e73\\u81ed \\u4e73\\u725b \\u8fb1\\u6ca1 \\u5165\\u573a \\u5165\\u6d41 \\u8925\\u5b50 \\u8f6f\\u7981 \\u82e5\\u592b \\u5f31\\u51a0 \\u6d12\\u843d \\u6492\\u64ad \\u6492\\u65bd \\u6492\\u79cd \\u585e\\u5317 \\u585e\\u5916 \\u585e\\u97f3 \\u585e\\u8d23 \\u585e\\u5b50 \\u8d5b\\u573a \\u4e09\\u85cf \\u4e09\\u4e5d \\u4e09\\u79cb \\u4e09\\u901a \\u4f1e\\u83cc \\u6563\\u677f \\u6563\\u5175 \\u6563\\u573a \\u6563\\u53d1 \\u6563\\u7c89 \\u6563\\u5de5 \\u6563\\u5149 \\u6563\\u8bb0 \\u6563\\u5242 \\u6563\\u67b6 \\u6563\\u89c1 \\u6563\\u4ef6 \\u6563\\u5c45 \\u6563\\u4e71 \\u6563\\u843d \\u6563\\u6f2b \\u6563\\u66f2 \\u6563\\u5c04 \\u6563\\u4f53 \\u6563\\u6587 \\u6563\\u517b \\u6563\\u88c5 \\u6851\\u6939 \\u55d3\\u5b50 \\u4e27\\u80c6 \\u4e27\\u5bb6 \\u4e27\\u5047 \\u4e27\\u547d \\u4e27\\u5076 \\u4e27\\u6c14 \\u4e27\\u8eab \\u4e27\\u751f \\u4e27\\u5931 \\u4e27\\u4ea1 \\u626b\\u628a \\u626b\\u5174 \\u626b\\u5e1a \\u5ac2\\u5b50 \\u81ca\\u6c14 \\u81ca\\u5b50 \\u8272\\u8c03 \\u8272\\u76f8 \\u8272\\u5b50 \\u6c99\\u53c2 \\u6c99\\u573a \\u6c99\\u62c9 \\u6c99\\u67f3 \\u6c99\\u4e18 \\u6c99\\u5b50 \\u50bb\\u5b50 \\u53a6\\u95e8 \\u6b43\\u8840 \\u715e\\u767d \\u715e\\u6c14 \\u5c71\\u5c97 \\u5c71\\u70ae \\u5c71\\u4e18 \\u829f\\u79cb \\u5220\\u524a \\u82eb\\u5e03 \\u82eb\\u76d6 \\u9490\\u9570 \\u6247\\u52a8 \\u6247\\u5b50 \\u5584\\u884c \\u64c5\\u573a \\u5546\\u573a \\u5546\\u8d3e \\u5546\\u8c03 \\u4e0a\\u573a \\u4e0a\\u671d \\u4e0a\\u5f53 \\u4e0a\\u4f9b \\u4e0a\\u884c \\u4e0a\\u5c06 \\u4e0a\\u5377 \\u4e0a\\u6d41 \\u4e0a\\u94fa \\u4e0a\\u53bb \\u4e0a\\u58f0 \\u4e0a\\u5934 \\u4e0a\\u76f8 \\u70e7\\u9152 \\u70e7\\u7740 \\u7a0d\\u606f \\u52fa\\u5b50 \\u97f6\\u79c0 \\u5c11\\u5e9c \\u5c11\\u5987 \\u5c11\\u5c06 \\u5c11\\u91cf \\u5c11\\u5e74 \\u5c11\\u5973 \\u5c11\\u5c09 \\u5c11\\u76f8 \\u5c11\\u6821 \\u5c11\\u7237 \\u5c11\\u58ee \\u7ecd\\u9152 \\u54e8\\u5b50 \\u820c\\u82d4 \\u820c\\u5934 \\u86c7\\u884c \\u820d\\u5f97 \\u820d\\u547d \\u820d\\u5f03 \\u793e\\u957f \\u5c04\\u5e72 \\u5c04\\u6d41 \\u5c04\\u4e2d \\u7533\\u4ee4 \\u8eab\\u5206 \\u8eab\\u91cf \\u8eab\\u5b50 \\u6df1\\u5207 \\u6df1\\u79cb \\u6df1\\u7701 \\u6df1\\u77e5 \\u4ec0\\u83dc \\u5ba1\\u5ea6 \\u5ba1\\u6821 \\u751a\\u4e48 \\u751f\\u53d1 \\u751f\\u89d2 \\u751f\\u5c31 \\u751f\\u76f8 \\u751f\\u8096 \\u751f\\u9508 \\u751f\\u957f \\u58f0\\u573a \\u58f0\\u4e50 \\u58f0\\u8c03 \\u7272\\u755c \\u7ef3\\u5b50 \\u7701\\u5bdf \\u7701\\u5f97 \\u7701\\u4eb2 \\u7701\\u89c6 \\u7701\\u609f \\u80dc\\u671d \\u76db\\u996d \\u76db\\u5668 \\u5931\\u5f53 \\u5931\\u7981 \\u5931\\u843d \\u5931\\u4fee \\u5931\\u8840 \\u5931\\u7740 \\u5e08\\u7236 \\u5e08\\u5085 \\u5e08\\u957f \\u8bd7\\u5174 \\u8671\\u5b50 \\u72ee\\u5b50 \\u65bd\\u884c \\u65bd\\u6551 \\u65bd\\u820d \\u77f3\\u81fc \\u77f3\\u69b4 \\u77f3\\u5934 \\u65f6\\u4ee4 \\u65f6\\u8c03 \\u8bc6\\u76f8 \\u8bc6\\u7f9e \\u5b9e\\u5e72 \\u5b9e\\u884c \\u5b9e\\u843d \\u62fe\\u6387 \\u98df\\u91cf \\u83b3\\u841d \\u77e2\\u91cf \\u4f7f\\u5f97 \\u5e02\\u573a \\u5e02\\u957f \\u4f3c\\u7684 \\u4e8b\\u5047 \\u8bd5\\u884c \\u8bd5\\u79cd \\u67ff\\u5b50 \\u9002\\u5f53 \\u9002\\u91cf \\u9002\\u5e94 \\u55dc\\u597d \\u55dc\\u8840 \\u5319\\u5b50 \\u6536\\u573a \\u6536\\u7559 \\u6536\\u7387 \\u6536\\u79cb \\u624b\\u4ee4 \\u624b\\u7403 \\u624b\\u76f8 \\u5b88\\u65e7 \\u9996\\u76f8 \\u9996\\u957f \\u5bff\\u9152 \\u53d7\\u7985 \\u53d7\\u964d \\u53d7\\u7d2f \\u53d7\\u96be \\u7626\\u524a \\u4e66\\u573a \\u67a2\\u7ebd \\u500f\\u5730 \\u758f\\u843d \\u8f93\\u8840 \\u8d4e\\u5f53 \\u719f\\u7ec3 \\u6691\\u5047 \\u5c5e\\u76f8 \\u8700\\u7ee3 \\u85af\\u83a8 \\u675f\\u53d1 \\u6811\\u6748 \\u6811\\u5e72 \\u6570\\u53e8 \\u6570\\u70b9 \\u6570\\u4f0f \\u6570\\u4e5d \\u6570\\u91cf \\u6570\\u843d \\u6570\\u8bf4 \\u5237\\u767d \\u800d\\u6a2a \\u8870\\u843d \\u8870\\u673d \\u6454\\u6253 \\u6813\\u585e \\u53cc\\u6d41 \\u53cc\\u62a2 \\u53cc\\u91cd \\u6c34\\u5206 \\u6c34\\u9152 \\u6c34\\u91cf \\u6c34\\u6d41 \\u6c34\\u725b \\u6c34\\u7403 \\u6c34\\u6749 \\u6c34\\u76f8 \\u6c34\\u79c0 \\u6c34\\u8896 \\u6c34\\u9508 \\u7a0e\\u7387 \\u7761\\u89c9 \\u7761\\u76f8 \\u7761\\u7740 \\u987a\\u5dee \\u987a\\u6e9c \\u987a\\u6d41 \\u987a\\u5e94 \\u53f8\\u4ee4 \\u601d\\u65e7 \\u601d\\u91cf \\u6b7b\\u96be \\u6b7b\\u56da \\u56db\\u5904 \\u5bfa\\u89c2 \\u4f3a\\u5019 \\u8086\\u884c \\u677e\\u7403 \\u677e\\u6563 \\u5b8b\\u671d \\u9001\\u884c \\u9001\\u4e27 \\u82cf\\u6253 \\u82cf\\u7ee3 \\u4fd7\\u66f2 \\u901f\\u7387 \\u7b97\\u5f97 \\u7b97\\u4e86 \\u968f\\u5904 \\u5b59\\u5b50 \\u6240\\u5f97 \\u7d22\\u6c42 \\u9501\\u5319 \\u4ed6\\u4eec \\u5b83\\u4eec \\u5979\\u4eec \\u584c\\u843d \\u8e0f\\u5b9e \\u80ce\\u53d1 \\u53f0\\u7403 \\u53f0\\u5b50 \\u53f0\\u94bb \\u9a80\\u8361 \\u592a\\u51b2 \\u592a\\u76d1 \\u8d2a\\u6c42 \\u8d2a\\u5360 \\u644a\\u5b50 \\u575b\\u5b50 \\u8c08\\u5174 \\u8892\\u9732 \\u6bef\\u5b50 \\u63a2\\u6746 \\u6c64\\u6c64 \\u642a\\u585e \\u9557\\u5e8a \\u9557\\u5b54 \\u7cd6\\u8272 \\u70eb\\u53d1 \\u9003\\u5954 \\u9003\\u96be \\u6843\\u5b50 \\u5957\\u66f2 \\u5957\\u8896 \\u5957\\u79cd \\u7279\\u4f9b \\u7279\\u4e3a \\u85e4\\u8513 \\u85e4\\u7403 \\u8e22\\u7403 \\u63d0\\u9632 \\u63d0\\u5e72 \\u63d0\\u7559 \\u63d0\\u8c03 \\u8e44\\u5b50 \\u4f53\\u91cf \\u568f\\u55b7 \\u5929\\u5206 \\u5929\\u5c06 \\u5929\\u725b \\u5929\\u7403 \\u5929\\u9619 \\u5929\\u53f0 \\u5929\\u76f8 \\u751c\\u5934 \\u586b\\u7a7a \\u4f7b\\u8584 \\u6311\\u62e8 \\u6311\\u62c5 \\u6311\\u706f \\u6311\\u52a8 \\u6311\\u9017 \\u6311\\u82b1 \\u6311\\u660e \\u6311\\u5f04 \\u6311\\u8d77 \\u6311\\u5506 \\u6311\\u8845 \\u6311\\u6a90 \\u6311\\u6218 \\u6311\\u5b50 \\u6311\\u5634 \\u6761\\u4ee4 \\u6761\\u5b50 \\u8c03\\u5305 \\u8c03\\u67e5 \\u8c03\\u52a8 \\u8c03\\u5ea6 \\u8c03\\u9632 \\u8c03\\u5e72 \\u8c03\\u51fd \\u8c03\\u53f7 \\u8c03\\u6362 \\u8c03\\u96c6 \\u8c03\\u5377 \\u8c03\\u79bb \\u8c03\\u4ee4 \\u8c03\\u95e8 \\u8c03\\u6d3e \\u8c03\\u9063 \\u8c03\\u4eba \\u8c03\\u4efb \\u8c03\\u5f0f \\u8c03\\u5934 \\u8c03\\u4f11 \\u8c03\\u7814 \\u8c03\\u6f14 \\u8c03\\u7528 \\u8c03\\u9605 \\u8c03\\u8fd0 \\u8c03\\u503c \\u8c03\\u804c \\u8c03\\u8f6c \\u8c03\\u5b50 \\u5e16\\u670d \\u5e16\\u5b50 \\u8d34\\u5207 \\u94c1\\u6746 \\u94c1\\u6d41 \\u94c1\\u725b \\u94c1\\u6749 \\u94c1\\u9508 \\u542c\\u5dee \\u4ead\\u5b50 \\u5ead\\u957f \\u505c\\u7559 \\u633a\\u6746 \\u633a\\u62ec \\u633a\\u79c0 \\u901a\\u884c \\u901a\\u7ea2 \\u901a\\u91cf \\u901a\\u4ee4 \\u901a\\u94fa \\u540c\\u597d \\u540c\\u8c03 \\u94dc\\u81ed \\u94dc\\u6a21 \\u7ae5\\u8499 \\u7ae5\\u4ec6 \\u75db\\u5904 \\u75db\\u6076 \\u75db\\u5207 \\u5077\\u7a7a \\u5934\\u513f \\u5934\\u53d1 \\u5934\\u7403 \\u5934\\u6655 \\u5934\\u5b50 \\u6295\\u5954 \\u6295\\u964d \\u900f\\u9732 \\u900f\\u8f9f \\u79c3\\u9e6b \\u7a81\\u5730 \\u5f92\\u957f \\u571f\\u725b \\u5410\\u9732 \\u5410\\u6cab \\u5410\\u6cfb \\u5410\\u8840 \\u5154\\u5b50 \\u6e4d\\u6d41 \\u56e2\\u957f \\u63a8\\u5ea6 \\u63a8\\u6746 \\u63a8\\u78e8 \\u9893\\u9761 \\u9000\\u573a \\u9000\\u884c \\u9000\\u8272 \\u9000\\u4f11 \\u892a\\u8272 \\u541e\\u5265 \\u541e\\u6ca1 \\u541e\\u54bd \\u5c6f\\u7559 \\u5c6f\\u843d \\u5c6f\\u624e \\u56e4\\u79ef \\u56e4\\u805a \\u62d6\\u7d2f \\u8131\\u53d1 \\u8131\\u58f3 \\u59a5\\u5f53 \\u59a5\\u5e16 \\u692d\\u7403 \\u62d3\\u672c \\u62d3\\u7247 \\u5a03\\u5a03 \\u74e6\\u5200 \\u889c\\u5b50 \\u5d34\\u5d6c \\u5916\\u573a \\u5916\\u4f20 \\u5916\\u8205 \\u5916\\u6d41 \\u5916\\u9732 \\u5916\\u8c03 \\u5916\\u5934 \\u5916\\u957f \\u6e7e\\u4ed4 \\u5b8c\\u4e86 \\u73a9\\u5174 \\u633d\\u6551 \\u633d\\u7559 \\u7579\\u753a \\u738b\\u671d \\u7f51\\u7403 \\u5984\\u6c42 \\u5371\\u96be \\u5a01\\u5413 \\u9036\\u8fe4 \\u5fae\\u8584 \\u5fae\\u884c \\u4e3a\\u6b64 \\u4e3a\\u4f55 \\u4e3a\\u4e86 \\u4e3a\\u7740 \\u8fdd\\u7981 \\u8fdd\\u4ee4 \\u8fdd\\u62d7 \\u56f4\\u573a \\u59d4\\u9761 \\u840e\\u9761 \\u672a\\u66fe \\u672a\\u51e0 \\u4f4d\\u76f8 \\u4f4d\\u5b50 \\u5c09\\u8fdf \\u5c09\\u7281 \\u851a\\u53bf \\u6587\\u6597 \\u6587\\u79c0 \\u868a\\u5b50 \\u95ee\\u96be \\u5594\\u5594 \\u7a9d\\u56ca \\u7a9d\\u94fa \\u8717\\u6746 \\u8717\\u725b \\u6211\\u4eec \\u5367\\u94fa \\u4e4c\\u6855 \\u4e4c\\u62c9 \\u545c\\u54bd \\u5c4b\\u5b50 \\u65e0\\u884c \\u65e0\\u51e0 \\u65e0\\u95f4 \\u65e0\\u91cf \\u65e0\\u5b81 \\u6bcb\\u5b81 \\u4e94\\u884c \\u5348\\u89c9 \\u5348\\u4f11 \\u6b66\\u573a \\u6b66\\u6597 \\u6b66\\u4faf \\u6b66\\u5c06 \\u821e\\u573a \\u821e\\u66f2 \\u5140\\u9e6b \\u5140\\u81ea \\u52a1\\u6c42 \\u8bef\\u5dee \\u8bef\\u573a \\u897f\\u85cf \\u897f\\u4e50 \\u5438\\u7740 \\u5e0c\\u6c42 \\u606f\\u7387 \\u595a\\u843d \\u83e5\\u84c2 \\u6089\\u6570 \\u7a00\\u8584 \\u7a00\\u843d \\u7280\\u725b \\u6eaa\\u6d41 \\u5e2d\\u5377 \\u5e2d\\u5b50 \\u94e3\\u524a \\u559c\\u597d \\u559c\\u9152 \\u559c\\u5e16 \\u559c\\u5174 \\u620f\\u573a \\u620f\\u66f2 \\u7cfb\\u5e26 \\u9699\\u7f1d \\u778e\\u70ae \\u778e\\u5b50 \\u5323\\u5b50 \\u72ed\\u7f1d \\u4e0b\\u573a \\u4e0b\\u90fd \\u4e0b\\u884c \\u4e0b\\u9152 \\u4e0b\\u4ee4 \\u4e0b\\u6d41 \\u4e0b\\u843d \\u4e0b\\u94fa \\u4e0b\\u5e16 \\u4e0b\\u5934 \\u4e0b\\u54bd \\u5413\\u552c \\u590f\\u4ee4 \\u590f\\u79cd \\u5148\\u884c \\u5148\\u4ee4 \\u7ea4\\u592b \\u7ea4\\u7ef3 \\u7ea4\\u624b \\u7ea4\\u79c0 \\u9c9c\\u89c1 \\u9c9c\\u8840 \\u95f2\\u7a7a \\u95f2\\u6563 \\u5acc\\u6076 \\u663e\\u5f97 \\u663e\\u8c41 \\u663e\\u9732 \\u85d3\\u82d4 \\u53bf\\u4ee4 \\u53bf\\u957f \\u73b0\\u573a \\u73b0\\u884c \\u9650\\u91cf \\u9650\\u4ee4 \\u7ebf\\u6746 \\u9677\\u843d \\u9677\\u6ca1 \\u732e\\u8840 \\u4e61\\u957f \\u76f8\\u518c \\u76f8\\u79f0 \\u76f8\\u516c \\u76f8\\u56fd \\u76f8\\u673a \\u76f8\\u95f4 \\u76f8\\u89d2 \\u76f8\\u9a6c \\u76f8\\u8c8c \\u76f8\\u9762 \\u76f8\\u7247 \\u76f8\\u6251 \\u76f8\\u58f0 \\u76f8\\u58eb \\u76f8\\u56fe \\u76f8\\u4f4d \\u76f8\\u5e94 \\u76f8\\u7eb8 \\u76f8\\u4e2d \\u6e58\\u7ee3 \\u7bb1\\u7b3c \\u7bb1\\u5b50 \\u54cd\\u5e94 \\u60f3\\u5934 \\u5411\\u7740 \\u5df7\\u9053 \\u5df7\\u5b50 \\u8096\\u50cf \\u9a81\\u5c06 \\u6d88\\u957f \\u5bb5\\u7981 \\u9500\\u884c \\u9500\\u5047 \\u9500\\u91cf \\u5c0f\\u5dee \\u5c0f\\u4f20 \\u5c0f\\u5c06 \\u5c0f\\u8205 \\u5c0f\\u91cf \\u5c0f\\u4ee4 \\u5c0f\\u79cb \\u5c0f\\u7403 \\u5c0f\\u66f2 \\u5c0f\\u8c03 \\u5c0f\\u4fee \\u5c0f\\u5b50 \\u6653\\u5f97 \\u6821\\u573a \\u6821\\u70b9 \\u6821\\u8ba2 \\u6821\\u5bf9 \\u6821\\u6539 \\u6821\\u6838 \\u6821\\u52d8 \\u6821\\u9a8c \\u6821\\u6837 \\u6821\\u9605 \\u6821\\u957f \\u6821\\u6b63 \\u6821\\u6ce8 \\u6821\\u51c6 \\u6548\\u7387 \\u6548\\u5e94 \\u90aa\\u884c \\u5055\\u884c \\u8c22\\u5e16 \\u5fc3\\u7387 \\u5fc3\\u5207 \\u5fc3\\u66f2 \\u5fc3\\u79c0 \\u5fc3\\u8840 \\u65b0\\u4e50 \\u65b0\\u79c0 \\u65b0\\u6b63 \\u4fe1\\u5dee \\u661f\\u7403 \\u661f\\u76f8 \\u661f\\u5bbf \\u5211\\u573a \\u9192\\u8c41 \\u9192\\u9152 \\u5174\\u8da3 \\u5174\\u5934 \\u5174\\u5473 \\u5174\\u4fee \\u5174\\u81f4 \\u5e78\\u5f97 \\u6027\\u5b50 \\u51f6\\u6a2a \\u51f6\\u715e \\u51f6\\u76f8 \\u5144\\u957f \\u80f8\\u95f7 \\u80f8\\u812f \\u96c4\\u52b2 \\u4f11\\u73ed \\u4f11\\u8015 \\u4f11\\u4f1a \\u4f11\\u5047 \\u4f11\\u520a \\u4f11\\u514b \\u4f11\\u7720 \\u4f11\\u5b81 \\u4f11\\u621a \\u4f11\\u61a9 \\u4f11\\u4e66 \\u4f11\\u606f \\u4f11\\u95f2 \\u4f11\\u60f3 \\u4f11\\u5b66 \\u4f11\\u517b \\u4f11\\u4e1a \\u4f11\\u6218 \\u4f11\\u6574 \\u4f11\\u6b62 \\u4fee\\u8865 \\u4fee\\u8f9e \\u4fee\\u9053 \\u4fee\\u8ba2 \\u4fee\\u590d \\u4fee\\u6539 \\u4fee\\u884c \\u4fee\\u597d \\u4fee\\u526a \\u4fee\\u5efa \\u4fee\\u811a \\u4fee\\u7406 \\u4fee\\u70bc \\u4fee\\u8def \\u4fee\\u9762 \\u4fee\\u5973 \\u4fee\\u914d \\u4fee\\u847a \\u4fee\\u7f2e \\u4fee\\u8eab \\u4fee\\u53f2 \\u4fee\\u58eb \\u4fee\\u9970 \\u4fee\\u4e66 \\u4fee\\u6587 \\u4fee\\u6b66 \\u4fee\\u5b66 \\u4fee\\u517b \\u4fee\\u4e1a \\u4fee\\u9020 \\u4fee\\u957f \\u4fee\\u6574 \\u4fee\\u6b63 \\u4fee\\u679d \\u4fee\\u6cbb \\u4fee\\u7af9 \\u4fee\\u7b51 \\u7f9e\\u60ed \\u7f9e\\u803b \\u7f9e\\u6124 \\u7f9e\\u6127 \\u7f9e\\u607c \\u7f9e\\u602f \\u7f9e\\u4eba \\u7f9e\\u8fb1 \\u7f9e\\u81ca \\u7f9e\\u6da9 \\u673d\\u8d25 \\u673d\\u70c2 \\u673d\\u8fc8 \\u673d\\u6728 \\u5bbf\\u5c06 \\u79c0\\u624d \\u79c0\\u53d1 \\u79c0\\u6167 \\u79c0\\u4fca \\u79c0\\u4e3d \\u79c0\\u7f8e \\u79c0\\u6c14 \\u79c0\\u6da6 \\u79c0\\u8272 \\u79c0\\u96c5 \\u79c0\\u9038 \\u8896\\u6807 \\u8896\\u7bad \\u8896\\u53e3 \\u8896\\u7b52 \\u8896\\u7ae0 \\u8896\\u73cd \\u8896\\u5b50 \\u7ee3\\u623f \\u7ee3\\u9601 \\u7ee3\\u82b1 \\u7ee3\\u7403 \\u7ee3\\u50cf \\u7ee3\\u978b \\u9508\\u6591 \\u9508\\u75c5 \\u9508\\u83cc \\u9508\\u8680 \\u55c5\\u89c9 \\u5401\\u8bf7 \\u5401\\u6c42 \\u987b\\u53d1 \\u9700\\u6c42 \\u8bb8\\u4e45 \\u5e8f\\u66f2 \\u53d9\\u65e7 \\u7eed\\u5047 \\u7d6e\\u53e8 \\u7384\\u53c2 \\u65cb\\u98ce \\u9009\\u573a \\u9009\\u7559 \\u9009\\u66f2 \\u9009\\u4fee \\u9009\\u4e2d \\u7729\\u6655 \\u524a\\u53d1 \\u524a\\u4ef7 \\u524a\\u51cf \\u524a\\u5e73 \\u524a\\u7403 \\u524a\\u5f31 \\u524a\\u804c \\u9774\\u5b50 \\u5b66\\u7a76 \\u5b66\\u957f \\u5671\\u5934 \\u8840\\u764c \\u8840\\u6848 \\u8840\\u672c \\u8840\\u5d29 \\u8840\\u6cca \\u8840\\u6c89 \\u8840\\u4ec7 \\u8840\\u7ba1 \\u8840\\u6d77 \\u8840\\u6c57 \\u8840\\u75d5 \\u8840\\u7ea2 \\u8840\\u8ff9 \\u8840\\u6d46 \\u8840\\u7aed \\u8840\\u53e3 \\u8840\\u5e93 \\u8840\\u4e8f \\u8840\\u6cea \\u8840\\u8def \\u8840\\u8109 \\u8840\\u5c3f \\u8840\\u6ce1 \\u8840\\u6c14 \\u8840\\u4eb2 \\u8840\\u6e05 \\u8840\\u7403 \\u8840\\u8089 \\u8840\\u8272 \\u8840\\u4e66 \\u8840\\u6813 \\u8840\\u6c34 \\u8840\\u4e1d \\u8840\\u7edf \\u8840\\u6c61 \\u8840\\u6d17 \\u8840\\u8c61 \\u8840\\u8165 \\u8840\\u578b \\u8840\\u6027 \\u8840\\u865a \\u8840\\u538b \\u8840\\u6db2 \\u8840\\u8863 \\u8840\\u5370 \\u8840\\u7f18 \\u8840\\u503a \\u8840\\u6218 \\u8840\\u8bc1 \\u8840\\u80bf \\u8840\\u6e0d \\u8840\\u94bb \\u5bfb\\u6c42 \\u5de1\\u884c \\u8bad\\u4ee4 \\u6b89\\u96be \\u4e2b\\u6748 \\u4e2b\\u5934 \\u538b\\u677f \\u538b\\u573a \\u538b\\u6839 \\u62bc\\u5f53 \\u62bc\\u89e3 \\u62bc\\u7981 \\u62bc\\u5934 \\u7259\\u7f1d \\u7259\\u51a0 \\u54d1\\u573a \\u54d1\\u70ae \\u54d1\\u54d1 \\u96c5\\u4e50 \\u96c5\\u91cf \\u96c5\\u76f8 \\u96c5\\u5174 \\u54bd\\u6c14 \\u70df\\u6746 \\u6df9\\u6ca1 \\u814c\\u83dc \\u814c\\u8089 \\u814c\\u5236 \\u814c\\u6e0d \\u6e6e\\u6ca1 \\u4e25\\u7981 \\u4e25\\u4ee4 \\u8a00\\u884c \\u6cbf\\u7740 \\u7814\\u7a76 \\u76d0\\u573a \\u76d0\\u5206 \\u773c\\u6ce1 \\u538c\\u6076 \\u781a\\u53f0 \\u9a8c\\u8840 \\u71d5\\u4eac \\u71d5\\u9ea6 \\u71d5\\u5c71 \\u71d5\\u5b50 \\u592e\\u6c42 \\u7f8a\\u5708 \\u9633\\u66f2 \\u6768\\u67f3 \\u6d0b\\u573a \\u6d0b\\u6d41 \\u6d0b\\u76f8 \\u517b\\u755c \\u517b\\u5206 \\u6837\\u5b50 \\u592d\\u6298 \\u5406\\u559d \\u8170\\u6746 \\u6447\\u628a \\u6447\\u6746 \\u6447\\u6643 \\u836f\\u9152 \\u836f\\u94fa \\u8981\\u5f97 \\u8981\\u597d \\u8981\\u631f \\u8981\\u4e48 \\u8981\\u6c42 \\u8981\\u585e \\u94a5\\u5319 \\u8036\\u7a23 \\u6930\\u5b50 \\u7237\\u4eec \\u7237\\u7237 \\u4e5f\\u66fe \\u91ce\\u845b \\u53f6\\u5b50 \\u591c\\u573a \\u591c\\u884c \\u591c\\u7981 \\u591c\\u66f2 \\u4e00\\u822c \\u4e00\\u5e26 \\u4e00\\u70b9 \\u4e00\\u5b9a \\u4e00\\u5ea6 \\u4e00\\u53d1 \\u4e00\\u4e2a \\u4e00\\u5757 \\u4e00\\u6d41 \\u4e00\\u8def \\u4e00\\u8d77 \\u4e00\\u5207 \\u4e00\\u5929 \\u4e00\\u6837 \\u8863\\u51a0 \\u8863\\u88f3 \\u4f9d\\u65e7 \\u9057\\u7559 \\u9057\\u843d \\u9057\\u5c11 \\u8681\\u7a74 \\u8bae\\u957f \\u5f79\\u755c \\u76ca\\u5904 \\u610f\\u5174 \\u6ea2\\u6d41 \\u81c6\\u5ea6 \\u56e0\\u4e3a \\u9634\\u5e72 \\u97f3\\u4e50 \\u97f3\\u91cf \\u97f3\\u8c03 \\u6bb7\\u7ea2 \\u6bb7\\u5207 \\u541f\\u54e6 \\u5f15\\u5f97 \\u5f15\\u548e \\u5f15\\u6d41 \\u996e\\u9152 \\u996e\\u9a6c \\u9690\\u6ca1 \\u8365\\u7ecf \\u8425\\u957f \\u8d62\\u5f97 \\u5f71\\u7247 \\u5f71\\u8c03 \\u5f71\\u5b50 \\u763f\\u7624 \\u5e94\\u53d8 \\u5e94\\u627f \\u5e94\\u916c \\u5e94\\u4ece \\u5e94\\u7b54 \\u5e94\\u5f97 \\u5e94\\u654c \\u5e94\\u5178 \\u5e94\\u5bf9 \\u5e94\\u4ed8 \\u5e94\\u548c \\u5e94\\u6025 \\u5e94\\u63a5 \\u5e94\\u666f \\u5e94\\u8003 \\u5e94\\u529b \\u5e94\\u9f99 \\u5e94\\u95e8 \\u5e94\\u52df \\u5e94\\u8bfa \\u5e94\\u8058 \\u5e94\\u65f6 \\u5e94\\u5e02 \\u5e94\\u8bd5 \\u5e94\\u624b \\u5e94\\u9a8c \\u5e94\\u9080 \\u5e94\\u7528 \\u5e94\\u8fd0 \\u5e94\\u6218 \\u5e94\\u8bca \\u5e94\\u5f81 \\u4f63\\u91d1 \\u4f63\\u94b1 \\u62e5\\u585e \\u58c5\\u585e \\u6c38\\u4e45 \\u6d8c\\u6d41 \\u7528\\u573a \\u4f18\\u79c0 \\u5e7d\\u7981 \\u5e7d\\u54bd \\u7531\\u5934 \\u90ae\\u5dee \\u6cb9\\u574a \\u6cb9\\u70b8 \\u6e38\\u8bf4 \\u6709\\u5f97 \\u6709\\u7684 \\u6709\\u95f4 \\u6709\\u65e7 \\u6709\\u6551 \\u6709\\u7740 \\u67da\\u6728 \\u8bf1\\u4f9b \\u8bf1\\u964d \\u65bc\\u83df \\u6de4\\u585e \\u6de4\\u8840 \\u7600\\u8840 \\u4f59\\u91cf \\u4f59\\u7559 \\u4f59\\u5174 \\u9c7c\\u809a \\u4fde\\u7a74 \\u903e\\u5206 \\u745c\\u4f3d \\u611a\\u8499 \\u4e0e\\u4f1a \\u4e0e\\u95fb \\u4e88\\u4ee5 \\u96e8\\u91cf \\u96e8\\u9732 \\u8bed\\u585e \\u8bed\\u8c03 \\u828b\\u5934 \\u6d74\\u573a \\u6d74\\u8840 \\u9884\\u884c \\u9047\\u6551 \\u9047\\u96be \\u5143\\u671d \\u5143\\u66f2 \\u82ab\\u837d \\u57a3\\u66f2 \\u5706\\u573a \\u5706\\u4e18 \\u63f4\\u85cf \\u7f18\\u5206 \\u6e90\\u6d41 \\u8fdc\\u5904 \\u8fdc\\u884c \\u9662\\u843d \\u9662\\u957f \\u9662\\u5b50 \\u6708\\u4ee4 \\u6708\\u7403 \\u6708\\u6c0f \\u6708\\u76f8 \\u6655\\u573a \\u6655\\u5012 \\u6655\\u7cca \\u6655\\u53a5 \\u6655\\u7729 \\u4e91\\u91cf \\u4e91\\u6749 \\u5300\\u79f0 \\u5300\\u6e9c \\u5141\\u5f53 \\u9668\\u843d \\u8fd0\\u884c \\u8fd0\\u91cf \\u8fd0\\u8f7d \\u8fd0\\u8f6c \\u97f5\\u8c03 \\u71a8\\u6597 \\u71a8\\u5e16 \\u548b\\u547c \\u548b\\u820c \\u707e\\u96be \\u683d\\u79cd \\u4ed4\\u755c \\u4ed4\\u7ec6 \\u4ed4\\u9c7c \\u4ed4\\u732a \\u8f7d\\u6ce2 \\u8f7d\\u8377 \\u8f7d\\u8d27 \\u8f7d\\u9891 \\u8f7d\\u8fd0 \\u8f7d\\u91cd \\u5bb0\\u76f8 \\u5728\\u573a \\u5728\\u671d \\u5728\\u4e4e \\u54b1\\u4eec \\u6512\\u52a8 \\u6512\\u76d2 \\u6512\\u805a \\u6512\\u7709 \\u6512\\u5c04 \\u6682\\u884c \\u810f\\u8bdd \\u810f\\u4e71 \\u810f\\u6c34 \\u810f\\u571f \\u810f\\u6c61 \\u810f\\u5b57 \\u906d\\u96be \\u65e9\\u573a \\u65e9\\u5c31 \\u65e9\\u79cb \\u86a4\\u4f11 \\u7076\\u706b \\u7076\\u5934 \\u9020\\u5c31 \\u8d23\\u4ee4 \\u8d23\\u96be \\u62e9\\u83dc \\u62e9\\u5e2d \\u600e\\u7684 \\u600e\\u4e48 \\u589e\\u91cf \\u589e\\u957f \\u618e\\u6076 \\u624e\\u5806 \\u624e\\u6839 \\u624e\\u82b1 \\u624e\\u5b9e \\u624e\\u624b \\u624e\\u773c \\u624e\\u8425 \\u624e\\u9488 \\u8f67\\u573a \\u8f67\\u94a2 \\u8f67\\u8f8a \\u8f67\\u673a \\u8f67\\u7a7a \\u8f67\\u5236 \\u8bc8\\u964d \\u6805\\u683c \\u6805\\u6781 \\u70b8\\u7cd5 \\u70b8\\u9c7c \\u5b85\\u5b50 \\u5be8\\u5b50 \\u7c98\\u866b \\u7c98\\u5ea6 \\u7c98\\u5408 \\u7c98\\u7ed3 \\u7c98\\u83cc \\u7c98\\u819c \\u7c98\\u571f \\u7c98\\u6027 \\u7c98\\u6db2 \\u7c98\\u7740 \\u5360\\u5c45 \\u5360\\u636e \\u5360\\u7406 \\u5360\\u9886 \\u5360\\u5148 \\u5360\\u7ebf \\u5360\\u538b \\u5360\\u7528 \\u5360\\u6709 \\u6218\\u573a \\u6218\\u6597 \\u6218\\u5c06 \\u6218\\u7565 \\u7ad9\\u957f \\u5f20\\u7f57 \\u957f\\u8f88 \\u957f\\u8198 \\u957f\\u6210 \\u957f\\u5904 \\u957f\\u5927 \\u957f\\u53d1 \\u957f\\u623f \\u957f\\u845b \\u957f\\u5b98 \\u957f\\u673a \\u957f\\u5047 \\u957f\\u8fdb \\u957f\\u4e45 \\u957f\\u8001 \\u957f\\u5973 \\u957f\\u4eb2 \\u957f\\u52bf \\u957f\\u5b59 \\u957f\\u76f8 \\u957f\\u5144 \\u957f\\u8896 \\u957f\\u7259 \\u957f\\u773c \\u957f\\u5e7c \\u957f\\u8005 \\u957f\\u5b50 \\u6da8\\u843d \\u5e10\\u5b50 \\u62db\\u4f9b \\u62db\\u964d \\u62db\\u5f95 \\u722a\\u513f \\u722a\\u5b50 \\u627e\\u5934 \\u5146\\u5934 \\u8bcf\\u4ee4 \\u7167\\u65e7 \\u7167\\u7247 \\u7167\\u76f8 \\u7167\\u5e94 \\u906e\\u7f9e \\u6298\\u534a \\u6298\\u672c \\u6298\\u5c3a \\u6298\\u51b2 \\u6298\\u5200 \\u6298\\u53e0 \\u6298\\u65ad \\u6298\\u5151 \\u6298\\u8fd4 \\u6298\\u7f1d \\u6298\\u670d \\u6298\\u5149 \\u6298\\u6842 \\u6298\\u8017 \\u6298\\u5408 \\u6298\\u56de \\u6298\\u4ef7 \\u6298\\u65e7 \\u6298\\u6263 \\u6298\\u78e8 \\u6298\\u6740 \\u6298\\u6247 \\u6298\\u5c04 \\u6298\\u5bff \\u6298\\u7b97 \\u6298\\u7ebf \\u6298\\u8170 \\u6298\\u9875 \\u6298\\u6905 \\u6298\\u8d26 \\u6298\\u7eb8 \\u6298\\u4e2d \\u6298\\u76b1 \\u6298\\u8f6c \\u6298\\u5b50 \\u8fd9\\u4e48 \\u7740\\u6cd5 \\u7740\\u614c \\u7740\\u706b \\u7740\\u6025 \\u7740\\u54e9 \\u7740\\u51c9 \\u7740\\u843d \\u7740\\u5fd9 \\u7740\\u8ff7 \\u7740\\u9b54 \\u7740\\u6570 \\u9488\\u7078 \\u771f\\u5207 \\u771f\\u76f8 \\u6795\\u5934 \\u9547\\u957f \\u9547\\u5b50 \\u4e89\\u5f97 \\u4e89\\u6597 \\u4e89\\u62a2 \\u5f81\\u6c42 \\u5f81\\u8c03 \\u6014\\u6014 \\u84b8\\u998f \\u62ef\\u6551 \\u6574\\u6d41 \\u6574\\u4fee \\u6b63\\u5b89 \\u6b63\\u4f20 \\u6b63\\u65e6 \\u6b63\\u6708 \\u653f\\u4ee4 \\u6323\\u624e \\u75c7\\u7ed3 \\u4e4b\\u6d41 \\u652f\\u5dee \\u652f\\u6d41 \\u652f\\u5e94 \\u53ea\\u5f53 \\u53ea\\u5f97 \\u53ea\\u987e \\u53ea\\u7ba1 \\u53ea\\u597d \\u53ea\\u80fd \\u53ea\\u6015 \\u53ea\\u662f \\u53ea\\u6d88 \\u53ea\\u8981 \\u53ea\\u6709 \\u5431\\u58f0 \\u679d\\u6748 \\u679d\\u5e72 \\u6267\\u884c \\u6267\\u62d7 \\u6267\\u8457 \\u76f4\\u5954 \\u76f4\\u6e9c \\u76f4\\u843d \\u4f84\\u5b50 \\u503c\\u5f53 \\u503c\\u5f97 \\u804c\\u5206 \\u6b62\\u8840 \\u6307\\u4f9b \\u6307\\u7532 \\u6307\\u4ee4 \\u6307\\u5934 \\u8d28\\u91cf \\u4e2d\\u6807 \\u4e2d\\u5f69 \\u4e2d\\u573a \\u4e2d\\u5f39 \\u4e2d\\u6bd2 \\u4e2d\\u98ce \\u4e2d\\u7f1d \\u4e2d\\u8ba1 \\u4e2d\\u5c06 \\u4e2d\\u5956 \\u4e2d\\u4e3e \\u4e2d\\u80af \\u4e2d\\u9b54 \\u4e2d\\u725f \\u4e2d\\u7b7e \\u4e2d\\u4f24 \\u4e2d\\u6691 \\u4e2d\\u90aa \\u4e2d\\u9009 \\u4e2d\\u610f \\u7ec8\\u573a \\u7ec8\\u7a76 \\u7ec8\\u4e45 \\u8877\\u66f2 \\u80bf\\u7624 \\u79cd\\u83dc \\u79cd\\u755c \\u79cd\\u5730 \\u79cd\\u75d8 \\u79cd\\u82b1 \\u79cd\\u725b \\u79cd\\u7530 \\u79cd\\u690d \\u79cd\\u5b50 \\u4ef2\\u79cb \\u91cd\\u7248 \\u91cd\\u529e \\u91cd\\u64ad \\u91cd\\u832c \\u91cd\\u5531 \\u91cd\\u521b \\u91cd\\u62c5 \\u91cd\\u5f39 \\u91cd\\u53e0 \\u91cd\\u8bfb \\u91cd\\u8fd4 \\u91cd\\u653e \\u91cd\\u9022 \\u91cd\\u590d \\u91cd\\u6784 \\u91cd\\u4f30 \\u91cd\\u5149 \\u91cd\\u884c \\u91cd\\u5408 \\u91cd\\u8377 \\u91cd\\u5a5a \\u91cd\\u5efa \\u91cd\\u4e5d \\u91cd\\u805a \\u91cd\\u91cf \\u91cd\\u697c \\u91cd\\u540d \\u91cd\\u70ae \\u91cd\\u5e86 \\u91cd\\u7533 \\u91cd\\u5ba1 \\u91cd\\u751f \\u91cd\\u8ff0 \\u91cd\\u6570 \\u91cd\\u5b59 \\u91cd\\u63d0 \\u91cd\\u542c \\u91cd\\u5934 \\u91cd\\u56f4 \\u91cd\\u6e29 \\u91cd\\u73b0 \\u91cd\\u9704 \\u91cd\\u5199 \\u91cd\\u65b0 \\u91cd\\u4fee \\u91cd\\u9009 \\u91cd\\u8a00 \\u91cd\\u6a90 \\u91cd\\u6f14 \\u91cd\\u9633 \\u91cd\\u6d0b \\u91cd\\u6837 \\u91cd\\u8bd1 \\u91cd\\u5370 \\u91cd\\u5f71 \\u91cd\\u5706 \\u91cd\\u8f7d \\u91cd\\u6574 \\u91cd\\u91cd \\u91cd\\u594f \\u91cd\\u7ec4 \\u821f\\u66f2 \\u5dde\\u957f \\u5468\\u6298 \\u5468\\u6b63 \\u5541\\u557e \\u8bdb\\u6c42 \\u73e0\\u5b50 \\u8bf8\\u845b \\u732a\\u5708 \\u732a\\u4ed4 \\u6f74\\u7559 \\u7af9\\u5b50 \\u4e3b\\u5e72 \\u4e3b\\u5c06 \\u4e3b\\u89d2 \\u4e3b\\u6d41 \\u4e3b\\u4ec6 \\u4e3b\\u8c03 \\u4e3b\\u5b50 \\u52a9\\u5174 \\u52a9\\u957f \\u4f4f\\u5904 \\u9a7b\\u7559 \\u9a7b\\u624e \\u67f1\\u5b50 \\u795d\\u9152 \\u6293\\u5dee \\u6293\\u6597 \\u6293\\u9604 \\u4e13\\u5dee \\u4e13\\u573a \\u4e13\\u6a2a \\u4e13\\u4fee \\u8f6c\\u573a \\u8f6c\\u52a8 \\u8f6c\\u5e72 \\u8f6c\\u9f13 \\u8f6c\\u7b4b \\u8f6c\\u77e9 \\u8f6c\\u7089 \\u8f6c\\u8f6e \\u8f6c\\u95e8 \\u8f6c\\u5708 \\u8f6c\\u901f \\u8f6c\\u53f0 \\u8f6c\\u4f4d \\u8f6c\\u6905 \\u8f6c\\u60a0 \\u8f6c\\u6298 \\u8f6c\\u5b50 \\u8d5a\\u5934 \\u5e84\\u5b50 \\u88c5\\u76f8 \\u8ffd\\u7a76 \\u8ffd\\u6c42 \\u5760\\u843d \\u51c6\\u5c06 \\u51c6\\u5934 \\u51c6\\u4e88 \\u684c\\u5b50 \\u6d4a\\u6d41 \\u914c\\u91cf \\u7422\\u78e8 \\u5b50\\u755c \\u81ea\\u4f20 \\u81ea\\u7ed9 \\u81ea\\u4f9b \\u81ea\\u884c \\u81ea\\u548e \\u81ea\\u759a \\u81ea\\u6551 \\u81ea\\u7559 \\u81ea\\u6d41 \\u81ea\\u7701 \\u81ea\\u4fee \\u81ea\\u8f6c \\u5b57\\u6a21 \\u603b\\u5f97 \\u603b\\u91cf \\u7eb5\\u9152 \\u7eb5\\u4ee4 \\u7cbd\\u5b50 \\u8d70\\u8c03 \\u594f\\u4e50 \\u594f\\u6298 \\u8db3\\u7403 \\u5352\\u4e2d \\u963b\\u96be \\u963b\\u585e \\u7ec4\\u5206 \\u7ec4\\u66f2 \\u7956\\u7387 \\u94bb\\u5e8a \\u94bb\\u6746 \\u94bb\\u5de5 \\u94bb\\u653b \\u94bb\\u673a \\u94bb\\u6212 \\u94bb\\u4e95 \\u94bb\\u77f3 \\u94bb\\u5854 \\u94bb\\u53f0 \\u94bb\\u5934 \\u7f6a\\u884c \\u9189\\u9152 \\u9075\\u884c \\u4f50\\u9152 \\u4f5c\\u574a \\u4f5c\\u8df5 \\u4f5c\\u4e50 \\u4f5c\\u6599 \\u4f5c\\u5f04 \\u4f5c\\u66f2 \\u4f5c\\u63d6 \\u5750\\u843d \\u963f\\u575d\\u53bf \\u963f\\u575d\\u5dde \\u963f\\u5e03\\u8d3e \\u963f\\u57ce\\u533a \\u963f\\u5c14\\u5c71 \\u963f\\u51e1\\u63d0 \\u963f\\u623f\\u5bab \\u963f\\u5408\\u5947 \\u963f\\u514b\\u62c9 \\u963f\\u514b\\u82cf \\u963f\\u514b\\u9676 \\u963f\\u62c9\\u4f2f \\u963f\\u62c9\\u5c14 \\u963f\\u62c9\\u5584 \\u963f\\u52d2\\u6cf0 \\u963f\\u83b2\\u4e61 \\u963f\\u9c81\\u5df4 \\u963f\\u739b\\u5c3c \\u963f\\u59c6\\u6cb3 \\u963f\\u76ae\\u4e9a \\u963f\\u8363\\u65d7 \\u963f\\u745e\\u65af \\u963f\\u56fe\\u4ec0 \\u963f\\u74e6\\u63d0 \\u963f\\u4f0a\\u52aa \\u77ee\\u4e2a\\u5b50 \\u7231\\u597d\\u8005 \\u7231\\u9762\\u5b50 \\u788d\\u9762\\u5b50 \\u5b89\\u9b42\\u66f2 \\u6c28\\u5416\\u5576 \\u6697\\u9002\\u5e94 \\u71ac\\u5934\\u513f \\u516b\\u8f88\\u5b50 \\u62d4\\u7f50\\u5b50 \\u767d\\u6643\\u6643 \\u767d\\u8499\\u8499 \\u767d\\u6c42\\u6069 \\u767d\\u86c7\\u4f20 \\u767d\\u8840\\u75c5 \\u767d\\u8840\\u7403 \\u767e\\u5206\\u53f7 \\u767e\\u5206\\u7387 \\u767e\\u592b\\u957f \\u67cf\\u62c9\\u56fe \\u67cf\\u6797\\u5899 \\u6446\\u67b6\\u5b50 \\u6446\\u64c2\\u53f0 \\u6446\\u8c31\\u513f \\u6446\\u644a\\u5b50 \\u6446\\u6837\\u5b50 \\u8d25\\u8840\\u75c5 \\u8d25\\u8840\\u75c7 \\u62dc\\u628a\\u5b50 \\u529e\\u4e8b\\u5904 \\u534a\\u8f88\\u5b50 \\u534a\\u9053\\u513f \\u534a\\u62c9\\u5b50 \\u5e2e\\u5012\\u5fd9 \\u6886\\u5b50\\u8154 \\u868c\\u57e0\\u5e02 \\u868c\\u5c71\\u533a \\u68d2\\u5b50\\u9762 \\u8584\\u8377\\u9187 \\u8584\\u8377\\u8111 \\u8584\\u8377\\u6cb9 \\u4fdd\\u4e0d\\u4f4f \\u4fdd\\u5f97\\u4f4f \\u4fdd\\u5065\\u7403 \\u4fdd\\u9f84\\u7403 \\u5317\\u534a\\u7403 \\u5317\\u671d\\u9c9c \\u5907\\u4e0d\\u4f4f \\u80cc\\u5305\\u88b1 \\u80cc\\u4e0d\\u4f4f \\u80cc\\u9ed1\\u9505 \\u80cc\\u7740\\u624b \\u5954\\u5934\\u513f \\u7ef7\\u573a\\u9762 \\u7ef7\\u5f13\\u5b50 \\u903c\\u4f9b\\u4fe1 \\u6bd4\\u4e0d\\u4e0a \\u6bd4\\u4e18\\u5c3c \\u7b14\\u6746\\u5b50 \\u7b14\\u5934\\u513f \\u5fc5\\u4fee\\u8bfe \\u58c1\\u6548\\u5e94 \\u907f\\u98ce\\u5934 \\u907f\\u96be\\u6743 \\u907f\\u96be\\u6240 \\u6241\\u62c5\\u661f \\u53d8\\u901f\\u6746 \\u53d8\\u594f\\u66f2 \\u6807\\u8bc6\\u7b26 \\u6807\\u51c6\\u5dee \\u8868\\u8499\\u5b50 \\u6ce2\\u5e26\\u7247 \\u73bb\\u7483\\u677f \\u73bb\\u7483\\u94a2 \\u73bb\\u7483\\u4e1d \\u73bb\\u7483\\u7eb8 \\u73bb\\u7483\\u7816 \\u5265\\u76ae\\u673a \\u5265\\u76ae\\u5668 \\u5265\\u524a\\u8005 \\u9a73\\u9762\\u5b50 \\u8116\\u9888\\u513f \\u8116\\u9888\\u5b50 \\u8865\\u7ed9\\u7ebf \\u4e0d\\u70b9\\u513f \\u4e0d\\u5bf9\\u79f0 \\u4e0d\\u5bf9\\u52b2 \\u4e0d\\u5bf9\\u5934 \\u4e0d\\u542b\\u7cca \\u4e0d\\u89c1\\u5f97 \\u4e0d\\u76f8\\u79f0 \\u4e0d\\u9508\\u94a2 \\u4e0d\\u8981\\u7d27 \\u4e0d\\u4e00\\u5b9a \\u4e0d\\u5e94\\u671f \\u4e0d\\u7531\\u5f97 \\u4e0d\\u5728\\u4e4e \\u4e0d\\u81ea\\u91cf \\u731c\\u8c1c\\u513f \\u91c7\\u77f3\\u573a \\u53c2\\u8c0b\\u957f \\u53c2\\u4e0e\\u8005 \\u53c2\\u4e0e\\u5236 \\u85cf\\u7ea2\\u82b1 \\u64cd\\u7eb5\\u6746 \\u66fe\\u7eaa\\u6cfd \\u5c94\\u66f2\\u513f \\u5dee\\u9519\\u7387 \\u5dee\\u65c5\\u8d39 \\u5dee\\u901f\\u5668 \\u5dee\\u4e00\\u70b9 \\u63ba\\u6c99\\u5b50 \\u80a0\\u6746\\u83cc \\u80a0\\u963b\\u585e \\u573a\\u9762\\u4eba \\u5531\\u53cd\\u8c03 \\u8d85\\u5bf9\\u79f0 \\u8d85\\u8d1f\\u8377 \\u671d\\u9c9c\\u6587 \\u671d\\u9c9c\\u65cf \\u671d\\u9633\\u95e8 \\u671d\\u9633\\u533a \\u79f0\\u5f97\\u8d77 \\u6491\\u573a\\u9762 \\u6210\\u529f\\u7387 \\u6210\\u6d3b\\u7387 \\u901e\\u6027\\u5b50 \\u79e4\\u76d8\\u5b50 \\u5403\\u4e0d\\u4f4f \\u5403\\u5f97\\u5f00 \\u5403\\u5f97\\u6765 \\u5403\\u5f97\\u6d88 \\u5403\\u5f97\\u4f4f \\u5403\\u7a7a\\u989d \\u5403\\u7a7a\\u9977 \\u6301\\u4e45\\u6218 \\u51b2\\u76f9\\u513f \\u51b2\\u52b2\\u513f \\u51b2\\u538b\\u673a \\u5145\\u5176\\u91cf \\u81ed\\u67b6\\u5b50 \\u51fa\\u4efd\\u5b50 \\u51fa\\u98ce\\u5934 \\u51fa\\u52e4\\u7387 \\u51fa\\u751f\\u7387 \\u51fa\\u6d0b\\u76f8 \\u51fa\\u4e3b\\u610f \\u6775\\u81fc\\u4ea4 \\u5904\\u5206\\u6743 \\u755c\\u7267\\u573a \\u63e3\\u624b\\u513f \\u5ddd\\u515a\\u53c2 \\u4f20\\u8bb0\\u7247 \\u8239\\u592b\\u66f2 \\u521b\\u53ef\\u8d34 \\u521b\\u724c\\u5b50 \\u5439\\u725b\\u76ae \\u5439\\u594f\\u4e50 \\u78c1\\u611f\\u5e94 \\u78c1\\u6548\\u5e94 \\u679e\\u9633\\u53bf \\u51d1\\u4efd\\u5b50 \\u918b\\u52b2\\u513f \\u50ac\\u7720\\u66f2 \\u5b58\\u8f66\\u5904 \\u5bf8\\u52b2\\u513f \\u642d\\u67b6\\u5b50 \\u6253\\u9776\\u573a \\u6253\\u677f\\u5b50 \\u6253\\u4e0d\\u4f4f \\u6253\\u5e95\\u5b50 \\u6253\\u54c6\\u55e6 \\u6253\\u8c37\\u573a \\u6253\\u68cd\\u5b50 \\u6253\\u54c8\\u6b20 \\u6253\\u6643\\u513f \\u6253\\u64c2\\u53f0 \\u6253\\u62cd\\u5b50 \\u6253\\u5c41\\u80a1 \\u6253\\u79cb\\u98ce \\u6253\\u5708\\u5b50 \\u6253\\u5934\\u70ae \\u6253\\u5706\\u573a \\u6253\\u7838\\u62a2 \\u6253\\u6298\\u6263 \\u5927\\u4f2f\\u5b50 \\u5927\\u90e8\\u5206 \\u5927\\u85cf\\u7ecf \\u5927\\u51fa\\u8840 \\u5927\\u809a\\u5b50 \\u5927\\u4e2a\\u5b50 \\u5927\\u5bb6\\u4f19 \\u5927\\u5c06\\u519b \\u5927\\u8205\\u5b50 \\u5927\\u54a7\\u54a7 \\u5927\\u5e3d\\u5b50 \\u5927\\u5ac2\\u5b50 \\u5927\\u5c11\\u7237 \\u5927\\u820c\\u5934 \\u5927\\u7272\\u755c \\u5927\\u5e08\\u5085 \\u5927\\u82cf\\u6253 \\u5927\\u8f74\\u5b50 \\u6234\\u5e3d\\u5b50 \\u4e39\\u53c2\\u916e \\u62c5\\u4e0d\\u662f \\u62c5\\u62c5\\u9762 \\u5355\\u5e72\\u6237 \\u5355\\u884c\\u672c \\u5355\\u884c\\u7ebf \\u65e6\\u89d2\\u513f \\u5f39\\u62e8\\u4e50 \\u5f39\\u94a2\\u7434 \\u5f39\\u82b1\\u673a \\u5f39\\u7c27\\u79e4 \\u5f39\\u7c27\\u5200 \\u5f39\\u7c27\\u94a2 \\u5f39\\u7c27\\u95e8 \\u5f39\\u7c27\\u9501 \\u5f39\\u529b\\u4e1d \\u5f39\\u529b\\u889c \\u5f39\\u68c9\\u82b1 \\u5f39\\u8df3\\u529b \\u5f39\\u6d82\\u9c7c \\u5f39\\u6027\\u4f53 \\u5f53\\u5bb6\\u7684 \\u5f53\\u95f4\\u513f \\u5f53\\u53e3\\u513f \\u5200\\u628a\\u513f \\u5200\\u628a\\u5b50 \\u5200\\u5b50\\u5634 \\u5012\\u63d2\\u95e8 \\u5012\\u8fc7\\u513f \\u5230\\u4e86\\u513f \\u5f97\\u6837\\u513f \\u4f4e\\u8840\\u7cd6 \\u4f4e\\u8840\\u538b \\u6ef4\\u6e9c\\u513f \\u6ef4\\u6e9c\\u6e9c \\u654c\\u5360\\u533a \\u5730\\u6eda\\u7403 \\u5730\\u7403\\u4eea \\u9012\\u6761\\u5b50 \\u70b9\\u7535\\u8377 \\u7535\\u78c1\\u573a \\u7535\\u529f\\u7387 \\u7535\\u8377\\u6cf5 \\u7535\\u6d41\\u8868 \\u7535\\u71a8\\u6597 \\u7535\\u8f6c\\u513f \\u7535\\u5b50\\u6d41 \\u7535\\u963b\\u7387 \\u540a\\u55d3\\u5b50 \\u6389\\u70b9\\u513f \\u4e01\\u70b9\\u513f \\u9489\\u4e66\\u9488 \\u9489\\u5b50\\u6237 \\u5b9a\\u573a\\u767d \\u5b9a\\u573a\\u8bd7 \\u4e22\\u9762\\u5b50 \\u4e22\\u773c\\u8272 \\u4e1c\\u963f\\u53bf \\u4e1c\\u534a\\u7403 \\u52a8\\u753b\\u7247 \\u52a8\\u5458\\u4ee4 \\u52a8\\u8f7d\\u8377 \\u90fd\\u5b89\\u53bf \\u90fd\\u67cf\\u6797 \\u6597\\u516d\\u5e02 \\u6597\\u725b\\u573a \\u6597\\u4e89\\u6027 \\u8c46\\u8150\\u5e72 \\u8c46\\u8150\\u7fb9 \\u72ec\\u594f\\u66f2 \\u5ea6\\u5047\\u6751 \\u5ea6\\u91cf\\u8861 \\u7aef\\u67b6\\u5b50 \\u77ed\\u6b4c\\u884c \\u5806\\u579b\\u673a \\u5bf9\\u4e0d\\u4f4f \\u5bf9\\u79f0\\u6027 \\u5bf9\\u79f0\\u8f74 \\u5bf9\\u5f97\\u8d77 \\u5bf9\\u5f97\\u4f4f \\u5bf9\\u6d41\\u5c42 \\u5bf9\\u7740\\u5e72 \\u591a\\u4f1a\\u513f \\u591a\\u4efb\\u52a1 \\u591a\\u91cd\\u6027 \\u4e8c\\u4eba\\u8f6c \\u4e8c\\u91cd\\u5531 \\u4e8c\\u91cd\\u6839 \\u4e8c\\u91cd\\u6027 \\u4e8c\\u91cd\\u594f \\u53d1\\u75c5\\u7387 \\u53d1\\u884c\\u91cf \\u53d1\\u884c\\u4eba \\u53d1\\u6a2a\\u8d22 \\u53d1\\u9152\\u75af \\u53d1\\u4ee4\\u67aa \\u53d1\\u82bd\\u7387 \\u756a\\u77f3\\u69b4 \\u756a\\u79ba\\u533a \\u7ffb\\u8ddf\\u5934 \\u7e41\\u5cd9\\u53bf \\u53cd\\u5f39\\u529b \\u53cd\\u95f4\\u8ba1 \\u53cd\\u5e94\\u5806 \\u53cd\\u5e94\\u5668 \\u53cd\\u5e94\\u70ed \\u53cd\\u5e94\\u5f0f \\u72af\\u4e0d\\u7740 \\u72af\\u5f97\\u7740 \\u9632\\u9508\\u6f06 \\u653e\\u5927\\u7387 \\u653e\\u7a7a\\u70ae \\u98de\\u884c\\u5458 \\u98de\\u673a\\u573a \\u98de\\u5c06\\u519b \\u975e\\u5bf9\\u79f0 \\u80ba\\u6d3b\\u91cf \\u5206\\u7406\\u5904 \\u5206\\u6563\\u76f8 \\u5206\\u5b50\\u529b \\u5206\\u5b50\\u91cf \\u5206\\u5b50\\u7b5b \\u5206\\u5b50\\u5f0f \\u98ce\\u8377\\u8f7d \\u6d6e\\u5934\\u513f \\u8d1f\\u7535\\u8377 \\u8d1f\\u6548\\u5e94 \\u526f\\u53cd\\u5e94 \\u8986\\u76c6\\u5b50 \\u4f3d\\u5229\\u7565 \\u6982\\u7387\\u8bba \\u8d76\\u6f6e\\u6d41 \\u8d76\\u5f97\\u53ca \\u611f\\u5e94\\u7089 \\u611f\\u5e94\\u5668 \\u611f\\u5e94\\u5708 \\u6a44\\u6984\\u7403 \\u5e72\\u6253\\u5792 \\u5e72\\u77aa\\u773c \\u5e72\\u7535\\u6c60 \\u5e72\\u513f\\u5b50 \\u5e72\\u9175\\u6bcd \\u5e72\\u6885\\u5b50 \\u5e72\\u4ec0\\u4e48 \\u5e72\\u4e8b\\u957f \\u5e72\\u6027\\u6cb9 \\u5e72\\u7740\\u6025 \\u94a2\\u7434\\u66f2 \\u9ad8\\u5206\\u5b50 \\u9ad8\\u4e3d\\u53c2 \\u9ad8\\u4e3d\\u7eb8 \\u9ad8\\u5e3d\\u5b50 \\u9ad8\\u5c04\\u70ae \\u9ad8\\u6311\\u513f \\u9ad8\\u8840\\u538b \\u54e5\\u513f\\u4eec \\u80f3\\u818a\\u8098 \\u80f3\\u80a2\\u7a9d \\u6401\\u4e0d\\u4f4f \\u6401\\u5f97\\u4f4f \\u6b4c\\u4ed4\\u620f \\u4e2a\\u65e7\\u5e02 \\u4e2a\\u5934\\u513f \\u7ed9\\u9762\\u5b50 \\u6839\\u7624\\u83cc \\u8ddf\\u5f97\\u4e0a \\u5de5\\u4f5c\\u91cf \\u6c5e\\u6eb4\\u7ea2 \\u8d21\\u560e\\u53bf \\u4f9b\\u7ed9\\u5236 \\u4f9b\\u5e94\\u7ad9 \\u4f5d\\u507b\\u75c5 \\u67b8\\u675e\\u5b50 \\u591f\\u4e0d\\u7740 \\u591f\\u5f97\\u7740 \\u591f\\u52b2\\u513f \\u591f\\u53d7\\u7684 \\u59d1\\u5976\\u5976 \\u9aa8\\u6735\\u513f \\u9aa8\\u788c\\u788c \\u9aa8\\u5b50\\u91cc \\u9f13\\u56ca\\u56ca \\u987e\\u4e0d\\u5f97 \\u522e\\u9f3b\\u5b50 \\u6302\\u4e0d\\u4f4f \\u6302\\u5e4c\\u5b50 \\u4e56\\u5b69\\u5b50 \\u5b98\\u67b6\\u5b50 \\u7ba1\\u4e0d\\u7740 \\u7ba1\\u4e50\\u5668 \\u7ba1\\u5f26\\u4e50 \\u51a0\\u519b\\u8d5b \\u5149\\u53cd\\u5e94 \\u5149\\u6746\\u513f \\u5149\\u6e9c\\u6e9c \\u5f52\\u8c2c\\u6cd5 \\u6eda\\u96ea\\u7403 \\u56fd\\u5b50\\u76d1 \\u679c\\u5b50\\u9152 \\u679c\\u5b50\\u9732 \\u8fc7\\u5f97\\u786c \\u8fc7\\u65e5\\u5b50 \\u54c8\\u5df4\\u72d7 \\u54c8\\u4ec0\\u8682 \\u86e4\\u87c6\\u955c \\u5b69\\u5b50\\u6c14 \\u5b69\\u5b50\\u5934 \\u5b69\\u5b50\\u738b \\u6d77\\u53c2\\u5d34 \\u542b\\u6c34\\u91cf \\u542b\\u7f9e\\u8349 \\u5bd2\\u6691\\u5047 \\u558a\\u55d3\\u5b50 \\u6c57\\u8902\\u513f \\u65f1\\u51b0\\u573a \\u884c\\u4e0d\\u901a \\u884c\\u65b9\\u4fbf \\u884c\\u519b\\u5e8a \\u884c\\u674e\\u5377 \\u884c\\u4e3a\\u5b66 \\u884c\\u653f\\u6cd5 \\u822a\\u884c\\u56fe \\u597d\\u5f97\\u5f88 \\u597d\\u6781\\u4e86 \\u597d\\u5bb6\\u4f19 \\u597d\\u5947\\u5fc3 \\u597d\\u65e5\\u5b50 \\u559d\\u5012\\u5f69 \\u5408\\u5f97\\u6765 \\u5408\\u540c\\u6cd5 \\u548c\\u7a00\\u6ce5 \\u6cb3\\u66f2\\u53bf \\u8377\\u5c14\\u8499 \\u6838\\u53cd\\u5e94 \\u8d3a\\u5e74\\u5361 \\u9ed1\\u6e9c\\u6e9c \\u9ed1\\u8499\\u8499 \\u9ed1\\u778e\\u5b50 \\u9ed1\\u5323\\u5b50 \\u9ed1\\u829d\\u9ebb \\u9ed1\\u94bb\\u77f3 \\u8f70\\u9686\\u9686 \\u7ea2\\u5e3d\\u5b50 \\u7ea2\\u6a21\\u5b50 \\u7ea2\\u5f64\\u5f64 \\u7ea2\\u8840\\u7403 \\u6d2a\\u6d1e\\u53bf \\u5589\\u585e\\u97f3 \\u540e\\u53d1\\u5ea7 \\u5f27\\u5708\\u7403 \\u80e1\\u841d\\u535c \\u846b\\u82a6\\u79d1 \\u7cca\\u6d82\\u866b \\u7cca\\u6d82\\u8d26 \\u864e\\u800c\\u51a0 \\u864e\\u9aa8\\u9152 \\u62a4\\u53d1\\u7d20 \\u62a4\\u58eb\\u957f \\u82b1\\u6c60\\u5b50 \\u82b1\\u96d5\\u9152 \\u82b1\\u9aa8\\u6735 \\u82b1\\u67b6\\u5b50 \\u82b1\\u9732\\u6c34 \\u82b1\\u751f\\u6d46 \\u82b1\\u5b50\\u513f \\u5212\\u5f97\\u6765 \\u5212\\u65f6\\u4ee3 \\u534e\\u9f99\\u533a \\u534e\\u7f57\\u5e9a \\u54d7\\u5566\\u5566 \\u6ed1\\u51b0\\u573a \\u8bdd\\u628a\\u513f \\u8bdd\\u53e3\\u513f \\u8bdd\\u5323\\u5b50 \\u69d0\\u836b\\u533a \\u574f\\u5206\\u5b50 \\u574f\\u8840\\u75c5 \\u5e7b\\u60f3\\u66f2 \\u6362\\u6863\\u6746 \\u9ec4\\u9642\\u533a \\u9ec4\\u9508\\u75c5 \\u7070\\u6e9c\\u6e9c \\u7070\\u8499\\u8499 \\u7070\\u6307\\u7532 \\u56de\\u5f39\\u529b \\u56de\\u65cb\\u66f2 \\u4f1a\\u8ba1\\u5e08 \\u4f1a\\u8ba1\\u5ba4 \\u4f1a\\u8ba1\\u5b66 \\u6df7\\u65e5\\u5b50 \\u8c41\\u514d\\u6743 \\u6d3b\\u585e\\u6746 \\u706b\\u7bad\\u70ae \\u706b\\u7b77\\u5b50 \\u8d27\\u67b6\\u5b50 \\u673a\\u5173\\u70ae \\u9e21\\u5c3e\\u9152 \\u9e21\\u5b50\\u513f \\u79ef\\u7d2f\\u7387 \\u6fc0\\u5c06\\u6cd5 \\u5409\\u5a03\\u5a03 \\u6025\\u5239\\u8f66 \\u6025\\u884c\\u519b \\u6025\\u5c31\\u7ae0 \\u6025\\u53e3\\u4ee4 \\u6025\\u6027\\u5b50 \\u51e0\\u4f55\\u5b66 \\u810a\\u7d22\\u7624 \\u8bb0\\u53f7\\u7b14 \\u7eaa\\u5f55\\u7247 \\u6d4e\\u5357\\u5e02 \\u6d4e\\u5b81\\u5e02 \\u52a0\\u7684\\u65af \\u52a0\\u519c\\u70ae \\u5bb6\\u96c0\\u513f \\u5bb6\\u957f\\u5236 \\u5609\\u836b\\u53bf \\u5939\\u80a2\\u7a9d \\u7532\\u58f3\\u7c7b \\u7532\\u58f3\\u7d20 \\u67b6\\u4e0d\\u4f4f \\u67b6\\u5b50\\u8f66 \\u67b6\\u5b50\\u732a \\u5c16\\u6e9c\\u6e9c \\u5c16\\u6c99\\u5480 \\u95f4\\u8c0d\\u7f6a \\u95f4\\u65ad\\u6027 \\u95f4\\u9694\\u53f7 \\u95f4\\u63a5\\u8d39 \\u95f4\\u63a5\\u7a0e \\u95f4\\u6b47\\u6cc9 \\u95f4\\u594f\\u66f2 \\u728d\\u4e3a\\u53bf \\u714e\\u70b8\\u6cb9 \\u68c0\\u5bdf\\u957f \\u526a\\u5e94\\u529b \\u78b1\\u4e2d\\u6bd2 \\u7bad\\u579b\\u5b50 \\u6c5f\\u7c73\\u9152 \\u5c06\\u8fdb\\u9152 \\u964d\\u843d\\u4f1e \\u964d\\u9b54\\u6775 \\u964d\\u96e8\\u91cf \\u4ea4\\u676f\\u9152 \\u4ea4\\u6d41\\u7535 \\u4ea4\\u54cd\\u4e50 \\u4ea4\\u54cd\\u66f2 \\u89d2\\u52a8\\u91cf \\u89d2\\u6597\\u573a \\u811a\\u6307\\u5934 \\u6559\\u4e66\\u5320 \\u6559\\u5b66\\u7247 \\u9636\\u4e0b\\u56da \\u63a5\\u5934\\u513f \\u63ed\\u76d6\\u5b50 \\u8282\\u9aa8\\u773c \\u8282\\u5047\\u65e5 \\u7ed3\\u5a5a\\u8bc1 \\u59d0\\u513f\\u4eec \\u754c\\u5916\\u7403 \\u91d1\\u521a\\u94bb \\u91d1\\u6643\\u6643 \\u91d1\\u725b\\u5ea7 \\u91d1\\u55d3\\u5b50 \\u91d1\\u94a5\\u5319 \\u8fdb\\u884c\\u66f2 \\u7981\\u95ed\\u5ba4 \\u7981\\u4e0d\\u4f4f \\u7981\\u5f97\\u8d77 \\u7981\\u5f97\\u4f4f \\u7981\\u536b\\u519b \\u7ecf\\u5f97\\u8d77 \\u9759\\u6084\\u6084 \\u7a76\\u6839\\u513f \\u63ea\\u8fab\\u5b50 \\u4e5d\\u534e\\u5c71 \\u4e5d\\u56de\\u80a0 \\u4e5d\\u6c5f\\u5e02 \\u4e5d\\u91cc\\u9999 \\u4e5d\\u66f2\\u6865 \\u4e5d\\u5934\\u9e1f \\u4e5d\\u5c3e\\u72d0 \\u4e5d\\u5be8\\u6c9f \\u4e5d\\u6298\\u81c2 \\u4e5d\\u91cd\\u9704 \\u9152\\u5427\\u95f4 \\u9152\\u7cbe\\u706f \\u9152\\u77f3\\u9178 \\u9152\\u7cdf\\u9f3b \\u9152\\u6e23\\u9f3b \\u65e7\\u6846\\u6846 \\u65e7\\u793e\\u4f1a \\u62d8\\u7559\\u6240 \\u82e3\\u836c\\u83dc \\u5377\\u7b14\\u5200 \\u5377\\u53d1\\u5668 \\u5377\\u94fa\\u76d6 \\u5377\\u626c\\u673a \\u7235\\u58eb\\u4e50 \\u519b\\u673a\\u5904 \\u519b\\u4e50\\u961f \\u519b\\u4e50\\u56e2 \\u519b\\u4ee4\\u72b6 \\u5747\\u65b9\\u5dee \\u5580\\u5587\\u6c81 \\u5361\\u5bbe\\u67aa \\u5361\\u8116\\u5b50 \\u5361\\u4ecb\\u82d7 \\u5361\\u62c9\\u5947 \\u5361\\u8def\\u91cc \\u5f00\\u573a\\u767d \\u5f00\\u5012\\u8f66 \\u5f00\\u53e3\\u5b50 \\u5f00\\u5c0f\\u5dee \\u770b\\u5f97\\u8d77 \\u770b\\u5bb6\\u72d7 \\u770b\\u5bb6\\u620f \\u770b\\u4e0a\\u53bb \\u770b\\u5b88\\u6240 \\u770b\\u6837\\u5b50 \\u9760\\u4e0d\\u4f4f \\u9760\\u5f97\\u4f4f \\u79d1\\u6559\\u7247 \\u53ef\\u4e0d\\u662f \\u53ef\\u7684\\u677e \\u53ef\\u884c\\u6027 \\u53ef\\u5361\\u56e0 \\u53ef\\u6570\\u96c6 \\u514b\\u5206\\u5b50 \\u5543\\u9aa8\\u5934 \\u7a7a\\u767d\\u70b9 \\u7a7a\\u767d\\u7b26 \\u7a7a\\u67b6\\u5b50 \\u7a7a\\u843d\\u843d \\u6050\\u5413\\u4fe1 \\u63a7\\u5236\\u6746 \\u6263\\u5e3d\\u5b50 \\u54ed\\u9f3b\\u5b50 \\u54ed\\u4e27\\u68d2 \\u82e6\\u884c\\u50e7 \\u72c2\\u60f3\\u66f2 \\u5764\\u89d2\\u513f \\u6269\\u6563\\u5242 \\u62c9\\u809a\\u5b50 \\u62c9\\u5471\\u513f \\u62c9\\u5bb6\\u5e38 \\u5587\\u53ed\\u53e3 \\u5587\\u561b\\u6559 \\u8fa3\\u6912\\u4ed4 \\u6765\\u5f97\\u53ca \\u765e\\u86e4\\u87c6 \\u7bee\\u677f\\u7403 \\u70c2\\u644a\\u5b50 \\u5eca\\u574a\\u5e02 \\u6d6a\\u6f2b\\u66f2 \\u8001\\u9f3b\\u5b50 \\u8001\\u4f2f\\u4f2f \\u8001\\u5927\\u96be \\u8001\\u7599\\u7629 \\u8001\\u9aa8\\u5934 \\u8001\\u7cca\\u6d82 \\u8001\\u9ec4\\u725b \\u8001\\u5bb6\\u4f19 \\u8001\\u6765\\u5c11 \\u8001\\u5976\\u5976 \\u8001\\u670b\\u53cb \\u8001\\u5e08\\u5085 \\u8001\\u5934\\u513f \\u8001\\u5934\\u5b50 \\u8001\\u5b66\\u7a76 \\u8001\\u7237\\u5cad \\u8001\\u7237\\u7237 \\u4e50\\u5e9c\\u8bd7 \\u4e50\\u6e05\\u5e02 \\u52d2\\u5a01\\u8036 \\u7d2f\\u52a0\\u5668 \\u7d2f\\u8fdb\\u7a0e \\u64c2\\u53f0\\u8d5b \\u51b7\\u8f67\\u94a2 \\u7406\\u53d1\\u5e97 \\u7406\\u53d1\\u9986 \\u7406\\u53d1\\u5320 \\u7406\\u53d1\\u5e08 \\u7406\\u53d1\\u5385 \\u7406\\u53d1\\u5458 \\u4e3d\\u6c34\\u5e02 \\u5229\\u606f\\u7387 \\u83b2\\u82b1\\u843d \\u7ec3\\u4e60\\u66f2 \\u94fe\\u53cd\\u5e94 \\u94fe\\u7403\\u83cc \\u7cae\\u98df\\u5c40 \\u4e24\\u53e3\\u5b50 \\u4e24\\u91cd\\u6027 \\u91cf\\u5b50\\u5316 \\u91cf\\u5b50\\u8bba \\u91cf\\u5b50\\u6570 \\u91cf\\u5b50\\u6001 \\u6482\\u6311\\u5b50 \\u77ad\\u671b\\u54e8 \\u77ad\\u671b\\u53f0 \\u5217\\u8f66\\u957f \\u6dcb\\u7403\\u83cc \\u7075\\u957f\\u76ee \\u6e9c\\u51b0\\u573a \\u6e9c\\u80a9\\u8180 \\u6e9c\\u6e9c\\u8f6c \\u5218\\u5bc4\\u5974 \\u5218\\u5c11\\u5947 \\u7559\\u540e\\u8def \\u7559\\u540e\\u624b \\u7559\\u5170\\u9999 \\u7559\\u58f0\\u673a \\u7559\\u5c3e\\u5df4 \\u7559\\u5b66\\u751f \\u7559\\u4e00\\u624b \\u7559\\u4f59\\u5730 \\u6d41\\u884c\\u75c5 \\u6d41\\u884c\\u6027 \\u6d41\\u6d6a\\u6c49 \\u6d41\\u6c34\\u5e2d \\u6d41\\u6c34\\u7ebf \\u6d41\\u6c34\\u8d26 \\u6d41\\u901a\\u5238 \\u6d41\\u7ebf\\u578b \\u6d41\\u661f\\u96e8 \\u786b\\u5316\\u7269 \\u69b4\\u5f39\\u70ae \\u69b4\\u9730\\u5f39 \\u67f3\\u6761\\u5e3d \\u67f3\\u53f6\\u7709 \\u67f3\\u5b50\\u620f \\u516d\\u8fb9\\u5f62 \\u516d\\u541b\\u5b50 \\u516d\\u516d\\u516d \\u516d\\u76d8\\u5c71 \\u516d\\u5f26\\u7434 \\u516d\\u6708\\u96ea \\u516d\\u6307\\u513f \\u905b\\u5f2f\\u513f \\u9f99\\u864e\\u6597 \\u9f99\\u5377\\u98ce \\u9f99\\u95e8\\u5228 \\u788c\\u66f2\\u53bf \\u8def\\u5012\\u513f \\u9732\\u5929\\u77ff \\u9732\\u5934\\u89d2 \\u4e71\\u5f39\\u7434 \\u4e71\\u54c4\\u54c4 \\u4e71\\u9ebb\\u9ebb \\u8f6e\\u673a\\u957f \\u7f57\\u4f2f\\u900a \\u903b\\u8f91\\u5b66 \\u87ba\\u4e1d\\u94bb \\u843d\\u4e0d\\u662f \\u843d\\u5730\\u7a97 \\u843d\\u5730\\u706f \\u843d\\u82b1\\u751f \\u843d\\u6c34\\u72d7 \\u843d\\u6c34\\u7ba1 \\u843d\\u6c64\\u9e21 \\u843d\\u53f6\\u6811 \\u65c5\\u884c\\u793e \\u9ebb\\u9ebb\\u9ed1 \\u9ebb\\u9ebb\\u4eae \\u9ebb\\u7ea4\\u7ef4 \\u9a6c\\u69df\\u6994 \\u9a6c\\u540e\\u70ae \\u9a6c\\u516d\\u7532 \\u9a6c\\u8d5b\\u66f2 \\u9a6c\\u8e44\\u8896 \\u739b\\u66f2\\u53bf \\u4e70\\u9762\\u5b50 \\u6162\\u6027\\u5b50 \\u6bdb\\u73bb\\u7483 \\u6bdb\\u5b69\\u5b50 \\u6bdb\\u5229\\u7387 \\u6bdb\\u4e2b\\u5934 \\u8305\\u53f0\\u9152 \\u94c6\\u52b2\\u513f \\u6ca1\\u5948\\u4f55 \\u6ca1\\u8c31\\u513f \\u6ca1\\u4ec0\\u4e48 \\u6885\\u897f\\u8036 \\u7164\\u6838\\u513f \\u9176\\u53cd\\u5e94 \\u6bcf\\u4e2a\\u4eba \\u95f7\\u5934\\u513f \\u8499\\u53e4\\u5305 \\u8499\\u53e4\\u56fd \\u8499\\u53e4\\u65cf \\u8499\\u6c57\\u836f \\u8499\\u8499\\u4eae \\u8499\\u592a\\u5947 \\u5bc6\\u9ebb\\u9ebb \\u79d2\\u5dee\\u8ddd \\u540d\\u5229\\u573a \\u660e\\u6446\\u7740 \\u547d\\u6839\\u5b50 \\u547d\\u4ee4\\u53e5 \\u547d\\u4e2d\\u7387 \\u6a21\\u7cca\\u96c6 \\u78e8\\u7c89\\u673a \\u62b9\\u8116\\u5b50 \\u62b9\\u4e0d\\u5f00 \\u83ab\\u4e0d\\u662f \\u725f\\u5e73\\u533a \\u7261\\u4e39\\u5361 \\u7261\\u4e39\\u533a \\u7261\\u4e39\\u4e61 \\u6728\\u5934\\u4eba \\u76ee\\u7684\\u5730 \\u76ee\\u7684\\u8bba \\u76ee\\u7684\\u6027 \\u7a46\\u68f1\\u5e02 \\u62ff\\u67b6\\u5b50 \\u90a3\\u4f1a\\u513f \\u90a3\\u4e48\\u4e9b \\u90a3\\u4e48\\u7740 \\u90a3\\u66f2\\u53bf \\u90a3\\u65f6\\u5019 \\u7537\\u4eba\\u5bb6 \\u5357\\u534a\\u7403 \\u5357\\u5317\\u671d \\u5357\\u671d\\u9c9c \\u96be\\u6c11\\u8425 \\u8111\\u5145\\u8840 \\u8111\\u8d2b\\u8840 \\u8111\\u6ea2\\u8840 \\u95f9\\u522b\\u626d \\u95f9\\u809a\\u5b50 \\u95f9\\u54c4\\u54c4 \\u95f9\\u56b7\\u56b7 \\u95f9\\u7740\\u73a9 \\u5185\\u51fa\\u8840 \\u5185\\u5e94\\u529b \\u80fd\\u91cf\\u5b50 \\u6ce5\\u77f3\\u6d41 \\u9006\\u53cd\\u5e94 \\u5e74\\u4ea7\\u91cf \\u5a18\\u513f\\u4eec \\u51dd\\u8840\\u9176 \\u725b\\u9f3b\\u5b50 \\u725b\\u8116\\u5b50 \\u725b\\u810a\\u8089 \\u725b\\u89d2\\u5c16 \\u725b\\u90ce\\u661f \\u725b\\u6bdb\\u96e8 \\u725b\\u76ae\\u7663 \\u725b\\u76ae\\u7eb8 \\u725b\\u813e\\u6c14 \\u725b\\u5934\\u5228 \\u725b\\u4ed4\\u88e4 \\u725b\\u4ed4\\u886b \\u626d\\u79e7\\u6b4c \\u62d7\\u4e0d\\u8fc7 \\u62d7\\u53e3\\u4ee4 \\u52aa\\u52b2\\u513f \\u5973\\u5f3a\\u4eba \\u5973\\u4eba\\u5bb6 \\u5973\\u4e3b\\u89d2 \\u722c\\u683c\\u5b50 \\u62cd\\u80f8\\u812f \\u6392\\u53c9\\u513f \\u6392\\u5b50\\u8f66 \\u6d3e\\u4e0d\\u662f \\u76d8\\u6760\\u5b50 \\u8180\\u80f1\\u764c \\u8180\\u80f1\\u955c \\u80d6\\u5927\\u6d77 \\u80d6\\u561f\\u561f \\u80d6\\u58a9\\u58a9 \\u80d6\\u58a9\\u513f \\u80d6\\u4e4e\\u4e4e \\u80d6\\u5934\\u9c7c \\u8dd1\\u9a6c\\u573a \\u8dd1\\u5706\\u573a \\u6ce1\\u6cab\\u5242 \\u70ae\\u7b52\\u5b50 \\u70ae\\u5b50\\u513f \\u8d54\\u4e0d\\u662f \\u914d\\u7ed9\\u5236 \\u787c\\u73bb\\u7483 \\u78b0\\u9489\\u5b50 \\u76ae\\u5939\\u5b50 \\u7247\\u513f\\u6c64 \\u9a97\\u5b50\\u624b \\u6f02\\u767d\\u7c89 \\u6f02\\u767d\\u5242 \\u6f02\\u767d\\u6db2 \\u6f02\\u4eae\\u8bdd \\u6f02\\u6d41\\u7269 \\u4e52\\u4e53\\u7403 \\u5e73\\u884c\\u7ebf \\u5e73\\u6d41\\u5c42 \\u5e73\\u5c04\\u70ae \\u8feb\\u51fb\\u70ae \\u7834\\u843d\\u6237 \\u7834\\u8c1c\\u513f \\u7834\\u6298\\u53f7 \\u8461\\u8404\\u9152 \\u66dd\\u5149\\u8868 \\u5947\\u51fd\\u6570 \\u5947\\u5076\\u6027 \\u542f\\u53d1\\u5f0f \\u6c14\\u54bb\\u54bb \\u5668\\u4e50\\u66f2 \\u5343\\u91d1\\u5b50 \\u7275\\u725b\\u661f \\u94c5\\u73bb\\u7483 \\u94c5\\u4e2d\\u6bd2 \\u524d\\u594f\\u66f2 \\u67aa\\u6746\\u5b50 \\u67aa\\u69b4\\u5f39 \\u67aa\\u5b50\\u513f \\u5f3a\\u884c\\u519b \\u62a2\\u52ab\\u72af \\u62a2\\u65f6\\u95f4 \\u62a2\\u624b\\u8d27 \\u6084\\u6ca1\\u58f0 \\u6084\\u6084\\u8bdd \\u6572\\u7af9\\u6760 \\u77a7\\u5f97\\u8d77 \\u7fd8\\u8fab\\u5b50 \\u7fd8\\u5c3e\\u5df4 \\u5207\\u5411\\u91cf \\u94a6\\u5929\\u76d1 \\u4eb2\\u5bb6\\u516c \\u4eb2\\u5bb6\\u6bcd \\u9752\\u7a1e\\u9152 \\u9752\\u5c11\\u5e74 \\u8f7b\\u91cf\\u7ea7 \\u8f7b\\u97f3\\u4e50 \\u6e05\\u52b2\\u98ce \\u8bf7\\u5047\\u6761 \\u4e18\\u6bd4\\u7279 \\u79cb\\u6d77\\u68e0 \\u79cb\\u8001\\u864e \\u79cb\\u5e84\\u7a3c \\u6c42\\u77e5\\u6b32 \\u9a71\\u9010\\u4ee4 \\u5c48\\u620c\\u513f \\u66f2\\u522b\\u9488 \\u66f2\\u68cd\\u7403 \\u66f2\\u6c5f\\u533a \\u66f2\\u9888\\u7511 \\u66f2\\u9756\\u5e02 \\u66f2\\u9ebb\\u83b1 \\u66f2\\u5c04\\u70ae \\u66f2\\u6c34\\u53bf \\u66f2\\u677e\\u53bf \\u66f2\\u6c83\\u53bf \\u66f2\\u9633\\u53bf \\u66f2\\u5468\\u53bf \\u529d\\u4e1a\\u573a \\u7ed5\\u8116\\u5b50 \\u7ed5\\u53e3\\u4ee4 \\u7ed5\\u5708\\u5b50 \\u70ed\\u5f97\\u5feb \\u70ed\\u8d1f\\u8377 \\u70ed\\u6548\\u5e94 \\u70ed\\u5e94\\u529b \\u70ed\\u8f67\\u94a2 \\u4eba\\u884c\\u9053 \\u8ba4\\u8bc6\\u8bba \\u4efb\\u610f\\u7403 \\u8089\\u76ae\\u513f \\u5b7a\\u5b50\\u725b \\u5165\\u573a\\u5238 \\u5165\\u53e3\\u5904 \\u8f6f\\u5200\\u5b50 \\u8f6f\\u9489\\u5b50 \\u8f6f\\u8033\\u6735 \\u8f6f\\u9aa8\\u5934 \\u6da6\\u53d1\\u9732 \\u6492\\u64ad\\u673a \\u6492\\u5453\\u6323 \\u585e\\u64e6\\u97f3 \\u585e\\u4e0a\\u66f2 \\u8d5b\\u7490\\u73a2 \\u8d5b\\u9a6c\\u573a \\u4e09\\u90e8\\u66f2 \\u4e09\\u6625\\u67f3 \\u4e09\\u4e5d\\u5929 \\u4e09\\u8fde\\u51a0 \\u4e09\\u62d7\\u6c64 \\u4e09\\u8272\\u5807 \\u4e09\\u6298\\u80b1 \\u4e09\\u91cd\\u5e02 \\u4e09\\u91cd\\u594f \\u6563\\u5175\\u7ebf \\u6563\\u644a\\u5b50 \\u6563\\u6587\\u5bb6 \\u6563\\u6587\\u8bd7 \\u55d3\\u5b50\\u773c \\u4e27\\u5bb6\\u72ac \\u4e27\\u95e8\\u795e \\u626b\\u5e1a\\u661f \\u50bb\\u52b2\\u513f \\u53a6\\u95e8\\u5e02 \\u5c71\\u5c97\\u5b50 \\u6247\\u98ce\\u673a \\u6247\\u9aa8\\u5b50 \\u4e0a\\u8f88\\u5b50 \\u4e0a\\u573a\\u95e8 \\u70e7\\u8304\\u5b50 \\u5c11\\u4e0d\\u5f97 \\u5c11\\u4e0d\\u4e86 \\u5c11\\u5976\\u5976 \\u5c11\\u5e74\\u72af \\u5c11\\u5e74\\u5bab \\u5c11\\u5973\\u88c5 \\u5c11\\u58ee\\u6d3e \\u7ecd\\u5174\\u9152 \\u820d\\u4e0d\\u5f97 \\u5c04\\u51fb\\u573a \\u4ec0\\u4e48\\u7684 \\u5ba1\\u5224\\u957f \\u5347\\u538b\\u5668 \\u751f\\u4ea7\\u7387 \\u751f\\u53d1\\u6cb9 \\u751f\\u80b2\\u7387 \\u751f\\u957f\\u70b9 \\u751f\\u957f\\u671f \\u5931\\u843d\\u611f \\u72ee\\u5b50\\u72d7 \\u72ee\\u5b50\\u5934 \\u72ee\\u5b50\\u821e \\u72ee\\u5b50\\u5ea7 \\u77f3\\u69b4\\u82b1 \\u77f3\\u69b4\\u5b50 \\u77f3\\u72ee\\u5b50 \\u77f3\\u5934\\u57ce \\u77f3\\u5b50\\u513f \\u65f6\\u95f4\\u5dee \\u65f6\\u4ee4\\u75c5 \\u5b9e\\u9645\\u4e0a \\u4f7f\\u6027\\u5b50 \\u5c4e\\u58f3\\u90ce \\u4f8d\\u5e94\\u751f \\u67ff\\u5b50\\u6912 \\u662f\\u4e0d\\u662f \\u9002\\u5e94\\u6027 \\u9002\\u5e94\\u75c7 \\u5ba4\\u95f4\\u9694 \\u5ba4\\u5185\\u4e50 \\u6536\\u644a\\u5b50 \\u624b\\u69b4\\u5f39 \\u624b\\u6307\\u5934 \\u5b88\\u65e7\\u6d3e \\u53d7\\u5f97\\u4e86 \\u4e66\\u5446\\u5b50 \\u4e66\\u8bb0\\u5904 \\u6811\\u884c\\u5b50 \\u6811\\u6797\\u5b50 \\u6570\\u4e0d\\u4e0a \\u6570\\u4e0d\\u7740 \\u6570\\u5f97\\u7740 \\u6570\\u6765\\u5b9d \\u6570\\u91cf\\u8bcd \\u800d\\u7b14\\u6746 \\u800d\\u6d41\\u6c13 \\u800d\\u6392\\u573a \\u6454\\u8ddf\\u5934 \\u6dae\\u9505\\u5b50 \\u53cc\\u66f2\\u9762 \\u6c34\\u6d52\\u4f20 \\u6c34\\u843d\\u7ba1 \\u6c34\\u78e8\\u6c9f \\u6c34\\u6ce1\\u5b50 \\u6c34\\u76ae\\u513f \\u7761\\u5348\\u89c9 \\u987a\\u53e3\\u6e9c \\u8bf4\\u5f97\\u6765 \\u8bf4\\u5934\\u513f \\u53f8\\u4ee4\\u90e8 \\u53f8\\u4ee4\\u5458 \\u53f8\\u5929\\u76d1 \\u53f8\\u52a1\\u957f \\u6b7b\\u80e1\\u540c \\u6b7b\\u96be\\u8005 \\u6b7b\\u4ea1\\u7387 \\u56db\\u516d\\u6587 \\u56db\\u91cd\\u594f \\u82cf\\u6253\\u7c89 \\u9178\\u6e9c\\u6e9c \\u9178\\u725b\\u5976 \\u9178\\u4e2d\\u6bd2 \\u968f\\u5927\\u6e9c \\u968f\\u60f3\\u66f2 \\u7f29\\u7802\\u5bc6 \\u6240\\u5f97\\u7a0e \\u5854\\u4ec0\\u5e72 \\u53f0\\u67f1\\u5b50 \\u62ac\\u8f7f\\u5b50 \\u592a\\u4ec6\\u5bfa \\u592a\\u5b50\\u53c2 \\u8c08\\u5f97\\u6765 \\u63a2\\u4eb2\\u5047 \\u7cd6\\u841d\\u535c \\u5957\\u9a6c\\u6746 \\u8e22\\u76ae\\u7403 \\u4f53\\u80b2\\u573a \\u5929\\u8001\\u7237 \\u5929\\u7403\\u4eea \\u5929\\u53f0\\u5c71 \\u5929\\u6653\\u5f97 \\u6311\\u5927\\u6881 \\u6311\\u6218\\u4e66 \\u6311\\u6218\\u8005 \\u8c03\\u9152\\u5e08 \\u8c03\\u95e8\\u513f \\u8df3\\u623f\\u5b50 \\u8d34\\u997c\\u5b50 \\u4ead\\u5b50\\u95f4 \\u901a\\u884c\\u8bc1 \\u901a\\u7f09\\u4ee4 \\u94dc\\u7ba1\\u4e50 \\u94dc\\u5b50\\u513f \\u571f\\u515a\\u53c2 \\u571f\\u7599\\u7629 \\u5410\\u8c37\\u6d51 \\u83df\\u4e1d\\u5b50 \\u56e2\\u56e2\\u8f6c \\u817f\\u809a\\u5b50 \\u9000\\u4f11\\u91d1 \\u5a03\\u5a03\\u4eb2 \\u5a03\\u5a03\\u751f \\u5a03\\u5a03\\u9c7c \\u74e6\\u5c97\\u519b \\u5916\\u51fa\\u8840 \\u5916\\u5b59\\u5b50 \\u7579\\u753a\\u5e02 \\u4e07\\u67cf\\u6797 \\u4e07\\u6237\\u4faf \\u4e07\\u5723\\u8282 \\u5fae\\u8840\\u7ba1 \\u4e3a\\u4ec0\\u4e48 \\u536b\\u751f\\u7403 \\u672a\\u89c1\\u5f97 \\u5c09\\u7281\\u53bf \\u6587\\u51a0\\u679c \\u6587\\u7ec9\\u7ec9 \\u7a9d\\u91cc\\u6597 \\u7a9d\\u56ca\\u6c14 \\u4e4c\\u62c9\\u8349 \\u4e4c\\u62c9\\u572d \\u4e4c\\u6e9c\\u6e9c \\u65e0\\u540d\\u5e16 \\u4e94\\u82d3\\u6563 \\u6b66\\u4faf\\u7960 \\u6342\\u76d6\\u5b50 \\u7269\\u7406\\u91cf \\u8bef\\u5dee\\u503c \\u897f\\u534a\\u7403 \\u897f\\u6d0b\\u53c2 \\u897f\\u8036\\u90a3 \\u5438\\u8840\\u9b3c \\u7a00\\u6e9c\\u6e9c \\u6d17\\u53d1\\u818f \\u6d17\\u53d1\\u5242 \\u6d17\\u53d1\\u6c34 \\u6d17\\u53d1\\u7682 \\u559c\\u5267\\u7247 \\u559c\\u76f8\\u9022 \\u620f\\u73ed\\u5b50 \\u7cfb\\u5217\\u7247 \\u4e0b\\u534a\\u573a \\u4e0b\\u8f88\\u5b50 \\u4e0b\\u573a\\u95e8 \\u4e0b\\u4e5d\\u6d41 \\u590f\\u4ee4\\u65f6 \\u590f\\u4ee4\\u8425 \\u4ed9\\u4eba\\u7403 \\u5148\\u884c\\u5b98 \\u5148\\u884c\\u8005 \\u5f26\\u4e50\\u961f \\u5f26\\u4e50\\u5668 \\u6d8e\\u7740\\u8138 \\u73b0\\u573a\\u4f1a \\u73b0\\u884c\\u6cd5 \\u73b0\\u884c\\u72af \\u7ebf\\u6844\\u5b50 \\u76f8\\u7535\\u6d41 \\u76f8\\u7a7a\\u95f4 \\u76f8\\u7247\\u513f \\u76f8\\u5e73\\u9762 \\u76f8\\u4f4d\\u5dee \\u76f8\\u5e94\\u7269 \\u9999\\u69df\\u9152 \\u54cd\\u5e94\\u503c \\u60f3\\u4e0d\\u5230 \\u60f3\\u5f97\\u5f00 \\u8096\\u50cf\\u753b \\u5c0f\\u8fab\\u5b50 \\u5c0f\\u518c\\u5b50 \\u5c0f\\u5f1f\\u5f1f \\u5c0f\\u809a\\u5b50 \\u5c0f\\u94a2\\u70ae \\u5c0f\\u5b69\\u5b50 \\u5c0f\\u884c\\u661f \\u5c0f\\u4f19\\u5b50 \\u5c0f\\u5bb6\\u4f19 \\u5c0f\\u4e5d\\u4e5d \\u5c0f\\u8205\\u5b50 \\u5c0f\\u841d\\u535c \\u5c0f\\u599e\\u513f \\u5c0f\\u5668\\u4f5c \\u5c0f\\u79cb\\u6536 \\u5c0f\\u66f2\\u513f \\u5c0f\\u5708\\u5b50 \\u5c0f\\u4eba\\u513f \\u5c0f\\u65e5\\u5b50 \\u5c0f\\u6570\\u70b9 \\u5c0f\\u82cf\\u6253 \\u5c0f\\u5c0f\\u5b50 \\u5c0f\\u591c\\u66f2 \\u6821\\u52d8\\u5b66 \\u6821\\u9a8c\\u4f4d \\u6821\\u6b63\\u5668 \\u6821\\u6b63\\u5b50 \\u6821\\u51c6\\u4eea \\u7b11\\u54a7\\u54a7 \\u6548\\u5e94\\u5668 \\u534f\\u65b9\\u5dee \\u534f\\u594f\\u66f2 \\u4fe1\\u76ae\\u513f \\u6027\\u884c\\u4e3a \\u96c4\\u9ec4\\u9152 \\u96c4\\u8d73\\u8d73 \\u718a\\u778e\\u5b50 \\u4f11\\u8015\\u5730 \\u4f11\\u517b\\u6240 \\u4f11\\u6b62\\u7b26 \\u4fee\\u8f9e\\u683c \\u4fee\\u8f9e\\u5b66 \\u4fee\\u9053\\u9662 \\u7f9e\\u7b54\\u7b54 \\u8896\\u73cd\\u672c \\u7ee3\\u82b1\\u978b \\u55c5\\u795e\\u7ecf \\u9009\\u4fee\\u8bfe \\u8840\\u5438\\u866b \\u8840\\u7ec6\\u80de \\u8840\\u5c0f\\u677f \\u8840\\u538b\\u8ba1 \\u8840\\u6db2\\u75c5 \\u8840\\u53cb\\u75c5 \\u8368\\u9ebb\\u75b9 \\u538b\\u62c5\\u5b50 \\u538b\\u6839\\u513f \\u538b\\u8f74\\u620f \\u538b\\u8f74\\u5b50 \\u9e26\\u80c6\\u5b50 \\u9e2d\\u7eff\\u6c5f \\u9e2d\\u5b50\\u513f \\u96c5\\u5c14\\u5854 \\u70df\\u5377\\u513f \\u7814\\u7a76\\u751f \\u7814\\u7a76\\u6240 \\u7814\\u7a76\\u5458 \\u773c\\u4e0d\\u89c1 \\u773c\\u5e95\\u4e0b \\u773c\\u89c1\\u5f97 \\u9633\\u7535\\u8377 \\u9633\\u66f2\\u53bf \\u6d0b\\u9b3c\\u5b50 \\u6d0b\\u55d3\\u5b50 \\u6d0b\\u5a03\\u5a03 \\u517b\\u6b96\\u573a \\u6c27\\u6548\\u5e94 \\u8170\\u6746\\u5b50 \\u6447\\u6eda\\u4e50 \\u6447\\u7bee\\u66f2 \\u836f\\u7f50\\u5b50 \\u8981\\u4e0d\\u662f \\u8981\\u9762\\u5b50 \\u8036\\u548c\\u534e \\u8036\\u7a23\\u6559 \\u6930\\u5b50\\u6cb9 \\u53f6\\u5b50\\u70df \\u591c\\u884c\\u519b \\u4e00\\u8f88\\u5b50 \\u4e00\\u90e8\\u5206 \\u4e00\\u6b21\\u6027 \\u4e00\\u70b9\\u70b9 \\u4e00\\u809a\\u5b50 \\u4e00\\u4e2a\\u52b2 \\u4e00\\u4e2a\\u6837 \\u4e00\\u9aa8\\u788c \\u4e00\\u4f1a\\u513f \\u4e00\\u6e9c\\u513f \\u4e00\\u6e9c\\u98ce \\u4e00\\u6e9c\\u70df \\u4e00\\u8def\\u8d27 \\u4e00\\u8def\\u4eba \\u4e00\\u5e74\\u751f \\u4e00\\u725b\\u9e23 \\u4e00\\u638a\\u571f \\u4e00\\u9635\\u5b50 \\u8863\\u51a0\\u51a2 \\u59e8\\u59e5\\u59e5 \\u59e8\\u5976\\u5976 \\u4ee1\\u4f6c\\u65cf \\u610f\\u5473\\u7740 \\u9634\\u7740\\u513f \\u97f3\\u4e50\\u4f1a \\u97f3\\u4e50\\u5bb6 \\u97f3\\u4e50\\u5385 \\u94f6\\u884c\\u5361 \\u5370\\u628a\\u5b50 \\u5370\\u76f8\\u7eb8 \\u8fce\\u5bbe\\u66f2 \\u8365\\u7ecf\\u53bf \\u5f71\\u7247\\u513f \\u5f71\\u8c03\\u5267 \\u5e94\\u53d8\\u529b \\u5e94\\u53d8\\u4eea \\u5e94\\u7b54\\u5668 \\u5e94\\u6025\\u706f \\u5e94\\u529b\\u573a \\u5e94\\u540d\\u513f \\u5e94\\u58f0\\u866b \\u5e94\\u7528\\u5c42 \\u5e94\\u7528\\u6587 \\u5e94\\u7528\\u6027 \\u5e94\\u6218\\u4e66 \\u786c\\u9aa8\\u5934 \\u548f\\u53f9\\u8c03 \\u7528\\u4e0d\\u7740 \\u7528\\u5f97\\u7740 \\u6cb9\\u70b8\\u9b3c \\u6709\\u7684\\u662f \\u6709\\u5206\\u5bf8 \\u6709\\u65e5\\u5b50 \\u6709\\u65f6\\u5019 \\u9c7c\\u809a\\u767d \\u4e0e\\u4f1a\\u8005 \\u4f1b\\u507b\\u75c5 \\u7fbd\\u6bdb\\u7403 \\u9884\\u5e94\\u529b \\u9047\\u96be\\u8005 \\u5143\\u597d\\u95ee \\u57a3\\u66f2\\u53bf \\u539f\\u5b50\\u91cf \\u5706\\u6e9c\\u6e9c \\u5706\\u821e\\u66f2 \\u5706\\u5468\\u7387 \\u6708\\u5934\\u513f \\u6655\\u9ad8\\u513f \\u4e91\\u5934\\u513f \\u8fd0\\u52a8\\u573a \\u8fd0\\u52a8\\u91cf \\u8fd0\\u8f93\\u91cf \\u6742\\u548c\\u9762 \\u6742\\u8d27\\u94fa \\u7838\\u724c\\u5b50 \\u683d\\u8ddf\\u5934 \\u8f7d\\u755c\\u91cf \\u8f7d\\u91cd\\u91cf \\u810f\\u4e4e\\u4e4e \\u8d3c\\u6e9c\\u6e9c \\u600e\\u4e48\\u6837 \\u600e\\u4e48\\u7740 \\u589e\\u538b\\u5668 \\u624e\\u8033\\u6735 \\u624e\\u731b\\u5b50 \\u8f67\\u94a2\\u5382 \\u8f67\\u94a2\\u673a \\u70b8\\u9171\\u9762 \\u70b8\\u4e38\\u5b50 \\u70b8\\u6cb9\\u997c \\u70b8\\u5b50\\u9e21 \\u6458\\u6843\\u5b50 \\u7c98\\u5ea6\\u8ba1 \\u7c98\\u5408\\u5242 \\u7c98\\u7ed3\\u5242 \\u7c98\\u7ed3\\u529b \\u7c98\\u571f\\u7816 \\u7c98\\u6027\\u529b \\u7c98\\u6ede\\u6027 \\u5360\\u4e0a\\u98ce \\u5360\\u4f18\\u52bf \\u5360\\u6709\\u6743 \\u6218\\u6597\\u673a \\u6218\\u6597\\u529b \\u6218\\u6597\\u5458 \\u957f\\u57ce\\u5361 \\u957f\\u845b\\u5e02 \\u957f\\u6d41\\u6c34 \\u957f\\u888d\\u513f \\u957f\\u5b50\\u53bf \\u62db\\u5f85\\u4f1a \\u722a\\u5c16\\u513f \\u7167\\u7247\\u513f \\u7167\\u76f8\\u7248 \\u7167\\u76f8\\u9986 \\u7167\\u76f8\\u673a \\u7167\\u76f8\\u672f \\u7167\\u76f8\\u7eb8 \\u906e\\u7f9e\\u5e03 \\u6298\\u53e0\\u6905 \\u6298\\u8ddf\\u5934 \\u6298\\u5c04\\u7ebf \\u6298\\u5b50\\u620f \\u8fd9\\u4f1a\\u513f \\u8fd9\\u4e48\\u4e9b \\u8fd9\\u4e48\\u6837 \\u8fd9\\u4e48\\u7740 \\u7740\\u706b\\u70b9 \\u7740\\u9646\\u573a \\u771f\\u683c\\u7684 \\u771f\\u662f\\u7684 \\u9547\\u6d41\\u5668 \\u84b8\\u998f\\u6c34 \\u6574\\u6d41\\u5668 \\u6b63\\u5b89\\u53bf \\u6b63\\u7535\\u8377 \\u6b63\\u89c4\\u5316 \\u6b63\\u89d2\\u513f \\u652f\\u7740\\u513f \\u53ea\\u4e0d\\u8fc7 \\u77e5\\u8bc6\\u5316 \\u77e5\\u8bc6\\u754c \\u77e5\\u8bc6\\u5e93 \\u77e5\\u8bc6\\u9762 \\u77e5\\u8bc6\\u6027 \\u6267\\u725b\\u8033 \\u76f4\\u80a0\\u5b50 \\u76f4\\u6e9c\\u6e9c \\u76f4\\u6d41\\u7535 \\u76f4\\u6027\\u5b50 \\u6307\\u7532\\u76d6 \\u6307\\u7532\\u6cb9 \\u4e2d\\u6807\\u8005 \\u4e2d\\u5fae\\u5b50 \\u79cd\\u725b\\u75d8 \\u79cd\\u690d\\u4e1a \\u79cd\\u690d\\u56ed \\u79cd\\u5b50\\u961f \\u79cd\\u5b50\\u7530 \\u91cd\\u5b9a\\u5411 \\u91cd\\u5a5a\\u7f6a \\u91cd\\u7ed3\\u6676 \\u91cd\\u529b\\u573a \\u91cd\\u5e86\\u5e02 \\u91cd\\u5b59\\u5973 \\u91cd\\u9633\\u8282 \\u821f\\u66f2\\u53bf \\u8f74\\u5bf9\\u79f0 \\u8bf8\\u845b\\u4eae \\u8bf8\\u845b\\u5f29 \\u8bf8\\u5bab\\u8c03 \\u9010\\u5ba2\\u4ee4 \\u4e3b\\u5408\\u540c \\u6293\\u8fab\\u5b50 \\u6293\\u9604\\u513f \\u8f6c\\u5dee\\u7387 \\u8f6c\\u52a8\\u8f74 \\u8f6c\\u901f\\u8868 \\u8f6c\\u5f2f\\u5b50 \\u8f6c\\u6298\\u70b9 \\u88c5\\u7cca\\u6d82 \\u51c6\\u8c31\\u513f \\u5b50\\u6a21\\u578b \\u81ea\\u611f\\u5e94 \\u81ea\\u4e2a\\u513f \\u81ea\\u884c\\u8f66 \\u81ea\\u7559\\u755c \\u81ea\\u7559\\u5730 \\u81ea\\u6d41\\u4e95 \\u81ea\\u9002\\u5e94 \\u5b57\\u5e16\\u513f \\u603b\\u4f9b\\u7ed9 \\u603b\\u4e66\\u8bb0 \\u603b\\u53f8\\u4ee4 \\u8d70\\u9053\\u513f \\u8d70\\u8fc7\\u573a \\u8d70\\u8c03\\u513f \\u8d70\\u7740\\u77a7 \\u594f\\u9e23\\u66f2 \\u94bb\\u4e95\\u961f \\u94bb\\u7a7a\\u5b50 \\u94bb\\u5b54\\u673a \\u94bb\\u95e8\\u5b50 \\u5634\\u76ae\\u5b50 \\u5de6\\u6487\\u5b50 \\u5de6\\u55d3\\u5b50 \\u4f5c\\u66f2\\u5bb6 \\u5750\\u7981\\u95ed \\u963f\\u515a\\u6bd4\\u5468 \\u963f\\u515a\\u76f8\\u4e3a \\u963f\\u5fb7\\u83b1\\u5fb7 \\u963f\\u5fb7\\u96f7\\u5fb7 \\u963f\\u8fea\\u8fbe\\u65af \\u963f\\u5c14\\u5351\\u65af \\u963f\\u5c14\\u8428\\u65af \\u963f\\u5c14\\u5c71\\u5e02 \\u963f\\u5408\\u5947\\u53bf \\u963f\\u52a0\\u8fea\\u5c14 \\u963f\\u5bb6\\u963f\\u7fc1 \\u963f\\u514b\\u82cf\\u5e02 \\u963f\\u514b\\u9676\\u53bf \\u963f\\u80af\\u8272\\u5dde \\u963f\\u62c9\\u4f2f\\u6587 \\u963f\\u62c9\\u5c14\\u5e02 \\u963f\\u62c9\\u5584\\u76df \\u963f\\u52d2\\u6cf0\\u5e02 \\u963f\\u91cc\\u5c71\\u4e61 \\u963f\\u5f25\\u9640\\u4f5b \\u963f\\u5176\\u6240\\u597d \\u963f\\u65f6\\u8d8b\\u4fd7 \\u963f\\u4e16\\u76d7\\u540d \\u963f\\u4e16\\u5a9a\\u4fd7 \\u963f\\u4e16\\u53d6\\u5bb9 \\u963f\\u65af\\u9a6c\\u62c9 \\u963f\\u56fe\\u4ec0\\u5e02 \\u963f\\u74e6\\u63d0\\u53bf \\u963f\\u610f\\u53d6\\u5bb9 \\u963f\\u8c00\\u5949\\u627f \\u963f\\u8c00\\u53d6\\u5bb9 \\u54c0\\u6bc1\\u7620\\u7acb \\u6328\\u6253\\u53d7\\u9a82 \\u6328\\u51bb\\u53d7\\u997f \\u6328\\u98ce\\u7f09\\u7f1d \\u6328\\u5c71\\u585e\\u6d77 \\u6371\\u98ce\\u7f09\\u7f1d \\u6371\\u4e09\\u9876\\u56db \\u6371\\u4e09\\u9876\\u4e94 \\u77ee\\u4eba\\u770b\\u573a \\u7231\\u6bdb\\u53cd\\u88d8 \\u7231\\u4eba\\u597d\\u58eb \\u7231\\u751f\\u6076\\u6b7b \\u7231\\u7d20\\u597d\\u53e4 \\u55f3\\u6c14\\u541e\\u9178 \\u55f3\\u58f0\\u53f9\\u6c14 \\u5b89\\u6b65\\u5f53\\u8f66 \\u5b89\\u5e38\\u5b88\\u5206 \\u5b89\\u5206\\u5b88\\u5df1 \\u5b89\\u8001\\u6000\\u5c11 \\u5b89\\u8eab\\u4e4b\\u5904 \\u5b89\\u5ba4\\u5229\\u5904 \\u5b89\\u5b88\\u672c\\u5206 \\u5b89\\u571f\\u91cd\\u65e7 \\u5b89\\u5fc3\\u843d\\u610f \\u5b89\\u8425\\u624e\\u5be8 \\u5b89\\u4e8e\\u4e00\\u9685 \\u6309\\u6b65\\u5c31\\u73ed \\u6309\\u90e8\\u5c31\\u73ed \\u6309\\u884c\\u81ea\\u6291 \\u6309\\u7532\\u4f11\\u5175 \\u6309\\u8f94\\u5f90\\u884c \\u6848\\u7532\\u4f11\\u5175 \\u6848\\u65e0\\u7559\\u724d \\u6697\\u6597\\u660e\\u4e89 \\u6697\\u7bad\\u4e2d\\u4eba \\u6697\\u5ba4\\u6c42\\u7269 \\u6697\\u9001\\u79cb\\u6ce2 \\u6556\\u4e0d\\u53ef\\u957f \\u71ac\\u80a0\\u522e\\u809a \\u71ac\\u66f4\\u5b88\\u591c \\u71ac\\u59dc\\u5477\\u918b \\u71ac\\u67af\\u53d7\\u6de1 \\u71ac\\u6e05\\u5b88\\u6de1 \\u71ac\\u6e05\\u5b88\\u8c08 \\u71ac\\u6e05\\u53d7\\u6de1 \\u71ac\\u5fc3\\u8d39\\u529b \\u71ac\\u6cb9\\u8d39\\u706b \\u8071\\u7259\\u8bd8\\u5c48 \\u9ccc\\u63b7\\u9cb8\\u547f \\u50b2\\u4e0d\\u53ef\\u957f \\u50b2\\u7768\\u4e00\\u5207 \\u50b2\\u971c\\u6597\\u96ea \\u516b\\u8857\\u4e5d\\u964c \\u516b\\u9762\\u5f20\\u7f57 \\u516b\\u96be\\u4e09\\u707e \\u516b\\u65d7\\u5b50\\u5f1f \\u5df4\\u5df4\\u7ed3\\u7ed3 \\u5df4\\u5c14\\u7684\\u6469 \\u5df4\\u5c14\\u624e\\u514b \\u5df4\\u585e\\u7f57\\u90a3 \\u6252\\u8033\\u6414\\u816e \\u62d4\\u9505\\u5377\\u5e2d \\u62d4\\u82d7\\u52a9\\u957f \\u62d4\\u5c71\\u625b\\u9f0e \\u8dcb\\u6248\\u6063\\u7762 \\u628a\\u9152\\u6301\\u87af \\u628a\\u73a9\\u65e0\\u538c \\u7f62\\u9edc\\u767e\\u5bb6 \\u767d\\u53d1\\u82cd\\u989c \\u767d\\u53d1\\u5343\\u4e08 \\u767d\\u53d1\\u9752\\u886b \\u767d\\u53d1\\u6731\\u989c \\u767d\\u9aa8\\u9732\\u91ce \\u767d\\u65e5\\u7ee3\\u8863 \\u767d\\u65e5\\u8863\\u7ee3 \\u767d\\u8863\\u537f\\u76f8 \\u767d\\u8863\\u79c0\\u58eb \\u767e\\u5ddd\\u671d\\u6d77 \\u767e\\u5815\\u4ff1\\u4e3e \\u767e\\u53d1\\u767e\\u4e2d \\u767e\\u82b1\\u4e89\\u598d \\u767e\\u5b54\\u5343\\u521b \\u767e\\u9e1f\\u671d\\u51e4 \\u767e\\u820d\\u91cd\\u8327 \\u767e\\u820d\\u91cd\\u8dbc \\u767e\\u4e16\\u6d41\\u82ac \\u767e\\u5c81\\u5343\\u79cb \\u767e\\u65e0\\u7981\\u5fcc \\u767e\\u65e0\\u662f\\u5904 \\u767e\\u4e0b\\u767e\\u7740 \\u767e\\u6298\\u4e0d\\u56de \\u767e\\u6298\\u4e0d\\u6320 \\u767e\\u6298\\u4e0d\\u5c48 \\u767e\\u6298\\u4e0d\\u79fb \\u767e\\u6298\\u5343\\u56de \\u767e\\u4e2d\\u767e\\u53d1 \\u6446\\u8896\\u5374\\u91d1 \\u8d25\\u5fb7\\u8fb1\\u884c \\u8d25\\u56fd\\u4e27\\u5bb6 \\u8d25\\u519b\\u4e4b\\u5c06 \\u8d25\\u67f3\\u6b8b\\u82b1 \\u8d25\\u5174\\u800c\\u5f52 \\u62dc\\u9b3c\\u6c42\\u795e \\u62dc\\u5c06\\u5c01\\u4faf \\u73ed\\u529f\\u884c\\u8d4f \\u73ed\\u8346\\u9053\\u65e7 \\u73ed\\u5e08\\u56de\\u671d \\u677f\\u4e0a\\u9489\\u9489 \\u7248\\u7b51\\u996d\\u725b \\u534a\\u90e8\\u8bba\\u8bed \\u534a\\u9762\\u4e4b\\u65e7 \\u534a\\u4e0a\\u843d\\u4e0b \\u534a\\u4e1d\\u534a\\u7f15 \\u534a\\u5410\\u534a\\u9732 \\u534a\\u63a8\\u534a\\u5c31 \\u534a\\u65b0\\u534a\\u65e7 \\u534a\\u65b0\\u4e0d\\u65e7 \\u4f34\\u98df\\u5bb0\\u76f8 \\u508d\\u82b1\\u968f\\u67f3 \\u508d\\u4eba\\u7bf1\\u843d \\u5305\\u88b1\\u76ae\\u513f \\u5305\\u7f9e\\u5fcd\\u803b \\u5b62\\u5b50\\u690d\\u7269 \\u8912\\u8d2c\\u4e0e\\u593a \\u8584\\u5bd2\\u4e2d\\u4eba \\u8584\\u6280\\u5728\\u8eab \\u8584\\u5229\\u591a\\u9500 \\u8584\\u7269\\u7ec6\\u6545 \\u9971\\u98e8\\u8001\\u62f3 \\u4fdd\\u6cf0\\u6301\\u76c8 \\u4fdd\\u5916\\u5c31\\u533b \\u4fdd\\u5916\\u6267\\u884c \\u4fdd\\u76c8\\u6301\\u6cf0 \\u62b1\\u4ee4\\u5b88\\u5f8b \\u62b1\\u8513\\u6458\\u74dc \\u62b1\\u749e\\u6ce3\\u8840 \\u62b1\\u85aa\\u6551\\u711a \\u62b1\\u85aa\\u6551\\u706b \\u8c79\\u6b7b\\u7559\\u76ae \\u66b4\\u864e\\u51af\\u6cb3 \\u66b4\\u623e\\u6063\\u7762 \\u66b4\\u8650\\u65e0\\u9053 \\u66b4\\u816e\\u9f99\\u95e8 \\u66b4\\u8863\\u9732\\u76d6 \\u66b4\\u8863\\u9732\\u51a0 \\u676f\\u9152\\u6208\\u77db \\u676f\\u9152\\u89e3\\u6028 \\u676f\\u9152\\u8a00\\u6b22 \\u676f\\u76d8\\u72fc\\u85c9 \\u5351\\u8c04\\u8db3\\u606d \\u5351\\u5bab\\u83f2\\u98df \\u60b2\\u58f0\\u8f7d\\u9053 \\u5317\\u9119\\u4e4b\\u58f0 \\u5317\\u9119\\u4e4b\\u97f3 \\u5317\\u8fb0\\u661f\\u62f1 \\u5317\\u7a97\\u9ad8\\u5367 \\u8d1d\\u9619\\u73e0\\u5bab \\u80cc\\u672c\\u5c31\\u672b \\u80cc\\u66f2\\u8170\\u8eac \\u80cc\\u66f2\\u8170\\u5f2f \\u500d\\u9053\\u800c\\u884c \\u500d\\u9053\\u517c\\u884c \\u500d\\u65e5\\u5e76\\u884c \\u88ab\\u53d1\\u6587\\u8eab \\u88ab\\u53d1\\u7f28\\u51a0 \\u88ab\\u53d1\\u5de6\\u887d \\u88ab\\u8910\\u6000\\u7389 \\u88ab\\u8910\\u6000\\u73e0 \\u88ab\\u7532\\u6301\\u5175 \\u88ab\\u7532\\u636e\\u978d \\u88ab\\u7532\\u6795\\u6208 \\u88ab\\u7532\\u6267\\u5175 \\u88ab\\u5c71\\u5e26\\u6cb3 \\u88ab\\u6cfd\\u8499\\u5ea5 \\u88ab\\u5b50\\u690d\\u7269 \\u672c\\u672c\\u5206\\u5206 \\u9f3b\\u5b54\\u64a9\\u5929 \\u9f3b\\u584c\\u8123\\u9752 \\u9f3b\\u5b50\\u773c\\u513f \\u6bd4\\u91cf\\u9f50\\u89c2 \\u6bd4\\u6743\\u91cf\\u529b \\u6bd4\\u624b\\u5212\\u811a \\u6bd4\\u7269\\u5c5e\\u4e8b \\u5f7c\\u5021\\u6b64\\u548c \\u5f7c\\u5531\\u6b64\\u548c \\u79d5\\u8a00\\u8c2c\\u8bf4 \\u7b14\\u7ff0\\u5982\\u6d41 \\u7b14\\u8001\\u58a8\\u79c0 \\u7b14\\u524a\\u8912\\u8d2c \\u95ed\\u5408\\u601d\\u8fc7 \\u95ed\\u5408\\u81ea\\u8d23 \\u95ed\\u95e8\\u5890\\u6237 \\u95ed\\u95e8\\u585e\\u7aa6 \\u95ed\\u95e8\\u585e\\u6237 \\u95ed\\u95e8\\u626b\\u8ff9 \\u95ed\\u660e\\u585e\\u806a \\u95ed\\u76ee\\u585e\\u8033 \\u95ed\\u76ee\\u585e\\u542c \\u95ed\\u6708\\u7f9e\\u82b1 \\u655d\\u76d6\\u4e0d\\u5f03 \\u655d\\u9f13\\u4e27\\u8c5a \\u655d\\u7d88\\u6076\\u7c9f \\u655d\\u5e37\\u4e0d\\u5f03 \\u78a7\\u9b1f\\u7ea2\\u8896 \\u78a7\\u843d\\u9ec4\\u6cc9 \\u853d\\u806a\\u585e\\u660e \\u853d\\u660e\\u585e\\u806a \\u5f0a\\u5e1a\\u81ea\\u73cd \\u907f\\u70e6\\u6597\\u6377 \\u907f\\u5bb3\\u5c31\\u5229 \\u907f\\u6bc1\\u5c31\\u8a89 \\u907f\\u7978\\u5c31\\u798f \\u907f\\u7978\\u6c42\\u798f \\u907f\\u5751\\u843d\\u4e95 \\u907f\\u96be\\u5c31\\u6613 \\u907f\\u5b9e\\u5c31\\u865a \\u907f\\u91cd\\u5c31\\u8f7b \\u782d\\u5eb8\\u9488\\u4fd7 \\u97ad\\u6253\\u5feb\\u725b \\u97ad\\u64d7\\u8fdb\\u91cc \\u97ad\\u8f9f\\u5165\\u91cc \\u97ad\\u7ea6\\u8fd1\\u91cc \\u53d8\\u6545\\u6613\\u5e38 \\u53d8\\u8d2a\\u5389\\u8584 \\u53d8\\u70ab\\u65e0\\u7a77 \\u4fbf\\u5b9c\\u884c\\u4e8b \\u98d9\\u53d1\\u7535\\u4e3e \\u522b\\u522b\\u626d\\u626d \\u522b\\u521b\\u4e00\\u683c \\u522b\\u5f00\\u4e00\\u683c \\u5f6c\\u5f6c\\u6d4e\\u6d4e \\u51b0\\u58f6\\u79cb\\u6708 \\u51b0\\u89e3\\u7684\\u7834 \\u5175\\u4e0d\\u8840\\u5203 \\u5175\\u4e0d\\u7531\\u5c06 \\u5175\\u591a\\u5c06\\u5e7f \\u5175\\u884c\\u8be1\\u9053 \\u5175\\u5fae\\u5c06\\u5be1 \\u5175\\u672a\\u8840\\u5203 \\u5175\\u65e0\\u8840\\u5203 \\u5e76\\u884c\\u4e0d\\u6096 \\u75c5\\u5165\\u9aa8\\u96a8 \\u62e8\\u96e8\\u64a9\\u4e91 \\u62e8\\u4e91\\u64a9\\u96e8 \\u62e8\\u5634\\u64a9\\u7259 \\u6ce2\\u9a87\\u4e91\\u5c5e \\u6ce2\\u6d41\\u8305\\u9761 \\u6ce2\\u5c5e\\u4e91\\u59d4 \\u5265\\u5e8a\\u53ca\\u80a4 \\u5265\\u80a4\\u53ca\\u9ad3 \\u5265\\u80a4\\u4e4b\\u75db \\u5265\\u80a4\\u690e\\u9ad3 \\u5265\\u6781\\u5fc5\\u590d \\u5265\\u6781\\u5c06\\u590d \\u5265\\u6781\\u5219\\u590d \\u5265\\u8327\\u62bd\\u4e1d \\u64ad\\u7a45\\u772f\\u76ee \\u64ad\\u7ce0\\u772f\\u76ee \\u4f2f\\u4e50\\u4e00\\u987e \\u535a\\u6587\\u7ea6\\u793c \\u535a\\u95fb\\u5f3a\\u8bc6 \\u535a\\u5f08\\u72b9\\u8d24 \\u640f\\u725b\\u4e4b\\u867b \\u8ddb\\u884c\\u5343\\u91cc \\u64d8\\u4e24\\u5206\\u661f \\u7c38\\u571f\\u626c\\u6c99 \\u8865\\u504f\\u6551\\u5f0a \\u4e0d\\u62d4\\u4e00\\u6bdb \\u4e0d\\u5dee\\u6beb\\u53d1 \\u4e0d\\u5dee\\u6beb\\u5398 \\u4e0d\\u5dee\\u7d2f\\u9ecd \\u4e0d\\u5dee\\u4e0a\\u4e0b \\u4e0d\\u5dee\\u4ec0\\u4e48 \\u4e0d\\u5f53\\u5f97\\u5229 \\u4e0d\\u5bf9\\u832c\\u513f \\u4e0d\\u6562\\u63a0\\u7f8e \\u4e0d\\u62a4\\u7ec6\\u884c \\u4e0d\\u6000\\u597d\\u610f \\u4e0d\\u8bb3\\u4e4b\\u671d \\u4e0d\\u89c1\\u7ecf\\u4f20 \\u4e0d\\u89c1\\u8206\\u85aa \\u4e0d\\u77dc\\u7ec6\\u884c \\u4e0d\\u7d27\\u4e0d\\u6162 \\u4e0d\\u63ea\\u4e0d\\u91c7 \\u4e0d\\u63ea\\u4e0d\\u63a1 \\u4e0d\\u548e\\u65e2\\u5f80 \\u4e0d\\u62d8\\u7ec6\\u884c \\u4e0d\\u62d8\\u5f62\\u8ff9 \\u4e0d\\u7edd\\u5982\\u53d1 \\u4e0d\\u53ef\\u6551\\u7597 \\u4e0d\\u53ef\\u6551\\u836f \\u4e0d\\u53ef\\u63c6\\u5ea6 \\u4e0d\\u53ef\\u80dc\\u4e3e \\u4e0d\\u53ef\\u80dc\\u6570 \\u4e0d\\u90ce\\u4e0d\\u79c0 \\u4e0d\\u7559\\u4f59\\u5730 \\u4e0d\\u9732\\u950b\\u8292 \\u4e0d\\u9732\\u950b\\u94d3 \\u4e0d\\u9732\\u572d\\u89d2 \\u4e0d\\u9732\\u795e\\u8272 \\u4e0d\\u9732\\u58f0\\u8272 \\u4e0d\\u9732\\u5f62\\u8272 \\u4e0d\\u843d\\u8fb9\\u9645 \\u4e0d\\u843d\\u7aa0\\u81fc \\u4e0d\\u843d\\u4fd7\\u5957 \\u4e0d\\u5948\\u4e4b\\u4f55 \\u4e0d\\u6320\\u4e0d\\u6298 \\u4e0d\\u5ff5\\u65e7\\u6076 \\u4e0d\\u671f\\u4fee\\u53e4 \\u4e0d\\u6c42\\u751a\\u89e3 \\u4e0d\\u6c42\\u95fb\\u8fbe \\u4e0d\\u4e0a\\u4e0d\\u843d \\u4e0d\\u820d\\u663c\\u591c \\u4e0d\\u58f0\\u4e0d\\u542d \\u4e0d\\u7701\\u4eba\\u4e8b \\u4e0d\\u662f\\u5473\\u513f \\u4e0d\\u662f\\u6ecb\\u5473 \\u4e0d\\u723d\\u7d2f\\u9ecd \\u4e0d\\u5fd8\\u6545\\u65e7 \\u4e0d\\u4fee\\u8fb9\\u5e45 \\u4e0d\\u4fee\\u5c0f\\u8282 \\u4e0d\\u8129\\u8fb9\\u5e45 \\u4e0d\\u7f9e\\u5f53\\u9762 \\u4e0d\\u865a\\u6b64\\u884c \\u4e0d\\u5f87\\u79c1\\u60c5 \\u4e0d\\u4ea6\\u5584\\u592b \\u4e0d\\u600e\\u4e48\\u6837 \\u4e0d\\u6298\\u4e0d\\u6263 \\u4e0d\\u77e5\\u85a1\\u856b \\u4e0d\\u77e5\\u51e1\\u51e0 \\u4e0d\\u77e5\\u5c31\\u91cc \\u4e0d\\u77e5\\u81ea\\u91cf \\u4e0d\\u5fee\\u4e0d\\u6c42 \\u4e0d\\u81ea\\u91cf\\u529b \\u4e0d\\u505a\\u4e0d\\u4f11 \\u5e03\\u5e06\\u65e0\\u6059 \\u5e03\\u9c81\\u585e\\u5c14 \\u6b65\\u7ebf\\u884c\\u9488 \\u9914\\u7cdf\\u555c\\u6f13 \\u9914\\u7cdf\\u6b60\\u6f13 \\u64e6\\u62f3\\u62b9\\u638c \\u731c\\u679a\\u884c\\u4ee4 \\u731c\\u62f3\\u884c\\u4ee4 \\u624d\\u8584\\u667a\\u6d45 \\u624d\\u9ad8\\u884c\\u539a \\u624d\\u9ad8\\u884c\\u6d01 \\u624d\\u8f7b\\u5fb7\\u8584 \\u624d\\u758f\\u5fb7\\u8584 \\u624d\\u79c0\\u4eba\\u5fae \\u6750\\u8584\\u8d28\\u8870 \\u6750\\u9ad8\\u77e5\\u6df1 \\u6750\\u8302\\u884c\\u6d01 \\u6750\\u8302\\u884c\\u7d5c \\u6750\\u8f7b\\u5fb7\\u8584 \\u6750\\u673d\\u884c\\u79fd \\u6750\\u4f18\\u5e72\\u6d4e \\u8d22\\u5927\\u6c14\\u7c97 \\u53c2\\u5dee\\u4e0d\\u9f50 \\u53c2\\u8fb0\\u536f\\u9149 \\u53c2\\u8fb0\\u65e5\\u6708 \\u53c2\\u6a2a\\u6597\\u8f6c \\u53c2\\u56de\\u6597\\u8f6c \\u53c2\\u5546\\u4e4b\\u865e \\u53c2\\u4f0d\\u9519\\u7efc \\u9910\\u98ce\\u9732\\u5bbf \\u9910\\u98ce\\u5bbf\\u9732 \\u9910\\u98ce\\u54bd\\u9732 \\u9910\\u98ce\\u996e\\u9732 \\u9910\\u8469\\u996e\\u9732 \\u9910\\u971e\\u5438\\u9732 \\u6b8b\\u82b1\\u8d25\\u67f3 \\u6b8b\\u519b\\u8d25\\u5c06 \\u60e8\\u7eff\\u6101\\u7ea2 \\u60e8\\u7eff\\u5c11\\u5e74 \\u4ed3\\u5352\\u4e4b\\u9645 \\u4ed3\\u5352\\u4e3b\\u4eba \\u82cd\\u989c\\u767d\\u53d1 \\u82cd\\u8747\\u89c1\\u8840 \\u6ca7\\u6d77\\u6a2a\\u6d41 \\u85cf\\u5934\\u9732\\u5c3e \\u85cf\\u8e2a\\u8e51\\u8ff9 \\u64cd\\u65a7\\u4f10\\u67ef \\u64cd\\u5947\\u9010\\u8d62 \\u64cd\\u8eab\\u884c\\u4e16 \\u64cd\\u4e4b\\u8fc7\\u5207 \\u64cd\\u4f5c\\u7cfb\\u7edf \\u8349\\u8239\\u501f\\u7bad \\u8349\\u521b\\u672a\\u5c31 \\u8349\\u884c\\u9732\\u5bbf \\u8349\\u95f4\\u6c42\\u6d3b \\u8349\\u7387\\u5c06\\u4e8b \\u8349\\u9761\\u98ce\\u884c \\u8349\\u6728\\u4ff1\\u673d \\u8349\\u5043\\u98ce\\u884c \\u8349\\u957f\\u83ba\\u98de \\u7b56\\u540d\\u5c31\\u5217 \\u5c42\\u53f0\\u7d2f\\u69ad \\u66fe\\u53c2\\u6740\\u4eba \\u66fe\\u51e0\\u4f55\\u65f6 \\u66fe\\u5916\\u7956\\u7236 \\u66fe\\u5916\\u7956\\u6bcd \\u66fe\\u65e0\\u4e0e\\u4e8c \\u8336\\u4f59\\u9152\\u540e \\u5bdf\\u8a00\\u89c2\\u884c \\u5dee\\u52a8\\u9f7f\\u8f6e \\u5dee\\u5206\\u65b9\\u7a0b \\u5dee\\u5f3a\\u4eba\\u610f \\u5dee\\u4e09\\u9519\\u56db \\u5dee\\u4e4b\\u6beb\\u5398 \\u67f4\\u7acb\\u4e0d\\u963f \\u8c7a\\u864e\\u8086\\u8650 \\u6400\\u524d\\u843d\\u540e \\u7985\\u7d6e\\u6cbe\\u6ce5 \\u522c\\u65e7\\u8c0b\\u65b0 \\u8c04\\u8bcd\\u4ee4\\u8272 \\u8c04\\u4e0a\\u6291\\u4e0b \\u5257\\u65e7\\u8c0b\\u65b0 \\u660c\\u4ead\\u65c5\\u98df \\u660c\\u4ead\\u4e4b\\u5ba2 \\u82cc\\u5f18\\u78a7\\u8840 \\u5e38\\u5e74\\u7d2f\\u6708 \\u7545\\u884c\\u65e0\\u788d \\u7545\\u884c\\u65e0\\u963b \\u5021\\u800c\\u4e0d\\u548c \\u5021\\u6761\\u51b6\\u53f6 \\u8d85\\u4eca\\u51a0\\u53e4 \\u671d\\u66f4\\u66ae\\u6539 \\u671d\\u534e\\u5915\\u79c0 \\u671d\\u4ee4\\u66ae\\u6539 \\u671d\\u4ee4\\u5915\\u6539 \\u671d\\u9732\\u6e98\\u81f3 \\u671d\\u5347\\u66ae\\u5408 \\u671d\\u9633\\u4e39\\u51e4 \\u671d\\u7ae0\\u56fd\\u5178 \\u671d\\u7ae0\\u56fd\\u6545 \\u671d\\u6298\\u66ae\\u6298 \\u5435\\u5435\\u95f9\\u95f9 \\u8f66\\u8f7d\\u6597\\u91cf \\u626f\\u7bf7\\u62c9\\u7ea4 \\u626f\\u65d7\\u653e\\u70ae \\u626f\\u987a\\u98ce\\u65d7 \\u626f\\u7ea4\\u62c9\\u70df \\u63a3\\u895f\\u9732\\u8098 \\u778b\\u76ee\\u5207\\u9f7f \\u6c89\\u75b4\\u5bbf\\u75be \\u6c89\\u8c0b\\u91cd\\u8651 \\u6c89\\u541f\\u4e0d\\u51b3 \\u6c89\\u541f\\u672a\\u51b3 \\u6c89\\u541f\\u7ae0\\u53e5 \\u6c89\\u9c7c\\u843d\\u96c1 \\u9648\\u8f9e\\u6ee5\\u8c03 \\u9648\\u529b\\u5c31\\u5217 \\u6668\\u53c2\\u66ae\\u7701 \\u6668\\u660f\\u5b9a\\u7701 \\u8d81\\u98ce\\u4f7f\\u67c1 \\u8d81\\u706b\\u62a2\\u52ab \\u8d81\\u52bf\\u843d\\u7bf7 \\u8d81\\u6c34\\u548c\\u6ce5 \\u79f0\\u5fb7\\u5ea6\\u529f \\u79f0\\u5bb6\\u6709\\u65e0 \\u79f0\\u4f53\\u88c1\\u8863 \\u6491\\u5cb8\\u5c31\\u8239 \\u6210\\u5409\\u601d\\u6c57 \\u6210\\u5343\\u7d2f\\u4e07 \\u4e58\\u80a5\\u8863\\u8f7b \\u4e58\\u4f2a\\u884c\\u8bc8 \\u4e58\\u5174\\u800c\\u6765 \\u4e58\\u4e91\\u884c\\u6ce5 \\u6f84\\u6c99\\u6c70\\u783e \\u6a59\\u9ec4\\u6854\\u7eff \\u901e\\u5a07\\u6597\\u5a9a \\u901e\\u51f6\\u8086\\u8650 \\u901e\\u598d\\u6597\\u8272 \\u79e4\\u9524\\u843d\\u4e95 \\u79e4\\u65a4\\u6ce8\\u4e24 \\u79e4\\u85aa\\u800c\\u7228 \\u5403\\u91cc\\u6252\\u5916 \\u6c60\\u9152\\u6797\\u80fe \\u8fdf\\u8fdf\\u543e\\u884c \\u8fdf\\u65e5\\u65f7\\u4e45 \\u6301\\u87af\\u628a\\u9152 \\u6301\\u4e45\\u4e4b\\u8ba1 \\u6301\\u8821\\u6d4b\\u6d77 \\u5c3a\\u677f\\u6597\\u98df \\u5c3a\\u4e8c\\u79c0\\u624d \\u5c3a\\u4e8c\\u51a4\\u5bb6 \\u5c3a\\u8816\\u6c42\\u4f38 \\u9f7f\\u843d\\u820c\\u949d \\u9f7f\\u5371\\u53d1\\u79c0 \\u4f88\\u4f88\\u4e0d\\u4f11 \\u803b\\u4e0e\\u54d9\\u4f0d \\u8d64\\u8eab\\u9732\\u4f53 \\u8d64\\u7ef3\\u7cfb\\u8db3 \\u51b2\\u51a0\\u53d1\\u6012 \\u51b2\\u51a0\\u6012\\u53d1 \\u51b2\\u51a0\\u7726\\u88c2 \\u5145\\u680b\\u6c57\\u725b \\u5145\\u95fe\\u4e4b\\u5e86 \\u8202\\u5bb9\\u5927\\u96c5 \\u866b\\u9c7c\\u4e4b\\u5b66 \\u5ba0\\u67f3\\u5a07\\u82b1 \\u6101\\u80a0\\u4e5d\\u56de \\u6101\\u80a0\\u4e5d\\u8f6c \\u6101\\u80a0\\u6ba2\\u9152 \\u6101\\u7ea2\\u60e8\\u7eff \\u6101\\u7709\\u4e0d\\u5c55 \\u6101\\u957f\\u6ba2\\u9152 \\u51fa\\u5c06\\u5165\\u76f8 \\u51fa\\u6ca1\\u4e0d\\u5e38 \\u51fa\\u8c0b\\u5212\\u7b56 \\u51fa\\u5934\\u9732\\u9762 \\u521d\\u9732\\u950b\\u8292 \\u521d\\u9732\\u5934\\u89d2 \\u9664\\u65e7\\u5e03\\u65b0 \\u9664\\u65e7\\u66f4\\u65b0 \\u6775\\u81fc\\u4e4b\\u4ea4 \\u695a\\u56da\\u5bf9\\u6ce3 \\u695a\\u56da\\u76f8\\u5bf9 \\u89e6\\u6597\\u86ee\\u4e89 \\u63e3\\u9aa8\\u542c\\u58f0 \\u63e3\\u5978\\u628a\\u733e \\u63e3\\u65f6\\u5ea6\\u529b \\u5ddd\\u6d41\\u4e0d\\u606f \\u5ddd\\u6e1f\\u5cb3\\u5cd9 \\u4f20\\u98ce\\u6247\\u706b \\u4f20\\u795e\\u963f\\u5835 \\u8239\\u575a\\u70ae\\u5229 \\u5598\\u6708\\u5434\\u725b \\u5e8a\\u4e0b\\u725b\\u6597 \\u521b\\u5de8\\u75db\\u6df1 \\u5439\\u5f39\\u5f97\\u7834 \\u5439\\u6bdb\\u6c42\\u75b5 \\u5439\\u6bdb\\u6c42\\u7455 \\u5439\\u7af9\\u5f39\\u4e1d \\u708a\\u81fc\\u4e4b\\u621a \\u708a\\u81fc\\u4e4b\\u75db \\u5782\\u9996\\u5e16\\u8033 \\u69cc\\u725b\\u917e\\u9152 \\u6625\\u98ce\\u98ce\\u4eba \\u6625\\u82b1\\u79cb\\u5b9e \\u6625\\u82b1\\u79cb\\u6708 \\u6625\\u534e\\u79cb\\u5b9e \\u6625\\u5170\\u79cb\\u83ca \\u6625\\u9732\\u79cb\\u971c \\u6625\\u79cb\\u7b14\\u6cd5 \\u6625\\u53bb\\u79cb\\u6765 \\u6625\\u8272\\u64a9\\u4eba \\u6625\\u86c7\\u79cb\\u8693 \\u6625\\u751f\\u79cb\\u6740 \\u6625\\u86d9\\u79cb\\u8749 \\u6625\\u8693\\u79cb\\u86c7 \\u7eaf\\u5c5e\\u9a97\\u5c40 \\u5507\\u8150\\u9f7f\\u843d \\u9e51\\u5c45\\u9dc7\\u996e \\u9034\\u4fd7\\u7edd\\u7269 \\u6233\\u810a\\u6881\\u9aa8 \\u6b64\\u5531\\u5f7c\\u548c \\u6b64\\u8d77\\u5f7c\\u843d \\u523a\\u523a\\u4e0d\\u4f11 \\u523a\\u5fc3\\u5207\\u9aa8 \\u4ece\\u8c0f\\u5982\\u6d41 \\u4ece\\u4e95\\u6551\\u4eba \\u4ece\\u5bbd\\u53d1\\u843d \\u4ece\\u4ee4\\u5982\\u6d41 \\u4ece\\u6d41\\u5fd8\\u53cd \\u4ece\\u8f7b\\u53d1\\u843d \\u4ece\\u5584\\u5982\\u6d41 \\u4ece\\u5584\\u82e5\\u6d41 \\u4ece\\u4fd7\\u5c31\\u7b80 \\u4e1b\\u8f7b\\u6298\\u8f74 \\u8e59\\u8e59\\u9761\\u9a8b \\u8e59\\u91d1\\u7ed3\\u7ee3 \\u64ba\\u62f3\\u62e2\\u8896 \\u8e7f\\u623f\\u8d8a\\u810a \\u6467\\u67af\\u62c9\\u673d \\u6467\\u67af\\u6298\\u8150 \\u6467\\u67af\\u632f\\u673d \\u6467\\u5170\\u6298\\u7389 \\u6467\\u7709\\u6298\\u8170 \\u6467\\u673d\\u62c9\\u67af \\u6467\\u6298\\u8c6a\\u5f3a \\u69b1\\u5d29\\u680b\\u6298 \\u69b1\\u680b\\u5d29\\u6298 \\u555b\\u555b\\u55b3\\u55b3 \\u6751\\u9152\\u91ce\\u852c \\u6751\\u5b66\\u7a76\\u8bed \\u5bf8\\u6b65\\u96be\\u884c \\u5bf8\\u8349\\u4e0d\\u7559 \\u5bf8\\u79ef\\u94e2\\u7d2f \\u5bf8\\u94c1\\u5728\\u624b \\u64ae\\u79d1\\u6253\\u54c4 \\u539d\\u706b\\u71ce\\u539f \\u9519\\u843d\\u4e0d\\u9f50 \\u55d2\\u7136\\u82e5\\u4e27 \\u6253\\u6253\\u95f9\\u95f9 \\u6253\\u8eac\\u4f5c\\u63d6 \\u6253\\u5bb6\\u622a\\u820d \\u6253\\u843d\\u6c34\\u72d7 \\u6253\\u9a6c\\u864e\\u773c \\u6253\\u95f7\\u846b\\u82a6 \\u5927\\u8116\\u5b50\\u75c5 \\u5927\\u6b65\\u6d41\\u661f \\u5927\\u8f66\\u4ee5\\u8f7d \\u5927\\u5403\\u5927\\u559d \\u5927\\u5904\\u843d\\u58a8 \\u5927\\u5904\\u7740\\u58a8 \\u5927\\u5904\\u7740\\u773c \\u5927\\u5927\\u843d\\u843d \\u5927\\u800c\\u65e0\\u5f53 \\u5927\\u53d1\\u8c2c\\u8bba \\u5927\\u8179\\u4fbf\\u4fbf \\u5927\\u5bd2\\u7d22\\u88d8 \\u5927\\u6e10\\u5f25\\u7559 \\u5927\\u8c2c\\u4e0d\\u7136 \\u5927\\u7f2a\\u4e0d\\u7136 \\u5927\\u96be\\u4e0d\\u6b7b \\u5927\\u8d77\\u5927\\u843d \\u5927\\u4eba\\u5148\\u751f \\u5927\\u715e\\u98ce\\u8da3 \\u5927\\u559c\\u82e5\\u72c2 \\u5927\\u96e8\\u6ec2\\u6cb1 \\u5e26\\u725b\\u4f69\\u728a \\u5f85\\u65f6\\u5b88\\u5206 \\u6234\\u65e5\\u6234\\u6597 \\u4e39\\u51e4\\u671d\\u9633 \\u5355\\u67aa\\u5339\\u9a6c \\u7baa\\u98df\\u58f6\\u6d46 \\u7baa\\u98df\\u58f6\\u9152 \\u7baa\\u98df\\u74e2\\u996e \\u510b\\u77f3\\u4e4b\\u50a8 \\u80c6\\u5927\\u5fc3\\u7c97 \\u80c6\\u4e27\\u9b42\\u60ca \\u80c6\\u4e27\\u9b42\\u6d88 \\u65e6\\u5915\\u4e4b\\u5371 \\u65e6\\u79cd\\u66ae\\u6210 \\u8bde\\u8c29\\u4e0d\\u7ecf \\u6de1\\u6c5d\\u6d53\\u62b9 \\u6de1\\u5986\\u8f7b\\u62b9 \\u5f39\\u62e8\\u4e50\\u5668 \\u5f39\\u51a0\\u76f8\\u5e86 \\u5f39\\u51a0\\u632f\\u887f \\u5f39\\u51a0\\u632f\\u8863 \\u5f39\\u5251\\u4f5c\\u6b4c \\u5f39\\u65a4\\u4f30\\u4e24 \\u5f39\\u7a7a\\u8bf4\\u5634 \\u5f39\\u5c04\\u5ea7\\u6905 \\u5f39\\u4e1d\\u54c1\\u7af9 \\u5f39\\u4e38\\u8131\\u624b \\u5f39\\u6027\\u86cb\\u767d \\u5f39\\u6027\\u6a21\\u91cf \\u5f39\\u6307\\u4e4b\\u95f4 \\u5f53\\u884c\\u672c\\u8272 \\u5f53\\u52a1\\u59cb\\u7ec8 \\u515a\\u8c7a\\u4e3a\\u8650 \\u5200\\u8015\\u706b\\u79cd \\u5200\\u5149\\u8840\\u5f71 \\u5200\\u4e0b\\u7559\\u4eba \\u5bfc\\u4ee5\\u53d6\\u4fdd \\u5012\\u80cc\\u5982\\u6d41 \\u5012\\u7ef7\\u5b69\\u513f \\u5012\\u6301\\u592a\\u963f \\u5012\\u6301\\u6cf0\\u963f \\u5012\\u6253\\u4e00\\u8019 \\u5012\\u6253\\u4e00\\u74e6 \\u5012\\u6302\\u91d1\\u949f \\u5012\\u51a0\\u843d\\u4f69 \\u5012\\u51a0\\u843d\\u73ee \\u5012\\u679c\\u4e3a\\u56e0 \\u5012\\u884c\\u9006\\u65bd \\u5012\\u88f3\\u7d22\\u9886 \\u5012\\u5c63\\u76f8\\u8fce \\u5012\\u60ac\\u4e4b\\u6025 \\u5012\\u60ac\\u4e4b\\u82e6 \\u5012\\u8f7d\\u5e72\\u6208 \\u8e48\\u950b\\u996e\\u8840 \\u8e48\\u77e9\\u5faa\\u5f5f \\u8e48\\u5176\\u8986\\u8f99 \\u8e48\\u4eba\\u65e7\\u8f99 \\u9053\\u8fdc\\u65e5\\u66ae \\u5f97\\u8584\\u80fd\\u9c9c \\u5f97\\u4e0d\\u507f\\u4e27 \\u5f97\\u9a6c\\u6298\\u8db3 \\u5f97\\u80dc\\u56de\\u671d \\u5f97\\u672a\\u66fe\\u6709 \\u5f97\\u5fc3\\u5e94\\u624b \\u5fb7\\u8584\\u624d\\u758f \\u5fb7\\u8584\\u80fd\\u9c9c \\u5fb7\\u539a\\u6d41\\u5149 \\u5fb7\\u6d45\\u884c\\u8584 \\u7684\\u9ece\\u6ce2\\u91cc \\u706f\\u7ea2\\u9152\\u7eff \\u706f\\u5c3d\\u6cb9\\u5e72 \\u767b\\u6728\\u6c42\\u9c7c \\u767b\\u53f0\\u62dc\\u5c06 \\u767b\\u575b\\u62dc\\u5c06 \\u7b49\\u5dee\\u7ea7\\u6570 \\u7b49\\u5dee\\u6570\\u5217 \\u7b49\\u91cf\\u9f50\\u89c2 \\u77aa\\u76ee\\u54c6\\u53e3 \\u4f4e\\u5531\\u6d45\\u659f \\u4f4e\\u5531\\u6d45\\u914c \\u4f4e\\u7709\\u6298\\u8170 \\u6ef4\\u6ef4\\u7b54\\u7b54 \\u6ef4\\u9732\\u7814\\u6731 \\u6ef4\\u9732\\u7814\\u73e0 \\u6da4\\u7455\\u8e48\\u9699 \\u62b5\\u6b7b\\u8c29\\u751f \\u5e95\\u6b7b\\u8c29\\u751f \\u7825\\u884c\\u7acb\\u540d \\u7825\\u884c\\u78e8\\u540d \\u7825\\u8282\\u5389\\u884c \\u7825\\u8282\\u52b1\\u884c \\u7825\\u8282\\u783a\\u884c \\u7825\\u8eab\\u783a\\u884c \\u7825\\u67f1\\u4e2d\\u6d41 \\u5730\\u4e45\\u5929\\u957f \\u5e1d\\u738b\\u5c06\\u76f8 \\u7b2c\\u6bd4\\u5229\\u65af \\u6382\\u65a4\\u62b9\\u4e24 \\u6382\\u68a2\\u6298\\u672c \\u98a0\\u7c38\\u4e0d\\u7834 \\u98a0\\u5012\\u5e72\\u5764 \\u98a0\\u6765\\u7c38\\u53bb \\u98a0\\u4ec6\\u6d41\\u79bb \\u98a0\\u4e7e\\u5012\\u5764 \\u98a0\\u8863\\u5230\\u88f3 \\u7535\\u52a8\\u846b\\u82a6 \\u7535\\u8377\\u8026\\u5408 \\u7535\\u6d41\\u661f\\u6563 \\u7535\\u7167\\u98ce\\u884c \\u5201\\u94bb\\u4fc3\\u642f \\u5201\\u94bb\\u4fc3\\u72ed \\u8c82\\u72d7\\u76f8\\u5c5e \\u8c82\\u88d8\\u6362\\u9152 \\u96d5\\u6979\\u78a7\\u69db \\u96d5\\u7389\\u53cc\\u8054 \\u540a\\u513f\\u90ce\\u5f53 \\u540a\\u5c14\\u90ce\\u5f53 \\u8dcc\\u5f39\\u6591\\u9e20 \\u8dcc\\u5b95\\u98ce\\u6d41 \\u8dcc\\u8361\\u98ce\\u6d41 \\u8dcc\\u811a\\u6425\\u80f8 \\u8fed\\u77e9\\u91cd\\u89c4 \\u53e0\\u77e9\\u91cd\\u89c4 \\u9f0e\\u94db\\u6709\\u8033 \\u9f0e\\u94db\\u7389\\u77f3 \\u9f0e\\u9f10\\u8c03\\u548c \\u9f0e\\u6298\\u8986\\u9917 \\u9f0e\\u6298\\u9917\\u8986 \\u9489\\u5934\\u78f7\\u78f7 \\u94e4\\u9e7f\\u8d70\\u9669 \\u4e22\\u9b42\\u4e22\\u9b44 \\u4e22\\u9b42\\u4e27\\u80c6 \\u4e22\\u9b42\\u5931\\u9b44 \\u4e22\\u76d4\\u629b\\u7532 \\u4e22\\u76d4\\u5f03\\u7532 \\u4e22\\u76d4\\u5378\\u7532 \\u4e22\\u4e09\\u62c9\\u56db \\u4e22\\u4e09\\u843d\\u56db \\u4e22\\u4e09\\u5fd8\\u56db \\u4e22\\u5352\\u4fdd\\u8f66 \\u4e1c\\u64ad\\u897f\\u6d41 \\u4e1c\\u731c\\u897f\\u63e3 \\u4e1c\\u626f\\u897f\\u62fd \\u4e1c\\u7a97\\u6d88\\u606f \\u4e1c\\u65b9\\u5c06\\u767d \\u4e1c\\u65b9\\u5343\\u9a91 \\u4e1c\\u89c2\\u897f\\u671b \\u4e1c\\u5bb6\\u897f\\u820d \\u4e1c\\u91cf\\u897f\\u6298 \\u4e1c\\u96f6\\u897f\\u843d \\u4e1c\\u6d41\\u897f\\u843d \\u4e1c\\u6d41\\u897f\\u4e0a \\u4e1c\\u62b9\\u897f\\u6d82 \\u4e1c\\u5357\\u4e4b\\u79c0 \\u4e1c\\u626d\\u897f\\u634f \\u4e1c\\u5e02\\u671d\\u8863 \\u4e1c\\u897f\\u6613\\u9762 \\u51ac\\u88d8\\u590f\\u845b \\u51ac\\u7b91\\u590f\\u88d8 \\u52a8\\u8f84\\u5f97\\u548e \\u680b\\u673d\\u69b1\\u5d29 \\u680b\\u6298\\u69b1\\u574f \\u606b\\u7591\\u865a\\u559d \\u606b\\u7591\\u865a\\u7332 \\u90fd\\u4fde\\u5401\\u5488 \\u515c\\u809a\\u8fde\\u80a0 \\u6597\\u5507\\u5408\\u820c \\u6597\\u800c\\u94f8\\u5175 \\u6597\\u800c\\u94f8\\u9525 \\u6597\\u602a\\u4e89\\u5947 \\u6597\\u9e21\\u517b\\u72d7 \\u6597\\u9e21\\u8d70\\u72ac \\u6597\\u9152\\u767e\\u7bc7 \\u6597\\u9152\\u53cc\\u67d1 \\u6597\\u9152\\u5b66\\u58eb \\u6597\\u9152\\u53ea\\u9e21 \\u6597\\u4e3d\\u4e89\\u598d \\u6597\\u91cf\\u8f66\\u8f7d \\u6597\\u7f8e\\u5938\\u4e3d \\u6597\\u5a9a\\u4e89\\u598d \\u6597\\u8272\\u4e89\\u598d \\u6597\\u971c\\u50b2\\u96ea \\u6597\\u6c34\\u6d3b\\u9cde \\u6597\\u69ab\\u5408\\u7f1d \\u6597\\u5fc3\\u773c\\u513f \\u6597\\u7259\\u62cc\\u9f7f \\u6597\\u8273\\u4e89\\u82b3 \\u6597\\u8273\\u4e89\\u8f89 \\u6597\\u8273\\u4e89\\u598d \\u6597\\u6298\\u86c7\\u884c \\u6597\\u8f6c\\u53c2\\u6a2a \\u8c46\\u8150\\u8111\\u513f \\u8c46\\u91cd\\u6986\\u7791 \\u72ec\\u5230\\u4e4b\\u5904 \\u72ec\\u65ad\\u4e13\\u884c \\u72ec\\u884c\\u5176\\u9053 \\u72ec\\u884c\\u5176\\u662f \\u72ec\\u8f9f\\u8e4a\\u5f84 \\u72ec\\u6709\\u5343\\u79cb \\u8bfb\\u4e0d\\u820d\\u624b \\u8bfb\\u4e66\\u5f97\\u95f4 \\u7b03\\u65b0\\u6020\\u65e7 \\u7b03\\u5b66\\u597d\\u53e4 \\u7779\\u7740\\u77e5\\u5fae \\u675c\\u9e43\\u557c\\u8840 \\u675c\\u95e8\\u9762\\u58c1 \\u675c\\u95e8\\u81ea\\u5b88 \\u675c\\u9699\\u9632\\u5fae \\u5ea6\\u5fb7\\u91cf\\u529b \\u5ea6\\u5df1\\u4ee5\\u7ef3 \\u5ea6\\u957f\\u7d5c\\u5927 \\u8839\\u4f17\\u6728\\u6298 \\u77ed\\u8910\\u4e0d\\u5b8c \\u77ed\\u89c1\\u8584\\u8bc6 \\u65ad\\u53d1\\u6587\\u8eab \\u65ad\\u9e64\\u7ee7\\u51eb \\u65ad\\u51b3\\u5982\\u6d41 \\u65ad\\u70c2\\u671d\\u62a5 \\u65ad\\u624b\\u7eed\\u7389 \\u65ad\\u8896\\u4f59\\u6843 \\u65ad\\u8896\\u4e4b\\u5ba0 \\u65ad\\u8896\\u4e4b\\u7656 \\u65ad\\u957f\\u8865\\u77ed \\u65ad\\u957f\\u7eed\\u77ed \\u5bf9\\u79f0\\u4e2d\\u5fc3 \\u5bf9\\u7b54\\u5982\\u6d41 \\u5bf9\\u9152\\u5f53\\u6b4c \\u5bf9\\u725b\\u5f39\\u7434 \\u5bf9\\u725b\\u9f13\\u7c27 \\u949d\\u5b66\\u7d2f\\u529f \\u987f\\u5f00\\u8305\\u585e \\u987f\\u5b66\\u7d2f\\u529f \\u987f\\u8db3\\u6425\\u80f8 \\u9041\\u8ff9\\u9ec4\\u51a0 \\u9041\\u5929\\u5984\\u884c \\u591a\\u8d22\\u5584\\u8d3e \\u591a\\u5403\\u591a\\u5360 \\u591a\\u6545\\u4e4b\\u79cb \\u591a\\u53e3\\u963f\\u5e08 \\u591a\\u53e3\\u76f8\\u58f0 \\u591a\\u52b3\\u591a\\u5f97 \\u591a\\u96be\\u5174\\u90a6 \\u591a\\u94b1\\u5584\\u8d3e \\u591a\\u5982\\u725b\\u6bdb \\u591a\\u4e8b\\u4e4b\\u79cb \\u591a\\u8a00\\u6570\\u7a77 \\u591a\\u707e\\u591a\\u96be \\u591a\\u5634\\u591a\\u820c \\u593a\\u4eba\\u6240\\u597d \\u6735\\u9890\\u5927\\u56bc \\u5c59\\u91d1\\u6eba\\u94f6 \\u4fc4\\u52d2\\u5188\\u5dde \\u5ce8\\u5ce8\\u6c64\\u6c64 \\u9e45\\u884c\\u9e2d\\u6b65 \\u989d\\u5916\\u4e3b\\u4e8b \\u627c\\u8155\\u53f9\\u606f \\u6076\\u4e0d\\u53bb\\u5584 \\u6076\\u6076\\u4ece\\u77ed \\u6076\\u8ff9\\u662d\\u7740 \\u6076\\u5c45\\u4e0b\\u6d41 \\u6076\\u7d2b\\u593a\\u6731 \\u6076\\u9189\\u5f3a\\u9152 \\u997f\\u83a9\\u904d\\u91ce \\u997f\\u83a9\\u8f7d\\u9053 \\u997f\\u6b8d\\u8f7d\\u9053 \\u997f\\u6b8d\\u6795\\u85c9 \\u6069\\u4e0d\\u653e\\u503a \\u6069\\u5a01\\u5e76\\u884c \\u513f\\u5973\\u4eb2\\u5bb6 \\u8033\\u6fe1\\u76ee\\u67d3 \\u8033\\u987a\\u4e4b\\u5e74 \\u4e8c\\u5341\\u516b\\u5bbf \\u4e8c\\u7ad6\\u4e3a\\u8650 \\u4e8c\\u6c27\\u5316\\u786b \\u53d1\\u77ed\\u5fc3\\u957f \\u53d1\\u53f7\\u65bd\\u4ee4 \\u53d1\\u5978\\u64ff\\u4f0f \\u53d1\\u8499\\u89e3\\u7f1a \\u53d1\\u8499\\u89e3\\u60d1 \\u53d1\\u8499\\u632f\\u8069 \\u53d1\\u8499\\u632f\\u843d \\u53d1\\u6012\\u51b2\\u51a0 \\u53d1\\u6012\\u7a7f\\u51a0 \\u53d1\\u4eba\\u6df1\\u7701 \\u53d1\\u4e0a\\u51b2\\u51a0 \\u53d1\\u4e0a\\u6307\\u51a0 \\u53d1\\u79c3\\u9f7f\\u8c41 \\u53d1\\u5c4b\\u6c42\\u72f8 \\u53d1\\u5baa\\u5e03\\u4ee4 \\u53d1\\u5f15\\u5343\\u94a7 \\u53d1\\u8e0a\\u51b2\\u51a0 \\u53d1\\u690d\\u7a7f\\u51a0 \\u53d1\\u6307\\u7726\\u88c2 \\u6cd5\\u4e0d\\u963f\\u8d35 \\u6cd5\\u5bb6\\u62c2\\u58eb \\u6cd5\\u7078\\u795e\\u9488 \\u6cd5\\u8f6e\\u5e38\\u8f6c \\u756a\\u7aa0\\u5012\\u81fc \\u7ffb\\u80a0\\u5012\\u809a \\u71d4\\u4e66\\u962c\\u5112 \\u53cd\\u8eac\\u81ea\\u7701 \\u53cd\\u95f4\\u4e4b\\u8ba1 \\u53cd\\u7ecf\\u884c\\u6743 \\u53cd\\u8138\\u65e0\\u60c5 \\u53cd\\u749e\\u5f52\\u771f \\u53cd\\u6c42\\u8bf8\\u5df1 \\u53cd\\u88d8\\u8d1f\\u520d \\u53cd\\u88d8\\u8d1f\\u85aa \\u53cd\\u88d8\\u4f24\\u76ae \\u53cd\\u5766\\u514b\\u70ae \\u8fd4\\u672c\\u671d\\u5143 \\u72af\\u800c\\u4e0d\\u6821 \\u72af\\u8a00\\u76f4\\u8c0f \\u996d\\u5751\\u9152\\u56ca \\u996d\\u56ca\\u9152\\u74ee \\u996d\\u56ca\\u9152\\u7515 \\u996d\\u725b\\u5c60\\u72d7 \\u996d\\u7cd7\\u8339\\u8349 \\u6cdb\\u5e94\\u66f2\\u5f53 \\u65b9\\u5dee\\u5206\\u6790 \\u65b9\\u5bf8\\u4e07\\u91cd \\u65b9\\u9886\\u5706\\u51a0 \\u65b9\\u8a00\\u77e9\\u884c \\u65b9\\u6b63\\u4e0d\\u963f \\u9632\\u5fc3\\u6444\\u884c \\u653e\\u996d\\u6d41\\u6b60 \\u653e\\u9a6c\\u540e\\u70ae \\u653e\\u725b\\u5f52\\u9a6c \\u653e\\u8f9f\\u90aa\\u4f88 \\u653e\\u8f9f\\u6deb\\u4f88 \\u653e\\u70ed\\u53cd\\u5e94 \\u98de\\u77ed\\u6d41\\u957f \\u98de\\u9601\\u6d41\\u4e39 \\u98de\\u5c06\\u6570\\u5947 \\u98de\\u6765\\u6a2a\\u7978 \\u98de\\u6d41\\u77ed\\u957f \\u98de\\u971c\\u516d\\u6708 \\u975e\\u5206\\u4e4b\\u8d22 \\u975e\\u5206\\u4e4b\\u5ff5 \\u975e\\u5206\\u4e4b\\u60f3 \\u83f2\\u98df\\u8584\\u8863 \\u871a\\u77ed\\u6d41\\u957f \\u80a5\\u9a6c\\u8f7b\\u88d8 \\u80a5\\u5934\\u80d6\\u8033 \\u532a\\u532a\\u7ffc\\u7ffc \\u532a\\u4f0a\\u671d\\u5915 \\u8d39\\u5c3d\\u5fc3\\u601d \\u8d39\\u5c3d\\u5fc3\\u8840 \\u5206\\u5175\\u628a\\u53e3 \\u5206\\u5206\\u79d2\\u79d2 \\u5206\\u98ce\\u5288\\u6d41 \\u5206\\u6beb\\u4e0d\\u5dee \\u5206\\u82b1\\u62c2\\u67f3 \\u5206\\u82b1\\u7ea6\\u67f3 \\u5206\\u5185\\u4e4b\\u4e8b \\u7caa\\u571f\\u4e0d\\u5982 \\u4e30\\u808c\\u79c0\\u9aa8 \\u98ce\\u9910\\u9732\\u5bbf \\u98ce\\u63a3\\u96f7\\u884c \\u98ce\\u9a70\\u8349\\u9761 \\u98ce\\u9a70\\u7535\\u5377 \\u98ce\\u9a70\\u4e91\\u5377 \\u98ce\\u884c\\u8349\\u4ece \\u98ce\\u884c\\u8349\\u9761 \\u98ce\\u884c\\u8349\\u5043 \\u98ce\\u884c\\u7535\\u63a3 \\u98ce\\u884c\\u7535\\u626b \\u98ce\\u884c\\u7535\\u7167 \\u98ce\\u884c\\u9769\\u5043 \\u98ce\\u884c\\u96f7\\u5389 \\u98ce\\u884c\\u6c34\\u4e0a \\u98ce\\u884c\\u4e00\\u65f6 \\u98ce\\u884c\\u4e00\\u4e16 \\u98ce\\u884c\\u96e8\\u6563 \\u98ce\\u5377\\u6b8b\\u4e91 \\u98ce\\u6d41\\u8dcc\\u5b95 \\u98ce\\u6d41\\u4e91\\u6563 \\u98ce\\u6e05\\u6708\\u768e \\u98ce\\u571f\\u4eba\\u60c5 \\u98ce\\u5f71\\u6577\\u884d \\u98ce\\u4e91\\u6708\\u9732 \\u98ce\\u70db\\u8349\\u9732 \\u98ce\\u59ff\\u7ef0\\u7ea6 \\u5c01\\u59bb\\u836b\\u5b50 \\u70fd\\u706b\\u8fde\\u5e74 \\u950b\\u53d1\\u97f5\\u6d41 \\u950b\\u8292\\u4e0d\\u9732 \\u950b\\u94d3\\u6bd5\\u9732 \\u8702\\u51fa\\u6cc9\\u6d41 \\u8702\\u6247\\u8681\\u805a \\u8702\\u8170\\u524a\\u80cc \\u8702\\u6512\\u8681\\u96c6 \\u8702\\u6512\\u8681\\u805a \\u9022\\u573a\\u7aff\\u6728 \\u9022\\u573a\\u6e38\\u620f \\u9022\\u573a\\u4f5c\\u4e50 \\u9022\\u573a\\u4f5c\\u8da3 \\u9022\\u573a\\u4f5c\\u620f \\u51e4\\u697c\\u9f99\\u9619 \\u51e4\\u9761\\u9e3e\\u542a \\u51e4\\u5f15\\u4e5d\\u96cf \\u5949\\u516c\\u4e0d\\u963f \\u5949\\u4ee4\\u627f\\u6559 \\u4f5b\\u8499\\u7279\\u5dde \\u5426\\u6781\\u6cf0\\u56de \\u5426\\u6781\\u6cf0\\u6765 \\u5426\\u6781\\u9633\\u56de \\u5426\\u53bb\\u6cf0\\u6765 \\u5426\\u5f80\\u6cf0\\u6765 \\u5426\\u7ec8\\u590d\\u6cf0 \\u5426\\u7ec8\\u5219\\u6cf0 \\u80a4\\u76ae\\u6f66\\u8349 \\u80a4\\u53d7\\u4e4b\\u612c \\u4f0f\\u800c\\u54b6\\u5929 \\u6276\\u5371\\u6551\\u56f0 \\u62c2\\u8896\\u800c\\u5f52 \\u62c2\\u8896\\u800c\\u53bb \\u670d\\u670d\\u5e16\\u5e16 \\u670d\\u725b\\u4e58\\u9a6c \\u6d6e\\u7fe0\\u6d41\\u4e39 \\u6d6e\\u5149\\u63a0\\u5f71 \\u6d6e\\u5149\\u7565\\u5f71 \\u6d6e\\u5149\\u8dc3\\u91d1 \\u6d6e\\u76ae\\u6f66\\u8349 \\u6d6e\\u751f\\u516d\\u8bb0 \\u6d6e\\u751f\\u5207\\u54cd \\u6d6e\\u58f0\\u5207\\u54cd \\u6d6e\\u6536\\u52d2\\u6298 \\u6874\\u9f13\\u76f8\\u5e94 \\u7b26\\u53f7\\u903b\\u8f91 \\u798f\\u6167\\u53cc\\u4fee \\u798f\\u5b59\\u836b\\u5b50 \\u62ca\\u80cc\\u627c\\u542d \\u62ca\\u80cc\\u6424\\u542d \\u62ca\\u5fc3\\u6ce3\\u8840 \\u4fef\\u9996\\u5c31\\u7f1a \\u4fef\\u9996\\u5e16\\u8033 \\u4ed8\\u4e4b\\u4e1c\\u6d41 \\u8d1f\\u9a7d\\u524d\\u9a71 \\u8d1f\\u4efb\\u8499\\u52b3 \\u8d1f\\u4fd7\\u4e4b\\u7d2f \\u8d1f\\u85aa\\u6551\\u706b \\u8d1f\\u503a\\u7d2f\\u7d2f \\u9644\\u80a4\\u843d\\u6bdb \\u5bcc\\u56fd\\u5f4a\\u5175 \\u5bcc\\u5546\\u5927\\u8d3e \\u5bcc\\u5546\\u5de8\\u8d3e \\u5bcc\\u5546\\u84c4\\u8d3e \\u5bcc\\u4e8e\\u6625\\u79cb \\u8179\\u8f7d\\u4e94\\u8f66 \\u4f3d\\u9a6c\\u5c04\\u7ebf \\u6539\\u671d\\u6362\\u4ee3 \\u6539\\u671d\\u6362\\u59d3 \\u6539\\u6076\\u884c\\u5584 \\u6539\\u800c\\u66f4\\u5f20 \\u6539\\u884c\\u4ece\\u5584 \\u6539\\u884c\\u8fc1\\u5584 \\u6539\\u884c\\u4e3a\\u5584 \\u6539\\u884c\\u81ea\\u65b0 \\u6539\\u66f2\\u6613\\u8c03 \\u6539\\u5f80\\u4fee\\u6765 \\u6539\\u5f26\\u6613\\u8c03 \\u6539\\u7389\\u6539\\u884c \\u6539\\u5f20\\u6613\\u8c03 \\u7518\\u5904\\u4e0b\\u6d41 \\u7518\\u5206\\u968f\\u65f6 \\u809d\\u9ad3\\u6d41\\u91ce \\u7aff\\u5934\\u65e5\\u4e0a \\u611f\\u65e7\\u4e4b\\u54c0 \\u5e72\\u57ce\\u4e4b\\u5c06 \\u5e72\\u8106\\u5229\\u7d22 \\u5e72\\u7aef\\u5764\\u502a \\u5e72\\u7236\\u4e4b\\u86ca \\u5e72\\u5e72\\u51c0\\u51c0 \\u5e72\\u5e72\\u7ffc\\u7ffc \\u5e72\\u6208\\u8f7d\\u6222 \\u5e72\\u5c06\\u83ab\\u90aa \\u5e72\\u51c0\\u5229\\u7d22 \\u5e72\\u540d\\u72af\\u4e49 \\u5e72\\u557c\\u6e7f\\u54ed \\u5e72\\u9704\\u853d\\u65e5 \\u521a\\u6b63\\u4e0d\\u963f \\u521a\\u76f4\\u4e0d\\u963f \\u94a2\\u5316\\u73bb\\u7483 \\u5c97\\u5934\\u6cfd\\u5e95 \\u9ad8\\u904f\\u884c\\u4e91 \\u9ad8\\u5c14\\u592b\\u7403 \\u9ad8\\u9ad8\\u5174\\u5174 \\u9ad8\\u60c5\\u9038\\u6001 \\u9ad8\\u5c71\\u666f\\u884c \\u9ad8\\u4e49\\u8584\\u4e91 \\u9ad8\\u97f3\\u5587\\u53ed \\u818f\\u573a\\u7ee3\\u6d4d \\u818f\\u8f66\\u79e3\\u9a6c \\u818f\\u5507\\u8d29\\u820c \\u818f\\u5507\\u5c90\\u820c \\u818f\\u6881\\u9526\\u7ee3 \\u818f\\u7cb1\\u9526\\u7ee3 \\u818f\\u7cb1\\u5e74\\u5c11 \\u818f\\u7cb1\\u6587\\u7ee3 \\u7f1f\\u7ebb\\u4e4b\\u4ea4 \\u7599\\u7599\\u7629\\u7629 \\u5272\\u987b\\u5f03\\u888d \\u6b4c\\u83ba\\u821e\\u71d5 \\u9769\\u65e7\\u4ece\\u65b0 \\u9769\\u65e7\\u9f0e\\u65b0 \\u9769\\u65e7\\u56fe\\u65b0 \\u9769\\u65e7\\u7ef4\\u65b0 \\u9769\\u9762\\u655b\\u624b \\u9769\\u5fc3\\u6613\\u884c \\u9769\\u65b0\\u53d8\\u65e7 \\u683c\\u683c\\u4e0d\\u7eb3 \\u683c\\u683c\\u4e0d\\u5410 \\u845b\\u5c66\\u5c65\\u971c \\u5404\\u5954\\u4e1c\\u897f \\u5404\\u5954\\u524d\\u7a0b \\u5404\\u884c\\u5176\\u662f \\u5404\\u884c\\u5176\\u5fd7 \\u5404\\u5c31\\u5404\\u4f4d \\u5404\\u4e3a\\u5176\\u4e3b \\u5404\\u6709\\u5343\\u79cb \\u5404\\u6709\\u6240\\u597d \\u6839\\u8fde\\u682a\\u902e \\u4e98\\u53e4\\u5947\\u95fb \\u7fb9\\u85dc\\u542b\\u7cd7 \\u7fb9\\u85dc\\u5505\\u7cd7 \\u66f4\\u5f85\\u5e72\\u7f62 \\u66f4\\u8fdb\\u4e00\\u7aff \\u66f4\\u9611\\u4eba\\u9759 \\u66f4\\u4ee4\\u660e\\u53f7 \\u66f4\\u540d\\u6539\\u59d3 \\u66f4\\u96be\\u4ec6\\u6570 \\u66f4\\u4ec6\\u96be\\u5c3d \\u66f4\\u4ec6\\u96be\\u6570 \\u66f4\\u4ec6\\u96be\\u7ec8 \\u66f4\\u6709\\u751a\\u8005 \\u5f13\\u6298\\u5200\\u5c3d \\u516c\\u6b63\\u4e0d\\u963f \\u516c\\u8bf8\\u540c\\u597d \\u529f\\u8584\\u8749\\u7ffc \\u529f\\u6210\\u884c\\u6ee1 \\u529f\\u6210\\u540d\\u5c31 \\u529f\\u82e5\\u4e18\\u5c71 \\u529f\\u9042\\u8eab\\u9000 \\u653b\\u57ce\\u63a0\\u5730 \\u653b\\u57ce\\u7565\\u5730 \\u653b\\u8fc7\\u7bb4\\u9619 \\u653b\\u5fc3\\u627c\\u542d \\u653b\\u5fc3\\u4e3a\\u4e0a \\u606d\\u884c\\u5929\\u7f5a \\u8eac\\u4f53\\u529b\\u884c \\u8eac\\u81ea\\u83f2\\u8584 \\u9f9a\\u884c\\u5929\\u7f5a \\u62f1\\u624b\\u800c\\u964d \\u5171\\u679d\\u522b\\u5e72 \\u8d21\\u79b9\\u5f39\\u51a0 \\u4f9b\\u4e0d\\u5e94\\u6c42 \\u4f9b\\u5927\\u4e8e\\u6c42 \\u4f9b\\u8fc7\\u4e8e\\u6c42 \\u52fe\\u5fc3\\u6597\\u89d2 \\u94a9\\u5fc3\\u6597\\u89d2 \\u72d7\\u902e\\u8001\\u9f20 \\u72d7\\u98a0\\u5c41\\u80a1 \\u72d7\\u6076\\u9152\\u9178 \\u72d7\\u884c\\u72fc\\u5fc3 \\u72d7\\u5fc3\\u72d7\\u884c \\u72d7\\u7eed\\u4faf\\u51a0 \\u72d7\\u8840\\u6dcb\\u5934 \\u72d7\\u8840\\u55b7\\u5934 \\u8d2d\\u9500\\u5408\\u540c \\u6cbd\\u540d\\u5e72\\u8a89 \\u5b64\\u72ec\\u77dc\\u5be1 \\u5b64\\u884c\\u5df1\\u610f \\u5b64\\u884c\\u4e00\\u610f \\u5b64\\u5c65\\u5371\\u884c \\u59d1\\u5c04\\u795e\\u4eba \\u53e4\\u8c03\\u4e0d\\u5f39 \\u53e4\\u8c03\\u5355\\u5f39 \\u9f13\\u9f13\\u56ca\\u56ca \\u9f13\\u4e50\\u9f50\\u9e23 \\u9e58\\u4ed1\\u541e\\u67a3 \\u9e58\\u5165\\u9e26\\u7fa4 \\u6545\\u5730\\u91cd\\u6e38 \\u6545\\u4f0e\\u91cd\\u6f14 \\u6545\\u65e7\\u4e0d\\u5f03 \\u987e\\u666f\\u60ed\\u5f62 \\u987e\\u66f2\\u5468\\u90ce \\u74dc\\u845b\\u76f8\\u8fde \\u74dc\\u719f\\u8482\\u843d \\u5471\\u55d2\\u677f\\u513f \\u5471\\u5471\\u5760\\u5730 \\u5be1\\u89c1\\u9c9c\\u95fb \\u5be1\\u5ec9\\u9c9c\\u803b \\u6302\\u51a0\\u6c42\\u53bb \\u4e56\\u50fb\\u90aa\\u8c2c \\u5173\\u95e8\\u843d\\u95e9 \\u89c2\\u573a\\u77ee\\u4eba \\u5b98\\u4ed3\\u8001\\u9f20 \\u5b98\\u573a\\u5982\\u620f \\u5b98\\u6b62\\u795e\\u884c \\u839e\\u5c14\\u800c\\u7b11 \\u839e\\u5c14\\u4e00\\u7b11 \\u8d2f\\u6597\\u53cc\\u9f99 \\u8d2f\\u673d\\u7c9f\\u9648 \\u8d2f\\u673d\\u7c9f\\u8150 \\u8d2f\\u673d\\u7c9f\\u7ea2 \\u51a0\\u5c66\\u5012\\u65bd \\u51a0\\u7edd\\u4e00\\u65f6 \\u51a0\\u5c65\\u5012\\u6613 \\u51a0\\u5c65\\u5012\\u7f6e \\u51a0\\u5c71\\u6234\\u7c92 \\u5149\\u6746\\u53f8\\u4ee4 \\u5e7f\\u9675\\u6563\\u7edd \\u5e7f\\u8b6c\\u66f2\\u8c15 \\u5e7f\\u6587\\u5148\\u751f \\u5e7f\\u79cd\\u8584\\u6536 \\u5f52\\u6839\\u7a76\\u67e2 \\u5f52\\u9a6c\\u653e\\u725b \\u5f52\\u6b63\\u90b1\\u9996 \\u5f52\\u6b63\\u5b88\\u4e18 \\u5f52\\u6b63\\u9996\\u4e18 \\u5f52\\u6b63\\u9996\\u90b1 \\u572d\\u89d2\\u4e0d\\u9732 \\u89c4\\u884c\\u77e9\\u6b65 \\u89c4\\u884c\\u77e9\\u6b62 \\u89c4\\u6c42\\u65e0\\u5ea6 \\u89c4\\u65cb\\u77e9\\u6298 \\u89c4\\u91cd\\u77e9\\u53e0 \\u95fa\\u82f1\\u95f1\\u79c0 \\u7470\\u610f\\u5947\\u884c \\u7470\\u610f\\u7426\\u884c \\u8f68\\u7269\\u8303\\u4e16 \\u9b3c\\u4f7f\\u795e\\u5dee \\u9b3c\\u872e\\u6280\\u4fe9 \\u523f\\u76ee\\u9265\\u5fc3 \\u523f\\u9265\\u809d\\u80be \\u523f\\u9265\\u5fc3\\u8151 \\u523f\\u5fc3\\u9265\\u80be \\u6842\\u9152\\u6912\\u6d46 \\u6842\\u6298\\u5170\\u6467 \\u6842\\u6298\\u4e00\\u679d \\u6eda\\u74dc\\u6d41\\u6c34 \\u679c\\u884c\\u80b2\\u5fb7 \\u679c\\u719f\\u8482\\u843d \\u88f9\\u8840\\u529b\\u6218 \\u8fc7\\u90fd\\u5386\\u5757 \\u8fc7\\u5173\\u65a9\\u5c06 \\u8fc7\\u5c60\\u5927\\u56bc \\u8fc7\\u9699\\u767d\\u9a79 \\u542b\\u5bab\\u5480\\u5fb5 \\u542b\\u57a2\\u5305\\u7f9e \\u542b\\u57a2\\u85cf\\u75be \\u542b\\u542b\\u7cca\\u7cca \\u542b\\u7cca\\u4e0d\\u660e \\u542b\\u7cca\\u5176\\u8bcd \\u542b\\u7cca\\u5176\\u8f9e \\u542b\\u6df7\\u4e0d\\u6e05 \\u542b\\u8840\\u55b7\\u4eba \\u542b\\u8840\\u6f60\\u4eba \\u542b\\u8840\\u5640\\u4eba \\u5bd2\\u8015\\u70ed\\u8018 \\u5bd2\\u8015\\u6691\\u8018 \\u5bd2\\u7070\\u66f4\\u7136 \\u5bd2\\u9178\\u843d\\u9b44 \\u6c57\\u6d41\\u6d43\\u80cc \\u6c57\\u6d41\\u6d43\\u80a4 \\u6c57\\u6d41\\u6d43\\u4f53 \\u6c57\\u6d41\\u6d43\\u8e35 \\u6c57\\u6d41\\u5939\\u80cc \\u6c57\\u6d41\\u63a5\\u8e35 \\u6c57\\u6d41\\u6ee1\\u9762 \\u6c57\\u6d41\\u6d3d\\u80cc \\u6c57\\u6d41\\u6d3d\\u8863 \\u6c57\\u6d41\\u81f3\\u8e35 \\u6c57\\u725b\\u5145\\u680b \\u6c57\\u725b\\u5145\\u5c4b \\u6c57\\u725b\\u585e\\u680b \\u6c57\\u8840\\u76d0\\u8f66 \\u65f1\\u9b43\\u4e3a\\u8650 \\u884c\\u5175\\u5e03\\u9635 \\u884c\\u4e0d\\u4ece\\u5f84 \\u884c\\u4e0d\\u8d30\\u8fc7 \\u884c\\u4e0d\\u526f\\u8a00 \\u884c\\u4e0d\\u82df\\u5408 \\u884c\\u4e0d\\u5c65\\u5371 \\u884c\\u4e0d\\u80dc\\u8863 \\u884c\\u4e0d\\u7531\\u5f84 \\u884c\\u4e0d\\u903e\\u65b9 \\u884c\\u6b65\\u5982\\u98de \\u884c\\u85cf\\u7528\\u820d \\u884c\\u6210\\u4e8e\\u601d \\u884c\\u52a8\\u5750\\u5367 \\u884c\\u53e4\\u5fd7\\u4eca \\u884c\\u53f7\\u5367\\u6ce3 \\u884c\\u5408\\u8d8b\\u540c \\u884c\\u5df1\\u6709\\u803b \\u884c\\u5978\\u5356\\u4fcf \\u884c\\u5c06\\u5c31\\u6728 \\u884c\\u7720\\u7acb\\u76f9 \\u884c\\u82e5\\u72d7\\u5f58 \\u884c\\u82e5\\u65e0\\u4e8b \\u884c\\u8272\\u5306\\u5306 \\u884c\\u8272\\u6031\\u6031 \\u884c\\u5c38\\u8d70\\u9aa8 \\u884c\\u5c38\\u8d70\\u8089 \\u884c\\u5e08\\u52a8\\u4f17 \\u884c\\u601d\\u5750\\u7b79 \\u884c\\u601d\\u5750\\u60f3 \\u884c\\u601d\\u5750\\u5fc6 \\u884c\\u540c\\u72d7\\u8c68 \\u884c\\u540c\\u72d7\\u5f58 \\u884c\\u540c\\u80fd\\u5076 \\u884c\\u4fa0\\u597d\\u4e49 \\u884c\\u9669\\u5fbc\\u5e78 \\u884c\\u5d04\\u4fa5\\u5e78 \\u884c\\u9999\\u6302\\u724c \\u884c\\u6613\\u77e5\\u96be \\u884c\\u6709\\u4f59\\u529b \\u884c\\u8fdc\\u5347\\u9ad8 \\u884c\\u8fdc\\u81ea\\u8fe9 \\u884c\\u4e91\\u6d41\\u6c34 \\u884c\\u9488\\u6b65\\u7ebf \\u884c\\u4e4b\\u6709\\u6548 \\u884c\\u4f4f\\u5750\\u5367 \\u884c\\u6d4a\\u8a00\\u6e05 \\u884c\\u8e2a\\u65e0\\u5b9a \\u8c6a\\u5e72\\u66b4\\u53d6 \\u597d\\u5403\\u61d2\\u505a \\u597d\\u5927\\u559c\\u529f \\u597d\\u4e39\\u975e\\u7d20 \\u597d\\u9ad8\\u9a9b\\u8fdc \\u597d\\u884c\\u5c0f\\u60e0 \\u597d\\u884c\\u5c0f\\u6167 \\u597d\\u9152\\u8d2a\\u676f \\u597d\\u8c0b\\u5584\\u65ad \\u597d\\u9a91\\u8005\\u5815 \\u597d\\u8272\\u4e4b\\u5f92 \\u597d\\u5584\\u6076\\u6076 \\u597d\\u5584\\u4e50\\u65bd \\u597d\\u751f\\u4e4b\\u5fb7 \\u597d\\u4e8b\\u4e4b\\u5f92 \\u597d\\u4e3a\\u4eba\\u5e08 \\u597d\\u4e3a\\u4e8b\\u7aef \\u597d\\u95ee\\u51b3\\u7591 \\u597d\\u95ee\\u5219\\u88d5 \\u597d\\u4f5a\\u6076\\u52b3 \\u597d\\u9038\\u6076\\u52b3 \\u597d\\u52c7\\u6597\\u72e0 \\u597d\\u6574\\u4ee5\\u6687 \\u597d\\u81ea\\u4e3a\\u4e4b \\u53f7\\u5bd2\\u557c\\u9965 \\u53f7\\u4ee4\\u5982\\u5c71 \\u53f7\\u54b7\\u5927\\u54ed \\u53f7\\u5555\\u5927\\u54ed \\u5408\\u4ece\\u8fde\\u8861 \\u548c\\u989c\\u8bf4\\u8272 \\u6cb3\\u51fa\\u4f0f\\u6d41 \\u6cb3\\u6881\\u4e4b\\u8c0a \\u6cb3\\u843d\\u6d77\\u5e72 \\u6cb3\\u503e\\u6708\\u843d \\u6cb3\\u659c\\u6708\\u843d \\u8377\\u67aa\\u5b9e\\u5f39 \\u6838\\u7535\\u8377\\u6570 \\u6838\\u53cd\\u5e94\\u5806 \\u8d6b\\u8d6b\\u4e4b\\u529f \\u8d6b\\u8d6b\\u4e4b\\u5149 \\u9e64\\u53d1\\u9e21\\u76ae \\u9e64\\u53d1\\u677e\\u59ff \\u9e64\\u884c\\u9e21\\u7fa4 \\u9e64\\u9e23\\u4e5d\\u768b \\u9ed1\\u4e0d\\u6e9c\\u79cb \\u9ed1\\u5495\\u9686\\u549a \\u54fc\\u54c8\\u4e8c\\u5c06 \\u6a2a\\u6069\\u6ee5\\u8d4f \\u6a2a\\u884c\\u9006\\u65bd \\u6a2a\\u884c\\u65e0\\u5fcc \\u6a2a\\u884c\\u76f4\\u649e \\u6a2a\\u884c\\u76f4\\u8d70 \\u6a2a\\u7978\\u975e\\u707e \\u6a2a\\u79d1\\u66b4\\u655b \\u6a2a\\u62a2\\u6b66\\u593a \\u6a2a\\u62a2\\u786c\\u593a \\u6a2a\\u62d6\\u5012\\u626f \\u6a2a\\u62d6\\u5012\\u62fd \\u6a2a\\u65e0\\u5fcc\\u60ee \\u6a2a\\u6b83\\u98de\\u7978 \\u6a2a\\u707e\\u98de\\u7978 \\u6a2a\\u5f81\\u66b4\\u8d4b \\u6a2a\\u5f81\\u82db\\u655b \\u6a2a\\u5f81\\u82db\\u5f79 \\u8861\\u77f3\\u91cf\\u4e66 \\u5f18\\u5956\\u98ce\\u6d41 \\u7ea2\\u4e0d\\u68f1\\u767b \\u7ea2\\u5f97\\u53d1\\u7d2b \\u7ea2\\u8150\\u8d2f\\u673d \\u7ea2\\u7ef3\\u7cfb\\u8db3 \\u5b8f\\u624d\\u5927\\u7565 \\u5b8f\\u6750\\u5927\\u7565 \\u6d2a\\u7089\\u71ce\\u53d1 \\u6d2a\\u6c34\\u6a2a\\u6d41 \\u9e3f\\u90fd\\u4e70\\u7b2c \\u9e3f\\u6e10\\u4e8e\\u5e72 \\u9e3f\\u8499\\u521d\\u8f9f \\u9e3f\\u7bc7\\u5de8\\u7740 \\u9e3f\\u8863\\u7fbd\\u88f3 \\u9e3f\\u722a\\u7559\\u6ce5 \\u540e\\u8fdb\\u9886\\u8896 \\u540e\\u8fdb\\u4e4b\\u79c0 \\u540e\\u6765\\u4e4b\\u79c0 \\u540e\\u8d77\\u4e4b\\u79c0 \\u539a\\u6b64\\u8584\\u5f7c \\u539a\\u5fb7\\u8f7d\\u7269 \\u539a\\u53e4\\u8584\\u4eca \\u539a\\u79ef\\u8584\\u53d1 \\u539a\\u4eca\\u8584\\u53e4 \\u539a\\u5473\\u814a\\u6bd2 \\u547c\\u4e0d\\u7ed9\\u5438 \\u547c\\u6765\\u559d\\u53bb \\u547c\\u5362\\u559d\\u96c9 \\u547c\\u725b\\u547c\\u9a6c \\u547c\\u725b\\u4f5c\\u9a6c \\u547c\\u5929\\u5401\\u5730 \\u547c\\u5929\\u94a5\\u5730 \\u547c\\u5e7a\\u559d\\u516d \\u72d0\\u72f8\\u5c3e\\u5df4 \\u72d0\\u88d8\\u7f94\\u8896 \\u72d0\\u88d8\\u5c28\\u8338 \\u72d0\\u88d8\\u8499\\u620e \\u72d0\\u88d8\\u8499\\u8338 \\u72d0\\u6b7b\\u9996\\u4e18 \\u80e1\\u884c\\u4e71\\u4e3a \\u80e1\\u601d\\u4e71\\u91cf \\u80e1\\u5b50\\u62c9\\u78b4 \\u846b\\u82a6\\u4f9d\\u6837 \\u9e44\\u9762\\u9e20\\u5f62 \\u7cca\\u91cc\\u7cca\\u6d82 \\u7cca\\u6d82\\u4e00\\u65f6 \\u864e\\u6b65\\u9f99\\u884c \\u864e\\u6597\\u9f99\\u4e89 \\u864e\\u843d\\u5e73\\u5ddd \\u864e\\u7565\\u9f99\\u97ec \\u4e92\\u5265\\u75db\\u75ae \\u4e92\\u6559\\u4e92\\u5b66 \\u4e92\\u4e3a\\u56e0\\u679c \\u6237\\u67a2\\u4e0d\\u673d \\u82b1\\u4e0d\\u68f1\\u767b \\u82b1\\u7c07\\u9526\\u6512 \\u82b1\\u7ea2\\u67f3\\u7eff \\u82b1\\u82b1\\u80a0\\u5b50 \\u82b1\\u9636\\u67f3\\u5e02 \\u82b1\\u8857\\u67f3\\u964c \\u82b1\\u8857\\u67f3\\u5e02 \\u82b1\\u8857\\u67f3\\u5df7 \\u82b1\\u660e\\u67f3\\u6697 \\u82b1\\u660e\\u67f3\\u5a9a \\u82b1\\u8862\\u67f3\\u964c \\u82b1\\u8bf4\\u67f3\\u8bf4 \\u82b1\\u5929\\u9152\\u5730 \\u82b1\\u6512\\u9526\\u7c07 \\u82b1\\u6512\\u9526\\u805a \\u82b1\\u906e\\u67f3\\u63a9 \\u82b1\\u906e\\u67f3\\u9690 \\u5212\\u4e00\\u4e0d\\u4e8c \\u5212\\u7ca5\\u5272\\u9f51 \\u534e\\u4ead\\u9e64\\u5533 \\u534e\\u5c4b\\u4e18\\u589f \\u534e\\u5c4b\\u79cb\\u589f \\u534e\\u5c4b\\u5c71\\u4e18 \\u534e\\u661f\\u79cb\\u6708 \\u6ed1\\u4e0d\\u5527\\u6e9c \\u5316\\u4e3a\\u6ce1\\u5f71 \\u5316\\u67ad\\u4e3a\\u9e20 \\u753b\\u837b\\u548c\\u4e38 \\u753b\\u86c7\\u8457\\u8db3 \\u8bdd\\u91cc\\u85cf\\u9604 \\u6000\\u624d\\u4e0d\\u9047 \\u6000\\u7740\\u9b3c\\u80ce \\u5f8a\\u80a0\\u4f24\\u6c14 \\u69d0\\u5357\\u4e00\\u68a6 \\u574f\\u88f3\\u4e3a\\u88e4 \\u6b22\\u547c\\u96c0\\u8dc3 \\u60a3\\u96be\\u4e4b\\u4ea4 \\u9ec4\\u53d1\\u5782\\u9aeb \\u9ec4\\u53d1\\u513f\\u9f7f \\u9ec4\\u53d1\\u9a80\\u80cc \\u9ec4\\u516c\\u9152\\u5786 \\u9ec4\\u51a0\\u8349\\u670d \\u9ec4\\u51a0\\u8349\\u5c65 \\u9ec4\\u51a0\\u91ce\\u670d \\u9ec4\\u6bdb\\u4e2b\\u5934 \\u7070\\u4e0d\\u6e9c\\u4e22 \\u7070\\u4e0d\\u6e9c\\u79cb \\u7070\\u5fc3\\u4e27\\u610f \\u6325\\u6beb\\u843d\\u7eb8 \\u9ebe\\u4e4b\\u5373\\u53bb \\u56de\\u80a0\\u4e5d\\u8f6c \\u56de\\u5e72\\u5c31\\u6e7f \\u6094\\u8fc7\\u81ea\\u8d23 \\u6bc1\\u5bb6\\u7ebe\\u96be \\u6bc1\\u821f\\u4e3a\\u6755 \\u8d3f\\u8d27\\u516c\\u884c \\u8d3f\\u8d42\\u516c\\u884c \\u6666\\u76f2\\u5426\\u585e \\u79fd\\u5fb7\\u57a2\\u884c \\u660f\\u5b9a\\u6668\\u7701 \\u660f\\u955c\\u91cd\\u660e \\u660f\\u955c\\u91cd\\u78e8 \\u660f\\u8ff7\\u4e0d\\u7701 \\u660f\\u5934\\u6655\\u8111 \\u6d51\\u62a1\\u541e\\u67a3 \\u6df7\\u6df7\\u5669\\u5669 \\u6df7\\u7136\\u4e00\\u4f53 \\u6df7\\u6c34\\u6478\\u9c7c \\u9b42\\u4e0d\\u8457\\u4f53 \\u9b42\\u98de\\u80c6\\u843d \\u9b42\\u98de\\u80c6\\u4e27 \\u9b42\\u98de\\u795e\\u4e27 \\u9b42\\u8017\\u9b44\\u4e27 \\u9b42\\u60ca\\u80c6\\u843d \\u9b42\\u60ca\\u9b44\\u843d \\u9b42\\u4e27\\u795e\\u593a \\u9b42\\u4ea1\\u80c6\\u843d \\u9b42\\u6d88\\u80c6\\u4e27 \\u9b42\\u6d88\\u9b44\\u4e27 \\u8c41\\u7136\\u786e\\u65af \\u8c41\\u4eba\\u8033\\u76ee \\u6d3b\\u5265\\u751f\\u541e \\u706b\\u8015\\u6d41\\u79cd \\u706b\\u8015\\u6c34\\u79cd \\u706b\\u6025\\u706b\\u71ce \\u706b\\u70e7\\u706b\\u71ce \\u8d27\\u800c\\u4e0d\\u552e \\u8d27\\u8d3f\\u516c\\u884c \\u8d27\\u8d42\\u5927\\u884c \\u8d27\\u8d42\\u516c\\u884c \\u83b7\\u96bd\\u516c\\u8f66 \\u83b7\\u9647\\u671b\\u8700 \\u7978\\u4e0d\\u5355\\u884c \\u7978\\u798f\\u76f8\\u501a \\u970d\\u5c14\\u6548\\u5e94 \\u8816\\u5c48\\u6c42\\u4f38 \\u51fb\\u696b\\u4e2d\\u6d41 \\u51fb\\u6392\\u5192\\u6ca1 \\u51fb\\u77f3\\u5f39\\u4e1d \\u53fd\\u91cc\\u5495\\u565c \\u53fd\\u91cc\\u5471\\u5566 \\u9e21\\u866b\\u5f97\\u4e27 \\u9e21\\u53e3\\u725b\\u540e \\u9e21\\u76ae\\u7599\\u7629 \\u9e21\\u76ae\\u9e64\\u53d1 \\u9e21\\u72ac\\u4e0d\\u7559 \\u9e21\\u58f0\\u9e45\\u6597 \\u9e21\\u5c38\\u725b\\u4ece \\u9e21\\u4e89\\u9e45\\u6597 \\u79ef\\u672c\\u6c42\\u539f \\u79ef\\u8c17\\u7cdc\\u9aa8 \\u79ef\\u5fb7\\u7d2f\\u529f \\u79ef\\u5fb7\\u7d2f\\u4ec1 \\u79ef\\u5fb7\\u7d2f\\u5584 \\u79ef\\u539a\\u6d41\\u5149 \\u79ef\\u91d1\\u7d2f\\u7389 \\u79ef\\u7d2f\\u57fa\\u91d1 \\u79ef\\u9732\\u4e3a\\u6ce2 \\u79ef\\u5e74\\u7d2f\\u5c81 \\u79ef\\u65e5\\u7d2f\\u4e45 \\u79ef\\u65e5\\u7d2f\\u5c81 \\u79ef\\u65e5\\u7d2f\\u6708 \\u79ef\\u65f6\\u7d2f\\u65e5 \\u79ef\\u7d20\\u7d2f\\u65e7 \\u79ef\\u5c81\\u7d2f\\u6708 \\u79ef\\u7f9e\\u6210\\u6012 \\u79ef\\u94e2\\u7d2f\\u5bf8 \\u5c50\\u9f7f\\u4e4b\\u6298 \\u57fa\\u672c\\u7535\\u8377 \\u57fa\\u56e0\\u91cd\\u7ec4 \\u8d4d\\u5fd7\\u800c\\u6ca1 \\u7578\\u6d41\\u6d3d\\u5ba2 \\u7578\\u6d41\\u9038\\u5ba2 \\u7b95\\u88d8\\u76f8\\u7ee7 \\u7b95\\u5f15\\u88d8\\u968f \\u6fc0\\u8584\\u505c\\u6d47 \\u5409\\u5149\\u7247\\u88d8 \\u5409\\u4eba\\u5929\\u76f8 \\u6c72\\u6c72\\u5fd9\\u5fd9 \\u5373\\u5174\\u4e4b\\u4f5c \\u6025\\u5904\\u4ece\\u5bbd \\u6025\\u516c\\u597d\\u65bd \\u6025\\u516c\\u597d\\u4e49 \\u6025\\u529f\\u597d\\u5229 \\u6025\\u666f\\u51cb\\u5e74 \\u6025\\u666f\\u6d41\\u5e74 \\u6025\\u6d41\\u52c7\\u8fdb \\u6025\\u6d41\\u52c7\\u9000 \\u6025\\u8109\\u7f13\\u7078 \\u96c6\\u814b\\u6210\\u88d8 \\u96c6\\u814b\\u4e3a\\u88d8 \\u7620\\u725b\\u7fb8\\u8c5a \\u85c9\\u8349\\u6795\\u5757 \\u51e0\\u6b21\\u4e09\\u756a \\u51e0\\u8d77\\u51e0\\u843d \\u6324\\u7709\\u6e9c\\u773c \\u621f\\u6307\\u6012\\u76ee \\u8ba1\\u51fa\\u65e0\\u5948 \\u8ba1\\u6597\\u8d1f\\u624d \\u8ba1\\u529f\\u884c\\u5c01 \\u8ba1\\u529f\\u884c\\u8d4f \\u8ba1\\u529f\\u91cf\\u7f6a \\u8ba1\\u884c\\u8651\\u4e49 \\u8ba1\\u884c\\u8a00\\u542c \\u8ba1\\u65e0\\u4ed8\\u4e4b \\u8ba1\\u52cb\\u884c\\u8d4f \\u7eaa\\u7eb2\\u4eba\\u8bba \\u6d4e\\u6d4e\\u4e00\\u5802 \\u6d4e\\u4e16\\u6551\\u4eba \\u65e2\\u5f80\\u4e0d\\u548e \\u5bc4\\u5174\\u5bd3\\u60c5 \\u9701\\u98ce\\u6717\\u6708 \\u9701\\u6708\\u5149\\u98ce \\u631f\\u52bf\\u5f04\\u6743 \\u631f\\u4e3b\\u884c\\u4ee4 \\u6d43\\u80cc\\u6c57\\u6d41 \\u5bb6\\u5e38\\u8c46\\u8150 \\u5bb6\\u6210\\u4e1a\\u5c31 \\u5bb6\\u9053\\u4ece\\u5bb9 \\u5bb6\\u9053\\u4e2d\\u843d \\u5bb6\\u7ed9\\u6c11\\u8db3 \\u5bb6\\u7ed9\\u4eba\\u8db3 \\u5bb6\\u7d2f\\u5343\\u91d1 \\u5bb6\\u65e0\\u62c5\\u77f3 \\u5bb6\\u65e0\\u510b\\u77f3 \\u5bb6\\u65e0\\u6597\\u50a8 \\u5609\\u8a00\\u5584\\u884c \\u5609\\u8a00\\u61ff\\u884c \\u5939\\u811a\\u62d6\\u978b \\u7532\\u51a0\\u5929\\u4e0b \\u9a7e\\u8f7b\\u5c31\\u719f \\u67b6\\u80a9\\u51fb\\u6bc2 \\u5c16\\u5634\\u8584\\u820c \\u5978\\u6deb\\u63b3\\u63a0 \\u95f4\\u4e0d\\u5bb9\\u53d1 \\u95f4\\u4e0d\\u5bb9\\u606f \\u95f4\\u89c1\\u5c42\\u51fa \\u95f4\\u63a5\\u63a8\\u7406 \\u80a9\\u6469\\u6bc2\\u63a5 \\u517c\\u5305\\u5e76\\u755c \\u517c\\u846d\\u79cb\\u6c34 \\u517c\\u6536\\u5e76\\u755c \\u4fed\\u4e0d\\u4e2d\\u793c \\u526a\\u53d1\\u88ab\\u8910 \\u526a\\u53d1\\u675c\\u95e8 \\u7b80\\u622a\\u4e86\\u5f53 \\u7b80\\u843d\\u72d0\\u72f8 \\u7b80\\u660e\\u627c\\u8981 \\u7b80\\u5207\\u4e86\\u5f53 \\u7b80\\u4e1d\\u6570\\u7c73 \\u89c1\\u5f39\\u6c42\\u9e57 \\u89c1\\u5f39\\u6c42\\u9e2e \\u89c1\\u7f1d\\u63d2\\u9488 \\u89c1\\u7f1d\\u5c31\\u94bb \\u89c1\\u673a\\u800c\\u884c \\u89c1\\u5375\\u6c42\\u9e21 \\u89c1\\u6eba\\u4e0d\\u6551 \\u89c1\\u5f03\\u4e8e\\u4eba \\u89c1\\u65f6\\u77e5\\u51e0 \\u89c1\\u6b7b\\u4e0d\\u6551 \\u89c1\\u7d20\\u62b1\\u6734 \\u5251\\u6001\\u7bab\\u5fc3 \\u6e10\\u4e0d\\u53ef\\u957f \\u8c0f\\u4e89\\u5982\\u6d41 \\u6c5f\\u6c49\\u671d\\u5b97 \\u6c5f\\u6cb3\\u884c\\u5730 \\u6c5f\\u6d41\\u65e5\\u4e0b \\u5c06\\u672c\\u6c42\\u8d22 \\u5c06\\u672c\\u6c42\\u5229 \\u5c06\\u4f2f\\u4e4b\\u547c \\u5c06\\u4f2f\\u4e4b\\u52a9 \\u5c06\\u9519\\u5c31\\u9519 \\u5c06\\u593a\\u56fa\\u4e0e \\u5c06\\u529f\\u6298\\u7f6a \\u5c06\\u673a\\u5c31\\u673a \\u5c06\\u673a\\u5c31\\u8ba1 \\u5c06\\u8ba1\\u5c31\\u8ba1 \\u5c06\\u95e8\\u6709\\u5c06 \\u5c06\\u53d6\\u56fa\\u4e88 \\u5c06\\u5929\\u5c31\\u5730 \\u5c06\\u76f8\\u4e4b\\u5668 \\u5c06\\u9047\\u826f\\u624d \\u5c06\\u9047\\u826f\\u6750 \\u6d46\\u9152\\u970d\\u8089 \\u6d46\\u9152\\u85ff\\u8089 \\u8bb2\\u4fe1\\u4fee\\u7766 \\u964d\\u672c\\u6d41\\u672b \\u964d\\u683c\\u4ee5\\u6c42 \\u964d\\u5996\\u6349\\u602a \\u6d47\\u98ce\\u8584\\u4fd7 \\u9a84\\u4f88\\u6deb\\u8650 \\u9a84\\u5962\\u6deb\\u6cc6 \\u9a84\\u6cf0\\u6deb\\u6cc6 \\u6912\\u711a\\u6842\\u6298 \\u7126\\u71ac\\u6295\\u77f3 \\u7126\\u5507\\u5e72\\u820c \\u7126\\u91d1\\u6d41\\u77f3 \\u56bc\\u7a7f\\u9f88\\u8840 \\u89d2\\u7acb\\u6770\\u51fa \\u6322\\u6282\\u8fc7\\u6b63 \\u77eb\\u77eb\\u4e0d\\u7fa4 \\u77eb\\u60c5\\u9970\\u884c \\u77eb\\u8a00\\u4f2a\\u884c \\u768e\\u9633\\u4f3c\\u706b \\u811a\\u5fc3\\u671d\\u5929 \\u8f83\\u7626\\u91cf\\u80a5 \\u6559\\u7331\\u5347\\u6728 \\u6559\\u4e66\\u80b2\\u4eba \\u6559\\u5b66\\u76f8\\u957f \\u6559\\u4e00\\u8bc6\\u767e \\u9636\\u8dc3\\u54cd\\u5e94 \\u8282\\u9aa8\\u773c\\u513f \\u8bd8\\u8bce\\u8071\\u7259 \\u8bd8\\u5c48\\u8071\\u7259 \\u8bd8\\u66f2\\u8071\\u7259 \\u6d01\\u8eab\\u7d2f\\u884c \\u6d01\\u8eab\\u81ea\\u597d \\u7ed3\\u7ed3\\u5df4\\u5df4 \\u6840\\u9a9c\\u4e0d\\u606d \\u6840\\u9a9c\\u4e0d\\u9a6f \\u6840\\u9a9c\\u96be\\u9a6f \\u6840\\u8d2a\\u9a9c\\u8bc8 \\u622a\\u956b\\u7559\\u97ad \\u622a\\u65ad\\u4f17\\u6d41 \\u622a\\u53d1\\u7559\\u5bbe \\u622a\\u94c1\\u65a9\\u9489 \\u89e3\\u9664\\u5408\\u540c \\u89e3\\u53d1\\u4f6f\\u72c2 \\u89e3\\u7532\\u4f11\\u5175 \\u89e3\\u7532\\u4f11\\u58eb \\u89e3\\u6c11\\u5012\\u60ac \\u89e3\\u8863\\u78c5\\u7934 \\u89e3\\u8863\\u76d8\\u78c5 \\u89e3\\u8863\\u69c3\\u78c5 \\u89e3\\u8863\\u8863\\u4eba \\u6212\\u5962\\u5b81\\u4fed \\u501f\\u516c\\u884c\\u79c1 \\u501f\\u9152\\u6d47\\u6101 \\u501f\\u4e66\\u7559\\u771f \\u501f\\u6c34\\u884c\\u821f \\u91d1\\u9497\\u6362\\u9152 \\u91d1\\u8749\\u8131\\u58f3 \\u91d1\\u7fc5\\u64d8\\u6d77 \\u91d1\\u8c82\\u6362\\u9152 \\u91d1\\u8c82\\u53d6\\u9152 \\u91d1\\u8c82\\u8d33\\u9152 \\u91d1\\u98ce\\u7389\\u9732 \\u91d1\\u8c37\\u9152\\u6570 \\u91d1\\u9f9f\\u6362\\u9152 \\u91d1\\u5c3d\\u88d8\\u655d \\u91d1\\u5c3d\\u88d8\\u5f0a \\u91d1\\u95e8\\u7ee3\\u6237 \\u91d1\\u74f6\\u843d\\u4e95 \\u91d1\\u77f3\\u4e3a\\u5f00 \\u91d1\\u543e\\u4e0d\\u7981 \\u91d1\\u76f8\\u7389\\u8d28 \\u91d1\\u9488\\u89c1\\u8840 \\u6d25\\u5173\\u9669\\u585e \\u77dc\\u529f\\u8d1f\\u6c14 \\u77dc\\u7ea0\\u6536\\u7f2d \\u77dc\\u540d\\u5ac9\\u80fd \\u77dc\\u8d2b\\u6551\\u5384 \\u895f\\u88fe\\u9a6c\\u725b \\u7d27\\u8ffd\\u4e0d\\u820d \\u9526\\u7bc7\\u7ee3\\u5e19 \\u9526\\u5929\\u7ee3\\u5730 \\u9526\\u5fc3\\u7ee3\\u80a0 \\u9526\\u5fc3\\u7ee3\\u8179 \\u9526\\u5fc3\\u7ee3\\u53e3 \\u9526\\u80f8\\u7ee3\\u53e3 \\u9526\\u8863\\u884c\\u663c \\u8c28\\u884c\\u4fed\\u7528 \\u8c28\\u8a00\\u614e\\u884c \\u5c3d\\u591a\\u5c3d\\u5c11 \\u5c3d\\u4ed8\\u4e1c\\u6d41 \\u8fdb\\u5bf8\\u9000\\u5c3a \\u8fdb\\u5fb7\\u4fee\\u4e1a \\u8fdb\\u5fb7\\u8129\\u4e1a \\u8fdb\\u9510\\u9000\\u901f \\u8fdb\\u9000\\u4e24\\u96be \\u8fdb\\u9000\\u60df\\u548e \\u8fdb\\u9000\\u4e2d\\u5ea6 \\u7981\\u66b4\\u6b63\\u4e71 \\u7981\\u66b4\\u8bdb\\u4e71 \\u7981\\u9f0e\\u4e00\\u8114 \\u7981\\u653b\\u5bdd\\u5175 \\u7981\\u60c5\\u5272\\u6b32 \\u7981\\u820d\\u5f00\\u585e \\u7981\\u7f51\\u758f\\u9614 \\u7981\\u6b62\\u4ee4\\u884c \\u7981\\u4e2d\\u9887\\u7267 \\u5664\\u53e3\\u5377\\u820c \\u7ecf\\u4e45\\u4e0d\\u8870 \\u7ecf\\u7eb6\\u6d4e\\u4e16 \\u7ecf\\u660e\\u884c\\u4fee \\u7ecf\\u4e18\\u5bfb\\u58d1 \\u8346\\u68d8\\u585e\\u9014 \\u8346\\u68d8\\u8f7d\\u9014 \\u65cc\\u65d7\\u5377\\u8212 \\u60ca\\u9b42\\u843d\\u9b44 \\u60ca\\u9b42\\u4e27\\u9b44 \\u60ca\\u5fc3\\u4e27\\u9b44 \\u5162\\u5162\\u5e72\\u5e72 \\u7cbe\\u91c7\\u79c0\\u53d1 \\u7cbe\\u4e49\\u5165\\u795e \\u7cbe\\u76ca\\u6c42\\u7cbe \\u9cb8\\u5438\\u725b\\u996e \\u4e95\\u81fc\\u4eb2\\u64cd \\u4e95\\u4e2d\\u6c42\\u706b \\u5f84\\u884c\\u76f4\\u9042 \\u5f84\\u60c5\\u76f4\\u884c \\u9759\\u8a00\\u4ee4\\u8272 \\u9759\\u5f71\\u6c89\\u74a7 \\u7ea0\\u7f20\\u4e0d\\u6e05 \\u7ea0\\u5408\\u4e4b\\u4f17 \\u9e20\\u8f66\\u7af9\\u9a6c \\u9e20\\u593a\\u9e4a\\u5de2 \\u9e20\\u5de5\\u5e80\\u6750 \\u9e20\\u96c6\\u51e4\\u6c60 \\u9e20\\u50ed\\u9e4a\\u5de2 \\u9e20\\u5c45\\u9e4a\\u5de2 \\u9e20\\u6469\\u7f57\\u4ec0 \\u9e20\\u5f62\\u9e44\\u9762 \\u9e20\\u5360\\u9e4a\\u5de2 \\u4e5d\\u53d8\\u5341\\u5316 \\u4e5d\\u9f0e\\u5927\\u5415 \\u4e5d\\u9f0e\\u4e00\\u4e1d \\u4e5d\\u5793\\u516b\\u57cf \\u4e5d\\u6545\\u5341\\u4eb2 \\u4e5d\\u5173\\u864e\\u8c79 \\u4e5d\\u884c\\u516b\\u4e1a \\u4e5d\\u5408\\u4e00\\u5321 \\u4e5d\\u56de\\u80a0\\u65ad \\u4e5d\\u960d\\u864e\\u8c79 \\u4e5d\\u95f4\\u671d\\u6bbf \\u4e5d\\u95f4\\u5927\\u6bbf \\u4e5d\\u6c5f\\u516b\\u6cb3 \\u4e5d\\u4e5d\\u5f52\\u4e00 \\u4e5d\\u4e5d\\u5f52\\u539f \\u4e5d\\u70c8\\u4e09\\u8d1e \\u4e5d\\u6d41\\u767e\\u5bb6 \\u4e5d\\u6d41\\u5bbe\\u5ba2 \\u4e5d\\u6d41\\u4eba\\u7269 \\u4e5d\\u6d41\\u4e09\\u6559 \\u4e5d\\u6d41\\u5341\\u5bb6 \\u4e5d\\u5e74\\u4e4b\\u50a8 \\u4e5d\\u5e74\\u4e4b\\u84c4 \\u4e5d\\u725b\\u4e00\\u6beb \\u4e5d\\u725b\\u4e00\\u6bdb \\u4e5d\\u8862\\u4e09\\u5e02 \\u4e5d\\u66f2\\u56de\\u80a0 \\u4e5d\\u6cc9\\u4e4b\\u4e0b \\u4e5d\\u4ede\\u4e00\\u7bd1 \\u4e5d\\u5112\\u5341\\u4e10 \\u4e5d\\u4e09\\u5b66\\u793e \\u4e5d\\u4e16\\u4e4b\\u4ec7 \\u4e5d\\u6b7b\\u4e0d\\u6094 \\u4e5d\\u6b7b\\u672a\\u6094 \\u4e5d\\u6b7b\\u4e00\\u751f \\u4e5d\\u5929\\u4e5d\\u5730 \\u4e5d\\u5929\\u63fd\\u6708 \\u4e5d\\u4e94\\u4e4b\\u5c0a \\u4e5d\\u9704\\u4e91\\u5916 \\u4e5d\\u539f\\u53ef\\u4f5c \\u4e5d\\u84b8\\u4e09\\u71af \\u4e5d\\u6d32\\u56db\\u6d77 \\u4e5d\\u8f6c\\u529f\\u6210 \\u4e5d\\u5b97\\u4e03\\u7956 \\u4e45\\u5b89\\u957f\\u6cbb \\u4e45\\u75c5\\u6210\\u533b \\u4e45\\u800c\\u4e45\\u4e4b \\u4e45\\u8d1f\\u76db\\u540d \\u4e45\\u60ef\\u7262\\u6210 \\u4e45\\u60ef\\u8001\\u8bda \\u4e45\\u5f52\\u9053\\u5c71 \\u4e45\\u6000\\u6155\\u853a \\u4e45\\u5047\\u4e0d\\u5f52 \\u4e45\\u4e45\\u4e0d\\u5fd8 \\u4e45\\u5c45\\u4eba\\u4e0b \\u4e45\\u5386\\u98ce\\u5c18 \\u4e45\\u675f\\u6e7f\\u85aa \\u4e45\\u95fb\\u5927\\u540d \\u4e45\\u60ac\\u4e0d\\u51b3 \\u4e45\\u8981\\u4e0d\\u5fd8 \\u7078\\u827e\\u5206\\u75db \\u9152\\u75c5\\u82b1\\u6101 \\u9152\\u6c60\\u8089\\u6797 \\u9152\\u5730\\u82b1\\u5929 \\u9152\\u9163\\u8033\\u70ed \\u9152\\u9163\\u8033\\u719f \\u9152\\u540e\\u8336\\u4f59 \\u9152\\u540e\\u5931\\u8a00 \\u9152\\u540e\\u65e0\\u5fb7 \\u9152\\u864e\\u8bd7\\u9f99 \\u9152\\u7cbe\\u4e2d\\u6bd2 \\u9152\\u9611\\u4eba\\u6563 \\u9152\\u9f99\\u8bd7\\u864e \\u9152\\u7eff\\u706f\\u7ea2 \\u9152\\u56ca\\u996d\\u5305 \\u9152\\u56ca\\u996d\\u888b \\u9152\\u8089\\u670b\\u53cb \\u9152\\u8089\\u5144\\u5f1f \\u9152\\u5165\\u820c\\u51fa \\u9152\\u8272\\u4e4b\\u5f92 \\u9152\\u98df\\u5f81\\u9010 \\u9152\\u9178\\u4e0d\\u552e \\u9152\\u74ee\\u996d\\u56ca \\u9152\\u6709\\u522b\\u80a0 \\u9152\\u4f59\\u8336\\u540e \\u9152\\u8db3\\u996d\\u9971 \\u9152\\u9189\\u996d\\u9971 \\u65e7\\u75c5\\u96be\\u533b \\u65e7\\u4ec7\\u5bbf\\u6028 \\u65e7\\u6101\\u65b0\\u6068 \\u65e7\\u5730\\u91cd\\u6e38 \\u65e7\\u6068\\u65b0\\u4ec7 \\u65e7\\u6068\\u65b0\\u6101 \\u65e7\\u8bdd\\u91cd\\u63d0 \\u65e7\\u74f6\\u65b0\\u9152 \\u65e7\\u6001\\u590d\\u840c \\u65e7\\u8c03\\u91cd\\u5f39 \\u65e7\\u71d5\\u5f52\\u5de2 \\u65e7\\u96e8\\u4eca\\u96e8 \\u81fc\\u6775\\u4e4b\\u4ea4 \\u81fc\\u5934\\u6df1\\u76ee \\u81fc\\u7076\\u751f\\u86d9 \\u548e\\u7531\\u81ea\\u53d6 \\u548e\\u6709\\u5e94\\u5f97 \\u759a\\u5fc3\\u75be\\u9996 \\u6551\\u711a\\u6295\\u85aa \\u6551\\u711a\\u76ca\\u85aa \\u6551\\u711a\\u62ef\\u6eba \\u6551\\u8fc7\\u8865\\u9619 \\u6551\\u8fc7\\u4e0d\\u7ed9 \\u6551\\u8fc7\\u4e0d\\u8d61 \\u6551\\u8fc7\\u4e0d\\u6687 \\u6551\\u706b\\u6295\\u85aa \\u6551\\u706b\\u626c\\u6cb8 \\u6551\\u706b\\u62ef\\u6eba \\u6551\\u9965\\u62ef\\u6eba \\u6551\\u6025\\u6276\\u4f24 \\u6551\\u7ecf\\u5f15\\u8db3 \\u6551\\u82e6\\u6551\\u96be \\u6551\\u82e6\\u5f2d\\u707e \\u6551\\u56f0\\u6276\\u5371 \\u6551\\u71ce\\u52a9\\u85aa \\u6551\\u6c11\\u6c34\\u706b \\u6551\\u96be\\u89e3\\u5371 \\u6551\\u504f\\u8865\\u5f0a \\u6551\\u9ee5\\u533b\\u5293 \\u6551\\u65f6\\u5389\\u4fd7 \\u6551\\u4e16\\u6d4e\\u6c11 \\u6551\\u6b7b\\u6276\\u4f24 \\u6551\\u6b7b\\u6276\\u5371 \\u6551\\u4ea1\\u56fe\\u5b58 \\u6551\\u707e\\u6064\\u60a3 \\u5c31\\u68cd\\u6253\\u817f \\u5c31\\u4e8b\\u8bba\\u4e8b \\u5c31\\u6c64\\u4e0b\\u9762 \\u5c31\\u865a\\u907f\\u5b9e \\u5c31\\u6b63\\u6709\\u9053 \\u62d8\\u795e\\u9063\\u5c06 \\u5c45\\u4e0d\\u91cd\\u5e2d \\u5c45\\u4e0d\\u91cd\\u8335 \\u5c45\\u91cc\\u592b\\u4eba \\u5c45\\u65e0\\u6c42\\u5b89 \\u5c45\\u4e0b\\u8baa\\u4e0a \\u9a79\\u9f7f\\u672a\\u843d \\u9a79\\u7559\\u7a7a\\u8c37 \\u88fe\\u9a6c\\u895f\\u725b \\u5c40\\u5730\\u94a5\\u5929 \\u77e9\\u6b65\\u65b9\\u884c \\u4e3e\\u5341\\u77e5\\u4e5d \\u5177\\u4f53\\u5730\\u8bf4 \\u8ddd\\u8dc3\\u4e09\\u767e \\u6350\\u8eaf\\u6b89\\u56fd \\u5a1f\\u597d\\u9759\\u79c0 \\u5377\\u7532\\u500d\\u9053 \\u5377\\u65d7\\u606f\\u9f13 \\u5377\\u820c\\u5143\\u97f3 \\u5377\\u571f\\u91cd\\u6765 \\u5377\\u5e2d\\u800c\\u846c \\u72f7\\u4ecb\\u4e4b\\u58eb \\u6485\\u5751\\u6485\\u5811 \\u51b3\\u65ad\\u5982\\u6d41 \\u7edd\\u5904\\u9022\\u751f \\u7edd\\u5927\\u90e8\\u5206 \\u6398\\u4e95\\u53ca\\u6cc9 \\u6398\\u5ba4\\u6c42\\u9f20 \\u5014\\u5934\\u5014\\u8111 \\u5014\\u5934\\u5f3a\\u8111 \\u519b\\u4e0d\\u8840\\u5203 \\u519b\\u4ee4\\u5982\\u5c71 \\u541b\\u5b50\\u597d\\u9011 \\u94a7\\u5929\\u5e7f\\u4e50 \\u9e87\\u81f3\\u6c93\\u6765 \\u5580\\u5587\\u6c81\\u65d7 \\u5361\\u62c9\\u5b63\\u5947 \\u5f00\\u534e\\u7ed3\\u679c \\u5f00\\u7586\\u8f9f\\u571f \\u5f00\\u5929\\u8f9f\\u5730 \\u5f00\\u6e90\\u8282\\u6d41 \\u574e\\u6b62\\u6d41\\u884c \\u57f3\\u4e95\\u4e4b\\u86d9 \\u770b\\u4eba\\u884c\\u4e8b \\u7ce0\\u8c46\\u4e0d\\u8d61 \\u625b\\u9f0e\\u62d4\\u5c71 \\u54b3\\u58f0\\u53f9\\u6c14 \\u514b\\u902e\\u514b\\u5bb9 \\u514b\\u5df1\\u614e\\u884c \\u514b\\u4ed1\\u7279\\u7f57 \\u514b\\u7ecd\\u7b95\\u88d8 \\u514b\\u4ec0\\u514b\\u817e \\u514b\\u4e1d\\u94b3\\u5b50 \\u514b\\u55e3\\u826f\\u88d8 \\u523b\\u8584\\u5be1\\u6069 \\u523b\\u8584\\u5be1\\u601d \\u523b\\u610f\\u6c42\\u5de5 \\u523b\\u821f\\u6c42\\u5251 \\u8bfe\\u5634\\u64a9\\u7259 \\u6e98\\u5148\\u671d\\u9732 \\u94ff\\u956a\\u987f\\u632b \\u7a7a\\u8179\\u4fbf\\u4fbf \\u6050\\u6016\\u5206\\u5b50 \\u62a0\\u5fc3\\u6316\\u8840 \\u53e3\\u7891\\u8f7d\\u9053 \\u53e3\\u4e0d\\u5e94\\u5fc3 \\u53e3\\u51fa\\u5927\\u8a00 \\u53e3\\u8179\\u4e4b\\u7d2f \\u53e3\\u5e72\\u820c\\u7126 \\u53e3\\u5feb\\u5fc3\\u76f4 \\u53e3\\u8f7b\\u820c\\u8584 \\u53e3\\u5c1a\\u4e73\\u81ed \\u53e3\\u8840\\u672a\\u5e72 \\u53e9\\u5fc3\\u6ce3\\u8840 \\u6263\\u696b\\u4e2d\\u6d41 \\u6263\\u76d8\\u626a\\u94a5 \\u5233\\u7cbe\\u5455\\u8840 \\u67af\\u6728\\u673d\\u682a \\u67af\\u6811\\u751f\\u534e \\u67af\\u673d\\u4e4b\\u4f59 \\u67af\\u682a\\u673d\\u6728 \\u54ed\\u4e27\\u7740\\u8138 \\u82e6\\u96be\\u6df1\\u91cd \\u5938\\u591a\\u6597\\u9761 \\u59f1\\u5bb9\\u4fee\\u6001 \\u5feb\\u6b65\\u6d41\\u661f \\u5feb\\u5fc3\\u9042\\u610f \\u5bbd\\u6d2a\\u5927\\u91cf \\u5bbd\\u6d2a\\u6d77\\u91cf \\u5321\\u6551\\u5f25\\u7f1d \\u5321\\u8c2c\\u6b63\\u4fd7 \\u5321\\u5176\\u4e0d\\u902e \\u65f7\\u65e5\\u6301\\u4e45 \\u65f7\\u65e5\\u7ecf\\u4e45 \\u65f7\\u65e5\\u7d2f\\u65f6 \\u65f7\\u65e5\\u79bb\\u4e45 \\u65f7\\u65e5\\u5f25\\u4e45 \\u65f7\\u65e5\\u5f15\\u4e45 \\u65f7\\u65e5\\u957f\\u4e45 \\u65f7\\u82e5\\u53d1\\u8499 \\u4e8f\\u5fc3\\u77ed\\u884c \\u7aa5\\u95f4\\u4f3a\\u9699 \\u63c6\\u7406\\u5ea6\\u60c5 \\u63c6\\u7406\\u5ea6\\u52bf \\u63c6\\u60c5\\u5ea6\\u7406 \\u9b41\\u68a7\\u5947\\u4f1f \\u7428\\u7389\\u79cb\\u971c \\u56f0\\u517d\\u72b9\\u6597 \\u56f0\\u77e5\\u52c9\\u884c \\u62c9\\u67af\\u6298\\u673d \\u62c9\\u673d\\u6467\\u67af \\u6765\\u5904\\u4e0d\\u6613 \\u5170\\u6467\\u7389\\u6298 \\u9611\\u98ce\\u957f\\u96e8 \\u72fc\\u9910\\u864e\\u54bd \\u72fc\\u53f7\\u9b3c\\u54ed \\u72fc\\u8270\\u72c8\\u8e76 \\u72fc\\u98e7\\u864e\\u54bd \\u72fc\\u541e\\u864e\\u54bd \\u72fc\\u5fc3\\u72d7\\u884c \\u6d6a\\u9152\\u95f2\\u8336 \\u6d6a\\u5361\\u5b50\\u53bf \\u52b3\\u52a8\\u5408\\u540c \\u52b3\\u52a1\\u5408\\u540c \\u7262\\u4ec0\\u53e4\\u5b50 \\u8001\\u516b\\u8f88\\u5b50 \\u8001\\u8001\\u5c11\\u5c11 \\u8001\\u725b\\u7834\\u8f66 \\u8001\\u725b\\u8210\\u728a \\u8001\\u6c14\\u6a2a\\u79cb \\u8001\\u5c11\\u65e0\\u6b3a \\u8001\\u5e08\\u5bbf\\u5112 \\u8001\\u8c03\\u91cd\\u8c08 \\u8001\\u7f9e\\u6210\\u6012 \\u8001\\u7740\\u8138\\u76ae \\u5520\\u5520\\u53e8\\u53e8 \\u4e50\\u884c\\u5fe7\\u8fdd \\u4e50\\u5584\\u597d\\u65bd \\u4e50\\u65b0\\u538c\\u65e7 \\u4e86\\u4e0d\\u957f\\u8fdb \\u4e86\\u7136\\u65e0\\u95fb \\u4e86\\u8eab\\u8131\\u547d \\u4e86\\u65e0\\u60e7\\u8272 \\u96f7\\u5389\\u98ce\\u884c \\u96f7\\u4ee4\\u98ce\\u884c \\u50ab\\u5982\\u4e27\\u72d7 \\u78ca\\u78ca\\u843d\\u843d \\u78ca\\u843d\\u8c6a\\u6a2a \\u78ca\\u843d\\u8f76\\u8361 \\u6cea\\u6d41\\u6ee1\\u9762 \\u7d2f\\u724d\\u8fde\\u7bc7 \\u7d2f\\u89c1\\u4e0d\\u9c9c \\u7d2f\\u6559\\u4e0d\\u6539 \\u7d2f\\u5757\\u79ef\\u82cf \\u7d2f\\u7d2f\\u5982\\u73e0 \\u7d2f\\u5375\\u4e4b\\u5371 \\u7d2f\\u82cf\\u79ef\\u5757 \\u7d2f\\u571f\\u805a\\u6c99 \\u7d2f\\u571f\\u81f3\\u5c71 \\u7d2f\\u74e6\\u7ed3\\u7ef3 \\u7d2f\\u5c4b\\u91cd\\u67b6 \\u7d2f\\u8db3\\u6210\\u6b65 \\u695e\\u7709\\u6a2a\\u773c \\u695e\\u624b\\u695e\\u811a \\u51b7\\u8840\\u52a8\\u7269 \\u79bb\\u672c\\u8da3\\u672b \\u79bb\\u5c71\\u8c03\\u864e \\u7281\\u725b\\u9a8d\\u89d2 \\u7281\\u725b\\u4e4b\\u5b50 \\u7281\\u5ead\\u626b\\u95fe \\u9ece\\u4e18\\u4e08\\u4eba \\u793c\\u5d29\\u4e50\\u574f \\u793c\\u574f\\u4e50\\u5d29 \\u674e\\u5e7f\\u4e0d\\u4faf \\u91cc\\u5e94\\u5916\\u5408 \\u54e9\\u54e9\\u5570\\u5570 \\u7406\\u6027\\u8ba4\\u8bc6 \\u91b4\\u9152\\u4e0d\\u8bbe \\u529b\\u80fd\\u625b\\u9f0e \\u529b\\u5b66\\u7b03\\u884c \\u5386\\u7cbe\\u66f4\\u59cb \\u5386\\u4e45\\u5f25\\u575a \\u5386\\u5386\\u843d\\u843d \\u5386\\u65e5\\u65f7\\u4e45 \\u7acb\\u515a\\u4e3a\\u516c \\u7acb\\u8eab\\u884c\\u5df1 \\u52b1\\u7cbe\\u6c42\\u6cbb \\u5229\\u9f7f\\u4f36\\u7259 \\u5229\\u4ee4\\u5fd7\\u60db \\u5229\\u4ee4\\u667a\\u660f \\u5229\\u6790\\u79cb\\u6beb \\u6ca5\\u8840\\u53e9\\u5fc3 \\u6ca5\\u8840\\u62ab\\u809d \\u6ca5\\u8840\\u62ab\\u5fc3 \\u4f8b\\u76f4\\u7981\\u7b80 \\u8fde\\u7f16\\u7d2f\\u724d \\u8fde\\u66f4\\u5f7b\\u591c \\u8fde\\u66f4\\u6653\\u591c \\u8fde\\u66f4\\u661f\\u591c \\u8fde\\u9636\\u7d2f\\u4efb \\u8fde\\u7bc7\\u7d6b\\u724d \\u8fde\\u7bc7\\u7d6b\\u5e45 \\u8fde\\u7bc7\\u7d2f\\u518c \\u8fde\\u7bc7\\u7d2f\\u724d \\u8fde\\u7bc7\\u7d2f\\u5e45 \\u8fde\\u7bc7\\u7d2f\\u5e27 \\u8fde\\u7bc7\\u7d2f\\u5e19 \\u8fde\\u9621\\u7d2f\\u964c \\u8fde\\u9501\\u53cd\\u5e94 \\u8fde\\u7ae0\\u7d2f\\u724d \\u8fde\\u5e19\\u7d2f\\u724d \\u8fde\\u4e2d\\u4e09\\u5143 \\u601c\\u65b0\\u5f03\\u65e7 \\u601c\\u65b0\\u538c\\u65e7 \\u5e18\\u7aa5\\u58c1\\u542c \\u8054\\u7bc7\\u7d2f\\u724d \\u655b\\u9aa8\\u5439\\u9b42 \\u655b\\u5bb9\\u5c4f\\u6c14 \\u655b\\u8272\\u5c4f\\u6c14 \\u655b\\u58f0\\u5c4f\\u6c14 \\u655b\\u6028\\u6c42\\u5a9a \\u604b\\u9152\\u8ff7\\u82b1 \\u604b\\u9152\\u8d2a\\u82b1 \\u604b\\u604b\\u4e0d\\u820d \\u604b\\u604b\\u96be\\u820d \\u604b\\u65b0\\u5fd8\\u65e7 \\u94fe\\u5f0f\\u53cd\\u5e94 \\u4e24\\u864e\\u76f8\\u6597 \\u4e24\\u9f20\\u6597\\u7a74 \\u4e24\\u8896\\u6e05\\u98ce \\u91cf\\u624d\\u800c\\u4e3a \\u91cf\\u624d\\u5f55\\u7528 \\u91cf\\u624d\\u5668\\u4f7f \\u91cf\\u6750\\u5f55\\u7528 \\u91cf\\u5df1\\u5ba1\\u5206 \\u91cf\\u91d1\\u4e70\\u8d4b \\u91cf\\u529b\\u5ea6\\u5fb7 \\u91cf\\u529b\\u800c\\u884c \\u91cf\\u529b\\u800c\\u4e3a \\u91cf\\u80fd\\u6388\\u5b98 \\u91cf\\u5982\\u6c5f\\u6d77 \\u91cf\\u5165\\u8ba1\\u51fa \\u91cf\\u5165\\u4e3a\\u51fa \\u91cf\\u6798\\u5236\\u51ff \\u91cf\\u65f6\\u5ea6\\u529b \\u91cf\\u4f53\\u88c1\\u8863 \\u91cf\\u5c0f\\u529b\\u5fae \\u91cf\\u51ff\\u6b63\\u6798 \\u91cf\\u5b50\\u573a\\u8bba \\u8e09\\u8e09\\u8dc4\\u8dc4 \\u804a\\u4ee5\\u585e\\u8d23 \\u64a9\\u8702\\u5403\\u87ab \\u64a9\\u8702\\u5254\\u874e \\u64a9\\u706b\\u52a0\\u6cb9 \\u64a9\\u4e91\\u62e8\\u96e8 \\u71ce\\u53d1\\u6467\\u67af \\u71ce\\u5982\\u89c2\\u706b \\u6599\\u654c\\u5982\\u795e \\u52a3\\u8ff9\\u662d\\u7740 \\u57d2\\u624d\\u89d2\\u5999 \\u88c2\\u51a0\\u6bc1\\u5195 \\u88c2\\u88f3\\u8863\\u75ae \\u6797\\u836b\\u5927\\u9053 \\u4e34\\u654c\\u6613\\u5c06 \\u4e34\\u96be\\u4e0d\\u60e7 \\u4e34\\u96be\\u4e0d\\u6050 \\u4e34\\u96be\\u82df\\u514d \\u4e34\\u96be\\u94f8\\u5175 \\u4e34\\u53bb\\u79cb\\u6ce2 \\u4e34\\u6df1\\u5c65\\u8584 \\u4e34\\u6f7c\\u6597\\u5b9d \\u9cde\\u96c6\\u4ef0\\u6d41 \\u9e9f\\u89d2\\u51e4\\u89dc \\u51db\\u82e5\\u79cb\\u971c \\u51cc\\u4e0a\\u8650\\u4e0b \\u96f6\\u96f6\\u6563\\u6563 \\u9886\\u5bfc\\u73ed\\u5b50 \\u53e6\\u8c0b\\u9ad8\\u5c31 \\u53e6\\u8f9f\\u8e4a\\u5f84 \\u4ee4\\u4e0d\\u865a\\u884c \\u4ee4\\u884c\\u7981\\u6b62 \\u4ee4\\u884c\\u5982\\u6d41 \\u4ee4\\u4eba\\u83ab\\u6d4b \\u4ee4\\u4eba\\u6367\\u8179 \\u6e9c\\u987b\\u62cd\\u9a6c \\u6e9c\\u4e4b\\u5927\\u5409 \\u6e9c\\u4e4b\\u4e4e\\u4e5f \\u5218\\u90ce\\u524d\\u5ea6 \\u5218\\u6bc5\\u7b54\\u8bcf \\u7559\\u8fde\\u4e0d\\u820d \\u7559\\u8fde\\u5fd8\\u8fd4 \\u7559\\u604b\\u4e0d\\u820d \\u7559\\u5c3c\\u6c6a\\u5c9b \\u7559\\u6709\\u4f59\\u5730 \\u6d41\\u98ce\\u56de\\u96ea \\u6d41\\u98ce\\u9057\\u8ff9 \\u6d41\\u98ce\\u4f59\\u4fd7 \\u6d41\\u98ce\\u4f59\\u97f5 \\u6d41\\u5149\\u6613\\u901d \\u6d41\\u6c57\\u6d43\\u80cc \\u6d41\\u884c\\u574e\\u6b62 \\u6d41\\u91d1\\u94c4\\u77f3 \\u6d41\\u53e3\\u5e38\\u8c08 \\u6d41\\u810d\\u4eba\\u53e3 \\u6d41\\u79bb\\u64ad\\u8fc1 \\u6d41\\u79bb\\u64ad\\u8d8a \\u6d41\\u79bb\\u98a0\\u987f \\u6d41\\u79bb\\u98a0\\u7590 \\u6d41\\u79bb\\u7410\\u5c3e \\u6d41\\u91cc\\u6d41\\u6c14 \\u6d41\\u8fde\\u5fd8\\u53cd \\u6d41\\u8fde\\u5fd8\\u8fd4 \\u6d41\\u6eba\\u5fd8\\u53cd \\u6d41\\u5e74\\u4f3c\\u6c34 \\u6d41\\u6c34\\u671d\\u5b97 \\u6d41\\u6c34\\u884c\\u4e91 \\u6d41\\u6c34\\u843d\\u82b1 \\u6d41\\u6c34\\u6e38\\u9f99 \\u6d41\\u5929\\u6f88\\u5730 \\u6d41\\u661f\\u63a3\\u7535 \\u6d41\\u661f\\u98de\\u7535 \\u6d41\\u661f\\u8d76\\u6708 \\u6d41\\u8840\\u6f02\\u5364 \\u6d41\\u8840\\u5343\\u91cc \\u6d41\\u8a00\\u98de\\u6587 \\u6d41\\u8a00\\u98de\\u8bed \\u6d41\\u8a00\\u98ce\\u8bed \\u6d41\\u8a00\\u6df7\\u8bdd \\u6d41\\u79fb\\u5931\\u6240 \\u67f3\\u6697\\u82b1\\u660e \\u67f3\\u6697\\u82b1\\u906e \\u67f3\\u5ba0\\u82b1\\u8ff7 \\u67f3\\u4eb8\\u82b1\\u5a07 \\u67f3\\u4eb8\\u83ba\\u5a07 \\u67f3\\u6237\\u82b1\\u95e8 \\u67f3\\u660f\\u82b1\\u879f \\u67f3\\u5a07\\u82b1\\u5a9a \\u67f3\\u8857\\u82b1\\u5df7 \\u67f3\\u7eff\\u82b1\\u7ea2 \\u67f3\\u7eff\\u6843\\u7ea2 \\u67f3\\u7709\\u5012\\u7ad6 \\u67f3\\u7709\\u5254\\u7ad6 \\u67f3\\u7709\\u8e22\\u7ad6 \\u67f3\\u7709\\u661f\\u773c \\u67f3\\u95e8\\u7af9\\u5df7 \\u67f3\\u964c\\u82b1\\u4e1b \\u67f3\\u964c\\u82b1\\u8857 \\u67f3\\u964c\\u82b1\\u8862 \\u67f3\\u6696\\u82b1\\u6625 \\u67f3\\u6ce3\\u82b1\\u557c \\u67f3\\u8862\\u82b1\\u5e02 \\u67f3\\u5f31\\u82b1\\u5a07 \\u67f3\\u5723\\u82b1\\u795e \\u67f3\\u5e02\\u82b1\\u8857 \\u67f3\\u557c\\u82b1\\u6028 \\u67f3\\u4e0b\\u501f\\u9634 \\u67f3\\u5df7\\u82b1\\u8857 \\u67f3\\u7d6e\\u624d\\u9ad8 \\u67f3\\u70df\\u82b1\\u96fe \\u67f3\\u8170\\u82b1\\u6001 \\u67f3\\u8170\\u83b2\\u8138 \\u67f3\\u83ba\\u82b1\\u71d5 \\u67f3\\u8425\\u82b1\\u5e02 \\u67f3\\u8425\\u82b1\\u9635 \\u67f3\\u5f71\\u82b1\\u9634 \\u67f3\\u6298\\u82b1\\u6b8b \\u516d\\u81c2\\u4e09\\u5934 \\u516d\\u5c18\\u4e0d\\u67d3 \\u516d\\u5c3a\\u4e4b\\u5b64 \\u516d\\u51fa\\u7eb7\\u98de \\u516d\\u51fa\\u5947\\u8ba1 \\u516d\\u9053\\u8f6e\\u56de \\u516d\\u6839\\u6e05\\u51c0 \\u516d\\u6839\\u6e05\\u9759 \\u516d\\u5408\\u4e4b\\u5185 \\u516d\\u8857\\u4e09\\u964c \\u516d\\u8857\\u4e09\\u5e02 \\u516d\\u9a6c\\u4ef0\\u79e3 \\u516d\\u4eb2\\u4e0d\\u8ba4 \\u516d\\u4eb2\\u65e0\\u9760 \\u516d\\u8da3\\u8f6e\\u56de \\u516d\\u795e\\u4e0d\\u5b89 \\u516d\\u795e\\u65e0\\u4e3b \\u516d\\u97ec\\u4e09\\u7565 \\u516d\\u901a\\u56db\\u8fbe \\u516d\\u901a\\u56db\\u8f9f \\u516d\\u95ee\\u4e09\\u63a8 \\u516d\\u6708\\u98de\\u971c \\u9f99\\u884c\\u864e\\u53d8 \\u9f99\\u884c\\u864e\\u6b65 \\u9f99\\u4e3e\\u4e91\\u5c5e \\u9f99\\u697c\\u51e4\\u9619 \\u9f99\\u87e0\\u866c\\u7ed3 \\u9f99\\u751f\\u4e5d\\u79cd \\u9f99\\u751f\\u4e5d\\u5b50 \\u9f99\\u97ec\\u8c79\\u7565 \\u9f99\\u8840\\u51e4\\u9ad3 \\u9f99\\u8840\\u7384\\u9ec4 \\u9f99\\u541f\\u864e\\u5578 \\u9f99\\u6e38\\u66f2\\u6cbc \\u9f99\\u7ae0\\u79c0\\u9aa8 \\u9f99\\u4e89\\u864e\\u6597 \\u6402\\u5934\\u76d6\\u8138 \\u9542\\u51b0\\u96d5\\u673d \\u9542\\u91d1\\u94fa\\u7fe0 \\u9542\\u5fc3\\u5455\\u8840 \\u9c81\\u6bbf\\u7075\\u5149 \\u9c81\\u65a4\\u71d5\\u524a \\u9c81\\u96be\\u672a\\u5df2 \\u9646\\u76f8\\u6c89\\u79ef \\u9e7f\\u88d8\\u4e0d\\u5b8c \\u8def\\u67f3\\u5899\\u82b1 \\u9e6d\\u5e8f\\u9e33\\u884c \\u9e6d\\u5e8f\\u9e53\\u884c \\u9732\\u624d\\u626c\\u5df1 \\u9732\\u9910\\u98ce\\u5bbf \\u9732\\u949e\\u96ea\\u7e82 \\u9732\\u80c6\\u62ab\\u8bda \\u9732\\u80c6\\u62ab\\u809d \\u9732\\u7ea2\\u70df\\u7eff \\u9732\\u7ea2\\u70df\\u7d2b \\u9732\\u5df1\\u626c\\u624d \\u9732\\u5f80\\u971c\\u6765 \\u9732\\u5c3e\\u85cf\\u5934 \\u9732\\u5bbf\\u98ce\\u9910 \\u9732\\u5f71\\u85cf\\u5f62 \\u9732\\u7e82\\u96ea\\u949e \\u9e3e\\u51e4\\u548c\\u9e23 \\u9e3e\\u6b4c\\u51e4\\u5439 \\u5375\\u8986\\u9e1f\\u98de \\u5375\\u4e0e\\u77f3\\u6597 \\u4e71\\u7bad\\u6512\\u5fc3 \\u63a0\\u5730\\u653b\\u57ce \\u63a0\\u7f8e\\u5e02\\u6069 \\u63a0\\u4eba\\u4e4b\\u7f8e \\u63a0\\u5f71\\u6d6e\\u5149 \\u8bba\\u529f\\u884c\\u5c01 \\u8bba\\u529f\\u884c\\u8d4f \\u8bba\\u9ec4\\u6570\\u9ed1 \\u7f57\\u9a6c\\u5c3c\\u4e9a \\u7f57\\u7ec7\\u6784\\u9677 \\u88f8\\u8896\\u63ce\\u62f3 \\u651e\\u8896\\u63ce\\u62f3 \\u843d\\u8349\\u4e3a\\u5bc7 \\u843d\\u82b1\\u6d41\\u6c34 \\u843d\\u82b1\\u65e0\\u8a00 \\u843d\\u8352\\u800c\\u9003 \\u843d\\u8352\\u800c\\u8d70 \\u843d\\u4e95\\u6295\\u77f3 \\u843d\\u4e95\\u4e0b\\u77f3 \\u843d\\u9631\\u4e0b\\u77f3 \\u843d\\u843d\\u5927\\u65b9 \\u843d\\u843d\\u5be1\\u5408 \\u843d\\u843d\\u7a46\\u7a46 \\u843d\\u843d\\u96be\\u5408 \\u843d\\u9b44\\u4e0d\\u7f81 \\u843d\\u9b44\\u4e0d\\u5076 \\u843d\\u9b44\\u6c5f\\u6e56 \\u843d\\u6c64\\u8783\\u87f9 \\u843d\\u96c1\\u6c89\\u9c7c \\u843d\\u53f6\\u77e5\\u79cb \\u843d\\u6708\\u5c4b\\u6881 \\u843d\\u7eb8\\u4e91\\u70df \\u634b\\u8896\\u63ce\\u62f3 \\u5c61\\u6218\\u5c61\\u8d25 \\u5c65\\u8584\\u4e34\\u6df1 \\u7387\\u7531\\u65e7\\u5219 \\u7387\\u7531\\u65e7\\u7ae0 \\u7eff\\u9152\\u7ea2\\u706f \\u7eff\\u6797\\u5927\\u76d7 \\u7565\\u9ad8\\u4e00\\u7b79 \\u7565\\u8ff9\\u8bba\\u5fc3 \\u7565\\u8ff9\\u539f\\u60c5 \\u7565\\u8ff9\\u539f\\u5fc3 \\u7565\\u89c1\\u4e00\\u6591 \\u7565\\u7aa5\\u4e00\\u6591 \\u7565\\u80dc\\u4e00\\u7b79 \\u7565\\u8bc6\\u4e4b\\u65e0 \\u7565\\u65e0\\u5fcc\\u60ee \\u7565\\u900a\\u4e00\\u7b79 \\u7565\\u77e5\\u76ae\\u6bdb \\u7565\\u77e5\\u4e00\\u4e8c \\u9a6c\\u52c3\\u725b\\u6eb2 \\u9a6c\\u6d61\\u725b\\u6eb2 \\u9a6c\\u9f7f\\u5f92\\u957f \\u9a6c\\u9762\\u725b\\u5934 \\u9a6c\\u725b\\u895f\\u88fe \\u9a6c\\u725b\\u5176\\u98ce \\u9a6c\\u5982\\u6d41\\u6c34 \\u9a82\\u9a82\\u54a7\\u54a7 \\u57cb\\u4e09\\u6028\\u56db \\u57cb\\u5929\\u6028\\u5730 \\u4e70\\u83dc\\u6c42\\u76ca \\u4e70\\u9759\\u6c42\\u5b89 \\u4e70\\u5356\\u5408\\u540c \\u4e70\\u725b\\u5356\\u5251 \\u4e70\\u725b\\u606f\\u6208 \\u9ea6\\u4e18\\u4e4b\\u795d \\u9ea6\\u79c0\\u4e24\\u5c90 \\u9ea6\\u79c0\\u4e24\\u6b67 \\u9ea6\\u79c0\\u9ecd\\u79bb \\u5356\\u56fd\\u6c42\\u5229 \\u5356\\u56fd\\u6c42\\u8363 \\u5356\\u5251\\u4e70\\u725b \\u5356\\u4fcf\\u884c\\u5978 \\u5356\\u53cb\\u6c42\\u8363 \\u5356\\u4e3b\\u6c42\\u8363 \\u6ee1\\u8896\\u6625\\u98ce \\u6ee1\\u8f7d\\u800c\\u5f52 \\u8c29\\u4e0d\\u7ecf\\u610f \\u8c29\\u85cf\\u8bf2\\u76d7 \\u8c29\\u8f9e\\u54d7\\u8bf4 \\u8c29\\u5929\\u8c29\\u5730 \\u8513\\u5f15\\u682a\\u6c42 \\u5c28\\u7709\\u7693\\u53d1 \\u76f2\\u7fc1\\u626a\\u94a5 \\u6bdb\\u53d1\\u4e1d\\u7c9f \\u6bdb\\u53d1\\u4e4b\\u529f \\u6bdb\\u91cc\\u6c42\\u65af \\u6bdb\\u9042\\u5815\\u4e95 \\u8305\\u8328\\u571f\\u9636 \\u8305\\u585e\\u987f\\u5f00 \\u8302\\u6797\\u4fee\\u7af9 \\u5192\\u540d\\u63a5\\u811a \\u8d38\\u6613\\u9006\\u5dee \\u8c8c\\u5408\\u884c\\u79bb \\u6ca1\\u9f7f\\u4e0d\\u5fd8 \\u6ca1\\u9f7f\\u96be\\u5fd8 \\u6ca1\\u9f7f\\u65e0\\u6028 \\u6ca1\\u800c\\u4e0d\\u673d \\u6ca1\\u91d1\\u996e\\u7fbd \\u6ca1\\u6ca1\\u65e0\\u95fb \\u6ca1\\u4e16\\u4e0d\\u5fd8 \\u6ca1\\u4e16\\u96be\\u5fd8 \\u6ca1\\u4e16\\u65e0\\u79f0 \\u6ca1\\u5934\\u82cd\\u8747 \\u6ca1\\u8877\\u4e00\\u662f \\u7709\\u6e05\\u76ee\\u79c0 \\u95e8\\u5355\\u6237\\u8584 \\u95e8\\u95fe\\u4e4b\\u671b \\u626a\\u53c2\\u5386\\u4e95 \\u8499\\u53e4\\u4eba\\u79cd \\u8499\\u8882\\u8f91\\u5c66 \\u8499\\u5934\\u8f6c\\u5411 \\u8499\\u4ee5\\u517b\\u6b63 \\u8499\\u5728\\u9f13\\u91cc \\u68a6\\u5bd0\\u4ee5\\u6c42 \\u68a6\\u6492\\u64a9\\u4e01 \\u5f25\\u7f1d\\u5176\\u9619 \\u5f25\\u7559\\u4e4b\\u9645 \\u5f25\\u65e5\\u7d2f\\u591c \\u8ff7\\u604b\\u9ab8\\u9aa8 \\u8ff7\\u8ff7\\u7cca\\u7cca \\u9761\\u9761\\u4e4b\\u4e50 \\u9761\\u9761\\u4e4b\\u58f0 \\u9761\\u9761\\u4e4b\\u97f3 \\u9761\\u7136\\u4ece\\u98ce \\u9761\\u989c\\u817b\\u7406 \\u9761\\u8863\\u5077\\u98df \\u9761\\u8863\\u5aae\\u98df \\u9761\\u6709\\u5b51\\u9057 \\u79d8\\u800c\\u4e0d\\u9732 \\u5bc6\\u5bc6\\u9ebb\\u9ebb \\u7720\\u82b1\\u85c9\\u67f3 \\u7720\\u82b1\\u5367\\u67f3 \\u7720\\u82b1\\u5bbf\\u67f3 \\u7720\\u82b1\\u9189\\u67f3 \\u7ef5\\u91cc\\u8584\\u6750 \\u7ef5\\u529b\\u8584\\u6750 \\u9efe\\u7a74\\u9e32\\u5de2 \\u7704\\u89c6\\u6307\\u4f7f \\u4fdb\\u9996\\u5e16\\u8033 \\u52c9\\u52c9\\u5f3a\\u5f3a \\u9762\\u8c29\\u8179\\u8bfd \\u9762\\u5982\\u5085\\u7c89 \\u9762\\u6298\\u5ef7\\u4e89 \\u9762\\u6298\\u5ef7\\u8be4 \\u9762\\u6298\\u5ead\\u4e89 \\u82d7\\u800c\\u4e0d\\u79c0 \\u63cf\\u9f99\\u7ee3\\u51e4 \\u5999\\u5904\\u4e0d\\u4f20 \\u706d\\u666f\\u8ffd\\u98ce \\u654f\\u800c\\u597d\\u5b66 \\u540d\\u843d\\u5b59\\u5c71 \\u540d\\u80dc\\u53e4\\u8ff9 \\u540d\\u6211\\u56fa\\u5f53 \\u660e\\u6cd5\\u5ba1\\u4ee4 \\u660e\\u62a2\\u6697\\u5077 \\u660e\\u63a8\\u6697\\u5c31 \\u660e\\u662d\\u660f\\u8499 \\u660e\\u4e89\\u6697\\u6597 \\u660e\\u73e0\\u5f39\\u96c0 \\u9e23\\u9523\\u559d\\u9053 \\u51a5\\u884c\\u76f2\\u7d22 \\u51a5\\u884c\\u64ff\\u57f4 \\u51a5\\u6f20\\u4e4b\\u90fd \\u9169\\u914a\\u5927\\u9189 \\u8c2c\\u91c7\\u865a\\u58f0 \\u8c2c\\u91c7\\u865a\\u8a89 \\u8c2c\\u6258\\u77e5\\u5df1 \\u8c2c\\u5984\\u65e0\\u7a3d \\u8c2c\\u60f3\\u5929\\u5f00 \\u8c2c\\u4ee5\\u5343\\u91cc \\u7f2a\\u79cd\\u6d41\\u4f20 \\u6478\\u95e8\\u4e0d\\u7740 \\u6478\\u5934\\u4e0d\\u7740 \\u6a21\\u7cca\\u4e0d\\u6e05 \\u6a21\\u6a21\\u7cca\\u7cca \\u78e8\\u68f1\\u5213\\u89d2 \\u78e8\\u76d8\\u4e24\\u5706 \\u78e8\\u7259\\u542e\\u8840 \\u62b9\\u7c89\\u65bd\\u8102 \\u672b\\u5927\\u5fc5\\u6298 \\u672b\\u8282\\u7ec6\\u884c \\u83ab\\u53ef\\u7a76\\u8bd8 \\u83ab\\u4e88\\u6bd2\\u4e5f \\u4f94\\u8272\\u63e3\\u79f0 \\u8c0b\\u81e3\\u6b66\\u5c06 \\u8c0b\\u9053\\u4f5c\\u820d \\u8c0b\\u542c\\u8ba1\\u884c \\u6728\\u5e72\\u9e1f\\u6816 \\u6728\\u7ba1\\u4e50\\u5668 \\u6728\\u843d\\u5f52\\u672c \\u6728\\u725b\\u6d41\\u9a6c \\u6728\\u5934\\u4eba\\u513f \\u6728\\u673d\\u86c0\\u751f \\u76ee\\u4e0d\\u6687\\u7ed9 \\u76ee\\u77aa\\u820c\\u5f4a \\u76ee\\u77aa\\u820c\\u5f3a \\u76ee\\u7a7a\\u4e00\\u5207 \\u76ee\\u91cf\\u610f\\u8425 \\u76ee\\u725b\\u65e0\\u5168 \\u76ee\\u6fe1\\u8033\\u67d3 \\u76ee\\u64e9\\u8033\\u67d3 \\u76ee\\u4f7f\\u9890\\u4ee4 \\u76ee\\u6311\\u5fc3\\u62db \\u76ee\\u65e0\\u5168\\u725b \\u76ee\\u65e0\\u5c0a\\u957f \\u6c90\\u7334\\u800c\\u51a0 \\u6c90\\u7334\\u8863\\u51a0 \\u6c90\\u9732\\u68b3\\u98ce \\u6c90\\u9732\\u6cbe\\u971c \\u6155\\u53e4\\u8584\\u4eca \\u66ae\\u7228\\u671d\\u8202 \\u66ae\\u9f13\\u671d\\u949f \\u66ae\\u96e8\\u671d\\u4e91 \\u62ff\\u8154\\u4f5c\\u8c03 \\u90a3\\u4e48\\u70b9\\u513f \\u90a3\\u66f2\\u5730\\u533a \\u7eb3\\u8c0f\\u5982\\u6d41 \\u8010\\u4eba\\u5480\\u56bc \\u5357\\u8d29\\u5317\\u8d3e \\u5357\\u51a0\\u695a\\u56da \\u5357\\u8154\\u5317\\u8c03 \\u96be\\u5f97\\u7cca\\u6d82 \\u96be\\u5206\\u96be\\u820d \\u96be\\u66f4\\u4ec6\\u6570 \\u96be\\u8fdb\\u6613\\u9000 \\u96be\\u820d\\u96be\\u5206 \\u96be\\u5144\\u96be\\u5f1f \\u56ca\\u9525\\u9732\\u9896 \\u607c\\u7f9e\\u53d8\\u6012 \\u607c\\u7f9e\\u6210\\u6012 \\u8bb7\\u8a00\\u654f\\u884c \\u5185\\u67e5\\u5916\\u8c03 \\u5185\\u5cfb\\u5916\\u548c \\u5185\\u67d4\\u5916\\u521a \\u5185\\u7701\\u4e0d\\u759a \\u5185\\u4fee\\u5916\\u6518 \\u80fd\\u4e0d\\u79f0\\u5b98 \\u6ce5\\u53e4\\u4e0d\\u5316 \\u6ce5\\u53e4\\u975e\\u4eca \\u6ce5\\u53e4\\u62d8\\u65b9 \\u6ce5\\u540d\\u5931\\u5b9e \\u6ce5\\u725b\\u5165\\u6d77 \\u6ce5\\u87e0\\u4e0d\\u6ed3 \\u9006\\u8033\\u5229\\u884c \\u9006\\u884c\\u5012\\u65bd \\u9006\\u65bd\\u5012\\u884c \\u62c8\\u82b1\\u5f04\\u67f3 \\u5e74\\u4e45\\u6708\\u6df1 \\u5e74\\u6df1\\u65e5\\u4e45 \\u5e74\\u6df1\\u5c81\\u4e45 \\u5e74\\u6df1\\u6708\\u4e45 \\u5e74\\u8c0a\\u4e16\\u597d \\u9ecf\\u76ae\\u7740\\u9aa8 \\u5ff5\\u5ff5\\u6709\\u8bcd \\u9e1f\\u67aa\\u6362\\u70ae \\u9e1f\\u557c\\u82b1\\u843d \\u8885\\u8885\\u5a1c\\u5a1c \\u8885\\u8885\\u5a09\\u5a09 \\u5c3f\\u6d41\\u5c41\\u6eda \\u4e5c\\u659c\\u7f20\\u5e10 \\u556e\\u8840\\u6c81\\u9aa8 \\u556e\\u8840\\u4e3a\\u76df \\u8e51\\u8e7b\\u62c5\\u7c26 \\u5b81\\u7f3a\\u6bcb\\u6ee5 \\u5b81\\u7f3a\\u52ff\\u6ee5 \\u5b81\\u6b7b\\u4e0d\\u5c48 \\u5b81\\u4e3a\\u7389\\u788e \\u5b81\\u6298\\u4e0d\\u5f2f \\u725b\\u5200\\u5272\\u9e21 \\u725b\\u5200\\u5c0f\\u8bd5 \\u725b\\u9f0e\\u70f9\\u9e21 \\u725b\\u9ad8\\u9a6c\\u5927 \\u725b\\u9b3c\\u86c7\\u795e \\u725b\\u9ec4\\u72d7\\u5b9d \\u725b\\u9aa5\\u5171\\u7262 \\u725b\\u9aa5\\u540c\\u69fd \\u725b\\u9aa5\\u540c\\u7681 \\u725b\\u9aa5\\u540c\\u7682 \\u725b\\u89d2\\u6302\\u4e66 \\u725b\\u89d2\\u4e4b\\u6b4c \\u725b\\u53e3\\u4e4b\\u4e0b \\u725b\\u9a6c\\u895f\\u88fe \\u725b\\u519c\\u5bf9\\u6ce3 \\u725b\\u6eb2\\u9a6c\\u52c3 \\u725b\\u6eb2\\u9a6c\\u6e24 \\u725b\\u8e44\\u4e4b\\u6d94 \\u725b\\u8e44\\u4e4b\\u9c7c \\u725b\\u8e44\\u4e2d\\u9c7c \\u725b\\u542c\\u5f39\\u7434 \\u725b\\u7ae5\\u9a6c\\u8d70 \\u725b\\u5934\\u9a6c\\u9762 \\u725b\\u5934\\u5228\\u5e8a \\u725b\\u661f\\u7ec7\\u5973 \\u725b\\u7f8a\\u52ff\\u8df5 \\u725b\\u8863\\u75c5\\u5367 \\u725b\\u8863\\u5bf9\\u6ce3 \\u725b\\u8863\\u5c81\\u6708 \\u725b\\u8863\\u591c\\u54ed \\u725b\\u4e4b\\u4e00\\u6bdb \\u626d\\u4e8f\\u4e3a\\u76c8 \\u626d\\u626d\\u634f\\u634f \\u626d\\u66f2\\u4f5c\\u76f4 \\u626d\\u76f4\\u4f5c\\u66f2 \\u626d\\u8f6c\\u5e72\\u5764 \\u5ff8\\u5ff8\\u6029\\u6029 \\u519c\\u8d38\\u5e02\\u573a \\u6d53\\u62b9\\u6de1\\u5986 \\u6d53\\u5986\\u6de1\\u62b9 \\u6d53\\u88c5\\u8273\\u62b9 \\u5f04\\u7ba1\\u8c03\\u5f26 \\u5f04\\u7389\\u5439\\u7bab \\u9a7d\\u7bad\\u79bb\\u5f26 \\u6012\\u53d1\\u51b2\\u51a0 \\u8650\\u8001\\u517d\\u5fc3 \\u6426\\u673d\\u78e8\\u949d \\u5973\\u5927\\u96be\\u7559 \\u5973\\u957f\\u5f53\\u5ac1 \\u5973\\u957f\\u987b\\u5ac1 \\u6ca4\\u6d6e\\u6ce1\\u5f71 \\u6ca4\\u6cab\\u69ff\\u8273 \\u6ca4\\u73e0\\u69ff\\u8273 \\u5455\\u5fc3\\u6ef4\\u8840 \\u5455\\u5fc3\\u6ca5\\u8840 \\u5076\\u8054\\u53cd\\u5e94 \\u62cd\\u9a6c\\u6e9c\\u987b \\u6392\\u96be\\u89e3\\u7eb7 \\u6392\\u5fe7\\u89e3\\u96be \\u6500\\u87fe\\u6298\\u6842 \\u6500\\u82b1\\u95ee\\u67f3 \\u6500\\u82b1\\u6298\\u67f3 \\u6500\\u85e4\\u9644\\u845b \\u6500\\u85e4\\u63fd\\u845b \\u76d8\\u6839\\u7a76\\u5e95 \\u76d8\\u6728\\u673d\\u682a \\u76d8\\u6c34\\u52a0\\u5251 \\u69c3\\u6728\\u673d\\u682a \\u6ec2\\u6cb1\\u5927\\u96e8 \\u5e9e\\u7709\\u767d\\u53d1 \\u5e9e\\u7709\\u7693\\u53d1 \\u65c1\\u884c\\u659c\\u4e0a \\u65c1\\u6c42\\u535a\\u8003 \\u65c1\\u6c42\\u4fca\\u5f66 \\u65c1\\u901a\\u66f2\\u7545 \\u65c1\\u901a\\u66f2\\u9b2f \\u65c1\\u5f15\\u66f2\\u8bc1 \\u65c1\\u6307\\u66f2\\u8c15 \\u629b\\u5934\\u9732\\u9762 \\u5228\\u6839\\u7a76\\u5e95 \\u5486\\u54ee\\u5982\\u96f7 \\u5e96\\u4e01\\u89e3\\u725b \\u888d\\u7b0f\\u767b\\u573a \\u8dd1\\u9a6c\\u5356\\u89e3 \\u70ae\\u706b\\u8fde\\u5929 \\u70ae\\u9f99\\u70f9\\u51e4 \\u55b7\\u8584\\u6b32\\u51fa \\u55b7\\u8840\\u81ea\\u6c61 \\u6279\\u98ce\\u62b9\\u6708 \\u6279\\u6bdb\\u6c42\\u75b5 \\u62ab\\u53d1\\u6587\\u8eab \\u62ab\\u53d1\\u7f28\\u51a0 \\u62ab\\u53d1\\u5de6\\u887d \\u62ab\\u809d\\u6ca5\\u8840 \\u62ab\\u809d\\u9732\\u80c6 \\u62ab\\u6797\\u64b7\\u79c0 \\u62ab\\u9ebb\\u6551\\u706b \\u62ab\\u6bdb\\u6c42\\u75b5 \\u62ab\\u6bdb\\u6c42\\u7455 \\u62ab\\u88d8\\u5e26\\u7d22 \\u62ab\\u88d8\\u8d1f\\u85aa \\u62ab\\u5934\\u6563\\u53d1 \\u62ab\\u5fc3\\u6ca5\\u8840 \\u5288\\u91cc\\u556a\\u5566 \\u76ae\\u91cc\\u6625\\u79cb \\u76ae\\u91cc\\u9633\\u79cb \\u76ae\\u76f8\\u4e4b\\u89c1 \\u76ae\\u76f8\\u4e4b\\u8c08 \\u7435\\u7436\\u65e7\\u8bed \\u5c41\\u6eda\\u5c3f\\u6d41 \\u7765\\u7768\\u4e00\\u5207 \\u9a88\\u80a9\\u7d2f\\u8ff9 \\u9a88\\u80a9\\u7d2f\\u8e35 \\u9a88\\u80a9\\u7d2f\\u8db3 \\u9a88\\u9996\\u5c31\\u902e \\u9a88\\u9996\\u5c31\\u50c7 \\u9a88\\u9996\\u5c31\\u622e \\u9a88\\u9996\\u5c31\\u6b7b \\u9a88\\u9996\\u5c31\\u7cfb \\u9a88\\u56db\\u4fea\\u516d \\u7247\\u7532\\u4e0d\\u7559 \\u7247\\u74e6\\u4e0d\\u7559 \\u7247\\u8a00\\u6298\\u72f1 \\u7247\\u8a00\\u53ea\\u8bed \\u7247\\u8a00\\u53ea\\u5b57 \\u7247\\u957f\\u8584\\u6280 \\u98d8\\u6a0a\\u843d\\u6eb7 \\u98d8\\u8335\\u843d\\u6eb7 \\u6487\\u5446\\u6253\\u5815 \\u8d2b\\u5634\\u8584\\u820c \\u54c1\\u7af9\\u5f39\\u4e1d \\u54c1\\u7af9\\u8c03\\u5f26 \\u5e73\\u6d41\\u7f13\\u8fdb \\u5e73\\u94fa\\u76f4\\u5e8f \\u51ed\\u51e0\\u4e4b\\u8bcf \\u5c4f\\u6c14\\u655b\\u606f \\u5c4f\\u6c14\\u6151\\u606f \\u5c4f\\u58f0\\u606f\\u6c14 \\u74f6\\u6c89\\u7c2a\\u6298 \\u74f6\\u5760\\u7c2a\\u6298 \\u840d\\u98d8\\u84ec\\u8f6c \\u6cfc\\u6cb9\\u6551\\u706b \\u7834\\u89da\\u4e3a\\u571c \\u7834\\u574f\\u8377\\u8f7d \\u7834\\u5bb6\\u4e27\\u4ea7 \\u7834\\u5bb6\\u53bf\\u4ee4 \\u7834\\u955c\\u91cd\\u5706 \\u7834\\u65e7\\u7acb\\u65b0 \\u7834\\u70c2\\u6d41\\u4e22 \\u7834\\u67f1\\u6c42\\u5978 \\u5256\\u868c\\u6c42\\u73e0 \\u5256\\u809d\\u6ce3\\u8840 \\u5256\\u51b3\\u5982\\u6d41 \\u5256\\u5fc3\\u6ce3\\u8840 \\u638a\\u6597\\u6298\\u8861 \\u94fa\\u91c7\\u645b\\u6587 \\u94fa\\u76d6\\u5377\\u513f \\u94fa\\u9526\\u5217\\u7ee3 \\u94fa\\u7709\\u8499\\u773c \\u94fa\\u7709\\u82eb\\u773c \\u94fa\\u8c0b\\u5b9a\\u8ba1 \\u4ec6\\u4ec6\\u9053\\u9014 \\u4ec6\\u4ec6\\u4e9f\\u62dc \\u530d\\u5310\\u4e4b\\u6551 \\u84b2\\u67f3\\u4e4b\\u8d28 \\u84b2\\u67f3\\u4e4b\\u59ff \\u6ea5\\u5929\\u7387\\u571f \\u4e03\\u62f1\\u516b\\u7fd8 \\u4e03\\u4e86\\u516b\\u5f53 \\u4e03\\u96f6\\u516b\\u843d \\u4e03\\u626d\\u516b\\u6b6a \\u4e03\\u4e0a\\u516b\\u843d \\u4e03\\u6b6a\\u516b\\u626d \\u4e03\\u6e7e\\u516b\\u626d \\u4e03\\u6298\\u516b\\u6263 \\u4e03\\u8d1e\\u4e5d\\u70c8 \\u6816\\u98ce\\u5bbf\\u96e8 \\u6816\\u4e18\\u996e\\u8c37 \\u6b3a\\u5929\\u8bf3\\u5730 \\u5601\\u54e9\\u5580\\u55b3 \\u8e4a\\u7530\\u593a\\u725b \\u9f50\\u91cf\\u7b49\\u89c2 \\u9f50\\u738b\\u820d\\u725b \\u9f50\\u70df\\u4e5d\\u70b9 \\u5176\\u5e94\\u5982\\u54cd \\u5176\\u5e94\\u82e5\\u54cd \\u5d0e\\u5d5a\\u5386\\u843d \\u9a91\\u725b\\u89c5\\u725b \\u68cb\\u9ad8\\u4e00\\u7740 \\u68cb\\u8f93\\u5148\\u7740 \\u68cb\\u8f93\\u5148\\u8457 \\u4e5e\\u6d46\\u5f97\\u9152 \\u6c14\\u51b2\\u6597\\u725b \\u6c14\\u51b2\\u725b\\u6597 \\u6c14\\u5598\\u5982\\u725b \\u6c14\\u6025\\u8d25\\u4e27 \\u6c14\\u514b\\u6597\\u725b \\u6c14\\u541e\\u725b\\u6597 \\u6c14\\u606f\\u5944\\u5944 \\u6c14\\u8840\\u65b9\\u521a \\u6c14\\u58ee\\u5982\\u725b \\u5f03\\u672c\\u6c42\\u672b \\u5f03\\u77ed\\u5c31\\u957f \\u5f03\\u7532\\u4e22\\u76d4 \\u5f03\\u65e7\\u601c\\u65b0 \\u5f03\\u65e7\\u56fe\\u65b0 \\u5f03\\u65e7\\u8fce\\u65b0 \\u5f03\\u6587\\u5c31\\u6b66 \\u5f03\\u6613\\u6c42\\u96be \\u5f03\\u4e4b\\u5ea6\\u5916 \\u6ce3\\u4e0d\\u6210\\u58f0 \\u6ce3\\u9e9f\\u60b2\\u51e4 \\u6ce3\\u4e0b\\u5982\\u96e8 \\u6ce3\\u4e0b\\u6cbe\\u895f \\u6ce3\\u8840\\u6376\\u81ba \\u6ce3\\u8840\\u7a3d\\u98a1 \\u6ce3\\u8840\\u6795\\u6208 \\u5951\\u8239\\u6c42\\u5251 \\u6390\\u5c16\\u843d\\u949e \\u6070\\u5230\\u597d\\u5904 \\u6070\\u5982\\u5176\\u5206 \\u5343\\u5dee\\u4e07\\u522b \\u5343\\u4e58\\u4e07\\u9a91 \\u5343\\u6751\\u4e07\\u843d \\u5343\\u53e4\\u7edd\\u8c03 \\u5343\\u56de\\u767e\\u6298 \\u5343\\u94a7\\u4e00\\u53d1 \\u5343\\u4e86\\u767e\\u5f53 \\u5343\\u4e86\\u4e07\\u5f53 \\u5343\\u91cc\\u4e00\\u66f2 \\u5343\\u78e8\\u767e\\u6298 \\u5343\\u79cb\\u4e07\\u4ee3 \\u5343\\u6001\\u4e07\\u72b6 \\u5343\\u5ca9\\u7ade\\u79c0 \\u5343\\u8f7d\\u4e00\\u5408 \\u5343\\u72b6\\u4e07\\u6001 \\u5343\\u59ff\\u4e07\\u6001 \\u7275\\u725b\\u4e0b\\u4e95 \\u7275\\u7f8a\\u62c5\\u9152 \\u6434\\u65d7\\u53d6\\u5c06 \\u6434\\u65d7\\u65a9\\u5c06 \\u524d\\u5ea6\\u5218\\u90ce \\u524d\\u4ec6\\u540e\\u8e23 \\u524d\\u8a00\\u5f80\\u884c \\u6f5c\\u5fb7\\u79d8\\u884c \\u6f5c\\u5fb7\\u9690\\u884c \\u6f5c\\u5b54\\u94bb\\u673a \\u6f5c\\u4f11\\u9690\\u5fb7 \\u9063\\u5175\\u8c03\\u5c06 \\u9063\\u5c06\\u8c03\\u5175 \\u9063\\u5174\\u9676\\u60c5 \\u67aa\\u70df\\u70ae\\u96e8 \\u5f3a\\u5507\\u52a3\\u5634 \\u5f3a\\u8bcd\\u593a\\u7406 \\u5f3a\\u8bcd\\u593a\\u6b63 \\u5f3a\\u5f97\\u6613\\u8d2b \\u5f3a\\u800c\\u540e\\u53ef \\u5f3a\\u51eb\\u53d8\\u9e64 \\u5f3a\\u5f13\\u52b2\\u5f29 \\u5f3a\\u8052\\u4e0d\\u820d \\u5f3a\\u4eba\\u6240\\u96be \\u5f3a\\u8bc6\\u535a\\u95fb \\u5f3a\\u98df\\u9761\\u89d2 \\u5f3a\\u98df\\u81ea\\u7231 \\u5f3a\\u6b7b\\u8d56\\u6d3b \\u5f3a\\u6b7b\\u5f3a\\u6d3b \\u5f3a\\u6587\\u5047\\u918b \\u5f3a\\u6587\\u6d49\\u918b \\u5f3a\\u76f4\\u81ea\\u9042 \\u5f3a\\u81ea\\u53d6\\u6298 \\u5f3a\\u5634\\u786c\\u7259 \\u5f3a\\u4f5c\\u89e3\\u4eba \\u5899\\u82b1\\u8def\\u67f3 \\u6572\\u51b0\\u6c42\\u706b \\u6572\\u9523\\u653e\\u70ae \\u6572\\u725b\\u5bb0\\u9a6c \\u6572\\u6572\\u6253\\u6253 \\u5de7\\u53d1\\u5947\\u4e2d \\u5de7\\u8a00\\u4ee4\\u8272 \\u7fd8\\u9996\\u4ee5\\u5f85 \\u5207\\u9f7f\\u62ca\\u5fc3 \\u5207\\u9f7f\\u8150\\u5fc3 \\u5207\\u80a4\\u4e4b\\u75db \\u5207\\u9aa8\\u4e4b\\u4ec7 \\u5207\\u8fd1\\u7684\\u5f53 \\u5207\\u5207\\u6b64\\u5e03 \\u5207\\u5207\\u79c1\\u8bed \\u5207\\u5207\\u5728\\u5fc3 \\u5207\\u4e2d\\u65f6\\u75c5 \\u8304\\u5b50\\u6cb3\\u533a \\u4e14\\u98df\\u86e4\\u870a \\u6308\\u74f6\\u4e4b\\u77e5 \\u9532\\u800c\\u4e0d\\u820d \\u4eb2\\u64cd\\u4e95\\u81fc \\u4eb2\\u670b\\u597d\\u53cb \\u5d5a\\u5d0e\\u78ca\\u843d \\u5d5a\\u5d0e\\u5386\\u843d \\u7434\\u6b4c\\u9152\\u8d4b \\u5bdd\\u4e18\\u4e4b\\u5fd7 \\u5bdd\\u82eb\\u6795\\u5e72 \\u9752\\u809d\\u78a7\\u8840 \\u9752\\u6797\\u9ed1\\u585e \\u9752\\u53f2\\u7559\\u82b3 \\u9752\\u53f2\\u7559\\u540d \\u9752\\u7d2b\\u88ab\\u4f53 \\u8f7b\\u624d\\u597d\\u65bd \\u8f7b\\u8d22\\u597d\\u4e49 \\u8f7b\\u9a91\\u7b80\\u4ece \\u8f7b\\u88d8\\u80a5\\u9a6c \\u8f7b\\u88d8\\u7f13\\u5e26 \\u8f7b\\u88d8\\u7f13\\u8f94 \\u8f7b\\u509c\\u8584\\u8d4b \\u8f7b\\u5634\\u8584\\u820c \\u503e\\u80a0\\u5012\\u809a \\u503e\\u7b50\\u5012\\u5e8b \\u503e\\u7b50\\u5012\\u7ba7 \\u503e\\u7bb1\\u5012\\u7ba7 \\u6e05\\u8f9e\\u4e3d\\u66f2 \\u6e05\\u90fd\\u7edb\\u9619 \\u6e05\\u90fd\\u7d2b\\u5e9c \\u6e05\\u90fd\\u7d2b\\u5fae \\u6e05\\u98ce\\u4e24\\u8896 \\u6e05\\u53f2\\u5217\\u4f20 \\u6e05\\u83b9\\u79c0\\u6f88 \\u6e05\\u6d4a\\u540c\\u6d41 \\u60c5\\u89c1\\u4e4e\\u8f9e \\u60c5\\u89c1\\u529b\\u5c48 \\u60c5\\u771f\\u610f\\u5207 \\u5e86\\u540a\\u4e0d\\u884c \\u5e86\\u7236\\u4e0d\\u6b7b \\u7a77\\u6839\\u7a76\\u5e95 \\u7a77\\u5e74\\u7d2f\\u4e16 \\u7a77\\u5e74\\u7d2f\\u6708 \\u7a77\\u6cc9\\u673d\\u58e4 \\u7a77\\u9014\\u6f66\\u5012 \\u7a77\\u5f62\\u5c3d\\u76f8 \\u7a77\\u6e90\\u6714\\u6d41 \\u7a77\\u6e90\\u6eaf\\u6d41 \\u743c\\u697c\\u91d1\\u9619 \\u4e18\\u5c71\\u4e4b\\u529f \\u79cb\\u98ce\\u8fc7\\u8033 \\u79cb\\u98ce\\u626b\\u53f6 \\u79cb\\u9ad8\\u9a6c\\u80a5 \\u79cb\\u9ad8\\u6c14\\u548c \\u79cb\\u9ad8\\u6c14\\u723d \\u79cb\\u9ad8\\u6c14\\u8083 \\u79cb\\u884c\\u590f\\u4ee4 \\u79cb\\u6beb\\u89c1\\u6350 \\u79cb\\u6beb\\u65e0\\u72af \\u79cb\\u6beb\\u52ff\\u72af \\u79cb\\u6beb\\u4e4b\\u672b \\u79cb\\u6247\\u89c1\\u6350 \\u79cb\\u5b9e\\u6625\\u534e \\u79cb\\u837c\\u5bc6\\u7f51 \\u79cb\\u6708\\u6625\\u98ce \\u79cb\\u6708\\u6625\\u82b1 \\u79cb\\u6708\\u5bd2\\u6c5f \\u56da\\u9996\\u57a2\\u9762 \\u56da\\u9996\\u4e27\\u9762 \\u6c42\\u9053\\u4e8e\\u76f2 \\u6c42\\u798f\\u79b3\\u707e \\u6c42\\u8fc7\\u4e8e\\u4f9b \\u6c42\\u6d46\\u5f97\\u9152 \\u6c42\\u9a6c\\u5510\\u8086 \\u6c42\\u540d\\u593a\\u5229 \\u6c42\\u4eb2\\u544a\\u53cb \\u6c42\\u4eb2\\u9760\\u53cb \\u6c42\\u5168\\u4e4b\\u6bc1 \\u6c42\\u4ec1\\u5f97\\u4ec1 \\u6c42\\u751f\\u5bb3\\u4ec1 \\u6c42\\u7530\\u95ee\\u820d \\u6c42\\u540c\\u5b58\\u5f02 \\u6c42\\u8d24\\u5982\\u6e34 \\u6c42\\u8d24\\u82e5\\u6e34 \\u6c42\\u8d24\\u4e0b\\u58eb \\u6c42\\u76ca\\u53cd\\u635f \\u6c42\\u4e4b\\u4e0d\\u5f97 \\u6c42\\u77e5\\u82e5\\u6e34 \\u6c42\\u5fd7\\u8fbe\\u9053 \\u6c42\\u5fe0\\u51fa\\u5b5d \\u88d8\\u5f0a\\u91d1\\u5c3d \\u88d8\\u9a6c\\u8f7b\\u80a5 \\u88d8\\u9a6c\\u8f7b\\u72c2 \\u88d8\\u9a6c\\u6e05\\u72c2 \\u88d8\\u9a6c\\u58f0\\u8272 \\u5c48\\u9ad8\\u5c31\\u4e0b \\u5c48\\u8816\\u6c42\\u4f38 \\u5c48\\u5c0a\\u5c31\\u5351 \\u66f2\\u4e0d\\u79bb\\u53e3 \\u66f2\\u9ad8\\u548c\\u5be1 \\u66f2\\u80b1\\u800c\\u6795 \\u66f2\\u9ebb\\u83b1\\u53bf \\u66f2\\u7709\\u4e30\\u988a \\u66f2\\u6c34\\u6d41\\u89de \\u66f2\\u7a81\\u79fb\\u85aa \\u66f2\\u5b66\\u963f\\u4e16 \\u66f2\\u610f\\u627f\\u8fce \\u66f2\\u610f\\u5949\\u8fce \\u66f2\\u610f\\u8fce\\u5408 \\u66f2\\u7ec8\\u4eba\\u6563 \\u66f2\\u7ec8\\u594f\\u96c5 \\u53d6\\u4e88\\u6709\\u8282 \\u53bb\\u672c\\u5c31\\u672b \\u53bb\\u6545\\u5c31\\u65b0 \\u53bb\\u5c31\\u4e4b\\u5206 \\u53bb\\u592a\\u53bb\\u751a \\u53bb\\u5371\\u5c31\\u5b89 \\u5708\\u7262\\u517b\\u7269 \\u6743\\u5229\\u8981\\u6c42 \\u6743\\u503e\\u4e2d\\u5916 \\u72ac\\u5154\\u4ff1\\u6bd9 \\u5374\\u884c\\u6c42\\u524d \\u96c0\\u5c4f\\u4e2d\\u9009 \\u96c0\\u55a7\\u9e20\\u805a \\u786e\\u5207\\u4e0d\\u79fb \\u9e4a\\u5de2\\u9e20\\u5c45 \\u9e4a\\u5de2\\u9e20\\u636e \\u9e4a\\u5de2\\u9e20\\u8e1e \\u9e4a\\u5de2\\u9e20\\u5360 \\u9e4a\\u5de2\\u9e20\\u4e3b \\u9e4a\\u5792\\u5de2\\u9e20 \\u9e4a\\u7b11\\u9e20\\u821e \\u9619\\u4e00\\u4e0d\\u53ef \\u69b7\\u9152\\u5f81\\u8336 \\u88d9\\u5c50\\u5c11\\u5e74 \\u7fa4\\u96cc\\u7ca5\\u7ca5 \\u7fa4\\u8f7b\\u6298\\u8f74 \\u67d3\\u65e7\\u4f5c\\u65b0 \\u67d3\\u84dd\\u6d85\\u7682 \\u9976\\u6709\\u5174\\u8da3 \\u7ed5\\u6881\\u4e09\\u65e5 \\u7ed5\\u6881\\u4e4b\\u97f3 \\u70ed\\u71ac\\u7ffb\\u997c \\u70ed\\u529f\\u5f53\\u91cf \\u70ed\\u6838\\u53cd\\u5e94 \\u70ed\\u70ed\\u95f9\\u95f9 \\u4eba\\u624d\\u6d4e\\u6d4e \\u4eba\\u591a\\u9619\\u5c11 \\u4eba\\u884c\\u6a2a\\u9053 \\u4eba\\u6a21\\u72d7\\u6837 \\u4eba\\u60c5\\u4e16\\u6001 \\u4eba\\u6d89\\u536c\\u5426 \\u4eba\\u4e8b\\u4e0d\\u7701 \\u4eba\\u6b7b\\u7559\\u540d \\u4eba\\u5934\\u755c\\u9e23 \\u4eba\\u5fc3\\u4e27\\u5c3d \\u4eba\\u70df\\u6d69\\u7a70 \\u4eba\\u8a00\\u85c9\\u85c9 \\u4eba\\u6b32\\u6a2a\\u6d41 \\u4eba\\u8db3\\u5bb6\\u7ed9 \\u5fcd\\u803b\\u542b\\u7f9e \\u5fcd\\u9965\\u6328\\u997f \\u5fcd\\u82e6\\u8010\\u52b3 \\u5fcd\\u8fb1\\u542b\\u7f9e \\u5fcd\\u8fb1\\u6c42\\u5168 \\u4efb\\u5176\\u81ea\\u6d41 \\u65e5\\u8584\\u897f\\u5c71 \\u65e5\\u4e0d\\u6687\\u7ed9 \\u65e5\\u884c\\u5343\\u91cc \\u65e5\\u79ef\\u6708\\u7d2f \\u65e5\\u4e45\\u5e74\\u6df1 \\u65e5\\u4e45\\u5c81\\u6df1 \\u65e5\\u4e45\\u5c81\\u957f \\u65e5\\u4e45\\u5929\\u957f \\u65e5\\u4e45\\u6708\\u6df1 \\u65e5\\u5c31\\u6708\\u5c06 \\u65e5\\u5c45\\u6708\\u8bf8 \\u65e5\\u7d2f\\u6708\\u79ef \\u65e5\\u843d\\u5343\\u4e08 \\u65e5\\u7701\\u6708\\u8bfe \\u65e5\\u7701\\u6708\\u8bd5 \\u65e5\\u7701\\u6708\\u4fee \\u65e5\\u524a\\u6708\\u5272 \\u65e5\\u524a\\u6708\\u6718 \\u65e5\\u5f02\\u6708\\u66f4 \\u65e5\\u6708\\u53c2\\u8fb0 \\u65e5\\u6708\\u5982\\u6d41 \\u65e5\\u6718\\u6708\\u524a \\u620e\\u9a6c\\u5025\\u50af \\u8363\\u53e4\\u8650\\u4eca \\u67d4\\u60c5\\u7ef0\\u6001 \\u8089\\u8584\\u9aa8\\u5e76 \\u8089\\u98a4\\u5fc3\\u60ca \\u8089\\u5c71\\u9152\\u6d77 \\u5982\\u89e3\\u5012\\u60ac \\u5982\\u5c65\\u8584\\u51b0 \\u5982\\u725b\\u8d1f\\u91cd \\u5982\\u4e18\\u800c\\u6b62 \\u5982\\u4e27\\u8003\\u59a3 \\u5982\\u6570\\u5bb6\\u73cd \\u5982\\u5e94\\u65af\\u54cd \\u5982\\u632f\\u843d\\u53f6 \\u5982\\u4e4b\\u5948\\u4f55 \\u8339\\u6bdb\\u996e\\u8840 \\u4e73\\u81ed\\u672a\\u5e72 \\u8fb1\\u56fd\\u4e27\\u5e08 \\u5165\\u56fd\\u95ee\\u7981 \\u5165\\u7adf\\u95ee\\u7981 \\u5165\\u5883\\u95ee\\u7981 \\u5165\\u5ba4\\u64cd\\u6208 \\u5165\\u571f\\u4e3a\\u5b89 \\u5165\\u543e\\u5f40\\u4e2d \\u962e\\u56ca\\u7f9e\\u6da9 \\u8f6f\\u88d8\\u5feb\\u9a6c \\u82e5\\u4e27\\u8003\\u59a3 \\u82e5\\u6709\\u6240\\u4e27 \\u6d12\\u626b\\u5e94\\u5bf9 \\u6d12\\u5fc3\\u66f4\\u59cb \\u6492\\u8c46\\u6210\\u5175 \\u585e\\u5c14\\u7ef4\\u4e9a \\u585e\\u4e95\\u711a\\u820d \\u585e\\u62c9\\u5229\\u6602 \\u585e\\u6d66\\u8def\\u65af \\u585e\\u7fc1\\u5f97\\u9a6c \\u585e\\u7fc1\\u5931\\u9a6c \\u585e\\u7fc1\\u4e4b\\u9a6c \\u4e09\\u73ed\\u516d\\u623f \\u4e09\\u4e0d\\u62d7\\u516d \\u4e09\\u8336\\u516d\\u996d \\u4e09\\u8336\\u516d\\u793c \\u4e09\\u5dee\\u4e24\\u9519 \\u4e09\\u5dee\\u4e94\\u9519 \\u4e09\\u671d\\u5143\\u8001 \\u4e09\\u5927\\u5dee\\u522b \\u4e09\\u7b49\\u4e5d\\u822c \\u4e09\\u7b49\\u4e5d\\u683c \\u4e09\\u5bf9\\u516d\\u9762 \\u4e09\\u5bab\\u516d\\u9662 \\u4e09\\u59d1\\u516d\\u5a46 \\u4e09\\u8dea\\u4e5d\\u53e9 \\u4e09\\u69d0\\u4e5d\\u68d8 \\u4e09\\u56de\\u4e5d\\u8f6c \\u4e09\\u6559\\u4e5d\\u6d41 \\u4e09\\u8857\\u516d\\u5e02 \\u4e09\\u8857\\u516d\\u5df7 \\u4e09\\u4ee4\\u4e94\\u7533 \\u4e09\\u516d\\u4e5d\\u7b49 \\u4e09\\u5a92\\u516d\\u8bc1 \\u4e09\\u5e74\\u4e94\\u8f7d \\u4e09\\u4eb2\\u516d\\u6545 \\u4e09\\u4eb2\\u516d\\u7737 \\u4e09\\u6c42\\u56db\\u544a \\u4e09\\u4eba\\u4e3a\\u4f17 \\u4e09\\u7701\\u543e\\u8eab \\u4e09\\u5341\\u516d\\u7b56 \\u4e09\\u5341\\u516d\\u884c \\u4e09\\u5341\\u516d\\u8ba1 \\u4e09\\u9996\\u516d\\u81c2 \\u4e09\\u601d\\u800c\\u884c \\u4e09\\u5934\\u516d\\u81c2 \\u4e09\\u5934\\u516d\\u9762 \\u4e09\\u5934\\u516d\\u8bc1 \\u4e09\\u63a8\\u516d\\u95ee \\u4e09\\u74e6\\u4e24\\u820d \\u4e09\\u5f99\\u6210\\u90fd \\u4e09\\u65ec\\u4e5d\\u98df \\u4e09\\u9633\\u4ea4\\u6cf0 \\u4e09\\u707e\\u516b\\u96be \\u4e09\\u707e\\u516d\\u96be \\u4e09\\u6218\\u4e09\\u5317 \\u4e09\\u8d1e\\u4e5d\\u70c8 \\u4e09\\u65e8\\u76f8\\u516c \\u6563\\u5175\\u6e38\\u52c7 \\u6563\\u9a6c\\u4f11\\u725b \\u6851\\u7ed9\\u5df4\\u5c14 \\u6851\\u6237\\u68ec\\u67a2 \\u6851\\u843d\\u74e6\\u89e3 \\u6851\\u67a2\\u74ee\\u7256 \\u6851\\u571f\\u7ef8\\u7f2a \\u4e27\\u80c6\\u6e38\\u9b42 \\u4e27\\u9b42\\u843d\\u9b44 \\u4e27\\u9b42\\u5931\\u9b44 \\u4e27\\u5bb6\\u4e4b\\u72d7 \\u4e27\\u5bb6\\u4e4b\\u72ac \\u4e27\\u5c3d\\u5929\\u826f \\u4e27\\u660e\\u4e4b\\u75db \\u4e27\\u6743\\u8fb1\\u56fd \\u4e27\\u5e08\\u8fb1\\u56fd \\u4e27\\u5929\\u5bb3\\u7406 \\u4e27\\u5fc3\\u75c5\\u72c2 \\u6414\\u5230\\u75d2\\u5904 \\u6414\\u7740\\u75d2\\u5904 \\u626b\\u5893\\u671b\\u4e27 \\u8272\\u5389\\u80c6\\u8584 \\u8272\\u4ec1\\u884c\\u8fdd \\u6740\\u51fa\\u91cd\\u56f4 \\u6740\\u59bb\\u6c42\\u5c06 \\u6c99\\u9e25\\u7fd4\\u96c6 \\u6b43\\u8840\\u4e3a\\u76df \\u715e\\u8d39\\u82e6\\u5fc3 \\u715e\\u8d39\\u5fc3\\u673a \\u715e\\u6709\\u4ecb\\u4e8b \\u5c71\\u5d29\\u949f\\u5e94 \\u5c71\\u590d\\u6574\\u5986 \\u5c71\\u884c\\u6d77\\u5bbf \\u5c71\\u6e9c\\u7a7f\\u77f3 \\u5c71\\u660e\\u6c34\\u79c0 \\u5c71\\u9e23\\u8c37\\u5e94 \\u5c71\\u6e05\\u6c34\\u79c0 \\u5c71\\u6bbd\\u91ce\\u6e4b \\u5c71\\u6b62\\u5ddd\\u884c \\u5c71\\u4e2d\\u5bb0\\u76f8 \\u5c71\\u91cd\\u6c34\\u590d \\u829f\\u7e41\\u5c31\\u7b80 \\u5220\\u7e41\\u5c31\\u7b80 \\u5220\\u534e\\u5c31\\u7d20 \\u6247\\u6795\\u6e29\\u88ab \\u6247\\u6795\\u6e29\\u5e2d \\u5584\\u7f62\\u7518\\u4f11 \\u5584\\u7f62\\u5e72\\u4f11 \\u5584\\u8d22\\u96be\\u820d \\u5584\\u8d3e\\u800c\\u6cbd \\u5584\\u59cb\\u4ee4\\u7ec8 \\u64c5\\u58d1\\u4e13\\u4e18 \\u4f24\\u8a00\\u624e\\u8bed \\u89de\\u9152\\u8c46\\u8089 \\u4e0a\\u884c\\u4e0b\\u6548 \\u4e0a\\u5357\\u843d\\u5317 \\u5c11\\u4e0d\\u66f4\\u4e8b \\u5c11\\u4e0d\\u7ecf\\u4e8b \\u5c11\\u6210\\u82e5\\u6027 \\u5c11\\u513f\\u4e0d\\u5b9c \\u5c11\\u5e74\\u4e4b\\u5bb6 \\u5c11\\u5148\\u961f\\u5458 \\u5c11\\u5c0f\\u65e0\\u731c \\u820d\\u672c\\u6c42\\u672b \\u820d\\u672c\\u9010\\u672b \\u820d\\u7b56\\u8ffd\\u7f8a \\u820d\\u8f66\\u4fdd\\u5e05 \\u820d\\u77ed\\u53d6\\u957f \\u820d\\u5df1\\u4ece\\u4eba \\u820d\\u5df1\\u6551\\u4eba \\u820d\\u5df1\\u5c31\\u4eba \\u820d\\u5df1\\u4e3a\\u516c \\u820d\\u5df1\\u4e3a\\u4eba \\u820d\\u5df1\\u82b8\\u4eba \\u820d\\u8fd1\\u5373\\u8fdc \\u820d\\u8fd1\\u6c42\\u8fdc \\u820d\\u8fd1\\u52a1\\u8fdc \\u820d\\u65e7\\u8c0b\\u65b0 \\u820d\\u8eab\\u6c42\\u6cd5 \\u820d\\u8eab\\u4e3a\\u56fd \\u820d\\u751f\\u53d6\\u4e49 \\u820d\\u751f\\u5fd8\\u6b7b \\u820d\\u6b7b\\u5fd8\\u751f \\u820d\\u6211\\u5176\\u8c01 \\u793e\\u71d5\\u79cb\\u9e3f \\u8eab\\u64cd\\u4e95\\u81fc \\u8eab\\u5355\\u529b\\u8584 \\u8eab\\u6000\\u516d\\u7532 \\u8eab\\u540d\\u4ff1\\u6cf0 \\u8eab\\u540d\\u4e24\\u6cf0 \\u8eab\\u9996\\u5f02\\u5904 \\u8eab\\u4f53\\u53d1\\u80a4 \\u8eab\\u65e0\\u7acb\\u9525 \\u8eab\\u65e0\\u62e9\\u884c \\u8eab\\u65e0\\u957f\\u5904 \\u8eab\\u5148\\u671d\\u9732 \\u6df1\\u4ec7\\u5bbf\\u6028 \\u6df1\\u6076\\u75db\\u75be \\u6df1\\u6076\\u75db\\u5ac9 \\u6df1\\u6076\\u75db\\u7edd \\u6df1\\u6243\\u56fa\\u94a5 \\u6df1\\u5389\\u6d45\\u63ed \\u6df1\\u8c0b\\u8fdc\\u7565 \\u6df1\\u5207\\u7740\\u767d \\u6df1\\u5207\\u8457\\u767d \\u6df1\\u5207\\u8457\\u660e \\u6df1\\u6587\\u66f2\\u6298 \\u6df1\\u4e2d\\u7b03\\u884c \\u4ec0\\u88ad\\u800c\\u85cf \\u795e\\u4e0d\\u6536\\u820d \\u795e\\u4e0d\\u5b88\\u820d \\u795e\\u5dee\\u9b3c\\u4f7f \\u795e\\u51fa\\u9b3c\\u6ca1 \\u795e\\u53f7\\u9b3c\\u54ed \\u795e\\u6d41\\u6c14\\u9b2f \\u795e\\u6e05\\u9aa8\\u79c0 \\u795e\\u878d\\u6c14\\u6cf0 \\u795e\\u4e27\\u80c6\\u843d \\u795e\\u6b66\\u6302\\u51a0 \\u795e\\u9704\\u7edb\\u9619 \\u5ba1\\u51e0\\u5ea6\\u52bf \\u5ba1\\u5df1\\u5ea6\\u4eba \\u5ba1\\u66f2\\u9762\\u52bf \\u5ba1\\u66f2\\u9762\\u57f6 \\u5ba1\\u65f6\\u5ea6\\u52bf \\u614e\\u8eab\\u4fee\\u6c38 \\u751f\\u53d1\\u672a\\u71e5 \\u751f\\u6740\\u4e88\\u593a \\u751f\\u6b7b\\u4e88\\u593a \\u751f\\u541e\\u6d3b\\u5265 \\u751f\\u62d6\\u6b7b\\u62fd \\u58f0\\u6c14\\u76f8\\u6c42 \\u58f0\\u6c42\\u6c14\\u5e94 \\u58f0\\u5e94\\u6c14\\u6c42 \\u7ef3\\u6106\\u7ea0\\u8c2c \\u7ef3\\u6106\\u7ea0\\u7f2a \\u7701\\u8eab\\u514b\\u5df1 \\u5723\\u7ecf\\u8d24\\u4f20 \\u76db\\u6c34\\u4e0d\\u6f0f \\u5c38\\u9e20\\u4e4b\\u5e73 \\u5c38\\u5c45\\u9f99\\u89c1 \\u5c38\\u5c71\\u8840\\u6d77 \\u5931\\u800c\\u590d\\u5f97 \\u5931\\u9b42\\u843d\\u9b44 \\u5931\\u9b42\\u4e27\\u80c6 \\u5931\\u9b42\\u4e27\\u9b44 \\u5931\\u7cbe\\u843d\\u5f69 \\u5931\\u9a6c\\u585e\\u7fc1 \\u5931\\u65f6\\u843d\\u52bf \\u8bd7\\u9152\\u98ce\\u6d41 \\u8bd7\\u9152\\u670b\\u4faa \\u8bd7\\u670b\\u9152\\u4fa3 \\u8bd7\\u670b\\u9152\\u53cb \\u8bd7\\u4e66\\u53d1\\u51a2 \\u8bd7\\u4e91\\u5b50\\u66f0 \\u8671\\u80eb\\u866e\\u809d \\u72ee\\u5b50\\u640f\\u5154 \\u65bd\\u53f7\\u53d1\\u4ee4 \\u65bd\\u65bd\\u800c\\u884c \\u5341\\u75c5\\u4e5d\\u75db \\u5341\\u6210\\u4e5d\\u7a33 \\u5341\\u62f7\\u4e5d\\u68d2 \\u5341\\u91cc\\u6d0b\\u573a \\u5341\\u516d\\u70f7\\u503c \\u5341\\u7c73\\u4e5d\\u7ce0 \\u5341\\u7720\\u4e5d\\u5750 \\u5341\\u62cf\\u4e5d\\u7a33 \\u5341\\u62ff\\u4e5d\\u7a33 \\u5341\\u4eb2\\u4e5d\\u6545 \\u5341\\u4eb2\\u4e5d\\u7737 \\u5341\\u4eba\\u4e5d\\u6155 \\u5341\\u751f\\u4e5d\\u6b7b \\u5341\\u5ba4\\u4e5d\\u7a7a \\u5341\\u5ba4\\u4e5d\\u532e \\u5341\\u6b7b\\u4e5d\\u6d3b \\u5341\\u7f8a\\u4e5d\\u7267 \\u5341\\u6709\\u516b\\u4e5d \\u5341\\u4e4b\\u516b\\u4e5d \\u5341\\u8f6c\\u4e5d\\u7a7a \\u5341\\u6349\\u4e5d\\u7740 \\u77f3\\u5934\\u5b50\\u513f \\u65f6\\u4ea8\\u8fd0\\u6cf0 \\u65f6\\u65e5\\u66f7\\u4e27 \\u8bc6\\u5fae\\u89c1\\u51e0 \\u8bc6\\u5fae\\u77e5\\u8457 \\u5b9e\\u8543\\u6709\\u5f92 \\u5b9e\\u4e8b\\u6c42\\u662f \\u5b9e\\u4e0e\\u6709\\u529b \\u62fe\\u5e26\\u91cd\\u8fd8 \\u62fe\\u6387\\u65e0\\u9057 \\u98df\\u4e0d\\u7d2f\\u5473 \\u98df\\u4e0d\\u6c42\\u7518 \\u98df\\u4e0d\\u4e0b\\u54bd \\u98df\\u7baa\\u6d46\\u58f6 \\u98df\\u9a6c\\u7559\\u809d \\u8c55\\u4ea4\\u517d\\u755c \\u4f7f\\u9152\\u9a82\\u5750 \\u4f7f\\u9152\\u9a82\\u5ea7 \\u4f7f\\u7f8a\\u5c06\\u72fc \\u5c4e\\u6eda\\u5c3f\\u6d41 \\u5c4e\\u6d41\\u5c41\\u6eda \\u5c4e\\u5c41\\u76f4\\u6d41 \\u4e16\\u6001\\u4eba\\u60c5 \\u4f3c\\u66fe\\u76f8\\u8bc6 \\u4f3c\\u6c34\\u6d41\\u5e74 \\u52bf\\u503e\\u671d\\u91ce \\u52bf\\u5728\\u5fc5\\u884c \\u4e8b\\u5371\\u7d2f\\u5375 \\u4e8b\\u4e0e\\u5fc3\\u8fdd \\u4e8b\\u5728\\u5fc5\\u884c \\u9970\\u975e\\u9042\\u8fc7 \\u9970\\u60c5\\u77eb\\u884c \\u662f\\u975e\\u66f2\\u76f4 \\u9002\\u5c45\\u5176\\u53cd \\u9002\\u5982\\u5176\\u5206 \\u8a93\\u4e0d\\u7f62\\u4f11 \\u87ab\\u624b\\u89e3\\u8155 \\u6536\\u8d2d\\u8981\\u7ea6 \\u6536\\u79bb\\u7ea0\\u6563 \\u624b\\u6273\\u846b\\u82a6 \\u624b\\u677f\\u846b\\u82a6 \\u624b\\u811a\\u5e72\\u51c0 \\u624b\\u8db3\\u91cd\\u8327 \\u5b88\\u9619\\u62b1\\u6b8b \\u5b88\\u6b63\\u4e0d\\u963f \\u9996\\u4e18\\u4e4b\\u60c5 \\u5bff\\u5143\\u65e0\\u91cf \\u53d7\\u5236\\u4e8e\\u4eba \\u7626\\u9ad8\\u6311\\u513f \\u4e66\\u7f3a\\u6709\\u95f4 \\u68b3\\u4e91\\u63a0\\u6708 \\u758f\\u4e0d\\u95f4\\u4eb2 \\u9ecd\\u79bb\\u9ea6\\u79c0 \\u9ecd\\u79c0\\u5bab\\u5ead \\u9ecd\\u6cb9\\u9ea6\\u79c0 \\u5c5e\\u8bcd\\u6bd4\\u4e8b \\u5c5e\\u8f9e\\u6bd4\\u4e8b \\u5c5e\\u6bdb\\u79bb\\u91cc \\u5c5e\\u4eba\\u8033\\u76ee \\u5c5e\\u57a3\\u6709\\u8033 \\u9f20\\u5165\\u725b\\u89d2 \\u675f\\u5e7f\\u5c31\\u72ed \\u675f\\u84b2\\u4e3a\\u812f \\u675f\\u8eab\\u5c31\\u7f1a \\u675f\\u8eab\\u81ea\\u597d \\u675f\\u624b\\u5c31\\u6bd9 \\u675f\\u624b\\u5c31\\u56f0 \\u675f\\u624b\\u5c31\\u6baa \\u675f\\u4fee\\u81ea\\u597d \\u675f\\u7f0a\\u8fd8\\u5987 \\u675f\\u7f0a\\u4e3e\\u706b \\u6811\\u7891\\u7acb\\u4f20 \\u7ad6\\u8d77\\u810a\\u6881 \\u6570\\u767d\\u8bba\\u9ec4 \\u6570\\u4e0d\\u80dc\\u6570 \\u6570\\u5178\\u5fd8\\u7956 \\u6570\\u77ed\\u8bba\\u957f \\u6570\\u9ed1\\u8bba\\u9ec4 \\u6570\\u9ec4\\u9053\\u9ed1 \\u6570\\u89c1\\u4e0d\\u9c9c \\u6570\\u4e5d\\u5bd2\\u5929 \\u6570\\u7406\\u903b\\u8f91 \\u6570\\u7c73\\u800c\\u708a \\u6570\\u5f80\\u77e5\\u6765 \\u6570\\u4e00\\u6570\\u4e8c \\u6570\\u4ee5\\u4e07\\u8ba1 \\u6f31\\u6d41\\u6795\\u77f3 \\u6f31\\u77f3\\u6795\\u6d41 \\u800d\\u5634\\u76ae\\u5b50 \\u53cc\\u8db3\\u91cd\\u8327 \\u971c\\u884c\\u8349\\u5bbf \\u971c\\u9732\\u4e4b\\u60b2 \\u971c\\u9732\\u4e4b\\u75c5 \\u971c\\u9732\\u4e4b\\u8fb0 \\u971c\\u9732\\u4e4b\\u611f \\u971c\\u9732\\u4e4b\\u601d \\u971c\\u6c14\\u6a2a\\u79cb \\u6c34\\u5230\\u9c7c\\u884c \\u6c34\\u6d41\\u82b1\\u843d \\u6c34\\u6d41\\u82b1\\u8c22 \\u6c34\\u6d41\\u4e91\\u6563 \\u6c34\\u843d\\u5f52\\u6f15 \\u6c34\\u843d\\u5f52\\u69fd \\u6c34\\u843d\\u77f3\\u51fa \\u6c34\\u7c73\\u65e0\\u5e72 \\u6c34\\u660e\\u5c71\\u79c0 \\u6c34\\u78e8\\u6c9f\\u533a \\u6c34\\u4f69\\u98ce\\u88f3 \\u6c34\\u8c03\\u6b4c\\u5934 \\u6c34\\u5bbf\\u5c71\\u884c \\u6c34\\u79c0\\u5c71\\u660e \\u6c34\\u957f\\u8239\\u9ad8 \\u6c34\\u4e2d\\u8457\\u76d0 \\u6c34\\u4e2d\\u6349\\u6708 \\u987a\\u98ce\\u5439\\u706b \\u987a\\u98ce\\u800c\\u547c \\u987a\\u98ce\\u4f7f\\u8239 \\u987a\\u98ce\\u9a76\\u8239 \\u987a\\u98ce\\u8f6c\\u8235 \\u987a\\u8513\\u6478\\u74dc \\u987a\\u4eba\\u5e94\\u5929 \\u987a\\u5929\\u5e94\\u4eba \\u77ac\\u6001\\u54cd\\u5e94 \\u70c1\\u77f3\\u6d41\\u91d1 \\u70c1\\u7389\\u6d41\\u91d1 \\u94c4\\u77f3\\u6d41\\u91d1 \\u7855\\u671b\\u5bbf\\u5fb7 \\u69ca\\u8840\\u6ee1\\u8896 \\u4e1d\\u6069\\u53d1\\u6028 \\u4e1d\\u6beb\\u4e0d\\u5dee \\u601d\\u6240\\u9010\\u4e4b \\u6b7b\\u800c\\u4e0d\\u673d \\u6b7b\\u9aa8\\u66f4\\u8089 \\u6b7b\\u91cc\\u6c42\\u751f \\u6b7b\\u4e14\\u4e0d\\u673d \\u6b7b\\u6c42\\u767d\\u8d56 \\u6b7b\\u6c42\\u767e\\u8d56 \\u6b7b\\u6b32\\u901f\\u673d \\u6b7b\\u4e2d\\u6c42\\u6d3b \\u6b7b\\u4e2d\\u6c42\\u751f \\u56db\\u4e0d\\u62d7\\u516d \\u56db\\u51b2\\u516d\\u8fbe \\u56db\\u5206\\u4e94\\u843d \\u56db\\u7eb7\\u4e94\\u843d \\u56db\\u811a\\u671d\\u5929 \\u56db\\u9a6c\\u6512\\u8e44 \\u56db\\u6e05\\u516d\\u6d3b \\u56db\\u820d\\u4e94\\u5165 \\u56db\\u4ead\\u516b\\u5f53 \\u56db\\u59fb\\u4e5d\\u621a \\u8086\\u884c\\u65e0\\u5fcc \\u8086\\u8650\\u6a2a\\u884c \\u9a03\\u5973\\u75f4\\u7537 \\u9a03\\u7ae5\\u949d\\u592b \\u677e\\u677e\\u6563\\u6563 \\u5b8b\\u65a4\\u9c81\\u524a \\u9001\\u65e7\\u8fce\\u65b0 \\u9001\\u773c\\u6d41\\u7709 \\u641c\\u5ca9\\u91c7\\u5e72 \\u85ae\\u4e2d\\u8346\\u66f2 \\u7d20\\u9690\\u884c\\u602a \\u7c9f\\u9648\\u8d2f\\u673d \\u7c9f\\u7ea2\\u8d2f\\u673d \\u6eaf\\u6d41\\u5f82\\u6e90 \\u6eaf\\u6d41\\u7a77\\u6e90 \\u6eaf\\u6d41\\u6c42\\u6e90 \\u6eaf\\u6d41\\u8ffd\\u6e90 \\u6eaf\\u6c34\\u884c\\u821f \\u6eaf\\u6e90\\u7a77\\u6d41 \\u9178\\u4e0d\\u6e9c\\u4e22 \\u7b97\\u547d\\u5148\\u751f \\u7b97\\u76d8\\u5b50\\u513f \\u968b\\u73e0\\u5f39\\u96c0 \\u968f\\u6ce2\\u9010\\u6d41 \\u968f\\u65b9\\u5c31\\u5706 \\u968f\\u98ce\\u800c\\u9761 \\u968f\\u9ad8\\u5c31\\u4f4e \\u968f\\u884c\\u5c31\\u5e02 \\u968f\\u884c\\u9010\\u961f \\u968f\\u673a\\u5e94\\u53d8 \\u968f\\u58f0\\u9644\\u548c \\u968f\\u5706\\u5c31\\u65b9 \\u968f\\u73e0\\u5f39\\u96c0 \\u5c81\\u807f\\u5176\\u83ab \\u5c81\\u6708\\u4e0d\\u5c45 \\u5c81\\u6708\\u5982\\u6d41 \\u9042\\u975e\\u6587\\u8fc7 \\u9042\\u8ff7\\u4e0d\\u5be4 \\u9042\\u8ff7\\u5fd8\\u53cd \\u9042\\u5fc3\\u5feb\\u610f \\u5b59\\u5e9e\\u6597\\u667a \\u635f\\u5175\\u6298\\u5c06 \\u635f\\u519b\\u6298\\u5c06 \\u6240\\u89c1\\u7565\\u540c \\u6240\\u5269\\u65e0\\u51e0 \\u6240\\u5411\\u62ab\\u9761 \\u7d22\\u9690\\u884c\\u602a \\u7410\\u5c3e\\u6d41\\u79bb \\u6c93\\u6765\\u8e35\\u81f3 \\u8e0f\\u8e0f\\u5b9e\\u5b9e \\u9a80\\u80cc\\u9e64\\u53d1 \\u592a\\u963f\\u5012\\u6301 \\u592a\\u4e18\\u9053\\u5e7f \\u592a\\u5c71\\u5317\\u6597 \\u6c70\\u52a3\\u7559\\u826f \\u6cf0\\u6781\\u800c\\u5426 \\u6cf0\\u6765\\u5426\\u5f80 \\u6cf0\\u5c71\\u76d8\\u77f3 \\u8d2a\\u60cf\\u65e0\\u990d \\u8d2a\\u6c42\\u65e0\\u538c \\u8d2a\\u6c42\\u65e0\\u5df2 \\u8c08\\u8a00\\u5fae\\u4e2d \\u8c2d\\u8a00\\u5fae\\u4e2d \\u8892\\u80f8\\u9732\\u80cc \\u8892\\u80f8\\u9732\\u81c2 \\u5510\\u4e34\\u664b\\u5e16 \\u5802\\u7687\\u51a0\\u5195 \\u9955\\u98ce\\u8650\\u96ea \\u6843\\u7ea2\\u67f3\\u7eff \\u6843\\u674e\\u6210\\u8e4a \\u6843\\u8e4a\\u67f3\\u964c \\u6843\\u8e4a\\u67f3\\u66f2 \\u6843\\u816e\\u67f3\\u773c \\u6843\\u7f9e\\u674f\\u8ba9 \\u6843\\u592d\\u67f3\\u5a9a \\u8ba8\\u6d41\\u6eaf\\u6e90 \\u7279\\u7acb\\u72ec\\u884c \\u817e\\u817e\\u5140\\u5140 \\u5254\\u874e\\u64a9\\u8702 \\u7ee8\\u888d\\u4e4b\\u4e49 \\u557c\\u9965\\u53f7\\u5bd2 \\u8e44\\u95f4\\u4e09\\u5bfb \\u8e44\\u9592\\u4e09\\u5bfb \\u6d95\\u6cd7\\u6a2a\\u6d41 \\u6d95\\u6cd7\\u4ea4\\u6d41 \\u6d95\\u6cd7\\u6d41\\u6d9f \\u6d95\\u6cd7\\u6ec2\\u6cb1 \\u66ff\\u5929\\u884c\\u9053 \\u5929\\u5b9d\\u5f53\\u5e74 \\u5929\\u4fdd\\u4e5d\\u5982 \\u5929\\u5dee\\u5730\\u8fdc \\u5929\\u884c\\u65f6\\u6c14 \\u5929\\u534e\\u4e71\\u5760 \\u5929\\u5f00\\u5730\\u8f9f \\u5929\\u9a6c\\u884c\\u7a7a \\u5929\\u4eba\\u611f\\u5e94 \\u5929\\u65cb\\u5730\\u8f6c \\u5929\\u8863\\u65e0\\u7f1d \\u5929\\u957f\\u5730\\u4e45 \\u5929\\u957f\\u65e5\\u4e45 \\u7530\\u7236\\u732e\\u66dd \\u7530\\u7236\\u4e4b\\u529f \\u606c\\u4e0d\\u77e5\\u7f9e \\u9766\\u989c\\u4eba\\u4e16 \\u9766\\u989c\\u4e8b\\u4ec7 \\u6311\\u5507\\u6599\\u5634 \\u6311\\u706f\\u62e8\\u706b \\u6311\\u4e48\\u6311\\u516d \\u6311\\u7259\\u6599\\u5507 \\u6311\\u5e7a\\u6311\\u516d \\u6761\\u4fee\\u53f6\\u8d2f \\u8c03\\u5175\\u9063\\u5c06 \\u8c03\\u864e\\u79bb\\u5c71 \\u8c03\\u5f26\\u54c1\\u7af9 \\u8c03\\u5634\\u8c03\\u820c \\u94c1\\u677f\\u9489\\u9489 \\u94c1\\u7ef0\\u94dc\\u7436 \\u94c1\\u6811\\u5f00\\u534e \\u542c\\u800c\\u4e0d\\u95fb \\u542c\\u5176\\u81ea\\u6d41 \\u5ef7\\u4e89\\u9762\\u6298 \\u505c\\u7559\\u957f\\u667a \\u505c\\u4e91\\u843d\\u6708 \\u901a\\u90fd\\u5927\\u57e0 \\u901a\\u90fd\\u5de8\\u9091 \\u901a\\u9091\\u5927\\u90fd \\u540c\\u5782\\u4e0d\\u673d \\u540c\\u6076\\u76f8\\u6c42 \\u540c\\u6076\\u76f8\\u6064 \\u540c\\u6076\\u76f8\\u52a9 \\u540c\\u5de5\\u5f02\\u66f2 \\u540c\\u7c7b\\u76f8\\u6c42 \\u540c\\u6d41\\u5408\\u6c61 \\u540c\\u6c14\\u76f8\\u6c42 \\u540c\\u58f0\\u76f8\\u6c42 \\u540c\\u4f11\\u7b49\\u621a \\u540c\\u4f11\\u5171\\u621a \\u540c\\u5fe7\\u76f8\\u6551 \\u540c\\u6e90\\u5171\\u6d41 \\u540c\\u6e90\\u5f02\\u6d41 \\u540c\\u6e90\\u5f02\\u6d3e \\u94dc\\u7ba1\\u4e50\\u5668 \\u94dc\\u7436\\u94c1\\u677f \\u7ae5\\u725b\\u89d2\\u9a6c \\u75db\\u54ed\\u6d41\\u6d95 \\u75db\\u6df1\\u6076\\u7edd \\u75db\\u5fc3\\u5207\\u9aa8 \\u75db\\u81ea\\u521b\\u827e \\u5934\\u51fa\\u5934\\u6ca1 \\u5934\\u4f1a\\u7b95\\u8d4b \\u5934\\u660f\\u76ee\\u6655 \\u5934\\u660f\\u8111\\u6da8 \\u5934\\u660f\\u773c\\u6655 \\u5934\\u6ca1\\u676f\\u6848 \\u5934\\u7834\\u8840\\u51fa \\u5934\\u7834\\u8840\\u6dcb \\u5934\\u7834\\u8840\\u6d41 \\u5934\\u4e0a\\u8457\\u5934 \\u5934\\u7ae5\\u9f7f\\u8c41 \\u5934\\u6655\\u773c\\u82b1 \\u5934\\u8db3\\u5012\\u7f6e \\u6295\\u97ad\\u65ad\\u6d41 \\u6295\\u4f20\\u800c\\u53bb \\u6295\\u8882\\u8377\\u6208 \\u6295\\u5176\\u6240\\u597d \\u6295\\u68ad\\u6298\\u9f7f \\u56fe\\u7a77\\u5315\\u89c1 \\u5c60\\u6240\\u725b\\u7f8a \\u571f\\u5076\\u8499\\u91d1 \\u571f\\u7a70\\u7ec6\\u6d41 \\u571f\\u58e4\\u7ec6\\u6d41 \\u571f\\u751f\\u571f\\u957f \\u5410\\u54fa\\u63e1\\u53d1 \\u5410\\u809d\\u9732\\u80c6 \\u5154\\u89d2\\u9f9f\\u6bdb \\u5154\\u89d2\\u725b\\u7ffc \\u5154\\u8d77\\u51eb\\u4e3e \\u5154\\u8d77\\u9e58\\u843d \\u5154\\u6b7b\\u51eb\\u4e3e \\u5154\\u8d70\\u9e58\\u843d \\u56e2\\u5934\\u805a\\u9762 \\u63a8\\u5e72\\u5c31\\u6e7f \\u63a8\\u5e7f\\u5e94\\u7528 \\u63a8\\u67af\\u6298\\u8150 \\u63a8\\u8f6e\\u6367\\u6bc2 \\u63a8\\u5929\\u62a2\\u5730 \\u9000\\u6b65\\u62bd\\u8eab \\u6258\\u516c\\u884c\\u79c1 \\u62d6\\u4eba\\u843d\\u6c34 \\u59a5\\u9996\\u5e16\\u8033 \\u6b6a\\u6253\\u6b63\\u7740 \\u6b6a\\u4e03\\u626d\\u516b \\u6b6a\\u6b6a\\u626d\\u626d \\u5916\\u5408\\u91cc\\u5e94 \\u5213\\u65b9\\u4e3a\\u5706 \\u7ea8\\u88b4\\u5b50\\u5f1f \\u73a9\\u65e5\\u6112\\u65f6 \\u73a9\\u5c81\\u6112\\u65e5 \\u73a9\\u7269\\u4e27\\u5fd7 \\u665a\\u98df\\u5f53\\u8089 \\u4e07\\u67cf\\u6797\\u533a \\u4e07\\u522b\\u5343\\u5dee \\u4e07\\u4ee3\\u5343\\u79cb \\u4e07\\u53e4\\u7559\\u82b3 \\u4e07\\u58d1\\u4e89\\u6d41 \\u4e07\\u7bad\\u6512\\u5fc3 \\u4e07\\u6d41\\u666f\\u4ef0 \\u4e07\\u5934\\u6512\\u52a8 \\u4e07\\u5e94\\u7075\\u4e39 \\u4e07\\u8f7d\\u5343\\u79cb \\u6c6a\\u6d0b\\u6063\\u8086 \\u4ea1\\u9b42\\u4e27\\u9b44 \\u4ea1\\u7f8a\\u5f97\\u725b \\u738b\\u4e0d\\u7559\\u884c \\u738b\\u8d21\\u5f39\\u51a0 \\u738b\\u4faf\\u5c06\\u76f8 \\u6789\\u66f2\\u76f4\\u51d1 \\u5984\\u81ea\\u83f2\\u8584 \\u5fd8\\u751f\\u820d\\u6b7b \\u671b\\u7a7f\\u79cb\\u6c34 \\u671b\\u98ce\\u800c\\u964d \\u671b\\u98ce\\u62ab\\u9761 \\u671b\\u79cb\\u5148\\u96f6 \\u671b\\u5cab\\u606f\\u5fc3 \\u671b\\u5f71\\u63e3\\u60c5 \\u5371\\u5982\\u671d\\u9732 \\u5371\\u5982\\u7d2f\\u5375 \\u5371\\u82e5\\u671d\\u9732 \\u5371\\u8a00\\u5371\\u884c \\u5371\\u4e8e\\u7d2f\\u5375 \\u5a01\\u6151\\u529b\\u91cf \\u5a01\\u91cd\\u4ee4\\u884c \\u9036\\u8fe4\\u9000\\u98df \\u504e\\u5e72\\u5c31\\u6e7f \\u5fae\\u5bdf\\u79cb\\u6beb \\u5fae\\u670d\\u79c1\\u884c \\u7168\\u5e72\\u907f\\u6e7f \\u7168\\u5e72\\u5c31\\u6e7f \\u4e3a\\u4e1b\\u9a71\\u96c0 \\u4e3a\\u56fd\\u6350\\u8eaf \\u4e3a\\u864e\\u5085\\u7ffc \\u4e3a\\u864e\\u6dfb\\u7ffc \\u4e3a\\u864e\\u4f5c\\u4f25 \\u4e3a\\u6c11\\u9664\\u5bb3 \\u4e3a\\u6c11\\u8bf7\\u547d \\u4e3a\\u88d8\\u4e3a\\u7b95 \\u4e3a\\u4eba\\u8bf4\\u9879 \\u4e3a\\u4eba\\u4f5c\\u5ac1 \\u4e3a\\u5c0f\\u5931\\u5927 \\u4e3a\\u6e0a\\u9a71\\u9c7c \\u8fdd\\u5bb3\\u5c31\\u5229 \\u56f4\\u9b4f\\u6551\\u8d75 \\u5e0f\\u8584\\u4e0d\\u4fee \\u5e0f\\u7b94\\u4e0d\\u4fee \\u552f\\u5229\\u662f\\u6c42 \\u552f\\u552f\\u5426\\u5426 \\u552f\\u552f\\u8fde\\u58f0 \\u5e37\\u8584\\u4e0d\\u4fee \\u5e37\\u7b94\\u4e0d\\u4fee \\u5e37\\u5e55\\u4e0d\\u4fee \\u60df\\u53e3\\u8d77\\u7f9e \\u60df\\u5229\\u662f\\u6c42 \\u60df\\u5229\\u662f\\u8d8b \\u60df\\u5999\\u60df\\u8096 \\u7ef4\\u5999\\u7ef4\\u8096 \\u59d4\\u66f2\\u6210\\u5168 \\u59d4\\u59d4\\u4f57\\u4f57 \\u672a\\u660e\\u6c42\\u8863 \\u6e29\\u887e\\u6247\\u6795 \\u6e29\\u51ca\\u5b9a\\u7701 \\u6e29\\u5e2d\\u6247\\u6795 \\u6e29\\u6795\\u6247\\u5e2d \\u6587\\u623f\\u56db\\u4faf \\u6587\\u8fc7\\u9042\\u975e \\u6587\\u884c\\u51fa\\u5904 \\u6587\\u7ecf\\u6b66\\u7565 \\u6587\\u671f\\u9152\\u4f1a \\u6587\\u97ec\\u6b66\\u7565 \\u6587\\u4fee\\u6b66\\u5907 \\u6587\\u4fee\\u6b66\\u5043 \\u6587\\u4ee5\\u8f7d\\u9053 \\u6587\\u7ae0\\u5c71\\u6597 \\u6587\\u7ae0\\u661f\\u6597 \\u6587\\u7ae0\\u618e\\u547d \\u7a33\\u6b65\\u524d\\u8fdb \\u7a33\\u64cd\\u80dc\\u5238 \\u7a33\\u64cd\\u80dc\\u7b97 \\u7a33\\u64cd\\u5de6\\u5238 \\u7a33\\u5403\\u4e09\\u6ce8 \\u7a33\\u624e\\u7a33\\u6253 \\u95ee\\u67f3\\u8bc4\\u82b1 \\u95ee\\u67f3\\u5bfb\\u82b1 \\u95ee\\u725b\\u77e5\\u9a6c \\u95ee\\u820d\\u6c42\\u7530 \\u74ee\\u5929\\u8821\\u6d77 \\u8717\\u884c\\u725b\\u6b65 \\u8717\\u820d\\u8346\\u6249 \\u6211\\u884c\\u6211\\u7d20 \\u6370\\u8896\\u63ce\\u62f3 \\u63e1\\u53d1\\u5410\\u54fa \\u63e1\\u53d1\\u5410\\u98e7 \\u63e1\\u7c9f\\u51fa\\u535c \\u63e1\\u70ad\\u6d41\\u6c64 \\u4e4c\\u8e06\\u5154\\u8d70 \\u65e0\\u75c5\\u547b\\u541f \\u65e0\\u7684\\u653e\\u77e2 \\u65e0\\u7f1d\\u94a2\\u7ba1 \\u65e0\\u670d\\u4e4b\\u4e27 \\u65e0\\u8ff9\\u53ef\\u6c42 \\u65e0\\u7586\\u4e4b\\u4f11 \\u65e0\\u5c3d\\u65e0\\u4f11 \\u65e0\\u7cbe\\u55d2\\u5f69 \\u65e0\\u80eb\\u800c\\u884c \\u65e0\\u65e7\\u65e0\\u65b0 \\u65e0\\u548e\\u65e0\\u8a89 \\u65e0\\u53ef\\u6bd4\\u62df \\u65e0\\u53ef\\u6551\\u836f \\u65e0\\u5bc7\\u66b4\\u6b7b \\u65e0\\u4e86\\u65e0\\u4f11 \\u65e0\\u4f24\\u65e0\\u81ed \\u65e0\\u58f0\\u65e0\\u81ed \\u65e0\\u4f11\\u65e0\\u4e86 \\u65e0\\u989c\\u843d\\u8272 \\u65e0\\u4ee5\\u585e\\u8d23 \\u543e\\u81ea\\u6709\\u5904 \\u5434\\u725b\\u5598\\u6708 \\u5434\\u4e0b\\u963f\\u8499 \\u4e94\\u85cf\\u516d\\u5e9c \\u4e94\\u51ac\\u516d\\u590f \\u4e94\\u6597\\u6298\\u8170 \\u4e94\\u884c\\u4ff1\\u4e0b \\u4e94\\u5408\\u516d\\u805a \\u4e94\\u4faf\\u8721\\u70db \\u4e94\\u4faf\\u4e03\\u8d35 \\u4e94\\u9ec4\\u516d\\u6708 \\u4e94\\u79ef\\u516d\\u53d7 \\u4e94\\u810a\\u516d\\u517d \\u4e94\\u89d2\\u516d\\u5f20 \\u4e94\\u9675\\u5e74\\u5c11 \\u4e94\\u96f6\\u4e8c\\u843d \\u4e94\\u62a2\\u516d\\u593a \\u4e94\\u4eb2\\u516d\\u7737 \\u4e94\\u96c0\\u516d\\u71d5 \\u4e94\\u7533\\u4e09\\u4ee4 \\u4e94\\u77f3\\u516d\\u9e62 \\u4e94\\u5fc3\\u516d\\u610f \\u4e94\\u865a\\u516d\\u8017 \\u4e94\\u989c\\u516d\\u8272 \\u4e94\\u97f3\\u516d\\u5f8b \\u4e94\\u6708\\u62ab\\u88d8 \\u6b66\\u5043\\u6587\\u4fee \\u7269\\u961c\\u6c11\\u5b89 \\u5be4\\u5bd0\\u6c42\\u4e4b \\u897f\\u585e\\u5c71\\u533a \\u5438\\u98ce\\u996e\\u9732 \\u6790\\u5f8b\\u821e\\u6587 \\u606f\\u8ff9\\u9759\\u5904 \\u6089\\u7d22\\u8584\\u8d4b \\u6670\\u6bdb\\u8fa8\\u53d1 \\u7a00\\u91cc\\u5149\\u5f53 \\u7a00\\u91cc\\u7cca\\u6d82 \\u7a00\\u91cc\\u54d7\\u5566 \\u7a00\\u7a00\\u843d\\u843d \\u7280\\u725b\\u671b\\u6708 \\u7280\\u7167\\u725b\\u6e1a \\u819d\\u884c\\u800c\\u524d \\u819d\\u884c\\u530d\\u4f0f \\u819d\\u884c\\u84b2\\u4f0f \\u819d\\u884c\\u8098\\u6b65 \\u819d\\u8bed\\u86c7\\u884c \\u6b59\\u6f06\\u963f\\u80f6 \\u4e60\\u7109\\u4e0d\\u5bdf \\u5e2d\\u5377\\u800c\\u9003 \\u6d17\\u57a2\\u6c42\\u7622 \\u6d17\\u57a2\\u6c42\\u7455 \\u6d17\\u9888\\u5c31\\u622e \\u6d17\\u624b\\u4e0d\\u5e72 \\u559c\\u884c\\u4e8e\\u8272 \\u559c\\u65b0\\u538c\\u65e7 \\u7ec6\\u56bc\\u6162\\u54bd \\u7ec6\\u6c34\\u957f\\u6d41 \\u867e\\u5175\\u87f9\\u5c06 \\u778e\\u5b50\\u6478\\u9c7c \\u5323\\u91cc\\u9f99\\u541f \\u7455\\u745c\\u4e92\\u89c1 \\u4e0b\\u9010\\u5ba2\\u4ee4 \\u4ed9\\u9732\\u660e\\u73e0 \\u5148\\u884c\\u540e\\u95fb \\u6380\\u62f3\\u88f8\\u8896 \\u9c9c\\u4e3a\\u4eba\\u77e5 \\u9c9c\\u8840\\u6dcb\\u6f13 \\u54b8\\u9633\\u4e00\\u70ac \\u6d8e\\u8138\\u9967\\u773c \\u663e\\u5c71\\u9732\\u6c34 \\u9677\\u843d\\u8ba1\\u4e2d \\u76f8\\u5dee\\u65e0\\u51e0 \\u76f8\\u8f85\\u800c\\u884c \\u76f8\\u673a\\u800c\\u52a8 \\u76f8\\u673a\\u884c\\u4e8b \\u76f8\\u95e8\\u6709\\u76f8 \\u76f8\\u5973\\u914d\\u592b \\u76f8\\u5fcd\\u4e3a\\u56fd \\u76f8\\u65f6\\u800c\\u52a8 \\u76f8\\u9f20\\u6709\\u76ae \\u9999\\u95fa\\u7ee3\\u9601 \\u9999\\u57f9\\u7389\\u7422 \\u9999\\u8c61\\u7edd\\u6d41 \\u8be6\\u60c5\\u5ea6\\u7406 \\u54cd\\u904f\\u884c\\u4e91 \\u50cf\\u6a21\\u50cf\\u6837 \\u6a61\\u76ae\\u9489\\u5b50 \\u67b5\\u8179\\u7ec8\\u671d \\u54d3\\u54d3\\u4e0d\\u4f11 \\u9500\\u795e\\u6d41\\u5fd7 \\u7bab\\u97f6\\u4e5d\\u6210 \\u5c0f\\u4e0d\\u70b9\\u513f \\u5c0f\\u5bb6\\u5b50\\u6c14 \\u5c0f\\u5ec9\\u66f2\\u8c28 \\u5c0f\\u773c\\u8584\\u76ae \\u6653\\u884c\\u591c\\u5bbf \\u6653\\u884c\\u591c\\u4f4f \\u6821\\u77ed\\u91cf\\u957f \\u6548\\u6b7b\\u7586\\u573a \\u5578\\u4fa3\\u547d\\u4fe6 \\u6569\\u5b66\\u76f8\\u957f \\u874e\\u874e\\u87ab\\u87ab \\u90aa\\u9b54\\u5916\\u795f \\u80c1\\u80a9\\u7d6b\\u8db3 \\u80c1\\u80a9\\u7d2f\\u8db3 \\u659c\\u884c\\u6a2a\\u9635 \\u5378\\u78e8\\u6740\\u9a74 \\u5fc3\\u9a70\\u9b4f\\u9619 \\u5fc3\\u5e7f\\u4f53\\u80d6 \\u5fc3\\u5bd2\\u80c6\\u843d \\u5fc3\\u614c\\u64a9\\u4e71 \\u5fc3\\u808c\\u6897\\u585e \\u5fc3\\u6025\\u706b\\u71ce \\u5fc3\\u60ca\\u80c6\\u98a4 \\u5fc3\\u60ca\\u80c6\\u843d \\u5fc3\\u5bbd\\u4f53\\u80d6 \\u5fc3\\u53bb\\u96be\\u7559 \\u5fc3\\u624b\\u76f8\\u5e94 \\u5fc3\\u7ec6\\u5982\\u53d1 \\u5fc3\\u9038\\u65e5\\u4f11 \\u5fc3\\u6b92\\u80c6\\u843d \\u5fc3\\u5728\\u9b4f\\u9619 \\u5fc3\\u77bb\\u9b4f\\u9619 \\u5fc3\\u957f\\u53d1\\u77ed \\u5fc3\\u62d9\\u53e3\\u592f \\u65b0\\u4ec7\\u65e7\\u6068 \\u65b0\\u6101\\u65e7\\u6068 \\u65b0\\u76ca\\u6c42\\u65b0 \\u4fe1\\u6b65\\u800c\\u884c \\u4fe1\\u800c\\u597d\\u53e4 \\u661f\\u884c\\u7535\\u5f81 \\u661f\\u884c\\u591c\\u5f52 \\u661f\\u6d41\\u7535\\u51fb \\u661f\\u6d41\\u9706\\u51fb \\u661f\\u843d\\u4e91\\u6563 \\u661f\\u661f\\u843d\\u843d \\u8165\\u98ce\\u8840\\u96e8 \\u8165\\u95fb\\u5728\\u4e0a \\u5f62\\u683c\\u52bf\\u7981 \\u5f62\\u52ab\\u52bf\\u7981 \\u5f62\\u7981\\u52bf\\u683c \\u5174\\u9ad8\\u91c7\\u70c8 \\u5174\\u9ad8\\u5f69\\u70c8 \\u5174\\u89c2\\u7fa4\\u6028 \\u5174\\u4f1a\\u6dcb\\u6f13 \\u5174\\u5982\\u56bc\\u8721 \\u5174\\u81f4\\u6dcb\\u6f13 \\u674f\\u4ec1\\u8c46\\u8150 \\u51f6\\u795e\\u6076\\u715e \\u6c79\\u6d8c\\u6ddc\\u6e43 \\u6c79\\u6d8c\\u5f6d\\u6e43 \\u80f8\\u6709\\u6210\\u7565 \\u80f8\\u6709\\u4e18\\u58d1 \\u80f8\\u6709\\u90b1\\u58d1 \\u96c4\\u624d\\u5927\\u7565 \\u96c4\\u6750\\u5927\\u7565 \\u718a\\u97ec\\u8c79\\u7565 \\u4f11\\u5175\\u7f62\\u6218 \\u4f11\\u660e\\u76db\\u4e16 \\u4f11\\u725b\\u5f52\\u9a6c \\u4f11\\u725b\\u6563\\u9a6c \\u4f11\\u58f0\\u7f8e\\u8a89 \\u4f11\\u4f11\\u6709\\u5bb9 \\u4fee\\u8f9e\\u7acb\\u8bda \\u4fee\\u77ed\\u968f\\u5316 \\u4fee\\u65e7\\u5229\\u5e9f \\u4fee\\u65e7\\u8d77\\u5e9f \\u4fee\\u9cde\\u517b\\u722a \\u4fee\\u9f50\\u6cbb\\u5e73 \\u4fee\\u6865\\u8865\\u8def \\u4fee\\u8eab\\u6d01\\u884c \\u4fee\\u6587\\u5043\\u6b66 \\u4fee\\u5fc3\\u517b\\u6027 \\u4fee\\u771f\\u517b\\u6027 \\u8129\\u8f9e\\u7acb\\u8bda \\u7f9e\\u82b1\\u95ed\\u6708 \\u7f9e\\u9762\\u89c1\\u4eba \\u7f9e\\u4eba\\u7b54\\u7b54 \\u7f9e\\u7f9e\\u7b54\\u7b54 \\u7f9e\\u4ee5\\u725b\\u540e \\u7f9e\\u4e0e\\u54d9\\u4f0d \\u7f9e\\u4e0e\\u4e3a\\u4f0d \\u673d\\u6208\\u949d\\u7532 \\u673d\\u9aa8\\u91cd\\u8089 \\u673d\\u68d8\\u4e0d\\u5f6b \\u673d\\u68d8\\u4e0d\\u96d5 \\u673d\\u6728\\u4e0d\\u96d5 \\u673d\\u6728\\u7caa\\u5899 \\u673d\\u6728\\u96be\\u5f6b \\u673d\\u6728\\u96be\\u96d5 \\u673d\\u6728\\u751f\\u82b1 \\u673d\\u7d22\\u9a6d\\u9a6c \\u673d\\u6761\\u8150\\u7d22 \\u673d\\u682a\\u67af\\u6728 \\u673d\\u7af9\\u7bd9\\u821f \\u5bbf\\u6c34\\u98e1\\u98ce \\u5bbf\\u6c34\\u9910\\u98ce \\u5bbf\\u5b66\\u65e7\\u5112 \\u5bbf\\u96e8\\u9910\\u98ce \\u79c0\\u51fa\\u73ed\\u884c \\u79c0\\u800c\\u4e0d\\u5b9e \\u79c0\\u8272\\u53ef\\u9910 \\u79c0\\u6c34\\u660e\\u5c71 \\u79c0\\u5916\\u6167\\u4e2d \\u8896\\u624b\\u65c1\\u89c2 \\u7ee3\\u864e\\u96d5\\u9f99 \\u7ee3\\u82b1\\u6795\\u5934 \\u7ee3\\u53e3\\u9526\\u5fc3 \\u890e\\u7136\\u51a0\\u9996 \\u890e\\u7136\\u5c45\\u9996 \\u890e\\u7136\\u4e3e\\u9996 \\u890e\\u5982\\u5145\\u8033 \\u5401\\u5488\\u90fd\\u4fde \\u5401\\u5929\\u547c\\u5730 \\u987b\\u53d1\\u7686\\u767d \\u865a\\u6643\\u4e00\\u67aa \\u865a\\u65e0\\u7f25\\u7f08 \\u865a\\u5e94\\u6545\\u4e8b \\u865a\\u4e0e\\u59d4\\u86c7 \\u865a\\u5634\\u63a0\\u820c \\u9157\\u9152\\u6ecb\\u4e8b \\u7d6e\\u7d6e\\u53e8\\u53e8 \\u8f69\\u9e64\\u51a0\\u7334 \\u5ba3\\u5316\\u627f\\u6d41 \\u63ce\\u62f3\\u62e2\\u8896 \\u63ce\\u62f3\\u63b3\\u8896 \\u63ce\\u62f3\\u88f8\\u8896 \\u63ce\\u62f3\\u651e\\u8896 \\u63ce\\u62f3\\u634b\\u8896 \\u63ce\\u62f3\\u821e\\u8896 \\u7384\\u9152\\u74e0\\u812f \\u60ac\\u9f9f\\u7cfb\\u9c7c \\u60ac\\u77f3\\u7a0b\\u4e66 \\u60ac\\u9996\\u5434\\u9619 \\u60ac\\u69bb\\u7559\\u5bbe \\u60ac\\u9a7c\\u5c31\\u77f3 \\u65cb\\u8f6c\\u5e72\\u5764 \\u7487\\u9704\\u4e39\\u9619 \\u70ab\\u5de7\\u6597\\u598d \\u70ab\\u7389\\u8d3e\\u77f3 \\u524a\\u8349\\u9664\\u6839 \\u524a\\u53d1\\u62ab\\u7f01 \\u524a\\u6728\\u4e3a\\u540f \\u524a\\u94c1\\u65e0\\u58f0 \\u524a\\u804c\\u4e3a\\u6c11 \\u524a\\u8dbe\\u9002\\u5c66 \\u524a\\u682a\\u6398\\u6839 \\u524a\\u8db3\\u9002\\u5c65 \\u5b66\\u7a76\\u5929\\u4eba \\u5b66\\u751f\\u8fd0\\u52a8 \\u96ea\\u7a97\\u8424\\u51e0 \\u96ea\\u8650\\u98ce\\u9955 \\u8840\\u98ce\\u8089\\u96e8 \\u8840\\u5149\\u4e4b\\u707e \\u8840\\u6d77\\u6df1\\u4ec7 \\u8840\\u7ea2\\u86cb\\u767d \\u8840\\u53e3\\u55b7\\u4eba \\u8840\\u6cea\\u76c8\\u895f \\u8840\\u6d41\\u6210\\u6cb3 \\u8840\\u6d41\\u6210\\u6e20 \\u8840\\u6d41\\u6f02\\u6775 \\u8840\\u6d41\\u5982\\u6ce8 \\u8840\\u76c6\\u5927\\u53e3 \\u8840\\u6c14\\u65b9\\u521a \\u8840\\u67d3\\u6c99\\u573a \\u8840\\u8089\\u6a2a\\u98de \\u8840\\u8089\\u76f8\\u8054 \\u8840\\u96e8\\u8165\\u98ce \\u8c11\\u800c\\u4e0d\\u8650 \\u57d9\\u7bea\\u76f8\\u548c \\u718f\\u83b8\\u540c\\u5668 \\u5bfb\\u6839\\u7a76\\u5e95 \\u5bfb\\u884c\\u6570\\u58a8 \\u5bfb\\u58d1\\u7ecf\\u4e18 \\u5bfb\\u82b1\\u89c5\\u67f3 \\u5bfb\\u82b1\\u95ee\\u67f3 \\u5bfb\\u6d41\\u9010\\u672b \\u8fc5\\u7535\\u6d41\\u5149 \\u538b\\u7535\\u6548\\u5e94 \\u538b\\u96ea\\u6c42\\u6cb9 \\u9e2d\\u6b65\\u9e45\\u884c \\u9e2d\\u884c\\u9e45\\u6b65 \\u96c5\\u91cf\\u9ad8\\u81f4 \\u63e0\\u82d7\\u52a9\\u957f \\u54bd\\u82e6\\u5410\\u7518 \\u54bd\\u82e6\\u541e\\u7518 \\u70df\\u89c6\\u5a9a\\u884c \\u70df\\u971e\\u75fc\\u75be \\u70df\\u718f\\u706b\\u71ce \\u6e6e\\u6ca1\\u65e0\\u95fb \\u5ef6\\u9888\\u8dc2\\u8e35 \\u4e25\\u4e1d\\u5408\\u7f1d \\u8a00\\u5fc5\\u6709\\u4e2d \\u8a00\\u4e0d\\u902e\\u610f \\u8a00\\u4e0d\\u987e\\u884c \\u8a00\\u4e0d\\u53ca\\u884c \\u8a00\\u4ece\\u8ba1\\u884c \\u8a00\\u591a\\u4f24\\u884c \\u8a00\\u65b9\\u884c\\u5706 \\u8a00\\u82b3\\u884c\\u6d01 \\u8a00\\u5f52\\u6b63\\u4f20 \\u8a00\\u884c\\u62b1\\u4e00 \\u8a00\\u884c\\u4e0d\\u8d30 \\u8a00\\u884c\\u8ba1\\u4ece \\u8a00\\u884c\\u82e5\\u4e00 \\u8a00\\u884c\\u76f8\\u526f \\u8a00\\u884c\\u76f8\\u8be1 \\u8a00\\u884c\\u4fe1\\u679c \\u8a00\\u6c14\\u5351\\u5f31 \\u8a00\\u6e05\\u884c\\u6d4a \\u8a00\\u5341\\u5984\\u4e5d \\u8a00\\u542c\\u884c\\u4ece \\u8a00\\u542c\\u8ba1\\u884c \\u8a00\\u542c\\u4e8b\\u884c \\u8a00\\u6587\\u884c\\u8fdc \\u8a00\\u4fe1\\u884c\\u679c \\u8a00\\u626c\\u884c\\u4e3e \\u6cbf\\u6d41\\u8ba8\\u6e90 \\u7814\\u4eac\\u7ec3\\u90fd \\u7814\\u7cbe\\u7a76\\u5fae \\u989c\\u9aa8\\u67f3\\u7b4b \\u989c\\u7b4b\\u67f3\\u9aa8 \\u989c\\u7cbe\\u67f3\\u9aa8 \\u773c\\u89c2\\u516d\\u8def \\u773c\\u82b1\\u64a9\\u4e71 \\u5043\\u5175\\u4fee\\u6587 \\u5043\\u65d7\\u4ec6\\u9f13 \\u5043\\u6b66\\u884c\\u6587 \\u5043\\u6b66\\u4f11\\u5175 \\u5043\\u6b66\\u4fee\\u6587 \\u538c\\u96be\\u6298\\u51b2 \\u5bb4\\u5b89\\u9e20\\u6bd2 \\u639e\\u85fb\\u98de\\u58f0 \\u96c1\\u8fc7\\u7559\\u58f0 \\u71d5\\u5cb1\\u4e4b\\u77f3 \\u71d5\\u6b4c\\u8d75\\u821e \\u71d5\\u9894\\u866c\\u987b \\u71d5\\u9a7e\\u8d8a\\u6bc2 \\u71d5\\u91d1\\u52df\\u79c0 \\u71d5\\u4eac\\u5564\\u9152 \\u71d5\\u9a8f\\u5343\\u91d1 \\u71d5\\u77f3\\u5984\\u73cd \\u71d5\\u5e02\\u60b2\\u6b4c \\u71d5\\u662d\\u597d\\u9a6c \\u71d5\\u662d\\u5e02\\u9a8f \\u626c\\u98ce\\u6262\\u96c5 \\u626c\\u5df1\\u9732\\u624d \\u626c\\u5389\\u94fa\\u5f20 \\u626c\\u7709\\u7734\\u76ee \\u7f8a\\u80a0\\u4e5d\\u66f2 \\u7f8a\\u843d\\u864e\\u53e3 \\u6768\\u67f3\\u5bab\\u7709 \\u6d0b\\u91cc\\u6d0b\\u6c14 \\u6d0b\\u6d0b\\u7e9a\\u7e9a \\u536c\\u9996\\u4fe1\\u7709 \\u536c\\u5934\\u9614\\u6b65 \\u4ef0\\u4e8b\\u4fdb\\u755c \\u4ef0\\u5c4b\\u7740\\u4e66 \\u517b\\u864e\\u7559\\u60a3 \\u517b\\u7cbe\\u755c\\u9510 \\u517b\\u751f\\u4e27\\u6b7b \\u517b\\u97f3\\u4e5d\\u768b \\u5e7a\\u9ebd\\u5c0f\\u4e11 \\u5e7a\\u8c5a\\u66ae\\u9e68 \\u5406\\u4e94\\u559d\\u516d \\u9080\\u529f\\u6c42\\u8d4f \\u6447\\u624b\\u89e6\\u7981 \\u6447\\u5934\\u6643\\u8111 \\u6447\\u5c3e\\u6c42\\u98df \\u6447\\u6447\\u6643\\u6643 \\u9065\\u547c\\u76f8\\u5e94 \\u9065\\u76f8\\u547c\\u5e94 \\u7476\\u53f0\\u94f6\\u9619 \\u6773\\u65e0\\u8e2a\\u8ff9 \\u54ac\\u7d27\\u7259\\u5173 \\u54ac\\u8840\\u4e3a\\u76df \\u8036\\u8def\\u6492\\u51b7 \\u91ce\\u8c03\\u65e0\\u8154 \\u53f6\\u516c\\u597d\\u9f99 \\u53f6\\u843d\\u5f52\\u6839 \\u53f6\\u843d\\u77e5\\u79cb \\u591c\\u884c\\u88ab\\u7ee3 \\u4e00\\u66b4\\u5341\\u5bd2 \\u4e00\\u7b14\\u62b9\\u644b \\u4e00\\u97ad\\u5148\\u8457 \\u4e00\\u6ce2\\u4e09\\u6298 \\u4e00\\u4e0d\\u626d\\u4f17 \\u4e00\\u573a\\u6625\\u68a6 \\u4e00\\u5021\\u767e\\u548c \\u4e00\\u5531\\u4e00\\u548c \\u4e00\\u6b21\\u65b9\\u7a0b \\u4e00\\u8e74\\u800c\\u5c31 \\u4e00\\u8e74\\u53ef\\u51e0 \\u4e00\\u5f39\\u6307\\u9877 \\u4e00\\u4e01\\u70b9\\u513f \\u4e00\\u53d1\\u7834\\u7684 \\u4e00\\u53d1\\u5343\\u94a7 \\u4e00\\u5e06\\u98ce\\u987a \\u4e00\\u5085\\u4f17\\u54bb \\u4e00\\u80a1\\u52b2\\u513f \\u4e00\\u80a1\\u8111\\u513f \\u4e00\\u884c\\u4f5c\\u540f \\u4e00\\u6beb\\u4e0d\\u5dee \\u4e00\\u5475\\u800c\\u5c31 \\u4e00\\u54c4\\u800c\\u8d77 \\u4e00\\u54c4\\u800c\\u6563 \\u4e00\\u54c4\\u800c\\u4e0a \\u4e00\\u547c\\u767e\\u5e94 \\u4e00\\u6325\\u800c\\u5c31 \\u4e00\\u6325\\u4e5d\\u5236 \\u4e00\\u89c1\\u4e86\\u7136 \\u4e00\\u89c1\\u5982\\u65e7 \\u4e00\\u7bad\\u4e0a\\u579b \\u4e00\\u63a5\\u5982\\u65e7 \\u4e00\\u8e76\\u4e0d\\u5174 \\u4e00\\u5321\\u4e5d\\u5408 \\u4e00\\u52b3\\u4e45\\u9038 \\u4e00\\u4e86\\u767e\\u5f53 \\u4e00\\u6e9c\\u6b6a\\u659c \\u4e00\\u8def\\u795e\\u7947 \\u4e00\\u843d\\u5343\\u4e08 \\u4e00\\u6a21\\u4e8c\\u6837 \\u4e00\\u6a21\\u4e00\\u6837 \\u4e00\\u5e74\\u5230\\u5934 \\u4e00\\u5e74\\u56db\\u5b63 \\u4e00\\u5ff5\\u4e4b\\u5dee \\u4e00\\u725b\\u543c\\u5730 \\u4e00\\u725b\\u4e5d\\u9501 \\u4e00\\u725b\\u9e23\\u5730 \\u4e00\\u76d8\\u6563\\u6c99 \\u4e00\\u4e18\\u4e00\\u58d1 \\u4e00\\u4e18\\u4e4b\\u8c89 \\u4e00\\u90b1\\u4e4b\\u8c89 \\u4e00\\u66f2\\u9633\\u5173 \\u4e00\\u4ecd\\u65e7\\u8d2f \\u4e00\\u65e5\\u4e5d\\u8fc1 \\u4e00\\u65e5\\u4e09\\u79cb \\u4e00\\u65e5\\u4e09\\u7701 \\u4e00\\u65e5\\u4e07\\u51e0 \\u4e00\\u751f\\u4e5d\\u6b7b \\u4e00\\u65f6\\u4e4b\\u79c0 \\u4e00\\u5c81\\u4e5d\\u8fc1 \\u4e00\\u5c81\\u8f7d\\u8d66 \\u4e00\\u584c\\u522e\\u5b50 \\u4e00\\u584c\\u7cca\\u6d82 \\u4e00\\u5929\\u5230\\u665a \\u4e00\\u65e0\\u662f\\u5904 \\u4e00\\u65e0\\u6240\\u6c42 \\u4e00\\u4e94\\u4e00\\u5341 \\u4e00\\u73b0\\u6619\\u534e \\u4e00\\u8a00\\u4e5d\\u9f0e \\u4e00\\u8a00\\u4e27\\u90a6 \\u4e00\\u8a00\\u4e00\\u884c \\u4e00\\u8a00\\u4e2d\\u7684 \\u4e00\\u53f6\\u62a5\\u79cb \\u4e00\\u53f6\\u6241\\u821f \\u4e00\\u53f6\\u77e5\\u79cb \\u4e00\\u610f\\u5b64\\u884c \\u4e00\\u541f\\u4e00\\u548f \\u4e00\\u8bed\\u7834\\u7684 \\u4e00\\u8bed\\u4e2d\\u7684 \\u4e00\\u91cd\\u4e00\\u63a9 \\u4e00\\u5b57\\u5343\\u79cb \\u8863\\u88ab\\u7fa4\\u751f \\u8863\\u5355\\u98df\\u8584 \\u8863\\u51a0\\u793c\\u4e50 \\u8863\\u9526\\u8fc7\\u4e61 \\u8863\\u9526\\u8fd8\\u4e61 \\u8863\\u9526\\u8927\\u8863 \\u8863\\u9526\\u8363\\u5f52 \\u8863\\u9526\\u98df\\u8089 \\u8863\\u9526\\u591c\\u884c \\u8863\\u9526\\u591c\\u6e38 \\u8863\\u9526\\u663c\\u884c \\u8863\\u9526\\u663c\\u6e38 \\u8863\\u9a6c\\u8f7b\\u80a5 \\u8863\\u8f7b\\u4e58\\u80a5 \\u8863\\u88f3\\u4e4b\\u4f1a \\u8863\\u98df\\u4f4f\\u884c \\u8863\\u7ee3\\u591c\\u884c \\u8863\\u7ee3\\u591c\\u6e38 \\u8863\\u7ee3\\u663c\\u884c \\u8863\\u79df\\u98df\\u7a0e \\u533b\\u65f6\\u6551\\u5f0a \\u4f9d\\u963f\\u53d6\\u5bb9 \\u4f9d\\u6d41\\u5e73\\u8fdb \\u4f9d\\u5934\\u7f15\\u5f53 \\u4f9d\\u6837\\u846b\\u82a6 \\u4f9d\\u4f9d\\u4e0d\\u820d \\u6b39\\u5d5a\\u5386\\u843d \\u79fb\\u8239\\u5c31\\u5cb8 \\u79fb\\u7684\\u5c31\\u7bad \\u79fb\\u4e1c\\u5c31\\u897f \\u79fb\\u7f13\\u5c31\\u6025 \\u79fb\\u6a3d\\u5c31\\u6559 \\u9057\\u81ed\\u5343\\u79cb \\u9057\\u5fb7\\u4f11\\u70c8 \\u9057\\u5bdd\\u8f7d\\u6000 \\u9057\\u4e16\\u5fd8\\u7d2f \\u9057\\u4f11\\u4f59\\u70c8 \\u7591\\u884c\\u65e0\\u6210 \\u4ee5\\u89c4\\u4e3a\\u7471 \\u4ee5\\u8377\\u6790\\u85aa \\u4ee5\\u706b\\u6551\\u706b \\u4ee5\\u5df1\\u5ea6\\u4eba \\u4ee5\\u9152\\u89e3\\u9172 \\u4ee5\\u72f8\\u9975\\u9f20 \\u4ee5\\u5229\\u7d2f\\u5f62 \\u4ee5\\u6bdb\\u76f8\\u9a6c \\u4ee5\\u90c4\\u89c6\\u6587 \\u4ee5\\u6c42\\u4e00\\u901e \\u4ee5\\u5c48\\u6c42\\u4f38 \\u4ee5\\u8089\\u9927\\u864e \\u4ee5\\u5347\\u91cf\\u77f3 \\u4ee5\\u758f\\u95f4\\u4eb2 \\u4ee5\\u6c34\\u6d4e\\u6c34 \\u4ee5\\u6c34\\u6551\\u6c34 \\u4ee5\\u6c34\\u6d17\\u8840 \\u4ee5\\u5fae\\u77e5\\u7740 \\u4ee5\\u8840\\u6d17\\u8840 \\u4ee5\\u7f8a\\u6613\\u725b \\u4ee5\\u73e0\\u5f39\\u96c0 \\u8681\\u6597\\u8717\\u4e89 \\u8681\\u96c6\\u8702\\u6512 \\u8681\\u805a\\u8702\\u6512 \\u8681\\u62e5\\u8702\\u6512 \\u501a\\u95e8\\u501a\\u95fe \\u4e49\\u8584\\u4e91\\u5929 \\u5f02\\u66f2\\u540c\\u5de5 \\u7fbf\\u5c04\\u4e5d\\u65e5 \\u8c0a\\u5207\\u82d4\\u5c91 \\u9038\\u5174\\u9044\\u98de \\u9038\\u5174\\u6a2a\\u98de \\u9038\\u5174\\u4e91\\u98de \\u858f\\u82e1\\u8499\\u8c24 \\u56e0\\u516c\\u884c\\u79c1 \\u56e0\\u964b\\u5c31\\u5be1 \\u56e0\\u964b\\u5c31\\u7b80 \\u56e0\\u964b\\u5b88\\u65e7 \\u56e0\\u88ad\\u9648\\u89c4 \\u9634\\u5dee\\u9633\\u9519 \\u9634\\u9519\\u9633\\u5dee \\u9634\\u670d\\u5fae\\u884c \\u836b\\u5b50\\u5c01\\u59bb \\u541f\\u82b1\\u548f\\u67f3 \\u5d1f\\u5d0e\\u78ca\\u843d \\u94f6\\u6cb3\\u5012\\u6cfb \\u6deb\\u8bcd\\u8273\\u66f2 \\u6deb\\u5fc3\\u533f\\u884c \\u6deb\\u8a00\\u8bd0\\u884c \\u5924\\u7f18\\u6500\\u9644 \\u5f15\\u72d7\\u5165\\u5be8 \\u5f15\\u548e\\u8d23\\u8eac \\u5f15\\u8db3\\u6551\\u7ecf \\u996e\\u80c6\\u5c1d\\u8840 \\u996e\\u728a\\u4e0a\\u6d41 \\u996e\\u8c37\\u6816\\u4e18 \\u996e\\u9732\\u9910\\u98ce \\u996e\\u9a6c\\u6295\\u94b1 \\u996e\\u8840\\u5d29\\u5fc3 \\u996e\\u8840\\u8339\\u6bdb \\u9690\\u6666\\u66f2\\u6298 \\u9690\\u5c45\\u6c42\\u5fd7 \\u83ba\\u98de\\u8349\\u957f \\u8fce\\u65b0\\u5f03\\u65e7 \\u8fce\\u65b0\\u9001\\u65e7 \\u76c8\\u6ee1\\u4e4b\\u548e \\u76c8\\u7bc7\\u7d2f\\u724d \\u76c8\\u5343\\u7d2f\\u4e07 \\u8425\\u8747\\u6590\\u9526 \\u8747\\u6512\\u8681\\u9644 \\u8747\\u6512\\u8681\\u805a \\u90e2\\u4e66\\u71d5\\u8bf4 \\u5e94\\u7b54\\u5982\\u6d41 \\u5e94\\u7b54\\u5982\\u54cd \\u5e94\\u5bf9\\u5982\\u6d41 \\u5e94\\u5bf9\\u5982\\u54cd \\u5e94\\u4ed8\\u88d5\\u5982 \\u5e94\\u673a\\u7acb\\u65ad \\u5e94\\u6025\\u63aa\\u65bd \\u5e94\\u8282\\u5408\\u62cd \\u5e94\\u540d\\u70b9\\u536f \\u5e94\\u6743\\u901a\\u53d8 \\u5e94\\u5203\\u800c\\u89e3 \\u5e94\\u65f6\\u5bf9\\u666f \\u5e94\\u5929\\u627f\\u8fd0 \\u5e94\\u5929\\u4ece\\u4eba \\u5e94\\u5929\\u987a\\u6c11 \\u5e94\\u5929\\u987a\\u4eba \\u5e94\\u5f26\\u800c\\u5012 \\u5e94\\u8fd0\\u800c\\u751f \\u4f63\\u4e2d\\u4f7c\\u4f7c \\u62e5\\u7bf2\\u6551\\u706b \\u5eb8\\u8a00\\u5eb8\\u884c \\u6c38\\u5782\\u4e0d\\u673d \\u548f\\u6851\\u5bd3\\u67f3 \\u52c7\\u51a0\\u4e09\\u519b \\u7528\\u820d\\u884c\\u85cf \\u7528\\u667a\\u94fa\\u8c0b \\u7531\\u6765\\u5df2\\u4e45 \\u72b9\\u89e3\\u5012\\u60ac \\u6cb9\\u5e72\\u706f\\u5c3d \\u6cb9\\u8154\\u6ed1\\u8c03 \\u6e38\\u5fc5\\u6709\\u65b9 \\u6e38\\u6807\\u5361\\u5c3a \\u6e38\\u624b\\u597d\\u95f2 \\u6709\\u7684\\u653e\\u77e2 \\u6709\\u52a0\\u65e0\\u5df2 \\u6709\\u53e3\\u65e0\\u884c \\u6709\\u6c42\\u5fc5\\u5e94 \\u6709\\u4e09\\u6709\\u4fe9 \\u6709\\u4e8b\\u4e4b\\u79cb \\u6709\\u6587\\u65e0\\u884c \\u6709\\u9699\\u53ef\\u4e58 \\u6709\\u8840\\u6709\\u8089 \\u5e7c\\u5b66\\u58ee\\u884c \\u4f59\\u98df\\u8d58\\u884c \\u4f59\\u52c7\\u53ef\\u8d3e \\u4f59\\u97f5\\u6d41\\u98ce \\u9c7c\\u6c89\\u96c1\\u843d \\u9c7c\\u5c01\\u96c1\\u5e16 \\u9c7c\\u8d2f\\u800c\\u884c \\u9c7c\\u8d2f\\u96c1\\u884c \\u9c7c\\u4e66\\u96c1\\u5e16 \\u9c7c\\u5c3e\\u96c1\\u884c \\u9c7c\\u6e38\\u71cb\\u91dc \\u6e14\\u9633\\u979e\\u9f13 \\u6e14\\u9633\\u9f19\\u9f13 \\u903e\\u5899\\u8d8a\\u820d \\u903e\\u5899\\u94bb\\u8819 \\u903e\\u5899\\u94bb\\u7a74 \\u6986\\u6728\\u7599\\u7629 \\u4e0e\\u6b64\\u540c\\u65f6 \\u4e0e\\u65f6\\u6d88\\u606f \\u4e0e\\u65f6\\u5055\\u884c \\u4e0e\\u4e16\\u6c89\\u6d6e \\u4e0e\\u4e16\\u65e0\\u4e89 \\u4e88\\u9f7f\\u53bb\\u89d2 \\u4e88\\u593a\\u751f\\u6740 \\u4e88\\u53d6\\u4e88\\u6c42 \\u4e88\\u4eba\\u53e3\\u5b9e \\u96e8\\u50dd\\u98ce\\u50fd \\u96e8\\u50dd\\u4e91\\u50fd \\u96e8\\u9732\\u4e4b\\u6069 \\u96e8\\u6563\\u98ce\\u6d41 \\u96e8\\u50fd\\u98ce\\u50dd \\u79b9\\u884c\\u821c\\u8d8b \\u8bed\\u4e0d\\u60ca\\u4eba \\u8bed\\u7b11\\u55a7\\u9617 \\u7389\\u536e\\u65e0\\u5f53 \\u7389\\u8d28\\u91d1\\u76f8 \\u6b32\\u53d6\\u59d1\\u4e88 \\u9047\\u96be\\u6210\\u7965 \\u9047\\u96be\\u5448\\u7965 \\u9e6c\\u868c\\u76f8\\u6597 \\u9b3b\\u77db\\u8a89\\u696f \\u9b3b\\u9a7d\\u7a83\\u4ef7 \\u51a4\\u5bb6\\u5bf9\\u5934 \\u51a4\\u5bb6\\u8def\\u72ed \\u6e0a\\u6d93\\u8816\\u6fe9 \\u6e0a\\u8c0b\\u8fdc\\u7565 \\u6e0a\\u6e05\\u7389\\u7d5c \\u5143\\u620e\\u542f\\u884c \\u6c85\\u6c5f\\u4e5d\\u808b \\u9f0b\\u9e23\\u9cd6\\u5e94 \\u7f18\\u6728\\u6c42\\u9c7c \\u6e90\\u6e05\\u6d41\\u6d01 \\u6e90\\u6e05\\u6d41\\u6e05 \\u6e90\\u8fdc\\u6d41\\u957f \\u8fdc\\u4e0d\\u95f4\\u4eb2 \\u8fdc\\u5782\\u4e0d\\u673d \\u8fdc\\u6c42\\u9a90\\u9aa5 \\u6028\\u58f0\\u8f7d\\u9053 \\u7ea6\\u6cd5\\u4e09\\u7ae0 \\u6708\\u65e6\\u6625\\u79cb \\u6708\\u9732\\u98ce\\u4e91 \\u6708\\u9732\\u4e4b\\u4f53 \\u6708\\u843d\\u53c2\\u6a2a \\u6708\\u843d\\u661f\\u6c89 \\u6708\\u6ca1\\u53c2\\u6a2a \\u6708\\u6655\\u7840\\u6da6 \\u6708\\u4e2d\\u6298\\u6842 \\u6708\\u5760\\u82b1\\u6298 \\u5cb3\\u9547\\u6e0a\\u6e1f \\u6655\\u5934\\u8f6c\\u5411 \\u6655\\u6655\\u6c89\\u6c89 \\u4e91\\u884c\\u96e8\\u6d3d \\u4e91\\u884c\\u96e8\\u65bd \\u4e91\\u5408\\u666f\\u4ece \\u4e91\\u5408\\u54cd\\u5e94 \\u4e91\\u96c6\\u666f\\u9644 \\u4e91\\u6ce5\\u4e4b\\u5dee \\u4e91\\u6563\\u98ce\\u6d41 \\u4e91\\u8212\\u971e\\u5377 \\u4e91\\u5c6f\\u5e2d\\u5377 \\u6b92\\u8eab\\u4e0d\\u6064 \\u8fd0\\u8ba1\\u94fa\\u8c0b \\u8fd0\\u667a\\u94fa\\u8c0b \\u6742\\u548c\\u9762\\u513f \\u8f7d\\u6c89\\u8f7d\\u6d6e \\u8f7d\\u6b4c\\u4e14\\u821e \\u8f7d\\u6b4c\\u8f7d\\u821e \\u8f7d\\u9152\\u95ee\\u5b57 \\u8f7d\\u9a71\\u8f7d\\u9a70 \\u8f7d\\u7b11\\u8f7d\\u8a00 \\u8f7d\\u4e00\\u62b1\\u7d20 \\u8f7d\\u821f\\u8986\\u821f \\u6512\\u950b\\u805a\\u955d \\u6512\\u96f6\\u5408\\u6574 \\u6512\\u7709\\u8e59\\u989d \\u6512\\u4e09\\u96c6\\u4e94 \\u6512\\u4e09\\u805a\\u4e94 \\u8d43\\u8d3f\\u72fc\\u85c9 \\u8d43\\u79fd\\u72fc\\u85c9 \\u8d43\\u8d27\\u72fc\\u85c9 \\u8d43\\u79c1\\u72fc\\u85c9 \\u8d43\\u6c61\\u72fc\\u85c9 \\u81e7\\u5426\\u4eba\\u7269 \\u846c\\u8eab\\u9c7c\\u8179 \\u51ff\\u9f9f\\u6570\\u7b56 \\u51ff\\u574f\\u800c\\u9041 \\u51ff\\u574f\\u4ee5\\u9041 \\u65e9\\u671d\\u664f\\u7f62 \\u65e9\\u97ed\\u665a\\u83d8 \\u62e9\\u5584\\u800c\\u884c \\u600e\\u4e48\\u5f97\\u4e86 \\u7511\\u5c18\\u91dc\\u9c7c \\u624e\\u5b9e\\u63a8\\u8fdb \\u70b8\\u571f\\u8c46\\u7247 \\u70b8\\u571f\\u8c46\\u6761 \\u6458\\u7455\\u6307\\u745c \\u6cbe\\u6cbe\\u81ea\\u597d \\u7c98\\u80f6\\u7ea4\\u7ef4 \\u8a79\\u8a00\\u66f2\\u8bf4 \\u77bb\\u4e91\\u5c31\\u65e5 \\u65a9\\u5c06\\u593a\\u65d7 \\u65a9\\u5c06\\u6434\\u65d7 \\u65a9\\u5c06\\u5208\\u65d7 \\u65a9\\u5934\\u6ca5\\u8840 \\u5d2d\\u9732\\u5934\\u89d2 \\u5d2d\\u9732\\u5934\\u811a \\u6218\\u5929\\u6597\\u5730 \\u6e5b\\u6069\\u6c6a\\u6fca \\u5f20\\u773c\\u9732\\u775b \\u7ae0\\u53e5\\u5c0f\\u5112 \\u7ae0\\u53f0\\u6768\\u67f3 \\u5f70\\u660e\\u8f83\\u7740 \\u5f70\\u660e\\u662d\\u7740 \\u957f\\u50b2\\u9970\\u975e \\u957f\\u6625\\u4e0d\\u8001 \\u957f\\u6076\\u9761\\u609b \\u957f\\u6b4c\\u5f53\\u54ed \\u957f\\u867a\\u6210\\u86c7 \\u957f\\u4e45\\u4e4b\\u8ba1 \\u957f\\u9e23\\u90fd\\u5c09 \\u957f\\u5e74\\u4e09\\u8001 \\u957f\\u7bc7\\u7d2f\\u724d \\u957f\\u751f\\u4e0d\\u6b7b \\u957f\\u751f\\u4e45\\u89c6 \\u957f\\u7ef3\\u7cfb\\u65e5 \\u957f\\u7b97\\u8fdc\\u7565 \\u957f\\u8896\\u5584\\u821e \\u957f\\u5e7c\\u6709\\u53d9 \\u957f\\u5e7c\\u5c0a\\u5351 \\u957f\\u658b\\u7ee3\\u4f5b \\u957f\\u6cbb\\u4e45\\u5b89 \\u4ed7\\u6c14\\u4f7f\\u9152 \\u62db\\u964d\\u7eb3\\u53db \\u62db\\u6743\\u7eb3\\u8d47 \\u662d\\u5fb7\\u585e\\u8fdd \\u7167\\u529f\\u884c\\u8d4f \\u6298\\u51b2\\u538c\\u96be \\u6298\\u51b2\\u5fa1\\u4fae \\u6298\\u51b2\\u4e4b\\u81e3 \\u6298\\u51b2\\u5c0a\\u4fce \\u6298\\u51b2\\u6a3d\\u4fce \\u6298\\u9f0e\\u8986\\u9917 \\u6298\\u800c\\u65cf\\u4e4b \\u6298\\u69c1\\u632f\\u843d \\u6298\\u621f\\u6c89\\u6c99 \\u6298\\u7bad\\u4e3a\\u8a93 \\u6298\\u80f6\\u5815\\u6307 \\u6298\\u8282\\u8bfb\\u4e66 \\u6298\\u8282\\u4e0b\\u58eb \\u6298\\u77e9\\u5468\\u89c4 \\u6298\\u8170\\u4e94\\u6597 \\u6298\\u957f\\u8865\\u77ed \\u6298\\u8db3\\u8986\\u9917 \\u8f99\\u4e71\\u65c2\\u9761 \\u8f99\\u4e71\\u65d7\\u9761 \\u8d6d\\u8863\\u585e\\u8def \\u8fd9\\u4e48\\u70b9\\u513f \\u7740\\u4e66\\u7acb\\u8bf4 \\u8d1e\\u677e\\u52b2\\u67cf \\u9488\\u5934\\u524a\\u94c1 \\u73cd\\u9990\\u7f8e\\u9994 \\u771f\\u76f8\\u6bd5\\u9732 \\u771f\\u810f\\u5b9e\\u72af \\u6795\\u5e72\\u4e4b\\u96e0 \\u6795\\u6208\\u6ce3\\u8840 \\u6795\\u6208\\u996e\\u8840 \\u6795\\u6d41\\u6f31\\u77f3 \\u6795\\u5ca9\\u6f31\\u6d41 \\u632f\\u5175\\u6cfd\\u65c5 \\u632f\\u88d8\\u6301\\u9886 \\u4e89\\u732b\\u4e22\\u725b \\u4e89\\u5947\\u6597\\u8273 \\u4e89\\u5f3a\\u6597\\u72e0 \\u4e89\\u5f3a\\u6597\\u80dc \\u4e89\\u598d\\u6597\\u8273 \\u6574\\u987f\\u5e72\\u5764 \\u6574\\u51a0\\u7eb3\\u5c65 \\u6574\\u65e7\\u5982\\u65b0 \\u6574\\u5e74\\u7d2f\\u6708 \\u6b63\\u5f53\\u9632\\u536b \\u6b63\\u51a0\\u674e\\u4e0b \\u6b63\\u51a0\\u7eb3\\u5c65 \\u6b63\\u89c6\\u7ef3\\u884c \\u6b63\\u4e2d\\u5df1\\u6000 \\u6b63\\u4e2d\\u4e0b\\u6000 \\u6b63\\u4e2d\\u8981\\u5bb3 \\u4e4b\\u6b7b\\u9761\\u5b83 \\u652f\\u543e\\u5176\\u8bcd \\u53ea\\u9e21\\u6597\\u9152 \\u53ea\\u9e21\\u7d6e\\u9152 \\u53ea\\u9e21\\u6a3d\\u9152 \\u53ea\\u6b20\\u4e1c\\u98ce \\u53ea\\u4e89\\u671d\\u5915 \\u53ea\\u4e89\\u65e6\\u5915 \\u829d\\u8349\\u65e0\\u6839 \\u5431\\u54e9\\u54c7\\u5566 \\u679d\\u5927\\u4e8e\\u672c \\u679d\\u6d41\\u53f6\\u5e03 \\u77e5\\u8bc6\\u4ea7\\u4e1a \\u77e5\\u8bc6\\u7ed3\\u6784 \\u77e5\\u75bc\\u7740\\u70ed \\u77e5\\u75bc\\u7740\\u75d2 \\u77e5\\u7f9e\\u8bc6\\u5ec9 \\u77e5\\u6613\\u884c\\u96be \\u6267\\u97ad\\u968f\\u8e6c \\u6267\\u6cd5\\u4e0d\\u963f \\u76f4\\u9053\\u800c\\u884c \\u76f4\\u6377\\u4e86\\u5f53 \\u76f4\\u6251\\u65e0\\u534e \\u76f4\\u60c5\\u5f84\\u884c \\u76f4\\u8a00\\u8d3e\\u7978 \\u690d\\u53d1\\u51b2\\u51a0 \\u690d\\u53d1\\u7a7f\\u51a0 \\u8dd6\\u72ac\\u5420\\u5c27 \\u6b62\\u66b4\\u7981\\u975e \\u7eb8\\u843d\\u4e91\\u70df \\u6307\\u5bfc\\u601d\\u60f3 \\u6307\\u4e1c\\u5212\\u897f \\u6307\\u5c71\\u5356\\u78e8 \\u6307\\u5c71\\u8bf4\\u78e8 \\u6307\\u624b\\u5212\\u811a \\u6307\\u5934\\u809a\\u513f \\u81f3\\u5f53\\u4e0d\\u6613 \\u81f3\\u6b7b\\u9761\\u5b83 \\u5fd7\\u575a\\u884c\\u82e6 \\u5fd7\\u6d01\\u884c\\u82b3 \\u5fd7\\u7f8e\\u884c\\u5389 \\u7099\\u9e21\\u6e0d\\u9152 \\u6cbb\\u75c5\\u6551\\u4eba \\u6809\\u6bd4\\u9cde\\u5dee \\u6809\\u971c\\u6c90\\u9732 \\u965f\\u7f5a\\u81e7\\u5426 \\u7a92\\u788d\\u96be\\u884c \\u667a\\u5706\\u884c\\u65b9 \\u5f58\\u80a9\\u6597\\u9152 \\u7a1a\\u9f7f\\u5a51\\u5aa0 \\u64ff\\u57f4\\u7d22\\u9014 \\u4e2d\\u6d41\\u5e95\\u67f1 \\u4e2d\\u6d41\\u7825\\u67f1 \\u4e2d\\u6d41\\u51fb\\u696b \\u4e2d\\u6d41\\u4e00\\u58f6 \\u949f\\u9f0e\\u4eba\\u5bb6 \\u949f\\u7075\\u6bd3\\u79c0 \\u79cd\\u8c46\\u5f97\\u8c46 \\u79cd\\u74dc\\u5f97\\u74dc \\u4f17\\u695a\\u7fa4\\u54bb \\u4f17\\u597d\\u4f17\\u6076 \\u4f17\\u6d41\\u5f52\\u6d77 \\u4f17\\u6bdb\\u6512\\u88d8 \\u4f17\\u77e2\\u4e4b\\u7684 \\u4f17\\u661f\\u6512\\u6708 \\u4f17\\u6028\\u4e4b\\u7684 \\u91cd\\u64cd\\u65e7\\u4e1a \\u91cd\\u5e8a\\u8fed\\u67b6 \\u91cd\\u5e8a\\u8fed\\u5c4b \\u91cd\\u5e8a\\u53e0\\u67b6 \\u91cd\\u5e8a\\u53e0\\u5c4b \\u91cd\\u8e48\\u8986\\u8f99 \\u91cd\\u7779\\u5929\\u65e5 \\u91cd\\u5149\\u7d2f\\u6d3d \\u91cd\\u572d\\u53e0\\u7ec4 \\u91cd\\u89c4\\u8fed\\u77e9 \\u91cd\\u89c4\\u53e0\\u77e9 \\u91cd\\u89c4\\u7d2f\\u77e9 \\u91cd\\u89c4\\u6c93\\u77e9 \\u91cd\\u89c4\\u88ad\\u77e9 \\u91cd\\u73ea\\u8fed\\u7ec4 \\u91cd\\u73ea\\u53e0\\u7ec4 \\u91cd\\u8ff9\\u5c4f\\u6c14 \\u91cd\\u89c1\\u5929\\u65e5 \\u91cd\\u91d1\\u517c\\u7d2b \\u91cd\\u91d1\\u88ad\\u6c64 \\u91cd\\u7406\\u65e7\\u4e1a \\u91cd\\u5ce6\\u8fed\\u5dd8 \\u91cd\\u5ce6\\u8fed\\u5d82 \\u91cd\\u5ce6\\u53e0\\u5dd8 \\u91cd\\u5ce6\\u53e0\\u5d82 \\u91cd\\u5ce6\\u590d\\u5d82 \\u91cd\\u660e\\u7ee7\\u7130 \\u91cd\\u8469\\u7d2f\\u85fb \\u91cd\\u7eb0\\u8ca4\\u7f2a \\u91cd\\u8d77\\u7089\\u7076 \\u91cd\\u6c14\\u5f87\\u547d \\u91cd\\u4e09\\u8fed\\u56db \\u91cd\\u4e09\\u53e0\\u56db \\u91cd\\u5c71\\u590d\\u5cad \\u91cd\\u5c71\\u590d\\u6c34 \\u91cd\\u5c71\\u5cfb\\u5cad \\u91cd\\u624b\\u7d2f\\u8db3 \\u91cd\\u6e29\\u65e7\\u68a6 \\u91cd\\u7199\\u7d2f\\u7ee9 \\u91cd\\u7199\\u7d2f\\u6d3d \\u91cd\\u7199\\u7d2f\\u76db \\u91cd\\u7199\\u7d2f\\u53f6 \\u91cd\\u5174\\u65d7\\u9f13 \\u91cd\\u5ca9\\u8fed\\u969c \\u91cd\\u5ca9\\u53e0\\u5d82 \\u91cd\\u88c0\\u5217\\u9f0e \\u91cd\\u57a3\\u8fed\\u9501 \\u91cd\\u57a3\\u53e0\\u9501 \\u91cd\\u632f\\u65d7\\u9f13 \\u91cd\\u6574\\u65d7\\u9f13 \\u91cd\\u7eb8\\u7d2f\\u672d \\u91cd\\u8db3\\u800c\\u7acb \\u91cd\\u8db3\\u7d2f\\u606f \\u91cd\\u8db3\\u5c4f\\u6c14 \\u91cd\\u8db3\\u5c4f\\u606f \\u91cd\\u8db3\\u4e00\\u8ff9 \\u5468\\u89c4\\u6298\\u77e9 \\u5468\\u90ce\\u987e\\u66f2 \\u8098\\u884c\\u819d\\u6b65 \\u663c\\u5ea6\\u591c\\u601d \\u663c\\u4f0f\\u591c\\u884c \\u663c\\u5e72\\u5915\\u60d5 \\u663c\\u591c\\u517c\\u884c \\u6731\\u95e8\\u7ee3\\u6237 \\u6731\\u76d8\\u7389\\u6566 \\u6731\\u69c3\\u7389\\u6566 \\u6731\\u4e91\\u6298\\u69db \\u4f8f\\u5112\\u89c2\\u620f \\u4f8f\\u5112\\u4e00\\u8282 \\u8bdb\\u6c42\\u65e0\\u538c \\u8bdb\\u6c42\\u65e0\\u5df2 \\u73e0\\u5bab\\u8d1d\\u9619 \\u73e0\\u96f6\\u7389\\u843d \\u73e0\\u6d41\\u74a7\\u8f6c \\u8bf8\\u4eb2\\u516d\\u7737 \\u94e2\\u5bf8\\u7d2f\\u79ef \\u94e2\\u79ef\\u5bf8\\u7d2f \\u94e2\\u79ef\\u4e1d\\u7d2f \\u94e2\\u79ef\\u9531\\u7d2f \\u94e2\\u7d2f\\u5bf8\\u79ef \\u94e2\\u4e24\\u6089\\u79f0 \\u94e2\\u4e24\\u76f8\\u79f0 \\u94e2\\u91cf\\u5bf8\\u5ea6 \\u94e2\\u94e2\\u8f83\\u91cf \\u94e2\\u94e2\\u6821\\u91cf \\u7af9\\u7bee\\u6253\\u6c34 \\u9010\\u673a\\u5e94\\u53d8 \\u9010\\u6d41\\u5fd8\\u8fd4 \\u9010\\u672b\\u820d\\u672c \\u52a9\\u6840\\u4e3a\\u8650 \\u52a9\\u5929\\u4e3a\\u8650 \\u52a9\\u7ea3\\u4e3a\\u8650 \\u94f8\\u65b0\\u6dd8\\u65e7 \\u7b51\\u575b\\u62dc\\u5c06 \\u7bb8\\u957f\\u7897\\u77ed \\u62fd\\u5e03\\u62d6\\u9ebb \\u62fd\\u8019\\u6276\\u7281 \\u62fd\\u5df7\\u5570\\u8857 \\u62fd\\u5df7\\u651e\\u8857 \\u4e13\\u4e1a\\u77e5\\u8bc6 \\u8f6c\\u6597\\u5343\\u91cc \\u8f6c\\u6765\\u8f6c\\u53bb \\u8f6c\\u6e7e\\u62b9\\u89d2 \\u5e84\\u4e25\\u5b9d\\u76f8 \\u88c5\\u6a21\\u4f5c\\u6837 \\u58ee\\u53d1\\u51b2\\u51a0 \\u58ee\\u6c14\\u541e\\u725b \\u8ffd\\u98ce\\u6444\\u666f \\u8ffd\\u6839\\u7a76\\u5e95 \\u8ffd\\u6839\\u7a76\\u8482 \\u8ffd\\u6839\\u6c42\\u6e90 \\u8ffd\\u8d8b\\u9010\\u8006 \\u690e\\u950b\\u9677\\u9648 \\u690e\\u950b\\u9677\\u9635 \\u690e\\u80a4\\u5265\\u9ad3 \\u690e\\u80a4\\u5265\\u4f53 \\u690e\\u57cb\\u72d7\\u7a83 \\u690e\\u57cb\\u5c60\\u72d7 \\u690e\\u725b\\u53d1\\u51a2 \\u690e\\u725b\\u6b43\\u8840 \\u690e\\u725b\\u98e8\\u58eb \\u690e\\u5fc3\\u987f\\u8db3 \\u690e\\u5fc3\\u5455\\u8840 \\u690e\\u5fc3\\u6ce3\\u8840 \\u690e\\u5fc3\\u996e\\u6ce3 \\u690e\\u80f8\\u8dcc\\u8db3 \\u690e\\u80f8\\u987f\\u8db3 \\u690e\\u81ba\\u987f\\u8db3 \\u5760\\u8335\\u843d\\u6eb7 \\u6349\\u887f\\u9732\\u8098 \\u6349\\u895f\\u9732\\u8098 \\u6349\\u8d3c\\u6349\\u810f \\u5353\\u5c14\\u72ec\\u884c \\u64e2\\u53d1\\u83ab\\u6570 \\u64e2\\u53d1\\u96be\\u6570 \\u64e2\\u7b4b\\u5265\\u80a4 \\u5b5c\\u5b5c\\u4ee5\\u6c42 \\u8d91\\u8d84\\u4e0d\\u524d \\u9531\\u94e2\\u8f83\\u91cf \\u5b50\\u66f0\\u8bd7\\u4e91 \\u81ea\\u4e0d\\u91cf\\u529b \\u81ea\\u7518\\u5815\\u843d \\u81ea\\u884c\\u5176\\u662f \\u81ea\\u6c42\\u591a\\u798f \\u81ea\\u53d6\\u548e\\u623e \\u81ea\\u53d6\\u5176\\u548e \\u81ea\\u4e3a\\u9636\\u7ea7 \\u81ea\\u6211\\u5439\\u5618 \\u81ea\\u8d3b\\u4f0a\\u548e \\u81ea\\u6028\\u81ea\\u827e \\u81ea\\u627e\\u9ebb\\u70e6 \\u6063\\u884c\\u65e0\\u5fcc \\u6063\\u7762\\u65e0\\u5fcc \\u6063\\u610f\\u5984\\u884c \\u7726\\u88c2\\u53d1\\u6307 \\u603b\\u4f1a\\u8ba1\\u5e08 \\u7eb5\\u66f2\\u6789\\u76f4 \\u8d70\\u82b1\\u6e9c\\u51b0 \\u8d70\\u4e3a\\u4e0a\\u8ba1 \\u8d70\\u4e3a\\u4e0a\\u7740 \\u7ec4\\u6210\\u90e8\\u5206 \\u4fce\\u6a3d\\u6298\\u51b2 \\u7956\\u9f99\\u4e4b\\u8650 \\u94bb\\u51b0\\u6c42\\u706b \\u94bb\\u51b0\\u6c42\\u9165 \\u94bb\\u51b0\\u53d6\\u706b \\u94bb\\u6d1e\\u89c5\\u7f1d \\u94bb\\u6545\\u7eb8\\u5806 \\u94bb\\u575a\\u7814\\u5fae \\u94bb\\u575a\\u4ef0\\u9ad8 \\u94bb\\u6728\\u53d6\\u706b \\u94bb\\u725b\\u89d2\\u5c16 \\u94bb\\u5c71\\u585e\\u6d77 \\u94bb\\u5929\\u89c5\\u7f1d \\u94bb\\u5934\\u5c31\\u9501 \\u94bb\\u5934\\u89c5\\u7f1d \\u94bb\\u5fc3\\u523a\\u9aa8 \\u94bb\\u7a74\\u903e\\u57a3 \\u9189\\u9152\\u9971\\u5fb7 \\u5c0a\\u4fce\\u6298\\u51b2 \\u6a3d\\u9152\\u8bba\\u6587 \\u6a3d\\u4fce\\u6298\\u51b2 \\u5de6\\u652f\\u53f3\\u543e \\u5de6\\u679d\\u53f3\\u68a7 \\u4f5c\\u5ac1\\u8863\\u88f3 \\u4f5c\\u56f0\\u517d\\u6597 \\u4f5c\\u820d\\u9053\\u8fb9 \\u4f5c\\u820d\\u9053\\u65c1 \\u5750\\u4e0d\\u91cd\\u5e2d \\u5750\\u89c6\\u4e0d\\u6551 \\u5750\\u8a00\\u8d77\\u884c \\u516b\\u4e5d\\u4e0d\\u79bb\\u5341 \\u516b\\u5b57\\u6ca1\\u4e00\\u6487 \\u5df4\\u5c14\\u5e72\\u534a\\u5c9b \\u677f\\u677f\\u516d\\u5341\\u56db \\u7248\\u7248\\u516d\\u5341\\u56db \\u676f\\u9152\\u91ca\\u5175\\u6743 \\u4e0d\\u5e78\\u800c\\u8a00\\u4e2d \\u5439\\u80e1\\u5b50\\u77aa\\u773c \\u6b64\\u98ce\\u4e0d\\u53ef\\u957f \\u6253\\u9e2d\\u5b50\\u4e0a\\u67b6 \\u5927\\u4e8b\\u4e0d\\u7cca\\u6d82 \\u5355\\u5b50\\u53f6\\u690d\\u7269 \\u5730\\u7403\\u7269\\u7406\\u5b66 \\u4e1c\\u897f\\u5357\\u5317\\u5ba2 \\u4e1c\\u897f\\u5357\\u5317\\u4eba \\u591a\\u666e\\u52d2\\u6548\\u5e94 \\u6076\\u4e8b\\u884c\\u5343\\u91cc \\u6cd5\\u4e0d\\u4f20\\u516d\\u8033 \\u5206\\u5b50\\u7269\\u7406\\u5b66 \\u5206\\u5b50\\u8fd0\\u52a8\\u8bba \\u8d76\\u9e2d\\u5b50\\u4e0a\\u67b6 \\u9694\\u5c71\\u4e70\\u8001\\u725b \\u66f4\\u4e0a\\u4e00\\u5c42\\u697c \\u74dc\\u76ae\\u642d\\u674e\\u6811 \\u89c2\\u4eca\\u5b9c\\u9274\\u53e4 \\u6cb3\\u4e1c\\u72ee\\u5b50\\u543c \\u534e\\u6c0f\\u6e29\\u5ea6\\u8ba1 \\u6025\\u6025\\u5982\\u5f8b\\u4ee4 \\u75be\\u98ce\\u626b\\u79cb\\u53f6 \\u5939\\u677f\\u533b\\u9a7c\\u5b50 \\u5c16\\u62c5\\u4e24\\u5934\\u8131 \\u5c06\\u95e8\\u65e0\\u72ac\\u5b50 \\u7d27\\u884c\\u65e0\\u597d\\u6b65 \\u4e5d\\u725b\\u62c9\\u4e0d\\u8f6c \\u4e5d\\u4e00\\u516b\\u4e8b\\u53d8 \\u4e45\\u65f1\\u9022\\u7518\\u96e8 \\u65e7\\u74f6\\u88c5\\u65b0\\u9152 \\u65e7\\u77f3\\u5668\\u65f6\\u4ee3 \\u6551\\u6c11\\u4e8e\\u6c34\\u706b \\u516d\\u8033\\u4e0d\\u540c\\u8c0b \\u6f0f\\u74ee\\u6c83\\u7126\\u91dc \\u9a6c\\u6b47\\u5c14\\u8ba1\\u5212 \\u7315\\u7334\\u9a91\\u571f\\u725b \\u6478\\u4e0d\\u7740\\u5934\\u8111 \\u62b9\\u4e00\\u9f3b\\u5b50\\u7070 \\u5973\\u5927\\u4e0d\\u4e2d\\u7559 \\u5e15\\u65af\\u5361\\u5b9a\\u5f8b \\u65c1\\u89c2\\u8005\\u6548\\u5e94 \\u78b0\\u4e00\\u9f3b\\u5b50\\u7070 \\u7834\\u7f50\\u5b50\\u7834\\u6454 \\u9a91\\u725b\\u8bfb\\u6c49\\u4e66 \\u79cb\\u98ce\\u626b\\u843d\\u53f6 \\u6c42\\u9a6c\\u4e8e\\u5510\\u5e02 \\u6c42\\u9a6c\\u4e8e\\u5510\\u8086 \\u4eba\\u4e0d\\u53ef\\u8c8c\\u76f8 \\u4eba\\u751f\\u5982\\u671d\\u9732 \\u65e5\\u4e45\\u89c1\\u4eba\\u5fc3 \\u4e09\\u767e\\u516d\\u5341\\u884c \\u4e09\\u601d\\u800c\\u540e\\u884c \\u5c11\\u5e74\\u5148\\u950b\\u961f \\u72ee\\u5b50\\u5927\\u5f00\\u53e3 \\u5341\\u5e74\\u4e5d\\u4e0d\\u9047 \\u53f8\\u9a6c\\u725b\\u4e4b\\u53f9 \\u56fe\\u7a77\\u5315\\u9996\\u89c1 \\u4e4c\\u62c9\\u5c14\\u5c71\\u8109 \\u65e0\\u4f5b\\u5904\\u79f0\\u5c0a \\u68a7\\u6850\\u4e00\\u53f6\\u843d \\u8c61\\u715e\\u6709\\u4ecb\\u4e8b \\u50cf\\u715e\\u6709\\u4ecb\\u4e8b \\u673d\\u6728\\u4e0d\\u53ef\\u96d5 \\u718f\\u83b8\\u4e0d\\u540c\\u5668 \\u4e9a\\u5f97\\u91cc\\u4e9a\\u6d77 \\u4e00\\u9524\\u5b50\\u4e70\\u5356 \\u4e00\\u68cd\\u5b50\\u6253\\u6b7b \\u4e00\\u8eab\\u90fd\\u662f\\u80c6 \\u4e00\\u65f6\\u534a\\u4f1a\\u513f \\u4e00\\u9000\\u516d\\u4e8c\\u4e94 \\u4e00\\u7269\\u964d\\u4e00\\u7269 \\u4f9d\\u846b\\u82a6\\u753b\\u74e2 \\u6709\\u9f3b\\u5b50\\u6709\\u773c \\u7167\\u846b\\u82a6\\u753b\\u74e2 \\u7740\\u4e09\\u4e0d\\u7740\\u4e24 \\u771f\\u4eba\\u4e0d\\u9732\\u76f8 \\u76f4\\u6d41\\u53d1\\u7535\\u673a \\u7eb8\\u5305\\u4e0d\\u4f4f\\u706b \\u6307\\u5bfc\\u6027\\u8ba1\\u5212 \\u5750\\u5c71\\u89c2\\u864e\\u6597 \\u516b\\u7aff\\u5b50\\u6253\\u4e0d\\u7740 \\u516b\\u5b57\\u6ca1\\u89c1\\u4e00\\u6487 \\u62e8\\u4e91\\u96fe\\u89c1\\u9752\\u5929 \\u4e0d\\u6cd5\\u53e4\\u4e0d\\u4fee\\u4eca \\u9648\\u8c37\\u5b50\\u70c2\\u829d\\u9ebb \\u5403\\u4e0d\\u4e86\\u515c\\u7740\\u8d70 \\u5403\\u4eba\\u4e0d\\u5410\\u9aa8\\u5934 \\u6253\\u80bf\\u8138\\u5145\\u80d6\\u5b50 \\u53cd\\u5176\\u9053\\u800c\\u884c\\u4e4b \\u653e\\u957f\\u7ebf\\u9493\\u5927\\u9c7c \\u98ce\\u9a6c\\u725b\\u4e0d\\u76f8\\u53ca \\u98ce\\u725b\\u9a6c\\u4e0d\\u76f8\\u53ca \\u8702\\u867f\\u4f5c\\u4e8e\\u6000\\u8896 \\u9ad8\\u4e0d\\u6210\\u4f4e\\u4e0d\\u5c31 \\u9ad8\\u4e0d\\u51d1\\u4f4e\\u4e0d\\u5c31 \\u9ad8\\u4e0d\\u8f8f\\u4f4e\\u4e0d\\u5c31 \\u5272\\u9e21\\u7109\\u7528\\u725b\\u5200 \\u8fc7\\u4e94\\u5173\\u65a9\\u516d\\u5c06 \\u884c\\u4e0d\\u5f97\\u4e5f\\u54e5\\u54e5 \\u6cb3\\u6d77\\u4e0d\\u62e9\\u7ec6\\u6d41 \\u5316\\u8150\\u673d\\u4e3a\\u795e\\u5947 \\u5409\\u4eba\\u81ea\\u6709\\u5929\\u76f8 \\u6c5f\\u6d77\\u4e0d\\u9006\\u5c0f\\u6d41 \\u4e5d\\u725b\\u4e8c\\u864e\\u4e4b\\u529b \\u6551\\u5bd2\\u83ab\\u5982\\u91cd\\u88d8 \\u6d41\\u8a00\\u6b62\\u4e8e\\u667a\\u8005 \\u6478\\u7740\\u77f3\\u5934\\u8fc7\\u6cb3 \\u725b\\u987f\\u7b2c\\u4e09\\u5b9a\\u5f8b \\u725b\\u5934\\u4e0d\\u5bf9\\u9a6c\\u9762 \\u725b\\u5934\\u4e0d\\u5bf9\\u9a6c\\u5634 \\u5f3a\\u4e0d\\u77e5\\u4ee5\\u4e3a\\u77e5 \\u8bf7\\u5c06\\u4e0d\\u5982\\u6fc0\\u5c06 \\u6c42\\u4eba\\u4e0d\\u5982\\u6c42\\u5df1 \\u70ed\\u9505\\u4e0a\\u7684\\u8682\\u8681 \\u4e09\\u6298\\u80b1\\u4e3a\\u826f\\u533b \\u6740\\u9e21\\u7109\\u7528\\u725b\\u5200 \\u58eb\\u4e3a\\u77e5\\u5df1\\u8005\\u6b7b \\u542c\\u89c1\\u98ce\\u5c31\\u662f\\u96e8 \\u5371\\u6025\\u5b58\\u4ea1\\u4e4b\\u79cb \\u4e3a\\u4e94\\u6597\\u7c73\\u6298\\u8170 \\u4e00\\u5757\\u77f3\\u5934\\u843d\\u5730 \\u8fdc\\u6c34\\u4e0d\\u6551\\u8fd1\\u706b \\u62d4\\u4e86\\u841d\\u535c\\u5730\\u76ae\\u5bbd \\u534a\\u90e8\\u8bba\\u8bed\\u6cbb\\u5929\\u4e0b \\u95ed\\u585e\\u773c\\u775b\\u6349\\u9ebb\\u96c0 \\u4e0d\\u5230\\u957f\\u57ce\\u975e\\u597d\\u6c49 \\u4e0d\\u89c1\\u68fa\\u6750\\u4e0d\\u843d\\u6cea \\u4e0d\\u4e3a\\u4e94\\u6597\\u7c73\\u6298\\u8170 \\u671d\\u91cc\\u65e0\\u4eba\\u83ab\\u505a\\u5b98 \\u521d\\u751f\\u725b\\u728a\\u4e0d\\u6015\\u864e \\u5e26\\u7740\\u94c3\\u94db\\u53bb\\u505a\\u8d3c \\u5f97\\u9976\\u4eba\\u5904\\u4e14\\u9976\\u4eba \\u7b2c\\u4e00\\u6b21\\u4e16\\u754c\\u5927\\u6218 \\u4e22\\u4e0b\\u8019\\u513f\\u5f04\\u626b\\u5e1a \\u591a\\u884c\\u4e0d\\u4e49\\u5fc5\\u81ea\\u6bd9 \\u542b\\u7740\\u9aa8\\u5934\\u9732\\u7740\\u8089 \\u884c\\u767e\\u91cc\\u8005\\u534a\\u4e5d\\u5341 \\u597d\\u4e86\\u75ae\\u75a4\\u5fd8\\u4e86\\u75db \\u597d\\u5fc3\\u505a\\u4e86\\u9a74\\u809d\\u80ba \\u6a2a\\u6311\\u9f3b\\u5b50\\u7ad6\\u6311\\u773c \\u631f\\u5929\\u5b50\\u4ee5\\u4ee4\\u5929\\u4e0b \\u631f\\u5929\\u5b50\\u4ee5\\u4ee4\\u8bf8\\u4faf \\u89e3\\u94c3\\u8fd8\\u662f\\u7cfb\\u94c3\\u4eba \\u89e3\\u94c3\\u8fd8\\u987b\\u7cfb\\u94c3\\u4eba \\u4eca\\u671d\\u6709\\u9152\\u4eca\\u671d\\u9189 \\u4eca\\u65e5\\u6709\\u9152\\u4eca\\u65e5\\u9189 \\u656c\\u9152\\u4e0d\\u5403\\u5403\\u7f5a\\u9152 \\u9152\\u9022\\u77e5\\u5df1\\u5343\\u676f\\u5c11 \\u67f3\\u6697\\u82b1\\u660e\\u53c8\\u4e00\\u6751 \\u5415\\u7aef\\u5927\\u4e8b\\u4e0d\\u7cca\\u6d82 \\u5192\\u5929\\u4e0b\\u4e4b\\u5927\\u4e0d\\u97ea \\u7709\\u6bdb\\u80e1\\u5b50\\u4e00\\u628a\\u6293 \\u725b\\u4e0d\\u559d\\u6c34\\u5f3a\\u6309\\u5934 \\u8d54\\u4e86\\u592b\\u4eba\\u53c8\\u6298\\u5175 \\u7275\\u4e00\\u53d1\\u800c\\u52a8\\u5168\\u8eab \\u5f3a\\u5c06\\u624b\\u4e0b\\u65e0\\u5f31\\u5175 \\u5f3a\\u4e2d\\u66f4\\u6709\\u5f3a\\u4e2d\\u624b \\u6e05\\u5b98\\u80fd\\u65ad\\u5bb6\\u52a1\\u4e8b \\u4eba\\u751f\\u4f55\\u5904\\u4e0d\\u76f8\\u9022 \\u662f\\u975e\\u53ea\\u4e3a\\u591a\\u5f00\\u53e3 \\u6311\\u5f97\\u7bee\\u91cc\\u4fbf\\u662f\\u83dc \\u542c\\u5176\\u8a00\\u800c\\u89c2\\u5176\\u884c \\u65e0\\u53ef\\u5948\\u4f55\\u82b1\\u843d\\u53bb \\u5fc3\\u75c5\\u8fd8\\u987b\\u5fc3\\u836f\\u533b \\u54ac\\u4eba\\u72d7\\u513f\\u4e0d\\u9732\\u9f7f \\u4e00\\u671d\\u5929\\u5b50\\u4e00\\u671d\\u81e3 \\u4e00\\u4e2a\\u841d\\u535c\\u4e00\\u4e2a\\u5751 \\u4e00\\u5757\\u77f3\\u5934\\u843d\\u4e86\\u5730 \\u4e00\\u94b1\\u4e0d\\u843d\\u865a\\u7a7a\\u5730 \\u4e00\\u53f6\\u843d\\u77e5\\u5929\\u4e0b\\u79cb \\u6709\\u94b1\\u80fd\\u4f7f\\u9b3c\\u63a8\\u78e8 \\u8fdc\\u6c34\\u6551\\u4e0d\\u5f97\\u8fd1\\u706b \\u8fdc\\u6c34\\u6551\\u4e0d\\u4e86\\u8fd1\\u706b \\u5bb0\\u76f8\\u809a\\u91cc\\u597d\\u6491\\u8239 \\u5f20\\u516c\\u5403\\u9152\\u674e\\u516c\\u98a0 \\u5f20\\u516c\\u5403\\u9152\\u674e\\u516c\\u9189 \\u8fd9\\u5c71\\u671b\\u7740\\u90a3\\u5c71\\u9ad8 \\u9488\\u5c16\\u513f\\u5bf9\\u9ea6\\u8292\\u513f \\u53ea\\u91cd\\u8863\\u886b\\u4e0d\\u91cd\\u4eba \\u7af9\\u7bee\\u6253\\u6c34\\u4e00\\u573a\\u7a7a \\u9189\\u7fc1\\u4e4b\\u610f\\u4e0d\\u5728\\u9152 \\u963f\\u62c9\\u4f2f\\u8054\\u5408\\u914b\\u957f\\u56fd \\u767e\\u5c3a\\u7aff\\u5934\\u66f4\\u8fdb\\u4e00\\u6b65 \\u4e0d\\u8bc6\\u4eba\\u95f4\\u6709\\u7f9e\\u803b\\u4e8b \\u4e0d\\u77e5\\u4eba\\u95f4\\u6709\\u7f9e\\u803b\\u4e8b \\u5403\\u7740\\u7897\\u91cc\\u77a7\\u7740\\u9505\\u91cc \\u4e11\\u5ab3\\u5987\\u603b\\u5f97\\u89c1\\u516c\\u5a46 \\u884c\\u767e\\u91cc\\u8005\\u534a\\u4e8e\\u4e5d\\u5341 \\u6025\\u60ca\\u98ce\\u649e\\u7740\\u6162\\u90ce\\u4e2d \\u765e\\u86e4\\u87c6\\u60f3\\u5403\\u5929\\u9e45\\u8089 \\u8dd1\\u4e86\\u548c\\u5c1a\\u8dd1\\u4e0d\\u4e86\\u5e99 \\u8dd1\\u4e86\\u548c\\u5c1a\\u8dd1\\u4e0d\\u4e86\\u5bfa \\u4e00\\u628a\\u94a5\\u5319\\u5f00\\u4e00\\u628a\\u9501 \\u642c\\u8d77\\u77f3\\u5934\\u6253\\u81ea\\u5df1\\u7684\\u811a \\u5f53\\u4e00\\u5929\\u548c\\u5c1a\\u649e\\u4e00\\u5929\\u949f \\u79d8\\u9c81\".split(\" \"),\nB=[0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,460,464,468,472,476,480,484,488,492,496,500,504,508,512,516,520,524,528,532,536,540,544,548,552,556,560,564,568,572,576,580,584,588,592,596,600,604,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,676,680,684,688,692,696,700,704,708,712,716,720,724,728,732,736,740,744,748,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,812,816,820,824,828,832,836,840,844,848,852,856,860,864,868,872,876,880,884,888,892,896,900,904,908,912,916,920,924,928,932,936,940,944,948,952,956,960,964,968,972,976,980,984,988,992,996,1E3,1004,1008,1012,1016,1020,1024,1028,1032,1036,1040,1044,1048,1052,1056,1060,1064,1068,1072,1076,1080,1084,1088,1092,1096,1100,1105,1110,1115,1120,1125,1130,1135,1140,1145,1150,1155,1161,1167,1173,1179,1185,1191,1197,1203,1209,1216,1223,1230,1237,1244,1251,1258,1265,1273,1281,1290,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,1329,1331,1333,1335,1337,1339,1341,1343,1345,1347,1349,1351,1353,1355,1357,1359,1361,1363,1365,1367,1369,1371,1373,1375,1377,1379,1381,1383,1385,1387,1389,1391,1393,1395,1397,1399,1401,1403,1405,1407,1409,1411,1413,1415,1417,1419,1421,1423,1425,1427,1429,1431,1433,1435,1437,1439,1441,1443,1445,1447,1449,1451,1453,1455,1457,1459,1461,1463,1465,1467,1469,1471,1473,1475,1477,1479,1481,1483,1485,1487,1489,1491,1493,1495,1497,1499,1501,1503,1505,1507,1509,1511,1513,1515,1517,1519,1521,1523,1525,1527,1529,1531,1533,1535,1537,1539,1541,1543,1545,1547,1549,1551,1553,1555,1557,1559,1561,1563,1565,1567,1569,1571,1573,1575,1577,1579,1581,1583,1585,1587,1589,1591,1593,1595,1597,1599,1601,1603,1605,1607,1609,1611,1613,1615,1617,1619,1621,1623,1625,1627,1629,1631,1633,1635,1637,1639,1641,1643,1645,1647,1649,1651,1653,1655,1657,1659,1661,1663,1665,1667,1669,1671,1673,1675,1677,1679,1681,1683,1685,1687,1689,1691,1693,1695,1697,1699,1701,1703,1705,1707,1709,1711,1713,1715,1717,1719,1721,1723,1725,1727,1729,1731,1733,1735,1737,1739,1741,1743,1745,1747,1749,1751,1753,1755,1757,1759,1761,1763,1765,1767,1769,1771,1773,1775,1777,1779,1781,1783,1785,1787,1789,1791,1793,1795,1797,1799,1801,1803,1805,1807,1809,1811,1813,1815,1817,1819,1821,1823,1825,1827,1829,1831,1833,1835,1837,1839,1841,1843,1845,1847,1849,1851,1853,1855,1857,1859,1861,1863,1865,1867,1869,1871,1873,1875,1877,1879,1881,1883,1885,1887,1889,1891,1893,1895,1897,1899,1901,1903,1905,1907,1909,1911,1913,1915,1917,1919,1921,1923,1925,1927,1929,1931,1933,1935,1937,1939,1941,1943,1945,1947,1949,1951,1953,1955,1957,1959,1961,1963,1965,1967,1969,1971,1973,1975,1977,1979,1981,1983,1985,1987,1989,1991,1993,1995,1997,1999,2001,2003,2005,2007,2009,2011,2013,2015,2017,2019,2021,2023,2025,2027,2029,2031,2033,2035,2037,2039,2041,2043,2045,2047,2049,2051,2053,2055,2057,2059,2061,2063,2065,2067,2069,2071,2073,2075,2077,2079,2081,2083,2085,2087,2089,2091,2093,2095,2097,2099,2101,2103,2105,2107,2109,2111,2113,2115,2117,2119,2121,2123,2125,2127,2129,2131,2133,2135,2137,2139,2141,2143,2145,2147,2149,2151,2153,2155,2157,2159,2161,2163,2165,2167,2169,2171,2173,2175,2177,2179,2181,2183,2185,2187,2189,2191,2193,2195,2197,2199,2201,2203,2205,2207,2209,2211,2213,2215,2217,2219,2221,2223,2225,2227,2229,2231,2233,2235,2237,2239,2241,2243,2245,2247,2249,2251,2253,2255,2257,2259,2261,2263,2265,2267,2269,2271,2273,2275,2277,2279,2281,2283,2285,2287,2289,2291,2293,2295,2297,2299,2301,2303,2305,2307,2309,2311,2313,2315,2317,2319,2321,2323,2325,2327,2329,2331,2333,2335,2337,2339,2341,2343,2345,2347,2349,2351,2353,2355,2357,2359,2361,2363,2365,2367,2369,2371,2373,2375,2377,2379,2381,2383,2385,2387,2389,2391,2393,2395,2397,2399,2401,2403,2405,2407,2409,2411,2413,2415,2417,2419,2421,2423,2425,2427,2429,2431,2433,2435,2437,2439,2441,2443,2445,2447,2449,2451,2453,2455,2457,2459,2461,2463,2465,2467,2469,2471,2473,2475,2477,2479,2481,2483,2485,2487,2489,2491,2493,2495,2497,2499,2501,2503,2505,2507,2509,2511,2513,2515,2517,2519,2521,2523,2525,2527,2529,2531,2533,2535,2537,2539,2541,2543,2545,2547,2549,2551,2553,2555,2557,2559,2561,2563,2565,2567,2569,2571,2573,2575,2577,2579,2581,2583,2585,2587,2589,2591,2593,2595,2597,2599,2601,2603,2605,2607,2609,2611,2613,2615,2617,2619,2621,2623,2625,2627,2629,2631,2633,2635,2637,2639,2641,2643,2645,2647,2649,2651,2653,2655,2657,2659,2661,2663,2665,2667,2669,2671,2673,2675,2677,2679,2681,2683,2685,2687,2689,2691,2693,2695,2697,2699,2701,2703,2705,2707,2709,2711,2713,2715,2717,2719,2721,2723,2725,2727,2729,2731,2733,2735,2737,2739,2741,2743,2745,2747,2749,2751,2753,2755,2757,2759,2761,2763,2765,2767,2769,2771,2773,2775,2777,2779,2781,2783,2785,2787,2789,2791,2793,2795,2797,2799,2801,2803,2805,2807,2809,2811,2813,2815,2817,2819,2821,2823,2825,2827,2829,2831,2833,2835,2837,2839,2841,2843,2845,2847,2849,2851,2853,2855,2857,2859,2861,2863,2865,2867,2869,2871,2873,2875,2877,2879,2881,2883,2885,2887,2889,2891,2893,2895,2897,2899,2901,2903,2905,2907,2909,2911,2913,2915,2917,2919,2921,2923,2925,2927,2929,2931,2933,2935,2937,2939,2941,2943,2945,2947,2949,2951,2953,2955,2957,2959,2961,2963,2965,2967,2969,2971,2973,2975,2977,2979,2981,2983,2985,2987,2989,2991,2993,2995,2997,2999,3001,3003,3005,3007,3009,3011,3013,3015,3017,3019,3021,3023,3025,3027,3029,3031,3033,3035,3037,3039,3041,3043,3045,3047,3049,3051,3053,3055,3057,3059,3061,3063,3065,3067,3069,3071,3073,3075,3077,3079,3081,3083,3085,3087,3089,3091,3093,3095,3097,3099,3101,3103,3105,3107,3109,3111,3113,3115,3117,3119,3121,3123,3125,3127,3129,3131,3133,3135,3137,3139,3141,3143,3145,3147,3149,3151,3153,3155,3157,3159,3161,3163,3165,3167,3169,3171,3173,3175,3177,3179,3181,3183,3185,3187,3189,3191,3193,3195,3197,3199,3201,3203,3205,3207,3209,3211,3213,3215,3217,3219,3221,3223,3225,3227,3229,3231,3233,3235,3237,3239,3241,3243,3245,3247,3249,3251,3253,3255,3257,3259,3261,3263,3265,3267,3269,3271,3273,3275,3277,3279,3281,3283,3285,3287,3289,3291,3293,3295,3297,3299,3301,3303,3305,3307,3309,3311,3313,3315,3317,3319,3321,3323,3325,3327,3329,3331,3333,3335,3337,3339,3341,3343,3345,3347,3349,3351,3353,3355,3357,3359,3361,3363,3365,3367,3369,3371,3373,3375,3377,3379,3381,3383,3385,3387,3389,3391,3393,3395,3397,3399,3401,3403,3405,3407,3409,3411,3413,3415,3417,3419,3421,3423,3425,3427,3429,3431,3433,3435,3437,3439,3441,3443,3445,3447,3449,3451,3453,3455,3457,3459,3461,3463,3465,3467,3469,3471,3473,3475,3477,3479,3481,3483,3485,3487,3489,3491,3493,3495,3497,3499,3501,3503,3505,3507,3509,3511,3513,3515,3517,3519,3521,3523,3525,3527,3529,3531,3533,3535,3537,3539,3541,3543,3545,3547,3549,3551,3553,3555,3557,3559,3561,3563,3565,3567,3569,3571,3573,3575,3577,3579,3581,3583,3585,3587,3589,3591,3593,3595,3597,3599,3601,3603,3605,3607,3609,3611,3613,3615,3617,3619,3621,3623,3625,3627,3629,3631,3633,3635,3637,3639,3641,3643,3645,3647,3649,3651,3653,3655,3657,3659,3661,3663,3665,3667,3669,3671,3673,3675,3677,3679,3681,3683,3685,3687,3689,3691,3693,3695,3697,3699,3701,3703,3705,3707,3709,3711,3713,3715,3717,3719,3721,3723,3725,3727,3729,3731,3733,3735,3737,3739,3741,3743,3745,3747,3749,3751,3753,3755,3757,3759,3761,3763,3765,3767,3769,3771,3773,3775,3777,3779,3781,3783,3785,3787,3789,3791,3793,3795,3797,3799,3801,3803,3805,3807,3809,3811,3813,3815,3817,3819,3821,3823,3825,3827,3829,3831,3833,3835,3837,3839,3841,3843,3845,3847,3849,3851,3853,3855,3857,3859,3861,3863,3865,3867,3869,3871,3873,3875,3877,3879,3881,3883,3885,3887,3889,3891,3893,3895,3897,3899,3901,3903,3905,3907,3909,3911,3913,3915,3917,3919,3921,3923,3925,3927,3929,3931,3933,3935,3937,3939,3941,3943,3945,3947,3949,3951,3953,3955,3957,3959,3961,3963,3965,3967,3969,3971,3973,3975,3977,3979,3981,3983,3985,3987,3989,3991,3993,3995,3997,3999,4001,4003,4005,4007,4009,4011,4013,4015,4017,4019,4021,4023,4025,4027,4029,4031,4033,4035,4037,4039,4041,4043,4045,4047,4049,4051,4053,4055,4057,4059,4061,4063,4065,4067,4069,4071,4073,4075,4077,4079,4081,4083,4085,4087,4089,4091,4093,4095,4097,4099,4101,4103,4105,4107,4109,4111,4113,4115,4117,4119,4121,4123,4125,4127,4129,4131,4133,4135,4137,4139,4141,4143,4145,4147,4149,4151,4153,4155,4157,4159,4161,4163,4165,4167,4169,4171,4173,4175,4177,4179,4181,4183,4185,4187,4189,4191,4193,4195,4197,4199,4201,4203,4205,4207,4209,4211,4213,4215,4217,4219,4221,4223,4225,4227,4229,4231,4233,4235,4237,4239,4241,4243,4245,4247,4249,4251,4253,4255,4257,4259,4261,4263,4265,4267,4269,4271,4273,4275,4277,4279,4281,4283,4285,4287,4289,4291,4293,4295,4297,4299,4301,4303,4305,4307,4309,4311,4313,4315,4317,4319,4321,4323,4325,4327,4329,4331,4333,4335,4337,4339,4341,4343,4345,4347,4349,4351,4353,4355,4357,4359,4361,4363,4365,4367,4369,4371,4373,4375,4377,4379,4381,4383,4385,4387,4389,4391,4393,4395,4397,4399,4401,4403,4405,4407,4409,4411,4413,4415,4417,4419,4421,4423,4425,4427,4429,4431,4433,4435,4437,4439,4441,4443,4445,4447,4449,4451,4453,4455,4457,4459,4461,4463,4465,4467,4469,4471,4473,4475,4477,4479,4481,4483,4485,4487,4489,4491,4493,4495,4497,4499,4501,4503,4505,4507,4509,4511,4513,4515,4517,4519,4521,4523,4525,4527,4529,4531,4533,4535,4537,4539,4541,4543,4545,4547,4549,4551,4553,4555,4557,4559,4561,4563,4565,4567,4569,4571,4573,4575,4577,4579,4581,4583,4585,4587,4589,4591,4593,4595,4597,4599,4601,4603,4605,4607,4609,4611,4613,4615,4617,4619,4621,4623,4625,4627,4629,4631,4633,4635,4637,4639,4641,4643,4645,4647,4649,4651,4653,4655,4657,4659,4661,4663,4665,4667,4669,4671,4673,4675,4677,4679,4681,4683,4685,4687,4689,4691,4693,4695,4697,4699,4701,4703,4705,4707,4709,4711,4713,4715,4717,4719,4721,4723,4725,4727,4729,4731,4733,4735,4737,4739,4741,4743,4745,4747,4749,4751,4753,4755,4757,4759,4761,4763,4765,4767,4769,4771,4773,4775,4777,4779,4781,4783,4785,4787,4789,4791,4793,4795,4797,4799,4801,4803,4805,4807,4809,4811,4813,4815,4817,4819,4821,4823,4825,4827,4829,4831,4833,4835,4837,4839,4841,4843,4845,4847,4849,4851,4853,4855,4857,4859,4861,4863,4865,4867,4869,4871,4873,4875,4877,4879,4881,4883,4885,4887,4889,4891,4893,4895,4897,4899,4901,4903,4905,4907,4909,4911,4913,4915,4917,4919,4921,4923,4925,4927,4929,4931,4933,4935,4937,4939,4941,4943,4945,4947,4949,4951,4953,4955,4957,4959,4961,4963,4965,4967,4969,4971,4973,4975,4977,4979,4981,4983,4985,4987,4989,4991,4993,4995,4997,4999,5001,5003,5005,5007,5009,5011,5013,5015,5017,5019,5021,5023,5025,5027,5029,5031,5033,5035,5037,5039,5041,5043,5045,5047,5049,5051,5053,5055,5057,5059,5061,5063,5065,5067,5069,5071,5073,5075,5077,5079,5081,5083,5085,5087,5089,5091,5093,5095,5097,5099,5101,5103,5105,5107,5109,5111,5113,5115,5117,5119,5121,5123,5125,5127,5129,5131,5133,5135,5137,5139,5141,5143,5145,5147,5149,5151,5153,5155,5157,5159,5161,5163,5165,5167,5169,5171,5173,5175,5177,5179,5181,5183,5185,5187,5189,5191,5193,5195,5197,5199,5201,5203,5205,5207,5209,5211,5213,5215,5217,5219,5221,5223,5225,5227,5229,5231,5233,5235,5237,5239,5241,5243,5245,5247,5249,5251,5253,5255,5257,5259,5261,5263,5265,5267,5269,5271,5273,5275,5277,5279,5281,5283,5285,5287,5289,5291,5293,5295,5297,5299,5301,5303,5305,5307,5309,5311,5313,5315,5317,5319,5321,5323,5325,5327,5329,5331,5333,5335,5337,5339,5341,5343,5345,5347,5349,5351,5353,5355,5357,5359,5361,5363,5365,5367,5369,5371,5373,5375,5377,5379,5381,5383,5385,5387,5389,5391,5393,5395,5397,5399,5401,5403,5405,5407,5409,5411,5413,5415,5417,5419,5421,5423,5425,5427,5429,5431,5433,5435,5437,5439,5441,5443,5445,5447,5449,5451,5453,5455,5457,5459,5461,5463,5465,5467,5469,5471,5473,5475,5477,5479,5481,5483,5485,5487,5489,5491,5493,5495,5497,5499,5501,5503,5505,5507,5509,5511,5513,5515,5517,5519,5521,5523,5525,5527,5529,5531,5533,5535,5537,5539,5541,5543,5545,5547,5549,5551,5553,5555,5557,5559,5561,5563,5565,5567,5569,5571,5573,5575,5577,5579,5581,5583,5585,5587,5589,5591,5593,5595,5597,5599,5601,5603,5605,5607,5609,5611,5613,5615,5617,5619,5621,5623,5625,5627,5629,5631,5633,5635,5637,5639,5641,5643,5645,5647,5649,5651,5653,5655,5657,5659,5661,5663,5665,5667,5669,5671,5673,5675,5677,5679,5681,5683,5685,5687,5689,5691,5693,5695,5697,5699,5701,5703,5705,5707,5709,5711,5713,5715,5717,5719,5721,5723,5725,5727,5729,5731,5733,5735,5737,5739,5741,5743,5745,5747,5749,5751,5753,5755,5757,5759,5761,5763,5765,5767,5769,5771,5773,5775,5777,5779,5781,5783,5785,5787,5789,5791,5793,5795,5797,5799,5801,5803,5805,5807,5809,5811,5813,5815,5817,5819,5821,5823,5825,5827,5829,5831,5833,5835,5837,5839,5841,5843,5845,5847,5849,5851,5853,5855,5857,5859,5861,5863,5865,5867,5869,5871,5873,5875,5877,5879,5881,5883,5885,5887,5889,5891,5893,5895,5897,5899,5901,5903,5905,5907,5909,5911,5913,5915,5917,5919,5921,5923,5925,5927,5929,5931,5933,5935,5937,5939,5941,5943,5945,5947,5949,5951,5953,5955,5957,5959,5961,5963,5965,5967,5969,5971,5973,5975,5977,5979,5981,5983,5985,5987,5989,5991,5993,5995,5997,5999,6001,6003,6005,6007,6009,6011,6013,6015,6017,6019,6021,6023,6025,6027,6029,6031,6033,6035,6037,6039,6041,6043,6045,6047,6049,6051,6053,6055,6057,6059,6061,6063,6065,6067,6069,6071,6073,6075,6077,6079,6081,6083,6085,6087,6089,6091,6093,6095,6097,6099,6101,6103,6105,6107,6109,6111,6113,6115,6117,6119,6121,6123,6125,6127,6129,6131,6133,6135,6137,6139,6141,6143,6145,6147,6149,6151,6153,6155,6157,6159,6161,6163,6165,6167,6169,6171,6173,6175,6177,6179,6181,6183,6185,6187,6189,6191,6193,6195,6197,6199,6201,6203,6205,6207,6209,6211,6213,6215,6217,6219,6221,6223,6225,6227,6229,6231,6233,6235,6237,6239,6241,6243,6245,6247,6249,6251,6253,6255,6257,6259,6261,6263,6265,6267,6269,6271,6273,6275,6277,6279,6281,6283,6285,6287,6289,6291,6293,6295,6297,6299,6301,6303,6305,6307,6309,6311,6313,6315,6317,6319,6321,6323,6325,6327,6329,6331,6333,6335,6337,6339,6341,6343,6345,6347,6349,6351,6353,6355,6357,6359,6361,6363,6365,6367,6369,6371,6373,6375,6377,6379,6381,6383,6385,6387,6389,6391,6393,6395,6397,6399,6401,6403,6405,6407,6409,6411,6413,6415,6417,6419,6421,6423,6425,6427,6429,6431,6433,6435,6437,6439,6441,6443,6445,6447,6449,6451,6453,6455,6457,6459,6461,6463,6465,6467,6469,6471,6473,6475,6477,6479,6481,6483,6485,6487,6489,6491,6493,6495,6497,6499,6501,6503,6505,6507,6509,6511,6513,6515,6517,6519,6521,6523,6525,6527,6529,6531,6533,6535,6537,6539,6541,6543,6545,6547,6549,6551,6553,6555,6557,6559,6561,6563,6565,6567,6569,6571,6573,6575,6577,6579,6581,6583,6585,6587,6589,6591,6593,6595,6597,6599,6601,6603,6605,6607,6609,6611,6613,6615,6617,6619,6621,6623,6625,6627,6629,6631,6633,6635,6637,6639,6641,6643,6645,6647,6649,6651,6653,6655,6657,6659,6661,6663,6665,6667,6669,6671,6673,6675,6677,6679,6681,6683,6685,6687,6689,6691,6693,6695,6697,6699,6701,6703,6705,6707,6709,6711,6713,6715,6717,6719,6721,6723,6725,6727,6729,6731,6733,6735,6737,6739,6741,6743,6745,6747,6749,6751,6753,6755,6757,6759,6761,6763,6765,6767,6769,6771,6773,6775,6777,6779,6781,6783,6785,6787,6789,6791,6793,6795,6797,6799,6801,6803,6805,6807,6809,6811,6813,6815,6817,6819,6821,6823,6825,6827,6829,6831,6833,6835,6837,6839,6841,6843,6845,6847,6849,6851,6853,6855,6857,6859,6861,6863,6865,6867,6869,6871,6873,6875,6877,6879,6881,6883,6885,6887,6889,6891,6893,6895,6897,6899,6901,6903,6905,6907,6909,6911,6913,6915,6917,6919,6921,6923,6925,6927,6929,6931,6933,6935,6937,6939,6941,6943,6945,6947,6949,6951,6953,6955,6957,6959,6961,6963,6965,6967,6969,6971,6973,6975,6977,6979,6981,6983,6985,6987,6989,6991,6993,6995,6997,6999,7001,7003,7005,7007,7009,7011,7013,7015,7017,7019,7021,7023,7025,7027,7029,7031,7033,7035,7037,7039,7041,7043,7045,7047,7049,7051,7053,7055,7057,7059,7061,7063,7065,7067,7069,7071,7073,7075,7077,7079,7081,7083,7085,7087,7089,7091,7093,7095,7097,7099,7101,7103,7105,7107,7109,7111,7113,7115,7117,7119,7121,7123,7125,7127,7129,7131,7133,7135,7137,7139,7141,7143,7145,7147,7149,7151,7153,7155,7157,7159,7161,7163,7165,7167,7169,7171,7173,7175,7177,7179,7181,7183,7185,7187,7189,7191,7193,7195,7197,7199,7201,7203,7205,7207,7209,7211,7213,7215,7217,7219,7221,7223,7225,7227,7229,7231,7233,7235,7237,7239,7241,7243,7245,7247,7249,7251,7253,7255,7257,7259,7261,7263,7265,7267,7269,7271,7273,7275,7277,7279,7281,7283,7285,7287,7289,7291,7293,7295,7297,7299,7301,7303,7305,7307,7309,7311,7313,7315,7317,7319,7321,7323,7325,7327,7329,7331,7333,7335,7337,7339,7341,7343,7345,7347,7349,7351,7353,7355,7357,7359,7361,7363,7365,7367,7369,7371,7373,7375,7377,7379,7381,7383,7385,7387,7389,7391,7393,7395,7397,7399,7401,7403,7405,7407,7409,7411,7413,7415,7417,7419,7421,7423,7425,7427,7429,7431,7433,7435,7437,7439,7441,7443,7445,7447,7449,7451,7453,7455,7457,7459,7461,7463,7465,7467,7469,7471,7473,7475,7477,7479,7481,7483,7485,7487,7489,7491,7493,7495,7497,7499,7501,7503,7505,7507,7509,7511,7513,7515,7517,7519,7521,7523,7525,7527,7529,7531,7533,7535,7537,7539,7541,7543,7545,7547,7549,7551,7553,7555,7557,7559,7561,7563,7565,7567,7569,7571,7573,7575,7577,7579,7581,7583,7585,7587,7589,7591,7593,7595,7597,7599,7601,7603,7605,7607,7609,7611,7613,7615,7617,7619,7621,7623,7625,7627,7629,7631,7633,7635,7637,7639,7641,7643,7645,7647,7649,7651,7653,7655,7657,7659,7661,7663,7665,7667,7669,7671,7673,7675,7677,7679,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,7829,7831,7833,7835,7837,7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,7935,7937,7939,7941,7943,7945,7947,7949,7951,7953,7955,7957,7959,7961,7963,7965,7967,7969,7971,7973,7975,7977,7979,7981,7983,7985,7987,7989,7991,7993,7995,7997,7999,8001,8003,8005,8007,8009,8011,8013,8015,8017,8019,8021,8023,8025,8027,8029,8031,8033,8035,8037,8039,8041,8043,8045,8047,8049,8051,8053,8055,8057,8059,8061,8063,8065,8067,8069,8071,8073,8075,8077,8079,8081,8083,8085,8087,8089,8091,8093,8095,8097,8099,8101,8103,8105,8107,8109,8111,8113,8115,8117,8119,8121,8123,8125,8127,8129,8131,8133,8135,8137,8139,8141,8143,8145,8147,8149,8151,8153,8155,8157,8159,8161,8163,8165,8167,8169,8171,8173,8175,8177,8179,8181,8183,8185,8187,8189,8191,8193,8195,8197,8199,8201,8203,8205,8207,8209,8211,8213,8215,8217,8219,8221,8223,8225,8227,8229,8231,8233,8235,8237,8239,8241,8243,8245,8247,8249,8251,8253,8255,8257,8259,8261,8263,8265,8267,8269,8271,8273,8275,8277,8279,8281,8283,8285,8287,8289,8291,8293,8295,8297,8299,8301,8303,8305,8307,8309,8311,8313,8315,8317,8319,8321,8323,8325,8327,8329,8331,8333,8335,8337,8339,8341,8343,8345,8347,8349,8351,8353,8355,8357,8359,8361,8363,8365,8367,8369,8371,8373,8375,8377,8379,8381,8383,8385,8387,8389,8391,8393,8395,8397,8399,8401,8403,8405,8407,8409,8411,8413,8415,8417,8419,8421,8423,8425,8427,8429,8431,8433,8435,8437,8439,8441,8443,8445,8447,8449,8451,8453,8455,8457,8459,8461,8463,8465,8467,8469,8471,8473,8475,8477,8479,8481,8483,8485,8487,8489,8491,8493,8495,8497,8499,8501,8503,8505,8507,8509,8511,8513,8515,8517,8519,8521,8523,8525,8527,8529,8531,8533,8535,8537,8539,8541,8543,8545,8547,8549,8551,8553,8555,8557,8559,8561,8563,8565,8567,8569,8571,8573,8575,8577,8579,8581,8583,8585,8587,8589,8591,8593,8595,8597,8599,8601,8603,8605,8607,8609,8611,8613,8615,8617,8619,8621,8623,8625,8627,8629,8631,8633,8635,8637,8639,8641,8643,8645,8647,8649,8651,8653,8655,8657,8659,8661,8663,8665,8667,8669,8671,8673,8675,8677,8679,8681,8683,8685,8687,8689,8691,8693,8695,8697,8699,8701,8703,8705,8707,8709,8711,8713,8715,8717,8719,8721,8723,8725,8727,8729,8731,8733,8735,8737,8739,8741,8743,8745,8747,8749,8751,8753,8755,8757,8759,8761,8763,8765,8767,8769,8771,8773,8775,8777,8779,8781,8783,8785,8787,8789,8791,8793,8795,8797,8799,8801,8803,8805,8807,8809,8811,8813,8815,8817,8819,8821,8823,8825,8827,8829,8831,8833,8835,8837,8839,8841,8843,8845,8847,8849,8851,8853,8855,8857,8859,8861,8863,8865,8867,8869,8871,8873,8875,8877,8879,8881,8883,8885,8887,8889,8891,8893,8895,8897,8899,8901,8903,8905,8907,8909,8911,8913,8915,8917,8919,8921,8923,8925,8927,8929,8931,8933,8935,8937,8939,8941,8943,8945,8947,8949,8951,8953,8955,8957,8959,8961,8963,8965,8967,8969,8971,8973,8975,8977,8979,8981,8983,8985,8987,8989,8991,8993,8995,8997,8999,9001,9003,9005,9007,9009,9011,9013,9015,9017,9019,9021,9023,9025,9027,9029,9031,9033,9035,9037,9039,9041,9043,9045,9047,9049,9051,9053,9055,9057,9059,9061,9063,9065,9067,9069,9071,9073,9075,9077,9079,9081,9083,9085,9087,9089,9091,9093,9095,9097,9099,9101,9103,9105,9107,9109,9111,9113,9115,9117,9119,9121,9123,9125,9127,9129,9131,9133,9135,9137,9139,9141,9143,9145,9147,9149,9151,9153,9155,9157,9159,9161,9163,9165,9167,9169,9171,9173,9175,9177,9179,9181,9183,9185,9187,9189,9191,9193,9195,9197,9199,9201,9203,9205,9207,9209,9211,9213,9215,9217,9219,9221,9223,9225,9227,9229,9231,9233,9235,9237,9239,9241,9243,9245,9247,9249,9251,9253,9255,9257,9259,9261,9263,9265,9267,9269,9271,9273,9275,9277,9279,9281,9283,9285,9287,9289,9291,9293,9295,9297,9299,9301,9303,9305,9307,9309,9311,9313,9315,9317,9319,9321,9323,9325,9327,9329,9331,9333,9335,9337,9339,9341,9343,9345,9347,9349,9351,9353,9355,9357,9359,9361,9363,9365,9367,9369,9371,9373,9375,9377,9379,9381,9383,9385,9387,9389,9391,9393,9395,9397,9399,9401,9403,9405,9407,9409,9411,9413,9415,9417,9419,9421,9423,9425,9427,9429,9431,9433,9435,9437,9439,9441,9443,9445,9447,9449,9451,9453,9455,9457,9459,9461,9463,9465,9467,9469,9471,9473,9475,9477,9479,9481,9483,9485,9487,9489,9491,9493,9495,9497,9499,9501,9503,9505,9507,9509,9511,9513,9515,9517,9519,9521,9523,9525,9527,9529,9531,9533,9535,9537,9539,9541,9543,9545,9547,9549,9551,9553,9555,9557,9559,9561,9563,9565,9567,9569,9571,9573,9575,9577,9579,9581,9583,9585,9587,9589,9591,9593,9595,9597,9599,9601,9603,9605,9607,9609,9611,9613,9615,9617,9619,9621,9623,9625,9627,9629,9631,9633,9635,9637,9639,9641,9643,9645,9647,9649,9651,9653,9655,9657,9659,9661,9663,9665,9667,9669,9671,9673,9675,9677,9679,9681,9683,9685,9687,9689,9691,9693,9695,9697,9699,9701,9703,9705,9707,9709,9711,9713,9715,9717,9719,9721,9723,9725,9727,9729,9731,9733,9735,9737,9739,9741,9743,9745,9747,9749,9751,9753,9755,9757,9759,9761,9763,9765,9767,9769,9771,9773,9775,9777,9779,9781,9783,9785,9787,9789,9791,9793,9795,9797,9799,9801,9803,9805,9807,9809,9811,9813,9815,9817,9819,9821,9823,9825,9827,9829,9831,9833,9835,9837,9839,9841,9843,9845,9847,9849,9851,9853,9855,9857,9859,9861,9863,9865,9867,9869,9871,9873,9875,9877,9879,9881,9883,9885,9887,9889,9891,9893,9895,9897,9899,9901,9903,9905,9907,9909,9911,9913,9915,9917,9919,9921,9923,9925,9927,9929,9931,9933,9935,9937,9939,9941,9943,9945,9947,9949,9951,9953,9955,9957,9959,9961,9963,9965,9967,9969,9971,9973,9975,9977,9979,9981,9983,9985,9987,9989,9991,9993,9995,9997,9999,10001,10003,10005,10007,10009,10011,10013,10015,10017,10019,10021,10023,10025,10027,10029,10031,10033,10035,10037,10039,10041,10043,10045,10047,10049,10051,10053,10055,10057,10059,10061,10063,10065,10067,10069,10071,10073,10075,10077,10079,10081,10083,10085,10087,10089,10091,10093,10095,10097,10099,10101,10103,10105,10107,10109,10111,10113,10115,10117,10119,10121,10123,10125,10127,10129,10131,10133,10135,10137,10139,10141,10143,10145,10147,10149,10151,10153,10155,10157,10159,10161,10163,10165,10167,10169,10171,10173,10175,10177,10179,10181,10183,10185,10187,10189,10191,10193,10195,10197,10199,10201,10203,10205,10207,10209,10211,10213,10215,10217,10219,10221,10223,10225,10227,10229,10231,10233,10235,10237,10239,10241,10243,10245,10247,10249,10251,10253,10255,10257,10259,10261,10263,10265,10267,10269,10271,10273,10275,10277,10279,10281,10283,10285,10287,10289,10291,10293,10295,10297,10299,10301,10303,10305,10307,10309,10311,10313,10315,10317,10319,10321,10323,10325,10327,10329,10331,10333,10335,10337,10339,10341,10343,10345,10347,10349,10351,10353,10355,10357,10359,10361,10363,10365,10367,10369,10371,10373,10375,10377,10379,10381,10383,10385,10387,10389,10391,10393,10395,10397,10399,10401,10403,10405,10407,10409,10411,10413,10415,10417,10419,10421,10423,10425,10427,10429,10431,10433,10435,10437,10439,10441,10443,10445,10447,10449,10451,10453,10455,10457,10459,10461,10463,10465,10467,10469,10471,10473,10475,10477,10479,10481,10483,10485,10487,10489,10491,10493,10495,10497,10499,10501,10503,10505,10507,10509,10511,10513,10515,10517,10519,10521,10523,10525,10527,10529,10531,10533,10535,10537,10539,10541,10543,10545,10547,10549,10551,10553,10555,10557,10559,10561,10563,10565,10567,10569,10571,10573,10575,10577,10579,10581,10583,10585,10587,10589,10591,10593,10595,10597,10599,10601,10603,10605,10607,10609,10611,10613,10615,10617,10619,10621,10623,10625,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10649,10651,10653,10655,10657,10659,10661,10663,10665,10667,10669,10671,10673,10675,10677,10679,10681,10683,10685,10687,10689,10691,10693,10695,10697,10699,10701,10703,10705,10707,10709,10711,10713,10715,10717,10719,10721,10723,10725,10727,10729,10731,10733,10735,10737,10739,10741,10743,10745,10747,10749,10751,10753,10755,10757,10759,10761,10763,10765,10767,10769,10771,10773,10775,10777,10779,10781,10783,10785,10787,10789,10791,10793,10795,10797,10799,10801,10803,10805,10807,10809,10811,10813,10815,10817,10819,10821,10823,10825,10827,10829,10831,10833,10835,10837,10839,10841,10843,10845,10847,10849,10851,10853,10855,10857,10859,10861,10863,10865,10867,10869,10871,10873,10875,10877,10879,10881,10883,10885,10887,10889,10891,10893,10895,10897,10899,10901,10903,10905,10907,10909,10911,10913,10915,10917,10919,10921,10923,10925,10927,10929,10931,10933,10935,10937,10939,10941,10943,10945,10947,10949,10951,10953,10955,10957,10959,10961,10963,10965,10967,10969,10971,10973,10975,10977,10979,10981,10983,10985,10987,10989,10991,10993,10995,10997,10999,11001,11003,11005,11007,11009,11011,11013,11015,11017,11019,11021,11023,11025,11027,11029,11031,11033,11035,11037,11039,11041,11043,11045,11047,11049,11051,11053,11055,11057,11059,11061,11063,11065,11067,11069,11071,11073,11075,11077,11079,11081,11083,11085,11087,11089,11091,11093,11095,11097,11099,11101,11103,11105,11107,11109,11111,11113,11115,11117,11119,11121,11123,11125,11127,11129,11131,11133,11135,11137,11139,11141,11143,11145,11147,11149,11151,11153,11155,11157,11159,11161,11163,11165,11167,11169,11171,11173,11175,11177,11179,11181,11183,11185,11187,11189,11191,11193,11195,11197,11199,11201,11203,11205,11207,11209,11211,11213,11215,11217,11219,11221,11223,11225,11227,11229,11231,11233,11235,11237,11239,11241,11243,11245,11247,11249,11251,11253,11255,11257,11259,11261,11263,11265,11267,11269,11271,11273,11275,11277,11279,11281,11283,11285,11287,11289,11291,11293,11295,11297,11299,11301,11303,11305,11307,11309,11311,11313,11315,11317,11319,11321,11323,11325,11327,11329,11331,11333,11335,11337,11339,11341,11343,11345,11347,11349,11351,11353,11355,11357,11359,11361,11363,11365,11367,11369,11371,11373,11375,11377,11379,11381,11383,11385,11387,11389,11391,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11491,11493,11495,11497,11499,11501,11503,11505,11507,11509,11511,11513,11515,11517,11519,11521,11523,11525,11527,11529,11531,11533,11535,11537,11539,11541,11543,11545,11547,11549,11551,11553,11555,11557,11559,11561,11563,11565,11567,11569,11571,11573,11575,11577,11579,11581,11583,11585,11587,11589,11591,11593,11595,11597,11599,11601,11603,11605,11607,11609,11611,11613,11615,11617,11619,11621,11623,11625,11627,11629,11631,11633,11635,11637,11639,11641,11643,11645,11647,11649,11651,11653,11655,11657,11659,11661,11663,11665,11667,11669,11671,11673,11675,11677,11679,11681,11683,11685,11687,11689,11691,11693,11695,11697,11699,11701,11703,11705,11707,11709,11711,11713,11715,11717,11719,11721,11723,11725,11727,11729,11731,11733,11735,11737,11739,11741,11743,11745,11747,11749,11751,11753,11755,11757,11759,11761,11763,11765,11767,11769,11771,11773,11775,11777,11779,11781,11783,11785,11787,11789,11791,11793,11795,11797,11799,11801,11803,11805,11807,11809,11811,11813,11815,11817,11819,11821,11823,11825,11827,11829,11831,11833,11835,11837,11839,11841,11843,11845,11847,11849,11851,11853,11855,11857,11859,11861,11863,11865,11867,11869,11871,11873,11875,11877,11879,11881,11883,11885,11887,11889,11891,11893,11895,11897,11899,11901,11903,11905,11907,11909,11911,11913,11915,11917,11919,11921,11923,11925,11927,11929,11931,11933,11935,11937,11939,11941,11943,11945,11947,11949,11951,11953,11955,11957,11959,11961,11963,11965,11967,11969,11971,11973,11975,11977,11979,11981,11983,11985,11987,11989,11991,11993,11995,11997,11999,12001,12003,12005,12007,12009,12011,12013,12015,12017,12019,12021,12023,12025,12027,12029,12031,12033,12035,12037,12039,12041,12043,12045,12047,12049,12051,12053,12055,12057,12059,12061,12063,12065,12067,12069,12071,12073,12075,12077,12079,12081,12083,12085,12087,12089,12091,12093,12095,12097,12099,12101,12103,12105,12107,12109,12111,12113,12115,12117,12119,12121,12123,12125,12127,12129,12131,12133,12135,12137,12139,12141,12143,12145,12147,12149,12151,12153,12155,12157,12159,12161,12163,12165,12167,12169,12171,12173,12175,12177,12179,12181,12183,12185,12187,12189,12191,12193,12195,12197,12199,12201,12203,12205,12207,12209,12211,12213,12215,12217,12219,12221,12223,12225,12227,12229,12231,12233,12235,12237,12239,12241,12243,12245,12247,12249,12251,12253,12255,12257,12259,12261,12263,12265,12267,12269,12271,12273,12275,12277,12279,12281,12283,12285,12287,12289,12291,12293,12295,12297,12299,12301,12303,12305,12307,12309,12311,12313,12315,12317,12319,12321,12323,12325,12327,12329,12331,12333,12335,12337,12339,12341,12343,12345,12347,12349,12351,12353,12355,12357,12359,12361,12363,12365,12367,12369,12371,12373,12375,12377,12379,12381,12383,12385,12387,12389,12391,12393,12395,12397,12399,12401,12403,12405,12407,12409,12411,12413,12415,12417,12419,12421,12423,12425,12427,12429,12431,12433,12435,12437,12439,12441,12443,12445,12447,12449,12451,12453,12455,12457,12459,12461,12463,12465,12467,12469,12471,12473,12475,12477,12479,12481,12483,12485,12487,12489,12491,12493,12495,12497,12499,12501,12503,12505,12507,12509,12511,12513,12515,12517,12519,12521,12523,12525,12527,12529,12531,12533,12535,12537,12539,12541,12543,12545,12547,12549,12551,12553,12555,12557,12559,12561,12563,12565,12567,12569,12571,12573,12575,12577,12579,12581,12583,12585,12587,12589,12591,12593,12595,12597,12599,12601,12603,12605,12607,12609,12611,12613,12615,12617,12619,12621,12623,12625,12627,12629,12631,12633,12635,12637,12639,12641,12643,12645,12647,12649,12651,12653,12655,12657,12659,12661,12663,12665,12667,12669,12671,12673,12675,12677,12679,12681,12683,12685,12687,12689,12691,12693,12695,12697,12699,12701,12703,12705,12707,12709,12711,12713,12715,12717,12719,12721,12723,12725,12727,12729,12731,12733,12735,12737,12739,12741,12743,12745,12747,12749,12751,12753,12755,12757,12759,12761,12763,12765,12767,12769,12771,12773,12775,12777,12779,12781,12783,12785,12787,12789,12791,12793,12795,12797,12799,12801,12803,12805,12807,12809,12811,12813,12815,12817,12819,12821,12823,12825,12827,12829,12831,12833,12835,12837,12839,12841,12843,12845,12847,12849,12851,12853,12855,12857,12859,12861,12863,12865,12867,12869,12871,12873,12875,12877,12879,12881,12883,12885,12887,12889,12891,12893,12895,12897,12899,12901,12903,12905,12907,12909,12911,12913,12915,12917,12919,12921,12923,12925,12927,12929,12931,12933,12935,12937,12939,12941,12943,12945,12947,12949,12951,12953,12955,12957,12959,12961,12963,12965,12967,12969,12971,12973,12975,12977,12979,12981,12983,12985,12987,12989,12991,12993,12995,12997,12999,13001,13003,13005,13007,13009,13011,13013,13015,13017,13019,13021,13023,13025,13027,13029,13031,13033,13035,13037,13039,13041,13043,13045,13047,13049,13051,13053,13055,13057,13059,13061,13063,13065,13067,13069,13071,13073,13075,13077,13079,13081,13083,13085,13087,13089,13091,13093,13095,13097,13099,13101,13103,13105,13107,13109,13111,13113,13115,13117,13119,13121,13123,13125,13127,13129,13131,13133,13135,13137,13139,13141,13143,13145,13147,13149,13151,13153,13155,13157,13159,13161,13163,13165,13167,13169,13171,13173,13175,13177,13179,13181,13183,13185,13187,13189,13191,13193,13195,13197,13199,13201,13203,13205,13207,13209,13211,13213,13215,13217,13219,13221,13223,13225,13227,13229,13231,13233,13235,13237,13239,13241,13243,13245,13247,13249,13251,13253,13255,13257,13259,13261,13263,13265,13267,13269,13271,13273,13275,13277,13279,13281,13283,13285,13287,13289,13291,13293,13295,13297,13299,13301,13303,13305,13307,13309,13311,13313,13315,13317,13319,13321,13323,13325,13327,13329,13331,13333,13335,13337,13339,13341,13343,13345,13347,13349,13351,13353,13355,13357,13359,13361,13363,13365,13367,13369,13371,13373,13375,13377,13379,13381,13383,13385,13387,13389,13391,13393,13395,13397,13399,13401,13403,13405,13407,13409,13411,13413,13415,13417,13419,13421,13423,13425,13427,13429,13431,13433,13435,13437,13439,13441,13443,13445,13447,13449,13451,13453,13455,13457,13459,13461,13463,13465,13467,13469,13471,13473,13475,13477,13479,13481,13483,13485,13487,13489,13491,13493,13495,13497,13499,13501,13503,13505,13507,13509,13511,13513,13515,13517,13519,13521,13523,13525,13527,13529,13531,13533,13535,13537,13539,13541,13543,13545,13547,13549,13551,13553,13555,13557,13559,13561,13563,13565,13567,13569,13571,13573,13575,13577,13579,13581,13583,13585,13587,13589,13591,13593,13595,13597,13599,13601,13603,13605,13607,13609,13611,13613,13615,13617,13619,13621,13623,13625,13627,13629,13631,13633,13635,13637,13639,13641,13643,13645,13647,13649,13651,13653,13655,13657,13659,13661,13663,13665,13667,13669,13671,13673,13675,13677,13679,13681,13683,13685,13687,13689,13691,13693,13695,13697,13699,13701,13703,13705,13707,13709,13711,13713,13715,13717,13719,13721,13723,13725,13727,13729,13731,13733,13735,13737,13739,13741,13743,13745,13747,13749,13751,13753,13755,13757,13759,13761,13763,13765,13767,13769,13771,13773,13775,13777,13779,13781,13783,13785,13787,13789,13791,13793,13795,13797,13799,13801,13803,13805,13807,13809,13811,13813,13815,13817,13819,13821,13823,13825,13827,13829,13831,13833,13835,13837,13839,13841,13843,13845,13847,13849,13851,13853,13855,13857,13859,13861,13863,13865,13867,13869,13871,13873,13875,13877,13879,13881,13883,13885,13887,13889,13891,13893,13895,13897,13899,13901,13903,13905,13907,13909,13911,13913,13915,13917,13919,13921,13923,13925,13927,13929,13931,13933,13935,13937,13939,13941,13943,13945,13947,13949,13951,13953,13955,13957,13959,13961,13963,13965,13967,13969,13971,13973,13975,13977,13979,13981,13983,13985,13987,13989,13991,13993,13995,13997,13999,14001,14003,14005,14007,14009,14011,14013,14015,14017,14019,14021,14023,14025,14027,14029,14031,14033,14035,14037,14039,14041,14043,14045,14047,14049,14051,14053,14055,14057,14059,14061,14063,14065,14067,14069,14071,14073,14075,14077,14079,14081,14083,14085,14087,14089,14091,14093,14095,14097,14099,14101,14103,14105,14107,14109,14111,14113,14115,14117,14119,14121,14123,14125,14127,14129,14131,14133,14135,14137,14139,14141,14143,14145,14147,14149,14151,14153,14155,14157,14159,14161,14163,14165,14167,14169,14171,14173,14175,14177,14179,14181,14183,14185,14187,14189,14191,14193,14195,14197,14199,14201,14203,14205,14207,14209,14211,14213,14215,14217,14219,14221,14223,14225,14227,14229,14231,14233,14235,14237,14239,14241,14243,14245,14247,14249,14251,14253,14255,14257,14259,14261,14263,14265,14267,14269,14271,14273,14275,14277,14279,14281,14283,14285,14287,14289,14291,14293,14295,14297,14299,14301,14303,14305,14307,14309,14311,14313,14315,14317,14319,14321,14323,14325,14327,14329,14331,14333,14335,14337,14339,14341,14343,14345,14347,14349,14351,14353,14355,14357,14359,14361,14363,14365,14367,14369,14371,14373,14375,14377,14379,14381,14383,14385,14387,14389,14391,14393,14395,14397,14399,14401,14403,14405,14407,14409,14411,14413,14415,14417,14419,14421,14423,14425,14427,14429,14431,14433,14435,14437,14439,14441,14443,14445,14447,14449,14451,14453,14455,14457,14459,14461,14463,14465,14467,14469,14471,14473,14475,14477,14479,14481,14483,14485,14487,14489,14491,14493,14495,14497,14499,14501,14503,14505,14507,14509,14511,14513,14515,14517,14519,14521,14523,14525,14527,14529,14531,14533,14535,14537,14539,14541,14543,14545,14547,14549,14551,14553,14555,14557,14559,14561,14563,14565,14567,14569,14571,14573,14575,14577,14579,14581,14583,14585,14587,14589,14591,14593,14595,14597,14599,14601,14603,14605,14607,14609,14611,14613,14615,14617,14619,14621,14623,14625,14627,14629,14631,14633,14635,14637,14639,14641,14643,14645,14647,14649,14651,14653,14655,14657,14659,14661,14663,14665,14667,14669,14671,14673,14675,14677,14679,14681,14683,14685,14687,14689,14691,14693,14695,14697,14699,14701,14703,14705,14707,14709,14711,14713,14715,14717,14719,14721,14723,14725,14727,14729,14731,14733,14735,14737,14739,14741,14743,14745,14747,14749,14751,14753,14755,14757,14759,14761,14763,14765,14767,14769,14771,14773,14775,14777,14779,14781,14783,14785,14787,14789,14791,14793,14795,14797,14799,14801,14803,14805,14807,14809,14811,14813,14815,14817,14819,14821,14823,14825,14827,14829,14831,14833,14835,14837,14839,14841,14843,14845,14847,14849,14851,14853,14855,14857,14859,14861,14863,14865,14867,14869,14871,14873,14875,14877,14879,14881,14883,14885,14887,14889,14891,14893,14895,14897,14899,14901,14903,14905,14907,14909,14911,14913,14915,14917,14919,14921,14923,14925,14927,14929,14931,14933,14935,14937,14939,14941,14943,14945,14947,14949,14951,14953,14955,14957,14959,14961,14963,14965,14967,14969,14971,14973,14975,14977,14979,14981,14983,14985,14987,14989,14991,14993,14995,14997,14999,15001,15003,15005,15007,15009,15011,15013,15015,15017,15019,15021,15023,15025,15027,15029,15031,15033,15035,15037,15039,15041,15043,15045,15047,15049,15051,15053,15055,15057,15059,15061,15063,15065,15067,15069,15071,15073,15075,15077,15079,15081,15083,15085,15087,15089,15091,15093,15095,15097,15099,15101,15103,15105,15107,15109,15111,15113,15115,15117,15119,15121,15123,15125,15127,15129,15131,15133,15135,15137,15139,15141,15143,15145,15147,15149,15151,15153,15155,15157,15159,15161,15163,15165,15167,15169,15171,15173,15175,15177,15179,15181,15183,15185,15187,15189,15191,15193,15195,15197,15199,15201,15203,15205,15207,15209,15211,15213,15215,15217,15219,15221,15223,15225,15227,15229,15231,15233,15235,15237,15239,15241,15243,15245,15247,15249,15251,15253,15255,15257,15259,15261,15263,15265,15267,15269,15271,15273,15275,15277,15279,15281,15283,15285,15287,15289,15291,15293,15295,15297,15299,15301,15303,15305,15307,15309,15311,15313,15315,15317,15319,15321,15323,15325,15327,15329,15331,15333,15335,15337,15339,15341,15343,15345,15347,15349,15351,15353,15355,15357,15359,15361,15363,15365,15367,15369,15371,15373,15375,15377,15379,15381,15383,15385,15387,15389,15391,15393,15395,15397,15399,15401,15403,15405,15407,15409,15411,15413,15415,15417,15419,15421,15423,15425,15427,15429,15431,15433,15435,15437,15439,15441,15443,15445,15447,15449,15451,15453,15455,15457,15459,15461,15463,15465,15467,15469,15471,15473,15475,15477,15479,15481,15483,15485,15487,15489,15491,15493,15495,15497,15499,15501,15503,15505,15507,15509,15511,15513,15515,15517,15519,15521,15523,15525,15527,15529,15531,15533,15535,15537,15539,15541,15543,15545,15547,15549,15551,15553,15555,15557,15559,15561,15563,15565,15567,15569,15571,15573,15575,15577,15579,15581,15583,15585,15587,15589,15591,15593,15595,15597,15599,15601,15603,15605,15607,15609,15611,15613,15615,15617,15619,15621,15623,15625,15627,15629,15631,15633,15635,15637,15639,15641,15643,15645,15647,15649,15651,15653,15655,15657,15659,15661,15663,15665,15667,15669,15671,15673,15675,15677,15679,15681,15683,15685,15687,15689,15691,15693,15695,15697,15699,15701,15703,15705,15707,15709,15711,15713,15715,15717,15719,15721,15723,15725,15727,15729,15731,15733,15735,15737,15739,15741,15743,15745,15747,15749,15751,15753,15755,15757,15759,15761,15763,15765,15767,15769,15771,15773,15775,15777,15779,15781,15783,15785,15787,15789,15791,15793,15795,15797,15799,15801,15803,15805,15807,15809,15811,15813,15815,15817,15819,15821,15823,15825,15827,15829,15831,15833,15835,15837,15839,15841,15843,15845,15847,15849,15851,15853,15855,15857,15859,15861,15863,15865,15867,15869,15871,15873,15875,15877,15879,15881,15883,15885,15887,15889,15891,15893,15895,15897,15899,15901,15903,15905,15907,15909,15911,15913,15915,15917,15919,15921,15923,15925,15927,15929,15931,15933,15935,15937,15939,15941,15943,15945,15947,15949,15951,15953,15955,15957,15959,15961,15963,15965,15967,15969,15971,15973,15975,15977,15979,15981,15983,15985,15987,15989,15991,15993,15995,15997,15999,16001,16003,16005,16007,16009,16011,16013,16015,16017,16019,16021,16023,16025,16027,16029,16031,16033,16035,16037,16039,16041,16043,16045,16047,16049,16051,16053,16055,16057,16059,16061,16063,16065,16067,16069,16071,16073,16075,16077,16079,16081,16083,16085,16087,16089,16091,16093,16095,16097,16099,16101,16103,16105,16107,16109,16111,16113,16115,16117,16119,16121,16123,16125,16127,16129,16131,16133,16135,16137,16139,16141,16143,16145,16147,16149,16151,16153,16155,16157,16159,16161,16163,16165,16167,16169,16171,16173,16175,16177,16179,16181,16183,16185,16187,16189,16191,16193,16195,16197,16199,16201,16203,16205,16207,16209,16211,16213,16215,16217,16219,16221,16223,16225,16227,16229,16231,16233,16235,16237,16239,16241,16243,16245,16247,16249,16251,16253,16255,16257,16259,16261,16263,16265,16267,16269,16271,16273,16275,16277,16279,16281,16283,16285,16287,16289,16291,16293,16295,16297,16299,16301,16303,16305,16307,16309,16311,16313,16315,16317,16319,16321,16323,16325,16327,16329,16331,16333,16335,16337,16339,16341,16343,16345,16347,16349,16351,16353,16355,16357,16359,16361,16363,16365,16367,16369,16371,16373,16375,16377,16379,16381,16383,16385,16387,16389,16391,16393,16395,16397,16399,16401,16403,16405,16407,16409,16411,16413,16415,16417,16419,16421,16423,16425,16427,16429,16431,16433,16435,16437,16439,16441,16443,16445,16447,16449,16451,16453,16455,16457,16459,16461,16463,16465,16467,16469,16471,16473,16475,16477,16479,16481,16483,16485,16487,16489,16491,16493,16495,16497,16499,16501,16503,16505,16507,16509,16511,16513,16515,16517,16519,16521,16523,16525,16527,16529,16531,16533,16535,16537,16539,16541,16543,16545,16547,16549,16551,16553,16555,16557,16559,16561,16563,16565,16567,16569,16571,16573,16575,16577,16579,16581,16583,16585,16587,16589,16591,16593,16595,16597,16599,16601,16603,16605,16607,16609,16611,16613,16615,16617,16619,16621,16623,16625,16627,16629,16631,16633,16635,16637,16639,16641,16643,16645,16647,16649,16651,16653,16655,16657,16659,16661,16663,16665,16667,16669,16671,16673,16675,16677,16679,16681,16683,16685,16687,16689,16691,16693,16695,16697,16699,16701,16703,16705,16707,16709,16711,16713,16715,16717,16719,16721,16723,16725,16727,16729,16731,16733,16735,16737,16739,16741,16743,16745,16747,16749,16751,16753,16755,16757,16759,16761,16763,16765,16767,16769,16771,16773,16775,16777,16779,16781,16783,16785,16787,16789,16791,16793,16795,16797,16799,16801,16803,16805,16807,16809,16811,16813,16815,16817,16819,16821,16823,16825,16827,16829,16831,16833,16835,16837,16839,16841,16843,16845,16847,16849,16851,16853,16855,16857,16859,16861,16863,16865,16867,16869,16871,16873,16875,16877,16879,16881,16883,16885,16887,16889,16891,16893,16895,16897,16899,16901,16903,16905,16907,16909,16911,16913,16915,16917,16919,16921,16923,16925,16927,16929,16931,16933,16935,16937,16939,16941,16943,16945,16947,16949,16951,16953,16955,16957,16959,16961,16963,16965,16967,16969,16971,16973,16975,16977,16979,16981,16983,16985,16987,16989,16991,16993,16995,16997,16999,17001,17003,17005,17007,17009,17011,17013,17015,17017,17019,17021,17023,17025,17027,17029,17031,17033,17035,17037,17039,17041,17043,17045,17047,17049,17051,17053,17055,17057,17059,17061,17063,17065,17067,17069,17071,17073,17075,17077,17079,17081,17083,17085,17087,17089,17091,17093,17095,17097,17099,17101,17103,17105,17107,17109,17111,17113,17115,17117,17119,17121,17123,17125,17127,17129,17131,17133,17135,17137,17139,17141,17143,17145,17147,17149,17151,17153,17155,17157,17159,17161,17163,17165,17167,17169,17171,17173,17175,17177,17179,17181,17183,17185,17187,17189,17191,17193,17195,17197,17199,17201,17203,17205,17207,17209,17211,17213,17215,17217,17219,17221,17223,17225,17227,17229,17231,17233,17235,17237,17239,17241,17243,17245,17247,17249,17251,17253,17255,17257,17259,17261,17263,17265,17267,17269,17271,17273,17275,17277,17279,17281,17283,17285,17287,17289,17291,17293,17295,17297,17299,17301,17303,17305,17307,17309,17311,17313,17315,17317,17319,17321,17323,17325,17327,17329,17331,17333,17335,17337,17339,17341,17343,17345,17347,17349,17351,17353,17355,17357,17359,17361,17363,17365,17367,17369,17371,17373,17375,17377,17379,17381,17383,17385,17387,17389,17391,17393,17395,17397,17399,17401,17403,17405,17407,17409,17411,17413,17415,17417,17419,17421,17423,17425,17427,17429,17431,17433,17435,17437,17439,17441,17443,17445,17447,17449,17451,17453,17455,17457,17459,17461,17463,17465,17467,17469,17471,17473,17475,17477,17479,17481,17483,17485,17487,17489,17491,17493,17495,17497,17499,17501,17503,17505,17507,17509,17511,17513,17515,17517,17519,17521,17523,17525,17527,17529,17531,17533,17535,17537,17539,17541,17543,17545,17547,17549,17551,17553,17555,17557,17559,17561,17563,17565,17567,17569,17571,17573,17575,17577,17579,17581,17583,17585,17587,17589,17591,17593,17595,17597,17599,17601,17603,17605,17607,17609,17611,17613,17615,17617,17619,17621,17623,17625,17627,17629,17631,17633,17635,17637,17639,17641,17643,17645,17647,17649,17651,17653,17655,17657,17659,17661,17663,17665,17667,17669,17671,17673,17675,17677,17679,17681,17683,17685,17687,17689,17691,17693,17695,17697,17699,17701,17703,17705,17707,17709,17711,17713,17715,17717,17719,17721,17723,17725,17727,17729,17731,17733,17735,17737,17739,17741,17743,17745,17747,17749,17751,17753,17755,17757,17759,17761,17763,17765,17767,17769,17771,17773,17775,17777,17779,17781,17783,17785,17787,17789,17791,17793,17795,17797,17799,17801,17803,17805,17807,17809,17811,17813,17815,17817,17819,17821,17823,17825,17827,17829,17831,17833,17835,17837,17839,17841,17843,17845,17847,17849,17851,17853,17855,17857,17859,17861,17863,17865,17867,17869,17871,17873,17875,17877,17879,17881,17883,17885,17887,17889,17891,17893,17895,17897,17899,17901,17903,17905,17907,17909,17911,17913,17915,17917,17919,17921,17923,17925,17927,17929,17931,17933,17935,17937,17939,17941,17943,17945,17947,17949,17951,17953,17955,17957,17959,17961,17963,17965,17967,17969,17971,17973,17975,17977,17979,17981,17983,17985,17987,17989,17991,17993,17995,17997,17999,18001,18003,18005,18007,18009,18011,18013,18015,18017,18019,18021,18023,18025,18027,18029,18031,18033,18035,18037,18039,18041,18043,18045,18047,18049,18051,18053,18055,18057,18059,18061,18063,18065,18067,18069,18071,18073,18075,18077,18079,18081,18083,18085,18087,18089,18091,18093,18095,18097,18099,18101,18103,18105,18107,18109,18111,18113,18115,18117,18119,18121,18123,18125,18127,18129,18131,18133,18135,18137,18139,18141,18143,18145,18147,18149,18151,18153,18155,18157,18159,18161,18163,18165,18167,18169,18171,18173,18175,18177,18179,18181,18183,18185,18187,18189,18191,18193,18195,18197,18199,18201,18203,18205,18207,18209,18211,18213,18215,18217,18219,18221,18223,18225,18227,18229,18231,18233,18235,18237,18239,18241,18243,18245,18247,18249,18251,18253,18255,18257,18259,18261,18263,18265,18267,18269,18271,18273,18275,18277,18279,18281,18283,18285,18287,18289,18291,18293,18295,18297,18299,18301,18303,18305,18307,18309,18311,18313,18315,18317,18319,18321,18323,18325,18327,18329,18331,18333,18335,18337,18339,18341,18343,18345,18347,18349,18351,18353,18355,18357,18359,18361,18363,18365,18367,18369,18371,18373,18375,18377,18379,18381,18383,18385,18387,18389,18391,18393,18395,18397,18399,18401,18403,18405,18407,18409,18411,18413,18415,18417,18419,18421,18423,18425,18427,18429,18431,18433,18435,18437,18439,18441,18443,18445,18447,18449,18451,18453,18455,18457,18459,18461,18463,18465,18467,18469,18471,18473,18475,18477,18479,18481,18483,18485,18487,18489,18491,18493,18495,18497,18499,18501,18503,18505,18507,18509,18511,18513,18515,18517,18519,18521,18523,18525,18527,18529,18531,18533,18535,18537,18539,18541,18543,18545,18547,18549,18551,18553,18555,18557,18559,18561,18563,18565,18567,18569,18571,18573,18575,18577,18579,18581,18583,18585,18587,18589,18591,18593,18595,18597,18599,18601,18603,18605,18607,18609,18611,18613,18615,18617,18619,18621,18623,18625,18627,18629,18631,18633,18635,18637,18639,18641,18643,18645,18647,18649,18651,18653,18655,18657,18659,18661,18663,18665,18667,18669,18671,18673,18675,18677,18679,18681,18683,18685,18687,18689,18691,18693,18695,18697,18699,18701,18703,18705,18707,18709,18711,18713,18715,18717,18719,18721,18723,18725,18727,18729,18731,18733,18735,18737,18739,18741,18743,18745,18747,18749,18751,18753,18755,18757,18759,18761,18763,18765,18767,18769,18771,18773,18775,18777,18779,18781,18783,18785,18787,18789,18791,18793,18795,18797,18799,18801,18803,18805,18807,18809,18811,18813,18815,18817,18819,18821,18823,18825,18827,18829,18831,18833,18835,18837,18839,18841,18843,18845,18847,18849,18851,18853,18855,18857,18859,18861,18863,18865,18867,18869,18871,18873,18875,18877,18879,18881,18883,18885,18887,18889,18891,18893,18895,18897,18899,18901,18903,18905,18907,18909,18911,18913,18915,18917,18919,18921,18923,18925,18927,18929,18931,18933,18935,18937,18939,18941,18943,18945,18947,18949,18951,18953,18955,18957,18959,18961,18963,18965,18967,18969,18971,18973,18975,18977,18979,18981,18983,18985,18987,18989,18991,18993,18995,18997,18999,19001,19003,19005,19007,19009,19011,19013,19015,19017,19019,19021,19023,19025,19027,19029,19031,19033,19035,19037,19039,19041,19043,19045,19047,19049,19051,19053,19055,19057,19059,19061,19063,19065,19067,19069,19071,19073,19075,19077,19079,19081,19083,19085,19087,19089,19091,19093,19095,19097,19099,19101,19103,19105,19107,19109,19111,19113,19115,19117,19119,19121,19123,19125,19127,19129,19131,19133,19135,19137,19139,19141,19143,19145,19147,19149,19151,19153,19155,19157,19159,19161,19163,19165,19167,19169,19171,19173,19175,19177,19179,19181,19183,19185,19187,19189,19191,19193,19195,19197,19199,19201,19203,19205,19207,19209,19211,19213,19215,19217,19219,19221,19223,19225,19227,19229,19231,19233,19235,19237,19239,19241,19243,19245,19247,19249,19251,19253,19255,19257,19259,19261,19263,19265,19267,19269,19271,19273,19275,19277,19279,19281,19283,19285,19287,19289,19291,19293,19295,19297,19299,19301,19303,19305,19307,19309,19311,19313,19315,19317,19319,19321,19323,19325,19327,19329,19331,19333,19335,19337,19339,19341,19343,19345,19347,19349,19351,19353,19355,19357,19359,19361,19363,19365,19367,19369,19371,19373,19375,19377,19379,19381,19383,19385,19387,19389,19391,19393,19395,19397,19399,19401,19403,19405,19407,19409,19411,19413,19415,19417,19419,19421,19423,19425,19427,19429,19431,19433,19435,19437,19439,19441,19443,19445,19447,19449,19451,19453,19455,19457,19459,19461,19463,19465,19467,19469,19471,19473,19475,19477,19479,19481,19483,19485,19487,19489,19491,19493,19495,19497,19499,19501,19503,19505,19507,19509,19511,19513,19515,19517,19519,19521,19523,19525,19527,19529,19531,19533,19535,19537,19539,19541,19543,19545,19547,19549,19551,19553,19555,19557,19559,19561,19563,19565,19567,19569,19571,19573,19575,19577,19579,19581,19583,19585,19587,19589,19591,19593,19595,19597,19599,19601,19603,19605,19607,19609,19611,19613,19615,19617,19619,19621,19623,19625,19627,19629,19631,19633,19635,19637,19639,19641,19643,19645,19647,19649,19651,19653,19655,19657,19659,19661,19663,19665,19667,19669,19671,19673,19675,19677,19679,19681,19683,19685,19687,19689,19691,19693,19695,19697,19699,19701,19703,19705,19707,19709,19711,19713,19715,19717,19719,19721,19723,19725,19727,19729,19731,19733,19735,19737,19739,19741,19743,19745,19747,19749,19751,19753,19755,19757,19759,19761,19763,19765,19767,19769,19771,19773,19775,19777,19779,19781,19783,19785,19787,19789,19791,19793,19795,19797,19799,19801,19803,19805,19807,19809,19811,19813,19815,19817,19819,19821,19823,19825,19827,19829,19831,19833,19835,19837,19839,19841,19843,19845,19847,19849,19851,19853,19855,19857,19859,19861,19863,19865,19867,19869,19871,19873,19875,19877,19879,19881,19883,19885,19887,19889,19891,19893,19895,19897,19899,19901,19903,19905,19907,19909,19911,19913,19915,19917,19919,19921,19923,19925,19927,19929,19931,19933,19935,19937,19939,19941,19943,19945,19947,19949,19951,19953,19955,19957,19959,19961,19963,19965,19967,19969,19971,19973,19975,19977,19979,19981,19983,19985,19987,19989,19991,19993,19995,19997,19999,20001,20003,20005,20007,20009,20011,20013,20015,20017,20019,20021,20023,20025,20027,20029,20031,20033,20035,20037,20039,20041,20043,20045,20047,20049,20051,20053,20055,20057,20059,20061,20063,20065,20067,20069,20071,20073,20075,20077,20079,20081,20083,20085,20087,20089,20091,20093,20095,20097,20099,20101,20103,20105,20107,20109,20111,20113,20115,20117,20119,20121,20123,20125,20127,20129,20131,20133,20135,20137,20139,20141,20143,20145,20147,20149,20151,20153,20155,20157,20159,20161,20163,20165,20167,20169,20171,20173,20175,20177,20179,20181,20183,20185,20187,20189,20191,20193,20195,20197,20199,20201,20203,20205,20207,20209,20211,20213,20215,20217,20219,20221,20223,20225,20227,20229,20231,20233,20235,20237,20239,20241,20243,20245,20247,20249,20251,20253,20255,20257,20259,20261,20263,20265,20267,20269,20271,20273,20275,20277,20279,20281,20283,20285,20287,20289,20291,20293,20295,20297,20299,20301,20303,20305,20307,20309,20311,20313,20315,20317,20319,20321,20323,20325,20327,20329,20331,20333,20335,20337,20339,20341,20343,20345,20347,20349,20351,20353,20355,20357,20359,20361,20363,20365,20367,20369,20371,20373,20375,20377,20379,20381,20383,20385,20387,20389,20391,20393,20395,20397,20399,20401,20403,20405,20407,20409,20411,20413,20415,20417,20419,20421,20423,20425,20427,20429,20431,20433,20435,20437,20439,20441,20443,20445,20447,20449,20451,20453,20455,20457,20459,20461,20463,20465,20467,20469,20471,20473,20475,20477,20479,20481,20483,20485,20487,20489,20491,20493,20495,20497,20499,20501,20503,20505,20507,20509,20511,20513,20515,20517,20519,20521,20523,20525,20527,20529,20531,20533,20535,20537,20539,20541,20543,20545,20547,20549,20551,20553,20555,20557,20559,20561,20563,20565,20567,20569,20571,20573,20575,20577,20579,20581,20583,20585,20587,20589,20591,20593,20595,20597,20599,20601,20603,20605,20607,20609,20611,20613,20615,20617,20619,20621,20623,20625,20627,20629,20631,20633,20635,20637,20639,20641,20643,20645,20647,20649,20651,20653,20655,20657,20659,20661,20663,20665,20667,20669,20671,20673,20675,20677,20679,20681,20683,20685,20687,20689,20691,20693,20695,20697,20699,20701,20703,20705,20707,20709,20711,20713,20715,20717,20719,20721,20723,20725,20727,20729,20731,20733,20735,20737,20739,20741,20743,20745,20747,20749,20751,20753,20755,20757,20759,20761,20763,20765,20767,20769,20771,20773,20775,20777,20779,20781,20783,20785,20787,20789,20791,20793,20795,20797,20799,20801,20803,20805,20807,20809,20811,20813,20815,20817,20819,20821,20823,20825,20827,20829,20831,20833,20835,20837,20839,20841,20843,20845,20847,20849,20851,20853,20855,20857,20859,20861,20863,20865,20867,20869,20871,20873,20875,20877,20879,20881,20883,20885,20887,20889,20891,20893,20895,20897,20899,20901,20903,20905,20907,20909,20911,20913,20915,20917,20919,20921,20923,20925,20927,20929,20931,20933,20935,20937,20939,20941,20943,20945,20947,20949,20951,20953,20955,20957,20959,20961,20963,20965,20967,20969,20971,20973,20975,20977,20979,20981,20983,20985,20987,20989,20991,20993,20995,20997,20999,21001,21003,21005,21007,21009,21011,21013,21015,21017,21019,21021,21023,21025,21027,21029,21031,21033,21035,21037,21039,21041,21043,21045,21047,21049,21051,21053,21055,21057,21059,21061,21063,21065,21067,21069,21071,21073,21075,21077,21079,21081,21083,21085,21087,21089,21091,21093,21095,21097,21099,21101,21103,21105,21107,21109,21111,21113,21115,21117,21119,21121,21123,21125,21127,21129,21131,21133,21135,21137,21139,21141,21143,21145,21147,21149,21151,21153,21155,21157,21159,21161,21163,21165,21167,21169,21171,21173,21175,21177,21179,21181,21183,21185,21187,21189,21191,21193,21195,21197,21199,21201,21203,21205,21207,21209,21211,21213,21215,21217,21219,21221,21223,21225,21227,21229,21231,21233,21235,21237,21239,21241,21243,21245,21247,21249,21251,21253,21255,21257,21259,21261,21263,21265,21267,21269,21271,21273,21275,21277,21279,21281,21283,21285,21287,21289,21291,21293,21295,21297,21299,21301,21303,21305,21307,21309,21311,21313,21315,21317,21319,21321,21323,21325,21327,21329,21331,21333,21335,21337,21339,21341,21343,21345,21347,21349,21351,21353,21355,21357,21359,21361,21363,21365,21367,21369,21371,21373,21375,21377,21379,21381,21383,21385,21387,21389,21391,21393,21395,21397,21399,21401,21403,21405,21407,21409,21411,21413,21415,21417,21419,21421,21423,21425,21427,21429,21431,21433,21435,21437,21439,21441,21443,21445,21447,21449,21451,21453,21455,21457,21459,21461,21463,21465,21467,21469,21471,21473,21475,21477,21479,21481,21483,21485,21487,21489,21491,21493,21495,21497,21499,21501,21503,21505,21507,21509,21511,21513,21515,21517,21519,21521,21523,21525,21527,21529,21531,21533,21535,21537,21539,21541,21543,21545,21547,21549,21551,21553,21555,21557,21559,21561,21563,21565,21567,21569,21571,21573,21575,21577,21579,21581,21583,21585,21587,21589,21591,21593,21595,21597,21599,21601,21603,21605,21607,21609,21611,21613,21615,21617,21619,21621,21623,21625,21627,21629,21631,21633,21635,21637,21639,21641,21643,21645,21647,21649,21651,21653,21655,21657,21659,21661,21663,21665,21667,21669,21671,21673,21675,21677,21679,21681,21683,21685,21687,21689,21691,21693,21695,21697,21699,21701,21703,21705,21707,21709,21711,21713,21715,21717,21719,21721,21723,21725,21727,21729,21731,21733,21735,21737,21739,21741,21743,21745,21747,21749,21751,21753,21755,21757,21759,21761,21763,21765,21767,21769,21771,21773,21775,21777,21779,21781,21783,21785,21787,21789,21791,21793,21795,21797,21799,21801,21803,21805,21807,21809,21811,21813,21815,21817,21819,21821,21823,21825,21827,21829,21831,21833,21835,21837,21839,21841,21843,21845,21847,21849,21851,21853,21855,21857,21859,21861,21863,21865,21867,21869,21871,21873,21875,21877,21879,21881,21883,21885,21887,21889,21891,21893,21895,21897,21899,21901,21903,21905,21907,21909,21911,21913,21915,21917,21919,21921,21923,21925,21927,21929,21931,21933,21935,21937,21939,21941,21943,21945,21947,21949,21951,21953,21955,21957,21959,21961,21963,21965,21967,21969,21971,21973,21975,21977,21979,21981,21983,21985,21987,21989,21991,21993,21995,21997,21999,22001,22003,22005,22007,22009,22011,22013,22015,22017,22019,22021,22023,22025,22027,22029,22031,22033,22035,22037,22039,22041,22043,22045,22047,22049,22051,22053,22055,22057,22059,22061,22063,22065,22067,22069,22071,22073,22075,22077,22079,22081,22083,22085,22087,22089,22091,22093,22095,22097,22099,22101,22103,22105,22107,22109,22111,22113,22115,22117,22119,22121,22123,22125,22127,22129,22131,22133,22135,22137,22139,22141,22143,22145,22147,22149,22151,22153,22155,22157,22159,22161,22163,22165,22167,22169,22171,22173,22175,22177,22179,22181,22183,22185,22187,22189,22191,22193,22195,22197,22199,22201,22203,22205,22207,22209,22211,22213,22215,22217,22219,22221,22223,22225,22227,22229,22231,22233,22235,22237,22239,22241,22243,22245,22247,22249,22251,22253,22255,22257,22259,22261,22263,22265,22267,22269,22271,22273,22275,22277,22279,22281,22283,22285,22287,22289,22291,22293,22295,22297,22299,22301,22303,22305,22307,22309,22311,22313,22315,22317,22319,22321,22323,22325,22327,22329,22331,22333,22335,22337,22339,22341,22343,22345,22347,22349,22351,22353,22355,22357,22359,22361,22363,22365,22367,22369,22371,22373,22375,22377,22379,22381,22383,22385,22387,22389,22391,22393,22395,22397,22399,22401,22403,22405,22407,22409,22411,22413,22415,22417,22419,22421,22423,22425,22427,22429,22431,22433,22435,22437,22439,22441,22443,22445,22447,22449,22451,22453,22455,22457,22459,22461,22463,22465,22467,22469,22471,22473,22475,22477,22479,22481,22483,22485,22487,22489,22491,22493,22495,22497,22499,22501,22503,22505,22507,22509,22511,22513,22515,22517,22519,22521,22523,22525,22527,22529,22531,22533,22535,22537,22539,22541,22543,22545,22547,22549,22551,22553,22555,22557,22559,22561,22563,22565,22567,22569,22571,22573,22575,22577,22579,22581,22583,22585,22587,22589,22591,22593,22595,22597,22599,22601,22603,22605,22607,22609,22611,22613,22615,22617,22619,22621,22623,22625,22627,22629,22631,22633,22635,22637,22639,22641,22643,22645,22647,22649,22651,22653,22655,22657,22659,22661,22663,22665,22667,22669,22671,22673,22675,22677,22679,22681,22683,22685,22687,22689,22691,22693,22695,22697,22699,22701,22703,22705,22707,22709,22711,22713,22715,22717,22719,22721,22723,22725,22727,22729,22731,22733,22735,22737,22739,22741,22743,22745,22747,22749,22751,22753,22755,22757,22759,22761,22763,22765,22767,22769,22771,22773,22775,22777,22779,22781,22783,22785,22787,22789,22791,22793,22795,22797,22799,22801,22803,22805,22807,22809,22811,22813,22815,22817,22819,22821,22823,22825,22827,22829,22831,22833,22835,22837,22839,22841,22843,22845,22847,22849,22851,22853,22855,22857,22859,22861,22863,22865,22867,22869,22871,22873,22875,22877,22879,22881,22883,22885,22887,22889,22891,22893,22895,22897,22899,22901,22903,22905,22907,22909,22911,22913,22915,22917,22919,22921,22923,22925,22927,22929,22931,22933,22935,22937,22939,22941,22943,22945,22947,22949,22951,22953,22955,22957,22959,22961,22963,22965,22967,22969,22971,22973,22975,22977,22979,22981,22983,22985,22987,22989,22991,22993,22995,22997,22999,23001,23003,23005,23007,23009,23011,23013,23015,23017,23019,23021,23023,23025,23027,23029,23031,23033,23035,23037,23039,23041,23043,23045,23047,23049,23051,23053,23055,23057,23059,23061,23063,23065,23067,23069,23071,23073,23075,23077,23079,23081,23083,23085,23087,23089,23091,23093,23095,23097,23099,23101,23103,23105,23107,23109,23111,23113,23115,23117,23119,23121,23123,23125,23127,23129,23131,23133,23135,23137,23139,23141,23143,23145,23147,23149,23151,23153,23155,23157,23159,23161,23163,23165,23167,23169,23171,23173,23175,23177,23179,23181,23183,23185,23187,23189,23191,23193,23195,23197,23199,23201,23203,23205,23207,23209,23211,23213,23215,23217,23219,23221,23223,23225,23227,23229,23231,23233,23235,23237,23239,23241,23243,23245,23247,23249,23251,23253,23255,23257,23259,23261,23263,23265,23267,23269,23271,23273,23275,23277,23279,23281,23283,23285,23287,23289,23291,23293,23295,23297,23299,23301,23303,23305,23307,23309,23311,23313,23315,23317,23319,23321,23323,23325,23327,23329,23331,23333,23335,23337,23339,23341,23343,23345,23347,23349,23351,23353,23355,23357,23359,23361,23363,23365,23367,23369,23371,23373,23375,23377,23379,23381,23383,23385,23387,23389,23391,23393,23395,23397,23399,23401,23403,23405,23407,23409,23411,23413,23415,23417,23419,23421,23423,23425,23427,23429,23431,23433,23435,23437,23439,23441,23443,23445,23447,23449,23451,23453,23455,23457,23459,23461,23463,23465,23467,23469,23471,23473,23475,23477,23479,23481,23483,23485,23487,23489,23491,23493,23495,23497,23499,23501,23503,23505,23507,23509,23511,23513,23515,23517,23519,23521,23523,23525,23527,23529,23531,23533,23535,23537,23539,23541,23543,23545,23547,23549,23551,23553,23555,23557,23559,23561,23563,23565,23567,23569,23571,23573,23575,23577,23579,23581,23583,23585,23587,23589,23591,23593,23595,23597,23599,23601,23603,23605,23607,23609,23611,23613,23615,23617,23619,23621,23623,23625,23627,23629,23631,23633,23635,23637,23639,23641,23643,23645,23647,23649,23651,23653,23655,23657,23659,23661,23663,23665,23667,23669,23671,23673,23675,23677,23679,23681,23683,23685,23687,23689,23691,23693,23695,23697,23699,23701,23703,23705,23707,23709,23711,23713,23715,23717,23719,23721,23723,23725,23727,23729,23731,23733,23735,23737,23739,23741,23743,23745,23747,23749,23751,23753,23755,23757,23759,23761,23763,23765,23767,23769,23771,23773,23775,23777,23779,23781,23783,23785,23787,23789,23791,23793,23795,23797,23799,23801,23803,23805,23807,23809,23811,23813,23815,23817,23819,23821,23823,23825,23827,23829,23831,23833,23835,23837,23839,23841,23843,23845,23847,23849,23851,23853,23855,23857,23859,23861,23863,23865,23867,23869,23871,23873,23875,23877,23879,23881,23883,23885,23887,23889,23891,23893,23895,23897,23899,23901,23903,23905,23907,23909,23911,23913,23915,23917,23919,23921,23923,23925,23927,23929,23931,23933,23935,23937,23939,23941,23943,23945,23947,23949,23951,23953,23955,23957,23959,23961,23963,23965,23967,23969,23971,23973,23975,23977,23979,23981,23983,23985,23987,23989,23991,23993,23995,23997,23999,24001,24003,24005,24007,24009,24011,24013,24015,24017,24019,24021,24023,24025,24027,24029,24031,24033,24035,24037,24039,24041,24043,24045,24047,24049,24051,24053,24055,24057,24059,24061,24063,24065,24067,24069,24071,24073,24075,24077,24079,24081,24083,24085,24087,24089,24091,24093,24095,24097,24099,24101,24103,24105,24107,24109,24111,24113,24115,24117,24119,24121,24123,24125,24127,24129,24131,24133,24135,24137,24139,24141,24143,24145,24147,24149,24151,24153,24155,24157,24159,24161,24163,24165,24167,24169,24171,24173,24175,24177,24179,24181,24183,24185,24187,24189,24191,24193,24195,24197,24199,24201,24203,24205,24207,24209,24211,24213,24215,24217,24219,24221,24223,24225,24227,24229,24231,24233,24235,24237,24239,24241,24243,24245,24247,24249,24251,24253,24255,24257,24259,24261,24263,24265,24267,24269,24271,24273,24275,24277,24279,24281,24283,24285,24287,24289,24291,24293,24295,24297,24299,24301,24303,24305,24307,24309,24311,24313,24315,24317,24319,24321,24323,24325,24327,24329,24331,24333,24335,24337,24339,24341,24343,24345,24347,24349,24351,24353,24355,24357,24359,24361,24363,24365,24367,24369,24371,24373,24375,24377,24379,24381,24383,24385,24387,24389,24391,24393,24395,24397,24399,24401,24403,24405,24407,24409,24411,24413,24415,24417,24419,24421,24423,24425,24427,24429,24431,24433,24435,24437,24439,24441,24443,24445,24447,24449,24451,24453,24455,24457,24459,24461,24463,24465,24467,24469,24471,24473,24475,24477,24479,24481,24483,24485,24487,24489,24491,24493,24495,24497,24499,24501,24503,24505,24507,24509,24511,24513,24515,24517,24519,24521,24523,24525,24527,24529,24531,24533,24535,24537,24539,24541,24543,24545,24547,24549,24551,24553,24555,24557,24559,24561,24563,24565,24567,24569,24571,24573,24575,24577,24579,24581,24583,24585,24587,24589,24591,24593,24595,24597,24599,24601,24603,24605,24607,24609,24611,24613,24615,24617,24619,24621,24623,24625,24627,24629,24631,24633,24635,24637,24639,24641,24643,24645,24647,24649,24651,24653,24655,24657,24659,24661,24663,24665,24667,24669,24671,24673,24675,24677,24679,24681,24683,24685,24687,24689,24691,24693,24695,24697,24699,24701,24703,24705,24707,24709,24711,24713,24715,24717,24719,24721,24723,24725,24727,24729,24731,24733,24735,24737,24739,24741,24743,24745,24747,24749,24751,24753,24755,24757,24759,24761,24763,24765,24767,24769,24771,24773,24775,24777,24779,24781,24783,24785,24787,24789,24791,24793,24795,24797,24799,24801,24803,24805,24807,24809,24811,24813,24815,24817,24819,24821,24823,24825,24827,24829,24831,24833,24835,24837,24839,24841,24843,24845,24847,24849,24851,24853,24855,24857,24859,24861,24863,24865,24867,24869,24871,24873,24875,24877,24879,24881,24883,24885,24887,24889,24891,24893,24895,24897,24899,24901,24903,24905,24907,24909,24911,24913,24915,24917,24919,24921,24923,24925,24927,24929,24931,24933,24935,24937,24939,24941,24943,24945,24947,24949,24951,24953,24955,24957,24959,24961,24963,24965,24967,24969,24971,24973,24975,24977,24979,24981,24983,24985,24987,24989,24991,24993,24995,24997,24999,25001,25003,25005,25007,25009,25011,25013,25015,25017,25019,25021,25023,25025,25027,25029,25031,25033,25035,25037,25039,25041,25043,25045,25047,25049,25051,25053,25055,25057,25059,25061,25063,25065,25067,25069,25071,25073,25075,25077,25079,25081,25083,25085,25087,25089,25091,25093,25095,25097,25099,25101,25103,25105,25107,25109,25111,25113,25115,25117,25119,25121,25123,25125,25127,25129,25131,25133,25135,25137,25139,25141,25143,25145,25147,25149,25151,25153,25155,25157,25159,25161,25163,25165,25167,25169,25171,25173,25175,25177,25179,25181,25183,25185,25187,25189,25191,25193,25195,25197,25199,25201,25203,25205,25207,25209,25211,25213,25215,25217,25219,25221,25223,25225,25227,25229,25231,25233,25235,25237,25239,25241,25243,25245,25247,25249,25251,25253,25255,25257,25259,25261,25263,25265,25267,25269,25271,25273,25275,25277,25279,25281,25283,25285,25287,25289,25291,25293,25295,25297,25299,25301,25303,25305,25307,25309,25311,25313,25315,25317,25319,25321,25323,25325,25327,25329,25331,25333,25335,25337,25339,25341,25343,25345,25347,25349,25351,25353,25355,25357,25359,25361,25363,25365,25367,25369,25371,25373,25375,25377,25379,25381,25383,25385,25387,25389,25391,25393,25395,25397,25399,25401,25403,25405,25407,25409,25411,25413,25415,25417,25419,25421,25423,25425,25427,25429,25431,25433,25435,25437,25439,25441,25443,25445,25447,25449,25451,25453,25455,25457,25459,25461,25463,25465,25467,25469,25471,25473,25475,25477,25479,25481,25483,25485,25487,25489,25491,25493,25495,25497,25499,25501,25503,25505,25507,25509,25511,25513,25515,25517,25519,25521,25523,25525,25527,25529,25531,25533,25535,25537,25539,25541,25543,25545,25547,25549,25551,25553,25555,25557,25559,25561,25563,25565,25567,25569,25571,25573,25575,25577,25579,25581,25583,25585,25587,25589,25591,25593,25595,25597,25599,25601,25603,25605,25607,25609,25611,25613,25615,25617,25619,25621,25623,25625,25627,25629,25631,25633,25635,25637,25639,25641,25643,25645,25647,25649,25651,25653,25655,25657,25659,25661,25663,25665,25667,25669,25671,25673,25675,25677,25679,25681,25683,25685,25687,25689,25691,25693,25695,25697,25699,25701,25703,25705,25707,25709,25711,25713,25715,25717,25719,25721,25723,25725,25727,25729,25731,25733,25735,25737,25739,25741,25743,25745,25747,25749,25751,25753,25755,25757,25759,25761,25763,25765,25767,25769,25771,25773,25775,25777,25779,25781,25783,25785,25787,25789,25791,25793,25795,25797,25799,25801,25803,25805,25807,25809,25811,25813,25815,25817,25819,25821,25823,25825,25827,25829,25831,25833,25835,25837,25839,25841,25843,25845,25847,25849,25851,25853,25855,25857,25859,25861,25863,25865,25867,25869,25871,25873,25875,25877,25879,25881,25883,25885,25887,25889,25891,25893,25895,25897,25899,25901,25903,25905,25907,25909,25911,25913,25915,25917,25919,25921,25923,25925,25927,25929,25931,25933,25935,25937,25939,25941,25943,25945,25947,25949,25951,25953,25955,25957,25959,25961,25963,25965,25967,25969,25971,25973,25975,25977,25979,25981,25983,25985,25987,25989,25991,25993,25995,25997,25999,26001,26003,26005,26007,26009,26011,26013,26015,26017,26019,26021,26023,26025,26027,26029,26031,26033,26035,26037,26039,26041,26043,26045,26047,26049,26051,26053,26055,26057,26059,26061,26063,26065,26067,26069,26071,26073,26075,26077,26079,26081,26083,26085,26087,26089,26091,26093,26095,26097,26099,26101,26103,26105,26107,26109,26111,26113,26115,26117,26119,26121,26123,26125,26127,26129,26131,26133,26135,26137,26139,26141,26143,26145,26147,26149,26151,26153,26155,26157,26159,26161,26163,26165,26167,26169,26171,26173,26175,26177,26179,26181,26183,26185,26187,26189,26191,26193,26195,26197,26199,26201,26203,26205,26207,26209,26211,26213,26215,26217,26219,26221,26223,26225,26227,26229,26231,26233,26235,26237,26239,26241,26243,26245,26247,26249,26251,26253,26255,26257,26259,26261,26263,26265,26267,26269,26271,26273,26275,26277,26279,26281,26283,26285,26287,26289,26291,26293,26295,26297,26299,26301,26303,26305,26307,26309,26311,26313,26315,26317,26319,26321,26323,26325,26327,26329,26331,26333,26335,26337,26339,26341,26343,26345,26347,26349,26351,26353,26355,26357,26359,26361,26363,26365,26367,26369,26371,26373,26375,26377,26379,26381,26383,26385,26387,26389,26391,26393,26395,26397,26399,26401,26403,26405,26407,26409,26411,26413,26415,26417,26419,26421,26423,26425,26427,26429,26431,26433,26435,26437,26439,26441,26443,26445,26447,26449,26451,26453,26455,26457,26459,26461,26463,26465,26467,26469,26471,26473,26475,26477,26479,26481,26483,26485,26487,26489,26491,26493,26495,26497,26499,26501,26503,26505,26507,26509,26511,26513,26515,26517,26519,26521,26523,26525,26527,26529,26531,26533,26535,26537,26539,26541,26543,26545,26547,26549,26551,26553,26555,26557,26559,26561,26563,26565,26567,26569,26571,26573,26575,26577,26579,26581,26583,26585,26587,26589,26591,26593,26595,26597,26599,26601,26603,26605,26607,26609,26611,26613,26615,26617,26619,26621,26623,26625,26627,26629,26631,26633,26635,26637,26639,26641,26643,26645,26647,26649,26651,26653,26655,26657,26659,26661,26663,26665,26667,26669,26671,26673,26675,26677,26679,26681,26683,26685,26687,26689,26691,26693,26695,26697,26699,26701,26703,26705,26707,26709,26711,26713,26715,26717,26719,26721,26723,26725,26727,26729,26731,26733,26735,26737,26739,26741,26743,26745,26747,26749,26751,26753,26755,26757,26759,26761,26763,26765,26767,26769,26771,26773,26775,26777,26779,26781,26783,26785,26787,26789,26791,26793,26795,26797,26799,26801,26803,26805,26807,26809,26811,26813,26815,26817,26819,26821,26823,26825,26827,26829,26831,26833,26835,26837,26839,26841,26843,26845,26847,26849,26851,26853,26855,26857,26859,26861,26863,26865,26867,26869,26871,26873,26875,26877,26879,26881,26883,26885,26887,26889,26891,26893,26895,26897,26899,26901,26903,26905,26907,26909,26911,26913,26915,26917,26919,26921,26923,26925,26927,26929,26931,26933,26935,26937,26939,26941,26943,26945,26947,26949,26951,26953,26955,26957,26959,26961,26963,26965,26967,26969,26971,26973,26975,26977,26979,26981,26983,26985,26987,26989,26991,26993,26995,26997,26999,27001,27003,27005,27007,27009,27011,27013,27015,27017,27019,27021,27023,27025,27027,27029,27031,27033,27035,27037,27039,27041,27043,27045,27047,27049,27051,27053,27055,27057,27059,27061,27063,27065,27067,27069,27071,27073,27075,27077,27079,27081,27083,27085,27087,27089,27091,27093,27095,27097,27099,27101,27103,27105,27107,27109,27111,27113,27115,27117,27119,27121,27123,27125,27127,27129,27131,27133,27135,27137,27139,27141,27143,27145,27147,27149,27151,27153,27155,27157,27159,27161,27163,27165,27167,27169,27171,27173,27175,27177,27179,27181,27183,27185,27187,27189,27191,27193,27195,27197,27199,27201,27203,27205,27207,27209,27211,27213,27215,27217,27219,27221,27223,27225,27227,27229,27231,27233,27235,27237,27239,27241,27243,27245,27247,27249,27251,27253,27255,27257,27259,27261,27263,27265,27267,27269,27271,27273,27275,27277,27279,27281,27283,27285,27287,27289,27291,27293,27295,27297,27299,27301,27303,27305,27307,27309,27311,27313,27315,27317,27319,27321,27323,27325,27327,27329,27331,27333,27335,27337,27339,27341,27343,27345,27347,27349,27351,27353,27355,27357,27359,27361,27363,27365,27367,27369,27371,27373,27375,27377,27379,27381,27383,27385,27387,27389,27391,27393,27395,27397,27399,27401,27403,27405,27407,27409,27411,27413,27415,27417,27419,27421,27423,27425,27427,27429,27431,27433,27435,27437,27439,27441,27443,27445,27447,27449,27451,27453,27455,27457,27459,27461,27463,27465,27467,27469,27471,27473,27475,27477,27479,27481,27483,27485,27487,27489,27491,27493,27495,27497,27499,27501,27503,27505,27507,27509,27511,27513,27515,27517,27519,27521,27523,27525,27527,27529,27531,27533,27535,27537,27539,27541,27543,27545,27547,27549,27551,27553,27555,27557,27559,27561,27563,27565,27567,27569,27571,27573,27575,27577,27579,27581,27583,27585,27587,27589,27591,27593,27595,27597,27599,27601,27603,27605,27607,27609,27611,27613,27615,27617,27619,27621,27623,27625,27627,27629,27631,27633,27635,27637,27639,27641,27643,27645,27647,27649,27651,27653,27655,27657,27659,27661,27663,27665,27667,27669,27671,27673,27675,27677,27679,27681,27683,27685,27687,27689,27691,27693,27695,27697,27699,27701,27703,27705,27707,27709,27711,27713,27715,27717,27719,27721,27723,27725,27727,27729,27731,27733,27735,27737,27739,27741,27743,27745,27747,27749,27751,27753,27755,27757,27759,27761,27763,27765,27767,27769,27771,27773,27775,27777,27779,27781,27783,27785,27787,27789,27791,27793,27795,27797,27799,27801,27803,27805,27807,27809,27811,27813,27815,27817,27819,27821,27823,27825,27827,27829,27831,27833,27835,27837,27839,27841,27843,27845,27847,27849,27851,27853,27855,27857,27859,27861,27863,27865,27867,27869,27871,27873,27875,27877,27879,27881,27883,27885,27887,27889,27891,27893,27895,27897,27899,27901,27903,27905,27907,27909,27911,27913,27915,27917,27919,27921,27923,27925,27927,27929,27931,27933,27935,27937,27939,27941,27943,27945,27947,27949,27951,27953,27955,27957,27959,27961,27963,27965,27967,27969,27971,27973,27975,27977,27979,27981,27983,27985,27987,27989,27991,27993,27995,27997,27999,28001,28003,28005,28007,28009,28011,28013,28015,28017,28019,28021,28023,28025,28027,28029,28031,28033,28035,28037,28039,28041,28043,28045,28047,28049,28051,28053,28055,28057,28059,28061,28063,28065,28067,28069,28071,28073,28075,28077,28079,28081,28083,28085,28087,28089,28091,28093,28095,28097,28099,28101,28103,28105,28107,28109,28111,28113,28115,28117,28119,28121,28123,28125,28127,28129,28131,28133,28135,28137,28139,28141,28143,28145,28147,28149,28151,28153,28155,28157,28159,28161,28163,28165,28167,28169,28171,28173,28175,28177,28179,28181,28183,28185,28187,28189,28191,28193,28195,28197,28199,28201,28203,28205,28207,28209,28211,28213,28215,28217,28219,28221,28223,28225,28227,28229,28231,28233,28235,28237,28239,28241,28243,28245,28247,28249,28251,28253,28255,28257,28259,28261,28263,28265,28267,28269,28271,28273,28275,28277,28279,28281,28283,28285,28287,28289,28291,28293,28295,28297,28299,28301,28303,28305,28307,28309,28311,28313,28315,28317,28319,28321,28323,28325,28327,28329,28331,28333,28335,28337,28339,28341,28343,28345,28347,28349,28351,28353,28355,28357,28359,28361,28363,28365,28367,28369,28371,28373,28375,28377,28379,28381,28383,28385,28387,28389,28391,28393,28395,28397,28399,28401,28403,28405,28407,28409,28411,28413,28415,28417,28419,28421,28423,28425,28427,28429,28431,28433,28435,28437,28439,28441,28443,28445,28447,28449,28451,28453,28455,28457,28459,28461,28463,28465,28467,28469,28471,28473,28475,28477,28479,28481,28483,28485,28487,28489,28491,28493,28495,28497,28499,28501,28503,28505,28507,28509,28511,28513,28515,28517,28519,28521,28523,28525,28527,28529,28531,28533,28535,28537,28539,28541,28543,28545,28547,28549,28551,28553,28555,28557,28559,28561,28563,28565,28567,28569,28571,28573,28575,28577,28579,28581,28583,28585,28587,28589,28591,28593,28595,28597,28599,28601,28603,28605,28607,28609,28611,28613,28615,28617,28619,28621,28623,28625,28627,28629,28631,28633,28635,28637,28639,28641,28643,28645,28647,28649,28651,28653,28655,28657,28659,28661,28663,28665,28667,28669,28671,28673,28675,28677,28679,28681,28683,28685,28687,28689,28691,28693,28695,28697,28699,28701,28703,28705,28707,28709,28711,28713,28715,28717,28719,28721,28723,28725,28727,28729,28731,28733,28735,28737,28739,28741,28743,28745,28747,28749,28751,28753,28755,28757,28759,28761,28763,28765,28767,28769,28771,28773,28775,28777,28779,28781,28783,28785,28787,28789,28791,28793,28795,28797,28799,28801,28803,28805,28807,28809,28811,28813,28815,28817,28819,28821,28823,28825,28827,28829,28831,28833,28835,28837,28839,28841,28843,28845,28847,28849,28851,28853,28855,28857,28859,28861,28863,28865,28867,28869,28871,28873,28875,28877,28879,28881,28883,28885,28887,28889,28891,28893,28895,28897,28899,28901,28903,28905,28907,28909,28911,28913,28915,28917,28919,28921,28923,28925,28927,28929,28931,28933,28935,28937,28939,28941,28943,28945,28947,28949,28951,28953,28955,28957,28959,28961,28963,28965,28967,28969,28971,28973,28975,28977,28979,28981,28983,28985,28987,28989,28991,28993,28995,28997,28999,29001,29003,29005,29007,29009,29011,29013,29015,29017,29019,29021,29023,29025,29027,29029,29031,29033,29035,29037,29039,29041,29043,29045,29047,29049,29051,29053,29055,29057,29059,29061,29063,29065,29067,29069,29071,29073,29075,29077,29079,29081,29083,29085,29087,29089,29091,29093,29095,29097,29099,29101,29103,29105,29107,29109,29111,29113,29115,29117,29119,29121,29123,29125,29127,29129,29131,29133,29135,29137,29139,29141,29143,29145,29147,29149,29151,29153,29155,29157,29159,29161,29163,29165,29167,29169,29171,29173,29175,29177,29179,29181,29183,29185,29187,29189,29191,29193,29195,29197,29199,29201,29203,29205,29207,29209,29211,29213,29215,29217,29219,29221,29223,29225,29227,29229,29231,29233,29235,29237,29239,29241,29243,29245,29247,29249,29251,29253,29255,29257,29259,29261,29263,29265,29267,29269,29271,29273,29275,29277,29279,29281,29283,29285,29287,29289,29291,29293,29295,29297,29299,29301,29303,29305,29307,29309,29311,29313,29315,29317,29319,29321,29323,29325,29327,29329,29331,29333,29335,29337,29339,29341,29343,29345,29347,29349,29351,29353,29355,29357,29359,29361,29363,29365,29367,29369,29371,29373,29375,29377,29379,29381,29383,29385,29387,29389,29391,29393,29395,29397,29399,29401,29403,29405,29407,29409,29411,29413,29415,29417,29419,29421,29423,29425,29427,29429,29431,29433,29435,29437,29439,29441,29443,29445,29447,29449,29451,29453,29455,29457,29459,29461,29463,29465,29467,29469,29471,29473,29475,29477,29479,29481,29483,29485,29487,29489,29491,29493,29495,29497,29499,29501,29503,29505,29507,29509,29511,29513,29515,29517,29519,29521,29523,29525,29527,29529,29531,29533,29535,29537,29539,29541,29543,29545,29547,29549,29551,29553,29555,29557,29559,29561,29563,29565,29567,29569,29571,29573,29575,29577,29579,29581,29583,29585,29587,29589,29591,29593,29595,29597,29599,29601,29603,29605,29607,29609,29611,29613,29615,29617,29619,29621,29623,29625,29627,29629,29631,29633,29635,29637,29639,29641,29643,29645,29647,29649,29651,29653,29655,29657,29659,29661,29663,29665,29667,29669,29671,29673,29675,29677,29679,29681,29683,29685,29687,29689,29691,29693,29695,29697,29699,29701,29703,29705,29707,29709,29711,29713,29715,29717,29719,29721,29723,29725,29727,29729,29731,29733,29735,29737,29739,29741,29743,29745,29747,29749,29751,29753,29755,29757,29759,29761,29763,29765,29767,29769,29771,29773,29775,29777,29779,29781,29783,29785,29787,29789,29791,29793,29795,29797,29799,29801,29803,29805,29807,29809,29811,29813,29815,29817,29819,29821,29823,29825,29827,29829,29831,29833,29835,29837,29839,29841,29843,29845,29847,29849,29851,29853,29855,29857,29859,29861,29863,29865,29867,29869,29871,29873,29875,29877,29879,29881,29883,29885,29887,29889,29891,29893,29895,29897,29899,29901,29903,29905,29907,29909,29911,29913,29915,29917,29919,29921,29923,29925,29927,29929,29931,29933,29935,29937,29939,29941,29943,29945,29947,29949,29951,29953,29955,29957,29959,29961,29963,29965,29967,29969,29971,29973,29975,29977,29979,29981,29983,29985,29987,29989,29991,29993,29995,29997,29999,30001,30003,30005,30007,30009,30011,30013,30015,30017,30019,30021,30023,30025,30027,30029,30031,30033,30035,30037,30039,30041,30043,30045,30047,30049,30051,30053,30055,30057,30059,30061,30063,30065,30067,30069,30071,30073,30075,30077,30079,30081,30083,30085,30087,30089,30091,30093,30095,30097,30099,30101,30103,30105,30107,30109,30111,30113,30115,30117,30119,30121,30123,30125,30127,30129,30131,30133,30135,30137,30139,30141,30143,30145,30147,30149,30151,30153,30155,30157,30159,30161,30163,30165,30167,30169,30171,30173,30175,30177,30179,30181,30183,30185,30187,30189,30191,30193,30195,30197,30199,30201,30203,30205,30207,30209,30211,30213,30215,30217,30219,30221,30223,30225,30227,30229,30231,30233,30235,30237,30239,30241,30243,30245,30247,30249,30251,30253,30255,30257,30259,30261,30263,30265,30267,30269,30271,30273,30275,30277,30279,30281,30283,30285,30287,30289,30291,30293,30295,30297,30299,30301,30303,30305,30307,30309,30311,30313,30315,30317,30319,30321,30323,30325,30327,30329,30331,30333,30335,30337,30339,30341,30343,30345,30347,30349,30351,30353,30355,30357,30359,30361,30363,30365,30367,30369,30371,30373,30375,30377,30379,30381,30383,30385,30387,30389,30391,30393,30395,30397,30399,30401,30403,30405,30407,30409,30411,30413,30415,30417,30419,30421,30423,30425,30427,30429,30431,30433,30435,30437,30439,30441,30443,30445,30447,30449,30451,30453,30455,30457,30459,30461,30463,30465,30467,30469,30471,30473,30475,30477,30479,30481,30483,30485,30487,30489,30491,30493,30495,30497,30499,30501,30503,30505,30507,30509,30511,30513,30515,30517,30519,30521,30523,30525,30527,30529,30531,30533,30535,30537,30539,30541,30543,30545,30547,30549,30551,30553,30555,30557,30559,30561,30563,30565,30567,30569,30571,30573,30575,30577,30579,30581,30583,30585,30587,30589,30591,30593,30595,30597,30599,30601,30603,30605,30607,30609,30611,30613,30615,30617,30619,30621,30623,30625,30627,30629,30631,30633,30635,30637,30639,30641,30643,30645,30647,30649,30651,30653,30655,30657,30659,30661,30663,30665,30667,30669,30671,30673,30675,30677,30679,30681,30683,30685,30687,30689,30691,30693,30695,30697,30699,30701,30703,30705,30707,30709,30711,30713,30715,30717,30719,30721,30723,30725,30727,30729,30731,30733,30735,30737,30739,30741,30743,30745,30747,30749,30751,30753,30755,30757,30759,30761,30763,30765,30767,30769,30771,30773,30775,30777,30779,30781,30783,30785,30787,30789,30791,30793,30795,30797,30799,30801,30803,30805,30807,30809,30811,30813,30815,30817,30819,30821,30823,30825,30827,30829,30831,30833,30835,30837,30839,30841,30843,30845,30847,30849,30851,30853,30855,30857,30859,30861,30863,30865,30867,30869,30871,30873,30875,30877,30879,30881,30883,30885,30887,30889,30891,30893,30895,30897,30899,30901,30903,30905,30907,30909,30911,30913,30915,30917,30919,30921,30923,30925,30927,30929,30931,30933,30935,30937,30939,30941,30943,30945,30947,30949,30951,30953,30955,30957,30959,30961,30963,30965,30967,30969,30971,30973,30975,30977,30979,30981,30983,30985,30987,30989,30991,30993,30995,30997,30999,31001,31003,31005,31007,31009,31011,31013,31015,31017,31019,31021,31023,31025,31027,31029,31031,31033,31035,31037,31039,31041,31043,31045,31047,31049,31051,31053,31055,31057,31059,31061,31063,31065,31067,31069,31071,31073,31075,31077,31079,31081,31083,31085,31087,31089,31091,31093,31095,31097,31099,31101,31103,31105,31107,31109,31111,31113,31115,31117,31119,31121,31123,31125,31127,31129,31131,31133,31135,31137,31139,31141,31143,31145,31147,31149,31151,31153,31155,31157,31159,31161,31163,31165,31167,31169,31171,31173,31175,31177,31179,31181,31183,31185,31187,31189,31191,31193,31195,31197,31199,31201,31203,31205,31207,31209,31211,31213,31215,31217,31219,31221,31223,31225,31227,31229,31231,31233,31235,31237,31239,31241,31243,31245,31247,31249,31251,31253,31255,31257,31259,31261,31263,31265,31267,31269,31271,31273,31275,31277,31279,31281,31283,31285,31287,31289,31291,31293,31295,31297,31299,31301,31303,31305,31307,31309,31311,31313,31315,31317,31319,31321,31323,31325,31327,31329,31331,31333,31335,31337,31339,31341,31343,31345,31347,31349,31351,31353,31355,31357,31359,31361,31363,31365,31367,31369,31371,31373,31375,31377,31379,31381,31383,31385,31387,31389,31391,31393,31395,31397,31399,31401,31403,31405,31407,31409,31411,31413,31415,31417,31419,31421,31423,31425,31427,31429,31431,31433,31435,31437,31439,31441,31443,31445,31447,31449,31451,31453,31455,31457,31459,31461,31463,31465,31467,31469,31471,31473,31475,31477,31479,31481,31483,31485,31487,31489,31491,31493,31495,31497,31499,31501,31503,31505,31507,31509,31511,31513,31515,31517,31519,31521,31523,31525,31527,31529,31531,31533,31535,31537,31539,31541,31543,31545,31547,31549,31551,31553,31555,31557,31559,31561,31563,31565,31567,31569,31571,31573,31575,31577,31579,31581,31583,31585,31587,31589,31591,31593,31595,31597,31599,31601,31603,31605,31607,31609,31611,31613,31615,31617,31619,31621,31623,31625,31627,31629,31631,31633,31635,31637,31639,31641,31643,31645,31647,31649,31651,31653,31655,31657,31659,31661,31663,31665,31667,31669,31671,31673,31675,31677,31679,31681,31683,31685,31687,31689,31691,31693,31695,31697,31699,31701,31703,31705,31707,31709,31711,31713,31715,31717,31719,31721,31723,31725,31727,31729,31731,31733,31735,31737,31739,31741,31743,31745,31747,31749,31751,31753,31755,31757,31759,31761,31763,31765,31767,31769,31771,31773,31775,31777,31779,31781,31783,31785,31787,31789,31791,31793,31795,31797,31799,31801,31803,31805,31807,31809,31811,31813,31815,31817,31819,31821,31823,31825,31827,31829,31831,31833,31835,31837,31839,31841,31843,31845,31847,31849,31851,31853,31855,31857,31859,31861,31863,31865,31867,31869,31871,31873,31875,31877,31879,31881,31883,31885,31887,31889,31891,31893,31895,31897,31899,31901,31903,31905,31907,31909,31911,31913,31915,31917,31919,31921,31923,31925,31927,31929,31931,31933,31935,31937,31939,31941,31943,31945,31947,31949,31951,31953,31955,31957,31959,31961,31963,31965,31967,31969,31971,31973,31975,31977,31979,31981,31983,31985,31987,31989,31991,31993,31995,31997,31999,32001,32003,32005,32007,32009,32011,32013,32015,32017,32019,32021,32023,32025,32027,32029,32031,32033,32035,32037,32039,32041,32043,32045,32047,32049,32051,32053,32055,32057,32059,32061,32063,32065,32067,32069,32071,32073,32075,32077,32079,32081,32083,32085,32087,32089,32091,32093,32095,32097,32099,32101,32103,32105,32107,32109,32111,32113,32115,32117,32119,32121,32123,32125,32127,32129,32131,32133,32135,32137,32139,32141,32143,32145,32147,32149,32151,32153,32155,32157,32159,32161,32163,32165,32167,32169,32171,32173,32175,32177,32179,32181,32183,32185,32187,32189,32191,32193,32195,32197,32199,32201,32203,32205,32207,32209,32211,32213,32215,32217,32219,32221,32223,32225,32227,32229,32231,32233,32235,32237,32239,32241,32243,32245,32247,32249,32251,32253,32255,32257,32259,32261,32263,32265,32267,32269,32271,32273,32275,32277,32279,32281,32283,32285,32287,32289,32291,32293,32295,32297,32299,32301,32303,32305,32307,32309,32311,32313,32315,32317,32319,32321,32323,32325,32327,32329,32331,32333,32335,32337,32339,32341,32343,32345,32347,32349,32351,32353,32355,32357,32359,32361,32363,32365,32367,32369,32371,32373,32375,32377,32379,32381,32383,32385,32387,32389,32391,32393,32395,32397,32399,32401,32403,32405,32407,32409,32411,32413,32415,32417,32419,32421,32423,32425,32427,32429,32431,32433,32435,32437,32439,32441,32443,32445,32447,32449,32451,32453,32455,32457,32459,32461,32463,32465,32467,32469,32471,32473,32475,32477,32479,32481,32483,32485,32487,32489,32491,32493,32495,32497,32499,32501,32503,32505,32507,32509,32511,32513,32515,32517,32519,32521,32523,32525,32527,32529,32531,32533,32535,32537,32539,32541,32543,32545,32547,32549,32551,32553,32555,32557,32559,32561,32563,32565,32567,32569,32571,32573,32575,32577,32579,32581,32583,32585,32587,32589,32591,32593,32595,32597,32599,32601,32603,32605,32607,32609,32611,32613,32615,32617,32619,32621,32623,32625,32627,32629,32631,32633,32635,32637,32639,32641,32643,32645,32647,32649,32651,32653,32655,32657,32659,32661,32663,32665,32667,32669,32671,32673,32675,32677,32679,32681,32683,32685,32687,32689,32691,32693,32695,32697,32699,32701,32703,32705,32707,32709,32711,32713,32715,32717,32719,32721,32723,32725,32727,32729,32731,32733,32735,32737,32739,32741,32743,32745,32747,32749,32751,32753,32755,32757,32759,32761,32763,32765,32767,32769,32771,32773,32775,32777,32779,32781,32783,32785,32787,32789,32791,32793,32795,32797,32799,32801,32803,32805,32807,32809,32811,32813,32815,32817,32819,32821,32823,32825,32827,32829,32831,32833,32835,32837,32839,32841,32843,32845,32847,32849,32851,32853,32855,32857,32859,32861,32863,32865,32867,32869,32871,32873,32875,32877,32879,32881,32883,32885,32887,32889,32891,32893,32895,32897,32899,32901,32903,32905,32907,32909,32911,32913,32915,32917,32919,32921,32923,32925,32927,32929,32931,32933,32935,32937,32939,32941,32943,32945,32947,32949,32951,32953,32955,32957,32959,32961,32963,32965,32967,32969,32971,32973,32975,32977,32979,32981,32983,32985,32987,32989,32991,32993,32995,32997,32999,33001,33003,33005,33007,33009,33011,33013,33015,33017,33019,33021,33023,33025,33027,33029,33031,33033,33035,33037,33039,33041,33043,33045,33047,33049,33051,33053,33055,33057,33059,33061,33063,33065,33067,33069,33071,33073,33075,33077,33079,33081,33083,33085,33087,33089,33091,33093,33095,33097,33099,33101,33103,33105,33107,33109,33111,33113,33115,33117,33119,33121,33123,33125,33127,33129,33131,33133,33135,33137,33139,33141,33143,33145,33147,33149,33151,33153,33155,33157,33159,33161,33163,33165,33167,33169,33171,33173,33175,33177,33179,33181,33183,33185,33187,33189,33191,33193,33195,33197,33199,33201,33203,33205,33207,33209,33211,33213,33215,33217,33219,33221,33223,33225,33227,33229,33231,33233,33235,33237,33239,33241,33243,33245,33247,33249,33251,33253,33255,33257,33259,33261,33263,33265,33267,33269,33271,33273,33275,33277,33279,33281,33283,33285,33287,33289,33291,33293,33295,33297,33299,33301,33303,33305,33307,33309,33311,33313,33315,33317,33319,33321,33323,33325,33327,33329,33331,33333,33335,33337,33339,33341,33343,33345,33347,33349,33351,33353,33355,33357,33359,33361,33363,33365,33367,33369,33371,33373,33375,33377,33379,33381,33383,33385,33387,33389,33391,33393,33395,33397,33399,33401,33403,33405,33407,33409,33411,33413,33415,33417,33419,33421,33423,33425,33427,33429,33431,33433,33435,33437,33439,33441,33443,33445,33447,33449,33451,33453,33455,33457,33459,33461,33463,33465,33467,33469,33471,33473,33475,33477,33479,33481,33483,33485,33487,33489,33491,33493,33495,33497,33499,33501,33503,33505,33507,33509,33511,33513,33515,33517,33519,33521,33523,33525,33527,33529,33531,33533,33535,33537,33539,33541,33543,33545,33547,33549,33551,33553,33555,33557,33559,33561,33563,33565,33567,33569,33571,33573,33575,33577,33579,33581,33583,33585,33587,33589,33591,33593,33595,33597,33599,33601,33603,33605,33607,33609,33611,33613,33615,33617,33619,33621,33623,33625,33627,33629,33631,33633,33635,33637,33639,33641,33643,33645,33647,33649,33651,33653,33655,33657,33659,33661,33663,33665,33667,33669,33671,33673,33675,33677,33679,33681,33683,33685,33687,33689,33691,33693,33695,33697,33699,33701,33703,33705,33707,33709,33711,33713,33715,33717,33719,33721,33723,33725,33727,33729,33731,33733,33735,33737,33739,33741,33743,33745,33747,33749,33751,33753,33755,33757,33759,33761,33763,33765,33767,33769,33771,33773,33775,33777,33779,33781,33783,33785,33787,33789,33791,33793,33795,33797,33799,33801,33803,33805,33807,33809,33811,33813,33815,33817,33819,33821,33823,33825,33827,33829,33831,33833,33835,33837,33839,33841,33843,33845,33847,33849,33851,33853,33855,33857,33859,33861,33863,33865,33867,33869,33871,33873,33875,33877,33879,33881,33883,33885,33887,33889,33891,33893,33895,33897,33899,33901,33903,33905,33907,33909,33911,33913,33915,33917,33919,33921,33923,33925,33927,33929,33931,33933,33935,33937,33939,33941,33943,33945,33947,33949,33951,33953,33955,33957,33959,33961,33963,33965,33967,33969,33971,33973,33975,33977,33979,33981,33983,33985,33987,33989,33991,33993,33995,33997,33999,34001,34003,34005,34007,34009,34011,34013,34015,34017,34019,34021,34023,34025,34027,34029,34031,34033,34035,34037,34039,34041,34043,34045,34047,34049,34051,34053,34055,34057,34059,34061,34063,34065,34067,34069,34071,34073,34075,34077,34079,34081,34083,34085,34087,34089,34091,34093,34095,34097,34099,34101,34103,34105,34107,34109,34111,34113,34115,34117,34119,34121,34123,34125,34127,34129,34131,34133,34135,34137,34139,34141,34143,34145,34147,34149,34151,34153,34155,34157,34159,34161,34163,34165,34167,34169,34171,34173,34175,34177,34179,34181,34183,34185,34187,34189,34191,34193,34195,34197,34199,34201,34203,34205,34207,34209,34211,34213,34215,34217,34219,34221,34223,34225,34227,34229,34231,34233,34235,34237,34239,34241,34243,34245,34247,34249,34251,34253,34255,34257,34259,34261,34263,34265,34267,34269,34271,34273,34275,34277,34279,34281,34283,34285,34287,34289,34291,34293,34295,34297,34299,34301,34303,34305,34307,34309,34311,34313,34315,34317,34319,34321,34323,34325,34327,34329,34331,34333,34335,34337,34339,34341,34343,34345,34347,34349,34351,34353,34355,34357,34359,34361,34363,34365,34367,34369,34371,34373,34375,34377,34379,34381,34383,34385,34387,34389,34391,34393,34395,34397,34399,34401,34403,34405,34407,34409,34411,34413,34415,34417,34419,34421,34423,34425,34427,34429,34431,34433,34435,34437,34439,34441,34443,34445,34447,34449,34451,34453,34455,34457,34459,34461,34463,34465,34467,34469,34471,34473,34475,34477,34479,34481,34483,34485,34487,34489,34491,34493,34495,34497,34499,34501,34503,34505,34507,34509,34511,34513,34515,34517,34519,34521,34523,34525,34527,34529,34531,34533,34535,34537,34539,34541,34543,34545,34547,34549,34551,34553,34555,34557,34559,34561,34563,34565,34567,34569,34571,34573,34575,34577,34579,34581,34583,34585,34587,34589,34591,34593,34595,34597,34599,34601,34603,34605,34607,34609,34611,34613,34615,34617,34619,34621,34623,34625,34627,34629,34631,34633,34635,34637,34639,34641,34643,34645,34647,34649,34651,34653,34655,34657,34659,34661,34663,34665,34667,34669,34671,34673,34675,34677,34679,34681,34683,34685,34687,34689,34691,34693,34695,34697,34699,34701,34703,34705,34707,34709,34711,34713,34715,34717,34719,34721,34723,34725,34727,34729,34731,34733,34735,34737,34739,34741,34743,34745,34747,34749,34751,34753,34755,34757,34759,34761,34763,34765,34767,34769,34771,34773,34775,34777,34779,34781,34783,34785,34787,34789,34791,34793,34795,34797,34799,34801,34803,34805,34807,34809,34811,34813,34815,34817,34819,34821,34823,34825,34827,34829,34831,34833,34835,34837,34839,34841,34843,34845,34847,34849,34851,34853,34855,34857,34859,34861,34863,34865,34867,34869,34871,34873,34875,34877,34879,34881,34883,34885,34887,34889,34891,34893,34895,34897,34899,34901,34903,34905,34907,34909,34911,34913,34915,34917,34919,34921,34923,34925,34927,34929,34931,34933,34935,34937,34939,34941,34943,34945,34947,34949,34951,34953,34955,34957,34959,34961,34963,34965,34967,34969,34971,34973,34975,34977,34979,34981,34983,34985,34987,34989,34991,34993,34995,34997,34999,35001,35003,35005,35007,35009,35011,35013,35015,35017,35019,35021,35023,35025,35027,35029,35031,35033,35035,35037,35039,35041,35043,35045,35047,35049,35051,35053,35055,35057,35059,35061,35063,35065,35067,35069,35071,35073,35075,35077,35079,35081,35083,35085,35087,35089,35091,35093,35095,35097,35099,35101,35103,35105,35107,35109,35111,35113,35115,35117,35119,35121,35123,35125,35127,35129,35131,35133,35135,35137,35139,35141,35143,35145,35147,35149,35151,35153,35155,35157,35159,35161,35163,35165,35167,35169,35171,35173,35175,35177,35179,35181,35183,35185,35187,35189,35191,35193,35195,35197,35199,35201,35203,35205,35207,35209,35211,35213,35215,35217,35219,35221,35223,35225,35227,35229,35231,35233,35235,35237,35239,35241,35243,35245,35247,35249,35251,35253,35255,35257,35259,35261,35263,35265,35267,35269,35271,35273,35275,35277,35279,35281,35283,35285,35287,35289,35291,35293,35295,35297,35299,35301,35303,35305,35307,35309,35311,35313,35315,35317,35319,35321,35323,35325,35327,35329,35331,35333,35335,35337,35339,35341,35343,35345,35347,35349,35351,35353,35355,35357,35359,35361,35363,35365,35367,35369,35371,35373,35375,35377,35379,35381,35383,35385,35387,35389,35391,35393,35395,35397,35399,35401,35403,35405,35407,35409,35411,35413,35415,35417,35419,35421,35423,35425,35427,35429,35431,35433,35435,35437,35439,35441,35443,35445,35447,35449,35451,35453,35455,35457,35459,35461,35463,35465,35467,35469,35471,35473,35475,35477,35479,35481,35483,35485,35487,35489,35491,35493,35495,35497,35499,35501,35503,35505,35507,35509,35511,35513,35515,35517,35519,35521,35523,35525,35527,35529,35531,35533,35535,35537,35539,35541,35543,35545,35547,35549,35551,35553,35555,35557,35559,35561,35563,35565,35567,35569,35571,35573,35575,35577,35579,35581,35583,35585,35587,35589,35591,35593,35595,35597,35599,35601,35603,35605,35607,35609,35611,35613,35615,35617,35619,35621,35623,35625,35627,35629,35631,35633,35635,35637,35639,35641,35643,35645,35647,35649,35651,35653,35655,35657,35659,35661,35663,35665,35667,35669,35671,35673,35675,35677,35679,35681,35683,35685,35687,35689,35691,35693,35695,35697,35699,35701,35703,35705,35707,35709,35711,35713,35715,35717,35719,35721,35723,35725,35727,35729,35731,35733,35735,35737,35739,35741,35743,35745,35747,35749,35751,35753,35755,35757,35759,35761,35763,35765,35767,35769,35771,35773,35775,35777,35779,35781,35783,35785,35787,35789,35791,35793,35795,35797,35799,35801,35803,35805,35807,35809,35811,35813,35815,35817,35819,35821,35823,35825,35827,35829,35831,35833,35835,35837,35839,35841,35843,35845,35847,35849,35851,35853,35855,35857,35859,35861,35863,35865,35867,35869,35871,35873,35875,35877,35879,35881,35883,35885,35887,35889,35891,35893,35895,35897,35899,35901,35903,35905,35907,35909,35911,35913,35915,35917,35919,35921,35923,35925,35927,35929,35931,35933,35935,35937,35939,35941,35943,35945,35947,35949,35951,35953,35955,35957,35959,35961,35963,35965,35967,35969,35971,35973,35975,35977,35979,35981,35983,35985,35987,35989,35991,35993,35995,35997,35999,36001,36003,36005,36007,36009,36011,36013,36015,36017,36019,36021,36023,36025,36027,36029,36031,36033,36035,36037,36039,36041,36043,36045,36047,36049,36051,36053,36055,36057,36059,36061,36063,36065,36067,36069,36071,36073,36075,36077,36079,36081,36083,36085,36087,36089,36091,36093,36095,36097,36099,36101,36103,36105,36107,36109,36111,36113,36115,36117,36119,36121,36123,36125,36127,36129,36131,36133,36135,36137,36139,36141,36143,36145,36147,36149,36151,36153,36155,36157,36159,36161,36163,36165,36167,36169,36171,36173,36175,36177,36179,36181,36183,36185,36187,36189,36191,36193,36195,36197,36199,36201,36203,36205,36207,36209,36211,36213,36215,36217,36219,36221,36223,36225,36227,36229,36231,36233,36235,36237,36239,36241,36243,36245,36247,36249,36251,36253,36255,36257,36259,36261,36263,36265,36267,36269,36271,36273,36275,36277,36279,36281,36283,36285,36287,36289,36291,36293,36295,36297,36299,36301,36303,36305,36307,36309,36311,36313,36315,36317,36319,36321,36323,36325,36327,36329,36331,36333,36335,36337,36339,36341,36343,36345,36347,36349,36351,36353,36355,36357,36359,36361,36363,36365,36367,36369,36371,36373,36375,36377,36379,36381,36383,36385,36387,36389,36391,36393,36395,36397,36399,36401,36403,36405,36407,36409,36411,36413,36415,36417,36419,36421,36423,36425,36427,36429,36431,36433,36435,36437,36439,36441,36443,36445,36447,36449,36451,36453,36455,36457,36459,36461,36463,36465,36467,36469,36471,36473,36475,36477,36479,36481,36483,36485,36487,36489,36491,36493,36495,36497,36499,36501,36503,36505,36507,36509,36511,36513,36515,36517,36519,36521,36523,36525,36527,36529,36531,36533,36535,36537,36539,36541,36543,36545,36547,36549,36551,36553,36555,36557,36559,36561,36563,36565,36567,36569,36571,36573,36575,36577,36579,36581,36583,36585,36587,36589,36591,36593,36595,36597,36599,36601,36603,36605,36607,36609,36611,36613,36615,36617,36619,36621,36623,36625,36627,36629,36631,36633,36635,36637,36639,36641,36643,36645,36647,36649,36651,36653,36655,36657,36659,36661,36663,36665,36667,36669,36671,36673,36675,36677,36679,36681,36683,36685,36687,36689,36691,36693,36695,36697,36699,36701,36703,36705,36707,36709,36711,36713,36715,36717,36719,36721,36723,36725,36727,36729,36731,36733,36735,36737,36739,36741,36743,36745,36747,36749,36751,36753,36755,36757,36759,36761,36763,36765,36767,36769,36771,36773,36775,36777,36779,36781,36783,36785,36787,36789,36791,36793,36795,36797,36799,36801,36803,36805,36807,36809,36811,36813,36815,36817,36819,36821,36823,36825,36827,36829,36831,36833,36835,36837,36839,36841,36843,36845,36847,36849,36851,36853,36855,36857,36859,36861,36863,36865,36867,36869,36871,36873,36875,36877,36879,36881,36883,36885,36887,36889,36891,36893,36895,36897,36899,36902,36905,36908,36911,36914,36917,36920,36923,36926,36929,36932,36935,36938,36941,36944,36947,36950,36953,36956,36959,36962,36965,36968,36971,36974,36977,36980,36983,36986,36989,36992,36995,36998,37001,37004,37007,37010,37013,37016,37019,37022,37025,37028,37031,37034,37037,37040,37043,37046,37049,37052,37055,37058,37061,37064,37067,37070,37073,37076,37079,37082,37085,37088,37091,37094,37097,37100,37103,37106,37109,37112,37115,37118,37121,37124,37127,37130,37133,37136,37139,37142,37145,37148,37151,37154,37157,37160,37163,37166,37169,37172,37175,37178,37181,37184,37187,37190,37193,37196,37199,37202,37205,37208,37211,37214,37217,37220,37223,37226,37229,37232,37235,37238,37241,37244,37247,37250,37253,37256,37259,37262,37265,37268,37271,37274,37277,37280,37283,37286,37289,37292,37295,37298,37301,37304,37307,37310,37313,37316,37319,37322,37325,37328,37331,37334,37337,37340,37343,37346,37349,37352,37355,37358,37361,37364,37367,37370,37373,37376,37379,37382,37385,37388,37391,37394,37397,37400,37403,37406,37409,37412,37415,37418,37421,37424,37427,37430,37433,37436,37439,37442,37445,37448,37451,37454,37457,37460,37463,37466,37469,37472,37475,37478,37481,37484,37487,37490,37493,37496,37499,37502,37505,37508,37511,37514,37517,37520,37523,37526,37529,37532,37535,37538,37541,37544,37547,37550,37553,37556,37559,37562,37565,37568,37571,37574,37577,37580,37583,37586,37589,37592,37595,37598,37601,37604,37607,37610,37613,37616,37619,37622,37625,37628,37631,37634,37637,37640,37643,37646,37649,37652,37655,37658,37661,37664,37667,37670,37673,37676,37679,37682,37685,37688,37691,37694,37697,37700,37703,37706,37709,37712,37715,37718,37721,37724,37727,37730,37733,37736,37739,37742,37745,37748,37751,37754,37757,37760,37763,37766,37769,37772,37775,37778,37781,37784,37787,37790,37793,37796,37799,37802,37805,37808,37811,37814,37817,37820,37823,37826,37829,37832,37835,37838,37841,37844,37847,37850,37853,37856,37859,37862,37865,37868,37871,37874,37877,37880,37883,37886,37889,37892,37895,37898,37901,37904,37907,37910,37913,37916,37919,37922,37925,37928,37931,37934,37937,37940,37943,37946,37949,37952,37955,37958,37961,37964,37967,37970,37973,37976,37979,37982,37985,37988,37991,37994,37997,38E3,38003,38006,38009,38012,38015,38018,38021,38024,38027,38030,38033,38036,38039,38042,38045,38048,38051,38054,38057,38060,38063,38066,38069,38072,38075,38078,38081,38084,38087,38090,38093,38096,38099,38102,38105,38108,38111,38114,38117,38120,38123,38126,38129,38132,38135,38138,38141,38144,38147,38150,38153,38156,38159,38162,38165,38168,38171,38174,38177,38180,38183,38186,38189,38192,38195,38198,38201,38204,38207,38210,38213,38216,38219,38222,38225,38228,38231,38234,38237,38240,38243,38246,38249,38252,38255,38258,38261,38264,38267,38270,38273,38276,38279,38282,38285,38288,38291,38294,38297,38300,38303,38306,38309,38312,38315,38318,38321,38324,38327,38330,38333,38336,38339,38342,38345,38348,38351,38354,38357,38360,38363,38366,38369,38372,38375,38378,38381,38384,38387,38390,38393,38396,38399,38402,38405,38408,38411,38414,38417,38420,38423,38426,38429,38432,38435,38438,38441,38444,38447,38450,38453,38456,38459,38462,38465,38468,38471,38474,38477,38480,38483,38486,38489,38492,38495,38498,38501,38504,38507,38510,38513,38516,38519,38522,38525,38528,38531,38534,38537,38540,38543,38546,38549,38552,38555,38558,38561,38564,38567,38570,38573,38576,38579,38582,38585,38588,38591,38594,38597,38600,38603,38606,38609,38612,38615,38618,38621,38624,38627,38630,38633,38636,38639,38642,38645,38648,38651,38654,38657,38660,38663,38666,38669,38672,38675,38678,38681,38684,38687,38690,38693,38696,38699,38702,38705,38708,38711,38714,38717,38720,38723,38726,38729,38732,38735,38738,38741,38744,38747,38750,38753,38756,38759,38762,38765,38768,38771,38774,38777,38780,38783,38786,38789,38792,38795,38798,38801,38804,38807,38810,38813,38816,38819,38822,38825,38828,38831,38834,38837,38840,38843,38846,38849,38852,38855,38858,38861,38864,38867,38870,38873,38876,38879,38882,38885,38888,38891,38894,38897,38900,38903,38906,38909,38912,38915,38918,38921,38924,38927,38930,38933,38936,38939,38942,38945,38948,38951,38954,38957,38960,38963,38966,38969,38972,38975,38978,38981,38984,38987,38990,38993,38996,38999,39002,39005,39008,39011,39014,39017,39020,39023,39026,39029,39032,39035,39038,39041,39044,39047,39050,39053,39056,39059,39062,39065,39068,39071,39074,39077,39080,39083,39086,39089,39092,39095,39098,39101,39104,39107,39110,39113,39116,39119,39122,39125,39128,39131,39134,39137,39140,39143,39146,39149,39152,39155,39158,39161,39164,39167,39170,39173,39176,39179,39182,39185,39188,39191,39194,39197,39200,39203,39206,39209,39212,39215,39218,39221,39224,39227,39230,39233,39236,39239,39242,39245,39248,39251,39254,39257,39260,39263,39266,39269,39272,39275,39278,39281,39284,39287,39290,39293,39296,39299,39302,39305,39308,39311,39314,39317,39320,39323,39326,39329,39332,39335,39338,39341,39344,39347,39350,39353,39356,39359,39362,39365,39368,39371,39374,39377,39380,39383,39386,39389,39392,39395,39398,39401,39404,39407,39410,39413,39416,39419,39422,39425,39428,39431,39434,39437,39440,39443,39446,39449,39452,39455,39458,39461,39464,39467,39470,39473,39476,39479,39482,39485,39488,39491,39494,39497,39500,39503,39506,39509,39512,39515,39518,39521,39524,39527,39530,39533,39536,39539,39542,39545,39548,39551,39554,39557,39560,39563,39566,39569,39572,39575,39578,39581,39584,39587,39590,39593,39596,39599,39602,39605,39608,39611,39614,39617,39620,39623,39626,39629,39632,39635,39638,39641,39644,39647,39650,39653,39656,39659,39662,39665,39668,39671,39674,39677,39680,39683,39686,39689,39692,39695,39698,39701,39704,39707,39710,39713,39716,39719,39722,39725,39728,39731,39734,39737,39740,39743,39746,39749,39752,39755,39758,39761,39764,39767,39770,39773,39776,39779,39782,39785,39788,39791,39794,39797,39800,39803,39806,39809,39812,39815,39818,39821,39824,39827,39830,39833,39836,39839,39842,39845,39848,39851,39854,39857,39860,39863,39866,39869,39872,39875,39878,39881,39884,39887,39890,39893,39896,39899,39902,39905,39908,39911,39914,39917,39920,39923,39926,39929,39932,39935,39938,39941,39944,39947,39950,39953,39956,39959,39962,39965,39968,39971,39974,39977,39980,39983,39986,39989,39992,39995,39998,40001,40004,40007,40010,40013,40016,40019,40022,40025,40028,40031,40034,40037,40040,40043,40046,40049,40052,40055,40058,40061,40064,40067,40070,40073,40076,40079,40082,40085,40088,40091,40094,40097,40100,40103,40106,40109,40112,40115,40118,40121,40124,40127,40130,40133,40136,40139,40142,40145,40148,40151,40154,40157,40160,40163,40166,40169,40172,40175,40178,40181,40184,40187,40190,40193,40196,40199,40202,40205,40208,40211,40214,40217,40220,40223,40226,40229,40232,40235,40238,40241,40244,40247,40250,40253,40256,40259,40262,40265,40268,40271,40274,40277,40280,40283,40286,40289,40292,40295,40298,40301,40304,40307,40310,40313,40316,40319,40322,40325,40328,40331,40334,40337,40340,40343,40346,40349,40352,40355,40358,40361,40364,40367,40370,40373,40376,40379,40382,40385,40388,40391,40394,40397,40400,40403,40406,40409,40412,40415,40418,40421,40424,40427,40430,40433,40436,40439,40442,40445,40448,40451,40454,40457,40460,40463,40466,40469,40472,40475,40478,40481,40484,40487,40490,40493,40496,40499,40502,40505,40508,40511,40514,40517,40520,40523,40526,40529,40532,40535,40538,40541,40544,40547,40550,40553,40556,40559,40562,40565,40568,40571,40574,40577,40580,40583,40586,40589,40592,40595,40598,40601,40604,40607,40610,40613,40616,40619,40622,40625,40628,40631,40634,40637,40640,40643,40646,40649,40652,40655,40658,40661,40664,40667,40670,40673,40676,40679,40682,40685,40688,40691,40694,40697,40700,40703,40706,40709,40712,40715,40718,40721,40724,40727,40730,40733,40736,40739,40742,40745,40748,40751,40754,40757,40760,40763,40766,40769,40772,40775,40778,40781,40784,40787,40790,40793,40796,40799,40802,40805,40808,40811,40814,40817,40820,40823,40826,40829,40832,40835,40838,40841,40844,40847,40850,40853,40856,40859,40862,40865,40868,40871,40874,40877,40880,40883,40886,40889,40892,40895,40898,40901,40904,40907,40910,40913,40916,40919,40922,40925,40928,40931,40934,40937,40940,40943,40946,40949,40952,40955,40958,40961,40964,40967,40970,40973,40976,40979,40982,40985,40988,40991,40994,40997,41E3,41003,41006,41009,41012,41015,41018,41021,41024,41027,41030,41033,41036,41039,41042,41045,41048,41051,41054,41057,41060,41063,41066,41069,41072,41075,41078,41081,41084,41087,41090,41093,41096,41099,41102,41105,41108,41111,41114,41117,41120,41123,41126,41129,41132,41135,41138,41141,41144,41147,41150,41153,41156,41159,41162,41165,41168,41171,41174,41177,41180,41183,41186,41189,41192,41195,41198,41201,41204,41207,41210,41213,41216,41219,41222,41225,41228,41231,41234,41237,41240,41243,41246,41249,41252,41255,41258,41261,41264,41267,41270,41273,41276,41279,41282,41285,41288,41291,41294,41297,41300,41303,41306,41309,41312,41315,41318,41321,41324,41327,41330,41333,41336,41339,41342,41345,41348,41351,41354,41357,41360,41363,41366,41369,41372,41375,41378,41381,41384,41387,41390,41393,41396,41399,41402,41405,41408,41411,41414,41417,41420,41423,41426,41429,41432,41435,41438,41441,41444,41447,41450,41453,41456,41459,41462,41465,41468,41471,41474,41477,41480,41483,41486,41489,41492,41495,41498,41501,41504,41507,41510,41513,41516,41519,41522,41525,41528,41531,41534,41537,41540,41543,41546,41549,41552,41555,41558,41561,41564,41567,41570,41573,41576,41579,41582,41585,41588,41591,41594,41597,41600,41603,41606,41609,41612,41615,41618,41621,41624,41627,41630,41633,41636,41639,41642,41645,41648,41651,41654,41657,41660,41663,41666,41669,41672,41675,41678,41681,41684,41687,41690,41693,41696,41699,41702,41705,41708,41711,41714,41717,41720,41723,41726,41729,41732,41735,41738,41741,41744,41747,41750,41753,41756,41759,41762,41765,41768,41771,41774,41777,41780,41783,41786,41789,41792,41795,41798,41801,41804,41807,41810,41813,41816,41819,41822,41825,41828,41831,41834,41837,41840,41843,41846,41849,41852,41855,41858,41861,41864,41867,41870,41873,41876,41879,41882,41885,41888,41891,41894,41897,41900,41903,41906,41909,41912,41915,41918,41921,41924,41927,41930,41933,41936,41939,41942,41945,41948,41951,41954,41957,41960,41963,41966,41969,41972,41975,41978,41981,41984,41987,41990,41993,41996,41999,42002,42005,42008,42011,42014,42017,42020,42023,42026,42029,42032,42035,42038,42041,42044,42047,42050,42053,42056,42059,42062,42065,42068,42071,42074,42077,42080,42083,42086,42089,42092,42095,42098,42101,42104,42107,42110,42113,42116,42119,42122,42125,42128,42131,42134,42137,42140,42143,42146,42149,42152,42155,42158,42161,42164,42167,42170,42173,42176,42179,42182,42185,42188,42191,42194,42197,42200,42203,42206,42209,42212,42215,42218,42221,42224,42227,42230,42233,42236,42239,42242,42245,42248,42251,42254,42257,42260,42263,42266,42269,42272,42275,42278,42281,42284,42287,42290,42293,42296,42299,42302,42305,42308,42311,42314,42317,42320,42323,42326,42329,42332,42335,42338,42341,42344,42347,42350,42353,42356,42359,42362,42365,42368,42371,42374,42377,42380,42383,42386,42389,42392,42395,42398,42401,42404,42407,42410,42413,42416,42419,42422,42425,42428,42431,42434,42437,42440,42443,42446,42449,42452,42455,42458,42461,42464,42467,42470,42473,42476,42479,42482,42485,42488,42491,42494,42497,42500,42503,42506,42509,42512,42515,42518,42521,42524,42527,42530,42533,42536,42539,42542,42545,42548,42551,42554,42557,42560,42563,42566,42569,42572,42575,42578,42581,42584,42587,42590,42593,42596,42599,42602,42605,42608,42611,42614,42617,42620,42623,42626,42629,42632,42635,42638,42641,42644,42647,42650,42653,42656,42659,42662,42665,42668,42671,42674,42677,42680,42683,42686,42689,42692,42695,42698,42701,42704,42707,42710,42713,42716,42719,42722,42725,42728,42731,42734,42737,42740,42743,42746,42749,42752,42755,42758,42761,42764,42767,42770,42773,42776,42779,42782,42785,42788,42791,42794,42797,42800,42803,42806,42809,42812,42815,42818,42821,42824,42827,42830,42833,42836,42839,42842,42845,42848,42851,42854,42857,42860,42863,42866,42869,42872,42875,42878,42881,42884,42887,42890,42893,42896,42899,42902,42905,42908,42911,42914,42917,42920,42923,42926,42929,42932,42935,42938,42941,42944,42947,42950,42953,42956,42959,42962,42965,42968,42971,42974,42977,42980,42983,42986,42989,42992,42995,42998,43001,43004,43007,43010,43013,43016,43019,43022,43025,43028,43031,43034,43037,43040,43043,43046,43049,43052,43055,43058,43061,43064,43067,43070,43073,43076,43079,43082,43085,43088,43091,43094,43097,43100,43103,43106,43109,43112,43115,43118,43121,43124,43127,43130,43133,43136,43139,43142,43145,43148,43151,43154,43157,43160,43163,43166,43169,43172,43175,43178,43181,43184,43187,43190,43193,43196,43199,43202,43205,43208,43211,43214,43217,43220,43223,43226,43229,43232,43235,43238,43241,43244,43247,43250,43253,43256,43259,43262,43265,43268,43271,43274,43277,43280,43283,43286,43289,43292,43295,43298,43301,43304,43307,43310,43313,43316,43319,43322,43325,43328,43331,43334,43337,43340,43343,43346,43349,43352,43355,43358,43361,43364,43367,43370,43373,43376,43379,43382,43385,43388,43391,43394,43397,43400,43403,43406,43409,43412,43415,43418,43421,43424,43427,43430,43433,43436,43439,43442,43445,43448,43451,43454,43457,43460,43463,43466,43469,43472,43475,43478,43481,43484,43487,43490,43493,43496,43499,43502,43505,43508,43511,43514,43517,43520,43523,43526,43529,43532,43535,43538,43541,43544,43547,43550,43553,43556,43559,43562,43565,43568,43571,43574,43577,43580,43583,43586,43589,43592,43595,43598,43601,43604,43607,43610,43613,43616,43619,43622,43625,43628,43631,43634,43637,43640,43643,43646,43649,43652,43655,43658,43661,43664,43667,43670,43673,43676,43679,43682,43685,43688,43691,43694,43697,43700,43703,43706,43709,43712,43715,43718,43721,43724,43727,43730,43733,43736,43739,43742,43745,43748,43751,43754,43757,43760,43763,43766,43769,43772,43775,43778,43781,43784,43787,43790,43793,43796,43799,43802,43805,43808,43811,43814,43817,43820,43823,43826,43829,43832,43835,43838,43841,43844,43847,43850,43853,43856,43859,43862,43865,43868,43871,43874,43877,43880,43883,43886,43889,43892,43895,43898,43901,43904,43907,43910,43913,43916,43919,43922,43925,43928,43931,43934,43937,43940,43943,43946,43949,43952,43955,43958,43961,43964,43967,43970,43973,43976,43979,43982,43985,43988,43991,43994,43997,44E3,44003,44006,44009,44012,44015,44018,44021,44024,44027,44030,44033,44036,44039,44042,44045,44048,44051,44054,44057,44060,44063,44066,44069,44072,44075,44078,44081,44084,44087,44090,44093,44096,44099,44102,44105,44108,44111,44114,44117,44120,44123,44126,44129,44132,44135,44138,44141,44144,44147,44150,44153,44156,44159,44162,44165,44168,44171,44174,44177,44180,44183,44186,44189,44192,44195,44198,44201,44204,44207,44210,44213,44216,44219,44222,44225,44228,44231,44234,44237,44240,44243,44246,44249,44252,44255,44258,44261,44264,44267,44270,44273,44276,44279,44282,44285,44288,44291,44294,44297,44300,44303,44306,44309,44312,44315,44318,44321,44324,44327,44330,44333,44336,44339,44342,44345,44348,44351,44354,44357,44360,44363,44366,44369,44372,44375,44378,44381,44384,44387,44390,44393,44396,44399,44402,44405,44408,44411,44414,44417,44420,44423,44426,44429,44432,44435,44438,44441,44444,44447,44450,44453,44456,44459,44462,44465,44468,44471,44474,44477,44480,44483,44486,44489,44492,44495,44498,44501,44504,44507,44510,44513,44516,44519,44522,44525,44528,44531,44534,44537,44540,44543,44546,44549,44552,44555,44558,44561,44564,44567,44570,44573,44576,44579,44582,44585,44588,44591,44594,44597,44600,44603,44606,44609,44612,44615,44618,44621,44624,44627,44630,44633,44636,44639,44642,44645,44648,44651,44654,44657,44660,44663,44666,44669,44672,44675,44678,44681,44684,44687,44690,44693,44696,44699,44702,44705,44708,44711,44714,44717,44720,44723,44726,44729,44732,44735,44738,44741,44744,44747,44750,44753,44756,44759,44762,44765,44768,44771,44774,44777,44780,44783,44786,44789,44792,44795,44798,44801,44804,44807,44810,44813,44816,44819,44822,44825,44828,44831,44834,44837,44840,44843,44846,44849,44852,44855,44858,44861,44864,44867,44870,44873,44876,44879,44882,44885,44888,44891,44894,44897,44900,44903,44906,44909,44912,44915,44918,44921,44924,44927,44930,44933,44936,44939,44942,44945,44948,44951,44954,44957,44960,44963,44966,44969,44972,44975,44978,44981,44984,44987,44990,44993,44996,44999,45002,45005,45008,45011,45014,45017,45020,45023,45026,45029,45032,45035,45038,45041,45044,45047,45050,45053,45056,45059,45062,45065,45068,45071,45074,45077,45080,45083,45086,45089,45092,45095,45098,45101,45104,45107,45110,45113,45116,45119,45122,45125,45128,45131,45134,45137,45140,45143,45146,45149,45152,45155,45158,45161,45164,45167,45170,45173,45176,45179,45182,45185,45188,45191,45194,45197,45200,45203,45206,45209,45212,45215,45218,45221,45224,45227,45230,45233,45236,45239,45242,45245,45248,45251,45254,45257,45260,45263,45266,45269,45272,45275,45278,45281,45284,45287,45290,45293,45296,45299,45302,45305,45308,45311,45314,45317,45320,45323,45326,45329,45332,45335,45338,45341,45344,45347,45350,45353,45356,45359,45362,45365,45368,45371,45374,45377,45380,45383,45386,45389,45392,45395,45398,45401,45404,45407,45410,45413,45416,45419,45422,45425,45428,45431,45434,45437,45440,45443,45446,45449,45452,45455,45458,45461,45464,45467,45470,45473,45476,45479,45482,45485,45488,45491,45494,45497,45500,45503,45506,45509,45512,45515,45518,45521,45524,45527,45530,45533,45536,45539,45542,45545,45548,45551,45554,45557,45560,45563,45566,45569,45572,45575,45578,45581,45584,45587,45590,45593,45596,45599,45602,45605,45608,45611,45614,45617,45620,45623,45626,45629,45632,45635,45638,45641,45644,45647,45650,45653,45656,45659,45662,45665,45668,45671,45674,45677,45680,45683,45686,45689,45692,45695,45698,45701,45704,45707,45710,45713,45716,45719,45722,45725,45728,45731,45734,45737,45740,45743,45746,45749,45752,45755,45758,45761,45764,45767,45770,45773,45776,45779,45782,45785,45788,45791,45794,45797,45800,45803,45806,45809,45812,45815,45818,45821,45824,45827,45830,45833,45836,45839,45842,45845,45848,45851,45854,45857,45860,45863,45866,45869,45872,45875,45878,45881,45884,45887,45890,45893,45896,45899,45902,45905,45908,45911,45914,45917,45920,45923,45926,45929,45932,45935,45938,45941,45944,45947,45950,45953,45956,45959,45962,45965,45968,45971,45973,45975,45977,45979,45981,45983,45985,45987,45989,45991,45993,45995,45997,45999,46001,46003,46005,46007,46009,46011,46013,46015,46017,46019,46021,46023,46025,46027,46029,46031,46033,46035,46037,46039,46041,46043,46045,46047,46049,46051,46053,46055,46057,46059,46061,46063,46065,46067,46069,46071,46073,46075,46077,46079,46081,46083,46085,46087,46089,46091,46093,46095,46097,46099,46101,46103,46105,46107,46109,46111,46113,46115,46117,46119,46121,46123,46125,46127,46129,46131,46133,46135,46137,46139,46141,46143,46145,46147,46149,46151,46153,46155,46157,46159,46161,46163,46165,46167,46169,46171,46173,46175,46177,46179,46181,46183,46185,46187,46189,46191,46193,46195,46197,46199,46201,46203,46205,46207,46209,46211,46213,46215,46217,46219,46221,46223,46225,46227,46229,46231,46233,46235,46237,46239,46241,46243,46245,46247,46249,46251,46253,46255,46257,46259,46261,46263,46265,46267,46269,46271,46273,46275,46277,46279,46281,46283,46285,46287,46289,46291,46293,46295,46297,46299,46301,46303,46305,46307,46309,46311,46313,46315,46317,46319,46321,46323,46325,46327,46329,46331,46333,46335,46337,46339,46341,46343,46345,46347,46349,46351,46353,46355,46357,46359,46361,46363,46365,46367,46369,46371,46373,46375,46377,46379,46381,46383,46385,46387,46389,46391,46393,46395,46397,46399,46401,46403,46405,46407,46409,46411,46413,46415,46417,46419,46421,46423,46425,46427,46429,46431,46433,46435,46437,46439,46441,46443,46445,46447,46449,46451,46453,46455,46457,46459,46461,46463,46465,46467,46469,46471,46473,46475,46477,46479,46481,46483,46485,46487,46489,46491,46493,46495,46497,46499,46501,46503,46505,46507,46509,46511,46513,46515,46517,46519,46521,46523,46525,46527,46529,46531,46533,46535,46537,46539,46541,46543,46545,46547,46549,46551,46553,46555,46557,46559,46561,46563,46565,46567,46569,46571,46573,46575,46577,46579,46581,46583,46585,46587,46589,46591,46593,46595,46597,46599,46601,46603,46605,46607,46609,46611,46613,46615,46617,46619,46621,46623,46625,46627,46629,46631,46633,46635,46637,46639,46641,46643,46645,46647,46649,46651,46653,46655,46657,46659,46661,46663,46665,46667,46669,46671,46673,46675,46677,46679,46681,46683,46685,46687,46689,46691,46693,46695,46697,46699,46701,46703,46705,46707,46709,46711,46713,46715,46717,46719,46721,46723,46725,46727,46729,46731,46733,46735,46737,46739,46741,46743,46745,46747,46749,46751,46753,46755,46757,46759,46761,46763,46765,46767,46769,46771,46773,46775,46777,46779,46781,46783,46785,46787,46789,46791,46793,46795,46797,46799,46801,46803,46805,46807,46809,46811,46813,46815,46817,46819,46821,46823,46825,46827,46829,46831,46833,46835,46837,46839,46841,46843,46845,46847,46849,46851,46853,46855,46857,46859,46861,46863,46865,46867,46869,46871,46873,46875,46877,46879,46881,46883,46885,46887,46889,46891,46893,46895,46897,46899,46901,46903,46905,46907,46909,46911,46913,46915,46917,46919,46921,46923,46925,46927,46929,46931,46933,46935,46937,46939,46941,46943,46945,46947,46949,46951,46953,46955,46957,46959,46961,46963,46965,46967,46969,46971,46973,46975,46977,46979,46981,46983,46985,46987,46989,46991,46993,46995,46997,46999,47001,47003,47005,47007,47009,47011,47013,47015,47017,47019,47021,47023,47025,47027,47029,47031,47033,47035,47037,47039,47041,47043,47045,47047,47049,47051,47053,47055,47057,47059,47061,47063,47065,47067,47069,47071,47073,47075,47077,47079,47081,47083,47085,47087,47089,47091,47093,47095,47097,47099,47101,47103,47105,47107,47109,47111,47113,47115,47117,47119,47121,47123,47125,47127,47129,47131,47133,47135,47137,47139,47141,47143,47145,47147,47149,47151,47153,47155,47157,47159,47161,47163,47165,47167,47169,47171,47173,47175,47177,47179,47181,47183,47185,47187,47189,47191,47193,47195,47197,47199,47201,47203,47205,47207,47209,47211,47213,47215,47217,47219,47221,47223,47225,47227,47229,47231,47233,47235,47237,47239,47241,47243,47245,47247,47249,47251,47253,47255,47257,47259,47261,47263,47265,47267,47269,47271,47273,47275,47277,47279,47281,47283,47285,47287,47289,47291,47293,47295,47297,47299,47301,47303,47305,47307,47309,47311,47313,47315,47317,47319,47321,47323,47325,47327,47329,47331,47333,47335,47337,47339,47341,47343,47345,47347,47349,47351,47353,47355,47357,47359,47361,47363,47365,47367,47369,47371,47373,47375,47377,47379,47381,47383,47385,47387,47389,47391,47393,47395,47397,47399,47401,47403,47405,47407,47409,47411,47413,47415,47417,47419,47421,47423,47425,47427,47429,47431,47433,47435,47437,47439,47441,47443,47445,47447,47449,47451,47453,47455,47457,47459,47461,47463,47465,47467,47469,47471,47473,47475,47477,47479,47481,47483,47485,47487,47489,47491,47493,47495,47497,47499,47501,47503,47505,47507,47509,47511,47513,47515,47517,47519,47521,47523,47525,47527,47529,47531,47533,47535,47537,47539,47541,47543,47545,47547,47549,47551,47553,47555,47557,47559,47561,47563,47565,47567,47569,47571,47573,47575,47577,47579,47581,47583,47585,47587,47589,47591,47593,47595,47597,47599,47601,47603,47605,47607,47609,47611,47613,47615,47617,47619,47621,47623,47625,47627,47629,47631,47633,47635,47637,47639,47641,47643,47645,47647,47649,47651,47653,47655,47657,47659,47661,47663,47665,47667,47669,47671,47673,47675,47677,47679,47681,47683,47685,47687,47689,47691,47693,47695,47697,47699,47701,47703,47705,47707,47709,47711,47713,47715,47717,47719,47721,47723,47725,47727,47729,47731,47733,47735,47737,47739,47741,47743,47745,47747,47749,47751,47753,47755,47757,47759,47761,47763,47765,47767,47769,47771,47773,47775,47777,47779,47781,47783,47785,47787,47789,47791,47793,47795,47797,47799,47801,47803,47805,47807,47809,47811,47813,47815,47817,47819,47821,47823,47825,47827,47829,47831,47833,47835,47837,47839,47841,47843,47845,47847,47849,47851,47853,47855,47857,47859,47861,47863,47865,47867,47869,47871,47873,47875,47877,47879,47881,47883,47885,47887,47889,47891,47893,47895,47897,47899,47901,47903,47905,47907,47909,47911,47913,47915,47917,47919,47921,47923,47925,47927,47929,47931,47933,47935,47937,47939,47941,47943,47945,47947,47949,47951,47953,47955,47957,47959,47961,47963,47965,47967,47969,47971,47973,47975,47977,47979,47981,47983,47985,47987,47989,47991,47993,47995,47997,47999,48001,48003,48005,48007,48009,48011,48013,48015,48017,48019,48021,48023,48025,48027,48029,48031,48033,48035,48037,48039,48041,48043,48045,48047,48049,48051,48053,48055,48057,48059,48061,48063,48065,48067,48069,48071,48073,48075,48077,48079,48081,48083,48085,48087,48089,48091,48093,48095,48097,48099,48101,48103,48105,48107,48109,48111,48113,48115,48117,48119,48121,48123,48125,48127,48129,48131,48133,48135,48137,48139,48141,48143,48145,48147,48149,48151,48153,48155,48157,48159,48161,48163,48165,48167,48169,48171,48173,48175,48177,48179,48181,48183,48185,48187,48189,48191,48193,48195,48197,48199,48201,48203,48205,48207,48209,48211,48213,48215,48217,48219,48221,48223,48225,48227,48229,48231,48233,48235,48237,48239,48241,48243,48245,48247,48249,48251,48253,48255,48257,48259,48261,48263,48265,48267,48269,48271,48273,48275,48277,48279,48281,48283,48285,48287,48289,48291,48293,48295,48297,48299,48301,48303,48305,48307,48309,48311,48313,48315,48317,48319,48321,48323,48325,48327,48329,48331,48333,48335,48337,48339,48341,48343,48345,48347,48349,48351,48353,48355,48357,48359,48361,48363,48365,48367,48369,48371,48373,48375,48377,48379,48381,48383,48385,48387,48389,48391,48393,48395,48397,48399,48401,48403,48405,48407,48409,48411,48413,48415,48417,48419,48421,48423,48425,48427,48429,48431,48433,48435,48437,48439,48441,48443,48445,48447,48449,48451,48453,48455,48457,48459,48461,48463,48465,48467,48469,48471,48473,48475,48477,48479,48481,48483,48485,48487,48489,48491,48493,48495,48497,48499,48501,48503,48505,48507,48509,48511,48513,48515,48517,48519,48521,48523,48525,48527,48529,48531,48533,48535,48537,48539,48541,48543,48545,48547,48549,48551,48553,48555,48557,48559,48561,48563,48565,48567,48569,48571,48573,48575,48577,48579,48581,48583,48585,48587,48589,48591,48593,48595,48597,48599,48601,48603,48605,48607,48609,48611,48613,48615,48617,48619,48621,48623,48625,48627,48629,48631,48633,48635,48637,48639,48641,48643,48645,48647,48649,48651,48653,48655,48657,48659,48661,48663,48665,48667,48669,48671,48673,48675,48677,48679,48681,48683,48685,48687,48689,48691,48693,48695,48697,48699,48701,48703,48705,48707,48709,48711,48713,48715,48717,48719,48721,48723,48725,48727,48729,48731,48733,48735,48737,48739,48741,48743,48745,48747,48749,48751,48753,48755,48757,48759,48761,48763,48765,48767,48769,48771,48773,48775,48777,48779,48781,48783,48785,48787,48789,48791,48793,48795,48797,48799,48801,48803,48805,48807,48809,48811,48813,48815,48817,48819,48821,48823,48825,48827,48829,48831,48833,48835,48837,48839,48841,48843,48845,48847,48849,48851,48853,48855,48857,48859,48861,48863,48865,48867,48869,48871,48873,48875,48877,48879,48881,48883,48885,48887,48889,48891,48893,48895,48897,48899,48901,48903,48905,48907,48909,48911,48913,48915,48917,48919,48921,48923,48925,48927,48929,48931,48933,48935,48937,48939,48941,48943,48945,48947,48949,48951,48953,48955,48957,48959,48961,48963,48965,48967,48969,48971,48973,48975,48977,48979,48981,48983,48985,48987,48989,48991,48993,48995,48997,48999,49001,49003,49005,49007,49009,49011,49013,49015,49017,49019,49021,49023,49025,49027,49029,49031,49033,49035,49037,49039,49041,49043,49045,49047,49049,49051,49053,49055,49057,49059,49061,49063,49065,49067,49069,49071,49073,49075,49077,49079,49081,49083,49085,49087,49089,49091,49093,49095,49097,49099,49101,49103,49105,49107,49109,49111,49113,49115,49117,49119,49121,49123,49125,49127,49129,49131,49133,49135,49137,49139,49141,49143,49145,49147,49149,49151,49153,49155,49157,49159,49161,49163,49165,49167,49169,49171,49173,49175,49177,49179,49181,49183,49185,49187,49189,49191,49193,49195,49197,49199,49201,49203,49205,49207,49209,49211,49213,49215,49217,49219,49221,49223,49225,49227,49229,49231,49233,49235,49237,49239,49241,49243,49245,49247,49249,49251,49253,49255,49257,49259,49261,49263,49265,49267,49269,49271,49273,49275,49277,49279,49281,49283,49285,49287,49289,49291,49293,49295,49297,49299,49301,49303,49305,49307,49309,49311,49313,49315,49317,49319,49321,49323,49325,49327,49329,49331,49333,49335,49337,49339,49341,49343,49345,49347,49349,49351,49353,49355,49357,49359,49361,49363,49365,49367,49369,49371,49373,49375,49377,49379,49381,49383,49385,49387,49389,49391,49393,49395,49397,49399,49401,49403,49405,49407,49409,49411,49413,49415,49417,49419,49421,49423,49425,49427,49429,49431,49433,49435,49437,49439,49441,49443,49445,49447,49449,49451,49453,49455,49457,49459,49461,49463,49465,49467,49469,49471,49473,49475,49477,49479,49481,49483,49485,49487,49489,49491,49493,49495,49497,49499,49501,49503,49505,49507,49509,49511,49513,49515,49517,49519,49521,49523,49525,49527,49529,49531,49533,49535,49537,49539,49541,49543,49545,49547,49549,49551,49553,49555,49557,49559,49561,49563,49565,49567,49569,49571,49573,49575,49577,49579,49581,49583,49585,49587,49589,49591,49593,49595,49597,49599,49601,49603,49605,49607,49609,49611,49613,49615,49617,49619,49621,49623,49625,49627,49629,49631,49633,49635,49637,49639,49641,49643,49645,49647,49649,49651,49653,49655,49657,49659,49661,49663,49665,49667,49669,49671,49673,49675,49677,49679,49681,49683,49685,49687,49689,49691,49693,49695,49697,49699,49701,49703,49705,49707,49709,49711,49713,49715,49717,49719,49721,49723,49725,49727,49729,49731,49733,49735,49737,49739,49741,49743,49745,49747,49749,49751,49753,49755,49757,49759,49761,49763,49765,49767,49769,49771,49773,49775,49777,49779,49781,49783,49785,49787,49789,49791,49793,49795,49797,49799,49801,49803,49805,49807,49809,49811,49813,49815,49817,49819,49821,49823,49825,49827,49829,49831,49833,49835,49837,49839,49841,49843,49845,49847,49849,49851,49853,49855,49857,49859,49861,49863,49865,49867,49869,49871,49873,49875,49877,49879,49881,49883,49885,49887,49889,49891,49893,49895,49897,49899,49901,49903,49905,49907,49909,49911,49913,49915,49917,49919,49921,49923,49925,49927,49929,49931,49933,49935,49937,49939,49941,49943,49945,49947,49949,49951,49953,49955,49957,49959,49961,49963,49965,49967,49969,49971,49973,49975,49977,49979,49981,49983,49985,49987,49989,49991,49993,49995,49997,49999,50001,50003,50005,50007,50009,50011,50013,50015,50017,50019,50021,50023,50025,50027,50029,50031,50033,50035,50037,50039,50041,50043,50045,50047,50049,50051,50053,50055,50057,50059,50061,50063,50065,50067,50069,50071,50073,50075,50077,50079,50081,50083,50085,50087,50089,50091,50093,50095,50097,50099,50101,50103,50105,50107,50109,50111,50113,50115,50117,50119,50121,50123,50125,50127,50129,50131,50133,50135,50137,50139,50141,50143,50145,50147,50149,50151,50153,50155,50157,50159,50161,50163,50165,50167,50169,50171,50173,50175,50177,50179,50181,50183,50185,50187,50189,50191,50193,50195,50197,50199,50201,50203,50205,50207,50209,50211,50213,50215,50217,50219,50221,50223,50225,50227,50229,50231,50233,50235,50237,50239,50241,50243,50245,50247,50249,50251,50253,50255,50257,50259,50261,50263,50265,50267,50269,50271,50273,50275,50277,50279,50281,50283,50285,50287,50289,50291,50293,50295,50297,50299,50301,50303,50305,50307,50309,50311,50313,50315,50317,50319,50321,50323,50325,50327,50329,50331,50333,50335,50337,50339,50341,50343,50345,50347,50349,50351,50353,50355,50357,50359,50361,50363,50365,50367,50369,50371,50373,50375,50377,50379,50381,50383,50385,50387,50389,50391,50393,50395,50397,50399,50401,50403,50405,50407,50409,50411,50413,50415,50417,50419,50421,50423,50425,50427,50429,50431,50433,50435,50437,50439,50441,50443,50445,50447,50449,50451,50453,50455,50457,50459,50461,50463,50465,50467,50469,50471,50473,50475,50477,50479,50481,50483,50485,50487,50489,50491,50493,50495,50497,50499,50501,50503,50505,50507,50509,50511,50513,50515,50517,50519,50521,50523,50525,50527,50529,50531,50533,50535,50537,50539,50541,50543,50545,50547,50549,50551,50553,50555,50557,50559,50561,50563,50565,50567,50569,50571,50573,50575,50577,50579,50581,50583,50585,50587,50589,50591,50593,50595,50597,50599,50601,50603,50605,50607,50609,50611,50613,50615,50617,50619,50621,50623,50625,50627,50629,50631,50633,50635,50637,50639,50641,50643,50645,50647,50649,50651,50653,50655,50657,50659,50661,50663,50665,50667,50669,50671,50673,50675,50677,50679,50681,50683,50685,50687,50689,50691,50693,50695,50697,50699,50701,50703,50705,50707,50709,50711,50713,50715,50717,50719,50721,50723,50725,50727,50729,50731,50733,50735,50737,50739,50741,50743,50745,50747,50749,50751,50753,50755,50757,50759,50761,50763,50765,50767,50769,50771,50773,50775,50777,50779,50781,50783,50785,50787,50789,50791,50793,50795,50797,50799,50801,50803,50805,50807,50809,50811,50813,50815,50817,50819,50821,50823,50825,50827,50829,50831,50833,50835,50837,50839,50841,50843,50845,50847,50849,50851,50853,50855,50857,50859,50861,50863,50865,50867,50869,50871,50873,50875,50877,50879,50881,50883,50885,50887,50889,50891,50893,50895,50897,50899,50901,50903,50905,50907,50909,50911,50913,50915,50917,50919,50921,50923,50925,50927,50929,50931,50933,50935,50937,50939,50941,50943,50945,50947,50949,50951,50953,50955,50957,50959,50961,50963,50965,50967,50969,50971,50973,50975,50977,50979,50981,50983,50985,50987,50989,50991,50993,50995,50997,50999,51001,51003,51005,51007,51009,51011,51013,51015,51017,51019,51021,51023,51025,51027,51029,51031,51033,51035,51037,51039,51041,51043,51045,51047,51049,51051,51053,51055,51057,51059,51061,51063,51065,51067,51069,51071,51073,51075,51077,51079,51081,51083,51085,51087,51089,51091,51093,51095,51097,51099,51101,51103,51105,51107,51109,51111,51113,51115,51117,51119,51121,51123,51125,51127,51129,51131,51133,51135,51137,51139,51141,51143,51145,51147,51149,51151,51153,51155,51157,51159,51161,51163,51165,51167,51169,51171,51173,51175,51177,51179,51181,51183,51185,51187,51189,51191,51193,51195,51197,51199,51201,51203,51205,51207,51209,51211,51213,51215,51217,51219,51221,51223,51225,51227,51229,51231,51233,51235,51237,51239,51241,51243,51245,51247,51249,51251,51253,51255,51257,51259,51261,51263,51265,51267,51269,51271,51273,51275,51277,51279,51281,51283,51285,51287,51289,51291,51293,51295,51297,51299,51301,51303,51305,51307,51309,51311,51313,51315,51317,51319,51321,51323,51325,51327,51329,51331,51333,51335,51337,51339,51341,51343,51345,51347,51349,51351,51353,51355,51357,51359,51361,51363,51365,51367,51369,51371,51373,51375,51377,51379,51381,51383,51385,51387,51389,51391,51393,51395,51397,51399,51401,51403,51405,51407,51409,51411,51413,51415,51417,51419,51421,51423,51425,51427,51429,51431,51433,51435,51437,51439,51441,51443,51445,51447,51449,51451,51453,51455,51457,51459,51461,51463,51465,51467,51469,51471,51473,51475,51477,51479,51481,51483,51485,51487,51489,51491,51493,51495,51497,51499,51501,51503,51505,51507,51509,51511,51513,51515,51517,51519,51521,51523,51525,51527,51529,51531,51533,51535,51537,51539,51541,51543,51545,51547,51549,51551,51553,51555,51557,51559,51561,51563,51565,51567,51569,51571,51573,51575,51577,51579,51581,51583,51585,51587,51589,51591,51593,51595,51597,51599,51601,51603,51605,51607,51609,51611,51613,51615,51617,51619,51621,51623,51625,51627,51629,51631,51633,51635,51637,51639,51641,51643,51645,51647,51649,51651,51653,51655,51657,51659,51661,51663,51665,51667,51669,51671,51673,51675,51677,51679,51681,51683,51685,51687,51689,51691,51693,51695,51697,51699,51701,51703,51705,51707,51709,51711,51713,51715,51717,51719,51721,51723,51725,51727,51729,51731,51733,51735,51737,51739,51741,51743,51745,51747,51749,51751,51753,51755,51757,51759,51761,51763,51765,51767,51769,51771,51773,51775,51777,51779,51781,51783,51785,51787,51789,51791,51793,51795,51797,51799,51801,51803,51805,51807,51809,51811,51813,51815,51817,51819,51821,51823,51825,51827,51829,51831,51833,51835,51837,51839,51841,51843,51845,51847,51849,51851,51853,51855,51857,51859,51861,51863,51865,51867,51869,51871,51873,51875,51877,51879,51881,51883,51885,51887,51889,51891,51893,51895,51897,51899,51901,51903,51905,51907,51909,51911,51913,51915,51917,51919,51921,51923,51925,51927,51929,51931,51933,51935,51937,51939,51941,51943,51945,51947,51949,51951,51953,51955,51957,51959,51961,51963,51965,51967,51969,51971,51973,51975,51977,51979,51981,51983,51985,51987,51989,51991,51993,51995,51997,51999,52001,52003,52005,52007,52009,52011,52013,52015,52017,52019,52021,52023,52025,52027,52029,52031,52033,52035,52037,52039,52041,52043,52045,52047,52049,52051,52053,52055,52057,52059,52061,52063,52065,52067,52069,52071,52073,52075,52077,52079,52081,52083,52085,52087,52089,52091,52093,52095,52097,52099,52101,52103,52105,52107,52109,52111,52113,52115,52117,52119,52121,52123,52125,52127,52129,52131,52133,52135,52137,52139,52141,52143,52145,52147,52149,52151,52153,52155,52157,52159,52161,52163,52165,52167,52169,52171,52173,52175,52177,52179,52181,52183,52185,52187,52189,52191,52193,52195,52197,52199,52201,52203,52205,52207,52209,52211,52213,52215,52217,52219,52221,52223,52225,52227,52229,52231,52233,52235,52237,52239,52241,52243,52245,52247,52249,52251,52253,52255,52257,52259,52261,52263,52265,52267,52269,52271,52273,52275,52277,52279,52281,52283,52285,52287,52289,52291,52293,52295,52297,52299,52301,52303,52305,52307,52309,52311,52313,52315,52317,52319,52321,52323,52325,52327,52329,52331,52333,52335,52337,52339,52341,52343,52345,52347,52349,52351,52353,52355,52357,52359,52361,52363,52365,52367,52369,52371,52373,52375,52377,52379,52381,52383,52385,52387,52389,52391,52393,52395,52397,52399,52401,52403,52405,52407,52409,52411,52413,52415,52417,52419,52421,52423,52425,52427,52429,52431,52433,52435,52437,52439,52441,52443,52445,52447,52449,52451,52453,52455,52457,52459,52461,52463,52465,52467,52469,52471,52473,52475,52477,52479,52481,52483,52485,52487,52489,52491,52493,52495,52497,52499,52501,52503,52505,52507,52509,52511,52513,52515,52517,52519,52521,52523,52525,52527,52529,52531,52533,52535,52537,52539,52541,52543,52545,52547,52549,52551,52553,52555,52557,52559,52561,52563,52565,52567,52569,52571,52573,52575,52577,52579,52581,52583,52585,52587,52589,52591,52593,52595,52597,52599,52601,52603,52605,52607,52609,52611,52613,52615,52617,52619,52621,52623,52625,52627,52629,52631,52633,52635,52637,52639,52641,52643,52645,52647,52649,52651,52653,52655,52657,52659,52661,52663,52665,52667,52669,52671,52673,52675,52677,52679,52681,52683,52685,52687,52689,52691,52693,52695,52697,52699,52701,52703,52705,52707,52709,52711,52713,52715,52717,52719,52721,52723,52725,52727,52729,52731,52733,52735,52737,52739,52741,52743,52745,52747,52749,52751,52753,52755,52757,52759,52761,52763,52765,52767,52769,52771,52773,52775,52777,52779,52781,52783,52785,52787,52789,52791,52793,52795,52797,52799,52801,52803,52805,52807,52809,52811,52813,52815,52817,52819,52821,52823,52825,52827,52829,52831,52833,52835,52837,52839,52841,52843,52845,52847,52849,52851,52853,52855,52857,52859,52861,52863,52865,52867,52869,52871,52873,52875,52877,52879,52881,52883,52885,52887,52889,52891,52893,52895,52897,52899,52901,52903,52905,52907,52909,52911,52913,52915,52917,52919,52921,52923,52925,52927,52929,52931,52933,52935,52937,52939,52941,52943,52945,52947,52949,52951,52953,52955,52957,52959,52961,52963,52965,52967,52969,52971,52973,52975,52977,52979,52981,52983,52985,52987,52989,52991,52993,52995,52997,52999,53001,53003,53005,53007,53009,53011,53013,53015,53017,53019,53021,53023,53025,53027,53029,53031,53033,53035,53037,53039,53041,53043,53045,53047,53049,53051,53053,53055,53057,53059,53061,53063,53065,53067,53069,53071,53073,53075,53077,53079,53081,53083,53085,53087,53089,53091,53093,53095,53097,53099,53101,53103,53105,53107,53109,53111,53113,53115,53117,53119,53121,53123,53125,53127,53129,53131,53133,53135,53137,53139,53141,53143,53145,53147,53149,53151,53153,53155,53157,53159,53161,53163,53165,53167,53169,53171,53173,53175,53177,53179,53181,53183,53185,53187,53189,53191,53193,53195,53197,53199,53201,53203,53205,53207,53209,53211,53213,53215,53217,53219,53221,53223,53225,53227,53229,53231,53233,53235,53237,53239,53241,53243,53245,53247,53249,53251,53253,53255,53257,53259,53261,53263,53265,53267,53269,53271,53273,53275,53277,53279,53281,53283,53285,53287,53289,53291,53293,53295,53297,53299,53301,53303,53305,53307,53309,53311,53313,53315,53317,53319,53321,53323,53325,53327,53329,53331,53333,53335,53337,53339,53341,53343,53345,53347,53349,53351,53353,53355,53357,53359,53361,53363,53365,53367,53369,53371,53373,53375,53377,53379,53381,53383,53385,53387,53389,53391,53393,53395,53397,53399,53401,53403,53405,53407,53409,53411,53413,53415,53417,53419,53421,53423,53425,53427,53429,53431,53433,53435,53437,53439,53441,53443,53445,53447,53449,53451,53453,53455,53457,53459,53461,53463,53465,53467,53469,53471,53473,53475,53477,53479,53481,53483,53485,53487,53489,53491,53493,53495,53497,53499,53501,53503,53505,53507,53509,53511,53513,53515,53517,53519,53521,53523,53525,53527,53529,53531,53533,53535,53537,53539,53541,53543,53545,53547,53549,53551,53553,53555,53557,53559,53561,53563,53565,53567,53569,53571,53573,53575,53577,53579,53581,53583,53585,53587,53589,53591,53593,53595,53597,53599,53601,53603,53605,53607,53609,53611,53613,53615,53617,53619,53621,53623,53625,53627,53629,53631,53633,53635,53637,53639,53641,53643,53645,53647,53649,53651,53653,53655,53657,53659,53661,53663,53665,53667,53669,53671,53673,53675,53677,53679,53681,53683,53685,53687,53689,53691,53693,53695,53697,53699,53701,53703,53705,53707,53709,53711,53713,53715,53717,53719,53721,53723,53725,53727,53729,53731,53733,53735,53737,53739,53741,53743,53745,53747,53749,53751,53753,53755,53757,53759,53761,53763,53765,53767,53769,53771,53773,53775,53777,53779,53781,53783,53785,53787,53789,53791,53793,53795,53797,53799,53801,53803,53805,53807,53809,53811,53813,53815,53817,53819,53821,53823,53825,53827,53829,53831,53833,53835,53837,53839,53841,53843,53845,53847,53849,53851,53853,53855,53857,53859,53861,53863,53865,53867,53869,53871,53873,53875,53877,53879,53881,53883,53885,53887,53889,53891,53893,53895,53897,53899,53901,53903,53905,53907,53909,53911,53913,53915,53917,53919,53921,53923,53925,53927,53929,53931,53933,53935,53937,53939,53941,53943,53945,53947,53949,53951,53953,53955,53957,53959,53961,53963,53965,53967,53969,53971,53973,53975,53977,53979,53981,53983,53985,53987,53989,53991,53993,53995,53997,53999,54001,54003,54005,54007,54009,54011,54013,54015,54017,54019,54021,54023,54025,54027,54029,54031,54033,54035,54037,54039,54041,54043,54045,54047,54049,54051,54053,54055,54057,54059,54061,54063,54065,54067,54069,54071,54073,54075,54077,54079,54081,54083,54085,54087,54089,54091,54093,54095,54097,54099,54101,54103,54105,54107,54109,54111,54113,54115,54117,54119,54121,54123,54125,54127,54129,54131,54133,54135,54137,54139,54141,54143,54145,54147,54149,54151,54153,54155,54157,54159,54161,54163,54165,54167,54169,54171,54173,54175,54177,54179,54181,54183,54185,54187,54189,54191,54193,54195,54197,54199,54201,54203,54205,54207,54209,54211,54213,54215,54217,54219,54221,54223,54225,54227,54229,54231,54233,54235,54237,54239,54241,54243,54245,54247,54249,54251,54253,54255,54257,54259,54261,54263,54265,54267,54269,54271,54273,54275,54277,54279,54281,54283,54285,54287,54289,54291,54293,54295,54297,54299,54301,54303,54305,54307,54309,54311,54313,54315,54317,54319,54321,54323,54325,54327,54329,54331,54333,54335,54337,54339,54341,54343,54345,54347,54349,54351,54353,54355,54357,54359,54361,54363,54365,54367,54369,54371,54373,54375,54377,54379,54381,54383,54385,54387,54389,54391,54393,54395,54397,54399,54401,54403,54405,54407,54409,54411,54413,54415,54417,54419,54421,54423,54425,54427,54429,54431,54433,54435,54437,54439,54441,54443,54445,54447,54449,54451,54453,54455,54457,54459,54461,54463,54465,54467,54469,54471,54473,54475,54477,54479,54481,54483,54485,54487,54489,54491,54493,54495,54497,54499,54501,54503,54505,54507,54509,54511,54513,54515,54517,54519,54521,54523,54525,54527,54529,54531,54533,54535,54537,54539,54541,54543,54545,54547,54549,54551,54553,54555,54557,54559,54561,54563,54565,54567,54569,54571,54573,54575,54577,54579,54581,54583,54585,54587,54589,54591,54593,54595,54597,54599,54601,54603,54605,54607,54609,54611,54613,54615,54617,54619,54621,54623,54625,54627,54629,54631,54633,54635,54637,54639,54641,54643,54645,54647,54649,54651,54653,54655,54657,54659,54661,54663,54665,54667,54669,54671,54673,54675,54677,54679,54681,54683,54685,54687,54689,54691,54693,54695,54697,54699,54701,54703,54705,54707,54709,54711,54713,54715,54717,54719,54721,54723,54725,54727,54729,54731,54733,54735,54737,54739,54741,54743,54745,54747,54749,54751,54753,54755,54757,54759,54761,54763,54765,54767,54769,54771,54773,54775,54777,54779,54781,54783,54785,54787,54789,54791,54793,54795,54797,54799,54801,54803,54805,54807,54809,54811,54813,54815,54817,54819,54821,54823,54825,54827,54829,54831,54833,54835,54837,54839,54841,54843,54845,54847,54849,54851,54853,54855,54857,54859,54861,54863,54865,54867,54869,54871,54873,54875,54877,54879,54881,54883,54885,54887,54889,54891,54893,54895,54897,54899,54901,54903,54905,54907,54909,54911,54913,54915,54917,54919,54921,54923,54925,54927,54929,54931,54933,54935,54937,54939,54941,54943,54945,54947,54949,54951,54953,54955,54957,54959,54961,54963,54965,54967,54969,54971,54973,54975,54977,54979,54981,54983,54985,54987,54989,54991,54993,54995,54997,54999,55001,55003,55005,55007,55009,55011,55013,55015,55017,55019,55021,55023,55025,55027,55029,55031,55033,55035,55037,55039,55041,55043,55045,55047,55049,55051,55053,55055,55057,55059,55061,55063,55065,55067,55069,55071,55073,55075,55077,55079,55081,55083,55085,55087,55089,55091,55093,55095,55097,55099,55101,55103,55105,55107,55110,55113,55116,55119,55122,55125,55128,55131,55134,55137,55140,55143,55146,55149,55152,55155,55158,55161,55164,55167,55170,55173,55176,55179,55182,55185,55188,55191,55194,55197,55200,55203,55206,55209,55212,55215,55218,55221,55224,55227,55230,55233,55236,55239,55242,55245,55248,55251,55254,55257,55260,55263,55266,55269,55272,55275,55278,55281,55284,55287,55290,55293,55296,55299,55302,55305,55308,55311,55314,55317,55320,55323,55326,55329,55332,55335,55338,55341,55344,55347,55350,55353,55356,55359,55362,55365,55368,55371,55374,55377,55380,55383,55386,55389,55392,55395,55398,55401,55404,55407,55410,55413,55416,55419,55422,55425,55428,55431,55434,55437,55440,55443,55446,55449,55452,55455,55458,55461,55464,55467,55470,55473,55476,55479,55482,55485,55488,55491,55494,55497,55500,55503,55506,55509,55512,55515,55518,55521,55524,55527,55530,55533,55536,55539,55542,55545,55548,55551,55554,55557,55560,55563,55566,55569,55572,55575,55578,55581,55584,55587,55590,55593,55596,55599,55602,55605,55608,55611,55614,55617,55620,55623,55626,55629,55632,55635,55638,55641,55644,55647,55650,55653,55656,55659,55662,55665,55668,55671,55674,55677,55680,55683,55686,55689,55692,55695,55698,55701,55704,55707,55710,55713,55716,55719,55722,55725,55728,55731,55734,55737,55740,55743,55746,55749,55752,55755,55758,55761,55764,55767,55770,55773,55776,55779,55782,55785,55788,55791,55794,55797,55800,55803,55806,55809,55812,55815,55818,55821,55824,55827,55830,55833,55836,55839,55842,55845,55848,55851,55854,55857,55860,55863,55866,55869,55872,55875,55878,55881,55884,55887,55890,55893,55896,55899,55902,55905,55908,55911,55914,55917,55920,55923,55926,55929,55932,55935,55938,55941,55944,55947,55950,55953,55956,55959,55962,55965,55968,55971,55974,55977,55980,55983,55986,55989,55992,55995,55998,56001,56004,56007,56010,56013,56016,56019,56022,56025,56028,56031,56034,56037,56040,56043,56046,56049,56052,56055,56058,56061,56064,56067,56070,56073,56076,56079,56082,56085,56088,56091,56094,56097,56100,56103,56106,56109,56112,56115,56118,56121,56124,56127,56130,56133,56136,56139,56142,56145,56148,56151,56154,56157,56160,56163,56166,56169,56172,56175,56178,56181,56184,56187,56190,56193,56196,56199,56202,56205,56208,56211,56214,56217,56220,56223,56226,56229,56232,56235,56238,56241,56244,56247,56250,56253,56256,56259,56262,56265,56268,56271,56274,56277,56280,56283,56286,56289,56292,56295,56298,56301,56304,56307,56310,56313,56316,56319,56322,56325,56328,56331,56334,56337,56340,56343,56346,56349,56352,56355,56358,56361,56364,56367,56370,56373,56376,56379,56382,56385,56388,56391,56394,56397,56400,56403,56406,56409,56412,56415,56418,56421,56424,56427,56430,56433,56436,56439,56442,56445,56448,56451,56454,56457,56460,56463,56466,56469,56472,56475,56478,56481,56484,56487,56490,56493,56496,56499,56502,56505,56508,56511,56514,56517,56520,56523,56526,56529,56532,56535,56538,56541,56544,56547,56550,56553,56556,56559,56562,56565,56568,56571,56574,56577,56580,56583,56586,56589,56592,56595,56598,56601,56604,56607,56610,56613,56616,56619,56622,56625,56628,56631,56634,56637,56640,56643,56646,56649,56652,56655,56658,56661,56664,56667,56670,56673,56676,56679,56682,56685,56688,56691,56694,56697,56700,56703,56706,56709,56712,56715,56718,56721,56724,56727,56730,56733,56736,56739,56742,56745,56748,56751,56754,56757,56760,56763,56766,56769,56772,56775,56778,56781,56784,56787,56790,56793,56796,56799,56802,56805,56808,56811,56814,56817,56820,56823,56826,56829,56832,56835,56838,56841,56844,56847,56850,56853,56856,56859,56862,56865,56868,56871,56874,56877,56880,56883,56886,56889,56892,56895,56898,56901,56904,56907,56910,56913,56916,56919,56922,56925,56928,56931,56934,56937,56940,56943,56946,56949,56952,56955,56958,56961,56964,56967,56970,56973,56976,56979,56982,56985,56988,56991,56994,56997,57E3,57003,57006,57009,57012,57015,57018,57021,57024,57027,57030,57033,57036,57039,57042,57045,57048,57051,57054,57057,57060,57063,57066,57069,57072,57075,57078,57081,57084,57087,57090,57093,57096,57099,57102,57105,57108,57111,57114,57117,57120,57123,57126,57129,57132,57135,57138,57141,57144,57147,57150,57153,57156,57159,57162,57165,57168,57171,57174,57177,57180,57183,57186,57189,57192,57195,57198,57201,57204,57207,57210,57213,57216,57219,57222,57225,57228,57231,57234,57237,57240,57243,57246,57249,57252,57255,57258,57261,57264,57267,57270,57273,57276,57279,57282,57285,57288,57291,57294,57297,57300,57303,57306,57309,57312,57315,57318,57321,57324,57327,57330,57333,57336,57339,57342,57345,57348,57351,57354,57357,57360,57363,57366,57369,57372,57375,57378,57381,57384,57387,57390,57393,57396,57399,57402,57405,57408,57411,57414,57417,57420,57423,57426,57429,57432,57435,57438,57441,57444,57447,57450,57453,57456,57459,57462,57465,57468,57471,57474,57477,57480,57483,57486,57489,57492,57495,57498,57501,57504,57507,57510,57513,57516,57519,57522,57525,57528,57531,57534,57537,57540,57543,57546,57549,57552,57555,57558,57561,57564,57567,57570,57573,57576,57579,57582,57585,57588,57591,57594,57597,57600,57603,57606,57609,57612,57615,57618,57621,57624,57627,57630,57633,57636,57639,57642,57645,57648,57651,57654,57657,57660,57663,57666,57669,57672,57675,57678,57681,57684,57687,57690,57693,57696,57699,57702,57705,57708,57711,57714,57717,57720,57723,57726,57729,57732,57735,57738,57741,57744,57747,57750,57753,57756,57759,57762,57765,57768,57771,57774,57777,57780,57783,57786,57789,57792,57795,57798,57801,57804,57807,57810,57813,57816,57819,57822,57825,57828,57831,57834,57837,57840,57843,57846,57849,57852,57855,57858,57861,57864,57867,57870,57873,57876,57879,57882,57885,57888,57891,57894,57897,57900,57903,57906,57909,57912,57915,57918,57921,57924,57927,57930,57933,57936,57939,57942,57945,57948,57951,57954,57957,57960,57963,57966,57969,57972,57975,57978,57981,57984,57987,57990,57993,57996,57999,58002,58005,58008,58011,58014,58017,58020,58023,58026,58029,58032,58035,58038,58041,58044,58047,58050,58053,58056,58059,58062,58065,58068,58071,58074,58077,58080,58083,58086,58089,58092,58095,58098,58101,58104,58107,58110,58113,58116,58119,58122,58125,58128,58131,58134,58137,58140,58143,58146,58149,58152,58155,58158,58161,58164,58167,58170,58173,58176,58179,58182,58185,58188,58191,58194,58197,58200,58203,58206,58209,58212,58215,58218,58221,58224,58227,58230,58233,58236,58239,58242,58245,58248,58251,58254,58257,58260,58263,58266,58269,58272,58275,58278,58281,58284,58287,58290,58293,58296,58299,58302,58305,58308,58311,58314,58317,58320,58323,58326,58329,58332,58335,58338,58341,58344,58347,58350,58353,58356,58359,58362,58365,58368,58371,58374,58377,58380,58383,58386,58389,58392,58395,58398,58401,58404,58407,58410,58413,58416,58419,58422,58425,58428,58431,58434,58437,58440,58443,58446,58449,58452,58455,58458,58461,58464,58467,58470,58473,58476,58479,58482,58485,58488,58491,58494,58497,58500,58503,58506,58509,58512,58515,58518,58521,58524,58527,58530,58533,58536,58539,58542,58545,58548,58551,58554,58557,58560,58563,58566,58569,58572,58575,58578,58581,58584,58587,58590,58593,58596,58599,58602,58605,58608,58611,58614,58617,58620,58623,58626,58629,58632,58635,58638,58641,58644,58647,58650,58653,58656,58659,58662,58665,58668,58671,58674,58677,58680,58683,58686,58689,58692,58695,58698,58701,58704,58707,58710,58713,58716,58719,58722,58725,58728,58731,58734,58737,58740,58743,58746,58749,58752,58755,58758,58761,58764,58767,58770,58773,58776,58779,58782,58785,58788,58791,58794,58797,58800,58803,58806,58809,58812,58815,58818,58821,58824,58827,58830,58833,58836,58839,58842,58845,58848,58851,58854,58857,58860,58863,58866,58869,58872,58875,58878,58881,58884,58887,58890,58893,58896,58899,58902,58905,58908,58911,58914,58917,58920,58923,58926,58929,58932,58935,58938,58941,58944,58947,58950,58953,58956,58959,58962,58965,58968,58971,58974,58977,58980,58983,58986,58989,58992,58995,58998,59001,59004,59007,59010,59013,59016,59019,59022,59025,59028,59031,59034,59037,59040,59043,59046,59049,59052,59055,59058,59061,59064,59067,59070,59073,59076,59079,59082,59085,59088,59091,59094,59097,59100,59103,59106,59109,59112,59115,59118,59121,59124,59127,59130,59133,59136,59139,59142,59145,59148,59151,59154,59157,59160,59163,59166,59169,59172,59175,59178,59181,59184,59187,59190,59193,59196,59199,59202,59205,59208,59211,59214,59217,59220,59223,59226,59229,59232,59235,59238,59241,59244,59247,59250,59253,59256,59259,59262,59265,59268,59271,59274,59277,59280,59283,59286,59289,59292,59295,59298,59301,59304,59307,59310,59313,59316,59319,59322,59325,59328,59331,59334,59337,59340,59343,59346,59349,59352,59355,59358,59361,59364,59367,59370,59373,59376,59379,59382,59385,59388,59391,59394,59397,59400,59403,59406,59409,59412,59415,59418,59421,59424,59427,59430,59433,59436,59439,59442,59445,59448,59451,59454,59457,59460,59463,59466,59469,59472,59475,59478,59481,59484,59487,59490,59493,59496,59499,59502,59505,59508,59511,59514,59517,59520,59523,59526,59529,59532,59535,59538,59541,59544,59547,59550,59553,59556,59559,59562,59565,59568,59571,59574,59577,59580,59583,59586,59589,59592,59595,59598,59601,59604,59607,59610,59613,59616,59619,59622,59625,59628,59631,59634,59637,59640,59643,59646,59649,59652,59655,59658,59661,59664,59668,59672,59676,59680,59684,59688,59692,59696,59700,59704,59708,59712,59716,59720,59724,59728,59732,59736,59740,59744,59748,59752,59756,59760,59764,59768,59772,59776,59780,59784,59788,59792,59796,59800,59804,59808,59812,59816,59820,59824,59828,59832,59836,59840,59844,59848,59852,59856,59860,59864,59868,59872,59876,59880,59884,59888,59892,59896,59900,59904,59908,59912,59916,59920,59924,59928,59932,59936,59940,59944,59948,59952,59956,59960,59964,59968,59972,59976,59980,59984,59988,59992,59996,6E4,60004,60008,60012,60016,60020,60024,60028,60032,60036,60040,60044,60048,60052,60056,60060,60064,60068,60072,60076,60080,60084,60088,60092,60096,60100,60104,60108,60112,60116,60120,60124,60128,60132,60136,60140,60144,60148,60152,60156,60160,60164,60168,60172,60176,60180,60184,60188,60192,60196,60200,60204,60208,60212,60216,60220,60224,60228,60232,60236,60240,60244,60248,60252,60256,60260,60264,60268,60272,60276,60280,60284,60288,60292,60296,60300,60304,60308,60312,60316,60320,60324,60328,60332,60336,60340,60344,60348,60352,60356,60360,60364,60368,60372,60376,60380,60384,60388,60392,60396,60400,60404,60408,60412,60416,60420,60424,60428,60432,60436,60440,60444,60448,60452,60456,60460,60464,60468,60472,60476,60480,60484,60488,60492,60496,60500,60504,60508,60512,60516,60520,60524,60528,60532,60536,60540,60544,60548,60552,60556,60560,60564,60568,60572,60576,60580,60584,60588,60592,60596,60600,60604,60608,60612,60616,60620,60624,60628,60632,60636,60640,60644,60648,60652,60656,60660,60664,60668,60672,60676,60680,60684,60688,60692,60696,60700,60704,60708,60712,60716,60720,60724,60728,60732,60736,60740,60744,60748,60752,60756,60760,60764,60768,60772,60776,60780,60784,60788,60792,60796,60800,60804,60808,60812,60816,60820,60824,60828,60832,60836,60840,60844,60848,60852,60856,60860,60864,60868,60872,60876,60880,60884,60888,60892,60896,60900,60904,60908,60912,60916,60920,60924,60928,60932,60936,60940,60944,60948,60952,60956,60960,60964,60968,60972,60976,60980,60984,60988,60992,60996,61E3,61004,61008,61012,61016,61020,61024,61028,61032,61036,61040,61044,61048,61052,61056,61060,61064,61068,61072,61076,61080,61084,61088,61092,61096,61100,61104,61108,61112,61116,61120,61124,61128,61132,61136,61140,61144,61148,61152,61156,61160,61164,61168,61172,61176,61180,61184,61188,61192,61196,61200,61204,61208,61212,61216,61220,61224,61228,61232,61236,61240,61244,61248,61252,61256,61260,61264,61268,61272,61276,61280,61284,61288,61292,61296,61300,61304,61308,61312,61316,61320,61324,61328,61332,61336,61340,61344,61348,61352,61356,61360,61364,61368,61372,61376,61380,61384,61388,61392,61396,61400,61404,61408,61412,61416,61420,61424,61428,61432,61436,61440,61444,61448,61452,61456,61460,61464,61468,61472,61476,61480,61484,61488,61492,61496,61500,61504,61508,61512,61516,61520,61524,61528,61532,61536,61540,61544,61548,61552,61556,61560,61564,61568,61572,61576,61580,61584,61588,61592,61596,61600,61604,61608,61612,61616,61620,61624,61628,61632,61636,61640,61644,61648,61652,61656,61660,61664,61668,61672,61676,61680,61684,61688,61692,61696,61700,61704,61708,61712,61716,61720,61724,61728,61732,61736,61740,61744,61748,61752,61756,61760,61764,61768,61772,61776,61780,61784,61788,61792,61796,61800,61804,61808,61812,61816,61820,61824,61828,61832,61836,61840,61844,61848,61852,61856,61860,61864,61868,61872,61876,61880,61884,61888,61892,61896,61900,61904,61908,61912,61916,61920,61924,61928,61932,61936,61940,61944,61948,61952,61956,61960,61964,61968,61972,61976,61980,61984,61988,61992,61996,62E3,62004,62008,62012,62016,62020,62024,62028,62032,62036,62040,62044,62048,62052,62056,62060,62064,62068,62072,62076,62080,62084,62088,62092,62096,62100,62104,62108,62112,62116,62120,62124,62128,62132,62136,62140,62144,62148,62152,62156,62160,62164,62168,62172,62176,62180,62184,62188,62192,62196,62200,62204,62208,62212,62216,62220,62224,62228,62232,62236,62240,62244,62248,62252,62256,62260,62264,62268,62272,62276,62280,62284,62288,62292,62296,62300,62304,62308,62312,62316,62320,62324,62328,62332,62336,62340,62344,62348,62352,62356,62360,62364,62368,62372,62376,62380,62384,62388,62392,62396,62400,62404,62408,62412,62416,62420,62424,62428,62432,62436,62440,62444,62448,62452,62456,62460,62464,62468,62472,62476,62480,62484,62488,62492,62496,62500,62504,62508,62512,62516,62520,62524,62528,62532,62536,62540,62544,62548,62552,62556,62560,62564,62568,62572,62576,62580,62584,62588,62592,62596,62600,62604,62608,62612,62616,62620,62624,62628,62632,62636,62640,62644,62648,62652,62656,62660,62664,62668,62672,62676,62680,62684,62688,62692,62696,62700,62704,62708,62712,62716,62720,62724,62728,62732,62736,62740,62744,62748,62752,62756,62760,62764,62768,62772,62776,62780,62784,62788,62792,62796,62800,62804,62808,62812,62816,62820,62824,62828,62832,62836,62840,62844,62848,62852,62856,62860,62864,62868,62872,62876,62880,62884,62888,62892,62896,62900,62904,62908,62912,62916,62920,62924,62928,62932,62936,62940,62944,62948,62952,62956,62960,62964,62968,62972,62976,62980,62984,62988,62992,62996,63E3,63004,63008,63012,63016,63020,63024,63028,63032,63036,63040,63044,63048,63052,63056,63060,63064,63068,63072,63076,63080,63084,63088,63092,63096,63100,63104,63108,63112,63116,63120,63124,63128,63132,63136,63140,63144,63148,63152,63156,63160,63164,63168,63172,63176,63180,63184,63188,63192,63196,63200,63204,63208,63212,63216,63220,63224,63228,63232,63236,63240,63244,63248,63252,63256,63260,63264,63268,63272,63276,63280,63284,63288,63292,63296,63300,63304,63308,63312,63316,63320,63324,63328,63332,63336,63340,63344,63348,63352,63356,63360,63364,63368,63372,63376,63380,63384,63388,63392,63396,63400,63404,63408,63412,63416,63420,63424,63428,63432,63436,63440,63444,63448,63452,63456,63460,63464,63468,63472,63476,63480,63484,63488,63492,63496,63500,63504,63508,63512,63516,63520,63524,63528,63532,63536,63540,63544,63548,63552,63556,63560,63564,63568,63572,63576,63580,63584,63588,63592,63596,63600,63604,63608,63612,63616,63620,63624,63628,63632,63636,63640,63644,63648,63652,63656,63660,63664,63668,63672,63676,63680,63684,63688,63692,63696,63700,63704,63708,63712,63716,63720,63724,63728,63732,63736,63740,63744,63748,63752,63756,63760,63764,63768,63772,63776,63780,63784,63788,63792,63796,63800,63804,63808,63812,63816,63820,63824,63828,63832,63836,63840,63844,63848,63852,63856,63860,63864,63868,63872,63876,63880,63884,63888,63892,63896,63900,63904,63908,63912,63916,63920,63924,63928,63932,63936,63940,63944,63948,63952,63956,63960,63964,63968,63972,63976,63980,63984,63988,63992,63996,64E3,64004,64008,64012,64016,64020,64024,64028,64032,64036,64040,64044,64048,64052,64056,64060,64064,64068,64072,64076,64080,64084,64088,64092,64096,64100,64104,64108,64112,64116,64120,64124,64128,64132,64136,64140,64144,64148,64152,64156,64160,64164,64168,64172,64176,64180,64184,64188,64192,64196,64200,64204,64208,64212,64216,64220,64224,64228,64232,64236,64240,64244,64248,64252,64256,64260,64264,64268,64272,64276,64280,64284,64288,64292,64296,64300,64304,64308,64312,64316,64320,64324,64328,64332,64336,64340,64344,64348,64352,64356,64360,64364,64368,64372,64376,64380,64384,64388,64392,64396,64400,64404,64408,64412,64416,64420,64424,64428,64432,64436,64440,64444,64448,64452,64456,64460,64464,64468,64472,64476,64480,64484,64488,64492,64496,64500,64504,64508,64512,64516,64520,64524,64528,64532,64536,64540,64544,64548,64552,64556,64560,64564,64568,64572,64576,64580,64584,64588,64592,64596,64600,64604,64608,64612,64616,64620,64624,64628,64632,64636,64640,64644,64648,64652,64656,64660,64664,64668,64672,64676,64680,64684,64688,64692,64696,64700,64704,64708,64712,64716,64720,64724,64728,64732,64736,64740,64744,64748,64752,64756,64760,64764,64768,64772,64776,64780,64784,64788,64792,64796,64800,64804,64808,64812,64816,64820,64824,64828,64832,64836,64840,64844,64848,64852,64856,64860,64864,64868,64872,64876,64880,64884,64888,64892,64896,64900,64904,64908,64912,64916,64920,64924,64928,64932,64936,64940,64944,64948,64952,64956,64960,64964,64968,64972,64976,64980,64984,64988,64992,64996,65E3,65004,65008,65012,65016,65020,65024,65028,65032,65036,65040,65044,65048,65052,65056,65060,65064,65068,65072,65076,65080,65084,65088,65092,65096,65100,65104,65108,65112,65116,65120,65124,65128,65132,65136,65140,65144,65148,65152,65156,65160,65164,65168,65172,65176,65180,65184,65188,65192,65196,65200,65204,65208,65212,65216,65220,65224,65228,65232,65236,65240,65244,65248,65252,65256,65260,65264,65268,65272,65276,65280,65284,65288,65292,65296,65300,65304,65308,65312,65316,65320,65324,65328,65332,65336,65340,65344,65348,65352,65356,65360,65364,65368,65372,65376,65380,65384,65388,65392,65396,65400,65404,65408,65412,65416,65420,65424,65428,65432,65436,65440,65444,65448,65452,65456,65460,65464,65468,65472,65476,65480,65484,65488,65492,65496,65500,65504,65508,65512,65516,65520,65524,65528,65532,65536,65540,65544,65548,65552,65556,65560,65564,65568,65572,65576,65580,65584,65588,65592,65596,65600,65604,65608,65612,65616,65620,65624,65628,65632,65636,65640,65644,65648,65652,65656,65660,65664,65668,65672,65676,65680,65684,65688,65692,65696,65700,65704,65708,65712,65716,65720,65724,65728,65732,65736,65740,65744,65748,65752,65756,65760,65764,65768,65772,65776,65780,65784,65788,65792,65796,65800,65804,65808,65812,65816,65820,65824,65828,65832,65836,65840,65844,65848,65852,65856,65860,65864,65868,65872,65876,65880,65884,65888,65892,65896,65900,65904,65908,65912,65916,65920,65924,65928,65932,65936,65940,65944,65948,65952,65956,65960,65964,65968,65972,65976,65980,65984,65988,65992,65996,66E3,66004,66008,66012,66016,66020,66024,66028,66032,66036,66040,66044,66048,66052,66056,66060,66064,66068,66072,66076,66080,66084,66088,66092,66096,66100,66104,66108,66112,66116,66120,66124,66128,66132,66136,66140,66144,66148,66152,66156,66160,66164,66168,66172,66176,66180,66184,66188,66192,66196,66200,66204,66208,66212,66216,66220,66224,66228,66232,66236,66240,66244,66248,66252,66256,66260,66264,66268,66272,66276,66280,66284,66288,66292,66296,66300,66304,66308,66312,66316,66320,66324,66328,66332,66336,66340,66344,66348,66352,66356,66360,66364,66368,66372,66376,66380,66384,66388,66392,66396,66400,66404,66408,66412,66416,66420,66424,66428,66432,66436,66440,66444,66448,66452,66456,66460,66464,66468,66472,66476,66480,66484,66488,66492,66496,66500,66504,66508,66512,66516,66520,66524,66528,66532,66536,66540,66544,66548,66552,66556,66560,66564,66568,66572,66576,66580,66584,66588,66592,66596,66600,66604,66608,66612,66616,66620,66624,66628,66632,66636,66640,66644,66648,66652,66656,66660,66664,66668,66672,66676,66680,66684,66688,66692,66696,66700,66704,66708,66712,66716,66720,66724,66728,66732,66736,66740,66744,66748,66752,66756,66760,66764,66768,66772,66776,66780,66784,66788,66792,66796,66800,66804,66808,66812,66816,66820,66824,66828,66832,66836,66840,66844,66848,66852,66856,66860,66864,66868,66872,66876,66880,66884,66888,66892,66896,66900,66904,66908,66912,66916,66920,66924,66928,66932,66936,66940,66944,66948,66952,66956,66960,66964,66968,66972,66976,66980,66984,66988,66992,66996,67E3,67004,67008,67012,67016,67020,67024,67028,67032,67036,67040,67044,67048,67052,67056,67060,67064,67068,67072,67076,67080,67084,67088,67092,67096,67100,67104,67108,67112,67116,67120,67124,67128,67132,67136,67140,67144,67148,67152,67156,67160,67164,67168,67172,67176,67180,67184,67188,67192,67196,67200,67204,67208,67212,67216,67220,67224,67228,67232,67236,67240,67244,67248,67252,67256,67260,67264,67268,67272,67276,67280,67284,67288,67292,67296,67300,67304,67308,67312,67316,67320,67324,67328,67332,67336,67340,67344,67348,67352,67356,67360,67364,67368,67372,67376,67380,67384,67388,67392,67396,67400,67404,67408,67412,67416,67420,67424,67428,67432,67436,67440,67444,67448,67452,67456,67460,67464,67468,67472,67476,67480,67484,67488,67492,67496,67500,67504,67508,67512,67516,67520,67524,67528,67532,67536,67540,67544,67548,67552,67556,67560,67564,67568,67572,67576,67580,67584,67588,67592,67596,67600,67604,67608,67612,67616,67620,67624,67628,67632,67636,67640,67644,67648,67652,67656,67660,67664,67668,67672,67676,67680,67684,67688,67692,67696,67700,67704,67708,67712,67716,67720,67724,67728,67732,67736,67740,67744,67748,67752,67756,67760,67764,67768,67772,67776,67780,67784,67788,67792,67796,67800,67804,67808,67812,67816,67820,67824,67828,67832,67836,67840,67844,67848,67852,67856,67860,67864,67868,67872,67876,67880,67884,67888,67892,67896,67900,67904,67908,67912,67916,67920,67924,67928,67932,67936,67940,67944,67948,67952,67956,67960,67964,67968,67972,67976,67980,67984,67988,67992,67996,68E3,68004,68008,68012,68016,68020,68024,68028,68032,68036,68040,68044,68048,68052,68056,68060,68064,68068,68072,68076,68080,68084,68088,68092,68096,68100,68104,68108,68112,68116,68120,68124,68128,68132,68136,68140,68144,68148,68152,68156,68160,68164,68168,68172,68176,68180,68184,68188,68192,68196,68200,68204,68208,68212,68216,68220,68224,68228,68232,68236,68240,68244,68248,68252,68256,68260,68264,68268,68272,68276,68280,68284,68288,68292,68296,68300,68304,68308,68312,68316,68320,68324,68328,68332,68336,68340,68344,68348,68352,68356,68360,68364,68368,68372,68376,68380,68384,68388,68392,68396,68400,68404,68408,68412,68416,68420,68424,68428,68432,68436,68440,68444,68448,68452,68456,68460,68464,68468,68472,68476,68480,68484,68488,68492,68496,68500,68504,68508,68512,68516,68520,68524,68528,68532,68536,68540,68544,68548,68552,68556,68560,68564,68568,68572,68576,68580,68584,68588,68592,68596,68600,68604,68608,68612,68616,68620,68624,68628,68632,68636,68640,68644,68648,68652,68656,68660,68664,68668,68672,68676,68680,68684,68688,68692,68696,68700,68704,68708,68712,68716,68720,68724,68728,68732,68736,68740,68744,68748,68752,68756,68760,68764,68768,68772,68776,68780,68784,68788,68792,68796,68800,68804,68808,68812,68816,68820,68824,68828,68832,68836,68840,68844,68848,68852,68856,68860,68864,68868,68872,68876,68880,68884,68888,68892,68896,68900,68904,68908,68912,68916,68920,68924,68928,68932,68936,68940,68944,68948,68952,68956,68960,68964,68968,68972,68976,68980,68984,68988,68992,68996,69E3,69004,69008,69012,69016,69020,69024,69028,69032,69036,69040,69044,69048,69052,69056,69060,69064,69068,69072,69076,69080,69084,69088,69092,69096,69100,69104,69108,69112,69116,69120,69124,69128,69132,69136,69140,69144,69148,69152,69156,69160,69164,69168,69172,69176,69180,69184,69188,69192,69196,69200,69204,69208,69212,69216,69220,69224,69228,69232,69236,69240,69244,69248,69252,69256,69260,69264,69268,69272,69276,69280,69284,69288,69292,69296,69300,69304,69308,69312,69316,69320,69324,69328,69332,69336,69340,69344,69348,69352,69356,69360,69364,69368,69372,69376,69380,69384,69388,69392,69396,69400,69404,69408,69412,69416,69420,69424,69428,69432,69436,69440,69444,69448,69452,69456,69460,69464,69468,69472,69476,69480,69484,69488,69492,69496,69500,69504,69508,69512,69516,69520,69524,69528,69532,69536,69540,69544,69548,69552,69556,69560,69564,69568,69572,69576,69580,69584,69588,69592,69596,69600,69604,69608,69612,69616,69620,69624,69628,69632,69636,69640,69644,69648,69652,69656,69660,69664,69668,69672,69676,69680,69684,69688,69692,69696,69700,69704,69708,69712,69716,69720,69724,69728,69732,69736,69740,69744,69748,69752,69756,69760,69764,69768,69772,69776,69780,69784,69788,69792,69796,69800,69804,69808,69812,69816,69820,69824,69828,69832,69836,69840,69844,69848,69852,69856,69860,69864,69868,69872,69876,69880,69884,69888,69892,69896,69900,69904,69908,69912,69916,69920,69924,69928,69932,69936,69940,69944,69948,69952,69956,69960,69964,69968,69972,69976,69980,69984,69988,69992,69996,7E4,70004,70008,70012,70016,70020,70024,70028,70032,70036,70040,70044,70048,70052,70056,70060,70064,70068,70072,70076,70080,70084,70088,70092,70096,70100,70104,70108,70112,70116,70120,70124,70128,70132,70136,70140,70144,70148,70152,70156,70160,70164,70168,70172,70176,70180,70184,70188,70192,70196,70200,70204,70208,70212,70216,70220,70224,70228,70232,70236,70240,70244,70248,70252,70256,70260,70264,70268,70272,70276,70280,70284,70288,70292,70296,70300,70304,70308,70312,70316,70320,70324,70328,70332,70336,70340,70344,70348,70352,70356,70360,70364,70368,70372,70376,70380,70384,70388,70392,70396,70400,70404,70408,70412,70416,70420,70424,70428,70432,70436,70440,70444,70448,70452,70456,70460,70464,70468,70472,70476,70480,70484,70488,70492,70496,70500,70504,70508,70512,70516,70520,70524,70528,70532,70536,70540,70544,70548,70552,70556,70560,70564,70568,70572,70576,70580,70584,70588,70592,70596,70600,70604,70608,70612,70616,70620,70624,70628,70632,70636,70640,70644,70648,70652,70656,70660,70664,70668,70672,70676,70680,70684,70688,70692,70696,70700,70704,70708,70712,70716,70720,70724,70728,70732,70736,70740,70744,70748,70752,70756,70760,70764,70768,70772,70776,70780,70784,70788,70792,70796,70800,70804,70808,70812,70816,70820,70824,70828,70832,70836,70840,70844,70848,70852,70856,70860,70864,70868,70872,70876,70880,70884,70888,70892,70896,70900,70904,70908,70912,70916,70920,70924,70928,70932,70936,70940,70944,70948,70952,70956,70960,70964,70968,70972,70976,70980,70984,70988,70992,70996,71E3,71004,71008,71012,71016,71020,71024,71028,71032,71036,71040,71044,71048,71052,71056,71060,71064,71068,71072,71076,71080,71084,71088,71092,71096,71100,71104,71108,71112,71116,71120,71124,71128,71132,71136,71140,71144,71148,71152,71156,71160,71164,71168,71172,71176,71180,71184,71188,71192,71196,71200,71204,71208,71212,71216,71220,71224,71228,71232,71236,71240,71244,71248,71252,71256,71260,71264,71268,71272,71276,71280,71284,71288,71292,71296,71300,71304,71308,71312,71316,71320,71324,71328,71332,71336,71340,71344,71348,71352,71356,71360,71364,71368,71372,71376,71380,71384,71388,71392,71396,71400,71404,71408,71412,71416,71420,71424,71428,71432,71436,71440,71444,71448,71452,71456,71460,71464,71468,71472,71476,71480,71484,71488,71492,71496,71500,71504,71508,71512,71516,71520,71524,71528,71532,71536,71540,71544,71548,71552,71556,71560,71564,71568,71572,71576,71580,71584,71588,71592,71596,71600,71604,71608,71612,71616,71620,71624,71628,71632,71636,71640,71644,71648,71652,71656,71660,71664,71668,71672,71676,71680,71684,71688,71692,71696,71700,71704,71708,71712,71716,71720,71724,71728,71732,71736,71740,71744,71748,71752,71756,71760,71764,71768,71772,71776,71780,71784,71788,71792,71796,71800,71804,71808,71812,71816,71820,71824,71828,71832,71836,71840,71844,71848,71852,71856,71860,71864,71868,71872,71876,71880,71884,71888,71892,71896,71900,71904,71908,71912,71916,71920,71924,71928,71932,71936,71940,71944,71948,71952,71956,71960,71964,71968,71972,71976,71980,71984,71988,71992,71996,72E3,72004,72008,72012,72016,72020,72024,72028,72032,72036,72040,72044,72048,72052,72056,72060,72064,72068,72072,72076,72080,72084,72088,72092,72096,72100,72104,72108,72112,72116,72120,72124,72128,72132,72136,72140,72144,72148,72152,72156,72160,72164,72168,72172,72176,72180,72184,72188,72192,72196,72200,72204,72208,72212,72216,72220,72224,72228,72232,72236,72240,72244,72248,72252,72256,72260,72264,72268,72272,72276,72280,72284,72288,72292,72296,72300,72304,72308,72312,72316,72320,72324,72328,72332,72336,72340,72344,72348,72352,72356,72360,72364,72368,72372,72376,72380,72384,72388,72392,72396,72400,72404,72408,72412,72416,72420,72424,72428,72432,72436,72440,72444,72448,72452,72456,72460,72464,72468,72472,72476,72480,72484,72488,72492,72496,72500,72504,72508,72512,72516,72520,72524,72528,72532,72536,72540,72544,72548,72552,72556,72560,72564,72568,72572,72576,72580,72584,72588,72592,72596,72600,72604,72608,72612,72616,72620,72624,72628,72632,72636,72640,72644,72648,72652,72656,72660,72664,72668,72672,72676,72680,72684,72688,72692,72696,72700,72704,72708,72712,72716,72720,72724,72728,72732,72736,72740,72744,72748,72752,72756,72760,72764,72768,72772,72776,72780,72784,72788,72792,72796,72800,72804,72808,72812,72816,72820,72824,72828,72832,72836,72840,72844,72848,72852,72856,72860,72864,72868,72872,72876,72880,72884,72888,72892,72896,72900,72904,72908,72912,72916,72920,72924,72928,72932,72936,72940,72944,72948,72952,72956,72960,72964,72968,72972,72976,72980,72984,72988,72992,72996,73E3,73004,73008,73012,73016,73020,73024,73028,73032,73036,73040,73044,73048,73052,73056,73060,73064,73068,73072,73076,73080,73084,73088,73092,73096,73100,73104,73108,73112,73116,73120,73124,73128,73132,73136,73140,73144,73148,73152,73156,73160,73164,73168,73172,73176,73180,73184,73188,73192,73196,73200,73204,73208,73212,73216,73220,73224,73228,73232,73236,73240,73244,73248,73252,73256,73260,73264,73268,73272,73276,73280,73284,73288,73292,73296,73300,73304,73308,73312,73316,73320,73324,73328,73332,73336,73340,73344,73348,73352,73356,73360,73364,73368,73372,73376,73380,73384,73388,73392,73396,73400,73404,73408,73412,73416,73420,73424,73428,73432,73436,73440,73444,73448,73452,73456,73460,73464,73468,73472,73476,73480,73484,73488,73492,73496,73500,73504,73508,73512,73516,73520,73524,73528,73532,73536,73540,73544,73548,73552,73556,73560,73564,73568,73572,73576,73580,73584,73588,73592,73596,73600,73604,73608,73612,73616,73620,73624,73628,73632,73636,73640,73644,73648,73652,73656,73660,73664,73668,73672,73676,73680,73684,73688,73692,73696,73700,73704,73708,73712,73716,73720,73724,73728,73732,73736,73740,73744,73748,73752,73756,73760,73764,73768,73772,73776,73780,73784,73788,73792,73796,73800,73804,73808,73812,73816,73820,73824,73828,73832,73836,73840,73844,73848,73852,73856,73860,73864,73868,73872,73876,73880,73884,73888,73892,73896,73900,73904,73908,73912,73916,73920,73924,73928,73932,73936,73940,73944,73948,73952,73956,73960,73964,73968,73972,73976,73980,73984,73988,73992,73996,74E3,74004,74008,74012,74016,74020,74024,74028,74032,74036,74040,74044,74048,74052,74056,74060,74064,74068,74072,74076,74080,74084,74088,74092,74096,74100,74104,74108,74112,74116,74120,74124,74128,74132,74136,74140,74144,74148,74152,74156,74160,74164,74168,74172,74176,74180,74184,74188,74192,74196,74200,74204,74208,74212,74216,74220,74224,74228,74232,74236,74240,74244,74248,74252,74256,74260,74264,74268,74272,74276,74280,74284,74288,74292,74296,74300,74304,74308,74312,74316,74320,74324,74328,74332,74336,74340,74344,74348,74352,74356,74360,74364,74368,74372,74376,74380,74384,74388,74392,74396,74400,74404,74408,74412,74416,74420,74424,74428,74432,74436,74440,74444,74448,74452,74456,74460,74464,74468,74472,74476,74480,74484,74488,74492,74496,74500,74504,74508,74512,74516,74520,74524,74528,74532,74536,74540,74544,74548,74552,74556,74560,74564,74568,74572,74576,74580,74584,74588,74592,74596,74600,74604,74608,74612,74616,74620,74624,74628,74632,74636,74640,74644,74648,74652,74656,74660,74664,74668,74672,74676,74680,74684,74688,74692,74696,74700,74704,74708,74712,74716,74720,74724,74728,74732,74736,74740,74744,74748,74752,74756,74760,74764,74768,74772,74776,74780,74784,74788,74792,74796,74800,74804,74808,74812,74816,74820,74824,74828,74832,74836,74840,74844,74848,74852,74856,74860,74864,74868,74872,74876,74880,74884,74888,74892,74896,74900,74904,74908,74912,74916,74920,74924,74928,74932,74936,74940,74944,74948,74952,74956,74960,74964,74968,74972,74976,74980,74984,74988,74992,74996,75E3,75004,75008,75012,75016,75020,75024,75028,75032,75036,75040,75044,75048,75052,75056,75060,75064,75068,75072,75076,75080,75084,75088,75092,75096,75100,75104,75108,75112,75116,75120,75124,75128,75132,75136,75140,75144,75148,75152,75156,75160,75164,75168,75172,75176,75180,75184,75188,75192,75196,75200,75204,75208,75212,75216,75220,75224,75228,75232,75236,75240,75244,75248,75252,75256,75260,75264,75268,75272,75276,75280,75284,75288,75292,75296,75300,75304,75308,75312,75316,75320,75324,75328,75332,75336,75340,75344,75348,75352,75356,75360,75364,75368,75372,75376,75380,75384,75388,75392,75396,75400,75404,75408,75412,75416,75420,75424,75428,75432,75436,75440,75444,75448,75452,75456,75460,75464,75468,75472,75476,75480,75484,75488,75492,75496,75500,75504,75508,75512,75516,75520,75524,75528,75532,75536,75540,75544,75548,75552,75556,75560,75564,75568,75572,75576,75580,75584,75588,75592,75596,75600,75604,75608,75612,75616,75620,75624,75628,75632,75636,75640,75644,75648,75652,75656,75660,75664,75668,75672,75676,75680,75684,75688,75692,75696,75700,75704,75708,75712,75716,75720,75724,75728,75732,75736,75740,75744,75748,75752,75756,75760,75764,75768,75772,75776,75780,75784,75788,75792,75796,75800,75804,75808,75812,75816,75820,75824,75828,75832,75836,75840,75844,75848,75852,75856,75860,75864,75868,75872,75876,75880,75884,75888,75892,75896,75900,75904,75908,75912,75916,75920,75924,75928,75932,75936,75940,75944,75948,75952,75956,75960,75964,75968,75972,75976,75980,75984,75988,75992,75996,76E3,76004,76008,76012,76016,76020,76024,76028,76032,76036,76040,76044,76048,76052,76056,76060,76064,76068,76072,76076,76080,76084,76088,76092,76096,76100,76104,76108,76112,76116,76120,76124,76128,76132,76136,76140,76144,76148,76152,76156,76160,76164,76168,76172,76176,76180,76184,76188,76192,76196,76200,76204,76208,76212,76216,76220,76224,76228,76232,76236,76240,76244,76248,76252,76256,76260,76264,76268,76272,76276,76280,76284,76288,76292,76296,76300,76304,76308,76312,76316,76320,76324,76328,76332,76336,76340,76344,76348,76352,76356,76360,76364,76368,76372,76376,76380,76384,76388,76392,76396,76400,76404,76408,76412,76416,76420,76424,76428,76432,76436,76440,76444,76448,76452,76456,76460,76464,76468,76472,76476,76480,76484,76488,76492,76496,76500,76504,76508,76512,76516,76520,76524,76528,76532,76536,76540,76544,76548,76552,76556,76560,76564,76568,76572,76576,76580,76584,76588,76592,76596,76600,76604,76608,76612,76616,76620,76624,76628,76632,76636,76640,76644,76648,76652,76656,76660,76664,76668,76672,76676,76680,76684,76688,76692,76696,76700,76704,76708,76712,76716,76720,76724,76728,76732,76736,76740,76744,76748,76752,76756,76760,76764,76768,76772,76776,76780,76784,76788,76792,76796,76800,76804,76808,76812,76816,76820,76824,76828,76832,76836,76840,76844,76848,76852,76856,76860,76864,76868,76872,76876,76880,76884,76888,76892,76896,76900,76904,76908,76912,76916,76920,76924,76928,76932,76936,76940,76944,76948,76952,76956,76960,76964,76968,76972,76976,76980,76984,76988,76992,76996,77E3,77004,77008,77012,77016,77020,77024,77028,77032,77036,77040,77044,77048,77052,77056,77060,77064,77068,77072,77076,77080,77084,77088,77092,77096,77100,77104,77108,77112,77116,77120,77124,77128,77132,77136,77140,77144,77148,77152,77156,77160,77164,77168,77172,77176,77180,77184,77188,77192,77196,77200,77204,77208,77212,77216,77220,77224,77228,77232,77236,77240,77244,77248,77252,77256,77260,77264,77268,77272,77276,77280,77284,77288,77292,77296,77300,77304,77308,77312,77316,77320,77324,77328,77332,77336,77340,77344,77348,77352,77356,77360,77364,77368,77372,77376,77380,77384,77388,77392,77396,77400,77404,77408,77412,77416,77420,77424,77428,77432,77436,77440,77444,77448,77452,77456,77460,77464,77468,77472,77476,77480,77484,77488,77492,77496,77500,77504,77508,77512,77516,77520,77524,77528,77532,77536,77540,77544,77548,77552,77556,77560,77564,77568,77572,77576,77580,77584,77588,77592,77596,77600,77604,77608,77612,77616,77620,77624,77628,77632,77636,77640,77644,77648,77652,77656,77660,77664,77668,77672,77676,77680,77684,77688,77692,77696,77700,77704,77708,77712,77716,77720,77724,77728,77732,77736,77740,77744,77748,77752,77756,77760,77764,77768,77772,77776,77780,77784,77788,77792,77796,77800,77804,77808,77812,77816,77820,77824,77828,77832,77836,77840,77844,77848,77852,77856,77860,77864,77868,77872,77876,77880,77884,77888,77892,77896,77900,77904,77908,77912,77916,77920,77924,77928,77932,77936,77940,77944,77948,77952,77956,77960,77964,77968,77972,77976,77980,77984,77988,77992,77996,78E3,78004,78008,78012,78016,78020,78024,78028,78032,78036,78040,78044,78048,78052,78056,78060,78064,78068,78072,78076,78080,78084,78088,78092,78096,78100,78104,78108,78112,78116,78120,78124,78128,78132,78136,78140,78144,78148,78152,78156,78160,78164,78168,78172,78176,78180,78184,78188,78192,78196,78200,78204,78208,78212,78216,78220,78224,78228,78232,78236,78240,78244,78248,78252,78256,78260,78264,78268,78272,78276,78280,78284,78288,78292,78296,78300,78304,78308,78312,78316,78320,78324,78328,78332,78336,78340,78344,78348,78352,78356,78360,78364,78368,78372,78376,78380,78384,78388,78392,78396,78400,78404,78408,78412,78416,78420,78424,78428,78432,78436,78440,78444,78448,78452,78456,78460,78464,78468,78472,78476,78480,78484,78488,78492,78496,78500,78504,78508,78512,78516,78520,78524,78528,78532,78536,78540,78544,78548,78552,78556,78560,78564,78568,78572,78576,78580,78584,78588,78592,78596,78600,78604,78608,78612,78616,78620,78624,78628,78632,78636,78640,78644,78648,78652,78656,78660,78664,78668,78672,78676,78680,78684,78688,78692,78696,78700,78704,78708,78712,78716,78720,78724,78728,78732,78736,78740,78744,78748,78752,78756,78760,78764,78768,78772,78776,78780,78784,78788,78792,78796,78800,78804,78808,78812,78816,78820,78824,78828,78832,78836,78840,78844,78848,78852,78856,78860,78864,78868,78872,78876,78880,78884,78888,78892,78896,78900,78904,78908,78912,78916,78920,78924,78928,78932,78936,78940,78944,78948,78952,78956,78960,78964,78968,78972,78976,78980,78984,78988,78992,78996,79E3,79004,79008,79012,79016,79020,79024,79028,79032,79036,79040,79044,79048,79052,79056,79060,79064,79068,79072,79076,79080,79084,79088,79092,79096,79100,79104,79108,79112,79116,79120,79124,79128,79132,79136,79140,79144,79148,79152,79156,79160,79164,79168,79172,79176,79180,79184,79188,79192,79196,79200,79204,79208,79212,79216,79220,79224,79228,79232,79236,79240,79244,79248,79252,79256,79260,79264,79268,79272,79276,79280,79284,79288,79292,79296,79300,79304,79308,79312,79316,79320,79324,79328,79332,79336,79340,79344,79348,79352,79356,79360,79364,79368,79372,79376,79380,79384,79388,79392,79396,79400,79404,79408,79412,79416,79420,79424,79428,79432,79436,79440,79444,79448,79452,79456,79460,79464,79468,79472,79476,79480,79484,79488,79492,79496,79500,79504,79508,79512,79516,79520,79524,79528,79532,79536,79540,79544,79548,79552,79556,79560,79564,79568,79572,79576,79580,79584,79588,79592,79596,79600,79604,79608,79612,79616,79620,79624,79628,79632,79636,79640,79644,79648,79652,79656,79660,79664,79668,79672,79676,79680,79684,79688,79692,79696,79700,79704,79708,79712,79716,79721,79726,79731,79736,79741,79746,79751,79756,79761,79766,79771,79776,79781,79786,79791,79796,79801,79806,79811,79816,79821,79826,79831,79836,79841,79846,79851,79856,79861,79866,79871,79876,79881,79886,79891,79896,79901,79906,79911,79916,79921,79926,79931,79936,79941,79946,79951,79956,79961,79966,79971,79976,79981,79986,79991,79996,80001,80006,80011,80016,80021,80026,80031,80036,80041,80046,80051,80056,80061,80066,80071,80076,80081,80086,80091,80096,80101,80106,80111,80116,80121,80126,80131,80136,80141,80146,80151,80157,80163,80169,80175,80181,80187,80193,80199,80205,80211,80217,80223,80229,80235,80241,80247,80253,80259,80265,80271,80277,80283,80289,80295,80301,80307,80313,80319,80325,80331,80337,80343,80349,80355,80361,80367,80373,80379,80385,80391,80397,80403,80410,80417,80424,80431,80438,80445,80452,80459,80466,80473,80480,80487,80494,80501,80508,80515,80522,80529,80536,80543,80550,80557,80564,80571,80578,80585,80592,80599,80606,80613,80620,80627,80634,80641,80648,80655,80662,80669,80676,80683,80690,80697,80704,80711,80718,80725,80732,80739,80746,80753,80760,80767,80774,80781,80788,80795,80802,80809,80816,80824,80832,80840,80848,80856,80864,80872,80880,80888,80896,80904,80912,80921,80930,80932],C=[9,1485,2507,59,1001,2593,99,3519,1837,485,2849,1141,509,265,717,531,853,717,531,3015,2651,531,3519,3175,589,3001,831,771,3519,173,771,3519,1161,771,3519,1625,829,1437,2835,1607,3203,177,1763,1455,3001,1769,1105,1105,1891,3507,1483,1891,3507,3241,1953,295,3455,2569,3519,3015,2565,511,805,2623,3399,2531,3025,3011,2299,3433,2835,2981,9,1415,181,2355,9,1415,181,3241,25,1811,193,3453,63,2581,3015,3487,67,79,777,333,67,193,539,3189,75,75,1415,1415,131,3433,3143,831,131,1827,2295,3185,193,539,193,3415,193,539,2355,3519,193,571,511,3127,193,1161,2791,2371,193,2245,2563,1141,193,2621,1009,731,209,511,1827,3219,209,511,1827,3219,319,3285,397,3487,329,1803,2245,347,333,65,3055,757,379,377,1197,2867,379,377,2593,2845,379,377,2593,2845,379,377,3241,1785,379,2395,2969,1165,431,781,3189,645,513,887,3577,3189,513,885,3577,3189,511,3127,1265,3519,511,3127,3429,2743,519,847,1687,3519,547,3199,2933,965,581,1389,3187,3105,579,1483,3507,1783,593,547,3189,295,631,681,2985,229,627,2393,225,2515,627,1161,3415,1187,627,3437,1323,2261,643,2593,3435,3519,647,3425,1013,3105,687,2581,3015,2261,725,193,539,3559,757,757,2749,2749,771,3519,3275,1183,781,745,3187,3105,781,1315,3187,3105,801,3231,1531,1153,831,1197,359,2791,847,2835,511,1653,847,2835,1171,3379,847,3319,3429,3015,907,427,3277,2529,935,2259,1661,1661,951,1239,899,2553,951,1239,2553,1785,951,1239,3501,2553,961,2969,1927,2371,1009,731,2651,2675,1009,1039,53,1069,1013,689,193,2825,1013,2185,2511,3185,1033,985,1827,2785,1059,2559,3023,3519,1067,1623,75,2111,1067,1623,2881,3313,1081,1153,3429,1891,1115,193,539,379,1131,799,3015,2559,1131,799,3015,3189,1145,805,1021,731,1155,295,1485,655,1155,295,1485,655,1161,2311,3379,1633,1161,2709,193,1161,1181,2259,831,3239,1181,2259,2565,1687,1181,2259,2565,3347,1181,2259,3407,2971,1181,2715,2563,577,1191,2355,1827,553,1201,3015,3239,2565,1201,3015,3239,3205,1201,3015,3239,3407,1197,2867,379,377,1197,2867,3025,295,1239,2581,3015,2261,1279,1081,1187,2563,1343,1181,431,781,1343,1181,781,2259,1343,1181,2559,781,1351,3437,3577,1455,1415,2999,2447,1713,1475,2631,1183,2835,1485,247,933,1393,1499,2559,2147,2985,1531,1827,193,131,1531,1827,2969,2531,1607,1977,1047,1827,1653,2395,1077,2507,1661,1661,3015,2831,1671,193,3283,1073,1685,731,193,2621,1685,731,547,2589,1685,731,2659,2323,1685,731,2659,2323,1711,1313,3379,1633,1725,1725,2981,3241,1771,3437,3453,613,1793,323,1723,1173,1803,2835,1803,1851,1803,193,1161,1187,1803,1337,3237,3519,1891,571,1081,1153,1915,3375,3435,3519,2017,2631,3015,3189,2049,1703,1021,731,2099,3237,115,1771,2115,2115,1891,2523,2147,2181,3423,3087,2147,2187,2881,2559,2147,2631,3015,775,2157,2157,1655,1655,2159,1205,3433,1019,2191,717,1449,2523,2211,2215,801,1019,2211,2215,801,1113,2215,831,2427,3429,2221,895,3189,1337,2245,505,3507,1783,2245,2549,2779,1113,2245,3437,3165,983,2259,761,553,3187,2355,3437,2569,3519,2359,1263,193,3453,2371,3437,1173,3321,2397,365,2935,373,2443,105,1173,1827,2507,3199,333,3055,2513,193,539,887,2511,539,3105,927,2523,1891,1449,333,2549,3429,3507,1161,2549,3437,1323,2261,2543,177,2791,1173,2563,1419,3267,3477,2565,717,193,1161,2565,761,553,2569,2565,539,2185,359,2565,539,2185,2563,2581,2549,771,1481,2589,519,1187,731,2589,731,781,181,2631,965,931,2835,2635,2791,3209,2563,2691,3045,3209,2581,2791,1891,193,2691,2791,2723,1597,1729,2791,2923,1449,3519,2795,931,193,771,2809,77,3189,1365,2825,365,3119,2791,2835,847,2835,581,2847,1387,3145,1661,2847,2651,3145,1661,2891,1309,1201,285,2917,3477,3233,3153,2915,805,193,539,2923,961,511,805,2925,781,3013,3209,2937,511,1827,597,2943,193,661,2775,2943,2973,267,2565,2943,781,3013,3209,2969,1165,631,2991,2969,1165,1313,333,2969,1165,1313,2647,2969,2515,511,3127,2973,907,511,805,2973,1001,59,3577,2973,1001,173,2991,2973,2471,3015,3101,2973,653,3479,1039,2983,1969,19,1455,2995,3519,1789,3011,3015,2559,3015,333,3015,2559,3015,1311,3011,2511,3189,1597,3011,3045,339,3185,3023,3519,1059,2559,3045,1343,3015,3209,3045,2581,3015,2925,3065,3231,1531,1153,3065,3437,1153,177,3065,3437,1531,1153,3115,1097,3577,1455,3143,349,1013,689,3145,3519,2999,2563,3189,79,1161,2563,3189,79,2969,719,3189,129,3519,1117,3189,133,1787,2491,3189,591,75,591,3189,591,1541,2985,3189,591,3189,581,3189,613,193,3183,3189,613,193,3185,3189,613,3429,951,3189,853,75,853,3189,1597,781,323,3189,1597,781,2265,3189,1597,799,3055,3189,1597,1131,2471,3189,1597,2147,29,3189,1597,2635,781,3189,1803,2973,1001,3189,1891,3189,645,3189,2245,2915,2971,3189,2565,3189,3155,3189,2791,3055,637,3189,2791,3189,577,3189,2969,2709,553,3189,3045,3189,1597,3189,3577,3189,2189,3189,935,377,377,3189,935,2249,2579,3189,935,2849,3025,3189,935,3025,1205,3187,1485,247,985,3187,3105,1087,581,3187,3105,1389,581,3187,3105,3517,781,3185,3013,193,545,3185,3055,2709,2323,3199,887,1153,2651,3197,1653,295,1173,3209,3059,113,2471,3223,2375,511,3127,3221,2969,1927,2371,3233,1721,3189,935,3231,961,1827,2835,3229,2427,3189,853,3237,2631,3015,1097,3237,1455,295,2709,3267,3477,2563,1419,3287,1827,2549,3433,3283,1187,1827,2753,3295,1703,1351,1499,3389,1151,193,3453,3417,2185,1077,3189,3423,1209,2945,1827,3425,553,2187,3203,3457,3143,1021,731,3495,1097,3577,1455,3541,2715,2563,577,3559,3231,3209,553,3559,3319,1827,2753,9,1415,181,75,547,9,1415,181,2589,3517,589,2565,2981,1523,2111,847,3185,93,3265,2791,1161,2971,193,1161,2355,1253,1201,193,1161,2355,2491,2355,193,1161,3033,2565,1059,3457,851,1505,3147,193,1161,2933,1205,3231,2791,1703,2371,2835,3561,1165,2529,2835,1365,9,721,107,2651,2507,1661,193,571,511,3127,3429,2743,1145,527,1485,3387,907,2835,1605,427,193,661,1653,3561,1605,2835,193,661,1653,3561,2549,2581,193,1161,2973,3427,2915,805,193,539,3429,3221,2975,2835,63,1653,2559,1181,3189,193,3189,853,1181,3195,193,1161,935,209,193,2991,1463,193,1873,571,511,3127,3429,2743,193,2565,3253,1155,193,1237,2835,2543,1575,1161,2581,193,1161,2937,2791,2991,2975,3129,3189,79,1027,3045,3231,1541,2985,3189,591,2831,3189,853,59,3377,2035,193,3013,3433,2355,2563,275,1133,3145,847,2649,3457,851,1873,3535,2559,3433,509,2649,3457,851,2991,3535,2559,3433,509,3577,3189,2371,1019,2511,3483,3189,2791,3437,3577,3189,2791,1019,2511,3483,3189,2791,3437,9,637,9,761,9,887,9,1415,9,2111,19,441,19,857,19,1353,19,2187,19,2245,19,2515,19,2827,19,3519,13,139,17,2355,17,3023,17,3055,17,3519,15,339,15,961,15,1019,15,1069,15,1803,15,2259,15,2355,15,3045,15,3519,15,1343,15,1343,15,2565,15,2581,29,29,29,613,29,669,29,747,29,961,29,1013,29,1155,29,1163,29,1241,29,1415,29,1455,29,1739,29,1763,29,2029,29,2147,29,2299,29,2511,29,2549,29,2543,29,2559,29,2629,29,2635,29,2725,29,2939,29,2947,29,2985,29,3009,29,3045,29,3203,29,3409,29,3487,29,2589,29,2587,29,1653,29,3519,25,153,25,1483,25,1661,25,1783,25,2191,25,2563,25,3241,25,3385,25,1245,25,1483,25,3519,25,229,25,527,25,577,25,1019,25,1019,25,1081,25,1393,25,1485,25,2187,25,2471,25,2491,25,2515,25,2565,25,2681,25,2709,25,2983,25,3207,25,3241,25,3437,25,3477,25,3517,25,527,33,229,33,2581,33,3153,35,2651,49,3001,43,3227,43,2835,43,177,45,907,45,2187,45,181,45,1731,45,3247,45,1711,59,97,59,333,59,751,59,781,59,907,59,1107,59,1181,59,3005,59,3029,59,3199,59,3517,59,635,59,1201,59,2925,59,1279,59,637,53,373,53,577,53,847,53,1019,53,1165,53,1181,53,2317,53,3507,53,1069,53,2943,57,781,57,935,57,1661,57,1711,57,2565,57,2581,57,2581,57,2835,57,2913,57,2947,57,2961,57,3045,57,3519,55,577,55,1145,55,3519,55,545,59,1977,63,63,63,79,63,349,63,519,63,545,63,577,63,757,63,887,63,907,63,965,63,1019,63,1021,63,1057,63,1071,63,1081,63,1201,63,1245,63,1343,63,1597,63,1653,63,1685,63,1685,63,1733,63,1741,63,2349,63,2355,63,2371,63,2387,63,2421,63,2471,63,2507,63,2563,63,2565,63,2581,63,2581,63,2631,63,2749,63,2743,63,2767,63,2791,63,2825,63,2835,63,2847,63,2943,63,3175,63,3189,63,3187,63,3193,63,3237,63,3265,63,3427,63,3435,63,3443,63,3517,67,79,67,103,67,241,67,379,67,645,67,935,67,1019,67,1081,67,1113,67,1131,67,1485,67,1541,67,1733,67,1891,67,2471,67,2563,67,2915,67,3175,67,3015,67,3227,67,627,67,747,67,1279,67,1523,67,1955,67,2147,67,2581,67,2891,65,105,65,133,65,241,65,1087,65,1155,65,1235,65,1265,65,2867,65,3087,65,3535,65,157,65,441,65,547,65,1113,65,1161,65,1201,65,1891,65,2569,65,2891,65,2925,65,241,65,3519,79,545,79,627,79,1145,79,2581,79,3519,79,285,79,443,79,1145,79,1623,79,2191,79,2569,79,63,79,1653,79,177,79,627,79,1155,79,1955,79,3219,79,3267,77,209,77,907,77,1067,77,3129,77,3227,77,3415,77,113,77,443,77,1079,77,1311,77,1343,77,1741,77,1811,77,2629,77,2845,77,3045,75,729,75,887,75,2565,75,3105,75,67,75,511,75,545,75,1205,75,1337,75,2371,75,2507,75,2549,75,2559,75,2589,75,2649,75,2791,75,3175,75,3199,75,3207,75,3247,75,3257,75,3519,75,297,75,2559,75,2657,75,2689,75,2825,75,3055,75,3199,75,3227,75,3533,75,3435,75,547,75,3519,75,3487,89,1183,89,195,89,887,89,1113,89,1179,89,2221,89,2581,89,2825,89,3455,89,3453,89,3519,87,519,87,2581,87,2943,85,243,85,417,85,2973,85,3189,85,335,99,103,99,229,99,289,99,311,99,831,99,887,99,887,99,933,99,965,99,991,99,1145,99,1201,99,1239,99,1837,99,2069,99,2835,99,3025,99,3189,99,3193,99,3257,99,3279,99,3487,99,1733,99,187,99,3065,99,3189,99,441,99,3153,99,3185,93,3519,93,93,93,175,93,2111,97,225,97,991,97,1019,97,1983,97,2563,97,2579,97,3105,97,97,97,267,97,549,97,577,97,1131,97,2507,97,3457,97,29,97,113,97,229,97,531,97,613,97,933,97,1069,97,1101,97,1187,97,1239,97,1983,97,2299,97,2355,97,2507,97,2581,97,2629,97,2657,97,3005,97,3157,97,3231,97,3411,97,3433,97,1805,95,151,95,333,95,531,95,545,95,553,95,711,95,887,95,935,95,961,95,1207,95,1287,95,1769,95,2263,95,2355,95,2459,95,2531,95,2547,95,2569,95,2563,95,2589,95,2629,95,2835,95,2983,95,3025,95,3023,95,3021,95,3041,95,3367,95,3427,95,2295,95,3157,95,3237,95,609,95,627,95,731,95,781,95,801,95,943,95,1483,95,1483,95,1483,95,1499,95,1615,95,2649,95,2851,95,2845,95,3241,95,3377,95,3541,95,731,95,1523,95,2089,95,2159,107,2439,107,133,107,1523,107,2939,107,2991,107,19,107,857,107,1351,107,2187,107,2515,107,2559,107,2827,107,1311,107,2943,107,3105,107,3199,107,3425,105,193,105,637,105,751,105,761,105,781,105,961,105,985,105,1173,105,1711,105,1741,105,2511,105,2657,105,3153,103,601,103,1483,103,1805,103,3519,103,879,103,1107,103,2141,103,3219,103,193,103,577,103,781,103,943,103,1481,103,1741,103,1837,103,2187,103,2355,103,2563,103,2587,103,3011,103,3045,103,3041,103,3199,103,3207,103,3267,103,225,103,1155,103,2137,103,2589,103,3341,103,1615,103,1883,103,531,103,627,103,801,103,1741,103,2835,103,379,103,831,103,2525,115,187,115,747,115,2063,115,2459,115,3535,115,3519,113,113,113,193,113,241,113,577,113,823,113,961,113,1001,113,1141,113,1155,113,1201,113,1315,113,1419,113,1483,113,1769,113,1785,113,1873,113,1891,113,2355,113,2549,113,2565,113,2849,113,2943,113,2985,113,3015,113,3051,113,3185,113,3185,113,3207,113,3257,113,1091,113,1145,111,3433,125,1389,125,1523,125,2719,125,519,125,3519,121,731,121,1161,121,1523,121,2531,121,847,135,1019,135,2159,135,2355,135,3411,129,717,129,1153,129,1165,129,2221,129,2835,129,2985,129,3149,129,3199,129,3545,133,2581,133,133,133,751,133,801,133,1483,133,1503,133,1707,133,1891,133,2071,133,2349,133,2393,133,2439,133,2565,133,2709,133,2763,133,3385,133,3433,133,3577,133,445,133,729,133,781,133,879,133,1079,133,1113,133,1165,133,1483,133,2565,133,2635,133,2681,133,2819,133,2991,133,3185,133,3423,133,2355,131,613,131,1173,131,2555,131,3165,131,2559,131,935,131,1019,131,1113,131,1209,131,1245,131,1343,131,2187,131,2565,131,2709,131,1069,131,2991,131,1771,131,2515,131,2355,131,1977,131,187,131,241,131,985,131,1337,131,1607,131,2753,131,3519,131,3519,131,1071,131,1079,131,2565,131,3427,131,781,131,1279,131,1615,131,2629,131,2999,131,3029,131,3185,131,3241,131,1483,131,87,131,1091,143,209,143,519,143,577,143,745,143,781,143,935,143,1181,143,2199,143,1371,143,1711,143,1763,143,3143,143,3199,143,3251,143,295,143,443,143,661,143,731,143,1523,143,1803,143,1891,143,2029,143,2071,143,2547,143,2905,143,513,141,441,141,581,141,935,141,1115,141,3185,141,635,141,2753,141,3247,141,2943,139,289,139,333,139,627,139,729,139,851,139,1483,139,1661,139,2471,139,2559,139,2589,139,2675,139,2791,139,2831,139,2933,139,3001,139,3045,139,3055,139,3051,139,3435,139,3533,139,193,139,225,139,539,139,545,139,1483,139,1731,139,1763,139,3033,139,3189,139,3487,139,577,139,1483,139,2549,139,3177,139,157,139,1769,139,2563,139,63,139,209,139,1069,139,1191,139,1625,153,113,153,177,153,339,153,613,153,645,153,847,153,1201,153,1769,153,2845,153,3241,153,3425,153,755,153,1235,153,2569,151,63,151,851,151,887,151,1485,151,1741,151,1769,151,2255,151,2259,151,2835,151,2849,151,3001,151,3065,151,3153,151,3241,151,3379,151,3411,151,3419,151,3517,151,1079,163,2187,163,1153,157,339,157,933,157,961,157,1155,157,1481,157,1625,157,1769,157,2355,157,2775,157,3411,157,3517,157,1181,169,441,169,985,169,3519,169,985,169,1531,169,2649,169,2939,167,373,167,907,167,1181,167,1685,177,403,177,549,177,601,177,637,177,781,177,985,177,1019,177,1081,177,1475,177,1927,177,2111,177,2191,177,2507,177,2623,177,2743,177,3045,177,3407,177,139,177,193,177,729,177,887,177,1155,177,1483,177,1653,177,2187,177,2855,177,3185,177,3203,177,3367,177,3435,177,3541,175,1623,175,133,175,887,175,3051,175,3415,175,755,175,831,175,1769,175,3051,175,3533,173,731,173,1197,173,1239,173,1483,173,1523,173,2029,173,2243,173,2881,173,3219,173,3433,173,547,173,2565,173,2565,173,2827,173,2867,173,2939,173,3199,173,3419,173,3433,173,373,187,627,187,731,187,1371,187,1415,187,1955,187,627,187,653,187,943,187,1437,187,2675,187,295,99,2099,187,379,187,731,187,747,187,1955,187,2447,187,2657,187,3153,187,3199,187,3435,181,1253,181,1455,181,1805,181,547,181,1111,181,1625,181,3267,181,3275,181,1079,181,577,181,731,181,15,181,63,181,511,181,907,181,2563,181,3105,181,3127,181,985,181,627,181,1145,181,2491,185,1181,185,3519,183,1079,195,441,195,63,195,267,195,359,195,731,195,963,195,1181,195,2141,195,2187,195,2471,195,2629,195,3157,195,3183,195,3241,195,3415,195,3453,195,1451,195,1809,195,2491,195,2563,195,3511,195,2397,195,3157,193,29,193,133,193,139,193,139,193,209,193,333,193,347,193,441,193,501,193,511,193,531,193,531,193,553,193,605,193,613,193,643,193,653,193,729,193,737,193,823,193,831,193,887,193,895,193,905,193,933,193,943,193,963,193,1013,193,1019,193,1019,193,1113,193,1141,193,1163,193,1191,193,1201,193,1241,193,1313,193,1311,193,1515,193,1483,193,1483,193,1625,193,1685,193,1769,193,1873,193,2071,193,2147,193,2295,193,2371,193,2393,193,2503,193,2555,193,2563,193,2825,193,2845,193,2905,193,2969,193,2985,193,2991,193,3009,193,3145,193,3153,193,3189,193,3189,193,3185,193,3219,193,3283,193,3407,193,3429,193,3427,193,545,193,745,193,1235,193,1461,193,2563,193,2569,193,3189,193,177,193,1609,193,3267,193,295,193,661,193,1711,193,2581,193,2591,193,2991,193,3519,205,103,205,3199,215,1729,215,2999,209,1237,209,1483,209,1687,209,1873,209,1977,209,2187,209,2259,209,2355,209,2563,209,3105,209,3425,209,3519,209,97,209,289,209,631,209,801,209,1131,209,1209,209,1485,209,1483,209,2187,209,2543,209,2565,209,2629,209,2855,209,3267,209,3455,209,173,209,315,209,613,209,653,209,1163,209,1265,213,781,213,943,213,1703,213,1811,213,1983,213,2563,213,2583,213,3033,213,3219,213,3227,213,3319,213,3361,213,3435,213,133,213,2029,213,2471,213,3265,213,2631,211,531,211,549,211,635,211,1201,211,2471,211,3153,211,3519,225,75,225,285,225,1019,225,1155,225,1161,225,1265,225,1283,225,1793,225,2439,225,2565,225,2589,225,2791,225,2837,225,3185,225,3275,225,3385,225,1237,225,2565,219,65,219,95,219,113,219,177,219,193,219,631,219,1131,219,1235,219,1245,219,1891,219,2111,219,2159,219,2491,219,2559,219,3237,219,3257,219,3385,219,635,219,1953,219,2459,219,2491,219,2563,219,3435,233,1101,233,1187,233,63,233,233,233,1101,233,1449,233,1575,233,1597,233,2507,233,2559,233,2791,233,2835,233,3203,233,985,233,1173,233,2459,233,1343,229,781,229,2549,243,549,243,2543,243,2581,243,3045,243,3577,243,1733,237,3275,237,1019,237,3267,237,1343,237,2835,237,3519,237,3519,241,113,241,241,241,577,241,965,241,1107,241,1189,241,2605,241,1607,241,1803,241,2089,241,2555,241,2845,241,3237,241,3427,241,3517,247,781,247,1483,247,2549,247,67,247,1145,247,1711,247,1741,247,1803,247,2549,247,2565,247,3011,247,3207,247,3433,247,613,247,1503,247,2147,247,2565,247,2681,247,3145,247,3517,247,3197,247,627,247,739,247,1625,247,1653,257,443,257,605,257,3265,3341,649,3341,1155,3341,3545,271,2525,271,2581,271,3519,271,79,271,661,271,1081,271,1079,271,1181,271,1343,271,2147,271,2549,271,2581,271,2835,271,2845,271,3025,271,3143,265,1343,265,3519,265,107,265,545,265,1081,265,1113,265,1145,265,1237,265,1953,265,2471,265,2531,265,2563,265,2589,265,2631,265,2749,265,2891,265,3175,265,3227,265,311,265,661,265,781,265,1287,265,1341,265,1769,265,2265,265,2563,265,2583,265,3145,265,3175,265,717,265,1283,267,545,267,1279,267,1343,267,2187,267,3519,267,1811,267,1197,267,2569,281,373,281,403,281,1115,281,1189,281,1279,281,1661,281,2447,281,2985,281,3517,275,241,275,549,275,1067,275,1733,275,3227,275,897,275,1435,291,153,291,2631,291,3275,285,2999,285,1145,285,1711,285,2569,285,3105,285,3249,285,1739,285,1783,285,2341,285,2549,285,2581,285,3189,285,887,285,943,289,545,289,577,289,717,289,1315,289,2141,289,2191,289,2205,289,2559,289,3025,289,3249,289,3519,287,627,287,637,287,3199,301,949,301,649,301,1455,301,2555,301,2845,301,3237,295,653,295,3189,295,2565,295,3005,295,3045,295,553,295,951,295,1483,295,1091,295,2265,299,951,299,1155,299,2515,299,3519,295,3249,299,1279,299,1343,297,1085,297,2831,297,3025,297,3197,297,3227,297,3257,297,3143,297,3185,297,113,297,441,297,653,297,887,297,2835,297,3411,311,113,311,1155,311,2549,311,2657,311,53,311,289,311,379,311,645,311,963,311,2205,311,2317,311,2355,311,2559,311,2559,311,2891,311,3429,311,3433,311,3507,3389,1803,3389,2187,3389,3153,305,1955,305,1047,305,1191,305,2187,305,2421,305,2631,305,2835,309,1849,309,1131,309,1661,309,1733,309,1741,309,2265,319,443,319,549,319,545,319,661,319,757,319,887,319,1131,319,1165,319,1523,319,1623,319,1711,319,2205,319,2549,319,2581,319,2675,319,2835,319,3025,319,3367,319,3385,319,3441,319,3455,315,907,315,3175,315,1523,315,3445,315,177,315,373,315,745,315,1111,315,1265,315,1481,315,2867,315,3025,315,3025,315,3535,329,1741,323,1763,323,2991,323,3519,323,781,323,1189,323,2565,323,2849,323,3149,323,2563,323,323,323,799,323,1145,323,1197,323,1461,323,1623,323,2629,323,2827,323,2947,323,3001,323,3015,323,3193,323,3507,323,3433,323,177,323,441,323,747,323,951,323,1131,323,1523,323,1733,323,1891,323,2259,323,2263,323,3143,323,781,323,1125,323,3055,325,1485,325,2891,325,3189,325,3427,325,3517,325,139,325,1145,325,2349,325,2565,325,3313,325,3241,339,139,339,545,339,1073,339,1503,339,2933,339,3059,339,3153,339,3577,339,3519,339,1803,333,65,333,113,333,209,333,209,333,649,333,729,333,751,333,781,333,887,333,951,333,965,333,1129,333,1155,333,1161,333,1183,333,1483,333,1483,333,1739,333,1769,333,1771,333,1891,333,2141,333,2187,333,2255,333,2299,333,2317,333,2355,333,2371,333,2471,333,2565,333,2587,333,2589,333,2681,333,2791,333,2933,333,2943,333,3005,333,3021,333,3045,333,3051,333,3175,333,3189,333,3185,333,3199,333,3241,333,1183,333,2263,333,2511,333,2657,333,2943,333,3001,333,3001,333,3415,333,3519,333,2563,333,3045,333,3041,333,3185,333,539,333,553,333,943,333,2147,333,2187,333,2259,333,2579,333,2891,333,2925,333,3267,333,3433,333,3477,333,97,333,601,333,745,333,935,333,1485,333,1711,333,2565,333,2835,333,3015,333,3407,333,139,333,333,333,373,333,729,333,751,333,1145,333,1145,333,1207,333,2555,333,2565,333,2589,333,3091,333,3577,333,645,333,131,333,1173,333,2265,333,1047,333,1101,333,2471,333,3519,337,1873,337,2215,337,1085,337,1803,335,417,349,349,349,943,349,1199,349,1197,349,1209,349,1351,349,1393,349,1483,349,2263,349,2563,349,2631,349,2675,349,2837,349,3015,349,3433,349,2259,349,3045,343,1095,343,589,343,1769,343,343,343,1095,343,1803,343,3183,343,3313,343,729,343,1155,343,1625,343,2147,343,2549,343,3231,343,3433,347,491,347,645,347,907,347,1475,347,1623,347,1729,347,907,347,2397,345,851,345,1483,345,2867,345,103,345,545,345,577,345,635,345,1047,345,1181,345,1201,345,1637,345,2137,345,2349,345,2371,345,2471,345,2549,345,3519,345,2349,345,2555,345,965,345,87,359,359,359,443,359,527,359,627,359,781,359,1145,359,1145,359,1343,359,1437,359,1483,359,2159,359,2491,359,2719,359,2791,359,2851,359,2983,359,3025,359,3165,359,539,359,589,359,887,359,1265,359,2187,359,2563,359,2589,353,241,353,2259,353,847,353,1769,353,2943,357,15,357,717,357,3041,357,3219,369,513,369,627,369,637,369,781,369,1163,369,1337,369,2187,369,2549,369,2631,369,2629,369,2711,369,2835,369,3149,363,1155,363,2355,363,2491,363,1793,363,661,363,1201,363,645,363,295,363,1085,363,1351,363,3265,363,1189,363,1371,363,1793,363,2035,363,2515,363,2681,367,689,367,2563,367,2565,367,1161,365,1707,365,2185,365,2187,379,177,379,243,379,289,379,299,379,311,379,333,379,367,379,501,379,545,379,627,379,731,379,799,379,851,379,887,379,887,379,961,379,985,379,993,379,1001,379,1129,379,1131,379,1145,379,1155,379,1165,379,1189,379,1235,379,1237,379,1343,379,1419,379,1483,379,1523,379,1653,379,1661,379,1711,379,1741,379,1769,379,1811,379,2141,379,2185,379,2187,379,2249,379,2439,379,2459,379,2471,379,2507,379,2549,379,2543,379,2559,379,2559,379,2569,379,2565,379,2581,379,2581,379,2631,379,2815,379,2835,379,2845,379,2849,379,2891,379,2905,379,2985,379,3001,379,3033,379,3115,379,3143,379,3153,379,3227,379,3249,379,3257,379,3419,379,3433,379,3517,379,3535,379,193,379,431,379,443,379,631,379,645,379,737,379,799,379,1113,379,1161,379,1183,379,1763,379,1891,379,2191,379,2439,379,2547,379,2559,379,2565,379,2675,379,3023,379,3045,379,3105,379,3175,379,3175,379,3189,379,3257,379,3437,373,3185,373,241,373,597,373,729,373,761,373,1279,373,1769,373,2311,373,2589,373,2905,373,3175,373,3519,373,1237,373,2569,373,3519,373,241,373,577,373,717,377,229,377,3227,377,3267,377,441,377,751,377,1977,377,2549,377,2565,377,2649,377,3283,377,3369,377,3519,375,2835,3087,289,3087,3157,375,627,375,2711,375,589,375,627,375,731,375,737,375,1181,375,1789,375,1803,375,2581,375,2827,375,2835,375,2867,375,1483,391,1783,393,3519,403,1265,403,443,403,2159,403,2837,403,3309,403,3411,397,113,397,297,397,311,397,531,397,545,397,627,397,1073,397,1155,397,1179,397,1209,397,1769,397,2185,397,2259,397,2349,397,2355,397,2543,397,2593,397,2657,397,3143,397,3153,397,3411,397,3435,397,3519,401,501,401,2187,401,2985,399,1495,399,1711,399,2831,399,3227,399,3457,413,1343,413,1081,413,1343,413,1711,413,2933,407,531,407,2835,407,3143,411,1131,411,1197,411,1197,409,1113,409,1161,409,1287,409,1483,409,1483,409,2583,409,3045,409,3185,409,3577,409,2827,423,513,423,627,423,781,423,933,423,2035,423,3533,423,1237,423,2565,423,3149,417,15,417,885,417,1449,417,1803,417,2265,417,2581,417,2581,417,2649,417,2835,417,2939,417,2999,417,3423,417,513,417,907,431,175,431,755,431,781,431,879,431,943,431,991,431,1107,431,1397,431,1461,431,2259,431,2371,431,2471,431,2511,431,2565,431,2631,431,2791,431,3045,431,3185,431,3227,431,3241,431,3267,431,3487,427,63,427,645,427,1059,427,1187,427,1201,427,1483,427,1707,427,2259,427,2587,427,3189,427,3199,427,3411,427,3415,427,3435,427,347,427,847,427,1523,427,3199,427,1059,427,1707,427,3189,427,1019,427,1059,427,1707,427,3015,427,3415,437,403,437,2159,435,2187,435,133,435,3105,441,717,441,729,441,781,441,1113,441,1237,441,2355,441,2675,441,2835,441,3051,441,3185,441,3241,441,3267,441,601,441,2187,441,2849,441,157,441,333,441,887,441,985,441,2471,441,2691,441,2867,441,15,441,107,441,909,441,1001,441,1019,441,1805,441,2503,441,519,441,1483,441,2809,441,2835,441,3051,441,3411,441,781,441,799,441,1081,441,1101,441,3051,441,3059,445,577,445,1165,445,1311,445,2559,445,2563,445,2905,443,1131,443,2137,443,2141,443,2371,443,2589,443,3165,443,3267,443,3519,443,67,443,129,443,549,443,717,443,907,443,1145,443,1803,443,2071,443,2159,443,2491,443,2515,443,2827,443,3411,443,3517,443,1179,455,63,455,1081,455,1607,455,2835,455,1769,451,193,451,445,451,737,451,1179,451,1237,451,1265,451,1419,451,1771,451,2205,451,2569,451,2563,451,2565,451,2591,451,2675,451,2835,451,3005,451,3023,451,3045,451,3419,451,3437,451,3433,451,1287,451,2507,451,2559,451,3275,459,2581,459,2589,469,95,469,747,469,2209,469,2355,465,333,465,1197,465,2263,465,2985,465,3025,465,547,465,3045,465,3185,465,1241,465,2559,465,3045,465,3223,477,1955,475,821,475,537,475,821,475,961,485,289,485,731,485,755,485,1739,485,1771,485,2159,485,2259,485,2559,485,2587,485,1115,481,907,481,3013,481,3051,481,63,481,67,481,1607,481,1909,481,2939,495,909,495,1343,495,1485,495,1763,495,2511,495,2531,495,2835,495,3177,495,3407,495,729,495,1523,489,531,489,747,489,1129,489,1131,489,1371,489,2549,489,2563,489,2985,489,3045,489,3183,489,3283,489,3385,491,193,491,241,491,653,491,887,491,1197,491,2835,491,2849,491,3045,491,3199,491,295,505,1955,505,2515,505,1019,505,1955,505,3165,499,687,499,3519,501,65,501,2515,501,441,501,549,501,3519,501,15,501,627,501,963,501,1201,501,1279,501,1615,501,2569,501,2565,501,3275,501,3517,515,1415,515,139,515,195,515,333,515,1341,515,2071,515,2221,515,2581,509,153,509,333,509,527,509,545,509,553,509,935,509,3185,509,3199,509,441,509,661,509,1245,509,1485,509,2589,509,3143,509,3183,513,65,513,133,513,241,513,295,513,431,513,451,513,547,513,597,513,627,513,653,513,731,513,729,513,887,513,907,513,949,513,957,513,1039,513,1077,513,1145,513,1165,513,1181,513,1199,513,1279,513,1451,513,1461,513,1615,513,1711,513,1783,513,1849,513,2147,513,2159,513,2187,513,2447,513,2491,513,2515,513,2581,513,2631,513,2681,513,2809,513,2821,513,2831,513,2835,513,2867,513,2991,513,3013,513,3025,513,3029,513,3227,513,3237,513,3247,513,3275,513,3411,513,3477,513,3517,513,3577,511,29,511,63,511,65,511,79,511,75,511,107,511,105,511,133,511,139,511,177,511,175,511,181,511,225,511,295,511,333,511,333,511,501,511,511,511,549,511,545,511,553,511,577,511,637,511,635,511,645,511,661,511,683,511,729,511,751,511,781,511,819,511,887,511,909,511,907,511,905,511,935,511,935,511,961,511,963,511,985,511,991,511,1013,511,1019,511,1047,511,1113,511,1141,511,1155,511,1173,511,1181,511,1181,511,1191,511,1235,511,1239,511,1265,511,1343,511,1371,511,1437,511,1483,511,1495,511,1685,511,1711,511,1733,511,1741,511,1769,511,1769,511,1809,511,1851,511,1863,511,1883,511,1891,511,2111,511,2187,511,2187,511,2265,511,2261,511,2295,511,2299,511,2317,511,2355,511,2387,511,2439,511,2487,511,2559,511,2555,511,2569,511,2565,511,2565,511,2589,511,2631,511,2635,511,2647,511,2831,511,2825,511,2835,511,2933,511,2935,511,2963,511,2983,511,3023,511,3021,511,3105,511,3149,511,3153,511,3165,511,3189,511,3183,511,3185,511,3185,511,3227,511,3231,511,3237,511,3241,511,3241,511,3247,511,3249,511,3257,511,3313,511,3425,511,3433,511,3479,511,3517,511,3577,523,2187,521,2355,521,2845,521,3045,521,3185,519,133,519,151,519,193,519,339,519,441,519,879,519,933,519,2589,519,2777,519,2933,519,3025,519,3143,519,3219,519,2507,519,79,519,177,519,243,519,589,519,627,519,1197,519,1661,519,2835,519,2991,519,3237,519,751,519,1371,519,1145,519,1771,519,2355,519,3219,519,887,519,2555,519,1607,531,751,531,777,531,947,531,2265,531,3045,531,97,531,539,531,3045,531,177,531,289,531,397,531,441,531,513,531,531,531,549,531,643,531,731,531,751,531,991,531,1145,531,1165,531,1237,531,1343,531,1483,531,1523,531,1711,531,2549,531,2589,531,2743,531,2999,531,3011,531,3189,531,3189,531,3219,531,3247,531,3517,531,3577,529,933,529,991,529,1483,529,1837,529,2187,529,2563,529,3091,529,3519,527,2559,527,527,527,2631,527,3127,527,3257,527,2913,527,3519,527,755,527,2187,539,79,539,177,539,379,539,545,539,577,539,935,539,951,539,1139,539,1155,539,1235,539,1337,539,1741,539,1891,539,2191,539,2205,539,2371,539,2563,539,2565,539,2815,539,2835,539,2973,539,2991,539,3005,539,3045,539,3437,539,3433,537,3519,535,443,535,3519,537,193,537,757,537,781,537,1117,537,1141,537,1287,537,2317,537,2845,537,2855,537,3021,537,3051,535,575,535,2147,535,3519,549,103,549,133,549,177,549,635,549,729,549,781,549,1237,549,1343,549,2111,549,2507,549,2515,2759,943,2759,1179,547,527,547,589,547,933,547,1001,547,1623,547,1625,547,2349,547,2569,547,3011,547,3143,547,3153,547,3199,547,3227,547,3241,547,961,547,907,547,949,547,1115,547,1615,547,79,547,131,547,141,547,233,547,417,547,781,547,799,547,1013,547,1163,547,1245,547,1661,547,2581,547,2681,547,2719,547,2777,547,2835,547,2991,547,3267,547,985,545,1155,545,1419,545,2191,545,2581,545,2815,545,2835,545,63,545,79,545,157,545,553,545,577,545,617,545,729,545,909,545,943,545,1021,545,1155,545,1179,545,1209,545,1237,545,1343,545,1711,545,1803,545,2159,545,2259,545,2355,545,2983,545,3105,545,3185,545,3249,545,3519,545,241,545,1733,545,3519,553,545,553,729,553,1197,553,1483,553,2555,553,2581,553,3185,553,3429,553,3425,553,3559,553,649,553,2925,553,3241,571,153,571,241,571,943,571,1081,571,1113,571,1237,571,2565,571,2835,571,3045,571,3207,571,3227,571,3241,571,781,571,847,571,1145,571,1315,571,1531,571,1711,571,2045,571,2507,571,2563,569,133,569,267,569,443,569,2355,569,2549,569,2825,569,2905,569,3021,569,3519,567,3519,581,17,581,289,581,323,581,417,581,577,581,1085,581,1095,581,1111,581,1337,581,1483,581,1523,581,1873,581,2137,581,2349,581,2525,581,2559,581,2675,581,2835,581,2939,581,2985,581,2991,581,3199,581,3193,581,3241,581,3265,581,745,581,613,581,933,581,1483,581,2631,575,661,575,751,575,961,575,1145,575,1265,575,2259,575,2355,575,2581,575,2763,575,3185,575,373,575,1623,575,379,575,397,575,1805,575,2255,575,2981,575,3519,579,1115,579,195,579,1091,579,1771,579,2565,579,2649,579,3025,579,3025,579,3559,579,113,579,755,579,887,579,1181,579,2111,579,2187,579,2471,579,2589,579,2849,579,2991,579,907,579,3495,577,85,577,97,577,151,577,187,577,193,577,289,577,335,577,519,577,545,577,589,577,627,577,653,577,751,577,887,577,917,577,1019,577,1101,577,1145,577,1145,577,1181,577,1209,577,1461,577,1483,577,1575,577,1661,577,1687,577,1741,577,1769,577,2147,577,2187,577,2349,577,2511,577,2565,577,2629,577,2809,577,2835,577,2845,577,2991,577,3045,577,3105,577,3189,577,3429,577,3425,577,3441,577,3455,577,3065,577,3519,577,649,577,961,577,2923,577,139,577,195,577,951,577,1155,577,1169,577,1183,577,1197,577,2657,577,3341,577,2821,577,1019,577,1183,593,547,593,801,591,905,591,1485,591,1661,591,3127,591,177,591,403,591,581,591,731,591,857,591,1769,591,1769,591,2147,591,2159,591,2531,591,2583,591,2589,591,2835,591,3045,591,3145,591,3519,591,1181,589,133,589,151,589,187,589,299,589,397,589,511,589,627,589,887,589,943,589,1021,589,1113,589,1145,589,1145,589,1179,589,1191,589,1481,589,1483,589,1711,589,1803,589,1851,589,1873,589,2187,589,2187,589,2349,589,2565,589,2943,589,3041,589,3207,589,3367,589,3457,589,3519,589,3545,589,1953,589,631,589,1155,589,1741,589,3455,589,3519,589,2397,589,847,589,1181,589,1371,589,2111,589,2147,589,3429,589,3519,589,1893,589,613,589,649,589,1145,589,1265,589,2565,589,2991,589,2265,601,1077,601,65,601,1541,601,97,601,1081,601,1311,601,1587,601,2565,601,3011,601,3309,601,3507,597,513,597,519,597,637,597,1091,597,2459,597,2649,597,2709,597,3025,597,3487,597,1237,597,3237,597,661,597,2835,597,3477,597,3519,609,547,609,2631,609,3577,605,379,605,443,605,2189,605,605,605,1155,605,3267,605,3517,605,3519,617,539,617,631,617,1541,617,3015,617,3517,617,539,617,3167,615,79,615,193,615,683,615,781,615,851,615,907,615,1165,615,1181,615,1485,615,2089,615,2565,615,2589,615,2777,615,2791,615,2835,615,3219,615,3411,615,3457,615,3519,615,3559,615,615,615,851,615,1067,615,1483,615,1483,615,2555,615,3045,613,531,613,1131,613,1183,613,1201,613,1483,613,3415,613,113,613,153,613,649,613,851,613,951,613,1131,613,1141,613,1161,613,1201,613,1241,613,1235,613,1485,613,1483,613,1625,613,1769,613,2147,613,2191,613,2255,613,2259,613,2543,613,2563,613,2565,613,2589,613,2985,613,2999,613,3011,613,3025,613,3045,613,3051,613,3185,613,3199,613,3207,613,3241,613,3251,613,3519,613,3559,613,3519,631,105,631,193,631,545,631,751,631,761,631,781,631,887,631,985,631,1067,631,1155,631,1173,631,1209,631,1711,631,1741,631,1769,631,1827,631,2147,631,2507,631,2835,631,2985,631,3015,631,3153,631,229,631,879,631,917,631,991,631,1739,631,2265,631,2371,631,2791,631,3105,631,3189,631,3257,631,3267,631,3487,629,2565,629,1001,629,2565,627,133,627,177,627,289,627,441,627,887,627,1145,627,1343,627,1483,627,1615,627,1623,627,1661,627,1873,627,2187,627,2259,627,2355,627,2549,627,2581,627,2821,627,2849,627,3011,627,3045,627,3163,627,3185,627,3199,627,3219,627,3577,627,831,627,2387,627,2515,627,2649,627,2849,627,3241,627,265,627,403,627,1161,627,1279,627,2791,627,2985,627,3023,627,3519,649,29,649,1541,649,2565,649,3265,639,311,639,781,639,3025,639,3519,637,627,637,139,637,645,637,1483,637,3423,637,751,637,885,637,1711,637,2565,635,175,635,1081,635,1181,635,1315,635,1607,635,1741,635,2265,635,2397,635,2491,635,2591,635,3227,635,1455,635,1955,635,2355,649,265,649,887,649,1265,649,1661,649,3105,643,241,643,443,643,513,643,1141,643,1411,643,1793,643,2141,643,2187,643,2491,643,2529,643,2581,643,2649,643,2675,643,3051,643,63,643,193,643,297,643,643,643,653,643,1129,643,1155,643,1181,643,1237,643,1483,643,1483,643,1711,643,1977,643,2503,643,2549,643,2559,643,2763,643,2881,643,3249,643,3519,643,3517,643,3533,643,113,643,1209,643,2159,643,2589,643,3199,643,129,643,3519,647,15,647,613,647,1059,647,2563,647,2581,647,3041,647,3105,647,3425,647,3045,647,113,647,181,647,781,647,949,647,1235,647,1237,647,2187,647,2845,645,1249,645,1711,645,295,645,519,645,963,645,1771,645,2371,645,2589,645,1019,645,1343,645,1623,645,2835,645,1201,645,3193,657,751,657,1503,657,1741,657,1803,657,2147,657,2973,657,3009,657,3127,657,3415,657,3423,657,3519,657,3577,655,187,655,335,655,397,655,513,655,549,655,655,655,731,655,887,655,1161,655,1237,655,1771,655,2063,655,2111,655,2147,655,2191,655,2187,655,2209,655,2943,655,3023,655,3241,655,3293,655,295,655,3487,653,3519,653,295,653,613,653,653,653,669,653,1121,653,1183,653,1237,653,1343,653,1741,653,2111,653,2191,653,2187,653,2999,653,3143,653,3241,653,3435,653,1803,653,2589,653,2525,653,513,653,887,653,2809,665,605,665,747,665,755,665,1145,661,193,661,1485,661,1523,661,2371,661,63,661,75,661,113,661,133,661,297,661,441,661,513,661,751,661,857,661,887,661,943,661,963,661,1155,661,1181,661,1197,661,1235,661,1279,661,1343,661,1483,661,1711,661,1741,661,1863,661,2581,661,2589,661,2835,661,3025,661,3385,661,3519,661,1371,661,3001,673,1059,673,2263,673,2563,673,3519,673,79,673,799,669,2387,669,1181,669,3013,669,2563,669,2581,669,3025,669,3541,669,441,683,75,683,139,683,683,683,751,683,1393,683,1891,683,2259,683,2371,683,2563,683,2565,683,2589,683,2835,683,3045,683,3183,683,3185,683,3237,683,3247,683,3265,683,2563,677,153,677,1803,677,193,681,1343,681,131,681,229,681,1279,679,2387,679,2581,679,577,679,1653,679,3051,679,1181,687,397,687,3347,687,3241,687,1101,687,1685,687,613,687,645,687,907,687,1181,687,2589,687,2835,687,2905,689,3267,689,2491,689,2581,689,2649,689,3165,689,1883,689,139,689,897,689,949,689,965,689,1437,689,1523,689,1769,689,1893,689,2187,689,2355,689,2559,689,2845,689,3051,689,3143,689,3185,689,3241,689,949,689,2123,689,2111,689,3427,689,1523,689,3267,711,15,711,553,711,887,711,2259,711,2355,711,2569,711,2569,711,3185,717,857,717,1315,717,1653,717,1977,717,2563,717,1483,717,2243,717,2905,721,851,721,103,721,417,721,907,721,943,721,1091,721,1145,721,1165,721,1315,721,1405,721,1623,721,1711,721,1803,721,2349,721,2443,721,2559,721,2563,721,2565,721,2587,721,2635,721,2965,721,3051,721,3199,721,3241,721,3411,721,3519,721,1419,721,985,719,59,719,799,719,1067,719,1101,719,1153,719,1449,719,2547,719,2581,719,3045,719,3257,731,63,731,153,731,151,731,177,731,173,731,209,731,379,731,531,731,589,731,627,731,637,731,747,731,781,731,861,731,943,731,1091,731,993,731,1039,731,1047,731,1081,731,1117,731,1125,731,1131,731,1139,731,1155,731,1155,731,1287,731,1397,731,1475,731,1685,731,1725,731,1741,731,1769,731,1803,731,2029,731,2071,731,2125,731,2189,731,2187,731,2259,731,2349,731,2447,731,2459,731,2525,731,2531,731,2559,731,2559,731,2631,731,2657,731,2939,731,2943,731,3001,731,3041,731,3091,731,3123,731,3143,731,3153,731,3199,731,3267,731,3577,725,1483,725,1803,725,2503,725,1201,725,1371,725,1711,725,3519,729,97,729,613,729,645,729,935,729,951,729,961,729,1141,729,1155,729,1207,729,1415,729,1449,729,1483,729,1483,729,1677,729,1711,729,1769,729,2187,729,2355,729,2549,729,2569,729,2565,729,2815,729,2923,729,3105,729,3189,729,3241,729,3249,729,3519,741,917,741,2591,741,961,741,2591,741,3407,741,113,741,547,741,577,741,627,741,637,741,741,741,761,741,801,741,821,741,879,741,957,741,1163,741,1311,741,1685,741,1955,741,2035,741,2549,741,2791,741,3045,741,3477,735,1483,735,2355,735,2565,735,3013,735,3045,735,3223,735,2849,735,1615,735,2263,735,2355,735,2543,735,3045,735,3143,735,3275,735,181,735,683,735,1081,735,1163,735,1615,735,2555,735,3055,735,3275,735,3433,739,133,739,247,739,267,739,359,739,627,739,661,739,751,739,905,739,943,739,1145,739,1163,739,1187,739,1343,739,1741,739,1803,739,2205,739,2531,739,2549,739,2581,739,2709,739,3013,739,3011,739,3167,739,3241,739,3385,739,3415,739,3477,739,3577,739,887,739,951,739,1091,739,1001,739,1111,739,2265,739,3025,739,3385,737,729,737,951,737,1315,737,1397,737,2355,737,2511,737,2565,737,3183,737,3559,737,1235,737,1837,737,2563,737,2855,737,63,737,339,737,1429,737,1625,737,3199,737,113,737,1483,737,2943,737,1661,737,3267,737,3519,751,139,751,193,751,209,751,267,751,491,751,729,751,851,751,1155,751,1741,751,2507,751,2835,751,2905,751,3011,751,3143,751,3199,751,3247,751,3411,751,3415,751,3519,751,113,751,1165,751,3519,751,241,751,761,751,1769,751,1891,751,3015,751,3045,745,95,745,527,745,577,745,781,745,991,745,1047,745,1069,745,1337,745,2549,745,2581,745,2631,745,3427,745,289,745,631,745,821,745,933,745,1145,745,1165,745,2507,745,2531,745,2565,745,2565,745,3455,749,531,749,907,749,2657,749,3021,749,3385,749,3411,749,3427,749,907,747,379,747,511,747,589,747,761,747,781,747,857,747,887,747,943,747,963,747,1091,747,1085,747,1279,747,1337,747,1371,747,1437,747,2187,747,2259,747,2447,747,2531,747,2559,747,2559,747,2581,747,2631,747,2647,747,2657,747,2991,747,3011,747,3045,747,3105,747,3033,747,3157,747,3517,761,63,761,577,761,627,761,1047,761,1067,761,1081,761,1145,761,1161,761,1575,761,1623,761,1909,761,2063,761,2355,761,2433,761,2447,761,2549,761,2675,761,2791,761,3153,761,3237,761,3377,761,3519,761,3535,761,3519,761,643,761,729,761,1485,761,1771,761,2355,761,2763,761,3185,761,761,761,2559,761,3241,755,295,755,511,755,1059,755,1483,755,1707,755,2387,755,2563,755,2579,755,2631,755,2641,755,2849,755,3021,755,907,759,177,759,2581,759,2845,759,3519,757,3175,757,3237,757,373,757,1245,757,2141,757,2187,757,2355,757,2631,757,2809,757,3427,757,2349,757,2631,757,887,757,1191,757,1197,757,1483,757,1733,757,2543,757,2563,757,2565,757,3045,757,3219,757,3519,771,157,771,177,771,193,771,225,771,333,771,441,771,491,771,545,771,653,771,661,771,731,771,781,771,887,771,933,771,1001,771,1047,771,1047,771,1113,771,1145,771,1155,771,1191,771,1241,771,1235,771,1279,771,1481,771,1483,771,1483,771,1523,771,1733,771,1769,771,1805,771,2071,771,2111,771,2137,771,2191,771,2265,771,2421,771,2471,771,2549,771,2543,771,2563,771,2581,771,2589,771,2657,771,2835,771,2933,771,2943,771,3023,771,3021,771,3045,771,3177,771,3199,771,3305,771,3411,771,3429,771,3015,771,333,771,735,771,761,771,1615,771,3275,765,577,765,2507,765,2835,765,781,765,1115,765,2525,765,3015,769,133,769,295,769,443,769,1047,769,1785,769,2471,769,2491,769,2565,767,717,767,731,767,761,767,1145,767,1197,767,1483,767,2189,767,139,767,755,767,2849,767,1145,781,107,781,289,781,649,781,801,781,1059,781,1707,781,1891,781,2421,781,2555,781,2563,781,2583,781,2641,781,3267,781,95,781,187,781,397,781,545,781,637,781,645,781,731,781,831,781,851,781,907,781,933,781,943,781,991,781,1141,781,1343,781,1437,781,1461,781,1483,781,1687,781,1711,781,1783,781,1873,781,2187,781,2259,781,2471,781,2491,781,2543,781,2559,781,2565,781,2623,781,2631,781,2675,781,2849,781,3011,781,3029,781,3127,781,3189,781,3241,781,3257,781,3267,781,3015,781,3175,781,131,781,577,781,719,781,1019,781,1343,781,1485,781,1711,781,1741,781,2451,781,2491,781,2507,781,2647,781,2709,781,2849,781,2923,781,3189,781,897,781,3149,781,1483,781,1677,781,1741,781,1237,781,1909,781,2189,781,2317,781,2397,781,2923,781,3169,781,3223,775,195,775,1019,779,443,777,2507,777,887,777,1091,777,1771,777,2301,777,2657,777,2891,777,3001,777,3157,789,729,789,907,789,943,789,1155,789,1179,789,1209,789,1449,789,1711,789,2507,789,2565,789,2581,789,3011,789,3105,789,3457,789,3545,795,613,805,2355,805,3519,805,2209,805,2471,805,3519,805,323,799,29,799,133,799,177,799,577,799,729,799,1071,799,1145,799,2763,799,2791,799,2847,799,781,799,2137,799,2459,799,2581,799,2593,799,3157,799,3163,799,3237,799,3415,799,3453,799,1883,799,3023,799,451,799,1449,799,2187,799,2459,799,2471,799,2565,799,2593,799,3185,799,3219,799,3487,799,3559,799,2543,799,63,799,153,799,209,799,323,799,441,799,601,799,627,799,1077,799,1483,799,1741,799,1769,799,2209,799,2507,799,2559,799,2631,799,2849,799,3001,799,3227,799,3265,799,3519,799,1019,799,645,799,1741,799,2531,799,3385,799,29,799,577,799,985,799,1173,799,1483,799,2187,799,2355,799,3055,799,3199,799,3267,799,3447,803,15,803,1789,803,1783,803,1955,803,2635,803,3157,803,2835,803,3309,803,3415,803,2511,803,265,803,359,803,799,803,1181,803,1893,803,2035,803,2549,803,2581,803,3157,803,3199,803,3453,803,65,803,689,803,2387,803,2397,803,2559,801,113,801,1449,801,1805,801,2255,801,2981,801,3065,801,3423,801,3519,801,379,801,1371,801,2265,801,2891,801,2985,801,3001,801,3241,801,3457,801,589,801,1209,801,1741,801,2111,801,2187,801,2295,801,2515,801,2589,801,3045,801,3433,801,3559,801,545,801,1315,801,1977,801,2355,801,3229,801,63,801,133,801,519,801,1113,801,1155,801,2511,801,2591,801,2657,801,2845,801,3023,801,3143,801,3185,801,3223,801,3507,801,3437,801,3519,801,1653,801,1113,801,113,801,527,801,731,801,739,801,751,801,887,801,907,801,951,801,1019,801,1019,801,1113,801,1129,801,1183,801,1237,801,1287,801,1483,801,1769,801,1771,801,131,801,2439,801,2547,801,2559,801,2565,801,2589,801,3001,801,3041,801,3051,801,3105,801,3175,801,3185,801,3199,801,3275,801,3435,801,3477,801,113,801,441,801,935,801,1287,801,2141,801,2563,801,2581,801,2629,801,3051,801,3185,801,3231,801,961,801,1155,801,1763,801,1953,801,2147,801,2215,801,2355,801,2515,801,2563,801,3231,801,3237,801,193,801,577,801,2221,801,2631,801,2827,801,3045,801,2529,801,103,801,1757,815,59,815,3429,823,539,823,2649,823,181,821,139,821,339,821,545,821,597,821,627,821,851,821,963,821,1001,821,1197,821,1343,821,2191,821,2371,821,2471,821,2503,821,2791,821,2933,821,3247,821,3415,821,3487,819,2835,819,1625,819,1687,819,1893,819,2589,819,2681,819,3165,831,241,831,539,831,1241,831,1351,831,1707,831,2591,831,3045,831,3227,831,3241,831,295,831,717,831,2187,831,2675,831,2743,831,2631,831,3519,831,3519,831,1145,829,3519,829,311,829,887,829,985,829,1113,829,1181,829,1199,829,2063,829,2511,829,3313,829,3535,829,539,829,2259,829,627,829,711,829,935,829,943,829,1085,829,1145,829,1893,829,2259,829,2355,829,2515,829,2579,829,3051,829,3143,829,3429,831,59,831,107,831,241,831,275,831,907,831,965,831,1081,831,1131,831,1139,831,1309,831,1475,831,1495,831,1523,831,2255,831,2349,831,2569,831,2579,831,2981,831,3189,831,3429,831,3433,827,2265,839,209,839,645,839,839,839,965,839,1013,839,1685,839,2215,839,3051,839,3415,839,3423,839,545,839,1711,839,1141,839,1803,839,3165,839,133,839,209,839,549,839,907,839,933,839,1081,839,2631,839,2709,839,2809,839,3411,839,3435,839,3457,839,933,839,3519,839,781,837,3519,837,1207,837,1343,837,2515,837,2919,837,3247,847,17,847,29,847,45,847,103,847,209,847,225,847,289,847,297,847,311,847,511,847,581,847,577,847,645,847,761,847,857,847,887,847,991,847,1073,847,1067,847,1161,847,1179,847,1187,847,1239,847,1283,847,1337,847,1483,847,1625,847,1769,847,1873,847,2045,847,2137,847,2147,847,2221,847,2215,847,2235,847,2349,847,2355,847,2507,847,2525,847,2549,847,2559,847,2581,847,2675,847,2749,847,2845,847,2939,847,2991,847,3023,847,3021,847,3021,847,3095,847,3127,847,3153,847,3227,847,3251,847,3265,847,3377,847,3389,847,3409,847,3437,847,3545,847,3153,847,3519,847,175,845,729,845,949,845,1013,845,1129,845,1615,845,2675,845,1803,845,2835,845,113,845,757,845,3427,845,113,843,63,843,139,843,157,843,333,843,423,843,441,843,547,843,731,843,935,843,1139,843,1189,843,1207,843,1449,843,2867,843,3241,843,3429,843,3559,843,781,843,1771,1269,3033,857,717,857,3429,857,133,857,2209,857,15,857,373,857,577,857,653,857,1485,857,1523,857,2245,857,2531,857,113,857,297,857,441,857,717,857,1057,857,1977,857,2559,857,2581,857,3055,857,3193,857,3221,857,3519,851,373,851,1609,851,1771,851,3045,851,2991,851,3519,851,1235,851,2491,851,2905,851,3143,851,653,851,1001,851,1279,851,1481,851,2349,851,2371,851,2507,851,3045,851,3175,851,3199,851,2767,853,157,853,717,853,2355,853,2835,853,3051,853,3437,853,157,853,2355,853,2471,853,3435,853,3517,861,613,861,3187,871,113,871,193,871,373,871,601,871,1145,871,1685,871,2981,871,79,871,451,871,637,871,1181,871,1197,871,2205,871,2689,867,907,879,577,879,3577,877,3519,877,1189,877,3423,877,819,877,2649,877,3545,879,139,879,443,879,605,879,613,879,627,879,741,879,821,879,907,879,1769,879,2549,879,2559,879,2777,879,3015,879,3045,879,3189,879,3379,879,3415,887,113,887,133,887,177,887,299,887,537,887,577,887,653,887,781,887,1001,887,1113,887,1165,887,1183,887,1237,887,1315,887,1483,887,2089,887,2191,887,2355,887,2371,887,2515,887,2563,887,2565,887,2835,887,2947,887,3021,887,3187,887,3237,887,3267,887,3435,887,3487,887,3577,887,103,887,2549,887,2999,887,29,887,289,887,339,887,379,887,545,887,553,887,653,887,729,887,751,887,757,887,887,887,907,887,935,887,961,887,985,887,1113,887,1155,887,1183,887,1239,887,1253,887,1279,887,1371,887,1515,887,1485,887,1483,887,1483,887,1483,887,1625,887,1763,887,2147,887,2515,887,2531,887,2547,887,2565,887,2651,887,2871,887,2943,887,3045,887,3153,887,3185,887,3185,887,3203,887,3219,887,3231,887,3247,887,3415,887,3433,887,3455,887,3453,887,3519,887,553,887,963,887,1483,887,1483,887,1769,887,1873,887,3021,887,3219,887,3559,887,501,887,513,887,935,887,1145,887,1311,887,2159,887,2565,887,2581,887,3001,887,3045,887,907,887,1711,887,1977,887,2565,887,1021,887,1199,887,2263,887,2635,887,2983,887,879,887,2255,887,2549,885,95,885,1711,885,2581,883,645,883,737,883,933,883,1019,883,1141,883,1241,883,1237,883,1793,883,2191,883,2559,883,2563,883,2565,883,2831,883,2825,883,3051,883,3185,883,3231,883,3407,883,3527,883,777,883,2141,883,2559,883,2629,883,3001,883,3249,887,589,887,2187,887,3025,899,373,899,1079,899,1121,899,1495,899,2831,899,3025,899,545,899,2831,899,3519,899,323,899,2767,899,3411,897,29,897,1019,897,1129,897,2243,897,2299,897,2825,897,3237,895,333,895,441,895,2845,895,3001,895,3025,895,851,895,3437,895,1019,895,1019,909,289,909,1141,909,1789,909,2681,909,1769,909,45,909,113,909,531,909,643,909,717,909,847,909,1121,909,1265,909,1351,909,1449,909,1483,909,1977,909,2549,909,3519,909,151,909,909,909,1805,909,2243,909,2985,909,3519,907,267,907,545,907,649,907,751,907,781,907,961,907,1079,907,1419,907,1449,907,2355,907,2569,907,2563,907,2913,907,2943,907,2985,907,3127,907,3199,907,3241,907,3251,907,3267,907,3487,907,3517,907,233,907,241,907,577,907,1343,907,1733,907,3241,907,113,907,631,907,907,907,1201,907,1483,907,2565,907,2985,907,3519,907,443,907,1315,907,1483,907,2187,907,2387,907,423,907,417,907,627,907,781,907,1181,907,1197,907,1955,907,2187,907,2565,907,2581,905,441,905,613,905,2581,905,3231,905,3423,905,445,905,545,905,577,905,649,905,887,905,961,905,1183,905,1241,905,1485,905,2355,905,2565,905,2849,905,2963,905,3015,905,3185,905,3429,905,3427,905,3425,905,3577,905,1155,905,1893,905,2299,905,3455,905,887,905,1953,905,2263,905,3219,905,3455,917,965,917,1953,917,2111,917,3519,917,549,917,781,917,887,917,3025,915,1019,915,1241,915,1805,915,2259,915,2355,915,2835,915,3143,913,441,913,151,913,347,913,531,913,637,913,965,913,1047,913,1081,913,1085,913,1153,913,1483,913,1541,913,1741,913,1769,913,1893,913,2035,913,2147,913,2569,913,2709,913,2845,913,3045,913,3441,927,3379,925,519,925,1181,925,1661,925,3519,923,545,923,1625,923,2355,923,2565,923,3559,935,15,935,131,935,631,935,745,935,905,935,1085,935,1199,935,2199,935,1343,935,1485,935,1711,935,1863,935,2507,935,2511,935,2629,935,2835,935,2905,935,2981,935,3045,935,3379,935,3385,935,3437,935,3519,935,265,935,781,935,943,935,1283,935,1485,935,1783,935,1893,935,2925,935,3199,935,3427,935,3433,935,177,935,339,935,547,935,545,935,751,935,757,935,1253,935,1265,935,1769,935,1873,935,2187,935,2221,935,2355,935,2515,935,2651,935,3267,935,209,935,1803,933,2531,933,3519,933,97,933,209,933,545,933,653,933,1069,933,1155,933,1161,933,1179,933,1393,933,2111,933,2565,933,2589,933,2999,933,3219,933,3519,933,3517,931,403,931,2831,931,3433,931,295,931,1803,931,2593,943,153,943,175,943,187,943,345,943,511,943,589,943,645,943,905,943,1077,943,1091,943,1187,943,1191,943,1427,943,1531,943,1741,943,1769,943,1873,943,1891,943,2305,943,2421,943,2589,943,2675,943,2835,943,3005,943,3005,943,3105,943,3153,943,3199,943,3207,943,3385,943,3519,943,539,941,29,941,181,941,511,941,631,941,645,941,1131,941,2147,941,2487,941,2933,941,2985,941,3185,941,3251,941,3447,939,3227,951,173,951,373,951,661,951,887,951,887,951,961,951,1091,951,1001,951,1111,951,1343,951,1419,951,1811,951,2191,951,2591,951,2635,951,2791,951,2985,951,3011,951,3045,951,2675,951,3189,951,3197,951,3411,951,3527,951,3559,951,151,951,1181,951,103,951,2711,951,2835,951,131,951,613,951,851,951,1483,951,1783,951,2301,951,3415,951,3189,951,1711,951,1977,951,97,951,2185,951,3237,949,545,949,645,949,3409,949,339,949,1141,949,1731,949,2185,949,3347,949,209,949,1121,949,2543,949,3239,947,2511,947,553,947,2355,947,3433,947,3447,947,1081,947,3247,947,3519,947,547,947,2991,957,3441,957,3519,957,627,957,957,957,1279,957,1461,957,1623,957,1803,957,2349,957,2631,957,3247,957,3457,957,3519,957,3519,967,59,967,175,961,97,961,113,961,157,961,289,961,545,961,649,961,645,961,729,961,745,961,857,961,851,961,905,961,1081,961,1079,961,1117,961,1113,961,1121,961,1131,961,1155,961,1183,961,1181,961,1179,961,1483,961,1483,961,1711,961,1763,961,1863,961,2259,961,2261,961,2355,961,2459,961,2471,961,2565,961,2565,961,2581,961,2629,961,2849,961,2923,961,2939,961,2943,961,3041,961,3105,961,3203,961,3231,961,3267,965,653,965,1803,965,1953,965,2141,965,803,965,2387,965,2563,965,2589,965,2743,965,3411,965,3519,965,3029,965,1181,963,75,963,85,963,335,963,451,963,501,963,539,963,545,963,589,963,631,963,645,963,683,963,935,963,1129,963,1145,963,1197,963,1419,963,1485,963,1711,963,1803,963,1891,963,2191,963,2349,963,2355,963,2545,963,2569,963,2563,963,2581,963,2587,963,2835,963,2925,963,2973,963,3045,963,3175,963,3313,963,3433,977,2187,1091,113,1091,861,1091,1121,1091,1145,1091,1155,1091,1343,1091,1485,1091,2265,1091,2259,1091,2581,1091,3015,981,717,981,2775,981,907,985,53,985,187,985,241,985,289,985,519,985,577,985,729,985,745,985,781,985,897,985,935,985,951,985,1019,985,1131,985,1181,985,1265,985,1343,985,1485,985,1623,985,1653,985,1711,985,1733,985,1739,985,1741,985,1827,985,1863,985,1909,985,2511,985,2529,985,2543,985,2565,985,2631,985,2845,985,2905,985,2919,985,3005,985,3055,985,3153,985,3267,985,3457,985,3519,983,2563,983,1771,983,1909,983,2355,983,2983,997,3519,997,297,997,1739,997,2629,997,3197,997,1059,997,2563,997,3423,997,3519,997,2559,991,1173,991,107,991,2259,991,3185,991,3185,991,3231,991,511,991,589,991,2589,991,2709,991,961,991,519,991,631,991,781,991,943,991,1351,991,1475,991,1685,991,1711,991,2187,991,2349,991,2471,991,2531,991,2563,991,2675,991,2685,991,2939,991,3045,991,3055,991,3175,991,3189,991,3185,995,1161,995,3231,995,2559,993,1343,993,1763,993,2355,993,2631,993,2923,993,2943,993,3105,993,3199,993,3241,993,3437,993,3517,993,1181,993,1685,993,2265,993,2631,993,3457,993,577,993,1891,993,2259,993,3149,993,2581,993,627,993,2565,993,985,1005,857,1005,2563,1001,539,1001,951,1001,1113,1001,1131,1001,1155,1001,1165,1001,1371,1001,1523,1001,2259,1001,2565,1001,3447,1001,79,1001,153,1001,443,1001,545,1001,985,1001,1117,1001,1337,1001,1783,1001,2675,1001,2791,1001,2845,1001,3011,1001,3267,1015,241,1015,3519,1015,241,1009,3227,1009,747,1009,801,1009,1239,1009,1711,1009,2187,1009,2215,1009,2259,1009,2515,1009,3197,1009,3241,1009,3241,1009,3457,1009,1353,1013,133,1013,193,1013,349,1013,683,1013,963,1013,1283,1013,2147,1013,2187,1013,2355,1013,2559,1013,2647,1013,2565,1013,2581,1013,2579,1013,2821,1013,2913,1013,3011,1013,3045,1013,3143,1013,3185,1013,3267,1013,3283,1013,3477,1011,177,1011,339,1011,1181,1011,1353,1011,1661,1011,2581,1011,2589,1011,2835,1011,2905,1011,3189,1011,3519,1011,757,1011,2447,1011,3519,1011,181,1011,511,1011,735,1011,2187,1011,2763,1011,347,1011,2581,1011,3257,1023,3519,1023,1069,1023,2631,1019,241,1019,295,1019,95,1019,173,1019,297,1019,333,1019,645,1019,729,1019,755,1019,823,1019,851,1019,907,1019,1145,1019,1141,1019,1181,1019,1201,1019,1287,1019,1343,1019,1483,1019,1575,1019,1793,1019,2035,1019,2317,1019,2549,1019,2563,1019,2563,1019,2581,1019,2589,1019,2681,1019,2825,1019,3045,1019,3175,1019,3189,1019,3185,1019,3185,1019,3203,1019,3207,1019,3219,1019,3385,1019,3519,1019,3533,1019,3577,1019,193,1019,831,1019,905,1019,1351,1019,2393,1019,2563,1019,2565,1019,3187,1019,3283,1019,3427,1019,297,1019,781,1019,1013,1019,1019,1019,1095,1019,1113,1019,1191,1019,1235,1019,1707,1019,1983,1019,2147,1019,2185,1019,2187,1019,2255,1019,2503,1019,2559,1019,2589,1019,2635,1019,2641,1019,2999,1019,3189,1019,3185,1019,85,1019,105,1019,403,1019,545,1019,631,1019,653,1019,745,1019,755,1019,887,1019,1165,1019,1343,1019,1653,1019,1827,1019,1863,1019,2295,1019,2491,1019,2507,1019,2549,1019,2631,1019,2919,1019,2985,1019,2981,1019,3005,1019,3045,1019,3143,1019,3237,1019,3267,1019,1081,1019,527,1019,613,1019,661,1019,965,1019,1141,1019,1873,1019,2563,1019,2681,1019,2753,1019,3025,1019,3045,1019,3519,1019,1155,1021,441,1021,441,1021,589,1021,1485,1021,1891,1021,2983,1021,3041,1021,2471,1021,2507,1027,63,1027,545,1027,577,1027,601,1027,635,1027,731,1027,933,1027,943,1027,985,1027,1047,1027,1131,1027,1343,1027,1653,1027,2355,1027,2471,1027,2565,1027,2581,1027,2743,1027,2791,1027,2835,1027,2849,1027,3045,1027,3041,1027,3175,1027,3207,1027,3237,1027,3241,1027,3265,1027,3435,1027,3519,1035,1197,1035,1771,1035,3045,1033,2565,1043,2831,1043,297,1039,289,1039,347,1039,613,1039,2507,1039,3045,1039,3055,1039,153,1039,403,1039,653,1039,661,1039,1155,1039,1337,1039,1523,1039,2029,1039,2105,1039,2245,1039,2387,1039,2559,1039,3011,1039,3045,1039,3423,1039,1503,1039,2147,1039,2187,1039,2507,1039,2631,1053,627,1053,829,1053,1145,1053,3013,1053,831,1053,2891,1047,3153,1047,635,1047,985,1047,1019,1047,1081,1047,1131,1047,1179,1047,1265,1047,1483,1047,1803,1047,2355,1047,2371,1047,2421,1047,2471,1047,2525,1047,2559,1047,2591,1047,2589,1047,2743,1047,2753,1047,2767,1047,2825,1047,2849,1047,3045,1047,3055,1047,3105,1047,3175,1047,3189,1047,3237,1047,3265,1047,3267,1047,3479,1047,3487,1047,209,1047,511,1047,801,1047,1625,1047,2845,1047,2985,1047,187,1047,511,1047,711,1047,1067,1047,1107,1047,2631,1047,3127,1047,1067,1047,1685,1047,3267,1053,397,1053,1849,1057,1253,1057,2835,1057,3199,1057,717,1057,2835,1057,2923,1057,3519,1061,2559,1059,193,1059,315,1059,653,1059,751,1059,745,1059,871,1059,887,1059,905,1059,965,1059,1181,1059,1201,1059,1197,1059,1197,1059,1419,1059,1711,1059,1741,1059,1805,1059,1851,1059,1891,1059,2029,1059,2191,1059,2189,1059,2355,1059,2549,1059,2559,1059,2565,1059,2565,1059,2581,1059,2791,1059,2815,1059,2867,1059,3021,1059,3045,1059,3105,1059,3207,1059,3247,1059,3249,1059,3577,1059,15,1059,93,1059,545,1059,645,1059,711,1059,761,1059,1485,1059,1483,1059,2563,1059,2925,1059,2935,1059,3185,1059,3433,1059,195,1059,1179,1059,1909,1059,2547,1073,1073,1073,2187,1073,2559,1073,2985,1073,577,1067,3005,1067,3183,1067,645,1067,943,1067,295,1067,317,1067,423,1067,635,1067,781,1067,917,1067,1181,1067,1419,1067,1615,1067,1849,1067,2355,1067,2753,1067,3143,1067,3519,1067,1483,1067,2925,1067,105,1067,133,1067,941,1067,1827,1067,2471,1067,3045,1071,193,1071,907,1071,1071,1071,1197,1071,1343,1071,1435,1071,1711,1071,2187,1071,2939,1071,3519,1069,195,1069,1183,1069,1483,1069,2559,1069,2831,1069,3015,1069,3453,1069,1343,1069,2835,1069,2905,1069,3455,1069,177,1069,451,1069,655,1069,729,1069,781,1069,887,1069,1001,1069,2565,1069,2581,1069,2657,1069,2985,1069,3065,1069,3157,1069,3249,1069,3385,1069,3519,1081,63,1081,103,1081,241,1081,465,1081,527,1081,601,1081,649,1081,717,1081,757,1081,907,1081,1047,1081,1091,1081,1113,1081,1769,1081,1803,1081,1909,1081,1953,1081,2191,1081,2221,1081,2265,1081,3519,1077,1415,1077,2159,1077,2631,1077,2681,1077,3519,1077,105,1077,151,1077,631,1077,887,1077,1485,1077,1707,1077,1827,1077,1891,1077,2355,1077,2421,1077,2985,1077,3241,1077,3437,1077,139,1077,545,1077,627,1077,1209,1077,1623,1077,2421,1077,2631,1077,2835,1077,3199,1079,755,1079,887,1079,1019,1079,1191,1079,1769,1079,2549,1079,2559,1079,2905,1079,2933,1079,3005,1079,3105,1079,3145,1079,3487,1079,3577,1079,113,1079,133,1079,175,1079,729,1079,887,1079,1155,1079,1155,1079,1237,1079,1245,1079,1287,1079,1741,1079,2147,1079,2569,1079,2565,1079,2845,1079,3011,1079,3249,1079,3441,1079,113,1079,157,1079,781,1079,2835,1079,3199,1079,3241,1085,29,1085,95,1085,151,1085,431,1085,553,1085,907,1085,1419,1085,1893,1085,3015,1085,3183,1085,3251,1085,1081,1085,2589,1087,2355,1087,2565,1087,2631,1087,2649,1097,297,1097,297,1097,645,1097,857,1097,1073,1097,1237,1097,1455,1097,1849,1097,2261,1097,2559,1097,2563,1097,2657,1097,2983,1097,3045,1091,97,1091,95,1091,905,1091,1019,1091,1523,1091,2341,1091,2507,1091,2559,1091,2563,1091,3227,1091,3437,1091,3519,1095,193,1095,359,1095,1019,1095,1095,1095,1139,1095,1191,1095,2191,1095,2187,1095,3185,1095,3419,1093,1757,1093,2589,1093,2821,1093,3011,1093,3207,1093,935,1093,985,1093,3227,1093,79,1093,745,1093,887,1093,1001,1093,1653,1093,1685,1093,2187,1093,2255,1093,2355,1093,2681,1093,2943,1093,3045,1093,3487,1093,2189,1093,2447,1093,3157,1107,495,1107,577,1107,907,1107,991,1107,1615,1107,1891,1107,2593,1107,3177,1107,3193,1107,1615,1107,2543,1107,3379,1101,887,1101,1101,1101,1155,1101,1483,1101,2255,1101,2511,1101,2565,1101,2791,1101,3519,1101,67,1101,2311,1101,2491,1101,2767,1101,2825,1101,3153,1101,1139,1101,1335,1105,2393,1117,63,1117,2471,1117,2849,1117,3045,1117,627,1117,731,1117,1009,1117,2433,1117,2569,1117,2581,1117,1405,1117,943,1117,2991,1111,131,1111,187,1111,295,1111,431,1111,531,1111,589,1111,609,1111,739,1111,905,1111,951,1111,1091,1111,1001,1111,1019,1111,1091,1111,1111,1111,1145,1111,1161,1111,1183,1111,1179,1111,1337,1111,1341,1111,1419,1111,1485,1111,1483,1111,1711,1111,1763,1111,1803,1111,1983,1111,2263,1111,2341,1111,2549,1111,2543,1111,2559,1111,2559,1111,2569,1111,2583,1111,2581,1111,2581,1111,2631,1111,2675,1111,2791,1111,2835,1111,2925,1111,2943,1111,3015,1111,3013,1111,3025,1111,3041,1111,3199,1111,3227,1111,3377,1111,3423,1111,3477,1111,3015,1115,821,1115,963,1115,2185,1115,3559,1115,1087,1115,1757,1115,2515,1113,379,1113,757,1113,1019,1113,1237,1113,1371,1113,2631,1113,3527,1113,153,1113,225,1113,243,1113,537,1113,757,1113,781,1113,1019,1113,1117,1113,1161,1113,1237,1113,1287,1113,1741,1113,2191,1113,2515,1113,2511,1113,2547,1113,2569,1113,2565,1113,2581,1113,2631,1113,2831,1113,2825,1113,3045,1113,3145,1113,3185,1113,3185,1113,3199,1113,3247,1113,3433,1113,3519,1113,3143,1113,1079,1113,2845,1113,1597,1113,29,1113,781,1113,905,1113,1419,1113,1531,1113,1763,1113,3447,1113,3045,1125,323,1125,547,1125,1081,1125,1101,1125,1125,1125,1615,1125,1729,1125,2629,1125,2649,1125,3223,1125,3055,1125,3227,1121,1059,1121,1155,1121,2393,1121,2549,1121,2647,1121,2631,1121,3247,1121,1541,1123,1769,1135,379,1135,1343,1129,97,1129,627,1129,717,1129,729,1129,823,1129,1129,1129,1141,1129,1163,1129,1343,1129,1341,1129,1483,1129,1659,1129,1711,1129,1771,1129,2191,1129,2187,1129,2355,1129,2443,1129,2563,1129,2647,1129,2631,1129,2891,1129,3001,1129,3011,1129,3051,1129,3219,1129,3511,1129,3517,1129,3559,1133,173,1133,275,1133,589,1133,887,1133,943,1133,985,1133,1047,1133,1067,1133,1081,1133,1139,1133,1207,1133,1411,1133,1483,1133,1575,1133,1623,1133,2187,1133,2187,1133,2259,1133,2349,1133,2507,1133,2525,1133,2543,1133,2553,1133,2565,1133,2675,1133,2835,1133,3055,1133,3051,1133,3227,1133,3435,1133,737,1133,1141,1133,2563,1133,2825,1131,531,1131,1145,1131,1371,1131,1623,1131,2141,1131,2471,1131,3267,1131,3455,1131,553,1131,1483,1131,2555,1131,2985,1131,3429,1131,3559,1131,1615,1131,3433,1131,577,1131,1615,1131,2507,1131,3015,1145,443,1145,2147,1145,65,1145,403,1145,513,1145,547,1145,731,1145,907,1145,1115,1145,1389,1145,2159,1145,2515,1145,2631,1145,2867,1145,295,1145,689,1145,991,1145,1107,1145,1763,1145,2471,1145,139,1145,589,1145,627,1145,781,1145,879,1145,887,1145,935,1145,1113,1145,1207,1145,1237,1145,1541,1145,1793,1145,1873,1145,2187,1145,2317,1145,2549,1145,3165,1145,3227,1145,3425,1145,3519,1145,805,1145,2387,1145,887,1145,2531,1145,2835,1145,3045,1145,3065,1145,3519,1145,553,1145,755,1145,1237,1145,1803,1145,1891,1145,2503,1145,2563,1145,2589,1145,2631,1145,3265,1145,3295,1145,1181,1145,1809,1145,139,1145,1541,1145,2549,1145,1019,1145,3419,1145,139,1145,187,1145,627,1145,731,1145,943,1145,1129,1145,1197,1145,1437,1145,1541,1145,2189,1145,2259,1145,2675,1145,3153,1145,3341,1145,3519,1139,851,1139,2563,1139,3313,1139,1483,1139,1523,1139,2191,1139,2261,1139,2371,1139,3055,1139,3143,1139,157,1139,267,1139,2589,1139,511,1139,577,1139,645,1139,943,1139,1455,1139,1483,1139,1803,1139,2141,1139,2305,1139,2555,1139,2933,1139,3023,1139,3051,1139,3175,1139,3185,1139,3443,1139,139,1139,1173,1139,1311,1139,2191,1139,2371,1139,2393,1139,2563,1139,139,1139,193,1139,589,1139,1197,1139,2159,1139,2565,1139,2675,1139,3051,1139,3165,1139,3219,1139,3425,1139,193,1139,781,1139,1073,1139,1351,1139,2675,1139,3535,1139,443,1139,2581,1139,29,1139,193,1139,333,1139,1019,1139,1113,1139,1199,1139,1241,1139,1237,1139,1287,1139,1811,1139,2317,1139,2371,1139,2447,1139,2565,1139,2589,1139,2855,1139,3227,1139,3267,1139,3407,1139,3437,1139,3519,1139,3165,1139,2579,1143,751,1143,1161,1143,379,1143,661,1143,3125,1143,103,1143,907,1143,2709,1143,3495,1141,1503,1141,887,1141,887,1141,963,1141,1769,1141,2565,1141,3051,1141,3165,1141,1163,1141,1891,1141,1893,1141,2563,1141,2565,1141,3165,1141,3247,1141,729,1141,887,1141,1145,1141,1873,1141,2569,1141,1311,1141,1343,1141,2371,1141,1113,1141,1977,1141,631,1141,645,1141,781,1141,1265,1141,1287,1141,3519,1141,2137,1141,2565,1141,613,1141,1805,1141,2071,1141,2565,1141,3519,1141,2141,1141,2925,1141,3447,1155,79,1155,103,1155,225,1155,729,1155,781,1155,887,1155,935,1155,1139,1155,1199,1155,1197,1155,2215,1155,2349,1155,2549,1155,2589,1155,2675,1155,3187,1155,3185,1155,3227,1155,3433,1155,1237,1155,1707,1155,2141,1155,2191,1155,2355,1155,3199,1155,3577,3029,519,3029,2999,1155,2709,1155,209,1155,289,1155,367,1155,397,1155,545,1155,589,1155,729,1155,781,1155,951,1155,1141,1155,1155,1155,1179,1155,1241,1155,1237,1155,1343,1155,1485,1155,1711,1155,1805,1155,2355,1155,2563,1155,2565,1155,2565,1155,2591,1155,2815,1155,2847,1155,2981,1155,3015,1155,3023,1155,3041,1155,3065,1155,3105,1155,3157,1155,3203,1155,3219,1155,3519,1155,2261,1155,2503,1155,3237,1155,519,1155,545,1155,887,1155,1145,1155,1163,1155,1181,1155,1199,1155,1237,1155,2559,1155,3045,1155,3275,1149,965,1153,3237,1153,3519,1153,1181,1153,755,1153,1741,1153,3143,1151,851,1151,1803,1151,1531,1151,443,1151,1337,1151,2565,1151,1131,1151,2355,1165,177,1165,549,1165,1311,1165,1483,1165,1483,1165,2835,1165,3025,1165,1141,1165,2259,1165,2355,1165,2515,1165,2845,1165,3029,1165,3059,1165,3193,1165,3347,1165,1145,1165,1757,1165,613,1165,965,1165,2215,1165,2563,1165,2581,1165,2819,1165,3041,1165,3411,1165,103,1165,193,1165,87,1165,2835,1165,1351,1165,2549,1165,2939,1165,265,1165,737,1165,887,1165,933,1165,951,1165,1069,1165,2565,1165,2581,1165,2821,1165,173,1165,905,1165,2569,1165,3203,1165,1343,1165,175,1163,3319,1163,2179,1163,2557,1163,2563,1163,3519,1163,75,1163,2985,1163,2245,1163,113,1163,139,1163,339,1163,531,1163,655,1163,907,1163,1187,1163,1189,1163,1483,1163,1769,1163,2557,1163,2711,1163,3165,1163,3423,1163,3487,1163,577,1163,1107,1163,2849,1163,3051,1161,577,1161,751,1161,949,1161,1013,1161,1145,1161,1179,1161,1191,1161,1449,1161,1485,1161,1741,1161,2563,1161,2791,1161,2905,1161,3021,1161,3045,1161,3559,1161,157,1161,29,1161,209,1161,553,1161,649,1161,961,1161,1001,1161,1183,1161,1265,1161,1483,1161,2589,1161,3185,1161,3247,1161,1239,1161,3495,1161,1661,1161,1763,1161,1863,1161,193,1161,717,1161,1707,1161,2299,1161,2549,1161,3283,1161,661,1161,3519,1161,2531,1161,157,1161,613,1161,2563,1161,3519,1161,193,1161,2835,1161,3457,1173,105,1173,403,1173,631,1173,649,1173,745,1173,831,1173,1019,1173,1067,1173,1343,1173,1623,1173,1711,1173,1733,1173,1827,1173,2507,1173,2631,1173,2791,1173,2985,1173,3045,1173,3199,1173,209,1173,443,1173,1265,1173,1419,1173,2985,1173,3157,1173,3165,1173,175,1173,1101,1173,635,1173,965,1173,1235,1173,1475,1173,2569,1173,2649,1173,3423,1173,2553,1173,2849,1171,545,1171,729,1171,907,1171,1019,1171,1191,1171,2147,1171,2259,1171,2569,1171,3105,1171,3185,1171,107,1171,1201,1171,2141,1171,3175,1169,2187,1169,2355,1169,3045,1169,581,1169,851,1169,1191,1169,1531,1169,2187,1169,2559,1169,2631,1169,2991,1169,3015,1169,3241,1169,2471,1169,3227,1169,1197,1169,3519,1183,79,1183,97,1183,107,1183,177,1183,173,1183,501,1183,545,1183,605,1183,781,1183,861,1183,887,1183,887,1183,935,1183,1091,1183,1013,1183,1069,1183,1113,1183,1113,1183,1131,1183,1155,1183,1181,1183,1207,1183,1245,1183,1343,1183,1371,1183,1397,1183,1811,1183,2071,1183,2159,1183,2259,1183,2581,1183,2629,1183,2777,1183,2831,1183,3013,1183,3045,1183,3227,1183,3275,1183,2905,1183,3001,1183,3177,1183,3227,1183,63,1183,2433,1183,2631,1183,717,1183,1013,1183,1707,1183,2187,1183,2559,1183,3023,1183,3157,1183,1013,1183,1707,1183,45,1183,2187,1183,2355,1183,3519,1183,519,1183,1019,1183,1623,1183,1803,1183,1837,1183,2111,1183,2397,1183,2631,1183,3519,1183,1575,1183,133,1183,1101,1183,1139,1183,1461,1183,1703,1183,2743,1183,2849,1183,3045,1183,3227,1183,1953,1177,3519,1181,645,1181,1711,1181,2809,1181,3519,1181,1141,1181,3347,1181,549,1181,2491,1181,2581,1181,2649,1181,2709,1181,2827,1181,75,1181,627,1181,1235,1181,1615,1181,373,1181,1757,1181,1811,1181,2629,1181,3025,1179,431,1179,1013,1179,1121,1179,1197,1179,1351,1179,1661,1179,1711,1179,1769,1179,2295,1253,265,1179,133,1179,267,1179,511,1179,1013,1179,1197,1179,2933,1179,3411,1179,729,1179,1763,1179,229,1179,1805,1179,2675,1193,577,1193,653,1193,3519,1193,1343,1193,1575,1193,403,1193,655,1193,731,1193,1193,1193,1279,1193,2159,1193,3023,1193,545,1193,1343,1193,1711,1193,1741,1193,2511,1193,2565,1193,2835,1193,3011,1193,3045,1193,3519,1187,3183,1187,19,1187,113,1187,243,1187,1165,1187,1803,1187,1873,1187,2035,1187,2111,1187,2187,1187,2261,1187,2371,1187,2557,1187,2563,1187,2631,1187,2991,1187,3219,1187,3227,1187,3237,1187,3429,1187,3533,1187,545,1187,1145,1187,2589,1187,379,1187,3577,1187,63,1187,2549,1187,295,1187,333,1187,661,1187,965,1187,1019,1187,1019,1187,1057,1187,1113,1187,1183,1187,1235,1187,1625,1187,2255,1187,2265,1187,2531,1187,2563,1187,2589,1187,2681,1187,3185,1187,3237,1187,3241,1187,3279,1187,3519,1187,1685,1187,653,1187,1145,1187,1741,1187,3427,1187,1483,1187,907,1187,3153,1191,373,1191,689,1191,747,1191,1153,1191,1279,1191,1397,1191,1481,1191,1837,1191,2171,1191,2187,1191,2301,1191,2349,1191,2447,1191,2581,1191,2795,1191,2891,1191,2985,1191,3183,1189,441,1189,1085,1189,3185,1189,3199,1189,3519,1189,373,1189,549,1189,951,1189,3045,1189,3149,1189,1785,1189,3519,1189,2191,1189,2563,1189,107,1189,153,1189,613,1189,1019,1189,1741,1189,2581,1189,441,1189,751,1189,905,1189,943,1189,1343,1189,1371,1189,2565,1189,2675,1189,3187,1189,3219,1189,3429,1189,3433,1189,3453,1201,637,1201,1507,1201,3389,1201,717,1201,741,1201,1891,1201,2355,1201,2371,1201,2559,1201,2691,1201,2791,1201,2943,1201,3199,1201,133,1201,531,1201,839,1201,887,1201,917,1201,943,1201,951,1201,947,1201,1081,1201,1101,1201,1495,1201,1653,1201,1711,1201,2187,1201,2471,1201,2491,1201,2507,1201,2591,1201,2631,1201,2749,1201,2943,1201,3055,1201,3143,1201,3175,1201,3193,1201,3237,1201,3247,1201,3411,1201,3457,1201,3517,1201,2565,1201,3165,1201,545,1201,637,1201,907,1201,1661,1201,2387,1201,1085,1199,1161,1199,131,1199,871,1199,1139,1199,1199,1199,2159,1199,2549,1199,2711,1199,2709,1199,2961,1199,3165,1199,3379,1199,153,1199,1173,1199,1623,1199,2147,1199,3447,1199,745,1197,1483,1197,2259,1197,2589,1197,2675,1197,2835,1197,3045,1197,3313,1197,177,1197,193,1197,225,1197,333,1197,379,1197,645,1197,731,1197,737,1197,777,1197,887,1197,883,1197,1131,1197,1145,1197,1161,1197,1181,1197,1265,1197,1343,1197,1371,1197,1419,1197,1711,1197,2549,1197,2563,1197,139,1197,545,1197,631,1197,907,1197,985,1197,1419,1197,1891,1197,2049,1197,2191,1197,2205,1197,2255,1197,2259,1197,2355,1197,2371,1197,2647,1197,3153,1197,3199,1197,3207,1197,3257,1197,3385,1197,3519,1197,2835,1197,1161,1197,323,1197,379,1197,2421,1197,2631,1197,2837,1197,3435,1201,2579,1201,3219,1197,3265,1197,1161,1197,2559,1209,63,1209,649,1209,935,1209,1067,1209,1711,1209,2221,1209,2569,1209,403,1209,193,1209,645,1209,757,1209,933,1209,963,1209,1141,1209,1245,1209,1483,1209,1623,1209,1661,1209,1891,1209,2191,1209,2515,1209,2581,1209,2579,1209,2827,1209,2943,1209,3025,1209,3045,1209,3105,1209,3145,1209,3185,1209,3203,1209,1139,1209,1189,1209,1711,1209,3447,1209,781,1209,1073,1209,3045,1209,851,1209,1623,1209,1733,1209,63,1209,177,1209,645,1209,887,1209,943,1209,1121,1209,1163,1209,1197,1209,1483,1209,1541,1209,1707,1209,1769,1209,2141,1209,2187,1209,2387,1209,2549,1209,2543,1209,2579,1209,2831,1209,2939,1209,3045,1209,3165,1209,3227,1209,3367,1209,3487,1209,3519,1209,2881,1209,3237,1207,1205,1207,1343,1207,2085,1207,2553,1207,3495,1207,3519,1207,1179,1207,2187,1207,2471,1207,2549,1207,2791,1207,3157,1207,265,1207,935,1207,1237,1207,3435,1205,2439,1205,2815,1205,3011,1205,3423,1205,3517,1205,847,1205,1337,1205,1343,1205,1483,1205,2549,1205,2565,1205,2581,1205,2631,1205,2849,1205,3237,1205,3433,1205,907,1205,2439,1205,3535,1205,15,1205,441,1205,777,1205,1021,1205,1449,1205,1485,1205,1803,1205,3001,1205,3015,1205,3157,1205,3185,1205,3241,1205,3433,1205,29,1205,589,1205,1455,1205,1661,1205,1803,1205,2565,1205,2821,1205,3045,1205,3157,1205,3427,1205,3577,1205,577,1205,2111,1205,2835,1213,1397,1213,2159,1241,397,1241,933,1241,1199,1241,1485,1241,1809,1241,2589,1241,3185,1241,3423,1241,1145,1241,683,1241,887,1241,935,1241,1145,1241,1155,1241,1165,1241,1485,1241,1763,1241,2185,1241,2459,1241,2565,1241,3045,1241,3437,1241,887,1241,3157,1235,193,1235,645,1235,1741,1235,2565,1235,2905,1235,3519,1187,877,1235,1047,1235,1101,1235,2589,1239,19,1239,177,1239,193,1239,627,1239,731,1239,961,1239,1155,1239,1189,1239,1483,1239,1803,1239,2355,1239,2565,1239,3165,1239,3427,1239,3433,1237,139,1237,511,1237,801,1237,1371,1237,1623,1237,2355,1237,2515,1237,2835,1237,3013,1237,3055,1237,3177,1237,3519,1237,729,1237,2583,1237,97,1237,1769,1237,2779,1237,2943,1237,3231,1237,2299,1237,45,1237,113,1237,139,1237,1803,1237,2147,1237,2259,1237,2531,1237,2827,1237,2855,1237,3249,1237,3341,1237,3385,1237,3435,1237,3577,1237,781,1237,347,1237,1785,1237,3519,1237,139,1237,209,1237,225,1237,943,1237,1019,1237,1113,1237,1145,1237,1241,1237,1499,1237,2447,1237,2581,1237,2835,1237,3055,1237,3433,1249,1371,1249,2295,1249,2629,1249,3001,1249,3453,1249,581,1249,1311,1249,1587,1245,67,1245,443,1245,531,1245,1741,1245,2835,1245,3175,1245,3441,1245,2471,1245,3185,1245,113,1245,1081,1245,3519,1253,193,1253,613,1253,653,1253,1141,1253,1343,1253,1523,1253,2439,1253,2555,1253,2681,1253,3045,1253,3185,1253,3185,1253,157,1253,3319,1253,3361,1253,133,1253,297,1253,547,1253,577,1253,661,1253,761,1253,1183,1253,1209,1253,1343,1253,1757,1253,2141,1253,2259,1253,2471,1253,2563,1253,2925,1253,3013,1253,3105,1253,3435,1253,3347,1253,3519,1253,2835,1253,2565,1253,3519,1265,193,1265,549,1265,661,1265,729,1265,757,1265,781,1265,857,1265,887,1265,887,1265,935,1265,933,1265,951,1265,1117,1265,1145,1265,1141,1265,1207,1265,1485,1265,1483,1265,1523,1265,1609,1265,1653,1265,1763,1265,2185,1265,2259,1265,2355,1265,2569,1265,2565,1265,2591,1265,2855,1265,2939,1265,3021,1265,3045,1265,3203,1265,3219,1265,3227,1265,3247,1265,3435,1265,3487,1265,267,1265,2349,1265,2565,1265,3189,1265,3265,1265,1531,1265,2923,1265,3455,1265,3519,1263,1707,1263,3127,1263,2581,1263,2923,1263,3001,1263,3455,1263,53,1263,1653,1263,887,1271,2563,2199,1237,1279,53,1279,79,1279,113,1279,133,1279,131,1279,153,1279,193,1279,335,1279,379,1279,373,1279,431,1279,513,1279,549,1279,545,1279,631,1279,627,1279,711,1279,731,1279,751,1279,747,1279,781,1279,887,1279,935,1279,943,1279,961,1279,1001,1279,1019,1279,1081,1279,1085,1279,1107,1279,1113,1279,1145,1279,1165,1279,1173,1279,1191,1279,1201,1279,1197,1279,1235,1279,1237,1279,1245,1279,1343,1279,1523,1279,1523,1279,1711,1279,1769,1279,2035,1279,2147,1279,2221,1279,2439,1279,2507,1279,2547,1279,2565,1279,2631,1279,2815,1279,2831,1279,2835,1279,2891,1279,2887,1279,2905,1279,3005,1279,3025,1279,3045,1279,3105,1279,3247,1279,3251,1279,3309,1279,3379,1279,3419,1279,3429,1279,3559,1279,3227,1277,857,1277,1783,1287,113,1287,731,1287,2835,1287,1615,1285,717,1285,3519,1285,549,1283,333,1283,379,1283,403,1283,609,1283,729,1283,905,1283,935,1283,1013,1283,1161,1283,1279,1283,1283,1283,1419,1283,2159,1283,2265,1283,2265,1283,2511,1283,2647,1283,2649,1283,2837,1283,2925,1283,3377,1283,3433,1283,3577,1291,1129,1293,1197,1293,95,1293,1047,1293,1145,1293,1483,1293,1771,1293,2629,1293,3051,1293,3185,1293,2835,1293,3143,1303,265,1303,907,1303,935,1303,1019,1303,1245,1303,1503,1303,2147,1303,2191,1303,2559,1303,2565,1303,3145,1303,3437,1303,513,1303,589,1303,2387,1303,3129,1303,3149,1301,103,1301,2507,1301,3409,1315,1311,1315,79,1315,1153,1315,1179,1315,1239,1315,1311,1315,1677,1315,1803,1315,2565,1315,3105,1315,3143,1315,3519,1315,513,1315,2835,1315,2629,1309,3519,1313,15,1313,107,1313,133,1313,139,1313,193,1313,795,1313,1013,1313,1155,1313,1161,1313,1313,1313,1343,1313,1455,1313,1873,1313,1883,1313,2187,1313,2255,1313,2355,1313,2925,1313,2983,1313,3045,1313,3041,1313,3183,1313,3187,1313,3185,1313,3341,1313,3429,1313,1803,1313,1893,1313,2925,1311,1143,1311,1341,1311,1415,1311,2191,1311,2371,1311,2563,1311,3055,1311,113,1311,549,1311,645,1311,887,1311,907,1311,1079,1311,1351,1311,2991,1311,3185,1311,3517,1311,2581,1311,661,1311,935,1311,1131,1311,1145,1311,1155,1311,1241,1311,1623,1311,2187,1311,2355,1311,2515,1311,2531,1311,2565,1311,2649,1311,2849,1311,3055,1311,3267,1311,113,1311,151,1311,1165,1311,1245,1311,1803,1311,2563,1311,2565,1311,2629,1311,2905,1311,2943,1311,3237,1311,1653,1323,613,1323,1107,1323,2263,1323,2891,1329,545,1329,1803,1329,2355,1337,295,1337,539,1337,745,1337,801,1337,851,1337,1085,1337,1165,1337,1169,1337,1265,1337,1337,1337,1343,1337,1405,1337,1541,1337,1625,1337,1711,1337,1769,1337,2187,1337,2205,1337,2221,1337,2549,1337,2581,1337,2593,1337,2675,1337,2795,1337,2835,1337,2835,1337,2943,1337,3045,1337,3091,1337,3143,1337,3231,1337,3267,1337,3437,1335,545,1335,1179,1335,1205,1335,2311,1335,3519,1335,1575,1345,1661,1343,107,1343,105,1343,209,1343,339,1343,349,1343,347,1343,397,1343,781,1343,1047,1343,1199,1343,1205,1343,2187,1343,2187,1343,2221,1343,2265,1343,2563,1343,2565,1343,2631,1343,2681,1343,2835,1343,2905,1343,3041,1343,3199,1343,3241,1343,3433,1341,935,1341,1145,1341,1161,1341,1711,1341,2581,1341,2835,1341,373,1341,717,1341,731,1341,2491,1353,241,1353,295,1353,831,1353,907,1353,1101,1353,1803,1353,2579,1353,2589,1353,2631,1353,3175,1353,3577,1353,1541,1353,2187,1353,2269,1351,887,1351,887,1351,917,1351,965,1351,985,1351,991,1351,1129,1351,1343,1351,1351,1351,1483,1351,1771,1351,2259,1351,2565,1351,2631,1351,2827,1351,2835,1351,3015,1351,3045,1351,3105,1351,3185,1351,3241,1351,3455,1349,229,1349,933,1349,1181,1349,2835,1349,15,1349,991,1349,2349,1349,2647,1361,511,1361,1343,1361,2565,1361,2891,1361,3379,1359,3519,1357,637,1357,907,1357,3519,1357,645,1357,1197,1365,951,1365,2835,1365,225,1365,539,1365,887,1365,1129,1365,1455,1365,1653,1365,1711,1365,2565,1365,2581,1365,2675,1365,3041,1365,3165,1365,3185,1365,3241,1365,3385,1373,297,1373,511,1373,519,1373,645,1373,941,1373,1019,1373,1059,1373,1191,1373,3045,1373,3189,1373,3237,1373,907,1371,193,1371,631,1371,1371,1371,3519,1383,2681,1383,3415,1383,3453,1383,3519,1377,45,1377,95,1377,241,1377,609,1377,747,1377,781,1377,1073,1377,1615,1377,2187,1377,2349,1377,2355,1377,2925,1377,2983,1377,3143,1377,3177,1377,3197,1377,3241,1379,887,1379,907,1379,3177,1379,3251,1379,2243,1379,229,1379,289,1379,887,1379,1661,1379,2507,1379,2845,1393,113,1393,655,1393,1337,1393,3045,1393,3519,1393,265,1393,1161,1393,2647,1387,1081,1387,2581,1387,2969,1387,3055,1387,2529,1391,193,1389,589,1389,2657,1389,65,1389,177,1389,1265,1389,1615,1389,1757,1389,2447,1389,2867,1389,993,1389,2471,1389,2827,1401,151,1401,1769,1401,2221,1401,2507,1397,669,1397,1351,1397,2269,1397,2355,1397,2581,1405,359,1405,511,1405,1265,1405,2447,1405,3379,1405,157,1405,193,1405,2187,1405,2355,1405,3177,1405,2265,1415,59,1415,53,1415,317,1415,547,1415,553,1415,1181,1415,1279,1415,1483,1415,1741,1415,2147,1415,2581,1415,2985,1415,3275,1415,295,1411,59,1411,295,1411,2371,1411,2387,1411,3257,1411,63,1411,133,1411,1081,1411,1101,1411,2355,1411,3011,1411,3427,1411,1183,1411,2581,1411,3519,1419,589,1419,737,1419,951,1419,1111,1419,1197,1419,1483,1419,1531,1419,1891,1419,2355,1419,2371,1419,2559,1419,2565,1419,2565,1419,2943,1419,3041,1419,3185,1419,3517,1421,917,1421,3519,1427,1081,1427,3447,1427,1047,1427,1145,1427,3545,1427,1803,1427,3347,1427,831,1427,113,1427,2845,1427,3143,1431,2555,1431,887,1431,1129,1431,1131,1431,2555,1431,2553,1431,2709,1429,2587,1429,1183,1429,3219,1435,539,1435,3437,1435,897,1435,3149,1439,2559,1437,757,1437,1081,1437,2355,1437,3227,1437,3519,1451,113,1451,1789,1445,97,1445,627,1445,669,1445,751,1445,821,1445,887,1445,1179,1445,1201,1445,1265,1445,1351,1445,1483,1445,1597,1445,1783,1445,2543,1445,2569,1445,3045,1445,3185,1445,3577,1445,645,1445,2563,1445,2947,1445,2507,1449,113,1449,151,1449,177,1449,209,1449,333,1449,511,1449,527,1449,545,1449,887,1449,1071,1449,1155,1449,1411,1449,1483,1449,1771,1449,1805,1449,1891,1449,1953,1449,2187,1449,2255,1449,2355,1449,2549,1449,2559,1449,2569,1449,2563,1449,2581,1449,2749,1449,2791,1449,2835,1449,2849,1449,2905,1449,3015,1449,3015,1449,3023,1449,3065,1449,3203,1449,3229,1449,3313,1449,3527,1447,317,1447,175,1447,1081,1447,2809,1455,29,1455,545,1455,649,1455,717,1455,965,1455,2507,1455,2565,1455,2791,1455,2849,1455,3185,1455,3519,1455,2709,1515,653,1515,1191,1515,1235,1515,2311,1515,2323,1515,2565,1515,2969,1461,95,1461,589,1461,627,1461,887,1461,933,1461,1145,1461,1575,1461,1909,1461,2825,1461,3241,1461,669,1465,1465,1463,907,1463,1081,1463,2355,1463,2631,1463,3457,1463,133,1463,157,1463,1237,1463,2647,1463,2825,1463,2871,1461,907,1471,1181,1471,3519,1475,225,1475,229,1475,527,1475,781,1475,781,1475,887,1475,943,1475,993,1475,1131,1475,1711,1475,1741,1475,1927,1475,1983,1475,2187,1475,2265,1475,2311,1475,2349,1475,2563,1475,2623,1475,2631,1475,2791,1475,3197,1475,3241,1475,3517,1473,2543,1481,613,1481,1733,1481,3415,1481,157,1481,661,1481,887,1481,1019,1481,1191,1481,1279,1481,1615,1481,2185,1481,2259,1481,2447,1481,2709,1481,3015,1481,3045,1481,3519,1481,857,1481,1081,1481,3519,1481,1763,1481,1769,1481,1131,1481,3347,1485,3001,1485,131,1485,193,1485,531,1485,729,1485,1081,1485,1179,1485,1201,1485,1687,1485,2141,1485,2187,1485,2589,1485,63,1485,3519,1485,519,1485,985,1485,1165,1485,1415,1485,1741,1485,2581,1485,2905,1485,3011,1485,3519,1485,857,1485,3241,1485,3237,1483,545,1483,645,1483,887,1483,1239,1483,1311,1483,2187,1483,2845,1483,3045,1483,3105,1483,3455,1483,3577,1483,443,1483,729,1483,1209,1483,1419,1483,1483,1483,1891,1483,2563,1483,949,1483,2471,1483,2559,1483,431,1483,577,1483,613,1483,631,1483,729,1483,751,1483,887,1483,961,1483,1139,1483,1183,1483,1181,1483,1245,1483,1311,1483,1625,1483,1653,1483,2531,1483,2563,1483,3143,1483,3185,1483,3415,1483,3425,1483,3441,1483,193,1483,649,1483,2355,1483,2371,1483,3425,1483,1343,1483,1653,1483,1763,1483,1907,1483,2187,1483,2421,1483,2565,1483,2709,1483,2985,1483,3219,1483,3229,1483,1483,1483,2265,1483,2631,1483,951,1483,1113,1483,1237,1483,2393,1483,2905,1483,3143,1483,2591,1483,3517,1483,3541,1483,1531,1483,2471,1483,3519,1495,133,1495,441,1495,519,1495,661,1495,731,1495,1091,1495,1145,1495,1173,1495,1495,1495,15,1495,649,1495,1081,1495,3045,1495,3519,1495,187,1495,97,1495,511,1495,661,1495,745,1495,1019,1495,1145,1495,1237,1495,1265,1495,1769,1495,2439,1495,2581,1495,2981,1495,3203,1495,3267,1495,1187,1495,1769,1495,3415,1495,3423,1495,549,1499,3519,1497,133,1497,177,1497,661,1497,887,1497,531,1497,1237,1497,2397,1497,2809,1497,2825,1497,3227,1497,3517,1497,15,1497,857,1497,1155,1497,1893,1497,2259,1497,2317,1497,2355,1497,1091,1497,1623,1497,3519,1503,209,1503,751,1503,1013,1503,1145,1503,1141,1503,1155,1503,1653,1503,1763,1503,2355,1503,2503,1503,2569,1503,3045,1503,3051,1503,3143,1503,3429,1503,3435,1503,75,1503,781,1503,1741,1503,2089,1503,2187,1503,2631,1503,3185,1503,233,1503,241,1503,545,1503,1001,1503,1107,1503,2563,1503,3367,1507,139,1507,247,1507,539,1507,577,1507,941,1507,1067,1507,1313,1507,1483,1507,1483,1507,1741,1507,2049,1507,2191,1507,2265,1507,2299,1507,2581,1507,2835,1507,3051,1505,645,1505,717,1505,943,1505,2471,1505,265,1505,1191,1503,107,1503,645,1503,951,1503,1141,1503,1237,1503,2187,1505,831,1511,631,1511,1019,1511,2985,1511,3251,1511,729,1511,3021,1511,3157,1511,1145,1511,2591,1511,1405,1511,1511,1511,1615,1511,2341,1513,613,1513,637,1513,2187,1513,547,1513,1107,1513,2581,1523,151,1523,177,1523,319,1523,661,1523,961,1523,1239,1523,2215,1523,2933,1523,1141,1523,1653,1523,2565,1523,3435,1523,645,1523,781,1523,1653,1523,1977,1523,2371,1523,2591,1523,3051,1523,139,1523,965,1523,1279,1523,1343,1523,2111,1523,897,1531,495,1531,961,1531,1155,1531,1181,1531,1241,1531,1485,1531,2355,1531,2531,1531,289,1531,519,1531,577,1531,985,1531,1483,1531,1803,1531,1953,1531,2991,1531,29,1531,157,1531,289,1531,781,1531,985,1531,1145,1531,1515,1531,1711,1531,2563,1531,2649,1531,2835,1531,2939,1531,3241,1531,3239,1531,3241,1531,755,1531,187,1531,2111,1531,3387,1531,3227,1535,3519,1541,2355,1541,97,1541,139,1541,403,1541,531,1541,627,1541,943,1541,1121,1541,1129,1541,1145,1541,2089,1541,2187,1541,2507,1541,187,1541,323,1541,343,1541,1337,1541,1483,1541,1615,1541,2355,1541,2397,1541,3265,1541,3275,1541,2777,1541,1685,1541,3519,1541,645,1541,887,1541,1081,1541,1129,1541,1615,1541,1661,1541,2563,1541,2563,1541,2589,1541,2835,1541,2991,1541,3055,1541,3219,1545,1827,1545,519,1545,1179,1545,2565,1545,2849,1543,1155,1543,2905,1575,67,1575,887,1575,907,1575,1343,1575,1711,1575,2815,1575,2835,1575,2923,1575,3519,1575,3519,1575,131,1579,985,1579,2985,1579,3519,1579,3527,1579,653,1579,3577,1585,3519,1585,545,1585,1741,1585,2511,1585,3519,1585,3187,1589,95,1589,3519,1587,951,1587,2565,1587,3011,1587,1311,1587,1337,1587,589,1587,637,1587,781,1587,943,1587,2187,1587,2569,1587,2631,1587,2629,1587,3175,1587,3519,1595,133,1595,275,1595,1081,1595,2507,1595,2531,1595,1237,1595,3447,1601,2631,1601,2675,1601,79,1601,3423,1597,323,1597,577,1597,781,1597,1265,1597,1481,1597,2511,1597,3267,1597,747,1597,3011,1597,3199,1597,3219,1597,1181,1597,1597,1597,153,1597,545,1597,553,1597,653,1597,757,1597,951,1597,963,1597,1117,1597,1145,1597,1207,1597,1205,1597,1235,1597,2199,1597,1343,1597,1741,1597,2355,1597,2511,1597,2589,1597,2835,1597,1483,1587,63,1587,367,1587,379,1587,781,1587,801,1587,1741,1613,2559,1613,2711,1617,63,1617,1101,1617,1523,1617,2559,1617,3519,1615,177,1615,627,1615,731,1615,1419,1615,1481,1615,1763,1615,3275,1615,3411,1615,3519,1623,59,1623,133,1623,443,1623,2933,1623,3001,1623,79,1623,297,1623,347,1623,443,1623,519,1623,741,1623,1111,1623,1145,1623,1405,1623,3441,1623,3577,1625,653,1625,2943,1625,3559,1633,267,1633,1209,1633,1415,1633,1523,1633,1653,1633,2305,1633,907,1633,1653,1633,617,1633,1805,1633,2615,1635,403,1635,1661,1635,1019,1605,3519,1605,1485,1605,3011,1609,443,1609,757,1609,1241,1609,2531,1609,2531,1609,3227,1609,443,1609,323,1609,519,1609,1483,1609,3045,1607,2569,2605,3005,2605,3051,2605,3411,2605,3423,1607,2187,1607,175,1607,187,1607,963,1607,2187,1607,3427,1649,549,1649,1483,1649,1803,1649,2311,1653,97,1653,143,1653,151,1653,177,1653,193,1653,443,1653,549,1653,545,1653,661,1653,781,1653,1071,1653,1153,1653,1181,1653,1241,1653,1311,1653,1483,1653,1495,1653,1523,1653,1575,1653,2089,1653,2317,1653,2511,1653,2775,1653,2835,1653,3203,1653,3519,1653,3545,1653,2835,1653,3519,1653,3517,1653,3187,1651,1769,1651,2355,1659,229,1659,799,1659,1769,1659,2581,1659,2835,1663,653,1663,751,1663,1013,1663,1155,1663,1197,1663,1661,1663,2831,1663,3455,1661,193,1661,379,1661,1197,1661,241,1661,631,1661,1155,1661,1181,1661,1209,1661,1311,1661,1437,1661,2111,1661,2583,1661,297,1661,431,1661,751,1661,961,1661,1013,1661,1197,1661,1337,1661,1449,1661,1483,1661,1771,1661,1955,1661,2231,1661,2549,1661,3193,1661,3455,1661,359,1661,627,1661,933,1661,1711,1661,2985,1667,1107,1667,1197,1667,3519,1667,2581,1671,1085,1671,1343,1671,1711,1671,1741,1671,1803,1671,2191,1671,2221,1671,2265,1671,2355,1671,2549,1671,2569,1671,2791,1671,3045,1671,3185,1671,3257,1669,2559,1669,241,1669,3519,1669,133,1669,193,1669,545,1669,1079,1669,1245,1669,2791,1669,3227,1669,295,1669,193,1669,3051,1669,3535,1677,443,1677,965,1677,1129,1677,1597,1677,1615,1677,2355,1677,3199,1677,3257,1677,295,1677,451,1677,627,1677,1803,1677,2185,1677,2355,1677,2943,1677,3517,1679,233,1679,241,1679,2529,1685,133,1685,443,1685,635,1685,1165,1685,1415,1685,1483,1685,1685,1685,1837,1685,2111,1685,2753,1685,3189,1685,3433,1685,3487,1685,3519,1685,2835,1685,241,1685,2089,1685,2507,1685,2531,1685,577,1685,613,1689,2563,1689,617,1689,887,1687,2555,1687,359,1687,737,1687,887,1687,1165,1687,1197,1687,1769,1687,2569,1687,2835,1687,3149,1687,3241,1687,1117,1687,2647,1687,3015,1703,1197,1703,1771,1703,2565,1703,2913,1703,3219,1703,3231,1703,951,1703,1239,1703,1685,1703,1803,1703,2507,1703,2835,1703,3045,1703,3241,1703,3519,1703,1189,1703,2355,1703,1785,1703,2187,1703,3149,1703,3227,1703,2187,1703,3241,1707,539,1707,1891,1707,2355,1707,2371,1707,225,1707,339,1707,553,1707,575,1707,887,1707,1013,1707,1201,1707,1687,1707,1707,1707,1769,1707,1977,1707,2355,1707,2471,1707,2559,1707,2563,1707,2565,1707,3105,1707,3143,1707,3185,1707,3247,1707,943,1705,3519,1705,3045,1705,907,1705,2187,1705,2905,1705,1483,1705,2355,1711,347,1711,545,1711,617,1711,637,1711,781,1711,1091,1711,1173,1711,1207,1711,1205,1711,1285,1711,1343,1711,1741,1711,2355,1711,2543,1711,2559,1711,2565,1711,2581,1711,2815,1711,2845,1711,2991,1711,3519,1711,3045,1713,2835,1719,627,1725,2565,1719,961,1719,1265,1719,3455,1723,1313,1723,3519,1721,431,1721,631,1721,1437,1721,3519,1729,195,1729,781,1729,1019,1729,2447,1729,2791,1729,2925,1729,3257,1729,567,1729,887,1729,1001,1729,1481,1729,1615,1729,2355,1729,2569,1729,3041,1729,757,1733,1101,1733,1741,1733,2471,1733,2749,1731,2563,1731,97,1731,113,1731,229,1731,397,1731,751,1731,3241,1731,3265,1731,781,1731,1161,1731,2471,1731,3257,1739,295,1739,103,1739,1081,1739,1953,1739,2753,1739,3087,1739,3189,1743,373,1743,757,1743,2565,1743,2629,1743,3145,1743,3185,1743,3419,1743,3559,1743,1483,1743,379,1743,1085,1741,193,1741,323,1741,333,1741,661,1741,755,1741,1145,1741,1183,1741,1237,1741,1531,1741,1687,1741,1711,1741,1741,1741,1803,1741,2205,1741,2471,1741,2503,1741,2515,1741,2559,1741,2563,1741,2565,1741,2565,1741,2581,1741,2587,1741,2749,1741,2855,1741,3015,1741,3011,1741,3185,1747,1803,1747,2191,1747,2259,1747,2835,1747,3519,1751,151,1751,3411,1751,3023,1751,3251,1751,3023,1751,3251,1749,133,1749,729,1749,751,1749,1141,1749,1625,1749,2141,1749,2581,1749,2681,1749,3219,1749,3241,1749,1113,1749,3455,1757,1343,1757,1711,1757,2491,1757,3435,1757,887,1757,1101,1757,2111,1763,139,1763,177,1763,729,1763,745,1763,781,1763,857,1763,887,1763,1001,1763,1155,1763,1165,1763,1207,1763,1241,1763,1483,1763,1771,1763,2141,1763,2187,1763,2259,1763,2559,1763,2565,1763,2815,1763,2925,1763,3045,1763,3185,1763,3203,1763,3219,1763,3267,1763,3425,1763,3433,1763,3455,1763,1173,1765,3519,1765,1757,1769,289,1769,339,1769,441,1769,443,1769,531,1769,1081,1769,1079,1769,1155,1769,1237,1769,1483,1769,1711,1769,1803,1769,2111,1769,2141,1769,2187,1769,2355,1769,2507,1769,2559,1769,2555,1769,2569,1769,2563,1769,2581,1769,2589,1769,2925,1769,2991,1769,2675,1769,3143,1769,3185,1769,3517,1769,3577,1769,63,1769,265,1769,297,1769,323,1769,645,1769,653,1769,717,1769,943,1769,1101,1769,1179,1769,1187,1769,1515,1769,1485,1769,1757,1769,1769,1769,1803,1769,1891,1769,2187,1769,2205,1769,2355,1769,2371,1769,2631,1769,2791,1769,2923,1769,2943,1769,3003,1769,3055,1769,3143,1769,3257,1769,3313,1769,3429,1769,3425,1769,3425,1769,3457,1769,3519,1769,143,1769,747,1769,1201,1769,1909,1769,2559,1769,3013,1769,3533,1769,1769,1769,2187,1769,3189,1769,1803,1771,133,1771,613,1771,935,1771,1661,1771,1711,1771,1769,1771,2589,1771,3015,1771,3185,1771,3267,1789,2709,1789,2835,1789,3203,1783,113,1783,1311,1783,113,1783,749,1783,2791,1783,2891,1783,943,1783,1019,1783,1757,1783,3123,1783,729,1783,751,1783,949,1783,1483,1783,1977,1783,2581,1783,2835,1783,2923,1783,3207,1783,3387,1787,2491,1785,799,1785,1187,1785,1515,1785,1891,1785,2191,1785,2371,1785,3175,1785,3519,1785,2559,1785,193,1785,511,1785,761,1785,1769,1785,1883,1785,2393,1785,105,1785,97,1785,133,1785,637,1785,1155,1785,1607,1785,1837,1785,2471,1785,2631,1785,3237,1785,19,1785,1893,1785,2111,1785,2681,1785,3577,1793,1483,1793,3519,1795,577,1795,2355,1805,15,1805,113,1805,961,1805,1145,1805,2255,1805,2981,1805,3021,1805,3051,1805,3199,1805,3241,1805,3457,1805,3519,1805,531,1803,113,1803,209,1803,275,1803,417,1803,601,1803,635,1803,887,1803,917,1803,1163,1803,1311,1803,1495,1803,1653,1803,1711,1803,1859,1803,2029,1803,2187,1803,2591,1803,2615,1803,2831,1803,3015,1803,3055,1803,3237,1803,3347,1803,3577,1803,153,1803,443,1803,647,1803,943,1803,1145,1803,1161,1803,1483,1803,1625,1803,2205,1803,2657,1803,2991,1803,3239,1803,241,1803,3087,1803,577,1803,747,1803,857,1803,887,1803,1763,1803,2317,1803,2355,1803,2569,1803,3153,1803,3455,1803,177,1803,1371,1803,107,1803,151,1803,545,1803,577,1803,1711,1803,2565,1803,3425,1803,1769,1803,431,1803,1891,1803,2187,1803,2471,1809,861,1809,2355,1809,2581,1813,717,1813,1485,1813,1873,1811,79,1811,717,1811,1485,1811,883,1811,1113,1811,2629,1811,3045,1823,1769,1823,2631,1823,2835,1823,3227,1823,3519,1821,1019,1821,3519,1821,403,1821,991,1821,1283,1821,1483,1821,1783,1821,2349,1821,2579,1821,3045,1821,3051,1821,3219,1827,717,1827,751,1827,887,1827,1155,1827,1253,1827,1977,1827,2355,1827,2559,1827,2559,1827,3051,1827,3487,1827,3519,1827,105,1827,193,1827,403,1827,751,1827,781,1827,887,1827,917,1827,961,1827,985,1827,1067,1827,1131,1827,1173,1827,1265,1827,1711,1827,1741,1827,2147,1827,2507,1827,2657,1827,3055,1827,3153,1827,3199,1827,295,1827,3437,1827,97,1827,289,1827,349,1827,539,1827,547,1827,545,1827,645,1827,935,1827,963,1827,1283,1827,1821,1827,2355,1827,2471,1827,2565,1827,2579,1827,2821,1827,2933,1827,3143,1827,3187,1827,1803,1841,3519,1853,3435,1847,2295,1847,2835,1851,2355,1851,917,1851,985,1851,1483,1851,1711,1851,2565,1849,949,1849,2187,1849,2565,1849,2565,1859,1859,1881,3519,1863,193,1863,225,1863,577,1863,613,1863,887,1863,935,1863,985,1863,1001,1863,1019,1863,1019,1863,1139,1863,1205,1863,1315,1863,1485,1863,1483,1863,1615,1863,1741,1863,2255,1863,2259,1863,2349,1863,2355,1863,2515,1863,2565,1863,2815,1863,2905,1863,3001,1863,3015,1863,3009,1863,3011,1863,3025,1863,3045,1863,3065,1863,3189,1863,3199,1863,3283,1863,3437,1863,3453,1863,3519,1869,241,1869,1047,1869,1101,1869,1173,1869,1607,1873,627,1873,795,1873,895,1873,1483,1873,1821,1873,2355,1873,2565,1873,2581,1887,3519,1881,909,1881,1575,1881,59,1881,781,1881,2355,1881,2491,1881,2631,1881,2849,1885,613,1885,907,1885,1019,1885,2355,1885,3185,1885,3577,1885,1013,1883,339,1883,267,1883,289,1883,721,1883,781,1883,943,1883,1609,1883,2631,1883,3011,1883,3477,1883,3519,1883,229,1883,799,1883,1769,1883,2355,1883,2909,1883,3519,1883,15,1883,2631,1883,2649,1897,3015,1897,59,1891,151,1891,333,1891,347,1891,379,1891,645,1891,847,1891,935,1891,943,1891,1079,1891,1113,1891,1131,1891,1141,1891,1165,1891,1201,1891,1287,1891,1419,1891,1449,1891,1485,1891,1483,1891,1483,1891,1623,1891,1687,1891,1785,1891,1891,1891,2265,1891,2265,1891,2563,1891,2565,1891,2691,1891,2835,1891,2985,1891,2991,1891,3065,1891,3175,1891,3229,1891,3257,1891,3237,1891,645,1891,801,1891,1733,1891,2849,1895,3519,1895,1783,1895,3519,1893,63,1893,1209,1893,3457,1901,1155,1901,2255,1901,3519,1909,2311,1909,1909,1909,2341,1907,545,1907,2675,1907,3033,1917,1019,1917,1955,1915,347,1915,1019,1915,907,1915,985,1915,3435,1869,577,1927,29,1927,649,1927,1827,1927,2371,1927,689,1927,613,1927,1237,1927,1803,1927,2543,1927,2925,1927,3433,1929,2355,1953,289,1953,495,1953,879,1953,887,1953,1001,1953,1113,1953,1129,1953,1145,1953,1155,1953,1209,1953,1237,1953,1315,1953,1483,1953,1763,1953,2355,1953,2459,1953,2531,1953,2563,1953,2565,1953,3021,1953,3105,1953,3219,1953,527,1953,645,1953,1059,1953,2711,1953,3015,1953,3433,1953,3065,1955,501,1955,949,1955,2649,1967,209,1967,1155,1967,3051,1967,3185,1967,1653,1973,1483,1973,1145,1969,747,1969,1173,1969,1803,1969,2187,1969,2471,1983,781,1983,781,1983,2187,1983,2471,1983,3185,1991,193,1991,627,1991,1189,1991,3219,1991,2543,1993,3143,1993,1733,1977,717,1977,751,1977,887,1977,1101,1977,1155,1977,2355,1977,2471,1977,2543,1977,2559,1977,2569,1977,2923,1977,3051,1977,3411,1977,3411,1977,3487,1977,3519,2017,857,2013,755,2017,1707,2017,2943,2017,513,2017,2397,2017,2515,2015,3045,2015,731,2015,1019,2015,2355,2015,3011,2015,2471,2013,2187,2025,2991,55,577,2021,3519,2023,2355,2023,2559,2023,2565,2035,513,2035,731,2035,1081,2035,1145,2035,1653,2035,1661,2035,2581,2035,2891,2035,3385,2029,1237,2029,79,2029,133,2029,373,2029,661,2029,747,2029,907,2029,1001,2029,1145,2029,1191,2029,1337,2029,2209,2029,2905,2029,3517,2029,781,2029,1235,2029,3385,2031,157,2031,1371,2031,2209,2031,2559,2031,2835,2031,2981,2031,3453,2045,133,2045,317,2045,801,2045,847,2045,1183,2045,2021,2045,2255,2045,3247,2039,1187,2039,1575,2039,2753,2041,157,2041,441,2041,613,2041,653,2041,935,2041,1483,2041,1769,2041,3559,2041,905,2041,2925,2041,139,2041,537,2041,961,2041,1265,2041,1481,2041,1615,2041,1661,2041,1883,2041,2845,2049,511,2049,3275,2049,63,2049,247,2049,379,2049,1711,2049,2355,2049,2821,2049,3429,2049,3577,2065,943,2065,1107,2065,1481,2065,2311,2065,2433,2065,2531,2059,373,2059,3519,2059,3519,2063,151,2063,193,2063,545,2063,589,2063,627,2063,943,2063,1653,2063,2905,2061,2749,2061,3207,2075,2397,2075,3441,2075,3457,2069,649,2069,1069,2069,2547,2069,2657,2069,2825,2069,113,2069,1371,2069,1485,2069,2259,2069,3559,2071,519,2071,549,2071,133,2071,225,2071,589,2071,661,2071,731,2071,751,2071,1019,2071,1265,2071,2471,2071,2591,2071,3199,2071,3435,2071,3433,2071,3519,2071,2835,2085,731,2085,933,2085,1161,2085,1343,2085,2187,2085,2433,2085,2531,2085,2631,2085,2835,2085,2849,2079,577,2079,1081,2079,2221,2079,2749,2079,3239,2095,1145,2095,2795,2089,537,2089,2531,2089,1419,2089,1615,2089,1067,2089,3519,2089,511,2091,107,2091,1161,2091,1741,2091,2709,2091,2835,2105,731,2105,821,2105,2147,2105,2943,2105,3241,2105,3477,2105,3519,2105,781,2105,1047,2105,1153,2105,1245,2105,1483,2105,2623,2105,443,2105,549,2105,1741,2105,2025,2105,2491,2105,2507,2105,2581,2105,2835,2105,3065,2105,2025,2105,1461,2099,143,2099,519,2099,805,2099,851,2099,1101,2099,1131,2099,1155,2099,1685,2099,1741,2099,1837,2099,2387,2099,2563,2099,3189,2099,3379,2099,3427,2099,3433,2099,1495,2099,669,2099,1397,2099,2187,2099,3051,2099,1071,2103,2071,2103,1481,2103,1145,2103,3051,2101,907,131,3029,2101,1707,2101,3011,2101,3251,2101,2393,2115,15,2115,781,2115,1013,2115,1145,2115,1481,2115,1711,2115,2559,2115,2563,2115,2737,2115,3029,2115,3041,2115,3433,2115,1803,2115,2563,2115,3519,2109,2943,2111,653,2111,653,2111,1311,2111,1741,2111,2563,2111,3143,2111,1235,2111,1653,2111,2355,2125,799,2125,3153,2125,3227,2125,519,2125,627,2125,799,2125,1541,2125,2433,2125,2447,2125,3153,2125,3163,2119,2675,2133,1161,2133,1279,2143,443,2143,1019,2143,1483,2143,1771,2143,2491,2143,2649,2143,3199,2143,3487,2143,1241,2137,991,2137,1351,2137,1397,2137,1763,2137,1953,2137,2187,2137,2269,2137,3227,2137,3561,2137,397,2137,443,2137,519,2137,545,2137,645,2137,653,2137,735,2137,2137,2141,553,2141,851,2141,1047,2141,1607,2141,1687,2141,1769,2141,1803,2141,2147,2141,2891,2141,2981,2141,3051,2141,3105,2141,3435,2139,1201,2139,1485,2139,2191,2139,2263,2139,3219,2147,29,2147,63,2147,289,2147,403,2147,527,2147,577,2147,613,2147,627,2147,645,2147,739,2147,751,2147,943,2147,1019,2147,1077,2147,1095,2147,1115,2147,1235,2147,1455,2147,1523,2147,1615,2147,1733,2147,1741,2147,1763,2147,1769,2147,1891,2147,2147,2147,2371,2147,2549,2147,2559,2147,2559,2147,2563,2147,2563,2147,2581,2147,2635,2147,2675,2147,2835,2147,2947,2147,2985,2147,2985,2147,3011,2147,3045,2147,3041,2147,3177,2147,3185,2147,3223,2147,3251,2147,3257,2147,3415,2147,3423,2147,3487,2147,133,2147,613,2147,653,2147,821,2147,887,2147,1189,2147,1245,2147,1625,2147,2547,2147,2933,2147,3185,2147,3241,2147,531,2147,1189,2147,1337,2147,3041,2147,3189,2147,3385,2147,131,2147,781,2147,1711,2147,2507,2147,1343,2163,545,2163,577,2163,645,2163,1411,2163,2433,2163,2933,2157,3519,2159,1169,2159,1531,2159,65,2159,209,2159,289,2159,373,2159,757,2159,851,2159,1087,2159,1145,2159,1191,2159,1343,2159,1437,2159,1483,2159,1523,2159,1711,2159,1757,2159,2849,2159,2973,2159,3023,2159,1483,2171,63,2171,1191,2171,1741,2181,129,2181,513,2181,577,2181,1311,2181,1337,2181,1741,2181,1757,2181,2831,2181,323,2181,1741,2181,2029,2181,2147,2181,2581,2181,3379,2175,2743,2175,241,2175,2753,2175,2855,2179,1059,2179,2563,2179,2675,2179,3105,2179,3423,2179,1343,2179,645,2179,729,2179,1169,2179,1179,2179,2763,2179,2791,2179,2831,2179,3385,2179,151,2179,2981,2179,3519,2191,907,2191,2191,2191,2259,2191,3189,2191,3257,2191,3023,2191,3519,2191,1241,2191,2549,2191,2985,2191,3427,2191,1351,2191,1475,2191,1483,2191,2265,2191,1131,2191,1165,2191,1287,2191,1711,2191,1785,2191,2191,2191,2925,2191,3437,2191,2559,2191,3347,2191,601,2191,887,2191,1079,2191,2187,2191,2589,2985,1205,2185,193,2185,297,2185,1769,2185,2299,2185,2559,2185,2791,2185,2835,2185,3045,2185,3533,2185,2507,2185,443,2185,1165,2185,1863,2185,2563,2185,3005,2185,3237,2185,3437,2185,177,2185,209,2185,887,2185,1131,2185,1711,2185,1793,2185,2565,2185,2763,2185,2943,2185,3425,2185,379,2185,3185,2185,1891,2185,2925,2185,3241,2185,1449,2185,2675,2185,295,2185,519,2185,333,2185,1653,2185,2581,2185,2503,2185,1235,2185,2555,2185,2581,2185,3519,2185,2355,2185,2581,2185,2991,2185,3241,2185,2529,2185,1531,2189,1541,2189,2563,2189,3247,2189,193,2189,761,2189,1313,2189,1873,2189,3427,2189,687,2189,1803,2189,2845,2189,2925,2189,131,2189,347,2189,627,2189,731,2189,781,2189,1343,2189,1769,2189,2565,2189,3219,2189,3267,2189,3533,2189,133,2189,177,2189,193,2189,241,2189,379,2189,589,2189,627,2189,761,2189,781,2189,799,2189,1001,2189,1131,2189,1139,2189,1155,2189,1161,2189,1169,2189,1181,2189,1197,2189,1241,2189,1419,2189,1483,2189,1685,2189,1769,2189,2063,2189,2471,2189,2549,2189,2565,2189,2581,2189,2835,2189,3005,2189,3175,2189,3183,2189,3185,2189,3185,2189,3199,2189,3219,2189,3267,2189,3313,2189,3427,2189,3433,2189,3519,2187,627,2187,645,2187,655,2187,819,2187,887,2187,933,2187,985,2187,1139,2187,1343,2187,1437,2187,1475,2187,1483,2187,1661,2187,1703,2187,1711,2187,1837,2187,2305,2187,2471,2187,2555,2187,2565,2187,2589,2187,2855,2187,2985,2187,3051,2187,3065,2187,3091,2187,3267,2187,717,2187,935,2187,1983,2187,2631,2187,3227,2187,531,2187,1019,2187,1145,2187,209,2187,935,2187,1237,2187,2563,2187,3219,2187,3433,2187,2985,2197,2515,2197,1013,2197,2245,2197,2393,2197,2647,2211,799,2211,907,2211,1201,2211,1311,2211,1733,2211,2691,2211,2915,2211,3379,2211,29,2211,649,2211,1241,2211,3519,2211,317,2211,315,2211,1495,2211,1893,2211,2835,2211,2981,2211,133,2211,531,2211,527,2211,3423,2211,3517,2211,107,2211,339,2211,441,2211,887,2211,1019,2211,2635,2211,3091,2211,731,2211,1769,2211,2583,2211,3517,2211,2191,2205,445,2205,443,2205,751,2205,781,2205,1181,2205,1197,2205,1315,2205,1419,2205,1483,2205,1523,2205,1685,2205,1711,2205,1741,2205,1851,2205,1891,2205,2029,2205,2191,2205,2259,2205,2355,2205,2371,2205,2549,2205,2559,2205,2565,2205,2775,2205,2791,2205,2815,2205,2999,2205,3065,2205,3143,2205,3143,2205,3175,2205,3249,2205,3367,2205,3533,2205,3577,2205,3045,2205,209,2205,887,2205,1343,2205,29,2205,1401,2205,3001,2205,229,2205,799,2205,1483,2205,1873,2205,2349,2205,2631,2205,3045,2205,3283,2205,1173,2205,1827,2205,2581,2209,63,2209,527,2209,879,2209,985,2209,1161,2209,2209,2209,2471,2209,2631,2209,3003,2209,3105,2209,3519,2209,739,2209,2447,2209,2657,2207,29,2207,289,2207,1371,2207,2549,2207,2563,2207,241,2207,3207,2207,1019,2207,1891,2207,2583,2207,2691,2207,3185,2221,443,2221,527,2221,729,2221,1145,2221,1343,2221,2491,2221,2515,2221,2581,2221,2615,2221,2891,2221,3429,2221,781,2221,3519,2221,2471,2215,95,2215,511,2215,645,2215,661,2215,781,2215,887,2215,961,2215,1145,2215,1155,2215,1483,2215,2549,2215,2555,2215,2647,2215,2565,2215,2581,2215,3423,2215,3519,2215,1145,2215,1181,2215,1181,2215,1741,2215,2835,2215,3427,2233,2559,2235,513,2235,613,2235,1145,2235,1711,2235,3347,2229,1803,2229,3487,2229,1113,2229,1241,2229,1763,2229,2591,2229,3015,2229,1741,2229,1145,2229,1741,2229,2835,2229,1161,2233,1019,2233,1141,2233,1197,2233,2565,2233,2581,2233,3143,2231,1131,2231,3025,2231,53,2231,1483,2231,3423,2231,1711,2229,2295,2229,2581,2229,2925,2245,139,2245,373,2245,539,2245,549,2245,653,2245,1081,2245,1279,2245,1343,2245,1741,2245,2111,2245,2245,2245,3025,2239,1315,2243,1785,2241,2549,2241,961,2241,2821,2255,613,2255,1803,2255,3157,2255,323,2255,737,2255,2881,2255,113,2255,133,2255,177,2255,647,2255,905,2255,1019,2255,1343,2255,1483,2255,1531,2255,2255,2255,2259,2255,2349,2255,2355,2255,2503,2255,2549,2255,2559,2255,2565,2255,2581,2255,2593,2255,2591,2255,2689,2255,2923,2255,3041,2255,3419,2255,3429,2255,3519,2255,3517,2249,649,2249,2221,2249,2569,2249,2999,2249,2531,2249,1199,2249,1351,2249,2923,2249,3105,2249,3275,2249,1809,2253,887,2253,1237,2253,2563,2253,2565,2265,63,2265,241,2265,403,2265,431,2265,635,2265,887,2265,965,2265,985,2265,1495,2265,1541,2265,1575,2265,1607,2265,1891,2265,1909,2265,2265,2265,2471,2265,2507,2265,2529,2265,2543,2265,2791,2265,2825,2265,3189,2265,3237,2265,3265,2265,3447,2265,3519,2265,139,2265,645,2265,781,2265,799,2265,1095,2265,1129,2265,1283,2265,1541,2265,1983,2265,2125,2265,2185,2265,2265,2265,2515,2265,2549,2265,2559,2265,2559,2265,2557,2265,2631,2265,2801,2265,2939,2265,3041,2265,3153,2265,3433,2265,3487,2265,3519,2265,3559,2265,527,2265,2187,2265,247,2265,547,2265,627,2265,801,2265,1181,2265,1803,2265,1837,2265,2719,2265,2821,2265,2849,2265,3011,2265,3025,2265,3029,2265,3045,2265,3125,2265,63,2265,527,2265,847,2265,991,2265,1769,2265,2913,2265,3045,2265,3153,2259,1741,2259,1013,2259,1019,2259,1337,2259,2791,2263,1311,2263,29,2263,139,2263,887,2263,1179,2263,1771,2263,2891,2263,3559,2261,887,2261,1021,2261,3265,2269,961,2269,1351,2269,1397,2269,2191,2269,2355,2269,233,2269,985,2269,2507,2295,157,2295,653,2295,1165,2295,1863,2295,3001,2295,373,2295,627,2295,829,2295,991,2295,2159,2295,2209,2295,2447,2295,3029,2295,3535,2295,209,2295,451,2295,1241,2295,2397,2295,2649,2295,2985,2295,373,2295,781,2295,3029,2295,131,2295,777,2295,801,2295,2563,2295,2565,2295,3011,2289,545,2295,1191,2295,1205,2295,3423,2293,97,2293,209,2293,545,2293,729,2293,1209,2293,1455,2293,1769,2293,1849,2293,1983,2293,2147,2293,2555,2293,2991,2293,3011,2293,3025,2293,3041,2293,347,2291,373,2291,597,2291,961,2291,1891,2291,2371,2291,2559,2291,2691,2291,3011,2291,3059,2291,2565,2305,577,2299,139,2299,1483,2299,1483,2299,1711,2299,1793,2299,1873,2299,2243,2299,2563,2299,2565,2299,2589,2299,2939,2299,3347,2299,3433,2299,113,2299,193,2299,209,2299,339,2299,961,2299,1113,2299,1155,2299,1235,2299,1265,2299,1279,2299,1483,2299,1687,2299,1741,2299,1763,2299,1873,2299,1891,2299,2355,2299,2471,2299,2549,2299,2555,2299,2555,2299,2563,2299,2589,2299,2675,2299,2791,2299,2891,2299,2943,2299,2985,2299,3021,2299,3045,2299,3199,2299,295,2299,443,2299,2631,2299,2991,2299,225,2299,1145,2299,1181,2299,2569,2299,2581,2299,2923,2299,799,2299,1235,2299,2295,2299,2711,2299,907,2303,347,2303,1653,2303,3519,2301,1019,2301,1191,2301,1197,2301,2503,2301,3105,2301,3229,2301,3545,2313,553,2313,1131,2313,1343,2313,1711,2313,2569,2313,3001,2309,3519,2311,193,2311,97,2311,613,2311,1483,2311,2563,2311,3041,2311,3309,2311,2189,2313,2393,2313,3183,2319,3115,2317,519,2317,1241,2317,1237,2317,2259,2317,2507,2317,3011,2317,3059,2317,3433,2323,1343,2323,747,2323,2525,2325,2471,2329,3519,2333,2849,2333,373,2333,2905,2331,193,2331,545,2331,1279,2339,1771,2339,2355,2339,2835,2339,907,2343,627,2343,1615,2343,1763,2341,545,2351,1131,2351,2187,2351,2565,2349,15,2349,195,2349,295,2349,519,2349,589,2349,645,2349,781,2349,897,2349,1145,2349,1437,2349,1483,2349,1711,2349,1849,2349,1873,2349,2187,2349,2259,2349,2631,2349,2749,2349,2791,2349,2849,2349,2925,2349,3025,2349,3045,2349,3197,2355,209,2355,339,2355,443,2355,511,2355,531,2355,545,2355,737,2355,745,2355,851,2355,887,2355,985,2355,1131,2355,1155,2355,1165,2355,1209,2355,1343,2355,1483,2355,1653,2355,1763,2355,1771,2355,2141,2355,2187,2355,2259,2355,2317,2355,2355,2355,2371,2355,2549,2355,2559,2355,2559,2355,2563,2355,2565,2355,2581,2355,2589,2355,2835,2355,2925,2355,2933,2355,2943,2355,3011,2355,3045,2355,3051,2355,3149,2355,3185,2355,3207,2355,3237,2355,3437,2355,3435,2355,3455,2355,15,2355,553,2355,965,2355,1059,2355,2355,2355,3065,2355,3185,2359,1821,2359,2579,2359,2827,2359,3045,2359,2587,2359,3429,2357,1237,2357,1343,2357,379,2357,501,2357,613,2357,907,2357,1313,2357,1769,2357,1771,2357,2255,2357,2265,2357,2559,2357,2593,2357,2825,2357,2835,2357,2933,2357,3411,2357,3429,2357,3517,2357,3559,2357,3577,2357,139,2357,451,2357,1019,2357,1179,2357,1661,2357,1771,2357,2191,2357,2259,2357,3051,2357,3185,2357,3219,2357,519,2357,1197,2357,3051,2371,79,2371,113,2371,379,2371,887,2371,943,2371,951,2371,1165,2371,1161,2371,1161,2371,1287,2371,1483,2371,1803,2371,1863,2371,2191,2371,2205,2371,2531,2371,2563,2371,2891,2371,3175,2371,3207,2371,3219,2371,3241,2371,3247,2371,3247,2371,3257,2371,3275,2371,3385,2371,3425,2371,3437,2375,1145,2375,1653,2375,3487,2375,1685,2375,943,2375,951,2375,2397,2375,1081,2375,1685,2375,3189,2375,501,2375,943,2375,1145,2375,1687,2375,1811,2375,2187,2375,2259,2375,2355,2375,2549,2375,1019,2375,1191,2375,2375,2375,2589,2375,653,2375,1191,2375,1019,2375,1019,2375,1113,2375,1191,2375,2831,2379,133,2379,735,2379,3237,2379,3275,2379,295,2385,295,2385,545,2385,1019,2385,1077,2385,1707,2385,2259,2385,2421,2385,2635,2385,3051,2385,1019,2387,175,2387,831,2387,947,2387,965,2387,1047,2387,1729,2387,1785,2387,2029,2387,2111,2387,2471,2387,2549,2387,2563,2387,2827,2387,2835,2387,3457,2393,379,2393,445,2393,443,2393,905,2393,965,2393,1019,2393,1419,2393,2191,2393,2511,2393,2563,2393,2589,2393,2825,2393,2991,2393,3189,2393,3185,2393,1155,2393,1179,2393,2559,2393,3105,2393,3127,2393,627,2393,3519,2393,627,2393,2393,2397,63,2397,347,2397,717,2397,1729,2397,1769,2397,1805,2397,2743,2397,2835,2397,3015,2397,1771,2395,311,2395,537,2395,545,2395,613,2395,631,2395,661,2395,799,2395,907,2395,907,2395,1079,2395,1113,2395,1343,2395,1523,2395,1711,2395,1739,2395,2531,2395,2543,2395,2559,2395,2563,2395,2565,2395,2581,2395,2629,2395,2849,2395,2855,2395,2891,2395,2939,2395,3029,2395,3105,2395,3175,2395,3249,2395,3455,2395,2349,2395,531,2407,3247,2407,781,2407,847,2407,907,2407,933,2407,1783,2407,1803,2407,2111,2407,2563,2407,2631,2407,2743,2407,3051,2413,1181,2413,1483,2413,2187,2413,3185,2413,1201,2413,3015,2413,3055,2413,3425,2421,1891,2421,2371,2421,3257,2421,133,2421,851,2421,1077,2421,2471,2421,2565,2427,761,2427,831,2427,965,2427,1019,2427,511,2427,2631,2427,3023,2427,3425,2433,1155,2433,2433,2433,2891,2435,527,2435,1279,2435,1415,2435,2187,2435,2581,2435,3177,2443,1047,2443,951,2443,2511,2439,1113,2439,1653,2439,2063,2439,2565,2451,59,2451,79,2451,97,2451,333,2451,649,2451,799,2451,961,2451,1013,2451,1019,2451,1019,2451,1101,2451,1173,2451,1181,2451,1179,2451,1265,2451,1623,2451,1711,2451,1769,2451,1953,2451,2191,2451,2559,2451,2559,2451,2563,2451,2651,2451,3005,2451,2999,2451,3015,2451,3055,2451,3247,2451,3257,2449,177,2447,193,2447,747,2447,1113,2447,1279,2447,2569,2447,2631,2447,3045,2459,965,2459,3175,2457,1711,2457,3199,2459,1485,2459,1615,2459,2565,2467,2581,2467,2835,2467,627,2467,1615,2467,2355,2465,373,2465,577,2465,1101,2465,1461,2465,1677,2465,1757,2465,2147,2465,2265,2465,2531,2465,2589,2471,267,2471,645,2471,943,2471,949,2471,1415,2471,1435,2471,1677,2471,2259,2471,2447,2471,2675,2471,2711,2481,2355,2481,2845,2481,3433,2491,1145,2491,2187,2491,2265,2491,2355,2491,2515,2491,2559,2491,2581,2491,2649,2491,2835,2491,95,2491,577,2491,731,2491,965,2491,1107,2491,1101,2491,1139,2491,1201,2491,1575,2491,1711,2491,2491,2491,2565,2491,2849,2491,3237,2491,3239,2491,299,2491,1711,2491,1201,2491,1623,2491,1837,2491,2743,2491,2849,2491,3427,2491,3519,2711,241,2489,917,2489,2187,2491,133,2487,2563,2499,3519,2495,295,2495,831,2495,2845,2507,241,2507,403,2507,495,2507,531,2507,545,2507,577,2507,593,2507,631,2507,781,2507,857,2507,961,2507,965,2507,1019,2507,1047,2507,1073,2507,1081,2507,1131,2507,1181,2507,1205,2507,1241,2507,1343,2507,1661,2507,1711,2507,1763,2507,2311,2507,2355,2507,2471,2507,2543,2507,2565,2507,2631,2507,2753,2507,2835,2507,2985,2507,2981,2507,3015,2507,3013,2507,3153,2507,3177,2507,3199,2507,3457,2507,3519,2507,373,2491,1803,2507,373,2507,821,2507,627,2507,2259,223,3519,2507,2187,2507,3437,2505,131,2505,589,2505,627,2505,943,2505,963,2505,1145,2505,1279,2505,1893,2505,2531,2505,2549,2505,2569,2505,3001,2505,2985,2503,2187,2503,907,2503,1741,2503,3491,2503,113,2503,139,2503,1239,2503,2355,2503,2565,2503,3045,2503,3185,2503,2503,2503,295,2503,3517,2503,757,2503,2563,2503,139,2503,3157,2515,107,2515,177,2515,781,2515,991,2515,1085,2515,1315,2515,1343,2515,2259,2515,2549,2515,2543,2515,2559,2515,2565,2515,2827,2515,3045,2515,613,2515,649,2515,661,2515,1001,2515,1113,2515,1141,2515,1155,2515,1163,2515,1503,2515,2141,2515,2259,2515,2355,2515,2855,2515,3185,2515,2259,2513,2973,2513,781,2513,943,2513,1201,2513,2563,2513,2913,2513,3257,2511,79,2511,233,2511,243,2511,333,2511,427,2511,443,2511,751,2511,781,2511,799,2511,887,2511,907,2511,935,2511,985,2511,1013,2511,1111,2511,1131,2511,1155,2511,1183,2511,1199,2511,1197,2511,1197,2511,1337,2511,1343,2511,1371,2511,1419,2511,1523,2511,1653,2511,1711,2511,1741,2511,1891,2511,2141,2511,2355,2511,2507,2511,2511,2511,2549,2511,2565,2511,2581,2511,2581,2511,2631,2511,2629,2511,2651,2511,2675,2511,2681,2511,2709,2511,2791,2511,2935,2511,2943,2511,2973,2511,2991,2511,2999,2511,3021,2511,3045,2511,3105,2511,3175,2511,3189,2511,3227,2511,3249,2511,3257,2511,3377,2511,3487,2511,3533,2511,1313,2511,2243,2511,3425,2525,519,2525,1181,2525,107,2525,175,2525,1107,2525,1115,2525,1661,2525,2515,2525,3015,2525,3045,2525,3427,2525,2565,2525,2939,2525,2933,2525,887,2519,943,2523,717,2523,985,2523,1161,2523,1311,2523,1485,2523,2515,2523,2563,2523,2589,2523,3231,2521,177,2521,2199,2531,1165,2531,1483,2531,2549,2531,2991,2531,613,2531,729,2531,745,2531,799,2531,1141,2531,1235,2531,1483,2531,2471,2531,2569,2531,1113,2531,1183,2531,1625,2531,2147,2531,2317,2531,2855,2531,1145,2531,1209,2531,1711,2531,2137,2531,2581,2531,3207,2531,133,2531,2905,2531,2999,2531,2559,2531,2563,2531,3011,2531,3207,2531,3015,2549,1769,2549,2263,2549,2563,2549,379,2549,1279,2549,2581,2549,2711,2549,3379,2549,295,2549,3423,2549,209,2549,653,2549,847,2549,905,2549,1155,2549,1179,2549,2295,2549,2511,2549,2581,2549,2579,2549,3045,2549,3207,2549,295,2549,3507,2549,3193,2549,645,2549,879,2549,941,2549,2209,2549,2259,2549,2507,2549,2549,2549,2831,2549,2837,2549,3011,2549,3041,2549,3175,2549,3185,2549,3233,2549,3251,2549,295,2563,1199,2543,133,2543,545,2543,781,2543,1121,2543,1183,2543,1209,2543,1483,2543,1511,2543,1541,2543,1711,2543,1731,2543,1769,2543,1803,2543,1953,2543,1977,2543,2141,2543,2185,2543,2187,2543,2187,2543,2259,2543,2295,2543,2355,2543,2471,2543,2515,2543,2531,2543,2555,2543,2647,2543,2675,2543,2681,2543,2815,2543,2831,2543,2939,2543,3005,2543,3011,2543,3021,2543,3105,2543,3227,2543,3267,2543,3425,2543,3425,2543,3447,2543,3455,2547,265,2547,613,2547,821,2547,1019,2547,1141,2547,1707,2547,2041,2547,3145,2547,3185,2547,1811,2545,1393,2545,1837,2545,2933,2545,3433,2559,79,2559,323,2559,847,2559,851,2559,935,2559,1169,2559,1337,2559,1483,2559,2147,2559,2189,2559,2791,2559,3105,2559,3377,2559,139,2559,209,2559,289,2559,333,2559,441,2559,577,2559,627,2559,741,2559,781,2559,943,2559,1091,2559,1129,2559,1145,2559,1141,2559,1335,2559,1419,2559,1475,2559,1483,2559,1541,2559,1741,2559,1771,2559,1805,2559,2147,2559,2187,2559,2205,2559,2355,2559,2371,2559,2387,2559,2471,2559,2549,2559,2559,2559,2565,2559,2581,2559,2593,2559,2631,2559,2649,2559,2809,2559,2849,2559,2985,2559,3021,2559,3051,2559,3157,2559,3183,2559,3185,2559,3227,2559,3239,2559,3457,2559,3517,2559,187,2559,193,2559,339,2559,519,2559,943,2559,1437,2559,1711,2559,1769,2559,1769,2559,1805,2559,1811,2559,2049,2559,2137,2559,2221,2559,2259,2559,2263,2559,2471,2559,2565,2559,2675,2559,2925,2559,2939,2559,2985,2559,3013,2559,3105,2559,3143,2559,3153,2559,3199,2559,3247,2559,3267,2559,3379,2559,3545,2559,1343,2559,1977,2557,139,2557,545,2557,1113,2557,1483,2557,2311,2557,2565,2557,3045,2555,577,2555,1187,2555,1209,2555,1541,2555,1769,2555,1805,2555,2355,2555,2511,2555,2581,2555,2631,2555,65,2555,577,2555,963,2555,1483,2555,2647,2555,2681,2555,2991,2555,3237,2569,907,2569,2549,2569,2581,2569,65,2569,265,2569,397,2569,531,2569,577,2569,597,2569,1019,2569,1163,2569,1343,2569,1485,2569,1483,2569,1541,2569,1739,2569,1769,2569,2071,2569,2311,2569,2317,2569,2447,2569,2471,2569,2549,2569,2543,2569,2559,2569,2563,2569,2563,2569,2565,2569,2565,2569,2581,2569,2581,2569,2631,2569,2675,2569,2681,2569,2795,2569,2925,2569,3001,2569,3021,2569,3041,2569,3105,2569,3143,2569,3185,2569,3199,2569,3411,2569,3433,2569,3455,2569,151,2569,397,2569,553,2569,729,2569,887,2569,1805,2569,2559,2569,2565,2569,2845,2569,2855,2569,3065,2569,107,2569,209,2569,311,2569,441,2569,781,2569,857,2569,1001,2569,1113,2569,1237,2569,1625,2569,2259,2569,2355,2569,2531,2569,2555,2569,2943,2569,3105,2569,3185,2569,3267,2569,3577,2569,711,2569,729,2569,747,2569,755,2569,887,2569,1155,2569,1179,2569,1485,2569,2565,2569,2939,2569,3219,2569,3241,2569,3455,2569,577,2569,645,2569,2187,2569,2349,2569,2421,2569,2837,2569,241,2563,719,2563,751,2563,1891,2563,2299,2563,2915,2563,3189,2563,3257,2563,3517,2563,107,2563,133,2563,209,2563,601,2563,751,2563,847,2563,887,2563,907,2563,935,2563,1209,2563,1285,2563,1311,2563,1711,2563,1783,2563,1977,2563,2147,2563,2187,2563,2265,2563,2507,2563,2565,2563,2581,2563,2709,2563,3011,2563,3227,2563,3519,2563,267,2563,943,2563,1145,2563,1165,2563,1235,2563,1311,2563,1337,2563,2147,2563,2191,2563,2187,2563,2355,2563,2371,2563,2563,2563,2565,2563,2565,2563,2675,2563,2991,2563,3005,2563,3021,2563,3045,2563,157,2563,209,2563,1131,2563,1161,2563,2159,2563,3517,2563,441,2563,527,2563,577,2563,1483,2563,1483,2563,2259,2563,2569,2563,2563,2563,2563,2563,2565,2563,2583,2563,2589,2563,3001,2563,3011,2563,3021,2563,3045,2563,3105,2563,3145,2563,3185,2563,3219,2563,3283,2563,3389,2563,3517,2563,1107,2563,1541,2563,3183,2563,545,2563,933,2563,1145,2563,1237,2563,2141,2563,2387,2563,2545,2563,2743,2563,3015,2563,3051,2563,2675,2563,3143,2563,3219,2563,3227,2563,113,2563,1311,2567,935,2567,1625,2567,2147,2567,2205,2567,2563,2567,3105,2567,1343,2567,3425,2567,1087,2567,1197,2567,1771,2567,1977,2567,2855,2567,3185,2567,3219,2567,1785,2567,3545,2565,177,2565,935,2565,1977,2565,2187,2565,2355,2565,3541,2565,1207,2565,1483,2565,2355,2565,2939,2565,3185,2565,3433,2565,397,2565,545,2565,781,2565,905,2565,1141,2565,1155,2565,1165,2565,1183,2565,1235,2565,1741,2565,2255,2565,2259,2565,2355,2565,2511,2565,2565,2565,2905,2565,2981,2565,3065,2565,1197,2565,1977,2565,491,2565,589,2565,1485,2565,1507,2565,1741,2565,1763,2565,2259,2565,2559,2565,2647,2565,3389,2565,3407,2565,2939,2565,3519,2565,1483,2565,1483,2565,1873,2565,2835,2565,3165,2565,139,2565,717,2565,905,2565,1145,2565,1483,2565,2205,2565,2259,2565,2563,2565,2565,2565,3005,2565,3455,2565,451,2565,777,2565,1483,2565,1955,2565,1977,2565,3157,2565,441,2565,151,2565,289,2565,761,2565,887,2565,933,2565,1001,2565,1245,2565,1287,2565,1283,2565,2111,2565,2581,2565,2845,2565,3025,2565,3145,2565,3219,2565,3427,2565,265,2565,267,2565,1181,2565,1483,2565,2821,2565,2933,2565,3177,2565,175,2565,2623,2565,761,2565,795,2565,209,2565,645,2565,1019,2565,1343,2565,2563,2565,3025,2565,3185,2565,3219,2565,3437,2565,1863,2565,1977,2565,2905,2565,747,2565,1085,2565,1179,2565,1245,2565,1483,2565,2581,2565,2943,2565,3183,2565,3185,2565,441,2565,2569,2565,2649,2565,3143,2565,3411,2583,177,2583,229,2583,333,2583,731,2583,751,2583,757,2583,887,2583,1111,2583,1199,2583,1283,2583,1343,2583,1485,2583,1499,2583,1811,2583,2265,2583,2547,2583,2559,2583,2569,2583,2563,2583,2565,2583,2579,2583,2589,2583,2711,2583,2821,2583,2943,2583,2985,2583,3021,2583,3045,2583,3157,2583,3429,2583,3423,2581,103,2581,113,2581,133,2581,151,2581,311,2581,589,2581,653,2581,729,2581,887,2581,907,2581,1145,2581,1181,2581,1199,2581,1245,2581,1461,2581,1623,2581,1741,2581,1783,2581,2023,2581,2187,2581,2559,2581,2565,2581,2835,2581,2991,2581,3045,2581,3193,2581,3241,2581,295,2581,3427,2581,3541,2581,177,2581,333,2581,729,2581,887,2581,1069,2581,1173,2581,1265,2581,1541,2581,1711,2581,2459,2581,2549,2581,2563,2581,2565,2581,2691,2581,2849,2581,2925,2581,3041,2581,3175,2581,443,2581,649,2581,689,2581,731,2581,737,2581,801,2581,887,2581,1001,2581,1851,2581,2565,2581,3005,2581,3165,2581,3185,2579,209,2579,943,2579,1485,2579,1741,2579,1771,2579,1803,2579,2589,2579,2753,2579,3055,2579,3189,2579,963,2579,991,2579,1113,2579,1179,2579,1209,2579,1209,2579,1351,2579,1475,2579,1485,2579,1771,2579,2187,2579,2269,2579,2295,2579,2349,2579,2397,2579,2515,2579,2547,2579,2565,2579,2821,2579,2891,2579,3219,2579,3545,2579,3559,2579,3051,2579,3023,2579,295,2579,3519,2593,103,2593,113,2593,729,2593,1079,2593,1155,2593,1163,2593,1235,2593,1245,2593,1287,2593,1343,2593,1625,2593,1741,2593,1769,2593,1803,2593,2147,2593,2531,2593,2559,2593,2555,2593,2565,2593,2647,2593,3015,2593,3041,2593,3207,2593,3249,2593,731,2593,1085,2593,2259,2593,1145,2593,3165,2593,3441,2593,887,2593,1805,2593,3519,2593,3545,2593,2649,2593,1977,2593,297,2593,1095,2593,1245,2593,2447,2593,3045,2593,3379,2593,747,2593,801,2593,1163,2593,1191,2593,2447,2593,2569,2593,2831,2593,3251,2593,379,2593,589,2593,1155,2593,2657,2593,965,2587,1733,2587,1111,2587,1201,2587,2549,2587,3559,2587,2569,2587,545,2587,577,2587,1891,2587,2355,2587,2563,2587,2563,2587,2581,2587,2629,2587,2809,2587,2849,2587,2985,2587,3241,2587,3429,2587,3517,2591,799,2591,2191,2591,2187,2591,2349,2591,2791,2591,3519,2591,1769,2591,1199,2591,943,2591,2471,2589,1315,2589,3241,2589,2581,2589,519,2589,2549,2589,2581,2589,3487,2589,1085,2589,2147,2589,553,2589,1483,2589,1803,2589,2355,2589,2549,2589,3175,2589,3199,2589,3207,2589,3435,2589,1483,2589,3423,2589,3519,2589,3559,2589,1145,2589,3519,2589,151,2589,441,2589,1523,2589,1625,2589,1803,2589,3105,2589,3457,2589,3517,2589,1343,2601,1415,2601,3045,2601,3519,2599,1077,2599,1955,2609,65,2609,139,2609,241,2609,1449,2609,2867,2609,2939,2609,547,2607,1279,2607,1661,2607,2581,2607,2891,2605,209,2615,3519,2623,513,2623,549,2623,751,2623,935,2623,2255,2623,2299,2623,2371,2623,2559,2623,2559,2623,2623,2623,2743,2623,3013,2623,3055,2623,3257,2623,323,2623,1081,2623,1169,2623,2191,2623,2791,2623,3175,2623,1241,2621,1483,2621,3045,2621,3051,2627,3429,2631,133,2631,151,2631,177,2631,187,2631,241,2631,289,2631,545,2631,581,2631,577,2631,589,2631,601,2631,669,2631,731,2631,755,2631,757,2631,781,2631,887,2631,965,2631,1019,2631,1021,2631,1047,2631,1071,2631,1081,2631,1107,2631,1131,2631,1191,2631,1207,2631,1265,2631,1343,2631,1461,2631,1483,2631,1483,2631,1541,2631,1575,2631,1623,2631,1607,2631,1711,2631,1741,2631,1783,2631,1805,2631,1873,2631,1909,2631,2147,2631,2187,2631,2259,2631,2471,2631,2529,2631,2543,2631,2569,2631,2565,2631,2581,2631,2835,2631,2849,2631,2943,2631,2981,2631,2991,2631,3005,2631,3015,2631,3055,2631,3051,2631,3149,2631,3193,2631,3239,2631,3267,2631,3457,2629,531,2629,729,2629,1201,2629,2199,2629,1371,2629,1483,2629,1803,2629,2583,2629,3435,2629,1495,2629,1739,2629,3015,2629,3189,2629,3185,2637,2985,2635,139,2635,289,2635,297,2635,443,2635,451,2635,519,2635,539,2635,545,2635,553,2635,781,2635,1019,2635,1181,2635,1343,2635,1483,2635,1763,2635,2187,2635,2259,2635,2565,2635,2581,2635,2631,2635,3045,2635,3185,2635,3185,2635,1165,2635,1311,2635,2563,2635,2985,2643,63,2643,297,2643,403,2643,441,2643,545,2643,729,2643,1013,2643,1019,2643,1019,2643,1179,2643,1279,2643,1769,2643,2159,2643,2255,2643,2259,2641,751,2641,781,2641,2371,2641,2925,2641,3257,2641,965,2641,965,2651,729,2651,1145,2651,1337,2651,1653,2651,1827,2651,2845,2651,2971,2651,67,2651,519,2651,917,2651,943,2651,1739,2651,2999,2651,229,2651,289,2651,553,2651,729,2651,751,2651,1131,2651,1155,2651,1161,2651,1183,2651,1515,2651,1483,2651,1483,2651,1837,2651,1893,2651,2259,2651,2355,2651,2515,2651,2565,2651,2831,2651,2845,2651,2881,2651,2991,2651,493,2651,907,2651,963,2651,1793,2651,1803,2651,1893,2651,2255,2651,2259,2651,2709,2651,3185,2651,2943,2651,513,2651,2491,2651,2581,2651,317,2651,1115,2651,1279,2651,1523,2651,3167,2649,157,2649,289,2649,323,2649,537,2649,577,2649,943,2649,949,2649,1095,2649,1129,2649,1181,2649,1341,2649,1483,2649,1741,2649,1757,2649,1771,2649,2191,2649,2185,2649,2187,2649,2355,2649,2515,2649,2543,2649,2569,2649,2581,2649,2631,2649,2649,2649,2923,2649,3045,2649,3041,2649,3199,2649,3559,2647,2563,2647,63,2647,193,2647,379,2647,403,2647,751,2647,905,2647,985,2647,1001,2647,1073,2647,1113,2647,1161,2647,1181,2647,1741,2647,2049,2647,2147,2647,2189,2647,2265,2647,2447,2647,2531,2647,2559,2647,2563,2647,2905,2647,2925,2647,2991,2647,3015,2647,3177,2647,3249,2647,1145,2647,241,2647,3157,2647,1653,2647,1145,2647,1483,2647,3185,2647,3519,2661,67,2661,627,2661,965,2661,1081,2661,1095,2661,1173,2661,1199,2661,1197,2661,1279,2661,1343,2661,1769,2661,1803,2661,2187,2661,2581,2661,2589,2661,2849,2661,2991,2661,3015,2661,3045,2661,3149,2661,3175,2661,3411,2661,3519,2661,2507,2659,627,2659,1483,2659,2821,2657,441,2657,2569,2657,157,2657,333,2657,781,2657,861,2657,1091,2657,1131,2657,1163,2657,1183,2657,1485,2657,1771,2657,2187,2657,2255,2657,2259,2657,2547,2657,2649,2657,3041,2657,441,2657,857,2657,3153,2669,1163,2669,1181,2669,2549,2669,2709,2669,443,2677,63,2677,531,2677,1803,2677,3519,2677,2743,2677,3227,2673,339,2673,1155,2673,1769,2673,2187,2673,2355,2673,2565,2673,3241,2673,3519,2673,3517,2675,2999,2675,3175,2675,1351,2675,3457,2675,739,2675,1483,2675,1803,2675,2265,2675,2491,2675,63,2675,209,2675,225,2675,527,2675,965,2675,1187,2675,1419,2675,2371,2675,2471,2675,2563,2675,2589,2675,3045,2675,3051,2675,3127,2675,3157,2675,3227,2675,3425,2675,3487,2675,333,2675,645,2675,1077,2675,2375,2675,2531,2675,2681,2675,3021,2675,1733,2675,1837,2675,3519,2675,3011,2675,3051,2685,65,2685,129,2685,1351,2685,2827,2685,3045,2685,3051,2685,3241,2681,1101,2681,2835,2681,241,2681,729,2681,1141,2681,1771,2681,2589,2681,3105,2681,3519,2681,3577,2689,3251,2689,1019,2693,985,2691,267,2691,379,2691,373,2691,1785,2691,1803,2691,2581,2691,2589,2691,3257,2691,3045,2691,3185,2691,193,2691,1081,2691,1523,2691,1733,2691,2111,2691,545,2691,3519,2703,1977,2701,1087,2701,1115,2701,2355,2701,2515,2701,2569,2701,831,2701,917,2701,1165,2701,2835,2711,3519,2711,3189,2711,1145,2711,655,2711,1111,2711,1199,2711,1197,2711,1237,2711,2581,2711,2631,2711,2835,2711,2939,2711,3023,2711,3207,2709,193,2709,2591,2709,3187,2709,3231,2709,3283,2709,295,2709,545,2709,1091,2709,1113,2709,1191,2709,2069,2709,2709,2709,3051,2709,3165,2709,3519,2709,907,2709,961,2709,2511,2709,3257,2709,3519,2719,1891,2719,2355,2719,2371,2719,2491,2719,3015,2719,1415,2719,751,2719,3001,2719,3045,2715,193,2715,431,2715,857,2715,1287,2715,1283,2715,1337,2715,2265,2729,627,2729,717,2729,1179,2729,1237,2729,1685,2729,2187,2729,2559,2729,3189,2723,29,2723,105,2723,193,2723,335,2723,441,2723,577,2723,781,2723,1145,2723,1483,2723,1741,2723,3437,2723,15,2723,335,2723,847,2723,1239,2723,2581,2723,2835,2725,63,2725,97,2725,233,2725,887,2725,907,2725,1019,2725,1067,2725,1337,2725,2147,2725,2545,2725,2569,2725,2581,2725,2691,2725,2725,2725,2935,2725,2985,2725,3091,2725,3105,2725,3199,2725,3253,2725,3519,2725,3545,2725,645,2725,2565,2725,637,2725,961,2725,1019,2725,2507,2725,3241,2739,751,2739,2719,2739,3001,2739,107,2739,209,2739,935,2739,1113,2739,2471,2739,2559,2739,2563,2739,2845,2739,2913,2739,3045,2739,3305,2739,1279,2739,2515,2739,577,2739,2835,2739,3153,2739,3519,2733,1081,2733,781,2733,1625,2733,2791,2733,2849,2733,3045,2733,3197,2733,3015,2737,63,2737,1095,2737,1311,2737,3423,2737,1069,2735,441,2735,2187,2735,2985,2735,133,2735,1079,2735,1209,2735,1081,2735,3519,2749,1741,2749,2631,2749,2835,2749,2855,2749,3247,2747,55,2749,1145,2743,2507,2743,2851,2743,3487,2743,1101,2743,1113,2743,3519,2743,139,2743,3045,2743,299,2743,527,2743,917,2743,965,2743,1209,2743,2355,2743,2563,2743,2631,2743,2985,2743,3189,2743,3427,2747,547,2745,1081,2745,1201,2745,1741,2745,2515,2745,2581,2745,2835,2745,1653,2759,3519,2759,2791,2759,1113,2753,131,2753,177,2753,669,2753,737,2753,1107,2753,1113,2753,1481,2753,1771,2753,2063,2753,2447,2753,2559,2753,2629,2753,2891,2753,3105,2753,3535,2753,1047,2753,1081,2753,1485,2753,2471,2753,887,2753,933,2753,1265,2753,2187,2753,2849,2753,2943,2753,1201,2753,1733,2753,2543,2757,349,2757,1091,2757,1013,2757,1179,2757,1625,2757,1733,2757,2147,2757,2189,2757,2255,2757,2259,2757,2999,2757,3145,2757,3165,2755,879,2755,933,2755,1047,2755,1113,2755,1165,2755,1483,2755,1653,2755,2589,2755,2709,2755,3219,2755,3241,2755,3487,2755,3519,2755,3577,2763,157,2763,289,2763,379,2763,445,2763,577,2763,613,2763,887,2763,1069,2763,1139,2763,1287,2763,1483,2763,1771,2763,2471,2763,3021,2763,3051,2763,3185,2763,3231,2763,295,2763,3419,2763,3435,2767,15,2767,2827,2767,359,2767,761,2767,1337,2767,2265,2767,1101,2767,3519,2781,373,2781,1047,2781,2837,2781,513,2775,53,2775,133,2775,333,2775,379,2775,441,2775,531,2775,729,2775,847,2775,887,2775,1081,2775,1131,2775,1183,2775,1371,2775,1769,2775,2189,2775,2205,2775,2255,2775,2263,2775,2543,2775,2547,2775,2581,2775,3165,2775,3185,2775,3313,2775,1353,2775,53,2775,209,2775,441,2775,1081,2775,1191,2775,1371,2775,1769,2775,1803,2775,3185,2775,3517,2779,151,2779,243,2779,265,2779,851,2779,1113,2779,1145,2779,1163,2779,1483,2779,1483,2779,1687,2779,1741,2779,1863,2779,1873,2779,1893,2779,2221,2779,2981,2779,3001,2779,3021,2779,3051,2779,3145,2779,295,2779,3433,2777,549,2777,645,2777,2835,2777,1541,2777,2187,2777,79,2777,195,2777,887,2777,2549,2791,97,2791,97,2791,177,2791,187,2791,209,2791,333,2791,359,2791,545,2791,577,2791,589,2791,687,2791,751,2791,831,2791,887,2791,887,2791,887,2791,897,2791,943,2791,961,2791,1019,2791,1019,2791,1081,2791,1101,2791,1145,2791,1337,2791,1653,2791,1711,2791,1769,2791,1771,2791,1891,2791,1977,2791,2089,2791,2147,2791,2187,2791,2265,2791,2299,2791,2371,2791,2471,2791,2507,2791,2511,2791,2543,2791,2559,2791,2569,2791,2563,2791,2589,2791,2791,2791,2815,2791,2835,2791,2851,2791,2905,2791,2923,2791,2939,2791,2943,2791,2991,2791,3005,2791,3045,2791,3051,2791,3185,2791,3253,2791,3247,2791,3319,2791,295,2791,3411,2791,3415,2791,3455,2791,3519,2791,195,2791,1155,2785,289,2785,577,2785,1155,2785,1165,2785,1205,2785,1285,2785,1485,2785,2191,2785,2439,2785,2531,2785,2835,2785,3177,2785,3455,2785,3519,2785,527,2785,1707,2785,195,2785,359,2785,441,2785,647,2785,731,2785,751,2785,2147,2785,2443,2785,3129,2801,443,2801,2563,2801,2835,2795,323,2795,951,2795,1145,2795,1371,2795,1483,2795,1803,2795,2943,2795,1019,2795,1019,2795,1069,2795,1179,2795,1191,2795,1955,2795,2137,2795,2259,2795,2471,2795,2565,2795,2815,2795,2985,2795,3157,2795,3199,2795,3265,2795,1891,2797,79,2797,627,2797,847,2797,1001,2797,1019,2797,1181,2797,1653,2797,2185,2797,2543,2797,2553,2797,2631,2797,3251,2807,3105,2811,195,2811,1019,2811,1081,2811,1079,2811,1201,2811,1741,2811,2549,2811,2631,2811,2985,2811,3001,2811,3045,2809,133,2809,175,2809,299,2809,513,2809,545,2809,617,2809,613,2809,887,2809,933,2809,1079,2809,1091,2809,1129,2809,1153,2809,1265,2809,1653,2809,1711,2809,55,2809,2111,2809,2187,2809,2265,2809,2355,2809,2589,2809,2631,2809,2709,2809,2775,2809,3045,2809,3189,2821,139,2821,451,2821,1113,2821,1161,2821,1483,2821,1771,2821,2547,2821,3041,2821,3433,2821,3487,2821,3519,2815,2565,2815,2935,2815,2973,2815,373,2815,2547,2815,3249,2815,131,2815,151,2815,289,2815,589,2815,747,2815,887,2815,1001,2815,1287,2815,2563,2815,2581,2815,2631,2815,2985,2815,3105,2819,53,2819,1197,2819,1239,2819,1483,2819,2189,2819,2549,2819,3423,2819,3519,2831,139,2831,209,2831,241,2831,297,2831,339,2831,349,2831,545,2831,589,2831,781,2831,935,2831,963,2831,985,2831,1001,2831,1013,2831,1131,2831,1155,2831,1191,2831,1209,2831,1483,2831,1483,2831,1495,2831,1541,2831,1625,2831,1769,2831,1769,2831,1891,2831,2187,2831,2355,2831,2515,2831,2549,2831,2565,2831,2635,2831,2791,2831,2831,2831,2825,2831,2837,2831,3023,2831,3041,2831,3051,2831,3175,2831,3219,2831,3227,2831,295,2831,3429,2831,3447,2825,79,2825,193,2825,537,2825,545,2825,553,2825,737,2825,951,2825,1001,2825,1241,2825,1315,2825,1455,2825,1711,2825,1769,2825,1793,2825,1891,2825,2191,2825,2205,2825,2259,2825,2261,2825,2355,2825,2371,2825,2511,2825,2559,2825,2563,2825,2565,2825,2691,2825,2983,2825,3015,2825,3045,2825,3051,2825,3105,2825,3189,2825,3185,2825,3185,2825,3199,2825,3425,2825,3435,2825,3265,2825,3015,2825,3227,2825,3519,2825,1607,2825,139,2825,887,2825,1891,2825,1977,2825,2507,2825,2559,2825,3045,2825,3055,2825,3411,2825,3411,2825,3487,2825,3519,2825,935,2829,339,2829,933,2829,1131,2829,1141,2829,2071,2829,2591,2829,2831,2829,3025,2829,3189,2829,933,2829,3519,2827,1353,2827,323,2827,513,2827,781,2827,1145,2827,1209,2827,1353,2827,1351,2827,3045,2827,3197,2841,2629,2841,3203,2835,491,2835,799,2835,887,2835,907,2835,1125,2835,1155,2835,1181,2835,1485,2835,1653,2835,1741,2835,1769,2835,1803,2835,1851,2835,1891,2835,2205,2835,2355,2835,2559,2835,2553,2835,2565,2835,2791,2835,2827,2835,2835,2835,3011,2835,3153,2835,3227,2835,153,2835,289,2835,527,2835,747,2835,1019,2835,1145,2835,2255,2835,2531,2835,2549,2835,2559,2835,2569,2835,2581,2835,3021,2835,2675,2835,3207,2835,3519,2837,781,2837,907,2837,943,2837,963,2837,993,2837,1769,2837,2187,2837,2531,2837,2631,2837,3241,2837,3429,2851,379,2851,1623,2851,2189,2851,3001,2851,133,2851,731,2851,2507,2851,2835,2851,3519,2851,139,2851,379,2851,731,2851,1145,2851,1197,2851,2159,2851,2189,2851,2851,2851,3001,2845,151,2845,617,2845,1079,2845,1191,2845,1245,2845,1483,2845,1483,2845,1793,2845,2111,2845,3011,2845,3427,2845,193,2845,887,2845,2581,2845,1209,2845,1205,2845,3437,2845,821,2845,1787,2845,2111,2845,2565,2845,1575,2849,289,2849,577,2849,635,2849,669,2849,729,2849,751,2849,755,2849,781,2849,781,2849,821,2849,887,2849,1101,2849,1131,2849,1285,2849,1803,2849,2187,2849,2355,2849,2471,2849,2507,2849,2651,2849,2981,2849,3055,2849,3051,2849,3199,2849,3241,2849,1343,2849,2187,2849,3087,2849,3517,2847,427,2847,1685,2847,2891,2861,1139,2855,1117,2855,1237,2855,1891,2855,1955,2855,2855,2855,3199,2855,3237,2855,3247,2855,3519,2855,3577,2857,441,2871,547,2871,3519,2865,65,2865,781,2865,2565,2869,1181,2869,3519,2867,97,2867,131,2867,177,2867,193,2867,379,2867,537,2867,879,2867,907,2867,1091,2867,1111,2867,1131,2867,1241,2867,1371,2867,2069,2867,2255,2867,2311,2867,2349,2867,2525,2867,2581,2867,2629,2867,2711,2867,2815,2867,3105,2867,3157,2867,3185,2867,3197,2867,3305,2867,3535,2867,139,2881,173,2881,349,2881,1201,2881,1757,2881,2559,2881,2563,2881,2849,2875,177,2875,1237,2875,2581,2875,3519,2875,193,2875,1165,2891,441,2891,441,2891,909,2891,905,2891,933,2891,1485,2891,1769,2891,2559,2891,2587,2891,3229,2891,3267,2891,3519,2891,519,2891,637,2891,1415,2891,1623,2891,2221,2885,1653,2885,3267,2885,3519,2885,103,2885,2471,2885,3519,2885,3519,2885,1909,2889,2503,2889,2563,2889,3247,2887,53,2887,577,2887,1107,2901,195,2901,751,2901,1351,2901,2205,2901,577,2901,3001,2901,2355,2895,717,2895,3519,2899,539,2899,887,2899,1191,2899,2111,2899,2305,2899,2763,2909,209,2909,545,2909,781,2909,2295,2909,3029,2905,151,2905,193,2905,209,2905,267,2905,379,2905,519,2905,545,2905,577,2905,589,2905,751,2905,747,2905,887,2905,887,2905,935,2905,961,2905,985,2905,1001,2905,1113,2905,1131,2905,1131,2905,1155,2905,1155,2905,1165,2905,1183,2905,1181,2905,1205,2905,1265,2905,1315,2905,1419,2905,1483,2905,1687,2905,1741,2905,2245,2905,2255,2905,2355,2905,2515,2905,2515,2905,2557,2905,2565,2905,2581,2905,2631,2905,2943,2905,3001,2905,3015,2905,3011,2905,3025,2905,3045,2905,3153,2905,3153,2905,3189,2905,3199,2905,3219,2905,3241,2905,3247,2905,3283,2905,3519,2919,549,2919,645,2919,933,2919,2295,2919,2835,2919,3519,2919,635,2913,3519,2913,131,2913,333,2913,887,2913,1013,2913,1237,2913,1707,2913,2299,2913,2355,2913,2503,2913,2565,2913,2629,2913,717,2913,1237,2913,1455,2913,1771,2913,1955,2913,2599,2913,3185,2913,877,2913,1523,2913,2215,2913,1145,2917,2393,2917,2647,2917,3477,2917,441,2917,857,2917,1111,2917,1237,2917,3143,2915,29,2915,79,2915,689,2915,751,2915,907,2915,961,2915,1145,2915,1483,2915,1763,2915,1873,2915,1891,2915,2211,2915,2299,2915,2565,2915,2649,2915,2691,2915,2915,2915,3189,2915,3433,2915,907,2915,1483,2915,3519,2929,3153,2929,3519,2923,905,2923,961,2923,1121,2923,1541,2923,1771,2923,545,2923,729,2923,887,2923,887,2923,961,2923,2531,2923,2565,2923,2631,2923,3519,2927,59,2927,851,2927,1237,2927,1803,2927,729,2927,757,2927,2649,2927,3517,2927,739,2927,1091,2927,1111,2927,1419,2927,1891,2927,2205,2927,2371,2927,2563,2927,2565,2925,339,2925,627,2925,653,2925,1893,2925,2355,2925,2845,2925,2933,2925,3143,2925,3241,2925,113,2925,597,2925,1085,2925,2259,2925,2311,2925,2963,2925,3051,2925,2555,2925,3025,2925,3257,2925,649,2925,3519,2939,1145,2939,1139,2939,1235,2939,3143,2939,3433,2939,3577,2939,781,2939,1483,2939,1769,2939,2159,2939,2565,2939,2925,2939,3041,2939,85,2939,3189,2939,187,2939,441,2939,441,2939,601,2939,781,2939,799,2939,933,2939,1145,2939,1483,2939,1785,2939,2795,2939,2939,2939,3023,2939,687,2933,1483,2933,2191,2933,2355,2933,2503,2933,2559,2933,2563,2933,2581,2933,2589,2933,3427,2933,3433,2933,3455,2933,3519,2933,103,2933,729,2933,739,2933,737,2933,1019,2933,1141,2933,1483,2933,1883,2933,3045,2933,181,2933,647,2933,887,2933,965,2933,1069,2933,1145,2933,1181,2933,1237,2933,1397,2933,2185,2933,2341,2933,3519,2933,3577,2933,643,2933,3189,2933,3519,2937,511,2937,1483,2937,2355,2937,1265,2937,1523,2937,2503,2937,2565,2937,2891,2937,3487,2937,3577,2937,3519,2937,59,2937,193,2937,907,2937,1081,2937,2187,2937,2559,2937,2589,2937,2689,2937,3199,2937,3495,2937,645,2937,669,2937,2295,2937,2295,2937,2549,2937,2563,2937,2891,2937,3559,2937,963,2937,3559,2937,669,2937,1101,2937,2711,2935,177,2935,545,2935,661,2935,1069,2935,2559,2935,3055,2935,139,2935,613,2935,1313,2935,1419,2935,1515,2935,2563,2935,3009,2935,443,2935,1241,2935,1873,2935,2565,2935,545,2935,1209,2935,2675,2935,131,2935,2711,2935,3559,2935,1343,2935,935,2935,2563,2935,3157,2935,2189,2935,29,2935,1189,2935,107,2935,649,2949,267,2949,519,2949,645,2949,1019,2949,1059,2949,1241,2949,1983,2949,2259,2949,2349,2949,2421,2949,2565,2949,2631,2949,2635,2949,3127,2949,2543,2943,113,2943,133,2943,209,2943,333,2943,367,2943,441,2943,441,2943,527,2943,589,2943,729,2943,781,2943,935,2943,851,2943,1179,2943,1237,2943,1237,2943,1315,2943,1661,2943,1677,2943,1769,2943,2187,2943,2355,2943,2507,2943,2549,2943,2565,2943,2913,2943,3001,2943,3105,2943,3127,2943,3143,2943,3361,2943,3517,2943,2549,2943,2565,2943,3193,2943,781,2943,1161,2943,1769,2943,2355,2943,2985,2943,3015,2943,3203,2947,157,2947,1019,2947,1615,2947,139,2947,193,2947,289,2947,539,2947,613,2947,1809,2947,2563,2947,3433,2945,29,2945,545,2945,615,2945,1013,2945,1209,2945,1245,2945,3369,2945,3559,2945,2511,2965,1237,2965,917,2965,229,2965,887,2965,1155,2965,2089,2965,2187,2965,2835,2965,3045,2965,3305,2965,3455,2965,3519,2965,1241,2961,2849,2961,3177,2961,547,2961,1237,2961,1575,2961,2531,2961,2565,2961,157,2961,2581,2975,951,2975,1073,2975,1173,2975,1201,2975,1575,2975,1803,2975,2265,2975,2563,2975,2835,2975,3231,2975,3237,2975,3265,2975,1113,2975,1769,2975,2397,2975,2631,2975,1977,2975,2507,2975,2543,2975,2569,2975,1073,2975,2975,2975,3001,2975,1741,2975,2531,2969,133,2969,195,2969,193,2969,215,2969,333,2969,451,2969,645,2969,729,2969,751,2969,761,2969,781,2969,831,2969,887,2969,905,2969,935,2969,1019,2969,1145,2969,1485,2969,1483,2969,1511,2969,1625,2969,1769,2969,1873,2969,2191,2969,2205,2969,2259,2969,2269,2969,2355,2969,2371,2969,2393,2969,2471,2969,2559,2969,2589,2969,2623,2969,2925,2969,2933,2969,2989,2969,3021,2969,3029,2969,3045,2969,3051,2969,3149,2969,3183,2969,3183,2969,3185,2969,3219,2969,3237,2969,3247,2969,3429,2969,3559,2969,3223,2969,1113,2969,1523,2969,3275,2969,2355,2969,1173,2969,3241,2969,3437,2973,97,2973,739,2973,751,2973,935,2973,1019,2973,1155,2973,1201,2973,1209,2973,1653,2973,1863,2973,2471,2973,3015,2973,3055,2973,3199,2973,225,2973,1165,2973,1711,2973,2205,2973,2563,2973,2629,2973,3175,2973,3577,2973,1883,2973,367,2973,513,2973,527,2973,649,2973,653,2973,887,2973,887,2973,935,2973,1197,2973,1207,2973,1239,2973,1483,2973,2187,2973,2355,2973,2559,2973,2569,2973,2939,2973,3185,2973,3487,2973,2397,2973,547,2973,627,2973,1113,2973,1955,2973,1977,2971,1483,2971,2851,2971,887,2971,1953,2971,2191,2971,2563,2971,3091,2971,3165,2971,3415,2971,289,2971,905,2971,1483,2971,2141,2971,2259,2971,2471,2971,2565,2971,2905,2971,3011,2971,3051,2971,3185,2971,3435,2971,3455,2971,397,2971,887,2971,961,2971,1113,2971,1191,2971,2191,2971,2491,2971,2515,2971,2565,2971,3041,2971,3219,2971,545,2971,3051,2971,3519,2971,2187,2985,3149,2985,3385,2985,29,2985,105,2985,225,2985,751,2985,761,2985,781,2985,887,2985,917,2985,985,2985,1067,2985,1079,2985,1173,2985,1209,2985,1483,2985,1711,2985,1827,2985,2507,2985,2569,2985,2791,2985,2835,2985,2923,2985,2943,2985,3015,2985,3105,2985,3153,2985,3241,2985,3487,2985,801,2985,933,2985,1483,2985,1811,2985,2187,2985,2349,2985,2559,2985,2563,2985,2583,2985,3149,2985,2845,2985,2925,2985,1891,2985,2355,2985,2371,2985,2563,2985,379,2985,3183,2985,2559,2985,177,2985,2387,2985,3207,2985,1415,2985,2185,2985,2593,2985,3231,2985,627,2985,3379,2985,1181,2985,1483,2985,3427,2985,2631,2985,1019,2985,1757,2985,2835,2985,2991,2985,1849,2985,2599,2979,1013,2979,1161,2979,2187,2979,2631,2979,3051,2979,3219,2979,3517,2979,3577,2979,241,2979,443,2979,577,2979,1741,2979,2943,2983,575,2983,1485,2983,1703,2983,2451,2983,2581,2983,2891,2983,3189,2983,3239,2983,15,2983,1455,2983,2187,2983,2261,2983,2355,2983,2471,2983,2565,2983,2743,2983,3241,2981,79,2981,113,2981,441,2981,531,2981,729,2981,1803,2981,1955,2981,2147,2981,2599,2981,2631,2981,2943,2981,3143,2981,3249,2981,3385,2981,3487,2981,3519,2981,441,2981,1523,2981,1893,2981,2589,2981,157,2981,193,2981,887,2981,905,2981,933,2981,1129,2981,1283,2981,1685,2981,1803,2981,2259,2981,2939,2981,3023,2981,3045,2981,3241,2981,3241,2981,295,2981,3577,2995,1733,2995,3519,2995,317,2995,423,2995,1849,2995,3463,2989,907,2989,2187,2989,3185,2989,1173,2989,1343,2989,2919,2989,3023,2989,3185,2989,295,2989,943,2991,59,2991,79,2991,133,2991,153,2991,193,2991,243,2991,323,2991,333,2991,417,2991,427,2991,443,2991,577,2991,609,2991,613,2991,731,2991,751,2991,747,2991,781,2991,799,2991,887,2991,935,2991,935,2991,985,2991,1085,2991,1111,2991,1155,2991,1173,2991,1169,2991,1181,2991,1197,2991,1343,2991,1371,2991,1419,2991,1483,2991,1523,2991,1653,2991,1741,2991,2141,2991,2185,2991,2187,2991,2259,2991,2355,2991,2507,2991,2549,2991,2581,2991,2581,2991,2591,2991,2631,2991,2825,2991,2871,2991,2943,2991,2973,2991,2999,2991,3001,2991,3015,2991,3105,2991,3177,2991,3227,2991,3241,2991,3249,2991,3257,2991,3435,2991,3487,2991,3491,2991,3519,2991,3577,2991,547,2991,2355,2991,1483,2991,2371,2991,2583,2991,2587,2991,2791,2991,3189,2991,3487,3005,531,3005,909,3005,1021,3005,1241,3005,1685,3005,1977,3005,2355,3005,2753,3005,3227,3005,3519,3005,781,3005,1019,3005,1145,3005,1161,3005,1197,3005,1483,3005,1763,3005,2191,3005,2205,3005,2209,3005,2355,3005,2559,3005,2559,3005,2581,3005,2791,3005,2835,3005,2923,3005,3429,3005,3545,3005,1685,3005,2579,3005,3005,3005,3023,3005,295,3005,1733,3005,107,3005,965,3005,1047,3005,1081,3005,1129,3005,1131,3005,1541,3005,1607,3005,1707,3005,1769,3005,2421,3005,2563,3005,3237,2999,193,2999,317,2999,1241,2999,1511,2999,2187,2999,2259,2999,2355,2999,2563,2999,2565,2999,2815,2999,3045,2999,209,2999,553,2999,1769,2999,1873,2999,2355,2999,857,2999,2709,2999,527,2999,2387,2999,2631,2999,2631,2999,2587,2999,3127,2999,3183,2999,3341,3003,379,3003,1161,3003,1541,3003,1769,3003,1803,3003,1873,3003,2555,3003,2939,3003,3001,3003,3021,3003,3105,3003,3165,3003,3207,3003,577,3003,653,3003,689,3003,887,3003,935,3003,2259,3003,2555,3003,3165,3003,3347,3003,3545,3001,935,3001,3425,3001,333,3001,367,3001,577,3001,1131,3001,1201,3001,1235,3001,1371,3001,1891,3001,2191,3001,2563,3001,2563,3001,2565,3001,2991,3001,3153,3001,3185,3001,3231,3001,3283,3001,613,3001,645,3001,2191,3001,3427,3001,209,3001,653,3001,2305,3001,2553,3001,2709,3001,2835,3001,2855,3001,3015,3001,3441,3001,3487,3001,177,3001,729,3001,2549,3001,1803,3001,97,3001,367,3001,441,3001,1081,3001,1141,3001,1485,3001,2511,3001,2549,3001,527,3015,495,3015,537,3015,1165,3015,1241,3015,1485,3015,1763,3015,2255,3015,2259,3015,2295,3015,2355,3015,2565,3015,2849,3015,2991,3015,3177,3015,3199,3015,3227,3015,3407,3015,15,3015,29,3015,133,3015,267,3015,333,3015,333,3015,397,3015,539,3015,661,3015,739,3015,749,3015,831,3015,905,3015,935,3015,1013,3015,1019,3015,1069,3015,1113,3015,1161,3015,1183,3015,1237,3015,1283,3015,1495,3015,2071,3015,2245,3015,2255,3015,2301,3015,2515,3015,2563,3015,2647,3015,2587,3015,2689,3015,2831,3015,2825,3015,2835,3015,2891,3015,2925,3015,3011,3015,3011,3015,3041,3015,3143,3015,3189,3015,3241,3015,3429,3015,3453,3015,169,3015,187,3015,241,3015,295,3015,333,3015,831,3015,917,3015,1081,3015,1145,3015,1173,3015,1209,3015,1685,3015,1837,3015,2111,3015,2187,3015,2507,3015,2631,3015,3149,3015,3227,3015,3237,3015,1173,3015,3453,3009,1769,3009,2259,3009,2563,3009,2985,3009,1019,3009,3265,3009,2563,3013,1455,3013,1891,3013,2579,3013,3219,3013,3231,3013,129,3013,143,3013,627,3013,645,3013,1461,3013,1653,3013,2559,3013,3199,3013,3193,3013,729,3013,1161,3013,1419,3013,1893,3013,2925,3011,103,3011,1419,3011,1483,3011,2205,3011,2511,3011,2991,3011,3045,3011,3105,3011,103,3011,1803,3011,2305,3011,2565,3011,1343,3011,2111,3011,3519,3025,711,3025,1173,3025,2581,3025,3059,3025,323,3025,373,3025,745,3025,757,3025,1191,3025,1757,3025,1765,3025,1783,3025,2187,3025,2209,3025,2447,3025,2559,3025,2569,3025,2563,3025,2579,3025,2579,3025,2815,3025,2867,3025,2985,3025,3175,3025,3023,3025,3175,3025,1145,3025,3149,3025,617,3025,1115,3025,1121,3025,2565,3025,3305,3025,3519,3025,2433,3025,3275,3025,3379,3019,1615,3019,3275,3023,79,3023,75,3023,139,3023,157,3023,177,3023,193,3023,289,3023,295,3023,349,3023,367,3023,431,3023,441,3023,527,3023,549,3023,545,3023,635,3023,661,3023,717,3023,757,3023,887,3023,909,3023,907,3023,949,3023,961,3023,985,3023,991,3023,1181,3023,1191,3023,1205,3023,1237,3023,1279,3023,1283,3023,1313,3023,1575,3023,1653,3023,1685,3023,1733,3023,1769,3023,1851,3023,1891,3023,1953,3023,1977,3023,2063,3023,2141,3023,2187,3023,2355,3023,2507,3023,2559,3023,2563,3023,2565,3023,2565,3023,2589,3023,2629,3023,2835,3023,2923,3023,2963,3023,3045,3023,3105,3023,3183,3023,3207,3023,3241,3023,3257,3023,3367,3023,3385,3023,3517,3023,3541,3023,3577,3023,297,3023,3257,3021,545,3021,1977,3021,2635,3021,3045,3021,3189,3021,3185,3021,3519,3021,781,3021,857,3021,887,3021,935,3021,951,3021,1081,3021,1117,3021,1287,3021,2261,3021,2531,3021,2935,3021,1687,3021,1811,3021,2187,3021,2559,3021,3185,3021,3207,3021,3241,3021,729,3021,749,3021,965,3021,1483,3021,1771,3021,1873,3021,3145,3021,3219,3021,1237,3035,2939,3035,3023,3035,3519,3035,79,3035,799,3035,887,3035,1181,3035,2187,3035,2581,3035,2985,3035,2675,3035,3175,3035,1071,3035,3519,3029,613,3029,1019,3029,1113,3029,1483,3029,2515,3029,2795,3029,2825,3029,3185,3029,3453,3029,3577,3029,209,3029,545,3029,689,3029,1179,3029,1711,3029,1893,3029,2187,3029,3045,3029,451,3029,2159,3029,1449,3029,519,3029,2581,3029,519,3029,871,3029,1741,3029,3227,3029,3519,3029,241,3033,113,3033,729,3033,2559,3033,2563,3033,3041,3033,3185,3033,3385,3033,3411,3033,3517,3033,3577,3031,1047,3031,1197,3031,1587,3031,2187,3031,2631,3031,1067,3031,1131,3031,3487,3031,441,3031,711,3031,1485,3031,2311,3031,3185,3031,3559,3031,1101,3031,2265,3045,15,3045,29,3045,173,3045,209,3045,295,3045,397,3045,553,3045,577,3045,613,3045,627,3045,799,3045,831,3045,847,3045,985,3045,991,3045,1081,3045,1085,3045,1145,3045,1139,3045,1141,3045,1165,3045,1197,3045,1285,3045,1343,3045,1485,3045,1483,3045,1541,3045,1803,3045,2187,3045,2259,3045,2515,3045,2543,3045,2559,3045,2565,3045,2565,3045,2589,3045,2681,3045,2827,3045,2835,3045,2849,3045,2999,3045,3051,3045,3065,3045,3091,3045,3185,3045,3199,3045,3425,3045,3425,3045,3437,3045,3433,3045,1351,3045,1411,3045,2935,3045,2985,3045,2983,3045,63,3045,177,3045,431,3045,495,3045,649,3045,729,3045,781,3045,831,3045,943,3045,1183,3045,1179,3045,1241,3045,1265,3045,1371,3045,1607,3045,1687,3045,1763,3045,1891,3045,2185,3045,2355,3045,2559,3045,2581,3045,2691,3045,3005,3045,3055,3045,3105,3045,3127,3045,3185,3045,3185,3045,3241,3045,3257,3045,3379,3045,3429,3045,3487,3045,3577,3045,1201,3045,2631,3045,3015,3041,1711,3041,133,3041,193,3041,451,3041,545,3041,781,3041,781,3041,777,3041,1113,3041,1179,3041,1343,3041,1893,3041,1977,3041,2581,3041,2581,3041,2845,3041,2891,3041,2985,3041,3029,3041,3045,3041,3157,3041,3185,3041,3219,3041,3427,3055,637,3055,943,3055,1019,3055,1337,3055,1483,3055,2191,3055,2845,3055,2855,3055,2981,3055,3055,3055,3175,3055,3265,3055,3519,3055,1047,3055,2187,3049,193,3049,729,3049,1207,3049,1237,3049,1769,3049,2191,3049,2565,3049,2815,3049,139,3049,333,3049,1687,3049,2049,3049,2559,3049,2647,3049,2565,3049,3207,3053,1803,3055,29,3055,177,3055,731,3055,887,3055,961,3055,985,3055,1019,3055,2147,3055,2189,3055,2507,3055,2555,3055,2569,3055,2609,3055,2943,3055,3001,3055,3105,3055,3185,3051,831,3051,1047,3051,1101,3051,803,3051,3519,3051,1013,3051,1113,3051,1197,3051,1393,3051,2545,3051,2565,3051,2983,3051,3267,3051,15,3051,157,3051,851,3051,1139,3051,1183,3051,1771,3051,1873,3051,2259,3051,3419,3051,1769,3065,95,3065,689,3065,737,3065,943,3065,1891,3065,2187,3065,2187,3065,2491,3065,2543,3065,2565,3065,2581,3065,2649,3065,3041,3065,3065,3065,3221,3065,193,3065,907,3065,1085,3065,1343,3065,1405,3065,2221,3065,3185,3065,3495,3059,177,3059,209,3059,511,3059,781,3059,935,3059,1059,3059,1101,3059,2185,3059,2189,3059,2569,3059,2845,3059,2939,3059,2943,3059,3045,3059,2565,2675,2531,3091,2563,3091,3091,3091,3165,3091,3429,3091,3519,3091,993,3091,1337,3091,3011,3091,2709,3091,3165,3091,3219,3085,193,3085,1095,3085,2845,3085,3447,3089,683,3089,1313,3089,2071,3087,2371,3087,53,3087,443,3087,1523,3087,1625,3087,1803,3087,2589,3087,2943,3087,3143,3087,157,3087,887,3087,2565,3087,1201,3087,3087,3087,3241,3087,731,3087,1047,3087,1145,3087,1793,3087,2631,3087,3157,3087,3185,3101,339,3101,397,3101,711,3101,1179,3101,3143,3101,3153,3101,3427,3101,241,3101,1849,3101,2791,3101,3275,3095,1067,3095,1145,3095,1731,3095,2265,3095,3091,3095,3105,3095,391,3095,3519,3099,53,3099,113,3099,209,3099,613,3099,653,3099,1239,3099,1287,3099,1707,3099,1763,3099,2071,3099,2583,3099,2581,3099,2657,3099,3219,3099,3319,3099,3435,3097,1803,3097,1803,3097,3519,3025,1741,3105,545,3105,1241,3105,2835,3105,193,3105,193,3105,757,3105,781,3105,985,3105,1013,3105,1113,3105,1315,3105,1483,3105,1483,3105,1769,3105,1891,3105,2191,3105,2355,3105,2559,3105,2563,3105,2563,3105,2845,3105,3021,3105,3249,3105,3519,3119,1253,3119,781,3119,3015,3115,1287,3115,2371,3115,1145,3115,2355,3115,2559,3115,2649,3115,265,3115,781,3115,1001,3115,1111,3115,1163,3115,1207,3115,1485,3115,2581,3115,2791,3115,3227,2205,1649,3115,1091,3115,3237,3117,441,3117,2985,3117,2191,3117,2259,3117,1139,3117,1139,3117,1461,3117,2675,3117,2587,3117,2635,3117,3157,3117,2259,3117,2471,3117,545,3117,961,3117,1179,3117,2259,3129,335,3129,547,3129,661,3129,943,3129,1131,3129,1209,3129,1245,3129,1483,3129,2147,3129,2159,3129,2215,3129,2711,3129,2827,3129,2835,3129,97,3129,1201,3129,1371,3129,2657,3129,3267,3129,3267,3129,2111,3129,1101,3129,3519,3123,347,3123,601,3123,847,3123,935,3123,1237,3123,1343,3123,2471,3123,2827,3123,3519,3123,1711,3123,1863,3123,3185,3127,59,3127,3241,3127,2187,3127,2355,3127,3143,3127,3185,3127,3415,3125,539,3125,631,3125,1265,3149,1057,3149,2835,3149,187,3149,241,3149,545,3149,637,3149,949,3149,1081,3149,1237,3149,1245,3149,1703,3149,1763,3149,1953,3149,2187,3149,2471,3149,2835,3149,2849,3149,3175,3149,3241,3149,3265,3149,1757,3149,1047,3143,29,3143,343,3143,1095,3143,1739,3143,1851,3143,1891,3143,2191,3143,2263,3143,2261,3143,295,3143,441,3143,441,3143,631,3143,745,3143,851,3143,991,3143,1199,3143,1199,3143,1483,3143,1769,3143,2569,3143,2563,3143,2581,3143,2623,3143,3415,3143,3433,3143,397,3143,441,3143,441,3143,545,3143,1019,3143,1179,3143,1625,3143,2259,3143,3241,3143,3433,3143,1079,3143,2375,3143,3153,3143,1101,3143,2349,3143,2371,3143,851,3143,985,3143,1019,3143,1173,3143,3219,3143,1783,3143,59,3143,649,3143,887,3143,1067,3143,1763,3143,2515,3143,2631,3143,2629,3143,1741,3143,2471,3143,1343,3147,139,3147,2531,3147,2559,3147,2943,3147,2565,3147,1161,3147,3519,3147,139,3147,297,3147,379,3147,1197,3147,2681,3147,3185,3147,3533,3145,2507,3145,1047,3145,2259,3145,3487,3145,589,3145,1113,3145,1455,3145,2263,3145,3197,3145,751,3145,935,3145,943,3145,1019,3145,1769,3145,2569,3145,2583,3145,2681,3145,1001,3145,3045,3145,2311,3145,113,3145,2141,3159,1001,3159,2891,3159,857,3159,3519,3153,143,3153,295,3153,1081,3153,1769,3153,2559,3153,2631,3153,2939,3153,3143,3153,3153,3153,295,3153,295,3153,1181,3153,1685,3153,2631,3153,3519,3153,431,3153,589,3153,839,3153,935,3153,943,3153,1165,3153,1483,3153,1741,3153,2147,3153,2507,3153,2943,3153,3051,3153,3091,3153,2589,3153,2753,3153,339,3153,627,3153,887,3153,3143,3153,3487,3153,209,3153,1001,3153,1047,3153,1131,3153,1741,3153,2187,3153,2355,3153,2809,3153,2943,3153,3149,3153,3153,3153,3487,3157,943,3157,1181,3157,1741,3157,1803,3157,2581,3157,2791,3157,2925,3157,177,3157,333,3157,781,3157,1069,3157,1129,3157,1155,3157,1449,3157,1805,3157,1977,3157,2187,3157,2355,3157,2515,3157,2543,3157,2559,3157,2985,3157,3045,3157,3051,3157,3519,3157,2187,3155,113,3155,1145,3155,2111,3155,2141,3155,3379,3169,1181,3169,1073,3169,545,3169,781,3169,1209,3169,2187,3169,2355,3169,3143,3169,193,3169,519,3169,549,3169,907,3169,965,3169,1081,3169,2549,3169,3237,3169,3369,3169,3495,3169,3519,3169,887,3169,2263,3163,649,3163,3519,3163,397,3163,3143,3163,627,3163,2581,3163,2835,3163,3185,3163,2925,3163,3251,3167,613,3167,1019,3167,3517,3167,3519,3165,209,3165,241,3165,299,3165,531,3165,751,3165,757,3165,847,3165,1483,3165,1953,3165,2111,3165,2141,3165,2569,3165,2631,3165,2923,3165,3021,3165,3051,3165,3105,3165,193,3165,359,3165,545,3165,577,3165,737,3165,1199,3165,1771,3165,1803,3165,2215,3165,2355,3165,2565,3165,2649,3165,2675,3165,2845,3165,3143,3165,3185,3165,3519,3175,3001,3179,3227,3173,717,3177,1013,3177,1711,3177,1201,3175,511,3175,1209,3175,2569,3175,3237,3175,3455,3175,781,3175,1623,3175,1661,3175,1741,3175,2111,3175,2387,3175,1741,3175,3045,3175,79,3175,75,3175,225,3175,511,3175,887,3175,943,3175,1001,3175,1165,3175,1337,3175,1485,3175,1677,3175,2471,3175,2549,3175,2565,3175,3021,3175,3175,3175,3209,3175,1685,3189,75,3189,173,3189,3389,3189,513,3189,527,3189,545,3189,653,3189,661,3189,719,3189,741,3189,751,3189,819,3189,831,3189,1155,3189,1209,3189,1239,3189,1311,3189,1343,3189,1419,3189,1495,3189,1741,3189,2111,3189,2187,3189,2317,3189,2393,3189,2471,3189,2549,3189,2559,3189,2563,3189,2581,3189,2825,3189,2835,3189,3011,3189,3045,3189,3045,3189,3189,3189,3257,3189,3313,3189,3423,3189,3435,3189,3527,3189,403,3189,2355,3189,519,3189,1609,3189,2563,3189,3237,3189,3507,3189,3487,3189,545,3189,553,3189,1069,3189,1315,3189,2559,3189,2555,3189,2569,3189,3105,3189,3249,3189,85,3189,443,3189,451,3189,729,3189,801,3189,951,3189,2635,3189,2689,3189,2891,3189,2985,3189,3189,3189,3385,3183,151,3183,2187,3183,1757,3183,2147,3183,2743,3183,1019,3183,2543,3183,431,3183,649,3183,2355,3183,151,3183,1805,3183,1001,3183,289,3183,397,3183,781,3183,909,3183,907,3183,1131,3183,1449,3183,1763,3183,1907,3183,2569,3183,2591,3183,3011,3183,3143,3183,3385,3183,3425,3183,3577,3183,3157,3183,2647,3183,2855,3183,3045,3183,3185,3183,3265,3187,1851,3187,1209,3187,139,3187,1419,3187,1863,3187,2191,3187,2205,3187,2511,3187,2725,3187,2905,3187,2933,3187,2991,3187,1763,3187,2923,3187,3433,3185,2915,3185,347,3185,1239,3185,1265,3185,1661,3185,1805,3185,1977,3185,2187,3185,3519,3185,1769,3185,1873,3185,2355,3185,1893,3185,613,3185,1019,3185,1113,3185,1625,3185,2565,3185,3249,3185,1483,3185,209,3185,441,3185,577,3185,961,3185,1179,3185,1769,3185,1873,3185,2371,3185,2825,3185,3015,3185,3015,3185,3045,3185,3051,3185,3143,3185,3185,3185,3153,3185,3427,3185,113,3185,133,3185,589,3185,1769,3185,2943,3185,3199,3185,3577,3185,577,3185,1209,3185,2355,3185,2581,3185,545,3185,3367,3185,2185,3185,2259,3185,731,3185,1909,3185,3425,3185,3447,3185,1455,3185,151,3185,1113,3185,1161,3185,1893,3185,2187,3185,2563,3185,2845,3185,2905,3185,2935,3185,2991,3185,3011,3185,3185,3185,3425,3185,3437,3185,379,3185,1483,3185,1733,3185,653,3185,247,3199,445,3199,965,3199,2589,3199,2675,3199,3519,3199,323,3199,545,3199,553,3199,589,3199,781,3199,1113,3199,1121,3199,1165,3199,1475,3199,1483,3199,1685,3199,1711,3199,1741,3199,1783,3199,1793,3199,1837,3199,2147,3199,2507,3199,2565,3199,2791,3199,2943,3199,3051,3199,3091,3199,3207,3199,3241,3199,3265,3199,323,3199,131,3199,139,3199,153,3199,187,3199,519,3199,847,3199,2137,3199,2141,3199,2215,3199,2471,3199,2675,3199,2675,3199,3013,3199,3011,3199,3021,3199,3041,3199,3267,3199,295,3199,2255,3199,801,3199,2515,3199,2563,3199,3199,3193,297,3193,3221,3193,1001,3193,2939,3193,3241,3197,289,3197,379,3197,627,3197,731,3197,1019,3197,1161,3197,1197,3197,1419,3197,1483,3197,2189,3197,2631,3197,2867,3197,2943,3197,3143,3197,3219,3197,3229,3197,3241,3197,3519,3197,527,3197,2111,3197,2187,3197,2563,3197,2631,3197,131,3197,2835,3195,113,3195,443,3195,645,3195,731,3195,1081,3195,2471,3195,3041,3195,3227,3195,3379,3195,3519,3209,209,3209,491,3209,1121,3209,1485,3209,1541,3209,1769,3209,1769,3209,1891,3209,2187,3209,2819,3209,3059,3209,3241,3209,3519,3209,1081,3209,2753,3209,3387,3203,431,3203,781,3203,1019,3203,1145,3203,1741,3203,2255,3203,2657,3203,2835,3203,3015,3203,3045,3203,577,3203,943,3203,2147,3203,1393,3203,1483,3203,3237,3203,2421,3203,3519,3203,1085,3203,2835,3203,3519,3203,1155,3203,1483,3203,985,3207,2147,3207,2531,3207,3013,3207,3011,3207,3055,3207,3249,3209,539,3209,823,3209,2559,3209,3231,3205,2531,3205,3001,3205,3011,3205,3385,3223,887,3223,2355,3223,95,3223,1069,3223,1197,3223,1265,3223,1483,3223,3231,3223,1597,3223,3415,3221,29,3221,157,3221,1155,3221,1891,3221,2559,3221,3045,3221,3251,3221,545,3221,297,3221,1085,3221,2735,3221,545,3221,1483,3221,2187,3221,379,3221,1197,3221,1437,3221,3001,3221,2191,3219,133,3219,177,3219,225,3219,729,3219,757,3219,887,3219,887,3219,1141,3219,1197,3219,1237,3219,1419,3219,1483,3219,1771,3219,1851,3219,2141,3219,2355,3219,2565,3219,3045,3219,3185,3219,3241,3233,1059,3233,1523,3233,1707,3233,2559,3233,2555,3233,2565,3233,3005,3233,3127,3233,3227,3233,2471,3233,2515,3233,3045,3233,131,3233,1113,3233,1121,3233,1205,3233,1241,3233,1541,3233,1707,3233,1711,3233,1769,3233,2259,3233,2549,3233,2939,3233,3015,3233,3127,3233,3233,3233,3251,3233,3447,3233,295,3227,2933,3227,1419,3227,589,3227,757,3227,1113,3227,1235,3227,1623,3227,2141,3227,511,3227,2393,3227,3517,3227,175,3227,229,3227,847,3227,943,3227,1081,3227,1077,3227,1079,3227,1623,3227,1607,3227,1711,3227,2187,3227,2631,3227,3015,3227,3051,3227,3149,3227,3427,3227,3237,3227,751,3227,3519,3231,15,3231,1013,3231,1265,3231,2259,3231,2355,3231,2503,3231,333,3231,751,3231,887,3231,935,3231,949,3231,1145,3231,1197,3231,1483,3231,1483,3231,1769,3231,1891,3231,2187,3231,2259,3231,2263,3231,2355,3231,2393,3231,2471,3231,2543,3231,2559,3231,2559,3231,2563,3231,2565,3231,2589,3231,2925,3231,2933,3231,2983,3231,3021,3231,3045,3231,3051,3231,3185,3231,3219,3231,3237,3231,3435,3231,3559,3231,2563,3229,247,3229,1741,3229,2581,3229,2581,3229,717,3229,1179,3229,1891,3229,2563,3229,3023,3229,3519,3229,139,3229,731,3229,2159,3229,2355,3229,2491,3229,3199,3229,3519,3243,1095,3243,1111,3243,2295,3243,3423,3243,2515,3237,649,3237,187,3237,537,3237,577,3237,831,3237,1181,3237,1371,3237,1483,3237,1891,3237,2245,3237,2261,3237,2349,3237,2559,3237,2589,3237,2835,3237,2939,3237,2991,3237,2999,3237,63,3237,427,3237,443,3237,545,3237,897,3237,931,3237,1343,3237,1461,3237,2111,3237,2387,3237,2631,3237,2749,3237,2937,3237,3227,3237,3435,3237,3519,3237,1455,3237,2191,3237,1803,3237,2531,3237,3437,3237,1161,3237,1601,3237,1763,3237,1955,3237,2355,3237,2925,3237,1625,3237,2259,3237,2845,3241,1711,3241,1001,3241,1863,3241,2943,3241,1685,3241,519,3241,581,3241,1181,3241,1237,3241,2105,3241,2205,3241,2259,3241,2565,3241,2631,3241,3189,3241,3265,3241,3457,3241,441,3241,729,3241,1113,3241,1237,3241,2187,3241,2559,3241,2675,3241,2943,3241,2981,3241,3143,3241,3185,3241,3199,3241,3435,3241,65,3241,1523,3239,333,3239,519,3239,601,3239,1091,3239,1187,3239,1483,3239,1711,3239,1733,3239,1977,3239,2187,3239,2507,3239,2589,3239,2847,3239,3199,3239,3385,3239,3409,3239,2581,3239,1145,3239,1201,3239,2187,3239,209,3239,755,3239,3435,3239,3541,3239,1237,3239,2565,3239,3189,3239,613,3239,653,3239,745,3239,1141,3239,1161,3239,1207,3239,1315,3239,1793,3239,2191,3239,2349,3239,2439,3239,2547,3239,2583,3239,2681,3239,3005,3239,3143,3239,3419,3239,3429,3239,3429,3239,2905,3239,731,3239,1019,3239,1155,3239,2933,3253,1121,3253,1155,3253,1351,3253,2187,3253,2259,3253,2295,3253,2649,3247,97,3247,527,3247,1449,3247,1793,3247,1891,3247,2071,3247,2187,3247,2375,3247,2581,3247,2675,3247,3175,3247,3199,3247,3237,3247,3257,3247,1081,3247,577,3247,3519,3247,887,3247,2905,3247,113,3247,379,3247,577,3247,781,3247,1419,3247,1685,3247,1687,3247,1703,3247,1769,3247,1803,3247,2071,3247,2471,3247,2547,3247,2749,3247,2845,3247,2943,3247,3005,3247,3177,3247,3185,3247,3199,3247,3227,3247,3455,3247,3519,3247,3577,3247,333,3247,601,3247,951,3247,1077,3247,2305,3247,2421,3247,2563,3247,2587,3247,2831,3247,3045,3247,3257,3247,3447,3247,2355,3247,2835,3247,1653,3247,1711,3251,511,3251,545,3251,631,3251,751,3251,907,3251,985,3251,1001,3251,1161,3251,1481,3251,1711,3251,1793,3251,2191,3251,2255,3251,2925,3251,3025,3251,3153,3251,3153,3251,3199,3249,1977,3249,2187,3249,2925,3249,3143,3249,3519,3249,2925,3249,3185,3261,527,3261,613,3261,729,3261,1113,3261,1141,3261,1161,3261,1789,3261,1785,3261,2191,3261,2263,3261,2589,3261,2589,3261,3143,3257,63,3257,75,3257,175,3257,379,3257,645,3257,887,3257,887,3257,943,3257,947,3257,1209,3257,1287,3257,1449,3257,1483,3257,1483,3257,1785,3257,2471,3257,2563,3257,2985,3257,3175,3257,3207,3257,3437,3257,3519,3257,1155,3257,1805,3257,177,3257,1245,3257,1483,3257,1803,3267,3411,3265,635,3265,799,3265,985,3265,1019,3265,1139,3265,1199,3265,1575,3265,1711,3265,1805,3265,1827,3265,2187,3265,2311,3265,2565,3265,2791,3265,2835,3265,2845,3265,2855,3265,3149,3265,3227,3265,3241,3265,3265,3265,2563,3265,635,3265,3015,3269,1757,3269,2809,3269,3055,3269,1771,3267,2191,3267,133,3267,531,3267,627,3267,757,3267,1019,3267,1483,3267,2187,3267,2593,3267,2589,3267,2657,3267,2681,3267,3025,3267,3203,3267,3219,3267,3577,3267,63,3267,1181,3267,1805,3267,2565,3267,2943,3267,3241,3267,229,3267,991,3267,1189,3279,545,3279,577,3279,1789,3275,75,3275,241,3275,755,3275,757,3275,1131,3275,1155,3275,1183,3275,1241,3275,1615,3275,1741,3275,1803,3275,1893,3275,2141,3275,2471,3275,2563,3275,2565,3275,2599,3275,2629,3275,2943,3275,3185,3275,3199,3275,3219,3275,3425,3275,3435,3287,139,3287,1107,3287,1131,3287,1763,3287,1891,3287,2259,3287,3055,3287,547,3287,1081,3287,3305,3285,2491,3283,193,3283,443,3283,645,3283,737,3283,1113,3283,1161,3283,1419,3283,2451,3283,2547,3283,2559,3283,3001,3283,1001,3283,1139,3283,1155,3283,1179,3283,1863,3283,2905,3283,2925,3283,2961,3283,2991,3283,3005,3283,3045,3283,3105,3283,3177,3283,3185,3283,3283,3297,1081,3297,3519,3293,655,3293,1095,3293,2815,3293,3519,3293,333,3293,441,3293,857,3293,1485,3293,1707,3293,2825,3293,3153,3293,3241,3293,3453,3305,935,3305,1371,3301,2187,3315,2579,3315,3559,3315,3045,3309,3519,3313,29,3313,79,3313,225,3313,243,3313,289,3313,323,3313,431,3313,1165,3313,1891,3313,2191,3313,2189,3313,2205,3313,2371,3313,2511,3313,2565,3313,2587,3313,2609,3313,2623,3313,2867,3313,3005,3313,3313,3313,1019,3313,1047,3313,1803,3313,3519,3311,63,3311,1181,3311,2675,3311,1237,3311,2543,3311,333,3311,443,3311,739,3311,1237,3311,3207,3311,3427,3311,3517,3311,3577,3311,2559,3311,3199,3311,1523,3311,2349,3311,627,3319,1483,3319,333,3319,513,3319,1183,3319,3165,3319,961,3321,2559,3325,781,3325,2355,3325,3045,3325,3305,3331,577,3331,2559,3341,195,3341,289,3341,511,3341,683,3341,847,3341,943,3341,1155,3341,1197,3341,1287,3341,2215,3341,2471,3341,2559,3341,2583,3341,3247,3341,3433,3337,157,3337,1485,3337,2141,3337,2657,3337,3143,3337,3241,3279,1199,3351,3519,3125,943,3345,549,3345,1343,3345,1711,3349,59,3347,1283,3347,2569,3347,3241,3347,527,3347,1115,3347,1461,3347,1523,3347,3227,3361,2191,3361,3257,3361,311,3361,373,3361,731,3361,1189,3361,3045,3361,3165,3355,577,3355,1145,3355,1711,3355,2531,3355,3249,3359,519,3359,3023,3357,1371,3357,3455,3357,3455,3371,943,3371,2255,3371,2581,3371,3519,3371,1183,3371,2925,3371,3241,3371,905,3371,1893,3371,2925,3371,3157,3369,653,3369,2581,3369,379,3369,1095,3369,1279,3369,2141,3369,2147,3369,2191,3369,2565,3369,2925,3369,3001,3369,3025,3369,3051,3369,3125,3369,3477,3371,3055,3367,545,3367,65,3367,549,3367,577,3367,729,3367,737,3367,857,3367,887,3367,907,3367,961,3367,965,3367,1131,3367,1235,3367,1237,3367,1615,3367,1653,3367,2555,3367,2563,3367,2565,3367,3185,3367,3265,3367,661,3367,1483,3367,2947,3379,1101,3379,1279,3379,1343,3379,1483,3379,1803,3379,2925,3379,3153,3379,3519,3379,3519,3379,1851,295,29,295,63,295,187,295,333,295,403,295,431,295,549,295,645,295,655,295,729,295,751,295,887,295,907,295,907,295,985,295,1019,295,1129,295,1173,295,1235,295,1245,295,1337,295,1455,295,1575,295,1685,295,1711,295,1739,295,1769,295,1771,295,1891,295,2029,295,2063,295,2191,295,2185,295,2265,295,2265,295,2491,295,2507,295,2529,295,2559,295,2635,295,2689,295,2725,295,2791,295,3021,295,3051,295,3175,295,3247,295,3251,295,3419,3377,2631,3377,2961,3375,1503,3375,1805,3375,2355,3375,2565,3375,3185,3375,113,3375,531,3375,1371,3375,1741,3375,1803,3375,131,3375,3519,3375,3519,3375,2187,3389,29,3389,153,3389,177,3389,781,3389,887,3389,907,3389,1073,3389,1121,3389,1811,3389,2255,3389,2559,3389,2565,3389,2583,3389,2581,3389,2589,3389,3163,3389,3519,3389,3379,3389,3389,3387,195,3387,2147,3387,2565,3387,577,3387,2187,3385,1111,3385,1161,3385,1279,3385,79,3385,311,3385,645,3385,731,3385,905,3385,933,3385,1069,3385,1113,3385,1161,3385,1283,3385,1483,3385,1741,3385,1769,3385,2531,3385,2563,3385,3423,3385,2089,3385,3189,3385,3519,3385,1131,3385,2565,3399,131,3399,229,3399,367,3399,1069,3399,3199,3393,2355,3393,3105,3393,3143,3393,1241,3397,3519,3395,79,3395,443,3395,717,3395,1173,3395,1953,3395,2743,3507,133,3507,1483,3507,2471,3507,2563,3507,2581,3507,3185,3507,3433,3507,3487,3411,243,3411,1187,3411,1977,3411,129,3411,443,3411,661,3411,933,3411,1165,3411,1181,3411,2835,3411,3175,3411,265,3411,2159,3411,2821,3411,15,3411,97,3411,113,3411,229,3411,2141,3411,2185,3411,2913,3411,2985,3411,3433,3411,3457,3411,397,3411,851,3411,965,3411,1209,3411,1337,3411,2141,3411,2259,3411,2355,3411,2549,3411,2563,3411,2565,3411,2589,3411,3045,3411,3051,3411,3143,3411,3185,3411,3415,3411,3429,3411,3455,3411,1803,3411,157,3411,3519,3411,3143,3409,265,3409,653,3409,1661,3409,2565,3409,1189,3409,1803,3409,3045,3409,3519,3407,577,3407,731,3407,781,3407,1181,3407,1523,3407,2565,3407,2827,3407,3203,3407,3241,3407,627,3407,3519,3407,3577,3407,187,3407,627,3407,1209,3407,2259,3407,3013,3407,3437,3407,29,3407,613,3407,1309,3407,2371,3407,2581,3407,2827,3407,3045,3407,3427,3419,781,3419,943,3419,1625,3419,1849,3419,2187,3419,2215,3419,2555,3419,3005,3419,3059,3419,3185,3419,3423,3419,177,3419,731,3419,2583,3419,2629,3419,2943,3419,3219,3419,175,3419,731,3419,2187,3419,2447,3417,537,3417,577,3417,661,3417,669,3417,821,3417,1187,3417,2355,3417,2371,3417,2565,3417,2589,3417,2791,3417,3189,3417,3487,3415,113,3415,133,3415,193,3415,225,3415,379,3415,511,3415,539,3415,545,3415,553,3415,589,3415,613,3415,729,3415,751,3415,887,3415,907,3415,951,3415,965,3415,1013,3415,1209,3415,1625,3415,1711,3415,1741,3415,1769,3415,2111,3415,2141,3415,2187,3415,2245,3415,2471,3415,2549,3415,2565,3415,2565,3415,2581,3415,2589,3415,2943,3415,2973,3415,2999,3415,3011,3415,3011,3415,3165,3415,3185,3415,3199,3415,3283,3415,3423,3415,3437,3415,3517,3415,441,3415,1161,3415,1769,3415,2355,3415,2563,3415,3143,3415,3145,3415,3433,3415,3447,3415,3143,3415,139,3415,537,3415,729,3415,887,3415,1141,3415,1161,3415,1235,3415,1625,3415,2259,3415,2547,3415,2565,3415,3165,3415,653,3415,1279,3415,1771,3415,2891,3429,2205,3429,193,3429,379,3429,661,3429,1001,3429,1279,3429,1481,3429,1661,3429,1953,3429,2071,3429,2205,3429,2891,3429,3247,3429,1161,3429,2549,3429,3517,3429,2631,3429,3429,3429,2835,3429,3175,3429,3519,3429,545,3429,1183,3429,1515,3429,1769,3429,1771,3429,2265,3429,2259,3429,2563,3429,2985,3429,3001,3429,3023,3429,3045,3429,3199,3429,3447,3429,1191,3429,195,3429,333,3429,1081,3429,1201,3429,1199,3429,1977,3429,2141,3429,3519,3429,847,3429,3227,3423,133,3423,143,3423,729,3423,1179,3423,1485,3423,3185,3423,3385,3423,3507,3423,63,3423,133,3423,295,3423,323,3423,545,3423,1181,3423,1205,3423,1483,3423,1741,3423,2531,3423,2591,3423,2981,3423,3143,3423,717,3423,1977,3423,79,3423,2371,3423,3175,3427,193,3427,1309,3427,2827,3427,2985,3427,3185,3427,3283,3427,519,3427,1081,3427,1155,3427,1653,3427,3149,3427,3379,3427,153,3427,379,3427,613,3427,729,3427,1079,3427,1091,3427,1117,3427,1165,3427,1179,3427,1769,3427,1769,3427,1827,3427,2589,3427,2925,3427,3011,3427,3361,3427,3411,3427,3415,3427,2563,3425,97,3425,343,3425,445,3425,683,3425,1013,3425,1183,3425,2255,3425,2259,3425,2511,3425,3199,3425,2187,3425,3011,3425,151,3425,613,3425,627,3425,645,3425,799,3425,851,3425,1475,3425,2141,3425,2555,3425,2743,3425,2845,3425,3427,3425,3577,3425,139,3425,577,3425,661,3425,1163,3425,2589,3425,3045,3425,3183,3425,3519,3425,2349,3425,29,3425,97,3425,113,3425,153,3425,961,3425,1155,3425,2459,3425,2631,3425,3105,3425,3559,3425,133,3425,15,3425,2259,3425,19,3425,441,3425,441,3425,801,3425,1021,3425,1475,3425,1483,3425,1771,3425,2515,3425,2649,3425,3185,3425,3219,3425,1909,3425,347,3425,1837,3425,2515,3425,747,3425,2147,3425,2549,3425,3041,3425,3183,3425,2187,3425,3519,3437,79,3437,97,3437,187,3437,193,3437,225,3437,441,3437,631,3437,649,3437,653,3437,653,3437,661,3437,751,3437,761,3437,781,3437,781,3437,799,3437,879,3437,907,3437,961,3437,1019,3437,1101,3437,3519,3437,907,3437,1059,3437,1121,3437,2563,3437,2635,3437,3045,3437,3041,3437,3143,3437,3185,3437,3411,3437,951,3437,1173,3437,1235,3437,1449,3437,1515,3437,1891,3437,2371,3437,2549,3437,2547,3437,2559,3437,2691,3437,2791,3437,3175,3437,3427,3437,15,3437,151,3437,615,3437,907,3437,2259,3437,2507,3437,2835,3437,295,3437,2259,3437,3045,3435,511,3435,2827,3435,157,3435,267,3435,1653,3435,2317,3435,2981,3435,3435,3433,431,3433,631,3433,683,3433,2355,3433,2559,3433,2589,3433,2925,3433,3249,3433,177,3433,511,3433,577,3433,737,3433,1129,3433,1201,3433,1483,3433,1483,3433,2515,3433,2631,3433,2891,3433,2925,3433,3045,3433,3165,3433,3199,3433,3227,3433,3407,3433,3519,3433,3559,3447,1287,3447,1785,3447,1891,3447,2191,3447,2299,3447,2371,3447,2549,3447,2691,3447,2791,3447,3009,3447,3227,3447,295,3447,3477,3441,3045,3441,3519,3445,3519,3443,3241,3443,3175,3443,2711,3443,139,3443,1169,3443,3241,3443,2943,3457,133,3457,1047,3457,1711,3457,2311,3457,2943,3457,3519,3457,85,3457,97,3457,103,3457,943,3457,985,3457,1081,3457,1173,3457,2681,3457,1495,3457,79,3457,683,3457,887,3457,2393,3457,3519,3457,2029,3451,601,3451,933,3451,1001,3451,1101,3451,1163,3451,1311,3451,1483,3451,2029,3451,2187,3451,2393,3451,3175,3451,3427,3451,193,3451,443,3451,1161,3451,1237,3451,1891,3451,2371,3451,3189,3451,3257,3451,3517,3451,943,3451,1081,3455,133,3455,441,3455,443,3455,451,3455,549,3455,627,3455,661,3455,717,3455,737,3455,887,3455,887,3455,905,3455,933,3455,1145,3455,1155,3455,1161,3455,1179,3455,1483,3455,1793,3455,1851,3455,2355,3455,2511,3455,2563,3455,2565,3455,3165,3455,3185,3455,3185,3455,3199,3455,3241,3455,3379,3455,3441,3455,2891,3455,1803,3455,2925,3453,1483,3453,289,3453,441,3453,879,3453,887,3453,887,3453,1179,3453,1483,3453,2063,3453,2581,3453,2939,3453,3105,3453,3143,3453,577,3453,1155,3453,1241,3453,1343,3453,2581,3453,3021,3453,2675,3453,3249,3453,229,3453,613,3453,1181,3453,1191,3453,1769,3453,1803,3453,2531,3453,2593,3453,2943,3453,3025,3453,3185,3453,3199,3453,3433,3453,577,3453,745,3453,1265,3453,2581,3453,2875,3453,2905,3453,2549,3453,441,3453,441,3453,1021,3453,339,3453,1769,3453,3577,3463,1199,3463,1239,3463,2581,3479,589,3479,653,3479,887,3479,1145,3479,1155,3479,1287,3479,1315,3479,1371,3479,1483,3479,1523,3479,1661,3479,1711,3479,1769,3479,2355,3479,3045,3479,3189,3479,3219,3479,3231,3479,295,3479,299,3479,601,3479,2835,3477,139,3477,289,3477,545,3477,731,3477,1001,3477,1111,3477,1145,3477,1183,3477,1181,3477,1189,3477,1343,3477,1661,3477,1891,3477,1893,3477,2549,3477,2559,3477,2581,3477,2657,3477,2835,3477,2891,3477,2933,3477,3011,3477,3105,3477,3185,3477,3267,3477,3415,3477,3441,3475,2943,3475,1311,3475,2943,3475,3517,3487,2565,3487,1155,3487,3249,3487,3433,3487,3519,3487,2589,3483,511,3483,887,3483,1085,3483,1239,3483,1707,3483,1891,3483,2563,3483,3045,3483,3425,3483,1687,3483,3241,3483,3247,3483,3427,3483,3519,3483,1145,3483,1161,3483,2709,3483,3411,3495,177,3495,195,3495,755,3495,781,3495,829,3495,1091,3495,1085,3495,1121,3495,1145,3495,1155,3495,1181,3495,1893,3495,2675,3495,2689,3495,2709,3495,3305,3495,907,3495,645,3495,3519,3491,577,3491,1115,3491,3519,3491,3143,3501,97,3501,2553,3501,2563,3501,3041,3501,3055,3511,133,3511,1161,3511,1523,3511,3577,3511,549,3511,1789,3511,1809,3511,1955,3511,1741,3507,1161,3507,2349,3507,2525,3507,2827,3507,1161,3507,1483,3507,2563,3507,645,3507,3199,3507,613,3507,2259,3507,3219,3507,3519,3521,2943,3521,2471,3521,2565,3521,113,3521,209,3521,209,3521,289,3521,751,3521,757,3521,851,3521,1201,3521,1483,3521,1483,3521,2549,3521,2925,3521,3453,3521,3433,3519,193,3519,527,3519,887,3519,1201,3519,1237,3519,1763,3519,1803,3519,1837,3519,1977,3519,2317,3519,2563,3519,2563,3519,2985,3519,3055,3519,3091,3519,3175,3519,3175,3519,295,3519,2563,3519,3435,3519,2767,3517,15,3517,45,3517,53,3517,63,3517,107,3517,139,3517,339,3517,333,3517,451,3517,513,3517,511,3517,553,3517,627,3517,731,3517,757,3517,781,3517,777,3517,907,3517,993,3517,1115,3517,1155,3517,1163,3517,1241,3517,1419,3517,1483,3517,1771,3517,2209,3517,2215,3517,2393,3517,2491,3517,2515,3517,2549,3517,2581,3517,2905,3517,2963,3517,3023,3517,3045,3517,3041,3517,3105,3517,3157,3517,3203,3517,3219,3517,3283,3517,3433,3517,3455,3517,3453,3517,1079,3517,1113,3517,1237,3517,1741,3517,1805,3517,2589,3517,3185,3517,3199,3517,295,3517,2259,3517,2647,3517,3185,3529,729,3529,1179,3529,2255,3529,2569,3529,2565,3529,3157,3529,1019,3529,3207,3529,1685,3527,193,3527,339,3527,333,3527,661,3527,887,3527,933,3527,951,3527,1019,3527,1019,3527,1113,3527,1145,3527,1141,3527,1625,3527,1803,3527,2589,3527,2681,3527,2845,3527,3021,3527,3487,3525,187,3525,193,3525,661,3525,1039,3525,1625,3525,1803,3525,2259,3525,2549,3525,2549,3525,2559,3525,3011,3535,133,3535,193,3535,545,3535,627,3535,781,3535,897,3535,1047,3535,1653,3535,2185,3535,2355,3535,2447,3535,2543,3535,2569,3535,2563,3535,2631,3535,2891,3535,3011,3535,3267,3535,3541,3533,113,3533,2593,3533,3021,3533,3185,3547,757,3547,1189,3547,1201,3547,2629,3547,3219,3547,3519,3541,345,3541,895,3541,1161,3541,1201,3541,2471,3541,2691,3541,2991,3541,3187,3541,3199,3541,3257,3541,2691,3541,3519,3545,653,3545,1145,3545,1483,3545,3427,3545,333,3545,857,3545,1019,3545,1079,3545,3487,3545,289,3545,397,3545,961,3545,1241,3545,1805,3545,2511,3545,2569,3545,3005,3555,1197,3555,1793,3555,3045,3555,3143,3555,3203,3561,59,3561,427,3561,1165,3561,1181,3561,1199,3561,2835,3561,3423,3561,3519,3559,2933,3559,689,3559,737,3559,963,3559,1769,3559,2355,3559,949,3559,2355,3559,3015,3559,3045,3559,3185,3571,451,3571,777,3571,1771,3571,2581,3571,3385,3575,717,3575,2371,3575,2791,3575,3175,3579,247,3579,751,3579,1623,3579,1741,3579,2581,3579,2581,3579,2737,3579,3477,3579,225,3577,97,3577,157,3577,661,3577,689,3577,781,3577,877,3577,907,3577,1079,3577,1155,3577,1615,3577,1707,3577,2015,3577,2141,3577,2471,3577,2559,3577,2565,3577,2589,3577,2827,3577,2933,3577,2943,3577,2985,3577,3013,3577,3219,3577,79,3577,153,3577,285,3577,613,3577,887,3577,907,3577,965,3577,1237,3577,2515,3577,2569,3577,2581,3577,3011,3577,3407,3577,443,3577,1145,3577,3519,3577,631,3577,729,3577,1129,3577,2255,3577,2355,3577,2559,3577,2565,3577,3455,9,801,993,15,3239,3519,29,857,1415,29,1117,2557,29,1155,757,29,1455,2649,29,1485,1113,29,2069,1141,29,2069,1483,29,2185,717,29,2299,519,29,2299,1711,29,2635,2565,29,2985,3015,29,3153,2565,25,323,323,25,577,1485,25,1711,3519,45,577,1483,45,3267,1113,59,97,2507,59,637,209,59,653,1199,59,907,2943,59,913,1179,59,1597,1265,59,1741,781,59,3517,193,59,3517,1067,59,3517,1181,59,193,553,59,1143,2791,59,1415,951,59,1809,1653,59,717,897,59,1481,3519,55,2923,143,63,95,3427,63,589,781,63,831,717,63,907,1209,63,1081,1081,63,1079,2943,63,1279,2631,63,1427,577,63,1495,1179,63,1741,717,63,1901,3519,63,2507,2565,63,2559,2559,67,771,133,67,771,2589,67,1019,1081,67,1541,1909,67,1811,113,67,1811,3189,67,2371,1309,67,2471,2565,67,2529,1909,67,2565,2569,67,2565,2831,67,1711,1741,65,1155,3519,65,2791,577,65,2971,1179,79,3427,717,77,205,717,75,887,2565,75,143,1495,75,143,2355,75,143,2791,75,333,2141,75,597,3519,75,935,751,75,1253,2439,75,1337,3437,75,2549,3011,75,2609,2191,75,2891,289,75,2943,1677,75,3247,3199,75,3257,1287,75,295,3441,75,3429,1495,75,3425,2141,75,3517,627,75,1653,2709,85,85,2743,85,143,717,85,1027,717,85,1505,717,99,831,717,99,887,2835,99,2549,887,99,2835,2565,99,2933,2305,99,3247,717,99,3185,441,97,851,717,97,3055,3001,97,29,661,97,193,613,97,613,2565,97,1069,961,97,1069,1909,97,1069,2355,97,1069,2471,97,1101,537,97,1161,243,97,1161,3367,97,2507,2565,97,2949,107,97,3003,549,97,3003,729,97,3003,757,97,3239,3249,97,3411,645,97,3415,1201,97,3415,2355,95,431,1081,95,1079,1145,95,193,2147,95,789,1181,95,2855,717,95,781,3241,95,731,1483,95,1475,1711,95,1733,1081,95,2159,2581,105,177,3153,105,193,2919,105,511,1107,105,519,1019,105,637,3055,105,637,3407,105,725,1265,105,985,545,105,985,2565,105,991,519,105,1139,943,105,1139,2305,105,1139,3055,105,1209,2355,105,1209,2565,105,1209,3129,105,2949,519,103,3219,1201,103,3219,2141,103,515,3519,103,577,1485,103,781,1741,103,943,3051,103,1301,103,103,2371,3051,103,843,2355,103,983,2355,103,2965,717,103,2589,717,113,577,2355,113,1315,2559,113,1771,1891,113,1891,645,113,2565,1141,113,2985,2565,113,3455,717,113,1153,1145,111,1129,717,129,345,717,129,2901,3519,129,3267,1805,133,1483,2563,133,1531,3055,133,1803,3237,133,3185,1909,133,579,2991,133,1141,113,131,2323,3051,131,3091,2141,131,3175,2559,131,1803,441,131,1633,431,131,3227,3227,131,1461,2187,131,1461,3411,143,745,1265,143,1139,193,143,3397,25,141,3185,441,139,589,3367,139,729,717,139,771,729,139,2471,1575,139,2675,2187,139,2981,729,139,3129,2187,139,3545,2187,139,1069,2355,139,1069,2565,139,3415,729,153,3501,2563,153,3501,3011,153,3501,3199,153,3501,3241,151,1253,2187,151,1741,943,151,1741,1145,151,3147,297,151,3147,2439,151,3423,1977,157,627,661,177,265,717,177,403,2191,177,403,3105,177,955,717,177,887,299,177,3185,729,177,3227,3519,173,577,1495,173,1485,3105,173,2909,2909,173,3159,3519,187,1437,907,187,2565,669,187,2651,2919,187,3199,2565,187,3435,1145,181,3545,1805,181,2835,2565,181,63,3001,181,1431,1113,181,2971,3249,181,3055,3001,181,985,2919,193,333,2187,193,513,1199,193,511,1481,193,545,553,193,553,193,193,553,1197,193,553,1515,193,627,289,193,829,539,193,963,3185,193,1141,2565,193,1209,3185,193,1207,2187,193,1873,193,193,2355,545,193,2569,2933,193,3015,831,193,3517,3283,193,3541,545,193,3577,2933,193,3577,2559,193,1415,851,193,1079,1145,205,1027,717,211,3519,3227,225,3185,1113,225,3185,3249,225,3385,2981,225,3415,537,219,1139,2355,219,97,97,229,1691,717,241,153,717,241,589,3519,241,589,3519,247,1503,3105,247,1455,3001,247,3247,577,3341,2703,1977,3341,3545,1805,265,1021,2471,265,1079,1113,265,1601,717,267,1811,1165,267,193,683,267,193,1481,281,2215,1181,275,3227,1145,289,2395,2191,289,2395,2349,301,649,3001,295,877,3545,295,2755,605,295,2587,2565,297,2569,79,311,655,187,311,847,2137,311,2559,187,311,2559,2675,311,3045,3055,3389,857,3407,309,3227,3237,319,1505,299,319,1653,757,319,2205,3519,323,3453,2187,323,1523,2141,323,1523,2565,323,2589,1237,339,3429,2933,339,1711,1741,333,649,2565,333,1141,531,333,1891,2355,333,2943,729,333,3197,3051,333,553,2565,333,1485,2355,333,2565,2317,337,3209,3059,349,63,2563,349,193,1279,349,193,1419,349,193,1515,349,193,2511,349,193,2837,349,193,3025,349,643,2563,349,935,2651,349,933,3519,349,1111,1341,349,1445,97,349,1449,113,349,2115,2563,347,427,3199,345,1497,2529,345,1637,1637,345,1703,2675,359,1145,187,353,1703,1081,369,1475,3519,369,2631,1145,369,2631,3367,365,2099,1837,379,77,2531,379,267,3519,379,591,3519,379,1155,2355,379,1343,2629,379,1615,3519,379,1711,3519,379,2305,717,379,2355,1771,379,3257,3519,379,1139,2531,379,3437,2559,377,1485,2141,377,1485,2187,377,1977,577,377,1977,3577,3087,289,2141,375,731,2187,375,1703,2835,403,2507,1153,403,2743,781,403,3045,1495,397,89,519,397,509,2565,397,627,519,397,829,2187,397,1155,97,397,2559,2187,397,2657,519,401,3091,3091,399,1711,3519,411,935,631,411,1173,1067,409,2567,2355,409,2565,1141,409,3311,1483,409,3311,3051,423,781,1145,423,907,2581,423,1475,781,417,1081,1711,417,3423,1741,441,1113,3105,441,247,1503,443,1145,2675,443,1145,3051,459,2349,1849,485,1463,527,481,2559,2559,481,2559,2559,489,377,2187,501,157,3517,509,721,2943,509,1805,527,513,57,2565,513,67,3519,513,143,907,513,359,781,513,655,717,513,655,887,513,671,717,513,721,943,513,935,2221,513,935,2651,513,1133,1145,513,1183,545,513,1315,2629,513,1659,799,513,1685,3189,513,1769,717,513,1897,717,513,2205,3367,513,2581,2565,513,2649,1071,513,2791,2991,513,2819,717,513,2831,935,513,2835,781,513,2991,2581,513,3005,781,513,3147,1069,513,3195,1145,513,3227,1145,513,3389,1073,513,3455,3185,513,3487,1145,513,3517,1145,511,99,831,511,113,3203,511,157,2507,511,193,1515,511,193,2835,511,627,1661,511,627,3577,511,645,1019,511,683,2589,511,751,3011,511,857,511,511,851,1771,511,909,3519,511,1019,297,511,1059,751,511,1059,1891,511,1059,2791,511,1111,3015,511,1155,2815,511,1365,2835,511,1449,3251,511,1485,2565,511,1483,1081,511,1495,2565,511,1597,1129,511,1597,1131,511,1891,3175,511,2187,2305,511,2205,1891,511,2205,2775,511,2205,2791,511,2265,3313,511,2259,2791,511,2261,2565,511,2465,373,511,2547,717,511,2581,133,511,2651,1653,511,2715,193,511,2825,2565,511,2835,3237,511,2835,3411,511,2855,3247,511,2973,1201,511,2985,105,511,2985,3153,511,3105,2559,511,3109,2507,511,3115,1091,511,3149,949,511,3183,3519,511,3261,1789,511,3257,1197,511,3267,1019,511,3275,3249,511,3455,1179,519,151,2855,519,151,3577,519,1485,2355,519,1769,441,519,2589,1019,519,2589,3105,519,3143,2355,519,3219,2141,519,443,717,519,1013,717,531,615,1021,531,631,2565,531,1151,661,531,427,441,531,513,3189,531,751,1741,531,1101,933,531,2355,1077,531,2471,943,531,2999,717,531,3199,441,529,3023,949,527,2631,1067,527,3519,2709,539,1155,2355,539,2565,2355,537,319,887,535,25,3105,537,59,907,537,519,151,549,803,2581,549,1653,527,549,3025,1741,547,1133,2709,547,431,991,547,1013,717,547,1141,2563,547,2935,1343,545,2835,1419,545,721,669,545,1531,3427,545,241,2355,553,2355,3045,553,649,3001,553,3055,2565,571,1505,717,571,3045,241,569,2905,2141,567,3023,2147,581,1873,717,581,613,933,575,2651,1315,579,3129,2141,579,2991,2355,577,151,2631,577,257,3105,577,751,935,577,751,2563,577,751,2629,577,751,3425,577,805,3519,577,1151,2629,577,1449,1071,577,1485,3105,577,1483,2265,577,1687,3105,577,1741,2631,577,2835,2529,577,2845,3105,577,2991,1019,577,2991,2565,577,2991,2631,577,3049,2845,577,3195,3519,577,3407,187,577,3407,3105,577,3425,3105,577,3437,985,577,3147,2471,577,719,2547,577,3189,2547,577,3261,961,591,3049,3051,589,95,1145,589,297,1145,589,423,781,589,441,187,589,441,2809,589,441,3105,589,627,1145,589,627,2565,589,645,151,589,801,3051,589,887,3105,589,931,3367,589,1079,1145,589,1079,1235,589,1449,1071,589,1447,2809,589,1597,2845,589,1605,3519,589,2065,943,589,2349,107,589,2375,2187,589,2563,2187,589,2565,267,589,2565,1145,589,2565,2111,589,2935,267,589,3129,151,589,3129,1141,589,3207,3249,589,3519,151,589,3519,799,589,3519,933,589,3519,1625,589,3519,2589,589,3519,3105,589,3519,3265,589,3545,2187,589,3023,719,589,579,717,597,2897,519,597,2935,1343,597,963,717,617,887,2767,615,917,917,615,1711,717,615,2565,2845,613,2593,617,613,2593,1145,617,347,55,613,2039,3055,613,2563,2187,613,3055,3001,613,3199,907,613,3519,3227,631,105,1071,631,413,1141,631,545,961,631,545,3455,631,1209,2919,631,1531,537,631,3055,2565,631,3415,1179,631,3423,1711,631,193,1415,631,917,3519,631,1059,1909,629,2565,1113,627,193,627,627,1077,1623,627,1483,1145,627,1483,3105,627,2971,3105,627,2971,3227,627,2815,1067,649,265,3249,649,301,3001,649,1427,3001,649,3265,2565,637,2939,781,637,1827,3407,635,803,1081,635,803,1851,635,803,2397,635,3123,717,635,1713,3519,635,2291,717,635,3021,717,643,1483,961,643,1711,717,643,2507,3519,643,2559,1977,643,2559,3519,643,3147,1575,643,3249,717,643,2593,2355,643,3423,3559,645,1249,1081,645,2661,3519,645,3045,2809,655,193,1515,655,3117,79,653,1597,2187,653,1741,2845,661,133,645,661,133,2471,661,193,2189,661,1171,1145,661,1293,2439,661,1483,1741,661,2935,717,661,2935,1343,673,887,1485,683,527,2835,683,731,173,683,751,1741,683,1623,683,683,1741,1181,683,1741,2581,683,1851,1019,683,1891,2559,683,2543,1179,683,3189,75,683,3185,441,683,3199,3517,683,3247,1625,687,1703,2507,687,3377,781,689,2565,1483,689,3447,2565,707,617,717,707,1341,717,717,2825,2855,721,95,2543,721,143,781,721,917,3519,721,2049,781,721,2901,3519,721,3149,933,721,3491,3519,719,57,549,719,57,2581,719,67,2973,719,397,2581,719,577,3455,719,745,631,719,967,2835,719,1139,933,719,1197,887,719,1473,3519,719,1741,1181,719,1891,2559,719,2581,1131,719,2781,1181,719,3247,1625,731,95,1145,731,589,299,731,589,1145,731,627,1145,731,657,441,731,1287,441,731,1769,1155,731,2099,2187,731,2189,2355,731,2543,1209,731,3009,577,731,3143,2355,731,3153,209,731,3241,441,731,3247,577,729,2355,907,729,3189,3105,741,1047,1081,741,1803,917,741,319,3237,741,853,717,741,1201,637,735,721,2439,735,2779,3517,739,133,1483,739,359,1483,739,589,3519,739,661,537,739,851,1771,739,1483,3519,739,2205,1145,739,2531,1181,739,3185,441,739,3205,1625,739,3415,729,739,3477,2111,739,3577,3219,737,193,2511,737,1187,2187,737,2543,1625,751,139,1741,751,729,1625,751,1201,2187,751,1365,3517,751,1379,2845,751,1741,1265,751,2935,441,751,2935,1181,745,3185,3367,745,577,289,749,2559,3105,749,3429,2141,747,511,2187,747,511,3427,747,1337,2187,747,1475,781,747,2531,3051,747,3011,1145,747,3195,3519,747,3205,1145,761,935,751,761,1201,2591,761,1661,2141,759,85,3559,757,627,1661,757,1187,1019,757,1205,1661,757,3115,1091,757,1733,3519,757,2581,1181,771,1205,2835,771,1463,3105,771,2985,3241,769,2181,717,769,3419,2387,781,649,3001,781,1141,1341,781,1207,1079,781,1703,1081,781,2245,139,781,2673,1079,781,3011,153,781,3041,3519,781,3227,1209,781,3241,3189,781,1161,3455,781,2355,3249,781,1769,2187,781,2965,1703,775,2357,1145,775,3189,3411,777,1101,1803,777,1101,3189,777,2937,241,777,2937,3237,777,3005,1081,789,553,1181,789,839,3001,789,1153,241,789,1179,2845,789,2147,3001,789,2507,2565,789,2581,917,799,2763,1141,799,2763,1155,799,2375,961,799,1011,1625,799,2531,1873,799,29,2565,799,615,2565,799,1161,2557,799,2265,2565,799,2299,2565,799,3055,3015,799,3447,2565,803,3087,1201,803,2565,2845,801,1805,935,801,589,3519,801,1481,3519,801,289,1315,801,1155,2629,801,2591,961,801,3507,1483,801,803,3199,801,1019,441,801,1769,2589,801,2471,943,801,3033,3427,801,3055,1711,801,3055,2531,801,3055,3015,801,3195,1145,801,3425,2141,801,289,2141,801,2563,2141,801,3577,3219,801,431,1173,801,819,1741,815,1409,717,2239,1827,3015,815,3351,717,819,1481,3519,831,3205,139,829,193,2511,829,1749,1113,829,1769,717,829,2349,1849,829,2745,717,829,2649,661,829,943,2111,829,943,3427,829,2325,1483,829,2579,2187,829,2735,441,829,2735,1237,829,1431,1607,829,1431,3227,831,59,59,831,1447,2675,831,2343,2675,831,3005,965,831,3311,1145,831,3311,2187,831,3311,2565,839,2651,2553,837,2971,1235,847,187,3519,847,209,2559,847,209,2559,847,645,1141,847,1139,2531,847,1155,2709,847,1181,107,847,1209,1165,847,1503,1733,847,1545,2849,847,2937,645,847,3025,757,847,3059,2565,847,3129,589,847,3545,1805,857,1449,1113,857,2937,59,857,297,1155,857,2973,1141,851,1139,3001,851,1771,1155,851,1771,1265,871,113,729,871,1237,577,871,3427,2589,879,1891,2191,879,3189,2565,887,333,177,887,333,2569,887,1165,243,887,3175,961,887,3175,2141,887,3185,2141,887,3577,1741,887,3577,2371,887,1161,2581,887,1973,2581,887,103,2589,887,1145,1201,887,1163,729,887,1279,3041,887,2147,335,887,2675,2355,887,3185,1201,887,3199,3519,887,3261,2589,883,289,537,883,1019,537,883,1019,961,883,1197,1113,883,2265,2855,883,2825,2531,883,2825,3241,883,3407,2187,887,3025,2531,899,3143,717,897,2937,241,897,3167,897,895,441,729,895,3311,1067,895,1663,1483,895,1183,2259,909,665,717,909,19,3519,909,1483,3519,909,1541,1541,909,1901,1155,907,1183,2565,907,1427,1209,907,2825,2471,907,2943,3517,907,1187,1019,907,2691,195,907,591,3519,907,781,1145,905,2565,2111,905,3223,1265,917,3519,1201,917,1067,3519,913,1011,3041,925,181,717,923,193,553,935,631,2743,935,1161,2191,935,1161,3517,935,1187,2827,935,1495,441,935,2981,3105,935,265,1155,935,265,1483,935,2565,3199,935,3199,2849,935,1873,2855,935,3045,173,931,2983,2565,931,1733,2749,943,77,717,943,187,295,943,589,3519,943,955,717,943,1187,645,941,29,1711,941,29,2565,941,187,3367,941,991,887,941,1183,1113,949,591,3519,949,1541,1209,949,1711,935,949,2777,2835,949,3411,241,947,3519,2581,947,1201,2591,967,2811,717,967,967,717,961,745,1265,961,1141,729,961,1141,857,961,1763,3051,961,2971,3249,965,1513,717,965,2355,717,963,75,2589,963,589,3207,963,1187,717,963,1419,2355,963,2559,2371,963,2631,1741,963,2743,781,963,2973,935,977,59,1019,977,1413,3519,977,1731,917,1091,3015,2855,1091,3247,2743,985,1635,3199,985,1827,2557,985,2923,3055,985,3055,3001,991,2591,151,991,2973,1141,993,103,3045,993,3129,3519,1001,3175,3241,1001,1337,3041,1013,1013,717,1013,2355,1155,1013,2913,717,1013,2925,1181,1013,3025,2985,1011,1653,1145,1023,1785,2631,1019,113,1315,1019,193,1419,1019,333,441,1019,333,851,1019,613,113,1019,729,3051,1019,1133,2355,1019,2825,887,1019,3185,2815,1019,3577,2531,1019,2581,2975,1019,2511,2835,1019,2565,1449,1019,105,2557,1019,527,2835,1019,527,63,1019,589,299,1019,589,3367,1019,687,3347,1019,1101,2675,1019,2565,3145,1019,2973,2187,1021,1427,2507,1021,1891,2111,1027,63,2111,1027,323,323,1027,819,2849,1027,1575,1173,1027,1769,531,1027,2185,1265,1027,2471,2675,1027,2531,1113,1027,2581,537,1027,3147,3457,1027,3227,3227,1027,3265,1805,1027,3411,3457,1033,193,553,1039,653,1741,1039,2245,1741,1039,3577,153,1053,3347,1145,1053,831,1145,1053,831,2187,1047,333,333,1047,1703,2675,1047,1901,3519,1047,2185,2581,1047,2631,1019,1047,3165,2631,1047,3199,3199,1047,2985,933,1047,3319,1067,1057,205,3199,1059,75,2559,1059,75,2791,1059,75,3175,1059,103,1265,1059,1419,2355,1059,1499,717,1059,3577,1483,1059,319,2565,1059,3099,2355,1073,2985,545,1067,1141,2559,1067,605,1081,1067,605,3487,1071,2559,2559,1069,333,1019,1081,591,3519,1077,193,1419,1077,2555,669,1077,3199,2565,1077,3009,1145,1079,3487,2141,1079,2563,3517,1079,2905,3199,1079,589,2565,1085,3519,907,1087,631,2985,1093,571,2111,1093,853,717,1093,2681,151,1107,2543,717,1101,2725,3519,1101,2179,1173,1101,2507,2565,1101,3165,3519,1117,731,3051,1117,731,3227,1117,801,2191,1121,431,2565,1111,951,1891,1111,951,2349,1111,1449,1155,1113,545,1711,1113,1311,2565,1113,3185,2565,1113,3247,961,1129,627,1155,1129,1133,2507,1129,1161,949,1129,2205,717,1129,2559,2559,1129,2579,3559,1129,3005,3005,1133,319,2835,1133,1411,1411,1133,2507,1343,1133,2525,3265,1133,2835,1265,1133,2835,2511,1133,3145,2507,1131,1435,907,1145,1145,241,1145,1541,949,1145,2187,2355,1145,2971,653,1145,3031,1625,1145,3031,2581,1145,1685,3041,1145,2985,2565,1145,1139,3051,1145,3109,241,1145,3241,3265,1139,2563,3241,1139,195,2439,1139,1455,1909,1139,59,59,1139,265,717,1139,3005,781,1139,511,333,1139,2447,577,1139,2855,1265,1139,3437,3203,1143,3123,847,1143,1503,907,1143,2543,1209,1143,3453,1523,1143,3495,907,1141,1597,2111,1141,3087,2943,1141,3185,1483,1141,1893,107,1141,1893,2141,1141,1893,2371,1141,333,729,1141,333,2355,1141,589,2187,1155,2443,717,1155,2675,645,1155,2675,2187,1155,3227,3367,1155,2791,2991,1155,2971,1129,1155,2971,2565,1155,1541,1173,1155,3055,2565,1155,3239,935,1155,77,2187,1155,3451,2753,1153,907,2943,1153,441,107,1153,771,2589,1165,1145,1145,1165,1153,907,1165,1069,2355,1163,2245,1145,1163,2245,1483,1163,771,2589,1163,1079,3517,1163,2779,3517,1163,1201,2591,1161,193,553,1161,1741,1485,1161,2979,2559,1161,3415,2355,1161,2531,3051,1161,3453,3105,1161,347,1071,1161,2549,243,1161,613,2355,1161,57,3519,1173,649,2565,1173,1711,2565,1173,2677,2557,1171,3105,1201,1183,63,1245,1183,1093,1145,1183,1141,1081,1183,2831,3367,1183,3367,961,1183,581,581,1183,3447,2919,1183,2305,717,1181,2675,645,1181,571,3519,1181,2915,3519,1181,3129,3519,1181,75,1145,1193,1139,3051,1187,1803,531,1187,2589,3241,1191,747,1265,1191,1341,717,1191,2171,2565,1191,2171,3105,1191,2643,441,1191,2795,2187,1189,2521,2355,1189,2521,3041,1189,3519,2187,1189,631,781,1201,509,1419,1201,951,3519,1201,1091,2529,1201,1495,1081,1201,1541,3519,1201,1703,2675,1201,2205,241,1201,2221,3237,1201,2491,1173,1201,2563,3105,1201,2651,2311,1201,3023,781,1201,3169,519,1201,3193,1081,1201,3209,3519,1201,3237,241,1201,3369,1081,1199,59,59,1199,153,2439,1199,3447,2565,1197,1313,1873,1197,2355,2565,1197,379,1343,1197,1079,1625,1197,1343,1131,1197,1343,2629,1197,2187,1343,1197,2647,1191,1197,2935,1265,1201,193,2189,1209,719,1067,1209,3227,3519,1209,1141,2355,1209,2937,645,1209,3447,2565,1209,1731,645,1209,2311,645,1207,839,2507,1207,553,3407,1207,95,2187,1207,265,1235,1207,1189,2471,1207,2777,3051,1205,1449,3249,1241,1145,2581,1235,1863,2355,1235,2905,2355,1235,3001,3051,1235,3437,2355,1237,1455,193,1237,3437,2355,1237,3577,1155,1245,257,3265,1245,1145,3265,1245,3441,3487,1253,613,1625,1253,613,3051,1253,1769,3519,1265,933,1113,1265,3091,2141,1265,3265,3051,1265,3455,961,1265,3519,961,1271,761,3199,1271,2563,2565,1271,2651,2763,1279,649,1019,1279,745,1165,1279,781,2565,1279,1059,1711,1279,1245,1145,1279,1343,3025,1279,1405,577,1279,1711,1047,1279,2651,1733,1277,3095,1711,1287,2069,1415,1285,2023,1415,1283,193,963,1283,193,2189,1283,2189,1419,1283,3189,2559,1297,3231,2933,1291,295,887,1293,547,799,1293,1265,2675,1293,2559,2675,1293,3165,3051,1293,3511,717,1303,907,3105,1303,1237,3105,1301,143,3367,1315,3105,1155,1315,3105,3249,1309,1435,3457,1313,643,3051,1313,879,577,1313,1161,645,1313,1161,943,1313,1301,3051,1313,1427,1209,1313,2675,3051,1311,333,151,1337,99,527,1337,333,1141,1337,661,1337,1337,1165,3367,1337,1309,3519,1337,2187,3239,1337,2581,545,1337,2795,2187,1335,751,3065,1335,2311,1607,1345,1711,717,1343,2521,717,1343,2835,285,1343,2835,3241,1343,3015,2743,1351,2387,1141,1349,1623,1141,1361,985,1343,1357,1891,645,1365,3437,3519,1379,2299,2631,1393,3045,2565,1387,1081,3519,1387,105,1311,1401,353,3105,1401,1623,2507,1401,1769,1067,1399,3279,1145,1405,3065,2187,1405,3199,1145,1405,3199,2187,1405,3175,2589,1415,935,2981,1415,1183,2259,1415,1393,1337,1415,1415,661,1415,1483,2187,1415,1653,1311,1415,1663,1661,1415,2507,2835,1415,2991,1653,1415,2991,2631,1415,3153,2111,1413,59,1081,1411,1483,2835,1419,193,553,1419,1597,1131,1419,3199,1019,1427,1597,1071,1427,233,1173,1431,3153,3153,1429,2755,3519,1451,545,241,1451,3189,57,1445,627,729,1445,627,1483,1445,2563,3519,1449,75,2791,1449,805,3519,1449,851,1771,1449,887,887,1449,1013,2355,1449,1101,1483,1449,1173,1067,1449,1183,2259,1449,1507,1343,1449,1685,3519,1449,1891,2355,1449,2157,3519,1449,2355,1155,1449,2355,3055,1449,2579,3055,1449,2725,2725,1449,2755,3519,1449,3005,2559,1449,3015,2563,1449,3147,943,1449,3173,3519,1449,3227,3519,1449,3239,1733,1449,3521,851,1455,593,593,1455,649,3001,1515,193,553,1515,193,2189,1461,509,177,1461,509,3367,1461,3241,3265,1461,3407,3241,1461,2531,2187,1463,2355,717,1463,643,2675,1475,177,2187,1475,193,745,1475,1155,887,1475,1499,3519,1481,193,1279,1481,851,717,1481,1019,2187,1481,3045,1145,1481,3045,1483,1481,3519,2589,1485,65,2371,1485,65,2791,1485,333,107,1485,2905,1485,1483,2187,1129,1483,751,1733,1483,2779,2559,1483,821,2629,1483,957,1483,1483,3519,2589,1495,871,53,1495,931,3051,1495,1091,97,1495,1091,1079,1495,1091,1141,1495,1019,961,1495,1019,1145,1495,1739,3517,1499,2039,717,1497,3227,299,1497,1703,2675,1503,1155,3519,1503,63,1279,1507,143,547,1507,591,1625,1507,771,729,1507,1111,2565,1507,1181,951,1507,1653,2565,1507,1741,943,1507,1741,3051,1507,2991,3519,1505,943,943,1505,3147,2355,1503,1181,2187,1503,2349,2187,1511,631,2567,1511,3157,3249,1511,333,2565,1513,1253,3519,1513,635,717,1523,871,3051,1531,289,2141,1531,589,3001,1531,3199,545,1531,1189,1181,1531,2563,887,1531,345,1803,1533,2471,949,1541,1765,645,1541,3025,1081,1575,2999,3015,1575,3091,241,1575,3091,1741,1575,3519,3001,1585,2781,1165,1595,3447,2565,1601,589,3001,1597,3011,1145,1597,3199,1145,1597,907,3015,1597,1181,2623,1597,1597,2831,1587,1653,1181,1587,3001,717,1587,3189,2581,1613,2559,3519,1617,2729,2559,1623,1485,3105,1623,1145,2581,1625,2643,2943,1633,589,3001,1633,967,717,1633,993,635,1633,993,965,1633,2651,549,1633,2651,617,1633,2651,1805,1635,3153,2565,1635,2885,443,1605,513,957,1605,2099,3207,1609,2657,3149,1609,1483,151,1607,1481,3519,1649,1461,3519,1653,515,3519,1653,553,1485,1653,767,3427,1653,985,1685,1653,1021,2589,1653,1343,2809,1653,1541,2591,1653,1823,3519,1653,2205,3541,1653,2205,3519,1653,2439,1311,1653,2775,151,1653,2775,1495,1653,2775,2809,1653,3209,1081,1653,1101,617,1663,1661,2355,1661,1311,781,1661,1711,631,1661,2397,1209,1661,3123,2743,1661,935,3519,1661,1483,2187,1661,2355,2259,1671,1173,1047,1671,2743,1047,1671,2791,761,1671,2791,3055,1669,739,2531,1669,2881,2881,1677,193,605,1685,143,3427,1685,577,1101,1685,1201,103,1685,1685,3241,1685,2981,933,1685,3319,631,1685,3429,2141,1687,2029,1131,1687,2569,949,1687,3185,781,1687,1393,717,1703,143,717,1703,379,2985,1703,441,717,1703,729,717,1703,935,2981,1703,1013,2187,1703,1711,717,1703,2565,717,1703,2565,2355,1703,3207,717,1703,951,2471,1703,887,1019,1703,1027,3519,1703,1183,3227,1703,3349,3519,1707,2355,1141,1707,2375,3249,1707,2563,1155,1707,2589,2111,1707,2589,3517,1707,1481,3519,1705,1503,3045,1711,129,717,1711,1205,1661,1711,2565,193,1711,3409,193,1729,1455,3001,1729,1121,2749,1733,769,2387,1733,831,2631,1733,1101,2471,1733,1503,403,1731,1633,1173,1731,1139,2589,1739,3429,2141,1739,3519,3227,1743,193,553,1743,193,1515,1743,3185,1483,1743,3185,3051,1741,661,1741,1741,1653,717,1741,2355,717,1741,2543,1209,1741,2855,2855,1757,1133,2187,1763,2673,3105,1769,63,2355,1769,2651,1311,1769,3041,2111,1769,3147,2355,1769,193,2147,1769,2923,3055,1789,1711,717,1783,2763,717,1783,205,1483,1783,193,1279,1783,3153,887,1783,909,3265,1783,2589,2569,1785,2559,2355,1785,2651,1315,1785,3091,3231,1785,637,3237,1785,721,113,1785,2631,717,1805,1449,1071,1803,1427,1081,1803,1653,1141,1803,2015,2111,1803,2735,1079,1803,3153,2355,1803,2559,717,1809,3455,3185,1813,1711,3519,1811,333,3519,1811,509,1803,1811,3407,717,1811,1713,717,1821,3219,2141,1827,581,3199,1827,847,3199,1827,3437,3199,1827,917,3519,1827,1881,2919,1827,2791,1711,1827,2949,519,1827,3153,2565,1827,2933,2259,1851,519,917,1851,589,187,1851,589,2845,1851,917,3519,1851,1145,2631,1851,1711,717,1851,1711,3519,1851,2543,1209,1851,2937,2711,1849,1145,1107,1849,1615,3519,1849,2099,2187,1849,3185,1161,1849,3185,2187,1863,539,1155,1863,1597,961,1863,1597,985,1863,1597,1019,1863,1597,1067,1863,2245,3247,1863,2323,1145,1863,3423,1977,1873,627,3051,1873,1161,645,1881,1455,1311,1881,1633,1019,1883,3267,2681,1883,1769,3041,1897,59,59,1897,1073,1073,1891,2265,2355,1891,2451,2563,1895,957,3519,1901,3519,935,1901,3519,1265,1909,2579,2447,1927,649,3001,1927,3045,717,1927,1237,1483,1953,289,2141,1953,1967,3455,1953,3175,961,1953,3175,2629,1953,3477,761,1955,305,717,1967,1483,3455,1969,359,359,1983,1073,1073,1983,2187,2855,1983,3153,3153,1991,2965,717,1977,887,3519,1977,981,717,1977,3455,2355,2015,991,2589,2021,2507,1071,2035,1661,1001,2029,2835,177,2031,1483,2651,2031,2559,441,2045,3429,1081,2039,2753,1113,2041,653,1483,2049,267,717,2049,2245,3247,2049,3129,1483,2059,871,717,2059,3385,717,2063,1173,1067,2063,1653,2835,2063,1663,1661,2063,2559,3185,2063,2869,717,2075,2729,3105,2069,3157,1145,2069,3023,3045,2085,1133,2187,2085,2971,2187,2089,1067,3001,2091,1101,2709,2091,2835,1113,2091,3267,2187,2105,731,2515,2105,2147,1155,2099,77,717,2099,1057,717,2099,2829,3519,2099,2021,907,2115,3045,1623,2111,1153,1769,2111,1741,3051,2121,737,3519,2137,905,1953,2147,751,1733,2147,1039,1803,2147,1153,1769,2147,1265,267,2147,1265,2589,2147,1741,187,2147,1741,1181,2147,1741,2845,2147,3049,935,2147,1625,1155,2163,1475,2631,2157,3153,1067,2159,2515,781,2159,2779,3517,2159,2791,1107,2171,801,289,2171,1741,2845,2171,2565,2845,2175,2785,2565,2175,2775,3519,2175,2753,831,2175,2753,2743,2175,3153,2565,2179,139,3051,2179,1139,113,2179,2831,2355,2191,739,531,2191,1485,3015,2191,3175,2589,2191,2989,2565,2185,193,3535,2185,1495,2507,2185,2567,1237,2189,3175,1155,2189,1769,3055,2189,627,2187,2189,1241,2565,2189,3433,1145,2189,3577,3219,2187,193,887,2187,193,963,2187,359,359,2187,907,907,2187,1059,3105,2187,1073,1073,2187,2835,2511,2187,3011,3367,2187,3065,3065,2187,3091,3091,2187,3129,151,2187,1079,2349,2187,1623,1145,2187,3227,1145,2187,949,2543,2211,789,2507,2211,1485,943,2211,1485,1241,2211,1485,1653,2211,2371,1047,2211,3197,1483,2211,133,1079,2205,75,2791,2205,75,3175,2205,399,3519,2205,2743,1173,2205,29,3001,2205,799,2191,2205,2631,3189,2205,2723,441,2205,3185,2563,2209,799,601,2215,3231,1483,2215,2835,241,2235,143,907,2229,2835,97,2229,193,2189,2233,1311,1483,2245,771,3199,2245,857,1145,2245,1337,1165,2245,2111,1145,2245,2147,1741,2245,2387,549,2245,3011,1483,2245,3025,1181,2245,3025,1483,2245,3025,1741,2239,613,3015,2241,2559,2559,2255,907,2387,2255,1019,1483,2249,2971,177,2265,333,2507,2265,431,2191,2265,985,1067,2265,1703,2675,2265,1803,3015,2265,2825,2187,2265,3153,887,2265,1201,2591,2265,2125,2125,2265,2973,2187,2265,3247,2675,2265,3247,3519,2265,3011,3051,2265,3029,645,2265,1265,247,2265,3189,2471,2259,95,3105,2259,3241,151,2295,3451,1145,2295,943,645,2295,943,3051,2295,2295,717,2295,3001,1707,2295,3001,2845,2299,2939,3051,2299,3267,1113,2317,519,781,2317,3209,1113,2323,1513,3227,2323,2525,527,2339,627,1661,2341,2919,717,2341,2919,3519,2341,3251,717,2351,1615,3519,2351,2565,761,2349,519,3237,2349,589,299,2349,589,3367,2349,799,2531,2349,1155,887,2349,1411,1411,2349,1483,3105,2349,2549,2439,2349,3045,295,2355,737,3519,2355,887,1067,2355,887,1485,2355,1419,781,2355,1463,3105,2355,2565,1165,2355,2835,2629,2355,2971,1079,2355,3045,965,2355,3051,1625,2355,3207,717,2355,3247,717,2355,3311,851,2355,3311,1685,2371,113,2355,2371,333,151,2371,943,3239,2371,1091,2563,2371,1141,113,2371,1483,151,2371,2299,2563,2371,3219,2141,2371,3257,2507,2375,589,2187,2375,1191,645,2387,3437,443,2397,3425,2141,2407,99,3487,2407,907,3237,2407,1315,3105,2407,1739,1739,2407,2719,2719,2421,1077,3227,2433,897,3033,2435,1097,717,2435,3129,3519,2443,89,3519,2451,63,241,2451,79,547,2451,193,933,2451,1019,1113,2451,1019,2849,2451,1139,933,2451,1155,495,2451,1181,2809,2451,1181,3105,2451,1187,1019,2451,1495,531,2451,1769,2565,2451,2191,1279,2451,2265,2855,2451,3247,1485,2451,3247,2471,2451,3517,1209,2447,2349,2187,2459,1141,2559,2459,3301,757,2467,2651,299,2465,805,2355,2491,2355,737,2491,2515,1483,2491,617,3237,2487,2563,1165,2507,985,935,2507,985,1209,2507,1019,2753,2507,1485,1047,2507,2631,1079,2507,2825,3519,2503,2835,2565,2503,1741,717,2515,649,3001,2511,75,2549,2511,75,2791,2511,75,3175,2511,569,177,2511,949,545,2511,1197,3045,2511,1891,1141,2511,2691,2589,2511,2991,2631,2511,2991,2943,2511,3437,1953,2525,1653,3519,2525,847,3015,2523,63,2835,2523,631,1155,2523,717,1209,2523,3005,661,2521,3153,2565,2521,3055,2565,2529,871,3199,2529,1165,3199,2531,1483,3519,2531,1113,3105,2531,2565,645,2531,3011,933,2531,3011,1145,2531,3207,2089,2531,3207,2569,2531,3415,2923,2549,1073,2985,2549,3407,2565,2563,267,985,2563,751,2565,2563,1161,717,2543,545,107,2543,1209,2827,2543,1209,3247,2543,2221,2581,2543,3005,1113,2547,2041,935,2547,2041,2815,2545,3023,933,2545,847,2137,2559,1169,1145,2559,289,1483,2559,1129,757,2559,1129,1483,2559,1485,3105,2559,1483,1265,2559,1771,1483,2559,2563,847,2559,2725,3105,2559,2971,2305,2559,2971,3105,2559,3185,1209,2559,3185,2355,2559,3267,3105,2559,1343,2089,2557,2989,2565,2555,527,2589,2569,589,3001,2569,645,1141,2563,581,2631,2563,2451,1209,2563,3145,2565,2563,3517,1265,2563,907,2943,2563,1019,3519,2563,1117,2631,2563,1253,1769,2563,1851,3227,2563,2569,2565,2563,3227,781,2563,3437,2397,2563,193,2563,2563,1165,3051,2563,3517,79,2563,513,2563,2563,2979,2559,2563,3145,2565,2563,3175,1155,2567,75,717,2567,193,553,2567,1265,3519,2567,3147,2471,2567,3055,3001,2567,3545,1909,2565,1765,2849,2565,1141,1785,2565,1189,2563,2565,1189,3241,2565,3437,3045,2565,2563,2511,2565,3175,3045,2565,589,133,2565,1483,151,2565,2935,717,2583,229,1155,2583,1597,1145,2583,3199,1145,2581,311,113,2581,579,2991,2581,2915,3519,2581,2991,2355,2581,3029,2581,2581,3185,2355,2581,3377,3045,2581,2371,781,2579,193,1515,2579,1079,2187,2579,1113,3559,2593,933,717,2593,1245,2187,2593,1741,3241,2593,2559,2187,2593,1731,3249,2593,3545,1805,2593,193,3429,2593,1455,961,2593,1455,3001,2593,1209,933,2593,1617,933,2593,1907,933,2593,3227,933,2587,2563,847,2591,153,2187,2589,1803,3517,2599,1057,717,2599,1081,2221,2599,1081,3389,2599,1077,2835,2599,2099,2187,2599,2137,3561,2599,2581,653,2599,2725,645,2599,2939,781,2613,3153,2387,2623,169,3241,2623,427,3199,2623,935,3241,2623,1101,933,2623,2559,3519,2623,3157,2631,2623,3257,1287,2623,3423,887,2623,3447,1287,2623,3519,887,2623,3519,3175,2631,213,1079,2631,589,3367,2631,769,1079,2631,965,2743,2631,1183,577,2631,1209,887,2631,1541,1541,2631,1575,519,2631,1575,2835,2631,1703,2187,2631,1731,2753,2631,1785,1079,2631,2147,1741,2631,3005,1081,2631,3419,2187,2643,193,553,2643,193,613,2643,193,1419,2643,193,2265,2643,193,2511,2643,1769,2943,2651,3429,2141,2651,2559,1129,2651,2559,3519,2651,2991,1485,2651,3013,1155,2651,3013,3051,2649,661,2835,2647,193,3011,2647,751,193,2647,1019,3249,2647,1091,2675,2647,1141,635,2647,1181,2529,2647,1265,3519,2647,2991,1485,2647,3519,2923,2661,1081,1173,2661,1187,3227,2661,1199,519,2661,3015,2631,2657,2779,3517,2657,781,1145,2657,1079,2187,2657,2355,2259,2657,3041,717,2669,3455,3185,2677,1019,3015,2677,3227,1081,2673,2779,3517,2673,2943,3105,2675,2657,729,2675,333,79,2685,1411,2749,2685,1703,2749,2681,75,717,2681,2039,3457,2689,781,547,2691,3561,3519,2701,3185,151,2709,3283,577,2723,1827,2565,2723,2919,2557,2725,63,3055,2725,1001,2507,2725,1139,2845,2725,2147,907,2725,2147,1165,2725,2147,1265,2725,2147,1711,2725,2147,3153,2725,2511,1101,2725,3153,1483,2725,3153,1873,2725,3153,1891,2725,3153,2371,2725,3153,2563,2725,3153,2981,2725,3199,1483,2725,3055,2565,2733,193,2511,2733,3519,3015,2737,1311,177,2735,3115,1091,2753,1081,3267,2757,2355,2999,2757,2559,1129,2755,3437,2355,2779,2949,151,2779,2949,1141,2777,943,2835,2777,2649,949,2777,3559,3153,2791,29,1711,2791,209,1625,2791,579,2991,2791,577,1113,2791,1201,2565,2791,1427,2471,2791,1435,3055,2791,1449,717,2791,1485,1179,2791,1711,631,2791,1803,2507,2791,2187,2845,2791,2323,2187,2791,2923,3055,2791,2943,3105,2791,3005,3519,2791,295,2565,2791,3429,545,2791,3455,1179,2785,1205,2439,2795,1187,2187,2795,1187,2629,2795,1191,2355,2795,2099,949,2795,2137,2187,2795,2675,2187,2795,2935,2141,2795,3129,2187,2795,3425,187,2795,3425,2187,2809,219,635,2809,545,177,2809,735,2849,2809,935,3199,2821,1079,717,2821,2543,1209,2821,3409,2187,2831,781,1145,2831,3041,177,2831,3117,2531,2825,25,737,2825,1597,2355,2825,1719,961,2825,1719,1265,2825,2259,3045,2825,2935,2675,2825,3015,1113,2825,3045,3247,2825,3189,3051,2825,3185,441,2825,3199,441,2825,403,2565,2825,3519,1265,2829,1141,3105,2829,1585,3519,2835,819,907,2837,1505,717,2837,1769,645,2837,2147,1145,2837,2565,2845,2851,1145,661,2845,2593,2565,2845,3285,2629,2849,577,2629,2849,1703,2675,2849,2333,2631,2849,2333,3105,2849,2563,751,2849,2763,289,2849,3055,2187,2849,3453,2355,2849,3479,1155,2855,2779,243,2869,2915,3519,2891,1711,3519,2891,2355,2259,2891,1415,1145,2887,2181,3105,2901,2215,1181,2899,1471,3427,2899,1471,3519,2905,961,3241,2905,1193,3247,2905,1419,441,2905,1419,3241,2905,2559,1977,2905,2703,1977,2905,3055,2355,2905,3545,1805,2913,717,1771,2913,717,2913,2913,1081,3389,2913,3185,717,2915,1201,3227,2915,1891,1483,2915,1891,2265,2915,2565,2831,2925,1891,1183,2925,3049,1183,2925,649,3001,2939,589,1851,2939,589,3519,2939,1483,3519,2939,3199,2187,2933,3561,717,2933,2971,1625,2937,1265,3519,2937,3247,1113,2935,2559,1165,2935,2559,3189,2935,2559,3427,2935,1419,3105,2935,2923,2355,2935,3429,2589,2935,3429,2675,2935,1405,3379,2935,2991,417,2949,645,151,2949,645,1141,2943,301,3237,2943,311,887,2943,887,2855,2943,1079,887,2943,1079,2355,2943,3105,1155,2943,3143,2943,2943,3185,3105,2943,3517,3105,2965,3153,3001,2965,2965,2835,2975,323,323,2975,2525,2529,2975,2563,3001,2975,3227,3227,2975,2511,2975,2969,1081,965,2969,1093,3519,2969,1151,97,2969,1485,2589,2969,1769,3519,2969,1821,1019,2969,2269,511,2969,2269,3023,2969,2543,1625,2969,2559,2111,2969,2623,2191,2969,2933,3001,2969,3001,511,2969,3001,3023,2969,3001,589,2969,3049,3437,2969,3149,1703,2969,3185,2563,2969,3521,851,2973,103,3519,2973,637,1733,2973,1081,2387,2973,2723,2507,2973,2935,3519,2973,3427,2507,2973,3519,2185,2973,301,3237,2973,539,2507,2973,887,661,2973,2565,545,2971,323,323,2985,105,781,2985,1711,3519,2985,2923,1805,2985,2985,1485,2985,3153,1079,2985,323,2187,2985,1785,3427,2985,3197,1483,2985,1411,2943,2985,819,907,2985,2605,241,2979,931,729,2979,801,717,2983,1703,299,2983,2581,1165,2983,3189,1145,2983,359,359,2983,3153,3153,2981,933,3519,2981,1237,3051,2981,3247,3519,2981,3123,3519,2991,75,2791,2991,75,3175,2991,193,1419,2991,1181,1131,2991,1653,2939,2991,2631,545,2991,3185,2563,2991,3437,1953,2991,1059,1909,3005,1021,241,3005,1311,1419,3005,2355,143,3005,3145,1625,3005,2933,2675,2999,2245,1181,2999,2631,1067,2999,3183,737,3003,3011,933,3001,3429,2565,3001,511,3153,3001,519,2355,3001,2105,3519,3001,717,175,3015,2991,2355,3015,661,1625,3015,739,2589,3015,1187,1019,3015,2647,3051,3015,801,3519,3015,1183,2631,3015,2085,2085,3015,3379,3519,3013,539,539,3013,2937,2529,3013,193,1279,3013,3011,1483,3011,3045,1483,3011,1183,2589,3011,2099,847,3011,2099,2305,3011,2099,2589,3025,757,2141,3025,1079,545,3025,3143,2111,3025,3199,2187,3023,67,1131,3023,139,717,3023,311,717,3023,349,193,3023,455,1769,3023,549,1113,3023,627,3577,3023,717,1315,3023,717,2299,3023,771,661,3023,909,3519,3023,981,717,3023,1019,297,3023,1067,3519,3023,1101,3237,3023,1111,3015,3023,1139,2855,3023,1155,2815,3023,1507,1343,3023,1661,193,3023,1733,1741,3023,1891,2265,3023,1891,3175,3023,1901,3519,3023,2141,2943,3023,2187,949,3023,2205,2775,3023,2265,1891,3023,2515,2141,3023,2559,289,3023,2565,1763,3023,2593,3519,3023,2643,1155,3023,2791,577,3023,2973,1201,3023,3005,2559,3023,3051,717,3023,3105,2559,3023,3153,431,3023,3175,3455,3023,3183,3519,3021,1741,1071,3021,3193,3193,3035,1059,3241,3029,3261,961,3029,1711,717,3029,3407,3519,3033,3517,1165,3045,589,2845,3045,1181,2827,3045,1485,3105,3045,1495,3045,3045,2511,2355,3045,2835,2387,3045,2965,717,3045,3147,717,3045,29,1173,3045,831,3001,3045,1141,3247,3045,1435,935,3045,1769,441,3045,1901,3519,3045,2559,717,3045,2647,1265,3045,2791,577,3045,2943,3105,3045,2943,2531,3045,2943,3427,3045,3055,3001,3041,553,963,3041,1011,527,3041,2791,3227,3041,2985,1625,3041,3219,2531,3055,2191,2371,3055,3519,3001,3055,1047,2349,3055,3055,241,3049,2565,737,3049,2375,441,3055,29,3001,3055,333,2565,3055,359,359,3055,767,3051,3055,961,3001,3055,985,3001,3055,1019,3001,3055,1079,2565,3055,1277,1067,3055,1575,3001,3055,1927,2565,3055,2147,2565,3055,2355,3001,3055,2507,3001,3055,2943,3001,3055,3175,3001,3055,3185,2565,3055,3437,1113,3051,1081,495,3051,3267,717,3051,1145,2675,3059,2071,3519,3091,1483,3519,3091,2755,3519,3087,2565,2943,3087,2689,3519,3101,397,527,3101,397,661,3101,397,1079,3101,397,2141,3095,2973,1067,3099,53,2439,3099,3319,3051,3105,2559,3487,3105,2845,887,3115,589,3001,3115,655,1161,3115,1279,3045,3115,1091,1625,3117,3301,2141,3129,1597,1145,3129,2711,1145,3129,527,2265,3129,527,3247,3129,3423,241,3129,3561,133,3127,59,1393,3125,761,1415,3125,2349,519,3125,3247,3519,3149,907,933,3149,1803,527,3143,3369,3051,3143,295,2187,3143,295,3001,3143,2795,717,3143,805,1803,3143,1163,577,3143,1163,2849,3143,2187,2631,3143,2885,3519,3147,3437,617,3147,187,2565,3147,3185,729,3145,3153,2791,3145,589,2187,3145,535,2507,3145,1419,1047,3145,1711,935,3153,2559,2187,3153,2631,3367,3153,3519,1173,3153,1181,781,3153,2099,3427,3153,2999,781,3153,431,1741,3153,589,3519,3153,935,545,3153,1481,3519,3153,1769,2507,3153,577,1101,3153,2221,661,3157,1449,1201,3157,1449,3249,3157,1079,2825,3169,77,717,3169,2263,2439,3163,2205,2589,3167,2529,717,3165,3197,3519,3165,193,553,3175,1047,2675,3175,1101,2675,3175,1607,2675,3175,943,527,3175,3197,1145,3175,511,3105,3175,943,107,3175,943,151,3175,1419,3015,3175,1691,3519,3175,1769,3457,3175,2559,1129,3175,3227,2543,3175,3527,1113,3175,3129,3227,3189,57,2581,3189,57,3463,3189,75,2791,3189,143,547,3189,267,1811,3189,295,1337,3189,333,3519,3189,511,75,3189,511,3313,3189,549,2245,3189,717,943,3189,751,1741,3189,781,423,3189,1073,717,3189,1155,2355,3189,1155,3519,3189,1343,2187,3189,1431,151,3189,1431,3519,3189,1741,547,3189,2039,2185,3189,2141,1047,3189,2265,3313,3189,2487,1811,3189,2505,1893,3189,2543,1179,3189,2563,1165,3189,2631,717,3189,2635,717,3189,2795,1575,3189,2795,3045,3189,2835,2349,3189,2981,1523,3189,2991,3519,3189,3247,1625,3189,3407,781,3189,3429,3015,3189,3517,2569,3189,1481,1019,3189,1687,1165,3183,3375,661,3183,649,2565,3183,3055,2565,3183,2725,2725,3183,547,2675,3183,289,2629,3183,397,3105,3183,801,3519,3183,2945,1237,3183,3045,173,3187,3429,2589,3185,1019,2855,3185,3221,1265,3185,2589,1155,3185,2589,2141,3185,2589,3051,3185,1625,2943,3185,2779,3517,3185,3185,781,3185,3425,2111,3185,1805,241,3185,3437,2355,3185,1047,545,3199,25,1741,3199,589,3519,3199,1481,3519,3199,3153,1155,3199,3153,1483,3199,3153,2559,3199,3153,2631,3199,3267,3105,3193,1001,1155,3193,1001,3105,3197,3219,2631,3197,1265,3519,3197,1265,3519,3195,645,1179,3195,645,3153,3195,1081,2629,3195,2601,2141,3209,899,129,3209,2733,2565,3203,431,1081,3203,943,2147,3207,1237,3249,3205,2507,1047,3221,613,1019,3221,627,1145,3221,3055,3001,3233,2559,3105,3233,3099,729,3233,3257,3051,3227,193,553,3227,589,1235,3227,3415,1235,3227,2725,1179,3227,2725,2355,3227,3195,1145,3231,3185,2439,3231,943,3427,3231,1113,3519,3231,1485,2589,3231,2543,1625,3231,3021,2191,3231,3045,1483,3231,3045,2355,3231,3185,2563,3243,805,3519,3237,649,3001,3237,831,3519,3237,831,3001,3237,831,3227,3237,2631,2259,3237,3055,241,3237,3159,3519,3237,1707,2355,3241,2631,933,3241,729,3105,3241,2187,441,3241,2779,2943,3241,3143,3105,3241,3185,3105,3241,3199,3105,3241,3247,3105,3241,3453,441,3239,1427,2111,3239,1711,935,3239,1733,1741,3239,1201,3015,3239,103,661,3239,103,3185,3239,289,2191,3239,801,1371,3239,3099,2439,3253,511,2835,3247,2593,3427,3247,295,3015,3247,511,2835,3247,627,1483,3247,3001,2305,3247,3519,133,3247,3519,527,3247,3519,1019,3247,3519,1625,3247,3519,1873,3247,3519,2563,3247,3519,2589,3247,3519,2855,3247,3457,133,3247,3511,1741,3249,193,553,3257,627,1711,3257,947,2589,3257,1027,2791,3257,1209,519,3257,1505,1711,3257,2299,2563,3257,3257,1047,3265,799,2565,3267,363,3105,3267,627,1113,3267,627,3105,3267,2593,1145,3267,2681,2187,3275,75,717,3275,2029,1265,3283,2559,289,3283,3177,537,3313,3313,717,3311,397,299,3311,2971,3455,3319,2357,2355,3319,2357,3045,3341,3423,2629,3125,1081,1145,3347,3227,1145,3357,2299,2355,3357,2971,2355,3369,1431,1113,3369,1431,2141,3369,3025,1113,3367,1483,2141,3367,1173,2565,3379,3175,2565,295,63,2507,295,63,3407,295,169,3015,295,431,2565,295,547,3001,295,655,1237,295,781,3001,295,879,3055,295,985,3001,295,1205,2835,295,1237,1481,295,1455,887,295,1455,2565,295,1545,3001,295,1771,2709,295,1927,3001,295,2191,3051,295,2491,2565,295,2491,3001,295,2559,965,295,2635,3001,295,2725,3001,295,2821,3001,295,2973,3001,295,3055,3001,295,3247,3001,295,3425,2565,295,3425,3001,295,3425,3015,3375,3147,729,3389,2515,1235,3389,2811,1079,3387,265,717,3387,267,3519,3387,3319,577,3385,1769,527,3399,3147,729,3395,333,3519,3395,1173,2557,3411,129,717,3411,3429,2141,3411,265,177,3411,265,1145,3411,3457,1733,3411,771,2589,3411,1337,933,3411,1741,1803,3411,2503,1707,3411,2563,3051,3407,1173,2565,3419,2187,1145,3415,133,1483,3415,539,1891,3415,539,2563,3415,539,3437,3415,951,1265,3415,3517,729,3415,1125,2355,3415,2971,3249,3415,3425,737,3415,3425,1155,3415,3425,3105,3429,2187,933,3429,2937,1113,3429,1649,935,3429,1649,3227,3429,2259,2355,3429,193,1145,3429,1977,3055,3429,527,63,3429,769,2187,3423,3415,537,3423,3415,935,3423,567,567,3423,2559,1145,3423,2819,2819,3423,2831,2831,3423,2989,2565,3423,2703,1977,3423,2971,3105,3423,1763,577,3427,1449,1071,3427,1703,717,3427,105,3411,3427,1117,549,3427,1827,3411,3425,3249,177,3425,3249,1265,3425,333,2141,3425,627,2187,3425,3165,299,3425,3311,299,3425,3199,2589,3425,3519,2589,3425,1771,2515,3425,1837,2855,3437,589,3001,3437,961,1079,3437,961,2355,3437,961,2831,3437,961,3517,3437,295,2063,3437,3519,527,3437,3519,2589,3437,3519,3055,3437,615,2943,3433,3185,3249,3433,1201,2591,3433,1481,3519,3433,2973,2187,3433,3165,3051,3433,3247,2675,3443,59,59,3457,1575,241,3451,3175,2265,3451,3429,441,3455,627,1661,3455,1483,1265,3455,2299,961,3455,2355,887,3455,2355,1155,3455,2591,3051,3455,2775,857,3455,2979,2855,3455,3045,907,3453,627,441,3453,2821,2187,3453,3105,1201,3453,1803,1485,3453,2531,2187,3453,3185,1483,3453,3283,961,3463,3527,717,3479,1711,1155,3479,2899,299,3477,935,2981,3487,1069,2355,3487,1151,577,3487,1151,2355,3495,545,1113,3511,1729,229,3511,3447,2565,3521,113,1155,3521,113,1201,3521,113,1625,3521,3055,2565,3521,3247,2629,3519,577,177,3519,887,2651,3519,1337,1165,3519,1805,527,3519,1805,1341,3519,2973,1495,3519,295,3001,3519,3447,3001,3519,2471,2849,3517,879,1953,3517,883,2565,3517,905,3517,3517,1143,2355,3517,1155,2355,3517,1253,3051,3517,1419,1047,3517,1419,2631,3517,2323,495,3517,2323,1483,3517,2323,1707,3517,2675,2355,3517,3041,3045,3517,3227,1763,3517,3425,3001,3517,3425,3447,3517,3453,225,3517,3571,3045,3517,1653,717,3517,1805,151,3529,3455,961,3527,55,887,3527,887,1113,3527,1545,2565,3527,3427,1117,3525,653,1741,3525,2171,1741,3525,2245,1741,3525,3577,153,3535,643,2559,3535,1059,1711,3535,1173,1067,3535,1901,1155,3547,1189,577,3545,3429,3105,3545,1805,1607,3555,2735,1145,3571,3185,2565,3579,193,963,3579,3229,2581,3577,3175,113,3577,153,3441,3577,1173,2507,3577,2791,2991,3577,3257,3519,3577,1013,2565,3577,1663,1661,3577,1671,3257,3577,2559,2371,3577,2581,1181,3577,1173,241,9,613,1,59,1,55,1,333,693,801,693,1183,1,1485,1,1623,9,1715,1,1719,1,1769,693,3237,19,1009,19,3257,19,2281,13,513,13,627,13,635,13,689,13,725,13,1143,13,1651,13,2105,13,3417,13,3533,17,2051,15,1011,15,1169,15,803,15,2187,29,767,29,2285,25,299,25,375,25,1559,39,3305,43,1165,43,3175,45,2455,2021,847,2021,1145,2021,1415,2021,2241,2021,2581,55,715,57,1229,55,3513,57,299,55,51,59,515,63,727,63,1229,63,1597,63,3451,63,3011,67,3433,181,1531,65,1169,65,1597,65,1635,65,3051,79,3377,79,3513,187,2351,79,1231,77,3513,75,1413,75,2281,75,3081,75,1131,75,3011,89,3513,121,193,85,1021,85,2281,85,3513,2049,181,99,299,99,3513,99,3513,181,289,181,519,181,577,183,1017,181,1059,181,1229,181,1485,181,1483,181,1771,181,1803,181,2259,181,2427,181,2785,181,2971,97,3301,97,3205,97,1149,97,1559,97,3081,97,3377,195,3513,95,3081,95,3205,95,3049,95,1597,95,1997,95,647,2163,2885,107,3513,107,2241,107,3175,107,2715,105,305,105,2293,107,99,107,519,107,801,107,1383,107,1589,107,2835,107,3357,107,3391,103,1607,103,1829,103,3513,103,3513,115,1559,111,1771,111,2835,115,1711,113,767,113,2497,113,3011,113,3391,113,3513,113,635,123,1499,121,1559,135,883,129,2183,129,2471,129,3513,133,1079,133,1607,133,2285,133,613,133,1635,133,829,133,883,133,1079,133,597,133,181,131,3081,131,1597,131,3021,131,2471,131,3195,131,25,2099,1169,131,3107,131,1829,143,2439,143,2293,143,3081,143,2061,143,3513,141,527,2115,3447,139,551,139,907,139,1505,139,597,139,3011,139,1907,2109,3183,139,1829,139,3513,153,1505,153,3425,151,1227,151,1597,151,1067,157,375,157,3475,159,1947,169,3011,177,1435,167,727,177,299,177,2281,175,339,175,3513,173,3049,177,3447,173,1151,173,535,187,3393,187,1479,187,373,187,677,187,1481,187,1635,187,2563,187,2891,187,3111,187,2433,181,179,181,877,181,3513,181,551,181,635,183,1137,185,1633,195,1151,195,1227,195,3081,195,3107,195,3433,193,257,193,535,191,661,193,759,193,3049,191,1113,191,1161,193,1229,191,2565,193,2689,193,3021,193,3081,193,3079,191,3165,193,3427,191,3453,193,3049,193,597,193,3513,193,767,193,1169,193,1635,193,2293,193,3377,215,677,215,3433,209,767,209,827,209,1365,253,447,253,501,225,1505,2549,2375,2549,2515,225,1179,225,3239,219,1559,233,1205,233,3451,233,1435,3301,43,3301,643,3301,1427,3301,1483,3301,1763,3301,2265,3301,2943,3301,2981,3301,3189,3301,3241,3301,3541,243,299,243,3049,243,2241,241,299,241,2021,247,3513,3361,1471,247,1079,247,1641,247,3205,251,2549,257,1559,257,1209,259,567,271,2293,265,299,265,3077,265,1197,265,1231,265,2177,267,1559,267,1559,2491,319,271,157,271,343,271,501,271,687,271,1151,271,1237,281,2209,281,2355,271,2515,281,2567,281,2565,271,2589,271,3185,281,3185,275,1135,291,1017,291,1127,285,3247,2503,2331,289,1151,289,1505,289,3285,295,3513,299,3081,299,3377,299,443,299,577,299,1019,299,1141,299,1207,299,1741,299,2709,295,3377,299,3513,297,3049,297,1021,297,2115,297,2293,311,1785,311,3283,305,65,305,323,305,519,305,799,305,839,305,883,305,1161,305,1197,3389,1597,305,2555,305,2791,305,2815,305,3003,305,3011,305,3177,305,3391,305,3415,305,271,305,1559,319,299,319,1559,319,2175,319,3283,319,3513,315,281,323,1785,323,1229,323,1227,339,1563,325,2549,325,3045,325,3185,325,3423,333,767,333,1227,333,3377,333,3011,333,1597,333,1719,333,3205,333,3283,333,3051,567,2491,335,829,349,3011,349,1565,349,3081,343,3513,343,1229,343,2281,347,3513,347,2591,345,1021,345,1543,345,1597,345,1543,355,407,355,1197,355,1335,359,1505,355,1801,355,3129,355,3513,359,767,359,2471,359,3107,353,3513,369,2281,369,597,369,3175,363,1021,363,3205,363,2487,363,1079,367,3049,367,1253,367,3011,379,281,379,299,379,375,379,3049,379,1785,379,2439,379,1229,379,2285,373,1453,373,2455,373,2833,377,1505,377,375,377,767,375,2709,375,1427,375,1463,375,1483,375,2559,391,677,403,3049,403,3391,3475,1141,397,1543,397,2281,399,883,413,3513,407,2177,411,1169,413,1343,413,1741,413,2515,413,2827,423,2733,423,1463,423,1943,417,1563,417,1635,417,2833,417,3513,431,1151,431,1229,431,1247,431,1543,431,1943,431,2285,431,3433,427,1229,437,715,441,1543,441,2293,441,597,441,3049,441,1543,441,299,443,3377,443,2549,447,1415,447,1565,443,3077,443,3153,443,3241,3529,3153,477,675,485,2847,495,1635,495,3377,495,3513,489,1559,489,3393,493,677,501,3393,501,1635,501,1779,515,1227,515,3283,515,515,515,265,515,2221,515,3205,515,3269,513,267,513,3367,513,635,513,685,513,1463,513,1501,513,1635,513,2061,513,2281,513,3155,513,3393,513,3433,511,3301,511,639,519,805,511,827,511,1169,511,1227,511,1269,511,1505,511,1561,511,1829,511,2061,511,2285,511,597,511,3081,511,3123,523,3513,519,1463,519,3513,519,2509,531,2549,527,3513,531,181,531,827,531,849,531,3049,531,2293,531,597,2503,3001,531,3011,285,3237,531,3513,529,1505,529,3513,527,1253,527,181,2733,187,2733,297,2733,441,2733,1019,2733,1101,2733,1111,2733,1483,2733,2249,2733,2531,2733,2797,2733,3051,2733,3129,2733,3427,2733,3533,539,281,539,299,539,305,535,333,539,1505,535,2121,535,2177,535,2791,535,2917,535,3175,535,3257,535,3411,535,3577,535,3577,537,2549,549,55,549,3513,549,541,543,901,549,1443,549,1893,545,213,545,271,545,319,545,443,545,913,545,931,545,1187,545,1483,545,1559,545,2069,545,2591,545,2709,545,2811,545,2867,547,3081,545,3087,545,3095,545,3207,545,3205,545,3425,545,3477,545,3487,545,299,545,375,545,299,545,931,545,1039,553,535,551,1419,551,2187,551,2589,551,3051,553,3049,571,299,569,1505,581,1635,581,597,581,515,575,2281,575,1269,579,3513,577,2231,577,2177,577,2281,577,2487,577,573,577,1189,593,1501,593,185,591,535,591,1169,591,2281,591,3433,591,615,591,1229,589,299,589,1021,589,1241,589,1505,589,1559,589,1785,589,1947,589,3271,589,3551,589,2177,601,1041,601,1829,601,1635,597,2177,597,2497,605,535,609,1635,605,3107,615,829,615,1943,615,2281,617,2021,617,3513,613,1505,613,597,623,367,623,597,623,1107,623,1499,623,2187,623,2311,623,2355,623,2569,623,2581,631,693,631,1559,631,1543,629,551,627,2731,627,1505,627,1021,649,641,639,1113,637,1635,637,2667,635,729,635,801,635,1145,635,1943,635,2017,635,2187,635,2565,635,3145,635,3419,635,3425,635,3425,635,3561,635,3513,635,1559,643,1229,643,1559,643,3049,643,3367,647,2471,647,299,645,1505,647,3513,645,1151,645,1505,645,2293,657,577,655,375,653,1635,653,1021,653,3513,661,3377,661,325,661,1559,661,597,661,3205,661,3393,683,1229,683,1695,683,353,683,2705,677,551,677,931,681,715,681,3513,693,1991,687,1779,687,3513,689,1829,689,635,689,3049,689,1597,689,2521,691,3045,717,3513,721,2115,719,1559,719,353,727,139,727,211,731,3049,727,1141,727,1141,727,1435,731,1543,731,1635,731,1829,731,2051,727,2191,731,2281,727,2397,727,2565,727,2975,727,3049,731,3271,731,3415,727,3427,725,1229,725,2281,729,299,729,1543,2045,3237,741,2239,741,883,741,1247,741,3081,735,2565,739,545,739,1161,739,2241,739,3053,739,597,739,3205,739,3081,737,1197,737,1505,737,2177,737,65,745,3077,745,3513,749,799,749,3049,749,1227,749,2281,747,3049,747,1151,747,1505,747,1943,747,2061,761,3049,761,559,761,767,761,1829,759,181,759,1495,755,2051,757,1227,771,267,767,379,767,1505,771,1559,771,1559,767,1863,771,2449,767,2905,767,3423,767,3519,765,299,765,2285,765,1229,769,745,767,635,781,3049,781,1505,781,1559,781,1733,781,2833,781,3551,781,2503,781,1197,781,3377,781,3513,777,887,777,1141,777,2269,777,2981,777,3001,777,3513,777,331,777,3049,777,1543,799,1559,799,2811,799,3077,799,2811,799,3011,803,3513,803,1227,803,3305,803,1227,803,3079,801,1021,801,1227,801,1463,801,3283,801,1021,801,1829,801,1227,801,3241,801,1785,813,3519,809,2991,823,3383,819,3513,819,1607,831,1597,831,3081,829,335,829,1265,829,2717,829,3483,831,3513,829,299,829,3091,829,3205,827,63,831,161,827,193,827,209,827,545,827,597,827,769,831,1009,827,1129,827,1169,827,1187,827,1197,827,1207,827,1497,827,1559,831,1559,827,1597,827,1649,827,2289,827,2565,827,2661,827,3001,827,3021,827,3239,827,3415,839,1205,835,829,835,3513,3483,3423,847,827,847,1227,847,1481,847,597,847,2833,847,3051,847,3389,847,3425,847,3107,843,3227,843,3319,845,3513,843,1151,857,515,857,571,857,857,857,3429,857,849,857,1709,857,101,857,179,857,3513,857,2293,851,635,851,597,851,3513,851,2507,853,1227,853,3513,853,375,1143,801,1143,3157,1143,3241,871,1231,871,1559,871,3513,871,2833,871,3391,879,2809,879,375,879,1943,879,3433,877,2471,877,3175,877,2471,875,1155,875,2185,875,2933,887,299,887,317,887,3081,887,3377,887,3513,887,375,887,827,887,1151,887,1943,887,2175,887,3081,887,3475,887,1607,887,3367,887,1197,887,2311,887,597,887,3049,885,3097,883,809,883,25,883,441,883,777,883,845,887,1143,883,965,883,1081,883,1983,883,2141,887,2281,883,2357,883,2565,883,3157,887,3205,883,3423,883,3483,883,3511,895,535,899,1559,899,1585,899,3513,899,1235,897,2189,895,551,909,1501,909,1581,909,3049,909,1227,907,1227,907,745,907,3513,907,3377,909,681,907,827,909,1597,903,2833,907,3107,907,3393,907,3513,907,1943,907,3257,905,3011,905,1227,905,3077,917,2915,917,515,913,1463,913,3513,927,1779,935,2241,935,281,935,299,935,3377,935,1227,2917,721,933,3257,931,519,931,1265,931,3187,931,2833,943,1565,943,2507,941,299,939,3519,951,3009,951,1227,951,3053,951,1149,1265,1523,2285,441,951,1079,951,1233,951,3077,949,3513,947,3513,947,827,957,1635,955,3513,967,3513,961,1227,961,3257,961,1829,965,827,965,1229,963,299,963,767,963,1505,963,1533,963,3283,975,509,851,1481,971,1649,851,3285,981,1013,981,2565,981,2785,981,3513,985,2549,985,1197,985,1505,985,1559,985,1829,985,1943,985,3011,983,375,983,2463,983,3081,991,1065,991,1505,991,3081,991,1151,991,1559,991,1597,995,211,993,3513,991,961,3049,133,3049,229,3049,241,3049,319,3049,333,3049,397,3049,443,3049,627,3049,745,3049,887,3049,1013,3049,1113,3049,1141,3049,907,3049,1173,3049,1181,3049,1187,3049,1197,3049,1209,3049,1205,3049,1265,3049,1277,3049,1455,3049,1485,3049,1485,3049,1523,3049,1543,3049,1597,3049,1837,3049,2111,3049,2139,3049,2191,3049,2189,3049,2221,3049,2241,3049,2355,3049,2503,3049,2563,3049,2567,3049,2567,3049,2565,3049,2593,3049,2591,3049,2743,3049,2833,3049,2933,3049,2943,3049,3025,3049,3055,3049,3049,3049,3065,3049,3189,3049,3347,1001,3377,3049,3397,3049,3415,3049,3447,3049,3487,3049,3529,3049,3535,1001,3213,1001,3049,1009,727,1009,1041,1009,3051,1013,375,1011,635,1011,2971,1013,1229,1013,1229,1011,1311,1011,2185,1011,2215,1011,2471,1011,2555,1011,3105,1011,3367,1009,1179,1011,1543,1011,2061,1009,2753,1021,213,1021,545,1021,1543,1021,2945,1019,777,1019,1559,1019,3391,1019,257,1129,1741,1131,1955,1021,2569,1019,1559,1019,1563,1021,3285,1021,3433,1067,717,1021,1269,1021,727,1039,1229,1039,1505,1041,95,1041,209,1039,3049,1041,1131,1041,1667,1041,1883,1041,2649,1053,1581,1047,2549,1047,299,1047,2293,1047,2519,1047,1505,1047,1505,1047,1559,1047,1719,1051,635,1051,1955,1051,2111,1053,2219,1051,2301,1057,3513,1059,2833,1059,299,1073,1009,1073,1021,1073,1227,1073,3239,1073,3205,1067,1621,1067,2281,1067,2827,907,577,1067,2163,1067,1209,1067,1343,1069,1955,1067,2845,1071,115,1071,1169,1081,1149,1081,1247,1081,1597,1081,2061,1079,187,1079,613,1079,771,1079,951,1079,1151,1079,2265,1079,3001,1079,3189,1077,727,1079,1575,1079,2507,1079,2885,1081,1081,1081,1415,1077,3049,1077,1565,1077,1635,1079,883,1079,2115,1079,1227,1085,1227,1085,3195,1087,375,1091,3049,1091,1559,1091,2281,1091,2281,1095,3049,1093,2809,1093,2833,1093,1829,1107,1635,1107,1779,1101,305,1103,535,1103,627,1103,1105,1103,3233,1105,3513,1117,597,1111,2733,1111,1067,1111,1559,1111,1635,1111,2811,1111,3205,1113,1559,1113,1607,1113,299,1113,715,1365,1141,1113,3377,1125,3271,1125,1151,1121,527,1121,3507,1135,1335,1131,509,1131,1439,1131,1505,1131,1743,1131,2323,1129,3107,1133,299,1133,2061,1133,2281,1133,3513,1131,299,1131,1227,1145,1635,1145,2281,1145,3433,1145,299,1145,3081,1145,3377,1145,1465,1145,635,1145,1559,1145,1169,1145,1559,1145,2241,1145,1559,1139,1505,1139,3049,1139,1543,1139,3051,1139,1227,1139,1559,1139,1829,1139,2241,1139,3461,1143,257,1143,683,1143,771,1143,853,1143,1019,1143,1209,1145,1607,1143,2563,1143,3089,1143,3367,1141,551,1141,1507,1141,3049,1141,2285,1141,3011,1141,1505,1143,1827,1143,1927,1141,2281,1155,2509,1155,375,1155,535,1155,1127,1155,1465,1155,2233,1155,3377,1155,3433,1155,3195,1149,47,1149,103,1149,193,1155,777,1149,1311,1149,3189,1155,3513,2201,2041,1149,177,1153,2231,907,2355,1153,727,1151,2191,1151,2371,1151,2795,1151,3513,1165,715,1165,3513,1161,605,1161,653,1161,851,1161,1131,1161,1193,1161,1747,1161,2371,1161,2471,1161,2981,1161,3035,1161,3275,1161,3433,1161,3577,1165,299,1165,1197,1165,281,1165,1943,2205,2933,1165,43,1163,3513,1161,551,1161,3377,1161,3049,1161,1169,1161,2061,1161,3513,1161,1635,1161,829,1169,935,1173,1227,1169,1545,1169,1543,1169,1711,1169,2565,1169,2605,1169,3021,1169,3579,1173,1067,1173,299,1171,1231,1171,2281,3009,799,3009,799,3009,1169,3009,1575,1169,1635,3009,2635,1169,1069,1183,281,1183,2971,1183,1559,1183,181,1183,2833,1183,3081,1183,1041,1183,1247,1253,635,1253,1483,1181,1635,1181,2281,1253,2471,1253,3451,1181,3513,1177,2259,1181,829,1181,1127,311,2979,1253,551,1179,3513,1179,299,1179,1505,1183,861,1183,1311,1183,2593,1193,3205,1193,3433,1193,1597,1193,2809,1187,1543,1187,1559,1187,1829,1187,1241,1193,59,1187,727,1193,1309,1193,2561,1187,45,3029,1001,1187,1559,1187,1559,1191,1185,1191,1197,1191,1229,1191,1227,3031,2589,1189,2657,1189,2231,819,1427,1189,597,1201,727,1201,1943,1201,2285,1201,3011,1201,3513,1199,3391,1199,3077,1199,933,1199,1365,1199,1505,1199,3005,1197,3051,1197,299,1197,299,1197,375,1205,241,1205,423,1205,575,1205,781,1205,1161,1205,1609,1205,2531,1197,1785,1197,131,1197,577,1197,905,1197,965,1197,1115,1197,1133,1197,1141,1197,1253,1197,1265,1197,1483,1197,1523,1197,1543,1197,1607,1197,2295,1197,2563,1197,2593,1197,2935,1197,2971,1197,3149,1197,3237,1197,3239,1197,3267,1197,3427,1197,3425,1197,3545,1209,827,1209,3475,1209,1229,1209,3107,1209,535,1209,827,1209,1559,1209,2101,1207,3377,1205,1559,1205,3077,1205,1229,1205,299,1205,3513,1213,3011,1231,265,1231,285,1231,501,1231,771,1231,851,1231,1019,1231,1139,1231,1187,1231,2115,1231,3415,1231,2937,1231,75,1231,1187,1231,1205,1231,2945,1231,1231,1231,635,1231,2491,1231,3045,1231,1145,1231,1231,1229,615,1229,887,1229,1575,1229,1829,1229,2299,1229,2791,1229,3025,1229,3247,1229,3257,1229,353,1229,3447,1229,3475,1229,3541,1229,3551,1229,157,1229,173,1229,569,1229,1209,1229,1229,1229,1559,1229,1803,1229,2933,1229,3157,1229,3187,1229,3251,1229,295,1229,211,1229,1101,1229,59,1229,97,1229,107,1229,211,1229,589,1229,737,1229,839,1229,933,1229,949,1229,1067,1229,1081,1229,1113,1229,1155,1229,1173,1229,1209,1229,1237,1229,1483,1229,1505,1229,1541,1229,1543,1229,1585,1229,1903,1229,2187,1229,2205,1229,2295,1229,2299,1229,2471,1229,2563,1229,2631,1229,2647,1229,2733,1229,2845,1229,2965,1229,2965,1229,2979,1229,3005,1229,3053,1229,3051,1229,3143,1229,3145,1229,3163,1229,3165,1229,3185,1229,3231,1229,3315,1229,3437,1229,3559,1227,25,1227,173,1227,193,1227,577,1227,649,1227,689,1227,905,1227,935,1227,961,1227,1013,1227,1131,1227,1141,1227,1183,1227,1179,1227,1241,1227,1483,1227,1483,1227,1891,1227,2259,1227,2371,1227,2569,1227,2563,1227,2565,1227,2565,1227,2593,1227,2673,1227,2779,1227,2943,1227,2971,1227,2979,1227,3105,1227,3175,1227,3231,1227,3241,1227,3261,1227,3355,1227,3379,1227,3375,1227,3429,1227,3427,1227,3425,1227,347,1227,1151,1227,3205,1227,75,1227,139,1227,225,1227,445,1227,545,1227,577,1227,737,1227,1019,1227,1165,1227,1179,1227,1197,1227,1485,1227,2139,1227,2249,1227,2253,1227,2331,1227,2357,1227,2563,1227,2565,1227,2565,1227,2565,1227,2581,1227,2681,1227,2935,1227,2979,1227,3087,1227,3105,1227,3165,1227,3175,1227,3189,1227,3185,1227,3409,1227,3415,1227,3423,1227,3577,1227,801,1227,909,1227,1227,1227,1655,1227,1805,1227,3173,1227,3519,1241,1197,1241,1559,1241,1883,1241,1559,1241,1231,1235,1505,1235,3513,1239,1253,1239,2455,1239,3049,1237,1505,1237,635,899,1677,1237,3513,1237,299,1237,1635,1249,3077,1247,347,1247,727,1247,2295,1247,3149,1247,3153,1247,3265,1247,3513,1253,635,1253,1169,1265,3257,1265,1543,1265,3377,1263,175,1263,819,1263,2449,1265,1495,1263,3077,1245,3221,1271,271,815,1481,1271,51,1271,271,1269,319,1269,347,1269,519,1269,951,1269,2111,1269,2185,1269,2205,1269,2831,1269,3427,2199,3513,1279,299,1279,1197,1279,1565,1279,2061,1279,2101,1279,2281,1287,3049,1287,1179,1285,1313,1287,933,1287,1069,1287,1155,1287,1711,1287,2581,1283,2833,1283,3011,1287,3129,1283,3433,1303,299,1303,1231,1315,2281,1315,3377,1315,1227,1309,3107,1313,257,1313,2971,1311,991,1313,3049,1313,2591,1313,3391,1313,2281,1311,181,1311,1559,1323,3433,1323,2241,1323,2281,1329,1719,1329,349,1329,2187,1329,2559,1333,63,1337,161,1337,299,1333,577,1333,687,1333,717,1337,1635,1337,1829,1337,2061,1333,2313,1333,2981,1333,2989,1333,2999,1333,3237,1337,3475,1333,3513,1337,2825,1335,3527,1335,1021,1343,883,1343,1253,1343,1543,1343,3513,1341,1559,1341,2281,1341,3513,1353,3079,1353,2453,1351,43,1351,2549,1351,281,1351,635,1351,827,1351,3049,1351,1229,1351,1829,1349,269,1349,3513,1365,3513,1373,433,1371,1559,1371,2293,1371,3425,1383,1227,1383,1779,1379,3513,1393,551,1393,1463,1393,677,1387,1531,1113,1953,1389,1227,1401,2293,1397,1179,1405,2521,1405,1635,1415,829,1415,2207,1413,1647,1419,551,1419,2833,1419,3391,1419,2471,1411,1483,1427,2281,1427,3513,1431,551,1431,2449,1429,1067,1429,597,1435,1227,1435,1139,1435,745,1435,2833,1437,2833,1451,3391,1445,1463,1449,1143,1449,1169,1449,1229,1449,2521,1449,597,1449,3079,1449,3513,1449,1443,1449,3171,1445,549,1447,1311,3257,343,1455,551,3257,653,3257,661,3257,803,3257,829,3257,857,3257,1485,3257,1607,3257,1729,3257,2179,3257,2187,3257,2265,3257,2293,3257,2559,3257,2569,3257,2581,3257,2733,3257,2855,3257,2973,3257,3199,3257,3379,1455,1543,1515,535,1515,551,1463,1803,1465,2281,1465,1635,1465,443,1465,1145,1465,1139,1465,1141,1465,1155,1465,1197,1465,1465,1465,1891,1465,2565,1465,3257,1463,2723,1463,3455,1475,299,1475,1635,1475,3345,1481,1161,1481,3081,1481,1829,1481,247,1485,2061,1485,1577,1485,2833,1485,2293,1485,727,1483,299,1483,3049,1483,1505,1483,2281,1483,305,1483,1229,1483,2591,1483,3049,1483,299,1483,2285,1481,2631,1483,1635,1483,1607,1483,3049,1483,1151,1483,3513,1483,3513,1495,829,1495,1465,1495,3377,1495,3513,1499,3011,1497,1227,1497,1227,1497,2281,1503,1169,1503,1229,1503,363,1507,353,1505,3011,1505,63,1505,1483,1505,1705,1505,1977,1505,3285,1505,139,1505,441,1505,839,1505,1483,1505,1873,1505,3049,1505,3519,1505,2217,1511,1635,1511,187,1511,627,1511,635,1511,1279,1511,2351,1511,241,1511,547,1513,1229,1513,3513,1513,2521,1513,2925,1527,1527,1523,3475,1523,1229,1523,777,1523,2237,1531,299,1531,3513,1531,299,1531,305,1531,3049,1531,1829,1533,173,1533,1607,1531,1149,1541,1227,1541,2285,1541,533,1541,1635,1541,2449,1543,3049,1543,15,1543,15,1543,577,1543,1161,1543,1435,1543,2029,1543,2185,1543,2255,1543,2355,1543,2743,1543,3065,1543,3571,1565,143,1565,177,1565,237,1565,509,1565,943,1565,1011,1565,1077,1565,3247,1565,3535,1559,89,1559,985,1559,1431,1559,3153,1559,157,1559,193,1559,333,1559,397,1559,489,1559,519,1559,1139,1559,1241,1559,1311,1559,1333,1559,1497,1559,1711,1559,1829,1559,1893,1559,1909,1559,2259,1559,2357,1559,2543,1559,2581,1559,2991,1559,3045,1559,2675,1559,3105,1559,3143,1559,3153,1559,3185,1559,3207,1559,3219,1559,3423,1559,3425,1559,3435,1559,3453,1559,3453,1559,131,1559,139,1559,187,1559,193,1559,289,1559,297,1559,333,1559,397,1559,475,1559,527,1559,535,1559,627,1559,643,1559,751,1559,747,1559,781,1559,829,1559,943,1559,993,1559,3049,1559,1197,1559,1341,1559,1437,1559,1463,1559,1481,1559,1483,1559,1483,1559,1495,1559,1505,1559,1597,1559,1635,1559,1677,1559,1763,1559,1769,1559,1851,1559,1891,1559,2031,1559,2041,1559,2187,1559,2447,1559,2491,1559,2569,1559,2563,1559,2567,1559,2565,1559,2631,1559,2677,1559,2673,1559,2675,1559,2747,1559,2779,1559,2831,1559,2923,1559,2983,1559,2999,1559,3011,1559,3031,1559,3055,1559,3049,1559,3143,1559,3185,1559,3203,1559,3239,1559,3239,1559,3425,1559,3477,1559,1079,1559,1101,1559,1101,1559,2685,1559,767,1559,527,1559,1133,1559,1495,1559,1201,1561,3519,1559,2935,1559,3519,1563,143,1563,575,1563,1081,1563,1173,1563,1531,1563,1703,1563,2249,1563,2651,1563,2779,1563,2795,1563,3011,1563,3087,1563,3169,1563,3175,1563,3209,1563,3429,1563,3447,1597,29,1561,305,1561,375,1561,803,1561,871,1597,1019,1561,1153,1561,1597,1561,2255,1561,2543,1561,2593,1561,3189,1561,3185,1561,3239,1561,3257,1561,1653,1561,1909,1561,2919,1575,1247,1579,1635,1579,2829,1579,3385,1595,3513,1597,883,1597,2293,1561,3439,1597,3513,1597,1593,1597,193,1597,591,1597,907,1597,1229,1597,2631,1597,2723,1597,2791,1597,2835,1587,3011,1597,2675,1597,3203,1597,3457,1617,2065,1615,2733,1615,1559,1623,1635,1623,1785,1623,2455,935,1201,1623,1559,1623,3081,1623,3433,1623,3475,1623,3513,1625,1829,1625,597,1623,3241,1633,1137,1633,3513,1633,829,1637,1597,1635,87,1635,133,1635,153,1635,181,1635,241,1635,267,1635,305,1635,323,1635,333,1635,551,1635,577,1635,577,1635,591,1635,727,1635,1059,1635,1069,1635,1107,1635,1139,1447,1151,1635,1181,1635,1337,1635,1371,1635,1463,1635,1653,1635,1785,1635,1785,1635,1803,1635,1829,1635,2371,1635,2507,1635,2563,1635,2631,1635,2709,1635,2755,1635,2779,1635,2887,1635,2927,1635,2973,1635,3099,1635,3175,1635,3199,1635,3209,1635,3385,1447,3409,1447,3519,1635,3577,1609,3049,1609,3049,1607,1543,1597,1531,1597,3203,1655,1647,1649,1169,1653,1227,1653,2281,1653,1245,1653,3345,1653,2293,1655,1435,1651,3347,1653,761,1659,1785,1667,3249,1661,1229,1661,2285,1661,3513,1661,3011,1785,1785,1667,827,1667,1041,1667,2833,1667,1051,1671,1931,1671,3283,1669,1651,1667,1209,1669,1559,1677,3433,1677,1559,1685,3169,1685,727,1685,1943,1687,3513,1703,1227,1785,1635,1785,2395,1785,2583,1703,3081,1703,1067,1703,2281,1707,281,1707,727,1707,1229,1705,1701,1711,777,1711,1197,1711,1285,1713,1229,1715,1461,1715,2187,1715,2349,1719,131,1717,321,1719,895,1719,1051,1719,1123,1719,1705,1719,1719,1719,1829,1719,2111,1723,2507,1719,2579,1723,2943,1719,3081,1723,3189,1719,3253,1723,3541,1723,1169,1721,2285,1733,3577,1729,1559,1729,1719,1729,1065,1729,1719,1703,3519,1733,1483,1733,1733,1733,799,1733,1229,1739,181,1743,551,1743,2219,1741,1069,1741,3513,1749,375,1763,3257,1765,1785,1769,1169,1769,1253,1769,1229,1769,1559,1769,2293,1769,2809,1769,305,1769,375,1769,1543,1769,2219,1769,3077,1773,615,1771,1543,1771,3433,1779,1171,1779,1625,1779,2643,1779,2971,1779,3435,1801,77,1783,1065,1801,1237,1801,3155,1801,3519,1655,2435,1785,549,1785,745,1785,769,1783,1829,1785,2039,1785,2691,1783,3393,1785,3519,1655,193,1785,1117,1785,1181,1655,1499,1785,1741,1787,2487,1785,1559,1785,551,1785,3173,1785,551,1009,2375,1009,3513,1803,2147,1795,1149,1805,375,1805,1943,1803,2833,1803,577,1803,3083,1803,299,1803,2285,1813,137,1857,3351,1811,1695,1813,2295,1811,3009,1823,1229,1823,1817,1823,1943,1821,1229,1827,305,1827,3257,1827,2293,1827,43,1829,99,1827,551,1829,1763,1829,2229,1829,2591,1829,3231,1843,389,1851,3513,1863,3475,1863,1227,1863,1723,1863,3053,1863,3077,1863,3205,1873,827,1873,1505,1883,907,1881,2285,1885,1709,1883,3049,1883,1559,1891,1151,1891,2521,1891,3377,1891,1067,1891,3391,1895,299,1895,745,1893,549,1893,1227,1893,2833,1901,1227,1903,1229,1909,1991,2695,2065,1915,3513,1929,1313,1929,1323,1927,2811,1929,3249,1931,1199,1949,717,1949,1949,1949,3519,1943,2021,1943,85,1943,319,1943,635,1943,643,1943,647,1943,669,1943,721,1943,767,1943,935,1943,1101,1943,1181,1943,1201,1943,1197,1943,1427,1943,1435,1943,1653,1943,1685,1943,1719,1943,1823,1943,1831,1943,2029,1943,2089,1943,2099,1943,2187,1943,1245,1943,2387,1943,2397,1943,2531,1943,2835,1943,2985,1943,3051,1943,3155,1943,3185,1943,3227,1943,3285,1947,317,1947,515,1947,513,1947,627,1947,1181,1947,1187,1947,1393,1947,1483,1947,1917,1947,2295,1947,2515,1947,2657,1947,2835,1947,3477,1947,1881,1947,519,1947,1187,1947,1341,1947,2041,1947,3519,1945,1197,45,1343,1953,299,1953,375,1577,2743,1955,3305,1967,2175,1969,1009,1969,1021,1983,1127,1983,1559,1983,3077,1997,1139,1997,2943,3165,3519,1977,887,1977,1169,1977,1559,1977,2175,2017,635,2015,2847,2015,3107,2025,271,2025,515,2021,3049,2021,3519,2023,3081,2035,3513,2029,293,2029,2061,2029,3377,2029,1229,2029,3513,2045,883,2045,3393,2039,2293,2041,2833,2049,1635,2049,943,87,3513,2051,3513,95,177,95,407,95,549,95,3519,2063,597,2065,2825,2061,177,2061,319,2061,527,2061,1117,2061,1133,2061,1145,2061,1161,2061,1343,2059,1635,2061,1585,2061,2581,2061,2717,2061,2723,2061,2743,2061,2819,2061,2935,2061,3147,2061,3189,2061,3375,2061,3451,2061,3519,2069,1229,2069,3081,2071,325,2071,1143,2071,1253,2071,3257,2071,2293,2085,181,2081,3015,2079,3513,2095,2733,2089,1245,2089,3513,2105,635,2105,1151,2105,1505,2105,1779,2105,1597,2105,1733,2105,2449,2103,267,2103,275,2099,2281,2099,3011,2099,3513,2099,1463,2099,2713,2099,3305,2099,3081,2103,3513,2103,1011,2101,3163,2115,271,2115,1169,2115,1943,2115,715,2115,2835,2115,3513,2111,3513,2123,63,2121,1505,2125,1559,2123,2325,2123,2983,2125,1751,2125,1635,2121,1543,2131,1425,2131,3561,2143,2219,2143,2833,2137,3107,2137,1607,2137,2641,2141,3049,2141,1229,2147,3049,2147,1559,2147,2177,2147,597,2147,3475,2147,2733,175,2187,175,2867,175,2985,2147,3513,2159,1543,2159,2241,2159,1227,2159,1635,2159,3011,2181,1227,2181,1477,2181,2507,2177,77,2177,579,2177,1069,2181,2731,2177,2935,2177,3519,2175,451,2175,801,2175,2175,2175,2355,2175,3185,2175,3519,2175,1563,2159,3025,2179,715,2179,2293,2179,1593,95,943,2177,1597,2191,1227,2191,2241,1145,1891,2191,2281,2191,1051,2191,1719,2191,2235,1145,1541,1145,2015,1145,2589,2185,3077,2185,2281,2185,3513,2185,1315,2189,3009,2189,2281,2189,2281,2189,1563,2189,1719,2189,3049,2189,1049,2189,1189,2189,1635,2189,3051,2187,1505,2187,1559,2187,2281,2187,3107,2187,3551,2187,1229,2187,3257,2187,1505,2197,535,2211,1269,2211,2285,2211,1227,2211,1559,2211,1465,2211,1943,2211,2219,2211,2281,3143,2507,2205,299,2205,305,2205,3049,2205,2833,2205,3513,2205,3049,2205,1559,2209,181,2209,1597,2207,1227,2221,829,2221,2061,2217,1143,2217,1741,2221,597,2219,135,2215,827,2215,3049,2215,1041,2215,1169,2215,1205,2215,1543,2219,1559,2219,2159,2219,2281,2219,2355,2215,597,2219,3021,2219,3143,2215,3367,1169,3561,2219,63,2219,645,2219,677,2219,887,2219,895,2219,1079,2219,1161,2219,1187,2219,1227,2219,2035,2219,2255,2219,2515,2219,2565,2219,2583,2219,2581,2219,3005,2219,3003,2219,3081,2219,3267,2219,3367,2219,3433,2219,3561,2221,2631,2217,1505,2235,2235,2235,2191,2233,827,2231,2833,2229,1477,2241,347,2241,1019,2241,1141,2241,1141,2241,1197,2241,1661,2241,2041,2241,2549,2241,2563,2241,2775,2241,3165,2241,3199,2241,3409,2241,3433,2239,3513,2241,299,2241,535,2255,281,2255,1641,2255,3367,2261,1147,2255,2241,2265,3301,2265,181,2265,3077,2259,767,2263,1151,2263,3009,2263,2281,2263,597,2263,2809,2269,1231,2285,1021,2285,1541,2285,1803,2285,1851,2285,3409,2285,187,2285,187,2285,211,2285,771,2285,781,2285,879,2285,943,2285,1009,2285,1059,2285,1141,2285,1207,2285,1503,2285,1503,2285,1543,2285,2211,2285,2371,2285,2471,2285,2583,2285,2587,2285,2623,2285,2631,2285,2791,2285,2933,2285,3117,2285,3185,2285,3227,2285,3435,1181,15,2281,319,2281,737,2281,1197,2281,1445,2281,1575,2281,2565,2281,2845,2281,3189,2281,3237,2281,15,2281,333,2281,843,2281,895,2281,1019,2281,1125,2281,1161,2281,3009,2281,1179,2281,1191,2281,1189,2281,1227,2281,2015,2281,2189,2281,2211,2281,2255,2281,2259,2281,2299,2281,2339,2281,2355,2281,2543,2281,2559,2281,2563,2281,2579,2281,2709,2281,3005,2281,3105,2281,3189,2281,3241,2281,3247,2281,3367,2281,3415,2281,3429,2281,3453,2281,2323,2281,645,2281,2631,2281,3377,2281,271,2281,3519,2281,1205,2281,2099,3227,1793,2295,1079,2295,1227,2295,2293,2295,827,2295,2231,2293,343,2293,1173,2293,1205,2293,1237,2293,1607,2293,1741,2293,1803,2293,2029,2293,2179,2293,2185,2293,2299,2293,2565,2293,2631,2293,2661,2293,2733,2293,597,2293,2961,2293,3153,2293,3185,2293,3319,2295,3393,2293,3435,2293,3447,2293,3513,2293,551,2293,2533,2291,375,2291,1559,1245,755,1245,3157,2305,3513,2299,299,2299,639,2299,2281,2299,3081,2299,1559,2299,2833,2301,3009,2301,1229,2235,3519,2311,535,2311,2241,2317,3513,2325,727,2335,2327,2341,3049,2349,1127,2349,1505,2349,1559,2349,2241,2349,3107,2349,3345,2355,2549,2355,1559,2355,1709,2357,551,2357,2561,2355,2285,2363,1227,2371,299,2371,1635,2371,2833,2371,3513,2375,2281,2375,3077,2375,1505,2375,1559,2375,635,2375,3107,2387,375,2387,1559,2387,1943,2387,2177,2393,1227,2393,1169,2393,3049,2397,3077,2397,1943,2397,1785,2395,299,2395,1559,2395,3513,2407,1197,2427,799,2427,931,2433,1635,2433,187,2433,2569,2433,3435,2439,105,2439,2905,2471,3199,2471,3319,2443,3513,2439,299,2451,3301,2451,1229,2451,2285,2451,2827,2449,1263,2449,77,2449,177,2447,299,2447,727,2449,769,2449,887,2449,943,2449,1141,2449,1141,2449,1151,2449,1161,2449,1161,2449,1241,2449,1615,2447,1635,2449,1669,2449,2293,2449,2531,2449,2779,2449,2943,2449,3157,2449,3487,2459,2545,2457,3513,2455,529,2455,1155,2459,1151,2455,1771,2455,2015,2455,2187,2455,2549,2455,2559,2455,2569,2455,2923,2463,57,2465,3051,2463,3445,2465,3513,2463,2187,2463,3519,2471,597,2471,3011,2497,3519,2491,2549,2491,299,2491,1411,2491,1563,2491,2285,2491,3513,2489,3513,2991,1711,2487,3107,2487,63,2487,2187,2507,839,2507,2061,2507,2285,2507,2285,2507,3111,2503,193,2503,819,2503,1495,2507,627,2503,3513,2503,3049,2503,299,2515,299,2515,907,2515,597,2511,299,2511,305,2511,535,2511,883,2511,3049,2511,1169,2511,1247,2511,1559,2511,2177,2513,2291,2513,2559,2511,2833,2511,3011,2525,1229,2525,3391,2521,2985,2519,3513,2519,3077,2521,803,2521,801,2521,1169,2523,1505,2521,1891,2521,1977,2521,2935,2521,3015,2521,3021,2521,3173,2521,3483,2521,1229,2521,3513,2529,2729,2529,2833,2529,3049,2531,551,2533,1771,2533,2187,2531,3377,3175,827,2531,1559,2531,3433,2549,1543,2549,767,2549,1505,2549,3513,2549,2241,2549,2285,2549,3053,2549,3425,2543,211,2547,677,2547,1179,2545,1695,2559,727,2559,1253,2559,1227,2559,3011,2559,3021,2559,3077,2559,3377,2559,299,2559,3257,2559,597,2559,375,2553,3513,3053,265,2557,551,3053,2255,3053,2565,3053,2971,2555,305,333,737,333,2187,2569,535,2569,1197,2569,1635,2569,3081,2569,3107,2569,3389,2569,797,2569,805,2569,3377,2569,3051,2569,3513,2569,3513,2569,3049,2569,1227,2569,2533,2563,1227,2563,1559,2563,2833,2563,1543,2563,597,2563,3011,2563,3081,2563,827,2563,3049,2563,1635,2563,675,2563,1505,2563,1633,2567,1505,2567,551,2565,299,2565,3377,2565,551,2565,1151,2565,3049,2565,3433,2565,3513,2565,535,2565,1505,2565,3205,2565,1011,2565,3107,343,3513,2583,299,2583,1559,2583,1607,2583,2285,2581,1543,2581,2281,2581,3011,2581,1227,2581,3011,2581,3377,2579,1229,2579,2503,2579,3009,2579,1465,2579,1829,2579,3111,2593,299,2593,1947,2593,551,2593,1635,2593,3107,2587,535,2577,1497,2591,1151,2591,3011,2591,3077,2591,1503,2589,727,2589,267,2589,827,2589,549,2591,591,2591,799,2591,1229,2589,1505,2591,1635,2591,2643,2597,63,2599,1041,2609,1635,2609,3079,2609,509,2615,2471,2623,1559,2623,2219,2623,353,2631,767,2631,1229,2631,1505,2631,1559,2631,1943,2631,2281,2631,2507,2631,3011,2631,3077,2631,3077,2631,3077,2629,1607,2629,1179,2629,3011,2629,3383,2635,271,2635,1565,2635,1559,2635,3205,2651,1543,2651,1227,2651,1501,2649,1829,2649,2281,2647,375,2647,931,443,1055,2647,3049,2661,2281,2661,2449,2657,305,2657,3049,2657,2455,2677,509,2677,3077,2673,2293,2675,1607,2681,551,2681,1453,2689,375,2703,3513,2709,551,2709,2281,2709,2561,2719,1709,2719,1709,2719,1709,2719,1635,2719,2561,2729,727,2723,2281,2723,3513,2723,3551,519,535,2725,355,2725,1161,2739,2281,2739,3367,2739,3513,2733,3513,2733,3051,2737,1597,2737,3513,2735,829,2515,2515,2743,2471,2743,407,2743,1335,2743,2497,2745,727,2753,111,2753,1829,2753,3513,2755,2293,2755,3077,2755,3433,2763,883,2763,2935,2767,2915,2767,2281,2781,2281,581,745,2775,827,2775,1559,2775,597,2775,3513,2779,1505,2777,2077,2791,767,2791,1169,2791,1943,2791,2281,2791,2311,2791,2729,2791,3011,2785,2833,2785,1333,2801,181,2799,187,2801,527,2799,571,2799,627,2799,635,2799,1081,2799,1769,2799,1955,2799,2189,2799,2711,2799,3041,2799,3143,2799,3367,2801,3513,2799,3561,2795,1543,2795,3513,597,99,597,265,597,627,597,645,597,745,597,827,597,991,597,1011,597,1093,597,1139,597,1245,597,1481,597,1543,597,1711,597,2031,597,2209,597,2355,597,2357,597,2565,597,2835,2795,3081,597,3143,597,3147,597,3219,597,3257,597,3267,597,3423,597,3423,597,3477,597,3513,2811,799,2809,3519,2811,2241,2809,829,2809,1559,2809,1943,2809,2507,2809,3077,2821,281,2815,3513,2815,3377,2815,1559,2819,829,2819,917,2819,3077,2831,3049,2827,1047,2831,1505,2831,1543,2831,2177,2825,1011,2825,597,2825,3077,2825,1801,2825,1719,2825,2175,2827,375,2827,2971,2827,2241,2841,1333,2833,715,2835,727,2835,2281,2835,3271,2835,3513,2835,111,2835,3009,2837,1597,2837,2101,2851,1227,2851,551,2845,3377,2849,1943,2849,1597,2847,1785,2847,3031,2847,3033,2847,3513,2861,1559,2855,3377,2871,677,2871,829,2871,1785,2865,1733,2867,299,2867,3049,2867,2497,2867,3081,2867,2497,2881,187,2881,1785,2881,3145,2875,1559,2875,1635,2875,3351,2875,1145,2875,1237,2891,1465,2891,727,2891,2231,2889,535,2889,2811,2889,2281,2715,113,2715,2111,2895,2893,2897,549,2897,3513,2939,2933,2905,299,2905,3475,2905,1227,2905,1559,2905,1597,2905,597,2905,2833,2905,3377,2919,3285,2913,1453,2913,3051,2917,1227,2917,1559,2917,617,2923,305,2927,2281,2925,2281,2939,1829,2939,1021,2939,3183,2939,181,2939,3049,2935,445,2935,1019,2935,1453,2933,3391,2933,1197,2933,1543,2933,45,2933,299,2937,1733,2937,1733,2935,257,2935,1143,2935,3011,2935,3513,3239,343,3239,1481,3239,3001,2943,635,2943,3077,2943,3513,2945,1829,2965,2965,2965,1843,2965,2177,2965,829,2965,1943,2963,1709,2961,2177,2975,1227,2971,1407,2975,3175,2975,3513,2969,3049,2969,1143,2969,1161,2969,1505,2969,1929,2969,1929,2973,3049,2973,1179,2973,3081,2973,299,2973,635,2973,1059,2973,1169,2973,299,2973,2293,2975,1227,2975,3517,2971,2281,2971,271,2971,299,2985,3301,2985,3257,2985,3391,2985,2281,2985,1607,2985,1635,2985,1731,2985,2591,2985,181,2985,1635,2985,1943,2985,1559,2979,1247,2979,3513,2983,3025,2983,1011,2983,1229,2983,2809,2983,3051,2981,299,2981,2293,1141,519,2981,777,2995,2061,2995,3513,2989,3513,2989,777,2991,299,2991,639,2991,3049,2991,1229,2991,1543,2991,1559,2991,1635,2991,2177,2991,2809,2991,2833,2991,3145,2991,1065,2991,1543,2991,3433,3005,3049,3005,1543,2207,805,2207,2553,2207,2581,3005,3077,3003,1161,3005,3107,2999,1333,2999,2449,2999,2971,3003,551,3003,1131,3003,1597,3003,2729,3001,1543,3001,3377,3001,299,3001,3049,3001,1505,3001,1543,3001,829,3001,1635,3001,1785,3001,3107,3015,3377,3011,247,3015,325,3011,887,3011,961,3011,1145,3015,1161,3011,1181,3011,1653,3011,1687,3011,1741,3011,2115,3011,2181,3011,2551,3011,2565,3011,2845,3011,2935,3015,3205,3011,3427,3015,3433,3015,3077,3015,1579,3015,3513,3013,3205,3013,2833,3011,3391,1003,545,3011,3513,3021,3011,3025,1169,3025,3377,3025,1197,3025,3049,3025,1151,3025,1505,3023,281,3023,3475,3023,1169,3023,1227,3023,1505,3023,1543,3023,2285,3023,2281,3023,2293,3023,597,3023,3081,3023,3513,3023,551,3021,299,1179,591,1179,613,1179,661,1179,821,1179,1019,1179,1287,1179,3145,1179,3155,1179,3257,3021,3377,1179,3415,1179,3453,1179,3501,3021,1607,3021,3205,3029,3049,3029,3049,3031,2809,3045,1607,3045,2241,3045,2293,3045,3077,3045,3107,3045,3257,3045,3077,3045,3419,3041,281,3055,2281,3055,3011,3055,3077,3049,299,3053,1131,3053,1229,3051,2291,3051,2833,3051,2935,3055,3081,3051,3425,3051,551,3051,3513,3065,1041,3065,2487,3065,3011,3065,3377,3065,1715,3065,2175,3059,1205,3081,79,3081,879,3081,1113,3081,1151,3081,1287,3081,1311,3081,1739,3081,1927,3081,2191,3081,2187,3081,2593,3081,2985,3081,2999,3081,3013,3081,3105,3081,3157,3081,3175,3081,3367,3081,3417,3081,3427,3081,195,3081,441,3081,545,3081,613,3081,801,3081,821,3081,3049,3081,1013,3081,1163,3081,1161,3081,1181,3081,1485,3081,1497,3081,1597,3081,1741,3081,1977,3081,2071,3081,2187,3081,2503,3081,2549,3081,2567,3081,2565,3081,2565,3081,2593,3081,2943,3081,2973,3081,3105,3081,3157,3081,3175,3081,3311,3081,295,3081,3417,3081,3415,3081,3429,3081,3425,3081,3451,3081,3453,3081,219,3081,347,3081,767,3081,1389,3081,1851,3081,2241,3081,2355,3081,2397,3081,2463,3081,2471,3079,65,3079,1429,3079,1661,3079,1803,2675,1169,3077,209,3077,731,3077,1113,3077,1263,3077,1483,3077,1707,3077,2187,3077,2421,3077,2471,3077,3127,3077,3185,3077,153,3077,1161,3077,1343,3077,2829,3077,3379,3077,3411,3077,3513,3077,745,3077,851,3077,1081,3077,2281,3077,3011,3077,3029,3077,79,3077,173,3077,1265,3077,2563,3077,1253,3239,2263,3239,2281,3091,727,3091,2281,3089,1229,3087,2293,3087,1227,3087,1151,3087,543,3095,2549,3097,781,3099,299,3099,1559,3099,2293,3099,3081,3099,3433,3097,3271,3111,727,3111,1151,3111,1163,3111,2147,3025,2281,3111,2427,3111,3423,3111,3513,3105,1231,3105,3377,3105,2833,3107,13,3107,25,3107,113,3107,125,3107,2163,3107,323,3107,363,3107,933,3107,985,3107,993,3107,1031,3107,1047,3107,1141,3107,1173,3107,1187,3107,1343,3107,1349,3107,1393,3107,1463,3107,1597,3107,1661,3107,1907,3107,2061,3107,2187,3107,2255,3107,2265,3107,2281,3107,2387,3107,2471,3107,2593,3107,2615,3107,2631,3107,2651,3107,2829,3107,2975,3107,2983,3107,3011,3107,3055,3107,3049,3107,3051,3107,3091,3107,3129,3107,3175,3107,3189,3107,3195,3107,3247,3107,3357,3107,3367,3107,3415,3107,3435,3107,3517,3107,3551,3115,2281,3115,3049,3117,1543,3117,1829,3129,267,3129,2833,3125,77,3129,299,3125,871,3129,535,3129,1189,3129,1197,3129,2833,3123,777,3123,931,3127,299,3127,2061,3129,3129,3127,3257,3127,1505,3127,3011,3127,3051,3145,2187,3149,829,3149,1785,3149,211,3149,2387,3149,3425,3149,3517,3149,1785,3143,1197,3143,1543,3143,3049,3143,3391,3143,1231,3143,299,3143,767,3147,2065,3145,2971,3145,2729,3145,3107,3149,1209,3149,1661,3149,2507,3145,3513,3159,2281,3153,1245,3153,2293,3153,1563,3153,299,3153,1559,3153,3011,3157,375,3157,767,3155,3513,3169,3393,3169,1017,3169,829,3163,55,3163,829,3163,1103,3165,1229,3165,2177,3165,551,3169,1013,3169,3029,3165,1695,3169,2281,3165,2439,3165,2561,3179,2677,3179,3513,3173,1709,3173,3171,3177,257,3177,855,3175,3513,3175,299,3175,3049,3175,1197,3175,2293,3185,79,3183,519,3185,591,3183,613,3183,645,3189,727,3183,853,3183,1365,3189,1559,3183,1597,3185,2189,3189,2241,3185,2791,3183,3155,3185,935,3189,2509,3189,1227,3183,1559,3183,1635,3183,2521,3187,3107,3185,3377,3185,375,3185,375,3185,3051,3185,1559,3185,677,3199,2935,3199,827,3199,3257,3199,1505,3199,597,3149,1047,3199,2241,3193,687,3197,551,3197,1227,3197,1559,3197,1229,3195,1653,3197,1785,3203,1209,3203,3377,3203,551,3207,2115,3207,597,3207,3513,3207,1559,3205,139,3205,333,3205,363,3205,451,3205,509,3209,551,3205,575,3205,591,3205,661,3205,801,3205,1021,3205,1139,3205,1193,3205,1207,3205,1303,3205,1483,3205,1575,3205,1711,3205,1803,3205,1993,3205,2139,3205,2563,3205,2565,3205,2565,3205,2581,3205,3145,3205,3169,3205,3219,3205,3267,3205,3367,3205,3409,3205,3419,3219,1201,3219,2205,3223,2471,3223,2471,3221,1229,3221,1559,3219,299,3233,3077,3233,1197,3233,3175,3227,2833,3227,281,3227,745,3227,3345,3227,2629,3231,551,3231,551,3231,1161,3231,1227,3231,1227,3231,3391,3227,1803,3229,883,3229,3009,2975,2845,3243,2471,3243,3107,3243,3107,3237,1505,3237,1559,3237,3051,3237,647,2589,3105,3237,767,3237,1155,3237,1719,3239,1113,3239,2943,3241,3187,3241,1505,3241,1597,3241,2471,3241,597,3239,2833,3239,299,3239,3107,3239,3049,3239,1227,3239,1829,3247,305,3247,2293,3143,2687,3247,2293,3247,299,3247,2285,3247,3301,3247,767,3247,1559,3251,375,3251,3049,3249,1635,3249,3377,3249,3513,3257,1543,3257,2281,3257,3429,3257,3011,3267,299,3271,547,3271,1065,3271,1253,3271,3097,3265,1505,3265,2507,3265,325,3265,1565,3269,535,3269,1635,3267,3049,3267,1505,3267,3283,3267,3475,3267,597,3267,637,3239,2811,3351,1073,3319,2529,3287,1829,3287,3433,3519,375,3519,2981,3519,3237,3519,3457,3283,187,3283,1021,3283,1131,3283,2137,3283,3267,3283,3433,3285,3011,3283,299,3283,305,3283,1065,3291,1709,473,627,473,1019,473,1237,473,1703,473,2531,3293,3049,3305,1079,3305,1615,3305,2631,3305,2849,3305,2975,3305,3517,3315,1829,3313,299,3313,1227,3313,2285,3313,3081,3311,1135,3311,2833,3311,1227,3319,1543,3319,1829,3355,211,3355,2979,3331,551,3331,1695,3341,1505,3341,3377,3341,2971,3351,665,3351,871,3351,1081,3351,2563,3351,2581,3351,3147,3351,3203,3351,3411,3125,299,3345,839,3345,957,3345,1145,809,1337,3345,3425,3347,3009,2507,851,2507,1139,3345,847,3345,3237,3355,3513,3357,3513,1891,353,1891,645,1891,1019,1891,1187,1891,1265,1891,1783,1891,2849,1891,3051,1891,3175,1891,3391,3367,1241,3367,1237,3367,1485,3367,1545,3367,3005,3367,3001,3367,3129,3367,3219,3367,3231,3367,299,3367,635,3367,1169,3367,1641,3367,3377,3379,1631,3377,103,3377,153,3377,333,295,375,3377,511,295,727,3377,745,295,855,3377,935,3377,1145,295,1151,3377,1197,295,1229,3377,1449,3377,1977,3377,2255,3377,2565,3377,2703,3377,3011,3377,3065,295,3077,3377,3123,3377,3147,3377,3229,3377,3397,3377,3519,3377,1635,3375,3513,3389,883,3389,3009,3389,1419,3461,717,3461,3519,3387,2833,3385,2833,3385,1543,3385,1227,3385,2115,3385,3011,3385,3205,3399,3081,3393,75,2529,113,3393,347,3393,359,3393,549,3393,605,3393,653,3393,661,3393,739,3393,775,3393,799,3393,943,3393,947,2529,1011,3393,1019,3393,1111,3393,1151,3393,1227,3393,1341,3393,1783,3393,2491,3393,2503,3393,2531,3393,2579,3393,2681,3393,3001,3393,3169,3393,3175,3393,3187,3393,3375,3393,3427,3393,3437,3393,3443,3393,3477,3393,3519,3395,1695,3389,729,3383,1107,3383,1133,3383,1139,3391,1485,3383,1503,3507,1635,3383,1677,3383,1729,3383,1783,3389,2589,3411,1229,3411,2241,3411,3011,3409,2833,3407,3377,3407,3513,3419,551,3419,635,3419,2219,3419,2281,3419,597,3415,3415,3419,1559,3417,1227,3417,1559,3417,3081,3419,21,3415,3475,3419,527,3419,3257,3415,1543,3419,3345,3419,1187,3429,1559,3429,281,3429,1559,3429,3205,3427,539,3427,551,3427,905,3427,933,3427,1013,3427,1873,3427,2023,3427,2565,3427,3025,3427,3165,3427,3231,3521,2559,3429,267,3429,827,3423,3049,3423,1945,3423,3507,3423,111,3423,1565,3423,1635,3423,3513,3423,535,3423,551,3423,767,3427,3107,3427,883,3427,1147,3427,1543,3427,2833,3425,1505,3433,153,3433,213,3437,299,3433,527,3433,643,3433,781,3437,777,3433,1141,3437,1169,3433,1171,3433,1239,3433,1323,3433,1783,3437,1803,3433,2211,3433,2515,3433,2591,3433,3029,3433,3099,3433,3185,3437,299,3437,1231,3437,1229,3437,2293,3435,1559,3433,211,3435,375,3433,577,3433,635,3433,1081,3433,1943,3433,2785,3433,3423,3435,3513,3433,2285,353,77,353,75,353,187,353,265,353,297,3433,413,3433,527,353,2733,353,605,353,643,353,739,353,747,353,775,353,801,353,895,353,909,353,943,353,3049,353,1019,3433,1021,353,1125,353,1161,353,1229,353,1237,3433,1505,353,1585,353,1769,3433,2061,353,2261,353,2549,353,2547,353,2559,353,2589,353,2589,353,2703,353,2775,353,2821,353,2835,353,2933,353,2949,353,3001,353,3025,353,3033,353,3045,353,3081,353,3099,353,3143,353,3143,353,3147,353,3153,353,3153,353,3155,353,3185,353,3195,353,3207,353,3247,353,3283,353,3417,353,353,353,3533,353,3545,3447,2293,3447,3377,3447,3393,3447,3419,3447,1231,3457,2281,3457,3513,3457,855,3457,1245,3457,3285,3457,1559,3451,3513,3455,827,3455,1169,3455,1253,3455,1559,3455,2175,3455,597,3455,3513,3453,3051,3453,3377,3453,375,3453,1559,3453,3351,3453,3513,3453,1229,3463,281,3463,635,3463,1231,3479,281,3479,299,3479,1041,3479,3081,3477,299,3475,627,3477,827,3475,907,3475,1201,3475,1239,3475,1595,3475,1623,3475,1711,3475,2305,3475,2675,3475,2723,3475,2935,3475,3187,3475,3233,3477,3393,3475,3519,3475,2833,3487,3513,3487,3011,3495,1231,3495,2281,3491,1635,3501,1169,3501,2833,3501,3241,3511,3513,3507,1559,3507,1505,3575,1781,3519,375,3517,3475,3517,1143,3517,883,3517,3049,3517,1227,3517,1227,3517,1227,3517,1559,3517,1559,3517,3053,3517,3081,3517,3475,3517,1801,3527,559,3527,1505,3525,1229,3525,1543,3525,3513,3535,597,3533,3257,3533,3393,3541,2281,465,3433,3545,1829,3545,2471,3545,767,3545,2293,3545,1607,3551,407,3551,829,3551,887,3551,887,3551,1145,3551,1189,3551,1207,3551,2563,3551,2717,3551,2723,3551,2835,3559,3049,3559,1229,3571,3049,3579,1229,3581,743,3575,1161,3577,3257,3575,1513,3581,1955,3577,2293,3581,3189,3577,1635,1,55,3001,1,55,3447,1,193,1153,1,333,2295,1,721,2507,1,735,2775,693,2049,887,1,1019,2185,1,1311,1415,1,1311,2677,1,1311,2753,1,1415,181,1,1415,721,1,1415,2503,1,1455,2725,1,1495,3015,1,1601,59,1,1653,1881,1,1805,1019,1,2099,3125,1,2375,2185,1,2413,2651,1,2845,2563,1,2899,2775,1,3189,1973,17,853,3513,15,1011,3397,15,1741,3513,15,1741,3513,29,1121,2293,29,9,613,25,2565,3205,43,2833,715,59,103,3513,53,931,3513,63,1103,1105,63,1719,1719,63,2281,711,63,2529,3475,63,3107,173,63,3107,2281,67,771,1009,67,771,1607,67,805,3377,181,1415,2845,181,1531,2215,67,1151,3513,67,1463,2723,67,2179,715,67,2739,3513,67,3155,3513,65,3107,173,65,3107,3415,65,55,3513,75,2565,375,75,103,3513,75,545,715,75,1413,3519,89,545,1677,89,3513,2221,121,193,2565,121,2507,2295,85,3513,1741,183,1017,427,183,1017,1851,183,1017,3227,97,191,3453,97,551,3453,97,1161,2281,97,1541,2281,105,75,2281,105,305,3003,103,191,3453,107,99,799,103,191,3453,107,1027,967,103,3391,2581,111,2833,715,125,299,1741,125,887,3513,135,883,3041,133,193,2513,133,2285,1881,133,829,3513,133,2833,715,131,3081,1311,131,3021,3205,131,781,2833,131,1829,2299,131,1829,2709,141,527,3055,139,2675,829,139,3533,2293,153,3425,799,153,3501,271,151,1719,3519,187,519,2115,187,1479,77,187,1479,839,187,1479,2651,187,1479,3427,187,1479,3479,187,2099,1145,187,2099,2187,187,3111,3397,181,1741,3513,181,877,717,181,877,3513,191,1143,3001,193,591,715,193,661,325,191,661,1197,191,661,2835,193,991,1065,191,1161,551,193,3015,325,193,3077,839,191,3165,1199,193,3183,613,193,3205,2191,193,3227,551,193,3283,1065,193,3517,1505,215,1705,717,213,2563,299,225,1793,3377,225,3239,3397,225,3239,3425,3301,1047,1081,243,3525,829,257,1141,3319,267,2293,715,271,501,1607,281,1609,757,271,2675,2187,267,3185,591,291,2491,3513,295,829,1265,295,3545,2471,299,1741,2355,297,739,597,311,661,325,311,801,1021,305,3003,2943,305,3003,3541,305,3153,1711,305,3153,2295,339,551,2189,339,299,1741,333,887,1607,333,1129,1607,337,3051,3513,335,2039,3513,349,191,3453,349,551,1279,349,551,1419,349,551,3025,349,551,3453,349,1333,687,349,1333,3013,343,1229,3367,355,671,715,355,1197,715,355,3129,1145,359,2185,1505,365,1151,3513,379,767,3513,379,781,2833,379,2249,1607,379,2559,1607,379,3153,3011,379,3455,3181,377,1227,1183,377,767,2299,3087,1803,299,393,2581,715,403,537,2549,3475,1141,2111,397,805,2293,413,1313,2811,409,2029,3513,423,1943,2099,423,3533,3257,441,829,3205,441,3021,3205,3529,3153,3001,459,767,3513,465,1197,715,485,1739,2293,489,319,375,491,1197,715,515,1151,3513,513,57,299,513,77,3513,513,191,3453,513,579,3513,513,683,2705,513,907,299,513,955,3513,513,977,2203,513,1103,715,513,1463,2723,513,2035,3513,513,2101,901,513,2285,781,513,2305,3513,513,2835,2061,513,3247,299,513,3275,2219,513,3393,1341,511,67,3519,511,193,767,511,3301,1209,511,379,3107,511,647,3513,511,853,3513,511,1155,1127,511,1169,1265,511,1227,3519,511,1527,1527,511,1687,3513,511,2465,3513,511,2521,3173,511,2529,2833,511,2559,375,511,2569,805,511,2677,509,511,3443,3519,519,1687,3513,531,2549,2825,531,191,2565,527,525,1741,531,827,1069,531,3049,113,531,3049,3001,527,1253,717,2733,187,3257,2733,839,2249,2733,1081,1145,2733,1101,335,2733,1101,549,2733,1101,839,2733,1101,1711,2733,1101,2709,2733,1483,2651,2733,1483,2897,2733,1739,1081,2733,2797,1483,2733,2845,3237,2733,3051,2779,539,1155,551,539,1161,717,539,1343,715,549,55,715,549,55,3513,549,3513,3561,545,271,1711,545,963,717,545,1515,715,551,3155,717,581,3107,2743,581,3107,3129,581,1561,717,581,1565,1565,575,3367,2295,577,957,2281,577,2281,3183,577,2795,3513,591,589,1021,589,441,299,589,887,1607,589,1021,121,589,1559,151,589,3267,637,589,3475,717,589,3519,1559,589,3545,1607,597,2457,3513,597,591,715,617,591,715,613,2593,3411,617,3513,1069,613,299,63,613,299,2569,623,1741,3513,623,3147,2471,631,693,3001,631,75,2281,627,1079,2115,627,3247,1543,627,3283,1021,649,21,3001,649,181,1531,637,1561,2565,635,1943,299,635,3419,3051,635,803,827,635,797,879,643,3533,2293,645,1151,495,645,1505,1039,657,1151,3513,655,857,3049,665,679,1145,661,191,3453,661,325,3051,661,325,3441,661,551,2189,661,551,3453,661,1559,257,661,3391,827,683,1113,715,683,2357,2967,683,353,3051,719,2355,3475,719,353,297,719,353,871,719,353,3051,719,353,3533,731,173,1607,731,3049,1505,731,3049,2355,731,1041,209,731,1229,781,731,1543,2221,731,3123,1607,741,2563,1559,2045,3237,2295,741,871,2833,735,2565,3001,739,2733,1483,739,1161,1141,739,3205,665,739,3205,2187,739,3205,2349,739,3205,2565,737,193,3383,737,551,3383,745,3077,2191,747,511,1607,747,1337,2061,761,3049,3247,761,1145,299,761,1169,1265,761,661,325,757,1129,1505,771,1485,375,771,2447,3011,767,3519,1483,767,3519,1505,767,3519,2499,767,3519,2565,781,1021,3283,799,2833,715,801,589,1021,801,3021,3205,801,739,3205,801,2079,3513,1155,1483,1641,819,1607,1625,829,305,1559,829,551,1139,829,3205,1595,829,3205,2187,829,3205,2305,829,1431,2281,827,513,1465,827,567,3147,827,589,343,831,717,3513,827,1179,1805,831,1703,3513,827,2543,1695,827,2561,3377,827,3051,3227,831,3383,1139,839,2249,2293,847,767,3519,847,1481,2549,847,1481,3427,847,1687,3513,847,2531,2061,847,2799,717,847,3107,3129,857,717,1709,857,179,3445,815,3429,2965,851,191,3453,851,551,3453,857,3285,2981,853,1227,2565,853,2833,715,861,1741,3513,871,1559,1265,871,551,2511,887,3577,1505,885,3077,1047,883,809,3001,887,1143,3425,883,3209,3367,899,1585,173,897,2189,3519,895,193,3383,895,551,3383,895,1197,715,895,2579,551,909,1823,1817,909,681,715,909,1597,1597,907,3513,1485,907,1843,1835,905,189,551,917,129,3513,913,191,3453,913,1105,3513,927,981,3513,935,1151,3513,933,189,3383,933,3257,2187,933,2999,3257,931,1265,2439,943,739,3205,943,829,717,943,1565,1565,951,1779,729,957,3109,2281,961,3519,1161,965,3519,1229,965,3519,1597,963,551,3205,963,2371,3513,975,59,897,969,2561,1651,971,1649,1205,981,3513,2187,981,3513,2835,981,3513,2923,985,2549,2907,991,2631,1505,991,3081,241,991,2591,1151,995,2457,3513,993,913,715,993,177,299,3049,193,2831,3049,751,139,3049,1265,407,3049,1485,1245,3049,2933,3105,3049,3415,729,1001,3049,2845,1013,551,1035,1013,1139,1453,1013,1155,1127,1011,2185,3045,1013,2371,3513,1021,545,213,1019,551,1419,1019,2823,729,1131,2985,1881,1019,2293,3001,1019,721,1719,1019,739,3205,1021,1891,1269,1027,1565,1565,1027,1719,1719,1027,2995,3513,1027,2989,3513,1027,3429,1647,1027,3551,2563,1053,1581,1575,1047,1687,3513,1047,1801,3519,1047,2831,2831,1047,3107,2281,1047,2825,3001,1057,2471,3199,1059,727,3577,1067,2305,2281,1067,1633,179,1067,1593,1315,1067,2845,353,1067,2845,3375,1071,717,931,1071,907,1229,1069,727,2675,1069,2565,3377,1081,343,3513,1081,601,1229,1081,909,681,1081,1151,3513,1081,1597,2631,1081,2559,1169,1081,3519,715,1077,551,1419,1079,2563,519,1079,1575,2295,1079,1633,879,1081,1415,1415,1077,177,299,1079,55,715,1079,1343,715,1079,2989,3513,1085,3195,2295,1087,767,3519,1087,3107,173,1093,3013,2293,1093,535,829,1101,2099,2295,1101,3077,173,1117,1565,1565,1117,1725,1719,1117,3427,1149,1111,2733,1483,1111,3095,2293,1365,1141,2569,1365,1141,2565,1365,1141,3105,1123,2371,3513,1131,1743,2299,1129,2443,829,1133,1161,2061,1133,1365,3513,1131,1151,3513,1145,935,2061,1145,2937,1229,1145,3519,715,1145,1465,1607,1145,1169,729,1139,2895,2893,1139,2491,319,1139,3049,1265,1139,1227,3379,1139,1343,1543,1139,3051,3513,1143,1019,3105,1143,2709,1559,1141,1007,133,1141,1597,2115,1143,1827,2565,1143,1927,2565,1155,551,2651,1155,1953,2061,1155,2233,717,1155,3377,3425,1155,3195,3001,815,3429,2965,1153,2231,1463,1153,2231,2675,1151,191,3453,1151,3513,319,1151,3513,3457,1165,1565,1565,1165,2491,3561,1161,605,3559,1161,653,3051,1161,851,1011,1161,1193,757,1161,1193,2629,1161,3035,2299,1161,3533,2293,2205,2935,3001,1165,3345,3227,1163,265,3377,1163,3205,1483,1163,3433,643,1161,679,3513,1173,1733,1229,2221,1197,1229,1169,1635,2449,3009,1783,377,1169,3241,1505,1183,107,1229,1183,1559,589,1183,3013,3257,1183,3013,2293,1181,627,1505,1253,635,299,1181,3427,2833,1183,2593,1169,1179,3105,2115,1193,2991,2281,1193,2833,715,1193,819,3513,1193,907,3147,1187,1151,2371,1193,1125,3415,1191,717,1709,1189,2905,2281,1201,839,3551,1201,1103,1105,1201,1943,3577,1201,2457,3513,1201,3165,2561,1197,3049,2293,1197,131,2565,1201,191,3453,1201,551,2189,1201,551,3453,1197,2935,1265,1209,551,2189,1205,2235,2235,1231,871,717,1231,139,3513,1229,1079,2507,1229,1111,295,1229,1173,2565,1229,1485,3015,1229,2293,2229,1229,2835,1909,1229,2937,1067,1229,3357,899,1229,3393,131,1229,353,3025,1229,59,1165,1229,1209,571,1229,2563,2685,1229,3315,129,1229,3351,129,1227,1379,1375,1227,2531,1113,1241,1559,2709,2293,1663,211,1247,133,549,1247,727,2187,1247,2181,819,1247,3153,1145,1253,2565,3257,1265,1145,375,1265,3257,661,1265,3257,2855,1265,1543,3483,1265,751,271,1271,1415,2251,1269,169,2221,2199,181,3513,1269,1189,1747,1269,1415,2185,1269,1597,1485,1279,299,63,1279,545,319,1279,1343,3513,1279,3023,281,1283,551,2189,1287,1155,897,1287,1155,2981,1283,2509,2287,1287,2581,2709,1283,3155,3513,1301,191,3453,1301,551,3453,1315,1179,2115,1313,191,2565,1313,577,2661,1313,3049,3051,1313,1269,3199,1313,2591,1139,1311,767,3519,1323,903,2833,1333,63,591,1333,63,799,1337,1151,3513,1337,1635,1635,1335,1021,3041,1333,3425,829,1341,1687,3513,1353,129,3513,1353,2453,85,1351,3049,2481,1377,3013,2293,1401,1253,717,1405,2449,1141,1415,647,3513,1415,917,715,1409,1155,295,1413,51,1343,1413,1647,1179,1411,1183,3285,1419,551,1139,1421,971,1649,1427,77,2281,1429,2739,3513,1435,745,2565,1437,1669,2293,1449,129,3513,1449,181,179,1449,511,1829,1449,857,515,1449,903,2833,1449,1067,2845,1449,1101,1943,1449,1155,1127,1449,1419,2521,1449,1823,1817,1449,2089,3225,1449,2569,805,1449,2833,715,1449,2835,3513,1449,3105,1231,1449,3171,1545,1449,3173,3171,3257,803,2569,3257,2265,2565,1455,2939,3179,1465,1155,2187,1465,1197,2629,1463,2723,2439,1475,3345,839,1485,727,589,1485,727,933,1485,727,1169,1485,727,2569,1485,727,2821,1485,727,3247,1481,2631,2565,1483,2985,1607,1495,1081,1447,1497,2979,2293,1497,739,3205,1497,2281,1265,1503,2561,1235,1507,1343,3513,1507,353,3051,1505,3519,1079,1505,3519,1625,1505,3519,2589,1505,3519,2725,1513,2801,3513,1513,2925,2521,1513,2925,2723,1523,319,3377,1533,2281,1265,1541,3377,1803,1565,177,299,1565,1165,87,1565,1565,3475,1559,1141,1967,1559,2521,2185,1559,1059,1597,1559,1059,2581,1559,1427,3015,1559,2559,1145,1559,2937,59,1559,3105,2559,1559,3189,2581,1559,3237,577,1559,3049,173,1559,3049,3051,1559,1437,993,1559,2631,2979,1559,2631,3001,1559,2631,3375,1559,2831,2301,1559,3001,3049,1559,3055,3241,1559,1079,2971,1559,527,2061,1559,3001,527,1563,2795,1687,1563,3175,1703,1563,3519,2981,1561,143,3049,1561,1265,3519,1561,1561,1561,1561,2039,2507,1561,2999,2249,1561,3257,3109,1561,3427,717,1561,2919,717,1575,1071,635,1575,1247,781,1575,1711,95,1597,2293,3001,1597,547,715,1597,2791,1379,1597,2835,1181,1615,2733,2249,1615,1051,1051,1615,1655,1647,1623,1145,3377,1639,181,3117,1633,1137,3105,1633,2651,3551,1447,191,2565,1635,577,413,1635,577,571,1635,1081,2559,1635,2631,897,1635,2631,933,1635,2749,1145,1635,3175,2589,1609,3049,2531,1655,1647,1027,1655,1647,1505,1655,3005,2933,1653,177,1433,1653,1059,2061,1653,1561,1153,1653,2439,2293,1653,2775,3077,1653,2293,3001,1663,1741,3513,1669,3051,3513,1685,187,1479,1685,981,3513,1685,1483,1607,1685,3129,2833,1685,2723,1229,1689,1197,715,1785,1821,1019,1703,2179,715,1703,2543,1695,1703,2985,3179,1703,1067,717,1703,739,3205,1707,849,2355,1713,2833,715,1723,907,99,1723,907,961,1723,907,3541,1719,993,3165,1719,1725,1505,1719,2725,2185,1731,1655,1647,1751,271,1237,1769,1483,299,1769,67,3391,1771,871,3513,1771,1543,1237,1771,3433,1607,1783,1065,1139,1785,769,1145,1787,181,3513,1785,193,1279,1785,191,2565,1803,2147,2295,1805,525,1269,1805,525,2295,1805,525,3015,1803,2833,2355,1803,577,577,1803,577,1625,1803,577,3051,1803,1541,2565,1809,1151,3513,1811,1113,715,1811,1695,3035,1811,1695,3391,1813,2295,3001,1811,2563,1055,1827,2355,1147,1827,75,2281,1827,105,305,1827,305,3003,1829,1763,3203,1851,359,3107,1851,2137,3107,1851,3185,3107,1849,159,1947,1849,647,3513,1849,1053,1051,1849,2335,2327,1849,3391,2913,1863,379,3107,1863,3205,1483,1873,1505,3519,1881,2563,1559,1883,739,3205,1891,289,1505,1901,717,1709,1927,3107,1703,1943,129,3513,1943,181,3513,1943,1143,2387,1943,1181,1165,1943,1435,3055,1943,1685,3241,1943,2099,3099,1943,2099,3427,1943,2099,2187,1943,2835,95,1943,3285,1349,1943,3285,2507,1947,3159,857,1945,193,963,45,1343,1543,1973,1197,715,1977,2219,2355,1977,2355,1147,1977,3455,1253,2021,851,3513,2035,3065,2175,2029,267,717,2033,3519,319,2031,191,2565,2039,835,3513,2049,943,13,2049,943,1205,2051,511,985,2051,649,649,2051,673,673,2051,673,717,2051,1073,1073,2051,2835,3237,2063,1653,299,2063,3247,299,2065,1785,1141,2061,2829,3519,2061,3519,715,2069,191,2565,2071,1143,3425,2089,187,1479,2091,613,3519,2099,1155,3513,2115,715,2749,2111,3513,2581,2123,63,769,2123,63,1141,2123,63,3175,2121,1505,1079,2125,1559,2971,2153,2055,2281,2147,3049,3001,2147,1559,257,2147,2531,2061,2033,1145,2061,2159,1635,1069,2159,1705,717,2159,3393,1011,2175,2753,1229,95,943,151,1145,991,2589,1145,2015,3051,2189,727,2565,2187,3081,3081,2187,3257,2293,2211,1201,3513,2211,1943,3055,2211,187,1479,2211,3433,643,2205,3533,2293,2221,829,3513,2221,1559,527,2221,3519,715,2215,3049,1265,2219,1187,737,2219,2563,1165,2219,2581,1131,2233,1785,2559,2235,2235,1079,2235,3457,835,2229,551,2189,2231,139,3513,2231,2937,59,2245,3011,1505,2255,2791,1161,2261,1155,887,2261,1155,1805,2265,1315,1229,2265,2521,1891,2265,1505,1139,2265,3199,3257,2265,1205,781,2263,1151,2795,2285,133,2763,2285,985,2743,2285,1449,1071,2285,3487,1151,2281,3429,3239,2295,3451,1543,2295,2287,717,2293,157,3411,2295,955,2281,2293,1173,2295,2293,1207,3337,2293,1205,2565,2293,1649,1419,2293,2531,2061,2293,2631,3001,2293,2661,3001,2293,2961,3001,2293,3153,3001,2293,3447,3001,2301,3175,299,2341,181,3513,2341,1343,1543,2341,2305,3513,2349,551,1365,2349,801,1021,2349,3021,3205,2349,3205,1483,2349,3345,839,2355,3049,545,2357,2561,1625,2357,3185,2281,2387,2099,715,2393,3519,1943,2395,299,2301,2395,1343,375,2407,549,3513,2407,617,3513,2407,721,675,2407,903,2833,2421,727,1597,2433,187,1145,2435,3185,3419,2471,205,3199,2443,2511,2293,2439,1597,771,2439,1653,299,2451,193,2293,2451,431,1563,2451,1229,2791,2451,1495,931,2451,45,2749,2451,2471,1199,2451,3393,887,2451,353,2565,2451,353,3533,2449,177,3001,2447,2739,3513,2449,2943,1155,2449,2943,2569,2457,3513,3147,2455,1155,2303,2455,1711,2543,2463,3445,3055,2489,1197,715,2991,1711,2565,2507,839,3519,2507,781,1145,2503,907,3513,2511,103,3513,2511,299,1711,2525,2239,3513,2523,189,553,2521,193,1515,2521,1823,1817,2521,1891,737,2521,1891,887,2521,1977,3487,2521,3483,2031,2521,3055,1229,2533,193,553,2531,1145,299,2543,1695,551,2547,2041,3377,2559,3125,2187,2559,289,1607,2559,727,3227,2559,3239,1607,2559,3377,591,2559,3377,2191,2569,1635,829,2569,3513,897,2569,3513,2835,2569,3513,2973,2569,3513,3577,2563,1559,1081,2563,1549,3519,2563,2569,3513,2563,2833,333,2563,3519,715,2563,1165,271,2563,1543,173,2563,1141,2509,2567,3051,3513,2567,1307,1437,2565,3205,2559,2565,3513,1183,2565,191,2565,2565,3205,3051,2565,3205,3415,2565,1161,851,2565,1863,3257,2583,2739,3513,2581,1559,527,2581,3423,2833,2581,1227,2031,2579,551,1515,2593,523,3513,2593,1137,375,2589,1003,3513,2589,1531,3513,2591,193,2511,2591,193,3383,2591,551,3383,2591,1419,97,2589,1505,441,2599,133,829,2599,1559,1677,2599,2029,293,2609,871,2833,2613,967,3513,2623,2293,1741,2631,1071,3475,2631,1635,933,2631,1785,899,2631,2065,3513,2631,2099,715,2629,2973,1179,2635,1343,1565,2643,551,1419,2643,2833,715,2651,1543,193,2651,1543,3247,2651,2791,1161,2651,2971,3377,2649,1067,2827,2649,1829,3397,2649,2923,1607,2647,1561,2943,2647,353,3533,2677,509,769,2685,1565,1565,2685,1943,1823,2685,3433,643,2689,511,1561,2689,3013,2293,2675,2491,1731,2709,551,2629,2717,2563,827,2723,3453,3513,2723,1179,3513,2725,2175,2647,2725,3519,2549,2733,551,1419,2735,2255,1151,2743,1633,179,2755,1653,829,2781,2099,2281,2779,3239,299,2791,1449,3171,2791,2281,3183,2791,2729,2507,2791,3023,551,2799,511,1503,2799,3367,2593,2799,3367,3397,2795,1229,2569,597,1711,717,2797,745,3513,2811,175,3513,2815,3513,1165,2831,3049,3415,2831,1145,1543,2825,933,3257,2825,3519,715,2849,537,2549,2849,857,507,2849,3239,1121,2847,2651,3513,2855,2855,3475,2869,647,3513,2867,3081,1201,2895,2893,2255,2895,2893,2559,2895,2893,3237,2899,839,1265,2905,379,3107,2905,2703,3513,2917,617,2565,2915,181,1531,2915,1069,1059,2915,2555,1193,2939,3107,933,2933,2545,1695,2935,2559,2281,2935,1161,551,3239,1481,3001,2943,931,965,2943,3447,3447,2965,1479,635,2965,1843,2187,2971,1407,241,2971,1407,951,2975,1565,1565,2969,1769,2809,2973,1541,2449,2973,1059,441,2973,819,3513,2971,1485,1505,2971,271,3423,2985,75,2281,2985,3153,2549,2985,3179,1811,2985,3107,949,2985,1565,1565,2983,727,847,2983,727,1141,2983,727,2631,2983,727,3311,2983,1237,2115,2983,3011,775,2981,79,3513,2981,1523,2115,2991,75,299,2991,103,3513,2991,299,1711,2991,1229,1559,2991,1543,2563,2991,1543,3203,3005,2355,2281,3005,3049,935,3005,3049,3397,2999,3257,661,2999,3257,2187,2999,3391,1499,3001,299,1113,3001,3049,729,3001,3049,737,3001,939,3513,3011,589,1559,3011,1337,1165,3011,2115,715,3011,2147,1741,3011,2935,271,3015,3205,2971,3015,169,1229,3013,3205,3423,3013,191,545,3013,551,1279,3021,3011,1079,3023,139,3513,3023,247,3513,3023,577,573,3023,647,3513,3023,839,2061,3023,981,3513,3023,3049,3055,3023,1133,3513,3023,1155,1127,3023,1229,1229,3023,1227,3519,3023,1633,179,3023,1949,717,3023,2187,3581,3023,2285,2583,3023,2293,717,3023,2305,3513,3023,2355,715,3023,2371,3513,3023,2591,591,3023,2677,509,3023,3023,3513,3023,3175,2293,1179,1287,3105,1179,3145,2935,1179,3415,2187,1179,3415,3519,1179,3501,3183,3021,1527,1527,3021,3205,2187,3029,751,271,3029,3533,2293,3041,2099,715,3051,3049,2933,3059,1101,1229,3059,1231,1231,3059,2995,3513,3081,879,577,3081,3157,2709,3081,3427,799,3081,441,851,3081,441,3105,3081,545,3249,3081,515,515,3077,3411,113,3077,1081,3029,3077,2543,1209,3099,3081,1311,3107,2985,353,3107,2981,99,3107,3023,77,3107,3129,1141,3107,3175,173,3107,3231,173,3115,1649,3409,3129,527,3513,3125,871,717,3129,3443,2981,3129,3443,3519,3129,529,3513,3129,1597,1173,3129,3519,715,3123,721,2717,3149,1247,717,3143,1231,2559,3143,1231,2709,3143,1231,3247,3147,191,1161,3147,579,2987,3147,1161,551,3153,589,1021,3153,2293,3001,3153,949,3513,3153,2457,3513,3153,2895,2893,3157,3423,299,3157,3021,3205,3169,831,3513,3163,957,3257,3163,1427,2293,3165,931,3513,3165,191,2565,3165,1741,3513,3179,1019,1077,3179,2677,1179,3179,3513,3227,3175,3513,3149,3175,3049,1265,3189,103,3513,3189,193,763,3183,443,3051,3185,591,591,3189,647,3513,3183,853,1197,3189,849,3155,3189,909,1597,3189,1113,715,3189,1561,717,3189,1565,781,3189,1559,3149,3183,1597,1131,3183,1597,2355,3185,1891,2559,3189,1943,1769,3189,2167,2849,3189,3407,3513,3185,935,3435,3183,1449,1443,3183,1823,1817,857,1449,3541,3185,2935,3391,3199,3389,717,3199,3257,1113,3199,3257,1155,3199,3257,2821,3193,1001,1269,3195,55,3513,3195,3011,3427,3203,169,2293,3203,1209,3001,3207,2115,715,3207,597,1237,3205,139,1483,3205,139,3183,3205,509,2187,3205,1139,571,3205,1483,299,3205,1769,717,3205,2559,353,3205,3219,257,3205,3219,2943,3205,3219,3051,3205,3367,2593,3205,903,2833,3221,2735,597,3219,193,3383,3219,551,3383,3227,3345,949,3231,551,2565,3231,771,487,3231,2371,3513,3231,2563,1055,3237,647,63,3239,1113,3397,3237,1609,173,3241,1685,2281,3239,3205,1483,3239,1829,3397,3247,1011,2945,3247,2293,3001,3247,3519,1505,3247,1565,1565,3247,2973,2293,3247,3447,1607,3257,2833,715,3271,847,717,3265,2833,715,3267,627,299,3267,627,1505,3267,2593,1505,3275,1127,1741,3275,1131,2177,3275,2029,3513,3287,871,2833,3285,3087,1505,3283,3433,1505,3305,1073,1073,3325,1565,1565,3331,1695,3155,3331,1695,3391,3341,3125,2187,3351,721,681,3351,1723,3519,3345,839,299,3345,839,1145,3345,1169,1741,3345,2913,3519,3345,3227,175,3345,3519,1145,3361,2753,3513,1891,645,1141,1891,1019,1141,1891,1187,1141,1891,1187,1483,1891,2849,3479,1891,3051,1483,1891,3425,3051,3367,2511,781,3367,3233,2565,3367,3231,2299,3367,635,1145,3367,635,1483,3367,635,3247,295,333,1269,295,855,2565,295,1559,2631,295,2059,715,3377,3519,3001,3389,523,1113,3461,1165,715,3385,2115,715,3385,3011,77,3385,3011,933,3385,3011,1145,3385,3011,2589,3385,3011,3427,3399,3081,193,3393,605,3187,3399,871,2833,3393,2531,3001,3393,3519,2981,3395,1113,715,3395,1695,3035,3395,1695,3155,3395,1695,3391,3383,1133,591,3507,1597,299,3411,851,551,3411,2561,551,3407,1559,2187,3419,1559,2631,3417,1559,2187,3419,21,3001,3415,589,1021,3415,951,1081,3415,1253,715,3429,3391,717,3427,193,963,3429,2561,1079,3429,2561,1189,3429,2561,1349,3429,2561,1741,3429,2561,3051,3423,1943,721,3423,295,3513,3423,1565,1565,3423,1559,589,3423,3051,3513,3427,1149,819,3427,1149,3227,3433,153,3397,3433,2939,3519,3433,1943,635,3433,3423,3175,3433,3423,3247,3435,3513,661,3435,3513,2785,353,613,3011,353,1125,3559,353,1187,1209,3433,1483,299,353,2261,2565,353,2703,1977,353,3153,1187,3447,2293,3001,3441,661,325,3457,855,1505,3457,855,1973,3457,887,597,3451,1311,1543,3455,1019,2823,3463,139,3513,3463,1231,717,3477,271,1607,3475,627,3441,3475,2675,151,3475,2919,3513,3477,3393,591,3487,1067,2843,3501,2179,715,3519,1801,3049,3517,829,3205,3517,855,717,3517,3049,319,3517,1559,375,3517,1559,577,3517,1559,1207,3517,2565,3205,3517,2809,715,3527,887,1143,3527,2593,1137,3527,2651,1543,3535,545,715,3535,963,299,3535,597,717,3535,3391,2229,3533,1769,2293,3551,1207,661,3555,1333,3513,3551,1335,1145,3551,1711,3519,3561,2099,3513,3579,2131,3519,3579,2457,3513,3577,2293,1155,3577,1197,131,693,537,133,3447,693,537,3015,2933,1,553,1419,553,1,553,1461,553,1,575,509,2651,1,721,107,2651,1,721,2431,2651,1,721,2507,2565,1,1019,2185,3001,1,1155,575,721,9,909,9,2957,1,1311,2677,2565,1,1311,2753,3001,1,1323,2471,3447,1,1415,181,2943,1,1415,721,2565,1,1415,2503,1719,1,1455,2725,2565,1,1485,2507,3015,693,1729,2885,789,693,2185,2709,1011,693,2563,2295,2673,693,2565,545,1769,693,2565,1705,2673,693,2565,2293,2375,1,2651,1653,1415,1,2845,2563,2565,1,2899,2775,3001,693,3185,2293,2375,693,3237,777,333,693,3237,2293,2375,19,1115,1145,1483,13,513,2579,1651,13,627,2579,689,19,781,1145,777,19,2507,2471,985,19,781,2191,777,19,2451,615,2647,19,2451,615,2973,17,2355,1283,299,15,1685,739,2281,15,2355,1011,2565,15,2559,2971,2649,15,2675,1011,907,15,2187,2881,2685,15,2559,2735,2187,29,193,535,319,29,295,2581,767,29,767,2581,1143,29,1449,1085,2521,29,2549,3429,375,29,2565,1483,375,29,2581,113,767,29,2849,3433,1227,29,3045,1635,3185,29,3203,3351,3357,29,3239,3189,3239,25,193,1227,79,25,193,1227,79,25,3049,3517,3185,25,1153,3081,177,25,2071,3085,3049,25,1153,3081,177,25,2969,1559,643,25,635,1769,3419,25,1161,3433,2355,25,2565,2281,2971,25,2657,2285,187,45,193,1313,3377,43,295,917,645,43,879,2581,3175,43,1173,2995,465,43,1353,2579,527,43,2265,2581,527,43,2265,2581,2733,43,2265,2579,527,43,3045,757,1483,43,3227,757,1133,43,3123,1139,2295,43,3425,1209,2291,45,193,1313,3377,45,1883,3189,2241,45,2623,635,3109,59,1193,1229,1785,59,1741,3379,1631,59,1829,2451,3287,59,2185,3513,577,59,59,1193,1193,59,721,551,1783,59,721,3351,1311,59,2439,1633,1811,2021,721,2467,2443,53,967,1247,2979,53,1747,3453,3377,53,2507,839,615,53,1069,3517,2695,57,1229,343,43,57,2913,2973,3145,59,375,67,1155,63,727,233,3143,63,727,2211,3375,63,727,2265,2507,63,727,3457,3143,63,907,1597,3177,63,2371,3077,3189,63,2371,3185,3077,63,3189,2265,3011,63,3189,3077,2565,67,403,305,985,67,1117,1237,1239,67,731,67,3433,67,1081,3419,3145,67,1335,2211,413,67,1909,305,777,67,2531,353,1163,67,2531,353,1163,67,2565,1559,771,67,2691,2211,2285,67,2969,1197,1141,67,2969,2565,375,67,2991,67,3383,67,3393,193,1111,67,3393,193,1847,67,3393,193,2295,67,3393,193,3183,67,3393,2211,1111,67,3433,67,731,65,3077,2311,1201,65,553,2397,3049,65,961,2455,1155,65,1265,3429,1169,65,1563,219,1081,65,3051,717,951,65,949,2281,2543,65,1169,781,1057,79,887,3049,2513,79,1209,545,1227,79,2569,1111,305,77,2511,613,617,77,3453,737,1943,75,193,1623,3241,75,1741,3429,1227,75,2511,1635,2991,75,2651,75,1607,75,2849,75,1597,75,2871,75,1227,75,3045,75,1227,75,3045,193,1227,75,2563,3285,3011,85,1081,2689,1563,85,2355,1481,1635,99,799,2099,715,99,3081,2359,347,99,3513,3423,2971,97,141,3241,677,181,991,3433,2355,181,1141,3283,2549,181,1483,683,3025,181,2971,2981,905,97,3013,1447,2299,97,2725,345,3203,97,2905,1227,3189,97,2905,3423,3049,97,3203,345,2725,95,1543,2581,1607,95,2915,3361,917,95,2175,2187,3107,95,3045,1227,765,95,3045,1227,1133,95,2649,1559,2099,95,1071,2147,1019,95,1483,3517,2695,95,1997,2969,545,2177,2443,1575,1711,2177,3189,1597,819,2177,3189,1597,931,107,1229,857,1685,107,1229,1191,3249,107,1229,3143,1097,107,2039,1435,1139,107,289,1237,887,107,887,759,2563,107,2559,3283,545,107,133,3429,2559,107,133,3429,3199,107,323,3055,885,107,413,847,2961,103,2311,3457,887,103,113,1227,1785,103,2293,3169,887,103,2293,3169,2919,103,545,717,3049,103,545,1165,3049,103,2371,173,3049,2105,727,2943,2549,2105,727,3209,931,2105,727,3579,2357,2105,1021,1085,3239,2105,1021,1085,3457,2105,1153,343,177,2105,1153,1237,29,2105,1153,3409,857,2105,1153,3423,177,2105,2507,519,1019,103,3319,1719,3081,103,3513,3423,2971,113,113,767,771,129,1335,1511,2791,129,2717,427,2265,129,3513,3147,717,133,1505,2185,935,133,2299,1505,1483,133,2581,1079,1181,133,2971,3455,2565,133,297,445,1021,133,297,445,1021,133,3143,1779,2641,133,993,2393,1559,133,1449,1785,3077,133,3111,99,141,131,851,2651,963,131,851,3517,3319,131,1711,1199,1069,131,1711,2471,635,131,1711,2471,1069,131,1711,2465,949,131,1769,2471,455,131,1803,2471,721,131,1803,2471,2821,131,3257,3081,1081,133,819,193,2187,131,907,2455,2875,131,2777,689,2675,133,2933,193,2187,131,1091,1047,3077,131,1635,1101,2299,131,455,2471,1769,131,1769,2471,455,131,3445,3517,3405,131,735,635,1187,131,983,1227,1483,131,1115,1227,3239,131,1131,1227,799,131,1131,2281,801,131,1329,1635,1207,131,1827,1227,3185,131,2563,1227,3091,131,3433,1227,2265,143,3223,3405,2673,143,513,1365,1943,143,2101,1197,1485,143,2101,2395,1485,143,3261,1201,1485,139,907,3185,295,141,2739,1483,181,139,3095,2969,2269,139,3185,3049,2565,153,731,589,1237,159,159,1943,1933,157,409,3183,851,157,1279,3183,851,169,169,1143,1143,177,1067,2285,3257,177,1191,577,2159,177,193,3107,2357,177,193,3227,1169,177,683,1169,941,177,3049,949,545,177,2939,1169,915,177,2935,3109,2357,177,2969,3107,2357,173,3049,193,103,173,2395,907,2693,187,3241,1511,3265,187,3265,1511,3241,187,3561,1511,3123,187,983,3265,3455,187,1559,1685,1733,187,3455,3265,2937,187,407,1139,805,187,805,1139,2693,187,805,3429,2827,187,805,417,2693,187,1139,131,801,187,1139,1173,801,187,1139,3319,801,187,1163,369,2651,187,1297,1733,1803,187,1297,1733,1803,187,1455,3189,905,181,2943,3257,1485,181,2943,2215,3425,187,3185,3227,2999,181,1943,3429,1719,185,3049,2211,1485,181,1507,771,3055,185,2849,3153,2491,195,2115,1227,131,193,53,3185,1685,193,271,1009,727,193,271,1009,1481,193,271,1465,2591,193,271,2511,2991,193,267,2543,1695,193,535,551,1483,191,661,265,717,193,829,1641,1707,193,1069,2981,3049,193,1085,1011,3185,193,1113,3429,305,193,1161,1209,3475,191,1161,3237,3045,193,1201,2981,3049,193,1201,193,1669,193,1231,193,213,193,1231,193,213,193,1227,1141,2927,193,1241,2981,3049,193,1241,3049,1145,193,1253,2393,727,193,1313,1227,1511,193,1313,1227,3165,193,1313,1387,677,193,1313,2555,1237,193,1313,2555,2591,193,1435,193,3077,193,1559,3237,577,193,1597,781,1677,193,1597,781,1677,193,1597,951,1181,193,1597,2543,2471,193,1597,2559,2471,193,1597,3049,2471,193,1635,143,1141,193,1635,1315,1227,193,1635,2673,2755,193,1817,3429,1019,193,1847,193,3393,193,1893,1227,689,193,2191,3081,907,193,2281,2545,1191,193,2281,2943,509,193,2511,193,1635,193,2533,3443,3175,193,2559,193,1329,193,3053,2355,2565,191,2565,2935,717,191,2565,3521,2935,193,2621,1463,2591,193,2925,905,1227,193,3081,143,799,193,3081,3023,1187,193,3081,143,799,193,3081,539,1741,193,3091,445,3049,193,3115,2651,2259,193,3181,2503,805,193,3331,1695,3155,193,3393,193,1341,193,3429,617,629,193,3429,735,1143,193,3429,1227,1485,193,3429,3517,1505,193,3425,193,2281,193,3517,1505,1483,193,3577,193,3081,193,735,2969,3155,193,1601,2439,721,193,3001,3049,3411,195,3315,435,1481,195,3315,435,1481,205,2299,1785,3377,215,1703,3049,1543,215,2299,3049,1543,215,181,3425,2209,209,847,3049,1059,209,847,3049,1187,209,2265,553,181,209,2593,553,181,209,3077,2355,2939,209,181,3425,2609,209,847,3425,2549,209,1687,3049,1187,209,1687,3049,1187,209,2265,553,181,209,3079,3049,1113,209,3233,827,1143,209,511,2187,465,253,447,193,2185,2549,323,1689,3231,2549,323,2371,3257,2549,1039,637,3477,2549,1111,637,3477,2549,2515,3429,3237,253,2973,501,3529,225,781,1597,2675,225,781,2675,1597,225,781,3145,1597,225,781,3197,1597,225,2025,3197,1597,225,2989,2985,1597,219,1081,65,1563,219,1265,65,1169,223,1599,363,1047,223,1607,2521,1891,233,465,3429,1141,233,465,3455,2355,233,3143,63,727,233,3203,1161,3109,233,985,1039,1559,229,2835,1597,2937,229,3529,1915,1145,243,801,725,1315,243,2187,3453,3203,243,2549,3049,2565,243,3429,963,2241,243,3581,2981,2829,241,401,1189,1161,241,409,2935,1227,241,3049,1597,2675,241,1165,2281,1129,241,1607,1173,2565,241,1729,781,3049,241,1803,1237,3079,241,3147,781,3049,241,3377,3209,761,247,1769,1227,1523,257,2723,1465,3031,3341,2549,2491,2355,257,1143,1019,2563,257,2905,3545,801,257,2905,3545,1805,257,2969,3241,719,265,3237,1229,1059,265,3143,935,3049,271,627,347,1623,271,771,751,333,271,2215,2355,3185,271,2451,501,2647,271,3429,1009,1481,275,1483,193,693,275,1071,2647,1997,291,2205,1635,1059,285,3091,3371,1881,289,1227,1793,3045,289,441,1543,2471,289,2511,3181,2991,289,1227,1793,3045,295,2815,1609,2563,295,2815,3429,1311,295,1047,131,3109,295,1891,1465,3257,297,3049,2969,15,297,3049,2969,3545,297,717,193,1021,301,2795,3177,3175,311,1201,931,907,3389,875,1803,821,3389,1077,2985,3077,3389,1543,1803,821,3389,1543,2985,821,3389,1597,1311,3425,3389,2559,1803,855,305,3153,531,777,305,3379,961,591,305,3379,961,905,3389,2529,1803,2529,311,303,1849,1849,319,3283,637,1503,317,2089,1415,2207,317,2185,747,2061,317,2637,781,2185,317,2207,1415,3149,315,1201,1597,3445,329,1803,2241,347,323,1315,2675,1141,323,1793,353,1607,323,3199,193,1253,323,3199,2935,1253,323,3199,3379,1237,323,3237,1635,3145,323,441,1429,597,323,1483,1227,1523,323,225,1803,3053,323,1125,613,3053,325,781,2567,679,325,1133,2219,1187,325,2565,1635,2089,325,2631,1131,1881,339,553,677,887,325,1155,3231,2969,325,2779,209,3189,339,25,1227,397,333,1139,2651,991,333,2211,1463,2915,333,755,3185,2265,333,2937,3049,3347,333,3051,717,1419,333,3265,3049,1881,567,2491,2725,1483,333,1101,1235,1607,337,1183,635,1705,337,3065,2647,1997,337,3143,635,2471,335,417,1635,1207,339,1201,3453,1507,339,3045,717,475,349,1485,2021,2905,343,1229,1531,3517,343,343,2969,3049,343,2371,1379,1229,343,43,57,1229,343,1229,3429,1141,343,1481,247,985,347,77,635,2563,347,719,3077,209,347,719,3253,1147,347,1131,2281,2549,347,1635,2529,669,347,2939,731,3077,347,347,193,3081,347,3237,1365,2973,345,2549,1597,2779,345,2553,1141,3541,359,931,731,1969,359,931,1969,727,359,931,3517,1523,359,627,993,1943,359,1609,3429,2261,359,2375,511,3123,353,3239,3429,3105,357,1563,1183,1081,363,295,1229,1111,363,295,1229,3477,363,295,2777,1229,363,1047,223,1599,363,1703,193,3371,363,295,2777,1229,379,1169,2395,3011,379,1785,193,295,379,1793,1079,247,379,2835,1597,1741,379,1597,781,1677,379,1597,2835,1181,373,1227,193,3045,373,1227,879,3045,377,1227,3429,1183,377,2281,661,2187,377,2281,3015,661,375,635,1667,3419,393,907,2821,2559,393,1165,57,1077,391,2563,677,1483,403,1559,193,2985,403,2821,3257,3425,397,781,2507,1133,397,2543,693,647,397,1165,2061,1483,401,3257,2969,1943,407,2991,1943,635,413,1237,2827,2549,423,2733,553,2159,423,1685,2281,447,423,1685,2281,2989,417,3451,527,2651,423,1227,3429,2191,423,1227,3429,2827,417,2581,2811,721,417,1943,2499,1229,431,781,777,2355,431,1081,2285,2563,431,1081,2285,3257,431,1077,2285,2563,431,1427,2285,1235,431,1597,2285,2623,431,2285,133,725,431,2291,2285,1419,431,2471,1511,2355,431,2529,2285,3197,431,2559,2285,2491,431,2901,2285,285,431,3197,2285,2529,427,2587,2111,1235,427,803,347,1635,427,1235,1341,3197,435,2673,1253,2971,437,1143,1501,907,445,297,133,1021,445,2189,133,1635,443,443,193,3081,443,3045,2241,907,451,1161,2393,1559,451,1207,1227,2355,451,1373,731,1635,451,1543,2393,1559,451,1559,2925,739,451,2265,731,1635,451,2503,2393,1559,451,2503,2427,1559,451,2673,1227,1163,451,2265,3393,3441,465,465,1733,337,465,1201,1187,3077,477,2299,1579,3077,477,745,3257,1139,485,1353,1415,3079,485,1353,3393,803,485,1353,3407,3079,485,1427,3393,3239,485,1703,3393,3169,485,3079,1415,1353,485,3393,1009,2215,485,125,627,2529,485,627,125,2529,481,481,271,271,495,1229,3177,2593,495,3105,1231,3241,491,193,1827,3049,491,241,193,1559,491,1145,3457,1465,491,2809,3287,2581,505,1315,513,1049,501,1133,1515,3247,501,1635,193,2185,2715,2323,2427,2455,509,513,1849,1849,513,887,3581,3189,513,1155,1187,2533,513,1635,2631,897,513,1653,1065,3147,513,1713,1067,1593,511,181,3513,173,513,193,1559,3055,511,319,3187,3283,511,349,511,1021,511,375,1635,1785,511,375,3507,1785,511,375,3507,3147,511,511,1635,1635,511,717,2969,535,511,731,1779,1625,511,801,2109,2109,511,991,2709,2281,511,1161,1729,1559,511,1779,193,2323,511,1779,193,2323,511,1829,193,2649,511,2189,511,1635,511,2355,3005,2551,511,2487,781,2291,515,2983,2427,1377,511,3241,2049,2885,519,1943,2071,643,519,2563,2581,767,519,2371,519,635,531,777,305,3153,531,2221,2099,1653,531,2647,1067,1173,531,2647,1067,1229,531,2647,2119,3197,527,2563,3429,377,529,515,3045,469,529,2455,1121,1209,529,2455,1121,3025,527,2985,3429,2937,527,3433,1803,333,527,1669,193,1209,527,3487,1953,1787,527,3487,2265,1785,2733,187,3257,2187,2733,935,3015,2261,2733,935,3407,1201,2733,935,3407,3189,2733,1161,3577,857,2733,1201,909,1507,2733,1337,2643,3561,2733,2531,3577,3187,2733,2651,2141,3451,2733,2913,2891,2581,2733,3051,527,63,2733,3051,1783,1505,2733,3427,3429,1165,539,3049,113,2471,533,2967,2561,3431,537,275,2933,1997,549,879,1133,3433,549,943,3107,3207,549,2991,1559,2355,541,3181,2287,91,545,103,2393,1559,545,125,981,717,547,343,2725,693,545,343,2725,693,545,513,3189,2021,545,513,3189,2899,545,913,1201,3437,547,935,1635,2071,547,931,1635,2071,545,965,2933,3199,545,3049,1883,2569,545,295,2709,1545,545,2983,3015,3203,545,3095,3429,1139,545,3095,3429,1351,545,3283,831,857,547,781,3197,3107,547,1239,3115,3261,547,2187,801,3393,547,2355,1227,3393,545,3249,2371,1803,553,181,1873,3005,553,193,295,2455,553,1653,2529,3541,553,2555,1111,305,553,2935,257,3231,553,3045,3205,2581,553,181,209,2593,553,181,1873,3003,553,1059,1559,943,553,2209,3049,93,551,1481,187,1485,571,1047,1229,1607,571,1197,3227,827,565,1803,2281,3237,571,2723,65,1169,571,2733,65,1169,569,271,1139,2589,569,271,2589,1523,569,1505,2185,935,567,1803,347,1343,577,297,2209,3411,577,297,2209,3507,581,1703,3393,3169,581,581,515,515,581,1597,3143,3457,581,1597,3143,3457,575,2989,547,2985,579,2649,1669,2559,579,2649,1669,2559,579,3049,1483,1769,579,3049,1783,1769,579,1187,1483,3049,579,1187,1483,3049,579,1187,1483,3049,579,2549,1483,3049,579,3453,3437,1559,577,1229,2791,295,577,2923,1169,3011,577,131,1483,2651,593,1201,1785,1507,593,2525,2529,113,593,185,193,2159,593,547,827,1401,593,1419,185,2291,593,2175,1559,1481,593,2211,547,1401,593,3189,545,2509,589,627,1067,1593,589,1021,2015,1019,589,1559,3055,2447,589,3385,781,3049,601,3551,465,2759,601,3551,465,2989,601,897,3015,3455,601,2281,1093,1229,601,3203,131,1285,601,3241,2623,1495,597,715,1435,539,597,715,1435,539,609,527,79,1231,609,535,781,1559,609,535,781,1559,609,1181,423,3065,605,1239,353,951,605,1239,353,951,615,339,3231,721,615,339,3239,2563,615,1817,2795,1019,615,2529,801,2675,615,2529,2675,801,611,2833,1529,1529,613,1597,3535,3003,619,1121,619,2159,619,1121,2455,529,623,1121,2569,2159,619,1393,2065,1153,623,1393,2187,1153,623,1393,3031,1153,619,2451,1415,2647,623,2451,1411,2647,619,2451,2925,2647,623,3541,97,1241,631,187,2985,1559,631,215,2985,393,631,317,2985,3471,631,413,3025,2977,625,743,1167,61,631,751,2211,1141,631,943,2985,2925,631,1155,2985,2533,631,1505,2985,2529,631,1541,2985,1635,631,1559,2985,1635,631,1559,2985,2511,631,1785,2985,2845,631,1827,3429,3077,631,1947,2985,1917,631,2565,305,3189,631,2977,3185,1741,631,2281,2991,855,631,3345,2991,2281,627,3393,553,1227,627,3079,485,125,627,2529,485,1087,627,3183,3091,1021,627,3183,3091,851,639,3237,3091,799,639,647,1495,295,635,427,1019,2529,635,717,3453,177,635,717,3453,3495,635,923,3419,2185,635,1145,3157,897,635,1145,3535,2303,637,1229,67,2115,635,1229,2623,831,637,1229,3105,2565,637,1229,3429,1145,635,1483,3419,3143,637,1503,319,3283,635,1707,1361,1483,635,1705,3419,3143,635,2471,3419,3143,635,2623,45,3109,635,2631,1129,1531,637,2701,1019,777,635,3045,3147,717,635,3123,75,347,635,3145,3419,751,635,3145,3419,1117,635,3145,3419,3143,637,3393,2529,3049,637,3477,2549,1039,635,803,1851,715,635,353,3237,1769,643,545,3429,375,643,653,3479,3049,643,3049,2185,545,643,3049,2185,2565,643,2101,2985,1205,643,3229,2211,2285,643,193,2533,2581,643,2593,553,1161,647,3045,519,1227,647,3105,1011,907,647,3391,3429,2939,645,1249,2775,3109,645,1711,1737,131,645,1711,3517,2579,645,2985,751,2939,677,553,1505,1483,677,1143,3187,2553,677,295,3029,511,645,3433,1803,3393,657,1021,193,2913,655,1161,181,2563,653,727,2943,2549,651,1017,3083,797,653,1253,2393,1559,653,1429,305,95,657,2577,3087,3239,653,3077,3237,2753,653,3077,3429,357,653,3077,3429,2103,653,301,195,655,653,301,3087,655,661,325,3437,3045,661,509,2393,1559,661,1229,539,857,661,1943,2733,2249,661,1943,907,1101,669,3105,1465,887,669,1279,1685,2471,669,3105,1465,887,669,3541,665,3065,669,1141,1101,931,669,2791,2925,3049,683,209,2503,907,683,349,683,3367,683,905,3429,2285,683,1343,693,2569,683,1343,3011,2551,683,1445,683,551,683,1829,3055,89,683,2205,2503,907,683,2393,1943,1685,683,2565,3429,2285,683,3143,2641,2269,683,3287,683,1829,683,3561,683,2531,677,2355,2709,1011,681,3189,511,1177,693,1201,1907,3193,685,1455,839,3447,687,687,2515,2515,687,3049,3129,193,687,2903,3455,2565,689,2917,2735,2985,2971,193,2291,2503,2971,2971,451,655,689,1141,3389,3391,2971,1241,2991,1559,2971,3519,677,3457,2971,3559,2219,1229,689,2123,139,3177,689,2123,3285,545,689,2123,3283,545,689,2123,3409,1139,711,193,747,3353,711,2939,173,3049,717,1977,2261,1155,721,2397,1803,2325,717,2635,3429,1891,719,2563,59,3077,719,2589,2933,1997,719,3157,1079,1559,727,655,3045,295,731,1011,2569,1543,731,1165,2777,799,731,1719,1191,797,731,1719,1191,1131,731,1719,3407,1389,731,1719,3407,1635,731,1969,359,931,727,1969,403,935,731,2355,2549,3053,731,2511,359,931,731,2511,3427,931,727,2851,347,1131,731,2975,2281,1481,731,3001,193,1543,727,3197,2211,1265,727,3221,359,935,727,3423,403,935,727,3427,3517,1523,729,193,693,947,729,1155,131,2565,729,1229,2543,3411,729,1623,295,3475,741,1315,547,1227,741,295,547,647,735,2593,839,2393,739,887,3517,3053,739,1161,3429,1141,739,1209,3049,2299,741,1499,2969,2259,739,2179,951,3411,739,2281,3457,1143,739,2281,801,373,739,2281,801,3045,739,2281,2515,2099,739,2737,1311,2061,739,113,305,3247,737,717,193,1179,737,3143,3427,1163,737,1329,1229,1837,737,1837,1229,2953,737,1837,1229,2953,737,1943,2845,897,737,2283,2393,241,737,3209,2293,539,751,271,771,2985,751,491,2915,353,751,1545,3247,931,751,3143,1239,3049,751,3415,193,693,745,3045,2531,3049,747,737,1559,435,747,1653,1059,2061,747,1943,951,1653,747,2101,3029,347,747,2101,3193,347,747,2349,739,3205,761,655,1559,295,761,851,1559,531,761,1169,2589,1145,761,1419,1041,1131,761,1559,655,295,761,2623,1561,3257,761,767,3429,209,761,767,3429,1893,761,767,3429,3013,759,2563,181,3189,761,655,1559,295,755,1653,2265,2281,755,2835,2051,721,755,755,3185,3185,759,3183,3389,2985,757,1197,3045,2645,757,1197,3045,3107,767,177,57,1343,767,771,1751,1751,771,781,2103,1559,771,1009,193,271,771,1081,799,1563,771,1081,3261,1563,767,1863,3429,2565,767,2845,193,2393,781,1145,3077,907,781,225,1597,2675,781,315,1461,3049,781,343,241,1733,781,343,589,1247,781,343,3265,1247,781,3049,241,451,781,3049,241,1729,781,3049,241,3147,781,3049,589,315,781,3049,589,2465,781,3049,589,3385,781,3049,851,3147,781,3049,1461,1483,781,3049,2631,2511,781,3049,3189,2569,781,3049,3189,2565,781,3049,3241,2447,781,1247,219,3265,781,1559,609,535,781,1559,3265,2447,781,2265,3257,1183,781,2845,2355,2259,781,3207,805,3149,781,3265,3257,1597,781,3451,241,1597,781,3521,437,3261,781,2191,3195,3519,781,1131,1495,1891,781,731,3267,1559,781,1677,193,1597,781,1677,131,1597,781,379,2299,1559,781,2507,3187,1237,781,3169,3111,103,781,473,3187,1139,781,473,3187,1237,775,299,831,1803,775,299,3227,2981,775,299,3577,1455,775,299,3577,2291,775,299,3577,2981,777,1585,1575,2311,777,1733,1613,687,777,3197,1229,373,777,887,193,693,777,1543,333,1179,789,1719,2763,3447,2103,1139,2725,1111,2103,1139,2725,1419,2103,1139,3153,1111,2103,2291,2725,1419,2103,2927,2725,1419,2103,3437,801,2725,2103,3437,3319,2725,805,2103,1515,241,805,2579,3429,2641,799,717,2565,2791,799,2939,1227,1397,799,3077,717,951,799,3077,717,2291,799,797,2811,2811,799,1943,333,1653,799,481,1559,531,799,943,1641,3207,799,943,1641,3207,797,937,3255,1195,799,2099,1511,241,799,2559,1561,1141,799,2559,2241,3013,799,2559,2241,3013,799,2583,1455,2529,799,907,3015,3205,799,1011,1633,1137,799,1113,2623,3081,799,2703,3195,3519,803,103,689,1329,803,103,689,1329,803,3045,2187,3107,803,2581,1227,801,803,2581,2811,721,801,3429,631,1559,801,1973,2205,2295,801,2357,1719,1445,801,2673,3429,1463,801,3045,1227,1133,801,3353,1463,1463,801,805,1635,1685,801,961,1173,177,801,2515,511,907,801,2515,1237,907,801,2515,3087,907,801,3237,431,2285,801,3283,2973,319,815,1653,2531,3001,821,305,1093,519,821,305,1093,3051,821,689,3049,2503,821,717,875,3379,821,3049,451,2503,821,3049,2211,2503,821,3049,2933,2503,821,3049,3517,3045,821,2293,3185,597,821,2927,3081,1419,821,2999,3185,597,821,3239,821,3049,821,3379,3185,597,831,377,2991,1559,831,767,2689,2563,831,2693,1559,3177,831,2835,2369,2511,829,1227,3429,19,831,333,3429,1169,827,481,1483,2709,827,657,1401,1881,827,801,3429,907,827,831,1205,1205,827,827,3185,3185,827,857,3285,1139,831,1169,1785,3173,827,1205,1483,2709,827,1769,737,3185,827,2775,2569,1353,827,3025,131,2371,839,3415,193,693,839,3423,193,693,839,1079,187,1479,839,2835,3319,579,847,689,3049,3265,847,721,805,2281,847,847,3051,3055,847,2259,3185,2721,847,2507,1207,3049,847,3185,181,3265,847,3199,1413,51,847,295,3077,1365,843,319,1785,1653,843,427,737,2529,843,427,2185,2529,847,1503,1199,3077,847,1503,1199,3077,847,1503,1891,2521,847,1503,2943,3077,847,3453,3429,1183,857,857,515,509,857,3091,2187,2061,857,3203,2973,3145,851,1227,451,3045,851,1227,615,3045,851,1227,2845,3045,851,1227,2933,3045,851,1737,1499,2581,851,3045,3185,3049,851,3045,139,1227,857,857,193,1811,857,857,193,2849,855,1237,1609,2623,853,111,631,2985,853,111,2205,333,853,3049,2185,2565,853,3049,2185,3425,853,1227,853,2935,853,2935,2185,3455,853,3231,2211,2285,853,3231,2709,1011,871,1495,3457,521,867,907,2191,2943,879,1481,991,2283,879,1481,991,2283,875,519,827,55,875,1197,3189,831,879,1427,2355,1207,879,1543,1769,1011,875,1769,821,3051,879,1827,2175,2589,875,2175,1827,1197,879,2175,1827,2591,879,2175,1827,3437,875,3231,2545,3397,887,3393,549,1197,887,3415,193,693,887,3457,2825,1011,887,181,285,3185,887,333,3049,1671,887,333,1769,1227,887,2427,2285,2507,887,2689,2549,2867,887,333,1641,577,887,333,1641,577,887,963,3411,2311,887,3045,689,1329,887,3045,2935,2511,887,3049,2791,725,887,2779,1483,3049,887,3517,759,181,887,3049,2791,725,885,2579,717,3009,883,3429,157,827,883,3241,2733,935,887,193,3205,2281,883,511,3237,2281,887,963,3237,2281,899,3045,635,1181,899,3045,635,1181,897,521,1449,2591,897,593,2101,901,897,689,1229,2685,897,3049,1435,3045,897,3045,897,3049,897,3087,1059,931,897,3107,1531,2835,897,3107,2085,2835,895,3025,1019,2823,909,1769,827,3239,909,643,935,915,909,3049,1143,3185,909,3049,3189,3185,909,1609,2939,3049,909,3175,2543,2355,907,597,193,2733,907,597,531,2733,907,907,1843,1843,907,3257,2185,1769,1067,1623,2881,3313,1067,2395,3129,2317,905,577,353,3227,905,1141,353,3147,905,1227,193,2187,905,3207,219,3049,905,2293,3447,1435,917,855,3015,1495,917,2587,577,1635,917,515,77,717,909,909,3491,577,915,1161,3003,2943,915,1495,3003,347,913,935,2281,2291,927,2101,3029,1779,935,1711,1635,2615,935,299,17,2355,935,233,1445,2591,935,299,2393,2981,935,3427,2543,3049,2917,721,717,3021,2917,721,3189,3021,931,635,2623,1575,931,3079,2675,323,931,3079,2675,803,931,3079,2675,1047,931,1237,547,2569,931,1253,3189,2563,935,1609,545,3185,935,1609,545,3425,931,2507,519,1483,943,829,2651,1543,941,1541,2449,1253,941,2101,2293,3239,941,2943,3005,2551,941,3433,181,2583,951,871,1231,579,951,1653,747,1943,951,3415,2285,2581,951,3415,2581,2285,951,3415,2581,2285,951,3415,2581,2285,951,1181,193,1597,951,3049,1239,193,951,3049,1239,3427,951,2281,2969,645,951,3095,1239,2529,951,353,1239,605,951,3209,2933,3077,951,3185,2185,3049,951,3185,2185,3049,951,2971,737,2565,949,2567,2543,281,949,3239,1141,1507,947,1803,3087,3045,947,3087,831,2545,947,3087,3045,803,947,3045,3087,2545,947,1229,1183,1173,947,2529,1427,485,947,2529,3189,3429,957,917,1559,2631,965,3049,3239,553,965,2587,577,1635,965,3107,1483,3367,963,639,1483,1365,963,935,3369,1169,963,2845,511,1253,963,2985,63,1241,991,887,1239,3419,991,895,99,3081,991,897,229,1139,991,991,1065,1073,991,1067,193,1769,991,1067,2185,441,991,1067,2185,441,991,1121,193,2265,991,3107,2085,2355,991,3107,3117,2355,991,3107,3117,2355,991,879,2349,3267,991,879,2591,3267,991,1117,875,2323,991,2685,1635,2159,993,1559,1155,103,993,1559,1155,805,993,1559,1155,2779,993,1559,1155,3435,993,1559,1155,103,993,1559,1193,3435,993,1559,1671,1741,993,1559,2197,103,993,1559,2197,3189,993,1559,3425,3435,993,1943,359,627,993,1943,359,2975,993,1943,2443,627,993,3107,3143,319,993,53,2935,1997,3049,177,193,3407,3049,193,451,1205,3049,193,719,963,3049,193,801,3143,3049,193,897,1019,3049,193,1609,2939,3049,193,2555,3189,3049,193,3227,1205,3049,193,3237,751,3049,193,2393,761,3049,229,3219,2533,3049,333,3237,2651,3049,627,3577,2961,3049,907,3425,1201,3049,1009,2961,2187,3049,1019,2295,2825,3049,1143,3231,347,3049,1165,1661,2231,3049,1173,1227,1803,3049,1739,1483,671,3049,2427,897,3425,3049,2427,2969,2565,3049,2471,455,455,3049,2471,455,455,3049,2569,3535,907,3049,2569,3535,2387,3049,2569,627,3433,3049,2651,3577,363,3049,2651,3577,3013,3049,2651,3577,3185,3049,2825,897,2985,3049,2825,897,3425,3049,2825,1873,2015,3049,2989,1011,3185,3049,3003,1181,3051,3049,3003,1181,3051,3049,3015,913,2029,3049,3185,3429,1827,3049,3231,3237,1483,3049,3251,2559,847,3049,3251,3517,721,3049,3265,1559,2631,3049,3411,193,3001,3049,3429,3231,3021,3049,3453,3577,2961,3049,3507,3143,2265,3049,3529,2969,613,1009,827,95,2293,1011,349,1431,3577,1011,511,2983,887,1011,531,761,2675,1011,847,2971,3251,1011,3049,3023,1113,1013,3049,3023,1113,1011,1229,2739,107,1011,1793,2503,653,1011,2185,3397,679,1011,2471,3429,2845,1013,2503,2971,689,1011,2503,1455,2569,1011,2559,3429,553,1011,2565,3429,2845,1011,2933,2355,2569,1011,2933,2565,657,1011,2945,1253,3183,1011,2945,3319,3239,1013,3185,2971,1445,1011,3185,2971,1445,1011,3221,635,1035,1011,3417,3187,2989,1011,3517,2933,3429,1009,991,2775,1145,1011,1543,2393,2507,1009,2753,511,1353,1009,2753,511,1353,1019,3525,1495,1039,1019,3143,3257,2471,1019,379,799,1559,1019,1503,3425,3183,1019,1635,985,831,1019,2265,3257,1635,1019,3029,3257,1635,1021,2221,2563,527,1019,589,1021,2589,1019,739,3205,665,1021,1021,3425,887,1021,1021,3425,943,1021,727,1145,2099,1021,727,2661,3521,1021,3049,1145,2317,1021,1769,1229,847,1027,193,1565,2285,1027,909,1581,631,1043,977,719,1169,1041,711,1429,2513,1039,3049,1883,2569,1039,3049,2969,1141,1039,3049,3423,3483,1039,3049,3423,3535,1041,1131,761,3287,1041,1315,95,1499,1041,2219,2973,677,1041,2219,3205,677,1039,2891,545,317,1039,2891,545,3471,1041,2969,1141,527,1041,3159,761,1131,1041,3287,761,1131,1041,3419,95,801,1041,3419,1315,1499,1041,3419,1315,3185,1039,2563,1505,2593,1047,1171,781,1559,1047,193,1477,571,1047,551,731,3519,1047,803,931,3079,1047,2553,1141,3541,1047,209,511,1641,1047,209,511,1641,1047,1595,1511,727,1047,2631,1039,1559,1047,639,1663,577,1047,1161,3237,827,1047,1719,379,2101,1047,2115,1237,3391,1047,3189,3241,2509,1047,3387,1559,1881,1059,1197,1545,3077,1059,1197,3429,3077,1059,1419,3429,3077,1059,2189,3429,3077,1059,445,181,133,1059,553,3283,2971,1059,907,181,1201,1059,1145,181,731,1059,1201,181,907,1059,2935,2985,643,1073,193,1143,2985,1073,1419,1021,2291,1073,1595,1021,3425,1073,1943,1073,1653,1073,1943,3577,1653,1073,2791,3239,577,1073,2791,3165,577,1073,3169,1021,1561,1067,1479,2937,51,1067,2281,847,3077,1067,2281,1719,2375,1067,2281,1719,2375,1067,2281,1719,2375,1067,2649,2581,2285,1067,3049,1615,2933,1067,2651,1615,1505,1067,3519,1415,271,1067,1593,3189,3155,1067,1741,1231,3049,1067,1485,1067,2845,1067,2843,3189,2563,1071,193,1575,3049,1071,635,1575,3419,1071,1635,2147,403,1071,1641,1575,2759,1069,187,2827,413,1069,1183,1069,3105,1069,2933,3199,963,1069,2593,193,3079,1081,193,1477,571,1081,465,1199,473,1081,1047,1563,1607,1081,1081,295,3513,1081,1193,1563,2565,1081,1193,1563,1785,1081,1193,1563,2565,1081,1193,1563,3011,1081,1769,1563,25,1081,1769,1563,1705,1081,2289,1563,1785,1081,2643,1563,2643,1081,2791,1229,577,1081,473,1199,465,1081,473,1199,1237,1081,3399,1563,3147,1081,3399,1563,3197,1079,3189,193,719,1079,3447,857,1145,1079,2815,1021,1483,1077,2975,2285,3091,1077,2975,2285,3091,1077,2975,2507,2285,1077,3055,2285,3257,1077,193,1145,1565,1079,2933,2065,3207,1079,3025,2933,1231,1079,575,1131,2913,1079,2529,3507,3541,1079,1485,229,1231,1085,209,197,3239,1085,3391,949,2729,1111,295,2515,2187,1085,1827,3189,1725,1087,2509,2933,1349,1097,1073,2309,3257,1093,1829,3429,1183,1101,727,417,2795,1101,727,717,347,1101,731,519,103,1101,887,1229,1595,1101,931,241,799,1101,931,241,1609,1101,931,3177,799,1101,1685,3129,2833,1117,193,1565,623,1117,189,1565,2285,1117,3045,2455,3185,1117,1009,1635,3427,1117,3429,1141,2291,1111,295,1229,3477,1111,831,1227,2569,1115,963,3517,3321,1115,1155,2593,1829,1115,3447,2933,679,1113,1131,887,3049,1113,1597,887,3049,1113,1677,2103,2471,1113,553,895,3049,1125,613,323,3053,1125,1205,353,1769,1125,1205,353,1783,1125,1729,193,3053,1125,2835,3271,1851,1121,1623,2881,3313,1121,1121,689,689,1121,2323,3189,2779,1121,2631,1789,3237,1121,193,3507,2779,1121,761,529,1635,1121,761,529,2455,1121,761,2543,2455,1121,1011,2159,2455,1121,1209,529,1635,1121,1209,2159,1635,1121,2455,2543,677,1121,2923,529,1635,1121,3025,529,2455,1121,3025,2159,2455,1131,2323,2311,2651,1131,2355,721,1803,1129,187,2559,2881,1133,879,1559,3435,1133,879,2631,3433,1133,1139,1133,1515,1133,2525,1133,1515,1127,715,189,2575,1131,1113,887,3049,1131,1597,511,3049,1131,1597,887,3049,1131,1265,887,319,1131,1579,2929,2591,1131,193,531,3049,1131,799,3015,3189,1131,721,3021,3205,1131,2295,2281,2549,1145,1139,3437,1559,1145,2029,1687,1785,1145,2563,2733,2651,1145,1479,909,1603,1145,1479,917,1415,1145,353,553,2455,1145,1343,1943,1059,1145,2099,857,515,1145,2099,1021,727,1145,2303,193,1559,1145,2559,687,635,1145,2569,1943,451,1145,3419,687,635,1145,113,2281,3247,1145,285,1703,907,1145,553,1465,887,1145,553,1465,2355,1145,553,1465,2503,1145,1059,1559,943,1145,1201,1463,3239,1145,1465,1145,1201,1145,1597,2933,187,1145,1891,1465,2691,1145,2371,1465,1229,1145,2371,1465,2691,1145,2371,1465,3257,1145,2563,1465,2371,1145,2675,1465,1227,1145,2691,1465,3257,1145,3081,333,1969,1145,3457,1465,491,1145,347,3429,3393,1145,113,589,1021,1145,3199,353,3545,1145,3425,717,1785,1145,1559,2197,1311,1145,1559,3185,1311,1145,2281,3015,1141,1145,3197,2281,2689,1145,181,2815,1183,1139,943,2111,2281,1139,2355,2791,3011,1137,1137,1675,1675,1139,3051,3429,3577,1139,375,451,1373,1139,887,1011,2569,1139,887,1011,3185,1139,887,1011,1483,1139,3207,601,1891,1139,1207,1559,1891,1139,1559,3221,1197,1139,1559,3221,2867,1139,1661,1095,1227,1139,3175,333,2281,1139,3175,2933,2281,1139,1943,1461,2875,1139,241,3409,1365,1143,443,2451,741,1143,2189,1143,1635,1143,1703,1565,3147,1143,3427,1973,1803,1141,379,2969,1817,1141,635,801,209,1141,887,3049,781,1141,887,3049,2513,1141,887,1505,3559,1141,3049,1607,3185,1141,3049,3143,2821,1141,2969,803,3429,1141,3119,3049,2513,1141,839,2355,1623,1143,1143,3189,2743,1141,2565,1227,2355,1141,2927,193,1227,1141,3051,3239,2259,1145,781,1439,3257,1145,3257,943,781,1155,2565,1955,2299,1155,3455,3049,1543,1155,103,993,1559,1155,295,635,797,1155,333,3175,1227,1155,545,455,2375,1155,545,3437,1635,1155,1143,1763,3541,1155,1143,2355,3541,1155,1463,2211,1201,1155,2969,527,2563,1155,2969,527,2563,1155,2969,635,377,1155,3143,2503,3049,1155,3143,3185,3049,1149,1181,2891,3029,1153,931,2791,2991,1151,2265,1227,2587,1151,1165,1145,909,1165,3561,181,2529,1165,3193,1601,1641,1165,193,2375,727,1161,193,2375,2985,1161,3001,257,379,1161,1193,2871,1485,1165,1783,909,1193,1165,99,173,375,1165,1155,2285,2631,1165,2583,173,375,1163,193,3433,1485,1163,731,2105,1021,1163,727,645,1711,1163,1187,1515,535,1163,1635,1067,1481,1163,1769,687,3165,1163,2241,1515,535,1163,2651,2591,1733,1161,527,2281,689,1161,527,2281,3025,1161,777,271,3411,1161,777,1227,3555,1161,1145,717,3049,1161,1617,2281,1145,1161,1883,193,1227,1161,2187,3241,2355,1161,2563,3429,1143,1161,2649,193,1227,3001,2675,95,2179,1161,2721,3025,3045,1161,193,1313,3377,1161,3419,2393,1559,1173,993,305,3529,1173,1019,3049,577,1173,1559,2371,2991,1173,113,2281,209,1173,113,2281,1483,2221,181,3429,1073,2221,181,3429,3453,1173,501,1227,501,1173,677,909,3241,1173,887,3393,3559,1173,1145,1227,1145,1173,1145,1227,1141,1173,1141,1227,1141,1169,1711,3231,1169,1173,2293,909,3241,1173,2791,1227,577,1169,3011,3429,2187,1169,3239,1503,209,1169,3239,1503,209,1173,1229,1131,2387,1173,1229,1131,2387,1171,3041,3081,1803,1169,113,1559,1785,1169,851,3187,2281,3009,3169,3511,923,1183,781,181,2673,1183,347,3193,1997,1183,2535,3193,3183,1183,2721,3193,3185,1183,765,947,3393,1183,43,2835,2563,1183,427,827,2529,1183,1201,1559,2563,1177,403,3193,3107,1175,1479,1185,371,1181,1383,963,3415,1181,1181,193,2315,1181,2259,2565,3049,1181,3143,2937,3049,1181,3153,2565,1133,1181,3045,305,2791,1179,2579,1505,755,1183,1847,2559,1803,1183,2593,3239,2355,1179,3105,3015,3377,1183,3189,2563,67,1193,3257,3013,3205,1193,901,3147,715,1139,2295,43,3123,1139,2295,43,3123,1187,2293,43,3123,1187,2549,1463,3049,1187,2549,3517,1011,1193,1193,59,59,1187,45,193,887,1187,45,193,3117,1187,45,1827,3117,1187,2739,45,3347,1187,567,1559,143,1187,653,3433,1559,1187,731,1559,169,1187,2809,3369,613,1191,373,1019,2823,1191,727,3153,1377,1191,1153,3081,177,1191,1153,3081,2565,1191,1763,545,3095,1191,3189,2049,181,1191,3189,2039,2049,1191,3189,2039,2049,1189,3189,3189,2355,1189,2535,1929,1165,1189,887,3049,2651,1189,1229,1183,363,1189,2593,1559,3411,1189,2631,3049,3447,1201,281,1093,1229,1201,285,2891,2231,1201,345,69,985,1201,601,1093,1229,1201,601,2293,1229,1201,601,2565,1229,1201,781,3239,1597,1201,907,1229,2589,1201,951,1093,1229,1201,1197,2281,131,1201,1197,2281,131,1201,1711,3077,1069,1201,2147,1635,1207,1201,2563,2935,1279,1201,2969,193,1197,1201,3011,3239,3425,1201,3411,1161,3107,1201,935,3003,2439,1201,887,803,2187,1201,1231,2583,1511,1201,1769,1141,1873,1201,2137,1227,689,1201,1235,1653,1943,1199,3495,193,2533,1199,2115,3077,3425,1199,2791,3077,577,1199,3045,3077,295,1199,3045,3077,801,1199,3045,3077,1343,1199,3065,3077,1343,1199,3189,3049,3443,1199,3049,1163,3219,1199,3143,2545,3049,1199,683,1199,2523,1197,801,631,1559,1199,491,2867,347,1197,553,3081,3175,1197,553,3081,3175,1199,2413,2867,2675,1199,2867,1507,1827,1197,2867,2933,1227,1197,2867,3433,645,1197,95,3415,1615,1197,95,3457,1615,1197,615,3189,1613,1197,887,2253,177,1197,2259,857,3239,1197,2533,1279,2443,1197,2927,2593,1405,1197,3427,1543,3049,1197,3437,2163,1803,1197,1343,1247,2529,1209,1229,193,2609,1203,1621,1137,2561,1209,1769,3049,3081,1209,2285,3115,1021,1209,1139,2471,2845,1209,1139,3283,2845,1209,2185,1247,2593,1209,1121,1635,2159,1209,1121,2455,2159,1209,3045,2455,2159,1209,1209,827,827,1209,213,3077,731,1203,3181,2391,2541,1209,3185,2281,1209,1209,2985,1943,3197,1207,1227,2255,243,1207,3437,2281,1133,1205,3049,3423,2689,1205,2259,3423,3049,1205,3143,1543,2471,1203,3201,321,127,1231,285,193,2265,1231,1019,3429,3433,1231,319,3451,1653,1231,677,2311,305,1231,887,2103,209,1231,1139,777,343,1231,1161,2311,305,1231,1235,2311,305,1231,1783,1633,2543,1231,3049,1067,1741,1231,3367,2311,305,1229,139,2563,1079,1229,615,511,1609,1229,615,3189,2651,1229,823,59,3143,1229,905,2563,2255,1229,935,1071,95,1229,1001,59,3175,1229,1019,3189,1383,1229,1111,295,653,1229,1125,1071,95,1229,1165,305,589,1229,1165,511,589,1229,1173,59,1019,1229,1229,951,3189,1229,1229,951,3247,1229,1523,2451,3411,1229,1559,67,1155,1229,1559,169,1311,1229,1559,2355,2971,1229,1559,2451,1179,1229,1559,2563,1155,1229,1891,3429,377,1229,1891,3429,3087,1229,1943,3189,1009,1229,1943,3189,1685,1229,2289,2451,2565,1229,2295,1111,295,1229,2299,3429,2991,1229,2357,3189,1389,1229,2393,2563,819,1229,2451,3105,2531,1229,2565,3429,363,1229,2649,193,1115,1229,2649,2935,1115,1229,2649,3189,2559,1229,2791,1229,577,1229,2791,1431,3257,1229,2973,3429,3571,1229,3025,3265,2905,1229,3247,1313,3577,1229,3419,2451,993,1229,3447,2647,985,1229,3475,887,333,1229,3529,2191,3545,1229,29,295,3425,1229,173,333,3189,1229,717,1229,3429,1229,801,2555,1769,1229,931,1445,333,1229,931,1449,333,1229,951,545,2507,1229,1085,1803,1533,1229,1153,193,951,1229,1229,193,2925,1229,1241,2355,2991,1229,1483,781,323,1229,2589,2569,3045,1229,2943,511,1769,1229,3095,193,1253,1229,3169,193,2925,1227,15,771,2827,1229,173,1081,363,1229,343,2387,1531,1229,577,1081,2791,1229,997,721,2349,1229,997,721,2587,1229,1059,265,3237,1229,1059,2569,3143,1229,1059,2969,553,1229,1071,2569,1575,1229,1209,3433,643,1229,1427,2355,2447,1229,1575,2569,1071,1229,1607,571,1047,1229,1837,737,99,1229,1837,737,519,1229,2387,2089,3231,1229,2387,3065,577,1229,2395,2529,379,1229,2471,3429,2845,1229,2563,3419,3451,1229,2685,193,2579,1229,2953,737,1837,1229,3231,157,295,1229,3237,265,1059,1229,3541,737,97,1229,3559,737,97,1227,173,1827,3189,1227,363,2675,3249,1227,363,3045,1033,1227,577,353,3227,1227,1033,3045,363,1227,1033,3045,363,1227,1079,353,2775,1227,2147,3045,1229,1227,2725,801,1719,1227,597,353,2733,1227,3145,951,305,1227,3241,1201,3241,1227,377,3429,1183,1227,2835,2549,1803,1227,3311,2559,2901,1227,3227,3517,2293,1227,3231,3209,553,1227,3045,1139,2579,1227,765,2835,3045,1227,765,3185,3045,1227,765,3417,1883,1227,963,195,2313,1227,963,193,861,1227,963,193,2503,1227,963,193,2989,1227,1131,2835,3045,1227,1133,3153,757,1227,1133,3417,1883,1227,1145,3417,1883,1227,1139,799,2515,1227,1209,3197,3541,1227,1351,1227,1829,1227,1351,1733,3287,1227,1397,799,2939,1227,1511,3453,3045,1227,1763,2631,1133,1227,1827,1191,2939,1227,2115,195,131,1227,2259,3189,3185,1227,2563,1483,2673,1227,2565,1141,1763,1227,2649,799,2515,1227,2649,799,2939,1227,2923,2845,489,1227,3287,3087,1093,1227,955,513,2869,1227,2565,1625,2565,1227,2749,2991,1741,1227,3091,131,2563,1227,3415,3231,545,1241,2543,2209,1169,1241,193,353,2979,1241,193,353,3199,1241,1485,805,2353,1241,2969,2281,29,1235,2991,2503,2511,1241,347,2935,1635,1241,1559,1337,907,1241,1653,1201,1943,1235,577,3165,2791,1239,193,751,3049,1239,2563,3429,1229,1237,2779,551,2643,1241,3257,2451,67,1249,2291,3117,961,1249,1013,1205,3077,1247,1153,103,545,1247,2185,2985,907,1247,2529,3247,3199,1247,2849,353,1419,1247,2979,717,3301,1245,1191,3429,2565,1253,1329,1253,2207,1253,653,2393,1559,1253,375,775,2559,1253,511,193,763,1253,1207,1143,2299,1253,2565,2281,2591,1255,2833,1255,1851,1255,2835,1169,1851,1265,193,3107,2357,1265,1543,2393,2507,1265,3519,1013,2281,1265,2791,941,3257,2317,3425,2715,1419,1271,1415,2251,2185,1269,1415,1141,2185,1279,1081,1187,965,1279,1173,2101,2849,1279,2791,2101,577,1279,3247,1187,1559,1285,3427,1559,3049,1285,1207,3429,2901,1283,2355,3049,2565,1289,633,189,2501,839,615,53,2507,987,2559,2735,2187,1311,521,1311,2375,1311,1143,2545,3049,1311,1623,2763,1639,1311,2521,1145,2281,1311,2543,1311,2767,1311,2651,2205,3513,1311,2647,1503,2281,1311,181,915,711,1311,181,915,2651,1311,3185,2281,887,1311,3447,2281,1161,1311,3561,1511,3123,1311,3005,3389,1597,1329,2221,669,501,1337,801,2109,2109,1335,193,767,3513,1345,3045,2901,3107,1343,107,3283,545,1343,193,3205,3045,1343,379,515,3143,1343,801,3429,1465,1343,827,2529,1183,1343,1365,3045,3427,1343,2265,2529,181,1343,2511,2397,3077,1343,3107,2935,831,1341,3045,2187,3107,1341,1139,3437,1559,1341,2039,1711,3165,1353,1209,2015,3107,1353,1803,3079,3457,1353,2589,2559,1081,1353,3079,3429,3237,1353,3457,3079,1803,1353,2459,3391,1499,1351,1829,2549,3433,1361,683,635,1729,1361,2375,3081,2725,1365,193,1559,3055,1365,3045,2689,3185,1373,1047,511,1505,1373,1047,985,1505,1383,1227,1729,777,1383,1779,3415,2673,1383,2185,193,521,1379,2371,343,1229,1379,2371,1209,1229,1379,2371,1465,2563,1379,2371,1481,1229,1379,2371,1729,1229,1379,2371,3197,1229,1379,2371,295,1229,1379,2427,731,1719,1393,3045,655,3049,1393,1161,2647,2981,1387,1485,677,2259,1387,1485,677,2565,1387,2259,677,1485,1387,2973,2185,2937,1401,3239,2285,2623,1397,2579,3227,635,1397,3429,1743,3049,1415,1353,2529,3079,1415,3079,485,1353,1419,375,193,3185,1427,485,3239,3393,1427,781,3375,3241,1435,225,1071,3145,1435,1009,949,1353,1435,1165,103,1257,1435,2703,1071,3145,1435,2881,1071,3145,1435,3045,897,3049,1437,1229,2999,265,1437,1269,3519,3001,1445,627,1019,2823,1445,2971,1019,2823,1445,2563,907,3513,1449,59,103,3513,1449,1449,2521,2521,1449,1943,2159,319,1449,1943,2565,643,1449,2187,1039,2285,1449,2521,2969,2191,1449,2569,3079,2393,1449,597,353,2733,1449,3081,333,1969,1449,3391,1499,2099,1451,1451,549,549,1455,3049,3233,2933,1455,2503,1011,2569,1455,3045,3145,1227,1515,193,3377,1199,1453,2323,2969,2943,1453,2549,2891,1771,1515,2975,1239,2471,1461,1483,781,3049,1461,1543,781,3049,1465,2393,2455,897,1465,1465,1635,1635,1465,1635,1009,1039,1465,1635,3185,535,1463,1559,1671,1741,1465,643,1495,2115,1465,1161,193,3003,1465,1179,193,821,1465,1365,1145,2677,1465,1465,2393,3457,1465,1617,3429,2939,1465,2677,1145,1365,1465,2849,1237,2491,1465,2849,3425,2507,1465,2899,1187,2553,1465,2975,353,1151,1465,3541,333,193,1473,1703,1039,3147,1473,2581,1473,1181,1475,3107,627,2971,1481,113,2295,1785,1481,2507,597,1071,1481,1943,3055,1181,1481,1943,3429,3519,1481,2815,2465,1609,1481,2285,3375,2355,1485,125,3257,1087,1485,1087,3257,125,1485,941,193,1059,1485,3205,2905,1019,1487,1479,1639,1639,1485,3051,2357,2561,1485,1229,193,2531,1483,1873,839,615,1483,3105,647,3049,1483,1209,875,2567,1483,1229,1729,1165,1483,1483,1635,1635,1483,2371,1379,1229,1483,537,2935,887,1483,2549,3049,1143,1483,1209,2281,3425,1483,347,1541,3129,1483,1543,3425,1125,1483,1543,3425,1125,1483,2985,2285,1009,1483,3107,1341,3045,1483,3107,2105,831,1483,3107,2105,3045,1483,3423,1197,1163,1495,143,1465,643,1495,875,315,3175,1495,875,3023,3175,1495,875,3055,3175,1495,1193,1463,2357,1495,2115,1463,643,1495,2115,1463,799,1495,2115,1463,247,1495,2115,1465,643,1495,2115,1463,799,1495,2115,1463,3411,1495,2115,1463,3425,1495,2211,1463,1785,1495,2709,739,3205,1495,3379,1463,643,1495,3425,1463,643,1495,3433,2451,3247,1495,3045,2187,1227,1495,3045,3145,1227,1495,1393,131,2817,1495,2115,1465,643,1499,907,417,1121,1499,2375,175,2187,1499,2471,175,2187,1499,2559,175,2187,1499,3249,2281,1705,1497,1229,1729,1081,1497,1229,2739,1081,1497,1497,193,2533,1497,1497,1827,2533,1497,3045,2925,1227,1497,2565,739,3205,1507,1071,3015,635,1507,2591,635,3105,1507,3077,2265,781,1505,209,717,2933,1505,209,1597,3219,1505,209,2187,2567,1505,209,1597,3219,1505,1143,2547,771,1505,1201,1663,801,1505,1483,677,553,1505,1483,717,3049,1505,1483,717,2933,1505,1873,2579,935,1505,2393,1173,985,1505,2395,1141,379,1505,2395,2933,379,1505,2413,3425,3309,1505,2563,645,1483,1505,2779,209,3189,1505,3023,1483,2939,1505,3309,3415,2413,1505,3519,299,1625,1505,1505,2217,2217,1511,3187,2471,3319,1511,781,349,2565,1511,781,2777,3035,1511,1133,1155,3227,1511,3265,187,3241,1515,727,485,1353,1515,2393,935,1133,1513,575,2399,2543,1523,1141,3389,3391,1523,209,1253,1749,1523,931,1115,1743,1523,2509,3189,413,1531,3195,511,545,1531,575,3185,1169,1531,1829,193,1239,1531,1829,193,1335,1531,1829,897,1743,1531,1829,3453,177,1531,2291,2285,187,1531,2549,1609,181,1531,2825,635,97,1531,1139,3157,1559,1531,1181,777,3561,1535,2427,2285,2623,1541,2511,1997,2991,1541,1541,2449,2449,1541,547,79,3519,1543,1793,847,1227,1543,2101,2985,1205,1543,193,3091,3049,1543,3049,1197,3427,1543,3049,2393,1559,1543,2355,1785,247,1543,2355,2093,803,1565,3091,2035,1653,1565,3429,511,1139,1565,3429,1073,3177,1559,1435,2205,645,1559,3185,509,3385,1559,1495,193,2533,1559,1495,2925,739,1559,1497,193,2533,1559,1881,2929,547,1559,3231,3237,577,1559,781,1111,3109,1559,781,3183,1141,1559,781,3237,2673,1559,781,3237,3267,1559,943,3185,2565,1559,993,1155,103,1559,3049,1285,3427,1559,1201,2641,2563,1559,1343,295,2733,1559,1365,2355,1343,1559,1481,187,2211,1559,1481,187,3257,1559,1481,593,669,1559,1481,593,3425,1559,1481,2709,2937,1559,1485,1559,2187,1559,1495,2925,739,1559,1495,2925,739,1559,1883,2925,739,1559,1891,2647,2631,1559,2631,305,3529,1559,2631,3049,3265,1559,2631,1635,1081,1559,2631,3227,1575,1559,2791,315,577,1559,3055,315,589,1559,3055,761,589,1559,3055,829,3257,1559,3107,2125,1601,1559,3107,2211,1485,1559,3143,761,2943,1559,3143,761,3241,1559,3143,781,3241,1559,3143,1123,1079,1559,3183,2569,2709,1563,25,1081,1769,1563,25,1081,3399,1563,357,1079,1729,1563,681,1081,1183,1563,681,3209,1183,1563,1069,1081,1711,1563,1125,1081,1769,1563,1183,1081,1705,1563,1193,1081,3011,1563,1607,1081,1047,1563,1607,2753,1047,1563,1703,545,2589,1563,1703,2781,2589,1563,1703,2781,2589,1563,1703,3055,3147,1563,1711,3451,3011,1563,1785,1081,451,1563,1785,1081,1193,1563,1785,1081,2289,1563,1983,1081,431,1563,2187,1081,2775,1563,2289,1081,2565,1563,2427,1081,1183,1563,2555,1081,2543,1563,2565,1081,1193,1563,2775,1081,3249,1563,2991,1189,3199,1563,3011,1081,1193,1563,3087,209,847,1563,3149,1081,2971,1563,3169,1081,2725,1563,3169,1495,1495,1563,3209,1081,3145,1563,3203,1081,2565,1563,3203,1081,3407,1563,3207,1081,3199,1563,3393,1081,219,1561,131,2451,2835,1561,323,193,2325,1561,347,3429,909,1561,379,771,761,1561,379,2185,1141,1561,545,1623,1111,1561,871,2265,1205,1561,871,2265,1205,1561,1019,3429,1863,1561,1193,2451,1785,1561,1193,2451,2565,1561,1653,3157,1785,1561,2255,193,2357,1561,2255,2969,1301,1561,2291,1623,1111,1561,2543,195,29,1561,2543,2969,3455,1561,2759,2451,1641,1561,2831,2647,509,1561,2831,2647,2101,1561,2945,2451,2871,1561,3257,761,2623,1575,3049,1071,139,1575,3049,1071,193,1575,1239,3265,3455,1575,1585,777,2311,1575,2039,2281,1187,1575,2559,1229,3435,1575,2559,1229,3519,1575,2759,95,1641,1575,3107,777,2693,1575,3109,3095,1101,1575,3199,1071,3021,1573,3225,2287,3381,1575,3379,3077,907,1575,3419,1071,635,1591,2835,819,1499,1587,177,601,3079,1587,1201,2177,481,1587,3045,2015,3107,1595,589,1541,943,1601,1201,3145,3111,1601,1829,2935,3187,1597,3011,323,1145,1597,2281,193,2913,1597,1563,2215,1081,1597,3087,3253,3049,1597,3087,3253,3049,1597,209,3153,1143,1597,225,781,2675,1597,311,3109,3553,1597,529,2105,333,1597,529,2105,831,1597,1047,3149,1607,1597,1047,3149,3519,1597,1143,3153,209,1597,2927,2623,1419,1597,2937,229,2835,1597,2675,781,225,1597,3207,229,3049,1597,3553,3109,311,1613,777,1021,1769,1613,857,777,417,1613,801,1909,761,1617,3241,2563,635,1615,1161,473,3045,1641,577,887,333,1641,1707,2565,711,1641,2355,3429,1707,1641,3207,799,943,1625,887,3049,781,1625,887,3049,2513,1625,1101,2591,1027,1639,1653,1881,3125,1635,3429,895,3001,1637,3077,3101,2299,1637,3077,3101,2299,1635,241,2933,1341,1635,1081,1559,2631,1635,1081,2969,3143,1635,1107,717,2753,1635,1107,717,3535,1635,1207,2835,2563,1635,1207,2991,2563,1635,1207,2991,2563,1635,1635,511,751,1635,1635,915,1019,1635,1635,1803,1803,1635,1635,1827,1019,1635,2159,193,1145,1631,2883,189,2011,1635,2159,1173,1067,1635,2749,2049,3031,1635,3145,323,3237,1635,3175,3429,2285,1635,3257,2975,1503,1635,3427,3265,3149,1639,3077,3101,2299,1609,3367,1607,65,1609,181,1531,2549,2605,3227,1227,3319,2605,3227,1227,3379,1607,1229,1047,571,1597,1531,511,545,1641,847,3189,363,1641,1141,1625,3045,1641,1141,3247,2259,1641,1141,3247,3045,1641,1161,3189,79,1641,1393,3189,79,1641,2555,3189,363,1641,2563,3429,2969,1641,2969,1141,527,1641,3117,3189,363,1641,3429,2099,1685,1641,3429,3189,719,1653,181,1943,2669,1653,181,1943,2669,1653,347,2845,3377,1653,1741,1943,2835,1653,1943,1201,1241,1653,1943,2185,781,1653,2393,1559,2631,1651,1651,1527,1527,1667,2451,3249,2647,1667,2791,3249,577,1663,211,2281,3185,1663,1205,2281,29,1663,1661,1019,2823,1663,1943,1661,1161,1663,1943,2985,857,1661,2285,3429,3453,1661,3077,1507,2185,1661,3077,1507,2185,1661,3077,2591,1481,1661,961,2281,1483,1661,961,2281,2375,1661,1161,1663,1943,1661,2231,3049,1165,1661,3231,2281,2375,1661,3455,2281,2375,1671,3077,431,781,1671,3283,717,951,1669,193,1209,3185,1669,229,1113,545,1669,441,1077,2643,1669,2791,1669,577,1669,3197,3457,2281,1677,1703,1011,727,1677,2957,1711,3165,1685,727,2651,2675,1685,727,3429,887,1685,1485,2281,2651,1685,2689,679,1207,1685,443,2849,1193,1685,2471,669,1279,1687,1531,3081,3451,1687,1769,1191,1181,1687,3185,1883,271,1687,1019,3049,1481,1785,347,193,2925,1785,347,1827,2925,1785,347,2969,3249,1785,717,193,3079,1785,1201,3197,3241,1785,1785,2969,2943,1785,2565,193,2925,1785,2565,1827,2925,1785,2565,2969,339,1703,2835,233,3201,1785,3437,3189,2565,1703,2265,1803,3077,1711,531,1069,181,1711,1609,3429,2925,1711,2549,1483,1207,1723,907,2355,3435,1719,1705,1139,1237,1725,2835,3475,3011,1719,3187,3157,3415,1719,3283,907,1485,1721,1705,3187,2281,1721,2435,1511,617,1729,775,2185,2311,1729,1559,3429,1141,1729,2371,1463,3175,1729,1497,983,907,1729,1729,1065,1073,1733,1733,3429,3257,1733,1733,3429,2559,1733,1733,3429,3199,1733,2323,451,781,1733,3143,1883,1485,1733,3189,2841,2563,1733,3189,2841,2563,1733,3231,1187,3183,1731,717,193,1597,1731,1731,1655,1647,1739,1081,1139,1563,1739,1081,2961,1563,1739,1081,2675,1563,1739,1081,3559,1563,1739,1485,181,209,1739,1483,181,209,1723,3105,2289,305,1743,2567,3427,2567,803,2581,2811,721,1743,1743,2219,2215,1741,1669,801,759,1741,2393,803,769,1741,3393,2815,3419,1741,2529,2815,3415,1741,2529,2815,3419,1747,717,193,3077,1747,1575,3077,777,1749,375,193,397,1757,3207,3495,781,1765,717,1011,3105,1769,1635,2703,2507,1769,2555,907,1145,1767,2959,901,533,1769,729,2547,1543,1769,2219,25,2841,1769,2871,25,1227,1769,3389,1125,1719,1769,3419,25,635,1769,3457,2733,2311,1769,1633,1021,545,1769,3049,1677,2709,1769,3049,3425,3423,1769,1785,3429,639,1773,615,511,3559,1779,213,3091,2559,1779,213,3091,3239,1779,2891,3429,1143,1779,2925,2969,1145,1779,3013,2791,1279,1779,3187,2211,1485,1779,3435,1559,397,1789,1711,193,3383,1789,2835,193,3383,1783,1065,193,2265,1783,1783,1065,1073,1783,1471,1507,1181,1785,2039,1507,3247,1783,3123,2637,3107,1785,769,2569,3429,1785,511,131,3393,1785,1187,2981,3049,1785,1313,1231,1187,1785,3239,643,3177,1793,2471,391,325,1793,323,2973,1169,1793,545,3577,2533,1793,2821,1141,3049,1803,827,1909,2191,1803,933,3257,2187,1803,1635,951,113,1803,1943,1559,1653,1803,2835,2355,715,1803,3079,3453,2559,1803,193,2989,1143,1803,567,2529,1169,1803,567,2529,1169,1803,1337,3189,2241,1803,1505,3185,3203,1803,1943,2969,2299,1803,2397,721,2325,1803,2395,721,2325,1803,2567,3183,1543,1803,2799,3045,3389,1803,2969,2299,1943,1803,2969,3571,3377,1803,1057,717,931,1803,1057,3189,931,1803,1597,2593,781,1803,1597,3371,2623,1803,907,181,1201,1803,475,305,359,1803,907,305,3437,1803,3241,305,3265,1809,2221,3577,597,1811,1695,591,715,1811,2293,577,2295,1811,1161,2393,1559,1821,2355,1239,1253,1827,737,105,907,1827,935,377,2281,1827,2221,105,597,1827,553,1067,2845,1827,771,1827,2533,1827,879,2175,2591,1825,1195,3181,2863,1827,2533,1827,771,1829,3065,1829,577,1837,3495,1597,3207,1851,3081,139,1969,1851,3081,333,1969,1859,3143,1765,3049,1863,265,2905,597,1863,1263,2903,1019,1863,2385,2903,839,1863,3053,193,1227,1863,3081,2903,2333,1873,193,325,935,1883,907,193,1079,1883,907,761,1201,1883,907,1241,751,1883,1769,2569,2563,1881,1943,2395,985,1881,2045,193,3519,1883,721,1483,3049,1883,3049,545,2569,1883,2569,547,3049,1897,1081,1955,1563,1891,1229,3257,2549,1891,2549,2371,1229,1891,2549,2691,1229,1891,2549,3257,1229,1891,3185,2565,1011,1891,2099,3391,907,1893,1893,3231,445,1909,2221,1093,2061,1909,2775,1081,1635,1909,1909,1991,1991,1909,1909,2147,2147,1907,1559,2101,957,1915,3029,285,3375,1915,3107,2251,907,1915,3107,2933,1719,1915,1259,531,571,1929,2313,2971,1429,1929,2313,2971,1429,1929,2649,193,2295,1929,2933,3239,2691,1929,3393,193,2919,1943,549,857,1145,1943,549,3023,2565,1943,615,2095,1145,1943,847,1653,511,1943,949,2529,2543,1943,1101,897,97,1943,1141,883,1445,1943,1141,2825,237,1943,1141,2825,3311,1943,1141,2825,3311,1943,1181,913,2593,1943,1181,3429,857,1943,1343,3429,2991,1943,1653,1201,1235,1943,1953,661,2187,1943,2669,1653,181,1943,2669,1653,181,1943,2775,3429,251,1943,2775,3429,3237,1943,2775,3437,3237,1943,2821,2733,2249,1943,2825,1653,3535,1943,2835,1653,1741,1943,2835,95,407,1943,3055,3429,1977,1943,3153,2971,1161,1943,3189,173,2961,1943,3189,661,2187,1943,3189,2691,3257,1943,3189,3175,1353,1943,3429,3189,1685,1947,1393,2933,3203,1947,1947,1917,1917,1947,2295,3577,3423,1947,3423,3577,2295,1947,3477,827,1401,1947,1947,1881,1881,1953,1687,2565,299,1953,1785,527,3487,1953,3487,527,1785,1953,3487,3145,1785,1955,933,597,2999,1955,3239,417,3025,1973,1161,1481,2999,1969,727,359,935,1997,1449,2579,3045,1993,3079,1783,669,1977,511,1827,1559,1977,3377,539,1151,1977,3377,3091,1151,2017,799,2061,3207,2017,1785,1199,3145,2017,3457,1199,3145,2015,3045,581,3107,2015,3045,1483,3107,2015,1495,739,3205,2035,1653,1565,3091,2029,1829,1191,771,2029,3233,1191,1829,2045,285,2529,947,2045,1081,2945,1563,2045,1081,2529,1563,2045,2767,801,855,2045,2767,1431,855,2039,871,1231,579,2039,1803,3079,3457,2037,2625,1147,1159,2039,1803,3079,3457,2049,2885,511,3241,2049,1703,63,727,2049,1703,1011,727,2049,3049,3029,2511,2049,2281,181,1303,2049,2281,1263,3145,2049,2831,2293,297,2049,2831,2293,297,2049,3197,2293,3415,2049,3427,2293,3239,2065,2835,1597,1741,2059,871,1231,579,2059,3025,2393,1461,2059,617,1191,1943,2059,1069,571,299,2063,1653,1661,3031,2061,1133,1495,2791,2061,1575,2095,777,2085,181,3239,379,2085,3107,3517,2975,2105,781,1785,3257,2105,1685,2281,447,2105,727,2943,2549,2105,731,3209,931,2105,727,3579,2357,2105,831,1483,3107,2105,831,1597,529,2105,1531,3029,3077,2105,1649,1227,1133,2105,1685,2281,447,2105,1685,2281,2989,2105,2281,519,2709,2105,2281,801,3045,2105,2835,2447,727,2105,3045,1483,3107,2105,1479,2025,1415,2099,1485,431,2285,2099,1485,3153,2285,2099,3011,3429,1161,2099,3011,3429,2733,2099,2021,1227,3241,2101,957,1907,1559,2101,1883,3189,2241,2109,1165,1465,1141,2109,1165,1463,3435,2109,1165,1465,3541,2109,2581,1227,521,2109,2581,1227,1597,2109,2581,1227,1597,2109,2581,1227,2649,2109,2581,1227,2981,2109,2647,1483,1561,2111,1153,193,1559,2111,2899,193,1559,2111,3143,3393,3239,2111,3143,3427,3241,2111,3143,3427,3517,2111,295,181,1141,2125,735,1635,1123,2125,3199,1635,1123,2131,523,513,679,2137,3561,181,2529,2141,3451,2733,2651,2141,3451,597,2999,2147,1559,1095,1197,2147,2177,3423,3087,2147,1143,3429,3385,175,2187,1499,2985,175,2187,2531,2985,175,2559,2985,2187,2147,323,3297,3393,2147,3491,3297,3393,2147,2125,2089,3475,2163,3227,1227,1133,2159,909,2933,3247,2159,1087,1021,3283,2159,1155,2455,289,2159,1155,3001,1543,2159,1205,353,3247,2159,1227,1483,3045,2159,1429,1559,623,2159,3453,2281,1165,2171,85,2281,3457,2171,831,2187,3107,2171,1253,2393,1559,2171,3045,2187,3107,2169,637,3393,1039,2177,213,349,2943,2181,819,1247,717,2181,1199,1523,3077,2181,1703,1719,3147,2181,1703,2503,3147,2177,1793,613,1141,2175,2175,545,2845,2175,2175,1139,65,2175,799,3429,1227,2175,1563,3429,3425,2175,1563,3429,3521,2179,2791,1607,2849,2191,885,59,2231,2191,1453,59,539,2191,1541,59,1635,2191,1947,59,2909,2191,2511,59,1635,2191,2909,59,1947,2191,2919,59,1947,\n2191,3393,59,1341,2191,3411,1229,1523,2191,781,3079,3241,2191,2285,3197,907,2191,2791,1383,577,2191,1485,1271,271,2985,2785,677,1943,2185,1505,569,935,2185,2923,2533,1943,2185,3149,1229,591,2185,3205,2393,3013,2185,3205,2427,3013,2185,2255,1483,1635,2185,1943,1731,1943,2185,847,3189,3389,2185,2593,3005,3389,2185,2593,3005,3507,2189,1173,553,1229,2187,359,637,1943,2187,359,1943,637,2187,401,2393,1943,2187,1139,65,2455,2187,1311,637,1943,2187,2881,1943,637,2187,2985,3149,3149,2187,3107,751,839,2187,3483,2393,1943,2187,113,2281,1785,2187,655,1227,295,2187,1153,623,1393,2187,1227,1495,3045,2187,1227,2845,3045,2187,1227,3203,3045,2187,2943,1227,2973,2187,3185,2281,1827,2187,3429,645,2903,2189,193,333,2559,2189,1531,107,777,2189,2991,2393,3241,2189,2991,3371,1201,2187,3107,417,3209,2187,3107,1145,2457,2187,3107,3409,857,2187,397,2281,1161,2201,1165,1635,311,2197,545,1013,375,2197,2393,2185,767,2211,271,2915,157,2211,2555,2915,2185,2211,495,2915,1635,2211,907,1253,597,2211,1111,67,3393,2211,1265,3189,727,2211,1515,67,535,2211,1453,2915,535,2211,1485,3189,2293,2211,1783,67,2529,2211,2285,2915,519,2211,2721,2915,3483,2211,3143,1205,3077,2211,3283,3189,1019,2211,3483,2915,2721,2211,3521,2915,2721,2211,1943,2991,1207,2211,3153,527,1229,2211,2185,2293,1169,2211,2185,3369,1169,2205,645,1559,1435,2205,2175,1059,181,2205,3143,2927,3049,2205,553,1731,3049,2205,553,3197,3049,2205,1335,3551,1145,2205,3081,3197,553,2209,177,597,1169,2209,1173,597,177,2209,3051,2753,2259,2221,3149,2061,3241,1169,427,1523,3561,2219,441,677,1485,2219,441,677,3415,2219,553,3185,2137,2219,717,1059,1313,2219,799,139,1021,2215,887,1205,1973,2219,967,193,2533,2219,2355,2709,1827,2219,2563,181,2943,2219,2563,1729,1181,2219,2563,3517,15,2219,2649,1421,1129,2219,2649,2219,1129,2219,2943,1153,465,2219,2943,2569,465,2215,3423,3517,2689,2215,3517,2293,2529,1169,3561,3205,3123,2219,3577,1191,2355,2215,1081,1597,1563,2235,177,2281,1133,2235,1633,747,2061,2235,1943,3285,1653,2235,2235,515,515,2233,731,2185,3433,2233,3143,1543,2471,2229,2577,3187,519,2241,347,803,3045,2241,347,803,3045,2241,805,3429,2827,2241,907,3429,363,2245,1197,551,539,2241,2241,445,193,2241,2241,2651,3241,2241,2241,3283,3045,2241,3433,2563,173,2239,3513,1019,2295,2243,2563,971,1481,2241,2147,3429,3425,2241,717,193,2533,2255,243,1207,1227,2255,2089,1009,3225,2255,2185,1465,1635,2255,2185,1483,1635,2249,857,1229,801,2253,2285,3429,3425,2253,2507,3409,827,2265,831,131,3107,2265,1531,1027,2439,2265,2567,1559,751,2265,2567,1559,1769,2265,3519,2105,2779,2265,209,1011,2569,2265,209,1011,3185,2265,1141,1163,451,2265,2281,755,1653,2265,2281,1095,519,2265,2281,1095,2071,2265,3169,93,801,2265,3561,181,2529,2265,295,545,647,2265,1383,545,949,2265,1383,545,2241,2265,3015,545,2241,2265,441,1483,2293,2265,639,1169,2311,2265,639,3519,803,2265,639,3519,2939,2265,781,1507,3077,2265,2567,1523,3475,2265,3203,3077,315,2265,3507,2825,1559,2259,3001,1073,441,2259,3001,1483,2295,2259,3411,3185,2241,2261,597,193,3049,2261,803,193,2649,2269,871,1231,579,2269,1891,1465,2565,2269,1891,1465,3257,2269,2299,3079,2333,2269,2845,1511,547,2269,3049,1197,3011,2269,3247,2641,1559,2269,3247,2675,1559,2269,1585,1201,2311,2285,2507,3429,887,2285,781,963,721,2285,781,2465,3175,2285,847,1653,755,2285,847,2187,1019,2285,847,2187,2621,2285,847,2187,2675,2285,3049,2991,1541,2285,1009,1161,1249,2285,1009,2969,737,2285,1009,2971,737,2285,1009,3429,1785,2285,2503,1161,1249,2285,2563,431,1081,2285,2845,1731,2927,2285,3257,431,781,2285,3257,431,1081,2285,3257,991,1173,2281,2581,895,1741,2281,2581,2455,1741,2281,545,3237,1677,2281,799,2329,3287,2281,963,3237,883,2281,1173,553,1229,2281,1653,2743,2647,2281,1769,677,1483,2281,2255,843,3231,2281,2255,1301,3231,2281,2299,3429,1115,2281,2355,553,2355,2281,2559,983,2355,2281,2785,2945,2533,2281,2825,489,3185,2281,2999,2393,1313,2281,2999,2427,1313,2281,2999,2991,2565,2281,3185,739,2701,2281,3429,193,553,2281,3429,2427,1313,2281,3425,509,545,2281,3437,379,3021,2281,131,1201,1197,2281,1653,2265,755,2281,1653,2265,1377,2281,1653,2265,1377,2281,1653,2559,2471,2295,847,1227,2991,2295,1131,2281,2549,2295,3571,1227,107,2293,193,1481,1343,2293,847,1021,915,2293,887,717,3409,2293,1649,1419,3001,2293,1703,781,1149,2293,2631,1559,2515,2293,2851,3183,3045,2293,3105,9,2565,2293,3185,333,3203,2293,3185,777,3203,2293,3185,3203,1019,2293,3437,2355,2447,2293,3437,3533,3127,2293,3239,3231,1187,2291,113,1227,1785,2291,905,1227,3045,2291,1227,3429,771,2291,2721,2291,2545,2291,2939,1227,29,1245,1445,3157,2971,2299,1483,3169,2281,2299,2265,3437,2903,2305,2847,1237,131,2311,3049,2281,2205,2311,2147,3433,3099,2311,3101,1231,1237,2311,2241,193,3183,2311,305,1231,1241,2311,305,1231,1237,2311,305,1231,1237,2311,305,1231,3367,2311,305,1231,3455,2311,1465,305,1231,2311,3021,1231,2973,2311,3189,193,1313,2311,1229,3419,265,2317,1145,2521,1891,2317,441,3239,3239,2317,2265,3393,3441,2325,1227,3577,3045,2325,1427,1915,3313,2339,3231,3051,2291,2343,1503,2451,2371,2343,1503,3429,3199,2351,43,741,175,2349,887,539,1505,2349,1019,739,3205,2349,2349,1853,1845,2355,209,1143,1143,2355,683,2311,2523,2355,3049,1039,545,2355,1801,897,3155,2355,2259,2565,2721,2355,2531,33,795,2355,2565,193,3053,2355,2649,1559,1769,2355,2835,375,1769,2355,3045,2455,1197,2355,3149,1011,2333,2355,3143,1139,1139,2355,3239,1039,1559,2355,3541,1155,1143,2359,347,991,3081,2359,1145,13,689,2359,1351,1817,1445,2359,2397,991,3081,2359,2397,2281,2299,2357,2185,3517,1559,2371,181,2985,2507,2371,193,2989,1143,2371,3049,2211,1485,2371,1145,3257,1465,2371,1229,1891,2549,2371,1229,2691,2549,2371,1229,2691,295,2371,1229,2791,295,2371,1229,3257,2549,2371,1227,3257,1173,2371,1145,3257,3457,2371,1463,3257,1145,2371,1635,2211,3375,2371,3053,3257,1311,2371,3053,3257,2565,2371,3053,3257,3081,2371,3111,3257,857,2371,3111,3257,1249,2371,3185,3257,875,2371,3257,2549,323,2371,3257,2393,1559,2371,1249,3257,3111,2375,1653,1335,3527,2375,907,1997,1201,2385,2259,437,2721,2387,181,907,173,2387,3367,3045,1209,2387,2507,1229,985,2393,1191,545,3095,2393,1609,181,177,2393,1943,801,3433,2393,2285,717,3427,2393,2455,1303,133,2393,2591,1155,3411,2393,3205,2651,3013,2393,3407,1635,3175,2393,3429,1817,1019,2393,1685,3197,3107,2397,3077,2935,831,2397,961,2455,2569,2395,961,2945,1197,2395,1205,2945,1197,2395,1205,2945,1197,2395,2567,243,857,2395,2845,2933,29,2395,2973,895,3437,2407,1837,3081,2471,2407,2281,1365,1653,2427,2455,1303,133,2427,3231,2709,2455,2433,2463,3205,661,2433,3045,875,2567,2433,635,333,177,2439,721,2933,3125,2443,1207,765,2533,2439,1415,1483,33,2439,2179,1597,2651,2439,2957,553,1653,2439,2957,2569,1653,2439,2957,3429,1653,2451,79,1561,745,2451,193,1945,1561,2451,265,1561,737,2451,265,1561,1485,2451,271,1507,501,2451,271,2973,501,2451,305,3247,1449,2451,511,271,157,2451,569,1229,79,2451,569,1229,851,2451,661,1561,1741,2451,887,1561,3249,2451,909,1561,2157,2451,947,1229,1341,2451,1085,1229,1139,2451,1111,1229,3477,2451,1179,1229,1559,2451,1193,1561,2565,2451,1193,1561,3011,2451,1543,2973,2549,2451,1561,1229,569,2451,1703,1561,3415,2451,1891,2973,3283,2451,2255,1561,905,2451,2255,1561,1245,2451,2281,2647,843,2451,2355,2935,3433,2451,3053,2969,2549,2451,2563,1561,247,2451,2563,1561,1001,2451,2563,1561,1141,2451,2581,1561,131,2451,2651,717,3049,2451,2835,1561,131,2451,2835,1561,1741,2451,2835,1561,3415,2451,2871,1561,2945,2451,2899,1507,2533,2451,2983,333,639,2451,3115,1229,2563,2451,3153,1183,2721,2451,3287,59,1829,2451,3287,1561,1827,2451,3371,2451,105,2451,3411,1229,1523,2451,3427,3011,887,2449,177,3227,3221,2447,1653,3081,1943,2459,1143,59,721,2459,1069,1245,2593,2459,1635,2899,1191,2459,2593,2955,3231,2459,2849,363,1779,2455,529,3227,1121,2455,1121,1635,2159,2455,1121,2569,2159,2455,1155,3429,897,2455,1155,3429,2303,2455,1197,2791,1503,2455,1769,3429,2827,2455,2299,2397,961,2455,2569,2397,961,2455,2791,983,1485,2455,3045,173,1377,2467,545,3157,375,2467,3391,3157,375,2465,1803,2925,2455,2471,1483,529,181,2471,2355,3049,2933,2491,379,353,2933,2491,2191,2281,1169,2483,2011,3007,1137,2487,3107,2933,1719,2487,757,1351,3045,2487,757,3045,1145,2487,3231,1189,2565,2507,125,3437,3205,2501,797,3413,3481,2507,3049,985,3079,2507,1561,403,2563,2507,1769,2631,3077,2507,1769,907,3205,2507,2265,2631,3077,2507,3169,3177,2933,2507,3427,403,3049,2507,3437,3285,3011,2507,353,2631,801,2507,735,1227,1163,2507,735,1227,1163,2507,1077,1227,2675,2507,3409,2949,103,2507,3409,2949,2979,2503,55,831,3081,2503,55,831,3081,2503,209,1827,2533,2503,1151,717,909,2503,2567,1543,3437,2503,1021,3479,2285,2515,3143,3351,3241,2515,1229,635,2387,2511,3049,2991,3021,2511,1827,1635,105,2521,193,879,2565,2521,193,1209,2565,2521,333,2427,3051,2521,717,193,3183,2521,1891,3429,1155,2521,3005,661,3247,2521,3023,2969,215,2533,113,2281,1785,2533,113,3451,1785,2533,247,3495,3153,2533,1241,97,2605,2533,655,2293,295,2533,1143,451,2355,2533,1143,1227,2355,2533,1143,1227,2355,2533,1143,2935,887,2533,1143,2935,2355,2533,1143,3265,2355,2533,1197,1139,3251,2533,1197,2281,3251,2533,1197,2971,3251,2533,1227,1793,3045,2533,2549,2281,729,2533,2549,2933,961,2533,2559,2293,3185,2533,2559,2925,2649,2533,2649,2925,2559,2533,2963,2185,2627,2531,3145,2285,1047,2549,243,1207,1227,2549,531,1483,181,2549,1085,1561,1153,2549,1769,1237,2721,2549,1769,1507,2721,2549,2581,3185,375,2549,2779,727,805,2549,2967,1479,3489,2549,2969,3319,3049,2549,2969,295,375,2549,3005,305,1597,2549,363,3079,3249,2549,2971,2827,1139,2549,2971,2827,1139,2549,2971,2827,1253,2549,1215,905,3165,2549,1483,2209,2187,2549,1793,3251,1641,2549,2245,3391,63,2549,2241,3453,63,2549,2241,3453,1769,2549,2943,2293,2529,2549,3437,647,3049,2563,2985,717,229,2543,193,2583,2533,2543,193,2581,2533,2543,281,949,2567,2543,379,949,1785,2543,1009,949,1353,2543,1559,2187,297,2543,2265,907,3077,2543,2375,2187,2721,2543,2455,529,1635,2543,2973,913,931,2543,3025,1169,2311,2547,1143,645,2565,2547,1143,677,2355,2547,2293,1741,2565,2547,2293,1741,3185,2547,2563,677,2565,2545,2549,3081,3221,2559,727,2935,3311,2559,2491,3241,677,2559,2649,3241,677,2559,2881,1129,187,2559,2891,2649,3471,2559,2187,3015,2281,2559,2281,2187,3205,2559,3205,2187,2281,2553,2211,1231,1779,2551,2203,1217,1775,3053,2549,1311,1143,2555,1209,2999,3475,333,2631,193,1587,2569,1231,3429,2147,2569,1241,1575,3001,2569,2507,3107,985,2569,717,801,551,2569,1121,1635,2159,2569,1121,2455,529,2569,1121,2455,2159,2569,1209,1635,213,2569,1653,2439,2957,2569,2563,1635,2565,2569,1229,781,1559,2569,1229,2089,275,2569,2089,1229,1609,2569,2089,1229,3231,2569,2593,727,3435,2569,3265,3519,3257,2569,1205,1145,831,2569,3513,181,2847,2569,1011,731,1543,2569,2569,717,3049,2563,173,1229,2827,2563,333,1229,2947,2563,1303,1229,85,2563,1485,3153,299,2563,1561,2913,3423,2563,1733,1229,1297,2563,1739,1229,3577,2563,1809,1229,2947,2563,1809,1229,2947,2563,2255,1229,905,2563,2255,1229,1245,2563,2355,1229,1803,2563,2559,1229,2649,2563,2565,1229,1337,2563,2565,1229,1389,2563,2649,1229,1129,2563,3153,1229,1803,2563,3231,59,1229,2563,3429,59,1229,2563,3477,1229,1337,2563,3511,1229,3391,2563,2833,3519,715,2563,1043,3267,2721,2563,2371,1019,2455,2563,2939,1161,1143,2563,2939,3429,3507,2563,741,3231,2845,2563,2565,2281,2565,2563,3239,3231,1483,2563,519,353,1091,2561,675,2967,3181,2563,193,1463,2935,2563,193,2281,831,2563,193,2991,3145,2647,531,1173,1067,2563,1653,1559,831,2567,1183,2579,375,2567,1229,1651,3577,2567,1229,1651,3577,2567,3153,1169,1435,2567,957,1907,1559,2567,1559,2101,957,2567,2101,3423,1559,2565,2721,2355,2259,2647,257,3015,2563,2647,2631,1559,1891,2565,2265,305,3177,2565,3283,131,3049,2565,2939,1465,1617,2565,3239,3045,2933,2565,3283,131,3049,2565,761,2689,963,2565,2259,1181,3049,2565,761,2293,3423,2565,1235,2185,739,2565,2393,2185,767,2565,193,55,3081,2565,2581,1191,2917,2583,895,3169,3261,2583,1481,1231,2447,2581,79,1067,1593,2581,77,1067,1593,2581,1181,827,1205,2581,3541,353,1163,2581,2311,95,219,2581,3415,193,693,2581,2285,3429,2259,2579,3247,2969,1505,2579,3425,3239,2355,2579,847,2799,717,2593,2313,3231,1161,2593,3265,1641,3257,2593,193,1161,2255,2591,1481,1661,3077,2591,3077,887,2815,2591,3227,1661,3077,3455,441,133,2565,3455,441,133,2565,3455,1685,1481,1485,3455,2355,721,1803,3455,3247,3231,721,2591,2395,1943,1181,2589,941,1227,2989,2589,2175,2933,2175,2589,2549,1227,801,2589,2549,3517,1011,2589,2581,1227,131,2589,2581,1227,1397,2589,2581,1227,3185,2589,3081,3517,1013,2589,3271,1091,801,2589,3271,1239,1133,2589,107,1483,3475,2589,2189,1139,1503,2591,63,1625,1101,2591,193,2555,2591,2591,591,2925,3545,2591,655,1625,295,2591,1027,1625,1101,2585,1099,541,1025,2641,1161,193,3005,2591,1229,991,2791,2589,1485,1633,1137,2591,1733,717,423,2591,2927,3429,1419,2591,3189,2591,719,2591,3187,2915,1141,2589,1559,3409,2563,2589,2563,3409,1559,2599,3561,2099,3513,2623,3541,353,1163,2623,3049,241,3079,2623,1597,3429,107,2623,1597,3429,173,2623,1597,3429,323,2623,1597,3429,829,2623,1597,3429,2651,2623,2187,1039,2285,2631,545,3237,3049,2631,1559,1081,1635,2631,1559,1081,3031,2631,1559,3265,2447,2631,1635,951,237,2631,1635,951,237,2631,1635,2563,379,2631,1733,2969,827,2631,1769,2507,3077,2631,1785,899,2295,2631,2071,781,2509,2631,597,857,2835,2631,3079,2507,3049,2631,3077,2507,1769,2631,3377,397,847,2631,3437,3507,3143,2625,3431,3505,3255,2637,781,423,1133,2637,781,717,1073,2637,781,2567,397,2637,781,2567,397,2637,781,3477,679,2635,2915,1789,917,2635,2355,3205,2791,2635,2791,3205,2355,2635,2725,3013,3205,2641,2563,1559,1201,2641,3239,1559,1201,2641,2563,1559,1201,2641,2925,3079,553,2641,3107,1671,3077,2651,711,727,3249,2651,1009,193,271,2645,2709,3449,3429,2649,717,193,3079,2649,907,875,2387,2649,1485,2281,2559,2649,2243,193,3079,2649,2281,63,1421,2649,2281,67,1421,2649,3239,2675,3079,2649,3437,2281,1129,2649,3437,2281,2559,2647,193,1945,1561,2647,359,1561,509,2647,771,2973,1635,2647,771,2973,1635,2647,1181,305,2791,2647,1653,473,2775,2647,2265,1561,1129,2647,2533,2973,2395,2647,2815,59,535,2647,3199,1229,2191,2647,3049,2969,1141,2647,1997,1039,3049,13,1977,349,1827,13,2825,669,805,2661,2661,2449,2449,2657,1201,1601,3111,2657,1227,3203,3045,2657,3147,1559,1703,2669,3143,213,827,2667,3437,1209,2293,2675,3197,3049,923,2675,323,931,3079,2675,1047,931,3079,2675,1559,463,3247,2675,1559,2269,3247,2675,1559,2281,3247,2675,1559,3495,3247,2675,2631,3049,3447,2675,3247,2269,1559,2685,193,1565,623,2681,1771,3005,2551,2681,2039,3513,715,2689,3457,2733,2311,2689,187,3451,1559,2689,751,1227,3247,2689,781,717,1733,2689,847,1227,581,2689,1001,1227,2565,2689,3049,3451,661,2689,1145,3205,139,2689,2559,801,1021,2689,3247,1227,751,2689,3457,2733,2311,2691,3239,2185,1803,2691,3257,193,1235,2691,3257,2393,1559,2689,761,2943,963,2689,1729,193,2971,2689,1729,2925,739,2689,3045,1365,3185,2703,2049,635,3425,2701,177,3393,1169,2701,1265,3393,1169,2709,1161,1641,2825,2709,2555,2969,1143,2709,3011,2105,1733,2709,3197,3049,923,2709,2937,1559,1481,2717,1419,3435,3425,2719,2719,2561,2563,519,103,1021,731,2725,693,545,343,2725,2285,545,941,2725,2507,105,635,2725,1523,1559,1503,2725,1139,717,2103,2725,1419,2103,2927,2721,2507,2039,2563,2739,1531,2969,3145,2739,2281,2969,3145,2739,2281,2969,3187,2733,3143,2939,3433,2733,3143,2939,3433,2737,3065,1597,103,2737,3065,1597,131,2743,1531,1197,2811,2743,1101,931,1743,2759,781,1997,3109,2753,1047,1563,1607,2753,1485,333,2191,2753,2191,1563,1785,2753,2985,1563,2293,2753,2443,1563,3147,2753,3081,3051,2331,2753,3169,1563,1705,2757,1559,2675,3247,2763,1483,643,3049,2767,2767,2975,2975,2781,3035,1511,781,2777,2059,3429,3185,2775,1145,1009,991,2775,1161,2451,3115,2775,1161,2451,3115,2777,2647,1039,1559,2777,2647,1183,1559,2777,2647,1559,1495,2777,2647,2049,2885,2777,2791,3049,545,2783,91,533,1889,2791,97,1229,2393,2791,271,577,3251,2791,3049,2563,2187,2791,1081,1615,3491,2791,1279,577,2101,2791,1653,3049,1337,2791,2355,829,3205,2791,3095,577,3475,2791,3189,2969,777,2791,295,577,1229,2791,295,2371,1229,2785,803,3001,2177,2785,803,3429,887,2785,193,3429,3081,2789,3143,2355,2565,2789,3143,2565,363,2799,427,1513,3561,2799,571,187,1133,2801,3169,2801,1561,2799,3123,1513,427,2801,3169,2801,1561,2795,3081,3175,931,597,177,2209,1169,597,1071,1481,2507,597,2999,2141,3451,2795,3561,597,2529,2809,77,613,617,2809,437,2825,2021,2809,2589,1279,1081,2821,717,191,2943,2821,2185,3517,1559,2815,3419,1741,3393,2815,1559,3377,3425,2815,3265,1635,3257,2831,639,511,193,2831,639,1237,3185,2831,3185,511,639,2825,417,193,3079,2825,689,3015,2281,2825,2971,3015,3087,2825,2971,3015,3453,2825,887,3185,2293,2825,1463,3015,2281,2825,1559,1019,2975,2825,2187,3015,2281,2825,2559,3015,2281,2825,3081,569,2191,2825,3081,883,2191,2825,3233,3015,1227,2825,3247,883,1559,2825,3247,3185,1559,2825,3247,3185,2027,2825,933,3257,2187,2825,2025,2809,77,2825,1943,1181,1653,2827,1353,1559,2777,2827,2549,2971,1253,2827,3045,2241,907,2827,3517,413,3185,2835,379,2835,1785,2835,1365,1145,801,2835,1125,1803,3271,2835,1125,1851,3375,2835,1125,3147,3271,2835,1785,107,25,2835,2159,3107,379,2835,2159,3107,1531,2835,2159,3107,1559,2835,2511,3507,2835,2835,2825,347,1131,2835,3271,3147,1081,2835,3541,545,3425,2835,143,653,1559,2835,3475,717,2291,2835,1705,1021,857,2835,2185,2709,1011,2835,2711,3393,347,2845,2269,133,3001,2845,2709,1943,3153,2849,2015,1719,1201,2849,2333,2981,1559,2849,2333,2981,1559,2849,2559,2849,3377,2849,195,2961,727,2849,831,1597,529,2843,1175,945,1683,2847,1181,1943,3185,2849,2189,799,1239,2847,2189,1067,1635,2849,2649,799,1239,2847,3535,907,1635,2857,2835,1237,1741,2871,827,1227,2569,2871,941,3205,3219,2871,1353,2529,803,2871,1623,2093,909,2871,2791,2219,577,2863,189,361,2549,2891,887,3049,2651,2891,2355,1635,2631,2889,2581,2811,721,2909,513,3415,3383,2909,2191,1947,59,2909,2909,1947,1947,2905,1019,1485,3205,2593,751,2933,3247,2913,1351,3519,577,2913,2371,1275,2563,2913,2691,1275,2371,2913,2971,2455,3425,2917,2563,535,2387,2915,181,1531,2295,2915,157,2211,271,2915,519,2211,2285,2915,907,1559,751,2915,1021,3419,1559,2915,1161,473,3045,2915,1559,1207,3157,2915,2835,473,627,2915,3205,1541,531,2915,3283,2211,2285,2929,3153,3521,2647,2923,1121,2455,2159,2923,3153,553,1943,2923,193,1559,3049,2923,883,527,931,2923,1057,1169,3011,2927,2293,3423,459,2925,3517,759,181,2925,2559,2533,2649,2925,403,2285,2631,2925,781,717,3009,2925,781,2105,1733,2925,2285,3005,1541,2925,3077,2985,3045,2925,3207,393,2259,2939,2393,3389,1597,2939,2393,1465,1617,2939,2427,3389,1597,2939,3143,2939,3049,2939,3237,1465,1617,2939,2531,1483,1501,2939,3433,1543,3049,2939,3183,2867,2563,2939,827,1227,2569,2939,265,2285,1009,2939,799,2651,3049,2939,827,131,2569,2939,827,1227,2569,2935,451,2295,2311,2935,961,1249,2295,2935,1071,801,3185,2935,1071,2791,3185,2935,1071,3577,301,2935,1763,373,983,2935,1763,2263,1771,2933,2281,2933,1145,2935,2355,2643,3011,2935,2355,3577,1151,2935,3023,2569,511,2935,3253,2295,3237,2933,983,1227,1483,2933,2935,1227,3385,2933,93,193,3081,2933,181,193,3081,2933,1483,2565,2281,2937,2937,795,795,2937,2937,1495,2559,2933,181,193,3081,2933,181,193,3081,2933,1803,193,3081,2933,1343,2189,3081,2933,1483,2565,2281,2933,1483,2565,2289,2933,1749,2933,3021,2933,1749,2933,3021,2937,2293,333,2299,2939,2939,2885,2885,2935,1769,2281,3189,2949,2255,2507,3409,2949,2263,613,2557,2949,2979,2507,3409,2949,3409,2507,2979,2943,745,2647,1059,2943,963,2689,761,2943,3049,379,377,2943,1209,2973,1641,2943,2191,1229,1113,2943,2759,2973,1641,2943,3081,2973,103,2943,3081,2973,3147,2943,3187,3283,545,2943,3379,2507,635,2943,3379,3055,635,2943,3379,3337,1771,2943,193,2205,1197,2943,243,2555,2301,2943,243,2555,2681,2943,243,3579,2301,2943,349,2451,3453,2947,3351,2947,513,2945,1563,2147,1081,2945,1563,3115,1081,2945,1943,3429,1653,2945,2533,2281,2785,2953,2791,1481,985,2965,3049,1943,193,2959,2527,1203,753,2963,3049,2963,2675,1635,3077,3101,2299,2961,727,2849,195,2961,727,2849,2703,2961,2675,379,179,2961,2735,1559,2749,2975,489,2847,3535,2969,173,2549,3199,2969,577,747,2567,2969,777,839,933,2969,799,3429,2455,2969,1141,1313,2281,2969,1173,3429,3081,2969,1197,2969,3081,2969,1209,515,213,2969,1205,717,3049,2969,1227,2969,3045,2969,1227,2969,3239,2969,1313,133,1883,2969,1313,1227,3165,2967,1339,95,2649,2969,1453,2969,3081,2969,2515,2969,3077,2969,2559,2969,3077,2969,3081,2969,1515,2969,3143,1635,2471,2969,3187,2471,3319,2967,3513,3225,371,2969,1943,401,3257,2969,2991,9,1719,2973,229,1561,803,2973,631,1561,2991,2973,637,3393,3169,2973,3049,1237,2991,2973,1019,1561,1237,2973,1059,1411,3451,2973,1059,2191,947,2973,1101,1561,3257,2973,1145,1561,2579,2973,1139,1561,2579,2973,1181,1561,3379,2973,1541,1891,2521,2973,1541,719,1635,2973,2219,1561,677,2973,2255,1561,1245,2973,2311,1561,3145,2973,2549,2451,1543,2973,2563,1561,3189,2973,3045,1561,3185,2973,3091,1561,1011,2973,3143,1561,2471,2973,3199,1561,1607,2973,3257,2105,2281,2973,3147,2943,3081,2971,803,1763,29,2971,1705,2281,3429,2985,2439,2507,2295,2985,781,3197,1597,2985,1607,2973,2949,2985,1141,1205,375,2985,2709,181,801,2985,1685,139,727,2985,1479,943,539,2985,1485,1067,2845,2985,1485,1081,1415,2985,2985,1635,1635,2985,1943,2925,3257,2985,3385,1943,3455,2985,3049,717,2205,2985,3049,2175,799,2985,3049,2175,799,2985,3049,3445,193,2985,3241,2529,3049,2531,2191,693,1183,2985,3149,193,265,2979,1247,717,2753,2983,895,2281,79,2983,895,2281,2989,2983,1207,1227,1597,2983,2581,193,827,2983,3049,3237,2471,2983,3045,3145,1227,2981,1177,1669,3145,2981,2631,295,1559,2995,177,3031,1169,2995,3513,1789,3237,2989,1485,1575,3199,2989,3237,1069,3001,2991,3451,1311,1543,3005,1597,1769,3457,3005,3049,1059,2943,3005,2299,1637,3077,3003,2933,2355,3429,3005,3107,1531,1481,2999,3153,3189,1239,2999,1499,2743,3147,3003,2507,1597,2631,3001,1635,1141,3437,3015,271,2969,1143,3015,803,717,3049,3011,1145,717,627,3015,1145,3049,2565,3011,1711,3231,3011,3011,1977,2071,805,3015,2359,2935,961,3011,2563,717,627,3011,2591,3231,2099,3015,951,3077,851,3007,2067,3235,3573,3015,3011,1253,1559,3009,2259,677,1485,3013,689,3049,3265,3011,1801,3011,3155,3011,2099,613,3519,3025,801,3437,305,3025,3025,193,3081,3025,2543,1559,3425,3025,2519,1229,333,3023,193,591,715,3023,1155,3513,2187,3023,1495,2293,1199,3023,3147,181,2099,3023,3049,3175,2675,3023,3049,3175,3453,1179,655,1503,295,3021,2649,1173,299,3025,1609,1771,363,3021,3105,3015,3377,3035,3035,3399,3399,3029,1783,2903,2691,3029,1165,1463,3541,3029,1165,1465,3541,3029,3049,1039,3407,3031,1785,2491,1605,3045,343,2935,2311,3045,941,2779,2039,3045,991,529,1635,3045,1107,1511,1615,3045,1145,877,2471,3045,1139,1133,1515,3045,1209,529,3367,3045,1209,529,1635,3045,1373,2779,2039,3045,2291,1827,1559,3045,2581,3015,3205,3045,2981,2393,727,3045,3185,2371,3081,3045,3269,529,1635,3045,3283,2935,2311,3045,3371,2935,2311,3045,295,727,655,3045,3511,1343,111,3045,363,1227,1033,3045,363,1227,1033,3045,3185,2281,3045,3041,193,717,3049,3041,717,1011,907,3055,3049,589,3419,3055,3049,3175,951,3055,1559,589,1145,3055,1559,2815,1145,3055,1635,3265,2447,3055,3055,1635,1635,3055,781,3107,3241,3049,2943,3283,2511,3049,851,2565,1197,3049,1187,2565,1197,3049,1197,2565,851,3051,847,213,1523,3051,847,213,1523,3051,935,2317,3249,3051,1113,1531,1481,3051,2393,1177,1411,3051,3425,1531,1481,3051,2355,635,797,3065,2543,689,2487,3065,3221,2089,2027,3065,3221,2089,2027,3065,3231,333,1641,3065,3231,2285,1021,3065,3231,2285,1021,3059,209,511,1641,3059,209,511,1641,3059,2759,95,1641,3081,177,55,3367,3081,1769,2555,2565,3081,1943,951,1653,3081,1943,2447,1653,3081,2559,1707,3239,3081,3081,3231,2375,3081,441,1483,333,3081,655,2689,1079,3081,1227,1483,757,3081,1227,2189,757,3081,1531,3157,3387,3081,2185,3425,2147,3081,2229,195,1597,3081,2549,1187,3049,3081,2943,3147,2973,3081,3045,3157,3051,3081,3411,3157,3051,3081,441,1483,333,3081,1081,131,3257,3081,1741,1161,2355,3081,2355,515,515,3081,3081,515,515,3081,3187,1943,1059,3081,3241,1365,2973,3081,3241,2933,2973,3079,857,669,1153,3079,907,3433,2387,3079,1139,193,601,3079,1139,193,601,3079,1803,193,601,3079,1803,767,2215,3079,1803,1827,601,3079,1803,1827,601,3079,1803,2559,1081,3079,2709,3239,1653,3079,2795,803,2709,3079,3457,1353,1803,3079,3451,847,3447,3079,2631,225,781,3079,2631,225,781,2675,3105,1227,2393,3079,3241,225,781,3077,379,79,1001,3077,717,193,2563,3077,2471,1313,225,3077,2631,1769,2507,3077,2905,1113,3437,3077,2581,2049,935,3077,1071,601,1575,3077,1081,3409,2835,3077,1343,1199,3045,3229,2323,931,2581,3229,2323,1235,2581,3229,2323,1239,2581,3229,2393,359,721,3239,799,639,3237,3239,2791,1073,577,3091,727,1193,63,3091,1103,3189,2221,3091,2969,2125,1751,3091,3205,905,2565,3091,3241,2939,3183,3091,3561,1641,2529,3087,1229,3521,2565,3087,3087,549,549,3101,1021,931,1057,3101,1079,333,1559,3101,2299,1579,3077,3101,2299,1601,3077,3101,2299,1637,3077,3101,2299,1633,3077,3101,2299,1639,3077,3101,2299,2973,3077,3095,1229,1069,803,3095,951,1141,3237,3095,527,333,2593,3095,2581,2969,2311,3095,2715,1559,169,3095,2885,1227,2563,3095,3477,827,1401,3095,3025,531,2311,3097,2233,635,3143,3097,3239,907,2563,3111,241,373,871,3111,727,2105,3521,3111,1803,2933,1483,3111,2809,2969,2559,3111,3423,2933,1763,3111,3427,2565,1237,3111,3457,1253,871,3111,3541,2565,1609,3105,1231,2791,2355,3105,2551,3267,627,3109,413,3203,1143,3109,1997,781,2759,3107,781,2387,3241,3107,943,3429,3287,3107,985,2549,363,3107,1047,527,63,3107,1343,2085,2355,3107,1463,3203,1201,3107,1559,333,1019,3107,1559,333,2289,3107,1559,2125,377,3107,1559,2393,3453,3107,2079,511,1343,3107,2187,751,839,3107,2325,2491,299,3107,2387,1039,761,3107,2387,3015,1495,3107,3241,3055,781,3107,717,193,1997,3119,343,3015,1021,3115,3227,2825,2187,3115,871,1231,579,3115,1001,2591,1785,3115,1021,1209,2285,3115,1081,1731,1563,3115,1081,2945,1563,3115,1559,3451,1785,3117,589,1559,943,3129,589,3021,3205,3129,3109,2281,3227,3129,193,687,3049,3129,3049,687,193,3127,1505,847,3425,3125,1747,3453,3377,3145,1351,2849,831,3145,1351,2881,831,3149,2565,1705,3049,3149,2989,905,1141,3149,3119,1133,1515,3149,1785,2969,2943,3143,1207,2189,3435,3143,2651,1019,777,3143,131,3231,3433,3143,193,521,3185,3143,193,905,3049,3143,193,1139,3049,3143,451,1141,3049,3143,683,2515,3049,3143,751,3049,3247,3143,751,3049,1187,3143,951,3415,3475,3143,3049,95,3189,3143,3049,193,719,3143,3049,1141,451,3143,3049,2427,3189,3143,3049,3015,801,3143,3049,3015,949,3143,3049,3041,965,3141,2183,101,2423,3143,2265,3049,3507,3143,2563,2925,1229,3143,2821,3049,451,3143,2821,1141,3049,3143,2821,2565,3049,3143,2943,3049,3251,3143,3041,3049,965,3143,3153,3049,1239,3143,1559,2757,3247,3143,1209,1497,639,3143,1209,1231,2939,3143,907,1563,1201,3143,1201,1563,907,3143,1209,1563,907,3147,935,1561,1597,3147,1081,1511,1615,3147,177,3081,2943,3147,2185,2175,907,3147,2973,3049,2943,3147,2973,3081,177,3147,2973,3081,2943,3145,1827,3393,359,3145,29,1231,643,2505,3313,761,2559,3145,963,1559,2559,3149,519,3429,2563,3149,857,3385,2973,3145,993,2281,3091,3149,1151,3257,909,3149,1201,1803,3077,3149,1209,2099,1229,3149,1263,2211,1201,3149,2563,2925,3411,3149,2565,107,857,3149,3389,1013,1653,3149,3389,2565,1263,3153,781,1187,3127,3153,1143,1597,209,3153,1483,2177,3379,3153,1703,2635,1803,3153,295,1229,2293,3153,1635,1071,1343,3153,1563,887,1703,3153,1479,3153,2187,3153,3153,2983,2983,33,2581,3041,1703,33,2835,1405,193,3157,2565,803,375,3157,2975,3391,2593,3157,1071,1559,1093,3157,1209,375,2413,3157,2559,2455,2649,3157,3199,1229,847,3169,1787,3023,367,3169,2875,1803,1561,3169,2973,1021,1561,3169,887,2281,2513,3163,2581,375,1197,3163,2835,1103,1851,3163,2937,2281,2563,3163,3163,1103,1103,3163,1073,3015,3205,3163,3015,1073,3205,3163,2723,3193,2311,3167,2969,3529,1145,3167,1201,3123,935,3167,3107,2933,1719,3179,1597,2435,1475,3177,597,2969,2221,3175,887,1011,1575,3175,1635,951,871,3175,1635,3429,2285,3175,3049,103,3077,3189,2177,2563,991,3189,133,1785,2431,3189,143,3005,3507,3189,187,2451,3393,3189,193,1947,3433,3189,299,431,1721,3189,297,67,1021,3189,297,3189,1021,3183,443,751,333,3189,465,717,1227,3189,465,1313,1143,3189,2733,3427,2263,3189,617,591,715,3189,731,2159,577,3189,727,2211,1265,3189,735,781,2635,3189,801,3433,3081,3189,907,1197,715,3189,907,1851,715,3189,3049,3577,1483,3189,1009,193,271,3189,1023,717,1227,3189,1049,717,2189,3189,1049,717,2447,3185,1053,717,2511,3189,1073,67,3205,3189,1117,717,1227,3189,1117,1229,3425,3189,1161,1453,2323,3189,1161,2393,1227,3189,1161,2511,679,3189,1193,2393,1227,3189,1257,193,3055,3189,1383,1229,1019,3189,1445,1229,3185,3189,1515,67,535,3189,1565,2909,3029,3189,1597,2543,2185,3189,1635,2211,3375,3189,1801,719,3155,3189,1801,3189,3155,3185,1891,545,2835,3185,1891,2647,1141,3189,1893,3429,271,3189,1943,1061,577,3189,1943,1229,2709,3189,1943,1769,577,3189,2039,2449,2491,3189,2285,3189,1021,3189,2285,3429,1019,3189,2285,3429,1021,3189,2293,3153,935,3189,2363,1227,931,3189,2371,1229,2211,3189,2371,2451,2285,3189,2371,2451,3053,3189,2371,2915,1143,3189,2559,1229,2649,3189,2563,3429,3077,3189,2691,1229,2211,3189,2691,3283,2531,3189,2719,917,3513,3189,2719,1067,2845,3185,2791,545,2917,3189,2969,2565,375,3189,2969,2709,2281,3189,2969,3189,2563,3189,3001,2733,1081,3189,3143,1229,615,3189,3143,2455,89,3189,3143,3189,3049,3189,3143,3437,577,3189,3175,95,2285,3189,3175,2115,3447,3189,3175,3429,2285,3189,3185,909,3049,3189,3199,3189,3221,3189,3241,2159,577,3189,3241,3437,577,3189,353,3189,3147,3189,3517,2211,2285,3185,103,2317,2559,3189,531,2563,181,3189,931,1485,3257,3185,1199,963,3015,3185,1199,1091,3015,3185,1199,1213,3189,3185,1199,2375,951,3185,1199,2563,2387,3185,1199,3175,3049,3185,1199,3175,3227,3185,1199,3443,3049,3185,1199,3443,3227,3185,1653,2265,755,3185,2265,333,755,3189,2515,3429,1113,3189,2563,3453,3049,3189,3077,3175,3049,3189,3077,3175,3227,3185,3077,3443,3049,3185,3547,2563,2629,3189,2563,1227,131,3189,693,2293,2375,3189,1559,2147,1197,3189,2835,1609,535,3189,3155,1067,1593,3189,3189,193,2533,2191,2255,1483,1635,3183,397,1227,25,3183,577,1227,1161,3183,631,1227,2985,3183,1095,1227,1139,3183,3571,1227,1179,3183,365,2211,2285,3183,553,3081,1523,3183,2253,3283,1085,3183,2565,2925,1465,3183,3081,3237,1523,3183,3049,2969,333,3187,951,2933,3407,3187,1021,2985,3045,3187,1133,1227,1133,3187,1143,677,2355,3187,1229,1191,333,3187,1485,721,2591,3187,1483,1465,3049,3187,1685,3011,1653,3187,2981,2565,2943,3187,2281,3189,337,3187,2295,2281,2549,3187,2387,2647,1071,3187,2559,1503,527,3187,2593,1161,2255,3187,2631,1143,2631,3187,2631,1227,2631,3187,2631,2983,3107,3187,2939,3429,3391,3187,3107,2983,3107,3187,3153,3185,1943,3187,3457,2733,2311,3187,635,2965,3419,3187,1139,781,473,3187,1237,781,473,3187,3223,781,473,3187,1711,3187,1609,3185,181,3265,2791,3185,2293,2825,887,3185,2531,1229,2371,3185,2241,2723,251,3185,3051,397,761,3185,3051,1039,761,3185,3051,3265,761,3185,3187,1719,85,3199,887,3049,2651,3199,1587,1227,915,3199,1587,1227,1163,3199,1587,2581,1227,3191,2977,321,945,3199,271,3153,501,3199,501,3153,271,3199,799,2939,3049,3195,3519,781,2191,3193,1081,3221,1563,3193,2185,1465,1635,3193,1019,545,3031,3193,441,3145,2293,3193,3045,1883,3049,3193,3143,131,3049,3193,3247,2045,803,3197,897,2395,3353,3197,1227,3319,887,3197,3541,1227,1209,3197,529,295,3107,3195,643,2511,1559,3197,907,2191,2285,3197,1597,225,781,3195,1653,2835,2205,3197,3107,125,3045,3197,3107,2393,1685,3197,1113,2295,3393,3197,1241,2281,3425,3209,761,241,3377,3203,3045,2187,1227,3203,3045,2657,1227,3203,1671,3429,1227,3203,2115,1465,643,3203,2211,1465,2915,3203,3203,761,1199,3203,473,3187,801,3203,473,3187,1237,3207,2593,3149,2643,3205,509,2393,1559,3205,509,2393,3013,3205,661,2393,1559,3205,661,2393,3013,3205,801,3239,2393,3205,1145,1483,653,3205,1139,501,2569,3205,1187,1019,2035,3205,1769,591,1689,3205,2299,2831,139,3205,2357,717,1191,3205,2563,661,1207,3205,2791,333,3267,3205,2791,451,2355,3205,2791,2635,1763,3205,2791,2635,2355,3205,2999,717,547,3205,3267,717,2559,3219,3437,1181,1181,3223,1115,1227,1133,3223,3143,3223,3049,3221,417,193,3079,3221,2459,3239,1563,3221,931,2451,1265,3219,2533,3049,229,3219,3425,2177,1793,3227,1419,3187,1229,3227,1191,545,3095,3227,827,571,1197,3227,2221,1077,597,3233,131,3231,751,3227,153,1269,347,3227,2581,1011,2999,3231,577,747,2567,3231,1155,2973,3187,3231,1343,2969,3049,3231,2281,131,3205,3231,2451,3231,1507,3231,2565,3429,2285,3231,2943,2969,3049,3231,2981,1313,335,3231,3107,3231,2387,3229,3105,3483,3049,3237,2563,3491,3049,3237,3221,1313,907,3237,3267,1559,781,3237,323,3145,1635,3237,781,3145,2811,3237,931,717,3049,3237,931,3145,3049,3237,2593,3145,2809,3237,2937,3145,3049,3237,3227,3507,803,3241,3153,175,907,3241,3153,2099,907,3237,2215,3257,2533,3237,2215,3551,2137,3237,2215,3551,3105,3237,1803,857,507,3237,445,2825,2563,3241,2563,3025,2977,3241,2563,3029,3049,3237,2565,323,799,3237,2565,2969,3419,3241,347,2291,1181,3241,677,2559,2491,3237,2293,3237,2281,3241,2355,1343,2563,3241,285,781,3443,3241,285,3265,3443,3241,1597,3429,711,3241,2447,781,1559,3241,3443,781,285,3241,3049,2635,2295,3241,193,1209,2357,3241,3021,3101,2791,3239,3429,2969,535,3239,3425,1201,3011,3239,2293,909,3241,3239,1829,333,3009,3239,1829,333,3009,3239,85,3015,635,3239,1685,3239,669,3239,1973,2241,1151,3253,1147,661,2835,3253,1147,1597,2989,3253,1249,1131,1069,3253,1793,3251,1641,3253,2265,3239,1187,3247,2375,2189,3049,3247,1173,1229,1463,3247,1769,163,3205,3247,1803,2281,3237,3247,2265,1559,1187,3247,2265,1559,2265,3247,3251,1559,295,3251,193,1161,2255,3251,417,193,3079,3251,2281,2185,1141,3249,2559,3283,545,3257,729,2451,3379,3257,527,431,2285,3257,1597,781,3265,3257,1597,3429,2779,3257,1635,2549,1039,3257,1635,3055,323,3257,1785,2549,1039,3257,3271,377,2421,3257,3437,2529,947,3257,3491,1081,3393,3257,3407,3253,2821,3271,2835,3475,3011,3271,3271,323,323,3265,3049,3241,2197,3265,3049,3241,2569,3265,1019,3207,451,3265,1019,3013,3205,3265,1139,3207,801,3265,1881,3429,271,3265,2447,781,1559,3265,2593,2989,1247,3265,2875,2979,1247,3269,2549,191,3087,3267,1141,2177,1793,3267,3425,2177,1793,3275,1127,1741,715,3283,323,3283,799,3283,857,2243,2973,3283,857,3283,2973,3283,1229,2945,3517,3283,2295,3283,343,3283,3021,3283,3143,3283,3189,95,2675,3283,3447,801,3447,473,781,1237,575,473,1541,1019,3417,473,1701,465,687,473,2451,1139,2973,473,2451,1237,2973,3305,1113,1435,1139,3305,1113,1435,1139,3305,1131,1435,1139,3305,2651,1435,1139,3305,2975,1435,1139,3305,2103,2355,2971,3301,2549,3243,801,3309,951,2591,247,3309,2105,717,669,3309,2105,3187,669,3313,305,3145,55,3313,1229,2917,2661,3319,2503,717,3049,3331,1695,553,1515,3341,323,803,3237,3351,2561,2871,1197,3345,2849,635,2111,3345,2849,635,2795,2777,2989,3427,3237,3371,3371,3517,1011,1891,1183,3005,2933,3371,3143,2293,2643,3371,3265,1227,2371,3369,1169,677,2185,3369,1169,2211,2185,3369,1169,3185,2185,3369,2835,1483,3107,3369,1597,2835,1181,3369,1597,2835,1181,3367,2791,635,577,3367,711,2929,1121,3379,3147,1597,1209,3379,1237,3025,2393,3379,2723,3153,1563,3379,1769,1179,3391,3379,1769,3389,3391,3377,45,2565,761,295,427,193,1449,295,689,1733,2305,295,857,535,1353,3377,1115,333,2529,295,1229,3429,1141,295,1769,639,2935,3377,1891,2451,1449,295,2115,1465,643,295,2559,197,2649,295,2559,1229,2565,295,2553,1141,2371,295,2681,3251,1641,295,3077,2503,2973,3377,3229,3231,3087,3377,3229,3571,107,295,3361,3077,789,295,3425,1229,29,3375,2187,2567,1229,3389,3009,1811,2041,3389,2299,1811,2281,3389,553,2471,2933,3385,887,3049,2513,3393,359,3145,1827,3393,359,3239,2973,3393,359,3429,323,3393,359,3571,3545,3393,359,3571,3545,3393,615,801,2675,3391,715,3539,3429,3393,845,3407,1635,3393,1143,323,2491,2529,1161,2933,2565,3393,1183,679,3427,3393,1187,643,2593,3393,1187,2991,2565,3393,1239,3447,951,2529,3169,2973,635,3393,295,195,655,3393,3541,801,2675,3393,1615,2185,1733,3393,1615,2185,1733,3397,3189,2439,1597,3395,1695,591,715,3391,2593,1483,2643,3411,2661,1205,67,3411,2835,3111,2809,3411,3081,1707,3475,3411,3015,131,1597,3411,3305,2563,737,3409,827,3429,363,3409,857,2187,3107,3409,857,3197,3107,3409,1559,2589,2563,3409,3143,2589,1559,3407,177,2565,1609,3407,2281,343,1545,3419,1691,623,1943,3419,2185,635,3145,3419,2215,635,1035,3419,2215,635,2555,3419,3143,635,3145,3417,669,827,1401,3417,931,1811,1609,3417,1227,2393,3045,3417,1891,1463,3257,3415,535,745,2935,3415,931,1485,2991,3415,931,1811,1609,3415,2565,2553,3049,3415,3433,1143,1085,3415,3433,2991,1085,3415,3433,3165,983,3429,2649,1733,2719,3429,2975,2185,441,3429,1145,637,1229,3429,1145,3087,1229,3429,1145,3571,1229,3427,2207,631,781,3427,3419,3389,2985,3427,3419,527,2985,3421,235,2967,871,3429,1487,2901,1415,3429,511,3239,113,3429,1559,3175,193,3429,2561,289,3175,3429,2561,1187,895,3429,2767,3383,2349,3429,2767,3383,3157,3429,3081,2563,1495,3429,3185,3049,1827,3423,143,2689,567,3423,729,193,693,3423,545,717,3049,3423,1187,1515,535,3423,2179,2969,1077,3423,2259,1205,3049,3423,3143,907,1131,3423,727,359,931,3423,727,403,931,3423,2299,757,3163,3427,95,1197,761,3427,1635,3265,3149,3423,547,2651,3013,3427,631,1079,2985,3427,2507,1661,1785,3427,2507,2643,1785,3427,2581,1079,1181,3427,2833,645,715,3425,535,193,3185,3425,2649,1733,2719,3425,1165,3049,1351,3425,1187,3049,751,3425,1707,3049,1483,3425,1145,3517,1229,3425,173,1227,2355,3425,133,1531,445,3425,2623,1803,1597,3425,725,3305,2103,3425,15,1827,3049,3425,3247,3049,751,3425,1165,635,1229,3425,347,2963,2889,3425,3423,2709,2845,3437,1559,579,3453,3437,1559,579,3453,3437,1559,1145,1139,3437,1559,3189,1067,3437,615,2355,1147,3437,1541,3239,3077,3433,635,553,635,3433,917,553,917,3433,377,2317,3081,3433,1011,3433,2971,3433,1559,951,985,3433,1685,473,2281,3433,2567,3429,577,3433,3055,473,3257,3433,3249,3429,577,353,243,1227,3175,353,407,605,1151,353,407,605,2975,353,407,605,1151,353,407,605,2975,353,547,801,3393,353,647,2791,2371,353,943,1463,2197,353,951,605,3545,353,951,605,1239,353,951,605,1239,353,951,1463,1239,353,951,509,1239,353,951,2979,1239,353,951,605,3545,353,951,605,3545,353,1141,175,2187,353,1161,2791,2371,353,1201,1165,3519,353,1201,2979,2749,353,1485,1227,3175,353,1613,605,3147,353,1613,605,3375,353,1613,605,3147,353,1613,605,3375,353,1613,801,3375,353,1769,1141,3145,353,2025,1463,3313,353,2105,3183,1779,353,2189,1595,3311,3433,2187,3117,1769,353,2451,605,2647,353,2451,605,2647,353,2507,801,1545,353,2507,801,2631,353,2507,1263,1545,353,2581,1465,3541,353,2949,1227,1721,353,2985,1465,1141,3433,2985,1465,2197,353,2985,1465,2555,353,2985,1465,3175,353,3055,2185,907,353,3143,605,3375,353,3143,605,3375,353,3199,1523,615,353,3247,605,2709,353,3247,605,2709,353,3407,2185,907,353,3417,2185,907,3433,3427,1463,3345,353,3541,717,1483,353,3541,1463,2985,353,3541,175,2187,3433,3541,175,2985,353,3541,3189,1141,3447,951,3393,1239,3447,1435,905,2293,3445,3049,2985,193,3443,677,3175,2651,3443,799,3175,3049,3443,827,2985,2777,3443,3175,1165,3049,3457,1711,3077,1069,3457,2039,3239,661,3457,2039,3239,661,3457,3265,2529,1161,3457,2397,935,2981,3457,2397,3189,1187,3457,2281,2969,3145,3457,2281,2969,3187,3457,887,103,2311,3457,1541,3239,1635,3457,1559,131,3477,3457,2255,1561,1245,3457,491,1463,1145,3457,1145,491,1465,3457,1145,2651,1463,3457,1145,3521,1463,3457,1463,491,1145,3457,1507,2985,325,3457,1507,3015,325,3457,1503,491,677,3457,3457,1179,1505,3457,3457,3021,1505,3451,1427,509,2631,3451,1145,3205,139,3451,1559,2925,739,3451,1785,2533,113,3453,1187,2933,1997,3453,2791,2933,1997,3453,3443,2933,1997,3453,3045,2753,1227,3453,2733,65,1169,3453,297,2917,655,3471,193,2891,1649,3471,2021,799,1481,3467,3011,1633,1193,3467,3011,1637,1193,3479,3175,3429,2561,3477,635,2211,1485,3475,1419,3475,2291,3477,2919,1785,1181,3487,3143,97,3011,3487,1801,3577,3155,3483,731,359,931,3483,2187,2881,1943,3495,781,1915,1207,3495,871,1231,579,3495,871,1231,577,3495,871,2281,3247,3495,2295,3451,2565,423,781,3001,323,417,781,3001,3407,417,805,187,2693,417,805,187,2779,417,1659,897,2241,417,1659,2845,897,417,1943,731,3435,417,1943,2487,3107,417,1943,3013,2565,417,3045,669,3541,417,3045,2015,3107,417,3045,2187,3107,417,3045,3197,2187,417,3065,609,3541,417,3065,669,3541,417,3209,669,3541,3491,3199,1635,1123,3511,1201,1597,3445,3511,1201,1597,3445,3511,3325,3511,3305,3507,721,643,3049,3507,727,1785,2591,3507,727,1827,2591,3507,1201,187,805,3521,3521,3187,2281,3521,1241,193,2205,3521,3457,1179,1505,3519,3257,2569,3265,3517,193,1505,1483,3517,831,679,1635,3517,3049,2185,2565,3517,2281,683,799,3517,2293,1227,1483,3517,2293,2185,1227,3517,2935,1193,1139,3517,2963,417,3091,3517,3183,3189,1227,3517,3249,3517,3185,3517,3387,1649,733,3517,3049,2969,1141,3517,2695,2969,1141,3517,3185,2925,3049,3517,1523,727,3427,3527,1365,1141,2569,3525,2293,2927,3423,3535,1081,1565,177,3535,2935,2511,1141,3535,2935,2511,3389,3545,333,193,763,3545,3571,3393,359,3545,1575,3429,1997,3555,177,2281,1133,3555,177,2281,2677,3551,177,2293,1133,3551,627,1731,775,3551,905,3427,665,3551,1165,3143,2939,3551,1165,3157,847,3551,1803,2293,1133,3555,1943,1181,1165,3551,2507,2443,985,3551,2791,1731,775,3551,2835,1227,2709,3555,2835,1731,777,3551,3045,443,907,3551,3105,3237,3247,3559,1229,97,553,3571,3545,3393,359,3571,1229,1625,2943,3571,3545,3393,359,3579,3429,3229,2975,3579,3429,3229,2975,3577,1151,3189,2515,3577,1397,2579,635,3577,2533,545,143,3577,2533,545,2049,3577,193,353,2979,3577,2569,193,1227,3577,3143,2189,3049,59,1229,193,1481,2563,59,3517,1703,3189,2131,59,721,827,75,547,77,77,1561,2563,2647,77,77,1561,2563,2647,107,1229,2565,177,2299,193,3051,717,3143,3433,423,1067,3513,567,3147,445,781,193,1313,3377,513,3129,3513,2511,1151,511,2565,193,1067,2845,531,3513,3175,3423,2971,577,2281,2971,1485,3105,631,2977,1827,105,1311,631,2977,1827,105,2355,683,2179,1455,3021,3205,689,2565,3049,2211,1485,729,193,397,1561,721,767,3519,2971,1485,3105,767,3519,3267,627,1625,829,3129,3521,2511,1151,851,2507,1663,1449,1943,875,2511,3189,257,1585,917,2103,515,1485,2589,935,1201,3185,1161,907,1019,631,2569,3513,1061,1079,2565,2949,645,1141,1139,1139,2393,1607,1543,1139,781,2465,2285,3175,1149,77,3189,2885,3519,1165,527,1507,2835,2891,1169,1711,2969,2303,3519,1199,3049,2969,1013,193,1229,1943,1415,193,3475,1229,3189,59,2565,139,1229,993,775,831,3241,1227,2147,3487,3045,1229,1227,2563,2187,2563,519,1227,1763,3237,2631,1133,1561,721,193,2825,1793,1587,2957,2961,1183,803,1653,3035,721,1141,1079,1729,1057,2185,2849,1943,1789,193,3383,2835,1851,1787,3189,129,3513,1117,1977,511,193,3433,1559,2023,2651,1269,613,1607,2049,935,3397,3021,3205,2091,3189,129,3513,1117,2159,931,3513,2159,2609,2185,1943,643,993,2593,2285,781,2465,1635,3175,2281,1653,3237,2743,2565,2281,1653,3237,2743,2647,2355,193,1313,1687,3011,2355,2559,2393,3389,1597,2371,1229,1161,2355,3045,2451,67,1561,2563,1001,2451,2651,717,1059,3049,2521,1891,3005,781,661,2569,3521,511,1279,1343,2563,1891,1229,193,3239,2651,1653,1943,3429,2735,2845,2269,133,2581,3001,2971,1407,721,2507,1661,2969,789,375,339,3571,2969,2825,3189,3175,1635,3011,2487,3231,1189,2565,3011,2487,3231,1189,2565,3079,1803,193,1313,601,3115,3227,193,2825,2187,3125,551,1485,3125,985,3189,417,3513,1663,1661,3189,955,3513,513,2649,3189,2549,639,2565,529,3189,2563,75,1113,715,3189,2871,1561,719,2973,3189,2971,3009,3189,2971,3189,1067,1593,1079,2119,3231,129,3513,3231,3147,3385,1067,1593,1079,2119,3383,2451,193,3383,1507,3411,2355,193,1587,3011,3423,1559,731,589,1145,3427,99,191,3453,1133,3427,547,3051,1141,1079,3577,2507,935,1071,635,59,831,3519,513,193,3383,59,3517,1703,1161,3189,2131,187,3265,2975,1161,2265,2791,193,729,907,193,3081,1201,323,907,3513,1429,3429,1649,349,193,1515,639,3391,3535,349,2355,193,2849,903,2833,513,3435,1499,359,2051,3521,739,2185,545,717,3049,3429,745,295,3001,597,511,3237,781,1653,1943,193,3015,1139,781,1943,1653,193,3015,1139,781,277,3577,3237,1085,3077,847,193,333,581,193,1227,847,193,459,581,193,1227,847,193,459,581,193,1227,857,1145,3149,3219,1943,549,963,2973,935,3369,1561,1169,3049,193,553,3177,857,857,1019,985,193,3319,2981,1559,1079,803,3079,2933,2543,2185,1139,2355,3517,3231,2791,3011,1173,985,193,1883,3023,1559,1229,1943,719,1071,3429,1483,1227,991,1785,2393,353,2281,1559,3143,3427,3237,3425,3397,1789,3391,2563,2833,963,1019,1943,669,577,2451,613,1607,1943,2835,193,661,1653,1741,1943,2835,193,661,1653,3561,2219,193,3429,3187,2933,3429,2263,1169,193,2393,1145,1169,2281,2355,193,2393,2281,1143,2349,967,2511,551,1653,3187,2451,3393,887,2933,1503,3189,2491,1145,3149,3219,1943,549,2565,2935,3429,1143,3397,2649,2821,1161,781,1227,2565,3241,2939,1139,489,2923,3429,2285,2935,2973,637,1733,3393,3169,3189,1365,2563,2835,1635,577,3251,2631,193,1227,1197,1133,53,1453,1633,179,577,2099,1373,75,193,1623,3241,3425,2791,2991,131,2471,3147,1209,3511,1649,2311,191,545,295,333,761,1013,993,193,1161,935,209,193,1635,1463,193,2935,2973,637,1733,3393,3169,305,1485,2969,2355,1785,3577,935,379,2559,1943,643,193,2023,1071,519,3391,1541,539,2291,3577,3325,553,2339,2355,375,2243,2339,2355,577,3183,443,2565,1189,511,3367,623,2991,55,715,1955,2463,3445,683,3049,193,3185,131,3517,131,991,3391,907,2835,1597,3391,2387,3049,67,1485,3397,75,1229,2563,1013,1453,413,59,2925,1453,2827,1013,3045,3577,1453,1605,831,757,1039,2801,129,3513,2589,2801,3147,3029,2791,3519,3187,1543,2791,2991,3029,2791,3519,3187,1543,3457,1057,1191,1541,981,2565,2981,1541,2355,1191,1541,981,3091,2981,1541,2355,1201,3389,3231,1229,1201,3389,3559,1201,2371,3231,1229,1201,2371,3559,1205,1229,193,349,349,725,1229,1229,775,3429,1143,2211,107,2523,1563,25,1081,1769,3229,3189,495,1609,657,511,2565,193,1067,2845,1687,2791,2991,3429,511,193,2933,1703,1685,1067,3513,3189,57,3463,1943,193,1023,2631,2219,25,2835,2069,1453,805,2355,3229,3393,177,2211,3189,727,717,627,2299,2549,2215,1169,2581,2991,2969,2427,177,2215,3437,875,3231,2215,3437,2581,2265,935,1827,653,1155,2971,2565,2355,2559,1019,375,193,3015,775,2565,761,3429,2935,683,1279,1343,2799,553,1427,1485,139,2565,211,2821,2185,3143,717,935,2185,3049,2969,1313,1821,1019,1081,1635,2291,3045,173,981,3091,3045,3165,3189,3167,2355,897,717,193,1597,347,3189,305,2791,3519,3189,305,323,3189,853,1633,179,3189,853,1329,3189,1365,2563,2833,1635,1453,577,3189,2205,193,1635,3091,1337,577,3189,3175,1635,3429,2791,2991,2285,3231,2205,1873,2567,949,2871,1785,3251,2631,1227,193,553,1197,1133,3251,2631,1227,193,1515,1197,1133,3285,3011,645,1485,1013,339,397,3379,887,349,1229,1485,887,593,3379,887,349,1229,1485,887,3559,3395,2507,2925,3391,1811,2507,847,3411,1165,715,661,1661,1677,717,3427,3433,3189,2507,193,3433,2355,3451,1427,513,2631,3189,299,1337,3559,2957,3429,3185,193,3283,1229,9,1415,181,1495,1019,2281,3377,961,67,347,831,2835,875,1197,3189,193,193,2563,2355,1165,3231,3081,347,2565,193,3429,2355,1165,3231,3081,347,2565,349,3391,2917,1485,2229,3391,967,1485,367,2979,801,3527,551,1161,887,2157,3049,67,1485,3397,75,3237,1229,2563,1139,1209,781,3483,3391,1669,1435,3437,1421,971,1647,3013,349,2791,687,2387,2063,1453,1019,2511,2063,193,1515,1749,2063,1453,1019,2511,2063,193,1515,2647,3189,57,3165,2561,1279,3189,57,2709,79,2189,2563,2835,513,3517,1143,551,1181,539,3185,2791,1019,2511,3483,3185,2791,3437,131,1601],w=null;this.GetPinYinList=function(g,c){c=void 0===c?0:c;if(null==w){var e=new z;e.SetKeywords(A);w=e}c&&(c=1);for(var e=[],b=0;b<g.length;b++)e.push(null);for(var a=w.FindAll(g),b=-1,h=0;h<a.length;h++){var k=a[h];if(k.Start>b){for(b=0;b<k.Keyword.length;b++)e[b+k.Start]=p[C[b+B[k.Index]]+c];b=k.End}}for(b=0;b<g.length;b++)null==e[b]&&(a=g.charCodeAt(b),13312<=a&&40917>=a&&(a-=13312,h=r[a],r[a+1]>h&&(e[b]=p[y[h]+c])));return e};this.GetPinYin=function(g,c){(c=void 0===c?0:c)&&(c=1);for(var e=this.GetPinYinList(g,c),b=\"\",a=0;a<e.length;a++)b=null!=e[a]?b+e[a]:b+g[a];return b};this.GetFirstPinYin=function(g,c){(c=void 0===c?0:c)&&(c=1);for(var e=this.GetPinYinList(g,c),b=\"\",a=0;a<e.length;a++){var h=e[a];null!=h&&(b+=h[0])}return b};this.GetAllPinYin=function(g,c){(c=void 0===c?0:c)&&(c=1);var e=g.charCodeAt(0);if(13312<=e&&40917>=e){var b=e-13312,e=[],a=r[b],b=r[b+1];if(b>a)for(;a<b;a++){var h=p[y[a]+c];-1==e.indexOf(h)&&e.push(h)}return e}return[]};this.GetPinYinListForName=function(g,c){(c=void 0===c?0:c)&&(c=1);var e=[],b,a;if(1<g.length&&(b=g.substring(0,2),a=x[b])){for(b=0;b<a.length;b++){var h=a[b];e.push(p[h+c])}if(2<g.length)for(b=g.substring(2),a=this.GetPinYinList(b,c),b=0;b<a.length;b++)h=a[b],e.push(h);return e}b=g.substring(0,1);if(a=x[b]){for(b=0;b<a.length;b++)h=a[b],e.push(p[h+c]);if(1<g.length)for(b=g.substring(1),a=this.GetPinYinList(b,c),b=0;b<a.length;b++)h=a[b],e.push(h);return e}return this.GetPinYinList(g,c)};this.GetPinYinForName=function(g,c){(c=void 0===c?0:c)&&(c=1);return this.GetPinYinListForName(g,c).join(\"\")}}", "static final private public function m104() {}", "__previnit(){}", "function c0_PG_gettable( ch ) {\r\nvar rc='';\r\n\r\nvar Event_Name='';\r\nvar Event_Site='';\r\nvar Event_Date='';\r\nvar Round='';\r\nvar White='';\r\nvar Black='';\r\nvar Result='';\r\nvar ECO='';\r\nvar WhiteElo='';\r\nvar BlackElo='';\r\nvar Game_Date='';\r\nvar Source_Date='';\r\n\r\nvar AddInfo='';\r\n\r\nvar htms='';\r\n\r\nc0_PGN_header=[];\r\n\r\nPGN_text= c0_ReplaceAll( PGN_text,' ', ' ' );\r\nPGN_text= c0_ReplaceAll( PGN_text, '–', '-');\r\n\r\nfor(var str2=PGN_text;;) {\r\n var at2=str2.indexOf('[');\r\n if(at2<0) break; \r\n var at2_1=str2.indexOf('(');\r\n var at2_2=str2.indexOf('{');\r\n if((at2_1>=0 && at2_1<at2) || (at2_2>=0 && at2_2<at2)) break; \r\n var buf2= str2.substr(at2+1);\r\n buf2= buf2.substr(0, buf2.indexOf(']') );\r\n str2= str2.substr(at2+buf2.length+2);\r\n\r\n c0_PGN_header.push(buf2);\r\n buf2= c0_ReplUrl(buf2); \r\n buf2= c0_ReplaceAll( buf2,'\"','' );\r\n buf2= c0_ReplaceAll( buf2, \"'\" ,'' );\r\n\r\n var buf3=buf2.toUpperCase();\r\n\r\n var at9 = buf3.indexOf('SETUP ');\r\n if(at9>=0 && at9<3) { if( ch==2 ) { c0_fischer=(buf2.substr(at9+6,1)==\"1\") } }\r\n\r\n var at3 = buf3.indexOf('FEN ');\r\n if(at3>=0 && at3<3)\r\n { if( ch==2 && c0_start_FEN.length==0 ) { c0_start_FEN=buf2.substr(at3+4); c0_set_start_position(\"\"); } }\r\n else {\r\n var at3 = buf3.indexOf('EVENT ');\r\n if(at3>=0) Event_Name=buf2.substr(at3+6);\r\n else {\r\n at3 = buf3.indexOf('SITE ');\r\n if(at3>=0) Event_Site=buf2.substr(at3+5);\r\n else {\r\n at3 = buf3.indexOf('DATE ');\r\n if(at3>=0 && at3<3) Game_Date=buf2.substr(at3+5);\r\n else {\r\n at3 = buf3.indexOf('ROUND ');\r\n if(at3>=0) Round=buf2.substr(at3+6);\r\n else {\r\n at3 = buf3.indexOf('WHITE ');\r\n if(at3>=0) White=buf2.substr(at3+6);\r\n else {\r\n at3 = buf3.indexOf('BLACK ');\r\n if(at3>=0) Black=buf2.substr(at3+6);\r\n else {\r\n at3 = buf3.indexOf('ECO ');\r\n if(at3>=0) ECO=buf2.substr(at3+4);\r\n else {\r\n at3 = buf3.indexOf('WHITEELO ');\r\n if(at3>=0) WhiteElo=buf2.substr(at3+9);\r\n else {\r\n at3 = buf3.indexOf('BLACKELO ');\r\n if(at3>=0) BlackElo=buf2.substr(at3+9);\r\n else {\r\n at3 = buf3.indexOf('EVENTDATE ');\r\n if(at3>=0) Event_Date=buf2.substr(at3+10);\r\n else {\r\n at3 = buf3.indexOf('SOURCEDATE ');\r\n if(at3>=0) Source_Date=buf2.substr(at3+11);\r\n else {\r\n at3 = buf3.indexOf('RESULT ');\r\n if(at3>=0) Result=buf2.substr(at3+7);\r\n else {\r\n AddInfo+=((AddInfo.length>0) ? '<BR>' : '' ) + buf2;\r\n }}}}}}}}}}}}}\r\n }\r\n\r\nif(ch==1)\r\n{\r\nif((c0_relative_size_procents<90 && c0_headsize==0) || c0_headsize==10)\r\n {\r\n htms='<TABLE id=\"TBH\" width=\"80\" border=\"0\" bgcolor=\"#CCCC99\" style=\"cursor:move;border:1px solid #666633\" onmouseover=\"c0_over_head(1,99);\">';\r\n if(Round.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">Round: ' + Round + '</font></TD>';\r\n else htms+='<TR><TD id=\"TBH\"><font size=\"3\">more</font></TD>';\r\n htms+='<TD id=\"TBH\"><font size=\"3\">»</font></TD></TR>';\r\n htms+='</TABLE>';\r\n }\r\nelse\r\n {\r\n htms='<TABLE id=\"TBH\" width=\"160\" border=\"0\" bgcolor=\"#CCCC99\" ';\r\n if(c0_headsize==1) htms+=' onmouseout=\"setTimeout(' + \"'\" + 'c0_over_head(0,c0_headsize);' + \"'\" + ',2000);\" ';\r\n htms+=' style=\"cursor:move;border:1px solid #666633\" >';\r\n if(Event_Name.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">Event: ' + Event_Name + '</font></TD></TR> ';\r\n if(Event_Date.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">Event date: ' + Event_Date + '</font></TD></TR>';\r\n if(Event_Site.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">Site: ' + Event_Site + '</font></TD></TR>';\r\n if(Game_Date.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">Date: ' + Game_Date + '</font></TD></TR>';\r\n if(Round.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">Round: ' + Round + '</font></TD></TR>';\r\n if(ECO.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">ECO: ' +\r\n\t'<a title=\"Quick link more about...\" target=\"blank\" href=\"http://www.chessgames.com/perl/chessopening?eco=' + ECO + '\">' + ECO + '</a>' +'</font></TD></TR>';\r\n if(Source_Date.length>0 && Event_Date.length==0 && Game_Date.length==0)\r\n\t\t htms+='<TR><TD id=\"TBH\"><font size=\"3\">Source Date: ' + Source_Date + '</font></TD></TR>';\r\n if(AddInfo.length>0) htms+='<TR><TD id=\"TBH\"><font size=\"3\">' + AddInfo + '</font></TD></TR>';\r\n htms+='<TR><TD id=\"TBH\" align=\"center\" onmouseover=\"c0_over_head(10,99);\"><font size=\"3\">⌂</font></TD></TR>';\r\n htms+='</TABLE>';\r\n }\r\n rc=htms;\r\n}\r\n\r\nif(ch==2 || ch==8)\r\n{\r\n str2= c0_ReplUrl(str2);\r\n if(ch==2)\r\n {\r\n c0_errflag=c0_PG_parseString(str2);\r\n if(c0_fischer && c0_fischer_cst.length>0) c0_fischer_adjustmoved();\r\n }\r\n var at3 = str2.indexOf('*');\r\n if(at3>=0) Result=\"not finished\";\r\n var at3 = str2.indexOf('1/2');\r\n if(at3>=0) Result=\"1/2-1/2\";\r\n var at3 = str2.indexOf('1-0');\r\n if(at3>=0) Result=\"1:0\";\r\n var at3 = str2.indexOf('1:0');\r\n if(at3>=0) Result=\"1:0\";\r\n var at3 = str2.indexOf('0-1');\r\n if(at3>=0) Result=\"0:1\"\r\n var at3 = str2.indexOf('0:1');\r\n if(at3>=0) Result=\"0:1\";\r\n\r\n\r\n if((c0_relative_size_procents<40 && c0_pgnsize==0) || c0_pgnsize==10)\r\n {\r\n htms='<DIV id=\"TBP2\" style=\"cursor:move;border:1px solid #666633;width:100;height:100;overflow-y:scroll;overflow-x:scroll;\">';\r\n htms+='<TABLE id=\"TBP\" width=\"100\" height=\"100\" bgcolor=\"#FFFFCC\" style=\"cursor:move; border:0px solid #666633\">';\r\n htms+='<TR>';\r\n htms+='<TD id=\"TBH\" onmouseover=\"c0_over_pgn(1,99);\"><font size=\"3\">»</font></TD></TR>';\r\n htms+='<TR><TD id=\"TBP\"><font size=\"3\"><b>' + White + (WhiteElo.length>0 ? '(Elo '+WhiteElo+')' : '' ) + ' - </b></font>';\r\n htms+='<font size=\"3\"><b> (' + Result + ') - </b></font>';\r\n htms+='<font size=\"3\"><b>' + Black + (BlackElo.length>0 ? '(Elo '+BlackElo+')' : '' ) + '</b></font>';\r\n htms+='<br>';\r\n str2=c0_PG_3;\r\n htms+='<font size=\"3\">' + str2 + '</font>';\r\n htms+='</TD>';\r\n htms+='</TR></TABLE>';\r\n htms+='</DIV>';\r\n rc=htms;\r\n }\r\n else\r\n {\r\n\r\n if(c0_dh>0 || c0_screensizeW<c0_screensizeH)\r\n {\r\n var wH= c0_dh>0 ? c0_dh : parseInt( c0_screensizeH - 20 - ( c0_at_top + (332*(c0_relative_size_procents/100)*(c0_topview?1.8:1)) +50 ) );\r\n var wW= parseInt(c0_screensizeW-22);\r\n\r\n htms='<DIV id=\"TBP2\" style=\"cursor:move;border:1px solid #666633;width:' + wW.toString() + ';height:' + wH.toString() + '\">';\r\n htms+='<TABLE id=\"TBP\" width=\"' + wW.toString() + '\" height=\"' + wH.toString() + '\" bgcolor=\"#FFFFCC\" ';\r\n //if(c0_pgnsize==1) htms+=' onmouseout=\"setTimeout(' + \"'\" + 'c0_over_pgn(0,c0_pgnsize);' + \"'\" + ',4000);\" ';\r\n htms+=' style=\"cursor:move; border:0px solid #666633\">';\r\n htms+='<TR>';\r\n htms+='<TD id=\"TBP\"><font size=\"3\"><b>' + White + (WhiteElo.length>0 ? '(Elo '+WhiteElo+')' : '' ) + ' - </b></font>';\r\n htms+='<font size=\"3\"><b> (' + Result + ') - </b></font>';\r\n htms+='<font size=\"3\"><b>' + Black + (BlackElo.length>0 ? '(Elo '+BlackElo+')' : '' ) + '</b></font>';\r\n htms+='</TD>';\r\n htms+='<TD id=\"TZH\" width=\"10\" align=\"center\" onmouseover=\"c0_over_pgn(10,99);\"><font size=\"3\">⌂</font></TD>';\r\n htms+='</TR>';\r\n str2=c0_PG_3;\r\n htms+='<TR><TD id=\"TBP\"><font size=\"3\">' + str2 + '</font>';\r\n htms+='</TD>';\r\n htms+='</TR></TABLE>';\r\n htms+='</DIV>';\r\n\r\n rc=htms;\r\n }\r\n else\r\n {\r\n htms='<TABLE id=\"TBP\" width=\"180\" bgcolor=\"#FFFFCC\" ';\r\n //if(c0_pgnsize==1) htms+=' onmouseout=\"setTimeout(' + \"'\" + 'c0_over_pgn(0,c0_pgnsize);' + \"'\" + ',4000);\" ';\r\n htms+=' style=\"cursor:move;border:1px solid #666633\">';\r\n htms+='<TR><TD id=\"TBP\"><font size=\"3\">' + White + (WhiteElo.length>0 ? '<br>(Elo '+WhiteElo+')' : '' ) + '</font></TD>';\r\n htms+='<TD id=\"TBP\"><font size=\"3\">' + Black + (BlackElo.length>0 ? '<br>(Elo '+BlackElo+')' : '' ) + '</font></TD></TR>';\r\n htms+='</TABLE>';\r\n htms+='<TABLE id=\"TBP\" width=\"180\" bgcolor=\"#FFFFCC\" style=\"cursor:move;border:1px solid #666633\">';\r\n htms+='<TR><TD id=\"TBP\" align=\"center\"><font size=\"3\">' + Result + '</font></TD>';\r\n htms+='<TD id=\"TZH\" align=\"center\" onmouseover=\"c0_over_pgn(10,99);\"><font size=\"3\">⌂</font></TD></TR>';\r\n htms+='</TABLE>';\r\n\r\n str2=c0_PG_3;\r\n htms+='<DIV id=\"TBP2\" style=\"cursor:move;border:1px solid #666633;overflow-y:scroll;width:178;height:' + (c0_relative_size_procents<90 ? '80' : (c0_relative_size_procents<110 ? '200' : '340' ) ) + '\" >';\r\n htms+='<TABLE id=\"TBP\" width=\"100%\" bgcolor=\"#FFFFCC\" style=\"border:1px solid #666633\">';\r\n htms+='<TR><TD id=\"TBP\"><font size=\"3\">' + str2 + '</font></TD>';\r\n htms+='</TABLE></DIV>';\r\n htms+='';\r\n rc=htms;\r\n }\r\n\r\n }\r\n\r\n if(c0_PG_viewer) document.title = White + '-' + Black + ' (' + Result + ')';\r\n\r\n}\r\n return rc;\r\n}", "function o1084(o1)\n{\n try {\nfor (var o2 in o1)\n {\n try {\no3.o4(o2 + \" = \" + o1[o2]);\n}catch(e){}\n }\n}catch(e){}\n}", "transient final private protected public internal function m166() {}", "function c0_get_FEN()\r\n{\r\nvar c0_vert7=8;\r\nvar c0_horz7=1;\r\nvar c0_fs1=\"\";\r\nvar c0_em7=0;\r\n\r\nfor( var c0_vert7=8; c0_vert7>=1; )\r\n {\r\n for( var c0_horz7=1; c0_horz7<=8; c0_horz7++ )\r\n\t{\r\n\tvar c0_pos7 = String.fromCharCode(96+c0_horz7)+c0_vert7.toString();\r\n\tvar c0_at7=c0_position.indexOf( c0_pos7 );\r\n\tif( c0_at7>=0 )\r\n\t\t{\r\n\t\tif( c0_em7>0 ) { c0_fs1+=c0_em7.toString(); c0_em7=0; }\r\n\t\tvar c0_ch7=c0_position.substr( c0_at7-1, 1 );\r\n\t\tvar c0_color7=c0_position.substr( c0_at7-2, 1 );\r\n\t\tif( c0_color7==\"w\" ) c0_fs1+=c0_ch7.toUpperCase();\r\n\t\telse c0_fs1+=c0_ch7.toLowerCase();\r\n\t\t}\r\n\telse c0_em7++;\r\n\t}\r\n if( c0_em7>0 ) { c0_fs1+=c0_em7.toString(); c0_em7=0; }\r\n c0_vert7--;\r\n if(c0_vert7<1) break;\r\n c0_fs1+=\"/\";\r\n }\r\n\r\nc0_fs1+=\" \" + (( c0_sidemoves>0)? \"w\" : \"b\" ) + \" \";\r\n\r\nif( (c0_w00 || c0_wKingmoved || (c0_wLRockmoved && c0_wRRockmoved)) && \r\n (c0_b00 || c0_bKingmoved || (c0_bLRockmoved && c0_bRRockmoved)) ) c0_fs1+=\"- \";\r\nelse\r\n {\r\n if( !(c0_w00 || c0_wKingmoved) && !c0_wLRockmoved ) c0_fs1+=\"Q\";\r\n if( !(c0_w00 || c0_wKingmoved) && !c0_wRRockmoved ) c0_fs1+=\"K\";\r\n if( !(c0_b00 || c0_bKingmoved) && !c0_bLRockmoved ) c0_fs1+=\"q\";\r\n if( !(c0_b00 || c0_bKingmoved) && !c0_bRRockmoved ) c0_fs1+=\"k\";\r\n c0_fs1+=\" \";\r\n }\r\n\r\n var c0_enpass7=\"-\";\r\n\r\n if(c0_lastmovepawn>0)\r\n\t{\r\n\tvar c0_lmove7=c0_moveslist.substr( c0_moveslist.length-4, 4 );\r\n\tvar c0_vert7 = c0_lmove7.charCodeAt(1)\r\n\r\n\tif( c0_lmove7.substr(0,1)==c0_lmove7.substr(2,1) &&\r\n\t\t(c0_lmove7.charCodeAt(0)-96==c0_lastmovepawn) &&\r\n\t\t (( c0_lmove7.substr(1,1)==\"7\" && c0_lmove7.substr(3,1)==\"5\" ) ||\r\n\t\t ( c0_lmove7.substr(1,1)==\"2\" && c0_lmove7.substr(3,1)==\"4\" )) )\r\n\t{\r\n\t var c0_at7=c0_position.indexOf( c0_lmove7.substr(2,2) );\r\n\t if( c0_at7>=0 && c0_position.substr( c0_at7-1,1 )==\"p\" )\r\n\t\t{\r\n\t\tc0_enpass7=c0_lmove7.substr(0,1);\r\n\t\tif( c0_lmove7.substr(1,1)==\"7\" ) c0_enpass7+=\"6\"; else c0_enpass7+=\"3\";\r\n\t\t}\r\n\t}\r\n\t}\r\nc0_fs1+=c0_enpass7 + \" \";\r\n\r\nc0_fs1+=\"0 \";\t\t// position repeating moves....\r\n\r\nvar c0_mcount7=1;\r\nfor( var c0_i7=0; c0_i7<c0_moveslist.length; )\r\n\t{\r\n\tc0_i7+=4;\r\n\tif(c0_moveslist.substr(c0_i7,1)==\"[\") c0_i7+=3;\r\n\tc0_mcount7+=0.5;\r\n\t}\r\nc0_fs1+=(parseInt( c0_mcount7.toString() )).toString() + \" \";\r\n\r\nreturn c0_fs1;\r\n}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function c0_short2list()\r\n{\r\nc0_errflag=false;\r\nvar c0_1save_position=c0_position;\r\nvar c0_1save_sidemoves=c0_sidemoves;\r\nvar c0_1save_wKingmoved=c0_wKingmoved;\r\nvar c0_1save_bKingmoved=c0_bKingmoved;\r\nvar c0_1save_wLRockmoved=c0_wLRockmoved;\r\nvar c0_1save_wRRockmoved=c0_wRRockmoved;\r\nvar c0_1save_bLRockmoved=c0_bLRockmoved;\r\nvar c0_1save_bRRockmoved=c0_bRRockmoved;\r\nvar c0_1save_w00=c0_w00;\r\nvar c0_1save_b00=c0_b00;\r\nvar c0_1save_become=c0_become;\r\nvar c0_1save_become_from_engine=c0_become_from_engine;\r\nvar c0_1save_lastmovepawn= c0_lastmovepawn;\r\nvar c0_1save_moveslist= c0_moveslist;\r\n\r\nc0_moveslist = \"\";\t\t// will contain moves on return...\r\n\r\nif( c0_start_FEN.length>0 ) { c0_set_FEN( c0_start_FEN ); c0_fischer_adjustmoved(); }\r\nelse\r\n{\r\nc0_position = \"wpa2,wpb2,wpc2,wpd2,wpe2,wpf2,wpg2,wph2,\" +\r\n\"wRa1,wNb1,wBc1,wQd1,wKe1,wBf1,wNg1,wRh1,\" +\r\n\"bpa7,bpb7,bpc7,bpd7,bpe7,bpf7,bpg7,bph7,\" +\r\n\"bRa8,bNb8,bBc8,bQd8,bKe8,bBf8,bNg8,bRh8,\";\r\n\r\nc0_wKingmoved = false;\r\nc0_bKingmoved = false;\r\nc0_wLRockmoved = false;\r\nc0_wRRockmoved = false;\r\nc0_bLRockmoved = false;\r\nc0_bRRockmoved = false;\r\nc0_w00 = false;\r\nc0_b00 = false;\r\n\r\nc0_lastmovepawn = 0;\r\nc0_sidemoves=1;\r\n}\r\n\r\nc0_become=\"\";\r\nc0_become_from_engine=\"\";\r\n\r\nfor( var c0_i7=0; c0_i7< c0_PG_sh.length; c0_i7++){\r\n var c0_move8=c0_shortCode(-1,c0_PG_sh.charAt(c0_i7));\r\n if(c0_move8.length<4) { c0_errflag=true; break; }\r\n if(c0_fischer) c0_fischer_cstl_move(c0_move8.substr(0,4),true);\r\n else c0_moveto(c0_convH888(c0_move8.substr(0,2)),c0_convH888(c0_move8.substr(2,2)), true);\r\n c0_sidemoves=-c0_sidemoves;\r\n}\r\n\r\nc0_position=c0_1save_position;\r\nc0_sidemoves=c0_1save_sidemoves;\r\nc0_wKingmoved=c0_1save_wKingmoved;\r\nc0_bKingmoved=c0_1save_bKingmoved;\r\nc0_wLRockmoved=c0_1save_wLRockmoved;\r\nc0_wRRockmoved=c0_1save_wRRockmoved;\r\nc0_bLRockmoved=c0_1save_bLRockmoved;\r\nc0_bRRockmoved=c0_1save_bRRockmoved;\r\nc0_w00=c0_1save_w00;\r\nc0_b00=c0_1save_b00;\r\nc0_become=c0_1save_become;\r\nc0_become_from_engine=c0_1save_become_from_engine;\r\nc0_lastmovepawn=c0_1save_lastmovepawn;\r\n//c0_moveslist=c0_1save_moveslist;\r\n//if(c0_errflag) alert(\"Can't parse encoded chess game \");\r\n\r\nif( c0_start_FEN.length>0 ){\r\n\tc0_set_board_situation( c0_position, c0_wKingmoved, c0_wLRockmoved, c0_wRRockmoved, c0_w00, c0_bKingmoved, c0_bLRockmoved, c0_bRRockmoved, c0_b00, c0_lastmovepawn, c0_moveslist, c0_sidemoves );\r\n\t}\r\n}", "function ff(a,b){this.Dl=[];this.Fu=a;this.us=b||null;this.ui=this.jb=!1;this.ac=void 0;this.Sq=this.Ur=this.wm=!1;this.Zl=0;this.S=null;this.Lj=0}", "function binaryPlacement(pEn,pKay,set,pItemSet,writtenTo)\n{\n this.inPosition =[];\n this.itemSet=pItemSet;\n this.kay=pKay;\n this.en=pEn;\n var low = ((this.en-this.kay)>this.kay)?this.kay:this.en-this.kay;\n var top = en-low;\n var curPosCapt =writtenTo.slice();\n var lastStart=[0]\n var aftFirst = false;\n\nfor (var cA=0;cA<set.length;cA++)\n {\n if (cA<low)\n {\n curPosCapt[set[cA]]=this.itemSet[0];\n }\n else\n {\n curPosCapt[set[cA]]=this.itemSet[1];\n }\n }\n \n if (this.en==this.kay)\n {\n return curPosCapt.slice();\n }\n \nfunction BAForRep(start,pSet,aftFirst,leve,leveA,lastStart,curPosCapt)\n//function BAForRep(start,pSet,aftFirst,en,leve,leveA,lastStart,curPosCapt)\n{\n //if we are at last row\n if(leve==this.kay-1)\n {\n for (var cj=start;cj<(this.en-this.kay+leve+1);cj++)\n {\n if ((cj==(this.kay-1))&&(leve==(this.kay-1)))\n {\n aftFirst = false\n }\n else\n {\n aftFirst = true;\n }\n curPosCapt[pSet[cj]]=this.itemSet[0];\n \n// Logger.log(\"content: \"+apArray[apArray.length-1]+ \"ref : \"+(apArray.length-1)+\" dif : \"+(apArray[apArray.length-1]-(apArray.length-1))+\"boolean :\"+aftFirst)\n// if (apArray[apArray.length-1]>(apArray.length-1))\n if (aftFirst)\n {\n if (cj==start)\n {\n for (var cp=cj-leve-1;cp<(this.en-this.kay);cp++)\n if(cp==cj-leve-1)\n {\n curPosCapt[cp+(leve-1)-lastStart[0]]=this.itemSet[1];\n }\n else\n {\n curPosCapt[pSet[cp+this.kay]]=this.itemSet[1];\n }\n }\n else\n {\n curPosCapt[pSet[cj-1]]=this.itemSet[1];\n }\n }\n this.inPosition.push(curPosCapt.slice());\n }\n if (start==(this.en-1))\n {\n lastStart[0]=lastStart[0]+1;\n var int = 5;\n }\n else\n {\n lastStart[0]=0;\n }\n }\n else\n {\n //on any call the start value is the value at the current level\n start=leveA;\n //starting at that value go up to the en - length+leve +1\n for (var ck=start;ck<(this.en-this.kay+leve+1);ck++)\n {\n //write the counter value to this level position\n leveA++;\n curPosCapt[pSet[ck]]=this.itemSet[0];\n //call the next level with this one holding array that\n //has just been fed ck.\n //increase level by one and\n //make the value one higher\n BAForRep(ck+1,pSet,aftFirst,leve+1,leveA,lastStart,curPosCapt)\n// BAForRep(ck+1,pSet,aftFirst,en,leve+1,leveA,lastStart,curPosCapt)\n //after we have written arrays for the last level\n //we will snap back at each level\n //and we run the ascending sequence to the end\n for (var cm=leve+1;cm<this.kay-1;cm++)\n {\n curPosCapt[pSet[ck+(cm-leve)+1]]=this.itemSet[0];\n }\n }\n }\n}\n\n BAForRep(0,set,aftFirst,0,0,lastStart,curPosCapt.slice());\n// BAForRep(0,set,aftFirst,en,0,0,lastStart,curPosCapt.slice());\n// if (this.splitB)\n// {\n// return [this.captureF,this.captureS,this.inPosition];\n// }\n// else\n// {\n// return [capture,this.inPosition];\n return this.inPosition;\n\n// }\n}", "function oS(a,b,c,d,e,g,h,k,m,q){if(ga[gd]){this.yQa=q?q:sja;t:{q=this.yQa;var r=ga[wc].search||ga[wc].hash;if(null==q)q=r;else{if(r)for(var r=r[Yd](1)[sc](ye),t=0;t<r[G];t++)if(r[t][Yd](0,r[t][kd](ff))==q){q=r[t][Yd](r[t][kd](ff)+1);break t}q=N}}this.$Oa=q;this.eb={};this.roa={};this.attributes=[];a&&this[u](AK,a);b&&this[u](XG,b);c&&this[u](Nh,c);d&&this[u](Hg,d);e&&this[u](CL,new pS(e[lc]()[sc](Oe)));t:if(a=new pS([0,0,0]),Wv.plugins&&Wv.mimeTypes[G])(b=Wv.plugins[Gha])&&b.description&&(a=new pS(b.description[yb](/([a-zA-Z]|\\s)+/,\n N)[yb](/(\\s+r|\\s+b[0-9]+)/,Oe)[sc](Oe)));else if(Wv[vc]&&0<=Wv[vc][kd](Pha))for(b=1,c=3;b;)try{c++,b=new ActiveXObject(Iha+c),a=new pS([c,0,0])}catch(v){b=null}else{b=null;try{b=new ActiveXObject(Kha)}catch(y){try{b=new ActiveXObject(Jha),a=new pS([6,0,21]),b.x0a=YC}catch(B){if(6==a.oD)break t}try{b=new ActiveXObject(Hha)}catch(H){}}null!=b&&(a=new pS(b.GetVariable(Wfa)[sc](ke)[1][sc](Le)))}this.qU=a;!ba.opera&&ga.all&&7<this.qU.oD&&(qS=!0);g&&this.Mt(Gia,g);this.Mt(qma,h?h:NG);this[u](qL,!1);this[u](BF,\n !1);this[u](RL,k?k:ba[wc]);this[u](tJ,N);m&&this[u](tJ,m)}}", "function o1109()\n{\n var o1 = {};\n var o2 = \"aabccddeeffaaggaabbaabaabaab\".e(/((aa))/);\n try {\nfor(var o3 in e)\n { \n try {\nif(o4.o11([7,8,9,10], o109, \"slice(-4) returns the last 4 elements - [7,8,9,10]\"))\n { \n try {\no4.o5(\"propertyFound\");\n}catch(e){}\n }\n}catch(e){}\n }\n}catch(e){}\n try {\nreturn o2;\n}catch(e){}\n}", "function y(e){let t=R,n=D,r=j,s=v,i=M,o=B,a=_,u=new Uint8Array(x.slice(0,R)),d=E,c=E.slice(0,E.length),g=F,l=Y,p=e();return R=t,D=n,j=r,v=s,M=i,B=o,_=a,x=u,Y=l,E=d,E.splice(0,E.length,...c),F=g,P=new DataView(x.buffer,x.byteOffset,x.byteLength),p}", "static transient final private protected public internal function m39() {}", "function OLgetRefOffsets(mkObj){\r\nvar mc=o3_refc.toUpperCase(),mp=o3_refp.toUpperCase(),mW=mH=pW=pH=0,off=[0,0];\r\npW=(OLbubblePI&&o3_bubble)?o3_width:OLns4?over.clip.width:over.offsetWidth;\r\npH=(OLbubblePI&&o3_bubble)?OLbubbleHt:OLns4?over.clip.height:over.offsetHeight;\r\nif((!OLop7)&&mkObj.toString().indexOf('Image')!= -1){mW=mkObj.width;mH=mkObj.height;\r\n}else if((!OLop7)&&mkObj.toString().indexOf('Anchor')!= -1){mc=o3_refc='UL';}else{\r\nmW=(OLns4)?mkObj.clip.width:mkObj.offsetWidth;mH=(OLns4)?mkObj.clip.height:mkObj.offsetHeight;}\r\nif(mc=='UL'){off=(mp=='UR')?[-pW,0]:(mp=='LL')?[0,-pH]:(mp=='LR')?[-pW,-pH]:[0,0];\r\n}else if(mc=='UR'){off=(mp=='UR')?[mW-pW,0]:(mp=='LL')?[mW,-pH]:(mp=='LR')?[mW-pW,-pH]:[mW,0];\r\n}else if(mc=='LL'){off=(mp=='UR')?[-pW,mH]:(mp=='LL')?[0,mH-pH]:(mp=='LR')?[-pW,mH-pH]:[0,mH];\r\n}else if(mc=='LR'){off=(mp=='UR')?[mW-pW,mH]:(mp=='LL')?[mW,mH-pH]:(mp=='LR')?[mW-pW,mH-pH]:\r\n[mW,mH];}\r\nreturn off;\r\n}", "function ht(a,b){this.PW=[];this.Cva=a;this.Gja=b||null;this.qI=this.Oe=!1;this.Yi=void 0;this.Eda=this.HIa=this.l_=!1;this.EY=0;this.Xb=null;this.CN=0}", "handleDemodData(iFloat,iShort,asComplex) {\n // if( this.printSlicer ) {\n // console.log('enter demodData ' + iShort.length + ' ' + asComplex.length);\n // }\n\n // this is \n // output of reverse mover, named reverse_mover in AirPacket.cpp\n let moverOut = [];\n\n for( let i = 0; i < iShort.length; i++ ) {\n let mod = i % 1024;\n\n let found = this.reverseMoverConfig.has(mod);\n\n if( found ) {\n moverOut.push(iShort[i]);\n }\n\n // console.log(\"mod \" + mod + \" has \" + found);\n\n // auto it = find (reverse_mover.begin(), reverse_mover.end(), mod);\n // if (it != reverse_mover.end()) {\n // vmem_mover_out.push_back(rx_out[i]);\n // }\n }\n\n if( this.printSlicer ) {\n // for( let x of moverOut ) {\n // console.log(x.toString(16));\n // }\n }\n\n let sliced_out = [];\n\n let word = 0;\n for(let i = 0; i < moverOut.length; i++) {\n let j = i % 16;\n let input = moverOut[i];\n\n let bits = (( ( (input >>> 30) & 0x2 ) >>> 0 ) | (( (input >>> 15) & 0x1 )>>>0))>>>0;\n word = (((word >>> 2)) | ((bits<<30)))>>>0;\n\n // console.log(`j: ${j} ${word.toString(16)} ${input.toString(16)}`);\n\n if( j == 15 ) {\n sliced_out.push(word);\n // std::cout << HEX32_STRING(word) << std::endl;\n word = 0;\n }\n }\n\n // for(let x of sliced_out) {\n // // console.log(x.toString(16));\n // console.log(mutil.bitMangleSliced(x).toString(16));\n // }\n\n if( this.onMapmovData !== null ) {\n this.onMapmovData(sliced_out);\n }\n\n if( this.printSlicer ) {\n for(let i = 0; i < sliced_out.length; i++) {\n let j = mutil.transformWords128(i);\n console.log(mutil.bitMangleSliced(sliced_out[j]).toString(16) + \" fbtag\");\n }\n }\n\n // increment header seq, send header and body\n this.vec_demod_data.seq = this.uint.frame_track_counter;\n this.push(mutil.IShortToStreamable(this.vec_demod_data));\n this.push(mutil.IShortToStreamable(sliced_out));\n }", "function Sread() {\r\n}", "obtain(){}", "static transient private public function m56() {}", "function hS(a,b){this.Me=[];this.jna=a;this.oma=b||null;this.cK=this.WC=!1;this.XC=void 0;this.b6=this.iNa=this.L5=!1;this.WT=0;this.$e=null;this.S5=0}", "function StupidBug() {}", "static transient final protected function m44() {}", "function findBibRefs() {\n// Searches text for citations/bibliographic entries by looking for text that has the format of a list of\n// authors followed by publication year, journal name, volume number and page number. \n// If such are identified, a short citation is constructed from the author list, pub year, etc and then the \n// short citation is placed in a special category within the index that is not used as an ordinary index word, \n// but rather as a \"re-router\" to the words for which the short citation stands for. In the index, the short\n// citation is entered as an entry but with a type=citation, and another field that no other entry has,\n// \"fullCit\", will hold the author last names, publication year, volume number, page number and journal name.\n// All of these items are delimited by \"_\", and the abbreviated paper ID in front, \n// ie \"454|jones_smith_white_1997_the_astronomical_journal_676_8\". Every time the short citation is found in\n// that paper, all the words in fullCit will be updated with the location information. \n xLtr.push({\"type\":\"citation\", \"priority\":\"1\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n this.authors = \"\";\n this.pubYear = \"\";\n this.journal = \"\";\n this.page = \"\";\n this.volume = \"\";\n var authors = [];\n var pubYear = '';\n var journal = '';\n var page = '';\n var volume = '';\n var journalAbb = '';\n var tmp = '';\n var t = '';\n var m = '';\n var t1 = '';\n var t2 = '';\n var shortCit = '';\n// Strip out text starting from startPos\n text = text.slice(startPos, startPos + 5000);\n// From henceforth, need to preserve character positions because at the end, need to know the actual position\n// of the end of the match to to a bibliographic reference, so that the text can be masked out, etc by the\n// function calling this procedure. \n// to reduce complications in identifying the bibliography, remove any Jr, Sr, I, II, etc from\n text = text.replace(/([\\, ]+)(jr\\.?)([\\, ]+)/ig, function(x,x1,x2,x3){return x3 + (x1+x2).replace(/[ -~]/g,' ');});\n text = text.replace(/([\\, ]+)(sr\\.?)([\\, ]+)/ig, function(x,x1,x2,x3){return x3 + (x1+x2).replace(/[ -~]/g,' ');});\n text = text.replace(/([\\, ]+)(i+\\.?)([\\, ]+)/ig, function(x,x1,x2,x3){return x3 + (x1+x2).replace(/[ -~]/g,' ');});\n// replace \"et al\" in the same way:\n text = text.replace(/([\\, ]+)(et\\.? *al\\.?)([\\, ]+)/ig, function(x,x1,x2,x3){return x3 + (x1+x2).replace(/[ -~]/g,' ');});\n// replace \"and\" in the same way ... if there is not a comma, force one to be there\n text = text.replace(/[\\, ]+and[\\, ]+/ig, function(x){return '\\,' + x.slice(1).replace(/[ -~]/g,' ');});\n// replace \"&\" in the same way:\n text = text.replace(/[\\, ]+\\&[\\, ]+/ig, function(x){return '\\,' + x.slice(1).replace(/[ -~]/g,' ');});\n// Occurances of hypenated names is a problem, like Smith-Jones. replace such occurances to be \"Smithjones\". \n text = text.replace(/([A-Z][a-z]+)( *\\- *)([A-Z][a-z]+)/g, function(x,x1,x2,x3) {\n return x1.charAt(0).toUpperCase() + x1.slice(1).toLowerCase() + x3.toLowerCase() + x2.replace(/[ -~]/g,' ');});\n// Occurances of names like O'Smith are a problem. Replace such occurances to be \"Osmith\"\n text = text.replace(/([A-Za-z]+)( *\\' *)([A-Za-z]+)/g, function(x,x1,x2,x3) {\n return x1.charAt(0).toUpperCase() + x1.slice(1).toLowerCase() + x3.toLowerCase() + x2.replace(/[ -~]/g,' ');})\n// If O'Smith got rendered as O Smith, try to catch and fix that situation as well by turning O Smith into \"Osmith\"\n text = text.replace(/([A-Z])( *)([A-Z][a-z]+)/g, function(x,x1,x2,x3) {\n return x1 + x3.toLowerCase() + x2.replace(/[ -~]/g,' ');})\n// If there are characters that are all lowercase preceding a set of characters that start with a capital letter, \n// scoot the lowercase characters into the other characters, so that \"van Smith\" becomes \"Vansmith\"\n text = text.replace(/([\\, ]+)([a-z]{2,5})( *)([A-Z][a-z]+)([\\, ]+)/g, function(x,x1,x2,x3,x4,x5) {\n return x1 + x2.charAt(0).toUpperCase() + x2.slice(1) + x4.toLowerCase() + x5 + x3; });\n// There could be the case that \"van Smith\" was rendered as VanSmith, or that O'Smith rendered as OSmith. There can \n// only be 1 captial letter per last name, or the below algorithm fails. Need to fix this kind of situation so that VanSmith\n// turns into Vansmith and OSmith into Osmith. To fully cover all bases, find every word that starts with a lower case letter\n// but has an uppercase letter somewhere later in the word, and force all characters to be lowercase except for the first\n// letter, which is forced to be uppercase:\n text = text.replace(/([\\, ]+)([a-z]+)([A-Z])([A-Za-z]+)([\\, ]+)/g, function(x,x1,x2,x3,x4,x5) {\n return x1 + x2.charAt(0).toUpperCase() + x2.slice(1) + x3.toLowerCase() + x4.toLowerCase() + x5; });\n// And now get any word starting with an uppercase letter but has other uppercase letters somewhere else in the word, turn\n// unto all lower case except for first letter (note that we are about to really mess up any legitimate acronyms, but \n// that's OK because these changes are not permanent to the text\n text = text.replace(/([\\, ]+)([A-Z]+)([a-z]+)([A-Z])([A-Za-z]*)([\\, ]+)/g, function(x,x1,x2,x3,x4,x5,x6) {\n return x1 + x2.charAt(0) + x2.slice(1).toLowerCase() + x3 + x4.toLowerCase() + x5.toLowerCase() + x6; });\n// Remove any capital letters that stand in isolation -- those are likely to be initials:\n text = text.replace(/([\\, ]+)((?:[A-Z] *\\. *){1,5})(\\,? *[12]{0,1})/g, function(x,x1,x2,x3) {\n var tmp = '\\,' + (x1+x2).slice(1).replace(/[ -~]/g,' ');\n return tmp + x3.replace(/[^0-9]/g,' '); });\n// OK, now filter the text big-time, removing everything except letters, numbers and commas\n t = JSON.parse(filterTheText(/\\,/.source, text));\n// Now start looking for groups of characters that look like references within the text: Name,Name,Name2022,JournalName,000,00\n// where 000,00 is the volume and page numbers, respectively\n m = t[0].match(/^((?:(?:[A-Z][a-z]+\\,){1,20}(?:[A-Z][a-z]+)?)|(?:[A-Z][a-z]+))(?:([12]\\d\\d\\d[abc]{0,1})\\,([A-Z][A-Za-z]{1,100})\\,?(\\d+)\\,(\\d+))/);\n authors = [];\n pubYear = '';\n journal = '';\n volume = '';\n page = '';\n if (m) {\n// if the original reference is Smith, A. S., Jones, T. E., and Miller, W. D 2002, Astron. J., 145, 1\n// the filtered view would be Smith,Jones,Miller,2002,AstronJ,145,1 (note that the \"and\" and the initials would have already been\n// removed in a previous step above this \"while\" loop). Therefore, tmp will be (Smith,Jones,Miller)(2002)(AstronJ)(145)(1)\n// extract the publication year:\n pubYear = m[2].trim();\n// extract the volume number:\n volume = m[4];\n// get the page numner:\n page = m[5].replace(/[a-zA-Z]/g,''); // remove any \"L\" or other such designations, turn into pure number\n// extract the journal name and convert into the journal abbreviation, but extract from the unfiltered text:\n t1 = t[1][m[1].length + m[2].length - 1];\n t2 = t[1][m[1].length + m[2].length + m[3].length -1] + 1;\n journal = text.slice(t1,t2).replace(/[^A-Za-z0-9]/g,'');\n// determine what the full name is for this journal by consulting the xLtr's \"journal\" entries:\n tmp = xLtr.reduce(function(x1,x2,x3) {\n if (x2.type == \"journal\" && x2.abb !== undefined && x2.indx(journal,0) != \"\" && \n parseFloat(x2.endMatch) > x1[1]) {x1 = [x3,parseFloat(x2.endMatch),x2.name.toLowerCase()];} return x1;}, [-1,-1,'']);\n if (tmp[0] != -1 && tmp[1] == journal.length) { // perfect match!\n journal = tmp[2].split(' ').join('\\_'); }\n// extract the individual authors' last names:\n authors = m[1].replace(/\\,/g,' ').replace(/ +/g,' ').trim().split(' ');\n// Now that we have the author names and publication year, put together the citation likely to appear in the text\n shortCit = '';\n// Now create a citation phrase... what this bibliography reference will likely look like in the text. For example, if the bibliography\n// entry is Smith, A.K., Jones, Q. R., and Miller, D. R. 2010, ApJ, 545, 34, then the citation phrase might look like Smith et al 2010 or\n// maybe Smith, Jones & Miller 2010. Use both formats just to be certain.\n if (authors.length > 3) {\n shortCit = authors[0] + 'etal' + pubYear;\n } else if (authors.length == 3) {\n shortCit = authors[0]+'etal'+pubYear+ '\\|' +\n authors[0]+authors[1]+'and'+authors[2]+pubYear + '\\|' +\n authors[0] + authors[1] + authors[2] + pubYear; // 3 possibilities\n } else if (authors.length == 2) {\n shortCit = authors[0] + 'and' + authors[1] + pubYear + '\\|' + \n authors[0] + authors[1] + pubYear; // 2 possibilities\n } else if (authors.length == 1) {\n shortCit = authors[0] + pubYear; }\n pubYear = pubYear.replace(/[a-zA-Z]/g,'');\n this.endMatch = '' + (t[1][m[0].length-1] + 1 + startPos);\n this.authors = ([... new Set(authors)]).sort().join('\\_');\n this.pubYear = \"\"+pubYear;\n this.journal = journal;\n this.volume = volume;\n this.page = page;\n return shortCit.toLowerCase(); \n } else {return ''; } \n } });\n return;\n }", "function DWRUtil() { }", "function yy(a,b){this.kd=[];this.ie=a;this.de=b||null;this.Pc=this.zc=!1;this.Mb=void 0;this.Ed=this.me=this.qd=!1;this.md=0;this.Ja=null;this.rd=0}", "function o0(o1)\n{\n var o11 = function () {\n try {\nreturn (this.o4 - this.o5) + \" (overwritten)\";\n}catch(this.o665()){}\n};\n try {\nfor (var o2 = 0; __defineGetter__[o1091 >> [4.4, 5.5, 6.6]]; this.o391[0xFF68] = this.o902)\n {\n try {\nif (o6(o29) == \"this.lastOutput[\" + o214 + \"] = output\" + o214)\n {\n try {\nif (o259[10724 >> 2] = o1098 == -1)\n {\n try {\no2 = o3;\n}catch(e){}\n }\n}catch(e){}\n }\n else\n {\n try {\nif (o2 != -\"Array.prototype.copyWithin called on an object with length > 2^32 and a source range completely > 2^32 and destination range crossing 2^32\")\n {\n try {\no4.o5(o2 + \"-\" + (o3-'error!') + \" = undefined\");\n}catch(e){}\n try {\no421 = -1;\n}catch(e){}\n }\n}catch(e){}\n try {\no4.o5(o3 + \" = \" + o1[o3]);\n}catch(e){}\n }\n}catch(e){}\n }\n}catch(e){}\n}", "function _0x329edd(_0x38ef9f){return function(){return _0x38ef9f;};}", "function jg(a,b){this.Lc=[];this.ue=a;this.Wd=b||null;this.Mb=this.lb=!1;this.ya=void 0;this.Gd=this.bf=this.bd=!1;this.Rc=0;this.o=null;this.dd=0}", "static transient protected internal function m62() {}", "function _t(t){var N,L,A,S,e,c=Math.floor,_=new Array(64),F=new Array(64),P=new Array(64),k=new Array(64),y=new Array(65535),v=new Array(65535),Z=new Array(64),w=new Array(64),I=[],C=0,B=7,j=new Array(64),E=new Array(64),M=new Array(64),n=new Array(256),O=new Array(2048),b=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],U=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function r(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function V(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(C|=1<<B),n--,--B<0&&(255==C?(G(255),G(0)):G(C),B=7,C=0)}function G(t){I.push(t)}function Y(t){G(t>>8&255),G(255&t)}function J(t,e,n,r,i){for(var o,a=i[0],s=i[240],l=function(t,e){var n,r,i,o,a,s,l,h,u,c,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],l=t[f+6];var p=n+(h=t[f+7]),d=n-h,g=r+l,m=r-l,y=i+s,v=i-s,w=o+a,b=o-a,x=p+w,N=p-w,L=g+y,A=g-y;t[f]=x+L,t[f+4]=x-L;var S=.707106781*(A+N);t[f+2]=N+S,t[f+6]=N-S;var _=.382683433*((x=b+v)-(A=m+d)),F=.5411961*x+_,P=1.306562965*A+_,k=.707106781*(L=v+m),I=d+k,C=d-k;t[f+5]=C+F,t[f+3]=C-F,t[f+1]=I+P,t[f+7]=I-P,f+=8}for(u=f=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],l=t[f+48];var B=n+(h=t[f+56]),j=n-h,E=r+l,M=r-l,O=i+s,q=i-s,T=o+a,R=o-a,D=B+T,U=B-T,z=E+O,H=E-O;t[f]=D+z,t[f+32]=D-z;var W=.707106781*(H+U);t[f+16]=U+W,t[f+48]=U-W;var V=.382683433*((D=R+q)-(H=M+j)),G=.5411961*D+V,Y=1.306562965*H+V,J=.707106781*(z=q+M),X=j+J,K=j-J;t[f+40]=K+G,t[f+24]=K-G,t[f+8]=X+Y,t[f+56]=X-Y,f++}for(u=0;u<64;++u)c=t[u]*e[u],Z[u]=0<c?c+.5|0:c-.5|0;return Z}(t,e),h=0;h<64;++h)w[b[h]]=l[h];var u=w[0]-n;n=w[0],0==u?V(r[0]):(V(r[v[o=32767+u]]),V(y[o]));for(var c=63;0<c&&0==w[c];c--);if(0==c)return V(a),n;for(var f,p=1;p<=c;){for(var d=p;0==w[p]&&p<=c;++p);var g=p-d;if(16<=g){f=g>>4;for(var m=1;m<=f;++m)V(s);g&=15}o=32767+w[p],V(i[(g<<4)+v[o]]),V(y[o]),p++}return 63!=c&&V(a),n}function X(t){if(t<=0&&(t=1),100<t&&(t=100),e!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=c((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),_[b[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=c((i[o]*t+50)/100);a<1?a=1:255<a&&(a=255),F[b[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,h=0;h<8;h++)for(var u=0;u<8;u++)P[l]=1/(_[b[l]]*s[h]*s[u]*8),k[l]=1/(F[b[l]]*s[h]*s[u]*8),l++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),e=t}}this.encode=function(t,e){var n,r;(new Date).getTime();e&&X(e),I=new Array,C=0,B=7,Y(65496),Y(65504),Y(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),Y(1),Y(1),G(0),G(0),function(){Y(65499),Y(132),G(0);for(var t=0;t<64;t++)G(_[t]);G(1);for(var e=0;e<64;e++)G(F[e])}(),n=t.width,r=t.height,Y(65472),Y(17),G(8),Y(r),Y(n),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1),function(){Y(65476),Y(418),G(0);for(var t=0;t<16;t++)G(q[t+1]);for(var e=0;e<=11;e++)G(T[e]);G(16);for(var n=0;n<16;n++)G(R[n+1]);for(var r=0;r<=161;r++)G(D[r]);G(1);for(var i=0;i<16;i++)G(U[i+1]);for(var o=0;o<=11;o++)G(z[o]);G(17);for(var a=0;a<16;a++)G(H[a+1]);for(var s=0;s<=161;s++)G(W[s])}(),Y(65498),Y(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var i=0,o=0,a=0;C=0,B=7,this.encode.displayName=\"_encode_\";for(var s,l,h,u,c,f,p,d,g,m=t.data,y=t.width,v=t.height,w=4*y,b=0;b<v;){for(s=0;s<w;){for(f=c=w*b+s,p=-1,g=d=0;g<64;g++)f=c+(d=g>>3)*w+(p=4*(7&g)),v<=b+d&&(f-=w*(b+1+d-v)),w<=s+p&&(f-=s+p-w+4),l=m[f++],h=m[f++],u=m[f++],j[g]=(O[l]+O[h+256>>0]+O[u+512>>0]>>16)-128,E[g]=(O[l+768>>0]+O[h+1024>>0]+O[u+1280>>0]>>16)-128,M[g]=(O[l+1280>>0]+O[h+1536>>0]+O[u+1792>>0]>>16)-128;i=J(j,P,i,N,A),o=J(E,k,o,L,S),a=J(M,k,a,L,S),s+=32}b+=8}if(0<=B){var x=[];x[1]=B+1,x[0]=(1<<B+1)-1,V(x)}return Y(65497),new Uint8Array(I)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)n[e]=t(e)}(),N=r(q,T),L=r(U,z),A=r(R,D),S=r(H,W),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)v[32767+r]=n,y[32767+r]=[],y[32767+r][1]=n,y[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)v[32767+i]=n,y[32767+i]=[],y[32767+i][1]=n,y[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)O[t]=19595*t,O[t+256>>0]=38470*t,O[t+512>>0]=7471*t+32768,O[t+768>>0]=-11059*t,O[t+1024>>0]=-21709*t,O[t+1280>>0]=32768*t+8421375,O[t+1536>>0]=-27439*t,O[t+1792>>0]=-5329*t}(),X(t),(new Date).getTime()}()}", "function _t(t){var N,L,A,S,e,c=Math.floor,_=new Array(64),F=new Array(64),P=new Array(64),k=new Array(64),y=new Array(65535),v=new Array(65535),Z=new Array(64),w=new Array(64),I=[],C=0,B=7,j=new Array(64),E=new Array(64),M=new Array(64),n=new Array(256),O=new Array(2048),b=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],U=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function r(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function V(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(C|=1<<B),n--,--B<0&&(255==C?(G(255),G(0)):G(C),B=7,C=0)}function G(t){I.push(t)}function Y(t){G(t>>8&255),G(255&t)}function J(t,e,n,r,i){for(var o,a=i[0],s=i[240],l=function(t,e){var n,r,i,o,a,s,l,h,u,c,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],l=t[f+6];var p=n+(h=t[f+7]),d=n-h,g=r+l,m=r-l,y=i+s,v=i-s,w=o+a,b=o-a,x=p+w,N=p-w,L=g+y,A=g-y;t[f]=x+L,t[f+4]=x-L;var S=.707106781*(A+N);t[f+2]=N+S,t[f+6]=N-S;var _=.382683433*((x=b+v)-(A=m+d)),F=.5411961*x+_,P=1.306562965*A+_,k=.707106781*(L=v+m),I=d+k,C=d-k;t[f+5]=C+F,t[f+3]=C-F,t[f+1]=I+P,t[f+7]=I-P,f+=8}for(u=f=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],l=t[f+48];var B=n+(h=t[f+56]),j=n-h,E=r+l,M=r-l,O=i+s,q=i-s,T=o+a,R=o-a,D=B+T,U=B-T,z=E+O,H=E-O;t[f]=D+z,t[f+32]=D-z;var W=.707106781*(H+U);t[f+16]=U+W,t[f+48]=U-W;var V=.382683433*((D=R+q)-(H=M+j)),G=.5411961*D+V,Y=1.306562965*H+V,J=.707106781*(z=q+M),X=j+J,K=j-J;t[f+40]=K+G,t[f+24]=K-G,t[f+8]=X+Y,t[f+56]=X-Y,f++}for(u=0;u<64;++u)c=t[u]*e[u],Z[u]=0<c?c+.5|0:c-.5|0;return Z}(t,e),h=0;h<64;++h)w[b[h]]=l[h];var u=w[0]-n;n=w[0],0==u?V(r[0]):(V(r[v[o=32767+u]]),V(y[o]));for(var c=63;0<c&&0==w[c];c--);if(0==c)return V(a),n;for(var f,p=1;p<=c;){for(var d=p;0==w[p]&&p<=c;++p);var g=p-d;if(16<=g){f=g>>4;for(var m=1;m<=f;++m)V(s);g&=15}o=32767+w[p],V(i[(g<<4)+v[o]]),V(y[o]),p++}return 63!=c&&V(a),n}function X(t){if(t<=0&&(t=1),100<t&&(t=100),e!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=c((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),_[b[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=c((i[o]*t+50)/100);a<1?a=1:255<a&&(a=255),F[b[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,h=0;h<8;h++)for(var u=0;u<8;u++)P[l]=1/(_[b[l]]*s[h]*s[u]*8),k[l]=1/(F[b[l]]*s[h]*s[u]*8),l++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),e=t}}this.encode=function(t,e){var n,r;(new Date).getTime();e&&X(e),I=new Array,C=0,B=7,Y(65496),Y(65504),Y(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),Y(1),Y(1),G(0),G(0),function(){Y(65499),Y(132),G(0);for(var t=0;t<64;t++)G(_[t]);G(1);for(var e=0;e<64;e++)G(F[e])}(),n=t.width,r=t.height,Y(65472),Y(17),G(8),Y(r),Y(n),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1),function(){Y(65476),Y(418),G(0);for(var t=0;t<16;t++)G(q[t+1]);for(var e=0;e<=11;e++)G(T[e]);G(16);for(var n=0;n<16;n++)G(R[n+1]);for(var r=0;r<=161;r++)G(D[r]);G(1);for(var i=0;i<16;i++)G(U[i+1]);for(var o=0;o<=11;o++)G(z[o]);G(17);for(var a=0;a<16;a++)G(H[a+1]);for(var s=0;s<=161;s++)G(W[s])}(),Y(65498),Y(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var i=0,o=0,a=0;C=0,B=7,this.encode.displayName=\"_encode_\";for(var s,l,h,u,c,f,p,d,g,m=t.data,y=t.width,v=t.height,w=4*y,b=0;b<v;){for(s=0;s<w;){for(f=c=w*b+s,p=-1,g=d=0;g<64;g++)f=c+(d=g>>3)*w+(p=4*(7&g)),v<=b+d&&(f-=w*(b+1+d-v)),w<=s+p&&(f-=s+p-w+4),l=m[f++],h=m[f++],u=m[f++],j[g]=(O[l]+O[h+256>>0]+O[u+512>>0]>>16)-128,E[g]=(O[l+768>>0]+O[h+1024>>0]+O[u+1280>>0]>>16)-128,M[g]=(O[l+1280>>0]+O[h+1536>>0]+O[u+1792>>0]>>16)-128;i=J(j,P,i,N,A),o=J(E,k,o,L,S),a=J(M,k,a,L,S),s+=32}b+=8}if(0<=B){var x=[];x[1]=B+1,x[0]=(1<<B+1)-1,V(x)}return Y(65497),new Uint8Array(I)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)n[e]=t(e)}(),N=r(q,T),L=r(U,z),A=r(R,D),S=r(H,W),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)v[32767+r]=n,y[32767+r]=[],y[32767+r][1]=n,y[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)v[32767+i]=n,y[32767+i]=[],y[32767+i][1]=n,y[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)O[t]=19595*t,O[t+256>>0]=38470*t,O[t+512>>0]=7471*t+32768,O[t+768>>0]=-11059*t,O[t+1024>>0]=-21709*t,O[t+1280>>0]=32768*t+8421375,O[t+1536>>0]=-27439*t,O[t+1792>>0]=-5329*t}(),X(t),(new Date).getTime()}()}", "function _t(t){var N,L,A,S,e,c=Math.floor,_=new Array(64),F=new Array(64),P=new Array(64),k=new Array(64),y=new Array(65535),v=new Array(65535),Z=new Array(64),w=new Array(64),I=[],C=0,B=7,j=new Array(64),E=new Array(64),M=new Array(64),n=new Array(256),O=new Array(2048),b=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],U=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function r(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function V(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(C|=1<<B),n--,--B<0&&(255==C?(G(255),G(0)):G(C),B=7,C=0)}function G(t){I.push(t)}function Y(t){G(t>>8&255),G(255&t)}function J(t,e,n,r,i){for(var o,a=i[0],s=i[240],l=function(t,e){var n,r,i,o,a,s,l,h,u,c,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],l=t[f+6];var p=n+(h=t[f+7]),d=n-h,g=r+l,m=r-l,y=i+s,v=i-s,w=o+a,b=o-a,x=p+w,N=p-w,L=g+y,A=g-y;t[f]=x+L,t[f+4]=x-L;var S=.707106781*(A+N);t[f+2]=N+S,t[f+6]=N-S;var _=.382683433*((x=b+v)-(A=m+d)),F=.5411961*x+_,P=1.306562965*A+_,k=.707106781*(L=v+m),I=d+k,C=d-k;t[f+5]=C+F,t[f+3]=C-F,t[f+1]=I+P,t[f+7]=I-P,f+=8}for(u=f=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],l=t[f+48];var B=n+(h=t[f+56]),j=n-h,E=r+l,M=r-l,O=i+s,q=i-s,T=o+a,R=o-a,D=B+T,U=B-T,z=E+O,H=E-O;t[f]=D+z,t[f+32]=D-z;var W=.707106781*(H+U);t[f+16]=U+W,t[f+48]=U-W;var V=.382683433*((D=R+q)-(H=M+j)),G=.5411961*D+V,Y=1.306562965*H+V,J=.707106781*(z=q+M),X=j+J,K=j-J;t[f+40]=K+G,t[f+24]=K-G,t[f+8]=X+Y,t[f+56]=X-Y,f++}for(u=0;u<64;++u)c=t[u]*e[u],Z[u]=0<c?c+.5|0:c-.5|0;return Z}(t,e),h=0;h<64;++h)w[b[h]]=l[h];var u=w[0]-n;n=w[0],0==u?V(r[0]):(V(r[v[o=32767+u]]),V(y[o]));for(var c=63;0<c&&0==w[c];c--);if(0==c)return V(a),n;for(var f,p=1;p<=c;){for(var d=p;0==w[p]&&p<=c;++p);var g=p-d;if(16<=g){f=g>>4;for(var m=1;m<=f;++m)V(s);g&=15}o=32767+w[p],V(i[(g<<4)+v[o]]),V(y[o]),p++}return 63!=c&&V(a),n}function X(t){if(t<=0&&(t=1),100<t&&(t=100),e!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=c((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),_[b[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=c((i[o]*t+50)/100);a<1?a=1:255<a&&(a=255),F[b[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,h=0;h<8;h++)for(var u=0;u<8;u++)P[l]=1/(_[b[l]]*s[h]*s[u]*8),k[l]=1/(F[b[l]]*s[h]*s[u]*8),l++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),e=t}}this.encode=function(t,e){var n,r;(new Date).getTime();e&&X(e),I=new Array,C=0,B=7,Y(65496),Y(65504),Y(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),Y(1),Y(1),G(0),G(0),function(){Y(65499),Y(132),G(0);for(var t=0;t<64;t++)G(_[t]);G(1);for(var e=0;e<64;e++)G(F[e])}(),n=t.width,r=t.height,Y(65472),Y(17),G(8),Y(r),Y(n),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1),function(){Y(65476),Y(418),G(0);for(var t=0;t<16;t++)G(q[t+1]);for(var e=0;e<=11;e++)G(T[e]);G(16);for(var n=0;n<16;n++)G(R[n+1]);for(var r=0;r<=161;r++)G(D[r]);G(1);for(var i=0;i<16;i++)G(U[i+1]);for(var o=0;o<=11;o++)G(z[o]);G(17);for(var a=0;a<16;a++)G(H[a+1]);for(var s=0;s<=161;s++)G(W[s])}(),Y(65498),Y(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var i=0,o=0,a=0;C=0,B=7,this.encode.displayName=\"_encode_\";for(var s,l,h,u,c,f,p,d,g,m=t.data,y=t.width,v=t.height,w=4*y,b=0;b<v;){for(s=0;s<w;){for(f=c=w*b+s,p=-1,g=d=0;g<64;g++)f=c+(d=g>>3)*w+(p=4*(7&g)),v<=b+d&&(f-=w*(b+1+d-v)),w<=s+p&&(f-=s+p-w+4),l=m[f++],h=m[f++],u=m[f++],j[g]=(O[l]+O[h+256>>0]+O[u+512>>0]>>16)-128,E[g]=(O[l+768>>0]+O[h+1024>>0]+O[u+1280>>0]>>16)-128,M[g]=(O[l+1280>>0]+O[h+1536>>0]+O[u+1792>>0]>>16)-128;i=J(j,P,i,N,A),o=J(E,k,o,L,S),a=J(M,k,a,L,S),s+=32}b+=8}if(0<=B){var x=[];x[1]=B+1,x[0]=(1<<B+1)-1,V(x)}return Y(65497),new Uint8Array(I)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)n[e]=t(e)}(),N=r(q,T),L=r(U,z),A=r(R,D),S=r(H,W),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)v[32767+r]=n,y[32767+r]=[],y[32767+r][1]=n,y[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)v[32767+i]=n,y[32767+i]=[],y[32767+i][1]=n,y[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)O[t]=19595*t,O[t+256>>0]=38470*t,O[t+512>>0]=7471*t+32768,O[t+768>>0]=-11059*t,O[t+1024>>0]=-21709*t,O[t+1280>>0]=32768*t+8421375,O[t+1536>>0]=-27439*t,O[t+1792>>0]=-5329*t}(),X(t),(new Date).getTime()}()}", "function _t(t){var N,L,A,S,e,c=Math.floor,_=new Array(64),F=new Array(64),P=new Array(64),k=new Array(64),y=new Array(65535),v=new Array(65535),Z=new Array(64),w=new Array(64),I=[],C=0,B=7,j=new Array(64),E=new Array(64),M=new Array(64),n=new Array(256),O=new Array(2048),b=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],U=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function r(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function V(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(C|=1<<B),n--,--B<0&&(255==C?(G(255),G(0)):G(C),B=7,C=0)}function G(t){I.push(t)}function Y(t){G(t>>8&255),G(255&t)}function J(t,e,n,r,i){for(var o,a=i[0],s=i[240],l=function(t,e){var n,r,i,o,a,s,l,h,u,c,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],l=t[f+6];var p=n+(h=t[f+7]),d=n-h,g=r+l,m=r-l,y=i+s,v=i-s,w=o+a,b=o-a,x=p+w,N=p-w,L=g+y,A=g-y;t[f]=x+L,t[f+4]=x-L;var S=.707106781*(A+N);t[f+2]=N+S,t[f+6]=N-S;var _=.382683433*((x=b+v)-(A=m+d)),F=.5411961*x+_,P=1.306562965*A+_,k=.707106781*(L=v+m),I=d+k,C=d-k;t[f+5]=C+F,t[f+3]=C-F,t[f+1]=I+P,t[f+7]=I-P,f+=8}for(u=f=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],l=t[f+48];var B=n+(h=t[f+56]),j=n-h,E=r+l,M=r-l,O=i+s,q=i-s,T=o+a,R=o-a,D=B+T,U=B-T,z=E+O,H=E-O;t[f]=D+z,t[f+32]=D-z;var W=.707106781*(H+U);t[f+16]=U+W,t[f+48]=U-W;var V=.382683433*((D=R+q)-(H=M+j)),G=.5411961*D+V,Y=1.306562965*H+V,J=.707106781*(z=q+M),X=j+J,K=j-J;t[f+40]=K+G,t[f+24]=K-G,t[f+8]=X+Y,t[f+56]=X-Y,f++}for(u=0;u<64;++u)c=t[u]*e[u],Z[u]=0<c?c+.5|0:c-.5|0;return Z}(t,e),h=0;h<64;++h)w[b[h]]=l[h];var u=w[0]-n;n=w[0],0==u?V(r[0]):(V(r[v[o=32767+u]]),V(y[o]));for(var c=63;0<c&&0==w[c];c--);if(0==c)return V(a),n;for(var f,p=1;p<=c;){for(var d=p;0==w[p]&&p<=c;++p);var g=p-d;if(16<=g){f=g>>4;for(var m=1;m<=f;++m)V(s);g&=15}o=32767+w[p],V(i[(g<<4)+v[o]]),V(y[o]),p++}return 63!=c&&V(a),n}function X(t){if(t<=0&&(t=1),100<t&&(t=100),e!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=c((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),_[b[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=c((i[o]*t+50)/100);a<1?a=1:255<a&&(a=255),F[b[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,h=0;h<8;h++)for(var u=0;u<8;u++)P[l]=1/(_[b[l]]*s[h]*s[u]*8),k[l]=1/(F[b[l]]*s[h]*s[u]*8),l++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),e=t}}this.encode=function(t,e){var n,r;(new Date).getTime();e&&X(e),I=new Array,C=0,B=7,Y(65496),Y(65504),Y(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),Y(1),Y(1),G(0),G(0),function(){Y(65499),Y(132),G(0);for(var t=0;t<64;t++)G(_[t]);G(1);for(var e=0;e<64;e++)G(F[e])}(),n=t.width,r=t.height,Y(65472),Y(17),G(8),Y(r),Y(n),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1),function(){Y(65476),Y(418),G(0);for(var t=0;t<16;t++)G(q[t+1]);for(var e=0;e<=11;e++)G(T[e]);G(16);for(var n=0;n<16;n++)G(R[n+1]);for(var r=0;r<=161;r++)G(D[r]);G(1);for(var i=0;i<16;i++)G(U[i+1]);for(var o=0;o<=11;o++)G(z[o]);G(17);for(var a=0;a<16;a++)G(H[a+1]);for(var s=0;s<=161;s++)G(W[s])}(),Y(65498),Y(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var i=0,o=0,a=0;C=0,B=7,this.encode.displayName=\"_encode_\";for(var s,l,h,u,c,f,p,d,g,m=t.data,y=t.width,v=t.height,w=4*y,b=0;b<v;){for(s=0;s<w;){for(f=c=w*b+s,p=-1,g=d=0;g<64;g++)f=c+(d=g>>3)*w+(p=4*(7&g)),v<=b+d&&(f-=w*(b+1+d-v)),w<=s+p&&(f-=s+p-w+4),l=m[f++],h=m[f++],u=m[f++],j[g]=(O[l]+O[h+256>>0]+O[u+512>>0]>>16)-128,E[g]=(O[l+768>>0]+O[h+1024>>0]+O[u+1280>>0]>>16)-128,M[g]=(O[l+1280>>0]+O[h+1536>>0]+O[u+1792>>0]>>16)-128;i=J(j,P,i,N,A),o=J(E,k,o,L,S),a=J(M,k,a,L,S),s+=32}b+=8}if(0<=B){var x=[];x[1]=B+1,x[0]=(1<<B+1)-1,V(x)}return Y(65497),new Uint8Array(I)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)n[e]=t(e)}(),N=r(q,T),L=r(U,z),A=r(R,D),S=r(H,W),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)v[32767+r]=n,y[32767+r]=[],y[32767+r][1]=n,y[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)v[32767+i]=n,y[32767+i]=[],y[32767+i][1]=n,y[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)O[t]=19595*t,O[t+256>>0]=38470*t,O[t+512>>0]=7471*t+32768,O[t+768>>0]=-11059*t,O[t+1024>>0]=-21709*t,O[t+1280>>0]=32768*t+8421375,O[t+1536>>0]=-27439*t,O[t+1792>>0]=-5329*t}(),X(t),(new Date).getTime()}()}", "function zd(){this.$b=void 0;this.group=y.i.Sj;this.Kb=y.i.Kb}", "transient final private public function m168() {}", "function comportement (){\n\t }", "function image_process_streamization() { \r\n\r\n}", "function c(a){var b=/^(---|\\+\\+\\+)\\s+([\\S ]*)(?:\\t(.*?)\\s*)?$/,c=b.exec(f[i]);if(c){var d=\"---\"===c[1]?\"old\":\"new\",e=c[2].replace(/\\\\\\\\/g,\"\\\\\");/^\".*\"$/.test(e)&&(e=e.substr(1,e.length-2)),a[d+\"FileName\"]=e,a[d+\"Header\"]=c[3],i++}}", "function yd(a){var b;q&&(b=a.bh());var c=u(\"xml\");a=xc(a,!0);for(var d=0,e;e=a[d];d++){var h=zd(e);e=e.fb();h.setAttribute(\"x\",q?b-e.x:e.x);h.setAttribute(\"y\",e.y);c.appendChild(h)}return c}", "function Ze(){if(ea)t.innerHTML=ha;else if(ia)t.innerHTML=ia;$e();eb&&hb.call(window,eb);nb();eb=-1;bb=[];cb={};ac=j;Zb=0;$b=[];w.Cc();Bb=0;Cb=[];document.documentElement.className=\"js no-treesaver\";document.documentElement.style.display=\"block\"}", "function OLloadP1or2(){\r\no3_text=ol_text;o3_cap=ol_cap;o3_capbelow=ol_capbelow;o3_textpadding=ol_textpadding;\r\no3_captionpadding=ol_captionpadding;o3_border=ol_border;o3_base=ol_base;o3_status=ol_status;\r\no3_autostatus=ol_autostatus;o3_nofollow=ol_nofollow;o3_width=ol_width;o3_wrap=ol_wrap;\r\no3_wrapmax=ol_wrapmax;o3_height=ol_height;o3_hpos=ol_hpos;o3_vpos=ol_vpos;o3_offsetx=ol_offsetx;\r\no3_offsety=ol_offsety;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_relx=ol_relx;o3_rely=ol_rely;\r\no3_midx=ol_midx;o3_midy=ol_midy;o3_ref=ol_ref;o3_refc=ol_refc;o3_refp=ol_refp;o3_refx=ol_refx;\r\no3_refy=ol_refy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_nojustx=ol_nojustx;o3_nojusty=ol_nojusty;\r\no3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_timeout=ol_timeout;o3_delay=ol_delay;\r\no3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_cgcolor=ol_cgcolor;o3_textcolor=ol_textcolor;\r\no3_capcolor=ol_capcolor;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;\r\no3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_fgbackground=ol_fgbackground;\r\no3_bgbackground=ol_bgbackground;o3_cgbackground=ol_cgbackground;o3_capicon=ol_capicon;\r\no3_background=ol_background;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;\r\no3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;\r\no3_cgclass=ol_cgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;\r\n}", "function c0_from_Crafty_standard(c0_move,c0_color47)\r\n{\r\nc0_move=c0_ReplaceAll( c0_move, \"ep\", \"\" );\r\n\r\nvar c0_becomes7=\"\";\r\nvar c0_ret7=c0_fischer_cst_fCr(c0_move);\r\nif(c0_ret7.length>0) return c0_ret7;\r\nelse if(c0_move.substr(0,5)==\"O-O-O\" || c0_move.substr(0,5)==\"0-0-0\")\r\n\t{\r\n\tif(c0_color47==\"w\")\r\n\t\t{ \r\n\t\t if(c0_position.indexOf(\"wKc1\")<0 && c0_can_be_moved( \"15\",\"13\",false) ) c0_ret7=\"e1c1[0]\";\r\n\t \t}\r\n\telse\r\n\t\t{\r\n\t\t if(c0_position.indexOf(\"bKc8\")<0 && c0_can_be_moved( \"85\",\"83\",false) ) c0_ret7=\"e8c8[0]\";\r\n\t \t}\r\n\t}\r\nelse if(c0_move.substr(0,3)==\"O-O\" || c0_move.substr(0,3)==\"0-0\")\r\n\t{\r\n\tif(c0_color47==\"w\")\r\n\t\t{ \r\n\t\t if(c0_position.indexOf(\"wKg1\")<0 && c0_can_be_moved( \"15\",\"17\",false) ) c0_ret7=\"e1g1[0]\";\r\n\t\t}\r\n\telse\r\n\t\t{\r\n\t\t if(c0_position.indexOf(\"bKg8\")<0 && c0_can_be_moved( \"85\",\"87\",false) ) c0_ret7=\"e8g8[0]\";\r\n\t\t}\r\n\t}\r\nelse if( (\"{ab}{ba}{bc}{cb}{cd}{dc}{de}{ed}{ef}{fe}{fg}{gf}{gh}{hg}\").indexOf(c0_move.substr(0,2))>=0 )\r\n {\r\n var c0_Z81horiz=c0_move.charCodeAt(0) - 96;\r\n var c0_Z82horiz=c0_move.charCodeAt(1) - 96;\r\n\r\n for(var c0_i8=0;c0_position.length>c0_i8; c0_i8+=5)\r\n\t{\r\n\tvar c0_Z8color=c0_position.substr(c0_i8,1);\r\n\tvar c0_Z8figure=c0_position.substr(c0_i8+1,1);\r\n\tvar c0_Z8horiz=(c0_position.substr(c0_i8+2,1)).charCodeAt(0) - 96;\r\n\tvar c0_Z8vert=parseInt(c0_position.substr(c0_i8+3,1));\r\n\tvar c0_Z82vert=c0_Z8vert+(c0_color47==\"w\" ? 1 : -1 );\r\n\tvar c0_Z8from_at72 = c0_Z8vert.toString() + c0_Z8horiz.toString();\r\n\tvar c0_Z8to_at72 = c0_Z82vert.toString() + c0_Z82horiz.toString();\r\n\r\n\tif(c0_Z8color==c0_color47 && c0_Z8figure==\"p\" && c0_Z81horiz==c0_Z8horiz )\r\n\t\t{\r\n\t\tif( c0_can_be_moved( c0_Z8from_at72, c0_Z8to_at72,false) )\r\n\t\t\t{\r\n\t\t\tc0_ret7=c0_convE777(c0_Z8from_at72)+c0_convE777(c0_Z8to_at72);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n c0_becomes7=promoIf(c0_move);\r\n c0_ret7+=c0_becomes7;\r\n }\r\nelse\r\n {\r\n var c0_cp7=c0_move.length;\r\n\r\n var c0_figure7=c0_move.substr(0,1);\r\n if(c0_figure7==\"N\" || c0_figure7==\"B\" || c0_figure7==\"R\" || c0_figure7==\"Q\" || c0_figure7==\"K\") c0_move = c0_move.substr(1);\r\n else c0_figure7=\"p\";\r\n\r\n c0_becomes7=promoIf(c0_move);\r\n if(c0_becomes7.length>0)\r\n\t{\r\n\tvar c0_sh7=c0_move.indexOf(\"=\");\r\n\tif(c0_sh7<0) c0_sh7=c0_move.lastIndexOf( c0_becomes7.substr(1,1).toLowerCase() );\r\n if(c0_sh7>0) c0_move = c0_move.substr(0, c0_sh7);\r\n\t}\r\n c0_move=c0_ReplaceAll( c0_move, \"+\", \"\" );\r\n c0_move=c0_ReplaceAll( c0_move, \"-\", \"\" );\r\n c0_move=c0_ReplaceAll( c0_move, \"x\", \"\" );\r\n c0_move=c0_ReplaceAll( c0_move, \"X\", \"\" );\r\n c0_move=c0_ReplaceAll( c0_move, \"#\", \"\" );\r\n c0_move=c0_ReplaceAll( c0_move, \"!\", \"\" );\r\n c0_move=c0_ReplaceAll( c0_move, \"?\", \"\" );\r\n\r\n var c0_cp7=c0_move.length;\r\n c0_cp7--;\t\r\n var c0_to_at7 = c0_move.substr(c0_cp7-1,2);\r\n var c0_vert72=parseInt(c0_move.substr(c0_cp7--,1));\r\n var c0_horiz72=(c0_move.substr(c0_cp7--,1)).charCodeAt(0) - 96;\r\n var c0_to_at72 = c0_vert72.toString() + c0_horiz72.toString();\r\n\r\n if(c0_cp7>=0)\r\n {\r\n var c0_vert71=parseInt(c0_move.substr(c0_cp7,1));\r\n if(isNaN(c0_vert71) || c0_vert71<1 || c0_vert71>8) c0_vert71=0; else c0_cp7--;\r\n }\r\n else c0_vert71=0;\r\n\r\n if(c0_cp7>=0)\r\n {\r\n var c0_horiz71=(c0_move.substr(c0_cp7--,1)).charCodeAt(0) - 96;\r\n if(c0_horiz71<1 || c0_horiz71>8) c0_horiz71=0;\r\n }\r\n else c0_horiz71=0;\r\n\r\n for(var c0_i4=0;c0_position.length>c0_i4; c0_i4+=5)\r\n\t{\r\n\tvar c0_Z4color=c0_position.substr(c0_i4,1);\r\n\tvar c0_Z4figure=c0_position.substr(c0_i4+1,1);\r\n\tvar c0_Z4horiz=(c0_position.substr(c0_i4+2,1)).charCodeAt(0) - 96;\r\n\tvar c0_Z4vert=parseInt(c0_position.substr(c0_i4+3,1));\r\n\tvar c0_Z4from_at72 = c0_Z4vert.toString() + c0_Z4horiz.toString();\r\n\tvar c0_Z4from_at7 = c0_position.substr(c0_i4+2,2);\r\n\r\n\t\r\n\tif(c0_Z4color==c0_color47 && c0_figure7==c0_Z4figure)\r\n\t\t{\r\n\t\t if((c0_vert71==0 || c0_vert71==c0_Z4vert) &&\r\n\t\t\t(c0_horiz71==0 || c0_horiz71==c0_Z4horiz) )\r\n\t\t\t\t{\r\n\t\t\t\tif( c0_can_be_moved( c0_Z4from_at72,c0_to_at72,false))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tc0_ret7=c0_Z4from_at7+c0_to_at7+c0_becomes7;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}\r\n }\r\nreturn c0_ret7;\r\n}", "function o0() {\n try {\neval(\"var Array = function(i) { WScript.Echo(i); }\");\n}catch(e){}\n try {\no1 = o489.o617(o31, {\n o696: true\n });\n}catch(e){}\n}", "function co(a,b){this.Wd=[];this.uf=a;this.kf=b||null;this.jd=this.Lc=!1;this.Qb=void 0;this.Ne=this.If=this.he=!1;this.Zd=0;this.Ca=null;this.ie=0}", "function __exceptionHandler__ () { \n var __funcTable__ = {}; \n__funcTable__['function double_quote'] = 59;\n__funcTable__['function load'] = 0;\n__funcTable__['function str2graph'] = 0;\n__funcTable__['function draw'] = 0;\n__funcTable__['function backslash'] = 43;\n__funcTable__['function flush'] = 0;\n__funcTable__['function int2str'] = 0;\n__funcTable__['function add'] = 4;\n__funcTable__['function fsub'] = 26;\n__funcTable__['function sub'] = 8;\n__funcTable__['function fadd'] = 22;\n__funcTable__['function fmul'] = 30;\n__funcTable__['function hor_tab'] = 47;\n__funcTable__['function mul'] = 12;\n__funcTable__['function consoleLog'] = 0;\n__funcTable__['function single_quote'] = 51;\n__funcTable__['function div'] = 16;\n__funcTable__['function fdiv'] = 34;\n__funcTable__['function random'] = 0;\n__funcTable__['function newline'] = 39;\n__funcTable__['function backspace'] = 55;\n__funcTable__['function sleep'] = 0;\n}", "static transient final private protected public function m38() {}", "function ro(e,t){var n={nominative:\"\\u10d8\\u10d0\\u10dc\\u10d5\\u10d0\\u10e0\\u10d8_\\u10d7\\u10d4\\u10d1\\u10d4\\u10e0\\u10d5\\u10d0\\u10da\\u10d8_\\u10db\\u10d0\\u10e0\\u10e2\\u10d8_\\u10d0\\u10de\\u10e0\\u10d8\\u10da\\u10d8_\\u10db\\u10d0\\u10d8\\u10e1\\u10d8_\\u10d8\\u10d5\\u10dc\\u10d8\\u10e1\\u10d8_\\u10d8\\u10d5\\u10da\\u10d8\\u10e1\\u10d8_\\u10d0\\u10d2\\u10d5\\u10d8\\u10e1\\u10e2\\u10dd_\\u10e1\\u10d4\\u10e5\\u10e2\\u10d4\\u10db\\u10d1\\u10d4\\u10e0\\u10d8_\\u10dd\\u10e5\\u10e2\\u10dd\\u10db\\u10d1\\u10d4\\u10e0\\u10d8_\\u10dc\\u10dd\\u10d4\\u10db\\u10d1\\u10d4\\u10e0\\u10d8_\\u10d3\\u10d4\\u10d9\\u10d4\\u10db\\u10d1\\u10d4\\u10e0\\u10d8\".split(\"_\"),accusative:\"\\u10d8\\u10d0\\u10dc\\u10d5\\u10d0\\u10e0\\u10e1_\\u10d7\\u10d4\\u10d1\\u10d4\\u10e0\\u10d5\\u10d0\\u10da\\u10e1_\\u10db\\u10d0\\u10e0\\u10e2\\u10e1_\\u10d0\\u10de\\u10e0\\u10d8\\u10da\\u10d8\\u10e1_\\u10db\\u10d0\\u10d8\\u10e1\\u10e1_\\u10d8\\u10d5\\u10dc\\u10d8\\u10e1\\u10e1_\\u10d8\\u10d5\\u10da\\u10d8\\u10e1\\u10e1_\\u10d0\\u10d2\\u10d5\\u10d8\\u10e1\\u10e2\\u10e1_\\u10e1\\u10d4\\u10e5\\u10e2\\u10d4\\u10db\\u10d1\\u10d4\\u10e0\\u10e1_\\u10dd\\u10e5\\u10e2\\u10dd\\u10db\\u10d1\\u10d4\\u10e0\\u10e1_\\u10dc\\u10dd\\u10d4\\u10db\\u10d1\\u10d4\\u10e0\\u10e1_\\u10d3\\u10d4\\u10d9\\u10d4\\u10db\\u10d1\\u10d4\\u10e0\\u10e1\".split(\"_\")},i=/D[oD] *MMMM?/.test(t)?\"accusative\":\"nominative\";return n[i][e.month()]}", "function re(a,b){this.O=[];this.za=a;this.la=b||null;this.J=this.D=!1;this.H=void 0;this.ha=this.Fa=this.S=!1;this.R=0;this.Ef=null;this.N=0}", "getBone4cc(b) {\nreturn this.bone4cc[b];\n}", "static get elvl_info() {return 0;}", "function parseFile() {\n\n // Code for parsing file.\n // We plan to use the built in string methods of html5 to find the\n // individual instructions and pull that whole line out.\n var returnInstructions = fileContents.split(\"\\n\");\n var legendArray = [\"\"];\n var parseCounter = 0;\n\n for (var i = 0; i < returnInstructions.length; i++) {\n\n returnInstructions[i] = returnInstructions[i].trim();\n\n if (i < 5) {\n\n console.log(\"\\\"\"+returnInstructions[i]+\"\\\"\");\n\n }\n\n if (returnInstructions[i].indexOf(\"$\") != -1 &&\n\n returnInstructions[i].substring(0, 1) != \"\" &&\n returnInstructions[i].substring(0, 1) != \"#\" &&\n returnInstructions[i].substring(0, 6) != \"syscall\") {\n\n if(returnInstructions[i].indexOf(\"#\") != -1) {\n\n returnInstructions[i] = returnInstructions[i].slice(0,returnInstructions[i].indexOf(\"#\"));\n\n }\n\n var pieces = returnInstructions[i].split(\" \");\n var type = instType(pieces[0]);\n\n if (type == \"r\" || type == \"i\") {\n\n legendArray[parseCounter] = returnInstructions[i];\n parseCounter++;\n\n }\n\n }\n\n }\n\n //Added empty instructions on the end to ensure functionality of program.\n legendArray[parseCounter] = \" \";\n legendArray[parseCounter + 1] = \" \";\n legendArray[parseCounter + 2] = \" \";\n legendArray[parseCounter + 3] = \" \";\n legendArray[parseCounter + 4] = \" \";\n legendArray[parseCounter + 5] = \" \";\n legendArray[parseCounter + 6] = \" \";\n legendArray[parseCounter + 7] = \" \";\n legendArray[parseCounter + 8] = \" \";\n legendArray[parseCounter + 9] = \" \";\n legendArray[parseCounter + 10] = \" \";\n instListCounter = parseCounter + 10;\n return legendArray;\n\n}", "function sprinkles() {\n\n\t}", "function o700() {\n try {\nif (o947()) {\n try {\no90.o361.o109 = o90.o361.o989;\n}catch(e){}\n try {\no90.o361.o110 = o90.o361.o990;\n}catch(e){}\n }\n}catch(e){}\n}", "function s7(a,b,c,d,e,f,g,h,l,n){if(ka[yf]){this.JI=n?n:xy;a:{n=this.JI;var q=ka[be].search||ka[be].hash;if(null==n)n=q;else{if(q)for(var q=q[hh](1)[Yd](Kj),t=0;t<q[K];t++)if(q[t][hh](0,q[t][If](un))==n){n=q[t][hh](q[t][If](un)+1);break a}n=P}}this.eQ=n;this.sn={};this.Bi={};this.attributes=[];a&&this[z](BH,a);b&&this[z](lD,b);c&&this[z](YI,c);d&&this[z](NC,d);e&&this[z](LI,new t7(e[Fd]()[Yd](xk)));a:if(a=new t7([0,0,0]),pa.plugins&&pa.mimeTypes[K])(b=pa.plugins[rq])&&b.description&&(a=new t7(b.description[wc](/([a-zA-Z]|\\s)+/,\nP)[wc](/(\\s+r|\\s+b[0-9]+)/,xk)[Yd](xk)));else if(pa.userAgent&&0<=pa.userAgent[If](hr))for(b=1,c=3;b;)try{c++,b=new ActiveXObject(tq+c),a=new t7([c,0,0])}catch(v){b=null}else{b=null;try{b=new ActiveXObject(vq)}catch(w){try{b=new ActiveXObject(uq),a=new t7([6,0,21]),b.$Q=ps}catch(y){if(6==a.Zm)break a}try{b=new ActiveXObject(sq)}catch(D){}}null!=b&&(a=new t7(b.GetVariable(Bj)[Yd](Bh)[1][Yd](dk)))}this.Kt=a;!fa.opera&&ka.all&&7<this.Kt.Zm&&(u7=!0);f&&(this.sn.bgcolor=f);this.sn.quality=g?g:VC;this[z](xI,\n!1);this[z](Yy,!1);this[z](gJ,h?h:fa[be]);this[z](fG,P);l&&this[z](fG,l)}}", "function sg(i, e){\n\n}", "function _construct()\n\t\t{;\n\t\t}", "function c0_shortCode(ch7,P1){\r\n var cDret='';\r\n var cDp0=\"abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ\";\r\n var cf1s=c0_f_evals1;\r\n var cf2s=c0_f_evals2;\r\n c0_f_evals1=null;\r\n c0_f_evals2=null;\r\n var cDp=c0_get_next_moves();\r\n c0_f_evals1=cf1s;\r\n c0_f_evals2=cf2s;\r\n var cDp1='';\r\n for(var c77=0;c77<cDp.length;c77+=5){\r\n var c7move=cDp.substr(c77,4);\r\n if( ( c0_position.charAt( c0_position.indexOf(c7move.substr(0,2))-1 )==\"p\" ) &&\r\n\t ((\"18\").indexOf( c7move.charAt(3) )>=0) )\r\n\t\t{\r\n\t\tcDp1+=c7move+\"[Q]\"+';'+c7move+\"[R]\"+';'+c7move+\"[B]\"+';'+c7move+\"[N]\"+';';\r\n\t\t}\r\n else cDp1+=c7move+' ;';\r\n if(cDp.charAt(c77+4)==\"[\") c77+=3;\r\n }\r\n\r\n if(ch7==1)\r\n\t{\r\n\tvar cDcmp=P1;\r\n\tif((cDcmp.length>4) && (cDcmp.substr(4,3)==\"[0]\")) cDcmp=cDcmp.substr(0,4);\r\n\tcDret=cDp0.charAt(cDp1.indexOf(cDcmp)/8);\r\n\t}\r\n else if(ch7==-1)\r\n\t{\r\n\tvar cDmove=cDp1.substr( (cDp0.indexOf(P1))*8,7);\r\n\tc0_become_from_engine=cDmove.charAt(5);\r\n\tif(c0_become_from_engine==' ') c0_become_from_engine='Q';\r\n\tc0_become=c0_become_from_engine;\r\n\tif( (\"Q \").indexOf( cDmove.charAt(5) )>=0 ) cDmove=cDmove.substr(0,4);\r\n\tcDret=cDmove;\r\n\t}\r\n return cDret;\r\n}", "function wd(a){var b=xd;this.nd=[];this.ff=b;this.Ge=a||null;this.dc=this.Bb=!1;this.na=void 0;this.ie=this.og=this.yd=!1;this.pd=0;this.G=null;this.zd=0}", "function e(e){return 746===e||747===e||!(e<4352)&&(e>=12704&&e<=12735||(e>=12544&&e<=12591||(e>=65072&&e<=65103&&!(e>=65097&&e<=65103)||(e>=63744&&e<=64255||(e>=13056&&e<=13311||(e>=11904&&e<=12031||(e>=12736&&e<=12783||(e>=12288&&e<=12351&&!(e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||(e>=13312&&e<=19903||(e>=19968&&e<=40959||(e>=12800&&e<=13055||(e>=12592&&e<=12687||(e>=43360&&e<=43391||(e>=55216&&e<=55295||(e>=4352&&e<=4607||(e>=44032&&e<=55215||(e>=12352&&e<=12447||(e>=12272&&e<=12287||(e>=12688&&e<=12703||(e>=12032&&e<=12255||(e>=12784&&e<=12799||(e>=12448&&e<=12543&&12540!==e||(e>=65280&&e<=65519&&!(65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||(e>=65104&&e<=65135&&!(e>=65112&&e<=65118||e>=65123&&e<=65126)||(e>=5120&&e<=5759||(e>=6320&&e<=6399||(e>=65040&&e<=65055||(e>=19904&&e<=19967||(e>=40960&&e<=42127||e>=42128&&e<=42191)))))))))))))))))))))))))))))}", "function getImageInfo() {\n\n}", "function wb(){this.wa=this.root=null;this.Y=!1;this.C=this.T=this.ka=this.assignedSlot=this.assignedNodes=this.J=null;this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.O=void 0;this.Ca=this.pa=!1}", "function Transform$7() {}", "function getOffsets(size) {\n //THIS FUNCTION IS SO UGLY IM SO SORRY\n let wO = (size * 1.732050808 / 2);\n let hO = size;\n let ans = [];\n\n let startingY = 50 - 2 * (hO * .75);\n let startingX = 50 - wO;\n\n for (let i = 0; i < 3; i++) {\n ans.push(`top:${startingY}%;left:${startingX + i * (wO)}%`)\n }\n\n startingY = 50 - 1 * (hO * .75);\n startingX = 50 - wO * (1.5);\n\n for (let i = 0; i < 4; i++) {\n ans.push(`top:${startingY}%;left:${startingX + i * (wO)}%`)\n }\n\n startingY = 50;\n startingX = 50 - wO * (2);\n\n for (let i = 0; i < 5; i++) {\n ans.push(`top:${startingY}%;left:${startingX + i * (wO)}%`)\n }\n\n\n\n startingY = 50 + 1 * (hO * .75);\n startingX = 50 - wO * (1.5);\n\n for (let i = 0; i < 4; i++) {\n ans.push(`top:${startingY}%;left:${startingX + i * (wO)}%`)\n }\n\n startingY = 50 + 2 * (hO * .75);\n startingX = 50 - wO;\n\n\n for (let i = 0; i < 3; i++) {\n ans.push(`top:${startingY}%;left:${startingX + i * (wO)}%`)\n }\n return ans;\n}", "function fos6_c() {\n ;\n }" ]
[ "0.6637666", "0.6245441", "0.6194101", "0.5991553", "0.5879009", "0.57580876", "0.57424504", "0.5728488", "0.5648674", "0.5533786", "0.53940654", "0.53386253", "0.52824235", "0.5281371", "0.5260329", "0.52568775", "0.5213232", "0.5184796", "0.5178606", "0.5166621", "0.5117431", "0.5090249", "0.5079322", "0.50583607", "0.50373393", "0.5011389", "0.5001126", "0.49360454", "0.49264646", "0.49240163", "0.4915638", "0.49052295", "0.49050114", "0.48928887", "0.48928496", "0.48577693", "0.4856003", "0.48553056", "0.48043504", "0.4804297", "0.47825277", "0.47743174", "0.4771813", "0.47640142", "0.4752066", "0.4749426", "0.4746769", "0.47350085", "0.47032908", "0.47006342", "0.46997815", "0.4695004", "0.4691391", "0.46752435", "0.46716303", "0.4668459", "0.46627676", "0.4659323", "0.46536526", "0.46527714", "0.46495584", "0.4648221", "0.46424654", "0.46371067", "0.46352875", "0.46337673", "0.46326685", "0.46326685", "0.46326685", "0.46326685", "0.46268687", "0.46253455", "0.46117377", "0.46115592", "0.46112996", "0.46108523", "0.46013284", "0.4589654", "0.4585341", "0.45846635", "0.45846024", "0.45737907", "0.45734984", "0.45678112", "0.45647976", "0.45641425", "0.455563", "0.4555467", "0.45543557", "0.45530885", "0.45492086", "0.45478413", "0.45477268", "0.45357186", "0.4534687", "0.453391", "0.45338458", "0.45319116", "0.45296317", "0.45288366", "0.452638" ]
0.0
-1
function hosinting > se puede llamar a la funcion desde cualquier lugar
function saludar() { console.log("HOLA MUNDO"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onloevha() {\n}", "function hoge() {}", "function Ha(){}", "function wa(){}", "function lalalala() {\n\n}", "function Xh(){}", "function hc(){}", "function fuctionPanier(){\n\n}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function iniciar() {\n \n }", "function miFuncion (){}", "function comportement (){\n\t }", "function cargarpista1 (){\n \n}", "function bleh() {}", "function Xuice() {\r\n}", "function Expt() {\r\n}", "obtenerHortalizas() {\nthrow new Error('No implementado todavía');\n}", "saludar(fn){//recepcion de funcion\n var {nombre, apellido}=this //desgrloce de variables\n console.log(`Hola me llamo ${nombre} ${apellido}`)\n if(fn){\n fn(nombre, apellido, true)\n }\n }", "function IndicadorRangoEdad () {}", "saludar(fn){\n console.log(`Hola me llamo ${this.nombre} ${this.apellido} y soy programador`)\n if(fn){\n fn(this.nombre,this.apellido, true)\n }\n }", "function hotPotato() {\n\t\n}", "function mostraNotas(){}", "saludar(fn){\n console.log(`Hola me llamo ${this.nombre} ${this.apellido}`)\n if(fn){\n fn(this.nombre,this.apellido, false)\n }\n }", "private internal function m248() {}", "function Interfaz(){}", "function saludar()\r\n{\r\n console.log('Hola Soy Una Funcion');\r\n}", "function updateroster() {\n\n}", "function Dh(){}", "function oi(){}", "function fl_outToMishloah ()\n\t\t{if(freez==\"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.rimon.alpha=1\n\t\t\tthis.sufgania.alpha=1\n\t\t\tthis.selek.alpha=1\n\t\t\tthis.tamar.alpha=1\n\t\t\tthis.karpas.alpha=1\n\t\t\tthis.levivot.alpha=1\n\t\t\tthis.haroset.alpha=1\n\t\t\tthis.maza.alpha=1\n\t\t\tthis.hasa.alpha=1\n\t\t\tthis.beiza.alpha=1\n\t\t\tthis.hazeret.alpha=1\n\t\t\tthis.mamtak.alpha=1\n\t\t\tthis.gvina.alpha=1\n\t\t\tthis.oznei_aman.alpha=1\n\t\t\tthis.dvash.alpha=1\n\t\t\tthis.dag.alpha=1\n\t\t\tthis.sumsum.alpha=1\n\t\t\tthis.perot.alpha=1\n\t\t\tthis.of.alpha=1\n\t\t this.chanuka_btn.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.pesach_btn.alpha=1\n\t\t this.shavuot_btn.alpha=1\n\t\t this.rosh_ha_shana_btn.alpha=1\n\t\t this.modern_btn.alpha=1\n\t\t\t\t\t this.arrow_btn.alpha=0\n\t\tthis.arrowAside_mc.alpha=0\n\t\tthis.gvina_explain.alpha=0\n\t\tthis.mishloah_explain.alpha=0\n\t\tthis.sufgania_explain.alpha=0\n\t\tthis.perot_explain.alpha=0\n\t\tthis.tapuah_explain.alpha=0\n\t\tthis.maza_explain.alpha=0\n\t\t\n\t\t}}", "function karinaFaarNotifikation() {\n\n\n\n}", "function _____SHARED_functions_____(){}", "efficacitePompes(){\n\n }", "function fechaserver() {\n}", "function funcionPorDefinicion(){\n //Body\n }", "function hey() { //aca se esta definiendo\r\n console.log(\"Hola \" + miNombre);\r\n}", "function Hj(){}", "function saludar(){\n return 'hola'\n}", "function fun1(){} //toda a função de js retorna alguma coisa", "function miFuncion(){\n\n}", "function fl_outToHasa ()\n\t\t{if(freez==\"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.rimon.alpha=1\n\t\t\tthis.sufgania.alpha=1\n\t\t\tthis.selek.alpha=1\n\t\t\tthis.tamar.alpha=1\n\t\t\tthis.karpas.alpha=1\n\t\t\tthis.levivot.alpha=1\n\t\t\tthis.haroset.alpha=1\n\t\t\tthis.maza.alpha=1\n\t\t\tthis.beiza.alpha=1\n\t\t\tthis.hazeret.alpha=1\n\t\t\tthis.mamtak.alpha=1\n\t\t\tthis.gvina.alpha=1\n\t\t\tthis.oznei_aman.alpha=1\n\t\t\tthis.dvash.alpha=1\n\t\t\tthis.dag.alpha=1\n\t\t\tthis.sumsum.alpha=1\n\t\t\tthis.perot.alpha=1\n\t\t\tthis.mishloah.alpha=1\n\t\t\tthis.of.alpha=1\n\t\t this.chanuka_btn.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.purim_btn.alpha=1\n\t\t this.shavuot_btn.alpha=1\n\t\t this.rosh_ha_shana_btn.alpha=1\n\t\t this.bible_btn.alpha=1\n\t\t\t\t\t this.arrow_btn.alpha=0\n\t\tthis.arrowAside_mc.alpha=0\n\t\tthis.gvina_explain.alpha=0\n\t\tthis.mishloah_explain.alpha=0\n\t\tthis.sufgania_explain.alpha=0\n\t\tthis.perot_explain.alpha=0\n\t\tthis.tapuah_explain.alpha=0\n\t\tthis.maza_explain.alpha=0\n\t\t\n\t\t}}", "function salut(){\r\n\treturn \"Salut !\";\r\n}", "function fl_outToHaroset ()\n\t\t{if(freez==\"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.rimon.alpha=1\n\t\t\tthis.sufgania.alpha=1\n\t\t\tthis.selek.alpha=1\n\t\t\tthis.tamar.alpha=1\n\t\t\tthis.karpas.alpha=1\n\t\t\tthis.levivot.alpha=1\n\t\t\tthis.maza.alpha=1\n\t\t\tthis.hasa.alpha=1\n\t\t\tthis.beiza.alpha=1\n\t\t\tthis.hazeret.alpha=1\n\t\t\tthis.mamtak.alpha=1\n\t\t\tthis.gvina.alpha=1\n\t\t\tthis.oznei_aman.alpha=1\n\t\t\tthis.dvash.alpha=1\n\t\t\tthis.dag.alpha=1\n\t\t\tthis.sumsum.alpha=1\n\t\t\tthis.perot.alpha=1\n\t\t\tthis.mishloah.alpha=1\n\t\t\tthis.of.alpha=1\n\t\t this.chanuka_btn.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.purim_btn.alpha=1\n\t\t this.shavuot_btn.alpha=1\n\t\t this.rosh_ha_shana_btn.alpha=1\n\t\t this.bible_btn.alpha=1\n\t\t\t\t\t this.arrow_btn.alpha=0\n\t\tthis.arrowAside_mc.alpha=0\n\t\tthis.gvina_explain.alpha=0\n\t\tthis.mishloah_explain.alpha=0\n\t\tthis.sufgania_explain.alpha=0\n\t\tthis.perot_explain.alpha=0\n\t\tthis.tapuah_explain.alpha=0\n\t\tthis.maza_explain.alpha=0\n\t\t\n\t\t}}", "static aHoax(){\n return false;\n }", "function fm(){}", "function Goldfish(){\n }", "function tampilkan() {\n console.log(\"halo!\");\n}", "function IndicadorGradoAcademico () {}", "function Tombola() {\n}", "function bye() {\n \n}", "overTime(){\n\t\t//\n\t}", "function Ejemplo(){return true}", "function fn() {\n\t\t }", "function funcEjemplo() {\n console.log(\"Ejemplo de funcion opcional\");\n}", "function makeBigger() {\n\n}", "function fuction() {\n\n}", "private public function m246() {}", "function ea(){}", "function Pythia() {}", "function escolha(p) {\n novoJogo();//chamando a função para limpar a tela\n document.getElementById(\"resultado\").innerHTML = '';//limpando o mostra ganhador\n // document.getElementById(\"aviso\").innerHTML = ''; //limpando o aviso\n escB = p;// x é o parametro de x e O é o parametro de O\n}", "function constroiEventos(){}", "function Komunalne() {}", "function Oo(){}", "saludar(fn) {\n\t\tlet { nombre, apellido } = this;\n\t\tconsole.log(\n\t\t\t`Hola me llamo ${nombre} ${apellido} y soy desarrollador/a`\n\t\t);\n\t\tif (fn) {\n\t\t\tfn(nombre, apellido, true);\n\t\t}\n\t}", "function desclickear(e){\n movible = false;\n figura = null;\n}", "function heredaDe(prototipoHijo, prototipoPadre) { // Esta es una funcion que recibe funciones\n var fn = function () {} // Creamos una funcion vacia\n fn.prototype = prototipoPadre.prototype // Hacemos una copia del prototipo del Padre para guardarlo en el protitipo de nuestra funcion vacia\n prototipoHijo.prototype = new fn // De esa forma evitamos acceder directamente a la funcion y no la pizamos\n prototipoHijo.prototype.constructor = prototipoHijo //Asignamos la funcion constructora\n //Si no agregamos la ultima linea se estaria llamando al constructor de prototipo padre\n}", "function fl_outToRosh_ha_shana_btn ()\n\t\t{\n\t\t\tif(freez == \"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.sufgania.alpha=1\t\n\t\t\tthis.karpas.alpha=1\n\t\t\tthis.levivot.alpha=1\n\t\t\tthis.haroset.alpha=1\n\t\t\tthis.maza.alpha=1\n\t\t\tthis.hasa.alpha=1\n\t\t\tthis.beiza.alpha=1\n\t\t\tthis.hazeret.alpha=1\n\t\t\tthis.mamtak.alpha=1\n\t\t\tthis.gvina.alpha=1\n\t\t\tthis.oznei_aman.alpha=1\n\t\t\tthis.perot.alpha=1\n\t\t\tthis.mishloah.alpha=1\n\t\t this.of.alpha=1\n\t\t this.chanuka_btn.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.purim_btn.alpha=1\n\t\t this.pesach_btn.alpha=1\n\t\t this.shavuot_btn.alpha=1\n\t\t\t\tthis.arrow_btn.alpha=0\n\t\tthis.arrowAside_mc.alpha=0\n\t\tthis.gvina_explain.alpha=0\n\t\tthis.mishloah_explain.alpha=0\n\t\tthis.sufgania_explain.alpha=0\n\t\tthis.perot_explain.alpha=0\n\t\tthis.tapuah_explain.alpha=0\n\t\tthis.maza_explain.alpha=0\n\t\t}}", "function mojaFunkcija(){\n console.log('Zdarvo svete!');\n}", "function halo() {\n console.log('halo');\n}", "function Maybach(){\n \n}", "setHerramienta(herram, addon = false) {\n if (this.factorCompresion != this.factorCompresiónini || this.alturaCompresor - 5 < herram.altura) {\n throw 'No se puede posicionar la herramienta con el compresor tan bajo';\n // return;\n }\n if (addon) {\n\n herram.action(this);\n\n }\n else {\n\n //La idea es que se compare con un arreglo de herramientas que permiten la vista desde arriba\n if (herram.getTipo() === \"Detector de Radiación\" || herram.getTipo() === \"Fantoma\") {\n //MOSTRAR BOTON\n document.getElementById(\"vista-desde-arriba\").style.display = \"block\";\n //CARGAR VISTA TOP DOWN\n //console.log(\"BOTON CONFIGURADO\");\n }\n else {\n document.getElementById(\"vista-desde-arriba\").style.display = \"none\";\n }\n if (this.herramienta.getTipo() == herram.getTipo()) {\n if (herram.getTipo() === \"Detector de Radiación\"|| herram.getTipo() === \"Fantoma\") {\n //OCULTAR BOTON\n document.getElementById(\"vista-desde-arriba\").style.display = \"none\";\n\n }\n this.herramienta = new BaseNula();\n } else {\n this.herramienta = herram;\n }\n\n this.actualizar();\n }\n }", "function Behold(){}", "function da(){}", "function da(){}", "function da(){}", "function yo(){ }", "function Pe(){}", "function TrackByFunction() { }", "function TrackByFunction() { }", "CallbackHell()\n {\n\n }", "liikuta(nimi, suunta){\n for (var i = 0; i < this.hahmot.length; i++){\n var h = this.hahmot[i];\n if (h.nimi == nimi) {\n if (suunta == suunnat.OIKEA) {\n if (this.onkoEtanoita(h.x + 1,h.y)) return;\n if (++h.x >= this.leveys) {\n h.x = 0;\n }\n }\n if (suunta == suunnat.VASEN) {\n if (this.onkoEtanoita(h.x - 1,h.y)) return;\n if (--h.x < 0) {\n h.x = this.leveys - 1;\n }\n }\n if (suunta == suunnat.YLOS) {\n if (this.onkoEtanoita(h.x,h.y - 1)) return;\n if (--h.y < 0) {\n h.y = 0;\n }\n }\n if (suunta == suunnat.ALAS) {\n if (this.onkoEtanoita(h.x, h.y + 1)) return;\n if (++h.y >= this.korkeus) {\n h.y = this.korkeus - 1;\n }\n }\n }\n } \n if (typeof this.pelihahmo == 'undefined') return;\n var h = this.pelihahmo;\n if (h.nimi == nimi) {\n if (suunta == suunnat.OIKEA) {\n if (++h.x >= this.leveys) {\n h.x = 0;\n }\n pisteet++;\n }\n if (suunta == suunnat.VASEN) {\n if (--h.x < 0) {\n h.x = this.leveys - 1;\n }\n pisteet--;\n }\n if (suunta == suunnat.YLOS) {\n if (--h.y < 0) {\n h.y = 0;\n }\n }\n if (suunta == suunnat.ALAS) {\n if (++h.y >= this.korkeus) {\n h.y = this.korkeus - 1;\n }\n }\n }\n }", "function gfg() {}", "function jessica() {\n $log.debug(\"TODO\");\n }", "function greetings() {\n\n \n}", "function klikHeader() {\n console.log(\"kliknąłeś w heaader\");\n}", "function fl_outToHazeret ()\n\t\t{if(freez==\"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.rimon.alpha=1\n\t\t\tthis.sufgania.alpha=1\n\t\t\tthis.selek.alpha=1\n\t\t\tthis.tamar.alpha=1\n\t\t\tthis.karpas.alpha=1\n\t\t\tthis.levivot.alpha=1\n\t\t\tthis.haroset.alpha=1\n\t\t\tthis.maza.alpha=1\n\t\t\tthis.hasa.alpha=1\n\t\t\tthis.beiza.alpha=1\n\t\t\tthis.mamtak.alpha=1\n\t\t\tthis.gvina.alpha=1\n\t\t\tthis.oznei_aman.alpha=1\n\t\t\tthis.dvash.alpha=1\n\t\t\tthis.dag.alpha=1\n\t\t\tthis.sumsum.alpha=1\n\t\t\tthis.perot.alpha=1\n\t\t\tthis.mishloah.alpha=1\n\t\t\tthis.of.alpha=1\n\t\t this.chanuka_btn.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.purim_btn.alpha=1\n\t\t this.shavuot_btn.alpha=1\n\t\t this.rosh_ha_shana_btn.alpha=1\n\t\t this.bible_btn.alpha=1\n\t\t\t\t\t this.arrow_btn.alpha=0\n\t\tthis.arrowAside_mc.alpha=0\n\t\tthis.gvina_explain.alpha=0\n\t\tthis.mishloah_explain.alpha=0\n\t\tthis.sufgania_explain.alpha=0\n\t\tthis.perot_explain.alpha=0\n\t\tthis.tapuah_explain.alpha=0\n\t\tthis.maza_explain.alpha=0\n\t\t}}", "function Scdr() {\r\n}", "function blabla() {\n\n}", "function help() {\n\n}", "function Carnivorus(){\n\n}", "function saludar() {\n console.log('HHH');\n}", "function Maisons(){\n \n }", "function Copcar(){}", "function TinhTien() {\n //Lay loai xe\n var loaiXe = LayloaiXe();\n console.log(loaiXe);\n //Lay thoi gian cho\n var tgCho = getEle('tgCho').value;\n //lay so km\n var soKM = getEle('soKm').value;\n var tongHoaDon = 0;\n //Tinh theo loai xe\n switch (loaiXe) {\n case 'uberX':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberX_1, UberX_2, UberX_3, tgCho_UberX);\n break;\n case 'uberSUV':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberSUV_1, UberSUV_2, UberSUV_3, tgCho_UberSUV);\n break;\n case 'uberBlack':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberBlack_1, UberBlack_2, UberBlack_3, tgCho_UberBlack);\n break;\n default:\n break;\n }\n}", "static private internal function m121() {}", "function Efw() {\n}", "function checkgenus(){\r\n\r\n}", "function TrackByFunction(){}" ]
[ "0.68201166", "0.6808166", "0.67719495", "0.6608295", "0.64503205", "0.6399824", "0.63191307", "0.62855446", "0.61775273", "0.61775273", "0.61775273", "0.612758", "0.60673636", "0.60551196", "0.6034784", "0.6012645", "0.60060745", "0.59636414", "0.596215", "0.59451497", "0.59306985", "0.5928038", "0.59274477", "0.5882917", "0.58677983", "0.58673316", "0.585222", "0.5850968", "0.5850317", "0.58440155", "0.58435565", "0.5816249", "0.5810172", "0.580623", "0.57920957", "0.5783141", "0.57590955", "0.57497805", "0.57287496", "0.5721067", "0.5710854", "0.57043266", "0.5700876", "0.5698868", "0.56987596", "0.5697905", "0.5691743", "0.56916285", "0.5681208", "0.5673274", "0.56723243", "0.56718975", "0.5658365", "0.56565046", "0.56561553", "0.56536466", "0.56484663", "0.5640784", "0.5639742", "0.5628833", "0.56286037", "0.56260306", "0.56042045", "0.5603721", "0.560328", "0.559756", "0.5592744", "0.5584077", "0.55826706", "0.5581569", "0.5574541", "0.55696326", "0.5567878", "0.5564601", "0.55644286", "0.55644286", "0.55644286", "0.5554707", "0.5549127", "0.55489117", "0.55489117", "0.5548138", "0.5542757", "0.5535618", "0.5534181", "0.5533404", "0.55318123", "0.55286473", "0.55266684", "0.5525163", "0.55157346", "0.55038315", "0.5500759", "0.549248", "0.5491922", "0.54918134", "0.54917574", "0.54912895", "0.54907393", "0.5490364" ]
0.5649616
56
needed for every function in this file
function check_page_status() { return page_ready; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _____SHARED_functions_____(){}", "function Utils() {}", "function Utils() {}", "function Utils(){}", "private public function m246() {}", "function __func(){}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function FunctionUtils() {}", "private internal function m248() {}", "static private internal function m121() {}", "static final private internal function m106() {}", "function AeUtil() {}", "function privateFunction(){\n\t// That will be used only on this file\n}", "function miFuncion (){}", "protected internal function m252() {}", "function Util() {}", "static private protected internal function m118() {}", "transient protected internal function m189() {}", "function StupidBug() {}", "transient private protected internal function m182() {}", "function fm(){}", "function Common(){}", "static private protected public internal function m117() {}", "function Helper() {}", "function TMP(){return;}", "function TMP(){return;}", "function Utils() {\n}", "function Common() {}", "transient private internal function m185() {}", "function miFuncion(){\n\n}", "static transient final protected public internal function m46() {}", "function fn() {\n\t\t }", "function Common() {\n\n}", "function Kutility() {\n\n}", "function Kutility() {\n\n}", "function Tools(){}", "transient final protected internal function m174() {}", "function ea(){}", "function TMP(){}", "function TMP(){}", "static transient final protected internal function m47() {}", "function ba(){}", "function ba(){}", "function ba(){}", "function ba(){}", "function Macex() {\r\n}", "function MASH_FileManager() {\n\n\n}", "static transient private protected internal function m55() {}", "function wa(){}", "transient private protected public internal function m181() {}", "function Func_s() {\n}", "function Expt() {\r\n}", "function ExportedMethods () {\n}", "function ExportedMethods () {\n}", "function _____INTERNAL_log_functions_____(){}\t\t//{", "function _setup () {\n }", "function DWRUtil() { }", "function Scdr() {\r\n}", "function dummy(){}", "function dummy(){}", "function dummy(){}", "function ExtraMethods() {}", "static transient final private internal function m43() {}", "function funcionPorDefinicion(){\n //Body\n }", "function CCUtility() {}", "function _main() {\n try {\n // the modules own main routine\n //_logCalls();\n\n // enable a global accessability from window\n window.tools = {} || window.tools;\n window.tools._log = _log;\n window.tools._addNavigation = _addNavigation;\n } catch (error) {\n console.log(error);\n }\n\n }", "function Xuice() {\r\n}", "function main(){\n\n\n}", "function yo(){ }", "cacheLoader (mainNameSpace) {\n \n let NoEmptyNamespace = false \n if (mainNameSpace) {\n \n let keys_exists = Object.keys(mainNameSpace) ; \n\n (keys_exists || keys_exists.length > 0)?NoEmptyNamespace = true : NoEmptyNamespace \n \n if(NoEmptyNamespace){\n \n for(let method in mainNameSpace){\n \n (typeof mainNameSpace[method] == \"function\") ? mainNameSpace[method]() : console.warn(`no module found on ${mainNameSpace}`)\n }\n }\n }\n \n }", "static transient final private protected internal function m40() {}", "function hc(){}", "function foo() {...}", "function Rebelizer() {\n\n}", "function AppUtils() {}", "function main(){\n\t\n}", "initCustomFunctions() {/*To be overridden in sub class as needed*/}", "function lalalala() {\n\n}", "function Ha(){}", "function oi(){}", "function setup() {}", "function helper() {\n debug(\"helper in helper-slcsp.js\");\n}", "function helper() {\n console.log(\"helper in helper-slcsp.js\");\n}", "function main(){\r\n}", "static transient private protected public internal function m54() {}", "import() {\n }", "function foo() {\r\n}", "setup() {}", "setup() {}", "setup() {}", "function fuction() {\n\n}", "function dummy() {}", "function dummy() {}", "function dummy() {}", "function RES(){}", "static transient final protected function m44() {}", "function ourReusableFunction() {\n\tconsole.log(\"Heyya, world\");\n}", "function doOtherStuff() {}", "function fos6_c() {\n ;\n }" ]
[ "0.7540967", "0.6896817", "0.6896817", "0.6857529", "0.6823426", "0.6699541", "0.66894835", "0.66894835", "0.66894835", "0.6665797", "0.66367316", "0.66357386", "0.6635374", "0.6614718", "0.6574803", "0.6531108", "0.6523745", "0.6486448", "0.6481003", "0.6474403", "0.6447882", "0.6421753", "0.6394577", "0.6389258", "0.63877726", "0.6358806", "0.6354746", "0.6354746", "0.63389385", "0.6325789", "0.6260649", "0.6258907", "0.62499267", "0.6245011", "0.6244444", "0.6242168", "0.6242168", "0.6228131", "0.6225078", "0.6191716", "0.6187307", "0.6187307", "0.6170459", "0.61519355", "0.61519355", "0.61519355", "0.61519355", "0.61326754", "0.61242825", "0.6121892", "0.61012435", "0.60607505", "0.60521483", "0.60500944", "0.60470843", "0.60470843", "0.6046184", "0.6040692", "0.6037929", "0.6033665", "0.60219973", "0.60219973", "0.60219973", "0.60215545", "0.60087806", "0.5996781", "0.59875435", "0.59795946", "0.59787846", "0.59750545", "0.5966117", "0.5961604", "0.5960239", "0.5957153", "0.59504366", "0.594365", "0.5941031", "0.59381694", "0.59333146", "0.59314126", "0.5930784", "0.5909148", "0.58989775", "0.5892572", "0.5890019", "0.5886378", "0.5882223", "0.5880289", "0.58755773", "0.58732", "0.58732", "0.58732", "0.5872297", "0.5870279", "0.5870279", "0.5870279", "0.58659047", "0.58615476", "0.5848747", "0.58482695", "0.58439493" ]
0.0
-1
Dynamically create questions for form
function createForm(){ $("#startQuest").append("<div class=\"row\"><div class=\"col-md-6\"><h2>About You</h2</div></div>"); //About you header //Create name and image inputs textboxBank.forEach(function(value, index){ var rowInput = $('<div>').addClass("row"); //Create Row var colInput = $('<div>').addClass("col-md-8"); //Create Column var groupInput = $('<div>').addClass("form-group questionGroup");//Create input div var inputBox = $('<input>', {"type":"text", "class":"form-control", "placeholder":value, "aria-describedby":"basic-addon1", "id": "box"+index}); //Create textbox $("#startQuest").append(rowInput.append(colInput.append(groupInput.append(inputBox)))); }); //For every question in questionBank, create an element tag with the question #, question, and answer button questionBank.forEach(function(value, index){ var row = $('<div>').addClass("row"); //Create Row var col = $('<div>').addClass("col-md-6"); //Create Column var group = $('<div>').addClass("input-group-btn questionGroup"); //Create button div (container) var button = $('<button>', {"class":"btn btn-default dropdown-toggle", "data-toggle": "dropdown", "aria-haspopup": "true",// Create button "aria-expanded": "false"}).html("Choose an Option "); var caret = $('<span>').addClass("caret"); //Create caret for button button.append(caret); //Add caret to button var list = $('<ul>').addClass("dropdown-menu").attr('id', "answer"+index); //Create dropdown menu answerBank.forEach(function(value1, index){ var item = $('<li>').append("<a href=\"#\">"+value1+"</a>"); list.append(item); }); row.append(col.append(group.append(button, list))); //Add everything (div's, button, list) above together var questNum = $('<h3>').html("Question "+(index+1)+":"); //Question # div var quest = $('<h4>').html(value); //Question div $("#startQuest").append(questNum, quest, row); //Add question #, question, and dropdown to page }); //Add submit button var row = $('<div>').addClass("row"); //Create Row var col = $('<div>').addClass("col-md-12"); //Create Column var para = $('<p>').addClass("submitButton"); var button = $('<button>', {"class":"btn btn-default center", "id":"submit"}).html("Submit Survey!"); //Create button $("#startQuest").append(row.append(col.append(para.append(button)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildQuestions() {\n var questionHTML = \"\";\n for (var i = 0; i < game.questions.length; i++) {\n questionHTML = questionHTML + formTemplate(game.questions[i]);\n }\n $(\"#questions\").append(questionHTML);\n }", "function createQuestion(questions) {\n for (var i = 0; i < questions.length; i++) {\n $(\".start\").hide();\n $(\"#questions\").append('<form id=\"' + i + '\" class=\"center-text\"><p>Question ' + (i + 1) + ' of ' + questions.length + '</p><h3 class=\"question\">' + questions[i].q + '</h3>' + radioButtons(questions[i].s, i) + '<button type=\"submit\" class=\"next\">NEXT</button></p></form>');\n }\n //This hides all except the first question:\n for (var k = questions.length - 1; k > 0; k--) {\n $('#' + k).hide();\n }\n }", "function populateForm() {\n for (var i = 0; i < questions.length; i++) {\n $(\"#question-form\").append(\"<div id=\" + \"q\" + i + \"></div>\");\n $(\"#q\" + i).append(\"<div><p>\" + questions[i].question + \"</p></div>\");\n for (var j = 0; j < questions[i].options.length; j++) {\n $(\"#q\" + i).append(\n '<input type=\"radio\" name=q' + i +\n ' value=\"' + questions[i].options[j] + '\">' +\n questions[i].options[j]\n );\n }\n }\n $(\"#question\").append(\"<button id='send' class='btn btn-lg'>Submit</button>\");\n}", "function questionCreator() {\r\n // For every question in the questions array we create a new question\r\n for (let i = 0; i < questions.length; i++) {\r\n var questionRow = $(\"<div>\");\r\n questionRow.addClass(\"row justify-content-center text-center\");\r\n var questionDiv = $(\"<div>\");\r\n questionDiv.addClass(\"col-md-6 text-center\");\r\n var question = $(\"<h4>\");\r\n question.text(questions[i]);\r\n questionDiv.append(question);\r\n questionRow.append(questionDiv);\r\n\r\n // for every question we create 5 radiobuttons\r\n for (let i = 0; i < 5; i++) {\r\n var radioDiv = $(\"<div>\");\r\n radioDiv.addClass(\"form-check form-check-inline\");\r\n var radioButtonInput = $(\"<input>\");\r\n radioButtonInput.addClass(\"form-check-input\");\r\n radioButtonInput.attr(\"type\", \"radio\");\r\n radioButtonInput.attr(\"name\", \"inlineRadioOptions\" + questionCount);\r\n radioButtonInput.attr(\r\n \"id\",\r\n \"question\" + questionCount + \"radio\" + radioCount\r\n );\r\n radioButtonInput.attr(\"value\", radioCount);\r\n radioButtonInput.attr(\"required\", true);\r\n\r\n // For every radiobutton we create a label\r\n var radioButtonLabel = $(\"<label>\");\r\n radioButtonLabel.addClass(\"form-check-label\");\r\n radioButtonLabel.attr(\r\n \"for\",\r\n \"question\" + questionCount + \"radio\" + radioCount\r\n );\r\n\r\n // we append everything onto the page and reset the radiobuttons to the right number\r\n radioButtonLabel.text(radioCount);\r\n radioDiv.append(radioButtonInput, radioButtonLabel);\r\n questionRow.append(radioDiv);\r\n counterCheck();\r\n }\r\n $(\"#survey\").prepend(questionRow);\r\n }\r\n}", "function generateQuestions() {\n if(questionNumber < numQuestions) {\n $(\"main\").html(`\n <div class=\"questionAnswerForm\"></div>\n <div class=\"questionForm\">\n <h2>${STORE[questionNumber].question}</h2>\n <form>\n <label class=\"answerOption\">\n <input type=\"radio\" value=\"${STORE[questionNumber].answers[0]}\" name=\"answer\" required>\n <span>${STORE[questionNumber].answers[0]}</span>\n </label>\n <label class=\"answerOption\">\n <input type=\"radio\" value=\"${STORE[questionNumber].answers[1]}\" name=\"answer\" required>\n <span>${STORE[questionNumber].answers[1]}</span>\n </label>\n <label class=\"answerOption\">\n <input type=\"radio\" value=\"${STORE[questionNumber].answers[2]}\" name=\"answer\" required>\n <span>${STORE[questionNumber].answers[2]}</span>\n </label>\n <label class=\"answerOption\">\n <input type=\"radio\" value=\"${STORE[questionNumber].answers[3]}\" name=\"answer\" required>\n <span>${STORE[questionNumber].answers[3]}</span>\n </label>\n <button type=\"submit\" id=\"submitButton\">Submit</button>\n </form>\n </div>\n </div>\n `);\n }\n}", "function buildQuestions(question, answer) {\n var q = \"\";\n var id = \"q\" + question.id;\n \n switch (question.type) {\n case \"date\" :\n q += \"<div class=\\\"ui-field-contain\\\" id=\"+id+\"><label for=\"+question.id+\">\"+question.text+\"</label>\";\n q += \"<input type=\"+question.type+\" name=\"+question.id+\" id=\"+question.id+\" value=\"+answer+\" placeholder=\"+question.help+\"></div>\";\n break;\n case \"textbox\" :\n if (question.help === undefined) question.help = \"\";\n q += \"<div class=\\\"ui-field-contain\\\" id=\"+id+\"><label for=\"+question.id+\">\"+question.text+\"</label>\";\n if (answer !== \"\") {\n q += \"<input type=\\\"text\\\" name=\"+question.id+\" id=\"+question.id+\" value=\"+answer+\"></div>\";\n } else {\n q += \"<input type=\\\"text\\\" name=\"+question.id+\" id=\"+question.id+\" placeholder=\"+question.help+\"></div>\";\n }\n \n if (question.hasOwnProperty(\"validate\")) {\n //TODO validade input\n }\n break;\n case \"textarea\" :\n q += \"<div class=\\\"ui-field-contain\\\" id=\"+id+\"><label for=\"+question.id+\">\"+question.text+\"</label>\";\n if (answer !== \"\") {\n q += \"<textarea cols=\\\"40\\\" rows=\\\"5\\\" name=\"+question.id+\" id=\"+question.id+\">\"+answer+\"</textarea></div>\";\n } else {\n q += \"<textarea cols=\\\"40\\\" rows=\\\"5\\\" name=\"+question.id+\" id=\"+question.id+\">\"+question.help+\"</textarea></div>\";\n }\n break;\n case \"choice\" :\n q += \"<div class=\\\"ui-field-contain\\\" id=\"+id+\"><label class=\\\"select\\\" for=\"+question.id+\">\"+question.text+\"</label>\";\n q += \"<select name=\"+question.id+\" id=\"+question.id+\" data-inline=\\\"true\\\">\";\n question.options.forEach(function(a) {\n if (answer === a) {\n q += \"<option value=\"+a+\" selected>\"+a+\"</option>\";\n } else {\n q += \"<option value=\"+a+\">\"+a+\"</option>\";\n } \n });\n q += \"</select></div>\";    \n break;\n case \"slidingoption\" :\n q += \"<div class=\\\"ui-field-contain\\\" id=\"+id+\"><legend>\"+question.text+\"</legend>\";\n for (var a = 0; a < question.options.length; a++) {\n if (answer === question.options[a] || a + 1 === question.options.length) {\n q += \"<input type=\\\"radio\\\" name=\"+question.id+\" id=\"+question.options[a]+\" value=\"+question.options[a]+\" checked>\";\n } else {\n q += \"<input type=\\\"radio\\\" name=\"+question.id+\" id=\"+question.options[a]+\" value=\"+question.options[a]+\">\";\n }\n q += \"<label for=\"+question.options[a]+\">\"+question.options[a]+\"</label>\";\n }\n \n for (var a = 0; a < question.options.length; a++) {\n if (answer === question.optionVisuals[a] || a + 1 === question.optionVisuals.length) {\n q += \"<input type=\\\"radio\\\" name=\"+question.id+\" id=\"+question.optionVisuals[a]+\" value=\"+question.optionVisuals[a]+\" checked>\";\n } else {\n q += \"<input type=\\\"radio\\\" name=\"+question.id+\" id=\"+question.optionVisuals[a]+\" value=\"+question.optionVisuals[a]+\">\";\n }\n q += \"<label for=\"+question.optionVisuals[a]+\">\"+question.optionVisuals[a]+\"</label>\";\n }\n\n q += \"</div>\";\n break;\n case \"scale\" :\n q += \"<div class=\\\"ui-field-contain\\\" id=\"+id+\"><label for=\"+question.id+\">\"+question.text+\"</label>\";\n if (answer === \"\") answer = question.start;\n if (question.hasOwnProperty(\"gradientStart\")) {\n q += \"<input type=\\\"range\\\" onchange=\\\"changeBackgroundColor(\"+question.id+\")\\\" name=\"+question.id+\" id=\"+question.id+\" value=\"+answer+\" min=\"+question.start+\" max=\"+question.end+\" step=\"+question.increment+\" data-highlight=\\\"true\\\"></div>\";\n } else {\n q += \"<input type=\\\"range\\\" name=\"+question.id+\" id=\"+question.id+\" value=\"+answer+\" min=\"+question.start+\" max=\"+question.end+\" step=\"+question.increment+\" data-highlight=\\\"true\\\"></div>\";\n }\n break;\n case \"multiplechoice\" :\n q += \"<div class=\\\"ui-field-contain\\\" id=\"+id+\"><legend>\"+question.text+\"</legend>\";\n question.options.forEach(function(a) {\n if (answer.indexOf(a) > -1) {\n q += \"<input type=\\\"checkbox\\\" name=\"+question.id+\" id=\"+a+\" value=\"+a+\" checked>\";\n } else {\n q += \"<input type=\\\"checkbox\\\" name=\"+question.id+\" id=\"+a+\" value=\"+a+\">\";\n } \n q += \"<label for=\"+a+\">\"+a+\"</label>\";\n });\n q += \"</div>\";\n break;\n }\n return q;\n}", "function formTemplate(data) {\n // the first variable relates the form field for question with the data in the object for\n // each question so that the questions can be inputed into that form field\n var qString = \"<form id='q1'><h4>\" + data.question + \"</h4><br>\";\n // this variable to access the question object's possibles array needed to answer each question\n var possibles = data.possibles;\n // $(possibles[i]).addClass(\"choices\");\n\n // a for loop to go through the possibles array for each question to add the values of each possibles\n // array and using qString, add them as radio buttons to the question to which they are\n // associated\n for (var i = 0; i < possibles.length; i++) {\n var possible = possibles[i];\n console.log(possible);\n qString =\n qString +\n \"<input type='radio' name='\" +\n data.id +\n \"' value=\" +\n i +\n \">\" +\n \" \" +\n possible +\n \"<br>\";\n }\n return qString + \"</form><br><br>\";\n }", "function formTemplate(data) {\n // the first variable relates the form field for question with the data in the object for\n // each question so that the questions can be inputed into that form field\n var qString = \"<form id='questionOne'>\"+ data.question + \"<br>\" ;\n // this variable to access the question object's possibles array needed to answer each question\n var possibles = data.possibles;\n // a for loop to go through the possibles array for each question to add the values of each possibles\n // array and using qString, add them as radio buttons to the question to which they are\n // associated\n for (var i = 0; i < possibles.length; i++) {\n var possible = possibles[i];\n console.log(possible);\n qString = qString + \"<input type='radio' name=\"+data.id+\" value=\"+ i +\">\"+possible;\n \n }\n return qString + \"</form> <br>\";\n }", "createFormsFromJSON() {\n if(this.qajson) {\n let jsonarr = this.qajson;\n for(var i = 0; i < jsonarr.length; i++) {\n let qdata = jsonarr[i];\n let newform = this.createQuestionForm(qdata[\"question\"], qdata[\"answers\"], qdata[\"correct\"]);\n if(newform) this.questionWrapper.appendChild(newform);\n }\n }\n }", "function templateQuestion(questionIndex) {\n // console.log(\"function templateQuestion\", questionIndex);\n updateQuestionAndScore();\n let questionForm = $(`\n <form class=\"form\"> \n <fieldset> \n <legend class=\"question\">${STORE[questionIndex].question}</legend>\n <ul></ul>\n </fieldset> \n </form>\n `)\n\n let formSection = $(questionForm).find('ul');\n\n STORE[questionIndex].answers.forEach(function (answerValue, answerIndex) {\n $(`<li>\n <label class=\"option\" for=\"${answerIndex}\">\n <input class=\"radio\" type=\"radio\" id=\"${answerIndex}\" value=\"${answerValue}\" name=\"answer\" required>\n <span>${answerValue}</span>\n </label>\n </li>`).appendTo(formSection);\n });\n $(`<div class=\"block-button\"><button type=\"submit\" class=\"submit\">Go</button></div>`).appendTo(formSection);\n $('.questions').append(questionForm);\n $('.questions').show();\n $('.result').hide();\n}", "function populateQuestionTemplate(questionId, questionObj) {\n let questionTemplate = document.getElementById(\"q\" + questionId);\n questionTemplate.getElementsByTagName(\"textarea\")[0].value = questionObj[\"text\"];\n\n // add extra options fields if question contains more than 2\n let numOptions = questionObj[\"options\"].length;\n for (let i = 2; i < numOptions; i++) {\n addOptionField(questionId, i + 1);\n }\n\n // assign appropriate values to radio inputs and check correct answer\n let optionsInputBoxes = questionTemplate.getElementsByClassName(\"options\");\n let radioButtons = questionTemplate.getElementsByClassName(\"radio-values\");\n for (let j = 0; j < numOptions; j++) {\n optionsInputBoxes[j].value = questionObj[\"options\"][j];\n if (questionObj[\"answer\"] == questionObj[\"options\"][j]) {\n radioButtons[j].checked = true;\n }\n }\n\n // enable update and delete buttons for this question\n document.getElementById(\"btn-update\" + (questionId)).disabled = false; \n document.getElementById(\"btn-delete\" + (questionId)).disabled = false; \n}", "function createThing(questionIndex) {\n let formMaker = $(`<form>\n <fieldset>\n <legend class='questionText'>${STORE[questionIndex].question}</legend>\n </fieldset>\n </form>`)\n\n let fieldSelector = $(formMaker).find('fieldset');\n\n STORE[questionIndex].answers.forEach(function (answerValue, answerIndex) {\n $(`<label class=\"sizeMe\" for=\"${answerIndex}\">\n <input class=\"radio\" type=\"radio\" id=\"${answerIndex}\" value=\"${answerValue}\"\n name=\"answer\" required>\n <span>${answerValue}</br></span>\n </label>\n `).appendTo(fieldSelector);\n });\n $(`<button type=\"submit\" class=\"submitButton button\"> Submit</button > `).appendTo(fieldSelector);\n return formMaker;\n}", "function renderQuestAns(questions) {\n let showQuestion = $(`\n <form class=\"question-form\">\n <section class=\"quiz-bg\">\n <fieldset name=\"start-quiz\">\n <legend class=\"zzz\">zZz</legend>\n <h2 class=\"question-text\">${STORE[questions].question}</h2>\n </fieldset>\n </section>\n </form>\n `);\n\n let showChoices = $(showQuestion).find(\"fieldset\");\n STORE[questions].answers.forEach(function(ans, qindex) {\n $(`<span class=\"choices\"><input class=\"radio\" type=\"radio\" \n id=\"${qindex}\"\n value=\"${ans}\" \n name=\"answer\" required>${ans}</span>`).appendTo(showChoices);\n });\n $(`<button type=\"button\" class=\"submitButton\">Submit</button>`).appendTo(\n showChoices\n );\n $(\".display\").html(showQuestion);\n}", "function generateQuiz() {\n var top = $(\"#questions\");\n\n for (var q = 0; q < questionsArray.length; q++) {\n var qDiv = $(\"<div>\");\n var qName = \"question\" + q;\n qDiv.attr(\"id\", qName);\n var qValue = $(\"<span>\");\n \n qValue.text(questionsArray[q].question);\n qDiv.append(qValue);\n \n\n for (var c = 0; c < 4; c++) {\n var cInput = $(\"<input>\");\n var cValue = questionsArray[q].choices[c];\n cInput.attr(\"name\", qName)\n .attr(\"type\", \"radio\")\n .attr(\"value\", cValue);\n qDiv.append(cValue);\n qDiv.append(cInput);\n }\n top.append(qDiv);\n\n\n }\n\n}", "function createQuizQuestion(questionIndex) {\n // console.log('createQuizQuestion ran');\n let questionForm = $(`<form>\n <fieldset>\n <legend class=\"questionText\">${STORE[questionIndex].question}</legend>\n </fieldset>\n </form>`)\n\n let fieldSelect = $(questionForm).find('fieldset');\n\n STORE[questionIndex].answers.forEach(function(answerValue, answerIndex){\n $(`<label class=\"questionAndScore\" for=\"${answerIndex}\">\n <input class=\"radio\" type=\"radio\" id=\"${answerIndex}\" value=\"${answerValue}\" name=\"answer\" required>\n <span>${answerValue}</span><br>\n </label>\n `).appendTo(fieldSelect);\n });\n\n $(`<button type=\"submit\" class=\"submitButton button\">Check your answer</button > `).appendTo(fieldSelect);\n return questionForm;\n\n}", "function generateQuestions() {\n if (questionNum < STORE.length) {\n return `\n <div class=\"question-${questionNum}\">\n <h2>${STORE[questionNum].question}</h2>\n </div>\n <section>\n <form class=\"question-form\" aria-live=\"polite\">\n <fieldset name=\"answers\" id=\"answer-group1\">\n <label class=\"answerSelect row1\">\n <input type =\"radio\" class=\"selectButton\" value=\"${STORE[questionNum].answers[0]}\" name=\"answer-group1\" required> ${STORE[questionNum].answers[0]}\n </label>\n <label class=\"answerSelect row1\">\n <input type=\"radio\" class=\"selectButton\" value=\"${STORE[questionNum].answers[1]}\" name=\"answer-group1\" required> ${STORE[questionNum].answers[1]}\n </label>\n <label class=\"answerSelect row2\">\n <input type=\"radio\" class=\"selectButton\" value=\"${STORE[questionNum].answers[2]}\" name=\"answer-group1\" required> ${STORE[questionNum].answers[2]}\n </label>\n <label class=\"answerSelect row2\">\n <input type=\"radio\" class=\"selectButton\" value=\"${STORE[questionNum].answers[3]}\" name=\"answer-group1\" required> ${STORE[questionNum].answers[3]}\n </label>\n <button type=\"submit\" class=\"submitButton\">Next Question</button>\n </fieldset>\n </form>\n </section>\n `\n } else {\n feedbackPage();\n $('.questionNum').text(10);\n resetQuiz();\n }\n}", "function addRadioToQV(form, amountOfQuestions){\n for (i = 0; i <4; i++){ \n var radiobtn = document.createElement(\"INPUT\");\n radiobtn.id = \"Question\"+amountOfQuestions+\"Radio\"+i;\n radiobtn.setAttribute('type', 'radio');\n radiobtn.setAttribute('value', 'Question'+amountOfQuestions+'Answer'+i)\n radiobtn.setAttribute('name','answers'+amountOfQuestions)\n \n if(i ==0){\n radiobtn.setAttribute('checked', 'checked')\n }\n form.appendChild(radiobtn);\n\n var input1 = document.createElement(\"INPUT\");\n input1.id = \"Question\"+amountOfQuestions+\"Answer\"+i;\n input1.setAttribute(\"type\", \"html\")\n form.appendChild(input1);\n var br = document.createElement(\"br\");\n form.appendChild(br);\n }\n}", "function questionBuildOut() {\n for (i=0; i<=questions.length; i++) {\n var qDivCreate = \"<div class='quiz-questions'>\" + questions[i].question + \"</div>\";\n $(\"#quiz\").append(qDivCreate);\n\n for (o=0; o<=2; o++) {\n var qOptionsCreate = \"<label><input onclick='check()' type='radio' name='\" + questions[i].name + \"' value='\" + questions[i].options[o] + \"'/>\" + questions[i].options[o] + \"</label>\";\n $(\"#quiz\").append(qOptionsCreate);\n }\n }\n }", "function createQuestion() {\n if (questionNumber < STORE.length) {\n return createForm(questionNumber);\n } else {\n $('.questionArea').hide();\n\n finalScore();\n\n $('.questionNumber').text(10);\n }\n}", "function buildQuestions(){\n var questions2 = questions;\n for (var i = 0; 4 < questions2.length; i++){\n questions2.splice(Math.floor(Math.random()*questions2.length), 1)\n }\n var questionHTML = ''\n for (var i = 0; i<questions2.length; i++) {\n questionHTML = questionHTML + formTemplate(questions2[i]);\n }\n $('#questions').append(questionHTML);\n \n }", "function generateQuizQuestion() {\n let html = '';\n html = `<section class='js-main-screen'>\n <h2 class='js-question-box'>${store.questions[store.questionNumber].question}</h2>\n <form action='' id='js-answer-form' class='js-answer-box'>`;\n\n let i = 1;\n store.questions[store.questionNumber].answers.forEach(quizAnswer => {\n\n html += `<div class='input-container'>\n <input type=\"radio\" required name=\"answer\" id='answer${i}' value='${quizAnswer}'>\n <label for='answer${i}'>${quizAnswer}</label>\n </div>`;\n i++;\n })\n\n html += `<section class='js-answer-eval'></section>\n <button type ='submit' class='js-answer-button'>Submit</button>`\n html += generateQuizCount();\n html += `</form>\n </section>`;\n return html;\n}", "createQA () {\n crDom.createHeadingQuestion(this.quizData.indexOf(this.quizData[this.currentQuestion]) + 1, this.quizData.length);\n crDom.createCountdown();\n crDom.createQuestion(this.quizData[this.currentQuestion].question);\n crDom.createAnswers(this.quizData[this.currentQuestion].answers, this.quizData[this.currentQuestion].id);\n crDom.createNextButton();\n }", "function createQuestion() {\n $('main').html(` <section id=\"question-page\" role=\"main\">\n <h2 id=\"question\">${STORE[questionIndex].question}</h2>\n <form role=\"form\">\n <fieldset class=\"quiz-form\">\n <label class=\"answer-template\">\n <input class=\"answer\" type=\"radio\" name=\"option\" tabindex=\"1\" required value=\"${STORE[questionIndex].answers[0]}\"><span>${STORE[questionIndex].answers[0]}</span>\n </label>\n <label class=\"answer-template\"> \n <input class=\"answer\" type=\"radio\" name=\"option\" tabindex=\"1\" required value=\"${STORE[questionIndex].answers[1]}\"><span>${STORE[questionIndex].answers[1]}</span>\n </label>\n <label class=\"answer-template\">\n <input class=\"answer\" type=\"radio\" name=\"option\" tabindex=\"1\" required value=\"${STORE[questionIndex].answers[2]}\"><span>${STORE[questionIndex].answers[2]}</span>\n </label>\n <label class=\"answer-template\">\n <input class=\"answer\" type=\"radio\" name=\"option\" tabindex=\"1\" required value=\"${STORE[questionIndex].answers[3]}\"><span>${STORE[questionIndex].answers[3]}</span>\n </label>\n <button class=\"submit-button\">Submit</button>\n </fieldset>\n </form>\n </section>`)\n}", "function generateQuestion () {\n let currentQuestionIndex = questionNum - 1;\n let generated = `<div class=\"q-and-a rounded-corner\">\n <fieldset> \n <legend class=\"question\">${STORE[currentQuestionIndex]['question']}</legend> \n <label class=\"ans-1 radio\">\n <input type=\"radio\" name=\"christmas-tunes-trivia\" id=\"ans-1\" value=\"0\" required=\"required\">\n <span>${STORE[questionNum - 1]['answers'][0]}</span>\n </label>\n <label class=\"ans-2 radio\">\n <input type=\"radio\" name=\"christmas-tunes-trivia\" id=\"ans-2\" value=\"1\">\n <span>${STORE[questionNum - 1]['answers'][1]}</span>\n </label>\n <label class=\"ans-3 radio\">\n <input type=\"radio\" name=\"christmas-tunes-trivia\" id=\"ans-3\" value=\"2\">\n <span>${STORE[questionNum - 1]['answers'][2]}</span>\n </label>\n <label class=\"ans-4 radio\">\n <input type=\"radio\" name=\"christmas-tunes-trivia\" id=\"ans-4\" value=\"3\">\n <span>${STORE[questionNum - 1]['answers'][3]}</span>\n </label>\n </fieldset> </div>`;\n $('.questions').prepend(generated);\n $(`<button type=\"submit\" class=\"button js-submit-button blue rounded-corner\"> SUBMIT </button > `).appendTo('.questions');\n}", "function questionCreator() {\n\n\tvar container = $(\"<div class='form-group'></div>\");\n\n\tfor (var i = 0; i <= questions.length; i++) {\n\t\tvar dropMenuCont = $(\"<select id='question\" + (i + 1)+ \"'></select>\");\n\t\tvar title = $(\"<h3>\" + questions[i].title + \"</h3>\");\n\t\tvar question = $(\"<p>\" + questions[i].question + \"</p>\");\n\t\tdropMenu(dropMenuCont);\n\t\tcontainer.append(title);\n\t\tcontainer.append(question);\n\t\tcontainer.append(dropMenuCont)\n\t\t$(\"#questions\").append(container);\n\n\t}\n}", "createQuestionForm(question, answersarr, correctanswer) {\n if(answersarr.length >= 4) {\n let newq = document.createElement('li');\n newq.className = 'question';\n newq.setAttribute('id', `questionform${(this.countQuestionForms() + 1)}`);\n\n newq.innerHTML = `<div class=\"question-input-wrapper\"> \\\n <span>Question: </span> \\\n <input class=\"question-input\" value=\"${question}\"> \\\n </div> \\\n <div class=\"answers-input-wrapper\"> \\\n <p>Choices: </p> \\\n <ul class=\"answer-list\"> \\\n <li><input class=\"answer\" value=\"${answersarr[0]}\"></li> \\\n <li><input class=\"answer\" value=\"${answersarr[1]}\"></li> \\\n <li><input class=\"answer\" value=\"${answersarr[2]}\"></li> \\\n <li><input class=\"answer\" value=\"${answersarr[3]}\"></li> \\\n </ul> \\\n </div> \\\n <div class=\"correct-answer-wrapper\"> \\\n <span>Correct Answer: </span> \\\n <input class=\"answer-input\" value=\"${correctanswer}\"> \\\n </div>\n <div class=\"question-options-wrapper\"> \\\n <button id=\"delete-question-${this.countQuestionForms() + 1}\" class=\"deletebtn btn btn-danger\">Delete question</button>\n </div>`;\n\n return newq;\n }\n }", "function createQuestions() {\n\n const choices = emojis.map((emoji) => {\n return {\n \"name\": `${emoji.display} - ${emoji.description}`,\n \"value\": emoji.tag\n }\n });\n\n return [\n {\n type: 'list',\n name: 'type',\n message: \"Select the type of change you're committing:\",\n choices: choices\n },\n {\n type: 'input',\n name: 'subject',\n message: 'Write a short description:'\n },\n {\n type: 'input',\n name: 'issueNumber',\n message: 'GitHub issue #:'\n },\n {\n type: 'confirm',\n name: 'closesIssue',\n message: 'Does this commit fully resolve and close the related issue?',\n default: false\n }\n ]\n}", "function generateQuestionTemplate() {\n return `\n <form id=\"quiz-form\" >\n <fieldset>\n <legend><sup>#</sup><span class=\"question-number\">${questionCount+1}</span>. ${questions[questionCount].question}</legend>\n <div>\n <input type=\"radio\" name=\"answer\" id=\"answer-1\" value=\"A\" class=\"form-radio\" required>\n <label for=\"answer-1\">${questions[questionCount].choiceA}</label>\n </div>\n <div>\n <input type=\"radio\" name=\"answer\" id=\"answer-2\" value=\"B\" class=\"form-radio\" required>\n <label for=\"answer-2\">${questions[questionCount].choiceB}</label>\n </div>\n <div>\n <input type=\"radio\" name=\"answer\" id=\"answer-3\" value=\"C\" class=\"form-radio\" required>\n <label for=\"answer-3\">${questions[questionCount].choiceC}</label>\n </div>\n <div>\n <input type=\"radio\" name=\"answer\" id=\"answer-4\" value=\"D\" class=\"form-radio\" required>\n <label for=\"answer-4\">${questions[questionCount].choiceD}</label>\n </div>\n </fieldset>\n <button class=\"btn submit-btn\">Submit Answer</button>\n </form>\n `;\n}", "function generateNewQuestionForm(item, counter) {\n return `\n <input name=\"answer\" required type=\"radio\" value=\"${item}\" id=\"answer-${counter}\">\n <label for=\"answer-${counter}\">${item}</label><br>`;\n }", "function createQuestions() {\n questions = [\n new TriviaQuestion(\"What is the name of bar the gang frequently visits?\",\n \"MacLaren's\",\n [\"MacLaren's\",\n \"MacLoughlin's\",\n \"MacLure's\",\n \"MacMaster's\"]\n ),\n new TriviaQuestion(\"What color and instrument does Ted steal for Robin?\",\n \"Blue French Horn\",\n [\"Blue French Horn\",\n \"Blue Trumpet\",\n \"Red French Horn\",\n \"Red Trumpet\"]\n ),\n new TriviaQuestion(\"Which acronym does Barney use to describe his job?\",\n \"P.L.E.A.S.E.\",\n [\"P.L.E.A.S.E.\",\n \"S.E.C.R.E.T.\",\n \"W.O.R.K.\",\n \"S.T.O.P.\"]\n ),\n new TriviaQuestion(\"What is the first Robin Sparkles song the gang listens to?\",\n \"Let's Go To The Mall\",\n [\"Let's Go To The Mall\",\n \"Sandcastles in the Sand\",\n \"The Beaver Song\",\n \"P.S. I Love You\"]\n ),\n new TriviaQuestion(\"What are the names of Ted's children?\",\n \"Luke and Penny\",\n [\"Luke and Penny\",\n \"Adam and Sara\",\n \"David and Jenna\",\n \"Jerry and Emily\"]\n ),\n new TriviaQuestion(\"If they owned a bar, what would Ted and Barney name it?\",\n \"Puzzles\",\n [\"Puzzles\",\n \"Clues\",\n \"Questions\",\n \"Kisses\"]\n ),\n new TriviaQuestion(\"What year is it when Ted is telling his children how he met their mother?\",\n \"2030\",\n [\"2030\",\n \"2015\",\n \"2020\",\n \"2025\"]\n ),\n new TriviaQuestion(\"At what occasion does Ted find a goat in his apartment?\",\n \"His 31th birthday\",\n [\"His 31th birthday\",\n \"His 30st birthday\",\n \"New Year's Day\",\n \"Halloween\"]\n ),\n new TriviaQuestion(\"Who narrates the show?\",\n \"Bob Saget\",\n [\"Bob Saget\",\n \"Jason Segel\",\n \"Josh Radnor\",\n \"Neil Patrick Harris\"]\n ),\n new TriviaQuestion(\"How many seasons are in the series?\",\n \"9\",\n [\"9\",\n \"7\",\n \"8\",\n \"10\"]\n ),\n new TriviaQuestion(\"Who is Robin's archenemy?\",\n \"Patrice\",\n [\"Patrice\",\n \"Clarisse\",\n \"Clara\",\n \"Paula\"]\n ),\n new TriviaQuestion(\"Which trio attended the same university together?\",\n \"Ted, Marshall, and Lily\",\n [\"Ted, Marshall, and Lily\",\n \"Marshall, Barney, and Ted\",\n \"Lily, Marshall, and Barney\",\n \"Robin, Lily, and Marshall\"]\n ),\n new TriviaQuestion(\"Which one of these is not one of Barney's catchphrases?\",\n \"Bottom's up!\",\n [\"Bottom's up!\",\n \"Legendary\",\n \"Have you met Ted?\",\n \"Suit up!\"]\n ),\n new TriviaQuestion(\"Which character got a tattoo of a butterfly on his/her lower back?\",\n \"Ted\",\n [\"Ted\",\n \"Barney\",\n \"Marshall\",\n \"Lily\"]\n ),\n new TriviaQuestion(\"Who is Linus?\",\n \"Lily's bartender\",\n [\"Lily's bartender\",\n \"One of Robin's exes\",\n \"Barney's half brother\",\n \"Ted's high school best friend\"]\n )\n ]\n }", "function createQuestion() {\r\n var output = '';\r\n output +=\r\n '<div class=\"form-group\"><label for=\"question\">Question</label> <input data-bv-stringlength-min=\"6\" data-bv-stringlength-message=\"The detail must be more than 6 characters long\" class=\"form-control\" type=\"text\" name=\"question\" placeholder=\"Enter Question\"></div> <div class=\"help-block with-errors\"></div>';\r\n output +=\r\n '<div class=\"form-group\"><label for=\"service\">Service Required for Question</label><select name=\"selectservice\"><option value=\"\"></option>';\r\n storedServices.forEach(\r\n (storedservice) =>\r\n (output += '<option value=\"' + storedservice + '\">' + storedservice + '</option>')\r\n );\r\n output +=\r\n '</select><label for=\"service\">If Service is not mentioened above </label><input class=\"form-control\" data-bv-stringlength-min=\"3\" data-bv-stringlength-message=\"The detail must be more than 3 characters long\" type=\"text\" name=\"inputservice\" placeholder=\"Enter Service required for Question\"></br>';\r\n $('#choices').append(output);\r\n}", "function handleAddQuestion() {\n\n\n\n\n if (evaluateQuestion()) {\n\n\n let kof = document.querySelector('.kindofquestionType').value;\n let localStatment = statmentTxtArea.value;\n let localJustify;\n let hintText = questionHint.value;\n\n if (yesRdoBtn.checked) {\n localJustify = true;\n } else if (noRdoBtn.checked) {\n localJustify = false;\n }\n\n let valuesCounter = 0;\n let localOptions = [];\n vals = document.querySelectorAll('.values');\n var options = document.querySelectorAll('.option_content');\n\n options.forEach((val, i) => {\n\n\n\n let option = {\n statment: val.value,\n type: vals[i].value\n }\n\n valuesCounter++;\n localOptions.push(option);\n });\n\n\n\n let ref = database.ref('questions/').push();\n\n let activities = [];\n\n\n activitiesCheckBoxs.forEach((p) => {\n\n if (p.checked) {\n activities.push(p.value);\n }\n\n });\n\n let question = {\n id: ref.key,\n kindOfQuestion: kof,\n statment: localStatment,\n justify: localJustify,\n options: localOptions,\n activities,\n info: hintText,\n father: true\n\n }\n\n ref.set(question).then(\n () => {\n clearForm();\n }\n ).catch((error) => {\n console.log(error);\n });\n\n }\n\n}", "function createQA(data, id) {\n$('.surround').attr('name', id);\n\nif (Object.getOwnPropertyNames(data).length > 2) {\n \n $('.input-ans').css('display','none');\n $('.question-a').text(data.question);\n $('.question-b').text(data.description);\n \n let divb = '<div id=\"section-c\"></div>';\n\n $('.surround').append(divb);\n\n for(let item in data.choices) {\n let span = createAnswerElement(data.choices[item],item);\n $('#section-c').append(span);\n }\n\n} else {\n \n $('.question-a').text(data.question);\n $('.question-b').text(data.description);\n $('.input-ans').css('display','block');\n $('.ans-inp').val('');\n}\n\n// used in th createQa function\nfunction createAnswerElement(answer,item) {\n let el =`<div class='answer'>\n <input type=\"checkbox\" class=\"radio\" id=\"radio-`+item+`\" value=\"`+answer+`\">\n <span>`+answer+`</span>\n </div>`;\n return el;\n }\n\n}", "function addQuestion(formElement){\n var subject_val = formElement.subject.value;\n var question_val = formElement.question.value;\n if(subject_val && question_val){\n var q_id = subject_val+\" \"+question_val;\n var map = getMap();\n\n var tag_arr = formElement.tagged.value.split(',');\n //weird feature of the split function return [\"\"] with one array element?\n if (tag_arr[0].length === 0 ) tag_arr = [];\n var new_q = {subject: subject_val, question: question_val, id: q_id, responses: [], tags: tag_arr};\n var similar_question = compareQuestions(q_id);\n //check if question has been asked before\n if (q_id in map) {\n redirect(\"Duplicate question: click \", \"here\", \"to view\", q_id);\n return; \n }else if(question_val.length < 50 || question_val.length > 500){\n error(\"Question description must be between 50 and 500\");\n return;\n }else if(similar_question){\n redirect(\"A similar \", \"question\", \" has been asked before.\", similar_question);\n return;\n }\n //questions.unshift(new_q);\n map[q_id] = new_q;\n storeMap(map);\n //storeQuestions(questions);//adds to the local storage\n leftPane.innerHTML = templates.renderQuestions({questions: getQuestions()});\n rightPane.innerHTML = templates.renderQuestionForm();\n }else{\n error(\"Empty subject or question field.\");\n }\n }", "function displayQuestion() {\n for (var i = 0; i < totalQuestions; i++) {\n $(\".form-group\").prepend(\"<div class=\" + questions[i].divClass + \"></div>\");\n var divQuestion = $('<div class=\"statement\">' + questions[i].statement + '</div>');\n $('.' + questions[i].divClass).append(divQuestion);\n\n let answersArrayLen = questions[i].answers.length;\n for (var x = 0; x < answersArrayLen; x++) {\n $(\".\" + questions[i].divClass).append(\"<div class='radio-inline'><input class='form-check-input' type='radio' name=\" + questions[i].divClass + \" value=\" + questions[i].answers[x] + \"><label class='form-check-label' for=\" + labels[x] + \">\" + questions[i].answers[x] + \"</label></div>\");\n }\n }//for i<totalQuestions\n }", "function buildQuestion(i) {\n var question = questions[i].q;\n var options = questions[i].o;\n questionText.textContent = question;\n for (n = 0; n < options.length; n++) {\n var btn = document.createElement(\"a\");\n btn.setAttribute(\"class\", \"btn btn-primary\");\n btn.setAttribute(\"value\", options[n])\n btn.setAttribute(\"onclick\", \"checkAnswer(\" + i + \")\")\n btn.textContent = options[n];\n choices.appendChild(btn);\n }\n}", "function addRadioToRv(form, amountOfQuestions, q){\n for (i = 0; i <4; i++){ \n var radiobtn = document.createElement(\"INPUT\");\n radiobtn.id = \"Question\"+amountOfQuestions+\"Radio\"+i;\n radiobtn.setAttribute('type', 'radio');\n radiobtn.setAttribute('value', 'Question'+amountOfQuestions+'Answer'+i)\n radiobtn.setAttribute('name','answers'+amountOfQuestions)\n radiobtn.style.marginLeft = \"10vw\"\n \n if(i ==0){\n radiobtn.setAttribute('checked', 'checked')\n }\n form.appendChild(radiobtn);\n\n var input1 = document.createElement(\"label\");\n input1.style.marginLeft = \"1vw\"\n \n input1.id = \"Question\"+amountOfQuestions+\"Answer\"+i;\n if( i == 0){\n input1.innerHTML = q.answer1;\n } else if (i == 1){\n input1.innerHTML = q.answer2;\n } else if (i == 2){\n input1.innerHTML = q.answer3;\n } else if (i == 3){\n input1.innerHTML = q.answer4;\n }\n form.appendChild(input1);\n var br = document.createElement(\"br\");\n form.appendChild(br);\n document.getElementById(\"userForm\").appendChild(form);\n }\n}", "function makeQuesCont(value) {\n // Loop For As Many Times The User Wants To Create A Question\n for (let i = 0; i < value; i++) {\n // *** Create Elements\n const qNum = $(\"#quiz-cont\")[0].children.length + 1;\n // Contain All Elements\n const qCont = $(\"<section>\").addClass(\"row cont question\");\n // Contain X Button\n const xCont = $(\"<article>\").addClass(\"col-12\");\n const xDiv = $(\"<div>\").addClass(\"row\");\n const btn = $(\"<button>\").addClass(\"button q-rmv\").text(\"X\");\n xDiv.append(btn);\n xCont.append(xDiv);\n // Contain Question\n const quesCont = $(\"<article>\").addClass(\"col-7 col-md-4 spacer\");\n const quesTitle = $(\"<h3>\")\n .text(\"Question \" + qNum)\n .addClass(\"col-12\");\n const queInpCont = $(\"<div>\").addClass(\"row\");\n const quesInpt = $(\"<textarea>\").attr({\n type: \"text\",\n name: \"q\" + qNum,\n rows: \"4\",\n cols: \"50\",\n });\n // const quesInpt = $(\"<input>\").attr({ type: \"text\", name: \"q\" + qNum });\n queInpCont.append(quesInpt);\n quesCont.append(quesTitle, queInpCont);\n // Correct Question\n const corCont = $(\"<article>\").addClass(\"col-7 col-md-4 spacer\");\n const corTitle = $(\"<h3>\").text(\"Correct Answer\");\n const corInpCont = $(\"<div>\").addClass(\"row\");\n const corInpt = $(\"<input>\").attr({\n type: \"text\",\n name: \"q\" + qNum + \"-crt\",\n });\n corInpCont.append(corInpt);\n corCont.append(corTitle, corInpCont);\n // Incorrect Answers\n const incCont = $(\"<article>\").addClass(\"col-7 col-md-4 spacer\");\n const incTitle = $(\"<h3>\").text(\"Imposter Answers\");\n const incInpCont = $(\"<div>\").addClass(\"row\");\n // Loop to Create the Three Imposter Question Elements and Append to qCont (To account for true/false, this loop needs to be based on the question amount for a corresponding quiz index)\n for (let j = 1; j < 4; j++) {\n const incInp = $(\"<input>\").attr({\n type: \"text\",\n name: \"q\" + qNum + \"-wrg\" + j,\n });\n incInpCont.append(incInp);\n }\n incCont.append(incTitle, incInpCont);\n // *** All Containers to qCont\n qCont.append(xCont, quesCont, corCont, incCont);\n // *** Append to DOM\n $(\"#quiz-cont\").append(qCont);\n }\n $(\".q-rmv\").click((event) => {\n event.preventDefault();\n // console.log(event.target.parentElement.parentElement.parentElement);\n event.target.parentElement.parentElement.parentElement.remove();\n updateQuesTitles();\n });\n }", "function loadSurvey() {\n $(\"#create-survey-h1\").hide();\n\n var survey = JSON.parse($(\"#survey\").val());\n var properties = survey[\"Properties\"];\n var questions = survey[\"Questions\"];\n var qTotal = survey[\"QuestionTotal\"];\n var $questionGroups = $(\".question-group\");\n var qGroupLen = $questionGroups.length;\n\n // set title and date\n $(\"#survey-title\").val(properties[\"title\"]);\n $(\"#survey-due-date\")\n .datepicker()\n .val(properties[\"dueDate\"]);\n\n // set questions and answers\n var qCounter = 0;\n var qGroupCounter = 0;\n while (qCounter < qTotal) {\n var question = questions[qCounter];\n var $qGroup;\n // question ui is available, set question, type, check answers\n if (qGroupCounter < qGroupLen) {\n $qGroup = $questionGroups.eq(qGroupCounter);\n }\n // question ui isn't available, add ui, set fields\n else {\n addQuestion();\n // update the groups\n $questionGroups = $(\".question-group\");\n $qGroup = $questionGroups.last();\n }\n // get question and type\n var qContent = question[\"QuestionProperties\"][\"content\"];\n var qType = question[\"QuestionProperties\"][\"type\"];\n // find input fields\n var $inputQuestion = $qGroup.find(\".input-question\");\n var $inputType = $qGroup.find(\".input-type\");\n // set inputs\n $inputQuestion.val(qContent);\n $inputType.val(qType);\n\n // set answer inputs\n var $aGroups = $qGroup.find(\".answer-row\");\n var aGroupLen = $aGroups.length;\n var aCounter = 0;\n var answers = question[\"Answers\"];\n var aTotal = question[\"AnswerTotal\"];\n while (aCounter < aTotal) {\n var aAnswer = answers[aCounter];\n var $aRow;\n // answer ui available\n if (aCounter < aGroupLen) {\n $aRow = $aGroups.eq(aCounter);\n }\n // add answer ui\n else {\n addAnswer($qGroup);\n // update the groups\n $questionGroups = $(\".question-group\");\n $aGroups = $qGroup.find(\".answer-row\");\n $aRow = $aGroups.last();\n }\n\n // get answer and score\n var answer = aAnswer[\"answer\"];\n var score = aAnswer[\"score\"];\n // find input fields\n var $inputAnswer = $aRow.find(\".input-answer\");\n var $inputScore = $aRow.find(\".input-score\");\n // set input fields\n $inputAnswer.val(answer);\n $inputScore.val(score);\n\n aCounter++;\n }\n\n qCounter++;\n qGroupCounter++;\n }\n\n // change create button to save\n $(\"#survey-submit\").text(\"Save\");\n}", "function makeQuestions() {\n questionNumber++;\n answer = questions[questionNumber].answer\n\n questionHeader.textContent = questions[questionNumber].title;\n answerOptions.innerHTML = \"\";\n questionHeaderFont = questionHeader.style.fontSize = \"x-large\";\n \n var options = questions[questionNumber].options;\n\n for (var q = 0; q < options.length; q++) {\n var nextOption = document.createElement(\"button\");\n\n nextOption.textContent = options[q]\n btnAnswer = answerOptions.appendChild(nextOption).setAttribute(\"class\", \"p-3 m-1 btn btn-light btn-block\");\n }\n}", "function createTriviaDom(trivia) {\n //Form \n var formQuestions = $(\"<form>\");\n formQuestions.attr(\"id\", \"triviaHead\" + trivia.radio);\n $(\".formContainer\").prepend(formQuestions);\n\n var br = $(\"<br>\");\n $(\"#triviaHead\" + trivia.radio).append(br);\n //Question\n var labelQuestion = $(\"<label>\");\n labelQuestion.addClass(\"font-weight-bold\");\n labelQuestion.attr(\"answer\", trivia.answer);\n labelQuestion.attr(\"for\", trivia.radio);\n labelQuestion.text(trivia.question);\n $(\"#triviaHead\" + trivia.radio).append(labelQuestion);\n\n\n\n var br = $(\"<br>\");\n $(\"#triviaHead\" + trivia.radio).append(br);\n\n //Div to hold options\n var divContainer = $(\"<div>\");\n divContainer.addClass(\"form-check form-check-inline\");\n divContainer.attr(\"id\", \"answersOp\" + trivia.radio);\n $(\"#triviaHead\" + trivia.radio).append(divContainer);\n \n //build answer object op name\n var opName = \"op\";\n\n\n //iterate 4 times because there are 4 answers\n for (i = 1; i <= 4; i++) {\n \n //concatenate i and the build the variable name\n var option = opName.concat(i);\n var answerVarName = \"trivia.\" + option;\n\n\n //Create options\n var liAnswer = $(\"<input>\");\n liAnswer.addClass(\"form-check-input\");\n liAnswer.attr(\"id\", \"inlineRadio\" + i);\n liAnswer.attr(\"type\", \"radio\");\n liAnswer.attr(\"name\", \"inlineRadioOptions\");\n liAnswer.attr(\"answer\", eval(answerVarName));\n liAnswer.attr(\"questionContainer\", \"#triviaHead\" + trivia.radio);\n liAnswer.attr(\"correctanswer\", trivia.answer);\n\n liAnswer.attr(\"question\", trivia.question);\n // liAnswer.text(eval(answerVarName));\n $(\"#answersOp\" + trivia.radio).append(liAnswer);\n\n //create labels for options\n var label = $(\"<label>\");\n label.addClass(\"form-check-label\");\n label.attr(\"for\", \"inlineRadio\" + i);\n label.text(eval(answerVarName));\n $(\"#answersOp\" + trivia.radio).append(label);\n\n\n\n\n }\n\n\n\n }", "function generateQuestion(currQuestion) {\n //console.log('Generating question');\n const answers = generateAnswerList(currQuestion);\n\n return `<form class=\"quiz-app\">\n <div class=\"row question\">\n <div class=\"col-12\">\n <fieldset>\n <legend>${currQuestion.question}</legend>\n ${answers}\n </fieldset>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-12\">\n <button type=\"submit\" class=\"btnSubmitAnswer\">Submit</button>\n </div>\n </div>\n </form>`\n}", "function renderQuestions() {\n $(\"#quiz\").empty();\n\n questions.forEach(function (question, index) {\n\n let $question = $(\"<div>\").addClass(\"form-group cm-form-group-fix\");\n let $label = $(\"<h4>\")\n .text(question.question)\n .appendTo($question);\n\n for (let i = 0; i < question.choices.length; i++) {\n let $choice = $('<div>');\n $choice.addClass('form-check form-check-inline');\n\n let $radio = $('<input>');\n\n $radio\n .attr({\n type: \"radio\",\n value: question.choices[i],\n name: index,\n class: \"form-check-input\"\n })\n .appendTo($choice);\n\n let $choiceLabel = $('<label>');\n $choiceLabel\n .text(question.choices[i])\n .addClass('form-check-label')\n .appendTo($choice);\n\n $choice.appendTo($question);\n }\n $(\"#quiz\").append($question);\n });\n}", "function buildQuiz() {\n // We need to go through each of our question objects and use them to build out the HTML to show a question\n\n for (var i = 0; i < myQuestions.length; i++) {\n console.log(myQuestions[i]);\n // Create a display for the question text \n \n // Creating a new div called questionDiv will hold info about 1 question\n var questionDiv = document.createElement(\"div\");\n\n //This sets the Div's text to the relevant index's question component text\n questionDiv.innerText = myQuestions[i].question;\n\n //Create a div to hold answer choices\n var answersDiv = document.createElement(\"div\");\n answersDiv.classList.add(\"answers\");\n\n // For each property in the current question's answers object\n /* for-in loops go through the properties of an object */\n for (letter in myQuestions[i].answers) {\n var label = document.createElement(\"label\"); \n\n var input = document.createElement(\"input\");\n \n input.type = \"radio\";\n input.name = \"question\" + i;\n input.value = letter; \n\n label.appendChild(input);\n\n var labelText = document.createTextNode(`${letter} : ${myQuestions[i].answers[letter]}`);\n\n //Add the text to the label\n label.appendChild(labelText);\n\n\n\n \n\n \n\n \n //Add the label to the answers div\n answersDiv.appendChild(label);\n }\n\n // Display the answer choices, take user input for selection\n\n // Once all the answers are added, add the answerDiv to use the questionDiv\n questionDiv.appendChild(answersDiv);\n\n // Add the questionDiv to the quizContainer\n quizContainer.appendChild(questionDiv);\n\n }\n }", "function createQuestionElement(q) {\n\n var qElement = $('<div>').attr('id', 'question');\n\n console.log(q)\n\n\n for (var i = 0; i < q.length; i++) {\n el = $('<p>');\n el.append(q[i].question);\n\n $(\"#quiz\").append(el); // appending to the DOM\n \n }\n \n var radioButtons = createRadios();\n $(\"#quiz\").append(radioButtons);\n \n }", "function newQuestionHtml(question_counter) {\n var html = \" <input type=\\\"text\\\" class=\\\"form-control question\\\" size=\\\"50\\\" placeholder=\\\"Frage\\\" name=\\\"question_\"+question_counter+\"\\\" id=\\\"q\\\" />\" +\n \" <input type=\\\"checkbox\\\" name=\\\"chk\"+question_counter+\"_1\\\" style=\\\"visibility:hidden\\\" /> <br> \" +\n \" <input type=\\\"text\\\" class=\\\"form-control\\\" size=\\\"50\\\" placeholder=\\\"Antwort 1 hier eintragen\\\" name=\\\"answer_\"+question_counter+\"_1\\\"/> \" +\n \" <input type=\\\"checkbox\\\" name=\\\"chk\"+question_counter+\"_1\\\" /> <br> \" + \n \" <input type=\\\"text\\\" class=\\\"form-control\\\" size=\\\"50\\\" placeholder=\\\"Antwort 2 hier eintragen\\\" name=\\\"answer_\"+question_counter+\"_2\\\"/> \" +\n \" <input type=\\\"checkbox\\\" name=\\\"chk\"+question_counter+\"_2\\\" /> <br> \" + \n \" <input type=\\\"text\\\" class=\\\"form-control\\\" size=\\\"50\\\" placeholder=\\\"Antwort 3 hier eintragen\\\" name=\\\"answer_\"+question_counter+\"_3\\\"/> \" +\n \" <input type=\\\"checkbox\\\" name=\\\"chk\"+question_counter+\"_3\\\" /> <br> \" +\n \" <input type=\\\"text\\\" class=\\\"form-control\\\" size=\\\"50\\\" placeholder=\\\"Antwort 4 hier eintragen\\\" name=\\\"answer_\"+question_counter+\"_4\\\"/> \" +\n \" <input type=\\\"checkbox\\\" name=\\\"chk\"+question_counter+\"_4\\\" /> <br>\" + \n \" <button type=\\\"button\\\" onclick=\\\"addQuestion(this.id)\\\" class=\\\"btn btn-danger RbtnMargin\\\" id=\\\"\"+question_counter+\"\\\">Frage speichern</button> \" +\n \" <p></p> \";\n question_counter++; \n return html;\n}", "function generateQuestion (){\n\n\n var outerDiv = $(\"<div id='outerDiv'>\")\n var questionDiv = $(\"<div id='question'>\")\n var answersDiv = $(\"<div id='answers'>\")\n\n\n questionDiv.append(nextQuestion + 1 + \".\" + \" \" + questions[nextQuestion].question);\n\n\n for (var i = 0; i < questions[nextQuestion].answers.length; i++) {\n\n var radioBtn = $('<input type=\"radio\" name=\"question-' + nextQuestion + '\" />');\n // <label for=\"contactChoice1\">Email</label>\n var label = $(\"<label for='question-'\" + nextQuestion + \"'> \" + questions[nextQuestion].answers[i] + \" </label>\")\n\n radioBtn.attr(\"value\", questions[nextQuestion].answers[i]);\n radioBtn.attr(\"id\", \"question-\" + nextQuestion);\n //show btn on screen\n answersDiv.append(radioBtn).append(label)\n answersDiv.append(\"<br>\")\n }\n outerDiv.append(questionDiv).append(answersDiv)\n outerDiv.append(\"<br>\")\n\n $(\"#displayQuestions\").append(outerDiv)\n nextQuestion++\n}", "function renderAQuestion() {\n const question = STORE.questions[STORE.currentQuestion];\n let options = '';\n for (i = 0; i < question.options.length; i++) {\n options += `<div>\n <input type=\"radio\" name=\"options\" id=\"option${i}\" value=\"${question.options[i]}\" required>\n <label for=\"option${i}\">${question.options[i]}</label>\n </div>`;\n }; \n \n return `\n <div>\n <form id=\"js-questions\" class=\"question-form\">\n <fieldset>\n <div class=\"question\">\n <h3>${question.question}</h3>\n </div>\n <div class=\"options\">\n <div class=\"js-options\">${options}</div>\n </div>\n <div class=\"submit-button\">\n <button id=\"answer\" type=\"submit\">Submit</button>\n </div>\n <div class=\"next-button\">\n <button id=\"next-question\" type=\"button\">Next</button>\n </div>\n </fieldset>\n </form>\n </div>\n `; \n}", "function addQuestion() {\n\n optionCount = 1;\n\n templateStatus = true;\n\n let container = document.getElementById(\"quizDiv\");\n let questionDiv = document.createElement(\"div\");\n\n container.appendChild(questionDiv);\n questionDiv.setAttribute('id', 'containerquestion' + count);\n let para = document.createElement(\"p\");\n let questionCount = \"Question \" + count;\n\n let nodeP = document.createTextNode(questionCount);\n para.appendChild(nodeP);\n\n para.setAttribute('class', \"questionNo\");\n para.setAttribute('id', 'questionNo' + count);\n questionDiv.appendChild(para);\n let questionBodyTextArea = document.createElement(\"TEXTAREA\");\n questionDiv.appendChild(questionBodyTextArea);\n let idTextArea = \"question\" + count + \"TextArea\";\n\n questionBodyTextArea.setAttribute(\"id\", idTextArea);\n questionBodyTextArea.setAttribute(\"class\", \"questTextArea\");\n\n let para2 = document.createElement(\"p\");\n\n nodeP = document.createTextNode(\"Choices:\");\n para2.appendChild(nodeP);\n para2.setAttribute('class', 'choiceHead');\n\n questionDiv.appendChild(para2);\n let unordList = document.createElement(\"ul\");\n questionDiv.appendChild(unordList);\n unordList.setAttribute('id', 'choiceDiv' + count);\n let radioButtonNames = \"question\" + count;\n for (let ind = 1; ind <= 2; ind++) {\n\n optionCount++\n\n let list = document.createElement('li');\n let radInput = document.createElement('input');\n radInput.setAttribute('type', 'radio');\n radInput.setAttribute('name', radioButtonNames);\n let idRadButtInput = \"question\" + count + \"choice\" + ind;\n radInput.setAttribute('id', idRadButtInput);\n radInput.setAttribute('class', \"radButton\");\n list.appendChild(radInput);\n unordList.appendChild(list);\n\n list.setAttribute('id', \"question\" + count + \"licontainer\" + ind);\n\n let listDiv = document.getElementById(idRadButtInput).parentNode;\n let choiceTextArea = document.createElement(\"TEXTAREA\");\n listDiv.appendChild(choiceTextArea);\n idTextArea = \"question\" + count + \"choiceTextArea\" + ind;\n choiceTextArea.setAttribute('id', idTextArea);\n choiceTextArea.setAttribute('class', 'choiceTextArea');\n }\n\n count++;\n}", "function addSiQs(counter, QUESTION, para, form, warning_cont, result) {\n // display question\n para.innerText = QUESTION[counter].question;\n // to append warning msg to warning container\n if (QUESTION[counter].addInfo) {\n warning_cont.appendChild(addInfoMedi(QUESTION[counter].addInfo));\n } else {\n warning_cont.innerHTML = \"\";\n }\n\n // display option for user to chose if exist choices;\n if (QUESTION[counter].choices.length > 0) {\n // for add style for radio btn\n if (QUESTION[counter].choices.length === 4) {\n form.classList.add(\"flex-radio\");\n } else if (form.classList.contains(\"flex-radio\")) {\n form.classList.remove(\"flex-radio\");\n }\n form.innerHTML = \"\";\n for (let i = 0; i < QUESTION[counter].choices.length; i++) {\n let form_control = createElement(\"div\", { class: [\"form-checkbox\"] });\n\n let step = createElement(\"input\", {\n type: \"radio\",\n name: `question${counter}`,\n id: `question${i}`,\n value: QUESTION[counter].choices[i],\n });\n if (QUESTION[counter].choices[i] === result[counter]) {\n step.setAttribute(\"checked\", true);\n }\n let label = createElement(\"label\", { for: `question${counter}` });\n label.innerText = QUESTION[counter].choices[i];\n addToparent(form_control, [label, step]);\n addToparent(form, [form_control]);\n }\n }\n // if question does not contain any choices like input text and number;\n else {\n form.innerHTML = \"\";\n let form_control = createElement(\"div\", { class: [\"form-control\"] });\n let step = createElement(\"input\", {\n type: \"number\",\n name: `question${counter}`,\n id: `question${counter}`,\n value: result[counter] === -1 ? \"\" : result[counter],\n placeholder: ` ${QUESTION[counter].label}`\n });\n let label = createElement(\"label\", { for: `question${counter}` });\n label.innerText = QUESTION[counter].label;\n addToparent(form_control, [step, label]);\n addToparent(form, [form_control]);\n }\n}", "function createQuestions(choice){\n\tvar opt = data[choice];\n\t\n\tif(opt === undefined)\n\t{\n\t\tdisplay();\n\t}\n\telse{\n\t\tvar div = document.createElement('div');\n\t\t\n\t\t// create new prompt and text \n\t\tvar newPrompt = document.createElement('h2');\n\t\tvar text = document.createTextNode(opt[0]);\n\t\tnewPrompt.appendChild(text);\n\t\t\n\t\tdiv.appendChild(newPrompt);\n\t\t\n\t\t// create select list of options\n\t\tvar newSelect = document.createElement('select');\n\t\tnewSelect.setAttribute('onchange','choiceSelect(this,this.value)');\n\t\t\n\t\tfor(var i = 1; i < opt.length; i++)\n\t\t{\n\t\t\tvar options = document.createElement('option');\n\t\t\toptions.setAttribute('value', opt[i]);\n\t\t\t\n\t\t\tvar label = document.createTextNode(opt[i]);\n\t\t\toptions.appendChild(label);\n\t\t\t\n\t\t\tif(opt[i] == 'Choose one option')\n\t\t\t{\n\t\t\t\toptions.setAttribute('select', true);\n\t\t\t}\n\t\t\t\n\t\t\tnewSelect.appendChild(options);\n\t\t}\n\t\t\n\t\tdiv.appendChild(newSelect);\n\t\t\n\t\tdocument.getElementById('mainDiv').appendChild(div);\n\t\n\t} // end else\n } // end createQuestions", "function NameQuestion() {\n console.log('%c NAME QUESTION ', fct);\n console.log('%cAttribue des id à tous les éléments du form', exp)\n\n for (let x = 0; x < $('#SouvenirsVisuels fieldset').length; x++) {\n \n //* On nomme chaque fieldset avec un numéro de question, idem pour button & canvas\n //todo NB : c'est une class et pas un id car on a des id \"hidden\" pour les toggle btn //Du coup j'ai mis les truc toggle dans des div\n $(`#SouvenirsVisuels fieldset:eq(${x})`).attr('id', `question${x}`);\n $(`#SouvenirsVisuels fieldset:eq(${x}) button`).attr('id', `validerQ${x}`);\n $(`#SouvenirsVisuels fieldset:eq(${x}) button + a`).attr('href', `#collapse${x}`);\n $(`#SouvenirsVisuels fieldset:eq(${x}) + .graph .collapse`).attr('id', `collapse${x}`);\n $(`#SouvenirsVisuels fieldset:eq(${x}) + .graph canvas`).attr('id', `canevas${x}`);\n \n //* On nomme les inputs et les labels de ce fieldset en fonction du numéro de question\n for (let i = 0; i < $(`#question${x} input`).length; i++) {\n $(`#question${x} input:eq(${i})`).attr('id', `q${x}_${i}`);\n $(`#question${x} input:eq(${i})`).attr('name', `q${x}`);\n $(`#question${x} input:eq(${i}) + label`).attr('for', `q${x}.${i}`);\n }\n }\n}", "function formulateQuestion(){\n\ty = 0; //static variable to ensure only questions are asked\n\t\n\tgeneratedQuestion = alert(questions[answerIncrementor][y]); //generates question\n\t\n}", "function generateQuestions(){\n let questionPage = `<div class=\"coolClass\"> \n <div>\n <p id=\"paragraphText\">\n You have ${store.score} out of ${store.questions.length} possible points\n </p>\n <p id=\"paragraphText\">\n You are on question ${store.currentQuestion + 1} out of ${store.questions.length} questions\n </p>\n </div>\n <div class = \"container\">\n <form id=\"answersForm\">\n <h3 class=\"question\">\n ${store.questions[store.currentQuestion].question}\n </h3>\n <div>\n <div class=\"c-radio\">\n <input type=\"radio\" id=\"answerChoice1\" name=\"answer\" value='${store.questions[store.currentQuestion].answers[0]}'checked>\n <label for=\"answerChoice1\" id=\"labelText\">${store.questions[store.currentQuestion].answers[0]}</label>\n </div>\n <div class=\"c-radio\">\n <input type=\"radio\" id=\"answerChoice2\" name=\"answer\" value='${store.questions[store.currentQuestion].answers[1]}'>\n <label for=\"answerChoice2\" id=\"labelText\">${store.questions[store.currentQuestion].answers[1]}</label>\n </div>\n <div class=\"c-radio\">\n <input type=\"radio\" id=\"answerChoice3\" name=\"answer\" value='${store.questions[store.currentQuestion].answers[2]}'>\n <label for=\"answerChoice3\" id=\"labelText\">${store.questions[store.currentQuestion].answers[2]}</label>\n </div>\n <div class=\"c-radio\">\n <input type=\"radio\" id=\"answerChoice4\" name=\"answer\" value='${store.questions[store.currentQuestion].answers[3]}'>\n <label for=\"answerChoice4\" id=\"labelText\">${store.questions[store.currentQuestion].answers[3]}</label>\n </div>\n <div>\n <button type=\"submit\" id=\"showAnswers\">Submit</button>\n </div>\n </div>\n </form>\n </div>\n </div>`\n return questionPage;\n }", "function addMultipleChoiceQuestion(existingQuestion=null) {\n\n let multipleChoiceTemplate =\n \"<div class='question-wrapper' id='question{0}'>\" +\n \"<div class='card question'>\" +\n \"<span class='question-label'>Question Content</span>\" +\n \"<div class='form-error-msg'></div>\" +\n \"<input tabindex='{4}' type='text' name='content' class='form-control' maxlength='1024' required='true' id='id_content' value='{1}' placeholder='What do you want to ask?'>\" +\n \"<span class='question-label'>Explanation to be shown after submission (optional)</span>\" +\n \"<input tabindex='{4}' type='text' name='explanation' class='form-control' maxlength='1023' id='id_explanation' value='{2}' placeholder='Explanation'>\" +\n \"<span class='question-label'>Randomize Options</span>\" +\n \"<input type='checkbox' name='randomize' id='id_randomize' '{3}'>\" +\n \"<input type='hidden' name='type' value='1' id='id_type'>\" +\n \"<div class='card-body opt-canvas' id={0}></div>\" +\n \"<div class='opt-error-msg'></div>\" +\n \"<button class='new-question-btn btn fa fa-plus' type='button' onclick='addMultipleChoiceOption({0});'></button>\" +\n \"<button class='btn btn-danger question-delete' onclick='deleteQuestion(\\\"question{0}\\\");'>Delete Question</button>\" +\n \"</div>\" +\n \"</div>\" +\n \"</div>\";\n\n let id = GlobalQuizData.getNextId();\n let content = \"\";\n let explanation = \"\";\n let randomize = \"\";\n let numOptions = 0;\n\n // If there is already an existing question we're pulling from, grab its data\n if (existingQuestion !== null) {\n content = existingQuestion['content'];\n explanation = existingQuestion['explanation'];\n randomize = existingQuestion['randomize'];\n numOptions = existingQuestion['multiplechoiceoption_set'].length;\n }\n\n // Insert new essay question to the HTML DOM\n let tabIndex = GlobalQuizData.getNextTabIndex(id);\n GlobalQuizData.questionCanvas.insertAdjacentHTML(\"beforeend\",\n multipleChoiceTemplate.format(\n id,\n content,\n explanation,\n randomize,\n tabIndex\n )\n );\n\n // Save question\n let domElement = document.getElementById(\"question{0}\".format(id));\n let mcQuestion = new MultipleChoiceQuestion(id, content, explanation, randomize, domElement);\n\n // Add the essay question to the quiz instance\n GlobalQuizData.quiz.addQuestion(mcQuestion);\n\n // Add all possible options as well\n for (let i = 0; i < numOptions; i++) {\n addMultipleChoiceOption(id, existingQuestion['multiplechoiceoption_set'][i]);\n }\n\n // Bookkeeping\n GlobalQuizData.totalMCQuestions++;\n GlobalQuizData.totalQuestions++;\n}", "function addUserQuest(q, last){\n\n \n\n amountOfQuestions = q.id;\n var form = document.createElement(\"div\");\n form.id = amountOfQuestions;\n \n var uq = document.getElementById(\"userQuiz\");\n var p = document.createElement(\"h2\");\n p.style.textAlign = \"center\"\n \n p.id = \"Title\" + q.id;\n if(q.difficulty == true){\n p.appendChild(document.createTextNode(\"Question \" + q.id + \" (hard)\"))\n } else {\n p.appendChild(document.createTextNode(\"Question \" + q.id + \" (easy)\"))\n }\n \n form.appendChild(p);\n\n addBr(form);\n\n var p2 = document.createElement(\"h5\");\n p2.style.textAlign = \"center\"\n p2.appendChild(document.createTextNode(\"Q: \" + q.questionText))\n form.appendChild(p2);\n\n addBr(form);\n \n addRadioToRv(form, amountOfQuestions, q);\n addBr(form);\n var br = document.createElement(\"br\");\n form.appendChild(br);\n\n checkIfLast(form, last);\n document.getElementById(\"userForm\").appendChild(form);\n}", "function questionCreation() {\n for (var i = 0; i < questions.length; i++) {\n // Create an showChar\n var showImage = $(\"<img>\");\n\n // Add css image classes to image\n showImage.addClass(\"show-image img-rounded img-responsive\");\n\n // Each showChar will be given a src link to the current questions's image\n showImage.attr(\"src\", questions[i].image_loc);\n\n var questionOuterDiv = $(\"<div>\");\n questionOuterDiv.addClass(\"panel panel-default\");\n\n var questionHeaderText = \"<div class='panel-heading bg-black'><h3 class='panel-title'>Game \" + (i + 1) + \"</h3></div>\";\n\n var questionAnswerList = $(\"<ul>\");\n questionAnswerList.addClass(\"list-group answer-list\").attr(\"questnum\", i);\n\n for (var a = 0; a < questions[i].choices.length; a++) {\n var newChoice = $(\"<li>\");\n newChoice.addClass(\"list-group-item answer\").attr(\"indexnum\", a).text(questions[i].choices[a]);\n questionAnswerList.append(newChoice);\n }\n var questionInnerBlock = $(\"<div>\");\n questionInnerBlock.addClass(\"question-block\");\n\n var questionDescription = \"<p class='question-text'>\" + questions[i].description + \"</p>\";\n questionInnerBlock.append(showImage, questionDescription, \"<h4 class='question-title'>Select Answer Below</h4>\", questionAnswerList);\n\n var questionInnerDiv = $(\"<div>\");\n questionInnerDiv.addClass(\"question-box panel-body\");\n questionInnerDiv.append(questionInnerBlock);\n\n questionOuterDiv.append(questionHeaderText, questionInnerDiv);\n\n $(\".questions\").append(questionOuterDiv);\n }\n }", "function generateQuestions(index) {\n //Select each question by passing it a particular index\n const question = questions[index];\n const option1Total = questions[index].answer1Total;\n const option2Total = questions[index].answer2Total;\n const option3Total = questions[index].answer3Total;\n //Populate html elements\n questionEl.innerHTML = `${index + 1}. ${question.question}`\n option1.setAttribute('data-total', `${option1Total}`);\n option2.setAttribute('data-total', `${option2Total}`);\n option3.setAttribute('data-total', `${option3Total}`);\n option1.innerHTML = `${question.answer1}`\n option2.innerHTML = `${question.answer2}`\n option3.innerHTML = `${question.answer3}`\n}", "function generateQuestion() {\n return `\n <header>\n <h1>The Hardest Space Quiz You'll Take Today 🌑</h1>\n <h2>Question ${store.questionNumber + 1} out of 10</h2>\n <h2>Score: ${store.score} out of 10</h2>\n </header>\n\n <div>\n <form id=\"quiz-form\"> \n \n <h3 class=\"form-question\">${store.questions[store.questionNumber].question}</h3>\n\n <label class=\"container\" for=\"option-one\"><input type=\"radio\" id=\"option-one\" name=\"options\" value=${store.questions[store.questionNumber].answers[0]} required>${store.questions[store.questionNumber].answers[0]}<span class=\"checkmark\"></span></label>\n\n <label class=\"container\" for=\"option-two\"><input type=\"radio\" id=\"option-two\" name=\"options\" value=${store.questions[store.questionNumber].answers[1]} required>${store.questions[store.questionNumber].answers[1]}<span class=\"checkmark\"></span></label>\n\n <label class=\"container\" for=\"option-three\"><input type=\"radio\" id=\"option-three\" name=\"options\" value=${store.questions[store.questionNumber].answers[2]} required>${store.questions[store.questionNumber].answers[2]}<span class=\"checkmark\"></span></label>\n\n <label class=\"container\" for=\"option-four\"><input type=\"radio\" id=\"option-four\" name=\"options\" value=${store.questions[store.questionNumber].answers[3]} required>${store.questions[store.questionNumber].answers[3]}<span class=\"checkmark\"></span></label>\n\n <label class=\"container\" for=\"option-five\"><input type=\"radio\" id=\"option-five\" name=\"options\" value=${store.questions[store.questionNumber].answers[4]} required>${store.questions[store.questionNumber].answers[4]}<span class=\"checkmark\"></span></label>\n\n <button type=\"submit\" class=\"submit-button\">Submit Answer</button>\n \n </form>\n </div>`;\n}", "function createQuestions(index) {\n const question = questions[index];\n const choice1Total = questions[index].answer1Total;\n const choice2Total = questions[index].answer2Total;\n const choice3Total = questions[index].answer3Total;\n const choice4Total = questions[index].answer4Total;\n\n // - populating questions from array into DOM - \n questionMain.innerHTML = `${index + 1}. ${question.question}`;\n\n // - adding data-total attributes to the choiceTotals for value storage - \n choice1.setAttribute('data-total', `${choice1Total}`);\n choice2.setAttribute('data-total', `${choice2Total}`);\n choice3.setAttribute('data-total', `${choice3Total}`);\n choice4.setAttribute('data-total', `${choice4Total}`);\n\n // - populating answers from question array into DOM -\n choice1.innerHTML = `${question.answer1}`;\n choice2.innerHTML = `${question.answer2}`;\n choice3.innerHTML = `${question.answer3}`;\n choice4.innerHTML = `${question.answer4}`;\n}", "function populateQuestionAnswer(question) {\n // console.log($questionText);\n $questionText.text(question.fields.question);\n var answers = [question.fields.correctAnswer, question.fields.wrongAnswer1, question.fields.wrongAnswer2, question.fields.wrongAnswer3];\n for (var i = 0; i < answers.length; i++) {\n $(\"#answer\" + questionOrder.indexOf(i)).text(answers[i]);\n }\n}", "function createQuestion(index) {\n \tvar questionDiv = $('<div>', {\n \t\tid: 'question'\n \t});\n\n \tvar header = $('<h2>Question ' + (index + 1) + ':</h2>');\n \tquestionDiv.append(header);\n\n \tvar question = $('<p>').append(questions[index].question);\n \tquestionDiv.append(question);\n\n \tvar radioButtons = createRadios(index);\n \tquestionDiv.append(radioButtons);\n\n \treturn questionDiv;\n }", "function addHeadersToQV(form, amountOfQuestions){\n\n id = form.id;\n\n var br = document.createElement(\"br\");\n form.appendChild(br);\n \n var p = document.createElement(\"h2\");\n p.id = \"Title\"+amountOfQuestions;\n \n var text = document.createTextNode(\"Question \"+amountOfQuestions);\n p.appendChild(text);\n \n form.appendChild(p);\n\n var br = document.createElement(\"br\");\n form.appendChild(br);\n \n\n var lbl = document.createElement('label')\n lbl.innerHTML = 'Easy'\n lbl.style.marginRight = '1vh'\n form.appendChild(lbl)\n\n var inp = document.createElement('input')\n inp.setAttribute('type','radio')\n inp.setAttribute('name', 'Question'+ id+ 'Difficulty')\n inp.id = \"Question\"+id+\"Easy\"\n inp.value = \"easy\"\n inp.setAttribute('checked', 'checked')\n inp.style.marginRight = '1vh'\n form.appendChild(inp)\n\n var lbl = document.createElement('label')\n lbl.innerHTML = 'Hard'\n lbl.style.marginRight = '1vh'\n form.appendChild(lbl)\n\n \n\n var inp = document.createElement('input')\n inp.setAttribute('type','radio')\n inp.setAttribute('name', 'Question'+ id+ 'Difficulty')\n inp.id = \"Question\"+id+\"Hard\"\n inp.value = \"easy\"\n inp.setAttribute('checked', 'checked')\n inp.style.marginRight = '1vh'\n form.appendChild(inp)\n \n addBr(form)\n\n var textarea = document.createElement(\"textarea\");\n textarea.setAttribute('value', 'Your question goes here');\n textarea.id = \"Question\"+amountOfQuestions+\"Text\";\n textarea.style.resize = \"none\";\n form.appendChild(textarea);\n\n var br = document.createElement(\"br\");\n form.appendChild(br);\n var br = document.createElement(\"br\");\n form.appendChild(br);\n}", "function generateAllQuestions() {\n $('.questionNumber').html(updateQuestionNumber());\n let questions = questionsHtml();\n $('.startQuiz').html(questions);\n\n\n $('.test').submit(function (event) {\n event.preventDefault();\n let ans = $('input[type=radio][name=answer]:checked');\n\n if (ans.length > 0) {\n let ansr = ans.val();\n\n submitAnswer(ansr);\n }\n });\n}", "function makeQuestions() {\n for (var i = 0; i < arrayQs.length; i++) {\n // create div to hold question\n var container = document.createElement('div')\n // add class to div\n container.setAttribute('class', ' triviaQuestion')\n var currentQ = '<h2>' + arrayQs[i].question + '</h2>'\n // add current Question to container\n container.innerHTML = currentQ\n // add choices to container \n for (var x = 0; x < arrayQs[i].answers.length; x++) {\n // array for radio input + choices\n var choiceAndRadio = []\n choiceAndRadio.push('</br><input type=\"radio\" name=\"choice' + i + '\" class=\"testButton ') \n if (arrayQs[i].answers[x] === arrayQs[i].correct) {\n choiceAndRadio.push(' correct')\n }\n choiceAndRadio.push('\" value=\"' + arrayQs[i].answers[x] + '\">' + arrayQs[i].answers[x])\n // add choices to container HTML\n container.innerHTML += choiceAndRadio.join(\" \")\n }\n // button to submit response\n var testResponse = document.createElement('button')\n testResponse.setAttribute(\"class\", \" testResponse\"+ \" testResponse\" + i)\n var text = document.createTextNode(\"Submit\")\n testResponse.appendChild(text)\n container.appendChild(testResponse)\n // Add event listener to each submit button \n testResponse.addEventListener('click', runTest)\n // append container to board\n board.appendChild(container) \n }\n}", "function generateQuestion() { //this function is both a template for the questions, and renders questions based on store state. \n let answerString = \"\";\n let questionObject = store.questions[store.questionNumber];\n let questionText = questionObject.question;\n\n questionObject.answers.map((a, i) => { /*using .map to iterate through avalable answers and make a\n string for each answer*/\n answerString += `\n <li>\n <input type=\"radio\" name=\"answer\" id=\"answer-${i}\" data-answer=\"${a}\" value=\"${a}\">\n <label for=\"answer-${i}\"> ${a}</label>\n </li> \n `\n });\n\n return `\n <div class =\"container\">\n <div class=\"question\">\n <form>\n <p>\n Question ${store.questionNumber + 1} out of ${store.questions.length}. <br>\n Current score: ${scorePercentage()}\n <p>\n ${questionText}\n </p>\n <div class=\"answer\">\n <ol type=\"A\">\n ${answerString}\n </ol>\n <div class=\"button-container\">\n <button id=\"check-answer\" onClick=\"checkAnswer(event)\"> \n Check Answer\n </button>\n </div>\n </form> \n </div>\n </div>`\n\n}", "function makeQuestions(questionsListIndex) {\n // Reset Previous HTML\n getDiv.innerHTML = \"\";\n choiceList.innerHTML = \"\";\n starter.remove();\n\n for (var i = 0; i < questionsList.length; i++) {\n var currentQuestion = questionsList[questionsListIndex].question;\n var currentChoices = questionsList[questionsListIndex].choices;\n // Set Current Question\n getDiv.textContent = currentQuestion;\n }\n\n // Set Answer Choices from ChoiceList\n currentChoices.forEach(function (newItem) {\n var listItem = document.createElement(\"li\");\n\n listItem.textContent = newItem;\n\n getDiv.appendChild(choiceList);\n choiceList.appendChild(listItem);\n listItem.addEventListener(\"click\", evaluate);\n });\n}", "function renderQuestion() {\n $('.QAform').html(' ');\n if (questionNum < STORE.length) {\n $('.QAform').html(`<p>${STORE[questionNum].question}</p>\n <form>\n <fieldset>\n <label>\n <input type=\"radio\" value=\"${STORE[questionNum].answers[0]}\" name=\"answer\" required>\n <span>${STORE[questionNum].answers[0]}</span>\n </label>\n\n <label>\n <input type=\"radio\" value=\"${STORE[questionNum].answers[1]}\" name=\"answer\" required>\n <span>${STORE[questionNum].answers[1]}</span>\n </label>\n \n <label>\n <input type=\"radio\" value=\"${STORE[questionNum].answers[2]}\" name=\"answer\" required>\n <span>${STORE[questionNum].answers[2]}</span>\n </label>\n\n <label>\n <input type=\"radio\" value=\"${STORE[questionNum].answers[3]}\" name=\"answer\" required>\n <span>${STORE[questionNum].answers[3]}</span>\n </label>\n <button type = \"submit\" class=\"submitButton\">Submit</button>\n </fieldset>\n </form>`)\n }\n else {\n retakeQuiz();\n };\n}", "function setupAnswers (question, currentIndex) {\n\n // if first question, show\n let questionClass = '';\n if (currentIndex !== 0){\n questionClass = ' hide';\n }\n else if (currentIndex === 0){\n startHintTimer(currentIndex);\n }\n\n $('.questions-block').append(`\n <form id=\"question${currentIndex}\" class=\"questions-form${questionClass}\">\n\n <div class=\"row question-group\">\n <div class=\"col-lg-6 answer-img\">\n <img src=\"${question.imgSrc}\" alt=\"${question.imgAlt}\">\n <p id=\"js-hint-${currentIndex}\" class=\"hide\"><strong>Hint:</strong> <em>${question.hint}</em></p>\n </div>\n <div class=\"col-lg-6\">\n ${setupAnswerBtns(currentIndex, question.wordOptions)}\n </div>\n </div>\n </form>\n `);\n\n}", "function initializeQuiz(){\n QuestionData.forEach(q => {\n questions.push(factory.createQuestion(q));\n });\n }", "function createNewQuestion() {\n if(currentQuestion >= questions.length) {\n createSubmitPage();\n return;\n }\n\n previousState = currentState;\n currentState = appStates.Questioning;\n \n\n $(contEl).empty();\n\n let questionObj = questions[currentQuestion];\n let header = $(`<h1>${questionObj.textContent}</h1>`);\n let unList = $(\"<ul>\");\n\n $(questionObj.options).each(function(index, value){\n let btn = $(`<li><button type=\"button\" class=\"ques-option quizbtn\" data-ques-option=\"${value}\">${index + 1}. ${value}</button></li>`);\n $(unList).append(btn);\n });\n\n $(contEl).append(header, unList);\n\n if(previousState != appStates.Questioning)\n startTimer();\n//adds to score if correct subtracts if wrong \n//display correct or wrong \n $(\".ques-option\").on(\"click\", function(event){\n event.preventDefault();\n lastAnswer = $(this).attr(\"data-ques-option\");\n let isCorrect = lastAnswer === questionObj.answer;\n\n if (isCorrect)\n score += 30;\n else if (!isCorrect) {\n secondsElapsed += 10;\n }\n\n currentQuestion++;\n createNewQuestion();\n\n if (isCorrect)\n displayMessage(\"Correct\");\n else \n displayMessage(\"Wrong\");\n });\n\n function displayMessage(message) {\n let messageText = $(`<div class=\"fader\"><hr><h3>${message}</h3></div>`);\n $(\"#content\").append(messageText);\n }\n }", "function generateQuestions (index) {\n //Select each question by passing it a particular index\n const question = questions[index];\n const option1Total = questions[index].answer1Total;\n const option2Total = questions[index].answer2Total;\n const option3Total = questions[index].answer3Total;\n //Populate html elements \n questionEl.innerHTML = `${index + 1}. ${question.question}`\n option1.setAttribute('data-total', `${option1Total}`);\n option2.setAttribute('data-total', `${option2Total}`);\n option3.setAttribute('data-total', `${option3Total}`);\n option1.innerHTML = `${question.answer1}`\n option2.innerHTML = `${question.answer2}`\n option3.innerHTML = `${question.answer3}`\n}", "function generateQuestions (index) {\n //Select each question by passing it a particular index\n const question = questions[index];\n const option1Total = questions[index].answer1Total;\n const option2Total = questions[index].answer2Total;\n const option3Total = questions[index].answer3Total;\n //Populate html elements \n questionEl.innerHTML = `${index + 1}. ${question.question}`\n option1.setAttribute('data-total', `${option1Total}`);\n option2.setAttribute('data-total', `${option2Total}`);\n option3.setAttribute('data-total', `${option3Total}`);\n option1.innerHTML = `${question.answer1}`\n option2.innerHTML = `${question.answer2}`\n option3.innerHTML = `${question.answer3}`\n}", "function generateQ(qid) {\n var letQHtml = ` \n<h2>${STORE[qid].question}</h2>\n<form class=\"answers\"> \n<label> \n<input class=\"answers\" type=\"radio\" name=\"selection\" value=\"${STORE[qid].answers[0]}\" checked>\n${STORE[qid].answers[0]}\n</label>\n<label> \n<input class=\"answers\" type=\"radio\" name=\"selection\" value=\"${STORE[qid].answers[1]}\" >\n${STORE[qid].answers[1]}\n</label>\n<label> \n<input class=\"answers\" type=\"radio\" name=\"selection\" value=\"${STORE[qid].answers[2]}\" >\n${STORE[qid].answers[2]}\n</label>\n<label id=\"bottom\"> \n<input class=\"answers\" type=\"radio\" name=\"selection\" value=\"${STORE[qid].answers[3]}\" >\n${STORE[qid].answers[3]}\n</label>\n<br>\n<button type=\"submit\" id=\"subAns\">Submit</button>\n</form>\n`;\n return letQHtml;\n}", "function makeQuestionsForQuiz(numQuestions) {\n // generate questions for quiz\n questions = generateQuestions(numQuestions || questionTemplates.length);\n // make questions-only list for quiz component\n return questions.map(q => ({\n id: q.id,\n type: q.type,\n question: q.question\n }));\n}", "function generateQuizForm(questionObject) {\n return `\n <div class='quiz-form'>\n <p>Question ${questionObject.index}/${store.questions.length}</p>\n <p><b>${questionObject.question.question}</b></p>\n\n <form>\n <ol type=\"A\" style=\"list-style:none; padding:0px;\">\n ${generateQuizAnswers(questionObject.question.answers)}\n </ol>\n <button type=\"submit\" class=\"submit-answer\">Submit</button>\n </form> \n <p>Score: ${store.score}</p>\n </div>\n `;\n}", "function createQuestionElement(index) {\n var qElement = $('<div>', {\n id: 'question'\n });\n \n var header = $('<div id=\"quest\"> <h2 id=\"question_label\">Question ' + (index + 1) + ':</h2> </div>');\n qElement.append(header);\n \n var question = header.append('<p id=\"quest_content\">'+questions[index].question+'</p>');\n qElement.append(question);\n \n var radioButtons = createRadios(index);\n qElement.append(radioButtons);\n\n \n return qElement;\n }", "function getQuestionString () {\n const question = getQuestion (questions, questionNumber);\n return `\n <form id='quesiton-form'>\n <fieldset class=\"grey-box\">\n <span class=\"question\">${question.question}</span>\n\n <label for=\"answer1\">\n <input type=\"radio\" id=\"answer1\" class=\"answerOption\" name=\"answerOption\" value=\"${question.answers[0]}\" required>${question.answers[0]}\n </label>\n\n <label for=\"answer2\">\n <input type=\"radio\" id=\"answer2\" class=\"answerOption\" name=\"answerOption\" value=\"${question.answers[1]}\" required>${question.answers[1]}\n </label>\n\n <label for=\"answer3\">\n <input type=\"radio\" id=\"answer3\" class=\"answerOption\" name=\"answerOption\" value=\"${question.answers[2]}\" required>${question.answers[2]}\n </label>\n\n <label for=\"answer4\">\n <input type=\"radio\" id=\"answer4\" class=\"answerOption\" name=\"answerOption\" value=\"${question.answers[3]}\" required>${question.answers[3]}\n </label>\n <button type=\"submit\">Submit</button>\n </fieldset>\n </form>\n `\n\n}", "function generateQuestionTemplate(question) {\n let template =\n `<div>\n <form id=\"js-questions\" class= \"question-form\">\n\n <fieldset>\n <div class=\"container-question\">\n <div class=\"item\">\n <h3> ${question}</h3>\n </div>\n </div>\n\n <div class = \"container-options\">\n <div class =\"item\">\n <div>\n <ul class = \"js-options\">\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"container\">\n <div class = \"item\">\n <button type =\"submit\" id=\"submit-answer\" tabindex=\"5\">Submit</button>\n <button type = \"button\" id = \"next\" tabindex=\"6\">Next Question</button>\n </div>\n </div>\n </fieldset>\n </form>\n </div>`;\n return template\n}", "function showQuestion() {\n showQuizButtons();\n if (index === quizLength) {\n return;\n }\n // display of question at given index:\n formContainer.classList.remove(\"hide\");\n form.innerHTML = \"\";\n var quizItem = allQuestions[index];\n var q = document.createElement(\"h3\");\n var text = document.createTextNode(quizItem.question);\n\n var storedAnswers = actualPlayer.storedAnswers;\n var storedAnswer = storedAnswers[index];\n q.appendChild(text);\n form.appendChild(q);\n\n // display of choices, belonging to the questions at given index:\n choices = allQuestions[index].choices;\n\n for (var i = 0; i < choices.length; i++) {\n var div = document.createElement(\"div\");\n div.classList.add(\"radio\");\n\n\n var input = document.createElement(\"input\");\n input.setAttribute(\"id\", i);\n input.setAttribute(\"type\", \"radio\");\n input.setAttribute(\"name\", \"question\");\n\n\n\n\n if (i === quizItem.correctAnswer) {\n\n input.setAttribute(\"value\", \"1\"); \n } else { \n input.setAttribute(\"value\", \"0\");\n }\n\n\n //if question has been answered already\n if (storedAnswer) {\n var id = storedAnswer.id;\n if (i == id) {\n // if question is already answered, id has a value\n input.setAttribute(\"checked\", \"checked\");\n \n }\n }\n \n //if radiobutton is clicked, the chosen answer is stored in array storedAnswers\n input.addEventListener(\"click\", storeAnswer);\n \n\n var label = document.createElement(\"label\");\n label.setAttribute(\"class\", \"radio-label\") \n label.setAttribute(\"for\", i);\n var choice = document.createTextNode(choices[i]);\n label.appendChild(choice);\n div.appendChild(input);\n div.appendChild(label);\n form.appendChild(div);\n\n }\n}", "function CreateQuestionList() {\n myQuestions = [\n {\n exemple: true,\n question: \"Voici un ensemble de figures géométriques abstraites. Pour trouver la figure manquante (A jusqu'à H), \\\n il faut essayer de <mark>déduire des relations entre les figures</mark>. En partant de la première colonne à gauche et en descendant, \\\n on constate que l'on augmente à chaque fois le segment (I-II-III). Cette augmentation se répète avec les autres colonnes. \\\n Avec le même raisonemment, nous voyons que dans les lignes seule la position du segment change. \\\n Les diagonales conjugent position et augmentation des segments. La réponse B est la seule qui respecte les règles d'augmentation et de position \\\n que nous avons découvert.\",\n image: \"questions/QT1-0.png\"\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-1.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"G\"\n },\n {\n question: \"<p> <mark>La confusion est une situation dans laquelle les gens ne comprennent pas ce qui se passe, ce qu'ils doivent faire ou qui est quelqu'un ou quelque chose.</mark></p>\\\n Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-2.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"C\"\n },\n {\n question: \"Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-3.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"F\"\n },\n {\n question: \"Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-4.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"\"\n },\n {\n question: \"Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n }\n ];\n }", "function questionGen() {\n $(\"#game\").append(\"<p class='question'>\" + questions[questionNumb].question + \"</p>\" +\n \"<p class='options'>\" + questions[questionNumb].options[0] + \"</p>\" +\n \"<p class='options'>\" + questions[questionNumb].options[1] + \"</p>\" +\n \"<p class='options'>\" + questions[questionNumb].options[2] + \"</p>\" +\n \"<p class='options'>\" + questions[questionNumb].options[3] + \"</p>\");\n }", "function generateQuestionPage(){\n //grabs current question, question number\n const allQuestions = store.questions;\n const currentQuestionNumber = store.questionNumber;\n const currentQuestionData = allQuestions[currentQuestionNumber];\n const currentQuestion = currentQuestionData.question;\n //grabs HTML for the current answer choices\n const choicesHTML = generateChoices();\n\n return `\n <h1 class=\"quiz-questions\" role=\"heading\">Question ${currentQuestionNumber + 1} out of ${store.questions.length}</h1>\n <section role=\"region\" aria-label=\"Question\" class=\"quiz-area\">\n <h3 class=\"score-result\">Score: ${store.score} out of ${Object.values(store.questions).length}</h3>\n <figure>\n <img src=\"https://cdn.discordapp.com/emojis/615236185882886164.png?v=1\" alt=\"thinking emoji\">\n <figcaption>Hmmm...</figcaption>\n </figure>\n <form id=\"question-form\" action=\"#\" aria-label=\"Display Question, Question Number, Choices, and Submit button\" role=\"form\">\n <fieldset tabindex=\"0\" role=\"radiogroup\">\n <legend>${currentQuestion}?</legend>\n ${choicesHTML}\n </fieldset>\n <button id=\"submit-answer\" role=\"button\">Submit Answer</button>\n </form>\n </section>`;\n}", "function populateQuestion() {\n questionNumberEl.textContent = questions[currentQuestion].questionNum;\n questionItselfEl.textContent = questions[currentQuestion].questionContent;\n for (j = 0; j < 4; j++) {\n answerChoiceArray[j].textContent = questions[currentQuestion].answerChoices[j];\n }\n}", "function makeQuestion() {\n const questionbox = document.querySelector('#questionbox');\n const responsebox = document.querySelector('#responsebox');\n responsebox.style.visibility='hidden';\n questionbox.style.visibility='visible';\n // create a variable called questionask\n let questionask = document.querySelector('#question');\n // print the current question\n questionask.innerHTML = questions[counter].ask;\n // loop through all of the answers\n for (let j=0; j < questions[counter].answers.length; j++){\n let answer = document.querySelectorAll('.answer');\n //print the current answer\n answer[j].innerHTML = questions[counter].answers[j].word;\n };\n }", "function generateQuestions(index) {\r\n //Select each question by passing it a particular index\r\n const question = questions[index];\r\n const option1Total = questions[index].answer1Total;\r\n const option2Total = questions[index].answer2Total;\r\n const option3Total = questions[index].answer3Total;\r\n const option4Total = questions[index].answer4Total;\r\n const option5Total = questions[index].answer5Total;\r\n //Populate html elements \r\n questionEl.innerHTML = `${question.question}`\r\n option1.setAttribute('data-total', `${option1Total}`);\r\n option2.setAttribute('data-total', `${option2Total}`);\r\n option3.setAttribute('data-total', `${option3Total}`);\r\n option4.setAttribute('data-total', `${option4Total}`);\r\n option5.setAttribute('data-total', `${option5Total}`);\r\n\r\n option1.innerHTML = `${question.answer1}`\r\n option2.innerHTML = `${question.answer2}`\r\n option3.innerHTML = `${question.answer3}`\r\n option4.innerHTML = `${question.answer4}`\r\n option5.innerHTML = `${question.answer5}`\r\n}", "function loadQuestions() {\n var formDiv = $(\"#survey-questions\");\n formDiv.empty();\n for (var i in questions) {\n\n // The numId math below concatenates w/o the '+'\n var numId = +1 + +i;\n var runningId = \"question-\" + numId;\n var questionDiv = $(\"<div>\").addClass(\"input-field col s12\").attr(\"id\", runningId);\n var selectTag = $(\"<select>\");\n var option0 = $(\"<option>\").text(\"Choose your option\")\n option0.attr(\"disabled\", true)\n option0.attr(\"selected\", \"selected\")\n selectTag.append(option0);\n var defaultOptions = [\"1 (Strongly Disagree)\", \"2\", \"3\", \"4\", \"5 (Strongly Agree)\"]\n\n for (var j in defaultOptions) {\n var option = $(\"<option>\").text(defaultOptions[j]).val(j);\n selectTag.append(option);\n }\n\n questionDiv.append(selectTag);\n var label = $(\"<label>\").text(questions[i]);\n questionDiv.append(label);\n formDiv.append(questionDiv);\n }\n\n // Initialize the Materialize selects\n $(\"select\").formSelect();\n}", "function generateQuestion () {\r\n if (questionNumber < data.length) {\r\n return `\r\n <div class=\"questions\">\r\n <h2>${data[questionNumber].question}</h2>\r\n <form>\r\n <fieldset>\r\n <label class=\"answerOption\">\r\n <input type=\"radio\" value=\"${data[questionNumber].answers[0]}\" name=\"answer\" required>\r\n <span>${data[questionNumber].answers[0]}</span>\r\n </label>\r\n <label class=\"answerOption\">\r\n <input type=\"radio\" value=\"${data[questionNumber].answers[1]}\" name=\"answer\" required>\r\n <span>${data[questionNumber].answers[1]}</span>\r\n </label>\r\n <label class=\"answerOption\">\r\n <input type=\"radio\" value=\"${data[questionNumber].answers[2]}\" name=\"answer\" required>\r\n <span>${data[questionNumber].answers[2]}</span>\r\n </label>\r\n <label class=\"answerOption\">\r\n <input type=\"radio\" value=\"${data[questionNumber].answers[3]}\" name=\"answer\" required>\r\n <span>${data[questionNumber].answers[3]}</span>\r\n </label>\r\n <label class=\"answerOption\">\r\n <input type=\"radio\" value=\"${data[questionNumber].answers[4]}\" name=\"answer\" required>\r\n <span>${data[questionNumber].answers[4]}</span>\r\n </label>\r\n <button type=\"submit\" class=\"submitButton\">Submit</button>\r\n </fieldset>\r\n <ul>\r\n <li>Question: ${questionNumber+1}/10</li>\r\n <li>Score: ${score}</li>\r\n </ul>\r\n </form>\r\n </div>`;\r\n} else {\r\n renderResults();\r\n restartQuiz();\r\n }\r\n}", "function printQuestion(pregunta, i) { // añadida i\n let formBox = document.getElementById(\"formBox\")\n\n let formElement = document.createElement(\"form\")\n formElement.setAttribute(\"id\", `formulario${i}`) //se crea una id diferente para poder borrar cada pregunta\n formBox.appendChild(formElement)\n\n let fieldElement = document.createElement(\"fieldset\")\n fieldElement.setAttribute(\"id\", \"fieldset\")\n formElement.appendChild(fieldElement)\n\n let h3Element = document.createElement(\"h3\")\n h3Element.setAttribute(\"id\", \"question\")\n let preguntaContent = document.createTextNode(htmlEntities(pregunta.label))\n h3Element.appendChild(preguntaContent)\n fieldElement.appendChild(h3Element)\n\n for (let j = 0; j < pregunta.answers.length; j++) {\n let inputElement = document.createElement(\"input\")\n inputElement.setAttribute(\"id\", `input${j}`)\n inputElement.setAttribute(\"class\", \"switchInput\")\n inputElement.setAttribute(\"type\", \"radio\")\n inputElement.setAttribute(\"name\", htmlEntities(pregunta.name)) // modificado name para que solo se pueda seleccionar una respuesta\n inputElement.setAttribute(\"value\", htmlEntities(pregunta.answers[j].value)) // añadido value para poder hacer la comprobacion de las respuestas correctas\n fieldElement.appendChild(inputElement)\n\n let labelElement = document.createElement(\"label\")\n labelElement.setAttribute(\"class\", \"switch\")\n labelElement.setAttribute(\"for\", `input${j}`) // modificado el for para que coincida con el id del input y se pueda seleccionar la respuesta pinchando en el texto\n let contenido = document.createTextNode(htmlEntities(pregunta.answers[j].label))\n labelElement.appendChild(contenido)\n fieldElement.appendChild(labelElement)\n }\n\n let submitElement = document.createElement(\"input\")\n submitElement.setAttribute(\"id\", \"SendForm\")\n submitElement.setAttribute(\"type\", \"submit\")\n submitElement.setAttribute(\"value\", \"Comprobar!\")\n formElement.appendChild(submitElement)\n}", "function addQuestion() {\n const qBody = getValue(id_inputQuestionText);\n\n let index = 1;\n const aChoices = {\n a1: {\n label: getValue(id_inputAnswerText + index),\n isAnswer: isChecked(id_inputRadio + index++),\n },\n a2: {\n label: getValue(id_inputAnswerText + index),\n isAnswer: isChecked(id_inputRadio + index++),\n },\n a3: {\n label: getValue(id_inputAnswerText + index),\n isAnswer: isChecked(id_inputRadio + index++),\n },\n a4: {\n label: getValue(id_inputAnswerText + index),\n isAnswer: isChecked(id_inputRadio + index++),\n },\n };\n\n console.log(aChoices);\n\n let questionObj = new Question(qBody, aChoices);\n console.log(questionObj);\n\n // remove parent element\n deleteElem(document.getElementById(id_divQuestion));\n\n // reveal create question button after\n toggleCreateButton();\n\n // add to localStorage\n const questionNum = localStorage.length + 1;\n\n // push question object to local storage\n setLocalStorage(\"question\" + questionNum, questionObj)\n\n // localStorage.setItem(\"question\" + questionNum, question);\n\n console.log(localStorage);\n}", "function createQuestionsHTML() {\n\treturn QUESTIONS[currentQuestionIndex].answers\n\t\t.map((question, index) => {\n\t\t\treturn `\n\t\t\t\t<div class=\"answer\">\n <input type=\"radio\" name=\"answer\" value=\"${index}\" id=\"option${index}\" class=\"pr-2\"/>\n\t\t\t\t\t<label for=\"option${index}\">${question.text}</label>\n\t\t\t\t</div>`\n\t\t})\n\t\t.join('\\n')\n}", "function CreateQuestions() {\n inquirer.prompt([\n {\n name: 'name',\n type: 'input',\n message: `Enter the Manager's name?`\n },\n {\n name: 'id',\n type: 'input',\n message: `Enter the Managers's ID?`\n },\n {\n name: 'email',\n type: 'input',\n message: `Enter the Managers's email address?`,\n validate: (email) => {\n if (validateEmail.validate(email))\n return true;\n else\n return `${email} is not valid`\n }\n },\n {\n name: 'officeNumber',\n type: 'input',\n message: `Enter the office number?`,\n validate: (officeNumber) => {\n if (officeNumber.match(/^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\\s\\./0-9]*$/g) && officeNumber.match(/\\d/g).length === 10)\n return true;\n else\n return `${officeNumber} is not valid`\n }\n },\n\n ]).then(answers => {\n addManager(answers);\n });\n}", "function updateQuestion() {\n //1 - update the question text\n $('#question').text(myQuestions[currentQuestionNumber].questionText);\n //2 - display what are the choices for the current question\n //2.1 - first delete all exisiting choices before populating it with new ones\n $('.options').empty();\n //2.2 - get the total number of choices for the current question\n let totalChoices = myQuestions[currentQuestionNumber].questionChoices.length;\n console.log(totalChoices);\n //2.3 - loop through all the choices and append them to the choices container\n for (var i = 0; i < totalChoices; i++) {\n //2.3.1 - loop through the answer choices and create a dynamically generated row for eaach of them\n let buildEachChoice = \"<input class='answers' name='q1' type='radio' value=\" + i + \">\" + myQuestions[currentQuestionNumber].questionChoices[i] + \"<br>\";\n //2.3.2 - append that row to the choices container in html\n $('.options').append(buildEachChoice);\n }\n //3 - displays the number of the current question\n $('.footer').text(\"Question\" + (currentQuestionNumber + 1) + \"of\" + totalAmountOfQuestions);\n\n\n // display current score\n $('.right').text(\"Current Score: \" + totalNumberOfCorrectAnswers + \"/\" + totalAmountOfQuestions);\n\n}", "function addCustomQuestion() {\n updateQuestions();\n let question = new Question(\"Custom\", \"\", \"\");\n question.options.push(constructOptionObject(\"\", \"\"));\n questions.push(question);\n displayQuestions();\n hideAddQuestionModal();\n\n // add a field\n}", "function constructQuestion(id) {\n var currentQ = getCurrentQ(id);\n\n var questionElement = document.getElementById('quiz_question');\n\n questionElement.innerText = currentQ.question;\n\n var answer1Ele = document.getElementById('answer1');\n var answer2Ele = document.getElementById('answer2');\n var answer3Ele = document.getElementById('answer3');\n var answer4Ele = document.getElementById('answer4');\n\n answer1Ele.innerText = currentQ.choices[0];\n answer2Ele.innerText = currentQ.choices[1];\n answer3Ele.innerText = currentQ.choices[2];\n answer4Ele.innerText = currentQ.choices[3];\n}", "function generateQuestions() {\n let questions = [\n {\n question_id: 1,\n question_text: \"What is the Capital of the United States?\",\n answer: \"Washington, DC\",\n decoy_1: \"Philadelphia\",\n decoy_2: \"Chicago\",\n decoy_3: \"Miami\"\n\n },\n {\n question_id: 2,\n question_text: \"What is the Capital of Canada?\",\n answer: \"Ottawa\",\n decoy_1: \"Toronto\",\n decoy_2: \"Kingston\",\n decoy_3: \"Edmonton\"\n },\n {\n question_id: 3,\n question_text: \"What is the Capital of Mexico?\",\n answer: \"Mexico City\",\n decoy_1: \"Cancun\",\n decoy_2: \"Cabo San Lucas\",\n decoy_3: \"Tijuana\"\n },\n {\n question_id: 4,\n question_text: \"What is the Capital of the United Kingdom?\",\n answer: \"London\",\n decoy_1: \"Manchester\",\n decoy_2: \"Nottingham\",\n decoy_3: \"Edinborough\"\n },\n {\n question_id: 5,\n question_text: \"What is the Capital of Australia?\",\n answer: \"Canberra\",\n decoy_1: \"Sydney\",\n decoy_2: \"Brisbane\",\n decoy_3: \"Byron Bay\"\n },\n {\n question_id: 6,\n question_text: \"What is the Capital of China?\",\n answer: \"Beijing\",\n decoy_1: \"Shanghai\",\n decoy_2: \"Shenzen\",\n decoy_3: \"Tianjin\"\n\n },\n {\n question_id: 7,\n question_text: \"What is the Capital of India?\",\n answer: \"New Delhi\",\n decoy_1: \"Bengaluru\",\n decoy_2: \"Kolkata\",\n decoy_3: \"Mumbai\"\n },\n {\n question_id: 8,\n question_text: \"What is the Capital of Germany?\",\n answer: \"Berlin\",\n decoy_1: \"Munich\",\n decoy_2: \"Frankfurt\",\n decoy_3: \"Hamburg\"\n },\n {\n question_id: 9,\n question_text: \"What is the Capital of New Zealand?\",\n answer: \"Wellington\",\n decoy_1: \"Aukland\",\n decoy_2: \"Christchurch\",\n decoy_3: \"Dunedin\"\n },\n {\n question_id: 10,\n question_text: \"What is the Capital of France?\",\n answer: \"Paris\",\n decoy_1: \"Marsaille\",\n decoy_2: \"Lyon\",\n decoy_3: \"Toulouse\"\n }\n ]\n return questions\n}", "function createQuestionElement(index) {\n var qElement = '<div id=question>';\n qElement += '<p>';\n qElement += questions[index].question;\n qElement += '</p>';\n qElement += createRadios(index);\n qElement += '</div>';\n \n return qElement;\n}", "function load_survey(e){\n var questions = e.rows[0].doc.questions;\n var limit = questions.length;\n for(var i = 0; i < limit; i++){\n var p = document.createElement(\"P\");\n p.setAttribute(\"class\", \"question\");\n var t = document.createTextNode(questions[i]);\n p.appendChild(t);\n document.body.appendChild(p);\n var input = document.createElement(\"INPUT\");\n input.setAttribute(\"class\", \"q_input\");\n input.setAttribute(\"placeholder\", \"Enter Answer Here\");\n document.body.appendChild(input);\n }\n var btn = document.createElement(\"BUTTON\");\n btn.setAttribute(\"class\", \"survey_button\");\n btn.addEventListener(\"click\", function(){survey_clicked();});\n var t = document.createTextNode(\"Submit\");\n btn.appendChild(t);\n document.body.appendChild(btn);\n}", "function newQuestion() {\n scoreText.textContent = `Score: ${score}`\n questionNumber++\n if (questionNumber >= 25) {\n numOfQuestions.textContent = `Question 25 of 25`\n } else {\n numOfQuestions.textContent = `Question ${questionNumber} of 25`\n }\n question.setAttribute(`class`, `d-none`)\n question = document.getElementById(questionNumber);\n question.removeAttribute(`class`, `d-none`);\n answerchoices = question.querySelectorAll('p');\n }", "function getNewQuestion() {\n if (currentQuestionIndex > questions.length - 1) {\n return;\n }\n\n var question = questions[currentQuestionIndex];\n var title = question.title;\n questionText.textContent = title;\n\n for (var i = 0; i < next.length; i++) {\n var choice1 = question.choices[i]\n next[i].textContent = choice1;\n };\n\n }", "function createQuiz(list) {\n try{\n \n quizContainer.innerHTML = '';\n \n // loop through each question\n for(var i=0; i < list.length; i++) {\n var item = list[i];\n \n // create choices - 3 incorrect and 1 correct\n item.incorrect_answers.push(item.correct_answer);\n\n // randomize choices\n var choices = randomizeArray(item.incorrect_answers);\n\n\n // build global array questions to keep track of answers selected by user\n questions.push({\n id: i,\n question: item.question,\n incorrectAnswers: choices,\n correctAnswer: item.correct_answer,\n mark: 0 // this mark will change when user selects a choice\n });\n \n // creating text node for question statement\n var p = document.createElement(\"p\");\n var node = document.createTextNode(item.question);\n p.appendChild(node);\n \n // question statement inserted into main div\n quizContainer.appendChild(p);\n \n // create choices list\n var ul = document.createElement('ul');\n choices.forEach((ans, index) => {\n var name = `${i}`;\n const li = document.createElement('li');\n li.innerHTML = `<input type=\"radio\" name=${name} value=\"${ans}\">${ans}`;\n \n ul.appendChild(li);\n \n // appending choices into main div for a question\n quizContainer.appendChild(ul); \n });\n }\n \n }\n catch(ex) {\n // logging error if caught\n console.log('Something went wrong. Try again.');\n }\n finally {\n // this code will run no matter if error comes or not\n $('#loader').hide();\n }\n }" ]
[ "0.75608057", "0.7535552", "0.7459917", "0.7376936", "0.73558605", "0.732428", "0.73031706", "0.72831917", "0.72679275", "0.7236456", "0.7175217", "0.71306336", "0.71182334", "0.7112259", "0.71099806", "0.7098095", "0.70945364", "0.70871824", "0.70802903", "0.70771414", "0.7074442", "0.7058382", "0.7056866", "0.70465076", "0.7018836", "0.7016448", "0.70099175", "0.7008283", "0.7003943", "0.6995604", "0.6982593", "0.69797295", "0.69630766", "0.6955938", "0.69536144", "0.6947101", "0.6945807", "0.69008166", "0.68838173", "0.6860663", "0.6854152", "0.6838525", "0.6837323", "0.68362963", "0.6826753", "0.6824676", "0.6824487", "0.6820665", "0.6810907", "0.6798835", "0.6791068", "0.6788894", "0.67885804", "0.67839056", "0.6780383", "0.6779644", "0.67661506", "0.67594004", "0.67580146", "0.675507", "0.67475104", "0.67338717", "0.6720712", "0.6719693", "0.6719072", "0.67155886", "0.6712795", "0.67021763", "0.6701834", "0.66989785", "0.669144", "0.6685585", "0.6685585", "0.6682753", "0.6676051", "0.66738105", "0.6673538", "0.6673273", "0.6668653", "0.6661351", "0.6658562", "0.6650213", "0.66463846", "0.6645753", "0.66437817", "0.66434735", "0.6636374", "0.6633116", "0.66314626", "0.6631057", "0.6627966", "0.6616465", "0.6615692", "0.6611738", "0.661154", "0.66050786", "0.66012263", "0.65933764", "0.6588764", "0.6577366", "0.6569358" ]
0.0
-1
function starts here with Element, url and display, these are passed in by other piece of code to allow for reuse of code
function fetchOffer(element, url, method) { //fetch the URL, then return the response as text, then log the data and display the element and data and if theres an error comes up then display the error fetch(url) .then ( function(response) { return response.text(); } ) .then ( function(data) { method(element, data); } ) .catch ( function(err) { document.getElementById(element).innerHTML = ("Something went wrong.", err); } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPage(page,el){if(page===undefined){handleComing();return}fetch(page).then(function(res){return res.text()}).then(function(data){return displayFetch(el,data)});// give clicked element and the data from the server to display.\n}// if it does give the data to the function below for display.", "function loadLinkData(url, result) {\n // build output\n var text = \"<div class='row link_preview'>\";\n // link title\n if (result.title) {\n text += \"<h3>\" + result.title + \"</h3>\";\n text += \"<input type='hidden' name='link_title' value='\" + result.title + \"'/>\";\n }\n // link url\n //text += \"<div class='url'><em><a href='\" + url + \"' target='_blank'>\" + url + \"</a></em></div>\";\n text += \"<input type='hidden' name='link' value='\" + url + \"'/>\";\n if (result.img) {\n text += \"<img src='\" + result.img + \"' class='thumb'/>\";\n text += \"<input type='hidden' name='link_img' value='\" + result.img + \"'/>\";\n }\n // link description\n if (result.description) {\n text += \"<p>\" + result.description + \"</p>\";\n text += \"<input type='hidden' name='link_description' value='\" + result.description + \"'/>\";\n }\n text += \"</div>\";\n return text;\n}", "function display(str, wx, wy, strtitle, source, sourceURL, add) {\n var sourceHTML = \"\";\n var showleft=mouseX;\n var showtop=mouseY;\n if (source != undefined) {\n if (sourceURL != undefined) {\n sourceHTML = '<div><center>Structure from:<a target=\"_blank\" style=\"text-decoration: underline;\" href=\"$URL$\">$SOURCE$</a></center></div>'.replace(\"$SOURCE$\", source).replace(\"$URL$\", sourceURL);\n } else {\n sourceHTML = '<div><center>Structure from:<span style=\"text-decoration: underline;\" >$SOURCE$</span></center></div>'.replace(\"$SOURCE$\", source);\n }\n }\n if(add.inchikey){\n \tvar ikey = add.inchikey.split(\"=\")[1];\n //https://www.google.com/search?q=BSYNRYMUTXBXSQ-UHFFFAOYSA-N\n \tsourceHTML += '<div style=\"text-align: center;font-size:small;\"><a href=\"https://www.google.com/search?q=' + ikey + '\" target=\"_blank\">' + ikey +'</a></div>';\n }\n //https://ginas.ncats.nih.gov/ginas/app/substances?q=CC(%3DO)OC1%3DC(C%3DCC%3DC1)C(O)%3DO&type=FLEX\n if (str == \"\" || str == undefined) {\n notify(\"No structure found for : \" + strtitle);\n return;\n }\n sourceHTML += '<div style=\"text-align: center;font-size:small;\"><a href=\"https://ginas.ncats.nih.gov/ginas/app/substances?q=' + encodeIt(str) + '&type=FLEX\" target=\"_blank\">Search GSRS</a></div>';\n \n if (strtitle == undefined) strtitle = str;\n var strtitlem = '<img style=\"margin-bottom: 2px;margin-right: 10px;border-radius: 5px; margin-left: -10px; padding: 4px; vertical-align: bottom; background: none repeat scroll 0% 0% white;/* clear: none; *//* display: inline; */\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACRUlEQVR42p1STYhSURTWoimmrOQlRZM/D/+fz/+f0HkzI8ODx2slbgyGiEanoBzLGCpahLqRhIpctHBTK2cbudClCyEIQtonGc7KRYskeqHv1fceNOCQUh243HvPPd93vnPuUanmmMlkOkZR1ILqf4ym6bN+v5/1er2czWZb+mugTqc7EQqFWIC3PR5PDusmzjksHopOz8MeRrZIIBDYcblcW8jKQL7f7XZf8vl8y9g3sO9gX0XskX0UgiiLxXI0HA5vIMsjs9m8rNFozuDpEPwnoeAqSJ/Z7XYP7i4kuY/7dfiPKwTxePwLJL+G8x6C1kFAH1CmdjqdNN5fYt2SE4JkE2QXlNd8Pj+uVCrfOI57D+mXEfQU7sU/lLhgMBgoOQEIrmHXK95isSj2ej2xXq8LyWSyAYJduGc2C9LJKYJSqSQOh0NpNBpJjUZD4Hn+E+St/QuBBIKfMEkQBKnT6UxQThelMgewiwCv4BccswgUk2Ddbvc7y7JvAbDLTYxEIuto9C6G64rVasVv+jL7BIVCQRwMBmK/35+02+1JIpGYxGKxj/jSV3L3g8HgXfl7jUZjgCTJFfToMQi2tFrtKYUgk8kItVrtazqd3mu1WkI2mx1D5hMExZDR6XA41lAOD98NSH+AabwImDwDaoWAYZjnqPkFJD6sVqufm83mGFk+IHgbJLdxvgOiHGaEQzghT+xUZ5CBAOs5uaZUKvWmXC7/AOgdJJMoYRWzwREEsTQ1vjNMjaxMNBrd1Ov153/75JGeB/oFDjDMFWlNFx4AAAAASUVORK5CYII=\"><span class=\"\" style=\"' +\n 'overflow: hidden;text-overflow: ellipsis;width: 80%;display: inline-block;\">' + strtitle + \"</span>\";\n\n jQuery(\"<div class='mystr'><a name='righthere' class='shosmi' href='#righthere' style=\\\"\\\n margin: auto;\\\n display: block;\\\n text-align: center;\\\n font-size: 8pt;\\\n\\\">(show smiles)</a><input style='display:none;width: 100%;font-size: smaller;font-family: monospace;' type='textbox' value='\" + str + \"'/>\" + \n\t \"<img title='Click to get structure' style='cursor: pointer;\\\nheight: 100%;\\\nmargin: auto;\\\nmax-width: 100%;\\\ndisplay: block;\\\nmargin-bottom: -40px;' src='\" + structureImgURL(str) + \"'>\" +\n sourceHTML +\n \"</div>\")\n .dialog({\n dialogClass: 'NCATSFindDialog',\n closeText: \"hide\",\n title: strtitle,\n position: 'top',\n show: {\n effect: 'fade',\n duration: 350\n },\n hide: {\n effect: 'fade',\n duration: 250\n }\n });\n jQuery(\".NCATSFindDialog\").css('z-index', 99999);\n jQuery(\".NCATSFindDialog\").css('border', \"none\");\n jQuery(\".NCATSFindDialog\").css('border-radius', 0);\n jQuery(\".NCATSFindDialog\").css('box-shadow', \"rgba(0, 0, 0, 0.329412) 5px 5px 5px\");\n jQuery(\".NCATSFindDialog\").css('position', 'fixed');\n jQuery(\".NCATSFindDialog\").css('padding', 0);\n jQuery(\".NCATSFindDialog .ui-dialog-titlebar\").css('border', 'none');\n jQuery(\".NCATSFindDialog .ui-dialog-titlebar\").css('color', 'white');\n jQuery(\".NCATSFindDialog .ui-dialog-titlebar\").css('border-radius', 0);\n jQuery(\".NCATSFindDialog .ui-dialog-titlebar\").css('background', \"rgb(158, 158, 158)\");\n\n jQuery(\".NCATSFindDialog\").not(\".setup\").css('top', showtop+ 'px');\n jQuery(\".NCATSFindDialog\").not(\".setup\").css('left', showleft+ 'px');\n jQuery(\".NCATSFindDialog\").not(\".setup\").addClass(\"setup\");\n\n\n jQuery(\".mystr a.shosmi\").click(function() {\n\tjQuery(this).parent().find(\"input\").show();\n\tjQuery(this).hide();\n });\n jQuery(\".mystr img\").click(function() {\n var smi = jQuery(this).parent().find(\"input\").val();\n var mole = {\n \"smiles\": smi\n };\n editMolecule(mole);\n });\n\n jQuery(\".ui-dialog .ui-dialog-content\").css(\"overflow\", \"hidden\");\n jQuery(\".ui-dialog-title\").css(\"overflow\", \"visible\");\n jQuery(\".ui-dialog-title\").not(\".active\").html(strtitlem);\n jQuery(\".ui-dialog-title\").addClass(\"active\");\n}", "function prepareDisplay(){\n\tif(!document.getElementById) return false; \n\tvar displayElement = document.getElementById(\"kw\");\n\tdisplayElement.onclick = flipKeywords;\n\tdisplayElement = document.getElementById(\"vc\");\n\tdisplayElement.onclick = flipVocab;\n\tdisplayElement = document.getElementById(\"trans\");\n\tdisplayElement.onclick = flipTranslation;\n\tdisplayElement = document.getElementById(\"tscript\");\n\tdisplayElement.onclick = flipTranscript;\n\tdisplayElement = document.getElementById(\"act\");\n\tdisplayElement.onclick = flipActivity;\t\n}", "function showContent(name, job, text, url){\r\n $(\".client-img\").attr(\"src\", url);\r\n $(\".client-text\").text(text);\r\n $(\".client-name\").text(name);\r\n $(\".client-job\").text(job);\r\n}", "function display_external_tab_content(scale_title){\n var scaled_result = $(scale_title + \"_results\");\n var chosen_tab = scaled_result.getElementsByClassName('tabberactive')[0];\n var scale_and_type = chosen_tab.childNodes[0].className;\n //the content could come from external search\n if (scale_and_type.match(\"external_result\") != null){\n scale_and_type = scale_and_type.split('external_result')[0];\n var resource_type = scale_and_type.split('_')[1].strip();\n $(resource_type).show();\n }\n\n}", "function display(title) {\n if(title == '<a href=\"#\">Ping-Pong</a>') {\n document.getElementById('main').style.display = \"none\";\n document.getElementById('pong').style.display = \"initial\";\n document.getElementById('leaderboard').style.display = \"none\";\n document.getElementById('feedback').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\"\n document.getElementById('report-bug').style.display = \"none\";\n\n document.getElementById('item-analysis').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\";\n }\n else if(title == '<a href=\"#\">Dashboard</a>') {\n document.getElementById('main').style.display = \"initial\";\n document.getElementById('pong').style.display = \"none\";\n document.getElementById('leaderboard').style.display = \"none\";\n document.getElementById('feedback').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\"\n document.getElementById('report-bug').style.display = \"none\";\n\n document.getElementById('item-analysis').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\";\n }\n else if(title == '<a href=\"#\">Leaderboard</a>') {\n populateLeaderboard(); // takes care of all other display calls\n document.getElementById('feedback').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\"\n document.getElementById('report-bug').style.display = \"none\";\n\n document.getElementById('item-analysis').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\";\n }\n else if(title == '<a href=\"#\">Feedback</a>') {\n document.getElementById('main').style.display = \"none\";\n document.getElementById('pong').style.display = \"none\";\n document.getElementById('leaderboard').style.display = \"none\";\n document.getElementById('feedback').style.display = \"initial\";\n document.getElementById('create-exam').style.display = \"none\"\n document.getElementById('report-bug').style.display = \"none\";\n\n document.getElementById('item-analysis').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\";\n }\n\n else if(title == '<a href=\"#\">Report A Bug!</a>') {\n document.getElementById('main').style.display = \"none\";\n document.getElementById('pong').style.display = \"none\";\n document.getElementById('leaderboard').style.display = \"none\";\n document.getElementById('report-bug').style.display = \"initial\";\n document.getElementById('feedback').style.display = \"none\";\n document.getElementById('create-exam').style.display = \"none\"\n }\n}", "function updateURL(url){\n<<<<<<< Updated upstream\n\t\n\t$(\"li.EXLContainer-recentarticlesTab\").click(function(){\n\t\t\n=======\n\n\t$(\"li.EXLContainer-recentarticlesTab\").click(function(){\n\n>>>>>>> Stashed changes\n\t\trecordid=$(this).parent(\"ul\").parent(\"div\").attr(\"id\");\n\t\tissn= EXLTA_issn(recordid);\n\t\tnewUrl=url+issn;\n\t\tif (EXLTA_isFullDisplay()){\n\t\t\tconsole.log(\"it's full display!!\");\n\t\t\t$(\"div#\"+recordid).parent(\"div\").parent(\"div\").parent(\"div\").find(\".EXLTabHeaderButtonPopout\").children(\"a\").attr(\"href\", newUrl);\n<<<<<<< Updated upstream\n\t\t}\n\t\telse{\n\t\t\t$(\"div#\"+recordid).parent(\"div\").parent(\"td\").find(\".EXLTabHeaderButtonPopout\").children(\"a\").attr(\"href\", newUrl);\n\t\t}\n\t});\n\n=======\n\n\t\t\tif (displayActions==true){\n\t\t\t\tvar actions=$(\"div#\"+recordid).parent(\"div\").parent(\"div\").parent(\"div\").find(\".EXLTabHeaderButtons\").html();\n\t\t\t\t$(\".EXLTabHeaderButtons\").last().html(actions);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$(\"div#\"+recordid).parent(\"div\").parent(\"td\").find(\".EXLTabHeaderButtonPopout\").children(\"a\").attr(\"href\", newUrl);\n\n\t\t\tif (displayActions==true){\n\t\t\t\tvar actions=$(\"div#\"+recordid).parent(\"div\").parent(\"td\").find(\".EXLTabHeaderButtons\").html();\n\t\t\t\t$(\".EXLTabHeaderButtons\").last().html(actions);\n\t\t\t}\n\t\t}", "function displayWebPreview(previewWindowName, filePath, filename) \r\n{\r\n\t$(\"#\" + previewWindowName + \"SlideWebpage\").attr('src', filePath + filename);\r\n\t$(\"#\" + previewWindowName + \"SlideWebpage\").show();\r\n\t$(\"#\" + previewWindowName + \"SlideImage\").hide();\r\n\t$(\"#\" + previewWindowName + \"SlideVideo\").hide();\r\n\t$(\"#nextError\").hide();\r\n\t$(\"#currentError\").hide();\r\n}", "function showUrl(short, full){ \n shortenUrl.style.display = 'block'\n let originalAddress = document.querySelector('#address')\n let shortenAdresss = document.querySelector('#short')\n\n originalAddress.innerHTML = `${full}`\n shortenAdresss.innerHTML = `${short}`\n}", "function displayElement(store, post){\n var ul = document.getElementById(\"featured_links\");\n var li = document.createElement(\"li\");\n var a = document.createElement(\"a\");\n var img = document.createElement(\"img\");\n var p = document.createElement(\"p\");\n \n\ta.setAttribute(\"href\", store[post].url); //Makes picture clickable to link that 'links' is\n\timg.setAttribute(\"src\" , store[post].url);\n\timg.setAttribute(\"id\", \"item\");\n p.innerHTML = \"Tags: \" + store[post].tag;\n p.setAttribute(\"id\", \"description\"); \n \n\ta.appendChild(img);\n\tli.appendChild(a);\n li.appendChild(p); //Makes the p element under the image\n\tul.appendChild(li);\n}", "function ShowLinks(linkId) { console.log(\"sellwood_px: ShowLinks called; this function is not defined in px.\"); }", "function E(obj)\r\n{\r\n\tvar url =nodeUrl;\r\n\tvar pars ='';\r\n\tvar myAjax;\r\n\tvar desObjID=\"N\" + jQuery(obj).attr(\"N\");\r\n\tvar desObj=jQuery(\"#\" + desObjID);\r\n\t\r\n\tswitch(jQuery(obj).attr(\"Ex\"))\r\n\t{\r\n\t\tcase \"P\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"M\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/m.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Fp\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Fm\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/fm.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Lp\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Lm\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/lm.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Rp\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Rm\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/rm.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Tp\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Tm\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/tm.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"\"});\r\n\t\t\tbreak;\r\n\t\tcase \"M\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"P\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/p.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"none\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Fm\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Fp\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/fp.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"none\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Lm\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Lp\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/lp.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"none\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Rm\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Rp\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/rp.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"none\"});\r\n\t\t\tbreak;\r\n\t\tcase \"Tm\":\r\n\t\t\tjQuery(obj).attr(\"Ex\",\"Tp\");\r\n\t\t\tjQuery(obj).attr(\"src\",\"../im/tp.gif\");\r\n\t\t\tjQuery(desObj).css({display:\"none\"});\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak\r\n\t}\r\n\t\r\n\t//Ajax调用(为了让选中和展开成立,Ajax必须是同步的)\r\n\tif( jQuery(desObj).attr(\"A\")==\"0\"){\r\n\t\tvar imgSrcUrl=jQuery(obj).attr(\"src\");\r\n\t\tjQuery(obj).attr(\"src\",\"../im/wait.gif\"); //等待标志(也可以先调用等待标志,当加载完成后,再进行图标的切换)\r\n\t\tvar pars={};\r\n\t\tpars[\"d\"]=new Date();\r\n\t\tjQuery.ajax({\r\n\t\t\ttype:\"GET\"\r\n\t\t\t,url:nodeUrl + jQuery(obj).attr(\"N\")\r\n\t\t\t,data:pars\r\n\t\t\t,async: true \t//true取后台数据过程中有动画效果,但是选中缺省值无效;false可以选中缺省值 \r\n\t\t\t,success:function(m){\r\n\t\t\t\tjQuery(\"#\" + desObjID ).html(m); //从服务器端返回数据\r\n\t\t\t}\r\n\t\t\t,complete:function(){\r\n\t\t\t\tjQuery(obj).attr(\"src\",imgSrcUrl);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjQuery(\"#\" + desObjID).attr(\"A\",\"1\"); //设置已经通过Ajax获取过数据,多次展开/折叠过程中不再重复取数据\r\n\t}\r\n}", "renderUrl() {\n try {\n let valid_url = this.prepareUrl(this.value());\n if (!valid_url) return;\n this.value(valid_url);\n this.source.data.page_url = valid_url;\n uiRegistry.get(ONBOARDING_REGISTRY, onboarding => {\n onboarding.renderIframe(valid_url)\n });\n } catch (error) {\n $(`[name=\"${this.inputName}\"]`).val('').change();\n alert({ title: $.mage.__('Invalid URL, please review your Page Url input.') });\n }\n }", "function myRequestFunction(arr) {\r\n var out = \"\";\r\n var i;\r\n for(i = 0; i < arr.length; i++) {\r\n out += '<a href=\"' + arr[i].url + '\">' + \r\n arr[i].display + '</a><br>';\r\n }\r\n document.getElementById(\"id01\").innerHTML = out;\r\n }", "function showURL(data) {\n if (data.success) {\n cardLinkElem.innerHTML = `<a class=\"twitter-url\" href=${data.cardURL} target=\"_blank\">${data.cardURL}</a>`;\n twitterLink(data.cardURL);\n } else {\n cardLinkElem.innerHTML = 'ERROR: ' + data.error;\n }\n}", "function paymentMethod (element1, element2,element3, display1, display2){\nelement1.style.display = display1;\nelement2.style.display = display1;\nelement3.style.display = display2;\n\n}", "function showUrl(url) {\n url = encodeURI(url);\n var txt = '<a href=\"' + url + '\" target=\"_blank\">' + url + '</a>';\n var element = document.getElementById(SOLR_CONFIG[\"urlElementId\"]);\n element.innerHTML = txt;\n}", "function showUrl(url) {\n url = encodeURI(url);\n var txt = '<a href=\"' + url + '\" target=\"_blank\">' + url + '</a>';\n var element = document.getElementById(SOLR_CONFIG[\"urlElementId\"]);\n element.innerHTML = txt;\n}", "function DisplayModeFunctions() {\r\n hideAnchorImages();\r\n youtubeLinkReplace();\r\n replaceAudioLinkWithEmbed();\r\n replaceEmbedContainerWithCode();\r\n}", "function showURL() {\n SETTINGS.SHOWURL = true;\n setFloatURL(loadedURL);\n}", "function showInputUrl(url) {\n // document.getElementById(\"sharelink\").href= url; \n // document.getElementById(\"sharelink\").innerHTML = url;\n // $('.share-link').show()\n}", "function updateDisplay(ensembles)\n{\n\tif(ensembles == undefined){\n\t\t$(\"alsoModule\").style.display = \"none\";\n\t\t$(\"outfit_link\").style.display = \"none\";\n\t\treturn;\n\t}\n\tif (ensembles.length <= 0 ) {\n\t\t$(\"alsoModule\").style.display = \"none\";\n\t\t$(\"outfit_link\").style.display = \"none\";\n\t\treturn;\n\t}\n\tvar out = document.getElementById(\"thumbs\");\n\tout.innerHTML = \"\";\n\tulElement = createTag('ul', 'alsoModuleContent', 'thumbs clearfix');\n\tfor (var i = 0; i < ensembles.length; i++) {\n\t\tvar image = ensembles[i].img;\n\t\tvar ensemble_id = ensembles[i].id;\n\t\tvar name = ensembles[i].name;\n\t\tvar imgElement = createDOM('img', {'src':'' + image});\n var bodyClassName = document.body.className;\n var aElement;\n if (bodyClassName.match('STANDALONE-PRODUCT-PAGE')){\n var ensembleUrl = getBaseURL() + '/catalog/product.jsp?ensembleId=' + ensemble_id;\n var ebCMCatInfo = $(\"ebCM_CATEGORY_INFO\");\n var categoryInfo = null;\n if (ebCMCatInfo !== null) {\n \tcategoryInfo = $(\"ebCM_CATEGORY_INFO\").value;\n } \n if(categoryInfo == null || categoryInfo == \"null\"){\n \t aElement = createDOM('a', {'href':ensembleUrl, 'alt':'' + name});\n }\n else {\n \t aElement = createDOM('a', {'href':ensembleUrl+categoryInfo, 'alt':'' + name});\n }\n } else {\n aElement = createDOM('a', {'href':'javascript:YAHOO.ebauer.productUtils.completer(\\'' + ensemble_id + '\\')' , 'alt':'' + name});\n }\n aElement.appendChild(imgElement);\n\t\t//var aElement = createDOM('a', {'href':'javascript:YAHOO.ebauer.productUtils.completer(\\'' + ensemble_id + '\\')' , 'alt':'' + name});\n\n\n\t\tvar liElement = '';\n\t\tif (ensemble_id == shownEnsembleId) {\n\t\t\tliElement = createTag('li', 'alsoThumb' + i, 'hot', aElement);\n\t\t} else {\n\t\t\tliElement = createTag('li', 'alsoThumb' + i, 'not', aElement);\n\t\t}\n\t\tulElement.appendChild(liElement);\n\t}\n\tout.appendChild(ulElement);\n}", "function getElementDisplay(Element, state) {\n\toElement = createReference(Element)\n if (!isNav) { elementDisp = oElement.display }\t\t//This function does not work in NAV4!\n\treturn elementDisp\n}", "function image_display() {\r\n\r\n}", "function buildWebPage(result){\n document.getElementById('article').innerHTML = result.description;\n document.getElementById('article-title').innerHTML = result.title;\n}", "_htmlForSiGMLPlayButtons(surl, stext) {\nvar bstext, bstop, bsurl, gap, html, sep;\nif (typeof lggr.debug === \"function\") {\nlggr.debug(`HTMLForAvatarGUI: PlayButtons: URL=${surl}, Text=${stext}`);\n}\nbstop = `<input type=\\\"button\\\" value=\\\"Stop\\\" class=\\\"bttnStop av${this.ix}\\\" />`;\nbsurl = !surl ? \"\" : \"<input type=\\\"button\\\" value=\\\"Play SiGML URL\\\" \" + `class=\\\"bttnPlaySiGMLURL av${this.ix}\\\" />`;\nbstext = !stext ? \"\" : \"<input type=\\\"button\\\" value=\\\"Play SiGML Text\\\" \" + `class=\\\"bttnPlaySiGMLText av${this.ix}\\\" />`;\nsep = \"\";\ngap = \"\";\nif (bsurl.length !== 0 && bstext.length !== 0) {\nsep = \"\\n\";\ngap = \"&nbsp;\";\n}\nreturn html = !surl && !stext ? \"\" : `<span class=\"spanSiGMLCtrlA av${this.ix}\" >\n<!--input type=\"button\" value=\"Play CAS\" class=\"bttnPlayCAS av${this.ix}\" /-->\n${bsurl}${sep}${bstext}\n${gap}\n${bstop}\n</span> <!--class=\"spanSiGMLCtrlA av${this.ix}\"-->`;\n}", "function displayToPage(url) {\n spanEl.innerHTML = `<a id=\"link\" href=\"${url}\" target=\"_blank\" class=\"generated-url-link\">${url}</a>`;\n // Get the anchor link after is generated\n let generatedLink = document.getElementById('link');\n // Style the link with random colors\n generatedLink.style.color = pickRandomColors(arrOfColors);\n}", "function displayInfo(gallery) {\n document.querySelector(\"#galleryName\").innerHTML = gallery.GalleryName;\n document.querySelector(\"#galleryNative\").innerHTML = gallery.GalleryNativeName;\n document.querySelector(\"#galleryAddress\").innerHTML = gallery.GalleryAddress;\n document.querySelector(\"#galleryCity\").innerHTML = gallery.GalleryCity;\n document.querySelector(\"#galleryCountry\").innerHTML = gallery.GalleryCountry;\n\n let website = document.querySelector(\"#galleryWebsite\");\n website.href = gallery.GalleryWebSite;\n website.innerHTML = \"Website\";\n }", "function artistInfoTab() {\n var featureRelId = getUrlVars()['transferId'];\n var userSiteId = getUrlVars()['touchId'];\n var featureId = getUrlVars()['mId'];\n var url = baseUrl + 'web/web/getMenuHtml/' + featureId + '/' + featureRelId + '/' + userSiteId;\n\n var data = '';\n doAjaxCall(url, data, false, function (html) {\n\t\tconsole.log(html);\n if ($.isEmptyObject(html)) {\n $('#main-content').html('Sorry we do not have data');\n } else {\n\t\t \n\t\t\tvar featureName='';\n var backGroundColor, textColor, description,pic;\n $.each(html, function (i, item) {\n backGroundColor = item.globalBackground;\n textColor = item.globalTextColor;\n\t\t\t\tif(item.thumbnail=='')\n\t\t\t\t{\n\t\t\t\tpic='';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\tpic='<img src=\"'+baseUrl+item.thumbnail+'\"width=\"100%\" height=\"80px\"/>'\n\t\t\t\t}\n description= '<div>'+pic+item.description+'</div>';\n featureName = item.featureName;\n\t\t\t\t\n })\n if (description == '') {\n $('#main-content').html('Sorry We Have An Empty Data');\n } else {\n $('#main-content').html(description);\n\t\t\t\tfeatureNameTitle(featureName);\n\t\t\t\n\t\t\t\t getUserAppereance();\n\t\t\t\t\n\t\t\t}\n $('#main-content').css({ 'background-color': '#' + backGroundColor, 'color': '#' + textColor });\n }\n \n });\n}", "function setup_from_url() {\n var flavour = get_qs_value(\"flavour\");\n var p0 = get_qs_value(\"pin-0\");\n var p1 = get_qs_value(\"pin-1\");\n var p2 = get_qs_value(\"pin-2\");\n var p3v = get_qs_value(\"pin-3v\");\n var pgnd = get_qs_value(\"pin-gnd\");\n var image = get_qs_value(\"image\");\n var message = get_qs_value(\"scroll\");\n var repeat = get_qs_value(\"repeat\");\n var embed = get_qs_value(\"embed\");\n if(flavour) {\n set_flavour(flavour);\n }\n if(p0) {\n crocodile('pin-0', true);\n }\n if(p1) {\n crocodile('pin-1', true);\n }\n if(p2) {\n crocodile('pin-2', true);\n }\n if(p3v) {\n crocodile('pin-3v', true);\n }\n if(pgnd) {\n crocodile('pin-gnd', true);\n }\n if(image) {\n if(images[image]) {\n show(images[image]);\n } else {\n show(font[image])\n }\n } else if(message) {\n if(repeat) {\n scroll_text(decodeURIComponent(message), 100, true);\n } else {\n scroll_text(decodeURIComponent(message));\n }\n }\n}", "function displayImage(img) {\n\tdisplay.querySelector('img').setAttribute('src', img.getAttribute('src').replace('small', 'large'));\n\tdisplay.querySelector('img').setAttribute('alt', img.getAttribute('alt'));\n\tdisplay.querySelector('h3').innerHTML = img.getAttribute('title');\n\tdisplay.querySelector('a').href = img.getAttribute('url');\n\tdisplay.querySelector('figcaption').innerHTML = img.getAttribute('alt');\n}", "function displayData(data){\n\tlet display_with_poster = `\n\t\t\t<a href=\"${data.id}\" class=\"moreInfo\">\n\t\t\t<img class=\"poster\" src=\"http://image.tmdb.org/t/p/w500/${data.poster_path}\">\n\t\t\t<h3 class=\"title\">${data.title}</h3>\n\t\t\t</a>\n\t\t\t<p class=\"year\">${data.release_date}</p>\n\t\t\t`\n\tlet display_no_poster = `\n\t\t\t<a href=\"${data.id}\" class=\"moreInfo\">\n\t\t\t<img class=\"poster\" src=\"img/no_poster.png\">\n\t\t\t<a href=\"${data.id}\">\n\t\t\t<h3 class=\"title\">${data.title}</h3>\n\t\t\t</a>\n\t\t\t<p class=\"year\">${data.release_date}</p>\n\t\t\t`\n\tif(data.poster_path === null){\n\t\t$(`.movie${data.id}`).html(display_no_poster);\n\t}\n\telse{\n\t\t$(`.movie${data.id}`).html(display_with_poster);\n\t}\n}", "function myDisplay(drinkName) {\n results.innerHTML = (drinkName);\n if (drinkName == 'Rusty Nail') {\n resultsImage.src = \"img/rusty-nail.jpg\";\n submitSlide.style.display = 'none';\n next.style.display = 'none';\n prev.style.display = 'none';\n }\n else {\n\n }\n\n if (drinkName == 'Screw Driver') {\n resultsImage.src = \"img/screw-driver.jpg\";\n submitSlide.style.display = 'none';\n next.style.display = 'none';\n prev.style.display = 'none';\n } else {\n\n }\n\n if (drinkName == 'Hawaiian Hammer') {\n resultsImage.src = \"img/hawaiian.jpg\";\n submitSlide.style.display = 'none';\n next.style.display = 'none';\n prev.style.display = 'none';\n } else {\n\n }\n\n if (drinkName == 'Cement Mixer') {\n resultsImage.src = \"img/cement-mixer.jpg\";\n submitSlide.style.display = 'none';\n next.style.display = 'none';\n prev.style.display = 'none';\n } else {\n\n }\n\n}", "function display(URL) {\n /* First, delete any existing links, with jQuery. */\n $(\"a\").remove();\n\n /* Create a box for the link with the URL as an attribute. */\n var urlBox = document.createElement('a');\n urlBox.setAttribute(\"id\", \"urlContainer\")\n urlBox.setAttribute(\"href\", URL);\n urlBox.innerHTML = \"I\\'m feeling lucky\";\n document.body.appendChild(urlBox);\n\n /* Function to define what happens when you click the link.\n Here, it opens it in the same tab. */\n document.getElementById(\"urlContainer\").onclick = function() {\n // Select the div. \n var urlBox = document.getElementById(\"urlContainer\");\n if (urlBox[\"href\"]) {\n /* Update the current tab to have the desired url. */\n /* First, get current tab. */\n chrome.tabs.query({'active' : true}, function() {\n /* Then, update its URL to the machine learning one. */\n chrome.tabs.update({url : urlBox[\"href\"]});\n });\n }\n }\n}", "function extCall(){\n\t// external_uri\n\t//var nullElement = new Element();\n\t//$('ext').load(external_uri);\n\t//var myHTMLRequest = new Request.HTML().get(external_uri);\n}", "function linkDisplay (numLinks,urlList) {\r\n let i = 0;\r\n console.log(urlList);\r\n while( i < numLinks ) {\r\n let link = 'link:'+(i+1);\r\n let url = urlList[i];\r\n let linkLocation = document.getElementById(link);\r\n linkLocation.innerHTML = url;\r\n linkLocation.setAttribute('href',url);\r\n linkLocation.setAttribute('target','_blank');\r\n i++;\r\n }\r\n}", "function display_advertise_images() {\n}", "function updateDisplay(elem){\n \n activeContent = elem.innerHTML.replace(/<.+?>/g,\"\");\n if(activeContent == \"profiles\"){\n activeContent = \"SearchSpan\"\n toggle_visibility(\"SearchSpan\", \"SEARCHdiv\");\n } else if (activeContent == \"barplot\"){\n toggle_visibility(\"barplot\", \"VISUALIZEdiv\")\n } \n }", "function Display_showGameElements() {\n\tvar displayContent = document.getElementById(\"displayContent\");\n\n\tvar inputToCrib = document.createElementNS(this.xhtmlns, \"input\");\n\tinputToCrib.setAttribute(\"id\", \"inputToCrib\");\n\tinputToCrib.setAttribute(\"type\", \"button\");\n\tinputToCrib.setAttribute(\"value\", \"To Crib\");\n\tinputToCrib.setAttribute(\"onclick\", \"toCrib();\");\n\n\tvar inputPlay = document.createElementNS(this.xhtmlns, \"input\");\n\tinputPlay.setAttribute(\"id\", \"inputPlay\");\n\tinputPlay.setAttribute(\"type\", \"button\");\n\tinputPlay.setAttribute(\"value\", \"Play card\");\n\n\tdisplayContent.appendChild(inputToCrib);\n\tdisplayContent.appendChild(inputPlay);\n\n\t// Show deck and stack\n\tthis.createCard(null, 490, 10, 120, false);\n\tthis.createCard(null, 620, 10, 120, false);\n\n\t// Display count\n\tvar spanCountHeader = document.createElementNS(this.xhtmlns, \"span\");\n\tspanCountHeader.setAttribute(\"id\", \"spanCountHeader\");\n\tspanCountHeader.appendChild(document.createTextNode(\"Curent Play Count:\"));\n\n\tvar spanCount = document.createElementNS(this.xhtmlns, \"span\");\n\tspanCount.setAttribute(\"id\", \"spanCount\");\n\tspanCount.appendChild(document.createTextNode(\"0\"));\n\n\tvar whosCrib = document.createElementNS(this.xhtmlns, \"img\");\n\twhosCrib.setAttribute(\"id\", \"whosCrib\");\n\twhosCrib.setAttribute(\"src\", \"img/crib.png\");\n\n\tdisplayContent.appendChild(whosCrib);\n\tdisplayContent.appendChild(spanCountHeader);\n\tdisplayContent.appendChild(spanCount);\n}", "function displayCard(url) {\n let curr_card = $(`<img src=${url}>`)\n pile.append(curr_card)\n}", "function prepareToShow() {}", "function show_info(el)\n{\n document.getElementById(\"infoind\").style.visibility = 'visible';\n \n $(\"a[class = list]\").css('color', 'blue');\n $(\"a[class = list]\").css('font-weight', 'normal');\n $('#scholarshipinfo').load(\"requestuser.php?info=\" + el.attr('value'), function(){\n el.css('color', '#2D2D5A');\n el.css('font-weight', 'bold');\n });\n}", "function display() {\n\treturn {\n\t\tdisplayStores: function() {\n\t\t\tfor (var i = 0; i < stores.length; i++) {\n\t\t\t\t$('<a class=\"storeLink\"></a>').appendTo('#mainDiv').append($('<img>').attr('src', stores[i].src))\n\t\t\t}\n\n\t\t\t$('.storeLink').click(function() {\n\t\t\t\tnewPage();\n\t\t\t\t\tfor (var i = 0; i < products.length; i++) {\n\t\t\t\t\t\t$('#mainDiv').append($('<a id=\"productLink\"></a>')\n\t\t\t\t\t\t.append($('<img>').attr('src', products[i].src))).append(products[i].name + '\\n' + products[i].price + '\\n' + products[i].size, $('<input type=\"checkbox\">').attr('id',i))\n\t\t\t\t\t}\n\n\t\t\t\t$('#mainDiv').append(\n\t\t\t\t buttons()\n\t\t\t\t)\n\t\t\t});\n\t\t},\n\n\t\tdisplayMen: function() {\n\t\t\tnewPage();\n\t\t\tfor (var i = 0; i < products.length; i++) {\n\t\t\t\tif (products[i].cat === 'men') {\n\t\t\t\t\tconsole.log(i)\n\t\t\t\t\t$('#mainDiv').append($('<a id=\"productLink\"></a>')\n\t\t\t\t\t.append($('<img>').attr('src', products[i].src))).append(products[i].name + '\\n' + products[i].price + '\\n' +products[i].size)\n\t\t\t\t\t.append($('<input type=\"checkbox\">').attr('id', i))\n\t\t\t\t\t.append(buttons());\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tdisplayWomen: function() {\n\t\t\tnewPage();\n\t\t\tfor (var i = 0; i < products.length; i++) {\n\t\t\t\tif (products[i].cat === 'women') {\n\t\t\t\t\t$('#mainDiv').append($('<a id=\"productLink\"></a>')\n\t\t\t\t\t.append($('<img>').attr('src', products[i].src))).append(products[i].name + '\\n' + products[i].price + '\\n' +products[i].size)\n\t\t\t\t\t.append($('<input type=\"checkbox\">').attr('id', i))\n\t\t\t\t\t.append(buttons());\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tdisplayKids: function() {\n\t\t\tnewPage();\n\t\t\tfor (var i = 0; i < products.length; i++) {\n\t\t\t\tif (products[i].cat === 'kids') {\n\t\t\t\t\t$('#mainDiv').append($('<a id=\"productLink\"></a>')\n\t\t\t\t\t.append($('<img>').attr('src', products[i].src))).append(products[i].name + '\\n' + products[i].price + '\\n' +products[i].size)\n\t\t\t\t\t.append($('<input type=\"checkbox\">').attr('id', i))\n\t\t\t\t\t.append(buttons());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "function displayLinks() {\n $('[data-type=gallery] .image').each(function(index, item) {\n const link = $('a', item.parentNode);\n if (!link.get(0)) return;\n\n item = $(item);\n item.addClass('clickable');\n item.data('href', link.attr('href'));\n item.on('click', goto_article);\n });\n\n function goto_article(event) {\n let el = event.currentTarget;\n window.location = $(el).data('href');\n }\n}", "function buildIWContentApi(place) {\n if (place.icon) {\n document.getElementById('iw-icon').innerHTML = '<img class=\"hotelIcon\" ' +\n 'src=\"' + place.icon + '\"/>';\n }\n document.getElementById('iw-url').innerHTML = '<b>' + place.name + '</b>';\n document.getElementById('iw-address').textContent = place.address;\n\n if (place.phone) {\n document.getElementById('iw-phone-row').style.display = '';\n document.getElementById('iw-phone').textContent =\n place.phone;\n } else {\n document.getElementById('iw-phone-row').style.display = 'none';\n }\n\n // Assign a five-star rating to the hotel, using a black star ('&#10029;')\n // to indicate the rating the hotel has earned, and a white star ('&#10025;')\n // for the rating points not achieved.\n if (place.rating) {\n var ratingHtml = '';\n for (var i = 0; i < 5; i++) {\n if (place.rating < (i + 0.5)) {\n ratingHtml += '&#10025;';\n } else {\n ratingHtml += '&#10029;';\n }\n document.getElementById('iw-rating-row').style.display = '';\n document.getElementById('iw-rating').innerHTML = ratingHtml;\n }\n } else {\n document.getElementById('iw-rating-row').style.display = 'none';\n }\n\n // The regexp isolates the first part of the URL (domain plus subdomain)\n // to give a short URL for displaying in the info window.\n if (place.website) {\n var hostnameRegexp = new RegExp('^https?://.+?/');\n var fullUrl = place.website;\n var website = hostnameRegexp.exec(place.website);\n if (website === null) {\n website = 'http://' + place.website + '/';\n fullUrl = website;\n }\n document.getElementById('iw-website-row').style.display = '';\n document.getElementById('iw-website').textContent = website;\n } else {\n document.getElementById('iw-website-row').style.display = 'none';\n }\n}", "getProjectUrlElement () {\n const url = this.props.url;\n if (!url) {\n return null;\n }\n\n if (!url.urlTarget) {\n return <p>{url.urlDisplay}</p>;\n }\n\n return <p><a href={url.urlTarget} target=\"_blank\">{url.urlDisplay}</a></p>;\n }", "function imageDisplay() {\n var color = imageColor();\n var captionColor = color;\n captionColor = color.replace(/_/g, \" \").replace('solid', '');\n var captionProduct = name.replace('<br>', '&nbsp;');\n var caption = (captionColor+\" \"+captionProduct).replace(/(^|\\s)\\S/g, function(match) {\n return match.toUpperCase();\n });\n var img_source = \"../../images/products/\"+img+color+\".gif\";\n var lightbox_img = \"../../images/products/large/\"+img+color+\".gif\";\n var lightbox_img_back = \"../../images/products/back/large/\"+img+color+\".gif\";\n $('#product_img_front').attr('src', img_source);\n $('#product_img_front_large').attr('src', lightbox_img);\n $('#product_img_back_large').attr('src', lightbox_img_back);\n $('#product_img_front').parent().attr('href', lightbox_img).attr('data-lightbox', img+color).attr('title', caption);\n $('#product_img_back').attr('href', lightbox_img_back).attr('data-lightbox', img+color).attr('title', caption+' (Back)');\n}", "function edLink(display, URL, newWin) {\n\tthis.display = display;\n\tthis.URL = URL;\n\tif (!newWin) {\n\t\tnewWin = 0;\n\t}\n\tthis.newWin = newWin;\n}", "function displayBrowseCards(jsonResult, displayUnfollow) {\n\n var nickName = jsonResult.nickName;\n var description = jsonResult.description;\n var avatarImg = _getDefaultAvatar(jsonResult.avatar);\n\n var address = jsonResult.address;\n\n var creationTimeStamp = new Date(jsonResult.creation_time_stamp);\n var reputationPositive = jsonResult.reputation_positive;\n var reputationNegative = jsonResult.reputation_negative;\n var numberFollowers = jsonResult.number_followers;\n\n var localDateStr = creationTimeStamp.toLocaleDateString();\n\n\n\n\n var icon = blockies.create({\n seed: address.toLowerCase(),\n\n });\n\n var unfollow = \"\";\n if (displayUnfollow === true) {\n unfollow = `<div class=\"mt-5 browse-user-link\">\n <button type=\"button\" class=\"btn btn-warning btn-sm\" onclick=\"unfollow('` + address + `')\"><span ><i class=\"fa fa-ban fa-lg\" style=\"color:red\"></i> Unfollow</span></button>\n </div>`\n}\n\n\n\nvar userBlock = `<div class=\"row display-style container\">\n <div class=\"col-sm\">\n<div class=\"media\">\n<a href=\"#\" class=\"browse-user-link\" onclick=\"displayUserPage('` + nickName + `')\"; return false;>\n <img class=\"mr-3\" src=\"` + avatarImg + `\" height=\"100\" width=\"100\">\n </a>\n <div class=\"media-body browse-user-link\">\n <a href=\"#\" onclick=\"displayUserPage('` + nickName + `')\">\n <h5 class=\"mt-0\" style=\"color:black;\">` + nickName + `</h5>\n <span>` + description + `</span>\n\n <div class=\"media browse-user-link\" style=\"margin-left: -2rem; margin-top: -1em;\">\n <a class=\"align-self-start\" href=\"#\" onclick=\"displayUserPage('` + nickName + `')\">\n <img class=\"align-self-start\" src=\"` + icon.toDataURL() + `\">\n </a>\n <div class=\"media-body browse-user-link\">\n <a href=\"#\" class=\"browse-user-link\" onclick=\"displayUserPage('` + nickName + `')\"; return false;>\n <span class=\"mt-2\">` + address + `</span>\n </a>\n </div>\n </div>\n </a>\n\n </div>\n</div>\n</div>\n<div class=\"col-sm\">\n <ul style=\"list-style:none;\">\n<li><i class=\"fa fa-heart fa-lg ml-2\" style=\"color:#FF69B4\"></i> ` + numberFollowers +\n` <i class=\"fa fa-smile-o fa-lg ml-2\" ></i> ` + reputationPositive +\n` <i class=\"fa fa-frown-o fa-lg ml-2\" ></i> ` + reputationNegative + ` </li>\n<li>` + localDateStr + `</li> ` + unfollow + `\n\n\n</ul>\n\n</div>\n\n</div><hr>`;\n\nreturn userBlock;\n\n\n\n}", "function displaySelectedCUHybridPortfolioCompTab(){\n var url = parent.location.href;\n s=url.indexOf(\"summary\");\n if (s!=-1){\n obj= document.getElementById('summary-li');\n if(obj){\n document.getElementById('summary').style.display=\"\";\n }\n }\n if (url.indexOf(\"basiccontrol\")!=-1){\n obj= document.getElementById('basiccontrol-li');\n if(obj){\n document.getElementById('basiccontrol').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"cprating\")!=-1){\n obj= document.getElementById('cprating-li');\n if(obj){\n document.getElementById('cprating').style.display=\"\";\n }\n }\n if (url.indexOf(\"auditreadyasmt\")!=-1){\n obj= document.getElementById('auditreadyasmt-li');\n if(obj){\n document.getElementById('auditreadyasmt').style.display=\"\";\n }\n }\n if (url.indexOf(\"riskmsdcommit\")!=-1){\n obj= document.getElementById('riskmsdcommit-li');\n if(obj){\n document.getElementById('riskmsdcommit').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"auditreview\")!=-1){\n obj= document.getElementById('auditreview-li');\n if(obj){\n document.getElementById('auditreview').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"kctest\")!=-1){\n obj= document.getElementById('kctest-li');\n if(obj){\n document.getElementById('kctest').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"opmetric\")!=-1){\n obj= document.getElementById('opmetric-li');\n if(obj){\n document.getElementById('opmetric').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"accountrating\")!=-1){\n obj= document.getElementById('accountrating-li');\n if(obj){\n document.getElementById('accountrating').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"other\")!=-1){\n obj= document.getElementById('other-li');\n if(obj){\n document.getElementById('other').style.display=\"\";\n }\n }\n}", "function displayWhosPlaying(element){\n var artist = $(element).attr('data-artist');\n var album = $(element).attr('data-album');\n var song = $(element).attr('data-song');\n var href = $(element).attr('data-artisturl');\n var slug = $(element).attr('data-artistslug');\n $('#now_playing').html(\"<a data-artistname='\"+artist+\"' href='/#/show/\" + slug + \"' class='ajax_link' rel='\"+ href +\"'>\" + artist + \" / \" + album + \" / \" + song + \"</a>\");\n }", "function showPic(whichPic) {\n 'use strict';\n if (!document.getElementById(\"placeholder\")) return true;\n //getting the variables for placeholder and image\n var source = whichPic.getAttribute(\"href\");\n var placeholder = document.getElementById(\"placeholder\");\n //changes the source of the placeholder image\n placeholder.setAttribute(\"src\", source);\n\n if (!document.getElementById(\"description\")) return false;\n //getting the title of the image and writing it to the page.\n if (whichPic.getAttribute(\"title\")) {\n var text = whichPic.getAttribute(\"title\");\n } else {\n var text = \"\";\n }\n var description = document.getElementById(\"description\");\n if (description.firstChild.nodeType == 3) {\n description.firstChild.nodeValue = text;\n }\n return false;\n}", "function displayEachEntry(entry) {\n // create variable with render html function and entry as parameter\n const eachEntry = renderEachEntry(entry);\n $(\".landing-page\").prop(\"hidden\", true);\n $(\".main-nav-bar\").prop(\"hidden\", true);\n // select main-area class div and html method that holds variable from above\n $(\".main-area\").html(eachEntry);\n}", "function loadImageDetails(){\n $(\".image-url\").text(`URL: ${displayedImg.url}`);\n $(\".image-id\").text(`ID: ${displayedImg.id}`);\n $(\".image-author\").text(`Author: ${displayedImg.author}`)\n}", "function urlReader() {\n ajxStore.urlBuild.imgLink = $(\"#url-value\").val();\n myDataRef.push({url: ajxStore.urlBuild.imgLink});\n showImg(ajxStore.urlBuild.imgLink);\n ajxStore.urlBuild.encodedURL = encodeURIComponent(ajxStore.urlBuild.imgLink); \n alchemyAjax();\n projectOxfordAjax();\n skyAjax();\n }", "function showdetailstask(itemGuid, element) {\n var $thea = $(element);\n var $idlist = $($thea.attr(\"data-otf-target\"))\n $idlist.load($thea.attr(\"data-otf-action\") + \"?itemguid=\" + itemGuid)\n}", "function displayInfo(html) {\n infoElement.innerHTML = html;\n show(infoElement);\n}", "function prepareHelp() {\r\n // find all elements with class name helpPop in the DOM\r\n var l = getElementsByClassAttribute('a', 'helpPopUp');\r\n // for each element find the value of the 'href' - store temporarily.\r\n for (i = 0; i < l.length; i++) {\r\n if (l[i].href !== '') {\r\n l[i].href;\r\n // add an onclick function to the element with the\r\n // href as an argument when calling function openWindow.\r\n l[i].onclick = function (i) {\r\n var url = l[i].href;\r\n return function (e) {\r\n openWindow(url);\r\n return false;\r\n }\r\n } (i);\r\n // set href to nothing\r\n l[i].href = '';\r\n }\r\n }\r\n }", "function addImageToScreen(myURL) {\n\n}", "function displayArticle() {\n\n var article = $(this).attr(\"article-name\");\n var queryURL = 'https://api.nytimes.com/svc/search/v2/articlesearch.json?q=' + articleRequest + '=election&api-key=LYzWgxYCysNiAmcwGN5cXJnHCfBcsUYR'\n }", "function display(){\r\n\r\n \r\n}", "function ShowPreview() {\r\n\r\n var allElements, thisElement;\r\n allElements = document.evaluate(\"//table\", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);\r\n\r\n var lastCont;\r\n var cont;\r\n var searchSite = contains(self.location.href.toLowerCase(), \"search\");\r\n // needed, because we just want to let that happens in searches\r\n var change = false;\r\n\r\n for(var i = 0; i < allElements.snapshotLength; i++) {\r\n thisElement = allElements.snapshotItem(i);\r\n\r\n if(contains(thisElement.innerHTML, \"Englischer Name\")) {\r\n lastCont = cont;\r\n cont = thisElement;\r\n }\r\n }\r\n\r\n var innerHTML = \"\" + cont.innerHTML;\r\n var splits = innerHTML.split(\"<tr\");\r\n\r\n var table = document.createElement(\"table\");\r\n table.setAttribute(\"rules\", \"none\");\r\n table.setAttribute(\"frame\", \"void\");\r\n var maxCards = 5;\r\n var counter = -1;\r\n var tr = document.createElement(\"tr\");\r\n\r\n for(var i = splits.length - 1; i > 1; i--) {\r\n counter++;\r\n\r\n if(counter == maxCards) {\r\n table.appendChild(tr);\r\n tr = document.createElement(\"tr\");\r\n counter = 0;\r\n }\r\n\r\n var td = document.createElement(\"td\");\r\n if(counter == 0) {\r\n td.setAttribute(\"align\", \"right\");\r\n } else if(counter == maxCards - 1) {\r\n td.setAttribute(\"align\", \"left\");\r\n } else {\r\n td.setAttribute(\"align\", \"center\");\r\n }\r\n\r\n var tds = splits[i].split(\"<td\");\r\n var card = document.createElement(\"a\");\r\n var info = '';\r\n\r\n for(var j = 0; j < tds.length; j++) {\r\n if(contains(tds[j], \"cardThumbnail\")) {\r\n link = tds[j].split(\"'\")[1];\r\n img = document.createElement(\"img\");\r\n img.setAttribute(\"src\", link);\r\n img.setAttribute(\"height\", 300);\r\n card.appendChild(img);\r\n change = true;\r\n } else if(contains(tds[j], \"expansionIcon\")) {\r\n text = tds[j].split(\"'\")[1];\r\n info += \"Expansion: \" + text + \"<br>\";\r\n } else if(contains(tds[j], \"cardrarityicons\")) {\r\n text = tds[j].split(\"'\")[1];\r\n info += \"Rarity: \" + text + \"<br>\";\r\n } else if(contains(tds[j], \"href\")) {\r\n var links = tds[j].split(\"\\\"\");\r\n for(var k = 0; k < links.length; k++) {\r\n if(contains(links[k], \"prod\")) {\r\n var text = \"http://www.magickartenmarkt.de/\" + links[k];\r\n card.setAttribute(\"href\", text);\r\n text = tds[j].split(\">\")[2].split(\"<\")[0];\r\n\r\n var index = searchSite ? 4 : 3;\r\n info += j == index ? \"Englischer Name: \" : \"Deutscher Name: \";\r\n info += text + \"<br>\";\r\n break;\r\n }\r\n }\r\n }\r\n text = tds[j].split(\">\")[1].split(\"<\")[0];\r\n text = text == \" \" || text == \"\" ? \"0\" : text;\r\n\r\n if(searchSite) {\r\n if(j == 6) {\r\n info += \"Typ: \" + text + \"<br>\";\r\n } else if(j == 7) {\r\n info += \"Verfügbar: \" + text + \"<br>\";\r\n } else if(j == 8) {\r\n info += \"Ab: \" + text + \"<br>\";\r\n }\r\n } else {\r\n if(j == 7) {\r\n info += \"Verfügbar: \" + text + \"<br>\";\r\n } else if(j == 8) {\r\n info += \"Ab: \" + text + \"<br>\";\r\n }\r\n }\r\n }\r\n card.setAttribute(\"onmouseover\", \"showMsgBox(\\\"\" + info + \"\\\")\");\r\n card.setAttribute(\"onmouseout\", \"hideMsgBox()\");\r\n td.appendChild(card);\r\n tr.appendChild(td);\r\n\r\n }\r\n\r\n if(!change)\r\n return;\r\n\r\n cont.parentNode.insertBefore(table, cont.nextSibling);\r\n cont.parentNode.removeChild(cont);\r\n}", "function showPic(whichpic) { //function named and argument given\n if (!document.getElementById(\"placeholder\")) return true; //if no placeholder then open image as link (onclick + onkeypress only)\n \n if (whichpic.getAttribute(\"title\")) { //get decription for new image\n var text = whichpic.getAttribute(\"title\");\n }\n else {\n var text = \"\"; //or no text if image doesn't have a description in it's title\n }\n \n var source = whichpic.getAttribute(\"href\"); //get the new source\n var placeholder = document.getElementById(\"placeholder\"); //find the placeholder\n if (placeholder.nodeName != \"IMG\") return true; //make sure placeholder is an image otherwise allow link to load image in new page\n placeholder.setAttribute(\"src\",source); //otherwise replace placeholder with new\n \n var description = document.getElementById(\"description\"); //find the description\n if (description.firstChild.nodeType == 3) {\n description.firstChild.nodeValue = text; //now replace it so long as nodetype is a text_node\n }\n \n return false; //stop new page from loading\n}", "function displaySelectedCUPortfolioCompTab(){\n var url = parent.location.href;\n s=url.indexOf(\"summary\");\n if (s!=-1){\n obj= document.getElementById('summary-li');\n if(obj){\n document.getElementById('summary').style.display=\"\";\n }\n }\n if (url.indexOf(\"basiccontrol\")!=-1){\n obj= document.getElementById('basiccontrol-li');\n if(obj){\n document.getElementById('basiccontrol').style.display=\"\";\n }\n }\n if (url.indexOf(\"auditreadyasmt\")!=-1){\n obj= document.getElementById('auditreadyasmt-li');\n if(obj){\n document.getElementById('auditreadyasmt').style.display=\"\";\n }\n }\n if (url.indexOf(\"riskmsdcommit\")!=-1){\n obj= document.getElementById('riskmsdcommit-li');\n if(obj){\n document.getElementById('riskmsdcommit').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"auditreview\")!=-1){\n obj= document.getElementById('auditreview-li');\n if(obj){\n document.getElementById('auditreview').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"kctest\")!=-1){\n obj= document.getElementById('kctest-li');\n if(obj){\n document.getElementById('kctest').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"opmetric\")!=-1){\n obj= document.getElementById('opmetric-li');\n if(obj){\n document.getElementById('opmetric').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"accountrating\")!=-1){\n obj= document.getElementById('accountrating-li');\n if(obj){\n document.getElementById('accountrating').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"other\")!=-1){\n obj= document.getElementById('other-li');\n if(obj){\n document.getElementById('other').style.display=\"\";\n }\n }\n}", "function displayContent(tag) {\n\t\n\tvar pagedisplay = document.getElementsByClassName(\"pagedisplay\")[0];\n\t\n\tswitch(tag) {\n\t\tcase \"updateadmin\":\n\t\t\tvar admin = getAdmin();\n\t\t\temptyDiv(\"pagedisplay\");\n\t\t\tpagedisplay.appendChild(admin);\n\t\t\tgetAdminValues().then(function(success) {\n\t\t\t\tdocument.getElementsByName(\"adminemail\")[0].placeholder = success;\n\t\t\t}, function(error) { /* none */ });\n\t\t\tbreak;\n\t\tcase \"updatemembers\":\n\t\t\tvar members = getMembers();\n\t\t\temptyDiv(\"pagedisplay\");\n\t\t\tpagedisplay.appendChild(members);\n\t\t\tbreak;\n\t\tcase \"updateprojects\":\n\t\t\tvar projects = getProjects();\n\t\t\temptyDiv(\"pagedisplay\");\n\t\t\tpagedisplay.appendChild(projects);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n}", "function displayTechChannels(num){\r\n\r\nif (num==\"502\"){\r\n document.MobWire.src=block502.src;\r\n document.CarrierServ.src=block503.src;\r\n document.BBAccess.src=block505.src;\r\n document.NetInfra.src=block507.src;\r\n document.BackOff.src=block509.src;\r\n document.Topics.src=block511.src;\r\n\r\n document.SponsoredBy.src=block551.src;\r\n document.Sponsor.src=block561.src; \r\n\r\n}else if (num==\"504\"){\r\n document.MobWire.src=block501.src;\r\n document.CarrierServ.src=block504.src;\r\n document.BBAccess.src=block505.src;\r\n document.NetInfra.src=block507.src;\r\n document.BackOff.src=block509.src;\r\n document.Topics.src=block511.src;\r\n \r\n document.SponsoredBy.src=block552.src;\r\n document.Sponsor.src=block562.src;\r\n \r\n \r\n}else if (num==\"506\"){\r\n document.MobWire.src=block501.src;\r\n document.CarrierServ.src=block503.src;\r\n document.BBAccess.src=block506.src;\r\n document.NetInfra.src=block507.src;\r\n document.BackOff.src=block509.src;\r\n document.Topics.src=block511.src;\r\n \r\n document.SponsoredBy.src=block553.src;\r\n document.Sponsor.src=block563.src;\r\n \r\n \r\n }else if (num==\"508\"){\r\n document.MobWire.src=block501.src;\r\n document.CarrierServ.src=block503.src;\r\n document.BBAccess.src=block505.src;\r\n document.NetInfra.src=block508.src;\r\n document.BackOff.src=block509.src;\r\n document.Topics.src=block511.src;\r\n \r\n document.SponsoredBy.src=block554.src;\r\n document.Sponsor.src=block564.src; \r\n \r\n }else if (num==\"510\"){\r\n document.MobWire.src=block501.src;\r\n document.CarrierServ.src=block503.src;\r\n document.BBAccess.src=block505.src;\r\n document.NetInfra.src=block507.src;\r\n document.BackOff.src=block510.src;\r\n document.Topics.src=block511.src;\r\n\r\n document.SponsoredBy.src=block555.src;\r\n document.Sponsor.src=block565.src;\r\n\r\n \r\n //All Topics rollover\r\n \r\n }else if (num==\"512\"){\r\n document.MobWire.src=block501.src;\r\n document.CarrierServ.src=block503.src;\r\n document.BBAccess.src=block505.src;\r\n document.NetInfra.src=block507.src;\r\n document.BackOff.src=block509.src;\r\n document.Topics.src=block512.src;\r\n \r\n document.SponsoredBy.src=block556.src;\r\n document.Sponsor.src=block566.src;\r\n \r\n \r\n//Mouse Off function \r\n}else if (num==\"599\"){\r\n document.MobWire.src=block501.src;\r\n document.CarrierServ.src=block503.src;\r\n document.BBAccess.src=block505.src;\r\n document.NetInfra.src=block507.src;\r\n document.BackOff.src=block509.src;\r\n document.Topics.src=block511.src;\r\n \r\n document.SponsoredBy.src=block550.src;\r\n document.Sponsor.src=block560.src;\r\n}\r\n}", "function createURL() {\n // hide the selections\n selectionBlock.style.display = \"none\";\n\n // check if both have anything selected\n if (selectedCategory.value !== \"\" && selectedDifficulty.value !== \"\") {\n api =\n \"https://opentdb.com/api.php?amount=10&category=\" +\n selectedCategory.value +\n \"&difficulty=\" +\n selectedDifficulty.value +\n \"&type=multiple\";\n // check if there is a category selected\n } else if (selectedCategory.value !== \"\" && selectedDifficulty.value === \"\") {\n api =\n \"https://opentdb.com/api.php?amount=10&category=\" +\n selectedCategory.value +\n \"&type=multiple\";\n // check if there is a difficulty selected\n } else if (selectedDifficulty.value !== \"\" && selectedCategory.value === \"\") {\n api =\n \"https://opentdb.com/api.php?amount=10&difficulty=\" +\n selectedDifficulty.value +\n \"&type=multiple\";\n }\n\n // get content from API\n loadContent();\n}", "function showLinks() {\n //console.log(window.location.href);\n returnvalue = value.split(\"$$\");\n document.getElementById('transaction').value = returnvalue[0];\n chrome.tabs.get(tabid, function (tab) {\n var tabUrl = tab.url;\n var contentToLookFor = \"https://\";\n var pos1 = tabUrl.indexOf(contentToLookFor);\n var posEnd = pos1 + contentToLookFor.length + 45; //random number.\n var strExtract = tabUrl.substring(pos1, posEnd);\n //console.log(strExtract);\n var newPos1 = contentToLookFor.length;\n var newPosEnd = strExtract.indexOf(\".big\");\n companyname = strExtract.substring(newPos1, newPosEnd);\n //console.log(companyname);\n });\n if (returnvalue[0].indexOf(\"Not\") != -1) {\n document.getElementById('xmlview').disabled = \"disabled\";\n }\n transactionid = returnvalue[0];\n processid = returnvalue[1];\n}", "function appendSimpleWorksToElement(simpleWorks, elementID){\n\t\tsimpleWorks.forEach(function(obj){\t\t\t\n\t\t\tif ( obj.URL ){\n\t\t\t\tdocument.getElementById(elementID).innerHTML += \"<li><a href='\" + obj.URL + \"'>\"+ obj.title + \" - (\" + obj.identifierType +\":\"+ obj.ID +\")</a></li>\";\t\n\t\t\t} else {\n\t\t\t\tdocument.getElementById(elementID).innerHTML += \"<li>\"+ obj.title + \" - (\" + obj.identifierType +\":\"+ obj.ID +\")</li>\";\t\n\t\t\t}\n\t\t});\n\t}", "function pageDisplay(iteration) {\n // save the info from this iteration in the appendages array\n var title = appendages[iteration].title;\n var intro = appendages[iteration].intro;\n var link = appendages[iteration].link;\n var video = decodeURI(appendages[iteration].video);\n\n // format the info\n var titleText = $('<h4>').text(title);\n var introText = $('<p>').text(intro);\n var wikiLink = $('<a>').text(\"Click here for more info\")\n .addClass('wiki-link')\n .attr('target', '_blank')\n .attr('href', link);\n var videoDiv = $('<div>').append(video)\n .addClass(\"embed-container\");\n\n // append it all to the proper divs\n $('#wikiSpot').empty().append(titleText, introText, wikiLink);\n $('#videoSpot').empty().append(videoDiv);\n}", "toHtml()\n\t{\n\t\t// 1. dynamic list of action buttons each one with it's design from the class \n\t\t// 2. \n\n\t\tvar answer = '<div class=\"academic-papers-panel\"><div class=\"personal-row-col col-reverse-mobile w-100 align-space-between\"><h3>' \n\t\t+ this.title + '</h3>'\n\t\tif (this.fileLinks[1][\"link\"] != \"\")\n\t\t{\n\t\t\tanswer += '<a class=\"cite-btn\" onclick=\"copy_cite(\\'' + this.title.replaceAll(\"'\", \"\").replaceAll(\" \", \"_\") + '\\');\">' + CITE_SYMBOL + 'Cite</a></div>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tanswer += \"</div>\";\n\t\t}\n\n\t\tanswer += '<h4>' + this.authors + \"<br>\" + this.publisher + '</h4>';\n\t\tanswer += descriptionTrim(this.description) + '<div class=\"personal-row space-between align-items-center mobile-row-breaker\">';\n\t\tif(window.screen.width > 400)\n\t\t{\n\t\t\tanswer += '<div class=\"publication-details\"><span>'\n\t\t\t\t+ this.publicationStatus + '</span><span>'\n\t\t\t\t+ this.year + '</span><span>'\n\t\t\t\t+ this.type + '</span></div>';\n\t\t}\n\t\tif (this.fileLinks[0][\"link\"] != \"\" && this.isFileFormat(this.fileLinks[0][\"link\"]))\n\t\t{\n\t\t\tanswer+='<div class=\"inner-publication-card-div\">';\n\t\t\tanswer+='<a href=\"' + this.fileLinks[0][\"link\"] + '\" class=\"download-btn acadmic-card-margin-fix acadmic-download-btn\">Download</a>'\n\t\t\tanswer+='<a href=\"' + this.fileLinks[0][\"link\"] + '\" class=\"read-online-btn acadmic-card-margin-fix\">Read Online</a></div>'\t\t// added the Read online button and put both bottums inside the condition\n\t\t\tanswer+='</div>';\n\t\t}\n\n\t\tanswer+='</div></div><input type=\"text\" style=\"display: none;\" id=\"' + this.title.replaceAll(\"'\", \"\").replaceAll(\" \", \"_\") + '\" value=\"' + this.fileLinks[1][\"link\"] + '\"></div></div>';\n\t\treturn answer;\n\t}", "function getUrl() { \n var uri = createUriParams(), \n url = document.URL.split(\"#\")[0]; \n \n url += \"#\" + uri \n dojo.byId(\"url\").value = url; \n \n dijit.byId(\"urlDialog\").show(); \n}", "display(){\n this.htmlBuilder.build();\n this.displayCityName();\n this.displayTodayWeather();\n this.displayWeekWeather();\n this.displayTimeSlots();\n }", "get targetDisplay() {}", "function scrape_slideshare(){\n \n elements = document.getElementsByClassName(\"slide_image\")\n urls = pluck(\"full\")(pluck(\"dataset\")(elements))\n codelst = map(image_template, urls)\n code = codelst.join(\"\\n <br>\") \n return popup_window(code)\n\n}", "function mjDisplay(theid,showit)\n{\n writeConsole(\"mjDisplay: name[\"+theid+\"] show[\"+showit+\"]\"); \n var foo = document.getElementById(theid);\n if (foo)\n {\n if (showit) foo.style.display = 'block';\n else foo.style.display = 'none';\n }\n else writeConsole(\"mjDisplay: name[\"+theid+\"] NOT FOUND\");\n}", "function prepPage() {\r\n uriObj = parseURI();\r\n if (uriObj['show'] && uriObj['show'] != 'ep' && !uriObj['eid'] && !uriObj['aid']) return;\r\n\tinitTooltips();\r\n loadData('anime/a'+uriObj['aid']+'.xml',parseData);\r\n}", "function onLoad(){\n getRequest(\"/display-current\", displayData);\n}", "function ShowObject(object_id, display_mode)\n{\n // get by ID\n var obj = document.getElementById(object_id);\n // if not found, get by name\n if (!obj)\n {\n var objects = document.getElementsByName(object_id);\n if (objects.length)\n {\n // use the first one of the array\n obj = objects[0];\n }\n else\n {\n // not found, try title...\n var i = 0;\n // ... in divs\n objects = document.getElementsByTagName('div');\n while ((!obj) && (i < objects.length))\n {\n if (object_id == objects[i].title)\n {\n obj = objects[i];\n }\n ++i;\n }\n if (!obj)\n {\n // ... now in spans\n objects = document.getElementsByTagName('span');\n while ((!obj) && (i < objects.length))\n {\n if (object_id == objects[i].title)\n {\n obj = objects[i];\n }\n ++i;\n }\n if (!obj)\n {\n // ... and finally in anchors\n objects = document.getElementsByTagName('a');\n while ((!obj) && (i < objects.length))\n {\n if (object_id == objects[i].title)\n {\n obj = objects[i];\n }\n ++i;\n }\n }\n }\n }\n }\n if (!display_mode)\n {\n display_mode = \"block\";\n }\n if ((obj) && (obj.style))\n {\n obj.style.display = display_mode;\n }\n}", "function displayElements(data) {\n var containerGrid = $('#feed');\n var containerVideo = $('#videos');\n var thumbGrid = '<div class=\"thumbs\">';\n var videoOverlay = '<div class=\"videoSlider\">';\n var len = data.length,\n i = 0;\n for (i; i < len; i++) {\n item = data[i];\n var thUrl = item.thumbnail[0].url;\n var videoObj = item.content[0].url;\n     thumbGrid += '<article><a tabindex=\"1\" id=\"slide-'+i+'\" class=\"fancybox\" href=\"#popup\">';\n thumbGrid += '<figure class=\"is-loading\">';\n thumbGrid += '<img src=\"' + thUrl + '\" alt=\"' + item.title + '\" title=\"' + item.title + '\"/>';\n if ( ( typeof(item.credit) !== 'undefined') && (item.credit[0].role == 'client') ){\n thumbGrid += '<div><figcaption>';\n thumbGrid += '<h4>' + item.credit[0].content + '</h4>';\n thumbGrid += '</figcaption></div>';\n } else {\n thumbGrid += '<div><figcaption>';\n thumbGrid += '<h4>'+ item.title +'</h4>';\n thumbGrid += '</figcaption></div>';\n }\n thumbGrid += '</figure></a></article>';\n videoOverlay += '<div>';\n videoOverlay += '<h4 class=\"rsCaption\">' + item.title + '</h4>';\n videoOverlay += '<video preload=\"none\" id=\"video-'+i+'\" class=\"video-js vjs-sublime-skin vjs-big-play-centered\"';\n videoOverlay += 'poster=\"' +thUrl+'\" src=\"' + videoObj + '\"></video>';\n videoOverlay += '</div>';\n }\n containerGrid.append(thumbGrid+ \"</div>\").imagesLoaded().progress(onProgress);\n containerVideo.append(videoOverlay+ \"</div>\");\n }", "attached() {\n \t\tlet parameter = JSON.parse((this.element.getAttribute('social-media')).replace(/'/g, '\"'));\n\n this.element.addEventListener('click', () => {\n\n // Based on: http://blog.socialsourcecommons.org/2011/03/creating-share-this-on-facebooktwitter-links/\n window.open(parameter.url + 'http://www.chicagoveg.com' , \n '_blank', \n 'toolbar=no,' + \n 'scrollbars=yes,' + \n 'resizable=yes,' + \n 'top=' + parameter.top + ',' +\n 'left=' + parameter.left + ',' + \n 'width=' + parameter.width + ',' +\n 'height=' + parameter.height);\n })\n }", "function displayArticle() {\n document.getElementById('page').innerHTML = player.article.parse.text['*'];\n if(!document.getElementsByClassName('game-links')[0].classList.contains('is-visible')){\n document.getElementsByClassName('game-links')[0].classList.add('is-visible');\n }\n if(!document.getElementsByClassName('game-fixed-nav')[0].classList.contains('is-visible')){\n document.getElementsByClassName('game-fixed-nav')[0].classList.add('is-visible');\n }\n var links = document.getElementsByTagName('a');\n var linksArr = Array.prototype.slice.call(links);\n linksArr.forEach(function(elem) {\n if (/Special:|File:|\\.ogg/.test(elem.href)){\n elem.classList.add('invalid-link');\n }\n else{\n elem.addEventListener('click', promptConnection);\n }\n });\n}", "function display(id){\n\tif (id == \"Tomato\"){\n\t\tdocument.getElementById('desc').innerHTML = descriptions[0] + images[0] + care[0];\n\t}\n\tif (id == \"Apple\"){\n\t\tdocument.getElementById('desc').innerHTML = descriptions[1] + images[1] + care[1];\n\t}\n if (id == \"Carrot\"){\n document.getElementById('desc').innerHTML = descriptions[2] + images[2] + care[2];\n }\n if (id == \"Onion\"){\n document.getElementById('desc').innerHTML = descriptions[3] + images[3] + care[3];\n }\n if (id == \"Eggplant\"){\n document.getElementById('desc').innerHTML = descriptions[4] + images[4] + care[4];\n }\n if (id == \"Brocolli\"){\n document.getElementById('desc').innerHTML = descriptions[5] + images[5] + care[5];\n }\n if (id == \"Potato\"){\n document.getElementById('desc').innerHTML = descriptions[6] + images[6] + care[6];\n }\n if (id == \"Peas\"){\n document.getElementById('desc').innerHTML = descriptions[7] + images[7] + care[7];\n }\n if (id == \"Corn\"){\n document.getElementById('desc').innerHTML = descriptions[8] + images[8] + care[8];\n }\n if (id == \"Pumpkin\"){\n document.getElementById('desc').innerHTML = descriptions[9] + images[9] + care[9];\n }\n}", "function renderDOM(activity, type, accessibility, price, participants, dataGifUrl) {\n\n var activityName = document.getElementById('activityName')\n activityName.textContent = activity;\n\n var activityType = document.getElementById('activityType');\n activityType.textContent = 'category: ' + type;\n\n var activityAccessibility = document.getElementById('activityAccessibility');\n activityAccessibility.innerHTML = 'accessibility: ' + convertToIcons(\n accessibility,\n accessibilityIcon,\n );\n\n var activityPrice = document.getElementById('activityPrice');\n activityPrice.innerHTML = 'price: ' + convertToIcons(\n price,\n priceIcon,\n activityPrice.id\n );\n\n var activityParticipants = document.getElementById('activityParticipants');\n activityParticipants.innerHTML = 'participants: ' + convertParticipantIcons(\n participants,\n participantsIcon\n );\n\n // setTimeout to make gif load slower so the gif doesn't\n // change before the flip animation\n var giphyUrl = document.getElementById('giphyUrl');\n setTimeout(function(){\n giphyUrl.setAttribute('src', dataGifUrl);\n }, 200);\n}", "function display_image(image_url){\n document.getElementById(\"image\").src=image_url;\n }", "function showColumn(listXML, columnXML, columnValue, opt) {\n\n if (typeof columnValue === \"undefined\") {\n return \"\";\n }\n\n var i;\n var outString = \"\";\n var fileName = \"\";\n var dispUrl;\n var numDecimals;\n var outArray = [];\n var webUrl = opt.relatedWebURL.length > 0 ? opt.relatedWebURL : $().SPServices.SPGetCurrentSite();\n\n\n\n\n\n\n\n switch (columnXML.attr(\"Type\")) {\n case \"Text\":\n outString = columnValue;\n break;\n case \"URL\":\n switch (columnXML.attr(\"Format\")) {\n // URL as hyperlink\n case \"Hyperlink\":\n outString = \"<a href='\" + columnValue.substring(0, columnValue.search(\",\")) + \"'>\" +\n columnValue.substring(columnValue.search(\",\") + 1) + \"</a>\";\n break;\n // URL as image\n case \"Image\":\n outString = \"<img alt='\" + columnValue.substring(columnValue.search(\",\") + 1) +\n \"' src='\" + columnValue.substring(0, columnValue.search(\",\")) + \"'/>\";\n break;\n // Just in case\n default:\n outString = columnValue;\n break;\n }\n break;\n case \"User\":\n case \"UserMulti\":\n var userMultiValues = columnValue.split(constants.spDelim);\n for (i = 0; i < userMultiValues.length; i = i + 2) {\n outArray.push(\"<a href='/_layouts/userdisp.aspx?ID=\" + userMultiValues[i] +\n \"&Source=\" + utils.escapeUrl(location.href) + \"'>\" +\n userMultiValues[i + 1] + \"</a>\");\n }\n outString = outArray.join(\", \");\n break;\n case \"Calculated\":\n var calcColumn = columnValue.split(constants.spDelim);\n outString = calcColumn[1];\n break;\n case \"Number\":\n numDecimals = columnXML.attr(\"Decimals\");\n outString = typeof numDecimals === \"undefined\" ?\n parseFloat(columnValue).toString() :\n parseFloat(columnValue).toFixed(numDecimals).toString();\n break;\n case \"Currency\":\n numDecimals = columnXML.attr(\"Decimals\");\n outString = typeof numDecimals === \"undefined\" ?\n parseFloat(columnValue).toFixed(2).toString() :\n parseFloat(columnValue).toFixed(numDecimals).toString();\n break;\n case \"Lookup\":\n switch (columnXML.attr(\"Name\")) {\n case \"FileRef\":\n // Get the display form URL for the lookup source list\n dispUrl = listXML.attr(\"BaseType\") === \"1\" ? listXML.attr(\"RootFolder\") + constants.SLASH + \"Forms/DispForm.aspx\" :\n listXML.attr(\"RootFolder\") + constants.SLASH + \"DispForm.aspx\";\n outString = \"<a href='\" + dispUrl +\n \"?ID=\" + columnValue.substring(0, columnValue.search(constants.spDelim)) + \"&RootFolder=*&Source=\" + utils.escapeUrl(location.href) + \"'>\" +\n columnValue.substring(columnValue.search(constants.spDelim) + 2) + \"</a>\";\n break;\n case \"FileDirRef\":\n // Get the display form URL for the lookup source list\n dispUrl = constants.SLASH + columnValue.substring(columnValue.search(constants.spDelim) + 2);\n outString = \"<a href='\" + dispUrl + \"'>\" +\n columnValue.substring(columnValue.search(constants.spDelim) + 2) + \"</a>\";\n break;\n // Any other lookup column\n default:\n // Get the display form URL for the lookup source list\n dispUrl = utils.getListFormUrl(columnXML.attr(\"List\"), \"DisplayForm\");\n outString = \"<a href='\" + opt.relatedWebURL + constants.SLASH + dispUrl +\n \"?ID=\" + columnValue.substring(0, columnValue.search(constants.spDelim)) + \"&RootFolder=*&Source=\" + utils.escapeUrl(location.href) + \"'>\" +\n columnValue.substring(columnValue.search(constants.spDelim) + 2) + \"</a>\";\n break;\n }\n break;\n case \"LookupMulti\":\n // Get the display form URL for the lookup source list\n dispUrl = utils.getListFormUrl(columnXML.attr(\"List\"), \"DisplayForm\");\n // Show all the values as links to the items, separated by commas\n outString = \"\";\n if (columnValue.length > 0) {\n var lookupMultiValues = columnValue.split(constants.spDelim);\n for (i = 0; i < lookupMultiValues.length / 2; i++) {\n outArray.push(\"<a href='\" + webUrl + constants.SLASH + dispUrl +\n \"?ID=\" + lookupMultiValues[i * 2] + \"&RootFolder=*&Source=\" + utils.escapeUrl(location.href) + \"'>\" +\n lookupMultiValues[(i * 2) + 1] + \"</a>\");\n }\n }\n outString = outArray.join(\", \");\n break;\n case \"File\":\n fileName = columnValue.substring(columnValue.search(constants.spDelim) + 2);\n outString = \"<a href='\" + listXML.attr(\"RootFolder\") + constants.SLASH + fileName + \"'>\" + fileName + \"</a>\";\n break;\n case \"Counter\":\n outString = columnValue;\n break;\n case \"DateTime\":\n outString = columnValue;\n break;\n default:\n outString = columnValue;\n break;\n }\n return outString;\n } // End of function showColumn", "function display() {\n\n doSanityCheck();\n initButtons();\n}", "displayPicture(url){this.newPictureContainer.attr('src',url);page('/add');this.imageCaptionInput.focus();this.uploadButton.prop('disabled',true)}", "function displaySelectedCUHybridCompTab(){\n var url = parent.location.href;\n s=url.indexOf(\"summary\");\n if (s!=-1){\n obj= document.getElementById('summary-li');\n if(obj){\n document.getElementById('summary').style.display=\"\";\n }\n }\n if (url.indexOf(\"basiccontrol\")!=-1){\n obj= document.getElementById('basiccontrol-li');\n if(obj){\n document.getElementById('basiccontrol').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"cprating\")!=-1){\n obj= document.getElementById('cprating-li');\n if(obj){\n document.getElementById('cprating').style.display=\"\";\n }\n }\n if (url.indexOf(\"auditreadyasmt\")!=-1){\n obj= document.getElementById('auditreadyasmt-li');\n if(obj){\n document.getElementById('auditreadyasmt').style.display=\"\";\n }\n }\n if (url.indexOf(\"riskmsdcommit\")!=-1){\n obj= document.getElementById('riskmsdcommit-li');\n if(obj){\n document.getElementById('riskmsdcommit').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"auditreview\")!=-1){\n obj= document.getElementById('auditreview-li');\n if(obj){\n document.getElementById('auditreview').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"kctest\")!=-1){\n obj= document.getElementById('kctest-li');\n if(obj){\n document.getElementById('kctest').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"opmetric\")!=-1){\n obj= document.getElementById('opmetric-li');\n if(obj){\n document.getElementById('opmetric').style.display=\"\";\n }\n }\n\tif (url.indexOf(\"other\")!=-1){\n obj= document.getElementById('other-li');\n if(obj){\n document.getElementById('other').style.display=\"\";\n }\n }\n}", "function showLink(value){\n\t\t\tif(value == 'ok'){\n\t\t\t\tif(KCI.util.Config.getHybrid() == true){\n\t\t\t\t\tif(KCI.app.getApplication().getController('Hybrid').cordovaCheck() == true){\n\t\t\t\t\t\t//hybrid childbrowser function\n\t\t\t\t\t\tKCI.app.getApplication().getController('Hybrid').doShowLink(button.getUrl());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Google Analytics Tracking\n\t\t\t\t\t\tKCI.app.getApplication().getController('Hybrid').doTrackEvent('Link','View',button.getText());\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tKCI.app.getApplication().getController('Main').doShowExternal(button.getUrl());\n\t\t\t\t\t\n\t\t\t\t\t//Google Analytics Tracking\n\t\t\t\t\tKCI.app.getApplication().getController('Main').doTrackEvent('Link','View',button.getText());\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}", "url(href=null, text=null, classes=null, id=null) {\n let $l = $(`<a></a>`);\n if (href) {\n $l.attr(\"href\", href);\n } else {\n $l.attr(\"href\", \"javascript:void(0)\");\n }\n if (text) {\n $l.text(text);\n } else if (href) {\n $l.text(href);\n } else {\n $l.val(\"undefined\");\n }\n if (Util.IsArray(classes)) {\n for (let c of classes) {\n $l.addClass(c);\n }\n } else if (classes) {\n $l.addClass(classes);\n }\n if (id) {\n $l.attr(\"id\", id);\n }\n return $l;\n }", "function myFunction(){ \n if (document.getElementById('desc').innerHTML == descriptions[0] + images[0] + care[0]){\n $(\"#mygarden dl\").append('<dt> Tomato </dt> <dd>' + '-' + descriptions [0] + images[0] + '</dd>');\n imgs[0] = url[0];\n };\n if (document.getElementById('desc').innerHTML == descriptions[1] + images[1] + care[1]){\n $(\"#mygarden dl\").append('<dt> Apple </dt> <dd>' + '-' + descriptions [1] + images[1] + '</dd>');\n imgs[1] = url[1];\n };\n if (document.getElementById('desc').innerHTML == descriptions[2] + images[2] + care[2]){\n $(\"#mygarden dl\").append('<dt> Carrot </dt> <dd>' + '-' + descriptions [2] + images[2] + '</dd>');\n imgs[2] = url[2];\n };\n if (document.getElementById('desc').innerHTML == descriptions[3] + images[3] + care[3]){\n $(\"#mygarden dl\").append('<dt> Onion </dt> <dd>' + '-' + descriptions [3] + images[3] +'</dd>');\n imgs[3] = url[3];\n };\n if (document.getElementById('desc').innerHTML == descriptions[4] + images[4] + care[4]){\n $(\"#mygarden dl\").append('<dt> Eggplant </dt> <dd>' + '-' + descriptions [4] + images[4] +'</dd>');\n imgs[4] = url[4];\n };\n if (document.getElementById('desc').innerHTML == descriptions[5] + images[5] + care[5]){\n $(\"#mygarden dl\").append('<dt> Brocolli </dt> <dd>' + '-' + descriptions [5] + images[5] +'</dd>');\n imgs[5] = url[5];\n };\n if (document.getElementById('desc').innerHTML == descriptions[6] + images[6] + care[6]){\n $(\"#mygarden dl\").append('<dt> Potato </dt> <dd>' + '-' + descriptions [6] + images[6] +'</dd>');\n imgs[6] = url[6];\n };\n if (document.getElementById('desc').innerHTML == descriptions[7] + images[7] + care[7]){\n $(\"#mygarden dl\").append('<dt> Peas </dt> <dd>' + '-' + descriptions [7] + images[7] +'</dd>');\n imgs[7] = url[7];\n };\n if (document.getElementById('desc').innerHTML == descriptions[8] + images[8] + care[8]){\n $(\"#mygarden dl\").append('<dt> Corn </dt> <dd>' + '-' + descriptions [8] + images[8] +'</dd>');\n imgs[8] = url[8];\n };\n if (document.getElementById('desc').innerHTML == descriptions[9] + images[9] + care[9]){\n $(\"#mygarden dl\").append('<dt> Pumpkin </dt> <dd>' + '-' + descriptions [9] + images[9] +'</dd>');\n imgs[9] = url[9];\n };\n console.log(imgs);\n createSlideshow(imgs);\n}", "function internal_link() {\n var urlArray = window.location.href.split('#');\n if (urlArray.length == 2 && urlArray[1] != \"\") {\n switch (urlArray[1]) {\n case \"intro\": $('#tab-intro-content').show(); break;\n case \"news\": $('#tab-news-content').show(); break;\n case \"publications\": $('#tab-publications-content').show(); break;\n case \"awards\": $('#tab-awards-content').show(); break;\n case \"courses\": $('#tab-courses-content').show(); break;\n case \"systems\": $('#tab-systems-content').show(); break;\n case \"links\": $('#tab-links-content').show(); break;\n case \"service\": $('#tab-service-content').show(); break;\n case \"advising\": $('#tab-advising-content').show(); break;\n case \"contact\": $('#tab-contact-content').show(); break;\n default: break;\n }\n }\n}", "function displayElementProperties(elementID)\n{\n //optional\n}", "function JournalAdmin_DisplayElement(listPosition)\r\n{\r\n\ti = listPosition;\r\n\t\r\n\t/*--------------------------------------------------------------------------\r\n\t\tDisplay the titles of the fields in the header.\r\n\t\tCreate and display the table with searched results found.\r\n\t----------------------------------------------------------------------------*/\r\n\tvar strSubject = this.list[i].Subject;\t\t\r\n\tvar strPoster = this.list[i].Poster;\t\t\t\r\n\t\r\n\t/*--------------------------------------------------------------------------\r\n\t\tFormat the date from YYYY-MM-DD (the format in in the Database)to a\r\n\t\tmore customary MM/DD/YYYY. \r\n\t----------------------------------------------------------------------------*/\r\n\tstrPostDate = formatDate(this.list[i][\"journal_Date\"]);\r\n\t\r\n\t/*--------------------------------------------------------------------------\r\n\t\tFormat the description to display 100 characters and then an ellipsis in \r\n\t\tthe\tsearch results.\r\n\t----------------------------------------------------------------------------*/\r\n\tstrDisplayBody = Truncate(this.list[i][\"journal_Body\"], 100);\r\n\t\t\t\r\n\t/*--------------------------------------------------------------------------\r\n\t\tPopulate the results table and set up table formatting.\r\n\t----------------------------------------------------------------------------*/\r\n\tvar resultRow = document.createElement(\"TR\");\r\n\tresultRow.vAlign = \"top\";\r\n\tthis.element_body.appendChild(resultRow);\r\n\toSystem_Colors.SetPrimary(resultRow);\r\n\t\r\n\tif(i % 2 == 1)\r\n\t{\r\n\t\toSystem_Colors.SetSecondaryBackground(resultRow);\r\n\t}\r\n\telse\r\n\t{\r\n\t\toSystem_Colors.SetTertiaryBackground(resultRow);\r\n\t}\r\n\t\r\n\tvar resultCol = document.createElement(\"TD\");\r\n\tresultRow.appendChild(resultCol);\r\n\tresultCol.appendChild(screen_CreateUserLink(strPoster));\r\n\tresultCol.align = \"center\";\r\n\tresultCol.style.paddingLeft = \"6px\";\r\n\tresultCol.style.paddingRight = \"6px\";\r\n\t\r\n\tvar resultCol2 = document.createElement(\"TD\");\r\n\tresultRow.appendChild(resultCol2);\r\n\tresultCol2.innerHTML = strPostDate;\r\n\tresultCol2.align = \"center\"; \r\n\tresultCol2.style.paddingLeft = \"6px\";\r\n\tresultCol2.style.paddingRight = \"6px\";\r\n\t\r\n\tvar resultCol3 = document.createElement(\"TD\");\r\n\tresultRow.appendChild(resultCol3);\r\n\tresultCol3.appendChild(screen_CreateUserLink(strSubject));\r\n\tresultCol3.align = \"center\";\r\n\tresultCol3.style.paddingLeft = \"6px\";\r\n\tresultCol3.style.paddingRight = \"6px\";\r\n\r\n\tvar resultCol4 = document.createElement(\"TD\");\r\n\tresultRow.appendChild(resultCol4);\r\n\tresultCol4.innerHTML = this.list[i].jrnCat_Name;\r\n\tresultCol4.align = \"center\";\r\n\tresultCol4.style.paddingLeft = \"6px\";\r\n\tresultCol4.style.paddingRight = \"6px\";\t\t\r\n\t\r\n\tvar resultCol5 = document.createElement(\"TD\");\r\n\tresultRow.appendChild(resultCol5);\r\n\tresultDiv = document.createElement(\"DIV\");\r\n\tresultCol5.appendChild(resultDiv);\r\n\tresultDiv.style.width=\"200px\";\r\n\tresultDiv.style.paddingLeft = \"6px\";\r\n\tresultDiv.style.paddingRight = \"6px\";\r\n\tresultDiv.style.paddingBottom = \"6px\";\r\n\tscreen_SetTextElement(resultDiv, strDisplayBody);\r\n\t\r\n\tresultRow.appendChild(Journal_GetActions(this.list[i]));\r\n\t\r\n}", "function showUrlList(urlObj, options) {\n // Get list of urls\n var myUrls = getMyUrls();\n\n // Get the page we are going to write our content into.\n var $page = $(\"#home\");\n // Get the content area element for the page.\n var $content = $page.children(\":jqmData(role=content)\");\n\n // Build the list of urls.\n var markup = \"<ul data-role='listview' data-split-icon='delete'>\";\n for (var i = 0; i < myUrls.length; i++) {\n markup = markup + \"<li><a href='#qrcode?url=\" + myUrls[i] + \"'>\" + getHostname(myUrls[i]) + \"</a>\" + \"<a href='#delurl?url=\" + myUrls[i] + \"' data-rel='dialog'>Delete</a></li>\";\n }\n markup = markup + \"</ul>\";\n // Inject the list markup into the content element.\n $content.html(markup);\n\n // Pages are lazily enhanced. We call page() on the page\n // element to make sure it is always enhanced before we\n // attempt to enhance the listview markup we just injected.\n $page.page();\n\n // Enhance the listview we just injected.\n $content.find(\":jqmData(role=listview)\").listview();\n\n // Now call changePage() and tell it to switch to the page we just modified.\n $.mobile.changePage($page, options);\n}", "function displayShortenedUrl(res) {\n link.textContext = res.data.shortUrl;\n link.setAttribute('href', res.data.shortUrl);\n shrBox.style.opacity = '1';\n urlBox.value = '';\n}", "function urlResponse(obj, engineTitle) {\n // create placeholder for results\n var su = document.getElementById('results');\n var resultDiv = document.createElement('div');\n su.appendChild(resultDiv);\n // if there are no errors, parse the results\n if (obj.status == 200) {\n resultDiv.className = 'searchEngine';\n var stringDom = obj.content;\n var domdata=opensocial.xmlutil.parseXML(stringDom);\n if (domdata != null) {\n var entries = domdata.getElementsByTagName('entry');\n resultDiv.innerHTML = resultDiv.innerHTML + engineTitle + ':<br/>';\n if (entries.legnth == 0) {\n resultDiv.innerHTML = resultDiv.innerHTML + ('No results found');\n } else {\n var resultCount = entries.length;\n if (resultCount > 15) {\n resultCount = 15;\n }\n for (i = 0; i < resultCount; i++) {\n if (entries[i].getElementsByTagName('title').length > 0) {\n titles = entries[i].getElementsByTagName('title');\n title = titles[0].childNodes[0].nodeValue;\n } else {\n title = 'Untitled';\n }\n var link = null;\n //for standard atom results, we can extract the link\n if (entries[i].getElementsByTagName('link').length > 0) {\n links = entries[i].getElementsByTagName('link');\n link = links[0].attributes.href.nodeValue;\n }\n var summaryNode = entries[i].getElementsByTagName('summary')[0];\n if (summaryNode == null) {\n summaryNode = entries[i].getElementsByTagName('description')[0];\n }\n if (link == null) {\n resultDiv.innerHTML = resultDiv.innerHTML\n + '<p style=\\\"color:blue\\\"/>'\n + gadgets.util.escapeString(title);\n } else {\n resultDiv.innerHTML = resultDiv.innerHTML\n + '<p style=\\\"color:blue\\\"/>'\n + '<a href=\\\"'+ link + '\\\" target=\\\"_blank\\\">'\n + gadgets.util.escapeString(title)\n + '</a>';\n }\n if (summaryNode != null) {\n var summary = summaryNode.textContent;\n if (summary != null) {\n resultDiv.innerHTML = resultDiv.innerHTML\n + gadgets.util.escapeString(summary);\n }\n }\n }\n }\n }\n } else { // errors occured, notify the user.\n resultDiv.innerHTML = resultDiv.innerHTML + engineTitle\n + '<br/> An error has occured:' + obj.status;\n }\n }", "function displayResult(url, large_url) {\n\t\t\tlet image = document.createElement('img');\n\t\t\timage.src = url;\n\t\t\tresults.appendChild(image);\n\t\t\timage.dataset.large_url = `${large_url}`;\n\t\t\timage.className = 'lightBoxImage';\n\t\t}", "function displayContent(){\n document.getElementById(\"image\").className = \"show\"\n document.getElementById(\"itemInfo\").className = \"show\"\n}" ]
[ "0.6249263", "0.60308814", "0.5956144", "0.5953142", "0.59246266", "0.5875343", "0.58489054", "0.582305", "0.57936525", "0.5746954", "0.5739765", "0.57296485", "0.57270056", "0.57013005", "0.5690718", "0.56743723", "0.56682044", "0.5653042", "0.5653042", "0.5652667", "0.5606559", "0.55991405", "0.55916893", "0.55744845", "0.55713695", "0.5570955", "0.55701345", "0.5569278", "0.5566436", "0.5557488", "0.554174", "0.55332017", "0.5529363", "0.55270165", "0.55265385", "0.55247194", "0.54958016", "0.54917306", "0.54905206", "0.5484554", "0.54793227", "0.54749", "0.54671925", "0.54670805", "0.54634213", "0.5462523", "0.54622173", "0.54581994", "0.54450375", "0.5440446", "0.5440107", "0.5439892", "0.5429741", "0.54289275", "0.54281694", "0.5424901", "0.54179806", "0.54080695", "0.5404406", "0.54009235", "0.53968567", "0.5395604", "0.5395088", "0.5391831", "0.5388731", "0.53828186", "0.5382818", "0.53763217", "0.5362699", "0.53537047", "0.53518885", "0.5351685", "0.53485286", "0.5347725", "0.53337663", "0.5333527", "0.533254", "0.53323126", "0.5330554", "0.5329213", "0.5328538", "0.53265774", "0.5324219", "0.5323875", "0.5322697", "0.53221905", "0.5319869", "0.5317603", "0.53123236", "0.5311832", "0.5311648", "0.5308962", "0.53066313", "0.53019065", "0.5299669", "0.5297576", "0.5295897", "0.5291208", "0.5290135", "0.528962", "0.5288809" ]
0.0
-1
constructor arguments: cl:: object of type [CL11](cl11.html) handle:: OpenCL handle
function CLWrapper(cl, handle, releaseFunction) { assert(cl instanceof CL11, "Argument 'cl' is not a CL11 instance."); assert(ref.getType(handle) === ref.types.void, "Argument 'handle' is not a pointer."); assert(!ref.isNull(handle), "Handle is null."); Disposable.call(this, releaseFunction); // ## object of type [CL11](cl11.html) this.cl = cl; // ## the OpenCL object handle this.handle = handle; this._cache = {}; this._infoFunction = this.cl.imports[this._classInfoFunction]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(options) {\n super();\n this._kernel = new KernelConnector(options);\n this._context = new ContextConnector(options);\n }", "function gen_op_ldl_kernel()\n{\n gen_opc_ptr.push({func:op_ldl_kernel});\n}", "function createLContext(lView,nodeIndex,_native2){return{lView:lView,nodeIndex:nodeIndex,\"native\":_native2,component:undefined,directives:undefined,localRefs:undefined};}", "function gen_op_stl_kernel()\n{\n gen_opc_ptr.push({func:op_stl_kernel});\n}", "function gen_op_ldlex_kernel()\n{\n gen_opc_ptr.push({func:op_ldlex_kernel});\n}", "constructor(GL, elSize1, data, mode1, attrLoc, itemType, glTarget, usage1) {\n//----------\nthis.GL = GL;\nthis.elSize = elSize1;\nthis.mode = mode1;\nthis.attrLoc = attrLoc;\nthis.itemType = itemType;\nthis.glTarget = glTarget;\nthis.usage = usage1;\n// Private members\nthis._buffer = this.GL.createBuffer();\nthis._nVertices = data.length / this.elSize;\nif (typeof lggr.trace === \"function\") {\nlggr.trace(`VBO: elSize=${this.elSize} length=${data.length} verts=${this._nVertices}`);\n}\n// Create and initialise the buffer.\nthis.GL.bindBuffer(this.glTarget, this._buffer);\nthis.GL.bufferData(this.glTarget, data, this.usage);\nthis.GL.bindBuffer(this.glTarget, null);\n}", "function HCL2($resource, car // this will be a car that will allow passing between controllers.\n ) {\n this.$resource = $resource;\n this.car = car; // this will be a car that will allow passing between controllers.\n }", "function gen_op_ldbex_kernel()\n{\n gen_opc_ptr.push({func:op_ldbex_kernel});\n}", "constructor(master = {}) {\n if (!master.sketchObject) {\n // eslint-disable-next-line no-param-reassign\n master.sketchObject = Factory.createNative(SymbolInstance)\n .alloc()\n .initWithFrame(new Rectangle(0, 0, 100, 100).asCGRect())\n }\n super(master)\n }", "constructor(args) {\n\t\tthis.obj = gl.createBuffer();\n\t\tthis.setData(args.data, args.usage || gl.STATIC_DRAW, args.keep);\n\t}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView: lView,\n nodeIndex: nodeIndex,\n native: native,\n component: undefined,\n directives: undefined,\n localRefs: undefined\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView,\n nodeIndex,\n native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView,\n nodeIndex,\n native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView,\n nodeIndex,\n native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView,\n nodeIndex,\n native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView,\n nodeIndex,\n native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView,\n nodeIndex,\n native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "constructor(ctxPtr) {\n this.name = 'CipherAlgInfo';\n\n if (typeof ctxPtr === 'undefined') {\n this.ctxPtr = Module._vscf_cipher_alg_info_new();\n } else {\n this.ctxPtr = ctxPtr;\n }\n }", "constructor(host, log) {\n super();\n this.log = log || console.log;\n \n // Construct an ioLogik API\n this.host = host;\n this.iologik = new IoLogik(host, log);\n\n // Read and log the ioLogic system information\n this.logDeviceInfo();\n\n // Start polling the door state\n this.currentState = 'closed';\n this.targetState = 'closed';\n this.pollDoorPosition();\n\n // Assume that the light is initially off\n this.lightState = false;\n }", "constructor(props, context) {\n if (typeof context !== 'object') {\n throw new Error(`HyperloopContext instance is required to instantiate components`)\n }\n\n Object.defineProperties(this, {\n context: { value: context },\n initializing: { value: false, writable: true },\n node: { value: null, writable: true },\n props: { value: Object.assign({}, props) },\n wire: { value: null, writable: true },\n })\n\n if (this.defaultState) {\n this.setState(this.defaultState(this.props), false)\n }\n\n if (!context.initializing && this.oninit) {\n this.initializing = true\n if (this.isBrowser) {\n console.group(`${this.constructor.name}.oninit`)\n }\n Promise.resolve(this.oninit()).then((newState) => {\n this.initializing = false\n this.setState(newState)\n if (this.isBrowser) {\n console.debug('newState:', newState)\n console.groupEnd()\n }\n })\n }\n }", "function createGLContext() {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n opts = Object.assign({}, contextDefaults, opts);\n var _opts = opts,\n canvas = _opts.canvas,\n width = _opts.width,\n height = _opts.height,\n throwOnError = _opts.throwOnError,\n manageState = _opts.manageState,\n debug = _opts.debug;\n\n // Error reporting function, enables exceptions to be disabled\n\n function onError(message) {\n if (throwOnError) {\n throw new Error(message);\n }\n // log.log(0, message);\n return null;\n }\n\n var gl = void 0;\n if (__WEBPACK_IMPORTED_MODULE_6__utils__[\"isBrowser\"]) {\n // Make sure we have a real canvas (\"canvas\" can a string, a canvas or null)\n var realCanvas = void 0;\n if (!canvas) {\n realCanvas = Object(__WEBPACK_IMPORTED_MODULE_2__webgl_utils__[\"a\" /* createCanvas */])({ id: 'lumagl-canvas', width: width, height: height, onError: onError });\n } else if (typeof canvas === 'string') {\n realCanvas = Object(__WEBPACK_IMPORTED_MODULE_2__webgl_utils__[\"c\" /* getCanvas */])({ id: canvas });\n } else {\n realCanvas = canvas;\n }\n // Create a WebGL context in the canvas\n gl = Object(__WEBPACK_IMPORTED_MODULE_2__webgl_utils__[\"b\" /* createContext */])({ canvas: realCanvas, opts: opts });\n } else {\n // Create a headless-gl context under Node.js\n gl = _createHeadlessContext({ width: width, height: height, opts: opts, onError: onError });\n }\n if (!gl) {\n return null;\n }\n\n // Install context state tracking\n if (manageState) {\n Object(__WEBPACK_IMPORTED_MODULE_1__webgl_utils_track_context_state__[\"a\" /* default */])(gl, {\n copyState: false,\n log: function log() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return __WEBPACK_IMPORTED_MODULE_6__utils__[\"log\"].log.apply(__WEBPACK_IMPORTED_MODULE_6__utils__[\"log\"], [1].concat(args));\n }\n });\n }\n\n // Add debug instrumentation to the context\n if (__WEBPACK_IMPORTED_MODULE_6__utils__[\"isBrowser\"] && debug) {\n gl = Object(__WEBPACK_IMPORTED_MODULE_3__context_debug__[\"a\" /* makeDebugContext */])(gl, { debug: debug });\n // Debug forces log level to at least 1\n __WEBPACK_IMPORTED_MODULE_6__utils__[\"log\"].priority = Math.max(__WEBPACK_IMPORTED_MODULE_6__utils__[\"log\"].priority, 1);\n // Log some debug info about the context\n logInfo(gl);\n }\n\n // Add to seer integration\n\n return gl;\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView: lView,\n nodeIndex: nodeIndex,\n native: native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView: lView,\n nodeIndex: nodeIndex,\n native: native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function createLContext(lView, nodeIndex, native) {\n return {\n lView: lView,\n nodeIndex: nodeIndex,\n native: native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function detectCL(x,y)\t// [col,lin] = detectCL(x,y)\n{\n\treturn [ x/d|0, y/d|0]; \n}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x98dd8936;\n this.SUBCLASS_OF_ID = 0xeeda0eb8;\n\n this.num = args.num;\n this.blocks = args.blocks;\n }", "constructor(wrapperElem, canvasObj) {\n if (!wrapperElem) console.error('Canvas Wrapper Element is unset');\n\n this.wrapperElem = wrapperElem;\n\n this.canvas = canvasObj.canvas;\n this.gl = canvasObj.gl;\n this.shaderFac = canvasObj.shaderFac;\n\n this.canvas2DLayers = [];\n\n this.buffers = null;\n\n this.objectList = [];\n\n this.hashLookup = new SpatialHash.Lookup(50, 50);\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x3502758c;\n this.SUBCLASS_OF_ID = 0xe2e10ef2;\n\n this.resize = args.resize || null;\n this.singleUse = args.singleUse || null;\n this.selective = args.selective || null;\n this.rows = args.rows;\n }", "function initCliffs(){\n var cliff = new Cliff(cliffPoints,20);\n\n\n var lineGeometry = new THREE.BufferGeometry().setFromPoints( cliffPoints );\n var material = new THREE.LineBasicMaterial({ color: 0x0000ff });\n var line = new THREE.Line( lineGeometry, material );\n Stage.scene.add( line );\n}", "initializeCylinder(){\n if (this.args_array.length == 6){\n this.primitive = new MyCylinder(this.scene, this.args_array[1], this.args_array[2], this.args_array[3], \n this.args_array[4], this.args_array[5]);\n }\n else console.log(\"Invalid number of arguments for a Cylinder\");\n }", "function LGShaderContext() {\n //to store the code template\n this.vs_template = \"\";\n this.fs_template = \"\";\n\n //required so nodes now where to fetch the input data\n this.buffer_names = {\n uvs: \"v_coord\",\n };\n\n this.extra = {}; //to store custom info from the nodes (like if this shader supports a feature, etc)\n\n this._functions = {};\n this._uniforms = {};\n this._codeparts = {};\n this._uniform_value = null;\n }", "function createLContext(lView, nodeIndex, _native4) {\n return {\n lView: lView,\n nodeIndex: nodeIndex,\n \"native\": _native4,\n component: undefined,\n directives: undefined,\n localRefs: undefined\n };\n }", "function gen_op_swpl_kernel()\n{\n gen_opc_ptr.push({func:op_swpl_kernel});\n}", "function gen_op_stlex_kernel()\n{\n gen_opc_ptr.push({func:op_stlex_kernel});\n}", "function createLContext(lViewData, nodeIndex, native) {\n return {\n lViewData: lViewData,\n nodeIndex: nodeIndex, native: native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}", "function Comm(target, id, kernel, disposeCb) {\n _super.call(this, disposeCb);\n this._target = '';\n this._id = '';\n this._kernel = null;\n this._onClose = null;\n this._onMsg = null;\n this._id = id;\n this._target = target;\n this._kernel = kernel;\n }", "constructor(x1, y1, x2, y2, c)\n {\n this.x1 = x1;\n this.y1 = y1;\n this.x2 = x2;\n this.y2 = y2;\n this.c = c;\n }", "constructor(gl) {\r\n\t\t\r\n\t\t// Chiama il costruttore della classe parent\r\n\t\tsuper(gl);\r\n\r\n\t}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x6c52c484;\n this.SUBCLASS_OF_ID = 0xbef20920;\n\n this.blocks = args.blocks;\n }", "function InstanceForHandle(handle) {\n this.handle = handle;\n }", "constructor(x, y, width, height) {\n //TO-DO\n }", "function getOpenCLSize(type) {\n var base_type = stripToBaseType(type);\n if(base_type === type) {\n switch (base_type) {\n case \"signed char\":\n case \"unsigned char\":\n case \"unsigned /* clamped */ char\":\n return 1;\n break;\n case \"short\":\n case \"unsigned short\":\n return 2;\n break;\n case \"float\":\n case \"int\":\n case \"unsigned int\":\n return 4;\n break;\n case \"double\":\n return 8;\n break;\n default:\n reportBug(\"size of type not known: \" + type);\n break;\n }\n }\n else { // 'type' is a pointer type.\n return 8;\n }\n }", "constructor(primitive, size) {\n this.primitive = primitive;\n this.size = size;\n\n if (this.size <= GenericGF.INITIALIZATION_THRESHOLD){\n this.initialize();\n }\n }", "constructor(log, config, api) {\n this.PlatformAccessory = PlatformAccessory\n this.Accessory = Accessory\n this.Service = Service\n this.Characteristic = Characteristic\n this.UUIDGen = UUIDGen\n this.log = log\n this.config = config\n this.devices = {}\n this.accessories = {}\n if (api) {\n // Save the API object as plugin needs to register new accessory via this object.\n this.api = api\n } else {\n this.log.error(\"Homebridge's version is too old, please upgrade!\")\n }\n if (this.api) {\n this.api.on('didFinishLaunching', this.didFinishLaunching.bind(this))\n }\n if (_homebridge.broadlink != undefined) {\n _homebridge.broadlink = this\n }\n this.log.debug('broadlink constructor done')\n }", "function gen_op_iwmmxt_ldl_kernel()\n{\n gen_opc_ptr.push({func:op_iwmmxt_ldl_kernel});\n}", "gpu() {\n\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x25e073fc;\n this.SUBCLASS_OF_ID = 0x8caebcb1;\n\n this.blocks = args.blocks;\n }", "static newAndUseCContext(ctxPtr) {\n // assert(typeof ctxPtr === 'number');\n return new Hkdf(Module._vscf_hkdf_shallow_copy(ctxPtr));\n }", "function Kernel() {}", "function CommHandler(target, id, kernel, disposeCb) {\n var _this = _super.call(this, disposeCb) || this;\n _this._target = '';\n _this._id = '';\n _this._id = id;\n _this._target = target;\n _this._kernel = kernel;\n return _this;\n }", "function gen_op_ldsb_kernel()\n{\n gen_opc_ptr.push({func:op_ldsb_kernel});\n}", "static newAndUseCContext(ctxPtr) {\n // assert(typeof ctxPtr === 'number');\n return new CipherAlgInfo(Module._vscf_cipher_alg_info_shallow_copy(ctxPtr));\n }", "constructor() {\n super(0, 'W');\n this.type = ComponentType.TYPE_CONNECTOR;\n this.dependant = { V: undefined, I: undefined };\n this.pins = [new Pin(this, 0), new Pin(this, 1)];\n }", "constructor(ent) {\n this.ent = ent;\n this.detectPool = [];\n }", "function gen_op_iwmmxt_stl_kernel()\n{\n gen_opc_ptr.push({func:op_iwmmxt_stl_kernel});\n}", "function gen_op_ldsw_kernel()\n{\n gen_opc_ptr.push({func:op_ldsw_kernel});\n}", "function LContext(){}", "function LContext() {}", "function LContext() {}", "function LContext() {}", "constructor(param) {\n\t\tthis.canvas=param.canvas; // the target canvas to be rendered !MUST be uninitialized context!\n\t\tthis.isRefreshRequested=false; // refresing requested?\n\t\tthis.bitDepth=param.bitDepth||8; // init 8-bit, may be modified\n\t}", "constructor(nodeId, nodeZIndex, canvas, notif) {\n\t\tif (new.target === Node) { \n\t\t\tthrow new Error(\"Can not construct Node instances directly\");\n\t\t}\n\n\t\t// this.#id = nodeId;\n\t\t// this.#zIndex = nodeZIndex;\n\t\t// this.#canvas = canvas;\n\t\t// this.#notif = notif;\n\t\tthis._id = nodeId;\n\t\tthis._zIndex = nodeZIndex;\n\t\tthis._canvas = canvas;\n\t\tthis._notif = notif;\n\t}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x56e0d474;\n this.SUBCLASS_OF_ID = 0x476cbe32;\n\n this.geo = args.geo;\n }", "constructor (width, height) {\n\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.canvas = CANV;\n\n\t\tCANV.width = width;\n\t\tCANV.height = height;\n\t}", "function OC__Cl(obj, cla) {\n var v = this.veneer;\n switch (Z__Region.call(this, obj)) {\n case 3:\n return (cla === v.string_mc ? 1 : 0);\n case 2:\n return (cla === v.routine_mc ? 1 : 0);\n case 1:\n if (cla === v.class_mc) {\n if (Parent.call(this, obj) === v.class_mc)\n return 1;\n if (obj === v.class_mc || obj === v.string_mc ||\n obj === v.routine_mc || obj === v.object_mc)\n return 1;\n return 0;\n }\n if (cla == this.veneer.object_mc) {\n if (Parent.call(this, obj) == v.class_mc)\n return 0;\n if (obj == v.class_mc || obj == v.string_mc ||\n obj == v.routine_mc || obj == v.object_mc)\n return 0;\n return 1;\n }\n if (cla == v.string_mc || cla == v.routine_mc)\n return 0;\n if (Parent.call(this, cla) != v.class_mc) {\n console.error(\"[** Programming error: tried to apply 'ofclass' with non-class **]\");\n return 0;\n }\n var image = this.image;\n var inlist = RA__Pr.call(this, obj, 2);\n if (inlist == 0)\n return 0;\n var inlistlen = RL__Pr.call(this, obj, 2) / 4;\n for (var jx = 0; jx < inlistlen; jx++)\n if (image.readInt32(inlist + jx * 4) === cla)\n return 1;\n return 0;\n default:\n return 0;\n }\n }", "function gen_op_clrex()\n{\n gen_opc_ptr.push({func:op_clrex});\n}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0xf4108aa0;\n this.SUBCLASS_OF_ID = 0xe2e10ef2;\n\n this.singleUse = args.singleUse || null;\n this.selective = args.selective || null;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x06b3765b;\n this.SUBCLASS_OF_ID = 0xfaf846f4;\n\n this.poll = args.poll;\n }", "constructor() {\n this.ops = [];\n this.offset = 0;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0xeb0467fb;\n this.SUBCLASS_OF_ID = 0x9f89304e;\n\n this.channelId = args.channelId;\n this.pts = args.pts || null;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x8341ecc0;\n this.SUBCLASS_OF_ID = 0x99d5cb14;\n\n this.offset = args.offset;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x58e63f6d;\n this.SUBCLASS_OF_ID = 0xf5b399ac;\n\n this.channel = args.channel;\n this.geoPoint = args.geoPoint;\n this.address = args.address;\n }", "constructor(client, leaseId) {\n const clientContext = new StorageClientContext(client.url, client.pipeline.toServiceClientOptions());\n this._url = client.url;\n if (client.name === undefined) {\n this._isContainer = true;\n this._containerOrBlobOperation = new Container(clientContext);\n }\n else {\n this._isContainer = false;\n this._containerOrBlobOperation = new Blob$1(clientContext);\n }\n if (!leaseId) {\n leaseId = coreHttp.generateUuid();\n }\n this._leaseId = leaseId;\n }", "constructor(client, leaseId) {\n const clientContext = new StorageClientContext(client.url, client.pipeline.toServiceClientOptions());\n this._url = client.url;\n if (client.name === undefined) {\n this._isContainer = true;\n this._containerOrBlobOperation = new Container(clientContext);\n }\n else {\n this._isContainer = false;\n this._containerOrBlobOperation = new Blob$1(clientContext);\n }\n if (!leaseId) {\n leaseId = coreHttp.generateUuid();\n }\n this._leaseId = leaseId;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x9f2221c9;\n this.SUBCLASS_OF_ID = 0xf72ed8d9;\n\n this.geoPoint = args.geoPoint;\n this.accessHash = args.accessHash;\n this.w = args.w;\n this.h = args.h;\n this.zoom = args.zoom;\n this.scale = args.scale;\n }", "function gen_op_ldqex_kernel()\n{\n gen_opc_ptr.push({func:op_ldqex_kernel});\n}", "function cl(arg){\r\n console.log(arg);\r\n}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0xe9a734fa;\n this.SUBCLASS_OF_ID = 0x17cc29d9;\n\n this.type = args.type;\n this.location = args.location;\n this.w = args.w;\n this.h = args.h;\n this._bytes = args.bytes;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0xea02c27e;\n this.SUBCLASS_OF_ID = 0x3cc830d9;\n\n this.id = args.id;\n this.providerChargeId = args.providerChargeId;\n }", "constructor(width, height) { //mc:function initialize(width, height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "constructor(webgl_manager, control_panel) {\n super(webgl_manager, control_panel);\n // Send a Triangle's vertices to the GPU's buffers:\n this.shapes = { triangle: new Minimal_Shape() };\n this.shader = new Basic_Shader();\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x77bfb61b;\n this.SUBCLASS_OF_ID = 0x17cc29d9;\n\n this.type = args.type;\n this.location = args.location;\n this.w = args.w;\n this.h = args.h;\n this.size = args.size;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x76768bed;\n this.SUBCLASS_OF_ID = 0x1aca5644;\n\n this.open = args.open || null;\n this.blocks = args.blocks;\n this.title = args.title;\n }", "function ClassHandle() {\n}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x28a20571;\n this.SUBCLASS_OF_ID = 0xcf6419dc;\n\n this.offset = args.offset;\n this.length = args.length;\n }", "function gen_op_sbcl_T0_T1_cc()\n{\n gen_opc_ptr.push({func:op_sbcl_T0_T1_cc});\n}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x70db6837;\n this.SUBCLASS_OF_ID = 0x9f89304e;\n\n this.channelId = args.channelId;\n this.availableMinId = args.availableMinId;\n }", "function gen_op_ldwex_kernel()\n{\n gen_opc_ptr.push({func:op_ldwex_kernel});\n}", "constructor(){\n super();\n\n this.callRef = React.createRef();\n this.divRef = React.createRef();\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x51bdb021;\n this.SUBCLASS_OF_ID = 0x8680d126;\n\n this.channelId = args.channelId;\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x6c37c15c;\n this.SUBCLASS_OF_ID = 0xf729eb9b;\n\n this.w = args.w;\n this.h = args.h;\n }", "constructor(x,y) { // special function for constructor\r\n this.x = x;\r\n this.y = y;\r\n }", "function _ctor() {\n\t}", "constructor(_ctx) {\r\n\t\tthis.ctx = _ctx;\r\n\t\tthis.camera = {\r\n\t\t\tx: 0,\r\n\t\t\ty: 0,\r\n\t\t\tt: MathTools.getIdentityMatrix()\r\n\t\t}\r\n\t\tthis.light = {\r\n\t\t\tx: 0,\r\n\t\t\ty: 0,\r\n\t\t\tc: [255,255,255],\r\n\t\t\tr: 800,\r\n\t\t\ti: 0.3,\r\n\t\t\to: false,\r\n\t\t\tt: MathTools.getIdentityMatrix()\r\n\t\t}\r\n\t\tthis.dl = false\r\n\t}", "function gen_op_iwmmxt_ldb_kernel()\n{\n gen_opc_ptr.push({func:op_iwmmxt_ldb_kernel});\n}", "function LContext() { }", "function LContext() { }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x0296f104;\n this.SUBCLASS_OF_ID = 0xd610e16d;\n\n this.long = args.long;\n this.lat = args.lat;\n this.accessHash = args.accessHash;\n }", "constructor(width, height){\r\n this.width = width;\r\n this.height = height;\r\n }", "function gen_op_sarl_T1_im_cc(param1)\n{\n //gen_opparam_ptr.push(param1);\n gen_opc_ptr.push({func:op_sarl_T1_im_cc, param: param1});\n}" ]
[ "0.5168888", "0.51356775", "0.50367385", "0.49625137", "0.4949822", "0.4907119", "0.48962805", "0.48678347", "0.48567903", "0.4853583", "0.48302686", "0.48228937", "0.48228937", "0.48228937", "0.48228937", "0.48228937", "0.48228937", "0.481383", "0.480489", "0.4803235", "0.47934726", "0.4792162", "0.4792162", "0.4792162", "0.478338", "0.47744122", "0.47628573", "0.47536725", "0.47417215", "0.47399652", "0.47335276", "0.47273833", "0.4680826", "0.46772566", "0.46742132", "0.46583733", "0.4644009", "0.46380422", "0.46355906", "0.46312475", "0.46150824", "0.45896524", "0.45837358", "0.45696333", "0.45605156", "0.4551393", "0.4549974", "0.4547296", "0.45413846", "0.45400506", "0.45365983", "0.45351735", "0.45249367", "0.4518587", "0.45120275", "0.45092028", "0.4508082", "0.45073992", "0.45073992", "0.45073992", "0.4505012", "0.4504164", "0.44967434", "0.449636", "0.44960254", "0.4487196", "0.4483555", "0.4478638", "0.44765824", "0.44742912", "0.4472586", "0.44661027", "0.44470185", "0.44470185", "0.4443898", "0.4438706", "0.44280064", "0.44253632", "0.44159648", "0.44097576", "0.43900672", "0.43888322", "0.43857723", "0.4383021", "0.43802032", "0.43790433", "0.43761832", "0.43735352", "0.4366998", "0.43659732", "0.43651083", "0.43546394", "0.43482736", "0.43453404", "0.43448976", "0.43448752", "0.43448752", "0.4343113", "0.4337376", "0.43305883" ]
0.81737417
0
On inital load, fetch data
componentWillMount() { const {fetchCatFactsAndPics, catFactsAndPicsProps} = this.props; fetchCatFactsAndPics(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init() {\n fetchData();\n}", "initialFetch() {\n this.fetchData({type: \"INITIAL_TABLE_DATA_FETCH\"})\n }", "fetchData() {\n this.initLoading();\n let qs = this.setAndGetQuerySetFromSandBox(this.view, this.qs_url);\n this.data.instance = qs.cache = qs.model.getInstance({}, qs);\n this.setLoadingSuccessful();\n this.getParentInstancesForPath();\n }", "fetchData() {\n this.initLoading();\n let qs = this.setAndGetQuerySetFromSandBox(this.view, this.qs_url);\n this.data.instance = qs.cache = qs.model.getInstance({}, qs);\n this.setLoadingSuccessful();\n this.getParentInstancesForPath();\n }", "fetchInitialData(){\n\t\tModel.prototype.fetch.apply(this, arguments)\n\t\tthis.collect.fetch()\n\t}", "function init() {\n fetchDetails();\n setEvents();\n }", "function init(){\n getData();\n}", "async initializeDataLoad() {\n }", "function initData(){\n container.prepend(progressInfo);\n jQuery.get(getPageURL(0, resource)).done(function(data) {\n records = processData(data, true);\n initView(new recline.Model.Dataset({records:records}));\n numReq = getRequestNumber(data.result.total, pageSize);\n for (var i = 1; i <= numReq; i++) {\n requestData(getPageURL(i, resource));\n };\n });\n }", "fetchData() {\n this.initLoading();\n this.getInstance(this.view, this.qs_url).then(instance => {\n this.setLoadingSuccessful();\n this.data.instance = instance;\n\n if(this.view.schema.autoupdate) {\n this.startAutoUpdate();\n }\n }).catch(error => {\n debugger;\n this.setLoadingError(error);\n });\n\n this.getParentInstancesForPath();\n }", "fetchData() {\n this.initLoading();\n this.setAndGetInstanceFromSandBox(this.view, this.qs_url).then(instance => {\n this.setLoadingSuccessful();\n this.data.instance = instance;\n }).catch(error => {\n this.setLoadingError(error);\n debugger;\n });\n\n this.getParentInstancesForPath();\n }", "function init() {\n\n\t\t\tfetch(url + '/api.php')\n\t\t\t.then(response => response.json())\n\t\t\t.then(fruits => {\n\t\t\t\tfruits.map((item) => {\n\t\t\t\t\t$('#board').append('<div class=\"cadre\"><div class=\"carre flippable ' + item.fruit + '\" logo=\"' + item.fruit + '\"></div></div>')\n\t\t\t\t})\n\n\t\t\t}).then( () => {\n\t\t\t\treturn fetch( url+ '/api.php?action=getscore')\n\t\t\t})\n\t\t\t.then( response => response.json())\n\t\t\t.then(data => {\n\t\t\t\tdata.map( item => {\n\t\t\t\t\t$('#billboard').append('<div>'+item.temps+'</div>')\n\t\t\t\t})\n\t\t\t})\n\t\t}", "function initialize() {\n fetch();\n}", "fetchData() {\n this.initLoading();\n\n this.setFilters(this.qs_url, this.generateBaseFilters());\n this.data.filters = this.getFilters(this.qs_url);\n\n let qs = this.setQuerySet(this.view, this.qs_url).filter(this.getFiltersPrepared(this.qs_url)).prefetch();\n this.setQuerySet(this.view, this.qs_url, qs);\n\n this.getInstancesList(this.view, this.qs_url).then(instances => {\n this.setLoadingSuccessful();\n\n this.setInstancesToData(instances);\n\n if(this.view.schema.autoupdate) {\n this.startAutoUpdate();\n }\n\n }).catch(error => {\n this.setLoadingError(error);\n });\n\n this.getParentInstancesForPath();\n }", "function fetchData() {\n return new Promise(resolve =>\n resolve(initData)\n );\n}", "async function loadData() {\n //initialize() will return either\n //multiple resolved promises of AJAX calls for initializing database or\n //Already Initialized\n const result = await initialize();\n\n //if result is array we have array of resolved promises\n //which they are data which is initialized to database\n if(Array.isArray(result)) {\n //so we just display this data without making additional AJAX call to database\n displayData(result);\n return;\n }\n\n //if data is already initialized we make AJAX request to get it\n const request = {\n method: 'GET',\n headers: {\n authorization: 'Kinvey ' + authToken,\n 'Content-Type': 'application/json',\n },\n };\n\n const response = await fetch(baseUrl, request)\n .then(handler)\n .catch(console.log);\n\n displayData(response);\n}", "_doFetch() {\n\t\tthis.emit(\"needs_data\", this);\n\t}", "init() {\n\t\tthis.replaceData(\n\t\t\tthis.manager.get(\"noReq\"),\n\t\t\tthis.endpoints.get,\n\t\t\tthis.data.get\n\t\t);\n\t}", "function init() {\n\t\t\tresetData();\n\t\t\trefreshTotalCount();\n\t\t\tloadVocabs();\n\t\t}", "function _init() {\n var self = this\n ;\n\n if (!!self['_data']) {\n self.bindTo(_loadData)(self['_data']);\n }\n }", "constructor() {\n this.data = this._loadData();\n }", "initialise() {\n cLogger('Initialising data state');\n // listen for socket events\n socketManager.setListener(this);\n // load the users\n this.getAllUsers();\n // load the entries\n this.getAllEntries();\n }", "getInitialDataForUser () {\n let that = this;\n that.setState({loadingStatus: true});\n\n fetchData.getInitialDataForUser()\n .then(data => {\n that.setState({listOfServices: data});\n })\n .catch(err => {\n that.setState({statusMessage: err});\n })\n .finally ( () => {\n that.setState({loadingStatus: false});\n })\n ;\n }", "function initData(){\n dynarexDataIsland.init();\n loadFunctionTimes();\n setEventListener();\n}", "function init(){\n getReportData();\n }", "fetchData() {\n this.setLoadingSuccessful();\n }", "function init() {\n fetch(\"/faq\")\n .then(checkStatus)\n .then((resp) => resp.json())\n .then(populate)\n .catch(handleError);\n }", "function _init() {\n addEvent();\n getData();\n }", "async fetchInitialData() {\n try {\n let tasks = await Helpers.fetch('/api/tasks', {\n method: 'GET'\n });\n this.setState({tasks: tasks});\n\n let tags = await Helpers.fetch('/api/tags', {\n method: 'GET'\n });\n this.setState({tags: tags, draftTags: tags, loaded: true});\n } catch (error) {\n if (error.response.status === 401) {\n this.props.history.replace('/login');\n } else if (error.response.status === 400) {\n // error in response, display could not load error message\n this.setState({error: error});\n }\n }\n }", "async init() {\n // Initiate classes and wait for async operations here.\n \n const fetchPlanets = async() => {\n const planets = await fetch(\"https://swapi.booost.bg/api/planets/\");\n const planetsIntoJson = await planets.json();\n \n this.data.planets = planetsIntoJson.results;\n this.data.count = planetsIntoJson.count;\n \n let planet = planetsIntoJson;\n while (planet.next) {\n planet = await (await fetch(planet.next)).json();\n this.data.planets = [...this.data.planets, ...planet.results];\n }\n };\n\n await fetchPlanets();\n this.emit(Application.events.APP_READY);\n }", "function initialize() {\n//here you would load your data\n}", "function init() {\n getJSON(requestURL + `?nat=US&results=${employeeCount}`)\n .then(response => fetchedEmployees = response.results)\n .then(() => showGallery(fetchedEmployees))\n .catch(e => console.error('Error in fetch:', e));\n\n createModal();\n createSearch();\n}", "function init() {\n\tloadPostData();\n}", "function init() {\n id(\"find-btn\").addEventListener(\"click\", getData);\n id(\"back-btn\").addEventListener(\"click\", goBack);\n fetch(URL_BASE)\n .then(checkStatus)\n .then(response => response.json())\n .then(addSelection)\n .catch(handleError);\n }", "onCreatedHandler() {\n this.fetchData();\n }", "function RequestLoadGeneralData() {\n\n}", "function fetch_data() {\n\n function on_data_received(data) {\n\t load_data_into_table(data);\n\n if (refresh_rate != 0) {\n\t setTimeout(fetch_data, refresh_rate * 1000);\n\t }\n }\n \n $.ajax({\n url: dataurl,\n method: 'GET',\n dataType: 'json',\n success: on_data_received\n });\n }", "loadData(){\n\t\tlet thisStore = this;\n\t\tClient.fetchBugs(bugs => {\n\t\t\tthis.bugs = bugs;\n\t\t\t//timeout required upon app loading, but no lag due to listening for data load completing\n\t\t\t//data will be loaded into the state of app.jsx\n\t\t\tsetTimeout(function(){thisStore.emit('DATA_LOADED')}, 250);\n\t\t});\n\t}", "function loadData() {\n system.isLoading = true;\n\n $.ajax({\n url: system.apiURL,\n dataType: 'jsonp',\n success: onLoadData\n });\n\n }", "function loadData() {\n consolidatedresults.loaded = false;\n dataService.getConsolidatedResults()\n .then(function(response) {\n //handle the success condition here\n var data = response.data;\n consolidatedresults.realdata = data[0];\n consolidatedresults.col_names = data[1];\n consolidatedresults.loaded = true;\n // console.log(consolidatedresults.realdata);\n // console.log(consolidatedresults.col_names);\n });\n }", "function init() {\n pageService.findPageByWebsiteId(model.websiteId)\n .then(function (response) {\n model.pages = response.data;\n });\n }", "function doFetch() {\n\t\tsetFetching(true);\n\t}", "fetchInitialData(args) {\n return Promise.all([\n makeRequest(\"browse/new-releases\"),\n makeRequest(\"browse/featured-playlists\"),\n makeRequest(\"browse/categories\"),\n ]);\n }", "function initData(callback) {\n initLanguage(); // set the system language if not set\n DB.loadAll(function() {\n if(getUsers() === null){\n setUsers(DB.users);\n console.log('storing users in localStorage');\n }\n if(getBeverages() === null){\n setBeverages(DB.beverages);\n console.log('Storing beverages in localstorage');\n }\n if(getOrders() === null){\n setOrders([]);\n }\n if(callback) callback();\n });\n}", "static async initialData(){\n await Promise.all([\n await dataManager.countriesAuto(),\n await dataManager.world.getAuto(),\n ])\n\n try {\n return {\n world: dataManager.world,\n countries: dataManager.countriesList,\n initialDataLoaded: true\n }\n } catch (e) {\n console.error(e)\n return {\n initialDataError: true,\n }\n }\n }", "function initData(url) {\n // wrap this in a promise, so we know we have it before continuing on to remaining initialize steps\n return new Promise(function(resolve, reject) {\n $.get(url, function(data) {\n resolve(data);\n });\n });\n}", "loadingData() {}", "loadingData() {}", "$onInit() {\n\n \tPromise.all([\n \t\tthis.loadLocations(),\n \t\tthis.loadCategories(), \n \t\tthis.loadCollections()\n \t]).then(() => this.loadFeatures(this.filter))\n }", "function performInitAjaxes() {\n fetchOrganizations();\n fetchFieldTypes();\n fetchDataTypes();\n }", "async function fetchData() {\n\n // get the datasets.json data\n const url = withPrefix('/data/datasets.json')\n const resp = await fetch(url)\n const datasets = await resp.json()\n\n // sort the datasets by added date, descending\n datasets.sort((a, b) => new Date(b.added) - new Date(a.added))\n\n // update the display with latest data\n setDatasets(datasets)\n setFiltered(datasets.map(d => d.slug))\n setSubjects(getSubjects(datasets))\n setStart(getEarliestDate(datasets))\n }", "function init() {\n // var promise = WebsiteService.findAllWebsitesForUser(userId);\n // promise\n // .success(function(websites) {\n // vm.websites = websites;\n // })\n // var url = \"https://bgg-json.azurewebsites.net/hot\";\n // $http.get(url)\n // .success(function(result) {\n // vm.games = result;\n // });\n\n }", "function initLoad() {\n\n\tvar cityHistStore = JSON.parse(localStorage.getItem('city'));\n\n\tif (cityHistStore !== null) {\n\t\tcityHist = cityHistStore\n\t}\n\tgetHistory();\n\tgetWeatherToday();\n}", "async function fetchData() {\n\n let url = urlFoodListGenerator(baseUrl, constants.APIKEY, maxRecipePerCall, listFoodstuffs)\n console.log('fetching from ' + url)\n\n await setFetchLoading(true)\n fetch(url)\n .then((response) => response.json())\n .then((data) => {\n console.table(data)\n console.log(data)\n setData(data)\n setFetchLoading(false)\n\n })\n .catch((e) => {\n setFetchError(e)\n setFetchLoading(false)\n })\n }", "function initialize() {\n\n $.ajax({\n method: 'GET',\n url: 'map/usersfeed',\n dataType: 'JSON',\n })\n .done(function(data) {\n populateMap(data);\n console.log(\"Successfully got data on initialize!!\");\n })\n .fail(function(data) {\n console.log( \"Failed to get my own data initialize :(\");\n console.log(JSON.stringify(data));\n })\n}", "componentWillMount() {\n this.fetchData();\n\n this.loadDatafromLocalStorage();\n }", "async componentDidMount(){\n if(!this.state.initialDataLoaded){ //initialDataLoaded is used to know if the data is loaded\n const initialData = await Home.initialData()\n this.setState({...initialData})\n }\n }", "async componentDidMount(){\n if(!this.state.initialDataLoaded){ //initialDataLoaded is used to know if the data is loaded\n const initialData = await Home.initialData()\n this.setState({...initialData})\n }\n }", "async _init() {\n // load the container from DOM, and check it\n const loaded = this._loadContainer(this._options.container);\n\n if (!loaded) return;\n\n // init html templates\n this._initContainer();\n this._initControls();\n this._renderControls();\n\n // init listeners\n this._initListeners();\n\n // first data load\n await this._fetchCards(this._maxDisplayedCards);\n this._loadCurrentPage();\n }", "function getData() {\n fetch(baseURL)\n .then((response) => response.json())\n .then((data) => {\n dataSet.push(...data);\n init();\n })\n .catch((error) => {\n container__top.innerHTML = `${NO_DATA_FOUND} ${error}`;\n });\n getData2();\n getData3();\n }", "function init(){\n loadOrders();\n verifyPermission(); \n loadProducts();\n setfilter(); \n}", "function init() {\n retrieveNodes();\n }", "loadData() {\n\n }", "async connectedCallback() {\n let request = new XMLHttpRequest();\n request.open('GET', jsonData, false);\n request.send(null);\n this.data = JSON.parse(request.responseText);\n // turns out that github does not provide \n // unauthenticated access to public repos over rest\n // Thank you github. Hence cannot fatch Data using the Fetch API \n //const data = await fetchDataHelper({ amountOfRecords: 100 });\n //this.data = data;\n this.calculateData();\n }", "function loadData() {\n // set all our variables\n setVars(twitch.configuration)\n // do an initial browse to `/`(root)\n navigate()\n // remove our loading element from the DM\n removeElement(\"repo-loading\")\n}", "function init() {\n logger.info('INIT called');\n clearAllErrors();\n Alloy.Models.customer.trigger('fetch', {});\n}", "function initializer() {\n\t// xhr.loadFoodItems(data.whenFoodItemsLoad, data.errorFunction);\n\txhr.loadFoodItems();\n}", "function initData() {\n data = $.getJSON('./data/weathers.json').done(() => {\n console.log(\"Loaded: JSON - data\");\n data = data.responseJSON;\n console.log(data);\n initPage();\n }).fail(() => {\n console.log(\"Error when loading JSON - data.\");\n });\n}", "async fetchData() {\n const {siteUrl} = this.props;\n try {\n this.GhostApi = setupGhostApi({siteUrl});\n const {site, member} = await this.GhostApi.init();\n site.is_stripe_configured = (site.is_stripe_configured === undefined) || site.is_stripe_configured;\n const stripeParam = this.getStripeUrlParam();\n const {page, showPopup = false} = this.getDefaultPage({member, stripeParam});\n this.setState({\n site,\n member,\n page,\n showPopup,\n action: 'init:success',\n initStatus: 'success'\n });\n } catch (e) {\n /* eslint-disable no-console */\n console.error(`[Members.js] Failed to initialize`);\n /* eslint-enable no-console */\n this.setState({\n action: 'init:failed',\n initStatus: 'failed'\n });\n }\n }", "function init() {\n self.loading = {\n init: false,\n };\n\n self.campaign = angular.copy(campaign);\n\n self.details = {\n todo: null,\n success: null,\n failed: null,\n };\n\n self.list = {\n todo: true,\n success: true,\n failed: false,\n };\n\n self.loading.init = true;\n return fetchCampaignDetail(campaign)\n .then((details) => assign(self.details, details))\n .catch((err) => {\n if (err.status === 400) {\n return $q.reject(err);\n }\n return new TucToastError(err);\n })\n .finally(() => {\n self.loading.init = false;\n });\n }", "function initData() {\n initLtr_factor();\n initBosunit();\n initHero();\n initSelect25();\n initMS();\n}", "async loadData() {\n this.setState({\n data: await get()\n })\n }", "componentDidMount() {\n this.fetchData(specialsUrl)\n }", "loadData() {\n this.hvacData = HVACDataLoader.getHVACData(this);\n if (this.hvacData.getBuildingList().length > 0) this.selectBuilding(this.hvacData.getBuildingList()[0]);\n }", "componentDidMount() {\n // data can be fetched here for the first time\n }", "componentDidMount() {\n\t\tthis.fetchData();\n\t}", "async init() {\n this.isLoading = false;\n this.user = this.inputs.getOption('user');\n this.username = this.inputs.getOption('username');\n\n if (!this.user) {\n let user = this.cachedUser('username', this.username);\n if (this.username && user) {\n this.user = user;\n } else {\n this.isLoading = true;\n let { record: user } = await this.usersService.getByUserName(this.username);\n this.user = user;\n this.isLoading = false;\n UserCard.loadedUsers.push(user);\n\n this.dc();\n }\n } else {\n if (!this.cachedUser('id', this.user.id)) {\n UserCard.loadedUsers.push(this.user);\n }\n }\n }", "async function fetcher() {\n let data = {};\n try {\n data = await query()\n }\n catch (error) {\n setError(error)\n return\n }\n console.log(\"DATAAA\", data)\n setLoading(false)\n setData(data)\n setDone(true)\n }", "function init() {\n vm.loaded = 0;\n\n if (type == 'followers') loadFollowers();\n else if (type == 'following') loadFollowing();\n }", "function init() {\n\t\t\tconsole.log(\"init()\");\n\t\t\tresetData();\n\t\t\trefreshTotalCount();\n\t\t\taddAdbRow();\n\t\t\tconsole.log(\"done init()\");\n\t\t}", "function _loadRemoteData() {\n $scope.isLoading = true;\n\n QueryService.getAvailableQueries(\"offers\")\n .then(function(result) {\n serveResult(result);\n })\n .catch(function(error) {\n console.log(error);\n alert('wystąpil błąd...');\n })\n .finally(function() {\n $scope.isLoading = false;\n });\n }", "function LoadData(){\n\tLoadDataFiles();\n\tExtractDataFromFiles();\n}", "initializeLoadOrder() {\n this.loadorder = json.read(\"user/cache/loadorder.json\");\n }", "function init() {\n autoScroll();\n countDown();\n fetchWeather();\n fetchDestinations();\n formValidation();\n }", "init() {\n if (this.__isInitialized) {\n return; // silently do nothing.\n }\n\n this.__isInitialized = true;\n let data = this.cursor.fetch();\n\n data.forEach(doc => {\n this.store[doc._id] = doc;\n });\n }", "componentWillMount() {\n this.fetchData();\n\n }", "function init() {\n studentSrv.getStudents().then(function (result) {\n for (let stu in result.data) {\n $scope.manifest.push(result.data[stu]);\n $scope.getStudentCalls.push($http.get(`/api/v1/students/${result.data[stu]}.json`)\n .then(function(result) {\n result.data.id = $scope.manifest[stu];\n result.data.startDate = new Date(result.data.startDate);\n $scope.students.push(result.data);\n }\n ));\n }\n });\n $scope.checkCookies();\n }", "function init() {\n getData({}, mapDrawing);\n getPlaylist({}, loadPlaylist);\n\n console.log(\"Init functie\");\n}", "function initialize() {\n getData('LionelNanchen');\n getData('onicoleheig');\n getData('wasadigi');\n getData('paulnta');\n getData('edri');\n getData('mraheigvd');\n getData('kamkill01011');\n getData('onicole');\n }", "async componentDidMount(){\n const fetchedData = await fetchData(); \n //sets the state's data to what we just fetched \n this.setState({ data: fetchedData}); \n }", "fetch_init(url){\n \n var propublica = { method: 'GET',\n headers: {'X-API-Key': 'XJQQZrc8WR5srkXqM3T2Bb4J35gWbhkPgzY3i7oo'}\n };\n \n fetch(url, propublica).then(function(response) {\n return response.json();\n \n })\n .then(function(data) {\n app.members = data.results[0].members; \n members = app.members \n app.calculate_Statistics();\n });\n }", "init() {\n return new Promise(\n (resolve, reject) => {\n this._resModel\n .fetchCsv(process.env.TEST_DATA_FILE)\n .then(testItems => {\n this._testItems = testItems;\n this._resModel\n .fetchJson(process.env.TEST_DATA_FILE_2)\n .then(categoryItems => {\n this._testCategories = categoryItems;\n resolve(this._testCategories);\n })\n .catch(err => {\n reject(err);\n });\n })\n .catch(err => {\n reject(err);\n });\n });\n }", "function loadLocalData(){\n if($scope.loading){\n return;\n }\n $scope.loading = true;\n storeService.getAllEntries(soup.name, sortBy, 'ascending').then(function(result){\n $scope.entries = result.currentPageOrderedEntries;\n console.log('entries', $scope.entries);\n $scope.loading = false;\n }, function(err){\n $scope.loading = false;\n });\n }", "async fetchData() {\n let data = await (await fetch(\"http://localhost:8080/short\")).json();\n let elems = [];\n data.forEach(item => elems.push(this.createElements(item)));\n this.addToNav(elems);\n }", "componentDidMount() {\n // Only fetch if no news in component's state\n if(!this.state.news) {\n News.requestInitialData().then(news => this.setState({ news }));\n }\n }", "async function fetchData(){\n const response = await fetch(\"https://anapioficeandfire.com/api/houses?pageSize=100\");\n const data = await response.json();\n setHouse(data);\n }", "componentWillMount() {\n this.retrieveData();\n }", "function init() {\n\t\t\tUser.all().success(function(data) {\n\t\t\t\t$rootScope.processing = false;\n\t\t\t\t$scope.users = data;\n\t\t\t});\n\t\t}", "fetchData() {\n fetch(REQUEST_URL)\n .then((response) => response.json())\n .then((responseData) => {\n this.setState({\n dataSource: this.state.dataSource.cloneWithRows(responseData.movies),\n loaded: true,\n });\n })\n .done();\n }", "async componentDidMount() {\r\n\r\n await fetch('http://95.217.79.12:2000/MainList')\r\n .then((response) => response.json())\r\n .then((responseJson) => {\r\n this.setState({\r\n isLoading: false,\r\n dataSource: responseJson\r\n });\r\n this.arrayholder = responseJson;\r\n })\r\n .catch((error) => {\r\n Alert.alert('You are offline');\r\n console.error(error);\r\n });\r\n }", "componentDidMount() {\n this.fetchData()\n }" ]
[ "0.8595201", "0.76764184", "0.75965047", "0.75965047", "0.75288916", "0.74673873", "0.7390784", "0.73400784", "0.7329104", "0.726089", "0.72332233", "0.72240025", "0.7186323", "0.7104218", "0.70820445", "0.7066101", "0.6984008", "0.69422996", "0.68664616", "0.68631786", "0.6861195", "0.6859579", "0.68391764", "0.68115145", "0.6774385", "0.67663467", "0.676606", "0.6721551", "0.6718557", "0.6717495", "0.66992235", "0.6675353", "0.6661246", "0.66609234", "0.665739", "0.6652435", "0.6652044", "0.66279155", "0.6624968", "0.66244483", "0.66079986", "0.6606988", "0.66063607", "0.65880305", "0.65877265", "0.65870833", "0.65840966", "0.65840966", "0.65762365", "0.65708935", "0.6567834", "0.65643203", "0.6546636", "0.65415037", "0.6529999", "0.65222484", "0.65216106", "0.65216106", "0.6508571", "0.65063035", "0.6505673", "0.64878356", "0.6485771", "0.64845", "0.6475412", "0.6474945", "0.6454057", "0.64487356", "0.6447916", "0.644698", "0.64447063", "0.6442469", "0.6441022", "0.6437862", "0.6434816", "0.6429174", "0.64253926", "0.6421925", "0.6419066", "0.6418681", "0.64135957", "0.6405867", "0.6404742", "0.6398732", "0.6392251", "0.6383834", "0.6380659", "0.6378741", "0.637397", "0.63706225", "0.6356121", "0.634735", "0.6346146", "0.6332911", "0.6332688", "0.63312125", "0.6319312", "0.631791", "0.6317119", "0.63079816", "0.63040465" ]
0.0
-1
this is simply a shortcut for the eyes and fingers
function $(id) { return document.getElementById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function servostart(e) {\n\tx_finger_bak = e.changedTouches[0].screenX\n\ty_finger_bak = e.changedTouches[0].screenY\n\treturn false\n}", "function drawFace() {\n // eyes\n leftEye = draw(\"O\", 300, 140);\n rightEye = draw(\"O\", 400, 140);\n blink(leftEye, \"^\", 200);\n blink(rightEye, \"^\", 200);\n\n // nose\n draw(\">\", 360, 210);\n\n // mouth\n draw(\"*\", 265, 270);\n draw(\"*\", 300, 300);\n draw(\"*\", 350, 310);\n draw(\"*\", 400, 300);\n draw(\"*\", 435, 270);\n}", "function drawFace() {\n // eyes\n draw(\"O\", 300, 140);\n draw(\"O\", 400, 140);\n // mouth\n draw(\"O\", 350, 310);\n}", "function drawFace() {\n // eyes\n draw(\"O\", 300, 140);\n draw(\"O\", 400, 140);\n\n // nose\n draw(\">\", 360, 210);\n\n // mouth\n draw(\"O\", 350, 310);\n}", "function drawFace() {\n // eyes\n draw(\"O\", 300, 140);\n draw(\"O\", 400, 140);\n\n // nose\n draw(\">\", 360, 210);\n\n // mouth\n draw(\"*\", 300, 300);\n draw(\"*\", 350, 310);\n draw(\"*\", 400, 300);\n}", "function drawFace() {\n // eyes\n draw(\"O\", 300, 140);\n draw(\"O\", 400, 140);\n\n // nose\n draw(\">\", 360, 210);\n\n // mouth\n draw(\"*\", 265, 270);\n draw(\"*\", 300, 300);\n draw(\"*\", 350, 310);\n draw(\"*\", 400, 300);\n draw(\"*\", 435, 270);\n}", "function handler() {\n applyFishEye(\n sig.mousecaptor.mouseX,\n sig.mousecaptor.mouseY\n );\n }", "function ELdown(){\n console.log(\"In eyes l arrow clicked\");\n eyes.destroy();\n eyeindex--;\n if(eyeindex<=0)\n {\n eyeindex = 0;\n eyes = game.add.image(970, 235, images.eyes[eyeindex].name);\n eyes.scale.setTo(0.1);\n be = bb.create(550, 55, images.eyes[eyeindex].name);\n be.scale.setTo(0.1);\n }\n else if (eyeindex >= images.eyes.length)\n {\n eyeindex = images.eyes.length -1;\n eyes = game.add.image(970, 235, images.eyes[eyeindex].name);\n eyes.scale.setTo(0.1);\n be = bb.create(550, 55, images.eyes[eyeindex].name);\n be.scale.setTo(0.1);\n }\n else\n {\n eyes = game.add.image(970, 235, images.eyes[eyeindex].name);\n eyes.scale.setTo(0.1);\n be = bb.create(550, 55, images.eyes[eyeindex].name);\n be.scale.setTo(0.1);\n }\n player.appearance.head.eye = images.eyes[eyeindex].name;\n\n}", "function handler() {\n applyFishEye(\n sig.mousecaptor.mouseX,\n sig.mousecaptor.mouseY\n );\n }", "function drawFace() {\n // eyes\n leftEye = draw(\"O\", 300, 140);\n rightEye = draw(\"O\", 400, 140);\n blink(leftEye, \"^\", 200);\n blink(rightEye, \"^\", 200);\n\n // nose\n draw(\">\", 360, 210);\n\n // mouth\n draw(\"*\", 265, 270);\n draw(\"*\", 300, 300);\n draw(\"*\", 350, 310);\n draw(\"*\", 400, 300);\n draw(\"*\", 435, 270);\n\n // border\n drawHorizontal(\"-\", 180, 550, 50, 20);\n drawHorizontal(\"-\", 180, 550, 400, 20);\n drawVertical(\"|\", 88, 400, 180, 55);\n drawVertical(\"|\", 88, 400, 543, 55);\n}", "function stare() {\n\t\ttry {\n\t\t\tmoveEye(\".tally_eye_left\", \"stare\");\n\t\t\tmoveEye(\".tally_eye_right\", \"stare\");\n\t\t\tsetTimeout(function() {\n\t\t\t\tfollowCursor = true;\n\t\t\t}, 400);\n\t\t} catch (err) {\n\t\t\tconsole.error(err);\n\t\t}\n\t}", "function drawEyes(){ \npush();\n ellipseMode(RADIUS); //this draws the outside of left eye\n fill(255); //eye colour\n ellipse(width/2.5, height/2.5, 30, 30); //eye position\n ellipseMode(CENTER); //this draws the inside of the left eye\n fill(100); //inside eye colour\n ellipse(width/2.5, height/2.5, 20, 20); //inside eye position\n\n ellipseMode(RADIUS);\n fill(255);\n ellipse(width/1.7, height/2.5, 30, 30);\n ellipseMode(CENTER);\n fill(100);\n ellipse(width/1.7, height/2.5, 20, 20); \npop(); \n}", "function dealWithKeyboard(e) {\n var dr = 0.005;\n switch (e.keyCode) {\n case 37: // left arrow Sweep Left\n {yaw += dr * 20;}\n break;\n case 39: // right arrow Sweep right\n {yaw -= dr * 20;}\n break;\n case 38: // up arrow Sweep Up\n {pitch -= dr * 20;}\n break;\n case 40: // down arrow Sweep Down\n {pitch += dr * 20;}\n break;\n }\n}", "function touchstart(e) {\n\tx_finger_bak = e.changedTouches[0].screenX\n\ty_finger_bak = e.changedTouches[0].screenY\n\tshow_ctrl(true)\n\treturn false\n}", "static view(eye, target, up)\n\t{\n\t\t\n\t}", "function drawFace(){\n drawHead();\n drawEyes();\n drawMouth(); \n drawNose();\n drawEar();\n drawShoulders();\n dragSegment(0, mouseX, mouseY); // this is for the eye follow code\n for (let i = 0; i < x.length - 1; i++) {\n dragSegment(i + 1, x[i], y[i]);\n }\n}", "function mousePressed() {\n // Only look for mouse presses during the actual test\n if (draw_finger_arm) {\n // Check if mouse click happened within the touch input area\n if (\n mouseClickWithin(\n width / 2 - 2.0 * PPCM,\n height / 2 - 1.0 * PPCM,\n 4.0 * PPCM,\n 3.0 * PPCM\n )\n ) {\n // Check if mouse click was on left arrow (2D keyboard)\n //if (mouseClickWithin(width/2 - ARROW_SIZE, height/2, ARROW_SIZE, ARROW_SIZE))\n //{\n //current_letter = getPreviousChar(current_letter);\n //if (current_letter.charCodeAt(0) < '_'.charCodeAt(0)) current_letter = 'z'; // wrap around to z\n //}\n //// Check if mouse click was on right arrow (2D keyboard)\n //else if (mouseClickWithin(width/2, height/2, ARROW_SIZE, ARROW_SIZE))\n //{\n //current_letter = getNextChar(current_letter);\n //if (current_letter.charCodeAt(0) > 'z'.charCodeAt(0)) current_letter = '_'; // wrap back to space (i.e., the underscore)\n //}\n //else\n //{\n //// Click in whitespace indicates a character input (2D keyboard)\n //if (current_letter == '_') currently_typed += \" \"; // if underscore, consider that a space bar\n //else if (current_letter == '`' && currently_typed.length > 0) // if `, treat that as delete\n //currently_typed = currently_typed.substring(0, currently_typed.length - 1);\n //else if (current_letter != '`') currently_typed += current_letter; // if not any of the above cases, add the current letter to the entered phrase\n //}\n\n if (mouseClickWithin(BASE_WIDTH, BASE_HEIGHT, BT_WIDTH, BT_HEIGHT))\n buttonPressed(0);\n else if (\n mouseClickWithin(\n BASE_WIDTH + BT_WIDTH,\n BASE_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(1);\n else if (\n mouseClickWithin(\n BASE_WIDTH + 2 * BT_WIDTH,\n BASE_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(2);\n else if (\n mouseClickWithin(\n BASE_WIDTH,\n BASE_HEIGHT + BT_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(3);\n else if (\n mouseClickWithin(\n BASE_WIDTH + BT_WIDTH,\n BASE_HEIGHT + BT_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(4);\n else if (\n mouseClickWithin(\n BASE_WIDTH + 2 * BT_WIDTH,\n BASE_HEIGHT + BT_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(5);\n else if (\n mouseClickWithin(\n BASE_WIDTH,\n BASE_HEIGHT + 2 * BT_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(6);\n else if (\n mouseClickWithin(\n BASE_WIDTH + BT_WIDTH,\n BASE_HEIGHT + 2 * BT_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(7);\n else if (\n mouseClickWithin(\n BASE_WIDTH + 2 * BT_WIDTH,\n BASE_HEIGHT + 2 * BT_HEIGHT,\n BT_WIDTH,\n BT_HEIGHT\n )\n )\n buttonPressed(8);\n else if (\n mouseClickWithin(\n width / 2 - 2.0 * PPCM,\n height / 2 - 1.0 * PPCM,\n (4.0 * PPCM) / 3,\n 0.592 * PPCM\n )\n )\n wordPressed(0);\n else if (\n mouseClickWithin(\n width / 2 - (2.0 * PPCM) / 3,\n height / 2 - 1.0 * PPCM,\n (4.0 * PPCM) / 3,\n 0.592 * PPCM\n )\n )\n wordPressed(1);\n else if (\n mouseClickWithin(\n width / 2 + (2.0 * PPCM) / 3,\n height / 2 - 1.0 * PPCM,\n (4.0 * PPCM) / 3,\n 0.592 * PPCM\n )\n )\n wordPressed(2);\n }\n\n // Check if mouse click happened within 'ACCEPT'\n // (i.e., submits a phrase and completes a trial)\n else if (\n mouseClickWithin(\n width / 2 - 2 * PPCM,\n height / 2 - 5.1 * PPCM,\n 4.0 * PPCM,\n 2.0 * PPCM\n )\n ) {\n // Saves metrics for the current trial\n letters_expected += target_phrase.trim().length;\n letters_entered += currently_typed.trim().length;\n errors += computeLevenshteinDistance(\n currently_typed.trim(),\n target_phrase.trim()\n );\n entered[current_trial] = currently_typed;\n trial_end_time = millis();\n\n current_trial++;\n\n // Check if the user has one more trial/phrase to go\n if (current_trial < 2) {\n // Prepares for new trial\n currently_typed = \"\";\n target_phrase = phrases[current_trial];\n } else {\n // The user has completed both phrases for one attempt\n draw_finger_arm = false;\n attempt_end_time = millis();\n\n printAndSavePerformance(); // prints the user's results on-screen and sends these to the DB\n attempt++;\n\n // Check if the user is about to start their second attempt\n if (attempt < 2) {\n second_attempt_button = createButton(\"START 2ND ATTEMPT\");\n second_attempt_button.mouseReleased(startSecondAttempt);\n second_attempt_button.position(\n width / 2 - second_attempt_button.size().width / 2,\n height / 2 + 200\n );\n }\n }\n }\n }\n}", "function keyPressed() {\n if (keyCode === RIGHT_ARROW && snakeDiraction != 'l') {\n snakeDiraction = 'r';\n }\n\n if (keyCode === LEFT_ARROW && snakeDiraction != 'r') {\n snakeDiraction = 'l';\n\n }\n\n if (keyCode === DOWN_ARROW && snakeDiraction != 'u') {\n snakeDiraction = 'd';\n }\n\n if (keyCode === UP_ARROW && snakeDiraction != 'd') {\n snakeDiraction = 'u';\n }\n}", "function draw() {\n background(0);\n displayScore();\n //Check if there is a hand.\n if (predictions.length > 0) {\n let hand = predictions[0];\n //Fingers\n let index = hand.annotations.indexFinger;\n let ring = hand.annotations.ringFinger;\n //Array for tip and base fingers\n let tip = index[3];\n let base = index[0];\n let ringTip = ring[3];\n let ringBase = ring[0];\n //Tip position for the array for fingers\n let tipX = tip[0];\n let tipY = tip[1];\n let ringTipX = ringTip[0];\n let ringTipY = ringTip[1];\n //Base position for the array for fingers\n let baseX = base[0];\n let baseY = base[1];\n let ringBaseX = ringBase[0];\n let ringBaseY = ringBase[1];\n //Draws pin - index\n push();\n noFill();\n stroke(255, 255, 255);\n strokeWeight(2);\n line(baseX, baseY, tipX, tipY);\n pop();\n //Draws pin - ring\n push();\n noFill();\n stroke(255, 255, 255);\n strokeWeight(2);\n line(ringBaseX, ringBaseY, ringTipX, ringTipY);\n pop();\n //Pin dot - index\n push();\n noStroke();\n fill(255, 0, 0);\n ellipse(baseX, baseY, 20, 20);\n pop();\n //Pin dot - ring\n push();\n noStroke();\n fill(255, 0, 0);\n ellipse(ringBaseX, ringBaseY, 20, 20);\n pop();\n //Checks overlap finger tips and bubble\n let d = dist(tipX, tipY, bubble.x, bubble.y);\n let j = dist(ringTipX, ringTipY, bubble.x, bubble.y);\n if (d < bubble.size / 2 || j < bubble.size / 2) {\n bubble.x = random(width);\n bubble.y = height;\n currentScore++;\n //Plays SFX to the overlap.\n if (!popSFX.isPlaying()) {\n popSFX.play();\n }\n }\n }\n bubbleMovement();\n displayBubble();\n scoreUpdate();\n}", "function Zf(e){function t(){r.activeTouch&&(f=setTimeout(function(){return r.activeTouch=null},1e3),o=r.activeTouch,o.end=+new Date)}function a(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function n(e,t){if(null==t.left)return!0;var a=t.left-e.left,n=t.top-e.top;return a*a+n*n>400}var r=e.display;ni(r.scroller,\"mousedown\",pn(e,Af)),\n // Older IE's will not fire a second mousedown for a double click\n vo&&wo<11?ni(r.scroller,\"dblclick\",pn(e,function(t){if(!Ne(e,t)){var a=Ca(e,t);if(a&&!zf(e,t)&&!Pt(e.display,t)){Ae(t);var n=e.findWordAt(a);pr(e.doc,n.anchor,n.head)}}})):ni(r.scroller,\"dblclick\",function(t){return Ne(e,t)||Ae(t)}),\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n Bo||ni(r.scroller,\"contextmenu\",function(t){return qf(e,t)});\n // Used to suppress mouse event handling when a touch happens\n var f,o={end:0};ni(r.scroller,\"touchstart\",function(t){if(!Ne(e,t)&&!a(t)&&!zf(e,t)){r.input.ensurePolled(),clearTimeout(f);var n=+new Date;r.activeTouch={start:n,moved:!1,prev:n-o.end<=300?o:null},1==t.touches.length&&(r.activeTouch.left=t.touches[0].pageX,r.activeTouch.top=t.touches[0].pageY)}}),ni(r.scroller,\"touchmove\",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),ni(r.scroller,\"touchend\",function(a){var f=r.activeTouch;if(f&&!Pt(r,a)&&null!=f.left&&!f.moved&&new Date-f.start<300){var o,i=e.coordsChar(r.activeTouch,\"page\");o=!f.prev||n(f,f.prev)?new Di(i,i):!f.prev.prev||n(f,f.prev.prev)?e.findWordAt(i):new Di(R(i.line,0),q(e.doc,R(i.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ae(a)}t()}),ni(r.scroller,\"touchcancel\",t),\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n ni(r.scroller,\"scroll\",function(){r.scroller.clientHeight&&(Ya(e,r.scroller.scrollTop),en(e,r.scroller.scrollLeft,!0),Te(e,\"scroll\",e))}),\n // Listen to wheel events in order to try and update the viewport on time.\n ni(r.scroller,\"mousewheel\",function(t){return Un(e,t)}),ni(r.scroller,\"DOMMouseScroll\",function(t){return Un(e,t)}),\n // Prevent wrapper from ever scrolling\n ni(r.wrapper,\"scroll\",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(t){Ne(e,t)||Re(t)},over:function(t){Ne(e,t)||(Jr(e,t),Re(t))},start:function(t){return Yr(e,t)},drop:pn(e,Xr),leave:function(t){Ne(e,t)||ef(e)}};var i=r.input.getField();ni(i,\"keyup\",function(t){return Mf.call(e,t)}),ni(i,\"keydown\",pn(e,Tf)),ni(i,\"keypress\",pn(e,Of)),ni(i,\"focus\",function(t){return Ra(e,t)}),ni(i,\"blur\",function(t){return Pa(e,t)})}", "function Hammer(a,b,c){function x(a){return a.touches?a.touches.length:1}function y(a){a=a||window.event;if(!w){var b=document,c=b.body;return[{x:a.pageX||a.clientX+(b&&b.scrollLeft||c&&c.scrollLeft||0)-(b&&b.clientLeft||c&&b.clientLeft||0),y:a.pageY||a.clientY+(b&&b.scrollTop||c&&c.scrollTop||0)-(b&&b.clientTop||c&&b.clientTop||0)}]}else{var d=[],e;for(var f=0,g=a.touches.length;f<g;f++){e=a.touches[f];d.push({x:e.pageX,y:e.pageY})}return d}}function z(a,b){return Math.atan2(b.y-a.y,b.x-a.x)*180/Math.PI}function A(a,b){var c=b.x-a.x,d=b.y-a.y;return Math.sqrt(c*c+d*d)}function B(a,b){if(a.length==2&&b.length==2){var c=A(a[0],a[1]);var d=A(b[0],b[1]);return d/c}return 0}function C(a,b){if(a.length==2&&b.length==2){var c=z(a[1],a[0]);var d=z(b[1],b[0]);return d-c}return 0}function D(a,b){b.touches=y(b.originalEvent);b.type=a;if(L(d[\"on\"+a])){d[\"on\"+a].call(d,b)}}function E(a){a=a||window.event;if(a.preventDefault){a.preventDefault();a.stopPropagation()}else{a.returnValue=false;a.cancelBubble=true}}function F(){i={};k=false;j=0;f=0;g=0;l=null}function H(c){switch(c.type){case\"mousedown\":case\"touchstart\":i.start=y(c);n=(new Date).getTime();j=x(c);k=true;t=c;var d=a.getBoundingClientRect();var e=a.clientTop||document.body.clientTop||0;var o=a.clientLeft||document.body.clientLeft||0;var p=window.pageYOffset||a.scrollTop||document.body.scrollTop;var q=window.pageXOffset||a.scrollLeft||document.body.scrollLeft;r={top:d.top+p-e,left:d.left+q-o};s=true;G.hold(c);if(b.prevent_default){E(c)}break;case\"mousemove\":case\"touchmove\":if(!s){return false}u=c;i.move=y(c);if(!G.transform(c)){G.drag(c)}break;case\"mouseup\":case\"mouseout\":case\"touchcancel\":case\"touchend\":if(!s||l!=\"transform\"&&c.touches&&c.touches.length>0){return false}s=false;v=c;G.swipe(c);if(l==\"drag\"){D(\"dragend\",{originalEvent:c,direction:h,distance:f,angle:g})}else if(l==\"transform\"){D(\"transformend\",{originalEvent:c,position:i.center,scale:B(i.start,i.move),rotation:C(i.start,i.move)})}else{G.tap(t)}m=l;D(\"release\",{originalEvent:c,gesture:l});F();break}}function I(b){if(!J(a,b.relatedTarget)){H(b)}}function J(a,b){if(!b&&window.event&&window.event.toElement){b=window.event.toElement}if(a===b){return true}if(b){var c=b.parentNode;while(c!==null){if(c===a){return true}c=c.parentNode}}return false}function K(a,b){var c={};if(!b){return a}for(var d in a){if(d in b){c[d]=b[d]}else{c[d]=a[d]}}return c}function L(a){return Object.prototype.toString.call(a)==\"[object Function]\"}function M(a,b,c){b=b.split(\" \");for(var d=0,e=b.length;d<e;d++){if(a.addEventListener){a.addEventListener(b[d],c,false)}else if(document.attachEvent){a.attachEvent(\"on\"+b[d],c)}}}function N(a,b,c){b=b.split(\" \");for(var d=0,e=b.length;d<e;d++){if(a.removeEventListener){a.removeEventListener(b[d],c,false)}else if(document.detachEvent){a.detachEvent(\"on\"+b[d],c)}}}var d=this;var e={prevent_default:false,css_hacks:true,swipe:true,swipe_time:200,swipe_min_distance:20,drag:true,drag_vertical:true,drag_horizontal:true,drag_min_distance:20,transform:true,scale_treshold:.1,rotation_treshold:15,tap:true,tap_double:true,tap_max_interval:300,tap_max_distance:10,tap_double_distance:20,hold:true,hold_timeout:500};b=K(e,b);(function(){if(!b.css_hacks){return false}var c=[\"webkit\",\"moz\",\"ms\",\"o\",\"\"];var d={userSelect:\"none\",touchCallout:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"};var e=\"\";for(var f=0;f<c.length;f++){for(var g in d){e=g;if(c[f]){e=c[f]+e.substring(0,1).toUpperCase()+e.substring(1)}a.style[e]=d[g]}}})();var f=0;var g=0;var h=0;var i={};var j=0;var k=false;var l=null;var m=null;var n=null;var o={x:0,y:0};var p=null;var q=null;var r={};var s=false;var t;var u;var v;var w=\"ontouchstart\"in window;this.option=function(a,d){if(d!=c){b[a]=d}return b[a]};this.getDirectionFromAngle=function(a){var b={down:a>=45&&a<135,left:a>=135||a<=-135,up:a<-45&&a>-135,right:a>=-45&&a<=45};var c,d;for(d in b){if(b[d]){c=d;break}}return c};this.destroy=function(){if(w){N(a,\"touchstart touchmove touchend touchcancel\",H)}else{N(a,\"mouseup mousedown mousemove\",H);N(a,\"mouseout\",I)}};var G={hold:function(a){if(b.hold){l=\"hold\";clearTimeout(q);q=setTimeout(function(){if(l==\"hold\"){D(\"hold\",{originalEvent:a,position:i.start})}},b.hold_timeout)}},swipe:function(a){if(!i.move){return}var c=i.move[0].x-i.start[0].x;var e=i.move[0].y-i.start[0].y;f=Math.sqrt(c*c+e*e);var j=(new Date).getTime();var k=j-n;if(b.swipe&&b.swipe_time>k&&f>b.swipe_min_distance){g=z(i.start[0],i.move[0]);h=d.getDirectionFromAngle(g);l=\"swipe\";var m={x:i.move[0].x-r.left,y:i.move[0].y-r.top};var o={originalEvent:a,position:m,direction:h,distance:f,distanceX:c,distanceY:e,angle:g};D(\"swipe\",o)}},drag:function(a){var c=i.move[0].x-i.start[0].x;var e=i.move[0].y-i.start[0].y;f=Math.sqrt(c*c+e*e);if(b.drag&&f>b.drag_min_distance||l==\"drag\"){g=z(i.start[0],i.move[0]);h=d.getDirectionFromAngle(g);var j=h==\"up\"||h==\"down\";if((j&&!b.drag_vertical||!j&&!b.drag_horizontal)&&f>b.drag_min_distance){return}l=\"drag\";var m={x:i.move[0].x-r.left,y:i.move[0].y-r.top};var n={originalEvent:a,position:m,direction:h,distance:f,distanceX:c,distanceY:e,angle:g};if(k){D(\"dragstart\",n);k=false}D(\"drag\",n);E(a)}},transform:function(a){if(b.transform){if(x(a)!=2){return false}var c=C(i.start,i.move);var d=B(i.start,i.move);if(l!=\"drag\"&&(l==\"transform\"||Math.abs(1-d)>b.scale_treshold||Math.abs(c)>b.rotation_treshold)){l=\"transform\";i.center={x:(i.move[0].x+i.move[1].x)/2-r.left,y:(i.move[0].y+i.move[1].y)/2-r.top};var e={originalEvent:a,position:i.center,scale:d,rotation:c};if(k){D(\"transformstart\",e);k=false}D(\"transform\",e);E(a);return true}}return false},tap:function(a){var c=(new Date).getTime();var d=c-n;if(b.hold&&!(b.hold&&b.hold_timeout>d)){return}var e=function(){if(o&&b.tap_double&&m==\"tap\"&&n-p<b.tap_max_interval){var a=Math.abs(o[0].x-i.start[0].x);var c=Math.abs(o[0].y-i.start[0].y);return o&&i.start&&Math.max(a,c)<b.tap_double_distance}return false}();if(e){l=\"double_tap\";p=null;D(\"doubletap\",{originalEvent:a,position:i.start});E(a)}else{var g=i.move?Math.abs(i.move[0].x-i.start[0].x):0;var h=i.move?Math.abs(i.move[0].y-i.start[0].y):0;f=Math.max(g,h);if(f<b.tap_max_distance){l=\"tap\";p=c;o=i.start;if(b.tap){D(\"tap\",{originalEvent:a,position:i.start});E(a)}}}}};if(w){M(a,\"touchstart touchmove touchend touchcancel\",H)}else{M(a,\"mouseup mousedown mousemove\",H);M(a,\"mouseout\",I)}}", "function onPress(e){\n\t\tconsole.log(e);\n\t\tif(e.keyCode == 37){\n\n\t\t\tvx =- 3;\n\t\t}\n\t\tif(e.keyCode == 38){\n\n\n\t\t\tvy =- 3;\n\t\t}\n\t\tif(e.keyCode == 39){\n\n\n\t\t\tvx = 3;\n\t\t}\n\t\tif(e.keyCode == 40){\n\n\n\t\t\tvy = 3;\n\t\t}\n\n\n\t}", "constructor() {\n\tsuper();\n\tGestures.addListener(this, 'tap', _ignore);\n\tGestures.addListener(this, 'down', _ignore);\n\tGestures.addListener(this, 'up', _ignore);\n\t// map the hotkeys to the appropriate functions\n\t// and set up the emitted codes for each kay\n\tthis.hotkey = {};\n\tkeypad.forEach(ai => ai.forEach(aij => ['n', 'f', 'g'].forEach(k => {\n\t if (aij[k]) {\n\t\tif (aij[k].hotkey) {\n\t\t if (typeof aij[k].hotkey === 'string')\n\t\t\tthis.hotkey[aij[k].hotkey] = aij[k];\n\t\t else {\n\t\t\taij[k].hotkey.forEach(key => this.hotkey[key] = aij[k]);\n\t\t\taij[k].hotkey = aij[k].hotkey[0];\n\t\t }\n\t\t // the first hotkey is the primary code for the key\n\t\t aij[k].emit = aij[k].hotkey\n\t\t} else {\n\t\t // keys without dedicated hotkeys\n\t\t // are activated by the shifted primary code\n\t\t aij[k].emit = aij.n.emit;\n\t\t}\n\t }\n\t \n\t})));\n\tthis._shift = 'f';\t// want to light up both, ah well\n\tthis._complex = true;\n\tthis._trigmode = 'GRAD';\n\tthis._prgm = true;\n\tthis._user = true;\n\tthis._neg = '-';\n\tthis._digits = ['8','8','8','8','8','8','8','8','8','8'];\n\tthis._decimals = [',',',',',',',',',',',',',',',',',',','];\n\tthis.renderComplete.then(() => {\n\t /* arrange to monitor focus, keyboard, and touch events for everyone */\n\t this.shadowRoot.addEventListener('focus', e => this._onFocus(e), true);\n\t this.shadowRoot.addEventListener('blur', e => this._onBlur(e), true);\n\t this.shadowRoot.addEventListener('keydown', e => this._onDown(e));\n\t // this.shadowRoot.addEventListener('tap', e => this._onTap(e));\n\t /* hp15c related start up */\n\t init(this);\n\t});\n }", "function showIndexFingers(frame) {\n\n var hands = frame.hands;\n\n // iterate over all hands\n for (var i = 0; i < hands.length; i++) {\n\n // get the index finger\n var hand = hands[i];\n var finger = hand.indexFinger;\n\n // draw it\n var name = hand.type; // left or right\n drawTip(finger, name);\n\n // save it\n saveTip(finger, i);\n\n }\n\n}", "function SkypeEmos() {}", "function mLfingerPopper() {\n //Determines where and how you are pointing your index finger\n if (predictions.length > 0) {\n let hand = predictions[0];\n let index = hand.annotations.indexFinger;\n let tip = index[3];\n let base = index[0];\n let tipX = tip[0];\n let tipY = tip[1];\n let baseX = base[0];\n let baseY = base[1];\n\n //Base of the index finger\n push();\n noFill();\n stroke(255, 255, 255);\n strokeWeight(2);\n line(baseX, baseY, tipX, tipY);\n pop();\n\n //Pointing finger\n push();\n noStroke();\n fill(255, 0, 0);\n ellipse(baseX, baseY, 20);\n pop();\n\n //Bubble hit registration\n //Detection for blue bubble, points\n let d = dist(tipX, tipY, bubble.x, bubble.y);\n if (d < bubble.size / 2) {\n bubble.x = random(width);\n bubble.y = height;\n bubblePoints += 1;\n }\n\n //Detection for purple bubble, damages\n let toxic = dist(tipX, tipY, poisonBubble.x, poisonBubble.y);\n if (toxic < poisonBubble.size / 2) {\n poisonBubble.x = random(width);\n poisonBubble.y = height;\n lives -= 1;\n }\n\n //Detection for lime-green bubble, heals\n let heal = dist(tipX, tipY, healingBubble.x, healingBubble.y);\n if (heal < healingBubble.size / 2) {\n healingBubble.x = random(width);\n healingBubble.y = height;\n lives += 1;\n }\n }\n}", "constructor(x,y){\n super(x,y,65,85);\n this.x = 460;\n this.y = 320;\n\n //FLIP TRUE AND FALSE IN ACCORDANCE TO WHETHER ATTRIBUTE IS ACTIVE//\n this.soundActive = false;\n this.sightActive = true;\n this.touchActive = true;\n }", "function is_eating(w) {\n $rt_addContract(w, cd4e49798d42ac5a95f1a8edbd8ed8c01c, \"motion.ts(68,27)\");\n return (w.food).equals(w.snake.segs.x);\n }", "function y(){return Q.props.followCursor&&!Mt&&\"focus\"!==M.type}", "onMousePress() {\n\t\tif (this.position[1] > 500)\n\t\t{\n\t\t\tDrawingObject.Instance(Fruit, vec2(this.position[0], this.position[1]), vec2(0.1, 0.1)).onMousePress();\n\t\t}\n }", "static touchControl(e) {\n // stop default behavior\n // e.preventDefault();\n e = e || window.event;\n // get accurate x,y values\n let a = Game.canvas.getBoundingClientRect();\n const x = e.touches[0].pageX - a.left;\n const y = e.touches[0].pageY - a.top;\n //! detect event type\n let status = (e.type == 'touchstart') ? true : false;\n\n //? EVENTS\n if (status) { //* touchstart\n Game.startX = x;\n Game.startY = y;\n } else { //* touchmove\n //? get walk \n Game.walkX = x - Game.startX;\n Game.walkY = y - Game.startY;\n\n // swipe left\n if (Game.walkX < 0 && Game.jump == false) {\n bird.dy -= 30;\n bird.dx -= 10;\n Game.jump = true;\n }\n // swipe right\n if (Game.walkX > 0 && Game.jump == false) {\n bird.dy -= 30;\n bird.dx += 10;\n Game.jump = true;\n }\n\n // gravity\n bird.dy += 0.5;\n // move bird\n bird.x += bird.dx;\n bird.y += bird.dy;\n // elasticity\n bird.dx *= 0.9;\n bird.dy *= 0.9;\n\n //! detect walls\n // bottom\n if (bird.y > Game.height - ground.h - bird.h) {\n Game.jump = false;\n bird.y = Game.height - ground.h - bird.h;\n bird.dy = 0;\n }\n // left\n if (bird.x < 0) {\n bird.x = 0;\n bird.dx = 0;\n } else if (bird.x > Game.width - bird.w) { // right\n bird.x = Game.width - bird.w;\n bird.dx = 0;\n }\n\n }\n\n }", "function Af(e){var t=this,a=t.display;if(!(Ne(t,e)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=e.shiftKey,Pt(a,e))\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n return void(xo||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100)));if(!zf(t,e)){var n=Ca(t,e),r=Fe(e),f=n?Df(n,r):\"single\";window.focus(),\n // #3261: make sure, that we're not starting a second selection\n 1==r&&t.state.selectingText&&t.state.selectingText(e),n&&If(t,r,n,f,e)||(1==r?n?Rf(t,n,f,e):Pe(e)==a.scroller&&Ae(e):2==r?(n&&pr(t.doc,n),setTimeout(function(){return a.input.focus()},20)):3==r&&(Bo?qf(t,e):La(t)))}}}", "function engage(e) {\n dragging = true;\n //2.6 don't know if it is mandatory add the function putPoint(e)\n putPoint(e);\n }", "function init() {\n //On récupère le canvas\n canvas = document.querySelector(\"#Pong\");\n\n //On récupère la largeur et la hauteur du canvas\n largeurCanvas = canvas.width;\n hauteurCanvas = canvas.height;\n\n //Récupération du contexte\n ctx = canvas.getContext('2d');\n ctx.font = \"150px Calibri,Geneva,Arial\";\n\n //On crée les objets du jeu\n raquetteJ1 = new Raquette(10, hauteurCanvas / 2 - 100, 15, 120, 20, 20, couleurJ1);\n raquetteJ2 = new Raquette(largeurCanvas - 30, hauteurCanvas / 2 - 100, 15, 120, 20, 20, couleurJ2);\n balle = new Balle(largeurCanvas / 2, hauteurCanvas / 2, 8, 0, 0, 0, couleurBalle);\n\n //On capte les déplacements clavier des joueurs\n window.addEventListener('keydown', function (event) {\n switch (event.keyCode) {\n //Controle du joueur 1 : Touches Z et S\n case 90: //Z\n touches.hautJ1 = true;\n break;\n case 83: //S \n touches.basJ1 = true;\n break;\n //Controle du joueur 2 : Touches Haut et Bas\n case 38: //Haut\n touches.hautJ2 = true;\n break;\n case 40: //Bas\n touches.basJ2 = true;\n break;\n }\n }, false);\n\n window.addEventListener('keyup', function (event) {\n switch (event.keyCode) {\n //Controle du joueur 1 : Touches Z et S\n case 90: //Z\n touches.hautJ1 = false;\n break;\n case 83: //S \n touches.basJ1 = false;\n break;\n //Controle du joueur 2 : Touches Haut et Bas\n case 38: //Haut\n touches.hautJ2 = false;\n break;\n case 40: //Bas\n touches.basJ2 = false;\n break;\n }\n }, false);\n\n //On capte le click droit de la souris qui signale le début de la partie\n canvas.addEventListener('click', function () {\n if (balle.vitesseX === 0 && balle.vitesseY === 0) {\n balle.vitesseX = balle.vitesseY = 20;\n }\n }, false);\n\n //On capte la touche espace qui marque le lancement de la balle\n window.addEventListener('keydown', function (event) {\n if (balle.vitesseX === 0 && balle.vitesseY === 0) {\n switch (event.keyCode) {\n case 13:\n case 32:\n balle.vitesseX = balle.vitesseY = 20;\n break;\n }\n }\n\n }, false);\n\n //Déplacement de la balle\n dessinerJeu(deltaBalleX);\n dplctRaquette();\n }", "axeTouch(stealer) {\n let d = dist(stealer.pos.x, stealer.pos.y, this.x, this.y);\n if (d < stealer.size / 2 + this.w / 2 && livesCounter >= 0) {\n if (stealer.pos.x >= this.x) {\n fill(255, 0, 0, 50);\n rectMode(CORNER);\n rect(0, 0, width, height);\n stealer.jump();\n stealer.pos.x += 150;\n stealer.jump();\n livesCounter -= 1;\n punchSound.play();\n } else {\n fill(255, 0, 0, 50);\n rectMode(CORNER);\n rect(0, 0, width, height);\n stealer.jump();\n stealer.pos.x -= 150;\n stealer.jump();\n livesCounter -= 1;\n punchSound.play();\n }\n } else if (livesCounter < 0) {\n state = `loseEnding`;\n gameMusic.stop();\n gameOver.play();\n }\n }", "function Wa() {\n pa = true;\n Ca();\n setInterval(Ca, 18E4);\n C = qa = document.getElementById(\"canvas\");\n f = C.getContext(\"2d\");\n /*new*//*remap*/ C.onmousewheel = function (e) {zoomFactor = e.wheelDelta > 0 ? 10 : 11;}\n C.onmousedown = function (a) {\n /*new*/if(isPlayerAlive() && rightClickFires){fireAtVirusNearestToCursor();}\n /*new*/ return;\n /*new*/ //event.preventDefault(); // FUTURE: Electronoob mousedrag fix. is this needed?\n if(Da) {\n var b = a.clientX - (5 + q / 5 / 2);\n var c = a.clientY - (5 + q / 5 / 2);\n if(Math.sqrt(b * b + c * c) <= q / 5 / 2) {\n N();\n D(17);\n return;\n }\n }\n V = a.clientX;\n W = a.clientY;\n ra();\n N();\n };\n C.onmousemove = function (a) {\n V = a.clientX;\n W = a.clientY;\n ra();\n };\n C.onmouseup = function () {};\n if(/firefox/i.test(navigator.userAgent)) {\n document.addEventListener(\"DOMMouseScroll\", Ea, false);\n } else {\n document.body.onmousewheel = Ea;\n }\n var a = false;\n var b = false;\n var c = false;\n g.onkeydown = function (d) {\n if(!(32 != d.keyCode)) {\n if(!a) {\n N();\n D(17);\n a = true;\n }\n }\n if(!(81 != d.keyCode)) {\n if(!b) {\n D(18);\n b = true;\n }\n }\n if(!(87 != d.keyCode)) {\n if(!c) {\n N();\n D(21);\n c = true;\n }\n }\n if(27 == d.keyCode) {\n Fa(true);\n }\n /*new*/customKeyDownEvents(d);\n };\n g.onkeyup = function (d) {\n if(32 == d.keyCode) {\n a = false;\n }\n if(87 == d.keyCode) {\n c = false;\n }\n if(81 == d.keyCode) {\n if(b) {\n D(19);\n b = false;\n }\n }\n };\n g.onblur = function () {\n D(19);\n c = b = a = false;\n };\n g.onresize = Ga;\n if(g.requestAnimationFrame) {\n g.requestAnimationFrame(Ha);\n } else {\n setInterval(sa, 1E3 / 60);\n }\n setInterval(N, 40);\n if(w) {\n m(\"#region\")\n .val(w);\n }\n Ia();\n X(m(\"#region\")\n .val());\n if(null == s$$0) {\n if(w) {\n Y();\n }\n }\n m(\"#overlays\")\n .show();\n Ga();\n }", "function control(e) {\n //removing snake from a square\n squares[currentIndex].classList.remove('snake')\n\n //movement of the snake\n if(e.keyCode === 39) {\n direction = 1 // move the snake to the right if right arrow is pressed\n } else if (e.keyCode === 38) {\n direction = -width // move the snake up one width if the up arrow is pressed\n } else if (e.keyCode === 37) {\n direction = -1 // move the snake to the left if left arrow is pressed\n } else if (e.keyCode === 40) {\n direction = width // if down arrow is pressed move the snake down one width\n }\n\n\n }", "function draw(){\r\n drawFusee(\"white\");\r\n if (leftPressed && x_fusee > (hauteur_fusee)){\r\n x_fusee -= 7;\r\n }\r\n if (rightPressed && x_fusee < canvas.width-(hauteur_fusee*3)){\r\n x_fusee += 7;\r\n }\r\n if (upPressed && y_fusee > (hauteur_fusee)){\r\n y_fusee -= 7;\r\n }\r\n if (downPressed && y_fusee < canvas.height-(hauteur_fusee*2)){\r\n y_fusee += 7;\r\n }\r\n drawFusee(\"blue\");\r\n}", "function gettingDraggedAway(){\n\tstory(\"The guy out of the middle of nowhere hits you to the ground and while you are dazed he starts to drag you\");\n\tchoices = [\"Throw up\",\"Pass out\",\"Grab something from the ground\"];\n\tanswer = setOptions(choices);\n}", "function drawSnake() {\n // Menggambar setiap ruas\n snake.forEach(drawSnakePart)\n}", "function PuchiLook(){\n anime({\n targets: [\".LeftEye, .RightEye\"],\n duration: 1000,\n height: \"60%\"\n })\n\n anime({\n targets: \"#rightArm\",\n duration: 2000,\n rotateZ: -250\n })\n anime({\n targets: \"#leftArm\",\n duration: 2000,\n rotateZ: 250\n })\n anime({\n targets: ['#leftArm, #rightArm'],\n duration: 1500,\n opacity: 0,\n })\n }", "[pointerDown](e) {\n if (isTouch(e)) {\n this.show();\n }\n }", "function setup() {\n createCanvas(1008,1008);\n textFont(quicksand);\n tiger = new firstPredator(100, 100, 5, color(204, 159, 69), 40, tigerImage, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, 16); // press Shift key to sprint\n leopard = new firstPredator(100, 100, 15, color(200, 175, 175), 35, leopardImage, 87, 83, 65, 68, 70); // press F to sprint\n bear = new firstPredator(100, 100, 25, color(120, 114, 97), 45, bearImage, 73, 75, 74, 76, 72); // press H key to sprint\n antelope = new Prey(100, 100, 10, color(255, 100, 10), 50, antelopeImage);\n zebra = new Prey(100, 100, 8, color(255, 255, 255), 60, zebraImage);\n bee = new Prey(100, 100, 20, color(255, 255, 0), 10, beeImage);\n}", "function handleKeys() {\r\n\r\n if (currentlyPressedKeys[90]) { //make camera roll to left\r\n // Left cursor key or A\r\n\t teapot_turn += 0.05;\r\n }\r\n else if (currentlyPressedKeys[88]) {\r\n // Up cursor key or W\r\n background_turn += 0.05;\r\n }\r\n\r\n\r\n}", "function baitFish1() {\n if (d1 < 125 && hookDown === 1) {\n if (keyIsDown(68)) {\n fish1.x += 2;\n }\n if (keyIsDown(65)) {\n fish1.x -= 2;\n }\n if (keyIsDown(87)) {\n fish1.y -= 2;\n }\n if (keyIsDown(83)) {\n fish1.y += 2;\n }\n }\n}", "function Keyboard(){\n\tfleches = game.input.keyboard.createCursorKeys();\n toucheQ = game.input.keyboard.addKey(Phaser.Keyboard.Q);\n toucheD = game.input.keyboard.addKey(Phaser.Keyboard.D);\n toucheS = game.input.keyboard.addKey(Phaser.Keyboard.S);\n toucheZ = game.input.keyboard.addKey(Phaser.Keyboard.Z);\n toucheEntree = game.input.keyboard.addKey(Phaser.Keyboard.ENTER);\n toucheP = game.input.keyboard.addKey(Phaser.Keyboard.P);\n}", "function m(e){var t=-1<e.type.indexOf(\"touch\"),n=Rt&&Mt&&Q.props.touchHold&&!t,i=Mt&&!Q.props.touchHold&&t;return n||i}", "function mobileUp() {\n if (snakeDiraction != 'd') {\n snakeDiraction = 'u';\n }\n}", "function handleKeyDown(event) {\n switch (event.code) {\n case \"ArrowUp\": \n if (snakes[0].direction[0] == \"left\" || snakes[0].direction[0] == \"right\" )\n snakes[0].direction[1] = \"up\";\n break;\n case \"ArrowDown\":\n if (snakes[0].direction[0] == \"left\" || snakes[0].direction[0] == \"right\" )\n snakes[0].direction[1] = \"down\";\n break;\n case \"ArrowRight\": \n if (snakes[0].direction[0] == \"up\" || snakes[0].direction[0] == \"down\" )\n snakes[0].direction[1] = \"right\";\n break;\n case \"ArrowLeft\": \n if (snakes[0].direction[0] == \"up\" || snakes[0].direction[0] == \"down\" )\n snakes[0].direction[1] = \"left\";\n break; \n } // end switch\n} // end handleKeyDown", "function drawKeypoints() {\n // Loop through all the poses detected\n for (let i = 0; i < poses.length; i++) {\n // For each pose detected, loop through all the keypoints\n let pose = poses[i].pose;\n rEye = pose['rightEye'];\n lEye = pose['leftEye'];\n drawCensorBar();\n\n }\n}", "function onSetup() {\n\n lastKeyCode = 0;\n\n region['course'] = new Rect(new Point2D(0,0),screenWidth*.8,screenHeight*.8,makeColor(.4,.5,.1));\n region['caddy'] = new Rect(new Point2D(screenWidth*.8,0),screenWidth*.2,screenHeight*.8,makeColor(.1,.4,.5));\n region['detonator'] = new Rect(new Point2D(0,screenHeight*.8),screenWidth*.2,screenHeight*.2,makeColor(.8,.5,.4));\n region['ball_control'] = new Rect(new Point2D(screenWidth*.2,screenHeight*.8),screenWidth*.6,screenHeight*.2,makeColor(.5,.4,.1));\n region['game_control'] = new Rect(new Point2D(screenWidth*.8,screenHeight*.8),screenWidth*.2,screenHeight*.2,makeColor(.2,.2,.2));\n \n holeTitleLoc = new Point2D(region['course'].getCenter().x,region['course'].ul.y+38);\n\n ballImage = loadImage('img/golf_ball.png'); // from http://www.flickr.com/photos/mattbuck007/2657474716/ - CC from flickr user mattbuck4950 - 'Matt Buck'\n putterImage = loadImage('img/firecracker.png'); // from http://www.flickr.com/photos/wiredwitch/2647165962/ - CC from flickr user Carly & Art\n wedgeImage = loadImage('img/grenade.png'); // from http://www.flickr.com/photos/arcticwarrior/8021584206/ - CC from flickr user Joint Base Elmendorf-Richardson\n ironImage = loadImage('img/dynamite.png'); // from http://www.flickr.com/photos/dogsbodyorg/4429344217/ - CC from flickr user dogsbodyorg - 'Dan Benton'\n driverImage = loadImage('img/big_bomb.png'); // from http://www.flickr.com/photos/usnavy/6628022961/ - CC from flickr user Official U.S. Navy Imagery\n \n flagImage = loadImage('img/flag.png');\n \n //fuseImage = loadImage('img/fuse.png'); // from http://www.flickr.com/photos/pgordon/5944446567/ -- CC from flickr user p.Gordon\n \n roundButtonImage = loadImage('img/round_button.png'); // from http://www.flickr.com/photos/usnavy/6628022961/ - CC from flickr user Official U.S. Navy Imagery\n\n treeCrownImg1 = loadImage('img/tree_crown_1.png');\n treeCrownImg2 = loadImage('img/tree_crown_2.png');\n treeCrownImg3 = loadImage('img/tree_crown_3.png');\n treeTrunkImg = loadImage('img/tree_trunk_2.png');\n\n bushImg1 = loadImage('img/bush_1.png');\n bushImg2 = loadImage('img/bush_2.png');\n bushImg3 = loadImage('img/bush_3.png');\n\n gameState = new GameState();\n\n var w = region['game_control'].width;\n var h = region['game_control'].height;\n pauseButton = new Button({'text':'PAUSE',\n 'shape':new Rect(new Point2D(w*.15,h*.1),w*.7,h*.15,makeColor(.8,.8,.8)),\n 'activationCallback': function() { uiMode = 'pause'; },\n 'deactivationCallback': function() { uiMode = 'play'; }\n });\n pauseButton.shape.thickness = 6;\n helpButton = new Button({'text':'HELP',\n 'shape':new Rect(new Point2D(w*.15,h*.75),w*.7,h*.15,makeColor(.8,.8,.8)),\n 'activationCallback': function() { uiMode = 'playerAlert'; instructionsCounter = 0; doInstructions(); this.deactivate(); },\n 'deactivationCallback': function() { }\n });\n helpButton.shape.thickness = 6;\n\n metagameControls = [\n pauseButton,\n helpButton\n ];\n \n timerUi = new TimerUi();\n \n explosionSprite = new Sprite({\n 'sheetImage':'img/explosion_fade.png',\n 'frameCount':16,\n 'stoppedFrameIdx':0,\n 'frameWidth':64,\n 'frameHeight':64,\n 'scaling':1\n });\n explosionFade = new Sprite({\n 'sheetImage':'img/explosion_fade.png',\n 'frameCount':12,\n 'stoppedFrameIdx':0,\n 'frameWidth':64,\n 'frameHeight':64,\n 'scaling':1\n });\n\n fuseBurnSprite = new Sprite({\n 'sheetImage':'img/burn_fuse.png', \n 'frameCount':6,\n 'stoppedFrameIdx':0,\n 'frameWidth':64,\n 'frameHeight':64,\n 'scaling':.5\n });\n \n instructionTexts = [\n \"Instructions follow - press ESC to skip or quit\\nthe instructions and go directly to the game\",\n \"The object of the game is to get the ball into the hole.\\nThe ball is moved around the course by placing and then\\ndetonating charges. Each press of the BOOM! button\\ncounts as 1 stroke, no matter how many charges explode.\",\n \"The ball is also a bomb, and the time starts ticking on it as\\nsoon as you place it. When the ball timer gets to 0 the hole\\nends whether you've made it to the flag or not.\",\n \"The ball and all available charges are carried by the caddy -\\nthe section to the upper right. To place the ball or a charge\\ndrag it from the caddy and drop it on the course, but\\nyou have to drop it somewhere within your reach\\n(which is indicated by the circle around your avatar).\\nYou can also pick up and move or return to the caddy\\ncharges that are within reach.\",\n \"You start out in the center of the tee area, and cannot move\\nout of it until the ball has been placed, and the ball must be\\nplaced somewhere in the tee area. Once the ball has\\nbeen placed you can move anywhere on the course and\\nyou can place charges (again, within your reach).\",\n \"When you place a charge you can set a delay on it, which is\\nhow much time passes from when you press the BOOM! button\\nuntil that charge explodes. When you press the BOOM! button\\nall the charges that you have placed explode, and you\\ncan't place any more until those explosions are finished.\",\n \"The score for a hole is a combination of the number of strokes\\ntaken (the fewer the better), the time remaining on the ball\\n(the more the better), the distance from the ball to\\nthe flag (the closer the better), the number of\\ncharges left with the caddy (the more and bigger the better),\\nand bonuses for hitting the flag and making par.\",\n// \"The score for a hole is a combination of the number of strokes\\ntaken (the fewer the better), the time remaining on the ball\\n(the more the better), the distance from the ball to\\nthe flag (the closer the better), a bonus for hitting the flag,\\nand a bonus for making par (the more under the better).\",\n \"Good luck!\"\n ];\n instructionsCounter = 0;\n\n playerAlert = new PlayerAlert();\n playerAlert.setMessage(\n\"Welcome to Explosion Golf!\\n\\nMove the ball to the tee area, then place one or more\\ncharges - they must be placed in your reach. When you\\npress the detonator all the charges go off, moving\\nthe ball if the explosions hit it. Oh yeah, your ball\\nis also a bomb with a fuse that starts burning as soon\\nthe ball is placed. Good luck!\"\n,\"56px Arial\"\n );\n\n uiMode = 'playerAlert';\n \n isSliding = false;\n \n bounceAnimations = [];\n \n// TEST = new Polygon([new Point2D(100,100),new Point2D(200,150),new Point2D(300,300),new Point2D(200,400),new Point2D(50,250)]);\n}", "noteOn(velocity=60) {\n this.keyRect.fill(this.displayOptions.clickColor);\n grid.highlightPitch(this.pitch, true, this.displayOptions);\n audio.noteOn(this.pitch, velocity)\n }", "function checkOffScreen() {\n if (\n fish1.x > trx + (3 / 4) * padding ||\n fish1.x < blx - (3 / 4) * padding ||\n fish1.y > bly + (3 / 4) * padding ||\n fish1.y < tly - (3 / 4) * padding\n ) {\n setFish1();\n }\n if (\n fish2.x > trx + (3 / 4) * padding ||\n fish2.x < blx - (3 / 4) * padding ||\n fish2.y > bly + (3 / 4) * padding ||\n fish2.y < tly - (3 / 4) * padding\n ) {\n setFish2();\n }\n}", "function CALCULATE_TOUCH_MOVE_OR_MOUSE_MOVE() {\r\n \r\n \r\n \r\n for (var x=0;x<BUTTONS.length;x++){\r\n if ( GLOBAL_CLICK.x > BUTTONS[x].POSITION.x && GLOBAL_CLICK.x <BUTTONS[x].POSITION.x + BUTTONS[x].DIMENSIONS.W() && GLOBAL_CLICK.y > BUTTONS[x].POSITION.y && GLOBAL_CLICK.y < BUTTONS[x].POSITION.y + BUTTONS[x].DIMENSIONS.H() ) {\r\n \r\n }\r\n else {\r\n \r\n }\r\n }\r\n\r\n \r\n/////////////////////////////////////\r\n// get object highlight on mouse over\r\n/////////////////////////////////////\r\n \r\nfor (var x=0;x<HOLDER.length;x++){\r\n\r\n\r\n // HOLDER[x].POSITION.x , HOLDER[x].POSITION.y , HOLDER[x].FI \r\n if (GET_DISTANCE_FROM_OBJECT.VALUE(x) < HOLDER[x].FI ) {\r\n\t\r\n HOLDER[x].HOVER = true;\r\n \r\n VOICE.SPEAK(\"Object \" + HOLDER[x].NAME + \" selected\");\r\n \r\nif (HOLDER[x].GLOBAL_STATE == \"PASIVE\" && GLOBAL_CLICK.CLICK_PRESSED == true ) {\r\n\r\n\r\n if ( HOLDER[x].roundedRect_X < 1.8 ) {\r\n HOLDER[x].roundedRect_X = HOLDER[x].roundedRect_X + 0.01;\r\n HOLDER[x].roundedRect_W = HOLDER[x].roundedRect_W + 0.02;\r\n }\r\n\r\n \r\n }\r\n \r\n \r\n }else {\r\n HOLDER[x].HOVER = false; \r\n }\r\n\r\n\r\n\r\n}\r\n\r\n\r\n\r\n DETECTED_COLOR = SURF.getImageData(GLOBAL_CLICK.x, GLOBAL_CLICK.y, 1, 1).data; \r\n\r\n \r\n \r\n \r\n \r\n }", "function keyPress(e){\n\n // move left\n if (e.keyCode == '37' && sheepX > 0) {\n sheepX -= 25;\n }\n // move right\n else if(e.keyCode == '39' && sheepX < cvs.width - sheepSize){\n sheepX += 25\n }\n}", "function qf(e,t){Pt(e.display,t)||jf(e,t)||Ne(e,t,\"contextmenu\")||e.display.input.onContextMenu(t)}", "function harlemShake()\n{\n var durationsList = getNoteDurations();\n var notesList = getFittest();\n var chordList = chordSelected();\n playChordProgression(chordList, notesList, durationsList);\n}", "function main() {\n reset();\n\n var prev = false;\n\n setInterval(function() {\n var current = touch.isPressed();\n if (current && !prev) { dingdong(); }\n if (!current && prev) { reset(); }\n prev = current;\n }, 50);\n}", "function updateFood() {\n // noiseSpeed = 90;\n //\n // food.x = noiseSpeed * noise(food.tx);\n // food.y = noiseSpeed * noise(food.ty);\n //\n // food.tx += 0.05;\n // food.ty -= 0.05;\n\n food.x += food.vx;\n food.y += food.vy;\n\n // food.vx +=5 ;\n // food.vy +=5 ;\n\n\n // Wrap when player goes off the canvas\n if (food.x < 0) {\n food.x += width;\n }\n else if (food.x > width) {\n food.x -= width;\n }\n\n if (food.y < 0) {\n food.y += height;\n }\n else if (food.y > height) {\n food.y -= height;\n }\n}", "function setup() {\n CONTROLS = {\n up: [UP_ARROW, \"w\"],\n down: [DOWN_ARROW, \"s\"],\n left: [LEFT_ARROW, \"a\"],\n right: [RIGHT_ARROW, \"d\"],\n new_game: [\"n\"],\n start: [ENTER]\n };\n createCanvas(SCREEN, SCREEN);\n UP = createVector(0, -BOX);\n DOWN = createVector(0, BOX);\n RIGHT = createVector(BOX, 0);\n LEFT = createVector(-BOX, 0);\n snake = new Snake();\n sec = second();\n new Apple;\n}", "get HAMMER_EVENTS() {\n return \"tap press pressup panmove panstart panend swipe swipeleft swiperight\";\n }", "function arrowPress(i) {\n\t\n\t\n\t\n\t\n}", "function enable (stage) {\n const me = stage\n me.sensing = true\n\n /**\n * decimalRound - rounds a number too decimal points.\n *\n * @param {number} value - the value to round.\n * @param {number} points - how many decimal points to leave.\n */\n function decimalRound (value, points) {\n return Math.round(value * (10 ** points)) / (10 ** points)\n }\n\n /**\n * computeX - Computes centered x based on x extracted from event.\n */\n function computeX (x) {\n const mag = me.magnification / 100\n return decimalRound((x - (me.element.el.offsetLeft) - (me.width / 2)) / mag, 2)\n }\n\n /**\n * computeY - Computes centered y based on y extracted from event.\n */\n function computeY (y) {\n const mag = me.magnification / 100\n return decimalRound((-y + me.element.el.offsetTop + (me.height / 2)) / mag, 2)\n }\n\n document.addEventListener('keydown', (e) => {\n e.key && me.keysKey.indexOf(e.key.toLowerCase()) === -1 ? me.keysKey.push(e.key.toLowerCase()) : null\n e.code && me.keysCode.indexOf(e.code.toLowerCase()) === -1 ? me.keysCode.push(e.code.toLowerCase()) : null\n me.keysKeyCode.indexOf(e.keyCode) === -1 ? me.keysKeyCode.push(e.keyCode) : null\n })\n\n document.addEventListener('keyup', (e) => {\n e.key ? me.keysKey = me.keysKey.filter((item) => item !== e.key.toLowerCase()) : null\n e.code ? me.keysCode = me.keysCode.filter((item) => item !== e.code.toLowerCase()) : null\n me.keysKeyCode = me.keysKeyCode.filter((item) => item !== e.keyCode)\n })\n\n me.element.el.addEventListener('mousemove', (e) => {\n me.mouseX = computeX(e.clientX)\n me.mouseY = computeY(e.clientY)\n })\n\n me.element.el.addEventListener('touchmove', (e) => {\n me.mouseX = computeX(e.changedTouches[0].clientX)\n me.mouseY = computeY(e.changedTouches[0].clientY)\n }, { passive: true })\n\n me.element.el.addEventListener('mousedown', () => {\n me.mouseDown = true\n })\n me.element.el.addEventListener('mouseup', () => {\n me.mouseDown = false\n })\n\n me.element.el.addEventListener('touchstart', (e) => {\n me.mouseX = computeX(e.touches[0].clientX)\n me.mouseY = computeY(e.touches[0].clientY)\n me.mouseDown = true\n }, { passive: true })\n\n me.element.el.addEventListener('touchend', () => {\n me.mouseDown = false\n me.mouseX = null\n me.mouseY = null\n })\n}", "function presionarPantalla(evento)\r\n{\r\n Touch_activo = 1;\r\n xm = evento.touches[0].clientX;\r\n ym = evento.touches[0].clientY;\r\n}", "function keyClickDetection(){\n if (state === 'piano'){\n if (mouseIsPressed){\n if (mouseX > width - 475 && mouseX < width - 325 &&\n mouseY > 195 && mouseY < 595){\n playPianoNote(noteG,0.5);\n }\n else if (mouseX > width - 625 && mouseX < width - 475 &&\n mouseY > 195 && mouseY < 595){\n playPianoNote(noteF,0.5);\n }\n else if (mouseX > width - 775 && mouseX < width - 625 &&\n mouseY > 195 && mouseY < 595){\n playPianoNote(noteE,0.5);\n }\n else if (mouseX > width - 925 && mouseX < width - 775 &&\n mouseY > 195 && mouseY < 595){\n playPianoNote(noteD,0.5);\n } \n else if (mouseX > width - 1075 && mouseX < width - 925 &&\n mouseY > 195 && mouseY < 595){\n playPianoNote(noteC,0.5);\n }\n else if (mouseX > width - 1225 && mouseX < width - 1075 &&\n mouseY > 195 && mouseY < 595){\n playPianoNote(noteB,0.5);\n } \n else if (mouseX > width - 1375 && mouseX < width - 1225 &&\n mouseY > 195 && mouseY < 595){\n playPianoNote(noteA,0.5);\n } \n }\n }\n }", "function showFingertips(frame) {\n\n var hands = frame.hands;\n\n // iterate over all hands\n for (var i = 0; i < hands.length; i++) {\n var hand = hands[i];\n\n // iterate over all finger names\n for (var j = 0; j < names.length; j++) {\n\n // get finger by name\n var name = names[j];\n var finger = hand[name];\n\n // draw the finger tips\n drawTip(finger, name);\n saveTip(finger, 5 * i + j);\n\n }\n\n }\n\n}", "function CheatActor() {\n\tif (KeyPress == 49) ActorChangeAttitude(1, 0);\n\tif (KeyPress == 50) ActorChangeAttitude(-1, 0);\n\tif (KeyPress == 51) ActorChangeAttitude(0, 1);\n\tif (KeyPress == 52) ActorChangeAttitude(0, -1);\n}", "function blinkEyes() {\n eyes.forEach(function(eye) {\n eye.blink();\n });\n setTimeout(function() {\n eyes.forEach(function(eye) {\n eye.blink();\n });\n }, 75);\n}", "function onDocumentKeyDown(event){\n\tvar comand = event.which; //return a number corresponding to the button pressed on the keyboard\n\tif(comand == 37){\t//left\n\t\tif(models[character].position.x != -37){\n\t\t\tmodels[character].position.x -= 37; //move to left if pressed th left arrow\n\t\t\t\n\t\t}\n\t}else if(comand == 39){ //right\n\t\tif(models[character].position.x != 37){\n\t\t\tmodels[character].position.x += 37;\n\t\t\t\n \t\t}\n\t}\n}", "function swingLeftRight(ctx) \n{\n\tctx.beginPath();\n\tctx.moveTo(eye1_x, eye1_y);\n\tctx.arc(eye1_x, eye1_y, eye_radius, 0, Math.PI*2);\n\tctx.fill();\n\n\tctx.beginPath();\n\tctx.moveTo(eye2_x, eye2_y);\n\tctx.arc(eye2_x, eye2_y, eye_radius, 0, Math.PI*2);\n\tctx.fill();\n\n\teye1_x += eye_speed;\n\teye2_x += eye_speed;\n\t\n\tif(eye1_x >= eye1_centerx + 30)\n\t\teye_speed = -eye_speed;\n\tif(eye1_x <= eye1_centerx - 30)\n\t\teye_speed = -eye_speed;\n}", "function mobileLeft() {\n if (snakeDiraction != 'r') {\n snakeDiraction = 'l';\n }\n}", "static initialize() {\n this.ketStatus = {\n right: false,\n left: false,\n up: false,\n down: false\n };\n\n\n document.addEventListener('keydown', e => {\n switch (e.keyCode) {\n case 37: // 左キー\n this.ketStatus.left = true;\n e.preventDefault(); return false;\n case 38: // 上キー\n this.ketStatus.up = true;\n e.preventDefault(); return false;\n case 39: // 右キー\n this.ketStatus.right = true;\n e.preventDefault(); return false;\n case 40: // 下キー\n this.ketStatus.down = true;\n e.preventDefault(); return false;\n }\n });\n\n\n document.addEventListener('keyup', e => {\n switch (e.keyCode) {\n case 37: // 左キー\n this.ketStatus.left = false;\n e.preventDefault(); return false;\n case 38: // 上キー\n this.ketStatus.up = false;\n e.preventDefault(); return false;\n case 39: // 右キー\n this.ketStatus.right = false;\n e.preventDefault(); return false;\n case 40: // 下キー\n this.ketStatus.down = false;\n e.preventDefault(); return false;\n }\n });\n\n this.touchPoint = {\n xs: 0,\n ys: 0,\n xe: 0,\n ye: 0\n }\n\n\n document.addEventListener('touchstart', e => {\n this.touchPoint.xs = e.touches[0].clientX;\n this.touchPoint.ys = e.touches[0].clientY;\n });\n\n\n document.addEventListener('touchmove', e => {\n if(Math.abs(e.touches[0].clientX - this.touchPointxs) < 20 &&\n Math.abs(e.touches[0].clientY - this.touchPoint.ys) < 20\n ) {\n return;\n }\n\n this.touchPoint.xe = e.touches[0].clientX;\n this.touchPoint.ye = e.touches[0].clientY;\n const { xs, ys, xe, ye} = this.touchPoint;\n gesture(xs, ys, xe, ye);\n\n this.touchPoint.xs = this.touchPoint.xe;\n this.touchPoint.ys = this.touchPoint.ye;\n\n });\n\n document.addEventListener('touchend', e => {\n this.keyStatus.up = false;\n this.keyStatus.down = false;\n this.keyStatus.left = false;\n this.keyStatus.right = false;\n });\n\n\n const geture = (xs, ys, xe, ye) => {\n const horizonDirection = xe - xs;\n const verticalDirection = ye - ys;\n\n if(Math.abs(horizonDirection) < Math.abs(verticalDirection)) {\n // 縦\n if(verticalDirection < 0) {\n this.ketStatus.up = true;\n this.ketStatus.down = false;\n this.ketStatus.left = false;\n this.ketStatus.right = false;\n } else if (0 <= verticalDirection) {\n this.ketStatus.up = false;\n this.ketStatus.down = true;\n this.ketStatus.left = false;\n this.ketStatus.right = false;\n }\n } else {\n // 横\n if(horizonDirection < 0) {\n this.ketStatus.up = false;\n this.ketStatus.down = false;\n this.ketStatus.left = true;\n this.ketStatus.right = false;\n } else if (0 <= horizonDirection) {\n this.ketStatus.up = false;\n this.ketStatus.down = false;\n this.ketStatus.left = false;\n this.ketStatus.right = true;\n }\n }\n }\n }", "function ShowGesture() {\n if (gestureFrameIndex < gestureFrameUp.length && !animating && !moving) {\n // Clear the canvas\n canvas.Clear();\n\n // Reset position of paper back to the center\n paperX = 0.3;\n paperY = 0.2;\n\n switch (gesture) {\n case \"jump\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTL_png);\n layout.AddChild(res.arrowTR_png);\n layout.AddChild(TLdown);\n layout.AddChild(TRdown);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To move up.\");\n } else\n canvas.DrawImage(jumpSet[gestureFrameUp[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"thin\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTL_png);\n layout.AddChild(res.arrowTR_png);\n layout.AddChild(res.arrowBL_png);\n layout.AddChild(res.arrowBR_png);\n layout.AddChild(TLup);\n layout.AddChild(TRup);\n layout.AddChild(BLup);\n layout.AddChild(BRup);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To get through thin wholes.\");\n } else\n canvas.DrawImage(thinSet[gestureFrameDown[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"fold\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTL_png);\n layout.AddChild(res.arrowTR_png);\n layout.AddChild(TLup);\n layout.AddChild(TRup);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To fold in half.\");\n } else\n canvas.DrawImage(foldSet[gestureFrameUp[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"crumple\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTL_png);\n layout.AddChild(res.arrowBR_png);\n layout.AddChild(TLup);\n layout.AddChild(BRup);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To crumple into a ball.\");\n } else\n canvas.DrawImage(crumpleSet[gestureFrameDown[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"wallClimb1\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTR_png);\n layout.AddChild(TRdown);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To prevent paper from falling.\");\n } else\n canvas.DrawImage(climb1Set[gestureFrameUp[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"wallClimb2\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTL_png);\n layout.AddChild(TLdown);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To prevent paper from falling.\");\n } else\n canvas.DrawImage(climb2Set[gestureFrameDown[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"kick1\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowBL_png);\n layout.AddChild(res.arrowBR_png);\n layout.AddChild(BLup);\n layout.AddChild(BRdown);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To kick and breack the ground.\");\n } else\n canvas.DrawImage(kick1Set[gestureFrameUp[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"kick2\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s) bottom left down and button right up\n layout.AddChild(res.arrowBL_png);\n layout.AddChild(res.arrowBR_png);\n layout.AddChild(BLdown);\n layout.AddChild(BRup);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To kick and breack the ground.\");\n } else\n canvas.DrawImage(kick2Set[gestureFrameDown[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"shoot\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTR_png);\n layout.AddChild(TRup);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"Shoot paper airplane to break wall.\");\n } else\n canvas.DrawImage(shootSet[gestureFrameUp[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"moveLeft\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTL_png);\n layout.AddChild(res.arrowBL_png);\n layout.AddChild(TLdown);\n layout.AddChild(BLdown);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To move left.\");\n } else\n canvas.DrawImage(moveLeftSet[gestureFrameDown[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n case \"moveRight\":\n if (showUseForText) {\n if (addOKbuttonOnce) {\n layout.AddChild(okButton);\n // Add arrow(s)\n layout.AddChild(res.arrowTR_png);\n layout.AddChild(res.arrowBR_png);\n layout.AddChild(TRdown);\n layout.AddChild(BRdown);\n }\n addOKbuttonOnce = false;\n usedForText.SetText(\"To move right.\");\n } else\n canvas.DrawImage(moveRightSet[gestureFrameUp[gestureFrameIndex]], paperX, paperY, paperWidth, paperHeight);\n break;\n }\n\n // Update the canvas and gestureFrameIndex\n gestureFrameIndex++;\n canvas.Update();\n }\n // Animating this gesture is done, stop and reset everything\n else {\n clearInterval(gestureTimer);\n gestureFrameIndex = 0;\n repeatGestureTimer = setInterval(selectGesture, gestureRepeatTime);\n }\n}", "function keyPressed (){\n //KeyCode is built in variavle\n if(keyCode === UP_ARROW){\n snake.dir(0,-1);\n }else if (keyCode === DOWN_ARROW){\n snake.dir(0,1);\n }else if (keyCode === RIGHT_ARROW){\n snake.dir(1,0);\n }else if (keyCode === LEFT_ARROW){\n snake.dir(-1,0);\n }\n}", "function CursorTrack() {}", "function guessR() {\n\treturn humanTouch(trueR());\n}", "onTouchBegan(touch) {//when fingger touch it\n // cc.log('onTouchBegan');\n this._isTouching = true;\n this._touchLocation = touch.getLocation();//get the location of a fingger\n\n return true;\n }", "function showYesnos () {\n\t\t_this.disable(true);\n\t\tyesnos.reset();\n\t\tfade(buttons, false);\n\t\tfade(yesnos, true).eventCallback('onComplete', _this.disable, false, _this);\n\n\t\tlizard.followPointer(true);\n\t\tif (_this.agent.visible) { _this.agent.eyesFollowPointer(); }\n\t}", "function keyPressed() {\n\nif (keyCode === UP_AAROW){\n\nMatter.Body.applyForce(bob1.body,bob1.body.position,{x: -30, y: 155})\n}\n}", "initializeEventListeners()\n {\n // use that to refer to other classes use of these listeners\n const that = this;\n\n\n\n // Event Listeners\n this.ctx.canvas.addEventListener(\n 'keydown',\n e =>\n {\n console.log(e.key);\n switch (e.key)\n {\n case 'ArrowRight':\n that.moving = true;\n that.facingRight = true;\n break;\n case 'ArrowLeft':\n that.moving = true;\n that.facingRight = false;\n break;\n case 'a': // a is attack\n that.basicAttack = true;\n break;\n case 's': // s is stop time spell\n that.stopTime = true;\n break;\n case 'd': // d is rewind time spell\n that.rewindTime = true;\n this.resetPaths = false;\n break;\n case 'w': // w is slow time spell\n that.slowTime = true;\n break;\n case ' ': // spacebar is jump\n that.jumping = true;\n console.log('JUMPED');\n break;\n default:\n break;\n }\n e.preventDefault();\n },\n false\n );\n\n\n this.ctx.canvas.addEventListener(\n 'keyup',\n e =>\n {\n switch (e.key)\n {\n case 'ArrowRight':\n that.moving = false;\n break;\n case 'ArrowLeft':\n that.moving = false;\n break;\n case 'a':\n that.basicAttack = false;\n break;\n case 's':\n that.stopTime = false;\n break;\n case 'd':\n that.rewindTime = false;\n that.resetPaths = true;\n console.log(\"keyup\");\n break;\n case 'w':\n that.slowTime = false;\n break;\n default:\n break;\n }\n e.preventDefault();\n },\n false\n );\n }", "function userinput()\n{\n\twindow.addEventListener(\"keydown\", function (event) {\n\t\tif (event.defaultPrevented) {\n\t\t\treturn; // Do nothing if the event was already processed\n\t\t}\n\n\t\tswitch (event.key) {\n\t\t\tcase \"b\":\n\t\t\t\t// code for \" \" key press.\n\t\t\t\tif(baw==0)\n\t\t\t\t{\n\t\t\t\t\tbaw=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbaw=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"l\":\n\t\t\t\t// code for \" \" key press.\n\t\t\t\tif(lighton==0)\n\t\t\t\t{\n\t\t\t\t\tlighton=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlighton=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \" \":\n\t\t\t\t// code for \" \" key press.\n\t\t\t\tconsole.log(hoverbonus);\n\t\t\t\tif(hoverbonus>0)\n\t\t\t\t{\n\t\t\t\t\tend-=1;\n\t\t\t\t\thoverbonus-=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"ArrowDown\":\n\t\t\t\t// code for \"down arrow\" key press.\n\t\t\t\tcharacter.tick(\"d\",ontrain);\n\t\t\t\tbreak;\n\t\t\tcase \"ArrowLeft\":\n\t\t\t\t// code for \"left arrow\" key press.\n\t\t\t\tpol.tick(\"l\");\n\t\t\t\td.tick(\"l\");\n\t\t\t\tcharacter.tick(\"l\",ontrain);\n\t\t\t\tif(character.getpos()[0]==-6)\n\t\t\t\t{\n\t\t\t\t\tdead=1;\n\t\t\t\t\tend+=1;\n\t\t\t\t\tpol.tick(\"r\");\n\t\t\t\t\td.tick(\"r\");\n\t\t\t\t\tcharacter.tick(\"r\",ontrain);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"ArrowRight\":\n\t\t\t\t// code for \"right arrow\" key press.\n\t\t\t\tpol.tick(\"r\");\n\t\t\t\td.tick(\"r\");\n\t\t\t\tcharacter.tick(\"r\",ontrain);\n\t\t\t\tif(character.getpos()[0]==6)\n\t\t\t\t{\n\t\t\t\t\tdead=1;\n\t\t\t\t\tend+=1;\n\t\t\t\t\tpol.tick(\"l\");\n\t\t\t\t\td.tick(\"l\");\n\t\t\t\t\tcharacter.tick(\"l\",ontrain);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn; // Quit when this doesn't handle the key event.\n\t\t}\n\n\t\t// Cancel the default action to avoid it being handled twice\n\t\tevent.preventDefault();\n\t}, true);\n\t// the last option dispatches the event to the listener first,\n\t// then dispatches event to window\n}", "function MaidPress(a, b, c, d, e, f, g) {\n ini(a, b, c, d, e, f, g);\n\n\n}", "function keystroke(event) \n{\n 'use strict';\n\n // Left arrow?\n if (event.which == 37) {\n pfView.moveLeft();\n }\n\n // Right arrow?\n else if (event.which == 39) {\n pfView.moveRight();\n }\n}", "function onTouchStart( event ) {\n event.preventDefault();\n\n prevX = snake_array[ 0 ].position.x;\n prevY = snake_array[ 0 ].position.y;\n}", "function mousePressed()\n{ \n // Only look for mouse presses during the actual test\n if (draw_finger_arm)\n { \n // Check if mouse click happened within the touch input area\n if(mouseClickWithin(width/2 - 2.0*PPCM, height/2 - 1.0*PPCM, 4.0*PPCM, 3.0*PPCM)) \n {\n // Check if mouse click happened within the keyboard\n if (mouseClickWithin(width/2 - 2.0*PPCM, height/2 - 0.5*PPCM, 4.0*PPCM, 2.5*PPCM))\n {\n pressedKey();\n }\n\n // Check if mouse click happened within the suggestion buttons\n if (mouseClickWithin(width/2 - 2.0*PPCM, height/2 - 1.0*PPCM, 4.0*PPCM, 0.5*PPCM))\n {\n while (currently_typed.length > 0 && currently_typed[currently_typed.length - 1] != \" \")\n {\n currently_typed = currently_typed.substring(0, currently_typed.length - 1);\n }\n if (mouseX < width/2 - 2.0*PPCM + 4.0/3*PPCM) \n {\n currently_typed += suggestionList[1];\n current_word = suggestionList[1];\n }\n else if (mouseX > width/2 - 2.0*PPCM + 4.0/3*2*PPCM) \n {\n currently_typed += suggestionList[2];\n current_word = suggestionList[2];\n }\n else \n {\n currently_typed += suggestionList[0];\n current_word = suggestionList[0];\n }\n \n getSuggestions();\n }\n }\n \n // Check if mouse click happened within 'ACCEPT' \n // (i.e., submits a phrase and completes a trial)\n else if (mouseClickWithin(width/2 - 2*PPCM, height/2 - 5.1*PPCM, 4.0*PPCM, 2.0*PPCM))\n {\n // Saves metrics for the current trial\n letters_expected += target_phrase.trim().length;\n letters_entered += currently_typed.trim().length;\n errors += computeLevenshteinDistance(currently_typed.trim(), target_phrase.trim());\n entered[current_trial] = currently_typed;\n trial_end_time = millis();\n\n current_trial++;\n\n // Check if the user has one more trial/phrase to go\n if (current_trial < 2) \n {\n // Prepares for new trial\n current_word = \"\";\n last_word = \"\";\n for (let i = 0; i < suggestionList.length; i++)\n {\n suggestionList[i] = \"\";\n };\n currently_typed = \"\";\n target_phrase = phrases[current_trial]; \n }\n else\n {\n // The user has completed both phrases for one attempt\n draw_finger_arm = false;\n attempt_end_time = millis();\n CPS = (entered[0].length+entered[1].length)/((attempt_end_time-attempt_start_time)/1000);\n printAndSavePerformance(); // prints the user's results on-screen and sends these to the DB\n attempt++;\n\n // Check if the user is about to start their second attempt\n if (attempt < 2)\n {\n second_attempt_button = createButton('START 2ND ATTEMPT');\n second_attempt_button.mouseReleased(startSecondAttempt);\n second_attempt_button.position(width/2 - second_attempt_button.size().width/2, height/2 + 250);\n current_word = \"\";\n last_word = \"\";\n for (let i = 0; i < suggestionList.length; i++)\n {\n suggestionList[i] = \"\";\n };\n currently_typed = \"\";\n }\n }\n }\n }\n}", "function DollarRecognizer() // constructor\r\n{\r\n\t//\r\n\t// custom defined unistrokes\r\n\t//\r\n\tthis.Unistrokes = new Array(NumUnistrokes);\r\n\tthis.Unistrokes[0] = new Unistroke(\"play-pause\", new Array(new Point(72,49),new Point(73,49),new Point(78,50),new Point(85,53),new Point(105,62),new Point(139,78),new Point(165,90),new Point(189,103),new Point(208,112),new Point(221,117),new Point(225,119),new Point(225,120),new Point(222,122),new Point(216,125),new Point(206,129),new Point(179,140),new Point(148,151),new Point(120,161),new Point(98,168),new Point(80,173),new Point(74,175),new Point(71,177)));\r\n\tthis.Unistrokes[1] = new Unistroke(\"seek-forward\", new Array(new Point(57,108),new Point(59,108),new Point(65,108),new Point(73,106),new Point(98,106),new Point(129,106),new Point(173,107),new Point(198,108),new Point(221,109),new Point(234,110),new Point(239,110),new Point(239,113),new Point(237,115),new Point(235,117),new Point(233,120),new Point(227,127),new Point(219,134),new Point(213,140),new Point(211,143)));\r\n\tthis.Unistrokes[2] = new Unistroke(\"seek-backward\", new Array(new Point(244,113),new Point(243,113),new Point(238,113),new Point(229,113),new Point(219,113),new Point(195,112),new Point(146,110),new Point(115,108),new Point(89,108),new Point(71,108),new Point(59,108),new Point(51,108),new Point(47,109),new Point(45,109),new Point(47,112),new Point(50,114),new Point(54,117),new Point(58,119),new Point(66,125),new Point(72,131),new Point(76,134),new Point(78,137)));\r\n\tthis.Unistrokes[3] = new Unistroke(\"speed-increase\", new Array(new Point(117,48),new Point(124,48),new Point(133,48),new Point(153,48),new Point(175,53),new Point(193,59),new Point(202,69),new Point(202,77),new Point(197,88),new Point(183,100),new Point(168,107),new Point(157,112),new Point(151,114),new Point(150,114),new Point(150,115),new Point(153,117),new Point(162,122),new Point(188,140),new Point(199,153),new Point(201,163),new Point(198,169),new Point(184,177),new Point(160,182),new Point(131,184),new Point(108,184),new Point(94,183),new Point(91,182)));\r\n\tthis.Unistrokes[4] = new Unistroke(\"speed-decrease\", new Array(new Point(160,47),new Point(158,47),new Point(154,46),new Point(148,46),new Point(141,46),new Point(121,46),new Point(103,48),new Point(91,54),new Point(88,60),new Point(87,66),new Point(90,73),new Point(104,86),new Point(120,96),new Point(135,102),new Point(142,103),new Point(145,103),new Point(143,103),new Point(141,103),new Point(137,104),new Point(133,106),new Point(120,113),new Point(109,125),new Point(101,146),new Point(101,157),new Point(108,166),new Point(126,174),new Point(147,179),new Point(162,181),new Point(174,181),new Point(179,179)));\r\n\tthis.Unistrokes[5] = new Unistroke(\"volume-increase\", new Array(new Point(97,187),new Point(97,184),new Point(98,180),new Point(99,173),new Point(99,165),new Point(99,142),new Point(99,116),new Point(99,94),new Point(99,81),new Point(99,74),new Point(100,69),new Point(100,68),new Point(102,68),new Point(105,68),new Point(110,68),new Point(123,68),new Point(141,66),new Point(160,64),new Point(175,64),new Point(185,64),new Point(190,64),new Point(191,64),new Point(192,67),new Point(192,72),new Point(193,82),new Point(193,92),new Point(194,113),new Point(196,135),new Point(198,153),new Point(200,169),new Point(201,177),new Point(202,180),new Point(202,181),new Point(202,182)));\r\n\tthis.Unistrokes[6] = new Unistroke(\"volume-decrease\", new Array(new Point(103,61),new Point(103,62),new Point(103,66),new Point(103,78),new Point(102,95),new Point(101,110),new Point(100,123),new Point(99,137),new Point(99,149),new Point(99,160),new Point(100,163),new Point(100,165),new Point(100,166),new Point(101,167),new Point(101,168),new Point(101,169),new Point(103,169),new Point(107,169),new Point(113,169),new Point(122,169),new Point(143,169),new Point(164,169),new Point(181,169),new Point(190,169),new Point(191,169),new Point(191,166),new Point(194,159),new Point(194,154),new Point(196,136),new Point(196,114),new Point(196,93),new Point(193,74),new Point(193,64),new Point(193,57)));\r\n\tthis.Unistrokes[7] = new Unistroke(\"mute-unmute\", new Array(new Point(125,54),new Point(126,54),new Point(128,53),new Point(131,53),new Point(141,52),new Point(158,54),new Point(177,63),new Point(195,77),new Point(208,97),new Point(212,117),new Point(212,137),new Point(203,153),new Point(190,164),new Point(165,176),new Point(145,180),new Point(125,180),new Point(108,177),new Point(95,172),new Point(86,163),new Point(81,148),new Point(80,135),new Point(80,120),new Point(84,104),new Point(91,90),new Point(108,73)));\r\n\tthis.Unistrokes[8] = new Unistroke(\"size-increase\", new Array(new Point(51,159),new Point(54,159),new Point(59,159),new Point(66,159),new Point(82,159),new Point(99,159),new Point(114,159),new Point(127,159),new Point(137,159),new Point(142,159),new Point(146,159),new Point(148,159),new Point(149,158),new Point(149,154),new Point(150,148),new Point(151,134),new Point(151,118),new Point(152,103),new Point(153,89),new Point(154,80),new Point(154,75),new Point(155,73),new Point(155,72),new Point(156,71),new Point(158,71),new Point(163,71),new Point(181,71),new Point(204,72),new Point(227,72),new Point(247,72),new Point(259,72),new Point(263,72)));\r\n\tthis.Unistrokes[9] = new Unistroke(\"size-decrease\", new Array(new Point(27,83),new Point(30,83),new Point(36,82),new Point(44,82),new Point(57,82),new Point(84,83),new Point(121,83),new Point(136,83),new Point(143,83),new Point(143,84),new Point(143,85),new Point(143,89),new Point(143,93),new Point(143,106),new Point(142,128),new Point(142,141),new Point(142,151),new Point(142,159),new Point(143,164),new Point(143,166),new Point(145,166),new Point(148,166),new Point(152,166),new Point(159,166),new Point(180,166),new Point(205,168),new Point(228,169),new Point(246,170),new Point(257,170),new Point(258,170),new Point(259,170)));\r\n\tthis.Unistrokes[10] = new Unistroke(\"seek-to-start\", new Array(new Point(38,140),new Point(39,140),new Point(41,141),new Point(56,141),new Point(79,138),new Point(103,131),new Point(131,123),new Point(155,113),new Point(175,100),new Point(188,79),new Point(188,67),new Point(186,60),new Point(181,55),new Point(173,51),new Point(163,51),new Point(148,51),new Point(135,58),new Point(123,79),new Point(121,87),new Point(125,104),new Point(150,124),new Point(163,130),new Point(205,141),new Point(228,143),new Point(242,143),new Point(249,143),new Point(250,143),new Point(251,143)));\r\n\tthis.Unistrokes[11] = new Unistroke(\"speed-reset\", new Array(new Point(59,44),new Point(61,44),new Point(67,44),new Point(76,44),new Point(86,43),new Point(123,43),new Point(153,42),new Point(177,42),new Point(199,42),new Point(212,43),new Point(221,43),new Point(226,43),new Point(228,43),new Point(229,43),new Point(229,45),new Point(229,51),new Point(228,70),new Point(226,88),new Point(224,108),new Point(223,126),new Point(221,141),new Point(221,153),new Point(220,160),new Point(220,162),new Point(220,163),new Point(218,164),new Point(214,164),new Point(208,165),new Point(188,166),new Point(146,167),new Point(131,167),new Point(95,166),new Point(81,165),new Point(75,164),new Point(72,164),new Point(71,164),new Point(69,164),new Point(68,164),new Point(66,164),new Point(65,164),new Point(63,164),new Point(62,164),new Point(59,164),new Point(57,164),new Point(57,160),new Point(57,153),new Point(60,145),new Point(61,122),new Point(63,98),new Point(64,83),new Point(64,72),new Point(65,60),new Point(65,51),new Point(66,43),new Point(67,40),new Point(67,39)));\r\n\t//\r\n\t// The $1 Gesture Recognizer API begins here -- 3 methods: Recognize(), AddGesture(), and DeleteUserGestures()\r\n\t//\r\n\tthis.Recognize = function(points, useProtractor)\r\n\t{\r\n\t\tpoints = Resample(points, NumPoints);\r\n\t\tvar radians = IndicativeAngle(points);\r\n\t\tpoints = RotateBy(points, -radians);\r\n\t\tpoints = ScaleTo(points, SquareSize);\r\n\t\tpoints = TranslateTo(points, Origin);\r\n\t\tvar vector = Vectorize(points); // for Protractor\r\n\r\n\t\tvar b = +Infinity;\r\n\t\tvar u = -1;\r\n\t\tfor (var i = 0; i < this.Unistrokes.length; i++) // for each unistroke\r\n\t\t{\r\n\t\t\tvar d;\r\n\t\t\tif (useProtractor) // for Protractor\r\n\t\t\t\td = OptimalCosineDistance(this.Unistrokes[i].Vector, vector);\r\n\t\t\telse // Golden Section Search (original $1)\r\n\t\t\t\td = DistanceAtBestAngle(points, this.Unistrokes[i], -AngleRange, +AngleRange, AnglePrecision);\r\n\t\t\tif (d < b) {\r\n\t\t\t\tb = d; // best (least) distance\r\n\t\t\t\tu = i; // unistroke\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (u == -1) ? new Result(\"No match.\", 0.0) : new Result(this.Unistrokes[u].Name, useProtractor ? 1.0 / b : 1.0 - b / HalfDiagonal);\r\n\t};\r\n\tthis.AddGesture = function(name, points)\r\n\t{\r\n\t\tthis.Unistrokes[this.Unistrokes.length] = new Unistroke(name, points); // append new unistroke\r\n\t\tvar num = 0;\r\n\t\tfor (var i = 0; i < this.Unistrokes.length; i++) {\r\n\t\t\tif (this.Unistrokes[i].Name == name)\r\n\t\t\t\tnum++;\r\n\t\t}\r\n\t\treturn num;\r\n\t}\r\n\tthis.DeleteUserGestures = function()\r\n\t{\r\n\t\tthis.Unistrokes.length = NumUnistrokes; // clear any beyond the original set\r\n\t\treturn NumUnistrokes;\r\n\t}\r\n}", "function onGestureChange(e) {\n cumulativeX += e.translationX;\n cumulativeY += e.translationY;\n scrolling = 1;\n //$('.face').unbind();\n scrolling = 0;\n $('body').unbind('scrollend');\n $('body').bind('scrollend', function () {\n $('body').unbind('scrollend');\n bindFace();\n });\n }", "function animateEyes() {\n\tconst eyeHoldTime = 1500;\n\tconst maxTimeToNextAnimation = 10000;\n\tconst minTimeToNextAnimation = 1000;\n\n\tconst width = $(\"#pyotr\").width();\n\tconst maxOffsetX = (9 * width) / 200;\n\tconst maxOffsetY = (9 * width) / 200;\n\tconst offsetX = Math.floor(Math.random() * (2 * maxOffsetX + 1)) - maxOffsetX;\n\tconst offsetY = Math.floor(Math.random() * (2 * maxOffsetY + 1)) - maxOffsetY;\n\n\t// I originally did this with jquery .animate() but the performance wasn't great\n\t$(\"#pyotr-eyes-wrap\").css(\"transform\", `translate(${offsetX}px, ${offsetY}px)`);\n\n\tclearTimeout(eyeReturnThread);\n\teyeReturnThread = setTimeout(() => {\n\t\t$(\"#pyotr-eyes-wrap\").css(\"transform\", \"translate(0, 0)\");\n\n\t\tconst timeToNextAnimation = Math.floor(Math.random() * (maxTimeToNextAnimation - minTimeToNextAnimation)) + minTimeToNextAnimation;\n\t\tclearTimeout(eyeMoveThread);\n\t\teyeMoveThread = setTimeout(animateEyes, timeToNextAnimation);\n\t}, eyeHoldTime);\n}", "function engage(e) {\n dragging = true;\n putPoint(e);\n}", "function checkKey(e) {\n if (e.keyCode === 87) controls.moveUp = true;\n else if (e.keyCode === 83) controls.moveDown = true;\n else if (e.keyCode === 65) controls.moveLeft = true;\n else if (e.keyCode === 68) controls.moveRight = true;\n else if (e.keyCode === 38) controls.faceUp = true;\n else if (e.keyCode === 40) controls.faceDown = true;\n else if (e.keyCode === 37) controls.faceLeft = true;\n else if (e.keyCode === 39) controls.faceRight = true;\n else if (e.keyCode === 32) controls.shoot = true;\n}", "function showPositionFinger(textCheck, listPositionFinger) {\n let positionFinger\n // get index of list include character have key input\n const map = listPositionFinger.map(text => text.indexOf(textCheck))\n let indexInList = map.findIndex(number => {\n return number !== -1\n })\n // check user input keyboard then show position finger\n positionFinger = document.getElementsByClassName('position-finger')[indexInList]\n if (indexInList === 4) {\n const positionFingerSpace = document.getElementsByClassName('position-finger')[5]\n positionFingerSpace.setAttribute('style', 'visibility: visible;')\n }\n positionFinger = document.getElementsByClassName('position-finger')[indexInList]\n if (positionFinger) {\n positionFinger.setAttribute('style', 'visibility: visible;')\n } else {\n console.log('thaycacac')\n }\n}", "function gesture (elm) {\n /*\n * 0000 0000: idle\n * 0000 0001: start\n * 0000 0010: swipe\n * 0000 0100: vertical scrolling\n * 0000 1000: pinch (two fingers)\n * 0001 0000: pan (one fingers move)\n */\n // var phase = 0\n // TODO: rm window.phase\n var phase = window.phase = enumFactory().add('start', 'move', 'end', 'scroll', 'pinch', 'pan', 'swipe')\n var freeze = false\n var ismoving = false\n var tapTimes = 0, tapStart = -1, tapLast = -1\n\n var target\n var points = {\n start: [],\n last: [],\n current: []\n }\n\n var eventArg\n // const trigger = evt => handlers[evt].forEach(fn => fn(points, target, phase, eventArg))\n var instance = Object.create(hook())\n var trigger = evt => instance.trigger(evt, points, target, phase, eventArg)\n\n const loop = () => { if (ismoving) { raf(loop); render() }}\n\n const setTouchPoints = (evt, item) => {\n // if (!evt.touches || !evt.touches.length) return\n if (isArray(item)) return item.forEach(i => setTouchPoints(evt, i))\n points[item] = []\n if (isString(item)) points[item][0] = touch2point(evt.touches[0])\n if (evt.touches.length > 1) points[item][1] = touch2point(evt.touches[1])\n // else points[item].splice(1, 10)\n }\n\n const onstart = evt => {\n eventArg = evt\n // if (freeze) return\n // ga('gesture.start')\n setTouchPoints(evt, ['start', 'last', 'current'])\n // points.start[0] = points.last[0] = points.current[0] = touch2point(evt.touches[0])\n // if (evt.touches.length > 1) points.start[1] = points.last[1] = points.current[1] = touch2point(evt.touches[1])\n\n target = evt.target\n\n // phase = evt.touches.length > 1 ? 8 : 1\n phase.set('start')\n if (evt.touches.length > 1) phase.or('pinch')\n\n // ismoving = true\n\n trigger('start')\n if (phase.is('pinch')) trigger('pinchstart')\n else trigger('panstart') // one touch point trigger pan\n\n // loop()\n if (!phase.is('pinch')) tapStart = Date.now()\n }\n\n /// TODO: check pinch every time, if one point, switch behavior\n /// TODO: pinch / scroll: change status in onmove or trigger loop in onmove\n const onmove = evt => {\n eventArg = evt\n // console.log('gesture.onmove')\n // if (freeze) return\n // ga('gesture.onmove')\n\n points.last = points.current\n setTouchPoints(evt, 'current')\n\n // evt.touches.length === 1 && phase.rm('pinch')\n // evt.touches.length > 1 && phase.or('pinch')\n if (evt.touches.length > 1) phase.rm('pan').or('pinch')\n else {\n if (phase.is('pinch')) {\n // console.log('pinch ===> start')\n setTouchPoints(evt, 'start')\n // ga('move.trigger.start')\n trigger('start')\n }\n phase.rm('pinch').or('pan')\n // ga('xxxxxxxxxxx: ', phase.is('pan'))\n }\n // phase[evt.touches.length > 1 ? 'or' : 'rm']('pinch')\n\n if (phase.is('start') && !phase.is('pinch')) {\n Math.abs(points.current[0].x - points.start[0].x) < Math.abs(points.current[0].y - points.start[0].y) && phase.or('scroll')\n // phase.or('pan')\n }\n\n if (phase.is('pan') && !phase.is('scroll')) phase.or('swipe')\n\n phase.rm('start').or('move')\n //\n // if (evt.touches.length === 1) phase = 16\n\n if (!ismoving) {\n // TODO: change from two points to one points\n ismoving = true\n loop()\n }\n }\n\n const onend = evt => {\n eventArg = evt\n // console.log('end...')\n // console.log('end.touches:', evt.touches)\n // if (freeze) return\n phase.rm('start', 'move').or('end')\n\n // ga('gesture.end')\n\n phase.is('scroll') && trigger('scrollend')\n phase.is('pinch') && trigger('pinchend')\n phase.is('pan') && trigger('panend')\n ismoving = false\n // phase.set(0)\n\n // TODO: learn single / double logic\n if (!phase.is('pinch') && !phase.is('pan')) {\n var now = Date.now()\n if (now - tapStart <= 200) {\n trigger('tap')\n // if (now - tapLastTimestamp <= 200) tapTimes++\n // else tapTimes = 0\n\n tapTimes = now - tapLast <= 300 ? tapTimes + 1 : 1\n tapLast = now\n\n if (tapTimes === 1) setTimeout(() => tapTimes === 1 && trigger('single'), 300)\n else if (tapTimes === 2) trigger('double')\n }\n }\n\n trigger('end')\n }\n\n var offs = [ on(elm, 'touchstart', onstart), on(elm, 'touchmove', onmove), on(elm, 'touchend', onend) ]\n\n // return {\n // on: _on, off: _off, phase: () => phase,\n // destroy: () => offs.forEach(h => h())\n // }\n instance.phase = () => phase\n instance.destroy = () => {\n instance.$destroy()\n offs.forEach(h => h())\n }\n return instance\n\n function render () {\n trigger('move')\n\n // ga('yyyyyyyyyyyyy: ', phase.is('pan'))\n // ga(phase)\n\n // var _map = arr => JSON.stringify(arr.map(a => ({x: a.x.toFixed(0), y: a.y.toFixed(0)})))\n // console.log('current:', _map(points.current), 'start:', _map(points.start))\n\n phase.is('scroll') && trigger('scroll')\n phase.is('swipe') && trigger('swipe')\n phase.is('pinch') && trigger('pinch')\n phase.is('pan') && trigger('pan')\n\n // (phase.is('pan') && !phase.is('scroll')) && trigger('swipe')\n }\n}", "checkKey(e) {\n if (e.keyCode == '87') { //up\n console.log(\"UP key pressed.\")\n this.moveFrog(0, -10);\n }\n else if (e.keyCode == '83') { //down\n console.log(\"DOWN key pressed.\")\n this.moveFrog(0, 10);\n }\n else if (e.keyCode == '65') { //left\n console.log(\"LEFT key pressed.\")\n this.moveFrog(-10, 0)\n }\n else if (e.keyCode == '68') { //right\n console.log(\"RIGHT key pressed.\")\n this.moveFrog(10, 0);\n }\n }", "function eat() {\n \n}", "function init(){\nvar canvas=document.getElementById(\"board\");\ncanvas.width=document.body.clientWidth;\ncanvas.height=document.body.clientHeight;\ncw=canvas.width;\nch=canvas.height;\ncon=canvas.getContext(\"2d\");\ncon.fillStyle=\"#dddddd\"//\"#fffaf0\"//\"#efdfbb\";\ncon.fillRect(0,0,cw,ch);\nif(\"ontouchstart\" in window)\ncanvas.addEventListener(\"touchstart\", touchHandler, false);\nelse\ncanvas.addEventListener(\"mousedown\", touchHandler1, false);\n\n//play button\nplay=Object.create(entity);\nplay.ini(pla, con,0,0,100,100,0,0,100,100);\nplay.calWithRatio(\"width\",20);\nplay.x1=cw/2-play.w1/2;\nplay.y1=ch/2-play.h1/2;\nplay.draw();\n\n//help button\nhelp=Object.create(entity);\nhelp.ini(helps, con,0,0,100,100,0,0,100,100);\nhelp.calWithRatio(\"width\",20);\nhelp.x1=cw/2-play.w1/2;\nhelp.y1=play.y1 + play.h1 + 3/100 *ch;\nhelp.draw();\n\n//help button\nsna=Object.create(entity);\nsna.ini(snake, con,0,0,100,100,0,0,100,100);\nsna.calWithRatio(\"width\",40);\nsna.x1=cw/2-sna.w1/2;\nsna.y1=play.y1 -sna.h1 -3/100 *ch;\nsna.draw();\n\n\n}", "function onKeyDown(key_pressed) {\n if (key_pressed === ARROW_DOWN && snake.direction !== UP) {\n snake.direction = DOWN;\n }\n if (key_pressed === ARROW_UP && snake.direction !== DOWN) {\n snake.direction = UP;\n } \n if (key_pressed === ARROW_RIGHT && snake.direction !== LEFT) { \n snake.direction = RIGHT;\n }\n if (key_pressed === ARROW_LEFT && snake.direction !== RIGHT) { \n snake.direction = LEFT;\n } \n}", "function changeDirection(e) {\n if (e.keyCode == 37) {\n direction = 0;\n console.log(\"direction is left:\" + direction);\n updateSnakeList();\n } else if (e.keyCode == 38) {\n direction = 1;\n console.log(\"direction is up:\" + direction)\n } else if (e.keyCode == 39) {\n direction = 2;\n console.log(\"direction is right :\" + direction)\n } else if (e.keyCode == 40) {\n direction = 3;\n console.log(\"direction is down :\" + direction)\n }\n }", "devicemotion(e) {\n\t\tconst current = e.acceleration;\n\n\t\tif ((this.lastX === null) && (this.lastY === null) && (this.lastZ === null)) {\n\t\t\tthis.lastX = current.x;\n\t\t\tthis.lastY = current.y;\n\t\t\tthis.lastZ = current.z;\n\t\t\treturn;\n\t\t}\n\n\t\tconst deltaX = this.lastX - current.x;\n\t\tconst deltaY = this.lastY - current.y;\n\t\tconst deltaZ = this.lastZ - current.z;\n\n\t\tlet activedEventName = null;\n\t\tif (deltaX > this.options.threshold) {\n\t\t\tactivedEventName = 'shake-x-positive';\n\t\t} else if (-deltaX > this.options.threshold) {\n\t\t\tactivedEventName = 'shake-x-negative';\n\t\t} else if (deltaY > this.options.threshold) {\n\t\t\tactivedEventName = 'shake-y-positive';\n\t\t} else if (-deltaY > this.options.threshold) {\n\t\t\tactivedEventName = 'shake-y-negative';\n\t\t} else if (deltaZ > this.options.threshold) {\n\t\t\tactivedEventName = 'shake-z-positive';\n\t\t} else if (-deltaZ > this.options.threshold) {\n\t\t\tactivedEventName = 'shake-z-negative';\n\t\t}\n\t\tif (activedEventName != null) {\n\t\t\tconst currentTime = new Date();\n\t\t\tconst timeDifference = currentTime.getTime() - this.lastTime.getTime();\n\n\t\t\tif (timeDifference > this.options.timeout) {\n\t\t\t\twindow.dispatchEvent(this.events[this.eventNames.indexOf(activedEventName)]);\n\t\t\t\tthis.lastTime = new Date();\n\t\t\t}\n\t\t}\n\n\t\tthis.lastX = current.x;\n\t\tthis.lastY = current.y;\n\t\tthis.lastZ = current.z;\n\n\t}", "function Behold(){}", "function keyPressed(){\n //check right arrow is pressed \n //ASCII\n if(keyCode===RIGHT_ARROW){\n Matter.Body.applyForce(ball,{x:0,y:0},{x:0.05,y:0});\n }\n if(keyCode===LEFT_ARROW){\n Matter.Body.applyForce(ball1,{x:0,y:0},{x:-0.05,y:0})\n }\n}", "function moveFrog(e) {\n\n $(\"div\").removeClassWild(\"frog-*\"); //remove all 'frog'\n // squares[currentIndex].classList.remove('frog');\n switch (e.keyCode) {\n case 37:\n if (currentIndex % width !== 0) currentIndex -= 1; /* left */\n break;\n case 38:\n if (currentIndex - width >= 0) currentIndex -= width; /* Up */\n break;\n case 39:\n if (currentIndex % width < width - 1) currentIndex += 1; /* right */\n break;\n case 40:\n if (currentIndex + width < width * width) currentIndex += width; /* Down */\n break;\n }\n if ((currentIndex >= 63 && currentIndex <= 80) || (currentIndex >= 36 && currentIndex <= 44) || (currentIndex >= 0 && currentIndex <= 17)) {\n squares[currentIndex].classList.add('frog-on-lawn');\n } else if (currentIndex >= 45 && currentIndex <= 62) {\n squares[currentIndex].classList.add('frog-on-road');\n } else if (currentIndex >= 18 && currentIndex <= 35) {\n squares[currentIndex].classList.add('frog-on-log');\n }\n\n Lose();\n Win();\n // new Audio('sound/kva.mp3').autoplay = true;\n}" ]
[ "0.6300379", "0.6289942", "0.6143357", "0.6110359", "0.60592806", "0.60223633", "0.59375006", "0.5894093", "0.5888623", "0.58865297", "0.58089197", "0.57427055", "0.5659047", "0.56529963", "0.56498903", "0.5630506", "0.5618757", "0.56185204", "0.5575314", "0.55681705", "0.5553838", "0.55119294", "0.551141", "0.5505178", "0.54907477", "0.5485942", "0.54849404", "0.54845506", "0.5475243", "0.5473243", "0.5463241", "0.54580486", "0.54311544", "0.5430548", "0.5418022", "0.5415954", "0.53980654", "0.537092", "0.5368434", "0.53673625", "0.5365319", "0.5362889", "0.5360916", "0.53580296", "0.5357613", "0.53532594", "0.5348836", "0.53459746", "0.53420526", "0.5340871", "0.5337457", "0.5328499", "0.5318115", "0.53173876", "0.5312349", "0.53100413", "0.5302764", "0.52981174", "0.5293863", "0.5291141", "0.52812135", "0.52811223", "0.528073", "0.52803075", "0.52802855", "0.52794236", "0.52788633", "0.52775913", "0.52720267", "0.52712345", "0.5270377", "0.5268613", "0.5266765", "0.52569944", "0.52541834", "0.52539533", "0.52492106", "0.52476615", "0.52470404", "0.5243777", "0.52437276", "0.5237762", "0.52305675", "0.52286375", "0.5226329", "0.5221284", "0.5217894", "0.5217081", "0.52165914", "0.5213751", "0.52133006", "0.52127916", "0.52046794", "0.52037", "0.52026975", "0.5198331", "0.5198199", "0.5197196", "0.5195995", "0.51951087", "0.5190519" ]
0.0
-1
Unify messaging method And eliminate callbacks (a message is replied with another message instead)
function messaging( message, callback ) { chrome.runtime.sendMessage( message, callback ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "sendMessage (_connection, _message) { methodNotDefined() }", "function onMessage(event) {\n const { id, ...data } = event.data;\n const onSuccess = callbacks[id];\n delete callbacks[id];\n onSuccess(data);\n }", "onMessagesRemoved() {}", "deleteMessageCallBack(message){\n this.props.deleteMessage(message.nummess);\n }", "onMessage(data) {\n const {id, error, result} = JSON.parse(data);\n const promise = this.currentMessages[id];\n if(!promise) return;\n \n if(error) {\n promise.reject(error);\n } else {\n promise.resolve(result);\n }\n\n delete this.currentMessages[id];\n }", "handleMessages(messages) {\n\n }", "respondToUnlinkCommands(message) {\n const previousSize = this.channelLinks.length;\n this.channelLinks = this.channelLinks.filter(\n link => link.slack_channel !== message.channel\n );\n\n let response;\n if (previousSize === this.channelLinks.length) {\n response = 'This channel is not connected to any Facebook friends';\n } else {\n response = 'This channel is no longer connected to Facebook Messenger';\n this.saveData();\n }\n this.postMessage(message.channel, response, { as_user: true });\n }", "onMessage(event) {\n const message = JSON.parse(event.data);\n const topicId = message[TOPIC_KEY];\n const topicCallback = this.topics[topicId];\n\n if (topicId && topicCallback) {\n topicCallback(message.payload);\n } else if (topicId) {\n // eslint-disable-next-line no-console\n console.error(`Could not find topic ${topicId}. Dropping message.`, event);\n } else {\n // consider this some sort of broadcast from the server\n // eslint-disable-next-line no-console\n console.log('Unknown message from server', message, event);\n }\n }", "respondToMessages() { }", "removeMsg(e, callback){\r\n\t\tif (e.status == \"masuk\" || e.status == \"terkirim\") {\r\n\t\t\tlet newComFetch = new ComFetch();\r\n\t\t\tlet data = {};\r\n\t\t\tlet resource = api_uri+'JSON/';\r\n\t\t\tif (e.status == \"masuk\") {\r\n\t\t\t\tdata = {\r\n\t\t\t\t\t\t\"pmto_deleted\": 1,\r\n\t\t\t\t\t\t}\r\n\t\t\t\tresource = api_uri+'JSON/PrivmsgsTo/'+e.id;\r\n\t\t\t}else if (e.status == \"terkirim\") {\r\n\t\t\t\tdata = {\r\n\t\t\t\t\t\t\"privmsg_deleted\": 1,\r\n\t\t\t\t\t\t}\r\n\t\t\t\tresource = api_uri+'JSON/Privmsgs/'+e.id;\r\n\t\t\t}\r\n\t\t\tnewComFetch.setHeaders({Authorization:this.jwt_signature});\r\n\t\t\tnewComFetch.setRestURL(base_url);\r\n\t\t\tnewComFetch.setMethod('POST');\r\n\t\t\tnewComFetch.setResource(resource);\r\n\t\t\tnewComFetch.setSendData(data);\r\n\t\t\tnewComFetch.sendFetch((resp) => { callback(resp); });\r\n\t\t }\r\n\t}", "stopListening() {\n // If this object doesn't have a uid it could potentially create problematic queries, so return.\n if (this.uid === undefined) return;\n // Remove all handlers for this messenger\n Fetch.getMessagesReference(this.uid).off();\n }", "_handleMessage(message) {\n // command response\n if (message.id) {\n const callback = this._callbacks[message.id];\n if (!callback) {\n return;\n }\n // interpret the lack of both 'error' and 'result' as success\n // (this may happen with node-inspector)\n if (message.error) {\n callback(true, message.error);\n } else {\n callback(false, message.result || {});\n }\n // unregister command response callback\n delete this._callbacks[message.id];\n // notify when there are no more pending commands\n if (Object.keys(this._callbacks).length === 0) {\n this.emit('ready');\n }\n }\n // event\n else if (message.method) {\n const {method, params, sessionId} = message;\n this.emit('event', message);\n this.emit(method, params, sessionId);\n this.emit(`${method}.${sessionId}`, params, sessionId);\n }\n }", "unregisterMessage(msg) {\n let self = this;\n\n if (typeof msg !== \"string\") {\n throw new TypeError(`Unregister Message Error: Message argument should be of type string`);\n }\n\n delete self.messages[msg];\n delete self.listeners[msg];\n }", "onMessagesRemoved() {\n // result text is only for when we are not searching\n if (!this.view.searching) {\n this.updateStatusResultText();\n }\n this.__proto__.__proto__.onMessagesRemoved.call(this);\n }", "_removeMessageListener() {\n handlers.remove(this.componentId);\n }", "offMessage() {\n var _this$messageListener;\n\n (_this$messageListener = this.messageListener) === null || _this$messageListener === void 0 ? void 0 : _this$messageListener.remove();\n this.messageListener = undefined;\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "handleMessage(message) {\r\n console.log('Received message', message.payloadString);\r\n this.callbacks.forEach((callback) => callback(message));\r\n }", "onMessageReceive() {}", "function messageReceived(m){\n var action = m.action;\n var funcs = subscribed[action] || [];\n for(var i = 0; i < funcs.length; i++) {\n if(funcs[i]) funcs[i](m.data);\n }\n }", "function noop() {\n console.warn('Hermes messaging is not supported.');\n }", "TheMessage(msg) {\n return;\n }", "_removeMsg(id) {\n if (this._sentmsg[id]) {\n if (this._sentmsg[id].refTimeout) {\n clearTimeout(this._sentmsg[id].refTimeout);\n }\n delete this._sentmsg[id];\n }\n }", "function sendMessage(){}", "receiveMessage({data, target}) {\n data.forEach(msg => {\n if (msg) {\n let handlers = Array.from(this.getHandlers(msg.messageName,\n msg.sender || null,\n msg.recipient));\n\n msg.target = target;\n this.callback(handlers, msg);\n }\n });\n }", "disconnect()\n {\n ext.onMessage.removeListener(this._onMessage);\n }", "on_message(message) {\r\n }", "on_message(message) {\r\n }", "on_message(message) {\r\n }", "function handleMessage(message) {\n var an_id = uuidv1();\n var obj = JSON.parse(message);\n obj['id'] = an_id;\n\n switch(obj['type']) {\n case \"postMessage\":\n obj['type'] = 'incomingMessage';\n console.log('incomingMessage');\n break;\n\n case \"postNotification\":\n obj['type'] = 'incomingNotification';\n console.log('incomingNotification')\n obj['message'] = obj.username + ' has changed their name to ' + obj.newName;\n obj['username'] = obj.newName;\n break;\n\n default:\n console.log('default')\n }\n\n contents = JSON.stringify(obj);\n broadcastMessage(contents);\n}", "function removeMessage( id ) {\n message.remove( id );\n}", "onMessage() {}", "onMessage() {}", "stop () {\n this._client.removeAllListeners('messageCreate')\n this._client.removeAllListeners('messageReactionAdd')\n this._client.removeAllListeners('messageReactionRemove')\n }", "onMessageArrived(topic,message) {\n\t\tlet that = this;\n\t\tlet parts = topic ? topic.split(\"/\") : [];\n if (topic === \"hermod/default/tts/say\") {\n\t\t\tconsole.log('DUMPME')\n\t\t\tconsole.log(this.eventCallbackFunctions);\n\t\t} \n\t\tlet payload = null\n\t\tif (parts.length > 0 && parts[0] === \"hermod\") {\n // Audio Messages pass through message body direct\n if (parts.length > 3 && (parts[2]===\"speaker\"&& parts[3]===\"play\" )) {\n\t\t\t\tpayload = message;\n\t\t\t\tconsole.log('speaker play')\n } else if (parts.length > 3 && (parts[2]===\"microphone\" && parts[3]===\"audio\")) {\n\t\t\t\tpayload = message;\n\t\t\t} else {\n\t\t\t\t// only log non audio\n\t\t\t\t//console.log(['message '+topic,message.toString()]);\n\t\t\t\ttry {\n payload = JSON.parse(message.toString()); \n } catch (e) {\n\t\t\t\t console.log(['JSON PARSE ERROR',message.toString()]);\n\t\t\t\t payload = {}\n }\n console.log(['message payload '+topic,payload]);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tlet siteId = parts[1];\n\t\t\tlet callbacks = this.subscriptions[topic];\n\t\t\tif (callbacks) {\n\t\t\t\tfor (var subscriptionId in callbacks) {\n\t\t\t\t\tlet value = callbacks[subscriptionId]\n\t\t\t\t\tvalue.callBack.bind(that)(topic,siteId,payload);\n\t\t\t\t\tif (value.oneOff) {\n\t\t\t\t\t\tthis.removeCallbackById(subscriptionId)\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\t\n\t\n }\n }", "delete() {\n if (typeof this.ctxPtr !== 'undefined' && this.ctxPtr !== null) {\n Module._vscr_ratchet_message_delete(this.ctxPtr);\n this.ctxPtr = null;\n }\n }", "_ackSendMessageHandler(json){\n\t if (json.user !== CooperativeEditorParticipants.userName ){\n \t\t\tthis.domHost.playTTS(json.user);\n \t\t}\n\n \t\tthis.push('messages', {\"user\": json.user, \"message\": json.message, \"time\": json.time});\n \t\tthis.domHost.playSound(\"sendMessage\", json.effect, json.position);\n \t\t\n \t\tthis.isTyping = false;\n }", "removeMessage(id) {\n this.socket.call(\"deleteMessage\", [id]).catch((reason) => {\n console.log(\"Delete Message Error: \" + reason);\n });\n }", "function messagingApi()\n{\n\n}", "receiveMessage(message) {\n return new Promise((resolve, reject) => {\n if (message instanceof Message){\n this.messageEventCallbacks.forEach(cb=>{\n cb(message);\n });\n }\n resolve();\n })\n }", "remove() {\n MessagingModule.removeMessage(this.conversation, this.uuid);\n }", "function gotMessageFromServer(message) {\n console.log(\"Got message\", message.data); \n var data = JSON.parse(message.data); \n \n switch(data.type) { \n case \"login\": \n handleLogin(data.success,data.allUsers); \n break;\n case \"joined\":\n catchAllAvailableUsers(data.allUsers);\n break;\n case \"statusChange\":\n refreshAllAvailableUsers(data.user_status);\n break;\n case \"snap\":\n console.log('got imgUrl')\n gotRemoteSnapImg(data.snapUrl);\n break;\n //when somebody wants to call us \n case \"offer\": \n console.log('inside offer')\n document.getElementById('callFrom').innerHTML = '來自 ' + name;\n handleOffer(data.offer, data.name);\n alert(\"Receive a call from \" + data.name);\n break; \n case \"answer\": \n console.log('inside answer')\n handleAnswer(data.answer); \n break; \n //when a remote peer sends an ice candidate to us \n case \"candidate\": \n console.log('inside handle candidate')\n handleCandidate(data.candidate); \n break;\n case \"decline\":\n window.clearTimeout(callTimeout);\n handleLeave();\n alert(\"No response from remote\");\n break;\n case \"timeout\":\n handleLeave();\n alert(\"You didn't resopnse a call from \" + data.name);\n break;\n case \"leave\": \n handleLeave();\n alert(\"Remote has disconnected !\");\n break;\n case \"close\":\n if(data.reqFrom == connectedUser) {\n handleLeave();\n alert(\"Remote has disconnected !\");\n }\n refreshAllAvailableUsers(data.user_status);\n break;\n\n default: \n break; \n } \n\n serverConnection.onerror = function (err) { \n console.log(\"Got error\", err); \n };\n\n}", "function handleMessage(message) {\n if (message.method === \"msgtoclient\"){\n // notify()\n messages.appendChild(AppendMessage(msgText, GetDate()));\n messages.scrollTop = 9999;\n } \n else return;\n}", "function onUnPauseMessage(message) {\n\n }", "_handleMessage(userId, { message }) {\n this.debug && console.log('MESSAGE ' + message);\n\n if (message.type) {\n this.debug && console.log('received msg typ ' + message.type);\n } else {\n this.debug && console.log('Client received message: ' + message);\n }\n\n if (typeof this.peerClient.onMessageCallback !== 'function') {\n throw new Error(\"you need set on('message',callback)'s callback first!\");\n }\n this.peerClient.onMessageCallback({\n sender: userId,\n content: message\n });\n // TO DO HANDLE BYE\n // } else if (message === 'bye' && peerStarted) {\n // handleRemoteHangup();\n }", "function receivedMessage(senderId, message) {\n console.trace(\"[receivedMessage] Procesando evento webhook 'message': %j\", message);\n\n let messageId = message.mid;\n\n if (message.quick_reply) {\n // GLOZADA: Propaga a la app Bot-NLP el procesamiento de la respuesta a pregunta con opcion multiple\n let quickReplyPayload = message.quick_reply.payload;\n console.trace(\"[receivedMessage] Quick reply para el mensaje: %s, con la informacion: \",\n messageId, quickReplyPayload);\n /** GLOZADA: PENDIENTE IMPLEMENTAR\n quickReplyReceived(senderId, quickReplyPayload);\n */\n return; // Obliga a finalizar el procesamiento del mensaje\n } else if (message.text) {\n // GLOZADA: Propaga a la app Bot-NLP el procesamiento del mensaje \n /** GLOZADA: PENDIENTE IMPLEMENTAR\n sendTextMessageNPL(senderId, message.text);\n */\n callSendAPI(senderId, textoToMensajeGenerico(util.format(\"De momento no se procesa el texto:\", message.text)));\n return; // Obliga a finalizar el procesamiento del mensaje\n }\n\n // Los mensajes que no son capturados por los filtros, se omiten y se responde un mensaje generico\n\n if (message.is_echo) {\n // GLOZADA: Simplemente registra en el log de la consolo el mensaje de eco\n console.trace(\"[receivedMessage] Se ha recibido un mensaje de eco. mid: %s, app_id: %d, metadata %s\",\n messageId, message.app_id, message.metadata);\n }\n //ORIGINAL: simplificado\n //sendTextMessage(senderID, \"Lo siento, no puedo entender este tipo de mensajes.\");\n callSendAPI(senderId, textoToMensajeGenerico(\"Lo siento, no puedo entender este tipo de mensajes.\"))\n\n}", "_resetHandlers() {\n if (this.db && this.db.app) {\n this.db.app.allMessages.removeListener(this._messagesListener);\n }\n }", "async delete_message(msgid) {\n \n }", "function removeMessage() {\r\n\t// Clear all messaging elements.\r\n\t $('#messaging, #status').each(function(){\r\n\t\t if ($(this).html() != \"\") {\r\n\t\t\t $(this).html(\"\");\r\n\t \t}\r\n\t });\r\n\t\r\n\t// Reset any 'invalid' classes on labels and fields.\r\n\t$('.invalid').each(function(){\r\n\t\t$(this).removeClass('invalid');\r\n\t});\r\n\t\r\n}", "clearMessageContents() {\r\n // NOTE: 04/17/2017 - These ui update methods are so short now we can probably recycle them and just pass the\r\n // managers behaviour directly.\r\n this.props.uiManager.clearMessageText();\r\n }", "function isNotificationMessage(message) {\r\n let candidate = message;\r\n return candidate && is.string(candidate.method) && message.id === void 0;\r\n}", "function isNotificationMessage(message) {\r\n let candidate = message;\r\n return candidate && is.string(candidate.method) && message.id === void 0;\r\n}", "function isNotificationMessage(message) {\r\n let candidate = message;\r\n return candidate && is.string(candidate.method) && message.id === void 0;\r\n}", "function isNotificationMessage(message) {\r\n let candidate = message;\r\n return candidate && is.string(candidate.method) && message.id === void 0;\r\n}", "function isNotificationMessage(message) {\r\n var candidate = message;\r\n return candidate && is.string(candidate.method) && message.id === void 0;\r\n}", "function isNotificationMessage(message) {\n var candidate = message;\n return candidate && is.string(candidate.method) && message.id === void 0;\n}", "function handleMessage(msg) { // process message asynchronously\n setTimeout(function () {\n messageHandler(msg);\n }, 0);\n }", "componentWillUnmount(){\n socket.off(\"get_data\");\n socket.off(\"get_newmessage\");\n }", "removeMsg(uuid) {\n state.destroy(uuid);\n m.redraw();\n }", "processMessages() {\n if (this._currentlyProcessing) {\n // Prevent bloating the call stack.\n return;\n }\n this._currentlyProcessing = true;\n while (this._messageQueue.size > 0) {\n let [sender, descriptor, body, target] = this._messageQueue.dequeue(1);\n for (let listenerKey of this._descriptors.getAnscIt(descriptor)) {\n let {\n name: subscriberName, handler, source: senderName\n } = this._listeners[listenerKey];\n if (target !== undefined && target !== subscriberName) {\n continue;\n }\n if (senderName !== undefined && senderName !== sender) {\n continue;\n }\n \n handler(body, descriptor, sender);\n }\n }\n this._currentlyProcessing = false;\n }", "function _messageHandler(message) {\n try {\n if (message.method) { // request\n var method = message.method,\n params = message.params || [];\n if (\"serviceId\" in message) {\n var service = _serviceReferences[message.serviceId];\n if (!service) {\n _throwError(message.id, \"service not found\");\n }\n if (method in service) {\n _callMethod(message.id, service, service[method], params);\n } else {\n _throwError(message.id, \"method not found\");\n }\n } else if (\"objectId\" in message) {\n var object = _objectReferences[message.objectId];\n if (!object) {\n _throwError(message.id, \"object not found\");\n }\n if (method in object) {\n _callMethod(message.id, object, object[method], params);\n } else {\n _throwError(message.id, \"method not found\");\n }\n } else if (\"requestId\" in message) {\n var request = _requestReferences[message.requestId];\n if (request && method === \"cancel\" && request.cancel) {\n request.cancel.apply(request, params);\n }\n } else if (\"responseId\" in message) {\n var response = _responseReferences[message.responseId];\n if (response && method === \"progress\" && response.progress) {\n response.progress.apply(response, params);\n }\n } else {\n if (\"plugin\" === message.method) { //$NON-NLS-0$\n var manifest = message.params[0];\n _update({\n headers: manifest.headers,\n services: manifest.services\n }).then(function() {\n _deferredLoad.resolve(_this);\n });\n } else if (\"timeout\" === message.method) {\n if (_deferredLoad) {\n _deferredLoad.reject(message.error);\n }\n } else {\n throw new Error(\"Bad method: \" + message.method);\n }\n }\n } else {\n var deferred = _responseReferences[String(message.id)];\n delete _responseReferences[String(message.id)];\n if (message.error) {\n var error = _internalRegistry.handleServiceError(_this, message.error);\n deferred.reject(error);\n } else {\n deferred.resolve(message.result);\n }\n }\n } catch (e) {\n console.log(\"Plugin._messageHandler \" + e);\n }\n }", "function messageNotUnderstood(receiver, selector, args) {\n\t\t/* Handles JS method calls. */\n\t\tif(receiver.klass === undefined || receiver.allowJavaScriptCalls) {\n\t\t\treturn callJavaScriptMethod(receiver, selector, args);\n\t\t}\n\n\t\t/* Handles not understood messages. Also see the Amber counter-part \n\t\t Object>>doesNotUnderstand: */\n\n\t\treturn receiver._doesNotUnderstand_(\n\t\t\t\tst.Message._new()\n\t\t\t\t._selector_(st.convertSelector(selector))\n\t\t\t\t._arguments_(args)\n\t\t\t\t);\n\t}", "function messageNotUnderstood(receiver, selector, args) {\n\t\t/* Handles JS method calls. */\n\t\tif(receiver.klass === undefined || receiver.allowJavaScriptCalls) {\n\t\t\treturn callJavaScriptMethod(receiver, selector, args);\n\t\t}\n\n\t\t/* Handles not understood messages. Also see the Amber counter-part \n\t\t Object>>doesNotUnderstand: */\n\n\t\treturn receiver._doesNotUnderstand_(\n\t\t\t\tst.Message._new()\n\t\t\t\t._selector_(st.convertSelector(selector))\n\t\t\t\t._arguments_(args)\n\t\t\t\t);\n\t}", "function hookMessengerModules(callback) {\n if(window.requireLazy) {\n window.requireLazy(HOOK_MODULES, (...modules) => {\n setHookedModules(...modules);\n \n // override and hook into methods relating to messages\n Modules.RemovedMessageTombstoneContent.getTombstoneContent = getTombstoneContent;\n Modules.MercuryThreadInformer.prototype.informNewMessage = informNewMessage;\n Modules.MercuryThreadInformer.prototype.updatedMessage = updatedMessage;\n \n callback();\n });\n } else {\n console.warn('Failed to inject Unsend Recall for Messenger hook.');\n }\n}", "function onCallBack(message){\t\t\n\t\tif(message.body){\n\t\t\tconsole.log('receiving data',message.body);\t\n\t\t\tvar data = message.body\n\t\t\twhenMassegeResieved(JSON.parse(data));\t\n\t\t}else{\n\t\t\tconsole.log('message contain no data');\n\t\t}\t\t\n\t}", "function gotMessageFromServer(message) {\r\n var n, data, dest, answer;\r\n var msg = JSON.parse(message.data);\r\n // Ignore messages from ourself\r\n if (msg.id === id) {\r\n console.log(\"me to me: discard!\");\r\n return;\r\n }\r\n console.log(\"gotMessageFromServer:\");\r\n console.log(\"|msg.id/id: '\" + msg.id + \"' / '\" + id + \"'\\n|msg.type: \" + msg.type);//+\"\\n|msg: \"+JSON.stringify(msg));\r\n\r\n switch (msg.type) {\r\n case \"newNode\":\r\n id = msg.newid;\r\n console.log(\"id: \" + id);\r\n idtxt.textContent = id;\r\n newSucc(msg.succ);\r\n //envia join ao sucessor\r\n if (msg.succ !== id) {\r\n serverConnection.send(JSON.stringify({'type': \"join\", 'id': id, 'dest': msg.succ}));\r\n connectTo(0);\r\n }\r\n\r\n break;\r\n\r\n case \"join\":\r\n console.log(\"join: \" + msg.id);\r\n if (pred.id !== msg.id) {\r\n if (pred.id != null)\r\n serverConnection.send(JSON.stringify({\r\n 'type': \"notify\",\r\n 'id': id,\r\n 'dest': pred.id,\r\n 'newsucc': msg.id\r\n }));\r\n pred.id = msg.id;\r\n predtxt.textContent = msg.id;\r\n\r\n }\r\n break;\r\n\r\n case \"notify\":\r\n console.log(\"notify: \" + msg.newsucc);\r\n newSucc(msg.newsucc);\r\n connectTo(0);\r\n break;\r\n\r\n case \"sdp\":\r\n // Only create answers in response to offers\r\n n = checkTables(msg.id, true);\r\n console.log(\"sdp!\");\r\n //console.log(\"msg.data: \"+JSON.stringify(msg.data));\r\n console.log(\"n: \" + JSON.stringify(n));\r\n if (n.t === \"FT\") {\r\n if (!fingerTable[n.n].sdpStatus || msg.data.type == 'answer') {\r\n\r\n console.log(\"sdp ft\");\r\n //dest = fingerTable[n.n].id;\r\n dest = msg.id;\r\n /*data = JSON.parse(msg.data);*/\r\n console.log(n.n + \".signalingState: \" + fingerTable[n.n].pc.signalingState);\r\n console.log(\"ldesc / remdesc -> \" + fingerTable[n.n].pc.localDescription + \" / \" + fingerTable[n.n].pc.remoteDescription);\r\n\r\n fingerTable[n.n].pc.setRemoteDescription(new RTCSessionDescription(msg.data)).then(function () {\r\n fingerTable[n.n].sdpStatus = true;\r\n console.log(\"sdp type: \" + msg.data.type);\r\n if (msg.data.type == 'offer') {\r\n fingerTable[n.n].pc.createAnswer().then(createdDescription).then(function (sdp) {\r\n fingerTable[n.n].pc.setLocalDescription(sdp).then(function () {\r\n console.log(\"(ft)sdp answer: \" + sdp);\r\n serverConnection.send(sendThroughServer(fingerTable[n.n].pc.localDescription, dest, \"sdp\"));\r\n }).catch(errorHandler);\r\n }).catch(errorHandler);\r\n }\r\n }).catch(errorHandler);\r\n }\r\n }\r\n //console.log(\"msg.data.sdp: \\n\"+msg.data.sdp);\r\n else if (n.t === \"TP\") {\r\n if (!tempPeers[n.n].sdpStatus || msg.data.type == 'answer') {\r\n console.log(\"sdp tp\");\r\n dest = tempPeers[n.n].id;\r\n tempPeers[n.n].pc.setRemoteDescription(new RTCSessionDescription(msg.data)).then(function () {\r\n fingerTable[n.n].sdpStatus = true;\r\n if (msg.data.type === 'offer') {\r\n answer = tempPeers[n.n].pc.createAnswer().then(createdDescription).catch(errorHandler);\r\n console.log(\"(tp)sdp answer: \" + answer);\r\n tempPeers[n.n].pc.setLocalDescription(answer);\r\n }\r\n }).catch(errorHandler);\r\n }\r\n } else\r\n console.log(\"sdp already set!\");\r\n break;\r\n\r\n case \"ice\":\r\n n = checkTables(msg.id, false);\r\n console.log(\"n, n.n : \" + JSON.stringify(n) + \", \" + n.n);\r\n if (n.n === undefined) {\r\n n = checkTables(msg.id, true);\r\n connectTo(n.n);\r\n }\r\n console.log(\"ice! /sdptatus:\" + fingerTable[n.n].sdpStatus);\r\n if (n.t === \"FT\") {\r\n if (fingerTable[n.n].sdpStatus && n !== null) {\r\n // dest = fingerTable[n.n].id;\r\n fingerTable[n.n].pc.addIceCandidate(new RTCIceCandidate(msg.ice)).catch(errorHandler);\r\n console.log(\"ft.signalingState(\" + n.n + \"): \" + fingerTable[n.n].pc.signalingState);\r\n console.log(\"ldesc / remdesc -> \" + fingerTable[n.n].pc.localDescription + \" / \" + fingerTable[n.n].pc.remoteDescription);\r\n } else if (n !== null) {\r\n fingerTable[n.n].pendingICE.push(msg.ice);\r\n console.log(\"ice push (\" + n.n + \")\");\r\n }\r\n }\r\n if (n.t === \"TP\") {\r\n if (tempPeers[n.n].sdpStatus && n !== null) {\r\n // dest = tempPeers[n.n].id;\r\n tempPeers[n.n].pc.addIceCandidate(new RTCIceCandidate(msg.ice)).catch(errorHandler);\r\n } else if (n !== null) {\r\n fingerTable[n.n].pendingICE.push(msg.ice);\r\n console.log(\"ice push (\" + n.n + \")\");\r\n }\r\n }\r\n\r\n break;\r\n\r\n case \"fileID\":\r\n console.log(\"got fileID! ::\" + JSON.stringify(msg));\r\n pendingFiles.forEach(function (value, index) {\r\n // console.log(value.name+ \" /// \"+ msg.name);\r\n if (value.name === msg.name) {\r\n // console.log(\"aoefoenv:!:!\");\r\n if (!fileList.includes(msg.fileid)) {\r\n fileList.push(msg.fileid);\r\n }\r\n localStorage.setItem(msg.fileid, JSON.stringify({name: value.name, raw: value.raw}));\r\n }\r\n pendingFiles.splice(index, 1);\r\n });\r\n break;\r\n }\r\n}", "function MessageHandler(freezer) { this.freezer = freezer; }", "function isNotificationMessage(message) {\n const candidate = message;\n return candidate && is.string(candidate.method) && message.id === void 0;\n}", "function isNotificationMessage(message) {\n const candidate = message;\n return candidate && is.string(candidate.method) && message.id === void 0;\n}", "messageWrapper(message) {\n if(message.channel[0] ==='C'){\n return;\n }\n if(message.user ==='USLACKBOT'){\n return;\n }\n if (this.messageHandler) {\n const {user, channel, bot_id} = message;\n message.user = user ? user : bot_id;\n message.rawText = message.text;\n message.text = this.format.incoming(message);\n message.channel = channel;\n return this.messageHandler(message);\n }\n }", "async webSocketReceiveMessage(message, id) {\n let msgType = message.replace(\" \", \"\").split(\":\")[0];\n if (msgType === \"ping\") {\n const claimResponseBundle = await this.getLatestResponse();\n const claimResponse = this.getClaimResponse(claimResponseBundle);\n if (\n claimResponse.outcome === \"complete\" ||\n claimResponse.outcome === \"error\"\n ) {\n this.setState({\n subscribeMsg: \"Updated ClaimResponse loaded\"\n });\n this.deleteSubscription(id);\n }\n } else if (msgType === \"bound\") {\n this.setState({\n subscribeMsg: \"WebSocket Subscription Successful!\"\n });\n } else {\n this.setState({\n subscribeMsg: message\n });\n }\n }", "function handleCallback(id, message) {\n\tconst promise = this._promises[id]\n\tif (promise) {\n\t\tif (message.status === 'error') {\n\t\t\tpromise.reject(message)\n\t\t} else {\n\t\t\tpromise.resolve(message)\n\t\t}\n\t\tdelete this._promises[id]\n\t} else if (message.status === 'error') {\n\t\tthis.emit('error', message.error, message)\n\t}\n}", "function onMessageRecieved(who, msgType, content) {\n\n switch(msgType) {\n case \"telepointer_info\":\n updateTelepointer(content);\n break;\n case \"inform_my_details_to_all_other_clients\":\n addNewClientToAllOccupantsDetails(content);\n updateOnlineStatusOfClients(all_occupants_details);\n\n //update the audio call button label\n updateAudioCallerBtnLabels(all_occupants_details);\n break;\n case \"disconnected\":\n alert(\"Disconnected : \" + content);\n break;\n case \"chat_room_msg\":\n addToChatRoomConversation(content);\n break;\n case \"P2P_MSG\":\n onP2pMsgReceived(content);\n break;\n case \"floor_owner_changed\":\n onFloorOwnerChanged(content);\n break;\n case \"new_floor_request\":\n onNewFloorRequest(content);\n break;\n case \"release_floor\":\n onFloorRelease(content.newFloorOwner);\n break;\n case \"remote_module_addition\":\n onRemoteModuleAddition(content);\n break;\n case \"moduleSettingsChanged\":\n onModuleSettingsChanged(content);\n break;\n case \"remote_draw\":\n remoteAddClick(content);\n break;\n case \"workflow_obj_new_link_drawn\":\n addNewLinkToWorkflowObject(content);\n break;\n case \"workflow_obj_selection_moved\":\n workflowObjSelectionMoved(content);\n break;\n case \"workflow_obj_selection_node_delete\":\n workflowObjRemoveNode(content);\n break;\n case \"workflow_obj_selection_link_delete\":\n workflowObjRemoveLink(content);\n break;\n }\n}", "function deleteMessage(your_params_here){\r\n \r\n}", "_onWrite () {\n this._decrementSendingMessageCounter()\n }", "HandleMessage( msg ) {\n return false;\n }", "synchronize() {\n this.message = null;\n }", "_onMessage (msg) {\n const { data, from, topicIDs } = msg\n let key\n try {\n key = topicToKey(topicIDs[0])\n } catch (err) {\n log.error(err)\n return\n }\n\n log(`message received for ${key} topic`)\n\n // Stop if the message is from the peer (it already stored it while publishing to pubsub)\n if (from === this._peerId.toB58String()) {\n log(`message discarded as it is from the same peer`)\n return\n }\n\n if (this._handleSubscriptionKeyFn) {\n this._handleSubscriptionKeyFn(key, (err, res) => {\n if (err) {\n log.error('message discarded by the subscriptionKeyFn')\n return\n }\n\n this._storeIfSubscriptionIsBetter(res, data)\n })\n } else {\n this._storeIfSubscriptionIsBetter(key, data)\n }\n }", "async publishUnrelatedCodemarks () {\n\t\t// we only need to publish these codemarks if the deleted codemark was in a private CodeStream channel,\n\t\t// otherwise, the message went out to the team channel anyway\n\t\tif (\n\t\t\t!this.transforms.unrelatedCodemarks ||\n\t\t\tthis.stream.get('isTeamStream')\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst message = {\n\t\t\tcodemarks: this.transforms.unrelatedCodemarks,\n\t\t\trequestId: this.request.request.id\n\t\t};\n\t\tconst channel = `team-${this.post.get('teamId')}`;\n\t\ttry {\n\t\t\tawait this.api.services.broadcaster.publish(\n\t\t\t\tmessage,\n\t\t\t\tchannel,\n\t\t\t\t{ request: this.request }\n\t\t\t);\n\t\t}\n\t\tcatch (error) {\n\t\t\t// this doesn't break the chain, but it is unfortunate...\n\t\t\tthis.warn(`Could not publish unrelated codemarks message to channel ${channel}: ${JSON.stringify(error)}`);\n\t\t}\n\t}", "messageHandler(socket) {\n socket.on('message', (message) => {\n const data = JSON.parse(message);\n\n //when data is more than 1 item, they can be accessed using data.thing\n\n //the data type determines how messageHandler proceeds\n switch (data.type) {\n case MESSAGE_TYPES.chain:\n this.blockchain.replaceChain(data.chain);\n break;\n case MESSAGE_TYPES.transaction:\n this.transactionPool.updateOrAddTransaction(data.transaction);\n break;\n case MESSAGE_TYPES.clear_transactions:\n this.transactionPool.clear();\n\n //when a websocket receives a message of type clear_transactions\n // it calls the transactionPool.clear() method to clear\n // their local transaction pools\n break;\n }\n });\n }", "function _handlePushNotifications(message) {\n var receivers = message.receivers,\n index = 0;\n\n for (index; index < receivers.length; index++) {\n message.dst = receivers[index];\n\n messageProxy.forward({\n id: receivers[index]\n }, message, true);\n }\n }", "onMessage(message) {\n log('received %s', message.type, message)\n this.emit('message', message)\n\n switch (message.type) {\n case 'ack':\n this.in.emit(`ack:${message.id}`, message)\n // No need to send an ack in response to an ack.\n return\n case 'data':\n if (message.data) this.emit('data', message.data)\n break\n default:\n }\n\n // Lets schedule an confirmation.\n this.multiplexer.add({\n type: 'ack',\n id: message.id\n })\n }", "disconnectedCallback() {\n this.unsubscribeToMessageChannel();\n }", "function processOutgoingMessage( message, view ) {\n}", "goodbye (_connection, _reason) { methodNotDefined() }", "function rmsg(id) {\n\treceiveMsg(msgs.find(x => x.id === id));\n}", "callRemote(method, ...params) {\n const id = this.lastId++;\n const promise = Q.defer();\n this.currentMessages[id] = promise;\n\n this.bus.postMessage({\n id,\n method, \n params\n }, this.target);\n\n setTimeout(() => {\n delete this.currentMessages[id];\n promise.reject({code: -200, message: 'Timeout'});\n }, this.timeout);\n\n return promise.promise;\n }", "cleanup() {\n if (this.broker) {\n this.broker.removeHandler(String(this.channelId), this);\n MessageChannel.pendingResponses.delete(this);\n\n this.message = null;\n this.broker = null;\n }\n }", "function clearMessageData(handler) {\n var dispatcher = dispatcherMap.get(handler);\n if (dispatcher)\n dispatcher.clear();\n dispatchQueue.removeAll(handler);\n}", "removeMessage(id){\n this.messages.delete(id);\n }", "function receive(message) {\n activeWrapper.receiveMessage(message);\n}", "function send_off_game_message() {\n var chat_msg = $('#chat_msg').val();\n var chat_to = $('#chat_to').val();\n if (check_field_empty(chat_msg, 'message, cannot send empty message'))\n return false;\n if (check_field_empty(chat_to, 'recipient, no recipient specified'))\n return false;\n var dataObj = {\n \"content\" : [\n { \"session_id\" : get_cookie() },\n { \"to\" : chat_to },\n { \"content\" : chat_msg }\n ]\n };\n call_server('user_msg', dataObj);\n}", "function processMessage(node,msg) {\n var result = {};\n var f;\n f = msg.payload.trim();\n if (f) {\n try {\n result = processFragment(node,f);\n }\n catch (err) {\n result = {\"aisOriginal\": [f], \"errorInfo\": \"Javascript \"+err.name+\": \"+err.message};\n }\n if (result===null) {\n // Partial message\n msg.payload = undefined;\n msg.resultCode = 2;\n } else {\n if (result.errorInfo) {\n // Erroneous message\n msg.payload = undefined;\n msg.errorInfo = result.errorInfo;\n msg.originalAisMessage = result.aisOriginal;\n msg.resultCode = 3;\n } else {\n // Message decoded successfully\n msg.originalAisMessage = result.aisOriginal;\n delete result.aisOriginal;\n msg.payload = result;\n msg.payload.talkerId = msg.originalAisMessage[0].slice(1,3);\n msg.payload.sentenceId = msg.originalAisMessage[0].slice(3,6);\n msg.resultCode = 0;\n addTextFields(msg);\n }\n }\n } else {\n // Empty message\n msg.payload = undefined;\n msg.resultCode = 1;\n }\n node.send(msg);\n}", "BroadcastMessage() {}", "BroadcastMessage() {}", "BroadcastMessage() {}", "BroadcastMessage() {}", "function fn_replymsg(msgid)\n{\t\n\tremovesections(\"#tools-message-view\");\n\tshowpageswithpostmethod(\"tools-message-reply\",\"tools/message/tools-message-reply.php\",\"msgid=\"+msgid);\n}", "delegateMessage(aMessage){\n return this.sendMessage(aMessage, window.System);\n }", "getMessageDetail(user,messageContent){\n event.preventDefault();\n if(user !== this.state.currentUser){\n const msg = \"User \"+this.state.currentUser+\" has changed name to \"+user;\n this.setState({currentUser:user});\n this.broadCastMessage(JSON.stringify({type:\"postNotification\", user:user,messageContent:msg}));\n }\n this.broadCastMessage(JSON.stringify({type: \"sendMessage\", user:user,messageContent:messageContent}));\n event.preventDefault();\n }", "webSocketReceiveMessage(message, id) {\n let msgType = message.replace(\" \", \"\").split(\":\")[0];\n if (msgType === \"ping\") {\n this.poll();\n let claimResponse = this.getClaimResponse();\n console.log(claimResponse);\n if (\n claimResponse.outcome === \"complete\" ||\n claimResponse.outcome === \"error\"\n ) {\n this.setState({\n subscribeMsg: \"Updated ClaimResponse loaded\"\n });\n this.deleteSubscription(id);\n }\n } else if (msgType === \"bound\") {\n this.setState({\n subscribeMsg: \"WebSocket Subscription Successful!\"\n });\n } else {\n this.setState({\n subscribeMsg: message\n });\n }\n }" ]
[ "0.6653445", "0.661786", "0.65832067", "0.6271684", "0.62485707", "0.616913", "0.61296", "0.6111585", "0.60993516", "0.6089836", "0.607648", "0.60564375", "0.60214627", "0.6006649", "0.59896284", "0.5984158", "0.5975027", "0.59736884", "0.5957051", "0.59212697", "0.5899306", "0.5895478", "0.58597815", "0.5854465", "0.5791944", "0.5779078", "0.5771434", "0.5771434", "0.5771434", "0.57660586", "0.57647115", "0.57598066", "0.57598066", "0.57558143", "0.5700781", "0.5693757", "0.56929", "0.56905293", "0.56870353", "0.5677417", "0.5670946", "0.5666859", "0.56607246", "0.56600493", "0.5657207", "0.5655998", "0.5650512", "0.56423444", "0.56306225", "0.56161594", "0.5609917", "0.5609917", "0.5609917", "0.5609917", "0.56049645", "0.5577457", "0.55769783", "0.5574524", "0.5563988", "0.55584824", "0.55553156", "0.5550697", "0.5550697", "0.5549238", "0.5547922", "0.55346227", "0.5527649", "0.5526592", "0.5526592", "0.55263007", "0.55261016", "0.55207586", "0.5520372", "0.55032563", "0.5502365", "0.5501551", "0.5494336", "0.54875094", "0.5486535", "0.54766417", "0.54472613", "0.54447603", "0.5442505", "0.5441409", "0.54410154", "0.54352313", "0.54335177", "0.54334754", "0.54259765", "0.54215455", "0.5406293", "0.54007006", "0.5399079", "0.5395623", "0.5395623", "0.5395623", "0.5395623", "0.5393638", "0.53909403", "0.53805906", "0.53765815" ]
0.0
-1
GUID get globally unique id taken from stack overflow overkill but what the heck
function guid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function guid() {return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();}", "function _guid() {\n function S4() {\n return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\n }\n\n return (S4() + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + S4() + S4());\n }", "function guid() {\n return (S4()+S4()+S4()+S4());\n}", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n}", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n}", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n}", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n}", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n }", "function guid() {\r\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\r\n}", "function guid() {\n\t\treturn (S4() + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + S4() + S4());\n\t}", "function guid() {\n return S4() + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + S4() + S4();\n}", "function guid() {\n \n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n \n var id = s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n\n if($.inArray(id, ids_in_use) != -1 || $.inArray(id, tokens_in_use) != -1) {\n guid();\n }\n return id;\n}", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n }", "function guid() {\r\n\treturn parseInt(Date.now() + Math.random());\r\n}", "function guid() {\n return parseInt(Date.now() + Math.random())\n }", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n}", "guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }", "function guid() {\r\n function s4() {\r\n return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\r\n }\r\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\r\n }", "function guid () {\n function s4 () {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1)\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4()\n }", "function guid() {\n\tfunction s4() {\n\t return Math.floor((1 + Math.random()) * 0x10000)\n\t .toString(16)\n\t .substring(1);\n\t}\n\treturn s4() + s4() + s4();\n}", "getGuid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }", "function guid() {\n function S4() {\n return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);\n }\n\n return S4() + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + S4() + S4();\n}", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n }\n\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }", "function guid() \n\t {\n\t function s4() \n\t {\n\t return Math.floor((1 + Math.random()) * 0x10000)\n\t .toString(16)\n\t .substring(1);\n\t }\n\t return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n\t s4() + '-' + s4() + s4() + s4();\n\t }", "function guid() {\r\n return parseInt(Date.now() + Math.random());\r\n}", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\n }", "function getGUID() {\n var d = Date.now();\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function (c) {\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c === \"x\" ? r : (r & 0x3 | 0x8)).toString(16);\n });\n}", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\n }", "guid() {\n\t\tfunction s4() {\n\t\t\treturn Math.floor((1 + Math.random()) * 0x10000)\n\t\t\t\t.toString(16)\n\t\t\t\t.substring(1);\n\t\t}\n\t\treturn s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\n\t}", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n }", "function guid() {\n return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n }", "function guid() {\n return s4() + s4() + s4() + s4() + '-' + (new Date()).getTime();\n }", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n}", "function getGUID() {\r\n var d = Date.now();\r\n if (typeof performance !== \"undefined\" && typeof performance.now === \"function\") {\r\n d += performance.now(); // use high-precision timer if available\r\n }\r\n var guid = \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function (c) {\r\n var r = (d + Math.random() * 16) % 16 | 0;\r\n d = Math.floor(d / 16);\r\n return (c === \"x\" ? r : (r & 0x3 | 0x8)).toString(16);\r\n });\r\n return guid;\r\n}", "function guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }", "function guid() {\n function s4() {\n return Math\n .floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-'\n + s4() + '-' + s4() + s4() + s4();\n }", "function guid() {\n return (S4() + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + S4() + S4());\n }", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1)\n\t .toUpperCase();\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n}", "function guid() {\n\n var d = new Date().getTime();\n\n var guid = 'xxxx-xxxx-xxxx-xxxx'.replace(\n /[xy]/g,\n function(c) {\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return(c == 'x' ? r : (r & 0x7 | 0x8)).toString(16);\n });\n\n return guid;\n }", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n}", "function guid() {\n \n var d = new Date().getTime();\n \n var guid = 'xxxx-xxxx-xxxx-xxxx'.replace(\n /[xy]/g,\n function (c) {\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c == 'x' ? r : (r & 0x7 | 0x8)).toString(16);\n });\n \n return guid;\n }", "function guid() {\n \n var d = new Date().getTime();\n \n var guid = 'xxxx-xxxx-xxxx-xxxx'.replace(\n /[xy]/g,\n function (c) {\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c == 'x' ? r : (r & 0x7 | 0x8)).toString(16);\n });\n \n return guid;\n }", "function guid() {\n \n var d = new Date().getTime();\n \n var guid = 'xxxx-xxxx-xxxx-xxxx'.replace(\n /[xy]/g,\n function (c) {\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c == 'x' ? r : (r & 0x7 | 0x8)).toString(16);\n });\n \n return guid;\n }", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n}", "function guid() {\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n}", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n\n return \"ss-s-s-s-sss\".replace(/s/g, s4);\n}", "GUID() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n }\n return \"ss-s-s-s-sss\".replace(/s/g, s4);\n }", "function guid() {\n\n\t\tvar d = new Date().getTime();\n\n\t\tvar guid = 'xxxx-xxxx-xxxx-xxxx'.replace(\n\t\t\t/[xy]/g,\n\t\t\tfunction (c) {\n\t\t\t\tvar r = (d + Math.random() * 16) % 16 | 0;\n\t\t\t\td = Math.floor(d / 16);\n\t\t\t\treturn (c == 'x' ? r : (r & 0x7 | 0x8)).toString(16);\n\t\t\t});\n\n\t\treturn guid;\n\t}", "function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + + s4() + s4() +\n s4() + s4() + s4() + s4();\n}", "function guid() {\r\n function s4() {\r\n return Math.floor((1 + Math.random()) * 0x10000)\r\n .toString(16)\r\n .substring(1);\r\n };\r\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\r\n s4() + '-' + s4() + s4() + s4();\r\n}", "function getUniqueId(){\n\treturn Math.random().toString(36);\n}", "function getGuid()\r\n{\r\n var aGuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'\r\n .replace(/[xy]/g, function(c)\r\n {\r\n var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n\r\n return aGuid;\r\n}", "function guid() {\n return (S4() + S4() + \"-\" + S4() + \"-4\" + S4().substr(0, 3) + \"-\" + S4() + \"-\" + S4() + S4() + S4()).toLowerCase();\n }", "function getGuid() {\n return getUuid();\n}", "function getUniqueId(){\n return Math.random().toString(36).substr(2, 5);\n}", "function di_generateUID() {\n return (((1+Math.random())*0x10000)|0).toString(16).substring(1);\n}", "function getGuid() {\n\treturn Guid.create();\n}", "_uniqueID() {\n const chr4 = () => Math.random().toString(16).slice(-4);\n return `${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`;\n }", "function uniqueId() {\n return Date.now() + 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8);\n return v.toString(16);\n });\n }", "function getUniqueID() {\n return Math.random().toString(36).substr(2, 9)\n}", "function generateGUID() {\n\tvar S4 = function() {\n\t\treturn (((1+Math.random())*0x10000)|0).toString(16).substring(1);\n\t};\n\treturn (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n}", "static generateGUID() {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(c) {\n let r = (Math.random() * 16) | 0,\n v = c == \"x\" ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n }", "static guid() {\r\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\r\n var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n }", "function uniqueID() \n{\n return (Math.floor((Math.random()*1000000))).toString(32)+''+(new Date().getTime()).toString(32)\n}", "function makeGuid() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c){\n var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);\n return v.toString(16);\n });\n}", "function _id() {\n\t\tvar S4 = function() {\n\t\t return (((1+Math.random())*0x10000)|0).toString(16).substring(1);\n\t\t};\n\t\treturn (S4()+S4());\n\t}", "function genuuid(){\n var d = new Date().getTime();\n if(window.performance && typeof window.performance.now === \"function\"){\n d += performance.now();; //use high-precision timer if available\n }\n var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = (d + Math.random()*16)%16 | 0;\n d = Math.floor(d/16);\n return (c=='x' ? r : (r&0x3|0x8)).toString(16);\n });\n return uuid;\n }", "function getUniqueId() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n}", "function uniqueID() {\n return Math.round(new Date().getTime() * (Math.random() * 100));\n }", "createGuid() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n // eslint-disable-next-line\n var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8);\n return v.toString(16);\n });\n }", "function guid() {\n var id = '', i, random;\n\n for (i = 0; i < 32; i++) {\n random = Math.random() * 16 | 0;\n\n if (i == 8 || i == 12 || i == 16 || i == 20) {\n id += \"-\";\n }\n id += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16);\n }\n\n return id;\n }", "function generateGUID() {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function (a) {\n var b, c;\n return b = Math.random() * 16 | 0, c = a === \"x\" ? b : b & 3 | 8, c.toString(16);\n });\n}", "function uniqueId() {\n return new Date().getTime();\n }", "function guidGenerator() {\nvar S4 = function() {\nreturn (((1+Math.random())*0x10000)|0).toString(16).substring(1);\n};\nreturn (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n}", "function uniqueId () {\n return ('xxxxxxxx-xxxx-xxxx-yxxx-xxxxxxxxxxxx').replace(/[xy]/g, function(c) {\n var r = Math.random() * 16 | 0,\n v = c === 'x' ? r : (r & 0x3 | 0x8);\n return v.toString(16);\n });\n}", "function guid()\n{\n function _p8(s) {\n var p = (Math.random().toString(16) + \"000000000\").substr(2, 8);\n return s ? \"-\" + p.substr(0, 4) + \"-\" + p.substr(4, 4) : p;\n }\n\n return _p8() + _p8(true) + _p8(true) + _p8();\n}", "function guid() {\n if (isNone(gen_id_object) || isNone(gen_id_object.genId)) {\n return undefined;\n }\n return gen_id_object.genId();\n }", "function genuuid() {\n var crypto = require('crypto');\n function uuidFromBytes(rnd) {\n rnd[6] = (rnd[6] & 0x0f) | 0x40;\n rnd[8] = (rnd[8] & 0x3f) | 0x80;\n rnd = rnd.toString('hex').match(/(.{8})(.{4})(.{4})(.{4})(.{12})/);\n rnd.shift();\n return rnd.join('-');\n }\n\n return uuidFromBytes(crypto.randomBytes(16));\n}", "static createGuid() {\n return Math.random().toString(36).substring(2, 15) +\n Math.random().toString(36).substring(2, 15);\n }", "function uniqueId() {\n return `a${Math.random().toString(36).substr(2, 9)}`;\n}", "function GUID ()\n{\n // TODO Guarantee Uniqueness\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);\n return v.toString(16);\n });\n}", "function uid() {\n // Let's create some positive random 32bit integers first.\n //\n // 1. Math.random() is a float between 0 and 1.\n // 2. 0x100000000 is 2^32 = 4294967296.\n // 3. >>> 0 enforces integer (in JS all numbers are floating point).\n //\n // For instance:\n //\t\tMath.random() * 0x100000000 = 3366450031.853859\n // but\n //\t\tMath.random() * 0x100000000 >>> 0 = 3366450031.\n var r1 = Math.random() * 0x100000000 >>> 0;\n var r2 = Math.random() * 0x100000000 >>> 0;\n var r3 = Math.random() * 0x100000000 >>> 0;\n var r4 = Math.random() * 0x100000000 >>> 0; // Make sure that id does not start with number.\n\n return 'e' + HEX_NUMBERS[r1 >> 0 & 0xFF] + HEX_NUMBERS[r1 >> 8 & 0xFF] + HEX_NUMBERS[r1 >> 16 & 0xFF] + HEX_NUMBERS[r1 >> 24 & 0xFF] + HEX_NUMBERS[r2 >> 0 & 0xFF] + HEX_NUMBERS[r2 >> 8 & 0xFF] + HEX_NUMBERS[r2 >> 16 & 0xFF] + HEX_NUMBERS[r2 >> 24 & 0xFF] + HEX_NUMBERS[r3 >> 0 & 0xFF] + HEX_NUMBERS[r3 >> 8 & 0xFF] + HEX_NUMBERS[r3 >> 16 & 0xFF] + HEX_NUMBERS[r3 >> 24 & 0xFF] + HEX_NUMBERS[r4 >> 0 & 0xFF] + HEX_NUMBERS[r4 >> 8 & 0xFF] + HEX_NUMBERS[r4 >> 16 & 0xFF] + HEX_NUMBERS[r4 >> 24 & 0xFF];\n }", "function genGuid() {\n\t\treturn (S4() + S4() + \"-\" + S4() + \"-4\" + S4().substr(0, 3) + \"-\" + S4() + \"-\" + S4() + S4() + S4()).toLowerCase();\n\t}", "function guidGenerator() {\n\t var S4 = function() {\n\t return (((1+Math.random())*0x10000)|0).toString(16).substring(1);\n\t };\n\n\t return (S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4());\n\t }", "function guidGenerator() {\n var S4 = function() {\n return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\n };\n return (S4() + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + \"-\" + S4() + S4() + S4());\n }", "function createUID() {\n\n var pool = new Uint8Array( 1 ),\n\n random, value,\n\n id = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function ( c ) {\n\n random = crypto.getRandomValues( pool )[0] % 16;\n\n value = ( c === 'x' ) ? random : (random&0x3|0x8);\n\n return value.toString(16);\n });\n\n return id;\n}", "function _guid(len) {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n }\n let s = s4();\n for (var i = 0; i < len-1; i++)\n s += s4();\n return s;\n }", "function guidGenerator() {\n function S4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return S4()+S4()+'-'+S4()+'-'+S4()+'-'+S4()+'-'+S4()+S4()+S4();\n}", "function uniqueId() {\n return (new Date).getTime()\n }", "function guidGenerator(){\n let sec = ()=>(((1+Math.random())*0x10000)|0).toString(16).substring(1); \n console.log((sec() + sec() + \"-\" + sec() + \"-4\" + sec().substr(0,3) + \"-\" + sec() + \"-\" + sec() + sec() + sec()).toLowerCase())\n return (sec() + sec() + \"-\" + sec() + \"-4\" + sec().substr(0,3) + \"-\" + sec() + \"-\" + sec() + sec() + sec()).toLowerCase();\n}", "function uid() {\n // Let's create some positive random 32bit integers first.\n //\n // 1. Math.random() is a float between 0 and 1.\n // 2. 0x100000000 is 2^32 = 4294967296.\n // 3. >>> 0 enforces integer (in JS all numbers are floating point).\n //\n // For instance:\n //\t\tMath.random() * 0x100000000 = 3366450031.853859\n // but\n //\t\tMath.random() * 0x100000000 >>> 0 = 3366450031.\n var r1 = Math.random() * 0x100000000 >>> 0;\n var r2 = Math.random() * 0x100000000 >>> 0;\n var r3 = Math.random() * 0x100000000 >>> 0;\n var r4 = Math.random() * 0x100000000 >>> 0; // Make sure that id does not start with number.\n\n return 'e' + HEX_NUMBERS[r1 >> 0 & 0xFF] + HEX_NUMBERS[r1 >> 8 & 0xFF] + HEX_NUMBERS[r1 >> 16 & 0xFF] + HEX_NUMBERS[r1 >> 24 & 0xFF] + HEX_NUMBERS[r2 >> 0 & 0xFF] + HEX_NUMBERS[r2 >> 8 & 0xFF] + HEX_NUMBERS[r2 >> 16 & 0xFF] + HEX_NUMBERS[r2 >> 24 & 0xFF] + HEX_NUMBERS[r3 >> 0 & 0xFF] + HEX_NUMBERS[r3 >> 8 & 0xFF] + HEX_NUMBERS[r3 >> 16 & 0xFF] + HEX_NUMBERS[r3 >> 24 & 0xFF] + HEX_NUMBERS[r4 >> 0 & 0xFF] + HEX_NUMBERS[r4 >> 8 & 0xFF] + HEX_NUMBERS[r4 >> 16 & 0xFF] + HEX_NUMBERS[r4 >> 24 & 0xFF];\n }", "function uid() {\n // Let's create some positive random 32bit integers first.\n //\n // 1. Math.random() is a float between 0 and 1.\n // 2. 0x100000000 is 2^32 = 4294967296.\n // 3. >>> 0 enforces integer (in JS all numbers are floating point).\n //\n // For instance:\n //\t\tMath.random() * 0x100000000 = 3366450031.853859\n // but\n //\t\tMath.random() * 0x100000000 >>> 0 = 3366450031.\n var r1 = Math.random() * 0x100000000 >>> 0;\n var r2 = Math.random() * 0x100000000 >>> 0;\n var r3 = Math.random() * 0x100000000 >>> 0;\n var r4 = Math.random() * 0x100000000 >>> 0; // Make sure that id does not start with number.\n\n return 'e' + HEX_NUMBERS[r1 >> 0 & 0xFF] + HEX_NUMBERS[r1 >> 8 & 0xFF] + HEX_NUMBERS[r1 >> 16 & 0xFF] + HEX_NUMBERS[r1 >> 24 & 0xFF] + HEX_NUMBERS[r2 >> 0 & 0xFF] + HEX_NUMBERS[r2 >> 8 & 0xFF] + HEX_NUMBERS[r2 >> 16 & 0xFF] + HEX_NUMBERS[r2 >> 24 & 0xFF] + HEX_NUMBERS[r3 >> 0 & 0xFF] + HEX_NUMBERS[r3 >> 8 & 0xFF] + HEX_NUMBERS[r3 >> 16 & 0xFF] + HEX_NUMBERS[r3 >> 24 & 0xFF] + HEX_NUMBERS[r4 >> 0 & 0xFF] + HEX_NUMBERS[r4 >> 8 & 0xFF] + HEX_NUMBERS[r4 >> 16 & 0xFF] + HEX_NUMBERS[r4 >> 24 & 0xFF];\n }", "function genGuid()\n{\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);\n return v.toString(16);\n });\n}", "function CreateGUID() {\n var d = new Date().getTime();\n var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = (d + Math.random()*16)%16 | 0;\n d = Math.floor(d/16);\n return (c=='x' ? r : (r&0x3|0x8)).toString(16);\n });\n return uuid.toUpperCase();\n}", "function uniqueId() {\n return (new Date).getTime()\n}", "function uniqueId() {\n return (new Date).getTime()\n}" ]
[ "0.84004", "0.81764644", "0.8162497", "0.8102747", "0.8102747", "0.8102747", "0.8102747", "0.8099086", "0.80888516", "0.80447716", "0.80329", "0.80313355", "0.8023454", "0.799118", "0.7988847", "0.7988721", "0.7988093", "0.7987416", "0.79869384", "0.7984767", "0.7982642", "0.7981242", "0.7971783", "0.7970853", "0.7970443", "0.7966073", "0.79642344", "0.79623514", "0.7960651", "0.79578036", "0.79578036", "0.7952494", "0.79329467", "0.7932097", "0.7917299", "0.79171985", "0.78929406", "0.78889656", "0.78753656", "0.7869928", "0.7868784", "0.7868784", "0.7868784", "0.7863908", "0.78603166", "0.7840561", "0.782316", "0.7818059", "0.78097594", "0.78044593", "0.7789308", "0.77858555", "0.77767646", "0.7776752", "0.77513164", "0.77432835", "0.7724363", "0.7720967", "0.7720413", "0.7718999", "0.77148485", "0.7700523", "0.7696925", "0.7660809", "0.76326555", "0.7601006", "0.75946355", "0.7583106", "0.7582307", "0.7570034", "0.7565254", "0.7559729", "0.75350887", "0.7519625", "0.75180435", "0.7517641", "0.75035536", "0.74952257", "0.7491324", "0.74841654", "0.74721855", "0.74579996", "0.7456854", "0.7452612", "0.7451354", "0.7450653", "0.7450246", "0.74461144", "0.744415", "0.7438351", "0.7424752", "0.7424752", "0.74234694", "0.7422226", "0.740739", "0.740739" ]
0.7879503
38
convenience for creating DOM elements
function $t (tag) { tag = tag || 'div'; return $('<'+tag+'/>'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createElements() {\n var nodeNames = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n nodeNames[_i] = arguments[_i];\n }\n return nodeNames.map(function (name) { return document.createElement(name); });\n }", "function create(element) { return document.createElement(element) }", "function quickElement() {\r\n var obj = document.createElement(arguments[0]);\r\n if (arguments[2] != '' && arguments[2] != null) {\r\n var textNode = document.createTextNode(arguments[2]);\r\n obj.appendChild(textNode);\r\n }\r\n var len = arguments.length;\r\n for (var i = 3; i < len; i += 2) {\r\n obj.setAttribute(arguments[i], arguments[i+1]);\r\n }\r\n arguments[1].appendChild(obj);\r\n return obj;\r\n}", "function createEl(tag){\n return document.createElement(tag);\n}", "function quickElement() {\n var obj = document.createElement(arguments[0]);\n if (arguments[2] != '' && arguments[2] != null) {\n var textNode = document.createTextNode(arguments[2]);\n obj.appendChild(textNode);\n }\n var len = arguments.length;\n for (var i = 3; i < len; i += 2) {\n obj.setAttribute(arguments[i], arguments[i+1]);\n }\n arguments[1].appendChild(obj);\n return obj;\n}", "function create(element){\r\n\treturn document.createElement(element);\r\n}", "function createNode(element) {\n return document.createElement(element);\n }", "createNode(el) {\n\t\t\treturn document.createElement(el);\n\t\t}", "function createNode(element) {\n return document.createElement(element);\n }", "function createElement(elem) {\n\n\n\n\n\n\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createEl(text){\n return document.createElement(text);\n}", "function createNode(element) {\n return document.createElement(element); // Create the type of element you pass in the parameters\n}", "function createNode(element) {\n return document.createElement(element);\n }", "function create(element) {\n\t return document.createElement(element);\n\t}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function createNode(element) {\n return document.createElement(element);\n}", "function dom(s) { \n return document.createElement(s) \n}", "function newElem(name) { return document.createElement(name); }", "createElement() {\n this.element = document.createElement(\"div\");\n return this.element;\n }", "function element(name, content, attributes) {\n var e = $(document.createElement(name));\n\n if (content) { e.append(content); }\n for (var a in attributes) { e.attr(a, attributes[a]); }\n\n return e;\n}", "function create(element) {\n return document.createElement(element);\n}", "static createElement(tagName, props) {\n return Object.assign(document.createElement(tagName), props || {});\n }", "createDOMElement(type, content = '', className = '') {\n let element = document.createElement(type);\n if (className) {\n element.setAttribute('class', className);\n }\n element.innerHTML = content;\n return element;\n }", "function elt(name,attrs,...children){\n let element = document.createElement(name);\n for(let attr in attrs){\n element.setAttribute(attr,attrs[attr]);\n }\n for(let child of children){\n element.appendChild(child);\n }\n return element;\n }", "function createEl(attr, type, parent) {\n var el = document.createElement(type);\n attrSetter(el, attr);\n parent.insertBefore(el, parent.firstChild);\n }", "function createElement(el){\n\tvar element;\n\tif(el == \"Text\")\n\t\telement = document.createTextNode(arguments[1]);\n\telse{\n\t\telement = document.createElement(el);\n\t\tif(arguments.length > 1){\n\t\t\tfor(var i = 1; i < arguments.length; i++){\n\t\t\t\tif(typeof arguments[i] === 'string'){\n\t\t\t\t\telement.innerHTML += arguments[i];\n\t\t\t\t}else\n\t\t\t\t\telement.setAttribute(arguments[i][0], arguments[i][1]);\n\t\t\t}\n\t\t}\n\t}\n\treturn element;\n}", "function createEl(tag, value) {\r\n\t\tvar el = document.createElement(tag);\r\n\t\tel.innerHTML = value;\r\n\t\treturn el;\r\n\t}", "function RenderableDOMElement() {\n }", "createCustomElement(type, classlist, attributes, textcontent, parentnode) {\n\n //It is just of wrapper around the DOM API to clean the code.\n let element = document.createElement(type);\n let i;\n\n for (i = 0; i < classlist.length; i++) {\n element.classList.add(classlist[i]);\n }\n\n for (i = 0; i < attributes.length; i++) {\n element.setAttribute(attributes[i].name, attributes[i].value);\n }\n\n if (textcontent != null) {\n element.textContent = textcontent;\n }\n\n if (parentnode != null) {\n parentnode.appendChild(element);\n }\n\n return element;\n }", "createElement(tag) {\n\t\treturn HTMLDocument.createElement(tag)\n\t}", "function elt(name, attributes) {\n var node = document.createElement(name);\n if (attributes) {\n for (var attr in attributes)\n if (attributes.hasOwnProperty(attr))\n node.setAttribute(attr, attributes[attr]);\n }\n for (var i = 2; i < arguments.length; i++) {\n var child = arguments[i];\n if (typeof child == 'string')\n child = document.createTextNode(child);\n node.appendChild(child);\n }\n return node;\n}", "function el(type, content, attributes) {\n const result = document.createElement(type);\n\n if (attributes !== undefined) {\n Object.assign(result, attributes);\n }\n\n if (Array.isArray(content)) {\n content.forEach(append);\n } else {\n append(content);\n }\n\n function append(node) {\n if (typeof node === 'string') {\n node = document.createTextNode(node);\n }\n result.appendChild(node);\n }\n return result;\n }", "function t(n){var e=n._wysihtml5_tempElement;return e||(e=n._wysihtml5_tempElement=n.createElement(\"div\")),e}", "function elementCreator( type, id, className, value ){\n\t\t//Create element with it's class attribute, id and type\n\t\tvar button = addElement(type, className, id);\n\t\tif(value){\n\t\t\tbutton.innerHTML = value;\n\t\t}\n\t\treturn button;\n\t}", "function mk( elementName, attrObj, parent, appendChild) {\n\treturn mkHTML( elementName, attrObj, parent, appendChild);\n}", "function createElem(opt_className, opt_html, opt_tagName) {\n var tag = opt_tagName||\"div\";\n var elem = document.createElement(tag);\n if (opt_html) elem.innerHTML = opt_html;\n if (opt_className) elem.className = opt_className;\n return elem;\n}", "function CreateHTMLElement(type, id, value, appendTo, cssStyle, attributeList) {\n var _type = document.createElement(type);\n _type.id = id;\n _type.style = cssStyle;\n if (value) _type.innerText = value;\n \n for (var key in attributeList) {\n _type.setAttribute(key, attributeList[key]);\n }\n appendTo.appendChild(_type);\n return _type;\n}", "function newElement(name) {\n return document.createElement(name);\n}", "function createNode(name) {\n return document.createElement(name)\n }", "function elt(name, attributes) {\n var node = document.createElement(name);\n if (attributes) {\n for (var attr in attributes)\n if (attributes.hasOwnProperty(attr))\n node.setAttribute(attr, attributes[attr]);\n }\n for (var i = 2; i < arguments.length; i++) {\n var child = arguments[i];\n if (typeof child == \"string\")\n child = document.createTextNode(child);\n node.appendChild(child);\n }\n return node;\n}", "function elt(name, attributes) {\n var node = document.createElement(name);\n if (attributes) {\n for (var attr in attributes)\n if (attributes.hasOwnProperty(attr))\n node.setAttribute(attr, attributes[attr]);\n }\n for (var i = 2; i < arguments.length; i++) {\n var child = arguments[i];\n if (typeof child == \"string\")\n child = document.createTextNode(child);\n node.appendChild(child);\n }\n return node;\n}", "function div() {\n return document.createElement('div');\n}", "function div() {\n return document.createElement('div');\n}", "function elem(tag, content){ \n\t\tvar ret = document.createElement(tag); \n\t\tret.innerHTML = content; \n\t\treturn ret;\n\t}", "function makeElement(type) {\n\t\treturn document.createElement(type);\n\t}", "function createElement(tagName, objAttrs = null, content = null) {\n let element = document.createElement(tagName);\n for (let attr in objAttrs) {\n element.setAttribute(attr, objAttrs[attr]);\n }\n\n if (content instanceof Array) {\n for (let el of content) {\n element.appendChild(el);\n }\n } else if (content instanceof HTMLElement) {\n element.appendChild(content);\n } else {\n element.innerText = content;\n }\n\n return element;\n }", "function newEl(name, attrs) {\n const el = d.createElement(name);\n for (let attr in attrs) if (el[attr] !== undefined) el[attr] = attrs[attr];\n return el;\n }", "function createDom(vdom) {\r\n\t\tlet newElement = null;\r\n\t\t// Create text node for text\r\n\t\tif (vdom.type === \"text\") {\r\n\t\t\tnewElement = document.createTextNode(vdom.props.textNode);\r\n\t\t} else {\r\n\t\t\t// Create the dom element\r\n\t\t\tnewElement = document.createElement(vdom.type);\r\n\t\t\tsetElementProps(newElement, vdom.props);\r\n\t\t}\r\n\r\n\t\t// Iterate the children, create the element and set the attributes\r\n\t\tvdom.children.forEach((child) => mountNode(child, newElement));\r\n\t\treturn newElement;\r\n\t}", "function createElement(tag,children,props){\n\tvar element = document.createElement(tag);\n\tif(!(children instanceof Array)){children=[children];}\n\tfor(var i=0;i<children.length;i++){\n\t\tvar child=children[i];\n\t\tif(typeof child=='string'){child=document.createTextNode(child);}\n\t\tif(child){element.appendChild(child);}\n\t}\n\tif(typeof props=='object'){\n\t\tfor(var k in props){\n\t\t\tswitch(k){\n\t\t\tcase 'styles':\n\t\t\t\tvar styles=props.styles;\n\t\t\t\tfor(var s in styles){element.style[s]=styles[s];}\n\t\t\t\tbreak;\n\t\t\tcase 'events':\n\t\t\t\tvar events=props.events;\n\t\t\t\tfor(var e in events){ addHandler(element,e,events[e]); }\n\t\t\t\tbreak;\n\t\t\tcase 'class':\n\t\t\t\telement.className=props[k];break;\n\t\t\tdefault:\n\t\t\t\telement.setAttribute(k,props[k]);\n\t\t\t}\n\t\t}\n\t}\n\treturn element;\n}", "function createHTMLElement(tagName) {\n if(document.createElementNS)\n var elem = document.createElementNS(\"http://www.w3.org/1999/xhtml\", tagName);\n else\n var elem = document.createElement(tagName);\n\n return elem;\n}", "function makeElement(node) {\r\n return React.DOM.div({\r\n className: node.id,\r\n style: {\r\n left: (node.x + (node.baseX || 0)) | 0 + \"px\",\r\n top: (node.y + (node.baseY || 0)) | 0 + \"px\"\r\n }\r\n }, node.text);\r\n }", "function createElm(tag, attobj) {\n const elm = document.createElement(tag);\n for (const key of Object.keys(attobj)) {\n elm[key] = attobj[key];\n }\n return elm;\n}", "function createElement(tagName) {\n return;\n}", "function elem(type){\n return document.createElement(type || 'div');\n }", "create(...t) {\n let s = new r;\n for (const r of t) if (\"string\" == typeof r) s.push(document.createElement(r)); else if (r instanceof Object) {\n const t = document.createElement(r.tagName || \"div\");\n r.content && (Array.isArray(r.content) ? e$1(t, ...r.content) : e$1(t, r.content)), \n s.push(t);\n }\n return s;\n }", "function $createElement(objType) {\r\n\t\treturn $(document.createElement(objType));\r\n\t}", "function createElement(tagName, className, innerText, dataAttributeName, dataAttributeValue) {\n var html_element = document.createElement(tagName);\n if(className) {\n html_element.className = className;\n }\n if(innerText) {\n html_element.innerText = html_element.textContent = innerText;\n }\n if(dataAttributeName && dataAttributeValue) {\n html_element.setAttribute(dataAttributeName, dataAttributeValue);\n }\n return html_element;\n }", "function element(type, props, ...children) {\n let e = document.createElement(type);\n if (typeof props != \"undefined\" && props != null) {\n Object.keys(props).forEach(key => e.setAttribute(key, props[key]));\n }\n if (typeof children != \"undefined\" && children != null) {\n children.forEach(child => e.appendChild(child));\n }\n return e;\n}", "function elt(name, className)\n{\n var elt = document.createElement(name);\n if (className)\n {\n elt.className = className;\n }\n return elt;\n}", "function createPageElement(element){\n return document.createElement(element);\n}", "function make(tag, options) {\n var keys, i,\n element = document.createElement(tag);\n if (options === undefined) {\n return element;\n }\n if ('parent' in options) {\n options.parent.appendChild(element);\n delete options.parent;\n }\n keys = Object.keys(options);\n for (i = keys.length - 1; i >= 0; --i) {\n element[keys[i]] = options[keys[i]];\n }\n return element;\n }", "function createElements(elementName, innerText, parentId){\r\n var node = document.createElement(elementName);\r\n var textNode = document.createTextNode(innerText);\r\n node.appendChild(textNode);\r\n document.getElementById(parentId).appendChild(node);\r\n}", "function elt(name, attrs, ...children){\n let dom = document.createElement(name);\n for(let attr of Object.keys(attrs)){\n dom.setAttribute(attr, attrs[attr])\n }\n for(let child of children){\n dom.appendChild(child);\n }\n return dom;\n}", "function makeElement(tagType, className, innerText) {\n let newElement = document.createElement(tagType);\n newElement.className = className;\n if (innerText) {\n newElement.textContent = innerText;\n }\n return newElement;\n}", "function buildNode(tagName, attributes, children) {\n var node = document.createElement(tagName);\n\n /* Apply attributes */\n if (attributes) {\n for (var attribute in attributes) {\n if (attributes.hasOwnProperty(attribute)) {\n node[attribute] = attributes[attribute];\n }\n }\n }\n\n /* Append children */\n if (children) {\n if (typeof children === 'string') {\n node.appendChild(document.createTextNode(children));\n } else if (children.tagName) {\n node.appendChild(children);\n } else if (children.length) {\n for (var i = 0, length = children.length; i < length; ++i) {\n var child = children[i];\n\n if (typeof child === 'string') {\n child = document.createTextNode(child);\n }\n\n node.appendChild(child);\n }\n }\n }\n\n return node;\n }", "function div() {\n return document.createElement('div');\n }", "function makeElement(tagName, arrayPropertys) {\n var el = document.createElement(tagName);\n if (arrayPropertys == null || arrayPropertys == \"\")\n return el;\n\n //setando atributos\n for (x = 0; x < arrayPropertys.split(\"&\").length; ++x)\n {\n var attr = arrayPropertys.split(\"&\")[x].split(\"=\")[0];\n //O IE tem alguns atributos HTML diferentes do padrao W3C.\n attr = (attr.indexOf(\"class\") > -1 && isIE() ? \"className\" : attr);\n attr = (attr.indexOf(\"style\") > -1 && isIE() ? \"cssText\" : attr);\n //se o atributo eh um evento...\n if (attr.indexOf(\"on\") > -1 && isIE())\n el.attachEvent(attr, new Function(arrayPropertys.split(\"&\")[x].split(\"=\")[1]));\n else if (attr == \"innerHTML\")\n el.innerHTML = arrayPropertys.split(\"&\")[x].split(\"=\")[1];\n //else if (attr == \"checked\")\n // el.check = true;\n else\n el.setAttribute(attr, arrayPropertys.split(\"&\")[x].split(\"=\")[1]);\n\n }\n\n //setando o name para o id\n if (el.name == \"\")\n el.name = el.id;\n\n return el;\n}", "function elt(name, className){\n var elt = document.createElement(name);\n if (className) elt.className = className;\n return elt;\n}", "function elem(tag, content, idt, idv, class){\r\n\t\tvar ret = document.createElement(tag);\r\n//\t\tret.innerHTML = content;\r\n\r\n\t\tif(content) ret.innerHTML=content;\r\n\t\tif(idt) ret.setAttribute(idt, idv);\r\n\t\tif(class) ret.className=class;\r\n\r\n\t\treturn ret;\r\n\t}", "function nodeCreate(tag)\n{\n\treturn document.createElement(tag);\t\n}", "_createDOMElements() {\n\t\tthis.$control = $( this.template( this.controlOptions ) );\n\t\tthis.$sliderGroup = this.$control.find( '.slider-group' );\n\t\tthis.$units = this.$control.find( '.unit' );\n\t\tthis.$revert = this.$control.find( '.undo' );\n\t\tthis.$deleteSaved = this.$control.find( '.delete-saved .remove' );\n\t}", "function create_new_element(element_name, inner_text, append_something = [], parent, attribute_name = [], attribute_value = []){\n var new_element = document.createElement(element_name);\n if (inner_text !== \"\"){\n var text = document.createTextNode(inner_text);\n new_element.appendChild(text);\n }\n if(append_something != \"\"){\n for (e=0; e < append_something.length; e++) {\n new_element.appendChild(append_something[e]);\n }\n }\n if(parent != \"\"){\n parent.appendChild(new_element);\n }\n if(attribute_name != \"\" || attribute_value != \"\"){\n for (e=0; e < attribute_name.length; e++) {\n new_element.setAttribute(attribute_name[e], attribute_value[e]);\n }\n }\n return new_element;\n}", "function elem(tag) {\n return $('<' + tag + '/>');\n}", "function generateNewElement(tagName, styleClass, innerHtml, attributeStyle) {\n const newElement = document.createElement(tagName);\n if(styleClass) newElement.className = styleClass;\n if(innerHtml) newElement.innerHTML = innerHtml;\n if(attributeStyle) newElement.setAttribute('style', attributeStyle);\n\n return newElement\n}", "function elt(name, className) {\n var el = document.createElement(name); \n if (className){ el.className = className; }\n return el;\n}", "function elt(name, className) {\n var elt = document.createElement(name)\n if (className) elt.className = className\n return elt\n}", "function elementFactory(data) {\n if (!data.hasOwnProperty(\"type\"))\n return null;\n let el = document.createElement(data.type);\n if (data.hasOwnProperty(\"class\"))\n $(el).addClass(data.class);\n if (data.hasOwnProperty(\"html\"))\n $(el).html(data.html);\n if (data.hasOwnProperty(\"css\"))\n $(el).css(data.css);\n if (data.hasOwnProperty(\"attr\")) {\n for (let key in data.attr) {\n if (!data.attr.hasOwnProperty(key))\n continue;\n $(el).attr(key, data.attr[key]);\n }\n }\n if (data.hasOwnProperty(\"on\")) {\n for (let key in data.on) {\n if (!data.on.hasOwnProperty(key))\n continue;\n $(el).on(key, { target: el }, data.on[key]);\n }\n }\n return el;\n}", "function makeNode (type = 'div') {\n return document.createElement(type)\n}", "function xCreateElement(sTag)\r\n{\r\n if (document.createElement) return document.createElement(sTag);\r\n else return null;\r\n}", "function buildElement(elementType, classes, id, htmlContent) {\n let element = document.createElement(elementType);\n element.className = classes;\n element.id = id;\n element.innerHTML = htmlContent;\n return element;\n}", "function elt(name, className) {\n\n var elt = document.createElement(name);\n\n if (className) elt.className = className;\n\n return elt;\n\n}", "function d(t,e){var i=tt.createElement(\"div\");return e&&o(i,e),t.appendChild(i),i}", "function DOMImplementation() {}", "function DOMImplementation() {}", "function DOMImplementation() {}", "function DOMImplementation() {}", "function makeElt(name, attrs, appendTo)\n{\n var element = document.createElementNS(\"http://www.w3.org/2000/svg\", name);\n if (attrs === undefined)\n attrs = {};\n for (var key in attrs) {\n element.setAttributeNS(null, key, attrs[key]);\n }\n if (appendTo) {\n appendTo.appendChild(element);\n }\n return element;\n}", "function el(name) {\n return $(document.createElement(name));\n }", "createDom() {\n var tempElement = this.getDomHelper().createElement('temp');\n\n this.updateBeforeRedraw();\n\n tempElement.innerHTML = this.buildHTML(true);\n\n this.setElementInternal(this.getDomHelper().\n getFirstElementChild(tempElement));\n }", "function createDomElement(properties){\n //Creating the element with the property tagName\n var domElement = document.createElement(properties.tagName);\n\n //Loop through the attributes to set them on the element\n var attributes = properties.attributes;\n for (var prop in attributes) {\n domElement.setAttribute(prop, attributes[prop]);\n }\n\n //If any content, set the inner HTML\n if (properties.content) {\n domElement.innerHTML = properties.content;\n }\n\n //Return to use in other functions\n return domElement;\n}", "createElements() {\n const priv = privatePool.get(this);\n const { rootElement, rootDocument } = this.instance;\n const originalStyle = rootElement.getAttribute('style');\n\n if (originalStyle) {\n rootElement.setAttribute('data-originalstyle', originalStyle); // needed to retrieve original style in jsFiddle link generator in HT examples. may be removed in future versions\n }\n\n addClass(rootElement, 'handsontable');\n\n priv.table = rootDocument.createElement('TABLE');\n addClass(priv.table, 'htCore');\n\n if (this.instance.getSettings().tableClassName) {\n addClass(priv.table, this.instance.getSettings().tableClassName);\n }\n\n this.THEAD = rootDocument.createElement('THEAD');\n priv.table.appendChild(this.THEAD);\n\n this.TBODY = rootDocument.createElement('TBODY');\n priv.table.appendChild(this.TBODY);\n\n this.instance.table = priv.table;\n\n this.instance.container.insertBefore(priv.table, this.instance.container.firstChild);\n }", "createElement(tag) {\n return this.document.createElement(tag);\n }", "function DOMImplementation() {\n}" ]
[ "0.7755558", "0.7419851", "0.7339416", "0.73245627", "0.72975487", "0.72562987", "0.7250714", "0.7225091", "0.72154486", "0.7203097", "0.7178776", "0.7178776", "0.7178776", "0.7178776", "0.7178776", "0.7178776", "0.7178776", "0.71544677", "0.714577", "0.714333", "0.7142153", "0.7120692", "0.7120692", "0.7120692", "0.7116885", "0.71158564", "0.7093228", "0.70544976", "0.70467544", "0.70034593", "0.6984809", "0.6968173", "0.6965871", "0.69650835", "0.693889", "0.6928844", "0.6910247", "0.68967855", "0.6893582", "0.6886563", "0.68852115", "0.68848854", "0.6884836", "0.6878193", "0.68775266", "0.6876722", "0.687279", "0.6869956", "0.6869956", "0.68631643", "0.68631643", "0.68537295", "0.6829421", "0.6814449", "0.6803254", "0.67987114", "0.6797304", "0.6785901", "0.67830366", "0.6779335", "0.6778064", "0.6777668", "0.6776559", "0.6763365", "0.67616963", "0.6756266", "0.6753395", "0.6743612", "0.6743603", "0.6743059", "0.6741038", "0.67401236", "0.6722041", "0.6715529", "0.67143303", "0.6711648", "0.67096734", "0.6709455", "0.67045647", "0.66872925", "0.66857505", "0.6670386", "0.66673124", "0.6661122", "0.6658919", "0.66561174", "0.6647072", "0.6636575", "0.66280955", "0.6626628", "0.66261405", "0.66261405", "0.66261405", "0.66261405", "0.6622076", "0.66195965", "0.6616243", "0.6611644", "0.66051", "0.6601549", "0.6598377" ]
0.0
-1
The dummy class constructor
function Class() { // All construction is actually done in the init method if ( !initializing && this.init ) this.init.apply(this, arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructur() {}", "function DummyClass() {\r\n // All construction is actually done in the construct method\r\n if ( !init && this.construct )\r\n this.construct.apply(this, arguments);\r\n }", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "function Constructor() {}", "function Constructor() {}", "function Constructor() {}", "constructor( ) {}", "constructor (){}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "function _ctor() {\n\t}", "function Ctor() {\n\t// Empty...\n}", "function Ctor() {}", "function Ctor() {\r\n }", "function _construct()\n\t\t{;\n\t\t}", "function HelperConstructor() {}", "consructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "function TempCtor() {}", "function TempCtor() {}", "function TempCtor() {}", "function TempCtor() {}", "function TempCtor() {}", "function TempCtor() {}", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function tempCtor() {}", "function construct() { }", "function temporaryConstructor() {}", "constructor() {\r\n // ohne Inhalt\r\n }", "constructor(){\r\n }", "function SimpleClass() {\n }", "function Constructor() {\n // All construction is actually done in the init method\n if ( this.initialize )\n this.initialize.apply(this, arguments);\n }", "constructor(){\r\n\t}", "constructor() {\r\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor(data) { }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }" ]
[ "0.83117235", "0.8150335", "0.8125716", "0.8125716", "0.8125716", "0.8125716", "0.8125716", "0.8125716", "0.8125716", "0.81216276", "0.81216276", "0.81216276", "0.80153376", "0.80066764", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7822476", "0.7804496", "0.7792796", "0.77391064", "0.75758344", "0.7529224", "0.7496081", "0.74399453", "0.7405994", "0.74001706", "0.74001706", "0.74001706", "0.74001706", "0.74001706", "0.74001706", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.73304474", "0.7300504", "0.72488594", "0.7130759", "0.7126093", "0.7071154", "0.70354575", "0.70098794", "0.69566053", "0.6950232", "0.69419897", "0.69419897", "0.69357425", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384", "0.6926384" ]
0.0
-1
Closes the milestone by number
closeMilestone(number) { return this.patch(`milestones/${number}`, { state: 'closed' }).then( ({ code, body }) => { if (code !== 200) return Promise.reject(body); else return body; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function close(n){\n\t\treturn barsAgo(CLOSE,n);\n\t}", "_close() {\n set(this, 'isOpen', false);\n set(this, 'isToStep', false);\n\n let action = get(this, 'attrs.closeAction');\n let vals = get(this, '_dates');\n let isRange = get(this, 'range');\n\n if (action) {\n action(isRange ? vals : vals[0] || null);\n }\n\n this._destroyOutsideListener();\n }", "function closeIssue(context) {\n context.github.issues.edit({\n owner: context.payload.repository.owner.login,\n repo: context.payload.repository.name,\n number: context.payload.issue.number,\n state: 'closed'\n })\n}", "function openClose(c_index) {\n var row_num = parseInt(c_index);\n var total_num = getGradeable().components.length;\n\n //-2 means general comment, else open the c_index with the number\n var general_comment = $('#extra-general');\n setGeneralVisible(row_num === GENERAL_MESSAGE_ID && general_comment[0].style.display === 'none');\n\n for (var x = 1; x <= total_num; x++) {\n var current_summary = $('#summary-' + x);\n setMarkVisible(x, x === row_num && current_summary[0].style.display === '');\n }\n\n updateCookies();\n}", "function closeIssue(id) {\r\n // Get list of issues\r\n const issues = getIssues()\r\n\r\n // Find issue with id to close\r\n for (var i = 0; i < issues.length; i++) {\r\n if (issues[i].id === id) {\r\n issues[i].status = \"Closed\"\r\n }\r\n }\r\n\r\n // Save to our stoage\r\n localStorage.setItem('issues', JSON.stringify(issues))\r\n\r\n // Reload\r\n fetchIssues()\r\n\r\n}", "function updateDoneBadge(milestone, count) {\n $('.' + milestone + '-done-badge').html(count);\n}", "async close() {\r\n this.setOpenAmount(0, true);\r\n }", "function updateIssueCount(milestone, label, count) {\n $('.' + milestone + '-' + label + '-list-group').attr('data-count', count);\n}", "function open(n){\n\t\treturn barsAgo(OPEN,n);\n\t}", "function closeTask(row, task)\n{\n // stuff\n closeNameBox(row, task.name, task.done);\n closeSpoonBoxes(row, task.spoons);\n}", "static closeNewest()\n {\n var id = document.querySelectorAll(\"._notification[action='open']\").length-1;\n document.getElementsByClassName(\"_notification\")[id].instance.makeUntouchable();\n document.getElementsByClassName(\"_notification\")[id].setAttribute(\"action\", \"close\");\n setTimeout(function () {\n document.getElementsByClassName(\"_notification\")[id]\n .parentNode.removeChild(\n document.getElementsByClassName(\"_notification\")[id]\n );\n }, this.deltaMoveTime);\n }", "static closeNewest()\n {\n var id = document.querySelectorAll(\"._notification[action='open']\").length-1;\n document.getElementsByClassName(\"_notification\")[id].instance.makeUntouchable();\n document.getElementsByClassName(\"_notification\")[id].setAttribute(\"action\", \"close\");\n setTimeout(function () {\n document.getElementsByClassName(\"_notification\")[id]\n .parentNode.removeChild(\n document.getElementsByClassName(\"_notification\")[id]\n );\n }, this.deltaMoveTime);\n }", "function closeMark(c_index, save) {\n //Can't close a closed mark\n if (findCurrentOpenedMark() !== c_index) {\n return;\n }\n saveLastOpenedMark(true);\n updateMarksOnPage(c_index);\n setMarkVisible(c_index, false);\n}", "function CloseDesc() {\n detailContainer.animate({\n left: \"-100%\",\n }, 500, function() {\n detailContainer.css(\"display\", \"none\");\n });\n placesList.css(\"display\", \"block\");\n infoWindowArray[focusMarker].close();\n map.fitBounds(bounds);\n map.panTo(bounds);\n\n}", "function openCloseProjects(){\n\t\tprojectsXPos === '0'? setProjectsXPos('100%') : setProjectsXPos('0')\n\t}", "close( nodeToClose, inst ){\n nodeToClose.style.height = '0';\n nodeToClose.closest( inst.params.selector ).classList.remove( inst.params.openClass );\n }", "closeOverlay(index, detailsHeight, rowItems) {\n const self = this;\n this.openOverlays.splice(this.openOverlays.reduce((prev, curr, i) => {\n return (curr.index === index) ? i : prev;\n }, -1), 1);\n this.renderOverlays(detailsHeight, rowItems);\n this.context.pubSub.publishToOverlayChanges({\n changedIndex: index,\n combinedOverlayHeight: self.getCombinedOverlayHeight(),\n type: \"closed\",\n });\n }", "function githubMilestones(githubRepo, divId) {\n // Query open milestone\n $.getJSON('https://api.github.com/repos/' + githubRepo + '/milestones', function(data) {\n\n $.each(data, function(key, val) {\n var tableTemplate = '<div class=\"panel panel-primary\">\\\n <div id=\"milestone_title_' + val.number + '\" class=\"panel-heading\">\\\n </div>\\\n <div class=\"panel-body\">\\\n <div id=\"milestone_' + val.number + '\"></div>\\\n </div>\\\n <table class=\"table table-striped\">\\\n <thead>\\\n <tr>\\\n <th>Task name</th>\\\n <th>Assignee</th>\\\n <th>Priority</th>\\\n <th>State</th>\\\n </tr>\\\n </thead>\\\n <tbody id=\"milestone_issues_' + val.number + '\">\\\n </tbody>\\\n </table>\\\n </div>'\n $(tableTemplate).prependTo(divId);\n\n var due;\n if (val.due_on === null) {\n due = \"no due date set\"\n } else {\n var d = new Date(val.due_on);\n due = \"due on: \" + d.toString();\n }\n // Add title with current milestone\n $('<h3 class=\"panel-title\">Milestone: <a href=\"https://github.com/' + githubRepo + '/issues?milestone=' + val.number + '\">' + val.title + '</a></h3>')\n .appendTo('#milestone_title_' + val.number);\n $(\n '<p>' + val.open_issues + ' open issues - ' +\n ' ' + val.closed_issues + ' closed issues - ' + due +\n '</p>').appendTo('#milestone_' + val.number);\n\n\n // Query the closed issues of the current milestone\n $.getJSON('https://api.github.com/repos/' + githubRepo + '/issues?state=closed&milestone=' + val.number, function(data) {\n var issues = formatIssues(data);\n $(issues.join('')).appendTo('#milestone_issues_' + val.number);\n });\n\n // Query the open issues of the current milestone\n $.getJSON('https://api.github.com/repos/' + githubRepo + '/issues?milestone=' + val.number, function(data) {\n var issues = formatIssues(data);\n $(issues.join('')).appendTo('#milestone_issues_' + val.number);\n });\n });\n\n });\n}", "function displayMilestoneIcon ($group) {\n $group.find('.cmb-repeatable-grouping').each(function () {\n var $this = $(this);\n var milestone = $this.find('[id$=\"milestone\"]').val();\n\n if (milestone) {\n $this.find('.on-title.dashicons').remove();\n var color = $('ul.milestones .title:contains(' + milestone + ')').next().text();\n\n $this.find('button.cmb-remove-group-row.dashicons-before').after('<span style=\"color: ' + color + '\" class=\"dashicons dashicons-flag on-title\"></span> ');\n }\n });\n }", "function unhideMilestoneEdit(milestone) {\n $(milestone).parent().parent().parent().next().addClass(\"d-none\");\n $(milestone).parent().parent().parent().siblings(\".milestoneEdit\").removeClass(\"d-none\");\n $(milestone).parent().parent().addClass(\"d-none\");\n}", "close() {\n if(!this.opened){\n return;\n }\n this.opened = false;\n }", "function setStatusClosed(id){\n\tlet issues = JSON.parse(localStorage.getItem('issues'));\n\tlet tableCounts = JSON.parse(localStorage.getItem('tableCounts'));\n\n\tfor(let i = 0; i < tableCounts.length; i++){\n\t\tfor(let j = 0; j < issues.length; j++){\n\t\t\tif(issues[j].id == id){\n\t\t\t\tif(issues[j].status == \"Open\"){\n\t\t\t\t\ttableCounts[i].open = tableCounts[i].open - 1;\n\t\t\t\t\ttableCounts[i].close = tableCounts[i].close + 1; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfor( let i = 0; i < issues.length; i++){\n\t\tif(issues[i].id == id){\n\n\t\t\tissues[i].status = 'Closed';\n\n\t\t\tissues[i].description = `<s> ${issues[i].description} </s>`\n\t\t}\n\t}\n\n\tlocalStorage.setItem('tableCounts', JSON.stringify(tableCounts));\n\tlocalStorage.setItem('issues', JSON.stringify(issues));\n\n\tfetchIssues();\n}", "function closeIssueForm(elt) {\n var issueElt = $j(elt).closest('[data-issue-key]');\n var actionsElt = issueElt.find('.code-issue-actions');\n var formElt = issueElt.find('.code-issue-form');\n\n formElt.addClass('hidden');\n actionsElt.removeClass('hidden');\n return false;\n}", "close() {\n this.sendAction('close');\n }", "close() {\n this.opened = false;\n }", "function fixed_close_channel(num) { return caml_ml_close_channel(num); }", "close() {\n const that = this;\n\n if (!that.opened) {\n return;\n }\n\n that._close();\n }", "function closeInfoWindow(index) {\n let infowindow = infowindows[index];\n infowindow.close();\n}", "function closeModal() {\r\n // console.log(142);\r\n modal.style.display = 'none';\r\n}", "function close() {\n\t\t// Put the tick to an unreachable value to invalidate timers.\n\t\ttick = -1;\n\t\telm.style.left = \"210px\";\n\t\telm.style.pointerEvents = \"none\"; // Ignore mouse events.\n\n\t\t// Wait out the animation before destroying the element.\n\t\tsetTimeout(() => div.message.removeChild(elm), 200);\n\t}", "close() {\n this.expanded = false;\n }", "function closePlmn() {\n\t\t\tdocument.getElementById(\"Plmn\").style.width = \"0\";\n\t\t}", "close () {\n this.opened = false;\n }", "closeAll() {\n let i = this.openModals.length;\n while (i--) {\n this.openModals[i].close();\n }\n }", "closeNotch() {\n const {OUTLINE_NOTCHED} = MDCNotchedOutlineFoundation.cssClasses;\n this.adapter_.removeClass(OUTLINE_NOTCHED);\n }", "close() {\n\n // Pop the activity from the stack\n utils.popStackActivity();\n\n // Hide the screen\n this._screen.scrollTop(0).hide();\n\n // Hide the content behind the placeholders\n $(\"#page--info .ph-hidden-content\").hide();\n\n // Stop the placeholders animation\n this._placeholders.removeClass(\"ph-animate\").show();\n\n // Hide the delete button\n $(\"#info-delete\").hide();\n\n // Hide the info button\n $(\"#info-edit\").hide();\n\n // Show all the fields\n $(\".info-block\").show();\n\n // Delete the content of each of the fields\n $(\"#info-createdAt .info-content\").html(\"\");\n $(\"#info-updatedAt .info-content\").html(\"\");\n $(\"#info-coordinates .info-content\").html(\"\");\n $(\"#info-coordinatesAccuracy .info-content\").html(\"\");\n $(\"#info-altitude .info-content\").html(\"\");\n $(\"#info-altitudeAccuracy .info-content\").html(\"\");\n $(\"#info-type .info-content\").html(\"\");\n $(\"#info-materialType .info-content\").html(\"\");\n $(\"#info-hillPosition .info-content\").html(\"\");\n $(\"#info-water .info-content\").html(\"\");\n $(\"#info-vegetation .info-content\").html(\"\");\n $(\"#info-mitigation .info-content\").html(\"\");\n $(\"#info-mitigationsList .info-content\").html(\"\");\n $(\"#info-monitoring .info-content\").html(\"\");\n $(\"#info-monitoringList .info-content\").html(\"\");\n $(\"#info-damages .info-content\").html(\"\");\n $(\"#info-damagesList .info-content\").html(\"\");\n $(\"#info-notes .info-content\").html(\"\");\n\n // Show the image placeholder\n $(\"#info-photo-preview\").attr(\"src\", \"img/no-img-placeholder-200.png\");\n\n }", "close() {\n this.overlayManager.close(this.overlayName);\n }", "function endGame() {\n // console.log(matchNum);\n starModalCount();\n openModal();\n}", "closeModals() {\n this.setState({\n backgroundColor: 'white',\n logIsOpen: false,\n incrementIsOpen: false,\n decrementIsOpen: false\n })\n }", "function closeTab1() {\n // close rocket section\n descriptionRocketEarth.classList.remove('displayYes')\n descriptionRocketEarth.classList.add('displayNone')\n imgChevronRockEarth.src = 'images/earthChevron.png'\n //close datas sections\n descriptionDatasEarth.classList.remove('displayYes')\n descriptionDatasEarth.classList.add('displayNone')\n imgChevronDatasEarth.src = 'images/earthChevron.png'\n}", "function close_test() {\n document.querySelector(\"#AI_test\").style.display = \"none\";\n document.querySelector(\"#main\").style.display = \"grid\";\n}", "close() {\n document.body.classList.remove(FolderSettings.CSS.panelOpenedModifier);\n this.opened = false;\n }", "function closingTheJob( job_id )\n{\n\tvar jobb_id = job_id;\n\t__addOverlay();\n\t$.ajax({\n\t\turl : \"/\" + PROJECT_NAME + \"job/set-job-status-closed\",\n\t\tmethod : \"POST\",\n\t\tdata : { 'job_id' : job_id },\n\t\ttype : \"post\",\n\t\tdataType : \"json\",\n\t\tbeforeSend: function(){\n\t\t\t\n\t\t },\n\t\tsuccess : function(jsonData) \n\t\t{\n\t\t\t__removeOverlay();\n//\t\t\t$(\"tr#\"+jobb_id).slideUp();\n\t\t\twindow.location.href=document.documentURI;\n\t\t}\n\t});\t\n}", "function Close_Instruction() {\r\n}", "closeInfoWindow() {\n this.state.infoWindow.close()\n }", "function _onProjectClose() {\n // console.log('[' + EXTENSION_ID + '] :: _onProjectClose');\n if ($appButton.hasClass('active')) {\n Resizer.toggle($appPanel);\n _command.setChecked(false);\n _command.setEnabled(false);\n $appButton.removeClass('active');\n }\n if (!_.isNull($issuesList) && $issuesList.length) {\n $issuesList.html('');\n }\n $appButton.hide();\n $issuesList = null;\n _repositoryUrl = false;\n }", "closeLast() {\n const that = this;\n\n if (that._instances.length > 0) {\n that._close(that._instances[that._instances.length - 1]);\n }\n }", "function displayDetailClose()\n{\n RMPApplication.debug(\"begin displayDetailClose\");\n c_debug(dbug.detail, \"=> displayDetailClose\");\n id_search_filters.setVisible(true);\n id_search_results.setVisible(true);\n id_ticket_details.setVisible(false);\n $(\"#id_number_detail\").val (\"\");\n $(\"#id_correlation_id_detail\").val (\"\");\n $(\"#id_caller_detail\").val (\"\");\n $(\"#id_contact_detail\").val (\"\"); \n $(\"#id_company_detail\").val (\"\");\n $(\"#id_country_detail\").val (\"\");\n $(\"#id_affiliate_detail\").val (\"\");\n $(\"#id_location_detail\").val (\"\");\n $(\"#id_city_detail\").val (\"\");\n $(\"#id_opened_detail\").val (\"\");\n $(\"#id_priority_detail\").val (\"\");\n $(\"#id_state_detail\").val (\"\");\n $(\"#id_closed_detail\").val (\"\");\n $(\"#id_category_detail\").val (\"\");\n $(\"#id_product_type_detail\").val (\"\");\n $(\"#id_problem_type_detail\").val (\"\");\n $(\"#id_short_description_detail\").val (\"\");\n $(\"#id_description_detail\").val (\"\");\n $(\"#id_attachment\").html (\"\");\n clearTaskDataTable();\n $(\"#id_rowProgression\").hide();\n RMPApplication.debug(\"end displayDetailClose\");\n}", "close() {\n\n this.state.infowindow.close();\n }", "close(area) {\n\t\tthis.setState({ \n\t\t\ttitle: null,\n\t\t\tmsg: null,\n\t\t\tclose: null,\n\t\t\tstyleMessage: null,\n\t\t\tstyleTitle: null,\n\t\t\tstyleDesc: null,\n\t\t\tstyleTop: null\n\t\t});\n\t}", "@action\n closeHistory() {\n this.showHistory = false;\n }", "function closePrefect() {\n document.querySelector(\".prefect-container\").classList.add(\"hide\");\n document.querySelector(\".student-info\").classList.remove(\"hide\");\n document.querySelector(\".student-actions\").classList.remove(\"hide\");\n}", "function closeProject(finishProject,stars,status){\n\n var state = (status==\"Exitoso\") ? \"2\" : \"3\"; \n\n var send = {JobOfferId:vm.workData.JobOfferId, State:state, \n StateDescription: finishProject, Stars: stars.toString()};\n JobService.CloseJob(send)\n .then(function(response){\n\n if (response.data.ReturnStatus ===1){ \n FlashService.Success(\"El proyecto se ha cerrado\");\n $location.path(\"/employerprofile\")\n }\n else{\n FlashService.Error(\"No se pudo cerrar el proyecto\")\n console.log(response);\n }\n }, function(response){\n FlashService.Error(\"No se pudo cerrar el proyecto\")\n })\n }", "function closeWindow(){\n/* 603 */ \t\tvar windowId = MochaUI.getFrameWindowId();\n/* 604 */ \t\tparent.MochaUI.closeWindow(parent.$(windowId));\n/* 605 */ \t}", "close() {\n\n\t\t // Set the element as \"being closed\"\n\t\t this.isClosing = true;\n\t\t this.element.classList.add('is-closing');\n\n\t\t // Add an overflow on the <details> to avoid content overflowing\n\t\t this.element.style.overflow = 'hidden';\n\n\t\t // Store the current height of the element\n\t\t const startHeight = `${this.element.offsetHeight}px`;\n\t\t // Calculate the height of the summary\n\t\t const endHeight = `${this.summary.offsetHeight}px`;\n\t\t window.requestAnimationFrame(() => {\n\t\t // If there is already an animation running\n\t\t if (this.animation) {\n\t\t\t// Cancel the current animation\n\t\t\tthis.animation.cancel();\n\t\t }\n\n\t\t this.element.dispatchEvent(this.closeEvent);\n\n\t\t // Start a WAAPI animation\n\t\t this.animation = this.element.animate({\n\t\t\t// Set the keyframes from the startHeight to endHeight\n\t\t\theight: [startHeight, endHeight]\n\t\t }, {\n\t\t\tduration: this.animationSpeedMs,\n\t\t\teasing: 'ease'\n\t\t });\n\n\t\t // When the animation is complete, call #onAnimationFinish()\n\t\t this.animation.onfinish = () => {\n\t\t\t this.#onAnimationFinish(false);\n\t\t\t this.element.classList.remove('is-closing');\n\t\t\t}\n\t\t // If the animation is cancelled, isClosing variable is set to false\n\t\t this.animation.oncancel = () => {\n\t\t\t this.isClosing = false;\n\t\t\t this.element.classList.remove('is-closing');\n\t\t\t}\n\t\t});\n\t}", "closeButton() {\n if (this.openDoors == true) {\n this.closeDoors();\n }\n }", "close() {\n if (!this.isOpen()) {\n return;\n }\n this.flyout_.hide();\n // TODO: We can remove the setVisible check when updating from ^10.0.0 to\n // ^11.\n if (this.workspace_.scrollbar &&\n /** @type {*} */ (this.workspace_.scrollbar).setVisible) {\n /** @type {*} */ (this.workspace_.scrollbar).setVisible(true);\n }\n Blockly.Events.fire(new BackpackOpen(false, this.workspace_.id));\n }", "projectLaborHours(number){\n\n }", "function endGroup() {\r\n command_1.issue('endgroup');\r\n}", "function endGroup() {\r\n command_1.issue('endgroup');\r\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}", "function endGroup() {\n command_1.issue('endgroup');\n}" ]
[ "0.61144936", "0.5881121", "0.5792084", "0.5696418", "0.567205", "0.5663822", "0.55725956", "0.5498331", "0.53649366", "0.53035235", "0.5291249", "0.5291249", "0.5208043", "0.52034384", "0.520063", "0.51972425", "0.5183096", "0.51806325", "0.5175055", "0.51574785", "0.5107038", "0.51050806", "0.50704014", "0.5070329", "0.5061109", "0.505952", "0.50286496", "0.5027145", "0.50205594", "0.5011989", "0.50073636", "0.500597", "0.49995574", "0.49986684", "0.498034", "0.4977848", "0.4977726", "0.49746314", "0.49631223", "0.49572733", "0.49544826", "0.49311143", "0.4924345", "0.4922338", "0.4920502", "0.49053934", "0.4902364", "0.48994285", "0.48750505", "0.48719838", "0.48664123", "0.48634088", "0.48625678", "0.48438823", "0.48421508", "0.48420885", "0.4831958", "0.48280615", "0.4826622", "0.4826622", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205", "0.48248205" ]
0.81170195
0
Add "name id : lambda node" to G.functions
function setUp(program) { const ids = []; const push_vals = []; for (const identId of Object.keys(program.identifiers)) { const identifier = getIdentifier(program, identId); if (identifier.scope !== null || !identifier.value) { continue; } ids.push(identifier.id); push_vals.push(extractFragment(program, identifier.value)); } pushEnvironment(ids, push_vals); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static _gX(fn, lambda){\n return lambda+\"*(\"+fn+\")+x\";\n }", "function _exec_funcdef(ast, context, debug) {\n var FRecord = new ObjectClass.SFunction();\n FRecord.closure_active_record = context;\n var funcName = \"\";\n for (var item in ast.sons) {\n if (ast.sons[item].type == \"NAME\"){\n funcName = ast.sons[item].value;\n FRecord.name = funcName;\n FRecord.ast = ast;\n }\n if (ast.sons[item].type == \"PARAMETERS\") {\n FRecord.argument_list = _exec_parameters(ast.sons[item],context);\n }\n }\n var func = new ObjectClass.SObject();\n func.type = \"Func\";\n func.value = FRecord;\n func.name = funcName;\n context.allEntry[funcName] = func;\n }", "function rewriteBlockArrowFunction(path, module, functions) {\n var node = path.node;\n\n\n functions.push(cleanNode(node));\n\n var _getFunctionPunctuati2 = getFunctionPunctuation(node, module);\n\n var fn = _getFunctionPunctuati2.fn;\n var paramsStart = _getFunctionPunctuati2.paramsStart;\n var paramsEnd = _getFunctionPunctuati2.paramsEnd;\n var blockStart = _getFunctionPunctuati2.blockStart;\n\n\n var paramsNeedsParens = node.params.length !== 1 || !t.isIdentifier(node.params[0]);\n var editor = module.magicString;\n\n if (!paramsNeedsParens) {\n // `(a)` -> `a`\n // ^ ^\n editor.remove(paramsStart.start, paramsStart.end);\n editor.remove(paramsEnd.start, paramsEnd.end);\n }\n\n // `function() {` -> `() =>`\n // ^^^^^^^^ ^ ^^\n editor.remove(fn.start, paramsStart.start);\n editor.insertLeft(blockStart.start, '=> ');\n\n node.type = 'ArrowFunctionExpression';\n }", "'ev'(env) {\n var args = this.args.map(function (a) {\n return a.ev(env);\n });\n\n for (var i = 0; i < args.length; i++) {\n if (args[i].is === 'undefined') {\n return {\n is: 'undefined',\n value: 'undefined'\n };\n }\n }\n\n if (this.name in CartoCSS.Tree.functions) {\n if (CartoCSS.Tree.functions[this.name].length <= args.length) {\n var val = CartoCSS.Tree.functions[this.name].apply(CartoCSS.Tree.functions, args);\n if (val === null) {\n env.error({\n message: 'incorrect arguments given to ' + this.name + '()',\n index: this.index,\n type: 'runtime',\n filename: this.filename\n });\n return {is: 'undefined', value: 'undefined'};\n }\n return val;\n } else {\n env.error({\n message: 'incorrect number of arguments for ' + this.name +\n '(). ' + CartoCSS.Tree.functions[this.name].length + ' expected.',\n index: this.index,\n type: 'runtime',\n filename: this.filename\n });\n return {\n is: 'undefined',\n value: 'undefined'\n };\n }\n } else {\n var fn = CartoCSS.Tree.Reference.mapnikFunctions[this.name];\n if (fn === undefined) {\n var functions = toPairs(CartoCSS.Tree.Reference.mapnikFunctions);\n // cheap closest, needs improvement.\n var name = this.name;\n var mean = functions.map(function (f) {\n return [f[0], CartoCSS.Tree.Reference.editDistance(name, f[0]), f[1]];\n }).sort(function (a, b) {\n return a[1] - b[1];\n });\n env.error({\n message: 'unknown function ' + this.name + '(), did you mean ' +\n mean[0][0] + '(' + mean[0][2] + ')',\n index: this.index,\n type: 'runtime',\n filename: this.filename\n });\n return {\n is: 'undefined',\n value: 'undefined'\n };\n }\n if (fn !== args.length &&\n // support variable-arg functions like `colorize-alpha`\n fn !== -1) {\n env.error({\n message: 'function ' + this.name + '() takes ' +\n fn + ' arguments and was given ' + args.length,\n index: this.index,\n type: 'runtime',\n filename: this.filename\n });\n return {\n is: 'undefined',\n value: 'undefined'\n };\n } else {\n // Save the evaluated versions of arguments\n this.args = args;\n return this;\n }\n }\n }", "map(lambdaExpr) {\n if (!(lambdaExpr instanceof LambdaExpr) || !lambdaExpr.takesArgument) {\n console.error('@ BagExpr.applyFunc: Func expr does not take argument.');\n return undefined;\n }\n let bag = this.clone();\n bag.graphicNode.children = [ bag.graphicNode.children[0] ];\n let items = bag.items;\n bag.items = [];\n let new_items = [];\n items.forEach((item) => {\n let c = item.clone();\n let pos = item.pos;\n let func = lambdaExpr.clone();\n this.stage.add(func);\n func.update();\n let new_funcs = func.applyExpr(c);\n if (!Array.isArray(new_funcs)) new_funcs = [ new_funcs ];\n\n for (let new_func of new_funcs) {\n this.stage.remove(new_func);\n new_func.pos = pos;\n new_func.unlockSubexpressions();\n new_func.lockSubexpressions((expr) => (expr instanceof ValueExpr || expr instanceof FadedValueExpr || expr instanceof BooleanPrimitive)); // lock primitives\n bag.addItem(new_func);\n }\n });\n //bag.items = new_items;\n return bag;\n }", "visitFunctionDeclaration(tree) {}", "visitFunctionDeclaration(tree) {}", "visitFunctionDeclaration(tree) {}", "function funcReplacer(match, id) {\n return functions[id];\n }", "addCustomEdgeFunctions(functions) {\n\t\tthis.info(`Add custom egde functions`);\n\n\t\tObject.keys(functions).forEach((funcName) => {\n\t\t\tthis.edge_custom_functions[funcName] = functions[funcName];\n\t\t});\n\t}", "function funname() {} //literals", "function buildFunctions(codegen) {\n var fn = Object(__WEBPACK_IMPORTED_MODULE_1_vega_expression__[\"c\" /* functions */])(codegen);\n eventFunctions.forEach(function(name) { fn[name] = eventPrefix + name; });\n for (var name in functionContext) { fn[name] = thisPrefix + name; }\n return fn;\n}", "function FunctionExpression(node, print) {\n\t if (node.async) this.push(\"async \");\n\t this.push(\"function\");\n\t if (node.generator) this.push(\"*\");\n\n\t if (node.id) {\n\t this.push(\" \");\n\t print.plain(node.id);\n\t } else {\n\t this.space();\n\t }\n\n\t this._params(node, print);\n\t this.space();\n\t print.plain(node.body);\n\t}", "function FunctionExpression(node, print) {\n\t if (node.async) this.push(\"async \");\n\t this.push(\"function\");\n\t if (node.generator) this.push(\"*\");\n\n\t if (node.id) {\n\t this.push(\" \");\n\t print.plain(node.id);\n\t } else {\n\t this.space();\n\t }\n\n\t this._params(node, print);\n\t this.space();\n\t print.plain(node.body);\n\t}", "function buildFunctions(codegen$$1) {\n var fn = Functions(codegen$$1);\n eventFunctions.forEach(function(name) { fn[name] = eventPrefix + name; });\n for (var name in functionContext) { fn[name] = thisPrefix + name; }\n return fn;\n }", "function alterJSFunction(fn_str, to_add_txt) {\n let _fn_str = fn_str;\n const _fn_params = _fn_str.substring(_fn_str.indexOf(\"(\")+1, _fn_str.indexOf(\")\"));\n\n _fn_str = _fn_str.slice(_fn_str.indexOf(\"{\") + 1, _fn_str.lastIndexOf(\"}\"));\n _fn_str = _fn_str.replace( _fn_str,to_add_txt+_fn_str)\n\n const _fn = new Function(_fn_params, _fn_str);\n return _fn;\n}", "function buildFunctions(codegen) {\n var fn = (0,vega_expression__WEBPACK_IMPORTED_MODULE_1__.functions)(codegen);\n eventFunctions.forEach(function(name) { fn[name] = eventPrefix + name; });\n for (var name in functionContext) { fn[name] = thisPrefix + name; }\n return fn;\n}", "function $lambda(fn)\n{\n fn.$jw = true;\n return fn;\n}", "function _escapeFunction()\t\t\t\t\n\t\t{\n\t\t\tvar name = (value.name || 'anonymous');\n\t\t\tvar note = 'function ' + name + '(...)'\n\t\t\t\n\t\t\tvar msg = dotName.wrap('[]') + ': ' + note;\n\t\t\trtnValue.addListItem('functions', msg);\t\t\t//add to functions list\n\t\t\t\n\t\t\tif (isIgnored)\n\t\t\t\treturn _escapeDeletedFunctions(undefined, note);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tvar keys = Object.keys(value); \n\t\t\tif (keys.length === 0\n\t\t\t|| (keys.length === 1 && keys.displayName))\n\t\t\t\treturn _escapeDeletedFunctions(undefined, 'function ' + name + '(script only)');\n\t\t\t\n\t\t\tvar obj = {};\t\t\t\t\t\t\t\t\t\n\t\t\tkeys.forEach(function(key)\t\n\t\t\t{\n\t\t\t\t_escapeCheckConstructor(value[key], dotName + '.' + key)\n\t\t\t\tobj[key] = value[key];\n\t\t\t});\n\t\t\treturn _escapeValue(obj, note);\n\t\t\t//________________________________________________________________________________________\n\t\t\t/**\n\t\t\t *\tDetermine if Function excluded and type of Object created if not -- little bit complex\n\t\t\t *\tcode from EZ.cloneDev.object()...\n\t\t\t\n\t\t\tfunction _createFunctionClone()\n\t\t\t{\n\t\t\t\tvar clone = '';\n\t\t\t\tvar isNative = false;\n\t\t\t\tmsg = 'function ' + (obj.name || 'anonymous') + '()';\n\t\t\t\tvar script = Function.prototype.toString.call(obj);\n\t\t\t\tvar isNative = (/\\{\\s*\\[native code\\]\\s*\\}/.test(script));\n\t\t\t\tdo\n\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t //-------------------------\\\\\n\t\t\t\t\tif (isNative)\t\t\t\t\t\t\t\t\t\t //----- native function -----\\\\\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t//-----------------------------\\\\\t\n\t\t\t\t\t\tif (options.exclude.includes('native'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo.mergeListItem('excluded', msg + ' [native]', dotName)\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse clone = obj;\t\t\t\t\t\t\t\t//keep as-is when not excluded\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //--------------------------\\\\\n\t\t\t\t\tvar keys = Object.keys(obj);\t\t\t\t\t\t //----- defined function -----\\\\\n\t\t\t\t\tvar idx = keys.indexOf('displayName');\t\t\t\t//------------------------------\\\\\t\n\t\t\t\t\tif (idx != -1)\n\t\t\t\t\t\tkeys.splice(idx,1);\n\t\t\t\t\tvar isEnum = (keys.length);\t\t\t\t\t\t\t//enumerable properties?\n\n\t\t\t\t\tif (options.exclude.includes('Function')\n\t\t\t\t\t&& (options.ignore.includes('script') && !isEnum))\n\t\t\t\t\t{\n\t\t\t\t\t\tinfo.mergeListItem('excluded', msg, dotName)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (options.ignore.includes('script') && !isEnum)\n\t\t\t\t\t{\n\t\t\t\t\t\tinfo.mergeListItem('excluded', msg + ' [no properties]', dotName);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if (options.ignore.includes('script'))\t\t\t//if excluding script\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tscript = 'function ' + obj.name + '()';\n\t\t\t\t\t\tinfo.mergeListItem('excluded', msg + ' [script only]', dotName)\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (options.exclude.includes('Function') \t\t\t//if excluding Function and not script\n\t\t\t\t\t&& (!options.ignore.includes('script') || !isEnum))\t//...or no enumerable properties\n\t\t\t\t\t{\n\t\t\t\t\t\tinfo.mergeListItem('excluded', msg, dotName)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (options.ignore.includes('script'))\t\t\t\t//otherwise if ignoring script . . .\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!isEnum)\t\t\t\t\t\t\t\t\t//exclude function if no properties\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo.mergeListItem('excluded', msg + ' [no properties]', dotName);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscript = 'function ' + obj.name + '()';\t\t\t//exclude fn script\t\n\t\t\t\t\t\tinfo.mergeListItem('excluded', msg + ' [script only]', dotName)\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (options.ignore.includes('ignored_constructors'))\n\t\t\t\t\t{\n\t\t\t\t\t\tclone = {}\t\t\t\t\t\t\t\t\t\t//clone as Object\n\t\t\t\t\t\tinfo.mergeListItem('ignored_constructors', 'Function', dotName)\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{ \n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\teval('clone=' + script);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclone = {};\n\t\t\t\t\t\t\tinfo.addMessage('unable to clone function: ' + msg + ' @ ' + dotName.join('.').wrap('[]'))\n\t\t\t\t\t\t\tinfo.addDetails(EZ.getStackTrace());\n\t\t\t\t\t\t\tinfo.mergeListItem('excluded', msg + '[script syntax]', dotName)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (false)\n\t\t\t\treturn clone;\n\t\t\t}\n\t\t\t*/\n\t\t}", "function function_node(snap, x, y, name, total_inputs, total_outputs) {\n var inputs = [];\n var outputs = [];\n\n var body = snap.rect(x, y + pipe_width, pipe_width * (total_inputs * 2 + 1), function_node_height).addClass(\"body\");\n var group = snap.g(body);\n\n for(var i = 0; i < total_inputs; i++) {\n var input = snap.rect(x + (pipe_width * (i * 2 + 1)), y, pipe_width, pipe_width).addClass(\"input\");\n inputs.push(input);\n group.add(input);\n }\n\n var output = snap.rect(x + (pipe_width * total_inputs), y + pipe_width + function_node_height, pipe_width, pipe_width).addClass(\"output\");\n outputs.push(output);\n group.add(output);\n\n var outline = snap.path(function_node_outline_path(x, y, total_inputs, total_outputs)).addClass(\"function-outline\");\n group.add(outline);\n\n var text = snap.text(x + (pipe_width / 2), y + function_node_height + pipe_width - 10, name).addClass(\"function_name\");\n group.add(text);\n\n group.drag();\n}", "addRule(name, closure) {\n Iodine.prototype[`is${name[0].toUpperCase()}${name.slice(1)}`] = closure;\n }", "function newFunction(){ //function declaration\n console.log(\"hello world\");\n }", "function FunctionExpression(node, print) {\n if (node.async) this.push(\"async \");\n this.push(\"function\");\n if (node.generator) this.push(\"*\");\n\n if (node.id) {\n this.push(\" \");\n print.plain(node.id);\n } else {\n this.space();\n }\n\n this._params(node, print);\n this.space();\n print.plain(node.body);\n}", "getFunction() {\n const expression = document.getElementById(\"funct\").value.toLowerCase();\n\n if (expression == \"\") {\n console.log(\"empty function field\");\n return;\n }\n // replace('ln(x)', 'log(x, 2.71828182846)')\n const finalexpression = this.scrubln(expression).trim();\n // console.log(finalexpression, expression);\n\n if (!this.functionAlreadyExists(expression)) {\n try {\n const node = math.parse(finalexpression);\n const code = node.compile();\n\n const coords = this.getExpressionValues(code);\n\n this.functionArray.push(\n new FunctionObject(expression, finalexpression, coords, code, this)\n );\n this.addFunctionDetailsDiv();\n this.drawFunctionValuesToGraph(coords);\n } catch (err) {\n console.log(\"input created a problem...\");\n console.log(err);\n }\n }\n console.log(\"expression alreadu input\");\n }", "static fromFunctionName(scope, id, functionName) {\n return Function.fromFunctionAttributes(scope, id, {\n functionArn: core_1.Stack.of(scope).formatArn({\n service: 'lambda',\n resource: 'function',\n resourceName: functionName,\n arnFormat: core_1.ArnFormat.COLON_RESOURCE_NAME,\n }),\n });\n }", "defineFn(name, words) {this.fnDefs[name] = words;}", "function functionName() { console.log('I am a function') }", "function addUserFunction(userFunctionEdn) {\n userFunctions.push(userFunctionEdn);\n}", "function nombreFuncion(){\n \n}", "function JavaScriptFunctions() // implements FunctionMapper\n {\n // map from function name to function implementation\n this.map = null;\n\n /**\n * @param {string} prefix\n * @param {string} localName\n * @return {function}\n */\n this.resolveFunction = function(prefix, localName)\n {\n if (this.map === null)\n {\n this.map = {};\n }\n\n return this.map[prefix + \":\" + localName];\n };\n\n /**\n * @param {string} prefix\n * @param {string} localName\n * @param {function} func\n */\n this.setFunction = function(prefix, localName, func)\n {\n if (this.map === null)\n {\n this.map = {};\n }\n\n this.map[prefix + \":\" + localName] = func;\n };\n }", "static _functionToCode(fn, name) {\r\n var txt = fn.toString()\r\n .replace(/\\/\\/.*/g, '')\r\n .replace(/\\s+/g, '')\r\n .replace(/var/g,'var ')\r\n .replace('return','return ') + ';';\r\n return txt\r\n }", "function decoratorLambda(){\n\n var varLabel = [\"x\",\"y\",\"z\",\"u\",\"v\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"r\",\"s\",\"t\",\"w\",\"q\"];\n var varLabelMax = varLabel.length - 1;\n var varLabelCounter = 0;\n var varLabelIndex = 0;\n\n\n\n function nextVariable() {\n var varLabelRem = varLabelIndex % varLabelMax;\n var varLabelQuot = (varLabelIndex - varLabelRem) / varLabelMax;\n if (varLabelIndex < varLabelMax) {\n var output = varLabel[varLabelRem];\n } else {\n var output = varLabel[varLabelRem] + varLabelQuot;\n }\n varLabelIndex +=1;\n return output;\n }\n\n\n// take the mol from \"molexportafter\", if it is not void, else take it from \"molexport\"\n \n var molString = document.getElementById(\"molexportafter\").innerHTML;\n if (molString == \"\") { molString = document.getElementById(\"molexport\").innerHTML;}\n var molStringVect = molString.split(\"<br>\");\n\n// transform it into an array \n var molFinalArray = [], molLine = [];\n\n for (var i=0; i<molStringVect.length; i++) {\n molLine = molStringVect[i].trim().split(\" \");\n if (molLine[0] == '') continue;\n molFinalArray.push(molLine);\n }\n// because the mol is taken from \"molexportafter\", the edges are numbered starting from 1, with no gap\n var molFinalEdgesInDeco = [], molFinalEdgesOutDeco = [], molFinalEdgesDeco = [], molFinalDeco = [], molFinalNodeType;\n var equalRel = [];\n\n molFinalEdgesInDeco[0] = \"init\";\n molFinalEdgesDeco[0] = \"init\";\n\n\n for (var i=0; i<molFinalArray.length; i++) {\n molFinalNodeType = molFinalArray[i][0];\n molFinalDeco[i] = \"\";\n switch (molFinalNodeType) {\n case \"A\":\n molFinalEdgesOutDeco[molFinalArray[i][1]] = \"\";\n molFinalEdgesOutDeco[molFinalArray[i][2]] = \"\";\n molFinalEdgesInDeco[molFinalArray[i][3]] = \"\";\n\n molFinalEdgesDeco[molFinalArray[i][1]] = \"\";\n molFinalEdgesDeco[molFinalArray[i][2]] = \"\";\n break;\n\n case \"FI\":\n molFinalEdgesOutDeco[molFinalArray[i][1]] = \"\";\n molFinalEdgesOutDeco[molFinalArray[i][2]] = \"\";\n molFinalEdgesInDeco[molFinalArray[i][3]] = nextVariable();\n\n molFinalEdgesDeco[molFinalArray[i][1]] = \"\";\n molFinalEdgesDeco[molFinalArray[i][2]] = \"\";\n break;\n\n case \"L\":\n molFinalEdgesOutDeco[molFinalArray[i][1]] = \"\";\n molFinalEdgesInDeco[molFinalArray[i][2]] = nextVariable();\n molFinalEdgesInDeco[molFinalArray[i][3]] = \"\";\n\n molFinalEdgesDeco[molFinalArray[i][1]] = \"\";\n break;\n\n case \"FO\":\n case \"FOE\":\n molFinalEdgesOutDeco[molFinalArray[i][1]] = \"\";\n molFinalEdgesInDeco[molFinalArray[i][2]] = \"\";\n molFinalEdgesInDeco[molFinalArray[i][3]] = \"\";\n\n molFinalEdgesDeco[molFinalArray[i][1]] = \"\";\n break;\n\n case \"Arrow\":\n molFinalEdgesOutDeco[molFinalArray[i][1]] = \"\";\n molFinalEdgesInDeco[molFinalArray[i][2]] = \"\";\n\n molFinalEdgesDeco[molFinalArray[i][1]] = \"\";\n break;\n\n case \"FROUT\":\n case \"T\":\n molFinalEdgesOutDeco[molFinalArray[i][1]] = \"\";\n\n molFinalEdgesDeco[molFinalArray[i][1]] = \"\";\n break;\n\n case \"FRIN\":\n molFinalEdgesInDeco[molFinalArray[i][1]] = nextVariable();\n break; \n }\n }\n\n// propagation of decoration through edges\n\n function edgesDecoPropagation() {\n var output = 0;\n for (var ii=1; ii<molFinalEdgesDeco.length; ii++) {\n if (molFinalEdgesDeco[ii] == \"\") {\n if (molFinalEdgesInDeco[ii] != \"\") {\n if (molFinalEdgesOutDeco[ii] == \"\") {\n molFinalEdgesOutDeco[ii] = molFinalEdgesInDeco[ii];\n } else {\n var eqrel = molFinalEdgesOutDeco[ii] + \" = \" + molFinalEdgesInDeco[ii];\n equalRel.push({elem:\"edge\", id:ii, rel:eqrel});\n }\n molFinalEdgesDeco[ii] = \"deco\";\n output = 1;\n }\n }\n }\n return output;\n }\n\n// propagation of decoration through nodes\n\n function nodesDecoPropagation() {\n var output = 0, leftPortDeco, midPortDeco, rightPortDeco;\n\n for (var ino=0; ino<molFinalDeco.length; ino++) {\n if (molFinalDeco[ino] == \"\") {\n switch (molFinalArray[ino][0]) {\n case \"A\":\n leftPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][1]];\n midPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][2]];\n if ((leftPortDeco != \"\") && (midPortDeco != \"\")) {\n molFinalEdgesInDeco[molFinalArray[ino][3]] = \"(\" + leftPortDeco + \" \" + midPortDeco + \")\";\n molFinalDeco[ino] = \"deco\";\n output = 1;\n }\n break;\n \n case \"L\":\n leftPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][1]];\n midPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][2]];\n if ((leftPortDeco != \"\") && (midPortDeco != \"\")) {\n molFinalEdgesInDeco[molFinalArray[ino][3]] = \"(\\\\\" + midPortDeco + \".\" + leftPortDeco + \")\";\n molFinalDeco[ino] = \"deco\";\n output = 1;\n }\n break;\n \n case \"FO\":\n case \"FOE\":\n leftPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][1]];\n if (leftPortDeco != \"\") {\n molFinalEdgesInDeco[molFinalArray[ino][3]] = leftPortDeco;\n molFinalEdgesInDeco[molFinalArray[ino][2]] = leftPortDeco;\n molFinalDeco[ino] = \"deco\";\n output = 1;\n }\n break;\n \n case \"FI\":\n leftPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][1]];\n midPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][2]];\n if ((leftPortDeco != \"\") && (midPortDeco != \"\")) {\n if (molFinalEdgesInDeco[molFinalArray[ino][3]] == \"\") {\n molFinalEdgesInDeco[molFinalArray[ino][3]] = nextVariable();}\n var eqrel = molFinalEdgesInDeco[molFinalArray[ino][3]] + \" = \" + leftPortDeco;\n equalRel.push({elem:\"node\", id:ino, rel:eqrel});\n var eqrel = molFinalEdgesInDeco[molFinalArray[ino][3]] + \" = \" + midPortDeco;\n equalRel.push({elem:\"node\", id:ino, rel:eqrel});\n molFinalDeco[ino] = \"deco\";\n output = 1;\n }\n break;\n \n case \"Arrow\":\n leftPortDeco = molFinalEdgesOutDeco[molFinalArray[ino][1]];\n if (leftPortDeco != \"\") {\n molFinalEdgesInDeco[molFinalArray[ino][2]] = leftPortDeco;\n molFinalDeco[ino] = \"deco\";\n output = 1;\n }\n break;\n }\n \n }\n } \n return output; \n }\n\n// main decoration loop\n \n var decoEnd = 1;\n\n while (decoEnd != 0) {\n decoEnd = 0;\n decoEnd += edgesDecoPropagation();\n decoEnd += nodesDecoPropagation();\n }\n\n// show the FROUT nodes decoration\n\n var outputDeco = \"\";\n for (var i=0; i<molFinalDeco.length; i++) {\n if (molFinalArray[i][0] == \"FROUT\") {\n// outputDeco += \"FROUT \" + i + \": \" + molFinalEdgesOutDeco[molFinalArray[i][1]] + \"\\n\";\n outputDeco += molFinalEdgesOutDeco[molFinalArray[i][1]] + \"\\n\";\n }\n }\n\n for (var i=0; i<equalRel.length; i++) {\n outputDeco += equalRel[i].rel + \"&nbsp; | &nbsp;\";\n }\n\n document.getElementById(\"evaluation\").innerHTML = outputDeco;\n}", "FunctionDeclaration() {\n pushContext();\n }", "\"function name\"(){\n //do thing\n }", "function listLambdas () {\n cmdListLambdas.run(function (err, lambdas) {\n if (err) return logError(err)\n\n for (let lambda of lambdas) {\n console.log(lambda)\n }\n })\n}", "function name() {}", "function add(x) {\n // Add your code below this line\n return function(y){\n return function(z){\n return x + y + z;\n }\n }\n // Add your code above this line\n}", "function addFunction(func, sig) {\n\n return addFunctionWasm(func, sig);\n}", "function toonHalloTekst() {\n return function (naam, halloTekst) {\n console.log(naam + ' ' + halloTekst);\n }\n}", "function greet (vlanguage){\nreturn function(name){\n console.log(vlanguage+' ' + name);\n}\n}", "function setOnchangeFuncs(id,funcs){\n var node = document.getElementById(id);\n node.setAttribute(\"onchange\",funcs);\n}", "function _function(obj) {\n return exports.PREFIX.function + ':' + obj.name + '=>' + obj.toString();\n}", "function Func_s() {\n}", "function insertFunctions(line) {\n\t\tvar firstWord = line.split(\" \",1)[0];\n\t\tif(functions.indexOf(firstWord) == -1) {\n\t\t\tfor(var i = 0; i < mappings.length; i++) {\t//not functions.length so we don't deal with delay here.\n\t\t\t\tline = replaceValWhereNeeded(line, functions[i], \"\\ntype(\" + mappings[i] + \",false);\");\n\t\t\t}\n\t\t} else {\n\t\t\tfor(var i = 0; i < mappings.length; i++) {\t//not functions.length so we don't deal with delay here.\n\t\t\t\tline = replaceValWhereNeeded(line, functions[i], \"\\ntype(\" + mappings[i] + \",false);\");\n\t\t\t}\n\n\t\t}\n\t\treturn line\n}", "function add(x) {\n // Add your code below this line\n return function(y){\n return function(z){\n return x + y + z;\n }\n }\n\n // Add your code above this line\n}", "function add() {\n //Lexical to add\n function sub() {\n return \"30\";\n }\n return \"Prince\";\n}", "function add_applied_functions() {\n var ul = jQuery('#calcfuncsul');\n jQuery.each(functions_applied, function(i,e) {\n jQuery( \"<li data-id=\\\"\" + e + \"\\\" data-coltype=\\\"function\\\"></li>\" )\n .html( remove_me + ' ' +e )\n .appendTo( ul );\n });\n }", "function add_applied_functions() {\n var ul = jQuery('#calcfuncsul');\n jQuery.each(functions_applied, function(i,e) {\n jQuery( \"<li data-id=\\\"\" + e + \"\\\" data-coltype=\\\"function\\\"></li>\" )\n .html( remove_me + ' ' +e )\n .appendTo( ul );\n });\n }", "function india() {\n console.log('warm');\n} //! Function declaration is defined during the parsing of the code", "function makefunc(x) {\r\n// return function() { return x; }\r\n// return new Function($direct_func_xxx$);\r\n return new Function(\"return x;\")\r\n}", "handler(ctx, expr) {\n const ast = expr.ast, fn = ctx.functions;\n return (_, event) => {\n const datum = event.item && event.item.datum;\n return interpret(ast, fn, _, datum, event);\n };\n }", "function miFuncion (){}", "function f1(func) {\n func(\"hello anonymous function\");\n}", "function funcName(func) {\n return func.name || \"{anonymous}\"\n }", "parseFunctions() {\n if (!Code.isScript(this.file)) return\n\n blanke.cooldownFn(\"parseFunctions\", 1000, () => {\n let text = this.codemirror.getValue()\n blanke.clearElement(this.el_class_methods)\n\n // get function list\n let class_list = {}\n let re_func = [\n /function\\s+(\\w+):(\\w+)\\(([\\w,\\s]*)\\)/g,\n /(\\w+)\\.(\\w+)\\s*=\\s*function\\s*\\(([\\w,\\s]*)\\)/g,\n ]\n for (let re of re_func) {\n let match\n while ((match = re.exec(text))) {\n let fn_info = {\n class: match[1],\n name: match[2],\n args: (match[3] || \"\").split(\",\").map(s => s.trim()),\n }\n this.function_list.push(fn_info)\n\n // add it to functions to class string\n if (!class_list[fn_info.class])\n class_list[\n fn_info.class\n ] = `<div class=\"class-name\">${fn_info.class}</div>`\n class_list[fn_info.class] += `\n\t\t\t\t\t\t<div class=\"method-container\">\n\t\t\t\t\t\t\t<div class=\"name\">${fn_info.name}(<div class=\"args\">${fn_info.args.join(\n \", \"\n )}</div>)</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t`\n }\n }\n // combine all class strings\n for (let c in class_list) {\n this.el_class_methods.innerHTML += class_list[c]\n }\n })\n }", "function Addition(x){\r\n // it is return some reference no name of function just a refernce\r\n return function (y){\r\n return x+y;\r\n };\r\n}", "function Function_(types) {\n var tuples = Z.reduce (function(tuples, t) {\n tuples.push (['$' + show (tuples.length + 1), K ([]), t]);\n return tuples;\n }, [], types);\n\n function format(outer, inner) {\n return when (tuples.length !== 2)\n (parenthesize (outer))\n (joinWith (outer (', '),\n Z.map (function(tuple) {\n return when (tuple[2].type === FUNCTION)\n (parenthesize (outer))\n (inner (tuple[0])\n (show (tuple[2])));\n }, init (tuples)))) +\n outer (' -> ') +\n inner ((last (tuples))[0])\n (show ((last (tuples))[2]));\n }\n\n return _Type (FUNCTION,\n '',\n '',\n types.length,\n format,\n [AnyFunction],\n K (K (true)),\n tuples);\n }", "function add(x) {\n // Add your code below this line - done\n return function(y) {\n return function(z) {\n return x+y+z;\n }\n }\n // Add your code above this line\n}", "function funcname(f) {\n const s = f.toString().match(/function (\\w*)/)[1];\n if ((s === null) || (s.length === 0)){ return \"~anonymous~\";}\n return s;\n}", "function add(num1, num2){// named function\n return num1 + num2;\n}", "function creaSumador(x) {\n return function(y) {\n return x + y;\n };\n }", "function Func() {\n\t return t.genericTypeAnnotation(t.identifier(\"Function\"));\n\t}", "function Func() {\n\t return t.genericTypeAnnotation(t.identifier(\"Function\"));\n\t}", "function add(x){\n return function(y){\n return x + y\n }\n}", "function applyOp(node, func) {\n node = $(node);\n node.trigger(\"fluid-\"+func);\n node[func]();\n }", "function blabla() {\n\n}", "function fun() { }", "function nameFunction(handler) {\n var scope = handler.scope ? handler.scope.constructor.name + '.' : '';\n var name = handler.func.name;\n if (name) {\n return scope + name;\n }\n for (var prop in handler.scope) {\n if (handler.scope[prop] === handler.func) {\n return scope + prop;\n }\n }\n return scope + handler.func;\n}", "function GroovyFunction() {\n this.signature = null;\n this.name = null;\n this.definition = null;\n this.params = [];\n }", "function addTwimlFunction(node, twimlName) {\n //Generate a function on the parent node\n node[twimlName.charAt(0).toLowerCase() + twimlName.slice(1)] = function() {\n var text, attributes, builder, legalNodes = [];\n \n //Get XML components from the caller\n for (var i = 0, l = arguments.length; i < l; i++) {\n var arg = arguments[i];\n if (typeof arg === 'string') {\n text = arg;\n }\n else if (typeof arg === 'function') {\n builder = arg;\n }\n else {\n attributes = arg;\n }\n }\n \n //determine legal sub-nodes based on the node name\n switch(twimlName) {\n case 'Gather': legalNodes = ['Say','Play','Pause']; break;\n case 'Dial': legalNodes = ['Number','Client','Conference','Queue','Sip']; break;\n default: break;\n }\n \n //create new node object\n var newNode = new Node({\n name:twimlName,\n attributes:attributes,\n text:text,\n legalNodes:legalNodes\n });\n \n //create node's API for subnodes and call builder function, if need be\n if (!text && legalNodes.length > 0 && builder) {\n legalNodes.forEach(function(legalNodeName) {\n addTwimlFunction(newNode, legalNodeName);\n });\n builder.call(newNode, newNode);\n }\n \n //Assemble the proper XML node and add to parent node\n node.children.push(newNode);\n \n //return the node, to allow for chaining\n return node;\n };\n }", "function genFunc(funcCode, index, tabCount) {\n\tvar fList = window.context.state.functionList;\n\tvar component = fList[index];\n\tif(component.type === funcNExp) {\n\t\tif(!component.hasParent && component.name.includes(\"=\")) funcCode = funcCode + \"let \" + component.name + \"<br/>\"; else funcCode = funcCode + component.name + \"<br/>\";\n\t\treturn funcCode;\n\t}\n\t// var inp, inp2;\n\tif(!component.full) return \"not valid\";\n\tvar inputName, inputName2, funcOpName;\n\t// var funcType;\n\tvar hasChild = false;\n\tchildIsOp = false;\n\tif(component.input.name === \"\") {\n\t\tinputName = varNames[currentVar];\n\t} else inputName = component.input.name;\n\tif(component.type === funcOp) {\n\t\t// inp = document.getElementById(\"type\" + component.input.id);\n\t\t// inp2 = document.getElementById(\"type\" + component.input2.id);\n\t\tif(component.input2.name === \"\") {\n\t\t\tinputName2 = varNames[++currentVar];\n\t\t} else inputName2 = component.input2.name;\n\t}\t\n\n\tif(component.name === \"\") {\n\t\tif(component.type === funcBody) {;\n\t\t\tfuncCode = funcCode + \"fun \" + inputName + \" =<br/>\";\n\t\t} else if(component.type === funcRec) {\n\t\t\tvar funcName = varNames[++currentVar];\n\t\t\tfuncCode = funcCode + \"let rec \" + funcName + \" \" + inputName + \" =<br/>\";\n\t\t} else if(component.type === funcOp) {\n\t\t\tif(component.op === \"\") return \"not valid\";\n\t\t\t// funcType = document.getElementById(\"type\" + component.id);\n\t\t\tcomponent.input.valueType = component.valueType;\n\t\t\tcomponent.input2.valueType = component.valueType;\n\t\t\tfuncOpName = \"(\" + component.op + \")\";\n\t\t\tfuncCode = funcCode + funcOpName + \" \" + inputName + \" \" + inputName2 + \"<br/>\";\n\t\t}\n\t} else {\n\t\tif(component.type === funcBody) {\n\t\t\tfuncCode = funcCode + \"let \" + component.name + \" \" + inputName + \" =<br/>\";\n\t\t} else if(component.type === funcRec) {\n\t\t\tfuncCode = funcCode + \"let rec \" + component.name + \" \" + inputName + \" =<br/>\";\n\t\t} else if(component.type === funcOp) {\n\t\t\tif(component.op === \"\") return \"not valid\";\n\t\t\t// funcType = document.getElementById(\"type\" + component.id);\n\t\t\tcomponent.input.valueType = component.valueType;\n\t\t\tcomponent.input2.valueType = component.valueType;\n\t\t\tfuncOpName = \"(\" + component.op + \")\";\n\t\t\tfuncCode = funcCode + \"let \" + component.name + \" = \" + funcOpName + \" \" + inputName + \" \" + inputName2 + \"<br/>\";\n\t\t}\n\t}\n\ttabCount++;\n\tvar i;\n\tvar hasTabs = false;\n\tif(component.type === funcOp) hasTabs = true;\n\t\n\tif(!hasTabs) {\n\t\tfor(i = 0; i < tabCount; i++) {\n\t\t\tfuncCode = funcCode + \"&emsp;\";\n\t\t}\n\t\thasTabs = true;\n\t} else {\n\t\tfor(i = 0; i < tabCount-1; i++) {\n\t\t\tfuncCode = funcCode + \"&emsp;\";\n\t\t}\n\t}\n\t\n\tif(component.output.type === funcBody || component.output.type === funcRec || component.output.type === funcOp) {\n\t\tvar outputIndex = fList.findIndex(func => func.id === component.output.id);\n\t\tcurrentVar++;\n\t\tvar temp = genFunc(funcCode, outputIndex, tabCount);\n\t\tif(temp === \"not valid\") {\n\t\t\treturn temp;\n\t\t}\n\t\tfuncCode = temp;\n\t\tif(component.output.type === funcBody || component.output.type === funcRec) hasTabs = false;\n\t\tif(component.output.name !== \"\") hasChild = true;\n\t\tif(component.output.type === funcOp) {\n\t\t\t/*if(component.input.name !== \"\" && (component.output.input.name === component.input.name || component.output.input2.name === component.input.name))*/ childIsOp = true;\n\t\t\tcomponent.input.valueType = component.output.valueType;\n\t\t} else component.input.valueType = component.output.input.valueType;\n\t}\n\t\n\tif(!hasTabs) {\n\t\tfor(i = 0; i < tabCount; i++) {\n\t\t\tfuncCode = funcCode + \"&emsp;\";\n\t\t\thasTabs = true;\n\t\t}\n\t}\n\t\n\tif(childIsOp) {\n\t\tif(component.output.name === \"\" || component.output.output.type === funcOp) funcCode = funcCode + \"<br/>\"; else funcCode = funcCode + component.output.name + \"<br/>\";\n\t} else if(hasChild) {\n\t\tif(component.output.type === funcOp && component.output.name !== \"\") {\n\t\t\tfuncCode = funcCode + inputName + \"<br/>\";\n\t\t}else if(component.type === funcBody || component.type === funcRec) funcCode = funcCode + component.output.name + \" \" + inputName + \"<br/>\";\n\t} else {\n\t\tif(component.type === funcBody || component.type === funcRec) funcCode = funcCode + inputName + \"<br/>\";\n\t}\n\tcurrentVar++;\n\treturn funcCode;\n}", "function parseEvent (subNode) {\n let funcName = subNode.name || ''\n let params\n\n // add parameters to the function name\n if (subNode.parameters && subNode.parameters.parameters) {\n params = subNode.parameters.parameters.map(function (param) {\n return param.name\n })\n funcName += '(' + params.join(', ') + ') '\n } else {\n funcName += '() '\n }\n return funcName\n}", "function functionFindAndReplace(node, state) {\n var comp, parts, func\n parts = generators[node.type](node)\n for (var i = 0; i < parsed_dsl[node.type].length; i++) {\n comp = parsed_dsl[node.type][i]\n if (parts.length != comp.length) continue\n if (!~parts[0].indexOf(comp[0])) continue\n\n for (var j = 1; j < parts.length; j++) {\n if (parts[j] === comp[j]) continue\n func = getScope(parts[j], state)\n if (!func) console.log(state, parts[j], comp[j])\n replaceVar(func, parts[j], comp[j])\n }\n return\n }\n}", "function build_function_tree(node) {\n\n var rootnode; // the root node of tree\n var funcnode_uid = 0; // unique id\n var currentFuncNode; // iterator\n\n function visit(astnode, parent) {\n\n var fnode;\n\n // every ast node has a type property\n if (!astnode || typeof astnode.type !== \"string\") {\n return;\n }\n\n if (astnode.type === \"Program\") {\n\n fnode = new FunctionNode(Compiler, funcnode_uid++, astnode, undefined);\n\n // reverse annotation for debug\n astnode.fnode = fnode;\n rootnode = fnode;\n currentFuncNode = fnode;\n }\n else if (astnode.type === \"FunctionDeclaration\"\n || astnode.type === \"FunctionExpression\") {\n\n fnode = new FunctionNode(Compiler, funcnode_uid++, astnode,\n currentFuncNode);\n\n // reverse annotation for debug\n astnode.fnode = fnode;\n currentFuncNode.children.push(fnode);\n currentFuncNode = fnode;\n }\n\n for ( var prop in astnode) {\n if (astnode.hasOwnProperty(prop)) {\n if (prop === \"__parent__\") {\n continue;\n }\n\n var child = astnode[prop];\n if (Array.isArray(child)) {\n for (var i = 0; i < child.length; i++) {\n visit(child[i], astnode);\n }\n }\n else {\n visit(child, astnode);\n }\n }\n }\n\n if (astnode.type === \"FunctionDeclaration\"\n || astnode.type === \"FunctionExpression\") {\n\n currentFuncNode = currentFuncNode.parent;\n }\n } // End of visit\n\n visit(node);\n\n return rootnode;\n}", "function putFunction(head, body) {\n putData($(\"#functions-list\"), head, body);\n}", "function getFunctions()\n{\n lines = functionEditor.getValue().split(\"\\n\");\n functions = [];\n for(i = 0; i < lines.length; i++)\n {\n if(lines[i].charAt(0) != ' ' && lines[i].indexOf(\"|\") != 0)\n {\n //If the string does not start with a keyword and does contain a equals sign.\n if(!beginsWithKeyword(lines[i]) && lines[i].indexOf(\"=\") != -1)\n {\n lineSplit = lines[i].split(\"=\");\n lineSplit = lineSplit[0].split(\" \"); //Get content before equals sign, and split on spaces\n\n exsists = false;\n if(!exsists) { //Check if already added\n tmp = {};\n tmp.functionName = lineSplit[0]; //Function name will be the first element in the array split on spaces\n tmp.arguments = lineSplit.slice(1, lineSplit.length - 1).filter(Boolean); //Arguments are the words after it, .filter to filter out empty entries.\n functions[functions.length] = tmp;\n }\n\n }\n }\n }\n\n return functions;\n}", "function transform_function(func) {\n if (ends_with_underscore(func.name)) {\n function_vars = {}\n idents.push_callback()\n func.name = strip_underscore(func.name)\n func.params.push(idents.callback.value)\n func.body.children.push({\n type: RETURN,\n implicit: true,\n })\n func.body.children = transform_statements(func.body.children)\n idents.pop_callback()\n }\n}", "function arrowFunc(name) {\n return 'Hello ' + name;\n}", "function get_functions(ast) {\n\tvar names = [];\n\tvar nodes = [];\n\ttraverse(ast, (node) => {\n\t\tif (node.type === \"FunctionDeclaration\" && node.id !== null) {\n\t\t\tnames.push(node.id.name);\n\t\t\tnodes.push(node);\n\t\t}\n\t\tif (node.type === \"VariableDeclaration\" && node.declarations[0].init !== null && node.declarations[0].init != undefined &&\n\t\t\t(node.declarations[0].init.type === \"FunctionExpression\" || node.declarations[0].init.type === \"ArrowFunctionExpression\")) {\n\t\t\t{\n\t\t\t\tnames.push(node.declarations[0].id.name);\n\t\t\t\tnodes.push(node.declarations[0].init);\n\t\t\t}\n\t\t}\n\t})\n\treturn [names, nodes];\n}", "function getName(){\n console.log('THIS IS MY FUNCTION');\n}", "function add(x) {\n return function(y) {\n return x + y;\n } \n}", "function add(x) {\n return function(y) {\n return x + y;\n };\n }", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "Identifier(__node) {\n if (!current_function) {\n return;\n }\n __node.inFunction = current_function;\n current_function.identifiers.push(__node);\n }", "createEnterChildFunction(functionName) {\n const { childFunction, functionName: realFunctionName } = this.createChildFunction(functionName);\n this.currentFunction = childFunction;\n // Return its full minecraft name\n return realFunctionName;\n }", "function addFunction(func, sig) {\n assert(typeof func !== 'undefined');\n\n return addFunctionWasm(func, sig);\n}", "function addFunction(func, sig) {\n assert(typeof func !== 'undefined');\n\n return addFunctionWasm(func, sig);\n}", "function functionDeclaration31(foo = \"=>\", bar = \"()\") { return \"foo\"; }", "function functionName(){ //()=parenthisis\nconsole.log('I am a Function')\n\n}", "on (event, λ) {\n this.callbacks[event] = λ;\n }", "function g(){return function(){}}", "function fn() {}", "function replaceFunctionWhereNeeded(line, orig, funcname) {\n\tif(line.indexOf(orig) == -1)\n\t\treturn line;\n\tvar outputVal = line.replace(orig, funcname + \"(\");\n\toutputVal += \");\";\n\treturn outputVal;\n}", "processNamedFunction() {\n if (this.tokens.matches1(TokenType._function)) {\n this.tokens.copyToken();\n } else if (this.tokens.matches2(TokenType.name, TokenType._function)) {\n if (!this.tokens.matchesContextual(ContextualKeyword._async)) {\n throw new Error(\"Expected async keyword in function export.\");\n }\n this.tokens.copyToken();\n this.tokens.copyToken();\n }\n if (this.tokens.matches1(TokenType.star)) {\n this.tokens.copyToken();\n }\n if (!this.tokens.matches1(TokenType.name)) {\n throw new Error(\"Expected identifier for exported function name.\");\n }\n const name = this.tokens.identifierName();\n this.tokens.copyToken();\n if (this.tokens.currentToken().isType) {\n this.tokens.removeInitialToken();\n while (this.tokens.currentToken().isType) {\n this.tokens.removeToken();\n }\n }\n this.tokens.copyExpectedToken(TokenType.parenL);\n this.rootTransformer.processBalancedCode();\n this.tokens.copyExpectedToken(TokenType.parenR);\n this.rootTransformer.processPossibleTypeRange();\n this.tokens.copyExpectedToken(TokenType.braceL);\n this.rootTransformer.processBalancedCode();\n this.tokens.copyExpectedToken(TokenType.braceR);\n return name;\n }", "function fun1(){ }", "function fun1(){ }", "static get className() {\n return 'MyLambda';\n }", "function a$o()\n{\n}", "function fun1 ( ) {}" ]
[ "0.66948587", "0.61025375", "0.59935665", "0.59694844", "0.58709174", "0.58472437", "0.58472437", "0.58472437", "0.58358914", "0.58179855", "0.57676876", "0.5713963", "0.5679388", "0.5679388", "0.5672613", "0.5656917", "0.5623293", "0.56213665", "0.5603906", "0.56018776", "0.56010836", "0.5562712", "0.55548763", "0.5548861", "0.55435175", "0.5543472", "0.5531753", "0.5514072", "0.54940903", "0.54789484", "0.5476164", "0.545698", "0.5443704", "0.54369867", "0.542618", "0.54225", "0.5400885", "0.53851986", "0.53789514", "0.53782475", "0.53756785", "0.53738433", "0.53702074", "0.5365381", "0.5365315", "0.5363871", "0.5356615", "0.5356615", "0.5352331", "0.5340446", "0.5319268", "0.5296778", "0.527627", "0.5272902", "0.5271345", "0.5269956", "0.5264521", "0.5262766", "0.5261244", "0.52560395", "0.52493817", "0.52456003", "0.52456003", "0.5243925", "0.5242614", "0.52415085", "0.52394575", "0.52323115", "0.5230266", "0.52301013", "0.52281994", "0.52247804", "0.5219199", "0.5216858", "0.521637", "0.5213436", "0.5212907", "0.52099407", "0.52077055", "0.5207623", "0.5204315", "0.5203647", "0.5201658", "0.5201658", "0.5201658", "0.52014947", "0.5190476", "0.5185617", "0.5185617", "0.5177522", "0.5171054", "0.516805", "0.5159991", "0.5157671", "0.51533234", "0.51532847", "0.51492375", "0.51492375", "0.5140085", "0.51367724", "0.5131338" ]
0.0
-1
Evaluate expression precursor (takes care of let bindings)
function evaluateStep(node, callback) { if (G.continue) { const boundIds = getIdentifiersScopedToNode(G.program, node.id).filter(id => id.value != null); if (boundIds.length > 0) { const binding_names = []; const boundExprs = []; for (var i = 0; i < boundIds.length; i++) { binding_names.push(boundIds[i].id); boundExprs.push(boundIds[i].value); } const bound_expressions = boundExprs.map(i => getNode(G.program, i)); return call(eval_star, bound_expressions, 0, function (binding_vals) { pushEnvironment(binding_names, binding_vals); return call(evaluateBody, node, function (b) { popEnvironment(binding_names); return call(callback, b); }); }); } else { return call(evaluateBody, node, callback); } } else { G.fail(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "evaluate(expr) {\n const result = compile(this.get_('eval.env'), expr).flatMap((f) => f());\n if (fail.match(result)) throw result.get();\n else return result.get();\n }", "operator(ctx, expr) {\n const ast = expr.ast, fn = ctx.functions;\n return _ => interpret(ast, fn, _);\n }", "function parsePrimaryExpression() {\n\t var type, token, expr, node;\n\n\t if (match('(')) {\n\t isBindingElement = false;\n\t return inheritCoverGrammar(parseGroupExpression);\n\t }\n\n\t if (match('[')) {\n\t return inheritCoverGrammar(parseArrayInitializer);\n\t }\n\n\t if (match('{')) {\n\t return inheritCoverGrammar(parseObjectInitializer);\n\t }\n\n\t type = lookahead.type;\n\t node = new Node();\n\n\t if (type === Token.Identifier) {\n\t if (state.sourceType === 'module' && lookahead.value === 'await') {\n\t tolerateUnexpectedToken(lookahead);\n\t }\n\t expr = node.finishIdentifier(lex().value);\n\t } else if (type === Token.StringLiteral || type === Token.NumericLiteral) {\n\t isAssignmentTarget = isBindingElement = false;\n\t if (strict && lookahead.octal) {\n\t tolerateUnexpectedToken(lookahead, Messages.StrictOctalLiteral);\n\t }\n\t expr = node.finishLiteral(lex());\n\t } else if (type === Token.Keyword) {\n\t if (!strict && state.allowYield && matchKeyword('yield')) {\n\t return parseNonComputedProperty();\n\t }\n\t if (!strict && matchKeyword('let')) {\n\t return node.finishIdentifier(lex().value);\n\t }\n\t isAssignmentTarget = isBindingElement = false;\n\t if (matchKeyword('function')) {\n\t return parseFunctionExpression();\n\t }\n\t if (matchKeyword('this')) {\n\t lex();\n\t return node.finishThisExpression();\n\t }\n\t if (matchKeyword('class')) {\n\t return parseClassExpression();\n\t }\n\t throwUnexpectedToken(lex());\n\t } else if (type === Token.BooleanLiteral) {\n\t isAssignmentTarget = isBindingElement = false;\n\t token = lex();\n\t token.value = (token.value === 'true');\n\t expr = node.finishLiteral(token);\n\t } else if (type === Token.NullLiteral) {\n\t isAssignmentTarget = isBindingElement = false;\n\t token = lex();\n\t token.value = null;\n\t expr = node.finishLiteral(token);\n\t } else if (match('/') || match('/=')) {\n\t isAssignmentTarget = isBindingElement = false;\n\t index = startIndex;\n\n\t if (typeof extra.tokens !== 'undefined') {\n\t token = collectRegex();\n\t } else {\n\t token = scanRegExp();\n\t }\n\t lex();\n\t expr = node.finishLiteral(token);\n\t } else if (type === Token.Template) {\n\t expr = parseTemplateLiteral();\n\t } else {\n\t throwUnexpectedToken(lex());\n\t }\n\n\t return expr;\n\t }", "function ExpressionEval() {\n var binops = {\n '||': function (a, b) { return a || b; },\n '&&': function (a, b) { return a && b; },\n '|': function (a, b) { return a | b; },\n '^': function (a, b) { return a ^ b; },\n '&': function (a, b) { return a & b; },\n '==': function (a, b) { return a == b; }, // jshint ignore:line\n '!=': function (a, b) { return a != b; }, // jshint ignore:line\n '===': function (a, b) { return a === b; },\n '!==': function (a, b) { return a !== b; },\n '<': function (a, b) { return a < b; },\n '>': function (a, b) { return a > b; },\n '<=': function (a, b) { return a <= b; },\n '>=': function (a, b) { return a >= b; },\n '<<': function (a, b) { return a << b; },\n '>>': function (a, b) { return a >> b; },\n '>>>': function (a, b) { return a >>> b; },\n '+': function (a, b) { return a + b; },\n '-': function (a, b) { return a - b; },\n '*': function (a, b) { return a * b; },\n '/': function (a, b) { return a / b; },\n '%': function (a, b) { return a % b; }\n };\n var binopsCallback = null;\n\n var unops = {\n '-': function (a) { return -a; },\n '+': function (a) { return a; },\n '~': function (a) { return ~a; },\n '!': function (a) { return !a; },\n };\n var unopsCallback = null;\n\n function evaluateArray(list, context) {\n return list.map((v) => evaluate(v, context));\n }\n\n function evaluateMember(node, context) {\n const object = evaluate(node.object, context);\n if (node.computed) {\n return [object, object[evaluate(node.property, context)]];\n } else {\n return [object, object[node.property.name]];\n }\n }\n\n function evaluateBinop(op, left, right) {\n return binopsCallback ? binopsCallback(op, left, right) : binops[op](left, right);\n }\n\n function evaluateUnop(op, arg) {\n return unopsCallback ? unopsCallback(op, arg) : unops[op](arg);\n }\n\n function evaluate(node, context) {\n\n switch (node.type) {\n\n case 'ArrayExpression':\n return evaluateArray(node.elements, context);\n\n case 'BinaryExpression':\n return evaluateBinop(node.operator, evaluate(node.left, context), evaluate(node.right, context));\n\n case 'CallExpression':\n let caller, fn;\n if (node.callee.type === 'MemberExpression') {\n [caller, fn] = evaluateMember(node.callee, context);\n } else {\n fn = evaluate(node.callee, context);\n }\n if (typeof fn !== 'function') return undefined;\n return fn.apply(caller, evaluateArray(node.arguments, context));\n\n case 'ConditionalExpression':\n return evaluate(node.test, context)\n ? evaluate(node.consequent, context)\n : evaluate(node.alternate, context);\n\n case 'Identifier':\n return context[node.name];\n\n case 'Literal':\n return node.value;\n\n case 'LogicalExpression':\n return evaluateBinop(node.operator, evaluate(node.left, context), evaluate(node.right, context));\n\n case 'MemberExpression':\n return evaluateMember(node, context)[1];\n\n case 'ThisExpression':\n return context;\n\n case 'UnaryExpression':\n return evaluateUnop(node.operator, evaluate(node.argument, context));\n\n default:\n return undefined;\n }\n }\n\n function compile(expression) {\n return evaluate.bind(null, jsep(expression));\n }\n\n function setBinopsCallback(callback) {\n binopsCallback = callback;\n }\n\n function setUnopsCallback(callback) {\n unopsCallback = callback;\n }\n\n function addUnaryOp(op, fun) {\n unops[op] = fun;\n }\n\n function addBinaryOp(op, fun) {\n binops[op] = fun;\n }\n\n this.evaluate = evaluate;\n this.compile = compile;\n this.addUnaryOp = addUnaryOp;\n this.addBinaryOp = addBinaryOp;\n}", "function parsePrimaryExpression() {\n var type, token, expr, node;\n\n if (match('(')) {\n isBindingElement = false;\n return inheritCoverGrammar(parseGroupExpression);\n }\n\n if (match('[')) {\n return inheritCoverGrammar(parseArrayInitializer);\n }\n\n if (match('{')) {\n return inheritCoverGrammar(parseObjectInitializer);\n }\n\n type = lookahead.type;\n node = new Node();\n\n if (type === Token.Identifier) {\n if (state.sourceType === 'module' && lookahead.value === 'await') {\n tolerateUnexpectedToken(lookahead);\n }\n expr = node.finishIdentifier(lex().value);\n } else if (type === Token.StringLiteral || type === Token.NumericLiteral) {\n isAssignmentTarget = isBindingElement = false;\n if (strict && lookahead.octal) {\n tolerateUnexpectedToken(lookahead, Messages.StrictOctalLiteral);\n }\n expr = node.finishLiteral(lex());\n } else if (type === Token.Keyword) {\n if (!strict && state.allowYield && matchKeyword('yield')) {\n return parseNonComputedProperty();\n }\n if (!strict && matchKeyword('let')) {\n return node.finishIdentifier(lex().value);\n }\n isAssignmentTarget = isBindingElement = false;\n if (matchKeyword('function')) {\n return parseFunctionExpression();\n }\n if (matchKeyword('this')) {\n lex();\n return node.finishThisExpression();\n }\n if (matchKeyword('class')) {\n return parseClassExpression();\n }\n throwUnexpectedToken(lex());\n } else if (type === Token.BooleanLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = (token.value === 'true');\n expr = node.finishLiteral(token);\n } else if (type === Token.NullLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = null;\n expr = node.finishLiteral(token);\n } else if (match('/') || match('/=')) {\n isAssignmentTarget = isBindingElement = false;\n index = startIndex;\n\n if (typeof extra.tokens !== 'undefined') {\n token = collectRegex();\n } else {\n token = scanRegExp();\n }\n lex();\n expr = node.finishLiteral(token);\n } else if (type === Token.Template) {\n expr = parseTemplateLiteral();\n } else {\n throwUnexpectedToken(lex());\n }\n\n return expr;\n }", "function eval() {\n let expr = ctx.expr;\n if (expr.value !== undefined) console.warn('Already eval\\'d: ', expr, expr.value);\n if (expr instanceof Array) { // it's a list; apply\n if (expr[0].value === undefined) { // eval the func expr\n // make a shallow copy of expr and wrap the func expr within it\n ctx.expr = [...ctx.expr];\n ctx = ctx.expr[0] = { expr: expr[0], return_to: ctx }; return;\n }\n const func = expr[0].value;\n let arg_vals = expr.slice(1);\n if (!func.dont_eval_args) {\n // eval the args exprs\n if (ctx.arg_i === undefined) ctx.arg_i = 1;\n if (ctx.arg_i < expr.length) {\n const arg = expr[ctx.arg_i], this_ctx = ctx;\n ctx = expr[ctx.arg_i] = { expr: arg, return_to: this_ctx };\n this_ctx.arg_i++; return;\n } else arg_vals = arg_vals.map(a => a.value);\n }\n if (typeof func === 'function') {\n if (!func(current_env(), ...arg_vals)) return;\n } else { // func is closure\n let [inner_env, arg_names, body_ctx] = func;\n if (body_ctx.value !== undefined) ctx.value = body_ctx.value;\n else {\n const body_e = body_ctx; // it's actually an expr, not yet a ctx\n let body_env = bind(inner_env, arg_names, arg_vals);\n // instantiate a fresh body ctx in a copy of the closure\n body_ctx = { expr: body_e, env: body_env, return_to: ctx };\n expr[0].value = [inner_env, arg_names, body_ctx];\n ctx = body_ctx; return; // evaluate the body\n }\n }\n } else if (typeof expr === 'string') ctx.value = lookup();\n else ctx.value = expr;\n const ret = ctx.return_to; delete ctx.return_to;\n ctx = ret;\n}", "function parsePrimaryExpression() {\n var type, token, expr, node;\n\n if (match('(')) {\n isBindingElement = false;\n return inheritCoverGrammar(parseGroupExpression);\n }\n\n if (match('[')) {\n return inheritCoverGrammar(parseArrayInitializer);\n }\n\n if (match('{')) {\n return inheritCoverGrammar(parseObjectInitializer);\n }\n\n type = lookahead.type;\n node = new Node();\n\n if (type === Token.Identifier) {\n if (state.sourceType === 'module' && lookahead.value === 'await') {\n tolerateUnexpectedToken(lookahead);\n }\n expr = node.finishIdentifier(lex().value);\n } else if (type === Token.StringLiteral || type === Token.NumericLiteral) {\n isAssignmentTarget = isBindingElement = false;\n if (strict && lookahead.octal) {\n tolerateUnexpectedToken(lookahead, Messages.StrictOctalLiteral);\n }\n expr = node.finishLiteral(lex());\n } else if (type === Token.Keyword) {\n if (!strict && state.allowYield && matchKeyword('yield')) {\n return parseNonComputedProperty();\n }\n isAssignmentTarget = isBindingElement = false;\n if (matchKeyword('function')) {\n return parseFunctionExpression();\n }\n if (matchKeyword('this')) {\n lex();\n return node.finishThisExpression();\n }\n if (matchKeyword('class')) {\n return parseClassExpression();\n }\n if (!strict && matchKeyword('let')) {\n return node.finishIdentifier(lex().value);\n }\n throwUnexpectedToken(lex());\n } else if (type === Token.BooleanLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = (token.value === 'true');\n expr = node.finishLiteral(token);\n } else if (type === Token.NullLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = null;\n expr = node.finishLiteral(token);\n } else if (match('/') || match('/=')) {\n isAssignmentTarget = isBindingElement = false;\n index = startIndex;\n\n if (typeof extra.tokens !== 'undefined') {\n token = collectRegex();\n } else {\n token = scanRegExp();\n }\n lex();\n expr = node.finishLiteral(token);\n } else if (type === Token.Template) {\n expr = parseTemplateLiteral();\n } else {\n throwUnexpectedToken(lex());\n }\n\n return expr;\n }", "function parsePrimaryExpression() {\n var type, token, expr, node;\n\n if (match('(')) {\n isBindingElement = false;\n return inheritCoverGrammar(parseGroupExpression);\n }\n\n if (match('[')) {\n return inheritCoverGrammar(parseArrayInitializer);\n }\n\n if (match('{')) {\n return inheritCoverGrammar(parseObjectInitializer);\n }\n\n type = lookahead.type;\n node = new Node();\n\n if (type === Token.Identifier) {\n if (state.sourceType === 'module' && lookahead.value === 'await') {\n tolerateUnexpectedToken(lookahead);\n }\n expr = node.finishIdentifier(lex().value);\n } else if (type === Token.StringLiteral || type === Token.NumericLiteral) {\n isAssignmentTarget = isBindingElement = false;\n if (strict && lookahead.octal) {\n tolerateUnexpectedToken(lookahead, Messages.StrictOctalLiteral);\n }\n expr = node.finishLiteral(lex());\n } else if (type === Token.Keyword) {\n if (!strict && state.allowYield && matchKeyword('yield')) {\n return parseNonComputedProperty();\n }\n if (!strict && matchKeyword('let')) {\n return node.finishIdentifier(lex().value);\n }\n isAssignmentTarget = isBindingElement = false;\n if (matchKeyword('function')) {\n return parseFunctionExpression();\n }\n if (matchKeyword('this')) {\n lex();\n return node.finishThisExpression();\n }\n if (matchKeyword('class')) {\n return parseClassExpression();\n }\n throwUnexpectedToken(lex());\n } else if (type === Token.BooleanLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = (token.value === 'true');\n expr = node.finishLiteral(token);\n } else if (type === Token.NullLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = null;\n expr = node.finishLiteral(token);\n } else if (match('/') || match('/=')) {\n isAssignmentTarget = isBindingElement = false;\n index = startIndex;\n\n if (typeof extra.tokens !== 'undefined') {\n token = collectRegex();\n } else {\n token = scanRegExp();\n }\n lex();\n expr = node.finishLiteral(token);\n } else if (type === Token.Template) {\n expr = parseTemplateLiteral();\n } else {\n throwUnexpectedToken(lex());\n }\n\n return expr;\n }", "function parsePrimaryExpression() {\n var type, token, expr, node;\n\n if (match('(')) {\n isBindingElement = false;\n return inheritCoverGrammar(parseGroupExpression);\n }\n\n if (match('[')) {\n return inheritCoverGrammar(parseArrayInitializer);\n }\n\n if (match('{')) {\n return inheritCoverGrammar(parseObjectInitializer);\n }\n\n type = lookahead.type;\n node = new Node();\n\n if (type === Token.Identifier) {\n if (state.sourceType === 'module' && lookahead.value === 'await') {\n tolerateUnexpectedToken(lookahead);\n }\n expr = node.finishIdentifier(lex().value);\n } else if (type === Token.StringLiteral || type === Token.NumericLiteral) {\n isAssignmentTarget = isBindingElement = false;\n if (strict && lookahead.octal) {\n tolerateUnexpectedToken(lookahead, Messages.StrictOctalLiteral);\n }\n expr = node.finishLiteral(lex());\n } else if (type === Token.Keyword) {\n if (!strict && state.allowYield && matchKeyword('yield')) {\n return parseNonComputedProperty();\n }\n if (!strict && matchKeyword('let')) {\n return node.finishIdentifier(lex().value);\n }\n isAssignmentTarget = isBindingElement = false;\n if (matchKeyword('function')) {\n return parseFunctionExpression();\n }\n if (matchKeyword('this')) {\n lex();\n return node.finishThisExpression();\n }\n if (matchKeyword('class')) {\n return parseClassExpression();\n }\n throwUnexpectedToken(lex());\n } else if (type === Token.BooleanLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = (token.value === 'true');\n expr = node.finishLiteral(token);\n } else if (type === Token.NullLiteral) {\n isAssignmentTarget = isBindingElement = false;\n token = lex();\n token.value = null;\n expr = node.finishLiteral(token);\n } else if (match('/') || match('/=')) {\n isAssignmentTarget = isBindingElement = false;\n index = startIndex;\n\n if (typeof extra.tokens !== 'undefined') {\n token = collectRegex();\n } else {\n token = scanRegExp();\n }\n lex();\n expr = node.finishLiteral(token);\n } else if (type === Token.Template) {\n expr = parseTemplateLiteral();\n } else {\n throwUnexpectedToken(lex());\n }\n\n return expr;\n }", "Evaluate() {}", "function evaluate(expr) {\n var stack = [];\n while (true) {\n switch (expr.type) {\n case DATA:\n case PARTIAL_APPLY:\n if (stack.length === 0)\n return;\n var oldexpr = smashIndirects(stack.pop());\n continuation = stack.pop();\n continuation.call(oldexpr, expr);\n expr = smashIndirects(oldexpr);\n break;\n case THUNK:\n if (typeof expr.evaluand === 'undefined')\n throw new Error(\"thunk without evaluand -- infinite loop?\");\n var evaluand = expr.evaluand;\n delete expr.evaluand;\n var continuation = expr.continuation;\n delete expr.continuation;\n stack.push(continuation);\n stack.push(expr);\n expr = evaluand;\n break;\n case INDIRECT:\n if (typeof expr.target === 'undefined')\n throw new Error(\"indirect without target -- infinite loop?\");\n var target = expr.target;\n delete expr.target;\n stack.push(setTarget);\n stack.push(expr);\n expr = target;\n break;\n default:\n throw new Error(\"unknown node type: \" + expr.type);\n }\n }\n}", "function evaluate(expr, env) {\n switch(expr.type) {\n case \"value\":\n return expr.value;\n \n case \"word\":\n if (expr.name in env)\n return env[expr.name];\n else\n throw new ReferenceError(\"Undefined variable: \" + expr.name);\n \n case \"apply\":\n if (expr.operator.type == \"word\" && expr.operator.name in specialForms)\n return specialForms[expr.operator.name](expr.args, env);\n var op = evaluate(expr.operator, env);\n if (typeof op != \"function\")\n throw new TypeError((\"Applying a non-function.\"));\n return op.apply(null, expr.args.map(function(arg) {\n return evaluate(arg, env);\n }));\n }\n}", "function parseExpr(lexer)\n{\n // TODO\n return parseAssign(lexer);\n}", "function primaryExpr(stream, a) {\n var x = stream.trypopliteral();\n if (null == x)\n x = stream.trypopnumber();\n if (null != x) {\n return x;\n }\n var varRef = stream.trypopvarref();\n if (null != varRef) return a.node('VariableReference', varRef);\n var funCall = functionCall(stream, a);\n if (null != funCall) {\n return funCall;\n }\n if (stream.trypop('(')) {\n var e = orExpr(stream, a);\n if (null == e)\n throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,\n 'Position ' + stream.position() +\n ': Expected expression after (.');\n if (null == stream.trypop(')'))\n throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,\n 'Position ' + stream.position() +\n ': Expected ) after expression.');\n return e;\n }\n return null;\n }", "function primaryExpr(stream, a) {\n var x = stream.trypopliteral();\n if (null == x)\n x = stream.trypopnumber();\n if (null != x) {\n return x;\n }\n var varRef = stream.trypopvarref();\n if (null != varRef) return a.node('VariableReference', varRef);\n var funCall = functionCall(stream, a);\n if (null != funCall) {\n return funCall;\n }\n if (stream.trypop('(')) {\n var e = orExpr(stream, a);\n if (null == e)\n throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,\n 'Position ' + stream.position() +\n ': Expected expression after (.');\n if (null == stream.trypop(')'))\n throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,\n 'Position ' + stream.position() +\n ': Expected ) after expression.');\n return e;\n }\n return null;\n }", "parameter(ctx, expr) {\n const ast = expr.ast, fn = ctx.functions;\n return (datum, _) => interpret(ast, fn, _, datum);\n }", "function capture (previousExpr, detection) {\n // extract meaning from the detection\n var capturing = !!detection[CAPTURING_INDEX]\n\n if (!capturing) { return previousExpr } // don't wrap at all, return given expr as-is\n\n return Object(__WEBPACK_IMPORTED_MODULE_0__functional__[\"g\" /* lazyIntersection */])(previousExpr, __WEBPACK_IMPORTED_MODULE_1__lists__[\"g\" /* head */])\n }", "expr() {\n const startToken = this.currentToken;\n\n try {\n return this.binaryProduction(this.term, OperatorsExpr);\n } catch (e) {\n throw new ParserException('Error processing EXPR', startToken, e);\n }\n }", "function t(e,n,r){switch(e.type){case\"VariableDeclaration\":e.declarations.forEach(function(e,n){t(e.init,n,r)});break;case\"BinaryExpression\":case\"LogicalExpression\":e.operator&&i[e.operator]?(e.type=\"CallExpression\",e.callee={type:\"MemberExpression\",computed:!1,object:e.right,property:{type:\"Identifier\",name:i[e.operator]}},t(e.left,n,r),t(e.right,n,r),e.arguments=[e.left]):(t(e.left,n,r),t(e.right,n,r));break;case\"ExpressionStatement\":t(e.expression,n,r);break;case\"CallExpression\":e.arguments.forEach(function(e,n){t(e,n,r)});break;case\"AssignmentExpression\":if(e.operator&&i[e.operator]){var o=e.right;e.right={type:\"BinaryExpression\",operator:e.operator.replace(/=/,\"\").trim(),left:e.left,right:o},e.operator=\"=\",t(e.left,n,r),t(e.right,n,r)}else t(e.right,n,r);break;case\"UnaryExpression\":e.operator&&i[e.operator]?(e.type=\"CallExpression\",e.callee={type:\"MemberExpression\",computed:!1,object:e.argument,property:{type:\"Identifier\",name:\"+\"===e.operator||\"-\"===e.operator?i[\"u\"+e.operator]:i[e.operator]}},t(e.argument,n,r),e.arguments=[]):t(e.argument,n,r);break;case\"UpdateExpression\":e.operator&&i[e.operator]&&(e.type=\"CallExpression\",e.callee={type:\"MemberExpression\",computed:!1,object:e.argument,property:{type:\"Identifier\",name:i[e.operator]}},t(e.argument,n,r),e.arguments=[]);break;//We don't ned to transform following nodes! Phew!\ncase\"Literal\":case\"Identifier\":case\"BlockStatement\":case\"FunctionExpression\":}}", "function execVars(node) {\n let left, right, expr, args;\n if (node.hasOwnProperty('Expression')) {\n return execVars(node.Expression);\n }\n\n if (node.hasOwnProperty('Number')) {\n if (node.Number.indexOf(\"f\") >= 0) {\n return node.Number;\n }\n return parseFloat(node.Number);\n // return parseFloat(node.Number);\n }\n\n if (node.hasOwnProperty('Binary')) {\n node = node.Binary;\n left = execVars(node.left);\n right = execVars(node.right);\n switch (node.operator) {\n case '>':\n return 1;\n case '+':\n return left + right;\n case '-':\n return left - right;\n case '*':\n return left * right;\n case '/':\n return left / right;\n default:\n throw new SyntaxError('Unknown operator ' + node.operator);\n }\n }\n if (node.hasOwnProperty('Unary')) {\n node = node.Unary;\n expr = execVars(node.expression);\n switch (node.operator) {\n case '+':\n return expr;\n case '-':\n return -expr;\n default:\n throw new SyntaxError('Unknown operator ' + node.operator);\n }\n }\n\n if (node.hasOwnProperty('Identifier')) {\n if (context.Constants.hasOwnProperty(node.Identifier)) {\n return context.Constants[node.Identifier];\n }\n if (context.Variables.hasOwnProperty(node.Identifier)) {\n ctxVarsCur.push(node.Identifier);\n return context.Variables[node.Identifier];\n }\n else { //it never execute this\n //console.log(\"context.datarules..\" + JSON.stringify(datarules[node.Identifier]));\n context.Variables[node.Identifier] = util.getRandomByRules(datarules[node.Identifier])\n // context.Variables[node.Identifier] = util.getFromShuffle(node.Identifier);\n //console.log(\"context.Variables..\" + JSON.stringify(context.Variables));\n return context.Variables[node.Identifier];\n\n }\n //throw new SyntaxError('Unknown identifier');\n }\n if (node.hasOwnProperty('Assignment')) {\n right = execVars(node.Assignment.value);\n context.Variables[node.Assignment.name.Identifier] = right;\n return right;\n }\n\n if (node.hasOwnProperty('FunctionCall')) {\n expr = node.FunctionCall;\n if (context.Functions.hasOwnProperty(expr.name)) {\n console.log('node FunctionCall:' + expr.name + \"args.length:\" + expr.args.length)\n args = [];\n for (let i = 0; i < expr.args.length; i += 1) {\n args.push(exec(expr.args[i]));\n }\n return context.Functions[expr.name].apply(null, args);\n }\n throw new SyntaxError('Unknown function ' + expr.name);\n }\n throw new SyntaxError('Unknown syntax node');\n }", "parseExpression() {\n return this.maybeCall(() => {\n return this.maybeBinary(this.parseAtom(), 0);\n });\n }", "function evaluateExp(){\n\tvar a = getTokens();\n\tif(a.length>=3){\n\t\tevaluatePostfix(computeExpression(a));\n\t\tcompletedEvaluation = true;\n\t}\n}", "function parseLeftHandSideExpression() {\n var quasi, expr, property, startToken;\n assert(state.allowIn, 'callee of new expression always allow in keyword.');\n\n startToken = lookahead;\n\n if (matchKeyword('super') && state.inFunctionBody) {\n expr = new Node();\n lex();\n expr = expr.finishSuper();\n if (!match('[') && !match('.')) {\n throwUnexpectedToken(lookahead);\n }\n } else {\n expr = inheritCoverGrammar(matchKeyword('new') ? parseNewExpression : parsePrimaryExpression);\n }\n\n for (;;) {\n if (match('[')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('[', expr, property);\n } else if (match('.')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseNonComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('.', expr, property);\n } else if (lookahead.type === Token.Template && lookahead.head) {\n quasi = parseTemplateLiteral();\n expr = new WrappingNode(startToken).finishTaggedTemplateExpression(expr, quasi);\n } else {\n break;\n }\n }\n return expr;\n }", "function parseLeftHandSideExpression() {\n var quasi, expr, property, startToken;\n assert(state.allowIn, 'callee of new expression always allow in keyword.');\n\n startToken = lookahead;\n\n if (matchKeyword('super') && state.inFunctionBody) {\n expr = new Node();\n lex();\n expr = expr.finishSuper();\n if (!match('[') && !match('.')) {\n throwUnexpectedToken(lookahead);\n }\n } else {\n expr = inheritCoverGrammar(matchKeyword('new') ? parseNewExpression : parsePrimaryExpression);\n }\n\n for (;;) {\n if (match('[')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('[', expr, property);\n } else if (match('.')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseNonComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('.', expr, property);\n } else if (lookahead.type === Token.Template && lookahead.head) {\n quasi = parseTemplateLiteral();\n expr = new WrappingNode(startToken).finishTaggedTemplateExpression(expr, quasi);\n } else {\n break;\n }\n }\n return expr;\n }", "function parseLeftHandSideExpression() {\n var quasi, expr, property, startToken;\n assert(state.allowIn, 'callee of new expression always allow in keyword.');\n\n startToken = lookahead;\n\n if (matchKeyword('super') && state.inFunctionBody) {\n expr = new Node();\n lex();\n expr = expr.finishSuper();\n if (!match('[') && !match('.')) {\n throwUnexpectedToken(lookahead);\n }\n } else {\n expr = inheritCoverGrammar(matchKeyword('new') ? parseNewExpression : parsePrimaryExpression);\n }\n\n for (;;) {\n if (match('[')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('[', expr, property);\n } else if (match('.')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseNonComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('.', expr, property);\n } else if (lookahead.type === Token.Template && lookahead.head) {\n quasi = parseTemplateLiteral();\n expr = new WrappingNode(startToken).finishTaggedTemplateExpression(expr, quasi);\n } else {\n break;\n }\n }\n return expr;\n }", "handler(ctx, expr) {\n const ast = expr.ast, fn = ctx.functions;\n return (_, event) => {\n const datum = event.item && event.item.datum;\n return interpret(ast, fn, _, datum, event);\n };\n }", "function parseExprOp(startTokenIndex, minPrec, noIn) {\n if (\n isTypeScriptEnabled &&\n (TokenType._in & TokenType.PRECEDENCE_MASK) > minPrec &&\n !hasPrecedingLineBreak() &&\n eatContextual(ContextualKeyword._as)\n ) {\n state.tokens[state.tokens.length - 1].type = TokenType._as;\n const oldIsType = pushTypeContext(1);\n tsParseType();\n popTypeContext(oldIsType);\n parseExprOp(startTokenIndex, minPrec, noIn);\n return;\n }\n\n const prec = state.type & TokenType.PRECEDENCE_MASK;\n if (prec > 0 && (!noIn || !match(TokenType._in))) {\n if (prec > minPrec) {\n const op = state.type;\n next();\n if (op === TokenType.nullishCoalescing) {\n state.tokens[state.tokens.length - 1].nullishStartIndex = startTokenIndex;\n }\n\n const rhsStartTokenIndex = state.tokens.length;\n parseMaybeUnary();\n // Extend the right operand of this operator if possible.\n parseExprOp(rhsStartTokenIndex, op & TokenType.IS_RIGHT_ASSOCIATIVE ? prec - 1 : prec, noIn);\n if (op === TokenType.nullishCoalescing) {\n state.tokens[startTokenIndex].numNullishCoalesceStarts++;\n state.tokens[state.tokens.length - 1].numNullishCoalesceEnds++;\n }\n // Continue with any future operator holding this expression as the left operand.\n parseExprOp(startTokenIndex, minPrec, noIn);\n }\n }\n}", "function parseLeftHandSideExpression() {\n var quasi, expr, property, startToken;\n assert(state.allowIn, 'callee of new expression always allow in keyword.');\n\n startToken = lookahead;\n\n if (matchKeyword('super') && state.inFunctionBody) {\n expr = new Node();\n lex();\n expr = expr.finishSuper();\n if (!match('[') && !match('.')) {\n throwUnexpectedToken(lookahead);\n }\n } else {\n expr = inheritCoverGrammar(matchKeyword('new') ? parseNewExpression : parsePrimaryExpression);\n }\n\n for (; ;) {\n if (match('[')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('[', expr, property);\n } else if (match('.')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseNonComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('.', expr, property);\n } else if (lookahead.type === Token.Template && lookahead.head) {\n quasi = parseTemplateLiteral();\n expr = new WrappingNode(startToken).finishTaggedTemplateExpression(expr, quasi);\n } else {\n break;\n }\n }\n return expr;\n }", "$literal (obj, expr) {\r\n return expr\r\n }", "function parseLeftHandSideExpression() {\n\t var quasi, expr, property, startToken;\n\t assert(state.allowIn, 'callee of new expression always allow in keyword.');\n\n\t startToken = lookahead;\n\n\t if (matchKeyword('super') && state.inFunctionBody) {\n\t expr = new Node();\n\t lex();\n\t expr = expr.finishSuper();\n\t if (!match('[') && !match('.')) {\n\t throwUnexpectedToken(lookahead);\n\t }\n\t } else {\n\t expr = inheritCoverGrammar(matchKeyword('new') ? parseNewExpression : parsePrimaryExpression);\n\t }\n\n\t for (;;) {\n\t if (match('[')) {\n\t isBindingElement = false;\n\t isAssignmentTarget = true;\n\t property = parseComputedMember();\n\t expr = new WrappingNode(startToken).finishMemberExpression('[', expr, property);\n\t } else if (match('.')) {\n\t isBindingElement = false;\n\t isAssignmentTarget = true;\n\t property = parseNonComputedMember();\n\t expr = new WrappingNode(startToken).finishMemberExpression('.', expr, property);\n\t } else if (lookahead.type === Token.Template && lookahead.head) {\n\t quasi = parseTemplateLiteral();\n\t expr = new WrappingNode(startToken).finishTaggedTemplateExpression(expr, quasi);\n\t } else {\n\t break;\n\t }\n\t }\n\t return expr;\n\t }", "function evalCompiletimeValue(expr, context) {\n\t let deserializer = (0, _serializer.makeDeserializer)(context.bindings);\n\t let sandbox = {\n\t syntaxQuote: function syntaxQuote(strings) {\n\t for (var _len = arguments.length, values = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n\t values[_key - 1] = arguments[_key];\n\t }\n\n\t let ctx = deserializer.read(_.last(values));\n\t let reader = new _shiftReader2.default(strings, ctx, _.take(values.length - 1, values));\n\t return reader.read();\n\t },\n\t syntaxTemplate: function syntaxTemplate(str) {\n\t for (var _len2 = arguments.length, values = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n\t values[_key2 - 1] = arguments[_key2];\n\t }\n\n\t return (0, _templateProcessor.replaceTemplate)(deserializer.read(str), sanitizeReplacementValues(values));\n\t }\n\t };\n\n\t let sandboxKeys = (0, _immutable.List)(Object.keys(sandbox));\n\t let sandboxVals = sandboxKeys.map(k => sandbox[k]).toArray();\n\n\t let parsed = (0, _shiftReducer2.default)(new _parseReducer2.default(context), new _terms2.default(\"Module\", {\n\t directives: (0, _immutable.List)(),\n\t items: _immutable.List.of(new _terms2.default(\"ExpressionStatement\", {\n\t expression: new _terms2.default(\"FunctionExpression\", {\n\t isGenerator: false,\n\t name: null,\n\t params: new _terms2.default(\"FormalParameters\", {\n\t items: sandboxKeys.map(param => {\n\t return new _terms2.default(\"BindingIdentifier\", {\n\t name: _syntax2.default.from(\"identifier\", param)\n\t });\n\t }),\n\t rest: null\n\t }),\n\t body: new _terms2.default(\"FunctionBody\", {\n\t directives: _immutable.List.of(new _terms2.default('Directive', {\n\t rawValue: 'use strict'\n\t })),\n\t statements: _immutable.List.of(new _terms2.default(\"ReturnStatement\", {\n\t expression: expr\n\t }))\n\t })\n\t })\n\t }))\n\t }));\n\n\t let gen = (0, _shiftCodegen2.default)(parsed, new _shiftCodegen.FormattedCodeGen());\n\t let result = context.transform(gen, {\n\t babelrc: true,\n\t filename: context.filename\n\t });\n\n\t let val = _vm2.default.runInContext(result.code, context.store.getNodeContext());\n\t return val.apply(undefined, sandboxVals);\n\t}", "function evaluate( expr ) {\n\t\tswitch ( expr[0] ) {\n\t\t\tcase \"string\":\n\t\t\tcase \"num\":\n\t\t\t\treturn expr[1];\n\t\t\tcase \"name\":\n\t\t\tcase \"atom\":\n\t\t\t\tswitch ( expr[1] ) {\n\t\t\t\t\tcase \"true\":\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase \"false\":\n\t\t\t\t\t\treturn false;\n\t\t\t\t\tcase \"null\":\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"unary-prefix\":\n\t\t\t\tswitch ( expr[1] ) {\n\t\t\t\t\tcase \"!\":\n\t\t\t\t\t\treturn !evaluate( expr[2] );\n\t\t\t\t\tcase \"typeof\":\n\t\t\t\t\t\treturn typeof evaluate( expr[2] );\n\t\t\t\t\tcase \"~\":\n\t\t\t\t\t\treturn ~evaluate( expr[2] );\n\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\treturn -evaluate( expr[2] );\n\t\t\t\t\tcase \"+\":\n\t\t\t\t\t\treturn +evaluate( expr[2] );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"binary\":\n\t\t\t\tvar left = expr[2], right = expr[3];\n\t\t\t\tswitch ( expr[1] ) {\n\t\t\t\t\tcase \"&&\" :\n\t\t\t\t\t\treturn evaluate( left ) && evaluate( right );\n\t\t\t\t\tcase \"||\" :\n\t\t\t\t\t\treturn evaluate( left ) || evaluate( right );\n\t\t\t\t\tcase \"|\" :\n\t\t\t\t\t\treturn evaluate( left ) | evaluate( right );\n\t\t\t\t\tcase \"&\" :\n\t\t\t\t\t\treturn evaluate( left ) & evaluate( right );\n\t\t\t\t\tcase \"^\" :\n\t\t\t\t\t\treturn evaluate( left ) ^ evaluate( right );\n\t\t\t\t\tcase \"+\" :\n\t\t\t\t\t\treturn evaluate( left ) + evaluate( right );\n\t\t\t\t\tcase \"*\" :\n\t\t\t\t\t\treturn evaluate( left ) * evaluate( right );\n\t\t\t\t\tcase \"/\" :\n\t\t\t\t\t\treturn evaluate( left ) / evaluate( right );\n\t\t\t\t\tcase \"%\" :\n\t\t\t\t\t\treturn evaluate( left ) % evaluate( right );\n\t\t\t\t\tcase \"-\" :\n\t\t\t\t\t\treturn evaluate( left ) - evaluate( right );\n\t\t\t\t\tcase \"<<\" :\n\t\t\t\t\t\treturn evaluate( left ) << evaluate( right );\n\t\t\t\t\tcase \">>\" :\n\t\t\t\t\t\treturn evaluate( left ) >> evaluate( right );\n\t\t\t\t\tcase \">>>\" :\n\t\t\t\t\t\treturn evaluate( left ) >>> evaluate( right );\n\t\t\t\t\tcase \"==\" :\n\t\t\t\t\t\treturn evaluate( left ) == evaluate( right );\n\t\t\t\t\tcase \"===\" :\n\t\t\t\t\t\treturn evaluate( left ) === evaluate( right );\n\t\t\t\t\tcase \"!=\" :\n\t\t\t\t\t\treturn evaluate( left ) != evaluate( right );\n\t\t\t\t\tcase \"!==\" :\n\t\t\t\t\t\treturn evaluate( left ) !== evaluate( right );\n\t\t\t\t\tcase \"<\" :\n\t\t\t\t\t\treturn evaluate( left ) < evaluate( right );\n\t\t\t\t\tcase \"<=\" :\n\t\t\t\t\t\treturn evaluate( left ) <= evaluate( right );\n\t\t\t\t\tcase \">\" :\n\t\t\t\t\t\treturn evaluate( left ) > evaluate( right );\n\t\t\t\t\tcase \">=\" :\n\t\t\t\t\t\treturn evaluate( left ) >= evaluate( right );\n\t\t\t\t\tcase \"in\" :\n\t\t\t\t\t\treturn evaluate( left ) in evaluate( right );\n\t\t\t\t\tcase \"instanceof\" :\n\t\t\t\t\t\treturn evaluate( left ) instanceof evaluate( right );\n\t\t\t\t}\n\t\t}\n\t\tthrow $NOT_CONSTANT;\n\t}", "function eval_with_input(expr, ctx) {\n\n // if not string, just return eval(expr)\n if (typeof expr != 'string') {\n return eval(expr, ctx)\n }\n\n // substitute variable\n let regex = new RegExp('\\\\$(' + REGEX_VAR + ')', 'g');\n expr = expr.replace(regex, 'ctx.$1')\n\n // substitute key\n expr = expr.replace(new RegExp('\\\\@(' + REGEX_VAR + ')', 'g'), 'ctx.$1' + KEY_SUFFIX)\n\n // substitute nested keys\n while (expr.match(new RegExp('\\\\@(ctx\\\\.' + REGEX_VAR + '(' + KEY_SUFFIX + ')+)', 'g'))) {\n expr = expr.replace(new RegExp('\\\\@(ctx\\\\.' + REGEX_VAR + '(' + KEY_SUFFIX + ')+)', 'g'), '$1' + KEY_SUFFIX)\n }\n\n // we have a valid JavaScript expression here, replace MemberExpression with CallExpression\n let ast_tree = esprima.parse(expr).body[0]\n let converted_tree = traverse_with_obj_path(ast_tree)\n let converted_expr = escodegen.generate(converted_tree)\n\n // console.log(`eval(${expr}), ${ctx}`)\n let r = eval(converted_expr, ctx)\n //console.log(`eval(${expr}) => ${r}`)\n return r\n}", "parseExpression() {\n\t\treturn this.maybeCall(() => {\n\t\t\tlet atom = this.parseAtom();\n\t\t\tif (atom) {\n\t\t\t\treturn this.maybeBinary(atom, 0);\n\t\t\t}\n\t\t});\n\t}", "function evaluate(expr) {\n switch (expr[0]) {\n case \"string\":\n case \"num\":\n return expr[1];\n case \"name\":\n case \"atom\":\n switch (expr[1]) {\n case \"true\": return true;\n case \"false\": return false;\n }\n break;\n case \"unary-prefix\":\n switch (expr[1]) {\n case \"!\": return !evaluate(expr[2]);\n case \"typeof\": return typeof evaluate(expr[2]);\n case \"~\": return ~evaluate(expr[2]);\n case \"-\": return -evaluate(expr[2]);\n case \"+\": return +evaluate(expr[2]);\n }\n break;\n case \"binary\":\n var left = expr[2], right = expr[3];\n switch (expr[1]) {\n case \"&&\" : return evaluate(left) && evaluate(right);\n case \"||\" : return evaluate(left) || evaluate(right);\n case \"|\" : return evaluate(left) | evaluate(right);\n case \"&\" : return evaluate(left) & evaluate(right);\n case \"^\" : return evaluate(left) ^ evaluate(right);\n case \"+\" : return evaluate(left) + evaluate(right);\n case \"*\" : return evaluate(left) * evaluate(right);\n case \"/\" : return evaluate(left) / evaluate(right);\n case \"-\" : return evaluate(left) - evaluate(right);\n case \"<<\" : return evaluate(left) << evaluate(right);\n case \">>\" : return evaluate(left) >> evaluate(right);\n case \">>>\" : return evaluate(left) >>> evaluate(right);\n case \"==\" : return evaluate(left) == evaluate(right);\n case \"===\" : return evaluate(left) === evaluate(right);\n case \"!=\" : return evaluate(left) != evaluate(right);\n case \"!==\" : return evaluate(left) !== evaluate(right);\n case \"<\" : return evaluate(left) < evaluate(right);\n case \"<=\" : return evaluate(left) <= evaluate(right);\n case \">\" : return evaluate(left) > evaluate(right);\n case \">=\" : return evaluate(left) >= evaluate(right);\n case \"in\" : return evaluate(left) in evaluate(right);\n case \"instanceof\" : return evaluate(left) instanceof evaluate(right);\n }\n }\n throw $NOT_CONSTANT;\n }", "function parseExpression() {\n var start = index;\n while (!eof()) {\n chr = peek();\n if (isStringStart(chr)) {\n parseString();\n } else if (isExpStart(chr)) {\n parseSpecialExp(chr);\n } else if (chr === pipeChr) {\n next();\n chr = peek();\n if (chr === pipeChr) {\n next();\n } else {\n if (state === startState || state === filterArgState) {\n state = filterState;\n }\n break;\n }\n } else if (chr === spaceChr && (state === filterNameState || state === filterArgState)) {\n eatSpace();\n break;\n } else {\n if (state === filterState) {\n state = filterNameState;\n }\n next();\n }\n }\n\n return str.slice(start + 1, index) || null;\n}", "function parseExpression() {\n var start = index;\n while (!eof()) {\n chr = peek();\n if (isStringStart(chr)) {\n parseString();\n } else if (isExpStart(chr)) {\n parseSpecialExp(chr);\n } else if (chr === pipeChr) {\n next();\n chr = peek();\n if (chr === pipeChr) {\n next();\n } else {\n if (state === startState || state === filterArgState) {\n state = filterState;\n }\n break;\n }\n } else if (chr === spaceChr && (state === filterNameState || state === filterArgState)) {\n eatSpace();\n break;\n } else {\n if (state === filterState) {\n state = filterNameState;\n }\n next();\n }\n }\n\n return str.slice(start + 1, index) || null;\n}", "function parseExpression() {\n var start = index;\n while (!eof()) {\n chr = peek();\n if (isStringStart(chr)) {\n parseString();\n } else if (isExpStart(chr)) {\n parseSpecialExp(chr);\n } else if (chr === pipeChr) {\n next();\n chr = peek();\n if (chr === pipeChr) {\n next();\n } else {\n if (state === startState || state === filterArgState) {\n state = filterState;\n }\n break;\n }\n } else if (chr === spaceChr && (state === filterNameState || state === filterArgState)) {\n eatSpace();\n break;\n } else {\n if (state === filterState) {\n state = filterNameState;\n }\n next();\n }\n }\n\n return str.slice(start + 1, index) || null;\n}", "function parseExpression() {\n var left = parseTerm();\n var op = tokens[position];\n while (op === '+' || op === '-') {\n ++position;\n var right = parseTerm();\n left = new BinaryOperation(left, op, right);\n op = tokens[position];\n }\n return left;\n }", "eresolve_evaluators(in_vars_box, allow_not_found, do_globals, do_locals) {\n let vis_dirty = false\n // go over the variables in the expr and set values to them\n for(let vename in this.variable_evaluators) \n {\n const ve = this.variable_evaluators[vename]\n if (!ve.is_valid())\n continue\n if (do_globals)\n ve.var_box = null //unbind it in the first stage\n let from_in = undefined\n if (do_locals && in_vars_box !== null)\n from_in = in_vars_box.lookup(ve.varname) // VariablesObj\n if (do_globals && from_in === undefined)\n from_in = g_anim.globals_vars_box.lookup(ve.varname) // for frame_num\n \n if (from_in === null) {\n if (ve.var_box !== null)\n continue // it was already bound in the globals call\n // when called from peval it may not be able to resolve since the variables are not there yet\n if (allow_not_found)\n continue\n // when called with do_globals, we don't want to raise an error for something that would resolve for a local, \n // we want to make sure though that local is called so marking as dirty (changing the global variable to make it not visible to here is what made this node \"dirty\")\n // do_locals is just before run so it needs to make this check\n if (do_globals) {\n this.in_param.pset_dirty()\n continue\n }\n throw new ExprErr(\"Unknown variable \" + ve.varname, ve.line_num) // TBD add what line \n }\n ve.var_box = from_in\n vis_dirty = vis_dirty || from_in.vis_dirty()\n }\n return vis_dirty\n }", "function c(e,t,n){switch(e.type){case\"VariableDeclaration\":e.declarations.forEach(function(e,t){c(e.init,t,n)});break;case\"BinaryExpression\":case\"LogicalExpression\":e.operator&&m[e.operator]?(e.type=\"CallExpression\",e.callee={type:\"MemberExpression\",computed:!1,object:e.right,property:{type:\"Identifier\",name:m[e.operator]}},c(e.left,t,n),c(e.right,t,n),e.arguments=[e.left]):(c(e.left,t,n),c(e.right,t,n));break;case\"ExpressionStatement\":c(e.expression,t,n);break;case\"CallExpression\":e.arguments.forEach(function(e,t){c(e,t,n)});break;case\"AssignmentExpression\":if(e.operator&&m[e.operator]){var r=e.right;e.right={type:\"BinaryExpression\",operator:e.operator.replace(/=/,\"\").trim(),left:e.left,right:r},e.operator=\"=\",c(e.left,t,n),c(e.right,t,n)}else c(e.right,t,n);break;case\"UnaryExpression\":e.operator&&m[e.operator]?(e.type=\"CallExpression\",e.callee={type:\"MemberExpression\",computed:!1,object:e.argument,property:{type:\"Identifier\",name:\"+\"===e.operator||\"-\"===e.operator?m[\"u\"+e.operator]:m[e.operator]}},c(e.argument,t,n),e.arguments=[]):c(e.argument,t,n);break;case\"UpdateExpression\":e.operator&&m[e.operator]&&(e.type=\"CallExpression\",e.callee={type:\"MemberExpression\",computed:!1,object:e.argument,property:{type:\"Identifier\",name:m[e.operator]}},c(e.argument,t,n),e.arguments=[]);break;\n//We don't ned to transform following nodes! Phew!\ncase\"Literal\":case\"Identifier\":case\"BlockStatement\":case\"FunctionExpression\":}}", "function expression(rbp, initial) {\n\n// rbp is the right binding power.\n// initial indicates that this is the first expression of a statement.\n\n var left;\n if (nexttoken.id === '(end)') {\n fail(bundle.unexpected_a, token, nexttoken.id);\n }\n advance();\n if (option.safe && typeof predefined[token.value] === 'boolean' &&\n (nexttoken.id !== '(' && nexttoken.id !== '.')) {\n warn(bundle.adsafe, token);\n }\n if (initial) {\n anonname = 'anonymous';\n funct['(verb)'] = token.value;\n }\n if (initial === true && token.fud) {\n left = token.fud();\n } else {\n if (token.nud) {\n left = token.nud();\n } else {\n if (nexttoken.arity === 'number' && token.id === '.') {\n warn(bundle.leading_decimal_a, token,\n nexttoken.value);\n advance();\n return token;\n } else {\n fail(bundle.expected_identifier_a, token, token.id);\n }\n }\n while (rbp < nexttoken.lbp) {\n advance();\n if (token.led) {\n left = token.led(left);\n } else {\n fail(bundle.expected_operator_a, token, token.id);\n }\n }\n }\n return left;\n }", "function getExpression(_, ctx) {\n var k = 'e:' + _.$expr;\n return ctx.fn[k]\n || (ctx.fn[k] = Object(__WEBPACK_IMPORTED_MODULE_3_vega_util__[\"d\" /* accessor */])(Object(__WEBPACK_IMPORTED_MODULE_1__expression__[\"e\" /* parameterExpression */])(_.$expr, ctx), _.$fields, _.$name));\n}", "__eval__(__source__, __boundValues__) { return eval(__source__) }", "function expression(content) {\n var left = term(content);\n // alert(\"exp-left: \" + left);\n var t = getToken(content);\n while (true) {\n if (t == \"+\") {\n left += term(content);\n t = getToken(content);\n }\n else if (t == \"-\") {\n left -= term(content);\n t = getToken(content);\n }\n else {\n putToken(t, content);\n return left;\n }\n }\n}", "function isLeftHandSide(expr) {\n switch (expr.type) {\n case 'AssignmentExpression':\n case 'BinaryExpression':\n case 'ConditionalExpression':\n case 'LogicalExpression':\n case 'SequenceExpression':\n case 'UnaryExpression':\n case 'UpdateExpression':\n return false;\n }\n return true;\n }", "_fetchKnownExpression()\n\t{\n\t\tif (this._isKnownExpression(this.value))\n\t\t{\n\t\t\tthis.value = this.expressions[this.value];\n\t\t}\n\t}", "function parseExpression() {\n\t var start = index;\n\t while (!eof()) {\n\t chr = peek();\n\t if (isStringStart(chr)) {\n\t parseString();\n\t } else if (isExpStart(chr)) {\n\t parseSpecialExp(chr);\n\t } else if (chr === pipeChr) {\n\t next();\n\t chr = peek();\n\t if (chr === pipeChr) {\n\t next();\n\t } else {\n\t if (state === startState || state === filterArgState) {\n\t state = filterState;\n\t }\n\t break;\n\t }\n\t } else if (chr === spaceChr && (state === filterNameState || state === filterArgState)) {\n\t eatSpace();\n\t break;\n\t } else {\n\t if (state === filterState) {\n\t state = filterNameState;\n\t }\n\t next();\n\t }\n\t }\n\t\n\t return str.slice(start + 1, index) || null;\n\t}", "function parseExpression(expr: mixed, context: ParsingContext): ?Expression {\n if (expr === null || typeof expr === 'string' || typeof expr === 'boolean' || typeof expr === 'number') {\n expr = ['literal', expr];\n }\n\n if (Array.isArray(expr)) {\n if (expr.length === 0) {\n return context.error(`Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].`);\n }\n\n const op = expr[0];\n if (typeof op !== 'string') {\n context.error(`Expression name must be a string, but found ${typeof op} instead. If you wanted a literal array, use [\"literal\", [...]].`, 0);\n return null;\n }\n\n const Expr = context.definitions[op];\n if (Expr) {\n let parsed = Expr.parse(expr, context);\n if (!parsed) return null;\n const expected = context.expectedType;\n const actual = parsed.type;\n if (expected) {\n // When we expect a number, string, or boolean but have a\n // Value, wrap it in a refining assertion, and when we expect\n // a Color but have a String or Value, wrap it in \"to-color\"\n // coercion.\n const canAssert = expected.kind === 'String' ||\n expected.kind === 'Number' ||\n expected.kind === 'Boolean';\n\n if (canAssert && actual.kind === 'Value') {\n const Assertion = require('./definitions/assertion');\n parsed = new Assertion(parsed.key, expected, [parsed]);\n } else if (expected.kind === 'Color' && (actual.kind === 'Value' || actual.kind === 'String')) {\n const Coercion = require('./definitions/coercion');\n parsed = new Coercion(parsed.key, expected, [parsed]);\n }\n\n if (context.checkSubtype(expected, parsed.type)) {\n return null;\n }\n }\n\n // If an expression's arguments are all literals, we can evaluate\n // it immediately and replace it with a literal value in the\n // parsed/compiled result.\n if (!(parsed instanceof Literal) && isConstant(parsed)) {\n const cc = new CompilationContext();\n const ec = require('./evaluation_context')();\n const compiled = cc.compileToFunction(parsed, ec);\n try {\n const value = compiled({}, {});\n parsed = new Literal(parsed.key, parsed.type, value);\n } catch (e) {\n context.error(e.message);\n return null;\n }\n }\n\n return parsed;\n }\n\n return context.error(`Unknown expression \"${op}\". If you wanted a literal array, use [\"literal\", [...]].`, 0);\n } else if (typeof expr === 'undefined') {\n return context.error(`'undefined' value invalid. Use null instead.`);\n } else if (typeof expr === 'object') {\n return context.error(`Bare objects invalid. Use [\"literal\", {...}] instead.`);\n } else {\n return context.error(`Expected an array, but found ${typeof expr} instead.`);\n }\n}", "UnaryExpression() {\n let operator;\n switch (this._lookahead.type) {\n case 'ADDITIVE_OPERATOR':\n operator = this._eat('ADDITIVE_OPERATOR').value;\n break;\n case 'LOGICAL_NOT':\n operator = this._eat('LOGICAL_NOT').value;\n break;\n }\n if (operator != null) {\n return {\n type: 'UnaryExpression',\n operator,\n argument: this.UnaryExpression(), // chained expressions: --x\n };\n }\n return this.LeftHandSideExpression();\n }", "function compute () {\n\t // set value\n\t util.forEach(expressions, function(exp, index) {\n\t var v = that.$exec(exp)\n\t if (!v[0]) caches[index] = v[1]\n\t })\n\t // get content\n\t var frags = []\n\t util.forEach(parts, function(item, index) {\n\t frags.push(item)\n\t if (index < expressions.length) {\n\t frags.push(caches[index])\n\t }\n\t })\n\t return Expression.unveil(frags.join(''))\n\t }", "UnaryExpression (node){\n\t\tvar result = null;\n\t // node = Visitor.prototype.UnaryExpression.call(this, node);\n\t\tnode = super.UnaryExpression(node);\n\t if(node.operator === '+'){\n\t \treturn node.argument;\n\t }\n\t \n\t if(node.argument.type === 'Literal' && !(node.argument.type instanceof RegExp)){\n\t \tif(!hasProp(node, 'prefix') || node.prefix){\n\t \t\tresult = eval(node.operator + '(' + node.arguments.raw + \")\");\n\t \t} else {\n\t \t\tresult = eval(\"(\" + node.argument.raw + \")\" + node.operator);\n\t \t}\n\t \treturn {\n\t \t\ttype: 'Literal',\n\t \t\tvalue: result,\n\t \t\tloc: node.loc\n\t \t\t};\n\t }\n\t return node;\n\t}", "function expression(rbp, initial) {\n\n// rbp is the right binding power.\n// initial indicates that this is the first expression of a statement.\n\n var left;\n if (next_token.id === '(end)') {\n token.stop('unexpected_a', next_token.id);\n }\n advance();\n if (initial) {\n anonname = 'anonymous';\n }\n if (initial === true && token.fud) {\n left = token.fud();\n } else {\n if (token.nud) {\n left = token.nud();\n } else {\n if (next_token.id === '(number)' && token.id === '.') {\n token.warn('leading_decimal_a', artifact());\n advance();\n return token;\n }\n token.stop('expected_identifier_a', artifact(token));\n }\n while (rbp < next_token.lbp) {\n advance();\n left = token.led(left);\n }\n }\n if (left && left.assign && !initial) {\n if (!option.ass) {\n left.warn('assignment_expression');\n }\n if (left.id !== '=' && left.first.master) {\n left.first.master.used = true;\n }\n }\n return left;\n }", "function first() {\n index = 0;\n c = expression.charAt(0);\n nesting_level = 0;\n conditional_level = null;\n }", "function first() {\n index = 0;\n c = expression.charAt(0);\n nesting_level = 0;\n conditional_level = null;\n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function capture( previousExpr, detection ) {\n\n // extract meaning from the detection \n var capturing = !!detection[CAPTURING_INDEX];\n\n if (!capturing) \n return previousExpr; // don't wrap at all, return given expr as-is \n \n return lazyIntersection(previousExpr, head);\n \n }", "function expression(args, code, ctx) {\n // wrap code in return statement if expression does not terminate\n if (code[code.length-1] !== ';') {\n code = 'return(' + code + ');';\n }\n var fn = Function.apply(null, args.concat(code));\n return ctx && ctx.functions ? fn.bind(ctx.functions) : fn;\n }", "function expression(rbp, initial) {\n var left, isArray = false, isObject = false, isLetExpr = false;\n \n state.nameStack.push();\n \n // if current expression is a let expression\n if (!initial && state.tokens.next.value === \"let\" && peek(0).value === \"(\") {\n if (!state.inMoz()) {\n warning(\"W118\", state.tokens.next, \"let expressions\");\n }\n isLetExpr = true;\n // create a new block scope we use only for the current expression\n funct[\"(blockscope)\"].stack();\n advance(\"let\");\n advance(\"(\");\n state.tokens.prev.fud();\n advance(\")\");\n }\n \n if (state.tokens.next.id === \"(end)\")\n error(\"E006\", state.tokens.curr);\n \n var isDangerous =\n state.option.asi &&\n state.tokens.prev.line !== startLine(state.tokens.curr) &&\n _.contains([\"]\", \")\"], state.tokens.prev.id) &&\n _.contains([\"[\", \"(\"], state.tokens.curr.id);\n \n if (isDangerous)\n warning(\"W014\", state.tokens.curr, state.tokens.curr.id);\n \n advance();\n \n if (initial) {\n funct[\"(verb)\"] = state.tokens.curr.value;\n state.tokens.curr.beginsStmt = true;\n }\n \n if (initial === true && state.tokens.curr.fud) {\n left = state.tokens.curr.fud();\n } else {\n if (state.tokens.curr.nud) {\n left = state.tokens.curr.nud();\n } else {\n error(\"E030\", state.tokens.curr, state.tokens.curr.id);\n }\n \n // TODO: use pratt mechanics rather than special casing template tokens\n while ((rbp < state.tokens.next.lbp || state.tokens.next.type === \"(template)\") &&\n !isEndOfExpr()) {\n isArray = state.tokens.curr.value === \"Array\";\n isObject = state.tokens.curr.value === \"Object\";\n \n // #527, new Foo.Array(), Foo.Array(), new Foo.Object(), Foo.Object()\n // Line breaks in IfStatement heads exist to satisfy the checkJSHint\n // \"Line too long.\" error.\n if (left && (left.value || (left.first && left.first.value))) {\n // If the left.value is not \"new\", or the left.first.value is a \".\"\n // then safely assume that this is not \"new Array()\" and possibly\n // not \"new Object()\"...\n if (left.value !== \"new\" ||\n (left.first && left.first.value && left.first.value === \".\")) {\n isArray = false;\n // ...In the case of Object, if the left.value and state.tokens.curr.value\n // are not equal, then safely assume that this not \"new Object()\"\n if (left.value !== state.tokens.curr.value) {\n isObject = false;\n }\n }\n }\n \n advance();\n \n if (isArray && state.tokens.curr.id === \"(\" && state.tokens.next.id === \")\") {\n warning(\"W009\", state.tokens.curr);\n }\n \n if (isObject && state.tokens.curr.id === \"(\" && state.tokens.next.id === \")\") {\n warning(\"W010\", state.tokens.curr);\n }\n \n if (left && state.tokens.curr.led) {\n left = state.tokens.curr.led(left);\n } else {\n error(\"E033\", state.tokens.curr, state.tokens.curr.id);\n }\n }\n }\n if (isLetExpr) {\n funct[\"(blockscope)\"].unstack();\n }\n \n state.nameStack.pop();\n \n return left;\n }", "PrimaryExpression() {\n if (this._isLiteral(this._lookahead.type)) {\n return this.Literal();\n }\n switch (this._lookahead.type) {\n case '(':\n return this.ParenthesizedExpression();\n case 'IDENTIFIER':\n return this.Identifier();\n default: return this.LeftHandSideExpression();\n }\n }", "function unprocessed(exp) {\n\t if (exp.type === 'functionCall'\n\t\t&& exp.function === 'http://ns.inria.fr/sparql-template/process') {\n\t\t return exp.args[0];\n\t } else {\n\t\t return exp;\n\t }\n }", "function evaluate(expr) {\n if (expr.constructor === Number) {\n // If this expression is just a number, return that number.\n return expr;\n } else {\n // If this is a binary operator expression, look up the function\n // that evaluates that operator and apply it to the operands.\n var operator_function = ops[expr[1]];\n var a = evaluate(expr[0]);\n var b = evaluate(expr[2]);\n return operator_function(a, b);\n }\n }", "function evalExpression(expression, state) {\n walk.simple(expression, {\n Identifier(node) {\n // console.log(\"Identifier:\", node, state);\n if (state.vars && !_.isUndefined(state.vars[node.name])) {\n // create a new AST node for the new value so we can generate code for it\n const newParsed =\n acorn.parse(\"\\\"\" + state.vars[node.name] + \"\\\"\").body[0].expression;\n _.extend(node, newParsed);\n }\n }\n });\n}", "function evaluatePropertyAccessExpression({ node, environment, evaluate, typescript, statementTraversalStack }) {\n const expressionResult = evaluate.expression(node.expression, environment, statementTraversalStack);\n const match = node.questionDotToken != null && expressionResult == null\n ? // If optional chaining are being used and the expressionResult is undefined or null, assign undefined to 'match'\n undefined\n : expressionResult[node.name.text];\n // If it is a function, wrap it in a lazy call to preserve implicit 'this' bindings. This is to avoid losing the 'this' binding or having to\n // explicitly bind a 'this' value\n if (typeof match === \"function\" && statementTraversalStack.includes(typescript.SyntaxKind.CallExpression)) {\n return {\n [LAZY_CALL_FLAG]: 0 /* CALL */,\n invoke: (overriddenThis, ...args) => overriddenThis != null && !isBindCallApply(match, environment)\n ? // eslint-disable-next-line @typescript-eslint/ban-types\n expressionResult[node.name.text].call(overriddenThis, ...args)\n : expressionResult[node.name.text](...args)\n };\n }\n else\n return match;\n}", "function parseExpression() {\n var expr, startToken = lookahead, expressions;\n\n expr = isolateCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n expressions.push(isolateCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n return expr;\n }", "function expresionValue(node)\n{\n let value;\n if(node.type=='Literal') {\n value= node.value;\n }\n else if(node.type=='Identifier') {\n value= node.name;\n }\n else if(node.type=='UnaryExpression') {\n value=node.operator + node.argument.value;\n }\n else if(node.type=='MemberExpression')\n {\n value= node.object.name+'['+expresrionPars(node.property)+']';\n }\n return value;\n}", "function evaluate(expr) {\n var result = eval(expr).toString();\n if (result.indexOf('.') !== -1) {\n var idx = result.indexOf('.');\n result = result.slice(0, idx) + result.slice(idx, idx + 3);\n }\n return result;\n }", "function evaluateParenthesizedExpression({ node, environment, evaluate, statementTraversalStack }) {\n return evaluate.expression(node.expression, environment, statementTraversalStack);\n}", "function evaluatePrefixUnaryExpression({ node, environment, evaluate, reporting, typescript, statementTraversalStack }) {\n var _a, _b;\n const operandValue = evaluate.expression(node.operand, environment, statementTraversalStack);\n switch (node.operator) {\n case typescript.SyntaxKind.PlusToken: {\n return +operandValue;\n }\n case typescript.SyntaxKind.MinusToken: {\n return -operandValue;\n }\n case typescript.SyntaxKind.TildeToken: {\n return ~operandValue;\n }\n case typescript.SyntaxKind.ExclamationToken: {\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n return !operandValue;\n }\n case typescript.SyntaxKind.PlusPlusToken: {\n // If the Operand isn't an identifier, this will be a SyntaxError\n if (!typescript.isIdentifier(node.operand) && !((_a = typescript.isPrivateIdentifier) === null || _a === void 0 ? void 0 : _a.call(typescript, node.operand))) {\n throw new UnexpectedNodeError({ node: node.operand, typescript });\n }\n // Find the value associated with the identifier within the environment.\n const dict = getRelevantDictFromLexicalEnvironment(environment, node.operand.text);\n const value = ++dict[node.operand.text];\n // Inform reporting hooks if any is given\n if (reporting.reportBindings != null) {\n reporting.reportBindings({ path: node.operand.text, value, node });\n }\n return value;\n }\n case typescript.SyntaxKind.MinusMinusToken: {\n // If the Operand isn't an identifier, this will be a SyntaxError\n if (!typescript.isIdentifier(node.operand) && !((_b = typescript.isPrivateIdentifier) === null || _b === void 0 ? void 0 : _b.call(typescript, node.operand))) {\n throw new UnexpectedNodeError({ node: node.operand, typescript });\n }\n // Find the value associated with the identifier within the environment.\n const dict = getRelevantDictFromLexicalEnvironment(environment, node.operand.text);\n const value = --dict[node.operand.text];\n // Inform reporting hooks if any is given\n if (reporting.reportBindings != null) {\n reporting.reportBindings({ path: node.operand.text, value, node });\n }\n return value;\n }\n }\n}", "function compute () {\n // set value\n util.forEach(expressions, function(exp, index) {\n var v = that.$exec(exp)\n if (!v[0]) caches[index] = v[1]\n })\n // get content\n var str = ''\n util.forEach(parts, function(item, index) {\n str += emptyStr(item)\n if (index < expressions.length) {\n str += emptyStr(caches[index])\n }\n })\n return Expression.unveil(str)\n }", "function unary_expressions(node,vars) {\n // verify that node is a UnaryExpression!\n if ( node.type != \"UnaryExpression\" ) {\n throw \"unary_expressions() called on node that is not a unary expression!\";\n }\n\n // JS heap variable\n if ( node.argument.type == \"Identifier\" ) {\n if ( vars.indexOf(node.argument.name) == -1 ) {\n vars.push( node.argument.name );\n }\n }\n\n // multi-part name\n if ( node.argument.type == \"MemberExpression\" ) {\n var curr_name = handle_nesting(node.argument, \"\");\n if ( vars.indexOf(curr_name) == -1 ) {\n vars.push( curr_name );\n }\n }\n\n // update expression\n if ( node.argument.type == \"UpdateExpression\" ) {\n var update_nest = update_expressions( node.argument, []);\n for (var p = 0; p < update_nest.length; p++ ) {\n if ( vars.indexOf(update_nest[p]) == -1 ) {\n vars.push(update_nest[p]);\n }\n }\n }\n\n // binary or logical expression\n if ( (node.argument.type == \"BinaryExpression\") || (node.argument.type == \"LogicalExpression\") ) {\n return binary_expressions(node.argument, vars);\n }\n\n // conditional expression\n if ( node.argument.type == \"ConditionalExpression\" ) {\n return conditional_expressions(node.argument, vars);\n }\n\n return vars;\n}", "function doExpr(template,env) {\n // We only accept one argument, so extract and evaluate it.\n var arglist = template.targs;\n // No argument is an empty result.\n if (arglist==null) \n return \"\";\n var arg = evalWML(arglist.itext,env).trim();\n \n // Now, treat it as JavaScript code, and use eval to compute\n // the result. Note that this is not sanitized!\n var result;\n try {\n result = eval(arg);\n } catch(e) {\n result = '<span style=\"color:red;\">#expr error: ' + e + '</span>';\n }\n return result;\n}", "LeftHandSideExpression() {\n return this.PrimaryExpression();\n }", "function prepareExpression(str) {\n str = interpretSpecialCommands(str)\n var expression = str\n var scope = {}\n return [expression, scope]\n}", "function parseUnaryExpression() {\n\t var token, expr, startToken;\n\n\t if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {\n\t expr = parsePostfixExpression();\n\t } else if (match('++') || match('--')) {\n\t startToken = lookahead;\n\t token = lex();\n\t expr = inheritCoverGrammar(parseUnaryExpression);\n\t // ECMA-262 11.4.4, 11.4.5\n\t if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {\n\t tolerateError(Messages.StrictLHSPrefix);\n\t }\n\n\t if (!isAssignmentTarget) {\n\t tolerateError(Messages.InvalidLHSInAssignment);\n\t }\n\t expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n\t isAssignmentTarget = isBindingElement = false;\n\t } else if (match('+') || match('-') || match('~') || match('!')) {\n\t startToken = lookahead;\n\t token = lex();\n\t expr = inheritCoverGrammar(parseUnaryExpression);\n\t expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n\t isAssignmentTarget = isBindingElement = false;\n\t } else if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {\n\t startToken = lookahead;\n\t token = lex();\n\t expr = inheritCoverGrammar(parseUnaryExpression);\n\t expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n\t if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {\n\t tolerateError(Messages.StrictDelete);\n\t }\n\t isAssignmentTarget = isBindingElement = false;\n\t } else {\n\t expr = parsePostfixExpression();\n\t }\n\n\t return expr;\n\t }", "P() {\n if (isNumber(this.next)) {\n this.operands.push(new Num(this.next));\n this.consume();\n }\n else if (this.next === '(') {\n this.consume();\n this.operators.push(sentinel);\n this.E();\n this.expect(')');\n this.operators.pop();\n }\n else if (unaryOperators[this.next]) {\n this.pushOperator(unary(this.next));\n this.consume();\n this.P();\n }\n else if (isVariable(this.next)) {\n const name = this.next;\n this.consume();\n\n if (this.next === '(') {\n const fn = new Func(name, 0)\n this.pushOperator(fn);\n this.consume();\n this.operators.push(sentinel);\n this.F(fn);\n this.expect(')');\n this.operators.pop();\n }\n else {\n this.operands.push(new Var(name));\n }\n }\n else error('Invalid syntax at \"' + this.next + '\"');\n }", "function parseUnaryExpression() {\n var token, expr, startToken;\n\n if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {\n expr = parsePostfixExpression();\n } else if (match('++') || match('--')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n // ECMA-262 11.4.4, 11.4.5\n if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {\n tolerateError(Messages.StrictLHSPrefix);\n }\n\n if (!isAssignmentTarget) {\n tolerateError(Messages.InvalidLHSInAssignment);\n }\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (match('+') || match('-') || match('~') || match('!')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {\n tolerateError(Messages.StrictDelete);\n }\n isAssignmentTarget = isBindingElement = false;\n } else {\n expr = parsePostfixExpression();\n }\n\n return expr;\n }", "function expresrionPars(node) {\n if(node.right==null && node.left==null) {\n // if(node.type=='MemberExpression')\n // return memberExpressionValue(node);\n // else\n return expresionValue(node);\n }\n else if(node.right!=null && node.left!=null) {\n return expresrionPars(node.left)+ node.operator + expresrionPars(node.right);\n }\n\n}", "function parseUnaryExpression() {\n var token, expr, startToken;\n\n if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {\n expr = parsePostfixExpression();\n } else if (match('++') || match('--')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n // ECMA-262 11.4.4, 11.4.5\n if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {\n tolerateError(Messages.StrictLHSPrefix);\n }\n\n if (!isAssignmentTarget) {\n tolerateError(Messages.InvalidLHSInAssignment);\n }\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (match('+') || match('-') || match('~') || match('!')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {\n tolerateError(Messages.StrictDelete);\n }\n isAssignmentTarget = isBindingElement = false;\n } else {\n expr = parsePostfixExpression();\n }\n\n return expr;\n }", "function parseUnaryExpression() {\n var token, expr, startToken;\n\n if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {\n expr = parsePostfixExpression();\n } else if (match('++') || match('--')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n // ECMA-262 11.4.4, 11.4.5\n if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {\n tolerateError(Messages.StrictLHSPrefix);\n }\n\n if (!isAssignmentTarget) {\n tolerateError(Messages.InvalidLHSInAssignment);\n }\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (match('+') || match('-') || match('~') || match('!')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {\n tolerateError(Messages.StrictDelete);\n }\n isAssignmentTarget = isBindingElement = false;\n } else {\n expr = parsePostfixExpression();\n }\n\n return expr;\n }", "function parseUnaryExpression() {\n var token, expr, startToken;\n\n if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {\n expr = parsePostfixExpression();\n } else if (match('++') || match('--')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n // ECMA-262 11.4.4, 11.4.5\n if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {\n tolerateError(Messages.StrictLHSPrefix);\n }\n\n if (!isAssignmentTarget) {\n tolerateError(Messages.InvalidLHSInAssignment);\n }\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (match('+') || match('-') || match('~') || match('!')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n isAssignmentTarget = isBindingElement = false;\n } else if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {\n startToken = lookahead;\n token = lex();\n expr = inheritCoverGrammar(parseUnaryExpression);\n expr = new WrappingNode(startToken).finishUnaryExpression(token.value, expr);\n if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {\n tolerateError(Messages.StrictDelete);\n }\n isAssignmentTarget = isBindingElement = false;\n } else {\n expr = parsePostfixExpression();\n }\n\n return expr;\n }", "function expression(args, code, ctx) {\n // wrap code in return statement if expression does not terminate\n if (code[code.length-1] !== ';') {\n code = 'return(' + code + ');';\n }\n var fn = Function.apply(null, args.concat(code));\n return ctx && ctx.functions ? fn.bind(ctx.functions) : fn;\n}", "function expression(args, code, ctx) {\n // wrap code in return statement if expression does not terminate\n if (code[code.length-1] !== ';') {\n code = 'return(' + code + ');';\n }\n var fn = Function.apply(null, args.concat(code));\n return ctx && ctx.functions ? fn.bind(ctx.functions) : fn;\n}", "function evalNodeExpr(param, expr){\n // only evaluate node stuff if there is a context\n if(!param.context)\n return expr;\n // find all valid node expressions\n let nodeRx = RegExp('@([A-Z_a-z]+)', 'g'); // to iterate on all with exec\n let m;\n let next = () => {\n m = nodeRx.exec(expr);\n return m;\n };\n while(next()){\n let name = m[1];\n if(name in param.context){\n expr = expr.substr(0, m.index) + 'this.' + expr.substr(m.index + 1);\n }\n }\n return expr;\n}", "function parseExpression() {\n var expr, startToken = lookahead, expressions;\n\n expr = isolateCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n expressions.push(isolateCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n return expr;\n }", "function parseExpression() {\n var expr, startToken = lookahead, expressions;\n\n expr = isolateCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n expressions.push(isolateCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n return expr;\n }", "function parseExpression() {\n var expr, startToken = lookahead, expressions;\n\n expr = isolateCoverGrammar(parseAssignmentExpression);\n\n if (match(',')) {\n expressions = [expr];\n\n while (startIndex < length) {\n if (!match(',')) {\n break;\n }\n lex();\n expressions.push(isolateCoverGrammar(parseAssignmentExpression));\n }\n\n expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n }\n\n return expr;\n }", "function parseExpression() {\n\t var expr, startToken = lookahead, expressions;\n\n\t expr = isolateCoverGrammar(parseAssignmentExpression);\n\n\t if (match(',')) {\n\t expressions = [expr];\n\n\t while (startIndex < length) {\n\t if (!match(',')) {\n\t break;\n\t }\n\t lex();\n\t expressions.push(isolateCoverGrammar(parseAssignmentExpression));\n\t }\n\n\t expr = new WrappingNode(startToken).finishSequenceExpression(expressions);\n\t }\n\n\t return expr;\n\t }", "function parseLeftHandSideExpressionAllowCall() {\n var quasi, expr, args, property, startToken, previousAllowIn = state.allowIn;\n\n startToken = lookahead;\n state.allowIn = true;\n\n if (matchKeyword('super') && state.inFunctionBody) {\n expr = new Node();\n lex();\n expr = expr.finishSuper();\n if (!match('(') && !match('.') && !match('[')) {\n throwUnexpectedToken(lookahead);\n }\n } else {\n expr = inheritCoverGrammar(matchKeyword('new') ? parseNewExpression : parsePrimaryExpression);\n }\n\n for (;;) {\n if (match('.')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseNonComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('.', expr, property);\n } else if (match('(')) {\n isBindingElement = false;\n isAssignmentTarget = false;\n args = parseArguments();\n expr = new WrappingNode(startToken).finishCallExpression(expr, args);\n } else if (match('[')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('[', expr, property);\n } else if (lookahead.type === Token.Template && lookahead.head) {\n quasi = parseTemplateLiteral();\n expr = new WrappingNode(startToken).finishTaggedTemplateExpression(expr, quasi);\n } else {\n break;\n }\n }\n state.allowIn = previousAllowIn;\n\n return expr;\n }", "function parseLeftHandSideExpressionAllowCall() {\n var quasi, expr, args, property, startToken, previousAllowIn = state.allowIn;\n\n startToken = lookahead;\n state.allowIn = true;\n\n if (matchKeyword('super') && state.inFunctionBody) {\n expr = new Node();\n lex();\n expr = expr.finishSuper();\n if (!match('(') && !match('.') && !match('[')) {\n throwUnexpectedToken(lookahead);\n }\n } else {\n expr = inheritCoverGrammar(matchKeyword('new') ? parseNewExpression : parsePrimaryExpression);\n }\n\n for (;;) {\n if (match('.')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseNonComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('.', expr, property);\n } else if (match('(')) {\n isBindingElement = false;\n isAssignmentTarget = false;\n args = parseArguments();\n expr = new WrappingNode(startToken).finishCallExpression(expr, args);\n } else if (match('[')) {\n isBindingElement = false;\n isAssignmentTarget = true;\n property = parseComputedMember();\n expr = new WrappingNode(startToken).finishMemberExpression('[', expr, property);\n } else if (lookahead.type === Token.Template && lookahead.head) {\n quasi = parseTemplateLiteral();\n expr = new WrappingNode(startToken).finishTaggedTemplateExpression(expr, quasi);\n } else {\n break;\n }\n }\n state.allowIn = previousAllowIn;\n\n return expr;\n }" ]
[ "0.61201286", "0.6109549", "0.58949345", "0.5878548", "0.5868856", "0.5862156", "0.5853399", "0.5846044", "0.5846044", "0.5824166", "0.57821757", "0.5733217", "0.57074213", "0.56627035", "0.56627035", "0.5581029", "0.55312055", "0.5501942", "0.5488177", "0.5457945", "0.54377884", "0.5428595", "0.54109997", "0.54109997", "0.54109997", "0.53846806", "0.5378509", "0.5355826", "0.5351009", "0.5338631", "0.53295237", "0.5310002", "0.5309805", "0.5307118", "0.53044605", "0.5284569", "0.5284569", "0.5284569", "0.52621347", "0.5254082", "0.52412087", "0.5237013", "0.52334225", "0.52313983", "0.5230735", "0.52208495", "0.5204376", "0.5202201", "0.51994216", "0.51869607", "0.51858896", "0.5159053", "0.5155467", "0.51554126", "0.51554126", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5152774", "0.5140973", "0.5135886", "0.5135754", "0.5131509", "0.5125863", "0.5120802", "0.5119077", "0.5117493", "0.5112265", "0.5108067", "0.5107924", "0.5100489", "0.509919", "0.509606", "0.5095658", "0.5090897", "0.5089275", "0.50878364", "0.50686765", "0.50657564", "0.50645214", "0.5055353", "0.5055353", "0.5055353", "0.5051319", "0.5051319", "0.5049129", "0.5044103", "0.5044103", "0.5044103", "0.504226", "0.50289035", "0.50289035" ]
0.0
-1
For evaluating a list of arguments
function eval_star(exps, pos, callback) { if (pos === exps.length) { return call(callback, []); } else { return call(evaluateStep, exps[pos], function (x) { return call(eval_star, exps, pos+=1, function (y) { return call(callback, [x].concat(y)); }); }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sum(list){\n var l = arguments.length;\n var sum = 0;\n for (var i = 0; i < l; i++){\n sum = sum + arguments[i];\n }\n console.log(\"Exploring arguments in JavaScript------\");\n console.log(\"Sum: \", sum);\n}", "function parseArgumentList() {\n var token, expr, args = [];\n\n while (true) {\n expr = parseExpression();\n if (typeof expr === 'undefined') {\n // TODO maybe throw exception?\n break;\n }\n args.push(expr);\n token = lexer.peek();\n if (!matchOp(token, ',')) {\n break;\n }\n lexer.next();\n }\n\n return args;\n }", "function parseArgumentList() {\n let token, expr, args = [];\n\n while (true) {\n expr = parseExpression();\n if (typeof expr === 'undefined') {\n // TODO maybe throw exception?\n break;\n }\n args.push(expr);\n token = lexer.peek();\n if (!matchOp(token, ',')) {\n break;\n }\n lexer.next();\n }\n\n return args;\n }", "function parseArguments() {\n var args = [], expr;\n\n expect('(');\n\n if (!match(')')) {\n while (startIndex < length) {\n if (match('...')) {\n expr = new Node();\n lex();\n expr.finishSpreadElement(isolateCoverGrammar(parseAssignmentExpression));\n } else {\n expr = isolateCoverGrammar(parseAssignmentExpression);\n }\n args.push(expr);\n if (match(')')) {\n break;\n }\n expectCommaSeparator();\n }\n }\n\n expect(')');\n\n return args;\n }", "function argsSum(numbers){\n var valArray = [];\n var sum;\n for (var key in arguments){\n val = arguments[key];\n valArray.push(val);\n sum = valArray.reduce(function(prev, curr){\n return prev + curr;\n });\n }\n return sum;\n}", "function parseArguments() {\n\t var args = [], expr;\n\n\t expect('(');\n\n\t if (!match(')')) {\n\t while (startIndex < length) {\n\t if (match('...')) {\n\t expr = new Node();\n\t lex();\n\t expr.finishSpreadElement(isolateCoverGrammar(parseAssignmentExpression));\n\t } else {\n\t expr = isolateCoverGrammar(parseAssignmentExpression);\n\t }\n\t args.push(expr);\n\t if (match(')')) {\n\t break;\n\t }\n\t expectCommaSeparator();\n\t }\n\t }\n\n\t expect(')');\n\n\t return args;\n\t }", "function sc_any(proc, l1, l2) {\n if (l1 === undefined)\n\treturn false;\n if (l2 === undefined)\n\treturn sc_any1(proc, l1);\n // else\n var nbApplyArgs = arguments.length - 1;\n var applyArgs = new Array(nbApplyArgs);\n while (l1 !== null) {\n\tfor (var i = 0; i < nbApplyArgs; i++) {\n\t applyArgs[i] = arguments[i + 1].car;\n\t arguments[i + 1] = arguments[i + 1].cdr;\n\t}\n\tvar tmp = proc.apply(null, applyArgs);\n\tif (tmp !== false) return tmp;\n }\n return false;\n}", "function test () {\n return arguments\n}", "function checkArgs(req, res) {\n for (rid in req.query) {\n for (id in parmlist) {\n if (id == rid) parmlist[id](req.params[0], req.query[rid]);\n }\n }\n}", "executeFunction(fn, args) { return fn(...args); }", "executeFunction(fn, args) { return fn(...args); }", "function handle_args_list(args_list){\n arguments_list = args_list.split(', ');\n}", "function doEval(args) {\n return eval(args)\n}", "function parseArguments() {\n var args = [], expr;\n\n expect('(');\n\n if (!match(')')) {\n while (startIndex < length) {\n if (match('...')) {\n expr = new Node();\n lex();\n expr.finishSpreadElement(isolateCoverGrammar(parseAssignmentExpression));\n } else {\n expr = isolateCoverGrammar(parseAssignmentExpression);\n }\n args.push(expr);\n if (match(')')) {\n break;\n }\n expectCommaSeparator();\n }\n }\n\n expect(')');\n\n return args;\n }", "function parseArguments() {\n var args = [], expr;\n\n expect('(');\n\n if (!match(')')) {\n while (startIndex < length) {\n if (match('...')) {\n expr = new Node();\n lex();\n expr.finishSpreadElement(isolateCoverGrammar(parseAssignmentExpression));\n } else {\n expr = isolateCoverGrammar(parseAssignmentExpression);\n }\n args.push(expr);\n if (match(')')) {\n break;\n }\n expectCommaSeparator();\n }\n }\n\n expect(')');\n\n return args;\n }", "function parseArguments() {\n var args = [], expr;\n\n expect('(');\n\n if (!match(')')) {\n while (startIndex < length) {\n if (match('...')) {\n expr = new Node();\n lex();\n expr.finishSpreadElement(isolateCoverGrammar(parseAssignmentExpression));\n } else {\n expr = isolateCoverGrammar(parseAssignmentExpression);\n }\n args.push(expr);\n if (match(')')) {\n break;\n }\n expectCommaSeparator();\n }\n }\n\n expect(')');\n\n return args;\n }", "executeFunction(fn, args) {\n return fn(...args);\n }", "executeFunction(fn, args) {\n return fn(...args);\n }", "function sc_every(proc, l1, l2) {\n if (l1 === undefined)\n\treturn true;\n if (l2 === undefined)\n\treturn sc_every1(proc, l1);\n // else\n var nbApplyArgs = arguments.length - 1;\n var applyArgs = new Array(nbApplyArgs);\n var tmp = true;\n while (l1 !== null) {\n\tfor (var i = 0; i < nbApplyArgs; i++) {\n\t applyArgs[i] = arguments[i + 1].car;\n\t arguments[i + 1] = arguments[i + 1].cdr;\n\t}\n\tvar tmp = proc.apply(null, applyArgs);\n\tif (tmp === false) return false;\n }\n return tmp;\n}", "function getRuntimeEvaluateArgs (functionName, args) {\n const fn = TargetFunctions[functionName]\n if (fn == null) throw new Error(`target function not found: ${functionName}`)\n\n // Runtime.evaluate() returns {result: RemoteObject, exceptionDetails }\n return {\n expression: `(${fn.toString()}).apply(null, ${JSON.stringify(args)})`,\n silent: true,\n returnByValue: true,\n contextId: 1\n }\n}", "function executeFunctionArray (functionArray, args) {\n if (typeof(functionArray) !== \"object\" || !functionArray.length) return false;\n\n for (var i = 0; i < functionArray.length; i++) {\n args = functionArray[i](args);\n }\n\n return args;\n }", "function sum1(...args){\r\n return args.reduce((a,b)=>a+b);\r\n}", "function jum_uneval_args(args) {\n for(var i=0;i<args.length;++i) {\n var arg = args[i];\n //jum_debug(\" \" + funcname + ' ' + i + \" \" + arg);\n //NOTE: we have to consider String and string to be equal, so we can't just do\n // uneval of String object, because it puts quotes around it.\n //if (typeof arg == 'object') {\n args[i] = jum_uneval(arg);\n //}\n }\n return args;\n}", "function list() {\n var a = arrayfromargs(arguments);\n myval.push(a);\n\n\n}", "function yourFunctionRunner() {\n\tvar returnValues = [];\n\tfor (var i=0; i<arguments.length; i++) {\n\t\treturnValues.push(arguments[i]());\n\t}\n\treturn returnValues.join('');\n}", "function multiArgs(args, fn) {\n var result = [], i;\n for(i = 0; i < args.length; i++) {\n result.push(args[i]);\n if(fn) fn.call(args, args[i], i);\n }\n return result;\n }", "function multiArgs(args, fn) {\n var result = [], i;\n for(i = 0; i < args.length; i++) {\n result.push(args[i]);\n if(fn) fn.call(args, args[i], i);\n }\n return result;\n }", "function multiArgs(args, fn) {\n var result = [], i;\n for(i = 0; i < args.length; i++) {\n result.push(args[i]);\n if(fn) fn.call(args, args[i], i);\n }\n return result;\n }", "function multiArgs(args, fn) {\n var result = [], i;\n for(i = 0; i < args.length; i++) {\n result.push(args[i]);\n if(fn) fn.call(args, args[i], i);\n }\n return result;\n }", "function multiArgs(args, fn) {\n var result = [], i;\n for(i = 0; i < args.length; i++) {\n result.push(args[i]);\n if(fn) fn.call(args, args[i], i);\n }\n return result;\n }", "function multiArgs(args, fn) {\n var result = [], i;\n for(i = 0; i < args.length; i++) {\n result.push(args[i]);\n if(fn) fn.call(args, args[i], i);\n }\n return result;\n }", "function summation(){\n // console.log(arguments)\n let total=0\n for (const val of arguments) {\n total+=val\n }\n\n return total\n\n // return a+b\n}", "function argsFor() {\n\n}", "apply(args) {\n // ... //\n }", "function sum(...args) { \n console.log(args);\n}", "function doFunction() {\n\tfor (let item of arguments) {\t// this works\n\t\tconsole.log(item);\n\t}\n}", "function argsSum () {\n let args = Array.prototype.arguments.slice(1);\n return args;\n}", "function invoke (a, b, c, d, e) {\n\t\t\t\t/*jshint evil:true*/\n\t\t\t\t/*jshint unused:false*/\n\t\t\t\treturn eval('node.' + method + '(' + argsList + ');');\n\t\t\t}", "funcArguments () {\n let args = [];\n let ch = this.next('(');\n\n while (ch) {\n ch = this.white();\n if (ch === ')') {\n this.next(')');\n return new Arguments(this, args)\n } else {\n args.push(this.expression());\n ch = this.white();\n }\n if (ch !== ')') { this.next(','); }\n }\n\n this.error('Bad arguments to function');\n }", "function solution(){\n var args = Array.prototype.slice.call(arguments);\n\n var out = args.filter(function(v,i){\n return args.indexOf(v) === i;\n });\n\n return args.length !== out.length;\n\n}", "function f(...[a,b,c]){\r\n return a+b+c;\r\n}", "function isFullAge5() {\n console.log(arguments);\n var argsArr = Array.prototype.slice.call(arguments);\n console.log(argsArr);\n\n argsArr.forEach(function (el) {\n console.log((2016 - el) >= 18);\n });\n}", "function sum2() {\n console.log(arguments);\n\n let total = 0;\n for (let value of arguments) total += value;\n return total;\n}", "function and(...args) {\n return args.reduce(andCode);\n}", "function Evaluator() {\n var a = 0;\n for (var i=0; i < arguments.length; i++) {\n a += arguments[i];\n }\n a /= i\n if (a >= 50)\n return true;\n else\n return false;\n}", "function nums(){\n\tconst bindArgs = Array.from(arguments).slice(1);\n\tconst callArgs = Array.from(arguments);\n\tconsole.log(`bindArgs: ${bindArgs}`);\n\tconsole.log(`callArgs: ${callArgs}`);\n}", "function sumirai(){\n return Array.from(arguments)\n .reduce((x, y) => x + y, 0);\n}", "function allOf() {\n return _.reduceRight(\n arguments,\n function (truth, f) { return truth && f(); },\n true\n );\n}", "function add(x, y) {\n console.log(arguments);\n var result = Array.prototype.reduce.call(arguments, function (memo, value) {\n return memo + value;\n })\n console.log(result);\n}", "function sum(...args){\n if (args.length === 1 && Array.isArray(args[0])) //1 array of arrays\n return args[0].reduce( (a,b)=> a+b );\n \n return args.reduce( (a,b)=> a+b );\n }", "function all(func) {\n return function () {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false\n }\n }\n return true\n }\n }", "function and() {\n return _.reduce(arrgs(arguments), function (result, exp) {\n return result && truthy(_.isFunction(exp) ? exp() : exp);\n }, true);\n}", "function add(...args){\n console.log(args.reduce((x, y) => x + y, 0));\n}", "function numbers(...args)\n{\n for(arg of args)\n {\n console.log(arg);\n }\n}", "function sum (...args) {\n\tlet count = 0;\n /*arguments.forEach((item)=>{\t\t//will fail since arguments is not an array\n \tcount = count + item;\n });*/\n\n /*Array.prototype.forEach.call(arguments,(item)=>{\t\t\t//verbose\n \tcount = count + item;\n });*/\n\n args.forEach((item)=>{\t\t\t\t\t// good approach\n \tcount = count + item;\n });\n return count;\n}", "listEvaluations(...args) {\n // { Prefix }, callback\n return Promise.try(() => {\n const [[{ Prefix = '' } = {}], callback] = BaseAPI.spread(...args);\n\n const qs = {};\n if (Prefix !== undefined && Prefix !== '') {\n qs.prefix = Prefix;\n }\n\n return this.request.getAsync({\n qs,\n uri: 'evaluations',\n })\n .bind(this)\n .asCallback(callback);\n });\n }", "function multipleORs(){\n var args =arguments;\n\n if(_.rest(args).indexOf(_.first(args)) !== -1)\n return true;\n else \n return false;\n\n}", "function sumArgs(...args) {\n if (args.length === 1 && Array.isArray(args[0])) {\n items = [...args[0]];\n }\n return args.reduce((a, b) => a + b);\n}", "function args() {\n\n}", "function all(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false;\n }\n }\n return true;\n };\n }", "function all(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false;\n }\n }\n return true;\n };\n }", "function all(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false;\n }\n }\n return true;\n };\n }", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function applyEach(fnList, args) {\n\n if( fnList ) { \n head(fnList).apply(null, args);\n \n applyEach(tail(fnList), args);\n }\n}", "function invoke(objs, funcName, args){\n args = args || [];\n var objsAreFuncs = false;\n switch(typeof funcName){\n case \"object\":\n args = funcName;\n break;\n case \"undefined\":\n objsAreFuncs = true;\n }\n return map(objs, function(o){\n return objsAreFuncs ? o.apply(null, args) : o[funcName].apply(o, args);\n });\n }", "function multipleArgs(...args) {\n let sum = 0;\n args.forEach(value => sum += value);\n return sum;\n}", "function my_map ( func, arg_list)\n{\n\t result = [];\n\t for(var i = 0; i < arg_list.length; i++ )\n\t {\n\n\t\t result.push( func( arg_list[i] ) )\n\t }\n\n\t return result;\n}", "function sumArgs() {\n console.log(arguments);\n // let total = 0\n // Arguments can not use array helper method like reduce, filter etc. but for of loops\n // for (let num of arguments) {\n // total += num\n // }\n\n // Converting arguments to real array so that reduce or another array helper method can be used\n const arrArgs = Array.from(arguments);\n\n // Or using spread operator\n // const arrArgs = [...arguments];\n\n console.log(arrArgs); // [ 5, 7, 9 ]\n\n const total = arrArgs.reduce((a, b) => a + b)\n\n return total;\n}", "function sum(){\n console.log(arguments);\n let total=0;\n // for (let i of arguments) total+=i;\n // return args.reduce((a,b)=>a+b);\n for(let i in Object.keys(arguments)) total+=arguments[i];\n return total;\n}", "function sumAr(a,b){\n\tlet total = 0;\n\tfor(let value of arguments){\n\t\ttotal += value;\n\t}\n\treturn total;\n}", "function doAll(/* args */){\n\t\tvar fn = Array.prototype.shift.call(arguments);\n\t\tif(!arguments.length) {\n\t\t\treturn fn();\n\t\t} else {\n\t\t\tfn();\n\t\t\treturn doAll.apply(null, arguments);\n\t\t}\n\t}", "function applyEach (fnList, args) {\n if (fnList) {\n head(fnList).apply(null, args)\n\n applyEach(tail(fnList), args)\n }\n}", "function sums(...args){\r\n let sum =0;\r\n for(args of args){\r\n sum += args;\r\n }\r\n return sum;\r\n }", "function always() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return true;\n}", "function sum1() {\n let args = Array.from(arguments);\n let sum = 0;\n args.forEach((el)=> {\n sum+=el;\n });\n return sum;\n}", "function sum(){\n var sum=0;\n for(let elem of arguments){\n sum+=elem;\n }\nreturn sum\n}", "function sc_apply(proc) {\n var args = new Array();\n // first part of arguments are not in list-form.\n for (var i = 1; i < arguments.length - 1; i++)\n\targs.push(arguments[i]);\n var l = arguments[arguments.length - 1];\n while (l !== null) {\n\targs.push(l.car);\n\tl = l.cdr;\n }\n return proc.apply(null, args);\n}", "function foo(a) {\n console.log([].includes.call(arguments, 'js'));\n}", "function args() {\n return Array.prototype.slice.call(arguments[0]);\n }", "function visitFunctionCallArguments(traverse, node, path, state) {\n\n utils.catchup(node.callee.range[0], state);\n traverse(node.callee, [node].concat(path), state);\n\n var args = node['arguments'];\n for (var index = 0; index < args.length; ++index) {\n utils.catchup(args[index].range[0], state);\n traverse(args[index], [node].concat(path), state);\n utils.catchup(args[index].range[1], state);\n }\n\n // delete first comma between the last argument and the closing parenthesis\n utils.catchup(node.range[1], state, function(value) {\n return value.replace(\",\", '');\n });\n\n return false;\n}", "function visitFunctionCallArguments(traverse, node, path, state) {\n\n utils.catchup(node.callee.range[0], state);\n traverse(node.callee, [node].concat(path), state);\n\n var args = node['arguments'];\n for (var index = 0; index < args.length; ++index) {\n utils.catchup(args[index].range[0], state);\n traverse(args[index], [node].concat(path), state);\n utils.catchup(args[index].range[1], state);\n }\n\n // delete first comma between the last argument and the closing parenthesis\n utils.catchup(node.range[1], state, function(value) {\n return value.replace(\",\", '');\n });\n\n return false;\n}", "function parseArguments(lexer$$1, isConst) {\n var item = isConst ? parseConstArgument : parseArgument;\n return peek(lexer$$1, lexer.TokenKind.PAREN_L) ? many(lexer$$1, lexer.TokenKind.PAREN_L, item, lexer.TokenKind.PAREN_R) : [];\n}", "function main() {\n return argumentsAsString(...arguments)\n }", "function abc(a,b) {\n var c = 6;\n return arguments[0] + b + c;\n}", "function task2() {\n console.log(arguments);\n for(var i=0; i<arguments.length;i++){\n console.log(arguments[i]);\n }\n}", "function allEqual(args) {\r\n\tvar firstValue = arguments[0],\r\n\t\ti;\r\n\tfor (i = 1; i < arguments.length; i += 1) {\r\n\t\tif (arguments[i] != firstValue) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\treturn true;\r\n}", "function readArguments(fn) {\n\t\t/*\n\t\t\tThe arguments are already in array form - no need\n\t\t\tto use Array.from(arguments) here!\n\t\t*/\n\t\treturn function macroResult(args) {\n\t\t\t\n\t\t\t// Spreaders are spread out now.\n\t\t\targs = args.reduce(function(newArgs, el) {\n\t\t\t\tif (el && el.spreader === true) {\n\t\t\t\t\t/*\n\t\t\t\t\t\tCurrently, the full gamut of spreadable\n\t\t\t\t\t\tJS objects isn't available - only arrays, sets and strings.\n\t\t\t\t\t*/\n\t\t\t\t\tif (Array.isArray(el.value)\n\t\t\t\t\t\t\t|| typeof el.value === \"string\") {\n\t\t\t\t\t\tfor(var i = 0; i < el.value.length; i++) {\n\t\t\t\t\t\t\tnewArgs.push(el.value[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (el.value instanceof Set) {\n\t\t\t\t\t\tel.value.forEach(function(item) {\n\t\t\t\t\t\t\tnewArgs.push(item);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tnewArgs.push(\n\t\t\t\t\t\t\tTwineError.create(\"operation\",\n\t\t\t\t\t\t\t\t\"I can't spread out \"\n\t\t\t\t\t\t\t\t+ OperationUtils.objectName(el.value)\n\t\t\t\t\t\t\t\t+ \", which is not a string or array.\"\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnewArgs.push(el);\n\t\t\t\t}\n\t\t\t\treturn newArgs;\n\t\t\t}, []);\n\t\t\t\n\t\t\t// Do the error check now.\n\t\t\tvar error = TwineError.containsError(args);\n\n\t\t\tif (error) {\n\t\t\t\treturn error;\n\t\t\t}\n\t\t\treturn fn.apply(0, args);\n\t\t};\n\t}", "function getArguments(...args) {\n return args;\n}", "function total1() {\n // return arguments['0'] + arguments['1'];\n return arguments[0] + arguments[1];\n}", "function calculator(operation, ...numbers) {\n return operation(...numbers);\n}" ]
[ "0.633214", "0.6068839", "0.6052271", "0.5942134", "0.5892068", "0.5872663", "0.5854768", "0.5847211", "0.5841843", "0.58242476", "0.58242476", "0.58151037", "0.58042556", "0.5801591", "0.5801591", "0.5801591", "0.57891035", "0.57891035", "0.57837", "0.5780412", "0.57629204", "0.5753124", "0.5750299", "0.5750147", "0.57382256", "0.5728519", "0.5728519", "0.5728519", "0.5728519", "0.5728519", "0.5728519", "0.57249784", "0.57234436", "0.57198864", "0.57064384", "0.5689031", "0.5671641", "0.5657475", "0.5646117", "0.56216115", "0.56183934", "0.5613679", "0.5609398", "0.55928427", "0.5579471", "0.557028", "0.55697364", "0.5565457", "0.5554364", "0.55444634", "0.5527592", "0.55188763", "0.5507013", "0.55026186", "0.5496104", "0.54902834", "0.5486626", "0.5469019", "0.54668486", "0.5464741", "0.5464741", "0.5464741", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.545249", "0.5451853", "0.54512566", "0.5450527", "0.54501027", "0.54420525", "0.54374933", "0.54372406", "0.5432136", "0.54309696", "0.5424945", "0.5424295", "0.54154944", "0.54141456", "0.54075503", "0.540531", "0.5393141", "0.5393141", "0.5380263", "0.5376003", "0.5373986", "0.53730434", "0.53705937", "0.5365699", "0.536377", "0.53543234", "0.5352139" ]
0.0
-1
For evaluating case statement's cases
function evaluate_cases(exps, callback, elseExp, pos) { if (pos === exps.length) { return call(evaluateStep, getNode(G.program, elseExp.expression), callback); } else { const cs = getNode(G.program, exps[pos]); return call(evaluateStep, getNode(G.program, cs.condition), function (condition) { const cond = rootNode(condition).constructor; const t = getBasisEntity(G.program, basis.constructors.True).id; if (cond === t) return call(evaluateStep, getNode(G.program, cs.expression), callback); else return call(evaluate_cases, exps, callback, elseExp, pos+=1); }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function evaluateCaseClause({ node, evaluate, environment, statementTraversalStack }, switchExpression) {\n const expressionResult = evaluate.expression(node.expression, environment, statementTraversalStack);\n // Stop immediately if the expression doesn't match the switch expression\n if (expressionResult !== switchExpression)\n return;\n for (const statement of node.statements) {\n evaluate.statement(statement, environment);\n // Check if a 'break', 'continue', or 'return' statement has been encountered, break the block\n if (pathInLexicalEnvironmentEquals(node, environment, true, BREAK_SYMBOL, CONTINUE_SYMBOL, RETURN_SYMBOL)) {\n break;\n }\n }\n}", "function valueCase() {\n // console.log('valcase', currentToken);\n if (currentToken === 'true') {\n return true;\n } else if (currentToken === 'false') {\n return false;\n } else if (currentToken === 'null') {\n return null;\n } else if (currentToken.match(a.knumber)) {\n return Number(currentToken);\n } else if (currentToken.match(a.string)) {\n return currentToken.match(a.string)[1];\n } else {\n throw('valueCase() error' + currentToken);\n }\n\n resetToken();\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement;\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return delegate.createSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement;\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return delegate.createSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, startToken;\n\n startToken = lookahead;\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n consequent.push(statement);\n }\n\n return delegate.markEnd(delegate.createSwitchCase(test, consequent), startToken);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, startToken;\n\n startToken = lookahead;\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n consequent.push(statement);\n }\n\n return delegate.markEnd(delegate.createSwitchCase(test, consequent), startToken);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, startToken;\n\n startToken = lookahead;\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n consequent.push(statement);\n }\n\n return delegate.markEnd(delegate.createSwitchCase(test, consequent), startToken);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, startToken;\n\n startToken = lookahead;\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n consequent.push(statement);\n }\n\n return delegate.markEnd(delegate.createSwitchCase(test, consequent), startToken);\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement,\n marker = markerCreate();\n \n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n \n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n \n return markerApply(marker, delegate.createSwitchCase(test, consequent));\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n statement;\n\n delegate.markStart();\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n consequent.push(statement);\n }\n\n return delegate.markEnd(delegate.createSwitchCase(test, consequent));\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n statement;\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n consequent.push(statement);\n }\n\n return delegate.createSwitchCase(test, consequent);\n }", "function parseSwitchCase()\n\t\t{\n\t\t\tvar test, consequent = [], statement, node = new Node();\n\t\t\tif (matchKeyword('default'))\n\t\t\t{\n\t\t\t\tlex();\n\t\t\t\ttest = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\texpectKeyword('case');\n\t\t\t\ttest = parseExpression();\n\t\t\t}\n\t\t\texpect(':');\n\t\t\twhile (index < length)\n\t\t\t{\n\t\t\t\tif (match('}') || matchKeyword('default') || matchKeyword('case'))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tstatement = parseStatement();\n\t\t\t\tconsequent.push(statement);\n\t\t\t}\n\t\t\treturn node.finishSwitchCase(test, consequent);\n\t\t}", "function parseSwitchCase() {\n\t var test, consequent = [], statement, node = new Node();\n\n\t if (matchKeyword('default')) {\n\t lex();\n\t test = null;\n\t } else {\n\t expectKeyword('case');\n\t test = parseExpression();\n\t }\n\t expect(':');\n\n\t while (startIndex < length) {\n\t if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n\t break;\n\t }\n\t statement = parseStatementListItem();\n\t consequent.push(statement);\n\t }\n\n\t return node.finishSwitchCase(test, consequent);\n\t }", "function parseSwitchCase() {\n var test,\n consequent = [],\n statement;\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n if (typeof statement === 'undefined') {\n break;\n }\n consequent.push(statement);\n }\n\n return {\n type: Syntax.SwitchCase,\n test: test,\n consequent: consequent\n };\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n statement;\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n if (typeof statement === 'undefined') {\n break;\n }\n consequent.push(statement);\n }\n\n return {\n type: Syntax.SwitchCase,\n test: test,\n consequent: consequent\n };\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n statement;\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n if (typeof statement === 'undefined') {\n break;\n }\n consequent.push(statement);\n }\n\n return {\n type: Syntax.SwitchCase,\n test: test,\n consequent: consequent\n };\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n statement;\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n if (typeof statement === 'undefined') {\n break;\n }\n consequent.push(statement);\n }\n\n return {\n type: Syntax.SwitchCase,\n test: test,\n consequent: consequent\n };\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, node = new Node();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n consequent.push(statement);\n }\n\n return node.finishSwitchCase(test, consequent);\n }", "function evaluateCaseBlock({ node, evaluate, environment, reporting, statementTraversalStack }, switchExpression) {\n // Prepare a lexical environment for the case block\n const localEnvironment = cloneLexicalEnvironment(environment);\n // Define a new binding for a break symbol within the environment\n setInLexicalEnvironment({ env: localEnvironment, path: BREAK_SYMBOL, value: false, newBinding: true, reporting, node });\n for (const clause of node.clauses) {\n evaluate.nodeWithArgument(clause, localEnvironment, switchExpression, statementTraversalStack);\n // Check if a 'break', 'continue', or 'return' statement has been encountered, break the block\n if (pathInLexicalEnvironmentEquals(node, localEnvironment, true, BREAK_SYMBOL, CONTINUE_SYMBOL, RETURN_SYMBOL)) {\n break;\n }\n }\n}", "function parseSwitchCase() {\n var test, consequent = [], statement, node = new Node();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (startIndex < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatementListItem();\n consequent.push(statement);\n }\n\n return node.finishSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, node = new Node();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (startIndex < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatementListItem();\n consequent.push(statement);\n }\n\n return node.finishSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, node = new Node();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (startIndex < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatementListItem();\n consequent.push(statement);\n }\n\n return node.finishSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, node = new Node();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (startIndex < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatementListItem();\n consequent.push(statement);\n }\n\n return node.finishSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, node = new Node();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (startIndex < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatementListItem();\n consequent.push(statement);\n }\n\n return node.finishSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test, consequent = [], statement, node = new Node();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (startIndex < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatementListItem();\n consequent.push(statement);\n }\n\n return node.finishSwitchCase(test, consequent);\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement,\n marker = markerCreate();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return markerApply(marker, delegate.createSwitchCase(test, consequent));\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement,\n marker = markerCreate();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return markerApply(marker, delegate.createSwitchCase(test, consequent));\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement,\n marker = markerCreate();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return markerApply(marker, delegate.createSwitchCase(test, consequent));\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement,\n marker = markerCreate();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return markerApply(marker, delegate.createSwitchCase(test, consequent));\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement,\n marker = markerCreate();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return markerApply(marker, delegate.createSwitchCase(test, consequent));\n }", "function parseSwitchCase() {\n var test,\n consequent = [],\n sourceElement,\n marker = markerCreate();\n\n if (matchKeyword('default')) {\n lex();\n test = null;\n } else {\n expectKeyword('case');\n test = parseExpression();\n }\n expect(':');\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n sourceElement = parseSourceElement();\n if (typeof sourceElement === 'undefined') {\n break;\n }\n consequent.push(sourceElement);\n }\n\n return markerApply(marker, delegate.createSwitchCase(test, consequent));\n }", "function caseInSwitch(val) {\n var answer = \"\";\n // Only change code below this line\n \n switch (val){ //you are switching the value in the first \"case\" or exapample so it will display Alpha\n case 1: \n return (\"alpha\");\n case 2: \n return(\"beta\");\n break;\n case 3: \n return(\"gamma\");\n break;\n case 4: \n return(\"delta\");\n break;\n }\n {return answer;\n }\n caseInSwitch(1);\n }", "function evaluateSwitchStatement({ node, evaluate, environment, statementTraversalStack }) {\n const expressionResult = evaluate.expression(node.expression, environment, statementTraversalStack);\n evaluate.nodeWithArgument(node.caseBlock, environment, expressionResult, statementTraversalStack);\n}", "function isSwitchCaseEnder(stmt) {\n\t return n.BreakStatement.check(stmt)\n\t || n.ContinueStatement.check(stmt)\n\t || n.ReturnStatement.check(stmt)\n\t || n.ThrowStatement.check(stmt);\n\t}", "function isSwitchCaseEnder(stmt) {\n\t return n.BreakStatement.check(stmt)\n\t || n.ContinueStatement.check(stmt)\n\t || n.ReturnStatement.check(stmt)\n\t || n.ThrowStatement.check(stmt);\n\t}", "function caseInSwitch(val) {\n var answer = \"\";\nswitch(val) {\n case 1:\n answer = \"alpha\";\n break;\n case 2:\n answer = \"beta\";\n break;\n case 3: \n answer = \"gamma\";\n break;\n case 4:\n answer = \"delta\";\n break;\n}\n return answer;\n}", "function parseSwitchCase$994() {\n var test$1445, consequent$1446 = [], sourceElement$1447;\n if (matchKeyword$935('default')) {\n lex$925();\n test$1445 = null;\n } else {\n expectKeyword$933('case');\n test$1445 = parseExpression$969();\n }\n expect$932(':');\n while (streamIndex$890 < length$887) {\n if (match$934('}') || matchKeyword$935('default') || matchKeyword$935('case')) {\n break;\n }\n sourceElement$1447 = parseSourceElement$1015();\n if (typeof sourceElement$1447 === 'undefined') {\n break;\n }\n consequent$1446.push(sourceElement$1447);\n }\n return delegate$888.createSwitchCase(test$1445, consequent$1446);\n }", "function showCase(value) {\n switch(value) {\n case 'A':\n console.log('Case A');\n break;\n case 'B':\n console.log('Case B');\n break;\n case undefined:\n console.log('undefined');\n break;\n default:\n console.log('Do not know!');\n }\n}", "function caseInSwitch(val) {\n var answer = \"\";\n // Only change code below this line\n \n switch (val){\ncase 1:\nanswer = \"alpha\";\nbreak;\ncase 2:\nanswer = \"beta\";\nbreak;\ncase 3:\nanswer = \"gamma\";\nbreak;\ncase 4:\nanswer = \"delta\";\nbreak;\n}\n \n // Only change code above this line \n return answer; \n}", "function caseInSwitch(val){\n var answer = \"\";\n switch(val){\n case 1 : \n answer = \"alpha\" ;\n break;\n case 2 : \n answer = \"beta\";\n break;\n case 3 : \n answer = \"gamma\";\n break;\n case 4 : \n answer = \"delta\";\n break;\n }\n\n return answer ;\n}", "function caseInSwitch(val) {\n var answer = \"\";\n // Only change code below this line\n switch(val){\n case 1:\n return \"alpha\";\n break;\n case 2:\n return \"beta\";\n break;\n case 3:\n return \"gamma\";\n break;\n case 4:\n return \"delta\";\n break;\n }\n // Only change code above this line \n return answer; \n}", "function cases(){\n\t\tvar txt;\n\t\tvar name = document.getElementById('getvalue').value;\n\t\tswitch(name) {\n\t\t\tcase \"siva\":\n\t\t\ttxt = \"siva is there\";\n\t\t\tbreak;\n\t\t\tcase \"prakash\":\n\t\t\ttxt = \"prakash is there\";\n\t\t\tbreak;\n\t\t\tcase \"sathya\":\n\t\t\ttxt = \"sathya is there\";\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\ttxt = \"no match\";\n\t\t }\n\t\t document.getElementById('result').innerHTML = txt;\n\t }", "function caseSwitch(val) {\n var answer = \"\";\n\n switch (val) {\n case 1:\n answer = \"alpha \";\n\n break;\n case 2:\n answer = \"beta \";\n\n break;\n case 3:\n answer = \"gamma \";\n\n break;\n case 4:\n answer = \"delta \";\n\n break;\n\n default:\n answer = \"Anything else\";\n break;\n }\n\n return answer;\n}", "function getGrade(scr1, scr2, scr3) {\n let score = (scr1 + scr2 + scr3) / 3;\n switch (true) { //the switch does the evaluating, so put T or F here\n case (score < 60): //the case is WHAT the switch is evaluating\n console.log('F');\n break;\n case (score < 70):\n console.log('D');\n break;\n case (score < 80):\n console.log('C');\n break;\n case (score < 90):\n console.log('B');\n break;\n case (score >= 90):\n console.log('A');\n break;\n }\n}", "function tekCamp() {\n for (x = 1; x <= 100; x++) {\n switch(true) {\n case x / 3 === 0 && x / 5 === 0:\n console.log(\"TEKcamp\");\n break;\n case x / 3 === 0:\n console.log(\"TEK\");\n break;\n case x / 5 === 0:\n console.log(\"camp\");\n break;\n default:\n console.log(x);\n }\n }\n}", "function switchOfStuff(val) {\n var answer = \"\";\nswitch (val) {\n case \"a\":\n answer = \"apple\";\n break;\n case \"b\":\n answer = \"bird\";\n break;\n case \"c\":\n answer = \"cat\";\n break;\n default:\n answer = \"stuff\";\n break;\n}\n return answer;\n}", "function caseInSwitch(val){\n var answer = \"\";\n switch(val){\n case 1:\n answer = \"Alpha\";\n break;\n case 2:\n answer = \"Beta\";\n break;\n case 3:\n answer = \"Gamma\";\n break;\n case 4:\n answer = \"Delta\";\n break;\n }\n return answer;\n}", "function caseInSwitch(val) {\n var answer = \"\";\n switch (val) {\n case 1:\n answer = \"alpha\";\n break;\n case 2:\n answer = \"beta\";\n break;\n case 3:\n answer = \"charlie\";\n break;\n case 4:\n answer = \"delta\";\n break;\n }\n return answer;\n}", "function parseSwitchCase(test) {\n var consequent = [],\n statement;\n\n while (index < length) {\n if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n break;\n }\n statement = parseStatement();\n if (typeof statement === 'undefined') {\n break;\n }\n consequent.push(statement);\n }\n\n return {\n type: Syntax.SwitchCase,\n test: test,\n consequent: consequent\n };\n }", "function _case(input) {\n switch(input) {\n case 'N':\n return 'Nominative';\n case 'G':\n return 'Genitive';\n case 'D':\n return 'Dative';\n case 'A':\n return 'Accusative';\n case 'V':\n return 'Vocative';\n }\n return undefined;\n}", "function caseInSwitch(val) {\n\tvar answer = \"\";\n\tswitch(val) {\n\t\tcase 1:\n\t\t\tanswer = \"alpha\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tanswer = \"beta\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tanswer = \"gamma\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tanswer = \"delta\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tanswer = \"none\";\n\t\t\tbreak;\n\t}\n\treturn answer;\n}", "function Switch(val){\n var answer = \"\";\n \n switch(val){\n \n case 1:\n answer = \"alpha(1)\";\n break;\n\n case 2:\n answer = \"Beta(2)\";\n break;\n \n // Resultat par défaut \n default:\n answer = \"stuff\"\n \n };\n \n return answer\n}", "function switchOfStuff(val) {\n // Initialise variable\n var answer = \"\";\n\n // Switch statement\n switch (val) {\n case \"a\":\n // When `val` is `a`\n answer = \"apple\";\n break;\n case \"b\":\n // When `val` is `b`\n answer = \"bird\";\n break;\n case \"c\":\n // When `val` is `c`\n answer = \"cat\";\n break;\n default:\n // When `val` doesn't match any of the above statements\n answer = \"stuff\";\n break;\n }\n // return updated answer\n return answer;\n}", "function getLetterGrade(grades) {\n switch(true) { \n case (grades > 89) : \n console.log(\"A\"); \n break; \n case (grades > 79): \n console.log(\"B\"); \n break; \n\n case (grades > 69) : \n console.log(\"C\"); \n break; \n\n case (grades > 59): \n console.log(\"D\"); \n break; \n\n default : \n console.log(\"F\"); \n break; \n } \n\n}", "function templateEvaluator(caseData, chargeData) {\r\n // Using the case data, we can, for example\r\n // evaluate if a charge is a conviction.\r\n console.log(\"Is conviction: \", chargeData.isConviction);\r\n\r\n return {\r\n indicator: chargeData.isConviction ? \"elligible\" : \"inelligible\",\r\n message: \"Template evaluation\"\r\n };\r\n}", "function whatTemp(temp){\n switch(true){\n case temp<45:\n console.log('test');\n return\n case temp<55:\n console.log('test1');\n return\n case temp<65:\n console.log('test2');\n return\n case temp<75:\n console.log('test3');\n return\n case temp<85:\n console.log('test4');\n return\n case temp<95:\n console.log('test5');\n return\n }\n }", "function Me(){var e,t,n,r=[];for(n=dt,z(\"default\")?(M(),e=null):(G(\"case\"),e=ge()),Y(\":\");ft>lt&&!(Z(\"}\")||z(\"default\")||z(\"case\"));)t=qe(),r.push(t);return pt.markEnd(pt.createSwitchCase(e,r),n)}", "function test_switches(opt) {\n var test_types = ['symbols', 'strings', 'oddball', 'smi', 'heapnum'];\n\n function test(clause_type) {\n var values = clause_values[clause_type];\n\n test_types.forEach(function(test_type) {\n test_switch(clause_type, test_type, 'all', opt);\n test_switch(clause_type, test_type, 'none', opt);\n\n // Targeting specific clause feedback\n values.forEach(function(value) {\n test_switch(clause_type, test_type, [value], value, opt);\n test_switch(clause_type, test_type, value, value, opt);\n });\n });\n };\n\n test('string');\n test('smi');\n test('mixed');\n}", "function switchOfStuff(val) {\n var answer = \"\";\n // Only change code below this line\nswitch (val){\n case \"a\":\n answer = \"apple\";\n break;\n case \"b\":\n answer = \"bird\";\n break;\n case \"c\":\n answer = \"cat\";\n break;\n default:\n answer = \"stuff\";\n break;\n}\n\n\n\n\n // Only change code above this line\n return answer;\n}", "function caseSwitchStaments(val) {\n\tvar answer = \"\";\n\tswitch (val) {\n\t\tcase 1:\n\t\t\treturn \"alpha\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\treturn \"beta\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\treturn \"gamma\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\treturn \"delta\";\n\t\t\tbreak;\n\t}\n\treturn answer;\n}", "function switchTest() {\n let name = \"5\";\n\n // testing single-line if statement\n (name !== 5) ? console.log(\"then\") : console.log(\"else\");\n\n switch (name) {\n case 5:\n alert(\"not strict equality\");\n break;\n case \"5\":\n alert(\"strict equality\");\n break;\n }\n}", "@computed('__dataDriven', '__useMixin', '__selection', '__sorting', '__expansion')\n computedTemplateCase (__dataDriven, __useMixin, __selection, __sorting, __expansion) {\n if (__dataDriven) {\n return 'case1'\n } else {\n if (__useMixin) {\n if (__expansion && __sorting) {\n return 'case2'\n }\n if (__expansion && !__sorting) {\n return 'case3'\n }\n if (!__expansion && __sorting) {\n return 'case4'\n }\n if (!__expansion && !__sorting) {\n return 'case5'\n }\n } else {\n return 'case6'\n }\n }\n }", "function switchOfStuff(val){\n var answer = \"\";\n switch(val){\n case \"a\":\n answer = \"apple\";\n break;\n case \"b\":\n answer = \"bird\";\n break;\n case \"c\":\n answer = \"cat\";\n break;\n default :\n answer = \"stuff\"\n break;\n }\n return answer;\n}", "function bmi(weight, height) {\n var bmi = weight / (height * height)\n console.log(bmi)\n switch (true) {\n case (bmi < 15):\n console.log(\"Anorexic\");\n break;\n case (bmi < 17.5 && bmi > 15):\n console.log(\"Starvation\");\n break;\n case (bmi > 18.5 && bmi < 25):\n console.log(\"Ideal\");\n break;\n case (bmi > 25 && bmi < 30):\n console.log(\"Overweight\");\n break;\n case (bmi > 30 && bmi < 40):\n console.log(\"Obese\");\n break;\n case (bmi > 40):\n console.log(\"Morbidly\");\n break;\n default:\n console.log(\"bmi not in scope\");\n }\n}", "function switchOfStuff(val) {\n var answer = \"\";\n switch (val) {\n case \"a\":\n answer = \"apple\";\n break;\n case \"b\":\n answer = \"bird\";\n break;\n case \"c\":\n answer = \"cat\";\n break;\n default:\n answer = \"stuff\";\n break;\n }\n return answer;\n}", "function SwitchCase(node, print) {\n if (node.test) {\n this.push(\"case \");\n print.plain(node.test);\n this.push(\":\");\n } else {\n this.push(\"default:\");\n }\n\n if (node.consequent.length) {\n this.newline();\n print.sequence(node.consequent, { indent: true });\n }\n}", "function switchOfStuff(val) {\n var answer = \"\";\n // Only change code below this line\n switch (val) {\n case \"a\":\n return \"apple\";\n break;\n case \"b\":\n return \"bird\";\n break;\n case \"c\":\n return \"cat\";\n break;\n default:\n return \"stuff\";\n break;\n }\n // Only change code above this line \n return answer; \n}", "function SwitchCase(node, print) {\n\t if (node.test) {\n\t this.push(\"case \");\n\t print.plain(node.test);\n\t this.push(\":\");\n\t } else {\n\t this.push(\"default:\");\n\t }\n\n\t if (node.consequent.length) {\n\t this.newline();\n\t print.sequence(node.consequent, { indent: true });\n\t }\n\t}", "function SwitchCase(node, print) {\n\t if (node.test) {\n\t this.push(\"case \");\n\t print.plain(node.test);\n\t this.push(\":\");\n\t } else {\n\t this.push(\"default:\");\n\t }\n\n\t if (node.consequent.length) {\n\t this.newline();\n\t print.sequence(node.consequent, { indent: true });\n\t }\n\t}", "function ss(){\n var a=1\nswitch(a==null?3:a){\n case 1:\n return function(){\n console.log(1111)\n };\n case 3:\n return function(){\n console.log(3333)\n };\n case 4:\n return function(){\n console.log(4444)\n };\n return function(){\n console.log(\"其他\")\n };\n}\n}", "function runtypeCases(cas,r0,r1,r2,r3,r4){\n\tswitch (cas) {\n\t\tcase (\"runtype0\"):\n\t\t\tsetRuntypeNoInput(r1);\n\t\t\tsetRuntypeNoInput(r2);\n\t\t\tsetRuntypeNoInput(r3);\n\t\t\tsetRuntypeNoInput(r4);\n\t\t\tbreak;\n\t\tcase (\"runtype1\"):\n\t\t\tsetRuntypeNoInput(r0);\n\t\t\tsetRuntypeNoInput(r2);\n\t\t\tsetRuntypeNoInput(r3);\n\t\t\tsetRuntypeNoInput(r4);\n\t\t\tbreak;\n\t\tcase (\"runtype2\"):\n\t\t\tsetRuntypeNoInput(r1);\n\t\t\tsetRuntypeNoInput(r0);\n\t\t\tsetRuntypeNoInput(r3);\n\t\t\tsetRuntypeNoInput(r4);\n\t\t\tbreak;\n\t\tcase (\"runtype3\"):\n\t\t\tsetRuntypeNoInput(r1);\n\t\t\tsetRuntypeNoInput(r2);\n\t\t\tsetRuntypeNoInput(r0);\n\t\t\tsetRuntypeNoInput(r4);\t\t\t\n\t\t\tbreak;\n\t\tcase (\"runtype4\"):\n\t\t\tsetRuntypeNoInput(r1);\n\t\t\tsetRuntypeNoInput(r2);\n\t\t\tsetRuntypeNoInput(r3);\n\t\t\tsetRuntypeNoInput(r0);\t\t\t\n\t\t\tbreak;\n\t}\n}", "function switchOfStuff(val){\n var answer = \"\";\n switch (val){\n case \"a\":\n answer = \"Apple\";\n break;\n case \"b\":\n answer = \"Bird\";\n break;\n case \"c\":\n answer = \"Cat\";\n break;\n case \"d\":\n answer = \"Dog\";\n break;\n default:\n answer = \"Stuff\";\n }\n return answer;\n}", "function checkComputerPhase(computerStack) {\n var phaseFunction;\n switch (computer_phase) {\n\n case 1: \n phaseFunction = phase1function(computerStack.cards);\n break; \n case 2:\n phaseFunction = phase2function(computerStack.cards); \n break; \n case 3:\n phaseFunction = phase3function(computerStack.cards);\n break; \n case 4:\n phaseFunction = phase4function(computerStack.cards);\n break; \n case 5:\n phaseFunction = phase5function(computerStack.cards);\n break;\n case 6:\n phaseFunction = phase6function(computerStack.cards);\n break;\n case 7:\n phaseFunction = phase7function(computerStack.cards);\n break;\n case 8:\n phaseFunction = phase8function(computerStack.cards);\n break;\n case 9:\n phaseFunction = phase9function(computerStack.cards);\n break;\n case 10:\n phaseFunction = phase10function(computerStack.cards);\n break;\n }\n\n if (phaseFunction == \"True\") {\n console.log(\"Switch statement is true\");\n return \"True\";\n }\n else {\n return \"False\";\n }\n}", "function choice(variable, target, nullCase, targetCase, notTargetCase) {\n switch (variable) {\n case null:\n return nullCase;\n case target:\n return targetCase;\n default:\n return notTargetCase;\n }\n }", "function switchOfStuff(val) {\n\tvar answer = \"\";\n\tswitch (val) {\n\t\tcase \"a\":\n\t\t\treturn \"apple\";\n\t\t\tbreak;\n\t\tcase \"b\":\n\t\t\treturn \"bird\";\n\t\t\tbreak;\n\t\tcase \"c\":\n\t\t\treturn \"cat\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn \"stuff\";\n\t\t\tbreak;\n\t}\n\treturn answer;\n}", "function foo2(x) {\n switch (x) {\n case 10: return 1;\n case \"10\": return 2;\n case \"10\": return 3;\n }\n}", "function bmi(weight, height) {\n var bmi = weight / (height * height);\n console.log(bmi);\n switch (true) {\n case bmi < 15:\n console.log(\"Anorexic\");\n break;\n case bmi < 17.5 && bmi > 15:\n console.log(\"Starvation\");\n break;\n case bmi > 18.5 && bmi < 25:\n console.log(\"Ideal\");\n break;\n case bmi > 25 && bmi < 30:\n console.log(\"Overweight\");\n break;\n case bmi > 30 && bmi < 40:\n console.log(\"Obese\");\n break;\n case bmi > 40:\n console.log(\"Morbidly\");\n break;\n default:\n console.log(\"bmi not in scope\");\n }\n}", "function t(e){switch(e.type){case V.AssignmentExpression:case V.ArrayExpression:case V.ArrayPattern:case V.BinaryExpression:case V.CallExpression:case V.ConditionalExpression:case V.ClassExpression:case V.ExportBatchSpecifier:case V.ExportSpecifier:case V.FunctionExpression:case V.Identifier:case V.ImportSpecifier:case V.Literal:case V.LogicalExpression:case V.MemberExpression:case V.MethodDefinition:case V.NewExpression:case V.ObjectExpression:case V.ObjectPattern:case V.Property:case V.SequenceExpression:case V.ThisExpression:case V.UnaryExpression:case V.UpdateExpression:case V.YieldExpression:return!0}return!1}", "function app(nCases, input) {\n\n // code here\n \n}", "Evaluate() {}", "function goTeam(param){\n switch (param){ //to create a switch statement you use the keyword switch and then follow it by an input expression\n case \"C9\": // if the case matches the input expression then the code on the next line will execute\n console.log(\"C9 Win!\");\n break; // must follow it with a break or else it will continue to run \n case \"Fnatic\":\n console.log(\"Fnatic Win!\");\n break;\n case \"Invictus Gaming\":\n console.log(\"IG Win!\");\n break;\n case \"G2\":\n console.log(\"G2 Win!\");\n default: // is what is executed if none of the cases match the input expression\n console.log(\"What team is that?\");\n break;\n }\n}", "function switchCase(action, input) {\n switch (action) {\n case \"concert-this\": bandsInTown(input);\n break;\n\n case \"spotify-this-song\": spotifyThisSong(input);\n break;\n\n case \"movie-this\": omdb(input);\n break;\n\n case \"do-what-it-says\": doWhat();\n break;\n }\n}", "function chainToSwitch(val){\n var answer = \"\";\n switch(val){\n case \"bob\" : \n answer = \"Marley\";\n break;\n case 42 : \n answer = \"The Answer\";\n break;\n case 1 : \n answer = \"There is no #1\";\n break;\n case 99 : \n answer = \"Missed me by this much\";\n break;\n case 7 : \n answer = \"Ate Nine\";\n break; \n }\n return answer\n}", "function testElseIf(val) {\n if (val > 10) {\n return \"Greater than 10\";\n }\n\n else if (val < 5) {\n return \"Smaller than 5\";\n }\nelse {\n return \"Between 5 and 10\";\n}\n}", "function switchExample(num) {\n switch (num) {\n case 0:\n console.log(`You entered ${num}`);\n break;\n case 1:\n console.log(`You entered ${num}`);\n case 2:\n console.log(`You entered ${num}`);\n case 3:\n console.log(`You entered ${num}`);\n case 4:\n console.log(`You entered ${num}`);\n default:\n break;\n }\n}", "switch(value, map) {\n let key;\n if (typeof value === 'function') {\n key = value(data)\n } else if (typeof value === 'object') {\n key = data\n map = value\n } else {\n key = value\n }\n if(map[key]) {\n return this.do(map[key])\n } else if (map['default']) {\n return this.do(map['default'])\n } else {\n return this\n }\n }", "function chainToSwitch(val) {\n var answer = \"\";\n\n switch (val) {\n case \"bob\":\n anwser = \"Marley\";\n break;\n case 42:\n answer = \"The Answer\";\n break;\n case 1:\n answer = \"There is no #1\";\n break;\n case 99:\n answer = \"Missed me by this much!\";\n break;\n case 7:\n answer = \"ate nine\";\n break;\n }\n return answer;\n}", "function foo1(x) {\n switch (x) {\n case 10: return 1;\n case 10: return 2;\n case 11: return 3;\n }\n}", "function foo1(x) {\n switch (x) {\n case 10: return 1;\n case 10: return 2;\n case 11: return 3;\n }\n}", "function testElseIf(val) {\n\tif (val > 10) {\n\t\treturn \"Greater Than 10\";\n\t} else if (val < 5) {\n\t\treturn \"Less Than 5\";\n\t} else {\n\t\treturn \"Between 5 and 10\";\n\t}\n}", "function interpret(exp, envt) {\r\n switch (exp.type) {\r\n case FALSE: return false;\r\n case NUM: return exp.val;\r\n case VR: return envt[exp.name];\r\n case PLUS: return interpret(exp.left, envt) + interpret(exp.right, envt);\r\n case TIMES: return interpret(exp.left, envt) * interpret(exp.right, envt);\r\n case LT: return interpret(exp.left, envt) < interpret(exp.right, envt);\r\n case AND: return interpret(exp.left, envt) && interpret(exp.right, envt);\r\n case NOT: return !interpret(exp.left, envt);\r\n case ITE: if (interpret(exp.cond, envt)) { return interpret(exp.tcase, envt); } else { return interpret(exp.fcase, envt); }\r\n }\r\n}", "function testElseIf(val) {\n if (val > 10) {\n return \"Greater than 10\";\n } else if (val < 5) {\n return \"Smaller than 5\";\n } else {\n return \"Between 5 and 10\";\n }\n}", "function ec(){\n var n;\n var op=prompt(\"seclect 1-9\",\"1\");\n switch(op){\n case \"1\":\n \n n= \"Economy<br>1)India opposes binding commitments for eoss-border goods clearance<br>2)NITI Aayog beginasier crs groundwork on identifying more PSUs for sale<br>3)The story of Harshad Mehta and five ways it changed Dalal Street \";\n break;\n \n case \"2\":\n n=\"Environment<br>1) 500 volunteers fighting fire on Africa's tallest mountain<br> 2) Scientists return from Arctic with wealth of climate data\";\n break;\n \n case \"3\":\n n=\"Political<br>1)No place for arrogance, breaking of promises in a ruler's life: Sonia Gandhi's Dussehra message<br>2) COVID-19: Recovery rate touches 90%; only 8.5% of total caseload active in India\";\n break;\n \n case \"4\":\n n=\"Industry<br> 1)JK Cement looks to improve H2 growth numbers on higher demand, capacity <br>2)Hitachi ABB Power Grids India wins Rs 100-cr order from HPCL Rajasthan Refinery\";\n break;\n \n case \"5\":\n n=\"Science & Technology<br>1)Cisco looks to make hay as data bill may bring in deals from government, banks<br> 2)India to allow foreign companies too to make and launch satellites\";\n break;\n \n case \"6\":\n n=\"flimyfocus<br> 1) #UdtaPunjab: Hrithik feels the movie shows predicament Indian films face <br>2)Akshay Kumar admits there is a drug problem in Bollywood; says entire industry cannot be blamed for deeds of a few\";\n break;\n \n case \"7\":\n n=\"Sports<br> 1)Virat Kohli becomes third Indian to hit 200 sixes in IPL<br>2) Australia batswoman Grace Harris takes inspiration from Dhoni, wants to be a finisher like him\";\n break;\n \n case \"8\":\n n=\"International<br> 1)View: New visas limits would be a self-inflicted wound for the US<br>2) Thailand protestors vow fresh protests after PM refuses to resign\";\n break;\n \n case \"9\":\n n=\"End the search\";\n break;\n \n default :\n n=\"Invalid\";\n }\n document.getElementById(\"demo1\").innerHTML = n;\n}", "function chainToSwitch(val) {\n var answer = \"\";\n // Only change code below this line\n switch(val){ \n case \"bob\": \n return \"Marley\";\n break;\n case 42:\n return \"The Answer\";\n break;\n case 1:\n return \"There is no #1\";\n break;\n case 99: \n return \"Missed me by this much!\";\n break;\n case 7:\n return \"Ate Nine\";\n break;\n default:\n return \"\";\n break;\n }\n // Only change code above this line \n return answer; \n}", "function checkResult() {\n let op1 = parseInt(document.getElementById('operand_1').textContent);\n let op2 = parseInt(document.getElementById('operand_2').textContent);\n let targetNum = parseInt(document.getElementById('target_result').textContent);\n\n let result = 0;\n\n switch (gblS.operator) {\n case '+':\n result = op1 + op2;\n break;\n case '−':\n result = op1 - op2;\n break;\n case '×':\n result = op1 * op2;\n break;\n case '÷':\n result = op1 / op2;\n break;\n default:\n console.log('checkResult()', 'switch operator check failed');\n }\n\n if (result === targetNum) {\n console.log(true);\n gblS.operand1.textContent = '';\n gblS.operand2.textContent = '';\n return true;\n } else {\n console.log(false);\n return false;\n }\n}", "function getGrade(score1, score2, score3) {\n let average = (score1 + score2 + score3) / 3;\n switch (true) {\n case average < 60:\n console.log(\"F\");\n break;\n case average < 70:\n console.log(\"D\");\n break;\n case average < 80:\n console.log(\"C\");\n break;\n case average < 90:\n console.log(\"B\");\n break;\n default:\n console.log(\"A\");\n break;\n }\n}", "function diffResultSwitchCase(n) {\n if (n === 1 || n === 2 || n === 3 || n === 4) {\n switch (n) {\n case 1:\n return n * 2 / '2';\n case 2:\n return n - n / 0;\n case 3:\n return 0 * Infinity;\n }\n } else {\n return 'wrong input'\n }\n}", "function interpret(exp, envt) {\r\n switch (exp.type) {\r\n case FALSE: return false;\r\n case NUM: return exp.val;\r\n case VR: return envt[exp.name];\r\n case PLUS: return interpret(exp.left, envt) + interpret(exp.right, envt);\r\n case TIMES: return interpret(exp.left, envt) * interpret(exp.right, envt);\r\n case LT: return interpret(exp.left, envt) < interpret(exp.right, envt);\r\n case AND: return interpret(exp.left, envt) && interpret(exp.right, envt);\r\n case NOT: return !interpret(exp.left, envt);\r\n case ITE: if (interpret(exp.cond, envt)) { return interpret(exp.tcase, envt); } else { return interpret(exp.fcase, envt); }\r\n }\r\n}", "function Evaluate_Assertion({ subtype, Disjunction }) {\n switch (subtype) {\n case '^':\n // 1. Return a new Matcher with parameters (x, c) that captures nothing and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let e be x's endIndex.\n const e = x.endIndex;\n // d. If e is zero, or if Multiline is true and the character Input[e - 1] is one of LineTerminator, then\n if (e === 0 || (Multiline && isLineTerminator(String.fromCodePoint(Input[e - 1])))) {\n // i. Call c(x) and return its result.\n return c(x);\n }\n // e. Return failure.\n return 'failure';\n };\n case '$':\n // 1. Return a new Matcher with parameters (x, c) that captures nothing and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let e be x's endIndex.\n const e = x.endIndex;\n // d. If e is equal to InputLength, or if Multiline is true and the character Input[e] is one of LineTerminator, then\n if (e === InputLength || (Multiline && isLineTerminator(String.fromCodePoint(Input[e])))) {\n // i. Call c(x) and return its result.\n return c(x);\n }\n // e. Return failure.\n return 'failure';\n };\n case 'b':\n // 1. Return a new Matcher with parameters (x, c) that captures nothing and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let e be x's endIndex.\n const e = x.endIndex;\n // d. Call IsWordChar(e - 1) and let a be the Boolean result.\n const a = IsWordChar(e - 1);\n // e. Call IsWordChar(e) and let b be the Boolean result.\n const b = IsWordChar(e);\n // f. If a is true and b is false, or if a is false and b is true, then\n if ((a && !b) || (!a && b)) {\n // i. Call c(x) and return its result.\n return c(x);\n }\n // g. Return failure.\n return 'failure';\n };\n case 'B':\n // 1. Return a new Matcher with parameters (x, c) that captures nothing and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let e be x's endIndex.\n const e = x.endIndex;\n // d. Call IsWordChar(e - 1) and let a be the Boolean result.\n const a = IsWordChar(e - 1);\n // e. Call IsWordChar(e) and let b be the Boolean result.\n const b = IsWordChar(e);\n // f. If a is true and b is true, or if a is false and b is false, then\n if ((a && b) || (!a && !b)) {\n // i. Call c(x) and return its result.\n return c(x);\n }\n // g. Return failure.\n return 'failure';\n };\n case '?=': {\n // 1. Evaluate Disjunction with +1 as its direction argument to obtain a Matcher m.\n const m = Evaluate(Disjunction, +1);\n // 2. Return a new Matcher with parameters (x, c) that captures m and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let d be a new Continuation with parameters (y) that captures nothing and performs the following steps when called:\n const d = (y) => {\n // i. Assert: y is a State.\n Assert(y instanceof State);\n // ii. Return y.\n return y;\n };\n // d. Call m(x, d) and let r be its result.\n const r = m(x, d);\n // e. If r is failure, return failure.\n if (r === 'failure') {\n return 'failure';\n }\n // f. Let y be r's State.\n const y = r;\n // g. Let cap be y's captures List.\n const cap = y.captures;\n // h. Let xe be x's endIndex.\n const xe = x.endIndex;\n // i. Let z be the State (xe, cap).\n const z = new State(xe, cap);\n // j. Call c(z) and return its result.\n return c(z);\n };\n }\n case '?!': {\n // 1. Evaluate Disjunction with +1 as its direction argument to obtain a Matcher m.\n const m = Evaluate(Disjunction, +1);\n // 2. Return a new Matcher with parameters (x, c) that captures m and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let d be a new Continuation with parameters (y) that captures nothing and performs the following steps when called:\n const d = (y) => {\n // i. Assert: y is a State.\n Assert(y instanceof State);\n // ii. Return y.\n return y;\n };\n // d. Call m(x, d) and let r be its result.\n const r = m(x, d);\n // e. If r is not failure, return failure.\n if (r !== 'failure') {\n return 'failure';\n }\n // f. Call c(x) and return its result.\n return c(x);\n };\n }\n case '?<=': {\n // 1. Evaluate Disjunction with -1 as its direction argument to obtain a Matcher m.\n const m = Evaluate(Disjunction, -1);\n // 2. Return a new Matcher with parameters (x, c) that captures m and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let d be a new Continuation with parameters (y) that captures nothing and performs the following steps when called:\n const d = (y) => {\n // i. Assert: y is a State.\n Assert(y instanceof State);\n // ii. Return y.\n return y;\n };\n // d. Call m(x, d) and let r be its result.\n const r = m(x, d);\n // e. If r is failure, return failure.\n if (r === 'failure') {\n return 'failure';\n }\n // f. Let y be r's State.\n const y = r;\n // g. Let cap be y's captures List.\n const cap = y.captures;\n // h. Let xe be x's endIndex.\n const xe = x.endIndex;\n // i. Let z be the State (xe, cap).\n const z = new State(xe, cap);\n // j. Call c(z) and return its result.\n return c(z);\n };\n }\n case '?<!': {\n // 1. Evaluate Disjunction with -1 as its direction argument to obtain a Matcher m.\n const m = Evaluate(Disjunction, -1);\n // 2. Return a new Matcher with parameters (x, c) that captures m and performs the following steps when called:\n return (x, c) => {\n // a. Assert: x is a State.\n Assert(x instanceof State);\n // b. Assert: c is a Continuation.\n Assert(isContinuation(c));\n // c. Let d be a new Continuation with parameters (y) that captures nothing and performs the following steps when called:\n const d = (y) => {\n // i. Assert: y is a State.\n Assert(y instanceof State);\n // ii. Return y.\n return y;\n };\n // d. Call m(x, d) and let r be its result.\n const r = m(x, d);\n // e. If r is not failure, return failure.\n if (r !== 'failure') {\n return 'failure';\n }\n // f. Call c(x) and return its result.\n return c(x);\n };\n }\n default:\n throw new OutOfRange('Evaluate_Assertion', subtype);\n }\n }", "function testElseIf(val) {\n if (val > 10) {\n return \"greater than 10\";\n } else if (val < 5) {\n return \"smaller than 5\";\n } else {\n return \"between 5 and 10\";\n }\n}" ]
[ "0.7166076", "0.68776727", "0.6639018", "0.6639018", "0.66252387", "0.66252387", "0.66252387", "0.66252387", "0.6625037", "0.6598244", "0.65829885", "0.6570482", "0.6569818", "0.6552599", "0.6552599", "0.6552599", "0.6552599", "0.65211713", "0.6513756", "0.651139", "0.650248", "0.650248", "0.650248", "0.650248", "0.650248", "0.64957356", "0.64957356", "0.64957356", "0.64957356", "0.64957356", "0.64957356", "0.6419169", "0.64149296", "0.640409", "0.640409", "0.63691664", "0.63667357", "0.63134104", "0.6215726", "0.6159104", "0.6088345", "0.60782087", "0.6018764", "0.6004653", "0.59940267", "0.59695846", "0.5962021", "0.59459186", "0.5931505", "0.59279954", "0.59010386", "0.5900044", "0.58812535", "0.5867126", "0.58166045", "0.579487", "0.57675993", "0.5754135", "0.5722306", "0.5720625", "0.5697315", "0.5695642", "0.5692111", "0.56885016", "0.5657227", "0.56347567", "0.56213474", "0.5608264", "0.5608264", "0.56027335", "0.5586282", "0.557213", "0.5492228", "0.54085916", "0.539842", "0.5368284", "0.5365086", "0.5349804", "0.5297824", "0.52635527", "0.5249521", "0.52492094", "0.52447593", "0.52334297", "0.523214", "0.5228518", "0.5220151", "0.5211712", "0.5211712", "0.5211015", "0.5193003", "0.5191777", "0.5187668", "0.5166891", "0.51632434", "0.51593924", "0.5149142", "0.5147297", "0.51424634", "0.51382643" ]
0.65555906
13
Evaluation continue and speed methods
function stopEval() { G.continue = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculate() {\r\n\teval();\r\n\tstopAll();\r\n}", "step()\n {\n if (this.halted)\n {\n return false;\n }\n\n let instruction = this._read(this.pointer);\n let startingPoint = this.pointer;\n\n let opCode = this._opCode(instruction);\n if (opCode == 99) // halt \n {\n this.halted = true;\n return false;\n }\n\n let [mode1, mode2, mode3] = this._parameterModes(instruction);\n let parameterCount = this._parameterCount(opCode);\n \n // unary\n if (parameterCount == 1)\n {\n var parameter1 = this._read(++this.pointer);\n\n if (opCode == 3) // read\n {\n let value = this.readHandler();\n if (value === undefined || value === null)\n {\n this.pointer = startingPoint;\n this.blocked = true;\n return false;\n }\n\n this.blocked = false;\n this._write(parameter1, mode1, value);\n }\n else if (opCode == 4) // write\n {\n this.writeHandler(this._read(parameter1, mode1));\n }\n else if (opCode == 9) // relative base \n {\n this.relativeBase += this._read(parameter1, mode1);\n }\n }\n\n // binary\n else if (parameterCount == 2)\n {\n var parameter1 = this._read(++this.pointer);\n var parameter2 = this._read(++this.pointer);\n\n if (opCode == 5 || opCode == 6) // jump-if-true, jump-if-false\n {\n let value = this._read(parameter1, mode1);\n let jumpTo = this._read(parameter2, mode2);\n\n if((opCode == 5 && value !== 0) || (opCode == 6 && value === 0))\n {\n this.pointer = jumpTo;\n return true;\n }\n }\n }\n\n // tertiary\n else if (parameterCount == 3) \n {\n let parameter1 = this._read(++this.pointer);\n let parameter2 = this._read(++this.pointer);\n let parameter3 = this._read(++this.pointer);\n\n if (opCode == 1) // add\n {\n this._write(\n parameter3, \n mode3, \n this._read(parameter1, mode1) + this._read(parameter2, mode2));\n }\n else if (opCode == 2) // multiply\n {\n this._write(\n parameter3, \n mode3, \n this._read(parameter1, mode1) * this._read(parameter2, mode2));\n }\n else if (opCode == 7) // less than\n {\n this._write(\n parameter3, \n mode3, \n (this._read(parameter1, mode1) < this._read(parameter2, mode2)) ? 1 : 0);\n }\n else if (opCode == 8) // equals\n {\n this._write(\n parameter3, \n mode3, \n (this._read(parameter1, mode1) === this._read(parameter2, mode2)) ? 1 : 0);\n }\n }\n\n this.pointer++;\n return true;\n }", "step() { }", "instantCompute(){\n if(this.points.length<3){\n this.drawFinishIfLessThan3Points();\n return;\n }\n this.sucess=false\n while(!this.sucess){\n this.calculateNextStep();\n }\n this.drawFinish();\n }", "function mainLoop()\n {\n\t\tmainLoopCounter++;\n if (Graph.instance.nodes.get(state.sourceId).b == 0) {\n state.current_step = STEP_FINISHED; //so that we display finished, not mainloop when done\n that.stopFastForward();\n \n logger.log(\"Finished with a min cost of \"+ minCost);\n\n }\n else\n {\n logger.log(\"Not finished, starting search for augmentation cycle \");\n state.show_residual_graph = true;\n state.current_step = STEP_FINDSHORTESTPATH; \n\t\t\n }\n }", "function loop(){\n\tloopFlag = 0;\n\tfor(var i=0; i<comands.length; i++){\n\n\t\t//Execute and register result\n\t\tvar temp = replaceIfNotEscaped(comands[i].comand,\",\",\"§\");\n\t\ttemp = temp.replace(/\\\\/g,\"\"); //Parentesis and commas remained are just escaped\n var parameters = temp.split(\"§\");\n\n loopFlag = executeComand(parameters);\n\t\t//If loopFlag == 1 break and restart for loop\n\t\t//If loopFlag == -1 error occured\n\t\tif(loopFlag != 0){\n\n //Print new state to screen\n if(speedSelect.value != \"Result only\"){\n console.log(\"Nastro \" + fromArrayToString(general.nastroValue,general.nastroNegValue));\n printNastro(nastro, general.nastroValue, general.nastroNegValue, general.nastroIndex, general.nastroSideLength);\n if(expControl.error == 0){\n stateLabel.innerHTML = \"<pre>\"+general.currentState;+\"</pre>\";\n }\n }\n\n\t\t\tif(!opt1.checked){\n\t\t\t\t//This if is needed to change the speed during execution. With absolute focus on the textarea was impossible to select other speeds\n\t\t\t\tif(document.querySelector(\":focus\") != speedSelect){\n\t\t\t\t\tvar l = taCode.value.indexOf(comands[i].original);\n\t\t\t\t\t//taCode.setSelectionRange(l,l + comands[i].original.length); Not working on chrome\n\t\t\t\t\ttaCode.selectionStart = l;\n\t\t\t\t\ttaCode.selectionEnd = l + comands[i].original.length;\n\t\t\t\t\ttaCode.focus();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//This if is needed to change the speed during execution. With absolute focus on the textarea was impossible to select other speeds\n\t\t\t\tif(document.querySelector(\":focus\") != speedSelect){\n\t\t\t\t\tvar l = taCode.value.indexOf(comands[i].comand);\n\t\t\t\t\ttaCode.selectionStart = l;\n\t\t\t\t\ttaCode.selectionEnd = l + comands[i].comand.length;\n\t\t\t\t\ttaCode.focus();\n\t\t\t\t}\n\t\t\t}\n\t\t\tgeneral.stepCount++;\n\t\t\tstepLabel.innerHTML = \"Steps: \" + general.stepCount;\n\t\t\tif(general.stepCount >= general.stepThreshold){\n\t\t\t\texpControl.stepThresholdReached(general.stepCount);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n}", "setExecution() {\n /* One step on the game (without draw), the function is called via a setTimeout function : thus there is not need of loop. No draw here\n drawing a step in in method drawGameStep */\n this.snake.move(this.grid);\n \n if (this.snake.ateAnApple) {\n let nextSpeed = 1000*this.stepSpeed/(1000+0.1*this.stepSpeed) ;\n //this.stepSpeed - (this.minSpeed-this.maxSpeed)/(this.nbCells*3);\n if(this.stepSpeed > this.maxSpeed) {\n this.stepSpeed = nextSpeed ;\n // if the snake eat an apple, the game accelerate\n console.log(this.stepSpeed) ;\n };\n }\n\n if (this.snake.isDead) {\n gameOver() ;\n } \n }", "function calcAll() {\n // Iteration 1.2\n\n}", "static _runContext( threadContext ) {\n // While we are not at the end of the code\n const jsenCode = threadContext.code;\n const jsenCodeLen = jsenCode.length;\n while( threadContext.pc < jsenCodeLen ) {\n // Get next statement\n const codeStatement = jsenCode[threadContext.pc];\n switch ( typeof( codeStatement ) ) {\n case 'function': // Case of code like: ()=> console.log( 'message' ),\n codeStatement();\n break;\n case 'string': // Case of comment like: 'This is a comment',\n case 'undefined': // Case of comment like: ,\n break;\n case 'object': // Case of block like: [ ... ],\n if( Array.isArray( codeStatement ) ) {\n JZENVM.run( codeStatement );\n } else { // Case of jsen statement like: JSEN.print( 'message' ),\n switch( codeStatement.name ) {\n case 'sleep': // Suspend execution for sleep timeout\n const timeout = codeStatement.params*1000;\n ++threadContext.pc;\n setTimeout( ()=> JZENVM._runContext( threadContext ), timeout );\n return;\n case 'print': // Print a message in console\n const message = codeStatement.params;\n console.log(message);\n break;\n case 'if': // Evaluate condition\n const condition = codeStatement.params;\n threadContext.pc = ( condition()? threadContext.pc: threadContext.pc+1 );\n break;\n case 'label': // Store label position\n const newLabelName = codeStatement.params;\n threadContext.labelList[newLabelName] = threadContext.pc;\n break;\n case 'goto': // Jump to label\n const labelName = codeStatement.params;\n const labelPc = threadContext.labelList[labelName]\n if( labelPc !== undefined )\n threadContext.pc = labelPc;\n break;\n default: \n console.log( 'Error: statement not supported '+codeStatement.name );\n return;\n }\n }\n break;\n }\n ++threadContext.pc;\n }\n }", "function Evaluator() {\n var a = 0;\n for (var i=0; i < arguments.length; i++) {\n a += arguments[i];\n }\n a /= i\n if (a >= 50)\n return true;\n else\n return false;\n}", "execute_program(){\n\t// execution loop\n\twhile(!this.step()){}\n}", "function run(){\n\t//Cleaning all flags and fields\n\t//Error\n\texpControl.error = 0;\n\t//Flow control float\n\tgeneral.stepCount = 0;\n\tloopFlag = 1;\n\tstopPressed = 0;\n\t//Execution flags and infos\n\tgeneral.currentState = 0;\n\tgeneral.nastroValue = fromStringToArray(taInput.value.replace(/\\n/g,' '));\n\tgeneral.nastroNegValue = [];\n\tgeneral.nastroIndex = 0;\n\tcompRulesPresent = 0;\n\t\n\t\n\t//Setting graphic objects\n\tspeed=0; //Set speed to 0 so this next tape print isn't animated\n\tprintNastro(nastro, general.nastroValue, general.nastroNegValue, general.nastroIndex, general.nastroSideLength);\n\tstateLabel.innerHTML = \"<pre>\"+general.currentState;+\"</pre>\";\n\tenableRunBtn(false);\n\tstepLabel.innerHTML = \"Steps: 0\";\n\t\n\t//Set the speed\n\tsetSpeed();\n\t\n\t\n\t//retrieve command list\n\tcomands = retrieve(taCode,expControl);\n\tif(comands == null) return;\n\t\n\t//if opt1 (show expanded rules) is check, write expanded rule in the text area\n\tif(opt1.checked && compRulesPresent != 0){\n\t\topt1OldCode = taCode.value;\n\t\ttaCode.value = \"//Expanded\\n\"\n\t\tfor(var k=0; k<comands.length; k++){\n\t\t\ttaCode.value += comands[k].comand + \"\\n\";\n\t\t}\n\t}\n\t//diasble during execution, will be enabled by stop()\n\topt1.disabled = true;\n\tsaveBtn.disabled = true;\n\tloadBtn.disabled = true;\n\tprogramSelect.disabled = true;\n\t\n\t\n\t//Starts actual execution\n\tif(speedSelect.value == \"Result only\"){\n stepLabel.innerHTML = \"Wait for result...\";\n //I used setTimeout cause apparently solve the problem of chrome tabs crashing after a certain amount of steps\n\t\t//I think gives control back to the rendering thread and this stops the countdown of the popup if there is no activity. But is just a guess, I'm learning\n\t\tsetTimeout(function(){\n do{\n loop();\n }while(loopFlag == 1 && stopPressed == 0 && expControl.error == 0);\n console.log(\"Nastro \" + fromArrayToString(general.nastroValue,general.nastroNegValue));\n printNastro(nastro, general.nastroValue, general.nastroNegValue, general.nastroIndex, general.nastroSideLength);\n if(expControl.error == 0){\n stateLabel.innerHTML = \"<pre>\"+general.currentState;+\"</pre>\";\n }\n stop();\n\t\t},0);\n\t}\n\telse{\n\t\t//Starts the recursive timed loop for execution\n\t\tintervalFunction();\n\t}\n}", "function mainLoop()\r\n{\r\n\tvar startTime = performance.now();\r\n}", "function iterateTest() {\n if (!iterating) return\n var t = performance.now()\n cachedMgr.update()\n // runningSum += sumOverComponents(cachedMgr, compNames)\n runTime += performance.now() - t\n runCt++\n if (iterating) requestAnimationFrame(iterateTest)\n}", "function compute(tape) {\n let position = 0;\n let instruction = tape[position];\n\n while (instruction != 99) {\n switch (instruction) {\n case 1:\n tape[tape[position + 3]] = tape[tape[position + 1]] + tape[tape[position + 2]];\n break;\n case 2:\n tape[tape[position + 3]] = tape[tape[position + 1]] * tape[tape[position + 2]];\n break;\n case 99:\n console.log('should not get here!');\n break;\n }\n\n position = position + 4;\n instruction = tape[position];\n }\n\n return tape[0]\n}", "Evaluate() {}", "iterate(when) {\n console.log(\"iterate\");\n let lapse = Math.min((when - this.then)/1000, 0.02);\n this.then = when;\n console.log(\"iterate: update\");\n this.update(when);\n console.log(\"iterate: clear\");\n this.clear();\n console.log(\"iterate: draw\");\n this.draw();\n this.swap_matrix();\n if (this.running) {\n window.requestAnimationFrame(thingIterator);\n }\n }", "function step() {\n paused = true;\n executeNext(true);\n }", "compute() {\n\n}", "function engine() {\n \n run = false;\n leg = length;\n \n while(leg--) {\n \n itm = dictionary[leg];\n \n if(!itm) break;\n if(itm.isCSS) continue;\n \n if(itm.cycle()) {\n \n run = true;\n\n }\n else {\n \n itm.stop(false, itm.complete, false, true);\n \n }\n \n }\n \n if(request) {\n \n if(run) {\n \n request(engine);\n \n }\n else {\n \n cancel(engine);\n itm = trans = null;\n \n }\n \n }\n else {\n \n if(run) {\n \n if(!engineRunning) timer = setInterval(engine, intervalSpeed);\n \n }\n else {\n \n clearInterval(timer);\n itm = trans = null;\n \n }\n \n }\n \n engineRunning = run;\n \n }", "nextstep(step) {}", "function main(tape) {\n let position = 0;\n let instruction = tape[position];\n\n while (instruction != 99) {\n switch (instruction) {\n case 1:\n tape[tape[position + 3]] = tape[tape[position + 1]] + tape[tape[position + 2]];\n break;\n case 2:\n tape[tape[position + 3]] = tape[tape[position + 1]] * tape[tape[position + 2]];\n break;\n case 99:\n console.log('should not get here!');\n break;\n }\n\n position = position + 4;\n instruction = tape[position];\n }\n\n console.log('Finished executing');\n console.log(JSON.stringify(tape, 0, 2));\n}", "evaluation() {\n if (!this.lockOperators(this.state.formula, this.state.currentValue)) {\n let expression = this.state.formula;\n if (endsWithOperator.test(expression)) {\n expression = expression.slice(0, -1);\n }\n expression = expression.replace(/x/g, \"*\").replace(/‑/g, \"-\");\n expression = expression.lastIndexOf('(') > expression.lastIndexOf(')') ?\n expression + ')' : expression;\n let answer = Math.round(10000000 * eval(expression)) / 10000000;\n this.setState({\n currentValue: answer.toString(),\n formula: expression.replace(/\\*/g, \"⋅\").replace(/-/g, \"‑\") + \"=\" + answer,\n previousValue: answer,\n currentSign: answer[0] == '-' ?\n 'neg' :\n 'pos',\n lastClicked: 'evaluated' });\n\n }\n }", "function doit() {\n\n console.log(\"doit\");\n\n\n\n answerChecker.oldEvaluate = answerChecker.evaluate;\n\n //stops the code from submitting the answer\n console.log(\"wrap answerChecker\");\n answerChecker.evaluate = function(e, t) {\n result = answerChecker.oldEvaluate(e, t);\n if (result.passed === !0 && result.accurate === !1) {\n result.exception = !0;\n\n logMutations();\n\n }\n return result;\n };\n\n }", "_step () {\n if (this.profiler !== null) {\n if (stepProfilerId === -1) {\n stepProfilerId = this.profiler.idByName('Runtime._step');\n }\n this.profiler.start(stepProfilerId);\n }\n\n // Clean up threads that were told to stop during or since the last step\n this.threads = this.threads.filter(thread => !thread.isKilled);\n\n // Find all edge-activated hats, and add them to threads to be evaluated.\n for (const hatType in this._hats) {\n if (!this._hats.hasOwnProperty(hatType)) continue;\n const hat = this._hats[hatType];\n if (hat.edgeActivated) {\n this.startHats(hatType);\n }\n }\n this.redrawRequested = false;\n this._pushMonitors();\n if (this.profiler !== null) {\n if (stepThreadsProfilerId === -1) {\n stepThreadsProfilerId = this.profiler.idByName('Sequencer.stepThreads');\n }\n this.profiler.start(stepThreadsProfilerId);\n }\n const doneThreads = this.sequencer.stepThreads();\n if (this.profiler !== null) {\n this.profiler.stop();\n }\n this._updateGlows(doneThreads);\n // Add done threads so that even if a thread finishes within 1 frame, the green\n // flag will still indicate that a script ran.\n this._emitProjectRunStatus(\n this.threads.length + doneThreads.length -\n this._getMonitorThreadCount([...this.threads, ...doneThreads]));\n // Store threads that completed this iteration for testing and other\n // internal purposes.\n this._lastStepDoneThreads = doneThreads;\n if (this.renderer) {\n // @todo: Only render when this.redrawRequested or clones rendered.\n if (this.profiler !== null) {\n if (rendererDrawProfilerId === -1) {\n rendererDrawProfilerId = this.profiler.idByName('RenderWebGL.draw');\n }\n this.profiler.start(rendererDrawProfilerId);\n }\n this.renderer.draw();\n if (this.profiler !== null) {\n this.profiler.stop();\n }\n }\n\n if (this._refreshTargets) {\n this.emit(Runtime.TARGETS_UPDATE, false /* Don't emit project changed */);\n this._refreshTargets = false;\n }\n\n if (!this._prevMonitorState.equals(this._monitorState)) {\n this.emit(Runtime.MONITORS_UPDATE, this._monitorState);\n this._prevMonitorState = this._monitorState;\n }\n\n if (this.profiler !== null) {\n this.profiler.stop();\n this.profiler.reportFrames();\n }\n }", "function e(){cov_1myqaytex8.f[0]++;cov_1myqaytex8.s[6]++;if(true){cov_1myqaytex8.b[4][0]++;cov_1myqaytex8.s[7]++;console.info('hey');}else{cov_1myqaytex8.b[4][1]++;const f=(cov_1myqaytex8.s[8]++,99);}}", "function someMath(){\n for( i = 0 ; i < 10000000; i++) {\n if(i = 10000000){\n console.log(i);\n }\n }\n}", "function next() {\n\t\t\tif (aTests.length) {\n\t\t\t\trunTest(aTests.shift());\n\t\t\t} else if (!iRunningTests) {\n\t\t\t\toTotal.element.classList.remove(\"hidden\");\n\t\t\t\toTotal.element.firstChild.classList.add(\"running\");\n\t\t\t\tsummary(Date.now() - iStart);\n\t\t\t\tsaveLastRun(mLastRun);\n\t\t\t\tif (oFirstFailedTest) {\n\t\t\t\t\tselect(oFirstFailedTest);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "evaluate() {\n let b = this.population.reduce((acc, val) => {\n if (val.fitness >= acc.fitness) return val;\n else return acc;\n }, this.population[0]);\n \n this.best = b.genes.join(\"\")\n\n if(b.genes.join(\"\") == this.target) {\n this.done = true;\n } else {\n this.time = (Date.now() - this.timeStart)/1000;\n }\n }", "step() {\n }", "compute() {\n const prev = parseFloat(this.previousOperand);\n const current = parseFloat(this.currentOperand);\n const operations = {\n '+': prev + current,\n '-': prev - current,\n '*': prev * current,\n '/': prev / current\n }\n \n if (this.isEqualPressedAgain) {\n this.previousResult = this.currentOperand;\n this.currentOperand = this.performSameCalculation();\n }\n\n if (isNaN(prev) || isNaN(current)) return;\n this.currentOperand = this.checkForErrors(current, prev, operations);\n this.previousOperation = this.operation;\n this.operation = undefined;\n this.previousOperand = '';\n }", "static equation(start) {\n const oddFunc = odd => 3 * odd + 1;\n const evenFunc = even => even / 2;\n\n // Checks if number is even or odd\n const alg = startNum =>\n startNum % 2 == 0 ? evenFunc(startNum) : oddFunc(startNum);\n\n let result = alg(start);\n\n // conditional will recall equation() until result == 1\n if (result == 1) {\n steps.push(result);\n } else {\n steps.push(result);\n UI.equation(result);\n }\n }", "function evaluateObjective(trigger) {\n\t\n\tif (trigger == /*Instruction completed*/)\n\t{\n\t\t// Call shortTermObjective\n\t}\n\telse\n\t{\n\t}\n\treturn 0; //TBD\n}", "step() {\n const insn = this.fetch(this.PC++);\n let r8, d9, Ri, a12, addr, SP, PC, ACC, val, imm, sum;\n\n console.log(`Executing opcode 0x${Utils.hex_d9(insn)} - ${DisAsm(insn)}`);\n switch (insn) {\n // NOP\n case 0x00:\n this.cycles += 1;\n break;\n\n // BR r8\n case 0x01:\n r8 = this.fetch(this.PC++);\n this.PC += Utils.signed(r8);\n this.cycles += 2;\n break;\n\n // LD d9\n case 0x02:\n case 0x03:\n d9 = this.fetch(this.PC++);\n this.put(SFR.ACC, Utils.d9(insn, d9));\n this.cycles += 1;\n break;\n\n // LD @Ri\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n Ri = this.Ri(insn);\n this.put(SFR.ACC, Ri);\n this.cycles += 1;\n break;\n\n // CALL a12\n case 0x08:\n case 0x09:\n case 0x0a:\n case 0x0b:\n case 0x0c:\n case 0x0d:\n case 0x0e:\n case 0x0f:\n a12 = this.fetch(this.PC++);\n addr = Utils.a12(insn, a12);\n\n SP = this.get(SFR.SP);\n this.put(Utils.u8(SP + 1), this.PC & 0xff);\n this.put(Utils.u8(SP + 2), this.PC >>> 8);\n\n this.put(SFR.SP, Utils.u8(SP + 2));\n\n this.PC = (this.PC & 0xf000) | addr;\n this.cycles += 2;\n break;\n\n // CALLR r16\n case 0x10:\n break;\n\n // BRF r16\n case 0x11:\n break;\n\n // ST r9\n case 0x12:\n case 0x13:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n\n this.put(addr, this.get(SFR.ACC));\n this.cycles += 1;\n break;\n\n // ST @Ri\n case 0x14:\n case 0x15:\n case 0x16:\n case 0x17:\n Ri = this.Ri(insn);\n\n this.put(Ri, this.get(SFR.ACC));\n this.cycles += 1;\n break;\n\n // CALL a12\n case 0x18:\n case 0x19:\n case 0x1a:\n case 0x1b:\n case 0x1c:\n case 0x1d:\n case 0x1e:\n case 0x1f:\n a12 = this.fetch(this.PC++);\n addr = Utils.a12(insn, a12);\n\n SP = this.get(SFR.SP);\n this.put(Utils.u8(SP + 1), this.PC & 0xff);\n this.put(Utils.u8(SP + 2), this.PC >>> 8);\n\n this.put(SFR.SP, Utils.u8(SP + 2));\n\n this.PC = (this.PC & 0xf000) | addr;\n this.cycles += 2;\n break;\n\n // CALLF a16\n case 0x20:\n addr = (this.fetch(this.PC) << 8) | this.fetch(this.PC + 1);\n this.PC += 2;\n\n SP = this.get(SFR.SP);\n this.put(Utils.u8(SP + 1), this.PC & 0xff);\n this.put(Utils.u8(SP + 2), this.PC >>> 8);\n\n this.put(SFR.SP, Utils.u8(SP + 2));\n\n this.PC = addr;\n this.cycles += 2;\n break;\n\n // JMPF a16\n case 0x21:\n addr = (this.fetch(this.PC) << 8) | this.fetch(this.PC + 1);\n\n this.PC = addr;\n this.cycles += 2;\n break;\n\n // MOV #i8, d9\n case 0x22:\n case 0x23:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n val = this.fetch(this.PC++);\n\n this.put(addr, val);\n this.cycles += 2;\n break;\n\n // MOV #i8, @Ri\n case 0x24:\n case 0x25:\n case 0x26:\n case 0x27:\n break;\n\n // JMP a12\n case 0x28:\n case 0x29:\n case 0x2a:\n case 0x2b:\n case 0x2c:\n case 0x2d:\n case 0x2e:\n case 0x2f:\n a12 = this.fetch(this.PC++);\n addr = Utils.a12(insn, a12);\n\n this.PC = (this.PC & 0xf000) | addr;\n this.cycles += 2;\n break;\n\n // MUL\n case 0x30:\n break;\n\n // BE #i8, r8\n case 0x31:\n break;\n\n // BE d9, r8\n case 0x32:\n case 0x33:\n break;\n\n // BE @Ri, #i8, r8\n case 0x34:\n case 0x35:\n case 0x36:\n case 0x37:\n break;\n\n // JMP a12\n case 0x38:\n case 0x39:\n case 0x3a:\n case 0x3b:\n case 0x3c:\n case 0x3d:\n case 0x3e:\n case 0x3f:\n a12 = this.fetch(this.PC++);\n addr = Utils.a12(insn, a12);\n\n this.PC = (this.PC & 0xf000) | addr;\n this.cycles += 2;\n break;\n\n // BNE #i8, r8\n case 0x41:\n ACC = this.get(SFR.ACC);\n imm = this.fetch(this.PC++);\n val = this.fetch(this.PC++);\n\n if (ACC !== imm) {\n this.PC = Utils.u16(this.PC + Utils.signed(val));\n }\n\n this.cycles += 2;\n break;\n\n // PUSH d9\n case 0x60:\n case 0x61:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n val = this.get(addr);\n SP = (this.get(SFR.SP) + 1) & 0xff;\n\n this.put(SP, val);\n this.put(SFR.SP, SP);\n this.cycles += 2;\n break;\n\n // INC d9\n case 0x62:\n case 0x63:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n val = this.get(addr);\n\n this.put(addr, Utils.u8(val + 1));\n this.cycles += 1;\n break;\n\n // ADD d9\n case 0x82:\n case 0x83:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n imm = this.get(addr);\n val = this.get(SFR.ACC);\n\n sum = imm + val;\n\n this.put(SFR.ACC, sum & 0xff);\n this.flag(Flag.CY, (sum >> 8) & 1);\n this.flag(Flag.AC, ((imm & 0xf + val & 0xf) >> 4) & 1);\n this.flag(Flag.OV, ((imm & val & 0x80) >> 7) & (+!((sum & 0x80) >> 7)));\n\n this.cycles += 1;\n break;\n\n // BN d9, b3, r8\n case 0x88:\n case 0x89:\n case 0x8a:\n case 0x8b:\n case 0x8c:\n case 0x8d:\n case 0x8e:\n case 0x8f:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n imm = Utils.bitrange(insn, 1, 3);\n val = this.fetch(this.PC++);\n\n if (!Utils.bittest(this.get(addr), imm)) {\n this.PC = Utils.u16(this.PC + Utils.signed(val));\n }\n\n this.cycles += 2;\n break;\n\n // LDC\n case 0xc1:\n ACC = this.get(SFR.ACC);\n val = (this.get(SFR.TRH) << 8) | this.get(SFR.TRL);\n addr = Utils.u16(val + ACC);\n\n this.put(SFR.ACC, this.get(addr));\n this.cycles += 2;\n break;\n\n // CLR1 d9, b3\n case 0xc8:\n case 0xc9:\n case 0xca:\n case 0xcb:\n case 0xcc:\n case 0xcd:\n case 0xce:\n case 0xcf:\n d9 = ((insn >>> 3) & 1) << 8 | this.fetch(this.PC++);\n val = this.get(d9);\n\n this.put(d9, Utils.bitclear(val, (insn >> 1) & 0x7));\n this.cycles += 1;\n break;\n\n // CLR1 d9, b3\n case 0xd8:\n case 0xd9:\n case 0xda:\n case 0xdb:\n case 0xdc:\n case 0xdd:\n case 0xde:\n case 0xdf:\n d9 = ((insn >>> 3) & 1) << 8 | this.fetch(this.PC++);\n val = this.get(d9);\n\n this.put(d9, Utils.bitclear(val, Utils.bitrange(insn, 0, 2)));\n this.cycles += 1;\n break;\n\n // AND #i8\n case 0xe1:\n imm = this.fetch(this.PC++);\n ACC = this.get(SFR.ACC);\n\n this.put(SFR.ACC, imm & ACC);\n this.cycles += 1;\n break;\n\n // AND d9\n case 0xe2:\n case 0xe3:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n val = this.get(addr);\n ACC = this.get(SFR.ACC);\n\n this.put(SFR.ACC, val & ACC);\n this.cycles += 1;\n break;\n\n // SET1 d9, b3\n case 0xe8:\n case 0xe9:\n case 0xea:\n case 0xeb:\n case 0xec:\n case 0xed:\n case 0xee:\n case 0xef:\n d9 = ((insn >>> 3) & 1) << 8 | this.fetch(this.PC++);\n val = this.get(d9);\n\n this.put(d9, Utils.bitset(val, (insn >> 1) & 0x7));\n this.cycles += 1;\n break;\n\n // XOR #i8\n case 0xf1:\n imm = this.fetch(this.PC++);\n ACC = this.get(SFR.ACC);\n\n this.put(SFR.ACC, ACC ^ imm);\n this.cycles += 1;\n break;\n\n // XOR d9\n case 0xf2:\n case 0xf3:\n d9 = this.fetch(this.PC++);\n addr = Utils.d9(insn, d9);\n val = this.get(addr);\n ACC = this.get(SFR.ACC);\n\n this.put(SFR.ACC, ACC ^ val);\n this.cycles += 1;\n break;\n\n // SET1 d9, b3\n case 0xf8:\n case 0xf9:\n case 0xfa:\n case 0xfb:\n case 0xfc:\n case 0xfd:\n case 0xfe:\n case 0xff:\n d9 = ((insn >>> 3) & 1) << 8 | this.fetch(this.PC++);\n val = this.get(d9);\n\n this.put(d9, Utils.bitset(val, (insn >> 1) & 0x7));\n this.cycles += 1;\n break;\n\n default:\n throw new Error(`unknown opcode 0x${Utils.hex_d9(insn)}`);\n }\n }", "mainloop() {\n this.repetitions++;\n let now = new Date().getTime();\n let relativeOriginal = now - this.realstartts;\n let relative = relativeOriginal * this.config.timeFactor;\n for (let node of this.nodes) {\n node.check(relative);\n };\n if (this.repetitions % 1000 === 0) {\n console.log(\"Repetition:\", this.repetitions, \"Relative time:\", relative);\n };\n }", "async next() {\n this._executing = false;\n await this._execute();\n }", "runCode(code) {\n\t\t// assign the code to the state\n\t\tthis.state.code = code;\n\t\tlet gasUsed = 0;\n\n\t\t// run a while loop over each instruction\n\t\twhile (this.state.programCounter < this.state.code.length) {\n\t\t\t// increment the times an instruction is executed\n\t\t\tthis.state.executionCount++;\n\n\t\t\tif (this.state.executionCount > EXECUTION_LIMIT)\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Check for infinite loop. Execution limit of ${EXECUTION_LIMIT} has been exceeded`\n\t\t\t\t);\n\n\t\t\t// get the current instruction in opCode variable\n\t\t\tconst opCode = this.state.code[this.state.programCounter];\n\n\t\t\tif (\n\t\t\t\tthis.state.code.length - 1 === this.state.programCounter &&\n\t\t\t\topCode != STOP\n\t\t\t)\n\t\t\t\tthrow new Error(\"STOP opcode missing\");\n\n\t\t\tgasUsed += OPCODE_GAS_MAP[opCode];\n\n\t\t\tlet value, key;\n\n\t\t\ttry {\n\t\t\t\tswitch (opCode) {\n\t\t\t\t\tcase STOP:\n\t\t\t\t\t\tthrow new Error(EXECUTION_COMPLETE);\n\n\t\t\t\t\tcase PUSH:\n\t\t\t\t\t\t// increment counter to get the value to be pushed\n\t\t\t\t\t\tthis.state.programCounter++;\n\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tthis.state.programCounter ===\n\t\t\t\t\t\t\tthis.state.code.length - 1\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tthrow new Error(\"Push cannot be last\");\n\t\t\t\t\t\tvalue = this.state.code[this.state.programCounter];\n\t\t\t\t\t\tthis.state.stack.push(value);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// Stack the 4 main operations since most of the code is common\n\t\t\t\t\tcase ADD:\n\t\t\t\t\tcase SUB:\n\t\t\t\t\tcase MUL:\n\t\t\t\t\tcase DIV:\n\t\t\t\t\tcase EQ:\n\t\t\t\t\tcase LT:\n\t\t\t\t\tcase GT:\n\t\t\t\t\tcase OR:\n\t\t\t\t\tcase AND:\n\t\t\t\t\t\t// get the to operands to be pushed from the stack\n\t\t\t\t\t\tconst a = this.state.stack.pop();\n\t\t\t\t\t\tconst b = this.state.stack.pop();\n\n\t\t\t\t\t\t// store the result of the operation\n\t\t\t\t\t\tlet result;\n\n\t\t\t\t\t\t// compute the result based on the opcode\n\t\t\t\t\t\tif (opCode === ADD) result = a + b;\n\t\t\t\t\t\tif (opCode === SUB) result = a - b;\n\t\t\t\t\t\tif (opCode === MUL) result = a * b;\n\t\t\t\t\t\tif (opCode === DIV) result = a / b;\n\t\t\t\t\t\tif (opCode === LT) result = a < b ? 1 : 0;\n\t\t\t\t\t\tif (opCode === GT) result = a > b ? 1 : 0;\n\t\t\t\t\t\tif (opCode === EQ) result = a === b ? 1 : 0;\n\t\t\t\t\t\tif (opCode === AND) result = a && b;\n\t\t\t\t\t\tif (opCode === OR) result = a || b;\n\t\t\t\t\t\tthis.state.stack.push(result);\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase JUMP:\n\t\t\t\t\t\tthis.jump();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase JUMPI:\n\t\t\t\t\t\tlet condition = this.state.stack.pop();\n\t\t\t\t\t\tif (condition === 1) {\n\t\t\t\t\t\t\tthis.jump();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase STORE:\n\t\t\t\t\t\tkey = this.state.stack.pop();\n\t\t\t\t\t\tvalue = this.state.stack.pop();\n\n\t\t\t\t\t\tthis.storageTrie.put({ key, value });\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase LOAD:\n\t\t\t\t\t\tkey = this.state.stack.pop();\n\t\t\t\t\t\tvalue = this.storageTrie.get({ key });\n\n\t\t\t\t\t\tthis.state.stack.push(value);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// unknown opcodes are ignored\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tconsole.log(\"INVALID OPCODE\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tif (error.message == EXECUTION_COMPLETE)\n\t\t\t\t\treturn {\n\t\t\t\t\t\tgasUsed,\n\t\t\t\t\t\tresult: this.state.stack[this.state.stack.length - 1]\n\t\t\t\t\t};\n\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t\t// increment the program counter to point to the next instruction\n\t\t\tthis.state.programCounter++;\n\t\t}\n\t}", "globalEval() {\n // phase one, if we have head inserts, we build up those before going into the script eval phase\n let insertHeadElems = new ExtDomQuery_1.ExtDomQuery(...this.internalContext.getIf(Const_1.DEFERRED_HEAD_INSERTS).value);\n insertHeadElems.runHeadInserts(true);\n // phase 2 we run a script eval on all updated elements in the body\n let updateElems = new ExtDomQuery_1.ExtDomQuery(...this.internalContext.getIf(Const_1.UPDATE_ELEMS).value);\n updateElems.runCss();\n // phase 3, we do the same for the css\n updateElems.runScripts();\n }", "step(t) {\n }", "function De(){var e,t=null;\n// Optimize the most common form: 'continue;'.\n// Optimize the most common form: 'continue;'.\nreturn G(\"continue\"),59===at.charCodeAt(lt)?(M(),mt.inIteration||j({},rt.IllegalContinue),pt.createContinueStatement(null)):U()?(mt.inIteration||j({},rt.IllegalContinue),pt.createContinueStatement(null)):(dt.type===Xe.Identifier&&(t=be(),e=\"$\"+t.name,Object.prototype.hasOwnProperty.call(mt.labelSet,e)||j({},rt.UnknownLabel,t.name)),H(),null!==t||mt.inIteration||j({},rt.IllegalContinue),pt.createContinueStatement(t))}", "function faster() {\n if (stepDelay <= MIN_DELAY) { return; }\n stepDelay /= 2;\n }", "function evaluate(criterios){\n for(let criterio of criterios){\n let modelo = criterio.notas.modelo\n let resultado = criterio.resultado\n \n /*\n #1\n modelo: {\n peso: 1,\n intervalo: {\n tipo: discreto,\n valor: [0, 5]\n }\n }\n resultado: 3\n \n #2\n modelo: {\n peso: 2,\n lista: [{\n texto: Danificada,\n valor: -1\n }, {...}, ...]\n }\n resultado: [0, 3]\n\n #3\n modelo: {\n peso: 2,\n boleano: {\n texto: Pets,\n valor: true/false\n }\n }\n resultado: true\n */\n \n let normal;\n if(modelo.intervalo){\n normal = (resultado - modelo.intervalo.valor[0])/(modelo.intervalo.valor[1] - modelo.intervalo.valor[0])\n }else if(modelo.booleano){\n normal = +(resultado == modelo.booleano.valor) * modelo.booleano.peso\n }else if(modelo.lista){\n let soma = modelo.lista.filter((v, i) => {\n return i in resultado\n }).reduce((acc, cur) => {\n return acc + cur.valor\n }, 0)\n let lista_ordenada = modelo.lista.sort((a, b) => a.valor - b.valor)\n let len_lista = modelo.lista.length\n \n let minimo = lista_ordenada[0].valor\n let maximo = lista_ordenada[len_lista-1].valor\n \n normal = (soma - minimo) / (maximo - minimo)\n }\n \n criterio.normal = normal\n criterio.normal_ponderada = normal * modelo.peso \n }\n \n let peso_total = criterios.reduce((acc, cur) => {\n return acc + cur.notas.peso\n }, 0)\n let nota_normal_ponderada_total = criterios.reduce((acc, cur) => acc + cur.normal_ponderada, 0)\n \n let nota_final = nota_normal_ponderada_total / peso_total\n \n return {\n final: nota_final,\n criterios: criterios.map(c => {\n return {\n resultado: c.resultado,\n normal: c.normal,\n peso: c.notas.peso,\n ponderada: c.ponderada\n }\n })\n }\n }", "iterate () {\n for (let i = 0; i < this.axiom.length; i++) {\n this.step();\n }\n }", "function iterLoop() {\n var rr = 0;\n var ii = 0;\n var ri = 0;\n\n ri = traceR * traceI;\n rr = traceR * traceR;\n ii = traceI * traceI;\n traceR = rr - ii + traceCR;\n traceI = ri + ri + traceCI;\n\n traceIter++\n\n if( traceIter > traceMaxIter ) {\n return true;\n } else {\n return false;\n }\n}", "compute(){\r\n let computation;\r\n const prev = parseFloat(this.previousOperand);\r\n const current = parseFloat(this.currentOperand);\r\n \r\n // if user clicks equals only\r\n // return cancels the function completely further\r\n if (isNaN(prev) || isNaN(current)) return;\r\n \r\n switch(this.operation){\r\n case'+':\r\n computation = prev + current;\r\n break;\r\n case '-':\r\n computation = prev - current;\r\n break;\r\n case '*':\r\n computation = prev * current;\r\n break;\r\n case '÷':\r\n computation = prev / current; \r\n break;\r\n default:\r\n return;\r\n }\r\n this.readyToReset = true;\r\n this.currentOperand = computation\r\n this.operation = undefined\r\n this.previousOperand = ''\r\n }", "run () {\n const { c8, view } = this\n // Emulator main loop. To run the emulator in accpectable speed,\n // most of times we \"freeze\" the cpu, only runs `insCount` instructions\n // on each loop.\n function mainLoop () {\n // Hard coded insturction count that each loop runs.\n let insCount = 5\n c8.DELAY = Math.max(0, c8.DELAY - 1)\n while (insCount > 0) {\n const { MEM, PC } = c8\n // Move instruction offset.\n const ins = getIns(MEM[PC] << 8 | MEM[PC + 1])\n try {\n // Perform operation according to instruction.\n ops[ins[0]](ins, c8, view)\n } catch (err) { warning(err, ins, c8) }\n insCount--\n }\n window.requestAnimationFrame(mainLoop)\n }\n window.requestAnimationFrame(mainLoop)\n }", "function evaluate() {\n if (firstNum !== null && secondNum !== null) {\n switch (equation) {\n case \"add\":\n firstNum += secondNum;\n\n break;\n case \"subtract\":\n firstNum -= secondNum;\n\n break;\n case \"divide\":\n firstNum /= secondNum;\n\n break;\n case \"multiply\":\n firstNum *= secondNum;\n\n if (displayNum > 10000000) {\n setDisplayNum(\"8======D\");\n }\n break;\n default:\n break;\n }\n setDisplayNum(firstNum);\n }\n }", "function runPerformance() {\n writeLog('starting the performance')\n // We're starting a perfomrance, so set perfomring to true\n setPlayStatus('performing', true)\n // I don't remember why this is here but i'm afraid to remove it\n setPlayStatus('fresh', false)\n\n // all this will be run at the end of the performance.\n bot.setTimeout(()=> {\n // Get the live performers current annoucenemnt message.\n // so we can count their emoji stats\n let message = getMessage(getLivePerformer().message)\n\n // console.log(message)\n\n // get the current performer\n let live = liveAccount.findOne()\n // filter through all the reactions to get the fire and poop count\n message.reactions.map(reaction => {\n switch(reaction.emoji.name) {\n case \"🔥\":\n live.dopes = reaction.count\n break\n case \"💩\":\n live.nopes = reaction.count\n break\n default:\n }\n })\n // do the performance math\n live.total = live.dopes + live.nopes\n live.dopeness = (parseInt(live.dopes) / parseInt(live.total)).toFixed(2)\n //update the performer stats\n liveAccount.update(live)\n\n setPlayStatus('performing', false) //their current performance stops\n writeLog('ending performance')\n }, 15000) // we check the performers score every 15 seconds\n }", "function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],\"globalEval\",!b||ra.get(b[c],\"globalEval\"))}", "solve() {\n\t\tlet times = [];\n\t\tlet iteration = 10\n\n\t\tfor(let i = 0; i < iteration; i++) {\n\t\t\tlet start = 0;\n\t\t\tlet end = 1;\n\t\t\tlet step = Math.pow(2, -20);\n\n\t\t\tlet timeAtStart = performance.now();\n\t\t\tlet res = this.integrate(start, end, step);\n\t\t\tlet timeAtEnd = performance.now();\n\t\t\tlet effectiveTime = timeAtEnd - timeAtStart;\n\n\t\t\ttimes.push(effectiveTime); \n\t\t\tthis.data.result = res[0].toFixed(25);\n\t\t\tthis.data.incertitude = res[1].toFixed(25);\n\t\t}\n\t\tthis.average_time(times, iteration)\n\t\t\n\t}", "function WI4_Sim_Optimise(listener, state)\n{\n\t//return true, nothing to do\n\treturn true;\n}", "computeResult(result) {\n }", "function test6() {\n\tcpuThing();\n\tcpuThing();\n\tcpuThing();\n}", "function continueExecution() {\n clearBoard();\n hero.positionAtHome();\n hero.setImage('normal');\n hero.setLives(hero.getLives()-1);\n hero.draw();\n isNextLife = true;\n }", "function checker(){\n if (index--) requestFrame(checker);\n else {\n // var result = 3*Math.round(count*1000/3/(performance.now()-start));\n var result = count*1000/(performance.now()- start);\n if (typeof opts.callback === \"function\") opts.callback(result);\n console.log(\"Calculated: \"+result+\" frames per second\");\n }\n }", "function spendSomeTime() {\n let total = 0;\n for (let i = 0; i < 10000; i++) {\n total += i;\n }\n}", "function processStep() {\r\n finished = true;\r\n for (var i = 0; i < searchResults.length; ++i) {\r\n for (var j = 0; j < searchResults[i].length; ++j) {\r\n for (var k = 0; k < searchResults[i][j].length; ++k) {\r\n\t\t\t\t//wyciagniecie z obiektow reprezentujacych znalezione rekordy informacji potrzebnych do rozszerzenia podslowa\r\n var searchedSeed = searchResults[i][j][k];\r\n var moveLeft = searchedSeed.moveLeft;\r\n var indexInDbSet = searchedSeed.index - moveLeft;\r\n var indexInSequence = i - moveLeft;\r\n var databaseSet = databaseSets[searchedSeed.DbSetNr];\r\n var seed = searchedSeed.seed;\r\n var currScore = searchedSeed.score;\r\n if (currScore >= tresholdC&&seed.length<sequence.length) { //przetwarzamy tylko rekordy o minimalnej zgodności\r\n var result = expand(seed,sequence,databaseSet,indexInSequence, indexInDbSet, matrix,currScore);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//jezeli udało się rozszerzyć chociaz jeden rekord to nie skonczylismy\r\n\t\t\t\t\tif(result.expandedLeft || result.expandedRight)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfinished = false; \r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n //logika aktualizujaca rekord w searchResults - do napisania\r\n searchResults[i][j][k].score = result.newScore;\r\n\t\t\t\t\t//aktualizacja wskaznika pokazujacego o ile slowo zostalo rozszerzone w lewo\r\n\t\t\t\t\tif(result.expandedLeft)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsearchResults[i][j][k].moveLeft = searchResults[i][j][k].moveLeft + 1; \r\n\t\t\t\t\t}\r\n\t\t\t\t\tsearchResults[i][j][k].seed = result.newSeed; \r\n }\r\n }\r\n }\r\n }\r\n if(finished) alert(\"Wykonano wszystkie kroki algorytmu, możesz przejść do kolejnego etapu.\")\r\n}", "function main() {\n latestSimulationPrediction(),\n simulationPrediction()\n // latestAnalyticalPrediction(),\n // analyticalPrediction()\n // simulationPredictionKPIs(),\n analyticalPredictionKPIs()\n // startEvaluation(),\n // evaluationStatus(),\n // cancelEvaluation(),\n // simulatedEvaluation(),\n // simulatedEvaluationKPIs(),\n // setNowTime(),\n // getNowTime(),\n // ping()\n}", "function funStartLoop() {\n /*\n Description: initiates the game loop provided bench mark is not zero\n Parameters:\n -\n Returns: -\n */\n if (threads.mercury.numExeT === 0)\n {//Light the fires and kick the tyres\n threads.mercury.numExeT = new Date();\n threads.venus.numExeT = new Date();\n threads.earth.numExeT = new Date();\n threads.mars.numExeT = new Date();\n console.log(\"kicking the tyres and lighting the fires\");\n }\n /* If this machine has been benchmarked and the loop isnt puased\n * zero = no benchmark do not loop\n * positive number = benchmarked\n * negative number = puase\n */\n if (numBenchmarkSolarYear > 0)\n {\n //iterate through the each planet-thread defined in threads array\n for (var strPlanet in threads)\n { \n //save the exact date in milliseconds\n var datNow = new Date();\n if ( (datNow.valueOf() - threads[strPlanet].numExeT.valueOf()) >= numBenchmarkSolarYear/threads[strPlanet].fractal)\n //### Reached Apointment Time ^^^\n {/*\n_______________________________\n>>> Mars Thread Renders Frame >>>\n */if (strPlanet == 'mars')\n {\n threads.mars.day++;\n \n switch (threads.mars.day)\n {\n case 3:threads.mars.day = 0;break;\n case 2:{\n //Only render a frame on day 2 becuase 3/3(mars) = 4/4(earth) but 2/3 does not = 1/4 or 2/4 or 3/4\n for (obj = 0; obj < threads.mars.work.length; obj++)\n {\n rayOO[ threads[mars].work[obj][0] ][ threads[mars].work[obj][1] ].funRender();\n }\n threads.mars.render(\"main\");\n }break;\n }\n continue;\n }/*\n<<< Mars Thread Ends <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n****************************************************************************\n */\n //variable used to track what interrupt is executed in the following loop\n var numExecutedInterrupt = -1;\n for (var interrupt = 0; interrupt < Object.keys(threads[strPlanet].work).length+Object.keys(threads[strPlanet].work).length; interrupt++)/*\n_______________________________________________\n### Execute Earth or Venus or Mercury threads >>>\n Iterate through this planets interrupt array\n this loop actually goes through the array twice\n first time to increment numCycleCount for all\n its interrupts. The second time to find the\n first interrupt with a due apointment time\n CycleCount higher than Cycles actualized.\n */\n {\n if ( interrupt < Object.keys(threads[strPlanet].work).length)\n //### Pre Interrupt Accounting>>>\n {\n //increment every interrupt numCycleCount, another cycle pased\n threads[strPlanet].work[interrupt].numCycleCount++;\n }\n else\n //### Interrupt Execution>>>\n {\n /*loop through array again by off setting the count by\n length of array (back to zero). Determine the first\n due interrupt and execute its interface function.\n */\n numExecutedInterrupt = interrupt - Object.keys(threads[strPlanet].work).length;\n if ( \n ( numExecutedInterrupt < Object.keys(threads[strPlanet].work).length)\n &&\n (threads[strPlanet].work[numExecutedInterrupt].numCycleCount >= threads[strPlanet].work[numExecutedInterrupt].numCycles) \n )\n {\n //when funAct interface defined\n if (threads[strPlanet].work[numExecutedInterrupt].booActOrSolve === true)\n {\n //grab the interface function and execute it\n this.funAct = threads[strPlanet].work[numExecutedInterrupt].funAct;\n this.funAct();\n\n }\n //when funSolve interface defined\n else\n {\n //build a webworker and execute the interface function.\n /*\n !TO BE Implemented!\n this.funSolve = threads[strPlanet].work[numExecutedInterrupt].funSolve;\n this.funSolve();\n */\n }\n threads[strPlanet].work[numExecutedInterrupt].numCycleCount = 0;\n threads[strPlanet].numExeT = datNow;\n break;\n }\n }\n }\n //update OoMutiny's solar clock\n threads[strPlanet].render('main');\n /*\n______________________________\n### Post Interrupt Execution >>>\n\n Delete or Shift State? for executed interrupt only.\n Making mods to the array after all iterations are complete \n otherwise the mods affect the order of indice/keys and values\n */if (numExecutedInterrupt >= 0) \n {\n //if the executed interrupt is a repeater\n if (threads[strPlanet].work[numExecutedInterrupt].booRepeat === true)\n {\n numExecutions = threads[strPlanet].work[numExecutedInterrupt].numExecutions;\n // push infinite repeating interrupts to the end of the appointment book\n if (numExecutions === 0 )\n {\n //Unlimited repeating appointment, move interrupt to the end of planet array\n threads[strPlanet].work.push(threads[strPlanet].work[numExecutedInterrupt]);\n threads[strPlanet].work.splice(numExecutedInterrupt,1);\n }\n else if (numExecutions > 1)\n {\n //Interrupt has more appointments booked decrease numExecutions & move it to end of array\n threads[strPlanet].work[numExecutedInterrupt].numExecutions--;\n threads[strPlanet].work.push(threads[strPlanet].work[numExecutedInterrupt]);\n threads[strPlanet].work.splice(numExecutedInterrupt, 1);\n }\n else if (numExecutions === 1)\n {\n //The last of multiple appointments executed, delete interrupt\n threads[strPlanet].work.splice(numExecutedInterrupt, 1);\n }\n }\n //for single executing interrupts\n else\n {\n // Appointment complete, delete it\n threads[strPlanet].work.splice(numExecutedInterrupt, 1);\n }/*\n<<< End Post Interrupt <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n***********************************************************************************************\n */}/*\n_____________________\n### Start Accounting >>>\n*/\n\n/*<<< End Accounting ###\n***********************************************************************************************/\n }\n }\n }/*\n___________________\n### Loop Is Paused >>>\n*/else if (numBenchmarkSolarYear < 0) \n {\n // unpause that loop, this is the start loop function. dah\n numBenchmarkSolarYear -= numBenchmarkSolarYear + numBenchmarkSolarYear;\n }\n/***********************************************************************************************\n________________________________________________\n//### Call this function again in a millisecond >>>\n*/window.setTimeout(funStartLoop , 1);\n}", "loop() {}", "loop() {}", "function compute(){\n while(calcScreen!= \"\"){\n transfer();\n }\n if(stack.length == 1){ \n calcScreen+= stack.shift(); \n display();\n return;\n }\n let saver = stack.slice(0,3);\n stack.splice(0,3); \n while(stack.length> 0){\n if( !checkOp(stack[0])){ \n saver.push(evaluate(saver.shift(),saver.shift(),saver.shift())); \n saver = saver.concat(stack.slice(0,2));\n stack.splice(0,2);\n }\n else{\n saver.push(evaluate(saver.pop(),stack.shift(),stack.shift())); \n }\n\n }\n saver.push(evaluate(saver.shift(),saver.shift(),saver.shift())); \n calcScreen+= saver.pop();\n display();\n}", "compute() {\n let result;\n let lastnum = parseFloat(this.lastOperand);\n let currnum = parseFloat(this.currOperand);\n if (isNaN(lastnum) || isNaN(currnum)) {\n return;\n }\n switch (this.operator) {\n case \"+\":\n result = lastnum + currnum;\n break;\n case \"-\":\n result = lastnum - currnum;\n break;\n case \"*\":\n result = lastnum * currnum;\n break;\n case \"/\":\n result = lastnum / currnum;\n break;\n default:\n return;\n }\n this.currOperand = result;\n this.lastOperand = \"\";\n this.operator = undefined;\n }", "function calculationLoop() {\n\n function updateTime() {\n updateTimeInToolbar();\n setTimeout(updateTime, 1000);\n }\n setTimeout(updateTime, 1000);\n \t\t\n\t\tfunction calc() {\n\t\t\tcalculate(false);\n\t\t\tsetTimeout(calc, AGSETTINGS.getRefreshTimerInterval());\n\t\t}\n\t\tsetTimeout(calc, AGSETTINGS.getRefreshTimerInterval());\n\t}", "function executarLooping() {\n moverFundo()\n moverHelicopteroInimigo()\n moverCaminhao()\n moverJogador()\n moverAliado()\n detectarColisoes()\n mostrarPlacar()\n atualizarEnergia()\n}", "function metropolisNextIteration(){\n \tmetropolisJump();\n \tredraw();\n }", "function doComputation(){\n let computation;\n const prev = parseFloat(previousOperand);\n const current = parseFloat(currentOperand);\n\n if(isNaN(prev) || isNaN(current)) return;\n switch(operation){\n case '+':\n computation=prev + current;\n break;\n case '-':\n computation=prev - current;\n break;\n case 'x':\n computation=prev * current;\n break;\n case '/':\n computation= prev / current;\n break;\n default :\n return;\n }\n\n currentOperand=computation;\n operation=undefined;\n previousOperand=''; \n}", "function continueExec(algorithm){\n\t\t\tif(algorithmsArray.length >= algoIndex + 2){\n\t\t\t\talgoIndex++;\n\t\t\t\talgorithms[algorithmsArray[algoIndex]](sortArrays[algorithmsArray[algoIndex]]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(first == algorithm){\n\t\t\t\t\talgorithms[algorithm](sortArrays[algorithm]);\n\t\t\t\t}\n\t\t\t\telse if(last == algorithm){\n\t\t\t\t\talgoIndex = 0;\n\t\t\t\t\talgorithms[first](sortArrays[first]);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function gen_intermediate_code_internal(/* CPUARMState * */ env,\n /* TranslationBlock * */ tb,\n /* int */ search_pc)\n{\n var /* DisasContext */ dc1, dc=dc1;/* *dc = &dc1;*/\n var /* uint16_t * */ gen_opc_end;\n var j, lj;\n var /* target_ulong */ pc_start;\n var /* uint32_t */ next_page_start;\n dc1 = new DisasContext();\n dc=dc1;\n /* generate intermediate code */\n pc_start = tb.pc;\n\n dc.tb = tb;\n\n //gen_opc_ptr = gen_opc_buf;\n //gen_opc_end = gen_opc_buf + (512 - 32);\n //gen_opparam_ptr = gen_opparam_buf;\n\n dc.is_jmp = 0;\n dc.pc = pc_start;\n dc.singlestep_enabled = env.singlestep_enabled;\n dc.condjmp = 0;\n dc.thumb = env.thumb;\n dc.condexec_mask = (env.condexec_bits & 0xf) << 1;\n dc.condexec_cond = env.condexec_bits >> 4;\n dc.is_mem = 0;\n\n if (arm_feature(env, ARM_FEATURE_M)) {\n dc.user = ((env.v7m.exception == 0) && (env.v7m.control & 1));\n } else {\n dc.user = (env.uncached_cpsr & 0x1f) == ARM_CPU_MODE_USR;\n }\n\n next_page_start = (pc_start & ~((1 << 10) - 1)) + (1 << 10);\n //nb_gen_labels = 0;\n lj = -1;\n /* Reset the conditional execution bits immediately. This avoids\n complications trying to do it at the end of the block. */\n if (env.condexec_bits)\n gen_op_set_condexec(0);\n do {\n\n if (dc.pc >= 0xfffffff0 && arm_feature(env, ARM_FEATURE_M)) {\n /* We always get here via a jump, so know we are not in a\n conditional execution block. */\n gen_op_exception_exit();\n }\n\n /*\n if (env.nb_breakpoints > 0) {\n for(j = 0; j < env.nb_breakpoints; j++) {\n if (cpu_single_env.breakpoints[j] == dc.pc) {\n gen_set_condexec(dc);\n gen_op_movl_T0_im((long)dc.pc);\n gen_op_movl_reg_TN[0][15]();\n gen_op_debug();\n dc.is_jmp = 1;\n // Advance PC so that clearing the breakpoint will\n // invalidate this TB. \n dc.pc += 2;\n goto done_generating;\n break;\n }\n }\n }\n */\n /*\n if (search_pc) {\n j = gen_opc_ptr - gen_opc_buf;\n if (lj < j) {\n lj++;\n while (lj < j)\n gen_opc_instr_start[lj++] = 0;\n }\n gen_opc_pc[lj] = dc.pc;\n gen_opc_instr_start[lj] = 1;\n }\n */\n if (env.thumb) {\n disas_thumb_insn(env, dc);\n if (dc.condexec_mask) {\n dc.condexec_cond = (dc.condexec_cond & 0xe)\n | ((dc.condexec_mask >> 4) & 1);\n dc.condexec_mask = (dc.condexec_mask << 1) & 0x1f;\n if (dc.condexec_mask == 0) {\n dc.condexec_cond = 0;\n }\n }\n } else {\n disas_arm_insn(env, dc);\n }\n if (dc.condjmp && !dc.is_jmp) {\n gen_set_label(dc.condlabel, dc.tb.tc_ptr);\n dc.condjmp = 0;\n }\n /* Terminate the TB on memory ops if watchpoints are present. */\n /* FIXME: This should be replacd by the deterministic execution\n * IRQ raising bits. */\n //if (dc.is_mem && env.nb_watchpoints)\n // break;\n\n /* Translation stops when a conditional branch is enoutered.\n * Otherwise the subsequent code could get translated several times.\n * Also stop translation when a page boundary is reached. This\n * ensures prefech aborts occur at the right place. */\n } while (!dc.is_jmp && /* gen_opc_ptr < gen_opc_end &&\n !env.singlestep_enabled && */ dc.pc < next_page_start);\n\n /* At this stage dc.condjmp will only be set when the skipped\n instruction was a conditional branch or trap, and the PC has\n already been written. */\n if (env.singlestep_enabled == 0) {\n /* Make sure the pc is updated, and raise a debug exception. */\n if (dc.condjmp) {\n gen_set_condexec(dc);\n if (dc.is_jmp == 5) {\n gen_op_swi();\n } else {\n gen_op_debug();\n }\n gen_set_label(dc.condlabel, dc.tb.tc_ptr);\n }\n if (dc.condjmp || !dc.is_jmp) {\n gen_op_movl_T0_im(dc.pc);\n gen_op_movl_reg_TN[0][15]();\n dc.condjmp = 0;\n }\n gen_set_condexec(dc);\n if (dc.is_jmp == 5 && !dc.condjmp) {\n gen_op_swi();\n } else {\n /* FIXME: Single stepping a WFI insn will not halt\n the CPU. */\n gen_op_debug();\n }\n } else {\n /* While branches must always occur at the end of an IT block,\n there are a few other things that can cause us to terminate\n the TB in the middel of an IT block:\n - Exception generating instructions (bkpt, swi, undefined).\n - Page boundaries.\n - Hardware watchpoints.\n Hardware breakpoints have already been handled and skip this code.\n */\n gen_set_condexec(dc);\n switch(dc.is_jmp) {\n case 0:\n gen_goto_tb(dc, 1, dc.pc);\n break;\n default:\n case 1:\n case 2:\n /* indicate that the hash table must be used to find the next TB */\n gen_op_movl_T0_0();\n gen_op_exit_tb();\n break;\n case 3:\n /* nothing more to generate */\n break;\n case 4:\n gen_op_wfi();\n break;\n case 5:\n gen_op_swi();\n break;\n }\n if (dc.condjmp) {\n gen_set_label(dc.condlabel, dc.tb.tc_ptr);\n gen_set_condexec(dc);\n gen_goto_tb(dc, 1, dc.pc);\n dc.condjmp = 0;\n }\n }\n /* XXX: FIX ME GOTO\ndone_generating:\n gen_opc_ptr.push({func:op_end);\n*/\n /*\n if (loglevel & (1 << 1)) {\n fprintf(logfile, \"----------------\\n\");\n fprintf(logfile, \"IN: %s\\n\", lookup_symbol(pc_start));\n target_disas(logfile, pc_start, dc.pc - pc_start, env.thumb);\n fprintf(logfile, \"\\n\");\n if (loglevel & ((1 << 2))) {\n fprintf(logfile, \"OP:\\n\");\n dump_ops(gen_opc_buf, gen_opparam_buf);\n fprintf(logfile, \"\\n\");\n }\n }\n */\n /*\n if (search_pc) {\n j = gen_opc_ptr - gen_opc_buf;\n lj++;\n while (lj <= j)\n gen_opc_instr_start[lj++] = 0;\n } else {\n */\n gen_opc_ptr.push({func:op_end});\n tb.size = dc.pc - pc_start;\n //}\n return 0;\n}", "function nextCycleOrResults() {\n // Call GC twice to cleanup JS heap before starting a new test.\n if (window.gc) {\n window.gc();\n window.gc();\n }\n\n var tLag = Date.now() - endTime - TIMEOUT;\n if (tLag > 0)\n fudgeTime += tLag;\n\n var doc;\n if (cycle == iterations) {\n document.cookie = '__pc_done=1; path=/';\n doc = '../../common/report.html';\n } else {\n doc = 'index.html';\n }\n\n var timings = elapsedTime;\n var oldTimings = __get_timings();\n if (oldTimings != '')\n timings = oldTimings + ',' + timings;\n __set_timings(timings);\n\n var url = doc + '?n=' + iterations + '&i=' + cycle +\n '&td=' + totalTime + '&tf=' + fudgeTime;\n document.location.href = url;\n}", "function calculateResults() {\n return;\n}", "function next() {\n\t\n\tif (currentTransformStep === transformSteps.length) {\n\t\tconsole.log('all transformations performed')\n\t}\n\telse\n\t\ttransformSteps[currentTransformStep++]()\n\t\t\n}", "async function main() {\n console.log(\"main\");\n let eps = 0.02;\n let initial_lr = 1.0;\n let min_lr = 0.001;\n console.log(numStates)\n for (let i = 0; i < episodes; i++) {\n if (TERMINATE) return;\n myGamePiece.totalReward = 0;\n myGamePiece.episode = i+1;\n let eta = Math.max(min_lr, initial_lr * (Math.pow(0.85, Math.floor(i))));\n console.log(eta);\n for (let j = 0; j < iterations; j++) {\n if (TERMINATE) return;\n myGamePiece.iteration = j+1;\n\n switch (speedLearning) {\n case 0: await sleep.pause(200); break;\n case 1: await sleep.pause(20); break;\n case 2: await sleep.pause(0.0001); break;\n }\n\n let stateMap = toState(myGamePiece.deltaTopBar, myGamePiece.deltaBottomBar);\n let a = stateMap.deltaTop;\n let b = stateMap.deltaBottom;\n\n if (key.random() < epsilon) {\n myGamePiece.action = Math.floor(key.random() * 2);\n } else {\n myGamePiece.action = q_table[a][b].indexOf(Math.max(...q_table[a][b]));\n }\n updateGameArea();\n myGamePiece.totalReward += (Math.pow(gamma, j)) * myGamePiece.reward;\n let stateMap_n = toState(myGamePiece.deltaTopBar, myGamePiece.deltaBottomBar);\n let a_n = stateMap_n.deltaTop;\n let b_n = stateMap_n.deltaBottom;\n q_table[a][b][myGamePiece.action] = (1 - eta) * q_table[a][b][myGamePiece.action] + (eta * (myGamePiece.reward + (gamma * Math.max(...q_table[a_n][b_n]))));\n }\n console.log(`Iteration ${i+1} -- Total reward = ${myGamePiece.totalReward} ${eta}`);\n if (speedLearning == 3) {\n await sleep.pause(0.0001);\n }\n\n }\n console.log(`${myGamePiece.totalReward} ${myGamePiece.maxScore}`);\n myGameArea.reset();\n return;\n}", "function runOpMode() {\n RunTimer = elapsedTimeAccess.create_withResolution(\"SECONDS\");\n InitMotors();\n linearOpMode.waitForStart();\n while (RunTimer < 10 && linearOpMode.opModeIsActive()) {\n MotorSpeed(1, 1);\n telemetry.addTextData('RunTimer', String(RunTimer));\n telemetry.update();\n }\n}", "runIteration(individual, actions) {\n //console.log(actions[0]);\n //actions are outputs of ML\n var x = individual.inputs[0];\n var x_dot = individual.inputs[1];\n var theta = individual.inputs[2];\n var theta_dot = individual.inputs[3];\n var force = this.scenarioVariables.force_mag * actions[0] > 0 ? 1 : -1;\n var costheta = Math.cos(theta);\n var sintheta = Math.sin(theta);\n //console.log(force);\n //console.log([x, x_dot, theta, theta_dot, force, costheta, sintheta]);\n var temp =\n (force +\n this.scenarioVariables.polemass_length *\n Math.pow(theta_dot, 2) *\n sintheta) /\n this.scenarioVariables.total_mass;\n //console.log(this.scenarioVariables.polemass_length);\n var thetaacc =\n (this.scenarioVariables.gravity * sintheta - costheta * temp) /\n (this.scenarioVariables.length *\n (4.0 / 3.0 -\n (this.scenarioVariables.masspole * Math.pow(costheta, 2)) /\n this.scenarioVariables.total_mass));\n var xacc =\n temp -\n (this.scenarioVariables.polemass_length * thetaacc * costheta) /\n this.scenarioVariables.total_mass;\n\n if (this.scenarioVariables.kinematics_integrator == \"euler\") {\n x = x + this.scenarioVariables.tau * x_dot;\n x_dot = x_dot + this.scenarioVariables.tau * xacc;\n theta = theta + this.scenarioVariables.tau * theta_dot;\n theta_dot = theta_dot + this.scenarioVariables.tau * thetaacc;\n } else {\n // semi-implicit euler\n x_dot = x_dot + this.scenarioVariables.tau * xacc;\n x = x + this.scenarioVariables.tau * x_dot;\n theta_dot = theta_dot + this.scenarioVariables.tau * thetaacc;\n theta = theta + this.scenarioVariables.tau * theta_dot;\n }\n //console.log(theta);\n individual.inputs = [x, x_dot, theta, theta_dot];\n var done =\n x < -this.scenarioVariables.x_threshold ||\n x > this.scenarioVariables.x_threshold ||\n theta < -this.scenarioVariables.theta_threshold_radians ||\n theta > this.scenarioVariables.theta_threshold_radians\n ? true\n : false;\n if (\n x < -this.scenarioVariables.x_threshold ||\n x > this.scenarioVariables.x_threshold ||\n theta < -this.scenarioVariables.theta_threshold_radians ||\n theta > this.scenarioVariables.theta_threshold_radians\n ) {\n //console.log(\"done\");\n }\n var reward;\n if (!done) {\n reward = 1;\n individual.totalIterations += 1;\n } else {\n //console.log(\"dead\");\n individual.alive = false;\n reward = 0;\n }\n return reward;\n }", "function evaluate(event) {\n\t var critical,\n\t df,\n\t mean,\n\t moe,\n\t rme,\n\t sd,\n\t sem,\n\t variance,\n\t clone = event.target,\n\t done = bench.aborted,\n\t now = _.now(),\n\t size = sample.push(clone.times.period),\n\t maxedOut = size >= minSamples && (elapsed += now - clone.times.timeStamp) / 1e3 > bench.maxTime,\n\t times = bench.times,\n\t varOf = function(sum, x) { return sum + pow(x - mean, 2); };\n\n\t // Exit early for aborted or unclockable tests.\n\t if (done || clone.hz == Infinity) {\n\t maxedOut = !(size = sample.length = queue.length = 0);\n\t }\n\n\t if (!done) {\n\t // Compute the sample mean (estimate of the population mean).\n\t mean = getMean(sample);\n\t // Compute the sample variance (estimate of the population variance).\n\t variance = _.reduce(sample, varOf, 0) / (size - 1) || 0;\n\t // Compute the sample standard deviation (estimate of the population standard deviation).\n\t sd = sqrt(variance);\n\t // Compute the standard error of the mean (a.k.a. the standard deviation of the sampling distribution of the sample mean).\n\t sem = sd / sqrt(size);\n\t // Compute the degrees of freedom.\n\t df = size - 1;\n\t // Compute the critical value.\n\t critical = tTable[Math.round(df) || 1] || tTable.infinity;\n\t // Compute the margin of error.\n\t moe = sem * critical;\n\t // Compute the relative margin of error.\n\t rme = (moe / mean) * 100 || 0;\n\n\t _.assign(bench.stats, {\n\t 'deviation': sd,\n\t 'mean': mean,\n\t 'moe': moe,\n\t 'rme': rme,\n\t 'sem': sem,\n\t 'variance': variance\n\t });\n\n\t // Abort the cycle loop when the minimum sample size has been collected\n\t // and the elapsed time exceeds the maximum time allowed per benchmark.\n\t // We don't count cycle delays toward the max time because delays may be\n\t // increased by browsers that clamp timeouts for inactive tabs. For more\n\t // information see https://developer.mozilla.org/en/window.setTimeout#Inactive_tabs.\n\t if (maxedOut) {\n\t // Reset the `initCount` in case the benchmark is rerun.\n\t bench.initCount = initCount;\n\t bench.running = false;\n\t done = true;\n\t times.elapsed = (now - times.timeStamp) / 1e3;\n\t }\n\t if (bench.hz != Infinity) {\n\t bench.hz = 1 / mean;\n\t times.cycle = mean * bench.count;\n\t times.period = mean;\n\t }\n\t }\n\t // If time permits, increase sample size to reduce the margin of error.\n\t if (queue.length < 2 && !maxedOut) {\n\t enqueue();\n\t }\n\t // Abort the `invoke` cycle when done.\n\t event.aborted = done;\n\t }", "function startTest() {\n var t = performance.now()\n var mgr = cachedMgr\n compNames = []\n Es = []\n procs = []\n // create a bunch of components\n for (var i=0; i<numCs; ++i) {\n compNames[i] = 'comp_'+String(i)\n var obj = { state: {value:1} }\n obj.state[String(Math.random())] = 1\n mgr.addComponent(compNames[i], obj)\n }\n // create a bunch of entities and randomly add components\n for (var i=0; i<numEs; ++i) {\n var n = (numCs * Math.random())|0\n var toAdd = []\n for (var j=0; j<numCsPerE; ++j) {\n toAdd.push(compNames[(n+j)%numCs])\n }\n Es.push( mgr.createEntity(toAdd) )\n }\n // create a bunch of processes that sum up state properties\n for (var i=0; i<numCs; ++i) {\n var o = {}\n o.name = compNames[i]\n o.update = function(dt) {\n var sum = 0\n var entList = mgr.getComponentsData(this.name)\n var ids = Object.keys(entList)\n for (var j=0; j<ids.length; ++j) {\n sum += entList[ids[j]].value|0\n }\n runningSum += sum|0\n }\n procs.push(o)\n mgr.addProcessor(o)\n }\n // finish up and iterate\n initTime = performance.now() - t\n iterating = true\n runTime = runCt = runningSum = 0\n requestAnimationFrame(iterateTest)\n}", "if (/*ret DOES NOT contain any hint on the result (lock is cracked)*/) {\n break; //Break loop (since further attempts are not neccessary)\n }", "function b(e, t) {\n for (var n = 0, r = e.length; n < r; n++) Oe.set(e[n], \"globalEval\", !t || Oe.get(t[n], \"globalEval\"));\n }", "function runNext() {\n var test = tests[at++];\n if (test) {\n setTimeout( function() {\n compare(test.func,\n window[test.func],\n window[test.func + \"_backported\"],\n test.driver);\n runNext();\n }, 20);\n }\n }", "function run() {}", "compute(operation) {\n const modes = this.getMode()\n const mode_1 = this.getDigitFromRight(modes, 1)\n const mode_2 = this.getDigitFromRight(modes, 2)\n const mode_3 = this.getDigitFromRight(modes, 3)\n const param_1 = this.program[this.PC+1]\n const param_2 = this.program[this.PC+2]\n const param_3 = this.program[this.PC+3]\n\n const value_1 = this.getValue(mode_1, param_1)\n const value_2 = this.getValue(mode_2, param_2)\n const ans_index = this.getIndex(param_3, mode_3)\n switch (operation) {\n case 1:\n this.program[ans_index] = value_1 + value_2\n break;\n case 2:\n this.program[ans_index] = value_1 * value_2\n break;\n case 7:\n this.program[ans_index] = (value_1 < value_2) ? 1 : 0\n break;\n case 8:\n this.program[ans_index] = (value_1 === value_2) ? 1 : 0\n break;\n default:\n return;\n }\n this.PC += 4\n }", "start () {\n return testPF(this.m, this.p0, this.q, this.r)\n }", "function metropolis1000Iterations(){\n \tfor (var ii=0; ii<1000; ii++) metropolisJump();\n \tredraw();\n }", "function b(e,t){for(var n=0,o=e.length;n<o;n++)Fe.set(e[n],\"globalEval\",!t||Fe.get(t[n],\"globalEval\"))}", "function inc4(){\r\n\"use strict\";\r\ncheck();\r\nif(valid==true){\r\n\tnum4++;\r\n\tnumTotalRuns++;\r\n\tnumTotalPSB++;\r\n\tnumTotalRML++;\r\n\tcalc();\r\n\tcosts();\r\n\tupdate();\r\n\t}\t\r\n}", "function calculateNext(data) {\n var v = data.calculationSettings.v;\n var m = data.calculationSettings.m;\n var n = data.calculationSettings.n;\n var h = data.calculationSettings.h;\n var ik = data.calculationSettings.ik;\n var il = data.calculationSettings.il;\n var ina = data.calculationSettings.ina;\n var timestep = data.calculationSettings.timestep;\n var gna1 = data.calculationSettings.gna1;\n var gna2 = data.calculationSettings.gna2;\n var gk1 = data.calculationSettings.gk1;\n var gk2 = data.calculationSettings.gk2;\n var gkMod = data.calculationSettings.gkMod;\n var gan = data.calculationSettings.gan;\n var ean = data.calculationSettings.ean;\n var ns1 = data.calculationSettings.ns1;\n var s1 = data.calculationSettings.s1;\n var s2 = data.calculationSettings.s2;\n var cm = data.calculationSettings.cm;\n \n \n\t\t// track the current value of v before iterating.\n\t\tvar vOld = v;\n\n\n\t\t// calculate alphas and betas for updating gating variables\n\t \tvar am;\n\t if (Math.abs(-v - 48) < 0.001) {\n\t \tam=0.15;\n\t } else {\n\t \tam=0.1*(-v-48)/(Math.exp((-v-48)/15)-1);\n\t }\n \n\t\tvar bm;\n\t\tif (Math.abs(v + 8) < 0.001) {\n\t\t\tbm = 0.6;\n\t\t}\n\t\telse {\n\t\t\tbm=0.12*(v+8)/(Math.exp((v+8)/5)-1);\n\t\t}\n \n\t\tvar ah = 0.17 * Math.exp((-v - 90)/20);\n\t\tvar bh = 1 / (Math.exp((-v - 42)/10) + 1);\n \n\t\tvar an;\n\t\tif (Math.abs(-v - 50) < 0.001) {\n\t\t\tan = 0.001;\n\t\t} else {\n\t\t\tan = 0.0001 * (-v - 50) / (Math.exp((-v-50)/10)-1);\n\t\t}\n\t\tvar bn = 0.002 * Math.exp((-v-90)/80);\n\n\n\t\t// calculate derivatives of gating variables\n\t\tvar dm = am * (1-m) - bm * m;\n\t\tvar dh = ah * (1-h) - bh * h;\n\t\tvar dn = an * (1-n) - bn * n;\n \n\t\t// update gating variables using explicit method\n\t\tm += timestep * dm;\n\t\th += timestep * dh;\n\t\tn += timestep * dn;\n\n\t\t// calculate potassium current conductance values\n\t\tvar gk1 = gkMod * Math.exp((-v-90)/50) + 0.015 * Math.exp((v+90)/60);\n\t\tvar gk2 = gkMod * Math.pow(n, 4);\n\n\n\t\t// calculate currents\n\t\tvar ina1 = gna1 * m * m * m * h * (v - 40);\n\t\tvar ina2 = gna2 * (v - 40);\n\t\tvar ik1 = gk1 * (v + 100);\n\t\tvar ik2 = gk2 * (v + 100);\n\t\til = gan * (v - ean);\n\n\n\t\t// sum the two sodium and the two potassium currents\n\t\tina = ina1 + ina2;\n\t\tik = ik1 + ik2;\n\n\n\t\t// set stimulus current periodically to be nonzero\n\t\tvar istim = _s1s2Stimulus(count, data);\n\n\n\t\t// calculate derivative of voltage \n\t\tvar dv = (-ina - ik - il - istim) / cm;\n\n\n\t\t// update voltage using forward Euler\n\t\tv += timestep * dv;\n\n\n\t\t// check vOld against the threshold\n\t\tcheckThreshold(vOld, v, threshold);\n\n\n\t\t// iterate the count\n\t\tcount++;\n \n data.calculationSettings.v = v;\n data.calculationSettings.m = m;\n data.calculationSettings.n = n;\n data.calculationSettings.h = h;\n data.calculationSettings.ik = ik;\n data.calculationSettings.ina = ina;\n data.calculationSettings.il = il;\n \n // var obj = {\n // v: v,\n // h: h,\n // n: n,\n // m: m,\n // ik: ik,\n // ina: ina,\n // il: il\n // }\n // console.log(\"object\");\n // console.log(obj);\n return data;\n\t}", "function exec() {\n this._throttle[methodID] = {\n previous: (new Date()).getTime()\n };\n func.apply(this, arguments);\n }", "function next(){\n if(!debug){_next();}\n}", "function cautiousNext() {\n depth++;\n if (depth > 100) {\n depth = 0;\n setImmediate(next);\n } else {\n next();\n }\n }", "function logicResult() {\n\n\t//blink\n\tresultVars.blinkCounter += dTime;\n\tif( resultVars.blinkCounter >= resultVars.blinkDuration ) {\n\t\tresultVars.blinkCounter = 0;\n\t\tfor(var i=0; i<allPlayers.length; i++) {\n\t\t\tif( allResultVisuals.midLayer[\"player\" + (i+1) + \"Title\"].visible() ) {\n\t\t\t\tallResultVisuals.frontLayer[\"player\" + (i+1) + \"block\"].visible( ! allResultVisuals.frontLayer[\"player\" + (i+1) + \"block\"].visible() );\n\t\t\t}\n\t\t}\n\t}\n\n\t//move stars and planets\n\tfor ( var i=1; i < 4; i++ ) {\n\t\tallResultVisuals.bgLayer[ \"s\" + i ].x( allResultVisuals.bgLayer[ \"s\" + i ].x() - resultVars.starMoveSpeed);\n\t\tif( allResultVisuals.bgLayer['s' + i].x() < -cCanvasWidth )\n\t\t\t{ allResultVisuals.bgLayer['s' + i].x( 2 * cCanvasWidth); }\n\n\t\tallResultVisuals.bgLayer[ \"p\" + i ].x( allResultVisuals.bgLayer[ \"p\" + i ].x() - resultVars.planetMoveSpeed);\n\t\tif( allResultVisuals.bgLayer['p' + i].x() < -cCanvasWidth/2 ) {\n\t\t\tallResultVisuals.bgLayer['p' + i].x( cCanvasWidth + parseInt( Math.random() * cCanvasWidth * 2 ) );\n\t\t\tallResultVisuals.bgLayer['p' + i].y( parseInt( Math.random() * cCanvasHeight ) );\n\t\t}\n\t}\n\n}", "async function runPolicy() {\n // get failiure rate by running policy x times until dead or solething like that\n while (!myGamePiece.done) {\n if (TERMINATE) return;\n updateGameArea();\n let stateMap = toState(myGamePiece.deltaTopBar, myGamePiece.deltaBottomBar);\n let a = stateMap.deltaTop;\n let b = stateMap.deltaBottom;\n\n myGamePiece.action = q_table[a][b].indexOf(Math.max(...q_table[a][b]));\n\n\n switch (speedRunning) {\n case 0: await sleep.pause(200); break;\n case 1: await sleep.pause(20); break;\n case 2: await sleep.pause(0.0001); break;\n }\n }\n}", "function hyperSpeed(){\n console.log('AYOOO');\n}", "evaluate() {\n for (var i = 0; i < this.scenarioParameters.populationSize; i++) {\n this.population[i].score += this.evaluateIndividual();\n this.population[i].iteration += 1;\n this.population[i];\n }\n }", "get LinearLoop(){ return 2; }", "function run(process) {\n if (process.paused == false) {\n process.counter++;\n if (process.counter == process.max) {\n process.method();\n process.counter = 0;\n }\n }\n }", "function evaluate(){\n number = math[operand](x,y)\n x = number\n display(number)\n number = 0\n operand = ''\n console.log('x', x)\n}", "'run'(values) {\n if (values != null) { this['bind'](values); }\n this['step']();\n return this['reset']();\n }", "function next() {\n\t\t\tif (aTests.length) {\n\t\t\t\treturn runTest(aTests.shift());\n\t\t\t} else if (!iRunningTests) {\n\t\t\t\toTotal.element.classList.remove(\"hidden\");\n\t\t\t\toTotal.element.firstChild.classList.add(\"running\");\n\t\t\t\tsummary(Date.now() - iStart);\n\t\t\t\tif (oFirstFailedTest) {\n\t\t\t\t\tselect(oFirstFailedTest);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "get FastPass() {\n return true;\n }" ]
[ "0.64004916", "0.5890402", "0.5782383", "0.5757836", "0.57486874", "0.5722435", "0.5712351", "0.5686748", "0.56770235", "0.56695014", "0.56613064", "0.5655313", "0.5645503", "0.5611494", "0.5603561", "0.55956364", "0.5540564", "0.5498653", "0.54841673", "0.54639125", "0.5445914", "0.5440779", "0.54331607", "0.5410547", "0.53860456", "0.5371132", "0.53688014", "0.535694", "0.5350116", "0.5348414", "0.5347001", "0.5341995", "0.5339632", "0.5323235", "0.53189063", "0.53042144", "0.5298413", "0.52811825", "0.5265126", "0.5252256", "0.5248811", "0.5241472", "0.52391", "0.5238716", "0.5212212", "0.52066237", "0.5204989", "0.52040184", "0.5199723", "0.5198207", "0.51971346", "0.5192038", "0.51901114", "0.51836205", "0.51824254", "0.51820254", "0.5177332", "0.5173522", "0.5170166", "0.5167917", "0.5167917", "0.5166283", "0.516476", "0.51626444", "0.5157404", "0.5150781", "0.51463896", "0.5145755", "0.5137712", "0.5132822", "0.51304805", "0.5129002", "0.51241446", "0.5119559", "0.51179695", "0.51174426", "0.5115649", "0.51136446", "0.51051515", "0.5095595", "0.50915724", "0.5089724", "0.5087202", "0.5083688", "0.5070453", "0.5067152", "0.50604934", "0.5057045", "0.505304", "0.5051278", "0.50451666", "0.50392324", "0.5028853", "0.5026491", "0.5021248", "0.5017793", "0.5017567", "0.5015349", "0.5011554", "0.5011545" ]
0.578478
2
Hack for replacing response body vars with dynamic URI params
function parseUriVars(uriVars, reqUrl, respBody) { var k = null; for (var k in uriVars) { if (uriVars.hasOwnProperty(k)) { var replacementValue = reqUrl.split('/').filter(el => {return !!el})[k]; respBody = respBody.replace(URL_VAR_REGEX, replacementValue); } } return respBody; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rewriteURIForGET(chosenURI, body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = Object(apollo_link_http_common__WEBPACK_IMPORTED_MODULE_1__[\"serializeFetchParameter\"])(body.variables, 'Variables map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = Object(apollo_link_http_common__WEBPACK_IMPORTED_MODULE_1__[\"serializeFetchParameter\"])(body.extensions, 'Extensions map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n var fragment = '', preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI: newURI };\n}", "function rewriteURIForGET(chosenURI, body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = Object(__WEBPACK_IMPORTED_MODULE_1_apollo_link_http_common__[\"g\" /* serializeFetchParameter */])(body.variables, 'Variables map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = Object(__WEBPACK_IMPORTED_MODULE_1_apollo_link_http_common__[\"g\" /* serializeFetchParameter */])(body.extensions, 'Extensions map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n var fragment = '', preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI: newURI };\n}", "function rewriteURIForGET(chosenURI, body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = Object(__WEBPACK_IMPORTED_MODULE_1_apollo_link_http_common__[\"g\" /* serializeFetchParameter */])(body.variables, 'Variables map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = Object(__WEBPACK_IMPORTED_MODULE_1_apollo_link_http_common__[\"g\" /* serializeFetchParameter */])(body.extensions, 'Extensions map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n var fragment = '', preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI: newURI };\n}", "function rewriteURIForGET(chosenURI, body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = serializeFetchParameter(body.variables, 'Variables map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = serializeFetchParameter(body.extensions, 'Extensions map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n var fragment = '', preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI: newURI };\n}", "replaceParams(params, body) {\n // I feel cool using this\n let block = body;\n for (let i = 0; i < params.params.length; i++) {\n const replaceString = `#${i}`;\n block = block.replace(new RegExp(replaceString, 'gi'), WBtoJS(params.params[i].name));\n }\n block = block.replace(new RegExp(`#${params.params.length}`, 'gi'), WBtoJS(params.restName));\n return block;\n }", "function rewriteURIForGET(chosenURI, body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = (0, _apolloLinkHttpCommon.serializeFetchParameter)(body.variables, 'Variables map');\n } catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = (0, _apolloLinkHttpCommon.serializeFetchParameter)(body.extensions, 'Extensions map');\n } catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n var fragment = '',\n preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI: newURI };\n}", "function rewriteURIForGET(chosenURI, body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = (0, _apolloLinkHttpCommon.serializeFetchParameter)(body.variables, 'Variables map');\n } catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = (0, _apolloLinkHttpCommon.serializeFetchParameter)(body.extensions, 'Extensions map');\n } catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n var fragment = '',\n preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI: newURI };\n}", "static unbuildEndodedUri(request) {\r\n var urifragment = request.split(\"&\"),\r\n data = {},\r\n i, parts;\r\n //process each par\r\n for (i = 0; i < urifragment.length; i++) {\r\n parts = urifragment[i].split(\"=\");\r\n if (parts.length < 2) {\r\n parts.push(\"\");\r\n console.log(parts);\r\n }\r\n data[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);\r\n }\r\n\r\n console.log(\"Returning from\", arguments.callee.name, data);\r\n\r\n return data;\r\n }", "function _getUriEncodedBody(config){var contentType=config&&config.headers&&config.headers[\"Content-Type\"];var body=config&&config.body||\"\";if(contentType===\"application/json\"){body=JSON.stringify(body);}else{if(_isObj(body)){body=_getUriEncodedParams(body);}}return body;}", "exRouteParams(request, response) {\n const params = request.params;\n console.log(params);\n return response.json({\n titulo: \"Exemplo Route Params\",\n parametros: params\n });\n }", "function unbuildEndodedUri(request) { \r\n var urifragment = request.split(\"&\"), data = {}, i, parts;\r\n //process each par\r\n for (i = 0; i < urifragment.length; i++) {\r\n parts = urifragment[i].split(\"=\");\r\n if (parts.length < 2) {\r\n parts.push(\"\");\r\n console.log(parts);\r\n }\r\n data[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);\r\n }\r\n \r\n console.log(\"Returning from\", arguments.callee.name, data);\r\n \r\n return data; \r\n}", "extract_request(params) {\n if (params.hasOwnProperty('_raw_'))\n var raw = params['_raw_'];\n else\n var raw = { res: null, req: null};\n return [raw.res, raw.req];\n }", "function unbuildEndodedUri(request) { \r\n var urifragment = request.split(\"&\"), data = {}, i, parts;\r\n //process each parameter\r\n for (i = 0; i < urifragment.length; i++) {\r\n parts = urifragment[i].split(\"=\");\r\n if (parts.length < 2) {\r\n parts.push(\"\");\r\n console.log(parts);\r\n }\r\n data[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);\r\n }\r\n \r\n console.log(\"Returning from\", arguments.callee.name, data);\r\n \r\n return data; \r\n}", "function addToBody() {\n\t state.body = state.body || {};\n\t // ignore if we already have a value\n\t if (state.body[key] == null) {\n\t if (key === 'query' && _.isString(val)) {\n\t val = { query_string: { query: val } };\n\t }\n\n\t state.body[key] = val;\n\t }\n\t }", "function parseBody (req, res, next) {\n var uri = url.parse(req.url, true);\n req.pathname = uri.pathname;\n req.cookies = qs.parse(req.headers.cookie);\n req.query = uri.query;\n\n req.on('readable', function () {\n var body = req.read();\n var contentType = req.headers['content-type'];\n if (contentType === 'application/json') {\n util._extend(req.params, JSON.parse(body));\n } else {\n util._extend(req.params, qs.parse(body));\n }\n next(req, res);\n });\n}", "function parsePOSTRequest(req) { // returns the request's body as a JSON\n const bodyIndex = r.indexOf(\"\\n\\r\");\n const reqBody = r.substring(bodyIndex+3, r.length);\n let keyIndex = 0;\n let equalIndex = 0;\n let ampersandIndex = 0;\n let isDone = false;\n let parsedRespJSON = {};\n while(!isDone) {\n equalIndex = reqBody.indexOf('=', equalIndex+1);\n ampersandIndex = reqBody.indexOf('&', ampersandIndex+1);\n let key = reqBody.substring(keyIndex, equalIndex);\n let value;\n if (ampersandIndex == -1) {\n // take from last '=' character till end of string if last one, do not use ampersand index\n value = reqBody.substring(equalIndex+1, req.length)\n isDone = true; // exit the loop since we are done parsing\n }\n else {\n key = reqBody.substring(keyIndex, equalIndex) // bet. prev ampersand and equal we have the key\n keyIndex = ampersandIndex + 1;\n value = reqBody.substring(equalIndex+1, ampersandIndex) // bet. equal and ampersand we have value\n }\n parsedRespJSON[key] = value;\n }\n return parsedRespJSON;\n}", "function resolved (params) {\n const spec = specify(params)\n return `formurlencoded(${spec})`\n}", "exQueryParams(request, response) {\n\n const params = request.query;\n console.log(params);\n \n return response.json({\n titulo: \"Exemplo Query Params\",\n parametros: params\n });\n }", "setRequestProperties (req) {\n const uri = this.parseUri(req.url)\n for (const key in uri) {\n req[key] = uri[key]\n }\n }", "async update({ params, request, response }) {}", "_prepareParams (params) {\n if (params == null) {\n params = {}\n }\n if (params.auth == null) {\n params.auth = {}\n }\n if (params.auth.key == null) {\n params.auth.key = this._authKey\n }\n if (params.auth.expires == null) {\n params.auth.expires = this._getExpiresDate()\n }\n\n return JSON.stringify(params)\n }", "function finalizeRequest(endpoint, data) {\n\n // No need to do anything if the URL is static (no parameters)\n if (!endpoint.parameters) {\n return { url: endpoint.url, payload: data };\n }\n\n // Swap all the parameter placeholders with the arguments.\n let url = endpoint.url;\n for (let index = 0; index < Object.keys(endpoint.parameters).length; index++) {\n if (data[endpoint.parameters[index]] === null || data[endpoint.parameters[index]] === undefined) {\n throw new Error(\"URL Path parameter missing\");\n }\n\n url = url.replace(`{${index}}`, data[endpoint.parameters[index]]);\n delete data[endpoint.parameters[index]];\n }\n\n return { url, payload: data };\n}", "parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n\n if (!key) {\n return;\n }\n\n this.capture(key);\n let value = '';\n\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n\n currentVal.push(decodedVal);\n } else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }", "function processQueryArgs(r) {\n var decodedQueryString = querystring.decode(r.variables.query_string);\n\n // For dash.js-cmcd version differences\n var cmcdKey;\n if (r.variables.query_string.includes('Common-Media-Client-Data'))\n cmcdKey = 'Common-Media-Client-Data';\n else cmcdKey = 'CMCD';\n\n var paramsArr = decodedQueryString[cmcdKey].split(',');\n var paramsObj = {};\n for (var i = 0; i < paramsArr.length; i++) {\n if (paramsArr[i].includes('=')) {\n var key = paramsArr[i].split('=')[0];\n var value = paramsArr[i].split('=')[1];\n } \n else { // e.g. `bs` key does not have a value in CMCD query arg format\n var key = paramsArr[i];\n var value = 'true';\n }\n paramsObj[key] = value;\n }\n \n return paramsObj;\n}", "route(req, res) {\n const parsedURL = url.parse(req.url, true)\n const route = parsedURL.pathname.replace(/^\\/+|\\/+$/g, '')\n\n const queryString = parsedURL.query\n const headers = req.headers\n const decoder = new StringDecoder('utf-8')\n\n let buffer = ''\n req.on('data', (data) => {\n buffer += decoder.write(data)\n })\n\n req.on('end', async () => {\n try {\n buffer += decoder.end()\n const request = new Request({ \n route: route,\n queryString: queryString,\n method: req.method,\n headers, headers,\n payload: buffer\n })\n\n let handler = this._router.handler(route, req.method)\n const response = await handler(request)\n let statusCode = response.statusCode()\n let payload = response.payload()\n\n statusCode = typeof(statusCode) == 'number' ? statusCode : 200\n payload = typeof(payload) == 'object' ? payload : {}\n \n res.setHeader('Content-Type', 'application/json')\n res.writeHead(statusCode)\n res.end(JSON.stringify(payload))\n } catch (err) {\n console.dir(err)\n res.writeHead(500)\n res.end(JSON.stringify({\n err: err,\n msg: 'internal server error'\n }))\n }\n })\n }", "function updateParam(name, value) {\n var newUrlHash = biomart.url.jsonify(location.href);\n if (value) biomart.params[name] = value;\n else delete biomart.params[name];\n _urlHash.query = $.param(biomart.params);\n newUrlHash.fragment = biomart.url.stringify(_urlHash);\n location = biomart.url.stringify(newUrlHash);\n }", "function requestFormatOverride() {\n return function(req, res, next) {\n var parsedUrl = url.parse(req.url);\n if ('json' === req.query.format || parsedUrl.pathname.match(/\\.json$/)) {\n parsedUrl.pathname = parsedUrl.pathname.replace(/\\.json$/, '');\n req.url = parsedUrl.pathname + ( parsedUrl.search || '' );\n req.headers.accept = 'application/json';\n }\n next();\n };\n}", "replaceParams (json, replacements) {\n let jsonString = JSON.stringify(json);\n jsonString = jsonString.replace(/%(\\w+)%/g, (placeholder, p1) =>\n // p1 - first group\n replacements[p1] || placeholder);\n return JSON.parse(jsonString);\n }", "parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }", "parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }", "parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }", "parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }", "parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }", "_params(req, opts) {\n const body = req.body || {};\n\n if (opts.name) body.Name = opts.name;\n if (opts.session) body.Session = opts.session;\n if (opts.token) {\n body.Token = opts.token;\n delete opts.token;\n }\n if (opts.near) body.Near = opts.near;\n if (opts.template) {\n const template = utils.normalizeKeys(opts.template);\n if (template.type || template.regexp) {\n body.Template = {};\n if (template.type) body.Template.Type = template.type;\n if (template.regexp) body.Template.Regexp = template.regexp;\n }\n }\n if (opts.service) {\n const service = utils.normalizeKeys(opts.service);\n body.Service = {};\n if (service.service) body.Service.Service = service.service;\n if (service.failover) {\n const failover = utils.normalizeKeys(service.failover);\n if (typeof failover.nearestn === \"number\" || failover.datacenters) {\n body.Service.Failover = {};\n if (typeof failover.nearestn === \"number\") {\n body.Service.Failover.NearestN = failover.nearestn;\n }\n if (failover.datacenters) {\n body.Service.Failover.Datacenters = failover.datacenters;\n }\n }\n }\n if (typeof service.onlypassing === \"boolean\") {\n body.Service.OnlyPassing = service.onlypassing;\n }\n if (service.tags) body.Service.Tags = service.tags;\n }\n if (opts.dns) {\n const dns = utils.normalizeKeys(opts.dns);\n if (dns.ttl) body.DNS = { TTL: dns.ttl };\n }\n\n req.body = body;\n }", "function assignUrl() {\n\tlet params = new URLSearchParams(window.location.search.substring(1));\t\n\tif (params.toString().length > 0 & params.has(\"v\")) {\n\t loadingtext.style.visibility = \"visible\"; \n\t var xhr = new XMLHttpRequest();\n\t xhr.addEventListener(\"load\", decodeListener);\n\t xhr.open(\"POST\",\n\t\t \"https://w6reayr37i.execute-api.us-east-1.amazonaws.com/test\",\n\t\t true);\n\t xhr.setRequestHeader('Content-Type', 'application/json');\n\t xhr.overrideMimeType( \"application/json; charset=x-user-defined\" );\n\t xhr.send(JSON.stringify(new String (params.get(\"v\"))));\n\t}\n\telse {\n\t loadingtext.style.visibility = \"hidden\";\n\t}\n }", "function responseHelper(req, payload) {\n return {\n type: req,\n payload,\n }\n}", "function formEncodedBody(type, body) {\n if ('application/x-www-form-urlencoded' !== type) {\n return body;\n }\n if ('string' === typeof body) {\n return body;\n }\n\n return querystring.stringify(body || {}, '&', '=');\n}", "responseTransformCb(resp) {\n return {\n ...resp,\n body: {\n ...resp.body,\n $$key: resp.body[this.primaryName],\n },\n };\n }", "constructor(rawResponse, _url, _query, _raw = null, _primary = null) {\r\n this._url = _url;\r\n this._query = _query;\r\n this._raw = _raw;\r\n this._primary = _primary;\r\n this._raw = rawResponse.postquery ? rawResponse.postquery : rawResponse;\r\n }", "exRequestBody(request, response) {\n const params = request.body;\n console.log(params);\n return response.json({\n titulo: \"Exemplo Request Body\",\n parametros: params\n });\n }", "function getRequestEssentials(originalRequest, reuseUrlToo = false) {\n const reqOptions = originalRequest.clone();\n if (reuseUrlToo) {\n reqOptions.url = originalRequest.url;\n }\n // We have to change the x-ms-client-request-id otherwise Azure endpoint\n // will return the initial 409 (cached) response.\n reqOptions.headers.set(\"x-ms-client-request-id\", generateUuid());\n // Set content-type to application/json\n reqOptions.headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n return reqOptions;\n}", "function getRequestEssentials(originalRequest, reuseUrlToo = false) {\n const reqOptions = originalRequest.clone();\n if (reuseUrlToo) {\n reqOptions.url = originalRequest.url;\n }\n // We have to change the x-ms-client-request-id otherwise Azure endpoint\n // will return the initial 409 (cached) response.\n reqOptions.headers.set(\"x-ms-client-request-id\", generateUuid());\n // Set content-type to application/json\n reqOptions.headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n return reqOptions;\n}", "function urlQueryValues() {}", "function getBodyOrQueryString(body, query) {\n if (query) {\n return '--' + query;\n }\n\n if (body && body !== '') {\n return '--' + body;\n }\n\n return body;\n}", "function bodyRequest(body){\n\t/* Process Request Modified from CS 290 Lecture \n\t http://eecs.oregonstate.edu/ecampus-video/CS290/core-content/hello-node/express-forms.html */\n\tvar qParams = [];\n\tfor (var p in body){ /* Loop through request body */\n\t\tqParams.push({'name':p,'value':body[p]})\n\t}\n\treturn qParams; /* Add requrest to context object */\n}", "function cleanseResponseBody(response) {\n var entity = response[\"entity\"];\n\n //console.log('***',entity);\n\n //TODO: DOUBLE CHECK THIS ISN'T NEEDED\n\n /*** STRIP OUT allowIllegalResourceCall HEADER ***/\n // entity = entity.substring(entity.indexOf(\"{\"));\n // return JSON.parse(entity);\n\n return entity;\n}", "function PartialResponse() {}", "function PartialResponse() {}", "function resolveLinkParameter(paramName, value, resolveData, root, args) {\n if (value === '$url') {\n return resolveData.usedRequestOptions.url;\n }\n else if (value === '$method') {\n return resolveData.usedRequestOptions.method;\n }\n else if (value === '$statusCode') {\n return resolveData.usedStatusCode;\n }\n else if (value.startsWith('$request.')) {\n // CASE: parameter is previous body\n if (value === '$request.body') {\n return resolveData.usedPayload;\n // CASE: parameter in previous body\n }\n else if (value.startsWith('$request.body#')) {\n const tokens = JSONPath.JSONPath({\n path: value.split('body#/')[1],\n json: resolveData.usedPayload\n });\n if (Array.isArray(tokens) && tokens.length > 0) {\n return tokens[0];\n }\n else {\n httpLog(`Warning: could not extract parameter '${paramName}' from link`);\n }\n // CASE: parameter in previous query parameter\n }\n else if (value.startsWith('$request.query')) {\n return resolveData.usedParams[Oas3Tools.sanitize(value.split('query.')[1], Oas3Tools.CaseStyle.camelCase)];\n // CASE: parameter in previous path parameter\n }\n else if (value.startsWith('$request.path')) {\n return resolveData.usedParams[Oas3Tools.sanitize(value.split('path.')[1], Oas3Tools.CaseStyle.camelCase)];\n // CASE: parameter in previous header parameter\n }\n else if (value.startsWith('$request.header')) {\n return resolveData.usedRequestOptions.headers[value.split('header.')[1]];\n }\n }\n else if (value.startsWith('$response.')) {\n /**\n * CASE: parameter is body\n *\n * NOTE: may not be used because it implies that the operation does not\n * return a JSON object and OpenAPI-to-GraphQL does not create GraphQL\n * objects for non-JSON data and links can only exists between objects.\n */\n if (value === '$response.body') {\n const result = JSON.parse(JSON.stringify(root));\n /**\n * _openapiToGraphql contains data used by OpenAPI-to-GraphQL to create the GraphQL interface\n * and should not be exposed\n */\n result._openapiToGraphql = undefined;\n return result;\n // CASE: parameter in body\n }\n else if (value.startsWith('$response.body#')) {\n const tokens = JSONPath.JSONPath({\n path: value.split('body#/')[1],\n json: root\n });\n if (Array.isArray(tokens) && tokens.length > 0) {\n return tokens[0];\n }\n else {\n httpLog(`Warning: could not extract parameter '${paramName}' from link`);\n }\n // CASE: parameter in query parameter\n }\n else if (value.startsWith('$response.query')) {\n // NOTE: handled the same way $request.query is handled\n return resolveData.usedParams[Oas3Tools.sanitize(value.split('query.')[1], Oas3Tools.CaseStyle.camelCase)];\n // CASE: parameter in path parameter\n }\n else if (value.startsWith('$response.path')) {\n // NOTE: handled the same way $request.path is handled\n return resolveData.usedParams[Oas3Tools.sanitize(value.split('path.')[1], Oas3Tools.CaseStyle.camelCase)];\n // CASE: parameter in header parameter\n }\n else if (value.startsWith('$response.header')) {\n return resolveData.responseHeaders[value.split('header.')[1]];\n }\n }\n throw new Error(`Cannot create link because '${value}' is an invalid runtime expression`);\n}", "function _parseResponse(locationHash) {\n const params = {};\n const query = locationHash.substring(locationHash.indexOf('?'));\n const regex = /([^#?&=]+)=([^&]*)/g;\n let match;\n\n // decode all parameter pairs\n while ((match = regex.exec(query)) !== null) { // eslint-disable-line\n params[decodeURIComponent(match[1])] = decodeURIComponent(match[2]);\n }\n\n return params;\n}", "function parseGetParams(existedParam, obj) {\n let toReturn = ''\n for (let key in obj) {\n toReturn += '&' + key + '=' + obj[key]\n }\n if (existedParam)\n toReturn = '?' + toReturn.substr(1)\n return toReturn\n}", "function replaceParams() {\n var href = $(this).attr(\"href\") || $(this).serialize()\n href = PlaceGuide.cleanParamString(href)\n var state = href.match(/[\\?\\&]/) ? $.deparam.querystring(href) : {}\n $.bbq.pushState(state, PlaceGuide.REPLACE_EXISTING)\n return false\n }", "async update({ params, request, response }) {\n }", "async update({ params, request, response }) {\n }", "function dummyRequest() {\n var req = {\n url: 'http://example.com/foo/bar?key=value',\n httpVersion: '1.1',\n method: 'POST',\n connection: {\n remoteAddress: '127.0.0.0'\n },\n headers: {\n 'content-length': '22',\n host: 'localhost:80',\n accept: '*/*'\n }\n };\n\n return req;\n}", "function matchUrlQueryParamValue(str){var match=str.match(QUERY_PARAM_VALUE_RE);return match?match[0]:'';}", "function PartialResponse() { }", "function PartialResponse() { }", "function PartialResponse() { }", "async function handleRequest(request) {\r\n\r\n const cookie = request.headers.get('cookie')\r\n const responseVariants = await fetchVariants('https://cfw-takehome.developers.workers.dev/api/variants')\r\n const bodyJSON = await responseVariants.json()\r\n console.log(bodyJSON['variants'][0])\r\n console.log(bodyJSON['variants'][1])\r\n const responseVariant1 = await fetchVariants(bodyJSON['variants'][0])\r\n const responseVariant1Body = await responseVariant1.body\r\n console.log(responseVariant1Body)\r\n const responseVariant2 = await fetchVariants(bodyJSON['variants'][1])\r\n const responseVariant2Body = await responseVariant2.body\r\n console.log(responseVariant2Body)\r\n let newResponse\r\n\r\n// check if cookies are set, URL is chosen in a cookie so the user always see the same variant\r\n if(cookie && cookie.includes('variant=var1')){\r\n\r\n var var1Res = new HTMLRewriter().on('*', new ElementHandler('varient1')).transform(responseVariant1)\r\n newResponse = new Response(var1Res.body, headerWithVariant1)\r\n } else if(cookie && cookie.includes('variant=var2')) {\r\n var var2Res = new HTMLRewriter().on('*', new ElementHandler('varient2')).transform(responseVariant2)\r\n newResponse = new Response(var2Res.body, headerWithVariant2)\r\n } else {\r\n // else evenly distribute the request between both the variants\r\n if(Math.random() > 0.5) {\r\n var var1Res = new HTMLRewriter().on('*', new ElementHandler('varient1')).transform(responseVariant1)\r\n newResponse = new Response(var1Res.body, headerWithVariant1)\r\n } else {\r\n var var2Res = new HTMLRewriter().on('*', new ElementHandler('varient2')).transform(responseVariant2)\r\n newResponse = new Response(var2Res.body, headerWithVariant2)\r\n }\r\n }\r\n return newResponse\r\n}", "_addBody(request, body) {\n debug('_addBody', body);\n request.body = typeof body === 'string' ? body : JSON.stringify(body);\n return request;\n }", "function _processRequestPOST(req, res){\n\t\t\n\t}", "function parseParams() {\n var md = view.getLocation().match(/^(.*?)#(.*)$/);\n var result = {};\n if(md) {\n var hash = md[2];\n hash.split('&').forEach(function(param) {\n var kv = param.split('=');\n if(kv[1]) {\n result[kv[0]] = decodeURIComponent(kv[1]);\n }\n });\n if(Object.keys(result).length > 0) {\n view.setLocation(md[1] + '#');\n }\n }\n return result; \n }", "function _processRequestGET(req, res){\n\t\tres.writePage(_buildInboundForm(req));\n\t}", "encodeParams(params) {\n let body = \"\";\n for (let key in params) {\n if (body.length) {\n body += \"&\";\n }\n body += key + \"=\";\n body += encodeURIComponent(params[key]);\n }\n return body;\n }", "async function updateResourceHandler(request, response) {\n const { _id } = request.variablePath;\n console.log(_id);\n const { parsedBody, db } = response;\n console.log(parsedBody);\n \n // get the db isntance\n const collection = db.collection(__collectionName);\n\n // now that we have the parsed body, we set the update parameter in mongodb\n // filter parameter\n\n const query = {\n _id: ObjectID.createFromHexString(_id),\n }\n // udpate paramter\n const update = {\n $set: parsedBody,\n };\n // options parameter\n const options = {\n returnOriginal: false,\n };\n try {\n const resultCommand = await collection.findOneAndUpdate(\n query,\n update,\n options,\n );\n // get the updated document\n const { value: updatedDocument } = resultCommand;\n console.log(resultCommand);\n response.jsonify(envelop.dataEnvelop(updatedDocument));\n \n } catch (error) {\n console.log(error);\n if (error instanceof MongoError) {\n if (error.code === 11000) {\n // that means this duplicate error message\n response.badRequestError(envelop.duplicateValueError(parsedBody));\n } else {\n response.badRequestError(envelop.unknownError());\n }\n } else {\n response.badRequestError(envelop.unknownError());\n }\n }\n }", "function rawBodySaver(req, res, buf) {\n req.rawBody = buf;\n }", "static prepareUrlParams(params) {\n return Object.keys(params)\n .filter(k => isTruthy(params[k]))\n .map(k => `${encodeURIComponent(k)}=${encodeURIComponent(params[k])}`)\n .join('&');\n }", "function absoluteUriParameters(res) {\n var params = [];\n var parent = res;\n do {\n res = parent;\n params = uriParameters(res).concat(params);\n parent = res.parent();\n } while (parent.definition().key().name == universes.Universe10.Resource.name);\n var api = parent;\n var baseUriParams = api.baseUriParameters();\n params = baseUriParameters(api).concat(params);\n return params;\n}", "function previewCode(request) {\n var str_headers = \"\";\n request.getHeadersNames().forEach(ele => {\n str_headers += `| ${ele} | ${request.getHeaderByName(ele, false)} |\\n`;\n });\n\n var str_url_params = \"\";\n request.getUrlParametersNames().forEach(ele => {\n str_url_params += `| ${ele} | ${request.getUrlParameterByName(\n ele,\n false\n )} |\\n`;\n });\n\n // uncomment if you want to debug values\n // console.log(\"🛠🛠🛠🛠🛠\");\n // console.log(request);\n // console.log(request.description);\n // console.log(request.method);\n // console.log(urlToPath(request.url));\n // console.log(str_headers);\n // console.log(str_url_params);\n // console.log(renderBody(request));\n // console.log(request.getLastExchange().responseStatusCode);\n // console.log(bodyToStr(request.getLastExchange().responseBody));\n // console.log(\"🛠🛠🛠🛠🛠\");\n\n //replace tmpelate with actual values\n var strTmp = stringTMP;\n strTmp = strTmp.replace(\"{::REQUEST_NAME::}\", request.name);\n strTmp = strTmp.replace(\"{::DESCRIPTION::}\", request.description);\n strTmp = strTmp.replace(\"{::TYPE::}\", request.method);\n strTmp = strTmp.replace(\"{::ROUTE::}\", urlToPath(request.url));\n strTmp = strTmp.replace(\n \"| {::HEADER_ID::} | {::HEADER_VALUE::} |\",\n str_headers\n );\n\n strTmp = strTmp.replace(\n \"| {::PARAMETER_ID::} | {::PARAMETER_VALUE::} |\",\n str_url_params\n );\n\n strTmp = strTmp.replace(\"{::BODY::}\", renderBody(request));\n strTmp = strTmp.replace(\n \"{::RESPONSE_STATUS::}\",\n request.getLastExchange()\n ? request.getLastExchange().responseStatusCode\n : \"\"\n );\n strTmp = strTmp.replace(\n \"{::RESPONSE::}\",\n bodyToStr(\n request.getLastExchange() ? request.getLastExchange().responseBody : \"\"\n )\n );\n\n return strTmp;\n}", "addParamsToEndPoint (endpoint, params) {\n /* We test each params: are they allowed for this endpoint\n * and are they valid ? If so, chain them; otherwise ignore\n */\n const queryString = Object.keys(params).reduce((qs, paramKey) => {\n // Is the param authorized ?\n const authorizedParam = this.authorizedParameters[endpoint] &&\n this.authorizedParameters[endpoint][paramKey]\n\n // If its value is valid add it to the queryString\n const paramValue = params[paramKey]\n if (authorizedParam && authorizedParam.validate(paramValue)) {\n qs.push(`${authorizedParam.qsKey}=${paramValue}`)\n }\n\n return qs\n }, []).join('&')\n\n // Add `?` at the beginning if necessary\n return queryString.length\n ? `${endpoint}?${queryString}`\n : endpoint\n }", "_dummyRequest(request) {\n console.log(\"\\n--------------------------- request ---------------------------\\n\");\n console.log(JSON.stringify(request, null, 2));\n console.log(\"\\n--------------------------- response ---------------------------\\n\");\n return \"dummy\";\n }", "addBodyParam(key, value) {\n payload[key] = value;\n }", "function deleteUnknownRequestData(req, res, next) {\r\n\r\n debug('deleteUnknownRequestData');\r\n\r\n debug('before deleting unknown query params: %s', JSON.stringify(req.query));\r\n\r\n const badQPKeys = _.difference(_.keys(req.query), searchConfig.supportedSolrQueryParams);\r\n\r\n if (!_.isEmpty(badQPKeys)) {\r\n\r\n req.query = _.omit(req.query, badQPKeys);\r\n\r\n statsd.increment('request.invalid.query-params');\r\n if (securityConfig.logBadKeys) {\r\n _.set(res.locals, 'logInfo.security.unknownQPs', _.join(badQPKeys));\r\n }\r\n }\r\n\r\n debug('after deleting unknown query params: %s', JSON.stringify(req.query));\r\n\r\n debug('before deleting unknown body properties: %s', JSON.stringify(req.body));\r\n\r\n const badBPKeys = _.difference(_.keys(req.body), searchConfig.supportedSolrQueryParams);\r\n\r\n if (!_.isEmpty(badBPKeys)) {\r\n\r\n req.body = _.omit(req.body, badBPKeys);\r\n\r\n statsd.increment('request.invalid.body-params');\r\n if (securityConfig.logBadKeys) {\r\n _.set(res.locals, 'logInfo.security.unknownBPs', _.join(badBPKeys));\r\n }\r\n }\r\n\r\n debug('unknown deleting unknown body properties: %s', JSON.stringify(req.body));\r\n\r\n next();\r\n}", "function rawBodySaver(req, res, buf) {\n req.rawBody = buf;\n}", "formatQueryParams() {\n let urls = this.url.split('?');\n if (urls.length <= 1) {\n return {};\n }\n let escape = querystring.unescape(urls[1]);\n let params = querystring.parse(escape);\n _.each(params, (v, k) => {\n if (_.isString(params[k])) {\n params[k] = JSON.parse(v);\n }\n });\n return params;\n }", "_appendParamsToUrl (url, params) {\n const sigData = this.calcSignature(params)\n const { signature } = sigData\n let jsonParams = sigData.params\n\n if (url.indexOf('?') === -1) {\n url += `?signature=${signature}`\n } else {\n url += `&signature=${signature}`\n }\n\n jsonParams = encodeURIComponent(jsonParams)\n url += `&params=${jsonParams}`\n\n return url\n }", "function updateParamsToUrl(paramKey, paramValue) {\n\n paramValue = window.btoa(JSON.stringify(paramValue));\n\n var nextUrl = window.location.origin + window.location.pathname;\n\n var params = getUrlVars(); //Get all the query params as an ARRAY\n\n var size = Object.keys(params).length;\n var i = 0;\n if (size == 0) {\n window.location.href = window.location.href + \"?\" + paramKey + \"=\" + paramValue;\n } else {\n\n nextUrl += '?'; // ? for started to attach the query string to url\n\n params[paramKey] = paramValue;\n\n // This is for search,selection by any one of ways => BRAND or SEARCH Keyword\n if (paramKey == 'search' && params['brand'] != undefined) {\n params['brand'] = '';\n }\n if (paramKey == 'brand' && params['search'] != undefined) {\n params['search'] = '';\n }\n\n if (paramKey == 'brand') {\n params['width'] = '';\n params['diameter'] = '';\n }\n\n // Attach the query params to the nextURL \n $.each(params, function(key, value) {\n if (value != '') {\n if (i == size) {\n nextUrl += key + '=' + value;\n } else {\n nextUrl += key + '=' + value + '&';\n }\n }\n\n i++;\n });\n\n\n window.location.href = nextUrl;\n }\n}", "function PostRequestHandler(HandledRequest, response, request, body) {\n switch (request.url) {\n case '/AuthUser':\n HandledRequest.body = JSON.parse(body);\n HandledRequest.type = 'AuthUser'\n break;\n case '/PriPubKeys':\n HandledRequest.body = JSON.parse(body);\n HandledRequest.type = 'ChangePriPubKey';\n break;\n case '/UpdateCreatePDID':\n HandledRequest.body = JSON.parse(body);\n HandledRequest.type = 'ChangePDID'\n break;\n case '/PDIDToUSB':\n HandledRequest.body = JSON.parse(body);\n HandledRequest.type = 'WritePDID';\n break;\n case '/PostPassword':\n HandledRequest.body = body.split('\\t');\n let cookies = parseCookies(request)\n if (Object.keys(cookies).length === 0 && cookies.constructor === Object) {\n RejectRequest(response, \"smile\")\n } else {\n HandledRequest.cookies = {\n UserID: cookies['user-id'],\n MasterPw: cookies.masterpw,\n Message: JSON.parse(cookies.message),\n }\n HandledRequest.type = 'PostPassword'\n }\n break;\n case '/ChooseUserUSB':\n HandledRequest.body = JSON.parse(body);\n HandledRequest.type = 'ChooseUserUSB';\n break;\n case '/ChooseUserPDID':\n HandledRequest.body = JSON.parse(body);\n HandledRequest.type = 'ChooseUserPDID';\n break;\n default:\n break;\n }\n return HandledRequest;\n}", "parseParams(){\n\t\tthis.app.use(\n\t\t\t(req, res, next) => {\n\t\t\t\treq.parsedParams = {};\n\n\t\t\t\tconst records = req.body;\n\t\t\t\tthis.log.debug({records}, 'parseParams() getting records');\n\t\t\t\tif(records || records === '' || records === 0){\n\t\t\t\t\treq.parsedParams = {\n\t\t\t\t\t\t...req.parsedParms,\n\t\t\t\t\t\trecords\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tconst rangeMatch = ( req.get('Range') || '' ).match(/=(\\d*)[-–](\\d*)$/);\n\t\t\t\tif(Array.isArray(rangeMatch) && typeof rangeMatch[1] == 'string' && typeof rangeMatch[2] == 'string'){\n\t\t\t\t\tlet end = parseInt(rangeMatch[2], 10);\n\t\t\t\t\tend = isNaN(end) ? undefined : end;\n\t\t\t\t\treq.parsedParams = {\n\t\t\t\t\t\t...req.parsedParams,\n\t\t\t\t\t\tstart: parseInt(rangeMatch[1], 10),\n\t\t\t\t\t\tend\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tconst idMatch = req.originalUrl.match(/\\/(?<id>\\d+)\\/*$/);\n\t\t\t\tif(Array.isArray(idMatch) && typeof idMatch[1] == 'string'){\n\t\t\t\t\treq.parsedParams = {\n\t\t\t\t\t\t...req.parsedParams,\n\t\t\t\t\t\tstart: parseInt(idMatch[1], 10), // yes, let this start override the range start above\n\t\t\t\t\t\tid: parseInt(idMatch[1], 10)\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tnext();\n\t\t\t}\n\t\t);\n\t}", "function getresVars(resvars) {\n\n for (i = 0; i < resvars.length; i++) {\n\n var tem = context.getVariable(resvars[i]);\n\n if (resvars[i] == \"response.headers.names\" && tem != null) {\n var hed = tem.toString().replace(\"[\", \"\").replace(\"]\", \"\");\n var hed_arr = hed.split(\",\");\n for (j = 0; j < hed_arr.length; j++)\n context.getVariable(\"response.header.\" + hed_arr[j].toString().trim() + \".values\");\n }\n\n if (resvars[i] == \"response.formparams.names\" && tem != null) {\n var form = tem.toString().replace(\"[\", \"\").replace(\"]\", \"\");\n var form_arr = form.split(\",\");\n for (j = 0; j < form_arr.length; j++)\n context.getVariable(\"response.formparam.\" + form_arr[j].toString().trim() + \".values\");\n }\n }\n\n}", "function updateParmDict(key, value) {\n var dict = getParmDictFromURL();\n dict[key] = value;\n return dict;\n}", "function http_prepare(x) {\n x = x.replace(' ', '%20')\n x = x.replace('!', '%21')\n x = x.replace('\"', '%22')\n x = x.replace('#', '%23')\n x = x.replace('$', '%24')\n x = x.replace('%', '%25')\n x = x.replace('&', '%26')\n x = x.replace(\"'\", '%27')\n x = x.replace('(', '%28')\n x = x.replace(')', '%29')\n x = x.replace('*', '%2A')\n x = x.replace('+', '%2B')\n x = x.replace(',', '%2C')\n x = x.replace('-', '%2D')\n x = x.replace('.', '%2E')\n x = x.replace('/', '%2F')\n return x;\n}", "protocolSendHTTP (request, method, data) {\n var self = this\n var from\n var to\n var responseBody\n var status = 200\n\n // If it's sending and error, `data` is the actual error. It will be\n // formatted using the object's formatErrorResponse method\n if (method === 'error') responseBody = self.formatErrorResponse(data)\n else responseBody = data\n\n // Sets location and range headers\n switch (method) {\n case 'post':\n status = 201\n if (self.handleGet) { request._res.setHeader('Location', request._req.originalUrl + data[ self.idProperty ]) }\n break\n\n case 'put':\n status = 201\n if (self.handleGet) {\n request._res.setHeader('Location', request._req.originalUrl)\n }\n break\n\n case 'delete':\n status = 200\n break\n\n case 'error':\n status = data.status || 500\n break\n\n case 'getQuery':\n if (request.options.ranges) {\n // Working out from-to/of\n // Note that if no records were returned, the format should be 0-0/X\n\n // Nice shorter variables\n var skip = request.options.ranges.skip || 0\n var total = request.total\n\n // Work out 'of': it will depend on the grandTotal, and that's it. It's an easy one.\n var of = request.grandTotal\n\n if (typeof request.grandTotal !== 'undefined') {\n // If nothing was returned, then the format 0-0/grandTotal is honoured\n if (!total) {\n from = 0\n to = 0\n // If something was returned, then `from` is the same as `skip`, and `to`\n // will depends on how many records were returned\n } else {\n from = skip\n to = from + total - 1\n }\n\n request._res.setHeader('Content-Range', 'items ' + from + '-' + to + '/' + of)\n }\n }\n break\n }\n\n // Send the response using HTTP\n request._res.status(status).json(responseBody)\n }", "getRedCapQueryParams() {\n let params = new URLSearchParams(location.search)\n // get PID from current location\n let pid = params.get('pid')\n let query_params = {\n pid,\n page: 'api',\n type: 'module',\n prefix: this.module_prefix,\n }\n if(window.redcap_csrf_token) query_params.redcap_csrf_token = window.redcap_csrf_token // csrf token for post requests\n return query_params\n }", "function prepRest() {\n targetStr = \"&@target='\" + hostUrl + \"'\";\n baseUrl = appUrl + \"/_api/SP.AppContextSite(@target)/\";\n executor = new SP.RequestExecutor(appUrl);\n }", "function processRequest(req, res, next) {\n if (config.debug) {\n console.log(util.inspect(req.body, null, 3));\n };\n\n var reqQuery = req.body,\n params = reqQuery.params || {},\n methodURL = reqQuery.methodUri,\n httpMethod = reqQuery.httpMethod,\n apiKey = reqQuery.apiKey,\n apiSecret = reqQuery.apiSecret,\n apiName = reqQuery.apiName\n apiConfig = apisConfig[apiName],\n key = req.sessionID + ':' + apiName;\n\n // Replace placeholders in the methodURL with matching params\n for (var param in params) {\n if (params.hasOwnProperty(param)) {\n if (params[param] !== '') {\n // URL params are prepended with \":\"\n var regx = new RegExp(':' + param);\n\n // If the param is actually a part of the URL, put it in the URL and remove the param\n if (!!regx.test(methodURL)) {\n methodURL = methodURL.replace(regx, params[param]);\n delete params[param]\n }\n } else {\n delete params[param]; // Delete blank params\n }\n }\n }\n\n var baseHostInfo = apiConfig.baseURL.split(':');\n var baseHostUrl = baseHostInfo[0],\n baseHostPort = (baseHostInfo.length > 1) ? baseHostInfo[1] : \"\";\n\n var paramString = query.stringify(params),\n privateReqURL = apiConfig.protocol + '://' + apiConfig.baseURL + apiConfig.privatePath + methodURL + ((paramString.length > 0) ? '?' + paramString : \"\"),\n options = {\n headers: apiConfig.headers,\n protocol: apiConfig.protocol + ':',\n host: baseHostUrl,\n port: baseHostPort,\n method: httpMethod,\n path: apiConfig.publicPath + methodURL// + ((paramString.length > 0) ? '?' + paramString : \"\")\n };\n\n if (['POST','DELETE','PUT'].indexOf(httpMethod) !== -1) {\n var requestBody = query.stringify(params);\n }\n\n if (['POST','PUT','DELETE'].indexOf(httpMethod) === -1) {\n options.path += ((paramString.length > 0) ? '?' + paramString : \"\");\n }\n\n // Add API Key to params, if any.\n if (apiKey != '' && apiKey != 'undefined' && apiKey != undefined) {\n if (options.path.indexOf('?') !== -1) {\n options.path += '&';\n }\n else {\n options.path += '?';\n }\n options.path += apiConfig.keyParam + '=' + apiKey;\n }\n\n // Perform signature routine, if any.\n if (apiConfig.signature) {\n if (apiConfig.signature.type == 'signed_md5') {\n // Add signature parameter\n var timeStamp = Math.round(new Date().getTime()/1000);\n var sig = crypto.createHash('md5').update('' + apiKey + apiSecret + timeStamp + '').digest(apiConfig.signature.digest);\n options.path += '&' + apiConfig.signature.sigParam + '=' + sig;\n }\n else if (apiConfig.signature.type == 'signed_sha256') { // sha256(key+secret+epoch)\n // Add signature parameter\n var timeStamp = Math.round(new Date().getTime()/1000);\n var sig = crypto.createHash('sha256').update('' + apiKey + apiSecret + timeStamp + '').digest(apiConfig.signature.digest);\n options.path += '&' + apiConfig.signature.sigParam + '=' + sig;\n }\n }\n\n // Setup headers, if any\n if (reqQuery.headerNames && reqQuery.headerNames.length > 0) {\n if (config.debug) {\n console.log('Setting headers');\n };\n var headers = {};\n\n for (var x = 0, len = reqQuery.headerNames.length; x < len; x++) {\n if (config.debug) {\n console.log('Setting header: ' + reqQuery.headerNames[x] + ':' + reqQuery.headerValues[x]);\n };\n if (reqQuery.headerNames[x] != '') {\n headers[reqQuery.headerNames[x]] = reqQuery.headerValues[x];\n }\n }\n\n options.headers = headers;\n }\n if(options.headers === void 0){\n options.headers = {}\n }\n\n // If POST, PUT, -or- DELETE\n if (requestBody) {\n options.headers['Content-Length'] = requestBody.length;\n options.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8';\n }\n else {\n options.headers['Content-Length'] = 0;\n delete options.headers['Content-Type'];\n }\n\n if (config.debug) {\n console.log(util.inspect(options));\n };\n\n var doRequest;\n if (options.protocol === 'https' || options.protocol === 'https:') {\n options.protocol = 'https:'\n doRequest = https.request;\n } else {\n doRequest = http.request;\n }\n\n if (config.debug) {\n console.log('Protocol: ' + options.protocol);\n }\n\n // API Call. response is the response from the API, res is the response we will send back to the user.\n var apiCall = doRequest(options, function(response) {\n response.setEncoding('utf-8');\n\n if (config.debug) {\n console.log('HEADERS: ' + JSON.stringify(response.headers));\n console.log('STATUS CODE: ' + response.statusCode);\n };\n\n res.statusCode = response.statusCode;\n\n var body = '';\n\n response.on('data', function(data) {\n body += data;\n })\n\n response.on('end', function() {\n delete options.agent;\n\n var responseContentType = response.headers['content-type'];\n\n switch (true) {\n case /application\\/javascript/.test(responseContentType):\n case /application\\/json/.test(responseContentType):\n if (config.debug) {\n console.log(util.inspect(body));\n }\n break;\n case /application\\/xml/.test(responseContentType):\n case /text\\/xml/.test(responseContentType):\n default:\n }\n\n // Set Headers and Call\n req.resultHeaders = response.headers;\n req.call = url.parse(options.host + options.path);\n req.call = url.format(req.call);\n\n // Response body\n req.result = body;\n\n if (config.debug) {\n console.log(util.inspect(body));\n }\n\n next();\n })\n }).on('error', function(e) {\n if (config.debug) {\n console.log('HEADERS: ' + JSON.stringify(res.headers));\n console.log(\"Got error: \" + e.message);\n console.log(\"Error: \" + util.inspect(e));\n };\n });\n\n if (requestBody) {\n apiCall.end(requestBody, 'utf-8');\n }\n else {\n apiCall.end();\n }\n}", "clone(update = {}) {\n // Perform a straightforward initialization of the new HttpHeaderResponse,\n // overriding the current parameters with new ones if given.\n return new HttpHeaderResponse({\n headers: update.headers || this.headers,\n status: update.status !== undefined ? update.status : this.status,\n statusText: update.statusText || this.statusText,\n url: update.url || this.url || undefined\n });\n }", "function transformUrl(params) {\n var endPoint = _endPointsHttp[0];\n var url = params.url;\n var urlParams = params.params;\n if (urlParams) {\n\n var paramsStr = JSON.stringify(params);\n var paramsParams64 = encodeURIComponent(escape(btoa(unescape(encodeURIComponent(paramsStr)))));\n url += '?params64=' + paramsParams64;\n }\n\n var str = JSON.stringify({\n url: url\n });\n var params64 = encodeURIComponent(escape(btoa(unescape(encodeURIComponent(str)))));\n var resultUrl = endPoint + \"/getProxyUrl?params64=\" + params64;\n //var resultUrl = params64;\n return resultUrl;\n}", "function addParams(name, jsonParams) {\n var newString;\n var newParams = \"\";\n for (var prop in jsonParams) {\n newString = `${name}[${prop}]=${jsonParams[prop]}&`;\n //console.log(newString);\n newParams = newParams.concat(newString);\n }\n //console.log(\"new\", newParams);\n newParams = newParams.slice(0,-1);\n return newParams;\n}", "function vercelHandler(req, res) {\n return res.json({\n body: req.body,\n query: req.query\n });\n}", "function parse_response_body(data) {\n\tvar response = {'headers':{}, 'body':''};\n\tpass(split(/\\n\\n/, \"\"+data, 2)).on(function(headers, body) {\n\t\tforeach(headers.split(\"\\n\")).do(function(line) {\n\t\t\tpass(split(/: */, \"\"+line, 2)).on(function(name, value) {\n\t\t\t\tresponse.headers[(\"\"+name).toLowerCase()] = value;\n\t\t\t});\n\t\t});\n\t\tif (body) {\n\t\t\tresponse.body = body;\n\t\t}\n\t});\n\treturn response;\n}", "function postParamsHandler(req, res) {\n params = {\n originalUrl: req.originalUrl,\n body: req.body,\n reqHeaders: req.headers,\n query: req.query // But POST request probably won't have query parameters\n };\n return res.render('lti/params', params);\n}", "remappedURI(uri, baseURI) {\n\n // var match = uri.match( RegExp( \"http://(vwf.example.com)/(.*)\" ) );\n\n // if ( match ) {\n // uri = window.location.protocol + \"//\" + window.location.host +\n // \"/proxy/\" + match[1] + \"/\" + match[2];\n // }\n if (baseURI && uri[0] !== \"/\") {\n\n let newURI = \"\";\n let parts = baseURI.split('/');\n parts[parts.length - 1] = uri;\n parts.map(el => {\n newURI = newURI + el + '/';\n })\n\n return newURI.slice(0, -1)\n\n }\n return uri\n\n }", "_parse(method, params) {\n if (!params) params = {};\n\n const queryParts = [];\n const pathParts = [];\n\n // ?Part\n const queryPart = method.url.split('?')[1];\n if (queryPart) {\n const queryParams = queryPart.split('&');\n for (let i in queryParams) {\n const name = queryParams[i].split('=')[0];\n (params[name] || params[name] === 0) && queryParts.push(`${name}=${encodeURIComponent(params[name])}`);\n }\n }\n\n // /part\n const pathPart = method.url.split('?')[0];\n const pathParams = pathPart.split('/');\n for (let k in pathParams) {\n if (pathParams[k][0] != ':') {\n pathParts.push(pathParams[k]);\n } else {\n const param = params[pathParams[k].substr(1)];\n if (param || param === 0) {\n pathParts.push(param);\n } else {\n // check for missing required params\n if (method.optional && method.optional.indexOf(pathParams[k].substr(1)) === -1) throw Error(`Missing mandatory parameter: ${pathParams[k].substr(1)}`);\n }\n }\n }\n\n // Filters\n const filters = ['query', 'years', 'genres', 'languages', 'countries', 'runtimes', 'ratings', 'certifications', 'networks', 'status'];\n for (let p in params) {\n filters.indexOf(p) !== -1 && queryParts.indexOf(`${p}=${encodeURIComponent(params[p])}`) === -1 && queryParts.push(`${p}=${encodeURIComponent(params[p])}`);\n }\n\n // Pagination\n if (method.opts['pagination']) {\n params['page'] && queryParts.push(`page=${params['page']}`);\n params['limit'] && queryParts.push(`limit=${params['limit']}`);\n }\n\n // Extended\n if (method.opts['extended'] && params['extended']) { \n queryParts.push(`extended=${params['extended']}`);\n }\n\n return [\n this._settings.endpoint,\n pathParts.join('/'),\n queryParts.length ? `?${queryParts.join('&')}` : ''\n ].join('');\n }", "sendResponse(url, query) {\n const stringified = qs_1.default.stringify(query);\n url = stringified ? `${url}?${stringified}` : url;\n this.response.location(encodeurl_1.default(url));\n this.response.safeStatus(this.statusCode);\n this.response.type('text/plain; charset=utf-8');\n this.response.send(`Redirecting to ${url}`);\n }", "static filterHttpRequest (request) {}", "newParams() {\n return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__[\"HttpParams\"]({\n encoder: PARAMETER_CODEC\n });\n }", "function getUrlParams (options$$1) {\n if (options$$1.url.indexOf('?') !== -1) {\n options$$1.requestParams = options$$1.requestParams || {};\n var queryString = options$$1.url.substring(options$$1.url.indexOf('?') + 1);\n options$$1.url = options$$1.url.split('?')[0];\n options$$1.requestParams = JSON.parse('{\"' + decodeURI(queryString).replace(/\"/g, '\\\\\"').replace(/&/g, '\",\"').replace(/=/g, '\":\"') + '\"}');\n }\n options$$1.url = cleanUrl(options$$1.url.split('?')[0]);\n return options$$1;\n}", "static fromString(content) {\n const requestBody = new RequestBody();\n requestBody.stringData = content;\n return requestBody;\n }" ]
[ "0.5775589", "0.5758471", "0.5758471", "0.57027376", "0.56722003", "0.56715554", "0.56715554", "0.5544978", "0.55126494", "0.5461489", "0.53812575", "0.53673273", "0.53009576", "0.53003883", "0.527321", "0.52616066", "0.5228786", "0.5202805", "0.5154325", "0.5144916", "0.5087959", "0.50751877", "0.50562966", "0.5046592", "0.50314903", "0.5030171", "0.5027344", "0.4997688", "0.49904567", "0.49904567", "0.49904567", "0.49904567", "0.49904567", "0.49864826", "0.49831948", "0.49275997", "0.4911099", "0.49053746", "0.49035123", "0.49013725", "0.48953152", "0.48953152", "0.48942217", "0.48905233", "0.4890285", "0.4889533", "0.48883352", "0.48883352", "0.48855948", "0.48848975", "0.48683193", "0.4864334", "0.48433322", "0.48391214", "0.48282585", "0.48172405", "0.4816829", "0.4816829", "0.4816829", "0.48153707", "0.48152044", "0.481335", "0.48129678", "0.47824335", "0.478082", "0.47785527", "0.47705853", "0.4769261", "0.4766819", "0.47651222", "0.47636828", "0.47595948", "0.475931", "0.4753565", "0.47530696", "0.47450078", "0.47358793", "0.47308353", "0.4723496", "0.47198302", "0.47193193", "0.4718601", "0.4716054", "0.47160205", "0.47157106", "0.47060847", "0.4703893", "0.47018054", "0.46975142", "0.46955934", "0.4694119", "0.46846458", "0.4681767", "0.46728554", "0.46672326", "0.4664136", "0.46619445", "0.4650317", "0.46346536", "0.4632565" ]
0.67443967
0
Allows a user to start an application. Takes tokens from user and sets apply stage end time.
apply(listing, tokens, data = '', opts) { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(), account = this.requireAccount(opts); return yield deployed.methods.apply(listing, tokens, data).send({ from: account }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function startApp() {\n\tinquirer\n\t\t.prompt([\n\t\t\t{\n\t\t\t\tname: 'startApp',\n\t\t\t\ttype: 'confirm',\n\t\t\t\tmessage: 'Would you like to assemble a team?',\n\t\t\t},\n\t\t])\n\t\t.then((res, err) => {\n\t\t\tif (err) console.error(err);\n\t\t\tif (res.startApp) {\n\t\t\t\taddManager();\n\t\t\t} else {\n\t\t\t\tprocess.exit();\n\t\t\t}\n\t\t});\n}", "function beginApp() {\n console.log('Please build your team');\n newMemberChoice();\n}", "function startApp() {\n readSettings(storage.readJSON(\"sleeplog.json\", true) || {});\n drawNightTo(prevDays);\n Bangle.setUI(\"leftright\", (cb) => {\n if (!cb) {\n eval(storage.read(\"sleeplog.settings.js\"))(startApp);\n } else if (prevDays + cb >= -1) {\n drawNightTo((prevDays += cb));\n }\n });\n}", "function startApp(){\n inquirer.prompt({\n name: 'start',\n type: 'list',\n message: 'What would you like to do?',\n choices: [\n 'Department',\n 'Role',\n 'Employee',\n 'Update Employee Role',\n 'View Departments',\n 'View Roles',\n 'View Employees',\n 'All Done!'\n ]\n })\n .then((answer) => {\n switch (answer.start){\n case 'Department':\n addDepartment();\n break;\n case 'Role':\n addRole();\n break;\n case 'Employee':\n addEmployee();\n break;\n case 'Update Employee Role':\n updateRole();\n break;\n case 'View Departments':\n viewDepartments();\n break;\n case 'View Roles':\n viewRoles();\n break;\n case 'View Employees':\n viewEmployees();\n break;\n case 'All Done!':\n console.log('Finished!');\n process.exit();\n break;\n }\n }\n )}", "function runApp() {\n console.log('Please enter Manager information to begin building team');\n addManager();\n}", "start() {\r\n // Add your logic here to be invoked when the application is started\r\n }", "appExecute() {\n\n\t\tthis.appConfig();\n\t\tthis.includeRoutes(this.app);\n\n\t\tthis.http.listen(this.port, this.host, () => {\n\t\t\tconsole.log(`Listening on http://${this.host}:${this.port}`);\n\t\t});\n\t}", "async function start () {\n\n\ttry {\n\t\t/*\n\t\t * Store basic inforamation about the application\n\t\t * for other modules to use */\n\t\t//args.name_pretty = 'Admin Dashboard';\n\t\t//args.desc = 'Mission control station';\n\n\t\t/*\n\t\t * Common startup file for all apss */\n\t\t//log = await startup.init(args);\n\t\t//await kv.get_and_store (`config/app/vc/`, { recurse : true });\n\n\t\t//log.info ({ args }, `starting app ${name} with arguments`);\n\n\t\trequire ('./www');\n\t}\n\tcatch (e) {\n\t\tconsole.error (colors.red ('fatal error : ') + e);\n\t\tif (e.stack)\n\t\t\tconsole.error (e.stack);\n\n\t\tprocess.exit (1);\n\t}\n}", "function appStart() {\n window.start();\n}", "start() {\n // Add your logic here to be invoked when the application is started\n }", "function startApp() {\n Owners.init();\n TXID.blocknumber = 0\n if(config.ipfshost == 'ipfs')ipfs.id(function (err, res) {\n if(err){}\n if(res)plasma.id = res.id\n })\n processor = hiveState(client, startingBlock, config.prefix, config.username);\n processor.on('send', HR.send);\n processor.on('claim', HR.claim);\n processor.on('node_add', HR.node_add);\n //processor.on('node_delete', HR.node_delete);\n processor.on('report', HR.report);\n processor.on('gov_down', HR.gov_down);\n processor.on('gov_up', HR.gov_up);\n processor.onOperation('account_update', HR.account_update);\n processor.onOperation('comment', HR.comment);\n processor.on('queueForDaily', HR.q4d)\n processor.on('nomention', HR.nomention)\n if(config.features.pob){\n processor.on('power_up', HR.power_up); // power up tokens for vote power in layer 2 token proof of brain\n processor.on('power_down', HR.power_down);\n processor.on('power_grant', HR.power_grant);\n processor.on('vote_content', HR.vote_content);\n processor.onOperation('vote', HR.vote) //layer 2 voting\n processor.onOperation('delegate_vesting_shares', HR.delegate_vesting_shares);\n processor.onOperation('comment_options', HR.comment_options);\n processor.on('cjv', HR.cjv);\n processor.on('cert', HR.cert); // json.cert is an open ended hope to interact with executable posts... unexplored\n }\n if(config.features.dex){\n processor.on('dex_sell', HR.dex_sell);\n processor.on('dex_clear', HR.dex_clear);\n processor.on('sig_submit', HR.sig_submit); //dlux is for putting executable programs into IPFS... this is for additional accounts to sign the code as non-malicious\n processor.on('osig_submit', HR.osig_submit);\n }\n if(config.features.dex || config.features.nft || config.features.ico){\n processor.onOperation('transfer', HR.transfer);\n }\n if(config.features.nft){\n processor.on('ft_bid', HR.ft_bid)\n processor.on('ft_auction', HR.ft_auction)\n processor.on('ft_sell_cancel', HR.ft_sell_cancel)\n processor.on('ft_buy', HR.ft_buy)\n processor.on('ft_sell', HR.ft_sell)\n processor.on('ft_escrow_cancel', HR.ft_escrow_cancel)\n processor.on('ft_escrow_complete', HR.ft_escrow_complete)\n processor.on('ft_escrow', HR.ft_escrow)\n processor.on('fts_sell_h', HR.fts_sell_h)\n processor.on('fts_sell_hcancel', HR.fts_sell_hcancel)\n processor.on('nft_buy', HR.nft_buy)\n processor.on('nft_sell', HR.nft_sell)\n processor.on('nft_sell_cancel', HR.nft_sell_cancel)\n processor.on('ft_transfer', HR.ft_transfer)\n processor.on('ft_airdrop', HR.ft_airdrop)\n processor.on('nft_transfer', HR.nft_transfer)\n processor.on('nft_auction', HR.nft_auction)\n processor.on('nft_hauction', HR.nft_hauction)\n processor.on('nft_bid', HR.nft_bid)\n processor.on('nft_transfer_cancel', HR.nft_transfer_cancel)\n processor.on('nft_reserve_transfer', HR.nft_reserve_transfer)\n processor.on('nft_reserve_complete', HR.nft_reserve_complete)\n processor.on('nft_define', HR.nft_define)\n processor.on('nft_add_roy', HR.nft_add_roy)\n processor.on('nft_div', HR.nft_div)\n processor.on('nft_define_delete', HR.nft_define_delete)\n processor.on('nft_melt', HR.nft_delete)\n processor.on('nft_mint', HR.nft_mint)\n processor.on('nft_pfp', HR.nft_pfp)\n }\n //do things in cycles based on block time\n processor.onBlock(\n function (num, pc, prand, bh) {\n Log.block(num);\n if(num < TXID.blocknumber){\n require('process').exit(2)\n } else {TXID.clean(num)}\n return new Promise((resolve, reject) => {\n let Pchron = getPathSome(['chrono'],{\n gte: \"\" + num - 1,\n lte: \"\" + (num + 1)\n })\n let Pmss = getPathSome(['mss'],{\n gte: \"\" + (num - 1000000),\n lte: \"\" + (num - 100)\n }) //resign mss\n let Pmsso = getPathSome(['msso'],{\n gte: \"\" + (num - 1000000),\n lte: \"\" + (num - 100)\n })\n let Pmsa = getPathObj(['msa'])\n let Pmso = getPathObj(['mso'])\n Promise.all([Pchron, Pmss, Pmsa, Pmso, Pmsso]).then(mem => {\n var a = mem[0],\n mss = mem[1], //resign mss\n msa = mem[2], //if length > 80... sign these\n mso = mem[3],\n msso = mem[4],\t\n mso_keys = Object.keys(mso)\n let chrops = {},\n msa_keys = Object.keys(msa)\n mso_keys = Object.keys(mso)\n for (var i in a) {\n chrops[a[i]] = a[i]\n }\n var ints = 0\n let j = Object.keys(chrops)\n loop(0,ints,j)\n function loop (i,ints, j){\n ints++\n let delKey = chrops[j[i]]\n if(i<j.length)ChonOp(delKey, ints, prand, num).then(x=>{\n i++\n if(i<j.length)loop(i,ints,j)\n else every()\n })\n else every()\n function ChonOp (delKey, ints, prand, num){\n return new Promise((res,rej)=>{\n store.getWith(['chrono', chrops[j[i]]], {delKey, ints}, function(e, b, passed) {\n switch (b.op) {\n case 'mint':\n //{op:\"mint\", set:json.set, for: from}\n let setp = getPathObj(['sets', b.set]);\n NFT.mintOp([setp], passed.delKey, num, b, `${passed.ints}${prand}`)\n .then(x=>res(x))\n break;\n case 'ahe':\n let ahp = getPathObj(['ah', b.item]),\n setahp = ''\n if (b.item.split(':')[0] != 'Qm') setahp = getPathObj(['sets', b.item.split(':')[0]])\n else setahp = getPathObj(['sets', `Qm${b.item.split(':')[1]}`])\n NFT.AHEOp([ahp, setahp], passed.delKey, num, b)\n .then(x=>res(x))\n break;\n case 'ahhe':\n let ahhp = getPathObj(['ahh', b.item]),\n setahhp = ''\n if (b.item.split(':')[0] != 'Qm') setahhp = getPathObj(['sets', b.item.split(':')[0]])\n else setahhp = getPathObj(['sets', `Qm${b.item.split(':')[1]}`])\n NFT.AHHEOp([ahhp, setahhp], passed.delKey, num, b, bh.timestamp)\n .then(x=>res(x))\n break;\n case 'ame':\n let amp = getPathObj(['am', b.item]),\n setamp = ''\n if (b.item.split(':')[0] != 'Qm') setamp = getPathObj(['sets', b.item.split(':')[0]])\n else setamp = getPathObj(['sets', `Qm${b.item.split(':')[1]}`])\n NFT.AMEOp([amp, setamp], passed.delKey, num, b)\n .then(x=>res(x))\n break;\n case 'div':\n let contract = getPathObj(['div', b.set]),\n set = getPathObj(['sets', b.set]),\n sales = getPathObj(['ls']),\n auctions = getPathObj(['ah'])\n NFT.DividendOp([contract, set, sales, auctions], passed.delKey, num, b)\n .then(x=>res(x))\n break;\n case 'del_pend':\n store.batch([{ type: 'del', path: ['chrono', passed.delKey] }, { type: 'del', path: ['pend', `${b.author}/${b.permlink}`]}], [res, rej,'info'])\n break;\n case 'ms_send':\n recast(b.attempts, b.txid, num)\n store.batch([{ type: 'del', path: ['chrono', passed.delKey] }], [res, rej,'info'])\n break;\n case 'expire':\n release(b.from, b.txid, num)\n store.batch([{ type: 'del', path: ['chrono', passed.delKey] }], [res, rej,'info'])\n break;\n case 'check':\n enforce(b.agent, b.txid, { id: b.id, acc: b.acc }, num)\n store.batch([{ type: 'del', path: ['chrono', passed.delKey] }], [res, rej,'info'])\n break;\n case 'denyA':\n enforce(b.agent, b.txid, { id: b.id, acc: b.acc }, num)\n store.batch([{ type: 'del', path: ['chrono', passed.delKey] }], [res, rej,'info'])\n break;\n case 'denyT':\n enforce(b.agent, b.txid, { id: b.id, acc: b.acc }, num)\n store.batch([{ type: 'del', path: ['chrono', passed.delKey] }], [res, rej,'info'])\n break;\n case 'gov_down': //needs work and testing\n let plb = getPathNum(['balances', b.by]),\n tgovp = getPathNum(['gov', 't']),\n govp = getPathNum(['gov', b.by])\n Chron.govDownOp([plb, tgovp, govp], b.by, passed.delKey, num, passed.delKey.split(':')[1], b)\n .then(x=>res(x))\n break;\n case 'power_down': //needs work and testing\n let lbp = getPathNum(['balances', b.by]),\n tpowp = getPathNum(['pow', 't']),\n powp = getPathNum(['pow', b.by])\n Chron.powerDownOp([lbp, tpowp, powp], b.by, passed.delKey, num, passed.delKey.split(':')[1], b)\n .then(x=>res(x))\n break;\n case 'post_reward':\n Chron.postRewardOP(b, num, passed.delKey.split(':')[1], passed.delKey)\n .then(x=>res(x))\n break;\n case 'post_vote':\n Chron.postVoteOP(b, passed.delKey)\n .then(x=>res(x))\n break;\n default:\n\n }\n })\n })\n }\n }\n function every(){\n return new Promise((res, rej)=>{\n let promises = [HR.margins()]\n if(num % 100 !== 50){\t\n if(mso_keys.length){\t\n promises.push(new Promise((res,rej)=>{\t\n osig_submit(osign(num, 'mso', mso_keys, bh))\t\n .then(nodeOp => {\t\n res('SAT')\t\n try{\t\n if(plasma.rep && JSON.parse(nodeOp[1][1].json).sig)NodeOps.unshift(nodeOp)\t\n }catch(e){}\t\n })\t\n .catch(e => { rej(e) })\t\n }))\t\n } else if(msso.length){\t\n promises.push(new Promise((res,rej)=>{\t\n osig_submit(osign(num, 'msso', msso, bh))\t\n .then(nodeOp => {\t\n res('SAT')\t\n try {\t\n if(plasma.rep && JSON.parse(nodeOp[1][1].json).sig)NodeOps.unshift(nodeOp) //check to see if sig\t\n }catch(e){}\t\n })\t\n .catch(e => { rej(e) })\t\n }))\t\n } else if(msa_keys.length > 80){\n promises.push(new Promise((res,rej)=>{\n sig_submit(consolidate(num, plasma, bh))\n .then(nodeOp => {\n res('SAT')\n if(plasma.rep)NodeOps.unshift(nodeOp)\n })\n .catch(e => { rej(e) })\n }))\n }\n for(var missed = 0; missed < mss.length; missed++){\n if(mss[missed].split(':').length == 1){\n missed_num = mss[missed]\n promises.push(new Promise((res,rej)=>{\n sig_submit(sign(num, plasma, missed_num, bh))\n .then(nodeOp => {\n res('SAT')\n if(JSON.parse(nodeOp[1][1].json).sig){\n NodeOps.unshift(nodeOp)\n }\n })\n .catch(e => { rej(e) })\n })) \n break;\n }\n }\n }\n if (num % 100 === 0 && processor.isStreaming()) {\n client.database.getDynamicGlobalProperties()\n .then(function(result) {\n console.log('At block', num, 'with', result.head_block_number - num, `left until real-time. DAO in ${30240 - ((num - 20000) % 30240)} blocks`)\n });\n }\n if (num % 100 === 50) {\n promises.push(new Promise((res,rej)=>{\n report(plasma, consolidate(num, plasma, bh))\n .then(nodeOp => {\n res('SAT')\n if(processor.isStreaming())NodeOps.unshift(nodeOp)\n })\n .catch(e => { rej(e) })\n }))\n }\n if ((num - 18505) % 28800 === 0) { //time for daily magic\n promises.push(dao(num))\n block.prev_root = block.root\n block.root = ''\n }\n if (num % 100 === 0) {\n promises.push(tally(num, plasma, processor.isStreaming()));\n }\n if (num % 100 === 99) {\n if(config.features.liquidity)promises.push(Liquidity());\n }\n if ((num - 2) % 3000 === 0) {\n promises.push(voter());\n }\n Promise.all(promises).then(()=>resolve(pc))\n })\n }\n if (num % 100 === 1 && !block.root) {\n block.root = 'pending'\n block.chain = []\n block.ops = []\n store.get([], function(err, obj) {\n const blockState = Buffer.from(stringify([num + 1, obj]))\n\n ipfsSaveState(num, blockState, ipfs)\n .then(pla => {\n TXID.saveNumber = pla.hashBlock\n block.root = pla.hashLastIBlock\n plasma.hashSecIBlock = plasma.hashLastIBlock\n plasma.hashLastIBlock = pla.hashLastIBlock\n plasma.hashBlock = pla.hashBlock\n })\n .catch(e => { console.log(e) })\n\n })\n } else if (num % 100 === 1) {\n const blockState = Buffer.from(stringify([num + 1, block]))\n block.ops = []\n issc(num, blockState, null, 0, 0)\n }\n if (config.active && processor.isStreaming() ) {\n store.get(['escrow', config.username], function(e, a) {\n if (!e) {\n for (b in a) {\n if (!plasma.pending[b]) {\n NodeOps.push([\n [0, 0],\n typeof a[b] == 'string' ? JSON.parse(a[b]) : a[b]\n ]);\n plasma.pending[b] = true\n }\n }\n var ops = [],\n cjbool = false,\n votebool = false\n signerloop: for (i = 0; i < NodeOps.length; i++) {\n if (NodeOps[i][0][1] == 0 && NodeOps[i][0][0] <= 100) {\n if (NodeOps[i][1][0] == 'custom_json' && JSON.parse(NodeOps[i][1][1].json).sig_block && num - 100 > JSON.parse(NodeOps[i][1][1].json).sig_block){\n NodeOps.splice(i, 1)\n continue signerloop\n }\n if (NodeOps[i][1][0] == 'custom_json' && !cjbool ) {\n ops.push(NodeOps[i][1])\n NodeOps[i][0][1] = 1\n cjbool = true\n } else if (NodeOps[i][1][0] == 'custom_json'){\n // don't send two jsons at once\n } else if (NodeOps[i][1][0] == 'vote' && !votebool){\n ops.push(NodeOps[i][1])\n NodeOps[i][0][1] = 1\n votebool = true\n } else if (NodeOps[i][1][0] == 'vote'){\n // don't send two votes at once\n } else { //need transaction limits here... how many votes or transfers can be done at once?\n ops.push(NodeOps[i][1])\n NodeOps[i][0][1] = 1\n }\n } else if (NodeOps[i][0][0] < 100) {\n NodeOps[i][0][0]++\n } else if (NodeOps[i][0][0] == 100) {\n NodeOps[i][0][0] = 0\n }\n }\n for (i = 0; i < NodeOps.length; i++) {\n if (NodeOps[i][0][2] == true) {\n NodeOps.splice(i, 1)\n }\n }\n if (ops.length) {\n console.log('attempting broadcast', ops)\n broadcastClient.broadcast.send({\n extensions: [],\n operations: ops\n }, [config.active], (err, result) => {\n if (err) {\n console.log(err) //push ops back in.\n for (q = 0; q < ops.length; q++) {\n if (NodeOps[q][0][1] == 1) {\n NodeOps[q][0][1] = 3\n }\n }\n } else {\n console.log('Success! txid: ' + result.id)\n for (q = ops.length - 1; q > -1; q--) {\n if (NodeOps[q][0][0] = 1) {\n NodeOps.splice(q, 1)\n }\n }\n }\n });\n }\n } else {\n console.log(e)\n }\n })\n }\n })\n })\n });\n processor.onStreamingStart(HR.onStreamingStart);\n processor.start();\n setTimeout(function(){\n API.start();\n }, 3000);\n}", "start() {\n Emitters.get(APPLICATION).emit(ON_START);\n this._app.start();\n }", "function launchAppWithToken(token) {\n const mainWindow = new BrowserWindow({\n width: 800,\n height: 600,\n webPreferences: {\n preload: path.join(__dirname, 'preload.js'),\n devTools: isDev,\n },\n })\n\n mainWindow.loadFile('index.html')\n\n if (!isDev) {\n // Check for updates right away\n autoUpdater.addAuthHeader(`Bearer ${token}`)\n autoUpdater.checkForUpdatesAndNotify()\n\n // Check for updates periodically\n setInterval(\n autoUpdater.checkForUpdatesAndNotify,\n 1000 * 60 * 60 * 3, // 3 hours in ms\n )\n }\n}", "function startServer() {\n controller.ready(async () => {\n console.log(`\\nBotkit App is Running!\\n`);\n botHelpers(bot)\n .getChannels({})\n .then(channels => log(\"Loaded Channels:\", channels))\n .catch(console.error);\n const subscriptions = await subscription.getSubscriptions();\n cache.setChannelSubscriptions(subscriptions);\n log(\"Found Subscriptions:\", subscriptions);\n\n skills(controller);\n commands(controller);\n });\n\n let server = null;\n if (controller.webserver) {\n server = controller.webserver;\n\n /**\n * This module implements the oauth routes needed to install an app\n */\n server.get(\"/install\", (req, res) => {\n // getInstallLink points to slack's oauth endpoint and includes clientId and scopes\n res.redirect(controller.adapter.getInstallLink());\n });\n\n server.get(\"/install/auth\", async (req, res) => {\n log(\"Auth Requested\");\n try {\n const results = await controller.adapter.validateOauthCode(\n req.query.code\n );\n\n log(\"FULL OAUTH DETAILS\", JSON.stringify(results));\n\n if (results.bot && results.bot.bot_user_id) {\n await addOrUpdateBot(results);\n }\n if (results.user && results.user.id) {\n await addOrUpdateUser(results);\n }\n\n // // Store token by team in bot state.\n tokenCache[results.team_id] = results.bot.bot_access_token;\n\n // // Capture team to bot id\n userCache[results.team_id] = results.bot.bot_user_id;\n\n res.json(\"Success! Bot installed.\");\n } catch (err) {\n console.error(\"OAUTH ERROR:\", err);\n res.status(401);\n res.send(err.message);\n }\n });\n\n server.get(\"/\", (req, res) => {\n res.send(`This app is running Botkit ${controller.version}.`);\n });\n }\n\n return { server, controller };\n}", "function launchApp() {\r\n console.log(\"Hypersubs: Launching.\");\r\n $('#hypersubs-main-dialog').dialog('open');\r\n $('#hypersubs-splash').css('display', 'none');\r\n loadFlange(0, userPreferences.smartFill);\r\n }", "Start(){\n // si non securisee on enregistre un token anonyme\n if(this._AppIsSecured == \"false\"){localStorage.setItem(this._DbKeyLogin, \"Anonyme\")}\n // Get Token\n this._LoginToken = this.GetTokenLogin() \n if(this._LoginToken != null){\n this.LoadApp()\n } else {\n const OptionCoreXLogin = {Site:this._Site, CallBackLogedIn:this.LoginDone.bind(this), Color: this._Color, AllowSignUp: this._AllowSignUp}\n let MyLogin = new CoreXLogin(OptionCoreXLogin) // afficher le UI de login\n MyLogin.Render()\n }\n }", "appExecute() {\n\n this.appConfig();\n this.includeRoutes();\n\n this.http.listen(this.port, this.host, () => {\n console.log(`Listening on http://${this.host}:${this.port}`);\n });\n }", "function runApp() {\n showCurrentGames();\n searchCountryMatches();\n selectSearchedTeam();\n listOfWorldCupTeams();\n}", "function application_post_init(){\n \tappscore.print.start();\n \tmenuVisibility = false;\n //\tgoogleAnalytics = new ganalytics.GAnalyticsLib(\"dsfhjdfhsdhskh\"); //UA-80818309-1 for MyPower\n\tkony.application.setApplicationCallbacks(callbacksObj);\n\tif(loginManager.getLogin() != null){\n\t\t// Validate token\n\t\tvar token = loginManager.getLogin().token;\n\t\t// If token is valid then navigate to FormMenu\n\t\t// invokeAppService(\"Login\", {\"token\":token}, function(){status, resultTable});\n\t\t// else navigate to FormLogin\n\t\treturn frmSplash;\n\t}\n \tappscore.print.stop(); \n}", "function appStart() {\n\t$status.innerHTML = \"App ready!\";\n}", "function start(){\r\n helloUser();\r\n }", "function startApp() {\n //first calls, default dataset? \n }", "startApp() {\n inquirer.prompt(this.startActions).then(data => {\n switch (data.actions) {\n // View All Departments\n case \"View All Departments\":\n this.viewDepartments();\n break;\n // View All Roles\n case \"View All Roles\":\n this.viewRoles();\n break;\n // View All Employees\n case \"View All Employees\":\n this.viewEmployees();\n break;\n // View Employees By Manager\n case \"View Employees By Manager\":\n this.viewEmployeesByManager();\n break;\n //View Employees By Department\n case \"View Employees By Department\":\n this.viewEmployeesByDepartment();\n break;\n // Add A Department\n case \"Add A Department\":\n this.addDepartment();\n break;\n // Add A Role\n case \"Add A Role\":\n this.addRole();\n break;\n // Add An Employee\n case \"Add An Employee\":\n this.addEmployee();\n break;\n // Update Employee Role\n case \"Update Employee Role\":\n this.updateRole();\n break;\n // Update Employee Manager\n case \"Update Employee Manager\":\n this.updateManager();\n break;\n // Delete A Department\n case \"Delete A Department\":\n this.deleteDepartment();\n break;\n // Delete A Role\n case \"Delete A Role\":\n this.deleteRole();\n break;\n // Delete An Employee\n case \"Delete An Employee\":\n this.deleteEmployee();\n break;\n // case \"View Department Budgets\":\n // this.viewBudgets();\n // break;\n case \"Exit\":\n connection.end();\n break;\n }\n })\n }", "function startApp() {\n\tswitch (arg_1) {\n\t\tcase 'spotify-this-song':\n\t\t\tgetMusic();\n\t\t\tbreak;\n\t\tcase 'my-tweets':\n\t\t\tgetTweets();\n\t\t\tbreak;\n\t\tcase 'movie-this':\n\t\t\tgetMovie();\n\t\t\tbreak;\n\t\tcase 'do-what-it-says':\n\t\t\treadRandom();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log('Wrong entry! Please try again.');\n\t}\n}", "function startApp() {\n gapi.load('auth2', function() {\n gapi.client.load('plus', 'v1').then(function() {\n gapi.signin2.render('signin-button', {\n scope: 'https://www.googleapis.com/auth/plus.login',\n fetch_basic_profile: false\n });\n gapi.auth2.init({\n fetch_basic_profile: false,\n scope: 'https://www.googleapis.com/auth/plus.login'\n }).then(\n function() {\n // console.log('init');\n auth2 = gapi.auth2.getAuthInstance();\n auth2.isSignedIn.listen(updateSignIn);\n auth2.then(updateSignIn());\n });\n });\n });\n }", "function start() {\n\tvar TWITTER_CONSUMER_KEY = \"\"; // Apply for these values at dev.twitter.com\n\tvar TWITTER_CONSUMER_SECRET = \"\";\n\tvar TWITTER_HANDLE = \"\";\n\t\n\tScriptProperties.setProperty(\"TWITTER_CONSUMER_KEY\", TWITTER_CONSUMER_KEY);\n\tScriptProperties.setProperty(\"TWITTER_CONSUMER_SECRET\", TWITTER_CONSUMER_SECRET);\n\tScriptProperties.setProperty(\"TWITTER_HANDLE\", TWITTER_HANDLE);\n\t\t\n\tvar triggers = ScriptApp.getScriptTriggers();\n\tfor (var i=0; i < triggers.length; i++) {\n\t\tScriptApp.deleteTrigger(triggers[i]); } // Clear existing triggers first\n\t\t\n\tScriptApp.newTrigger(\"setupTweet\").timeBased().everyMinutes(1).create(); }", "start() {\n console.log('Welcome to the team building application! Please enter the name of your team manager:')\n const manager = new Manager();\n inquirer\n .prompt([questions[0], questions[2], questions[3]]).then((val) => {\n this.getName(val.managerName);\n this.getID();\n this.getEMail(val.email);\n manager.getRole(this, val.officeNumber);\n myTeam.push(this);\n askForNext();\n });\n }", "function startApp() {\n if(debug) {\n console.log(\"Page ready...\");\n }\n // Add loader\n $('#container').append('<div id=\"loader\"><img src=\"imgs/loader.gif\">LOADING</div>');\n // Add Events\n addEvents();\n \n // Split Into Timecodes\n convertTimecodes();\n \n // Load Player\n //setTimeout(function() {\n loadPlayer(); \n //},200);\n}", "function startRecommendApp(token) {\n var action = 'startRecommendApp';\n var jsonStr = '{}';\n\n cmread.callBackClient(action, jsonStr, token);\n}", "loginStart() {\n\n }", "function start() {\n console.log(\"Welcome to the Employee Tracker\");\n inquirer\n .prompt(menuOptions)\n .then((response) => {\n console.log(response);\n switch (response.mainMenu) {\n case \"View all departments\":\n queries.viewDepartments();\n break;\n\n case \"View all roles\":\n queries.viewRoles();\n break;\n\n case \"View all employees\":\n queries.viewEmployees();\n break;\n\n case \"Add a department\":\n queries.addDepartment();\n break;\n\n case \"Add a role\":\n queries.addRole();\n break;\n\n case \"Add an employee\":\n queries.addEmployee();\n break;\n\n case \"Update an employee role\":\n queries.updateRole();\n break;\n\n case \"Quit\":\n queries.quit();\n break;\n\n default:\n break;\n }\n });\n}", "function startApp() {\n inquirer.prompt([\n {\n name: 'menu',\n type: 'list',\n message: 'What would you like to do?',\n choices: ['View Products for Sale', 'View Low Inventory', 'Add to Inventory', 'Add New Product']\n }\n ]).then(function(answers) {\n if (answers.menu === 'View Products for Sale') {\n viewProducts();\n }\n else if (answers.menu === 'View Low Inventory') {\n lowInventory();\n }\n else if (answers.menu === 'Add to Inventory') {\n addInventory();\n }\n else if (answers.menu === 'Add New Product') {\n addProduct();\n }\n });\n}", "startApp(_appId, _priority) {\n if (typeof _priority === 'undefined') {\n _priority = this.defaultPriority;\n }\n this.__appPriorities[_appId] = _priority;\n this.busyApps[_appId] = false;\n }", "function activate(context) {\n // Fetch data from json file\n const fs = require(\"fs\");\n const rawdata = fs.readFileSync(`${context.extensionPath}/webview/data.json`, \"utf8\");\n const data = JSON.parse(rawdata);\n const words = data.words;\n const codes = data.codes;\n // Add status bar icon\n startButton = vscode_1.window.createStatusBarItem(vscode_1.StatusBarAlignment.Left, 1);\n startButton.command = \"warmUp.start\";\n startButton.tooltip = \"Start typing test\";\n startButton.text = `$(record-keys) Warm Up`;\n context.subscriptions.push(startButton);\n startButton.show();\n // Register all the commands\n commands_1.default(panel_1.default, context, words, codes);\n // Register webview panel serializer\n if (vscode_1.window.registerWebviewPanelSerializer) {\n // Make sure we register a serializer in activation event\n vscode_1.window.registerWebviewPanelSerializer(panel_1.default.viewType, {\n async deserializeWebviewPanel(webviewPanel, state) {\n // Reset the webview options so we use latest uri for `localResourceRoots`.\n webviewPanel.webview.options = {\n enableScripts: true,\n localResourceRoots: [vscode_1.Uri.joinPath(context.extensionUri, \"webview\")],\n };\n panel_1.default.revive(webviewPanel, context.extensionUri);\n // Send config\n if (panel_1.default.currentPanel) {\n panel_1.default.currentPanel.sendStartAndConfig(words, codes);\n }\n },\n });\n }\n}", "async function app() {\n //Render and display app logo\n renderLogo();\n //Inquirer \"home page\" which lists all options to the user\n appHome();\n}", "start() {\n console.log(\"Die Klasse App sagt Hallo!\");\n }", "function start (argv, cb) {\n var args = argv._;\n if (args.length === 0){\n return cb(start.usage);\n }\n\n var appId = fhc.appId(args[0]);\n var deployTarget = ini.getEnvironment(argv);\n return startApp(appId, deployTarget, cb);\n}", "function beginAgain () {\n new BeginApp().startApp();\n}", "function startApp() {\n inquirer.prompt(\n {\n type: 'list',\n name: 'begin',\n message: 'Welcome! What would you like to do?',\n choices: ['View All Departments', 'View All Roles', 'View All Employees', new inquirer.Separator(), 'Add Departments', 'Add Roles', 'Add Employees', 'Update Employees']\n }\n )\n .then(res => {\n console.log(res)\n switch (res.begin) {\n case \"View All Departments\":\n readDepartments()\n break;\n case \"View All Roles\":\n readRoles()\n break;\n case \"View All Employees\":\n readEmployees()\n break;\n case \"Add Departments\":\n addDepartments()\n break;\n case \"Add roles\":\n addRoles()\n break;\n case \"Add Employees\":\n addEmployees()\n break;\n case \"Update Employees\":\n updateEmployees()\n break;\n default:\n console.log(\"goodbye\")\n }\n })\n }", "function start(){\n switch(lCmd){\n case 'my-tweets':\n Tweets();\n break;\n case 'spotify-this-song':\n SpotifyCall(inputs);\n break;\n case 'movie-this':\n Movie(inputs);\n break;\n case 'do-what-it-says':\n Do();\n break;\n default:\n console.log(\"my-tweets, spotify-this-song, movie-this and do-what-it-says are the only commands accepted. Check your input.\");\n break;\n \n }\n}", "startApp() {\n\t\tconst manifest = this.manifest;\n\t\tlogger.debug('main->startApp');\n\t\tconst splashScreenImage = this.getManifestEntry('splashScreenImage');\n\t\tif (splashScreenImage) {\n\t\t\tconst manifestTimeout = this.getManifestEntry('splashScreenTimeout');\n\t\t\tMainWindowProcessManager.showSplashScreen(splashScreenImage, manifestTimeout)\n\t\t\t\t.catch(err => logger.error(`Unable to load splash screen ${err}`));\n\t\t}\n\n\t\t// https://docs.microsoft.com/en-us/windows/desktop/shell/appids\n\t\tthis.app.setAppUserModelId(this.getManifestEntry('startup_name.name') || 'sea');\n\t\tthis.app.manifest = manifest;\n\n\t\tPermissionsManager.setDefaultPermissions(manifest.electronAdapter.permissions);\n\t\tMainWindowProcessManager.setManifest(manifest);\n\n\t\tmanifest.main.icon = manifest.main.applicationIcon;\n\t\tlogger.log(`APPLICATION LIFECYCLE: Starting main application ${manifest.main.name}`);\n\t\tMainWindowProcessManager.createWindowProcess(manifest.main, manifest, null, (err, res) => {\n\t\t\tif (err) logger.error(`Failed to start main application ${err}`);\n\t\t\tlogger.log('APPLICATION LIFECYCLE: Main application started.');\n\t\t});\n\n\t\tthis.setContentSecurityPolicy();\n\t\tthis.setupChromePermissionsHandlers();\n\t}", "function launch() {\n\t// Fetch our access token.\n\tlog.main(\"fetching new access token\");\n\treddit.oauthRequest({\n\t\tbaseUrl: \"https://s.reddit.com/api/v1\",\n\t\tmethod: \"get\",\n\t\turi: \"/sendbird/me\",\n\t}).then(sbInfo => {\n\t\t// Get our Reddit user ID\n\t\tlog.main(\"getting id\");\n\t\treddit.getMe().id.then(id => {\n\t\t\t// We have both necessary values, so let's connect to Sendbird!\n\t\t\tlog.main(\"connecting to sendbird\");\n\t\t\tpify(sb.connect.bind(sb), \"t2_\" + id, sbInfo.sb_access_token).then(userInfo => {\n\t\t\t\t// We did it! Let's store the user info in a higher scope.\n\t\t\t\tlog.main(\"connected to sendbird\");\n\t\t\t\tclient = userInfo;\n\n\t\t\t\t// Let's catch up on the invites we might've missed while offline.\n\t\t\t\tacceptInvitesLate();\n\t\t\t}).catch(() => {\n\t\t\t\tlog.main(\"couldn't connect to sendbird\");\n\t\t\t});\n\t\t}).catch(() => {\n\t\t\tlog.main(\"could not get id\");\n\t\t});\n\t}).catch(() => {\n\t\tlog.main(\"could not get access token\");\n\t});\n}", "function runApp() {\n const app = express()\n app.use(bodyParser.json())\n app.use(\n bodyParser.urlencoded({\n extended: false\n })\n )\n app.use(cors())\n\n app.use('/api', snapshotAPI)\n app.use('/api', diffAPI)\n app.use('/api', queryAPI)\n\n const port = process.env.APP_PORT || 4000\n\n app.listen(port, () => {\n logger.info('Trace Differ running on port: ' + port)\n })\n\n app.use((req, res, next) => {\n return res.status(404).send({ message: 'Route' + req.url + ' Not found.' })\n })\n\n app.use((err, req, res, next) => {\n logger.error(err.message)\n if (!err.statusCode) err.statusCode = 500\n res.status(err.statusCode).send(err.message)\n })\n\n scheduler.startScheduler()\n}", "function onLaunch(launchRequest, session, callback){\n // Dispatch to your skill's launch.\n getWelcomeResponse(callback);\n}", "function main() {\n loadReminders((err) => {\n if(err) u.showErr(err)\n startMicroservice()\n registerWithCommMgr()\n })\n}", "function start () {\n alexa.getTokenFromUrl()\n .then(() => alexa.getToken())\n .then(token => localStorage.setItem('libra-alexa-token', token))\n .then(() => alexa.requestMic())\n .catch(() => {\n const cachedToken = localStorage.getItem('libra-alexa-token');\n\n if (cachedToken) {\n alexa.setToken(cachedToken);\n return alexa.requestMic();\n }\n });\n }", "function start_app() {\n\n // size canvas to window\n sizeCanvas();\n\n //set up a ticker to refresh page automatically.\n let speed = 300; // how often screen refreshes, in milliseconds.\n let ticker = NOOPBOT_TICK_SETUP(draw, speed);\n\n //fire a draw event.\n draw();\n\n //redraw when canvas is clicked.\n canvas.addEventListener('click', draw);\n}", "function runApp() {\n inquirer.prompt({\n name: \"mainmenu\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View All Employees\",\n \"Edit Employeee Info\",\n \"View Roles\",\n \"Edit Roles\",\n \"View Departments\",\n \"Edit Departments\"\n ]\n }).then(responses => {\n switch (responses.mainmenu) {\n case \"View All Employees\":\n showEmployeeSummary();\n break;\n case \"Edit Employeee Info\":\n editEmployeeOptions();\n break;\n case \"View Roles\":\n showRoleSummary();\n break;\n case \"Edit Roles\":\n editRoleOptions();\n break;\n case \"View Departments\":\n showDepartments();\n break;\n case \"Edit Departments\":\n editDepartmentOptions();\n break;\n }\n });\n}", "function start_app() {\n\n // size canvas to window\n sizeCanvas();\n\n //set up a ticker to refresh page automatically.\n let speed = 600; // how often screen refreshes, in milliseconds.\n let ticker = NOOPBOT_TICK_SETUP(draw, speed);\n\n //fire a draw event.\n draw();\n\n //redraw when canvas is clicked.\n canvas.addEventListener('click', draw);\n}", "function main() {\n setReqURL()\n startMicroservice()\n registerWithCommMgr()\n}", "function startProcess () {\n\n\tvar currentdate = new Date();\n\n\tvar datetime = currentdate.getDate() + \"/\"\n\t\t+ (currentdate.getMonth()+1) + \"/\"\n\t\t+ currentdate.getFullYear() + \" @ \"\n\t\t+ currentdate.getHours() + \":\"\n\n\tconsole.log('Topdesk Maintenance Process for date: ', + currentdate.getDate() + \"/\" + currentdate.getMonth()+1 + \"/\" + currentdate.getFullYear() + \": \"+ currentdate.getHours());\n\n try {\n\n\t\tfs.appendFile(\"topdesk_process.log\", \"Topdesk Maintenance Process for date: \" + currentdate.getDate() + \"/\" + currentdate.getMonth() + \"/\" + currentdate.getFullYear() + \": \"+ currentdate.getHours() + \"\\n\", (err) => {});\n\n\t\t//data.getDataClosed();\n\t\tdata.routeNewTickets();\n\n\t\t//For getting TD objects and testing\n\t\t//data.getTicketsToInspect();\n\n\t} catch (e) {\n\t\tconsole.log(\"App crashed while managing connection \" + e.message);\n\t}\n}", "function loadApp()\n{\n //Call to the login function\n login();\n}", "function app() {\n\n // load some scripts (uses promises :D)\n //loader.load(\n {\n url: \"./bower_components/jquery/dist/jquery.min.js\"\n }; {\n url: \"./bower_components/lodash/dist/lodash.min.js\"\n }; {\n url: \"./bower_components/pathjs/path.min.js\"\n };then(function() {\n _.templateSettings.interpolate = /{([\\s\\S]+?)}/g;\n\n var options = {\n api_key: \"ab2ph0vvjrfql5ppli3pucmw\"\n }\n // start app?\n var client = new EtsyClient(options);\n\n\n })\n\n}", "function beginApp() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"begin\",\n message: \"Hello and welcome to the Employee Tracker! What would you like to do?\",\n choices: \n [\n \"View All Employees\",\n \"View Current Departments\",\n \"View Employee Roles\",\n \"Add Employee\",\n \"Add Employee Role\",\n \"Add Employee Department\",\n \"Update Employee Role\",\n \"Remove Employee\",\n \"Quit\"\n ]\n }\n ]).then(answers => {\n switch (answers.begin) {\n case \"View All Employees\":\n viewEmployees();\n break;\n case \"View Current Departments\":\n viewDepartments();\n break;\n case \"View Employee Roles\":\n viewRoles();\n break;\n case \"Add Employee\":\n addEmployee();\n break;\n case \"Add Employee Role\":\n addEmRole();\n break;\n case \"Add Employee Department\":\n addEmDepartment();\n break;\n case \"Update Employee Role\":\n updateEmRole();\n break;\n case \"Quit\":\n console.log(\"Goodbye!\")\n connection.end();\n }\n });\n}", "function runStart() {\n\tvar GPIO = require(\"gpio\");\n\tvar stopPin = new GPIO(STOP_PIN);\n\tstopPin.setDirection(GPIO.INPUT);\n\tif (stopPin.getLevel()) {\n\t\tlog(\"Start program bypassed by user.\");\n\t\treturn;\n\t}\n\t\n\tvar esp32duktapeNS = NVS.open(\"esp32duktape\", \"readwrite\");\n\tvar startProgram = esp32duktapeNS.get(\"start\", \"string\");\n\tesp32duktapeNS.close();\n\tif (startProgram !== null) {\n\t\tlog(\"Running start program: %s\" + startProgram);\n\t\tvar script = ESP32.loadFile(\"/spiffs\" + startProgram);\n\t\tif (script !== null) {\n\t\t\ttry {\n\t\t\t\teval(script);\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tlog(\"Caught exception: \" + e.stack);\n\t\t\t}\n\t\t} // We loaded the script\n\t} else { // We have a program \n\t\tlog(\"No start program\");\n\t}\n} // runStart", "start() {\n\t\tthis.startTime = Date.now();\n\t}", "function runExternalAutologin() {\n spinner.attachToView();\n LOADER_GLOBALS.loadCredentials();\n const secretArrayKey = getWalletSecretArrayKey();\n const isArrayEmpty = secretArrayKey.filter(el => el && el.trim().length !== 0).length === 0;\n\n if(isArrayEmpty) {\n return console.warn(\"Array of secrets is not loaded yet...\", secretArrayKey);\n }\n\n walletService.create(LOADER_GLOBALS.environment.domain, secretArrayKey, (err, wallet) => {\n if (err) {\n throw createOpenDSUErrorWrapper(`Failed to create wallet in domain ${LOADER_GLOBALS.environment.domain}`, err);\n }\n console.log(\"A new wallet got initialised...\", wallet.getCreationSSI(true));\n return self.openWallet();\n });\n }", "function startApp() {\n gapi.load('auth2', function () {\n gapi.client.load('plus', 'v1').then(function () {\n gapi.signin2.render('signin-button', {\n scope: 'https://www.googleapis.com/auth/plus.login',\n fetch_basic_profile: false\n });\n gapi.auth2.init({\n fetch_basic_profile: false,\n scope: 'https://www.googleapis.com/auth/plus.login'\n }).then(\n function () {\n console.log('init');\n auth2 = gapi.auth2.getAuthInstance();\n auth2.isSignedIn.listen(updateSignIn);\n auth2.then(updateSignIn);\n });\n });\n });\n}", "async startBeat() {\n await super.startBeat();\n try {\n await this.tokenCheck();\n await this.doRoute();\n } catch (err) {\n this.throwErr(err);\n }\n }", "async function Main(callback) {\n\ntry {\n // Pull the parameters from process arguments. Specifying them like this lets tests add its own.\n const result = await approveTokenSpending(argv.tokens);\n console.log(`completed Spending-Approval of ${argv.tokens} - with transactionHash: ${result}`);\n } catch (error) {\n console.error(error);\n }\n callback();\n}", "async startup() {\n const pwrap = this.app.getPage();\n\n log.info(`Start up`);\n\n const { delay = 20 } = this.loginMode;\n await pwrap.wait(delay * 1000);\n await pwrap.click('lets_get_started'); \n await pwrap.wait(5000);\n }", "start() {\n this._state = 'RUNNING'\n this._start_time = _.now()\n Logger.info('Enabling the game modes')\n _.forEach(this._games, (game) => game._enable())\n Logger.info(`The game(${this._id}) has started as ${moment(this._start_time).format('l LTS')}...`)\n this.event_manager.trigger('game_start', [this])\n // spectators and players should be handle differently\n this._teams.forEach((team) => team.start())\n }", "start() {\n this.do(\"start\")\n }", "function startApp() {\n loadFromLocalStorage(); // Try to load list from Local Storage\n\n if (toDoList.length > 0) {\n loadTasks();\n }\n}", "function createApp(){ console.log(\"create an app\") }", "function startApp() {\n\n //Take user input\n inquirer.prompt({\n type: \"list\",\n message: \"Enter your choice of Bamazon-View?\",\n choices: [\"Customer\", \"Manager\", \"Supervisor\"],\n name: \"view\"\n })\n .then(function (inquirerResponse) {\n\n //Call function with user option to execute desired operation\n switch (inquirerResponse.view) {\n\n case 'Customer':\n\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"| CUSTOMER VIEW |\");\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"\\n\");\n\n // Include the bamazonCustomer.js file\n require('./bamazonCustomer');\n break;\n\n case 'Manager':\n\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"| MANAGER VIEW |\");\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"\\n\");\n\n // Include the bamazonManager.js file\n require('./bamazonManager');\n break;\n\n case 'Supervisor':\n\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"| SUPERVISOR VIEW |\");\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"\\n\");\n\n // Include the bamazonSupervisor.js file\n require('./bamazonSupervisor');\n break;\n\n default:\n console.log(\"Incorrect user input!!\");\n startApp();\n }\n\n })\n .catch(function (err) {\n console.log(err);\n });\n\n\n} //End of startApp()", "function run_app()\n {\n putAppVersionToFrontPage();\n methods.buildDocDef();\n methods.makeChartsOptions();\n //return; //skips sending charts to cloud-service\n methods.loadCharts( function() {\n var button = document.getElementById( 'generate-pdf' );\n if( fconf.setAnOpenButton ) {\n button.addEventListener( 'click', function() {\n ////solution works without timeout, but\n ////this timeout does not hurt\n setTimeout( createDoc, 1 );\n });\n button.style.opacity = \"1\";\n button.title = \"Click to generate document\";\n button.innerHTML = \"Generate Report\";\n pdfMake_is_in_busy_state = false;\n } else {\n pdfMake_is_in_busy_state = false;\n button.innerHTML = \"Data loaded\";\n button.title = \"Generating document ...\";\n createDoc();\n }\n })\n }", "function runApp() {\n\n// switch case for the user input argument\nswitch (userInput) {\n case \"concert-this\":\n concertThis();\n break;\n\n case \"spotify-this-song\":\n spotifyThis();\n break;\n\n case \"movie-this\":\n movieThis();\n break;\n\n case \"do-what-it-says\":\n doThisThing();\n break;\n }\n}", "function startApp() {\n connection.connect(function (err) {\n if (err) throw err;\n console.log('connected as id ' + connection.threadId);\n console.log('\\n');\n managerView();\n });\n}", "generationStartButtonClick() {\n let _this = this;\n _this.get('appState').loading();\n let stagePk = _this.get('currentProjectContext').getCurrentStage();\n let adapter = getOwner(this).lookup('adapter:application');\n\n adapter.callFunction('Generate', { project: stagePk.toString() }, null, { withCredentials: true },\n (result) => {\n _this.set('generationService.lastGenerationToken', result);\n result = result || {};\n _this.get('appState').reset();\n _this.transitionToRoute(_this.get('editFormRoute'), get(result, 'value'));\n },\n () => {\n _this.get('appState').reset();\n _this.set('error', new Error(_this.get('i18n').t('forms.fd-generation-process-form.connection-error-text')));\n });\n }", "async function start_app() {\n \n // removes hash for themeCurrent\n themeCurrent = themeCurrent.substring(1)\n console.log(\"themeCurrent \"+ themeCurrent)\n globThemeCurrent = themeCurrent\n // size canvas to window\n sizeCanvas();\n\n //set up a ticker to refresh page automatically.\n let speed = 300; // how often screen refreshes, in milliseconds.\n let ticker = await NOOPBOT_TICK_SETUP(draw, speed);\n\n //fire a draw event.\n draw()\n\n //edit globThemeCurrent when button is clicked.\n button = document.getElementById('button');\n button.addEventListener('click', clearCanvas);\n\n}", "Start(){\n this.LogAppliInfo(\"Start App\", \"Server\", \"Server\")\n // Initialisation de variable et require\n var fs = require('fs')\n var me = this\n // Initiation de la DB\n this.InitMongoDb()\n // utilistaion de body-parser\n\t\tvar bodyParser = require(\"body-parser\")\n\t\tthis._Express.use(bodyParser.urlencoded({ limit: '200mb', extended: true }))\n this._Express.use(bodyParser.json({limit: '200mb'}))\n // Creation d'une route de base pour l'application\n\t\tthis._Express.get('/' + this._AppLink, function(req, res, next){\n me.LogStat(\"FirstGet\", \"Unknown\", \"Unknown\", \"Unknown\")\n res.send(me.GetInitialHTML(me._AppIsSecured))\n })\n // Creation d'un route pour le login via Post\n\t\tthis._Express.post('/login', function (req, res){\n me.LogAppliInfo(\"Login: \" + JSON.stringify(req.body), \"Server\", \"Server\")\n // analyse du login en fonction du site\n me.VerifyLogin(res, req.body.Site, req.body.Login, req.body.Pass)\n })\n // Creation d'un route pour creer un account via Post\n\t\tthis._Express.post('/CreateAccount', function (req, res){\n me.LogAppliInfo(\"CreateAccount: \" + JSON.stringify(req.body), \"Server\", \"Server\")\n // analyse du login en fonction du site\n me.CreateAccount(res, req.body.Email, req.body.FirstName, req.body.LastName, req.body.Password)\n })\n // Creation d'une route pour loader l'application\n\t\tthis._Express.post('/loadApp', function(req, res, next){\n if (me._AppIsSecured){\n me.LogAppliInfo(\"LoadApp\", \"Server\", \"Server\")\n // validation du Token\n let DecryptTokenReponse = me.DecryptDataToken(req.body.Token)\n if (DecryptTokenReponse.TokenValide) {\n // vérification que le UserId du Token existe en DB et envoie de l'app\n me.CheckTokenUserIdAndSendApp(req.body.Site, req.body.Version, DecryptTokenReponse.TokenData.data.UserData._id, res)\n } else {\n me.LogStat(\"UserNotConnected\", \"Unknown\", \"Unknown\", \"Unknown\")\n me.LogAppliError(\"Token non valide\", \"Server\", \"Server\")\n res.json({Error: true, ErrorMsg:\"Token non valide\"})\n }\n } else {\n me.LogStat(\"UserConnected\", req.body.Site, \"anonymous\", \"anonymous\")\n me.LogAppliInfo(\"LoadApp\", \"anonymous\", \"anonymous\")\n if ((req.body.Version == me.GetAppVersion()) && (req.body.Site == \"App\")){\n res.json({Error: false, ErrorMsg:\"\", CodeAppJS: \"\", CodeAppCSS: \"\", Version: req.body.Version})\n } else {\n let MyApp = me.GetAppCode(req.body.Site, \"anonymous\",\"anonymous\", false)\n res.json({Error: false, ErrorMsg:\"\", CodeAppJS: MyApp.JS, CodeAppCSS: MyApp.CSS, Version: me.GetAppVersion()})\n }\n }\n })\n // Creation d'une route pour API l'application\n\t\tthis._Express.post('/api', function(req, res, next){\n let Continue = false\n let DecryptTokenReponse = null\n // Definition du user\n let User = \"Anonyme\"\n let UserId = \"Anonyme\"\n // Si l'application est securisee \n if (me._AppIsSecured){\n // validation du Token\n DecryptTokenReponse = me.DecryptDataToken(req.body.Token)\n if (DecryptTokenReponse.TokenValide){\n User = DecryptTokenReponse.TokenData.data.UserData.User\n UserId = DecryptTokenReponse.TokenData.data.UserData._id\n Continue = true\n } else {\n Continue = false\n me.LogAppliError(\"Token non valide\", \"Server\", \"Server\")\n res.json({Error: true, ErrorMsg:\"Token non valide\"})\n }\n } else {\n Continue = true\n }\n // si on a valider la securité\n if (Continue) {\n switch (req.body.FctName) {\n case \"GetAllUser\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.GetAllUsers.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"GetUserData\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.GetUserData.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"UpdateUser\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.UpdateUser.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"DeleteUser\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.DeleteUser.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"GetUserDataStructure\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.GetUserDataStructure.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"NewUser\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.NewUser.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"GetLog\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.GetLog.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"CleanLog\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.CleanLog.bind(me), DecryptTokenReponse, req, res, User, UserId)\n break\n case \"Backup\":\n //Api Admin\n if (DecryptTokenReponse != null) {\n me._ApiAdmin.Backup(req.body.FctData, res, me.GetJobSchedule.bind(me), me.SetJobSchedule.bind(me), User, UserId)\n } else {\n me.LogAppliError(\"No personal data for application not secured\", User, UserId)\n res.json({Error: true, ErrorMsg:\"No personal data for application not secured\"})\n }\n break\n case \"GetMyData\":\n if (DecryptTokenReponse != null) {\n me._ApiAdmin.GetMyData(\"App\", res, User, UserId)\n } else {\n me.LogAppliError(\"No personal data for application not secured\", User, UserId)\n res.json({Error: true, ErrorMsg:\"No personal data for application not secured\"})\n }\n break\n case \"UpdateMyUser\":\n if (DecryptTokenReponse != null) {\n let DataCall = new Object()\n DataCall.UsesrId = DecryptTokenReponse.TokenData.data.UserData._id\n if (DecryptTokenReponse.TokenData.data.UserData.Admin){\n DataCall.UserType = \"Admin\"\n } else {\n DataCall.UserType = \"\"\n }\n DataCall.Data = req.body.FctData\n me._ApiAdmin.UpdateUser(DataCall, res, User, UserId)\n } else {\n me.LogAppliError(\"No personal data for application not secured\", User, UserId)\n res.json({Error: true, ErrorMsg:\"No personal data for application not secured\"})\n }\n break\n case \"Stat\":\n //Api Admin\n me.ApiAdminCheckUser(me._ApiAdmin.Stat.bind(me._ApiAdmin), DecryptTokenReponse, req, res, User, UserId)\n break\n default:\n let FctNotFound = true\n me._ApiFctList.forEach(element => {\n if (element.FctName == req.body.FctName){\n if(element.Admin){\n me.ApiAdminCheckUser(element.Fct.bind(me), DecryptTokenReponse, req, res, User, UserId)\n } else {\n element.Fct(req.body.FctData, res, User, UserId)\n }\n FctNotFound = false\n }\n })\n if (FctNotFound){\n me.LogAppliError(\"No API for FctName: \" + req.body.FctName, User, UserId)\n res.json({Error: true, ErrorMsg:\"No API for FctName: \" + req.body.FctName})\n }\n break\n }\n }\n })\n // Creation d'un route pour l'icone\n this._Express.get('/apple-icon.png', function (req, res) {\n me.LogDebug(\"Get apple-icon.png: \" + me._Icon)\n let IconFile = me.GetIconFile(me._Icon)\n if (IconFile!=null){\n res.send(IconFile)\n } else {\n me.LogAppliError('Icon not found', \"Server\", \"Server\")\n res.status(404).send(\"Sorry, Icon not found\");\n }\n })\n // Creation d'un route pour l'icone\n this._Express.get('/apple-touch-icon.png', function (req, res) {\n me.LogDebug(\"Get apple-touch-icon.png: \" + me._Icon)\n let IconFile = me.GetIconFile(me._Icon)\n if (IconFile!=null){\n res.send(IconFile)\n } else {\n me.LogAppliError('Icon not found', \"Server\", \"Server\")\n res.status(404).send(\"Sorry, Icon not found\");\n }\n })\n // Creation d'un route pour l'icone\n this._Express.get('/apple-touch-icon-precomposed.png', function (req, res) {\n me.LogDebug(\"Get apple-touch-icon-precomposed.png: \" + me._Icon)\n let IconFile = me.GetIconFile(me._Icon)\n if (IconFile!=null){\n res.send(IconFile)\n } else {\n me.LogAppliError('Icon not found', \"Server\", \"Server\")\n res.status(404).send(\"Sorry, Icon not found\");\n }\n })\n // Creation d'un route pour favicon.ico\n this._Express.get('/favicon.ico', function (req, res) {\n me.LogDebug(\"Get favicon.ico: \" + me._Icon)\n let IconFile = me.GetIconFile(me._Icon)\n if (IconFile!=null){\n res.send(IconFile)\n } else {\n me.LogAppliError('Icon not found', \"Server\", \"Server\")\n res.status(404).send(\"Sorry, Icon not found\");\n }\n })\n // Creation d'un route pour le stream video server\n this._Express.get('/video*', function (req, res) {\n if (me._AppIsSecured){\n let DecryptTokenReponse = me.DecryptDataToken(req.query[\"token\"])\n if (DecryptTokenReponse.TokenValide){\n res.status(200).send(``)\n } else {\n res.status(401).send(``)\n me.LogAppliError(\"Token non valide in video link\", \"Server\", \"Server\")\n }\n } else {\n res.status(200).send(``)\n }\n })\n // Add Route Get\n if (this._RouteGetList.length > 0){\n this._RouteGetList.forEach(element => {\n let link = (element.RouteName == \"\") ? '' : element.RouteName + \"*\"\n this._Express.get('/' + link, function (req, res) {\n var url = require(\"url\")\n var parsed = url.parse(req.url)\n me.LogAppliInfo(\"Get request for route: \" + parsed.path, \"Server\", \"Server\")\n element.Fct(req, res)\n })\n })\n }\n // Creation de la route 404\n this._Express.use(function(req, res, next) {\n me.LogAppliError('Mauvaise route: ' + req.originalUrl, \"Server\", \"Server\")\n //res.status(404).send(\"Sorry, the route \" + req.originalUrl +\" doesn't exist\");\n res.status(404).send(me.ErrorRoute(req.originalUrl));\n })\n // Si on utilise Socket IO, alors on effectue une initialisation de socket io\n if(this._Usesocketio){\n console.log(\"SocketIo is used\")\n // Creation de socket io\n this._io= require('socket.io')(this._http, {pingTimeout: 60000})\n\n // Middleware sur socket io qui analyse la validité du Token genere via le login\n this._io.use(function(socket, next){\n if (me._AppIsSecured) {\n \tif (socket.handshake.query && socket.handshake.query.token){\n if (socket.handshake.query.token != \"null\"){\n let DecryptTokenReponse = me.DecryptDataToken(socket.handshake.query.token)\n if(DecryptTokenReponse.TokenValide){ // le token est valide\n let MongoObjectId = require('./Mongo.js').MongoObjectId\n const Query = {'_id': new MongoObjectId(DecryptTokenReponse.TokenData.data.UserData._id)}\n me._Mongo.CountPromise(Query, me._MongoVar.UserCollection).then((reponse)=>{\n if (reponse==1) {\n me.LogAppliInfo(\"Token valide in soketIo connection\", DecryptTokenReponse.TokenData.data.UserData.User, DecryptTokenReponse.TokenData.data.UserData._id)\n socket.CoreXUser= DecryptTokenReponse.TokenData.data.UserData.User\n socket.CoreXUserId= DecryptTokenReponse.TokenData.data.UserData._id\n next()\n } else {\n me.LogAppliError(\"SocketIO Token non valide. Nombre d'Id trouvéen DB: \" + reponse, \"Server\", \"Server\")\n let err = new Error('Token error')\n err.data = { type : 'Token error, nombre Id trouvéen DB different de 1' }\n next(err)\n }\n },(erreur)=>{\n me.LogAppliError(\"SocketIO Token non valide => DB error : \" + erreur, \"Server\", \"Server\")\n let err = new Error('Token error')\n err.data = { type : 'Token error, DB error' }\n next(err)\n })\n } else { // Le token n'est pas valide\n me.LogAppliError(\"SocketIO Token non valide\", \"Server\", \"Server\")\n let err = new Error('Token error')\n err.data = { type : 'Token ne correspons pas' }\n next(err)\n }\n } else {\n me.LogAppliError(\"Token est null\", \"Server\", \"Server\")\n let err = new Error('Token error')\n err.data = { type : 'Token est null' }\n next(err)\n }\n \t} else {\n \t\tme.LogAppliError(\"Token non disponible\", \"Server\", \"Server\")\n \t\tlet err = new Error('Token error')\n \t\terr.data = { type : 'Token non disponible' }\n \t\tnext(err)\n \t} \n } else {\n me.LogAppliInfo(\"SoketIo connection and App Not Secured\", \"Anonyme\", \"Anonyme\")\n socket.CoreXUser= \"Anonyme\"\n socket.CoreXUserId= \"Anonyme\"\n next()\n }\n })\n \n this._io.on('connection', function(socket){\n // Count user connected\n me._SocketIoClients ++\n me.LogDebug(`user connected, nb user : ${me._SocketIoClients}`)\n // Le socket rejoint la room securisee\n socket.join(me._RoomName)\n\n // Reception du message client de déconnection\n socket.on('disconnect', () => {\n // Count User Connected\n me._SocketIoClients --\n me.LogDebug(`user disconnected, nb user: ${me._SocketIoClients}`)\n })\n // Reception du message client\n socket.on('api', (Data) => {\n let FctNotFound = true\n me._SocketIoFctList.forEach(element => {\n if (element.ModuleName == Data.ModuleName){\n element.Fct(Data.Data, socket, socket.CoreXUser, socket.CoreXUserId)\n FctNotFound = false\n }\n })\n if (FctNotFound){\n me.LogAppliError(\"No SocketIo Action defined for action: \" + Data.ModuleName, socket.CoreXUser, socket.CoreXUserId)\n }\n })\n })\n }\n // Gestion des erreur\n this._http.on('error', function(error){\n if (error.syscall !== 'listen') {\n throw error;\n }\n if (error.code == \"EADDRINUSE\"){\n console.error(me.GetDateString(new Date()) + ' Port is already in use')\n process.exit(1)\n }\n })\n // Lancer le serveur\n \tthis._http.listen(this._Port, function(){\n\t\t\tconsole.log('listening on *:' + me._Port)\n })\n }", "function main() {\n checkMainArguments();\n var apiKeyRenewer = new ApiKeyRenewer(this.oldApiKey, this.newApiKey, this.operator);\n apiKeyRenewer.run();\n}", "async start(...args) {\n await super.start(...args);\n return this.dispatch({\n type: MT.START,\n args: [this.name, this.options, ...args]\n });\n }", "function Start()\n {\n console.log(\"%cApp Started...\", \"color:blue; font-size:20px\");\n \n }", "function startApp(file) {\n\t\t\t\tvar v = file;\n\t\t\t\tvar px = require('./routes/' + v).plugin;\n\t\t\t\tpx(app, Environment, passport, Environment.getIsPrivatePortal());\n\t\t\t}", "function start() {\n gapi.client.setApiKey(apiKey);\n //window.setTimeout(checkAuth,1);\n }", "function OnLockAndStartPressed()\n{\n\t// Don't allow a forced start if there are unassigned players\n\tif ( Game.GetUnassignedPlayerIDs().length > 0 )\n\t\treturn;\n\n\t// Lock the team selection so that no more team changes can be made\n\tGame.SetTeamSelectionLocked( true );\n\t\n\t// Disable the auto start count down\n\tGame.SetAutoLaunchEnabled( false );\n\n\t// Set the remaining time before the game starts\n\tGame.SetRemainingSetupTime(2); \n}", "function start(app) {\n ACS.init('OAUTH_KEY', 'OAUTH_SECRET_KEY', 'API_ENTRY_POINT(optional)');\n logger.setLevel('DEBUG');\n \n //use connect.session\n app.use(express.cookieParser());\n app.use(express.session({ key: 'node.acs', secret: \"my secret\" }));\n \n //set favicon\n app.use(express.favicon(__dirname + '/public/images/favicon.ico'));\n\n //set to use express-partial for view\n app.use(partials());\n\n //Request body parsing middleware supporting JSON, urlencoded, and multipart\n app.use(express.bodyParser());\n}", "function onStart(data)\n{\n\tconsole.log('Received start request.');\n\tconsole.log(data);\n var args = Config.arguments ;\n\n // If we specified a leve\n var level ;\n if(data.level)\n level = data.level;\n else\n level = Config.level; \n\n //Configure UT3 server parameters\n Config.parameters.password = generateGUID();\n\n args.push(Config.getParameters());\n\n\tvar ut3 = spawn(Config.exe(),args);\n\t// reguster ccallbacks\n\tut3.on('exit',onUT3exit);\n\tut3.stderr.on('data',onUT3stderr);\n\tut3.stdout.on('data',onUT3stdout);\n\n\tconsole.log('Started game server process');\n\n //Configure the return message\n var message = { \n password: Config.password,\n }\n\n\tsocket.emit('started',message);\n}", "function sign_in() {\n start();\n}", "function runApp(app_name){\n app.mount(app_name);\n}", "function bootATM() {\n console.clear();\n console.log('Booting...');\n console.log('ATM connecting to remote services...');\n setTimeout(function () {\n console.clear();\n runApp();\n }\n , 5000);\n}", "function start() {\n if (!argv._.length || argv._.indexOf('start') !== -1) {\n instance.start();\n }\n }", "function initApplication() {\n\tconsole.log(\"Starting Mustang v2...\");\n}", "function startApp() {\n Backbone.history.start({\n pushState: false\n });\n\n var isFirstLoad = localStorage.getItem('firstLoad') === null;\n\n if (isFirstLoad) {\n var onboardView = new OnboardView();\n\n $('body').append(onboardView.render().el);\n localStorage.setItem('firstLoad', 1);\n }\n}", "function start(applicationRoot, settingsDirectory, options = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n const [services, configuration] = yield botbuilder_dialogs_adaptive_runtime_1.getRuntimeServices(applicationRoot, settingsDirectory);\n const [, listen] = yield makeApp(services, configuration, applicationRoot, options);\n listen();\n });\n}", "function startAlfredService() {\n console.log('[startAlfredService] Start');\n checkSession((hasSession) => {\n if (!hasSession) {\n console.log('[startAlfredService] No session found!');\n // Only show login notification once to be less noisy\n if (!loginNotifShown) {\n // No session, open Alfred page\n showNotification(\n 'Alfred',\n 'Alfred에 로그인 하실려면 클릭하세요',\n () => (loginNotifShown = true),\n () => openAlfred()\n );\n }\n } else {\n // Session found\n console.log('[startAlfredService] Session found!');\n getUserInfo((user) => {\n // Find next alert hour\n const now = new Date();\n const alertTimes = user.alert_times.sort((x, y) => x - y);\n let nextAlertIdx = alertTimes.findIndex((t) => t > now.getHours());\n let nextAlertTime;\n\n // Make a Date object of next alert hour\n const next = new Date();\n next.setMinutes(0);\n next.setSeconds(0);\n next.setMilliseconds(0);\n if (nextAlertIdx === -1) {\n // Next alarm time is tomorrow\n nextAlertTime = alertTimes[0];\n next.setDate(now.getDate() + 1);\n } else {\n nextAlertTime = alertTimes[nextAlertIdx];\n }\n next.setHours(nextAlertTime);\n\n console.log(`[startAlfredService] Creating next alarm`);\n createAlarm(next, () => {\n checkSession((hasSession) => {\n if (hasSession) {\n // Alarm fired and session exists\n console.log(\n `[startAlfredService] Alarm fired and session exists`\n );\n showNotification(\n 'Alfred 속보!',\n '구독한 키워드에 대한 새로운 소식이 도착했습니다. 지금 확인하세요!',\n () => {\n console.log(`[startAlfredService] Starting next cycle`);\n startAlfredService();\n },\n () => openAlfred()\n );\n }\n });\n });\n });\n }\n });\n}", "async startup(){}", "function start_app() {\n // size canvas to window\n sizeCanvas();\n\n //set up a ticker to refresh page automatically.\n let speed = 300; // how often screen refreshes, in milliseconds.\n // let ticker = NOOPBOT_TICK_SETUP(draw, speed);\n draw();\n\n //fire a draw event.\n\n //redraw when canvas is clicked.\n canvas.addEventListener(\"click\", draw);\n}", "function startGame() {\n\t\tstatus.show();\n\t\tinsertStatusLife();\n\t\tsetLife(100);\n\t\tsetDayPast(1);\n\t}", "function startApp() {\n alert('hello!!');\n }", "async function app() {\n\tawait waitLoading()\n\n\tadaptiveSize.init()\n\t// create controls\n\tconst ic = new InputControl()\n\tconst da = new DisplayAirports(ic)\n\tconst df = new DisplayFlight(ic)\n\tic.init()\n\tda.init()\n\tawait df.init()\n\n\t// attach global hooks\n\tadaptiveDisplay.init(da, df)\n\n\tawait waitTimeout(50) // wait for UI to initialise\n\tdocument.getElementById(\"overlay-loading\").remove() // remove the loading overlay\n}", "function mainFn () {\n logFn( prefixStr + 'Start' );\n\n // Invalidate all these stages\n xhiObj.xhiUtilObj._clearMap_(\n stageStatusMap, [\n 'setup', 'dev_test', 'dev_lint', 'dev_cover', 'build'\n ]\n );\n childProcObj = xhiObj.makeSpawnObj(\n 'npm', [ 'install' ], { stdio : 'inherit'}\n );\n childProcObj.on( 'close', onCloseFn );\n }", "start() {\n this.createContext();\n }", "start() {\n inquirer\n .prompt({\n type: 'list',\n name: 'select',\n message: 'Select a team member to add:',\n choices: ['Add Manager', 'Add Engineer', 'Add Intern'],\n }).then(({select}) => {\n this.parseChoice(select);\n });\n }", "function onLaunch(launchRequest, session, callback) {\n // console.log(\"onLaunch requestId=\" + launchRequest.requestId);\n\n // skill launch\n getWelcomeResponse(callback);\n}", "function launchApp(){\n var app = window.tizen.application.getCurrentApplication();\n var appId = app.appInfo.id.substring(0, (app.appInfo.id.lastIndexOf('.')) );\n window.tizen.application.launch(appId);\n }", "function start_service_app() {\n\t//disable settings!\n disable_settings();\n\t\n\n console.log('starting service app...');\n var obj = new tizen.ApplicationControlData('service_action', ['start']);\n var obj_params = new tizen.ApplicationControlData('params', analysisParamsToString());\n var obj1 = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/service',\n null,\n null,\n null, [obj, obj_params], 'SINGLE'\n );\n try {\n tizen.application.launchAppControl(obj1,\n SERVICE_APP_ID,\n function() {\n console.log('Launch Service succeeded');\n \n update_seizure_detection_checkbox();\n },\n function(e) {\n console.log('Launch Service failed : ' + e.message);\n tau.openPopup('#StartFailedPopup');\n \n update_seizure_detection_checkbox();\n }, null);\n } catch (e) {\n window.alert('Error when starting appcontrol for starting seizure detection! error msg:' + e.toString());\n \n update_seizure_detection_checkbox();\n }\n}", "async start() {\n this.print('start provisioning accounts');\n const [requestContext] = await Promise.all([this.payload.object('requestContext')]);\n this.state.setKey('STATE_REQUEST_CONTEXT', requestContext);\n // provision new aws account in existing Organization in master account\n this.print('getting awsorgservice');\n const awsOrgService = await this.getOrganizationService();\n this.print('getting accountname and email');\n const [AccountName, Email] = await Promise.all([\n this.payload.string('accountName'),\n this.payload.string('accountEmail'),\n ]);\n const params = {\n AccountName,\n Email,\n };\n this.print(`Attempting to create AWS account with ${JSON.stringify(params)}`);\n let creationResult;\n try {\n // TODO: handle if email address is already been used for another aws account\n creationResult = await awsOrgService.createAccount(params).promise();\n this.print(`setting the request id as ${creationResult.CreateAccountStatus.Id}`);\n this.state.setKey('REQUEST_ID', creationResult.CreateAccountStatus.Id);\n } catch (e) {\n this.print(`Error in creating account ${e.stack}`);\n throw new Error(`Create AWS Account operation error: ${e.stack}`);\n }\n\n this.print(`Waiting for Account creation process with requestID: ${await this.state.string('REQUEST_ID')}`);\n // wait until the account creation is finished\n return this.wait(10)\n .maxAttempts(120)\n .until('checkAccountCreationCompleted')\n .thenCall('saveAccountToDb');\n }", "function startServer() {\n\n\n\tapp.use(passport.initialize());\n\tapp.use(passport.session()); // persistent login sessions\n\t require('./config/passport')(passport); // pass passport for configuration\n\t\n\t////////////////////////\n\t// Setup Facebook App //\n\t////////////////////////\n\t\n\t// Read config from config.json\n\ttry {\n\t\tlet obj;\n\t\tfs.readFile('config.json', 'utf8', (err, data) => {\n \t\t\n \t\tif (err) {\n \t\t\tthrow err;\n \t\t}\n \t\tobj = JSON.parse(data);\n\t});\n\n\t} catch (err) {\n\t\tconsole.log(err);\n\t}\n\n\trequire('./app/routes.js')(app, passport); \n\n\tapp.listen(port);\n\tconsole.log(`Feed Aggregator started on Port${port}`);\n}" ]
[ "0.5705647", "0.5705638", "0.56621903", "0.56415176", "0.5572144", "0.53576237", "0.533769", "0.5332166", "0.52593726", "0.52576435", "0.5240772", "0.5219025", "0.51860857", "0.5110994", "0.51070863", "0.5083727", "0.50498295", "0.5037655", "0.5034069", "0.5033402", "0.5024644", "0.5023214", "0.5022964", "0.5022353", "0.49410507", "0.49358487", "0.49202734", "0.49166283", "0.49141067", "0.49139583", "0.4903237", "0.48904803", "0.48733136", "0.48640555", "0.486247", "0.48478183", "0.4843675", "0.48391926", "0.48373252", "0.48286623", "0.48169303", "0.48136446", "0.4809826", "0.48034582", "0.47971594", "0.47888508", "0.4787784", "0.47871", "0.47729558", "0.47531787", "0.4750822", "0.47501844", "0.47441834", "0.47384068", "0.47339872", "0.47332674", "0.47309443", "0.47294617", "0.4728439", "0.4722308", "0.4719717", "0.47194645", "0.47151762", "0.47084984", "0.47066322", "0.4706504", "0.46937388", "0.46872053", "0.46860424", "0.46829298", "0.46698555", "0.46644813", "0.46621096", "0.46611404", "0.46538338", "0.4653459", "0.4632924", "0.4625355", "0.4624237", "0.46082234", "0.4603416", "0.46015608", "0.4594225", "0.45926344", "0.45904642", "0.45899", "0.4586049", "0.45853668", "0.4582798", "0.4581332", "0.45804593", "0.45784122", "0.4578179", "0.4577918", "0.4576061", "0.4573047", "0.45685956", "0.45649073", "0.45637235", "0.45458513", "0.4545833" ]
0.0
-1
Returns a bool that indicates if `apply` was called for a given listing hash
appWasMade(listing) { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return deployed.methods.appWasMade(listing).call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isApply(m) {\n return isFunctor(m) && isFunction(m.ap)\n}", "function isBindCallApply(func, environment) {\n switch (func) {\n case Function.prototype.bind:\n case Function.prototype.call:\n case Function.prototype.apply:\n return true;\n }\n if (environment != null) {\n const _Function = getFromLexicalEnvironment(undefined, environment, \"Function\").literal;\n switch (func) {\n case _Function.prototype.bind:\n case _Function.prototype.call:\n case _Function.prototype.apply:\n return true;\n }\n }\n return false;\n}", "function thereIsWorkToDo(list) {\n return list.length > 0;\n}", "function callAlive(call) {\n return callMap.indexOf(call) > -1 && call.mediaCall;\n }", "verifyHash(hash) {\n return (0, _sha2.default)(this.index + this.previousHash + this.timestamp + this.nonce) == hash;\n }", "isUserList() {}", "apply(func, other, behav) {\n if (!(other instanceof EventImpl)) {\n return false;\n }\n \n const thiskeys = Array.from(this.timeslots.keys());\n const sharedkeys = thiskeys.filter( (key) => other.timeslots.has(key) );\n \n return sharedkeys.some( (key) => {\n return func(this.timeslots.get(key), other.timeslots.get(key));\n });\n }", "performed(aOpIndex) {\n\t\treturn (this.ops[aOpIndex]!==undefined);\n\t}", "function sc_any(proc, l1, l2) {\n if (l1 === undefined)\n\treturn false;\n if (l2 === undefined)\n\treturn sc_any1(proc, l1);\n // else\n var nbApplyArgs = arguments.length - 1;\n var applyArgs = new Array(nbApplyArgs);\n while (l1 !== null) {\n\tfor (var i = 0; i < nbApplyArgs; i++) {\n\t applyArgs[i] = arguments[i + 1].car;\n\t arguments[i + 1] = arguments[i + 1].cdr;\n\t}\n\tvar tmp = proc.apply(null, applyArgs);\n\tif (tmp !== false) return tmp;\n }\n return false;\n}", "isValid() {\n return this.hash === this.createHash();\n }", "function hasAppliedToJob(id) {\n return applicationIds.has(id);\n }", "function hasAppliedToJob(id) {\n return applicationIds.has(id);\n }", "function sc_every(proc, l1, l2) {\n if (l1 === undefined)\n\treturn true;\n if (l2 === undefined)\n\treturn sc_every1(proc, l1);\n // else\n var nbApplyArgs = arguments.length - 1;\n var applyArgs = new Array(nbApplyArgs);\n var tmp = true;\n while (l1 !== null) {\n\tfor (var i = 0; i < nbApplyArgs; i++) {\n\t applyArgs[i] = arguments[i + 1].car;\n\t arguments[i + 1] = arguments[i + 1].cdr;\n\t}\n\tvar tmp = proc.apply(null, applyArgs);\n\tif (tmp === false) return false;\n }\n return tmp;\n}", "function doesForEachActuallyWork() {\n \tvar ret = false;\n \n \t(new Set([true])).forEach(function (el) {\n \t\tret = el;\n \t});\n \n \treturn ret === true;\n }", "function doesForEachActuallyWork() {\n\t\tvar ret = false;\n\n\t\t(new Set([true])).forEach(function (el) {\n\t\t\tret = el;\n\t\t});\n\n\t\treturn ret === true;\n\t}", "function hasFusion(fusionList, card) {\n return fusionList.some((c) => c.Id === card.Id);\n}", "function checkHash() {\r\n if (location.hash && $this.find(location.hash).length) {\r\n toggleState(true);\r\n return true;\r\n }\r\n }", "function any(func) {\n return function () {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (func.call(null, params[i])) {\n return true\n }\n }\n return false\n }\n }", "isDialogOptionListId(listId) {\n let ret = this.cardOption.listId == listId;\n return ret;\n }", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}", "function sc_everyPred(proc, l) {\n var tmp = sc_every(proc, l);\n if (tmp !== false) return true;\n return false;\n}", "function any(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (func.call(null, params[i])) {\n return true;\n }\n }\n return false;\n };\n }", "function any(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (func.call(null, params[i])) {\n return true;\n }\n }\n return false;\n };\n }", "function any(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (func.call(null, params[i])) {\n return true;\n }\n }\n return false;\n };\n }", "isValid() {\n for(let i = 1; i < this.chain.length; i++) {\n let currentBlock = this.chain[i];\n let previousBlock = this.chain[i-1];\n let currentBlockHash = currentBlock.calculateHash();\n if (currentBlock.hash !== currentBlockHash) {\n return false;\n }\n if (currentBlock.previousHash !== previousBlock.hash) {\n return false;\n }\n }\n return true;\n }", "isHookApplicable(hook) {\n const fieldname = hook.get('attribute');\n return (fieldname === '*' || this.changes.has(fieldname));\n }", "isCurrentListId(listId) {\n const ret = this.data().listId == listId;\n return ret;\n }", "doesActionApply(vimState, keysPressed) {\n if (this.mustBeFirstKey &&\n vimState.recordedState.commandWithoutCountPrefix.length > keysPressed.length) {\n return false;\n }\n return (this.modes.includes(vimState.currentMode) &&\n BaseAction.CompareKeypressSequence(this.keys, keysPressed));\n }", "isFilterApplied(feature) {\n const tmp = this.filters.filter((elem) => {\n return elem.name === feature;\n });\n\n // Nothing found by the name\n if (tmp.length === 0) return false;\n\n const thisFilter = tmp[0];\n\n // Return true if the filter is NOT applied\n return !this.isDefaultFilter(thisFilter);\n }", "function fnExists(/*arguments*/) {\n for (var i = 0; i < arguments.length; i++) {\n if (typeof (arguments[i]) !== \"function\") return false;\n }\n return true;\n}", "isLoadPerformed() {\n const entriesType = this.getEntriesType();\n\n const { isLoadPerformed = false } = this.props.state.entries[entriesType];\n\n return isLoadPerformed;\n }", "function contains(item, list, cb) {\n return cb(item, list);\n }", "has(fn) {\r\n return this._has(fn);\r\n }", "function all(func) {\n return function () {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false\n }\n }\n return true\n }\n }", "@expression(\"every item (of|in) <List> (where|with) <method>\", {\n\t\ttypes: [ List, Function ],\n\t\treturns: Boolean\n\t})\n\tstatic every(list, method) {\n\t\tif (!(list instanceof List)) return false\n\t\tif (!(method instanceof Function)) return false\n\t\tfor (let item in list.items) {\n\t\t\tif (!Type.is_truthy(method(item)) return false\n\t\t}\n\t\treturn true\n\t}", "function all(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false;\n }\n }\n return true;\n };\n }", "function all(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false;\n }\n }\n return true;\n };\n }", "function all(func) {\n return function() {\n var params = getParams(arguments);\n var length = params.length;\n for (var i = 0; i < length; i++) {\n if (!func.call(null, params[i])) {\n return false;\n }\n }\n return true;\n };\n }", "function some(arr, f) {\n var i = 0;\n for (var k = 0; k < arr.length; k++) {\n if (f(arr[k], k, i++)) {\n return true;\n }\n }\n return false;\n }", "function some(obj, func) {\n let newArr =Object.values(obj);\n for(let i=0; i<newArr.length; i++) {\n if(func(newArr[i]))\n return true;\n }\n return false;\n }", "has(fn) {\n return this._has(fn);\n }", "function every(obj, call) {\n for (var i in obj) {\n if (!call(obj[i], i)) return false;\n }\n return true;\n}", "every(callback) {\r\n for (let i = 0; i < this.array.length; i++) {\r\n const item = this.array[i];\r\n if (!callback(item)) return false;\r\n }\r\n return true;\r\n }", "some(callback) {\r\n for (let i = 0; i < this.array.length; i++) {\r\n const item = this.array[i];\r\n if (callback(item)) return true;\r\n }\r\n return false;\r\n }", "match(fn) {\n if (this.isAbsent()) {\n return false;\n }\n return fn(this.value);\n }", "isModified() {\n if (!this.head) return Promise.resolve(true);\n return Promise.resolve(this.state.isModified); // return Promise.resolve(this.state.hash !== this.head.hash);\n }", "exists(){}", "function sc_anyPred(proc, l) {\n return sc_any(proc, l) !== false;\n}", "function isLodashCallExpression(node) {\n return true;\n}", "isTrue(instance) {\n const validStyler = this.checkType('styler', instance);\n const validState = this.checkType('state', instance);\n const validProps = this.checkType('props', instance);\n const validContext = this.checkType('context', instance);\n let validFunction = true;\n\n if (this.func !== null) {\n validFunction = this.func(instance);\n }\n\n return validStyler && validState & validProps && validContext && validFunction;\n }", "function checkComplete() {\n if (listQuestion.length === Object.keys(listResult).length) {\n return true\n } else {\n return false\n }\n}", "hasValue(value){\n for (var key in this.props.dutyCalls) {\n if (this.props.dutyCalls.hasOwnProperty(key)) {\n if (value == this.props.dutyCalls[key].name)\n return true;\n }\n }\n return false;\n }", "static isFunction(obj) {\n return !!(obj && obj.constructor && obj.call && obj.apply);\n }", "containsDelayedCalls(callback) {\n const { _objects } = this\n\n if (callback) {\n for (let i = _objects.length - 1; i >= 0; --i) {\n const delayedCall = _objects[i]\n if (delayedCall && delayedCall.callback === callback) return true\n }\n }\n\n return false\n }", "function checkUsersValid(validList) {\n return function (supliedList) {\n const result = supliedList.map(el => {\n\n return validList.some(item => (item.id === el.id) && item.hasOwnProperty('id') && el.hasOwnProperty('id'));\n })\n\n return result.every(item => item === true) ? true : false;\n }\n}", "async function shouldSquashPredicate() {\n let matcher = await getMatcher();\n return (pinnedTab, newTab) => {\n if (!isEligibleForSquash(pinnedTab, newTab))\n return false;\n return matcher.match(pinnedTab, newTab);\n };\n}", "function areThereDuplicates() {\n let freqCounter = {};\n for(let i = 0; i < arguments.length; i++){\n if(freqCounter[arguments[i]]){\n return true;\n } else {\n freqCounter[arguments[i]] = true;\n }\n }\n return false;\n}", "isChainValid() \n{ \n for (let i = 1; i < this.chain.length; i++)\n { \n const currentBlock = this.chain[i]; \n const previousBlock = this.chain[i - 1]; \n\n if (currentBlock.hash !== currentBlock.calculateHash()) { \n return false; \n } \n\n if (currentBlock.previousHash !== previousBlock.hash) \n { \n return false; \n } \n } \n \n return true; \n}", "isChainValid(){\n for (let i = 1; i < this.chain.length; i++){\n const currentBlock = this.chain[i];\n const previousBlock = this.chain[i - 1];\n \n if(currentBlock.hash !== currentBlock.calculateHash()){\n return false;\n }\n\n if(currentBlock.previoushash !== previousBlock.hash){\n return false;\n }\n }\n\n return true;\n }", "function isList($this){\n\t\tvar pass = true;\n\t\t$this.each(function(){\n\t\t\tif(!$(this).is('ul') && !$(this).is('ol')){\n\t\t\t\tpass=false;\n\t\t\t}\n\t\t});\n\t\treturn pass;\n\t}//isList()", "function listHas(list, v) {\n\tfor (var i of list) {\n\t\tif (v[0] === i[0] && v[1] === i[1]) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function isSuccess(self) {\n return fold_(self, () => false, () => true);\n}", "function areThereDuplicates() {\n return new Set(arguments).size !== arguments.length;\n }", "function areThereDuplicates() {\n return new Set(arguments).size !== arguments.length;\n }", "get hasFunction() {\n return validators_1.isFunction(this.handler);\n }", "function some(callback, scope) {\n /*jshint newcap:false*/\n var elements, length, index;\n\n // convert elements to object\n elements = Object(this);\n\n // make sure callback is a function\n requireFunction(callback);\n\n // convert length to unsigned 32 bit integer\n length = elements.length >>> 0;\n\n // iterate over elements\n for (index = 0; index < length; ++index) {\n\n // current index exists\n if (index in elements &&\n\n // callback returns true\n callback.call(scope, elements[index], index, elements)) {\n\n // break loop, test passed\n return true;\n }\n }\n // test failed\n return false;\n }", "hasCommit(commitHash) {\n return this.namesPerCommit.has(commitHash);\n }", "isChainValid() {\n for (let index = 1; index < this.chain.length; index++) {\n const currentBlock = this.chain[index];\n const previousBlock = this.chain[index - 1];\n\n if (currentBlock.hash !== currentBlock.calculateHash()) {\n return false;\n }\n if (currentBlock.previousHash !== previousBlock.hash) {\n return false;\n }\n\n return true;\n }\n }", "async canUse(context) {\n let list = [context.bot, this.section, this];\n for (let obj of list) {\n if (util_1.isUndefined(obj)) {\n continue;\n } // When there is no section\n for (let check of obj.checks) {\n let result = await check.check(context).catch(() => { });\n if (util_1.isUndefined(result)) {\n throw new _1.Errors.CheckImplementationError(`check failed to process correctly in ${this.name}`);\n }\n else if (!result) {\n return false;\n }\n }\n }\n return true;\n }", "function isOnList(duplicate){\n for (currentIngredient in $scope.listOfIngredients) {\n if ($scope.listOfIngredients[currentIngredient] === duplicate){\n return true;\n }\n }\n return false;\n }", "isChainValid() {\n for (let i = 1; i < this.chain.length; i++) {\n const currentBlock = this.chain[i];\n const previousBlock = this.chain[i - 1];\n\n if (currentBlock.hash !== currentBlock.calculateHash()) {\n return false;\n }\n \n if (currentBlock.previousHash !== previousBlock.hash) {\n return false;\n }\n }\n return true;\n }", "function some(array, f){\n\t// var status = false;\n\tfor (var i = 0; i < array.length; i++){\n\t\tif (f(array[i])) return true;\n\t}\n\treturn false;\n}", "function testFunctionWorks(fn, input, expected) {\n const result = fn(input);\n if (\n result &&\n result.length === expected.length &&\n result.every(function(item) {\n return expected.indexOf(item) > -1;\n })\n ) {\n console.log('SUCCESS: `' + fn.name + '` works!');\n return true;\n } else {\n console.error('FAILURE: `' + fn.name + '` is not working');\n return false;\n }\n }", "function some(arr, f) {\n var i = 0;\n for (var k = 0; k < arr.length; k++) {\n if (f(arr[k], k, i++)) {\n return true;\n }\n }\n return false;\n}", "function hasPermission (menuList, route) {\n return menuList.some(item => {\n return route.meta.title === item.name\n })\n}", "isImplicitCall(): boolean {\n if (this.args.length === 0 || this.args[0].node.virtual) {\n return false;\n }\n let searchStart = this.fn.outerEnd;\n let searchEnd = this.args[0].outerStart;\n return this.indexOfSourceTokenBetweenSourceIndicesMatching(\n searchStart, searchEnd, token => token.type === SourceType.CALL_START) === null;\n }", "function userCanFetchShoppingList(account, shoppingList) {\r\n var userHasRight = false;\r\n if (account.shoppingLists.indexOf(shoppingList._id) > -1 && shoppingList.isActive) {\r\n userHasRight = true;\r\n }\r\n else {\r\n userHasRight = false;\r\n }\r\n return userHasRight;\r\n}", "function fnExists(f) {\n if (typeof(f) === \"function\") {\n return true;\n }\n}", "anyDiff() {\n if (this.diff) return true;\n const anyFileDiff = this.files.some(file => file.diff);\n if (anyFileDiff) return true;\n const anyFolderDiff = this.folders.some(folder => folder.anyDiff());\n if (anyFolderDiff) return true;\n return false;\n }", "function areThereDuplicates() {\n let args = [...arguments];\n const argsList = {}\n for(let i = 0; i< args.length; i++){\n let currentArg = args[i];\n argsList[currentArg] ? argsList[currentArg] += 1: argsList[currentArg] = 1\n }\n for (let two in argsList) {\n if (argsList[two] > 1) {\n return true;\n }\n }\n return false;\n}", "function callbackfn(val, idx, obj) {\n return obj.length === 2;\n}", "function areThereDuplicates () {\n\tlet frequencyCounter = {};\n\n\tfor (let value of arguments) {\n\t\tfrequencyCounter[value] = (frequencyCounter[value] || 0) + 1;\n\t}\n\n\tfor (let index in frequencyCounter) {\n\t\tif (frequencyCounter[index] > 1) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}", "function _runHook(type, hook, args) {\n var handlers = STORAGE[type][hook],\n i,\n len;\n\n if (!handlers) {\n return 'filters' === type ? args[0] : false;\n }\n\n len = handlers.length;\n\n if ('filters' === type) {\n for (i = 0; i < len; i++) {\n args[0] = handlers[i].callback.apply(handlers[i].context, args);\n }\n } else {\n for (i = 0; i < len; i++) {\n handlers[i].callback.apply(handlers[i].context, args);\n }\n }\n\n return 'filters' === type ? args[0] : true;\n }", "isChainValid(){\r\n\r\n for(let i = 1;i < this.chain.length; i++){\r\n const currentBlock = this.chain[i];\r\n const previousBlock = this.chain[i - 1];\r\n\r\n //check if the current hash of the block is still valid\r\n if(currentBlock.hash !== currentBlock.calculateHash()){\r\n return false;\r\n }\r\n //check if the current block points to previous block\r\n if(currentBlock.previousHash !== previousBlock.hash){\r\n return false;\r\n }\r\n }\r\n return true;\r\n\r\n }", "menuApply(apply) {\n const applyMethods = ['Online', 'Career Fair', 'Handshake', 'Princeton Program', 'Other']\n return applyMethods.map((name) => (\n <MenuItem\n key={name}\n insetChildren={true}\n checked={apply && apply.indexOf(name) > -1}\n value={name}\n primaryText={name}\n />\n ));\n }", "function hasFunc(item, name) {\n if (item === null || item === undefined || item[name] === undefined ||\n (!isFunction(item[name]))) {\n return false;\n } else {\n return true;\n }\n }", "hasSuggestions() {\n return this.filteredAirports && Object.keys(this.filteredAirports).length > 1;\n }", "isChainValid(){\n let currentBlock;\n let previousBlock;\n\n for (let i = 1; i <= this.length; i++){\n currentBlock = this.chain[i];\n previousBlock = this.chain[i -1];\n\n if(currentBlock.hash !== currentBlock.calculateHash()){\n return false;\n }\n\n if(currentBlock.previousHash !== previousBlock.hash){\n return false;\n }\n \n if(currentBlock.index === previousBlock.index){\n return false;\n }\n }\n return true;\n }", "function defined() {\n var outerArguments = arguments;\n return function (d, i) {\n for (var c = 0, j = outerArguments.length; c < j; c++) {\n if (outerArguments[c](d, i) == null) {\n return false;\n }\n }\n return true;\n };\n }", "isChainValid(){\n\n //not putting index in 0 cause GENESIS is the 0\n for(let i = 1; i <this.chain.length; i++){\n const currentBlock = this.chain[i];\n const previousBlock = this.chain[i -1];\n\n //check if the propely block are link together\n //1.- if the hash of the block still valid \n if(currentBlock.hash != currentBlock.calculateHash()){\n return false; \n }\n\n if(currentBlock.previousHash != previousBlock.hash){\n return false;\n }\n }\n return true;\n }", "function all(fn, list) {\n \n return !list || \n ( fn(head(list)) && all(fn, tail(list)) );\n}", "function all(fn, list) {\n \n return !list || \n ( fn(head(list)) && all(fn, tail(list)) );\n}", "function all(fn, list) {\n \n return !list || \n ( fn(head(list)) && all(fn, tail(list)) );\n}" ]
[ "0.5276118", "0.52356726", "0.52291125", "0.5064019", "0.50615746", "0.4994776", "0.49335325", "0.49187532", "0.4884205", "0.48785177", "0.48162445", "0.48162445", "0.48073068", "0.4801175", "0.47908694", "0.47611004", "0.4759886", "0.47545362", "0.47419408", "0.47417414", "0.47417414", "0.47417414", "0.47417414", "0.47417414", "0.47417414", "0.47417414", "0.47417414", "0.47417414", "0.47389248", "0.47364894", "0.47364894", "0.47364894", "0.47019318", "0.46947324", "0.46854818", "0.46723023", "0.4666069", "0.4664464", "0.4663588", "0.46620727", "0.4660624", "0.4659179", "0.46547604", "0.46355447", "0.46355447", "0.46355447", "0.4631997", "0.46224555", "0.46159345", "0.4612175", "0.46026853", "0.45996973", "0.4570874", "0.45683876", "0.45644742", "0.45629376", "0.4551486", "0.45502186", "0.45439672", "0.45391786", "0.45318794", "0.45253757", "0.45244002", "0.4524099", "0.4522178", "0.4519903", "0.4513827", "0.45119855", "0.4508789", "0.4505394", "0.4483503", "0.4483503", "0.4479471", "0.44741377", "0.44730943", "0.44700727", "0.44641283", "0.44592306", "0.44567996", "0.44522288", "0.4450079", "0.4449376", "0.4448992", "0.44487303", "0.44387046", "0.44365913", "0.44348654", "0.4432592", "0.4428879", "0.44269034", "0.44253725", "0.44234687", "0.4423124", "0.4422163", "0.4421881", "0.44167885", "0.44167414", "0.44167337", "0.4415431", "0.4415431", "0.4415431" ]
0.0
-1
Starts a poll for a listingHash which is either in the apply stage or already in the whitelist. Tokens are taken from the challenger and the applicant's deposits are locked.
challenge(listing, data = '', opts) { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(), account = this.requireAccount(opts); return yield deployed.methods.challenge(listing, data).send({ from: account }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "polling() {\n const hourInSec = PASConfig.pollingTimeDevelop || 3200; // Use develop value if available for this RI\n const hourInMS = hourInSec * 1000;\n const fiveMin = hourInMS / 12;\n\n // Poll every 5 minutes in the first half hour\n let numPolls = 1;\n let context = this;\n let polling = setInterval(function () {\n context.getLatestResponse();\n if (numPolls >= 6 || context.getClaimResponse().outcome != \"queued\") {\n clearInterval(polling);\n numPolls += 1;\n }\n }, fiveMin);\n\n // Poll every hour until claim comes back\n polling = setInterval(function () {\n context.getLatestResponse();\n if (context.getClaimResponse().outcome != \"queued\")\n clearInterval(polling);\n }, hourInMS);\n }", "polling() {\n // let hourInSec = 3600;\n let hourInSec = 32; // For testing purposes make an hour 16 seconds\n\n // Poll every 15 minutes in the first hour\n this.getLatestResponse();\n let numPolls = 1;\n let context = this;\n let polling = setInterval(function() {\n context.getLatestResponse();\n numPolls += 1;\n if (numPolls >= 4 || context.getClaimResponse().outcome != \"queued\") {\n clearInterval(polling);\n context.poll(hourInSec * 1000);\n }\n }, (hourInSec * 1000) / 4);\n }", "function doPoll() { setTimeout(poll, 100); }", "poll_access(poll) {\n if (!poll || (poll && poll.constructor !== Object)) throw Error('Invalid Poll object');\n\n const begin = Date.now();\n\n return new Promise((resolve, reject) => {\n const call = () => {\n if (begin + (poll.expires_in * 1000) <= Date.now()) {\n clearInterval(polling);\n return reject(Error('Expired'));\n }\n\n this._device_code({\n code: poll.device_code,\n client_id: this._settings.client_id,\n client_secret: this._settings.client_secret\n }, 'token').then(body => {\n this._authentication.refresh_token = body.refresh_token;\n this._authentication.access_token = body.access_token;\n this._authentication.expires = Date.now() + (body.expires_in * 1000); // Epoch in milliseconds\n\n clearInterval(polling);\n resolve(body);\n }).catch(error => {\n // do nothing on 400\n if (error.response && error.response.statusCode === 400) return;\n\n clearInterval(polling);\n reject(error);\n });\n };\n\n const polling = setInterval(() => {\n call();\n }, (poll.interval * 1000));\n });\n }", "refreshWhitelist(blInit = false)\n {\n var objEslTools = new EslTools();\n\n if(blInit) {\n var objTwitterWhitelist = {\n \"status\": true,\n \"timestamp\": 0,\n \"repo\": \"https://raw.githubusercontent.com/409H/EtherSecurityLookup/master/lists/twitter.whitelist.json\",\n \"users\": []\n };\n } else {\n var objTwitterWhitelist = this.getWhitelistStructure();\n }\n\n if(objTwitterWhitelist.status) {\n objEslTools.getListFromGithub(objTwitterWhitelist).then(function (objList) {\n objTwitterWhitelist.timestamp = Math.floor(Date.now() / 1000);\n objTwitterWhitelist.users = objList;\n\n localStorage.setItem(\"ext-ethersecuritylookup-twitter_whitelist\", JSON.stringify(objTwitterWhitelist));\n this.getStats();\n }.bind(this));\n }\n }", "function pollWrapper_ () {\n \n return ifvisible.now() ? \n Provoke.run ('ServerWatcher' , 'poll' , {\n checksums:current_.checksums,\n domains:Object.keys(self.settings.on),\n properties:self.settings.properties,\n scope:self.settings.scope,\n auto:self.settings.auto\n }) : Promise.resolve (null);\n \n }", "function longpoll(name, since) {\n $.getJSON('/changes/' + name + '?since=' + since, function(changes) {\n // logging for sanity purposes\n log.info(\"Polling \" + name + \" API for changes...\");\n log.info(\"Changes: \");\n // add changes\n $.each(changes.tweets, function(i, tweet) {\n allTweets[tweet._id] = new DiseasesPin(tweet, map);\n });\n\t // restart poll timer\n\t changePolls[name] = setTimeout(function() {\n longpoll(name, changes.updateSequence);\n }, 60000);\n });\n}", "function longpoll(name, since) {\n $.getJSON('/' + api + '/changes/' + name + '?since=' + since, function(changes) {\n // logging for sanity purposes\n log.info(\"Polling \" + name + \" API for changes...\");\n log.info(\"Changes: \");\n // add changes\n $.each(changes.tweets, function(i, tweet) {\n log.info(\"\" + i);\n allTweets[name] = allTweets[name] || {};\n allTweets[name][tweet._id] = new PollutionPin(tweet, name, map);\n });\n\t // restart poll timer\n\t changePolls[name] = setTimeout(function() {\n longpoll(name, changes.updateSequence);\n }, 60000);\n });\n}", "function pollWork () {\n \n return new Promise(function (resolve, reject) {\n \n // check for visibility.. if not visible, then don't bother polling\n if (pack_ && watch_.pollVisibleOnly && !ifvisible.now() ) {\n status_.idle++;\n finallyActions();\n resolve(pack_);\n }\n else {\n\n Provoke.run (\"ServerWatcher\", \"poll\", watch_)\n .then (\n function (pack) {\n // save this for interest\n\n pack_ = pack;\n current_.dataSource = pack_.dataSource;\n \n \n // if there's been some changes to data then store it\n if (pack.data) {\n\n var columnOffset = pack_.dataSource.columnOffset;\n current_.filterMap = pack_.filterMap;\n \n if (watch_.domain.fiddler && watch_.domain.property === \"Values\") {\n // it may fail because data is in midde of being updated\n // but that's - it'll get it next time.\n try {\n current_.fiddler = new Fiddler()\n .setBlankOffset(columnOffset)\n .setRenameDups(true)\n .setRenameBlanks(true)\n .setValues(pack.data);\n }\n catch (err) {\n // dont want to count this as a valid piece of data yet\n // so we'll pass on this poll result and treat it as a reject\n console.log('error in client watcher',err);\n \n return rejectActions(reject,err);\n }\n }\n watch_.checksum.data = pack.checksum.data;\n current_.data = pack.data;\n current_.aux = pack.aux;\n }\n \n \n \n // if there's been some changes to active positions\n if(pack.active) {\n current_.active = pack.active;\n watch_.checksum.active = pack.checksum.active;\n }\n \n // if there's been some changes to sheets then store it\n if (pack.sheets) {\n current_.sheets = pack.sheets;\n watch_.checksum.sheets = pack.checksum.sheets;\n }\n \n if (pack.data || pack.active || pack.sheets) {\n status_.hits++;\n }\n finallyActions();\n resolve (pack);\n })\n ['catch'](function (err) {\n // sometimes there will be network errors which can generally be ignored..\n rejectActions (reject, err);\n });\n }\n });\n \n }", "function pollForData() {\n $.getJSON(\"/workout\",\n function (json) {\n updateWorkoutInfo(json);\n if (json['deadline'] - json['server_time'] <= 0) {\n cancelPoll();\n //turn the input fields back on\n toggleAllowInput(true);\n }\n });\n }", "function sharePoll() {\n\n //make sure there's a question\n if($('textarea#question').val().length == 0) {\n alert(\"Write a question!\");\n return;\n }\n\n var count = 0;\n var responses = [];\n for(var i = 0; i < responseCount; i++) {\n var response = $('input[id=answer'+i+']').val();\n if(response.length > 0) {\n responses.push(response);\n count++;\n }\n }\n\n //make sure at least one response is filled out\n if(count == 0) {\n alert(\"Put an option!\");\n return;\n }\n\n //start building up the JSON for the poll obj that we want to put back into the chat\n var poll = {\n question : $('textarea#question').val()\n }\n poll[\"responses\"] = JSON.stringify(responses);\n\n\n /* we're going to build up some html that's going to be rendered on the watch\n *\n * we create an array of pending objects in a script tag at the top of the html\n * in the UI part of the html, when someone taps on an option, we send the corresponding\n * pendingObj back into the chat\n */\n var html = '<script>var pendingObj = [];';\n\n for(var i = 0; i < count; i++) {\n var pendingObj = {\n \"Type\":\"app\",\n \"noun\":\"a poll response\",\n \"displayTitle\":\"WatchPoll\",\n \"displayText\":\"I voted for: \" + responses[i],\n \"json\": poll,\n \"callback\": encodeURI(window.location.href)\n };\n html += 'pendingObj.push ('+JSON.stringify(pendingObj)+');';\n }\n html += '</script><div style=\"width: 100%; margin-top: 8px; color: #e1bd83; text-align: center; font-size: 28px;\">'+poll.question+'</div>';\n\n for(var i = 0; i < count; i++) {\n\n html += '<div style=\"font-size: 30px; background: #53575c; line-height: 60px; width: 290px; height: 60px; margin-left: auto; margin-right: auto; margin-top: 10px; text-align: center; font-size: 34px;\" onclick=\"Omlet.sendObj(pendingObj['+i+'].Type, pendingObj['+i+']);\">'+responses[i]+'</div>';\n }\n\n //time to package up the poll JSON and the HTML into the RDL and ship it to Omlet\n var rdl = Omlet.createRDL({\n noun: \"a poll\",\n displayTitle: \"WatchPoll\",\n displayThumbnailUrl: \"http://ian-apps.s3-website-us-east-1.amazonaws.com/quikpoll/images/watchpoll.png\",\n displayText: poll.question,\n json: poll,\n displayHtmlSmall: html,\n callback: encodeURI(window.location.href)\n });\n Omlet.exit(rdl);\n}", "poll(interval) {\n let context = this;\n let polling = setInterval(function() {\n context.getLatestResponse();\n if (context.getClaimResponse().outcome != \"queued\") {\n clearInterval(polling);\n }\n }, interval);\n }", "async startPolling(pollOptions = {}) {\n if (this.stopped) {\n this.stopped = false;\n }\n while (!this.isStopped() && !this.isDone()) {\n await this.poll(pollOptions);\n await this.delay();\n }\n }", "async startPolling(pollOptions = {}) {\n if (this.stopped) {\n this.stopped = false;\n }\n while (!this.isStopped() && !this.isDone()) {\n await this.poll(pollOptions);\n await this.delay();\n }\n }", "_authenticateLocal() {\n request(`http://${this.printerIp}/auth`, {\n qs: {\n response_type: \"code\",\n client_id: AUTH_CLIENT_ID,\n client_secret: AUTH_CLIENT_SECRET\n },\n json: true\n }, (err, res, codeBody) => {\n // poll every 5s until request is either accepted or rejected\n this.emit(\"auth-push-knob\")\n\n var poll = setInterval(function() {\n request(`http://${this.printerIp}/auth`, {\n qs: {\n response_type: \"answer\",\n client_id: AUTH_CLIENT_ID,\n client_secret: AUTH_CLIENT_SECRET,\n answer_code: body.answer_code\n },\n json: true\n }, (err, res, answerBody) => {\n if(answerBody.answer === \"accepted\") {\n // we don't need to poll anymore\n clearInterval(poll)\n\n request(`http://${this.printerIp}/auth`, {\n qs: {\n response_type: \"token\",\n client_id: AUTH_CLIENT_ID,\n client_secret: AUTH_CLIENT_SECRET,\n context: \"jsonrpc\",\n auth_code: answerBody.code\n },\n json: true\n }, (err, res, tokenBody) => {\n // complete the JSON-RPC authentication\n _authenticateAccessToken(tokenBody.access_token)\n })\n }\n })\n }, 5000)\n })\n }", "function poll(data,response)\n{\n var q = querystring.parse(data);\n var host = q[hostid];\n var login = login_queue[host];\n if (login == null) {\n sendBackXml(\"<NONE />\");\n }\n login1(login,resp);\n}", "function pollExecList() {\n executionService.pollExecList($scope.executionList, $scope).then(function () {\n setTimeout(pollExecList, 1000);\n });\n }", "start() {\n // handle old polls\n if (this.pollHandle) {\n clearInterval(this.pollHandle);\n this.pollHandle = 0;\n }\n // start polling\n this.pollHandle = setInterval(this.poll, this.pollFrequency);\n }", "startPolling() {\n this.polling.start();\n }", "doPoll() {\n const req = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr poll error\", xhrStatus, context);\n });\n this.pollXhr = req;\n }", "async startPolling() {\n if (this.stopped) {\n this.stopped = false;\n }\n while (!this.isStopped() && !this.isDone()) {\n await this.poll();\n await this.delay();\n }\n }", "function triggerReprezentationByPocket(blacklist,pocketObject){\n localStorage[\"hostname\"] = \"pocket\";\n var contor = 0;\n for (var i in pocketObject){\n var url = pocketObject[i].resolved_url;\n if(!isBlackListed(blacklist,url) && contor < results){\n contor = contor + 1;\n httpGetAsync(url);\n }\n }\n localStorage[\"hostname\"] = \"\";\n}", "function ViewWebbingsCtrl($scope, Webbing, Poller){\n \n Poller.poll($scope, function(){\n $scope.webbingList = Webbing.query();\n });\n \n //Methods\n \n \n \n \n}", "isWhitelisted(listing) {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed();\n return yield deployed.methods.isWhitelisted(listing).call();\n });\n }", "function startStatusPolling(target_pk) {\n var process_statuses = null;\n\n window.setInterval(function() {\n // TODO: don't hardcode URL\n var url = '/api/async/status/' + target_pk + '/';\n $.get(url, function(data) {\n if (first_api_response_time === null) {\n first_api_response_time = data.timestamp;\n }\n if (JSON.stringify(process_statuses) !== JSON.stringify(data)) {\n process_statuses = data;\n showProcesses(process_statuses.processes);\n }\n }, 'json').fail(function() {\n showError('Failed to retrieve process statuses');\n });\n }, AJAX_POLL_INTERVAL);\n}", "doPoll() {\n debug$1(\"xhr poll\");\n const req = this.request();\n const self = this;\n req.on(\"data\", function(data) {\n self.onData(data);\n });\n req.on(\"error\", function(err) {\n self.onError(\"xhr poll error\", err);\n });\n this.pollXhr = req;\n }", "async addToBlackList (entry) {\n try {\n console.log('entry', entry)\n _this.setState({ inFetch: true })\n const { jwt } = getLocalUser()\n const options = {\n url: `${SERVER}/blacklist`,\n method: 'POST',\n headers: {\n Accept: 'application/json',\n Authorization: `Bearer ${jwt}`\n },\n data: {\n hash: entry._id,\n reason: 'Unspecified'\n }\n }\n const res = await axios(options)\n _this.setState({\n inFetch: false,\n blackListFetchStatus: {\n success: true,\n msg: res.data.message\n }\n })\n } catch (e) {\n _this.setState({\n inFetch: false,\n blackListFetchStatus: {\n success: false,\n msg: e.message\n }\n })\n }\n }", "function playerListPoll(){\n $.getJSON(\"/LQ/room_info/\" + room_code, function(data){\n console.log(data);\n $(\"#userList1, #userList2\").html(\"\");\n for(var i = 0; i < data.nameList.length; i++){\n $(\"#userList1, #userList2\").append(\"<li class='list-group-item'>\" + data.nameList[i] + \"</li>\");\n }\n if(data.gameStarted){\n window.location = \"/LQ/play\";\n }\n setTimeout(playerListPoll, 2500);\n });\n}", "_setTokenPoll() {\n setTimeout(() => {\n this.CheckTokenStatus();\n }, 3600000);\n // }, 20000);\n }", "function poll() {\n var hash = get_fragment(),\n history_hash = history_get(last_hash);\n\n if (hash !== last_hash) {\n history_set(last_hash = hash, history_hash);\n\n $(window).trigger(str_hashchange);\n\n } else if (history_hash !== last_hash) {\n location.href = location.href.replace(/#.*/, '') + history_hash;\n }\n\n timeout_id = setTimeout(poll, $.fn[str_hashchange].delay);\n }", "doPoll() {\n debug(\"xhr poll\");\n const req = this.request();\n const self = this;\n req.on(\"data\", function(data) {\n self.onData(data);\n });\n req.on(\"error\", function(err) {\n self.onError(\"xhr poll error\", err);\n });\n this.pollXhr = req;\n }", "doPoll() {\n debug(\"xhr poll\");\n const req = this.request();\n const self = this;\n req.on(\"data\", function(data) {\n self.onData(data);\n });\n req.on(\"error\", function(err) {\n self.onError(\"xhr poll error\", err);\n });\n this.pollXhr = req;\n }", "new(offer, listing) {\n var promises = [];\n var hasCurrentOffer = false;\n offer.term = listing.details.term;\n\n return ListingService.getCurrentUser()\n .then(user => {\n\n // check if the offer is in the accepted range\n if(offer.amount > user.investor.maximum) {\n return false;\n }\n\n // check if investor has already made an offer on this listing\n // if they have, replace the old offer with the new offer\n // return the funds from the original offer to the investor\n return Offers.getUserOffers(user._id)\n .then(offers => {\n angular.forEach(offers, function(currentOffer, key) {\n if(currentOffer.listing && currentOffer.listing._id === listing._id && currentOffer.user._id === user._id) {\n if(currentOffer.status === 'live' || currentOffer.status === 'pending') {\n hasCurrentOffer = true;\n\n var credit = {\n amount: currentOffer.amount,\n listing: listing._id,\n entry: 'Credit',\n kind: 'Offer',\n description: 'Refunded Offer on Listing ' + listing.general.businessName\n };\n promises.push(Transactions.create(user, credit));\n\n var debit = {\n amount: offer.amount,\n listing: listing._id,\n entry: 'Debit',\n kind: 'Offer',\n description: 'Made Offer on Listing ' + listing.general.businessName\n };\n promises.push(Transactions.create(user, debit));\n\n currentOffer.amount = offer.amount;\n currentOffer.rate = offer.rate;\n currentOffer.term = offer.term;\n currentOffer.date = new Date().toISOString();\n Offers.updateOffer(currentOffer)\n promises.push(currentOffer);\n }\n }\n });\n\n // take the funds for the offer from the investor for the offer\n // happens in the controller\n return $q.all(promises).then(() => {\n if(!hasCurrentOffer) {\n var debit = {\n amount: offer.amount,\n listing: listing._id,\n entry: 'Debit',\n kind: 'Offer',\n description: 'Made Offer on Listing ' + listing.general.businessName\n };\n\n Transactions.create(user, debit)\n .then(user => {\n var investorEmail = {\n firstname: user.name.first,\n email: user.email,\n business: {\n name: listing.general.businessName,\n id: listing._id\n }\n }\n Emails.offerPending(investorEmail);\n\n ListingService.getUserOne(listing._id)\n .then(user => {\n var borrowerEmail = {\n firstname: user.name.first,\n email: user.email,\n amount: offer.amount,\n rate: offer.rate,\n username: offer.user.username\n }\n Emails.listingNewOffer(borrowerEmail);\n });\n\n return $http.post('/api/offers', {\n user: user,\n offer: offer\n });\n });\n }\n\n // find the previous lowest offer and set it to outbid\n Offers.lowestOffers(listing);\n\n return true;\n });\n });\n })\n .catch(err => {\n console.log(err.message);\n });\n }", "function poll() {\n var hash = get_fragment(),\n history_hash = history_get(last_hash);\n\n if (hash !== last_hash) {\n history_set(last_hash = hash, history_hash);\n\n $(window).trigger(str_hashchange);\n\n } else if (history_hash !== last_hash) {\n location.href = location.href.replace(/#.*/, '') + history_hash;\n }\n\n timeout_id = setTimeout(poll, $.fn[str_hashchange].delay);\n }", "listings(listing) {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed();\n return yield deployed.methods.listings(listing).call();\n });\n }", "function getAllPolls(event) {\n console.log('poll button clicked');\n\n $.ajax({\n url: \"/polls\",\n method: \"GET\",\n headers: {authorization: 'Bearer ' + token}\n }).done(function(dataFromServer) {\n console.log('all polls including options returned from server');\n console.log(dataFromServer);\n\n }).fail(function() {\n console.log('failed to get poll');\n });\n }", "function pollPerks(pollArr){\n\tvar pollResults = [];\n\tfor(x in pollArr){\n\t\tif(pollArr[x].isRedacted){\n\t\t\tpollResults.push(x);\n\t\t}\n\t}\n\treturn pollResults;\n}", "function startPolling() {\n setInterval(checkForEvents, 2000);\n }", "poll(_pri) {\n HSystem.reniceApp(this.appId, _pri);\n }", "doPoll() {\n debug(\"xhr poll\");\n const req = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", err => {\n this.onError(\"xhr poll error\", err);\n });\n this.pollXhr = req;\n }", "doPoll() {\n debug(\"xhr poll\");\n const req = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", err => {\n this.onError(\"xhr poll error\", err);\n });\n this.pollXhr = req;\n }", "async createValidatorList() {\n\n console.log(\"Creating validator list\");\n\n const amount = new BN(1_000);\n const electedInfo = await this.api.derive.staking.electedInfo();\n const filteredElected = await this.filterValidators(electedInfo);\n console.log(`filteredElected has ${filteredElected.length} validators`);\n\n const activeEra = (await this.api.derive.session.indexes([])).activeEra;\n let lastEra = new BN(0);\n if (activeEra.gtn(0)) {\n lastEra = activeEra.subn(1);\n }\n console.log(\"lastEra = \", lastEra);\n\n const lastReward = await this.api.query.staking.erasValidatorReward([lastEra]);\n console.log(\"lastReward = \", lastReward);\n\n let sorted = [];\n if (filteredElected) {\n const validators = this.extractInfo(amount, filteredElected);\n sorted = this.sort(validators);\n console.log(\"sorted length: \", sorted.length);\n }\n\n // Lock the list and update it\n let self = this;\n this.listLock.readLock(function (release) {\n\n self.bestList = [];\n for (let i=0; i<sorted.length; i++) {\n if (i >= 16) break;\n\n self.bestList.push({\n accountId: sorted[i].accountId.toString(),\n bondOther: sorted[i].bondOther.toString(),\n bondOwn: sorted[i].bondOwn.toString(),\n bondShare: sorted[i].bondShare.toString(),\n bondTotal: sorted[i].bondTotal.toString(),\n isCommission: sorted[i].isCommission,\n key: sorted[i].key,\n commissionPer: sorted[i].commissionPer,\n numNominators: sorted[i].numNominators,\n rankBondOther: sorted[i].rankBondOther,\n rankBondOwn: sorted[i].rankBondOwn,\n rankBondTotal: sorted[i].rankBondTotal,\n rankComm: sorted[i].rankComm,\n rankOverall: sorted[i].rankOverall,\n rankPayment: sorted[i].rankPayment,\n rankReward: sorted[i].rankReward,\n rewardPayout: sorted[i].rewardPayout.toString(),\n rewardSplit: sorted[i].rewardSplit.toString(),\n validatorPayment: sorted[i].validatorPayment.toString()\n });\n }\n\n release();\n });\n }", "function authorizeViaBundleList(username, wsConnect) {\n\t \tvar deferred = Q.defer();\n\n\t \tvar bundleListPath = path.join(\n\t \t\twsConnect.path2db,\n\t \t\t'bundleLists',\n\t \t\tpath.normalize(username + '_bundleList.json')\n\t \t\t);\n\n\t \tfs.readFile(bundleListPath, 'utf8', function (err, data) {\n\t \t\tif (err) {\n\t \t\t\tlog.info('error reading _bundleList:', err,\n\t \t\t\t\t'; clientID:', wsConnect.connectionID,\n\t \t\t\t\t'; clientIP:', wsConnect._socket.remoteAddress);\n\n\t\t\t\t// handle wrong user name\n\t\t\t\tdeferred.reject();\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tlog.info('found _bndlList.json for user: ', username, ' in: ', wsConnect.requestUrl,\n\t\t\t\t\t'; clientID:', wsConnect.connectionID,\n\t\t\t\t\t'; clientIP:', wsConnect._socket.remoteAddress);\n\n\t\t\t\tvar parsedData;\n\t\t\t\t// safely parse data:\n\t\t\t\ttry {\n\t\t\t\t\tparsedData = jsonlint.parse(data);\n\t\t\t\t} catch (e) {\n\t\t\t\t\tlog.info('failed to parse bundle list for user: ', username, ' in: ', wsConnect.requestUrl,\n\t\t\t\t\t\t'; clientID:', wsConnect.connectionID,\n\t\t\t\t\t\t'; clientIP:', wsConnect._socket.remoteAddress);\n\t\t\t\t\tdeferred.reject();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tdeferred.resolve({\n\t\t\t\t\tparsedData: parsedData,\n\t\t\t\t\tpath: bundleListPath\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t \treturn deferred.promise;\n\t }", "function pollContext(gl) {\n __WEBPACK_IMPORTED_MODULE_5__helpers_query_manager__[\"a\" /* default */].poll(gl);\n}", "function woofList(game, stats, owner, pet, span) {\n //if it has a list selection, unlist, remove from listcount\n if (span.classList.contains('whitelist')) {\n listCount(game, stats, owner, pet, 'white');\n list(game, stats, owner, pet, 'unlist');\n } else if (span.classList.contains('blacklist')) {\n listCount(game, stats, owner, pet, 'black');\n list(game, stats, owner, pet, 'unlist');\n };\n //remove lisiting options from pair\n if (document.querySelector(`#${owner}-${pet}-list-container`)) {\n document.querySelector(`#${owner}-${pet}-list-container`).remove();\n };\n}", "function ViewWoolCtrl($scope, Wool, Poller){\n \n Poller.poll($scope, function(){\n $scope.woolList = Wool.query();\n });\n \n //Methods\n \n \n \n \n}", "function triggerReprezentationByBookmarks(folders_list, blacklist){\n if(localStorage[\"hostname\"] == \"\"){\n for (key in folders_list){\n displayfolder(key);\n }\n }else{\n var folder = localStorage[\"hostname\"];\n for(var i = 0; i < folders_list[folder].length; i++){\n if(!isBlackListed(blacklist,folders_list[folder][i])){\n httpGetAsync(folders_list[folder][i]);\n }\n }\n localStorage[\"hostname\"] = \"\";\n }\n}", "initBlockedList(blocked) {\n this.blockedList = blocked;\n }", "function main() {\n bidRequest(); \n\n var interval = 1000 * 5; //time interval \n\n window.setInterval(bidRequest, interval); // refreshes the bid list every five seconds\n}", "function poll() {\n var hash = get_fragment(),\n history_hash = history_get( last_hash );\n \n if ( hash !== last_hash ) {\n history_set( last_hash = hash, history_hash );\n \n $(window).trigger( str_hashchange );\n \n } else if ( history_hash !== last_hash ) {\n location.href = location.href.replace( /#.*/, '' ) + history_hash;\n }\n \n timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );\n }", "function poll() {\n var hash = get_fragment(),\n history_hash = history_get( last_hash );\n \n if ( hash !== last_hash ) {\n history_set( last_hash = hash, history_hash );\n \n $(window).trigger( str_hashchange );\n \n } else if ( history_hash !== last_hash ) {\n location.href = location.href.replace( /#.*/, '' ) + history_hash;\n }\n \n timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );\n }", "function poll() {\n var hash = get_fragment(),\n history_hash = history_get( last_hash );\n \n if ( hash !== last_hash ) {\n history_set( last_hash = hash, history_hash );\n \n $(window).trigger( str_hashchange );\n \n } else if ( history_hash !== last_hash ) {\n location.href = location.href.replace( /#.*/, '' ) + history_hash;\n }\n \n timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );\n }", "commit () {\n // If there were no leases to commit, return\n let filteredByStale = this.state.accepteds.filter(el => !el.stale);\n if (!filteredByStale.length) {\n alert(\"Nothing to commit\");\n return;\n }\n\n // Filter out leases that were stale TODO: only filter leases when exceeding accept max\n this.state.accepteds = filteredByStale;\n\n Service.commit(\n {\n 'list': this.state.accepteds.map(el => el.name)\n },\n (data) => {\n // Mark all leases as stale\n this.state.accepteds.forEach((el) => {\n el.stale = true;\n });\n this.forceUpdate();\n\n Service.getMaxValues({}, (data) => {\n this.lastUseIdx = data.lastUseIdx;\n this.mostUsed = data.mostUsed;\n });\n })\n }", "function enter() {\n console.log(\"Entering Main Function with \" + config.email + ' ' + config.gateway);\n\n request(URL, function (error, response, body) {\n if (!error) {\n let $ = cheerio.load(body);\n $('div.listing-group > div.listing').each(function( index ){\n var title = $(this).find('h2.title').text().trim();\n var price = $(this).find('h3.price').text().trim();\n var topURL = $(this).find('a').attr('href');\n\n if(listingList.indexOf(topURL) == -1){\n listingList.push(topURL);\n console.log(topURL);\n if(isFirstPass == 0){\n let mess = ('Yo check it out ' + baseURL + topURL + ' Cool Huh. \\n\\n');\n sendText(mess);\n }\n }\n });\n\n if(isFirstPass == 1){\n isFirstPass = 0;\n console.log(\"First Pass\");\n }\n } else {\n console.log(\"We’ve encountered an error: \" + error);\n }\n });\n\n\n setTimeout(enter, httpInterval);\n}", "function _fsw_poll() { return fsw_state; }", "function pollForTokenOrGiveUp(authUrl, cumulative, callback) {\n boxApi.dbg(\"Polling for auth token attempt \" + cumulative);\n\n if (cumulative > auth.attempts) {\n boxApi.alert(\"Giving up on auth token after \" + cumulative + \" attempts\");\n return;\n }\n\n $.get(authUrl, function(data, textStatus, jqXHR) {\n var json = goessner.parseXmlStringToJsonObj(jqXHR.responseText);\n\n if (!json) {\n boxApi.alert(\"Couldn't parse xml \" + jqXHR.responseText);\n return;\n }\n\n // Still waiting for window to close?\n if (json.response.status == \"not_logged_in\") {\n setTimeout(function() {\n pollForTokenOrGiveUp(authUrl, cumulative + 1, callback);\n }, 1000);\n\n return;\n }\n\n if (json.response.status != \"get_auth_token_ok\") {\n // The curious user can look at the browser's xhr tab for more info\n boxApi.alert(\"Couldn't load auth token. Did you enter the correct creds?\");\n return;\n }\n\n // Keep a private copy\n auth.token = json.response.auth_token;\n // Set the public version\n boxApi.authToken = auth.token;\n\n boxApi.loadingMode(false);\n callback();\n });\n }", "function whitelist(list) {\n if (Array.isArray(list)) {\n list = new Set(list);\n } else if (!(list instanceof Set)) {\n throw new TypeError('\"list\" must be an Array or a Set');\n }\n\n return function whitelistTest(request, reject, approve) {\n if (list.has(request.path)) {\n approve(request);\n } else {\n reject(`Unauthorized subscription to \"${request.path}\"`);\n }\n }\n}", "function addListing()\n{\n\n isLogin();\n var listing_obj = null;\n if (window.location.hash) {\n $('#page_title').html('Update Listing');\n $('.li_logout').before('<li class=\"ui-block-c\"><a class=\"ui-link ui-btn ui-icon-check ui-btn-icon-top\" id=\"del_listing\" data-icon=\"delete\">Delete</a></li>');\n $('#nbar ul li').css(\"width\", '25%');\n\n showLoader('Loading..');\n\n var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character\n\n var Listing = Parse.Object.extend(\"listings\");\n var query = new Parse.Query(Listing);\n query.get(hash, {\n success: function (listing) {\n listing_obj = listing;\n $(\"#first_name\").val(listing.attributes.first_name);\n $(\"#last_name\").val(listing.attributes.last_name);\n $('#status').val(listing.attributes.status).slider('refresh');\n $(\"#phone_number\").val(listing.attributes.phone_number);\n $(\"#cell_number\").val(listing.attributes.cell_number);\n $(\"#work_number\").val(listing.attributes.work_number);\n $(\"#work_number\").val(listing.attributes.work_number);\n $(\"#fax\").val(listing.attributes.fax);\n $(\"#email\").val(listing.attributes.email);\n $(\"#address\").val(listing.attributes.address);\n $(\"#city\").val(listing.attributes.city);\n $(\"#state\").val(listing.attributes.state);\n $(\"#propertytype\").val(listing.attributes.propertytype).selectmenu(\"refresh\");\n $(\"#listingprice\").val(listing.attributes.listingprice);\n// var d = listing.attributes.listingexp;\n// var curr_date = d.getDate();\n// var curr_month = d.getMonth() + 1;\n// var curr_year = d.getFullYear();\n var now = new Date(listing.attributes.listingexp);\n\n var day = (\"0\" + now.getDate()).slice(-2);\n var month = (\"0\" + (now.getMonth() + 1)).slice(-2);\n\n var today = now.getFullYear() + \"-\" + (month) + \"-\" + (day);\n\n $('#listingexp').val(today);\n\n // $(\"#listingexp\").val(new Date(curr_year+ \"-\" +pad(curr_month, 2) + \"-\" + pad(curr_date, 2) ));\n $(\"#numofbedrooms\").val(listing.attributes.numofbedrooms);\n $(\"#numofbaths\").val(listing.attributes.numofbaths);\n $(\"#squarefeet\").val(listing.attributes.squarefeet);\n $(\"#yearbuilt\").val(listing.attributes.yearbuilt);\n $(\"#pool\").val(listing.attributes.pool);\n $(\"#hottub\").val(listing.attributes.hottub);\n $(\"#garage\").val(listing.attributes.garage);\n $(\"#security\").val(listing.attributes.security);\n $(\"#notes\").val(listing.attributes.notes);\n $(\"#heating\").val(listing.attributes.heating);\n $(\"#cooling\").val(listing.attributes.cooling);\n $(\"#fireplaces\").val(listing.attributes.fireplaces);\n $(\"#floortype\").val(listing.attributes.floortype);\n $(\"#garagetype\").val(listing.attributes.garagetype);\n $(\"#lottype\").val(listing.attributes.lottype);\n $(\"#views\").val(listing.attributes.views);\n $(\"#ccr\").val(listing.attributes.ccr);\n $(\"#other\").val(listing.attributes.other);\n $(\"#mlsnum\").val(listing.attributes.mlsnum);\n $(\"#apn\").val(listing.attributes.apn);\n $(\"#lockbox\").val(listing.attributes.lockbox);\n $(\"#showing\").val(listing.attributes.showing);\n $(\"#financing\").val(listing.attributes.financing);\n $(\"#terms\").val(listing.attributes.terms);\n\n $(\"#agent\").val(listing.attributes.agent);\n $(\"#agent\").trigger(\"change\");\n $(\"#escrow\").val(listing.attributes.escrow);\n $(\"#escrow\").trigger(\"change\");\n $(\"#lender\").val(listing.attributes.lender);\n $(\"#lender\").trigger(\"change\");\n $(\"#homeinspector\").val(listing.attributes.homeinspector);\n $(\"#homeinspector\").trigger(\"change\");\n $(\"#appraiser\").val(listing.attributes.appraiser);\n $(\"#appraiser\").trigger(\"change\");\n $(\"#otherescrow\").val(listing.attributes.otherescrow);\n $(\"#otherescrow\").trigger(\"change\");\n $(\"#todos_list\").val(listing.attributes.todos_id);\n $(\"#todos_list\").trigger(\"change\");\n //$(\"#agent\").val(listing.attributes.agent).selectmenu(\"refresh\");\n //$(\"#agent\").selectmenu(\"refresh\");\n //$(\"#escrow\").val(listing.attributes.escrow).selectmenu(\"refresh\");\n //$(\"#lender\").val(listing.attributes.lender).selectmenu(\"refresh\");\n //$(\"#homeinspector\").val(listing.attributes.homeinspector).selectmenu(\"refresh\");\n //$(\"#appraiser\").val(listing.attributes.appraiser).selectmenu(\"refresh\");\n //$(\"#otherescrow\").val(listing.attributes.otherescrow).selectmenu(\"refresh\");\n $('#listing_excrow_contacts select').selectmenu(\"refresh\", true);\n //$(\"#listing_excrow_contacts select\").trigger(\"change\");\n //$(\"#todos_list\").selectmenu(\"refresh\", true);\n //$(\"#todos_list\").val(listing.attributes.todos_id).selectmenu(\"refresh\");//$(\"#updateprofile-view select\").selectmenu(\"refresh\", true);\n //alert(listing.attributes.agent);\n if (listing.attributes.agent != '') {\n\n $(\"#listing_excrow_contacts a#agent_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.agent);\n }\n if (listing.attributes.escrow != '') {\n $(\"#listing_excrow_contacts a#escrow_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.escrow);\n }\n if (listing.attributes.lender != '') {\n $(\"#listing_excrow_contacts a#lender_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.lender);\n }\n if (listing.attributes.homeinspector != '') {\n $(\"#listing_excrow_contacts a#homeinspector_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.homeinspector);\n }\n if (listing.attributes.appraiser != '') {\n $(\"#listing_excrow_contacts a#appraiser_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.appraiser);\n }\n if (listing.attributes.otherescrow != '') {\n $(\"#listing_excrow_contacts a#other_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.otherescrow);\n }\n\n hideLoader();\n\n },\n error: function (object, error) {\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n }\n });\n }\n\n $(\"#addListing\").click(function () {\n //alert($(\"#listingPhotoFile\").val())\n var fileUploadControl = $(\"#listingPhotoFile\")[0];\n if (fileUploadControl.files.length > 0) {\n for (var i = 0; i < fileUploadControl.files.length; i++) {\n var file = fileUploadControl.files[0];\n var name = \"photo.jpg\";\n\n var parseFile = new Parse.File(name, file);\n parseFile.save().then(function () {\n // The file has been saved to Parse.\n }, function (error) {\n // The file either could not be read, or could not be saved to Parse.\n });\n /*var serverUrl = 'https://api.parse.com/1/files/' + file.name;\n $.ajax({\n type: \"POST\",\n beforeSend: function (request) {\n //request.setRequestHeader(\"X-Parse-Application-Id\", '0OykuJcMdWmif83qhHytaZhgRArtOdDU4STnIvcW');\n //request.setRequestHeader(\"X-Parse-REST-API-Key\", 'aiAXzwjcLWqv6VxRQaVKggNceM0mH3PD4mtR5ylm');\n request.setRequestHeader(\"Content-Type\", file.type);\n },\n url: serverUrl,\n data: file,\n processData: false,\n contentType: false,\n success: function (data) {\n alert(\"File available at: \" + data.url);\n },\n error: function (data) {\n var obj = jQuery.parseJSON(data);\n alert(obj.error);\n }\n });*/\n }\n }\n /*if ($(\"#frm_addListing\").validationEngine('validate'))\n {\n \n var user = Parse.User.current();\n var listing;\n showLoader('Saving..');\n \n if (listing_obj)\n {\n listing = listing_obj;\n listing_obj = null;\n } else\n {\n \n var Listing = Parse.Object.extend(\"listings\");\n listing = new Listing();\n }\n listing.set(\"first_name\", $('#first_name').val());\n listing.set(\"last_name\", $('#last_name').val());\n listing.set(\"phone_number\", $('#phone_number').val());\n listing.set(\"status\", $('#status').val());\n listing.set(\"cell_number\", $('#cell_number').val());\n listing.set(\"work_number\", $('#work_number').val());\n listing.set(\"fax\", $('#fax').val());\n listing.set(\"email\", $('#email').val());\n listing.set(\"address\", $('#address').val());\n listing.set(\"city\", $('#city').val());\n listing.set(\"state\", $('#state').val());\n listing.set(\"propertytype\", $('#propertytype').val());\n listing.set(\"listingprice\", $('#listingprice').val());\n var str = $('#listingexp').val();\n listing.set(\"listingexp\", new Date(str));\n listing.set(\"numofbedrooms\", $('#numofbedrooms').val());\n listing.set(\"numofbaths\", $('#numofbaths').val());\n listing.set(\"squarefeet\", $('#squarefeet').val());\n listing.set(\"yearbuilt\", $('#yearbuilt').val());\n listing.set(\"pool\", $('#pool').val());\n listing.set(\"hottub\", $('#hottub').val());\n listing.set(\"garage\", $('#garage').val());\n listing.set(\"security\", $('#security').val());\n listing.set(\"notes\", $('#notes').val());\n listing.set(\"heating\", $('#heating').val());\n listing.set(\"cooling\", $('#cooling').val());\n listing.set(\"fireplaces\", $('#fireplaces').val());\n listing.set(\"floortype\", $('#floortype').val());\n listing.set(\"garagetype\", $('#garagetype').val());\n listing.set(\"lottype\", $('#lottype').val());\n listing.set(\"views\", $('#views').val());\n listing.set(\"ccr\", $('#ccr').val());\n listing.set(\"other\", $('#other').val());\n listing.set(\"mlsnum\", $('#mlsnum').val());\n listing.set(\"apn\", $('#apn').val());\n listing.set(\"lockbox\", $('#lockbox').val());\n listing.set(\"showing\", $('#showing').val());\n listing.set(\"financing\", $('#financing').val());\n listing.set(\"terms\", $('#terms').val());\n listing.set(\"agent\", $('#agent').val());\n listing.set(\"escrow\", $('#escrow').val());\n listing.set(\"lender\", $('#lender').val());\n listing.set(\"homeinspector\", $('#homeinspector').val());\n listing.set(\"appraiser\", $('#appraiser').val());\n listing.set(\"otherescrow\", $('#otherescrow').val());\n listing.set(\"todos_id\", $('#todos_list').val());\n listing.set(\"user\", user);\n listing.save(null, {\n success: function (listing)\n {\n window.location = \"listings.html#saved\";\n // $(\"#message\").html(\"<div class='success'>Listing has been saved successfully. </div>\");\n // emptyForm('frm_addListing');\n // hideLoader();\n },\n error: function (user, error) {\n //alert(error.message);\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n \n }\n \n \n });\n \n \n }*/\n });\n\n $('#del_listing').click(function () {\n\n\n if (confirm(\"Are you sure to delete this record!\")) {\n showLoader('Deleting..');\n listing_obj.destroy({\n success: function (myObject) {\n window.location = \"listings.html#deleted\";\n },\n error: function (myObject, error) {\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n }\n });\n\n }\n\n\n });\n}", "function pollTrucksApp( currentUser ) {\n\t\t$http.get('/DashCon/truckFeedPoll').success( function( data ) {\n\t\t\t// Disregard invalid entries\n\t\t\tif( data.timestamp != null && data.timestamp != \"null\" ) {\n\t\t\t// populate feeds based on current user's site id\n\t\t\t\tif( currentUser.siteId == data.siteId ) {\n\t\t\t\t\ttruckPhoneAppEntry( data, currentUser );\n\t\t\t\t}\n\t\t\t}\n\t\t\tpollTrucksApp(currentUser);\n\t\t}).error( function( err ) {\n\t\t\tconsole.log( err );\n\t\t\tpollTrucksApp(currentUser);\n\t\t});\n\t}", "function poll() {\n if (isRunning()) {\n if (checkForDirectives()) {\n return;\n }\n (key_at_a_time) ? pollKeyStuff()\n : pollLineStuff();\n }\n }", "updateStatus(listing, opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const account = this.requireAccount(opts), deployed = this.requireDeployed();\n return yield deployed.methods.updateStatus(listing).send({ from: account });\n });\n }", "function _pollHash(){\n if (!_listenerWindow) {\n return;\n }\n var href = _listenerWindow.location.href, hash = \"\", indexOf = href.indexOf(\"#\");\n if (indexOf != -1) {\n hash = href.substring(indexOf);\n }\n if (hash && hash != _lastMsg) {\n _handleHash(hash);\n }\n }", "function pollForTransactions() {\n\t\t$log.info('About to request transactions');\n\t\tbaseTransactions.getList({filter:$scope.filterOptions.filterText}).then(function(transactions) {\n\t\t\t$log.info('Got transactions');\n\t\t\t$scope.transactions = transactions;\n\t\t\tbaseTransactions = transactions;\n\t\t\tif (!angular.isDefined(polling))\n\t\t\t{\n\t\t\t\tpolling = $interval(pollForTransactions, 1000);\n\t\t\t\t// Cancel interval on page changes\n\t\t\t\t$scope.$on('$destroy', function(){\n\t\t\t\t\tif (angular.isDefined(polling)) {\n\t\t\t\t\t\t$interval.cancel(polling);\n\t\t\t\t\t\tpolling = undefined;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "doPoll() {\n const self = this;\n const script = document.createElement(\"script\");\n\n if (this.script) {\n this.script.parentNode.removeChild(this.script);\n this.script = null;\n }\n\n script.async = true;\n script.src = this.uri();\n script.onerror = function(e) {\n self.onError(\"jsonp poll error\", e);\n };\n\n const insertAt = document.getElementsByTagName(\"script\")[0];\n if (insertAt) {\n insertAt.parentNode.insertBefore(script, insertAt);\n } else {\n (document.head || document.body).appendChild(script);\n }\n this.script = script;\n\n const isUAgecko =\n \"undefined\" !== typeof navigator && /gecko/i.test(navigator.userAgent);\n\n if (isUAgecko) {\n setTimeout(function() {\n const iframe = document.createElement(\"iframe\");\n document.body.appendChild(iframe);\n document.body.removeChild(iframe);\n }, 100);\n }\n }", "function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }", "function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }", "function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }", "startPolling() {\n if (this.interval) {\n return;\n }\n\n this.keepPolling = true;\n this.asyncInterval(this.props.intervalDuration, this.onInterval);\n }", "doPoll() {\n const self = this;\n const script = document.createElement(\"script\");\n\n if (this.script) {\n this.script.parentNode.removeChild(this.script);\n this.script = null;\n }\n\n script.async = true;\n script.src = this.uri();\n script.onerror = function(e) {\n self.onError(\"jsonp poll error\", e);\n };\n\n const insertAt = document.getElementsByTagName(\"script\")[0];\n if (insertAt) {\n insertAt.parentNode.insertBefore(script, insertAt);\n } else {\n (document.head || document.body).appendChild(script);\n }\n this.script = script;\n\n const isUAgecko =\n \"undefined\" !== typeof navigator && /gecko/i.test(navigator.userAgent);\n\n if (isUAgecko) {\n setTimeout(function() {\n const iframe = document.createElement(\"iframe\");\n document.body.appendChild(iframe);\n document.body.removeChild(iframe);\n }, 100);\n }\n }", "doPoll() {\n const self = this;\n const script = document.createElement(\"script\");\n\n if (this.script) {\n this.script.parentNode.removeChild(this.script);\n this.script = null;\n }\n\n script.async = true;\n script.src = this.uri();\n script.onerror = function(e) {\n self.onError(\"jsonp poll error\", e);\n };\n\n const insertAt = document.getElementsByTagName(\"script\")[0];\n if (insertAt) {\n insertAt.parentNode.insertBefore(script, insertAt);\n } else {\n (document.head || document.body).appendChild(script);\n }\n this.script = script;\n\n const isUAgecko =\n \"undefined\" !== typeof navigator && /gecko/i.test(navigator.userAgent);\n\n if (isUAgecko) {\n setTimeout(function() {\n const iframe = document.createElement(\"iframe\");\n document.body.appendChild(iframe);\n document.body.removeChild(iframe);\n }, 100);\n }\n }", "constructor() {\n this._listings = null;\n /**\n */\n this._listingsLoaded = new Signal(this);\n requestAPI('@jupyterlab/extensionmanager-extension/listings.json')\n .then(data => {\n this._listings = {\n mode: 'default',\n uris: [],\n entries: []\n };\n if (data.blacklist_uris.length > 0 && data.whitelist_uris.length > 0) {\n console.warn('Simultaneous black and white list are not allowed.');\n this._listings = {\n mode: 'invalid',\n uris: [],\n entries: []\n };\n }\n else if (data.blacklist_uris.length > 0 ||\n data.whitelist_uris.length > 0) {\n this._listings = {\n mode: data.blacklist_uris.length > 0 ? 'black' : 'white',\n uris: data.blacklist_uris.length > 0\n ? data.blacklist_uris\n : data.whitelist_uris,\n entries: data.blacklist_uris.length > 0 ? data.blacklist : data.whitelist\n };\n }\n this._listingsLoaded.emit(this._listings);\n })\n .catch(error => {\n console.error(error);\n });\n }", "function viewPoll() {\n $(\"#poll\").on(\"click\", function () {\n window.open(\"https://www.strawpoll.me/44308387\");\n });\n}", "function pollTracker() {\n var parts = url.parse(config['tracker']);\n var req = http.request({\n method: \"GET\",\n hostname: parts['hostname'],\n port: parts['port'],\n path: \"/tracker/api/my/downloads\",\n headers: {\n \"X-Server-Auth\": config['token'],\n \"User-Agent\": \"server-\" + config['id']\n }\n }, function(res) {\n var body = \"\";\n res.on('data', function(chunk) {\n body += chunk;\n });\n res.on(\"error\", function(e) {\n console.log(\"error reading poll response from tracker: \" + e);\n });\n res.on('end', function() {\n try {\n var data = JSON.parse(body);\n if (!data.downloads)\n throw \"no downloads\";\n }\n catch(e) {\n console.log(e);\n return;\n }\n\n data.downloads.forEach(function(download) {\n var dest = path.join(config['data_root'], download.hash);\n if (!fs.existsSync(dest) && !sync.jobs[download.hash]) {\n console.log(\"enqueued \" + download.hash);\n sync.queue.push(download);\n }\n });\n });\n });\n req.on(\"error\", function(e) {\n console.log(\"error polling tracker: \" + e);\n });\n req.end();\n}", "function pollForTicketBannerElement() {\n\tvar ticketBanner = null;\n\tvar timesChecked = 0;\n\tvar timeBetweenAttempt = 500;\n\t\n\tvar searchInterval = setInterval(function() {\n\t\tvar ticketBanner = findTicketBannerExists();\n\t\t\n\t\tif(ticketBanner !== null) {\n\t\t\tclearInterval(searchInterval);\n\t\t\tsetTimePicker(ticketBanner);\t\t\n\t\t}\n\t},timeBetweenAttempt);\n}", "enterFplist(ctx) {\n\t}", "refreshListStructure(blInit = false)\n {\n var objEslTools = new EslTools();\n\n if(blInit) {\n var objMetaMaskList = {\n \"status\": true,\n \"timestamp\": 0,\n \"repo\": \"https://api.infura.io/v2/blacklist\",\n \"list\": []\n };\n } else {\n var objMetaMaskList = this.getListStructure();\n }\n\n if(objMetaMaskList.status) {\n objEslTools.getListFromGithub(objMetaMaskList).then(function (objList) {\n objMetaMaskList.timestamp = Math.floor(Date.now() / 1000);\n objMetaMaskList.list = objList;\n\n localStorage.setItem(\"ext-ethersecuritylookup-metamask_lists\", JSON.stringify(objMetaMaskList));\n this.getStats();\n }.bind(this));\n }\n }", "_poll(ms){\n if( !ms ){\n ms = this.pollInterval;\n }\n if( this.polling ){\n return Promise.reject(Error('query is already polling'));\n }\n if( this.client.state != 'authenticated' ){\n this.polling = this._pollLater(ms);\n } else {\n this.polling = this.run().catch( ex => true ).then( () => {\n if( !this.polling ){\n return;\n }\n return this._pollLater(ms);\n })\n }\n return this.polling;\n }", "function _pollHash(){\r\n if (!_listenerWindow) {\r\n return;\r\n }\r\n var href = _listenerWindow.location.href, hash = \"\", indexOf = href.indexOf(\"#\");\r\n if (indexOf != -1) {\r\n hash = href.substring(indexOf);\r\n }\r\n if (hash && hash != _lastMsg) {\r\n _handleHash(hash);\r\n }\r\n }", "function slowPoll() {\n if (pollingFast) return;\n poll.set(options.pollInterval, function() {\n startOperation();\n readInput();\n if (focused) slowPoll();\n endOperation();\n });\n }", "doPoll() {\n const script = document.createElement(\"script\");\n\n if (this.script) {\n this.script.parentNode.removeChild(this.script);\n this.script = null;\n }\n\n script.async = true;\n script.src = this.uri();\n\n script.onerror = e => {\n this.onError(\"jsonp poll error\", e);\n };\n\n const insertAt = document.getElementsByTagName(\"script\")[0];\n\n if (insertAt) {\n insertAt.parentNode.insertBefore(script, insertAt);\n } else {\n (document.head || document.body).appendChild(script);\n }\n\n this.script = script;\n const isUAgecko = \"undefined\" !== typeof navigator && /gecko/i.test(navigator.userAgent);\n\n if (isUAgecko) {\n setTimeout(function () {\n const iframe = document.createElement(\"iframe\");\n document.body.appendChild(iframe);\n document.body.removeChild(iframe);\n }, 100);\n }\n }", "function refreshList() {\n axios.get(url + HoldRoute + \"/withtools/json\").then((response) => {\n setList(response.data);\n });\n }", "handleAppAdd() {\n // Ignore if there is no selection\n const selection = this.state.appDropdownSelection;\n if (selection === null) return \n\n let appBlockers = this.state.blockers.apps;\n\n // Check if app is already in the list\n const foundExistingEntry = appBlockers.find(blocker => blocker === selection);\n if (foundExistingEntry != undefined) return;\n\n // Go ahead and append it to the list\n appBlockers.push(this.state.appDropdownSelection);\n store.preferences.set('blockers.apps', appBlockers);\n }", "queryLists() {\n fetch(\"https://deco3801-oblong.uqcloud.net/wanderlist/get_bucketlist_belonging_to_user/\" + this.state.userData.id)\n .then(response => response.json())\n .then(obj => this.loadLists(obj));\n }", "function askListing (session, args, next) {\r\n // First check to see if we either got a listing from LUIS or have a an existing listing\r\n // that we can multi-turn over.\r\n var listing;\r\n var entity = builder.EntityRecognizer.findEntity(args.entities, 'ListingName');\r\n if (entity) {\r\n // The user specified a listing so lets look it up to make sure its valid.\r\n // * This calls the underlying function Prompts.choice() uses to match a users response\r\n // to a list of choices. When you pass it an object it will use the field names as the\r\n // list of choices to match against. \r\n listing = builder.EntityRecognizer.findBestMatch(dataListing, entity.entity);\r\n } else if (session.dialogData.listing) {\r\n // Just multi-turn over the existing listing\r\n listing = session.dialogData.listing;\r\n }\r\n \r\n // Prompt the user to pick a listing if they didn't specify a valid one.\r\n if (!listing) {\r\n // Lets see if the user just asked for a listing we don't know about.\r\n var txt = entity ? session.gettext(prompts.listingUnknown, { listing: entity.entity }) : prompts.listingMissing;\r\n \r\n // Prompt the user to pick a listing from the list. They can also ask to cancel the operation.\r\n builder.Prompts.choice(session, txt, dataListing);\r\n } else {\r\n // Great! pass the listing to the next step in the waterfall which will answer the question.\r\n // * This will match the format of the response returned from Prompts.choice().\r\n next({ response: listing });\r\n }\r\n}", "function getWishList(callback){\r\n\r\n if(localStorage.getItem(\"sessTok\") === null){\r\n console.log(\"hit\");\r\n location.replace('login.html');\r\n }\r\n accessTok = localStorage.getItem(\"sessTok\");\r\n console.log(accessTok);\r\n\r\n let wishList;\r\n var xhttp = new XMLHttpRequest();\r\n xhttp.onreadystatechange = function(){\r\n if(this.readyState == 4){\r\n wishList = JSON.parse(xhttp.responseText);\r\n callback(wishList);\r\n }\r\n }\r\n\r\n xhttp.open(\"GET\", \"http://fa19server.appspot.com/api/wishlists/myWishList?access_token=\"+accessTok);\r\n xhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');\r\n xhttp.send();\r\n}", "function AuthAndAskForTaskLists() {\n loader.Load(true);\n}", "function register_list(access_token, list, cb) {\n return unirest.post('https://a.wunderlist.com/api/v1/webhooks')\n .header('X-Access-Token', access_token)\n .header('X-Client-ID', WUNDERLIST_CLIENT_ID)\n .send({\n 'list_id': list['id'],\n 'url': WEBHOOK_URL,\n 'processor_type': 'generic',\n 'configuration': ''\n })\n .end(function(response) {\n console.log('WebHook: ' + JSON.stringify(response.body));\n\n cb();\n });\n}", "_setPolling() {\n\t\tif (this.requestPolling > 0) {\n\t\t\tif (this._pollingInterval) {\n\t\t\t\tclearInterval(this._pollingInterval);\n\t\t\t}\n\n\t\t\tthis._pollingInterval = setInterval(() => {\n\t\t\t\tthis._isResolvedData = false;\n\t\t\t\tthis._fetchData();\n\t\t\t}, this.requestPolling);\n\t\t}\n\t}", "function checklist() {\n\n let namespace = 'checklist';\n\n function successCallback(as) {\n // read assignment state\n if (typeof as[namespace] === 'undefined') {\n items = {};\n } else {\n items = as[namespace];\n }\n let exs = gather_exercises()\n create_checklist(exs)\n process_checkboxes(items,namespace)\n };\n\n try {\n CarnapServerAPI.getAssignmentState().then(successCallback);\n } catch {\n console.log('Unable to access CarnapServerAPI');\n items = {};\n let exs = gather_exercises()\n create_checklist(exs)\n process_checkboxes(items,namespace)\n }\n}", "watch (usePolling = false) {\n if (this.isBeingWatched) return\n const { from } = this.data\n const options = { usePolling, ignored: /(^|[\\/\\\\])\\../ }\n const switchCallback = (eventName, fromRelative) =>\n this.switchCallback(eventName, fromRelative, true)\n this.watcher = chokidar.watch(from, options).on('all', switchCallback)\n this.isBeingWatched = true\n }", "function ViewThreadsCtrl($scope, Thread, Poller){\n \n Poller.poll($scope, function(){\n $scope.threadList = Thread.query();\n });\n \n //Methods\n \n \n \n \n}", "function updateLockInterval(action, frame, lu, uname, cb){\n return function(err, results){\n if (err || !results) return cb(err, results)\n if (action=='free'){\n //release the lock from live lock\n\n }\n else if (action=='lock'){\n\n\n }\n\n\n\n }\n\n\n}", "function userListLongPooling() {\n new Ajax.Request(\"checkUserList.php\",\n {\n method: \"post\",\n onSuccess: updateUserList\n });\n}", "function blogsWaitingForApproval(){\r\n\t\tBlogPostService.blogsWaitingForApproval().then(function(response){\r\n\t\t\t\r\n\t\t\t$scope.listOfBlogsWaitingForApproval=response.data //list<blogpost> waiting for approval\r\n\t\t},function(response){\r\n\t\t\tif(response.status==401)\r\n\t\t\t\t$location.path('/login')\r\n\t\t})\r\n\t}", "function startWorkout() {\n cancelPoll(); // just in case we were still polling for some reason\n if (validateInput()) {\n $.ajax({\n url: '/workout',\n type: \"PUT\",\n data: JSON.stringify({\n time: timeStringToSeconds($(\"#timeLeft\").val()),\n mode: 'random',\n frequencies: {\n 'r': parseInt($(\"#rFreq\").val()),\n 'c': parseInt($(\"#cFreq\").val()),\n 'l': parseInt($(\"#lFreq\").val())\n }\n }),\n dataType: \"json\",\n contentType: \"application/json; charset=utf-8\",\n success: function () {\n //turn off input fields\n toggleAllowInput(false);\n pollerInterval = setInterval(pollForData, 500);\n }\n });\n }\n }", "poll(interval) {\n return __awaiter(this, void 0, void 0, function* () {\n interval && this.configure({ interval }, false, false);\n this.handle && clearTimeout(this.handle);\n yield util_1.safelyExecute(() => this.updateExchangeRates());\n this.handle = setTimeout(() => {\n this.poll(this.config.interval);\n }, this.config.interval);\n });\n }", "function pollStatus () {\n //Quick polling until location known\n if (gOnLanValid && !gOnLan && !gGeoLat) {\n pollGeo ();\n }\n loadJSONP(\n \"/json/stat.json\",\n function(newStatus) {\n if (JSON.stringify(gStatus) !== JSON.stringify(newStatus)) {\n console.log(newStatus);\n gStatus = newStatus;\n gStatusUpdate = true;\n updateDisplay();\n if (!checkStreamOK) {\n fullStopPlayer();\n updateDisplay();\n }\n }\n }, null, null, \"jpstat\"\n );\n //Get player into intended state\n if (gPlayIntention && !gPlaying && !gEnacting) {\n startPlayer();\n updateDisplay();\n }\n if (!gPlayIntention && gPlaying && !gEnacting) {\n console.log(\"Stopping to intended state\");\n stopPlayer();\n updateDisplay();\n }\n}", "async fetchAllowedBreaks() {\n let loginUser = localStorage.getItem('token');\n try {\n dispatch.breaks.setIsFetchingButton(true);\n let response = await breakURL.get('/breaks/me/allowed-breaks', {\n headers: {\n Authorization: `Bearer ${loginUser}`,\n 'Content-Type': 'application/json',\n },\n });\n dispatch.breaks.setAllowedBreakList(response.data.data);\n localStorage.setItem(\n 'allowedBreakList',\n JSON.stringify(response.data.data),\n );\n dispatch.breaks.setIsFetchingButton(false);\n } catch (err) {\n console.log(err);\n dispatch.breaks.setIsFetching(false);\n }\n }", "async function setupLPRewards(PushToken, StakingInstance, CommunityVault, deployedContracts, versionDetails) {\n const yieldFarmLPInitialArgs = STAKING_INFO.stakingInfo.liquidityPoolTokens\n\n console.log(chalk.bgBlue.white(`Deploying LP Yield Farming Contract`));\n // Deploying LP token Yield Farming Contract\n const yieldFarmLPArgs = [\n PushToken.address,\n versionDetails.deploy.args.lpPoolTokenAddress,\n StakingInstance.address,\n CommunityVault.address,\n yieldFarmLPInitialArgs.startAmount.mul(ethers.BigNumber.from(10).pow(18)).toString(),\n yieldFarmLPInitialArgs.deprecation.mul(ethers.BigNumber.from(10).pow(18)).toString(),\n yieldFarmLPInitialArgs.nrOfEpochs.toString()\n ]\n const yieldFarmLPInstance = await deployContract(\"YieldFarm\", yieldFarmLPArgs, \"YieldFarm\")\n deployedContracts.push(yieldFarmLPInstance)\n\n console.log(chalk.bgBlue.white(`Setting allowance for Staking contracts to spend tokens from CommunityVault`))\n const txCommunityVault = await CommunityVault.setAllowance(yieldFarmLPInstance.address, STAKING_INFO.stakingInfo.helpers.getLiquidityDistributionAmount())\n\n console.log(chalk.bgBlack.white(`Transaction hash:`), chalk.gray(`${txCommunityVault.hash}`))\n console.log(chalk.bgBlack.white(`Transaction etherscan:`), chalk.gray(`https://${hre.network.name}.etherscan.io/tx/${txCommunityVault.hash}`))\n\n return deployedContracts\n}", "static PollHostList() {}", "function pollCurrentGrillStatus() {\n globals.currentGrillStatus(null, true, true);\n }" ]
[ "0.5411924", "0.52926207", "0.5135856", "0.5104827", "0.5075564", "0.5017226", "0.49952075", "0.49858502", "0.4978382", "0.4871183", "0.48711342", "0.4826024", "0.47945887", "0.47945887", "0.47902086", "0.47778672", "0.47672728", "0.47649515", "0.4747191", "0.47253856", "0.47234583", "0.46987125", "0.46929735", "0.46816027", "0.4659777", "0.46570113", "0.46567255", "0.46481252", "0.46445018", "0.4628905", "0.46207374", "0.46207374", "0.4602694", "0.4593846", "0.45783028", "0.45742616", "0.45654392", "0.4563567", "0.45603594", "0.45477813", "0.45372418", "0.4512735", "0.4504653", "0.4497451", "0.44902703", "0.4469553", "0.44558698", "0.44548488", "0.44526693", "0.44482735", "0.44482735", "0.44482735", "0.44472829", "0.4443341", "0.44322464", "0.44315606", "0.4425019", "0.44236395", "0.44228578", "0.44191176", "0.4418399", "0.44140702", "0.44112003", "0.4411147", "0.4395364", "0.4395364", "0.4395364", "0.43931568", "0.43873203", "0.43873203", "0.43859953", "0.43855274", "0.43848687", "0.4384633", "0.43825406", "0.43756", "0.43739262", "0.43720317", "0.4363553", "0.43355536", "0.4331279", "0.43246722", "0.43231657", "0.43202665", "0.4319464", "0.4314219", "0.431184", "0.43021813", "0.43006644", "0.43001944", "0.42970353", "0.42910755", "0.42826965", "0.42811435", "0.42786676", "0.42724726", "0.42701834", "0.4270156", "0.42657307", "0.42645985", "0.4262287" ]
0.0
-1
Return a challenge corresponding to the given challegeID.
challenges(challengeID) { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return yield deployed.methods.challenges(challengeID).call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getChallenge(challengeId) {\n return wordChallenges.findOne({ _id: challengeId });\n }", "getChallengeID() {\r\n let matches = this._challengeURLMatches();\r\n return matches[1];\r\n }", "function _getChallengeById(req, res, next) {\n var json = {};\n var query = { \"_id\": new ObjectID(req.query.challengeId) };\n CHALLENGE_COLLECTION.findOne(query, function (err, challenge) {\n console.log(\"challenge : \" + challenge.length);\n if (err) {\n json.status = '0';\n json.result = { 'Error': JSON.stringify(err) };\n res.send(json);\n } else {\n json.status = '1';\n json.challenge = challenge;\n console.log(\"JSON : \" + JSON.stringify(json));\n res.send(json);\n }\n });\n}", "function _getChallengeDetail(req, res, next) {\n var json = {};\n var param = {};\n var query = { \"_id\": new ObjectID(req.query.challengeId) };\n CHALLENGE_COLLECTION.findOne(query, param, function (err, challenge) {\n if (err) {\n json.status = '0';\n json.result = { 'Error': JSON.stringify(err) };\n res.send(json);\n } else {\n json.status = '1';\n json.challenge = challenge;\n res.send(json);\n }\n });\n}", "getChallengeDetail(id) {\n axios.get(`view/created-challenges?challengeId=${id}`).then(res => {\n let challenge = res.data.challenges[0];\n\n this.setState({\n challenge: challenge.title,\n aboutChallenge: challenge.challengeDescription.aboutChallenge,\n goalDescription: challenge.challengeDescription.goalDescription,\n joinDescription: challenge.challengeDescription.joinDescription,\n policyDescription: challenge.challengeDescription.policyDescription,\n challengeStartDate: challenge.startDate,\n challengeEndDate: challenge.endDate,\n image: BASE_URL + challenge.image,\n activityType: challenge.activityType,\n maxValue: challenge.totalCount,\n minValue: challenge.minCount\n });\n });\n }", "function getCurrentChallenge() {\n var currentChallenge = null;\n\n //If the current challenge is null, retrieve another challenge that hasn't yet been answered\n if(Session.get(\"currentChallengeId\") === null) {\n //Get the next challenge\n currentChallenge = getNextChallenge(); \n\n \n if(currentChallenge) {\n //If we have a challenge, set the ID as the current challenge\n Session.set(\"currentChallengeId\", currentChallenge._id); \n }\n else {\n //If we have no more challenges, clear the current challenge data\n Session.set(\"currentChallengeId\", null);\n currentChallenge = null;\n\n //Since we have no more challenges, set the game state to done\n Session.set(\"gameState\", \"done\");\n }\n }\n\n //If the current challenge is not null, then retrieve and return it\n else {\n currentChallenge = getChallenge(Session.get(\"currentChallengeId\"));\n } \n\n return currentChallenge; \n }", "respond2faChallenge(user_input, challenge_id) {\n var sixDigits = new RegExp(\"\\\\d{6}\");\n var self = this\n return new Promise((resolve, reject) => {\n if(sixDigits.test(user_input)){ // validate format of the sms token\n self.post(\n {\n uri: _apiUrl + \"challenge/\"+ challenge_id+ \"/respond/\",\n form: { \"response\" : parseInt(user_input) }\n },\n function (err, httpResponse, body) {\n if (err) {\n reject(err)\n throw err;\n }else{\n if (body.detail == \"Challenge response is invalid.\"){\n reject(new Error(\"The 2FA code you entered was incorrect.\"))\n }else{\n resolve(body)\n }\n }\n })\n }else{\n reject(new Error(\"Invalid User Input: \" + user_input))\n }\n });\n }", "async getById(id) {\n const data = await conn.query(\"SELECT * FROM Fitness_RoutineExercises WHERE routineExercises_id=?\", id);\n if(!data) {\n throw Error('There are no responses')\n }\n return data[0]\n }", "function getCharacter(id) {\n // Returning a promise just to illustrate GraphQL.js's support.\n return Promise.resolve(humanData[id] || droidData[id]);\n}", "getCharFromID(idStr) {\n for (let i=0; i<this.characters.length; ++i) {\n if (this.characters[i].id === idStr) return this.characters[i];\n }\n }", "function getCharacter(id) {\n var _a;\n // Returning a promise just to illustrate that GraphQL.js supports it.\n return Promise.resolve((_a = Data_1.humanData[id]) !== null && _a !== void 0 ? _a : Data_1.droidData[id]);\n}", "async generateChallenge(parent, args, ctx) {\n // Must be normal status.\n const callingUserData = await checkAuth(ctx, {\n type: USER_TYPE_STUDENT,\n status: USER_STATUS_NORMAL,\n action: \"generateChallenge\",\n });\n\n // Students can only do this to themselves. Mods and better can access freely.\n if (callingUserData.id !== args.studentid && callingUserData.type < USER_TYPE_MODERATOR) {\n throw new AuthError(null, \"generateChallenge\");\n }\n\n const targetCourseData =\n await queryCourse.course.activeCourse(parent, { studentid: args.studentid }, ctx, `\n {\n id\n status\n parent {\n student {\n id\n }\n }\n }\n `);\n\n // If the Course cannot be found, stop here.\n if (!targetCourseData) {\n throw new StudentNoActiveCourse(args.studentid, \"generateChallenge\");\n }\n\n if (targetCourseData.status !== COURSE_STATUS_ACTIVE) {\n throw new CourseInactive(targetCourseData.id);\n }\n\n const ChallengeGen = new ChallengeGenerator(ctx);\n return ChallengeGen.generateChallenge(\n targetCourseData.id,\n args.subjectids || [],\n args.subsubjectids || [],\n args.listsize,\n args.ignorerarity || false,\n args.ignoredifficulty || false,\n args.ignorepreference || false,\n );\n }", "async function challengeCreateFn(authz, challenge, keyAuthorization) {\n if (challenge.type === 'http-01') {\n return cts.addHttp01ChallengeResponse(challenge.token, keyAuthorization);\n }\n\n if (challenge.type === 'dns-01') {\n return cts.addDns01ChallengeResponse(`_acme-challenge.${authz.identifier.value}.`, keyAuthorization);\n }\n\n throw new Error(`Unsupported challenge type ${challenge.type}`);\n }", "function challenge1() {\n\n}", "function challenge1() {\n\n}", "function _getCourse(id) {\n for (var i = 0; i < _courses.length; i++) {\n if (_courses[i].id === id) {\n return _courses[i];\n }\n }\n}", "function challengeInfo(challenge, message) {\n\n // if no info, apologize\n if (!challenge) {\n return apology1();\n }\n\n // else, build and return response\n var text = `Here's what I found on the \"${challenge.name}\" challenge:`;\n if (message) {\n text = message + \"\\n\" + text;\n }\n\n return {\n response_type: 'ephemeral',\n text: text,\n attachments: [\n attachments.userStories(challenge.name, challenge.requirements),\n attachments.generalInfo(challenge)\n ]\n };\n}", "getCreditByPersonId(id) {\n return new Promise((fulfill, reject) => {\n https.get(restHost + \"/person/\" + id + pathTail + \"&append_to_response=movie_credits\", function (res) {\n var _data = '';\n res.on('data', (d) => {\n _data += d;\n });\n\n res.on('end', () => {\n var rs = JSON.parse(_data);\n fulfill(rs);\n });\n });\n });\n }", "async get(id) {\n const data = conn.query(\"SELECT * FROM Fit_Exercises WHERE id=?\", id);\n if(!data) {\n throw Error(\"Exercise not found\");\n }\n return await data[0];\n }", "function GetPriestUsingChurchID() {\n \n var ds = {};\n var table = {};\n var Priest = new Object();\n //Priest.ChurchID = ChurchID;\n var data = \"{'priestObj':\" + JSON.stringify(Priest) + \"}\";\n ds = getJsonData(data, \"../AdminPanel/Priests.aspx/GetPriestsDetails\");\n table = JSON.parse(ds.d);\n return table;\n }", "function challenge2() {\n\n}", "function challenge_player_step1(userid) {\n\tGM_xmlhttpRequest({\n\t\tmethod:\t'GET',\n\t\turl:\t'http://'+window.location.hostname+'/Common/teamDetails.asp?UserID='+userid,\n\t\tonload:\tfunction(d) {\n\t\t\tvar i = d.responseText.indexOf('opponentID')\n\t\t\tif (i > 0) {\n\t\t\t\tvar b = i + 19\n\t\t\t\tvar e = d.responseText.indexOf('\"', b)\n\t\t\t\tvar id = d.responseText.substring(b, e)\n\t\t\t\tchallenge_player_step2(id)\n\t\t\t}\n\t\t}\n\t})\n}", "function getChords(id){\n return new Promise( (resolve,reject) => {\n httpRequest = new XMLHttpRequest();\n httpRequest.onreadystatechange = function () {\n if (httpRequest.readyState == XMLHttpRequest.DONE) {\n if(httpRequest.status == 200) {\n resolve(httpRequest.responseText);\n } else {\n console.log(\"Failed to create request instance\");\n reject(false);\n }\n }\n }\n httpRequest.open('GET', 'chord/' + id);\n httpRequest.send();\n });\n \n}", "function getChallenge(response) {\n const challenge = response.headers.get(\"WWW-Authenticate\");\n if (response.status === 401 && challenge) {\n return challenge;\n }\n return;\n}", "function getChallenge(response) {\n const challenge = response.headers.get(\"WWW-Authenticate\");\n if (response.status === 401 && challenge) {\n return challenge;\n }\n return;\n}", "function getChallenge(response) {\n const challenge = response.headers.get(\"WWW-Authenticate\");\n if (response.status === 401 && challenge) {\n return challenge;\n }\n return;\n}", "function getChallenge(response) {\n const challenge = response.headers.get(\"WWW-Authenticate\");\n if (response.status === 401 && challenge) {\n return challenge;\n }\n return;\n}", "async function GetMerchantChannel(merhcantId, channelId) {\n // NOTIFY PROGRESS\n // LOCAL VARIABLES\n var readPath = 'Merchants/' + merhcantId + \"/Channels/\" + channelId;\n console.log(\"GetMerchantChannel: \", readPath);\n\n // EXECUTE\n try {\n var record = await _once(readPath)\n return record.val();\n } catch (error) {\n console.log('GetMerchantChannel ERror:');\n console.log(error);\n }\n}", "async getCharacterByID(parent, { id }) {\n let response = await fetch(`${baseUrl}/character/${id}`);\n let character = await response.json();\n // the R&M api still returns a 200 even if nothing is found, it only returns an error field\n if(character.error) {\n throw new Error(character.error);\n } \n return character; \n }", "function currentChallenge() {\n if(document.cookie != \"\") {\n CURRENT_CHALLENGE = parseInt(document.cookie.split(\"=\")[1]);\n } else {\n CURRENT_CHALLENGE = 1;\n }\n}", "function _getChallengesByuserId(req, res, next) {\n var json = {};\n var param = { _id: 1, name: 1, image: 1, organizerName: 1 }\n var query = { \"userId\": req.query.userId };\n CHALLENGE_COLLECTION.find(query, param, function (err, challenges) {\n console.log(\"challenge : \" + challenges.length);\n if (err) {\n json.status = '0';\n json.result = { 'Error': JSON.stringify(err) };\n res.send(json);\n } else {\n json.status = '1';\n json.challenges = challenges;\n res.send(json);\n }\n });\n}", "async function getChampionByID(name, language = \"en_US\") {\n return await getLatestChampionDDragon(language)[name];\n}", "async function findOneSch(id) {\r\n\r\n\r\n try {\r\n let schemes\r\n schemes = await mfschemesModel.find(id);\r\n return schemes;\r\n } catch (err) {\r\n\r\n return err;\r\n }\r\n}", "function getCardById(id) {\n return new Promise((resolve, reject) => {\n mustBeInArray(cards, id)\n .then(card => resolve(card))\n .catch(err => reject(err))\n })\n}", "function get(id /*string*/) {\n if(promise != null)\n return promise.then(function(data) {\n var ret = data.compositions[id];\n if(typeof ret.audio === \"string\") {\n ret.audio = [ret.audio];\n }\n\n var strings = {\"sonata\": \"Piano Sonata\", \"nocturne\": \"Nocturne\"};\n if((ret.type === \"sonata\" || ret.type === \"nocturne\") && !ret.name) {\n ret.name = strings[ret.type];\n if(typeof ret.num === \"number\") {\n ret.name += \" No. \" + ret.num;\n }\n if(ret.nickname != null) {\n ret.name += ' \"' + ret.nickname + '\"';\n }\n }\n\n if(typeof ret.key === \"string\") {\n var str = ret.key;\n if(str.endsWith(\"m\")) {\n str = str.slice(0, -1);\n str += \" minor\";\n } else {\n str += \" major\";\n }\n \n ret.key_long = str;\n }\n return ret;\n });\n else\n return Promise.reject(\"musicdb.init() not called\");\n }", "async getRide({ id }) {\n return new Promise(function (resolve, reject) {\n //use paramitarized query to prevent Sql injection\n const query = \"SELECT * FROM Rides WHERE rideID = ?\";\n db.all(query, [id], function (err, rows) {\n if (err) {\n reject(\"Read error: \" + err.message);\n }\n resolve(rows[0]);\n });\n });\n }", "function _removeChallengeById(req, res) {\n var json = {};\n var blobService = azure.createBlobService(CONSTANT.BLOB_CONNECTION_STRING);\n var challengeId = req.param('id');\n CHALLENGE_COLLECTION.remove({ _id: new ObjectID(challengeId) }, function (removeChallengeError, challenge) {\n if (removeChallengeError) {\n json.status = '0';\n json.result = { 'Error': removeChallengeError };\n res.send(json);\n } else {\n COMMON.deleteImage(req.body.imageName, function (err, data) {\n if (err) {\n json.status = '0';\n json.result = { 'Error': JSON.stringify(err) };\n res.send(json);\n } else {\n json.status = '1';\n json.result = { 'Message': \"Challenge Delete successfully\" };\n res.send(json);\n }\n });\n }\n });\n}", "async function getCoachById(id) {\n const coach = await axios.get(`${api_domain}/players/${id}`,\n {\n params: {\n include: \"team.league\",\n api_token: process.env.api_token,\n },\n }\n );\n if (coach.data.data.team && coach.data.data.team.data.league) {\n if (coach.data.data.team.data.league.data.id === 271 && coach.data.data.team.data.current_season_id==18334) {\n return {\n coach_id: id,\n name: coach.data.data.fullname,\n team_name: coach.data.data.team.data.name,\n team_id: coach.data.data.team_id,\n image: coach.data.data.image_path,\n nationality: coach.data.data.nationality,\n birth_date: coach.data.data.birthdate,\n birthcountry: coach.data.data.birthcountry,\n };\n\n }\n }\n return coach;\n}", "function getNextChallenge() {\n return wordChallenges.findOne({ _id : { $nin: Session.get(\"answeredChallenges\") }});\n }", "static async __getOne(id) {\n const courses = await Course.getAll();\n return courses.find(item => item.id === id)\n }", "function fieldChallenge(diff)\r\n{\r\n\tdiff = Math.min(230, diff);\r\n\tdiff = Math.max(0, diff);\r\n\tvar c = new Challenge();\r\n\tc.dif = Math.round(0.13 * diff + 15);\r\n\tc.suc = Math.round(0.11 * diff + 15);\r\n\treturn c;\r\n}", "function getGameChannel(gameid) {\n return new Promise((resolve, reject) => {\n db.findOne({ datatype: \"game\",gameid:gameid }, { channel: 1, _id: 0 }, (err, docs) => {\n if (err) console.error(\"There's a problem with the database \", err);\n else if (docs) console.log(\"getGameChannel query completed\");\n resolve(docs.channel);\n });\n });\n}", "async function findCamperByID(id){\n\ttry {\n\t\tconst response = await axios.get('http://localhost:3013/rest/camper/id/' + id);\n\t\treturn response.data;\n\t}catch (err) {\n\t\tconsole.log(\"Can not connect to server.\");\n\t\tconsole.log(err);\n\t}\n}", "function calculateChallengeResponse(challenge, adminkey) {\n var objAlg =\n Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider\n .openAlgorithm(\n Windows.Security.Cryptography.Core.SymmetricAlgorithmNames\n .tripleDesCbc);\n\n var symetricKey = objAlg.createSymmetricKey(adminkey);\n var buffEncrypted =\n Windows.Security.Cryptography.Core.CryptographicEngine.encrypt(\n symetricKey,\n challenge,\n null);\n\n return buffEncrypted;\n }", "function challenge(value, challenger) {\n return value[1] === challenger[0] &&\n value[2] === challenger[1] &&\n value[3] === challenger[2];\n }", "function GetLessonByHouseId(house_id) {\n return $resource(_URLS.BASE_API + 'lesson/by_house/' + house_id + _URLS.TOKEN_API + $localStorage.token).get().$promise;\n }", "async function getCourseById({ id }) {\n const response = await fetch(`/api/courses/${id}`);\n return handleJsonResponse(response);\n}", "function getCourse(id) {\n // first try to get the data from the local cache, but if not present, grab from server\n return manager.fetchEntityByKey('Course', id, true)\n .then(function (data) {\n common.logger.log('fetched course from ' + (data.fromCache ? 'cache' : 'server'), data);\n return data.entity;\n });\n }", "challengeCanBeResolved(propID) {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed();\n return yield deployed.methods.challengeCanBeResolved(propID).call();\n });\n }", "function GetChapterObject(chapterId) {\n if (chapterId == 1 || chapterId == 0) {\n return Chapters[0];\n }\n\n for (var i = 0; i < Chapters.length; i++) {\n if (Chapters[i].Id == chapterId) {\n return Chapters[i];\n }\n }\n}", "function challenge3() {\n\n}", "pronunciationAnalysisInitChallenge(challenge) {\n var self = this;\n\n this._session.call('nl.itslanguage.pronunciation.init_challenge',\n [self._analysisId, challenge.organisationId, challenge.id]).then(\n // RPC success callback\n function(analysisId) {\n console.log('Challenge initialised for analysisId: ' + self._analysisId);\n },\n // RPC error callback\n function(res) {\n self.logRPCError(res);\n }\n );\n\n this._session.call('nl.itslanguage.pronunciation.alignment',\n [self._analysisId]).then(\n // RPC success callback\n function(alignment) {\n self.referenceAlignment = alignment;\n console.log('Reference alignment retrieved');\n },\n // RPC error callback\n function(res) {\n self.logRPCError(res);\n }\n );\n }", "function getSingleDancer(id) {\n return fetch(danceURL + `/${id}`)\n .then(res => res.json())\n}", "function getCardById(id) {\n var tmpCard = GameState.drawPile.cards.find(function (card) {\n return card.id === id;\n });\n if (tmpCard !== undefined) {\n return tmpCard;\n }\n tmpCard = GameState.discardPile.cards.find(function (card) {\n return card.id === id;\n });\n if (tmpCard !== undefined) return tmpCard;\n tmpCard = GameState.players.bot.hand.cards.find(function (card) {\n return card.id === id;\n });\n if (tmpCard !== undefined) return tmpCard;\n tmpCard = GameState.players.human.hand.cards.find(function (card) {\n return card.id === id;\n });\n if (tmpCard !== undefined) return tmpCard;\n}", "getGoal(goalId) {\n return fetch(`${config.API_ENDPOINT}/goals/${goalId}`, {\n headers: {\n 'authorization': `bearer ${TokenService.getAuthToken()}`\n },\n })\n .then(res =>\n (!res.ok)\n ? res.json().then(e => Promise.reject(e))\n : res.json()\n )\n }", "async function get_champions_id(name){\n try {\n const data = await fs.readFile('./Reference'); // need to be in an async function\n var data_json = JSON.parse(data)\n for (var champion in data_json){\n if (champion == name){\n return data_json[champion][0]\n }\n }\n } catch (error) {\n console.log(error)\n }\n\n}", "function CHR(id) {\n return BASE64[id];\n }", "get_dh(){\n return crypto2.createDiffieHellman(PRIME,0,GENERATOR,0);\n }", "function get_user(userID) {\n return new Promise((resolve, reject) => {\n if (userDB[userID])\n return resolve(userDB[userID]);\n else\n return reject(new Error('ERR: User does not exist'));\n });\n}", "async getExercise(id) {\n try {\n let values = await this.getValuesID();\n let exercise = new ExerciseApi(values[0], values[1]);\n return await exercise.getExercise(id);\n } catch (error) {\n console.log(error);\n }\n }", "choiceRecognitionInitChallenge(challenge) {\n var self = this;\n\n this._session.call('nl.itslanguage.choice.init_challenge',\n [self._recognitionId, challenge.organisationId, challenge.id]).then(\n // RPC success callback\n function(recognitionId) {\n console.log('Challenge initialised for recognitionId: ' + self._recognitionId);\n },\n // RPC error callback\n function(res) {\n console.error('RPC error returned:', res.error);\n }\n );\n }", "async function getDemographicsPartyIdFromEHRId(ehrId) {\n try {\n const retrievalResult = await EHRCall.run(EHRCallOptions.getQueryParamsForGettingDemographicsFromEHRId(ehrId));\n if (retrievalResult.status === 200) {\n return retrievalResult.data.party.id;\n }\n } catch (e) {\n if (e.response.status === 404) {\n const creationResult = await EHRCall.run(EHRCallOptions.getQueryParamsForCreatingDemographicsFromEHRId(ehrId));\n if (creationResult.status === 201) {\n try {\n const retrievalSecondAttemptResult = await EHRCall.run(EHRCallOptions.getQueryParamsForGettingDemographicsFromEHRId(ehrId));\n if (retrievalSecondAttemptResult.status === 200) {\n return retrievalSecondAttemptResult.data.party.id;\n } else {\n console.log(\"Can't retrieve demographics party even after creation\");\n // throw e;\n }\n } catch (e2) {\n console.log(\"Error when retrieving demographics party, likely no ehr id was passed\")\n }\n } else {\n console.log(\"Can't create demographics party\")\n // throw 'Error: ' + JSON.stringify(creationResult, null, 2);\n }\n } else {\n console.log(\"No demographics party exists and unknown response code so can't create\")\n // throw e;\n }\n }\n}", "async function getRecipeById(rec_id) {\n const res = await axios.get(`${MD_BASE_URL}/lookup.php?i=${rec_id}`);\n return res.data.meals[0];\n }", "getContributedStory({id}) {\n\n return this._getCollection()\n .then(collection => collection.findOne({\n _id: MongoDb.ObjectId(id)\n }));\n }", "function slackSlashCommand(req, res) {\n let responseJSON; // obj to be filled with data based on which case is met by the user's request and then sent back at the end\n redisHashGetAllHelper(req.body.user_id).then(hashObj => { // all commands need info on any challenge relating to this user, so grab that from the db first, then check all the cases\n console.log(\"Here's the returned hashObj from redisHashGetAllHelper: \" + JSON.stringify(hashObj));\n // grab the opponent's id if there was a match found to easily send messages to them privately later if needed\n let opponent = \"\";\n if (hashObj) {\n if (hashObj.isInitiator)\n opponent = hashObj.challengedID;\n else\n opponent = hashObj.initiatorID;\n }\n // odds initiation\n if (req.body.command === '/odds') {\n if (!req.body.text.includes(\"<@\")) { // bad case: no user specified\n responseJSON = {\n text: \"You need to specify who you're challenging!\"\n };\n }\n else if (hashObj) { // bad case: active challenge\n responseJSON = {\n text: \"People can only have one outstanding challenge at a time, so you or they must resolve it first or cancel with /cancelodds\",\n };\n // FIXME: With the current implementation, we can prevent users from initiating multiple challenges, but can't prevent others from being challenged multiple times\n }\n else {\n let challengedID = req.body.text.split('<@').pop().split(`>`)[0].split(`\\|`)[0]; // grab the id of the challenged\n if (req.body.user_id === challengedID) { // bad case: trying to challenge themselves\n responseJSON = {\n text: \"You can't challenge yourself numbnuts!\",\n };\n }\n else { // create a new hash with fields for all pertinant odds challenge data in redis by combining the initaitor and challenged ids\n let initiatorChallengedHash = req.body.user_id + \"|\" + challengedID; // challenge hash always puts initiator to the left and challenged to the right\n redisClient.hset(initiatorChallengedHash, 'upperLimit', 0, redis.print);\n redisClient.hset(initiatorChallengedHash, 'initiatorOdds', 0, redis.print);\n redisClient.hset(initiatorChallengedHash, 'challengedOdds', 0, redis.print);\n responseJSON = {\n response_type: \"in_channel\",\n text: \"<@\" + req.body.user_id + \"> has initiated an odds challenge against <@\" + challengedID + \">\",\n };\n sBot.chat.postEphemeral({\n channel: req.body.channel_id,\n text: \"<@\" + challengedID + \">, you've been challenged! Submit your upper bounds now with /setodds or cancel the challenge with /cancelodds\",\n user: challengedID,\n });\n }\n }\n }\n // setting upper limit of odds\n else if (req.body.command === '/setodds') {\n if (!hashObj) { // bad case: this user has no active challenge\n responseJSON = {\n text: \"You have no active challenge!\"\n };\n }\n else {\n if (hashObj.isInitiator) { // bad case: this user is the initiator\n responseJSON = {\n text: \"You are not the challenged, and therefor cannot set the odds!\"\n };\n }\n else {\n if (hashObj.upperLimit != 0) { // bad case: upper limit already set\n responseJSON = {\n text: \"You can't reset the upper limit!\"\n };\n }\n else {\n let uL = null;\n if (req.body.text.match(`[0-9]+`))\n uL = req.body.text.match(`[0-9]+`)[0];\n //console.log(\"Upper limit readout: \" + uL);\n if (!uL || parseInt(uL, 10) <= 1 || parseInt(uL, 10) >= Number.MAX_VALUE) { // bad case: no valid iteger in text\n responseJSON = {\n text: \"You need enter a valid integer!\"\n };\n } else {\n redisClient.hset(hashObj.hash, 'upperLimit', uL, redis.print);\n responseJSON = {\n text: \"Upper limit has been set to \" + uL + \", now both of you must enter a value betweeen 1 and that number with /commitodds\"\n };\n sBot.chat.postEphemeral({\n channel: req.body.channel_id,\n text: \"Upper limit has been set to \" + uL + \", now both of you must enter a value betweeen 1 and that number with /commitodds\",\n user: hashObj.initiatorID,\n });\n }\n }\n }\n }\n }\n // commiting an inividual's odds number\n else if (req.body.command === '/commitodds') {\n if (!hashObj) { // bad case: this user has no active challenge\n responseJSON = {\n text: \"You have no active challenge!\"\n };\n }\n else {\n let iOdds = hashObj.initiatorOdds;\n let cOdds = hashObj.challengedOdds;\n let userOdds = null;\n if (hashObj.upperLimit == 0) { // bad case: upper limit not set\n responseJSON = {\n text: \"Upper limit hasn't been set yet!\"\n };\n }\n else {\n if (req.body.text.match(`[0-9]+`))\n userOdds = req.body.text.match(`[0-9]+`)[0];\n //console.log(\"User odds: \" + userOdds)\n if (!userOdds || parseInt(userOdds, 10) < 1 || parseInt(userOdds, 10) > hashObj.upperLimit) { // bad case: no valid integer in text\n responseJSON = {\n text: \"You need enter a valid integer! It must be between 1 and \" + hashObj.upperLimit\n };\n }\n else {\n if (hashObj.isInitiator) { // check to see if this user is the initiator\n if (hashObj.initiatorOdds != 0) { // bad case: initiator odds already set\n responseJSON = {\n text: \"You can't reset your odds!\"\n };\n }\n else {\n iOdds = userOdds;\n redisClient.hset(hashObj.hash, 'initiatorOdds', userOdds, redis.print);\n }\n }\n else { // this user is the challenged\n if (hashObj.challengedOdds != 0) { // bad case: challenged odds already set\n responseJSON = {\n text: \"You can't reset your odds!\"\n };\n }\n else {\n cOdds = userOdds;\n redisClient.hset(hashObj.hash, 'challengedOdds', userOdds, redis.print);\n }\n }\n if (iOdds != 0 && cOdds != 0) { // both users in challenge have committed odds, respond with result\n redisClient.del(hashObj.hash);\n responseJSON = {\n text: \"Odds entered successfully\",\n };\n sBot.chat.postMessage({\n channel: req.body.channel_id,\n text: \"Both parties have submitted their odds! <@\" + hashObj.initiatorID + \"> has entered \" + iOdds + \", and <@\" + hashObj.challengedID + \"> has entered \" + cOdds + \". Do with that information what you will...\",\n });\n } else { // default response for successful submission of odds\n responseJSON = {\n text: \"Odds entered successfully, waiting on <@\" + opponent + \">\",\n };\n sBot.chat.postEphemeral({\n channel: req.body.channel_id,\n text: \"Opponent has set their odds, waiting for you to submit yours now\",\n user: opponent,\n });\n }\n }\n }\n }\n }\n // cancelling an outstanding odds challenge \n else if (req.body.command === `/cancelodds`) {\n if (!hashObj) { // bad case: this user has no active challenge\n responseJSON = {\n text: \"You have no active challenge!\"\n };\n }\n else {\n redisClient.del(hashObj.hash);\n responseJSON = {\n text: \"Challenge cancelled\",\n };\n sBot.chat.postEphemeral({\n channel: req.body.channel_id,\n text: \"An odds challenge you were tied to has been cancelled\",\n user: opponent,\n });\n }\n }\n // Default case of an unknown command, shouldn't be accessible\n else {\n responseJSON = {\n text: \"Command not accounted for in the app\",\n };\n }\n }).catch(err => { // errors from the promise are caught here\n console.log(err);\n responseJSON = {\n text: \"Error scanning the odds db\"\n };\n }).finally(() => { // send the final json back to the user\n console.log(\"JSON being returned to user: \" + JSON.stringify(responseJSON));\n res.json(responseJSON);\n });\n}", "async function getCourseById(id) {\n const db = getDBReference();\n const collection = db.collection('courses');\n if (!ObjectId.isValid(id)) {\n return null;\n } else {\n const results = await collection\n .find({ _id: new ObjectId(id) })\n .toArray();\n return results[0];\n }\n}", "async function getMealById(id) {\n const response = await (\n await fetch(\"https://www.themealdb.com/api/json/v1/1/lookup.php?i=\" + id)\n ).json();\n const meal = response.meals[0];\n return meal;\n}", "function getChannelCode(channelId) {\n var channelsKey = Object.keys(channels);\n for (var i = 0; i < channelsKey.length; i++) {\n if (channels[channelsKey[i]].split(\"[\")[0] == channelId) {\n var points = getChannelPoints(channels[channelsKey[i]]);\n return {\n \"points\": points,\n \"code\": channelsKey[i]\n };\n }\n }\n return -1;\n}", "async getPublicKey(id, options) {\n options = options || {};\n\n // get key\n const key = await this.getJsonLd(id, options);\n\n // return framed key\n return this._frameKey(key, options);\n }", "function _authChallenge(options, answerAuthenticationChallenge) {\n\n var profileId = authService.getProfileId();\n\n if (profileId) {\n var jwt = authService.createJwt(profileId, options.nonce);\n answerAuthenticationChallenge(jwt);\n } else {\n answerAuthenticationChallenge(null);\n }\n }", "function getCharacter(id){\n //return new Promise(function (resolve, reject){}) migrate to arrow function\n return new Promise((resolve, reject)=>{\n // here make the asynchronouse call\n let url = `${API_URL}${PEOPLE_URL.replace(':id', id)}`\n \n $.get(url, options, function(data){\n resolve(data)\n })\n .fail( ()=> reject(id))\n })\n\n}", "function ChallengeCard({\n challenge: passedInChallenge,\n newChallengeDetails,\n onTechTagClicked,\n openChallengesInNewTabs,\n prizeMode,\n sampleWinnerProfile,\n}) {\n const challenge = passedInChallenge;\n\n challenge.isDataScience = false;\n if (challenge.technologies.includes('Data Science')) {\n challenge.isDataScience = true;\n }\n challenge.prize = challenge.prizes || [];\n // challenge.totalPrize = challenge.prize.reduce((x, y) => y + x, 0)\n\n let challengeDetailLink;\n {\n const challengeUrl = newChallengeDetails\n ? '/challenges/' : `${config.URL.BASE}/challenge-details/`;\n if (challenge.track === 'DATA_SCIENCE') {\n const mmDetailUrl = `${config.URL.COMMUNITY}/tc?module=MatchDetails&rd=`;\n /* TODO: Don't we have a better way, whether a challenge is MM or not? */\n const isMM = _.toString(challenge.id).length < ID_LENGTH;\n challengeDetailLink = isMM\n ? `${mmDetailUrl}${challenge.id}`\n : `${challengeUrl}${challenge.id}/?type=develop`;\n } else {\n challengeDetailLink =\n `${challengeUrl}${challenge.id}/?type=${challenge.track.toLowerCase()}`;\n }\n }\n\n const registrationPhase = challenge.allPhases.filter(phase => phase.phaseType === 'Registration')[0];\n const isRegistrationOpen = registrationPhase ? registrationPhase.phaseStatus === 'Open' : false;\n\n /* Preparation of data to show in the prize component,\n * depending on options. */\n const bonuses = [];\n if (challenge.reliabilityBonus) {\n bonuses.push({\n name: 'Reliability',\n prize: challenge.reliabilityBonus,\n });\n }\n let prizeUnitSymbol = '';\n let prizes = challenge.prizes;\n let totalPrize;\n switch (prizeMode) {\n case PRIZE_MODE.POINTS:\n totalPrize = Math.round(challenge.drPoints || 0);\n break;\n case PRIZE_MODE.MONEY_EUR:\n prizeUnitSymbol = '€';\n bonuses.forEach((bonus) => {\n bonus.prize = Math.round(convertMoney(bonus.prize, 'EUR')); // eslint-disable-line no-param-reassign\n });\n totalPrize = Math.round(convertMoney(challenge.totalPrize, 'EUR'));\n prizes = (prizes || []).map(prize => Math.round(convertMoney(prize, 'EUR')));\n break;\n case PRIZE_MODE.MONEY_INR:\n prizeUnitSymbol = '₹';\n bonuses.forEach((bonus) => {\n bonus.prize = Math.round(convertMoney(bonus.prize, 'INR')); // eslint-disable-line no-param-reassign\n });\n totalPrize = Math.round(convertMoney(challenge.totalPrize, 'INR'));\n prizes = (prizes || []).map(prize => Math.round(convertMoney(prize, 'INR')));\n break;\n case PRIZE_MODE.MONEY_USD:\n prizeUnitSymbol = '$';\n totalPrize = challenge.totalPrize;\n break;\n default: throw new Error('Unknown prize mode!');\n }\n\n return (\n <div styleName=\"challengeCard\">\n <div styleName=\"left-panel\">\n <div styleName=\"challenge-track\">\n <TrackAbbreviationTooltip track={challenge.track} subTrack={challenge.subTrack}>\n <span>\n <TrackIcon\n track={challenge.track}\n subTrack={challenge.subTrack}\n tcoEligible={challenge.events ? challenge.events[0].eventName : ''}\n isDataScience={challenge.isDataScience}\n />\n </span>\n </TrackAbbreviationTooltip>\n </div>\n\n <div styleName={isRegistrationOpen ? 'challenge-details with-register-button' : 'challenge-details'}>\n <a\n href={challengeDetailLink}\n styleName=\"challenge-title\"\n target={openChallengesInNewTabs ? '_blank' : undefined}\n >{challenge.name}</a>\n <div styleName=\"details-footer\">\n <span styleName=\"date\">\n {challenge.status === 'ACTIVE' ? 'Ends ' : 'Ended '}\n {getEndDate(challenge.submissionEndDate)}\n </span>\n <Tags\n technologies={challenge.technologies}\n platforms={challenge.platforms}\n onTechTagClicked={onTechTagClicked}\n />\n </div>\n </div>\n </div>\n <div styleName=\"right-panel\">\n <div styleName={isRegistrationOpen ? 'prizes with-register-button' : 'prizes'}>\n {(prizeMode !== PRIZE_MODE.HIDDEN) && (\n <Prize\n bonuses={bonuses}\n label={prizeMode === PRIZE_MODE.POINTS ? 'Points' : 'Purse'}\n points={challenge.drPoints}\n prizes={prizes}\n prizeUnitSymbol={prizeUnitSymbol}\n totalPrize={totalPrize}\n withoutTooltip={prizeMode === PRIZE_MODE.POINTS}\n />\n )}\n </div>\n\n <ChallengeStatus\n challenge={challenge}\n detailLink={challengeDetailLink}\n openChallengesInNewTabs={openChallengesInNewTabs}\n sampleWinnerProfile={sampleWinnerProfile}\n />\n </div>\n </div>\n );\n}", "function getTeacherByClassID (classId){\n let teacherClass = classes.find(classy => classy.id == classId);\n let teacherId = teacherClass.teacherId;\n\n return getTeacherById(teacherId);\n\n}", "function generateEncryptionKey(id, solution) {\n var sum = \"\" + id + solution + id + solution + id + \"arweave\";\n return sha256(sum);\n}", "async function getEHRIdFromFHIRId(fhirId) {\n const result = await EHRCall.run(EHRCallOptions.getQueryParamsForGettingEHRFromFHIRId(fhirId));\n if (result.status === 204) {\n // no ehr with that fhir id\n // create an ehr\n const creationResult = await EHRCall.run(EHRCallOptions.getQueryParamsForCreatingEHRFromFHIRId(fhirId));\n if (creationResult.status === 201) {\n // successfully created ehr\n return creationResult.data.ehrId;\n } else {\n // creation error\n throw 'creation error, data: ' + result.data;\n }\n } else if (result.status === 200) {\n // ehr exists\n return result.data.ehrId;\n } else {\n // (unexpected) error getting the ehr\n throw 'getting error, data: ' + result.data;\n }\n}", "async function challengeContribute(curve, challengeFilename, responesFileName, entropy, logger) {\n await blake2bWasm.ready();\n\n const fdFrom = await readExisting$2(challengeFilename);\n\n\n const sG1 = curve.F1.n64*8*2;\n const sG2 = curve.F2.n64*8*2;\n const domainSize = (fdFrom.totalSize + sG1 - 64 - sG2) / (4*sG1 + sG2);\n let e = domainSize;\n let power = 0;\n while (e>1) {\n e = e /2;\n power += 1;\n }\n\n if (2 ** power != domainSize) throw new Error(\"Invalid file size\");\n if (logger) logger.debug(\"Power to tau size: \"+power);\n\n const rng = await getRandomRng(entropy);\n\n const fdTo = await createOverride(responesFileName);\n\n // Calculate the hash\n const challengeHasher = blake2bWasm(64);\n for (let i=0; i<fdFrom.totalSize; i+= fdFrom.pageSize) {\n if (logger) logger.debug(`Hashing challenge ${i}/${fdFrom.totalSize}`);\n const s = Math.min(fdFrom.totalSize - i, fdFrom.pageSize);\n const buff = await fdFrom.read(s);\n challengeHasher.update(buff);\n }\n\n const claimedHash = await fdFrom.read(64, 0);\n if (logger) logger.info(formatHash(claimedHash, \"Claimed Previous Response Hash: \"));\n\n const challengeHash = challengeHasher.digest();\n if (logger) logger.info(formatHash(challengeHash, \"Current Challenge Hash: \"));\n\n const key = createPTauKey(curve, challengeHash, rng);\n\n if (logger) {\n [\"tau\", \"alpha\", \"beta\"].forEach( (k) => {\n logger.debug(k + \".g1_s: \" + curve.G1.toString(key[k].g1_s, 16));\n logger.debug(k + \".g1_sx: \" + curve.G1.toString(key[k].g1_sx, 16));\n logger.debug(k + \".g2_sp: \" + curve.G2.toString(key[k].g2_sp, 16));\n logger.debug(k + \".g2_spx: \" + curve.G2.toString(key[k].g2_spx, 16));\n logger.debug(\"\");\n });\n }\n\n const responseHasher = blake2bWasm(64);\n\n await fdTo.write(challengeHash);\n responseHasher.update(challengeHash);\n\n await applyKeyToChallengeSection(fdFrom, fdTo, responseHasher, curve, \"G1\", (2 ** power)*2-1, curve.Fr.one , key.tau.prvKey, \"COMPRESSED\", \"tauG1\" , logger );\n await applyKeyToChallengeSection(fdFrom, fdTo, responseHasher, curve, \"G2\", (2 ** power) , curve.Fr.one , key.tau.prvKey, \"COMPRESSED\", \"tauG2\" , logger );\n await applyKeyToChallengeSection(fdFrom, fdTo, responseHasher, curve, \"G1\", (2 ** power) , key.alpha.prvKey, key.tau.prvKey, \"COMPRESSED\", \"alphaTauG1\", logger );\n await applyKeyToChallengeSection(fdFrom, fdTo, responseHasher, curve, \"G1\", (2 ** power) , key.beta.prvKey , key.tau.prvKey, \"COMPRESSED\", \"betaTauG1\" , logger );\n await applyKeyToChallengeSection(fdFrom, fdTo, responseHasher, curve, \"G2\", 1 , key.beta.prvKey , key.tau.prvKey, \"COMPRESSED\", \"betaTauG2\" , logger );\n\n // Write and hash key\n const buffKey = new Uint8Array(curve.F1.n8*2*6+curve.F2.n8*2*3);\n toPtauPubKeyRpr(buffKey, 0, curve, key, false);\n await fdTo.write(buffKey);\n responseHasher.update(buffKey);\n const responseHash = responseHasher.digest();\n if (logger) logger.info(formatHash(responseHash, \"Contribution Response Hash: \"));\n\n await fdTo.close();\n await fdFrom.close();\n }", "function getCharacter(id) {\n console.log('getCharacter called with id: ', id);\n // Returning a promise just to illustrate GraphQL.js's support.\n var humanData = Human.findOne({ 'id': id });\n var droidData = Droid.findOne({ 'id': id });\n return Promise.resolve(humanData || droidData);\n}", "function promptClue(phrase) {\n return new Promise(resolve => {\n //display the phrase and prompt the user for a letter\n inquirer\n .prompt({\n type: \"input\",\n message: phrase.getString() + \"\\n>>\",\n name: \"letter\"\n })\n .then(function(response) {\n resolve(response.letter);\n })\n .catch(function(err) {\n console.log(err);\n });\n });\n}", "function one(id) {\n\n return lessonPlan.lessons[id]\n\n}", "get(id: number) {\n return new Promise<?QuizType>((resolve, reject) => {\n pool.query('SELECT * FROM Quizzes WHERE id = ?', [id], (error, results: QuizType[]) => {\n if (error) return reject(error);\n\n resolve(results[0]);\n });\n });\n }", "function hourById(id){\n var h = id/2;\n var hf;\n var exp;\n\n if (id%2 != 0){\n hf = Math.ceil(h) + \":00\";\n h = Math.floor(h) + \":30\";\n }\n else {\n hf = Math.floor(h) + \":30\";\n h = h + \":00\";\n }\n\n exp = \"De \"+h+\" a \"+hf+\" \";\n\n return exp;\n\n}", "async function get_champion_name(champion_id){\n try{\n const data = await fs.readFile('./Reference'); // need to be in an async function\n var data_json = JSON.parse(data)\n for (champion in data_json){\n if (data_json[champion][0] == champion_id){\n return champion\n }\n }\n\n } catch (error){\n console.log(error)\n }\n\n}", "_challengeURLMatches() {\r\n return window.location.pathname.match(/challenges\\/(\\d+)\\/(?:train|edit)\\/([a-zA-Z-_\\+#]+)/);\r\n }", "getChampions() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const champions = yield this.httpRequest(this.champions + this.apiKey);\n const map = {};\n for (const c in champions.data) {\n map[champions.data[c].id] = champions.data[c].name;\n }\n return map;\n }\n catch (ex) {\n return undefined;\n }\n });\n }", "function getCase(scccaseId) {\n try {\n var svc = ServiceMgr.restGet();\n return svc.call(StringUtils.format(ServiceMgr.restEndpoints.get.case, scccaseId));\n } catch (e) {\n LOGGER.error('Error occurred while getting the case {0}: {1}', scccaseId, e.message);\n throw e;\n }\n}", "function getTeacherById (id){\n function getTeacher (teacher){\n return teacher.id == id;\n }\n\n return teachers.find(getTeacher);\n\n}", "function find_letter(given_id) {\n\n // Go through the 7 pieces,\n for(var i = 0; i < 7; i++) {\n // If we found the piece we're looking for, awesome!\n if(game_tiles[i].id == given_id) {\n // Just return its letter!\n return game_tiles[i].letter;\n }\n }\n\n // Or try looking in the completed word array\n for(var i = 0; i < complete_words.length; i++) {\n for(var x = 0; x < complete_words[i].length; x++) {\n if(given_id == complete_words[i][x].id) {\n return complete_words[i][x].letter;\n }\n }\n }\n\n // If we get here, we weren't given a nice draggable ID like \"piece1\", so return -1\n return -1;\n}", "function theChallenger() {\n const challenge = Math.floor(Math.random() * 150) + 1 ;\n const url = `https://pokeapi.co/api/v2/pokemon/${challenge}`;\n fetch(url)\n .then( e => {\n return e.json();\n })\n .then( data => {\n challenger = {\n id: data.id,\n name: data.name.toUpperCase(),\n image: data.sprites['front_default'],\n experience: data.base_experience,\n type: data.types.map( type => type.type.name).join(', '),\n }\n displayBattle(challenger);\n })\n \n}", "getCaseById(case_id : number): Promise <Case[]>{\n return axios.get(url+'/getCase/'+case_id);\n }", "function getPersonById(id) \n{\n return new Promise(\n (resolve, reject) => {\n connection.query(`SELECT * FROM final WHERE id = ?`,\n [id],\n (err, rows, cols) => {\n if (err)\n reject(err)\n else\n resolve(rows)\n })\n }\n )\n}", "speechRecordingInitChallenge(challenge) {\n var self = this;\n\n this._session.call('nl.itslanguage.recording.init_challenge',\n [self._recordingId, challenge.organisationId, challenge.id]).then(\n // RPC success callback\n function(recordingId) {\n console.log('Challenge initialised for recordingId: ' + self._recordingId);\n },\n // RPC error callback\n function(res) {\n self.logRPCError(res);\n }\n );\n }", "async get(id) {\n return await keyv.get(id);\n }", "function getGroupById(id) {\n return groupHandler.GetGroupById(id);\n }", "async getById(id) {\n if (!this.availableFunctions.includes('getById')) {\n throw new GuardianJSInvalidMethodException('getById is an invalid method');\n }\n return this._request(`${this.base}/${id}?api-key=${this.key}`);\n }", "function onchallenge (session, method, extra) {\n\tif (method === \"wampcra\") {\n\t salted_key = autobahn.auth_cra.derive_key(key,extra.salt, extra.iterations, extra.keylen)\n if(key==\"guestpass\" && authid==\"guest\"){\n salted_key = \"Y/w6jYBIOLM48hEKn9zRLx9gZCYwwrFW7K/ELtWzVT8=\";\n }\n\t return autobahn.auth_cra.sign(salted_key, extra.challenge);\n\t}\n }", "function getById(_id) {\n var deferred = Q.defer();\n \n \n db.users.findById(_id, function (err, user) {\n if (err) deferred.reject(err);\n \n if (user) {\n // return user (without hashed password)\n deferred.resolve(_.omit(user, 'hash'));\n } else {\n // user not found\n deferred.resolve();\n }\n });\n\n return deferred.promise;\n}", "makeChallenge() {\n const username = ($('#player').val());\n\n /** Check to make sure username has been selected */\n if (!username) {\n return;\n }\n\n /** Complete game challenge creation */\n $.post({\n url: '/api/makeChallengeGame',\n headers: { 'x-access-token': Util.getToken() },\n dataType: 'json',\n data: { username },\n success: (data) => {\n this.props.router.push('/game/' + data.id);\n },\n error: (data) => {\n console.log('Error!');\n console.log(data);\n },\n });\n }", "function getCourseById(req, res) {\n var id = req.params.id;\n\n var course = courses.find(function(course) {\n return course.id == id;\n });\n\n if (course) {\n res.json(course);\n } else {\n res.status(404).json({ error: \"A Course by that ID was not found.\" });\n }\n}", "function findSolutions(challenge) {\n return [];\n}", "function getMyChampion(participant) {\n return getChampionTranslation(participant['championId']);\n}" ]
[ "0.6971245", "0.62784463", "0.58492416", "0.55079806", "0.54730904", "0.5441973", "0.5395898", "0.51554036", "0.5043459", "0.5019115", "0.4908836", "0.48976633", "0.48744273", "0.4806224", "0.4806224", "0.48039496", "0.48034048", "0.4802444", "0.4792775", "0.47824928", "0.47527227", "0.4741885", "0.46977365", "0.46954066", "0.46954066", "0.46954066", "0.46954066", "0.46922022", "0.46761954", "0.4662154", "0.46587032", "0.465771", "0.46338788", "0.4626741", "0.46262702", "0.46243495", "0.46034092", "0.4596258", "0.45905784", "0.45881322", "0.45807147", "0.45765847", "0.45718104", "0.45658487", "0.45582134", "0.45331496", "0.4528271", "0.4525028", "0.4524544", "0.4499025", "0.4495897", "0.4492842", "0.44847405", "0.44676548", "0.4459729", "0.44579616", "0.44569808", "0.445191", "0.44400415", "0.44211096", "0.44198197", "0.4408578", "0.4405335", "0.4390975", "0.43890014", "0.43885654", "0.437455", "0.43723077", "0.4361059", "0.4360479", "0.43537873", "0.4350326", "0.4343695", "0.43433276", "0.4337255", "0.4334165", "0.43294063", "0.4326439", "0.43240997", "0.43193233", "0.43189958", "0.43112022", "0.43028212", "0.4298048", "0.4288662", "0.42820564", "0.42814043", "0.42797172", "0.42791846", "0.42772207", "0.4274641", "0.42662498", "0.42662272", "0.4264061", "0.42607397", "0.42578116", "0.42553118", "0.42518649", "0.42512977", "0.42474428" ]
0.6414845
1
Pepare the deploy options, passing them along with the instantiated web3 and optional contract options to the super class' _deploy method.
deploy(web3, params, opts) { const _super = name => super[name]; return __awaiter(this, void 0, void 0, function* () { const dp = { abi: Registry_json_1.default.abi, bytecode: Registry_json_1.default.bytecode, args: [ params.tokenAddress, params.votingAddress, params.parameterizerAddress, params.name ] }; return _super("deployContract").call(this, web3, dp, opts); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "deploy(web3, params, opts) {\n const _super = name => super[name];\n return __awaiter(this, void 0, void 0, function* () {\n const dp = {\n abi: Parameterizer_json_1.default.abi,\n bytecode: Parameterizer_json_1.default.bytecode,\n args: [\n params.tokenAddress,\n params.votingAddress,\n params.minDeposit || constants_1.ParameterDefaults.MIN_DEPOSIT,\n params.pMinDeposit || constants_1.ParameterDefaults.P_MIN_DEPOSIT,\n params.applyStageLen || constants_1.ParameterDefaults.APPLY_STAGE_LENGTH,\n params.pApplyStageLen || constants_1.ParameterDefaults.P_APPLY_STAGE_LENGTH,\n params.commitStageLen || constants_1.ParameterDefaults.COMMIT_STAGE_LENGTH,\n params.pCommitStageLen || constants_1.ParameterDefaults.P_COMMIT_STAGE_LENGTH,\n params.revealStageLen || constants_1.ParameterDefaults.REVEAL_STAGE_LENGTH,\n params.pRevealStageLen || constants_1.ParameterDefaults.P_REVEAL_STAGE_LENGTH,\n params.dispensationPct || constants_1.ParameterDefaults.DISPENSATION_PCT,\n params.pDispensationPct || constants_1.ParameterDefaults.P_DISPENSATION_PCT,\n params.voteQuorum || constants_1.ParameterDefaults.VOTE_QUORUM,\n params.pVoteQuorum || constants_1.ParameterDefaults.P_VOTE_QUORUM\n ]\n };\n return _super(\"deployContract\").call(this, web3, dp, opts);\n });\n }", "function toDeployOptions(args, options) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var idl, _a, rpcOptions;\r\n return __generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n _a = options.idl;\r\n if (_a) return [3 /*break*/, 2];\r\n return [4 /*yield*/, fromWasm(options.bytecode)];\r\n case 1:\r\n _a = (_b.sent());\r\n _b.label = 2;\r\n case 2:\r\n idl = _a;\r\n rpcOptions = (function () {\r\n return {\r\n gasLimit: options.gasLimit,\r\n gasPrice: options.gasPrice,\r\n value: options.value,\r\n };\r\n })();\r\n return [2 /*return*/, {\r\n bytecode: options.bytecode,\r\n idl: idl,\r\n header: deployHeader(options),\r\n arguments: args,\r\n options: rpcOptions,\r\n gateway: options.gateway,\r\n db: options.db,\r\n coder: options.coder,\r\n }];\r\n }\r\n });\r\n });\r\n}", "deploy(contractAddress = null) {\n // if this isn't compiled yet, we need to compile it for the bytecode and web3 interface (abi)\n if (!this.compiled) {\n this.compile();\n }\n // if there is an address passed in then assume that it is already deployed\n if (contractAddress !== null) {\n this.contractAddress = contractAddress;\n return this.node1.then((web3) => {\n this.contractInterface = new web3.eth.Contract(this.abi, this.contractAddress);\n return this.contractAddress;\n });\n }\n\n // No address provided so let's deploy a new one onto the chain\n return this.node1.then((web3) => {\n let contract = new web3.eth.Contract(this.abi);\n console.log(\"Getting default account from node1 to deploy new contract\");\n return web3.eth.getAccounts().then((accounts) => {\n console.log(\"Deploying new contract from address: \" + accounts[0]);\n return contract.deploy({ data: this.bytecode, arguments: [defaultValue] }).send({\n data: this.bytecode,\n from: accounts[0],\n gasPrice: 0,\n gas: 2000000\n }).then((response) => {\n //console.log(response);\n this.contractAddress = response._address;\n this.contractInterface = new web3.eth.Contract(this.abi, this.contractAddress);\n return this.contractAddress;\n })\n })\n })\n\n }", "async function doDeploy() {\n var file_id = await createFile(\"state.data\", [])\n var send_opt = {gas:4700000, from:config.base}\n console.log(send_opt, file_id)\n var init_hash = \"0xc555544c6083b2a311c8999924893ced050615f712e240c7c439a7d8248226dc\"\n var code_address = \"QmdFE8Wcj7q6447q2sZ7ttNkCxK5TcmHLFQe1j714k6jTY\"\n var contract = await new web3.eth.Contract(abi).deploy({data: code, arguments:[config.tasks, config.fs, file_id, code_address, init_hash]}).send(send_opt)\n contract.setProvider(w3provider)\n config.plasma = contract.options.address\n console.log(JSON.stringify(config))\n var tx = await contract.methods.deposit().send({gas:4700000, from:config.base, value: 100000000})\n console.log(\"deposit\", tx)\n var dta = await contract.methods.debugBlock(1).call(send_opt)\n console.log(\"what happened\", dta)\n var tx = await contract.methods.validateDeposit(1).send({gas:4700000, from:config.base})\n console.log(\"submitted task\", tx)\n contract.events.GotFiles(function (err,ev) {\n console.log(\"Files\", ev.returnValues)\n var files = ev.returnValues.files\n files.forEach(outputFile)\n })\n // process.exit(0)\n}", "function deploy_contract() {\n web3.eth.getGasPrice(function(error, gas_price) {\n console.log(\"Gas price: \" + gas_price);\n if (!error) {\n web3.eth.getBlock(\"latest\", function(error, block) {\n console.log(\"The gas block limit is: \" + block.gasLimit.toString());\n if (!error) {\n var transaction_object = {\n chainId: web3.utils.toHex(newBlockchain.getChainId()),\n from: document.getElementById(\"public_key_input\").value,\n gasPrice: web3.utils.toHex(gas_price),\n gas: web3.utils.toHex(block.gasLimit.toString()),\n data: bytecode\n };\n web3.eth.accounts.signTransaction(transaction_object, document.getElementById(\"private_key_input\").value, function(error, signed_tx) {\n if (!error) {\n web3.eth.sendSignedTransaction(signed_tx.rawTransaction, function(error, sent_tx) {\n if (!error) {\n document.getElementById(\"deploy_contract_output\").innerHTML = \"Please wait for about 10 seconds for transaction to be confirmed ...\";\n setTimeout(function() {\n web3.eth.getTransactionReceipt(sent_tx, function(err, res_rec) {\n if (!err) {\n if (res_rec != null && res_rec != undefined) {\n //console.log(\"Success, we now have a transaction receipt: \" + JSON.stringify(res_rec));\n document.getElementById(\"deploy_contract_output\").innerHTML = \"Contract address: \" + res_rec[\"contractAddress\"];\n newContract.setAddress(res_rec[\"contractAddress\"]);\n console.log(\"New contract at: \" + newContract.getAddress());\n var multiswapContractInstance = new web3.eth.Contract(abi, res_rec[\"contractAddress\"]);\n newContract.setContractInstanceObject(multiswapContractInstance);\n }\n } else {\n console.log(\"Unable to get transaction receipt \" + err);\n }\n });\n }, 60000);\n\n } else {\n console.log(\"*\\nSend signed transaction failed: \" + error);\n }\n });\n } else {\n console.log(error);\n }\n });\n\n } else {\n console.log(error);\n }\n });\n\n } else {\n console.log(error);\n }\n });\n}", "deployPost(incomingOptions, cb) {\n const Rollbar = require('./dist');\n\n let apiInstance = new Rollbar.DefaultApi(); // String | Use a post server item access token\n /*let xRollbarAccessToken = \"xRollbarAccessToken_example\";*/ let opts = {\n body: new Rollbar.Api1DeployRequest(), // Api1DeployRequest |\n };\n\n if (incomingOptions.opts)\n Object.keys(incomingOptions.opts).forEach(\n (key) =>\n incomingOptions.opts[key] === undefined &&\n delete incomingOptions.opts[key]\n );\n else delete incomingOptions.opts;\n incomingOptions.opts = Object.assign(opts, incomingOptions.opts);\n\n apiInstance.deployPost(\n incomingOptions.xRollbarAccessToken,\n incomingOptions.opts,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data.result, response);\n }\n }\n );\n }", "deploy() {\n if (this.deployed && this.contractAddress) {\n console.log(\"Deploy function already called\");\n this.UserContract = this.USER.then(web3 => {\n return new web3.eth.Contract(KaleidoKardsContract.abi, this.contractAddress);\n });\n this.JoeContract = this.JOE.then(web3 => {\n return new web3.eth.Contract(KaleidoKardsContract.abi, this.contractAddress);\n });\n this.StoreContract = this.STORE.then(web3 => {\n return new web3.eth.Contract(KaleidoKardsContract.abi, this.contractAddress);\n });\n\n return new Promise((resolve) => {resolve(this.contractAddress)});\n }\n\n // else deploy the contract\n return this.STORE.then((web3) => {\n let bytecode = KaleidoKardsContract.bytecode;\n let abi = KaleidoKardsContract.abi;\n\n let contract = new web3.eth.Contract(abi);\n console.log(\"Getting kard_store account to deploy new contract\");\n return web3.eth.getAccounts().then((accounts) => {\n console.log(\"Deploying new contract from address: \" + accounts[0]);\n return contract.deploy({data: bytecode}).send({data: bytecode, from: accounts[0], gasPrice: 0, gas: 2000000})\n .then( (response) => {\n this.contractAddress = response._address;\n console.log(\"Successfully deployed at address: \" + this.contractAddress);\n\n this.UserContract = this.USER.then(response => {\n // return new response.eth.Contract(KaleidoKardsContract.abi, '0xb7a996f99afff30a8a7c5b95aa9617f0985da9ee');\n return new response.eth.Contract(KaleidoKardsContract.abi, this.contractAddress);\n });\n this.JoeContract = this.JOE.then(response => {\n // return new response.eth.Contract(KaleidoKardsContract.abi, '0xb7a996f99afff30a8a7c5b95aa9617f0985da9ee');\n return new response.eth.Contract(KaleidoKardsContract.abi, this.contractAddress);\n });\n this.StoreContract = this.STORE.then(response => {\n // return new response.eth.Contract(KaleidoKardsContract.abi, '0xb7a996f99afff30a8a7c5b95aa9617f0985da9ee');\n return new response.eth.Contract(KaleidoKardsContract.abi, this.contractAddress);\n });\n this.deployed = true;\n return this.contractAddress;\n });\n })\n })\n\n }", "function deployRpc(options) {\n options = Object.assign({}, options);\n options.headers = Object.assign({}, options.headers || {});\n if (options.headers.cookie) {\n throw new Error(\"sorry, can't combine cookie headers yet\");\n }\n options.qs = Object.assign(\n {},\n options.qs,\n { capabilities: CAPABILITIES.slice() },\n options.deployWithTokenProps || {}\n );\n // If we are waiting for deploy, we let Galaxy know so it can\n // use that information to send us the right deploy message response.\n if (options.waitForDeploy) {\n options.qs.capabilities.push('willPollVersionStatus');\n }\n\n const deployURLBase = getDeployURL(options.site).await();\n\n if (options.printDeployURL) {\n Console.info(\"Talking to Galaxy servers at \" + deployURLBase);\n }\n\n let operand = '';\n if (options.operand) {\n operand = `/${options.operand}`;\n } else if (options.site) {\n operand = `/${options.site}`;\n }\n\n // XXX: Reintroduce progress for upload\n try {\n var result = request(Object.assign(options, {\n url: deployURLBase + '/' + options.operation +\n operand,\n method: options.method || 'GET',\n bodyStream: options.bodyStream,\n useAuthHeader: true,\n encoding: 'utf8' // Hack, but good enough for the deploy server..\n }));\n } catch (e) {\n return {\n statusCode: null,\n errorMessage: \"Connection error (\" + e.message + \")\"\n };\n }\n\n var response = result.response;\n var body = result.body;\n var ret = { statusCode: response.statusCode };\n\n if (response.statusCode !== 200) {\n if (body.length > 0) {\n ret.errorMessage = body;\n } else {\n ret.errorMessage = \"Server error \" + response.statusCode +\n \" (please try again later)\";\n }\n return ret;\n }\n\n var contentType = response.headers[\"content-type\"] || '';\n if (contentType === \"application/json; charset=utf-8\") {\n try {\n ret.payload = JSON.parse(body);\n } catch (e) {\n ret.errorMessage =\n \"Server error (please try again later)\\n\"\n + \"Invalid JSON: \" + body;\n return ret;\n }\n } else if (contentType === \"text/plain; charset=utf-8\") {\n ret.message = body;\n }\n\n const hasAllExpectedKeys =\n (options.expectPayload || [])\n .map(key => ret.payload && hasOwn.call(ret.payload, key))\n .every(x => x);\n\n if ((options.expectPayload && ! hasOwn.call(ret, 'payload')) ||\n (options.expectMessage && ! hasOwn.call(ret, 'message')) ||\n ! hasAllExpectedKeys) {\n delete ret.payload;\n delete ret.message;\n\n ret.errorMessage = \"Server error (please try again later)\\n\" +\n \"Response missing expected keys.\";\n }\n\n return ret;\n}", "function extractOptions(args) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var options, deployOptions;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (args.length === 0) {\r\n throw new DeployError(args, 'No deploy arguments provided');\r\n }\r\n options = (function () {\r\n // Options should be the last argument in the args array.\r\n var opts = args.pop();\r\n // Assert required options are given.\r\n if (!opts.bytecode) {\r\n throw new DeployError(__spreadArrays(args, [opts]), 'No bytecode provided');\r\n }\r\n // Convert hex-string convenience api into Uint8Array\r\n if (typeof opts.bytecode === 'string') {\r\n opts.bytecode = bytes.parseHex(opts.bytecode);\r\n }\r\n return opts;\r\n })();\r\n return [4 /*yield*/, toDeployOptions(args, options)];\r\n case 1:\r\n deployOptions = _a.sent();\r\n validateDeployOptions(deployOptions, args);\r\n return [2 /*return*/, deployOptions];\r\n }\r\n });\r\n });\r\n}", "constructor(web3, contract, prover) {\n this.web3 = web3;\n this.contract = contract;\n this.prover = prover;\n }", "async function deployPool(deployer, network, accounts) {\n\n let gof = new web3.eth.Contract(GOF.abi, '0x488e0369f9bc5c40c002ea7c1fe4fd01a198801c');\n let reward_account = accounts[0];\n let gas_price = 165000000000;\n\n console.log(\"[Golff] 1.Start deploy pool on Network= \" + network);\n\n await deployer.deploy(GOFGXCPool);\n await deployer.deploy(GOFHTPool);\n // await deployer.deploy(GOFLIKPool);\n // await deployer.deploy(GOFUSDTPool);\n // await deployer.deploy(GOFETHPool);\n // await deployer.deploy(GOFYFIIPool);\n \n console.log(\"[Golff] 2.Start add minter acl for pool\");\n gof.methods.addMinter(GOFGXCPool.address).send({ from: reward_account, gasPrice: gas_price, gas: 100000});\n gof.methods.addMinter(GOFHTPool.address).send({ from: reward_account, gasPrice: gas_price, gas: 100000});\n // gof.methods.addMinter(GOFUSDTPool.address).send({ from: reward_account, gasPrice: gas_price, gas: 100000});\n // gof.methods.addMinter(GOFUSDTPool.address).send({ from: reward_account, gasPrice: gas_price, gas: 100000});\n // gof.methods.addMinter(GOFETHPool.address).send({ from: reward_account, gasPrice: gas_price, gas: 100000});\n // gof.methods.addMinter(GOFYFIIPool.address).send({ from: reward_account, gasPrice: gas_price, gas: 100000});\n\n console.log(\"[Golff] 3.Start set reward distributor\");\n\n let gxc_pool = new web3.eth.Contract(GOFGXCPool.abi, GOFGXCPool.address);\n let ht_pool = new web3.eth.Contract(GOFHTPool.abi, GOFHTPool.address);\n // let link_pool = new web3.eth.Contract(GOFLIKPool.abi, GOFLIKPool.address);\n // let usdt_pool = new web3.eth.Contract(GOFUSDTPool.abi, GOFUSDTPool.address);\n // let eth_pool = new web3.eth.Contract(GOFETHPool.abi, GOFETHPool.address);\n // let yfii_pool = new web3.eth.Contract(GOFYFIIPool.abi, GOFYFIIPool.address);\n\n await Promise.all([\n gxc_pool.methods.setRewardDistribution(reward_account).send({ from: reward_account, gasPrice: gas_price, gas: 100000}),\n ht_pool.methods.setRewardDistribution(reward_account).send({ from: reward_account, gasPrice: gas_price, gas: 100000 }),\n // link_pool.methods.setRewardDistribution(reward_account).send({ from: reward_account, gasPrice: gas_price, gas: 100000 }),\n // usdt_pool.methods.setRewardDistribution(reward_account).send({ from: reward_account, gasPrice: gas_price, gas: 100000 }),\n // eth_pool.methods.setRewardDistribution(reward_account).send({ from: reward_account, gasPrice: gas_price, gas: 100000 }),\n // yfii_pool.methods.setRewardDistribution(reward_account).send({ from: reward_account, gasPrice: gas_price, gas: 100000 }),\n ]);\n\n console.log(\"[Golff] 4.Start reward Gof to pool\");\n\n let init_quota = web3.utils.toBN(10 ** 18).mul(web3.utils.toBN(40000));\n\n // await Promise.all([\n // gxc_pool.methods.notifyRewardAmount(init_quota.toString()).send({ from: reward_account, gasPrice: gas_price, gas:150000}),\n // ht_pool.methods.notifyRewardAmount(init_quota.toString()).send({ from: reward_account, gasPrice: gas_price, gas: 150000 }),\n // // link_pool.methods.notifyRewardAmount(init_quota.toString()).send({ from: reward_account, gasPrice: gas_price, gas: 150000 }),\n // // usdt_pool.methods.notifyRewardAmount(init_quota.toString()).send({ from: reward_account, gasPrice: gas_price, gas: 150000 }),\n // // eth_pool.methods.notifyRewardAmount(init_quota.toString()).send({ from: reward_account, gasPrice: gas_price, gas: 150000 }),\n // // yfii_pool.methods.notifyRewardAmount(init_quota.toString()).send({ from: reward_account, gasPrice: gas_price, gas: 150000 }),\n // ]);\n}", "deployArtifacts() {\n let singleDeploy = {};\n singleDeploy.action = \"deploy\";\n singleDeploy.unitInfo = this.deployFile.unitInfo;\n singleDeploy.unitInfo.path = angular.copy(this.deployFile.targetPath);\n singleDeploy.fileName = this.deployFile.fileName;\n singleDeploy.repoKey = this.deployFile.repoDeploy.repoKey;\n\n if (this.deployFile.unitInfo.Internal && this.deployFile.unitConfigFileContent) {\n singleDeploy.publishUnitConfigFile = true;\n singleDeploy.unitConfigFileContent = this.deployFile.unitConfigFileContent;\n }\n if (!this.deployFile.unitInfo.bundle) {\n this.artifactDeployDao.post(singleDeploy).$promise.then((result)=> {\n if (result.data) {\n this.deploySuccess(result.data);\n }\n });\n }\n else {\n this.artifactDeployDao.postBundle(singleDeploy).$promise.then((result)=> {\n if (result.data) {\n this.deploySuccess(result.data);\n }\n });\n }\n }", "async function init() {\n program\n .usage('[options]')\n .option('-a, --address <address>', 'Address of Deployer contract')\n .option('-n, --network <network>', 'Name of the network (e.g. ropsten, mainnet, etc.)')\n .parse(process.argv)\n\n const options = program.opts()\n const address = options.address\n const network = options.network\n let admins = []\n\n if (!address) {\n throw new Error('Address not given')\n } else {\n console.log('address', address)\n }\n\n if (fs.existsSync(adminFile)) {\n admins = fs.readFileSync(adminFile, 'utf8').split('\\n')\n console.log('admins', admins)\n } else {\n console.log(`No admin addreses set on ${adminFile}`)\n }\n\n const provider = getProvider(network, 1)\n const web3 = new Web3(provider)\n const networkId = await web3.eth.net.getId()\n console.log('networkId', networkId)\n\n const accounts = await web3.eth.getAccounts()\n const [account] = accounts\n console.log(`Owner: ${account}`)\n\n const deployer = new web3.eth.Contract(Deployer.abi, address)\n const isAdmin = await deployer.methods.isAdmin(account).call();\n console.log('isAdmin', isAdmin)\n\n const baseTokenUri = await deployer.methods.baseTokenUri().call();\n console.log('baseTokenUri', baseTokenUri)\n\n const existingAdmins = await deployer.methods.getAdmins().call();\n console.log('existingAdmins', existingAdmins)\n\n if (Array.isArray(existingAdmins)) {\n const newAdmins = []\n for (let index = 0; index < admins.length; index++) {\n const admin = admins[index]\n if (existingAdmins.findIndex(item => item.toLowerCase() === admin.toLowerCase()) < 0) {\n console.log(`Granting '${admin}' admin right`)\n newAdmins.push(admin)\n }\n }\n if (newAdmins.length > 0) {\n console.log(newAdmins)\n await deployer.methods.grant(newAdmins).send({ from: account, gas: 200000 })\n }\n }\n}", "async function deployContract(){\n\n let abiPath = path.join(__dirname + '/bin/DataStorageEvent.abi');\n let binPath = path.join(__dirname + '/bin/DataStorageEvent.bin');\n\n console.log(chalk.green(abiPath));\n console.log(chalk.green(binPath));\n\n let abi = fs.readFileSync(abiPath);\n // let bin = '0x' + fs.readFileSync(binPath); updated version of ganache-cli does not need 'Ox' to be added to depict hexadecimal.\n let bin = fs.readFileSync(binPath);\n\n\n let contract = new web3.eth.Contract(JSON.parse(abi));\n\n console.log()\n // Returns an object of abstract contract.\n let status = await contract.deploy({\n data: bin,\n arguments: [100]\n }).send({\n from: '0x96b6E861698DfBA5721a3Ccd9AfBCa808e360bf3',\n gasPrice: 1000,\n gas: 300000\n })\n\n console.log(chalk.red('Address of Contract Deployed : ' + status.options.address));\n}", "function deploy(bytecode, abi, pipe) {\n\n}", "function DeployContract(eth_accountAddr,eth_bytecode){\n\n\t// if( typeof eth_arguments != undefined)\n\t// {\n\t// \tvar _arguments = eth_arguments;\n\t// }\n\tdataString = {\"jsonrpc\":\"2.0\",\"method\":\"eth_sendTransaction\",\"id\":1,\"params\":[{\n\t\t\"from\": eth_accountAddr,\n\t\t\"data\":eth_bytecode,\n\n\t}]}\n\toptions = {\n url: REQUESTURL,\n method:'POST',\n headers:headers,\n body: dataString,\n json: true\n\t}\n\treturn options;\n}", "function deploy(func, args, save_path, cb){\n\tconsole.log(\"[obc-js] Deploying Chaincode - Start\");\n\tconsole.log(\"\\n\\n\\t Waiting...\");\t\t\t\t\t\t\t\t\t\t//this can take awhile\n\tvar options = {path: '/devops/deploy'};\n\tvar body = \t{\n\t\t\t\t\ttype: \"GOLANG\",\n\t\t\t\t\tchaincodeID: {\n\t\t\t\t\t\t\tpath: chaincode.details.git_url\n\t\t\t\t\t\t},\n\t\t\t\t\tctorMsg:{\n\t\t\t\t\t\t\t\"function\": func,\n\t\t\t\t\t\t\t\"args\": args\n\t\t\t\t\t}\n\t\t\t\t};\n\toptions.success = function(statusCode, data){\n\t\tconsole.log(\"\\n\\n\\t deploy success [wait 1 more minute]\");\n\t\tchaincode.details.deployed_name = data.message;\n\t\tobc.prototype.save(tempDirectory);\t\t\t\t\t\t\t\t\t//save it so we remember we have deployed\n\t\tif(save_path != null) obc.prototype.save(save_path);\t\t\t\t//user wants the updated file somewhere\n\t\tif(cb){\n\t\t\tsetTimeout(function(){\n\t\t\t\tconsole.log(\"[obc-js] Deploying Chaincode - Complete\");\n\t\t\t\tcb(null, data);\n\t\t\t}, 60000);\t\t\t\t\t\t\t\t\t\t\t\t\t\t//wait extra long, not always ready yet\n\t\t}\n\t};\n\toptions.failure = function(statusCode, e){\n\t\tconsole.log(\"[obc-js] deploy - failure:\", statusCode);\n\t\tif(cb) cb(eFmt('http error', statusCode, e), null);\n\t};\n\trest.post(options, '', body);\n}", "function contractDropdown (events, self) {\n var instanceContainer = self._view.instanceContainer\n var instanceContainerTitle = self._view.instanceContainerTitle\n instanceContainer.appendChild(instanceContainerTitle)\n instanceContainer.appendChild(self._view.noInstancesText)\n var compFails = yo`<i title=\"Contract compilation failed. Please check the compile tab for more information.\" class=\"fa fa-times-circle ${css.errorIcon}\" ></i>`\n var info = yo`<i class=\"fa fa-info ${css.infoDeployAction}\" aria-hidden=\"true\" title=\"*.sol files allows deploying and accessing contracts. *.abi files only allows accessing contracts.\"></i>`\n\n var newlyCompiled = (success, data, source, compiler, compilerFullName) => {\n getContractNames(success, data, compiler, compilerFullName)\n if (success) {\n compFails.style.display = 'none'\n document.querySelector(`.${css.contractNames}`).classList.remove(css.contractNamesError)\n } else {\n compFails.style.display = 'block'\n document.querySelector(`.${css.contractNames}`).classList.add(css.contractNamesError)\n }\n }\n\n self._deps.pluginManager.event.register('sendCompilationResult', (file, source, languageVersion, data) => {\n // TODO check whether the tab is configured\n let compiler = new CompilerAbstract(languageVersion, data)\n self._deps.compilersArtefacts[languageVersion] = compiler\n self._deps.compilersArtefacts['__last'] = compiler\n newlyCompiled(true, data, source, compiler, languageVersion)\n })\n\n self._deps.compiler.event.register('compilationFinished', (success, data, source) => {\n var name = 'solidity'\n let compiler = new CompilerAbstract(name, data)\n self._deps.compilersArtefacts[name] = compiler\n self._deps.compilersArtefacts['__last'] = compiler\n newlyCompiled(success, data, source, self._deps.compiler, name)\n })\n\n var deployAction = (value) => {\n self._view.createPanel.style.display = value\n self._view.orLabel.style.display = value\n }\n\n self._deps.fileManager.event.register('currentFileChanged', (currentFile) => {\n document.querySelector(`.${css.contractNames}`).classList.remove(css.contractNamesError)\n var contractNames = document.querySelector(`.${css.contractNames.classNames[0]}`)\n contractNames.innerHTML = ''\n if (/.(.abi)$/.exec(currentFile)) {\n deployAction('none')\n compFails.style.display = 'none'\n contractNames.appendChild(yo`<option>(abi)</option>`)\n selectContractNames.setAttribute('disabled', true)\n } else if (/.(.sol)$/.exec(currentFile)) {\n deployAction('block')\n }\n })\n\n var atAddressButtonInput = yo`<input class=\"${css.input} ataddressinput\" placeholder=\"Load contract from Address\" title=\"atAddress\" />`\n var selectContractNames = yo`<select class=\"${css.contractNames}\" disabled></select>`\n\n function getSelectedContract () {\n var contract = selectContractNames.children[selectContractNames.selectedIndex]\n var contractName = contract.innerHTML\n var compiler = self._deps.compilersArtefacts[contract.getAttribute('compiler')]\n if (!compiler) return null\n\t\n if (contractName) {\n return {\n name: contractName,\n contract: compiler.getContract(contractName),\n compiler\n }\n }\n return null\n }\n\n self._view.createPanel = yo`<div class=\"${css.button}\"></div>`\n self._view.orLabel = yo`<div class=\"${css.orLabel}\">or</div>`\n var el = yo`\n <div class=\"${css.container}\">\n <div class=\"${css.subcontainer}\">\n ${selectContractNames} ${compFails} ${info}\n </div>\n <div>\n ${self._view.createPanel}\n ${self._view.orLabel}\n <div class=\"${css.button} ${css.atAddressSect}\">\n <div class=\"${css.atAddress}\" onclick=${function () { loadFromAddress() }}>At Address</div>\n ${atAddressButtonInput}\n </div>\n </div>\n </div>\n `\n\n function setInputParamsPlaceHolder () {\n self._view.createPanel.innerHTML = ''\n if (selectContractNames.selectedIndex >= 0 && selectContractNames.children.length > 0) {\n var selectedContract = getSelectedContract()\n var ctrabi = txHelper.getConstructorInterface(selectedContract.contract.object.abi)\n var ctrEVMbc = selectedContract.contract.object.evm.bytecode.object\n var createConstructorInstance = new MultiParamManager(0, ctrabi, (valArray, inputsValues) => {\n createInstance(inputsValues, selectedContract.compiler)\n }, txHelper.inputParametersDeclarationToString(ctrabi.inputs), 'Deploy', ctrEVMbc)\n self._view.createPanel.appendChild(createConstructorInstance.render())\n return\n } else {\n self._view.createPanel.innerHTML = 'No compiled contracts'\n }\n }\n\n selectContractNames.addEventListener('change', setInputParamsPlaceHolder)\n\n function createInstanceCallback (selectedContract, data) {\n self._deps.logCallback(`creation of ${selectedContract.name} pending...`)\n if (data) {\n data.contractName = selectedContract.name\n data.linkReferences = selectedContract.contract.object.evm.bytecode.linkReferences\n data.contractABI = selectedContract.contract.object.abi\n }\n self._deps.udapp.createContract(data, (error, txResult) => {\n if (!error) {\n var isVM = executionContext.isVM()\n if (isVM) {\n var vmError = txExecution.checkVMError(txResult)\n if (vmError.error) {\n self._deps.logCallback(vmError.message)\n return\n }\n }\n if (txResult.result.status && txResult.result.status === '0x0') {\n self._deps.logCallback(`creation of ${selectedContract.name} errored: transaction execution failed`)\n return\n }\n var noInstancesText = self._view.noInstancesText\n if (noInstancesText.parentNode) { noInstancesText.parentNode.removeChild(noInstancesText) }\n var address = isVM ? txResult.result.createdAddress : txResult.result.contractAddress\n instanceContainer.appendChild(self._deps.udappUI.renderInstance(selectedContract.contract.object, address, selectContractNames.value))\n } else {\n self._deps.logCallback(`creation of ${selectedContract.name} errored: ${error}`)\n }\n })\n }\n\n // DEPLOY INSTANCE\n function createInstance (args, compiler) {\n var selectedContract = getSelectedContract()\n\n if (selectedContract.contract.object.evm.bytecode.object.length === 0) {\n modalDialogCustom.alert('This contract does not implement all functions and thus cannot be created.')\n return\n }\n\n var forceSend = () => {\n var constructor = txHelper.getConstructorInterface(selectedContract.contract.object.abi)\n self._deps.filePanel.compilerMetadata().deployMetadataOf(selectedContract.name, (error, contractMetadata) => {\n if (error) return self._deps.logCallback(`creation of ${selectedContract.name} errored: ` + error)\n if (!contractMetadata || (contractMetadata && contractMetadata.autoDeployLib)) {\n txFormat.buildData(selectedContract.name, selectedContract.contract.object, compiler.getContracts(), true, constructor, args, (error, data) => {\n if (error) return self._deps.logCallback(`creation of ${selectedContract.name} errored: ` + error)\n createInstanceCallback(selectedContract, data)\n }, (msg) => {\n self._deps.logCallback(msg)\n }, (data, runTxCallback) => {\n // called for libraries deployment\n self._deps.udapp.runTx(data, runTxCallback)\n })\n } else {\n if (Object.keys(selectedContract.contract.object.evm.bytecode.linkReferences).length) self._deps.logCallback(`linking ${JSON.stringify(selectedContract.contract.object.evm.bytecode.linkReferences, null, '\\t')} using ${JSON.stringify(contractMetadata.linkReferences, null, '\\t')}`)\n txFormat.encodeConstructorCallAndLinkLibraries(selectedContract.contract.object, args, constructor, contractMetadata.linkReferences, selectedContract.contract.object.evm.bytecode.linkReferences, (error, data) => {\n if (error) return self._deps.logCallback(`creation of ${selectedContract.name} errored: ` + error)\n createInstanceCallback(selectedContract, data)\n })\n }\n })\n }\n\n if (selectedContract.contract.object.evm.deployedBytecode && selectedContract.contract.object.evm.deployedBytecode.object.length / 2 > 24576) {\n modalDialog('Contract code size over limit', yo`<div>Contract creation initialization returns data with length of more than 24576 bytes. The deployment will likely fails. <br>\n More info: <a href=\"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-170.md\" target=\"_blank\">eip-170</a>\n </div>`,\n {\n label: 'Force Send',\n fn: () => {\n forceSend()\n }}, {\n label: 'Cancel',\n fn: () => {\n self._deps.logCallback(`creation of ${selectedContract.name} canceled by user.`)\n }\n })\n } else {\n forceSend()\n }\n }\n\n // ACCESS DEPLOYED INSTANCE\n function loadFromAddress () {\n var noInstancesText = self._view.noInstancesText\n if (noInstancesText.parentNode) { noInstancesText.parentNode.removeChild(noInstancesText) }\n var address = atAddressButtonInput.value\n if (!ethJSUtil.isValidAddress(address)) {\n return modalDialogCustom.alert('Invalid address.')\n }\n if (/[a-f]/.test(address) && /[A-F]/.test(address) && !ethJSUtil.isValidChecksumAddress(address)) {\n return modalDialogCustom.alert('Invalid checksum address.')\n }\n if (/.(.abi)$/.exec(self._deps.config.get('currentFile'))) {\n modalDialogCustom.confirm(null, 'Do you really want to interact with ' + address + ' using the current ABI definition ?', () => {\n var abi\n try {\n abi = JSON.parse(self._deps.editor.currentContent())\n } catch (e) {\n return modalDialogCustom.alert('Failed to parse the current file as JSON ABI.')\n }\n instanceContainer.appendChild(self._deps.udappUI.renderInstanceFromABI(abi, address, address))\n })\n } else {\n var selectedContract = getSelectedContract()\n instanceContainer.appendChild(self._deps.udappUI.renderInstance(selectedContract.contract.object, address, selectContractNames.value))\n }\n }\n\n // GET NAMES OF ALL THE CONTRACTS\n function getContractNames (success, data, compiler, compilerFullName) {\n var contractNames = document.querySelector(`.${css.contractNames.classNames[0]}`)\n contractNames.innerHTML = ''\n if (success) {\n selectContractNames.removeAttribute('disabled')\n compiler.visitContracts((contract) => {\n contractNames.appendChild(yo`<option compiler=\"${compilerFullName}\">${contract.name}</option>`)\n })\n } else {\n selectContractNames.setAttribute('disabled', true)\n }\n setInputParamsPlaceHolder()\n }\n\n return el\n}", "prepareContract(contract) {\n let options = contract.options,\n classRefStr = contract.classRef.toString();\n\n // `params` is a list of constructor arguments\n if (!contract.params)\n {\n // Check if there is an injectable list\n if (!options.inject && options.autodetect !== false)\n {\n options.inject = this.extractInjectParams(classRefStr);\n }\n }\n\n // --debug-start--\n if (options.inject && options.augment)\n {\n console.warn(`#register(${contractStr}): the 'inject' setting will be used instead of 'augment'`);\n }\n // --debug-end--\n \n\n // Keep it simple; using both is not allowed\n if (!options.inject && options.augment)\n {\n contract.classRef = this.augment(classRef, classRefStr);\n }\n }", "constructor(web3, contract, accounts) {\n this.web3 = web3;\n this.contract = contract;\n this.accounts = accounts;\n }", "function deploy(args) {\n return __awaiter(this, void 0, void 0, function* () {\n const argsWithDefaults = (0, utilities_1.getDefaultSettings)(args);\n const logger = new utilities_1.Logger(argsWithDefaults[\"log-level\"]);\n const timings = new utilities_1.Timings();\n yield (0, deploy_1.deploy)(argsWithDefaults, logger, timings);\n });\n}", "function on_deploy(details)\n {\n if (details.reason === \"install\") { on_install(); }\n else if (details.reason === \"update\") { on_update(); }\n }", "function setDeploymentParameters()\r\n{\r\n\ttry\r\n\t{\r\n\t\t\r\n\t\tif (nlapiGetContext().getSetting('SCRIPT', 'custscript_pricelist_debugtrace') == 'T')\r\n\t\t{ debugOn = true; } else { debugOn = false; }\r\n\t\t\r\n\t\tvar formidParam = nlapiGetContext().getSetting('SCRIPT', 'custscript_estimate_formid');\r\n\t\tif (formidParam != '' && formidParam != null)\r\n\t\t{ estimateFormID = formidParam; } else { estimateFormID = 111; }\t\r\n\t\t\r\n\t}\r\n\tcatch (e)\r\n\t{\r\n\t\terrorHandler(\"setDeploymentParameters\", e);\r\n\t}\r\n}", "function processConfigOptions() {\n if (OPTIONS.base_dir === 'cwd' || OPTIONS.base_dir === './') {\n OPTIONS.base_dir = soi.utils.normalizeSysPath(process.cwd() + '/');\n } else {\n OPTIONS.base_dir = soi.utils.normalizeSysPath(\n path.resolve(process.cwd() + '/', OPTIONS.base_dir) + '/');\n }\n\n if (OPTIONS.dist_dir) {\n OPTIONS.dist_dir = soi.utils.normalizeSysPath(\n path.resolve(OPTIONS.base_dir, OPTIONS.dist_dir) + '/');\n }\n if (OPTIONS.module_loader) {\n OPTIONS.module_loader = soi.utils.normalizeSysPath(\n path.resolve(OPTIONS.base_dir, OPTIONS.module_loader));\n }\n if (OPTIONS.map_file) {\n OPTIONS.map_file = soi.utils.normalizeSysPath(\n path.resolve(OPTIONS.base_dir, OPTIONS.map_file));\n }\n if (OPTIONS.output_base) {\n OPTIONS.output_base = soi.utils.normalizeSysPath(\n path.resolve(OPTIONS.base_dir, OPTIONS.output_base) + '/');\n }\n\n // clean(OPTIONS.dist_dir, function(err) {});\n\n // newly added\n if (OPTIONS.bundles.img) {\n processStaticBundles(OPTIONS.bundles.img);\n }\n\n if (OPTIONS.bundles.swf) {\n processStaticBundles(OPTIONS.bundles.swf);\n }\n\n if (OPTIONS.bundles.htc) {\n processStaticBundles(OPTIONS.bundles.htc);\n }\n\n if (OPTIONS.bundles.font) {\n processStaticBundles(OPTIONS.bundles.font);\n }\n\n if (OPTIONS.bundles.css) {\n processDynamicBundles(OPTIONS.bundles.css);\n }\n\n if (OPTIONS.bundles.js) {\n processDynamicBundles(OPTIONS.bundles.js);\n }\n\n // added default ones, because we don't read in it as first\n // calling soi.config.extend\n soi.config.extend({\n optimizer: OPTIONS\n });\n}", "async function deployContract(walletObj) {\n console.log('DCWalletBuild', DCWalletBuild)\n\n // Create an instance of a Contract Factory\n let factory = new ethers.ContractFactory(DCWalletBuild.abi, DCWalletBuild.bytecode, walletObj);\n console.log('factory done')\n\n // Notice we pass in \"Hello World\" as the parameter to the constructor\n let provider = new ethers.providers.Web3Provider(wallet);\n let network = await provider.getNetwork();\n contract = await factory.deploy([USDC.networks[network.chainId].address, TCAD.networks[network.chainId].address]);\n console.log('factory.deploy done')\n\n // The address the Contract WILL have once mined\n // See: https://ropsten.etherscan.io/address/0x2bd9aaa2953f988153c8629926d22a6a5f69b14e\n console.log('contract.address', contract.address);\n // \"0x2bD9aAa2953F988153c8629926D22A6a5F69b14E\"\n\n // The transaction that was sent to the network to deploy the Contract\n // See: https://ropsten.etherscan.io/tx/0x159b76843662a15bd67e482dcfbee55e8e44efad26c5a614245e12a00d4b1a51\n console.log('contract.deployTransaction.hash', contract.deployTransaction.hash);\n // \"0x159b76843662a15bd67e482dcfbee55e8e44efad26c5a614245e12a00d4b1a51\"\n\n // The contract is NOT deployed yet; we must wait until it is mined\n await contract.deployed()\n\n // Done! The contract is deployed.\n return contract.address\n}", "async function deployRs(deployer, network) {\n let reserveToken = \"0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8\"; // ycrv\n let uniswap_factory = \"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f\";\n await deployer.deploy(TATOReserves, reserveToken, TATOProxy.address);\n await deployer.deploy(TATORebaser,\n TATOProxy.address,\n reserveToken,\n uniswap_factory,\n TATOReserves.address\n );\n let rebase = new web3.eth.Contract(TATORebaser.abi, TATORebaser.address);\n\n let pair = await rebase.methods.uniswap_pair().call();\n console.log(\"TATO <-> YCRV UNISWAP Pair: \", pair)\n let tato = await TATOProxy.deployed();\n await tato._setRebaser(TATORebaser.address);\n console.log(\"tato._setRebaser\");\n let reserves = await TATOReserves.deployed();\n await reserves._setRebaser(TATORebaser.address)\n console.log(\"reserves._setRebaser\");\n\n}", "_initDeploy() {\n let UPLOAD_REST_URL = `${API.API_URL}/artifact/upload`;\n this.deploySingleUploader = this.artifactoryUploaderFactory.getUploaderInstance(this)\n .setUrl(UPLOAD_REST_URL)\n .setOnSuccessItem(this.onSuccessItem)\n .setOnAfterAddingAll(this.onAfterAddingAll)\n .setOnAfterAddingFile(this.onAfterAddingFile)\n .setOnErrorItem(this.onUploadError)\n .setOnCompleteAll(this.onCompleteAll);\n\n this._setPathAndFileType(this.node.data.path);\n\n // set data from currently open node\n }", "async function deployQuotaDistribution(deployer, network) {\n \n let bnb = await BNB.deployed();\n\n console.log(\"[Golff] 1.Start deploy QuotaDistribution on Network= \" + network);\n\n await deployer.deploy(QuotaDistribution, 1599904800, 175);\n \n console.log(\"[Golff] 2.Start add minter acl for distribution\");\n\n bnb.addMinter(QuotaDistribution.address);\n\n console.log(\"[Golff] 3.Start set quota distributor\");\n\n let disribution_account = \"0x424abfc7c0Defb02447D621Bf0f6eF80eD5C01fB\";\n\n let quota_distribution = new web3.eth.Contract(QuotaDistribution.abi, QuotaDistribution.address);\n\n await Promise.all([\n quota_distribution.methods.setQuotaDistribution(disribution_account).send({from: disribution_account}),\n ]);\n\n let init_quota = web3.utils.toBN(10 ** 18).mul(web3.utils.toBN(1000000 * 100));//.div(web3.utils.toBN(10 ** 4));\n \n console.log(\"[Golff] 4.Start set quota distributor\");\n\n await Promise.all([\n quota_distribution.methods.addOrgQuota(disribution_account, init_quota.toString()).send({from: disribution_account}),\n ]);\n \n console.log(\"[Golff] 5.Start set quota distributor\");\n\n await Promise.all([\n quota_distribution.methods.distributeQuota().send({from:disribution_account}),\n ]);\n}", "function vms_deploy() {\n _.each(server_list, function(data, hostname, i) {\n vm_create(hostname);\n });\n //self.reset_server_list();\n }", "createEnvironment(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n\n let apiInstance = new Bitbucket.DeploymentsApi(); // String | The account // String | The repository // DeploymentEnvironment | The environment to create.\n /*let username = \"username_example\";*/ /*let repoSlug = \"repoSlug_example\";*/ /*let body = new Bitbucket.DeploymentEnvironment();*/ apiInstance.createEnvironment(\n incomingOptions.username,\n incomingOptions.repoSlug,\n incomingOptions.body,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "async function deploy(ethers) {\n\n const devMode = process.env.DEPLOY_NETWORK === 'localhost'\n\n const currentChain = chains[process.env.DEPLOY_NETWORK]\n\n if (!currentChain) {\n throw new Error('Unsupported chain')\n }\n\n let [\n validator\n ] = args;\n\n if (devMode) {\n validator = '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'\n }\n\n // store\n const Tweedentities = await ethers.getContractFactory(\"Tweedentities\");\n const tweedentities = await Tweedentities.deploy(\n currentChain[1]\n );\n await tweedentities.deployed();\n\n // claimer\n const TweedentityClaimer = await ethers.getContractFactory(\"TweedentityClaimer\");\n const tweedentityClaimer = await TweedentityClaimer.deploy(\n tweedentities.address\n );\n await tweedentityClaimer.deployed();\n\n // identity manager\n const TweedentityManager = await ethers.getContractFactory(\"TweedentityManager\");\n const tweedentityManager = await TweedentityManager.deploy(\n tweedentities.address,\n tweedentityClaimer.address\n [1, 2, 3],\n [validator, validator, validator]\n );\n\n const MANAGER_ROLE = await tweedentities.MANAGER_ROLE()\n await tweedentities.grantRole(MANAGER_ROLE, tweedentityManager.address)\n await tweedentities.grantRole(MANAGER_ROLE, tweedentityClaimer.address)\n await tweedentityClaimer.grantRole(MANAGER_ROLE, tweedentityManager.address)\n\n if (devMode) {\n const timestamp = (await ethers.provider.getBlock()).timestamp - 1\n const tid = 5876772\n const bob = (await ethers.getSigners())[3]\n const signature = await getSignature(ethers, tweedentityManager, bob.address, 1, tid, timestamp)\n await tweedentityManager.connect(bob).setIdentity(1, tid, timestamp, signature)\n }\n\n let names = [\n 'Tweedentities',\n 'TweedentityManager',\n 'TweedentityClaimer'\n ]\n let bytes32Names = names.map(e => ethers.utils.formatBytes32String(e))\n\n let addresses = [\n tweedentities.address,\n tweedentityManager.address,\n tweedentityClaimer.address\n ]\n\n const Registry = await ethers.getContractFactory(\"TweedentityRegistry\");\n const registry = await Registry.deploy(\n bytes32Names,\n addresses\n );\n await registry.deployed();\n\n let res = {\n TweedentityRegistry: registry.address\n }\n\n const deployedJson = require('../config/deployed.json')\n let currentJson = deployedJson.TweedentityRegistry[currentChain[0]]\n deployedJson.TweedentityRegistry[currentChain[0]] = {\n address: registry.address,\n when: (new Date).toISOString()\n }\n if (currentJson) {\n let old = {}\n old[currentChain[0]] = currentJson\n deployedJson.TweedentityRegistry.previousVersions.push(old)\n }\n\n fs.writeFileSync(path.resolve(__dirname, '../config/deployed.json'), JSON.stringify(deployedJson, null, 2))\n\n return res\n\n}", "deploy(skipFeatureDeployment = false) {\r\n return this.clone(App, `Deploy(${skipFeatureDeployment})`).postCore();\r\n }", "bind(_scope, options) {\n try {\n jsiiDeprecationWarnings.aws_cdk_lib_aws_cloudfront_OriginBindOptions(options);\n }\n catch (error) {\n if (process.env.JSII_DEBUG !== \"1\" && error.name === \"DeprecationError\") {\n Error.captureStackTrace(error, this.bind);\n }\n throw error;\n }\n const s3OriginConfig = this.renderS3OriginConfig();\n const customOriginConfig = this.renderCustomOriginConfig();\n if (!s3OriginConfig && !customOriginConfig) {\n throw new Error('Subclass must override and provide either s3OriginConfig or customOriginConfig');\n }\n return {\n originProperty: {\n domainName: this.domainName,\n id: this.originId ?? options.originId,\n originPath: this.originPath,\n connectionAttempts: this.connectionAttempts,\n connectionTimeout: this.connectionTimeout?.toSeconds(),\n originCustomHeaders: this.renderCustomHeaders(),\n s3OriginConfig,\n customOriginConfig,\n originShield: this.renderOriginShield(this.originShieldEnabled, this.originShieldRegion),\n },\n };\n }", "async deploy() {\n const { url } = await this.provider.faas.createHttpFunction(this.params)\n this.url = url\n return this\n }", "async function deployTellorx(_network, _pk, _nodeURL) {\n console.log(\"deploy tellor 3\")\n await run(\"compile\")\n\n var net = _network\n\n\n ///////////////Connect to the network\n let privateKey = _pk;\n var provider = new ethers.providers.JsonRpcProvider(_nodeURL)\n let wallet = new ethers.Wallet(privateKey, provider)\n\n\n ////////////// Deploy Tellor 3\n\n //////////////// Extension\n console.log(\"Starting deployment for extension contract...\")\n const extfac = await ethers.getContractFactory(\"contracts/tellor3/Extension.sol:Extension\", wallet)\n const extfacwithsigner = await extfac.connect(wallet)\n const extension = await extfac.deploy()\n console.log(\"Extension contract deployed to: \", extension.address)\n\n await extension.deployed()\n\n if (net == \"mainnet\") {\n console.log(\"Extension contract deployed to:\", \"https://etherscan.io/address/\" + extension.address);\n console.log(\" Extension transaction hash:\", \"https://etherscan.io/tx/\" + extension.deployTransaction.hash);\n } else if (net == \"rinkeby\") {\n console.log(\"Extension contract deployed to:\", \"https://rinkeby.etherscan.io/address/\" + extension.address);\n console.log(\" Extension transaction hash:\", \"https://rinkeby.etherscan.io/tx/\" + extension.deployTransaction.hash);\n } else {\n console.log(\"Please add network explorer details\")\n }\n\n\n\n\n //////////////// Tellor (Test)\n console.log(\"Starting deployment for tellor contract...\")\n const telfac = await ethers.getContractFactory(\"contracts/tellor3/Mocks/TellorTest.sol:TellorTest\", wallet)\n const telfacwithsigner = await telfac.connect(wallet)\n const tellor = await telfac.deploy(extension.address)\n console.log(\"Tellor contract deployed to: \", tellor.address)\n\n await tellor.deployed()\n\n if (net == \"mainnet\") {\n console.log(\"Tellor contract deployed to:\", \"https://etherscan.io/address/\" + tellor.address);\n console.log(\" Tellor transaction hash:\", \"https://etherscan.io/tx/\" + tellor.deployTransaction.hash);\n } else if (net == \"rinkeby\") {\n console.log(\"Tellor contract deployed to:\", \"https://rinkeby.etherscan.io/address/\" + tellor.address);\n console.log(\" Tellor transaction hash:\", \"https://rinkeby.etherscan.io/tx/\" + tellor.deployTransaction.hash);\n } else {\n console.log(\"Please add network explorer details\")\n }\n\n\n //////////////// Master\n console.log(\"Starting deployment for master contract...\")\n const masfac = await ethers.getContractFactory(\"contracts/tellor3/TellorMaster.sol:TellorMaster\", wallet)\n const masfacwithsigner = await masfac.connect(wallet)\n const master = await masfac.deploy(tellor.address, tellor.address) // use same addr for _OLD_TELLOR and _newTellor?\n console.log(\"Master contract deployed to: \", master.address)\n\n await master.deployed()\n\n if (net == \"mainnet\") {\n console.log(\"Master contract deployed to:\", \"https://etherscan.io/address/\" + master.address);\n console.log(\" Master transaction hash:\", \"https://etherscan.io/tx/\" + master.deployTransaction.hash);\n } else if (net == \"rinkeby\") {\n console.log(\"Master contract deployed to:\", \"https://rinkeby.etherscan.io/address/\" + master.address);\n console.log(\" Master transaction hash:\", \"https://rinkeby.etherscan.io/tx/\" + master.deployTransaction.hash);\n } else {\n console.log(\"Please add network explorer details\")\n }\n\n\n /////////// Deploy Tellor X\n console.log(\"deploy tellor X\")\n\n ////////////////Governance\n console.log(\"Starting deployment for governance contract...\")\n const gfac = await ethers.getContractFactory(\"contracts/testing/TestGovernance.sol:TestGovernance\", wallet)\n const gfacwithsigner = await gfac.connect(wallet)\n const governance = await gfacwithsigner.deploy(master.address)\n console.log(\"Governance contract deployed to: \", governance.address)\n\n await governance.deployed()\n\n if (net == \"mainnet\") {\n console.log(\"Governance contract deployed to:\", \"https://etherscan.io/address/\" + governance.address);\n console.log(\" Governance transaction hash:\", \"https://etherscan.io/tx/\" + governance.deployTransaction.hash);\n } else if (net == \"rinkeby\") {\n console.log(\"Governance contract deployed to:\", \"https://rinkeby.etherscan.io/address/\" + governance.address);\n console.log(\" Governance transaction hash:\", \"https://rinkeby.etherscan.io/tx/\" + governance.deployTransaction.hash);\n } else {\n console.log(\"Please add network explorer details\")\n }\n\n\n /////////////Oracle\n console.log(\"Starting deployment for Oracle contract...\")\n const ofac = await ethers.getContractFactory(\"contracts//testing/TestOracle.sol:TestOracle\", wallet)\n const ofacwithsigner = await ofac.connect(wallet)\n const oracle = await ofacwithsigner.deploy(master.address)\n await oracle.deployed();\n\n\n if (net == \"mainnet\") {\n console.log(\"oracle contract deployed to:\", \"https://etherscan.io/address/\" + oracle.address);\n console.log(\" oracle transaction hash:\", \"https://etherscan.io/tx/\" + oracle.deployTransaction.hash);\n } else if (net == \"rinkeby\") {\n console.log(\"oracle contract deployed to:\", \"https://rinkeby.etherscan.io/address/\" + oracle.address);\n console.log(\" oracle transaction hash:\", \"https://rinkeby.etherscan.io/tx/\" + oracle.deployTransaction.hash);\n } else {\n console.log(\"Please add network explorer details\")\n }\n\n ///////////Treasury\n console.log(\"Starting deployment for Treasury contract...\")\n const tfac = await ethers.getContractFactory(\"contracts/testing/TestTreasury.sol:TestTreasury\", wallet)\n const tfacwithsigner = await tfac.connect(wallet)\n const treasury = await tfacwithsigner.deploy(master.address)\n await treasury.deployed()\n\n if (net == \"mainnet\") {\n console.log(\"treasury contract deployed to:\", \"https://etherscan.io/address/\" + treasury.address);\n console.log(\" treasury transaction hash:\", \"https://etherscan.io/tx/\" + treasury.deployTransaction.hash);\n } else if (net == \"rinkeby\") {\n console.log(\"treasury contract deployed to:\", \"https://rinkeby.etherscan.io/address/\" + treasury.address);\n console.log(\" treasury transaction hash:\", \"https://rinkeby.etherscan.io/tx/\" + treasury.deployTransaction.hash);\n } else {\n console.log(\"Please add network explorer details\")\n }\n\n console.log(\"treasury Contract verified\")\n\n //////////////Controler\n console.log(\"Starting deployment for Controller contract...\")\n const cfac = await ethers.getContractFactory(\"contracts/Controller.sol:Controller\", wallet)\n const cfacwithsigners = await cfac.connect(wallet)\n const controller = await cfacwithsigners.deploy(governance.address, oracle.address, treasury.address)\n await controller.deployed()\n\n if (net == \"mainnet\") {\n console.log(\"The controller contract was deployed to:\", \"https://etherscan.io/address/\" + controller.address);\n console.log(\" transaction hash:\", \"https://etherscan.io/tx/\" + controller.deployTransaction.hash);\n } else if (net == \"rinkeby\") {\n console.log(\"The controller contract was deployed to:\", \"https://rinkeby.etherscan.io/address/\" + controller.address);\n console.log(\" transaction hash:\", \"https://rinkeby.etherscan.io/tx/\" + controller.deployTransaction.hash);\n } else {\n console.log(\"Please add network explorer details\")\n }\n\n tellorTest = await ethers.getContractAt(\"contracts/tellor3/Mocks/TellorTest.sol:TellorTest\", master.address)\n await tellorTest.connect(wallet).setBalanceTest(wallet.address, ethers.BigNumber.from(\"1000000000000000000000000\"))\n await master.connect(wallet).changeTellorContract(controller.address)\n tellorNew = await ethers.getContractAt(\"contracts/Controller.sol:Controller\", master.address)\n await tellorNew.connect(wallet).init()\n\n console.log(\"TellorX deployed! You have 1 million test TRB in your wallet.\")\n\n console.log('submitting extension contract for verification...');\n await run(\"verify:verify\",\n {\n address: extension.address,\n },\n )\n console.log(\"extension contract verified\")\n\n // Wait for few confirmed transactions.\n // Otherwise the etherscan api doesn't find the deployed contract.\n console.log('waiting for tx confirmation...');\n await controller.deployTransaction.wait(7)\n\n console.log('submitting contract for verification...');\n\n await run(\"verify:verify\",\n {\n address: controller.address,\n constructorArguments: [governance.address, oracle.address, treasury.address]\n },\n )\n console.log(\"Controller contract verified\")\n\n\n // Wait for few confirmed transactions.\n // Otherwise the etherscan api doesn't find the deployed contract.\n console.log('waiting for tellor tx confirmation...');\n await tellor.deployTransaction.wait(7)\n\n console.log('submitting tellor contract for verification...');\n await run(\"verify:verify\",\n {\n address: tellor.address,\n constructorArguments: [extension.address]\n },\n )\n console.log(\"tellor contract verified\")\n\n // Wait for few confirmed transactions.\n // Otherwise the etherscan api doesn't find the deployed contract.\n console.log('waiting for master tx confirmation...');\n await master.deployTransaction.wait(7)\n\n console.log('submitting master contract for verification...');\n await run(\"verify:verify\",\n {\n address: master.address,\n constructorArguments: [tellor.address, tellor.address]\n },\n )\n console.log(\"master contract verified\")\n\n // Wait for few confirmed transactions.\n // Otherwise the etherscan api doesn't find the deployed contract.\n console.log('waiting for governance tx confirmation...');\n await governance.deployTransaction.wait(7)\n\n console.log('submitting governance contract for verification...');\n await run(\"verify:verify\",\n {\n address: governance.address,\n constructorArguments: [master.address]\n },\n )\n console.log(\"governance contract verified\")\n\n // Wait for few confirmed transactions.\n // Otherwise the etherscan api doesn't find the deployed contract.\n console.log('waiting for treasury tx confirmation...');\n await treasury.deployTransaction.wait(7)\n\n console.log('submitting Treasury contract for verification...');\n\n await run(\"verify:verify\", {\n contract: \"contracts/testing/TestTreasury.sol:TestTreasury\",\n address: treasury.address,\n constructorArguments: [master.address]\n },\n )\n\n // Wait for few confirmed transactions.\n // Otherwise the etherscan api doesn't find the deployed contract.\n console.log('waiting for Oracle tx confirmation...');\n await oracle.deployTransaction.wait(7)\n\n console.log('submitting Oracle contract for verification...');\n\n await run(\"verify:verify\",\n {\n contract: \"contracts/testing/TestOracle.sol:TestOracle\",\n address: oracle.address,\n constructorArguments: [master.address]\n },\n )\n\n console.log(\"Oracle contract verified\")\n}", "async function deployContracts(deployer, network) {\n let saltAddr = this.contract.Salt;\n await deployer.deploy(SaltTrader, saltAddr);\n}", "_addVpcAfterDeploy(evt) {\n let _this = this;\n\n return new BbPromise(function(resolve, reject) {\n for(var region in evt.data.deployed) {\n _this._manageVpc(evt, region);\n }\n\n return resolve(evt);\n });\n }", "function MinipoolContract(web3, address, contract) {\n _classCallCheck(this, MinipoolContract);\n\n this.web3 = web3;\n this.address = address;\n this.contract = contract;\n }", "function generateBuildOptions(metadata, options) {\n const results = Object.assign({}, command_1.filterOptionsByIntent(metadata, options), command_1.filterOptionsByIntent(metadata, options, 'app-scripts'));\n // Serve specific options not related to the actual run or emulate code\n return Object.assign({}, results, { externalAddressRequired: true, iscordovaserve: true, nobrowser: true, target: 'cordova' });\n}", "connect(signerOrProvider) {\n if (typeof (signerOrProvider) === \"string\") {\n signerOrProvider = new __WEBPACK_IMPORTED_MODULE_2__ethersproject_abstract_signer__[\"b\" /* VoidSigner */](signerOrProvider, this.provider);\n }\n const contract = new (this.constructor)(this.address, this.interface, signerOrProvider);\n if (this.deployTransaction) {\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__ethersproject_properties__[\"a\" /* defineReadOnly */])(contract, \"deployTransaction\", this.deployTransaction);\n }\n return contract;\n }", "async function main() {\n const [deployer] = await ethers.getSigners();\n\n console.log(\"Deploying account:\", await deployer.getAddress());\n console.log(\n \"Deploying account balance:\",\n (await deployer.getBalance()).toString(),\n \"\\n\"\n );\n\n const NFTXV1Buyout = await ethers.getContractFactory(\"NFTXV1Buyout\");\n const v1Buyout = await upgrades.deployProxy(NFTXV1Buyout, [], {\n initializer: \"__NFTXV1Buyout_init\",\n });\n await v1Buyout.deployed();\n\n console.log(\"NFTXV1Buyout:\", v1Buyout.address);\n\n const ProxyController = await ethers.getContractFactory(\n \"ProxyControllerSimple\"\n );\n\n const proxyController = await ProxyController.deploy(v1Buyout.address);\n await proxyController.deployed();\n console.log(\"ProxyController address:\", proxyController.address);\n\n console.log(\"\\nUpdating proxy admin...\");\n\n await upgrades.admin.changeProxyAdmin(\n v1Buyout.address,\n proxyController.address\n );\n\n console.log(\"Fetching implementation addresses...\");\n\n await proxyController.fetchImplAddress({\n gasLimit: \"150000\",\n });\n\n console.log(\"Implementation address:\", await proxyController.impl());\n\n console.log(\"Transfering ownerships...\");\n await v1Buyout.transferOwnership(founderAddress);\n await proxyController.transferOwnership(founderAddress);\n\n console.log(\"\");\n}", "function applyClientOptions(event, options) {\n const { environment, release, dist, maxValueLength = 250 } = options;\n\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : 'production';\n }\n\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n\n if (event.message) {\n event.message = truncate(event.message, maxValueLength);\n }\n\n const exception = event.exception && event.exception.values && event.exception.values[0];\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n\n const request = event.request;\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n }", "async function main() {\n \n // const url = \"https://eth-ropsten.alchemyapi.io/v2/124IV9lnccOe5WGemFFqps7iLpzbCuT8\";\n // const web3 = new Web3(url);\n // const { address } = await web3.eth.accounts.privateKeyToAccount('0xbffa6ced3da1080e210f2a11c8c4c4b10e60fe3a0db3bf5f60260aea162a4d97');\n // console.log(\n // \"Deploying contracts with the account:\", \n // address\n // );\n // const contract = new web3.eth.Contract(NFT.abi);\n // const deployment = contract.deploy({\n // data: NFT.bytecode,\n // });\n // const gas = await deployment.estimateGas();\n\n // const signTransaction = new web3.eth.accounts.signTransaction({\n // data: NFT.bytecode,\n // from: address,\n // gas: gas,\n // gasPrice:'0x02540be400',\n // }, '0xbffa6ced3da1080e210f2a11c8c4c4b10e60fe3a0db3bf5f60260aea162a4d97');\n \n // const {\n // options: { address: contractAddress },\n // } = await web3.deployment.send({ from:address, gas:gas }); \n // const nftContract = new web3.eth.Contract(NFT.abi, contractAddress);\n // console.log(\"NFT Contract Address:\", nftContract.address);\n // console.log(nftContract); \n \n \n\n const [deployer] = await ethers.getSigners();\n\n console.log(\n \"Deploying contracts with the account:\",\n deployer.address\n );\n \n console.log(\"Account balance:\", (await deployer.getBalance()).toString());\n\n const nftContract = await ethers.getContractFactory(\"NFT\");\n const myContract = await nftContract.deploy();\n\n console.log(\"Contract address:\", myContract.address);\n}", "function deploy(cmd = '', files = []) {\n if (!['upload', 'replace'].includes(cmd)) {\n throw new Error(\n 'shopify-deploy.deploy() first argument must be either \"upload\", \"replace\"'\n );\n }\n\n deploying = true;\n\n return new Promise((resolve, reject) => {\n themekit(\n {\n args: [\n 'configure',\n ..._generateConfigFlags(),\n ..._generateIgnoreFlags(),\n ],\n cwd: config.paths.dist,\n },\n () => {\n themekit(\n {\n args: [\n cmd,\n '--no-update-notifier',\n ..._generateConfigFlags(),\n ...files,\n ],\n cwd: config.paths.dist,\n },\n err => {\n deploying = false;\n\n if (err) {\n reject(err);\n } else {\n resolve();\n }\n }\n );\n }\n );\n })\n .then(() => {\n deploying = false;\n return maybeDeploy();\n })\n .catch(err => {\n deploying = false;\n console.error(err);\n return maybeDeploy();\n });\n}", "async function run({ dest }) {\n let deployInfo = { host: void 0, src: projectRoot, dest };\n\n // See if the parameters are available in the local json file\n if (fs.existsSync(path.resolve(\"deployqa.local.json\"))) {\n const local = fs.readJSONSync(path.resolve(\"deployqa.local.json\"));\n deployInfo = {\n ...deployInfo,\n ...local,\n };\n }\n\n const questions = [\n deployInfo.host\n ? Array.isArray(deployInfo.host)\n ? {\n type: \"autocomplete\",\n name: \"host\",\n message: \"What host should be deployed to?\",\n limit: 10,\n choices: deployInfo.host,\n }\n : void 0\n : {\n type: \"input\",\n name: \"host\",\n message: \"What host should be deployed to?\",\n },\n deployInfo.dest\n ? void 0\n : {\n type: \"input\",\n name: \"dest\",\n message: \"What host folder should be deployed to?\",\n },\n ].filter((d) => d !== void 0);\n\n if (questions.length > 0) {\n answers = await prompt(questions);\n deployInfo = {\n ...deployInfo,\n ...answers,\n };\n }\n\n deployInfo.src =\n path.resolve(deployInfo.src) + (deployInfo.src.endsWith(\"/\") ? \"/\" : \"\");\n\n console.log(\"Deploy Target:\\n\", deployInfo);\n\n await sync(deployInfo);\n await updateRemote(deployInfo);\n}", "_applyClientOptions(event) {\n\t const options = this.getOptions();\n\t const { environment, release, dist, maxValueLength = 250 } = options;\n\n\t if (!('environment' in event)) {\n\t event.environment = 'environment' in options ? environment : 'production';\n\t }\n\n\t if (event.release === undefined && release !== undefined) {\n\t event.release = release;\n\t }\n\n\t if (event.dist === undefined && dist !== undefined) {\n\t event.dist = dist;\n\t }\n\n\t if (event.message) {\n\t event.message = truncate(event.message, maxValueLength);\n\t }\n\n\t const exception = event.exception && event.exception.values && event.exception.values[0];\n\t if (exception && exception.value) {\n\t exception.value = truncate(exception.value, maxValueLength);\n\t }\n\n\t const request = event.request;\n\t if (request && request.url) {\n\t request.url = truncate(request.url, maxValueLength);\n\t }\n\t }", "function NodeSettings(web3, contracts) {\n _classCallCheck(this, NodeSettings);\n\n this.web3 = web3;\n this.contracts = contracts;\n }", "_applyClientOptions(event) {\n const options = this.getOptions();\n const { environment, release, dist, maxValueLength = 250 } = options;\n\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : 'production';\n }\n\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n\n if (event.message) {\n event.message = utils.truncate(event.message, maxValueLength);\n }\n\n const exception = event.exception && event.exception.values && event.exception.values[0];\n if (exception && exception.value) {\n exception.value = utils.truncate(exception.value, maxValueLength);\n }\n\n const request = event.request;\n if (request && request.url) {\n request.url = utils.truncate(request.url, maxValueLength);\n }\n }", "mergeOptions() {\n\t\tthis.config = _.defaultsDeep(this.configFile, ServiceBroker.defaultOptions);\n\n\t\tthis.config = this.overwriteFromEnv(this.config);\n\n\t\tif (this.flags.silent) this.config.logger = false;\n\n\t\tif (this.flags.hot) this.config.hotReload = true;\n\n\t\t// console.log(\"Merged configuration\", this.config);\n\t}", "async function surgeDeploy() {\n await spawn(\n 'surge',\n [configProd.deploy.src, `--domain=https://${configProd.deploy.domain}`],\n { stdio: 'inherit' }\n );\n}", "constructor(...args) {\n super(...args);\n\n this.argument('project-name', {\n type: String,\n required: false,\n });\n\n this.option('path', {\n type: String,\n desc: 'Path for the html project',\n defaults: './',\n });\n\n this.option('src-path', {\n type: String,\n desc: 'Path for source',\n defaults: './src',\n });\n\n this.option('tmp-path', {\n type: String,\n desc: 'Path for temp files',\n defaults: './.tmp',\n });\n\n this.option('dest-path', {\n type: String,\n desc: 'Path for build',\n defaults: './dist',\n });\n\n this.option('js-path', {\n type: String,\n desc: 'Path for the javascript',\n defaults: '',\n });\n\n this.option('css-path', {\n type: String,\n desc: 'Path for the css',\n defaults: 'css',\n });\n\n this.option('scss-path', {\n type: String,\n desc: 'Path for the scss',\n defaults: 'styles',\n });\n\n this.option('images-path', {\n type: String,\n desc: 'Path for the images',\n defaults: 'img',\n });\n\n this.option('build-path', {\n type: String,\n desc: 'Path for the build tools',\n defaults: 'build',\n });\n\n this.option('server', {\n type: Boolean,\n defaults: false,\n desc: 'Add a node.js server',\n });\n\n this.option('server-path', {\n type: String,\n desc: 'Path for the node.js server',\n });\n }", "_validateAndPrepare() {\n let names = this.evt.options.names || [];\n let endpoints = [];\n let project = S.getProject();\n let stage = this.evt.options.stage;\n let region = project.getRegion(stage, this.evt.options.region);\n let variables = region.getVariables();\n let restApi = variables['apiGatewayApi'] || project.name;\n\n // Set defaults\n this.evt.options.names = names;\n let mode = this.evt.options.mode || 'merge';\n if (mode !== 'merge' && mode !== 'overwrite') {\n return BbPromise.reject(new Error('Unknown mode \\'' + mode + '\\''));\n }\n this.evt.options.mode = this.evt.options.mode || 'merge';\n\n this.project = project;\n this.provider = S.getProvider();\n this.restApiName = restApi;\n\n /*// Prepare endpoints\n if (this.evt.options.all) {\n endpoints = project.getAllEndpoints();\n }\n else if (names.length) {\n endpoints = project.getEndpointsByNames(names);\n }\n else if (S.cli) {\n let functionsByCwd = SUtils.getFunctionsByCwd(project.getAllFunctions());\n functionsByCwd.forEach((func) => {\n func.getAllEndpoints().forEach((endpoint) => endpoints.push(endpoint));\n });\n }\n\n if (endpoints.length === 0) {\n throw new SError('You don\\'t have any endpoints in your project');\n }\n\n // Reduce collected endpoints to endpoint names\n this.endpoints = this.endpoints.map((e) => e.getName());\n\n // Validate Stage\n if (!this.evt.options.stage) {\n throw new SError('Stage is required');\n }*/\n\n return BbPromise.resolve();\n }", "applyOptions(options) {\n Object.assign(this[$options], options);\n // Re-evaluates clamping based on potentially new values for min/max\n // polar, azimuth and radius:\n this.setOrbit();\n // Prevent interpolation in the case that any target spherical values\n // changed (preserving OrbitalControls behavior):\n this[$spherical].copy(this[$targetSpherical]);\n }", "function prepareOptions(options){\n\n\n //if options isnt instance of GeneralOptions\n if (!(options instanceof GeneralOptions)) {\n \n\n //var generalOptions = new GeneralOptions\n var generalOptions = new GeneralOptions();\n //for each own property key,value in options\n var value=undefined;\n for ( var key in options)if (options.hasOwnProperty(key)){value=options[key];\n {\n //generalOptions.setProperty key, value\n generalOptions.setProperty(key, value);\n }\n \n }// end for each property\n //end for\n //options = generalOptions\n \n //options = generalOptions\n options = generalOptions;\n };\n\n\n //options.version = version\n options.version = module.exports.version;\n\n //return options\n return options;\n }", "connect(signerOrProvider) {\n if (typeof (signerOrProvider) === \"string\") {\n signerOrProvider = new abstract_signer_lib_esm[\"b\" /* VoidSigner */](signerOrProvider, this.provider);\n }\n const contract = new (this.constructor)(this.address, this.interface, signerOrProvider);\n if (this.deployTransaction) {\n Object(properties_lib_esm[\"d\" /* defineReadOnly */])(contract, \"deployTransaction\", this.deployTransaction);\n }\n return contract;\n }", "constructor(args, opts) {\n super(args, opts);\n\n this.projectTypes = [\n 'java',\n 'java-akka-actor',\n 'java-ee',\n 'java-ee-cdi-full-multi-project',\n 'java-ee-ejb-full-multi-project',\n 'java-ee-faces',\n 'java-ee-thymeleaf',\n 'java-parent-multi-project',\n 'java-payara-micro',\n 'java-spring-boot',\n 'java-spring-boot-2.0.x',\n 'java-spring-boot-1.x',\n 'java-spring-cloud-function-web',\n 'java-vertx',\n 'java-thorntail',\n 'java-wildfly-swarm',\n 'kotlin',\n 'kotlin-parent-multi-project',\n 'kotlin-spring-boot',\n 'kotlin-spring-boot-2.0.x',\n 'kotlin-spring-boot-1.x',\n 'kotlin-spring-cloud-function-web',\n 'kotlin-vertx',\n 'kotlin-thorntail',\n 'kotlin-wildfly-swarm',\n 'kotlin-ee',\n 'scala',\n 'scala-2.11',\n 'scala-gradle-akka-actor',\n 'scala-gradle-akka-persistence',\n 'scala-sbt',\n 'scala-sbt-akka-actor',\n ];\n\n this.props = {\n projectDirectory: _defaultProjectName,\n projectType: _defaultProjectType,\n };\n\n this.option('name', {\n alias: 'n',\n hide: false,\n type: String,\n required: false,\n desc: `Name of project directory / application name.\n # Will be prompted if no values was specify.\n # Non alphanumeric symbols of project directory will be replaced with hyphen.`,\n default: undefined,\n });\n\n this.option('type', {\n alias: 't',\n hide: false,\n type: String,\n required: false,\n desc: `Project type.\n # Will be prompted if no values was specify. \n # Possible values are:\n ` + this.projectTypes.join(`\\n `),\n default: undefined,\n });\n\n this.prompts = [];\n\n const name = this.options['name'];\n const type = this.options['type'];\n const typeOptionFound = !!type && this.projectTypes\n .indexOf(type.trim().toLowerCase()) !== -1;\n\n if (typeOptionFound) this.props.projectType = type;\n else this.prompts.push({\n type: 'list',\n name: 'projectType',\n message: 'What kind of project do you wanna build today, my friend?',\n choices: this.projectTypes,\n default: _defaultProjectType,\n });\n\n if (!!name) this.props.projectDirectory = name;\n else if (typeOptionFound) this.props.projectDirectory = _defaultProjectName;\n else this.prompts.push({\n type: 'input',\n name: 'projectDirectory',\n message: 'Enter application project directory name',\n default: _defaultProjectName\n });\n }", "async function deployRs(deployer, network) {\n let reserveToken = \"0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8\";\n let uniswap_factory = \"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f\";\n await deployer.deploy(TIMETRAVELReserves, reserveToken, TIMETRAVELProxy.address);\n await deployer.deploy(TIMETRAVELRebaser,\n TIMETRAVELProxy.address,\n reserveToken,\n uniswap_factory,\n TIMETRAVELReserves.address\n );\n let rebase = new web3.eth.Contract(TIMETRAVELRebaser.abi, TIMETRAVELRebaser.address);\n\n let pair = await rebase.methods.uniswap_pair().call();\n console.log(pair)\n let timetravel = await TIMETRAVELProxy.deployed();\n await timetravel._setRebaser(TIMETRAVELRebaser.address);\n let reserves = await TIMETRAVELReserves.deployed();\n await reserves._setRebaser(TIMETRAVELRebaser.address)\n}", "function processStaging(options, result) {\n result.body = {};\n result.body['product'] = result.product;\n result.body['apis'] = [];\n for (var prop in result.apis) {\n // if api is not wsdl type push to result\n if (result.apis[prop]['x-ibm-configuration'] === undefined ||\n result.apis[prop]['x-ibm-configuration'].type === undefined ||\n result.apis[prop]['x-ibm-configuration'].type !== 'wsdl') {\n result.body['apis'].push(result.apis[prop]);\n }\n }\n\n return wsdlUpload(options, result).then(function() {\n return deploy(options, result);\n });\n}", "async function deployToken(deployer, network, accounts) {\n let gas_price = 1000000000;\n let fromAccount = accounts[0];\n\n await deployer.deploy(comptroller);\n await deployer.deploy(proxyObj);\n\n let comptrollerAddress = comptroller.address;\n let proxyAddress = proxyObj.address;\n \n let contract_comptroller = new web3.eth.Contract(comptroller.abi, comptrollerAddress);\n let contract_proxy = new web3.eth.Contract(proxyObj.abi, proxyAddress);\n\n await Promise.all([\n contract_proxy.methods._setPendingImplementation(comptrollerAddress).send({ from: fromAccount, gasPrice: gas_price, gas: 100000}, function(err, txId) {\n if (err != null) {\n console.log(\"_setPendingImplementation error: \" + err);\n }\n console.log(\"_setPendingImplementation txid: \"+txId);\n }),\n\n contract_comptroller.methods._become(proxyAddress).send({ from: fromAccount, gasPrice: gas_price, gas: 100000}, function(err, txId) {\n if (err != null) {\n console.log(\"_become error: \" + err);\n }\n console.log(\"_become txid: \"+txId);\n }),\n\n ]);\n}", "createDeployment (context, deploy) {\n const deployment = ApiGateway.toDeployment(deploy)\n deployment.environment = deploy.namespace\n return context.github.repos.createDeployment(deployment)\n }", "bind(scope, stage, options) {\n var _b, _c, _d, _e, _f;\n const inputs = new Array();\n inputs.push(...(_b = this.props.additionalArtifacts) !== null && _b !== void 0 ? _b : []);\n const envVarCommands = new Array();\n const bashOptions = (_c = this.props.bashOptions) !== null && _c !== void 0 ? _c : '-eu';\n if (bashOptions) {\n envVarCommands.push(`set ${bashOptions}`);\n }\n for (const [varName, output] of Object.entries((_d = this.props.useOutputs) !== null && _d !== void 0 ? _d : {})) {\n const outputArtifact = output.artifactFile;\n // Add the artifact to the list of inputs, if it's not in there already. Determine\n // the location where CodeBuild is going to stick it based on whether it's the first (primary)\n // input or an 'extra input', then parse.\n let artifactIndex = inputs.findIndex(a => a.artifactName === outputArtifact.artifact.artifactName);\n if (artifactIndex === -1) {\n artifactIndex = inputs.push(outputArtifact.artifact) - 1;\n }\n const dirEnv = artifactIndex === 0 ? 'CODEBUILD_SRC_DIR' : `CODEBUILD_SRC_DIR_${outputArtifact.artifact.artifactName}`;\n envVarCommands.push(`export ${varName}=\"$(node -pe 'require(process.env.${dirEnv} + \"/${outputArtifact.fileName}\")[\"${output.outputName}\"]')\"`);\n }\n this._project = new codebuild.PipelineProject(scope, 'Project', {\n environment: this.props.environment || { buildImage: codebuild.LinuxBuildImage.STANDARD_5_0 },\n vpc: this.props.vpc,\n securityGroups: this.props.securityGroups,\n subnetSelection: this.props.subnetSelection,\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: [\n ...envVarCommands,\n ...this.props.commands,\n ],\n },\n },\n }),\n });\n for (const statement of (_e = this.props.rolePolicyStatements) !== null && _e !== void 0 ? _e : []) {\n this._project.addToRolePolicy(statement);\n }\n this._action = new codepipeline_actions.CodeBuildAction({\n actionName: this.props.actionName,\n input: inputs[0],\n extraInputs: inputs.slice(1),\n runOrder: (_f = this.props.runOrder) !== null && _f !== void 0 ? _f : 100,\n project: this._project,\n environmentVariables: this.props.environmentVariables,\n });\n // Replace the placeholder actionProperties at the last minute\n this._actionProperties = this._action.actionProperties;\n return this._action.bind(scope, stage, options);\n }", "constructor(_options = {}, _baseUrl = \"\", _runtime = DefaultRuntime) {\n this._options = _options;\n this._baseUrl = _baseUrl;\n this._runtime = _runtime;\n }", "function populateInstanceComputableOptions(options){$.each(instanceComputableOptions,function(name,func){if(options[name]==null){options[name]=func(options);}});}", "_configure() {\n super._configure();\n Object.assign(this.path, {\n root: 'dist',\n 'package-a': TargetConfigA.packagePath,\n });\n Object.assign(this, { // dependent on this.path\n });\n }", "function init_environ() {\n //my_log(\"Here here: initing environ\");\n var pw = page_worker.Page({\n\t contentScriptFile: [\n\t\t\t\tdata.url(\"thirdparty/voodoo1/voodoo.js\"),\n\t\t\t\tdata.url(\"get_environ.js\")\n\t\t\t\t]\n\t});\n \n pw.port.on(\"got_environ\", function(rc) {\n\t environ = object.extend(environ, rc);\n\t my_log(\"Here here: callback for pg worker, voodoo: \" + JSON.stringify(environ), new Error);\n\t pw.destroy();\n\t \n\t // BIG EXECUTION START\n\t vault_read();\n\t vault_init();\n\t});\n}", "modifyDeployment(inline) {\n const localVarPath = this.basePath + '/deployments/configuration';\n const queryParameters = {};\n const headerParams = Object.assign({}, this.defaultHeaders);\n const fd = new FormData();\n // verify required parameter 'inline' is not null or undefined\n if (inline === null || inline === undefined) {\n throw new Error('Required parameter inline was null or undefined \\\n when calling modifyDeployment.');\n }\n if (!this.isNode()) {\n // Browsers need to transform the content from a string to a Blob\n inline = new Blob([inline]);\n }\n fd.append('inline', inline, 'Manifest.json');\n const requestOptions = {\n data: fd,\n headers: headerParams,\n method: 'PUT',\n params: queryParameters,\n url: localVarPath\n };\n if (this.isNode()) {\n requestOptions.headers = fd.getHeaders();\n }\n this.authentications.apiAuthorization.applyToRequest(requestOptions);\n this.authentications.default.applyToRequest(requestOptions);\n const deferred = new __1.Deferred();\n axios_1.default(requestOptions)\n .then((response) => {\n if (response.status >= 200 && response.status <= 299) {\n deferred.resolve(response.data || true);\n }\n else {\n deferred.reject(response);\n }\n })\n .catch((reason) => {\n deferred.reject(reason);\n });\n return deferred.promise;\n }", "function setupDeployVMDialog(){\n\n dialogs_context.append('<div id=\"deploy_vm_dialog\"></div>');\n //Insert HTML in place\n $deploy_vm_dialog = $('#deploy_vm_dialog')\n var dialog = $deploy_vm_dialog;\n dialog.html(deploy_vm_tmpl);\n dialog.addClass(\"reveal-modal large max-height\").attr(\"data-reveal\", \"\");\n\n setupHostTableSelect(dialog, \"deploy_vm\");\n\n // Show system DS only\n setupDatastoreTableSelect(dialog, \"deploy_vm_ds\",\n { filter_fn: function(ds){ return ds.TYPE == 1; } }\n );\n\n $('#refresh_button_deploy_vm', dialog).click();\n $('#refresh_button_deploy_vm_ds', dialog).click();\n\n $('#advanced_deploy', dialog).hide();\n $('#advanced_toggle',dialog).click(function(){\n $('#advanced_deploy',dialog).toggle();\n return false;\n });\n\n setupTips(dialog);\n\n $('#deploy_vm_form',dialog).submit(function(){\n var extra_info = {};\n\n if ($(\"#selected_resource_id_deploy_vm\", dialog).val()) {\n extra_info['host_id'] = $(\"#selected_resource_id_deploy_vm\", dialog).val();\n } else {\n notifyError(tr(\"You have not selected a host\"));\n return false;\n }\n\n extra_info['ds_id'] = $(\"#selected_resource_id_deploy_vm_ds\", dialog).val() || -1\n extra_info['enforce'] = $(\"#enforce\", this).is(\":checked\") ? true : false\n\n //notifySubmit(\"Template.instantiate\",template_id, extra_msg);\n\n $.each(getSelectedNodes(dataTable_vMachines), function(index, elem) {\n Sunstone.runAction(\"VM.deploy_action\", elem, extra_info);\n });\n\n $deploy_vm_dialog.foundation('reveal', 'close')\n return false;\n });\n}", "constructor(args, opts) {\n super(args, opts);\n\n console.log(args);\n // Cconsole.log(opts);\n /**\n * Set option skip welcome message\n */\n this.option('skip-welcome-msg', {\n desc: 'Skips the welcome message',\n type: Boolean\n });\n\n /**\n * Set option skip install message\n */\n this.option('skip-install-msg', {\n desc: 'Skips the message after the installation of dependencies',\n type: Boolean\n });\n\n /**\n * Set option use feature for jquery or bootstrap\n */\n this.option('use-feature', {\n desc: 'Includes bootstrap or jquery: bs-reset, bs-grid, bs-modules, jquery or none',\n type: String\n });\n\n /**\n * Set option use velocity\n */\n this.option('use-velocity', {\n desc: 'Includes velocity',\n type: Boolean\n });\n\n /**\n * Set option use vrt (visual regression testing)\n */\n this.option('use-vrt', {\n desc: 'Includes a tool for Visual Regression Testing',\n type: Boolean\n });\n }", "async beforeRun() {\n this._super.apply(this, arguments);\n\n // try to read global options from `config/crowdin.js`\n let configOptions = {};\n let module = path.join(this.project.root, 'config', 'crowdin');\n\n try {\n configOptions = require(module);\n if (typeof configOptions === 'function') {\n configOptions = configOptions();\n }\n } catch (e) {\n // do nothing, ignore the config\n }\n\n // For all options that are specified in config/crowdin.js, set the value there to be the actual default value\n this.availableOptions.map((option) => {\n let normalizedName = stringUtil.camelize(option.name);\n let configOption = configOptions[normalizedName];\n\n if (configOption !== undefined) {\n option.default = configOption;\n return option;\n }\n\n return option;\n });\n\n await this._createTmpFolder(this._getTmpDir());\n }", "async function deployUSDxContracts() {\n accounts = await web3.eth.getAccounts();\n let collaterals = new Array(\"PAX\", \"TUSD\", \"USDC\");\n var weights = new Array(1, 1, 8);\n return await USDxV2deploy.contractsDeploy(accounts, collaterals, weights);\n}", "constructor() {\n this._contractInstance = undefined;\n\n if (typeof web3 !== 'undefined') {\n web3 = new Web3(web3.currentProvider);\n } else {\n let url = `http://${ blockchainConfig.host }:${ blockchainConfig.port }`;\n web3 = new Web3(new Web3.providers.HttpProvider(url));\n }\n }", "function deployProxyAndDependencies(proxyDir, options){\n const mvn = require('maven').create({\n debug: true,\n cwd: '.',\n profiles: [options.env],\n debug: false\n });\n\n var mvnArgs = {\n 'username': options.username,\n 'password': options.password,\n 'org': options.org,\n 'options': 'update',\n 'apigee.config.options': 'update'\n };\n mvn.execute(['clean', 'install'], mvnArgs).then(() => {\n console.log(proxyDir+ ' successfully configured!');\n setKVMSecret(options);\n });\n}", "deploymentsPost(inline) {\n const localVarPath = this.basePath + '/deployments';\n const queryParameters = {};\n const headerParams = Object.assign({}, this.defaultHeaders);\n const fd = new FormData();\n // verify required parameter 'inline' is not null or undefined\n if (inline === null || inline === undefined) {\n throw new Error('Required parameter inline was null or undefined \\\n when calling deploymentsPost.');\n }\n if (inline !== undefined) {\n fd.append('inline', inline, 'Manifest.json');\n }\n const requestOptions = {\n data: fd,\n headers: headerParams,\n method: 'POST',\n params: queryParameters,\n url: localVarPath\n };\n if (this.isNode()) {\n requestOptions.headers = fd.getHeaders();\n // console.log('Headers', requestOptions.headers)\n }\n this.authentications.apiAuthorization.applyToRequest(requestOptions);\n this.authentications.default.applyToRequest(requestOptions);\n const deferred = new __1.Deferred();\n axios_1.default(requestOptions)\n .then((response) => {\n if (response.status >= 200 && response.status <= 299) {\n deferred.resolve(response.data);\n }\n else {\n deferred.reject(response);\n }\n })\n .catch((reason) => {\n deferred.reject(reason);\n });\n return deferred.promise;\n }", "function Contract(contract) {\n var instance = this;\n var constructor = instance.constructor;\n\n // Disambiguate between .at() and .new()\n if (typeof contract === \"string\") {\n var web3Instance = new constructor.web3.eth.Contract(constructor.abi);\n web3Instance.options.address = contract;\n contract = web3Instance;\n }\n\n // Core:\n instance.methods = {};\n instance.abi = constructor.abi;\n instance.address = contract.options.address;\n instance.transactionHash = contract.transactionHash;\n instance.contract = contract;\n\n //for stacktracing in tests\n if (constructor.debugger) {\n instance.debugger = constructor.debugger;\n }\n\n // User defined methods, overloaded methods, events\n instance.abi.forEach(function (item) {\n switch (item.type) {\n case \"function\":\n var isConstant =\n [\"pure\", \"view\"].includes(item.stateMutability) || item.constant; // new form // deprecated case\n\n var signature = webUtils._jsonInterfaceMethodToString(item);\n\n var method = function (constant, web3Method) {\n var fn;\n\n constant\n ? (fn = execute.call.call(\n constructor,\n web3Method,\n item,\n instance.address\n ))\n : (fn = execute.send.call(\n constructor,\n web3Method,\n item,\n instance.address\n ));\n\n fn.call = execute.call.call(\n constructor,\n web3Method,\n item,\n instance.address\n );\n fn.sendTransaction = execute.send.call(\n constructor,\n web3Method,\n item,\n instance.address\n );\n fn.estimateGas = execute.estimate.call(\n constructor,\n web3Method,\n item,\n instance.address\n );\n fn.request = execute.request.call(\n constructor,\n web3Method,\n item,\n instance.address\n );\n\n return fn;\n };\n\n // Only define methods once. Any overloaded methods will have all their\n // accessors available by ABI signature available on the `methods` key below.\n if (instance[item.name] === undefined) {\n instance[item.name] = method(\n isConstant,\n contract.methods[item.name]\n );\n }\n\n // Overloaded methods should be invoked via the .methods property\n instance.methods[signature] = method(\n isConstant,\n contract.methods[signature]\n );\n break;\n\n case \"event\":\n instance[item.name] = execute.event.call(\n constructor,\n contract.events[item.name]\n );\n break;\n }\n });\n\n // sendTransaction / send\n instance.sendTransaction = execute.send.call(\n constructor,\n null,\n null,\n instance.address\n );\n\n // Prefer user defined `send`\n if (!instance.send) {\n instance.send = (value, txParams = {}) => {\n const packet = Object.assign({value: value}, txParams);\n return instance.sendTransaction(packet);\n };\n }\n\n // Other events\n instance.allEvents = execute.allEvents.call(constructor, contract);\n instance.getPastEvents = execute.getPastEvents.call(constructor, contract);\n }", "async function deploy (logger, nextRelease) {\n logger.log('Deploying version %s with maven', nextRelease.version)\n try {\n const command = await findCommand()\n await exec(\n command,\n ['deploy', '-DskipTests', '--settings', 'maven-settings.xml']\n )\n } catch (e) {\n logger.error('failed to deploy to maven')\n logger.error(e)\n throw getError('EMAVENDEPLOY')\n }\n}", "function isDeployable() {\n return deploymentReqs.length == 0;\n }", "_functionDeploy(functionNames)\n\t\t{\n\t\t\tlet _this = this;\n\n\t\t\t// Options for functionDeploy().\n\t\t\tlet options =\n\t\t\t{\n\t\t\t\t\"names\": functionNames,\n\t\t\t\t\"stage\": _this.evt.options.stage,\n\t\t\t\t\"region\": _this.evt.options.region\n\t\t\t};\n\n\t\t\treturn S.actions.functionDeploy(\n\t\t\t{\n\t\t\t\t\"options\": options\n\t\t\t});\n\t\t}", "async function deployToAllNetworks() {\n await Promise.all(\n networks.map(async network => {\n try {\n await shell(`truffle exec ${deployPath} --network ${network}`);\n } catch (e) {\n console.error(`Error deploying on network ${network}: ${e.stack}`);\n }\n })\n );\n}", "function applyClientOptions(event, options) {\n const { environment, release, dist, maxValueLength = 250 } = options;\n\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : DEFAULT_ENVIRONMENT;\n }\n\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n\n if (event.message) {\n event.message = truncate(event.message, maxValueLength);\n }\n\n const exception = event.exception && event.exception.values && event.exception.values[0];\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n\n const request = event.request;\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n}", "deployGet(incomingOptions, cb) {\n const Rollbar = require('./dist');\n\n let apiInstance = new Rollbar.DefaultApi(); // String | Use a project access token with 'read' scope\n /*let xRollbarAccessToken = \"xRollbarAccessToken_example\";*/ apiInstance.deployGet(\n incomingOptions.xRollbarAccessToken,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data.result, response);\n }\n }\n );\n }", "function deploySingle(contractName){\n return `\n const A = artifacts.require(\"${contractName}\");\n module.exports = function(deployer) { deployer.deploy(A) };\n `;\n}", "configure () {\n return Promise.all([\n lib.ProxyCart.configure(this.app),\n lib.ProxyCart.addPolicies(this.app),\n lib.ProxyCart.addRoutes(this.app),\n lib.ProxyCart.resolveGenerics(this.app),\n lib.ProxyCart.copyDefaults(this.app),\n lib.ProxyCart.addCrons(this.app),\n lib.ProxyCart.addEvents(this.app),\n lib.ProxyCart.addTasks(this.app)\n ])\n }", "async function main() {\r\n const MyNFT = await ethers.getContractFactory(\"Gear\")\r\n\r\n // Start deployment, returning a promise that resolves to a contract object\r\n const myNFT = await MyNFT.deploy()\r\n console.log(\"Contract deployed to address:\", myNFT.address)\r\n}", "async function setupAllContracts(versionDetails) {\n let deployedContracts = [];\n\n // Get EPNS ($PUSH) instance first\n const contractArtifactsEPNS = await ethers.getContractFactory(\"EPNS\")\n const PushToken = await contractArtifactsEPNS.attach(versionDetails.deploy.args.pushTokenAddress)\n\n // Get Community Vault instance first\n const contractArtifactsCommunityVault = await ethers.getContractFactory(\"CommunityVault\")\n const CommunityVault = await contractArtifactsCommunityVault.attach(versionDetails.deploy.args.communityVaultAddress)\n\n // Deploy Staking Contract\n StakingInstance = await setupStakingContract(PushToken, CommunityVault, deployedContracts, versionDetails)\n\n // Deploy and Setup LP Rewards Contracts\n deployedContracts = await setupLPRewards(PushToken, StakingInstance, CommunityVault, deployedContracts, versionDetails)\n\n // Deploy and Setup EPNS Staking Contracts\n deployedContracts = await setupEPNSStaking(PushToken, StakingInstance, CommunityVault, deployedContracts, versionDetails)\n\n // Lastly transfer ownership of community reservoir contract\n console.log(chalk.bgBlue.white(`Changing CommunityVault ownership to eventual owner`))\n\n const txCommunityVault = await CommunityVault.transferOwnership(META_INFO.multisigOwnerEventual)\n\n console.log(chalk.bgBlack.white(`Transaction hash:`), chalk.gray(`${txCommunityVault.hash}`))\n console.log(chalk.bgBlack.white(`Transaction etherscan:`), chalk.gray(`https://${hre.network.name}.etherscan.io/tx/${txCommunityVault.hash}`))\n\n // return deployed contracts\n return deployedContracts;\n}", "function target(path, projecttype, buildtype, buildarchs, buildtarget) {\n if (projecttype != \"phone\"){\n Log('ERROR: not supported yet', true);\n Log('DEPLOY FAILED.', true);\n WScript.Quit(2);\n } else {\n // We're deploying package on phone device/emulator\n // Let's find target specified by script arguments\n var cmd = APP_DEPLOY_UTILS + ' /enumeratedevices';\n var out = wscript_shell.Exec(cmd);\n while(out.Status === 0) {\n WScript.Sleep(100);\n }\n if (!out.StdErr.AtEndOfStream) {\n var error = out.StdErr.ReadAll();\n Log(\"ERROR: Error calling AppDeploy : \", true);\n Log(error, true);\n WScript.Quit(2);\n }\n else {\n if (!out.StdOut.AtEndOfStream) {\n // get output from AppDeployCmd\n var lines = out.StdOut.ReadAll().split('\\r\\n');\n // regular expression, that matches with AppDeploy /enumeratedevices output\n // e.g. ' 1 Emulator 8.1 WVGA 4 inch 512MB'\n var deviceRe = /^\\s?(\\d)+\\s+(.*)$/;\n // iterate over lines\n for (var line in lines){\n var deviceMatch = lines[line].match(deviceRe);\n // check that line contains device id and name\n // and match with 'target' parameter of script\n if (deviceMatch && deviceMatch[1] == buildtarget) {\n // start deploy to target specified\n var appxFolder = getPackage(path, projecttype, buildtype, buildarchs);\n var appxPath = appxFolder + '\\\\' + fso.GetFolder(appxFolder).Name.split('_Test').join('') + '.appx';\n Log('Deploying to target with id: ' + buildtarget);\n deployWindowsPhone(appxPath, deviceMatch[1]);\n return;\n }\n }\n Log('Error : target ' + buildtarget + ' was not found.', true);\n Log('DEPLOY FAILED.', true);\n WScript.Quit(2);\n }\n else {\n Log('Error : CordovaDeploy Failed to find any devices', true);\n Log('DEPLOY FAILED.', true);\n WScript.Quit(2);\n }\n }\n }\n}", "async _initializeVars() {\n const oThis = this;\n\n switch (oThis.chainKind) {\n case coreConstants.originChainKind:\n oThis.chainId = oThis._configStrategyObject.originChainId;\n oThis.associatedAuxChainId = 0;\n oThis.deployerKind = chainAddressConstants.originDeployerKind;\n oThis.mppLibContractKind = chainAddressConstants.originMppLibContractKind;\n\n let gasPriceCacheObj = new gasPriceCacheKlass(),\n gasPriceRsp = await gasPriceCacheObj.fetch();\n oThis.gasPrice = gasPriceRsp.data;\n break;\n case coreConstants.auxChainKind:\n oThis.chainId = oThis._configStrategyObject.auxChainId;\n oThis.auxChainId = oThis._configStrategyObject.auxChainId;\n oThis.associatedAuxChainId = oThis.auxChainId;\n oThis.deployerKind = chainAddressConstants.auxDeployerKind;\n oThis.mppLibContractKind = chainAddressConstants.auxMppLibContractKind;\n oThis.gasPrice = contractConstants.zeroGasPrice;\n break;\n default:\n throw `unsupported chainKind: ${oThis.chainKind}`;\n }\n\n switch (oThis.libKind) {\n case 'merklePatriciaProof':\n oThis.stepKind = chainSetupLogsConstants.deployMerklePatriciaProofLibStepKind;\n oThis.chainAddressKind =\n oThis.chainKind == coreConstants.originChainKind\n ? chainAddressConstants.originMppLibContractKind\n : chainAddressConstants.auxMppLibContractKind;\n oThis.gas = contractConstants.deployMppLibGas;\n break;\n case 'messageBus':\n oThis.stepKind = chainSetupLogsConstants.deployMessageBusLibStepKind;\n oThis.chainAddressKind =\n oThis.chainKind == coreConstants.originChainKind\n ? chainAddressConstants.originMbLibContractKind\n : chainAddressConstants.auxMbLibContractKind;\n oThis.gas = contractConstants.deployMbLibGas;\n break;\n case 'gateway':\n oThis.stepKind = chainSetupLogsConstants.deployGatewayLibStepKind;\n oThis.chainAddressKind =\n oThis.chainKind == coreConstants.originChainKind\n ? chainAddressConstants.originGatewayLibContractKind\n : chainAddressConstants.auxGatewayLibContractKind;\n oThis.gas = contractConstants.deployGatewayLibGas;\n break;\n default:\n throw `unsupported libLind ${oThis.libKind}`;\n }\n }", "_deploy(directory, filename)\n\t\t{\n\t\t\tlet _this = this;\n\n\t\t\tlet filePath = path.join(directory, filename);\n\t\t\tlet changeDirectory = path.join(process.cwd(), directory);\n\n\t\t\tlet context = (filename.endsWith(\".json\")) ? \"endpoint\" : \"function\";\n\t\t\tif(context == \"function\")\n\t\t\t{\n\t\t\t\t// Get a list of all function names within the current directory.\n\t\t\t\tlet functionNames = _this._functionsInDirectory(changeDirectory);\n\n\t\t\t\t// Remove any function names that are currently deploying.\n\t\t\t\t_.pullAll(functionNames, _this._currentlyDeploying);\n\n\t\t\t\t// If there are no functions to deploy, return.\n\t\t\t\tif(functionNames.length < 1)\n\t\t\t\t\treturn;\n\n\t\t\t\t// Add the function names to the _currentlyDeploying array.\n\t\t\t\t_this._currentlyDeploying = _.concat(_this._currentlyDeploying, functionNames);\n\n\t\t\t\t// Wait for trigger delay to allow files to settle.\n\t\t\t\tsetTimeout(function()\n\t\t\t\t{\n\t\t\t\t\t// Deploy all functions.\n\t\t\t\t\t_this._jobQueue.push(function(callback)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Report status.\n\t\t\t\t\t\tSCli.log(chalk.cyan(\"Detected change in file \\\"./\" + filePath + \"\\\".\"));\n\t\t\t\t\t\tSCli.log(chalk.cyan(\"Deploying functions: \" + functionNames.join(\", \")));\n\t\t\t\t\t\tSCli.log(\"\");\n\n\t\t\t\t\t\t// Deploy the functions. Returns promise.\n\t\t\t\t\t\t_this._functionDeploy(functionNames)\n\t\t\t\t\t\t.then(function(data)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Report status.\n\t\t\t\t\t\t\tSCli.log(chalk.green(\"Deploy completed for functions: \" + functionNames.join(\", \")));\n\n\t\t\t\t\t\t\t// Execute callback which will be mapped to _jobQueueNext().\n\t\t\t\t\t\t\tcallback(_this);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\t// Start the queue if it is not already running.\n\t\t\t\t\t_this._jobQueueStart();\n\t\t\t\t}, _this._deployTriggerDelay);\n\t\t\t}\n\t\t}", "function run(options) {\n\t var selectedAcc = options.selectedAcc,\n\t gasPrice = options.gasPrice,\n\t value = options.value,\n\t functionName = options.functionName,\n\t getNonce = options.getNonce,\n\t gasLimit = options.gasLimit,\n\t _options$payload = options.payload,\n\t payload = _options$payload === undefined ? [] : _options$payload,\n\t to = options.to;\n\t\n\t var contractObject = functionName && (options.contract || cInstance);\n\t\n\t var txObject = {\n\t from: selectedAcc.addr,\n\t to: to,\n\t gasPrice: gasPrice\n\t };\n\t\n\t if (value) {\n\t // TODO global.getWeb3Instance(); otherwise it's not defined from the start; however it's ok here as transaction.run() is a user interaction\n\t txObject.value = web3Instance.toHex(value);\n\t }\n\t\n\t var checkTxExceptions = function checkTxExceptions(offset) {\n\t return function (e) {\n\t if (selectedAcc.client === _clients.TOKENSTORE) {\n\t // TODO eradicate e.message shenanigans\n\t // TODO is it used at all? I can't find nonce too low string anywhere else\n\t if (e.message === 'nonce too low' || e.message === 'replacement transaction underpriced') {\n\t if (offset > 5) {\n\t throw new Error('nonce still too low');\n\t }\n\t return callTxWithNonceManager(offset + 1);\n\t }\n\t }\n\t\n\t throw e;\n\t };\n\t };\n\t\n\t var callTxWithNonceManager = function callTxWithNonceManager(offset) {\n\t return getNonce(selectedAcc).then(function (nonce) {\n\t if (selectedAcc.client === _clients.TOKENSTORE && selectedAcc.privateKey) {\n\t var secret = selectedAcc.privateKey;\n\t if (!secret.startsWith('0x')) {\n\t secret = '0x' + secret;\n\t }\n\t\n\t txObject.nonce = Number(nonce) + offset;\n\t txObject.to = txObject.to || contractObject.address;\n\t txObject.gasLimit = web3Instance.toHex(gasLimit || config.gas);\n\t\n\t var rawTx = createRawTransaction({\n\t function: functionName,\n\t tx: txObject,\n\t secret: secret,\n\t payload: payload,\n\t contractObject: contractObject\n\t });\n\t\n\t return util.promisify(web3Instance.eth.sendRawTransaction, [rawTx]).then(function (txHash) {\n\t return { txHash: txHash, rawTx: rawTx };\n\t }).catch(checkTxExceptions(offset));\n\t }\n\t\n\t txObject.gas = gasLimit || config.gas;\n\t\n\t // TODO some inner web3 provider shenanigans may lead this promise to 'pending' forever\n\t return util.promisify(functionName ? contractObject[functionName] : web3Instance.eth.sendTransaction, payload.concat([txObject])).then(function (txHash) {\n\t return { txHash: txHash };\n\t }).catch(checkTxExceptions(offset));\n\t });\n\t };\n\t\n\t return callTxWithNonceManager(0);\n\t}", "async function deployContract() {\n\n const contract = `[\n {\n \"prim\": \"storage\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"bool\", \"annots\": [ \"%active\" ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%chips_player1\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"int\", \"annots\": [ \"%chips_player2\" ] }, { \"prim\": \"int\", \"annots\": [ \"%winner\" ] } ] }\n ],\n \"annots\": [ \"%baseState\" ]\n },\n { \"prim\": \"string\", \"annots\": [ \"%id\" ] }\n ]\n }\n ]\n },\n {\n \"prim\": \"pair\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%nextParty\" ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"address\", \"annots\": [ \"%address\" ] }, { \"prim\": \"mutez\", \"annots\": [ \"%bond\" ] } ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"bool\", \"annots\": [ \"%hasBond\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"mutez\", \"annots\": [ \"%looserClaim\" ] }, { \"prim\": \"key\", \"annots\": [ \"%pk\" ] } ] }\n ]\n }\n ],\n \"annots\": [ \"%party1\" ]\n }\n ]\n },\n {\n \"prim\": \"pair\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"address\", \"annots\": [ \"%address\" ] }, { \"prim\": \"mutez\", \"annots\": [ \"%bond\" ] } ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"bool\", \"annots\": [ \"%hasBond\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"mutez\", \"annots\": [ \"%looserClaim\" ] }, { \"prim\": \"key\", \"annots\": [ \"%pk\" ] } ] }\n ]\n }\n ],\n \"annots\": [ \"%party2\" ]\n },\n { \"prim\": \"int\", \"annots\": [ \"%seq\" ] }\n ]\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"prim\": \"parameter\",\n \"args\": [\n {\n \"prim\": \"or\",\n \"args\": [\n {\n \"prim\": \"or\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%seq\" ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%chips_player1\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"int\", \"annots\": [ \"%chips_player2\" ] }, { \"prim\": \"int\", \"annots\": [ \"%winner\" ] } ] }\n ],\n \"annots\": [ \"%state\" ]\n }\n ],\n \"annots\": [ \"%msg1\" ]\n },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%seq\" ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%chips_player1\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"int\", \"annots\": [ \"%chips_player2\" ] }, { \"prim\": \"int\", \"annots\": [ \"%winner\" ] } ] }\n ],\n \"annots\": [ \"%state\" ]\n }\n ],\n \"annots\": [ \"%msg2\" ]\n }\n ]\n },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%party\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"signature\", \"annots\": [ \"%sig1\" ] }, { \"prim\": \"signature\", \"annots\": [ \"%sig2\" ] } ] }\n ]\n }\n ],\n \"annots\": [ \"%channelAccuseDoubleMove\" ]\n },\n {\n \"prim\": \"pair\",\n \"args\": [\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%seq\" ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%chips_player1\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"int\", \"annots\": [ \"%chips_player2\" ] }, { \"prim\": \"int\", \"annots\": [ \"%winner\" ] } ] }\n ],\n \"annots\": [ \"%state\" ]\n }\n ],\n \"annots\": [ \"%msg\" ]\n },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"signature\", \"annots\": [ \"%sig1\" ] }, { \"prim\": \"signature\", \"annots\": [ \"%sig2\" ] } ] }\n ],\n \"annots\": [ \"%channelNewState\" ]\n }\n ]\n },\n {\n \"prim\": \"or\",\n \"args\": [\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"int\", \"annots\": [ \"%party\" ] }, { \"prim\": \"signature\", \"annots\": [ \"%sig\" ] } ], \"annots\": [ \"%channelRenounce\" ] },\n {\n \"prim\": \"or\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%channelSetBond\" ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"int\", \"annots\": [ \"%party\" ] },\n {\n \"prim\": \"pair\",\n \"args\": [\n { \"prim\": \"signature\", \"annots\": [ \"%sig\" ] },\n { \"prim\": \"pair\", \"args\": [ { \"prim\": \"int\", \"annots\": [ \"%bet\" ] }, { \"prim\": \"int\", \"annots\": [ \"%winning_party\" ] } ], \"annots\": [ \"%sub\" ] }\n ]\n }\n ],\n \"annots\": [ \"%play\" ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"prim\": \"code\",\n \"args\": [\n [\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF_LEFT\",\n \"args\": [\n [\n {\n \"prim\": \"IF_LEFT\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF\",\n \"args\": [ [ [] ], [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.active\" } ] }, { \"prim\": \"FAILWITH\" } ] ] ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"False\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: params.msg1.seq == params.msg2.seq\" } ] }, { \"prim\": \"FAILWITH\" } ] ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"NEQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: sp.pack(params.msg1) != sp.pack(params.msg2)\" } ] },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party1.pk, params.sig1, sp.pack(sp.record(id = self.data.id, name = 'state', seq = params.msg1.seq, state = params.msg1.state)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party1.pk, params.sig2, sp.pack(sp.record(id = self.data.id, name = 'state', seq = params.msg2.seq, state = params.msg2.state)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n { \"prim\": \"IF_NONE\", \"args\": [ [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ], [ [] ] ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" }\n ]\n ],\n [\n [\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party2.pk, params.sig1, sp.pack(sp.record(id = self.data.id, name = 'state', seq = params.msg1.seq, state = params.msg1.state)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party2.pk, params.sig2, sp.pack(sp.record(id = self.data.id, name = 'state', seq = params.msg2.seq, state = params.msg2.state)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n { \"prim\": \"IF_NONE\", \"args\": [ [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ], [ [] ] ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ],\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF\",\n \"args\": [ [ [] ], [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.active\" } ] }, { \"prim\": \"FAILWITH\" } ] ] ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"LT\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.seq < params.msg.seq\" } ] }, { \"prim\": \"FAILWITH\" } ] ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party1.pk, params.sig1, sp.pack(sp.record(id = self.data.id, name = 'state', seq = params.msg.seq, state = params.msg.state)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party2.pk, params.sig2, sp.pack(sp.record(id = self.data.id, name = 'state', seq = params.msg.seq, state = params.msg.state)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DROP\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] }\n ]\n ]\n ]\n }\n ],\n [\n {\n \"prim\": \"IF_LEFT\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF\",\n \"args\": [ [ [] ], [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.active\" } ] }, { \"prim\": \"FAILWITH\" } ] ] ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"False\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"renounce\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party1.pk, params.sig, sp.pack(sp.record(id = self.data.id, name = 'renounce')))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n { \"prim\": \"IF_NONE\", \"args\": [ [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ], [ [] ] ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n { \"prim\": \"IF_NONE\", \"args\": [ [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ], [ [] ] ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ],\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"renounce\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PACK\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party2.pk, params.sig, sp.pack(sp.record(id = self.data.id, name = 'renounce')))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n { \"prim\": \"IF_NONE\", \"args\": [ [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ], [ [] ] ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n { \"prim\": \"IF_NONE\", \"args\": [ [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ], [ [] ] ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ],\n [\n {\n \"prim\": \"IF_LEFT\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.active\" } ] }, { \"prim\": \"FAILWITH\" } ] ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: ~ self.data.party1.hasBond\" } ] },\n { \"prim\": \"FAILWITH\" }\n ]\n ],\n [ [] ]\n ]\n },\n { \"prim\": \"AMOUNT\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.party1.bond == sp.amount\" } ] },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"True\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ],\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: ~ self.data.party2.hasBond\" } ] },\n { \"prim\": \"FAILWITH\" }\n ]\n ],\n [ [] ]\n ]\n },\n { \"prim\": \"AMOUNT\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.party2.bond == sp.amount\" } ] },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"True\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ]\n ]\n },\n { \"prim\": \"DROP\" },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] }\n ]\n ],\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.active\" } ] }, { \"prim\": \"FAILWITH\" } ] ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.nextParty == params.party\" } ] },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"6\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"0\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.baseState.winner == 0\" } ] }, { \"prim\": \"FAILWITH\" } ]\n ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"GE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: params.sub.winning_party >= 1\" } ] }, { \"prim\": \"FAILWITH\" } ] ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"LE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: params.sub.winning_party <= 2\" } ] }, { \"prim\": \"FAILWITH\" } ] ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"0\" } ] },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"LT\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: params.sub.bet > 0\" } ] }, { \"prim\": \"FAILWITH\" } ] ]\n ]\n },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"GE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.baseState.chips_player2 >= params.sub.bet\" } ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"6\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"7\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"6\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"7\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"8\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"2000\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"0\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"NEQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"False\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ],\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"False\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ]\n ]\n }\n ]\n ],\n [ { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] } ]\n ]\n }\n ]\n ],\n [ { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] } ]\n ]\n }\n ]\n ],\n [\n [\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"GE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [ { \"prim\": \"string\" }, { \"string\": \"WrongCondition: self.data.baseState.chips_player1 >= params.sub.bet\" } ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"6\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"7\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"8\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"6\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"7\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"2000\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"0\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"NEQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"False\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ],\n [\n [\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"bool\" }, { \"prim\": \"False\" } ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" },\n { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SUB\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"ADD\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CONTRACT\", \"args\": [ { \"prim\": \"unit\" } ] },\n {\n \"prim\": \"IF_NONE\",\n \"args\": [\n [ [ { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] }, { \"prim\": \"FAILWITH\" } ] ],\n [ [] ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"unit\" }, { \"prim\": \"Unit\" } ] },\n { \"prim\": \"TRANSFER_TOKENS\" },\n { \"prim\": \"CONS\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ]\n ]\n }\n ]\n ],\n [ { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] } ]\n ]\n }\n ]\n ],\n [ { \"prim\": \"NIL\", \"args\": [ { \"prim\": \"operation\" } ] } ]\n ]\n }\n ]\n ]\n ]\n },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"1\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"COMPARE\" },\n { \"prim\": \"EQ\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [\n [\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party1.pk, params.sig, sp.pack(sp.record(id = self.data.id, name = 'state', seq = self.data.seq, state = self.data.baseState)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n }\n ]\n ],\n [\n [\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%seq\", \"%state\" ] },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"string\" }, { \"string\": \"state\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"PAIR\", \"annots\": [ \"%id\", \"%name\" ] },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PACK\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"4\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CHECK_SIGNATURE\" },\n {\n \"prim\": \"IF\",\n \"args\": [\n [ [] ],\n [\n [\n {\n \"prim\": \"PUSH\",\n \"args\": [\n { \"prim\": \"string\" },\n {\n \"string\":\n \"WrongCondition: sp.check_signature(self.data.party2.pk, params.sig, sp.pack(sp.record(id = self.data.id, name = 'state', seq = self.data.seq, state = self.data.baseState)))\"\n }\n ]\n },\n { \"prim\": \"FAILWITH\" }\n ]\n ]\n ]\n }\n ]\n ]\n ]\n },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DUP\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CDR\" },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"5\" } ] },\n { \"prim\": \"DUP\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"6\" } ] },\n { \"prim\": \"CDR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"CAR\" },\n { \"prim\": \"PUSH\", \"args\": [ { \"prim\": \"int\" }, { \"int\": \"3\" } ] },\n { \"prim\": \"SUB\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"PAIR\" },\n { \"prim\": \"DUG\", \"args\": [ { \"int\": \"3\" } ] },\n { \"prim\": \"DIG\", \"args\": [ { \"int\": \"2\" } ] },\n { \"prim\": \"DROP\" },\n { \"prim\": \"SWAP\" },\n { \"prim\": \"DROP\" }\n ]\n ]\n ]\n }\n ]\n ]\n }\n ]\n ]\n },\n { \"prim\": \"PAIR\" }\n ]\n ]\n }\n]`;\n const storage = '{\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [\\n' +\n ' { \"prim\": \"True\" },\\n' +\n ' { \"prim\": \"Pair\", \"args\": [ { \"prim\": \"Pair\", \"args\": [ { \"int\": \"1000\" }, { \"prim\": \"Pair\", \"args\": [ { \"int\": \"1000\" }, { \"int\": \"0\" } ] } ] }, { \"string\": \"1234\" } ] }\\n' +\n ' ]\\n' +\n ' },\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [\\n' +\n ' { \"int\": \"1\" },\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [\\n' +\n ' { \"prim\": \"Pair\", \"args\": [ { \"string\": \"tz1WxrQuZ4CK1MBUa2GqUWK1yJ4J6EtG1Gwi\" }, { \"int\": \"10000000\" } ] },\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [ { \"prim\": \"False\" }, { \"prim\": \"Pair\", \"args\": [ { \"int\": \"0\" }, { \"string\": \"edpkuvNy6TuQ2z8o9wnoaTtTXkzQk7nhegCHfxBc4ecsd4qG71KYNG\" } ] } ]\\n' +\n ' }\\n' +\n ' ]\\n' +\n ' }\\n' +\n ' ]\\n' +\n ' },\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [\\n' +\n ' { \"prim\": \"Pair\", \"args\": [ { \"string\": \"tz1Rp4Bv8iUhYnNoCryHQgNzN2D7i3L1LF9C\" }, { \"int\": \"10000000\" } ] },\\n' +\n ' {\\n' +\n ' \"prim\": \"Pair\",\\n' +\n ' \"args\": [ { \"prim\": \"False\" }, { \"prim\": \"Pair\", \"args\": [ { \"int\": \"0\" }, { \"string\": \"edpkufVmvzkm4oFQ7WcF5NJbq9BFB2mWRsm4Dyh2spMDuDxWSQWHuT\" } ] } ]\\n' +\n ' }\\n' +\n ' ]\\n' +\n ' },\\n' +\n ' { \"int\": \"0\" }\\n' +\n ' ]\\n' +\n ' }\\n' +\n ' ]\\n' +\n ' }\\n' +\n ' ]\\n' +\n '}';\n\n const result = await conseiljs.TezosNodeWriter.sendContractOriginationOperation(tezosNode, keyStore, 0, undefined,\n 100000, '', 1000, 100000, contract, storage, conseiljs.TezosParameterFormat.Micheline);\n console.log(`Injected operation group id ${result.operationGroupID}`);\n}", "async function deployToken(deployer, network, accounts) {\n await deployer.deploy(Cash);\n await deployer.deploy(Bond);\n await deployer.deploy(Share);\n}", "async function deployRs(deployer, network) {\n let reserveToken = \"0x514910771AF9Ca656af840dff83E8264EcF986CA\";\n let uniswap_factory = \"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f\";\n await deployer.deploy(RAMENReserves, reserveToken, RAMENProxy.address);\n await deployer.deploy(RAMENRebaser,\n RAMENProxy.address,\n reserveToken,\n uniswap_factory,\n RAMENReserves.address\n );\n let rebase = new web3.eth.Contract(RAMENRebaser.abi, RAMENRebaser.address);\n\n let pair = await rebase.methods.uniswap_pair().call();\n console.log(\"RAMENProxy address is \" + RAMENProxy.address);\n console.log(\"Uniswap pair is \" + pair);\n let ramen = await RAMENProxy.deployed();\n await ramen._setRebaser(RAMENRebaser.address);\n let reserves = await RAMENReserves.deployed();\n await reserves._setRebaser(RAMENRebaser.address)\n}", "async function normalizeOptionsAsync(projectDir, options) {\n var _options$parent, _options$parent2;\n\n const opts = { ...options,\n // This is necessary to ensure we don't drop any options\n webOnly: !!options.webOnly,\n // This is only ever true in the start:web command\n nonInteractive: (_options$parent = options.parent) === null || _options$parent === void 0 ? void 0 : _options$parent.nonInteractive\n };\n const rawArgs = ((_options$parent2 = options.parent) === null || _options$parent2 === void 0 ? void 0 : _options$parent2.rawArgs) || [];\n\n if (hasBooleanArg(rawArgs, 'dev')) {\n opts.dev = getBooleanArg(rawArgs, 'dev');\n } else {\n opts.dev = true;\n }\n\n if (hasBooleanArg(rawArgs, 'minify')) {\n opts.minify = getBooleanArg(rawArgs, 'minify');\n } else {\n opts.minify = false;\n }\n\n if (hasBooleanArg(rawArgs, 'https')) {\n opts.https = getBooleanArg(rawArgs, 'https');\n } else {\n opts.https = false;\n }\n\n if (hasBooleanArg(rawArgs, 'android')) {\n opts.android = getBooleanArg(rawArgs, 'android');\n }\n\n if (hasBooleanArg(rawArgs, 'ios')) {\n opts.ios = getBooleanArg(rawArgs, 'ios');\n }\n\n if (hasBooleanArg(rawArgs, 'web')) {\n opts.web = getBooleanArg(rawArgs, 'web');\n }\n\n if (hasBooleanArg(rawArgs, 'localhost')) {\n opts.localhost = getBooleanArg(rawArgs, 'localhost');\n }\n\n if (hasBooleanArg(rawArgs, 'lan')) {\n opts.lan = getBooleanArg(rawArgs, 'lan');\n }\n\n if (hasBooleanArg(rawArgs, 'tunnel')) {\n opts.tunnel = getBooleanArg(rawArgs, 'tunnel');\n }\n\n await cacheOptionsAsync(projectDir, opts);\n return opts;\n}", "async function deploy_from_file(path, init, gas = base_tx_settings.gas_limit, hardcode = {}, tx_settings = base_tx_settings)\n{\n\tvar code = read(path);\n\tfor(var k in hardcode){ code = code.replace(k, hardcode[k]); }\n\n\t\tconst contract = setup.zilliqa.contracts.new(code, init);\n\treturn contract.deploy(\n\t\t{ version: setup.VERSION, gasPrice: tx_settings.gas_price, gasLimit: gas, },\n\t\ttx_settings.attempts, tx_settings.timeoute, false\n\t\t);\n}", "updateCommitHostedPropertyValue(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n\n let apiInstance = new Bitbucket.PropertiesApi(); // String | The account // String | The repository // String | The commit // String | The key of the Connect app // String | The name of the property.\n /*let username = \"username_example\";*/ /*let repoSlug = \"repoSlug_example\";*/ /*let commit = \"commit_example\";*/ /*let appKey = \"appKey_example\";*/ /*let propertyName = \"propertyName_example\";*/ apiInstance.updateCommitHostedPropertyValue(\n incomingOptions.username,\n incomingOptions.repoSlug,\n incomingOptions.commit,\n incomingOptions.appKey,\n incomingOptions.propertyName,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, '', response);\n }\n }\n );\n }", "registerActions() {\n\n S.addAction(this._swaggerDeploy.bind(this), {\n handler: 'swaggerDeploy',\n description: 'A custom action from a custom plugin',\n context: 'swagger',\n contextAction: 'deploy',\n options: [\n {\n option: 'stage',\n shortcut: 's',\n description: 'Optional if only one stage is defined in project'\n }, {\n option: 'region',\n shortcut: 'r',\n description: 'Optional - Target one region to deploy to'\n }, {\n option: 'all',\n shortcut: 'a',\n description: 'Optional - Deploy all Functions'\n }, {\n option: 'swaggerPath',\n shortcut: 'w',\n description: 'Swagger file path (relative to project root)'\n }, {\n option: 'mode',\n shortcut: 'm',\n description: 'Import Mode (\\'merge\\' or \\'overwrite\\')'\n }\n ],\n parameters: [\n {\n parameter: 'names',\n description: 'The names/ids of the endpoints you want to deploy in this format: user/create~GET',\n position: '0->'\n }\n ]\n });\n\n return BbPromise.resolve();\n }", "constructor(ip, port, protocol = 'http', networkID = constants_1.DefaultNetworkID, XChainID = undefined, CChainID = undefined, hrp = undefined, skipinit = false) {\n super(ip, port, protocol);\n /**\n * Returns a reference to the Admin RPC.\n */\n this.Admin = () => this.apis.admin;\n /**\n * Returns a reference to the Auth RPC.\n */\n this.Auth = () => this.apis.auth;\n /**\n * Returns a reference to the EVMAPI RPC pointed at the C-Chain.\n */\n this.CChain = () => this.apis.cchain;\n /**\n * Returns a reference to the AVM RPC pointed at the X-Chain.\n */\n this.XChain = () => this.apis.xchain;\n /**\n * Returns a reference to the Health RPC for a node.\n */\n this.Health = () => this.apis.health;\n /**\n * Returns a reference to the Info RPC for a node.\n */\n this.Info = () => this.apis.info;\n /**\n * Returns a reference to the Metrics RPC.\n */\n this.Metrics = () => this.apis.metrics;\n /**\n * Returns a reference to the Keystore RPC for a node. We label it \"NodeKeys\" to reduce\n * confusion about what it's accessing.\n */\n this.NodeKeys = () => this.apis.keystore;\n /**\n * Returns a reference to the PlatformVM RPC pointed at the P-Chain.\n */\n this.PChain = () => this.apis.pchain;\n let xchainid = XChainID;\n let cchainid = CChainID;\n if (typeof XChainID === 'undefined'\n || !XChainID\n || XChainID.toLowerCase() === 'x') {\n if (networkID.toString() in constants_1.Defaults.network) {\n xchainid = constants_1.Defaults.network[networkID].X.blockchainID;\n }\n else {\n xchainid = constants_1.Defaults.network[12345].X.blockchainID;\n }\n }\n if (typeof CChainID === 'undefined'\n || !CChainID\n || CChainID.toLowerCase() === 'c') {\n if (networkID.toString() in constants_1.Defaults.network) {\n cchainid = constants_1.Defaults.network[networkID].C.blockchainID;\n }\n else {\n cchainid = constants_1.Defaults.network[12345].C.blockchainID;\n }\n }\n if (typeof networkID === 'number' && networkID >= 0) {\n this.networkID = networkID;\n }\n else if (typeof networkID === \"undefined\") {\n networkID = constants_1.DefaultNetworkID;\n }\n if (typeof hrp !== \"undefined\") {\n this.hrp = hrp;\n }\n else {\n this.hrp = helperfunctions_1.getPreferredHRP(this.networkID);\n }\n if (!skipinit) {\n this.addAPI('admin', api_1.AdminAPI);\n this.addAPI('auth', api_2.AuthAPI);\n this.addAPI('xchain', api_3.AVMAPI, '/ext/bc/X', xchainid);\n this.addAPI('cchain', api_4.EVMAPI, '/ext/bc/C/avax', cchainid);\n this.addAPI('health', api_5.HealthAPI);\n this.addAPI('info', api_6.InfoAPI);\n this.addAPI('keystore', api_7.KeystoreAPI);\n this.addAPI('metrics', api_8.MetricsAPI);\n this.addAPI('pchain', api_9.PlatformVMAPI);\n }\n }", "function deployQZ() {\n\t\tvar attributes = {id: \"qz\", code:'qz.PrintApplet.class', \n\t\t\tarchive:'qz-print.jar', width:1, height:1};\n\t\tvar parameters = {jnlp_href: 'qz-print_jnlp.jnlp', \n\t\t\tcache_option:'plugin', disable_logging:'false', \n\t\t\tinitial_focus:'false'};\n\t\tif (deployJava.versionCheck(\"1.7+\") == true) {}\n\t\telse if (deployJava.versionCheck(\"1.6+\") == true) {\n\t\t\tdelete parameters['jnlp_href'];\n\t\t}\n\t\tdeployJava.runApplet(attributes, parameters, '1.5');\n\t}", "createDeploymentParameters(config) {\n let service = new service_1.Service(this.workspacePath);\n let roles = service.getRoles(config);\n // Calculates which parameters should be added to the templates\n // engine configuration.\n let serviceParams = service.getParameters(config);\n let paramsProcessed = [];\n // Parameters are processed to add default values depending on their\n // type and the default value. The parameters are processed using\n // generator functions.\n let paramsIt = this.processParametersDefaultValues(serviceParams);\n let elem = paramsIt.next();\n while (!elem.done) {\n let param = elem.value;\n // If the parameter type is JSON and the parameter name is also a\n // service role, then change the value with a JSON document\n // including the parameters of the role's component with initial\n // values.\n if (param.type == utils_1.ParameterType.JSON) {\n let role = this.getRole(param.name, roles);\n if ((role) && (role.component)) {\n let compParams = this.getComponentParameters(role.component);\n let value = '{';\n let compParamsIt = this.processParametersDefaultValues(compParams);\n let compElem = compParamsIt.next();\n let first = true;\n while (!compElem.done) {\n let compParam = compElem.value;\n if (first) {\n value = `${value}\\n \"${compParam.name}\":${compParam.value}`;\n first = false;\n }\n else {\n value = `,${value}\\n \"${compParam.name}\":${compParam.value},`;\n }\n compElem = compParamsIt.next();\n }\n value = `${value}\\n }`;\n param.value = value;\n }\n }\n paramsProcessed.push(param);\n elem = paramsIt.next();\n }\n return paramsProcessed;\n }", "async function setupProfitSharing() {\n // Dai, USDC, and yCRV Vaults all use Dai to share profit\n // todo: use address from json\n daiProfitPool = await NoMintRewardPool.at(deployedContracts.REWARD_POOL);\n\n await feeRewardForwarder.setConversionPath(\n ycrv.address,\n dai.address,\n [hecoAddresses.YCRV_ADDRESS, hecoAddresses.WETH_ADDRESS, hecoAddresses.DAI_ADDRESS],\n {from: governance}\n );\n\n // Let the feeRewardForwarder know that we are sharing all our profit in this\n // Dai profit pool\n await feeRewardForwarder.setTokenPool(daiProfitPool.address, { from: governance });\n }", "_manageVpc (evt, region) {\n let _this = this;\n\n _this.stage = evt.options.stage;\n _this._initAws(region);\n\n if (_this.S.cli.action != 'deploy' || (_this.S.cli.context != 'function' && _this.S.cli.context != 'dash'))\n return;\n\n _this.vpcSettings = _this._getFunctionsVpcSettings(evt, region);\n\n // no vpc found\n if (_this.vpcSettings.length == 0) {\n return;\n }\n\n var functionVpcUpdates = [];\n for (var i in _this.vpcSettings) {\n functionVpcUpdates.push(\n _this.lambda.updateFunctionConfigurationBbAsync({\n \"FunctionName\": _this.vpcSettings[i].deployed.functionName,\n \"VpcConfig\": _this.vpcSettings[i].vpcConfig\n })\n );\n }\n\n BbPromise.all(functionVpcUpdates)\n .then(function(){\n console.log('vpc settings updated');\n });\n }" ]
[ "0.7261169", "0.6316964", "0.57954097", "0.55136895", "0.5453097", "0.5438545", "0.5392325", "0.53471273", "0.5239186", "0.5185985", "0.5051503", "0.5004959", "0.4959975", "0.49317", "0.49084374", "0.4884491", "0.4848416", "0.48382464", "0.48246276", "0.4811499", "0.47355208", "0.47094244", "0.46575847", "0.46537918", "0.46452072", "0.46414793", "0.4641393", "0.45899078", "0.45889175", "0.455969", "0.45564324", "0.45542276", "0.45487714", "0.45477888", "0.45460463", "0.4519044", "0.4513345", "0.45085016", "0.4506869", "0.44856828", "0.44395417", "0.44383794", "0.44315183", "0.44304734", "0.44291905", "0.4393078", "0.43899903", "0.4384015", "0.43524882", "0.43497983", "0.4342554", "0.43209705", "0.43114752", "0.43106344", "0.4305842", "0.42961672", "0.42940882", "0.42931944", "0.4286137", "0.4284345", "0.4275842", "0.42618227", "0.4253932", "0.42513934", "0.42479998", "0.42398295", "0.42348045", "0.4233095", "0.42315865", "0.42266878", "0.4226528", "0.4216922", "0.42164156", "0.42163178", "0.42104876", "0.42059508", "0.4195751", "0.41877928", "0.41804612", "0.41781914", "0.4174763", "0.41724116", "0.41670164", "0.41638875", "0.4159893", "0.4158374", "0.4144776", "0.41354895", "0.4132959", "0.4123266", "0.41229832", "0.4121874", "0.412108", "0.4107373", "0.4106026", "0.4090616", "0.40861577", "0.40844157", "0.4074288", "0.40709388" ]
0.6881086
1
Allows the owner of a listingHash to remove the listingHash from the whitelist Returns all tokens to the owner of the listingHash
exit(listing, opts) { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(), account = this.requireAccount(opts); return yield deployed.methods.exit(listing).send({ from: account }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearTokenList() {\n const tokenList = STATE.get('TokenList');\n if (tokenList) {\n Object.keys(tokenList).forEach(k => {\n const tokenObj = STATE.get('TokenList', k);\n Token.setBonus(tokenObj, 0);\n });\n }\n }", "removeFromWhitelist(username) {\n browser.storage.local.get('whitelist').then(({ whitelist }) => {\n if (!whitelist[username]) {\n console.warn(`\n (botcheck) Attempted to remove user from whitelist by clicking X\n on the popup, but user was not in whitelist.\n `);\n return;\n }\n delete whitelist[username];\n\n // Update UI\n this.whitelist = whitelist;\n\n browser.storage.local.set({ whitelist });\n });\n }", "function woofList(game, stats, owner, pet, span) {\n //if it has a list selection, unlist, remove from listcount\n if (span.classList.contains('whitelist')) {\n listCount(game, stats, owner, pet, 'white');\n list(game, stats, owner, pet, 'unlist');\n } else if (span.classList.contains('blacklist')) {\n listCount(game, stats, owner, pet, 'black');\n list(game, stats, owner, pet, 'unlist');\n };\n //remove lisiting options from pair\n if (document.querySelector(`#${owner}-${pet}-list-container`)) {\n document.querySelector(`#${owner}-${pet}-list-container`).remove();\n };\n}", "function removeToken() {\n setValue(\"token\", null);\n}", "function removeListing(i) {\r\n listings[i].ref.remove();\r\n}", "function prune_inflight() {\n\tvar cutoff = Date.now();\n\tfor (var salt in inflight_textchas)\n\t\tif (inflight_textchas[salt].expires < cutoff)\n\t\t\tdelete inflight_textchas[salt];\n}", "async addBlackList(token) {\n\t\tconst created = await this.tokenBlackListRepository.create({\n\t\t\tdata: { token: token }\n\t\t})\n\n\t\t// Eliminar tokenes caducados\n\t\tawait this.tokenBlackListRepository.delete(\n\t\t\tmoment().subtract(7, 'days').toISOString()\n\t\t)\n\n\t\tif (created) {\n\t\t\treturn true\n\t\t}\n\t\treturn false\n\t}", "function updateWhitelist() {\n //clear local_whitelist_table\n var ul = document.getElementById(\"local_whitelist_table\");\n var lis = ul.getElementsByTagName(\"li\");\n while (lis.length > 0) {\n ul.removeChild(lis[0]);\n }\n var whitelist_arr = JSON.parse(localStorage.getItem(\"whitelist\"));\n //loop through whitelist_arr and append elements to local_whitelist_table\n if (whitelist_arr !== null) {\n for (var i = 0; i < whitelist_arr.length; i++) {\n var node = document.createElement(\"LI\");\n var button = document.createElement(\"SPAN\");\n button.setAttribute(\"id\", \"close_button\");\n button.setAttribute(\"class\", \"wl_close\");\n //TODO: button.addEventListener(\"click\", removeElement);\n var textnode = document.createTextNode(whitelist_arr[i]);\n node.appendChild(textnode);\n node.appendChild(button);\n button.innerHTML = \"&times;\";\n document.getElementById(\"local_whitelist_table\").appendChild(node);\n }\n }\n\n var wl_closebtns = document.getElementsByClassName(\"wl_close\");\n\n //Assign clicklisteners to x buttons in whitelist\n for (var i = 0; i < wl_closebtns.length; i++) {\n wl_closebtns[i].addEventListener(\"click\", function removeWLItem() {\n var temparr = JSON.parse(localStorage.getItem(\"whitelist\"));\n var unparsed_html = this.parentElement.innerHTML;\n var parsed_html = unparsed_html.substring(\n 0,\n unparsed_html.search(\"<span\")\n );\n for (var j = 0; j < temparr.length; j++) {\n if (parsed_html == temparr[j]) {\n temparr.splice(j, 1);\n }\n }\n localStorage.setItem(\"whitelist\", JSON.stringify(temparr));\n updateWhitelist();\n });\n }\n}", "remove(paladinID) {\n const palList = STATE.PaladinList.get();\n const index = palList.findIndex(pID => { return pID === paladinID; });\n if (index !== -1) {\n palList.splice(index, 1);\n STATE.PaladinList.set(palList);\n // // Remove the token's character's paladin abilities\n // const tokenObj = STATE.get('TokenList', paladinID) as TokenObj | undefined;\n // if (tokenObj !== undefined && tokenObj.characterID !== undefined) {\n // const abilities = findObjs({\n // _type: 'ability',\n // _characterid: paladinID,\n // }) as Ability[];\n // const abilitiesToRemove = abilities.filter(a => {\n // return Paladin.paladinAbilities().some(b => { return b[0] === a.get('name'); });\n // });\n // abilitiesToRemove.forEach(a => {\n // a.remove();\n // });\n // }\n }\n }", "function removeAllWhitelistUrl() {\n savedWhitelistedURL = [];\n actualBrowser.storage.local.set({\"whitelist\": savedWhitelistedURL});\n actualBrowser.runtime.sendMessage({data: JSON.stringify(savedWhitelistedURL), subject: \"whitelist\"});\n}", "function rawRemoveScopedUserToken(token)\n{\n\tif(!apiutil.isSafeString(token)){\n\t\tr3logger.elog('parameter is wrong : token=' + JSON.stringify(token));\n\t\treturn false;\n\t}\n\n\t//\n\t// Check token\n\t//\n\tif(0 === token.indexOf('R=')){\n\t\tr3logger.elog('token(' + JSON.stringify(token) + ') is role token.');\n\t\treturn false;\n\t}else if(0 === token.indexOf('U=')){\n\t\ttoken = token.substr(2);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cut 'U='\n\t}\n\tvar\ttoken_info = rawCheckUserToken(token);\n\tif(\tnull === token_info\t\t\t\t\t\t\t||\n\t\t!apiutil.isSafeString(token_info.user)\t\t||\n\t\t!apiutil.isSafeString(token_info.tenant)\t||\n\t\t!apiutil.isSafeEntity(token_info.scoped)\t||\n\t\t'boolean' !== typeof token_info.scoped\t\t||\n\t\ttrue !== token_info.scoped\t\t\t\t\t)\n\t{\n\t\tr3logger.elog('token(' + JSON.stringify(token) + ') is something wrong.');\n\t\treturn false;\n\t}\n\n\t//\n\t// Remove token\n\t//\n\tvar\tdkcobj\t\t\t= k2hr3.getK2hdkc(true, false);\t\t\t\t\t\t\t\t\t\t// use permanent object(need to clean)\n\tvar\tsubkeylist;\n\tvar\terrmsg\t\t\t= '';\n\tif(!apiutil.isSafeEntity(dkcobj)){\n\t\treturn false;\n\t}\n\n\t//\n\t// Keys\n\t//\n\tvar\tkeys\t\t\t= r3keys(token_info.user, token_info.tenant);\n\tvar\ttoken_top_key\t= keys.TOKEN_USER_TOP_KEY;\t\t\t\t\t\t\t\t\t\t\t// \"yrn:yahoo::::token:user\"\n\tvar\ttoken_value_key\t= keys.TOKEN_USER_TOP_KEY + '/' + token;\t\t\t\t\t\t\t// \"yrn:yahoo::::token:user/<token>\"\n\tvar\tutoken_top_key\t= keys.USER_TENANT_AMBIGUOUS_TOKEN_KEY;\t\t\t\t\t\t\t\t// \"yrn:yahoo::::user:<user>:tenant/<tenant>/token\"\n\tvar\tutoken_token_key= keys.USER_TENANT_AMBIGUOUS_TOKEN_KEY + '/' + token;\t\t\t\t// \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>\"\n\tvar\tutoken_seed_key\t= utoken_token_key + '/' + keys.SEED_KW;\t\t\t\t\t\t\t// \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>/seed\"\n\n\t//\n\t// check under token top\n\t//\n\tsubkeylist\t= apiutil.getSafeArray(dkcobj.getSubkeys(token_top_key, true));\n\tif(apiutil.removeStringFromArray(subkeylist, token_value_key)){\t\t\t\t\t\t\t// remove subkeys \"yrn:yahoo::::token:user/<token>\" -> \"yrn:yahoo::::token:user\"\n\t\tif(!dkcobj.setSubkeys(token_top_key, subkeylist)){\n\t\t\terrmsg += 'could not remove ' + token_value_key + ' subkey under ' + token_top_key + ' key, ';\n\t\t}\n\t}\n\tif(!dkcobj.remove(token_value_key, false)){\t\t\t\t\t\t\t\t\t\t\t\t// remove key \"yrn:yahoo::::token:user/<token>\"\n\t\terrmsg += 'could not remove ' + token_value_key + 'key, probably it is not existed, ';\n\t}\n\n\t//\n\t// check under user top\n\t//\n\tsubkeylist\t= apiutil.getSafeArray(dkcobj.getSubkeys(utoken_top_key, true));\n\tif(apiutil.removeStringFromArray(subkeylist, utoken_token_key)){\t\t\t\t\t\t// remove subkeys \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>\" -> \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token\"\n\t\tif(!dkcobj.setSubkeys(utoken_top_key, subkeylist)){\n\t\t\terrmsg += 'could not remove ' + utoken_token_key + ' subkey under ' + utoken_top_key + ' key, ';\n\t\t}\n\t}\n\tsubkeylist\t= apiutil.getSafeArray(dkcobj.getSubkeys(utoken_token_key, true));\n\tif(apiutil.removeStringFromArray(subkeylist, utoken_seed_key)){\t\t\t\t\t\t\t// remove subkeys \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>/seed\" -> \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>\"\n\t\tif(!dkcobj.setSubkeys(utoken_token_key, subkeylist)){\n\t\t\terrmsg += 'could not remove ' + utoken_seed_key + ' subkey under ' + utoken_token_key + ' key, ';\n\t\t}\n\t}\n\tif(!dkcobj.remove(utoken_seed_key, false)){\t\t\t\t\t\t\t\t\t\t\t\t// remove key \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>/seed\"\n\t\terrmsg += 'could not remove ' + utoken_seed_key + 'key, probably it is not existed, ';\n\t}\n\tif(!dkcobj.remove(utoken_token_key, false)){\t\t\t\t\t\t\t\t\t\t\t// remove key \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>\"\n\t\terrmsg += 'could not remove ' + utoken_token_key + 'key, probably it is not existed, ';\n\t}\n\n\tif(apiutil.isSafeString(errmsg)){\n\t\tr3logger.elog(errmsg);\n\t}\n\n\tdkcobj.clean();\n\treturn true;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns true even if there is an error in deletion processing\n}", "function removeFromWhitelist(e) {\n e.preventDefault();\n settings.ignoredDomains = settings.ignoredDomains.filter(function(d) {\n return d !== currentDomain\n });\n document.querySelector('#btn-whitelist-add').style.display = 'initial';\n document.querySelector('#btn-whitelist-remove').style.display = 'none';\n browser.storage.sync.set({\"settings\": settings});\n sendUpdatedSettings();\n}", "function WhiteList(from) {\n if (from)\n this._list = from._list, this.length = Object.keys(from._list).length;\n else\n this._list = {}, this.length = 0;\n}", "function updateBlacklist() {\n //clear local_blacklist_table\n var ul = document.getElementById(\"local_blacklist_table\");\n var lis = ul.getElementsByTagName(\"li\");\n while (lis.length > 0) {\n ul.removeChild(lis[0]);\n }\n var blacklist_arr = JSON.parse(localStorage.getItem(\"blacklist\"));\n //loop through blacklist_arr and append elements to local_blacklist_table\n if (blacklist_arr !== null) {\n for (var i = 0; i < blacklist_arr.length; i++) {\n var node = document.createElement(\"LI\");\n var button = document.createElement(\"SPAN\");\n button.setAttribute(\"id\", \"close_button\");\n button.setAttribute(\"class\", \"bl_close\");\n //TODO: button.addEventListener(\"click\", removeElement);\n var textnode = document.createTextNode(blacklist_arr[i]);\n node.appendChild(textnode);\n node.appendChild(button);\n button.innerHTML = \"&times;\";\n document.getElementById(\"local_blacklist_table\").appendChild(node);\n }\n }\n var bl_closebtns = document.getElementsByClassName(\"bl_close\");\n //Assign clicklisteners to x buttons in blacklist\n for (var i = 0; i < bl_closebtns.length; i++) {\n bl_closebtns[i].addEventListener(\"click\", function removeBLItem() {\n var temparr = JSON.parse(localStorage.getItem(\"blacklist\"));\n var unparsed_html = this.parentElement.innerHTML;\n var parsed_html = unparsed_html.substring(\n 0,\n unparsed_html.search(\"<span\")\n );\n for (var j = 0; j < temparr.length; j++) {\n if (parsed_html == temparr[j]) {\n temparr.splice(j, 1);\n }\n }\n localStorage.setItem(\"blacklist\", JSON.stringify(temparr));\n updateBlacklist();\n });\n }\n}", "removeFromList(name) {\n console.log(\"Requested to remove word \" + name);\n let success = this.list.delete(name);\n console.log(\"Remove \" + name + \" success: \" + success);\n }", "function removeOBListing (deviceData) {\n debugger;\n\n const obContractId = deviceData.obContract;\n\n // Validation/Error Handling\n if (obContractId === undefined || obContractId === null) {\n throw `no obContract model associated with device ${deviceData._id}`;\n }\n\n const options = {\n method: 'GET',\n uri: `http://p2pvps.net/api/ob/removeMarketListing/${obContractId}`,\n json: true // Automatically stringifies the body to JSON\n };\n\n return rp(options)\n .then(function (data) {\n debugger;\n\n if (!data.success) {\n throw `Could not remove OB store listing for device ${obContractId}`;\n }\n\n console.log(\n `Successfully removed listing on OB store with obContract model ID ${obContractId}`\n );\n return true;\n })\n .catch(err => {\n debugger;\n console.error(`Could not remove OB store listing for device ${obContractId}.`);\n throw err;\n });\n}", "function clear_lists(){\n\tconsole.log(\"clear_lists\")\n\tusers=[]\n\tcontenders=[]\n\t//clears the potential winners list\n\t//clears contenders list\n\t//we should store winning user ID before clearing lists\n}", "_cleanNode(node){\n const removeList = [\"passengers\", \"flights\", \"documents\", \"phones\", \"emails\"];\n for(let i=0; i<removeList.length;i++){\n delete node[\"data\"][removeList[i]];\n }\n return node;\n }", "removeTokens(remove) { this.remove = remove }", "function discardToken() {\n delete oauth.access_token;\n tokenStore.forceOAuth = JSON.stringify(oauth);\n }", "function removeFromTokens(token) {\r\n for (var counter = 0; counter < tokens.length; counter++) {\r\n if (tokens[counter] === token) {\r\n tokens.splice(counter, 1);\r\n break;\r\n }\r\n }\r\n }", "function submitToBlacklist() {\n var blacklist_arr = JSON.parse(localStorage.getItem(\"blacklist\"));\n var element = document.getElementById(\"local_blacklist_text\").value;\n element = element.replace(/\\n/g, \" \");\n var parse_bl_input = element.split(/\\s+/);\n //console.log(parse_bl_input);\n var expression = /[-a-zA-Z0-9@:%_\\+.~#?&//=]{2,256}\\.[a-z]{2,4}\\b(\\/[-a-zA-Z0-9@:%_\\+.~#?&//=]*)?/gi;\n for (var i = 0; i < parse_bl_input.length; i++) {\n var url = parse_bl_input[i].match(expression);\n if (blacklist_arr == null) {\n if (url !== null) {\n blacklist_arr = [url];\n }\n } else {\n if (url !== null) {\n var count = 0;\n for (var h = 0; h < blacklist_arr.length; h++) {\n if (blacklist_arr[h].toString() == url.toString()) {\n count++;\n }\n }\n if (count == 0) {\n blacklist_arr.push(url);\n }\n }\n }\n }\n localStorage.setItem(\"blacklist\", JSON.stringify(blacklist_arr));\n updateBlacklist();\n}", "function onUndo() {\n hideNotification();\n var lastBlacklistedRID = lastBlacklistedTile.rid;\n if (typeof lastBlacklistedRID != 'undefined') {\n isUndoing = true;\n apiHandle.undoMostVisitedDeletion(lastBlacklistedRID);\n }\n}", "function removeRingMember(ip_address) \n{\n if(tokenRing.indexOf(ip_address) != -1) \n {\n var index = tokenRing.indexOf(ip_address);\n\t tokenRing.splice(index, 1);\n ringRoles.splice(index, 1);\n if(debug) console.log(\"Removing node at \" + ip_address);\n\n }\n else\n {\n if(debug) console.log(\"DNE: \"+ ip_address);\n }\n\n if(debug) console.log(\"Current group : \" + tokenRing);\n}", "static remove(tokens, toremove ){\n for( var i=tokens.length-1; i>=0; i-- ) if( toremove.indexOf(tokens[i].type) >= 0 ) tokens.remove(i)\n return tokens\n }", "function removeHashtags(){\n\n // console.log('asdf');\n for(var i=0;i<twitterFalseTags.length;i++)\n {\n if(twitterFalseTags[i].count>1){\n var index=hashtag.indexOf(twitterFalseTags[i].worldTag)\n hashtag.splice(index,1);\n }\n }\n twitterFalseTags=[];\n //console.log('asdfasdf'+hashtag);\n //liveTags = hashtag.splice();\n}", "removeRestChain (identifier){\n if (identifier in this.local_RestStubs)\n this.local_RestChains.splice(this.local_RestChains.indexOf(identifier), 1);\n if (identifier in this.local_identifiers)\n this.local_identifiers.splice(this.local_identifiers.indexOf(identifier), 1);\n \n }", "async addToBlackList (entry) {\n try {\n console.log('entry', entry)\n _this.setState({ inFetch: true })\n const { jwt } = getLocalUser()\n const options = {\n url: `${SERVER}/blacklist`,\n method: 'POST',\n headers: {\n Accept: 'application/json',\n Authorization: `Bearer ${jwt}`\n },\n data: {\n hash: entry._id,\n reason: 'Unspecified'\n }\n }\n const res = await axios(options)\n _this.setState({\n inFetch: false,\n blackListFetchStatus: {\n success: true,\n msg: res.data.message\n }\n })\n } catch (e) {\n _this.setState({\n inFetch: false,\n blackListFetchStatus: {\n success: false,\n msg: e.message\n }\n })\n }\n }", "function handleCleanUpBlacklist() {\n\tdb_readGeneric(function (localAccount) {\n\t\tsync_cleanBlacklist(function () { console.log(\"Blacklist should be clean now\", localAccount['blacklist']) }, localAccount);\n\t}, 1, \"account\");\n}", "function delete_token (token) {\n // Remove the id from the saved list\n var token_data = $.data(token.get(0), \"tokeninput\");\n var callback = $(input).data(\"settings\").onDelete;\n\n var index = token.prevAll().length;\n if(index > selected_token_index) index--;\n\n // Delete the token\n token.remove();\n selected_token = null;\n\n // Show the input box and give it focus again\n focus_with_timeout(input_box);\n\n // Remove this token from the saved list\n saved_tokens = saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1));\n if(index < selected_token_index) selected_token_index--;\n\n // Update the hidden input\n update_hidden_input(saved_tokens, hidden_input);\n\n token_count -= 1;\n\n if($(input).data(\"settings\").tokenLimit !== null) {\n input_box\n .show()\n .val(\"\");\n focus_with_timeout(input_box);\n }\n\n // Execute the onDelete callback if defined\n if($.isFunction(callback)) {\n callback.call(hidden_input,token_data);\n }\n }", "function delete_token (token) {\n // Remove the id from the saved list\n var token_data = $.data(token.get(0), \"tokeninput\");\n var callback = $(input).data(\"settings\").onDelete;\n\n var index = token.prevAll().length;\n if(index > selected_token_index) index--;\n\n // Delete the token\n token.remove();\n selected_token = null;\n\n // Show the input box and give it focus again\n focus_with_timeout(input_box);\n\n // Remove this token from the saved list\n saved_tokens = saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1));\n if(index < selected_token_index) selected_token_index--;\n\n // Update the hidden input\n update_hidden_input(saved_tokens, hidden_input);\n\n token_count -= 1;\n\n if($(input).data(\"settings\").tokenLimit !== null) {\n input_box\n .show()\n .val(\"\");\n focus_with_timeout(input_box);\n }\n\n // Execute the onDelete callback if defined\n if($.isFunction(callback)) {\n callback.call(hidden_input,token_data);\n }\n }", "function delete_token (token) {\n // Remove the id from the saved list\n var token_data = $.data(token.get(0), \"tokeninput\");\n var callback = settings.onDelete;\n\n var index = token.prevAll().length;\n if(index > selected_token_index) index--;\n\n // Delete the token\n token.remove();\n selected_token = null;\n\n // Show the input box and give it focus again\n input_box.focus();\n\n // Remove this token from the saved list\n saved_tokens = saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1));\n if(index < selected_token_index) selected_token_index--;\n\n // Update the hidden input\n update_hidden_input(saved_tokens, hidden_input);\n\n token_count -= 1;\n\n if(settings.tokenLimit !== null) {\n input_box\n .show()\n .val(\"\")\n .focus();\n }\n\n // Execute the onDelete callback if defined\n if($.isFunction(callback)) {\n callback.call(hidden_input,token_data);\n }\n }", "function remove_from_list(xsrf_token, do_value, action, child_user_id) {\n\tvar req = new XMLHttpRequest();\n\tvar form_data = new FormData();\n\tform_data.append(\"xsrf_token\", xsrf_token);\n\tform_data.append(\"do\", do_value);\n\tform_data.append(\"action\", action);\n\tform_data.append(\"child_user_id\", child_user_id);\n\treq.open(\"POST\", \"https://www.steamgifts.com/ajax.php\");\n\treq.send(form_data);\n}", "function getBlackList(callback) {\n sendRequest('blacklist', 'GET', {}, true, callback);\n}", "function handleRemoveBlockRequest(req, res) {\n if (!auth.assertHasUser(req)) return\n user = r.db(config.rethinkdb.db).table('users').get(parseInt(req.headers.userid))\n user('blocked').run(connection, function (err, cursor) {\n if (err) throw err\n // the blocked user array essentially as to be copied, searched, modified and re-inserted\n cursor.toArray(function (err, result) {\n if (err) throw err\n for (var i = 0; i < result.length; i++) {\n if (result[i] == req.body.userid) {\n user('blocked').deleteAt(i).run(connection, function (err, result) {\n user.update({blocked: result}).run(connection, function (err, r) {\n if (err) throw err\n res.status(200).send(JSON.stringify(result))\n })\n })\n break\n }\n }\n })\n })\n}", "function cleanList(){\n while(paymentList.firstChild)\n { paymentList.removeChild(paymentList.firstChild);}\n }//end of function clean list", "function addWhiteList(url) {\n var url = url.replace(/#.*$/, '');\n url = getLocation(url).hostname ;\n\n var temp1 = localStorage.getItem(\"whiteListObject\");\n if(temp1 !== \"\" && temp1 !== null){\n whitelistObject = JSON.parse(temp1);\n }\n\n whitelistObject[url] = url;\n localStorage.setItem(\"whiteListObject\",JSON.stringify(whitelistObject));\n}", "function hashRemove (string, list) {\n if (string in list) {\n list[string]--\n if (list[string] <= 0) {\n delete list[string]\n }\n }\n return list\n}", "cleanSuggestions () {\n //let before = this.suggestionPool.length;\n this.suggestionPool = this.suggestionPool.filter((suggestion) => {\n return !this.state.accepteds.some((accept) => {\n return suggestion.name === accept.name;\n });\n });\n }", "function delete_token (token) {\n // Remove the id from the saved list\n var token_data = $.data(token.get(0), \"tokeninput\");\n var callback = settings.onDelete;\n\n var index = token.prevAll().length;\n if(index > selected_token_index) index--;\n\n // Delete the token\n token.remove();\n selected_token = null;\n\n // Show the input box and give it focus again\n input_box.focus();\n\n // Remove this token from the saved list\n saved_tokens = saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1));\n if(index < selected_token_index) selected_token_index--;\n\n // Update the hidden input\n var token_ids = $.map(saved_tokens, function (el) {\n return el.id;\n });\n hidden_input.val(token_ids.join(settings.tokenDelimiter));\n\n token_count -= 1;\n\n if(settings.tokenLimit !== null) {\n input_box\n .show()\n .val(\"\")\n .focus();\n }\n\n // Execute the onDelete callback if defined\n if($.isFunction(callback)) {\n callback.call(hidden_input,token_data);\n }\n }", "function submitToWhitelist() {\n var whitelist_arr = JSON.parse(localStorage.getItem(\"whitelist\"));\n var element = document.getElementById(\"local_whitelist_text\").value;\n element = element.replace(/\\n/g, \" \");\n var parse_wl_input = element.split(/\\s+/);\n //console.log(parse_wl_input);\n var expression = /[-a-zA-Z0-9@:%_\\+.~#?&//=]{2,256}\\.[a-z]{2,4}\\b(\\/[-a-zA-Z0-9@:%_\\+.~#?&//=]*)?/gi;\n for (var i = 0; i < parse_wl_input.length; i++) {\n var url = parse_wl_input[i].match(expression);\n if (whitelist_arr == null) {\n if (url !== null) {\n whitelist_arr = [url];\n }\n } else {\n if (url !== null) {\n var count = 0;\n for (var h = 0; h < whitelist_arr.length; h++) {\n if (whitelist_arr[h].toString() == url.toString()) {\n count++;\n }\n }\n if (count == 0) {\n whitelist_arr.push(url);\n }\n }\n }\n }\n localStorage.setItem(\"whitelist\", JSON.stringify(whitelist_arr));\n updateWhitelist();\n}", "function removeListEntry() {\n\t$(this).closest(\".list_entry\").remove();\n}", "handleRemoveList(listId) {}", "function resetUserBlacklist(){\n if(mode == \"userset\"){\n removeUserSet();\n }\n usersetWebsites = {};\n chrome.storage.sync.set({'websites': usersetWebsites})\n}", "removeRequestValidation(address){\n\n this.mempool = this.mempool.filter(rem => rem.address !== address);\n }", "function removeEntry(listName, title,titleId){\r\n console.log(\"title: \" + title + \" id: \" + titleId)\r\n let listInfo = JSON.parse(window.localStorage.getItem(listName))\r\n let entryList = listInfo.entries;\r\n // loop through all entries until found remove element from array and call loadPage()\r\n for (let i = 0; i < entryList.length; i++){\r\n let info = entryList[i].split(\"-:\");\r\n\r\n let entryTitle = info[0]\r\n let entryID = info[1]\r\n if (entryTitle == title && entryID == titleId){\r\n entryList.splice(i,1)\r\n console.log(\"new list: \" + entryList);\r\n }\r\n }\r\n listInfo.entries = entryList;\r\n window.localStorage.setItem(listName,JSON.stringify(listInfo));\r\n loadPage(listName,listInfo.entries);\r\n}", "handleRemoveAllCards(listId) {}", "function whitelist(oObj, aAllowed){\n\tObject.keys(oObj).forEach(function(currentValue, index, array){\n\t\tif (aAllowed.indexOf(currentValue) == -1){\n\t\t\tdelete oObj[currentValue];\n\t\t}\n\t});\n}", "function removeUser(userList, username) {\r\n let newList = Object.assign({}, userList)\r\n delete newList[username]\r\n return newList\r\n}", "remove(tokens, toremove ){\n for( var i=tokens.size()-1; i>=0; i-- )\n if( this.toremove.indexOf(tokens[i].type) >= 0 ) tokens.splice(i,1)\n return tokens\n }", "function delete_token (token) {\n // Remove the id from the saved list\n var token_data = $.data(token.get(0), \"tokeninput\");\n var callback = $(input).data(\"settings\").onDelete;\n\n var index = token.prevAll().length;\n if(index > selected_token_index) index--;\n\n // Delete the token\n token.remove();\n selected_token = null;\n\n // Show the input box and give it focus again\n focus_with_timeout(input_box);\n\n // Remove this token from the saved list\n saved_tokens = saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1));\n if (saved_tokens.length == 0) {\n input_box.attr(\"placeholder\", settings.placeholder)\n }\n if(index < selected_token_index) selected_token_index--;\n\n // Update the hidden input\n update_hidden_input(saved_tokens, hidden_input);\n\n token_count -= 1;\n\n if($(input).data(\"settings\").tokenLimit !== null) {\n input_box\n .show()\n .val(\"\");\n focus_with_timeout(input_box);\n }\n\n // Execute the onDelete callback if defined\n if($.isFunction(callback)) {\n callback.call(hidden_input,token_data);\n }\n\n\t\t\t\tresize_input(true);\n }", "async invalidate (forever = false) {\n if (this.blacklist.isDisabled()) {\n throw new Error('You must enable the blacklist to invalidate a token')\n }\n\n const payload = await this.payload()\n\n return forever\n ? this.blacklist.forever(payload)\n : this.blacklist.add(payload)\n }", "function getBlackList() {\n return list('./files/private');\n}", "function clearToken() {\n token = null;\n return;\n }", "async visibleListingIds(root, args) {\n // Load all the action tags by listing ids.\n // A listing may have multiple tag rows. We only consider the most recent.\n const rows = await db.DiscoveryTagAction.findAll({\n where: { ListingId: { [Sequelize.Op.in]: args.ids } },\n order: [['id', 'DESC']]\n })\n const blacklistById = {}\n for (const row of rows) {\n if (\n blacklistById[row.ListingId] === undefined &&\n row.data &&\n row.data.tags\n ) {\n blacklistById[row.ListingId] =\n row.data.tags.includes('Hide') || row.data.tags.includes('Delete')\n }\n }\n return args.ids.filter(id => !blacklistById[id])\n }", "function remove(localBookList, bookName) {\n\tlet newBookList = localBookList.slice(); //This will create a new copy of a entered bookList\n\tvar book_index = localBookList.indexOf(bookName);\n\tif (book_index >= 0) {\n\t\tnewBookList.splice(book_index, 1);\n\t\treturn newBookList;\n\n\t\t// Change code above this line\n\t}\n}", "prune (callback) {\n var self = this;\n\n /*\n * Get a list of all my followers\n */\n \n this.twit.get('followers/ids', function (err, reply) {\n if(err) return callback(err);\n \n var followers = reply.ids;\n \n /*\n * Get a list of all the people I follow.\n */\n\n self.twit.get('friends/ids', function(err, reply) {\n if(err) return callback(err);\n \n var friends = reply.ids\n , pruned = false;\n \n\n /*\n * Find one person who doesn't follow me back and unfollow them.\n */\n\n while(!pruned) {\n var target = randIndex(friends);\n \n if(!~followers.indexOf(target)) {\n pruned = true;\n self.twit.post('friendships/destroy', { id: target }, callback); \n }\n }\n });\n });\n }", "async movieNightRemoveFromList(ctx, movie) {\n let list = ctx.getters.getMovieNightList;\n await list.forEach((m, i) => {\n if(m == movie) {\n list.splice(i, 1);\n }\n });\n await ctx.commit('setMovieNightList', list);\n }", "function removeUnaccepted(){\n\tunaccepted = new Array();\n\tfindUnacceptedApplications();\n}", "function deleteList(){\n\tlocalStorage.removeItem(list.key); // <===== SAVING TO LOCAL STORAGE\n\tlist = new signUpList(\"list\",\"signUpList\");\n\tupdateList();\n}", "async function deleteListHandler(body) {\n const output = {};\n if ('LID' in body && 'UUID' in body) {\n // user needs to have admin permissions to completely remove a list\n // to remove a user from a list, see delete /user in user route\n const userPermission = await dbclient.authenticate_list(body.LID, body.UUID);\n if (dbclient.is_admin(userPermission)) {\n await dbclient.delete_list(body.LID);\n output.status = 200;\n } else {\n output.status = 401;\n }\n } else {\n output.status = 400;\n }\n return output;\n}", "function hashUserList()\n{\n\t$(\"div.web-address-list li.selected\").removeClass('selected').children('input').removeAttr('checked');\n\t$(\"form\").each(function() { this.reset(); }); \n\t\n\t$(\"input[type=password\" , \"form#editRegister\").addClass(\"passwordField\");\n}", "static revokeToken() {\n this._revokeUserAuthorizationFromStore();\n\n const url = this.authUrlBeginning + \"revoke_token/\";\n const tokenFromLS = this.getTokenFromLS();\n\n localStorage.setItem(\"tokenObject\", \"\");\n\n const data = { token: tokenFromLS, client_id: process.env.REACT_APP_CLIENT_ID };\n const options = {\n headers: {\n \"Content-Type\": \"application/json\"\n },\n method: \"POST\",\n body: data\n };\n\n this._fetchFromAPI(url, options);\n }", "static loadTokensList() {\n const { availableTokens, network, walletAddress } = store.getState();\n\n if (network !== 'mainnet') return Promise.resolve();\n\n const availableTokensAddresses = availableTokens\n .filter(token => token.symbol !== 'ETH')\n .map(token => token.contractAddress);\n\n return fetch(\n `https://api.ethplorer.io/getAddressInfo/${walletAddress}?apiKey=freekey`,\n )\n .then(response => response.json())\n .then(data => {\n if (!data.tokens) {\n return Promise.resolve();\n }\n\n return data.tokens\n .filter(\n token =>\n !availableTokensAddresses.includes(token.tokenInfo.address),\n )\n .forEach(token => {\n store.dispatch({\n type: ADD_TOKEN,\n token: {\n contractAddress: token.tokenInfo.address,\n decimals: parseInt(token.tokenInfo.decimals, 10),\n name: token.tokenInfo.name,\n symbol: token.tokenInfo.symbol,\n },\n });\n });\n });\n }", "function purge_wss_list() {\n for(var k in WSS_LIST) {\n var n = RED.nodes.getNode(k);\n if(!n) {\n console.log(\"remove wss: \" + k);\n delete WSS_LIST[k];\n }\n }\n\n console.log(\"WSS_LIST: \" + Object.keys(WSS_LIST));\n }", "function addTokenToList()\n {\n if( addTokenGuard() )\n {\n inputError();\n return;\n }\n\n var element = $('<li/>',{\n 'class': 'mt-token',\n html: input.val() + ' <span class=\"mt-token-erase\">×</span>',\n });\n list.append(element);\n clearInput();\n }", "rejectFriendRequest(requestId){\n AsyncStorage.getItem('@MySuperStore:token', (err, token) => {\n var req = {requestId: requestId};\n fetch('http://journal-app-mundane-unicorns.herokuapp.com/api/friendreq', {\n method: 'DELETE',\n headers: {\n 'Content-Type': 'application/json',\n 'x-access-token': token\n },\n body: JSON.stringify(req)\n })\n .then((response) => {\n this.getFriendRequests();\n })\n .catch((error) => {\n console.log(\"fetch error:\", error)\n });\n });\n }", "doBlacklist() {\n let me = this;\n this.autoInit(this.options);\n const BLACKLIST = me.getDict(\"BLACKLIST\" /* EnumDictDatabase.BLACKLIST */);\n const TABLE = me.getDictDatabase(\"TABLE\" /* EnumDictDatabase.TABLE */);\n Object.entries(BLACKLIST)\n .forEach(function ([key, bool]) {\n bool && TABLE.remove(key);\n });\n return this;\n }", "function onUndo() {\n hideNotification();\n if (lastBlacklistedTile != null) {\n ntpApiHandle.undoMostVisitedDeletion(lastBlacklistedTile);\n }\n}", "function removeFromMylist() { return changeMylistState('remove',this); }", "refreshWhitelist(blInit = false)\n {\n var objEslTools = new EslTools();\n\n if(blInit) {\n var objTwitterWhitelist = {\n \"status\": true,\n \"timestamp\": 0,\n \"repo\": \"https://raw.githubusercontent.com/409H/EtherSecurityLookup/master/lists/twitter.whitelist.json\",\n \"users\": []\n };\n } else {\n var objTwitterWhitelist = this.getWhitelistStructure();\n }\n\n if(objTwitterWhitelist.status) {\n objEslTools.getListFromGithub(objTwitterWhitelist).then(function (objList) {\n objTwitterWhitelist.timestamp = Math.floor(Date.now() / 1000);\n objTwitterWhitelist.users = objList;\n\n localStorage.setItem(\"ext-ethersecuritylookup-twitter_whitelist\", JSON.stringify(objTwitterWhitelist));\n this.getStats();\n }.bind(this));\n }\n }", "clearLISTadtl_() {\r\n for (let i = 0, len = this.LIST.length; i < len; i++) {\r\n if (this.LIST[i].format == 'adtl') {\r\n this.LIST.splice(i);\r\n }\r\n }\r\n }", "static async TokenBack(src, dest, token, to, amount) {\n const tx = await src.Unlock(token, to, amount);\n // wait light client\n return Bridge.CrossRelay(src, dest, tx.transactionHash);\n }", "function removeToken() {\n localStorage.removeItem('authorization');\n }", "static async remove (trackIdsToRemove = [], userIdsToRemove = []) {\n // Get tracks from param and by parsing through user tracks\n const tracks = await this.getTracksFromUsers(userIdsToRemove)\n trackIdsToRemove = [...tracks.map(track => track.blockchainId), ...trackIdsToRemove]\n\n // Dedupe trackIds\n const trackIds = new Set(trackIdsToRemove)\n\n // Retrieves CIDs from deduped trackIds\n const segmentCIDsToRemove = await this.getCIDsFromTrackIds([...trackIds])\n\n try {\n await this.removeFromRedis(REDIS_SET_BLACKLIST_TRACKID_KEY, trackIdsToRemove)\n await this.removeFromRedis(REDIS_SET_BLACKLIST_USERID_KEY, userIdsToRemove)\n await this.removeFromRedis(REDIS_SET_BLACKLIST_SEGMENTCID_KEY, segmentCIDsToRemove)\n } catch (e) {\n throw new Error(`Failed to remove from blacklist: ${e}`)\n }\n }", "delete(token) {\n this.assignedValues.delete(token);\n this.tearDownBindingObserver(token);\n const upstream = this.getRaw(token);\n\n if (upstream) {\n this.hydrate(token, upstream);\n } else {\n this.store.delete(token);\n }\n }", "function discardTokenState() {\n tokenStates.pop();\n }", "function getBlacklistedItems(callback) {\n\t\tlogTrace('invoking getBlacklistedItems($)', callback);\n\n\t\tstorageGet(null, function callback_storageGet(result) {\n\t\t\tlogTrace('callback invoked: storageGet($)', null, result);\n\n\t\t\tlet blacklistedItems = {};\n\t\t\tif (typeof result.blacklistedItems === 'object') {\n\n\t\t\t\tblacklistedItems = result.blacklistedItems;\n\n\t\t\t} else if (typeof result['blItemsFragment0'] === 'object') {\n\n\t\t\t\tblacklistedItems = mergeBlacklistFragments(result);\n\t\t\t\tlogVerbose('Merged fragments to blacklist:', result, blacklistedItems);\n\t\t\t}\n\n\t\t\tif (typeof callback === 'function') {\n\n\t\t\t\tcallback(blacklistedItems);\n\t\t\t}\n\t\t});\n\t}", "async removeList(req,res){\n const {id} = req.params;\n const response = await user.findById(req.userId);\n if(response.userType === 'comum'){ \n await GitUserList.findByIdAndRemove(id);\n res.sendStatus(200);\n }\n else{\n res.status(400).json({error: 'User does not have permission'});\n }\n }", "function rawCleanupUserToken(callback)\n{\n\tvar\tdkcobj\t\t\t= k2hr3.getK2hdkc(true, false);\t\t\t\t\t\t\t\t\t\t// use permanent object(need to clean)\n\tif(!apiutil.isSafeEntity(dkcobj)){\n\t\tcallback(false);\n\t\treturn;\n\t}\n\n\tvar\tkeys\t\t\t= r3keys();\n\tvar\tsubkeylist\t\t= dkcobj.getSubkeys(keys.TOKEN_USER_TOP_KEY, true);\t\t\t\t\t// get subkeys under \"yrn:yahoo::::token:user\"\n\tvar\tretrive_skeys\t= new Array(0);\n\tfor(var cnt = 0; cnt < subkeylist.length; ++cnt){\n\t\tvar\tuser_token_key = dkcobj.getValue(subkeylist[cnt], null, true, null);\n\t\tif(!apiutil.isSafeString(user_token_key)){\n\t\t\t// value is not existed, so this key should be removing\n\t\t\tretrive_skeys.push(subkeylist[cnt]);\n\t\t}else{\n\t\t\t//\n\t\t\t// user_token_key => \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token/<token>\"\n\t\t\t//\n\t\t\tvar\tvalue = dkcobj.getValue(user_token_key, null, true, null);\n\t\t\tif(!apiutil.isSafeString(value)){\n\t\t\t\t// user_token_key is not existed or expired.\n\t\t\t\tretrive_skeys.push(subkeylist[cnt]);\n\n\t\t\t\t// try remove user_token_key from \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token\" subkey list\n\t\t\t\tvar\tparent_user_key = apiutil.getParentPath(user_token_key);\n\t\t\t\tif(apiutil.isSafeString(parent_user_key)){\n\t\t\t\t\tvar\tuser_skeys = dkcobj.getSubkeys(parent_user_key, true);\t\t\t\t// get subkeys under \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token\"\n\t\t\t\t\tif(apiutil.removeStringFromArray(user_skeys, user_token_key)){\n\t\t\t\t\t\tif(!dkcobj.setSubkeys(parent_user_key, user_skeys)){\t\t\t\t// update subkey -> \"yrn:yahoo::::user:<user>:tenant/{<tenant>}/token\"\n\t\t\t\t\t\t\tr3logger.wlog('could not update subkey under ' + parent_user_key + ' key, but continue...');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tr3logger.wlog('could not get parent key from ' + user_token_key + ' key, but skip it and continue...');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(0 < retrive_skeys.length){\n\t\t// need to remove keys from subkey list\n\t\tvar\tis_update\t= false;\n\t\tsubkeylist\t\t= dkcobj.getSubkeys(keys.TOKEN_USER_TOP_KEY, true);\t\t\t\t\t// re-get subkeys under \"yrn:yahoo::::token:user\"\n\n\t\tfor(cnt = 0; cnt < retrive_skeys.length; ++cnt){\n\t\t\tif(apiutil.removeStringFromArray(subkeylist, retrive_skeys[cnt])){\n\t\t\t\tis_update = true;\n\t\t\t}\n\t\t}\n\t\tif(is_update){\n\t\t\tif(!dkcobj.setSubkeys(keys.TOKEN_USER_TOP_KEY, subkeylist)){\t\t\t\t\t// update subkey -> \"yrn:yahoo::::token:user\"\n\t\t\t\tr3logger.elog('could not update subkey under ' + keys.TOKEN_USER_TOP_KEY + ' key, but continue...');\n\t\t\t\tdkcobj.clean();\n\t\t\t\tcallback(false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tdkcobj.clean();\n\tcallback(true);\n}", "function unblacklistUser(author, userId, guild){\r\n\tlet specs = utils.getSpecifics(guild);\r\n\tif (isBlacklistedUser(userId, guild)){\r\n\t\tconst index = specs.blacklist.indexOf(userId);\r\n\t\tspecs.blacklist.splice(index, 1);\r\n\t\tutils.log(\"Removed \"+userId+\" from the blacklist\");\r\n\t}\r\n\tutils.writeSpecifics(guild, specs);\r\n\treturn sendBlacklist(author, guild);\r\n}", "removeWallet() {}", "function remove (){\n match_list.pop();\n match_list.pop();\n }", "function removePreloadListFromBlacklist(){\n for(let i in sensitiveWebsites){\n delete websiteMap[sensitiveWebsites[i]];\n }\n}", "clearLISTadtl_() {\n for (let i=0; i<this.LIST.length; i++) {\n if (this.LIST[i].format == 'adtl') {\n this.LIST.splice(i);\n }\n }\n }", "function validate_blacklist_whitelist() {\n var form = get_form_data('#blacklist_whitelist_form');\n var command = $('#is_blacklisted').prop('checked')?\"blacklist\":\"whitelist\";\n if (check_field_empty(form.nick, 'nick'))\n return false;\n\n var dataObj = {\n \"content\" : [{\n \"session_id\" : get_cookie()\n }, {\n \"nick\" : form.nick\n }]\n };\n call_server(command, dataObj);\n}", "removeRestStub (identifier){\n if (identifier in this.local_RestStubs)\n this.local_RestStubs.splice(this.local_RestStubs.indexOf(identifier), 1);\n if (identifier in this.local_identifiers)\n this.local_identifiers.splice(this.local_identifiers.indexOf(identifier), 1);\n \n }", "delete(value){\n this.members = this.members.filter(v => v !== value);\n }", "function removeFromLocalList(remoteList) {\n if ( isArrayEmpty(localList) ) {\n // the local list is empty. Do nothing\n return;\n }\n for (var nickname in localList) {\n if ( remoteList[nickname] == null ) {\n // an user in local list doesn't exist in remote list\n // get the node with this nick name\n var nodes = $(\"userList\").childNodes;\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i].lastChild; // should be the text node\n if (node.nodeValue == nickname) {\n // remove this node\n nodes[i].shrink({\n afterFinish: removeDt\n });\n delete localList[nickname];\n break;\n }\n }\n }\n }\n}", "async getBlackList({request, response}) {\n const names = await nameService.findWhere('status', 0)\n\n return response.status(200).send({\n status: 200,\n names: names\n })\n }", "function sanitizedforindemnity(lst) {\n let name = lst[0]\n // console.log(name)\n let query = makeQuery(name)\n pullCloudKitData(query,\n (result) =>{\n //console.log(result)\n store.dispatch({type:\"FETCH_\"+name+\"_STOP\",\n success: true, \n payload: result})\n if (lst.length !== 1) {\n sanitizedforindemnity(lst.slice(1))\n }\n })\n }", "function removeFromHash(sid) {\n\t// simultaneously checks for this sentence in the hash and assigns the\n\t// concept if present\n\tif (concept = conceptHash.get(sid)) {\n\t\t// alert('found this sentence in the hash');\n\t\tconceptHash.unset(sid);\n\n\t\t// alert('values are '+conceptHash.values());\n\t\t// if there is now nothing with that exact concept id in the hash\n\t\tif (conceptHash.values().indexOf(concept) == -1) {\n\t\t\t// rejiggering of the numbers in the hash is required\n\t\t\tfixHash(concept, sid);\n\t\t}\n\t}\n}", "removeTest(identifier){\n \tif (this.reststublist.indexOf(identifier) > -1)\n \t\t\tthis.reststublist.splice(this.reststublist.indexOf(identifier), 1);\n }", "async loadTokensList() {\n return null;\n }", "function BOT_delete(list,atom) {\r\n\tvar l = new Array();\r\n\tfor(i in list) {\r\n\t\tif(list[i] != atom) l = l.concat([list[i]]);\r\n\t}\r\n\treturn l;\r\n}", "function remove() {\n // sessionStorage.removeItem(TOKEN_KEY);\n}", "function delToken() {\n noToken = \"Token Removed\";\n $.ajax({\n type: 'POST',\n url: '/savetoken',\n data: { token: noToken },\n success: function() {\n console.log('Removed token from SP database: ' + noToken);\n window.location.reload();\n }\n });\n}", "async delist(item) {}", "function removeFromUserSetBlacklist(url){\n if(mode == \"userset\"){\n removeUserSet();\n }\n delete usersetWebsites[url];\n chrome.storage.sync.set({'websites': usersetWebsites})\n if(mode == \"userset\"){\n preloadUserSet();\n //Refresh policies\n chrome.storage.sync.clear();\n chrome.storage.sync.set(mapToSettings());\n }\n\n}", "function remove(array, token){\n\tvar newArray = new Array();\n\t\n\tfor(var i=0; i<array.length; i++){\n\t\tif(array[i].getTokenString() != token.getTokenString() &&\n\t\t array[i].getTokenKind() != token.getTokenKind()){\n\t\t\tnewArray.push(array[i]);\n\t\t}\n\t}\n\n\treturn newArray;\n}", "_pruneGameSummaryList(gameSummaryList) {\n // Hacky\n const isCollectionList = !/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/.test(gameSummaryList.id);\n const now = Date.now();\n\n const completed = [];\n for (const gameSummary of gameSummaryList.values()) {\n if (gameSummary.endedAt)\n completed.push(gameSummary);\n else if (gameSummary.startedAt && isCollectionList) {\n if (!gameSummary.turnTimeLimit)\n gameSummaryList.delete(gameSummary.id);\n else if (gameSummary.getTurnTimeRemaining(now) === 0)\n gameSummaryList.delete(gameSummary.id);\n }\n }\n completed.sort((a,b) => b.endedAt - a.endedAt);\n\n if (completed.length > 100)\n for (const gameSummary of completed.slice(100)) {\n gameSummaryList.delete(gameSummary.id);\n }\n }" ]
[ "0.58116317", "0.56265426", "0.5623505", "0.54492575", "0.53926015", "0.5390373", "0.53650695", "0.53305995", "0.5243471", "0.52257824", "0.5115779", "0.5111097", "0.509937", "0.5066188", "0.50565386", "0.5055926", "0.50168896", "0.50134844", "0.50092185", "0.49956807", "0.4938172", "0.49330676", "0.49299747", "0.49290657", "0.49279448", "0.49194646", "0.49174002", "0.49170643", "0.49149767", "0.48995626", "0.48995626", "0.488674", "0.48844475", "0.48741025", "0.48704198", "0.48694524", "0.48664805", "0.48393288", "0.48324275", "0.48315865", "0.48269853", "0.48258656", "0.4813366", "0.48042503", "0.4803711", "0.48027906", "0.47968194", "0.47944736", "0.47941366", "0.4789743", "0.4784234", "0.47840703", "0.47612554", "0.47577265", "0.4750023", "0.47464922", "0.47428754", "0.47409558", "0.47260696", "0.47219944", "0.47180307", "0.47125342", "0.47105032", "0.47035387", "0.46975935", "0.46832812", "0.46823135", "0.46814933", "0.46812588", "0.46713406", "0.46649158", "0.46647274", "0.4662082", "0.46561158", "0.46496814", "0.46493712", "0.46443114", "0.46367857", "0.4634286", "0.46326846", "0.46296", "0.46241567", "0.4622397", "0.46219376", "0.46180543", "0.46151042", "0.46098286", "0.46040177", "0.45999432", "0.45975098", "0.45886827", "0.45865116", "0.45864284", "0.45843372", "0.4579018", "0.45789385", "0.45783195", "0.45769796", "0.4574631", "0.45665646", "0.45622337" ]
0.0
-1
Return a bool indicating if this listing has been whitelisted
isWhitelisted(listing) { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return yield deployed.methods.isWhitelisted(listing).call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isBlacklisted() {\n\t var blacklist = this.opts.blacklist;\n\t return blacklist && blacklist.indexOf(this.node.type) > -1;\n\t}", "function isBlacklisted() {\n\t var blacklist = this.opts.blacklist;\n\t return blacklist && blacklist.indexOf(this.node.type) > -1;\n\t}", "function isBlacklisted() {\n var blacklist = this.opts.blacklist;\n return blacklist && blacklist.indexOf(this.node.type) > -1;\n}", "function isBlacklistedItem(item) {\n\t\tlogTrace('invoking isBlacklistedItem($)', item);\n\n\t\t// blacklisted for being a rerun\n\t\tif (hideReruns && (item.rerun === true)) { return true; }\n\n\t\tif (storedBlacklistedItems[item.type] === undefined) { return false; }\n\n\t\t// blacklisted by name\n\t\tif (matchTerms(item.name, item.type)) {\n\n\t\t\tlogTrace('blacklisted by name:', item.name);\n\t\t\treturn true;\n\t\t}\n\n\t\t// blacklisted by category\n\t\tif (matchTerms(item.category, 'categories')) {\n\n\t\t\tlogTrace('blacklisted by category:', item.category);\n\t\t\treturn true;\n\t\t}\n\n\t\t// blacklisted by tag\n\t\tconst tagsLength = item.tags.length;\n\t\tfor (let i = 0; i < tagsLength; i++) {\n\n\t\t\tif (matchTerms(item.tags[i].name, 'tags')) {\n\n\t\t\t\tlogTrace('blacklisted by tag:', item.tags[i].name);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// blacklisted by title\n\t\tif (matchTerms(item.title, 'titles')) {\n\n\t\t\tlogTrace('blacklisted by title:', item.title);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "_isWhiteListed(domain) {\n const {domains} = this.props;\n return _.isObject(_.find(domains, object => {\n return object.domain === domain;\n }));\n }", "isWhitelistBtc(address) {\n return this.#whitelistBtc.indexOf(address) !== -1\n }", "canShowButlerUI() {\n if (this.hasEnterprise()) {\n if (\n featureFlagClient\n .get('workflowers.butler-ent-admin-only-allowlist', [])\n .includes(this.get('idEnterprise'))\n ) {\n return (\n this.getEnterprise().isAdmin(Auth.me()) ||\n (this.get('idOrganization') &&\n this.getOrganization()?.isAdmin(Auth.me()))\n );\n }\n }\n return true;\n }", "function userCanFetchShoppingList(account, shoppingList) {\r\n var userHasRight = false;\r\n if (account.shoppingLists.indexOf(shoppingList._id) > -1 && shoppingList.isActive) {\r\n userHasRight = true;\r\n }\r\n else {\r\n userHasRight = false;\r\n }\r\n return userHasRight;\r\n}", "async isAllowed() {\n return config.isDeveloperMode;\n }", "function _isBlocked() {\r\n var isblock = $.blockUI.IsPageBlocked();\r\n return isblock == null ? false : true;\r\n }", "shouldQuarantine () {\n for (let index = 0; index < this.passengerList.length; index += 1) {\n let passengersHealth = this.passengerList [index];\n if (passengersHealth.isHealthy === false) {\n return true;\n }\n }\n return false;\n }", "shouldQuarantine() {\r\n if (this.passengers.map(passenger => (passenger.isHealthy)).includes(false)) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n\r\n }", "function isBlacklistedUser(author, guild){\r\n\tconst specs = utils.getSpecifics(guild);\r\n\tfor (let i = 0; i < specs.blacklist.length; i++){\r\n\t\tconst thisBlacklistId = specs.blacklist[i];\r\n\t\tif (thisBlacklistId.search(author.id) > -1){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}", "isTagWhitelisted( v ){\n return !!this.getWhitelistItem(v)\n /*\n return this.settings.whitelist.some(item =>\n typeof v == 'string'\n ? sameStr(this.trim(v), (item.value || item))\n : sameStr(JSON.stringify(item), JSON.stringify(v))\n )\n */\n }", "function isUrlListed(url) {\n return appSettings.appendAuthTokenUrls && \n _.some(appSettings.appendAuthTokenUrls, function (listedUrl) { return _.startsWith(url, listedUrl) });\n }", "get whitelist(){\n return this._whitelist;\n }", "isUserList() {}", "shouldQuarantine() {\n const healthy = this.passengers.some(traveler => traveler.isHealthy === false)\n return healthy\n }", "isSecurityEnabled() {\n\t\treturn this._memberServices !== undefined;\n\t}", "function isEnabled() {\n return (tracker.currentWidget !== null &&\n tracker.currentWidget === app.shell.currentWidget);\n }", "isTagBlacklisted( v ){\n v = this.trim(v.toLowerCase());\n return this.settings.blacklist.filter(x => (\"\"+x).toLowerCase() == v).length;\n }", "get isBlocked() {\n\n }", "isEnabled() {\n return this.enabled && this.severity >= exports.Severity.WARN;\n }", "_includedInFilter(filter) {\n return (typeof filter === 'boolean' && filter === true);\n }", "function inWhiteList(domain){\n\t\tif(domain.length==0)return false;\n\t\n\t\t//TODO: populate this line with 2nd level domains\n\t\t//whitelist = \"dirty.ru, livejournal.com, wikipedia.org, leprosorium.ru, rian.ru, ebay.com, flickr.com, lenta.ru, yandex.net, yandex.ru, youtube.com, 1tv.ru, wikimedia.org, nytimes.com, d3search.ru, adm-dirty.ru\";\n\t\tvar whitelist = jsonParse( localStorGetItem( 'faviconsWhitelist',\"[]\"));\n\t\t\n\t\tif(whitelist == \"*\"){\n\t\t\treturn true;\n\t\t}else{\n\t\t\twhitelist = whitelist+\",\";\n\t\t\t//next line done in the caller function\n\t\t\t//domain = extractDomain(domain);\n\t\t\tif(whitelist.indexOf(domain+\",\")>-1) {\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\n\t}", "isRunning() {\n return this.feedStartTime !== null;\n }", "function isWatching(name) {\r\n if (profiles_watched == undefined) {\r\n var list = localStorage.getItem(STORAGE_NAME);\r\n if (list != undefined)\r\n profiles_watched = list.split(STORAGE_SEP);\r\n else\r\n profiles_watched = new Array();\r\n }\r\n\r\n for (var i=0; i<profiles_watched.length; ++i) {\r\n if (profiles_watched[i] == name)\r\n return 1\r\n }\r\n\r\n return 0;\r\n}", "get disabled() { return this._disabled || !!(this._list && this._list.disabled); }", "get disabled() { return this._disabled || !!(this._list && this._list.disabled); }", "haveToShowAdditionalFilters() {\n const {filterType} = this.state;\n if (filterType === null) {\n return false;\n }\n const additionalFilters = this.getAdditionalFilters();\n return (additionalFilters !== null);\n }", "function whitelisted(url) {\n\t\tvar sites = conf.site_whitelist,\n\t\t\tnum_sites = sites.length;\n\n\t\tfor (var i = 0; i < num_sites; i++) {\n\t\t\t// TODO match from the beginning of the string to avoid false matches (somewhere in the querystring for instance)\n\t\t\tif (url.indexOf(sites[i]) >= 0) {\n\t\t\t\treturn sites[i];\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function checkBlackList(curr) {\n var flag = false\n for (var i = 0; i < blacklist.length; i++) { \n if (curr.includes(blacklist[i])){\n flag = true;\n break;\n }\n }\n return flag;\n}", "function is_market_locked() {\n return (marketLockedForPlayer != null);\n}", "isEnabled() {\n return this.optionsWatcher.isEnabled('threadlistavatars');\n }", "function checkWhitelist(hostname)\r\n{\r\n //Calling a function from url.js\r\n var domains = extractSubDomains(hostname);\r\n for (var domain of domains)\r\n {\r\n if (doNotBlockHosts[domain] != undefined)\r\n {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}", "function senderAllowed(sender) {\n // if sender.tab is not defined, the message comes from the extension\n if (sender.tab && !whitelistedChecker(sender.tab.url)) {\n return false\n }\n return true\n}", "displayWithheld() {\n if (this.getBroadbandSelected() === \"None\") { return false };\n if (this.data) {\n return this.data.BROADBAND_VARIABLES[this.getBroadbandSelected()].showWithheld;\n } else {\n return false;\n }\n }", "hasFilters() {\n return Object.keys(this.filters).length > 0\n }", "function isBlacklistedUser(userId, guild){\r\n\tconst specs = utils.getSpecifics(guild);\r\n\tfor (let i = 0; i < specs.blacklist.length; i++){\r\n\t\tconst thisBlacklistId = specs.blacklist[i];\r\n if (thisBlacklistId == userId){\r\n return true;\r\n }\r\n\t}\r\n\treturn false;\r\n}", "function isEnabled() {\n var active = localStorage.getItem(\"active\");\n return (active && (active == \"true\")) ? true : false;\n}", "function isScanning() {\n const scanning = scanDialog.getSessionProperty({ path: 'scan.currentlyScanning' });\n return scanning;\n }", "checkStateAdmin(){\n\t\tif (this.$state.current.name.includes(\"helperIndicators\") || this.$state.current.name.includes(\"clinics\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "hasProductsList() {\n this.searchResults.waitForDisplayed(3000);\n return this.searchResults.isDisplayed();\n }", "function isInFavorites(trail){\n var contains = false;\n var uniqueId = trail.unique_id;\n for(t in vm.currentUser.trails){\n if(vm.currentUser.trails[t].unique_id == uniqueId){\n contains = true;\n break;\n }\n }\n return contains;\n }", "isEnabled() {\n return this._isEnabled;\n }", "getIsEnabled() {\n return this._executeAfterInitialWait(() => this.currently.isEnabled());\n }", "function whitelist(list) {\n if (Array.isArray(list)) {\n list = new Set(list);\n } else if (!(list instanceof Set)) {\n throw new TypeError('\"list\" must be an Array or a Set');\n }\n\n return function whitelistTest(request, reject, approve) {\n if (list.has(request.path)) {\n approve(request);\n } else {\n reject(`Unauthorized subscription to \"${request.path}\"`);\n }\n }\n}", "hasSecureStatus() {\n return (this.isAuthenticated() && this.token.hasSecureStatus());\n }", "function isSubscribed(username) {\n\treturn getSubscribedList()[username] != undefined;\n}", "static isShowingFavouritesOnly(){\n let settings = JSON.parse(localStorage.getItem('userPreferences'));\n if (settings === null || settings === undefined) {\n return false;\n }\n\n if(settings.showFavouritesOnly === null || \n settings.showFavouritesOnly === undefined ){\n return false;\n }\n return settings.showFavouritesOnly;\n}", "function canEnable (item, session) {\n return session.isGroupIncluded(item.acls.enable);\n }", "function preFilter(li) {\n let ID = idFromLi(li);\n let name = fullNameFromLi(li);\n\n log(\"Pre-filtering \" + name + ' [' + ID + ']');\n\n if (opt_hidehosp && isInHosp(li)) {\n log('***** preFilter: in hospital! (' + name + + ' [' + ID + '])');\n return true;\n }\n if (opt_hidefedded && isFedded(li)) {\n log('***** preFilter: fedded! (' + name + + ' [' + ID + '])');\n return true;\n }\n if (opt_hidefallen && isFallen(li)) {\n log('***** preFilter: fallen! (' + name + + ' [' + ID + '])');\n return true;\n }\n if (opt_hidetravel && isTravelling(li)) {\n log('***** preFilter: travelling! (' + name + + ' [' + ID + '])');\n return true;\n }\n\n return false;\n }", "get supportsMailingLists()\n\t{\n\t\texchWebService.commonAbFunctions.logInfo(\"exchangeAbFolderDirectory: get supportsMailingLists\\n\");\n\t\treturn true;\n\t}", "isBlocked(doc) {\n if (doc._source.published == false) {\n return true;\n }\n\n var visibility = doc._source.visibility;\n if (isObject(visibility) && isString(visibility.id)) {\n visibility = visibility.id.toLowerCase();\n } else if (util.isString(visibility)) {\n visibility = visibility.toLowerCase();\n } else {\n visibility = null;\n }\n\n switch (visibility) {\n case 'open':\n return false;\n case 'restricted':\n return !this.isReadingRoom();\n case 'authenticated':\n return this.isNotLoggedIn() &! this.isReadingRoom(); \n default:\n return false;\n }\n }", "checkBrokenSites (domain) {\n if (!trackersWhitelistTemporary) {\n return\n } else {\n return trackersWhitelistTemporary.indexOf(domain) !== -1 ? true : false\n }\n }", "check() {\n let isLoggedIn = this.Storage.getFromStore('isLoggedIn');\n\n if(isLoggedIn) {\n return true;\n }\n\n return false;\n }", "function isVideoBroadcasting() {\n const ds = Deskshare.findOne({});\n if (ds == null || !ds.broadcasting) {\n return false;\n }\n\n return (ds.broadcasting && ds.startedBy != Auth.userID);\n}", "get isMailList()\n\t{\n\t\t//exchWebService.commonAbFunctions.logInfo(\"exchangeAbFolderDirectory: get isMailList\\n\");\n\t\tif (this._isMailList) {\n\t\t\treturn this._isMailList;\n\t\t}\n\n\t\treturn false;\n\t}", "get allowed () {\r\n\t\treturn this._allowed;\r\n\t}", "isEveryoneAlwaysReady(vcList) {\n const botUsers = vcList.filter(vcUser => vcUser.user.bot === true); \n const check = (vcList.size <= this.alwaysReadyCollection.size + this.skipCollection.size + botUsers.size);\n return check;\n }", "function _isShrunk() {\n\t\treturn shrink.hasClass(CLASS_HIDDEN);\n\t}", "function canStream(entryName) {\n\t\tvar ext = entryName.split('.').pop().toLowerCase();\n\t\treturn _.includes(streamTypes, ext);\n\t}", "isScreenSharing() {}", "hasWarnings() {\n return this.warningCount > 0;\n }", "static isDeviceListAvailable() {\n return RTCUtils.isDeviceListAvailable();\n }", "function containsFav(program) {\n return favs.indexOf(program) !== -1;\n }", "function hasProgramFilter() {\n var result = _.findWhere(vm.programs, {\n isChecked: true\n });\n return typeof result !== 'undefined';\n }", "function hasTrophy(trophy) {\n if(localStorage.trophiesObtained.indexOf(trophy)>-1) {return true;}\n else {return false;}\n }", "setWhitelistStatusFromGlobal () {\n let globalwhitelists = ['whitelisted']\n globalwhitelists.map((name) => {\n let list = settings.getSetting(name) || {}\n this.setWhitelisted(name, list[this.domain])\n })\n }", "isSharing() {\n return this.data()[\"sharing\"]\n }", "isEnabled() {\n return !!this.config[this.name];\n }", "isEnabled() {\n return !!this.config[this.name];\n }", "function isSubscribed(username) {\n return (getSubscribedUsers().length > 0 ? (getSubscribedList()[username] != undefined) : false);\n /*if (getSubscribedUsers() != []) { return (getSubscribedUsers()[username] != null); }\n else { return false; }*/\n }", "isInFlight() {\n return this.location != null && this.location instanceof Toss;\n }", "isInactive() {\n return this.workStatus == 0;\n }", "isCurrentListId(listId) {\n const ret = this.data().listId == listId;\n return ret;\n }", "toggleOption()\n {\n var objTwitterWhitelist = this.getWhitelistStructure();\n if(document.getElementById('ext-ethersecuritylookup-twitter_whitelist_checkbox').checked) {\n objTwitterWhitelist.status = true;\n } else {\n objTwitterWhitelist.status = false;\n }\n\n localStorage.setItem(\"ext-ethersecuritylookup-twitter_whitelist\", JSON.stringify(objTwitterWhitelist));\n }", "companyExists(company) {\n const watchlist = this.customWatchlist;\n return watchlist.includes(company)\n }", "function checkBlacklist() {\n\n if (jQuery.inArray(upgradetier, streamerblacklist) !== -1) {\n\n $('#ddosOffline').text('OFFLINE');\n $('#buyupgrade').prop('disabled', true);\n\n } else {\n\n $('#ddosOffline').text('');\n $('#buyupgrade').prop('disabled', false);\n\n }\n\n\n}", "checkCheckers() {\n return this.unusedCheckers.length === 0 ? false : true;\n }", "get isEnabled() {\n\t\treturn Boolean(window.Worker);\n\t}", "checkFavorites(sourceStr) {\n if (this.state.favoriteSources.includes(sourceStr)) {\n return true;\n }\n return false;\n }", "async function checkWishlist() {\n\t// If the current user is logged in:\n\tif (wixUsers.currentUser.loggedIn) {\n\t\t// Query the collection to find if the item was already added to the user's hiking list.\n\t\tlet wishListResult = await wixData.query(\"myhikes\")\n\t\t\t.eq(\"hike\", hike._id)\n\t\t\t.eq(\"userId\", user.id)\n\t\t\t.find();\n\n\t\t// If the item was already added to the user's hiking list:\n\t\tif(wishListResult.items.length > 0)\n\t\t\t// Show the \"inWishList\" image with a fade effect.\n\t\t\t$w('#inWishList').show('fade', {duration: 100});\n\t\t// If the product was not yet added to the user's wishlist:\n\t\telse\n\t\t\t// Show the \"notInWishList\" image with a fade effect.\n\t\t\t$w('#notInWishList').show('fade', {duration: 100});\t\n\t}\n\t// If the current user is not logged in:\n\telse {\n\t\t// Show the \"notInWishList\" image with a fade effect.\n\t\t$w('#notInWishList').show('fade', {duration: 100});\n\t}\n}", "function isLoadingDone() {\n if (appData.lists.length && appData.members.length) {\n return true;\n } else {\n return false;\n }\n}", "function validate_blacklist_whitelist() {\n var form = get_form_data('#blacklist_whitelist_form');\n var command = $('#is_blacklisted').prop('checked')?\"blacklist\":\"whitelist\";\n if (check_field_empty(form.nick, 'nick'))\n return false;\n\n var dataObj = {\n \"content\" : [{\n \"session_id\" : get_cookie()\n }, {\n \"nick\" : form.nick\n }]\n };\n call_server(command, dataObj);\n}", "function isList($this){\n\t\tvar pass = true;\n\t\t$this.each(function(){\n\t\t\tif(!$(this).is('ul') && !$(this).is('ol')){\n\t\t\t\tpass=false;\n\t\t\t}\n\t\t});\n\t\treturn pass;\n\t}//isList()", "areNoItemsInactive() {\n let objects = [].concat(this.coins).concat(this.itemsInPlay);\n\n for (let i = 0; i < objects.length; i++) {\n if (objects[i].status === \"inactive\") {\n return false\n }\n }\n\n return true;\n }", "userProfileHasLoaded(){\n\t\tif(resources.username().waitForVisible(10000) &&\n\t\tresources.settingsToolBar().waitForVisible(10000)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "async saved() {\n return (await this.client.user.hasShows(this.id))[0] || false;\n }", "get isPWA() {\n return window.matchMedia(this.PWA).matches;\n }", "isCurrentlyDisplaying () {\n\t\treturn !!this[CURRENT_PROMISE];\n\t}", "isVisible() {\n return this._visibility === 'visible';\n }", "readyCheck(vcList) {\n const botUsers = vcList.filter(vcUser => vcUser.user.bot === true); \n const isEveryoneReady = (vcList.size <= this.readyCollection.size + this.skipCollection.size + botUsers.size);\n return isEveryoneReady;\n }", "hasStarted () {\r\n return Boolean(this._startTime)\r\n }", "function hasSchoolFilter() {\n var result = _.findWhere(vm.schools, {\n isChecked: true\n });\n return typeof result !== 'undefined';\n\n }", "function checkForScheduledPayment() {\n\tif(bp_get_pending_transaction_obj) {\n\t\tif(bp_get_pending_transaction_obj.pendingTransactions) {\n\t\t\tfor ( var index = 0; index < bp_get_pending_transaction_obj.pendingTransactions.length; index++) {\n\t\t\t\tif(bp_get_pending_transaction_obj.pendingTransactions[index].submitType != 'IMMEDIATE'){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}", "isVisible() {\n const isOwner = this._radio.reqres.request('user:isOwner');\n\n if (isOwner) {\n return true;\n }\n\n return this.get('visible');\n }", "hasAttached() {\n return !!this._attachedPortal;\n }", "function userCanUpdateOrDeleteShoppingList(account, shoppingList) {\r\n var userHasRight = false;\r\n if (account._id.equals(shoppingList.createdBy) && account.shoppingLists.indexOf(shoppingList._id) > -1 &&\r\n shoppingList.isActive) {\r\n userHasRight = true;\r\n }\r\n else {\r\n userHasRight = false;\r\n }\r\n return userHasRight;\r\n}", "function checkStatus(website, callback){\n var r = null;\n website = extractDomain(website);\n\tchrome.storage.sync.get({dpalertlist: []}, function(res){\n\t\tvar blacklist = res.dpalertlist;\n\n if(blacklist.indexOf(website) === -1){\n if(callback) callback(false);\n }else{\n if(callback) callback(true);\n }\n });\n}" ]
[ "0.6541155", "0.6541155", "0.6449632", "0.6285243", "0.5984127", "0.59645337", "0.591445", "0.59121346", "0.580228", "0.57853556", "0.5738085", "0.5717761", "0.56691015", "0.5668057", "0.5640495", "0.5622889", "0.559966", "0.55952406", "0.5587593", "0.5568334", "0.5550307", "0.5525174", "0.5523325", "0.548344", "0.546851", "0.5466401", "0.54646915", "0.54562396", "0.54562396", "0.5446313", "0.54355365", "0.54344875", "0.54255164", "0.5403584", "0.5403033", "0.53747475", "0.53591084", "0.53528637", "0.53448224", "0.53443897", "0.53269315", "0.5324557", "0.5321904", "0.5310226", "0.52966547", "0.52927893", "0.5286176", "0.52831256", "0.5270885", "0.5243217", "0.5241975", "0.5229256", "0.52292526", "0.5208606", "0.52070934", "0.519503", "0.5192005", "0.51849073", "0.51846105", "0.51821643", "0.5180971", "0.51722753", "0.5161958", "0.5160346", "0.515637", "0.51540434", "0.5151666", "0.51491356", "0.5148747", "0.5140528", "0.51371884", "0.51371884", "0.51361907", "0.51337105", "0.51323897", "0.512637", "0.51096314", "0.5099009", "0.5095591", "0.5091565", "0.5086183", "0.5084704", "0.50824195", "0.5063499", "0.5058809", "0.5058162", "0.5057418", "0.50441116", "0.50351846", "0.5032108", "0.5031593", "0.5028741", "0.50275433", "0.50233006", "0.5022654", "0.50189734", "0.5009814", "0.50082135", "0.50081843", "0.5001436" ]
0.6948313
0
Return a listing corresponding to the given listing hash.
listings(listing) { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return yield deployed.methods.listings(listing).call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static async getListing(id) {\n let res = await this.request(`listings/${id}`);\n return res.listing;\n }", "listing_get(id) {\n return this._get(`listing/${id}`);\n }", "static async getListing(listing_id) {\n let res = await this.request(`api/listings/${listing_id}`);\n return res;\n }", "function listingEntryCreate (listingEntry) {\n console.log(className+\".listingEntryCreate(\"+listingEntry+\")\");\n\n debugObject(listingEntry);\n\n var listingEntryHash = commit(\"listingEntry\", listingEntry);\n\n console.log(\"listingEntryHash = \"+listingEntryHash);\n\n // On the DHT, put a link from my hash to the hash of the new post\n var me = App.Agent.Hash;\n\n commit(\"listing_links\",{ Links: [ { Base: listingEntryHash,Link: me, Tag: \"listing_source\" } ] });\n\n return listingEntryHash;\n}", "function createListing(payload, cb) {\n // TODO: handle validation here or at the controller level? Let's try controller level\n\n base('listings').create(payload, function(err, record) {\n if (err) {\n console.error(err);\n return cb(err);\n }\n\n clearCache();\n // cb(null, record.getId());\n // Q: how should we return this for the permalink?\n // The unique ID is really the most important part...\n var permalink = record.get('unique_id') + '-' + record.get('permalink');\n cb(null, permalink);\n });\n\n // fetch the record that was just created to get the unique ID (for the permalink...)\n\n // bust the cache so the new listing will show up on the home page\n}", "function getListingById(listingId) {\n\t\treturn db.oneOrNone(`SELECT * FROM listings WHERE listing_id = $1`, [listingId]);\n\t}", "function updateHash() {\n self.$$hash = list.items()\n .map(function (it) {\n return it.$id;\n })\n .join(',');\n }", "function ListingSummary (props) {\n const listing = props.listing.StandardFields;\n\n return (\n <li key={listing.listingId} className='listing-summary'>\n <ul>\n <li>\n <img \n className='listing-primary-photo'\n src={listing.Photos[0].Uri300}\n alt={'Primary photo for' + listing.listingId}\n />\n </li>\n </ul>\n <ul className='space-list-summary'>\n <li className='list-price'>${new Intl.NumberFormat().format(listing.CurrentPrice)}</li>\n <li className='list-info'>{listing.BedsTotal} Beds | {listing.BathsTotal} Baths | {listing.BuildingAreaTotal} SQFT</li>\n <li className='list-address'>{listing.UnparsedFirstLineAddress}</li>\n <li className='list-address-2'>{listing.City}, {listing.StateOrProvince} {listing.PostalCode}</li>\n <li className='list-info'>{listing.SubdivisionName}</li>\n </ul>\n </li>\n );\n}", "static async getBlockByHash(hash){\n return new Promise (function (resolve,reject){\n let filteredBlocks = [];\n db.createReadStream()\n .on('data', function (data) {\n //console.log('key=', data)\n if (data.value.hash == hash){\n data.value.body.star.storyDecoded = Utils.hex2a(data.value.body.star.story);\n filteredBlocks.push(data.value);\n }\n })\n .on('error', function(err) {\n reject(err);\n return console.log('Unable to read data stream!', err)\n })\n .on('close', function () {\n resolve(filteredBlocks);\n })\n })\n }", "async getBlockByHash (hash) {\n let block = {}\n\n return new Promise((resolve, reject) => {\n db.createReadStream()\n .on('data', data => {\n block = JSON.parse(data.value)\n\n if (util.isStringChainEquals(block.hash, hash)) {\n if (data.key !== 0) {\n block.body.star.storyDecoded = Buffer.from(block.body.star.story, 'hex').toString()\n return resolve(block)\n } else {\n return resolve(block)\n }\n }\n })\n .on('error', error => {\n return reject(error)\n })\n .on('close', () => {\n return reject('Block not found')\n })\n })\n }", "listing_of(owner) {\n return this._get(`listing?owner=${owner}`);\n }", "function ListEntry(id, name) {\n this.id = id;\n this.name = name;\n}", "manageHashlist(){\n if (fs.existsSync(this.hash_bucket_path)) {\n let data=fs.readFileSync(this.hash_bucket_path);\n this.hashliststore=JSON.parse(data);\n }else{\n this.hashliststore=this.createHashlist()\n }\n }", "async getById(req, res) {\n const { listingId } = req.params;\n const matchedListing = await Listing.findById(listingId);\n res.send(matchedListing);\n }", "function findHash (hash) {\n const result = new Promise((resolve, reject) => {\n contract.methods.findDocHash(hash).call( function (error, result) {\n if (error) reject(error);\n else {\n if(result[1] === '0') {\n reject(false)\n } else {\n let resultObj = {\n mineTime: new Date(result[0] * 1000),\n blockNumber: result[1]\n }\n resolve(resultObj);\n }\n }\n });\n });\n return result;\n}", "async getEntry (hash) {\n try {\n // Input validation.\n if (!hash || typeof hash !== 'string') {\n throw new Error('getEntry() input hash must be a string.')\n }\n\n const serviceId = this.checkServiceId()\n\n const result = await this.axios.post(LOCAL_REST_API, {\n sendTo: serviceId,\n rpcData: {\n endpoint: 'getByHash',\n hash\n }\n })\n // console.log(`result.data: ${JSON.stringify(result.data, null, 2)}`)\n\n // If there is a timeout or other network failure.\n if (result.data.success === false) throw new Error(result.data.message)\n\n return result.data\n } catch (err) {\n console.error('Error in getEntry()')\n throw err\n }\n }", "getBlockByHash() {\n this.server.route({\n method: 'GET',\n path: '/stars/hash:{hashIndex}',\n handler: async (request, h) => { \n let hashIndex = request.params.hashIndex;\n const result = await this.blockchain.getBlockByHash(hashIndex); \n return result.statusCode !== undefined ? result : await this.blockchain.addDecodedStoryToReturnObj(result);\n }\n });\n }", "function queryForHashes(datalistId) {\n var gitBaseUrl = \"https://api.github.com/repos\";\n var organisation = \"/netsec-ethz\";\n var repo = \"/scion/\";\n\n $(datalistId).children().slice(1).remove(); // remove previous entries\n\n var lastWeek = new Date();\n var weekLength = 7; // 7 days per week\n var weekCount = 2; // by default, if no userSetWeekCount set or invalid\n var userSetWeekCount = $('#backLog').val();\n if (userSetWeekCount != '' && !isNaN(userSetWeekCount)) { // failsafe invalid values\n weekCount = Number(userSetWeekCount);\n }\n\n lastWeek.setDate(new Date().getDate() - (weekCount*weekLength)); // set date for x weeks ago\n var sinceDate = lastWeek.toISOString(); // get ISO 8601 representation\n var query = \"commits?page=1&since=\" + sinceDate; // get all commits since x weeks ago\n\n var url = gitBaseUrl + organisation + repo + query;\n\n $.getJSON(url, function (data) {\n $.each(data, function (key, val) {\n var sha = val['sha'];\n var comment = val['commit']['message'].substr(0, 25);\n $(datalistId).append('<option value=\"' + sha + ' | ' + comment + '...\"></option>');\n });\n });\n}", "async getBlockByHash(hash) {\r\n try {\r\n // Get block height\r\n let height = await this.getBlockHeight();\r\n\r\n for (var i = 1; i <= height; i++)\n {\n let targetHashBlock = await this.getBlock(i);\n\n // Check for matching hash\n if (targetHashBlock.hash == hash)\n {\n // Decode \n targetHashBlock.body.star.storyDecoded = Buffer.from(targetHashBlock.body.star.story, 'hex').toString()\n // Return \n return targetHashBlock;\n }\n }\r\n\r\n // If match unsuccessful\r\n let emptyBlock = {};\r\n return emptyBlock;\r\n }\r\n\r\n catch (err) {\r\n console.log(err);\r\n return err;\r\n }\r\n\r\n finally {\r\n console.log('>> STEPCHECK: getBlockByHash function.');\r\n }\r\n }", "async getSearchedHash() {\n var hashInput = $(\"#hashInput\").val()\n return $.ajax({\n method: \"get\",\n url: `/getHashed/${hashInput}`,\n })\n }", "async getBlockByHash (hash) {\n return this.chainStore.getByHash(hash)\n }", "getBlockByHash(hash){\n\n const self = this;\n return new Promise((resolve, reject) => {\n\n self.db.createValueStream()\n .on('data', (data) => {\n\n const block = JSON.parse(data);\n if (block.hash === hash){\n resolve(block);\n }\n })\n .on('error', (err) => {\n\n reject(err);\n })\n .on('close', () => {\n\n resolve(null);\n });\n });\n }", "getBlockByHash(hash){\n let blockByHash = '';\n return new Promise(function(resolve, reject){\n db.createReadStream().on('data', function(data) {\n const block = JSON.parse(data.value);\n if(block.hash === hash) {\n blockByHash = block;\n }\n }).on('error', function(err) {\n console.log('Unable to read data stream!', err)\n reject(blockByHash, err);\n }).on('close', function() {\n resolve(blockByHash);\n });\n });\n }", "async function getListings(haulID) {\n const listings = await HaulModel.findOne(\n {\n _id: haulID,\n },\n \"listings name\"\n );\n return listings;\n}", "function getBlockByHash(hash) {\n let block = null;\n return new Promise(function(resolve, reject) {\n db.createReadStream()\n .on('data', function (data) {\n if (JSON.parse(data.value).hash === hash) {\n block = JSON.parse(data.value)\n }\n })\n .on('error', function (err) {\n // reject with error\n console.log('Oh my!', err)\n })\n .on('close', function () {\n // resolve with the count value\n resolve(block)\n });\n });\n}", "getBlockByHash(hash){\n\n return new Promise( (resolve, reject) =>{\n blockStorage.findByHash(hash)\n .then(blk => {\n \n if( blk != null){\n //Decode Star story - unless it's genesis block.\n if(blk.height > 0) {\n blk.body.star.storyEncoded = blk.body.star.story;\n const storyDec = endeHelper.decodeHexToAscii(blk.body.star.story);\n blk.body.star.story = storyDec;\n }\n resolve(blk);\n }\n //Not Found\n else{\n reject({message: 'No block could be found for this hash value.'})\n }\n })\n .catch(err => {\n reject(err);\n }); \n \n });\n }", "function loadFromListing(program) {\n var right = 'none';\n LOG.info('loadFromList ' + program[0]);\n PROGRAM.loadProgramFromListing(program[0], program[1], function(result) {\n if (result.rc === 'ok') {\n result.programShared = false;\n var alien = program[1] === GUISTATE_C.getUserAccountName() ? null : program[1];\n if (alien) {\n result.programShared = 'READ';\n }\n if (program[2].sharedFrom) {\n var right = program[2].sharedFrom;\n result.programShared = right;\n }\n result.name = program[0];\n GUISTATE_C.setProgram(result, alien);\n GUISTATE_C.setProgramXML(result.data);\n $('#tabProgram').trigger('click');\n }\n MSG.displayInformation(result, \"\", result.message);\n });\n }", "function hashList (hash, error) {\n let toReturn = ''\n if (Object.keys(hash).length > 0) {\n for (let item in hash) {\n toReturn += item + ': (' + hash[item] + ') \\n'\n }\n return toReturn\n } else {\n return error\n }\n}", "function listingsByTitle() {\n\treturn db.any('SELECT * FROM listings ORDER BY title ASC');\n}", "function listingsByTitle() {\n\treturn db.any('SELECT * FROM listings ORDER BY title ASC');\n}", "function fetchHashInfo(hash) {\n\tvar request = new XMLHttpRequest();\n\tvar reqString = '/explorer/hashes/' + hash;\n\trequest.open('GET', reqString, false);\n\trequest.send();\n\tif (request.status != 200) {\n\t\treturn 'error';\n\t}\n\treturn JSON.parse(request.responseText);\n}", "function getBlocksByHash(hash) {\n let blocks = [];\n return new Promise((resolve, reject) => db.createReadStream().on('data', function (data) {\n\n var block = JSON.parse(data.value);\n\n if (block != null) {\n\n if (block.hash == hash) {\n // console.log(block);\n blocks.push(block);\n }\n }\n\n }).on('error', function (err) {\n return console.log('Unable to get blocks!', err);\n reject(err);\n }).on('close', function () {\n // console.log(\"Block Height is \" + i);\n // console.log(blocks);\n resolve(blocks);\n }))\n}", "getBlockByHash(hash){\n return new Promise(function(resolve, reject) {\n db.getDataByHash(hash)\n .then((result) => {\n resolve(result);\n })\n .catch((err) => {\n reject(err);\n })\n });\n }", "async listings(root, args) {\n if (args.ids) {\n // ListingIds provided in the query. Not a search by terms.\n const ids = args.ids.slice(\n args.page.offset,\n args.page.offset + args.page.numberOfItems\n )\n const listings = await search.Listing.getByIds(ids)\n return {\n nodes: listings,\n offset: args.page.offset,\n numberOfItems: listings.length,\n totalNumberOfItems: args.ids.length\n }\n } else {\n // Search query. Get listings from the search index.\n const { listings, stats } = await search.Listing.search(\n args.searchQuery,\n args.sort,\n args.order,\n args.filters,\n args.page.numberOfItems,\n args.page.offset\n )\n logger.info(\n `Query: \"${args.searchQuery}\" returned ${listings.length} results.`\n )\n return {\n nodes: listings,\n offset: args.page.offset,\n numberOfItems: listings.length,\n totalNumberOfItems: stats.totalNumberOfListings,\n stats: {\n maxPrice: stats.maxPrice,\n minPrice: stats.minPrice\n }\n }\n }\n }", "getBlockByHash(hash) {\n return this.db.getBlockByHash(hash);\n }", "function getById(id) {\n for (let i = 0; i < allListings.length; i += 1) {\n if (id === allListings[i].id) {\n return allListings[i];\n }\n }\n return null;\n}", "function getBytes32FromIpfsHash(ipfsListing) {\n return \"0x\"+bs58.decode(ipfsListing).slice(2).toString('hex')\n}", "GetTransactionByHash(transactionHash = '') {}", "getBytes32FromIpfsHash(ipfsListing) {\n return \"0x\"+bs58.decode(ipfsListing).slice(2).toString('hex')\n }", "function getHash(ajaxResp) {\n var page = window.location.href,\n page = page.replace(/%20/g, ' ');\n\n if (page.indexOf('#') >= 0) {\n pInfo = page.split('/#/');\n\n if (pInfo[1].length > 0) {\n var itemData = SearchObj(ajaxResp, pInfo[1]),\n date = moment(itemData.publishedAt).format('LL'),\n desc = itemData.description,\n title = itemData.title,\n iframesrc = itemData.resourceId.videoId;\n\n setContent(desc, title, date, iframesrc);\n }\n } else {\n setHash('');\n }\n }", "getBlockByHash(hash, callback){\n\t\tdb.createReadStream()\n\t\t\t .on('data', function (data) {\n\t\t\t\t\tvar json = JSON.parse(data.value);\n\t\t\t\t\tif (json.hash == hash) {\n\t\t\t\t\t\tvar block = JSON.parse(data.value);\n\t\t\t\t\t\tconst decoded = new Buffer(block.body.star.story, 'hex').toString();\n\t\t\t\t\t\tblock.body.star.storyDecoded = decoded;\n\t\t\t\t\t\tcallback(block);\n\t\t\t\t\t}\n\t\t\t })\n\t\t\t .on('error', function (err) {\n\t\t\t console.log('Oh my!', err)\n\t\t\t })\n\t\t\t .on('close', function () {\n\t\t\t console.log('Stream closed')\n\t\t\t })\n\t\t\t .on('end', function () {\n\t\t\t console.log('Stream ended')\n\n\t\t\t })\n\t}", "function serializeListing(listing) {\n let listingHtml = \"Lorem Ipsum\";\n return listingHtml;\n}", "function addListing(listing) {\n allListings.push(listing);\n}", "function split_hash(hash) {\n\n const regex = \"#!/([^/]*)/?(.*)?\";\n const match = hash.match(regex);\n if (match) {\n return {\n path: match[1],\n id: match[2]\n }\n } else {\n return { path: \"\" }\n }\n}", "function findByListingId(id){\n return db('reservations')\n .join('users', 'reservations.user_id', 'users.id')\n .join('listings', 'reservations.listings_id', 'listings.id')\n .join('states', 'listings.state_id', 'states.id')\n .select(\n 'reservations.id as reservation_id',\n 'listings.id as listing_id',\n 'username as reservation_name', \n 'state_name as state',\n 'title',\n 'description',\n 'is_reserved as reserved',\n 'date_from as reserved_from',\n 'date_to as reserved_to'\n )\n .where('reservations.listings_id', id);\n}", "getBlockByHash() {\n this.app.get(\"/stars/hash::hash\", (req, res) => {\n // Add your code here\n let hash = req.params.hash;\n console.log(\"hash: :\", hash)\n myBlockChain.getBlockByHash(hash).then( (rtnBlockByHash) => {\n let rtnBlockByHashParsed = [];\n rtnBlockByHash.map ( (item, idx) => {\n console.log(\"rtnBlockByHashParsed MAP item.key: \", item.key);\n rtnBlockByHashParsed.push(JSON.parse(item.value))\n })\n rtnBlockByHashParsed.map( (item, idx) => {\n if (item.height) {\n // Add DECODED story as property to object returned...\n console.log(\"\\nrtnBlockByHashParsed MAP item.height: \", item.height);\n console.log(\"rtnBlockByHashParsed item.body.star.storyENCODED: \", item.body.star.storyENCODED);\n item.body.star.storyDECODED = hex2ascii(item.body.star.storyENCODED);\n console.log(\"rtnBlockByHashParsed with storyDECODED item: \", item); \n }\n })\n if ( !rtnBlockByHash ) {\n res.send(`No such Block with Hash of: ${hash}`);\n return\n } else {\n res.send(rtnBlockByHashParsed);\n }\n })\n .catch( (err) => {\n console.log(`MempoolController getBlockByHash: Saw error ${err}`)\n })\n })\n }", "getBlockByHash(hash) {\n let self = this;\n let block = null;\n return new Promise((resolve, reject) => {\n self.db.createReadStream()\n .on('data', data => {\n block = JSON.parse(data.value);\n if (block.hash == hash) {\n block = JSON.parse(data.value);\n\n } else {\n console.log('Failed to retrieve block');\n }\n })\n .on('error', err => {\n console.log(err);\n reject();\n })\n .on('close', () => {\n resolve(block);\n })\n })\n }", "async getBlockByHash(hash) {\n console.log(\"getBlockByHash(hash):\");\n try {\n let block = await this.bd.getBlockByHash(hash);\n let parsedBlock = this.parseBlock(block);\n console.log(\"parsedBlock:\")\n console.log(parsedBlock);\n return(parsedBlock)\n } catch (err) {\n console.log(err);\n }\n return(blocks)\n }", "viewListing(listing) {\n // Route to the view listing page with the id of this listing\n const path = `/listings/${listing._id}`;\n this.props.dispatch(push(path));\n }", "function get_hash_details(hash,total,total_tx){\n $.getJSON(\"curl.php?request=https://chainz.cryptoid.info/explorer/block.raw.dws?coin=tzc&hash=\" + hash + \".js\", function(data) {\n new Block(data.height, total_tx, total, data.size);\n if(data.flags==\"proof-of-work\"){\n show_transactions(data.mint, \"POW\");\n }else if(data.flags==\"proof-of-stake\"){\n show_transactions(data.mint, \"POS\");\n }\n for (var i = 0; i < data.tx.length; i++) {\n check_transactions(data.tx[i]);\n }\n });\n}", "getBlockByHash(hash) {\n let self = this;\n let block = null;\n return new Promise(function(resolve, reject){\n self.db.createReadStream()\n .on('data', function (data) {\n data = JSON.parse(data.value);\n //console.log(\"[Level] getBlockByHash\", data);\n if(data.hash === hash){\n block = data;\n console.log(\"[Level] getBlockByHash Found:\", block);\n }\n })\n .on('error', function (err) {\n reject(err)\n })\n .on('close', function () {\n resolve(block);\n });\n });\n }", "async getBlockByHash(hash) {\n\t\ttry {\n\t\t\treturn await chaindb.getBlockByHash(hash);\n\t\t} catch (error) {\n\t\t\tthrow error;\n\t\t}\n\t}", "getByTitle(title) {\r\n return new List(this, `getByTitle('${title}')`);\r\n }", "getBlockByHash(hash) {\n let self = this;\n let block = null;\n return new Promise(function(resolve, reject){\n self.db.createReadStream()\n .on('data', function (data) {\n let blockParsed = JSON.parse(data.value);\n if(blockParsed.hash === hash){\n block = blockParsed;\n }\n })\n .on('error', function (err) {\n reject(err)\n })\n .on('close', function () {\n console.log(block);\n resolve(block);\n });\n });\n }", "function listItems(shelf, type, search, sort){\n\titems = $.fn.items;\n\tsearchNote = 'Showing all items';\n\t\n\tif(shelf || (!shelf && $.fn.selectedShelf)){\n\t\tif(shelf === false){\n\t\t\tshelf = $.fn.selectedShelf;\n\t\t}\n\t\titems = filterItems('shelf', shelf, items);\n\t\t$.each($.fn.shelves, function (key, val) {\n\t\t\tif(val.id == shelf){\n\t\t\t\tshelfName = val.title;\n\t\t\t}\n\t\t});\n\t\tsearchNote = 'All ' + shelfName;\n\t}\n\t\n\tif(search){\n\t\titems = filterItems('search', search, items);\n\t\tsearchNote = 'Search results for \"' + search + '\"';\n\t}\n\n\t// default to alphabetical sorting\n\tif(!sort) sort = 'title';\n\n\tif(sort){\n\t\titems = sortByKey(items, sort);\n\t}\n\n\t$('#searchNote').html(searchNote);\n\t\n\t$('#items').html('');\n\tif(items.length > 0){\n\t\t$.each(items, function(key, item) {\n\t\t\tvar html = itemBlockHtml(item, key);\n\t\t\t$('#items').append(html);\n\t\t});\n\t\t\n\t\t// populate embed code before opening modal\n\t\t$('a[id*=itemDetailLink]').click(function(){\n\t\t\tvar key = $(this).data('item');\n\t\t\tvar itemDetailBlock = itemBlockHtml(0, key);\n\t\t\t$('#itemDetailContents').html(itemDetailBlock);\n\t\t});\n\t\t\n\t\t// enable modal links\n\t\t$('a[rel*=leanModal]').leanModal({\n\t\t\ttop : 200, \n\t\t\toverlay : 0.4, \n\t\t\tcloseButton: \".modal_close\" \n\t\t});\n\t\t\n\t\t$(\"img.lazy\").lazyload();\n\t\t\n\t} else {\n\t\t$('#items').append('<div class=\"error\">No items matching this criteria</div>');\n\t}\n}", "function displayListings(data) {\n // Target the housing container already present in index.html\n var $housing = $('.js-housing');\n $housing.empty();\n var $container, i;\n // Loop through each listing\n for (i=0; i<data.length; i++) {\n var listing = data[i].properties;\n var coordinates = data[i].geometry.coordinates;\n // Creates a basic listing\n if (listing.sublease) {\n $container = displaySublease(listing, i, coordinates);\n //console.log(\"listing in displaysublease: \", listing);\n //console.log('sublease listing');\n } else {\n $container = displayPromo(listing, i, coordinates);\n //console.log('promo listing');\n }\n // Add the listing to the DOM\n $housing.append($container);\n }\n}", "async function createListing(haulID, listing) {\n const haul = await HaulModel.findOne({ _id: haulID });\n haul.listings.push(listing);\n\n return new Promise((resolve) => {\n haul.save((err, doc) => {\n const listings = doc.listings;\n resolve(listings[listings.length - 1]);\n });\n });\n}", "static async getListings() {\n let res = await this.request(`listings`);\n return res.listings;\n }", "searchFor(query) {\n return BooksAPI.search(query).then(results => results && !results.error ? results : []).then((results) => {\n return results.map(book => {\n const shelvedBookIndex = this.state.books.findIndex(shelvedBook => shelvedBook.id===book.id)\n var shelf;\n if (shelvedBookIndex === -1) {\n shelf = 'none';\n } else shelf = this.state.books[shelvedBookIndex].shelf;\n return Object.assign({shelf}, book);\n }) \n })\n }", "addAndFetchListing(store, data) {\n const item = store.state.cmcListings.filter((item) => {\n return(item.symbol === data.ticker);\n })[0];\n\n const id = (item) ? item.id : null;\n\n if (id) {\n store.commit('addOwnListing', {\n id,\n ...data\n });\n store.dispatch('fetchOwnListing', id);\n } else {\n console.warn('This coin id is not found!');\n }\n }", "getBlockByHash() {\n let bc = this.blockchain;\n let response;\n this.server.route({\n method: 'GET',\n path: '/stars/hash:{hash}',\n handler: async (request, h) => {\n let hash = encodeURIComponent(request.params.hash);\n \n //Use getBlockByHash method of Blockchain class\n await bc.getBlockByHash(hash).then(curBlock => {\n let block = JSON.parse(curBlock); \n //Decode the star story\n block.body.star.storyDecoded = hex2ascii(block.body.star.story);\n response = block;\n }).catch(err => {\n response = {\n success: \"false\",\n message: \"Error retrieving block. \",\n };\n }); \n return (response); \n }\n });\n }", "function splitHash(hash) {\n\n const regex = \"#!/([^/]*)/?(.*)?\";\n const match = hash.match(regex);\n if (match) {\n return {\n path: match[1],\n id: match[2]\n }\n } else {\n return { path: \"\" }\n }\n}", "function buildHashPage() {\n\tvar hash = parseHashQuery();\n\tvar explorerHash = fetchHashInfo(hash);\n\tif (explorerHash == 'error') { // if an error occurs: check the different scenarios\n\t\tif (hash != null && hash.length == 64 || hash.length == 66) {\n\t\t\t// try to interpret it as a TFT20 TransactionID\n\t\t\tresp = getERC20Transaction(hash);\n\t\t\tif (resp != null) {\n\t\t\t\texplorerHash = fetchHashInfo(resp.tfttxid);\n\t\t\t\tif (explorerHash != 'error') {\n\t\t\t\t\tpopulateHashPage(hash, explorerHash, 'TFT20 TransactionID');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tappendNavigationInvalidHash();\n\t\tbuildErrorPage(hash);\n\t\tappendSearchHash();\n\t} else {\n\t\tpopulateHashPage(hash, explorerHash);\n\t}\n}", "function listWithId(res, req){\n factoryStore.load(req.params.id, function(err, factory){\n if (err) throw err;\n res.json(factory);\n });\n}", "function getListTicket() { // new function return raw bookmarks\n var ewf = ewfObject();\n var arg1 = 'attribute=json_libs_ote_list_ticket';\n var arg2 = 'product_type=0';\n var arg3 = 'home_id=' + window.settings.homeID;\n\n var url = ewf.host + ewf.method;\n var args = arg1 + '&' + arg2 + '&' + arg3;\n\n var bookmarks = ajaxJSON(url, args);\n return bookmarks;\n}", "async getPatientListing() {\n console.log(\"Entering getPatientListing()\");\n let patientListingAddressKidney = hash(FAMILY_NAME).substr(0, 6) + '00' + 'aa';\n let patientListingAddressHeart = hash(FAMILY_NAME).substr(0, 6) + '00' + 'bb';\n let patientListingAddressLiver = hash(FAMILY_NAME).substr(0, 6) + '00' + 'cc';\n return this.getStatePatient(patientListingAddressKidney, patientListingAddressHeart, patientListingAddressLiver, true);\n }", "getBlockByHash(hash){\r\n // return object as a single string\r\n return new Promise ((resolve, reject) => {\r\n this.chain.getLevelDBDataHash(hash).then(curblock => {\r\n if(curblock == undefined){\r\n resolve(curblock);\r\n }else{\r\n resolve(JSON.parse(JSON.stringify(curblock)));\r\n }\r\n }).catch(err => {\r\n console.log(err);\r\n reject(err);\r\n });\r\n });\r\n \r\n }", "list() {\n const listings = this._listings.all();\n return Object.keys(listings).map(key => listings[key]);\n }", "function list(req, res, next) {\n ShortUrl.findAll({ order: 'id ASC' }).success(function(results) {\n var list = _.map(results, function(s) {\n var values = s.dataValues;\n values.hash_code = hasher.encode(s.id);\n return values;\n });\n res.send(list);\n });\n}", "componentDidMount() {\r\n const { listingid } = this.props.match.params;\r\n ListingHelper.listingById(listingid).then(\r\n listingData =>\r\n this.setState({\r\n listing: listingData\r\n }) +\r\n ListingHelper.getListingOwnerData(listingData.owner).then(ownerData => {\r\n this.setState({ owner: ownerData, isLoading: false });\r\n })\r\n );\r\n }", "async readListPair() {\n const filePath = path.resolve(__dirname + '../../../../config/crowdtangle_list.json');\n let listPairs;\n try {\n const fileContents = await readFile(filePath, { encoding: 'utf8' });\n listPairs = JSON.parse(fileContents);\n } catch (err) {\n listPairs = {};\n }\n \n // lists are stored with hashes for security\n const listPair = listPairs[this.hashedToken];\n if (typeof listPair === 'object') {\n return listPair;\n }\n return {\n crowdtangle_list_account_pairs: {},\n crowdtangle_saved_searches: {},\n };\n }", "_getHash() {\n return getHash(this.location);\n }", "function getBookList() {\n\t\ttoggleControls(\"on\");\n\t\tif(localStorage.length === 0) {\n\t\t\talert(\"Your bookshelf was empty so example books were added\");\n\t\t\tautofillData();\n\t\t}\n\t\tvar list = $.find('#listOfBooks');\n\t\t$('#bookList').attr('id', 'items');\n\t\tfor (var i = 0, j = localStorage.length; i < j; i++) {\n\t\t\tvar makeLi = $('<li class=\"bookItem\"></li>').appendTo(list);\n\t\t\tvar linksLi = $('<li class=\"bookLink\"></li>').appendTo(list);\n\t\t\tvar key = localStorage.key(i);\n\t\t\tvar value = localStorage.getItem(key);\n\t\t\tvar object = JSON.parse(value);\n\t\t\tfor(var x in object){\n\t\t\t\t$('<p>' + object[x][0] + object[x][1] + '</p>').appendTo(makeLi);\n\t\t\t}\n\t\t\tmakeBookLinks(localStorage.key(i), linksLi);\n\t\t}\n\t\t$('#listOfBooks').listview('refresh');\t\n\t}", "function updateTeamHash() {\r\n var hashArray = [];\r\n $('#slots li:not([data-pokemon=\"\"])').each(function() {\r\n hashArray.push($(this).attr('data-pokemon'));\r\n });\r\n window.location.hash = hashArray.join('+');\r\n $(\"#copy-url input\").val(document.URL);\r\n}", "function showfulfil(fulfil){\n var hash = $.sha256(JSON.stringify(fulfil));\n var proposal = proposals[fulfil.proposalhash];\n if('undefined' === typeof(proposal)) return;\n\n proposal.row.css('background-color', '#FF9999');\n\n // Add fulfil hash to the accept form.\n $('select.fulfilhash').append(\n $('<option>').val(hash).text(\n proposal.give.quantity +\n colors[proposal.give.colordef] +\n ' for ' +\n proposal.take.quantity +\n colors[proposal.take.colordef]\n )\n );\n\n // Note fulfil on graph.\n proposal.graph.annotate(proposal, {\n 'series': proposal.table,\n 'x': proposal.time.getTime(),\n 'shortText': 'F',\n 'text': 'fulful'\n });\n\n // Catalogue row for future use.\n fulfils[hash] = fulfil;\n return hash;\n}", "async function singleListWork (ctx) {\n const { language, subtitle } = ctx.state;\n const cat = ctx.params.id;\n\nconst works = await Work.query()\n .modify('setLocale', 'public_work_names', 'work_id', 'public_works.id', language, subtitle)\n .select('slug', 'cat_id', 'is_unlock', 'price')\n .modify('currencyName', 'public_works', language)\n .where('cat_id', cat);\n\n if (works.length > 0) {\n ctx.status = 200;\n ctx.body = {\n data: clothing,\n };\n } else {\n ctx.status = 404;\n ctx.body = {\n message: 'Could not find any public works.',\n };\n }\n}", "getListing(id) {\n return new Promise((resolve, reject) => {\n \n axios.get(`${this.url}/listings/${id}`, this.config)\n .then(x => resolve(x.data))\n .catch(e => {\n alert(e);\n reject();\n });\n });\n }", "function getCachedResult(hash) {\n var json = window.localStorage[hash];\n if(json) {\n return JSON.parse(json);\n }\n\n return null;\n }", "function readListItemByTitle(listName, title) {\n var siteUrl = getSiteUrl();\n var deferred = $q.defer();\n\n $http.get(siteUrl + \"/_api/web/lists/GetByTitle('\" + listName + \"')/items/?$filter=Title eq '\" + title + \"'\", getGetConfig())\n .then(function (response) {\n if (response.data.d.results.length <= 0) {\n deferred.reject(404);\n } else {\n deferred.resolve(response.data.d.results[0]);\n }\n })\n .catch(function (response) {\n deferred.reject(response.status);\n });\n\n return deferred.promise;\n }", "listing_post(query) {\n return this._post('listing', query);\n }", "function ListingList({ listings }){\n return (\n <div className=\"ListingList mx-auto col-12 col-sm-10 col-md-8 col-lg-6 mt-5\">\n {listings.length\n ? (\n <div className=\"card-deck\">\n {listings.map(l => (\n <ListingItem\n key={l.id}\n id={l.id}\n title={l.title}\n photo={l.photo}\n price={l.price}\n longitude={l.longitude}\n latitude={l.latitude}\n />\n ))}\n </div>\n ) : (\n <p className=\"lead\">Sorry, no results were found!</p>\n )}\n </div>\n );\n}", "getBlockByHash(blockHash) {\n return new Promise((resolve, reject) => {\n db.getLevelDBDataByHash(blockHash).then(\n function(block) {\n if (block) resolve(block);\n else reject();\n },\n function(err) {\n reject(err);\n }\n );\n }); \n }", "function parse_hash() {\n if (window.location.hash == \"\") return false;\n try {\n var hash = decodeURIComponent(window.location.hash).substr(1);\n window.semiphemeral.state = JSON.parse(hash);\n $('.filter input').val(window.semiphemeral.state.q);\n $('.options input').prop('checked', window.semiphemeral.state.replies);\n } catch {\n console.log('parsing hash failed', hash);\n return false;\n }\n\n display_tweets();\n return true;\n }", "function listingsByAddress() {\n\treturn db.any('SELECT * FROM listings ORDER BY split_part(address, \\' \\', 2)');\n}", "function listingsByAddress() {\n\treturn db.any('SELECT * FROM listings ORDER BY split_part(address, \\' \\', 2)');\n}", "queryLists() {\n fetch(\"https://deco3801-oblong.uqcloud.net/wanderlist/get_bucketlist_belonging_to_user/\" + this.state.userData.id)\n .then(response => response.json())\n .then(obj => this.loadLists(obj));\n }", "function jsf_def_Hash() {\n this.length = 0;\n this.items = new Array();\n for (var i = 0; i < arguments.length; i += 2) {\n if (typeof (arguments[i + 1]) != 'undefined') {\n this.items[arguments[i]] = arguments[i + 1];\n this.length++;\n }\n }\n\n this.removeItem = function (in_key) {\n var tmp_previous;\n if (typeof (this.items[in_key]) != 'undefined') {\n this.length--;\n var tmp_previous = this.items[in_key];\n delete this.items[in_key];\n }\n\n return tmp_previous;\n }\n\n this.getItem = function (in_key) {\n return this.items[in_key];\n }\n\n this.setItem = function (in_key, in_value) {\n var tmp_previous;\n if (typeof (in_value) != 'undefined') {\n if (typeof (this.items[in_key]) == 'undefined') {\n this.length++;\n }\n else {\n tmp_previous = this.items[in_key];\n }\n\n this.items[in_key] = in_value;\n }\n\n return tmp_previous;\n }\n\n this.hasItem = function (in_key) {\n return typeof (this.items[in_key]) != 'undefined';\n }\n\n this.clear = function () {\n for (var i in this.items) {\n delete this.items[i];\n }\n\n this.length = 0;\n }\n}", "async getMatchListing() {\n console.log(\"Entering getMatchListing()\");\n // Defining rest-api endpoint for querying state data\n let stateRequest = 'http://rest-api:8008/state?address=' + addressDeleted;\n let stateResponse = await fetch(stateRequest);\n let stateJSON = await stateResponse.json();\n return stateJSON;\n }", "createHashlist(){\n var total=this.getfilesize();\n var iterLeft=this.iterLeft(total,this.hash_bucket_size);\n var iter=iterLeft[0];\n var left=iterLeft[1];\n var metadata=this.hashlist(total,iter,left);\n var json = JSON.stringify(metadata);\n fs.writeFileSync(this.hash_bucket_path, json, 'utf8');\n return metadata;\n }", "function ulReader(index, li, record) {\n var $li = $(li),\n $caption = $li.find('.caption');\n record.thumbnail = $li.find('.thumbnail-image').html();\n record.caption = $caption.html();\n record.label = $caption.find('h3').text();\n record.description = $caption.find('p').text();\n record.color = $li.data('color');\n }", "function readableHashToLocation(hash) {\n\tvar octant = hash[0];\n\tvar precision = 3;\n\tvar levels = [];\n\tvar l = hash.length;\n\tvar i = 1;\n\twhile(i < l) {\n\t\tlevels.push( hash[i++] );\n\t\tprecision += 2;\n\t}\n\t\n\treturn levelsToLocation(octant, levels);\n}", "function getHash() {\n var hash = window.location.hash.substring(1)\n hash = cleanHash(hash)\n if (hash.length > 0) {\n console.log('New Hash: ' + hash)\n $('#divLoader').removeClass('hidden');\n var $instructions = $('.instructions')\n $instructions.text('Fetching metadata')\n download(hash)\n }\n}", "function find() {\n return db(\"bucketLists\")\n .select(\"*\")\n .where(\"private\", false);\n}", "function addListing()\n{\n\n isLogin();\n var listing_obj = null;\n if (window.location.hash) {\n $('#page_title').html('Update Listing');\n $('.li_logout').before('<li class=\"ui-block-c\"><a class=\"ui-link ui-btn ui-icon-check ui-btn-icon-top\" id=\"del_listing\" data-icon=\"delete\">Delete</a></li>');\n $('#nbar ul li').css(\"width\", '25%');\n\n showLoader('Loading..');\n\n var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character\n\n var Listing = Parse.Object.extend(\"listings\");\n var query = new Parse.Query(Listing);\n query.get(hash, {\n success: function (listing) {\n listing_obj = listing;\n $(\"#first_name\").val(listing.attributes.first_name);\n $(\"#last_name\").val(listing.attributes.last_name);\n $('#status').val(listing.attributes.status).slider('refresh');\n $(\"#phone_number\").val(listing.attributes.phone_number);\n $(\"#cell_number\").val(listing.attributes.cell_number);\n $(\"#work_number\").val(listing.attributes.work_number);\n $(\"#work_number\").val(listing.attributes.work_number);\n $(\"#fax\").val(listing.attributes.fax);\n $(\"#email\").val(listing.attributes.email);\n $(\"#address\").val(listing.attributes.address);\n $(\"#city\").val(listing.attributes.city);\n $(\"#state\").val(listing.attributes.state);\n $(\"#propertytype\").val(listing.attributes.propertytype).selectmenu(\"refresh\");\n $(\"#listingprice\").val(listing.attributes.listingprice);\n// var d = listing.attributes.listingexp;\n// var curr_date = d.getDate();\n// var curr_month = d.getMonth() + 1;\n// var curr_year = d.getFullYear();\n var now = new Date(listing.attributes.listingexp);\n\n var day = (\"0\" + now.getDate()).slice(-2);\n var month = (\"0\" + (now.getMonth() + 1)).slice(-2);\n\n var today = now.getFullYear() + \"-\" + (month) + \"-\" + (day);\n\n $('#listingexp').val(today);\n\n // $(\"#listingexp\").val(new Date(curr_year+ \"-\" +pad(curr_month, 2) + \"-\" + pad(curr_date, 2) ));\n $(\"#numofbedrooms\").val(listing.attributes.numofbedrooms);\n $(\"#numofbaths\").val(listing.attributes.numofbaths);\n $(\"#squarefeet\").val(listing.attributes.squarefeet);\n $(\"#yearbuilt\").val(listing.attributes.yearbuilt);\n $(\"#pool\").val(listing.attributes.pool);\n $(\"#hottub\").val(listing.attributes.hottub);\n $(\"#garage\").val(listing.attributes.garage);\n $(\"#security\").val(listing.attributes.security);\n $(\"#notes\").val(listing.attributes.notes);\n $(\"#heating\").val(listing.attributes.heating);\n $(\"#cooling\").val(listing.attributes.cooling);\n $(\"#fireplaces\").val(listing.attributes.fireplaces);\n $(\"#floortype\").val(listing.attributes.floortype);\n $(\"#garagetype\").val(listing.attributes.garagetype);\n $(\"#lottype\").val(listing.attributes.lottype);\n $(\"#views\").val(listing.attributes.views);\n $(\"#ccr\").val(listing.attributes.ccr);\n $(\"#other\").val(listing.attributes.other);\n $(\"#mlsnum\").val(listing.attributes.mlsnum);\n $(\"#apn\").val(listing.attributes.apn);\n $(\"#lockbox\").val(listing.attributes.lockbox);\n $(\"#showing\").val(listing.attributes.showing);\n $(\"#financing\").val(listing.attributes.financing);\n $(\"#terms\").val(listing.attributes.terms);\n\n $(\"#agent\").val(listing.attributes.agent);\n $(\"#agent\").trigger(\"change\");\n $(\"#escrow\").val(listing.attributes.escrow);\n $(\"#escrow\").trigger(\"change\");\n $(\"#lender\").val(listing.attributes.lender);\n $(\"#lender\").trigger(\"change\");\n $(\"#homeinspector\").val(listing.attributes.homeinspector);\n $(\"#homeinspector\").trigger(\"change\");\n $(\"#appraiser\").val(listing.attributes.appraiser);\n $(\"#appraiser\").trigger(\"change\");\n $(\"#otherescrow\").val(listing.attributes.otherescrow);\n $(\"#otherescrow\").trigger(\"change\");\n $(\"#todos_list\").val(listing.attributes.todos_id);\n $(\"#todos_list\").trigger(\"change\");\n //$(\"#agent\").val(listing.attributes.agent).selectmenu(\"refresh\");\n //$(\"#agent\").selectmenu(\"refresh\");\n //$(\"#escrow\").val(listing.attributes.escrow).selectmenu(\"refresh\");\n //$(\"#lender\").val(listing.attributes.lender).selectmenu(\"refresh\");\n //$(\"#homeinspector\").val(listing.attributes.homeinspector).selectmenu(\"refresh\");\n //$(\"#appraiser\").val(listing.attributes.appraiser).selectmenu(\"refresh\");\n //$(\"#otherescrow\").val(listing.attributes.otherescrow).selectmenu(\"refresh\");\n $('#listing_excrow_contacts select').selectmenu(\"refresh\", true);\n //$(\"#listing_excrow_contacts select\").trigger(\"change\");\n //$(\"#todos_list\").selectmenu(\"refresh\", true);\n //$(\"#todos_list\").val(listing.attributes.todos_id).selectmenu(\"refresh\");//$(\"#updateprofile-view select\").selectmenu(\"refresh\", true);\n //alert(listing.attributes.agent);\n if (listing.attributes.agent != '') {\n\n $(\"#listing_excrow_contacts a#agent_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.agent);\n }\n if (listing.attributes.escrow != '') {\n $(\"#listing_excrow_contacts a#escrow_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.escrow);\n }\n if (listing.attributes.lender != '') {\n $(\"#listing_excrow_contacts a#lender_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.lender);\n }\n if (listing.attributes.homeinspector != '') {\n $(\"#listing_excrow_contacts a#homeinspector_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.homeinspector);\n }\n if (listing.attributes.appraiser != '') {\n $(\"#listing_excrow_contacts a#appraiser_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.appraiser);\n }\n if (listing.attributes.otherescrow != '') {\n $(\"#listing_excrow_contacts a#other_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.otherescrow);\n }\n\n hideLoader();\n\n },\n error: function (object, error) {\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n }\n });\n }\n\n $(\"#addListing\").click(function () {\n //alert($(\"#listingPhotoFile\").val())\n var fileUploadControl = $(\"#listingPhotoFile\")[0];\n if (fileUploadControl.files.length > 0) {\n for (var i = 0; i < fileUploadControl.files.length; i++) {\n var file = fileUploadControl.files[0];\n var name = \"photo.jpg\";\n\n var parseFile = new Parse.File(name, file);\n parseFile.save().then(function () {\n // The file has been saved to Parse.\n }, function (error) {\n // The file either could not be read, or could not be saved to Parse.\n });\n /*var serverUrl = 'https://api.parse.com/1/files/' + file.name;\n $.ajax({\n type: \"POST\",\n beforeSend: function (request) {\n //request.setRequestHeader(\"X-Parse-Application-Id\", '0OykuJcMdWmif83qhHytaZhgRArtOdDU4STnIvcW');\n //request.setRequestHeader(\"X-Parse-REST-API-Key\", 'aiAXzwjcLWqv6VxRQaVKggNceM0mH3PD4mtR5ylm');\n request.setRequestHeader(\"Content-Type\", file.type);\n },\n url: serverUrl,\n data: file,\n processData: false,\n contentType: false,\n success: function (data) {\n alert(\"File available at: \" + data.url);\n },\n error: function (data) {\n var obj = jQuery.parseJSON(data);\n alert(obj.error);\n }\n });*/\n }\n }\n /*if ($(\"#frm_addListing\").validationEngine('validate'))\n {\n \n var user = Parse.User.current();\n var listing;\n showLoader('Saving..');\n \n if (listing_obj)\n {\n listing = listing_obj;\n listing_obj = null;\n } else\n {\n \n var Listing = Parse.Object.extend(\"listings\");\n listing = new Listing();\n }\n listing.set(\"first_name\", $('#first_name').val());\n listing.set(\"last_name\", $('#last_name').val());\n listing.set(\"phone_number\", $('#phone_number').val());\n listing.set(\"status\", $('#status').val());\n listing.set(\"cell_number\", $('#cell_number').val());\n listing.set(\"work_number\", $('#work_number').val());\n listing.set(\"fax\", $('#fax').val());\n listing.set(\"email\", $('#email').val());\n listing.set(\"address\", $('#address').val());\n listing.set(\"city\", $('#city').val());\n listing.set(\"state\", $('#state').val());\n listing.set(\"propertytype\", $('#propertytype').val());\n listing.set(\"listingprice\", $('#listingprice').val());\n var str = $('#listingexp').val();\n listing.set(\"listingexp\", new Date(str));\n listing.set(\"numofbedrooms\", $('#numofbedrooms').val());\n listing.set(\"numofbaths\", $('#numofbaths').val());\n listing.set(\"squarefeet\", $('#squarefeet').val());\n listing.set(\"yearbuilt\", $('#yearbuilt').val());\n listing.set(\"pool\", $('#pool').val());\n listing.set(\"hottub\", $('#hottub').val());\n listing.set(\"garage\", $('#garage').val());\n listing.set(\"security\", $('#security').val());\n listing.set(\"notes\", $('#notes').val());\n listing.set(\"heating\", $('#heating').val());\n listing.set(\"cooling\", $('#cooling').val());\n listing.set(\"fireplaces\", $('#fireplaces').val());\n listing.set(\"floortype\", $('#floortype').val());\n listing.set(\"garagetype\", $('#garagetype').val());\n listing.set(\"lottype\", $('#lottype').val());\n listing.set(\"views\", $('#views').val());\n listing.set(\"ccr\", $('#ccr').val());\n listing.set(\"other\", $('#other').val());\n listing.set(\"mlsnum\", $('#mlsnum').val());\n listing.set(\"apn\", $('#apn').val());\n listing.set(\"lockbox\", $('#lockbox').val());\n listing.set(\"showing\", $('#showing').val());\n listing.set(\"financing\", $('#financing').val());\n listing.set(\"terms\", $('#terms').val());\n listing.set(\"agent\", $('#agent').val());\n listing.set(\"escrow\", $('#escrow').val());\n listing.set(\"lender\", $('#lender').val());\n listing.set(\"homeinspector\", $('#homeinspector').val());\n listing.set(\"appraiser\", $('#appraiser').val());\n listing.set(\"otherescrow\", $('#otherescrow').val());\n listing.set(\"todos_id\", $('#todos_list').val());\n listing.set(\"user\", user);\n listing.save(null, {\n success: function (listing)\n {\n window.location = \"listings.html#saved\";\n // $(\"#message\").html(\"<div class='success'>Listing has been saved successfully. </div>\");\n // emptyForm('frm_addListing');\n // hideLoader();\n },\n error: function (user, error) {\n //alert(error.message);\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n \n }\n \n \n });\n \n \n }*/\n });\n\n $('#del_listing').click(function () {\n\n\n if (confirm(\"Are you sure to delete this record!\")) {\n showLoader('Deleting..');\n listing_obj.destroy({\n success: function (myObject) {\n window.location = \"listings.html#deleted\";\n },\n error: function (myObject, error) {\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n }\n });\n\n }\n\n\n });\n}", "getBlockByHash() {\n this.app.get(\"/block/hash/:hash\", async (req, res) => {\n if (req.params.hash) {\n const hash = req.params.hash;\n logger.info('hash: ' + hash);\n let block = await this.blockchain.getBlockByHash(hash);\n if (block) {\n return res.status(200).json(block);\n } else {\n return res.status(404).send(\"Block Not Found!\");\n }\n } else {\n return res.status(404).send(\"Block Not Found! Review the Parameters!\");\n }\n\n });\n }", "function showListing(){\r\n var docTitle = sessionStorage.getItem('listingTitle');\r\n\r\n // Filter out based on \r\n db.collection('listings')\r\n .where(\"title\", \"==\", docTitle)\r\n .get()\r\n .then((querySnapshot) => {\r\n //var doc = querySnapshot[0];\r\n querySnapshot.forEach((doc) => {\r\n console.log(doc.data());\r\n initListingDetails(doc.data());\r\n listedItem = doc;\r\n listedItem.claimed = listedItem.data().claimed;\r\n listedItem.pin = listedItem.data().keyPin;\r\n claimedUpdate();\r\n })\r\n })\r\n}", "getBlockByHash() {\n\t\tthis.app.get('/block/hash/:hash', async (req, res) => {\n\t\t\tif (req.params.hash) {\n\t\t\t\tconst hash = req.params.hash;\n\t\t\t\tlet block = await this.blockchain.getBlockByHash(hash);\n\t\t\t\tif (block) {\n\t\t\t\t\treturn res.status(200).json(block);\n\t\t\t\t} else {\n\t\t\t\t\treturn res.status(404).send('Block not found.');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn res.status(404).send('Block not found. Check hash.');\n\t\t\t}\n\t\t});\n\t}", "get hash() {\n return this.getStringAttribute('hash');\n }", "getById(id) {\r\n const list = new List(this);\r\n list.concat(`('${id}')`);\r\n return list;\r\n }", "function buildList (searchResults) {\n let format = {\n 'response_type': \"ephemeral\",\n 'as_user': true,\n 'text': '*Here are your results*',\n 'unfurl_links': true,\n 'mrkdwn': true,\n 'attachments': [{\n 'text': ':small_orange_diamond: ' + searchResults.join('\\n:small_orange_diamond: '),\n 'footer': 'The Morning Bunch :green_heart:',\n 'color': '#439FE0'\n }]\n }\nreturn format;\n}" ]
[ "0.5939349", "0.58070993", "0.5639183", "0.5626736", "0.5582744", "0.55319446", "0.547254", "0.54663557", "0.5300959", "0.52984", "0.526791", "0.52489066", "0.51860386", "0.51660913", "0.5164093", "0.5157202", "0.5100387", "0.5090333", "0.5074413", "0.5040025", "0.5034525", "0.5027524", "0.5019615", "0.49879453", "0.4976846", "0.49652892", "0.4961064", "0.49240813", "0.4923875", "0.4923875", "0.4921511", "0.4914608", "0.48834282", "0.48790827", "0.48744622", "0.48711848", "0.48711485", "0.48693314", "0.481162", "0.4802657", "0.48009107", "0.47912577", "0.478616", "0.47780138", "0.47777355", "0.4773617", "0.476704", "0.47666302", "0.47474024", "0.47452742", "0.4734658", "0.4711594", "0.47009867", "0.4670455", "0.46643648", "0.4657321", "0.46445304", "0.46410164", "0.46395215", "0.4639422", "0.46306458", "0.4622301", "0.46158302", "0.46091846", "0.4608633", "0.46052033", "0.45952207", "0.45944837", "0.45866707", "0.45792252", "0.45701677", "0.4565559", "0.45652607", "0.4563728", "0.4555919", "0.45517513", "0.4545185", "0.45321402", "0.4527254", "0.4524993", "0.45227653", "0.45189595", "0.45183423", "0.4515236", "0.4515236", "0.45036402", "0.44993272", "0.4498968", "0.44966614", "0.44862142", "0.4484171", "0.44819963", "0.44785398", "0.44777656", "0.44776922", "0.44676426", "0.44673592", "0.44665372", "0.4459926", "0.44530106" ]
0.45078295
85
Return the name passed to this contract instance at deploy time
name() { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return yield deployed.methods.name().call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deploySingle(contractName){\n return `\n const A = artifacts.require(\"${contractName}\");\n module.exports = function(deployer) { deployer.deploy(A) };\n `;\n}", "function getAssetName(assetAddr){\n return tokenContract.methods.getContractName(assetAddr).call();\n }", "function getName() { return name; }", "contract(name) {\n return this.repo.contract(name);\n }", "function getName() {\n\treturn name;\n}", "get name() {\n return pkg.name;\n }", "getName() {\n return this.steamInventoryItemResponse.market_hash_name;\n }", "get packageName() {\n return this.portfolioRuntime.currentPackage.name\n }", "getName() {}", "static getName() {\n return `com.serverless.${ServerlessWebpack.name}`;\n }", "get bucketName() {\n return artifactAttribute(this, 'BucketName');\n }", "async function deployContract(){\n\n let abiPath = path.join(__dirname + '/bin/DataStorageEvent.abi');\n let binPath = path.join(__dirname + '/bin/DataStorageEvent.bin');\n\n console.log(chalk.green(abiPath));\n console.log(chalk.green(binPath));\n\n let abi = fs.readFileSync(abiPath);\n // let bin = '0x' + fs.readFileSync(binPath); updated version of ganache-cli does not need 'Ox' to be added to depict hexadecimal.\n let bin = fs.readFileSync(binPath);\n\n\n let contract = new web3.eth.Contract(JSON.parse(abi));\n\n console.log()\n // Returns an object of abstract contract.\n let status = await contract.deploy({\n data: bin,\n arguments: [100]\n }).send({\n from: '0x96b6E861698DfBA5721a3Ccd9AfBCa808e360bf3',\n gasPrice: 1000,\n gas: 300000\n })\n\n console.log(chalk.red('Address of Contract Deployed : ' + status.options.address));\n}", "static get _TYPE() {\n return 'deployment';\n }", "getMainServiceProviderName() {\n return this._serviceProvider.name || 'N/A';\n }", "function getFullyQualifiedName(sourceName, contractName) {\n return `${sourceName}:${contractName}`;\n}", "publicName() {\n if (this.isSnapshot()) {\n return `${this.name}-${Date.parse(this.snapshotDate)}`;\n }\n if (this.isVirtualDirectory()) {\n return Buffer.from(this.name, 'utf8').toString('base64');\n }\n return this.name;\n }", "get name() {\n return this.use().name;\n }", "getName() {\n return this._name || '';\n }", "function getContractObject(){\n let abiPath = path.join(__dirname + '/bin/DataStorageEvent.abi');\n let abi = fs.readFileSync(abiPath);\n\n // Replace the contract address with the contract you want to invoke.\n // let contractAddress = '0xadb1e7fea9a24daee48492c3523721ea6b42f271'; // address of the deployed contract\n let options = {\n from: '0x96b6E861698DfBA5721a3Ccd9AfBCa808e360bf3',\n gasPrice: 1000,\n gas: 300000\n };\n let deployedContract = new web3.eth.Contract(JSON.parse(abi),contractAddress,options);\n return deployedContract;\n}", "getName() {\n return this.configs.name\n }", "getName () {\n return this._name;\n }", "getName() {\n return this._executeAfterInitialWait(() => this.currently.getAttribute('name'));\n }", "getName () {\n\t\treturn this.name;\n\t}", "getName() {\n const stageHyphen = this.stage.length > 0 ? '-' : '';\n const nameHyphen = this.name.length > 0 ? '-' : '';\n return this.project + nameHyphen + this.name + stageHyphen + this.stage;\n }", "get name() {}", "get name() {}", "get name() {}", "get name() {}", "get name() {}", "get name() {}", "get name() {}", "get name() {}", "get assetBundleName() {}", "static getName() {\n return 'serverless.core.' + FunctionRun.name;\n }", "name() {\n return this._name;\n }", "getName() {\n\t\treturn this.name;\n\t}", "get name() {\r\n\t\treturn this._name;\r\n\t}", "static getCompanyName() {\n console.log('My Company');\n }", "getName() {\n return this.brand + \" \" + this.type;\n }", "deploy(web3, params, opts) {\n const _super = name => super[name];\n return __awaiter(this, void 0, void 0, function* () {\n const dp = {\n abi: Registry_json_1.default.abi,\n bytecode: Registry_json_1.default.bytecode,\n args: [\n params.tokenAddress,\n params.votingAddress,\n params.parameterizerAddress,\n params.name\n ]\n };\n return _super(\"deployContract\").call(this, web3, dp, opts);\n });\n }", "get name() {\n\t\treturn this._name;\n\t}", "get name() {\n\t\treturn this._name;\n\t}", "get name () {\n\t\treturn this.constructor.name\n\t}", "get name() {\n\t\treturn this.__name;\n\t}", "get name() {\n\t\treturn this.__name;\n\t}", "get name() {\n\t\treturn this.__name;\n\t}", "get name() {\n\t\treturn this.__name;\n\t}", "get name() {\n\t\treturn this.__name;\n\t}", "get name() {\n\t\treturn this.__name;\n\t}", "get name() {\n\t\treturn this.__name;\n\t}", "getName() {\n return this.name\n }", "get name() {\n\t return this._name;\n\t }", "async function publishContract(contractName, chainId) {\n // deploy the contract\n const contractFactory = await ethers.getContractFactory(contractName);\n const contract = await contractFactory.deploy();\n\n console.log(contractName + \" contract address: \" + contract.address);\n\n // copy the contract JSON file to front-end and add the address field in it\n fs.copyFileSync(\n path.join(__dirname, \"../artifacts/contracts/\" + contractName + \".sol/\" + contractName + \".json\"), //source\n path.join(__dirname, \"../frontend/src/contracts/\" + contractName + \".json\") // destination\n );\n\n // check if addresses.json already exists\n let exists = fs.existsSync(path.join(__dirname, \"../frontend/src/contracts/addresses.json\"));\n\n // if not, created the file\n if (!exists) {\n fs.writeFileSync(\n path.join(__dirname, \"../frontend/src/contracts/addresses.json\"),\n \"{}\"\n );\n }\n\n // update the addresses.json file with the new contract address\n let addressesFile = fs.readFileSync(path.join(__dirname, \"../frontend/src/contracts/addresses.json\"));\n let addressesJson = JSON.parse(addressesFile);\n\n if (!addressesJson[contractName]) {\n addressesJson[contractName] = {};\n }\n\n addressesJson[contractName][chainId] = contract.address;\n\n fs.writeFileSync(\n path.join(__dirname, \"../frontend/src/contracts/addresses.json\"),\n JSON.stringify(addressesJson)\n );\n}", "static getName() {\n return 'net.kfalck.' + ServerlessPluginSwaggerExport.name;\n }", "get name () {\n\t\treturn this._name;\n\t}", "get name () {\n\t\treturn this._name;\n\t}", "get name () {\n\t\treturn this._name;\n\t}", "get name () {\n\t\treturn this._name;\n\t}", "get name () {\n\t\treturn this._name;\n\t}", "get name () {\n\t\treturn this._name;\n\t}", "getName() {\n return `${this.name}`;\n }", "get name() {\n return this._cloudObj.get(\"name\");\n }", "static get name () {\n return 'version'\n }", "get() {\n return this._name;\n }", "getName() {\n return _name.get(this);\n }", "getServiceName() {\n return this.props.model.getName().value;\n }", "function loadContract (name) {\n loadScript (\n \"target/test-solc-js/\" + name + \".abi.js\");\n return web3.eth.contract (_);\n}", "get name() {\n \treturn 'Rybu';\n }", "checkDeployment({ isDeployed, contractName, network_id }) {\n if (!isDeployed())\n throw new Error(\n `${contractName} has not been deployed to detected network (${network_id})`\n );\n }", "checkDeployment({ isDeployed, contractName, network_id }) {\n if (!isDeployed())\n throw new Error(\n `${contractName} has not been deployed to detected network (${network_id})`\n );\n }", "function name(name) {\n return name;\n }", "getName() {\n return this.name;\n \n }", "get name() {\n return this.apiObject.name;\n }", "get name() { return this._name; }", "get name() { return this._name; }", "get name() { return this._name; }", "get name() { return this._name; }", "get name() { return this._name; }", "get name() { return this._name; }", "get name() { return this._name; }", "get name() { return this._name; }", "getName() {\r\n return this.name;\r\n }", "getName() {\n return this.name;\n }", "getName() {\n return this.name;\n }", "getName() {\n return this.name;\n }", "getName() {\n return this.name;\n }", "getName() {\n return this.name;\n }", "getName() {\n return this.name;\n }", "getName() {\n return this.name;\n }", "get name() {\n return this._getOption('name');\n }", "async function main() {\r\n const MyNFT = await ethers.getContractFactory(\"Gear\")\r\n\r\n // Start deployment, returning a promise that resolves to a contract object\r\n const myNFT = await MyNFT.deploy()\r\n console.log(\"Contract deployed to address:\", myNFT.address)\r\n}", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }", "get name() {\n return this._name;\n }" ]
[ "0.63645667", "0.60966045", "0.5953498", "0.59323144", "0.58770484", "0.57235014", "0.566225", "0.5619028", "0.56117105", "0.55981636", "0.5573826", "0.5566985", "0.55458844", "0.55158335", "0.5502829", "0.55023736", "0.54788876", "0.54555434", "0.54370517", "0.5435066", "0.54124546", "0.54074275", "0.539746", "0.53933644", "0.53697157", "0.53697157", "0.53697157", "0.53697157", "0.53697157", "0.53697157", "0.53697157", "0.53697157", "0.53609693", "0.5345058", "0.5343427", "0.53256404", "0.5320034", "0.53145045", "0.53020906", "0.5300482", "0.5290343", "0.5290343", "0.5287526", "0.528657", "0.528657", "0.528657", "0.528657", "0.528657", "0.528657", "0.528657", "0.52864", "0.52650994", "0.5263084", "0.5241922", "0.5228274", "0.5228274", "0.5228274", "0.5228274", "0.5228274", "0.5228274", "0.52234036", "0.5216811", "0.5211896", "0.52051395", "0.5204648", "0.51886266", "0.5177303", "0.5176476", "0.5163967", "0.5163967", "0.51617503", "0.5152893", "0.5152651", "0.5147272", "0.5147272", "0.5147272", "0.5147272", "0.5147272", "0.5147272", "0.5147272", "0.5147272", "0.5129835", "0.5128902", "0.5128902", "0.5128902", "0.5128902", "0.5128902", "0.5128902", "0.5128902", "0.5128827", "0.5128239", "0.512339", "0.512339", "0.512339", "0.512339", "0.512339", "0.512339", "0.512339", "0.512339", "0.512339" ]
0.616771
1
Return the address of the parameterizer referenced by this contract instance
parameterizer() { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return yield deployed.methods.parameterizer().call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get address () {\n return this.contractAddress\n }", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "toAddress() {\r\n return Blake2b.sum256(this._publicKey);\r\n }", "get addr() { return this._addr; }", "_address(parameter, mode)\n {\n return mode === 2 ? parameter + this.relativeBase : parameter;\n }", "toAddress() {\r\n return blake2b_1.Blake2b.sum256(this._publicKey);\r\n }", "getAddressComponentReference() {\n return this.addressComponent;\n }", "generatorAddress(...args) {\n let fieldName = this._daftFieldName('Generator-Address');\n if (args.length) {\n Must(args.length === 1);\n Must(!this.header.has(fieldName)); // or is that unnecessary too strict?\n this.header.add(fieldName, Gadgets.PrettyAddress(args[0]));\n }\n const rawValue = this.header.value(fieldName);\n return Authority.Parse(rawValue).toHostPort();\n }", "get address() {\n\t\treturn this.__address;\n\t}", "get address() { return this._address; }", "getAddress() {\n let encodable = [\n me.record ? me.record.id : this.pubkey,\n bin(this.box.publicKey),\n PK.usedBanks\n ]\n return base58.encode(r(encodable))\n }", "get address () {\n\t\treturn this._address;\n\t}", "function RouterContract(contract) {\n }", "getAddressString () {\n return secUtil.bufferToHex(this.getAddress())\n }", "get listenerAddress() {\n return this._listenerAddress;\n }", "getPeerAddr() {\n\t\tvar addr = null;\n\t\tif(this._ep) {\n\t\t\taddr = this._ep._endpoint.addr;\n\t\t}\n\n\t\treturn addr;\n\t}", "getAddress() {\n return this.address;\n }", "getAddress()\n {\n return this.adress;\n }", "function getThisGuyRightHere() {\n return {\n callExpression: callExpressionNode,\n node: findInjectedArgument(callExpressionNode),\n scope: context.getScope(),\n };\n }", "get address () {\n return this._address\n }", "getContract() {\n return this.contract;\n }", "getFormattedAddress() {\n\n }", "get fromAddressInput() {\n return this._fromAddress;\n }", "get readerEndpointAddress() {\n return this.getStringAttribute('reader_endpoint_address');\n }", "getAddress() {\n return this.wallet.legacyAddress;\n }", "async getAddress () {\n const pubkey = await this.getUnusedPubkey()\n\n return pubkeyToAddress(pubkey, this.settings.NETWORK_BYTE)\n }", "get primaryEndpointAddress() {\n return this.getStringAttribute('primary_endpoint_address');\n }", "function getKey(){\n return 'address';\n}", "get tunnel2Address() {\n return this.getStringAttribute('tunnel2_address');\n }", "get tunnel2CgwInsideAddress() {\n return this.getStringAttribute('tunnel2_cgw_inside_address');\n }", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "get configurationEndpointAddress() {\n return this.getStringAttribute('configuration_endpoint_address');\n }", "get address(){return this._address;}", "get address(){return this._address;}", "get address(){return this._address;}", "publicKeyParam(){\n return `api_key=${this.publicKey}`\n }", "getAddress() {\n return this.wallet.address;\n }", "addr() {\n return this.pos;\n }", "addr() {\n return this.pos;\n }", "toBlockchainAddress() {\n\t var pub_buf = this.toBuffer();\n\t var pub_sha = Object(__WEBPACK_IMPORTED_MODULE_3__hash__[\"sha512\"])(pub_buf);\n\t return Object(__WEBPACK_IMPORTED_MODULE_3__hash__[\"ripemd160\"])(pub_sha);\n\t }", "makeAddress() {\n let kp = keypair();\n let addr = utils.calcAddress(kp.public);\n this.addresses[addr] = kp;\n return addr;\n }", "getAuthorizedAddresses() {\n const self = this;\n const functionSignature = 'getAuthorizedAddresses()';\n return {\n callAsync(callData = {}, defaultBlock) {\n return __awaiter(this, void 0, void 0, function* () {\n base_contract_1.BaseContract._assertCallParams(callData, defaultBlock);\n const rawCallResult = yield self._performCallAsync(Object.assign({ data: this.getABIEncodedTransactionData() }, callData), defaultBlock);\n const abiEncoder = self._lookupAbiEncoder(functionSignature);\n base_contract_1.BaseContract._throwIfUnexpectedEmptyCallResult(rawCallResult, abiEncoder);\n return abiEncoder.strictDecodeReturnValue(rawCallResult);\n });\n },\n getABIEncodedTransactionData() {\n return self._strictEncodeArguments(functionSignature, []);\n },\n };\n }", "get callerReference() {\n return this.getStringAttribute('caller_reference');\n }", "get defaultValueAddress() {\n\t\treturn this.__defaultValueAddress;\n\t}", "get parameterInput() {\n return this._parameter;\n }", "constructor(address_of_reference) {\n this.address_of_reference = address_of_reference;\n }", "function makeParamRefExpression(info) {\n if (info.type !== 'reference') {\n throw new Error('Cannot make reference object for non-reference parameter ' + info.name);\n }\n return language.paramArgName(info.name);\n }", "getPersonAddress() {\n return 'Mumbai'\n }", "get tunnel1Address() {\n return this.getStringAttribute('tunnel1_address');\n }", "address(value) {\n return Object(address_lib_esm[\"a\" /* getAddress */])(value);\n }", "get parameter() {\n\t\treturn this.__parameter;\n\t}", "get subnetIdInput() {\n return this._subnetId;\n }", "function getAddress(sig, msg) {\n const {v, r, s} = ethUtil.fromRpcSig(sig);\n\n const pubKey = ethUtil.ecrecover(ethUtil.hashPersonalMessage(msg), v, r, s);\n const addrBuf = ethUtil.pubToAddress(pubKey);\n\n return ethUtil.bufferToHex(addrBuf);\n}", "get tunnel2VgwInsideAddress() {\n return this.getStringAttribute('tunnel2_vgw_inside_address');\n }", "getAddress(symbol) {\n return ERC20_ADDRESS[symbol]\n }", "get blockOverrideDnsTypeInput() {\n return this._blockOverrideDnsType;\n }", "cliqueSigner() {\n this._requireClique('cliqueSigner');\n const extraSeal = this.cliqueExtraSeal();\n // Reasonable default for default blocks\n if (extraSeal.length === 0) {\n return ethereumjs_util_1.Address.zero();\n }\n const r = extraSeal.slice(0, 32);\n const s = extraSeal.slice(32, 64);\n const v = new ethereumjs_util_1.BN(extraSeal.slice(64, 65)).addn(27);\n const pubKey = ethereumjs_util_1.ecrecover(this.cliqueSigHash(), v, r, s);\n return ethereumjs_util_1.Address.fromPublicKey(pubKey);\n }", "static Address /*::<message>*/(signal/*:Signal<message>*/)/*:type.Address<message>*/{\n if (signal.address == null) {\n signal.address = signal.receive.bind(signal)\n // TODO: Submit a bug for flow as return here and else clause is\n // redundunt.\n return signal.address\n } else {\n return signal.address\n }\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "getDirectiveBoundTarget() {\n if (this.next === EOF || this.peekKeywordAs() || this.peekKeywordLet()) {\n return null;\n }\n const ast = this.parsePipe(); // example: \"condition | async\"\n const { start, end } = ast.span;\n const value = this.input.substring(start, end);\n return new ASTWithSource(ast, value, this.location, this.absoluteOffset + start, this.errors);\n }", "getDirectiveBoundTarget() {\n if (this.next === EOF || this.peekKeywordAs() || this.peekKeywordLet()) {\n return null;\n }\n const ast = this.parsePipe(); // example: \"condition | async\"\n const { start, end } = ast.span;\n const value = this.input.substring(start, end);\n return new ASTWithSource(ast, value, this.location, this.absoluteOffset + start, this.errors);\n }", "get blueprintIdInput() {\n return this._blueprintId;\n }", "proxyContract(contract) {\n this._proxiedContract = contract;\n }", "constructor() { \n \n MozuCoreApiContractsAddress.initialize(this);\n }", "resolveIdentifier(path) {\n const binding = path.scope.getBinding(path.node.name);\n\n if (path.isReferenced() && binding && !this.isAdded(binding.path) && // @ts-ignore binding.kind can be param\n binding.kind !== 'param') {\n this.resolveBinding(binding);\n return binding;\n }\n\n return null;\n }", "get domainEndpointOptionsInput() {\n return this._domainEndpointOptions;\n }", "get tunnel1CgwInsideAddress() {\n return this.getStringAttribute('tunnel1_cgw_inside_address');\n }", "function ref() {\n return RTG_VCF_RECORD.getRefCall();\n }", "function parameter(name) {\n\treturn { name:name, require:{ resource:name } };\n}", "get tunnel1VgwInsideAddress() {\n return this.getStringAttribute('tunnel1_vgw_inside_address');\n }", "get pReference() {\n\t\treturn this.__pReference;\n\t}", "function getReference(){\n\t\treturn this.reference;\n\t}", "constructor(){\n this.ifaceAddress = 'org.bluez.Adapter1'\n }", "get endpoint() {\n return this.getStringAttribute('endpoint');\n }", "get endpoint() {\n return this.getStringAttribute('endpoint');\n }", "get endpoint() {\n return this.getStringAttribute('endpoint');\n }", "get firewallArnInput() {\n return this._firewallArn;\n }", "get protocolInput() {\n return this._protocol;\n }", "getAdress(){\n return this.adress;\n }", "get anchor() {}", "function getAssetName(assetAddr){\n return tokenContract.methods.getContractName(assetAddr).call();\n }", "get policyIdInput() {\n return this._policyId;\n }", "get vpnGatewayIdInput() {\n return this._vpnGatewayId;\n }", "getParams() {\n const self = this;\n const functionSignature = 'getParams()';\n return {\n callAsync(callData = {}, defaultBlock) {\n return __awaiter(this, void 0, void 0, function* () {\n base_contract_1.BaseContract._assertCallParams(callData, defaultBlock);\n const rawCallResult = yield self._performCallAsync(Object.assign({ data: this.getABIEncodedTransactionData() }, callData), defaultBlock);\n const abiEncoder = self._lookupAbiEncoder(functionSignature);\n base_contract_1.BaseContract._throwIfUnexpectedEmptyCallResult(rawCallResult, abiEncoder);\n return abiEncoder.strictDecodeReturnValue(rawCallResult);\n });\n },\n getABIEncodedTransactionData() {\n return self._strictEncodeArguments(functionSignature, []);\n },\n };\n }", "get blockOverrideDomainInput() {\n return this._blockOverrideDomain;\n }", "function obsAngleAddr() {\n return opts.strict ? null : wrap('obs-angle-addr', and(\n invis(opt(cfws)),\n literal('<'),\n obsRoute,\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n )());\n }", "function obsAngleAddr() {\n return opts.strict ? null : wrap('obs-angle-addr', and(\n invis(opt(cfws)),\n literal('<'),\n obsRoute,\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n )());\n }", "function obsAngleAddr() {\n return opts.strict ? null : wrap('obs-angle-addr', and(\n invis(opt(cfws)),\n literal('<'),\n obsRoute,\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n )());\n }", "function obsAngleAddr() {\n return opts.strict ? null : wrap('obs-angle-addr', and(\n invis(opt(cfws)),\n literal('<'),\n obsRoute,\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n )());\n }", "getAnchor() {\n this._assertInitialized();\n return this.marker;\n }", "get ipAddress() {\n return this.getStringAttribute('ip_address');\n }" ]
[ "0.52728605", "0.5252432", "0.5252432", "0.5252432", "0.5252432", "0.515658", "0.5100179", "0.507445", "0.5065813", "0.5043498", "0.5039015", "0.50276905", "0.47889346", "0.47812968", "0.4757697", "0.47184244", "0.47033963", "0.47015712", "0.4657827", "0.46570027", "0.46404168", "0.46388486", "0.46385354", "0.46384612", "0.46288836", "0.46097943", "0.459318", "0.4579418", "0.4555768", "0.45517987", "0.45503402", "0.45337516", "0.45287767", "0.45285264", "0.45285264", "0.45285264", "0.45285264", "0.45253113", "0.4493042", "0.4493042", "0.4493042", "0.4490445", "0.44900283", "0.44715333", "0.44715333", "0.4462406", "0.44560492", "0.4448802", "0.44365636", "0.44283944", "0.44229424", "0.44211122", "0.44039395", "0.43964562", "0.438968", "0.43886867", "0.4380225", "0.43733844", "0.43669182", "0.4363323", "0.43524325", "0.4344357", "0.43394995", "0.43240422", "0.43164915", "0.43164915", "0.43164915", "0.43164915", "0.4307243", "0.4307243", "0.4300246", "0.42943335", "0.42890778", "0.42641595", "0.42560726", "0.4248096", "0.4241581", "0.4232317", "0.4216297", "0.42146254", "0.42116192", "0.4209155", "0.41846815", "0.41846815", "0.41846815", "0.41779137", "0.4175616", "0.41681832", "0.41661268", "0.41636762", "0.4162778", "0.41600096", "0.4153404", "0.41457587", "0.4144149", "0.4144149", "0.4144149", "0.4144149", "0.41408962", "0.41327858" ]
0.42445526
76
Return the address of the token referenced by this contract instance
token() { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return yield deployed.methods.token().call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTokenAddress(tokenName) {\n\t\n\tvar result = null;\n\n\tif (tokenName == \"TEST\") {\n\t\tresult = \"0x875664e580eea9d5313f056d0c2a43af431c660f\";\n\t} else if (tokenName == \"DAI\") {\n\t\tresult = \"0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359\";\n\t}\n\n\treturn result;\n}", "function getToken() {\n return token;\n }", "getToken() { return this.token.getToken(); }", "getToken() {\n return this.token;\n }", "async function getNFTAddress() {\n return getContractAddress('NFTokenMetadata');\n}", "get tokenUrl() {\n return this._tokenUrl;\n }", "getToken() {\n return _token;\n }", "function Token(Contract) {\n this.web3 = null;\n this.instance = null;\n this.Contract = Contract;\n}", "function getToken() {\n return token || null;\n }", "get address() { return this._registers[0].address; }", "getAddressString () {\n return secUtil.bufferToHex(this.getAddress())\n }", "get token() {\n return this._token;\n }", "getAddress(symbol) {\n return ERC20_ADDRESS[symbol]\n }", "static async getFeeToken (receiverAddress, contractAddress) {\n try {\n // Check whether the receiver is external account or smart contract\n let gasPrice = await EtherscanServices.getGasPrice()\n // gasPrice *= countPercent\n gasPrice = parseInt(gasPrice)\n\n var tokenAmount = 0\n // Token Standards\n var transferOpCode = '0xa9059cbb'\n\n var ethNakedAddress = receiverAddress.toLowerCase().replace('0x', '')\n\n // Convert to address Token\n var ABIAddressTarget = this.zeroPadLeft(ethNakedAddress, 64)\n\n // Convert to value Token\n var ABIValueToTransfer = this.zeroPadLeft(tokenAmount.toString(16), 64)\n var ethData = transferOpCode + ABIAddressTarget + ABIValueToTransfer\n\n let gasLimit = await this.getGasLimitToken(contractAddress, gasPrice, ethData)\n let fee = gasLimit * gasPrice\n\n return fee\n } catch (error) {\n throw error\n }\n }", "get address() {\n\t\treturn this.__address;\n\t}", "getEncodedToken() {\n\t\treturn this.encodeTokenWithIdentityProvider(this.getToken());\n\t}", "function token() {\n return currentToken;\n }", "get address () {\n return this.contractAddress\n }", "get token() {\n return (this.tokenGenerated) ? this.config.token : new Error(\"Token not Generated... Please use getUserToken()\");\n }", "function getToken() {\n\t\treturn store.getItem(key);\n\t}", "get addr() { return this._addr; }", "get address () {\n\t\treturn this._address;\n\t}", "function getAddress(node_name){\n\t// Load config data from SmartToken.json\n\tvar addrlist = require('./addr_list.json');\t\n\treturn addrlist[node_name];\t\n}", "function getAddress(node_name){\n\t// Load config data from SmartToken.json\n\tvar addrlist = require('./addr_list.json');\t\n\treturn addrlist[node_name];\t\n}", "static currentNetwork() {\n return web3.eth.net.getId().then(function(networkID){\n return web3.eth.getAccounts().then(function(accounts){\n return new TokenService(networkID, accounts[0]);\n });\n });\n }", "get token() {\n return encodeURIComponent(ENV.MAPBOX_ACCESS_TOKEN);\n }", "getAddress() {\n return this.address;\n }", "get address() { return this._address; }", "toAddress() {\r\n return Blake2b.sum256(this._publicKey);\r\n }", "async function getOwner(tokenID, address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n const nfToken = await NFTokenMetadata.at(await nfTokenShield.getNFToken.call());\n return nfToken.ownerOf.call(tokenID);\n}", "token() {\n return {\n _id: this._id,\n role: this.role\n }\n }", "static get(token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n }", "static get(token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n }", "static get(token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n }", "static get(token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n }", "static get(token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n }", "static get(token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n }", "async getAddress () {\n const pubkey = await this.getUnusedPubkey()\n\n return pubkeyToAddress(pubkey, this.settings.NETWORK_BYTE)\n }", "getAddress() {\n return this.wallet.address;\n }", "getToken() {\n return axios.get('contract-builder/template/contracts/Token.sol')\n .then((response) => {\n return response.data\n })\n }", "async function getOwner(tokenID) {\n const nfToken = await NFTokenMetadata.at(await getContractAddress('NFTokenMetadata'));\n return nfToken.ownerOf.call(tokenID);\n}", "getValue() {\n return this.token;\n }", "function getAuthTokenId() {\n\t return _store2.default.getState().login.getIn(['keystoneAccess', 'token', 'id']);\n\t}", "get address() {\n return this.web3Account.address;\n }", "encodedCashAddr() {\n const res = memoizedEncoded(this, false);\n return res;\n }", "getAddress() {\n return this.wallet.legacyAddress;\n }", "async function mintToken() {\n if (typeof window.ethereum !== 'undefined') {\n await requestAccount();\n const provider = new ethers.providers.Web3Provider(window.ethereum);\n const signer = provider.getSigner();\n const contract = new ethers.Contract(tokenAddress, Token.abi, signer);\n let signerAddress = await signer.getAddress();\n console.log(\"Account:\", signerAddress);\n\n try {\n const tx = await contract.createCollectible(signerAddress, \"ipfs://QmZhQho7NniB1pZLzAz9aZzHFw2M7jyZm2bmStFshYWURT\");\n console.log('data: ', tx);\n } catch (err) {\n console.log(\"Error: \", err);\n }\n }\n }", "getAddressComponentReference() {\n return this.addressComponent;\n }", "get lastTokenLocation() {\n\t\treturn this.state.lastTokenLocation;\n\t}", "function getAddress(sig, msg) {\n const {v, r, s} = ethUtil.fromRpcSig(sig);\n\n const pubKey = ethUtil.ecrecover(ethUtil.hashPersonalMessage(msg), v, r, s);\n const addrBuf = ethUtil.pubToAddress(pubKey);\n\n return ethUtil.bufferToHex(addrBuf);\n}", "async function getNFTAddress(address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n return nfTokenShield.getNFToken.call();\n}", "getToken() {\n return Cookies.get(\"cTok\");\n }", "getToken() {\n\t\treturn this.qdacityTokenAuthenticationProvider.getToken();\n\t}", "token() {\n return {\n id: this.id,\n role: this.role,\n };\n }", "function getToken(url, scriptHash, address) {\n return __awaiter(this, void 0, void 0, function* () {\n const parser = address ? parseTokenInfoAndBalance : parseTokenInfo;\n const sb = new neon_core_1.sc.ScriptBuilder();\n abi.name(scriptHash)(sb);\n abi.symbol(scriptHash)(sb);\n abi.decimals(scriptHash)(sb);\n abi.totalSupply(scriptHash)(sb);\n if (address) {\n abi.balanceOf(scriptHash, address)(sb);\n }\n const script = sb.str;\n try {\n const res = yield neon_core_1.rpc.Query.invokeScript(script)\n .parseWith(parser)\n .execute(url);\n const result = {\n name: res[0],\n symbol: res[1],\n decimals: res[2],\n totalSupply: res[3].div(Math.pow(10, 8 - res[2])).toNumber(),\n };\n if (address) {\n result.balance = res[4].div(Math.pow(10, 8 - res[2]));\n }\n return result;\n }\n catch (err) {\n log.error(`getToken failed with : ${err.message}`);\n throw err;\n }\n });\n}", "get address () {\n return this._address\n }", "getIdToken() {\n return this.idToken;\n }", "getAddress() {\n let encodable = [\n me.record ? me.record.id : this.pubkey,\n bin(this.box.publicKey),\n PK.usedBanks\n ]\n return base58.encode(r(encodable))\n }", "async function getNFTURI(tokenID, address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n const nfToken = await NFTokenMetadata.at(await nfTokenShield.getNFToken.call());\n return nfToken.tokenURI.call(tokenID);\n}", "getAttributeKeyLocation(token) {\n return token.location;\n }", "async function getNFTSymbol(address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n const nfToken = await NFTokenMetadata.at(await nfTokenShield.getNFToken.call());\n return nfToken.symbol.call();\n}", "requestToken() {\n return this.get('request-token');\n }", "onToken(token) {\n return token;\n }", "onToken(token) {\n return token;\n }", "toAddress() {\r\n return blake2b_1.Blake2b.sum256(this._publicKey);\r\n }", "getAddress()\n {\n return this.adress;\n }", "static async getTokenFee (toAddress) {\n try {\n // Check whether the receiver is external account or smart contract\n let gas = await this.getFee(toAddress)\n\n return this.convertWeiToBalance(gas)\n } catch (error) {\n return Number.NaN\n }\n }", "get clientToken() {\n return this.getStringAttribute('client_token');\n }", "getPointerAccount(namespace) {\n var passphrase = nem.crypto.js.SHA256(namespace);\n var privateKey = nem.crypto.helpers.derivePassSha(passphrase, 1).priv; \n var keyPair = nem.crypto.keyPair.create(privateKey); \n var publicKey = keyPair.publicKey.toString();\n var address = nem.model.address.toAddress(publicKey, this._Wallet.network);\n this.formData.pointerAdd = address;\n this.formData.recipient = address;\n this.formData.recipientPublicKey = publicKey;\n }", "async function getShieldAddress(account) {\n const nfTokenShield = shield[account]\n ? shield[account]\n : await getContractAddress('NFTokenShield');\n return nfTokenShield.address;\n}", "get name() {\n return cred.tokenKindName(this._kind);\n }", "makeAddress() {\n let kp = keypair();\n let addr = utils.calcAddress(kp.public);\n this.addresses[addr] = kp;\n return addr;\n }", "async getTokenBalance(contractAddress, address) {\n\t\tconst tokenContract = new this.web3Service.web3.eth.Contract(\n\t\t\tthis.contractABI,\n\t\t\tcontractAddress\n\t\t);\n\t\tconst balanceWei = await tokenContract.methods.balanceOf(address).call();\n\t\tconst decimals = await tokenContract.methods.decimals().call();\n\t\treturn EthUtils.getBalanceDecimal(balanceWei, decimals);\n\t}", "addr() {\n return this.pos;\n }", "addr() {\n return this.pos;\n }", "getTokenRequestUrl() {\r\n return config.oauthTokenRequestBaseUrl;\r\n }", "getToken() {\n return this._localStorageService.get(tokenKey);\n }", "function getTokenTransactions(address, tokenName) {\n\n\tvar scriptUrl = \"https://\" + network + \".etherscan.io/api?module=account&action=tokentx&contractaddress=\" + tokenAddress + \"&address=\" + address + \"&tag=latest&apikey=\"+ apiKey;\n $.ajax({\n \turl: scriptUrl,\n type: 'get',\n dataType: 'json',\n async: false,\n success: function(data) {\n result = data.result;\n } \n });\n\n\treturn result;\n}", "getRequestToken() {\n return apiClient.get(\n '/authentication/token/new?api_key=6c1e80dae659cb7d1abdf16afd8bb0e3'\n )\n }", "getToken() {\n\t\treturn this._post(\"/api/user/token\");\n\t}", "current() {\n return this._currentToken;\n }", "current() {\n return this._currentToken;\n }", "async sendTransactionToContract(targetAddress,numberOfTokens) {\n\n // load AbI through interface. \n let iface = new ethers.utils.Interface(/** ABI */);\n\n params: [{\n \"from\": accounts[0] ,\n \"to\": /** Token_contract_Address */,\n \"gas\": \"0x76c0\", // 30400\n \"gasPrice\": \"0x9184e72a000\", // 10000000000000\n \"value\": \"0\", // 2441406250\n \"data\": iface.functions.transfer.encode([ targetAddress, numberOfTokens ])\n }]\n\n ethereum.sendAsync({\n method: 'eth_sendTransaction',\n params: params,\n from: accounts[0], // Provide the user's account to use.\n }, (err, response) => {\n if (error) {\n if (error.code === 4001) { // EIP 1193 userRejectedRequest error\n console.log('Please connect to MetaMask.')\n } else {\n console.error(error)\n }\n } else {\n // this method will return a transaction hash on success.\n const result = response.result\n console.log(result)\n }\n })\n }", "async getToken() {\n try {\n const token = await AsyncStorage.getItem('token');\n console.log(`DEBUG: token found: ${token}`);\n return token;\n } catch (e) {\n console.log(`DEBUG: Failed to get id: ${e}`);\n }\n }", "get address(){return this._address;}", "get address(){return this._address;}", "get address(){return this._address;}", "function getTokenBalance(address, tokenName) {\n\n\tvar result = null;\n\n\ttokenAddress = getTokenAddress(tokenName);\n\n var scriptUrl = \"https://\" + network + \".etherscan.io/api?module=account&action=tokenbalance&contractaddress=\" + tokenAddress + \"&address=\" + address + \"&tag=latest&apikey=\"+ apiKey;\n $.ajax({\n url: scriptUrl,\n type: 'get',\n dataType: 'json',\n async: false,\n success: function(data) {\n result = data.result;\n } \n });\n\n // Result has 18 decimals, so we will move the decimal place.\n var tokenDecimal = 18;\n result = result / (10 ** tokenDecimal);\n\n\treturn result;\n}", "getBalanceForAddress(addr){\n\n // The minimum ABI to get ERC20 Token balance\n let minABI = [\n // balanceOf\n {\n \"constant\":true,\n \"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\n \"name\":\"balanceOf\",\n \"outputs\":[{\"name\":\"balance\",\"type\":\"uint256\"}],\n \"type\":\"function\"\n },\n // decimals\n {\n \"constant\":true,\n \"inputs\":[],\n \"name\":\"decimals\",\n \"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\n \"type\":\"function\"\n }\n ];\n\n // Get ERC20 Token contract instance\n let contract = this.injectedWeb3.eth.contract(minABI).at(addr);\n let promise = new Promise((resolve, reject) => {\n // Call balanceOf function\n try {\n contract.balanceOf(this.address, (error, balance) => {\n if (error){\n console.error(error)\n reject(0)\n }\n // Get decimals\n contract.decimals((error, decimals) => {\n if (error){\n console.error(error)\n reject(0)\n }\n\n // calculate a balance\n balance = balance.div(10 ** decimals).toNumber();\n resolve(balance);\n });\n });\n } catch(e){\n console.error(e);\n reject(0)\n }\n });\n\n\n return promise;\n }", "async function getShieldAddress(account) {\n const nfTokenShield = shield[account] ? shield[account] : await NFTokenShield.deployed();\n return nfTokenShield.address;\n}", "active() { return this.data.token; }", "function _getAccountToken() {\n let accountToken = localStorageModule.getItem(_accountTokenLocalstorageKey);\n if (accountToken === null || accountToken === undefined || accountToken === \"undefined\") {\n accountToken = _uuidv4();\n _storeValueInLocalStorage(_accountTokenLocalstorageKey, accountToken); \n }\n \n return accountToken;\n}", "toBlockchainAddress() {\n\t var pub_buf = this.toBuffer();\n\t var pub_sha = Object(__WEBPACK_IMPORTED_MODULE_3__hash__[\"sha512\"])(pub_buf);\n\t return Object(__WEBPACK_IMPORTED_MODULE_3__hash__[\"ripemd160\"])(pub_sha);\n\t }", "getContractNumber() {\n return this.rawData.contracts[0].contractNumber;\n }", "function getToken() {\n\treturn wAccessToken;\n}", "async restApiToken () {\n return indy.restApiToken(this)\n }", "address(value) {\n return Object(address_lib_esm[\"a\" /* getAddress */])(value);\n }", "function getToken(state) {\n return tokenTable[state]\n}", "get account () { return this.API.getAccount(this.address) }", "async getTokenBalanceAtAddress(token_contract_address, address) {\n const erc20Contract = new ERC20Contract(this.client, token_contract_address);\n let p_token_balance = erc20Contract.balanceOf(address).call();\n let p_decimals = erc20Contract.decimals().call();\n return Promise.all([p_token_balance, p_decimals]).then(async (data) => {\n const totalBalance = data[0];\n const decimals = data[1];\n return totalBalance / 10 ** decimals;\n });\n\n }" ]
[ "0.65727425", "0.64078283", "0.629507", "0.61594784", "0.6152112", "0.60370374", "0.6021377", "0.59762293", "0.5931954", "0.592103", "0.58387554", "0.58381087", "0.5817307", "0.5764241", "0.5761903", "0.5722279", "0.56745714", "0.5674456", "0.56385756", "0.56327605", "0.561029", "0.55252475", "0.5518903", "0.5518903", "0.55067813", "0.547397", "0.54602873", "0.54525197", "0.5443044", "0.5435318", "0.5423858", "0.5421199", "0.5421199", "0.5421199", "0.5421199", "0.5421199", "0.5421199", "0.5411329", "0.5407861", "0.5405369", "0.54018354", "0.53982687", "0.5390503", "0.5370924", "0.53692937", "0.53680336", "0.5361362", "0.5359801", "0.5359501", "0.5349202", "0.534881", "0.5307397", "0.5291262", "0.5290154", "0.5259867", "0.52564263", "0.52502656", "0.5237949", "0.52211344", "0.5208518", "0.51992446", "0.5197675", "0.51765215", "0.51765215", "0.5171582", "0.5160383", "0.5154232", "0.51497763", "0.51229984", "0.51218206", "0.5121788", "0.51156497", "0.5115516", "0.5109803", "0.5109803", "0.5093727", "0.5082858", "0.5067556", "0.50521153", "0.50085455", "0.49936584", "0.49936584", "0.49739295", "0.49720833", "0.49615923", "0.49615923", "0.49615923", "0.4948393", "0.4932259", "0.49276757", "0.49161226", "0.4910579", "0.49071163", "0.49063691", "0.4906206", "0.49040312", "0.4900894", "0.48874035", "0.4876381", "0.48732474" ]
0.503679
79
Updates a listingHash's status from 'application' to 'listing' or resolves a challenge if one exists. Delegates to `whitelistApplication` or `resolveChallenge`
updateStatus(listing, opts) { return __awaiter(this, void 0, void 0, function* () { const account = this.requireAccount(opts), deployed = this.requireDeployed(); return yield deployed.methods.updateStatus(listing).send({ from: account }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "appWasMade(listing) {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed();\n return deployed.methods.appWasMade(listing).call();\n });\n }", "function handleUpdateListing(e) {\n //e.preventDefault();\n\n // get new data from modal fields\n dataToUpdate = {\n // imgUrl: $imgUrlField.val(),\n // street: $streetField.val(),\n // city: $cityField.val(),\n // state: $stateField.val(),\n // zip: $zipField.val(),\n title: $titleField.val(),\n rent: $rentField.val()\n };\n\n // close modal\n $('#updateListingModal').modal('hide');\n $.ajax({\n method: \"PUT\",\n url: 'api/listings/' + updateListingId,\n data: dataToUpdate,\n success: onUpdateCallSuccess\n })\n}", "function onUpdateCallSuccess (json) {\n var updatedListing = json;\n listingId = updatedListing._id;\n var listingIndex;\n findListingIndex();\n\n function findListingIndex() {\n for(var index = 0; index < allListings.length; index++) {\n if(allListings[index]._id === listingId) {\n listingIndex = index;\n }\n }\n }\n\n allListings[listingIndex] = updatedListing;\n console.log(allListings[listingIndex]);\n renderListings(allListings);\n renderMarkers();\n}", "function updateResponse(listingId, status, response, agency) {\n\t\treturn db.any('UPDATE listings SET status = $1, response = $2, agency = $3, response_date = now() WHERE listing_id = $4',\n\t\t[status, response, agency, listingId]);\n\t}", "function updateAppStatus() {\n record(curAlist.toNumList());\n curAlist = getAdjlist();\n updateAdjlistFrame();\n updatePropFrame();\n}", "function updateWhitelist(id, status) {\n return User.findById(id).update({whitelisted: status});\n}", "function addListing()\n{\n\n isLogin();\n var listing_obj = null;\n if (window.location.hash) {\n $('#page_title').html('Update Listing');\n $('.li_logout').before('<li class=\"ui-block-c\"><a class=\"ui-link ui-btn ui-icon-check ui-btn-icon-top\" id=\"del_listing\" data-icon=\"delete\">Delete</a></li>');\n $('#nbar ul li').css(\"width\", '25%');\n\n showLoader('Loading..');\n\n var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character\n\n var Listing = Parse.Object.extend(\"listings\");\n var query = new Parse.Query(Listing);\n query.get(hash, {\n success: function (listing) {\n listing_obj = listing;\n $(\"#first_name\").val(listing.attributes.first_name);\n $(\"#last_name\").val(listing.attributes.last_name);\n $('#status').val(listing.attributes.status).slider('refresh');\n $(\"#phone_number\").val(listing.attributes.phone_number);\n $(\"#cell_number\").val(listing.attributes.cell_number);\n $(\"#work_number\").val(listing.attributes.work_number);\n $(\"#work_number\").val(listing.attributes.work_number);\n $(\"#fax\").val(listing.attributes.fax);\n $(\"#email\").val(listing.attributes.email);\n $(\"#address\").val(listing.attributes.address);\n $(\"#city\").val(listing.attributes.city);\n $(\"#state\").val(listing.attributes.state);\n $(\"#propertytype\").val(listing.attributes.propertytype).selectmenu(\"refresh\");\n $(\"#listingprice\").val(listing.attributes.listingprice);\n// var d = listing.attributes.listingexp;\n// var curr_date = d.getDate();\n// var curr_month = d.getMonth() + 1;\n// var curr_year = d.getFullYear();\n var now = new Date(listing.attributes.listingexp);\n\n var day = (\"0\" + now.getDate()).slice(-2);\n var month = (\"0\" + (now.getMonth() + 1)).slice(-2);\n\n var today = now.getFullYear() + \"-\" + (month) + \"-\" + (day);\n\n $('#listingexp').val(today);\n\n // $(\"#listingexp\").val(new Date(curr_year+ \"-\" +pad(curr_month, 2) + \"-\" + pad(curr_date, 2) ));\n $(\"#numofbedrooms\").val(listing.attributes.numofbedrooms);\n $(\"#numofbaths\").val(listing.attributes.numofbaths);\n $(\"#squarefeet\").val(listing.attributes.squarefeet);\n $(\"#yearbuilt\").val(listing.attributes.yearbuilt);\n $(\"#pool\").val(listing.attributes.pool);\n $(\"#hottub\").val(listing.attributes.hottub);\n $(\"#garage\").val(listing.attributes.garage);\n $(\"#security\").val(listing.attributes.security);\n $(\"#notes\").val(listing.attributes.notes);\n $(\"#heating\").val(listing.attributes.heating);\n $(\"#cooling\").val(listing.attributes.cooling);\n $(\"#fireplaces\").val(listing.attributes.fireplaces);\n $(\"#floortype\").val(listing.attributes.floortype);\n $(\"#garagetype\").val(listing.attributes.garagetype);\n $(\"#lottype\").val(listing.attributes.lottype);\n $(\"#views\").val(listing.attributes.views);\n $(\"#ccr\").val(listing.attributes.ccr);\n $(\"#other\").val(listing.attributes.other);\n $(\"#mlsnum\").val(listing.attributes.mlsnum);\n $(\"#apn\").val(listing.attributes.apn);\n $(\"#lockbox\").val(listing.attributes.lockbox);\n $(\"#showing\").val(listing.attributes.showing);\n $(\"#financing\").val(listing.attributes.financing);\n $(\"#terms\").val(listing.attributes.terms);\n\n $(\"#agent\").val(listing.attributes.agent);\n $(\"#agent\").trigger(\"change\");\n $(\"#escrow\").val(listing.attributes.escrow);\n $(\"#escrow\").trigger(\"change\");\n $(\"#lender\").val(listing.attributes.lender);\n $(\"#lender\").trigger(\"change\");\n $(\"#homeinspector\").val(listing.attributes.homeinspector);\n $(\"#homeinspector\").trigger(\"change\");\n $(\"#appraiser\").val(listing.attributes.appraiser);\n $(\"#appraiser\").trigger(\"change\");\n $(\"#otherescrow\").val(listing.attributes.otherescrow);\n $(\"#otherescrow\").trigger(\"change\");\n $(\"#todos_list\").val(listing.attributes.todos_id);\n $(\"#todos_list\").trigger(\"change\");\n //$(\"#agent\").val(listing.attributes.agent).selectmenu(\"refresh\");\n //$(\"#agent\").selectmenu(\"refresh\");\n //$(\"#escrow\").val(listing.attributes.escrow).selectmenu(\"refresh\");\n //$(\"#lender\").val(listing.attributes.lender).selectmenu(\"refresh\");\n //$(\"#homeinspector\").val(listing.attributes.homeinspector).selectmenu(\"refresh\");\n //$(\"#appraiser\").val(listing.attributes.appraiser).selectmenu(\"refresh\");\n //$(\"#otherescrow\").val(listing.attributes.otherescrow).selectmenu(\"refresh\");\n $('#listing_excrow_contacts select').selectmenu(\"refresh\", true);\n //$(\"#listing_excrow_contacts select\").trigger(\"change\");\n //$(\"#todos_list\").selectmenu(\"refresh\", true);\n //$(\"#todos_list\").val(listing.attributes.todos_id).selectmenu(\"refresh\");//$(\"#updateprofile-view select\").selectmenu(\"refresh\", true);\n //alert(listing.attributes.agent);\n if (listing.attributes.agent != '') {\n\n $(\"#listing_excrow_contacts a#agent_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.agent);\n }\n if (listing.attributes.escrow != '') {\n $(\"#listing_excrow_contacts a#escrow_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.escrow);\n }\n if (listing.attributes.lender != '') {\n $(\"#listing_excrow_contacts a#lender_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.lender);\n }\n if (listing.attributes.homeinspector != '') {\n $(\"#listing_excrow_contacts a#homeinspector_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.homeinspector);\n }\n if (listing.attributes.appraiser != '') {\n $(\"#listing_excrow_contacts a#appraiser_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.appraiser);\n }\n if (listing.attributes.otherescrow != '') {\n $(\"#listing_excrow_contacts a#other_contact\").attr(\"href\", \"addcontact.html#\" + listing.attributes.otherescrow);\n }\n\n hideLoader();\n\n },\n error: function (object, error) {\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n }\n });\n }\n\n $(\"#addListing\").click(function () {\n //alert($(\"#listingPhotoFile\").val())\n var fileUploadControl = $(\"#listingPhotoFile\")[0];\n if (fileUploadControl.files.length > 0) {\n for (var i = 0; i < fileUploadControl.files.length; i++) {\n var file = fileUploadControl.files[0];\n var name = \"photo.jpg\";\n\n var parseFile = new Parse.File(name, file);\n parseFile.save().then(function () {\n // The file has been saved to Parse.\n }, function (error) {\n // The file either could not be read, or could not be saved to Parse.\n });\n /*var serverUrl = 'https://api.parse.com/1/files/' + file.name;\n $.ajax({\n type: \"POST\",\n beforeSend: function (request) {\n //request.setRequestHeader(\"X-Parse-Application-Id\", '0OykuJcMdWmif83qhHytaZhgRArtOdDU4STnIvcW');\n //request.setRequestHeader(\"X-Parse-REST-API-Key\", 'aiAXzwjcLWqv6VxRQaVKggNceM0mH3PD4mtR5ylm');\n request.setRequestHeader(\"Content-Type\", file.type);\n },\n url: serverUrl,\n data: file,\n processData: false,\n contentType: false,\n success: function (data) {\n alert(\"File available at: \" + data.url);\n },\n error: function (data) {\n var obj = jQuery.parseJSON(data);\n alert(obj.error);\n }\n });*/\n }\n }\n /*if ($(\"#frm_addListing\").validationEngine('validate'))\n {\n \n var user = Parse.User.current();\n var listing;\n showLoader('Saving..');\n \n if (listing_obj)\n {\n listing = listing_obj;\n listing_obj = null;\n } else\n {\n \n var Listing = Parse.Object.extend(\"listings\");\n listing = new Listing();\n }\n listing.set(\"first_name\", $('#first_name').val());\n listing.set(\"last_name\", $('#last_name').val());\n listing.set(\"phone_number\", $('#phone_number').val());\n listing.set(\"status\", $('#status').val());\n listing.set(\"cell_number\", $('#cell_number').val());\n listing.set(\"work_number\", $('#work_number').val());\n listing.set(\"fax\", $('#fax').val());\n listing.set(\"email\", $('#email').val());\n listing.set(\"address\", $('#address').val());\n listing.set(\"city\", $('#city').val());\n listing.set(\"state\", $('#state').val());\n listing.set(\"propertytype\", $('#propertytype').val());\n listing.set(\"listingprice\", $('#listingprice').val());\n var str = $('#listingexp').val();\n listing.set(\"listingexp\", new Date(str));\n listing.set(\"numofbedrooms\", $('#numofbedrooms').val());\n listing.set(\"numofbaths\", $('#numofbaths').val());\n listing.set(\"squarefeet\", $('#squarefeet').val());\n listing.set(\"yearbuilt\", $('#yearbuilt').val());\n listing.set(\"pool\", $('#pool').val());\n listing.set(\"hottub\", $('#hottub').val());\n listing.set(\"garage\", $('#garage').val());\n listing.set(\"security\", $('#security').val());\n listing.set(\"notes\", $('#notes').val());\n listing.set(\"heating\", $('#heating').val());\n listing.set(\"cooling\", $('#cooling').val());\n listing.set(\"fireplaces\", $('#fireplaces').val());\n listing.set(\"floortype\", $('#floortype').val());\n listing.set(\"garagetype\", $('#garagetype').val());\n listing.set(\"lottype\", $('#lottype').val());\n listing.set(\"views\", $('#views').val());\n listing.set(\"ccr\", $('#ccr').val());\n listing.set(\"other\", $('#other').val());\n listing.set(\"mlsnum\", $('#mlsnum').val());\n listing.set(\"apn\", $('#apn').val());\n listing.set(\"lockbox\", $('#lockbox').val());\n listing.set(\"showing\", $('#showing').val());\n listing.set(\"financing\", $('#financing').val());\n listing.set(\"terms\", $('#terms').val());\n listing.set(\"agent\", $('#agent').val());\n listing.set(\"escrow\", $('#escrow').val());\n listing.set(\"lender\", $('#lender').val());\n listing.set(\"homeinspector\", $('#homeinspector').val());\n listing.set(\"appraiser\", $('#appraiser').val());\n listing.set(\"otherescrow\", $('#otherescrow').val());\n listing.set(\"todos_id\", $('#todos_list').val());\n listing.set(\"user\", user);\n listing.save(null, {\n success: function (listing)\n {\n window.location = \"listings.html#saved\";\n // $(\"#message\").html(\"<div class='success'>Listing has been saved successfully. </div>\");\n // emptyForm('frm_addListing');\n // hideLoader();\n },\n error: function (user, error) {\n //alert(error.message);\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n \n }\n \n \n });\n \n \n }*/\n });\n\n $('#del_listing').click(function () {\n\n\n if (confirm(\"Are you sure to delete this record!\")) {\n showLoader('Deleting..');\n listing_obj.destroy({\n success: function (myObject) {\n window.location = \"listings.html#deleted\";\n },\n error: function (myObject, error) {\n $(\"#message\").html(\"<div class='error'>\" + error.message + \"</div>\");\n hideLoader();\n }\n });\n\n }\n\n\n });\n}", "update_statuses(state) {\n Vue.http.get(Hunt.API_URL+'/statuses').then(\n success => {\n try {\n state.statuses = [{\n label: 'All',\n slug: ''\n }];\n Object.keys(success.body.statuses).forEach(x => {\n state.statuses.push({\n label: x,\n slug: x.toLowerCase(),\n subject: success.body.statuses[x].subject,\n message: success.body.statuses[x].message\n });\n });\n } catch(e) {\n Hunt.toast('Error parsing statuses', 'error');\n }\n },\n fail => {\n if(fail.status===403) {\n Bus.$emit(\"goto-login\");\n }\n Hunt.toast(fail.data.message, 'error');\n console.log(fail);\n }\n );\n }", "componentDidMount() {\r\n const { listingid } = this.props.match.params;\r\n ListingHelper.listingById(listingid).then(\r\n listingData =>\r\n this.setState({\r\n listing: listingData\r\n }) +\r\n ListingHelper.getListingOwnerData(listingData.owner).then(ownerData => {\r\n this.setState({ owner: ownerData, isLoading: false });\r\n })\r\n );\r\n }", "listings(listing) {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed();\n return yield deployed.methods.listings(listing).call();\n });\n }", "async addToBlackList (entry) {\n try {\n console.log('entry', entry)\n _this.setState({ inFetch: true })\n const { jwt } = getLocalUser()\n const options = {\n url: `${SERVER}/blacklist`,\n method: 'POST',\n headers: {\n Accept: 'application/json',\n Authorization: `Bearer ${jwt}`\n },\n data: {\n hash: entry._id,\n reason: 'Unspecified'\n }\n }\n const res = await axios(options)\n _this.setState({\n inFetch: false,\n blackListFetchStatus: {\n success: true,\n msg: res.data.message\n }\n })\n } catch (e) {\n _this.setState({\n inFetch: false,\n blackListFetchStatus: {\n success: false,\n msg: e.message\n }\n })\n }\n }", "addItemListings(listingsMap, itemModel) {\n let listed = false;\n publicationTypes = new PublicationTypes(SV.get('publicationTypes'));\n // first reset the item's listings to whatever they were before :\n itemModel.resetListings();\n const canAttach = itemModel.canAttachListings();\n\n // Do NYDC first because save for item could happen regardless of listing state :\n if (listingsMap.nydc) {\n itemModel.setNydc(true);\n } else {\n itemModel.setNydc(false);\n }\n // WIP and unlisted both return before doing anything else :\n if (listingsMap.wip) {\n itemModel.markUnlisted();\n itemModel.markIncomplete();\n return;\n }\n if (listingsMap.unlisted) {\n itemModel.markUnlisted();\n return;\n }\n\n // none of the following steps will be done if the item is not able to accept listings :\n if (!canAttach) {\n return;\n }\n\n if (listingsMap.store) {\n itemModel.addStorefrontListing(publicationTypes);\n listed = true;\n }\n if (listingsMap.market) {\n itemModel.addMarketplaceListing(publicationTypes);\n listed = true;\n if (itemModel.isArt()) {\n itemModel.addFeaturedListing(publicationTypes);\n }\n }\n if (listingsMap.featured) {\n itemModel.addFeaturedListing(publicationTypes);\n listed = true;\n }\n\n if (listed && itemModel.canMarkComplete()) {\n itemModel.markComplete();\n }\n }", "handleStatusChange(taskId, e, data) {\n const task = _.find(this.state.tasks, {'task_id': taskId})\n const newStatus = data.value\n if (newStatus !== task.status) {\n let newTasks = this.state.tasks.slice()\n let newTask = _.find(newTasks, {'task_id': taskId})\n newTask.status = newStatus\n let filteredTasks = this.filterTasksByWorkspaces(newTasks,\n this.state.selectedWorkspaces);\n let displayTasks = filteredTasks.length > 0 ? filteredTasks : newTasks;\n let newCompletionPercentage = this.calculateCompletionPercentage(displayTasks);\n put(`/tasks/${task.task_id}`, {status: newStatus})\n .then(res => {\n this.setState({\n tasks: newTasks,\n completionPercentage: newCompletionPercentage,\n })\n console.log(`Successfully changed status to ${newStatus} for ${task.name}`)\n })\n .catch(err => console.log(err))\n }\n }", "function handleEditListing(e) {\n e.preventDefault();\n // close modal\n $('#myModal').modal('hide');\n $('#updateListingModal').modal();\n $.ajax({\n method: \"GET\",\n url: 'api/listings/' + updateListingId,\n success: onEditCallSuccess\n })\n}", "function updateAppStatus(app){\n if (app.running){\n if (app.state == \"STOPPED\"){\n app.state = \"MONITORING\";\n app.status = \"RUNNING\";\n }\n else if (app.state == \"STOPPING\"){\n app.status = \"STOPPING\";\n }\n else if (app.state == \"STARTING\"){\n app.state = \"MONITORING\";\n app.status = \"RUNNING\";\n }\n else {\n app.state = \"RUNNING\";\n app.status = \"RUNNING\";\n }\n }\n else { //!app.running\n if (app.state == \"STARTING\"){\n app.status = \"STARTING\";\n }\n else if (app.state == \"MONITORING\" && app.restart == \"true\"){\n startApp(app);\n }\n else {\n app.state = \"STOPPED\";\n app.status = \"STOPPED\";\n }\n }\n updateAppLabelStatus(app);\n}", "static async getListing(listing_id) {\n let res = await this.request(`api/listings/${listing_id}`);\n return res;\n }", "function updateApp() {\n\n\tif ($(\".selectedPortlet\")[0]) {\n\t\tvar portletID = $(\".selectedPortlet\")[0].id;\n\t\t$.getJSON(\"/security/config/installedapps?action=update&app=\" + portletID+\"&user=\" + otusr + \"&pw=\" + otpwd, function(json) {\n\t\t\talert(json.statusInfo);\n\t\t});\n\t} else {\n\t\talert(\"Wählen Sie ein Bundle!\");\n\t}\n}", "function updateResultsListing() {\n\n var listingText,\n allItems = yearDimension.top(Infinity),\n makeSceneLink = function (scene) {\n if (scene !== '[Non-panorama history]')\n return '<a target=\"_blank\" href=\"' + \n SCENE_URL_BASE + scene + '\">' + scene + \n '</a>';\n else return scene;\n };\n\n // Update results count\n\n $('#active').text(allItems.length);\n\n // List entries in results box\n\n $('#resource-list').empty();\n\n yearDimension.top(INIT_LISTING_COUNT).forEach(function (item) {\n listingText = '<p>' +\n '<strong>' +\n '<a href=\"' + RESOURCE_URL_BASE + item.URLID + '\" target=\"_BLANK\">' + \n item.short_title + '</a>' +\n '</strong>' +\n ' (' + item.year.getFullYear() + ')<br />' +\n (item.author ? item.author + '<br />' : '') +\n 'Scenes: ' + item.scene.map(makeSceneLink).join(', ') +\n '</p>';\n $('#resource-list').append(listingText); \n }); \n }", "static applyMangaStatus( connector, mangas ) {\n mangas.forEach( ( manga ) => {\n //manga['status'] = 'completed';\n });\n }", "function addListing(listing) {\n allListings.push(listing);\n}", "function refreshList() {\n axios.get(url + HoldRoute + \"/withtools/json\").then((response) => {\n setList(response.data);\n });\n }", "updateHeldStepsStatus(kind, padId, status) {\n // this.updateHeldStepsStatusInStepQueue( kind, status ) ;\n this.updateHeldStepsStatusInActiveHolds( kind, padId, status ) ;\n }", "setStatusOfCall(callId, status, callsArrayId){\n var patchData = {\n callId: callId,\n status: status\n }\n\n UpdateCallLog(patchData).then(response => {\n if(response.status === \"OK\")\n {\n var callsLogs = this.state.calls\n callsLogs[callsArrayId] = response.data;\n this.setState({calls: callsLogs, filteredCalls: callsLogs})\n toast.success(\"Status Changed To \" + response.data.status.description )\n }\n else\n {\n toast.error(\"Error Changing Status\")\n }\n })\n}", "async function updateListingByName(client, nameOfListing, updatedListing) {\n const result = await client.db(\"sample_airbnb\").collection(\"listingsAndReviews\")\n .updateOne({ name: nameOfListing }, { $set: updatedListing });\n console.log(`${result.matchedCount} document(s) matched the query criteria.`);\n console.log(`${result.modifiedCount} document(s) was/were updated.`);\n}", "function updateBookingStatus() {\n\n }", "isWhitelisted(listing) {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed();\n return yield deployed.methods.isWhitelisted(listing).call();\n });\n }", "setStatusOfCall(callId, status, callsArrayId){\n var patchData = {\n callId: callId,\n status: status\n }\n\n UpdateCallLog(patchData).then(response => {\n if(response.status === \"OK\")\n {\n var callsLogs = this.state.calls\n callsLogs[callsArrayId] = response.data;\n this.setState({calls: callsLogs, filteredCalls: callsLogs})\n toast.success(\"Status Changed To \" + response.data.status.description )\n }\n else\n {\n toast.error(\"Error Changing Status\")\n }\n })\n}", "updateResultList(map,ingredient,callbacks,nosort){\n let {successCallback,outputCallback,failureCallback} = {...callbacks}; //successCallback must be defined\n let updateType = map.get(ingredient)[0];\n let status = map.get(ingredient)[2];\n \n let statusFailure = (()=>{\n console.error('attempted illegal action ['+updateType+'] on: '+ingredient+' (status: '+status+')');\n if(failureCallback){\n failureCallback(ingredient);\n }\n return map;\n });\n\n let updateDoneAction = (()=>{\n if(!nosort){\n this.sortRecipeMap(successCallback); //continue to sorter, pass it the callback for when its done\n } else {\n successCallback(ingredient);\n }\n });\n\n if(updateType===ADD_TO_SEARCH||updateType===REMOVE_FROM_SEARCH){ //use ingredient in search\n if((updateType===ADD_TO_SEARCH&&status!==UNUSED_STATUS)||(updateType===REMOVE_FROM_SEARCH&&status!==INCLUDED_STATUS)){ //query doesn't fit the current status, reject it and do nothing\n return statusFailure();\n }\n map.get(ingredient)[2] = updateType===ADD_TO_SEARCH?INCLUDED_STATUS:UNUSED_STATUS;\n let recipeTracker = new Set()\n map.get(ingredient)[1].recipes.forEach((recipe)=>{\n let recipeName = recipe.Name\n if(!recipeTracker.has(recipeName)){\n recipeTracker.add(recipeName)\n let prevEntry = this.recipeMap.has(recipeName)?this.recipeMap.get(recipeName):[0,0,0]; //set base values to 0 if no entry exists\n this.recipeMap.set(recipeName,[\n prevEntry[0],\n prevEntry[1]+updateType,\n prevEntry[2]+updateType*(+recipe.Importance)\n ])\n }\n })\n //this should only get called from a Promise chain\n //branch the chain into the supplied callback\n updateDoneAction();\n } else if(updateType===ADD_TO_EXCLUDE||updateType===REMOVE_FROM_EXCLUDE){ //reject or un-reject ingredient from search\n if((updateType===ADD_TO_EXCLUDE&&status!==UNUSED_STATUS)||(updateType===REMOVE_FROM_EXCLUDE&&status!==EXCLUDED_STATUS)){ //query doesn't fit the current status, reject it and do nothing\n return statusFailure();\n }\n map.get(ingredient)[2] = updateType===REMOVE_FROM_EXCLUDE?UNUSED_STATUS:EXCLUDED_STATUS;\n let adjustment = (updateType===0)?1:-1;\n map.get(ingredient)[1].recipes.forEach((recipe)=>{\n let prevEntry = this.recipeMap.has(recipe.Name)?this.recipeMap.get(recipe.Name):[0,0,0]; //set base values to 0 if no entry exists\n //increment the rejection score by one\n this.recipeMap.set(recipe.Name,[prevEntry[0]+adjustment,prevEntry[1],prevEntry[2]])\n })\n //this should only get called from a Promise chain\n //branch the chain into the supplied callback\n updateDoneAction();\n } else {\n //well this is awkward\n console.error('Incorrect query code found when updating recipe map: '+updateType)\n }\n return map //keep the chain alive\n }", "function askListing (session, args, next) {\r\n // First check to see if we either got a listing from LUIS or have a an existing listing\r\n // that we can multi-turn over.\r\n var listing;\r\n var entity = builder.EntityRecognizer.findEntity(args.entities, 'ListingName');\r\n if (entity) {\r\n // The user specified a listing so lets look it up to make sure its valid.\r\n // * This calls the underlying function Prompts.choice() uses to match a users response\r\n // to a list of choices. When you pass it an object it will use the field names as the\r\n // list of choices to match against. \r\n listing = builder.EntityRecognizer.findBestMatch(dataListing, entity.entity);\r\n } else if (session.dialogData.listing) {\r\n // Just multi-turn over the existing listing\r\n listing = session.dialogData.listing;\r\n }\r\n \r\n // Prompt the user to pick a listing if they didn't specify a valid one.\r\n if (!listing) {\r\n // Lets see if the user just asked for a listing we don't know about.\r\n var txt = entity ? session.gettext(prompts.listingUnknown, { listing: entity.entity }) : prompts.listingMissing;\r\n \r\n // Prompt the user to pick a listing from the list. They can also ask to cancel the operation.\r\n builder.Prompts.choice(session, txt, dataListing);\r\n } else {\r\n // Great! pass the listing to the next step in the waterfall which will answer the question.\r\n // * This will match the format of the response returned from Prompts.choice().\r\n next({ response: listing });\r\n }\r\n}", "function _change_match_symptoms_status(idx,symptoms_status) {\n\n let matches_lst = _get_matches();\n matches_lst[idx].with_symptoms = symptoms_status;\n\n let class_for_withoutsymptoms = _get_symptoms_class(false);\n let symptoms_str = _get_symptoms_label_text(symptoms_status);\n \n \n $(\"#span_hpo_\"+idx).removeClass(class_for_withoutsymptoms);\n if(symptoms_status) {\n //default with symptoms\n } else {\n // withoutsymptoms\n $(\"#span_hpo_\"+idx).addClass(class_for_withoutsymptoms);\n } \n \n $(\"#li_hpo_\"+idx).removeClass(class_for_withoutsymptoms);\n if(symptoms_status) {\n // default\n } else {\n $(\"#li_hpo_\"+idx).addClass(class_for_withoutsymptoms);\n }\n $(\"#li_label_hpo_\"+idx).text(symptoms_str);\n\n $(\"#tbl_hpolist\").find(\"tr:gt(0)\").remove();\n let rows_str = _create_tblrows_from_matches(matches_lst);\n $('#tbl_hpolist').append(rows_str);\n\n _set_match_totalnum(matches_lst);\n}", "function loadFromListing(program) {\n var right = 'none';\n LOG.info('loadFromList ' + program[0]);\n PROGRAM.loadProgramFromListing(program[0], program[1], function(result) {\n if (result.rc === 'ok') {\n result.programShared = false;\n var alien = program[1] === GUISTATE_C.getUserAccountName() ? null : program[1];\n if (alien) {\n result.programShared = 'READ';\n }\n if (program[2].sharedFrom) {\n var right = program[2].sharedFrom;\n result.programShared = right;\n }\n result.name = program[0];\n GUISTATE_C.setProgram(result, alien);\n GUISTATE_C.setProgramXML(result.data);\n $('#tabProgram').trigger('click');\n }\n MSG.displayInformation(result, \"\", result.message);\n });\n }", "function updateAppStatus(stat, cmt, itemCap) {\n\tupdateStatusResult = aa.cap.updateAppStatus(itemCap, \"APPLICATION\", stat, sysDate, cmt, systemUserObj);\n\tif (!updateStatusResult.getSuccess()) {\n\t\tlogDebug(\"ERROR: application status update to \" + stat + \" was unsuccessful. The reason is \" + updateStatusResult.getErrorType() + \":\" + updateStatusResult.getErrorMessage());\n\t}\n}", "addOwnListing(state, data) {\n\n // Check for duplicate item.\n const items = state.ownListings.filter((item) => {\n return (item.id === data.id);\n });\n\n // When the id is not found in existing listings.\n if (items.length === 0) {\n\n state.ownListings.push({\n id: data.id,\n ticker: data.ticker,\n amount: data.amount,\n priceOfAmount: 0,\n pricePercentageChange: 0,\n color: coinColorTones[data.id] || '#7d7f88',\n img: `${IMG_BASE_URL}/${data.id}.png`,\n });\n\n } else {\n\n state.ownListings = state.ownListings.map((item) => {\n if (item.id === data.id) {\n return {\n ...item,\n amount: item.amount + data.amount,\n }\n } else {\n return item;\n }\n });\n\n }\n\n updateLocalStorage(state);\n }", "function updateListItem(itemMetadata) {\n\n // Construct the endpoint.\n // Specify the host web as the context site.\n var listItemUri = itemMetadata.uri.replace('_api/Web', '_api/sp.appcontextsite(@target)/web');\n var listItemEndpoint = String.format(listItemUri + \"?@target='{0}'\", hostWebUrl);\n\n // Define the list item changes. Use the FileLeafRef property to change the display name.\n // For simplicity, also use the name as the title.\n // The example gets the list item type from the item's metadata, but you can also get it from the\n // ListItemEntityTypeFullName property of the list.\n\n var body = String.format(\"{{'__metadata':{{'type':'{0}'}},'FileLeafRef':'{1}','Title':'{2}','Email':'{3}','Company':'{4}'}}\",\n itemMetadata.type, newName, newName, $scope.data.user.email, $scope.data.companies[id].name);\n\n // Send the request and return the promise.\n // This call does not return response content from the server.\n return $.ajax({\n url: listItemEndpoint,\n type: \"POST\",\n data: body,\n headers: {\n \"X-RequestDigest\": $(\"#__REQUESTDIGEST\").val(),\n \"content-type\": \"application/json;odata=verbose\",\n //\"content-length\": body.length,\n \"IF-MATCH\": itemMetadata.etag,\n \"X-HTTP-Method\": \"MERGE\",\n \"If-Match\": \"*\"\n }\n });\n }", "function newListingSuccess(json) {\n newListing = json;\n console.log(newListing);\n var formattedAddress = newListing.street + ' ' + newListing.city + ',' +\n newListing.state + ' ' + newListing.zip;\n var id = newListing._id;\n geocodeAddress(formattedAddress, id);\n allListings.unshift(newListing);\n renderListings(allListings);\n}", "function changeStatus(event) {\n // Get index of the list item to be updated\n let index = findIndexById(event.target.parentElement.id);\n\n // Make sure there is an index to use.\n if (index !== false) {\n // When the task is completed we update the text to have a line through it,\n // and then update the completed status and update the local storage\n if (event.target.checked) {\n event.target.parentElement.style.textDecoration = \"line-through\";\n toDos[index].completed = true;\n ls.setJSON(key, JSON.stringify(toDos));\n }\n // When the task is completed we update the text to remove the line, and then\n // update the completed status and update the local storage\n else {\n event.target.parentElement.style.textDecoration = \"none\";\n toDos[index].completed = false;\n ls.setJSON(key, JSON.stringify(toDos));\n }\n }\n}", "submitListing() {\n\t\tthis.props.updateListing(this.state.listing.groupID);\n\t}", "refreshListStructure(blInit = false)\n {\n var objEslTools = new EslTools();\n\n if(blInit) {\n var objMetaMaskList = {\n \"status\": true,\n \"timestamp\": 0,\n \"repo\": \"https://api.infura.io/v2/blacklist\",\n \"list\": []\n };\n } else {\n var objMetaMaskList = this.getListStructure();\n }\n\n if(objMetaMaskList.status) {\n objEslTools.getListFromGithub(objMetaMaskList).then(function (objList) {\n objMetaMaskList.timestamp = Math.floor(Date.now() / 1000);\n objMetaMaskList.list = objList;\n\n localStorage.setItem(\"ext-ethersecuritylookup-metamask_lists\", JSON.stringify(objMetaMaskList));\n this.getStats();\n }.bind(this));\n }\n }", "updateOnboardingStatus ({ commit }, status) {\n commit('SET_ONBOARDING_STATUS', status)\n }", "static syncStateToHash() {\n //removing leading '#'\n let newHash = window.location.hash;\n if (newHash.startsWith('#')) {\n newHash = newHash.substr(1);\n }\n\n //if application state is already synced\n if (currentHash === newHash) {\n restored = true;\n return restored;\n }\n\n restored = false;\n if (newHash.startsWith('/app/') && newHash.length > 5) {\n UiService.setIsLoading(true);\n statePartiallySynced = false;\n CommonUtil.delay(50).then(() => restoreLodgementState(newHash.substr(5))\n .then(\n () => {\n restored = true;\n currentHash = newHash;\n console.info(`LocationService: updating state to match hash: #${newHash}`);\n if (statePartiallySynced) { //could not fully sync sate to hash - maybe rename this event\n EventService.fire('application_content_change');\n }\n UiService.setIsLoading(false);\n }\n )\n );\n } else {\n LodgementService.selectTab(0);\n restored = true;\n currentHash = newHash;\n console.info(`LocationService: updating state to match hash: #${newHash}`);\n }\n return restored;\n }", "updateFeedList(self) {\n const feedingPromise = self.duckStatDAL.getFeedingList()\n feedingPromise.end((err, res) => {\n if (err) window.console.log(\"Error fetching data: \", err);\n else {\n self.setState({\n feedingList: res.body.sort((f1, f2) => {\n var location1 = f1.location.toUpperCase();\n var location2 = f2.location.toUpperCase();\n if (location1 < location2) {\n return -1;\n }\n if (location1 > location2) {\n return 1;\n }\n return 0;\n })\n });\n }\n });\n }", "function App(){\n const[toggleState, setToggleState] = useState(useMediaPredicate(\"(prefers-color-scheme: dark)\") ? \"dark\" : \"light\");\n const[pageView, setPageView] = useState(\"listing\");\n const[activeListing, setActiveListing] = useState(testListings[0]);\n\n function changeActiveListing(listing){\n setActiveListing(listing);\n }\n\n function getActiveListing(){\n return activeListing;\n }\n\n function changeTheme(){\n if(toggleState===\"light\"){\n setToggleState(\"dark\");\n } else {\n setToggleState(\"light\");\n }\n }\n\n function changePageView(view){\n setPageView(view);\n }\n\n function GenerateListing(props){\n //let location = useLocation();\n let {listingid} = useParams();\n //console.log(\"Listing ID is \" + listingid);\n //console.log(\"Listing ID type is \" + typeof lisitngid);\n //let currentAPICall = `https://jobs.github.com/positions/${id}.json?markdown=true`;\n //let currentAPICall = \"https://jobs.github.com/positions.json\";\n let currentAPICall = `https://jobs.github.com/positions/${String(listingid)}.json`;\n //console.log(\"API calling; \" + currentAPICall + \" type is \" + typeof currentAPICall);\n var callHeaders = new Headers({\n \"X-Requested-With\": \"XMLHttpRequest\",\n \"Access-Control-Allow-Headers\": \"x-requested-with\",\n \"Content-type\": \"application/json\"\n })\n\n const[error, setError] = useState(null);\n const[isLoaded, setIsLoaded] = useState(false);\n const[items, setItems] = useState([testListings[0]]);\n \n useEffect(() => {\n fetch(currentAPICall, {\n method: \"GET\",\n headers: callHeaders\n })\n .then(res => res.json())\n .then(\n (result) => {\n setIsLoaded(true);\n setItems(result);\n },\n\n (err) => {\n setIsLoaded(true);\n setError(err);\n }\n )\n }, [])\n \n //console.log(JSON.stringify(items[0]));\n\n if(error){\n return(\n <div>\n ERROR: {error.message};\n </div>\n );\n } else if(!isLoaded){\n return(\n <div>\n Loading jobs...\n </div>\n );\n } else {\n return(\n <div>\n <Heading changeTheme={changeTheme} toggleState={toggleState} pageView={pageView}/>\n <ViewListing changePageView={changePageView} toggleState={toggleState} listing={items[0]}/>\n {/* If uselocation was being used, the listing would equal {location.state.listingdata} */}\n </div> \n )\n }\n \n }\n\n return(\n <div className=\"app\" data-theme={toggleState}>\n <Router>\n <Switch>\n <Route path=\"/\" exact>\n <HomePage changeTheme={changeTheme} toggleState={toggleState} pageView={pageView} changePageView={changePageView}/>\n </Route>\n <Route path=\"/listing/:listingid\" component={GenerateListing}>\n {/* <Heading changeTheme={changeTheme} toggleState={toggleState} pageView={pageView}/>\n <ViewListing changePageView={changePageView} toggleState={toggleState} listing={activeListing}></ViewListing> */}\n </Route>\n <Route>\n <h1>ERROR: Page not found!</h1>\n </Route>\n </Switch>\n </Router>\n {/* Until functionality works again: <FetchJobs /> */}\n \n </div>\n )\n}", "handleExistingList(existingListToSave) {\n this.setState({existingList: existingListToSave});\n this.setState({refreshState: !this.state.refreshState});\n }", "function updateListItem(itemMetadata) {\n\n // Define the list item changes. Use the FileLeafRef property to change the display name. \n // For simplicity, also use the name as the title. \n // The example gets the list item type from the item's metadata, but you can also get it from the\n // ListItemEntityTypeFullName property of the list.\n\n //var user = \"8\";\n //var users = \"{ 'results': ['8', '13'] }\";\n var users = getApprovals();\n \n //var extUsers = \"[email protected]\";\n var extUsers = getExternalApprovals();\n\n var body = String.format(\"{{'__metadata':{{'type':'{0}'}},'FileLeafRef':'{1}','Title':'{2}','ApproversId':{3},'Specification':'{4}','Issue':'{5}','ExtApprovers':'{6}'}}\",\n itemMetadata.type, SpecName, SpecName, users, newName, issueName, extUsers );\n \n // var body = String.format(\"{{'__metadata':{{'type':'{0}'}},'FileLeafRef':'{1}','Title':'{2}','ApproversId':{3},'Specification':'{4}','Issue':'{5}'}}\",\n // itemMetadata.type, SpecName, SpecName, users, newName, issueName );\n\n //var body = String.format(\"{{'__metadata':{{'type':'{0}'}},'Title':'{1}','ApproversId':{2}}}\",\n //itemMetadata.type, newName, users );\n \n // Send the request and return the promise.\n // This call does not return response content from the server.\n return jQuery.ajax({\n url: itemMetadata.uri,\n type: \"POST\",\n data: body,\n beforeSend : function() {\n $.blockUI({ \n message: '<h4>Updating Document Properties ...</h4>',\n css: { \n border: 'none', \n padding: '15px', \n backgroundColor: '#000', \n '-webkit-border-radius': '10px', \n '-moz-border-radius': '10px', \n opacity: .5, \n color: '#fff' \n } }); \n }, \n complete: function () {\n $.unblockUI(); \n }, \n headers: {\n \"X-RequestDigest\": jQuery(\"#__REQUESTDIGEST\").val(),\n \"content-type\": \"application/json;odata=verbose\",\n \"content-length\": body.length,\n \"IF-MATCH\": itemMetadata.etag,\n //\"IF-MATCH\": \"*\",\n \"X-HTTP-Method\": \"MERGE\"\n }\n });\n }", "async function fetchList() {\n const todoThings = await fetchItems()\n setCurrentList(todoThings)\n setChecklistConfig(\n todoThings.map((obj) => {\n let rObj = {}\n rObj.id = obj.id\n rObj.done = false\n return rObj\n })\n )\n }", "updateLendAHandersNearby(){\n lendahandersnearby()\n .then((response)=>{\n if(response.status>=200&&response.status<300){\n let lendAHandersNearby=response.data;\n console.log(\"Number of lend-a-handers nearby: \"+(lendAHandersNearby?lendAHandersNearby.length:0)+\".\");\n this.setState({\n lendahanders:(lendAHandersNearby||[])\n });\n }\n })\n .catch((err)=>{\n alert(\"ERROR: Failed to upate the lend-a-handers nearby (error: \"+JSON.stringify(err)+\").\");\n });\n }", "@action.bound\n updateStatus(newStatus) {\n this.status = newStatus;\n }", "onApprove(data, actions) {\n\n const { _id, newTier, selectedListing, amount } = this.props;\n\n return actions.order\n .capture()\n .then((details) => {\n if (this.props.onSuccess) { //If the transaction was successful, update the subscriptionTier in the DB\n axios.get('/api/userPortal')\n .then(res => {\n console.log(res);\n res.data.find((info) => {\n if (info._id === _id) {\n let id = info._id; \n \n let myListings = info.listings\n\n myListings.find((target) => {\n if (target._id === selectedListing) {\n target.subscriptionTier = newTier\n\n }\n })\n\n\n\n axios.put('/api/userPortal/' + id, {\n \"name\": info.name,\n \"phone\": info.phone,\n \"emailAddress\": info.emailAddress,\n \"address\": info.address,\n \"service\": info.service,\n \"accessibility\": info.accessibility,\n \"password\": info.password,\n \"listings\": myListings\n })\n }\n })\n });\n\n\n return this.props.onSuccess(details, data);\n }\n })\n .catch((err) => {\n if (this.props.catchError) {\n return this.props.catchError(err);\n }\n });\n }", "handleUpdate(e) {\n e.preventDefault();\n // if user chooses to update 1 item (first item that matches parameters)\n if (this.state.UpdateProp && this.state.filter && e.target.value === 'update1') {\n fetch('/putOne', {\n method: \"PUT\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n filterUpdate: this.state.filterUpdate,\n filter: this.state.filter,\n propNew: this.state.UpdateProp,\n propData: this.state.newData\n })\n }).then(res => res.json())\n .then(response => alert('project updated!'), (error) => {\n throw error.message;\n })\n\n window.location.reload(); // fetch data once more to show updates\n }\n // if user chooses to updateALL items (all items that match parameters)\n if (this.state.UpdateProp && this.state.filter && e.target.value === 'updateAll') {\n fetch('/putAll', {\n method: \"PUT\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n filterUpdate: this.state.filterUpdate,\n filter: this.state.filter,\n propNew: this.state.UpdateProp,\n propData: this.state.newData\n })\n }).then(res => res.json())\n .then(response => alert('project updated!'), (error) => {\n throw error.message;\n })\n\n window.location.reload(); // fetch data once more to show updates\n }\n\n }", "put(req, res) {\n // Count the hits\n config.TOTAL_HITS++;\n\n CpfsModel.update(\n { blackList: req.body.blackList },\n { where: {id : req.params.cpfId} }\n ).then(registers => {\n res.location('/cpfs/' + req.params.cpfId);\n return res.status(204).json('Successfully updated registration!');\n });\n }", "async updateSwapStatus (transactionHash, mintTransactionHash, status) {\n logger.info(`updating swap ethTxHash=${transactionHash}, mintTransactionHash=${mintTransactionHash}, \\\n status=${status}`);\n\n const query = { _id: transactionHash };\n\n const values = { $set: { status, mintTransactionHash } };\n this.db.collection(SWAP_COLLECTION).updateOne(query, values, (err, res) => {\n if (err) {\n throw err;\n }\n logger.info(`Updated transactionHash=${transactionHash}`);\n });\n }", "function updateListItem(itemMetadata) {\n \n // Define the list item changes. Use the FileLeafRef property to change the display name. \n // For simplicity, also use the name as the title. \n // The example gets the list item type from the item's metadata, but you can also get it from the\n // ListItemEntityTypeFullName property of the list.\n \n //var user = \"8\";\n //var users = \"{ 'results': ['8', '13'] }\";\n var users = getApprovals();\n \n var body = String.format(\"{{'__metadata':{{'type':'{0}'}},'FileLeafRef':'{1}','Title':'{2}','ApproversId':{3},'Specification':'{4}','Issue':'{5}'}}\",\n itemMetadata.type, SpecName, SpecName, users, newName, issueName );\n \n //var body = String.format(\"{{'__metadata':{{'type':'{0}'}},'Title':'{1}','ApproversId':{2}}}\",\n //itemMetadata.type, newName, users );\n \n // Send the request and return the promise.\n // This call does not return response content from the server.\n return jQuery.ajax({\n url: itemMetadata.uri,\n type: \"POST\",\n data: body,\n beforeSend : function() {\n $.blockUI({ \n message: '<h4>Updating Document Properties ...</h4>',\n css: { \n border: 'none', \n padding: '15px', \n backgroundColor: '#000', \n '-webkit-border-radius': '10px', \n '-moz-border-radius': '10px', \n opacity: .5, \n color: '#fff' \n } }); \n }, \n complete: function () {\n $.unblockUI(); \n }, \n headers: {\n \"X-RequestDigest\": jQuery(\"#__REQUESTDIGEST\").val(),\n \"content-type\": \"application/json;odata=verbose\",\n \"content-length\": body.length,\n \"IF-MATCH\": itemMetadata.etag,\n //\"IF-MATCH\": \"*\",\n \"X-HTTP-Method\": \"MERGE\"\n }\n });\n }", "function updateStatusForFriends($eventData) {\n vm.friends.forEach(function (friend) {\n if (friend.username == $eventData.username) {\n friend = usersFactory.setStatus(friend, $eventData.statusIndex);\n }\n });\n vm.blockedFriends.forEach(function (oldFriend) {\n if (friend.username == $eventData.username) {\n oldFriend = usersFactory.setStatus(oldFriend, $eventData.statusIndex);\n }\n });\n vm.allFriends.forEach(function (friend) {\n if (friend.username == $eventData.username) {\n friend = usersFactory.setStatus(friend, $eventData.statusIndex);\n }\n if (!Methods.isNullOrEmpty(vm.activeFriend)) {\n if (vm.activeFriend.username == friend.username) {\n vm.friendStatus = friend.status;\n }\n }\n });\n\n }", "function handleStatusResponse(obj) {\n // obj.data contains a JSON element\n var statusData = gadgets.json.parse(obj.data);\n var responseLength = 0;\n\n if (statusData != null) {\n responseLength = statusData.length;\n }\n\n // Loop through all of the active statuses\n for (var i = 0; i < responseLength; i++) {\n statusList[statusIndex] = new Array(4);\n statusList[statusIndex][0] = statusData[i].id;\n if (statusData[i].is_system === false) {\n customStatusCount++;\n statusList[statusIndex][1] = \"custom_status\" + String(customStatusCount);\n } else {\n statusList[statusIndex][1] = statusData[i].name;\n }\n statusList[statusIndex][2] = statusData[i].label;\n statusList[statusIndex][3] = statusData[i].color_dark;\n\n statusIndex++;\n }\n\n // This should never happen if everything is configured correctly, but just in case\n if (statusIndex == 0) {\n document.getElementById('milestoneCaption').innerHTML = \"Unable to retrieve the list of statuses\";\n msg.dismissMessage(loadMessage);\n gadgets.window.adjustHeight();\n } else {\n fetchProjectInfo();\n }\n}", "function updateList(updatedList){\n $('#timeline-list').empty();\n $('#timeline-list').prepend(updatedList)\n //separates out the hashtags so we can select and style them\n $(\"p:contains('#')\").html(function(_, html) {\n return html.replace(/(#[a-z][^\\s]+)/g, '<span class=\"hashtag\">$1</span>');\n });\n \n colorUser();\n }", "updateApplication() {\n const { selectedApplication, selectedKeyType, subscriptions } = this.state;\n const promiseApp = Application.get(selectedApplication);\n let accessToken;\n let keyType;\n\n if (subscriptions != null && subscriptions.find(sub => sub.applicationId\n === selectedApplication).status === 'PROD_ONLY_BLOCKED') {\n this.setState({ selectedKeyType: 'SANDBOX' });\n keyType = 'SANDBOX';\n } else {\n keyType = selectedKeyType;\n }\n\n promiseApp\n .then((application) => {\n return application.getKeys();\n })\n .then((appKeys) => {\n if (appKeys.get(keyType)) {\n ({ accessToken } = appKeys.get(keyType).token);\n }\n this.setState({ accessToken, keys: appKeys });\n });\n }", "setBlackListUserStatus(userID, status){\n return new Promise((resolve, reject) => {\n if(isNaN(status) || (status > 2 || status < 0)){\n reject(\"ERR: Status not a number or not in range (0 to 2)\");\n }\n var connection = mysql.createConnection({host:this.host, user:this.user, password: this.password, port: this.port});\n connection.connect(function(err){\n if(err) reject(err);\n connection.query(`select * from snackpacks.blacklist where userID=${userID}`, function(err, foundUser, fields){\n // console.log(foundUser);\n if(err) reject(err);\n if(foundUser.length > 0){\n connection.query(`update snackpacks.blacklist set status=${status} where userID=${userID}`, function(err, result, fields){\n if(err) reject(err);\n connection.end(function(err){\n if(err) reject(err);\n resolve(true);\n });\n });\n }else{\n connection.end(function(err){\n if(err) reject(err);\n reject(\"ERROR: USERID NOT FOUND\");\n });\n }\n });\n });\n });\n }", "function statusUpdater(boatId, newStatus) {\n $.get(\"api/available\", function(listBoats) {\n for (i = 0; i < listBoats.length; i++) {\n let boat = listBoats[i];\n if (boat.id == boatId) {\n console.log(\"boatId: \" + boatId);\n console.log(\"boat.id: \" + boat.id);\n\n //Mark this boat with new status:\n let boatWithNewStatus = {\n id: boat.id,\n boatNumber: boat.boatNumber,\n chargingTime: boat.chargingTime,\n numOfSeats: boat.numOfSeats,\n basePrice: boat.basePrice,\n customPrice: boat.customPrice,\n type: boat.type,\n status: newStatus\n }\n\n let boatWithNewStatusJson = JSON.stringify(boatWithNewStatus);\n\n console.log(\"boat stringified: \" + boatWithNewStatusJson);\n\n $.ajax({\n url: \"api/available/updatestatus/\" + boat.id,\n type: \"PUT\",\n contentType: \"application/json\",\n data: boatWithNewStatusJson,\n success: function() {\n availableBoats.ajax.reload();\n $(\"#genericConfirmationModal\").modal(\"show\");\n $(\"#genericConfirmationModalTitle\").empty();\n $(\"#genericConfirmationModalTitle\").text(\"Boat Status Changed\");\n $(\"#genericConfirmationModalBody\").empty();\n $(\"#genericConfirmationModalBody\").append(\n `<p>The status of boat number: ${boat.boatNumber} changed to ${newStatus}.</p>`);\n $(\"#customModalFooterButtons\").empty();\n getBoats();\n },\n error: function() {\n alert(\"ERROR: status not changed\");\n $(\"#genericConfirmationModal\").modal(\"show\");\n $(\"#genericConfirmationModalTitle\").empty();\n $(\"#genericConfirmationModalTitle\").text(\"Error!\");\n $(\"#genericConfirmationModalBody\").empty();\n $(\"#genericConfirmationModalBody\").append(\n `<p>The status of boat number ${boat.boatNumber} could not be changed.</p>`);\n $(\"#customModalFooterButtons\").empty();\n }\n });\n }\n }\n });\n\n //Get list of boats\n function getBoats() {\n $.get(\"api/available\", function(availableBoats) {\n console.log(availableBoats);\n });\n }\n }", "handleAppAdd() {\n // Ignore if there is no selection\n const selection = this.state.appDropdownSelection;\n if (selection === null) return \n\n let appBlockers = this.state.blockers.apps;\n\n // Check if app is already in the list\n const foundExistingEntry = appBlockers.find(blocker => blocker === selection);\n if (foundExistingEntry != undefined) return;\n\n // Go ahead and append it to the list\n appBlockers.push(this.state.appDropdownSelection);\n store.preferences.set('blockers.apps', appBlockers);\n }", "function UpdateStreamFile(application_id, streamfile_id, rtsp_uri) {\n logger.info(\"Updating stream file for \" + application_id + \" at \" + wowza_hostname + \":\" + wowza_port);\n\n var streamfile_name = GetID(application_id) + \"_\" + streamfile_id;\n \n function UpStreamFile () {\n\treturn new Promise(function (fulfill, reject) {\n\t \n\t var urlbase = \"http://\" + wowza_hostname + \":\" + wowza_port;\n\t var urlpath = \"/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/\";\n\t \n\t var app_data = JSON.stringify ({\n\t\t\"restURI\": urlbase + urlpath + application_id + \"/streamfiles/\" + streamfile_name + \"/adv\",\n\t\t\"advancedSettings\": [\n\t\t {\n\t\t\t\"enabled\": true,\n\t\t\t\"canRemove\": true,\n\t\t\t\"name\": \"uri\",\n\t\t\t\"value\": rtsp_uri,\n\t\t\t\"defaultValue\": null,\n\t\t\t\"type\": \"String\",\n\t\t\t\"sectionName\": \"Common\",\n\t\t\t\"section\": null,\n\t\t\t\"documented\": true\n\t\t }\n\t\t]\n\t });\n\n var request = http.request({\n\t\thostname: wowza_hostname,\n\t\tport: wowza_port,\n\t\tpath: urlpath + application_id + \"/streamfiles/\" + streamfile_name + \"/adv\",\n\t\tmethod: 'PUT',\n\t\theaders: {\n 'Accept': 'application/json',\n\t\t 'Content-type' : 'application/json'\n\t\t}\n }, function (res) {\n\t\tvar str = '';\n\t\tres.on('data', function (chunk) {\n str += chunk;\n\t\t});\n\t\tres.on('end', function () {\n\t\t var response = JSON.parse(str);\n fulfill(response);\n\t\t});\n }).on('error', function (e) {\n\t\treject(e);\n }).on('timeout', function () {\n\t\treject(\"timeout\");\n });\n request.setTimeout(1000);\n\t request.write(app_data);\n\t request.end();\n\t});\n }\n \n return RetryPromise(UpStreamFile,\n\t\t\twowza_hostname + \":\" + wowza_port,\n\t\t\t5,\n\t\t\t500)\n\t.catch(function () {\n logger.warn(\"Unable to contact \" + wowza_hostname + \":\" + wowza_port + \"; skipping\");\n return [];\n });\n}", "handleListUpdate() {\n\n // Add listeners for when the user makes a selection.\n this._$el.find('input.aims-layer-input')\n .click(this.handleChange.bind(this));\n }", "function handleStatusResponse(obj) {\n // obj.data contains a JSON element\n var statusData = gadgets.json.parse(obj.data);\n var responseLength = 0;\n\n if (statusData != null) {\n responseLength = statusData.length;\n }\n\n // Loop through all of the active statuses\n for (var i = 0; i < responseLength; i++) {\n statusList[statusIndex] = new Array(4);\n statusList[statusIndex][0] = statusData[i].id;\n if (statusData[i].is_system === false) {\n customStatusCount++;\n statusList[statusIndex][1] = \"custom_status\" + String(customStatusCount);\n } else {\n statusList[statusIndex][1] = statusData[i].name;\n }\n statusList[statusIndex][2] = statusData[i].label;\n statusList[statusIndex][3] = statusData[i].color_dark;\n\n statusIndex++;\n }\n\n // This should never happen if everything is configured correctly, but just in case\n if (statusIndex == 0) {\n document.getElementById('projectsAllCaption').innerHTML = \"Unable to retrieve the list of statuses\";\n msg.dismissMessage(loadMessage);\n gadgets.window.adjustHeight();\n } else {\n fetchProjectInfo();\n }\n}", "async function updateStatus(statusUpdate)\n{\n // combine all items from current and updated (as setKinconyRelays() needs all bits)\n let newStatus = await getStatus();\n if (statusUpdate.F1 !== undefined)\n newStatus.F1 = { ...newStatus.F1, ...statusUpdate.F1 };\n if (statusUpdate.F2 !== undefined)\n newStatus.F2 = { ...newStatus.F2, ...statusUpdate.F2 };\n if (statusUpdate.Garage !== undefined)\n newStatus.Garage = { ...newStatus.Garage, ...statusUpdate.Garage };\n\n if (\n isNaN(newStatus.F2.W9) || (newStatus.F2.W9 != 0 && newStatus.F2.W9 != 1) ||\n isNaN(newStatus.F2.W8) || (newStatus.F2.W8 != 0 && newStatus.F2.W8 != 1) ||\n isNaN(newStatus.F2.W7) || (newStatus.F2.W7 != 0 && newStatus.F2.W7 != 1) ||\n isNaN(newStatus.F2.W6) || (newStatus.F2.W6 != 0 && newStatus.F2.W6 != 1) ||\n isNaN(newStatus.F2.W5) || (newStatus.F2.W5 != 0 && newStatus.F2.W5 != 1) ||\n isNaN(newStatus.F2.W4) || (newStatus.F2.W4 != 0 && newStatus.F2.W4 != 1) ||\n isNaN(newStatus.F2.W3) || (newStatus.F2.W3 != 0 && newStatus.F2.W3 != 1) ||\n isNaN(newStatus.F2.W2) || (newStatus.F2.W2 != 0 && newStatus.F2.W2 != 1) ||\n isNaN(newStatus.F2.W1) || (newStatus.F2.W1 != 0 && newStatus.F2.W1 != 1) ||\n\n isNaN(newStatus.F1.W7) || (newStatus.F1.W7 != 0 && newStatus.F1.W7 != 1) ||\n isNaN(newStatus.F1.W6) || (newStatus.F1.W6 != 0 && newStatus.F1.W6 != 1) ||\n isNaN(newStatus.F1.W5) || (newStatus.F1.W5 != 0 && newStatus.F1.W5 != 1) ||\n isNaN(newStatus.F1.W4) || (newStatus.F1.W4 != 0 && newStatus.F1.W4 != 1) ||\n isNaN(newStatus.F1.W3) || (newStatus.F1.W3 != 0 && newStatus.F1.W3 != 1) ||\n isNaN(newStatus.F1.W2) || (newStatus.F1.W2 != 0 && newStatus.F1.W2 != 1) ||\n isNaN(newStatus.F1.W1) || (newStatus.F1.W1 != 0 && newStatus.F1.W1 != 1) ||\n\n isNaN(newStatus.Garage.W1) || (newStatus.Garage.W1 != 0 && newStatus.Garage.W1 !=1) ||\n isNaN(newStatus.Garage.W2) || (newStatus.Garage.W2 != 0 && newStatus.Garage.W2 !=1) ||\n isNaN(newStatus.Garage.W3) || (newStatus.Garage.W3 != 0 && newStatus.Garage.W3 !=1)\n )\n return Promise.reject('Invalid status requested.');\n\n let houseBitmask =\n newStatus.F2.W9 << 15 |\n newStatus.F2.W8 << 14 |\n newStatus.F2.W7 << 13 |\n newStatus.F2.W6 << 12 |\n newStatus.F2.W5 << 11 |\n newStatus.F2.W4 << 10 |\n newStatus.F2.W3 << 9 |\n newStatus.F2.W2 << 8 |\n newStatus.F2.W1 << 7 |\n\n newStatus.F1.W7 << 6 |\n newStatus.F1.W6 << 5 |\n newStatus.F1.W5 << 4 |\n newStatus.F1.W4 << 3 |\n newStatus.F1.W3 << 2 |\n newStatus.F1.W2 << 1 |\n newStatus.F1.W1;\n\n let garageBitmask =\n newStatus.Garage.W3 << 4 | // Window 3: SW5 (5)\n newStatus.Garage.W2 << 2 | // Window 2: SW3 (3)\n newStatus.Garage.W1 // Window 1: SW1 (1)\n\n return Promise.all([\n setKinconyRelays(config.houseShuttersController.port, config.houseShuttersController.host, houseBitmask),\n setKinconyRelays(config.garageShuttersController.port, config.garageShuttersController.host, garageBitmask)\n ]);\n}", "function updateFoodTrucksFromPermitList(callback)\n{\n \n var json = __dirname + \"/../server/data/foodTruckPermits.json\";\n\n var fs = require('fs');\n var file = json;\n var results = '';\n fs.readFile(file, 'utf8', function (err, data) {\n if (err) {\n console.log('Error: ' + err);\n return;\n }\n results = JSON.parse(data);\n\n console.log(results.length);\n\n var trucksMeta = processPermitResults(results);\n console.log(trucksMeta);\n\n callback(trucksMeta);\n\n });\n}", "function editList(req, res) {\n console.log('editlist', req.body)\n List.findById(req.params.listId)\n .then(list => {\n if (!list) return res.status(404).json({ message: '404 Not found' })\n // if (!req.currentUser._id.equals(list.user)) return res.status(401).json({ message: 'This is not your List' })\n return list.set(req.body)\n })\n .then(list => list.save())\n .then(list => res.status(202).json(console.log(list)))\n .catch(err => res.status(400).json(console.log(err)))\n}", "async updateShoppingList(id, data) {\n const response = await apiReq.put(API_ROUTES.shoppingListsId(id), data);\n return response.data;\n }", "async function updateStatus(location) {\n let data = {\n ...location\n };\n data.status = !data.status;\n await updateLocation(data);\n await editedLocation();\n }", "async updateData() {\n \n const result = await fetch('/api/watchlist/list');\n const json = await result.json();\n this.setState({ items: json });\n }", "[AUTH_PENDING](state) {\n state.status = \"pending\";\n }", "function updateHAList() {\n orchestrator.getHAList(function(err, data) {\n if (!err && data) {\n loadBalancer.setHAList(JSON.parse(data));\n }\n });\n}", "updatePhone2CheckList(state, action) {\n state.phonesCheckList = action.payload;\n state.addedItems += 1;\n }", "updatePendingStatus(txCount, block, hash){\n // pending status for spiner\n this.props.pending(true, txCount+1)\n // pending status for DB\n setPending(this.props.smartFundAddress, 1, this.props.accounts[0], block, hash, \"Withdraw\")\n // close modal\n this.modalClose()\n }", "changeStatus(params) {\n var index = this.list.map(i => i.id).indexOf(params.id);\n this.list[index].open = params.status;\n ls.updateItem({id : params.id}, {open : params.status});\n this.filterByStatus(this.stats);\n }", "function updateHealthMonitor(request, response, appData) {\n logutils.logger.debug('updateHealthMonitor');\n updateHealthMonitorCB(request, appData, function(error, results) {\n commonUtils.handleJSONResponse(error, response, results);\n });\n}", "filterByStatus(status) {\n this.stats = status;\n if (status === null) this.list = ls.getList() || []\n else this.list = ls.getList().filter(v => v.open == status)\n }", "onEditWatchlist(response) {\n if (response.status === \"SUCCESS\") {\n this.get('notify').success(response.status);\n } else {\n this.get('notify').error(response.status);\n }\n }", "function UpdateGPOchecklist(collections,session,config) {\n //Run the parent constructor first\n // \"_id\" is the updateKey used for updating checklists\n // \"checklist\" is just updateName which is text used on errors, logging, etc\n this.__parent__.constructor.call(\n this,\n '_id',\n 'checklist',\n //Don't need to pass collection because checklist collection passed as extensions collection for upserts\n null,\n collections.checklists,\n session,\n config\n );\n\n this.collections = collections;\n //Have access to these here for checking permissions, getting ObjectID etc\n this.checklistCollection = collections.checklists;\n this.itemsCollection = collections.items;\n this.usersCollection = collections.users;\n}", "function setupShortList(data) {\n\tvar user_id = data.userId;\n\tvar role_id = data.roleId;\n\tvar role_member = data.roleMember;\n\tvar url = data.addShortListUrl;\n\t$('.page-content').on('click', '.shortlist', function() {\n\t\tif (user_id && role_id === role_member) {\n\t\t\tvar listing_id = $(this).data('listing-id');\n\t\t\tvar data = {};\n\t\t\tdata[\"listing_id\"] = listing_id;\n\t\t\t$.ajax({\n\t\t\t\turl: url,\n\t\t\t\tdata: data,\n\t\t\t\ttype: 'POST',\n\t\t\t\tdataType: 'JSON',\n\t\t\t\tsuccess: function(data) {\n\t\t\t\t\talert(data.message);\n\t\t\t\t},\n\t\t\t\terror: function() {\n\t\t\t\t\talert(data.message);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\twindow.location = $(this).attr('next');\n\t\t}\n\t});\n}", "async function upsertListingByName(client, nameOfListing, updatedListing) {\n const result = await client.db(\"sample_airbnb\").collection(\"listingsAndReviews\")\n .updateOne({ name: nameOfListing },\n { $set: updatedListing },\n { upsert: true });\n console.log(`${result.matchedCount} document(s) matched the query criteria.`);\n if (result.upsertedCount > 0) {\n console.log(`One document was inserted with the id ${result.upsertedId._id}`);\n } else {\n console.log(`${result.modifiedCount} document(s) was/were updated.`);\n }\n}", "update() {\n let scopes = this.stores.essentials.getAllScopes(),\n application = this.stores.kio.getApplication(this.props.applicationId);\n this.data = {\n application: application,\n applicationId: this.props.applicationId,\n isOwnApplication: this.stores.user\n .getUserTeams()\n .map(team => team.id)\n .some(id => id === application.team_id),\n ownerScopes: scopes.filter(s => s.is_resource_owner_scope),\n appScopes: scopes.filter(s => !s.is_resource_owner_scope),\n oauth: this.stores.mint.getOAuthConfig(this.props.applicationId)\n };\n }", "updateData(state, payload) {\n const { action, index, item } = payload;\n // eslint-disable-next-line object-curly-newline\n const { checkflag, detail, memberid, id } = item;\n if (action === 'create') {\n axios.post('http://localhost:8081/ssm-simple/checklist/create', {\n id,\n checkflag: 0,\n detail,\n memberid,\n }).then(() => {\n state.lists.push(item);\n });\n } else if (action === 'remove') {\n axios.post('http://localhost:8081/ssm-simple/checklist/delete', {\n id,\n }).then(() => {\n state.lists.splice(index, 1);\n });\n } else if (action === 'check') {\n axios.post('http://localhost:8081/ssm-simple/checklist/check', {\n id,\n checkflag,\n }).then(() => {\n state.lists[index].checkflag = checkflag;\n });\n }\n }", "challenge(listing, data = '', opts) {\n return __awaiter(this, void 0, void 0, function* () {\n const deployed = this.requireDeployed(), account = this.requireAccount(opts);\n return yield deployed.methods.challenge(listing, data).send({ from: account });\n });\n }", "handleUpdate() {\n // Re-combining fields into one location field \n // for easy update, not currently in use\n var location = this.state.building + \".\" + this.state.floor + \".\" + this.state.room\n fetch(myPut + '/' + this.state.oneApp.id, {\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n method: 'put',\n body: JSON.stringify({\n title: this.state.title,\n meetingdate: this.state.meetingdate,\n meeting_user: this.state.meeting_user,\n note: this.state.note,\n location: this.state.location\n })\n })\n .then(() => this.fetchAppointment())\n alert('The appointment has been successfully updated')\n }", "function completed(currentList, currentUser) {\n\n $http.put(`/users/${currentUser._id}/lists/${currentList._id}`, { name: currentList.name, complete: !currentList.complete} )\n .then(function(response) {\n console.log(response);\n list.userList = response.data.user.list;\n // list.updateList(currentUser, list);\n // $state.go('user', {id: currentUser._id});\n });\n }", "refreshWhitelist(blInit = false)\n {\n var objEslTools = new EslTools();\n\n if(blInit) {\n var objTwitterWhitelist = {\n \"status\": true,\n \"timestamp\": 0,\n \"repo\": \"https://raw.githubusercontent.com/409H/EtherSecurityLookup/master/lists/twitter.whitelist.json\",\n \"users\": []\n };\n } else {\n var objTwitterWhitelist = this.getWhitelistStructure();\n }\n\n if(objTwitterWhitelist.status) {\n objEslTools.getListFromGithub(objTwitterWhitelist).then(function (objList) {\n objTwitterWhitelist.timestamp = Math.floor(Date.now() / 1000);\n objTwitterWhitelist.users = objList;\n\n localStorage.setItem(\"ext-ethersecuritylookup-twitter_whitelist\", JSON.stringify(objTwitterWhitelist));\n this.getStats();\n }.bind(this));\n }\n }", "constructor() {\n this._listings = null;\n /**\n */\n this._listingsLoaded = new Signal(this);\n requestAPI('@jupyterlab/extensionmanager-extension/listings.json')\n .then(data => {\n this._listings = {\n mode: 'default',\n uris: [],\n entries: []\n };\n if (data.blacklist_uris.length > 0 && data.whitelist_uris.length > 0) {\n console.warn('Simultaneous black and white list are not allowed.');\n this._listings = {\n mode: 'invalid',\n uris: [],\n entries: []\n };\n }\n else if (data.blacklist_uris.length > 0 ||\n data.whitelist_uris.length > 0) {\n this._listings = {\n mode: data.blacklist_uris.length > 0 ? 'black' : 'white',\n uris: data.blacklist_uris.length > 0\n ? data.blacklist_uris\n : data.whitelist_uris,\n entries: data.blacklist_uris.length > 0 ? data.blacklist : data.whitelist\n };\n }\n this._listingsLoaded.emit(this._listings);\n })\n .catch(error => {\n console.error(error);\n });\n }", "function updateApplications(application){\n let user = auth['user'];\n user.applications.push(application);\n auth['removeUser']('user');\n auth['setUser']('user',user);\n }", "function flickrUpdate(status, method, data, oAuthData)\n{\n data = JSON.parse(data);\n if (!status)\n {\n promptWarning(\"Failed to get a result for method \" + method + \"\\n\" + data);\n delete setData[oAuthData.setId];\n return;\n }\n\n if (data.stat && data.stat == \"fail\")\n {\n promptWarning(\"Flickr call failed for: \" + method + \"\\nThis can happen if you did not authorize FlickrGetSet, or if you are downloading with a guest pass.\");\n log(\"SetId: \" + oAuthData.setId + \"\\nData: \" + data.message?data.message:\"\");\n return;\n }\n switch (method)\n {\n case \"flickr.photosets.getInfo\":\n handleSetInfo(data, oAuthData);\n break;\n case \"flickr.photosets.getPhotos\":\n handleSetPhotos(data, oAuthData);\n break;\n default:\n log(\"Got a flickr update for an unknown method: \" + method);\n }\n}", "function handleStatus(e) {\n var identifier = null;\n const li = Array.from(list);\n let arrayIndex = null;\n\n //Split the piece of id to use like reference\n identifier = e.currentTarget.id.split(\"-\")[0];\n\n //Search in array the element.id which matches with identifier\n for (let i = 0; i < li.length; i++) {\n if (li[i].id === parseInt(identifier)) {\n arrayIndex = i;\n }\n }\n\n //Toogle the value of element.complete\n li[arrayIndex].complete = !li[arrayIndex].complete;\n\n //Update the global list\n setList(li);\n\n //Assign the changes and withdraw if the values matches\n if (li[arrayIndex].complete === true) {\n document.getElementById(`${identifier}-task`).classList.add(\"checked\");\n document\n .getElementById(`${identifier}-task-wrapper`)\n .children[1].classList.add(\"completed\");\n } else {\n document.getElementById(`${identifier}-task`).classList.remove(\"checked\");\n document\n .getElementById(`${identifier}-task-wrapper`)\n .children[1].classList.remove(\"completed\");\n }\n }", "function updateFlags() {\n\t\tTi.API.debug('checking the flag status');\n\t\tvar webAPI = new globals.xml.flagStatus({gameID:gameID});\n\t\t\n\t\t//listens for flag status information\n\t\tTi.App.addEventListener('flagStatus', function(input){\n\t\t\tTi.API.log('new flag status information recieved');\n\t\t});\n\t\t\n\t\t//*******************\n\t}", "function SetItemStatus(url, status)\n{\n if (!url)\n return false;\n\n if (!status)\n status = \"busy\";\n\n // Just set attribute for status icon \n // if we already have this url \n var listitems = document.getElementsByTagName(\"listitem\");\n if (listitems)\n {\n for (var i=0; i < listitems.length; i++)\n {\n if (listitems[i].getAttribute(\"label\") == url)\n {\n listitems[i].setAttribute(\"progress\", status);\n return true;\n }\n }\n }\n\n // We're adding a new item to list\n var listitem = document.createElementNS(XUL_NS, \"listitem\");\n if (listitem)\n {\n listitem.setAttribute(\"class\", \"listitem-iconic progressitem\");\n // This triggers CSS to show icon for each status state\n listitem.setAttribute(\"progress\", status);\n listitem.setAttribute(\"label\", url);\n gDialog.LinksList.appendChild(listitem);\n }\n return false;\n}", "function checkHandler(key, completed) {\n for (let item of list) {\n if (item.key === key) {\n item.completed = completed;\n\n }\n }\n setList([...list]);\n }", "function updateStatus (slug) {\n\n getDuplicates(slug)\n .then(function (res) {\n\n if (res.hasDuplicates && slug) {\n warningMessage.style.display = \"block\";\n warningMessage.innerText = 'A page with this URL already exists!!!';\n setStatus('error');\n\n api.field.setInvalid(true);\n\n duplicate.style.display = \"block\";\n\n for(var dup of res.dupliactes) {\n\n duplicate.innerHTML += '<li class=\"duplicate-item\"><a href=\"/spaces/' + dup.sys.space.sys.id + '/entries/' + dup.sys.id + '\" target=\"_blank\">' + dup.fields.name['sv-SE'] + ' <i class=\"fa fa-external-link\"></i></a></li>';\n }\n\n } else if(slug) {\n warningMessage.style.display = \"none\";\n setStatus('ok');\n\n api.field.setInvalid(false);\n } else {\n console.log(\"Something went wrong.\");\n }\n })\n }", "blockByCpf(req, res) {\n // Count the hits\n config.TOTAL_HITS++;\n\n // Validate CPF\n if (CPF.validate(req.params.cpf)) {\n\n // If CPF is masked, remove the mask\n if (CPF.isMasked(req.params.cpf))\n req.params.cpf = CPF.unMask(req.params.cpf);\n\n // Update to CPF blocked\n CpfsModel.update(\n { blackList: \"block\" },\n { where: {cpf : req.params.cpf} }\n ).then(registers => {\n res.location('/cpfs/' + req.params.cpf);\n return res.status(204).send('Successfully updated registration!');\n });\n }\n else\n return res.status(404).send('Bad Request: CPF not found!');\n }", "static updateFavorite(id,status){\r\n DBHelper.fetchRestaurantById(id, (error,restaurant) =>{\r\n if(error) return;\r\n restaurant.is_favorite=status;\r\n localDb.then( db => {\r\n const storeName = 'restaurants'\r\n const tx =db.transaction(storeName,'readwrite');\r\n const store = tx.objectStore(storeName);\r\n store.put(restaurant).then(id => {\r\n fetch(DBHelper.DATABASE_URL+`restaurants/1/?is_favorite=${status}`,{method: 'PUT'});\r\n });\r\n return restaurant;\r\n });\r\n });\r\n }", "manageHashlist(){\n if (fs.existsSync(this.hash_bucket_path)) {\n let data=fs.readFileSync(this.hash_bucket_path);\n this.hashliststore=JSON.parse(data);\n }else{\n this.hashliststore=this.createHashlist()\n }\n }", "updateWorkflow(campaignId, title, newWorkflow) {\n this.setState({\n pendingTitleChange: title,\n tryCount: 0,\n expectedWorkflow: newWorkflow,\n });\n let { cards } = this.state;\n cards = cards.map((cur) => {\n if (cur.cardTitle === title) {\n const current = cur;\n current.isUpdating = true;\n return current;\n }\n return cur;\n });\n this.setState({ cards });\n fetch('http://localhost:8080/cards', {\n method: 'POST', // *GET, POST, PUT, DELETE, etc.\n mode: 'cors', // no-cors, cors, *same-origin\n cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached\n credentials: 'same-origin', // include, *same-origin, omit\n headers: {\n 'Content-Type': 'application/json',\n // \"Content-Type\": \"application/x-www-form-urlencoded\",\n },\n body: JSON.stringify({\n campaignId,\n title,\n newWorkflow,\n }), // body data type must match \"Content-Type\" header\n }).then((response) => {\n if (response.status === 202) {\n // if update accepted is received from server, wait 1 second and check for update completion\n setTimeout(\n () => {\n this.checkForUpdateCompleted();\n },\n 1000,\n );\n } else {\n // this should show on the screen to the end user vs console.log\n }\n });\n }", "updateStateBookings(list, id){\n\t\tthis.setState({\n\t\t\tpreviousCarBookings: list\n\t\t});\n\t\tthis.updateVehicleDocument(id);\n\t}", "postNewListing(state){\n return new Promise((resolve, reject) => {\n axios.post(`${this.url}/listings/`, state, this.config)\n })\n }", "async function updateStatus($items, status){\n\t\t//TODO: Error handling in case Promise rejects\n\t\tawait Promise.all($items.toArray().map(async function(item) {\n\t\t\treturn self.db.updateStatus($(item).attr('id'), status);\n\t\t}));\n\t\tawait self.loadAllItems();\n\t}" ]
[ "0.5223855", "0.4951868", "0.48654446", "0.4864351", "0.4799458", "0.47674277", "0.46703455", "0.4588139", "0.45853782", "0.45470458", "0.45210463", "0.44564027", "0.44555843", "0.44072017", "0.4376598", "0.43688685", "0.43531272", "0.432941", "0.43260267", "0.43152893", "0.42806613", "0.42771655", "0.42761812", "0.426544", "0.42648724", "0.4264245", "0.4257378", "0.42551953", "0.42437378", "0.4241899", "0.42381805", "0.42194778", "0.42138562", "0.42124766", "0.4210392", "0.41915336", "0.4184502", "0.41754112", "0.41650152", "0.41598132", "0.41581938", "0.41564843", "0.4155616", "0.41494685", "0.41462946", "0.4146174", "0.41442168", "0.41349846", "0.41332906", "0.41214815", "0.4120504", "0.41168553", "0.4114974", "0.4107627", "0.41037565", "0.41031164", "0.4092256", "0.40902033", "0.4088926", "0.40767515", "0.40731433", "0.4071624", "0.40709996", "0.40689325", "0.40629405", "0.40609118", "0.4060715", "0.40547436", "0.40493214", "0.40492824", "0.40483505", "0.40456924", "0.40454805", "0.40375388", "0.4031623", "0.40303302", "0.4024603", "0.4021647", "0.40190554", "0.40183562", "0.40165642", "0.40105265", "0.40051553", "0.40009078", "0.39945087", "0.39923656", "0.3988263", "0.3982957", "0.39817473", "0.39807826", "0.3978243", "0.39667103", "0.3960059", "0.39588195", "0.3956299", "0.3955922", "0.39558947", "0.39542228", "0.39440238", "0.39422804" ]
0.62385035
0
Return the address of the plcrvoting referenced by this contract instance
voting() { return __awaiter(this, void 0, void 0, function* () { const deployed = this.requireDeployed(); return yield deployed.methods.voting().call(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getAddress() {\n let encodable = [\n me.record ? me.record.id : this.pubkey,\n bin(this.box.publicKey),\n PK.usedBanks\n ]\n return base58.encode(r(encodable))\n }", "get address () {\n return this.contractAddress\n }", "get address() {\n\t\treturn this.__address;\n\t}", "get address () {\n\t\treturn this._address;\n\t}", "async getAddress () {\n const pubkey = await this.getUnusedPubkey()\n\n return pubkeyToAddress(pubkey, this.settings.NETWORK_BYTE)\n }", "getAddress() {\n return this.wallet.legacyAddress;\n }", "get address() { return this._address; }", "getAddress() {\n return this.address;\n }", "getAddress()\n {\n return this.adress;\n }", "get addr() { return this._addr; }", "getAddressComponentReference() {\n return this.addressComponent;\n }", "get address () {\n return this._address\n }", "getAddress() {\n return this.wallet.address;\n }", "async getPublicAddress(){\n var paymentChannel = null;\n var comControl = null;\n if(this.publicMode){\n if(!(await this.readReference())){\n return null;\n }\n \n paymentChannel = this.getPaymentChannel();\n comControl = this.getComControl();\n if(!paymentChannel){\n this.emitError(codes.NO_PAYMENT_MESSAGE);\n return null;\n }\n if(!comControl){\n this.emitError(codes.NO_COM_MESSAGE);\n return null;\n }\n \n await this.readOffspringReference(paymentChannel.msg.offspringReference);\n }\n if(this.selectedTimeIndexedObject){\n paymentChannel = this.getPaymentChannel();\n comControl = this.getComControl();\n if(!paymentChannel){\n this.emitError(codes.NO_PAYMENT_MESSAGE);\n return null;\n }\n if(!comControl){\n this.emitError(codes.NO_COM_MESSAGE);\n return null;\n }\n var selectedCandidate = null;\n var lastIndex = -1;\n this.emitInfo(codes.SELECTING_CANDIDATE);\n while(selectedCandidate == null){\n selectedCandidate = await this.pickCandidate(paymentChannel.msg.validations, lastIndex);\n \n if(!selectedCandidate){\n this.emitError(codes.NO_ADDRESS);\n return null;\n }\n this.emitInfo(codes.POTENTIAL_ADDRESS_SELECTED, selectedCandidate);\n lastIndex = selectedCandidate.i;\n\n await this.executeAddressValidation(selectedCandidate, paymentChannel.msg.validations);\n if(selectedCandidate.isCandidate()){\n this.emitInfo(codes.ADDRESS_SELECTED, selectedCandidate);\n return selectedCandidate;\n }\n selectedCandidate = null;\n }\n }else{\n this.emitError(codes.NO_ORIGIN_MESSAGE);\n return null;\n }\n }", "get ipAddress() {\n return this.getStringAttribute('ip_address');\n }", "get ipAddress() {\n return this.getStringAttribute('ip_address');\n }", "get address(){return this._address;}", "get address(){return this._address;}", "get address(){return this._address;}", "get address() {\n return this.web3Account.address;\n }", "get tunnel2CgwInsideAddress() {\n return this.getStringAttribute('tunnel2_cgw_inside_address');\n }", "get tunnel1CgwInsideAddress() {\n return this.getStringAttribute('tunnel1_cgw_inside_address');\n }", "get tunnel1VgwInsideAddress() {\n return this.getStringAttribute('tunnel1_vgw_inside_address');\n }", "get tunnel2VgwInsideAddress() {\n return this.getStringAttribute('tunnel2_vgw_inside_address');\n }", "getPeerAddr() {\n\t\tvar addr = null;\n\t\tif(this._ep) {\n\t\t\taddr = this._ep._endpoint.addr;\n\t\t}\n\n\t\treturn addr;\n\t}", "toAddress() {\r\n return Blake2b.sum256(this._publicKey);\r\n }", "getAddressString () {\n return secUtil.bufferToHex(this.getAddress())\n }", "toAddress() {\r\n return blake2b_1.Blake2b.sum256(this._publicKey);\r\n }", "makeAddress() {\n let kp = keypair();\n let addr = utils.calcAddress(kp.public);\n this.addresses[addr] = kp;\n return addr;\n }", "function getPinAddress(name) {\n return pxsim.getPin(name);\n }", "async xrpAddressForPayId(payId) {\n const result = await super.cryptoAddressForPayId(payId, `xrpl-${this.xrplNetwork}`);\n const { address } = result;\n if (xrp_utils_1.default.isValidXAddress(address)) {\n return address;\n }\n const isTest = this.xrplNetwork !== xpring_common_js_1.XrplNetwork.Main;\n const tag = result.tag ? Number(result.tag) : undefined;\n // Ensure if there was a tag attached that it could be parsed to a number.\n if (result.tag && tag === undefined) {\n throw new pay_id_error_1.default(pay_id_error_1.PayIdErrorType.UnexpectedResponse, 'The returned tag was in an unexpected format');\n }\n const encodedXAddress = xrp_utils_1.default.encodeXAddress(address, tag, isTest);\n if (!encodedXAddress) {\n throw new pay_id_error_1.default(pay_id_error_1.PayIdErrorType.UnexpectedResponse, 'The returned address was in an unexpected format');\n }\n return encodedXAddress;\n }", "get pReference() {\n\t\treturn this.__pReference;\n\t}", "getFormattedAddress() {\n\n }", "get outsideIpAddress() {\n return this.getStringAttribute('outside_ip_address');\n }", "get address() \n{ return this._address; \n}", "get tunnel1Address() {\n return this.getStringAttribute('tunnel1_address');\n }", "addr() {\n return this.pos;\n }", "addr() {\n return this.pos;\n }", "function getLinkAddress(field, candidate) {\r\n\tvar href = field.link;\r\n\tvar match;\r\n\twhile (match = href.match(/^(.*?)@@(.*?)@@(.*)$/)) {\r\n\t\thref = match[1] + candidate[match[2]] + match[3];\r\n\t}\r\n\treturn href;\r\n}", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "function nameAddr() {\n return wrap('name-addr', and(opt(displayName), angleAddr)());\n }", "get addresses () {\n\t\treturn this._addresses;\n\t}", "getContractNumber() {\n return this.rawData.contracts[0].contractNumber;\n }", "getAdress(){\n return this.adress;\n }", "encodedCashAddr() {\n const res = memoizedEncoded(this, false);\n return res;\n }", "function sc_caaadr(p) { return p.cdr.car.car.car; }", "function getContractAddresses() {\n return baseLogic.getContractAddresses()\n}", "get phoneOwner () {\n \n }", "async function addr() {\n return await $.ajax({\n url: domain + \"/peer/addr\",\n method: \"GET\",\n });\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "function address() {\n return wrap('address', or(mailbox, group)());\n }", "get tunnel2Address() {\n return this.getStringAttribute('tunnel2_address');\n }", "_address(parameter, mode)\n {\n return mode === 2 ? parameter + this.relativeBase : parameter;\n }", "function sc_caaddr(p) { return p.cdr.cdr.car.car; }", "function sc_cdaddr(p) { return p.cdr.cdr.car.cdr; }", "getAddresses() {\n this.node.logger.silly(`Get adresses: ${this.id.addresses}`)\n return this.id.addresses\n }", "getAddress(symbol) {\n return ERC20_ADDRESS[symbol]\n }", "getContract() {\n return this.contract;\n }", "async function getNFTAddress() {\n return getContractAddress('NFTokenMetadata');\n}", "getAccount(peerAddr) {\n let accts = globalState.get('000-reputation-accounts');\n for (let pa of Object.keys(accts)) {\n if (pa === peerAddr) {\n return accts[peerAddr];\n }\n }\n return null;\n }", "static getAddressLookupUrl(coin, address) {\n if (OtherCoins[coin] && OtherCoins[coin].addressLookup) {\n if (address) {\n return OtherCoins[coin].addressLookup.replace('[[address]]', address);\n }\n return OtherCoins[coin].addressLookup;\n }\n return '';\n }", "function sc_cadr(p) { return p.cdr.car; }", "address(value) {\n return Object(address_lib_esm[\"a\" /* getAddress */])(value);\n }", "function getCurrentAddress() {\n var address = [], \n addressKeys = Maptimize.AddressChooser.AddressKeys;\n\n for (var i = addressKeys.length-1; i>=0; --i) {\n var k = addressKeys[i];\n if (this[k]) {\n var value = valueForElement(this[k]);\n // Strip string\n value = value.replace(/^\\s+/, '').replace(/\\s+$/, '');\n if (value.length > 0) address.unshift(value);\n }\n }\n return address;\n }", "testAddress() {\n if (this.isReseller) {\n // If current offer is a reseller offer,\n // launch eligibility test address for partners (reseller)\n return this.OvhApiConnectivityEligibility.v6().testAddressPartners(\n this.$scope,\n {\n streetCode: this.address.street.streetCode,\n streetNumber: this.address.streetNumber,\n },\n );\n }\n return this.OvhApiConnectivityEligibility.v6().testAddress(this.$scope, {\n streetCode: this.address.street.streetCode,\n streetNumber: this.address.streetNumber,\n });\n }", "function bnGetPrng() {\n\t // create prng with api that matches BigInteger secure random\n\t return {\n\t // x is an array to fill with bytes\n\t nextBytes: function(x) {\n\t for(var i = 0; i < x.length; ++i) {\n\t x[i] = Math.floor(Math.random() * 0x0100);\n\t }\n\t }\n\t };\n\t}", "function getAddress(sig, msg) {\n const {v, r, s} = ethUtil.fromRpcSig(sig);\n\n const pubKey = ethUtil.ecrecover(ethUtil.hashPersonalMessage(msg), v, r, s);\n const addrBuf = ethUtil.pubToAddress(pubKey);\n\n return ethUtil.bufferToHex(addrBuf);\n}", "function pubkeyToAddress(pubkey) {\n // transform the value according to what ethers expects as a value\n const concatResult = `0x04${pubkey\n .map(coord => coord.toHexString())\n .join('')\n .replace(/0x/gi, '')}`;\n return ethers_1.utils.computeAddress(concatResult);\n}", "function addressRec(address, publicKey, privateKey) {\n this.address = address;\n this.publicKey = publicKey;\n this.privateKey = privateKey;\n}", "get address() { return this._registers[0].address; }", "getPhonePin() {\n return this.phonePin;\n }", "getRemoteIp() {\n return this.ip;\n }", "onVoteCandidate(id){\n this.props.contractInstance.vote(this.state.pollIndex, id,\n {gas:300000},(err,result) => {console.log(result);})\n }", "async function getRVNBalance(addr, verbose) {\n try {\n const result = await RVNBOX.Address.details([addr])\n\n if (verbose) console.log(result)\n\n const rvnBalance = result[0]\n\n return rvnBalance.balance\n } catch (err) {\n console.error(`Error in getRVNBalance: `, err)\n console.log(`addr: ${addr}`)\n throw err\n }\n}", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "function angleAddr() {\n return wrap('angle-addr', or(\n and(\n invis(opt(cfws)),\n literal('<'),\n addrSpec,\n literal('>'),\n invis(opt(cfws))\n ),\n obsAngleAddr\n )());\n }", "get publicIpAddress() {\n return this.getStringAttribute('public_ip_address');\n }", "function bnGetPrng() {\n // create prng with api that matches BigInteger secure random\n return {\n // x is an array to fill with bytes\n nextBytes: function(x) {\n for(var i = 0; i < x.length; ++i) {\n x[i] = Math.floor(Math.random() * 0x0100);\n }\n }\n };\n}", "function bnGetPrng() {\n // create prng with api that matches BigInteger secure random\n return {\n // x is an array to fill with bytes\n nextBytes: function(x) {\n for(var i = 0; i < x.length; ++i) {\n x[i] = Math.floor(Math.random() * 0x0100);\n }\n }\n };\n}", "function bnGetPrng() {\n // create prng with api that matches BigInteger secure random\n return {\n // x is an array to fill with bytes\n nextBytes: function(x) {\n for(var i = 0; i < x.length; ++i) {\n x[i] = Math.floor(Math.random() * 0x0100);\n }\n }\n };\n}", "function bnGetPrng() {\n // create prng with api that matches BigInteger secure random\n return {\n // x is an array to fill with bytes\n nextBytes: function(x) {\n for(var i = 0; i < x.length; ++i) {\n x[i] = Math.floor(Math.random() * 0x0100);\n }\n }\n };\n}", "function bnGetPrng() {\n // create prng with api that matches BigInteger secure random\n return {\n // x is an array to fill with bytes\n nextBytes: function(x) {\n for(var i = 0; i < x.length; ++i) {\n x[i] = Math.floor(Math.random() * 0x0100);\n }\n }\n };\n}", "function bnGetPrng() {\n // create prng with api that matches BigInteger secure random\n return {\n // x is an array to fill with bytes\n nextBytes: function(x) {\n for(var i = 0; i < x.length; ++i) {\n x[i] = Math.floor(Math.random() * 0x0100);\n }\n }\n };\n}", "function slotAddress(slot) {\n if (slot.key !== undefined && slot.path !== undefined) {\n // mapping reference\n return Evm.Utils.keccak256(MappingKey.Encode.mappingKeyAsHex(slot.key), slotAddress(slot.path)).add(slot.offset);\n }\n else if (slot.path !== undefined) {\n const pathAddress = slotAddress(slot.path);\n const path = slot.hashPath\n ? Evm.Utils.keccak256(pathAddress)\n : pathAddress;\n return path.add(slot.offset);\n }\n else {\n return slot.offset;\n }\n}", "getAddress(node){\n console.log(\"Getting address for: \" + node);\n // cache addresses for faster use\n if (this.addresses[node]) {\n return new Promise(resolve => resolve(this.addresses[node]))\n }\n let config = Promise.all(this.getConfig(node));\n return config.then( response => {\n let web3 = response[0];\n let contract = response[1];\n return web3.eth.getAccounts();\n }).then(accounts => {\n this.addresses[node] = accounts[0];\n return accounts[0];\n });\n }", "getPredictionAddress(prediction) {\n if (prediction.predictionPlace) {\n // default prediction defined above\n return prediction.predictionPlace.address;\n }\n // prediction from Mapbox geocoding API\n return prediction.place_name;\n }", "getPredictionAddress(prediction) {\n if (prediction.predictionPlace) {\n // default prediction defined above\n return prediction.predictionPlace.address;\n }\n // prediction from Mapbox geocoding API\n return prediction.place_name;\n }", "getPersonAddress() {\n return 'Mumbai'\n }", "function bnGetPrng() {\n // create prng with api that matches BigInteger secure random\n return {\n // x is an array to fill with bytes\n nextBytes: function(x) {\n for(var i = 0; i < x.length; ++i) {\n x[i] = Math.floor(Math.random() * 0xFF);\n }\n }\n };\n}", "function sc_cddadr(p) { return p.cdr.car.cdr.cdr; }", "get callerReference() {\n return this.getStringAttribute('caller_reference');\n }", "ticketURL() { return `https://${this.host}:${this.proxyPort}/qps${this.virtualProxy}/ticket?xrfkey=${xrfKey}`; }", "addresses() {\n return __awaiter(this, void 0, void 0, function* () {\n return api_1.addresses(this);\n });\n }", "get address() {\n return this.findElement('.event-location');\n }", "function getAddress(placemark) {\n return placemark.address;\n }" ]
[ "0.62185663", "0.61201245", "0.602159", "0.5961195", "0.5926115", "0.59094363", "0.5832323", "0.5807537", "0.57356143", "0.56750107", "0.5613339", "0.56107175", "0.5578925", "0.5457772", "0.5455659", "0.5455659", "0.54519016", "0.54519016", "0.54519016", "0.53830427", "0.53630173", "0.53196347", "0.5291407", "0.523373", "0.51694757", "0.51566", "0.5147399", "0.5145555", "0.5109307", "0.50945157", "0.5003447", "0.49821782", "0.4974861", "0.4971802", "0.4967759", "0.49625596", "0.49588424", "0.49588424", "0.49327", "0.490808", "0.490808", "0.490808", "0.490808", "0.4881854", "0.487801", "0.48641545", "0.4859742", "0.48465666", "0.4832754", "0.4823545", "0.48207384", "0.4817361", "0.4817361", "0.4817361", "0.4817361", "0.47974867", "0.47932798", "0.47820634", "0.4780258", "0.47745806", "0.47717527", "0.4751375", "0.47386843", "0.47220665", "0.46979558", "0.4677981", "0.4671623", "0.4668244", "0.46646112", "0.466167", "0.46552023", "0.46523064", "0.46522263", "0.46467263", "0.46436813", "0.46341968", "0.46312216", "0.46299896", "0.46249497", "0.46249497", "0.46249497", "0.46249497", "0.4624146", "0.462374", "0.462374", "0.462374", "0.462374", "0.462374", "0.462374", "0.4615433", "0.46134266", "0.4605199", "0.4605199", "0.4603075", "0.4601412", "0.45946825", "0.45910734", "0.45865846", "0.45735714", "0.45700762", "0.45675865" ]
0.0
-1
end: imprimir correu start: imprimir any
function any(){ today = new Date(); start = new Date(today.getFullYear(),00,01); document.write(today.getFullYear()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mostraNotas(){}", "onAny() {}", "function any() {\n }", "doneIf(start, end, ids) {\n return ids.length === 1;\n }", "function aclaracion(i) { //Saca un mensaje de aclaraci?n de la respuesta\n\tif ((pulsado!=0) & (acla[i]!=\"\")) {alert(acla[i]);}\n}", "function test_existanceMpe_soumissionaire (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allmpe_soumissionaire.filter(function(obj)\n {\n return obj.id == currentItemMpe_soumissionaire.id;\n });\n if(pass[0])\n {\n if((pass[0].id_prestataire != currentItemMpe_soumissionaire.id_prestataire )) \n { \n insert_in_baseMpe_soumissionaire(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseMpe_soumissionaire(item,suppression);\n }", "function test_existanceMpe_soumissionaire (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allmpe_soumissionaire.filter(function(obj)\n {\n return obj.id == currentItemMpe_soumissionaire.id;\n });\n if(pass[0])\n {\n if((pass[0].id_prestataire != currentItemMpe_soumissionaire.id_prestataire )) \n { \n insert_in_baseMpe_soumissionaire(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseMpe_soumissionaire(item,suppression);\n }", "function test_existancePv_consta_rubrique_phase_lat_mpe (item,suppression)\n{ \n if (suppression!=1)\n {\n var mem = vm.allpv_consta_rubrique_phase_lat_mpe.filter(function(obj)\n {\n return obj.id == currentItemPv_consta_rubrique_phase_lat_mpe.id;\n });\n if(mem[0])\n {\n if(mem[0].observation != currentItemPv_consta_rubrique_phase_lat_mpe.observation) \n { \n insert_in_basePv_consta_rubrique_phase_lat_mpe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_basePv_consta_rubrique_phase_lat_mpe(item,suppression);\n}", "function test_existanceDemande_latrine_mpe (item,suppression)\n{ \n if (suppression!=1)\n {\n var pass = vm.alldemande_latrine_mpe.filter(function(obj)\n {\n return obj.id == currentItemDemande_latrine_mpe.id;\n });\n if(pass[0])\n {\n if(pass[0].id_tranche_demande_mpe != currentItemDemande_latrine_mpe.id_tranche_demande_mpe) \n { \n insert_in_baseDemande_latrine_mpe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseDemande_latrine_mpe(item,suppression);\n}", "function attaquer() \n{\n if (presenceEnnemi === 666){\n dialogBox(\"MORT DE CHEZ MORT ARRETE MAINTENANT. TU PEUX PAS ATTAQUER T'ES MORT. MORT. MOOOOORT\");\n }else if (presenceEnnemi === 0){\n dialogBox(\"Tu n'as pas d'adversaire, va chercher la merde on en reparle après.\");\n }else if (presenceEnnemi = 1, tourJoueur(tour)=== true){\n var Min= Number(personnage.force - 10)\n var Max= Number(personnage.force + 10)\n\n function getRndInterger(min, max) {\n return Math.floor(Math.random() * (max - min + 1) ) + min;}\n\nvaleurAttaque = getRndInterger(Min, Max);\nactionPerso = 1;\nreactionEnnemi();\nesquiveReussie = 0;\nresetSpecial();\n}\n\n}", "function inLeka(res) {\n if (res.customers.length === 0) {\n return false;\n } else {\n for (i = 0; i < res.customers.length; i++) {\n if (typeof res.customers[i].id !== 'undefined') {\n return true;\n } \n }\n }\n return false;\n }", "function posarBoleta(e) {\r\n// console.log(\"has clicat el \"+ e.target.getAttribute('id'));\r\n if (numDeClics==0) {\r\n //si guanya\r\n if (e.target.getAttribute('id')==aleatorio) {\r\n resultat(\"guany\", \"Felicitats :)\");\r\n // resultat(\"Felicitats :)\");\r\n //si perd\r\n }else{\r\n // resultat(\"Torna a provar! :S\");\r\n resultat(\"perd\", \"Torna a provar! :S\");\r\n\r\n }\r\n numDeClics=numDeClics+1;\r\n }\r\n}", "function test_existancePv_consta_rubrique_phase_mob_mpe (item,suppression)\n{ \n if (suppression!=1)\n {\n var mem = vm.allpv_consta_rubrique_phase_mob_mpe.filter(function(obj)\n {\n return obj.id == currentItemPv_consta_rubrique_phase_mob_mpe.id;\n });\n if(mem[0])\n {\n if(mem[0].observation != currentItemPv_consta_rubrique_phase_mob_mpe.observation) \n { \n insert_in_basePv_consta_rubrique_phase_mob_mpe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_basePv_consta_rubrique_phase_mob_mpe(item,suppression);\n}", "function falso(){\n\tif(cont==2||cont==3||cont==5||cont==6||cont==7||cont==8||cont==10||cont==11||cont==13||cont==17||cont==19){\n\t\talert(\"ESA ES MI CHICA! CORRECTO\");\n\t\tpuntos = puntos + 1;\n\t}else{\n\t\talert(\"MALA NOVIA!!! ERROR\");\n\t}\n\tconsole.log(puntos);\n\tcambiarPagina();\n}", "function test_existanceDemande_mobilier_mpe (item,suppression)\n{ \n if (suppression!=1)\n {\n var pass = vm.alldemande_mobilier_mpe.filter(function(obj)\n {\n return obj.id == currentItemDemande_mobilier_mpe.id;\n });\n if(pass[0])\n {\n if(pass[0].id_tranche_demande_mpe != currentItemDemande_mobilier_mpe.id_tranche_demande_mpe) \n { \n insert_in_baseDemande_mobilier_mpe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseDemande_mobilier_mpe(item,suppression);\n}", "async cancelarSolicitudesParaInmueble(infoSolicitud){\n let idInmueble = infoSolicitud.idInmueble\n let idSolicitudAprobada = infoSolicitud.idFirebase\n let fecha1 = infoSolicitud.fechaInicio\n let fecha2 = infoSolicitud.fechaFin\n let respuesta = await ManejadorBD.realizarConsulta(\"Solicitudes\", [\"idInmueble\"], [\"==\"], [idInmueble])\n for(let i in respuesta){\n if ( respuesta[i].idFirebase !== idSolicitudAprobada ){\n let objRervaAux = new SolicitudReserva( respuesta[i] )\n if ( objRervaAux.estaAbierta() && objRervaAux.fechasSeCruzan(fecha1, fecha2) ){\n this.cambiarEstadoSolicitudBaseDatos(respuesta[i].idFirebase, \"O\" )\n }\n }\n }\n }", "function Deplacement_ennemiLimitrophe(Territoire){\r\n\tif (Territoire.army < 2) {return false}\r\n for (var i=0 ; i < Territoire.voisins.length ; i++){\r\n if (Territoire.proprietaire != Territoire.voisins[i].proprietaire ){\r\n return true\r\n }\r\n }\r\n return false\r\n}", "function esquiver() \n{\n //Cas spéciaux : Mort, ou pas d'ennemi\n if (presenceEnnemi === 666){\n dialogBox(\"Eh me saoule pas là relance le jeu ou casse toi connard J'AI AUTRE CHOSE A FOUTRE LA.\")\n \n }else if(presenceEnnemi ===0){ \n dialogBox(\"Tu donnes l'impression de danser sur les chemins, c'est mignon mais ça va pas t'aider.\")\n }\n \n //PROCEDURE HABITUELLE\n else if (presenceEnnemi = 1, tourJoueur(tour)=== true){\n var Min= Number(personnage.esquive - 5)\n var Max= Number(personnage.esquive + 15)\n var Miin = Number(1)\n var Maax = Number(100)\n function getRndInterger(min, max) {\n return Math.floor(Math.random() * (max - min + 1) ) + min;}\n\njetEsquive = getRndInterger(Min, Max);\nvaleurEsquive = getRndInterger(Miin, Maax);\nconsole.log(\"jetEsquive du joueur : \"+jetEsquive+\" et la valeur minimale à avoir était \"+valeurEsquive);\n //Esquive réussie\n if (jetEsquive >= valeurEsquive){\n actionPerso = 2;\n } \n //Echec de l'esquive\n else if (jetEsquive < valeurEsquive){\n actionPerso = 3;\n }\nreactionEnnemi();\nresetSpecial();\n }\n \n}", "function IA_placerEnAttaque(){\n\t\t // Chercher si une carte peut être invoquée (cout<= cim.length)\n\t\t idx = rechercherCarteInvocable();\n\t\t if (idx>-1){\n\t\t\t// si oui , placer an ATT_ADV1 ou ATT_ADV2\n\t\t \tcartePlacable = jeu_adv[idx];\n\t\t\t\t\t\t\n\t\t\t//choisir ATT_ADV1 ou ATT_ADV2\n\t\t\tnoAtt=-1;\n\t\t\tif (att_adv[0]==0){\n\t\t\t\tnoAtt=1;\n\t\t\t}\n\t\t\tif (noAtt==-1 && att_adv[1]==0){\n\t\t\t\tnoAtt=2;\n\t\t\t}\n\t\t\tif (noAtt!=-1){\n\t\t\t\tmy_logger(PROMPT_IA+\" id:\"+cartePlacable.id+\"/\"+cartePlacable.nom+\" en attaque NO:\"+noAtt);\n\t\t\t\tjeu_placerEnAttaque(false, idx,cartePlacable,noAtt);\n\t\t\t\t\n\t\t\t\t//afficherJeux();\n\t\t\t}else{\n\t\t\t\tmy_logger(PROMPT_IA+\" attaque en \"+noAtt+\" IMPOSSIBLE \");\n\t\t\t}\n\t\t }\n\t }", "function pulsaTecla(e){\n\tif(getOpcionInterfaz('correccion_rapida') && comprueba_pregunta()) preguntaRespondida();\n\treturn false;\n}", "estavacio()\r\n{\r\n //regresa verdadero si la cola esta vacia\r\n return this.items.length == 0;\r\n}", "function test_existanceContrat_prestataire (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allcontrat_prestataire.filter(function(obj)\n {\n return obj.id == currentItemContrat_prestataire.id;\n });\n if(pass[0])\n {\n if((pass[0].description != currentItemContrat_prestataire.description )\n || (pass[0].num_contrat != currentItemContrat_prestataire.num_contrat)\n || (pass[0].cout_batiment != currentItemContrat_prestataire.cout_batiment )\n || (pass[0].cout_latrine != currentItemContrat_prestataire.cout_latrine )\n || (pass[0].cout_mobilier != currentItemContrat_prestataire.cout_mobilier)\n //|| (pass[0].date_signature != currentItemContrat_prestataire.date_signature )\n || (pass[0].id_prestataire != currentItemContrat_prestataire.id_prestataire )) \n { \n insert_in_baseContrat_prestataire(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseContrat_prestataire(item,suppression);\n }", "function test_existanceContrat_prestataire (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allcontrat_prestataire.filter(function(obj)\n {\n return obj.id == currentItemContrat_prestataire.id;\n });\n if(pass[0])\n {\n if((pass[0].description != currentItemContrat_prestataire.description )\n || (pass[0].num_contrat != currentItemContrat_prestataire.num_contrat)\n || (pass[0].cout_batiment != currentItemContrat_prestataire.cout_batiment )\n || (pass[0].cout_latrine != currentItemContrat_prestataire.cout_latrine )\n || (pass[0].cout_mobilier != currentItemContrat_prestataire.cout_mobilier)\n //|| (pass[0].date_signature != currentItemContrat_prestataire.date_signature )\n || (pass[0].id_prestataire != currentItemContrat_prestataire.id_prestataire )) \n { \n insert_in_baseContrat_prestataire(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseContrat_prestataire(item,suppression);\n }", "function test_existanceDemande_realimentation (item,suppression)\n { console.log(suppression); \n if (suppression!=1)\n {console.log('att');\n var dema = vm.alldemande_realimentation_invalide.filter(function(obj)\n {\n return obj.id == currentItemDemande_realimentation.id;\n });\n console.log(dema);\n if(dema[0])\n {\n if((dema[0].id_compte_feffi != currentItemDemande_realimentation.id_compte_feffi )\n || (dema[0].id_tranche_deblocage_feffi != currentItemDemande_realimentation.id_tranche_deblocage_feffi )\n || (dema[0].cumul != currentItemDemande_realimentation.cumul )\n || (dema[0].anterieur != currentItemDemande_realimentation.anterieur )\n || (dema[0].periode != currentItemDemande_realimentation.periode )\n || (dema[0].pourcentage != currentItemDemande_realimentation.pourcentage )\n || (dema[0].reste != currentItemDemande_realimentation.reste )\n || (dema[0].date != currentItemDemande_realimentation.date )) \n { \n insert_in_baseDemande_realimentation(item,suppression);console.log('at0');\n }\n else\n { \n item.$selected = true;\n item.$edit = false;console.log('at1');\n }\n }\n } else\n insert_in_baseDemande_realimentation(item,suppression);console.log('at3');\n \n }", "function checkAll(){\n //verificam daca toate intrebarile au fost completate\n let ok=1;\n for(let i=0;i<=answersScoreArray.length;i++)\n if(answersScoreArray[i]===\"NULL\") {alert('Toate intrebarile sunt obligatorii! Reintoarce-te si completeaza intrebarea '+ (i+1) + \"!\"); ok=0; break}\n if(ok===1) show(score);\n}", "existAnyArguments() {\n const {supportingSituation, supportingActionGoal, notSupportingSituation, notSupportingActionGoal} = this.state;\n return (\n (supportingSituation !== undefined && supportingSituation.length > 0) ||\n (supportingActionGoal !== undefined && supportingActionGoal.length > 0) ||\n (notSupportingSituation !== undefined && notSupportingSituation.length > 0) ||\n (notSupportingActionGoal !== undefined && notSupportingActionGoal.length > 0)\n )\n }", "function soloL() {\r\n for (var i = 0; i < cadena.length; i++) {\r\n if (letrass(i)) {\r\n }else {\r\n if (simboloss(i)) {\r\n respuesta=\"Error\";\r\n return false;\r\n }\r\n }\r\n }\r\n respuesta=\"Letras\";\r\n return true;\r\n}", "function test_existanceParticipant_odc (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allparticipant_odc.filter(function(obj)\n {\n return obj.id == currentItemParticipant_odc.id;\n });\n if(mem[0])\n {\n if((mem[0].nom!=currentItemParticipant_odc.nom) \n || (mem[0].prenom!=currentItemParticipant_odc.prenom)\n || (mem[0].sexe!=currentItemParticipant_odc.sexe)\n || (mem[0].age!=currentItemParticipant_odc.age)\n || (mem[0].id_situation_participant_odc!=currentItemParticipant_odc.id_situation_participant_odc)) \n { \n insert_in_baseParticipant_odc(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseParticipant_odc(item,suppression);\n }", "function test_existanceParticipant_odc (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allparticipant_odc.filter(function(obj)\n {\n return obj.id == currentItemParticipant_odc.id;\n });\n if(mem[0])\n {\n if((mem[0].nom!=currentItemParticipant_odc.nom) \n || (mem[0].prenom!=currentItemParticipant_odc.prenom)\n || (mem[0].sexe!=currentItemParticipant_odc.sexe)\n || (mem[0].age!=currentItemParticipant_odc.age)\n || (mem[0].id_situation_participant_odc!=currentItemParticipant_odc.id_situation_participant_odc)) \n { \n insert_in_baseParticipant_odc(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseParticipant_odc(item,suppression);\n }", "function Deplacement_joueurpossedeterritoirenonisole(Id,carte) {\r\n\tvar possedeterritoirenonisole = false\r\n carte.forEach((territoire)=>{\r\n if(territoire.proprietaire==Id){\r\n var status = Deplacement_voisinLimitrophe(territoire)\r\n if (status){\r\n possedeterritoirenonisole = true\r\n }\r\n }\r\n })\r\n\treturn(possedeterritoirenonisole)\r\n}", "function test_existancePhase_sous_projet (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allphase_sous_projet.filter(function(obj)\n {\n return obj.id == currentItemPhase_sous_projet.id;\n });\n if(pass[0])\n {\n if((pass[0].id_etape_sousprojet != currentItemPhase_sous_projet.id_etape_sousprojet)\n ||(pass[0].date_travaux != currentItemPhase_sous_projet.date_travaux) ) \n { \n insert_in_basePhase_sous_projet(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_basePhase_sous_projet(item,suppression);\n }", "function test_existancePhase_sous_projet (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allphase_sous_projet.filter(function(obj)\n {\n return obj.id == currentItemPhase_sous_projet.id;\n });\n if(pass[0])\n {\n if((pass[0].id_etape_sousprojet != currentItemPhase_sous_projet.id_etape_sousprojet)\n ||(pass[0].date_travaux != currentItemPhase_sous_projet.date_travaux) ) \n { \n insert_in_basePhase_sous_projet(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_basePhase_sous_projet(item,suppression);\n }", "function test_existanceAppel_offre (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allappel_offre.filter(function(obj)\n {\n return obj.id == currentItemAppel_offre.id;\n });\n if(mem[0])\n {\n if((mem[0].description != currentItemAppel_offre.description )\n //||(mem[0].fichier != currentItemAppel_offre.fichier )\n ||(mem[0].date_livraison != currentItemAppel_offre.date_livraison )\n ||(mem[0].date_approbation != currentItemAppel_offre.date_approbation )\n ||(mem[0].observation != currentItemAppel_offre.observation )) \n { \n insert_in_baseAppel_offre(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseAppel_offre(item,suppression);\n }", "function test_existanceAppel_offre (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allappel_offre.filter(function(obj)\n {\n return obj.id == currentItemAppel_offre.id;\n });\n if(mem[0])\n {\n if((mem[0].description != currentItemAppel_offre.description )\n //||(mem[0].fichier != currentItemAppel_offre.fichier )\n ||(mem[0].date_livraison != currentItemAppel_offre.date_livraison )\n ||(mem[0].date_approbation != currentItemAppel_offre.date_approbation )\n ||(mem[0].observation != currentItemAppel_offre.observation )) \n { \n insert_in_baseAppel_offre(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseAppel_offre(item,suppression);\n }", "function firstcheckimport(emailCookie,passCookie,importo,piva,data,codice,type,cb){\n if(type==\"VIRTUAL\") {\n myvar.eseguiquery(\"SELECT importo FROM account WHERE email='\"+emailCookie+\"' AND password='\"+passCookie+\"' AND importo>=\"+importo,\n function(result) {\t\n\t\t\t\t\t\tif(result!=\"err\"){\n\t\t\t\t\t\t\tif(result.length>0)\n \t\tpagamento(emailCookie,passCookie,importo,piva,data,\"0\",type,cb);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\trispondi(\"nomoneys\",cb);\n\t\t\t\t\t\t }\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\trispondi(\"err\",cb);\n });\n }\n\n else if(type==\"REAL\"){\n myvar.eseguiquery(\"SELECT saldo FROM cards WHERE codice='\"+codice+\"' AND saldo>=\"+importo,\n function(result) {\n\t\t\t\t\t\tif(result!=\"err\"){\n\t\t\t\t\t\t\tif(result.length>0)\n \t\tpagamento(emailCookie,passCookie,importo,piva,data,codice,type,cb);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\trispondi(\"nomoneys\",cb);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\trispondi(\"err\",cb);\n }); \n }\n\t\telse\n\t\t\trispondi(\"err\",cb);\n}", "function seachVerb(e) {\n e.preventDefault()\n let result2 = datass.filter(element => element.conjugated_forms[0][1].split(\" \")[1] === inputValue || element.conjugated_forms[1][1] === inputValue || element.conjugated_forms[1][1] === inputValue || element.conjugated_forms[2][1] === inputValue)\n\n\n\n\n try {\n settitre(result2[0].conjugated_forms[0][0] + \" : \")\n setvaleurTitre(result2[0].conjugated_forms[0][1])\n setSimplePast1(result2[0].conjugated_forms[1][0] + \" : \")\n setSimplePastValue(result2[0].conjugated_forms[1][1])\n setPastParticipe(result2[0].conjugated_forms[2][0] + \" : \")\n setPastParticipeValue(result2[0].conjugated_forms[2][1])\n setSimplePresent(result2[0].conjugation_tables.indicative[0].heading.toUpperCase())\n setPresentI(result2[0].conjugation_tables.indicative[0].forms[0][0])\n setPresentIRresult(result2[0].conjugation_tables.indicative[0].forms[0][1])\n setPresentYou(result2[0].conjugation_tables.indicative[0].forms[1][0])\n setPresentYouResult(result2[0].conjugation_tables.indicative[0].forms[1][1])\n setPresentHe(result2[0].conjugation_tables.indicative[0].forms[2][0])\n setPresentHeResult(result2[0].conjugation_tables.indicative[0].forms[2][1])\n setPresentWe(result2[0].conjugation_tables.indicative[0].forms[3][0])\n setPresentWeResult(result2[0].conjugation_tables.indicative[0].forms[3][1])\n setPresentYou1(result2[0].conjugation_tables.indicative[0].forms[4][0])\n setPresentYou1Result(result2[0].conjugation_tables.indicative[0].forms[4][1])\n setPresentThey(result2[0].conjugation_tables.indicative[0].forms[5][0])\n setPresentTheyResult(result2[0].conjugation_tables.indicative[0].forms[5][1])\n\n /* present progressive */\n setPresentProgressive(result2[0].conjugation_tables.indicative[1].heading.toUpperCase())\n setPresentProgressiveI(result2[0].conjugation_tables.indicative[1].forms[0][0])\n setPresentProgressiveIRresult(result2[0].conjugation_tables.indicative[1].forms[0][1])\n setPresentProgressiveYou(result2[0].conjugation_tables.indicative[1].forms[1][0])\n setPresentProgressiveYouResult(result2[0].conjugation_tables.indicative[1].forms[1][1])\n setPresentProgressiveHe(result2[0].conjugation_tables.indicative[1].forms[2][0])\n setPresentProgressiveHeResult(result2[0].conjugation_tables.indicative[1].forms[2][1])\n setPresentProgressiveWe(result2[0].conjugation_tables.indicative[1].forms[3][0])\n setPresentProgressiveWeResult(result2[0].conjugation_tables.indicative[1].forms[3][1])\n setPresentProgressiveYou1(result2[0].conjugation_tables.indicative[1].forms[4][0])\n setPresentProgressiveYou1Result(result2[0].conjugation_tables.indicative[1].forms[4][1])\n setPresentProgressiveThey(result2[0].conjugation_tables.indicative[1].forms[5][0])\n setPresentProgressiveTheyResult(result2[0].conjugation_tables.indicative[1].forms[5][1])\n\n /* present perfect */\n setPresentPerfect(result2[0].conjugation_tables.indicative[2].heading.toUpperCase())\n setPresentPerfectI(result2[0].conjugation_tables.indicative[2].forms[0][0])\n setPresentPerfectIRresult(result2[0].conjugation_tables.indicative[2].forms[0][1])\n setPresentPerfectYou(result2[0].conjugation_tables.indicative[2].forms[1][0])\n setPresentPerfectYouResult(result2[0].conjugation_tables.indicative[2].forms[1][1])\n setPresentPerfectHe(result2[0].conjugation_tables.indicative[2].forms[2][0])\n setPresentPerfectHeResult(result2[0].conjugation_tables.indicative[2].forms[2][1])\n setPresentPerfectWe(result2[0].conjugation_tables.indicative[2].forms[3][0])\n setPresentPerfectWeResult(result2[0].conjugation_tables.indicative[2].forms[3][1])\n setPresentPerfectYou1(result2[0].conjugation_tables.indicative[2].forms[4][0])\n setPresentPerfectYou1Result(result2[0].conjugation_tables.indicative[2].forms[4][1])\n setPresentPerfectThey(result2[0].conjugation_tables.indicative[2].forms[5][0])\n setPresentPerfectTheyResult(result2[0].conjugation_tables.indicative[2].forms[5][1])\n\n\n /* present perfect progressive */\n setPresentPerfectProgressive(result2[0].conjugation_tables.indicative[3].heading.toUpperCase())\n setPresentPerfectProgressiveI(result2[0].conjugation_tables.indicative[3].forms[0][0])\n setPresentPerfectProgressiveIRresult(result2[0].conjugation_tables.indicative[3].forms[0][1])\n setPresentPerfectProgressiveYou(result2[0].conjugation_tables.indicative[3].forms[1][0])\n setPresentPerfectProgressiveYouResult(result2[0].conjugation_tables.indicative[3].forms[1][1])\n setPresentPerfectProgressiveHe(result2[0].conjugation_tables.indicative[3].forms[2][0])\n setPresentPerfectProgressiveHeResult(result2[0].conjugation_tables.indicative[3].forms[2][1])\n setPresentPerfectProgressiveWe(result2[0].conjugation_tables.indicative[3].forms[3][0])\n setPresentPerfectProgressiveWeResult(result2[0].conjugation_tables.indicative[3].forms[3][1])\n setPresentPerfectProgressiveYou1(result2[0].conjugation_tables.indicative[3].forms[4][0])\n setPresentPerfectProgressiveYou1Result(result2[0].conjugation_tables.indicative[3].forms[4][1])\n setPresentPerfectProgressiveThey(result2[0].conjugation_tables.indicative[3].forms[5][0])\n setPresentPerfectProgressiveTheyResult(result2[0].conjugation_tables.indicative[3].forms[5][1])\n\n /* Simple past */\n setSimplePast(result2[0].conjugation_tables.indicative[4].heading.toUpperCase())\n setSimplePastI(result2[0].conjugation_tables.indicative[4].forms[0][0])\n setSimplePastIRresult(result2[0].conjugation_tables.indicative[4].forms[0][1])\n setSimplePastYou(result2[0].conjugation_tables.indicative[4].forms[1][0])\n setSimplePastYouResult(result2[0].conjugation_tables.indicative[4].forms[1][1])\n setSimplePastHe(result2[0].conjugation_tables.indicative[4].forms[2][0])\n setSimplePastHeResult(result2[0].conjugation_tables.indicative[4].forms[2][1])\n setSimplePastWe(result2[0].conjugation_tables.indicative[4].forms[3][0])\n setSimplePastWeResult(result2[0].conjugation_tables.indicative[4].forms[3][1])\n setSimplePastYou1(result2[0].conjugation_tables.indicative[4].forms[4][0])\n setSimplePastYou1Result(result2[0].conjugation_tables.indicative[4].forms[4][1])\n setSimplePastThey(result2[0].conjugation_tables.indicative[4].forms[5][0])\n setSimplePastTheyResult(result2[0].conjugation_tables.indicative[4].forms[5][1])\n\n\n /* past progressive */\n setPastProgressive(result2[0].conjugation_tables.indicative[5].heading.toUpperCase())\n setPastProgressiveI(result2[0].conjugation_tables.indicative[5].forms[0][0])\n setPastProgressiveIRresult(result2[0].conjugation_tables.indicative[5].forms[0][1])\n setPastProgressiveYou(result2[0].conjugation_tables.indicative[5].forms[1][0])\n setPastProgressiveYouResult(result2[0].conjugation_tables.indicative[5].forms[1][1])\n setPastProgressiveHe(result2[0].conjugation_tables.indicative[5].forms[2][0])\n setPastProgressiveHeResult(result2[0].conjugation_tables.indicative[5].forms[2][1])\n setPastProgressiveWe(result2[0].conjugation_tables.indicative[5].forms[3][0])\n setPastProgressiveWeResult(result2[0].conjugation_tables.indicative[5].forms[3][1])\n setPastProgressiveYou1(result2[0].conjugation_tables.indicative[5].forms[4][0])\n setPastProgressiveYou1Result(result2[0].conjugation_tables.indicative[5].forms[4][1])\n setPastProgressiveThey(result2[0].conjugation_tables.indicative[5].forms[5][0])\n setPastProgressiveTheyResult(result2[0].conjugation_tables.indicative[5].forms[5][1])\n\n /* past perfect */\n setPastPerfect(result2[0].conjugation_tables.indicative[6].heading.toUpperCase())\n setPastPerfectI(result2[0].conjugation_tables.indicative[6].forms[0][0])\n setPastPerfectIRresult(result2[0].conjugation_tables.indicative[6].forms[0][1])\n setPastPerfectYou(result2[0].conjugation_tables.indicative[6].forms[1][0])\n setPastPerfectYouResult(result2[0].conjugation_tables.indicative[6].forms[1][1])\n setPastPerfectHe(result2[0].conjugation_tables.indicative[6].forms[2][0])\n setPastPerfectHeResult(result2[0].conjugation_tables.indicative[6].forms[2][1])\n setPastPerfectWe(result2[0].conjugation_tables.indicative[6].forms[3][0])\n setPastPerfectWeResult(result2[0].conjugation_tables.indicative[6].forms[3][1])\n setPastPerfectYou1(result2[0].conjugation_tables.indicative[6].forms[4][0])\n setPastPerfectYou1Result(result2[0].conjugation_tables.indicative[6].forms[4][1])\n setPastPerfectThey(result2[0].conjugation_tables.indicative[6].forms[5][0])\n setPastPerfectTheyResult(result2[0].conjugation_tables.indicative[6].forms[5][1])\n\n\n /* past perfect progressive*/\n setPastPerfectProgressive(result2[0].conjugation_tables.indicative[7].heading.toUpperCase())\n setPastPerfectProgressiveI(result2[0].conjugation_tables.indicative[7].forms[0][0])\n setPastPerfectProgressiveIRresult(result2[0].conjugation_tables.indicative[7].forms[0][1])\n setPastPerfectProgressiveYou(result2[0].conjugation_tables.indicative[7].forms[1][0])\n setPastPerfectProgressiveYouResult(result2[0].conjugation_tables.indicative[7].forms[1][1])\n setPastPerfectProgressiveHe(result2[0].conjugation_tables.indicative[7].forms[2][0])\n setPastPerfectProgressiveHeResult(result2[0].conjugation_tables.indicative[7].forms[2][1])\n setPastPerfectProgressiveWe(result2[0].conjugation_tables.indicative[7].forms[3][0])\n setPastPerfectProgressiveWeResult(result2[0].conjugation_tables.indicative[7].forms[3][1])\n setPastPerfectProgressiveYou1(result2[0].conjugation_tables.indicative[7].forms[4][0])\n setPastPerfectProgressiveYou1Result(result2[0].conjugation_tables.indicative[7].forms[4][1])\n setPastPerfectProgressiveThey(result2[0].conjugation_tables.indicative[7].forms[5][0])\n setPastPerfectProgressiveTheyResult(result2[0].conjugation_tables.indicative[7].forms[5][1])\n\n /* simple future*/\n setSimpleFuture(result2[0].conjugation_tables.indicative[8].heading.toUpperCase())\n setSimpleFutureI(result2[0].conjugation_tables.indicative[8].forms[0][0])\n setSimpleFutureIRresult(result2[0].conjugation_tables.indicative[8].forms[0][1])\n setSimpleFutureYou(result2[0].conjugation_tables.indicative[8].forms[1][0])\n setSimpleFutureYouResult(result2[0].conjugation_tables.indicative[8].forms[1][1])\n setSimpleFutureHe(result2[0].conjugation_tables.indicative[8].forms[2][0])\n setSimpleFutureHeResult(result2[0].conjugation_tables.indicative[8].forms[2][1])\n setSimpleFutureWe(result2[0].conjugation_tables.indicative[8].forms[3][0])\n setSimpleFutureWeResult(result2[0].conjugation_tables.indicative[8].forms[3][1])\n setSimpleFutureYou1(result2[0].conjugation_tables.indicative[8].forms[4][0])\n setSimpleFutureYou1Result(result2[0].conjugation_tables.indicative[8].forms[4][1])\n setSimpleFutureThey(result2[0].conjugation_tables.indicative[8].forms[5][0])\n setSimpleFutureTheyResult(result2[0].conjugation_tables.indicative[8].forms[5][1])\n\n /* future progressive*/\n setFuturProgressive(result2[0].conjugation_tables.indicative[9].heading.toUpperCase())\n setFuturProgressiveI(result2[0].conjugation_tables.indicative[9].forms[0][0])\n setFuturProgressiveIRresult(result2[0].conjugation_tables.indicative[9].forms[0][1])\n setFuturProgressiveYou(result2[0].conjugation_tables.indicative[9].forms[1][0])\n setFuturProgressiveYouResult(result2[0].conjugation_tables.indicative[9].forms[1][1])\n setFuturProgressiveHe(result2[0].conjugation_tables.indicative[9].forms[2][0])\n setFuturProgressiveHeResult(result2[0].conjugation_tables.indicative[9].forms[2][1])\n setFuturProgressiveWe(result2[0].conjugation_tables.indicative[9].forms[3][0])\n setFuturProgressiveWeResult(result2[0].conjugation_tables.indicative[9].forms[3][1])\n setFuturProgressiveYou1(result2[0].conjugation_tables.indicative[9].forms[4][0])\n setFuturProgressiveYou1Result(result2[0].conjugation_tables.indicative[9].forms[4][1])\n setFuturProgressiveThey(result2[0].conjugation_tables.indicative[9].forms[5][0])\n setFuturProgressiveTheyResult(result2[0].conjugation_tables.indicative[9].forms[5][1])\n\n /* future perfect*/\n setFuturePerfect(result2[0].conjugation_tables.indicative[10].heading.toUpperCase())\n setFuturePerfectI(result2[0].conjugation_tables.indicative[10].forms[0][0])\n setFuturePerfectIRresult(result2[0].conjugation_tables.indicative[10].forms[0][1])\n setFuturePerfectYou(result2[0].conjugation_tables.indicative[10].forms[1][0])\n setFuturePerfectYouResult(result2[0].conjugation_tables.indicative[10].forms[1][1])\n setFuturePerfectHe(result2[0].conjugation_tables.indicative[10].forms[2][0])\n setFuturePerfectHeResult(result2[0].conjugation_tables.indicative[10].forms[2][1])\n setFuturePerfectWe(result2[0].conjugation_tables.indicative[10].forms[3][0])\n setFuturePerfectWeResult(result2[0].conjugation_tables.indicative[10].forms[3][1])\n setFuturePerfectYou1(result2[0].conjugation_tables.indicative[10].forms[4][0])\n setFuturePerfectYou1Result(result2[0].conjugation_tables.indicative[10].forms[4][1])\n setFuturePerfectThey(result2[0].conjugation_tables.indicative[10].forms[5][0])\n setFuturePerfectTheyResult(result2[0].conjugation_tables.indicative[10].forms[5][1])\n\n\n /* future perfect progressive*/\n setFuturePerfectProgressive(result2[0].conjugation_tables.indicative[11].heading.toUpperCase())\n setFuturePerfectProgressiveI(result2[0].conjugation_tables.indicative[11].forms[0][0])\n setFuturePerfectProgressiveIRresult(result2[0].conjugation_tables.indicative[11].forms[0][1])\n setFuturePerfectProgressiveYou(result2[0].conjugation_tables.indicative[11].forms[1][0])\n setFuturePerfectProgressiveYouResult(result2[0].conjugation_tables.indicative[11].forms[1][1])\n setFuturePerfectProgressiveHe(result2[0].conjugation_tables.indicative[11].forms[2][0])\n setFuturePerfectProgressiveHeResult(result2[0].conjugation_tables.indicative[11].forms[2][1])\n setFuturePerfectProgressiveWe(result2[0].conjugation_tables.indicative[11].forms[3][0])\n setFuturePerfectProgressiveWeResult(result2[0].conjugation_tables.indicative[11].forms[3][1])\n setFuturePerfectProgressiveYou1(result2[0].conjugation_tables.indicative[11].forms[4][0])\n setFuturePerfectProgressiveYou1Result(result2[0].conjugation_tables.indicative[11].forms[4][1])\n setFuturePerfectProgressiveThey(result2[0].conjugation_tables.indicative[11].forms[5][0])\n setFuturePerfectProgressiveTheyResult(result2[0].conjugation_tables.indicative[11].forms[5][1])\n\n /* passive form ------------------------------------------- */\n\n setSimplePassivePresent(result2[0].conjugation_tables.passive[0].heading.toUpperCase())\n setPassivePresentI(result2[0].conjugation_tables.passive[0].forms[0][0])\n setPassivePresentIRresult(result2[0].conjugation_tables.passive[0].forms[0][1])\n setPassivePresentYou(result2[0].conjugation_tables.passive[0].forms[1][0])\n setPassivePresentYouResult(result2[0].conjugation_tables.passive[0].forms[1][1])\n setPassivePresentHe(result2[0].conjugation_tables.passive[0].forms[2][0])\n setPassivePresentHeResult(result2[0].conjugation_tables.passive[0].forms[2][1])\n setPassivePresentWe(result2[0].conjugation_tables.passive[0].forms[3][0])\n setPassivePresentWeResult(result2[0].conjugation_tables.passive[0].forms[3][1])\n setPassivePresentYou1(result2[0].conjugation_tables.passive[0].forms[4][0])\n setPassivePresentYou1Result(result2[0].conjugation_tables.passive[0].forms[4][1])\n setPassivePresentThey(result2[0].conjugation_tables.passive[0].forms[5][0])\n setPassivePresentTheyResult(result2[0].conjugation_tables.passive[0].forms[5][1])\n\n /* present passive progressive */\n setPassivePresentProgressive(result2[0].conjugation_tables.passive[1].heading.toUpperCase())\n setPassivePresentProgressiveI(result2[0].conjugation_tables.passive[1].forms[0][0])\n setPassivePresentProgressiveIRresult(result2[0].conjugation_tables.passive[1].forms[0][1])\n setPassivePresentProgressiveYou(result2[0].conjugation_tables.passive[1].forms[1][0])\n setPassivePresentProgressiveYouResult(result2[0].conjugation_tables.passive[1].forms[1][1])\n setPassivePresentProgressiveHe(result2[0].conjugation_tables.passive[1].forms[2][0])\n setPassivePresentProgressiveHeResult(result2[0].conjugation_tables.passive[1].forms[2][1])\n setPassivePresentProgressiveWe(result2[0].conjugation_tables.passive[1].forms[3][0])\n setPassivePresentProgressiveWeResult(result2[0].conjugation_tables.passive[1].forms[3][1])\n setPassivePresentProgressiveYou1(result2[0].conjugation_tables.passive[1].forms[4][0])\n setPassivePresentProgressiveYou1Result(result2[0].conjugation_tables.passive[1].forms[4][1])\n setPassivePresentProgressiveThey(result2[0].conjugation_tables.passive[1].forms[5][0])\n setPassivePresentProgressiveTheyResult(result2[0].conjugation_tables.passive[1].forms[5][1])\n\n /* present passive perfect */\n setPassivePresentPerfect(result2[0].conjugation_tables.passive[2].heading.toUpperCase())\n setPassivePresentPerfectI(result2[0].conjugation_tables.passive[2].forms[0][0])\n setPassivePresentPerfectIRresult(result2[0].conjugation_tables.passive[2].forms[0][1])\n setPassivePresentPerfectYou(result2[0].conjugation_tables.passive[2].forms[1][0])\n setPassivePresentPerfectYouResult(result2[0].conjugation_tables.passive[2].forms[1][1])\n setPassivePresentPerfectHe(result2[0].conjugation_tables.passive[2].forms[2][0])\n setPassivePresentPerfectHeResult(result2[0].conjugation_tables.passive[2].forms[2][1])\n setPassivePresentPerfectWe(result2[0].conjugation_tables.passive[2].forms[3][0])\n setPassivePresentPerfectWeResult(result2[0].conjugation_tables.passive[2].forms[3][1])\n setPassivePresentPerfectYou1(result2[0].conjugation_tables.passive[2].forms[4][0])\n setPassivePresentPerfectYou1Result(result2[0].conjugation_tables.passive[2].forms[4][1])\n setPassivePresentPerfectThey(result2[0].conjugation_tables.passive[2].forms[5][0])\n setPassivePresentPerfectTheyResult(result2[0].conjugation_tables.passive[2].forms[5][1])\n\n\n /* present passive perfect progressive */\n setPassivePresentPerfectProgressive(result2[0].conjugation_tables.passive[3].heading.toUpperCase())\n setPassivePresentPerfectProgressiveI(result2[0].conjugation_tables.passive[3].forms[0][0])\n setPassivePresentPerfectProgressiveIRresult(result2[0].conjugation_tables.passive[3].forms[0][1])\n setPassivePresentPerfectProgressiveYou(result2[0].conjugation_tables.passive[3].forms[1][0])\n setPassivePresentPerfectProgressiveYouResult(result2[0].conjugation_tables.passive[3].forms[1][1])\n setPassivePresentPerfectProgressiveHe(result2[0].conjugation_tables.passive[3].forms[2][0])\n setPassivePresentPerfectProgressiveHeResult(result2[0].conjugation_tables.passive[3].forms[2][1])\n setPassivePresentPerfectProgressiveWe(result2[0].conjugation_tables.passive[3].forms[3][0])\n setPassivePresentPerfectProgressiveWeResult(result2[0].conjugation_tables.passive[3].forms[3][1])\n setPassivePresentPerfectProgressiveYou1(result2[0].conjugation_tables.passive[3].forms[4][0])\n setPassivePresentPerfectProgressiveYou1Result(result2[0].conjugation_tables.passive[3].forms[4][1])\n setPassivePresentPerfectProgressiveThey(result2[0].conjugation_tables.passive[3].forms[5][0])\n setPassivePresentPerfectProgressiveTheyResult(result2[0].conjugation_tables.passive[3].forms[5][1])\n\n /* Simple passivepast */\n setSimplePassivePast(result2[0].conjugation_tables.passive[4].heading.toUpperCase())\n setSimplePassivePastI(result2[0].conjugation_tables.passive[4].forms[0][0])\n setSimplePassivePastIRresult(result2[0].conjugation_tables.passive[4].forms[0][1])\n setSimplePassivePastYou(result2[0].conjugation_tables.passive[4].forms[1][0])\n setSimplePassivePastYouResult(result2[0].conjugation_tables.passive[4].forms[1][1])\n setSimplePassivePastHe(result2[0].conjugation_tables.passive[4].forms[2][0])\n setSimplePassivePastHeResult(result2[0].conjugation_tables.passive[4].forms[2][1])\n setSimplePassivePastWe(result2[0].conjugation_tables.passive[4].forms[3][0])\n setSimplePassivePastWeResult(result2[0].conjugation_tables.passive[4].forms[3][1])\n setSimplePassivePastYou1(result2[0].conjugation_tables.passive[4].forms[4][0])\n setSimplePassivePastYou1Result(result2[0].conjugation_tables.passive[4].forms[4][1])\n setSimplePassivePastThey(result2[0].conjugation_tables.passive[4].forms[5][0])\n setSimplePassivePastTheyResult(result2[0].conjugation_tables.passive[4].forms[5][1])\n\n\n /* past passive progressive */\n setPassivePastProgressive(result2[0].conjugation_tables.passive[5].heading.toUpperCase())\n setPassivePastProgressiveI(result2[0].conjugation_tables.passive[5].forms[0][0])\n setPassivePastProgressiveIRresult(result2[0].conjugation_tables.passive[5].forms[0][1])\n setPassivePastProgressiveYou(result2[0].conjugation_tables.passive[5].forms[1][0])\n setPassivePastProgressiveYouResult(result2[0].conjugation_tables.passive[5].forms[1][1])\n setPassivePastProgressiveHe(result2[0].conjugation_tables.passive[5].forms[2][0])\n setPassivePastProgressiveHeResult(result2[0].conjugation_tables.passive[5].forms[2][1])\n setPassivePastProgressiveWe(result2[0].conjugation_tables.passive[5].forms[3][0])\n setPassivePastProgressiveWeResult(result2[0].conjugation_tables.passive[5].forms[3][1])\n setPassivePastProgressiveYou1(result2[0].conjugation_tables.passive[5].forms[4][0])\n setPassivePastProgressiveYou1Result(result2[0].conjugation_tables.passive[5].forms[4][1])\n setPassivePastProgressiveThey(result2[0].conjugation_tables.passive[5].forms[5][0])\n setPassivePastProgressiveTheyResult(result2[0].conjugation_tables.passive[5].forms[5][1])\n\n /* past passive perfect */\n setPassivePastPerfect(result2[0].conjugation_tables.passive[6].heading.toUpperCase())\n setPassivePastPerfectI(result2[0].conjugation_tables.passive[6].forms[0][0])\n setPassivePastPerfectIRresult(result2[0].conjugation_tables.passive[6].forms[0][1])\n setPassivePastPerfectYou(result2[0].conjugation_tables.passive[6].forms[1][0])\n setPassivePastPerfectYouResult(result2[0].conjugation_tables.passive[6].forms[1][1])\n setPassivePastPerfectHe(result2[0].conjugation_tables.passive[6].forms[2][0])\n setPassivePastPerfectHeResult(result2[0].conjugation_tables.passive[6].forms[2][1])\n setPassivePastPerfectWe(result2[0].conjugation_tables.passive[6].forms[3][0])\n setPassivePastPerfectWeResult(result2[0].conjugation_tables.passive[6].forms[3][1])\n setPassivePastPerfectYou1(result2[0].conjugation_tables.passive[6].forms[4][0])\n setPassivePastPerfectYou1Result(result2[0].conjugation_tables.passive[6].forms[4][1])\n setPassivePastPerfectThey(result2[0].conjugation_tables.passive[6].forms[5][0])\n setPassivePastPerfectTheyResult(result2[0].conjugation_tables.passive[6].forms[5][1])\n\n\n /* past passiveperfect progressive*/\n setPassivePastPerfectProgressive(result2[0].conjugation_tables.passive[7].heading.toUpperCase())\n setPassivePastPerfectProgressiveI(result2[0].conjugation_tables.passive[7].forms[0][0])\n setPassivePastPerfectProgressiveIRresult(result2[0].conjugation_tables.passive[7].forms[0][1])\n setPassivePastPerfectProgressiveYou(result2[0].conjugation_tables.passive[7].forms[1][0])\n setPassivePastPerfectProgressiveYouResult(result2[0].conjugation_tables.passive[7].forms[1][1])\n setPassivePastPerfectProgressiveHe(result2[0].conjugation_tables.passive[7].forms[2][0])\n setPassivePastPerfectProgressiveHeResult(result2[0].conjugation_tables.passive[7].forms[2][1])\n setPassivePastPerfectProgressiveWe(result2[0].conjugation_tables.passive[7].forms[3][0])\n setPassivePastPerfectProgressiveWeResult(result2[0].conjugation_tables.passive[7].forms[3][1])\n setPassivePastPerfectProgressiveYou1(result2[0].conjugation_tables.passive[7].forms[4][0])\n setPassivePastPerfectProgressiveYou1Result(result2[0].conjugation_tables.passive[7].forms[4][1])\n setPassivePastPerfectProgressiveThey(result2[0].conjugation_tables.passive[7].forms[5][0])\n setPassivePastPerfectProgressiveTheyResult(result2[0].conjugation_tables.passive[7].forms[5][1])\n\n /* simple passive future*/\n setPassiveSimpleFuture(result2[0].conjugation_tables.passive[8].heading.toUpperCase())\n setPassiveSimpleFutureI(result2[0].conjugation_tables.passive[8].forms[0][0])\n setPassiveSimpleFutureIRresult(result2[0].conjugation_tables.passive[8].forms[0][1])\n setPassiveSimpleFutureYou(result2[0].conjugation_tables.passive[8].forms[1][0])\n setPassiveSimpleFutureYouResult(result2[0].conjugation_tables.passive[8].forms[1][1])\n setPassiveSimpleFutureHe(result2[0].conjugation_tables.passive[8].forms[2][0])\n setPassiveSimpleFutureHeResult(result2[0].conjugation_tables.passive[8].forms[2][1])\n setPassiveSimpleFutureWe(result2[0].conjugation_tables.passive[8].forms[3][0])\n setPassiveSimpleFutureWeResult(result2[0].conjugation_tables.passive[8].forms[3][1])\n setPassiveSimpleFutureYou1(result2[0].conjugation_tables.passive[8].forms[4][0])\n setPassiveSimpleFutureYou1Result(result2[0].conjugation_tables.passive[8].forms[4][1])\n setPassiveSimpleFutureThey(result2[0].conjugation_tables.passive[8].forms[5][0])\n setPassiveSimpleFutureTheyResult(result2[0].conjugation_tables.passive[8].forms[5][1])\n\n /* future passive progressive*/\n setPassiveFuturProgressive(result2[0].conjugation_tables.passive[9].heading.toUpperCase())\n setPassiveFuturProgressiveI(result2[0].conjugation_tables.passive[9].forms[0][0])\n setPassiveFuturProgressiveIRresult(result2[0].conjugation_tables.passive[9].forms[0][1])\n setPassiveFuturProgressiveYou(result2[0].conjugation_tables.passive[9].forms[1][0])\n setPassiveFuturProgressiveYouResult(result2[0].conjugation_tables.passive[9].forms[1][1])\n setPassiveFuturProgressiveHe(result2[0].conjugation_tables.passive[9].forms[2][0])\n setPassiveFuturProgressiveHeResult(result2[0].conjugation_tables.passive[9].forms[2][1])\n setPassiveFuturProgressiveWe(result2[0].conjugation_tables.passive[9].forms[3][0])\n setPassiveFuturProgressiveWeResult(result2[0].conjugation_tables.passive[9].forms[3][1])\n setPassiveFuturProgressiveYou1(result2[0].conjugation_tables.passive[9].forms[4][0])\n setPassiveFuturProgressiveYou1Result(result2[0].conjugation_tables.passive[9].forms[4][1])\n setPassiveFuturProgressiveThey(result2[0].conjugation_tables.passive[9].forms[5][0])\n setPassiveFuturProgressiveTheyResult(result2[0].conjugation_tables.passive[9].forms[5][1])\n\n /* future passive perfect*/\n setPassiveFuturePerfect(result2[0].conjugation_tables.passive[10].heading.toUpperCase())\n setPassiveFuturePerfectI(result2[0].conjugation_tables.passive[10].forms[0][0])\n setPassiveFuturePerfectIRresult(result2[0].conjugation_tables.passive[10].forms[0][1])\n setPassiveFuturePerfectYou(result2[0].conjugation_tables.passive[10].forms[1][0])\n setPassiveFuturePerfectYouResult(result2[0].conjugation_tables.passive[10].forms[1][1])\n setPassiveFuturePerfectHe(result2[0].conjugation_tables.passive[10].forms[2][0])\n setPassiveFuturePerfectHeResult(result2[0].conjugation_tables.passive[10].forms[2][1])\n setPassiveFuturePerfectWe(result2[0].conjugation_tables.passive[10].forms[3][0])\n setPassiveFuturePerfectWeResult(result2[0].conjugation_tables.passive[10].forms[3][1])\n setPassiveFuturePerfectYou1(result2[0].conjugation_tables.passive[10].forms[4][0])\n setPassiveFuturePerfectYou1Result(result2[0].conjugation_tables.passive[10].forms[4][1])\n setPassiveFuturePerfectThey(result2[0].conjugation_tables.passive[10].forms[5][0])\n setPassiveFuturePerfectTheyResult(result2[0].conjugation_tables.passive[10].forms[5][1])\n\n\n /* future passive perfect progressive*/\n setPassiveFuturePerfectProgressive(result2[0].conjugation_tables.passive[11].heading.toUpperCase())\n setPassiveFuturePerfectProgressiveI(result2[0].conjugation_tables.passive[11].forms[0][0])\n setPassiveFuturePerfectProgressiveIRresult(result2[0].conjugation_tables.passive[11].forms[0][1])\n setPassiveFuturePerfectProgressiveYou(result2[0].conjugation_tables.passive[11].forms[1][0])\n setPassiveFuturePerfectProgressiveYouResult(result2[0].conjugation_tables.passive[11].forms[1][1])\n setPassiveFuturePerfectProgressiveHe(result2[0].conjugation_tables.passive[11].forms[2][0])\n setPassiveFuturePerfectProgressiveHeResult(result2[0].conjugation_tables.passive[11].forms[2][1])\n setPassiveFuturePerfectProgressiveWe(result2[0].conjugation_tables.passive[11].forms[3][0])\n setPassiveFuturePerfectProgressiveWeResult(result2[0].conjugation_tables.passive[11].forms[3][1])\n setPassiveFuturePerfectProgressiveYou1(result2[0].conjugation_tables.passive[11].forms[4][0])\n setPassiveFuturePerfectProgressiveYou1Result(result2[0].conjugation_tables.passive[11].forms[4][1])\n setPassiveFuturePerfectProgressiveThey(result2[0].conjugation_tables.passive[11].forms[5][0])\n setPassiveFuturePerfectProgressiveTheyResult(result2[0].conjugation_tables.passive[11].forms[5][1])\n\n\n\n\n /* condition form ------------------------------------------- */\n\n setSimpleConditionalPresent(result2[0].conjugation_tables.conditional[0].heading.toUpperCase())\n setConditionalPresentI(result2[0].conjugation_tables.conditional[0].forms[0][0])\n setConditionalPresentIRresult(result2[0].conjugation_tables.conditional[0].forms[0][1])\n setConditionalPresentYou(result2[0].conjugation_tables.conditional[0].forms[1][0])\n setConditionalPresentYouResult(result2[0].conjugation_tables.conditional[0].forms[1][1])\n setConditionalPresentHe(result2[0].conjugation_tables.conditional[0].forms[2][0])\n setConditionalPresentHeResult(result2[0].conjugation_tables.conditional[0].forms[2][1])\n setConditionalPresentWe(result2[0].conjugation_tables.conditional[0].forms[3][0])\n setConditionalPresentWeResult(result2[0].conjugation_tables.conditional[0].forms[3][1])\n setConditionalPresentYou1(result2[0].conjugation_tables.conditional[0].forms[4][0])\n setConditionalPresentYou1Result(result2[0].conjugation_tables.conditional[0].forms[4][1])\n setConditionalPresentThey(result2[0].conjugation_tables.conditional[0].forms[5][0])\n setConditionalPresentTheyResult(result2[0].conjugation_tables.conditional[0].forms[5][1])\n\n /* present Conditional progressive */\n setConditionalPresentProgressive(result2[0].conjugation_tables.conditional[1].heading.toUpperCase())\n setConditionalPresentProgressiveI(result2[0].conjugation_tables.conditional[1].forms[0][0])\n setConditionalPresentProgressiveIRresult(result2[0].conjugation_tables.conditional[1].forms[0][1])\n setConditionalPresentProgressiveYou(result2[0].conjugation_tables.conditional[1].forms[1][0])\n setConditionalPresentProgressiveYouResult(result2[0].conjugation_tables.conditional[1].forms[1][1])\n setConditionalPresentProgressiveHe(result2[0].conjugation_tables.conditional[1].forms[2][0])\n setConditionalPresentProgressiveHeResult(result2[0].conjugation_tables.conditional[1].forms[2][1])\n setConditionalPresentProgressiveWe(result2[0].conjugation_tables.conditional[1].forms[3][0])\n setConditionalPresentProgressiveWeResult(result2[0].conjugation_tables.conditional[1].forms[3][1])\n setConditionalPresentProgressiveYou1(result2[0].conjugation_tables.conditional[1].forms[4][0])\n setConditionalPresentProgressiveYou1Result(result2[0].conjugation_tables.conditional[1].forms[4][1])\n setConditionalPresentProgressiveThey(result2[0].conjugation_tables.conditional[1].forms[5][0])\n setConditionalPresentProgressiveTheyResult(result2[0].conjugation_tables.conditional[1].forms[5][1])\n\n /* present Conditional perfect */\n setConditionalPresentPerfect(result2[0].conjugation_tables.conditional[2].heading.toUpperCase())\n setConditionalPresentPerfectI(result2[0].conjugation_tables.conditional[2].forms[0][0])\n setConditionalPresentPerfectIRresult(result2[0].conjugation_tables.conditional[2].forms[0][1])\n setConditionalPresentPerfectYou(result2[0].conjugation_tables.conditional[2].forms[1][0])\n setConditionalPresentPerfectYouResult(result2[0].conjugation_tables.conditional[2].forms[1][1])\n setConditionalPresentPerfectHe(result2[0].conjugation_tables.conditional[2].forms[2][0])\n setConditionalPresentPerfectHeResult(result2[0].conjugation_tables.conditional[2].forms[2][1])\n setConditionalPresentPerfectWe(result2[0].conjugation_tables.conditional[2].forms[3][0])\n setConditionalPresentPerfectWeResult(result2[0].conjugation_tables.conditional[2].forms[3][1])\n setConditionalPresentPerfectYou1(result2[0].conjugation_tables.conditional[2].forms[4][0])\n setConditionalPresentPerfectYou1Result(result2[0].conjugation_tables.conditional[2].forms[4][1])\n setConditionalPresentPerfectThey(result2[0].conjugation_tables.conditional[2].forms[5][0])\n setConditionalPresentPerfectTheyResult(result2[0].conjugation_tables.conditional[2].forms[5][1])\n\n\n /* present Conditional perfect progressive */\n setConditionalPresentPerfectProgressive(result2[0].conjugation_tables.conditional[3].heading.toUpperCase())\n setConditionalPresentPerfectProgressiveI(result2[0].conjugation_tables.conditional[3].forms[0][0])\n setConditionalPresentPerfectProgressiveIRresult(result2[0].conjugation_tables.conditional[3].forms[0][1])\n setConditionalPresentPerfectProgressiveYou(result2[0].conjugation_tables.conditional[3].forms[1][0])\n setConditionalPresentPerfectProgressiveYouResult(result2[0].conjugation_tables.conditional[3].forms[1][1])\n setConditionalPresentPerfectProgressiveHe(result2[0].conjugation_tables.conditional[3].forms[2][0])\n setConditionalPresentPerfectProgressiveHeResult(result2[0].conjugation_tables.conditional[3].forms[2][1])\n setConditionalPresentPerfectProgressiveWe(result2[0].conjugation_tables.conditional[3].forms[3][0])\n setConditionalPresentPerfectProgressiveWeResult(result2[0].conjugation_tables.conditional[3].forms[3][1])\n setConditionalPresentPerfectProgressiveYou1(result2[0].conjugation_tables.conditional[3].forms[4][0])\n setConditionalPresentPerfectProgressiveYou1Result(result2[0].conjugation_tables.conditional[3].forms[4][1])\n setConditionalPresentPerfectProgressiveThey(result2[0].conjugation_tables.conditional[3].forms[5][0])\n setConditionalPresentPerfectProgressiveTheyResult(result2[0].conjugation_tables.conditional[3].forms[5][1])\n\n\n\n\n } catch (e) {\n console.log(e.message)\n }\n\n history.push(`/conjugation/conjugation-verb-${inputValue}.html`)\n\n }", "function sonarTelefono(quien) {\n if(quien == 'mama')\n return;\n\n console.log('ring ring ring');\n}", "function test_existanceDemande_batiment_mpe (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.alldemande_batiment_mpe.filter(function(obj)\n {\n return obj.id == currentItemDemande_batiment_mpe.id;\n });\n if(pass[0])\n {\n if(pass[0].id_tranche_demande_mpe != currentItemDemande_batiment_mpe.id_tranche_demande_mpe) \n { \n insert_in_baseDemande_batiment_mpe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseDemande_batiment_mpe(item,suppression);\n }", "either(program, state) {\n const array = program.arguments[0].elements;\n return _.some(array, (sub) => {\n return isFinal(sub, state);\n });\n }", "function controle(champ, msg, exp) {\n\t\n // Ensemble de cases à cocher en remplacement d'un select multiple ?\n if (champ.length && champ[0].type == \"checkbox\") {\n var checked = false ;\n for (var i=0; i<champ.length; i++) {\n if (champ[i].checked) {\n checked = true ;\n break ;\n }\n }\n if (!checked) {\n alert(msg) ; // Affichage de l'erreur\n champ[0].focus() ; // Focus sur l'element en erreur\n return false ; // Erreur detectee, retour faux\n }\n else {\n // Tout va bien\n return true ;\n }\n }\n // Ensemble de boutons radio ?\n if (champ.length && champ[0].type == \"radio\") {\n var checked = false ;\n for (var i=0; i<champ.length; i++) {\n if (champ[i].checked) {\n checked = true ;\n break ;\n }\n }\n if (!checked) {\n alert(msg) ; // Affichage de l'erreur\n champ[0].focus() ; // Focus sur l'element en erreur\n return false ; // Erreur detectee, retour faux\n }\n else {\n // Tout va bien\n return true ;\n }\n }\n\n var incomplet = false ;\n // Selon le type de champ\n switch (champ.type) {\n case 'text': // Ligne de texte\n case 'textarea': // Zone de texte\n case 'password': // Mot de passe\n // Avons-nous une expression reguliere ?\n if (typeof exp == \"undefined\") {\n // Non\n if (champ.value == '')\n incomplet = true ;\n }\n else {\n // Oui\n if (!exp.test(champ.value))\n incomplet = true ;\n }\n break ;\n case 'select-one': // Liste a choix unique\n if (champ.selectedIndex == 0)\n incomplet = true ;\n break ;\n case 'select-multiple': // Liste a choix multiple\n if (champ.selectedIndex == -1)\n incomplet = true ;\n break ;\n case 'checkbox': // Case à cocher\n incomplet = !champ.checked ;\n break ;\n }\n\n if (incomplet) {\n alert(msg) ; // Affichage de l'erreur\n champ.focus() ; // Focus sur l'element en erreur\n return false ; // Erreur detectee, retour faux\n }\n\n return true ;\n}", "function test_existancePv_consta_rubrique_phase_bat_mpe (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allpv_consta_rubrique_phase_bat_mpe.filter(function(obj)\n {\n return obj.id == currentItemPv_consta_rubrique_phase_bat_mpe.id;\n });\n if(mem[0])\n {\n if(mem[0].observation != currentItemPv_consta_rubrique_phase_bat_mpe.observation) \n { \n insert_in_basePv_consta_rubrique_phase_bat_mpe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_basePv_consta_rubrique_phase_bat_mpe(item,suppression);\n }", "function i(e){return void 0===e||null===e}", "function i(e){return void 0===e||null===e}", "function i(e){return void 0===e||null===e}", "function i(e){return void 0===e||null===e}", "function i(e){return void 0===e||null===e}", "function test_existanceRapport_mensuel (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allrapport_mensuel.filter(function(obj)\n {\n return obj.id == currentItemRapport_mensuel.id;\n });\n if(mem[0])\n {\n if((mem[0].description != currentItemRapport_mensuel.description )\n ||(mem[0].numero != currentItemRapport_mensuel.numero )\n ||(mem[0].date_livraison != currentItemRapport_mensuel.date_livraison )\n ||(mem[0].observation != currentItemRapport_mensuel.observation )) \n { \n insert_in_baseRapport_mensuel(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseRapport_mensuel(item,suppression);\n }", "function test_existanceRapport_mensuel (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allrapport_mensuel.filter(function(obj)\n {\n return obj.id == currentItemRapport_mensuel.id;\n });\n if(mem[0])\n {\n if((mem[0].description != currentItemRapport_mensuel.description )\n ||(mem[0].numero != currentItemRapport_mensuel.numero )\n ||(mem[0].date_livraison != currentItemRapport_mensuel.date_livraison )\n ||(mem[0].observation != currentItemRapport_mensuel.observation )) \n { \n insert_in_baseRapport_mensuel(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseRapport_mensuel(item,suppression);\n }", "emerg(...any){}", "function continuaEscriure ()\r\n{\r\n this.borra ();\r\n this.actual=\"\";\r\n this.validate=0;\r\n}", "function reinitialiserItineraireSurMesure()\n {\n if (polylineForSelectSelectedArray.length > 0)\n google.maps.event.trigger(polylineForSelectSelectedArray[0], 'click', {});//simule un click de souris sur la premiere paire de l'itinéraire sur mesure\n else\n console.log(\"Erreur: aucune paire sélectionnée\");\n }", "function constroiEventos(){}", "function test(o0)\n{\n try {\nthis.o649 = 1;\n}catch(o6.o14(o24.includes(\"\", 26), \"a non-empty string includes the empty string even at the end\")){}\n}", "function inimigosAndam(){\n\tif(jogoEmAndamento==true){\n\t\tinimigos.forEach(andarInimigo);\n\t}\n}", "function condiçaoVitoria(){}", "function mOvr(src) {\r\n\t/*\r\n\tif (!src.contains(event.FROMElement)) {\r\n\t\t src.style.cursor = 'hand';\r\n\t}\r\n\t*/\r\n\t//\tCON INTERNETEXPLORER VIEJO DA ERROR.... COMPROBAR QUE CON LAS DEMAS NO LO DA\r\n}", "function sudahAbsen(cs) {\nvar belum = true;\n for (var x in absensi) {\n if (moment(absensi[x].field(\"Waktu Masuk\")).format(\"DD/MM/YY\")==hariIni&&absensi[x].field(\"Nama\")==cs) {\n absensi[x].set(\"Waktu Pulang\",skrg);\n absensi[x].set(\"Jam Pulang\",skrg);\n belum = false;\n }\n }\n if (belum) {message(cs+\" belum absen masuk\")}\n}", "function verifier_doublant(idPere,nom,id){\n get_object_by_id(idPere);\n for(var key in found.fils)\n if (found.fils[key].nom == nom && found.fils[key].id != id)\n {\n alert($(\"#msg_js #msg_js_cet_elem_existe_deja_dans_rep\").html());\n found={};\n return true;\n }\n found={};\n}", "function Combat_attaquePossible (Territoire1,Territoire2) {\r\n var voisin = Combat_estVoisin(Territoire1,Territoire2) ;\r\n var assezArmees = (Territoire1.army > 1) ;\r\n var voisinsDifferents = (Territoire1.proprietaire != Territoire2.proprietaire);\r\n if (voisin && assezArmees && voisinsDifferents){\r\n return true\r\n }\r\n else {\r\n return false\r\n }\r\n}", "function cerrarPoligono(){\n if(poligono.getTamanio()>=3){\n poligono.cerrar();\n // lo agrego al arreglo de poligonos\n poligonos[poligonos.length-1] = poligono;\n cerrado = true;\n\n\n }\n\n}", "finishOneOfProjects(norimoPabaigtiProjektoId) {\n // surasti projekta kurio id yra norimoPabaigtiProjektoId\n let iFoundThis = this.#currentProjects.find((projectObj) => projectObj.id === norimoPabaigtiProjektoId);\n if (iFoundThis === undefined) throw new Error(\"projekto su tokiu id nera: \" + norimoPabaigtiProjektoId);\n // console.log(\"iFoundThis\", iFoundThis);\n // cia mes jau turim rade konkretu objekta\n // iskviesti jam finisjProject metoda\n iFoundThis.finishProject();\n }", "function activar2(quien, objeto, momento) {\r\n if (objeto === void 0) { objeto = 'batisenal '; }\r\n if (momento) {\r\n var mensaje = quien + \" activo la \" + objeto + \" en la \" + momento;\r\n }\r\n else {\r\n var mensaje = quien + \" activo la \" + objeto + \" \";\r\n }\r\n console.log('El mensaje es: ', mensaje);\r\n}", "function i(e){return null==e}", "function test_existanceIndicateur (item,suppression)\n { \n if (suppression!=1)\n {\n var cis = vm.allindicateur.filter(function(obj)\n {\n return obj.id == currentItemIndicateur.id;\n });\n if(cis[0])\n {\n if((cis[0].nbr_beneficiaire!=currentItemIndicateur.nbr_beneficiaire) \n || (cis[0].nbr_salle_const!=currentItemIndicateur.nbr_salle_const) \n || (cis[0].nbr_ecole!=currentItemIndicateur.nbr_ecole) \n || (cis[0].nbr_box!=currentItemIndicateur.nbr_box) \n || (cis[0].nbr_point_eau!=currentItemIndicateur.nbr_point_eau) \n || (cis[0].nbr_banc!=currentItemIndicateur.nbr_banc) \n || (cis[0].nbr_table_maitre!=currentItemIndicateur.nbr_table_maitre) \n || (cis[0].nbr_chaise!=currentItemIndicateur.nbr_chaise) \n || (cis[0].observation!=currentItemIndicateur.observation)) \n { \n insert_in_baseIndicateur(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseIndicateur(item,suppression);\n }", "function test_existanceIndicateur (item,suppression)\n { \n if (suppression!=1)\n {\n var cis = vm.allindicateur.filter(function(obj)\n {\n return obj.id == currentItemIndicateur.id;\n });\n if(cis[0])\n {\n if((cis[0].nbr_beneficiaire!=currentItemIndicateur.nbr_beneficiaire) \n || (cis[0].nbr_salle_const!=currentItemIndicateur.nbr_salle_const) \n || (cis[0].nbr_ecole!=currentItemIndicateur.nbr_ecole) \n || (cis[0].nbr_box!=currentItemIndicateur.nbr_box) \n || (cis[0].nbr_point_eau!=currentItemIndicateur.nbr_point_eau) \n || (cis[0].nbr_banc!=currentItemIndicateur.nbr_banc) \n || (cis[0].nbr_table_maitre!=currentItemIndicateur.nbr_table_maitre) \n || (cis[0].nbr_chaise!=currentItemIndicateur.nbr_chaise) \n || (cis[0].observation!=currentItemIndicateur.observation)) \n { \n insert_in_baseIndicateur(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseIndicateur(item,suppression);\n }", "function _(e){return null===e||void 0===e}", "function saludarArgumentos2(referencia){\n // retorna 1 porque asi se designo el return 1;\n return 1;\n // Algo que va despues de un return jamas se va a ejecutar\n}", "function test_existanceManuel_gestion (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allmanuel_gestion.filter(function(obj)\n {\n return obj.id == currentItemManuel_gestion.id;\n });\n if(mem[0])\n {\n if((mem[0].description != currentItemManuel_gestion.description )\n //||(mem[0].fichier != currentItemManuel_gestion.fichier )\n ||(mem[0].date_livraison != currentItemManuel_gestion.date_livraison )\n ||(mem[0].observation != currentItemManuel_gestion.observation )) \n { \n insert_in_baseManuel_gestion(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseManuel_gestion(item,suppression);\n }", "function test_existanceManuel_gestion (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allmanuel_gestion.filter(function(obj)\n {\n return obj.id == currentItemManuel_gestion.id;\n });\n if(mem[0])\n {\n if((mem[0].description != currentItemManuel_gestion.description )\n //||(mem[0].fichier != currentItemManuel_gestion.fichier )\n ||(mem[0].date_livraison != currentItemManuel_gestion.date_livraison )\n ||(mem[0].observation != currentItemManuel_gestion.observation )) \n { \n insert_in_baseManuel_gestion(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseManuel_gestion(item,suppression);\n }", "function CornerCheck() {\n //comprobando las esquinas\n if (\n selected[0][0] &&\n called[0][0] &&\n selected[0][3] &&\n called[0][3] &&\n selected[3][0] &&\n called[3][0] &&\n selected[3][3] &&\n called[3][3]\n ) {\n hasWon = true;\n console.log(\"gano en las esquinas\");\n msg = \"Ganaste en las esquinas!\";\n return true;\n }\n}", "function test_existanceContrat_moe (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allcontrat_moe.filter(function(obj)\n {\n return obj.id == currentItemContrat_moe.id;\n });\n if(pass[0])\n {\n if((pass[0].intitule != currentItemContrat_moe.intitule )\n || (pass[0].ref_contrat != currentItemContrat_moe.ref_contrat)\n || (pass[0].montant_contrat != currentItemContrat_moe.montant_contrat ) \n || (pass[0].date_signature != currentItemContrat_moe.date_signature ) \n || (pass[0].id_moe != currentItemContrat_moe.id_moe )) \n { \n insert_in_baseContrat_moe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseContrat_moe(item,suppression);\n }", "function test_existanceContrat_moe (item,suppression)\n { \n if (suppression!=1)\n {\n var pass = vm.allcontrat_moe.filter(function(obj)\n {\n return obj.id == currentItemContrat_moe.id;\n });\n if(pass[0])\n {\n if((pass[0].intitule != currentItemContrat_moe.intitule )\n || (pass[0].ref_contrat != currentItemContrat_moe.ref_contrat)\n || (pass[0].montant_contrat != currentItemContrat_moe.montant_contrat ) \n || (pass[0].date_signature != currentItemContrat_moe.date_signature ) \n || (pass[0].id_moe != currentItemContrat_moe.id_moe )) \n { \n insert_in_baseContrat_moe(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseContrat_moe(item,suppression);\n }", "function siguientePregunta() {\n if (i == 25 || completarPasapalabra) {\n // Aca solo vamos a entrar si llegamos a la Z o si estamos en un completar pasapalabra (o sea ya dimos x lo menos una vuelta)\n //la primera vez entra por el i despues entra por completarPasapalabra que es true\n completarPasapalabra = true;\n // Refrescar el indice i, con el primer estado.pasapalabra\n // Esta 'flag' es para que si encontramos un indice i siguiente no vuelva a modificarlo\n shouldEnter = true;\n //For que recorre todo el array de estados. e = elemento (estado) en la posicion indice \n arrResultados.forEach((e, indice) => {\n if (shouldEnter && e === estado.pasapalabra && indice >= i) {\n i = indice;\n shouldEnter = false;\n }\n });\n // La logica anterior no funciona si queremos pasar de un indice mayor a otro menor\n // Ej: Estamos en X y el pasapalabra siguiente esta en C\n if (shouldEnter) {\n // findIdex nos devuelve el indice del primer estado = pasapalabra en el arrResultados\n // Devuleve -1 en el caso que no existan estado = pasapalabra\n i = arrResultados.findIndex(x => x == estado.pasapalabra);\n }\n\n // Chequeamos que exista siguiente pasapalabra\n if (i != -1) {\n // Si existe le hacemos focus\n next();\n focusInput()\n } else {\n // Si no existe terminamos el juego\n i = 25;\n detener();\n }\n } else {\n next();\n focusInput()\n }\n}", "function test_existanceRubrique_phase_sous_projet (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allrubrique_phase_sous_projet.filter(function(obj)\n {\n return obj.id == currentItemRubrique_phase_sous_projet.id;\n });\n if(mem[0])\n {\n if((mem[0].designation != currentItemRubrique_phase_sous_projet.designation )\n ||(mem[0].element_verifier != currentItemRubrique_phase_sous_projet.element_verifier )) \n { \n insert_in_baseRubrique_phase_sous_projet(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseRubrique_phase_sous_projet(item,suppression);\n }", "function calGuiasLovNullSelectionAction(){\n\t//Indicamos en el parametro de retorno de lov que hau que poner valor null\n\tcalGuiasLovReturnParameters.id = '';\n\tcalGuiasLovReturnParameters.description = '';\n\t\n\t//Finalmente cerramos la ventana\n\twindow.close();\n}", "function CenterCheck() {\n //comprobando el centro\n if (\n selected[1][1] &&\n called[1][1] &&\n selected[1][2] &&\n called[1][2] &&\n selected[2][1] &&\n called[2][1] &&\n selected[2][2] &&\n called[2][2]\n ) {\n hasWon = true;\n console.log(\"gano en el centro\");\n msg = \"Ganaste en el centro!\";\n return true;\n }\n}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function r(e){return void 0===e||null===e}", "function test_existance (item,suppression)\n { \n if (suppression!=1)\n {\n var tranc = vm.allphase_sous_projets.filter(function(obj)\n {\n return obj.id == currentItem.id;\n });\n if(tranc[0])\n {\n if((tranc[0].libelle!=currentItem.libelle) \n || (tranc[0].code!=currentItem.code)\n || (tranc[0].description!=currentItem.description)) \n { \n insert_in_base(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_base(item,suppression);\n }", "function s(e){return void 0===e||null===e}", "function test_existanceParticipant_sep (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allparticipant_sep.filter(function(obj)\n {\n return obj.id == currentItemParticipant_sep.id;\n });\n if(mem[0])\n {\n if((mem[0].nom!=currentItemParticipant_sep.nom) \n || (mem[0].prenom!=currentItemParticipant_sep.prenom)\n || (mem[0].sexe!=currentItemParticipant_sep.sexe)\n || (mem[0].age!=currentItemParticipant_sep.age)\n || (mem[0].id_situation_participant_sep!=currentItemParticipant_sep.id_situation_participant_sep)) \n { \n insert_in_baseParticipant_sep(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseParticipant_sep(item,suppression);\n }", "function test_existanceParticipant_sep (item,suppression)\n { \n if (suppression!=1)\n {\n var mem = vm.allparticipant_sep.filter(function(obj)\n {\n return obj.id == currentItemParticipant_sep.id;\n });\n if(mem[0])\n {\n if((mem[0].nom!=currentItemParticipant_sep.nom) \n || (mem[0].prenom!=currentItemParticipant_sep.prenom)\n || (mem[0].sexe!=currentItemParticipant_sep.sexe)\n || (mem[0].age!=currentItemParticipant_sep.age)\n || (mem[0].id_situation_participant_sep!=currentItemParticipant_sep.id_situation_participant_sep)) \n { \n insert_in_baseParticipant_sep(item,suppression);\n }\n else\n { \n item.$selected = true;\n item.$edit = false;\n }\n }\n } else\n insert_in_baseParticipant_sep(item,suppression);\n }" ]
[ "0.59841377", "0.5569984", "0.5488535", "0.53245795", "0.5274336", "0.51943105", "0.51943105", "0.519286", "0.5180364", "0.516617", "0.51426905", "0.51320547", "0.513153", "0.5120919", "0.5098592", "0.50934374", "0.50877506", "0.5072636", "0.5018478", "0.50133914", "0.5005626", "0.49978396", "0.49978396", "0.49955815", "0.49730238", "0.49624038", "0.49579558", "0.49572828", "0.49572828", "0.49567896", "0.4950589", "0.4950589", "0.4946217", "0.4946217", "0.49357152", "0.493398", "0.49283108", "0.49279505", "0.49197978", "0.49169412", "0.4916554", "0.4916399", "0.4916399", "0.4916399", "0.4916399", "0.4916399", "0.49032602", "0.49032602", "0.49015945", "0.49003115", "0.48913822", "0.4882327", "0.48790473", "0.4861892", "0.486043", "0.48420078", "0.48301065", "0.48256317", "0.4822845", "0.48201078", "0.4819641", "0.48126286", "0.4810501", "0.48093313", "0.48093313", "0.48090944", "0.48039746", "0.48008734", "0.48008734", "0.47940955", "0.47928834", "0.47928834", "0.47913462", "0.478948", "0.4786065", "0.47859532", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.47845796", "0.4782904", "0.4777021", "0.47753242", "0.47753242" ]
0.0
-1
end: imprimir any start: mostrar i ocultar divs
function mostrarOcultar(id) { var elemento = document.getElementById(id); var enlace = document.getElementById('meta'); if(elemento.style.display == "" || elemento.style.display == "none") { elemento.style.display = "block"; enlace.innerHTML = 'Contenido de metadatos <button type="button" class="close" onClick="mostrarOcultar(\'content_metas\'); return false;"><i class="icon-btn-arrow-toggle2"></i></button>'; } else { elemento.style.display = "none"; enlace.innerHTML = 'Contenido de metadatos <button type="button" class="close" onClick="mostrarOcultar(\'content_metas\'); return false;"><i class="icon-btn-arrow-toggle"></i></button>'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mostrarDiv(idmuestra,idoculta){\n\tvar ident=\"#\"+idmuestra;\n\tvar identOculta=\"#\"+idoculta;\n\t$(identOculta).hide();\n\t$(ident).show();\r\n}", "function displayElements() {\n $(\"body\").append($(\"<button id='start'>Start</button>\"));\n $(\"#start\").click(function () {\n $(\"#start\").hide();\n $('header').css({ 'margin-top': '50px' });\n $(\".container\").show();\n initializeTimer();\n });\n }", "function displayDOM(){\r\n\t\tvar str = '';\r\n\t\tcontainer.getChildren().each(function(item){\r\n\t\t\tstr += '<div style=\"' + item.style.cssText + '\">' + item.get('text') + '</div>\\n';\r\n\t\t});\r\n\t\tdocument.id('output').set('text', str);\r\n\t}", "function display_empty_block(day_position) {\n //se il primo è domenica appendi 6 vuoti\n if (day_position == 0 ) {\n for (var k = 0; k < 6; k++) {\n $('#calendario').append('<div class=\"day_box\"></div>');\n }\n } else if (2 <= day_position <= 6) {\n for (var j = 0; j < (day_position - 1); j++) {\n $('#calendario').append('<div class=\"day_box\"></div>');\n }\n }\n }", "function showDivs()\n{ \n //alert(\"showDivs()\");\n\tvar divisionNo=\"\"; \n myDocumentElements=document.getElementsByTagName(\"div\");\n for (i=0;i<myDocumentElements.length;i++)\n {\n divisionNo = \"\" + myDocumentElements[i].id;\n if(divisionNo.indexOf(\"__hide_division_\")>=0)\n { \n showDiv(divisionNo.substring(16),'/samigo-app');\n \n }\n } \n }", "function show(str){\n //se str==1 (cioè gruppo proteine allora: \n if(str==1){\n //se gli alimenti sono visibili allora metti tutti i gruppi invisibili\n if(coll_proteine.css(\"display\")==\"flex\"){\n coll_carboidrati.css(\"display\",\"none\");\n coll_proteine.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n //altrimenti (quindi nel caso in cui il gruppo di aliemnti delle proteine non era visibilie)\n //lo metti visibile e metti tutti gli altri a non visibili\n else{\n coll_proteine.css(\"display\",\"flex\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n }\n //stesso ragionamento di sopra ma riguardo agli alimenti del gruppo CARBOIDRATI\n if(str==2){\n if(coll_carboidrati.css(\"display\")==\"flex\"){\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n else{\n coll_carboidrati.css(\"display\",\"flex\");\n coll_proteine.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n }\n if(str==3){\n if(coll_grassi.css(\"display\")==\"flex\"){\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n else{\n coll_grassi.css(\"display\",\"flex\");\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n } \n if(str==4){\n if(coll_calorie.css(\"display\")==\"flex\"){\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n else{\n coll_calorie.css(\"display\",\"flex\");\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n }\n } \n}", "function startDiv(layerID) \r\n{\r\n\tif (browserOK)\t// We can make the interactive elements available ...\r\n\t{\r\n\t\tdocument.write('<A href=\\\"javascript: toggleDisplay(\\''+layerID+'\\')\\\" onMouseOver=\\\"showStatus(\\''+layerID+'\\'); return true\\\" onMouseOut=\\\"window.status=\\' \\';return true\\\")\\\"><IMG src=\\\"plus.gif\\\" border=\\\"0\\\" width=\\\"12\\\" height=\\\"12\\\" alt=\\\"+\\\" name=\\\"i'+layerID+'\\\"><\\/A>');\r\n\t\tdocument.write('<DIV id=\\\"'+layerID+'\\\" class=\\\"hidden\\\" style=\\\"display: none\\\">');\r\n\t}\r\n\telse\t\t\t// No interactive element available\r\n\t{\r\n\t\tdocument.write('<DIV id=\\\"'+layerID+'\\\" class=\\\"hidden\\\"><HR align=\\\"left\\\" width=\\\"25%\\\">');\r\n\t}\r\n\r\n}", "function crearDivContenedor(indice) {\n var c = $(\"#contenedorPadre\");\n var ej = ejercicios[indice];\n c.append(\"<div class='contenedor'></div>\");\n var cont = c.children().last();\n // cont.append(\"<div class='fijo'>\" + ej.antes + \"</div>\");\n crearAppend(cont,\"fijo\",ej.antes);\n var ordenDivs = [];\n //Hasta ej.opciones.length -1 porque el ultimo elemento no lo sorteo, lo asigno directo\n while (ordenDivs.length < (ej.opciones.length - 1)) {\n var indOpTentativo = Math.floor(Math.random() / (1 / ej.opciones.length));\n if (ordenDivs.indexOf(indOpTentativo) == -1) {\n ordenDivs.push(indOpTentativo);\n // cont.append(\"<div class='opcion'>\" + ej.opciones[indOpTentativo].valor + \"</div>\");\n crearAppend(cont, \"opcion\", ej.opciones[indOpTentativo].valor);\n }\n }\n //Asignacion del elemento restante. Se puede utilizar el mismo array ordenDivs\n for (var indice = 0; indice <= ordenDivs.length; indice++) {\n if (ordenDivs.indexOf(indice) == -1) {\n crearAppend(cont, \"opcion\", ej.opciones[indice].valor);\n// cont.append(\"<div class='opcion'>\" + ej.opciones[indice].valor + \"</div>\");\n break;\n }\n }\n //cont.append(\"<div class='fijo'>\" + ej.despues + \"</div>\");\n crearAppend(cont, \"fijo\", ej.despues);\n}", "function dibujarFragmento(diaCalendario, minutosInicio, minutosFin, top, alto, id, idConsultorio) {\n var idstr = '';\n if (id != '' && id != null) {\n idstr = 'id=\"' + id + '\"';\n }\n var idConsultorioStr = '';\n if (idConsultorio != null) {\n idConsultorioStr = ' data-consultorio = \"' + idConsultorio + '\" ';\n }\n var claseEspacio = obtenerClaseCarrilFragmento(top, alto, diaCalendario);\n var fragmentStr = '<div class=\"barra fragmentoCalendarioCreado ' + claseEspacio + '\" ' + idstr + idConsultorioStr + ' style=\"top:' +\n top +\n 'px;min-height:20px; height:' +\n alto +\n 'px\" ' +\n 'onmousedown=\"fragmentoCalendarioMouseDown(this.parentElement ,event); return false;\" ' +\n 'onmousedown=\"fragmentoCalendarioMouseUp(this.parentElement ,event); return false;\" ' +\n 'onclick=\"toogleTooltip(this ,true, event); return false;\" ' +\n '>' +\n '<div class=\"desplazar_tool\" onmousedown=\"fragmentoCalendarioMoveMouseDown(this.parentElement ,event); return false;\" >' +\n '<img src=\"../../Content/Imagenes/im_agendas_arrastre.png\" />' +\n '</div>' +\n '<div class=\"expand_tool\" onmousedown=\"fragmentoCalendarioResizeMouseDown(this.parentElement ,event); return false;\">' +\n '<img src=\"../../Content/Imagenes/im_agendas_expand.png\" />' +\n '</div>' +\n '<div class=\"nativo horas_tool_tip hidden \">' +\n '<div class=\"triangulo_horas\">' +\n '</div>' +\n '<p>' +\n '<span ' + 'onclick=\"fragmentoCalendarioBorraClick(this.parentElement.parentElement.parentElement ,event); return false;\" ' +\n ' class=\"glyphicon glyphicon-trash pull-right\" style=\"margin-right:5px\"></span>' +\n '</p>' +\n '<p>' +\n '<img src=\"../../Content/Imagenes/im_agendas_reloj_lleno.png\" />' + $('#lb_RangoHoras')[0].innerText + '</p>' +\n '<div class=\"horas_modulo horaFragmento\">' +\n MinutosAHHMM(minutosInicio) + ' - ' + MinutosAHHMM(minutosFin) +\n '</div>' +\n '</div>' +\n '</div>';\n\n\n fragmentoActual = $(diaCalendario).append(fragmentStr).children().last();\n toogleTooltip(fragmentoActual, false, null);\n\n if (primerFragmento == \"\") {\n primerFragmento = fragmentoActual;\n }\n\n}", "function tu_ShowContent(){ \n if(data.insideOf){\n \t\t\t\t\tif(data.append) jQuery(data.insideOf).append(objContent);\n \t\t\t\t\telse jQuery(data.insideOf).html(objContent);\n var content_height = jQuery(objContent).css(\"height\");\n jQuery(objContent).css(\"height\", \"0px\");\n jQuery(objContent).delay(data.delay).animate({height:content_height}, data.duration, data.ease);\n \t\t\t\t}else if(data.beforeOf){\n jQuery(objContent).insertBefore(jQuery(data.beforeOf));\n var content_height = jQuery(objContent).css(\"height\");\n \t\t\t\t\tjQuery(objContent).css(\"height\", \"0px\");\n \t\t\t\t\tjQuery(objContent).delay(data.delay).animate({height:content_height}, data.duration, data.ease);\n \t\t\t\t}else if(data.afterOf){\n jQuery(objContent).insertAfter(jQuery(data.afterOf));\n var content_height = jQuery(objContent).css(\"height\");\n \t\t\t\t\tjQuery(objContent).css(\"height\", \"0px\");\n \t\t\t\t\tjQuery(objContent).delay(data.delay).animate({height:content_height}, data.duration, data.ease);\n \t\t\t\t}else if(data.prepend){\n \t\t\t\t jQuery(data.prepend).prepend(objContent);\n \t\t\t\t}else{\n jQuery(\"body\").append(objContent);\n \t\t\t\t} \n }", "function criarElementosNaTela() {\n $(\".inicio\").hide()\n $(\".fundo-jogo\").append(\"<div class='jogador animacao-jogador'</div>\")\n $(\".fundo-jogo\").append(\"<div class='aliado animacao-aliado'</div>\")\n $(\".fundo-jogo\").append(\"<div class='helicoptero-inimigo animacao-helicoptero-inimigo'</div>\")\n $(\".fundo-jogo\").append(\"<div class='caminhao'</div>\")\n $(\".fundo-jogo\").append(\"<div class='placar'</div>\")\n $(\".fundo-jogo\").append(\"<div class='energia'</div>\")\n}", "function MostrarCosas(DID) {\n $(DID).css(\"display\", \"block\");\n }", "function renderStartPage() {\n\t$('.js-results').html(``);\n\t$(\".js-question_page\").hide();\n\t$(\".js-results_page\").hide();\n\t$(\".js-start_page\").show();\n}", "mostrarResultado(seguro, total){\n const resultado = document.getElementById('resultado');\n let marca;\n switch(seguro.marca){\n case '1': marca = \"Americano\";\n break;\n case '2': marca = \"Asiatico\";\n break;\n case '3': marca = \"Europeo\";\n break;\n }\n\n let div = document.createElement('div');\n div.classList = 'cotizacion';\n \n div.innerHTML=`\n <p class= 'header'>Resumen</p>\n <p>Marca: ${marca}</p>\n <p>Anio: ${seguro.anio}</p>\n <p>Tipo de seguro: ${seguro.tipo}</p>\n <p>Total de la cotizacion: $ ${total}</p>`\n\n const spinner = document.querySelector('#cargando img');\n spinner.style.display = 'block';\n setTimeout(function(){\n spinner.style.display='none';\n resultado.appendChild(div);\n },2000);\n\n}", "function restaurarReloj() {\n $horasDom.text('00');\n $minutosDom.text('00');\n $segundosDom.text('00');\n }", "function MostrarContadores() {\n\tvar div = document.getElementById(\"mostrarcontador\");\n\tdiv.innerHTML = \"\";\n\n\tvar TitleTotalArticles = document.createElement(\"h4\");\n\tvar TitlePriceWithoutIVA = document.createElement(\"h4\");\n\tvar TitleTotalPrice = document.createElement(\"h4\");\n\n\tvar cont1 = 0;\n\tvar cont2 = 0;\n\tvar TotalArticulos = 0;\n\tvar Totalprecio = 0;\n\tvar PrecioSinIva = 0;\n\n\t//Con esto mostramos el total de articulos en nuestro carrito.\n\tfor (x of carritocompra.cantidades) {\n\t\tx = parseInt(x);\n\t\tTotalArticulos += x;\n\t}\n\n\tcarritocompra.items.forEach(element => {\n\t\telement.precio = parseInt(element.precio);\n\t\tTotalprecio += (element.precio * carritocompra.cantidades[cont2]);\n\t\tcont2++;\n\t});\n\n\t// Esta parte del codigo es para sacar los precios sin iva\n\tcarritocompra.items.forEach(element => {\n\t\telement.precio = parseInt(element.precio);\n\t\telement.iva = parseInt(element.iva);\n\t\tPrecioSinIva += (element.precio * carritocompra.cantidades[cont1]) - (((element.precio * element.iva) / 100) * carritocompra.cantidades[cont1]);\n\t\tcont1++;\n\t});\n\n\tTitleTotalArticles.appendChild(document.createTextNode(\"Artículos en tu carrito: \" + TotalArticulos));\n\tTitlePriceWithoutIVA.appendChild(document.createTextNode(\"Precio sin IVA: \" + PrecioSinIva + \"€\"));\n\tTitleTotalPrice.appendChild(document.createTextNode(\"Precio total a pagar: \" + Totalprecio + \"€\"));\n\n\tdiv.appendChild(TitleTotalArticles);\n\tdiv.appendChild(TitlePriceWithoutIVA);\n\tdiv.appendChild(TitleTotalPrice);\n}", "function oq() {\r\n switch (oyinchi.tamon) {\r\n case 1:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"top\" style=\"left: ${oyinchi.x+(oyinchi.w)/2-15}px; top: ${oyinchi.y-8}px;\"></div>`\r\n\r\n break\r\n case 2:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"right\" style=\"left: ${oyinchi.x+(oyinchi.w)-5}px; top: ${oyinchi.y+27}px;\"></div>`\r\n\r\n break\r\n case 3:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"bottom\" style=\"left: ${oyinchi.x+(oyinchi.w)/2-7}px; top: ${oyinchi.y+69}px;\"></div>`\r\n\r\n break\r\n case 4:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"left\" style=\"left: ${oyinchi.x+(oyinchi.w)/2-50}px; top: ${oyinchi.y+34}px;\"></div>`\r\n\r\n break\r\n }\r\n\r\n oyinchi.el = document.querySelector('.oyinchi');\r\n}", "function printProperlyIndex (){\n estructurProperly = \"\"\n for (propiedades in carrito[0]){\n estructurProperly += '<div id=\"indexItem-'+ propiedades +'\" class=\"index-item\">' + propiedades.toUpperCase() + '</div>';\n }\n estructurProperly += '<div id=\"indexItem-eliminar\" class=\"index-item\"></div>';\n document.getElementById(\"chopping-properly\").innerHTML = estructurProperly;\n}", "function ocultarDiv(obj){\r\n document.getElementById('continuar').style.display=\"none\";\r\n switch(obj.id){\r\n case 'div1':\r\n document.getElementById('continuar').style.display=\"block\";\r\n document.getElementById('div1').style.display=\"none\";\r\n break;\r\n case 'sair':\r\n document.getElementById('continuar').style.display=\"none\";\r\n document.getElementById('div1').style.display=\"block\";\r\n break;\r\n }\r\n }", "function abrirCeros(vari,varj,fini,finj,cori,corj,tablero){\n\t\t\t\tfor(var i = vari; i <= fini; i++){\n\t\t\t for(var j = varj; j <= finj; j++){\n\t\t\t \tvar myid = i+\"\"+j;\n\t\t\t \tvar objDiv = document.getElementById(myid)\n\n\t\t\t\t\t/* Check if the position has been showed. Content as a flag */\n\t\t\t if(objDiv.textContent == \"\"){\n\t\t\t \t\tif(tablero[i][j] == 0){\n\t\t\t \t\t\tif(i == cori && j == corj){\n\t\t\t \t\t\t\tobjDiv.textContent = \"\"\t;\n\t\t\t \t\t\t\tobjDiv.style.backgroundColor = \"green\";\n\t\t\t \t\t\t\t/* Check if the position has been showed. Uses backgroundColor as flag, just to not show bombs, which are img and doesnt have any background color. */\n\t\t\t \t\t\t}else{\n\t\t\t \t\t\t\tif(objDiv.style.backgroundColor != \"green\"){\n\t\t\t \t\t\t\t\tabrirAlrededor(i, j,tablero);\n\t\t\t \t\t\t\t}\n\t\t\t \t\t\t}\n\n\t\t\t\t\t\t\t/* Adds numbered position. Check there is not bomb. */\n\t\t\t \t\t}else{\n\t\t\t \t\t\tif(tablero[i][j] != \"*\" && tablero[i][j] != \"9\"){\n\t\t\t \t\t\t\tdocument.getElementById(myid).innerHTML = \"<p style='margin-top:15px;'>\" + tablero[i][j] + \"</p>\";\n\t\t\t \t\t\t\tif(tablero[i][j] == 1){objDiv.style.backgroundColor = \"yellow\";\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\telse if(tablero[i][j] == 2){objDiv.style.backgroundColor = \"orange\";}\n\t\t\t \t\t\t\telse if(tablero[i][j] > 2){objDiv.style.backgroundColor = \"red\";}\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t }\n\n\n\t\t\t }\n\t\t\t }\n\t\t\t}", "showResults(resultado, moneda, crypto, textCurrency){\n\n // select first div\n const resultadoAnterior = document.querySelector('#resultado > div');\n\n if(resultadoAnterior){\n resultadoAnterior.remove();\n }\n\n // asi puedes ir accediendo a un objeto en javascript\n const dateCurrency = resultado[crypto][moneda];\n console.log(resultado);\n // Only show 2 decimals\n let price = dateCurrency.PRICE.toFixed(2),\n changeDay = dateCurrency.CHANGEPCTDAY.toFixed(2),\n // Change date \n update = new Date(dateCurrency.LASTUPDATE * 1000).toLocaleDateString('es-MX');\n // build template\n\n let templateHTML = `\n\n <div class=\"card bg-danger\">\n <div class=\"card-body text-light\">\n <img style=\"width:10%\" class=\"align-center\" src=\"https://www.cryptocompare.com${dateCurrency.IMAGEURL}\"> \n <h2 class=\"card-title\">Results:</h2>\n <p>The price of ${dateCurrency.FROMSYMBOL} from currency ${textCurrency} is of: $${price}\n </p>\n <p>Change of last day: % ${changeDay}\n </p>\n <p>The last update: ${update}\n </p>\n </div>\n </div>\n \n `;\n\n // print spinner\n\n this.showHideSpinner('block');\n\n \n setTimeout(() => {\n // print result\n document.querySelector('#resultado').innerHTML = templateHTML;\n \n //hide spinner\n this.showHideSpinner('none');\n }, 2000)\n }", "function start(){\n //removes input section and submit buttons, \n //create time display div\n this.timeDisplay = document.createElement(\"div\");\n this.timeDisplay.id = \"display\";\n this.timeDisplay.innerHTML = \"display\";\n this.el.appendChild(this.timeDisplay);\n }", "function setStartDOM() {\n $timer.hide();\n $progressBar.empty();\n $questionBox\n .empty()\n .show()\n .append(\"<h1>Welcome to Code Quiz!</h1>\")\n .append(\n \"<p>Answer every question before time runs out. The faster you answer, the higher your score!</p>\"\n );\n $scoresBox.hide();\n writeStartButtons();\n }", "function start(){\r\n document.getElementById('marc').start();\r\n document.getElementById('description').innerHTML = \"\";\r\n document.getElementById('status').innerHTML = \"\";\r\n}", "function showResultDiv (node) {\n node.style.display = \"inline\";\n }", "function orden(op,campo,buscador)\n{\nobj = document.getElementById(op);\nvar left=obj.offsetParent.offsetLeft;\nvar query = window.location.search.substring(1);\ndocument.getElementById('marco').style.marginLeft=left+'px';\ndocument.getElementById('marco').style.marginTop=60+'px';\nmuestra_submen();\ncol=\"<div><div id=item><ul><li><a href=javascript:ira('asc','\"+campo+\"','\"+buscador+\"') onclick=oculta_submen()>Ordenar Ascendente</a></li></ul></div><div id=item2><ul><li><a href=javascript:ira('desc','\"+campo+\"') onclick=oculta_submen()>Ordenar Descendente</a></li></ul></div>\";\ndocument.getElementById('interior').innerHTML=col;\n}", "function esconderDivCadastro(obj){\r\n document.getElementById('conteudo').style.display=\"hidden\";\r\n switch(obj.id){\r\n case 'div':\r\n document.getElementById('conteudo').style.display=\"block\";\r\n document.getElementById('div1').style.display=\"hidden\";\r\n break;\r\n case 'sair':\r\n document.getElementById('conteudo').style.display=\"hidden\";\r\n document.getElementById('div1').style.display=\"block\";\r\n break;\r\n }\r\n }", "function escrever_resultado()\r\n{\r\n var texto= '<hr>';\r\n\r\n /*\r\n texto += '<b>Suave:</b> máximo[ mínimo { μ CocaForte (x) ; μ RunFraco (x) ; μ Gelo (x) } ; mínimo { μ CocaSuave (x) ; μ RunSuave (x) ; μ Gelo (x) } ;mínimo { μ CocaFraco (x) ; μ RunForte (x) ; μ Gelo (x) }]' ;\r\n texto+='<br><b>Forte:</b> máximo[ mínimo { μ CocaForte (x) ; μ RunSuave (x) ; μ Gelo (x) } ; mínimo { μ CocaForte (x) ; μ RunForte (x) ; μ Gelo (x) } ;mínimo { μ CocaSuave (x) ; μ RunForte (x) ; μ Gelo (x)]' ;\r\n texto+='<br><b>Fraco:</b> máximo[ mínimo { μ CocaFraco (x) ; μ RunFraco (x) ; μ Gelo (x) } ; mínimo { μ CocaFraco (x) ; μ RunSuave (x) ; μ Gelo (x) } ;mínimo { μ CocaSuave (x) ; μ RunForte (x) ; μ Gelo (x) }]';\r\n */\r\n \r\n \r\n texto += '<hr>';\r\n texto+= '<h3><u>Resultado</u></h3>'+ calc_resultado();\r\n document.getElementById('resultado').innerHTML= texto; \r\n}", "function renderStart(){\r\n\tvar y = document.createElement(\"div\");\r\n\ty.style.left=leftAmt + \"px\";\r\n\ty.style.top=topAmt + \"px\";\r\n\ty.style.width=parseInt(leftAmt/75)+7.5*75 + \"px\";\r\n\ty.style.borderColor=\"white\";\r\n\ty.style.opacity=0;\r\n\ty.style.backgroundColor=\"black\";\r\n\ty.style.zIndex=2;\r\n\ty.className=\"block\";\r\n\ty.id=\"startBlock\";\r\n\tvar blocks = document.getElementById(\"blocks\");\r\n\tblocks.appendChild(y);\r\n}", "function view_table_separate_memory_area (desp, start){\n var id_tabla = '#tabla';\n var str;\n str = '<div id = \"tabla\">';\n str = str + \"<table>\";\t \n for(i=0; i<(sel_val['mem_cap']); i++){\n str = str + \"<tr id='fila\"+i+\"'>\";\n str = str + \"<td id='filaFlecha'><div id='filaIndice\"+i+\"' style = 'display:none;'></div></td>\";\n\t \n\tfor(j=0; j<(sel_val['node_cap']+desp); j++){\n\t str = str + \"<td>\"+memoria[i][j]+\"</td>\";\n\t}\n\tstr = str + \"</tr>\";\t\n }\n str = str + \"<tr><td id = 'filaFlecha'><div id = 'filaIndiceDesb' style = 'display:none;'><img src='js/css/arrowright.png' border='0'></div></td><td id = 'filaFlecha'></td><td id='filaFlecha'></td><td id='filaFlecha'></td></tr>\";\n for(i=0; i<gen_inf['sep_mem_cap']; i++){\n str = str + \"<tr id = 'filaDesb\"+i+\"'>\";\n str = str + \"<td id = 'filaFlecha'><div id='filaIndiceDesb\"+i+\"' style = 'display:none;'><img src='js/css/arrowright.png' border='0'></div></td>\";\n\t \n str = str + \"<td>\"+i+\"</td><td>\"+memoriadesborde[i][1]+\"</td><td>\"+memoriadesborde[i][2]+\"</td>\";\n str = str + \"</tr>\";\t \n }\n\t \n str = str + \"</table>\"; \n str = str + \"</div>\";\n \n if (start){\n $(str).appendTo(\"#contenedor\");\n\t$(id_tabla).hide();\n\t$(id_tabla).show('slow'); \n } else { $(id_tabla).replaceWith(str); }\n return false;\n}", "function stampaOggetto (arrSelection,contenitore) {\n arrSelection.forEach(elemento => {\n //Destrutturare l'elemento \n const {name , prefix , type} = elemento;\n //Stampiamo la funzione in Html utilizzando la proprietà JavaScrip .innerHTML ed il Template Literals\n contenitore.innerHTML += `\n <div>\n <i class=\"${prefix} ${type}\" style=\"color:blue\"></i>\n <div class=\"title\">${name}</div>\n </div>\n `; \n});\n}", "function doStart() {\r\n\t\r\n\tdocument.getElementById(\"non-visible\").style.display = \"none\";\r\n\tdocument.getElementById(\"start\").style.display = \"block\";\r\n\t\r\n\tdoNext();\r\n}", "display() {\n line(this.start.x, this.start.y, this.end.x, this.end.y);\n }", "function mostrarCurso(curso) {\n const hijo = document.createElement(\"div\")\n hijo.classList.add(\"card\")\n hijo.innerHTML = `\n <div class=\"img-container s-ratio-16-9 s-radius-tr s-radius-tl\">\n <img src=\"${curso.getPoster()}\" alt = \"${curso.getNombre()}\"/>\n </div>\n <div class=\"card__data s-border s-radius-br s-radius-bl s-pxy-2\"> \n <h3 class=\"t5 s-mb-2 s-center\" >${curso.getNombre()}</h3>\n <div class=\"s-center\">\n <span class=\"small\"># de clases: ${curso.getClases()}</span>\n </div>\n </div>\n `\n elem.appendChild(hijo) \n}", "function sliceDivs(startInt) {\n // change height according to number of slices\n $clones.css( 'height', sliceHeight + 'px' );\n // if ( startInt ) startInt();\n\n // save all slices in an array so we don't have to use find() anymore\n for ( var i = 0; i < sliceNum; i++ ) {\n var $item = $clones.eq( i ).find('.interlace-clone__content');\n slices.push($item);\n }\n startAnimating(20);\n }", "function showProductReserva(product) {\n var hora = document.getElementById(product.hora).nextElementSibling;\n var lugar = document.getElementById(product.lugar).innerHTML;\n switch (lugar){\n case \"Padel 1\": \n lugar = 0;\n break;\n case \"Padel 2\": \n lugar = 1;\n break;\n case \"Padel 3\": \n lugar = 2;\n break;\n case \"Tenis 1\": \n lugar = 3;\n break;\n case \"Tenis 2\": \n lugar = 4;\n break;\n case \"Trinquete\": \n lugar = 5;\n break;\n default: \n lugar = 6;\n break;\n }\n var ocupado = hora;\n for(var i = 0; i < lugar; i++) {\n ocupado = ocupado.nextElementSibling;\n }\n ocupado.innerHTML = \"Ocupado\"\n ocupado.className = \"ocupado\"\n }", "function mostraretro1() {\n retrouno.style.display=\"block\";\n fronte1fronte1.replaceChild(retrouno,fronte1);\n //modifica delle descrizioni con il contenuto della lettera\n testo.style.display=\"block\";\n descrizionedescrizione.replaceChild(testo, descrizione); \n }", "function showEnd() {\n console.log(\"showEnd ran\");\n getResult();\n $(\"#topright\").hide();\n $(\"#gamecontents\").hide();\n $(\"#end\").show();\n }", "function showCarousel() {\n carouselInner.innerHTML = \"\";\n carouselInner.appendChild(printCarouselPages(1, posts));\n carouselInner.appendChild(printCarouselPages(2, posts));\n carouselInner.appendChild(printCarouselPages(3, posts));\n // carouselInner.innerHTML += \"<div class='after'></div>\";\n}", "cargando() {\n var cargandoDibujo = `\n <div class=\"container\">\n <section>\n <div class=\"loader loader-1\">\n <div class=\"loader-outter\"></div>\n <div class=\"loader-inner\"></div>\n </div>\n </section>\n </div>\n `;\n\n document.body.innerHTML += cargandoDibujo;\n }", "function displayIncrementalOutput(id,className,mess) {\n\tisAtBottom = false;\n\n\tif ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {\n\t\tisAtBottom = true;\n\t}\n\n\tif(mess != null && mess != '')\t{\n content = document.getElementById('preText');\n if (typeof this.entry === 'undefined') {\n this.entry = document.createElement(\"div\");\n }\n this.entry.innerHTML += mess\n content.appendChild(this.entry);\n\t}\n\n\tif (isAtBottom)\n\t\tgotoEnd();\n}", "function preDiv(){\n plusDivs(-1);\n}", "function startButton() {\n startScreen = \"<div id='instructions'>Are you a food genius? <br> Could you make it in culinary school? <br> <b> Prove it! </b> <br> You'll have 30 seconds each to answer \" + questions.length + \" questions. <br> Push the button below to begin. </div><div id='startDiv' class='text-center'><a class='start-button btn-block' href='#' role='button'>Start Quiz</a></div>\";\n $(\".mainArea\").html(startScreen);\n }", "function div(text) { return '<div>'+text+'</div>'; }", "function colocar_dulce(fila,modo=\"aleatorio\",nombre_imagen=0){\r\nvar html_para_agregar=\"\";\r\n if(modo === \"aleatorio\"){\r\n nombre_imagen = numero_entero_al_azar(1,4);\r\n }\r\n html_para_agregar = '<div class=\"candycru fila'+fila+'\"><img src=\"image/'+nombre_imagen+'.png\" alt=\"\"></div>'\r\n return html_para_agregar\r\n}", "function Divs(num, n)\n{\n\tid = n;\n\tslideIndex = 1;\n\tshowDivs(slideIndex);\n}", "function fizzbuzz_2(start, end) {\n\n $(\"body .fizzbuzz_2\").append(\"<p>FizzBuzz_2</p>\");\n $(\"body .fizzbuzz_2\").append(\"<p>\");\n\n for (i = start; i <= end; i++) {\n // write FizzBuzz if divisible by 3 and 5 \n if ((i%3 === 0) && (i%5 === 0)) {\n $(\"body .fizzbuzz_2\").append(\"FizzBuzz \");\n // write Fizz if divisible by 3\n } else if (i%3 === 0) {\n $(\"body .fizzbuzz_2\").append(\"Fizz \");\n // write Buzz if divisble by 5\n } else if (i%5 === 0) {\n $(\"body .fizzbuzz_2\").append(\"Buzz \");\n // otherwise write i\n } else {\n $(\"body .fizzbuzz_2\").append(\" \" + i + \" \");\n }\n\n } // end of for loop\n\n $(\"body .fizzbuzz_2\").append(\"</p><br>\");\n\n }// end of fizzbuzz_2", "function showdiv(event,text)\n\t{\n\t\t//determina un margen de pixels del div al raton\n\t\tmargin=5;\n\n\t\t//La variable IE determina si estamos utilizando IE\n\t\tvar IE = document.all?true:false;\n\n\t\tvar tempX = 0;\n\t\tvar tempY = 0;\n\n\t\t//document.body.clientHeight = devuelve la altura del body\n\t\tif(IE)\n\t\t{ //para IE\n\t\t\tIE6=navigator.userAgent.toLowerCase().indexOf('msie 6');\n\t\t\tIE7=navigator.userAgent.toLowerCase().indexOf('msie 7');\n\t\t\t//event.y|event.clientY = devuelve la posicion en relacion a la parte superior visible del navegador\n\t\t\t//event.screenY = devuelve la posicion del cursor en relaciona la parte superior de la pantalla\n\t\t\t//event.offsetY = devuelve la posicion del mouse en relacion a la posicion superior de la caja donde se ha pulsado\n\n\t\t\tif(IE6>0 || IE7>0)\n\t\t\t{\n\t\t\t\ttempX = event.x\n\t\t\t\ttempY = event.y\n\t\t\t\tif(window.pageYOffset){\n\t\t\t\t\ttempY=(tempY+window.pageYOffset);\n\t\t\t\t\ttempX=(tempX+window.pageXOffset);\n\t\t\t\t}else{\n\t\t\t\t\ttempY=(tempY+Math.max(document.body.scrollTop,document.documentElement.scrollTop));\n\t\t\t\t\ttempX=(tempX+Math.max(document.body.scrollLeft,document.documentElement.scrollLeft));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//IE8\n\t\t\t\ttempX = event.x\n\t\t\t\ttempY = event.y\n\t\t\t}\n\t\t}else{ //para netscape\n\t\t\t//window.pageYOffset = devuelve el tamaño en pixels de la parte superior no visible (scroll) de la pagina\n\t\t\tdocument.captureEvents(Event.MOUSEMOVE);\n\t\t\ttempX = event.pageX;\n\t\t\ttempY = event.pageY;\n\t\t}\n\n\t\tif (tempX < 0){tempX = 0;}\n\t\tif (tempY < 0){tempY = 0;}\n\n\t\t// Modificamos el contenido de la capa\n\t\tdocument.getElementById('flotante').innerHTML=text;\n\n\t\t// Posicionamos la capa flotante\n\t\tdocument.getElementById('flotante').style.top = (tempY+margin)+\"px\";\n\t\tdocument.getElementById('flotante').style.left = (tempX+margin)+\"px\";\n\t\tdocument.getElementById('flotante').style.display='block';\n\t\treturn;\n\t}", "function showHours() {\n var start = 0;\n var idstr = '';\n var hour = 0;\n var meridian = '';\n var calcDay = null;\n var cd = currDate;\n var currDay = new Date(cd.getFullYear(), cd.getMonth(), cd.getDate());\n var viewDiv = null;\n var timeLineWidth = 0;\n var workingHoursBarWidth = 3;\n\n // Subtract one px for border per asinine CSS spec\n var halfHourHeight = (HOUR_UNIT_HEIGHT/2) - 1;\n\n viewDiv = timelineNode;\n timeLineWidth = parseInt(viewDiv.offsetWidth);\n // Subtract 1 for 1px border\n timeLineWidth = timeLineWidth - workingHoursBarWidth - 1;\n\n var str = '';\n var row = '';\n // Timeline of hours on left\n for (var j = 0; j < 24; j++) {\n hour = j == 12 ? _('App.Noon') : cosmo.datetime.util.hrMil2Std(j);\n meridian = j > 11 ? ' PM' : ' AM';\n meridian = j == 12 ? '' : '<span>' + meridian + '</span>';\n row = '';\n\n // Upper half hour\n // ==================\n row += '<div class=\"hourDivTop';\n row += '\" style=\"height:' +\n halfHourHeight + 'px; width:' +\n timeLineWidth + 'px; float:left;\">';\n // Hour plus AM/PM\n row += '<div class=\"hourDivSubLeft\">' + hour +\n meridian + '</div>';\n row += '</div>\\n';\n row += '<br class=\"clearAll\"/>'\n\n idstr = i + '-' + j + '30';\n\n // Lower half hour\n // ==================\n row += '<div class=\"hourDivBottom\"';\n // Make the noon border thicker\n if (j == 11) {\n row += ' style=\"height:' + (halfHourHeight-1) +\n 'px; border-width:2px;';\n }\n else {\n row += ' style=\"height:' + halfHourHeight + 'px;';\n }\n row += ' width:' + timeLineWidth +\n 'px; float:left;\">&nbsp;</div>\\n';\n row += '<br class=\"clearAll\"/>'\n\n str += row;\n }\n viewDiv.innerHTML = str;\n\n str = '';\n viewDiv = hoursNode;\n\n // Do a week's worth of day cols with hours\n for (var i = 0; i < 7; i++) {\n calcDay = cosmo.datetime.Date.add(viewStart, cosmo.datetime.util.dateParts.DAY, i);\n str += '<div class=\"dayDiv\" id=\"dayDiv' + i +\n '\" style=\"left:' + start + 'px; width:' +\n (cosmo.view.cal.canvas.dayUnitWidth-1) +\n 'px;\"';\n str += '>';\n for (var j = 0; j < 24; j++) {\n idstr = i + '-' + j + '00';\n row = '';\n row += '<div id=\"hourDiv' + idstr + '\" class=\"hourDivTop\" style=\"height:' + halfHourHeight + 'px;\">';\n row += '</div>\\n';\n idstr = i + '-' + j + '30';\n row += '<div id=\"hourDiv' + idstr + '\" class=\"hourDivBottom\" style=\"';\n if (j == 11) {\n row += 'height:' + (halfHourHeight-1) +\n 'px; border-width:2px;';\n }\n else {\n row += 'height:' + halfHourHeight + 'px;';\n }\n row += '\">&nbsp;</div>';\n str += row;\n }\n str += '</div>\\n';\n start += cosmo.view.cal.canvas.dayUnitWidth;\n }\n\n viewDiv.innerHTML = str;\n return true;\n }", "function display() {\n for (var i = 0; i < arrs.length; i++) {\n //tao the div va dat ten class\n var div = document.createElement(\"div\");\n div.className = \"product\";\n //tao the img\n var img = document.createElement(\"img\");\n img.src = arrs[i].image;\n //tao the p (mo to san pham)\n var px = document.createElement(\"div\");\n px.className = \"dix\"\n px.innerHTML = arrs[i].price + \" đ\";\n var p = document.createElement(\"p\");\n p.innerHTML = \"<div class='showra'>\" + \"<div class='name'>\" + arrs[i].name + \"</div>\" + \"<br>\" + arrs[i].detail + \"<a class='nutmua' href='#'onclick='add(\" + i + \")'><i class='fa fa-shopping-cart' aria-hidden='true' style='font-size:25px'></i></a>\" + \"</div>\";\n //dua vao lam con\n div.appendChild(img);\n div.appendChild(p);\n div.appendChild(px);\n //gan the div vao lam con body\n document.body.appendChild(div);\n }\n}", "function display() {\n for (var i = 0; i < arrs.length; i++) {\n //tao the div va dat ten class\n var div = document.createElement(\"div\");\n div.className = \"product\";\n //tao the img\n var img = document.createElement(\"img\");\n img.src = arrs[i].image;\n //tao the p (mo to san pham)\n var px = document.createElement(\"div\");\n px.className = \"dix\"\n px.innerHTML = arrs[i].price + \" đ\";\n var p = document.createElement(\"p\");\n p.innerHTML = \"<div class='showra'>\" + \"<div class='name'>\" + arrs[i].name + \"</div>\" + \"<br>\" + arrs[i].detail + \"<a class='nutmua' href='#'onclick='add(\" + i + \")'><i class='fa fa-shopping-cart' aria-hidden='true' style='font-size:25px'></i></a>\" + \"</div>\";\n //dua vao lam con\n div.appendChild(img);\n div.appendChild(p);\n div.appendChild(px);\n //gan the div vao lam con body\n document.body.appendChild(div);\n }\n}", "function PaintSequence() {\n if (idCurrentBloc != undefined) {\n var nom, item, topMargin;\n topMargin = 60; //initial value of topMargin for the first box. This value will increment +50px for each box of the jsplumb.\n idsInside = [];\n if (o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].BlocsReferences) {\n for (var i = 0; i < o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].BlocsReferences.int.length; i++) {\n idsInside.push(o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].BlocsReferences.int[i] + \"-B\");\n }\n }\n if (o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].PointsReferences) {\n for (var i = 0; i < o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].PointsReferences.int.length; i++) {\n idsInside.push(o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].PointsReferences.int[i] + \"-P\");\n }\n }\n\n document.getElementById(\"diagramcontainer\").innerHTML = \"\";\n document.getElementById(\"diagramcontainer\").innerHTML += \"<div id='item9998' class='item' onclick='GetItemGUIPositionMouseUp(this.id)' style='top:10px; background: #ffffff; color: #242629; width: 80px;margin-left:auto;margin-right:auto;'><strong><p id='initcontent'></p></strong></div>\";\n document.getElementById('initcontent').innerHTML = \"Init\";\n var middleX;\n middleX = (document.getElementById(\"diagramcontainer\").offsetWidth / 2) - 100;\n for (var i = 0; i < idsInside.length; i++) {\n arrayidsInside = idsInside[i].split(\"-\");\n id = idsInside[i].split(\"-\", 1);\n item = \"item\" + id;\n nom = \"nom\" + id;\n\n //first compares the idgiven with the ItemGUI id's\n if (o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].SequenceDescriptions.AllItems.ItemGUI) {\n for (var u = 0; u < o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].SequenceDescriptions.AllItems.ItemGUI.length; u++) {\n if (o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].SequenceDescriptions.AllItems.ItemGUI[u].itemId == id) {\n xS = (+o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].SequenceDescriptions.AllItems.ItemGUI[u].x_location) + (+middleX);\n yS = o.BlocAssembly.AllBlocs.Bloc[idCurrentBloc].SequenceDescriptions.AllItems.ItemGUI[u].y_location;\n document.getElementById(\"diagramcontainer\").innerHTML += \"<div id='\" + item + \"' class='item' style='top:\" + yS + \"px; left:\" + xS + \"px;' oncontextmenu='RightClickItem(this.id)' onmouseover='MouseOverItem(this.id, event)' onmouseout='HideDialogBox()' onclick='GetItemGUIPositionMouseUp(this.id)' ondblclick='DblClickElemSequence(this.id)'><strong><p id='\" + nom + \"'></p></strong></div>\";\n\n }\n }\n if (arrayidsInside[1] == \"B\") {\n for (var q = 0; q < o.BlocAssembly.AllBlocs.Bloc.length; q++) {\n if (o.BlocAssembly.AllBlocs.Bloc[q][\"@Id\"] == id) {\n document.getElementById(nom).innerHTML = o.BlocAssembly.AllBlocs.Bloc[q].BlocName;\n document.getElementById(item).style.background = \"#54595f\"; //color bloc in secuence\n document.getElementById(item).style.color = \"#ffffff\";\n\n }\n }\n } else if (arrayidsInside[1] == \"P\") {\n for (var q = 0; q < o.BlocAssembly.AllPoints.ProcessPoint.length; q++) {\n if (o.BlocAssembly.AllPoints.ProcessPoint[q][\"@Id\"] == id) {\n document.getElementById(nom).innerHTML = o.BlocAssembly.AllPoints.ProcessPoint[q].Alias;\n }\n }\n }\n }\n }\n document.getElementById(\"diagramcontainer\").innerHTML += \"<div id='item9999' class='item' onclick='GetItemGUIPositionMouseUp(this.id)' style='top:\" + 500 + \"px; background: #ffffff; color: #242629; width: 80px; margin-left:auto;margin-right:auto;'><strong><p id='fincontent'></p></strong></div>\";\n document.getElementById('fincontent').innerHTML = \"End\";\n PlumbGrafic();\n }\n}", "function generaGrafica(ejercicios)\n{\n\tvar nBarras = Object.keys(ejercicios).length;\n\t//nBarras = 7;\n\tvar wPadre = nBarras*20;\n\tvar wHijo = 100/nBarras;\n\t\n\tvar resultado = \"<div style='width:80%; overflow-x:auto; overflow-y:hidden; margin-left:10%; margin-top:10%; text-align:left;'><div class='grafica' style='width:\"+wPadre+\"%'>\";\n\t\n\t$.each(ejercicios,function(i,ejercicio)\n\t{\n\t\tswitch(ejercicio['ritmo'])\n\t\t{\n\t\t\tcase '1':\n\t\t\t\tresultado += \"<div class='intensidad1' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\tresultado += \"<div class='intensidad2' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '3':\n\t\t\t\tresultado += \"<div class='intensidad3' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '4':\n\t\t\t\tresultado += \"<div class='intensidad4' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '5':\n\t\t\t\tresultado += \"<div class='intensidad5' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak; \n\t\t\tdefault:\n\t\t\t\tresultado += \"algo salio mal\";\n\t\t\tbreak\n\t\t}\n\t});\n\t\n\tresultado += \"</div></div>\";\n\t\t\n\t//resultado = \"<div style='width: 80%; overflow-x: scroll; overflow-y: hidden; margin-left:10%;'><div class='grafica' style='width:\"+wPadre+\"%'><div class='intensidad1' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad2' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad3' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad2' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad4' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad5' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad1' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div></div></div>\";\n\t\n\treturn resultado;\n}", "function showGraph() {\r\n\tvar size = 50;\r\n\tcontent = '<div style=\"display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; width: ' + (size + 10) * arguments.length + 'px; margin: 0 auto\">';\r\n\tfor (var divChild = 0; divChild < arguments.length; divChild++) {\r\n\t\tcontent += '<div style=\"background: ' + getRandomColor() + '; width: 50px; height: ' + arguments[divChild] * size + 'px\"></div>';\r\n\t}\r\n\tcontent += '</div>';\r\n\treturn content;\r\n}", "function carrousel(){\n\t//el objetivo es establecer inline nuestra imagen con la que queremos jugar.\n var i;\n var x = document.getElementsByClassName(\"slide1\");\n for(i=0; i<x.length; i++){\n x[i].style.display = \"none\";\n }\n myIndex1++;\n if ( myIndex1 > x.length){myIndex1=1};\n x[myIndex1-1].style.display = \"inline\";\n\n x = document.getElementsByClassName(\"slide2\");\n for(i=0; i<x.length; i++){\n x[i].style.display = \"none\";\n }\n myIndex2++;\n if ( myIndex2 > x.length){myIndex2=1};\n x[myIndex2-1].style.display = \"inline\";\n\n x = document.getElementsByClassName(\"slide3\");\n for(i=0; i<x.length; i++){\n x[i].style.dispaly = \"none\";\n }\n myIndex3++;\n if ( myIndex3 > x.length){myIndex3=1};\n x[myIndex3-1].style.display = \"inline\";\n}", "function muestraReloj()\n{\n// Compruebo si se puede ejecutar el script en el navegador del usuario\nif (!document.layers && !document.all && !document.getElementById) return;\n// Obtengo la hora actual y la divido en sus partes\nvar num = new Array (\"01\",\"02\",\"03\",\"04\",\"05\",\"06\",\"07\",\"08\",\"09\",\"10\",\"11\",\"12\");\nvar fechacompleta = new Date();\nvar horas = fechacompleta.getHours();\nvar minutos = fechacompleta.getMinutes();\nvar segundos = fechacompleta.getSeconds();\n\nvar day = fechacompleta.getDate();\nvar mes = fechacompleta.getMonth(); \nvar year = fechacompleta.getFullYear();\n\n// Pongo el dia, minutos y segundos con dos digitos\nif (day <= 9) day = \"0\" + day;\nif (horas <= 9) horas = \"0\" + horas;\nif (minutos <= 9) minutos = \"0\" + minutos;\nif (segundos <= 9) segundos = \"0\" + segundos;\n// En la variable 'cadenareloj' puedes cambiar los colores y el tipo de fuente\n//cadenareloj = \"<font size='-1' face='verdana'>\" + horas + \":\" + minutos + \":\" + segundos + \" \" + mt + \"</font>\";\ncadenareloj = \"<i class='fa fa-calendar'></i> \" + day + \"-\" + num[mes] + \"-\" + year + \" \" + horas + \":\" + minutos + \":\" + segundos;\n\n// Escribo el reloj de una manera u otra, segun el navegador del usuario\nif (document.layers) {\n document.layers.spanreloj.document.write(cadenareloj);\n document.layers.spanreloj.document.close();\n}\nelse if (document.all) spanreloj.innerHTML = cadenareloj;\nelse if (document.getElementById) document.getElementById(\"spanreloj\").innerHTML = cadenareloj;\n// Ejecuto la funcion con un intervalo de un segundo\nsetTimeout(\"muestraReloj()\", 1000);\n}", "function mostrafronte1() {\n fronte1.style.display=\"block\";\n fronte1fronte1.replaceChild(fronte1,retrouno);\n //modifica del contenuto della lettera con le descrizioni\n descrizione.style.display=\"block\";\n descrizionedescrizione.replaceChild(descrizione, testo); \n }", "function processBlank(content) { \n var slide = '\\n' \n for(var line of content)\n slide += line+'\\n';\n return slide\n }", "function print_don() {\n // quando il metodo mi deve ritornare qualcosa per prima cosa inizializzo la variabile e in fondo\n // metto il \"return nomevariabile;\"\n let text = \"\";\n\n //let miosaldo = 0;\n\n //let maxver = 0;\n\n\n for (i = 0; i < ar_numeri.length; i++) {\n // In questo modo tutte le linee vengono generate con uno span con un id univoco, quindi possono essere gestiti anche singolarmenti\n text += \"<span id'don\" + i + \"'>\" + ar_numeri[i]+\"</span><br/>\";\n\n }\n\n\n return text;\n}", "function AffichagePatho(end) {\n \n var i,\n RegExpMeridien = new RegExp(document.getElementById(\"filtreMeridien\").value),\n RegExpType = new RegExp(document.getElementById(\"filtrePatho\").value + document.getElementById(\"filtreCarac\").value);\n\n //Masquage des pathologies que l'on ne souhaite pas afficher\n var nb_patho_page = document.getElementById(\"nb_patho_page\").value,\n nb_bas = nb_patho_page * Page_patho - nb_patho_page,\n nb_haut = nb_patho_page * Page_patho - 1,\n\n patho_correspondant = 0;\n for (i = 0; i < end; i += 1) {\n if (!RegExpMeridien.test(document.getElementById(\"patho\" + i).className)\n || !RegExpType.test(document.getElementById(\"patho\" + i).className)) {\n document.getElementById(\"patho\" + i).style.display = \"none\";\n } else if (patho_correspondant < nb_bas) {\n document.getElementById(\"patho\" + i).style.display = \"none\";\n patho_correspondant += 1;\n } else if (patho_correspondant >= nb_bas && patho_correspondant <= nb_haut) {\n document.getElementById(\"patho\" + i).style.display = \"block\";\n patho_correspondant += 1;\n } else {\n document.getElementById(\"patho\" + i).style.display = \"none\";\n patho_correspondant += 1;\n }\n }\n\n //Affichage du placement dans les pages dans le pager du haut\n nb_bas = nb_patho_page * Page_patho - nb_patho_page + 1;\n nb_haut = nb_patho_page * Page_patho;\n document.getElementById(\"CptPatho\").innerHTML = \"Pathologies \" + nb_bas + \"-\" + nb_haut + \" sur \" + (patho_correspondant);\n}", "function renderStart() {\n generateStart();\n }", "function startGame() {\n\n \t$('<div>')\n\n }", "function separator() {\n return \"<div style=\\\"display: block;\\\" class=\\\"vertbar\\\"><span style=\\\"display: block;\\\" class=\\\"g\\\">&nbsp;</span><span style=\\\"display: block;\\\" class=\\\"w\\\">&nbsp;</span></div>\\n\";\n}", "async show() {\n // Anzuzeigenden Seiteninhalt nachladen\n let html = await fetch(\"page-start/page-start.html\");\n let css = await fetch(\"page-start/page-start.css\");\n\n if (html.ok && css.ok) {\n html = await html.text();\n css = await css.text();\n } else {\n console.error(\"Fehler beim Laden des HTML/CSS-Inhalts\");\n return;\n }\n\n // Seite zur Anzeige bringen\n this._pageDom = document.createElement(\"div\");\n this._pageDom.innerHTML = html;\n\n await this._renderReciepts(this._pageDom);\n\n this._app.setPageTitle(\"Startseite\", {isSubPage: true});\n this._app.setPageCss(css);\n this._app.setPageHeader(this._pageDom.querySelector(\"header\"));\n this._app.setPageContent(this._pageDom.querySelector(\"main\"));\n\n this._countDown();\n }", "function naslovi(a){\n for(var i = 1; i <= a; i++){\n document.write(\"<h\" + i + \">\" + \"Ovo je generisani naslov\" + \"</h\" + i + \">\" );\n }\n}", "function mostrarDIVS(){\n\tvar opcioDiv = document.forms[\"addProduction\"][\"tipo\"];\n\tvar divM = document.getElementById(\"divMovie\");\n\tvar divS = document.getElementById(\"divSerie\");\n\tif (opcioDiv.value == \"0\") {\n\t\tdivM.style.display = \"none\";\n\t\tdivS.style.display = \"none\";\n\t}else if(opcioDiv.value == \"Movie\"){\n\t\tdivM.style.display = \"block\";\n\t\tdivS.style.display = \"none\";\n\t}else{\n\t\tdivM.style.display = \"none\";\n\t\tdivS.style.display = \"block\";\n\t}//Fin del if\n}//Fin de mostrarDIVS", "function div(content){ return elem(\"div\", content); }", "function div(content){ return elem(\"div\", content); }", "function naslovi2(a, b){\n for (var i = a; i <= b; i++){\n document.write(\"<h\" + i + \">\" + \"Ovo je generisani naslov\" + \"</h\" + i + \">\" );\n }\n}", "function currentDiv(n) {\n\tshowDivs(slideIndex = n);\n }", "function loadResultDiv() {\n var rcorrctAnsSpan = createHtmlTags(\"span\", \"id\", \"correctAnswer\", \"\");\n var rincorrctAnsSpan = createHtmlTags(\"span\", \"id\", \"inCorrectAnswer\", \"\");\n\n var rcorrectAnsP = createHtmlTags(\"p\", \"class\", \"answerP\", \"Correct Answer: \");\n rcorrectAnsP.append(rcorrctAnsSpan);\n\n var rincorrectAnsP = createHtmlTags(\"p\", \"class\", \"answerP\", \"InCorrect Answer: \");\n rincorrectAnsP.append(rincorrctAnsSpan);\n\n var rstartOverButton = createHtmlTags(\"button\", \"id\", \"reStartGame\", \"START OVER\");\n var rStartOverDiv = createHtmlTags(\"div\", \"id\", \"startOver\", inCorrectAnswers);\n rStartOverDiv.append(rstartOverButton);\n rcorrctAnsSpan.innerHTML = correctAnswers;\n rincorrctAnsSpan.innerHTML = inCorrectAnswers;\n\n document.getElementById(\"resultDiv\").style.display = \"block\";\n answerClicked = \"true\";\n\n var rDiv = document.getElementById(\"resultDiv\");\n var rH2 = document.createElement(\"h2\");\n rH2.setAttribute(\"class\", \"allDone\");\n rH2.innerHTML = \"All Done!!\";\n $(\"#resultDiv\").empty();\n rDiv.append(rH2);\n rDiv.append(rcorrectAnsP);\n rDiv.append(rincorrectAnsP);\n\n rDiv.append(rStartOverDiv);\n}", "function ordenar() {\n //Muestra el gráfico de cargar\n var cargando = '<span><img src=\"images/loader.gif\" id=\"cargando\" /></span>';\n\n $(\"#contenedor\").html(cargando);\n }", "function showAtStart() \n\t{\n\t\trandArray =randomArraySimple(100,100);\n\t\tdomGenerate();//Shuffle the DOM generate divs after each timeout\n\t\thideDivs(); //hide them all before we show the next one;\n\t\t\n\t\t\t//Bonnie Images Showing at Start\n\t\t\t var arr = randomArraySimple(numberOfBonniesShowing, totalBoardTenPointers); //divIds.length\n\t\t\t\t\n\t\t\tfor (var i=0; i< numberOfBonniesShowing; i++) \n\t\t\t{\n\t\t\t document.getElementById(divIds[arr[i]]).style.visibility = 'visible';\n\t\t\t}\n\t\t\t//Hundred Pointers showing at the start\n\t\t\t var arr2 = randomArrayAdvanced(totalBoardHunderdPointers, totalBoardTenPointers, totalBoardHunderdPointers + totalBoardTenPointers ) //divIds.length\n\t\t\t\t\n\t\t\tfor (var i=0; i< numberOfHundredPointersShowing; i++) \n\t\t\t{\n\t\t\t document.getElementById(divIds[arr2[i]]).style.visibility = 'visible';\n\t\t\t}\n\t\t\t//Devils showing at the start\n\t\t\tvar arr3 = randomArrayAdvanced(totalNumberOfDivs - totalBoardTenPointers -totalBoardHunderdPointers, totalBoardHunderdPointers+totalBoardTenPointers, totalNumberOfDivs ) //divIds.length\n\t\t\t\t\n\t\t\tfor (var i=0; i< numberOfDevilsShowing; i++) \n\t\t\t{\n\t\t\t document.getElementById(divIds[arr3[i]]).style.visibility = 'visible';\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t setTimeout(showAtStart,timeout); //set a delay before showing the next div\n\t\t \n\t//if (numberOfDevilsShowing < totalNumberOfDivs - totalBoardTenPointers - totalBoardHunderdPointers) {numberOfDevilsShowing +=5 \n\t//}\n\t}", "function d(b,c,d){\n// where the DOM nodes will eventually end up\nvar f,g,j=T(),m=c?a(\"<div/>\"):j,n=e(b);\n// calculate the desired `left` and `width` properties on each segment object\n// build the HTML string. relies on `left` property\n// render the HTML. innerHTML is considerably faster than jQuery's .html()\n// retrieve the individual elements\n// if we were appending, and thus using a temporary container,\n// re-attach elements to the real container.\n// assigns each element to `segment.event`, after filtering them through user callbacks\n// Calculate the left and right padding+margin for each element.\n// We need this for setting each element's desired outer width, because of the W3C box model.\n// It's important we do this in a separate pass from acually setting the width on the DOM elements\n// because alternating reading/writing dimensions causes reflow for every iteration.\n// Set the width of each element\n// Grab each element's outerHeight (setVerticals uses this).\n// To get an accurate reading, it's important to have each element's width explicitly set already.\n// Set the top coordinate on each element (requires segment.outerHeight)\nreturn h(n),f=i(n),m[0].innerHTML=f,g=m.children(),c&&j.append(g),k(n,g),xa(n,function(a,b){a.hsides=t(b,!0)}),xa(n,function(a,b){b.width(Math.max(0,a.outerWidth-a.hsides))}),xa(n,function(a,b){a.outerHeight=b.outerHeight(!0)}),l(n,d),n}", "function first() {\r\n $(\".area-2\").append(` <p class=\"computer\" > ${conversation[exchangeCounter].computerQuestion} </p> <br> `);\r\n $(\".area-2\").append(` <p class=\"user\" > ${conversation[exchangeCounter].userAnswer} </p> <br> `);\r\n appendLoader();\r\n scroll();\r\n second();\r\n }", "function startHtml() {\n let start = $('.start-container');\n start.html(`\n <section role=\"region\" class=\"theBar\">\n <section class=\"startQuiz box\">\n <h1>How well do you know The Gang?</h1>\n <div class=\"sizeImage\">\n <img src=\"https://upload.wikimedia.org/wikipedia/commons/c/c6/IASIPTC.svg\" alt=\"It's always sunny in philadelphia banner\" class=\"images\">\n </div> \n <div id=\"sizeImage\">\n <button type=\"button\" id= \"start-button\" class=\"startButton button\">Start</button>\n </div>\n </section>\n </section>`)\n}", "function startFunction() {\n home.style.display = \"none\";\n statements.style.display = \"block\";\n //Zet de eerste vraag klaar en begint bij 0 zodat hij de aller eerste vraag pakt.\n // Hier pak ik de titel en de beschrijving\n title.innerHTML = subjects[0].title;\n description.innerHTML = subjects[0].statement;\n}", "async function visualizacaoRecursiva(div_comentario,respostas){\n if(respostas.length>0){\n respostas.forEach(newComentario => {\n let div_reposta = criaComentario(newComentario);\n visualizacaoRecursiva(div_reposta,newComentario.resposta);\n div_comentario.caixa.appendChild(div_reposta.caixa);\n });\n }\n return div_comentario;\n}", "function mostrarResultado() {\r\n resultado=\"\";\r\n \r\n if (totalEncuestas == 1) {\r\n resultado+=\"<h3>Has realizado \"+totalEncuestas+\" vez esta encuesta.</h3>\";\r\n }else{\r\n if (totalEncuestas >= 2) {\r\n resultado+=\"<h3>Has realizado \"+totalEncuestas+\" veces esta encuesta.</h3>\";\r\n }\r\n if(totalEncuestas > 3){\r\n resultado+=\"<h3>Ha superado la cantidad máxima de 3 intentos.</h3>\";\r\n\r\n }\r\n }\r\n\r\n for(var i=1;i<=totalPreguntas;i++) { \r\n resultado+=\"<div>Puntaje en pregunta \"+i+\" : \"+resultadoEncuesta[\"p\"+i+\"-alt\"][0]+\"</div>\";\r\n \r\n }\r\n resultado+=\"<div>Puntaje total obtenido: \"+resultadoEncuesta+[i][0]+ \"</div>\";\r\n document.getElementById(\"resultado\").innerHTML=resultado;\r\n}", "function loading() {\n loopItem += 1;\n if (loopItem == 3) {\n loopItem = 0;\n }\n var container = document.createElement(\"span\");\n var text = document.createTextNode(\"Loading\" + dots[loopItem]);\n container.appendChild(text);\n container.style.color = \"blue\";\n var title = document.createElement(\"HEADER\");\n var y = document.createElement(\"H2\");\n y.appendChild(container);\n title.appendChild(y);\n document.getElementById(\"OUTPUT\").innerHTML = \"\";\n document.getElementById(\"OUTPUT\").appendChild(title);\n // document.getElementById(\"OUTPUT\").innerHTML = \"<span style='color: blue; font-weight: bolder;'>Loading\" + dots[loopItem] + \"</span>\";\n\n}", "function mostrar_contratos_en_vigor(){\n url1 = '..\\\\negocio\\\\contratos-en-vigor.php';\n url2 = '..\\\\negocio\\\\anuncios-vinculados.php';\n url3 = '..\\\\negocio\\\\tipo-inmueble.php';\n adjunto1 = {'id_usuario': id_usuario,\n 'tipo_usuario': tipo_usuario};\n $.post(url1, adjunto1)\n .done(function(respuesta1){\n var contratos_en_vigor = $.parseJSON(respuesta1);\n if(contratos_en_vigor.length == 0){\n return;\n }\n if(num_contratos_vigentes == 0){\n num_contratos_vigentes = contratos_en_vigor.length;\n var cont = 0;\n } else {\n var cont = num_contratos_vigentes;\n num_contratos_vigentes += 1;\n }\n var html1 = '';\n var html2 = '';\n for (var i = cont; i < contratos_en_vigor.length; i++) {\n //-------------------------------------------------------------\n html1 += '<div id=\"contratos_vigor'+(i+1)+'\"'\n +'class=\"w3-col w3-small w3-text-inmobshop w3-border w3-border-red\"'\n +'style=\"width: 100%;margin: 0;padding-left: 30px;\">'\n +'<div id=\"salida_nombre_contrato'+(i+1)+'\" class=\"w3-col w3-panel w3-border w3-border-red\"'\n +'style=\"width: 50%;margin: 0;\">'\n +'</div>'\n +'<div class=\"w3-col w3-panel w3-border w3-border-red\"'\n +'style=\"width: 25%;margin: 0;text-align: right;\">'\n +'<b>Fecha</b>'\n +'</div>'\n +'<div id=\"salida_fecha_contrato'+(i+1)+'\"'\n +'class=\"w3-col w3-panel w3-border w3-border-red\"'\n +'style=\"width: 25%;margin: 0;\">'\n +'</div>'\n +'</div>'\n +'<div id=\"salida_anuncios_vinculados'+(i+1)+'\" '\n +'class=\"w3-col w3-small w3-text-inmobshop w3-border w3-border-green\"'\n +'style=\"width: 100%;margin: 0;\">'\n +'</div>';\n var p_contratos = $('#p_contratos');//redefinida\n var salida_anuncios_vinculados = $('#salida_anuncios_vinculados'+i);\n if(i == 0){\n p_contratos.after(html1);\n html1 = '';\n }else {\n salida_anuncios_vinculados.after(html1);\n html1 = '';\n }\n //-------------------------------------------------------------\n var s_nombre_contrato = contratos_en_vigor[i].nombre_servicio;\n var salida_nombre_contrato = $('#salida_nombre_contrato'+(i+1));//redefinida\n salida_nombre_contrato.html('<b>C'+(i+1)+'. ' + s_nombre_contrato +'</b>');\n var s_fecha = contratos_en_vigor[i].fecha_contrato;\n var salida_fecha_contrato = $('#salida_fecha_contrato'+(i+1));//redefinida\n salida_fecha_contrato.html(s_fecha);\n adjunto2 = {'id_contrato': contratos_en_vigor[i].id_contrato,\n 'id_usuario': id_usuario,\n 'tipo_usuario': tipo_usuario};\n $.post(url2, adjunto2)//for recorre anuncios\n .done(function(respuesta2){\n var anuncios_vinculados = $.parseJSON(respuesta2);\n if(anuncios_vinculados != 'No tiene anuncios vinculados al contrato.'){\n html2 += '<table class=\"w3-table w3-bordered\">'\n +'<tr>'\n +'<th>Id</th>'\n +'<th>Contrato vinculado</th>'\n +'<th>Localización</th>'\n +'<th>Tipo operación</th>'\n +'<th>Tipo inmueble</th>'\n +'<th>Precio €</th>'\n +'</tr>';\n for (var j = 0; j < anuncios_vinculados.length; j++) {\n var s_id = anuncios_vinculados[j].id_anuncio;\n var s_contrato_vinculado = 'C'+(i+1)+'. ' + s_nombre_contrato;\n var via = anuncios_vinculados[j].via;\n var num_via = anuncios_vinculados[j].numero_via;\n var cod_postal = anuncios_vinculados[j].cod_postal;\n var localidad = anuncios_vinculados[j].localidad;\n var provincia = anuncios_vinculados[j].provincia;\n var s_localizacion = via + ', ' + num_via + ', '\n + cod_postal + ' ' + localidad + ', '\n + provincia;\n var s_tipo_operacion = anuncios_vinculados[j].tipo_operacion;\n var s_precio = anuncios_vinculados[j].precio;\n var s_tiempo = anuncios_vinculados[j].tiempo;\n adjunto3 = {'id_anuncio': s_id};\n $.post(url3, adjunto3)\n .done(function(respuesta3){\n var tipo_inmueble = $.parseJSON(respuesta3);\n var s_tipo_inmueble = tipo_inmueble[0];\n html2+= '<tr><td>'\n + s_id\n +'</td><td>'\n + s_contrato_vinculado\n +'</td><td>'\n + s_localizacion\n +'</td><td>'\n +s_tipo_operacion\n +'</td><td>'\n +s_tipo_inmueble\n +'</td><td>'\n if(s_tiempo){\n html2+=\n + s_precio +'/' + s_tiempo\n +'</tr>';\n }else {\n html2+=\n + s_precio\n +'</tr>';\n }\n if(i == anuncios_vinculados.length - 1){\n html2 += '</table>';\n var salida_anuncios_vinculados = $('#salida_anuncios_vinculados'+(i+1));\n salida_anuncios_vinculados.html(html2);\n }\n\n });\n\n }\n }\n });\n }\n });\n}", "function RenderStartPage() {\n\n counter = 0;\n question_container.style.display = \"none\";\n start_container.style.display = \"block\";\n startPage();\n}", "function do_header_conso_precinct(){\r\n //alert('pg:'+pg+' lctr:'+lctr);\r\n var dtl=\r\n '<div id=\"pg_repo_conso_precinct_'+pg+'\" style=\"width:100%;height:'+pg_height+'px;page-break-after:always;position:relative;font-size:12px;font-weight:bold;padding:10px;margin:0 auto;margin-top:0px;margin-bottom:10px;color:black;border:0px solid violet;background:white;\">'+ \r\n\r\n '<div style=\"width:100%;height:80px;font-size:14px;border:0px solid red;background:none;\">'+\r\n '<div style=\"width:100%;height:20px;text-align:left;font-weight:bold;\">PRECINCTS STATUS GROUP BY BARANGAY - CONSOLIDATED</div>'+\r\n '<div style=\"width:100%;height:20px;text-align:left;\">As of: '+vtime+', '+vdate+'</div>'+ \r\n '<div style=\"width:100%;height:20px;text-align:left;\">'+jformatNumber(tot_votes)+' of '+jformatNumber(tot_regVoters)+' Registered Voters</div>'+\r\n '</div>'+\r\n \r\n '<div style=\"width:100%;height:50px;margin-top:0px;font-size:14px;border:1px solid black;background:none;\">'+\r\n\r\n '<div style=\"float:left;height:100%;width:30%;padding:14px 0 0 0;border:1px solid black;text-align:center;\">BARANGAY NAME</div>'+\r\n\r\n '<div style=\"float:left;height:100%;width:30%;padding:0px;border:0px solid black;\">'+\r\n '<div style=\"height:50%;width:100%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">T O T A L S</div>'+\r\n '<div style=\"height:50%;width:100%;padding:0px;border:0px solid black;text-align:center;\">'+\r\n '<div style=\"float:left;height:100%;width:33%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">VOTERS</div>'+\r\n '<div style=\"float:left;height:100%;width:34%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">VOTES</div>'+\r\n '<div style=\"float:left;height:100%;width:33%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">CLUSTER</div>'+\r\n '</div>'+\r\n '</div>'+\r\n\r\n '<div style=\"float:left;height:100%;width:14%;padding:14px;border:1px solid black;text-align:center;\">PERC</div>'+\r\n\r\n '<div style=\"float:left;height:100%;width:26%;padding:0px;border:0px solid black;\">'+\r\n '<div style=\"height:50%;width:100%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">C L U S T E R</div>'+\r\n '<div style=\"height:50%;width:100%;padding:0px;border:0px solid black;text-align:center;\">'+\r\n '<div style=\"float:left;height:100%;width:30%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">OPEN</div>'+\r\n '<div style=\"float:left;height:100%;width:34%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">CLOSED</div>'+\r\n '<div style=\"float:left;height:100%;width:36%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">STATUS</div>'+\r\n '</div>'+\r\n '</div>'+\r\n\r\n '</div>'+\r\n \r\n '<div style=\"width:100%;height:auto;margin-top:2px;font-size:14px;border:0px solid brown;\">'+dtl_line+'</div>'+\r\n\r\n '<div>';\r\n document.getElementById('main_repo_conso_precinct').innerHTML+=dtl; \r\n }", "function divs(objeto) {\r\n\r\n var newDiv = $(\"<div class='noticia'></div>\")\r\n $(newDiv).html(\"<h3>\" + \" <a href=\" + objeto.url + \" target=_blank>\" + objeto.title + \"</a>\" + \"</h3>\" + \"<br>\" + \"<br>\" + \"<img src=\" + objeto.urlToImage + \">\" + \"<p>\" + objeto.description + \"</p>\" + \"<br>\");\r\n\r\n $(newDiv).append($('<button>').attr(\"class\", \"boton\").text(\"+info\").click(function () {\r\n info(objeto)\r\n }));\r\n\r\n $(\"#container\").append(newDiv)\r\n}", "function showDivs(n) {\n if (n > mySlides.length) {slideIndex = 1}\n if (n < 1) {slideIndex = mySlides.length} ;\n for (i = 0; i < mySlides.length; i++) {\n mySlides[i].style.display = \"none\";\n }//Gère la boucle de défilement des images et cache les divs mySlides\n for (i = 0; i < dots.length; i++) {\n dots[i].className = dots[i].className.replace(\"backgroundWhite\", \"\");\n }//Enlève la classe de colorisation de la puce par défaut\n mySlides[slideIndex-1].style.display = \"block\";\n dots[slideIndex-1].className += \" backgroundWhite\";\n //Colore la puce associée à l'image associée\n}", "function cartasToScreen(numero, figura, posicion, condicional) {\n let listaCartas = document.querySelector(`.${posicion}`);\n if (condicional == 2) {\n listaCartas.innerHTML = \"\";\n document.getElementById(\"prueba\").innerHTML = \"\";\n } else {\n console.log(\"\");\n }\n for (let x = 0; x < numero.length; x++) {\n // Crear div\n let newDivDemoClass = document.createElement(\"div\");\n let subDivFiguraIzquierda = document.createElement(\"div\");\n let subDivFiguraDerecha = document.createElement(\"div\");\n let subDivNumero = document.createElement(\"div\");\n //\n let textForFiguraIzquierda = document.createTextNode(`${figura[x]}`);\n let textForFiguraDerecha = document.createTextNode(`${figura[x]}`);\n let textForNumero = document.createTextNode(`${numero[x]}`);\n let att = document.createAttribute(\"class\");\n let attFiguraIzquierda = document.createAttribute(\"class\");\n let attNumero = document.createAttribute(\"class\");\n let attFiguraDerecha = document.createAttribute(\"class\");\n att.value = `${posicion}`;\n attFiguraIzquierda.value = \"izquierda\";\n attNumero.value = \"numero\";\n attFiguraDerecha.value = \"derecha\";\n // Agregando text a SubDiv\n subDivFiguraIzquierda.appendChild(textForFiguraIzquierda);\n subDivFiguraDerecha.appendChild(textForFiguraDerecha);\n subDivNumero.appendChild(textForNumero);\n\n if (retornoFigura[x] == \"♠\" || retornoFigura[x] == \"♣\") {\n console.log(retornoFigura[x]);\n console.log(subDivFiguraDerecha);\n subDivFiguraDerecha.style = \"color:black\";\n subDivFiguraIzquierda.style = \"color:black\";\n subDivNumero.style = \"color:black\";\n }\n\n //\n listaCartas.appendChild(newDivDemoClass);\n newDivDemoClass.appendChild(subDivFiguraIzquierda);\n newDivDemoClass.appendChild(subDivNumero);\n newDivDemoClass.appendChild(subDivFiguraDerecha);\n listaCartas.setAttributeNode(att);\n //listaCartas.classList.add(\"row\");\n //Agregar div todos\n subDivFiguraIzquierda.setAttributeNode(attFiguraIzquierda);\n subDivNumero.setAttributeNode(attNumero);\n subDivFiguraDerecha.setAttributeNode(attFiguraDerecha);\n }\n prueba.style = `grid-template-columns: repeat(${numero.length}, auto)`;\n //prueba2.style = `grid-template-columns: repeat(${figura.lenght}, auto)`;\n}", "function formattazione(payload1,showCommenti){\n scroll(0,0);//torno in cima alla pagina per visualizzare il problema\n //selezione il div che conterrà il problema\n var divProblema = document.getElementById(\"problema\");\n divProblema.className=\"stripe\";\n divProblema.style.visibility=\"visibile\";\n //titolo del problema\n\t\t\t\tvar idP=document.createElement(\"small\");\n\t\t\t\tidP.setAttribute(\"id\",\"idp\");\n\t\t\t\tdivProblema.appendChild(idP);\n\t\t\t\tidP.innerHTML= payload1.problema.idProblema;\n var titolo = document.createElement(\"h1\");\n titolo.setAttribute(\"id\", \"titolo\");\n divProblema.appendChild(titolo);\n titolo.innerHTML=payload1.problema.titolo;\n //descrizione del problema \n var descrizione = document.createElement(\"p\");\n descrizione.setAttribute(\"id\", \"descrizione\");\n divProblema.appendChild(descrizione);\n if(payload1.problema.anonimo){\n\t\t\t\t\tk=\"<br><i>l'utete ha deciso di effettuare la segnalazione in maniera anonima</i>\"\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tk=\"<br><br><small><i>segnalazione effettuata dall'utente numero: \"+payload1.problema.secretID+\". Che corrisconde all'utente: \"+payload1.utenti.Nome +\" \"+ payload1.utenti.Cognome+\"</i></small>\";\n\t\t\t\t}\n\t\t\t\tif(payload1.problema.dataRisol!== null){\n\t\t\t\t\tk+=\"<br><p> risolto il :\"+payload1.problema.dataRisol+\"</p>\"\n\t\t\t\t}\n descrizione.innerHTML=payload1.problema.descrizione+k; //il valore di k cambio al cambiare della volontà dell'utente di rimanere anonimo o no\n\n //TAG\n var l = payload1.tag.length;\n\t\t\t\tvar tag=\"\";\n\t\t\t\tvar i=0;\n\t\t\t\twhile(l>i){\n\t\t\t\t\ttag+= \" \"+payload1.tag[i];\n\t\t\t\t\ti++;\n }\n descrizione.innerHTML+=\"<br><br><b> TAG : </b> \"+ tag;\n }", "function renderStartQuiz() {\n //console.log('Generating start of quiz');\n $('.intro').html(generateStartPage());\n}", "function render (){\n let contenedor=document.getElementById('root');\n /**participantes.forEach(part=>contenedor.innerHTML+=\"<h2>\"+part+\"</h2>\"); */\n participantes.forEach(part=>contenedor.innerHTML+=\n `<div class='card col-3'>\n <img src='./img/descarga.png' class='card-img-top' alt='aquí debería aparecer la imagen'>\n <div class='card-body'>\n <h5 class='card-title'>${part}</h5>\n <p class='card-text'>Some quick example text to build on the card title and make up the bulk of the card's content.</p>\n <a href='#' class='btn btn-primary'>Go somewhere</a>\n </div>\n </div>`\n);\n}", "function ocultar_mostrar(id){\n\t\t\n\t\tif(id !== 0){\n\t\t\t\t\t\n\t\t\tfor( var i = 1;i < id ; i++ ){\n\t\t\tif(i < id){\n\t\t\t\t\n\t\t\t\t$.ajax({\n\t\t\t\t\ttype: 'GET',\n\t\t\t\t\turl: '/crm-app/api/v1/usuario/listamodulos/' + i,\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar descrip = response.descripcionmodulo;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocument.getElementById(descrip).style.display = 'block';\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t}", "function start(){\r\n\tschdlr.printYear(d);\r\n\t$(\"body\").append(\"<h2 class='printYear' id='\"+schdlr.currentYear+\"'>\"+schdlr.currentYear+\"</h2>\");\r\n}", "function mostrarCalculo(params) {\n var elementos = [];\n elementos[\"Nº de enlaces: \"] = contar(\"a\");\n elementos[\"Nº de imagenes: \"] = contar(\"img\");\n elementos[\"Nº de inputs: \"] = contar(\"input\");\n elementos[\"Nº de botones: \"] = contar(\"button\");\n elementos[\"Nº de checkbox: \"] = contar(\"input[type = checkbox]\");\n elementos[\"Nº de select: \"] = contar(\"select\");\n elementos[\"Nº de label:\"] = contar(\"label\");\n elementos[\"Nº de span: \"] = contar(\"span\");\n for (var e in elementos)\n document.getElementById('elementos').innerHTML += e + elementos[e] + \"</br>\";\n\n}", "function displayCarear() {\n leftbar.empty();\n SubBtnGenerator(carearTopics);\n}", "function inicio(){\n var div = document.createElement('div');\n document.body.appendChild(div);\n telaUm(div);\n \n}", "function dibujarArbol (altura) {\n console.log(altura)\n let Arbol = \"\";\n Arbol += \"<p>\";\n for(let i=0; i<altura; i++) {\n for(let j=0; j<=i; j++) {\n Arbol +=\"*\";\n }\n Arbol += \"</p>\";\n }\n\n\n document.getElementById('Arbol').innerHTML = Arbol;\n}", "function startFunction() {\n displayTest.show();\n next.show();\n $(\"#instructions\").show();\n $(\"#beginTest\").hide();\n }", "function mostrar(b){\n // resetearProg();\n var elem = document.getElementById(b);\n elem.style.display='block';\n\n}", "drawHTML(detail, color, line_width) {\n //detail: 0-100 [%]\n detail = 100 - Math.min(detail, 100);\n\n let html_data = '<div style=\"position:absolute\" class=\"vector\">';\n //*init_height/height\n\n let len = 0;\n while (len < this.length) {\n let x = this.x + this.cos() * len;\n let y = this.y + this.sin() * len;\n\n html_data += '<span style=\"position: absolute;top: ' + y + 'px;left:' + x + 'px;width:' + line_width + 'px;height:' + line_width + 'px;background-color:' + color + ';border-radius:50%;text-align:center\"></span>';\n\n len += (detail / 100);\n }\n html_data += '</div>';\n\n return html_data;\n }", "function cls() {//programiundulás\n\tdiv_output='';\n\ttext_output='';\n\t}", "function contadorCarrito()\n{\ncontador = carrito.length;\n$(\"#contador\").text(``);\n$(\"#contador\").text(`${contador}`);\n}", "function myStory(text, numDiv){\n $('<p>'+text+'</p>').appendTo(numDiv);\n }" ]
[ "0.6120295", "0.5963741", "0.5862363", "0.5861383", "0.5830938", "0.5813858", "0.58057344", "0.5784806", "0.57847667", "0.57563806", "0.5690682", "0.5689795", "0.56868", "0.5672368", "0.5640133", "0.56222546", "0.5621443", "0.5618863", "0.5616946", "0.5613145", "0.56024504", "0.5601809", "0.55928195", "0.55888397", "0.5585723", "0.55786943", "0.5575472", "0.5561858", "0.5561722", "0.5559654", "0.5548433", "0.55392224", "0.5532696", "0.5521192", "0.5521133", "0.5505938", "0.55006593", "0.54997814", "0.54986316", "0.5498544", "0.5495342", "0.5486743", "0.548302", "0.5479982", "0.5476342", "0.5474196", "0.5465232", "0.54572225", "0.54482174", "0.54403055", "0.54403055", "0.54327583", "0.5431974", "0.54314244", "0.54302436", "0.5424078", "0.5415455", "0.54043865", "0.5397562", "0.53963614", "0.53940123", "0.538875", "0.53851974", "0.53850394", "0.5379718", "0.53773975", "0.537639", "0.537639", "0.5373012", "0.53723675", "0.536544", "0.5363615", "0.534355", "0.5340062", "0.53391397", "0.5337023", "0.53333086", "0.53308827", "0.53277", "0.532314", "0.53227186", "0.5321168", "0.531899", "0.53171813", "0.53155166", "0.531548", "0.531472", "0.5310893", "0.5308092", "0.53076947", "0.53013706", "0.5297142", "0.529173", "0.5284519", "0.5282236", "0.5279309", "0.52747834", "0.52735263", "0.5271041", "0.5269351", "0.526758" ]
0.0
-1
end: mostrar i ocultar divs
function disabledChecbox(){ var element = document.getElementById('noticia'); var element2 = document.getElementById('seccions'); if(element.checked){ element2.style.display='none'; return false; }else{ element2.style.display='block'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mostrarDiv(idmuestra,idoculta){\n\tvar ident=\"#\"+idmuestra;\n\tvar identOculta=\"#\"+idoculta;\n\t$(identOculta).hide();\n\t$(ident).show();\r\n}", "function displayDOM(){\r\n\t\tvar str = '';\r\n\t\tcontainer.getChildren().each(function(item){\r\n\t\t\tstr += '<div style=\"' + item.style.cssText + '\">' + item.get('text') + '</div>\\n';\r\n\t\t});\r\n\t\tdocument.id('output').set('text', str);\r\n\t}", "function crearDivContenedor(indice) {\n var c = $(\"#contenedorPadre\");\n var ej = ejercicios[indice];\n c.append(\"<div class='contenedor'></div>\");\n var cont = c.children().last();\n // cont.append(\"<div class='fijo'>\" + ej.antes + \"</div>\");\n crearAppend(cont,\"fijo\",ej.antes);\n var ordenDivs = [];\n //Hasta ej.opciones.length -1 porque el ultimo elemento no lo sorteo, lo asigno directo\n while (ordenDivs.length < (ej.opciones.length - 1)) {\n var indOpTentativo = Math.floor(Math.random() / (1 / ej.opciones.length));\n if (ordenDivs.indexOf(indOpTentativo) == -1) {\n ordenDivs.push(indOpTentativo);\n // cont.append(\"<div class='opcion'>\" + ej.opciones[indOpTentativo].valor + \"</div>\");\n crearAppend(cont, \"opcion\", ej.opciones[indOpTentativo].valor);\n }\n }\n //Asignacion del elemento restante. Se puede utilizar el mismo array ordenDivs\n for (var indice = 0; indice <= ordenDivs.length; indice++) {\n if (ordenDivs.indexOf(indice) == -1) {\n crearAppend(cont, \"opcion\", ej.opciones[indice].valor);\n// cont.append(\"<div class='opcion'>\" + ej.opciones[indice].valor + \"</div>\");\n break;\n }\n }\n //cont.append(\"<div class='fijo'>\" + ej.despues + \"</div>\");\n crearAppend(cont, \"fijo\", ej.despues);\n}", "function MostrarCosas(DID) {\n $(DID).css(\"display\", \"block\");\n }", "function esconderDivCadastro(obj){\r\n document.getElementById('conteudo').style.display=\"hidden\";\r\n switch(obj.id){\r\n case 'div':\r\n document.getElementById('conteudo').style.display=\"block\";\r\n document.getElementById('div1').style.display=\"hidden\";\r\n break;\r\n case 'sair':\r\n document.getElementById('conteudo').style.display=\"hidden\";\r\n document.getElementById('div1').style.display=\"block\";\r\n break;\r\n }\r\n }", "function mostrarCurso(curso) {\n const hijo = document.createElement(\"div\")\n hijo.classList.add(\"card\")\n hijo.innerHTML = `\n <div class=\"img-container s-ratio-16-9 s-radius-tr s-radius-tl\">\n <img src=\"${curso.getPoster()}\" alt = \"${curso.getNombre()}\"/>\n </div>\n <div class=\"card__data s-border s-radius-br s-radius-bl s-pxy-2\"> \n <h3 class=\"t5 s-mb-2 s-center\" >${curso.getNombre()}</h3>\n <div class=\"s-center\">\n <span class=\"small\"># de clases: ${curso.getClases()}</span>\n </div>\n </div>\n `\n elem.appendChild(hijo) \n}", "function mostrarDIVS(){\n\tvar opcioDiv = document.forms[\"addProduction\"][\"tipo\"];\n\tvar divM = document.getElementById(\"divMovie\");\n\tvar divS = document.getElementById(\"divSerie\");\n\tif (opcioDiv.value == \"0\") {\n\t\tdivM.style.display = \"none\";\n\t\tdivS.style.display = \"none\";\n\t}else if(opcioDiv.value == \"Movie\"){\n\t\tdivM.style.display = \"block\";\n\t\tdivS.style.display = \"none\";\n\t}else{\n\t\tdivM.style.display = \"none\";\n\t\tdivS.style.display = \"block\";\n\t}//Fin del if\n}//Fin de mostrarDIVS", "function show(str){\n //se str==1 (cioè gruppo proteine allora: \n if(str==1){\n //se gli alimenti sono visibili allora metti tutti i gruppi invisibili\n if(coll_proteine.css(\"display\")==\"flex\"){\n coll_carboidrati.css(\"display\",\"none\");\n coll_proteine.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n //altrimenti (quindi nel caso in cui il gruppo di aliemnti delle proteine non era visibilie)\n //lo metti visibile e metti tutti gli altri a non visibili\n else{\n coll_proteine.css(\"display\",\"flex\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n }\n //stesso ragionamento di sopra ma riguardo agli alimenti del gruppo CARBOIDRATI\n if(str==2){\n if(coll_carboidrati.css(\"display\")==\"flex\"){\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n else{\n coll_carboidrati.css(\"display\",\"flex\");\n coll_proteine.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n }\n if(str==3){\n if(coll_grassi.css(\"display\")==\"flex\"){\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n else{\n coll_grassi.css(\"display\",\"flex\");\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n } \n if(str==4){\n if(coll_calorie.css(\"display\")==\"flex\"){\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n coll_calorie.css(\"display\",\"none\");\n }\n else{\n coll_calorie.css(\"display\",\"flex\");\n coll_proteine.css(\"display\",\"none\");\n coll_carboidrati.css(\"display\",\"none\");\n coll_grassi.css(\"display\",\"none\");\n }\n } \n}", "function showDivs()\n{ \n //alert(\"showDivs()\");\n\tvar divisionNo=\"\"; \n myDocumentElements=document.getElementsByTagName(\"div\");\n for (i=0;i<myDocumentElements.length;i++)\n {\n divisionNo = \"\" + myDocumentElements[i].id;\n if(divisionNo.indexOf(\"__hide_division_\")>=0)\n { \n showDiv(divisionNo.substring(16),'/samigo-app');\n \n }\n } \n }", "function divs(objeto) {\r\n\r\n var newDiv = $(\"<div class='noticia'></div>\")\r\n $(newDiv).html(\"<h3>\" + \" <a href=\" + objeto.url + \" target=_blank>\" + objeto.title + \"</a>\" + \"</h3>\" + \"<br>\" + \"<br>\" + \"<img src=\" + objeto.urlToImage + \">\" + \"<p>\" + objeto.description + \"</p>\" + \"<br>\");\r\n\r\n $(newDiv).append($('<button>').attr(\"class\", \"boton\").text(\"+info\").click(function () {\r\n info(objeto)\r\n }));\r\n\r\n $(\"#container\").append(newDiv)\r\n}", "function MostrarContadores() {\n\tvar div = document.getElementById(\"mostrarcontador\");\n\tdiv.innerHTML = \"\";\n\n\tvar TitleTotalArticles = document.createElement(\"h4\");\n\tvar TitlePriceWithoutIVA = document.createElement(\"h4\");\n\tvar TitleTotalPrice = document.createElement(\"h4\");\n\n\tvar cont1 = 0;\n\tvar cont2 = 0;\n\tvar TotalArticulos = 0;\n\tvar Totalprecio = 0;\n\tvar PrecioSinIva = 0;\n\n\t//Con esto mostramos el total de articulos en nuestro carrito.\n\tfor (x of carritocompra.cantidades) {\n\t\tx = parseInt(x);\n\t\tTotalArticulos += x;\n\t}\n\n\tcarritocompra.items.forEach(element => {\n\t\telement.precio = parseInt(element.precio);\n\t\tTotalprecio += (element.precio * carritocompra.cantidades[cont2]);\n\t\tcont2++;\n\t});\n\n\t// Esta parte del codigo es para sacar los precios sin iva\n\tcarritocompra.items.forEach(element => {\n\t\telement.precio = parseInt(element.precio);\n\t\telement.iva = parseInt(element.iva);\n\t\tPrecioSinIva += (element.precio * carritocompra.cantidades[cont1]) - (((element.precio * element.iva) / 100) * carritocompra.cantidades[cont1]);\n\t\tcont1++;\n\t});\n\n\tTitleTotalArticles.appendChild(document.createTextNode(\"Artículos en tu carrito: \" + TotalArticulos));\n\tTitlePriceWithoutIVA.appendChild(document.createTextNode(\"Precio sin IVA: \" + PrecioSinIva + \"€\"));\n\tTitleTotalPrice.appendChild(document.createTextNode(\"Precio total a pagar: \" + Totalprecio + \"€\"));\n\n\tdiv.appendChild(TitleTotalArticles);\n\tdiv.appendChild(TitlePriceWithoutIVA);\n\tdiv.appendChild(TitleTotalPrice);\n}", "function ocultarDiv(obj){\r\n document.getElementById('continuar').style.display=\"none\";\r\n switch(obj.id){\r\n case 'div1':\r\n document.getElementById('continuar').style.display=\"block\";\r\n document.getElementById('div1').style.display=\"none\";\r\n break;\r\n case 'sair':\r\n document.getElementById('continuar').style.display=\"none\";\r\n document.getElementById('div1').style.display=\"block\";\r\n break;\r\n }\r\n }", "function printProperlyIndex (){\n estructurProperly = \"\"\n for (propiedades in carrito[0]){\n estructurProperly += '<div id=\"indexItem-'+ propiedades +'\" class=\"index-item\">' + propiedades.toUpperCase() + '</div>';\n }\n estructurProperly += '<div id=\"indexItem-eliminar\" class=\"index-item\"></div>';\n document.getElementById(\"chopping-properly\").innerHTML = estructurProperly;\n}", "function mostrarDevoluciones() {\n elementos.mensajePanel.addClass('hide');\n elementos.devolucionesTabla.removeClass('hide');\n\n NumberHelper.mascaraMoneda('.mascaraMoneda');\n }", "function criarElementosNaTela() {\n $(\".inicio\").hide()\n $(\".fundo-jogo\").append(\"<div class='jogador animacao-jogador'</div>\")\n $(\".fundo-jogo\").append(\"<div class='aliado animacao-aliado'</div>\")\n $(\".fundo-jogo\").append(\"<div class='helicoptero-inimigo animacao-helicoptero-inimigo'</div>\")\n $(\".fundo-jogo\").append(\"<div class='caminhao'</div>\")\n $(\".fundo-jogo\").append(\"<div class='placar'</div>\")\n $(\".fundo-jogo\").append(\"<div class='energia'</div>\")\n}", "function listaGalleriesAux() {\n $(\".foto\").remove();\n $(\".marginBottom\").remove();\n $(\".buttonRemove\").remove();\n $('#muro').append(\"<div class=\\\"marginTop foto\\\">\");\n var j;\n for (j = 0; j < listaGalleria.length; j++) {\n var html = getHtmlListaGalerias(listaGalleria[j].id, listaGalleria[j].title, j);\n\n $('#muro').append(html);\n }\n $('#muro').append(\"</div>\");\n}", "function showResultDiv (node) {\n node.style.display = \"inline\";\n }", "function display() {\n for (var i = 0; i < arrs.length; i++) {\n //tao the div va dat ten class\n var div = document.createElement(\"div\");\n div.className = \"product\";\n //tao the img\n var img = document.createElement(\"img\");\n img.src = arrs[i].image;\n //tao the p (mo to san pham)\n var px = document.createElement(\"div\");\n px.className = \"dix\"\n px.innerHTML = arrs[i].price + \" đ\";\n var p = document.createElement(\"p\");\n p.innerHTML = \"<div class='showra'>\" + \"<div class='name'>\" + arrs[i].name + \"</div>\" + \"<br>\" + arrs[i].detail + \"<a class='nutmua' href='#'onclick='add(\" + i + \")'><i class='fa fa-shopping-cart' aria-hidden='true' style='font-size:25px'></i></a>\" + \"</div>\";\n //dua vao lam con\n div.appendChild(img);\n div.appendChild(p);\n div.appendChild(px);\n //gan the div vao lam con body\n document.body.appendChild(div);\n }\n}", "function display() {\n for (var i = 0; i < arrs.length; i++) {\n //tao the div va dat ten class\n var div = document.createElement(\"div\");\n div.className = \"product\";\n //tao the img\n var img = document.createElement(\"img\");\n img.src = arrs[i].image;\n //tao the p (mo to san pham)\n var px = document.createElement(\"div\");\n px.className = \"dix\"\n px.innerHTML = arrs[i].price + \" đ\";\n var p = document.createElement(\"p\");\n p.innerHTML = \"<div class='showra'>\" + \"<div class='name'>\" + arrs[i].name + \"</div>\" + \"<br>\" + arrs[i].detail + \"<a class='nutmua' href='#'onclick='add(\" + i + \")'><i class='fa fa-shopping-cart' aria-hidden='true' style='font-size:25px'></i></a>\" + \"</div>\";\n //dua vao lam con\n div.appendChild(img);\n div.appendChild(p);\n div.appendChild(px);\n //gan the div vao lam con body\n document.body.appendChild(div);\n }\n}", "async function visualizacaoRecursiva(div_comentario,respostas){\n if(respostas.length>0){\n respostas.forEach(newComentario => {\n let div_reposta = criaComentario(newComentario);\n visualizacaoRecursiva(div_reposta,newComentario.resposta);\n div_comentario.caixa.appendChild(div_reposta.caixa);\n });\n }\n return div_comentario;\n}", "function mostrarMarcadores(){\n\t\t// Intenta insertarlos en la lista derecha, si no existe la crea\n\t\tvar ba = find(\"//div[preceding-sibling::div[@class='div4'] and @id='ba']\", XPFirst);\n\t\tif (!ba){\n\t\t\tba = document.createElement(\"DIV\");\n\t\t\tba.setAttribute(\"style\", \"position:absolute; z-index:5; border: 0px solid #000000; left: 700px; top: 100px;\");\n\t\t\tba.setAttribute(\"id\", \"ba\");\n\t\t\tinsertAfter(find(\"//div[@class='div4']\", XPFirst), ba);\n\t\t}\n\t\tvar div = document.createElement(\"DIV\");\n\t\tvar titulo = elem(\"B\", T('MARCADORES') + \":\");\n\t\tvar enlace = elem(\"A\", T('ANYADIR'));\n\t\tvar tabla = document.createElement(\"TABLE\");\n\t\ttabla.setAttribute(\"class\", \"f10\");\n\t\tdiv.setAttribute(\"id\", \"marcadores\");\n\t\tenlace.href = \"javascript:void(0);\";\n\t\t// Al anyadir se pide el texto y el enlace, si se cancela o se deja vacio alguno se aborta\n\t\t// Despues de insertar se refresca la lista volviendola a insertar\n\t\tenlace.addEventListener(\"click\", function(){ \n\t\t\t\t\t\t\t\tvar a = prompt(T('ENLACE')); \n\t\t\t\t\t\t\t\tif (a == null || a == '') return;\n\t\t\t\t\t\t\t\tvar b = prompt(T('TEXTO'));\n\t\t\t\t\t\t\t\tif (b == null || b == '') return;\n\t\t\t\t\t\t\t\tagregarElementoCookie(\"marcadores\", [b, a]); \n\t\t\t\t\t\t\t\tremoveElement(find(\"//div[@id='marcadores']\", XPFirst));\n\t\t\t\t\t\t\t\tmostrarMarcadores();\n\t\t\t\t\t\t}, 0);\n\t\ttitulo.setAttribute(\"class\",\"f10\");\n\t\tdiv.appendChild(titulo);\n\t\tdiv.appendChild(document.createTextNode(\" (\")); div.appendChild(enlace); div.appendChild(document.createTextNode(\")\"));\n\t\tdiv.appendChild(tabla);\n\t\tba.appendChild(div);\n\n\t\t// Se obtienen los marcadores y se insertan junto con un enlace para eliminarlos\n\t\tvar marcadores = obtenerValorCookie(\"marcadores\");\n\t\tfor (var i = 0; i < marcadores.length; i++){\n\t\t\tvar tr = document.createElement(\"TR\");\n\t\t\tvar td = elem(\"TD\", \"<span>&#8226;</span>&nbsp; <a href='\" + marcadores[i][1] + \"'>\" + marcadores[i][0] + \"</a>\");\n\t\t\tvar enlace = elem(\"A\", \" <img src='\" + img('a/del.gif') + \"' width='12' height='12' border='0' title='\" + T('ELIMINAR') + \"'>\");\n\t\t\tenlace.href = \"javascript:void(0);\";\n\t\t\tenlace.addEventListener(\"click\", crearEventoEliminarCookie(\"marcadores\", i, mostrarMarcadores), 0);\n\t\t\ttd.appendChild(enlace);\n\t\t\ttr.appendChild(td);\n\t\t\ttabla.appendChild(tr);\n\t\t}\n\t}", "function mostrar_contratos_en_vigor(){\n url1 = '..\\\\negocio\\\\contratos-en-vigor.php';\n url2 = '..\\\\negocio\\\\anuncios-vinculados.php';\n url3 = '..\\\\negocio\\\\tipo-inmueble.php';\n adjunto1 = {'id_usuario': id_usuario,\n 'tipo_usuario': tipo_usuario};\n $.post(url1, adjunto1)\n .done(function(respuesta1){\n var contratos_en_vigor = $.parseJSON(respuesta1);\n if(contratos_en_vigor.length == 0){\n return;\n }\n if(num_contratos_vigentes == 0){\n num_contratos_vigentes = contratos_en_vigor.length;\n var cont = 0;\n } else {\n var cont = num_contratos_vigentes;\n num_contratos_vigentes += 1;\n }\n var html1 = '';\n var html2 = '';\n for (var i = cont; i < contratos_en_vigor.length; i++) {\n //-------------------------------------------------------------\n html1 += '<div id=\"contratos_vigor'+(i+1)+'\"'\n +'class=\"w3-col w3-small w3-text-inmobshop w3-border w3-border-red\"'\n +'style=\"width: 100%;margin: 0;padding-left: 30px;\">'\n +'<div id=\"salida_nombre_contrato'+(i+1)+'\" class=\"w3-col w3-panel w3-border w3-border-red\"'\n +'style=\"width: 50%;margin: 0;\">'\n +'</div>'\n +'<div class=\"w3-col w3-panel w3-border w3-border-red\"'\n +'style=\"width: 25%;margin: 0;text-align: right;\">'\n +'<b>Fecha</b>'\n +'</div>'\n +'<div id=\"salida_fecha_contrato'+(i+1)+'\"'\n +'class=\"w3-col w3-panel w3-border w3-border-red\"'\n +'style=\"width: 25%;margin: 0;\">'\n +'</div>'\n +'</div>'\n +'<div id=\"salida_anuncios_vinculados'+(i+1)+'\" '\n +'class=\"w3-col w3-small w3-text-inmobshop w3-border w3-border-green\"'\n +'style=\"width: 100%;margin: 0;\">'\n +'</div>';\n var p_contratos = $('#p_contratos');//redefinida\n var salida_anuncios_vinculados = $('#salida_anuncios_vinculados'+i);\n if(i == 0){\n p_contratos.after(html1);\n html1 = '';\n }else {\n salida_anuncios_vinculados.after(html1);\n html1 = '';\n }\n //-------------------------------------------------------------\n var s_nombre_contrato = contratos_en_vigor[i].nombre_servicio;\n var salida_nombre_contrato = $('#salida_nombre_contrato'+(i+1));//redefinida\n salida_nombre_contrato.html('<b>C'+(i+1)+'. ' + s_nombre_contrato +'</b>');\n var s_fecha = contratos_en_vigor[i].fecha_contrato;\n var salida_fecha_contrato = $('#salida_fecha_contrato'+(i+1));//redefinida\n salida_fecha_contrato.html(s_fecha);\n adjunto2 = {'id_contrato': contratos_en_vigor[i].id_contrato,\n 'id_usuario': id_usuario,\n 'tipo_usuario': tipo_usuario};\n $.post(url2, adjunto2)//for recorre anuncios\n .done(function(respuesta2){\n var anuncios_vinculados = $.parseJSON(respuesta2);\n if(anuncios_vinculados != 'No tiene anuncios vinculados al contrato.'){\n html2 += '<table class=\"w3-table w3-bordered\">'\n +'<tr>'\n +'<th>Id</th>'\n +'<th>Contrato vinculado</th>'\n +'<th>Localización</th>'\n +'<th>Tipo operación</th>'\n +'<th>Tipo inmueble</th>'\n +'<th>Precio €</th>'\n +'</tr>';\n for (var j = 0; j < anuncios_vinculados.length; j++) {\n var s_id = anuncios_vinculados[j].id_anuncio;\n var s_contrato_vinculado = 'C'+(i+1)+'. ' + s_nombre_contrato;\n var via = anuncios_vinculados[j].via;\n var num_via = anuncios_vinculados[j].numero_via;\n var cod_postal = anuncios_vinculados[j].cod_postal;\n var localidad = anuncios_vinculados[j].localidad;\n var provincia = anuncios_vinculados[j].provincia;\n var s_localizacion = via + ', ' + num_via + ', '\n + cod_postal + ' ' + localidad + ', '\n + provincia;\n var s_tipo_operacion = anuncios_vinculados[j].tipo_operacion;\n var s_precio = anuncios_vinculados[j].precio;\n var s_tiempo = anuncios_vinculados[j].tiempo;\n adjunto3 = {'id_anuncio': s_id};\n $.post(url3, adjunto3)\n .done(function(respuesta3){\n var tipo_inmueble = $.parseJSON(respuesta3);\n var s_tipo_inmueble = tipo_inmueble[0];\n html2+= '<tr><td>'\n + s_id\n +'</td><td>'\n + s_contrato_vinculado\n +'</td><td>'\n + s_localizacion\n +'</td><td>'\n +s_tipo_operacion\n +'</td><td>'\n +s_tipo_inmueble\n +'</td><td>'\n if(s_tiempo){\n html2+=\n + s_precio +'/' + s_tiempo\n +'</tr>';\n }else {\n html2+=\n + s_precio\n +'</tr>';\n }\n if(i == anuncios_vinculados.length - 1){\n html2 += '</table>';\n var salida_anuncios_vinculados = $('#salida_anuncios_vinculados'+(i+1));\n salida_anuncios_vinculados.html(html2);\n }\n\n });\n\n }\n }\n });\n }\n });\n}", "function mostrarEstudio(estudio) {\n let image =\n '<img class=\"mx-auto rounded\" src=\"images/estudios/' +\n estudio.foto +\n '\"width=\"100%\">';\n let contenido =\n '<h5 class=\"oswald\">' +\n estudio.nombre +\n \"</h5><h6>\" +\n estudio.entidad +\n \"</h6><p>\" +\n estudio.titulo +\n \" | \" +\n estudio.fecha;\n let claseColumnaFoto = 'class=\"col-lg-3 col-md-4 col-12 wow slideInLeft\"';\n let claseColumnaTexto =\n 'class=\"col-lg-5 col-md-8 col-12 mb-4 wow slideInRight\"';\n let columnaInicioFin = '<div class=\"col-2 col-md-12 col-lg-2\"></div>';\n\n let listaEstudios = $(\"#listaEstudios\");\n\n if (estudio.nombre.length <= 46) {\n contenido += \"<br>\";\n } else {\n contenido += \"&nbsp;&nbsp;\";\n }\n\n if (estudio.link) {\n contenido +=\n '<a href=\"' +\n estudio.link +\n '\" class=\"badge badge-info\" target=\"_blank\">Ver certificado</a>';\n } else {\n contenido += \"<br>\";\n }\n\n listaEstudios.append(columnaInicioFin);\n listaEstudios.append(abrirDiv + claseColumnaFoto + \">\" + image + cerrarDiv);\n listaEstudios.append(\n abrirDiv +\n claseColumnaTexto +\n \">\" +\n abrirCarta +\n 'style=\"height: 100%\">' +\n abrirDiv +\n 'class=\"mt-2 mr-2 ml-2\">' +\n contenido +\n \"</p>\" +\n cerrarDiv +\n cerrarDiv +\n cerrarDiv\n );\n listaEstudios.append(columnaInicioFin);\n}", "function abrirCeros(vari,varj,fini,finj,cori,corj,tablero){\n\t\t\t\tfor(var i = vari; i <= fini; i++){\n\t\t\t for(var j = varj; j <= finj; j++){\n\t\t\t \tvar myid = i+\"\"+j;\n\t\t\t \tvar objDiv = document.getElementById(myid)\n\n\t\t\t\t\t/* Check if the position has been showed. Content as a flag */\n\t\t\t if(objDiv.textContent == \"\"){\n\t\t\t \t\tif(tablero[i][j] == 0){\n\t\t\t \t\t\tif(i == cori && j == corj){\n\t\t\t \t\t\t\tobjDiv.textContent = \"\"\t;\n\t\t\t \t\t\t\tobjDiv.style.backgroundColor = \"green\";\n\t\t\t \t\t\t\t/* Check if the position has been showed. Uses backgroundColor as flag, just to not show bombs, which are img and doesnt have any background color. */\n\t\t\t \t\t\t}else{\n\t\t\t \t\t\t\tif(objDiv.style.backgroundColor != \"green\"){\n\t\t\t \t\t\t\t\tabrirAlrededor(i, j,tablero);\n\t\t\t \t\t\t\t}\n\t\t\t \t\t\t}\n\n\t\t\t\t\t\t\t/* Adds numbered position. Check there is not bomb. */\n\t\t\t \t\t}else{\n\t\t\t \t\t\tif(tablero[i][j] != \"*\" && tablero[i][j] != \"9\"){\n\t\t\t \t\t\t\tdocument.getElementById(myid).innerHTML = \"<p style='margin-top:15px;'>\" + tablero[i][j] + \"</p>\";\n\t\t\t \t\t\t\tif(tablero[i][j] == 1){objDiv.style.backgroundColor = \"yellow\";\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\telse if(tablero[i][j] == 2){objDiv.style.backgroundColor = \"orange\";}\n\t\t\t \t\t\t\telse if(tablero[i][j] > 2){objDiv.style.backgroundColor = \"red\";}\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t }\n\n\n\t\t\t }\n\t\t\t }\n\t\t\t}", "div()\n\t{\n\t\tif (this.rows.length > 0)\n\t\t{\n\t\t\tthis.rows[this.rows.length - 1].div = true;\n\t\t}\n\t}", "function mostrarDiv()\n{\n\t$(\"#divTablas\").css(\"display\",\"block\");\n}", "showResults(resultado, moneda, crypto, textCurrency){\n\n // select first div\n const resultadoAnterior = document.querySelector('#resultado > div');\n\n if(resultadoAnterior){\n resultadoAnterior.remove();\n }\n\n // asi puedes ir accediendo a un objeto en javascript\n const dateCurrency = resultado[crypto][moneda];\n console.log(resultado);\n // Only show 2 decimals\n let price = dateCurrency.PRICE.toFixed(2),\n changeDay = dateCurrency.CHANGEPCTDAY.toFixed(2),\n // Change date \n update = new Date(dateCurrency.LASTUPDATE * 1000).toLocaleDateString('es-MX');\n // build template\n\n let templateHTML = `\n\n <div class=\"card bg-danger\">\n <div class=\"card-body text-light\">\n <img style=\"width:10%\" class=\"align-center\" src=\"https://www.cryptocompare.com${dateCurrency.IMAGEURL}\"> \n <h2 class=\"card-title\">Results:</h2>\n <p>The price of ${dateCurrency.FROMSYMBOL} from currency ${textCurrency} is of: $${price}\n </p>\n <p>Change of last day: % ${changeDay}\n </p>\n <p>The last update: ${update}\n </p>\n </div>\n </div>\n \n `;\n\n // print spinner\n\n this.showHideSpinner('block');\n\n \n setTimeout(() => {\n // print result\n document.querySelector('#resultado').innerHTML = templateHTML;\n \n //hide spinner\n this.showHideSpinner('none');\n }, 2000)\n }", "function ocultaDivCausasAsistencia()\n\t{\n\t\t$(\"#desnoestudioa\").hide();\n\t\t$(\"#masnoestudioa\").val('+');\n\t\t$(\"#desnoestudiob\").hide();\n\t\t$(\"#masnoestudiob\").val('+');\n\t\t$(\"#desnoestudioc\").hide();\n\t\t$(\"#masnoestudioc\").val('+');\n\t\t$(\"#desnoestudiod\").hide();\n\t\t$(\"#masnoestudiod\").val('+');\n\t\t$(\"#desnoestudioe\").hide();\n\t\t$(\"#masnoestudioe\").val('+');\n\t\t$(\"#desnoestudiof\").hide();\n\t\t$(\"#masnoestudiof\").val('+');\n\t\t$(\"#desnoestudiog\").hide();\n\t\t$(\"#masnoestudiog\").val('+');\n\t}", "async showAllMovies() {\r\n\r\n let temp = '';\r\n\r\n for (let i = 0; i < this.allData.results.length; i++) {\r\n temp += `<div class=\"col-lg-4 col-md-6 \">\r\n <div class=\" position-relative\" id=\"movieDiv\">\r\n <img src=\"https://image.tmdb.org/t/p/w500${this.allData.results[i].poster_path}\" alt=\"WW\">\r\n <div class=\"outterInfo justify-content-center align-items-center text-center\"\r\n id=\"layer\">\r\n <div class=\"InnerInfo\">\r\n <h2>${this.allData.results[i].original_title}</h2>\r\n <p>${this.allData.results[i].overview}</p>\r\n <p>rate :'${this.allData.results[i].vote_average}'</p>\r\n <p>${this.allData.results[i].release_date}</p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>`;\r\n }\r\n this.moviesShow.html(temp);\r\n\r\n }", "function Divs(num, n)\n{\n\tid = n;\n\tslideIndex = 1;\n\tshowDivs(slideIndex);\n}", "function ocultar_mostrar(id){\n\t\t\n\t\tif(id !== 0){\n\t\t\t\t\t\n\t\t\tfor( var i = 1;i < id ; i++ ){\n\t\t\tif(i < id){\n\t\t\t\t\n\t\t\t\t$.ajax({\n\t\t\t\t\ttype: 'GET',\n\t\t\t\t\turl: '/crm-app/api/v1/usuario/listamodulos/' + i,\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar descrip = response.descripcionmodulo;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocument.getElementById(descrip).style.display = 'block';\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t}", "function toonDIV(divid) {\n for (let teller = 0; teller < alleDivid.length; teller++) {\n const elemDividtmp = document.getElementById(alleDivid[teller]);\n console.log(alleDivid[teller]);\n elemDividtmp.style.display = \"none\";\n }\n if (divid !== \"none\") {\n const elemDivid = document.getElementById(divid);\n elemDivid.style.display = \"block\";\n }\n\n\n\n}", "function display_empty_block(day_position) {\n //se il primo è domenica appendi 6 vuoti\n if (day_position == 0 ) {\n for (var k = 0; k < 6; k++) {\n $('#calendario').append('<div class=\"day_box\"></div>');\n }\n } else if (2 <= day_position <= 6) {\n for (var j = 0; j < (day_position - 1); j++) {\n $('#calendario').append('<div class=\"day_box\"></div>');\n }\n }\n }", "function botaoMostrarEventosAnteriores() {\n\t$('.botaoEventosAnteriores').css(\"display\", \"block\");\n}", "function div(text) { return '<div>'+text+'</div>'; }", "mostrarResultado(seguro, total){\n const resultado = document.getElementById('resultado');\n let marca;\n switch(seguro.marca){\n case '1': marca = \"Americano\";\n break;\n case '2': marca = \"Asiatico\";\n break;\n case '3': marca = \"Europeo\";\n break;\n }\n\n let div = document.createElement('div');\n div.classList = 'cotizacion';\n \n div.innerHTML=`\n <p class= 'header'>Resumen</p>\n <p>Marca: ${marca}</p>\n <p>Anio: ${seguro.anio}</p>\n <p>Tipo de seguro: ${seguro.tipo}</p>\n <p>Total de la cotizacion: $ ${total}</p>`\n\n const spinner = document.querySelector('#cargando img');\n spinner.style.display = 'block';\n setTimeout(function(){\n spinner.style.display='none';\n resultado.appendChild(div);\n },2000);\n\n}", "function mostrarCurso(curso){\n const hijo = document.createElement(\"div\")\n //hijo.classList.add(\"card\") --> Otra forma de agregar un etiqueta Html\n\nhijo.innerHTML = `\n\n<article class=card>\n <div class=\"img-container s-ratio-16-9 s-radius-tr s-radius-tl\">\n <img src=\"${curso.getPoster()}\" alt=\"${curso.getNombre()}\"/>\n </div>\n <div class=\"card__data s-border s-radius-br s-radius-bl s-pxy-1\">\n <h3 class=\"t3 s-mb-2 s-center\">\n ${curso.getNombre()} \n </h3>\n </div>\n <div class=\"s-border\">\n <span> Números de Clases: ${curso.getCapitulos()}</span>\n </div>\n\n</article>\n`\nelement.appendChild(hijo)\n}", "function div(content){ return elem(\"div\", content); }", "function div(content){ return elem(\"div\", content); }", "function cartasToScreen(numero, figura, posicion, condicional) {\n let listaCartas = document.querySelector(`.${posicion}`);\n if (condicional == 2) {\n listaCartas.innerHTML = \"\";\n document.getElementById(\"prueba\").innerHTML = \"\";\n } else {\n console.log(\"\");\n }\n for (let x = 0; x < numero.length; x++) {\n // Crear div\n let newDivDemoClass = document.createElement(\"div\");\n let subDivFiguraIzquierda = document.createElement(\"div\");\n let subDivFiguraDerecha = document.createElement(\"div\");\n let subDivNumero = document.createElement(\"div\");\n //\n let textForFiguraIzquierda = document.createTextNode(`${figura[x]}`);\n let textForFiguraDerecha = document.createTextNode(`${figura[x]}`);\n let textForNumero = document.createTextNode(`${numero[x]}`);\n let att = document.createAttribute(\"class\");\n let attFiguraIzquierda = document.createAttribute(\"class\");\n let attNumero = document.createAttribute(\"class\");\n let attFiguraDerecha = document.createAttribute(\"class\");\n att.value = `${posicion}`;\n attFiguraIzquierda.value = \"izquierda\";\n attNumero.value = \"numero\";\n attFiguraDerecha.value = \"derecha\";\n // Agregando text a SubDiv\n subDivFiguraIzquierda.appendChild(textForFiguraIzquierda);\n subDivFiguraDerecha.appendChild(textForFiguraDerecha);\n subDivNumero.appendChild(textForNumero);\n\n if (retornoFigura[x] == \"♠\" || retornoFigura[x] == \"♣\") {\n console.log(retornoFigura[x]);\n console.log(subDivFiguraDerecha);\n subDivFiguraDerecha.style = \"color:black\";\n subDivFiguraIzquierda.style = \"color:black\";\n subDivNumero.style = \"color:black\";\n }\n\n //\n listaCartas.appendChild(newDivDemoClass);\n newDivDemoClass.appendChild(subDivFiguraIzquierda);\n newDivDemoClass.appendChild(subDivNumero);\n newDivDemoClass.appendChild(subDivFiguraDerecha);\n listaCartas.setAttributeNode(att);\n //listaCartas.classList.add(\"row\");\n //Agregar div todos\n subDivFiguraIzquierda.setAttributeNode(attFiguraIzquierda);\n subDivNumero.setAttributeNode(attNumero);\n subDivFiguraDerecha.setAttributeNode(attFiguraDerecha);\n }\n prueba.style = `grid-template-columns: repeat(${numero.length}, auto)`;\n //prueba2.style = `grid-template-columns: repeat(${figura.lenght}, auto)`;\n}", "function mostrar() {\n div = document.getElementById('tabla-contenido');\n div.style.display = '';\n }", "function do_header_conso_precinct(){\r\n //alert('pg:'+pg+' lctr:'+lctr);\r\n var dtl=\r\n '<div id=\"pg_repo_conso_precinct_'+pg+'\" style=\"width:100%;height:'+pg_height+'px;page-break-after:always;position:relative;font-size:12px;font-weight:bold;padding:10px;margin:0 auto;margin-top:0px;margin-bottom:10px;color:black;border:0px solid violet;background:white;\">'+ \r\n\r\n '<div style=\"width:100%;height:80px;font-size:14px;border:0px solid red;background:none;\">'+\r\n '<div style=\"width:100%;height:20px;text-align:left;font-weight:bold;\">PRECINCTS STATUS GROUP BY BARANGAY - CONSOLIDATED</div>'+\r\n '<div style=\"width:100%;height:20px;text-align:left;\">As of: '+vtime+', '+vdate+'</div>'+ \r\n '<div style=\"width:100%;height:20px;text-align:left;\">'+jformatNumber(tot_votes)+' of '+jformatNumber(tot_regVoters)+' Registered Voters</div>'+\r\n '</div>'+\r\n \r\n '<div style=\"width:100%;height:50px;margin-top:0px;font-size:14px;border:1px solid black;background:none;\">'+\r\n\r\n '<div style=\"float:left;height:100%;width:30%;padding:14px 0 0 0;border:1px solid black;text-align:center;\">BARANGAY NAME</div>'+\r\n\r\n '<div style=\"float:left;height:100%;width:30%;padding:0px;border:0px solid black;\">'+\r\n '<div style=\"height:50%;width:100%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">T O T A L S</div>'+\r\n '<div style=\"height:50%;width:100%;padding:0px;border:0px solid black;text-align:center;\">'+\r\n '<div style=\"float:left;height:100%;width:33%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">VOTERS</div>'+\r\n '<div style=\"float:left;height:100%;width:34%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">VOTES</div>'+\r\n '<div style=\"float:left;height:100%;width:33%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">CLUSTER</div>'+\r\n '</div>'+\r\n '</div>'+\r\n\r\n '<div style=\"float:left;height:100%;width:14%;padding:14px;border:1px solid black;text-align:center;\">PERC</div>'+\r\n\r\n '<div style=\"float:left;height:100%;width:26%;padding:0px;border:0px solid black;\">'+\r\n '<div style=\"height:50%;width:100%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">C L U S T E R</div>'+\r\n '<div style=\"height:50%;width:100%;padding:0px;border:0px solid black;text-align:center;\">'+\r\n '<div style=\"float:left;height:100%;width:30%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">OPEN</div>'+\r\n '<div style=\"float:left;height:100%;width:34%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">CLOSED</div>'+\r\n '<div style=\"float:left;height:100%;width:36%;padding:3px 0 0 0;border:1px solid black;text-align:center;\">STATUS</div>'+\r\n '</div>'+\r\n '</div>'+\r\n\r\n '</div>'+\r\n \r\n '<div style=\"width:100%;height:auto;margin-top:2px;font-size:14px;border:0px solid brown;\">'+dtl_line+'</div>'+\r\n\r\n '<div>';\r\n document.getElementById('main_repo_conso_precinct').innerHTML+=dtl; \r\n }", "function showResultsDiv(CoinsResult) {\n for (var i = 0; i < CoinsResult.length; i++) {\n var id = (\"#\" + CoinsArr[i] + \"pCoin\");\n if (CoinsResult[i] > 0) {\n // html <h3> includes the number of the counted result.\n var CoinCountContent = \"<h3>\" + CoinsResult[i] + \"</h3>\";\n // replace the content of .CoinCount class\n $((id + \" .CoinCount\")).html(CoinCountContent);\n // show the coin in the result div\n $(id).css(\"display\", \"inline-block\");\n\n } else {\n // hide the coin in the result div\n $(id).css(\"display\", \"none\");\n }\n }\n // show th result div\n $('#Result_Div').show();\n\n}", "function showEmptyDisease() {\n var ref_enfermedad = document.getElementById(\"enfermedad\");\n\n var html = '<img id=\"plantillafondo2\" src=\"assets/img/logo.jpg\" alt=\"Enfermedad no especificada\">' +\n '<div class=\"panel-footer text-muted\" id=\"footerFoto\">Aquí se mostrarán los datos de la enfermedad solicitada</div>';\n\n ref_enfermedad.innerHTML = html;\n\n if ( $(\"#contagiosSexo\").length && $(\"#contagiosEdad\").length ) {\n $(\"#contagiosSexo\").hide();\n $(\"#contagiosEdad\").hide();\n $(\"#tituloDisp\").hide();\n $(\"#disper1\").hide();\n $(\"#disper2\").hide();\n }\n}", "function showCarousel() {\n carouselInner.innerHTML = \"\";\n carouselInner.appendChild(printCarouselPages(1, posts));\n carouselInner.appendChild(printCarouselPages(2, posts));\n carouselInner.appendChild(printCarouselPages(3, posts));\n // carouselInner.innerHTML += \"<div class='after'></div>\";\n}", "function voltarLoja(){\n document.getElementById(\"homeFeed\").innerHTML = '<div class=\"titulo\"><h2>Loja</h2></div><div class=\"principal-cartoes\"><img src=\"img/carregando.gif\" alt=\"carregando\"></div>';\n document.getElementById(\"finalizar\").style.display = \"none\";\n atualizaCarrinho()\n document.getElementById(\"telaCarrinhoCompras\").style.display = \"none\";\n document.getElementById(\"carrinhoCompras\").style.display = \"flex\";\n document.getElementById(\"telaCarrinhoCompras\").innerHTML = \"<div id='voltarLoja' onclick='voltarLoja()'>X</div><div id='finalizar' onclick='finalizarCompra()'>Finalizar</div><h1 id='msgVazio'>Carrinho Vazio</h1>\";\n imprimirProdutos(loja)\n}", "function colocar_dulce(fila,modo=\"aleatorio\",nombre_imagen=0){\r\nvar html_para_agregar=\"\";\r\n if(modo === \"aleatorio\"){\r\n nombre_imagen = numero_entero_al_azar(1,4);\r\n }\r\n html_para_agregar = '<div class=\"candycru fila'+fila+'\"><img src=\"image/'+nombre_imagen+'.png\" alt=\"\"></div>'\r\n return html_para_agregar\r\n}", "function print(div,answers) {\n $(div).append(answers);\n }", "function tu_ShowContent(){ \n if(data.insideOf){\n \t\t\t\t\tif(data.append) jQuery(data.insideOf).append(objContent);\n \t\t\t\t\telse jQuery(data.insideOf).html(objContent);\n var content_height = jQuery(objContent).css(\"height\");\n jQuery(objContent).css(\"height\", \"0px\");\n jQuery(objContent).delay(data.delay).animate({height:content_height}, data.duration, data.ease);\n \t\t\t\t}else if(data.beforeOf){\n jQuery(objContent).insertBefore(jQuery(data.beforeOf));\n var content_height = jQuery(objContent).css(\"height\");\n \t\t\t\t\tjQuery(objContent).css(\"height\", \"0px\");\n \t\t\t\t\tjQuery(objContent).delay(data.delay).animate({height:content_height}, data.duration, data.ease);\n \t\t\t\t}else if(data.afterOf){\n jQuery(objContent).insertAfter(jQuery(data.afterOf));\n var content_height = jQuery(objContent).css(\"height\");\n \t\t\t\t\tjQuery(objContent).css(\"height\", \"0px\");\n \t\t\t\t\tjQuery(objContent).delay(data.delay).animate({height:content_height}, data.duration, data.ease);\n \t\t\t\t}else if(data.prepend){\n \t\t\t\t jQuery(data.prepend).prepend(objContent);\n \t\t\t\t}else{\n jQuery(\"body\").append(objContent);\n \t\t\t\t} \n }", "function showErros(){\n\t$('#boxErro').stop().animate({\n\t\theight: 220\n\t}, 500, 'linear');\n\n\t$('.btClose').on('click', function(){\n\t\t$('#boxErro').stop().animate({\n\t\t\theight: 0\n\t\t}, 200, 'linear');\n\n\t\t$('.containerErro').delay(50).hide();\n\t});\n\n\t$('.btFade').hover(function(){\n\t\t$(this).children('span').stop().fadeTo(200,1);\n\t}, function(){\n\t\t$(this).children('span').stop().fadeTo(200,0);\n\t});\n\n\t$('.boxAtualize').stop().animate({\n\t\tmarginLeft: 0,\n\t\topacity: 1\n\t}, 500, 'easeOutElastic');\n\n\t$('.boxTxtAtualize').stop().delay(220).animate({\n\t\topacity: 1\n\t}, 500, 'linear');\n\n\t$('.btDownload').stop().delay(220).animate({\n\t\tright: 0,\n\t\topacity: 1\n\t}, 500, 'easeInOutBack');\n\n\t$('.btClose').stop().delay(220).animate({\n\t\ttop: 10,\n\t\topacity: 1\n\t}, 500, 'easeInOutBack');\n}", "function addRightDialog(){\n\n var $sec = $('section#secion_dialogs');\n $sec.find('div').remove();\n\n for(var k in allStuffDialog){\n if(allStuffDialog[k][\"image\"] == currentPosition){\n $sec.append('<div id=\\\"dialog'+allStuffDialog[k][\"id\"]+'\\\" title=\\\"'+allStuffDialog[k][\"name\"]+'\\\"> <p>' + allStuffDialog[k][\"content\"] + '</p> </div>');\n }\n }\n\n var dialogId = [];\n var pathId = [];\n for(var k in allStuffDialog){\n if(allStuffDialog[k][\"image\"] == currentPosition) {\n dialogId.push(\"#dialog\"+allStuffDialog[k][\"id\"]);\n pathId.push(\"#path\"+allStuffDialog[k][\"id\"]);\n }\n }\n\n // neccesarry to put each one in individual block as folow , and it should be printed not only \n // excuted as a statments , we need to print directly the below blocks\n // in database and doctrine we print here directly , but with jquery we are not!\n addNDialog(dialogId.length , dialogId , pathId);\n}", "function oq() {\r\n switch (oyinchi.tamon) {\r\n case 1:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"top\" style=\"left: ${oyinchi.x+(oyinchi.w)/2-15}px; top: ${oyinchi.y-8}px;\"></div>`\r\n\r\n break\r\n case 2:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"right\" style=\"left: ${oyinchi.x+(oyinchi.w)-5}px; top: ${oyinchi.y+27}px;\"></div>`\r\n\r\n break\r\n case 3:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"bottom\" style=\"left: ${oyinchi.x+(oyinchi.w)/2-7}px; top: ${oyinchi.y+69}px;\"></div>`\r\n\r\n break\r\n case 4:\r\n maydon.innerHTML += `<div class=\"xujum\" yonalish=\"left\" style=\"left: ${oyinchi.x+(oyinchi.w)/2-50}px; top: ${oyinchi.y+34}px;\"></div>`\r\n\r\n break\r\n }\r\n\r\n oyinchi.el = document.querySelector('.oyinchi');\r\n}", "function restaurarReloj() {\n $horasDom.text('00');\n $minutosDom.text('00');\n $segundosDom.text('00');\n }", "function displayContent(div){\n\tscrollContentPadding()\n\tprebuildSlideMenu()\n\teditPagerLink()\n\tShadowbox.clearCache()//Re-initialize Shadowbox to include any newly loaded images\n\tShadowbox.setup()\n\n\t\tvar imgLoaded = 0\n\t\tvar contentBox = $(activeContainer).find('.'+div)\n\t\tvar imgCount = $('img',contentBox).size()\t\t\n\t\t\n\t\t\n\t\t$('img',contentBox).each(function(index,element){\n\n\t\t\tif(element.complete){\n\n\t\t\t\timgLoaded ++\n\n\t\t\t} else {\n\n\t\t\t\t$(element).bind('load',function(){\n\t\t\t\t\timgLoaded ++\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t})\t\t\t\t\n\n\t\t\t}\n\t\n\t\t})\t\t\n\n\t\tvar scrollBuilder = setInterval(function(){\t\t\t\n\t\t\tif(imgLoaded == imgCount){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$(activePanel).mCustomScrollbar(\"vertical\",400,\"easeOutCirc\",1.05,\"fixed\",\"yes\",\"yes\",20)\t\n\t\t\t\t\n\t\t\t\t//readOut(\"Building slidemenu\" + smId)\n\t\t\t\t//readOut($(activeContainer).css('width'))\t\t\n\t\t\t\tclearInterval(scrollBuilder)\n\t\t\t}\n\t\t},250)\n\n\n\t\t\n\t$(activeContainer).fadeTo(1000,1)\t \n}", "function mostrarResultado() {\r\n resultado=\"\";\r\n \r\n if (totalEncuestas == 1) {\r\n resultado+=\"<h3>Has realizado \"+totalEncuestas+\" vez esta encuesta.</h3>\";\r\n }else{\r\n if (totalEncuestas >= 2) {\r\n resultado+=\"<h3>Has realizado \"+totalEncuestas+\" veces esta encuesta.</h3>\";\r\n }\r\n if(totalEncuestas > 3){\r\n resultado+=\"<h3>Ha superado la cantidad máxima de 3 intentos.</h3>\";\r\n\r\n }\r\n }\r\n\r\n for(var i=1;i<=totalPreguntas;i++) { \r\n resultado+=\"<div>Puntaje en pregunta \"+i+\" : \"+resultadoEncuesta[\"p\"+i+\"-alt\"][0]+\"</div>\";\r\n \r\n }\r\n resultado+=\"<div>Puntaje total obtenido: \"+resultadoEncuesta+[i][0]+ \"</div>\";\r\n document.getElementById(\"resultado\").innerHTML=resultado;\r\n}", "function dadosRecebidos(result) {\n $(\".container1\").html(`<h3>Casos Confirmados</h3> <div><h1>\n ${result.confirmed.value}</h1></div>`)\n\n\n $(\".container2\").html(`<h3>Casos Recuperados</h3> <div><h1>\n ${result.recovered.value}</h1></div>`)\n\n\n $(\".container3\").html(`<h3>Óbitos Confirmados</h3> <div><h1>\n ${result.deaths.value}</h1></div>`)\n}", "function mostrarCurriculum() {\n $(\"#offside\").show();\n $(\"#curriculum\").fadeOut(2000);\n $(\"#curriculum\").css(\"display\", \"grid\");\n $(\"#restaurar\").show();\n $(\"#curriculum\").fadeIn(2000);\n\n}", "displayCards() {\n const div = document.createElement('div');\n div.className = 'container-cards-arrows';\n let HTML = `\n <div class=\"arrow-left\">\n <i class=\"material-icons custom\">arrow_back</i>\n </div>\n `;\n HTML += '<div class=\"container-cards\">'\n this.cards.forEach(item => {\n HTML += `\n <div class=\"single-card\" id=${item.cardinality}>\n <div class=\"image\">\n <img src=\"${item.image}\" />\n </div>\n <div class=\"type\">\n <p>${item.type}</p>\n </div>\n <div class=\"duration\">\n <p>${this.convertDuration(item.duration)}</p>\n </div>\n <h5 class=\"title\">${item.title}</h5>\n </div>\n `;\n });\n HTML += '</div>';\n HTML += `\n <div class=\"arrow-right\">\n <i class=\"material-icons custom\">arrow_forward</i>\n </div>\n `;\n div.innerHTML = HTML;\n\n this.div.appendChild(div);\n }", "function ordenar() {\n //Muestra el gráfico de cargar\n var cargando = '<span><img src=\"images/loader.gif\" id=\"cargando\" /></span>';\n\n $(\"#contenedor\").html(cargando);\n }", "function getOutput() {\n\n document.getElementById(\"div_sort\").innerHTML = print_don();\n \n}", "function renderAllPatrimonios(){\n $('.padraoPatrimonios').show();\n}", "function mostrarCursos() {\r\n\r\n cursos.forEach((curso) => {\r\n cursosDiv.innerHTML += `\r\n <div class=\"cardestilo\">\r\n <img src=\"https://via.placeholder.com/1600x800\" class=\"card-img-top\" alt=\"...\">\r\n <div class=\"card-body\">\r\n \r\n <h2 class=\"card-title\">${curso.nombre}</h2>\r\n <br>\r\n <p class=\"card-text\">Carga Horaria: ${curso.duracion} en ${curso.diasSemanales} días </p>\r\n <br>\r\n <h3>Fechas</h3>\r\n <br>\r\n <div class=\"row \">\r\n <div class=\"col-md-9 col-sm-7 col-xs-9 col-9\">\r\n <p>${curso.fecha1} </p>\r\n </div>\r\n <div class=\"col-md-3 col-sm-5 col-xs-3 col-3\">\r\n <button onclick=\"agregarCurso(${cursos.indexOf(curso)})\" type=\"submit\" class=\"btn btn-light-blue\"><h5>Comprar</h5></button>\r\n </div>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-md-9 col-sm-7 col-xs-9 col-9\">\r\n <p>${curso.fecha2} </p>\r\n </div>\r\n <div class=\"col-md-3 col-sm-5 col-xs-3 col-3\">\r\n <button onclick=\"agregarCurso(${cursos.indexOf(curso)})\" type=\"submit\" class=\"btn btn-light-blue\"><h5>Comprar</h5></button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-9 col-sm-7 col-xs-9 col-9\">\r\n <p>${curso.fecha3} </p>\r\n </div>\r\n <div class=\"col-md-3 col-sm-5 col-xs-3 col-3\">\r\n <button onclick=\"agregarCurso(${cursos.indexOf(curso)})\" type=\"submit\" class=\"btn btn-light-blue\"><h5>Comprar</h5></button>\r\n </div>\r\n </div>\r\n \r\n \r\n\r\n </div>\r\n \r\n <div class=\"card-footer\">\r\n <small ><h3>Precio: U$s: ${curso.costo} </h3></small>\r\n </div>\r\n </div> \r\n </div> \r\n \r\n \r\n `\r\n // console.log(`${cursos.indexOf(curso)}`);\r\n });\r\n}", "function mostrar(elementos){\nfor(i=0; i<elementos.length; i++){\n elementos[i].style.visibility=\"visible\";\n}\n}", "function showResults(responseJson)\r\n{\t\r\n\t$(\"#result\").empty();\r\n\t\r\n\tvar contElement = 0;\r\n\t\r\n\t$.each(responseJson, function(i, element){\r\n\t\tvar locandina = element.locandina;\r\n\t\tvar titolo = element.titolo;\r\n\t\tvar durata = element.durata;\r\n\t\tvar anno = element.anno;\r\n\t\tvar genere = element.genere;\r\n\t\tvar id = element.id_serieTV;\r\n\t\t\r\n\t\t\r\n\t\tvar html = '<div class=\"content col-lg-4 col-md-6 mb-4\">';\r\n\t\thtml += '<div class=\"card h-100\">';\r\n\t\thtml += '<a href=\"ottieniStagioni?id_serie='+id+'\" class=\"imageContent\">';\r\n\t\thtml += '<img id=\"imgCardSerieTV\" class=\"card-img-top\" src=\"images/'+locandina+'\" alt=\"\">';\r\n\t\thtml += '</a>';\r\n\t\thtml += '<div class=\"card-body\">';\r\n\t\thtml += '<h4 id=\"cardTitleSerieTV\" class=\"card-title jumbotron\">';\r\n\t\thtml += '<a class=\"searchTitleHere\" href=\"ottieniStagioni?id_serie='+id+'\">'+titolo+'</a>';\r\n\t\thtml += '</h4>';\r\n\t\thtml += '</div>';\r\n\t\thtml += '<div class=\"card-footer\">';\r\n\t\thtml += '<div class=\"row\">';\r\n\t\thtml += '<div id=\"yearSerieTV\" class=\"col-sm-6\">'+anno+'</div>';\r\n\t\thtml += '<div id=\"genderSerieTV\" class=\"col-sm-6\">'+genere+'</div>';\t\t\r\n\t\thtml += '</div>';\r\n\t\thtml += '</div>';\r\n\t\thtml += '</div>';\r\n\t\thtml += '</div>';\r\n\t\t\r\n\t\t$(\"#result\").append(html);\r\n\t\t\r\n\t\tcontElement++;\t\t\t\r\n\t\t\r\n\t});\r\n\t\r\n\tif(contElement==0)\r\n\t{\r\n\t\t$(\"#result\").append('<h1 id=\"risultatoRicercaText\">Nessun risultato trovato!</h1>');\r\n\t\t$(\"#idPages\").hide();\r\n\t}\r\n\telse\r\n\t{\r\n\t\t// Distruggo vecchia pagination\r\n\t\t$(\"#idPages\").empty();\r\n\t\t$(\"#idPages\").append('<ul id=\"ul\" class=\"pagination\">');\r\n\t\t\r\n\t\t// Nuova pagination\r\n\t\tshowPages();\r\n\t\t$(\"#idPages\").show();\r\n\t}\r\n}", "function showResultUi(data) {\n result.innerHTML = '';\n data === null ? result.innerHTML = `\n <div class=\"col-md-12 text-center\">\n <p>There is no search result, try agin!</p>\n </div>\n ` :\n data.forEach(meal => {\n result.innerHTML += `\n <div class=\"col-md-2 m-0 p-1\">\n <div class=\"meal\">\n <img src=\"${meal.strMealThumb}\" alt=\"${meal.strMeal}\">\n <div id=\"${meal.idMeal}\" class=\"meal-info\">\n <p id=\"${meal.idMeal}\">${meal.strMeal}</p>\n </div>\n </div>\n </div>\n `;\n });\n}", "function carrousel(){\n\t//el objetivo es establecer inline nuestra imagen con la que queremos jugar.\n var i;\n var x = document.getElementsByClassName(\"slide1\");\n for(i=0; i<x.length; i++){\n x[i].style.display = \"none\";\n }\n myIndex1++;\n if ( myIndex1 > x.length){myIndex1=1};\n x[myIndex1-1].style.display = \"inline\";\n\n x = document.getElementsByClassName(\"slide2\");\n for(i=0; i<x.length; i++){\n x[i].style.display = \"none\";\n }\n myIndex2++;\n if ( myIndex2 > x.length){myIndex2=1};\n x[myIndex2-1].style.display = \"inline\";\n\n x = document.getElementsByClassName(\"slide3\");\n for(i=0; i<x.length; i++){\n x[i].style.dispaly = \"none\";\n }\n myIndex3++;\n if ( myIndex3 > x.length){myIndex3=1};\n x[myIndex3-1].style.display = \"inline\";\n}", "function mostrarCamposExistentes() {\n\t$(\"#contenedorConsulta\").html(\"\");\n\t\n\tfor (var pos = 0; pos < positions.length; pos++) {\n\t\tdivImagen = document.createElement(\"div\");\n\t\tdivImagen.className = \"thumbImg\";\n\t\t\n\t\t\n\t\tdivImagen.innerHTML = \n\t\t\t\"<table>\"+\n\t\t\t\t\"<tr>\"+\n\t\t\t\t\t\"<td><a href='javascript:abrirModificarCampos(\"+pos+\");'>\"+positions[pos][1]+\"</a></td>\"+\n\t\t\t\t\t\"<td width='15'>\"+\n\t\t\t\t\t\t(isBorrarTuplas ? (\"<img src='images/btnCerrar.png' width='12' style='cursor:pointer; position:relative;' onclick='bool_borrar = true; abrirModificarCampos(\"+pos+\");' />\") : \"\")+\n\t\t\t\t\t\"</td>\"+\n\t\t\t\t\"</tr>\"+\n\t\t\t\"</table>\"; \n\t\t\n\t\t$(\"#contenedorConsulta\").append(divImagen);\n\t}\n}", "function mostrarInfoSesion($usuario){\n\n $('aside').css('display','flex');\n\n $user=new Usuario($usuario.idUsuario, $usuario.nombreUsuario, $usuario.email, $usuario.password, $usuario.codResp);\n\n $('aside div:nth-child(2)').text('user: '+$user.getIdUsuario()+'-'+$user.getNombreUsuario());\n $('aside div:nth-child(3)').text($user.getEmail());\n\n\n}", "function mostrarPagRPD() {\n document.getElementById(\"pagRP\").style.visibility = \"hidden\";\n document.getElementById(\"pagCP\").style.visibility = \"hidden\";\n document.getElementById(\"pagMP\").style.visibility = \"hidden\";\n document.getElementById(\"pagEP\").style.visibility = \"hidden\";\n\n document.getElementById(\"pagRI\").style.visibility = \"hidden\";\n document.getElementById(\"pagCI\").style.visibility = \"hidden\";\n document.getElementById(\"pagMI\").style.visibility = \"hidden\";\n document.getElementById(\"pagEI\").style.visibility = \"hidden\";\n\n document.getElementById(\"pagRPD\").style.visibility = \"visible\";\n document.getElementById(\"pagCPD\").style.visibility = \"hidden\";\n document.getElementById(\"pagMPD\").style.visibility = \"hidden\";\n document.getElementById(\"pagEPD\").style.visibility = \"hidden\";\n\n document.getElementById(\"pagRC\").style.visibility = \"hidden\";\n document.getElementById(\"pagCC\").style.visibility = \"hidden\";\n document.getElementById(\"pagMC\").style.visibility = \"hidden\";\n document.getElementById(\"pagEC\").style.visibility = \"hidden\";\n\n}", "function displayCorsi() {\n\t$(\"#badge-corsi\").text(corsi.length);\n\t$(\"#lista-corsi\").empty();\n\tfor (var i = 0; i < corsi.length; i++) {\n\t\t// Check if some keywords exist\n\t\tvar keywords = corsi[i].keywords;\n\t\tif (keywords === undefined) {\n\t\t\tvar buttons = displayKeywords(\"keyword1,keyword2,keyword3\");\n\t\t} else {\n\t\t\tvar buttons = displayKeywords(keywords.toString());\n\t\t}\n\t\t// Badge new corso definition\n\t\tvar badge = '<span class=\"badge badge-text\">Nuovo</span>';\n\t\tif (!corsi[i].new) {\n\t\t\tbadge = '';\n\t\t}\n\t\t// Append a new corso panel in the list\n\t\t$(\"#lista-corsi\").append('<div class=\"panel panel-default\">' + \n\t\t '<div class=\"panel-heading panel-personal\" role=\"tab\" id=\"corso-heading' + i + '\">' +\n\t\t \t'<h4 class=\"panel-title\">' +\n\t\t\t '<a role=\"button\" class=\"btn-panel\" data-toggle=\"collapse\" data-parent=\"#lista-corsi\" href=\"#corso-content' + i + '\" aria-expanded=\"true\" aria-controls=\"corso-content' + i + '\">' +\n\t\t\t\t\t\tcorsi[i].name + badge + \n\t\t\t '</a>' +\n\t\t \t'</h4>' +\n\t\t '</div>' +\n\t\t '<div id=\"corso-content' + i + '\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"corso-heading' + i + '\">' +\n\t\t \t'<div class=\"panel-body\">' +\n\t \t\t\t'<p class=\"lead\">' + corsi[i].desc + '</p>' +\n\t \t\t\t'<p><strong>Keywords</strong>' + \n\t \t\t\t'<p>' + buttons + '</p>' +\n\t \t\t\t'<div class=\"btn-group pull-right\" role=\"group\" aria-label=\"edit-delete\">' +\n\t\t\t \t\t'<a role=\"button\" class=\"btn btn-default\" data-toggle=\"modal\" data-target=\"#corso-modal\" data-type=\"edit\" data-index=\"' + i + '\" data-name=\"' + corsi[i].name + '\" data-desc=\"' + corsi[i].desc + '\" data-keywords=\"' + keywords + '\"><i class=\"fa fa-pencil-square-o fa-lg\" aria-hidden=\"true\"></i> Modifica</a>' +\n\t\t\t \t\t'<a role=\"button\" class=\"btn btn-danger\" data-toggle=\"modal\" data-target=\"#confirm-delete-modal\" data-index=\"' + i + '\" data-name=\"' + corsi[i].name + '\" data-type=\"corso\"><i class=\"fa fa-trash fa-lg\" aria-hidden=\"true\"></i> Elimina</a>' +\n\t\t \t\t'</div>' +\n\t\t \t'</div>' +\n\t\t '</div>' +\n\t\t'</div>');\n\t}\n\twaitingDialog.hide();\n}", "function showCijfercom(){\r\n document.getElementById(\"cijfer5\").innerHTML = cijfers[4];\r\n document.getElementById(\"punt5\").style.display = \"block\";\r\n document.getElementById(\"punt5\").style.display = \"block\";\r\n}", "function showdiv(event,text)\n\t{\n\t\t//determina un margen de pixels del div al raton\n\t\tmargin=5;\n\n\t\t//La variable IE determina si estamos utilizando IE\n\t\tvar IE = document.all?true:false;\n\n\t\tvar tempX = 0;\n\t\tvar tempY = 0;\n\n\t\t//document.body.clientHeight = devuelve la altura del body\n\t\tif(IE)\n\t\t{ //para IE\n\t\t\tIE6=navigator.userAgent.toLowerCase().indexOf('msie 6');\n\t\t\tIE7=navigator.userAgent.toLowerCase().indexOf('msie 7');\n\t\t\t//event.y|event.clientY = devuelve la posicion en relacion a la parte superior visible del navegador\n\t\t\t//event.screenY = devuelve la posicion del cursor en relaciona la parte superior de la pantalla\n\t\t\t//event.offsetY = devuelve la posicion del mouse en relacion a la posicion superior de la caja donde se ha pulsado\n\n\t\t\tif(IE6>0 || IE7>0)\n\t\t\t{\n\t\t\t\ttempX = event.x\n\t\t\t\ttempY = event.y\n\t\t\t\tif(window.pageYOffset){\n\t\t\t\t\ttempY=(tempY+window.pageYOffset);\n\t\t\t\t\ttempX=(tempX+window.pageXOffset);\n\t\t\t\t}else{\n\t\t\t\t\ttempY=(tempY+Math.max(document.body.scrollTop,document.documentElement.scrollTop));\n\t\t\t\t\ttempX=(tempX+Math.max(document.body.scrollLeft,document.documentElement.scrollLeft));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//IE8\n\t\t\t\ttempX = event.x\n\t\t\t\ttempY = event.y\n\t\t\t}\n\t\t}else{ //para netscape\n\t\t\t//window.pageYOffset = devuelve el tamaño en pixels de la parte superior no visible (scroll) de la pagina\n\t\t\tdocument.captureEvents(Event.MOUSEMOVE);\n\t\t\ttempX = event.pageX;\n\t\t\ttempY = event.pageY;\n\t\t}\n\n\t\tif (tempX < 0){tempX = 0;}\n\t\tif (tempY < 0){tempY = 0;}\n\n\t\t// Modificamos el contenido de la capa\n\t\tdocument.getElementById('flotante').innerHTML=text;\n\n\t\t// Posicionamos la capa flotante\n\t\tdocument.getElementById('flotante').style.top = (tempY+margin)+\"px\";\n\t\tdocument.getElementById('flotante').style.left = (tempX+margin)+\"px\";\n\t\tdocument.getElementById('flotante').style.display='block';\n\t\treturn;\n\t}", "function mostrarMensaje(div) {\n var capa = document.getElementById(div);\n capa.style.display = 'inline';\n}", "function mostrarDevoluciones(){ // Cuando toque el boton \"devoluciones\" voy a ver la seccion (hacer devoluciones)\r\n limpiar(); //limpio campos de texto y mensajes al usuario\r\n document.querySelector(\"#homeDocente\").style.display = \"block\"; // habilito division docente\r\n document.querySelector(\"#bodyHome\").style.display = \"none\"; // oculto body bienvenida\r\n document.querySelector(\"#divAsignarNivel\").style.display = \"none\"; // oculto plantear ejercicios a alumnos\r\n document.querySelector(\"#divPlantearEje\").style.display = \"none\"; // oculto plantear tarea\r\n document.querySelector(\"#divEntregas\").style.display = \"none\"; // oculto tabla\r\n document.querySelector(\"#divDevoluciones\").style.display = \"block\"; // muestro redactar devoluciones a tareas\r\n document.querySelector(\"#divEstadisticas\").style.display = \"none\"; // oculto visualizar estadisticas\r\n}", "function showGraph() {\r\n\tvar size = 50;\r\n\tcontent = '<div style=\"display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; width: ' + (size + 10) * arguments.length + 'px; margin: 0 auto\">';\r\n\tfor (var divChild = 0; divChild < arguments.length; divChild++) {\r\n\t\tcontent += '<div style=\"background: ' + getRandomColor() + '; width: 50px; height: ' + arguments[divChild] * size + 'px\"></div>';\r\n\t}\r\n\tcontent += '</div>';\r\n\treturn content;\r\n}", "function div_show(el){ \n\t\n\t\t\tpopup6(\"\");\n\t\t\n\t}", "function showDivs(n) {\n if (n > mySlides.length) {slideIndex = 1}\n if (n < 1) {slideIndex = mySlides.length} ;\n for (i = 0; i < mySlides.length; i++) {\n mySlides[i].style.display = \"none\";\n }//Gère la boucle de défilement des images et cache les divs mySlides\n for (i = 0; i < dots.length; i++) {\n dots[i].className = dots[i].className.replace(\"backgroundWhite\", \"\");\n }//Enlève la classe de colorisation de la puce par défaut\n mySlides[slideIndex-1].style.display = \"block\";\n dots[slideIndex-1].className += \" backgroundWhite\";\n //Colore la puce associée à l'image associée\n}", "mostrarPublicaciones(publiaciones){\n let salida = \"\";\n publiaciones.forEach((publicacion) => {\n salida += `\n <div class=\"card mb-3\">\n <div class=\"card-body\">\n <h4 class=\"card-title\">${publicacion.titulo}</h4>\n <p class=\"card-text\">${publicacion.cuerpo}</p>\n <a href=\"#\" class=\"editar card-link\" data-id=\"${publicacion.id}\">\n <i class=\"fa fa-pencil\"></i>\n </a>\n <a href=\"#\" class=\"borrar card-link\" data-id=\"${publicacion.id}\">\n <i class=\"fa fa-remove\"></i> \n </a>\n </div>\n </div>`\n })\n this.publicacionesUI.innerHTML = salida;\n }", "function sonraki()\n{\n $('.elaman').hide();\n if (glb_siradakiEleman == ($('.elaman').length - 1)){\n glb_siradakiEleman = 0;\n }\n else{\n glb_siradakiEleman++;\n }\n \n $('.elaman:eq(' + glb_siradakiEleman + ') img').attr(\"src\", elemanlar[glb_siradakiEleman].resim);\n $('.elaman:eq(' + glb_siradakiEleman + ') h3').text(elemanlar[glb_siradakiEleman].baslik);\n $('.elaman:eq(' + glb_siradakiEleman + ') p').text(elemanlar[glb_siradakiEleman].yazi);\n \n \n $('.elaman:eq(' + glb_siradakiEleman + ')').show();\n}", "function cardsOnScreen(cards) {\n var divContent = document.getElementById(\"container\");\n var str = \"\";\n for(var i=0; i<cards.length; i++) {\n\n str+= `<div id=\"${cards[i].id}\" class=\"game-card\">\n <div class=\"game-card-inner\">\n <div class=\"back rounded\">${cards[i].content}</div>\n <div class=\"front rounded\"></div>\n </div>\n </div>`; \n }\n\n divContent.innerHTML = str;\n}", "function generaGrafica(ejercicios)\n{\n\tvar nBarras = Object.keys(ejercicios).length;\n\t//nBarras = 7;\n\tvar wPadre = nBarras*20;\n\tvar wHijo = 100/nBarras;\n\t\n\tvar resultado = \"<div style='width:80%; overflow-x:auto; overflow-y:hidden; margin-left:10%; margin-top:10%; text-align:left;'><div class='grafica' style='width:\"+wPadre+\"%'>\";\n\t\n\t$.each(ejercicios,function(i,ejercicio)\n\t{\n\t\tswitch(ejercicio['ritmo'])\n\t\t{\n\t\t\tcase '1':\n\t\t\t\tresultado += \"<div class='intensidad1' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\tresultado += \"<div class='intensidad2' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '3':\n\t\t\t\tresultado += \"<div class='intensidad3' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '4':\n\t\t\t\tresultado += \"<div class='intensidad4' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak;\n\t\t\tcase '5':\n\t\t\t\tresultado += \"<div class='intensidad5' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>\"+ejercicio['duracion']+\"</div></div>\";\n\t\t\tbreak; \n\t\t\tdefault:\n\t\t\t\tresultado += \"algo salio mal\";\n\t\t\tbreak\n\t\t}\n\t});\n\t\n\tresultado += \"</div></div>\";\n\t\t\n\t//resultado = \"<div style='width: 80%; overflow-x: scroll; overflow-y: hidden; margin-left:10%;'><div class='grafica' style='width:\"+wPadre+\"%'><div class='intensidad1' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad2' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad3' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad2' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad4' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad5' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div><div class='intensidad1' style='width:\"+wHijo+\"%'><div class='area'><div style='height: 100%; display: inline-block; width: 0px;'></div><div class='barra'></div></div><div class='tag'>00:00:00</div></div></div></div>\";\n\t\n\treturn resultado;\n}", "function render (){\n let contenedor=document.getElementById('root');\n /**participantes.forEach(part=>contenedor.innerHTML+=\"<h2>\"+part+\"</h2>\"); */\n participantes.forEach(part=>contenedor.innerHTML+=\n `<div class='card col-3'>\n <img src='./img/descarga.png' class='card-img-top' alt='aquí debería aparecer la imagen'>\n <div class='card-body'>\n <h5 class='card-title'>${part}</h5>\n <p class='card-text'>Some quick example text to build on the card title and make up the bulk of the card's content.</p>\n <a href='#' class='btn btn-primary'>Go somewhere</a>\n </div>\n </div>`\n);\n}", "function displayData(data) {\n \n container.innerHTML = '';\n\n data.forEach(function (fact) {\n container.innerHTML += `<div class=\"product\"><div class=\"row\"><div class=\"col-sm-8\"><h3>Title: ${fact.title}</h3>\n <img src=\"${fact.image_url}\" ><p>Price: ${fact.price}</p>\n </div></div>\n </div>`;\n });\n}", "function displayCarear() {\n leftbar.empty();\n SubBtnGenerator(carearTopics);\n}", "function mostrarPaginaPrincipal() {\n $('#fondo').hide();\n $(\"#wrapper\").show();\n}", "function updateDiv1(){\r\n var num= dividerType(lastClicked1.id);\r\n if(num!=3){ //if filmes nao individuais\r\n if(lastClicked1.retNumber() == 1) {\r\n title1.innerHTML = lastClicked1.retNumber() + '<span> movie</span>';\r\n } else {\r\n title1.innerHTML = lastClicked1.retNumber() + '<span> movies</span>';\r\n }\r\n } else {\r\n title1.innerHTML= lastClicked1.d.titles;\r\n }\r\n\r\n document.querySelector(\"#subExtra1\").style.display = \"none\";\r\n document.querySelector(\"#dinExtra1\").style.display = \"none\";\r\n if(genderOn){\r\n document.querySelector(\"#dinAct1\").innerHTML= \" actors\";\r\n document.querySelector(\"#dinCrew1\").innerHTML= \" actresses\";\r\n crew1.innerHTML = (dividZeros(lastClicked1.retFemale())) ;\r\n cast1.innerHTML = (dividZeros(lastClicked1.retMale())) ;\r\n\r\n crew1.style.color = colors['female'];\r\n cast1.style.color = colors['male'];\r\n document.querySelector(\"#subExtra1\").style.display = \"inline-block\";\r\n document.querySelector(\"#dinExtra1\").style.display = \"inline-block\";\r\n document.querySelector(\"#subExtra1\").style.color = colors['unknown'];\r\n document.querySelector(\"#subExtra1\").innerHTML = (dividZeros(lastClicked1.retUnknown())) ;\r\n document.querySelector(\"#dinExtra1\").innerText= \" unknows\";\r\n\r\n }\r\n if(rolesOn){\r\n document.querySelector(\"#dinAct1\").innerHTML= \" actors\";\r\n document.querySelector(\"#dinCrew1\").innerHTML= \" crew members\";\r\n crew1.innerHTML = dividZeros(lastClicked1.retCrew());\r\n cast1.innerHTML = dividZeros(lastClicked1.retCast());\r\n\r\n crew1.style.color = colors['crew'];\r\n cast1.style.color = colors['cast'];\r\n }\r\n if(budgetOn){\r\n document.querySelector(\"#dinBud1\").innerHTML= \" dollars\";\r\n document.querySelector(\"#dinRev1\").innerHTML= \" dollars\";\r\n budget1.innerHTML = dividZeros(lastClicked1.retBudget());\r\n revenue1.innerHTML = dividZeros(lastClicked1.retRevenue());\r\n\r\n document.querySelector(\"#Rev1\").innerHTML= \"Revenue \";\r\n document.querySelector(\"#Bud1\").innerHTML= \"Budget \";\r\n\r\n }else{\r\n document.querySelector(\"#dinBud1\").innerHTML= \" dollars\";\r\n document.querySelector(\"#dinRev1\").innerHTML= \"\";\r\n document.querySelector(\"#Rev1\").innerHTML= \" \";\r\n document.querySelector(\"#Bud1\").innerHTML= \"Profit \";\r\n\r\n if(lastClicked1.retRevenue() - lastClicked1.retBudget() > 0) {\r\n budget1.style.color = colors['revenue'];\r\n } else {\r\n budget1.style.color = colors['budget'];\r\n }\r\n\r\n budget1.innerHTML = (dividZeros(lastClicked1.retRevenue() - lastClicked1.retBudget()) );\r\n revenue1.innerHTML =\"\";\r\n }\r\n if(genderOn || rolesOn) {\r\n people1.innerHTML = dividZeros(lastClicked1.retCrew() + lastClicked1.retCast()) + '<span> people</span>';;\r\n }\r\n}", "function displayFacture(){\n\n // Si elle existe déjà, on la détruit\n $(\"#factureDetail\").empty();\n $(\"#factureSomme\").empty();\n\n // Titre\n var titre = document.createElement(\"h2\");\n titre.setAttribute(\"class\", \"w3-center\");\n titre.innerHTML= \"La Livrairie vous remercie !\";\n\n // Si la personne a fournie ses coordonnées, on les affiches (Pas de vérification demandée dans le TP)\n if(coordonnees.nom){\n $(\"#factureCoord\").show();\n $(\"#factureNom\").text(\"Nom : \" + coordonnees.nom);\n $(\"#facturePrenom\").text(\"Prénom : \" + coordonnees.prenom);\n $(\"#factureAdresse\").text(\"Adresse : \" + coordonnees.address);\n }\n\n // On crée les éléments correspondants aux achats\n for(var p in panier){\n $(\"#factureDetail\").append(createFactureElement(panier[p]));\n }\n\n // On crée la zone somme\n var somme = createSumZone(); \n \n // Ajout de la somme\n var list = $(\"#factureSomme\").append(somme);\n\n\n // On affiche\n document.getElementById(\"factureModal\").style.display='block';\n\n // On remplie les montants de la somme\n refreshSomme();\n}", "function mostrarTarjetas(titulo,informacion,id,seccion)\n\t{\n\t\tdatosTarjeta = '';\n\t\tdatosTarjeta += '<div class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone mdl-card mdl-shadow--3dp\">';\n datosTarjeta += '<div class=\"mdl-card__title\">';\n datosTarjeta += '<h4 class=\"mdl-card__title-text\">'+titulo+'</h4>';\n datosTarjeta += '</div>';\n datosTarjeta += '<div class=\"mdl-card__supporting-text\">';\n datosTarjeta += informacion;\n\t datosTarjeta += '</div>';\n\t datosTarjeta += '<div class=\"mdl-card__actions\">';\n\t datosTarjeta += '<a class=\"android-link mdl-button mdl-js-button mdl-typography--text-uppercase mdl-button--colored '+seccion+'\" onclick=\"mostrarContainerGalpones('+id+')\">Ver más';\n\t datosTarjeta += '<i class=\"material-icons\">chevron_right</i>';\n\t datosTarjeta += '</a>';\n\t datosTarjeta += '</div>';\n\t datosTarjeta += '</div>';\n\t \n\t $('#'+seccion).append(datosTarjeta);\n\t /*\n\t $('.containerGranjas').click(function()\n\t {\n\t \t$('#containerGalpones').html('');\n\t \t$('#containerInsumos').html('');\n\t \talert($(this).data('value'));\n\t \tmostrarContainerGalpones($(this).data('value'));\n\t });\n\t\t*/\n\n\n\t}", "function printIcons(icons, contenitoreIcone) {\r\n icons.forEach((icon)=>{\r\n const {family, prefix, name, color} = icon;\r\n const html =//parte di html\r\n `<div class=\"icon\">\r\n <i class=\"${family} ${prefix}${name}\"\r\n style=\"color: ${color}\"></i>\r\n <div class=\"nomeIcona\">${name}</div>\r\n </div>\r\n `\r\n contenitoreIcone.append(html);\r\n return\r\n });\r\n\r\n\r\n}", "function renderCarrito (){\n let boxCarrito = document.getElementById(`box-productos`)\n boxCarrito.innerHTML=\"\";\n carrito.forEach((producto)=>{\n boxCarrito.innerHTML+=`\n <div class=\"col-3 d-flex align-items-center justify-content-center mt-2\">\n <img class=\"img-carrito\" src=\"${producto.img}\" alt=\"${producto.nombre}\" />\n <h3>${producto.nombre}</h3>\n </div>\n <div class=\"col-3 d-flex align-items-center justify-content-center mt-2\">\n <h3>1</h3>\n </div>\n <div class=\"col-3 d-flex align-items-center justify-content-center mt-2\">\n <h3>$${producto.precio}</h3>\n </div>\n <div class=\"col-3 d-flex align-items-center justify-content-center mt-2\">\n <i id=\"deleteProducto\" onclick=\"removeProduct(${producto.id})\" class=\"far fa-trash-alt\"></i>\n </div>\n `\n })\n\n sumarTotal()\n\n}", "function hideDivs()\n{\n\tpageNavHeader.style.marginBottom = '1em';\n\tpageNavButton.innerHTML = 'Show Quick Links';\n\tpageNavDiv.style.display = 'none';\n\t\n\tinformationHeader.style.marginBottom = '1em';\n\tinformationButton.innerHTML = 'Show Information';\n\tinformationDiv.style.display = 'none';\n\t\n\tfor(var i = 0; i < collectionOfDivs.length; i++)\n\t{\n\t\tcollectionOfDivs[i].style.display = 'none';\n\t}\n\t\n\tfor(var i = 0; i < collectionOfDivs2.length; i++)\n\t{\n\t\tcollectionOfDivs2[i].style.display = 'none';\n\t}\n}", "function mostrartodosproductos() {\n productosmodelo.find().then(resultado => {\n let cadenaDOM = \"\";\n resultado.forEach(producto => {\n cadenaDOM +=\n `<div>\n <table >\n <tr style=\"background-color:#567CE3 ;\">\n <th>Producto</th>\n <th>Nombre</th>\n <th>precio</th>\n <th>Cantidad</th>\n <th>Imagen</th>\n </tr>\n <tr>\n <td>${producto.idproducto}</td>\n <td>${producto.nombreproducto}</td>\n <td>${producto.precioproducto}</td>\n <td>${producto.cantidadproducto}</td>\n <td><a href=\"./images/${producto.imagen}\" target=\"_blank\" ><img src=\"./images/${producto.imagen}\" height=\"50\" width=\"50\"></td>\n \n </tr>\n </table>\n </div>`;\n });\n document.getElementById(\"wrapper\").innerHTML = cadenaDOM;\n }).catch(error => {\n console.log(\"ERROR en find\");\n });\n}", "function escrever_resultado()\r\n{\r\n var texto= '<hr>';\r\n\r\n /*\r\n texto += '<b>Suave:</b> máximo[ mínimo { μ CocaForte (x) ; μ RunFraco (x) ; μ Gelo (x) } ; mínimo { μ CocaSuave (x) ; μ RunSuave (x) ; μ Gelo (x) } ;mínimo { μ CocaFraco (x) ; μ RunForte (x) ; μ Gelo (x) }]' ;\r\n texto+='<br><b>Forte:</b> máximo[ mínimo { μ CocaForte (x) ; μ RunSuave (x) ; μ Gelo (x) } ; mínimo { μ CocaForte (x) ; μ RunForte (x) ; μ Gelo (x) } ;mínimo { μ CocaSuave (x) ; μ RunForte (x) ; μ Gelo (x)]' ;\r\n texto+='<br><b>Fraco:</b> máximo[ mínimo { μ CocaFraco (x) ; μ RunFraco (x) ; μ Gelo (x) } ; mínimo { μ CocaFraco (x) ; μ RunSuave (x) ; μ Gelo (x) } ;mínimo { μ CocaSuave (x) ; μ RunForte (x) ; μ Gelo (x) }]';\r\n */\r\n \r\n \r\n texto += '<hr>';\r\n texto+= '<h3><u>Resultado</u></h3>'+ calc_resultado();\r\n document.getElementById('resultado').innerHTML= texto; \r\n}", "function iniciarTela() {\r\n\tvar cartas = '';\r\n\t\r\n\tfor(i=0; i < (maxPares*2); i++) {\r\n\t\tcartas += '<div id=\"carta'\r\n\t\t\t+ i\r\n\t\t\t+ '\" numero=\"'\r\n\t\t\t+ i\r\n\t\t\t+ '\"></div>';\r\n\t}\r\n\t\r\n\tj.html(cartas);\r\n}", "function showListComent(comentArray) {\n var htmlComentToAppend = '';\n\n for (let i = 0; i < comentArray.length; i++) {\n comentario = comentArray[i];\n\n htmlComentToAppend += `\n \n <div class=\"row\">\n \n <div class=\"col\">\n \n <p class=\"mb-1\"> <strong>` + comentario.user + `</strong> ` + \" - \" + comentario.dateTime + \" - \" + estrellitas[comentario.score - 1] + `</p> \n <p class=\"mb-1\">` + comentario.description + `</p> \n <hr> \n </div> \n </div> \n `\n }\n document.getElementById(\"listComent\").innerHTML = htmlComentToAppend;\n}", "function startDiv(layerID) \r\n{\r\n\tif (browserOK)\t// We can make the interactive elements available ...\r\n\t{\r\n\t\tdocument.write('<A href=\\\"javascript: toggleDisplay(\\''+layerID+'\\')\\\" onMouseOver=\\\"showStatus(\\''+layerID+'\\'); return true\\\" onMouseOut=\\\"window.status=\\' \\';return true\\\")\\\"><IMG src=\\\"plus.gif\\\" border=\\\"0\\\" width=\\\"12\\\" height=\\\"12\\\" alt=\\\"+\\\" name=\\\"i'+layerID+'\\\"><\\/A>');\r\n\t\tdocument.write('<DIV id=\\\"'+layerID+'\\\" class=\\\"hidden\\\" style=\\\"display: none\\\">');\r\n\t}\r\n\telse\t\t\t// No interactive element available\r\n\t{\r\n\t\tdocument.write('<DIV id=\\\"'+layerID+'\\\" class=\\\"hidden\\\"><HR align=\\\"left\\\" width=\\\"25%\\\">');\r\n\t}\r\n\r\n}", "function mostrar() {\n document.getElementById('oculto').style.display = 'block';\n}", "function mostrarPlantearEje(){ // Cuando toque el boton \"plantear ejercicios\" voy a ver la seccion (plantear tarea a alumnos)\r\n limpiar(); //limpio campos de texto y mensajes al usuario\r\n document.querySelector(\"#divDevoluciones\").style.display = \"none\"; // oculto redactar devoluciones a tareas\r\n document.querySelector(\"#homeDocente\").style.display = \"block\"; //Habilito division docente\r\n document.querySelector(\"#bodyHome\").style.display = \"none\"; //Oculto body bienvenida\r\n document.querySelector(\"#divAsignarNivel\").style.display = \"none\"; // oculto plantear ejercicios a alumnos\r\n document.querySelector(\"#divPlantearEje\").style.display = \"block\"; // muestro plantear tarea\r\n document.querySelector(\"#divEntregas\").style.display = \"none\"; // oculto redactar devoluciones a tareas\r\n document.querySelector(\"#divEstadisticas\").style.display = \"none\"; // oculto visualizar estadisticas\r\n}", "function showall(){\n document.getElementById(\"card0\").style.display = \"none\"; /* start page with options */\n\n for (var c=1;c<karten+1;c++) {\n pre = \"<div class='plugin__flashcards_fp_border'><div class='plugin__flashcards_fp_header'>\" + \"Karte \" + c + \"</div>\";\n document.getElementById(\"card\"+c).innerHTML = pre + document.getElementById(\"card\"+c).innerHTML + \"</div>\";\n\n document.getElementById(\"card\"+c).style.display = \"block\";\n document.getElementById(\"card\"+c).style.minHeight = 0;\n }\n}", "function printTextOfDiv(){\n var div=document.getElementsByTagName(\"div\");\n var html=document.getElementById(\"result\");;\n for(var i=0; i<div.length; i++){\n if(div[i].innerText!=\"\"){\n html.innerHTML+='<li>'+div[i].innerText+'</li>';\n } \n }\n }", "function writeDOM(){\n var domString = \"\";\n for(var i=0; i<expolsive.length; i++){\n domString += `<div class=\"col-sm-6 col-md-4 container\">`\n domString += `<div class=\"row\" id=\"card-${[i]}\">`\n domString += `<h1>${expolsive[i].name}</h1>`;\n domString += `<h1>${expolsive[i].description}</h1>`;\n domString += `</div></div>`;\n }\n // $(\"#explosiveDiv\").append(domString);\n // if($(expolsive).length){\n // $(\"#card\")\n // if($('#myModal').length) {\n // $(\"#\")\n \n // $('#purchaseNotice').html($('#myModal').html()) // set html\n // .show(); // show purchaseNotice div\n // } else {\n // $('#purchaseNotice').hide();\n // }\n }" ]
[ "0.67785376", "0.65896064", "0.65088654", "0.6403261", "0.6289337", "0.62873626", "0.626295", "0.6211447", "0.62088764", "0.6185049", "0.6176599", "0.61536396", "0.6144058", "0.6119681", "0.6098986", "0.606385", "0.60301894", "0.6028177", "0.6028177", "0.60181767", "0.60165113", "0.59886754", "0.59883577", "0.59436846", "0.59166837", "0.58955604", "0.5874824", "0.5872453", "0.5860071", "0.58490866", "0.5842115", "0.58401877", "0.5835091", "0.5826343", "0.58158684", "0.57985276", "0.5796885", "0.57968104", "0.57968104", "0.57964647", "0.5789184", "0.57886", "0.57816076", "0.5779321", "0.5775341", "0.57751036", "0.5763291", "0.575496", "0.57536685", "0.57524705", "0.57519555", "0.57330793", "0.5730872", "0.57294196", "0.5727812", "0.5727107", "0.57268494", "0.571951", "0.5713159", "0.57110727", "0.5708645", "0.5705905", "0.57054675", "0.57025677", "0.57015604", "0.57003593", "0.56984055", "0.5685784", "0.56803596", "0.5679986", "0.5678516", "0.567672", "0.56736106", "0.5660955", "0.56567484", "0.5651822", "0.56481135", "0.5646254", "0.56441593", "0.56423706", "0.5641981", "0.56357294", "0.56327844", "0.56297064", "0.56284934", "0.5626607", "0.5624361", "0.56206036", "0.56205165", "0.56148314", "0.5609771", "0.56092274", "0.560835", "0.5605884", "0.5605536", "0.56041574", "0.56038404", "0.5595044", "0.5591475", "0.5577257", "0.55755633" ]
0.0
-1
==================================================================================================================================================== VIEW INVENTORY FUNCTION ====================================================================================================================================================
function viewInventory() { var query = "SELECT item_id, product_name, department_name, price, stock_quantity FROM products"; connection.query(query, function (err, res) { var t = new Table(); t.push( ["ID", " Name", "Price", "In Stock"] ); for (var i = 0; i < res.length; i++) { t.push( [res[i].item_id, res[i].product_name, "$" + res[i].price.toFixed(2), res[i].stock_quantity] ); } console.log(" Current Inventory"); console.log("" + t); console.log(lineBreak); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function itemInventoryTable() { }", "function inventoryMenu() {\n $scope.menuTitle = createText(\"Inventory\", [20, 10]);\n\n var datas = CharServ.getAllDatas();\n\n var i = 30;\n _.forIn(datas.inventory, function(value) {\n if (value.quantity > 0) {\n createItem(value, i);\n i += 30;\n }\n });\n }", "function displayInventory() {\n\tconnection.query('SELECT * FROM Products', function (err, res) {\n\t\tif (err) { console.log(err) };\n\t\tvar table = new Table({\n\t\t\thead: ['item_id', 'item_name', 'department_name', 'price', 'stock_quantity'],\n\t\t\tcolWidths: [10, 30, 30, 20, 20]\n\t\t});\n\t\tfor (i = 0; i < res.length; i++) {\n\t\t\ttable.push(\n\t\t\t\t[res[i].item_id, res[i].product_name, res[i].department_name, res[i].price, res[i].stock_quantity]\n\t\t\t);\n\t\t}\n\t\tconsole.log(table.toString());\n\t\tinventoryUpdates();\n\t});\n}", "function viewProducts() {\n connection.query(\"SELECT item_id, product_name, price, stock_quantity FROM products\", function (err, res) {\n //error occurs\n if (err) {\n throw err;\n }\n\n console.table(\"\\nInventory\", res);\n returnToMenu();\n });\n}", "function viewProducts(){\n\n\tvar query = \"SELECT * FROM products\";\n\n\tconnection.query(query, function(err, res){\n\t\tif (err) throw err;\n\t\tconsole.log(\"ALL INVENTORY IN PRODUCTS TABLE\");\n\t\tfor(i=0; i< res.length; i++){\n\t\t\tconsole.log(\"---|| ID \"+ res[i].item_id+\" ---|| NAME: \"+ res[i].product_name+\" ---|| PRICE: $\"+ res[i].price + \" ---|| QUANTITY \" + res[i].stock_quantity);\n\t\t};\n\t\taskAction();\n\t})\n\n}", "function viewProducts() {\n console.log('Here is the current inventory: ');\n var table = new Table({\n head: ['Item ID', 'Product Name', 'Price', 'Quantity']\n });\n connection.query(\"SELECT * FROM products\", function (err, res) {\n for (let i = 0; i < res.length; i++) {\n table.push(\n [res[i].item_id, res[i].product_name, res[i].price, res[i].stock_quantity]\n );\n }\n console.log(table.toString());\n console.log('\\n*******************');\n managerOptions();\n })\n}", "function displayInventory() {\n connection.query(\"SELECT * FROM products\", function(err, res) {\n for (var i = 0; i < res.length; i++) {\n console.log(res[i].item_id + \" | \" + res[i].product_name + \" | \" + res[i].department_name + \" | \" + res[i].price + \" | \" + res[i].stock_quantity);\n }\n console.log(\"-----------------------------------\");\n });\n }", "function displayInventory() {\n\t// console.log('___ENTER displayInventory___');\n\n\t// Construct the db query string\n\tqueryStr = 'SELECT * FROM products';\n\n\t// Make the db query\n\tconnection.query(queryStr, function(err, data) {\n\t\tif (err) throw err;\n\n\t\tconsole.log('Existing Inventory: ');\n\t\tconsole.log('...................\\n');\n\n\t\tvar strOut = '';\n\t\tfor (var i = 0; i < data.length; i++) {\n\t\t\tstrOut = '';\n\t\t\tstrOut += 'Item ID: ' + data[i].item_id + ' // ';\n\t\t\tstrOut += 'Product Name: ' + data[i].product_name + ' // ';\n\t\t\tstrOut += 'Department: ' + data[i].department_name + ' // ';\n\t\t\tstrOut += 'Price: $' + data[i].price + '\\n';\n\n\t\t\tconsole.log(strOut);\n\t\t}\n\n\t \tconsole.log(\"---------------------------------------------------------------------\\n\");\n\n\t \t//Prompt the user for item/quantity they would like to purchase\n\t \tpromptUserPurchase();\n\t})\n}", "function viewLowInventory() {\n con.query(\"SELECT * from vw_LowInventory\", function (err, result) {\n if (err) {\n throw err;\n }\n else {\n var table = new Table({\n\t\t head: ['Product Id', 'Product Name', 'Department','Price', 'Quantity'],\n\t\t style: {\n\t\t\t head: ['blue'],\n\t\t\t compact: false,\n\t\t\t colAligns: ['center','left','left','right', 'right']\n\t\t }\n\t });\n\n\t //loops through each item in the mysql database and pushes that information into a new row in the table\n\t for(var i = 0; i < result.length; i++) {\n\t\t table.push(\n\t\t\t [result[i].Product_Id, result[i].Product_Name, result[i].Department, result[i].Price, result[i].Quantity]\n\t\t );\n\t }\n \n console.log(table.toString());\n runManageBamazon();\n }\n });\n}", "function displayInventory() {\n\tqueryStr = 'SELECT * FROM bamazondb.products';\n\tconnection.query(queryStr, function(err, data) {\n\t\tif(err) throw err;\n\n\t\tconsole.log(\"Current Inventory: \");\n\t\tconsole.log(\"...........................................................................................................\\n\");\n\n\t\tvar strOut = '';\n\t\tfor (var i = 0; i < data.length; i++) {\n\t\t\tstrOut = '';\n\t\t\tstrOut = 'Item ID: ' + data[i].item_id + ' // ';\n\t\t\tstrOut += 'Product Name: ' + data[i].product_name + ' // ';\n\t\t\tstrOut += 'Department: ' + data[i].department_name + ' // ';\n\t\t\tstrOut += 'Price: $' + data[i].customer_price + ' // ';\n\t\t\tstrOut += 'Quantity: ' + data[i].stock_quantity + '\\n';\n\n\t\t\tconsole.log(strOut);\n\t\t}\n\n\t\tconsole.log(\"-----------------------------------------------------------------------------------------------------------\\n\");\n\t\tpromptUserPurchase();\n\t})\n}", "function viewProd(item){\n connection.query(\"SELECT item_id, product_name, department_name, price, stock_quantity FROM products WHERE ?;\", \n \t{ item_id: item }, function(err, res){\n\t if(err) throw err;\n\t // console.log(res);\n\t\tvar aligns = [null, null, null, 'right', 'right'];\n // instantiate \n var tableInventory = new Table({\n \thead: ['Item ID', 'Product Name', 'Department', 'Price', 'Quantity']\n , colWidths: [10, 48, 18, 10, 10]\n , colAligns: aligns\n });\n\n\t// the tableInventory is an Array, so you can `push`, `unshift`, `splice` and the rest \n\ttableInventory.push(\n\t [res[0].item_id, res[0].product_name, res[0].department_name, res[0].price.toFixed(2), res[0].stock_quantity] // .toFixed(2) forces trailing zeros in prices\n\t); \n console.log(tableInventory.toString());\n\n // adding space after rendered table\n console.log(oneLine);\n // return original inquirer list for manager's choice\n startMeUp();\n });\n}", "function viewLowInventory(){\n\tproductArray = [[\n\t\t\"Item ID:\".yellow, \n\t\t\"Product:\".cyan, \n\t\t\"Department:\".cyan, \n\t\t\"Price:\".cyan, \n\t\t\"Quantity:\".cyan\n\t]];\n\tconnection.query(\"SELECT * FROM products\", function(err, results){\n\t\tif(err) throw err;\n\t\tclearScreen();\n\t\tfor(var i = 0; i < results.length; i++){\n\t\t\tif(results[i].stockQuantity <= 5){\n\t\t\t\tvar tempArray = [];\n\t\t\t\ttempArray.push(results[i].itemId);\n\t\t\t\ttempArray.push(results[i].productName);\n\t\t\t\ttempArray.push(results[i].departmentName);\n\t\t\t\ttempArray.push(results[i].price);\n\t\t\t\ttempArray.push(results[i].stockQuantity);\n\t\t\t\tproductArray.push(tempArray); \n\t\t\t}\n\t\t}\n//CALL Function that formats the table and then displays it on the screen\n\t\tclearScreen();\n\t\tconsole.log(\"Viewing\".cyan + \" Low\".yellow + \" Inventory Items \\(qty <= 5\\)\".cyan);\n\t\tdisplayTable();\n\t\tstart();\n\t});\n}", "function viewInventory() {\n connection.query(\"SELECT * FROM products WHERE stock_quantity < 5\",\n function (err, res) {\n for (var i = 0; i < res.length; i++) {\n console.log(res[i].product_name + \"\\n----------------------\\n\");\n }\n }\n )\n }", "function displayInventory() {\n //retrieving all fields\n connection.query(\"SELECT * FROM products\", function(err, res) {\n if (err) {\n throw err;\n console.log(\"Unable to connect to Inventory Management System.\\n\".red);\n } \n console.log(\"\\nCurrent Inventory:\\n\".bold.cyan);\n //reset table so it is refreshed each time function is called\n tto.reset();\n //using terminal-table-output package for formatting, first line is header\n tto.pushrow([\"item_id\", \"product_name\", \"department_name\", \"price\", \"stock_quantity\"]).line();\n for(i = 0; i < res.length; i++) {\n //passing in table data retrieved with query, row by row\n tto.pushrow([res[i].item_id,res[i].product_name,res[i].department_name,res[i].price,res[i].stock_quantity]);\n //once final row has been read in, print to console\n if(i === res.length - 1) {\n tto.print(true);\n }\n }\n //calling manager menu function\n managerMenu();\n });\n \n}", "function displayItems() {\n\tconnection.query(\"SELECT * FROM products\", function(error, response) {\n\t\tif (error) throw error;\n\t\t//create new table to push product info into\n\t\tvar itemsTable = new Table({\n\t\t\thead: [\"Item ID\", \"Product Name\", \"Price\", \"Quantity\"]\n\t\t});\n\t\t//loop through response and push each items info into table\n\t\tfor (var i = 0; i < response.length; i++) {\n\t\t\titemsTable.push([response[i].item_id, response[i].product_name, \"$ \"+response[i].price, response[i].stock_quantity]);\n\t\t}\n\t\t//display table\n\t\tconsole.log(itemsTable.toString());\n\t\t//ask if user would like to return to menu\n\t\treturnToMenu();\n\t});\n}", "function viewLowInventory(){\n\n\t// Query: Read products with stock_quantity < 5\n\tconnection.query(\"SELECT * FROM products WHERE stock_quantity < 5\", function(viewLowErr, viewLowRes){\n\t\tif (viewLowErr) throw viewLowErr;\n\n\t\tfor (var j = 0; j < viewLowRes.length; j++){\n\t\t\tconsole.log(\"Id: \" + viewLowRes[j].item_id + \" | Name: \" + viewLowRes[j].product_name +\n\t\t\t\t\t\t\" | Price: \" + viewLowRes[j].price + \" | Quantity: \" + viewLowRes[j].stock_quantity);\n\t\t\tconsole.log(\"-------------------------------------------------------------------\");\n\t\t}\n\n\t\t// Prompts user to return to Main Menu or end application\n\t\trestartMenu();\n\t});\n}", "function viewProducts() {\n connectionDB.query(\"SELECT * FROM products\", function (err, res) {\n if (err) throw err;\n // Log all results of the SELECT statement\n //console.log(res);\n var tableFormat = new AsciiTable('PRODUCT LIST');\n tableFormat.setHeading('ITEM ID', 'PRODUCT NAME', 'PRICE', 'QUANTITES');\n for (var index in res) {\n\n tableFormat.addRow(res[index].item_id, res[index].product_name, res[index].price, res[index].stock_quantity);\n }\n console.log(tableFormat.toString());\n\n\n });\n}", "function viewProducts() {\n connection.query(\"SELECT * FROM products\", function(err, results) {\n if (err) throw err;\n console.log(\"\\n\" + colors.yellow(\"---------------------PRODUCTS FOR SALE---------------------\") + \"\\n\");\n var table = new cliTable({ head: [\"ID\", \"Item\", \"Price\", \"Quantity\"] });\n for (var i = 0; i < results.length; i++) {\n table.push([results[i].id, results[i].productName, results[i].price, results[i].stockQuantity]);\n }\n console.log(table.toString() + \"\\n\");\n actionPrompt();\n });\n}", "function showInventory() {\n connection.query(\"SELECT * FROM products\", function (err, results) {\n if (err) throw err;\n console.table(results);\n selectItem();\n })\n}", "function displayInventory(response) {\n tableValues = [];\n for (var i = 0; i < response.length; i++) {\n tableValues.push(\n {\n ID: response[i].item_id,\n Name: response[i].product_name,\n Price: \"$\" + response[i].price.toFixed(2),\n Quantity: response[i].stock_quantity\n }\n )\n }\n console.table(tableValues);\n}", "function displayAllInventory() {\r\n\r\n var query = \"SELECT item_id, department_name, product_name, price, stock_quantity FROM bamazon.products \" +\r\n \"INNER JOIN bamazon.departments ON products.department_id = departments.department_id \" +\r\n \"ORDER BY department_name, product_name ASC\";\r\n bamazon.query(query, function (err, res) {\r\n if (err) throw (err);\r\n\r\n displayInventoryTable(res);\r\n start();\r\n });\r\n}", "function viewLowInventory() {\n\tconnection.query('SELECT * FROM Products WHERE stockQuantity<5', function(err, result) {\n\t\tcreateTable(result);\n\t})\n}", "function viewLowInventory() {\n\n var query = \"SELECT * FROM products\";\n connection.query(query, function(err, res) {\n if (err) throw err;\n console.log(\"All items that need to be restocked:\\n\");\n console.log(\"\\n-----------------------------------------\\n\");\n for (var i = 0; i < res.length; i++) {\n if (res[i].stock_quantity <= 5) {\n console.log(\"Id: \".bold + res[i].item_id + \" | Product: \".bold + res[i].product_name + \" | Department: \".bold + res[i].department_name + \" | Price: \".bold + \"$\".green.bold +res[i].price + \" | QOH: \".bold + res[i].stock_quantity);\n }\n }\n console.log(\"\\n-----------------------------------------\\n\");\n });\n\n\n}", "function inventory(){\n connection.query(\"SELECT * FROM products\", function(err, res){\n if (err) throw err;\n res.forEach(function(item){\n console.log(`Item Name: ${item.product_name} \\n Department: ${item.department_name} \\n Price: ${item.price} \\n Quantity: ${item.stock_quantity}`);\n console.log(\"----------------------------------------------------\")\n })\n returntoMenu();\n });\n}", "function viewProduct() {\n var query =\n 'SELECT item_id, product_name, price, stock_quantity FROM products WHERE stock_quantity > 0';\n connection.query(query, function(err, res) {\n console.table(res);\n reset();\n });\n}", "function viewLowInventory(){\n // query products table and return ids of products\n // with stock lower than 5 \n connection.query('SELECT * FROM products WHERE stock_quantity<=5',function(err,results){\n if(err) throw err;\n resultsToTable(results);\n });\n\n connection.end();\n\n}", "function viewLowInventory() {\n connectionDB.query(\"SELECT * FROM products WHERE stock_quantity <=100\", function (err, res) {\n if (err) throw err;\n // Log all results of the SELECT statement\n var tableFormat = new AsciiTable('INVENTORY LESS THEN 100');\n tableFormat.setHeading('ITEM ID', 'PRODUCT NAME', 'PRICE', 'QUANTITES');\n for (var index in res) {\n\n tableFormat.addRow(res[index].item_id, res[index].product_name, res[index].price, res[index].stock_quantity);\n }\n console.log(tableFormat.toString());\n connectionDB.end();\n\n\n });\n}", "function viewSale() {\n connection.query(\"SELECT * FROM products\", function (err, res) {\n if (err) throw err;\n for (var i = 0; i < res.length; i++) {\n console.log();\n console.log(\"---------------------------------------------\");\n console.log(res[i].item_id + \" | \" + res[i].product_name + \" | \" + res[i].department_name + \" | $\" + res[i].price + \" | \" + res[i].stock_quantity);\n }\n });\n manager();\n}", "function viewLowInventory() {\n var query = \"SELECT item_id, product_name, price, stock_quantity FROM products WHERE stock_quantity < 5\";\n connection.query(query, function (err, res) {\n //error occurs\n if (err) {\n throw err;\n }\n\n console.table(\"\\nLow Inventory\", res);\n returnToMenu();\n });\n}", "function MgrDisplayInv() {\n \n var query = \"SELECT item_id, product_name, price, stock_quantity FROM products\";\n connection.query(query, function(err, res) {\n\n if (err) throw err;\n\n var resultsArray = [];\n \n for (var i = 0; i < res.length; i++) {\n // console.log(\"Department ID: \" + res[i].department_id + \" || Department Name: \" + res[i].department_name + \" || Overhead Costs: $\" + Number.parseFloat(res[i].over_head_costs).toFixed(2) + \" || Product Sales: $\" + Number.parseFloat(res[i].product_sales).toFixed(2) + \" || Total Profit: $\" + Number.parseFloat(res[i].total_profits).toFixed(2));\n \n var obj = {};\n obj.item_ID = res[i].item_id;\n obj.product_Name = res[i].product_name;\n obj.price = Number.parseFloat(res[i].price).toFixed(2);\n obj.quantity = Number.parseInt(res[i].stock_quantity);\n\n resultsArray.push(obj);\n\n };\n console.log(\"\\n\");\n console.table(resultsArray);\n\n managerChoice();\n }) \n}", "function showInventory() {\n connection.query('SELECT ItemID, ProductName, Price FROM products', function(err, rows, fields) {\n if (err) throw err;\n console.log('Available products:');\n for(var i = 0; i < rows.length; i++) {\n console.log('Item ID: ' + rows[i].ItemID + ' Product Name: ' + rows[i].ProductName + ' Price: $' + rows[i].Price);\n }\n runPrompt();\n });\n}", "function displayInventory() {\n\t\t\tvar text = \"Inventory: \";\n\t\t\tif (Inventory.length > 1) {\n\t\t\t\tfor (var x = 0; x < Inventory.length; x++) {\n\t\t\t\ttext = text + Inventory[x] + \", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor (var x = 0; x < Inventory.length; x++) {\n\t\t\t\ttext = text + Inventory[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tdocument.getElementById(\"Inventory\").innerHTML = text;\n\t\t\t\n\t}", "function viewAll() {\n connection.query('SELECT * FROM products', function(err, res) {\n // Sets up table for our raw data already populated within MYSQL Workbench\n var table = new Table({\n head: ['ID', 'Product Name', 'Department', 'Price', 'Stock Quantity']\n });\n\n // displays all current inventory in a fancy shmancy table thanks to cli-table package\n console.log(chalk.blue(\"CURRENT INVENTORY, HOT HOT HOT!!!\"));\n console.log(\"===========================================================================================\");\n for (var i = 0; i < res.length; i++) {\n table.push([res[i].id, res[i].product_name, res[i].department_name, res[i].price.toFixed(2), res[i].stock_quantity]);\n }\n console.log(\"-------------------------------------------------------------------------------------------\");\n console.log(table.toString());\n // call next function\n whatToBuy();\n })\n }", "function viewProducts() {\n connection.query(\"SELECT item_id, product_name, price, stock_quantity FROM products\", function (err, res) {\n if (err) throw err;\n console.log(\"\");\n console.table(res);\n connection.end();\n });\n}", "function showInventory() {\n var query = \"SELECT * FROM products\";\n connection.query(query, function (err, res) {\n if (err) throw err;\n var table = new Table({\n chars: {\n 'top': '═', 'top-mid': '╤', 'top-left': '╔', 'top-right': '╗'\n , 'bottom': '═', 'bottom-mid': '╧', 'bottom-left': '╚', 'bottom-right': '╝'\n , 'left': '║', 'left-mid': '╟', 'mid': '─', 'mid-mid': '┼'\n , 'right': '║', 'right-mid': '╢', 'middle': '│'\n }, head: ['ID', 'PRODUCT', 'DEPARTMENT', 'PRICE', 'IN STOCK']\n });\n for (let i = 0; i < res.length; i++) {\n table.push([res[i].item_id, res[i].product_name, res[i].department_name, res[i].price, res[i].stock_quantity]);\n }\n console.log(table.toString());\n menu();\n });\n}", "function viewLowInventory() {\n clearConsole();\n connection.query(\"SELECT * FROM products WHERE stock_quantity < 5\", function (err, response) {\n if (err) throw err;\n displayInventory(response);\n userOptions();\n })\n}", "function viewProducts() {\n connection.query(\"SELECT * FROM products\", function(error, results) {\n if (error) throw error;\n console.log(\"AVAILABLE ITEMS:\");\n for (var i = 0; i < results.length; i++) {\n console.log(results[i].id + ' | ' + results[i].product_name + ' | ' + '$'+results[i].price + ' | ' + results[i].stock_quantity);\n }\n });\n connection.end();\n}", "function viewInventory(){\n connection.query(\"SELECT * FROM products WHERE stock_quantity < 5\", function(err, res){\n if (err) throw err;\n for (var i = 0; i < res.length; i++){\n table.push(\n [\n res[i].item_id,\n res[i].product_name,\n res[i].department_name,\n res[i].price,\n res[i].stock_quantity\n ]);\n }\n console.log(table.toString());\n start(); \n })\n }", "function viewAllProducts() {\n //connection/callback function\n connection.query(\"SELECT * FROM products\", function(err, res) {\n if (err) throw err;\n console.log(\"All items currently available in marketplace:\\n\");\n console.log(\"\\n-----------------------------------------\\n\");\n for (var i = 0; i < res.length; i++) {\n console.log(\"Id: \".bold + res[i].item_id + \" | Product: \".bold + res[i].product_name + \" | Department: \".bold + res[i].department_name + \" | Price: \".bold + \"$\".bold +res[i].price + \" | QOH: \".bold + res[i].stock_quantity);\n }\n console.log(\"\\n-----------------------------------------\\n\");\n });\n\n}", "function viewProducts() {\n\tconnection.query(\"SELECT * FROM products\", function(err, res) {\n\t\tif (err) throw err;\n\t\tfor (var i = 0; i < res.length; i++) {\n\t\t\tconsole.log(\"---------------------------------------\" + \n\t\t\t\"\\nItem Id: \" + res[i].item_id + \"\\nProduct: \" + \n\t\t\tres[i].product_name + \"\\nPrice: \" + res[i].price + \n\t\t\t\"\\nQuantity in Stock: \" + res[i].stock_quantity);\n\t\t}\n\t\tstartOver();\n\t});\n}", "function listInventory() {\n //Variable creation from DB connection\n connection.query(\"SELECT * FROM products\", function (err, results) {\n for (var i = 0; i < results.length; i++) {\n\n var itemId = results[i].item_id,\n productName = results[i].product_name,\n price = results[i].price,\n stockQuantity = results[i].stock_quantity;\n\n table.push(\n [itemId, productName, price, stockQuantity]\n );\n }\n console.log(\"\");\n console.log(chalk.blue(\"==================================== \") + chalk.yellowBright(\"CURRENT BAMAZON PRODUCT INVENTORIES\") + chalk.blue(\" =========================================\"));\n console.log(\"\");\n console.log(chalk.greenBright(table.toString()));\n console.log(\"\");\n console.log(\"\");\n console.log(\"\");\n newTransaction();\n // connection.end();\n });\n }", "function viewProducts() {\n\tconnection.query(\"SELECT * FROM products\", function(err, res) {\n\t\tif(err) {\n\t\t\tthrow err\n\t\t};\n\t\tfor (var i =0; i < res.length; i++) {\n\t\t\tconsole.log(\"SKU: \" + res[i].item_id + \" | Product: \" + res[i].product_name \n\t\t\t\t+ \" | Price: \" + \"$\" + res[i].price + \" | Inventory: \" + res[i].stock_quantity)\n\t\t}\n\t\t// connection.end();\n\t\trunQuery();\n\t});\n}", "function displayInventory(){\n var query = \"SELECT productID, product_name, price FROM products\";\n connection.query(query, (err, result) => {\n if(err) throw err;\n for(var i = 0; i < result.length; i++){\n console.log(`ID: ${result[i].productID} || Product: ${result[i].product_name} || Price: ${result[i].price} `)\n }\n })\n}", "function viewProducts() {\n clearConsole();\n connection.query(\"SELECT * FROM products\", function (err, response) {\n if (err) throw err;\n displayInventory(response);\n userOptions();\n })\n}", "function inventory() {\n connection.query(\"SELECT * FROM products\", function (err, res) {\n if (err) throw err;\n //organizes the collumns i wish to display for each item\n for (var i = 0; i < res.length; i++) {\n console.log(`ID: ${res[i].id} || Name: ${res[i].product_name} || Department: ${res[i].department_name} || Price: $${res[i].price}`)\n }\n shopping();\n })\n}", "function displayItems()\n{\n\t//Select All from (products) table within (bamazon) DB\n\tconnection.query(\"SELECT * FROM products\", function(err, res)\n\t{\n\n\t\tif(err) throw err;\n\n\t\t//Display all products in table by looping through each row inside table\n\t\tfor(var i = 0; i < res.length; i++)\n\t\t{\n\t\t\tconsole.log(\"ID: \" + res[i].item_id + \" | \" +\n\t\t\t\t\t\t\"Product Name: \" + res[i].product_name + \" | \" +\n\t\t\t\t\t\t\"Category: \" + res[i].department_name + \" | \" +\n\t\t\t\t\t\t\"Price: \" + res[i].price );\n\t\t}\n\n\t\tconsole.log(\"-----------------------------------------------------------------\\n\");\n\n\t\t//Allow Customer to make purchase\n\t\tbuy();\n\n\t});\n}", "function viewProducts() {\n connection.query(\"SELECT item_id, product_name, department_name, price, stock_quantity FROM products\", function (err, res) {\n console.log(\"Products for sale\");\n for (var i = 0; i < res.length; i++) {\n console.log(\"======================\");\n console.log(\"Id: \" + res[i].item_id + \" || Department: \" + res[i].department_name + \" || Product: \" + res[i].product_name + \" || Price($): \" + parseFloat(res[i].price).toFixed(2) + \" || In stock: \" + res[i].stock_quantity);\n }\n });\n displayChoices();\n}", "function displayInventory() {\n\tconnection.query('SELECT * FROM products', function(err, res){\n\t\tif (err) throw err;\n console.log('=============================What would you like to buy?==============================');\n \n for(var i = 0; i<res.length;i++){\n console.log(\"ID: \" + res[i].item_id + \" | \" + \n \"Product: \" + res[i].product_name + \" | \" + \n \"Department: \" + res[i].department_name + \" | \" + \n \"Price: \" + res[i].price + \" | \" + \n \"QTY: \" + res[i].stock_quantity);\n console.log('======================================================================================'); \n };\n buyItem();\n });\n}", "function viewLowInventory() {\n connection.query(\"SELECT * FROM products WHERE stock_quantity < 5\", function(\n err,\n rows\n ) {\n if (err) throw err;\n if (rows.length === 0) {\n console.log(\"There are no products with stock lower than five units.\");\n } else {\n console.log(\"\");\n console.table(rows);\n console.log(\"=====================================================\");\n }\n menu();\n });\n}", "function viewLowInv() {\n connection.query(\"SELECT * FROM products WHERE stock_quantity <= 30\", function (err, results) {\n if (err) throw err;\n for (let i = 0; i < results.length; i++) {\n console.log(\"Item \" + results[i].item_id + \"| Product Name: \" + results[i].product_name + \"| Price: \" + results[i].price + \"| In Stock: \" + results[i].stock_quantity);\n }\n\n });\n connection.end();\n}", "function viewAll() {\n connection.query(\"SELECT * FROM products\", function (err, results) {\n if (err) throw err;\n for (let i = 0; i < results.length; i++) {\n console.log(\"Item \" + results[i].item_id + \"| Dept Name: \" + results[i].department_name + \"| Product Name: \" + results[i].product_name + \"| Price: \" + results[i].price + \"| In Stock: \" + results[i].stock_quantity);\n }\n connection.end();\n });\n}", "function displayStock() {\n\n //table creation using cli-table package\n var table = new Table({\n head: ['ID', 'PRODUCT', 'PRICE', 'IN STOCK'],\n colWidths: [6, 32, 14, 14],\n style: {'padding-left': 2, 'padding-right': 2}\n });\n for (var i = 0; i < stock.length; i++) {\n var item = stock[i];\n\n //if item is in stock, push to the table\n if (stock[i].StockQuantity > 0) {\n table.push([item.ItemID, item.ProductName, \"$\" + item.Price, item.StockQuantity]);\n }\n }\n clear();\n console.log(\"----------------------------------------------------------------------\");\n console.log(\" WELCOME TO BAMAZON CUSTOMER VIEW \");\n console.log(\" \");\n console.log(\" HERE IS WHAT WE HAVE IN STOCK \");\n console.log(\"----------------------------------------------------------------------\");\n //displays the table\n console.log(table.toString());\n}", "function getInventory() {\n connection.query(\"SELECT * FROM products\", function(err, inventoryRes) {\n if (err) {\n console.log(\"ERROR: \", err);\n }\n\n console.log(\"CURRENT INVENTORY: \");\n printTable(inventoryRes);\n console.log(\"\");\n\n purchase();\n });\n}", "function displayInventory() {\n\n var inventMsg = \"Inventory:\" + inventory;\n\n updateDisplay(inventMsg);\n\n }", "function viewLowInventory(){\n var query = connection.query(\"SELECT ID, Product_Name , Price, Stock_QTY FROM products WHERE Stock_Qty < 20;\", function(err, res) {\n console.log(\"\");\n console.table(res);\n console.log(\"\");\n managerAsk();\n });\n }", "function viewProducts(){\n var query = connection.query(\"SELECT ID, Product_Name , Price, Stock_QTY FROM products;\", function(err, res) {\n console.log(\"\");\n console.table(res);\n console.log(\"\");\n \n managerAsk();\n });\n }", "function viewProducts(query){\n \n //query mysql to see all info in table\n connection.query(query,\n function(err, res){\n if (err) throw err;\n // connection.end();\n itemsList=[];\n for (var i=0; i<res.length;i++){\n var item={}; //obj of each item for sale, holds...\n item.id=res[i].item_id; //item id from results\n item.name=res[i].product_name; //name\n item.price=res[i].price; //price\n item.quantity=res[i].stock_quantity; //quantity\n item={id:item.id, name:item.name, price:item.price, quantity:item.quantity};//put info into object\n itemsList.push({item:item}); //push object into array holding all items\n if (!addingInventory){\n console.log(item.id+\" \"+item.name+\" $\"+item.price+\" \"+item.quantity);\n };\n }\n console.log(\"\\n\"); \n // console.log(itemsList); \n if (!addingInventory){menu();}\n else {addInventory();};\n }\n );\n}", "function showInventory(job) {\n console.log(\"Your answer was \" + job);\n connection.query(\"SELECT * FROM products\", function(err, res) {\n if (err) throw err;\n console.log(\"\\n\");\n console.log(\" CURRENT INVENTORY \".bgRed.white);\n console.log(\"\\n\");\n console.log(\"\\n\");\n// build our table using table NPM\n var table = new Table({\n head: ['Item ID', 'Product', 'Price', 'Quantity']\n , colWidths: [20, 21, 25, 17]\n });\n for (var i = 0; i < res.length; i++) {\n table.push(\n [res[i].item_id, res[i].product_name, \"$\" + res[i].price, res[i].stock_quantity]\n );\n };\n console.log(table.toString());\n console.log(\"\\n\");\n console.log(\"\\n\");\n continueManaging();\n });\n \n}", "function viewLowInventory() {\n\n // console.log(\"Inside viewLowInventory()\");\n\n let queryString = \"SELECT * FROM products WHERE stock_quantity < 5\";\n\n let query = connection.query(queryString, function (err, res) {\n\n if (err) throw err;\n\n console.log(\"\\n\\n\");\n console.log(\"\\t\\t\\t---- Low Inventory Products ---- \\n\");\n\n console.log(\"\\t\" + \"ITEM ID\" + \"\\t\\t|\\t\" + \"ITEM NAME\" + \"\\t\\t|\\t\" + \"QUANTITY\");\n console.log(\"\\t\" + \"-------\" + \"\\t\\t|\\t\" + \"---------\" + \"\\t\\t|\\t\" + \"--------\");\n\n res.forEach(item =>\n console.log(\"\\t\" + item.item_id + \"\\t\\t|\\t\" + item.product_name + \"\\t\\t|\\t\" + item.stock_quantity)\n );\n\n //Call manager view\n console.log(\"\\n\\n\");\n bamazonManagerView();\n\n });\n}", "function viewProducts(){\n connection.query(\"SELECT * FROM products\", function(err, res) {\n if (err) throw err;\n displayTable(res);\n promptManager();\n });\n}", "function displayExpensesOverview(e) {\n\n var expansesTable = \"\";\n\n db.transaction([\"Expenses\"], \"readonly\").objectStore(\"Expenses\").openCursor().onsuccess = function(e) {\n var cursor = e.target.result;\n if(cursor) {\n expansesTable += \"<tr>\";\n expansesTable += \"<td>\"+cursor.key+\"</td>\";\n for(var key in cursor.value) {\n expansesTable += \"<td>\" + cursor.value[key] + \"</td>\";\n }\n expansesTable += \"</tr>\";\n cursor.continue();\n }\n document.querySelector(\"tbody\").innerHTML = expansesTable;\n }\n}", "function inventory() {\n connection.query(\"SELECT * FROM products\", function (err, res) {\n displayForManager(res);\n purchasePrompt();\n });\n}", "function displayInventory() {\n console.log(\"\");\n console.log(\"------------------------------------------------\");\n console.log(\"Here's a look at our current inventory selection\");\n console.log(\"------------------------------------------------\");\n console.log(\"\");\n\n // Instantiate CLI table\n var table = new Table({\n head: ['Item', 'Product Name', 'Price', 'Avail.'],\n colWidths: [10, 20, 10, 10]\n });\n\n // Code below pulls back all data from the productstable\n connection.query(\"SELECT * FROM productstable\", function(err, res) {\n if (err) throw err;\n for (var i = 0; i < res.length; i++) {\n // Code below pushing this into the CLI table package to display the inventory\n table.push(\n [res[i].item_id, res[i].product_name, res[i].price, res[i].stock_quantity]\n );\n }\n console.log(table.toString());\n console.log(\"\");\n });\n setTimeout(userPrompt, 1000);\n}", "function viewProds(){\n\t// adding space before rendered table\n console.log(oneLine);\n\n connection.query(\"SELECT item_id, product_name, department_name, price, stock_quantity FROM products;\", function(err, res){\n if(err) throw err;\n // console.log(res);\n\tvar aligns = [null, null, null, 'right', 'right'];\n // instantiate \n var tableInventory = new Table({\n \thead: ['Item ID', 'Product Name', 'Department', 'Price', 'Quantity']\n , colWidths: [10, 48, 18, 10, 10]\n , colAligns: aligns\n });\n\n // loop through products in store\n for(i=0; i<res.length; i++){\n // the tableInventory is an Array, so you can `push`, `unshift`, `splice` and the rest \n tableInventory.push(\n [res[i].item_id, res[i].product_name, res[i].department_name, res[i].price.toFixed(2), res[i].stock_quantity] // .toFixed(2) forces trailing zeros in prices\n ); \n };\n // giving the table a caption\n \tconsole.log(\"Current Products for Sale\");\n\n console.log(tableInventory.toString());\n\n // adding space AFTER rendered table\n \tconsole.log(oneLine);\n \tconsole.log(\"Use Up or Down Arrow Keys to Continue ...\")\n \tconsole.log(oneLine);\n \tgiveMeSpace();\n });\n}", "function inventory() { }", "function viewLowInventory(){\n\tvar query = \"SELECT * FROM products WHERE stock_quantity <= 5\";\n\tconnection.query(query, function(err, res){\n\t\tif (err) throw err;\n\t\tconsole.log(\"INVENTORY RUNNING LOW!!!!\");\n\t\tfor(i=0; i< res.length; i++){\n\t\t\tconsole.log(\"---|| ID \"+ res[i].item_id+\" ---|| NAME: \"+ res[i].product_name+\" ---|| QUANTITY \" + res[i].stock_quantity);\n\t\t};\n\t\taskAction();\n\t})\n\n}", "function viewLowInventory() {\n connection.query(\"SELECT * FROM products\", function(error, results) {\n if (error) throw error;\n console.log(\"LOW INVENTORY:\");\n for (var i = 0; i < results.length; i++) {\n if (results[i].stock_quantity < 5) {\n console.log(results[i].id + ' | ' + results[i].product_name + ' | ' + '$'+results[i].price + ' | ' + results[i].stock_quantity);\n }\n }\n });\n connection.end();\n}", "function viewLowInvetory(){\n //create a query to select products with stock qty < 5\n var lowprods = connection.query(\n 'select item_id, product_name, department_id, price, stock_qty, product_sales from products where stock_qty < 5', \n function(err, res){\n if(err){\n throw err;\n }\n else{\n console.log('\\n');\n console.table(res);\n managerMenu();\n }\n });\n}", "function showInventory() {\n inquirer\n .prompt([\n {\n type: \"confirm\",\n message: \"\\nVIEW INVENTORY\",\n name: \"confirm\",\n default: true\n }\n ])\n .then(function (inquirerResponse) {\n if (inquirerResponse.confirm) {\n connection.query(\"SELECT item_id, product_name, price FROM products\", function (err, res) {\n if (err) throw err;\n\n console.log(\"\\n \\n PRODUCTS LIST: \");\n console.log(\"---------------------------\\n\")\n\n var table = new Table({\n head: ['ID#', 'PRODUCT', 'PRICE']\n , colWidths: [10, 30, 20]\n });\n for (var i = 0; i < res.length; i++) {\n table.push(\n [res[i].item_id, res[i].product_name,\n res[i].price]\n );\n\n }\n placeOrder();\n console.log(table.toString());\n });\n }\n else {\n console.log(\"\\nThat's okay, maybe next time.\\n\");\n }\n });\n\n}", "function viewAllProducts() {\n connection.query('SELECT * FROM products', function(error, res) {\n if (error) throw error;\n var table = new Table({\n head: ['item_Id', 'Product Name', 'Price Per', 'Stock Qty']\n });\n\n for (i = 0; i < res.length; i++) {\n table.push(\n [res[i].item_id, res[i].product_name, \"$\" + res[i].price, res[i].stock_quantity]\n );\n }\n console.log(table.toString());\n connection.end();\n });\n}", "function viewProducts(){\n console.log(\"\\nView Every Avalailable Product in format:\");\n connection.query(\"SELECT * FROM products\", function(err, res) {\n if (err) throw err;\n console.log(\"'ItemID-->Product Description-->Department Name-->Price-->Product Quantity'\\n\");\n for (var i = 0; i < res.length; i++) {\n console.log(\"Item# \" + res[i].item_id + \"-->\" + res[i].product_name \n + \"-->\" + res[i].department_name + \"-->\" + res[i].price \n + \"-->\" + res[i].stock_quantity);\n }\n // console.table(\"\\nProducts Available:\",[\n // res\n // ])\n })\n setTimeout(function() { startManager(); }, 200);\n}", "function showItems() {\n connection.query( query , function (err, result, fields){\n if (err) throw err;\n for(i = 0; i < result.length; i++){\n console.log(\"\\n\" + colors.green(result[i].id) + \") \" + \"Item: \".yellow + result[i].product_name + \" |\".blue + \" Department: \".yellow + result[i].department + \" |\".blue + \" Price: \".yellow + \"$\"+ result[i].price + \" |\".blue + \" Stock: \".yellow + result[i].stock_qty + \"\\n------------------------------------\".blue);\n }\n })\n}", "function viewProducts(){\n\n\t// Query: Read information from the products list\n\tconnection.query(\"SELECT * FROM products\", function(viewAllErr, viewAllRes){\n\t\tif (viewAllErr) throw viewAllErr;\n\n\t\tfor (var i = 0; i < viewAllRes.length; i++){\n\t\t\tconsole.log(\"Id: \" + viewAllRes[i].item_id + \" | Name: \" + viewAllRes[i].product_name +\n\t\t\t\t\t\t\" | Price: \" + viewAllRes[i].price + \" | Quantity: \" + viewAllRes[i].stock_quantity);\n\t\t\tconsole.log(\"-------------------------------------------------------------------\");\n\t\t}\n\n\t\t// Prompts user to return to Main Menu or end application\n\t\trestartMenu();\n\t});\n}", "function displayInv() {\n connection.query(\"SELECT * FROM products\", function (err, results) {\n if (err) throw err;\n console.log(\"\\n______________WELCOME TO BAMAZON!______________\")\n console.log(\"\\n-------------- Current Inventory --------------\\n\")\n console.log(\" ID: | Name: | Dept: | Price: |\");\n for (let i = 0; i < results.length; i++) {\n var inv = results[i];\n console.log(\"\\n\" + \" \" + inv.item_id + \" | \" + inv.product_name +\n \" | \" + inv.department_name + \" | \" + inv.price +\n \" | \");\n }\n console.log(\"\\n---------------------------------------------\\n\")\n\n shop();\n })\n\n}", "function itemTable() { }", "function viewInventory() {\n console.log(\"viewInventory running\");\n connection.query(\n \"SELECT * FROM products WHERE stock_quantity < 5\",\n function(error, results) {\n if (error) throw error;\n\n for (var n=0; n < results.length; n++) {\n product = results[n];\n productId = product.item_id;\n productName = product.product_name;\n productPrice = parseInt(product.price);\n productQuantity = parseInt(product.stock_quantity);\n\n string = productId + \" | \" + productName + \" | $\" + productPrice + \" | \" + productQuantity;\n console.log(string);\n } \n }\n ) // close SQL query\n} // close viewInventory()", "function viewLowInventory() {\n connection.query(\"SELECT * FROM products WHERE stock_quantity < 5\", function (err, res) {\n if (err) throw err;\n let items = '';\n for (var i = 0; i < res.length; i++) {\n items = '';\n items += 'Product Name: ' + res[i].product_name + ' // ';\n items += 'Quantity: ' + res[i].stock_quantity + '\\n';\n console.log(items.toUpperCase());\n\n }\n return setTimeout(function () {\n managerPortal()\n }, 4000);\n })\n}", "function lowInventory (err, results) {\n if (err) {\n console.log(err)\n }\n console.table(results)\n mainMenu()\n}", "function showItemsFor(ctx){\n\tvar selectedRow = ctx.row;\n\tvar dataSource = ctx.grid.getDataSource();\n\tvar selection = []; \n\t// get group by selection from datasource definition\n\tdataSource.fieldDefs.each(function(fieldDef){\n\t\tif (fieldDef.groupBy) {\n\t\t\t//var fieldId = fieldDef.id;\n\t\t\t// we must read column name from parameters\n\t\t\tvar paramName = fieldDef.id.substr(fieldDef.id.indexOf('.')+1);\n\t\t\tvar columnId = selectedRow.panel.parameters[paramName];\n\t\t\tvar fieldValue = selectedRow.getFieldValue(fieldDef.id);\n\t\t\tselection.push({id: columnId, value: fieldValue});\n\t\t}\n\t});\n\tvar controller = View.controllers.get(\"abRepmPfadminItemsByLocationController\");\n\tcontroller.showPortfolioItemsFor(selection);\n}", "function showitem(){\n //mysql query to view all the table information \n connection.query(\"select * from products \",function(err,res){\n if(err)throw err;\n console.log(\"Item Id\"+colomnspace(6) + \"Product Name\" + colomnspace(23) + \"Price\" + colomnspace(11)+\"stock quantity\"+ colomnspace(4) + \"product sales\");\n for (var j = 0; j < res.length ; j++){\n //product name length \n var y=(res[j].product_name).length;\n //item id length\n var z=(res[j].item_id).toString().length;\n // console.log(z);\n var w=(res[j].stock_quantity).toString().length;\n var x=(res[j].price).toString().length;\n console.log(res[j].item_id + colomnspace(13-z) + res[j].product_name + colomnspace(35-y)+ \"$\"+res[j].price+\n colomnspace(15-x)+ res[j].stock_quantity + colomnspace(18-w)+res[j].product_sales);\n }\n productid(res);\n // connection.end();\n });\n }", "function viewLowInventory() {\n connection.query(\"SELECT item_id, product_name, price, department_name, stock_quantity FROM products\", function (err, res) {\n if (err) throw err;\n\n console.log(\"Following items are low in stock:\")\n var lowInventoryFound = false;\n for (var i = 0; i < res.length; i++) {\n if (parseInt(res[i].stock_quantity) < 5) {\n lowInventoryFound = true;\n console.log(\"==============================\");\n console.log(\"Id: \" + res[i].item_id + \" || Department: \" + res[i].department_name + \" || Product: \" + res[i].product_name + \" || Price($): \" + parseFloat(res[i].price).toFixed(2) + \" || In stock: \" + res[i].stock_quantity);\n }\n }\n if (!lowInventoryFound) {\n console.log(\"You do not have any items on low inventory\");\n }\n });\n displayChoices();\n}", "function viewProducts () {\n con.query(\"SELECT * from vw_ProductsForSale\", function (err, result) {\n if (err) {\n throw err;\n }\n else {\n var table = new Table({\n\t\t head: ['Product Id', 'Product Name', 'Department','Price','Quantity'],\n\t\t style: {\n\t\t\t head: ['blue'],\n\t\t\t compact: false,\n\t\t\t colAligns: ['center','left','left','right','right']\n\t\t }\n\t });\n\n\t //loops through each item in the mysql database and pushes that information into a new row in the table\n\t for(var i = 0; i < result.length; i++) {\n\t\t table.push(\n\t\t\t [result[i].Product_Id, result[i].Product_Name, result[i].Department, result[i].Price, result[i].Quantity]\n\t\t );\n\t }\n \n console.log(table.toString());\n runManageBamazon();\n }\n });\n }", "function listlowInventory() {\n //Variable creation from DB connection\n connection.query(\"SELECT * FROM products WHERE stock_quantity <= 3\", function (err, results) {\n for (var i = 0; i < results.length; i++) {\n\n var itemId = results[i].item_id,\n productName = results[i].product_name,\n stockQuantity = results[i].stock_quantity;\n\n table.push(\n [itemId, productName, stockQuantity]\n );\n }\n console.log(\"\");\n console.log(chalk.blue(\"============================ \") + chalk.yellowBright(\"BAMAZON LOW PRODUCT INVENTORIES\") + chalk.blue(\" =================================\"));\n console.log(\"\");\n console.log(chalk.greenBright(table.toString()));\n console.log(\"\");\n console.log(\"\");\n console.log(\"\");\n newTransaction();\n // connection.end();\n });\n }", "function viewItemToEdit(item) {\n\t\tOverlayModule.enableOverlay();\n\t\tvar viewProduct = findItem(item)[0];\n\t\tvar div = document.getElementById(\"itemImage\");\n\t\tdiv.src = \"images/\"+item+\".jpg\";\n\n\n\t\tvar itemFullName = viewProduct.p_variation + \" \" + viewProduct.p_name;\n\t\tvar itemCurrency = viewProduct.c_currency;\n\t\tvar itemName = viewProduct.p_name;\n\t\tvar itemMRPrice = viewProduct.p_originalprice;\n\t\tvar itemPrice = viewProduct.p_price;\n\t\tvar itemAvailSizes = viewProduct.p_available_options.sizes;\n\t\tvar itemAvailColors = viewProduct.p_available_options.colors;\n\t\t$(\"#iId\").attr(\"value\", viewProduct.p_id);\n\t\t$(\"#iFullName\").html(itemFullName);\t\n\t\t$(\"#iCurrency\").html(itemCurrency);\n\t\t$(\"#iName\").html(itemName);\t\t\t\t\n\t\t$(\"#iMRPrice\").html(itemMRPrice);\t\t\t\t\n\t\t$(\"#iPrice\").html(itemPrice);\t\t\t\t\n\n\t\tif (itemMRPrice === itemPrice) {\n\t\t\t$(\"#iMRPrice\").css(\"visibility\", \"hidden\");\n\t\t\t$(\"#iMRPrice\").html(\"\");\n\t\t}\n\n\t\tfor (var i=0; i < itemAvailColors.length; i++){\n\t\t\t$('ul#iColorOption').append(\"<li id='\"+itemAvailColors[i].hexcode+\"' class='colorOps' style = 'background-color:\"+itemAvailColors[i].hexcode+\"' title='\"+itemAvailColors[i].name+\"'></li>\");\n\t\t}\n\t\tfor (var i=0; i < itemAvailSizes.length; i++){\n\t\t\t$('#iSizeOption').append(new Option(itemAvailSizes[i].code.toUpperCase(), itemAvailSizes[i].name));\n\t\t}\n\t\treturn;\n\t}", "function showItems() {\n connection.query(\"SELECT item_id, product_name, price FROM products\", function (err, res) {\n if (err) throw err;\n console.table(res)\n // for (var i = 0; i < res.length; i++) {\n // console.log(\"Item ID: \" + res[i].item_id + \"\\n\" + \"Product Name: \" + res[i].product_name + \"\\n\" + \"Price: \" + res[i].price + \"\\n-------------------------\");\n // }\n orderItemsPrompt();\n });\n}", "function listinventory() {\n\n //Variables from my DataBase\n \n connection.query(\"SELECT * FROM products\", function(err,res) {\n for (var i = 0; i < res.lenght; i++) {\n\n var itemId = res[i].item_id,\n productName = res[i].product_name,\n departmentName = res[i].department_name,\n price = res[i].price,\n stockQuantity = res[i].stock_quantity;\n\n table.push(\n [itemId, productName, departmentName, price, stockQuantity]\n );\n }\n console.log(\"\");\n console.log(\"============================ Zohars Bamazon inventory =================\");\n console.log(\"\");\n console.log(table.toString());\n console.log(\"\");\n continuePrompt();\n });\n\n \n }", "function lowInventory(con) {\n\tvar queryString = \"SELECT * FROM products\";\n\n\tcon.query(queryString, function(error, rows, fields) {\n\t\tif(error) throw error;\n\t\tvar table = new Table({ head: ['Item ID', 'Product Name', 'Department Name', 'Price', 'Stock'], \n\t colWidths: [10, 25, 20, 10, 10]\n\t\t});\n\n\t\tvar ids = [];\n\t\tvar quantities = [];\n\t\tfor(var i in rows) {\n\t\t\tif(rows[i].stock_quantity < 5) {\n\t\t\t\ttable.push([rows[i].item_id, rows[i].product_name, rows[i].department_name, rows[i].price, rows[i].stock_quantity]);\n\t\t\t}\n\t\t}\n\t\tconsole.log(\"\\n\\n\")\n\t\tconsole.log(table.toString());\n\t\tconsole.log(\"\\n\\n\")\n\t});\n}", "function listAllItems(vendingInventory) {\n $(\"#itemAreaMainDiv\").empty();\n var rowLetters = [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\"];\n var row_header = \"<div class='row text-center'>\";\n var colDiv = \"<div class='col-sm-4 item-container'>\";\n\n\n var numItems = vendingInventory.length;\n var numRows = 0;\n\n if (numItems % 3 === 0) {\n numRows = numItems / 3;\n } else {\n numRows = (numItems - numItems % 3) / 3 + 1;\n }\n\n var itemList = [];\n var letterIndex = 0;\n var numIndex = 0;\n\n\n // Go through the returned item list and build a list of element objects.\n // Each object contains the complete HTML for one item\n $.each(vendingInventory, function (index, item) {\n\n numIndex += 1;\n if (index % 3 === 0 && index > 0) {\n letterIndex += 1;\n numIndex = 1;\n }\n\n var itemDisplayId = rowLetters[letterIndex] + numIndex;\n\n\n itemList[index] =\n \"<a class = 'itemBox'>\" +\n \"<div class='item rounded'>\" +\n \"<div class='itemInner'>\" +\n \"<div class='itemDisplayNumber' id='\" + itemDisplayId + \"'>\" + itemDisplayId + \"</div>\" +\n \"<div class='itemName'>\" + item.name + \"</div>\" +\n \"<div class='itemPrice'>$\" + item.price.toFixed(2) + \"</div>\" +\n \"<div class='itemQuantity'>Remaining: \" + item.quantity + \"</div>\" +\n \"<div class='itemNumber' id='\" + item.id + \"'>\" + item.id + \"</div>\" +\n \"</div></div></a>\";\n });\n\n // Blank place holder to be used if there are no more items\n var blankSpace = \"<a class = 'itemBox'>\" +\n \"<div class='item rounded'>\" +\n \"<div class='itemInner'>\" +\n \"<div class='itemDisplayNumber'>&nbsp</div>\" +\n \"<div class='itemName'>< No Item ></div>\" +\n \"<div class='itemPrice'>&nbsp</div>\" +\n \"<div class='itemQuantity'>&nbsp</div>\" +\n \"<div class='itemNumber' id='-1'>&nbsp</div>\" +\n \"</div></div></a>\";\n\n\n // Go through the list of items and construct each row by taking them 3 at a time.\n var index = 0;\n for (var j = 0; j < numRows; j++) {\n var rowContent = row_header;\n for (var i = 0; i < 3; i++) {\n // build the item\n\n if (index > itemList.length){\n rowContent += colDiv + blankSpace + \"</div>\";\n } else {\n rowContent += colDiv + itemList[index] + \"</div>\";\n }\n\n index += 1;\n }\n rowContent += \"</div>\";\n\n // Finally, post the items to the main item grid\n $(\"#itemAreaMainDiv\").append(rowContent);\n }\n\n\n $(\"#itemAreaMainDiv\").append(\"<div style='text-align: left; color: #e7e8ea; font-size: 12px;\" +\n \"margin-bottom: -10px; margin-left: -5px;'>\" +\n \"Danimae Janssen - 2017</div>\");\n\n\n // Listen for item clicks so they can be loaded\n $(\".itemBox\").on(\"click\", function () {\n var itemId = $(this).find('div.itemNumber').attr('id');\n var displayId = $(this).find('div.itemDisplayNumber').attr('id');\n\n loadItem(itemId, displayId);\n });\n\n\n}", "function display_ItemView(parentDiv) {\n\n\tvar previousSelection = $(\".ActiveItem\");\n\n\tvar view = $('#itemView');\n \n //put the elements being viewed back to their parent\n\tif (view.children().length>0 ) {\n\t\tview.children().appendTo(previousSelection);\n\t\tview.empty();}\n\n\tpreviousSelection.removeClass(\"ActiveItem\");\n\tparentDiv.addClass(\"ActiveItem\");\n\t\n\t//toggle the button if it's the same one pressed\n\tif(previousSelection.attr('id') === parentDiv.attr('id')){\n\t\tpreviousSelection.children().toggle();\n\t\tparentDiv.removeClass(\"ActiveItem\");\t\t\n\t\treturn;};\n\n\t//make 'mods' below all of the items\n parentDiv.children().not(\"[name='mods']\").prependTo(view);\n\tparentDiv.children(\"[name='mods']\").appendTo(view);\n\n\tparentDiv.siblings().children().not('#itemView').css('display','none');\n\tview.css('display','block');\n\tview.children().toggle();\t\n}", "currentInventory() {\n const inv = [];\n const allItems = Object.keys(this.product);\n allItems.forEach(item => {\n inv.push(`${this.product[item].name}: ${this.product[item].quanity}`);\n });\n return inv;\n }", "recordInventory(){\r\n this._listProduct();\r\n }", "function displayInventory(myArray) {\r\n\tvar space = 0; //inventory space\r\n\tfor(var i = 0; i < myArray.length; i++) {\r\n\t\tfor(var j = 0; j < itemStorageArray.length; j++) {\r\n\t\t\tif(myArray[i] == itemStorageArray[j].code) {\r\n\t\t\t\tget(\"item\" + i).style.display = \"block\";\r\n\t\t\t\tget(\"item\" + i).innerHTML = itemStorageArray[j].simpleName;\r\n\t\t\t\t\r\n\t\t\t\tif(itemStorageArray[j].category == \"item\") {\r\n\t\t\t\t\tget(\"icon\" + i).style.display = \"block\";\r\n\t\t\t\t\tget(\"icon\" + i).style.background = \"url(images/item-icon.png)\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(itemStorageArray[j].category == \"potion\") {\r\n\t\t\t\t\tget(\"icon\" + i).style.display = \"block\";\r\n\t\t\t\t\tget(\"icon\" + i).style.background = \"url(images/potion-icon.png)\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(itemStorageArray[j].category == \"weapon\") {\r\n\t\t\t\t\tget(\"icon\" + i).style.display = \"block\";\r\n\t\t\t\t\tget(\"icon\" + i).style.background = \"url(images/weapon-icon.png)\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(itemStorageArray[j].category == \"armor\") {\r\n\t\t\t\t\tget(\"icon\" + i).style.display = \"block\";\r\n\t\t\t\t\tget(\"icon\" + i).style.background = \"url(images/armor-icon.png)\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\tspace += 1; //set space to the amount of items\r\n\t}\r\n\t//displaySpace(space);\r\n}", "function viewLow() {\n //look in database for items less or equal to 5 and display them\n connection.query(\"SELECT * FROM products WHERE stock_quantity<=?\", [5], function (err, res) {\n if (err) throw err;\n\n var table = new Table({\n head: [\"ID\", \"PRODUCT NAME\", \"DEPARTMENT NAME\", \"PRICE\", \"STOCK\"]\n , colWidths: [5, 30, 20, 10, 10]\n });\n for (var i = 0; i < res.length; i++) {\n table.push([res[i].id, res[i].product_name, res[i].department_name, res[i].price, res[i].stock_quantity]);\n }\n console.log(table.toString());\n listChoices();\n })\n}", "function btn_displayInventory() {\n var msg = \"Inventory: \" + inventory;\n updateDisplay(msg);\n}", "function viewLowInventory() {\n connection.query('SELECT * FROM products WHERE stock_quantity < 5', function(err,results) {\n if (results == '') {\n console.log('\\n There are no products with lower than 5 in the Inventory');\n promptManager();\n } else {\n // console.log(results)\n console.log('\\n All products with quantity lower than 5 shown in Inventory Table\\n');\n displayForManager(results);\n promptManager();\n } \n })\n}", "function viewProducts() {\n connection.query(\"SELECT * FROM products\", function(err, rows) {\n if (err) throw err;\n console.log(\"\");\n console.table(rows);\n console.log(\"=====================================================\");\n menu();\n });\n}", "function viewLowInven(cb) {\n connection.query('SELECT * FROM products WHERE StockQuantity < 5',\n function(err, res) {\n if (err) throw err;\n //if there are no items in stock quantity alert the user and rerun\n if (res.length === 0) {\n console.log(\"There are currently no items with low inventory!\");\n cb();\n\n }else {\n //This creates the CLI table\n var table = new Table({\n head: ['ID', 'Product Name', 'Department', 'Price', 'StockQuantity']\n });\n for (var i = 0; i < res.length; i++) {\n table.push([res[i].id, res[i].ProductName, res[i].DepartmentName, res[i].Price, res[i].StockQuantity]);\n\n }\n }console.log(table.toString());\n console.log('These are all items that are low on inventory.');\n cb();\n }\n})\n\n}", "function getAssignedInventory() {\n inventoryList.empty();\n\n $.get(\"/api/inventory-assigned\", function (data) {\n var rowsToAdd = [];\n for (var i = 0; i < data.length; i++) {\n rowsToAdd.push(createInventoryRow(data[i]));\n }\n renderInventoryList(rowsToAdd);\n });\n }", "function viewSaleProduct() {\n connection.query(\"SELECT * FROM store\", function (err, results) {\n if (err) throw err;\n console.table(results);\n })\n}", "function tableView() {\n\tconnection.query(\"SELECT item_id, product_name, department_name, price, stock_quantity FROM products\", function(err, results) {\n if (err) throw err;\n\n// table \n\tvar table = new Table({\n \thead: ['ID#', 'Item Name', 'Department', 'Price($)', 'Quantity Available'],\n \t colWidths: [10, 20, 20, 20, 20],\n \t style: {\n\t\t\t head: ['cyan'],\n\t\t\t compact: false,\n\t\t\t colAligns: ['center'],\n\t\t }\n\t});\n//Loop through the data\n\tfor(var i = 0; i < results.length; i++){\n\t\ttable.push(\n\t\t\t[results[i].item_id, results[i].product_name, results[i].department_name, results[i].price, results[i].stock_quantity]\n\t\t);\n\t}\n\tconsole.log(table.toString());\n\n });\n}" ]
[ "0.69774467", "0.6840686", "0.6809285", "0.67614305", "0.6634676", "0.66144264", "0.65712404", "0.64476293", "0.6440312", "0.6438192", "0.6428924", "0.64040977", "0.6378214", "0.6331662", "0.63025576", "0.62754565", "0.6212317", "0.61818695", "0.61768633", "0.6151363", "0.6146462", "0.61434025", "0.6130829", "0.61303264", "0.6105286", "0.61040306", "0.609444", "0.6079899", "0.6071208", "0.6068577", "0.6065889", "0.60633093", "0.60439163", "0.60352993", "0.60342777", "0.60210806", "0.60041", "0.5999241", "0.5999139", "0.5997947", "0.5997364", "0.59874326", "0.5984621", "0.5983876", "0.5982673", "0.5979689", "0.5969273", "0.594939", "0.5939114", "0.59378797", "0.59158933", "0.59074014", "0.59053564", "0.5887638", "0.58816415", "0.58807766", "0.58549297", "0.5850921", "0.5847385", "0.5843832", "0.5842752", "0.58288616", "0.5811461", "0.5805224", "0.5798288", "0.5797636", "0.5797078", "0.5793162", "0.5793049", "0.5790323", "0.57824355", "0.57792234", "0.5773941", "0.5762112", "0.57584417", "0.57565224", "0.5752673", "0.5745881", "0.5740024", "0.5735388", "0.5735072", "0.57290334", "0.5703509", "0.5701138", "0.5694804", "0.56778616", "0.56704694", "0.5668065", "0.56680167", "0.56570435", "0.56559336", "0.56539327", "0.5653901", "0.5651215", "0.56480855", "0.5645566", "0.56430733", "0.5636345", "0.56359106", "0.56316274" ]
0.6215763
16
==================================================================================================================================================== PURCHSE QUESTIONS FUNCTION ====================================================================================================================================================
function purchaseQuestions() { inquirer .prompt([ { type: "input", name: "id", message: "Enter the ID of the product you would like to purchase." }, { type: "input", name: "amount", message: "How many units would you like?" } ]).then(function (answer) { productId = answer.id; quantity = answer.amount; itemPurchase(); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteQs() {\n return db.Question.remove({})\n}", "function deleteUsed (){\n\tif(Questions.length > 0) {\n\t\tQuestions.splice(Questions.indexOf(question),1);\n\t} else {\n\t\tdocument.getElementById('answerT').style.display=\"none\";\n\t\tdocument.getElementById('answerF').style.display=\"none\";\n\t\tdocument.getElementById('questions').style.display=\"none\";\n\t\tdocument.getElementById('looser').style.display=\"\";\n\t\tdocument.getElementById('reset').style.display=\"\";\n\t}\n}", "async deleteQuestion() {\n const questions = await Question.query().where('user_id', this.id);\n\n if (questions) {\n questions.map(question => question.deleteAnswer());\n\n await Question.query()\n .delete()\n .where('user_id', this.id);\n }\n\n return questions;\n }", "function resetQuestions()\n{\n questions = [\n {\n \"q\": \"What keyword is used to declare a variable?\",\n \"o\": [\"const\", \"var\", \"let\", \"all of the above\"],\n \"a\": 3, // o[3] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"What is the correct syntax to print a page?\",\n \"o\": [\"browser.print()\", \"navigator.print()\", \"window.print()\", \"document.print()\"],\n \"a\": 2, // o[2] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"Which built-in method removes the last element from an array and returns it?\",\n \"o\": [\"last()\", \"pop()\", \"get()\", \"none of the above\"],\n \"a\": 1, // o[1] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"Which built-in method reverses the order of the elements of an array?\",\n \"o\": [\"reverse()\", \"flip()\", \"zToA()\", \"mirror()\"],\n \"a\": 0, // o[0] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"Which of the following function of String object extracts a section of a string and returns a new string?\",\n \"o\": [\"split()\", \"slice()\", \"section()\", \"cut()\"],\n \"a\": 1, // o[1] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"What is the HTML tag under which one can write the JavaScript code?\",\n \"o\": [\"javascript\", \"script\", \"js\", \"code\"],\n \"a\": 1, // o[1] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"What method is used to display an alert box?\",\n \"o\": [\"popUp()\", \"display()\", \"alert()\", \"log()\"],\n \"a\": 2, // o[2] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"Inside of the script tag, how do you link to an external .js file?\",\n \"o\": [\"src=\\\"filepath\\\"\", \"href=\\\"filepath\\\"\", \"ref=\\\"filepath\\\"\", \"path=\\\"filepath\\\"\"],\n \"a\": 0, // option 1 is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"for (var x = 0; x <= 5; x++) { window.alert(\\\"Hello\\\"); }\\nHow many time's will an alert window pop up?\",\n \"o\": [\"1\", \"4\", \"5\", \"6\"],\n \"a\": 3, // o[3] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n },\n {\n \"q\": \"var x = 0; if (x == 0) { let x = 10; } console.log(x) \\nWhat is logged to the console?\",\n \"o\": [\"10\", \"0\", \"5\", \"error\"],\n \"a\": 1, // o[1] is the answer\n \"getAnswer\": function() { return this.o[this.a]; }\n }\n ];\n}", "function populate() {\n// alert(\"function populate started\");\n// this function gives each of the answers 0 points so if someone doesn't answer a question\n// the whole thing will continue to work\n for(var i=0; i<3; i++) { Quest[i]=0; }\n}", "function resetQuestion(){\n\t\t$(\".lyrics\").empty();\n\t}", "function deleteQ(){\n var pageElement = document.querySelector(\".sub-question-area\");\n pageElement.remove();\n }", "function removeQuestion() {\n $('#answer-list').children().remove();\n $('h3').children().remove();\n}", "function populate() {\n// alert(\"function populate started\"); \n// this function gives each of the answers 0 points so if someone doesn't answer a question\n// the whole thing will continue to work \n for(var i=0; i<3; i++) { Quest[i]=0; } \n}", "function removeAllQuestion(){\n\t\t$scope.newExam.questions = [];\n\t\t$scope.newExam.numberQuestion = 0;\n\t}", "function handleQuestions() { \n while (shuffledQuestions.length <= 7) {\n const random = questions[Math.floor(Math.random() * questions.length)];\n if (!shuffledQuestions.includes(random)) {\n shuffledQuestions.push(random);\n }\n }\n }", "setUnanswered (state, questions) {\n // To intitially load the questions from the JSON file you made earlier\n state.unansweredQuestions = questions\n }", "function populate() { \n// alert(\"function populate started\"); \n// this function gives each of the answers 0 points so if someone doesn't answer a question \n// the whole thing will continue to work \n for(var i=0; i<5; i++) { Quest[i]=0; } \n}", "function removeQuestionFromLocalStorage() {\n\tvar questions = getStoredQuestions();\n\tvar pos = getIndex(questions, expandedQuestion.id, \"id\");\n\tquestions.splice(pos, 1);\n\tstoreQuestions(questions);\n }", "function clearUserAnswers() {\n for(i = 0; i < questions.length; i++) {\n questions[i].userAnswer = null;\n }\n}", "function questionOrder() {\n for (i = 0; i < holdQuestions.length; i++) {\n do {\n let question = Math.floor(Math.random() * holdQuestions.length);\n if (!questionsArray.includes(holdQuestions[question])) {\n questionsArray.push(holdQuestions[question]);\n }\n } while (questionsArray.length < holdQuestions.length)\n }\n}", "function cleanQuora(){\r\n //look for the blurred answers\r\n var elems = document.getElementsByTagName(\"*\"), i;\r\n \r\n for (i in elems) {\r\n if((' ' + elems[i].className + ' ').indexOf(' ' + \"blurred_answer\" + ' ')\r\n > -1) {\r\n //get its parent for navigation\r\n var parent=elems[i].parentNode;\r\n \tvar answer_holder=parent.parentNode.parentNode.parentNode;\r\n //parent should be answer_content\r\n parent.innerHTML = \"Unblurring... <img src='http://d1vgw4v7ja2ido.cloudfront.net/-6e797f99a0bd554c.gif' />\";\r\n \r\n\t\t\t\t\t\t//quora seems to have deleted the \"related answers\" section\r\n\t\t\t\t\t\t//i have cleaned up the additional stuff related to it from the code\r\n\t\t\t\t\t\t//however, i am leaving the \"quoraURLfriendly\" function in the code, as might come in handy in future \r\n \r\n if(\r\n\t\t\t\t\t\t\t(answer_holder.children[0].children[0].children[0].children[0])&&\r\n\t\t\t\t\t\t\t(answer_holder.children[0].children[0].children[0].children[0].children[0])&&\r\n\t\t\t\t\t\t\t(answer_holder.children[0].children[0].children[0].children[0].children[0].children[0])&&\r\n\t\t\t\t\t\t\t(answer_holder.children[0].children[0].children[0].children[0].children[0].children[0].firstChild)\r\n\t\t\t\t\t\t){\r\n \t\t//this checks for the \"originally answered\" answers. their permalink is different from other answers on the current page\r\n \t\t//prone to change...\r\n \t\tvar base=(answer_holder.children[0].children[0].children[0].children[0].children[0].children[0].firstChild.href);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t//regular answer\r\n\t\t\t\t\t\t\tvar base=document.URL;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n var answer_string=parent.parentNode.parentNode.parentNode.getAttribute( 'id' );\r\n answer_string=answer_string.substring(3);\r\n var target_href=forgeAnswerLink(base,answer_string); \r\n \r\n var final_string=xml_req(parent,target_href);\r\n }\r\n }\r\n}", "function takeQuestions() {\n\t\tlet questions=[]\n\t\tinputList=questionsContent.childNodes\n\t\tfor (i=0;i<inputList.length;i++) {\n\t\t\tquestions.push([inputList[i].querySelector('.question').value,inputList[i].querySelector('.anserw').value])\n\t\t}\n\t\tquestions.forEach(function(el) {\n\t\t\tif (el[0].length===0) {el[0]=' '}\n\t\t\tif (el[1].length===0) {el[1]=' '}\n\t\t})\n\t\treturn questions\n\t}", "function createQuestions() {\n questions = [\n new TriviaQuestion(\"What is the name of bar the gang frequently visits?\",\n \"MacLaren's\",\n [\"MacLaren's\",\n \"MacLoughlin's\",\n \"MacLure's\",\n \"MacMaster's\"]\n ),\n new TriviaQuestion(\"What color and instrument does Ted steal for Robin?\",\n \"Blue French Horn\",\n [\"Blue French Horn\",\n \"Blue Trumpet\",\n \"Red French Horn\",\n \"Red Trumpet\"]\n ),\n new TriviaQuestion(\"Which acronym does Barney use to describe his job?\",\n \"P.L.E.A.S.E.\",\n [\"P.L.E.A.S.E.\",\n \"S.E.C.R.E.T.\",\n \"W.O.R.K.\",\n \"S.T.O.P.\"]\n ),\n new TriviaQuestion(\"What is the first Robin Sparkles song the gang listens to?\",\n \"Let's Go To The Mall\",\n [\"Let's Go To The Mall\",\n \"Sandcastles in the Sand\",\n \"The Beaver Song\",\n \"P.S. I Love You\"]\n ),\n new TriviaQuestion(\"What are the names of Ted's children?\",\n \"Luke and Penny\",\n [\"Luke and Penny\",\n \"Adam and Sara\",\n \"David and Jenna\",\n \"Jerry and Emily\"]\n ),\n new TriviaQuestion(\"If they owned a bar, what would Ted and Barney name it?\",\n \"Puzzles\",\n [\"Puzzles\",\n \"Clues\",\n \"Questions\",\n \"Kisses\"]\n ),\n new TriviaQuestion(\"What year is it when Ted is telling his children how he met their mother?\",\n \"2030\",\n [\"2030\",\n \"2015\",\n \"2020\",\n \"2025\"]\n ),\n new TriviaQuestion(\"At what occasion does Ted find a goat in his apartment?\",\n \"His 31th birthday\",\n [\"His 31th birthday\",\n \"His 30st birthday\",\n \"New Year's Day\",\n \"Halloween\"]\n ),\n new TriviaQuestion(\"Who narrates the show?\",\n \"Bob Saget\",\n [\"Bob Saget\",\n \"Jason Segel\",\n \"Josh Radnor\",\n \"Neil Patrick Harris\"]\n ),\n new TriviaQuestion(\"How many seasons are in the series?\",\n \"9\",\n [\"9\",\n \"7\",\n \"8\",\n \"10\"]\n ),\n new TriviaQuestion(\"Who is Robin's archenemy?\",\n \"Patrice\",\n [\"Patrice\",\n \"Clarisse\",\n \"Clara\",\n \"Paula\"]\n ),\n new TriviaQuestion(\"Which trio attended the same university together?\",\n \"Ted, Marshall, and Lily\",\n [\"Ted, Marshall, and Lily\",\n \"Marshall, Barney, and Ted\",\n \"Lily, Marshall, and Barney\",\n \"Robin, Lily, and Marshall\"]\n ),\n new TriviaQuestion(\"Which one of these is not one of Barney's catchphrases?\",\n \"Bottom's up!\",\n [\"Bottom's up!\",\n \"Legendary\",\n \"Have you met Ted?\",\n \"Suit up!\"]\n ),\n new TriviaQuestion(\"Which character got a tattoo of a butterfly on his/her lower back?\",\n \"Ted\",\n [\"Ted\",\n \"Barney\",\n \"Marshall\",\n \"Lily\"]\n ),\n new TriviaQuestion(\"Who is Linus?\",\n \"Lily's bartender\",\n [\"Lily's bartender\",\n \"One of Robin's exes\",\n \"Barney's half brother\",\n \"Ted's high school best friend\"]\n )\n ]\n }", "function questionChooser() {\n var remainingQuestions = [];\n for (i = 0; i < triviaContent.length; i++) {\n if (triviaContent[i].status === \"unused\") {\n remainingQuestions.push(i);\n }\n }\n if (questionsCompleted < 8) {\n var randomQuestion =\n remainingQuestions[\n Math.floor(Math.random() * remainingQuestions.length)\n ];\n currentQuestion = randomQuestion;\n triviaContent[randomQuestion].status = \"used\";\n var questionh3 = $(\"<h3>\").text(triviaContent[randomQuestion].question);\n questionh3.attr({ id: \"question\", class: \"animated flipInX\" });\n $(\"#question-section\").append(questionh3);\n printTimer();\n } else {\n endScreen();\n }\n }", "function setQuestions(){\n for(i = 0; i < quizLength; i++){\n var randomNum = Math.floor(Math.random() * quiz.length);\n if(questionsArray.indexOf(randomNum) != -1){\n i--;\n } else {\n questionsArray.push(randomNum);\n }\n }\n }", "function resetWholeQuestion(){\n\t\tresetQuestion();\n\t\tresetChoices();\t\n\t}", "function populateQuestions() {\n const twentyQuestionsArray = getAllQuestionsAndAnswers();\n return buildQuestions(twentyQuestionsArray, 10);\n}", "function deleteQuestion(req, res) {\n try {\n var _a = req.params, qUuid = _a.qUuid, uuid = _a.uuid; // qUuid: question uuid; uuid: survey uuid\n var allSurveys = new surveys_1.Surveys();\n var surveyToUpdate = new surveys_1.Survey(allSurveys.surveys[allSurveys.findSurveyIndex(uuid)]);\n //Inside the questions of a specific Survey I will filter the question that I dont want\n var howManyQuestions = surveyToUpdate.deleteQuestion(qUuid);\n var disableAddQuestionBtn = false;\n var disableSubmitSurvey = false;\n if (howManyQuestions > 9)\n disableAddQuestionBtn = true;\n if (howManyQuestions === 0)\n disableSubmitSurvey = true;\n allSurveys.updateSurvey(surveyToUpdate);\n res.send({\n message: \"A question was deleted\",\n survey: surveyToUpdate,\n disableAddQuestionBtn: disableAddQuestionBtn,\n disableSubmitSurvey: disableSubmitSurvey\n });\n }\n catch (error) {\n console.error(error);\n res.status(500).send(error.message);\n }\n}", "function clear_answers(){\n\t\t$('[id$=-quest] .answer').val('')\n\t}", "function resetArray() {\n questions = [{\n name: \"questionOne\",\n content: \"Earth's moon is the largest in our solar system.\",\n answer: \"False\",\n comment: \"Jupiter's Ganymede is the largest moon in our solar system.\"\n },\n {\n name: \"questionTwo\",\n content: \"Earth's atmosphere is mainly made up of nitrogen and oxygen.\",\n answer: \"True\"\n },\n {\n name: \"questionThree\",\n content: \"A planet's gravitational pull depends on the mass of the planet.\",\n answer: \"True\"\n },\n {\n name: \"questionFour\",\n content: \"A molecule of ozone is made of three oxygen atoms.\",\n answer: \"True\"\n },\n {\n name: \"questionFive\",\n content: \"Like Earth, Mars has only one moon.\",\n answer: \"False\",\n comment: \"Mars has two moons.\"\n },\n {\n name: \"questionSix\",\n content: \"The Milky Way makes a complete rotation every 200 million years.\",\n answer: \"True\",\n },\n {\n name: \"questionSeven\",\n content: \"One year on Mercury lasts 88 Earth days.\",\n answer: \"True\",\n },\n {\n name: \"questionEight\",\n content: \"The Milky Way is the name of our solar system.\",\n answer: \"False\",\n comment: \"The Milk Way is the name of our galaxy.\"\n },\n {\n name: \"questionNine\",\n content: \"Neptune’s blue color is caused by the frozen gases on its surface.\",\n answer: \"False\",\n comment: \"Methane gas on Neptune absorbs red light, leaving the planet's reflection blue.\"\n },\n {\n name: \"questionTen\",\n content: \"Mars is the second largest of the four rocky planets in our solar system.\",\n answer: \"False\",\n comment: \"Earth is the largest, followed by Venus, then Mars and Mercury.\"\n }\n ];\n}", "function populateQuestions() {\n questions = [//the array contains all the questions we've written\n {//the questions are structured as objects\n //there are six key value pairs that hold the information to pose a question\n question: \"A female nymph associated with a tree is called what?\",\n //the question to be asked is listed along with 4 multiple choice answers\n a1: \"Faun\",\n a2: \"Goblin\",\n a3: \"Banshee\",\n a4: \"Dryad\",\n //the correct answer of the four choices is defined as an integer\n correct: 4\n },\n //the same format is followed for every object\n {\n question: \"Dryads were said to have raised what god while he was an infant?\",\n a1: \"Zeus\",\n a2: \"Artemis\",\n a3: \"Allah\",\n a4: \"Hades\",\n correct: 1\n },\n {\n question: \"The dryad comes from what cultural mythology?\",\n a1: \"Persian\",\n a2: \"Celtic\",\n a3: \"Greek\",\n a4: \"Japanese\",\n correct: 3\n },\n {\n question: \"The genie of the lamp that was found by Aladdin *first* appeared in what anthology of fictional stories?\",\n a1: \"Disney\",\n a2: \"A Thousand and One Nights\",\n a3: \"The Quoran\",\n a4: \"Homer's Illiad\",\n correct: 2\n },\n {\n question: \"Which of the following cultures do the tales of the Genie, or Djinn come from?\",\n a1: \"Greek\",\n a2: \"Japanese\",\n a3: \"American Indian\",\n a4: \"Arabic\",\n correct: 4\n },\n {\n question: \"The Djinn were known for what of the following traits?\",\n a1: \"Punishing humans for harm, whether intentional or not.\",\n a2: \"Being benevolent helpers of mankind.\",\n a3: \"Having control over the weather.\",\n a4: \"Having large horns and sharp teeth.\",\n correct: 1\n },\n {\n question: \"The thunderbird was so large it could pick up what?\",\n a1: \"The moon\",\n a2: \"Whales\",\n a3: \"A Man\",\n a4: \"A Car\",\n correct: 2\n },\n {\n question: \"The thunderbird got its name because of what?\",\n a1: \"The ACDC song Thunderstruck\",\n a2: \"Its mating call\",\n a3: \"The sound its wings made when flapping\",\n a4: \"Because it only came when it stormed.\",\n correct: 3\n },\n {\n question: \"The Thunderbird is a symbol of what?\",\n a1: \"Greatness\",\n a2: \"Weakness\",\n a3: \"Good\",\n a4: \"Strength\",\n correct: 4\n },\n {\n question: \"Mermaid legends are first found in what culture?\",\n a1: \"Irish\",\n a2: \"Syrian\",\n a3: \"Greek\",\n a4: \"Roman\",\n correct:2\n },\n {\n question: \"What is a gorgon’s power?\",\n a1: \"Ability to seduce men\",\n a2: \"Ability to heal\",\n a3: \"Causing people to go insane\",\n a4: \"Turning people to stone and killing them by looking at them\",\n correct:4\n },\n {\n question: \"What was the name of the gorgon sister who perished?\",\n a1: \"Stheno\",\n a2: \"Medusa\",\n a3: \"Akasha\",\n a4: \"Euryale\",\n correct:2\n },\n {\n question: \"Who ws Medusa slain by?\",\n a1: \"Perseus\",\n a2: \"Poseidon\",\n a3: \"Athena\",\n a4: \"Zeus\",\n correct:1\n },\n {\n question:\" A creature that is half female human, and half fish is known as what?\",\n a1:\"kelpie\",\n a2:\"vampire\",\n a3:\"faun\",\n a4:\"mermaid\",\n correct:4\n },\n {\n question:\"In sailor folklore, this mythical creature can signify either good or bad luck:\",\n a1:\"fairy\",\n a2:\"dragon\",\n a3:\"centaur\",\n a4:\"mermaid\",\n correct:4\n },\n {\n question:\"It is frequent for this creature to be carved into the bow of ships to bring good fortune to a voyage.\",\n a1:\"mermaid\",\n a2:\"griffin\",\n a3:\"kelpie\",\n a4:\"werewolf\",\n correct:1\n },\n {\n question:\"The mythology of the vampire originates from what culture?\",\n a1:\"Greek\",\n a2:\"Medieval Europe\",\n a3:\"Syria\",\n a4:\"Ireland\",\n correct:2\n },\n {\n question: \"Vampires have a weakness or fear to what of the following?\",\n a1:\"Holy symbols and garlic\",\n a2:\"Water\",\n a3:\"Grass\",\n a4:\"Their name\",\n correct:1\n },\n {\n question: \"Bram Stoker's Dracula is a famous novel about what type of mythical creature?\",\n a1: \"Fairies\",\n a2: \"Mermaids\",\n a3: \"Centaurs\",\n a4: \"Vampires\",\n correct:4\n },\n {\n question: \"One possible origin of Werewolf legends is:\",\n a1: \"Homer's Odyysey\",\n a2: \"Bram Stoker's Dracula\",\n a3: \"The Epic of Gilgamesh\",\n a4: \"Seafarer's Stories\",\n correct:3\n },\n {\n question: \"Werewolves can only be hurt by what?\",\n a1:\"silver\",\n a2:\"garlic and holy symbols\",\n a3:\"water\",\n a4:\"arrows\",\n correct:1\n },\n {\n question: \"Werewolves exhibit their half human, half beast form on which days of the month?\",\n a1: \"Tuesdays\",\n a2: \"Their Birthday\",\n a3: \"The fourth day of each month\",\n a4: \"The nights of the Full Moon\",\n correct:4\n },\n {\n question: \"A werewolf is a creature that is the combination of a human and what animal?\",\n a1: \"Bat\",\n a2: \"Horse\",\n a3: \"Wolf\",\n a4: \"Fish\",\n correct:3\n },\n {\n question: \"Centaurs Originated from what culture?\",\n a1: \"American\",\n a2: \"German\",\n a3: \"Greek\",\n a4: \"Japanese\",\n correct:3\n },\n {\n question: \"Centaurs are known to have the torso of a man and a body of a what?\",\n a1: \"Horse\",\n a2: \"Man\",\n a3: \"Chicken\",\n a4: \"Dinosaur\",\n correct: 1\n },\n {\n question: \"Which Greek god were the Centaurs followers of?\",\n a1: \"Zeus\",\n a2: \"Hades\",\n a3: \"Hermes\",\n a4: \"Dionysus\",\n correct: 4\n },\n {\n question: \"Chiron was a well known Centaur. Who below did he NOT tutor?\",\n a1: \"Jason\",\n a2: \"Leonidas\",\n a3: \"Achilles\",\n a4: \"Hercules\",\n correct: 2\n },\n {\n question: \"Cyclops found their origins in which culture?\",\n a1: \"Greek\",\n a2: \"Roman\",\n a3: \"Jewish\",\n a4: \"Asian\",\n correct: 1\n },\n {\n question: \"Cyclops only had 1 of what body part?\",\n a1: \"arms\",\n a2: \"toes\",\n a3: \"eyes\",\n a4: \"nipples\",\n correct: 3\n },\n {\n question: \"The Greeks considered Cyclops a race of what type of creatures?\",\n a1: \"Warriors\",\n a2: \"Lawyers\",\n a3: \"Lawless\",\n a4: \"Lazy\",\n correct: 3\n },\n {\n question: \"Cyclops were known to craft what?\",\n a1: \"weapons and armor\",\n a2: \"shoes and shoe strinks\",\n a3: \"houses\",\n a4: \"roads\",\n correct: 1\n },\n {\n question: \"Dragons came from which culture?\",\n a1: \"Greek\",\n a2: \"Asian\",\n a3: \"Egyptian\",\n a4: \"All of the above\",\n correct: 4\n },\n {\n question: \"Dragons had ___ which allowed them to fly:\",\n a1: \"Feet\",\n a2: \"Wings\",\n a3: \"A Head\",\n a4: \"A big heart\",\n correct: 2\n },\n {\n question: \"In their lair, what would dragons have in it?\",\n a1: \"Treasure\",\n a2: \"A tv\",\n a3: \"Rocks\",\n a4: \"A bed\",\n correct: 1\n },\n {\n question: \"Griffins have the head of an eagle and body of a what?\",\n a1: \"Lion\",\n a2: \"Chicken\",\n a3: \"Horse\",\n a4: \"Dragon\", \n correct:1\n },\n {\n question: \"What did Griffins do other than have capability of flight?\",\n a1: \"Lung capacity for when they swim\",\n a2: \"Guard treasure\",\n a3: \"Kept their human(s) safe\",\n a4: \"Hunt humans at night\",\n correct:2\n },\n {\n question: \"What do griffins symbolize? Strength and ______?\",\n a1: \"Outgoing\",\n a2: \"Agility\",\n a3: \"Clumsiness\",\n a4: \"Intelligence\",\n correct:4\n },\n {\n question: \"Where did fairies originate from?\",\n a1: \"Eastern Europe\",\n a2: \"Greek Mythology\",\n a3: \"Norse Mythology\",\n a4: \"Celtic\",\n correct:2\n },\n {\n question: \"What were 'Banshees' known for?\",\n a1: \"Being kind creatures\",\n a2: \"Being malevolent creatures who appear usually before something bad happens\",\n a3: \"Being intimidating\",\n a4: \"Are a sign of luck when encountered\",\n correct:2\n },\n {\n question: \"Where were fairies known to be demons?\",\n a1: \"Asia\",\n a2: \"Europe\",\n a3: \"Puritanism\",\n a4: \"Scottland\",\n correct:3 \n },\n {\n question: \"The kelpie is a horse that can shape-shift into a _______?\",\n a1: \"Human\",\n a2: \"Monkey\",\n a3: \"Unicorn\",\n a4: \"Dragon\", \n correct:1 \n },\n {\n question: \"What kind of tail do kelpies have?\",\n a1: \"Lion\",\n a2: \"Fish\",\n a3: \"Wolf\",\n a4: \"Mermaid-like\",\n correct:4\n },\n {\n question: \"Where do kelpies spend most of their time?\",\n a1: \"In the desert\",\n a2: \"By caves\",\n a3: \"By rivers and lakes or wherever water is present\",\n a4: \"Mountainous regions\",\n correct:3\n }\n ];\n\n}", "function randomizeQuestions() {\n\t//make a copy of questionBank, so that qbank is unaltered\n\t// var possibleQs = questionBank.slice(0);\n\t// for ( let i = 0; i < questionBank.length; i++) {\n\t// \t//get a random question\n\t// \tvar randomIndex = Math.floor(Math.random() * possibleQs.length);\n\t// \tvar question = possibleQs[randomIndex];\n\t// \t//push to selected\n\t// \trandomQs.push(question);\n\t// \t//remove from copied questions\n\t// \tpossibleQs.splice(randomIndex, 1);\n\t// } \n//revised from a naive shuffle to a Fisher-Yates shuffle\n\trandomQs = questionBank.slice(0);\n\tfor ( let i = questionBank.length -1; i > 0; i--) {\n\t\t//get a random question\n\t\tvar randomIndex = Math.floor(Math.random() * (i + 1));\n\t\tvar question = randomQs[randomIndex];\n\t\t//push to selected\n\t\trandomQs[randomIndex] = randomQs[i];\n\t\t//remove from copied questions\n\t\trandomQs[i] = question;\n\t}\n\tconsole.log(randomQs);\n}", "function addQuest() {\n let temp = questionsArr.length + 2;\n if (count == temp) {\n push();\n }\n\n addQuestion();\n if (onloadData === false) {\n storeObject();\n }\n onloadData = false;\n}", "function generateNewQuestion() {\n\n var allAnswers = [];\n var correctAnswer = questionCollection[count].correct_answer;\n $(\"#answerList\").empty(); \n $(\"#suggestedAnswerByFriend\").empty();\n $(\"#suggestedAnswerByPublic\").empty();\n $(\"#suggestedAnswerByFifty\").empty();\n\n questionCollection[count].incorrect_answers.forEach(function (answer) {\n allAnswers.push(answer);\n });\n\n allAnswers.join();\n allAnswers.splice(Math.floor(Math.random() * 4), 0, correctAnswer);\n allAnswers.join();\n\n answerIndex = allAnswers.indexOf(correctAnswer);\n\n // question\n var countDisplay = count + 1;\n $(\"#questionField\").html(\"Question Number \" + countDisplay + \"<br>\" + questionCollection[count].question);\n\n // answers\n for (var i = 0; i < allAnswers.length; i++) { \n var li = document.createElement(\"li\");\n var text = document.createTextNode(decodeHtml(allAnswers[i]));\n li.appendChild(text);\n li.classList.add(\"answer\");\n li.id = i;\n document.getElementById(\"answerList\").appendChild(li);\n }\n }", "function eraseQuestions(){\n $('#question').remove();\n $('#fake1').remove();\n $('#fake2').remove();\n $('#fake3').remove();\n $('#fake4').remove();\n}", "function processQMostImportant(questionObject) {\n\tvar answers = questionObject.answers;\n\n\t// Variables to store the question and answer pair.\n\tvar q;\n\n\tfor (var prop in answers) {\n\t\tvar questionAnswerPair = getUserResponse(prop);\n\n\t\tswitch(questionAnswerPair[0]) {\n\t\t\tcase \"safe_with_breastfeeding\":\n\t\t\t\tq = \"Safe with breastfeeding\";\n\t\t\t\tbreak;\n\t\t\tcase \"pregnant_after_stopping\":\n\t\t\t\tq = \"Able to get pregnant quickly after stopping the method\";\n\t\t\t\tbreak;\n\t\t\tcase \"few_side_effects\":\n\t\t\t\tq = \"Few or no side-effects\";\n\t\t\t\tbreak;\n\t\t\tcase \"no_hormones\":\n\t\t\t\tq = \"No hormones\";\n\t\t\t\tbreak;\n\t\t\tcase \"effective_long_term\":\n\t\t\t\tq = \"Effective long term (3 months or longer)\";\n\t\t\t\tbreak;\n\t\t\tcase \"not_interrupt_sex\":\n\t\t\t\tq = \"Don't need to interrupt sex to use it\";\n\t\t\t\tbreak;\n\t\t\tcase \"continue_periods\":\n\t\t\t\tq = \"Continue to have my monthly periods\";\n\t\t\t\tbreak;\n\t\t\tcase \"fewer_periods\":\n\t\t\t\tq = \"Have fewer or no periods\";\n\t\t\t\tbreak;\n\t\t\tcase \"decreases_symptoms_from_periods\":\n\t\t\t\tq = \"Decrease symptoms from period\";\n\t\t\t\tbreak;\n\t\t}\n\t\trenderHTML(q, questionAnswerPair[1]);\n\t}\n}", "function questions() {\n return {\n 1: {\n ques: \"Archipiélago conocido como 'Las afortunadas'.\",\n ans: \"ISLAS CANARIAS\",\n showAns: \"I**AS **N*R*AS\"\n },\n 2: {\n ques: \"¿Cómo se llama el satélite de planeta Tierra?\",\n ans: \"LUNA\",\n showAns: \"L**A\"\n },\n 3: {\n ques: \"¿Cuál es la capital de Arizona?\",\n ans: \"PHOENIX\",\n showAns: \"P**E**X\"\n },\n 4: {\n ques: \"Personajes que han salido en todas las pelicula de Star Wars:\",\n ans: \"R2-D2 y C-3PO\",\n showAns: \"R*-D* y C-**O\"\n },\n 5: {\n ques: \"¿De qué color es el caballo blanco de Santiago?\",\n ans: \"BLANCO\",\n showAns: \"B**N*O\"\n },\n 6: {\n ques: \"¿Cómo se llama el mejor de amigo de John Snow?\",\n ans: \"SAMWELL TARLY\",\n showAns: \"S**W**L T*RL*\"\n },\n 7: {\n ques: \"¿En qué año se firmó la declaración de independencia de EEUU?\",\n ans: \"1776\",\n showAns: \"1**6\"\n }\n };\n}", "function clearAnswerDetail() {\n $(\".answer-detail\").remove()\n }", "function handleQuestions() {\n while (shuffledQuestions.length <= 9) {\n const random = questions[Math.floor(Math.random() * questions.length)];\n if (!shuffledQuestions.includes(random)) {\n shuffledQuestions.push(random);\n }\n }\n}", "function clearAll() {\n questionsAnswered = 0;\n trueAnswers = [];\n trueQuestions = [];\n userAnswers = [];\n}", "renderQuestions() {\n const {\n questions,\n removeQuestion,\n } = this.props;\n\n return questions\n .filter(q => q.questionType !== EXCEED_MEET_BELOW_Q && q.questionType !== START_STOP_CONTINUE_Q)\n .map((q, i) => (\n <div\n className=\"create-session questions\"\n onClick={ () => removeQuestion(q.id) }\n title=\"click to remove\"\n key={ i } >\n { q.content }\n </div>\n )\n );\n }", "function clear_ans(){\n /*\n x = $(\".active .qs-text\").text();\n var i =x[x.length - 1];\n $('input[name=qs-'+i+']').attr('checked',false);\n */\n var i= get_current();\n $('input[name=qs-'+questions_order[i-1]+']').prop(\"checked\",false);\n}", "function processQuestion(){\n $(\".question > h3\").empty();\n $(\".tiles .tile\").remove();\n $(\"button.nextQuestion\").remove();\n\n // Search for correct wahlkreis\n $.each(quiz_data, function(wahlkreis, questions){\n\n if( wahlkreis === selectedWahlkreis ){\n // Generate shuffled question order\n if(questionOrder.length == 0){\n // Set number of questions\n numberOfQuestions = questions.length;\n\n $.each(questions, function(question, data){\n if(data.typ == 'challenge'){\n numberOfChallenges++;\n }\n });\n numberOfQuestions -= numberOfChallenges;\n generateQuestionOrder();\n }\n\n // Load data of correct next question from JSON\n if(currentQuestionOrderID != -1){\n currentQuestionID = questionOrder[currentQuestionOrderID];\n\n // If there are stilly any questions to answer\n if(currentQuestionOrderID < numberOfQuestions+numberOfChallenges){\n displayAnswers(questions);\n updateProgress(currentQuestionOrderID+1, (numberOfChallenges+numberOfQuestions));\n\n // Scroll to question, when on mobile, for better usability\n if($(window).width() < 500){\n $(\"html, body\").animate({\n scrollTop: $(\".progress\").offset().top\n }, 100);\n }\n }\n // If there are no more questions\n else {\n changeToResult();\n }\n }\n // If user want to display the wahlkreise\n else {\n changeToWahlkreis(\"question\");\n }\n }\n\n // Randomize order of answers\n $(\".tiles\").randomize(\".tile\");\n });\n }", "function quizFunction() {\r\n const myQuestions = [\r\n /*{\r\n question: \"Q.1 A patient who is said to have a poor capacity to verbally describe their own subjective emotional experiences is said to have:\",\r\n answers: {\r\n a: \"Abulia\", b: \"Affective blunting\", c: \"Alexithymia\", d: \"Apathy\", e: \"Avolition\", f: \"Melancholia\", g: \"Parathymia\", h: \"Witzelsucht\"\r\n },\r\n correctAnswer: \"c\"\r\n },\r\n {\r\n question: \"Q.2 An eight year old who hits peer repeatedly, and urinates in the corner of the classroom when angry?\",\r\n answers: {\r\n a: \"Autistic Spectrum Disorder\", b: \"Conduct Disorder\", c: \"Enuresis\", d: \"Gender Identity Disorder\", e: \"Intellectual Disability\", f: \"Major Depressive Disorder\", g: \"Oppositional Defiant Disorder\", h: \"Reactive Attachment Disorder\", i: \"Rett's Disorder\"\r\n },\r\n correctAnswer: \"b\"\r\n },\r\n {\r\n question: \"Q.3 A 54 year old woman, diagnosed recently with metastatic breast cancer, is brought to hospital by ambulance after her husband finds her unconscious at home. Upon arrival, she is unreponsive, her breathing is slow and shallow, and her pupils are constricted.\",\r\n answers: {\r\n a: \"Alcohol poisoning\", b: \"Alcohol poisoning\", c: \"Alcohol withdrawal\", d: \"Benzodiazepine overdose\", e: \"Cannabis abuse\", f: \"Grand mal seizure\", g: \"Opioid overdose\", h: \"Raised intracranial pressure\", i: \"Stroke\", j: \"Subarachnoid haemorrhage\", k: \"Temporal lobe epilepsy\"\r\n\r\n },\r\n correctAnswer: \"g\"\r\n },\r\n {\r\n question: \"Q.4 Wernicke�s dysphasia is an example of the following type of Dysphasia?.\",\r\n answers: {\r\n a: \"Conduction Dysphasia\", b:\"Developmental Dysphasia\",c:\"Nominal Dysphasia\", d:\"Primary Motor Dysphasia\", e: \"Primary Sensory Dysphasia\", f: \"Subcortical Auditory Dysphasia\", g: \"Subcortical Dysphasia\", h: \"Subcortical Motor Dysphasia\", i:\"Subcortical Sensory Dysphasia\"\r\n },\r\n correctAnswer: \"e\"\r\n }\r\n\t */\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.1 A patient who is said to have a poor capacity to verbally describe their own subjective emotional experiences is said to have:\",\r\n\t\tanswers: { a: \"Abulia\", b: \"Affective blunting\", c: \"Alexithymia\", d: \"Apathy\", e: \"Avolition\", f: \"Melancholia\", g: \"Parathymia\", h: \"Witzelsucht\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.2 An eight year old who hits peers repeatedly, and urinates in the corner of the classroom when angry.\",\r\n\t\tanswers: { a: \"Autistic Spectrum Disorder\", b: \"Conduct Disorder\", c: \"Enuresis\", d: \"Gender Identity Disorder\", e: \"Intellectual Disability\", f: \"Major Depressive Disorder\", g: \"Oppositional Defiant Disorder\", h: \"Reactive Attachment Disorder\", i: \"Rett's Disorder\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.3 A 54 year old woman, diagnosed recently with metastatic breast cancer, is brought to hospital by ambulance after her husband finds her unconscious at home. Upon arrival, she is unresponsive, her breathing is slow and shallow, and her pupils are constricted.\",\r\n\t\tanswers: { a: \"Alcohol poisoning\", b: \"Alcohol withdrawal\", c: \"Benzodiazepine overdose\", d: \"Cannabis abuse\", e: \"Grand mal seizure\", f: \"Opioid overdose\", g: \"Raised intracranial pressure\", h: \"Stroke\", i: \"Subarachnoid haemorrhage\", j: \"Temporal lobe epilepsy\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE option.<br/><br/>Q.4 Wernicke's dysphasia is an example of the following type of Dysphasia?\",\r\n\t\tanswers: { a: \"Conduction Dysphasia\", b: \"Developmental Dysphasia\", c: \"Nominal Dysphasia\", d: \"Primary Motor Dysphasia\", e: \"Primary Sensory Dysphasia\", f: \"Subcortical Auditory Dysphasia\", g: \"Subcortical Dysphasia\", h: \"Subcortical Motor Dysphasia\", i: \"Subcortical Sensory Dysphasia\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.5 Which of the following figures in psychiatry introduced the term Schizophrenia in 1908?\",\r\n\t\tanswers: { a: \"Donald Winnicott\", b: \"Emil Kraeplin\", c: \"Erving Goffman \", d: \"Eugene Bleuler\", e: \"Karl Menninger\", f: \"Karl Popper\", g: \"Paul Janssen\", h: \"Phillipe Pinel\", i: \"Thomas Szaz \", j: \"Ugo Cerletti\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE intervention.<br/><br/>Q.6 A 14-year-old high school student Sandy is brought for assessment by her parents, who describe conflict at home between Sandy and the rest of the family. Her parents are divided on how to approach the situation. Sandy has a 6 month history of restricting eating, resulting in weight loss. Currently her BMI is on the third percentile for age. Which psychological treatment would you recommend?\",\r\n\t\tanswers: { a: \"Adolescent Mentalization-Based Integrative Treatment (AMBIT)\", b: \"Cognitive Behavioral Therapy (CBT)\", c: \"Cognitive behavioral therapy enhanced version for eating disorders (CBT-E) \", d: \"Family Based Therapy \", e: \"Family Connections \", f: \"Interpersonal Therapy (IPT)\", g: \"Parent Child Interaction Therapy (PCIT)\", h: \"Parent Management Training \", i: \"Strategic Family Therapy\", j: \"Systemic Family Therapy \", k: \"Tough Love\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.7 In DSM-5, the diagnosis of a Persistent Depressive Disorder (previously known as dysthymia) requires the presence of depressive symptoms on most days for a period of at least:\",\r\n\t\tanswers: { a: \"6 months\", b: \"12 months\", c: \"18 months\", d: \"24 months\", e: \"30 months\", f: \"36 months\", g: \"48 months\", h: \"60 months\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.8 What is the most likely diagnosis for a 82 year old man on no medication presenting with a ten year history of emerging but fluctuating cognitive decline which is accompanied by both extrapyramidal features including parkinsonism, and psychosis including visual hallucinations of a large bull coming through his room.\",\r\n\t\tanswers: { a: \"Alzheimer's Dementia\", b: \"Huntington's disease\", c: \"Lewy body Dementia\", d: \"Motor neurone disease\", e: \"Multi-infarct Dementia\", f: \"Parkinson's disease\", g: \"Pick's Disease\", h: \"Progressive supranuclear palsy\", i: \"Wernicke's encephalopathy\", j: \"Wilson's disease\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY disorder.<br/><br/>Q.9 Which condition is characterised by the triad of ophthalmoplegia, ataxia, and confusion?\",\r\n\t\tanswers: { a: \"Delirium tremens\", b: \"Guillain-Barré syndrome\", c: \"Hepatic encephalopathy\", d: \"Huntington's disease\", e: \"Marchiafava-Bignami disease\", f: \"Motor neurone disease\", g: \"Parkinson's disease\", h: \"Progressive supranuclear palsy\", i: \"Wernicke's encephalopathy\", j: \"Wilson's disease\" },\r\n\t\tcorrectAnswer: \"i\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE intervention.<br/><br/>Q.10 Steven is a 10 year old who was born a female called Sarah, and who has insisted on being called Steven and presented as male from preschool. There are no comorbid disorders. The family have been seen previously and are comfortable with his gender identification but are concerned about his likely distress regarding the onset of puberty.\",\r\n\t\tanswers: { a: \"Aripiprazole\", b: \"Dialectic Behavioural Therapy\", c: \"Escitalopram\", d: \"Maudsley Family Therapy\", e: \"No follow up from MHS\", f: \"Referral to endocrinologist for GNRH agonist\", g: \"Referral to endocrinologist for GNRH agonist and secondary sex hormones\", h: \"Structural Family Therapy\", i: \"Supportive Psychotherapy\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE intervention to improve the parents’ wellbeing.<br/><br/>Q.11 A 22 year old woman has a three year history of alcohol abuse, a series of turbulent sexual relationships, and recurrent self harm with three serious recent overdoses requiring admission to the high dependency unit. Her parents are feeling stressed and burnt-out.\",\r\n\t\tanswers: { a: \"Cognitive behavioral therapy (CBT)\", b: \"Family based therapy \", c: \"Family connections \", d: \"Interpersonal therapy (IPT)\", e: \"Marital therapy\", f: \"Mentalization-based treatment (MBT)\", g: \"Parent child interaction therapy (PCIT)\", h: \"Reflective Family therapy\", i: \"Strategic Family therapy\", j: \"Systemic family therapy \", k: \"Tough love\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following adverse effect, please choose the MOST APPROPRIATE rating scale.<br/><br/>Q.12 Assessment of tardive dyskinesia in a patient on antipsychotic medication.\",\r\n\t\tanswers: { a: \"AIMS\", b: \"BPRS\", c: \"GAF\", d: \"HAMD\", e: \"MADRS\", f: \"PANSS\", g: \"SANS\", h: \"SAPS\", i: \"SCID\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"From the following options, please choose the MOST APPROPRIATE answer.<br/><br/>Q.13 Which of the following is NOT a common clinical feature of rapid SSRI discontinuation.\",\r\n\t\tanswers: { a: \"Anxiety\", b: \"Crying spells\", c: \"Electric shock-like sensations\", d: \"Hypersomnolence\", e: \"Lethargy\", f: \"Nausea\", g: \"Paraesthesiae\", h: \"Tremor\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.14 A 19 year old male presents with social withdrawal, loss of employment and difficulty maintaining his hygiene over the last 6 months. This is accompanied by unusual spiritual beliefs.\",\r\n\t\tanswers: { a: \"Delusional Disorder\", b: \"Drug-induced psychosis\", c: \"Major Depressive Disorder with Psychosis\", d: \"Manic episode with Psychosis\", e: \"Pre-psychotic stage\", f: \"Psychosis secondary to a General Medical Condition\", g: \"Schizoaffective Disorder\", h: \"Schizophrenia\", i: \"Schizophreniform Disorder\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.15 A 76 year old woman presents with cognitive impairment that has progressed after initially seeking medical attention for a presumed Transient Ischaemic Episode. Parkinsonian features are evident although they seem to have appeared abruptly and do not seem progressive at this stage. Her regular medication includes enalapril and simvastatin.\",\r\n\t\tanswers: { a: \"Alzheimer's Dementia\", b: \"Binswanger's disease\", c: \"Huntington's disease\", d: \"Lewy body Dementia\", e: \"Motor neurone disease\", f: \"Multi-infarct Dementia\", g: \"Parkinson's disease\", h: \"Pick's Disease\", i: \"Progressive supranuclear palsy\", j: \"Wernicke's encephalopathy\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following question, please choose the MOST APPROPRIATE answer.<br/><br/>Q.16 Which psychological therapy for substance use disorders most focuses on 'expressing empathy, developing discrepancy, avoiding argument, supporting self-efficacy and rolling with resistance.'\",\r\n\t\tanswers: { a: \"Alcoholics Anonymous 12 Step Recovery Programme \", b: \"Cognitive Analytic Therapy\", c: \"Cognitive Behaviour Therapy\", d: \"Contingency Management\", e: \"Dialectical Behaviour Therapy\", f: \"Eye Movement Desensitisation and Reprocessing (EMDR)\", g: \"Interpersonal Therapy \", h: \"Motivational Interviewing\", i: \"Person-Centred Therapy\", j: \"Psychodynamic Psychotherapy\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following scenario, please select the MOST APPROPRIATE intervention.<br/><br/>Q.17 Adrian is a 3 year old boy referred by his kindergarten due to concerns about his negative interactions with other children, who he frequently calls 'dumb' and 'useless'. In the assessment his mother repeatedly comments negatively on his play.\",\r\n\t\tanswers: { a: \"Atomoxetine\", b: \"Dyadic therapy such as 'Watch Wait Wonder'\", c: \"Lithium\", d: \"Maudsley Family Therapy\", e: \"Methylphenidate SR\", f: \"Parent Training e.g. Triple P\", g: \"Play Therapy with child\", h: \"Psychodynamic Psychotherapy for the mother\", i: \"Systemic Family Therapy\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following question, please choose the MOST ACCURATE answer.<br/><br/>Q.18 Which EEG feature is seen in the EEG of a normal awake adult who is not moving?\",\r\n\t\tanswers: { a: \"Alpha rhythm\", b: \"Beta activity\", c: \"Delta activity\", d: \"High voltage complex elements\", e: \"K complexes\", f: \"Lambda waves\", g: \"Spike discharges\", h: \"Wave and spike pattern\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following patient, please choose the MOST APPROPRIATE adjustment to his pharmacological treatment.<br/><br/>Q.19 A 14-year-old with attention deficit hyperactivity disorder (ADHD), has responded well to stimulant medication for the last 5 years. At the most recent review his complaint is that despite taking the last stimulant dose at midday, he has difficulty falling asleep and difficulty waking in the morning, so that he is often late for school and feels tired during the day.\",\r\n\t\tanswers: { a: \"Add an additional stimulant dose later in the day\", b: \"Low dose amitriptyline (in addition to existing stimulant dose)\", c: \"Low dose quetiapine (in addition to existing stimulant dose)\", d: \"Melatonin (in addition to existing stimulant dose)\", e: \"Sertraline (in addition to existing stimulant dose)\", f: \"Stop stimulant and switch to atomoxetine \", g: \"Stop stimulant and switch to extended-release clonidine\", h: \"Temazepam (in addition to existing stimulant dose)\", i: \"Venlafaxine (in addition to existing stimulant dose)\", j: \"Zopiclone (in addition to the existing stimulant dose)\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.20 Who was the neurologist who first used ECT to treat Schizophrenia?\",\r\n\t\tanswers: { a: \"Donald Winnicott\", b: \"Emil Kraeplin\", c: \"Erving Goffman \", d: \"Eugene Bleuler\", e: \"Karl Menninger\", f: \"Karl Popper\", g: \"Paul Janssen\", h: \"Phillipe Pinel\", i: \"Thomas Szaz \", j: \"Ugo Cerletti\" },\r\n\t\tcorrectAnswer: \"j\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.21 Which of the following medications is least likely to lead to lithium toxicity in a patient on established lithium therapy?\",\r\n\t\tanswers: { a: \"Captopril\", b: \"Cilazapril\", c: \"Diclofenac \", d: \"Enalopril\", e: \"Furosemide\", f: \"Ibuprofen\", g: \"Quinapril\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE medication.<br/><br/>Q.22 A 44 year old man with a long history of alcohol dependence wishes to discuss medication to help manage cravings. He is drinking alcohol heavily at present and does not want to stop. Instead, he would like to be able to reduce his consumption of alcohol. There is a past history of delirium tremens and of alcohol withdrawal seizures.\",\r\n\t\tanswers: { a: \"Buprenorphine\", b: \"Bupropion\", c: \"Chlordiazepoxide\", d: \"Chlormethiazole\", e: \"Diazepam\", f: \"Disulfiram\", g: \"Fluoxetine\", h: \"Haloperidol\", i: \"Methadone\", j: \"Naltrexone\", k: \"Nicotine Patches\", l: \"Quetiapine\" },\r\n\t\tcorrectAnswer: \"j\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.23 A 12 year old boy presents to the Emergency Department (ED) describing a 'goblin attack' and creatures coming out of the wall. The mental health nurse in the ED reports that his mother is well known to local alcohol and drug services. His mother says he was fine yesterday.\",\r\n\t\tanswers: { a: \"Alcohol dependence\", b: \"Autistic Spectrum Disorder\", c: \"Bipolar Disorder Prodrome\", d: \"Conduct Disorder\", e: \"Fetishism\", f: \"Major Depressive Episode\", g: \"Munchausen's by proxy\", h: \"No diagnosis\", i: \"Parasomnia\", j: \"Psychotic disorder NOS\", k: \"Synthetic cannabinoid misuse\" },\r\n\t\tcorrectAnswer: \"k\"},\r\n\t\t{question: \"For the following situation, please choose the MOST APPROPRIATE rating scale.<br/><br/>Q.24 A clinician wants to monitor overall symptoms in a patient with schizophrenia.\",\r\n\t\tanswers: { a: \"AIMS\", b: \"BPRS\", c: \"GAF\", d: \"HAMD\", e: \"MADRS\", f: \"PANSS\", g: \"SANS\", h: \"SAPS\", i: \"SCID\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following situation, please select the MOST SPECIFIC bedside test.<br/><br/>Q.25 Measuring attention in a delirious patient.\",\r\n\t\tanswers: { a: \"Draw a clockface\", b: \"Name of the Prime Minister\", c: \"Naming 4 legged animals\", d: \"Naming objects\", e: \"Orientation to person, place and time\", f: \"Recite the months of the year backwards\", g: \"Remembering 3 words\", h: \"Serial 7s\", i: \"Similarities\", j: \"Spell 'WORLD' backwards\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.26 STAR*D was one of the most influential studies of pharmacotherapy for depression. In Stage 1 of this study, what percentage of depressed patients achieved remission after 14 weeks of treatment with citalopram (mean dose 41.8mg/d).\",\r\n\t\tanswers: { a: \"7%\", b: \"14%\", c: \"21%\", d: \"28%\", e: \"35%\", f: \"42%\", g: \"49%\", h: \"56%\", i: \"63%\", j: \"70%\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, which rating scale would be MOST HELPFUL to assist with diagnostic clarification?<br/><br/>Q.27 You are asked to assess 12 year old John, who has restricted food group intake; he eats only rice, potatoes, chips and tomato sauce. When presented with other foods, he reports having tummy pains, breathing fast, worries that he won't manage, and typically he vomits. The problem first began at age 4, after his father left to live overseas. His mother doesn't like to see her son upset but is worried that he isn't eating properly.\",\r\n\t\tanswers: { a: \"Beck Anxiety Inventory (BAI)\", b: \"Beck Youth Inventory (BYI- 2)\", c: \"Depression Anxiety Stress Scale (DASS)\", d: \"Eating Disorder Attitudes Test ( EAT- 26)\", e: \"Eating Disorder Examination Questionnaire (EDE-Q)\", f: \"Multidimensional Anxiety Scale for Children (MASC 2) \", g: \"Revised Conners' Teacher and Parent Rating Scale (CPRS-R) \", h: \"The Strengths and Difficulties Questionnaire (SDQ)\", i: \"The Brief Psychiatric Rating Scale for Children (BPRS-C)\", j: \"The Child Behavior Checklist (CBCL)\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"Which stage of change is BEST CHARACTERISED by the patient saying the following:<br/><br/>Q.28 'I want to know how to give up.'\",\r\n\t\tanswers: { a: \"Action Stage\", b: \"Contemplative Stage\", c: \"Denial\", d: \"Maintenance Stage\", e: \"Pre-contemplative Stage\", f: \"Preparation Stage\", g: \"Relapse Prevention Stage\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE intervention.<br/><br/>Q.29 David is a 17 year old boy with a two year history of cutting more than once a week to deal with his emptiness. He has had trials of sertraline and fluoxetine with little effect. He has made three attempts to overdose in the context of losses of friendships. He now wonders if he would be more comfortable as a female.\",\r\n\t\tanswers: { a: \"Aripiprazole\", b: \"Dialectic Behavioural Therapy\", c: \"Escitalopram\", d: \"Maudsley Family Therapy\", e: \"No follow up from MHS\", f: \"Referral to endocrinologist for GNRH agonist\", g: \"Referral to endocrinologist for GNRH agonist and secondary sex hormones\", h: \"Structural Family Therapy\", i: \"Supportive Psychotherapy\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE diagnosis.<br/><br/>Q.30 A 38 year old woman presents with a 3 month history of low mood, increased anxiety, poor sleep and weight loss, accompanied by the belief that she caused a recent natural disaster.\",\r\n\t\tanswers: { a: \"Delusional Disorder\", b: \"Drug-induced psychosis\", c: \"Major Depressive Disorder with atypical features\", d: \"Major Depressive Disorder with mood congruent psychotic features\", e: \"Major Depressive Disorder with mood incongruent psychotic features\", f: \"Mixed episode with Psychosis\", g: \"Psychosis secondary to a General Medical Condition\", h: \"Schizoaffective Disorder\", i: \"Schizophrenia\", j: \"Schizophreniform Disorder\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE diagnosis.<br/><br/>Q.31 The patient talks in a slow, sparse style that is hesitant, with disturbed rhythm and inflection.\",\r\n\t\tanswers: { a: \"Conduction Dysphasia\", b: \"Developmental Dysphasia\", c: \"Nominal Dysphasia\", d: \"Primary Motor Dysphasia\", e: \"Primary Sensory Dysphasia\", f: \"Subcortical Auditory Dysphasia\", g: \"Subcortical Dysphasia\", h: \"Subcortical Motor Dysphasia\", i: \"Subcortical Sensory Dysphasia\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.32 In switching a patient from tranylcypromine to fluoxetine, the correct advice would be:\",\r\n\t\tanswers: { a: \"Cautiously cross taper with fluoxetine 10mg/day\", b: \"Cautiously cross taper with fluoxetine 20mg/day\", c: \"Taper and stop, then start fluoxetine at 10mg/day\", d: \"Taper and stop, then start fluoxetine at 20mg/day\", e: \"Taper and stop, then wait 2 weeks before starting fluoxetine\", f: \"Taper and stop, then wait 5-6 weeks before starting fluoxetine\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE psychological treatment.<br/><br/>Q.33 Sarah, a 28 year old woman, presents with mildly depressed mood with anxiety, in the context of ongoing conflict with her husband who works long hours and has said he can't attend a joint appointment. Eight months ago Sarah had a third trimester stillbirth. She says her husband would like them to try again for a baby at some stage, but she doesn't feel she could face another pregnancy.\",\r\n\t\tanswers: { a: \"Acceptance and commitment therapy (ACT)\", b: \"Cognitive analytic therapy (CAT)\", c: \"Cognitive behavioral therapy (CBT)\", d: \"Interpersonal therapy (IPT)\", e: \"Marital therapy \", f: \"Mentalization-based treatment (MBT)\", g: \"Mindfulness training \", h: \"Psychodynamic psychotherapy \", i: \"Rapid eye movement desensitisation (EMDR)\", j: \"Rational emotive behavior therapy (REBT)\", k: \"Relaxation training\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.34 A 21 year old man admitted to the acute psychiatric unit with a psychotic relapse develops lethargy and fatigue, sleeping for much of the day. He has increased appetite and complains of unpleasant dreams.\",\r\n\t\tanswers: { a: \"Alcohol poisoning\", b: \"Alcohol Withdrawal\", c: \"Benzodiazepine overdose\", d: \"Cannabis abuse\", e: \"Grand mal seizures\", f: \"Opioid withdrawal\", g: \"Raised intracranial pressure\", h: \"Stimulant withdrawal\", i: \"Temporal lobe epilepsy\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following clinical scenario, please select the MOST APPROPRIATE intervention.<br/><br/>Q.35 Mary is a 9 year old girl who refuses to go to bed before 10pm, and often attends school with body odour as she will not shower at home. When told to do so by her teacher, she will shower on the school premises.\",\r\n\t\tanswers: { a: \"Atomoxetine\", b: \"Dyadic therapy such as 'Watch Wait Wonder'\", c: \"Lithium\", d: \"Maudsley Family Therapy\", e: \"Methylphenidate SR\", f: \"Parent Training e.g. Triple P\", g: \"Play Therapy with child\", h: \"Psychodynamic Psychotherapy for the mother\", i: \"Systemic Family Therapy\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE phenomenological term.<br/><br/>Q.36 A 54 year old man reports seeing his hand move in front of him without his own effort.\",\r\n\t\tanswers: { a: \"Auditory Hallucinations\", b: \"Clanging\", c: \"Command Hallucinations\", d: \"Delusions of Control\", e: \"Delusions of Persecution\", f: \"Delusions of Reference\", g: \"Derailment\", h: \"Neologisms\", i: \"Somatic Hallucinations\", j: \"Tactile Hallucinations\", k: \"Tangentiality\", l: \"Thought Blocking\", m: \"Thought Disorder\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.37 Which of the following is a focussed test of frontal lobe function?\",\r\n\t\tanswers: { a: \"Boston Naming Test\", b: \"Clifton Assessment Schedule\", c: \"Draw a Person test\", d: \"Mini-Mental State Examination\", e: \"National Adult Reading Test \", f: \"Raven's Progressive Matrices\", g: \"Rorschach Test\", h: \"Trail Making Test\", i: \"Wechsler Adult Intelligence Scale\", j: \"Wechsler Memory Scale\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.38 Which complementary therapy has NOT been shown to be helpful in the treatment of depression, either alone or as an adjunct to antidepressant medication?\",\r\n\t\tanswers: { a: \"Eicosapentaenoic acid\", b: \"L-Methylfolate\", c: \"Multivitamins\", d: \"N-acetyl-cysteine\", e: \"S-adenosyl-methionine\", f: \"St John's Wort\", g: \"Zinc\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE psychosocial intervention.<br/><br/>Q.39 Following a traumatic birth, a mother of a healthy 9 month old baby is anxious that she is ‘doing everything wrong' and that she is ‘not a good mother'. She reports not enjoying the baby or having loving feelings as she'd expected she would.\",\r\n\t\tanswers: { a: \"Circle of Security\", b: \"Cognitive behavioral therapy (CBT)\", c: \"Family based therapy \", d: \"Family connections \", e: \"Interpersonal therapy (IPT)\", f: \"Mentalization-based treatment (MBT)\", g: \"Parent behavioral management training \", h: \"Parent child interaction therapy (PCIT)\", i: \"Strategic family therapy\", j: \"Systemic family therapy \", k: \"Watch Wait and Wonder\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following clinical situation, please select the MOST APPROPRIATE rating scale.<br/><br/>Q.40 Assessment of lifetime symptoms of Alcohol Dependence with a focus on late-stage symptoms.\",\r\n\t\tanswers: { a: \"Addiction Research Foundation Clinical Institute Withdrawal Assessment – Alcohol (CIWS-Ar)\", b: \"Alcohol Dependence Scale\", c: \"Alcohol Use Disorders Identification Test (Audit)\", d: \"CAGE questionnaire\", e: \"Hamilton Depression Rating Scale (HAMD-17)\", f: \"Michigan Alcoholism Screening Test (MAST)\", g: \"Paddington Alcohol Test\", h: \"Severity of Alcohol Dependence Questionnaire (SADQ-C)\", i: \"Severity of Dependence Scale (SDS)\", j: \"Severity of Opiate Dependence Questionnaire (SADQ)\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY answer.<br/><br/>Q.41 A 15 year old boy uses his iPad in his room during the evening at home and won't come out to the family area. He attends school, where he's getting good grades and has a circle of friends, and he says his mood is good.\",\r\n\t\tanswers: { a: \"Attention Deficit Disorder\", b: \"Autistic Spectrum Disorder\", c: \"Bipolar Disorder Prodrome\", d: \"Conduct Disorder\", e: \"Major Depressive Episode\", f: \"No diagnosis\", g: \"Obsessive Compulsive Disorder\", h: \"Oppositional Defiant Disorder\", i: \"Parasomnia\", j: \"Psychotic Disorder NOS\", k: \"Synthetic Cannabinoid Misuse\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE type of movement disorder.<br/><br/>Q.42 Sustained involuntary spasm of the skeletal muscles.\",\r\n\t\tanswers: { a: \"Acute Dystonia\", b: \"Akathisia\", c: \"Chronic Dystonia\", d: \"Medication Induced Tremor\", e: \"Neuroleptic Malignant Syndrome\", f: \"Oculogyric Crises\", g: \"Pseudo-parkinsonism\", h: \"Restless Leg Syndrome\", i: \"Tardive Dyskinesia\", j: \"Torticollis\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.43 The main issue relevant to the outcome of mental disorders which is assessed by the Camberwell Family Interview (Vaughn and Leff, 1976).\",\r\n\t\tanswers: { a: \"Expressed emotion\", b: \"Global functioning\", c: \"Medication adherence\", d: \"Mental Health literacy\", e: \"Problem solving skills\", f: \"Psychological mindedness\", g: \"Relapse prevention techniques\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following situation in a therapy session, please select the therapist response which would be MOST LIKELY to facilitate mentalizing.<br/><br/>Q.44 The client becomes visibly anxious after a comment by the therapist.\",\r\n\t\tanswers: { a: \"'Did you notice how this is a good example of what we were talking about last session?'\", b: \"'Do you think maybe you're feeling anxious to avoid deep-seated guilty feelings?'\", c: \"'How do you usually cope when you're feeling distressed – What works for you?'\", d: \"'I'm wondering what you are feeling right now?'\", e: \"'I think you may have misunderstood what I was trying to say.'\", f: \"'I'm sorry that you're upset.'\", g: \"'It's not surprising that you'd feel anxious and upset.'\", h: \"'Can you remember a time in your childhood when you felt in a similar way?'\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE diagnosis.<br/><br/>Q.45 A condition characterised by formication and visual hallucinations.\",\r\n\t\tanswers: { a: \"Delirium tremens\", b: \"Guillain-Barré syndrome\", c: \"Hepatic encephalopathy\", d: \"Huntington's disease\", e: \"Marchiafava-Bignami disease\", f: \"Motor neurone disease\", g: \"Parkinson's disease\", h: \"Progressive supranuclear palsy\", i: \"Wernicke's encephalopathy\", j: \"Wilson's disease\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.46 A 16 year old youth with a limited vocabulary is arrested for setting a fire alarm off in a department store, allowing a group of teens to shoplift during the evacuation. He reports his 'new friends' asked him to do it to join their gang, and appears unaware that they planned the theft.\",\r\n\t\tanswers: { a: \"Autistic Spectrum Disorder\", b: \"Conduct Disorder\", c: \"Enuresis\", d: \"Gender Identity Disorder\", e: \"Intellectual Disability\", f: \"Major Depressive Disorder\", g: \"Oppositional Defiant Disorder\", h: \"Reactive Attachment Disorder\", i: \"Rett's Disorder\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE treatment.<br/><br/>Q.47 Mrs Davidson, who has a known diagnosis of bipolar disorder, believes her brain has rotted and is refusing to eat or drink.\",\r\n\t\tanswers: { a: \"Clozapine\", b: \"Electroconvulsive therapy\", c: \"Fluoxetine\", d: \"Imipramine\", e: \"Intramuscular Haloperidol\", f: \"Intramuscular Lorazepam\", g: \"Lithium Carbonate\", h: \"Olanzapine wafers\", i: \"Quetiapine\", j: \"Risperidone oral solution\", k: \"Sodium Valproate\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.48 70 year old woman is admitted after a fall, in a confused state. She was commenced on an SSRI two months earlier, for depression. Investigations show her to have low serum sodium and normal urine osmolality.\",\r\n\t\tanswers: { a: \"Benign hydrocephalus\", b: \"Cerebrovascular malformation\", c: \"Cryptococcal meningitis\", d: \"Hyperparathyroidism\", e: \"Hypothyroidism\", f: \"Inappropriate ADH syndrome\", g: \"Neuroleptic malignant syndrome\", h: \"Neuropsychiatric systemic lupus erythematosus (SLE) \", i: \"Neurosyphilis\", j: \"Normal pressure hydrocephalus\", k: \"Water intoxication\", l: \"Wernicke's encephalopathy\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following patient group, which of the listed psychotropics should be MOST AVOIDED.<br/><br/>Q.49 Women of childbearing age.\",\r\n\t\tanswers: { a: \"Carbamazepine\", b: \"Lamotrigine\", c: \"Lithium\", d: \"Lorazepam\", e: \"Quetiapine\", f: \"Sodium valproate\", g: \"Venlafaxine\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE phenomenological term.<br/><br/>Q.50 While being interviewed, a 22 year old woman stops for several seconds mid-sentence.\",\r\n\t\tanswers: { a: \"Auditory Hallucinations\", b: \"Clanging\", c: \"Command Hallucinations\", d: \"Delusions of Control\", e: \"Delusions of Persecution\", f: \"Delusions of Reference\", g: \"Derailment\", h: \"Neologisms\", i: \"Somatic Hallucinations\", j: \"Tactile Hallucinations\", k: \"Tangentiality\", l: \"Thought Blocking\", m: \"Thought Disorder\" },\r\n\t\tcorrectAnswer: \"l\"},\r\n\t\t{question: \"For the following statement please select the LEAST ACCURATE answer listed.<br/><br/>Q.51 Regarding the classification of personality and personality disorders:\",\r\n\t\tanswers: { a: \"A categorical approach allows binary decision making, which is useful to guide treatment \", b: \"A categorical system does not allow for the weighing of criteria that differ in their diagnostic importance \", c: \"A dimensional system encourages representation of individuality because of its comprehensive nature\", d: \"A dimensional system is a better way of measuring more subtle aspects of personality \", e: \"A dimensional system permits detailed description of specific components of psychopathology that facilitate treatment planning\", f: \"A dimensional system permits graded description of psychopathology\", g: \"In a categorical system the categories and criteria are not empirically based and are often inconsistent with findings from cluster and factor analyses\", h: \"In a categorical system there is excessive comorbidity with Axis I and Axis II diagnoses\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following patient, please select the state of addiction that BEST FITS the clinical situation described.<br/><br/>Q.52 A 45 year woman spends her afternoons and evenings at home drinking. She sleeps late nursing her hangover and after an eye-opener in the morning she spends the morning begging or scrounging for money to buy alcohol.\",\r\n\t\tanswers: { a: \"Abstinence\", b: \"Abstinence in a controlled setting\", c: \"Abstinence in sustained remission\", d: \"Abuse\", e: \"Lapse\", f: \"Mild Substance Use Disorder\", g: \"Relapse\", h: \"Salience\", i: \"Severe Substance Use Disorder\", j: \"Tolerance\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.53 A 7 year old who has been in several foster homes tries to sit on the interviewer's knee and cuddle him at the first assessment.\",\r\n\t\tanswers: { a: \"Autistic Spectrum Disorder\", b: \"Conduct Disorder\", c: \"Enuresis\", d: \"Gender Identity Disorder\", e: \"Intellectual Disability\", f: \"Major Depressive Disorder\", g: \"Oppositional Defiant Disorder\", h: \"Reactive Attachment Disorder\", i: \"Rett's Disorder\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE option.<br/><br/>Q.54 Atypical antipsychotics with demonstrated efficacy when used as the only medication (monotherapy) for bipolar depression.\",\r\n\t\tanswers: { a: \"Olanzapine, Quetiapine\", b: \"Olanzapine, Ziprasidone\", c: \"Quetiapine, Risperidone\", d: \"Quetiapine, Ziprasidone\", e: \"Risperidone, Olanzapine\", f: \"Risperidone, Ziprasidone\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.55 Which of the following figures in psychiatry first synthesized haloperidol?\",\r\n\t\tanswers: { a: \"Donald Winnicott\", b: \"Emil Kraeplin\", c: \"Erving Goffman \", d: \"Eugene Bleuler\", e: \"Karl Menninger\", f: \"Paul Charpentier\", g: \"Paul Janssen\", h: \"Phillipe Pinel \", i: \"Pierre Deniker\", j: \"Ugo Cerletti\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following diagnosis, please select the LEAST ACCURATE answer.<br/><br/>Q.56 Symptoms of Paranoid Personality Disorder as described by the DSM V:\",\r\n\t\tanswers: { a: \"Suspicions that others are using, lying to, or harming them, without enough evidence for this\", b: \"Doubts about the loyalty and trustworthiness of others\", c: \"Emotionally cold and distant, tending to remain isolated from others\", d: \"Holding grudges\", e: \"Interpretation of benign remarks as derogatory or threatening\", f: \"Jealousy and suspiciousness, without due cause, that intimate partners are being unfaithful\", g: \"Retaliation in belief that their reputation or character are being assailed by others\", h: \"Secretiveness because of concerns that their confidence will be betrayed\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY cause of memory disturbance.<br/><br/>Q.57 The car accident happened at 5 pm, but although Bill recalls waking up in hospital the next morning, the day of the accident is still a complete blank.\",\r\n\t\tanswers: { a: \"Anterograde amnesia\", b: \"Dissociation\", c: \"Dissociative identity disorder \", d: \"Factitious amnesia\", e: \"Fugue state\", f: \"Psychogenic amnesia \", g: \"Retrograde amnesia\", h: \"Transient global amnesia\", i: \"Transient ischaemic attack\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE phenomenological term.<br/><br/>Q.58 The family of a 21 year old man contact mental health services, saying that they can't make sense of what he's saying.\",\r\n\t\tanswers: { a: \"Auditory Hallucinations\", b: \"Clanging\", c: \"Command Hallucinations\", d: \"Delusions of Control\", e: \"Delusions of Persecution\", f: \"Delusions of Reference\", g: \"Loss of Goal\", h: \"Neologisms\", i: \"Somatic Hallucinations\", j: \"Tactile Hallucinations\", k: \"Tangentiality\", l: \"Thought Blocking\", m: \"Thought Disorder\" },\r\n\t\tcorrectAnswer: \"m\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE intervention.<br/><br/>Q.59 Andrea is a 14 year girl who started profound food restriction 2 months after her first menstrual period. She has lost 10 kg over the last five months and has not had a period in the last five months. She is underweight but not currently physically compromised. She says that she doesn't want to have any more periods or breast development.\",\r\n\t\tanswers: { a: \"Aripiprazole\", b: \"Dialectic Behavioural Therapy\", c: \"Escitalopram\", d: \"Maudsley Family Therapy\", e: \"No follow up from MHS\", f: \"Referral to endocrinologist for GNRH agonist\", g: \"Referral to endocrinologist for GNRH agonist and secondary sex hormones\", h: \"Structural Family Therapy\", i: \"Supportive Psychotherapy\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE psychological intervention.<br/><br/>Q.60 A 20-year-old university student is afraid that he may embarrass himself in public by losing control of his bladder. This began 3 months ago when he noticed a urine spot on his jeans after going to the toilet. He has been increasingly avoiding other people and spending much of his time alone playing computer games in his room.\",\r\n\t\tanswers: { a: \"Acceptance and commitment therapy (ACT)\", b: \"Cognitive analytic therapy (CAT)\", c: \"Cognitive behavior therapy (CBT)\", d: \"Cognitive behavior therapy with exposure response prevention (CBT & ERP)\", e: \"Exposure response prevention (ERP) \", f: \"Interpersonal therapy (IPT)\", g: \"Life style modification & relaxation training \", h: \"Mentalization-based treatment (MBT)\", i: \"Mindfulness based stress reduction \", j: \"Psychodynamic psychotherapy \", k: \"Rapid eye movement desensitisation (EMDR)\", l: \"Rational emotive behavior therapy (REBT)\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.61 A previously healthy 78 year old man, recovering in hospital after undergoing a total hip replacement a day earlier, becomes confused and agitated at night. He believes he has been wrongfully imprisoned and complains of seeing spiders on the walls and on the floor.\",\r\n\t\tanswers: { a: \"Alcohol poisoning\", b: \"Alcohol withdrawal\", c: \"Benzodiazepine overdose\", d: \"Cannabis abuse\", e: \"Grand mal seizure\", f: \"Opioid overdose\", g: \"Raised intracranial pressure\", h: \"Stimulant withdrawal\", i: \"Stroke\", j: \"Subarachnoid haemorrhage\", k: \"Temporal lobe epilepsy\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"From the following list, please choose the MOST APPROPRIATE rating scale.<br/><br/>Q.62 Measuring positive and negative symptoms of schizophrenia in a research setting.\",\r\n\t\tanswers: { a: \"AIMS\", b: \"BPRS\", c: \"GAF\", d: \"HAMD\", e: \"MADRS\", f: \"PANSS\", g: \"SANS\", h: \"SAPS\", i: \"SCID\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer from the list below.<br/><br/>Q.63 Who is generally credited with the development of Interpersonal Therapy (IPT) as a psychotherapy for depression?\",\r\n\t\tanswers: { a: \"Aaron Beck\", b: \"Albert Ellis\", c: \"Ellen Frank\", d: \"Gerald Klerman\", e: \"Habib Davanloo\", f: \"John Gunderson\", g: \"Otto Kernberg\", h: \"Peter Sifneos\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.64 Zara is a 60 year old Eastern European immigrant who was brought here by her extended family a year ago. They regard her as 'backward' and she has been kept secluded from other people. She presents after developing delusions of being poisoned, and on assessment is noted to have a puffy face, long latency in replies and cognitive deficits.\",\r\n\t\tanswers: { a: \"Cushings disease\", b: \"Graves disease\", c: \"Hyperparathyroidism\", d: \"Hypothyroidism\", e: \"Liver failure\", f: \"Organophosphate toxicity\", g: \"Phaeochromocytoma\", h: \"Porphyria\", i: \"Psychogenic polydipsia\", j: \"Renal failure\", k: \"SIADH\", l: \"Wilson's disease\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE intervention.<br/><br/>Q.65 A 35 year old smoker seeks help to manage the cravings of nicotine withdrawal. He has a history of epilepsy.\",\r\n\t\tanswers: { a: \"Buprenorphine\", b: \"Bupropion\", c: \"Chlordiazepoxide\", d: \"Chlormethiazole\", e: \"Diazepam\", f: \"Disulfiram\", g: \"Fluoxetine\", h: \"Haloperidol\", i: \"Methadone\", j: \"Naltrexone\", k: \"Nicotine patches\", l: \"Quetiapine\" },\r\n\t\tcorrectAnswer: \"k\"},\r\n\t\t{question: \"For the following patient, please select the individual(s) MOST ASSOCIATED with the development of the psychological treatment of choice.<br/><br/>Q.66 A 42-year-old builder complains of irritability, anxiety and sleep difficulties in the context of chronic lower back pain following an injury.\",\r\n\t\tanswers: { a: \"Aaron Beck\", b: \"Albert Ellis \", c: \"Bateman and Fonagy \", d: \"Gerald Klerman and Myrna Weissman\", e: \"Heinz Kohut \", f: \"Jon Kabat-Zinn\", g: \"Louise Hay\", h: \"Philip Barnard and John Teasdale\", i: \"Sigmund Freud\", j: \"Steven C. Hayes and Robert Zettle \", k: \"Zindel Segal and Mark Williams\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE intervention.<br/><br/>Q.67 Matthew is a 7 year old boy referred by his foster family with whom he has been living for six months. Despite the family committing to his long term care and appearing a warm match, they report that he is still withdrawn and appears sad.\",\r\n\t\tanswers: { a: \"Atomoxetine\", b: \"Dyadic therapy such as 'Watch Wait Wonder'\", c: \"Lithium\", d: \"Maudsley Family Therapy\", e: \"Methylphenidate SR\", f: \"Parent Training e.g. Triple P\", g: \"Play Therapy with child\", h: \"Psychodynamic Psychotherapy for the mother\", i: \"Systemic Family Therapy\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"Which stage of change is BEST CHARACTERISED by the patient saying the following:<br/><br/>Q.68 'I don't like spending money on drugs but I really enjoy the highs I get'\",\r\n\t\tanswers: { a: \"Action Stage\", b: \"Contemplative Stage\", c: \"Denial\", d: \"Maintenance Stage\", e: \"Pre-contemplative Stage\", f: \"Preparation Stage\", g: \"Relapse Prevention Stage\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.69 A 52 year old man presents with a 6 month history of believing his wife is having an affair.\",\r\n\t\tanswers: { a: \"Delusional Disorder\", b: \"Drug-induced psychosis\", c: \"Major Depressive Disorder with Psychosis\", d: \"Manic episode with Psychosis\", e: \"Pre-psychotic Stage\", f: \"Psychosis secondary to a General Medical Condition\", g: \"Schizoaffective Disorder\", h: \"Schizophrenia\", i: \"Schizophreniform Disorder\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.70 The majority of acetylcholinergic neurons in the brain arise from which anatomical structure?\",\r\n\t\tanswers: { a: \"Basal nucleus (of Meynert)\", b: \"Nucleus accumbens\", c: \"Pedunculopontine tegmental nucleus\", d: \"Substantia nigra pars compacta\", e: \"Substantia nigra pars reticulata\", f: \"Subthalamic nucleus\", g: \"Ventral tegmental nucleus\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following drug, please select the MOST ACCURATE mode of action when it is used in the treatment of substance abuse disorders.<br/><br/>Q.71 Naloxone.\",\r\n\t\tanswers: { a: \"Agonist-Antagonist\", b: \"Full Agonist\", c: \"Inverse Agonist\", d: \"Neutral Antagonist\", e: \"Norepinephrine-dopamine reuptake inhibitor\", f: \"Partial Agonist\", g: \"Partial Antagonist\", h: \"Selective Serotonin re-uptake inhibitor\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE psychological assessment instrument to inform her treatment.<br/><br/>Q.72 Melanie, a 20 year old woman, recently lost rights to unsupervised access to her 2 year old when she became abusive and threatening to her ex-partner while they were in court to determine custody arrangements. She reported feeling increasingly wound up by his descriptions of her self-cutting and claimed that she ‘finally lost it' when he made mocking gestures behind the judge's back to indicate that she was crazy.\",\r\n\t\tanswers: { a: \"Beck Anxiety Inventory (BAI)\", b: \"Beck Depression Inventory (BDI-2)\", c: \"Big Five Personality Questionnaire \", d: \"Depression, Anxiety, Stress Scale (DASS)\", e: \"HCR-20 Version 3 risk assessment tool\", f: \"Minnesota Multiphasic Personality Inventory (MMPI) \", g: \"Psychopathy Checklist (PCL-R) \", h: \"Repeated Episodes of Self-Harm scale\", i: \"Symptom Checklist-90-Revised (SCL-90-R)\", j: \"The Brief Psychiatric Rating Scale (BPRS)\", k: \"The Structured Clinical Interview for the DSM 4 (SCID-II)\", l: \"Violence Risk Scale (VRS)\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following statement, please select the LEAST ACCURATE answer from the list below.<br/><br/>Q.73 The following are recommendations from the RANZCP Guidelines regarding the use of ECT to treat schizophrenia.\",\r\n\t\tanswers: { a: \"The prescription of an index course of ECT for the treatment of schizophrenia may be considered in combination with antipsychotic medication when a rapid clinical response is an urgent priority.\", b: \"The addition of ECT may be considered in people with treatment-resistant schizophrenia who have an inadequate response to clozapine.\", c: \"Prolonged courses of ECT without measured improvement are not recommended for people with schizophrenia because most research suggests that response occurs within 12 treatments. \", d: \"For a minority of individuals, longer courses may be required if progressive improvement occurs with each treatment.\", e: \"Right unilateral electrode placements are not recommended in the treatment of schizophrenia, having been shown to be ineffective.\", f: \"An objective rating scale should be used to assess baseline symptom severity, response during the ECT course and outcome at completion of a course of ECT.\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following diagnosis, please select the MOST LIKELY inherited risk factor.<br/><br/>Q.74 Huntingdon's disease.\",\r\n\t\tanswers: { a: \"5HTT gene 'L' genotype\", b: \"5HTT gene 'S' genotype\", c: \"Alleles on chromosomes 11q, 3q, 18q, and 6p \", d: \"X-linked recessive genetic transmission\", e: \"CAG trinucleotide repeats \", f: \"CTG trinucleotide repeats\", g: \"Expression of the neuregulin-1 gene\", h: \"'Extensive' metaboliser genotype of 2D6\", i: \"Genetic transmission via the sex chromosomes\", j: \"'Intermediate' metaboliser genotype of 2D6 \", k: \"'met' variant of the COMT (catecho-o-methytransferase) gene\", l: \"'Ultra-rapid' metaboliser genotype of 2D6\", m: \"'val' variant of the COMT (catecho-o-methytransferase) gene\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.75 A 14 year old girl has become extremely irritable over the last six months and refuses to speak to her mother or do any chores. She attends school intermittently and was stood down for swearing at a teacher last week. Her mother reports she seems to be having trouble sleeping and has lost five kilos.\",\r\n\t\tanswers: { a: \"Autistic Spectrum Disorder\", b: \"Conduct Disorder\", c: \"Enuresis\", d: \"Gender Identity Disorder\", e: \"Intellectual Disability\", f: \"Major Depressive Disorder\", g: \"Oppositional defiant disorder\", h: \"Reactive attachment Disorder\", i: \"Rett's Disorder\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.76 The principal mechanism of action of bupropion is thought to be that it:\",\r\n\t\tanswers: { a: \"Inhibits dopamine reuptake\", b: \"Inhibits GABA reuptake\", c: \"Inhibits noradrenalin reuptake\", d: \"Inhibits reuptake of noradrenalin and dopamine\", e: \"Inhibits reuptake of noradrenalin and GABA\", f: \"Inhibits reuptake of serotonin and dopamine\", g: \"Inhibits reuptake of serotonin and GABA\", h: \"Inhibits reuptake of serotonin and noradrenalin\", i: \"Inhibits serotonin reuptake\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following set of symptoms, please select the MOST LIKELY movement disorder they indicate.<br/><br/>Q.77 Grimacing and the bon-bon sign.\",\r\n\t\tanswers: { a: \"Acute Dystonia\", b: \"Akathisia\", c: \"Chronic Dystonia\", d: \"Medication Induced Tremor\", e: \"Neuroleptic Malignant Syndrome\", f: \"Oculogyric Crises\", g: \"Pseudo-parkinsonism\", h: \"Tardive Dyskinesia\", i: \"Torticollis\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE and evidenced-based pharmacological next step.<br/><br/>Q.78 A 25 year old woman with borderline personality disorder describes no improvement in her symptoms across 6 months of treatment with fluoxetine 40 mg/day. Her symptoms include interpersonal sensitivity, anxiety, and anger outbursts.\",\r\n\t\tanswers: { a: \"Augment fluoxetine with aripiprazole 15–30 mg/ day as tolerated\", b: \"Augment fluoxetine with lamotrigine increasing to 100–200 mg as tolerated\", c: \"Augment fluoxetine with lithium to a therapeutic level\", d: \"Augment fluoxetine with mirtazapine 15–45 mg as tolerated\", e: \"Increase fluoxetine to 60 mg/day\", f: \"Switch to lamotrigine increasing to 100–200 mg as tolerated\", g: \"Switch to quetiapine at mood stabilising doses of between 350 mg to 600 mg/day \", h: \"Switch to sodium valproate to achieve therapeutic levels\", i: \"Switch to venlafaxine increasing to 300 mg/day\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following description of a rating scale, please select the MOST APPROPRIATE choice as to its developer and namesake<br/><br/>Q.79 This rating scale for depression is clinician rated and usually features 17 items, but may have up to 24 items, each rated 0 – 4 or 0 – 2.\",\r\n\t\tanswers: { a: \"Andreasen\", b: \"Beck \", c: \"Hamilton \", d: \"Montgomery-Åsberg\", e: \"Raskin\", f: \"Wing\", g: \"Zung\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.80 Which psychotropic has been used to increase the white cell count in patients who have developed neutropenia while taking clozapine?\",\r\n\t\tanswers: { a: \"Carbamazepine\", b: \"Gabapentin\", c: \"Lamotrigine\", d: \"Lithium\", e: \"Phenytoin\", f: \"Topiramate\", g: \"Valproate\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE next treatment adjustment.<br/><br/>Q.81 A 36 year old woman with fibromyalgia, generalised anxiety disorder (GAD) and depression is currently taking several psychotropic medications, including alprazolam, duloxetine, pregabalin, and hydrocodone/acetaminophen. She has residual pain, anxiety and mood symptoms. Your purpose is to simplify her medication regime to medications with the best evidence for efficacy for her disorders.\",\r\n\t\tanswers: { a: \"Discontinue all medication as she remains symptomatic despite polypharmacy \", b: \"Discontinue duloxetine as it can cause abdominal pain\", c: \"Discontinue duloxetine as it has the least evidence of efficacy and is apparently ineffective in treating symptoms\", d: \"Discontinue either duloxetine or pregabalin as their interaction can increase anxiety \", e: \"Discontinue Hydrocodone/acetaminophen as it has the least evidence of efficacy\", f: \"Discontinue hydrocodone/acetaminophen as it may worsen depressive symptoms \", g: \"Discontinue pregabalin as it is not approved for use in GAD and is more specifically targeted at neuropathic pain\", h: \"Gradually discontinue alprazolam as it is best suited for short term use and has the potential for dependency \", i: \"Leave medications unchanged as she would probably be worse without them\", j: \"Switch from duloxetine to venlafaxine\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following sample of a patient's speech, please select the MOST APPROPRIATE phenomenological term.<br/><br/>Q.82 'He was vorpling in and out. They do that, so as to throw you off the scent. They vorple.'\",\r\n\t\tanswers: { a: \"Clanging\", b: \"Delusions of Control\", c: \"Delusions of Persecution\", d: \"Delusions of Reference\", e: \"Derailment\", f: \"Knight's move thinking\", g: \"Neologism\", h: \"Tangentiality\", i: \"Thought Insertion\", j: \"Verbigeration\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.83 A 17 year old boy is seen for forensic evaluation having been charged with selling synthetic cannabinoids at school. He shows no concern for the adolescents that became unwell using them. He has previously been accused of rape and assault of peers, but not charged.\",\r\n\t\tanswers: { a: \"Alcohol dependence\", b: \"Autistic Spectrum Disorder\", c: \"Bipolar Disorder Prodrome\", d: \"Conduct Disorder\", e: \"Fetishism\", f: \"Major Depressive Episode\", g: \"Munchausen's by proxy\", h: \"No diagnosis\", i: \"Parasomnias\", j: \"Psychotic disorder NOS\", k: \"Synthetic cannabinoid misuse\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.84 A 78 year old retired GP develops progressive difficulty in walking, with a slow, broad-based gait and some falls. After ten years of this he also develops incontinence and mild cognitive impairment.\",\r\n\t\tanswers: { a: \"Benign hydrocephalus\", b: \"Cerebrovascular malformation\", c: \"Cryptococcal meningitis\", d: \"Hyperparathyroidism\", e: \"Hypothyroidism\", f: \"Inappropriate ADH syndrome\", g: \"Neuroleptic malignant syndrome\", h: \"Neuropsychiatric systemic lupus erythematosus (SLE) \", i: \"Neurosyphilis\", j: \"Normal pressure hydrocephalus\", k: \"Water intoxication\", l: \"Wernicke's encephalopathy\" },\r\n\t\tcorrectAnswer: \"j\"},\r\n\t\t{question: \"For the following patient, please select the answer listed below which is MOST LIKELY to be responsible for his medical deterioration.<br/><br/>Q.85 A 23 year old male with a known history of borderline personality disorder is brought to the Emergency Department with lacerations to his wrists. While having these sutured, he develops a cardiac arrhythmia, becomes drowsy and suffers a seizure.\",\r\n\t\tanswers: { a: \"Acute blood loss\", b: \"Diazepam overdose\", c: \"Dothiepin overdose \", d: \"Epilepsy \", e: \"Hypokalaemia\", f: \"Hyponatraemia \", g: \"Paracetamol overdose \", h: \"Pseudo-seizures \", i: \"Quetiapine overdose \", j: \"Venlafaxine overdose\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE phenomenological term.<br/><br/>Q.86 A 23 year old woman presents with a five day history of not eating due to believing that she is being poisoned.\",\r\n\t\tanswers: { a: \"Bizarre delusions\", b: \"Cotard delusions\", c: \"Delusions of Control\", d: \"Delusions of Persecution\", e: \"Hypochondriacal delusions\", f: \"Induced delusions\", g: \"Magical thinking\", h: \"Nihilistic delusions\", i: \"Obsessional thinking\", j: \"Pseudologia fantastica\", k: \"Somatic delusions\", l: \"Systematised delusions\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.87 Which combination of ECT parameters listed below have been shown NOT to be effective in the treatment of depression?\",\r\n\t\tanswers: { a: \"Bifrontal standard pulse width\", b: \"Bifrontal ultra brief pulse width\", c: \"Bitemporal standard pulse width\", d: \"Bitemporal ultra brief pulse width\", e: \"RUL standard pulse width\", f: \"RUL ultra brief pulse width\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE treatment.<br/><br/>Q.88 Treatment to switch to when a patient with psychosis has developed tardive dyskinesia.\",\r\n\t\tanswers: { a: \"Amisulpride\", b: \"Aripiprazole\", c: \"Benztropine\", d: \"Clonazepam\", e: \"Clozapine\", f: \"Electroconvulsive therapy\", g: \"Haloperidol\", h: \"Olanzapine\", i: \"Quetiapine\", j: \"Risperidone\", k: \"Ziprasidone\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following clinical situation, please select the MOST APPROPRIATE rating scale.<br/><br/>Q.89 Alcohol related symptoms experienced within the previous year.\",\r\n\t\tanswers: { a: \"Addiction Research Foundation Clinical Institute Withdrawal \", b: \"Assessment – Alcohol (CIWS-Ar)\", c: \"Alcohol Dependence Scale\", d: \"Alcohol Use Disorders Identification Test (Audit)\", e: \"CAGE questionnaire\", f: \"Hamilton Depression Rating Scale (HAMD-17)\", g: \"Michigan Alcoholism Screening Test (MAST)\", h: \"Paddington Alcohol Test\", i: \"Severity of Alcohol Dependence Questionnaire (SADQ-C)\", j: \"Severity of Dependence Scale (SDS)\", k: \"Severity of Opiate Dependence Questionnaire (SADQ)\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.90 Which of the following is a simple test for estimating pre-morbid IQ?\",\r\n\t\tanswers: { a: \"Boston Naming Test\", b: \"Clifton Assessment Schedule\", c: \"Cognitive Estimates Test\", d: \"Mini-Mental State Examination\", e: \"National Adult Reading Test \", f: \"Raven's Progressive Matrices\", g: \"Trail Making Test\", h: \"Wechsler Adult Intelligence Scale\", i: \"Wechsler Memory Scale\", j: \"Wisconsin Sorting Card Test\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY cause of memory disturbance.<br/><br/>Q.91 Malcolm, aged 77, knows he had a course of electroconvulsive therapy a month ago but can't recall where he had the actual treatments.\",\r\n\t\tanswers: { a: \"Alzheimer's dementia\", b: \"Anterograde amnesia\", c: \"Dissociation\", d: \"Factitious amnesia\", e: \"Fugue state\", f: \"Psychogenic amnesia \", g: \"Retrograde amnesia\", h: \"Transient global amnesia\", i: \"Transient ischaemic attack\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE and evidence-based psychological intervention.<br/><br/>Q.92 A 6 year old boy Paul was referred because despite being quite able he is performing badly at school. He doesn't sit still, isn't completing his work and is distracting the rest of the class. He has been getting into fights and has been stood down from school recently after punching another pupil. Paul reports not liking school because the teacher and other students are ‘mean' to him. His parents say he is a handful at home. They feel frustrated and are not sure what to do about his behavior.\",\r\n\t\tanswers: { a: \"Circle of security\", b: \"Cognitive Behavioral Therapy (CBT)\", c: \"Family Based Therapy \", d: \"Family connections \", e: \"Interpersonal Therapy (IPT)\", f: \"Parent behavioral management training \", g: \"Parent (PCIT)\", h: \"Systemic Family Therapy \", i: \"Toolbox parenting \", j: \"Tough love\", k: \"Watch, Wait and Wonder\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE psycho-social intervention.<br/><br/>Q.93 A 48-year-old architect who has suffered five episodes of moderately severe major depression is concerned to prevent further relapse. He continues to take antidepressants and has had three previous courses of CBT.\",\r\n\t\tanswers: { a: \"Acceptance and Commitment Therapy (ACT)\", b: \"Cognitive Analytic Therapy (CAT)\", c: \"Cognitive Behavior Therapy (CBT)\", d: \"Interpersonal Therapy (IPT)\", e: \"Lifestyle modification \", f: \"Mentalization-based treatment (MBT)\", g: \"Mindfulness-based stress reduction\", h: \"Mindfulness Based Cognitive Therapy (MBCT)\", i: \"Psychodynamic psychotherapy \", j: \"Rapid Eye Movement Desensitisation (EMDR)\", k: \"Rational Emotive Behavior Therapy (REBT)\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.94 Which clinical feature is more likely to be seen in a patient with bipolar depression than in someone with unipolar depression?\",\r\n\t\tanswers: { a: \"Early age of onset\", b: \"Fewer previous episodes\", c: \"Gradual onset of depression\", d: \"Longer duration of depressive episodes\", e: \"Reduced sleep\", f: \"Somatic complaints\", g: \"Weight loss\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.95 The initial plasma half-life of which of the following psychotropics reduces substantially with chronic dosing?\",\r\n\t\tanswers: { a: \"Aripiprazole\", b: \"Carbamazepine\", c: \"Gabapentin\", d: \"Lamotrigine\", e: \"Lithium\", f: \"Olanzapine\", g: \"Quetiapine\", h: \"Sodium Valproate\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following set of symptoms, please select the MOST LIKELY movement disorder they characterise.<br/><br/>Q.96 Fever, diaphoresis, rigidity, confusion and fluctuating consciousness.\",\r\n\t\tanswers: { a: \"Acute Dystonia\", b: \"Akathisia\", c: \"Chronic Dystonia\", d: \"Medication Induced Tremor\", e: \"Neuroleptic Malignant Syndrome\", f: \"Oculogyric Crises\", g: \"Pseudo-parkinsonism\", h: \"Restless Leg Syndrome\", i: \"Tardive Dyskinesia\", j: \"Torticollis\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"Which stage of change is BEST CHARACTERISED by the patient saying the following:<br/><br/>Q.97 'I've been clean for six months now, but I'm worried this class reunion coming up's going to trigger me – old coke buddies, y'know.'\",\r\n\t\tanswers: { a: \"Action Stage\", b: \"Contemplative Stage\", c: \"Denial\", d: \"Maintenance Stage\", e: \"Pre-contemplative Stage\", f: \"Preparation Stage\", g: \"Relapse Prevention Stage\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.98 Margery, aged 33, suffered a serious head injury 10 years ago in a car accident. Her parents, with whom she lives, are concerned that her ideas are increasingly bizarre and that she has become preoccupied with obscure religious texts over the past year. Margery tells you she believes demons harass her at night and that she battles them in her sleep, as she sometimes wakes to find she's fallen out of bed. She says she often senses 'a spectral presence' hovering at her shoulder, and hears it speak to her. Her mother confirms that she has indeed fallen out of bed during the night on a few occasions.\",\r\n\t\tanswers: { a: \"Cluster A personality disorder\", b: \"Brief psychotic disorder\", c: \"Schizophreniform disorder\", d: \"Depression with psychotic features \", e: \"Schizophrenia\", f: \"Delusional disorder\", g: \"Psychosis due to general medical condition \", h: \"Schizoaffective disorder \", i: \"Drug-induced psychosis\", j: \"Mania with psychotic features\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE answer from the list below.<br/><br/>Q.99 A 15 year old girl is referred with poor school attendance due to concern that others are ‘judging' her after she was teased by her class-mates. She has always been shy and a bit of a loner. She describes being worried about talking to new people or groups in case she says something silly. Which intervention would NOT be an appropriate choice as a component of her treatment?\",\r\n\t\tanswers: { a: \"Citalopram\", b: \"Cognitive Behavior Therapy \", c: \"Family Therapy\", d: \"Fluoxetine\", e: \"Group Therapy \", f: \"Interpersonal Therapy \", g: \"Mentalization-Based Treatment (MBT)\", h: \"Mindfulness training\", i: \"Relaxation training\", j: \"Sertraline\", k: \"Venlafaxine\" },\r\n\t\tcorrectAnswer: \"k\"},\r\n\t\t{question: \"For the following statement, please select the LEAST ACCURATE answer listed below.<br/><br/>Q.100 Antisocial personality disorder in adulthood is associated with:\",\r\n\t\tanswers: { a: \"A genotype which confers high levels of neurotransmitter-metabolizing enzyme Monoamine Oxidase-A (MAO-A) \", b: \"A sex ratio for lifetime prevalence of 2.4 males to 1 female \", c: \"Being subject to abuse or neglect during childhood\", d: \"Family history of antisocial disorder, personality disorder or substance misuse\", e: \"Gang participation \", f: \"Homicidal and suicidal behaviors\", g: \"Low socioeconomic status \", h: \"Premature death \", i: \"Substance abuse in adolescence \", j: \"Symptoms of attention-deficit hyperactivity disorder (ADHD) persisting into late adolescence\", k: \"Watching excessive amounts of television during childhood\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE treatment.<br/><br/>Q.101 Treating pseudo-parkinsonism side effects in a patient on antipsychotic medication.\",\r\n\t\tanswers: { a: \"Amisulpride\", b: \"Aripiprazole\", c: \"Benztropine\", d: \"Clozapine\", e: \"Electroconvulsive therapy\", f: \"Haloperidol\", g: \"Lorazepam\", h: \"Olanzapine\", i: \"Quetiapine\", j: \"Risperidone\", k: \"Ziprasidone\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE answer.<br/><br/>Q.102 You are advising a 28 year old woman with an established diagnosis of Bipolar I disorder. She is on no medication and is planning to get pregnant. Assuming she remains off medication, the risk of a recurrence of her disorder in the first month post-partum is approximately:\",\r\n\t\tanswers: { a: \"10%\", b: \"25%\", c: \"33%\", d: \"50%\", e: \"66%\", f: \"75%\", g: \"90%\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the state of addiction that BEST FITS the clinical situation described.<br/><br/>Q.103 A 21 year old man uses methamphetamine on regular basis. He presents via the police after being arrested for disorderly behaviour. His drug use has damaged his relationship with his family and he is failing his university course and has stopped playing social sport because he's absent so much. He has attempted to cut down unsuccessfully several times, but noted it was making him depressed and anxious.\",\r\n\t\tanswers: { a: \"Abstinence\", b: \"Abstinence in a controlled setting\", c: \"Abstinence in sustained remission\", d: \"Abuse\", e: \"Craving\", f: \"Lapse\", g: \"Mild Substance Use Disorder\", h: \"Relapse\", i: \"Salience\", j: \"Severe Substance Use Disorder\", k: \"Tolerance\" },\r\n\t\tcorrectAnswer: \"j\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE answer from the list below.<br/><br/>Q.104 A 14 year old youth, Jon, living with his parents, is arrested for fondling several girls in school and for breaking into his teacher's home and cutting the crotch out of her panties. Other problems include association with behaviourally disturbed peers, truancy and parental conflict. His father is authoritarian, drinks heavily and often becomes verbally abusive when intoxicated. Jon's strengths include intelligence, relatively strong interpersonal skills and absence of prior problem behaviours. Multisystemic treatment would include all of the following EXCEPT for:\",\r\n\t\tanswers: { a: \"Attending a residential treatment centre \", b: \"Disengagement from behaviourally disturbed peers and engagement with well-socialised peers\", c: \"Family therapy to improve family relationships \", d: \"Jon engaging in individual therapy to reduce denial and cognitive distortion, and to increase empathy for the victims and address his own victimisation\", e: \"Jon obtaining part-time employment\", f: \"Marital therapy \", g: \"Monitoring and implementing contingencies to encourage Jon's school attendance and performance \", h: \"Sex education \", i: \"Treatment of the father's substance dependence/abuse.\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following clinical situation, please select the MOST LIKELY inherited genetic variant.<br/><br/>Q.105 A good response to SSRI medication.\",\r\n\t\tanswers: { a: \"5HTT gene 'L' genotype\", b: \"5HTT gene 'S' genotype\", c: \"Alleles on chromosomes 11q, 3q, 18q, and 6p \", d: \"X-linked recessive genetic transmission\", e: \"CAG trinucleotide repeats \", f: \"CTG trinucleotide repeats\", g: \"Expression of the neuregulin-1 gene\", h: \"Extensive' metaboliser genotype of 2D6\", i: \"Genetic transmission via the sex chromosomes\", j: \"'Intermediate' metaboliser genotype of 2D6 \", k: \"'met' variant of the COMT (catecho-o-methytransferase) gene\", l: \"Ultra-rapid' metaboliser genotype of 2D6\", m: \"'val' variant of the COMT (catecho-o-methytransferase) gene\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following psychological therapy, please select the LEAST ACCURATE statement from the list below.<br/><br/>Q.106 Regarding Dialectical Behavioral Therapy (DBT) for treatment of borderline personality disorder:\",\r\n\t\tanswers: { a: \"DBT uses a hierarchy of treatment targets to help the therapist determine the order in which problems should be addressed. The treatment targets in order of priority are: life-threatening behaviours, therapy-interfering behaviors, quality of life interfering behaviors, and skills acquisition \", b: \"DBT was initially developed by Marsha Linehan for treatment of chronically suicidal women\", c: \"Post traumatic stress disorder, if present, is treated in the first stage of therapy\", d: \"The four DBT skills modules include two sets of acceptance-oriented skills (mindfulness and distress tolerance) and two sets of change-oriented skills (emotional regulation and interpersonal effectiveness)\", e: \"Most publications on DBT relate to stage one of treatment \", f: \"The primary dialectic (synthesis of opposites) within DBT is between the strategies of acceptance and change\", g: \"There are four components of DBT including the skills training group, individual DBT therapy, telephone skills coaching and the DBT therapist consultation team \", h: \"There are four stages of treatment with stage one focussing on the patient gaining behavioral control\", i: \"There is a sound evidence base supporting DBT leading to reduction of deliberate self-harm in people with borderline personality disorder\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE assessment tool.<br/><br/>Q.107 A 6 year old boy Paul was referred because despite being quite able he is performing badly at school. He doesn't sit still, isn't completing his work and is distracting the rest of the class. He has been getting into fights and has been stood down from school recently after punching another pupil. Paul reports not liking school because the teacher and other students are ‘mean' to him. His parents say he is a handful at home. They feel frustrated and are not sure what to do about his behavior.\",\r\n\t\tanswers: { a: \"Beck Anxiety Inventory (BAI) \", b: \"Beck Youth Inventory (BYI- 2)\", c: \"Brown Attention-Deficit Disorder Symptom Assessment Scale (BADDS)\", d: \"Depression Anxiety Stress Scale (DASS)\", e: \"Multidimensional Anxiety Scale for Children (MASC 2)\", f: \"Revised Conners' rating scale (CPRS-R) \", g: \"Strengths and Difficulties Questionnaire \", h: \"The Brief Psychiatric Rating Scale For Children (BPRS-C)\", i: \"The Child Behavior Checklist (CBCL)\", j: \"The Conduct Disorder Scale (CDS)\", k: \"The Strengths and Difficulties Questionnaire (SDQ)\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE psychological therapy for substance use from the list below.<br/><br/>Q.108 Focused and goal-directed exploration of a client's ambivalence, so as to elicit behavioural change.\",\r\n\t\tanswers: { a: \"Alcoholics Anonymous 12 Step Recovery Programme \", b: \"Cognitive Analytic Therapy\", c: \"Cognitive Behaviour Therapy\", d: \"Contingency Management\", e: \"Dialectical Behaviour Therapy\", f: \"Eye Movement Desensitisation and Reprocessing (EMDR)\", g: \"Interpersonal Therapy \", h: \"Motivational Interviewing\", i: \"Person-Centred Therapy\", j: \"Psychodynamic Psychotherapy\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.109 A 39 year old known gang associate who was admitted prior to the weekend with psychosis, presents with a normal mental state on Monday, three days after admission.\",\r\n\t\tanswers: { a: \"Delusional Disorder\", b: \"Drug-induced psychosis\", c: \"Major Depressive Disorder with Psychosis\", d: \"Manic episode with Psychosis\", e: \"Pre-psychotic Stage\", f: \"Psychosis secondary to a General Medical Condition\", g: \"Schizoaffective Disorder\", h: \"Schizophrenia\", i: \"Schizophreniform Disorder\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.110 Which of the following psychotropics would be most likely to exacerbate a patient's psoriasis?\",\r\n\t\tanswers: { a: \"Aripiprazole\", b: \"Carbamazepine\", c: \"Gabapentin\", d: \"Lamotrigine\", e: \"Lithium\", f: \"Olanzapine\", g: \"Quetiapine\", h: \"Sodium Valproate\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST ACCURATE treatment-related statement from the list below.<br/><br/>Q.111 Joanne, a 21 year old lawyer in her first professional year, has a diagnosis of bulimia nervosa with bingeing and purging most evenings. Assessment also reveals that a year ago she was started on methylphenidate for ADHD.\",\r\n\t\tanswers: { a: \"Methylphenidate is likely to be increasing Joanne's anxiety and she would be better treated with high dose SSRI to reduce anxiety and bingeing\", b: \"Methylphenidate may assist with the symptoms of ADHD and also reduce severity of bingeing by improving impulse control\", c: \"Methylphenidate should be continued because it will lessen Joanne's anxiety about her shape and weight \", d: \"Methylphenidate should be continued because the appetite suppressant action is likely to increase Joanne's control thus reduce bingeing\", e: \"Methylphenidate should be stopped because bingeing indicates poor impulse control and abuse of the medication is a concern\", f: \"Methylphenidate should be stopped because it is unlikely that Joanne suffers from ADHD, given the diagnosis was first made at age 20 and she is a successful professional\", g: \"Methylphenidate should be stopped because the appetite suppressant effect is likely to worsen food restriction thus contribute to evening bingeing\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.112 A 45-year-old man from Lagos presents with personality changes, memory loss and poor judgment. He is HIV positive and his pupils fail to accommodate properly.\",\r\n\t\tanswers: { a: \"Benign hydrocephalus\", b: \"Cerebrovascular malformation\", c: \"Cryptococcal meningitis\", d: \"Hyperparathyroidism\", e: \"Hypothyroidism\", f: \"Inappropriate ADH syndrome\", g: \"Neuroleptic malignant syndrome\", h: \"Neuropsychiatric systemic lupus erythematosus (SLE) \", i: \"Neurosyphilis\", j: \"Normal pressure hydrocephalus\", k: \"Water intoxication\", l: \"Wernicke's encephalopathy\" },\r\n\t\tcorrectAnswer: \"i\"},\r\n\t\t{question: \"For the following drug, please select the MOST ACCURATE mode of action when it is used in the treatment of substance abuse disorders.<br/><br/>Q.113 Bupropion.\",\r\n\t\tanswers: { a: \"Agonist-Antagonist\", b: \"Full Agonist\", c: \"Inverse Agonist\", d: \"Neutral Antagonist\", e: \"Norepinephrine-dopamine reuptake inhibitor\", f: \"Partial Agonist\", g: \"Partial Antagonist\", h: \"Selective Serotonin re-uptake inhibitor\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following sample of a patient's speech, please select the MOST APPROPRIATE phenomenological term.<br/><br/>Q.114 'I'm pretty sure my husband's cheating on me – for several months, now. I can't stop thinking about it. I've been considering hiring a private detective.'\",\r\n\t\tanswers: { a: \"Bizarre delusions\", b: \"Cotard delusions\", c: \"Delusions of Control\", d: \"Delusions of Reference\", e: \"Ideas of Reference\", f: \"Nihilistic delusions\", g: \"Obsessional ideas\", h: \"Persecutory delusions\", i: \"Thought insertion\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.115 A 16 year old girl has gradually withdrawn from her family over the last three months and has needed prompting to shower and dress. Her family referred her today after seeing a disorganised Facebook post saying that she thought people were impregnating her tampons with illicit drugs.\",\r\n\t\tanswers: { a: \"Alcohol dependence\", b: \"Autistic Spectrum Disorder\", c: \"Bipolar Disorder Prodrome\", d: \"Conduct Disorder\", e: \"Fetishism\", f: \"Major Depressive Episode\", g: \"Munchausen's by proxy\", h: \"No diagnosis\", i: \"Parasomnias\", j: \"Psychotic disorder NOS\", k: \"Synthetic cannabinoid misuse\" },\r\n\t\tcorrectAnswer: \"j\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.116 Amyotrophic lateral sclerosis is better known as:\",\r\n\t\tanswers: { a: \"Duchenne's Muscular Dystrophy\", b: \"Familial periodic paralysis\", c: \"Friedrich's Ataxia\", d: \"Motor Neuron Disease\", e: \"Multiple Sclerosis\", f: \"Myasthenia Gravis\", g: \"Neurofibromatosis\", h: \"Schilder's disease\", i: \"Tuberous sclerosis\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"For the following patient, please select the property or properties of citalopram MOST LIKELY to be responsible for his sexual side effects and the discontinuation effects.<br/><br/>Q.117 A 35 year old man stops citalopram because of sexual dysfunction. He then develops akathisia and dizziness.\",\r\n\t\tanswers: { a: \"Inhibition of CYP450 3A4 \", b: \"Anticholinergic actions \", c: \"Inhibition of Nitric Oxide Synthase (NOS)\", d: \"Anticholinergic actions and inhibition of CYP450 3A4 \", e: \"Inhibition of CYP450 3A4 and inhibition of Nitric Oxide Synthase (NOS)\", f: \"Inhibition of Nitric Oxide Synthase (NOS) and Anticholinergic actions\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following sample of a patient's speech, please select the MOST APPROPRIATE phenomenological term.<br/><br/>Q.118 'They call me blue-eyes, true-eyes, gotta be new eyes – get it? I'm Mr Big, I'm the man with the plan, Stan.'\",\r\n\t\tanswers: { a: \"Clanging\", b: \"Delusions of Control\", c: \"Delusions of Persecution\", d: \"Derailment\", e: \"Fluent aphasia\", f: \"Knight's move thinking\", g: \"Neologisms\", h: \"Perseveration\", i: \"Thought Insertion\", j: \"Verbigeration\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.119 Andrew has chronic schizophrenia with some OCD symptoms, and lives in staffed supported accommodation. He develops a number of rituals focussed on beliefs that his body is drying out, showers excessively and carries bottled water around constantly. He is seen by his GP for complaints of nausea, loss of appetite, irritability and malaise. Investigations show a low serum and urinary sodium.\",\r\n\t\tanswers: { a: \"Cushings disease\", b: \"Graves disease\", c: \"Hyperparathyroidism\", d: \"Hypothyroidism\", e: \"Liver failure\", f: \"Organophosphate toxicity\", g: \"Phaeochromocytoma\", h: \"Porphyria\", i: \"Psychogenic polydipsia\", j: \"Renal failure\", k: \"SIADH\", l: \"Wilson's disease\" },\r\n\t\tcorrectAnswer: \"i\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.120 Researchers such as Akiskal have proposed a bipolar spectrum classification of bipolar disorders as an alternative to the DSM classification. According to this bipolar spectrum classification, a patient who has a switch into mania on antidepressant therapy would be classified as:\",\r\n\t\tanswers: { a: \"Bipolar I\", b: \"Bipolar II\", c: \"Bipolar III\", d: \"Bipolar IV\", e: \"Bipolar V\", f: \"Bipolar VI\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following clinical situation, please select the MOST APPROPRIATE rating scale.<br/><br/>Q.121 Assessing how well a patient is doing in various areas of their life.\",\r\n\t\tanswers: { a: \"AIMS\", b: \"BPRS\", c: \"GAF\", d: \"HAMD\", e: \"MADRS\", f: \"PANSS\", g: \"SANS\", h: \"SAPS\", i: \"SCID\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE medication.<br/><br/>Q.122 A 24 year old man with an intravenous habit uses moderate doses of opioids and seeks help stopping his IV use. He has a co-morbid history of depression and of suicide attempts by overdosing.\",\r\n\t\tanswers: { a: \"Buprenorphine\", b: \"Bupropion\", c: \"Chlordiazepoxide\", d: \"Chlormethiazole\", e: \"Diazepam\", f: \"Disulfiram\", g: \"Fluoxetine\", h: \"Haloperidol\", i: \"Methadone\", j: \"Naltrexone\", k: \"Nicotine Patches\", l: \"Quetiapine\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE psychological treatment.<br/><br/>Q.123 You are asked to assess a 12 year old John, who has restricted food group intake; he eats only rice, potatoes, chips and tomato sauce. When presented with other foods, he reports having tummy pains, breathing fast, worries that he won't manage, and typically he vomits. The problem first began at age 4, after his father left to live overseas. His mother doesn't like to see her son upset but is worried that he isn't eating properly.\",\r\n\t\tanswers: { a: \"Adolescent Mentalization-Based Integrative Treatment (AMBIT)\", b: \"Circle of Security\", c: \"Cognitive Behavioral Therapy (CBT)\", d: \"Cognitive behavioral therapy enhanced version for eating disorders (CBT-E) \", e: \"Family Based Therapy \", f: \"Family Connections \", g: \"Interpersonal Therapy (IPT)\", h: \"Parent Child Interaction Therapy (PCIT)\", i: \"Parent Management Training \", j: \"Strategic Family therapy\", k: \"Systemic family therapy \", l: \"Tough love\", m: \"Watch Wait and Wonder\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following forensic population, please select the MOST ACCURATE corresponding statement from the list below.<br/><br/>Q.124 Regarding sex offenders in custody:\",\r\n\t\tanswers: { a: \"Conviction histories of sex offenders are an approximate reflection of their offending behavior \", b: \"Imprisoned sex offenders tend to also have a number of prior convictions for other types of offending\", c: \"Rates of re-imprisonment are higher amongst older sex offenders as compared to those less than 25 years of age \", d: \"Sex offenders are usually referred to a sex offenders' programme at the beginning of their sentence\", e: \"Sex offenders with finite sentences are potentially liable for strict supervision conditions up to 10 years or more beyond their final release date\", f: \"Sex offenders who deny offending are rarely released into the community\", g: \"The proportion of inmates convicted of sexual offences against adults is roughly equivalent to those convicted of sexual offences against children\", h: \"Treatment programmes for sex offenders are considered safe places to disclose deviant sexual behavior\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following clinical situation, please select the MOST APPROPRIATE rating scale.<br/><br/>Q.125 Quick identification of alcohol-related problems amongst those attending Accident and Emergency departments.\",\r\n\t\tanswers: { a: \"Addiction Research Foundation Clinical Institute Withdrawal \", b: \"Assessment – Alcohol (CIWS-Ar)\", c: \"Alcohol Dependence Scale\", d: \"Alcohol Use Disorders Identification Test (Audit)\", e: \"CAGE questionnaire\", f: \"Hamilton Depression Rating Scale (HAMD-17)\", g: \"Michigan Alcoholism Screening Test (MAST)\", h: \"Paddington Alcohol Test\", i: \"Severity of Alcohol Dependence Questionnaire (SADQ-C)\", j: \"Severity of Dependence Scale (SDS)\", k: \"Severity of Opiate Dependence Questionnaire (SADQ)\" },\r\n\t\tcorrectAnswer: \"h\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY cause of memory disturbance.<br/><br/>Q.126 Joseph, aged 41, finds himself wandering around an unfamiliar railway station in another town, two days after his wife tells him she has always felt like a man inside, and intends to have a sex-change.\",\r\n\t\tanswers: { a: \"Anterograde amnesia\", b: \"Dissociation\", c: \"Dissociative identity disorder \", d: \"Factitious amnesia\", e: \"Fugue state\", f: \"Psychogenic amnesia \", g: \"Retrograde amnesia\", h: \"Transient global amnesia\", i: \"Transsexualism\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.127 A 42 year old woman describes burning down her father's house to rid it of evil spirits. On mental state examination, she is poorly kempt and is thought disordered.\",\r\n\t\tanswers: { a: \"Delusional Disorder\", b: \"Drug-induced psychosis\", c: \"Major Depressive Disorder with Psychosis\", d: \"Manic episode with Psychosis\", e: \"Pre-psychotic Stage\", f: \"Psychosis secondary to a General Medical Condition\", g: \"Schizoaffective Disorder\", h: \"Schizophrenia\", i: \"Schizophreniform Disorder\" },\r\n\t\tcorrectAnswer: \"i\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.128 Which of the following foods should not be consumed by a patient taking tranylcypromine?\",\r\n\t\tanswers: { a: \"Anchovies\", b: \"Coca-Cola\", c: \"Cottage cheese\", d: \"Nutella\", e: \"Peanut butter\", f: \"Pickled onions\", g: \"Soy sauce\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE treatment.<br/><br/>Q.129 Antipsychotic treatment with virtually no sexual side effects.\",\r\n\t\tanswers: { a: \"Amisulpride\", b: \"Aripiprazole\", c: \"Benztropine\", d: \"Clozapine\", e: \"Electroconvulsive therapy\", f: \"Haloperidol\", g: \"Lorazepam\", h: \"Olanzapine\", i: \"Quetiapine\", j: \"Risperidone\", k: \"Ziprasidone\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following symptoms, please select the MOST ACCURATE answer from the list below.<br/><br/>Q.130 Unwanted, intrusive thoughts and images:\",\r\n\t\tanswers: { a: \"Are a concern, as thinking about something increases the probability of the corresponding behavior or event \", b: \"Are abnormal experiences which can be harmful \", c: \"Are indistinguishable in content between people with Obsessive Compulsive Disorder and the ‘normal' population\", d: \"Are rare in the general population\", e: \"Are significant because they are recurrently present\", f: \"Are unnecessary for thinking creatively and problem-solving\", g: \"Can be suppressed in the long term \", h: \"Do not differ in the meaning that people with Obsessive Compulsive Disorder attach to their occurrence and content, compared to the ‘normal' population\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following drug, please select the MOST ACCURATE mode of action when it is used in the treatment of substance abuse disorders.<br/><br/>Q.131 For the following drug, please select the MOST ACCURATE mode of action when it is used in the treatment of substance abuse disorders. Methadone.\",\r\n\t\tanswers: { a: \"Agonist-Antagonist\", b: \"Full Agonist\", c: \"Inverse Agonist\", d: \"Neutral Antagonist\", e: \"Norepinephrine-dopamine reuptake inhibitor\", f: \"Partial Agonist\", g: \"Partial Antagonist\", h: \"Selective Serotonin re-uptake inhibitor\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST APPROPRIATE syndrome describing her condition.<br/><br/>Q.132 A woman has a delusional belief that that she has lost her internal organs and that she is dead.\",\r\n\t\tanswers: { a: \"Capgras syndrome\", b: \"Cotard syndrome\", c: \"De Clerambault syndrome\", d: \"Ekbom syndrome\", e: \"Fregoli syndrome\", f: \"Ganser syndrome\", g: \"Othello syndrome\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.133 A 42-year-old man with a past history of trips to Bangkok is erratic in taking his antiretroviral therapy. He presents with sudden onset of headache, confusion and prominent hallucinations.\",\r\n\t\tanswers: { a: \"Benign hydrocephalus\", b: \"Cerebrovascular malformation\", c: \"Cryptococcal meningitis\", d: \"Hyperparathyroidism\", e: \"Hypothyroidism\", f: \"Inappropriate ADH syndrome\", g: \"Neuroleptic malignant syndrome\", h: \"Neuropsychiatric systemic lupus erythematosus (SLE) \", i: \"Neurosyphilis\", j: \"Normal pressure hydrocephalus\", k: \"Water intoxication\", l: \"Wernicke's encephalopathy\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following set of symptoms, please select the MOST LIKELY cause from the list below.<br/><br/>Q.134 A 28 year old man is treated with 10mg risperidone daily. He has several episodes where his gaze becomes fixed upwards during a disturbance on the acute inpatient unit involving other patients. Nursing staff feel he is 'attention-seeking'.\",\r\n\t\tanswers: { a: \"Acute Dystonias\", b: \"Akathisia\", c: \"Chronic Dystonia\", d: \"Dissociative disorder\", e: \"Malingering \", f: \"Munchausen syndrome\", g: \"Oculogyric Crises\", h: \"Pseudo-parkinsonism\", i: \"Tardive Dyskinesia\", j: \"Torticollis\" },\r\n\t\tcorrectAnswer: \"g\"},\r\n\t\t{question: \"For the following question, please select the MOST ACCURATE answer.<br/><br/>Q.135 Which of the following clinical features indicates that a patient will be more likely to respond to the augmentation of an antidepressant with lithium.\",\r\n\t\tanswers: { a: \"Absence of comorbid ADHD\", b: \"Early morning wakening\", c: \"Initial insomnia\", d: \"Older age of onset\", e: \"Somatic complaints\", f: \"Three or more depressive episodes\", g: \"Weight loss\" },\r\n\t\tcorrectAnswer: \"f\"},\r\n\t\t{question: \"For the following patient, please select the individual(s) listed below who are MOST CLOSELY associated with the development of the psychological treatment of choice.<br/><br/>Q.136 Melanie, a 20 year old woman, recently lost rights to unsupervised access to her 2 year old when she became abusive and threatening to her ex-partner, while they were in court to determine custody arrangements. She reported feeling increasingly wound up with his descriptions of her self-cutting. She claimed that she ‘finally lost it' when he made mocking gestures behind the judge's back to indicate that she was crazy. Melanie misses her baby desperately and has become increasingly suicidal.\",\r\n\t\tanswers: { a: \"Aaron Beck \", b: \"Albert Ellis \", c: \"Bateman and Fonagy \", d: \"Gerald Klerman and Myrna Weissman \", e: \"Heinz Kohut \", f: \"Jon Kabat-Zinn\", g: \"Otto Kernberg \", h: \"Philip Barnard and John Teasdale \", i: \"Sigmund Freud\", j: \"Steven Hayes and Robert Zettle \", k: \"Zindel Segal and Mark Williams\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"For the following patient, please select the MOST RECOMMENDED first line pharmacotherapy.<br/><br/>Q.137 A patient presents with symptoms of marked psychomotor slowing, mutism, waxy flexibility and unusual posturing. You are able to exclude a physical cause for the presentation.\",\r\n\t\tanswers: { a: \"Amantadine \", b: \"Aripiprazole\", c: \"Clozapine\", d: \"Lithium\", e: \"Lorazepam\", f: \"Olanzapine\", g: \"Sodium Valproate\", h: \"Venlafaxine\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"For the following description, please select the MOST APPROPRIATE treatment.<br/><br/>Q.138 An augmenting agent to lower prolactin in those with symptomatic antipsychotic-induced hyperprolactinemia.\",\r\n\t\tanswers: { a: \"Amisulpride\", b: \"Aripiprazole\", c: \"Benztropine\", d: \"Clozapine\", e: \"Electroconvulsive therapy\", f: \"Haloperidol\", g: \"Lorazepam\", h: \"Olanzapine\", i: \"Quetiapine\", j: \"Risperidone\", k: \"Ziprasidone\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the MOST LIKELY diagnosis.<br/><br/>Q.139 A 50 year old man presents with gradually emerging cognitive impairment. More prominent is the presence of gait disturbance, dysarthria and a pseudobulbar palsy.\",\r\n\t\tanswers: { a: \"Alzheimer's Dementia\", b: \"Binswanger's disease\", c: \"Huntington's disease\", d: \"Lewy body Dementia\", e: \"Motor neurone disease\", f: \"Multi-infarct Dementia\", g: \"Parkinson's disease\", h: \"Pick's Disease\", i: \"Progressive supranuclear palsy\", j: \"Wernicke's encephalopathy\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"For the following patient, please select the state of addiction that BEST FITS the clinical situation described.<br/><br/>Q.140 A 53 year old man with a history of heavy alcohol use is able to return to work after a year and a half of sobriety even though he still desires to drink.\",\r\n\t\tanswers: { a: \"Abstinence\", b: \"Abstinence in a controlled setting\", c: \"Abstinence in sustained remission\", d: \"Abuse\", e: \"Craving\", f: \"Lapse\", g: \"Mild Substance Use Disorder\", h: \"Relapse\", i: \"Salience\", j: \"Severe Substance Use Disorder\", k: \"Tolerance\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"<img src='CAP1_1_TO_1_3.gif'/><br/><br/>Having regard to the adjoining abstract and your other knowledge, please answer the following question:<br/><br/>Q.1.1 Select the option that best describes this research. (1 mark)\",\r\n\t\tanswers: { a: \"Case control observational study \", b: \"Cohort observational study\", c: \"Cross sectional observational study\", d: \"Randomized intervention study\", e: \"Predictive trial\", f: \"Retrospective cohort study\", g: \"Two-arm parallel group pragmatic trial\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"<img src='CAP1_1_TO_1_3.gif'/><br/><br/>Having regard to the adjoining abstract and your other knowledge, please answer the following question:<br/><br/>Q.1.2 Which option below describes the MAIN advantage of this type of study. (1 mark)\",\r\n\t\tanswers: { a: \"Ability to assess the effect of a treatment intervention.\", b: \"Quick and easy.\", c: \"No loss of subjects during follow up.\", d: \"No risk of poor randomisation.\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"<img src='CAP1_1_TO_1_3.gif'/><br/><br/>Having regard to the adjoining abstract and your other knowledge, please answer the following question: <br/><br/>Which option below BEST correlates to this statement:<br/><br/>Q.1.3 The aim of this study was to explore how treatment of depression in older adults:\",\r\n\t\tanswers: { a: \"Might be possible by use of B vitamins alone.\", b: \"Might be successful with citalopram.\", c: \"Is more difficult in those with B vitamin deficiencies.\", d: \"May be augmented by B vitamins in conjunction with citalopram.\", e: \"Relates to diet.\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"<img src='CAP1_4_TO_1_5.gif'/><br/><br/>Having regard to the adjoining Methodology excerpt and your other knowledge, please answer the following question. <br/><br/>Select the option below that BEST correlates to this statement:<br/><br/>Q.1.4 Subjects could be included if they:\",\r\n\t\tanswers: { a: \"Lived alone in any part of Australia and were on the electoral roll \", b: \"Lived in any institutional facility in Perth, Australia, and were aged over 50.\", c: \"Were aged over 50, community dwelling, and willing to travel to Perth to be in the study.\", d: \"Were of school age, had a major depressive episode and were residing in the greater Perth area. \", e: \"Were aged over 50, community dwelling in Perth, Australia, and had a current Major Depressive Episode (MDE).\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"<img src='CAP1_4_TO_1_5.gif'/><br/><br/>Having regard to the adjoining Methodology excerpt and your other knowledge, please answer the following question. <br/><br/>Select the option below that BEST correlates to this statement:<br/><br/>Q.1.5 The change to the lower age of participants after the study started:\",\r\n\t\tanswers: { a: \"Completely destroyed the utility of this study.\", b: \"Was much like a lottery system.\", c: \"Was a pragmatic response to difficulty recruiting, to allow power calculations to be met.\", d: \"Was likely influenced by the company making Citalopram.\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"<img src='CAP1_6_TO_1_7.gif'/><br/><br/>Having regard to the adjoining Methodology excerpt and your other knowledge, please answer the following question.<br/><br/>Select the BEST option:<br/><br/>Q.1.6 As regards Power, this study was, in the end:\",\r\n\t\tanswers: { a: \"Correctly powered\", b: \"Under powered \", c: \"Over powered\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"<img src='CAP1_6_TO_1_7.gif'/><br/><br/>Having regard to the adjoining abstract and your other knowledge, please answer the following question:<br/><br/>Q.1.7 Regarding power calculations in general, which statement below is the MOST accurate:\",\r\n\t\tanswers: { a: \"Being over powered is good, as it means your study will be considered more definitive.\", b: \"It is does not matter if your study is under-powered, only whether you get a statistically significant result.\", c: \"Larger studies are always best. You should always get as many participants as your funding allows.\", d: \"Over powered studies have a high probability of finding a statistically significant result, but that result may be of little clinical relevance.\", e: \"Studies with more treatment arms will need a lower number of participants to be correctly powered.\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"<img src='CAP1_8.gif'/><br/><br/>Having regard to the adjoining Fig.1 and your other knowledge, please answer the following question:<br/><br/>Which option below is the MOST ACCURATE for the following statement:<br/><br/>Q.1.8 At randomisation:\",\r\n\t\tanswers: { a: \"76 patients got no possibly active treatment.\", b: \"76 patients got antidepressant and folate; 77 patients got B12 and antidepressant.\", c: \"76 patients got placebo; 77 patients got vitamins and citalopram.\", d: \"76 patients got placebo and citalopram; \", e: \"77 patients got B12, B6, folic acid and citalopram.\", f: \"Insufficient information is provided as to what was given to the various trial arms to determine this.\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"<img src='CAP1_9_TO_1_10.gif'/><br/><br/>Having regard to Table 2 above, and your other knowledge, please answer the following question.<br/><br/>Q.1.9 Which option below is the MOST ACCURATE:\",\r\n\t\tanswers: { a: \"Unadjusted analyses show that at the week 52 point, the vitamins treatment group had a statistically significant benefit over those receiving placebo.\", b: \"Those on placebo were more likely to have a >50% reduction in their MADRS score at week 12 but that result was not statistically significant.\", c: \"The numerator for the relapse after week 12 section is lower than for the other sections due to patients lost to follow up.\", d: \"The vitamins treatment group showed possible benefit within the first twelve weeks of treatment.\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"<img src='CAP1_9_TO_1_10.gif'/><br/><br/>Having regard to Table 2 above, and your other knowledge, please answer the following question.<br/><br/>Q.1.10 Which option below is the MOST ACCURATE:\",\r\n\t\tanswers: { a: \"Of those patients who were considered to have a remission of symptoms in the first 12 weeks, those receiving vitamins were statistically significantly less likely to relapse by the 52 point week than those on placebo.\", b: \"When relapse occurred, it was usually between the 26 and 52 week point, regardless of treatment.\", c: \"Most improvement in the MADRS occurred between week 8 and week 12 for the group getting vitamins.\", d: \"There was a mistake in calculating the odds ratios (OR) for relapse after week 12, as clearly if 5/57 on vitamins relapsed, and 10/57 on placebo relapsed, then the rate of relapse on vitamins is 50% that of placebo, so the OR should be 0.5.\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"<img src='CAP1_11.gif'/><br/><br/>Having regard to the adjoining Fig.2 and your other knowledge, please answer the following question:<br/><br/>Which option below is the BEST answer:<br/><br/>Q.1.11 Which option below is the BEST answer: This graph shows that in terms of reducing the MADRS score for depression:\",\r\n\t\tanswers: { a: \"Vitamins show a statistically significant advantage over placebo at the 12 week mark.\", b: \"Vitamins show a statistically significant advantage over placebo at the 26 week mark.\", c: \"There is no point at which either placebo or vitamins show a statistically significant superiority.\", d: \"Vitamins show an advantage at the 26 and 52 week point over placebo.\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"<img src='CAP1_12.gif'/><br/><br/>Having regard to the adjoining abstract excerpt, other excerpts from this paper already provided, and your other knowledge, please answer the following question:<br/><br/> Which option below is MOST accurate:<br/><br/>Q.1.12 This conclusion is:\",\r\n\t\tanswers: { a: \"A fair summary of the information in the paper and B vitamins should routinely be prescribed to older adults with depression\", b: \"Untrue as B vitamins have significant risks in elderly patients that they have failed to mention\", c: \"An overstatement of their findings. This is a one-off study with fewer participants that their power calculations suggested they needed. It is too early to state that replication of the findings would mandate vitamins in treatment guidelines. \", d: \"An incomprehensible conclusion. If B vitamins did not increase the 12 week efficacy of antidepressant treatment, it is hard to understand why you would add them to treatment if another study had the same negative finding.\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"Having regard to excerpts from this paper provided, and your other knowledge, please answer the following question:<br/><br/>Which option below is the BEST answer.<br/><br/>Q.1.13 In general, editors of journals should:\",\r\n\t\tanswers: { a: \"Be trusted to have ensured all conclusions in a journal as esteemed as the Lancet or the British Journal of Psychiatry are correct.\", b: \"Print only positive findings, so that we do not need to waste precious time reading negative studies which add little to the literature.\", c: \"Aggressively vet the wording of abstracts in particular, as authors are often keen to get their findings established as being of great clinical significance, whether they are or not.\", d: \"Preferentially publish papers submitted by professors of psychiatry, as they are more likely to have written a high quality paper than those not of professorial standard.\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"<img src='CAP2_1_TO_2_4.gif'/><br/><br/>Having regard to the adjoining abstract excerpt and your other knowledge, please answer the following question:<br/><br/> Select the BEST answer from the list below.<br/><br/>Q.2.1 A systematic review is best described as exploring all:\",\r\n\t\tanswers: { a: \"Available literature on a specific topic.\", b: \"Available research studies on a specific topic.\", c: \"Current clinical guidelines.\", d: \"Validation studies.\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"<img src='CAP2_1_TO_2_4.gif'/><br/><br/>Having regard to the adjoining abstract excerpt and your other knowledge, please answer the following question:<br/><br/> Select the BEST answer from the list below<br/><br/>Q.2.2 The aim of this study was to explore:\",\r\n\t\tanswers: { a: \"How a service can understand recovery from a personality disorder.\", b: \"How individuals experience recovery from a personality disorder.\", c: \"Living with a personality disorder.\", d: \"Personal recovery from a mental illness.\", e: \"Recovery from a personality disorder.\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"<img src='CAP2_1_TO_2_4.gif'/><br/><br/>Having regard to the adjoining abstract excerpt and your other knowledge, please answer the following question:<br/><br/> Select the BEST answer from the list below<br/><br/>Q.2.3 \tA systematic review differs from a literature review in that eligibility criteria are developed based on:\",\r\n\t\tanswers: { a: \"Interventions and comparisons relevant to the question being explored.\", b: \"Population and outcome of interest, and interventions.\", c: \"Population and outcomes of interest, interventions and comparisons.\", d: \"Population, outcomes of interest and comparisons.\" },\r\n\t\tcorrectAnswer: \"c\"},\r\n\t\t{question: \"<img src='CAP2_1_TO_2_4.gif'/><br/><br/>Having regard to the adjoining abstract excerpt and your other knowledge, please answer the following question:<br/><br/> Select the BEST answer from the list below<br/><br/>Q.2.4 A systematic review of qualitative studies can be undertaken by a:\",\r\n\t\tanswers: { a: \"Meta-analysis.\", b: \"Meta-synthesis.\", c: \"Statistical test for heterogeneity.\", d: \"Statistical test for homogeneity.\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"<img src='CAP2_5.gif'/><br/><br/>Having regard to the adjoining abstract excerpt and your other knowledge, please answer the following question:<br/><br/> Select the BEST answer from the list below<br/><br/>Q.2.5 Qualitative data reports would NOT include:\",\r\n\t\tanswers: { a: \"Analysis by synthesis.\", b: \"Discourse analysis.\", c: \"Interpretive phenomenological analysis\", d: \"(IPA).\", e: \"Thematic analysis.\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"<img src='CAP2_6.gif'/><br/><br/>Having regard to the adjoining excerpt, Figure 1, the abstract and your other knowledge, please answer the following question:<br/><br/>Select the BEST answer from the list below.<br/><br/>Q.2.6 Studies could be included in the above review if the research article:\",\r\n\t\tanswers: { a: \"Was about how a significant other felt about the individual’s recovery.\", b: \"Was about individuals with personality traits.\", c: \"Was about recovery from methamphetamine dependence in antisocial personality disorder. \", d: \"Explored recovery measured only by a self-report Likert-type scale.\", e: \"Was able to be accessed on-line.\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n\t\t{question: \"<img src='CAP2_7.gif'/><br/><br/>Having regard to the adjoining excerpt, Figure 1, the abstract and your other knowledge, please answer the following question:<br/><br/>Select the BEST answer from the list below.<br/><br/>Q.2.7 Which of the following is true of the review process:\",\r\n\t\tanswers: { a: \"Each full text version should be reviewed according to inclusion criteria. \", b: \"Reference lists of identified reports and editorial commentaries would broaden the search strategy.\", c: \"Review of the methodology section of each article would identify which articles should be included. \", d: \"Review of the abstract and methodology section would exclude further papers not fulfilling criteria.\", e: \"Review of titles and abstracts only would enable the exclusion of all papers of irrelevance.\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"<img src='CAP2_8.gif'/><br/><br/>Having regard to the adjoining excerpt, Figure 1, the abstract and your other knowledge, please answer the following question:<br/><br/>Select the BEST answer from the list below.<br/><br/>Q. 2.8 Select the answer from the list below which BEST describes the process set out in the excerpt:\",\r\n\t\tanswers: { a: \"Critical interpretation.\", b: \"Expressive synthesis.\", c: \"Meta-study. \", d: \"Meta-synthesis.\", e: \"Synthesis.\", f: \"Translational synthesis.\" },\r\n\t\tcorrectAnswer: \"d\"},\r\n\t\t{question: \"<img src='CAP2_9_TO_2_10.gif'/><br/><br/>Having regard to the adjoining excerpt and your other knowledge, please answer the following question:<br/><br/>Q.2.9 With regard to interpreting statements about Safety and Containment:\",\r\n\t\tanswers: { a: \"This may be delivered through networks, environments or relationships.\", b: \"This may mean individuals can adapt to moving between environments.\", c: \"This may only be delivered though social networks or environment.\", d: \"This may not be essential as a prerequisite for recovery\", e: \"The use of medication may be a moderating factor.\" },\r\n\t\tcorrectAnswer: \"a\"},\r\n\t\t{question: \"<img src='CAP2_9_TO_2_10.gif'/><br/><br/>Having regard to the adjoining Table 3 and your other knowledge, please answer the following question:<br/><br/>Select the BEST answer from the list below.<br/><br/>Q.2.10 With regard to interpreting the first order quotes:\",\r\n\t\tanswers: { a: \"Participants in the study by Katsakou et al wanted to get over their divorce.\", b: \"Participants in the study by Katsakou et al described difficulty with differences in their priorities.\", c: \"Stigma in relation to the experience of mental distress is unlikely to be significant. \", d: \"Social Network support is unlikely to play a key role in recovery.\", e: \"Social network support in mental illness tends to be greater than for physical illness.\" },\r\n\t\tcorrectAnswer: \"b\"},\r\n\t\t{question: \"Having regard to the abstract, other excerpts and figures provided above and your other knowledge, please answer the following question:<br/><br/>Select the BEST answer from the list below.<br/><br/>Q.2.11 Which of the following is a limitation to this study?\",\r\n\t\tanswers: { a: \"Lack of coherence of the research.\", b: \"Lack of description of the synthesis process.\", c: \"Too many identified themes.\", d: \"The included studies were not rigorously sound. \", e: \"Too many articles had to be excluded from the analysis.\" },\r\n\t\tcorrectAnswer: \"e\"},\r\n {\r\n question: \"THIS IS THE LAST SLIDE OF THE MOCK EXAM. <br/><br/><em>IF YOU ARE FINISHED</em><br/> --Then CLICK the -SUBMIT QUIZ- button ABOVE. <br/>--SCROLL DOWN to the BOTTOM OF THIS WINDOW to see <em>YOUR FINAL RESULT.</em><br/><br/>---AFTERWARDS, you can press the -PREVIOUS QUESTION- & -NEXT QUESTION- buttons to review your answers:<br/>----Questions you answered CORRECTLY are in <font color='green'>GREEN </font><br/>----Questions you answered INCORRECTLY are in <font color='red'>RED </font><br/><br/><font color='gray'><em>You can click the right mouse button at the bottom of this page if you also want to print the results</em></font><br/><br/><br/><em>IF YOU ARE NOT FINISHED</em><br/>--Then DON'T press the -SUBMIT QUIZ- button. <br/> --INSTEAD, press the -PREVIOUS QUESTION- button to review past questions. <br/>--You will need to press the -NEXT SLIDE- button until you return to this page to find the -SUBMIT QUIZ- button.<br/><br/>!GOOD LUCK!\",\r\n answers: { },\r\n correctAnswer: \"\"\r\n },\r\n\r\n\r\n\r\n ];\r\n\r\n function buildQuiz() {\r\n // we'll need a place to store the HTML output\r\n const output = [];\r\n\r\n // for each question...\r\n myQuestions.forEach((currentQuestion, questionNumber) => {\r\n // we'll want to store the list of answer choices\r\n const answers = [];\r\n\r\n // and for each available answer...\r\n for (letter in currentQuestion.answers) {\r\n // ...add an HTML radio button\r\n answers.push(\r\n `<label>\r\n <input type=\"radio\" name=\"question${questionNumber}\" value=\"${letter}\">\r\n ${letter} :\r\n ${currentQuestion.answers[letter]}\r\n </label>`\r\n );\r\n }\r\n\r\n // add this question and its answers to the output\r\n output.push(\r\n `<div class=\"slide\">\r\n <div class=\"question\"> ${currentQuestion.question} </div>\r\n <div class=\"answers\"> ${answers.join(\"\")} </div>\r\n </div>`\r\n );\r\n });\r\n\r\n // finally combine our output list into one string of HTML and put it on the page\r\n quizContainer.innerHTML = output.join(\"\");\r\n }\r\n\r\n function showResults() {\r\n // gather answer containers from our quiz\r\n const answerContainers = quizContainer.querySelectorAll(\".answers\");\r\n\r\n // keep track of user's answers\r\n let numCorrect = 0;\r\n\r\n // for each question...\r\n myQuestions.forEach((currentQuestion, questionNumber) => {\r\n // find selected answer\r\n const answerContainer = answerContainers[questionNumber];\r\n const selector = `input[name=question${questionNumber}]:checked`;\r\n const userAnswer = (answerContainer.querySelector(selector) || {}).value;\r\n\r\n // if answer is correct\r\n if (userAnswer === currentQuestion.correctAnswer) {\r\n // add to the number of correct answers\r\n numCorrect++;\r\n\r\n // color the answers green\r\n answerContainers[questionNumber].style.color = \"lightgreen\";\r\n } else {\r\n // if answer is wrong or blank\r\n // color the answers red\r\n answerContainers[questionNumber].style.color = \"red\";\r\n }\r\n });\r\n\r\n\tvar percentage = (numCorrect/(myQuestions.length-1)) * 100;\r\n\tvar passingMark = 55;\r\n\r\n\r\n\t// show number of correct answers out of total\r\n\r\n\r\n resultsContainer.innerHTML = `The 2017 RANZCP MCQ passing mark was ${passingMark}%. <br/>Your final exam score is: ${percentage}% (${numCorrect} out of ${myQuestions.length})`;\r\n\tresultsContainer.style.color = \"red\";\r\n\r\n\r\n }\r\n\r\n function showSlide(n) {\r\n slides[currentSlide].classList.remove(\"active-slide\");\r\n slides[n].classList.add(\"active-slide\");\r\n currentSlide = n;\r\n\r\n if (currentSlide === 0) {\r\n previousButton.style.display = \"none\";\r\n } else {\r\n previousButton.style.display = \"inline-block\";\r\n }\r\n\r\n if (currentSlide === slides.length - 1) {\r\n nextButton.style.display = \"none\";\r\n submitButton.style.display = \"inline-block\";\r\n } else {\r\n nextButton.style.display = \"inline-block\";\r\n submitButton.style.display = \"none\";\r\n }\r\n }\r\n\r\n function showNextSlide() {\r\n showSlide(currentSlide + 1);\r\n }\r\n\r\n function showPreviousSlide() {\r\n showSlide(currentSlide - 1);\r\n }\r\n\r\n const quizContainer = document.getElementById(\"quiz\");\r\n const resultsContainer = document.getElementById(\"results\");\r\n const submitButton = document.getElementById(\"submit\");\r\n\r\n // display quiz right away\r\n buildQuiz();\r\n\r\n const previousButton = document.getElementById(\"previous\");\r\n const nextButton = document.getElementById(\"next\");\r\n const slides = document.querySelectorAll(\".slide\");\r\n let currentSlide = 0;\r\n\r\n showSlide(0);\r\n\r\n // on submit, show results\r\n submitButton.addEventListener(\"click\", showResults);\r\n previousButton.addEventListener(\"click\", showPreviousSlide);\r\n nextButton.addEventListener(\"click\", showNextSlide);\r\n}", "function fillDeleteQuestions() {\n const deleteSelectionBox = document.getElementById(\"ivc-question-select-delete\");\n const filterDeleteSelection = document.getElementById(\"ivc-question-delete-filter\");\n const currentFilter = filterDeleteSelection.options[filterDeleteSelection.selectedIndex].innerText;\n deleteSelectionBox.innerHTML = \"\";\n\n let questions = ivcQuestionComponentQuestions;\n for (let i = 0; i < questions.length; i++) {\n if (questions[i].category == currentFilter || currentFilter == \"All\") {\n let option = document.createElement(\"option\");\n option.value = i;\n let text = document.createTextNode(questions[i].questionText);\n option.appendChild(text);\n deleteSelectionBox.appendChild(option);\n }\n }\n}", "function resetItems() {\n noMoreQuestions = false;\n exitingFavorites = false;\n endFavorites = false;\n insideFavorites = false;\n noFavorites = false;\n genRandom = false;\n //console.log(\"noMoreQuestions is: \" + noMoreQuestions);\n questions = [];\n answers = [];\n categories = [];\n counter = 0;\n rndmNums = [];\n var getQuestBox = document.getElementById(\"questionBox\");\n getQuestBox.style.visibility = \"hidden\";\n getBackBtn = document.getElementById(\"backBtn\");\n getBackBtn.disabled = true;\n document.getElementById(\"answerbtn\").innerHTML = \"Check Answer\";\n //console.log(\"Everything is being reset\");\n}", "function clearAnswers() {\n\temptyArrays();\n\t\n\t$(\"#par\").find(\"span\").css(\"background-color\",\"white\");\n\tjQuery(\".tm-input\").tagsManager('empty');\n\tchangeSelectedFactorType(saveIndex);\n\t\n\t$('#clearFactorsModal').modal('hide');\n\tloadTagList();\n\t\t\n\t$(\"#mostPopular\").css(\"display\",\"none\");\n\t\n\tdocument.getElementById(\"listButton\").disabled = false;\n\tdocument.getElementById(\"submit\").disabled = false;\n\tloadTagList();\n\t$(\"#allAnn\").remove();\n\t$(\"#validateUser\").attr(\"class\", \"span12\");\n\tjQuery(\"#validateTags\").tagsManager('empty');\n\t\n\t$(\".submitTaskButton\").text(fType);\n\t\n\tif (alreadySubmitted() == true) {\n\t\tdocument.getElementById(\"submit\").disabled = true;\n\t\tloadExistingAnn(submission[fType].factorPos);\n\t}\n\t$(\".submitTaskButton\").text(fType);\n}", "exitMoreQuestion(ctx) {\n\t}", "function setAvailableQuestions(){\n\tconst totalQuestion = quiz.length;\n\tfor(let i=0; i<totalQuestion; i++){\n\t\tavailableQuestions.push(quiz[i])\n\t}\n}", "function generateQuestions() {\n let questions = [\n {\n question_id: 1,\n question_text: \"What is the Capital of the United States?\",\n answer: \"Washington, DC\",\n decoy_1: \"Philadelphia\",\n decoy_2: \"Chicago\",\n decoy_3: \"Miami\"\n\n },\n {\n question_id: 2,\n question_text: \"What is the Capital of Canada?\",\n answer: \"Ottawa\",\n decoy_1: \"Toronto\",\n decoy_2: \"Kingston\",\n decoy_3: \"Edmonton\"\n },\n {\n question_id: 3,\n question_text: \"What is the Capital of Mexico?\",\n answer: \"Mexico City\",\n decoy_1: \"Cancun\",\n decoy_2: \"Cabo San Lucas\",\n decoy_3: \"Tijuana\"\n },\n {\n question_id: 4,\n question_text: \"What is the Capital of the United Kingdom?\",\n answer: \"London\",\n decoy_1: \"Manchester\",\n decoy_2: \"Nottingham\",\n decoy_3: \"Edinborough\"\n },\n {\n question_id: 5,\n question_text: \"What is the Capital of Australia?\",\n answer: \"Canberra\",\n decoy_1: \"Sydney\",\n decoy_2: \"Brisbane\",\n decoy_3: \"Byron Bay\"\n },\n {\n question_id: 6,\n question_text: \"What is the Capital of China?\",\n answer: \"Beijing\",\n decoy_1: \"Shanghai\",\n decoy_2: \"Shenzen\",\n decoy_3: \"Tianjin\"\n\n },\n {\n question_id: 7,\n question_text: \"What is the Capital of India?\",\n answer: \"New Delhi\",\n decoy_1: \"Bengaluru\",\n decoy_2: \"Kolkata\",\n decoy_3: \"Mumbai\"\n },\n {\n question_id: 8,\n question_text: \"What is the Capital of Germany?\",\n answer: \"Berlin\",\n decoy_1: \"Munich\",\n decoy_2: \"Frankfurt\",\n decoy_3: \"Hamburg\"\n },\n {\n question_id: 9,\n question_text: \"What is the Capital of New Zealand?\",\n answer: \"Wellington\",\n decoy_1: \"Aukland\",\n decoy_2: \"Christchurch\",\n decoy_3: \"Dunedin\"\n },\n {\n question_id: 10,\n question_text: \"What is the Capital of France?\",\n answer: \"Paris\",\n decoy_1: \"Marsaille\",\n decoy_2: \"Lyon\",\n decoy_3: \"Toulouse\"\n }\n ]\n return questions\n}", "function randomQ() {\n 'use strict';\n\n // This line of code defines a random number from 1 to the length of the quotes array\n selectedQ = Math.floor(Math.random() * quotes.length);\n\n var separate = quotes[selectedQ].split('|'), // splits the quote and the tags\n // separate[0] is the quote with tags, author, referral etc etc\n tags = separate[1], // tags\n quote = separate[0].split('//'), // splits the quote in sections\n // quote[0] is the quote itself\n qAuthor = quote[1], // Gets the Author\n qReferer = quote[2], // Gets the referral\n authorNReferal, // used to store the Author and link to the referer\n lovedQuotes = localStorage.getItem('lovedUS'), // Gets the quotes you have loved\n quoteLovedArray = lovedQuotes.split(','), // Splits the quotes into each individual quote\n social = quote[3]; // Gets the social network will be used\n\n // Put the referral of the quote\n // If the referral is not defined only the quote and the author will be outputed\n if (qreferer === undefined) {\n authorNReferal = qAuthor;\n } else {\n // If it is will output the refferal and the social network link\n switch (social) {\n case 'tumblr':\n authorNReferal = qAuthor + ' | ' + '<a href=\"http://www.' + qReferer + '.tumblr.com\" target=\"_blank\">' + qReferer + '</a>';\n break;\n case 'facebook':\n authorNReferal = qAuthor + ' | ' + '<a href=\"http://www.facebook.com/' + qReferer + '\" target=\"_blank\">' + qReferer + '</a>';\n break;\n case 'twitter':\n authorNReferal = qAuthor + ' | ' + '<a href=\"http://www.twitter.com/' + qReferer + '\" target=\"_blank\">' + qReferer + '</a>';\n break;\n case 'behance':\n authorNReferal = qAuthor + ' | ' + '<a href=\"http://www.behance.com/' + qReferer + '\" target=\"_blank\">' + qReferer + '</a>';\n break;\n case 'youtube':\n authorNReferal = qAuthor + ' | ' + '<a href=\"http://www.youtube.com/user/' + qReferer + '\" target=\"_blank\">' + qReferer + '</a>';\n break;\n case undefined:\n authorNReferal = qAuthor + ' | ' + qReferer;\n break;\n }\n\n }\n\n // This two lines define the elements where the quote will be written\n DCite.innerHTML = quote[0];\n document.getElementById('author').innerHTML = authorNReferal;\n quote[0] = encodeURIComponent(quote[0].trim());\n\n if ((quote[0].length + ' -'.length + qAuthor.length) >= 141) {\n DTwit.href = '';\n DTwit.className = 'disabled';\n DTwit.title = 'Too long to share ;( | ' + quote[0].length;\n DTwit.target = '';\n } else if ((quote[0].length + ' -'.length + qAuthor.length) <= 140) {\n DTwit.href = 'https://twitter.com/intent/tweet?text=' + quote[0] + '%20-' + qAuthor;\n DTwit.className = '';\n DTwit.title = 'Share me :) | ' + quote[0].length;\n DTwit.target = '_blank';\n }\n DTumblr.href = 'http://www.tumblr.com/share/link?description=' + quote[0] + '%20-' + qAuthor + ' | @' + qReferer;\n DTumblr.title = 'Share me :)';\n\n DTags.innerHTML = '';\n var tagsArray= tags.split(',');\n if (tags > '' || tags.length > 0) {\n for (var z = 0; z <= (tagsArray.length - 1); z++) {\n DTags.innerHTML += '<span id =z' + z + '>' + tagsArray[z] + '</span>';\n if (legends.indexOf(tagsArray[z]) != -1) {\n document.getElementById(('z' + z)).setAttribute('class', 'legends');\n document.getElementById(('z' + z)).title = 'tag on the Legendarium.';\n }\n document.getElementById(('z' + z)).setAttribute('onclick', 'tag(\"'+ tagsArray[z] + '\")');\n }\n }\n\n if (lovedQuotes === null) {\n localStorage.setItem('lovedUS', '');\n DLoving.setAttribute('class', 'toLove');\n } else {\n var searchLove = quoteLovedArray.indexOf(i + ',');\n if (searchLove != -1) {\n DLoving.setAttribute('class', 'loving');\n console.warn('loved ' + i);\n } else if (searchLove == -1) {\n DLoving.setAttribute('class', 'toLove');\n console.warn('not loved. ' + i);\n }\n }\n\n if (screen.width >= 961) {\n if (quote[0].length >= 140) {\n DCite.style.fontSize = '2em';\n } else if (quote[0].length >= 200) {\n DCite.style.fontSize = '1.7em';\n } else {\n DCite.style.fontSize = '2.5em';\n }\n }\n\n aClass('more', 'more');\n setTimeout(function () {\n location.hash = '';\n }, 100);\n\n}", "function clearAnswer() {\n //console.log('Answer is being cleared');\n STORE.currentAnswer = null;\n}", "function onClickRemoveQuestion(){\n let question = $(this).parent().parent();\n let index = $(\".question\").index(question);\n question.remove();\n surveyChanged[\"questions\"].splice(index,1);\n}", "function getQuestions() {\n if (currentQuestionIndex === 6) {\n clearInterval(timerInterval);\n endGame();\n } else {\n showQuestion(shuffleQuestions[currentQuestionIndex]);\n showAnswers(shuffleQuestions[currentQuestionIndex]);\n }\n}", "function processQWhichHaveYouUsed(questionObject) {\n\tvar answers = questionObject.answers;\n\tvar q;\n\n\tfor (var prop in answers) {\n\t\tvar questionAnswerPair = getUserResponse(prop);\n\t\tswitch(questionAnswerPair[0]) {\n\t\t\tcase \"ocp\":\n\t\t\t\tq = \"The pill or birth control pills (containing both an estrogen and progestin)\";\n\t\t\t\tbreak;\n\t\t\tcase \"ccap\":\n\t\t\t\tq = \"Cervical cap\";\n\t\t\t\tbreak;\n\t\t\tcase \"diaph\":\n\t\t\t\tq = \"Diaphragm\";\n\t\t\t\tbreak;\n\t\t\tcase \"sperm\":\n\t\t\t\tq = \"Vaginal spermicides (foam, film, gel, or suppositories)\";\n\t\t\t\tbreak;\n\t\t\tcase \"pop\":\n\t\t\t\tq = \"'Mini-pills' or progestin-only pills\";\n\t\t\t\tbreak;\n\t\t\tcase \"nuvaring\":\n\t\t\t\tq = \"NuvaRing, the vaginal contraceptive ring\";\n\t\t\t\tbreak;\n\t\t\tcase \"depo\":\n\t\t\t\tq = \"Depo-Provera, birth control injection\";\n\t\t\t\tbreak;\n\t\t\tcase\"nori\":\n\t\t\t\tq = \"Noristerat, birth control injection\";\n\t\t\t\tbreak;\n\t\t\tcase \"cyclomess\":\n\t\t\t\tq = \"Cyclofem or Mesigyna, birth control injection\";\n\t\t\t\tbreak;\n\t\t\tcase\"mcondom\":\n\t\t\t\tq = \"Male condom\";\n\t\t\t\tbreak;\n\t\t\tcase\"fcondom\":\n\t\t\t\tq = \"Female condom\";\n\t\t\t\tbreak;\n\t\t\tcase\"sponge\":\n\t\t\t\tq = \"Contraceptive sponge\";\n\t\t\t\tbreak;\n\t\t\tcase\"paragard\":\n\t\t\t\tq = \"Intrauterine Device or IUD (ParaGard, Mirena, or others)\";\n\t\t\t\tbreak;\n\t\t\tcase\"implanon\":\n\t\t\t\tq = \"Contraceptive implant (Norplant, Implanon, or others)\";\n\t\t\t\tbreak;\n\t\t\tcase\"withd\":\n\t\t\t\tq = \"Pulling out or withdrawal\";\n\t\t\t\tbreak;\n\t\t}\n\t\trenderHTML(q, questionAnswerPair[1]);\n\t\n\t}\n}", "function onceClearQuest(err) {\n //console.log(userIDs);\n if (err) console.log(err);\n\n for (var i = 0; i < quests_json.length; i++) {\n var json = quests_json[i];\n\n var quest = new models.Quest({\n \"title\": json.title,\n \"description\": json.description,\n \"level\": json.level,\n \"deadline\": json.deadline,\n //\"takenBy\": \"\",\n \"completed\": json.completed\n });\n\n quest.save(function(err, quest) {\n if (err) console.log(err);\n quests_to_save_count--;\n console.log(quests_to_save_count + ' quests left to save');\n checkCanClose();\n });\n\n // for(var j = 0; j < userIDs.length; j++) {\n // if(userIDs[j].username = json.takenBy) {\n // var quest = new models.Quest({\n // \"title\": json.title,\n // \"description\": json.description,\n // \"level\": json.level,\n // \"deadline\": json.deadline,\n // \"takenBy\": userIDs[j].id,\n // \"completed\": json.completed\n // });\n //\n // quest.save(function(err, quest) {\n // if (err) console.log(err);\n // quests_to_save_count--;\n // console.log(quests_to_save_count + ' quests left to save');\n // checkCanClose();\n // });\n // break;\n // }\n // }\n\n\n }\n }", "static async _loadQuestions() {\n // Load TSV.\n const questionsTsv = await $.get(`data/questions.tsv?timestamp=${new Date()}`);\n\n // Parse into Question objects.\n const rows = questionsTsv.split('\\n');\n const headers = rows[0].split('\\t');\n const questions = [];\n for (let i = 1; i < rows.length; i++) {\n const question = Game._parseQuestion(rows[i], headers);\n questions.push(question);\n }\n\n // Pick one question for double Jeopardy.\n const randomIndex = Math.floor(Math.random() * questions.length);\n questions[randomIndex].isDoubleJeopardy = true;\n\n return questions;\n }", "function resetQuestion(){\n localStorage.clear() \n question = question2\n }", "function setAvailableQuestions() {\n const totalQuestion = quiz.length;\n for (let i = 0; i < totalQuestion; i++) {\n availableQuestions.push(quiz[i]);\n }\n}", "function getNewQuestion() {\n $question.html(\"\");\n $btn0.text(\"\");\n $btn1.text(\"\");\n $btn2.text(\"\");\n $btn3.text(\"\");\n if (questions.length === 0) {\n endQuiz();\n } else {\n setNextQuestion();\n }\n }", "function onDeleteQuestion(e) {\r\n \tvar part = this.part,\r\n\t\t\tquestions = e.sender.dataSource.data();\r\n \tpart.set('questionCount', questions.length - 1); // Event fires before item is removed from DataSource\r\n }", "function flushQuestion(index) {\n\tvar quesEntry = set[index];\n\t\n \tif(quesEntry != null) {\n\n \t\tvar no = Number(index)+1;\n\t \t$(\"#qno\").html(\"\").append(no);\n\t \t$(\"#levelBox\").html(\"\").append(set[index].cat);\n\t \t$(\".ms_correct\").html(\"\").append(set[index].scoring[0]);\n\t \t$(\".ms_incorrect\").html(\"\").append(set[index].scoring[1]);\n\t \t$(\".ms_unattempted\").html(\"\").append(set[index].scoring[2]);\n\n\t \tvar questionhtml = quesEntry.ques;\n\t \tif (quesEntry.ques_img != null) {\n\t \t\tquestionhtml += \"<br><img src='\"+quesEntry.ques_img+\"' />\"\n\t \t}\n\n\t \t$(\"#IOContent\").html(\"\");\n\t \t$(\"#IOContent\").append(questionhtml+\"<br><br>\");\n\n\t \tvar optionshtml = \"\"\n\n\t \tfor(var j=0;j<quesEntry['options'].length;j++) {\n\t \t\tif(quesEntry['options'][j]['type'] == 'text') {\n\t \t\t\tif(response[index].response == j)\n\t \t\t\t\toptionshtml += \"<label><input type='radio' checked class='ansradio' name='answer' val='\"+index+\"' value='\"+j+\"'>\"+quesEntry['options'][j]['desc']+\"</label><br>\";\n\t \t\t\telse \n\t \t\t\t\toptionshtml += \"<label><input type='radio' class='ansradio' name='answer' val='\"+index+\"' value='\"+j+\"'>\"+quesEntry['options'][j]['desc']+\"</label><br>\";\n\t \t\t}\n\t \t\telse if(quesEntry['options'][j]['type'] == 'image')\n\t \t\t\tif(response[index].response == j)\n\t \t\t\t\toptionshtml += \"<label><input type='radio' checked class='ansradio' name='answer' val='\"+index+\"' value='\"+j+\"'><img src='\"+quesEntry['options'][j]['desc']+\"'></label><br>\";\n\t \t\t\telse \n\t \t\t\t\toptionshtml += \"<label><input type='radio' class='ansradio' name='answer' val='\"+index+\"' value='\"+j+\"'><img src='\"+quesEntry['options'][j]['desc']+\"'></label><br>\";\n\n\t \t}\n\n\t\t$(\"#IOContent\").append(optionshtml);\n\n\t\tcurrent = Number(index);\n\t\tresponse[index].visited = true;\n\t\tresponse[index].visits++;\n\t\tupdateColorCoding();\n\t}\n\n\telse {\n\t\tconsole.log(\"call to : \"+index);\n\t\tconsole.log(\"privacy tampered !\");\n\t}\n\n}", "function removeQuestion() {\r\n console.log(\"Removing question\");\r\n $.when(\r\n $(this)\r\n .parent()\r\n .parent()\r\n .remove()\r\n ).then(function() {\r\n // re-ID questions\r\n $(\"#builderQuizQuestions\")\r\n .children()\r\n .each(function(i) {\r\n // Store form inputs!\r\n let data = [];\r\n $(this)\r\n .find(\"input\")\r\n .each(function(j) {\r\n //console.log($(this).val());\r\n data.push($(this).val());\r\n });\r\n\r\n // Update question IDs\r\n let html = $(this).html();\r\n let split = html.split(\"_\");\r\n for (var j = 1; j < split.length; j++) {\r\n // update Question_id\r\n //console.log(split[j - 1]);\r\n //console.log(typeof split[j - 1]);\r\n if (\r\n typeof split[j - 1] === \"string\" &&\r\n split[j - 1].substr(-1 * \"Question\".length) == \"Question\"\r\n ) {\r\n split[j] = i;\r\n }\r\n }\r\n let joined = split.join(\"_\");\r\n //console.log(joined);\r\n split = joined.split(\" \");\r\n for (var j = 1; j < split.length; j++) {\r\n // update Question_id\r\n //console.log(split[j - 1]);\r\n //console.log(typeof split[j - 1]);\r\n if (\r\n typeof split[j - 1] === \"string\" &&\r\n split[j - 1].substr(-1 * \"Question\".length) == \"Question\" &&\r\n typeof split[j] === \"string\" &&\r\n split[j].substr(-1) == \":\"\r\n ) {\r\n split[j] = `${i + 1}:`;\r\n }\r\n }\r\n joined = split.join(\" \");\r\n $(this).html(joined);\r\n $(this).attr(\"id\", i);\r\n\r\n // restore data\r\n $(this)\r\n .find(\"input\")\r\n .each(function(j) {\r\n $(this).val(data[j]);\r\n });\r\n });\r\n refreshAll();\r\n });\r\n}", "function askedToFalse(){\n\tfor (var i = 0; i < quiz.questions.length; i++) {\n\t\tquiz.questions[i].asked = false;\n\t}\n}", "function finaliseAnswers(){\n vm.finalise = false;\n numQuestionsAnswered = 0;\n vm.activeQuestion = 0;\n quizMetrics.markQuiz();\n quizMetrics.changeState(\"quiz\", false);\n quizMetrics.changeState(\"results\", true);\n }", "function CreateQuestionList() {\n myQuestions = [\n {\n exemple: true,\n question: \"Voici un ensemble de figures géométriques abstraites. Pour trouver la figure manquante (A jusqu'à H), \\\n il faut essayer de <mark>déduire des relations entre les figures</mark>. En partant de la première colonne à gauche et en descendant, \\\n on constate que l'on augmente à chaque fois le segment (I-II-III). Cette augmentation se répète avec les autres colonnes. \\\n Avec le même raisonemment, nous voyons que dans les lignes seule la position du segment change. \\\n Les diagonales conjugent position et augmentation des segments. La réponse B est la seule qui respecte les règles d'augmentation et de position \\\n que nous avons découvert.\",\n image: \"questions/QT1-0.png\"\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-1.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"G\"\n },\n {\n question: \"<p> <mark>La confusion est une situation dans laquelle les gens ne comprennent pas ce qui se passe, ce qu'ils doivent faire ou qui est quelqu'un ou quelque chose.</mark></p>\\\n Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-2.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"C\"\n },\n {\n question: \"Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-3.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"F\"\n },\n {\n question: \"Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n },\n {\n question: \"Quelle est la figure manquante?\",\n image: \"questions/QT1-4.png\",\n answers: [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\"],\n correctAnswer: \"\"\n },\n {\n question: \"Si vous deviez noter votre niveau de confusion à la suite de cet exercice, vous diriez avoir été:\",\n answers: [\"Pas confus\", \"Légèrement confus\", \"Moyennement confus\", \"Très confus\"],\n }\n ];\n }", "function finalQuest() {\n $(\"#question\").children().hide();\n $(\"#choices\").children().hide();\n $(\"#timer\").children().hide();\n $(\"#result\").children().hide();\n $(\"#answer\").empty()\n var answerResult = $(\"<h1>\");\n answerResult.css(\"margin-top\", \"60px\")\n answerResult.append(resultText.complete);\n $(\"#answer\").append(answerResult);\n printResult();\n\n }", "function storeQuestions(questions) {\n if(questions.subject=='' && questions.question=='') return;\n localStorage.questions = JSON.stringify(questions);\n }", "function populateQuestionsList() {\n\tvar html = \"\";\n\tvar cat = \"\";\n\tfor(obj in set) {\n\t\tif(cat != set[obj].cat){\n\t\t\thtml += '<div class=\"ques_cat_head\">' + set[obj].cat +'</div>';\n\t\t\tcat = set[obj].cat;\n\t\t}\n\t\tvar qno = \"Q. \"+set[obj].num;\n\t\tvar frame = \"<button id='q\"+set[obj].num+\"' value='\"+obj+\"' class='quesbutton unattempted-ques'>\"+qno+\"</button>\"\n\t\thtml += frame;\n\t}\n\t$(\"#questionsList\").html(html);\n\n\t$(\".quesbutton\").click(function() {\n\t\tflushQuestion($(this).attr(\"value\"));\n\t});\n}", "function remove_answered_question(dom_id)\n{\n\tif(last_answered_question != \"\")\n\t{\n\t\tEffect.Fade(last_answered_question, {duration: 0.5});\n\t\tEffect.BlindUp(last_answered_question, {duration: 0.5});\n\t}\n\tlast_answered_question = dom_id;\n}", "function filterResults() {\n if (questions.includes('\"\"')) {\n var badQuestionsIndex = [];\n var l = 0;\n while (l < questions.length) {\n if (questions[l] == '\"\"') {\n badQuestionsIndex.push(l);\n }\n l++;\n }\n\n //console.log(\"badQuestionsIndex: \" + badQuestionsIndex);\n var j = 0;\n var k = 0;\n for (var i = badQuestionsIndex.length - 1; i >= 0; i--)\n questions.splice(badQuestionsIndex[i], 1);\n\n for (var i = badQuestionsIndex.length - 1; i >= 0; i--)\n answers.splice(badQuestionsIndex[i], 1);\n\n for (var i = badQuestionsIndex.length - 1; i >= 0; i--)\n categories.splice(badQuestionsIndex[i], 1);\n } else if (!getRandom) {\n var duplicatedIndexes = [];\n for (var i = questions.length - 1; i >= 0; i--) {\n var curr = questions[i];\n for (var j = i - 1; j >= 0; j--) {\n if (questions[j] == curr) {\n duplicatedIndexes.push(j);\n questions.splice(j, 1);\n\n }\n }\n }\n\n for (var r = 0; r < duplicatedIndexes.length; r++) {\n answers.splice(duplicatedIndexes[r], 1);\n categories.splice(duplicatedIndexes[r], 1);\n }\n\n }\n\n}", "function answeredQuestions(questionIds, askedQuestions){\n\n\tjQuery('#robotQuestions div .btn-success').unbind().click(function() {\n\t\tvar qid = this.id;\n\t\tvar answeredQuestion;\n\t\tvar bool = true;\n\n\t for(i = 0; i < questionIds.length; i++){\t\n\t\t if (qid == questionIds[i]){\n\t\t \tansweredQuestion = askedQuestions[i];\n\t\t \tbreak;\n\t\t }\n\t\t}\n\t\tvar str = [answeredQuestion + \" :YES\"];\n\t\tconsoleOut(str);\n \tpublishAnswer(qid, bool);\n\t});\n\n\tjQuery('#robotQuestions div .btn-danger').unbind().click(function() {\n\t\tvar qid = this.id;\n\t var answeredQuestion;\n\t var bool = false;\n\n for(i = 0; i < questionIds.length; i++){\t\n \t if (qid == questionIds[i]){\n \t \tansweredQuestion = askedQuestions[i];\n \t \tbreak;\n \t }\n \t}\n \tvar str = [answeredQuestion + \" :NO\"];\n \tconsoleOut(str);\n \tpublishAnswer(qid, bool);\n\t});\t\n}", "function removeExtraneousPageData() {\r\n // get a list of questions to remove the screen reader offensive material.\r\n var questions = document.getElementsByClassName(\"questionDisplay\");\r\n for (var question = 0; question < questions.length; ++question) {\r\n try {\r\n // remove the <legend> tags globally\r\n var legends = questions[question].getElementsByTagName(\"legend\");\r\n while (legends.length > 0) {\r\n legends[0].parentNode.removeChild(legends[0]);\r\n }\r\n\r\n //remove the points possible on the assignment. These don't help\r\n questions[question].getElementsByClassName(\r\n \"pointDisplay\"\r\n )[0].textContent =\r\n questions[question]\r\n .getElementsByClassName(\"pointDisplay\")[0]\r\n .textContent.replace(/\\([0-9]+pts\\)/g, \"\")\r\n .trim() + \"\\n\";\r\n\r\n // remove the extra select blah as your answer headers. These don't help.\r\n var labels = questions[question].getElementsByTagName(\"label\");\r\n for (var n = 0; n < labels.length; ++n) {\r\n labels[n].textContent = labels[n].textContent.replace(\r\n /Select (.*) as your answer/g,\r\n \"\"\r\n );\r\n }\r\n } catch (err) {\r\n console.log(\"An error has occurred\\n\" + err);\r\n }\r\n }\r\n}", "function defaultQuestions(questionnaire)\n{\n \t'use strict';\n questionnaire.insert({question:'Who was the first computer programmer?', answer:'Ada Lovelace', answerId:++answerId});\n questionnaire.insert({question:'Who launched GNU?', answer:'Richard Stallman', answerId:++answerId});\n questionnaire.insert({question:'Who founded apple?', answer:'Steve Jobs', answerId:++answerId});\n questionnaire.insert({question:'Who founded MicroSoft?', answer:'Bill Gates', answerId:++answerId});\n}", "function setQuestions() {\n randomizer();\n $(\"#category\").html(\"<h3>Your category is - \\\"\" + category + \"\\\"</h3\");\n $(\"#question\").html(\"<h4>\" + question + \"</h4\");\n setAnswers();\n\n } //ends setQuestions", "function randomQuestion(){\r\n let copiQuestion = {...questions};\r\n let keys = Object.keys( copiQuestion )\r\n let randomTable = [];\r\n \r\n for(let i = numberOfQuestions; i > 0; i--){\r\n const randomVal = Math.floor(Math.random() * i);\r\n const q = keys.splice(randomVal, 1);\r\n //Random the CHOISES tables\r\n let choice = randomAnswer(copiQuestion[q].choices);\r\n //Set The New CHOISES Table \r\n copiQuestion[q].choices = choice;\r\n randomTable.push(copiQuestion[q]);\r\n //Clean The Copie Of Object questions (copiQuestion)\r\n delete copiQuestion[q];\r\n }\r\n return randomTable;\r\n}", "loadQuestions(numberOfQuestions) {\n return firebase.firestore().collection(\"questions\").get()\n .then(querySnapshot => {\n return querySnapshot;\n })\n .then(querySnapshot => {\n let allQuestions = [];\n querySnapshot.forEach(doc => {\n let tmp = doc.data();\n tmp.id = doc.id;\n allQuestions.push(tmp);\n });\n return getRandomQuestions(allQuestions, numberOfQuestions);\n });\n }", "async function getQuestion() {\n const questionData = await fetch(\n \"https://opentdb.com/api.php?amount=20&category=\" +\n CurrentCategory +\n \"&type=multiple\"\n );\n const response = await questionData.json();\n const Questions = response.results.map((data) => {\n data.allAnswers = data.incorrect_answers.slice();\n data.allAnswers.push(data.correct_answer);\n const index = Math.floor(Math.random() * 4 + 1) - 1; //this will shuffle the position of right answer\n const correctIndex = data.allAnswers.indexOf(data.correct_answer);\n const tempAns = data.allAnswers[index];\n data.allAnswers[index] = data.correct_answer;\n data.allAnswers[correctIndex] = tempAns;\n return data;\n });\n setAllQuestions(Questions);\n }", "exitMoreQuestionsBody(ctx) {\n\t}", "function removeQuestion(ins_id, q_id) {\n if(!isEdit){\n for (let i = 0; i < allInstuctions.length; i++) {\n if (allInstuctions[i].id == ins_id) {\n if (allInstuctions[i].questions.length > 1) {\n for (let j = 0; j < allInstuctions[i].questions.length; j++) {\n if (allInstuctions[i].questions[j].id == q_id) {\n allInstuctions[i].questions.splice(j, 1);\n }\n }\n if(i===allInstuctions.length-1){\n removeQuestionCard(q_id);\n rerangeQuizNumber(allInstuctions[i].questions.length)\n }\n } else if (allInstuctions[i].questions.length === 1) {\n if (allInstuctions.length > 1) {\n if(i===allInstuctions.length-1){\n // $(\"#quiz\").empty().append(`<h3 class=\"text-center p-10\">Current Instruction Was Remove</h3>`)\n allInstuctions.splice(i, 1);\n addDefaultCard();\n }else {\n allInstuctions.splice(i, 1);\n }\n } else if (allInstuctions.length === 1) {\n $(\"#quiz\").empty().append(`<h1 class=\"text-center p-10\">${noQuizText}</h1>`);\n allInstuctions = [];\n }\n }\n }\n }\n $(\"#totalInstruction\").text(allInstuctions.length);\n isEdit = false;\n preview();\n }else {\n warningModal(mustFinishUpdate);\n }\n\n}", "function showQuestions() { \n const randNum = Math.floor(Math.random() * images.length);\n $mainScreen.find(\"img\").attr(\"src\", `${images[randNum]}`);\n rightAnswer = continents[randNum];\n continents.splice(randNum, 1);\n images.splice(randNum, 1);\n noRepeat = [...noRepeat, rightAnswer]; \n // Add two more random questions to the noRepeat array\n while (noRepeat.length < 3) {\n let rand = continents[Math.floor(Math.random() * continents.length)];\n if (noRepeat.indexOf(rand) == -1) {\n noRepeat.unshift(rand);\n }\n }\n \n shuffle(noRepeat);\n // Display shuffled questions\n for (let i in questionNum) {\n $(`${questionNum[i]}`).html(tempArr[i]);\n }\n }", "function makeSampleQuestions () {\n var questions = [\n {questionId: 1,\n text: \"What type of weather do you like?\",\n answers: [\n {answerText: 'Cold as shit',\n answerPicture: \"static/antarctica.jpeg\",\n answerVal: 'A',\n answerId: '1_a'},\n\n {answerText: 'Slightly less cold as shit ',\n answerPicture: \"static/less_cold.jpeg\",\n answerVal: 'B',\n answerId: '1_b'},\n\n {answerText: 'Hot as shit',\n answerPicture: \"static/fire.jpeg\",\n answerVal: 'C',\n answerId: '1_c'},\n\n {answerText: 'Foggy',\n answerPicture: \"static/fogg.jpeg\",\n answerVal: 'D',\n answerId: '1_d'}]\n },\n\n { questionId: 2,\n text: \"How do you like your food?\",\n answers: [\n\n {answerText: 'Spicy',\n answerPicture: \"static/spicy.jpeg\",\n answerVal: 'B',\n answerId: '2_a'},\n\n {answerText: 'Expensive',\n answerPicture: \"static/gold.jpeg\",\n answerVal: 'D',\n answerId: '2_b'\n },\n\n {answerText: 'Turkish',\n answerPicture: \"static/turkish.jpeg\",\n answerVal: 'A',\n answerId: '2_c'},\n\n {answerText: 'Extra Spicy',\n answerPicture: \"static/fire.jpeg\",\n answerVal: 'C',\n answerId: '2_d'\n },\n]\n },\n\n {questionId: 3,\n text: \"Pick your fashion\",\n answers: [\n {answerText: '',\n answerPicture: \"static/fashion_sari.jpeg\",\n answerVal: 'C',\n answerId: '3_a'},\n\n {answerText: '',\n answerPicture: \"static/pata_Vest.jpeg\",\n answerVal: 'D',\n answerId: '3_b'},\n\n {answerText: '',\n answerPicture: \"static/black_clothes.jpeg\",\n answerVal: 'A',\n answerId: '3_c'},\n\n {answerText: '',\n answerPicture: \"static/streetwear.jpeg\",\n answerVal: 'B',\n answerId: '3_d'}]\n },\n\n {questionId: 4,\n text: \"What's your dream residence hall like?\",\n answers: [\n {answerText: 'Tiny',\n answerPicture: \"static/tiny.jpeg\",\n answerVal: 'B',\n answerId: '4_a'},\n\n {answerText: 'Robbed',\n answerPicture: \"static/robber.jpeg\",\n answerVal: 'A',\n answerId: '4_b'},\n\n {answerText: 'Big',\n answerPicture: \"static/spacious.jpeg\",\n answerVal: 'C',\n answerId: '4_c'},\n\n {answerText: 'Rats',\n answerPicture: \"static/rats.jpeg\",\n answerVal: 'D',\n answerId: '4_d'}]\n },\n ]\n\n sessionStorage.setItem('questions', JSON.stringify(questions))\n return questions\n}", "function answer() {\n $(\"#aContainer\").empty();\n $(\"#question\").html(\"The answer was:<br>\" +\n (qnA[questionNumber]\n [qnA[questionNumber]\n [qnA[questionNumber].length - 1]\n ]));\n clearInterval(countdown);\n }", "function askQuestion(){\n\n \n currentQandA = remainingQandAs.pop();\n $(\"#current-question\").text(currentQandA.question);\n // console.log(currentQandA);\n // console.log(remainingQandAs.length);\n}", "function hideQuestionsBox(paragraphName) {\n // trick for WAE\n $('#div_simpatico_block_description').show();\n var qBoxToRemove = document.getElementById(paragraphName + \"_questions\");\n qBoxToRemove.parentNode.removeChild(qBoxToRemove);\n }", "deleteChoices() {\n document.getElementsByClassName(\"divAsks\")[0].remove();\n }", "function rebuildQuestionsArray() {\n questionsArray = questionsArray.concat(questionsAnswered);\n questionsAnswered = [];\n}", "function resetQuizzes()\n{\n\tvar flag = \"true\";\n\t\n\tfor( var i = 1; i <= 7; i++ )\n\t{\n\t\t// check if all passed quizes have been retaken\n\t\tif( getQuiz(i) == \"1\" )\n\t\t{\n\t\t\tflag = \"false\";\n\t\t\tbreak;\n\t\t}\n\t};\n\t\n\tif( flag == \"true\" ) {\n\t\t// reset each retaken quiz to taken state\n\t\tfor( var i = 1; i <= 7; i++ )\n\t\t{\n\t\t\tif( getQuiz(i) == \"2\" )\n\t\t\t{\n\t\t\t\tsetQuiz(i,1);\n\t\t\t}\n\t\t};\n\t}\n}", "function resetQuestions(){\n $(\"input#qa\").prop(\"checked\",false);\n $(\"input#qb\").prop(\"checked\",false);\n $(\"input#qc\").prop(\"checked\",false);\n $(\"input#qd\").prop(\"checked\",false);\n $(\"input#qe\").prop(\"checked\",false);\n $(\"input#qf\").prop(\"checked\",false);\n $(\"input#qg\").prop(\"checked\",false);\n $(\"input#qh\").prop(\"checked\",false);\n $(\"input#qi\").prop(\"checked\",false);\n }", "function removeExpandedQuestion(remainingQuestions) {\n\t if(expandedQuestion !== undefined && getIndex(remainingQuestions, expandedQuestion.id, \"id\") === -1) {\n\t\trightPane.innerHTML = templates.renderQuestionForm();\n\t\treturn false;\n\t }\n }", "function DeleteItemFromMyQuestList(event) {\n\n //event.preventDefault();\n\n // Pop up a confirmation dialog\n var confirmation = confirm('Are you sure you want to remove this Quest from your list?');\n\n // Check and make sure the user confirmed\n if (confirmation === true) {\n \n \n\n // If they did, do our delete\n $.ajax({\n type: 'DELETE',\n url: '/AppEngine/deleteQuestFromMyList/' + localStorage.getItem('QuestToDelete')\n }).done(function( response ) {\n\n // Check for a successful (blank) response\n if (response.msg === '') {\n }\n else {\n alert('Error: ' + response.msg);\n }\n\n // Update the table\n //populateQuestsTable();\n\n });\n\n }\n else {\n\n // If they said no to the confirm, do nothing\n return false;\n\n }\n\n}", "function removeAddedPrereq(){\n\t\t$(\".delete-prereq\").click(function(){\n\t\t\tvar id = $(this).attr(\"id\").trim();\n\t\t\t$(\".item-prereq-\"+id).remove();\n\t\t\tif ( $('#added_prereqs').children().length <= 0 ) {\n\t\t\t $('#added_prereqs').append($.parseHTML('<tr class=\"item-prereq-none\"><td colspan=\"3\" class=\"text-nowrap\">None</td></tr>'));\n\t\t\t}\n\t\t});\n\t}", "function setRandomQues(){\n randomQues = randomNumber(0, VocabSets.length-1);\n setScreen(\"questionScr\");\n setText(\"questionLbl\", VocabSets[randomQues].meera +\" はどういう意味ですか? \");\n //countriesSets.splice(randomQues, 1);\n randomAnswerBtns(randomQues);\n}", "function randomQ(){\n num = Math.floor(Math.random()*qBank.length+1); //generates random number from 1-7\n console.log(questions[num-1]); //displays question in console according to array index\n \n for(let i =0; i < answerChoices[num-1].length; i++){\n console.log(i+': '+answerChoices[num-1][i]); //displays all options for particular question, each value in array is an array\n }\n\n input = prompt('What is your answer to the question?'\n +' Choose an answer based on the number next to each option. '+\n 'Enter exit or EXIT to end the game.');\n \n //how to end the game\n if(input === 'exit' || input === 'EXIT')\n {\n stillPlaying = false;\n } \n }", "function generateRandomQ() {\r\n let randomQuestion = Math.floor(Math.random()*questionsArray.length) + 1;\r\n let questionToAsk = questionsArray[randomQuestion - 1];\r\n\r\n return questionToAsk;\r\n }", "remove_quests(remove_in_session) {\r\n for (let i = 0; i < this.quests_length; i++) {\r\n if (this.game_object.quests[i].id == this.current_quest.id) {\r\n if (i < this.next_quest_index) {\r\n this.next_quest_index--;\r\n }\r\n this.game_object.quests.splice(i, 1);\r\n break;\r\n }\r\n }\r\n this.quests_length = this.game_object.quests.length;\r\n\r\n if (remove_in_session) {\r\n }\r\n }", "function clearList () {\n order.innerHTML = ''\n neededIngredients = [] // reset the array for clicks to compare against\n }", "function cleanup() {\n // Discard prompt card\n game.blackDiscards.add([prompt]);\n // Discard answer cards and remove from player hands\n for (let answer of answers.get()) {\n game.whiteDiscards.add(answer.cards);\n var player = util.findByKeyValue(game.players, 'id', answer.userId);\n if (player) {\n for (let card of answer.cards) {\n player.hand.removeById(card.id);\n };\n }\n };\n // Reset player status\n for (let player of game.players) {\n player.answered = false;\n };\n }", "function makeNewRetiredQuestion(question){\n\n}", "function clearPage() {\n quizQuestion.empty();\n timeRem.empty();\n quizAnswers.empty();\n }", "function remove_confirm() {\n\tvar msg;\n\tif (jstatus.toUpperCase() == \"R\") {\n\t\tmsg = \"\\nThis operation will remove the survey and permanently delete all data collected.\"\n\t\t\t+ \"\\n(Note this operation is not available for surveys in Production mode.) \\nAre you sure you want to continue?\\n\";\n\t} else if (jstatus.toUpperCase() == \"P\") {\n\t\tmsg = \"\\nThis operation will remove the survey from the available list and will archive any data collected.\\n\"\n\t\t\t+ \"Are you sure you want to continue?\\n\";\n\t} else {\n\t\tmsg = \"\\nThis operation will clear all submitted data and associated tracking data for this survey.\"\n\t\t\t+ \"\\n(Note this operation is not available for surveys in Production mode.)\\nAre you sure you want to continue?\\n\";\n\t}\n\tvar url = \"dropSurvey?s=\" + jid + \"&t=\" + jstatus;\n\tif (confirm(msg))\n\t\tlocation.replace(url);\n\telse\n\t\treturn;\n}", "function setAvailableQuestions(){\n const totalQuestion = quiz.length;\n for(let i=0; i<totalQuestion; i++ ){\n availableQuestions.push(quiz[i])\n }\n\n\n }", "function questions() {\n inquirer.prompt([{\n name: \"id\",\n message: \"Please select the ID of the product you wish to buy\",\n type: \"list\",\n choices: prodIdArray\n }, {\n name: \"units\",\n message: \"How many units would you like to purchase?\",\n type: \"input\",\n validate: isNumber\n\n }]).then(function(answers) {\n searchDB(answers.id, answers.units);\n });\n\n}", "function Question(){\n console.log(cQ)\n console.log(correct);\n\t\t$(\".answer\").show();\n\t\t$(\"#Question\").show();\n $(\"#Question\").text(questions[cQ].currentQ);\n $(\"#A\").text(questions[cQ].aA);\n $(\"#B\").text(questions[cQ].aB);\n $(\"#C\").text(questions[cQ].aC);\n $(\"#D\").text(questions[cQ].aD);\n var answerCheck = (questions[cQ].answer);\n $(\"#A\").unbind('click').click(function() {\n answer = $(\"#A\").text();\n if(answer == answerCheck){\n console.log(\"Yay\");\n correct ++;\n cQ ++;\n }else{\n cQ ++;\n }\n if (cQ >= 5){\n end();\n }else{\n Question();\n }\n });\n $(\"#B\").unbind('click').click(function() {\n answer = $(\"#B\").text();\n if(answer == answerCheck){\n console.log(\"Yay\");\n correct ++;\n cQ ++;\n }else{\n cQ ++;\n }\n if (cQ >= 5){\n end();\n }else{\n Question();\n }\n });\n $(\"#C\").unbind('click').click(function() {\n answer = $(\"#C\").text();\n if(answer == answerCheck){\n console.log(\"Yay\");\n correct ++;\n cQ ++;\n }else{\n cQ ++;\n }\n if (cQ >= 5){\n end();\n }else{\n Question();\n }\n });\n $(\"#D\").unbind('click').click(function() {\n answer = $(\"#D\").text();\n if(answer == answerCheck){\n console.log(\"Yay\");\n correct ++;\n cQ ++;\n }else{\n cQ ++;\n }\n if (cQ >= 5){\n end();\n }else{\n Question();\n }\n });\n\t}", "function questionGetter() {\n //gets random question to pass into render function and \n //removes it from the question array\n qID = qIDArr.splice(Math.floor(Math.random() * qIDArr.length), 1)\n\n}" ]
[ "0.6742662", "0.6623651", "0.64511627", "0.62269586", "0.61851627", "0.6184869", "0.61477876", "0.61279154", "0.61273134", "0.6112415", "0.6048065", "0.6027864", "0.59538245", "0.59505713", "0.59446764", "0.59431803", "0.59361166", "0.592414", "0.59151703", "0.5908261", "0.5865811", "0.58645946", "0.5841595", "0.5829175", "0.58223474", "0.5810825", "0.58103013", "0.57979494", "0.57932496", "0.5760729", "0.5754915", "0.5754841", "0.5749919", "0.57419264", "0.57401437", "0.5738702", "0.57279986", "0.5721854", "0.57029474", "0.57005394", "0.56993616", "0.5695585", "0.566951", "0.5659872", "0.5653206", "0.5648851", "0.5645643", "0.56389487", "0.5635633", "0.5633133", "0.56258416", "0.5625681", "0.5618771", "0.561374", "0.5608415", "0.5603279", "0.559376", "0.5590036", "0.55843264", "0.5575004", "0.55712104", "0.556825", "0.5567251", "0.5559602", "0.5557705", "0.55532354", "0.55484325", "0.55440694", "0.55415225", "0.55352885", "0.5513234", "0.5512185", "0.55113053", "0.5509125", "0.5509052", "0.5507925", "0.5506785", "0.550512", "0.5504678", "0.55037344", "0.55026865", "0.54982054", "0.54981583", "0.5497623", "0.54923856", "0.5480523", "0.547743", "0.54731435", "0.5472988", "0.546934", "0.5467752", "0.5465883", "0.5465487", "0.5453499", "0.5451372", "0.5446854", "0.5443763", "0.54431814", "0.5441488", "0.5439006", "0.54368407" ]
0.0
-1
==================================================================================================================================================== ITEM PURCHASE FUNCTION ====================================================================================================================================================
function itemPurchase() { connection.query("SELECT * FROM products WHERE ?", { item_id: productId }, function (err, res) { console.log(lineBreak); if (res[0].stock_quantity < quantity) { console.log("Insufficient quantity. There are "+ res[0].stock_quantity +" "+ res[0].product_name + "(s) left in stock.") purchaseQuestions(); // setTimeout(purchaseQuestions, 500); } else { console.log(" -- Order Summary -- ") console.log("Item: " + res[0].product_name); console.log("Quantity: " + quantity); var totalPrice = res[0].price * quantity; console.log("Order Total: $" + totalPrice.toFixed(2)); console.log(lineBreak); calculateInventory(); } // console.log(" -- Order Summary -- ") // console.log("Item: " + res[0].product_name); // console.log("Quantity: " + quantity); // var totalPrice = res[0].price * quantity; // console.log("Order Total: $" + totalPrice.toFixed(2)); // console.log(lineBreak); // calculateInventory(); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {\n return\n}", "async purchaseItem(itemId) {\n const purchase_result = await this.__request(`https://dragonsofmugloar.com/api/v2/${this.game.gameId}/shop/buy/${itemId}`, \"POST\");\n\n if (purchase_result) {\n const {gold, level, lives, shoppingSuccess, turn} = purchase_result;\n if (!shoppingSuccess) {\n console.log(\"Cannot buy this item!\");\n }\n await this.updateGameState(lives, gold, null, null, turn, level);\n }\n\n }", "function purchaseItem() {\n\tinquirer.prompt([{\n\t\tname: \"puchaseItemID\",\n\t\ttype: \"input\",\n\t\tmessage: \"What is the ID Number of the item you'd like to purchase?\",\n\t\tvalidate: function(value) {\n\t\t\tif (value >= 1 && value <= 12) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}, \n\n\t{\n\t\tname: \"purchaseQty\",\n\t\ttype: \"input\",\n\t\tmessage: \"How many of this item would you like to purchase?\",\n\t\tvalidate: function(value) {\n\t\t\tif (value) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\t\t\n\t}]).then(function(response) {\n\t\t// connection.query(\"SELECT * FROM products\", function(err, res) {\n\t\t\t// console.log(res);\n\t\t// });\n\t\torderItem(response);\n\t});\n}", "releaseItem(item) {}", "function purchaseItem(itemName, quantity){\n connection.query( \"UPDATE products SET stock_quantity = stock_quantity - ? WHERE item_id = ?\",\n [quantity, itemName.id],\n function (err, res) {\n console.log(\"You purchased \" + quantity + \" \" + itemName.product_name);\n displayProducts();\n }\n );\n}", "function purge() {\r\n captureTransactionDetails(\"PURGE\", \"purgePolicy\");\r\n}", "function purchase(itemId, neededQuant) {\n connection.query(`SELECT * FROM products WHERE id = ${itemId}`, function (err, res) {\n if (err) throw err;\n if(res[0].stock_quantity < neededQuant) {\n console.log(\"Insufficient stock! Sorry. Please check again.\")\n } else {\n connection.query(`UPDATE products SET stock_quantity = ${res[0].stock_quantity} - ${neededQuant} WHERE id = ${itemId}`);\n //sets price to a variable for easy use\n var total = res[0].price * neededQuant;\n console.log(`\nYour total today comes up to ${total}. Thank you for shopping and please come again.\n `)\n }\n connection.end();\n });\n}", "function refundItem() {}", "function purchase1() {\n\tvar h = parseInt(localStorage.getItem(\"Amount\"));\n\tvar k = JSON.parse(localStorage.getItem(\"Items\"));\n\n\tlocalStorage.setItem(\"Amount\", 0)\n\tlocalStorage.setItem(\"Items\", JSON.stringify([]));\n// create function to generate reference number\n\tvar l = (Math.random() * 0xFFFFFF).toString(16)\n\talert(\"The reference number for your order is \" + l)\n}", "async buy(item, quantity) {\n const res = await this.client.action(\"buy\", { itemName: item, quantity: quantity, storeName: this.store });\n if (res.success) {\n this.editCache(item, -quantity);\n await this.client.update(res.playerStringified);\n }\n return { success: res.success, msg: res.msg };\n }", "function purchase () {\n // prompting the user what they want and what quantity\n\tinquirer.prompt([\n \t{\n \ttype: \"input\",\n \tname: \"item\",\n \tmessage: \"Which item do you want to purchase? (Please type item ID)\"\n \t}, {\n \tname: \"quantity\",\n \ttype: \"input\",\n \tmessage: \"How many would you like?\"\n // processing customer purchase\n \t}]).then(function(answers) {\n var item = answers.item;\n var quantity = answers.quantity;\n\n // connecting the the database to check for availability and update stock quantity\n connection.query(\"SELECT stock_quantity, price FROM products WHERE id=\" + item, function (err,res) {\n var stockQuantity = res[0].stock_quantity;\n var total = res[0].price * quantity;\n var newStock = stockQuantity - quantity;\n\n // if their quantity exceeds the inventory the order does not go through\n if (newStock < 0){\n console.log(\"Insufficient quantity! Try again.\");\n purchase();\n }\n // if the inventory is available, quantity in the database is updated\n // and the customer is given their total\n else {\n connection.query(\"UPDATE products SET stock_quantity=\" + newStock + \"WHERE item_id=\" + item, function (err,res) {\n });\n console.log(\"Success! Your total is $\" + total);\n }\n\n });\n\t});\n}", "function buyItem() {\n\n}", "giveItem(itemName, recipient) {\n if (!this.inventory.inventoryHasItem(itemName)) return false;\n const item = this.inventory.removeItem(itemName);\n recipient.takeItem(item);\n return true;\n }", "buyItem(req, res) {\n db.items.getById(req.params.id)\n .then((product) => {\n // Product returns an array of 1 item, so need to access that item, and change the buyer of that item to be the current request maker\n db.transactions.updateTransaction(product[0].id, { buyer_id: req.user.user.id })\n .then(() => {\n db.items.sold(Number(req.params.id));\n //Creates a new client with coinbase which allows user to purchase the item from coinbase\n const client = new coinbase.Client({ accessToken: req.user.accessToken, refreshToken: req.user.refreshToken });\n const args = {\n name: `Order for ${product[0].title}`,\n amount: /* (Number(product[0].price))*/ 0.01,\n metadata: {\n customer_id: client.id,\n customer_name: 'test'\n },\n currency: 'USD',\n type: 'order',\n style: 'custom_small',\n success_url: `http://${req.headers.host}/items/${req.params.id}/confirm`,\n cancel_url: `http://${req.headers.host}/items/${req.params.id}`,\n customer_defined_amount: false,\n collect_shipping_address: false,\n description: `Purchasing: ${product[0].title} on BitBargain`\n };\n //Create a checkout button with those args, and sends it back to BB which embeds it in a button\n client.createCheckout(args, (err, checkout) => {\n console.log(err, checkout);\n if (err) {\n res.json(`Error buying ${product[0].title}`);\n }\n res.json(checkout.embed_code);\n });\n });\n });\n }", "function onClickActionBuyItem(){\n\t\tconst itemlist = CashShop.cartItem;\n\t\tCashShop.cartItemLen = itemlist.length;\n\n\t\tCashShop.ui.find('#purchase-btn').prop('disabled', true);\n\t\tUIManager.showPromptBox( 'Are you sure you want to buy this items?', 'ok', 'cancel', function(){\n\t\t\tif(CashShop.cartItem.length > 0){\n\t\t\t\tvar pkt \t= new PACKET.CZ.SE_PC_BUY_CASHITEM_LIST();\n\t\t\t\tpkt.kafraPoints \t= 0;\n\t\t\t\tpkt.item_list \t\t= CashShop.cartItem;\n\t\t\t\tNetwork.sendPacket(pkt);\n\t\t\t} else {\n\t\t\t\tUIManager.showMessageBox( 'No item in cart!', 'ok');\n\t\t\t\tChatBox.addText( 'No item in cart!', ChatBox.TYPE.INFO);\n\t\t\t\tCashShop.ui.find('#purchase-btn').prop('disabled', false);\n\t\t\t}\n\t\t}, function(){\n\t\t\tCashShop.ui.find('#purchase-btn').prop('disabled', false);\n\t\t});\n\t}", "function purchase() {\n connection.query(\"SELECT * FROM products\", function (err, res) {\n if (err) throw err;\n console.table(res);\n inquirer.prompt([{\n name: \"itemId\",\n type: \"number\",\n message: \"Enter the item ID of the item you want to buy.\".brightYellow\n },\n {\n name: \"itemQuantity\",\n type: \"number\",\n message: \"Excellent Choice! How many would you like?\".brightYellow\n }]).then(function (answer) {\n saleItem = answer.itemId - 1;\n saleQuantity = answer.itemQuantity;\n checkInv()\n\n });\n\n });\n\n}", "function purchaseItem(){\n inquirer.prompt([\n {\n name: \"id\",\n type: \"input\",\n message: \"Please enter item ID of item you would like to purchase.\",\n filter: Number\n },\n {\n name: \"Quantity\",\n type: \"input\",\n message: \"How many would you like to purchase?\",\n filter: Number\n },\n ]).then(function(response){\n var quantity = response.Quantity;\n var itemId = response.id;\n orderItem(itemId, quantity);\n });\n}", "_deleteItem() {\n this.splice('cart', this.itemNumber, 1);\n if (this.itemNumber > (this.cart.length - 1)) {\n window.history.go(-1);\n }\n console.log(this.cart);\n this.setCartItem();\n this._computeNewItemNumber(this.itemNumber)\n }", "releaseItem(item_id, cb) {\n this.session.put({ url: this.url + '/api/filter/gated/' + item_id }, cb);\n }", "function purchase(action = \"\") {\n if (action == \"init\") {\n }\n\n // Prompt the user to enter Product's item_id to review detail of the product:\n inquirer.prompt([\n {\n name: \"ID\",\n type: \"input\",\n message:\n \"Enter the product's item ID to review detail. [Quit with Ctrl+C]\",\n filter: Number,\n validate: function(val) {\n return !isNaN(val);\n }\n },\n {\n name: \"qty\",\n type: \"input\",\n message: \"OK, how many would you like to buy? \",\n filter: Number,\n validate: function(value) {\n if (isNaN(value) == false) {\n return true;\n } else {\n return false;\n }\n }\n }\n ]).then(function(userInput) {\n connection.query(\"SELECT * FROM products WHERE item_id = ?\", [userInput.ID], function(err, inventoryRes) {\n if (err) {\n console.log(\"ERROR: \", err);\n }\n console.log(\"\");\n console.log(\n \"====================\",\n \"\\nPRODUCT DETAIL: \",\n inventoryRes,\n \"\\n====================\"\n );\n console.log(\"\");\n purchaseItem(userInput.ID, userInput.qty);\n });\n });\n // *** This is the end of the function purchase() ***\n}", "function purchaseOrder(ID, stockAmt){\n\tconnection.query('Select * FROM products WHERE item_id = ' + ID, function(err,res){\n\t\tif(err){console.log(err)};\n\t\tif(stockAmt <= res[0].stock_quantity){\n\t\t\tvar totalCost = res[0].price * stockAmt;\n console.log(\"IN STOCK!\");\n //Total cost\n console.log(\"Total cost = \" + stockAmt + \" \" +res[0].product_name+\"s\" + \" is \" + \"$\"+ totalCost);\n console.log(\"THANK YOU FOR YOUR PURSCHASE :)\");\n\t\t\tconnection.query(\"UPDATE products SET stock_quantity = stock_quantity - \" + stockAmt + \"WHERE item_id = \" + ID);\n\t\t} else{\n\t\t\tconsole.log(\"Insufficient quantity!\" + res[0].product_name);\n\t\t};\n\t\tdisplayProducts();\n\t});\n}", "function finalizePurchase(itemID, qty, stock, price){\n\n let newStock = stock - qty;\n let totalCost = qty * price;\n\n connection.query(\n \"UPDATE products SET ? WHERE ?\",\n [\n {\n stock_quantity: newStock\n },\n {\n id: itemID\n }\n ],\n function(error) {\n if (error) throw err;\n \n console.log(\"Purchase successful! Your total is $\" + totalCost.toFixed(2));\n startPrompt();\n }\n );\n}", "function buyItem(guid) {\n print(\"Trying to buy item \" + guid);\n\n var inventory = getInventory(currentMerchant);\n\n for (var i = 0; i < inventory.length; ++i) {\n var item = inventory[i];\n if (item.id == guid) {\n // Pay for it and only if that succeeds, move it\n if (Party.money.getTotalCopper() < item.worth) {\n print(\"Player doesn't have enough money.\");\n return;\n }\n Party.money.addCopper(- item.worth);\n\n inventory.splice(i, 1); // Remove from container\n\n if (!currentPlayer.content)\n currentPlayer.content = [];\n\n currentPlayer.content.push(item);\n\n // Refresh the UI\n MerchantUi.refresh();\n\n return;\n }\n }\n\n print(\"Unknown item guid: \" + guid);\n }", "function verifyItemPurchase (review, user, item_id)\r\n{\r\n\t'use strict';\r\n\tif (item_id)\r\n\t{\r\n\t\tvar results = new nlapiSearchRecord('salesorder', null, [\r\n\t\t\tnew nlobjSearchFilter('entity', null, 'is', user)\r\n\t\t,\tnew nlobjSearchFilter('item', null, 'is', item_id.toString())\r\n\t\t]);\r\n\r\n\t\treview.setFieldValue('custrecord_ns_prr_verified', results && results.length ? 'T' : 'F');\r\n\t}\r\n}", "function sell_item_destroy(item, cost_adjustment) {\n //U.pluck(item._2o.container()._2m.items(), item);\n return $q.all([\n change_gold(item._2o.container(), item.cost*cost_adjustment),\n Oit.destroy_item(item)\n ]);\n }", "function purchaseItem(quantity, id) {\n var query = connection.query(\n \"UPDATE products SET ? WHERE ?\",\n [\n {\n stock_quantity: quantity--\n },\n {\n id: id\n }\n ],\n function (err, res) {\n // console.log(res);\n if (err) throw err;\n // console.log(\"Product updated.\");\n buyItem();\n }\n )\n return buyItem();\n\n}", "buyItem(item) {\n console.log(\"Buying Item:\", item.name);\n }", "function DropItem(itemId: int) {\n\t\tinventoryItemCount--;\n\t\n\t}", "buyItemFromVendor(x, y, item, client, clientPub, vendorChannel){\n\t\tlet temp = this.findVendor(x, y, client);\n\t\tlet bought = false;\n\t\tlet vendorID = null;\n\t\tif(temp.type === \"vendor\" && temp !== false){\n\t\t\tlet foundVendor = temp.vendor;\n\t\t\tvendorID = foundVendor.vendorID;\n\t\t\tfor(let i = 0, j = foundVendor.items.length; i<j; i++){\n\t\t\t\tif(foundVendor.items[i].item === item){\n\t\t\t\t\tif(this.vendors[vendorID].items[i].quantity === 1){\n\t\t\t\t\t\tthis.vendors[vendorID].items.splice(i, 1);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthis.vendors[vendorID].items[i].quantity--;\n\t\t\t\t\t}\n\t\t\t\t\t(async () => {\n\t\t\t\t\t\tclientPub.publish(vendorChannel, JSON.stringify({\n\t\t\t\t\t\t\titems: this.vendors[vendorID].items,\n\t\t\t\t\t\t\tvendor: vendorID\n\t\t\t\t\t\t}));\n\t\t\t\t\t})();\n\t\t\t\t\t(async () => {\n\t\t\t\t\t\tclient.hset('vendor', vendorID, JSON.stringify(this.vendors[vendorID].items));\n\t\t\t\t\t})();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function promptUserPurchase() {\n\t// console.log('___ENTER promptUserPurchase___');\n\n\t// Prompt the user to select an item\n\tinquirer.prompt([\n\t\t{\n\t\t\ttype: 'input',\n\t\t\tname: 'item_id',\n\t\t\tmessage: 'Please enter the Item ID which you would like to purchase.',\n\t\t\tvalidate: validateInput,\n\t\t\tfilter: Number\n\t\t},\n\t\t{\n\t\t\ttype: 'input',\n\t\t\tname: 'quantity',\n\t\t\tmessage: 'How many do you need?',\n\t\t\tvalidate: validateInput,\n\t\t\tfilter: Number\n\t\t}\n\t]).then(function(input) {\n\t\t// console.log('Customer has selected: \\n item_id = ' + input.item_id + '\\n quantity = ' + input.quantity);\n\n\t\tvar item = input.item_id;\n\t\tvar quantity = input.quantity;\n\n\t\t// Query db to confirm that the given item ID exists in the desired quantity\n\t\tvar queryStr = 'SELECT * FROM products WHERE ?';\n\n\t\tconnection.query(queryStr, {item_id: item}, function(err, data) {\n\t\t\tif (err) throw err;\n\n\t\t\t// If the user has selected an invalid item ID, data attay will be empty\n\t\t\t// console.log('data = ' + JSON.stringify(data));\n\n\t\t\tif (data.length === 0) {\n\t\t\t\tconsole.log('ERROR: Invalid Item ID. Please select a valid Item ID.');\n\t\t\t\tdisplayInventory();\n\n\t\t\t} else {\n\t\t\t\tvar productData = data[0];\n\n\t\t\t\t// console.log('productData = ' + JSON.stringify(productData));\n\t\t\t\t// console.log('productData.stock_quantity = ' + productData.stock_quantity);\n\n\t\t\t\t// If the quantity requested by the user is in stock\n\t\t\t\tif (quantity <= productData.stock_quantity) {\n\t\t\t\t\tconsole.log('Congratulations, the product you requested is in stock! Placing order!');\n\n\t\t\t\t\t// Construct the updating query string\n\t\t\t\t\tvar updateQueryStr = 'UPDATE products SET stock_quantity = ' + (productData.stock_quantity - quantity) + ' WHERE item_id = ' + item;\n\t\t\t\t\t// console.log('updateQueryStr = ' + updateQueryStr);\n\n\t\t\t\t\t// Update the inventory\n\t\t\t\t\tconnection.query(updateQueryStr, function(err, data) {\n\t\t\t\t\t\tif (err) throw err;\n\n\t\t\t\t\t\tconsole.log('Your oder has been placed! Your total is $' + productData.price * quantity);\n\t\t\t\t\t\tconsole.log('Thank you for shopping with us!');\n\t\t\t\t\t\tconsole.log(\"\\n---------------------------------------------------------------------\\n\");\n\n\t\t\t\t\t\t// End the database connection\n\t\t\t\t\t\tconnection.end();\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log('Sorry, there is not enough product in stock, your order can not be placed as is.');\n\t\t\t\t\tconsole.log('Please modify your order.');\n\t\t\t\t\tconsole.log(\"\\n---------------------------------------------------------------------\\n\");\n\n\t\t\t\t\tdisplayInventory();\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t})\n}", "function purchaseItem(...fns)\n\n\n{} // & these spreads functions", "function makePurchase(product, quantity) {\n\tconnection.query(\n\t \"UPDATE products SET stock_quantity = stock_quantity - ? WHERE item_id = ?\",\n\t [quantity, product.item_id],\n\t function(err, res) {\n\t\t// Let the user know the purchase was successful, re-run loadProducts\n\t\tconsole.log(\"\\nSuccessfully purchased \" + quantity + \" \" + product.product_name + \"'s!\");\n\t\tdisplayProducts();\n\t }\n\t);\n }", "function purchaseItem(user, item) {\n return Object.assign({}, user, {purchases: item})\n}", "async sell(item, quantity) {\n const res = await this.client.action(\"sell\", { itemName: item, quantity: quantity, storeName: this.store });\n if (res.success) {\n this.editCache(item, quantity);\n await this.client.update(res.playerStringified);\n }\n return { success: res.success, msg: res.msg };\n }", "function checkPurchase(itemID, qty) {\n\n connection.query(\"SELECT * FROM products WHERE ?\",\n {\n id: itemID\n },\n function (err, res) {\n if (err) throw err;\n\n let stock = res[0].stock_quantity;\n let price = res[0].price;\n\n if (stock >= qty) {\n console.log(\"You can buy that!\");\n finalizePurchase(itemID, qty, stock, price);\n } else {\n console.log(\"There aren't enough units to purchase that! Let's start over...\");\n startPrompt();\n\n }\n\n });\n}", "function purchase(product, price, quantity){\n connection.query(\n \"UPDATE products SET ? WHERE ?\",[{\n stock_quantity: currentQuantity - quantity,\n },\n {\n item_id: currentItemId,\n }],\n function(error, results){\n\n if(error) throw error;\n console.log(\"thank you for your purchase!\");\n end();\n }\n )\n\n}", "remove(item) {\n item = this.normalize(item);\n\n if (this.items.filter(i => i[0] == item[0]).length) { // item with SKU exists already\n this.items = this.items.map(\n i => {\n // when the SKU of the newly added item matches the item in the inventory, just add amount\n if (i[0] == item[0]) {\n i[1] -= item[1];\n }\n return i;\n }\n );\n }\n\n // filter out the items with quantity of 0 or less\n this.items = this.items.filter(i => i[1] > 0);\n }", "function purchase(stock, item) {\n console.log(\"Okay, let's get your order ready. That'll be $\" + price + \". Hope you've got cash...Processing your order now.\");\n let query = \"UPDATE products SET stock_quantity = ? WHERE Item_id = ?\";\n connection.query(query, [stock, item], function(err, results) {\n displayStore();\n });\n\n}", "function buyItem() {\n\taddArmor();\n\t$('#alerts').append(\"<br />An item has being bought<br />\");\n\tremoveMoneyI();\n}", "function purchaseOrder(ID, quantity) {\n connection.query('Select * FROM products WHERE item_id = ' + ID, function (err, res) {\n if (err) {\n console.log(err)\n };\n if (quantity <= res[0].stock_quantity) {\n var totalCost = res[0].price * quantity;\n console.log(\"Still available!\");\n console.log(\"Your total cost for \" + quantity + \" \" + res[0].product_name + \" is \" + totalCost + \" Thank you!\");\n\n connection.query(\"UPDATE products SET stock_quantity = stock_quantity - \" + quantity + \" WHERE item_id = \" + ID);\n } else {\n console.log(\"Sorry, we do not have that many \" + res[0].product_name + \" to complete your order.\");\n };\n displayItems();\n });\n}", "function toggleItem(item)\r\n{\r\n\tif( item != null) {\r\n\t\titem.purchased = !item.purchased;\r\n\t}\r\n\tstoreGroceryItems();\r\n}", "function buy (id, quanityNum, quanity){\n // console.log(\"this is hte BUY function\")\n // console.log(\"this is quanity \"+quanity)\n // console.log(\"this is quanityNum \"+quanityNum)\n quanityNum -= quanity\n // console.log(\"new quanityNum =\"+quanityNum)\n var query = 'UPDATE products SET ? WHERE ?'\n connection.query(query,[{StockQuantity : quanityNum},{itemID:id}], function(err,res){\n if (err)throw err;\n console.log(\"=========================\")\n console.log(\"ORDER PLACED SUCESSFULLY!\")\n console.log(\"=========================\")\n });\n var select = 'SELECT Price FROM products WHERE ?'\n connection.query(select,{itemID : id}, function(err, res){\n if (err) throw err;\n var priceEach = res[0].Price;\n var totalPrice = priceEach * quanity\n console.log(\"Your order total is \"+totalPrice);\n return;\n });\n\n//remove items from the database Stock Quantity based on user choice, message order complete. \n\n\nreturn;\n}", "sellItemtoVendor(x, y, item, client, clientPub, vendorChannel, itemsObj){\n\t\tlet temp = this.findVendor(x, y, client);\n\t\tlet vendorID = null;\n\t\tif(temp.type === \"vendor\" && temp !== false){\n\t\t\tlet vendorID = temp.vendor.vendorID;\n\t\t\tlet found = false;\n\t\t\tfor(let i = 0, j = this.vendors[vendorID].items.length; i<j; i++){\n\t\t\t\tif(item.item === this.vendors[vendorID].items[i].item){\n\t\t\t\t\t//if vendor already has this item, increase quantity\n\t\t\t\t\tthis.vendors[vendorID].items[i].quantity++;\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!found){\n\t\t\t\t//else give quantity 1 and add to vendor items\n\t\t\t\tlet temp = item;\n\t\t\t\ttemp.quantity = 1;\n\t\t\t\tthis.vendors[vendorID].items.push(temp);\n\t\t\t}\n\t\t\t(async () => {\n\t\t\t\tclientPub.publish(vendorChannel, JSON.stringify({\n\t\t\t\t\titems: this.vendors[vendorID].items,\n\t\t\t\t\tvendor: vendorID\n\t\t\t\t}));\n\t\t\t})();\n\t\t\t(async () => {\n\t\t\t\tclient.hset('vendor', vendorID, JSON.stringify(this.vendors[vendorID].items));\n\t\t\t})();\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "function sellItems(itemID, qtyRequested){\n\t//check qty available by itemID and compare qty requested\n\tvar query = 'SELECT item_id, product_name, department_name, price, stock_qty FROM products WHERE ?';\n\tconnection.query(query, {item_id: itemID}, function(err, items){\n\t\t//if equal to or less than process order and display cost\n\t\tif (qtyRequested <= items[0].stock_qty){\n\t\t\t//run query to update qty\n\t\t\t//determines the new qty of items\n\t\t\tvar newQTY = items[0].stock_qty - qtyRequested;\n\t\t\tupdateItemQTY(itemID, newQTY);\n\t\t\t//calculate total cost of items\n\t\t\tvar totalCost = items[0].price * qtyRequested;\n\t\t\t//display cost\n\t\t\tconsole.log('Total amount owed is: $' + totalCost);\n\t\t} else {\n\t\t\t//if greater than stock qty display error message\n\t\t\tconsole.log('There was a problem with your request, you either requested an invalid qty or invalid ID');\n\t\t}\n\t});\n}", "async purchase() {\n if (!this.canUnlock(this.category)) {\n return alert('Did not match category requirements.');\n }\n\n if (confirm(`Are you sure you want to purchase ${this.category.name}?`) === false) return;\n\n this.isPurchasing = true;\n\n try {\n let response = await this.einsteinChamberService.purchase(this.category.id);\n this.user.update(response.user);\n this.isPurchasing = false;\n } catch (response) {\n }\n }", "async forceSell(item, quantity) {\n const res = await this.client.action(\"forceSell\", {\n itemName: item,\n quantity: quantity,\n storeName: this.store,\n });\n if (res.success) {\n this.editCache(item, quantity);\n await this.client.update(res.playerStringified);\n }\n return { success: res.success, msg: res.msg };\n }", "function purchasedItem(listItem) {\n listItem.hide();\n purchased.append(listItem);\n listItem.show('slow');\n }", "function removeItemFromCart(){\n\n}", "function useBagItem(itemIndex){\n //determine which type of items can be consumed through a new attribute and what they do.\n var tempBagItem = bagInventory[itemIndex];\n\n var attributeNumber = parseInt(tempBagItem.Attribute);\n var itemType = tempBagItem.ItemType;\n var itemUsed = false;\n switch (itemType) {\n case 'healing':\n playerHeal(attributeNumber);\n itemUsed = true;\n break;\n default:\n //do nothing if it doesn't fall under one of the above\n break;\n }\n\n //when consumed delete the item from inventory.\n if(itemUsed){\n removeBagItem(itemIndex);\n }\n\n}", "function buyProduct(id, q) {\n console.log(\"Completeing purchase. Purchase total is $\" + cost);\n var query = connection.query(\n \"UPDATE products SET ? WHERE ?\",\n [\n {\n quantity: q\n },\n {\n id: id\n }\n ],\n function(err, res) {\n if(err) console.log(err);\n console.log(res.affectedRows + \" products updated!\\n\");\n }\n );\n connection.end();\n}", "function buyProducts(id, quantity)\n {\n connection.query(\"SELECT * FROM products WHERE item_id = \"+id,\n function(err, res) \n {\n if (err) throw err;\n if(quantity > res[0].stock_quantity)\n {\n console.log(\"Quantity Requested: \"+quantity);\n console.log(\"Quantity In Stock: \"+res[0].stock_quantity);\n console.log(\"SORRY! We don't have enough to fill your order\");\n connection.end();\n }\n else\n {\n var inventory = parseInt(res[0].stock_quantity) - quantity;\n var newid = res[0].item_id;\n var newname = res[0].product_name;\n console.log(\"Product name: \"+newname+ \" , Product ID: \"+newid);\n\n console.log(\"Stock Inventory BEFORE your Purchase: \"+res[0].stock_quantity);\n console.log(\"Units you are purchasing: \"+quantity);\n console.log(\"Stock Inventory AFTER your Purchase: \"+inventory);\n updateQuantity(res[0].stock_quantity, newid, inventory );\n priceIt(quantity, res[0].price);\n } \n });\n }", "purchase(productSkus = [], planSkus = [], appStoreDetails) {\n\t\tconst cart = {\n\t\t\tproductSkus,\n\t\t\tplanSkus\n\t\t};\n\n\t\tif(appStoreDetails) cart.appStoreDetails = appStoreDetails;\n\n\t\treturn _makeRequest('/purchase', {needsAuth: true, method: 'POST', body: cart})\n\t\t\t.then(responseData => {\n\t\t\t\tif(responseData.success) {\n\t\t\t\t\t// Unsubscribe from no_purchases_made topic\n\t\t\t\t\tfirebaseClient.unsubscribe(constants.firebase.topics.NO_PURCHASES_MADE);\n\n\t\t\t\t\treturn responseData.order;\n\t\t\t\t} else {\n\t\t\t\t\t// Throw an erro for downstream\n\t\t\t\t\tthrow new Error(responseData.errors[0]);\n\t\t\t\t}\n\t\t\t});\n\t}", "function bidItem() { }", "function purchase(quantityRemaining, quantityRequest, price, id) {\n if (quantityRemaining < quantityRequest) {\n inquirer\n .prompt({\n name: \"editRequest\",\n type: \"rawlist\",\n message:\n \"Insufficient quantity to fullfill order. Would you like to change your request to a smaller value?\",\n choices: [\"Yes\", \"No\"]\n })\n .then(function(data) {\n if (data.confirm === \"No\") {\n console.log(\"Thank you for your business!\");\n connection.end();\n } else {\n runSearch();\n }\n });\n } else {\n total = total + price * quantity;\n connection.query(\n \"UPDATE products SET stock_quantity = stock_quantity - \" +\n quantity +\n \" WHERE ?\",\n [\n {\n item_id: id\n }\n ],\n //alert user of the balance for their current request, if they want to make additional purchases \n //then price and quantity is added to the \"total\" variable.\n function(err, res) {\n if (err) throw err;\n\n inquirer\n .prompt({\n name: \"confirm\",\n type: \"rawlist\",\n message:\n \"\\nYour total for this transaction is: $\" +\n (price * quantity).toString() +\n \". Would you like to make another purchase?\",\n choices: [\"Yes\", \"No\"]\n })\n .then(function(data) {\n if (data.confirm === \"No\") {\n console.log(\"\\nThe total for today is: $\" + total.toString());\n connection.end();\n } else {\n runSearch();\n }\n });\n }\n );\n }\n}", "function purchaseItem() {\n\n // Defining query terms to select the item being purchased\n var queryTerms = \"SELECT * FROM products WHERE ?\";\n connection.query(queryTerms, {item_id: itemID}, function(err, results) {\n if (err) throw err;\n\n // Reassigning data into new variables\n quantityOnHand = results[0].stock_quantity;\n totalPrice = (purchaseQuantity * results[0].price).toFixed(2);\n newSales = totalPrice;\n\n // Getting data from the individual record to handle total product sales\n // Sometimes the product sales are recorded as \"null\" in the table, so this is error handling for that.\n if (results[0].product_sales === null) {\n totalSales = 0;\n } else {\n totalSales = (results[0].product_sales).toFixed(2);\n }\n\n // If the item being purchased fits within the inventory...\n if (purchaseQuantity <= quantityOnHand) {\n console.log(\"\\nYou ordered \" + purchaseQuantity + \" \" + results[0].product_name + \"(s).\" +\n \"\\nYour total is $\" + totalPrice + \" + tax.\\n\");\n updateQuantity();\n // Otherwise reroute to the beginning\n } else {\n console.log(\"\\n**** Insufficient quantity on hand. Please try again.\\n\"); \n start(); \n }\n });\n} // End purchaseItem function", "deleteItemById(db, site_id, item_id) {\n return db\n .from(\"inventory\")\n .where({\n site_id: site_id,\n id: item_id,\n })\n .del();\n }", "purchases(gallery_id, { user, trx } = {}) {\n return Gallery\n .forge( { id: gallery_id })\n .fetch({\n require: true,\n transacting: trx,\n withRelated: 'posts.purchases.outlet'\n })\n .then(gallery => {\n if (gallery.get('owner_id') != user.get('id') && !user.permissions.can('admin', 'get', 'purchase')) {\n return Promise.reject(\n ferror(ferror.FORBIDDEN)\n .msg('You do not have permission to view purchases for this gallery')\n );\n }\n\n let posts = [];\n for (let post of gallery.related('posts').models) {\n let purchases = [];\n for (let purchase of post.related('purchases').models) {\n purchases.push({\n id: purchase.get('id'),\n outlet: {\n id: purchase.related('outlet').get('id'),\n title: purchase.related('outlet').get('title'),\n avatar: purchase.related('outlet').get('avatar'),\n object: 'outlet'\n },\n amount: parseInt(purchase.get('amount')) - parseInt(purchase.get('fee'))\n });\n }\n if (purchases.length) {\n delete post.relations.purchases;\n post.set('purchases', purchases);\n posts.push(post);\n }\n }\n return Promise.resolve(posts);\n })\n .catch(Gallery.NotFoundError, err =>\n Promise.reject(ferror(ferror.NOT_FOUND).msg('Gallery not found'))\n )\n .catch(err => Promise.reject(ferror.constraint(err)));\n }", "function purchase() {\n inquirer\n .prompt([\n {\n type: \"input\",\n name: \"itemID\",\n message: \"What is the ID of the item you would like to purchase?\",\n validate: function(value) {\n if (isNaN(value) === false && value !== '' && parseInt(value) > 0) {\n return true;\n } else {\n console.log(\"\\nPlease enter a valid ID.\");\n return false;\n }\n }\n },\n {\n type: \"input\",\n name: \"itemQuantity\",\n message: \"How many would you like?\",\n validate: function(value) {\n if (isNaN(value) === false && value !== '' && parseInt(value) > 0) {\n return true;\n } else {\n console.log(\"\\nPlease enter a valid quantity.\");\n return false;\n }\n }\n }\n ])\n .then(function(choice) {\n //console.log(\"User's choice: \", choice);\n\n var currentItem = currentInventory.filter(\n item => item.id === parseInt(choice.itemID)\n );\n \n // Above function if written in longer form\n // var currentItem = currentInventory.filter(function(item) {\n // return item.id === parseInt(choice.itemID);\n // });\n\n //console.log(\"currentItem\", currentItem);\n //console.log(\"choice.itemQuantity\", parseInt(choice.itemQuantity));\n //console.log(\"currentItem.stock_quantity\", currentItem[0].stock_quantity);\n \n // if item ID given by the customer does NOT match the ID in the 'products' table\n if (currentItem.length == 0) {\n console.log(\"Sorry that item doesn't exist\");\n // ask customer if they want to move onto a different purchase\n confirmNextPurchase();\n\n //if item ID given by the customer DOES match the ID in the 'products' table\n } else {\n // If the quantity requested is LESS THAN OR EQUAL to the stock quantity\n if (parseInt(choice.itemQuantity) <= currentItem[0].stock_quantity) {\n //fulfill order\n //console.log(\"Enough quantity\");\n console.log(\"You have picked \" + choice.itemQuantity + \" of the \" + currentItem[0].product_name + \".\")\n var cost = parseInt(choice.itemQuantity) * currentItem[0].price;\n console.log(\"Please pay the total of $\" + cost + \" before moving onto the next purchase!\")\n \n // Check if the customer paid\n paidOrUnpaid( function(isPaid) {\n if(isPaid){\n // ONLY update the inventory (aka the 'products' table) if the customer has PAID\n\n //console.log('isPaid working');\n var updatedStock = currentItem[0].stock_quantity - choice.itemQuantity;\n //console.log(\"updatedStock\", updatedStock);\n\n // UPDATE the 'stock_quantity' in the 'products' table using the product ID chosen by the customer after the purchase\n updateInventory(parseInt(choice.itemID), updatedStock);\n confirmNextPurchase();\n // Ends connection if the amount is NOT PAID\n } else {\n console.log(\"The amount is not paid.\");\n connection.end();\n }\n });\n // If the quantity requested is GREATER THAN the stock quantity\n } else {\n // Alert customer about the quantity left\n console.log(\"Insufficient quantity!\");\n console.log(\"We only have \" + currentItem[0].stock_quantity + \" of the \" + currentItem[0].product_name + \" left.\")\n // Ask if customer would like to move onto a new purchase\n confirmNextPurchase();\n }\n }\n });\n}", "function pickUp(item){\n\tif(!item.obtained){\n\t\tuser.inventory.splice(-1, 0, item)\n\t\titem.obtained = true;\n\t\tdocument.getElementById('outputDiv').innerHTML= 'You recieved ' + item.name + '! You put it in your inventory. You now have ' + user.inventory.length + ' out of a possible ' + maximumItems + ' items in your inventory!';\n\t\t\n\t\t//Check to see if user meets the maximum items\n\t\tif(user.inventory.length >= maximumItems){\n\t\t\tend();\n\t\t\treturn;\n\t\t}\n\t}else{\n\t\tdocument.getElementById('outputDiv').innerHTML= 'You already have that item!';\n\t}\n}", "function buy_item(to_cont, item, cost_adjustment) {\n return $q.all([\n change_gold(to_cont, -1*(item.cost*cost_adjustment)),\n put_item(to_cont, item)\n ]);\n }", "function proceed(count) {\n\t\t\t\t\t\tif(count > 0) return; // Not done yet\n\n\t\t\t\t\t\t// Save items to final purchase\n\t\t\t\t\t\tfinal.items = items;\n\n\t\t\t\t\t\tif(preview)\n\t\t\t\t\t\t\treturn callback(null, { items: items });\n\n\t\t\t\t\t\t// Stringify data\n\t\t\t\t\t\tvar payMethod = connection.escape(final.payMethod);\n\t\t\t\t\t\tvar address = connection.escape(JSON.stringify(final.address));\n\t\t\t\t\t\tvar products = connection.escape(JSON.stringify(final.items));\n\n\t\t\t\t\t\t// Save final purchase to database\n\t\t\t\t\t\tvar _sql = sql.purchases.add(user.id, payMethod, address, products);\n\t\t\t\t\t\tconnection.query(_sql, function(err, result) {\n\t\t\t\t\t\t\tif(err) throw err;\n\n\t\t\t\t\t\t\tcallback(null, { id: result.insertId });\n\t\t\t\t\t\t});\n\t\t\t\t\t}", "getPurchasedItems() {\n return this.purchasedItem;\n }", "function buyItem(user){\n return user\n}", "deleteItem(item){\n delete this.inventory[item];\n }", "function deleteItem(itemID) {\r\n if (toDelete.includes(itemID)) {\r\n restoreItem(itemID);\r\n } else {\r\n if (toAdd.includes(itemID)) {\r\n toAdd.splice(toAdd.indexOf(itemID), 1);\r\n } else {\r\n if (toModify.includes(itemID)) {\r\n toModify.splice(toModify.indexOf(itemID), 1);\r\n }\r\n toDelete[toDelete.length] = itemID;\r\n }\r\n //Add strikethrough to item\r\n document.getElementById(itemID).style.textDecoration = \"line-through\";\r\n }\r\n}", "async purchase(quantity, price) {\n try {\n const symbol = this.symbol.meta;\n const tickSize = symbol.tickSize; //minimum price difference you can trade by\n const priceSigFig = symbol.priceSigFig;\n const quantitySigFig = symbol.quantitySigFig;\n const unconfirmedPurchase = await binance.order({\n symbol: this.config.tradingPair,\n side: 'BUY',\n quantity: (quantity && quantity.toFixed(quantitySigFig)) || this.calculateQuantity(),\n price: (price && price.toFixed(priceSigFig)) || (this.ticker.meta.bid + tickSize).toFixed(priceSigFig)\n });\n this.queue.push(unconfirmedPurchase);\n console.log('Purchasing... ', unconfirmedPurchase.symbol);\n } catch(err) {\n console.log('PURCHASE ERROR: ', err);\n return false;\n }\n }", "function GroceryItem(name, amount) \r\n{\r\n\tthis.name = name;\r\n\tthis.amount = amount;\r\n\tthis.purchased = false;\r\n\tthis.id = name + Math.floor((Math.random()*100)+1);\r\n}", "function buyThis(){\n inqurier.prompt([\n {\n message: \"What is the ITEM ID of the PRODUCT you would like to buy?\",\n name: \"id\"\n },\n { \n message: \"How many UNITS would you like to buy?\",\n name: \"purchase\",\n },\n ]).then(function(answer){\n //convert to integers\n var id = parseInt(answer.id);\n var quantity = parseInt(answer.purchase)\n\n //purcahse logic\n\n if (isNaN(answer.id) == true || id <=0 || id > resultArray.length) {\n //error message for invalid number entry \n console.log(\"Error: INVALID ITEM ID\")\n }\n else if (isNan(answer.purcahse) == true || quantity <= 0){\n //error for purchasing zero items\n console.log(\"You must order more than one\")\n }\n else if (quantity > resultArray[id -1].stock_quantity){\n //error for not enough stock \n console.log(\"WE ARE OUT OF THAT\")\n }\n else {\n //for a sucessful order\n purchaes.push(resultArray[id - 1].product_name);\n amounts.push(quantity);\n\n //total of curent order and total order\n var orderCost = quantity * resultArray[id-1].price;\n orderCost = parseFloat(orderCost.toFixed(2));\n total += orderCost;\n total = parseFloat(total.toFixed(2))\n\n sales = resultArray[id - 1].product_sales + orderCost;\n\n console.log(\"You have selected ITEM\" + id + \",\" + resultArray[id - 1].product_name + \".\" )\n console.log(\"This item costs $\" + resultArray[id - 1].price + \" per unit. You have ordered \" + quantity + \" units.\");\n console.log(\"This purchase costs $\" + orderCost + \".\");\n \n //display quantites and ordered as well as cost\n console.log(\"YOU HAVE ORDERED\")\n for (var i = 0; i < purchaes.length; i++){\n console.log(amounts[i] + \"|\" + purchaes[i]);\n }\n console.log(\"mYour total cost is \" + total + \".\");\n\n\t\t\t// query to update the database\n\t\t\tupdate = \"UPDATE products SET stock_quantity = \" + (resultArray[id - 1].stock_quantity - quantity) + \", product_sales = \" + sales + \" WHERE item_id = \" + id;\n\n\t\t\t// updates the database\n\t\t\tconnection.query(update, function (error, results, fields) {\n\t\t\t\tif (error) {\n\t\t\t\t\tconsole.log(error);\n\t\t\t\t};\n });\n keepGoing();\n }\n })\n}", "function orderItem() {\n // prompt for info about the item the user wants to purchase and the number of items\n inquirer\n .prompt([\n {\n name: \"item\",\n type: \"input\",\n message: \"What is the id of the item you would like to purchase? [Quit with Q]\"\n },\n {\n name: \"number\",\n type: \"input\",\n message: \"How many would you like? [Quit with Q]\",\n when: function (answers) {\n return answers.item !== \"Q\";\n },\n validate: function (value) {\n if (isNaN(value) === false || value === \"Q\") {\n return true;\n }\n return false;\n }\n }\n ])\n .then(function (answer) {\n // when finished prompting check if the store has enough items to sell \n if (answer.item === \"Q\" || answer.number === \"Q\") {\n console.log(\"Exiting the program...\");\n connection.end();\n process.exit();\n }\n else {\n connection.query(\"SELECT * FROM products WHERE ?\",\n [\n {\n item_id: answer.item\n }\n ]\n ,\n function (err, results) {\n if (err) throw err;\n //if the querying was successfull \n //check if there are enough items to sell to a customer \n var numItems = results[0].stock_quantity;\n var product = results[0].product_name;\n var itemNum = parseInt(answer.item);\n var userNum = parseInt(answer.number);\n if (userNum <= numItems) {\n //if the quantity is sufficient display the message and update the table\n var plural = userNum === 1 ? \"item\" : \"items\";\n console.log(\"Successfully purchased \" + answer.number + \" \" + product + \" \" + plural + \" for the sum of $\" + userNum * results[0].price);\n updateProduct(itemNum, numItems - userNum);\n\n }\n else {\n //display the message if the quantity is insufficient\n console.log(\"Sorry! Insufficient quantity in stock! Please change the order. \");\n //display the table of items on sale...\n displayProducts();\n }\n });\n }\n });\n}", "function buy()\n{\n\t//query the databse for all items being sold\n\tconnection.query(\"SELECT * FROM products\", function(err, res)\n\t{\n\t\t\n\t\tif(err) throw err;\n\n\t\t//Prompt the user to input data\n\t\tinquirer.prompt([\n\n\t\t\t{\n\t\t\t\t//Ask for id of the product the user wants to buy\n\t\t\t\tname: \"id\",\n\t\t\t\ttype: \"list\",\n\t\t\t\tchoices: function()\n\t\t\t\t{\n\t\t\t\t\tvar idChoiceArray = [];\n\n\t\t\t\t\tfor(var i = 0; i < res.length; i++)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t//push all items_ids into (idChoiceArray) in order to display all ids to choose from\n\t\t\t\t\t\t//NOTE: For rawlist cannot use type(INT) only (string) hence convert int to string by JSON.stringify\n\t\t\t\t\t\tidChoiceArray.push(JSON.stringify(res[i].item_id));\n\t\t\t\t\t}\n\n\t\t\t\t\t//display all item_id's to choose from\n\t\t\t\t\treturn idChoiceArray;\n\t\t\t\t},\n\t\t\t\tmessage: \"Enter the id of the product you want to purchase\"\n\t\t\t},\n\n\t\t\t{\n\t\t\t\t//Ask customer for how many units they'd like to buy\n\t\t\t\ttype: \"input\",\n\t\t\t\tname: \"quantity\",\n\t\t\t\tmessage: \"How many units would you like to buy?\"\n\t\t\t}\n\n\t\t\t]).then(function(answer)\n\t\t\t{\n\t\t\t\t//get the entire item object & store in variable\n\t\t\t\tvar chosenItem;\n\n\t\t\t\tfor(var i = 0; i < res.length; i++)\n\t\t\t\t{\n\t\t\t\t\t//if id == user id choice then store entire object\n\t\t\t\t\tif(res[i].item_id === parseInt(answer.id) )\n\t\t\t\t\t{\n\t\t\t\t\t\tchosenItem = res[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t\t//call the checkQuantity function & update the table if the quantity entered is sufficient\n\t\t\t\tcheckQuantity(chosenItem, answer, err);\n\n\t\t\t});\n\n\t});\n}", "function removeItemFromBasket(userID, itemID){\n Basket.collection.deleteOne({userID: userID, itemID: itemID});\n}", "function getAndSetSellingPriceforEachItem()\r\n{\r\n\tvar submittedItemRecord = 0;\r\n\r\n\ttry\r\n\t{\r\n\t\t//if items are available\r\n\t\tif(itemRecords != null)\r\n\t\t{\r\n\r\n\r\n\t\t\t//looping through each item record\r\n\t\t\tfor(var itemIndex = 0; itemIndex <= itemRecords.length; itemIndex++)\r\n\t\t\t{\r\n\t\t\t\titemCausedError = false;\r\n\t\t\t\tnlapiLogExecution('audit', 'context.getRemainingUsage()', context.getRemainingUsage());\r\n\r\n\t\t\t\tif(context.getRemainingUsage() <= scriptUsageLimit || (itemIndex == itemRecords.length))\r\n\t\t\t\t{\r\n\t\t\t\t\tnlapiLogExecution('audit', 'rescheduling context.getRemainingUsage()', context.getRemainingUsage());\r\n\r\n\t\t\t\t\t//reschedule this script.\r\n\t\t\t\t\tnlapiScheduleScript(context.getScriptId(), context.getDeploymentId());\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\titemIntID = itemRecords[itemIndex].getValue(itemColumns[0]);\t\t\t\t//getting Item's internal id\r\n\t\t\t\t\titemType = itemRecords[itemIndex].getRecordType();\t\t\t\t\t\t\t//getting Item's type\r\n\t\t\t\t\tbasePrice = itemRecords[itemIndex].getValue(itemColumns[1]);\t\t\t\t//getting Item's base price\r\n\t\t\t\t\titemName = itemRecords[itemIndex].getValue(itemColumns[2]);\t\t\t\t\t//getting Item's name\r\n\t\t\t\t\tvolumetricWeight = itemRecords[itemIndex].getValue(itemColumns[4]);\t\t\t//getting Item's volumetric weight\r\n\t\t\t\t\tdimension1 = itemRecords[itemIndex].getValue(itemColumns[6]);\t\t\t\t//getting Item's dimension1\r\n\t\t\t\t\tdimension2 = itemRecords[itemIndex].getValue(itemColumns[7]);\t\t\t\t//getting Item's dimension2\r\n\t\t\t\t\tdimension3 = itemRecords[itemIndex].getValue(itemColumns[8]);\t\t\t\t//getting Item's dimension3\r\n\r\n\t\t\t\t\t//if the item is a Kit/package (Reason : kit package has no standard average cost, hence a custom field has been used)\r\n\t\t\t\t\tif(itemType == 'kititem')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taverageCost = itemRecords[itemIndex].getValue(itemColumns[5]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse //if the item is not a kit/package \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taverageCost = itemRecords[itemIndex].getValue(itemColumns[3]);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(averageCost == '')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taverageCost = 0.1;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//The item price calculation is done only for following item types \r\n\t\t\t\t\t//(Reason : the multi - currency,multi - pricing and quantity pricing is affecting the following types of items )\t\t\t\r\n\t\t\t\t\t//switch (itemType) \r\n\t\t\t\t\t//{\r\n\t\t\t\t\t//case 'inventoryitem':\r\n\t\t\t\t\t//case 'kititem':\r\n\t\t\t\t\t//case 'noninventoryitem':\r\n\t\t\t\t\t//\tcase 'otherchargeitem':\r\n\t\t\t\t\t//case 'paymentitem':\r\n\r\n\t\t\t\t\t// NOTE : (basePrice != null) is not working\r\n\t\t\t\t\t//if those records are not empty (NOTE : Without those the SOAP request will not work)\r\n\t\t\t\t\tif(basePrice != '' && (dimension1 != '' && dimension2 != '' && dimension3 != '' && volumetricWeight != '')) \t\t\t\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbasePrice = convertToFloat(basePrice);\t\t\t\t//converting the base price to float value with two decimal points\r\n\r\n\t\t\t\t\t\titemRecord = nlapiLoadRecord(itemType,itemIntID);\t//loading the particular item record\r\n\r\n\t\t\t\t\t\tgetPriceLevelAndCurrencyRateForEachDestination();\t//calling the getPriceLevelAndCurrencyRateForEachDestination function\r\n\r\n\t\t\t\t\t\t//if no error in creating shipping lookup record\r\n\t\t\t\t\t\tif(submittedShippingLookupRecord >0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//update the field\r\n\t\t\t\t\t\t\titemRecord.setFieldValue('custitem_itemprice_lastupdated', nsToday);\r\n\t\t\t\t\t\t\titemCausedError = false;\r\n\t\t\t\t\t\t\t//submitting the item record after setting all the item prices for each destination and for particular price levels \r\n\t\t\t\t\t\t\tsubmittedItemRecord = nlapiSubmitRecord(itemRecord);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\titemCausedError = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\titemCausedError = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//calling updateItemErrorFlag function\r\n\t\t\t\t\tupdateItemErrorFlag();\r\n\r\n\t\t\t\t\t//\tbreak;\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\t}\r\n\tcatch(e)\r\n\t{\r\n\t\terrorHandler(\"getAndSetSellingPriceforEachItem : \" , e);\r\n\t} \r\n\r\n}", "function promptUserPurchase() {\n inquirer.prompt([\n {\n name: \"itemID\",\n message: \"What is the id number of the item you wish to purchase?\"\n },\n {\n name: \"quantity\",\n message: \"How many do you wish to buy?\"\n }\n ]).then(function (answers) {\n if ((answers.itemID === \"x\") || (answers.quantity === \"x\")) {\n process.exit();\n }\n var purchaseItem = answers.itemID;\n var purchaseQty = answers.quantity;\n checkStockQuantity(purchaseItem, purchaseQty);\n });\n}", "function purchase() {\n con.query(\"SELECT * FROM products\", function(err, res) {\n if (err) throw err;\n inquirer.prompt([\n {\n name: \"choice\",\n type: \"input\",\n message: \"Input ID of item you would like to purchase.\",\n validate: function(value) {\n\n //Validates if input is a number\n var pass = value.match(/\\d/g);\n if (pass) {\n return true;\n }\n return \"Please enter a number ID\" \n }\n },\n {\n name: \"quantity\",\n type: \"input\",\n message: \"How many would you like to purchase?\",\n validate: function(value) {\n\n //Validates if input is a number\n var pass = value.match(/\\d/g);\n if (pass) {\n return true;\n }\n return \"Please enter a number quantity\" \n }\n }\n ])\n .then(function(ans) {\n\n //Traverses the array to locate the item the user selected\n var chosenItem;\n for (var i = 0; i < res.length; i++) {\n if (ans.choice == res[i].item_id) {\n chosenItem = res[i];\n console.log(\"You have chosen \" + ans.quantity + \" of \" + chosenItem.product_name);\n }; \n };\n\n //If in stock, fulfills customer's request\n if (chosenItem.stock_quantity >= ans.quantity) {\n console.log(\"Your order is being processed!\")\n\n //Calculates new stock of product selected\n updatedStock = chosenItem.stock_quantity - ans.quantity;\n\n //Updates MySql with new stock quantity\n con.query(\"UPDATE products SET ? WHERE ?\",\n [\n {\n stock_quantity: updatedStock\n },\n {\n item_id: chosenItem.item_id\n }\n ],\n function(err) {\n if (err) throw err;\n console.log(\"Purchase successful!\");\n\n //Shows customer cost of purchase(s)\n console.log(\"Your total comes out to \" + (ans.quantity * chosenItem.price) + \"$.\");\n\n //Prompts the user to continue shopping or not\n inquirer.prompt([\n {\n name: \"continue\",\n type: \"confirm\",\n message: \"Do you want you to continue shopping?\"\n }\n ])\n .then(function(ans) {\n if (ans.continue == true) {\n purchase();\n } else if (ans.continue == false) {\n console.log(\"Come back soon!\");\n con.end();\n }\n })\n })\n\n //If not in stock, notifies customer and ends transaction\n } else if (chosenItem.stock_quantity <= ans.quantity) {\n console.log(\"Sorry, Insufficient Quantity.\")\n\n //Prompts the user to continue shopping or not\n inquirer.prompt([\n {\n name: \"continue\",\n type: \"confirm\",\n message: \"Do you want you to continue shopping?\"\n }\n ])\n .then(function(ans) {\n if (ans.continue == true) {\n purchase();\n } else if (ans.continue == false) {\n console.log(\"Come back soon!\");\n con.end();\n }\n })\n };\n });\n });\n}", "function checkItem(itemID, numUnits) {\n // console.log(\"Running checkItem! Looking for item #: \"+ itemID);\n connection.query('SELECT * FROM bamazon.products;', function (err, results, fields) {\n // get the information of the chosen item\n var itemIdInt = parseInt(itemID);\n var numUnitsInt = parseInt(numUnits);\n var chosenItem;\n for (var i = 0; i < results.length; i++) {\n // console.log(results[i].item_id);\n // console.log(itemIdInt);\n if (results[i].item_id === itemIdInt) {\n chosenItem = results[i];\n // console.table(chosenItem);\n }\n }\n\n if (chosenItem.stock_quantity < numUnitsInt) {\n console.log(\"Insufficient quantity in stock!\")\n prompt();\n } else {\n fulfillOrder(chosenItem, numUnitsInt);\n } \n\n });\n}", "function handleDelete(key){\n let quantity = tableItems[currentTableId - 1].itemsOrdered[key];\n delete tableItems[currentTableId - 1].itemsOrdered[key];\n // now update total bill\n let amountToBeDeducted = parseFloat(menuItems[key - 1].cost) * quantity;\n tableItems[currentTableId - 1].totalBill -= amountToBeDeducted;\n // reduce the total items\n tableItems[currentTableId - 1].itemCount -= quantity;\n updateModalContents();\n updateTable();\n}", "function purchase() {\n inquirer.prompt([{\n name: 'id',\n type: 'input',\n message: \"What is the ID of the item you would like to purchase? [Quit with Q]\"\n }, {\n name: 'quantity',\n type: 'input',\n message: \"How many would you like? [Quit with Q]\"\n }])\n //product chosen\n .then(function (answer) {\n console.log(answer);\n\n connection.query(\"SELECT * FROM products WHERE item_id = ? \",\n [answer.id],\n function (err, res) {\n if (err) throw err;\n console.log(res);\n var chosenItem = res[0]; \n\n //update product quantity\n if (chosenItem.stock_quantity < parseInt(answer.number)) {\n connection.query(\"UPDATE products SET ? WHERE ?\", [{\n stock_quantity: number\n },\n {\n item_id: chosenItem\n }\n ],\n function (error) {\n if (error) throw err;\n console.log(\"Purchased!\");\n }\n );\n } else {\n console.log(\"Sorry, item not available. Select another item.\");\n }\n });\n }, )\n}", "function purchase(){\n\tlocation.href = base_url + \"purchase\";\n}", "function transaction() {\n\n // Queries the bamazon db and selects all fields from the products table\n connection.query(\"SELECT * FROM products\", function (err, results) {\n if (err) throw err;\n\n // Prompt that will display everything currently in inventory and then asks the use to select the Item ID for the desired product\n inquirer\n .prompt([\n {\n name: \"choice\",\n type: \"rawlist\",\n choices: function () {\n var idArray = [];\n console.log(\"\\n\\n-------------------------------\\n Products Currently for sale\\n-------------------------------\\n\");\n for (var i = 0; i < results.length; i++) {\n console.log(\"==================================================\")\n console.log(\" Item ID: \" + idArray.push(results[i].item_id));\n console.log(\" Product Name: \" + results[i].product_name);\n console.log(\" Category: \" + results[i].department_name);\n console.log(\" Price: $\" + results[i].price);\n console.log(\" Current Stock: \" + results[i].stock_quantity);\n console.log(\"==================================================\\n\")\n }\n return idArray;\n },\n message: \"Enter the Item ID number of the product you would like to buy.\"\n },\n\n // Asks the user the quantity they would like to purchase\n {\n name: \"quantity\",\n type: \"input\",\n message: \"How many would you like to buy?\"\n }\n ])\n\n .then(function (answer) {\n\n // Defines variables for the product and it's table values\n var arrayNum = answer.choice - 1;\n var price = round(results[arrayNum].price, 2)\n var total = round(answer.quantity * price, 2)\n var itemID = results[arrayNum].item_id;\n var prodName = results[arrayNum].product_name;\n var quantityToBuy = answer.quantity;\n var stockQuantity = results[arrayNum].stock_quantity;\n\n // Checks to see if there is enough inventory stock to fullfill the user's purchase\n if (quantityToBuy > stockQuantity) {\n console.log(\"Insufficient quantity!\");\n }\n\n else {\n // Variable that holds the updated inventory stock after the purchase\n var updatedQuantity = stockQuantity - quantityToBuy;\n\n // Updates the products table and sets the stock_quantity value to the updated quantity \n // where the item_id is the number the user selected\n connection.query(\n \"UPDATE products SET ? WHERE ?\",\n [\n {\n stock_quantity: updatedQuantity\n },\n {\n item_id: itemID\n }\n ],\n function (error) {\n if (error) throw err;\n\n // Shows the user what they purchased and the amount.\n console.log(\"\\nItem(s) Purchased!\");\n console.log(\"==================================\\n Item ID: \" + itemID + \"\\n Product: \" + prodName + \"\\n Price: $\" + price + \"\\n Quantity: \"\n + quantityToBuy + \"\\n Total: $\" + total + \"\\n==================================\");\n }\n );\n }\n\n // Closes connection to bamazon db\n connection.end();\n });\n });\n}", "function userPurchase() {\n inquirer.prompt([\n {\n name: \"itemId\",\n message: \"ENTER THE ID OF THE ITEM YOU WISH TO PURCHASE\",\n type: \"input\",\n validate: function (value) {\n if (isNaN(value) === true || value == 0) {\n return false;\n }\n return true;\n }\n },\n {\n name: \"units\",\n message: \"HOW MANY UNITS WOULD YOU LIKE TO PURCHASE? (TYPE Q TO QUIT)\",\n type: \"input\"\n }\n ]).then(function (answer) {\n // In case the user changed their mind, they can type 'q' and it'll take them back to the starting prompt.\n if (answer.units.toLowerCase() === \"q\") {\n askUser();\n }\n else {\n // Converting the users input into numbers so it can be compared to the table's numerical values.\n answer.itemId = parseInt(answer.itemId);\n answer.units = parseInt(answer.units);\n\n var query = \"SELECT * FROM products WHERE item_id=?\";\n connection.query(query, answer.itemId, function (err, results) {\n if (err) throw err;\n\n // If there isn't as much of the product in stock as the user wanted to order, display message to them.\n if (answer.units > results[0].stock_quantity) {\n console.log(\"\\nNOT ENOUGH OF '\" + results[0].product_name + \"' IN STOCK!\\n\");\n askUser();\n } else {\n // If there is enough of the product in stock, run the function that handles updating the table data.\n // Passing the relevant data as arguements.\n validQuantity(answer.itemId, answer.units, results[0]);\n }\n });\n }\n });\n}", "sellItem(req, res, next) {\n const newItem = req.body;\n delete newItem.categories;\n const sellerId = (req.user ? req.user.user.id : 39);\n\n newItem.images = JSON.stringify(newItem.images);\n console.log('Creating new item,', newItem);\n db.items.create(newItem)\n .then(product => {\n db.items.getById(product[0])\n .then((result) => {\n const id = result[0].id;\n const transaction = { item_id: id, buyer_id: null, seller_id: sellerId };\n res.json(result[0]);\n return db.transactions.create(transaction);\n })\n .catch(e => { console.log('Error getting item, ', e); next(e); });\n })\n .catch(e => { console.log('Error inserting item, ', e); next(e); });\n }", "function remove_item_from_items_database( item_url, item_slug, item_type ) {\n\n\t/* Action */\n\n\tjQuery(document).trigger('remove_item_from_items_database');\n\t\n\t/* Callbacks */\n\t\n\tvar on_success = function ( context ) {\n\t};\n\t\n\tvar on_error = function ( context ) {\n\t};\n\n\t/* Request */\n\n\tInDB.trigger( 'InDB_do_row_delete', { 'store': 'items', 'key': item_url, 'on_success': on_success, 'on_error': on_error } );\n\n}", "function removeFromOrder(item) {\n var table = getCurrentTable();\n if (table === \"error\") return;\n var key = getIdFromName(item.split(':')[0]);\n var dic = table.item_id;\n if (dic[key] == 1) {\n delete table.item_id[key];\n } else {\n table.item_id[key]--;\n }\n showOrder(currentTableID);\n return;\n}", "static sellItem(data = null, itemID) {\n if (data !== null) {\n if (!data.error) {\n swal('Success!', 'Sucessfully sold your Item!', 'success')\n equipment.reload();\n } else {\n swal('Error!', data.error_msg, 'error');\n equipment.reload();\n }\n } else {\n $(\".loading-screen\").show();\n let params = {\n 'ITEM_ID': itemID,\n };\n equipment.sendRequest('sellItem', 'sell_item', params);\n }\n }", "function purchasePrompt() {\n\n inquirer.prompt([{\n\n type: \"confirm\",\n name: \"continue\",\n message: \"Would you like to purchase an item?\",\n default: true\n\n }]).then(function (user) {\n if (user.continue === true) {\n purchase();\n } else {\n console.log(chalk.green.bold(\"Thank you! Come back soon! Just enter: node bamazonCustomer.js\"));\n connection.end();\n }\n });\n}", "function makePurchase(){\n // ask the user which product they would like to buy and the number of units they would like to purchase\n inquirer.prompt([\n {\n name: \"productId\",\n type: \"input\",\n message: \"Which product would you like to purchase? (Please enter the product ID number.)\",\n validate: function(value) {\n if (isNaN(value) === false) {\n return true;\n }\n return false;\n }\n },\n {\n name: \"productQuantity\",\n type: \"input\",\n message: \"How many units of this product would you like to purchase?\",\n validate: function(value) {\n if (isNaN(value) === false) {\n return true;\n }\n return false;\n }\n }\n ]).then(function(answers){\n\n // begin query to the bamazon database \n connection.query(\"SELECT item_id, stock_quantity, price FROM products WHERE ?\", \n {\n item_id: answers.productId\n },\n function(err, data){\n if (err) throw err;\n\n // check if the product ID entered actually matches one that is available \n var productExists = false;\n\n // loop through the result\n for (var i = 0; i < data.length; i++){\n\n // if the product exists\n if (data[i].item_id == answers.productId){\n // change the value of productExists to true \n productExists = true;\n\n // check if there is sufficient quantity to make the purchase \n if (data[i].stock_quantity >= parseInt(answers.productQuantity)){\n \n // if true, return the price to the user \n console.log(\"Great! \\nYour total will be: \\n $\" + calculatePrice(parseInt(answers.productQuantity), data[i].price) + \"\\nThank you for your purchase.\");\n\n // update product quantity in the database to reflect the purchase \n connection.query(\"UPDATE products SET ? WHERE ?\", \n [\n {stock_quantity: data[i].stock_quantity - answers.productQuantity},\n\n {item_id: answers.productId}\n ], \n function (err) {\n if (err) throw err;\n }\n )\n\n }else{\n // return message to user if there is an insufficient quantity of the product available \n console.log(\"Sorry, insufficient quantity available.\")\n }\n }\n }\n\n // if the product does not exist, tell the user \n if(productExists === false){\n console.log(\"Oops, please enter a valid product ID number.\")\n }\n \n // run the showProducts function to begin the program again\n showProducts();\n })\n })\n}", "function delItemFromJson(itemName, sellerName) {\n // console.log(\"======\")\n // console.log(itemName);\n // console.log(sellerName);\n for ( let i = 0; i < cart.length; i++ ) {\n if ( cart[i][\"name\"] == sellerName) {\n var order = cart[i][\"order\"];\n // console.log(order);\n for ( let j = 0; j < order.length; j++ ) {\n // console.log(order[i]);\n if (order[j][\"name\"] == itemName) {\n order.splice(j, 1);\n j--;\n }\n }\n if (order.length == 0) {\n cart.splice(i, 1);\n i--;\n }\n }\n }\n localStorage.setItem(\"cart\", JSON.stringify(cartObj));\n // console.log(cart);\n buildCartList();\n}", "function addItemToCart(user, item) {}", "function customerBuy(){\n var productInfo = {\n properties: {\n item_id: {description: ' Chose by typing ID'},\n stock_quantity: {description: ' Quantity: How many items? '}\n },\n };\n \n prompt.start();\n prompt.get(productInfo, function (err, res){\n var purchase = {\n item_id: res.item_id,\n stock_quantity: res.stock_quantity\n };\n\n transaction.push(purchase);\n \n // Take a look at the table and see if the quantity ordered is less than the quantity on hand and confirm order\n connection.query('SELECT * FROM products WHERE item_id=?', transaction[0].item_id, function(err, res){\n if (res[0].stock_quantity >= transaction[0].stock_quantity) { \n // Repeat order back customer at console window\n console.log(\"Your order is \" + res[0].product_name); \n console.log(\"TOTAL = $\" + (transaction[0].stock_quantity*res[0].price));\n stock_quantity_left = res[0].stock_quantity - transaction[0].stock_quantity;\n connection.query('UPDATE products SET stock_quantity ='+ stock_quantity_left + ' WHERE item_id ='+ transaction[0].item_id, function(err, res){\n // Give order confirmation message\n console.log(\"Your order has been confirmed. Thank you.\");\n connection.end();\n });\n // If the order exceeds the amount on hand, inform customer it is out of stock\n } else {\n console.log(\"Our apologies but we are currently out of stock in that item....we'll be back soon!\");\n connection.end();\n }\n });\n });\n}", "function buyItem () {\n inquirer.prompt([\n {\n type:\"input\",\n name:\"itemSelected\",\n message:\"Please type an item id to purchase.\"\n },\n {\n type:\"input\",\n name:\"quantity\",\n message:\"How many would you like to purchase?\"\n }\n ]).then(function (results) {\n itemSelected = results.itemSelected;\n quantity = Number(results.quantity);\n \n if (itemSelected > 10) {\n console.log(\"Invalid item, please select a new item.\")\n buyItem();\n }\n \n checkItemStock();\n });\n}", "function totalPurchaseCost(item, quantity, coins){\n\tvar storeItems = storeInfo.getItems();\n\tvar cost;\n\tfor (var storeItem in storeItems){\n\t\tif (storeItem.name == item)\n\t\t\tcost = storeItem.price;\n\t}\n\tif (coins >= quantity * cost)\n\t\treturn quantity * cost;\n\telse \n\t\treturn false;\n}", "function RemoveItem(item){\n var index = basket.indexOf(item);\n if (index > -1) {\n console.log(\"Taking \" + item.Name + \" out of the basket!\");\n basket.splice(index, 1);\n return;\n }\n Console.log(item.Name + \" is not in the basket!\");\n}", "function boughtItem(BoughtItem){\n var chosenBoughtList = localStorage.getItem(\"chosenBoughtList\");\n var boughtList = localStorage.getItem(chosenBoughtList);\n if(boughtList == null){\n boughtList = [];\n }\n else{\n boughtList = JSON.parse(boughtList);\n boughtList = convertObjArrayToItemArray(boughtList);\n }\n var chosenList = localStorage.getItem(\"chosenList\");\n var shoppingList = localStorage.getItem(chosenList);\n if(shoppingList != null){\n shoppingList = JSON.parse(shoppingList);\n shoppingList = convertObjArrayToItemArray(shoppingList);\n }\n for (var i = 0; i < shoppingList.length; i++){\n if(BoughtItem[0] == shoppingList[i].name){\n var tempBoughtItem = shoppingList[i];\n shoppingList.splice(i, 1);\n boughtList.push(tempBoughtItem);\n }\n }\n localStorage.setItem(chosenBoughtList, JSON.stringify(boughtList));\n localStorage.setItem(chosenList, JSON.stringify(shoppingList));\n}", "function removeItem(itemName) {\n order.subtotal = round(order.subtotal - order.items[itemName].price);\n order.tax = round(order.subtotal * 0.1);\n order.total = round(order.subtotal + order.tax + order.delivery);\n if (order.items[itemName].count > 1) {\n order.items[itemName].count -= 1;\n } else {\n delete order.items[itemName];\n }\n let restaurantDiv = document.getElementById(\"restaurant\");\n // Generate order summary div \n restaurantDiv.replaceChild(createOrderDiv(restaurantData.menu), document.getElementById(\"restaurant\").lastChild);\n}", "function decrease() {\n var holdCount2 = count - 1;\n if(holdCount2 >= 0){\n setCount(holdCount2);\n var holdItem2 = props;\n window.localStorage.setItem(JSON.stringify(holdItem2), holdCount2);\n cartContext.setCartTotal(calTotal());\n }else{\n console.log(\"You can't order negative amount of products\");\n }\n \n }" ]
[ "0.778736", "0.778736", "0.778736", "0.778736", "0.778736", "0.778736", "0.7162589", "0.646271", "0.6375092", "0.6323577", "0.6308525", "0.6232949", "0.61997014", "0.60794747", "0.60682166", "0.60376316", "0.60256445", "0.5989342", "0.59829056", "0.59819", "0.5978416", "0.5975733", "0.59582293", "0.59096956", "0.58786905", "0.58699524", "0.5857064", "0.5833413", "0.582577", "0.5823727", "0.5802592", "0.5798928", "0.57951194", "0.5777031", "0.57619184", "0.57554185", "0.5742361", "0.57285875", "0.5717513", "0.56940854", "0.5690369", "0.56886846", "0.56720984", "0.5653795", "0.56508803", "0.5645936", "0.5644084", "0.5637841", "0.560285", "0.5596214", "0.55940723", "0.55814785", "0.5575556", "0.5556308", "0.5534381", "0.55335635", "0.5523155", "0.552113", "0.5520477", "0.5511601", "0.55113393", "0.5504077", "0.55029136", "0.55005836", "0.54967517", "0.54912794", "0.54900724", "0.5468978", "0.54671687", "0.5459383", "0.54534984", "0.5452531", "0.54451585", "0.54388285", "0.5436888", "0.542207", "0.5419984", "0.5409255", "0.5408795", "0.54059744", "0.53989935", "0.5393393", "0.5391537", "0.5389278", "0.5388837", "0.5387037", "0.5382708", "0.537298", "0.53713167", "0.5363773", "0.5361186", "0.53561133", "0.53555995", "0.53524816", "0.5351911", "0.5349741", "0.534927", "0.53483814", "0.5347522", "0.53448296", "0.534151" ]
0.0
-1
==================================================================================================================================================== RECALCULATE INVENTORY FUNCTION ====================================================================================================================================================
function calculateInventory() { // var query = "UPDATE products SET stock_quantity = quantity WHERE item_id = productId"; var query = "UPDATE products SET stock_quantity = stock_quantity-" + quantity + " WHERE item_id = " + productId; connection.query(query, function (err, res) { }) setTimeout(viewInventory, 1500); setTimeout(purchaseQuestions, 2000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "checkout(Inventory) {\n let total = 0;\n this.items.forEach(i => {\n let [ sku, name, quantity, price ] = Inventory.get(i[0]);\n console.log(`${name} ${i[1]} x ${price} = ${i[1] * price}`);\n total += i[1] * price;\n\n // update Inventory state\n Inventory.items = Inventory.items.map(item => {\n if (item[0] === sku) {\n item[2] -= i[1];\n }\n return item;\n });\n });\n console.log(\"---------------------------\");\n console.log(`TOTAL: ${total}`);\n console.log(\"---------------------------\\n\");\n\n this.items = [];\n }", "function updateInventory(arr1, arr2) {\n // All inventory must be accounted for or you're fired!\n var j;\n var curItem = [];\n var newItem = [];\n \n //push the names of the current inventory item into a new array\n for (var i = 0; i < arr1.length; i++){\n curItem.push(arr1[i][1]);\n }\n //push the names of the new inventory items into a new array\n for ( i = 0; i < arr2.length; i++){\n newItem.push(arr2[i][1]);\n }\n \n //update the quantity of existing items in the curInv\n for ( i = 0; i < arr1.length; i++){ \n for (j = 0; j < arr2.length; j++){\n if(arr2[j][1].indexOf(arr1[i][1]) > -1){\n arr1[i][0] = arr1[i][0] + arr2[j][0];\n } \n }\n }\n \n //push new items into curInv\n newItem.map(function(item){\n if (curItem.indexOf(item) == -1){\n var index = newItem.indexOf(item);\n arr1.push(arr2[index]);\n }\n });\n \n //sort the array alphabetically\n arr1.sort(function(currentItem, nextItem){\n return currentItem[1] > nextItem[1] ? 1 : -1;\n });\n \n return arr1;\n}", "inventoryValue() {\n return this.inventory.reduce((total, book) => total + book.price, 0);\n }", "function calculationInCRV() {\n\n\tfor (rowVal = 1; rowVal <= document.getElementById('poListSize').value; rowVal++) {\n\t\tif (document.getElementById('idItem' + rowVal)) {\n\t\t\tif (document.getElementById('idItem' + rowVal).value.trim() != 0) {\n\t\t\t\tvar discount = parseFloat(0);\n\t\t\t\tvar tax = parseFloat(0);\n\n\t\t\t\t// Calculation of Amount for the Current Row (rowVal)\n\t\t\t\t// var added by shailesh\n\t\t\t\t// var\n\t\t\t\t// grn_qty=isNaN(parseFloat(document.getElementById('grn_qty'+rowVal).value))==true?\"0\":parseFloat(document.getElementById('grn_qty'+rowVal).value);\n\t\t\t\tvar quantity = isNaN(parseFloat(document\n\t\t\t\t\t\t.getElementById('quanRec' + rowVal).value)) == true ? \"0\"\n\t\t\t\t\t\t: parseFloat(document\n\t\t\t\t\t\t\t\t.getElementById('quanRec' + rowVal).value);\n\n\t\t\t\t/*\n\t\t\t\t * if(grn_qty<quantity){ alert(\"Received Quantity can't be\n\t\t\t\t * greater then Actual Po Quantity in Row\"+rowVal);\n\t\t\t\t * document.getElementById('quanRec'+rowVal).focus(); return\n\t\t\t\t * false; }\n\t\t\t\t */\n\t\t\t\t// var id_item=document.getElementById('idItem'+rowVal).value;\n\t\t\t\t// arrayOfItems1[rowVal]=rowVal+\",\"+id_item+\",\"+quantity+\",\"+grn_qty;\n\t\t\t\t// alert(arrayOfItems1[rowVal])\n\t\t\t\t// end of code by shailesh\n\t\t\t\tvar freeQty = isNaN(parseFloat(document\n\t\t\t\t\t\t.getElementById('freeQty' + rowVal).value)) == true ? \"0\"\n\t\t\t\t\t\t: parseFloat(document\n\t\t\t\t\t\t\t\t.getElementById('freeQty' + rowVal).value);\n\t\t\t\tvar ratePerMdq = isNaN(parseFloat(document\n\t\t\t\t\t\t.getElementById('ratePerMdq' + rowVal).value)) == true ? \"0\"\n\t\t\t\t\t\t: parseFloat(document.getElementById('ratePerMdq'\n\t\t\t\t\t\t\t\t+ rowVal).value);\n\t\t\t\t// var dispencingPrice =\n\t\t\t\t// isNaN(parseFloat(document.getElementById('dispencingPrice'+rowVal).value))==true?\"0\":parseFloat(document.getElementById('dispencingPrice'+rowVal).value);\n\t\t\t\t// var mrp =\n\t\t\t\t// isNaN(parseFloat(document.getElementById('mrp'+rowVal).value))==true?\"0\":parseFloat(document.getElementById('mrp'+rowVal).value);\n\n\t\t\t\tvar discount = isNaN(parseFloat(document\n\t\t\t\t\t\t.getElementById('discountVar' + rowVal).value)) == true ? \"0\"\n\t\t\t\t\t\t: parseFloat(document.getElementById('discountVar'\n\t\t\t\t\t\t\t\t+ rowVal).value);\n\t\t\t\tvar tax = isNaN(parseFloat(document.getElementById('taxVar'\n\t\t\t\t\t\t+ rowVal).value)) == true ? \"0\" : parseFloat(document\n\t\t\t\t\t\t.getElementById('taxVar' + rowVal).value);\n\n\t\t\t\tvar total = parseFloat(0);\n\t\t\t\tvar disc = parseFloat(0);\n\t\t\t\tvar amountAfterdiscount = parseFloat(0);\n\t\t\t\tvar taxAmount = parseFloat(0);\n\t\t\t\tvar netAmount = parseFloat(0);\n\n\t\t\t\ttotal = parseFloat(quantity) * parseFloat(ratePerMdq);\n\t\t\t\tdisc = total * (discount / 100);\n\t\t\t\tamountAfterdiscount = total - disc;\n\t\t\t\ttaxAmount = (amountAfterdiscount) * (tax / 100);\n\t\t\t\tvar vatApplicable = document.getElementById(\"vatApplicable\");\n\n\t\t\t\tif (vatApplicable.checked) {\n\t\t\t\t\tnetAmount = amountAfterdiscount;\n\n\t\t\t\t} else {\n\t\t\t\t\tnetAmount = amountAfterdiscount + taxAmount;\n\t\t\t\t}\n\t\t\t\tdocument.getElementById('amtVar' + rowVal).value = roundVal(\n\t\t\t\t\t\tnetAmount, 2);\n\t\t\t\tdocument.getElementById('taxAmount' + rowVal).value = roundVal(\n\t\t\t\t\t\ttaxAmount, 2);\n\t\t\t\tdocument.getElementById('discountAmount' + rowVal).value = roundVal(\n\t\t\t\t\t\tdisc, 2);\n\n\t\t\t\t// Calculating converted Stock as Per Formula & Conversion Login\n\t\t\t\tvar formula = isNaN(parseFloat(document\n\t\t\t\t\t\t.getElementById('formula' + rowVal).value)) == true ? \"0\"\n\t\t\t\t\t\t: parseFloat(document\n\t\t\t\t\t\t\t\t.getElementById('formula' + rowVal).value);\n\t\t\t\tvar conversionFactor = isNaN(parseFloat(document\n\t\t\t\t\t\t.getElementById('conversionFactor' + rowVal).value)) == true ? \"0\"\n\t\t\t\t\t\t: parseFloat(document.getElementById('conversionFactor'\n\t\t\t\t\t\t\t\t+ rowVal).value);\n\t\t\t\t// var mdq =\n\t\t\t\t// isNaN(parseFloat(document.getElementById('mdq'+rowVal).value))==true?\"0\":parseFloat(document.getElementById('mdq'+rowVal).value);\n\t\t\t\t// var mdq =\n\t\t\t\t// isNaN(parseFloat(document.getElementById('mdq'+rowVal).value))==true?\"1\":parseFloat(document.getElementById('mdq'+rowVal).value);\n\t\t\t\tvar mdq = 1;\n\t\t\t\t/*\n\t\t\t\t * mdq=1 code by mukesh no idia about mdq so i put mdq=1 date 15\n\t\t\t\t * oct 2010\n\t\t\t\t */\n\t\t\t\tvar convertedStock = parseFloat(0);\n\t\t\t\tquantity = parseFloat(quantity) + parseFloat(freeQty);\n\t\t\t\tif (formula != 0 && conversionFactor != 0 && mdq != 0) {\n\t\t\t\t\tif (formula == 1) {\n\t\t\t\t\t\tconvertedStock = (parseFloat(quantity) * parseFloat(mdq))\n\t\t\t\t\t\t\t\t/ parseFloat(conversionFactor);\n\t\t\t\t\t} else if (formula == 2) {\n\t\t\t\t\t\tconvertedStock = parseFloat(quantity);\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById('convertedStock' + rowVal).value = parseFloat(convertedStock);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t/*\n\t * for(var x=0;x<arrayOfItems1.length;x++) { var\n\t * content=arrayOfItems1[x].split(\",\");\n\t * \n\t * for(var z=0;z<arrayOfItems1.length;z++) { if(x!=z) { var\n\t * secondContent=arrayOfItems1[z].split(\",\");\n\t * if(parseInt(content[1])==parseInt(secondContent[1])) {\n\t * arrayOfItems1[x]=content[0]+\",\"+content[1]+\",\"+(parseFloat(content[2])+parseFloat(secondContent[2]))+\",\"+content[3]; } } } }\n\t * for(var y=0;arrayOfItems1.length;y++){ var u=arrayOfItems1[y].split(\",\");\n\t * if(parseFloat(u[2])>parseFloat(u[3])){ alert(\"items for type at\n\t * Row\"+u[0]+\" cant be greater than Po Qnty.\"); return false;\n\t * } }\n\t *///\n\tcheakForRecdQty();\n\tcalculateGRNValue();\n}", "function ReEvaluateItemCost() {\n\n var rowCount = $('#itemList').rowCount();\n\n var compannyGstin = $(\"[id$=compannyGstin]\").val().substring(1, 2);\n var billToClientGSTIN = $(\"[id$=billToClientGSTIN]\").val().substring(1, 2);\n\n if (compannyGstin !== \"\" && billToClientGSTIN !== \"\") {\n if (compannyGstin === billToClientGSTIN) {\n var cumulativeintraStateCGST = 0;\n var cumulativeintraStateSGST = 0;\n var cumulativeintraStateCost = 0;\n var finalintraStateCost = 0;\n for (var i = 1; i <= rowCount; i++) {\n var intraStategst = $('#itemGST' + i).val();\n var intraStatesgst = intraStategst / 2;\n var intraStatecgst = intraStategst / 2;\n\n var intraStateamount = $('#itemAmount' + i).val();\n var intraStatesgstperc = (intraStatesgst / 100) * intraStateamount;\n var intraStatecgstperc = (intraStatecgst / 100) * intraStateamount;\n\n cumulativeintraStateCGST += +intraStatecgstperc;\n cumulativeintraStateSGST += +intraStatesgstperc;\n cumulativeintraStateCost += +intraStateamount;\n finalintraStateCost += +(cumulativeintraStateCGST + cumulativeintraStateSGST + cumulativeintraStateCost);\n }\n\n var totalCostHtmlContent = \"<tr>\";\n totalCostHtmlContent += \"<td id=\\\"intraStateTotalAmount\\\">\" + cumulativeintraStateCost + \"</td>\";\n totalCostHtmlContent += \"<td id=\\\"intraStateTotalCGST\\\">\" + cumulativeintraStateCGST + \"</td>\";\n totalCostHtmlContent += \"<tdid=\\\"intraStateTotalSGST\\\">\" + cumulativeintraStateSGST + \"</td>\";\n totalCostHtmlContent += \"<td id=\\\"intraStateFinalAmount\\\">\" + finalintraStateCost + \"</td>\";\n totalCostHtmlContent += \"</tr>\";\n\n $(\"[id$=amoutCalculationInterState]\").hide();\n $(\"[id$=amoutCalculationIntraState]\").show();\n $(\"[id$=amoutCalculationIntraState]\").closest('tr').remove();\n $(\"[id$=amoutCalculationIntraState] tbody\").append(totalCostHtmlContent);\n }\n else {\n var cumulativeinterStateGST = 0;\n var cumulativeinterStateCost = 0;\n var finalinterStateCost = 0;\n for (var j = 1; j <= rowCount; j++) {\n var interStategst = $('#itemGST' + j).val();\n var interStateamount = $('#itemAmount' + j).val();\n var interStategstperc = (interStategst / 100) * interStateamount;\n\n cumulativeinterStateGST += +interStategstperc;\n cumulativeinterStateCost += +interStateamount;\n finalinterStateCost += +(cumulativeinterStateGST + cumulativeinterStateCost);\n }\n var totalCostHtmlContent2 = \"<tr>\";\n totalCostHtmlContent2 += \"<td id=\\\"interStateTotalAmount\\\">\" + cumulativeinterStateCost + \"</td>\";\n totalCostHtmlContent2 += \"<td id=\\\"intraStateTotalGST\\\">\" + cumulativeinterStateGST + \"</td>\";\n totalCostHtmlContent2 += \"<td id=\\\"intraStateFinalCost\\\">\" + finalinterStateCost + \"</td>\";\n totalCostHtmlContent2 += \"</tr>\";\n\n $(\"[id$=amoutCalculationIntraState]\").hide();\n $(\"[id$=amoutCalculationInterState]\").show();\n $(\"[id$=amoutCalculationInterState]\").closest('tr').remove();\n $(\"[id$=amoutCalculationInterState] tbody\").append(totalCostHtmlContent2);\n }\n }\n else {\n var companyAddrState = $(\"[id$=companyAddrState] option:selected\").val();\n var companyAddrCity = $(\"[id$=companyAddrCity] option:selected\").val();\n var billToClientStateList = $(\"[id$=billToClientStateList] option:selected\").val();\n var billToClientCityList = $(\"[id$=billToClientCityList] option:selected\").val();\n if (companyAddrState !== \"\" && companyAddrCity !== \"\") {\n //If State selected is same for two comapny and bill\n if (companyAddrState === billToClientStateList) {\n var cumulativeintraStateCGST_StateCode = 0;\n var cumulativeintraStateSGST_StateCode = 0;\n var cumulativeintraStateCost_StateCode = 0;\n var finalintraStateCost_StateCode = 0;\n for (var i_StateCode = 1; i_StateCode <= rowCount; i_StateCode++) {\n var intraStategst_StateCode = $('#itemGST' + i_StateCode).val();\n var intraStatesgst_StateCode = intraStategst_StateCode / 2;\n var intraStatecgst_StateCode = intraStategst_StateCode / 2;\n\n var intraStateamount_StateCode = $('#itemAmount' + i_StateCode).val();\n var intraStatesgstperc_StateCode = (intraStatesgst_StateCode / 100) * intraStateamount_StateCode;\n var intraStatecgstperc_StateCode = (intraStatecgst_StateCode / 100) * intraStateamount_StateCode;\n\n cumulativeintraStateCGST_StateCode += +intraStatecgstperc_StateCode;\n cumulativeintraStateSGST_StateCode += +intraStatesgstperc_StateCode;\n cumulativeintraStateCost_StateCode += +intraStateamount_StateCode;\n finalintraStateCost_StateCode += +(cumulativeintraStateCGST_StateCode + cumulativeintraStateSGST_StateCode + cumulativeintraStateCost_StateCode);\n }\n\n var totalCostHtmlContent_StateCode = \"<tr>\";\n totalCostHtmlContent_StateCode += \"<td id=\\\"intraStateTotalAmount\\\">\" + cumulativeintraStateCost_StateCode + \"</td>\";\n totalCostHtmlContent_StateCode += \"<td id=\\\"intraStateTotalCGST\\\">\" + cumulativeintraStateCGST_StateCode + \"</td>\";\n totalCostHtmlContent_StateCode += \"<td id=\\\"intraStateTotalSGST\\\">\" + cumulativeintraStateSGST_StateCode + \"</td>\";\n totalCostHtmlContent_StateCode += \"<td id=\\\"intraStateFinalAmount\\\">\" + finalintraStateCost_StateCode + \"</td>\";\n totalCostHtmlContent_StateCode += \"</tr>\";\n\n $(\"[id$=amoutCalculationInterState]\").hide();\n $(\"[id$=amoutCalculationIntraState]\").show();\n $(\"[id$=amoutCalculationIntraState]\").closest('tr').remove();\n $(\"[id$=amoutCalculationIntraState] tbody\").append(totalCostHtmlContent_StateCode);\n }\n else {\n var cumulativeinterStateGST_StateCode = 0;\n var cumulativeinterStateCost_StateCode = 0;\n var finalinterStateCost_StateCode = 0;\n for (var j_StateCode = 1; j_StateCode <= rowCount; j_StateCode++) {\n var interStategst_StateCode = $('#itemGST' + j_StateCode).val();\n var interStateamount_StateCode = $('#itemAmount' + j_StateCode).val();\n var interStategstperc_StateCode = (interStategst_StateCode / 100) * interStateamount_StateCode;\n\n cumulativeinterStateGST_StateCode += +interStategstperc_StateCode;\n cumulativeinterStateCost_StateCode += +interStateamount_StateCode;\n finalinterStateCost_StateCode += +(cumulativeinterStateGST_StateCode + cumulativeinterStateCost_StateCode);\n }\n var totalCostHtmlContent2_StateCode = \"<tr>\";\n totalCostHtmlContent2_StateCode += \"<td id=\\\"interStateTotalAmount\\\">\" + cumulativeinterStateCost_StateCode + \"</td>\";\n totalCostHtmlContent2_StateCode += \"<td id=\\\"intraStateTotalGST\\\">\" + cumulativeinterStateGST + \"</td>\";\n totalCostHtmlContent2_StateCode += \"<td id=\\\"intraStateFinalCost\\\">\" + finalinterStateCost_StateCode + \"</td>\";\n totalCostHtmlContent2_StateCode += \"</tr>\";\n\n $(\"[id$=amoutCalculationIntraState]\").hide();\n $(\"[id$=amoutCalculationInterState]\").show();\n $(\"[id$=amoutCalculationInterState]\").closest('tr').remove();\n $(\"[id$=amoutCalculationInterState] tbody\").append(totalCostHtmlContent2_StateCode);\n }\n }\n else {\n alert(\"Please eiether provide GSTIN/PAN !\")\n }\n }\n }", "function inventoryTotals() {\r\n\t\tvar totalHP = 0;\r\n\t\tvar numCooked = 0;\r\n\t\tvar totalRawHP = 0;\r\n\t\tvar numRaw = 0;\r\n\t\tvar numBurnts = 0;\r\n\t\tvar totals = 0;\r\n\r\n\t\tvar myDivs = inv.getElementsByTagName('div');\r\n\r\n\t\tif(myDivs) {\t\r\n\t\t\tfor (i=0;i<myDivs.length;i++) {\r\n\t\t\t\ttotals += parseInt(myDivs[i].textContent);\r\n\r\n\t\t\t\tfor (j=0;j<Foods.length;j++) {\r\n\t\t\t\t\tif (myDivs[i].title == Foods[j][0]) {\r\n\t\t\t\t\t\ttotalHP += parseInt(myDivs[i].textContent)*Foods[j][1];\r\n\t\t\t\t\t\tnumCooked += parseInt(myDivs[i].textContent);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (j=0;j<Cookables.length;j++) {\r\n\t\t\t\t\tif (myDivs[i].title == Cookables[j][0]) {\r\n\t\t\t\t\t\ttotalRawHP += parseInt(myDivs[i].textContent)*Cookables[j][1];\r\n\t\t\t\t\t\tnumRaw += parseInt(myDivs[i].textContent);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (myDivs[i].title.indexOf('Burnt') > -1) {\r\n\t\t\t\t\tnumBurnts += parseInt(myDivs[i].textContent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\nvar newstr = \"\";\r\n\t\tif (totals > 0) {\r\n\t\t\tTotal.textContent = 'Total of ' + totals + ' Items';\r\n\t\t\tTotal.parentNode.style.display = '';\r\n\t\t} else {\r\n\t\t\tTotal.parentNode.style.display = 'none';\r\n\t\t}\r\n\t\tif (numBurnts > 0) {\r\n\t\t\t\t\t\tBrns.parentNode.style.display = 'none';\r\n\t\t}\r\n\t\tif (numCooked > 0) {\r\n\t\t\t\t\t\tCked.parentNode.style.display = 'none';\r\n newstr = \"HP: \" + addCommas(totalHP);\r\n\t\t}\r\n if (numRaw > 0) {\r\n\t\tRaws.parentNode.style.display = 'none';\r\n newstr = newstr + \" Raw: \" + addCommas(totalRawHP); \r\n\t\t}\r\n try{\r\n document.getElementById(\"inventoryStats\").innerHTML = '<div id=\"inventoryStats\" style=\"color: white; text-align: center;\">'+newstr+'</div>'\r\n }catch(err){}\r\n\t\tinv.addEventListener('DOMSubtreeModified',inventoryTotalsDelay,false);\r\n\t}", "function inventoryTotals() {\r\n\t\tvar totalHP = 0;\r\n\t\tvar numCooked = 0;\r\n\t\tvar totalRawHP = 0;\r\n\t\tvar numRaw = 0;\r\n\t\tvar numBurnts = 0;\r\n\t\tvar totals = 0;\r\n\r\n\t\tvar myDivs = inv.getElementsByTagName('div');\r\n\r\n\t\tif(myDivs) {\t\r\n\t\t\tfor (i=0;i<myDivs.length;i++) {\r\n\t\t\t\ttotals += parseInt(myDivs[i].textContent);\r\n\r\n\t\t\t\tfor (j=0;j<Foods.length;j++) {\r\n\t\t\t\t\tif (myDivs[i].title == Foods[j][0]) {\r\n\t\t\t\t\t\ttotalHP += parseInt(myDivs[i].textContent)*Foods[j][1];\r\n\t\t\t\t\t\tnumCooked += parseInt(myDivs[i].textContent);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (j=0;j<Cookables.length;j++) {\r\n\t\t\t\t\tif (myDivs[i].title == Cookables[j][0]) {\r\n\t\t\t\t\t\ttotalRawHP += parseInt(myDivs[i].textContent)*Cookables[j][1];\r\n\t\t\t\t\t\tnumRaw += parseInt(myDivs[i].textContent);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (myDivs[i].title.indexOf('Burnt') > -1) {\r\n\t\t\t\t\tnumBurnts += parseInt(myDivs[i].textContent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (totals > 0) {\r\n\t\t\tTotal.textContent = 'Total of ' + totals + ' items';\r\n\t\t\tTotal.parentNode.style.display = '';\r\n\t\t} else {\r\n\t\t\tTotal.parentNode.style.display = 'none';\r\n\t\t}\r\n\t\tif (numBurnts > 0) {\r\n\t\t\tBrns.textContent = 'Dragging ' + numBurnts + ' burnt food';\r\n\t\t\tBrns.parentNode.style.display = '';\r\n\t\t} else {\r\n\t\t\tBrns.parentNode.style.display = 'none';\r\n\t\t}\r\n\t\tif (numRaw > 0) {\r\n\t\t\tRaws.textContent = '' + numRaw + ' raw food (' + totalRawHP + ' hp)';\r\n\t\t\tRaws.parentNode.style.display = '';\r\n\t\t} else {\r\n\t\t\tRaws.parentNode.style.display = 'none';\r\n\t\t}\r\n\t\tif (numCooked > 0) {\r\n\t\t\tCked.textContent = '' + numCooked + ' cooked food (' + totalHP + ' hp)';\r\n\t\t\tCked.parentNode.style.display = '';\r\n\t\t} else {\r\n\t\t\tCked.parentNode.style.display = 'none';\r\n\t\t}\r\n\t\tinv.addEventListener('DOMSubtreeModified',inventoryTotalsDelay,false);\r\n\t}", "function updPARAMS(a, b, c, d){\n \n var result = a,\n _lineItems = b,\n manufacturer = c,\n location = d,\n newInventory = {\n success: true,\n items: []\n },\n failedProducts = [],\n product = 0,\n thisHold = 0,\n thisQuantity = 0;\n \n for(var i = 0; i < result.length; i++ ){\n for(var j = 0; j < _lineItems.length; j++ ){\n if( parseInt(result[i].product_id) === _lineItems[j].id ){\n \n console.log( '|-------------------------------------|' );\n console.log( 'THIS-PRODUCT[' + i + '].quantity || on_hold >> ', result[i].quantity, result[i].on_hold );\n console.log( 'THIS-LINE-ITEM[' + i + '].quantity >> ', _lineItems[j].quantity );\n \n if( result[i].quantity < _lineItems[j].quantity ){\n console.log( '|-------------------------------------|' );\n console.log( 'ENOUGH INVENTORY: ', false );\n console.log( '|-------------------------------------|' );\n failedProducts.push({ inventory: result[i], lineItem : _lineItems[j] });\n }\n\n if( failedProducts.length > 0 ){\n newInventory.success = false;\n newInventory.items = failedProducts;\n }\n else{\n console.log( '|-------------------------------------|' );\n console.log( 'ENOUGH INVENTORY: ', true );\n console.log( '|-------------------------------------|' );\n \n thisQuantity = result[i].quantity - _lineItems[j].quantity;\n thisHold = result[i].on_hold + _lineItems[j].quantity;\n\n var pquery = [\n manufacturer,\n location,\n _lineItems[j].id,\n thisQuantity,\n thisHold\n ];\n \n console.log( '|-------------------------------------|' );\n console.log( 'PQUERY[' + j + '] >> ', pquery );\n \n newInventory.items.push(pquery);\n }\n }\n }\n }\n \n console.log( '|-------------------------------------|' );\n console.log( 'NEW-INVENTORY >> ', newInventory );\n return newInventory;\n}", "function updateInventory(curInv, nxtInv) {\n const inv = curInv.slice(0)\n nxtInv.forEach((newItem) => {\n const index = inv.findIndex((item) => {\n return item[1] === newItem[1]\n })\n if (index === -1) {\n inv.push(newItem)\n } else {\n inv[index][0] += newItem[0]\n }\n })\n return inv\n}", "function updateInventory(curInv, newInv) {\n var newAdded;\n newInv.forEach(function(newItem, newInd) {\n newAdded = false;\n curInv.forEach(function(curItem) {\n if (newItem[1] === curItem[1]) {\n curItem[0] += newItem[0];\n newAdded = true;\n }\n });\n if (newAdded === false) {curInv.push(newItem);}\n }); \n return curInv.sort((a,b) => a[1] < b[1] ? -1 : 1);\n}", "inventoryValue() {\n return this.inventory.reduce(total, book) => {\n total += book.price;\n }", "function calcInventoryValue(items) {\n let totalValue = 0;\n for (const inventories of inventory) {\n totalValue += (inventories.product.price * inventories.quantity);\n }\n ;\n // console.log(totalValue);\n return totalValue;\n}", "function recalculate() {\n var extendedPriceTotal = 0;\n var shippingTotal = 0;\n var $itemDetailLines = $('.item-detail-line');\n $itemDetailLines.each(function () {\n var itemExtendedPrice = parseFloat($(this).find('.item-extended-price').text().slice(1)) || 0;\n var itemShipping = parseFloat($(this).find('.item-shipping').text().slice(1)) || 0;\n var itemTotalPrice = parseFloat($(this).find('.item-total-price').text().slice(1)) || 0;\n\n extendedPriceTotal += itemExtendedPrice;\n shippingTotal += itemShipping;\n });\n\n $('.item-detail-total .item-extended-price').text('$' + extendedPriceTotal.toFixed(2));\n $('.item-detail-total .item-shipping').text('$' + shippingTotal.toFixed(2));\n $('.item-detail-total .item-total-price').text('$' + (extendedPriceTotal + shippingTotal).toFixed(2));\n}", "function CalItemTotal(para) {\r\n\tvar disctemp = 0;\r\n\tvar total_price = 0;\r\n\tvar group_value = 0;\r\n\tvar tax_rate1 = 0;\r\n\tvar tax_rate2 = 0;\r\n\tvar tax_rate3 = 0;\r\n\tvar tax_value1 = 0.0;\r\n\tvar tax_value2 = 0.0;\r\n\tvar tax_value3 = 0.0;\r\n\tvar disc = 0.00;\r\n\tvar discpercent = 0.00;\r\n\tvar uom_id = 0;\r\n\tvar qty = 0.00;\r\n\tvar disc_per = 0.00, disc_amt = 0.00;\r\n\r\n\tvar alt_qty = CheckNumeric(document.getElementById('txt_item_qty').value);\r\n\tif (alt_qty == 0) {\r\n\t\talt_qty = 1.00;\r\n\t\t// document.getElementById('txt_item_qty').value = alt_qty;\r\n\t}\r\n\t// alert(\"alt_qty===\"+alt_qty);\r\n\r\n\tvar emp_disc_update = parseInt(document.getElementById('txt_emp_invoice_discountupdate').value);\r\n\tvar uom_id = document.getElementById('dr_alt_uom_id').value;\r\n\tvar uom_idarr = uom_id.split(\"-\");\r\n\tvar uom_id = uom_idarr[0];\r\n\tdocument.getElementById('uom_id').value = uom_id;\r\n\tvar uom_ratio = uom_idarr[1];\r\n\t// alert(\"uom_ratio===\"+uom_ratio);\r\n\tdocument.getElementById('uom_ratio').value = uom_ratio;\r\n\r\n\tif (uom_ratio == 0 || uom_ratio == '' || isNaN(uom_ratio) == true || uom_ratio == null) {\r\n\t\tuom_ratio = 1.00;\r\n\t\tqty = alt_qty * uom_ratio;\r\n\t} else {\r\n\t\tqty = alt_qty * uom_ratio;\r\n\t}\r\n\r\n\tvar price = parseFloat(CheckNumeric(document.getElementById('txt_item_price').value));\r\n\tvar unit_price = parseFloat(CheckNumeric(document.getElementById('txt_item_baseprice').value));\r\n\tdisc_amt = parseFloat(CheckNumeric(document.getElementById('txt_item_price_dic').value));\r\n\tdisc_per = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc_percent_add').value));\r\n\t// alert(\"unit_price===\"+unit_price);\r\n\t// 1. Code for onchange of uom ---cal\r\n\tif (uom_ratio == 1.00 && alt_qty == 1.00) {\r\n\t\tdocument.getElementById('txt_item_price').value = unit_price * uom_ratio;\r\n\t\tdiscpercent = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc_percent_add').value));\r\n\t\tif (emp_disc_update == 0) {\r\n\t\t\tif (discpercent <= disc_per) {\r\n\t\t\t\tdisc = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc').value));\r\n\t\t\t\tdisc = ((unit_price * uom_ratio) * (discpercent / 100));\r\n\t\t\t\tdocument.getElementById('txt_item_price_disc').value = disc.toFixed(2);\r\n\t\t\t} else {\r\n\t\t\t\t\tdocument.getElementById('txt_item_price_disc_percent_add').value = disc_per.toFixed(2);\r\n\t\t\t\t\tdocument.getElementById('txt_item_price_disc').value = disc_amt.toFixed(2);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (eval(discpercent) <= eval(100.00)) {\r\n\t\t\t\tdisc = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc').value));\r\n\t\t\t\tdisc = ((unit_price * uom_ratio) * (discpercent / 100));\r\n\t\t\t\tdocument.getElementById('txt_item_price_disc').value = disc.toFixed(2);\r\n\t\t\t} else {\r\n\t\t\t\t\tdocument.getElementById('txt_item_price_disc_percent_add').value = \"0.00\";\r\n\t\t\t\t\tdocument.getElementById('txt_item_price_disc').value = \"0.00\";\r\n\t\t\t}\r\n\t\t}\r\n\t} else if (uom_ratio != 1.00 && alt_qty == 1.00) {\r\n\t\tdocument.getElementById('txt_item_price').value = unit_price * uom_ratio;\r\n\t\tdiscpercent = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc_percent_add').value));\r\n\t\tif (discpercent <= disc_per) {\r\n\t\t\t// discpercent = parseFloat(CheckNumeric(document\r\n\t\t\t// .getElementById('txt_item_price_disc_percent_add').value));\r\n\t\t\tdisc = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc').value));\r\n\t\t\tdisc = ((unit_price * uom_ratio) * (discpercent / 100));\r\n\t\t\tdocument.getElementById('txt_item_price_disc').value = disc.toFixed(2);\r\n\t\t} else {\r\n\t\t\tdocument.getElementById('txt_item_price_disc_percent_add').value = disc_per.toFixed(2);\r\n\t\t\tdocument.getElementById('txt_item_price_disc').value = disc_amt.toFixed(2);\r\n\t\t}\r\n\t} else if (uom_ratio == 1.00 && alt_qty != 1.00) {\r\n\t\tdocument.getElementById('txt_item_price').value = unit_price * uom_ratio;\r\n\t\tdiscpercent = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc_percent_add').value));\r\n\t\tif (discpercent <= disc_per) {\r\n\t\t\t// discpercent = parseFloat(document\r\n\t\t\t// .getElementById('txt_item_price_disc_percent_add').value);\r\n\t\t\tdisc = ((unit_price * uom_ratio) * (discpercent / 100));\r\n\t\t\tdocument.getElementById('txt_item_price_disc').value = disc.toFixed(2);\r\n\t\t} else {\r\n\t\t\tdocument.getElementById('txt_item_price_disc_percent_add').value = disc_per.toFixed(2);\r\n\t\t\tdocument.getElementById('txt_item_price_disc').value = disc_amt.toFixed(2);\r\n\t\t}\r\n\t} else if ((uom_ratio != 1.00) && (alt_qty != 1.00)) {\r\n\t\tdocument.getElementById('txt_item_price').value = unit_price * uom_ratio;\r\n\t\tdiscpercent = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc_percent_add').value));\r\n\t\tif (discpercent <= disc_per) {\r\n\t\t\t// discpercent = parseFloat(CheckNumeric(document\r\n\t\t\t// .getElementById('txt_item_price_disc_percent_add').value));\r\n\t\t\t// alert(\"discpercent===\"+discpercent);\r\n\t\t\tdisc = ((unit_price * uom_ratio) * (discpercent / 100));\r\n\t\t\t// alert(\"disc===\"+disc);\r\n\t\t\tdocument.getElementById('txt_item_price_disc').value = disc.toFixed(2);\r\n\t\t} else {\r\n\t\t\tdocument.getElementById('txt_item_price_disc_percent_add').value = disc_per.toFixed(2);\r\n\t\t\tdocument.getElementById('txt_item_price_disc').value = disc_amt.toFixed(2);\r\n\t\t}\r\n\t}\r\n\t\r\n\t// /1. Logic of UOM ends ---and related code continued....\r\n\tprice = parseFloat(CheckNumeric(document.getElementById('txt_item_price').value));\r\n\t// alert(\"price=111=\"+price);\r\n\tdisc = parseFloat(CheckNumeric(document .getElementById('txt_item_price_disc').value));\r\n\tdiscpercent = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc_percent_add').value));\r\n\tvar optioncount = parseFloat(CheckNumeric(document.getElementById(\"txt_optioncount\").value));\r\n\tif (para == 1) {\r\n\t\ttotal_price = parseFloat(CheckNumeric(document.getElementById('txt_item_baseprice').value));\r\n\t\tif (total_price == '' || total_price == null) {\r\n\t\t\ttotal_price = 0;\r\n\t\t}\r\n\t} else {\r\n\t\tif (optioncount == 1) {\r\n\t\t\ttotal_price = parseFloat(CheckNumeric(document\r\n\t\t\t\t\t.getElementById('txt_defaultselected_total').value));\r\n\t\t\tif (total_price == '' || total_price == null) {\r\n\t\t\t\ttotal_price = 0;\r\n\t\t\t}\r\n\t\t\tgroup_value = document.getElementById('txt_new_value').value;\r\n\t\t\tif (group_value == '' || group_value == null) {\r\n\t\t\t\tgroup_value = 0;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\ttotal_price = 0;\r\n\t\t\tgroup_value = 0;\r\n\t\t}\r\n\t\ttotal_price = eval(total_price) + eval(group_value);\r\n\t}\r\n\r\n\tvar disc_type = parseFloat(CheckNumeric(document.getElementById('txt_item_price_disc_type').value));\r\n\tdisctemp = (eval(price) + eval(total_price));\r\n\ttemptotal = disctemp;\r\n\r\n\tprice = CheckNumeric(unit_price);\r\n\tdisc = (price * (discpercent / 100));\r\n\r\n\tif (eval(disc) > eval(disctemp)) {\r\n\t\talert(\"Discount can't be greater than price\");\r\n\t\t// setTimeout(CalItemTotal(1),3000);\r\n\t\t// document.getElementById('txt_item_price_disc').value = disctemp;\r\n\t\t// document.getElementById('txt_item_price_disc_percent_add').value =\r\n\t\t// 100;\r\n\t\tdocument.getElementById('txt_item_price_disc').value = 0;\r\n\t\tdocument.getElementById('txt_item_price_disc_percent_add').value = 0;\r\n\t\tdisc = 0;\r\n\t\tdiscpercent = 0;\r\n\t}\r\n\r\n\tif (eval(discpercent) > 100) {\r\n\t\talert(\"Discount can't be greater than 100%\");\r\n\t\t// setTimeout(CalItemTotal(1),3000);\r\n\t\t// document.getElementById('txt_item_price_disc_percent_add').value =\r\n\t\t// 100;\r\n\t\t// document.getElementById('txt_item_price_disc').value = disctemp;\r\n\t\tdocument.getElementById('txt_item_price_disc_percent_add').value = 0;\r\n\t\tdocument.getElementById('txt_item_price_disc').value = 0;\r\n\t\tdisc = 0;\r\n\t\tdiscpercent = 0;\r\n\t}\r\n\r\n\t// For Taxes cal (without tax amt including for cal 2nd ,3rd tax amts)\r\n\t// and (with tax amt including for cal 2nd ,3rd tax amts if\r\n\t// price_tax2_after_tax1 or price_tax3_after_tax2 = 1)\r\n\ttax_rate1 = CheckNumeric(document.getElementById('txt_item_price_tax_rate1').value);\r\n\ttax_rate2 = CheckNumeric(document.getElementById('txt_item_price_tax_rate2').value);\r\n\ttax_rate3 = CheckNumeric(document.getElementById('txt_item_price_tax_rate3').value);\r\n\tvar price_tax2_after_tax1 = CheckNumeric(document.getElementById('txt_price_tax2_after_tax1').value);\r\n\tvar price_tax3_after_tax2 = CheckNumeric(document.getElementById('txt_price_tax3_after_tax2').value);\r\n\t// alert(\"price_tax2_after_tax1===\"+price_tax2_after_tax1);\r\n\r\n\tif (tax_rate1 != 0) {\r\n\t\tdocument.getElementById('txt_item_tax1').value = parseFloat(\r\n\t\t\t\t((eval(unit_price) + eval(total_price) - eval(disc))\r\n\t\t\t\t\t\t* eval(uom_ratio) * eval(tax_rate1 / 100))).toFixed(2);\r\n\t\ttax_value1 = CheckNumeric(document.getElementById('txt_item_tax1').value);\r\n\t\t// alert(\"tax_value1===\"+tax_value1);\r\n\t}\r\n\tif (tax_rate2 != 0) {\r\n\t\tif ((price_tax2_after_tax1 == 1) && (tax_rate1 != 0)) {\r\n\t\t\tdocument.getElementById('txt_item_tax2').value = parseFloat(\r\n\t\t\t\t\t(((eval(unit_price) + eval(total_price) - eval(disc)) * eval(uom_ratio)) + eval(tax_value1))\r\n\t\t\t\t\t\t\t* eval(tax_rate2 / 100)).toFixed(2);\r\n\t\t\ttax_value2 = CheckNumeric(document.getElementById('txt_item_tax2').value);\r\n\t\t\t// alert(\"tax_value2==if=\"+tax_value2);\r\n\t\t} else {\r\n\t\t\tdocument.getElementById('txt_item_tax2').value = parseFloat(\r\n\t\t\t\t\t((eval(unit_price) + eval(total_price) - eval(disc))\r\n\t\t\t\t\t\t\t* eval(uom_ratio) * eval(tax_rate2 / 100))) .toFixed(2);\r\n\t\t\ttax_value2 = CheckNumeric(document.getElementById('txt_item_tax2').value);\r\n\t\t\t// alert(\"tax_value2=else==\"+tax_value2);\r\n\t\t}\r\n\t}\r\n\r\n\tif (tax_rate3 != 0) {\r\n\t\tif ((price_tax3_after_tax2 == 1) && (tax_rate1 != 0) && (tax_rate2 != 0)) {\r\n\t\t\tdocument.getElementById('txt_item_tax3').value = parseFloat(\r\n\t\t\t\t\t(((eval(unit_price) + eval(total_price) - eval(disc)) * eval(uom_ratio))\r\n\t\t\t\t\t\t\t+ eval(tax_value1) + eval(tax_value2))\r\n\t\t\t\t\t\t\t* eval(tax_rate3 / 100)).toFixed(2);\r\n\t\t\ttax_value3 = CheckNumeric(document.getElementById('txt_item_tax3').value);\r\n\t\t\t// alert(\"tax_value3===\"+tax_value3);\r\n\t\t} else {\r\n\t\t\tdocument.getElementById('txt_item_tax3').value = parseFloat(\r\n\t\t\t\t\t((eval(unit_price) + eval(total_price) - eval(disc))\r\n\t\t\t\t\t\t\t* eval(uom_ratio) * eval(tax_rate3 / 100))) .toFixed(2);\r\n\t\t\ttax_value3 = CheckNumeric(document.getElementById('txt_item_tax3').value);\r\n\t\t\t// alert(\"tax_value3===\"+tax_value3);\r\n\t\t}\r\n\t}\r\n\r\n\t//\r\n\t// alert(\"price===\"+price);\r\n\t// alert(\"total_price===\"+total_price);\r\n\t// alert(\"disc===\"+disc);\r\n\t// alert(\"qty===\"+qty);\r\n\t// alert(\"total==\"+);\r\n\t// alert(\"cart_total=amt==\"+((((eval(price)+eval(total_price)-eval(disc))*uom_ratio)\r\n\t// + (eval(tax_value1)+eval(tax_value2)+eval(tax_value3)))) * alt_qty);\r\n\t// Final Result\r\n\tdocument.getElementById(\"item_total\").innerHTML = parseFloat(\r\n\t\t\t((((eval(price) - eval(disc)) * uom_ratio) + (eval(tax_value1)\r\n\t\t\t\t\t+ eval(tax_value2) + eval(tax_value3))))\r\n\t\t\t\t\t* alt_qty).toFixed(2);\r\n\t// document.getElementById(\"txt_item_total\").value =\r\n\t// ((((eval(price) + eval(total_price) - eval(disc)) * uom_ratio) +\r\n\t// (eval(tax_value1)\r\n\t// + eval(tax_value2) + eval(tax_value3))))\r\n\t// * eval(alt_qty);\r\n\r\n}", "function updateInventory(arr1, arr2) {\n // All inventory must be accounted for or you're fired!\n var index;\n var arrCuInvName=[];\n var arrNeInvName=[];\n arr1.map(function(item1){\n return arr2.map(function(item2){\n if(item1[1] === item2[1]){\n item1[0]= item2[0]+item1[0];\n }\n });\n });\n arr2.map(function(item){\n arrNeInvName.push(item[1]);\n \n });\n arr1.map(function(item){\n arrCuInvName.push(item[1]);\n });\n arrNeInvName.map(function(item){\n if(arrCuInvName.indexOf(item)===-1){\n // element doesn't exist in array\n index=arrNeInvName.indexOf(item);\n arr1.push(arr2[index]);\n }\n \n });\n arr1.sort(function(currItem,nextItem){\n return currItem[1] > nextItem[1] ? 1 : -1;\n });\n return arr1;\n}", "function updateInventory(arr1, arr2) {\n const curInventory = arr1;\n const newInventory = arr2;\n let updatedInventory = [];\n let curTracker = []; // Capture indexes of inclusive currentInventory\n \n // Add all items from newInventory and inclusive currentInventory\n newInventory.forEach(function(newItem){\n let newItemFound = false;\n \n curInventory.forEach(function(curItem, j){\n if (newItem[1] == curItem[1]){\n updatedInventory.push([newItem[0]+curItem[0], newItem[1]]);\n newItemFound = true;\n curTracker.push(j);\n }\n });\n if (!newItemFound){updatedInventory.push(newItem);}\n });\n \n // Adds exclusive items from currentInventory\n curInventory.forEach(function(curItem, k){\n if (!curTracker.includes(k)){\n updatedInventory.push(curItem);\n }\n });\n \n // Sort results A-Z\n updatedInventory.sort(function(a,b){\n if (a[1] < b[1]) {\n return -1;\n }\n if (a[1] > b[1]) {\n return 1;\n }\n return 0;\n });\n return updatedInventory;\n}", "function getItem(){ \n var itemContainer = this.closest(\"div\"); \n var quantity = itemContainer.querySelector(\".quantity-input\");\n var itemName = itemContainer.querySelector(\".item-name\")\n var totalPrice = itemContainer.querySelector(\".total-price\")\n var newItem = {}; \n inventory.map(function (inventoryItem){\n if(itemName.innerHTML === inventoryItem.name){\n newItem = inventoryItem\n totalPrice.innerHTML = (inventoryItem.price).toFixed(2)\n }\n })\n addItemToCart(newItem, parseInt(quantity.value))\n quantity.value = \"\";\n quantity.placeholder = 1\n}", "getInventoryValue() {\n let total = 0;\n const { tokenInformation } = this.props;\n const { portfolioItems } = this.state;\n\n portfolioItems.map((item) => {\n const itemToken = tokenInformation.find(token => token.symbol === item.token);\n if (itemToken) {\n const readablePrice = itemToken.usdPrice ? itemToken.usdPrice : 0;\n total += item.quantity * readablePrice;\n }\n });\n\n return total;\n }", "function updateInventory(curInv, newInv) {\n //ideas:\n // convert curInv to Object, add/update from newInv, then use Object.keys(myObj).sort() to shove back into an array alphabetically\n // start with an empty Array, add from cur or new??\n \n var invObj = {};\n for (var i = 0; i < curInv.length; ++i) {\n invObj[curInv[i][1]] = curInv[i][0];\n }\n for (i = 0; i < newInv.length; ++i) {\n if (newInv[i][1] in invObj) {\n invObj[newInv[i][1]] += newInv[i][0];\n } else {\n invObj[newInv[i][1]] = newInv[i][0];\n }\n }\n var updatedInv = [];\n var invKeys = Object.keys(invObj).sort();\n for (i = 0; i < invKeys.length; ++i) {\n updatedInv.push([invObj[invKeys[i]], invKeys[i]]);\n }\n return updatedInv;\n}", "function updateInventory(arr1, arr2) {\n // All inventory must be accounted for or you're fired!\n let arr = arr1.concat(arr2);\n let obj = {};\n for(let i of arr) {\n if(typeof obj[i[1]] != 'undefined'){\n obj[i[1]] += parseInt(i[0]);\n }\n else{\n obj[i[1]] = parseInt(i[0]);\n }\n }\n \n let result = [];\n for(let i in obj){\n let tempArray = [];\n tempArray.push(obj[i]);\n tempArray.push(i);\n result.push(tempArray);\n }\n\n return(result.sort((a,b) => {\n if(a[1] < b[1]) return -1;\n return 1;\n }));\n //[[88, \"Bowling Ball\"], [2, \"Dirty Sock\"], [3, \"Hair Pin\"], [3, \"Half-Eaten Apple\"], [5, \"Microphone\"], [7, \"Toothpaste\"]]\n}", "function inventory(arr1, arr2) {\n //check each curInv value against the newInv, find matches, update values, then remove from newInv list (checking them off kind of)\n arr1.forEach(function(val, ind){\n var curName = val[1];\n arr2.forEach(function(val2, ind2, array2){\n var newName = val2[1];\n if (curName === newName) {\n val[0] += val2[0];\n array2.splice(ind2, 1); //removing them from newInv\n }\n });\n }); \n //add remaining items we don't already have in curInv and then sort...\n return (arr1.concat(arr2)).sort(function(a,b) {\n if (a[1] > b[1]) {\n return 1;\n }\n });\n}", "function recalc(){\n\t\t$(\"[id^=total_item]\").calc(\"qty * price\", { qty: $(\"input[name^=qty_item_]\"), price: $(\"[id^=price_item_]\") }, function (s){ return \"$\" + s.toFixed(2); },\n\t\t\t\t// define the finish callback, this runs after the calculation has been complete\n\t\t\t\tfunction ($this){\n\t\t\t\t// sum the total of the $(\"[id^=total_item]\") selector\n\t\t\t\tvar sum = $this.sum();\n\t\t\t\t// round the results to 2 digits\n\t\t\t\t$(\"#grandTotal\").text(\"$\" + sum.toFixed(2));\n\t});\n}", "function addItem () {\n\tif ((document.getElementById(\"itemName\").value == \"\")\n || (document.getElementById(\"itemQuant\").value == \"\")) {\n\t\twindow.alert(\"Please enter item and quantity.\");\n } else {\n\t\tvar item = document.getElementById(\"itemName\").value;\n\t\tconst quant = document.getElementById(\"itemQuant\").value;\n\n\t\t\n\t\t// calculate price of item(s) by iterating through \n\t\t// tableDataArray searching for the named object. \n\t\t// If item is not found, then alert() user. \n\n\t\tlet thisCost = \"\";\n\t\t\n \t\tfor (i=0; i<inventory.length; i++){\n \t\t\tif (inventory[i].item == item) {\n \t\t\t\tthisCost = inventory[i].price * quant;\n \t\t\t\tbreak;\n // Weird bugs arose when attempting to error-check menu order.\n //\t\t\t} else {\n //\t\t\t\twindow.alert(\"Regrets, we do not offer that item.\");\n //\t\t\t\treturn;\n \t\t\t}\n \t\t}\n\t\t\n\t\t// ADDING NEW ITEM PRICE TO PREVIOUS PRICE IS VERRA DIFFICULT.\n\t\t// Display - Quantity Item \"at\" Price \"=\" Total\n\t\tthisCost = parseFloat(thisCost);\n\n\t\ttempPrice = parseFloat(document.getElementById(\"totalPrice\").innerHTML);\n\t\tthisCost += tempPrice;\n\t\tthisCost = thisCost.toFixed(2);\n\t\tdocument.getElementById(\"totalPrice\").innerHTML = thisCost;\n\t\tdocument.getElementById(\"textareaSummary\").value += quant + \" \" + item;\n\t\tdocument.getElementById(\"textareaSummary\").value += \"\\n\";\n\n }\n}", "function Transaction(sell, amount){\n for(i in inventory)\n {\n if (inventory[i].name === selected)\n {\n if (sell && inventory[i].amount >= amount) //Sell Items\n {\n inventory[i].amount -= amount;\n inventory[i].stock += amount;\n money += inventory[i].cost * amount\n updateInvent(null);\n }\n if (!sell && inventory[i].stock >= amount && money >= inventory[i].cost * amount) //Buy items\n {\n inventory[i].amount += amount;\n inventory[i].stock -= amount;\n money -= inventory[i].cost * amount\n updateInvent(null);\n }\n }\n }\n\n}", "function updateInventory(arr1, arr2) {\n // All inventory must be accounted for or you're fired!\n // function to updated existing items and merge on new items\n const updatedInv = updateProducts(arr1, arr2);\n // function to alphabetize inventory by product name -- BROKENNNN!\n const sortedInv = sortProducts(updatedInv);\n\n return sortedInv;\n}", "resetList() {\n let originalList = this.state.products;\n originalList.forEach((product) => {\n if (!product.addedCount) {\n product.inventory = product.inventory;\n\n } else if (product.addedCount && product.inventory === 0) {\n product.inventory = product.addedCount;\n delete product.addedCount;\n delete product.remaningCount;\n\n } else {\n product.inventory = product.addedCount + product.remaningCount;\n delete product.addedCount;\n delete product.remaningCount;\n }\n });\n\n this.setState({\n products: originalList\n });\n }", "addToOrder(item) {\n const newItems = this.state.inventoryItems;\n const newOrder = this.state.order;\n newItems[item.key].quantity = (newItems[item.key].quantity) - (item.quantity);\n\n\n // Maps over state and checks to see if item already exists\n // If it does, it adds previous order quantity to new order quantity\n Object.keys(newOrder)\n .map(key => {\n if (key === item.key) {\n item.quantity = ((newOrder[key].quantity*1) + (item.quantity*1));\n }\n })\n newOrder[item.key] = item;\n\n this.setState({\n inventoryItems: newItems,\n order: newOrder\n })\n }", "'SELL_STOCK' (state, {shrimpId, quantity, shrimpPrice}) {\n \n // Checks to see which items are already in the array\n const record = state.shrimpInventoryData.find(element => element.id == shrimpId);\n \n // Detracts from quantity\n if (record.quantity > quantity) {\n \n record.quantity -= quantity;\n \n }\n \n // Removes the item from the array if amount sold is the amount available\n else {\n \n state.shrimpInventoryData.splice(state.shrimpInventoryData.indexOf(record), 1);\n \n }\n \n // Updates funds when items are sold\n state.funds += shrimpPrice * quantity;\n \n }", "function plateorquantitychange(event){\n let row = event.target.parentNode.parentNode;\n let fooditemname = row.cells[0].innerHTML;\n let fooditemquantity = row.cells[2].firstChild.value;\n let oldprice = row.cells[3].innerHTML;\n if(fooditems[fooditemname].kind == 1 ){\n let fooditemplate = row.cells[1].firstChild.value;\n let fooditemprice = (parseInt(fooditemquantity) * parseInt(fooditems[fooditemname][\"price\"+fooditemplate]));\n row.cells[3].innerHTML = fooditemprice;\n }\n else{\n let fooditemprice = (parseInt(fooditemquantity) * parseInt(fooditems[fooditemname][\"price\"]));\n row.cells[3].innerHTML = fooditemprice;\n }\n let ttl = document.getElementById(\"total\");\n ttl.innerHTML = parseInt(ttl.innerHTML) - parseInt(oldprice) + parseInt(row.cells[3].innerHTML);\n}", "function itemInventoryTable() { }", "removeOne(item) {\n const newItems = this.state.inventoryItems;\n // let price = newItems[item].price;\n if (newItems[item].quantity === 0) {\n console.log(\"can't go negative\")\n } else {\n newItems[item].quantity = newItems[item].quantity - 1;\n }\n this.setState({\n inventoryItems: newItems\n })\n }", "function getPrices(){\n\n\t\t//cost of shop items\n\t\tprice1=75.00; price2=116; price3=44; price4=5.25; price5=3.75; price6=12.75; price7=4.10;\n\n\t\t//ammount of items chosen\n\t\titem_1=0; item2=0; item3=0; item4=0; item5=0; item6=0; item6=0; item7=0;\n\n\t\t//sub-total for each item\n\t\tsubTot_1 = 0; subTot_2=0; subTot_3=0; subTot_4=0; subTot_5=0; subTot_6=0; subTot_7=0;\n\n\t\t//get number of items\n\t\titem_1 = document.getElementById(\"item_1\").value;\n\t\titem_2 = document.getElementById(\"item_2\").value;\n\t\titem_3 = document.getElementById(\"item_3\").value;\n\t\titem_4 = document.getElementById(\"item_4\").value;\n\t\titem_5 = document.getElementById(\"item_5\").value;\n\t\titem_6 = document.getElementById(\"item_6\").value;\n\t\titem_7 = document.getElementById(\"item_7\").value;\n\n\n\t\t//subtotal for item\n\t\tsubTot_1 = eval(item_1) * eval(price1);\n\t\tsubTot_1 = subTot_1.toFixed(2);\n\t\tdocument.getElementById(\"subTot_1\").value = subTot_1;\n\n\t\t//subtotal for item 2\n\t\tsubTot_2 = eval(item_2) * eval(price2);\n\t\tsubTot_2 = subTot_2.toFixed(2);\n\t\tdocument.getElementById(\"subTot_2\").value = subTot_2;\n\n\t\t//subtotal for item 3\n\t\tsubTot_3 = eval(item_3) * eval(price3);\n\t\tsubTot_3 = subTot_3.toFixed(2);\n\t\tdocument.getElementById(\"subTot_3\").value = subTot_3;\n\n\t\t//subtotal for item 4\n\t\tsubTot_4 = eval(item_4) * eval(price4);\n\t\tsubTot_4 = subTot_4.toFixed(2);\n\t\tdocument.getElementById(\"subTot_4\").value = subTot_4;\n\n\t\t//subtotal for item 5\n\t\tsubTot_5 = eval(item_5) * eval(price5);\n\t\tsubTot_5 = subTot_5.toFixed(2);\n\t\tdocument.getElementById(\"subTot_5\").value = subTot_5;\n\n\t\t//subtotal for item 6\n\t\tsubTot_6 = eval(item_6) * eval(price6);\n\t\tsubTot_6 = subTot_6.toFixed(2);\n\t\tdocument.getElementById(\"subTot_6\").value = subTot_6;\n\n\t\t//subtotal for item 7\n\t\tsubTot_7 = eval(item_7) * eval(price7);\n\t\tsubTot_7 = subTot_7.toFixed(2);\n\t\tdocument.getElementById(\"subTot_7\").value = subTot_7;\n\n\t\t//work out total for all items\n\t\tTotamt = eval(subTot_1)+eval(subTot_2)+eval(subTot_3)+eval(subTot_4)+eval(subTot_5)+eval(subTot_6)+eval(subTot_7);\n\t\tTotamt = Totamt.toFixed(2);\n\t\tdocument.getElementById(\"GrandTotal\").value = Totamt;\n\n}//end getPrices", "function reCalculateDecrease(id){\n //get price for peice \n // #P_id is id div for price & substring to remove $ sign\n var price = parseInt($(\"#P_\"+id).text().substring(1));\n //get quantity\n $(\"#V_\"+id).val($(\"#V_\"+id).val()-1);\n var pecies = parseInt($(\"#V_\"+id).val());\n //edit total for pecies \n $(\"#T_\"+id).text(\"$\"+( pecies*price) );\n \n //edit total and sub total price\n var total = parseInt($(\"#subTotal\").text().substring(1));\n $(\"#subTotal\").text(\"$\"+(total - price));\n $(\"#total\").text(\"$\"+(total - price));\n \n }", "determineTotals(receipt) {\n let total = 0;\n receipt.inventories.forEach(inventory => {\n total += inventory.buyAmount;\n });\n return total;\n }", "function calculateSubtotal(){\n\tsubtotal = 0;\n\tfor (var i=0;i<numItems.length;i++){\n\t\titemPrices[i]=0;\n\t\tvar p = i+1;\n\t\tfor (var j=0;j<numItems[i];j++){\n\t\t\tn = j+1;\n\t\t\tvar currItem = \"per\" + p + \"item\" + n;\n\t\t\tvar currItemValue = parseFloat(document.getElementById(currItem).value.substr(1));\n\n\t\t\tsubtotal = subtotal + currItemValue;\n\t\t\titemPrices[i] = itemPrices[i]+currItemValue;\n\t\t\tif (j==numItems[i]-1){\n\t\t\t\tif (currItemValue == 0){\n\t\t\t\t\t$(\"#addItemButton\"+p).attr(\"disabled\", \"disabled\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$(\"#addItemButton\"+p).removeAttr(\"disabled\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tsubtotal += shareditems_price;\n\t$('#runningSubtotalNum').html(displayDollar(subtotal));\n}", "function invoice_get_all_item_rows_main_total()\n{\n var no=$(\"#invoiceForm .invoice_participantRow .invoice_main-group\").length;\n var rows_total_amt = 0;\n var rows_disc_amt = 0;\n var inps = $(\"input[name='invoice_calculated_discount[]']\");\n var n = $(\"input[name='invoice_calculated_discount[]']\").length;\n for(var s=0;s<no;s++)\n {\n var current = $(\"#invoiceForm .invoice_participantRow .invoice_main-group .invoice_main_amount\").eq(s).val();\n if(current){\n rows_total_amt = parseFloat(rows_total_amt) + parseFloat(current);\n }\n else{\n rows_total_amt = parseFloat(rows_total_amt) + 0;\n }\n }\n $('input[name^=\"invoice_calculated_discount\"]').each(function() {\n rows_disc_amt = parseFloat(rows_disc_amt) + parseFloat($(this).val());\n });\n rows_total_amt = parseFloat(rows_total_amt) - parseFloat(rows_disc_amt);\n return rows_total_amt;\n}", "function reviseStock() {\n var table = getCurrentTable();\n if (table === \"error\") return;\n var dic = table.item_id;\n Object.entries(dic).forEach(([key, value]) => {\n changeStock(key, -value);\n })\n}", "function updateInv() {\n var updatedStock = parseInt(res[0].stock_quantity) - parseInt(quantity);\nconnection.query(\"UPDATE products SET stock_quantity = ? WHERE item_id = ?\",[updatedStock, item_id],function (err, updateRes) {\n if (err) throw err;\n });\n}", "function getAndSetSellingPriceforEachItem()\r\n{\r\n\tvar submittedItemRecord = 0;\r\n\r\n\ttry\r\n\t{\r\n\t\t//if items are available\r\n\t\tif(itemRecords != null)\r\n\t\t{\r\n\r\n\r\n\t\t\t//looping through each item record\r\n\t\t\tfor(var itemIndex = 0; itemIndex <= itemRecords.length; itemIndex++)\r\n\t\t\t{\r\n\t\t\t\titemCausedError = false;\r\n\t\t\t\tnlapiLogExecution('audit', 'context.getRemainingUsage()', context.getRemainingUsage());\r\n\r\n\t\t\t\tif(context.getRemainingUsage() <= scriptUsageLimit || (itemIndex == itemRecords.length))\r\n\t\t\t\t{\r\n\t\t\t\t\tnlapiLogExecution('audit', 'rescheduling context.getRemainingUsage()', context.getRemainingUsage());\r\n\r\n\t\t\t\t\t//reschedule this script.\r\n\t\t\t\t\tnlapiScheduleScript(context.getScriptId(), context.getDeploymentId());\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\titemIntID = itemRecords[itemIndex].getValue(itemColumns[0]);\t\t\t\t//getting Item's internal id\r\n\t\t\t\t\titemType = itemRecords[itemIndex].getRecordType();\t\t\t\t\t\t\t//getting Item's type\r\n\t\t\t\t\tbasePrice = itemRecords[itemIndex].getValue(itemColumns[1]);\t\t\t\t//getting Item's base price\r\n\t\t\t\t\titemName = itemRecords[itemIndex].getValue(itemColumns[2]);\t\t\t\t\t//getting Item's name\r\n\t\t\t\t\tvolumetricWeight = itemRecords[itemIndex].getValue(itemColumns[4]);\t\t\t//getting Item's volumetric weight\r\n\t\t\t\t\tdimension1 = itemRecords[itemIndex].getValue(itemColumns[6]);\t\t\t\t//getting Item's dimension1\r\n\t\t\t\t\tdimension2 = itemRecords[itemIndex].getValue(itemColumns[7]);\t\t\t\t//getting Item's dimension2\r\n\t\t\t\t\tdimension3 = itemRecords[itemIndex].getValue(itemColumns[8]);\t\t\t\t//getting Item's dimension3\r\n\r\n\t\t\t\t\t//if the item is a Kit/package (Reason : kit package has no standard average cost, hence a custom field has been used)\r\n\t\t\t\t\tif(itemType == 'kititem')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taverageCost = itemRecords[itemIndex].getValue(itemColumns[5]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse //if the item is not a kit/package \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taverageCost = itemRecords[itemIndex].getValue(itemColumns[3]);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(averageCost == '')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taverageCost = 0.1;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//The item price calculation is done only for following item types \r\n\t\t\t\t\t//(Reason : the multi - currency,multi - pricing and quantity pricing is affecting the following types of items )\t\t\t\r\n\t\t\t\t\t//switch (itemType) \r\n\t\t\t\t\t//{\r\n\t\t\t\t\t//case 'inventoryitem':\r\n\t\t\t\t\t//case 'kititem':\r\n\t\t\t\t\t//case 'noninventoryitem':\r\n\t\t\t\t\t//\tcase 'otherchargeitem':\r\n\t\t\t\t\t//case 'paymentitem':\r\n\r\n\t\t\t\t\t// NOTE : (basePrice != null) is not working\r\n\t\t\t\t\t//if those records are not empty (NOTE : Without those the SOAP request will not work)\r\n\t\t\t\t\tif(basePrice != '' && (dimension1 != '' && dimension2 != '' && dimension3 != '' && volumetricWeight != '')) \t\t\t\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbasePrice = convertToFloat(basePrice);\t\t\t\t//converting the base price to float value with two decimal points\r\n\r\n\t\t\t\t\t\titemRecord = nlapiLoadRecord(itemType,itemIntID);\t//loading the particular item record\r\n\r\n\t\t\t\t\t\tgetPriceLevelAndCurrencyRateForEachDestination();\t//calling the getPriceLevelAndCurrencyRateForEachDestination function\r\n\r\n\t\t\t\t\t\t//if no error in creating shipping lookup record\r\n\t\t\t\t\t\tif(submittedShippingLookupRecord >0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//update the field\r\n\t\t\t\t\t\t\titemRecord.setFieldValue('custitem_itemprice_lastupdated', nsToday);\r\n\t\t\t\t\t\t\titemCausedError = false;\r\n\t\t\t\t\t\t\t//submitting the item record after setting all the item prices for each destination and for particular price levels \r\n\t\t\t\t\t\t\tsubmittedItemRecord = nlapiSubmitRecord(itemRecord);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\titemCausedError = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\titemCausedError = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//calling updateItemErrorFlag function\r\n\t\t\t\t\tupdateItemErrorFlag();\r\n\r\n\t\t\t\t\t//\tbreak;\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\t}\r\n\tcatch(e)\r\n\t{\r\n\t\terrorHandler(\"getAndSetSellingPriceforEachItem : \" , e);\r\n\t} \r\n\r\n}", "function updateGetränke() {\r\n return getränkeItem.inventory -= 1;\r\n}", "function minusQtty(i) {\n if (cart[i].qtty == 1) {\n cart.splice(i, 1);\n createRows();\n } else {\n cart[i].qtty -= 1;\n document.getElementsByClassName(\"cart-quantity\")[i].innerHTML = cart[i].qtty;\n\n /* Update total items in the cart*/\n totalShoppingItems--;\n document.getElementById(\"total-qtty\").innerHTML = totalShoppingItems;\n }\n}", "function totalValue(prods) {\n let inventoryValue = 0;\n for (i = 0; i < prods.length; i += 1 ) {\n inventoryValue += prods[i].inventory * prods[i].unit_price;\n }\n return inventoryValue;\n}", "function inventoryReducer(totals, item){\n // totals[item.type] ? totals[item.type]+= 1 : totals[item.type] = 1;\n totals[item.type] = totals[item.type] + 1 || 1;\n return totals;\n}", "function inventoryReducer(totals, item) {\n\n // increment the type by one\n // if totals.shirt + 1 evaulates to NaN - the program will fallback to the or oporator\n // square brackets look up the property on the object\n totals[item.type] = totals[item.type] + 1 || 1;\n\n // write this out as an if statement\n // if (totals.shirt) {\n // totals.shirt = totals.shirt + 1;\n // // or totals.shirt++\n // } else {\n // totals.shirt = 1;\n // }\n\n\n // return the totals so the next loop can use it\n return totals;\n}", "function enoughInventory() {\n console.log(\"\");\n console.log(\"Thank you for your purcase of the \", currentItemName);\n var totalPrice = userQuantityRequested * currentItemPrice;\n console.log(\"Your total price is: \", totalPrice);\n console.log(\"Your items will be shipped out tommorrow.\");\n decreaseInventory();\n\n}", "calculateTotal(price, skuId, qty) {\n let cartListArr = this.props.elcStore.cartList.length ? JSON.parse(this.props.elcStore.cartList) : {};\n if (Object.keys(cartListArr).length && cartListArr[skuId] !== undefined) {\n for (let x in cartListArr) {\n if (x === skuId) {\n cartListArr[skuId] = {qty: cartListArr[skuId].qty + qty};\n }\n }\n } else {\n cartListArr[skuId] = {qty: qty};\n }\n const total = this.state.total + (price * qty);\n const cartList = cartListArr;\n this.props.elcStore.cartListUpdate(total, cartList);\n }", "function decrimentQuantity(){\n if(quantity > 1){\n let currentCost = (document.getElementById(\"cat-harness-item-cost\").innerHTML).replace( /^\\D+/g, '');\n totalCost = totalCost-(parseInt(currentCost)/(quantity));\n }\n quantity = parseInt(document.getElementById(\"num-items\").innerHTML, 10) - 1;\n if (quantity < 1) { quantity = 1; }\n document.getElementById(\"num-items\").innerHTML = quantity;\n document.getElementById(\"cat-harness-item-cost\").innerHTML = \"$\" + totalCost;\n \n}", "function updatecart() {\r\n //initialize the total variable with 0 (if we don't initialize it our cart will show NaN since it has no value at all)\r\n var total = 0\r\n //we get the value from the quantity input box and we check if it the user gave an input <= than 0 or not given an input at all. If this happened then >>\r\n // we set the value to 1 (there is no point in having a negative or zero or undefined quantity... it will also cause trouble in calculating the total price)\r\n var input = event.target\r\n if (input.value <= 0 || input.value == NaN) {\r\n input.value = 1\r\n }\r\n //cartitem_all gets the element of our shopping cart containing all cart items\r\n var cartitem_all = document.getElementsByClassName('cart-items')[0]\r\n // rows11 gets a list of all the cart rows where each row is a package we have in our shopping cart with all its data \r\n var rows11 = cartitem_all.getElementsByClassName('cart-row')\r\n // we create a loop that goes through every package in our cart (if existing) and executes the commands in {}\r\n for (var i = 0; i < rows11.length; i++) {\r\n // in cartRow we save the package element that we are processing in each time the loop runs\r\n var cartRow = rows11[i]\r\n // we get the price of that package and save it into \"priceElement\"\r\n var priceElement = cartRow.getElementsByClassName('cart-price')[0]\r\n // we get the quantity of that package and save it into \"quantityElement\" NOTE: Here we use [1] since when creating the element we have used the class >>\r\n // \"cart-quantity-input\" 2 times one for styling. So we need to call the 2nd one which is having the actual value\r\n var quantityElement = cartRow.getElementsByClassName('cart-quantity-input')[1]\r\n // we change the type of \"price\" from string to float so we can use it in a math equation. HOWEVER >>\r\n // Before doing so we replace the euro sign with nothing (we remove it) from our variable since we want only the number that makes sense for math equations\r\n var price = parseFloat(priceElement.innerText.replace('€', ''))\r\n // we get the value part of the quantityElement since it is the one containing the number value and we save it in \"quantity\"\r\n var quantity = quantityElement.value\r\n // this is an obvious math equation to calculate the total price. Note that we +total at the beginning since this is in a loop running for each package in the cart\r\n total = total + (price * quantity)\r\n }\r\n // we use the Math.round to avoid having numbers with too many decimals coming from a multiplication. We set them to be with only 2 decimals rounded which >>\r\n // make sense when talking about money\r\n total = Math.round(total * 100) / 100\r\n // we get the \"cart-total-price\" element and we write inside it the euro sign and the number which is rounded to 2 decimals to be displayed in out total price section\r\n document.getElementsByClassName('cart-total-price')[0].innerText = '€' + total\r\n}", "function inventory() { }", "function transresAdjustQuantity(invoiceItemRow) {\n var quantity = invoiceItemRow.find(\".invoiceitem-quantity\").val();\n var additionalQuantity = invoiceItemRow.find(\".invoiceitem-additionalQuantity\").val();\n var totalQuantity = invoiceItemRow.find(\".original-total-quantity\").val();\n\n if( totalQuantity == 0 ) {\n return;\n }\n\n var newAdditionalQuantity = parseInt(totalQuantity) - parseInt(quantity);\n\n if( newAdditionalQuantity != additionalQuantity ) {\n invoiceItemRow.find(\".invoiceitem-additionalQuantity\").val(newAdditionalQuantity);\n }\n}", "updateTotals(){\r\n\t\tvar rows = document.getElementById('orderDetailsBody')['rows'], subTotal=0, freight, x, grandTotal;\r\n\t\t//console.log(rows[0]['cells'][4].innerText);\r\n\t\t//console.log(rows[0]['cells'][1]['children'][0]['value']);\t\t//Unit Price\r\n\t\t//console.log(rows[0]['cells'][2]['children'][0]['value']);\t\t//Quantity\r\n\t\t//console.log(rows[0]['cells'][3]['children'][0]['value']);\t\t//Discount\r\n\t\t//console.log(rows[0]['cells'][4]['children'][0]['value']);\t\t//Extented Price\r\n\t\t//console.log(rows[0]['cells'][4]['innerText']);\r\n\t\t//this.commaFormatted(''+ (unitPrice).toFixed(2));\r\n\r\n\t\t//Calculate the 'Extended Price' cell of every row in the order-details HTML table.\r\n\t\t//And set it in its cell as a string comma formatted.\r\n\t\tfor(let r = 0; r < rows.length; r += 1){\r\n\t\t\tlet unitPrice = this.ParseFloat(rows[r]['cells'][1]['children'][0]['value']);\r\n\t\t\tlet quantity = this.ParseFloat(rows[r]['cells'][2]['children'][0]['value']);\r\n\t\t\tlet discount = this.ParseFloat(rows[r]['cells'][3]['children'][0]['value']);\r\n\t\t\tif(discount >= 1.0){\r\n\t\t\t\tdiscount = discount /100.0;\r\n\t\t\t}\r\n\t\t\tlet extPrice = (unitPrice * (1 - discount)) * quantity;\r\n\t\t\trows[r]['cells'][4]['innerText'] = this.commaFormatted(''+ (extPrice).toFixed(2));\r\n\t\t\tsubTotal += extPrice;\r\n\t\t\tif(discount < 1.0){\r\n\t\t\t\tdiscount = (discount * 100.0);\r\n\t\t\t}\r\n\t\t\trows[r]['cells'][3]['children'][0]['value'] = ''+ ((discount).toFixed(0)) + '%';\r\n\t\t}\r\n\t\t\r\n\t\tx = this.commaFormatted(''+ (subTotal).toFixed(2));\r\n\t\tthis.setIdValue('SubTotal', x);\r\n\t\t\r\n\t\tfreight = this.ParseFloat(this.getInputBoxValue('Freight'));\r\n\t\tx = this.commaFormatted(''+ (freight).toFixed(2));\r\n\t\tthis.setInputBoxValue('Freight', x);\r\n\r\n\t\tgrandTotal = subTotal + freight;\r\n\t\tx = this.commaFormatted(''+ (grandTotal).toFixed(2));\r\n\t\tthis.setIdValue('ExtendedTotal', x);\r\n\r\n\t\treturn 0;\r\n\t}", "function processItem(qty, answer, dbResponse)\n{\n qty = parseInt(qty);\n\n var id = answer.stuff.substring(0,(answer.stuff.indexOf(\".\")));\n\n // console.log(\"ID: \", id);\n \n id = parseInt(id);\n\n // console.log(\"Ordering \", dbResponse[id-1].product_name, \"Quanity in Stock \", dbResponse[id-1].stock_quantity);\n if (qty <= dbResponse[id-1].stock_quantity)\n {\n // update inventory\n updateInventory(dbResponse[id-1], qty);\n }\n else\n { \n console.log(\"Sorry, inventory too low\");\n loopIt();\n }\n}", "function updateInventory(arr1, arr2) {\n // All inventory must be accounted for or you're fired!\n}", "function updateItem(row, data) {\n // Recalculate totals\n var oldTotal = parseFloat(row.children(\".row-total\").text());\n var newTotal = parseFloat(data.price) * parseFloat(data.quantity);\n var sumTotal = parseFloat($(\"#valueSum\").text());\n\n // Update row\n row.children(\".row-product\")\n .children(\"span\")\n .text(data.product);\n\n row.children(\".row-quantity\")\n .text(data.quantity);\n\n row.children(\".row-price\")\n .text(data.price);\n\n row.children(\".row-total\")\n .text(newTotal);\n\n row.data(\"item\", data);\n\n // Update total\n $(\"#valueSum\")\n .text( (sumTotal - oldTotal) + newTotal );\n}", "function compute_subtotal(items) {\n\t$(\".wddp-shopping-cart\").text(\"Shopping cart total: $\" + Object.values(items).reduce((x, y) => (x + y), 0));\n}", "function updateInvoice() {\n var total = 0, cells, price, i;\n $(\"#item-details tr\").each( function(index, element) {\n cells = $(element).children().toArray();\n price = parseFloat($(cells[1]).text()) * parseFloat($(cells[2]).text());\n total += price;\n if (!isNaN(price)) {\n $(cells[3]).text(price);\n } else {\n $(cells[3]).text(0);\n }\n });\n if (!isNaN(total)) {\n $(\"#total-price\").text(total);\n }\n }", "[REDUCE_ITEM](state, payload) {\n state.cartItems.filter(e => {\n if (e.id === payload) {\n if (e.quantity > 1) {\n const quantity = e.quantity - 1;\n return {\n ...e,\n quantity\n }\n }\n }\n return e;\n });\n }", "function addToInventory(determine) {\n App[App.myRole].inventory[determine-1].quantity++;\n }", "function calculateListPriceItem(thisItem)\r\n{\r\n\t// The return price value\r\n\tvar returnListPriceItem = null;\r\n\t\r\n\tvar thisItemCode = null;\r\n\tvar thisItemQuantity = null;\r\n\tvar thisItemIsInvoiced = 'F';\r\n\tvar thisItemIsIgnored = 'F';\r\n\tvar thisItemTransferZeroOverride = 'F';\r\n\tvar itemObj = new Object();\r\n\t\r\n\t// Obtain the correct tax code and it's corresponding internal ID\r\n\tvar taxItem = getXMLTreeElementDatabyName(XMLVATCODE, thisItem); // From VAT answer\r\n\tif (taxItem != 'INT' && (taxItem == null || taxItem.indexOf('-') == -1))\r\n\t{\r\n\t\t// Default to INT if not a vaild code - during development use only !!!!\r\n\t\t//taxItem = 'INT';\r\n\t\taddToErrorsXML(\"calculateListPriceItem : \" + thisItem + \"/\" + itemsCount,\r\n\t\t\t\t\"Missing Tax Code in XML Answer\");\r\n\t\treturn returnListPriceItem;\r\n\t}\r\n\tvar taxItemID = genericSearch('salestaxitem', 'name', taxItem);\r\n\r\n\ttry\r\n\t{\r\n\t\t// Get the particular line item code / part no. from the XML nodes array\r\n\t\tthisItemCode = getXMLTreeElementDatabyName(XMLITEMCODE, thisItem);\r\n\t\tif (thisItemCode)\r\n\t\t{\r\n\t\t\t// Cross reference from the item id to the internal id and load item record\r\n\t\t\t// Take item values required for answer assembly and store in item(s) array\r\n\t\t\titemID = genericSearch('noninventoryitem', 'itemid', thisItemCode);\r\n\t\t\titemRecord = nlapiLoadRecord('noninventoryitem', itemID);\t\t\t\r\n\t\t\tif (itemRecord)\r\n\t\t\t{\t\r\n\t\t\t\t// Whether the item will be invoiced - if 'F' will create an estimate\r\n\t\t\t\t// / sales order line item but will not carry through to invoice\r\n\t\t\t\tthisItemIsInvoiced = itemRecord.getFieldValue('custitem_alignbv_to_invoice');\t\r\n\t\t\t\t// Whether the item will be ignored - if 'T' will not create a \r\n\t\t\t\t// sales order item but will create an estimate line item for audit purposes\r\n\t\t\t\tthisItemIsIgnored = itemRecord.getFieldValue('custitem_alignbv_ignore_on_salesorder');\t\r\n\t\t\t\tthisItemTransferZeroOverride = itemRecord.getFieldValue('custitem_alignbv_transferprice_zero');\t\r\n\t\t\t\t\r\n\t\t\t\t// The quantity supplied in the TIBCO feed record for this item\r\n\t\t\t\tthisItemQuantity = getXMLTreeElementDatabyName(XMLITEMQUANTITY, thisItem);\r\n\t\t\t\t\r\n\t\t\t\titemObj.invoiced = thisItemIsInvoiced;\r\n\t\t\t\titemObj.ignored = thisItemIsIgnored;\r\n\t\t\t\titemObj.internalid = itemID;\r\n\t\t\t\titemObj.itemid = thisItemCode;\r\n\t\t\t\titemObj.quantity = thisItemQuantity;\r\n\t\t\t\t// Deprecated during CRP1 - use local description, not one supplied via TIBCO\r\n\t\t\t\t// itemObj.description = getXMLTreeElementDatabyName(XMLITEMDESCRIPTION, thisItem);\r\n\t\t\t\titemObj.description = itemRecord.getFieldValue('displayname');\r\n\t\t\t\titemObj.taxcode = taxItemID; // From VAT answer\r\n\t\t\t\titemObj.family = itemRecord.getFieldValue('class');\r\n\t\t\t\titemObj.upperstage = getXMLTreeElementDatabyName(XMLITEMUPPERSTAGE, thisItem);\r\n\t\t\t\titemObj.lowerstage = getXMLTreeElementDatabyName(XMLITEMLOWERSTAGE, thisItem);\r\n\t\t\t\titemObj.zeropriceoverride = thisItemTransferZeroOverride;\r\n\t\t\t\titemObj.transferprice = getXMLTreeElementDatabyName(XMLITEMTRANSFERPRICE, thisItem);\t\t\t\r\n\t\t\t\r\n\t\t\t\t// See whether the transfer price is zero and the item override flag is T\r\n\t\t\t\t// If both true, set price to zero and skip pricing, and also if the item\r\n\t\t\t\t// Is not to be invoiced or ignored ...\r\n\t\t\t\tif ((thisItemTransferZeroOverride == 'T' && itemObj.transferprice == 0))\r\n\t\t\t\t{\r\n\t\t\t\t\titemObj.listprice = 0.00;\r\n\t\t\t\t\titemObj.pricequantity = thisItemQuantity;\t\r\n\t\t\t\t\treturnListPriceItem = 0.00;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n \t\t\t\t{\r\n\t\t\t\t\t// Work out the correct price for this product & quantity\r\n\t\t\t\t\t// (separate function)\r\n\t\t\t\t\t// Returns an object with the price / quantity to use on\r\n\t\t\t\t\t// Estimate / Order\r\n\t\t\t\t\t// Note : the quantity input may not match the value\r\n\t\t\t\t\t// returned based on Q/B type\r\n\t\t\t\t\tlistPriceItemObj = getListPriceForItemQuantity(\r\n\t\t\t\t\t\t\tthisItemCode, thisItemQuantity);\r\n\r\n\t\t\t\t\t// If return is -1 the price is not found\r\n\t\t\t\t\tif (listPriceItemObj.price != -1) {\r\n\t\t\t\t\t\titemObj.listprice = listPriceItemObj.price;\r\n\t\t\t\t\t\titemObj.pricequantity = listPriceItemObj.quantity;\r\n\t\t\t\t\t\treturnListPriceItem = listPriceItemObj.price;\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// If not to be invoiced / ignored, set to zero, otherwise an error\r\n\t\t\t\t\t\tif (thisItemIsInvoiced == 'F' || thisItemIsIgnored == 'T')\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\titemObj.listprice = 0.00;\r\n\t\t\t\t\t\t\titemObj.pricequantity = thisItemQuantity;\t\r\n\t\t\t\t\t\t\treturnListPriceItem = 0.00;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\titemObj.listprice = null;\r\n\t\t\t\t\t\t\taddToErrorsXML(\"calculateListPriceItem : \" + thisItem\r\n\t\t\t\t\t\t\t\t\t+ \"/\" + itemsCount,\r\n\t\t\t\t\t\t\t\t\t\"Missing List Price record for item : \"\r\n\t\t\t\t\t\t\t\t\t+ thisItemCode);\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n \t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\titemsArray[thisItem-1] = itemObj;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse // Cannot find / load the NetSuite item\r\n\t\t\t{\r\n\t\t\t\taddToErrorsXML(\"calculateListPriceItem : \" + thisItem + \"/\"\r\n\t\t\t\t\t\t+ itemsCount, \"Missing Item Record : \" + itemID);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse // No XMLITEMCODE present\r\n\t\t{\r\n\t\t\taddToErrorsXML(\"calculateListPriceItem : \" + thisItem + \"/\"\r\n\t\t\t\t\t+ itemsCount, \"Missing XML data element : \" + XMLITEMCODE);\r\n\t\t}\r\n\r\n\t}\r\n\tcatch (e)\r\n\t{\r\n\t\taddToErrorsXML(\"calculateListPriceItem\", e);\r\n\t}\r\n\r\n\tif (debugOn)\r\n\t\tnlapiLogExecution('DEBUG', \"calculateListPriceItem(\" + thisItem + \"/\"\r\n\t\t\t\t+ itemsCount + \") ==> \" + returnListPriceItem,\r\n\t\t\t\t\"thisItemIsInvoiced=[\" + thisItemIsInvoiced + \"] ItemCode=[\" + thisItemCode + \"] taxItem=[\" + taxItem + \"] taxItemID=[\" + taxItemID + \"]\");\r\n\r\n\treturn returnListPriceItem;\r\n}", "function profit(arg){\n \n let result = 0;\n result = ( arg.sellPrice * arg.inventory) - (arg.costPrice * arg.inventory) ;\n result = Math.round(result);\n console.log(result);\n }", "function CalItemTotal(){\r\n var qty = document.getElementById('txt_item_qty').value;\r\n var price = document.getElementById('txt_item_price').value;\r\n var disc = document.getElementById('txt_item_disc').value;\r\n var tax = document.getElementById('txt_item_tax').value;\r\n if(qty == 0 || qty == '' || isNaN(qty) == true || qty == null) {\r\n qty = 1;\r\n }\r\n price = CheckNumeric(price);\r\n disc = CheckNumeric(disc);\r\n if(eval(disc) > eval(price)) {\r\n document.getElementById('txt_item_disc').value = price;\r\n disc = price;\r\n }\r\n document.getElementById(\"item_tax\").innerHTML = parseFloat(((eval(price)-eval(disc))*tax/100)).toFixed(2);\r\n document.getElementById(\"item_total\").innerHTML = parseFloat(((eval(price)-eval(disc))*qty*tax/100)+((eval(price)-eval(disc))*qty)).toFixed(2);\r\n document.getElementById(\"txt_item_total\").value = parseFloat(((eval(price)-eval(disc))*qty*tax/100)+((eval(price)-eval(disc))*qty)).toFixed(2);\r\n}", "function CalItemTotal(){\r\n var qty = document.getElementById('txt_item_qty').value;\r\n var price = document.getElementById('txt_item_price').value;\r\n var disc = document.getElementById('txt_item_disc').value;\r\n var tax = document.getElementById('txt_item_tax').value;\r\n if(qty == 0 || qty == '' || isNaN(qty) == true || qty == null) {\r\n qty = 1;\r\n }\r\n price = CheckNumeric(price);\r\n disc = CheckNumeric(disc);\r\n if(eval(disc) > eval(price)) {\r\n document.getElementById('txt_item_disc').value = price;\r\n disc = price;\r\n }\r\n document.getElementById(\"item_tax\").innerHTML = parseFloat(((eval(price)-eval(disc))*tax/100)).toFixed(2);\r\n document.getElementById(\"item_total\").innerHTML = parseFloat(((eval(price)-eval(disc))*qty*tax/100)+((eval(price)-eval(disc))*qty)).toFixed(2);\r\n document.getElementById(\"txt_item_total\").value = parseFloat(((eval(price)-eval(disc))*qty*tax/100)+((eval(price)-eval(disc))*qty)).toFixed(2);\r\n}", "function handleExcess(origBalance,newBalance,id,qty){\r\n\tif(origBalance<=200){\r\n\t\tvar shelfId = alasql('SELECT * FROM shelves WHERE warehouseid = ? AND productcode = ? ',[findValue('whouse',id),findValue('code',id)])[0].id;\r\n\t\talasql('UPDATE shelves SET quantity = ? WHERE warehouseid = ? AND productcode = ? ',[ newBalance, findValue('whouse',id), findValue('code',id) ] );\r\n\t}else{\r\n\t\tvar rows = alasql('SELECT * FROM shelves WHERE warehouseid = ? AND productcode = ? ORDER BY id DESC',[ findValue('whouse',id), findValue('code',id) ]);\r\n\t\tfor(var i=0;i<rows.length && qty>0;i++){\r\n\t\t\tif(rows[i].quantity>qty){\r\n\t\t\t\talasql('UPDATE shelves SET quantity = ? WHERE id = ? AND warehouseid = ? AND productcode = ? ',[ rows[i].quantity - qty, rows[i].id, rows[i].warehouseid , rows[i].productcode ] );\r\n\t\t\t}else{\r\n\t\t\t\talasql('DELETE FROM shelves WHERE id = ? AND warehouseid = ? AND productcode = ?', [rows[i].id,rows[i].warehouseid, rows[i].productcode]);\r\n\t\t\t}\r\n\t\t\tqty -= rows[i].quantity;\r\n\t\t}\r\n\t}\t\r\n}", "function updateprice(qid) {\t\n\n var rqid = qid.split('_');\n rid = rqid[0];\n id = rqid[0]+rqid[1];\n\t\n var oldqty = $('#oldqty'+id).val();\n var newqty = $('#qty'+id).val();\n\t\n var numprice = $('#item_price'+id).html().replace('$', '');\t\t\t\t\n var numsubtotal = $('#subtotal'+rid).html().replace('$', ''); \n var numtotal = $('#total'+rid).html().replace('$', ''); \t\n\n // get new amount\n var qty2 = + Number(newqty - oldqty);\n var numprice2 = Math.abs(qty2) * numprice;\n\t\t\t\n // minus / plus amount\n if (oldqty < newqty) {\n newSubtotal = Number(numsubtotal) + Number(numprice2);\t\t\n newTotal = Number(numtotal) + Number(numprice2); \t\n } else {\n newSubtotal = Number(numsubtotal) - Number(numprice2);\t\t\n newTotal = Number(numtotal) - Number(numprice2);\t\n }\n\n newSubtotal = newSubtotal.toFixed(2);\n newTotal = newTotal.toFixed(2);\n\t\n $('#subtotal'+rid).html('$' + newSubtotal );\t\n $('#total'+rid).html( '$' + newTotal );\n $('#oldqty'+id).val(newqty);\n \t\n}", "function updatePrice() {\n var count = 0;\n var mat_count = $(\"#tbody-items\").children();\n $.each(mat_count, function (key, value) {\n count++;\n });\n $(\"#count-material\").text(count);\n\n var allprice = 0;\n $(\"td[name='allprice-material']\").each(function (key, value) {\n var res = $(this).text().split(',');\n var price = '';\n $.each(res, function (key2, value2) {\n price += value2\n });\n allprice += parseFloat(price);\n });\n $(\"#allprice-allmaterial\").text(allprice.toFixed(2)).digits();\n\n}", "function update_price() {\n var row = $(this).parents('.item-row');\n var cost = row.find('.rate').val();\n var qty = row.find('.qty').val();\n //console.log(row,cost,qty)\n // console.log(row.find('.price'))\n row.find('.price').val(Number(qty) * Number(cost));\n subTot.textContent = \"Sub Total: \" + summing();\n tot.textContent=\"Total: \"+summing()*1.5;\n\n }", "function CalculateItem(listCart) {\n var i;\n var result = {\n totalQuanlity: 0,\n totalValue: 0\n };\n if (listCart === null) return result;\n for (i = 0; i < listCart.length; i++) {\n result.totalQuanlity = Number(result.totalQuanlity) + Number(listCart[i].quantity);\n result.totalValue = Number(result.totalValue) + Number(listCart[i].total);\n }\n return result;\n}", "function updateSubtot($product) {\n // Iteration 1.1\n let priceUnit = $product.querySelector(\".pu span\").innerText;\n let quantityUnit = $product.querySelector(\".qty label input\").value;\n let newSubTotal = Number(priceUnit) * Number(quantityUnit);\n \n $product.querySelector(\".subtot span\").innerText = newSubTotal;\n return newSubTotal;\n}", "function updateSubtot(product) {\n let sum = 0;\n for (let i = 0; i < rows.length; i++) {\n let currentProduct = rows[i];\n let subTotal = currentProduct.querySelector('.subtot');\n let quantity = currentProduct.querySelector('.qty input').value;\n let currPrice = currentProduct.querySelector('.pu span').innerHTML;\n subTotal.innerHTML =\n '$' + (Number(quantity) * Number(currPrice)).toFixed(2);\n sum += Number(quantity) * Number(currPrice);\n }\n total = sum.toFixed(2);\n // calcAll();\n //we could use calcAll(), so when we add qty it could calculate total at same time.\n //instead of extra click for total.\n}", "function UpdateOrder(){\nvar G = Grids[0];\nvar F = G.GetRowById(\"Results\"); // Gets the row to display there the report\n\nvar A = new Array(),a=0;\nvar D = [[\"B\",\"BASIC\"],[\"P\",\"PERSONAL\"],[\"S\",\"STANDARD\"],[\"G\",\"GRAND\"]];\n\n// --- Iterates all variable rows and checks if the appropriate cells contain value\nfor(var r=G.GetFirst();r;r=G.GetNext(r)){\n if(r.id=='UPG') continue; // upgrades\n if(r.id=='SCE'){ // Source code escrow\n var x = new Object();\n x.Count = r.SP;\n x.Price = 250*x.Count;\n x.Name = r.I + \" \" + G.GetString(r,\"S\").replace(/DIV/g,\"I\");\n x.Id = r.id;\n if(x.Count) A[a++] = x;\n }\n else if(r.id==\"CW\"){ // custom work\n var x = new Object();\n x.Count = r.SP;\n x.Price = 55*x.Count;\n x.Name = \"custom work\";\n x.Id = r.id;\n if(x.Count) A[a++] = x;\n }\n else for(var i=0;i<4;i++){ // normal license or support\n var o = D[i][0], p = o+\"P\";\n if(r[o]){\n var x = new Object();\n A[a++] = x;\n var id = r.id.split(\"_\");\n if(r.id=='ES' || r.id=='ESA'){ \n x.Id = id[0];\n x.Name = (r.id=='ES' ? \"Extended support for \" : \"Extended support for whole lifetime of \") + G.GetString(r,\"I2\")+\" <B>\"+D[i][1]+\"</B>\";\n\t\t\t\t}\n else {\n x.Id = o+id[0];\n x.Name = r.I+\" <B>\"+D[i][1]+\"</B>\";\n }\n x.Count = r[o];\n x.Col = o;\n x.Row = r;\n \n if(id[1]){ // extended support\n var y = new Object();\n A[a++] = y;\n y.Count = x.Count;\n if(id[1]==1){ // one year\n y.Id = \"ES\";\n y.Name = \"Extended support for \"+x.Name;\n y.Price = r[p]*x.Count/11;\n x.Price = r[p]*x.Count/11*10;\n }\n else { // whole lifetime\n y.Id = \"ESA\";\n y.Name = \"Extended support for whole lifetime of \"+x.Name;\n y.Price = r[p]*x.Count/15*5;\n x.Price = r[p]*x.Count/15*10;\n }\n }\n else x.Price = r[p]*x.Count;\t\n }\n }\n } \n\n// --- Creates the report text ---\nF.BP = \"\";\n\n// --- Upgrade ---\nvar U = G.GetRowById('UPG'), c = null;\nG.SetValue(U,\"O\",0,1);\nif(U.I2){\n for(var i=0;i<4;i++)\tif(U[D[i][0]]){ c = D[i][0]; break; }\n if(c){\n var Upg = [[\"PGS\",\"PGE\",\"TGS\",\"TGE\",\"TGC\"],[\"PTS\",\"PTE\",\"TGS\",\"TGE\",\"TGC\"]];\n F.BP += \"<BR><I>You declare you have already purchased these components:</I><BR>\";\n F.BP += \"&nbsp;&nbsp;&nbsp;<SPAN style='color:red;'><B>1</B>x \"+G.GetString(U,\"I2\")+\" \"+D[i][1]+\"</SPAN><BR>\";\n }\n }\n\nif(a){\n LCnt = new Object(); LPrice = new Object();\n F.BP+=F.BP ? \"<HR>\" : \"<BR>\";\n F.BP += \"<B>Your order:</B><BR>\";\n for(var i=0;i<A.length;i++){\n if(A[i]){ \n var mult = \"x\";\n if(A[i].Id==\"ES\" || A[i].Id==\"SCE\") mult = A[i].Count==1 ? \" year of\" : \" years of\";\n else if(A[i].Id==\"ESA\"); // nothing\n else if(A[i].Id==\"CW\") mult = A[i].Count==1 ? \" hour of\" : \" hours of\";\n else if(c){ // upgrade\n if(A[i].Count>1){ // More counts for one upgrade, divides it\n var P = new Object();\n for(var x in A[i]) P[x] = A[i][x];\n A[i].Price = A[i].Price / A[i].Count;\n A[A.length] = P;\n P.Count = A[i].Count-1;\n P.Price = A[i].Price*P.Count;\n A[i].Count = 1;\n }\n var pric = 0;\n var r = G.GetRowById(A[i].Id.slice(1));\n if(U.I2<=7){ // Upgrade from previous\n pric+=U[c+\"P\"]*0.4;\n }\n var dp = r[c+\"P\"] - U[c+\"P\"];\n if(dp<0){ // ### error\n F.BP += \"&nbsp;&nbsp;&nbsp;<SPAN style='color:red;'>Cannot upgrade to selected product!</SPAN><BR>\";\n }\n else {\n pric+=dp*1.25;\n var dp = r[A[i].Col+\"P\"] - r[c+\"P\"];\n if(dp<0 || dp==0 && A[i].Col!=c || A[i].Col=='P' && c=='S'){ // ### error\n F.BP += \"&nbsp;&nbsp;&nbsp;<SPAN style='color:red;'>Cannot upgrade to selected license type!</SPAN><BR>\";\n }\n else {\n pric+=dp*1.25;\n if(A[i].Price<=pric || pric<=0){ // ### useless\n F.BP += \"&nbsp;&nbsp;&nbsp;<SPAN style='color:red;'>Upgrading would be inconvenient!</SPAN><BR>\";\t\n }\n else { \n G.SetValue(U,\"O\",pric - A[i].Price,1);\n A[i].Price = pric;\n c=\"\";\n }\n }\n }\n }\n F.BP += \"&nbsp;&nbsp;&nbsp;<SPAN style='color:blue;'><B>\"+A[i].Count + \"</B>\"+mult+\" \"+A[i].Name+\"</SPAN><BR>\";\n if(!LCnt[A[i].Id]) LCnt[A[i].Id] = A[i].Count;\n else LCnt[A[i].Id] += A[i].Count;\n if(!LPrice[A[i].Id]) LPrice[A[i].Id] = A[i].Price;\n else LPrice[A[i].Id] += A[i].Price;\n }\n }\n F.BP += \"<HR>\";\n F.BP += \"Total order price is <B>\"+F.O+\"</B> USD&nbsp;&nbsp;&nbsp;<BUTTON onclick='Submit();'><B style='color:\\\"green\\\"'>Purchase this order</B></BUTTON><BR>\";\n F.BP += \"<BR>\"; \n }\nelse F.BP = \"<I>No order yet</I>\"\n\nG.RefreshRow(F); // refreshes the row \nG.SetScrollBars(); // updates the grid size when report changed\n}", "function addItem(item){\r\n\tvar found = false;\r\n\tfor(var i =0; i < inventory.length; i++){\r\n\t\tif(inventory[i].name == item.name){\r\n\t\t\tinventory[i].qty += item.qty;\r\n\t\t\tfound = true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\tif(!found){\r\n\t\tinventory.push(assignItem(invMaster[item.name]));\r\n\t}\r\n}", "function loadClickUpgrades() {\n let storedClickInventory = JSON.parse(window.localStorage.getItem('player.clickInventory'));\n console.log(storedClickInventory);\n\n if (storedClickInventory.length !== 0) {\n console.log('inside loadClickUpgrades');\n console.log(storedClickInventory);\n player.clickInventory = storedClickInventory;\n console.log(player.clickInventory);\n\n\n let shovelCount = 0;\n let excavatorCount = 0;\n player.clickInventory.forEach(item => {\n if (item.name === 'shovel') {\n shovelCount++;\n excavatorCount++;\n }\n\n });\n\n console.log(shovelCount);\n\n clickUpgrades['shovel'].quantity = shovelCount;\n clickUpgrades['excavator'].quantity = excavatorCount;\n\n let shovels = [];\n let excavators = [];\n\n storedClickInventory.forEach(item => {\n if (item.name === 'shovel') {\n shovels.push(item);\n }\n\n if (item.name === 'excavator') {\n excavators.push(item);\n }\n });\n\n //console.log(shovels);\n //console.log(shovels.length);\n //console.log(shovels.length - 1);\n //console.log(shovels[shovels.length -1].price);\n\n if (shovels.length !== 0) {\n\n\n\n let shovelPrice = shovels[shovels.length - 1].price;\n let shovelNewPrice = shovels[shovels.length - 1].newprice;\n\n clickUpgrades['shovel'].price = shovelPrice;\n clickUpgrades['shovel'].newprice = shovelNewPrice;\n\n }\n\n if (excavators.length !== 0) {\n\n let excavatorPrice = excavators[excavators.length - 1].price;\n let excavatorNewPrice = excavators[excavators.length - 1].newprice;\n\n clickUpgrades['excavator'].price = excavatorPrice;\n clickUpgrades['excavator'].newprice = excavatorNewPrice;\n\n }\n\n }\n else {\n loadInitialSettings();\n }\n\n}", "function quantityAdjust() {\n\n\t\tvar arrQuantityInput = document.querySelectorAll('.adjust_number');\n\n\t\t// only define variables if this is a cart page\n\t\tif (isCartCheckout || isCartCSR) {\n\n\t\t\tvar elButtonUpdate = document.getElementById('button_update'),\n\t\t\t\telButtonFinalize = document.getElementById('button_finalize'),\n\t\t\t\tarrValuesOriginal = [],\n\t\t\t\tarrValuesNew = [];\n\n\t\t}\n\n\t\t// for each input[type=\"number\"] found on the cart page\n\t\tfor (var i = 0; i < arrQuantityInput.length; i++) {\n\t\t\tquantityIncrements(arrQuantityInput[i], i);\n\t\t}\n\n\t\tfunction quantityIncrements(thisQuantityInput, thisIndex) {\n\n\t\t\tvar thisID = thisQuantityInput.getAttribute('name'),\n\t\t\t\tthisMin = parseInt( thisQuantityInput.getAttribute('min') ),\n\t\t\t\tthisMax = parseInt( thisQuantityInput.getAttribute('max') ),\n\t\t\t\tthisValue = parseInt( thisQuantityInput.value ),\n\t\t\t\telQuantityDecrease = thisQuantityInput.nextElementSibling,\n\t\t\t\telQuantityIncrease = elQuantityDecrease.nextElementSibling,\n\t\t\t\tenteredValue;\n\n\t\t\t// if cart page, push captured quantity values to our arrays\n\t\t\tif (isCartCheckout || isCartCSR) {\n\t\t\t\tarrValuesOriginal.push(thisValue);\n\t\t\t\tarrValuesNew.push(thisValue);\n\t\t\t}\n\n\t\t\t// if clicking the 'minus' button\n\t\t\telQuantityDecrease.addEventListener('click', function(e) {\n\n\t\t\t\t// currently not allowed to be set to 0...\n\t\t\t\t// removing an item can only be achieved by using the 'remove' link...\n\t\t\t\t// if we want to allow for a 0 value, then updating the cart will remove that product\n\n\t\t\t\t// as long as thisQuantityInput value is greater than the allowed minimum, decrement value\n\t\t\t\tif (thisValue != thisMin) {\n\n\t\t\t\t\tthisValue--;\n\t\t\t\t\tthisQuantityInput.value = thisValue;\n\t\t\t\t\tthisQuantityInput.setAttribute('value', thisValue);\n\n\t\t\t\t\telQuantityIncrease.classList.remove('disabled');\n\n\t\t\t\t\tcompareValues();\n\n\t\t\t\t} else {\n\n\t\t\t\t\tthis.classList.add('disabled');\n\n\t\t\t\t}\n\n\t\t\t\te.preventDefault();\n\n\t\t\t}, false);\n\n\t\t\t// if clicking the 'plus' button\n\t\t\telQuantityIncrease.addEventListener('click', function(e) {\n\n\t\t\t\t// as long as the thisQuantityInput value is not equal to the allowed maximum, increment value\n\t\t\t\tif (thisValue != thisMax) {\n\n\t\t\t\t\tthisValue++;\n\t\t\t\t\tthisQuantityInput.value = thisValue;\n\t\t\t\t\tthisQuantityInput.setAttribute('value', thisValue);\n\n\t\t\t\t\telQuantityDecrease.classList.remove('disabled');\n\n\t\t\t\t\tcompareValues();\n\n\t\t\t\t} else {\n\n\t\t\t\t\tthis.classList.add('disabled');\n\n\t\t\t\t}\n\n\t\t\t\te.preventDefault();\n\n\t\t\t}, false);\n\n\t\t\t// if manually entering a value (using 'input' instead of 'change' to immediately prevent invalid input)\n\t\t\tthisQuantityInput.addEventListener('input', function() {\n\n\t\t\t\t// need to recapture the input value\n\t\t\t\tenteredValue = parseInt(this.value);\n\n\t\t\t\t// as long as the user has not entered a value less than or greater than the allowed limit\n\t\t\t\tif ( enteredValue < thisMin || enteredValue > thisMax || isNaN(enteredValue) ) {\n\n\t\t\t\t\tthisValue = thisValue;\n\t\t\t\t\tthisQuantityInput.value = thisValue;\n\t\t\t\t\tthisQuantityInput.setAttribute('value', thisValue);\n\n\t\t\t\t\tcompareValues();\n\n\t\t\t\t} else {\n\n\t\t\t\t\tthisValue = enteredValue;\n\t\t\t\t\tthisQuantityInput.value = thisValue; // only to accomodate situations where a user has entered a floating point number\n\t\t\t\t\tthisQuantityInput.setAttribute('value', thisValue);\n\n\t\t\t\t\telQuantityDecrease.classList.remove('disabled');\n\t\t\t\t\telQuantityIncrease.classList.remove('disabled');\n\n\t\t\t\t\tcompareValues();\n\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t\t// compare the updated values against the originals\n\t\t\tfunction compareValues() {\n\n\t\t\t\t// currently does not account for deleted rows...\n\t\t\t\t// but this may not matter - TW might require the cart to be updated after a removal anyways... will require their input\n\n\t\t\t\tif (isCartCheckout || isCartCSR) {\n\n\t\t\t\t\tarrValuesNew[thisIndex] = thisValue;\n\n\t\t\t\t\tvar isSame = arrValuesOriginal.length == arrValuesNew.length && arrValuesOriginal.every(function(element, index) {\n\t\t\t\t\t\treturn element === arrValuesNew[index];\n\t\t\t\t\t});\n\n\t\t\t\t\tif (isSame) {\n\n\t\t\t\t\t\telButtonUpdate.classList.add('disabled');\n\t\t\t\t\t\telButtonFinalize.classList.remove('disabled');\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\telButtonUpdate.classList.remove('disabled');\n\t\t\t\t\t\telButtonFinalize.classList.add('disabled');\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}", "updatePurchaseState(updatedIngredient) {\n const ingredients = {\n ...updatedIngredient,\n };\n\n const sum = Object.keys(ingredients)\n .map((igKey) => {\n return ingredients[igKey]; //its return the value(cnt) salad :1 then it return 1 in place of salad\n })\n .reduce((sum, el) => {\n return sum + el;\n }, 0); //reduce method sums all got values(igKey) and gives direct sum\n\n return sum > 0;\n }", "function updateInventory(arr1, arr2) {\n // All inventory must be accounted for or you're fired!\n\n for (var i = 0; i < arr2.length; i++) {\n for (var j = 0; j < arr1.length; j++) {\n if (arr1[j][1].indexOf(arr2[i][1]) >= 0) {\n arr1[j][0] += arr2[i][0];\n arr2[i][0] = \"add\";\n }\n }\n }\n\n return arr1.concat(arr2).filter(function (item, pos, self) {\n return item[0] !== \"add\";\n }).sort(function (a, b) {\n var nameA = a[1],\n nameB = b[1];\n\n if (nameA < nameB) {\n return -1;\n }\n if (nameA > nameB) {\n return 1;\n }\n\n });\n\n}", "calculateCart(cart) {\n let retArray = []\n cart.forEach( (e) => {\n // \"_.find\" takes in the collection, and condition\n // returns the first thing that meets that condition or null\n let search = _.find(retArray, (p) => { return p.productname == e.productname })\n if(!search) {\n e.quantity = 1\n retArray.push(e)\n } else {\n search.quantity++\n }\n })\n return retArray; // return unique items, with correct quantity in cart\n }", "DECREMENT(state, reference) {\n for (let key in state.cart) {\n if (key === reference && ((state.cart[key].qty - 1)) != 0) state.cart[key].qty -= 1\n }\n }", "function recalculationIngreedient(){\n\tvar id = 0;\n\t$('.ingredient_block').each(function(){\n\t\t$(this).attr('data-groupid', id);\t\n\t\t$(this).children('.ingredient_content').children('.form__group').children('.input-with-icon').attr('name', 'ingredient[' + id + '][]');\t\n\t\tid++;\n\t});\n}", "function calculatePrice() {\n var parentRow = event.target.parentNode.parentNode;\n var parentRowId = parentRow.getAttribute(\"id\");\n var itemRate = getElement(\"#rate\" + parentRowId).value;\n var itemQty = event.target.value;\n var itemPrice = itemRate * itemQty;\n getElement(\"#amt\" + parentRowId).value = itemPrice;\n totalAmount();\n}", "function itemUpdate(index, type) {\n var quantity = document.getElementById(`quantity-${index}`).value;\n var newQuantity;\n if (type === \"inc\") {\n newQuantity = parseInt(quantity) + 1;\n } else if (type === \"dec\") {\n newQuantity = parseInt(quantity) - (parseInt(quantity) > 0 ? 1 : 0);\n } else {\n newQuantity = 0;\n }\n currentPrice[index] = basePrice[index] * newQuantity;\n document.getElementById(`price-${index}`).innerText = currentPrice[index];\n document.getElementById(`quantity-${index}`).value = newQuantity;\n quantity = newQuantity;\n totalPriceUpdate();\n}", "function tempTransfer() {\r\n supplies[MONEY] = supplies[MONEY] - ((price[OXEN_COST] * tempSupplies[OXEN]) + (price[CLOTHING_COST] * tempSupplies[CLOTHING]) + (price[FOOD_COST] * tempSupplies[FOOD]) + (price[BAIT_COST] * tempSupplies[BAIT]) + (price[WAGON_COST] * tempSupplies[PARTS]));\r\n var i;\r\n for (i = 0; i < supplies.length; i++) supplies[i] += tempSupplies[i];\r\n for (i = 0; i < parts.length; i++) parts[i] += tempParts[i];\r\n tempSupplies = [0, 0, 0, 0, 0, 0];\r\n tempParts = [0, 0, 0];\r\n}", "function recomputeSelTotals() {\n \n resetTotal( $scope.selTotal ) ;\n for( var i=0; i<$scope.buyTxns.length; i++ ) {\n var txn = $scope.buyTxns[i] ;\n if( txn.selected ) {\n $scope.selTotal.costPrice += txn.valueAtCost ;\n }\n } \n }", "function recheckInventoryFreeSpace(pmcData, sessionID) { // recalculate stach taken place\n let PlayerStash = getPlayerStash(sessionID);\n let Stash2D = Array(PlayerStash[1]).fill(0).map(x => Array(PlayerStash[0]).fill(0));\n for (let item of pmcData.Inventory.items) {\n if (\"location\" in item && item.parentId === pmcData.Inventory.stash) {\n let tmpSize = getSize(item._tpl, item._id, pmcData.Inventory.items);\n let iW = tmpSize[0]; // x\n let iH = tmpSize[1]; // y\n\n if (\"upd\" in item) {\n if (\"Foldable\" in item.upd) {\n if (item.upd.Foldable.Folded) {\n iW -= 1;\n }\n }\n }\n\n let fH = ((item.location.r === \"Vertical\" || item.location.rotation === \"Vertical\") ? iW : iH);\n let fW = ((item.location.r === \"Vertical\" || item.location.rotation === \"Vertical\") ? iH : iW);\n\n for (let y = 0; y < fH; y++) {\n // fixed filling out of bound\n if (item.location.y + y <= PlayerStash[1] && item.location.x + fW <= PlayerStash[0]) {\n let FillTo = ((item.location.x + fW >= PlayerStash[0]) ? PlayerStash[0] : item.location.x + fW);\n\n try {\n Stash2D[item.location.y + y].fill(1, item.location.x, FillTo);\n } catch (e) {\n logger.logError(\"[OOB] for item \" + item._id + \" [\" + item._id + \"] with error message: \" + e);\n }\n }\n }\n }\n }\n\n return Stash2D;\n}", "calculateDenialRunningTotal(inventories) {\n let current = 0;\n return inventories.map(inventory => {\n if (inventory.isPayment) {\n current = current - inventory.amount;\n } else if (inventory.credited) {\n current = current - inventory.creditAmount;\n } else {\n current = current + inventory.rejectAmount;\n }\n inventory.rejectionRunningTotal = current;\n return inventory;\n });\n }", "function reSubTotal(){\n var subtotal = 0;\n for(var i = 0; i<$scope.listCartItems.length;i++){\n subtotal += $scope.listCartItems[i].proPrice*$scope.listCartItems[i].quantity;\n }\n $scope.subtotal = subtotal;\n }", "function calculateRowTotal(key, data) {\n \n // get the value attributes for each of the row items.\n let sizeID = $( '#size' + key + ' option:selected').val();\n let paperID = $('#paper' + key + ' option:selected').val();\n let frameID = $('#frame' + key + ' option:selected').val();\n let quant = $('#quantity'+key).val();\n \n // if quantity is blank or is undefined, force a 0 value for it. \n if(quant === '' || quant === undefined) {\n quant = 0;\n }\n \n //set the paper cost based on the selected value.\n let paperCost = data.stock[paperID].large_cost;\n if(sizeID < 2){\n paperCost = data.stock[paperID].small_cost;\n } \n \n // return the new calculated price of the row passed in.\n return calculatePrice(data.sizes[sizeID].cost, paperCost, data.frame[frameID].costs[sizeID], quant); \n \n }", "incrementQuantity(itemName, sign) {\n newItems = this.state.items;\n // increment\n if(sign === true) {\n ++newItems[index][Object.keys(newItems[index])[0]].quantity;\n }\n // decrement (if quantity > 0)\n else if(sign === false && newItems[index][Object.keys(newItems[index])[0]].quantity > 0) {\n --newItems[index][Object.keys(newItems[index])[0]].quantity;\n }\n this.setState({items: newItems});\n }", "function Items(proj, item) {\n var hl = '='.repeat(100);\n var rowSep = '-'.repeat(100);\n var colSep = '|';\n var colInd = ' '; // 2 spc\n var colA = 'Item Num';\n var colB = 'Section';\n var colC = 'Description';\n var colD = 'Unit';\n var colE = 'Qty';\n var colF = '$Price';\n var colG = 'Item Cost';\n var d1 = ' '.repeat((10 - colA.length) / 2);\n var d2 = ' '.repeat((9 - colB.length) / 2);\n var d3 = ' '.repeat((23 - colC.length) / 2);\n var d4 = ' '.repeat((10 - colD.length) / 2);\n var d5 = ' '.repeat((9 - colE.length) / 2);\n var d6 = ' '.repeat((14 - colF.length) / 2);\n var d7 = ' '.repeat((19 - colG.length) / 2);\n var totalSum = 0;\n var totalMessage = 'Total Construction ROM for this project => ';\n\n // create table for items in project\n this.estTable = function() {\n if (item.length > 0) {\n if (proj !== null && proj.substr(0, 15) === moment().format(\"MMMM Do YYYY\")) {\n var headColor = colors.bgCyan.white.bold;\n } else {\n var headColor = colors.bgMagenta.white.bold;\n }\n\n console.log(headColor(hl));\n console.log(headColor(d1 + colA + d1 + colSep + d2 + colB + d2 + colSep + d3 + colC + d3 + colSep + d4 + colD + d4 + colSep + d5 + colE + d5 + colSep + d6 + colF + d6 + colSep + d7 + colG + d7));\n console.log(headColor(hl));\n item.sort(function(a, b) {\n return a.section - b.section || a.description.localeCompare(b.description);\n });\n for (i = 0; i < item.length; i++) {\n this.num = i + 1;\n this.sec = item[i].section;\n this.desc = item[i].description;\n this.unit = item[i].unit;\n this.qty = item[i].qty;\n this.price = item[i].price;\n this.cost = item[i].cost;\n totalSum += item[i].cost;\n this.price = this.price.toLocaleString('en-US', {minimumFractionDigits: 2});\n this.cost = this.cost.toLocaleString('en-US', {minimumFractionDigits: 2});\n\n var sep1 = ' '.repeat(8 - this.num.toString().length);\n var sep2 = ' '.repeat(7 - this.sec.toString().length);\n var sep3 = ' '.repeat(21 - this.desc.length);\n var sep4 = ' '.repeat(8 - this.unit.length);\n var sep5 = ' '.repeat(7 - this.qty.toString().length);\n var sep6 = ' '.repeat(12 - this.price.toString().length);\n var sep7 = ' '.repeat(16 - this.cost.length);\n\n console.log(colInd + this.num + sep1 + colSep + colInd + this.sec + sep2 + colSep + colInd + this.desc + sep3 + colSep + colInd + this.unit + sep4 + colSep + colInd + this.qty + sep5 + colSep + colInd + this.price + sep6 + colSep + sep7 + '$' + this.cost + colInd);\n\n if (i === (item.length - 1)) {\n var totalColor = colors.bgYellow.white.bold.italic;\n totalSum = totalSum.toLocaleString('en-US', {minimumFractionDigits: 2});\n console.log(hl);\n var rowTotal = ' '.repeat(97 - totalMessage.length - totalSum.toString().length);\n console.log(totalColor(rowTotal + totalMessage + '$' + totalSum + colInd));\n console.log(hl);\n } else {\n console.log(rowSep);\n }\n }\n } else {\n console.log('\\n' +\n ' ☒ Estimate is Empty: No Records Found... '.bgRed.white.bold + '\\n');\n }\n }\n\n // create table for items in db\n this.itemTable = function() {\n var hl = '='.repeat(100 - 30);\n var rowSep = '-'.repeat(100 - 30);\n var headColor = colors.bgMagenta.white.bold;\n console.log(headColor(hl));\n console.log(headColor(d1 + colA + d1 + colSep + d2 + colB + d2 + colSep + d3 + colC + d3 + colSep + d4 + colD + d4 + colSep + d6 + colF + d6));\n console.log(headColor(hl));\n for (i = 0; i < item.length; i++) {\n this.num = i + 1;\n this.sec = proj[0].number;\n this.desc = item[i].description;\n this.unit = item[i].unit;\n this.price = item[i].price;\n this.price = this.price.toLocaleString('en-US', {minimumFractionDigits: 2});\n\n var sep1 = ' '.repeat(8 - this.num.toString().length);\n var sep2 = ' '.repeat(7 - this.sec.toString().length);\n var sep3 = ' '.repeat(21 - this.desc.length);\n var sep4 = ' '.repeat(8 - this.unit.toString().length);\n var sep6 = ' '.repeat(12 - this.price.toString().length);\n\n console.log(colInd + this.num + sep1 + colSep + colInd + this.sec + sep2 + colSep + colInd + this.desc + sep3 + colSep + colInd + this.unit + sep4 + colSep + colInd + this.price + sep6);\n console.log(rowSep);\n }\n }\n\n this.toFile = function() {\n var output = '';\n output += hl + '\\n';\n output += d1 + colA + d1 + colSep + d2 + colB + d2 + colSep + d3 + colC + d3 + colSep + d4 + colD + d4 + colSep + d5 + colE + d5 + colSep + d6 + colF + d6 + colSep + d7 + colG + d7 + '\\n';\n output += hl + '\\n';\n item.sort(function(a, b) {\n return a.section - b.section || a.description.localeCompare(b.description);\n });\n for (i = 0; i < item.length; i++) {\n this.num = i + 1;\n this.sec = item[i].section;\n this.desc = item[i].description;\n this.unit = item[i].unit;\n this.qty = item[i].qty;\n this.price = item[i].price;\n this.cost = item[i].cost;\n totalSum += item[i].cost;\n this.cost = this.cost.toLocaleString('en-US', {minimumFractionDigits: 2});\n\n var sep1 = ' '.repeat(8 - this.num.toString().length);\n var sep2 = ' '.repeat(7 - this.sec.toString().length);\n var sep3 = ' '.repeat(21 - this.desc.length);\n var sep4 = ' '.repeat(8 - this.unit.length);\n var sep5 = ' '.repeat(7 - this.qty.toString().length);\n var sep6 = ' '.repeat(12 - this.price.toString().length);\n var sep7 = ' '.repeat(16 - this.cost.length);\n\n output += colInd + this.num + sep1 + colSep + colInd + this.sec + sep2 + colSep + colInd + this.desc + sep3 + colSep + colInd + this.unit + sep4 + colSep + colInd + this.qty + sep5 + colSep + colInd + this.price + sep6 + colSep + sep7 + '$' + this.cost + colInd + '\\n';\n\n if (i === (item.length - 1)) {\n var totalColor = colors.bgYellow;\n totalSum = totalSum.toLocaleString('en-US', {minimumFractionDigits: 2});\n output += hl + '\\n';\n var rowTotal = ' '.repeat(97 - totalMessage.length - totalSum.toString().length);\n output += rowTotal + totalMessage + '$' + totalSum + colInd + '\\n';\n output += hl + '\\n';\n } else {\n output += rowSep + '\\n';\n }\n }\n return output;\n }\n}", "function updateInventory (arr1, arr2) {\n const COUNT = 0;\n const STRING = 1;\n\n let newArr = [...arr1];\n arr2.forEach(el2 => {\n const index = newArr.findIndex(el1 => el1[STRING] === el2[STRING]);\n if (index !== -1) {\n newArr[index][COUNT] += el2[COUNT];\n } else {\n newArr.push(el2);\n }\n });\n return newArr.sort((obj1, obj2) => obj1[1].localeCompare(obj2[1]));\n}", "editHearth(item, newQuantity) {\n for (let i = 0; i < this.inventory.length; i++) {\n if (this.inventory[i].item === item) {\n this.inventory[i].quantity = newQuantity;\n }\n console.log(\"This is the new quantity\", this.inventory[i].quantity);\n }\n }", "function updateQuantity(item, type) {\n let indx = cart.findIndex((x) => x.name == item.name);\n let qty = qtyBtn.textContent;\n\n if (type == \"dec\") {\n if (qty > 0) {\n qty--;\n qtyBtn.textContent = qty;\n if (indx != -1) {\n cart[indx].quantity = qty;\n } else {\n let billObj = {\n name: item.name,\n price: item.price,\n quantity: qty,\n category: item.category\n };\n cart.push(billObj);\n }\n }\n if (qty == 0) {\n cart = cart.filter((item) => item.quantity != 0);\n }\n }\n\n if (type == \"inc\") {\n if (qty < 10) {\n qty++;\n qtyBtn.textContent = qty;\n if (indx != -1) {\n cart[indx].quantity = qty;\n } else {\n let billObj = {\n name: item.name,\n price: item.price,\n quantity: qty,\n category: item.category\n };\n cart.push(billObj);\n }\n }\n }\n\n updateBill();\n showCartItems();\n }", "function createInventory() {\n\tvar newInventory = [];\n\tcolumnHeights = [0,0,0,0,0,0,0,0,0,0];\n\tfor (var i=0;i<10;i++) {\n\t\t//push a blank array to represent each column of the inventory\n\t\tnewInventory.push([]);\n\t}\n\n\t//set the previous inventory to the latest inventory used\n\tpreviousInventory = nextInventory || currentInventory || undefined;\n\t//the new blank inventory is now the current inventory\n\tcurrentInventory = newInventory;\n}", "function displayOrder(order, updatePrice) {\n //versobe console\n //console.log('---- Displaying order...');\n\n jQuery('#order-items_grid table tbody').empty();\n var itemNumber = parseFloat(0);\n var subtotal = parseFloat(0);\n var subtotalInclTax = parseFloat(0);\n var totalTax = parseFloat(0);\n\n //retrieve tax\n var tax = parseFloat(0);\n\n jQuery.each(order, function (i, orderItem) {\n //calc\n orderItem.subtotal = orderItem.price * orderItem.qty;\n\n ////console.log(orderItem);\n if (orderItem.type == 'giftcard')\n orderItem.subtotalInclTax = orderItem.subtotal;\n else\n orderItem.subtotalInclTax = orderItem.priceInclTax * orderItem.qty;\n\n var orderOption = '';\n var edit_price = '';\n var change_qty = '';\n var out_stock = '';\n var is_qty_decimal = '';\n\n var limit = jQuery('#is_user_limited').val();\n if (limit == 0) edit_price = 'edit_price';\n else edit_price = '';\n var class_item = orderItem.class_item;\n var config_change = orderItem.config_change;\n\n if (orderItem.options.length > 0) {\n jQuery.each(orderItem.options, function (i, option) {\n var optionName = option.name.replace('[', '][');\n optionName = optionName.lastIndexOf(']') == (optionName.length - 1) ? optionName : optionName + ']';\n orderOption += '<input type=\"hidden\" name=\"item[' + orderItem.id + '][' + optionName + '\" value=\"' + option.value + '\">';\n //optionInput+='<span class=\"option-title\">'+option.optionTitle+': </span><span class=\"option-name\">'+option.qty+'x '+option.title+'</span></li>';\n if (!!option.value && option.value in productData) {\n var product_id = option.value;\n var product = productData[product_id];\n if (product.qty <= 0 && product.type == 'simple') {\n orderItem.out_stock = 1;\n }\n }\n });\n config_change = \"config_change item_config item_config-id\";\n class_item = \"config item_config item_config-id\";\n if (orderItem.type == 'grouped')\n change_qty = 'grouped';\n }\n\n if (orderItem.type == 'configurable' && orderItem.child_product_id != null) {\n /** XPOS-1888: sometime do NOT display \"Out of Stock\" properly\n * 07/04/2015\n */\n orderItem.out_stock = 0;\n var product_id = orderItem.child_product_id;\n var product = productData[product_id];\n if (!!product && product.qty <= 0 && product.type == 'simple') {\n orderItem.out_stock = 1;\n }\n }\n\n\n if (orderItem.out_stock == 1) {\n var out_stock = '<h6 style=\"height: 15px; line-height: 15px; padding-top:5px; color: red; font-size:.8em\">Out of Stock</h6>';\n }\n if (orderItem.is_qty_decimal == 1) {\n is_qty_decimal = 'qty_decimal';\n }\n //orderOption+='</ul>';\n var tempOrderItem = {};\n if (orderItem.qty == 0) {\n tempOrderItem.style = 'style=\"display:none\"';\n }\n tempOrderItem.id = orderItem.id;\n tempOrderItem.child_product_id = orderItem.child_product_id;\n tempOrderItem.baseId = orderItem.baseId;\n tempOrderItem.name = orderItem.name;\n //issue XPOS-1783\n tempOrderItem.sku = orderItem.sku;\n tempOrderItem.option = orderOption;\n tempOrderItem.qty = orderItem.qty;\n tempOrderItem.tax = orderItem.tax;\n tempOrderItem.subtotal = formatCurrency(orderItem.subtotal, priceFormat);\n tempOrderItem.class_item = class_item;\n tempOrderItem.price_name = orderItem.price_name;\n tempOrderItem.config_change = config_change;\n tempOrderItem.edit_price = edit_price;\n tempOrderItem.change_qty = change_qty;\n tempOrderItem.out_stock = out_stock;\n tempOrderItem.is_qty_decimal = is_qty_decimal;\n tempOrderItem.isNotChangePrice = 0;\n if (orderItem.type == 'bundle') {\n tempOrderItem.isNotChangePrice = 1;\n }\n if (displayTaxInSubtotal) {\n tempOrderItem.subtotal = formatCurrency(orderItem.subtotalInclTax, priceFormat);\n } else {\n tempOrderItem.subtotal = formatCurrency(orderItem.subtotal, priceFormat);\n }\n\n var orderItemOutput = '';\n if (onFlyDiscount) {\n if (jQuery(\"#price_includes_tax\").val() == 1) {\n tempOrderItem.price = orderItem.priceInclTax;\n } else {\n tempOrderItem.price = orderItem.price;\n }\n if (!!orderItem.custom_price) {\n tempOrderItem.price = orderItem.custom_price;\n }\n if (displayTaxInShoppingCart) {\n tempOrderItem.price_display = formatCurrency(orderItem.priceInclTax, priceFormat);\n } else {\n tempOrderItem.price_display = formatCurrency(orderItem.price, priceFormat);\n }\n if (priceFormat.decimalSymbol == ',' && tempOrderItem.price.toString().indexOf(',') !== -1) {\n tempOrderItem.price = formatCurrency(parseFloat(tempOrderItem.price.toString().replace(',', '.')), priceFormat);\n }\n orderItemOutput = nano(orderTemplate, tempOrderItem);\n } else {\n if (displayTaxInShoppingCart) {\n tempOrderItem.price = formatCurrency(orderItem.priceInclTax, priceFormat);\n } else {\n tempOrderItem.price = formatCurrency(orderItem.price, priceFormat);\n }\n\n orderItemOutput = nano(noDiscountTemplate, tempOrderItem);\n }\n\n /** XPOS-2006\n *\n */\n /*\n if (orderItem.type == 'bundle' && !!orderItem.bundle_children) {\n if (orderItem.qty > 0) {\n var _html = '';\n orderItem.bundle_children.forEach(function(_value, _index) {\n _value = parseInt(_value);\n _childProduct = productData[_index];\n\n _html += '<tr>';\n _html += '<td><div class=\"item-first\"><h5>'+_childProduct.name + '</h5><h6 class=\"sku-text\">' +_childProduct.sku+ '</h6></div></td>';\n _html += '<td class=\"qty align-center\">' + _value + '</td>';\n _html += '<td></td>';\n _html += '<td class=\"price align-right\"><input value=\"'+ _childProduct.price +'\" disabled=\"disabled\" /></td>';\n _html += '</tr>';\n\n });\n orderItemOutput += _html;\n }\n }\n */\n\n\n jQuery('#order-items_grid table tbody').append(orderItemOutput);\n if (tempOrderItem.isNotChangePrice == 1) {\n //console.log('bundle id = ' + tempOrderItem.id);\n var PriceIdBundle = 'item-display-price-' + tempOrderItem.id;\n //console.log('id bundle price = \"' + PriceIdBundle+'\"');\n disableElementById(PriceIdBundle);\n }\n itemNumber += parseFloat(orderItem.qty);\n subtotal += parseFloat(orderItem.subtotal);\n subtotalInclTax += parseFloat(orderItem.subtotalInclTax);\n if (orderItem.qty > 0) {\n totalTax += parseFloat(orderItem.tax * 0.01 * orderItem.price * orderItem.qty);\n }\n });\n\n //var tax = subtotalInclTax - subtotal;\n var tax = totalTax;\n jQuery('#item_count_value').text(itemNumber);\n if (updatePrice) {\n if (displayTaxInSubtotal) {\n jQuery('#subtotal_value').text(formatCurrency(subtotalInclTax.toFixed(2), priceFormat));\n } else {\n jQuery('#subtotal_value').text(formatCurrency(subtotal.toFixed(2), priceFormat));\n }\n if (isNumber(tax)) {\n jQuery('#tax_value').text(formatCurrency(tax, priceFormat));\n } else {\n totalTax = 0;\n jQuery('#tax_value').text(formatCurrency(tax, priceFormat));\n }\n\n if (subtotalInclTax == 0) {\n removeDiscount();\n }\n\n var discount = Math.abs(jQuery('#discount_value').val());\n // if(displayTaxInGrandTotal)\n var grandTotal = subtotalInclTax > discount ? subtotalInclTax - discount : 0;\n // else grandTotal = subtotal - discount;\n jQuery('#grandtotal').text(formatCurrency(grandTotal.toFixed(2), priceFormat));\n jQuery('#grand_before').val(formatCurrency(grandTotal.toFixed(2), priceFormat));\n jQuery('#cash-in').val(grandTotal.toFixed(2));\n }\n setTimeout(function () {\n jQuery('#items_area').getNiceScroll().doScrollPos(0, 100000);\n }, 500);\n jQuery('#items_area').getNiceScroll().doScrollPos(0, 100000);\n\n function removeDiscount() {\n jQuery('#discount_value').val(0);\n jQuery('#order_discount').val(0);\n jQuery('#discount_change').val(1);\n }\n}", "function handleQuantityChange (input) {\r\n // make sure the minimum value is 1\r\n if (input.value < 1) input.value = 1\r\n // make sure the maximum value is 10\r\n if (input.value > 10) input.value = 10\r\n\r\n // get the id(index of item with the modified quantity)\r\n const id = input.id[input.id.length - 1]\r\n // get price element using the id and retrive the price\r\n const priceEl = document.getElementById('price' + id)\r\n let price = priceEl.innerHTML\r\n price = price.substring(1).split(' ').join('') // remove any spaces from the text\r\n price = eval(price + '*' + input.value) // multiply the price by the new quantity value (input)\r\n price = price.toFixed(2) // fix it to 2 decimal places\r\n\r\n // get the price-tag element based on the id and update the price with the new price\r\n const priceTag = document.getElementById('pricetag' + id)\r\n priceTag.innerHTML = String(price)\r\n\r\n // re-calculate the cart total\r\n getCartTotal()\r\n}", "function itemsResumo() {\n const itemProduto = document.querySelector('.item-produto');\n const itemQuantidade = document.querySelector('.item-qtd');\n const itemPreco = document.querySelector('.item-preco');\n itemsComprados.forEach((item) => {\n const itemDescricao = document.createElement('span');\n const itemQtd = document.createElement('span');\n const itemValor = document.createElement('span');\n itemDescricao.appendChild(\n document.createTextNode(\n 'Vestido Preto One (Decote: ' +\n item.decote +\n ', Manga: ' +\n item.manga +\n ', Comprimento: ' +\n item.comprimento +\n ', Tamanho: ' +\n item.tamanho\n )\n );\n itemQtd.appendChild(document.createTextNode(item.quantidade));\n itemValor.appendChild(\n document.createTextNode(\n (item.quantidade * 154.99).toLocaleString('pt-BR', {\n style: 'currency',\n currency: 'BRL',\n })\n )\n );\n itemProduto.appendChild(itemDescricao);\n itemQuantidade.appendChild(itemQtd);\n itemPreco.appendChild(itemValor);\n });\n}", "function increaseQuantity(){\n let currentCost = (document.getElementById(\"cat-harness-item-cost\").innerHTML).replace( /^\\D+/g, '');\n if (quantity == 1){\n totalCost = 58;\n }\n else{\n totalCost = totalCost+(parseInt(currentCost)/(quantity));\n }\n quantity = parseInt(document.getElementById(\"num-items\").innerHTML, 10) + 1;\n document.getElementById(\"num-items\").innerHTML = quantity;\n document.getElementById(\"cat-harness-item-cost\").innerHTML = \"$\" + totalCost;\n \n}", "function handleUpdate(e) {\n\tfor (let name in updatedQuantity) { // sample updatedQuantity: {usmc fitness book: \"20\", usmc pt shirt 1: \"9\"}\n\t\tcart.updateCart(name, +updatedQuantity[name])\n\t}\n\treRenderTableBody();\n\trenderCartTotal();\n}", "function resetInventory() {\n\tfor (i=0; i<drops.length; i++) {\n\t\tinventory[drops[i]] = 0;\n\t\tdamageBonus[drops[i]] = 0;\n\t}\n}", "function buyClickUpgrade(clickItem) {\n\n\n //console.log(`You purchased a(n) ${clickItem}`);\n\n player.clickInventory.push(clickUpgrades[clickItem]);\n\n //console.log(player.clickInventory);\n\n\n\n //find price\n /*\n let inv = player.clickInventory.filter(item => {\n console.log(player.clickInventory)\n console.log(item.name);\n console.log(clickItem);\n return item.name === clickItem;\n });\n */\n\n //console.log(`the inventory for ${clickItem} is ${inv}`);\n\n //update quantity and price of item\n clickUpgrades[clickItem].quantity++;\n\n let quantity = clickUpgrades[clickItem].quantity;\n\n //console.log(`The current quantity of ${clickItem}s is ${quantity}`);\n\n clickUpgrades[clickItem].newprice *= clickUpgrades[clickItem].multiplier;\n\n clickUpgrades[clickItem].newprice =\n Math.round(clickUpgrades[clickItem].newprice);\n\n let price = clickUpgrades[clickItem].price;\n let newprice = clickUpgrades[clickItem].newprice;\n\n //console.log(`The price of a ${clickItem} is ${clickUpgrades[clickItem].price}`);\n //console.log(`The new price of a ${clickItem} is ${clickUpgrades[clickItem].newprice}`);\n\n player.currentCheeseBricks -= price;\n players[0].currentCheeseBricks = player.currentCheeseBricks;\n\n document.getElementById('input-tc').value =\n player.currentCheeseBricks;\n //console.log(`in buyClickUpgrade player.cheeseBricks = ${player.cheeseBricks}`);\n\n switch (clickItem) {\n case ('shovel'):\n document.getElementById('i-shovel-count').value = quantity;\n document.getElementById('i-shovel-price').value = newprice;\n break;\n case ('excavator'):\n document.getElementById('i-excavator-count').value = quantity;\n document.getElementById('i-excavator-price').value = newprice;\n break;\n\n default:\n break;\n }\n\n\n\n turnButtonsOnOff();\n updatePrices();\n saveClickUpgrades(); //saves clickUpgrade to local storage\n savePlayer(); //any player updates are stored such as number of cheeseBricks\n\n}", "function removeItems(items) {\n Logger.log('running removeItems function!')\n\n var ss = SpreadsheetApp.getActiveSpreadsheet(); \n var itemsLength = Object.keys(items).length; \n var sheet = ss.getSheetByName('Master Inventory');\n var range = sheet.getRange(firstBarcodeRow,firstBarcodeColumn,masterLastRow,sheet.getLastColumn());\n \n var data = range.getValues();\n var headers = getHeaders(sheet,range,1);\n var locations = headers.slice(firstLocationIndex); // Removes the headers which aren't locations (eg. headers[0] might equal 'Part Number' so we don't want it to become a location)\n \n var used = []; \n for (var i = 0; i < data.length; i++) { // for each row in the sheet range values\n\n for (var partName in items) { // for each key in the items object (eg. \"MX2030\")\n if (data[i][1] == partName) { // if the part name in the sheet (row x, column 2 of the range) = part changed in the dialog \n var item = items[partName];\n for (var k = 0; k < locations.length; k++) { \n var location = locations[k];\n if (typeof item[location] !== \"undefined\") {\n var before = data[i][k];\n var cell = k + firstLocationIndex;\n \n if (data[i][cell] != \"\" || data[i][cell] > 0)\n data[i][cell] = data[i][cell] - +item[location];\n Logger.log(\"data[\"+i+\"][\"+cell+\"] changed from: ' \"+before+\"' to: '\"+data[i][cell]+\"'\")\n }\n }\n }\n }\n }\n\n range.setValues(data); \n collectLocations();\n \n return itemsLength;\n}" ]
[ "0.66921705", "0.63994807", "0.6345309", "0.6334346", "0.63101435", "0.6300602", "0.6288587", "0.62541956", "0.6223666", "0.6151304", "0.60939634", "0.6023022", "0.59956044", "0.5950191", "0.59009093", "0.58965343", "0.58905244", "0.5884783", "0.58498657", "0.58396703", "0.5832672", "0.58303654", "0.5822901", "0.58065265", "0.5804861", "0.58004296", "0.578472", "0.5768053", "0.5765773", "0.5750415", "0.5742403", "0.57222813", "0.5713669", "0.57127917", "0.5697853", "0.56842875", "0.5679926", "0.5675818", "0.56672585", "0.5660066", "0.5654875", "0.5649443", "0.5647975", "0.564451", "0.563504", "0.5631296", "0.56301606", "0.56231034", "0.56084883", "0.5602542", "0.5588334", "0.5584846", "0.55833066", "0.5576973", "0.5571932", "0.55718064", "0.55655545", "0.5564478", "0.5555389", "0.55509657", "0.55451554", "0.55451554", "0.55448335", "0.5543716", "0.55345076", "0.55330193", "0.55217534", "0.55175483", "0.55173784", "0.55103517", "0.5503474", "0.55015665", "0.54989517", "0.549257", "0.5491116", "0.5490246", "0.54868025", "0.5484828", "0.5482069", "0.54783994", "0.5473443", "0.54720485", "0.5469589", "0.54618776", "0.54589844", "0.5458094", "0.54579836", "0.5455958", "0.5455872", "0.5449474", "0.54469854", "0.54442745", "0.544421", "0.5439317", "0.54368603", "0.5436229", "0.5435836", "0.54348207", "0.5432061", "0.5429806" ]
0.57477957
30
Do not override these
async attack (action_) { _attack (action_); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "transient private protected internal function m182() {}", "protected internal function m252() {}", "transient protected internal function m189() {}", "transient final protected internal function m174() {}", "transient private internal function m185() {}", "private internal function m248() {}", "__previnit(){}", "static transient final protected public internal function m46() {}", "transient private protected public internal function m181() {}", "static transient final protected internal function m47() {}", "static transient final private internal function m43() {}", "static transient final private protected internal function m40() {}", "transient final private internal function m170() {}", "static private protected internal function m118() {}", "transient final private protected internal function m167() {}", "constructor () { super() }", "transient private public function m183() {}", "function SuperclassBare() {}", "function SuperclassBare() {}", "function customHandling() { }", "function _____SHARED_functions_____(){}", "function ExtraMethods() {}", "constructor() { super() }", "static final private internal function m106() {}", "static transient private protected internal function m55() {}", "static transient private protected public internal function m54() {}", "transient final private protected public internal function m166() {}", "static transient final protected function m44() {}", "constructor () {\r\n\t\t\r\n\t}", "initCustomFunctions() {/*To be overridden in sub class as needed*/}", "function priv () {\n\t\t\t\n\t\t}", "static private internal function m121() {}", "static final private protected internal function m103() {}", "initialize() {\n // Needs to be implemented by derived classes.\n }", "Use(){\n throw new Error(\"Use() method must be implemented in child!\");\n }", "postorder() {\n throw new Error(\"This method hasn't been implemented yet!\");\n }", "static transient final private protected public function m38() {}", "function inherited() { }", "obtain(){}", "transient final private public function m168() {}", "constructor() {\n\n\t}", "function inherit(){}", "static transient private public function m56() {}", "static protected internal function m125() {}", "static private protected public internal function m117() {}", "static final private protected public internal function m102() {}", "function aOverrides()\n{\n\n}", "static transient final private protected public internal function m39() {}", "constructor() {\n\t\tsuper(...arguments);\n\t}", "SameSide() {}", "init() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "constructor () {\n super();\n this._modifiers = {};\n }", "static final protected internal function m110() {}", "function _construct()\n\t\t{;\n\t\t}", "constructor() {\n super();\n }", "static transient final private public function m41() {}", "constructor() {\n super();\n \n }", "constructor (){}", "constructor() {\n\n\t\tsuper();\n\n\t}", "constructor() {\n\t}", "constructor() {\n\t}", "_default() {\n return super._missingPreDefault();\n }", "init() {\n this._super(...arguments);\n this._applyDefaults();\n }", "edit(args) {\r\n throw \"Error this method should be overridden by its extended class\";\r\n }", "static get order() { throw new Error('unimplemented - must use a concrete class'); }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n super();\n }", "constructor() {\n super();\n }", "constructor() {\n super();\n }", "_overriddenMenuHandler() { }", "_init() {\n throw new Error('_init not implemented in child class');\n }", "function Derived() {} // private", "constructor() {\n super()\n }", "constructor() {\n throw new Error('Not implemented');\n }", "configure () {\n // this can be extended in children classes to avoid using the constructor\n }", "preorder() {\n throw new Error(\"This method hasn't been implemented yet!\");\n }", "static transient private internal function m58() {}", "Pick(){\n throw new Error(\"Pick() method must be implemented in child!\");\n }", "__init7() {this._isEnabled = false;}", "constructor() {\r\n super();\r\n }", "constructor() {\r\n super();\r\n }" ]
[ "0.68481994", "0.6811481", "0.67693365", "0.66646963", "0.6609396", "0.6497686", "0.63607806", "0.6226011", "0.6152291", "0.6143716", "0.61403376", "0.60844713", "0.6052514", "0.6048533", "0.60242015", "0.6005584", "0.599231", "0.59667456", "0.5966392", "0.5966392", "0.5908768", "0.58630574", "0.5855323", "0.581888", "0.5808124", "0.5761375", "0.57477474", "0.574752", "0.57156336", "0.5689702", "0.566331", "0.563765", "0.5618819", "0.5617246", "0.5573511", "0.55667144", "0.55572677", "0.554578", "0.55369824", "0.55128515", "0.5509793", "0.55083257", "0.5507798", "0.5499904", "0.5496407", "0.54836845", "0.54767", "0.54625034", "0.5453342", "0.5450231", "0.5441727", "0.54392165", "0.5426513", "0.54099715", "0.5405194", "0.53753525", "0.5373546", "0.5371665", "0.53565776", "0.53522533", "0.5349063", "0.5349063", "0.53390884", "0.53303117", "0.532374", "0.5320004", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.5318056", "0.53126305", "0.53126305", "0.53126305", "0.53065574", "0.5301862", "0.5293258", "0.5291002", "0.52897274", "0.52889925", "0.52822113", "0.5281603", "0.52785414", "0.5274608", "0.5268262", "0.5268262" ]
0.0
-1
Reset the mook model's resources for use
startTurn () { this.resetResources (); this._startTurn (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reset() {\n BaseAPI.reset.call(_self);\n\n // Data Model\n _self.cmi = new CMI(_self);\n _self.adl = new ADL(_self);\n }", "function reset() {\n BaseAPI.reset.call(_self);\n\n // Data Model\n _self.cmi = new CMI(_self);\n }", "resetResources()\n {\n this.slaps = 0;\n this.blocks = 0;\n }", "reset(){\n this.enable();\n this.init();\n this.buildAll();\n }", "reset() {\n this.resetFields();\n this.resetStatus();\n }", "reset() {\n this.init();\n }", "clear() {\n var models = this._models;\n this._models = [];\n\n for (var i = 0; i < models.length; i++) {\n var model = models[i];\n model.unloadRecord();\n }\n\n this._metadata = null;\n }", "function reset() {\n save(null);\n }", "reset() {\n this.init();\n }", "reset() {\n store.dispatch('setIsUnsavedChanges', { isUnsavedChanges: true });\n this.data = {};\n this.activeIndex = 0;\n this.activeCaption = '';\n }", "reset() {\n this.inboundIntentModels = [];\n this.intents = [];\n this.ephemeralRelations = [];\n }", "function reset() {\n userSupplierManager.reset();\n UserCache._clear();\n ScoreBooster.reset();\n }", "function reset() {\n userSupplierManager.reset();\n UserCache._clear();\n ScoreBooster.reset();\n }", "function reset()\r\n\t{\r\n\t\tself.manifest={};\r\n\t\tself.heading='Master';\r\n\t\tfetchAllManifest();\r\n\t}", "function reset() {\n let da = new VMN.DAPI();\n da.db.cleanDB();\n da.cleanLog();\n VMN.DashCore.cleanStack();\n}", "reset() {\n this.entities().forEach(e => e.delete());\n }", "reset() {\n\t\tvar objects = this._vptGData.vptBundle.objects;\n\t\twhile (objects.length !== 0) {\n\t\t\tvar object = objects.pop();\n\t\t\tobject.switchRenderModes(false);\n\t\t\tvar tex = object.material.maps[0];\n\t\t\tthis._glManager._textureManager.clearTexture(tex);\n\t\t\tif (object._volumeTexture)\n\t\t\t\tthis._gl.deleteTexture(object._volumeTexture);\n\t\t\tif (object._environmentTexture)\n\t\t\t\tthis._gl.deleteTexture(object._environmentTexture);\n\t\t}\n\t\tthis._vptGData.vptBundle.mccStatus = false;\n\t\tthis._vptGData.vptBundle.resetBuffers = true;\n\t\t//this._vptGData._updateUIsidebar();\n\t}", "function reset() {\n getService().reset();\n}", "function reset() {\n attachSource(null);\n attachView(null);\n protectionData = null;\n protectionController = null;\n }", "function Reset() {\n vm.model = angular.copy(vm.master);\n resetForm();\n }", "function resetManager() {\r\n manager.clear(); // detaches everything\r\n attachEntities(service.OrderStatus.statuses);\r\n attachEntities(service.products);\r\n attachEntities(service.productOptions);\r\n attachEntities(service.productSizes);\r\n createDraftAndCartOrders();\r\n }", "reset()\n {\n super.reset();\n this._roomName = this._room.get().name;\n this._targets = this.UpdateEnegry();\n this._requiredCreeps = this.MakeRequirement();\n }", "function reset() {\n setMediaElement(null);\n\n keySystem = undefined; //TODO-Refactor look at why undefined is needed for this. refactor\n\n if (protectionModel) {\n protectionModel.reset();\n protectionModel = null;\n }\n }", "function reset() {\n\n factory.error = null;\n factory.success = null;\n\n }", "function reset() {\n remoteCache = {};\n localCacheById = {};\n localCache = {};\n}", "function reset() {\n remoteCache = {};\n localCacheById = {};\n localCache = {};\n}", "function reset() {\n databaseService.reset();\n }", "reset() {\n this.cache = {};\n }", "_reset() {\n this.instance = null;\n }", "reset() {\n this.api.clear();\n this.api = null;\n this.fieldDescriptor.clear();\n this.resetForm();\n }", "function reset() {\n md = null;\n }", "function reset() {\n clear();\n initialize(gameData);\n }", "dispose() {\n this._model = null;\n super.dispose();\n }", "function reset() {\n\t\tdictionary = {};\n\t\tradioNames = [];\n\t}", "function reset() {\n var service = getService();\n service.reset();\n}", "function reset() {\n var service = getService();\n service.reset();\n}", "function reset() {\n var service = getService();\n service.reset();\n}", "reset() {\n // Make any pending promise obsolete.\n this.pendingBackendInitId++;\n this.state.dispose();\n this.ENV.reset();\n this.state = new EngineState();\n for (const backendName in this.registry) {\n this.disposeRegisteredKernels(backendName);\n this.registry[backendName].dispose();\n delete this.registry[backendName];\n }\n this.backendName = null;\n this.backendInstance = null;\n this.pendingBackendInit = null;\n }", "finalizeState() {\n for (const model of this.getModels()) {\n model.delete();\n }\n const attributeManager = this.getAttributeManager();\n if (attributeManager) {\n attributeManager.finalize();\n }\n this.context.resourceManager.unsubscribe({consumerId: this.id});\n this.internalState.uniformTransitions.clear();\n this.internalState.finalize();\n }", "constructor() {\n this.reset();\n }", "resetToInitialState() {\n this._itemsManager.reset();\n this._directionsManager.reset();\n if(this._currentGuide) {\n this._currentGuide.finish();\n this._currentGuide = null;\n }\n }", "function resetScope() {\n $scope.storyCount = 0;\n $scope.stories = [];\n $scope.error = {};\n }", "function reset() {\n UsersRelatedToContent.reset();\n }", "function reset() {\n UsersRelatedToContent.reset();\n }", "resetRules() {\n this.ruleCreatorSet = new RuleCreatorSet();\n }", "function reset() {\n getService_().reset();\n}", "function reset() {\n getService_().reset();\n}", "reset() {\n this.data = {};\n this.type = null;\n }", "constructor() {\n this._reset();\n }", "reset() {\n // Reset the stats\n this.numSusceptible = getInitialNumSusceptible();\n this.numInfectious = getInitialNumInfectious();\n this.numNonInfectious = 0;\n this.numImmune = 0;\n this.numDead = 0;\n this.numIcu = 0;\n\n // Clear the border context\n const { width, height } = this.borderCtx.canvas.getBoundingClientRect();\n this.borderCtx.clearRect(0, 0, width * 2, height * 2);\n\n this.numCommunities = getNumCommunities();\n if (this.numCommunities !== this.model.numCommunities) {\n this.model.numCommunities = this.numCommunities;\n }\n\n this.model.communities = {};\n this.model.setupCommunity();\n\n this.chart.resetChart(this.numSusceptible, this.numInfectious);\n this.timeline.reset();\n this.model.resetModel(this.createCurrentStats());\n\n const {\n width1,\n height2,\n } = this.demographicsCtx.canvas.getBoundingClientRect();\n this.demographicsCtx.clearRect(0, 0, width1 * 2, height2 * 2);\n this.demographicsChart.resetChart(this.createCurrentStats().sum());\n }", "_clearResources() {\n }", "reset() {\r\n if (this.defaultResourcesEnabled) {\r\n let prevResources = this.state.resources;\r\n let resourceList = [];\r\n let resources = [];\r\n if (resources) {\r\n // const nonDefaultResources = _.remove(resources, function(resource) { return _.find(defaultResources, {'name': resource.name})==null });\r\n // resourceList = nonDefaultResources.concat(this.state.resourceList);\r\n const defaultResources = this.defaultResources;\r\n resourceList = _.sortBy(prevResources.concat(this.state.resourceList), \"name\");\r\n resources = _.remove(resourceList, function(resource) { return _.find(defaultResources, {'name': resource.name})!=null });\r\n // const projectQuota = this.setProjectQuotaDefaults(resources);\r\n // this.setState({resourceList: resourceList, resources: resources, projectQuota: projectQuota});\r\n }\r\n const projectQuota = this.setProjectQuotaDefaults(resources);\r\n this.setState({\r\n dialog: { header: '', detail: ''},\r\n project: {\r\n url: '',\r\n name: '',\r\n description: '',\r\n trigger_priority: 1000,\r\n priority_rank: null,\r\n quota: [],\r\n archive_location: null,\r\n archive_subdirectory:\"\"\r\n },\r\n projectQuota: projectQuota,\r\n validFields: {},\r\n validForm: false,\r\n errors: {},\r\n dialogVisible: false,\r\n resources: resources,\r\n resourceList: resourceList\r\n });\r\n } else {\r\n this.setState({redirect: `/project/edit/${this.state.project.name}`})\r\n }\r\n }", "reset() {\n this.set('data', []);\n this._reset();\n }", "reset() {\n this.dateMaps = this.getInitialDateClusterMaps();\n this.errorClusters.reset();\n this.errors = {};\n this.events = {};\n this.userMap.clear();\n }", "reset() {\n\t\t// Keys\n\t\tthis.keys \t\t= {};\n\n\t\t// State\n\t\tthis.state \t\t= \"\";\n\n\t\t// Score\n\t\tthis.score \t\t= 0;\n\n\t\t// Health\n\t\tthis.health \t= 100;\n\t}", "reset() {\n this.program = null;\n this.shader = null;\n }", "reset() {\n super.reset();\n this.soundViewTypeProperty.reset();\n this.isTonePlayingProperty.reset();\n }", "refreshAllResourcesWhenReady() {\n this.clearAll();\n this.refreshAllWhenReady = true;\n }", "reset() {\n this.health = 100;\n this.energy = 100;\n }", "reset() {\n this.cache = null\n this.counter = 0\n this.results = []\n }", "reset() {\n this._items = [];\n }", "reset() {\n factoryStore.set(this, new Map());\n recordStore.set(this, new Map());\n serializerStore.set(this, new Map());\n uuidStore.set(this, new Map());\n }", "reset() {\n super.reset();\n this.tracks.forEach( track => {\n if ( track.configurable ) {\n track.reset();\n }\n } );\n\n this.sceneProperty.reset();\n\n this.updateActiveTrack( this.sceneProperty.get() );\n }", "function resetData() {\n\t\t\tconsole.log(\"resetData()\");\n\n\t\t\tvm.results = [];\n\t\t\tvm.selectedIndex = -1;\n vm.selectedAccIndex = 0;\n\t\t\tvm.total_count = 0;\n loadEmptyObject();\n\t\t\tresetBoolean();\n\t\t}", "resetRelationCache() {\n this.relationCache = {};\n this.forEach((record) => record.initRelations());\n }", "reset(){\n this.live = 3;\n this.score = 0;\n this.init();\n }", "Reset () {\n this.reset = true\n }", "function reset() {\n // Clear all the GameObjects\n Object.keys(_this.gameObjects).forEach(function (type) {\n _this.gameObjects[type] = [];\n });\n // Call the custom reset function if it is defined\n if (_this.customReset) {\n _this.customReset();\n }\n }", "function resetLocal() {\n return northwind.Categories.toArray()\n .then(function (categories) {\n categories.forEach(function (c) { northwind.Categories.remove(c); });\n })\n .then(function () {\n return northwindRemote.Products.toArray()\n .then(function (products) {\n products.forEach(function (p) { northwind.Products.remove(p) })\n })\n })\n .then(function () {\n return northwind.saveChanges();\n })\n }", "resetGame(){\n // delete the old game\n this.modelGame.destroy(this.modelGame.resources[0]);\n // create a new game\n this.modelGame.addResource();\n\n this.modelGame.save(this.modelGame.resources[0], {disabledX: false});\n this.modelGame.save(this.modelGame.resources[0], {disabledO: false});\n\n this.setState({currentPlayer: \"C\"});\n\n\n this.setupTiles();\n }", "function resetData() {\n\t\t\tconsole.log(\"resetData()\");\n\n\t\t\tvm.results = [];\n\t\t\tvm.selectedIndex = -1;\n\t\t\tvm.total_count = 0;\n\n\t\t\t// rebuild empty apiDomain submission object, else bindings fail\n\t\t\tvm.apiDomain = {};\n\t\t\tvm.apiDomain.logicalDBKey = \"\";\t\n\t\t}", "resetSavedData () {\n this.objects = {}\n\n this.electData = {\n ComponentParts: [],\n ComponentToParts: [],\n PartToPart: [],\n PartToPartNames: [],\n need: {},\n pass: {}\n }\n\n this.gridSize = 100\n this.data.routing_data = []\n this.nets = []\n this.data.assets = []\n this.data.compSize = [20,20]\n }", "reset() {\n this.home();\n this.clean();\n this.begin();\n }", "function reset() {\n self.taskActionList([]);\n self.selectedTasklist([]);\n self.isTaskSelected(false);\n self.actionName('');\n self.actionComments('');\n self.showConfirmation('none');\n }", "reset()\n {\n Object.assign(this,this.__.originalData);\n this.errors.clear();\n }", "reinitialize() {\n this.food = {};\n this.generateDefaultFood();\n }", "free() {\n libvosk.vosk_model_free(this.handle);\n }", "reset() {\n Object.assign(this.propList, this.defaults);\n this.savePropFile();\n }", "reset() {\n this.data = $.extend(true, {}, this.cacheData);\n this.href = null;\n this.isBuilt = false;\n\n // Unsubscribe events\n this.eventBus.unsubscribeByScope(this);\n }", "constructor() {\n this.reset();\n }", "constructor() {\n this.reset();\n }", "reset() {\n this.tag = undefined;\n this.keyword = undefined;\n this.articles.forEach(article => article.delete());\n this.articles = [];\n }", "reset() {\r\n this.state = this.config.initial;\r\n }", "resetRelationCache() {\n this.relationCache = {};\n this.forEach(record => record.initRelations());\n }", "reset() {\r\n this.prevState=this.currentState;\r\n this.currentState = this.config.initial;\r\n }", "reset() {\r\n this.activeState = this.config.initial;\r\n }", "_resetState () {\n this._wsQueue = [];\n this._subscriptionsById.clear();\n this._subscriptionsByKey.clear();\n this._requests = {};\n this._calls = {};\n this._rpcRegs = {};\n this._rpcNames = new Set();\n\n // Just keep attrs that are have to be present\n this._cache = {\n reqId : 0,\n reconnectingAttempts: 0,\n opStatus : SUCCESS,\n closePromise : null,\n connectPromise : null,\n };\n }", "reset() {\n Object.getOwnPropertyNames(this.data)\n .map(modelName => {\n const model = this.data[modelName]\n model.updated = {}\n model.removed = {}\n\n model.mongoose.findOne.restore ? model.mongoose.findOne.restore() : null\n sinon.stub(model.mongoose, 'findOne').callsFake(param => this.getRecord(modelName, param._id, true))\n\n model.mongoose.create.restore ? model.mongoose.create.restore() : null\n sinon.stub(model.mongoose, 'create').callsFake(param => {\n const record = Database.newRecord(model, param)\n model.updated[record.id] = record\n return this.getRecord(modelName, record.id, true)\n })\n\n model.mongoose.find.restore ? model.mongoose.find.restore() : null\n sinon.stub(model.mongoose, 'find').callsFake(() => {\n const records = this.getAllRecords(modelName, true)\n records.sort((a, b) => a.id < b.id)\n return new MockQuery(records)\n })\n })\n }", "reset() {\r\n this.state=this.initial;\r\n this.statesStack.clear();\r\n\r\n }", "restore(){\n\t\tthis.resetCharges();\n\t\tthis.repair();\n\t}", "reset() {\n this.playerContainer.players.forEach(x => x.clearHand())\n this.winner = undefined;\n this.incrementState();\n this.clearSpread();\n this.deck = new Deck();\n this.clearPot();\n this.clearFolded();\n }", "clear() {\n\t\tthis.model.clear();\n\t}", "reset() {\r\n this.currentState = this.initalState;\r\n this.clearHistory();\r\n }", "resetAll() {\n // Clear any previous worlds and renderers\n // if (World && engine)\n // World.clear();\n\n super.resetAll();\n this.engine = Matter.Engine.create();\n }", "function reset() {\n // Reset (re-initalize) race object\n window[race_view].init();\n\n // reset spent resources display\n $(\"#\" + race_view + \"-supply\")\n .html(\n window[race_view].total_cost.supply.used + \n \" / \" +\n window[race_view].total_cost.supply.total\n );\n\n // Update mineral display\n $(\"#\" + race_view + \"-mineral\")\n .html(window[race_view].total_cost.mineral);\n\n // Update vespene display\n $(\"#\" + race_view + \"-vespene\")\n .html(window[race_view].total_cost.vespene);\n\n // Update time display\n $(\"#\" + race_view + \"-time\")\n .html(\"00:00\");\n \n // reset build view\n $(\"#\" + race_view + \"-build\")[0].innerHTML = \"\";\n}", "reset() {\r\n this.currentState = this.config.initial;\r\n this.recordStates.push(this.currentState);\r\n this.currentStatePosition++;\r\n this.recordMethods.push('reset');\r\n }", "reset() {\n for (let i = 0; i < this.allNodes.length; i++) { this.allNodes[i].reset(); }\n for (let i = 0; i < this.Splitter.length; i++) {\n this.Splitter[i].reset();\n }\n for (let i = 0; i < this.SubCircuit.length; i++) {\n this.SubCircuit[i].reset();\n }\n }", "reset() {\n this.modified = false;\n }", "reset() {\n this.unbind();\n }", "function ClearModels() {\n // $scope.addtechnologies = {};\n $scope.technologiesdata = {};\n $scope.technologyData1 = {}; \n $scope.viewtechnologiesData = {};\n $scope.user = {};\n $scope.technologyname = {};\n $scope.sch = {};\n $scope.technology = {};\n $scope.cTechnologyMasterId = {};\n }", "reset() {\n for (const sensor of this.activeSensors_.values()) {\n sensor.reset();\n }\n this.activeSensors_.clear();\n this.resolveFuncs_.clear();\n this.getSensorShouldFail_.clear();\n this.permissionsDenied_.clear();\n this.maxFrequency_ = 60;\n this.minFrequency_ = 1;\n this.receiver_.$.close();\n this.interceptor_.stop();\n }" ]
[ "0.74161077", "0.7365143", "0.7055081", "0.70172304", "0.6884132", "0.68580866", "0.67824113", "0.6743249", "0.6684327", "0.6573121", "0.6547111", "0.65466857", "0.65466857", "0.6514078", "0.65129024", "0.6496836", "0.6470842", "0.6457946", "0.6452422", "0.643962", "0.64213073", "0.64209634", "0.6398158", "0.6375933", "0.6346618", "0.6346618", "0.63395095", "0.63333994", "0.63329625", "0.6326806", "0.6317406", "0.63045263", "0.6304306", "0.6291544", "0.62814033", "0.62814033", "0.62814033", "0.6268648", "0.6239754", "0.6235851", "0.6227554", "0.6221541", "0.62200654", "0.62200654", "0.62160236", "0.6203911", "0.6203911", "0.6197878", "0.6195994", "0.619275", "0.6191391", "0.61899215", "0.61789995", "0.6177714", "0.6176988", "0.6171642", "0.61699486", "0.61673844", "0.61672914", "0.6155406", "0.615067", "0.6132516", "0.61163837", "0.61132526", "0.6106419", "0.6105572", "0.60946274", "0.60946196", "0.60944545", "0.6089006", "0.60830647", "0.6072997", "0.6069187", "0.60682964", "0.60640097", "0.60613334", "0.6059847", "0.60589486", "0.60528594", "0.6051943", "0.6051943", "0.6051326", "0.60465765", "0.6045969", "0.60457546", "0.6043971", "0.60420364", "0.6039983", "0.6038559", "0.60380137", "0.6037911", "0.6034403", "0.6031101", "0.60305595", "0.6018569", "0.6016056", "0.6014804", "0.6003744", "0.6002394", "0.5991375", "0.598666" ]
0.0
-1
Can the token do something to increase its movement range?
get canZoom () { return this.zoomsRemaining > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "update() {\n this.vel.add(this.acc);\n this.pos.add(this.vel);\n this.lifespan -= 2;\n\n this.vel.limit(5);\n }", "move() {\n this.x = this.x - 7\n }", "move(){\n if(this.counter <= 80){\n this.height = (this.counter*this.mworld.sqsize)/80;\n this.counter += 1;\n }\n else{\n this.vel.vector[1] += this.accel;\n this.pos.plus(this.vel);\n //ul is Upper Left Corner, UR upper right, ll lower left, lr lower right\n let ul = [this.pos.vector[0] , this.pos.vector[1]];\n let ur = [this.pos.vector[0]+this.width , this.pos.vector[1]];\n let ll = [this.pos.vector[0] , this.pos.vector[1]+this.height];\n let lr = [this.pos.vector[0]+this.width , this.pos.vector[1] + this.width];\n if(this.mworld.legendSolid(ll[0] + 2 ,ll[1] - 3) || this.mworld.legendSolid(lr[0] - 2,lr[1] - 3)){\n this.pos.vector[0] = this.startpos.vector[0];\n this.pos.vector[1] = this.startpos.vector[1];\n this.vel.vector[1] = 0;\n this.height = 0;\n this.counter = 0;\n }\n }\n }", "jump() {\n this.time = -this.terminalVelocity;\n }", "move(){\r\n this.x += this.dx;\r\n }", "function SetMoveRange( newMoveRange:Vector2 )\n{\n\tmoveRange = newMoveRange;\n}", "move() {\r\n this.y = this.y + Enemy.v;\r\n }", "newPos() {\n this.gravitySpeed += this.gravity;\n this.y += this.speedY - this.gravitySpeed;\n }", "update() {\n\n this.nextMoveX = this.x + this.nextDirectionX;\n this.nextMoveY = this.y + this.nextDirectionY;\n\n\n }", "move() {\r\n this.x = this.x + this.v;\r\n }", "function activ_dist(){\n if(distance_token == 0){\n distance_token = 1;\n score_actu();\n }\n}", "move(){\n\n this.charY = windowHeight - 200;\n if (this.state === \"right\") this.charX += 4;\n if (this.state === \"left\") this.charX -= 4;\n \n }", "move(movement) {\n this.position.add(movement);\n // if(this.a){\n this._render(this.running[this.x]);\n\n if(this.a){\n this.x++;\n if(this.x>5){\n this.x = 0;\n }\n }\n this.a =!this.a;\n // }\n // this.a = !this.a;\n }", "move() {\n this.y += this.yVelocity;\n if (this.y < -40) {\n score++;\n }\n }", "updatePos(token, tObj) {\n tObj.xPos = token.get('left');\n tObj.yPos = token.get('top');\n }", "function moveStep(){\n megamanXPos += megamanXSpeed;\n megamanYPos += megamanYSpeed;\n }", "start() {\n this.node.roll(180);\n }", "setMovement (dx, dy) {\n this.movementX += dx\n this.movementY += dy\n // make the movement a maximum of -1 to 1\n this.movementX = Math.sign(this.movementX)\n this.movementY = Math.sign(this.movementY)\n }", "land() {\n this.velocity += 20; \n }", "update(token) {\n if (token.get('_subtype') === 'token' && token.get('layer') === 'objects' && token.get('_pageid') === Campaign().get('playerpageid')) {\n const tObj = Token.getOrAddTokenObj(token);\n Token.updatePos(token, tObj);\n Token.updateSize(token, tObj);\n if (tObj.paladinProps === undefined) {\n Token.setBonus(tObj, Token.calcBonus(tObj));\n }\n else {\n calcAndSetAllBonuses();\n }\n }\n }", "function movementControlAndLock() {\n offsetX = -player.x + width / 2;\n offsetY = -player.y + height / 2;\n\n\n //ALLOWS USER TO REACH HORIZONTAL EDGE OF SCREEN//\n if (player.x >= worldLimit.w - width / 2) {\n offsetX = -(worldLimit.w - width);\n }\n\n if (player.x <= width / 2) {\n offsetX = 0;\n }\n\n //ALLOWS USER TO REACH VERTICAL EDGE OF SCREEN//\n if (player.y >= worldLimit.h - height / 2) {\n offsetY = -(worldLimit.h - height);\n }\n\n if (player.y <= height / 2) {\n offsetY = 0;\n }\n\n}", "accelerate(amount) {\n\t\tthis.speed += amount;\n\t\tthis.movement = true;\n\t}", "update() {\n //Copied from side scroller and changed for my program\n this.vel.add(this.acc);\n this.pos.add(this.vel);\n this.acc.set(0, 0);\n }", "move() {\n this.x += 3;\n this.y += 0;\n if (this.x > 50) {\n this.x += 0;\n this.y += 4;\n }\n if (this.x > 1200) {\n this.y = this.dy;\n this.x = this.dx;\n }\n }", "move() {\n\t this.pos[0] += this.vel[0];\n\t this.pos[1] += this.vel[1];\n\t }", "step() {\n // TODO figure out formula to apply drag\n this.vel = this.vel.add(this.acc).mult(1 - this.drag);\n this.pos = this.pos.add(this.vel);\n }", "move(){\n this.x = this.x + this.s;\n if (this.x > width){\n this.x = 0;\n }\n }", "function moveDecorate(){\r\n\tif(decorate.x>=9800){\r\n\t\tdecorate.x=0;\r\n\t}else{\r\n\t\tdecorate.x+=level.speed;\r\n\t}\r\n}", "changePos(delta) {\r\n var deltaTime = delta/20;\r\n if (deltaTime > 5) {\r\n deltaTime = 0;\r\n }\r\n this.position.y += this.movement.y*deltaTime;\r\n this.position.x += this.movement.x*deltaTime;\r\n if(this.game.player.unit === this && this.moving) { //Sends player's unit position to the server\r\n this.socket.emit('Change position', this.number, this.position.x, this.position.y);\r\n }\r\n //Restricts walkable zone\r\n this.checkBorder();\r\n\r\n if(!this.alive) { //Removes unit outside of the map while being dead\r\n this.position.y = -100;\r\n }\r\n }", "move() {\n\t\tthis.lastPosition = [ this.x, this.y ];\n\n\t\tthis.x += this.nextMove[0];\n\t\tthis.y += this.nextMove[1];\n\t}", "updateCoordinate() \n\t{\n\t\tif(this.counter>=this.constants[this.action].x.length)\n\t\t{\n\t\t\tthis.counter=0;\n\t\t\t//if action is anything other than 'STANDING' change the action back to 'STANDING'\n\t\t\tthis.action = 'STANDING';\n\t\t}\n\n\t\tif(this.action == 'WALK_LEFT')\n\t\t\tthis.ch_x = this.ch_x-10;\n\t\telse if(this.action == 'WALK_RIGHT')\n\t\t\tthis.ch_x = this.ch_x+10;\n\t}", "function moveGunner() {\n /* HOW IT WORKS\n 1) gunX is assigned to the x-coordinate (in px) of the gunner. \n 2) Depending on the value of charCode the gunX will be either incremented or decremented.\n 3) The position of the gunner is then set to the new value of gunX\n */\n gunX = gunner.offsetLeft\n gunStep = 0.01 * mainContainer.scrollWidth\n if (charCode === 39) {\n gunner.offsetLeft + gunStep > mainContainer.scrollWidth - gunner.offsetWidth ? clearInterval(gunMoveTimer) : gunX += gunStep\n } else if (charCode === 37) {\n gunner.offsetLeft - gunStep <= 0 ? clearInterval(gunMoveTimer) : gunX -= gunStep\n }\n gunner.style.left = `${gunX}px`\n }", "move(){\n this.x1 -= this.velocity;\n this.x2 -= this.velocity;\n \n if(this.x1 < -width){\n this.x1 = width;\n }\n if(this.x2 < -width){\n this.x2 = width;\n }\n \n }", "move() {\n this._offset = (this._offset + 1) % plainAlphabet.length\n }", "moveCharacter(data) {\n this.currentEnd = data;\n this._duration = this.getCharacterDuration(data);\n this.addNewPosition(this.currentEnd);\n\n }", "accelerate(){\n this.speed += 10;\n }", "move() {\n this.y -= this.speed;\n }", "move()\n {\n if(keyCode === 39)\n {\n Matter.body.applyForce(this.body,{x:40,y:-30});\n }\n\n if(keyCode === 37)\n {\n Matter.body.applyForce(this.body,{x:-40,y:-30});\n }\n }", "function movementChar () {\n player.movement();\n enemy.movement();\n }", "move() {\n this.posX += this.deltaX;\n this.posY += this.deltaY;\n }", "function positionTokenAtNode(token, node) {\n // these details depend on the node template\n token.location = node.position.copy().offset(4 + 6, 5 + 6);\n }", "accelerate(n) {\n this.gravity = n;\n }", "motion(code, position, feedrate) {\n\n // Add the code to the stack to feed to the specified position\n this.add(`${this.opCode(`G`, code)} ${this.positionCode(position)} ${this.feedrateCode(feedrate)}`);\n }", "move() {\n// Set velocity\n this.vx = -5, -this.speed, this.speed;\n// Update position\n this.x += this.vx;\n// Handle wrapping\n this.handleWrapping();\n }", "movement() {\n this.velocity = this.velocity + this.gravity; // updates velocity\n this.y = this.y + this.velocity // updates position with velocity\n }", "consume() {\n this.pos++;\n }", "change_move_status () {\r\n if(this.spaces_moved_hv > 0 || this.spaces_moved_d > 0){\r\n this.move_status =\r\n this.move_status == 0 ? 1 : 0;\r\n }\r\n }", "move () {\n }", "shift(delta) {\n this.start+=delta\n this.end+=delta\n }", "shift(delta) {\n this.start+=delta\n this.end+=delta\n }", "function moveTheRobot() {\n robot.x++; // Remember 'thing++' just means 'thing = thing + 1'\n // So this is changing the x value in 'robot' to 'robot.x + 1'\n // It's moving the robot along the x axis\n}", "function Start ()\n{\n nextTeleport = spawnRate;\n}", "move(direction, $event) {\n const action = {\n true: 'attack',\n false: 'move'\n }[$event.shiftKey]\n\n this.$http.post(`/api/actions/${action}`, {to: direction}).then(res => {\n if (217 !== res.status) {\n return\n }\n this.character.levelUp(res.data.message).then(function (event) {\n // TODO\n // sth.apply(event, args)\n console.warn(event)\n })\n })\n }", "function accelerate(){this.velInfluence = accelerator;}", "playerFrame() {\n // console.log(this.moving);\n if (!this.moving) {\n this.frameY = 1\n if (this.frameX === 5) {\n this.frameX = 0\n }\n else if (this.frameX === 11) {\n this.frameX = 6\n }\n else if (this.frameX === 17) {\n this.frameX = 12\n }\n else if (this.frameX >= 23){\n this.frameX = 18\n }\n }\n if (this.frameX > 22) {\n this.frameX = 0\n }\n this.frameX++ // TODO: this bugs out when holding not dir keys and running into walls\n }", "move(){\r\n this.x += this.dx;\r\n this.y += this.dy;\r\n\r\n }", "increaseSpeed() {\n\n this.speed = Math.max(this.speed - Snake.SPEED_INCREMENT, Snake.MAX_SPEED);\n\n }", "function uenemy(g){\n if(g.x <= g.leftLimit) {\n g.body.velocity.x = 100;\n g.animations.play('right');\n\n } else if (g.x >= g.rightLimit) {\n g.body.velocity.x = -100;\n g.animations.play('left');\n }\n }", "move(amt) {\n const vel = p5.Vector.fromAngle(this.heading);\n vel.setMag(amt);\n this.pos.add(vel);\n }", "function accelRight(n){\n hero.facingRight = true;\n if(hero.xVel < 0 && hero.onGround){\n hero.xVel = 0;\n }\n hero.xVel += n;\n if(hero.xVel > hero.maxSpeed){\n hero.xVel = hero.maxSpeed;}\n}", "move(){\n this.x1 -= this.velocidade;\n this.x2 -= this.velocidade;\n \n \n // Preparando para a volta do background para o início.\n if (this.x1 < -width)\n {\n this.x1 = width;\n }\n \n if (this.x2 < -width)\n {\n this.x2 = width;\n }\n \n \n }", "consume() {\n this.tokenIndex++;\n }", "move() {\n if (this.crashed) {\n return;\n }\n if (this.direction == 1) {\n this.y -= settings.step;\n }\n else if (this.direction == 2) {\n this.x += settings.step;\n }\n else if (this.direction == 3) {\n this.y += settings.step;\n }\n else if (this.direction == 4) {\n this.x -= settings.step;\n }\n }", "function move() {\n orb.roll(60, Math.floor(Math.random() * 360));\n }", "move() { }", "move() { }", "function alterGamerRange(min, max) {\n if (min >= 10) {\n min -= 10;\n } else if (min < 10) {\n min = 0;\n }\n max += 10;\n }", "move(modifier, environmentObjects, player) {\r\n this.x += this.velocity*modifier*this.coeffX;\r\n this.y += this.velocity*modifier*this.coeffY;\r\n if(this.hitSomething(environmentObjects, player)) {\r\n this.live = false;\r\n }\r\n if(this.x < 0 || this.x > 10000 || this.y < 0 || this.y > 5625){\r\n this.live = false;\r\n }\r\n }", "move(direction) {\n const d = direction === 'right' ? 1 : -1;\n const dx = this.x + d * this.speed;\n // limit the x coordinate to the canvas plus minus the size of the tank\n this.x = constrain(\n dx,\n -CANVAS_WIDTH / 2 + this.width / 2,\n CANVAS_WIDTH / 2 - this.width / 2\n );\n }", "function move()\n{\n\n}", "onKeyDown(event){\r\n let movable = 1;\r\n\tswitch(event.keyCode){\r\n\t\tcase cc.macro.KEY.down:\r\n\t\t\tthis.node.anchorX = 0;\r\n\t\t\t// 如果前进的方向上有障碍物,则不移动\r\n\t\t\tfor (var i=0;i < this.size;i++){\r\n if( (this.Grass.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y + this.rate) != 0 ) ||\r\n\t\t\t (this.Wall.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y + this.rate) != 0 ) ||\r\n\t\t\t (this.Ornament.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y + this.rate) != 0 ) ||\r\n\t\t\t (this.Shelf.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y + this.rate) != 0 ) )\r\n movable = 0;\r\n }\r\n\t\t\tthis.tiledTile.y += this.rate * movable;\r\n\t\t\tbreak;\r\n\t\tcase cc.macro.KEY.up:\r\n\t\t\tthis.node.anchorX = 0;\r\n\t\t\t// 如果前进的方向上有障碍物,则不移动\r\n\t\t\tfor (var i=0;i < this.size;i++){\r\n if( (this.Grass.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y - this.rate - this.size + 1) != 0 ) ||\r\n\t\t\t (this.Wall.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y - this.rate - this.size + 1) != 0 ) ||\r\n\t\t\t (this.Ornament.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y - this.rate - this.size + 1) != 0 ) ||\r\n\t\t\t (this.Shelf.tiledLayer.getTileGIDAt(this.tiledTile.x + i, this.tiledTile.y - this.rate - this.size + 1) != 0 ) )\r\n movable = 0;\r\n } \r\n\t\t\tthis.tiledTile.y += -this.rate * movable;\r\n\t\t\tbreak;\r\n\t\tcase cc.macro.KEY.left:\r\n\t\t\tthis.node.anchorX = -0.5;\r\n\t\t\t// 如果前进的方向上有障碍物,则不移动\r\n\t\t\tfor (var i=0;i < this.size;i++){\r\n if( (this.Grass.tiledLayer.getTileGIDAt(this.tiledTile.x - this.rate, this.tiledTile.y - i) != 0 ) ||\r\n\t\t (this.Wall.tiledLayer.getTileGIDAt(this.tiledTile.x - this.rate, this.tiledTile.y - i) != 0 ) ||\r\n\t\t (this.Ornament.tiledLayer.getTileGIDAt(this.tiledTile.x - this.rate, this.tiledTile.y - i) != 0 ) ||\r\n\t\t (this.Shelf.tiledLayer.getTileGIDAt(this.tiledTile.x - this.rate, this.tiledTile.y - i) != 0 ) )\r\n movable = 0;\r\n }\r\n\t\t\tthis.tiledTile.x += -this.rate * movable;\r\n\t\t\tbreak;\r\n\t\tcase cc.macro.KEY.right:\r\n\t\t\tthis.node.anchorX = -0.5;\r\n\t\t\t// 如果前进的方向上有障碍物,则不移动\r\n\t\t\tfor (var i=0;i < this.size;i++){\r\n if( (this.Grass.tiledLayer.getTileGIDAt(this.tiledTile.x + this.rate + this.size - 1, this.tiledTile.y - i) != 0 ) ||\r\n\t\t\t (this.Wall.tiledLayer.getTileGIDAt(this.tiledTile.x + this.rate + this.size - 1, this.tiledTile.y - i) != 0 ) ||\r\n\t\t\t (this.Ornament.tiledLayer.getTileGIDAt(this.tiledTile.x + this.rate + this.size - 1, this.tiledTile.y - i) != 0 ) ||\r\n\t\t\t (this.Shelf.tiledLayer.getTileGIDAt(this.tiledTile.x + this.rate + this.size - 1, this.tiledTile.y - i) != 0 ) )\r\n movable = 0;\r\n }\r\n\t\t\tthis.tiledTile.x += this.rate * movable;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\t\t\t\r\n\t}\r\n}", "advance () {\n if (!this.hasMoreTokens()) return (this.currentToken = null)\n this.currentToken = this.tokens[++this.currentTokenIndex]\n this.notify(this.currentTokenIndex)\n }", "move(){\n console.log('circle move')\n }", "addToken(type, range) {\n const token = Object.assign({ type, value: this.code.slice(...range) }, this.getConvertLocation(...range));\n this.tokens.push(token);\n return token;\n }", "function move(){\n //getting the sentence/object id\n obj = document.getElementById(\"sentence\");\n left = parseInt(document.getElementById(\"startPoint\").value); //start \n right = parseInt(document.getElementById(\"endPoint\").value); //the position set start of input \n\n //little interval loop to begin the loop movement of the text\n setInterval(function(){startMove(); }, 1);\n}", "function incrementProjectileSpeed()\n{\n if(enemySpeed <= 2)\n {\n enemySpeed = enemySpeed + 0.1;\n }\n}", "move(predicate) {\n //console.log(predicate);\n const moveBy = this.moveMap[this.state.heading];\n // console.log(moveBy);\n const nextPos = { x: this.state.pos.x, y: this.state.pos.y };\n //console.log(nextPos);\n // Set next position\n nextPos[moveBy.plane] += moveBy.amount;\n\n // Check if move is legal\n const isLegal = predicate(nextPos);\n\n if (isLegal) {\n this.state.pos = nextPos;\n }\n }", "function movementDecision(bug, dest, dt){\n var val = (bug.angle - dest + 360) % 360;\n if (val > 180) {\n bug.angle += 1;\n } else if (val == 0){\n coordChange(bug,dt);\n } else {\n bug.angle -= 1;\n }\n}", "playerMovement() {\n if (this.key.up.isDown && !this.movementDisabled) {\n this.setVelocityY(-this.speed);\n if (this.y < 64) {this.y = 64}\n } else if (this.key.down.isDown && !this.movementDisabled) {\n this.setVelocityY(this.speed);\n if (this.y > 3040) {this.y = 3040}\n } else {\n this.setVelocityY(0);\n }\n if (this.key.left.isDown && !this.movementDisabled) {\n this.setVelocityX(-this.speed);\n if (this.x < 32) {this.x = 32}\n this.flipX = false;\n } else if (this.key.right.isDown && !this.movementDisabled) {\n this.setVelocityX(this.speed);\n if (this.x > 5024) {this.x = 5024}\n this.flipX = true;\n } else {\n this.setVelocityX(0);\n }\n\n if (\n this.key.down.isDown ||\n this.key.up.isDown ||\n this.key.left.isDown ||\n this.key.right.isDown\n ) {\n if (!this.isWalking) {\n this.playerWalkAnimStart();\n }\n } else {\n this.playerWalkAnimStop();\n }\n\n this.updateNametagLocation();\n \n }", "move(){\n this.vel.vector[1] = 0;\n this.pos.plus(this.vel);\n if(this.mworld.legendSolid(this.pos.vector[0], this.pos.vector[1]+2) == 1 || this.mworld.legendSolid(this.pos.vector[0]+this.width,this.pos.vector[1]+2) == 1){\n this.vel.vector[0] = 0 - this.vel.vector[0];\n }\n }", "onShift(token) {\n return token;\n }", "onShift(token) {\n return token;\n }", "function move() {\r\n\t\r\n}", "autoMove() {\n this.x += this.dx * this.dxv;\n if( this.x > 535) {\n this.x += -540;\n } else if (this.x < -40) {\n this.x =+ 500;\n }\n this.y += this.dy * this.dyv;\n }", "[PrivateActions.move](action) {\n\t\tif (Object.values(Direction).indexOf(action.direction) == -1) {\n\t\t\tthrow new Error(\"Invalid direction! Direction: \" + action.direction);\n\t\t}\n\n\t\tthis[CooldownSetter](PrivateActions.move);\n\n\t\tlet futurePosition = this.getFuturePosition(action);\n\t\tthis.x = futurePosition.x;\n\t\tthis.y = futurePosition.y;\n\n\t\treturn false;\n\t}", "incrementRotor(){if(this.bias<25){this.bias+=1;}else{this.bias=0;}}", "move() {\n\n }", "function updateRange() {\n video[this.name] = this.value;\n}", "function move1(msg)\n{\n\tclient.send(`{ \"type\": \"moveForward\", \"arg\": 150 }`)\n}", "move() {\n }", "function moveBetween(enemyObj){\n\tlet currAngle = enemyObj.sprite.angle % 6.28;\n\tlet angleDiff;\n\tif (Math.abs(currAngle - enemyObj.nextAngle) < 0.019){\n\t\tlet mov = forwardByAngle(enemyObj.sprite.angle, 2.5);\n enemyObj.sprite.move(mov[0], mov[1]);\n\n\t}\n\telse {\n\t\t//console.log(currAngle, enemyObj.nextAngle);\n\t\tif (currAngle > enemyObj.nextAngle){\n\t\t\tenemyObj.sprite.rotate(-0.02);\n\t\t}\n\t\telse{\n\t\t\tenemyObj.sprite.rotate(0.02);\n\t\t}\n\t}\n\tenemyObj.sprite.update();\n}", "consume() {\n this.tokenIndex++;\n }", "move(){\n\n this.segments[this.select].x += this.segments[this.select].deltaX;\n this.segments[this.select].y += this.segments[this.select].deltaY;\n\n }", "sendToStartPos() {\n this.x = this.spawnX;\n this.y = this.spawnY;\n }", "update() {\n this.pos -= this.vel;\n }", "shift(delta) { start+=delta }", "shift(delta) { start+=delta }", "function goingUp() {\n yCharacter -= characterSpeed;\n}", "movement_left() {\n if (this.distance != 0) {\n let delay = 1000 / 60;\n this.scene.time.delayedCall(delay, () => {\n this.x -= this.movespeed;\n this.distance -= this.movespeed;\n this.movement_left();\n });\n }\n if (this.distance == 0) { \n console.log(this.x, this.y);\n this.moving = false;\n }\n }", "add() {\n if (!this.value) {\n this.value = this.min || 0;\n }\n const step = this.ctrl_key ? 100 : this.shift_key ? 10 : this.step || 1;\n this.value += step;\n if (this.value > this.max) {\n this.value = this.max || 10;\n }\n this.setValue(this.value);\n }", "changeDir(dir){\n this.direction[0] += dir;\n }" ]
[ "0.6102732", "0.5807488", "0.57916284", "0.5774277", "0.57652086", "0.57527107", "0.5745585", "0.57452047", "0.57203805", "0.5718107", "0.5667535", "0.5655507", "0.56264305", "0.562299", "0.5622085", "0.5621657", "0.5596414", "0.55859965", "0.55736107", "0.55712384", "0.5557304", "0.5544787", "0.55360955", "0.5527921", "0.5527236", "0.55099964", "0.5504361", "0.5503306", "0.5494611", "0.5491138", "0.5476172", "0.5475898", "0.54605764", "0.54547393", "0.5447322", "0.5444905", "0.54442525", "0.5436507", "0.5417882", "0.5404827", "0.54022753", "0.5392696", "0.53888124", "0.5388625", "0.5386021", "0.538206", "0.5372968", "0.5364013", "0.53560174", "0.53560174", "0.53553736", "0.534971", "0.5343108", "0.5341399", "0.53223807", "0.53196776", "0.53187263", "0.53150254", "0.53122073", "0.5311798", "0.5305152", "0.53049856", "0.5289794", "0.5289132", "0.52866614", "0.52866614", "0.5279503", "0.5275799", "0.52661645", "0.52652854", "0.5264922", "0.52573705", "0.525166", "0.5250643", "0.5248907", "0.52488536", "0.5243391", "0.5243244", "0.5240482", "0.52395296", "0.52394277", "0.52394277", "0.5235559", "0.52334535", "0.5232023", "0.52319694", "0.5229388", "0.5226256", "0.52221686", "0.52170426", "0.52090824", "0.5199585", "0.51980627", "0.51953584", "0.5194185", "0.51872206", "0.51872206", "0.51823604", "0.517783", "0.5175618", "0.51694" ]
0.0
-1
todo: Advanced weapon selection
get meleWeapon () { return this.hasMele ? this.meleWeapons[0] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function equipWeapon(selection){\n\tplayer.weapon = armory[wList[selection]].weapon;\n}", "function selectItem(num){\n if (inventstage.split(\"_\")[0] !== \"toolbelt\") {\n if (num == 0) { selected = slot1.textContent.split(\":\")[0] }\n if (num == 1) { selected = slot2.textContent.split(\":\")[0] }\n if (num == 2) { selected = slot3.textContent.split(\":\")[0] }\n console.log(\"Selected: \" + selected);\n updateInvent(null, null, true, true);\n }\n else if (!combatActive[0])\n {\n if (num == 0) {selected = slot1.textContent.split(\":\")[0]}\n if (num == 1) {selected = slot2.textContent.split(\":\")[0]}\n if (num == 2) {selected = slot3.textContent.split(\":\")[0]}\n for(itemlist in toolbelt){\n //console.log(itemlist);\n for(i = 0; i < toolbelt[itemlist].length; i++)\n {\n //console.log(item);\n if (selected === toolbelt[itemlist][i].name) {\n if (money >= toolbelt[itemlist][i].cost[0] && toolbelt[itemlist][i].level > 0) {\n if(toolbelt[itemlist][i].level < entities[\"player\"][\"xp\"][\"level\"]){\n money -= toolbelt[itemlist][i].cost[0];\n toolbelt[itemlist][i].cost[0] += toolbelt[itemlist][i].cost[1];\n if (inventstage.split(\"_\")[1] === \"weapons\") {\n //console.log(toolbelt[itemlist][i].speed[0]);\n //console.log(toolbelt[itemlist][i].speed[1]);\n //console.log(toolbelt[itemlist][i].speed[0] + toolbelt[itemlist][i].speed[1]);\n toolbelt[itemlist][i].speed[0] += toolbelt[itemlist][i].speed[1];\n //Now that's a lota daamage!!\n toolbelt[itemlist][i].damage[0] += toolbelt[itemlist][i].damage[1];\n if(i==1){\n toolbelt[itemlist][i].maCost[0] += toolbelt[itemlist][i].maCost[1];\n }\n }\n if (inventstage.split(\"_\")[1] === \"tools\") {\n toolbelt[itemlist][i].efficiency[0] += toolbelt[itemlist][i].efficiency[1];\n }\n if (inventstage.split(\"_\")[1] === \"apparel\") {\n toolbelt[itemlist][i].ac[0] += toolbelt[itemlist][i].ac[1];\n }\n toolbelt[itemlist][i].level += 1;\n console.log(\"Upgraded: \" + selected);\n\n equipped = [\"\", \"\"];\n updateInvent(null, null, true, true);\n } else{\n desc.textContent = \"You need to level up to upgrade \"+selected;\n }\n\n }\n else\n {\n desc.textContent = \"Not enough funds to upgrade \"+selected;\n }\n }\n\n }\n }\n }\n else\n {\n if (num == 0) {selected = slot1.textContent.split(\":\")[0]} if (num == 1) {selected = slot2.textContent.split(\":\")[0]} if (num == 2) {selected = slot3.textContent.split(\":\")[0]}\n if (inventstage.split(\"_\")[1] === \"weapons\") {\n for (i in toolbelt.weapons)\n {\n if (toolbelt.weapons[i].name === selected)\n {\n if (toolbelt.weapons[i].wc === \"w\" && toolbelt.weapons[i].level > 0) {\n let equip = toolbelt.weapons[i];\n toolbelt.weapons.splice(i, 1);\n toolbelt.weapons.splice(0, 0, equip);\n }\n if (toolbelt.weapons[i].wc === \"s\" && toolbelt.weapons[i].level > 0) {\n let equip = toolbelt.weapons[i];\n toolbelt.weapons.splice(i, 1);\n toolbelt.weapons.splice(1, 0, equip);\n }\n }\n }\n }\n if (inventstage.split(\"_\")[1] === \"apparel\") {\n for (i in toolbelt.apparel) {\n if (toolbelt.apparel[i].name === selected) {\n if (toolbelt.apparel[i].level > 0)\n {\n let equip = toolbelt.weapons[i];\n toolbelt.weapons.splice(i, 1);\n toolbelt.weapons.splice(0, 0, equip);\n }\n }\n }\n }\n entities.player.armor = toolbelt.apparel[0];\n entities.player.weapon = toolbelt.weapons[0];\n entities.player.spell = toolbelt.weapons[1];\n updateInvent(null);\n }\n}", "function pickUpWeapon(weapon, player) {\n // console.log(\"pickUpWeapon\");\n if (player.weapon != undefined) {\n weapons.push(player.weapon);\n player.weapon.currentPos = player.currentPos;\n player.weapon.isHidden = false;\n }\n player.weapon = weapon; //instance of the player and weapon object\n\n weapon.isHidden = true;\n}", "function updateWeapon(char, i) {\n \tif (game.data.hovered_over === char.id) {\n \tvar index = $('input[name=equip]:checked').val();\n \tif (typeof index != 'undefined') {\n \tchar.equipped = char.weapons[index];\n \tgame.data.weap_range[i] = char.equipped.range;\n \t}\n \t}\n}", "function pickUpItem(person,weapon){\n person.inventory[person.inventory.length] = weapon;\n hero.inventory[hero.inventory.length] = weapon;\n return person;\n}", "function randomWeapon() {\r\n let array = [\r\n { weapon: \"Sword\", type: \"physical\", ability: \"randomInt(4, 12)\", deathNote: \"was sliced in half by a sword!\" },\r\n { weapon: \"Shovel\", type: \"physical\", ability:\"randomInt(3, 10)\", deathNote: \"got dugged by a shovel!\" },\r\n { weapon: \"Pistol\", type: \"ranged\", ability: \"randomInt(7, 20)\", deathNote: \"was shot by a pistol!\" },\r\n { weapon: \"Knife\", type: \"physical\", ability: \"randomInt(6, 9)\", deathNote: \"was stabbed in the throat!\" },\r\n { weapon: \"Shotgun\", type: \"ranged\", ability: \"randomInt(4, 12)\", deathNote: \"was blasted to rubble!\" },\r\n { weapon: \"Spear\", type: \"ranged\", ability: \"randomInt(1, 20) + randomInt(1, 10)\", deathNote: \"got pierced by a spear!\" },\r\n { weapon: \"Molotov\", type: \"ranged\", ability: \"randomInt(4, 7) + randomInt(4, 7)\", deathNote: \"screamed as fire from a broken molotov seared thy skin.\" },\r\n { weapon: \"Machine Gun\", type: \"ranged\", ability: \"randomInt(4, 5) + randomInt(6, 7) + randomInt(7, 8)\", deathNote: \"was ripped apart by bullets!\" },\r\n { weapon: \"Frying Pan\", type: \"magic\", ability: \"randomInt(10, 12)\", deathNote: \"was fried by a frying pan!\" },\r\n { weapon: \"Blood Magic\", type: \"magic\", ability: \"randomInt(0, 22)\", deathNote: \"was destroyed inside-out by inner blood turmoil!\" },\r\n { weapon: \"Laser Sword\", type: \"magic\", ability: \"randomInt(11, 13)\", deathNote: \"was cut in half by pure plasma!\" },\r\n { weapon: \"Grenade\", type: \"ranged\", ability: \"10\", deathNote: \"was blew up by a grenade!\" },\r\n { weapon: \"Shield\", type: \"physical\", ability: \"randomInt(7, 10) - 5\", deathNote: \"neck broke by getting bashed by a shield!\" },\r\n { weapon: \"Rocket Launcher\", type: \"physical\", ability: \"randomInt(20, 50) - 30\", deathNote: \"torn apart by a missle!\" },\r\n { weapon: \"Holy Cross\", type: \"magic\", ability: \"randomInt(1, 12) + 10\", deathNote: \"was smited by a holy might!\" },\r\n { weapon: \"Railgun\", type: \"ranged\", ability: \"randomInt(1, 100) - 40\", deathNote: \"was fried by a plasma beam!\" }\r\n ];\r\n\r\n let random = randomInt(0, array.length);\r\n return array[random];\r\n}", "function weapon(){\n document.getElementById('weapon');\n pickUpItem(hero,{ type: 'banana skin', damage: 500});\n console.log(`Your weapon of choice is a ${hero.weapon.type}. Damage value = ${hero.weapon.damage}.`);\n//this is calling what is written in the original object. AHHHHHHHHH.\n}", "function attack() {\n if (playerTurn == true) {\n gamerInput = new GamerInput(\"Attack\");\n\n var weaponChoice = selectBox.options[selectBox.selectedIndex].text;\n console.log(weaponChoice);\n\n if (weaponChoice == \"Sword\") {\n gameobjects[1].health = gameobjects[1].health - 25;\n playerTurn = false;\n } else if (weaponChoice == \"Fireball\") {\n gameobjects[1].health = gameobjects[1].health - 30;\n playerTurn = false;\n } else if (weaponChoice == \"Crossbow\") {\n gameobjects[1].health = gameobjects[1].health - 15;\n playerTurn = false;\n }\n }\n}", "function makeEnemyChoice() {\n const choices = [\"horse\", \"hay\", \"sword\"];\n const choiceIndex = Math.floor(Math.random() * choices.length);\n selectItem(\"enemy\", choices[choiceIndex]);\n}", "function weaponExec(type, level)\n{\n switch(type)\n {\n case \"missili\":\n {\n switch(level)\n {\n case \"1\":\n {\n return fireMissile(1); \n }\n case \"2\":\n {\n var shoot = [];\n for (var i = 0; i < 3; i++){\n shoot[i] = fireMissile(2);\n };\n\n return (shoot[0] || shoot[1] || shoot[2]); \n }\n case \"3\":\n {\n var shoot = [];\n for (var i = 0; i < 7; i++){\n shoot[i] = fireMissile(3);\n };\n\n return (shoot[0] || shoot[1] || shoot[2] || shoot[3] || shoot[4] || shoot[5] || shoot[6]); \n }\n }\n }\n break;\n\n case \"scudo\":\n {\n raiseShield(level);\n return true;\n }\n break;\n\n\n case \"bomba\":\n {\n if(bombExplosion(level))\n {\n weaponCooldown = level*level*100;\n fireCooldown = level*level*50;\n \n return true;\n }\n else\n return false;\n }\n break;\n\n default:\n console.log(\"Arma non riconosciuta!\");\n return false;\n }\n}", "equipWeapon(name) {\n const weapon = name || \"fists\"\n this.equippedWeapon = Item.create(weapon)\n\n if (this.stored.weapon && this.stored.weapon !== \"fists\") {\n this.loot(this.stored.weapon)\n }\n\n this.stored.weapon = weapon\n }", "function equipItem() {\r\n\tfor(var i = 0; i < playerBag.length; i++) {\r\n\t\tif(currItemCode == playerBag[i]) {\r\n\t\t\tcheckEquip();\r\n\t\t\tclosedVBox();\r\n\t\t\tgetArmorBonus();\r\n\t\t\t//getWeaponBonus(); <-- might use for magical weapons\r\n\t\t\tgetWeaponDmgBonus();\r\n\r\n\t\t}\r\n\t}\r\n}", "function generateWeaponOptions() {\n\tvar className = window.className;\n\n\tvar mainHand = [];\n\tvar offHand = [];\n\tvar multipleWeaponSets = true;\t\t\t//Default true, set false on class by class basis\n\n\t//Clear current options\n\t$('.gearTable').find('option').remove();\n\n\t//Generate available options by class and multiple weapon sets\n\tswitch (className) {\n\t\tcase 'WARRIOR':\n\t\t\tmainHand = [\"Axe\",\"Mace\",\"Sword\",\"Greatsword\",\"Hammer\",\"Longbow\",\"Rifle\"];\n\t\t\toffHand = [\"Axe\",\"Mace\",\"Sword\",\"Shield\",\"Warhorn\"];\n\t\t\tbreak;\n\t\tcase 'GUARDIAN':\n\t\t\tmainHand = [\"Mace\",\"Sword\",\"Scepter\",\"Greatsword\",\"Hammer\",\"Staff\"];\n\t\t\toffHand = [\"Focus\",\"Shield\",\"Torch\"];\n\t\t\tbreak;\n\t\tcase 'ENGINEER':\n\t\t\tmultipleWeaponSets = false;\n\t\t\tmainHand = [\"Pistol\", \"Rifle\"];\n\t\t\toffHand = [\"Pistol\",\"Shield\"];\n\t\t\tbreak;\n\t\tcase 'RANGER':\n\t\t\tmainHand = [\"Axe\", \"Sword\", \"Greatsword\", \"Longbow\", \"Shortbow\"];\n\t\t\toffHand = [\"Axe\", \"Dagger\", \"Warhorn\"];\n\t\t\tbreak;\n\t\tcase 'THIEF':\n\t\t\tmainHand = [\"Dagger\", \"Pistol\", \"Sword\", \"Shortbow\"];\n\t\t\toffHand = [\"Dagger\", \"Pistol\"];\n\t\t\tbreak;\n\t\tcase 'ELEMENTALIST':\n\t\t\tmultipleWeaponSets = false;\n\t\t\tmainHand = [\"Dagger\", \"Scepter\", \"Staff\"];\n\t\t\toffHand = [\"Dagger\", \"Focus\"];\n\t\t\tbreak;\n\t\tcase 'NECROMANCER':\n\t\t\tmainHand = [\"Axe\", \"Dagger\", \"Scepter\", \"Staff\"];\n\t\t\toffHand = [\"Dagger\", \"Focus\", \"Warhorn\"];\n\t\t\tbreak;\n\t\tcase 'MESMER':\n\t\t\tmainHand = [\"Sword\", \"Scepter\", \"Greatsword\", \"Staff\"];\n\t\t\toffHand = [\"Pistol\", \"Sword\", \"Focus\", \"Torch\"];\n\t\t\tbreak;\n\t\tdefault:\n\t}\n\n\tif(multipleWeaponSets === false) {\n\t\t//Disable select statements in weapon set 2 and din the option field\n\t\t$(\"#weaponSet2 .inputSelection\").addClass(\"inputSelectionInactive\");\n\t}\n\n\n\tvar mainHandHTML = '<option value=\"0\" selected>'+ \" \"+'</option>';\n\tvar offHandHTML = '<option value=\"0\" selected>'+ \" \"+'</option>';\n\t//Gen mainHands\n\tfor (weapon of mainHand) {\t\n\t\tmainHandHTML += '<option value=\"'+weapon+'\">'+weapon+'</option>'; \n\t}\n\t//Gen offhands\n\tfor (weapon of offHand) {\t\n\t\toffHandHTML += '<option value=\"'+weapon+'\">'+weapon+'</option>'; \n\t}\n\n\t//Append both\n\t$(\".mainHand\").append(mainHandHTML);\n\t$(\".offHand\").append(offHandHTML);\n}", "function chooseWeapons(weapon){\n userWeapon = weapon;\n if (weapon === 'rock'){\n document.getElementById('userRock').style.visibility = \"visible\";\n document.getElementById('userPaper').style.visibility = \"hidden\";\n document.getElementById('userScissors').style.visibility = \"hidden\";\n } \n else if (weapon === 'paper'){\n document.getElementById('userRock').style.visibility = \"hidden\";\n document.getElementById('userPaper').style.visibility = \"visible\";\n document.getElementById('userScissors').style.visibility = \"hidden\";\n }\n else{\n document.getElementById('userRock').style.visibility = \"hidden\";\n document.getElementById('userPaper').style.visibility = \"hidden\";\n document.getElementById('userScissors').style.visibility = \"visible\";\n }\n \n var weaponRandom = Math.random();\n if (weaponRandom <= 0.33){\n document.getElementById('compRock').style.visibility = \"visible\";\n document.getElementById('compPaper').style.visibility = \"hidden\";\n document.getElementById('compScissors').style.visibility = \"hidden\";\n compWeapon = \"rock\";\n } \n else if (weaponRandom <= 0.67){\n document.getElementById('compRock').style.visibility = \"hidden\";\n document.getElementById('compPaper').style.visibility = \"visible\";\n document.getElementById('compScissors').style.visibility = \"hidden\";\n compWeapon = \"paper\";\n }\n else{ \n document.getElementById('compRock').style.visibility = \"hidden\";\n document.getElementById('compPaper').style.visibility = \"hidden\";\n document.getElementById('compScissors').style.visibility = \"visible\";\n compWeapon = \"scissors\"\n }\n \n}", "changeWeapon(weapon) {\n if (weapon === \"circle\") {\n DATA.human = \"O\";\n DATA.ai = \"X\";\n DATA.humanSVG = CIRCLE;\n DATA.aiSVG = CROSS;\n VIEW.weaponDisplay();\n } else {\n DATA.human = \"X\";\n DATA.ai = \"O\";\n DATA.humanSVG = CROSS;\n DATA.aiSVG = CIRCLE;\n VIEW.weaponDisplay();\n }\n\n }", "function ItemPickup(itemNum) {\n\tcg.itemPickup = itemNum;\n\tcg.itemPickupTime = cg.time;\n\tcg.itemPickupBlendTime = cg.time;\n\n\t// See if it should be the grabbed weapon.\n\tif (BG.ItemList[itemNum].giType === IT.WEAPON) {\n\t\t// Select it immediately.\n\t\tif (cg_autoSwitch.get() && BG.ItemList[itemNum].giTag !== WP.MACHINEGUN) {\n\t\t\tcg.weaponSelect = BG.ItemList[itemNum].giTag;\n\t\t}\n\t}\n}", "function computerWeapon(){\n let choices = ['ROCK','PAPER','SCISSOR'];\n return choices[Math.floor(Math.random() * choices.length)];\n}", "function addWeapon(matches, msg){\r\n //if nothing was selected and the player is the gm, quit\r\n if(msg.selected == undefined || msg.selected == []){\r\n if(playerIsGM(msg.playerid)){\r\n whisper('Please carefully select who we are giving this weapon to.', {speakingTo: msg.playerid});\r\n return;\r\n }\r\n }\r\n\r\n var name = matches[1];\r\n var ammoStr, quantity;\r\n if(matches[2]) ammoStr = matches[2];\r\n if(matches[3]) quantity = matches[3];\r\n var suggestion = '!addWeapon $';\r\n if(ammoStr) suggestion += '(' + ammoStr + ')';\r\n if(quantity) suggestion += '[x' + quantity + ']';\r\n var weapons = suggestCMD(suggestion, name, msg.playerid);\r\n if(!weapons) return;\r\n var weapon = weapons[0];\r\n var myPromise = new Promise(function(resolve){\r\n var inqweapon = new INQWeapon(weapon, function(){\r\n resolve(inqweapon);\r\n });\r\n });\r\n\r\n myPromise.catch(function(e){log(e)});\r\n myPromise.then(function(inqweapon){\r\n if(ammoStr){\r\n var ammoSuggestion = '!addWeapon ' + name + '($)';\r\n if(quantity) ammoSuggestion += '[x' + quantity + ']';\r\n var clips = suggestCMD(ammoSuggestion, ammoStr.split(','), msg.playerid);\r\n if(!clips) return;\r\n var ammoNames = [];\r\n for(var clip of clips){\r\n ammoNames.push(clip.get('name'));\r\n }\r\n }\r\n\r\n eachCharacter(msg, function(character, graphic){\r\n var characterPromise = new Promise(function(resolve){\r\n new INQCharacter(character, graphic, function(inqcharacter){\r\n resolve(inqcharacter);\r\n });\r\n });\r\n\r\n characterPromise.catch(function(e){log(e)});\r\n characterPromise.then(function(inqcharacter){\r\n if(inqweapon.Class != 'Gear'){\r\n insertWeaponAbility(inqweapon, character, quantity, ammoNames, inqcharacter);\r\n } else {\r\n whisper('Add Weapon is not prepared to create an Ability for Gear.', {speakingTo: msg.playerid, gmEcho: true});\r\n }\r\n\r\n whisper('*' + inqcharacter.toLink() + '* has been given a(n) *' + inqweapon.toLink() + '*', {speakingTo: msg.playerid, gmEcho: true});\r\n });\r\n });\r\n });\r\n}", "function chooseAIWeapon() {\n threeWeapons = document.querySelectorAll('.photos img');\n index = Math.floor(Math.random() * threeWeapons.length);\n randomChoice = threeWeapons[index].dataset.option;\n weapons.aiWeapon = randomChoice;\n}", "function weapon(type){\n\tthis.type = type;\n\tthis.weapons = [];\n\tthis.weapons = this.setWeapon()\n}", "function computerPlay(){\r\n let weapon = ['rock','paper','scissors']\r\n let selection = Math.floor(Math.random() * (3 - 0) + 0)\r\n\r\n return weapon[selection]\r\n}", "TakeWeapon() {\n super.TakeWeapon()\n return Weapons.GetRandomWeapon()\n }", "function checkEquip() {\r\n\tif(equippedWpn == true && currItemCategory == \"weapon\") {\r\n\t\tfor(var i = 0; i < playerBag.length; i++) {\r\n\t\t\tif(equippedWpnArr[0] == playerBag[i]) {\r\n\t\t\t\tget(\"item\" + i).style.color = \"white\";\r\n\t\t\t\tequippedWpnArr.splice(0, 1); //remove equipped wpn from array.\r\n\t\t\t\tequippedWpn = false;\r\n\t\t\t\tcheckEquip();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\telse if(equippedArmor == true && currItemCategory == \"armor\") {\r\n\t\tfor(var i = 0; i < playerBag.length; i++) {\r\n\t\t\tif(equippedArmorArr[0] == playerBag[i]) {\r\n\t\t\t\tget(\"item\" + i).style.color = \"white\";\r\n\t\t\t\tequippedArmorArr.splice(0, 1); //remove equipped armor from array.\r\n\t\t\t\tequippedArmor = false;\r\n\t\t\t\tcheckEquip();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\telse if(equippedWpn == false && currItemCategory == \"weapon\") {\r\n\t\tfor(var i = 0; i < playerBag.length; i++) {\r\n\t\t\tif(currItemCode == playerBag[i]) {\r\n\t\t\t\tget(\"item\" + i).style.color = \"#00ff55\";\r\n\t\t\t\tequippedWpnArr.push(currItemCode);\r\n\t\t\t\tequippedWpn = true;\r\n\t\t\t\tget(\"bottom-display\").innerHTML = \"You equip the \" + currItemName + \".\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\telse if(equippedArmor == false && currItemCategory == \"armor\") {\r\n\t\tfor(var i = 0; i < playerBag.length; i++) {\r\n\t\t\tif(currItemCode == playerBag[i]) {\r\n\t\t\t\tget(\"item\" + i).style.color = \"#00ff55\";\r\n\t\t\t\tequippedArmorArr.push(currItemCode);\r\n\t\t\t\tequippedArmor = true;\r\n\t\t\t\tget(\"bottom-display\").innerHTML = \"You equip the \" + currItemName + \".\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "function equipWeapon(person) {\n /* ... */\n person.weapon = person.innElement[0];\n displaystats('weapon')\n return person;\n}", "function SetWeaponAbility( weapon )\n{\n\tvar abilityListPanel = $( \"#weapon_ability\" );\n\tif ( !abilityListPanel )\n\t\treturn;\n\t\n\t// update all the panels\n\tvar nUsedPanels = 0;\n\tfor ( var i = 0; i < 1; ++i )\n\t{\n\t\tvar ability = m_WeaponAbilityPanels[i];\n\t\tif ( nUsedPanels >= m_WeaponAbilityPanels.length )\n\t\t{\n\t\t\t// create a new panel\n\t\t\tvar abilityPanel = $.CreatePanel( \"Panel\", abilityListPanel, \"\" );\n\t\t\tabilityPanel.BLoadLayout( \"file://{resources}/layout/custom_game/class_select_screen_ability.xml\", false, false );\n\t\t\tm_WeaponAbilityPanels.push( abilityPanel );\n\t\t}\n\t\t\n\t\t// update the panel for the current ability\n\t\tvar abilityPanel = m_WeaponAbilityPanels[ nUsedPanels ];\n\t\tvar weaponSubstring = weapon.substring(0, 5);\n\t\tvar weaponAbilityName = \"\"\n\t\n\t\tif ( weaponSubstring == \"flame\" )\n\t\t{\n\t\t\tweaponAbilityName = \"weapon_flamethrower\";\n\t\t}\n\t\telse \n\t\t{\n\t\t\tweaponAbilityName = \"weapon_\"+weapon;\n\t\t}\n\n\t\tabilityPanel.data().SetAbility( weaponAbilityName );\n\t\tnUsedPanels++;\n\t}\n\t\n\t// clear any remaining panels\n\tfor ( var i = nUsedPanels; i < m_WeaponAbilityPanels; ++i )\n\t{\n\t\tvar abilityPanel = m_WeaponAbilityPanels[ i ];\n\t\tabilityPanel.data().SetAbility( -1, -1, false );\n\t}\n}", "function equipWeapon(newWeapon){\n player.attack.base -= items.weapons[equipped.weapon].attack.base;\n player.attack.multiplier -= items.weapons[equipped.weapon].attack.multiplier;\n player.attack.plusser -= items.weapons[equipped.weapon].attack.plusser;\n\n equipped.weapon = newWeapon;\n\n player.attack.base += items.weapons[newWeapon].attack.base;\n player.attack.multiplier += items.weapons[newWeapon].attack.multiplier;\n player.attack.plusser += items.weapons[newWeapon].attack.plusser;\n\n updateAttack();\n}", "function lootSelect (loot, Character){\n\nvar items = loot[1];\nvar itemsRare = loot[2];\n\n\tCharacter.goldAdd(loot[0]);\n\n\twhile (items > 0, items --){\n\t\t// define itemSelector -- somehting to randomly select items from a matrix and return them by name\n\t\tCharacter.inventoryAdd(itemSelector(items));\n\t}\n\n\twhile (itemsRare > 0, itemsRare --){\n\t\t// define itemSelector -- somehting to randomly select items from a matrix and return them by name\n\t\tCharacter.inventoryAdd(itemSelector(itemsRare));\n\t}\n}", "TakeWeapon() {\n this._on_cooldown = true\n this._PaintSpawn()\n this._last_use = Date.now()\n }", "addM16Weapon()\n {\n this.m16Weapon.available=true;\n }", "attackWith() {\r\n const randomWeaponIndex = Math.floor(Math.random() * 8);\r\n return this.weapons[randomWeaponIndex];\r\n }", "function Weapon(name, minDamage, maxDamage, criticalHit) {\n this.name = name;\n this.minDamage = minDamage;\n this.maxDamage = maxDamage;\n this.criticalHit = criticalHit;\n this.description = \"\";\n this.symbol = \"\";\n this.image = \"\";\n this.itemType = \"weapon\";\n}", "function fightAll(equipment, effect, extra) {\n (0, _property.set)(\"choiceAdventure1222\", 1); // Entrance\n\n (0, _property.set)(\"choiceAdventure1223\", 1); // Fight LOV Enforcer\n\n (0, _property.set)(\"choiceAdventure1224\", equipmentChoice(equipment));\n (0, _property.set)(\"choiceAdventure1225\", 1); // Fight LOV Engineer\n\n (0, _property.set)(\"choiceAdventure1226\", effectChoice(effect));\n (0, _property.set)(\"choiceAdventure1227\", 1); // Fight LOV Equivocator\n\n (0, _property.set)(\"choiceAdventure1228\", extraChoice(extra));\n (0, _kolmafia.adv1)((0, _templateString.$location)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"The Tunnel of L.O.V.E.\"]))), 0, \"\");\n}", "function collectWeapon(activePlayer, currentPlayerCell, newPlayerCell) {\n let dropWeapon = (cell) => {\n let currentWeaponType = activePlayer.weapon.type;\n activePlayer.weapon = defineWeapon($(`[cell = ${cell}]`).attr('type'));\n $(`[cell = ${cell}]`).removeAttr('type').attr('type', `${currentWeaponType}`);\n $(`#${activePlayer.character}Weapon`).attr('src', `images/${activePlayer.weapon.type}.png`);\n $(`#${activePlayer.character}WeaponDamage`).text(`Damage Point: ${activePlayer.weapon.damage}`);\n }\n\n if (newBoard.leftCells.includes(newPlayerCell)) {\n for (let i = 0; i < (currentPlayerCell - newPlayerCell); i++) {\n if ($(`[cell = ${newPlayerCell + i}]`).hasClass('weapon')) {\n dropWeapon(newPlayerCell + i);\n break;\n }\n }\n }\n\n else if (newBoard.rightCells.includes(newPlayerCell)) {\n for (let i = 0; i < (newPlayerCell - currentPlayerCell); i++) {\n if ($(`[cell = ${newPlayerCell - i}]`).hasClass('weapon')) {\n dropWeapon(newPlayerCell - i);\n break;\n }\n }\n }\n\n else if (newBoard.upperCells.includes(newPlayerCell)) {\n for (let i = 0; i < ((currentPlayerCell - newPlayerCell) / newBoard.columns); i++) {\n if ($(`[cell = ${newPlayerCell + (newBoard.columns * i)}]`).hasClass('weapon')) {\n dropWeapon(newPlayerCell + (newBoard.columns * i));\n break;\n }\n }\n }\n\n else if (newBoard.lowerCells.includes(newPlayerCell)) {\n for (let i = 0; i < ((newPlayerCell - currentPlayerCell) / newBoard.columns); i++) {\n if ($(`[cell = ${newPlayerCell - (newBoard.columns * i)}]`).hasClass('weapon')) {\n dropWeapon(newPlayerCell - (newBoard.columns * i));\n break;\n }\n }\n }\n }", "function weapon(person, enemy){\n\tif (person.weapon === true){\n\t\tif (enemy.pos === person.pos){\n\t\t\tenemy.health -= person.damage.special;\n\t\t} else {\n\t\t\tperson.health -= 1;\n\t\t}\n\t} else {\n\t\t// Alert that there is no weapon equipped\n\t\tconsole.log(\"You have no weapon equipped.\")\n\t}\n}", "function weaponAssignments() {\n\trandomizeRoomsList();\n\troomsList.forEach(function(e){\n\t\troomWeaponsList.push([e, \"q-w34095-340958-sdf0983f\"]);\n\t});\n\trandomizeWeaponList();\n\tfor (let i=0; i<weaponsList.length; i++){\n\t\troomWeaponsList[i][1] = weaponsList[i];\n\t}\n\n}", "function checkWeapon(num) {\n let cell = $('.box[data-index=\"' + num + '\"]');\n if (cell.hasClass('weapon')) {\n if (cell.hasClass('wp-1')) {\n currentWeapon = 1;\n replaceWeaponOnMap(gun1.value, 'wp-1', num); // Weapon.js (39) Replace the weapon on the Grid\n replaceWeaponOnBoard(gun1.value); // Info.js (38) Replace the weapon information on the player's div\n return;\n }\n if (cell.hasClass('wp-2')) {\n currentWeapon = 2;\n replaceWeaponOnMap(sword1.value, 'wp-2', num);\n replaceWeaponOnBoard(sword1.value);\n return;\n }\n if (cell.hasClass('wp-3')) {\n currentWeapon = 3;\n replaceWeaponOnMap(sword2.value,'wp-3',num);\n replaceWeaponOnBoard(sword2.value); \n return;\n }\n if (cell.hasClass('wp-4')) {\n currentWeapon = 4;\n replaceWeaponOnMap(cupcake.value, 'wp-4', num);\n replaceWeaponOnBoard(cupcake.value);\n return;\n }\n if (cell.hasClass('wp-5')) {\n currentWeapon = 5;\n replaceWeaponOnMap(cake.value,'wp-5', num);\n replaceWeaponOnBoard(cake.value);\n return;\n }\n if (cell.hasClass('wp-6')) {\n currentWeapon = 6;\n replaceWeaponOnMap(gun2.value, 'wp-6', num);\n replaceWeaponOnBoard(gun2.value);\n return;\n }\n \n }\n if (cell.hasClass('quiz-1')) {\n cell.removeClass('quiz-1');\n initQuiz();\n return;\n }\n\n}", "function showWeaponUnderPiece(piece, weapons){\r\n\tfor (i=0;i<weapons.length;i++){\r\n\t\tif (piece.x === weapons[i].x && piece.y === weapons[i].y){weapons[i].underPiece = false;}\r\n\t} \r\n}", "function userWeapon(user, weapon) {\n // code here\n \n let listWeapon = [\n {name : 'redKnife', type : 'knife', attack : 100},\n {name : 'blackKnife', type : 'knife', attack : 300},\n {name : 'crimsonSword', type : 'katana', attack : 800},\n {name : 'moonLightSword', type : 'katana', attack : 400},\n {name : 'starKunai', type : 'kunai', attack : 80},\n {name : 'huumaShuriken', type : 'kunai', attack : 340},\n {name : 'emptyBracer', type : 'knuckle', attack : 20},\n {name : 'brokenArms', type : 'knuckle', attack : 40} \n ]\n \n let heroes = [\n {job : 'swordman', weapontype: 'knife, katana'},\n {job : 'ninja', weapontype: 'knife, kunai, katana'},\n {job : 'samurai', weapontype: 'knife, katana'},\n {job : 'monk', weapontype: 'knuckle'},\n ]\n\n\n for (let i = 0; i < listWeapon.length; i++) {\n for (let j = 0; j < heroes.length; j++) {\n if (weapon == listWeapon[i].name) {\n if (heroes[j].weapontype = listWeapon[i].type)\n return 'invalid weapon'\n }\n }\n }\n\n let weaponLama = 0\n let weaponBaru = 0 \n for (let i = 0; i < listWeapon.length; i++) {\n if (user.weapon == listWeapon[i].name) {\n weaponLama += listWeapon[i].attack\n }\n else if (weapon === listWeapon[i].name) {\n weaponBaru += listWeapon[i].attack\n }\n }\n\n let hasil = user.attack - weaponLama + weaponBaru\n return user.name + ' menggunakan senjata ' + weapon + ' attack menjadi ' + hasil\n}", "function pickUpWeapon($this){\n\nlet squareWeaponName = $this.data('name');\nlet squareWeaponImage = $this.data('image');\nlet squareWeaponPower = $this.data('power');\nlet weaponImage = activePlayer.weapon.weaponImage;\nlet weaponDamage = activePlayer.weapon.damage;\nlet weapon = activePlayer.weapon.weaponName;\n\nactivePlayer.weapon.weaponName = $this.data('name');\nactivePlayer.weapon.weaponImage = $this.data('image');\nactivePlayer.weapon.damage = $this.data('power');\n\n$this.removeClass(squareWeaponName).addClass(weapon);\n\n\n$this.data('name', weapon);\n$this.data('image', weaponImage);\n$this.data('power', weaponDamage);\n\n$(`.${activePlayer.playerType}_weapon`).addClass(weapon);\n//$(`.${activePlayer.playerType}_weaponImage`).src(weaponImage)\n$(`.${activePlayer.playerType}_attack`).html(squareWeaponPower);\n\n\n\n}", "function setBuyableWeapon(weapon,x,y){\n\tthis.weapon = weapon\n\tthis.pos = [];\n\tthis.pos ={x:x,y:y}\n}", "function equipWeapon(hero){\n if (hero.inventory.length > 0){\n hero.weapon = hero.inventory[0];\n return hero;\n }\n}", "function weaponSelection() \r\n{\r\n var selection = document.getElementById(\"equipment\").value;\r\n var active = document.getElementById(\"active\");\r\n if (active.checked == true) \r\n {\r\n document.getElementById(\"HUD\").innerHTML = selection + \" active \";\r\n console.log(\"Weapon Active\");\r\n } \r\n else \r\n {\r\n\t \r\n document.getElementById(\"HUD\").innerHTML = selection + \" selected \";\r\n console.log(\"Weapon Selected\");\r\n }\r\n}", "function displayWeapons() {\n for (let i = 0; i < enemies.length; i++) {\n if (enemies[i].weapon != null) {\n const option = document.createElement('option')\n option.innerHTML = enemies[i].weapon.type\n selectWeapon.appendChild(option)\n }\n }\n}", "function checkWeapon(searchFrom, searchTo, target) {\n let diff = searchTo - searchFrom;\n let movedArray = [];\n if (diff > 0) {\n if (diff <= 3) {\n for (let i = searchFrom; i <= searchTo; i++) {\n if (jQuery.inArray(i, rowX) >= 0) {\n movedArray.push(i);\n }\n }\n } else {\n for (let i = searchFrom; i <= searchTo; i += 10) {\n if (jQuery.inArray(i, rowY) >= 0) {\n movedArray.push(i);\n }\n }\n }\n } else {\n if (diff >= -3) {\n for (let i = searchFrom; i >= searchTo; i--) {\n if (jQuery.inArray(i, rowX) >= 0) {\n movedArray.push(i);\n }\n }\n } else {\n for (let i = searchFrom; i >= searchTo; i -= 10) {\n if (jQuery.inArray(i, rowY) >= 0) {\n movedArray.push(i);\n }\n }\n }\n }\n //Weapon and Damage Change \n for (let j = 0; j <= movedArray.length; j++) {\n let passedBox = $(\"div#\" + movedArray[j]);\n\n oldWeapon = activePlayer.weapon;\n\n if (passedBox.hasClass(\"weapon1\")) {\n newWeapon = 'weapon1';\n activePlayer.damage = 40;\n } else if (passedBox.hasClass(\"weapon2\")) {\n newWeapon = 'weapon2';\n activePlayer.damage = 20;\n } else if (passedBox.hasClass(\"weapon3\")) {\n newWeapon = 'weapon3';\n activePlayer.damage = 30;\n } else if (passedBox.hasClass(\"weapon4\")) {\n newWeapon = 'weapon4';\n activePlayer.damage = 50;\n } else {\n newWeapon = '';\n }\n//Removing class of previous weapon \n if (newWeapon != '') {\n passedBox.removeClass(newWeapon);\n passedBox.addClass(oldWeapon);\n activePlayer.weapon = newWeapon;\n $(\"#\" + activePlayer.name + \"weapon1\").removeClass('range-highlight');\n $(\"#\" + activePlayer.name + \"weapon2\").removeClass('range-highlight');\n $(\"#\" + activePlayer.name + \"weapon3\").removeClass('range-highlight');\n $(\"#\" + activePlayer.name + \"weapon4\").removeClass('range-highlight');\n $(\"#\" + activePlayer.name + newWeapon).removeClass('range-highlight');\n $(\"#\" + activePlayer.name + newWeapon).addClass('range-highlight');\n $(\"#\" + activePlayer.name + \"damage\").text(activePlayer.damage);\n }\n }\n}", "function updateData() {\n\n const levelBox = document.getElementById('level');\n const level = Math.round(limit(levelBox.value,1,120));//Limit input to int range [1,120].\n\n const char = charList[document.getElementById('character').value];//Get selected character.\n\n //Change the pixel image of the character to the new character.\n document.getElementById('CharacterImage').src = 'assets/img/' + char.name + 'Pixel.png';\n\n //Get base stats for the character and all equipped items.\n const baseStats = char.baseStats[level - 1];\n const attire = char.attire[document.getElementById('attire').value];\n const food = foodList[document.getElementById('food').value];\n\n let weapon;\n if (char.name == 'Noctis') {\n \tweapon = [char.primaryWeapons[document.getElementById('weapon1').value],\n\t char.primaryWeapons[document.getElementById('weapon2').value],\n\t char.primaryWeapons[document.getElementById('weapon3').value],\n\t char.primaryWeapons[document.getElementById('weapon4').value]];\n\n }\n else {\n\t weapon = [char.primaryWeapons[document.getElementById('weapon1').value],\n\t char.secondaryWeapons[document.getElementById('weapon2').value],\n\t char.primaryWeapons[0],char.primaryWeapons[0]];\n }\n\n const accessory = [accessoryList[document.getElementById('accessory1').value],\n accessoryList[document.getElementById('accessory2').value],\n accessoryList[document.getElementById('accessory3').value]];\n\n //Copy over the selected option's tooltip message over to the selector.\n $('#attire').attr(\"title\", attire.getTooltipMessage());\n $('#food').attr(\"title\", food.getTooltipMessage());\n $('#weapon1').attr('title', weapon[0].getTooltipMessage());\n $('#weapon2').attr(\"title\", weapon[1].getTooltipMessage());\n $('#weapon3').attr(\"title\", weapon[2].getTooltipMessage());\n $('#weapon4').attr(\"title\", weapon[3].getTooltipMessage());\n $('#accessory1').attr('title', accessory[0].getTooltipMessage());\n $('#accessory2').attr(\"title\", accessory[1].getTooltipMessage());\n $('#accessory3').attr(\"title\", accessory[2].getTooltipMessage());\n\n //Read radio buttons for selected one.\n const currentlyHeldRadios = document.getElementsByName('currentlyHeld');\n let currentlyHeld;\n for (let i = 0; i < currentlyHeldRadios.length; i++) {\n if (currentlyHeldRadios[i].checked) {\n currentlyHeld = i;\n break;\n }\n }\n\n //Get Megaphones equipped\n const megaphones = document.getElementById('megaphones').value;\n\n //Get ascencion upgrades selected.\n const healthLevel = document.getElementById('healthLevel').value;\n const experimagic = +document.getElementById('experimagic').checked;\n const strLevel = +document.getElementById('strLevel').checked;\n const vitLevel = +document.getElementById('vitLevel').checked;\n const magLevel = document.getElementById('magLevel').value;\n const sprLevel = +document.getElementById('sprLevel').checked;\n\n \t//Special Case - Rare Metal accessory\n \tlet rareMetalHP = 0;\n if (accessory[0].name == 'Rare Metal' || accessory[1].name == 'Rare Metal' ||\n \taccessory[2].name == 'Rare Metal') {\n \t//Gives HP to remove, makes input negative so it rounds down on .5 cases.\n \trareMetalHP = Math.round(-((baseStats.hp + weapon[0].hp + weapon[1].hp + weapon[2].hp +\n \t\tweapon[3].hp + accessory[0].hp + accessory[1].hp + accessory[2].hp + (healthLevel *\n \t\tbaseStats.level)) * 0.9));\n }\n\n //HP,HPRec, MP, MPRec\n let hp = Math.floor((baseStats.hp + (healthLevel * baseStats.level))* (1 + attire.hpBonus/100)) +\n\t\tMath.round((1 + attire.hpBonus/100) * (weapon[0].hp + weapon[1].hp + weapon[2].hp +\n\t\tweapon[3].hp + accessory[0].hp + accessory[1].hp + accessory[2].hp)) + food.hp + rareMetalHP;\n\n let hprec = char.hprec + weapon[0].hprec + weapon[1].hprec + weapon[2].hprec + weapon[3].hprec +\n \taccessory[0].hprec + accessory[1].hprec + accessory[2].hprec + attire.hprec + food.hprec +\n \t(megaphones * 10);\n\n let mp = Math.floor((baseStats.mp + (experimagic * baseStats.level)) * (1 + attire.mpBonus/100)) +\n \tMath.round((1 + attire.mpBonus/100) * (weapon[0].mp + weapon[1].mp + weapon[2].mp +\n \tweapon[3].mp + accessory[0].mp + accessory[1].mp + accessory[2].mp));\n\n let mprec = char.mprec + accessory[0].mprec + accessory[1].mprec + accessory[2].mprec +\n \tattire.mprec;\n\n let str = Math.floor((baseStats.str + (strLevel * baseStats.level)) * (1 + attire.strBonus/100)) +\n \tMath.round((1 + attire.strBonus/100) * (weapon[0].str + weapon[1].str + weapon[2].str + weapon[3].str +\n accessory[0].str + accessory[1].str + accessory[2].str)) + food.str;\n\n let vit = Math.floor((baseStats.vit + (vitLevel * baseStats.level)) * (1 + attire.vitBonus/100)) + Math.round((1 +\n attire.vitBonus/100) * (weapon[0].vit + weapon[1].vit + weapon[2].vit + weapon[3].vit +\n accessory[0].vit + accessory[1].vit + accessory[2].vit)) + food.vit;\n\n let mag = Math.floor((baseStats.mag + (magLevel * baseStats.level)) * (1 + attire.magBonus/100)) + Math.round((1 +\n \tattire.magBonus/100) * (weapon[0].mag + weapon[1].mag + weapon[2].mag + weapon[3].mag +\n \taccessory[0].mag + accessory[1].mag + accessory[2].mag)) + food.mag;\n\n let spr = Math.floor((baseStats.spr + (sprLevel * baseStats.level)) * (1 + attire.sprBonus/100)) + Math.round((1 +\n \tattire.sprBonus/100) * (weapon[0].spr + weapon[1].spr + weapon[2].spr + weapon[3].spr +\n \taccessory[0].spr + accessory[1].spr + accessory[2].spr)) + food.spr;\n\n //Special Case - Prime Food Effect.\n if (food.effect == 'Prime' || food.effect == 'Prime, Endurance') {\n \tstr = Math.round(str * 1.75);\n \tmag = Math.round(mag * 1.75);\n }\n\n let hpLimited = limit(hp,1,9999);\n let hpRecLimited = limit(hprec,0,Infinity);\n let mpLimited = limit(mp,1,999);\n let mpRecLimited = limit(mprec,0,Infinity);\n let strLimited = limit(str,0,9999);\n let vitLimited = limit(vit,0,9999);\n let magLimited = limit(mag,0,9999);\n let sprLimited = limit(spr,0,9999);\n\n //Special Case - Last Stand food effect.\n if (food.effect == 'Last Stand') {\n \thpLimited = Math.floor(hpLimited/10);\n }\n\n //Attack, Defense, Crit\n let attack = weapon[currentlyHeld].attack + strLimited;\n let defense = vitLimited;\n let crit = weapon[currentlyHeld].crit + accessory[0].crit + accessory[1].crit + accessory[2].crit +\n \tattire.crit + food.crit;\n\n //Special Case - Precision Lance, Enforcer, Alien Shield\n if (weapon[currentlyHeld].name == 'Precision Lance' || weapon[currentlyHeld].name == 'Enforcer' || weapon[currentlyHeld].name == 'Alien Shield')\n \tcrit += 10;//+10 Crit from weapon description.\n\n let critLimited = limit(crit,0,100);\n\n\n //Damage Output\n let damageOutput = 0;\n\n //Special Cases - Bow of the Clever and Scepter of the Pious (add total MAG to the damage).\n if (weapon[currentlyHeld].name == 'Bow of the Clever' || weapon[currentlyHeld].name == 'Scepter of the Pious') {\n \tdamageOutput = roundTo2(((attack + level*3 + magLimited) * (critLimited/100) * 2) + ((attack + level*3 + magLimited) * (1 - critLimited/100)));\n }\n\n //Special Cases - The other Royal Arms (add weapon's STR bonus once again; which is also affected by the attire's STR bonus if any).\n else if (weapon[currentlyHeld].type == 'Royal Arm') {\n \tdamageOutput = roundTo2(((attack + level*3 + (weapon[currentlyHeld].str * (1 + attire.strBonus/100))) * (critLimited/100) * 2) +\n \t\t((attack + level*3 + (weapon[currentlyHeld].str * (1 + attire.strBonus/100))) * (1 - critLimited/100)));\n }\n\n //Regular damage calculation for every other weapon.\n else {\n \tdamageOutput = roundTo2(((attack + level*3) * (critLimited/100) * 2) + ((attack + level*3) * (1 - critLimited/100)));\n }\n\n\n //Physical Damage Type\n let physicalDamageValueString = '';\n if (weapon[currentlyHeld].type == 'Ring'){\n \tphysicalDamageValueString = '';//Add nothing\n }\n else if (weapon[currentlyHeld].type == 'Firearm') {//Add the word 'Shot' as well on Firearms.\n \tphysicalDamageValueString = '<span class=\"shot\">Shot/Firearm</span>';\n }\n else if (weapon[currentlyHeld].type == 'Royal Arm') {//Write in the 'royal-arm' class correctly.\n \tphysicalDamageValueString = '<span class=\"royal-arm\">Royal Arm</span>';\n }\n else {\n \tphysicalDamageValueString = '<span class=\"' + weapon[currentlyHeld].type.toLowerCase() + '\">' +\n \t\tweapon[currentlyHeld].type + '</span>';\n }\n\n //Magical Damage Type\n let magicalDamageValueString = '';\n if (weapon[currentlyHeld].element == 'Light, Death') {\n \tmagicalDamageValueString = '<span class=\"light\">Light</span>,<span class=\"death\">Death</span>';\n }\n else if (weapon[currentlyHeld].element == 'Multiple') {\n \tmagicalDamageValueString = '<span class=\"fire\">Mul</span><span class=\"ice\">ti</span><span class=\"lightning\">ple</span>';\n }\n else {\n \tmagicalDamageValueString = '<span class=\"' + weapon[currentlyHeld].element.toLowerCase() + '\">' +\n \t\tweapon[currentlyHeld].element + '</span>';\n }\n\n //Elemental\n let fire = attire.fire + weapon[0].fire + weapon[1].fire + weapon[2].fire + weapon[3].fire +\n accessory[0].fire + accessory[1].fire + accessory[2].fire + food.fire;\n\n let ice = attire.ice + weapon[0].ice + weapon[1].ice + weapon[2].ice + weapon[3].ice +\n accessory[0].ice + accessory[1].ice + accessory[2].ice + food.ice;\n\n let lightning = attire.lightning + weapon[0].lightning + weapon[1].lightning + weapon[2].lightning +\n \tweapon[3].lightning + accessory[0].lightning + accessory[1].lightning +\n \taccessory[2].lightning + food.lightning;\n\n let dark = attire.dark + weapon[0].dark + weapon[1].dark + weapon[2].dark + weapon[3].dark +\n accessory[0].dark + accessory[1].dark + accessory[2].dark; \n\n let shot = attire.shot + weapon[0].shot + weapon[1].shot + weapon[2].shot + weapon[3].shot +\n accessory[0].shot + accessory[1].shot + accessory[2].shot;\n\n let sword = accessory[0].sword + accessory[1].sword + accessory[2].sword;\n let greatsword = accessory[0].greatsword + accessory[1].greatsword + accessory[2].greatsword;\n let polearm = accessory[0].polearm + accessory[1].polearm + accessory[2].polearm;\n\n let fireLimited = limit(fire,-899,100);\n let iceLimited = limit(ice,-899,100);\n let lightningLimited = limit(lightning,-899,100);\n let darkLimited = limit(dark,-899,100);\n let shotLimited = limit(shot,-899,100);\n let swordLimited = limit(sword,-899,100);\n let greatswordLimited = limit(greatsword,-899,100);\n let polearmLimited = limit(polearm,-899,100);\n\n //TDA's\n let tdaPhysical = hpLimited * (1 + vitLimited/100);\n let tdaMagical = hpLimited * (1 + sprLimited/100);\n let tdaFire = tdaMagical / (1 - fireLimited/100);\n let tdaIce = tdaMagical / (1 - iceLimited/100);\n let tdaLightning = tdaMagical / (1 - lightningLimited/100);\n let tdaDark = tdaMagical / (1 - darkLimited/100);\n let tdaShot = tdaPhysical / (1 - shotLimited/100);\n let tdaSword = tdaPhysical / (1 - swordLimited/100);\n let tdaGreatsword = tdaPhysical / (1 - greatswordLimited/100);\n let tdaPolearm = tdaPhysical / (1 - polearmLimited/100);\n\n //Special Cases - Blazefire Saber, Blazefire Saber XV, Mage Mashers, Hero's Shield.\n if (weapon[currentlyHeld].name == 'Blazefire Saber' || weapon[currentlyHeld].name == 'Blazefire Saber XV') {\n \ttdaPhysical *= 1.15;//+15% Physical Damage resistance\n }\n else if (weapon[currentlyHeld].name == 'Mage Mashers') {\n \ttdaFire *= 1.30;\n \ttdaIce *= 1.30;\n \ttdaLightning *= 1.30;\n }\n else if (weapon[currentlyHeld].name == 'Hero\\'s Shield') {\n \ttdaShot *= 1.30;\n }\n\n //Special Cases - Resistant Food Effect, Thermal Suit, Trihead Heart.\n if (food.effect == 'Resistant') {\n \ttdaFire = Infinity;\n \ttdaIce = Infinity;\n \ttdaLightning = Infinity;\n }\n else if (attire.name == 'Thermal Suit' || accessory.name == 'Trihead Heart') {\n \ttdaFire = Infinity;\n }\n\n //Extras\n let itemDrop = accessory[0].itemDrop + accessory[1].itemDrop + accessory[2].itemDrop + food.itemDrop;\n\n //Special Case - Rugged Attire\n if (attire.name == 'Rugged Attire')\n \titemDrop += 30;\n\n let xpBonus = accessory[0].xpBonus + accessory[1].xpBonus + accessory[2].xpBonus + food.xpBonus;\n\n \tlet phase = accessory[0].phase + accessory[1].phase + accessory[2].phase +\n \t\tattire.phase;\n\n \tlet itemDropLimited = limit(itemDrop,0,9999);\n \tlet phaseLimited = limit(phase,-100,0);\n\n \t//Accumulated XP and XP needed to reach level 120.\n \tconst xpBox = document.getElementById('xp');//Get current XP.\n const currentXp = Math.round(limit(xpBox.value,0,Infinity));//Limit input to int range [0,Inf].\n const currentXpWithLodgingBonus = Math.round(currentXp *\n \tdocument.getElementById('LodgingXPBonus').value);//Rounded to nearest integer.\n\n //Add up all the accumulated XP from previous levels.\n let xp = 0;\n let j = 0;//Gonna re-use this index.\n for (j; j < level - 1; j++) {\n \txp += xpRequired[j];\n }\n xp += currentXpWithLodgingBonus;//Add the current XP with lodging bonus.\n\n //Add up all the XP required to reach 120.\n let xpTo120 = -currentXpWithLodgingBonus;//Start by removing current XP with lodging bonus.\n for (j; j < xpRequired.length; j++) {//Continue previous loop to the end for XP left to acquire.\n \txpTo120 += xpRequired[j];\n }\n\n \t//Immunities\n const immunitiesBox = document.getElementById('ExtrasImmunities');\n let immunitiesValueString = '';\n\n if (attire.immunity != '') {\n \timmunitiesValueString += '<strong>' + attire.name + ':</strong> ' + attire.immunity +\n \t\t'<br>';\n }\n\n if (food.immunity != '') {\n \timmunitiesValueString += '<strong>' + food.name + ':</strong> ' + food.immunity + '<br>';\n }\n\n for (let i = 0; i < accessory.length; i++) {\n \tif (accessory[i].immunity != '') {\n \t\timmunitiesValueString += '<strong>' + accessory[i].name + ':</strong> ' +\n \t\t\taccessory[i].immunity + '<br>';\n \t}\n }\n\n \t//Notes\n const notesBox = document.getElementById('Notes');\n let notesValueString = '';//Initialize string\n\n if (weapon[currentlyHeld].effect != '') {\n notesValueString += '<strong>' + weapon[currentlyHeld].name +\n ':</strong> ' + weapon[currentlyHeld].effect + '<br>';\n }\n\n for (let i = 0; i < accessory.length; i++) {\n \tif (accessory[i].effect != '') {\n\t \tnotesValueString += '<strong>' + accessory[i].name +\n\t ':</strong> ' + accessory[i].effect + '<br>';\n\t }\n }\n\n if (attire.effect != '')\n notesValueString += '<strong>' + attire.name + ':</strong> ' + attire.effect + '<br>';\n\n if (food.effect != '')\n notesValueString += '<strong>' + food.name + ':</strong> ' + food.description + '<br>';\n\n if (food.favorite == char.name) {\n \tif (char.name == 'Noctis') {\n \t\tnotesValueString += '<strong>Favorite Food:</strong> +100% to tech bar fill ' +\n \t\t\t'rate.<br>';\n \t}\n \telse {\n \t\tnotesValueString += '<strong>Favorite Food:</strong> +100% to tech leveling rate ' +\n \t\t\t'and always perform critical versions of techniques.<br>';\n \t}\n }\n\n\t//--------------------------------------------------------------------\n\t//Dump all the data on screen at once\n\t//--------------------------------------------------------------------\n\n\t//Level\n\tlevelBox.value = level;//Change the input to value in range.\n\n\t//XP\n\txpBox.value = currentXp;//Change the input to value in range.\n\n //TDA\n document.getElementById('TDAPhysical').innerHTML = insertCommas(\n \tMath.round(tdaPhysical).toString());\n document.getElementById('TDAMagical').innerHTML = insertCommas(\n \tMath.round(tdaMagical).toString());\n document.getElementById('TDAFire').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaFire)));\n document.getElementById('TDAIce').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaIce)));\n document.getElementById('TDALightning').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaLightning)));\n document.getElementById('TDADark').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaDark)));\n document.getElementById('TDAShot').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaShot)));\n\n //TDA - Extra Resitances\n document.getElementById('TDASword').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaSword)));\n document.getElementById('TDAGreatsword').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaGreatsword)));\n document.getElementById('TDAPolearm').innerHTML = insertCommas(replaceWithInfSymbol(\n \tMath.round(tdaPolearm)));\n\n\n //Stats\n document.getElementById('StatsHP').innerHTML = displayDifferenceIfAny(hpLimited,hp,'');\n document.getElementById('StatsMP').innerHTML = displayDifferenceIfAny(mpLimited,mp,'');\n document.getElementById('StatsDamageOutput').innerHTML = damageOutput;\n document.getElementById('StatsAttack').innerHTML = attack;\n document.getElementById('StatsDefense').innerHTML = defense;\n\n document.getElementById('StatsHPRec').innerHTML = (hpRecLimited/100) + '%';\n document.getElementById('StatsMPRec').innerHTML = (mpRecLimited/100) + '%';\n document.getElementById('StatsCrit').innerHTML = displayDifferenceIfAny(critLimited,crit,'%');\n document.getElementById('StatsPhysicalDamage').innerHTML = physicalDamageValueString;\n\tdocument.getElementById('StatsMagicalDamage').innerHTML = magicalDamageValueString;\n\n document.getElementById('StatsSTR').innerHTML = displayDifferenceIfAny(strLimited,str,'');\n document.getElementById('StatsVIT').innerHTML = displayDifferenceIfAny(vitLimited,vit,'');\n document.getElementById('StatsMAG').innerHTML = displayDifferenceIfAny(magLimited,mag,'');\n document.getElementById('StatsSPR').innerHTML = displayDifferenceIfAny(sprLimited,spr,'');\n document.getElementById('StatsFire').innerHTML = displayDifferenceIfAny(fireLimited,fire,'%');\n document.getElementById('StatsIce').innerHTML = displayDifferenceIfAny(iceLimited,ice,'%');\n document.getElementById('StatsLightning').innerHTML = displayDifferenceIfAny(lightningLimited,\n \tlightning,'%');\n document.getElementById('StatsDark').innerHTML = displayDifferenceIfAny(darkLimited,dark,'%');\n document.getElementById('StatsShot').innerHTML = displayDifferenceIfAny(shotLimited,shot,'%');\n\n //Stats - Extra Resistances\n document.getElementById('StatsSword').innerHTML = displayDifferenceIfAny(swordLimited,sword,'%');\n document.getElementById('StatsGreatsword').innerHTML = displayDifferenceIfAny(greatswordLimited,greatsword,'%');\n document.getElementById('StatsPolearm').innerHTML = displayDifferenceIfAny(polearmLimited,polearm,'%');\n\n if (swordLimited != 0 || greatswordLimited != 0 || polearmLimited != 0) {\n \tdocument.getElementById('TDAExtraResistancesContainer').classList.remove('d-none');\n \tdocument.getElementById('StatsExtraResistancesContainer').classList.remove('d-none');\n }\n else {\n \tdocument.getElementById('TDAExtraResistancesContainer').classList.add('d-none');\n \tdocument.getElementById('StatsExtraResistancesContainer').classList.add('d-none');\n }\n\n\n //Extras\n if (itemDropLimited != 0 || xpBonus != 0 || phaseLimited != 0)\n \tdocument.getElementById('ExtrasITRExpPCContainer').classList.remove('d-none');\n else\n \tdocument.getElementById('ExtrasITRExpPCContainer').classList.add('d-none');\n\n\tdocument.getElementById('ExtrasIDR').innerHTML = '+' + (itemDropLimited) + '%';\n \t\n document.getElementById('ExtrasXP').innerHTML = '+' + xpBonus + '%';\n document.getElementById('ExtrasPhase').innerHTML = displayDifferenceIfAny(phaseLimited,phase,\n \t'%');\n\n document.getElementById('ExtrasAccumulatedXP').innerHTML = insertCommas(xp.toString());\n document.getElementById('ExtrasXP120').innerHTML = displayXpDifferenceIfAny(xpTo120);\n\n if (immunitiesValueString == '') {\n \tdocument.getElementById('ExtrasImmunitiesContainer').classList.add('d-none');\n \timmunitiesBox.innerHTML = '';//Clear contents if any were there\n }\n else {\n \tdocument.getElementById('ExtrasImmunitiesContainer').classList.remove('d-none');\n \timmunitiesBox.innerHTML = immunitiesValueString;\n }\n\n\n //Notes\n if (notesValueString == '') {\n \tdocument.getElementById('NotesContainer').classList.add('d-none');\n \tnotesBox.innerHTML = '';//Clear contents if any were there\n }\n else {\n \tdocument.getElementById('NotesContainer').classList.remove('d-none');\n \tnotesBox.innerHTML = notesValueString;\n }\n\n\n}", "function loadSelection(level) {\n //level 1&2 have 1/2 choices, afterwards give 3\n if (level <= 1) choiceAmt = level+1;\n else choiceAmt = 2;\n let selection = [];\n //for loop makes 2 items\n for(let i= 0; i<choiceAmt; i++) {\n let randomChg = Math.max(1, levelNeed[level] + Math.floor(Math.random()*4) - 2);\n let itemChoice = createItem(\"rand\", randomChg);\n selection.push(itemChoice);\n if(selection.length == 2){\n if(selection[0].type == selection[1].type){\n console.log(\"both items type \" + selection[0].type + \". rerolling!\");\n selection = [];\n i = -1;\n }\n }\n }\n // and a charge\n if(selection.length == 2){\n // if( (Items[0]==0 || Items[0].depleted) && (Items[1]==0 || Items[1].depleted) && (Items[2]==0 || Items[0].depleted) ) {\n let generatedChg = Math.max( Math.min( (levelNeed[level]+Math.floor(Math.random()*4)-2), 6) ,1);\n console.log(generatedChg);\n if (level>=2) selection.push(generatedChg)\n // }\n }\n return selection;\n}", "function disOrEnUniquesWeapons (weapDropdownLists, uniqueWeapsEquipped) {\n\t//TODO or not\n\t\n\n}", "function applyWeaponMod(weapon, type, a) { // a = awesomeness\n\tvar pcs = { damage: 0, range: 0, energy: 0, rate: 0 }, afire = false, name = type\n\tswitch (type) {\n\t\tcase \"Smart\": afire = true ; break\n\t\tcase \"HighPowered\": pcs.damage = a ; name = \"High-Powered\" ; break\n\t\tcase \"Accurate\": pcs.range = a ; break\n\t\tcase \"Efficient\": pcs.energy = -a ; break\n\t\tcase \"SuperCooled\": pcs.rate = a ; break\n\t\tcase \"Overclocked\": pcs.damage = a ; pcs.energy = a ; name = \"Over-clocked\" ; break\n\t\tcase \"RapidFire\": pcs.rate = a ; pcs.damage = -a ; name = \"Rapid-fire\" ; break\n\t\tcase \"Scoped\": pcs.range = a ; pcs.rate = -Math.floor(a/2) ; break\n\t\tcase \"Assault\": pcs.damage = a ; pcs.energy = a ; pcs.range = -(5-Math.floor(a/2)) ; break\n\t\tcase \"Autofiring\": pcs.damage = a-5 ; afire = true ; name = \"Auto-firing\" ; break\n\t\tcase \"MasterCrafted\": pcs.energy = -a ; pcs.range = a ; break\n\t\tcase \"Holy\": pcs.damage = a*2 ; pcs.range = a ; break\n\t\tcase \"BOSS\": pcs.damage = (a+1)*(a+1) ; pcs.range = a*2 ; pcs.rate = a*2 ; pcs.energy = -3*a ; afire = true ; break\n\t}\n\tfor (var t in pcs) {\n\t\tif (pcs[t]) weapon.percentages[t] += (pcs[t] + UFX.random(-0.5, 0.5)) * 10\n\t}\n\tif (afire) {\n\t\tweapon.canAutofire = true\n\t\tweapon.mode = \"Autofire\"\n\t}\n\tweapon.modList.push([name, a])\n}", "function replaceWeaponOnMap(value, weapon, num) {\n let cell = $('.box[data-index=\"' + num + '\"]');\n whoIsActive();// Weapon.js (136) Check which player is active\n cell.removeClass(weapon).addClass(playerActive.weapon);\n playerActive.weapon = weapon; \n playerNotActive.power = value; \n}", "function updateWeaponInterface() {\n\tswitch(activeSecWeapon) {\n\t\tcase 0:\n\t\t\t\tguidedRock.hide();\n\t\t\t\tmigPic.hide();\n\t\t\t\twavePic.hide();\n\t\t\t\trocketPic.show();\n\t\t\t\tcurrentAmmo = rocketAmmo;\n\t\t\t\tmaxAmmo = MaxRocketAmmo;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\t\t\tguidedRock.hide();\n\t\t\t\trocketPic.hide();\n\t\t\t\twavePic.hide();\n\t\t\t\tmigPic.show();\n\t\t\t\tcurrentAmmo = MGAmmo;\n\t\t\t\tmaxAmmo = MaxMGAmmo;\n\t\t\t\tbreak;\n\t\tcase 2:\n\t\t\t\tguidedRock.hide();\n\t\t\t\trocketPic.hide();\n\t\t\t\tmigPic.hide();\n\t\t\t\twavePic.show();\n\t\t\t\tcurrentAmmo = shockwaveAmmo;\n\t\t\t\tmaxAmmo = maxShockwaveAmmo;\n\t\t\t\tbreak;\n\t\tcase 3:\n\t\t\t\twavePic.hide();\n\t\t\t\trocketPic.hide();\n\t\t\t\tmigPic.hide();\n\t\t\t\tguidedRock.show();\n\t\t\t\tcurrentAmmo = guidedMissileAmmo;\n\t\t\t\tmaxAmmo = maxGuidedMissileAmmo;\n\t\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tcurrentAmmo = 42;\n\t\t\t\tmaxAmmo = 42;\n\t\t\t\tbreak;\n\t}\n\n\tdocument.getElementById('currentAmmo').innerHTML = currentAmmo;\n\tdocument.getElementById('maxAmmo').innerHTML = maxAmmo;\n}", "function updateWeaponBox(currWeap)\r\n{\r\n if(currWeap == 0)\r\n {\r\n textileWeaponBox.className = \"chosenWeapon\";\r\n recyclingWeaponBox.className = \"unchosenWeapon\";\r\n compostWeaponBox.className = \"unchosenWeapon\";\r\n landfillWeaponBox.className = \"unchosenWeapon\";\r\n }\r\n else if(currWeap == 1)\r\n {\r\n recyclingWeaponBox.className = \"chosenWeapon\";\r\n textileWeaponBox.className = \"unchosenWeapon\";\r\n compostWeaponBox.className = \"unchosenWeapon\";\r\n landfillWeaponBox.className = \"unchosenWeapon\";\r\n }\r\n else if(currWeap == 2)\r\n {\r\n compostWeaponBox.className = \"chosenWeapon\";\r\n textileWeaponBox.className = \"unchosenWeapon\";\r\n recyclingWeaponBox.className = \"unchosenWeapon\";\r\n landfillWeaponBox.className = \"unchosenWeapon\";\r\n }\r\n else if(currWeapon == 3)\r\n {\r\n landfillWeaponBox.className = \"chosenWeapon\";\r\n textileWeaponBox.className = \"unchosenWeapon\";\r\n recyclingWeaponBox.className = \"unchosenWeapon\";\r\n compostWeaponBox.className = \"unchosenWeapon\";\r\n }\r\n weaponNameBox.textContent = weaponNames[currWeapon];\r\n}", "function canEquipWeapon (charEquipType, weapon) {\n\tif (charEquipType == '')//Noctis case, can use all weapons.\n\t\treturn true;\n\telse if (charEquipType == weapon.type)\n\t\tif (weapon.name == 'Cerberus')\n\t\t\treturn false;//Special case, Prompto can't use Cerberus.\n\t\telse\n\t\t\treturn true;\n\telse\n\t\treturn false;\n}", "function addWeapon(w){\n\n\tif (w.name in armory){\n \tarmory[w.name].weapon.wquantity += 1;\n\t}\n\telse {\n\t\tw.wquantity = 1; //Make sure quantity is 1\n\t\tarmory[w.name] = { weapon: w }\n\t}\n}", "OpenShopMenu1(weapon1, weapon2, weapon3) {\n this.showShop1 = true\n this.showShop2 = false;\n this.showShop3 = false;\n this.weapon1 = weapon1;\n this.weapon2 = weapon2;\n this.weapon3 = weapon3;\n }", "function randomWeapon () {\n var choice = Math.round(Math.random () * 100) % 3;\n\n if (choice == 0) {\n cpuChoice.src = scissorsIcon;\n return 'scissors';\n } else if (choice == 1) {\n cpuChoice.src = rockIcon;\n return 'rock';\n } else if (choice == 2) {\n cpuChoice.src = paperIcon;\n return 'paper';\n }\n}", "function equipWeapon(person){\n person.inventory.length === 0 ? null : person.weapon = person.inventory[0]\n}", "get hasWeapon() {\n return !this._on_cooldown\n }", "function removeWeapon(w){\n\n\tif (w.name in armory){\n \tarmory[w.name].weapon.wquantity -= 1;\n\t}\n\n}", "function playerWeapon() {\n hands.forEach(hand => hand.style.boxShadow = \"\");\n this.style.boxShadow = \"0 0 0 5px yellow\";\n weapons.playerWeapon = this.dataset.option;\n}", "function pickUpItem(hero, weapon) {\n\n // Adds the weapon-like object as the last element of the inventory array of the hero-like object\n // let heroInventory = hero.inventory;\n hero.inventory.push(weapon);\n console.log(hero); // Just for debugging\n}", "function checkForWeaponType(type) {\n for (let slot of Object.values(character.slots)) {\n if (slot && slot.name && G.items[slot.name].wtype && G.items[slot.name].wtype === type) return true;\n }\n}", "function useItem() {\n for (i = 0; i < items.length; i++) {\n if (items[i].selected) {\n items[i].use();\n console.log(\"datt\");\n }\n }\n \n}", "function pickUpItem(person, weapon){\n person.inventory.length === 0? null : person.inventory.push(weapon);\n}", "function weaponTileCheck(weapons, player) {\n\n var aPosition = player.currentPos\n var aWeapon = weapons.find(e => e.currentPos.x == aPosition.x && e.currentPos.y == aPosition.y)\n if(aWeapon == undefined) {\n return;\n }\n console.log(\"This tile has a weapon!\", aWeapon);\n \n pickUpWeapon(aWeapon, player);\n\n var anIndex = weapons.indexOf(aWeapon)\n if (anIndex > -1) {\n weapons.splice(anIndex, 1); ///using .splice() to remove the weapon from the array\n }\n}", "function changeWeapon() {\n\tPlayer1.changeWeapon();\n}", "useItem() {\n let horse = allUnlockables['layer0']['unlockable0'];\n if (horse['found']){\n alert(`You used: ${this.name}!`);\n this.found = false;\n horse.unlocked = true;\n } else {\n alert(`Cannot use ${this.name}!`)\n }\n }", "function checkEquipped() {\n patt2 = /stone shield/g;\npatt3 = /parlathan/g;\npatt4 = /stone sword/g;\npatt5 = /joyeuse/g;\npatt6 = /plate armor/g;\npatt7 = /chainmail/g;\npatt8 = /old magic staff/g;\npatt9 = /stealth boots/g;\npatt10 = /magic robes/g;\npatt11 = /bow/g;\npatt12 = /dagger/g;\npatt13 = /wooden crossbow/g;\npatt14 = /worn stone shield/g; \n\nif(patt3.test(equippedW) || patt4.test(equippedW) || patt5.test(equippedW)) {\n sR = true;\n strikeAttack = true;\n} \nif (patt11.test(equippedW) || patt13.test(equippedW)) {\n lR = true;\n strikeAttack = true;\n} \nif (patt12.test(equippedW)) {\n daggerAttack = true;\n} \nif (patt8.test(equippedM)) {\n magicStaff = true;\n}\nif (patt2.test(equippedA) || patt14.test(equippedA)) {\n shield = true;\n}\n\nif(lR) {\n checklr = /shoot/g;\n checklr2 = /strike/g;\nif (checklr.test(allAttacks) === false) {\n allAttacks.push(\"shoot\");\n }\n if (checklr2.test(allAttacks) === false) {\n allAttacks.push(\"strike\");\n }\n}\nif (sR) {\n checksr = /strike/g;\nif (checksr.test(allAttacks) === false) {\n allAttacks.push(\"strike\");\n }\n}\nif (daggerAttack) {\n checkda = /stab/g;\nif (checkda.test(allAttacks) === false) {\n allAttacks.push(\"stab\");\n }\n}\nif (shield) {\n checks = /bash/g;\nif (checks.test(allAttacks) === false) {\n allAttacks.push(\"bash\");\n }\n}\nif (magicStaff) {\n checkms = /fire ball/g;\n checkms2 = /wind blast/g;\n checkms3 = /earth ball/g;\n \n if (checkms.test(allAttacks) === false) {\n allAttacks.push(\"fire ball\");\n }\n if (checkms2.test(allAttacks) === false) {\n allAttacks.push(\"wind blast\");\n }\n if (checkms3.test(allAttacks) === false) {\n allAttacks.push(\"earth ball\");\n }\n}\n\n}", "takeHit(weapon, player) {\n this.scene.sound.play(`${this.getData('type')}-hit`);\n this.stunned();\n this.flash();\n this.knockback(weapon.getData('knockback'), player);\n this.data.values.health -= weapon.getData('damage');\n }", "function Weapon(name, type){\n this.name = name;\n this.type = type;\n}", "function checkAndAddItem(item) {\n if (item in allWeapons) {\n player.weapon.push(item);\n } else {\n player.items.push(item);\n }\n}", "function assignGraphic(targetItem) {\n if (undefined == targetItem.type) {\n //console.log(targetItem.name + \" HAS NO TYPE\");\n return filePath + \"EmptyBox.png\";\n }\n var itemType = targetItem.type.toLowerCase();\n //sense items & addons\n switch (itemType) {\n case \"flashlight\":\n case \"toolbox\":\n case \"first aid kit\":\n case \"map\":\n case \"key\":\n case \"chinese firecracker\":\n case \"addon\":\n switch (targetItem.rarity.toLowerCase()) {\n case \"common\":\n return filePath + \"BoxCommon.png\";\n case \"uncommon\":\n return filePath + \"BoxUncommon.png\";\n case \"rare\":\n return filePath + \"BoxRare.png\";\n case \"very rare\":\n return filePath + \"BoxVeryRare.png\";\n case \"ultra rare\":\n return filePath + \"BoxUltraRare.png\";\n }\n break;\n //sense killer for killer power box\n case \"killer\":\n return filePath + \"BoxCommon.png\";//INSERT PIC NAME\n break;\n //sense offerings\n case \"offering\":\n switch (targetItem.rarity.toLowerCase()) {\n case \"common\":\n return filePath + \"OffCommon.png\";\n case \"uncommon\":\n return filePath + \"OffUncommon.png\";\n case \"rare\":\n return filePath + \"OffRare.png\";\n case \"very rare\":\n return filePath + \"OffVeryRare.png\";\n case \"ultra rare\":\n return filePath + \"OffUltraRare.png\";\n }\n break;\n //sense perks\n case \"perk\":\n switch (targetItem.rarity.toLowerCase()) {\n case \"common\":\n return filePath + \"PerkRare.png\";\n case \"uncommon\":\n return filePath + \"PerkRare.png\";\n case \"rare\":\n return filePath + \"PerkRare.png\";\n case \"very rare\":\n return filePath + \"PerkVeryRare.png\";\n case \"ultra rare\":\n return filePath + \"PerkUltraRare.png\";\n }\n break;\n //by default we return an error\n default:\n switch (targetItem.rarity.toLowerCase()) {\n case \"common\":\n return filePath + \"BoxCommon.png\";\n case \"uncommon\":\n return filePath + \"BoxUncommon.png\";\n case \"rare\":\n return filePath + \"BoxRare.png\";\n case \"very rare\":\n return filePath + \"BoxVeryRare.png\";\n case \"ultra rare\":\n return filePath + \"BoxUltraRare.png\";\n }\n }\n return -1;\n}", "function interactOrSelect() {\n var item = null;\n var targetSquare = null;\n switch (playerDirection) {\n case \"up\":\n targetSquare = mapLocations[currentLocation][0][playerY - 1][playerX];\n break;\n case \"down\":\n targetSquare = mapLocations[currentLocation][0][playerY + 1][playerX];\n break;\n case \"left\":\n targetSquare = mapLocations[currentLocation][0][playerY][playerX - 1];\n break;\n case \"right\":\n targetSquare = mapLocations[currentLocation][0][playerY][playerX + 1];\n break;\n default:\n }\n if (targetSquare.toString()[0] === \"2\") { \n // Static, interactive objects\n item = staticObjects[currentLocation][parseInt(targetSquare.toString()[1])];\n showText(item.text);\n playerState = \"locked\"\n clearInterval(moveInterval);\n walkingAnimation(playerDirection);\n } else if (targetSquare.toString()[0] === \"6\") {\n // NPCs\n playerState = \"locked\"\n clearInterval(moveInterval);\n walkingAnimation(playerDirection);\n item = allNPCs[currentLocation][parseInt(targetSquare.toString()[1])];\n if (item.healer && myPokemon.currentHP < myPokemon.maxHP) {\n myPokemon.currentHP = myPokemon.maxHP;\n showText(item.name + \": Here's some chocolate for your injured Pokemon. There you go, all better!\");\n } else if (item.trainer) {\n enemyTrainer = item;\n showText(enemyTrainer.dialog);\n var trainerType = (enemyTrainer.finalFour) ? \"finalFourFight\" : \"normalTrainerFight\";\n changeMusic(\"\", trainerType);\n $(document).off();\n setTimeout(function() { enterFightMode(\"trainer\"); }, 1000);\n } else {\n showText(item.dialog);\n }\n } else if (targetSquare.toString()[0] === \"7\") {\n // Claimable items. Only pokemon at this point.\n var itemId = parseInt(targetSquare.toString()[1]);\n item = claimableObjects[currentLocation][itemId];\n if (item.status === \"locked\") {\n showText(\"You already took a Pokemon.\");\n } else if (item.confirmText) {\n // This item requires confirmation before being taken\n showText(item.confirmText);\n $(\"#confirm-box\").show();\n $(\"#yes\").attr(\"data-value\", itemId);\n chooseMenuItem(document.getElementById(\"confirm-options\").children, takeItem);\n } else {\n // No confirmation needed, so pass the item ID to takeItem()\n takeItem(itemId); \n }\n }\n}", "function drawItemSelection(x,y,w,h,id){\n\t\n\tif (numberSelected() == 1) { //Change to == numberRuleItems\n\t\tallowed = false;\n\t} else if (numberSelected() == 0) { // < numberRuleItems\n\t\tallowed = true;\n\t}\n\t\tconsole.log(ruleType, ruleNumber, ruleColor)\n\t\n\t//Depending on which item you draw... Do the following...\n\tvar img = borderImage2; // deselected\n\tif (id == \"hat\"){\n\t\tif (hatSelected == true){\n\t\t\timg = borderImage; // selected\n\t\t}\n\t\tuiObjects[2] = new uiObject(x, y, w, h, \n\t\t\tfunction (){\n\t\t\t\tif (hatSelected){\n\t\t\t\t\thatSelected = false; // Hat selected\n\t\t\t\t} else if (allowed==true) {hatSelected = true;}\n\t\t\t\tconsole.log(\"hat selected.\")\n\t\t}, null, function() {});\n\t}\n\n\tif (id == \"shirt\"){\n\t\tif (shirtSelected == true){\n\t\t\timg = borderImage; // selected\n\t\t}\n\t\tuiObjects[3] = new uiObject(x, y, w, h, \n\t\t\tfunction (){\n\t\t\t\tif (shirtSelected){\n\t\t\t\t\tshirtSelected = false; // shirt selected\n\t\t\t\t}else if (allowed==true) {shirtSelected = true;}\n\t\t\t\tconsole.log(\"shirt selected.\")\n\t\t}, null, function() {});\t\t\n\t}\n\n\tif (id == \"pants\"){\n\t\tif (pantsSelected == true){\n\t\t\timg = borderImage; // selected\t\t\n\t\t}\n\t\tuiObjects[4] = new uiObject(x, y, w, h, \n\t\t\tfunction (){\n\t\t\t\tif (pantsSelected){\n\t\t\t\t\tpantsSelected = false; // pants selected\n\t\t\t\t}else if (allowed==true) {pantsSelected = true;}\n\t\t\t\tconsole.log(\"pants selected.\")\n\t\t}, null, function() {});\n\t}\n\n\tif (id == \"shoes\"){\n\t\tif (shoesSelected == true){\n\t\t\timg = borderImage; // selected\t\t\n\t\t}\n\t\tuiObjects[5] = new uiObject(x, y, w, h, \n\t\t\tfunction (){\n\t\t\t\tif (shoesSelected){\n\t\t\t\t\tshoesSelected = false; // shoes selected\n\t\t\t\t}else if (allowed==true) {shoesSelected = true;}\n\t\t\t\tconsole.log(\"shoes selected.\")\n\t\t}, null, function() {});\n\t}\n\t\n\t\tif (id == \"itemFront\"){\n\t\tif (itemfSelected == true){\n\t\t\timg = borderImage; // selected\n\t\t}\n\t\tuiObjects[6] = new uiObject(x, y, w, h, \n\t\t\tfunction (){\n\t\t\t\tif (itemfSelected){\n\t\t\t\t\titemfSelected = false; // Hat selected\n\t\t\t\t}else if (allowed==true) {itemfSelected = true;}\n\t\t\t\tconsole.log(\"front item selected.\")\n\t\t}, null, function() {});\n\t}\n\t\n\t\tif (id == \"itemBack\"){\n\t\tif (itembSelected == true){\n\t\t\timg = borderImage; // selected\n\t\t}\n\t\tuiObjects[7] = new uiObject(x, y, w, h, \n\t\t\tfunction (){\n\t\t\t\tif (itembSelected){\n\t\t\t\t\titembSelected = false; // Hat selected\n\t\t\t\t}else if (allowed==true) {itembSelected = true;}\n\t\t\t\tconsole.log(\"back item selected.\")\n\t\t}, null, function() {});\n\t}\n\n\t//create a box around each item.\n\tctx.drawImage(img,x,y,w,h);\n}", "function Weapon() {\r\n this.name;\r\n this.type;\r\n}", "function ChangeWeapon( wielded )\n{\n if (disable_autocalc())\n return;\n\n var source;\n var target;\n var value;\n\n if ( wielded )\n {\n source = \"Wielded\";\n target = \"Carried\";\n value = true;\n }\n else\n {\n source = \"Carried\";\n target = \"Wielded\";\n value = false;\n }\n\n for ( var i = 1; i <= 4; i++ )\n {\n if ( sheet()[ \"Weapon\" + i + source ].checked == value )\n sheet()[ \"Weapon\" + i + target ].checked = value;\n }\n\n // We need to call this because we may have changed the 'carried' flag\n CalcWeight();\n}", "function EquipBest() {\n// Preamble: save existing light data\n\tpreviousLightType = \"\";\n\tif(OPC.lightLoc == \"offHand\") {\n\t\tpreviousLightType = OPC.offHand;\n//\t\tpreviousLightLife = OPC.lightLife;\n\t}\n// Part 1: place all items in the backpack\n\tif(Array.isArray(OPC.mainHand)) {\n\t\tOPC.backpack.push(OPC.mainHand); // put current main hand weapon into pack\n\t\tOPC.mainHand = \"\"; // empty main hand\n\t}\n\tif(Array.isArray(OPC.offHand)) {\n\t\tOPC.backpack.push(OPC.offHand); // put current off hand item into pack\n\t\tOPC.offHand = \"\"; // empty off hand\n\t}\n\tif(Array.isArray(OPC.armor)) {\n\t\tOPC.backpack.push(OPC.armor); // put current armor into pack\n\t\tOPC.armor = \"\"; // remove armor\n\t}\n\tOPC.backpack.sort(); // reorganise the backpack\talphbetically based on item[0]\n// Part 2: find best option ignoring light requirements\n\tswitch(OPC.build) {\n\tcase \"footman\":\n\t// find the best shield\n\t\tshieldPosBP = -1;\n\t\tshieldValue = 0;\n\t\tfor(iEB = 0; iEB < OPC.backpack.length; iEB++) {\n\t\t\tif(OPC.backpack[iEB][0] == \"s\") { // only do for shields\n\t\t\t\tif(shieldPosBP == -1) { // haven't located a shield up to now\n\t\t\t\t\tshieldPosBP = iEB;\n\t\t\t\t\tshieldValue = OPC.backpack[iEB][2];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(shieldValue > OPC.backpack[iEB][2]) { // not a defense improvement\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(shieldValue == OPC.backpack[iEB][2] && // as good defensively\n\t\t\t\tOPC.backpack[shieldPosBP][3] <= OPC.backpack[iEB][3]) { // not a weight improvement\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse { // update best shield option\n\t\t\t\t\tshieldPosBP = iEB;\n\t\t\t\t\tshieldValue = OPC.backpack[iEB][2];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t// find the best weapon\n\t\tweaponPosBP = -1;\n\t\tweaponDamage = 0;\n\t\tfor(iEB = 0; iEB < OPC.backpack.length; iEB++) {\n\t\t\tstrMod = Math.floor(OPC.abilityScores[0] / 2) - 5;\n\t\t\tdexMod = Math.floor(OPC.abilityScores[1] / 2) - 5;\n\t\t\tif(OPC.backpack[iEB][0] == \"w\") { // only do for weapons\n\t\t\t\tif(shieldPosBP != -1) { // if a shield was found\n\t\t\t\t\tisTH = false; // set a variable to track two-handed weapon\n\t\t\t\t\tfor(iTH = 0; iTH < OPC.backpack[iEB][4].length; iTH ++){\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(OPC.backpack[iEB][4][iTH] == \"two-handed\") {\n\t\t\t\t\t\t\tisTH = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(isTH == true) { // skip two-handed weapons\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewDiceAverage = ((OPC.backpack[iEB][2][0] * OPC.backpack[iEB][2][1]) + OPC.backpack[iEB][2][1]) / 2;\n\t\t\t\tnewDamage = (newDiceAverage + CalculateDamageBonus(OPC.backpack[iEB])) * (10 + CalculateAttackBonus(OPC.backpack[iEB]));\n\t\t\t\tif(weaponPosBP == -1){ // is this the first weapon found?\n\t\t\t\t\tweaponPosBP = iEB;\n\t\t\t\t\tweaponDamage = newDamage;\n\t\t\t\t}\n\t\t\t\telse if(weaponDamage > newDamage) { // current damage is better\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(weaponDamage == newDamage && // damage is equal\n\t\t\t\tOPC.backpack[weaponPosBP][5] <= OPC.backpack[iEB][5]) { // current weight is as good or better\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tweaponPosBP = iEB;\n\t\t\t\t\tweaponDamage = newDamage;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/////////////////////////////////////// UPDATE FOR OFF HAND LIGHT WEAPONS //////////////////////////////////////////////\n\n\t// find the best armor\n\t\tarmorClassE = CalculateAC();\n\t\tarmorPosBP = -1;\n\t\tfor(iEB = 0; iEB < OPC.backpack.length; iEB++) {\n\t\t\tif(OPC.backpack[iEB][0] == \"a\") { // only do for armor\n\t\t\t\tnewAC = CalculateAC(OPC.backpack[iEB]);\n\t\t\t\tif(OPC.abilityScores[0] < OPC.backpack[iEB][4]) { // check strength requirement\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(armorPosBP == -1){ // if this is the first viable armor, use it as a baseline\n\t\t\t\t\tarmorPosBP = iEB;\n\t\t\t\t\tarmorClassE = newAC;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(armorClassE > newAC) { // this armor is not better\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(armorClassE == newAC && // no change to AC\n\t\t\t\tOPC.backpack[armorPosBP][6] <= OPC.backpack[iEB][6]) { // current armor is lighter\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tarmorPosBP = iEB;\n\t\t\t\t\tarmorClassE = newAC;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n// Part 3: find best light source for each slot\n\tlightPosMH = -1;\n\tlightValMH = 0;\n\tlightPosOH = -1;\n\tlightValOH = 0;\n\tlightPosA = -1;\n\tlightValA = 0;\n\t// loop through all contents of the backpack\n\tfor(iLS = 0; iLS < OPC.backpack.length; iLS ++) {\n\t\tif(OPC.backpack[iLS][0] == \"l\") { // is a light source\n\t\t\tif(OPC.backpack[iLS][1] == \"lantern\" && // is a lantern\n\t\t\t\t!OPC.backpack.includes(oil)) { // backpack doesn't have oil\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(lightPosOH == -1) { // no light source assigned\n\t\t\t\t\tlightPosOH = iLS;\n\t\t\t\t\tlightValOH = OPC.backpack[iLS][2];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(lightValOH > OPC.backpack[iLS][2]) { // has a worse radius\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(OPC.backpack[iLS][2] == lightValOH && // equal radius\n\t\t\t\tOPC.backpack[lightPosOH][3] <= OPC.backpack[iLS][3]) { // not a weight improvement\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse { // use this light source\n\t\t\t\t\tlightPosOH = iLS;\n\t\t\t\t\tlightValOH = OPC.backpack[iLS][2];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(OPC.backpack[iLS][8] > 0) { // has a light radius\n\t\t\tswitch(OPC.backpack[iLS][0]) {\n\t\t\tcase \"a\":\n\t\t\t\tif(lightPosA == -1) { // no light source assigned\n\t\t\t\t\tlightPosA = iLS;\n\t\t\t\t\tlightValA = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(lightValA >= OPC.backpack[iLS][8]) { // new is not an improvement\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse { // \n\t\t\t\t\tlightPosA = iLS;\n\t\t\t\t\tlightValA = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"m\": // the miscelaneous category is here as a placeholder //\n\t\t\t\tbreak;\n\t\t\tcase \"s\":\n\t\t\t\tif(lightPosOH == -1) {\n\t\t\t\t\tlightPosOH = iLS;\n\t\t\t\t\tlightValOH = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(lightValOH >= OPC.backpack[iLS][8]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlightPosOH = iLS;\n\t\t\t\t\tlightValOH = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"w\":\n\t\t\t\tif(lightPosMH == -1) { // main hand\n\t\t\t\t\tlightPosMH = iLS;\n\t\t\t\t\tlightPosMH = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(lightPosMH >= OPC.backpack[iLS][8]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlightPosMH = iLS;\n\t\t\t\t\tlightPosMH = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tisL = false; // set a variable to track light weapon\n\t\t\t\tfor(iL = 0; iL < OPC.backpack[iEB][4].length; iL ++){\t\t\t\t\t\t\t\n\t\t\t\t\tif(OPC.backpack[iEB][4][iL] == \"light\") {\n\t\t\t\t\t\tisL = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isL == false) { // skip weapons that aren't light\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(lightPosOH == -1) { // off hand\n\t\t\t\t\tlightPosOH = iLS;\n\t\t\t\t\tlightValOH = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(lightValOH >= OPC.backpack[iLS][8]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlightPosOH = iLS;\n\t\t\t\t\tlightValOH = OPC.backpack[iLS][8];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n// Part 4: see which light source offers the least reduction\n/*\nOrder matters here, armor before shield to better assess the impact of 2 additional AC\nBuild makes a big difference to off-hand equipment, especially since a torch is treated as a light weapon\nOrder priority needs to be laid out for each build, and then the function should be built to be flexible around that\n*/\n\t// armor\n\taACScore = 0;\n\tif(lightValA > 0) {\n\t\taAC = CalculateAC(OPC.backpack[armorPosBP]);\n\t\tlAC = CalculateAC(OPC.backpack[lightPosA]);\n\t\taACScore = lAC / aAC;\n\t}\n\t// off hand shield\n\tsACScore = 0;\n\tif(lightValOH > 0) {\n\t\tsACScore = aACScore / (aACScore + shieldValue);\n\t}\n\t// main hand\n\twMHScore = 0;\n\tif(lightValMH > 0) {\n\t\twMHDiceAverage = ((OPC.backpack[weaponPosBP][2][0] * OPC.backpack[weaponPosBP][2][1]) + OPC.backpack[weaponPosBP][2][1]) / 2;\n\t\twMHDamage = (wMHDiceAverage + CalculateDamageBonus(OPC.backpack[weaponPosBP])) * (10 + CalculateAttackBonus(OPC.backpack[weaponPosBP]));\n\t\tlMHDiceAverage = ((OPC.backpack[lightPosMH][2][0] * OPC.backpack[lightPosMH][2][1]) + OPC.backpack[lightPosMH][2][1]) / 2;\n\t\tlMHDamage = (lMHDiceAverage + CalculateDamageBonus(OPC.backpack[lightPosMH])) * (10 + CalculateAttackBonus(OPC.backpack[lightPosMH]));\n\t\twMHScore = lMHDamage / wMHDamage;\n\t}\n\t// off hand weaopn (there is currently nothing in place to equip an off-hand weapon)\n\t/*\n\tif(shieldValue == 0) {\n\t\twOHDiceAverage = ((OPC.backpack[shieldPosBP][2][0] * OPC.backpack[shieldPosBP][2][1]) + OPC.backpack[shieldPosBP][2][1]) / 2;\n\t\twOHDamage = (wOHDiceAverage + CalculateDamageBonus(OPC.backpack[shieldPosBP])) * (10 + CalculateAttackBonus(OPC.backpack[shieldPosBP]));\n\t\tlOHDiceAverage = ((OPC.backpack[lightPosOH][2][0] * OPC.backpack[lightPosOH][2][1]) + OPC.backpack[lightPosOH][2][1]) / 2;\n\t\tlOHDamage = (lOHDiceAverage + CalculateDamageBonus(OPC.backpack[lightPosOH])) * (10 + CalculateAttackBonus(OPC.backpack[lightPosOH]));\n\t\twOHScore = lMHDamage / wMHDamage;\n\t}\n\t*/\n\tif(aACScore > sACScore) { // compare lighted armor to lighted shield\n\t\tbestResult = \"a\"; // result = armor\n\t\tscoreResult = aACScore; // score = aACScore\n\t}\n\telse {\n\t\tbestResult = \"s\"; // result = shield\n\t\tscoreResult = sACScore; // score = sACScore\n\t}\n\tif(wMHScore > scoreResult) {\n\t\tbestResult = \"w\"; // result = weapon\n\t\tscoreResult = wMHScore; // score = wMHScore\n\t}\n\t// put the best light source in the proper equipment placeholder\n\tswitch(bestResult) {\n\t\tcase \"a\":\n\t\t\tarmorPosBP = lightPosA;\n\t\t\tOPC.light = OPC.backpack[armorPosBP][8]; // get new light setting from off hand item\n\t\t\tOPC.lightLoc = \"armor\";\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\t\tshieldPosBP = lightPosOH;\n\t\t\tOPC.light = OPC.backpack[shieldPosBP][8]; // get new light setting from off hand item\n\t\t\tOPC.lightLoc = \"offHand\";\n\t\t\tbreak;\n\t\tcase \"w\":\n\t\t\tweaponPosBP = lightPosMH;\n\t\t\tOPC.light = OPC.backpack[weaponPosBP][8]; // get new light setting from off hand item\n\t\t\tOPC.lightLoc = \"mainHand\";\n\t\t\tbreak;\n\t}\n// Part 5: equip the best gear\n\t// the backpack has been sorted by item[0], so the order will be armor, lights, misc, shields, weapons\n\t// main hand weapon\n\tOPC.mainHand = OPC.backpack[weaponPosBP]; // put new weapon in main hand on\n\tOPC.backpack.splice(weaponPosBP, 1); // remove new weapon from pack\n\t// off hand shield\n\tOPC.offHand = OPC.backpack[shieldPosBP]; // put new light in off hand\n\tOPC.backpack.splice(shieldPosBP, 1); // remove new light from pack\n\tif(OPC.offHand !== previousLightType) { // it is a new type of light source\n\t\tif(OPC.offHand == torch) {\n\t\t\tOPC.lightLife = 600; // update torch life\n\t\t}\n\t\telse if(OPC.offHand == lantern) {\n\t\t\tOPC.backpack.splice(OPC.backpack.indexOf(oil),1); // remove the first instance of oil in the backpack\n\t\t\tOPC.lightLife = 3600; // increase the light life to 6 hours\n\t\t}\n\t}\n\t// armor\n\tOPC.armor = OPC.backpack[armorPosBP]; // put new armor on\n\tOPC.backpack.splice(armorPosBP, 1); // remove new armor from pack\n\t// backpack\n\tOPC.backpack.sort(); // reorganise the backpack\n\t// calculate character stats\n\tOPC.AC = CalculateAC();\n\tOPC.attackBonus = CalculateAttackBonus();\n\tOPC.damageDice = SetDamageDice();\n\tOPC.damageType = SetDamageType();\n\tOPC.damageBonus = CalculateDamageBonus();\n\tWriteOPC();\n}", "_prepareItems(data) {\n\n // Categorize Items as Features and Spells\n const features = {\n weapons: { label: game.i18n.localize(\"DND5E.AttackPl\"), items: [] , hasActions: true, dataset: {type: \"weapon\", \"weapon-type\": \"natural\"} },\n actions: { label: game.i18n.localize(\"DND5E.ActionPl\"), items: [] , hasActions: true, dataset: {type: \"feat\", \"activation.type\": \"action\"} },\n passive: { label: game.i18n.localize(\"DND5E.Features\"), items: [], dataset: {type: \"feat\"} },\n equipment: { label: game.i18n.localize(\"DND5E.Inventory\"), items: [], dataset: {type: \"loot\"}}\n };\n\n // Start by classifying items into groups for rendering\n let [spells, other] = data.items.reduce((arr, item) => {\n item.img = item.img || CONST.DEFAULT_TOKEN;\n item.isStack = Number.isNumeric(item.data.quantity) && (item.data.quantity !== 1);\n item.hasUses = item.data.uses && (item.data.uses.max > 0);\n item.isOnCooldown = item.data.recharge && !!item.data.recharge.value && (item.data.recharge.charged === false);\n item.isDepleted = item.isOnCooldown && (item.data.uses.per && (item.data.uses.value > 0));\n item.hasTarget = !!item.data.target && !([\"none\",\"\"].includes(item.data.target.type));\n if ( item.type === \"spell\" ) arr[0].push(item);\n else arr[1].push(item);\n return arr;\n }, [[], []]);\n\n // Apply item filters\n spells = this._filterItems(spells, this._filters.spellbook);\n other = this._filterItems(other, this._filters.features);\n\n // Organize Spellbook\n const spellbook = this._prepareSpellbook(data, spells);\n\n // Organize Features\n for ( let item of other ) {\n if ( item.type === \"weapon\" ) features.weapons.items.push(item);\n else if ( item.type === \"feat\" ) {\n if ( item.data.activation.type ) features.actions.items.push(item);\n else features.passive.items.push(item);\n }\n else features.equipment.items.push(item);\n }\n\n // Assign and return\n data.features = Object.values(features);\n data.spellbook = spellbook;\n }", "function updateWeapon(){\r\n weapon = document.getElementById(\"weapon\").value;\r\n\r\n}", "function improveLoot() {\n\tif (isArena()) return;\n\tif (isAlreadyImproved($('#inv_box'))) return;\n\n\tfunction createInspectButton(item_name) {\n\t\treturn $('<a href=\"#\">?</a>')\n\t\t\t.click(function(){\n\t\t\t\tsayToHero(words.inspectPhrase(item_name));\n\t\t\t\treturn false;\n\t\t\t});\n\t}\n\n\tvar good_box = false;\n\tvar black_box = false;\n\tvar transformer = false;\n\tvar bold_item = false;\n\n\t// Parse items\n\t$('#hero_loot ul li').each(function(ind, obj) {\n\t\tvar $obj = $(obj);\n\t\tvar item_name = $('span', $obj).text()\n\t\t\t\t\t\t\t\t\t .replace(/\\(\\@\\)/, '')\n\t\t\t\t\t\t\t\t .replace(/\\(\\d+ шт\\)/, '')\n\t\t\t\t\t\t\t\t\t .replace(/^\\s+|\\s+$/g, '');\n\t\t// color items, and add buttons\n\t\tif (words.isCategoryItem('heal', item_name)) {\n\t\t\t$obj.css('color', 'green');\n\t\t} else if (words.isCategoryItem('black box', item_name)) {\n\t\t\tblack_box = true;\n\t\t} else if (words.isCategoryItem('good box', item_name)) {\n\t\t\tgood_box = true;\n\t\t} else if (words.isCategoryItem('transformer', item_name)) {\n\t\t\ttransformer = true;\n\t\t} else if (words.canBeActivated($obj)) {\n\t\t\t// Ничего не делать -- остальные активируемые вещи\n\t\t} else {\n\t\t\t$obj.append(createInspectButton(item_name));\n\n\t\t\tif($('b', $obj).length > 0) {\n\t\t\t\tbold_item = true;\n\t\t\t}\n\t\t}\n\t});\n\n\tinformer.update('black box', black_box);\n\tinformer.update('good box', good_box);\n\tif (bold_item) {\n\t\tinformer.update('transform!', transformer);\n\t\tinformer.update('transformer', false);\n\t} else {\n\t\tinformer.update('transformer', transformer);\n\t}\n}", "function weaponExchange(weapons, weaponExchangeArray){\r\n\tvar i;\r\n\tfor (i=0;i<weaponExchangeArray.length;i++){\r\n\t\tweapons[weaponExchangeArray[i].weaponNumber].exchange = 2;\r\n\t\tweapons[weaponExchangeArray[i].weaponNumber].x = weaponExchangeArray[i].x;\r\n\t\tweapons[weaponExchangeArray[i].weaponNumber].y = weaponExchangeArray[i].y;\r\n\t\tweapons[weaponExchangeArray[i].weaponNumber].isTaken = false;\r\n\t\tweapons[weaponExchangeArray[i].weaponNumber].scale.setAttribute(0.1,1,490);\r\n\t}\r\n\t$setObjectScreenXY(weapons);\r\n}", "function generateRandomItem(){\n var itemChance = Math.floor(Math.random() * 4)\n // var currentItem\n if (itemChance === 0){\n player.hp += 200\n console.log('you got a bullet proof vest')\n console.log(`player hp: ${player.hp}`)\n } else if (itemChance === 1){\n player.hp += 50\n console.log('you got a first aid kit')\n console.log(`player hp: ${player.hp}`)\n } else if (itemChance === 2){\n player.weapons.push(items[2])\n console.log('you got a gun')\n } else if (itemChance === 3){\n player.weapons.push(items[3])\n console.log('you got a knife')\n } else if (itemChance === 4){\n player.hp += 50\n console.log('you got some scratch')\n }\n // return currentEnemy\n}", "_prepareWeaponData(itemData, actorData) {\n const data = itemData.data;\n\n // Attack\n if (data.attackDice.length > 0) {\n let attacksplit = splitStatsAndBonus(data.attackDice);\n data.attackStats = attacksplit[0];\n data.attackArray = (attacksplit[1].length > 0 ? findTotalDice(attacksplit[1]) : null);\n data.canAttack = true;\n }\n else {\n data.attackStats = null;\n data.attackArray = null;\n data.canAttack = false;\n }\n // Defense\n if (data.defenseDice.length > 0) {\n let defensesplit = splitStatsAndBonus(data.defenseDice);\n data.defenseStats = defensesplit[0];\n data.defenseArray = (defensesplit[1].length > 0 ? findTotalDice(defensesplit[1]) : null);\n data.canDefend = true;\n }\n else {\n data.defenseStats = null;\n data.defenseArray = null;\n data.canDefend = false;\n }\n // Counter\n if (data.counterDice.length > 0) {\n let countersplit = splitStatsAndBonus(data.counterDice);\n data.counterStats = countersplit[0];\n data.counterArray = (countersplit[1].length > 0 ? findTotalDice(countersplit[1]) : null);\n data.canCounter = true;\n }\n else {\n data.counterStats = null;\n data.counterArray = null;\n data.canCounter = false;\n }\n // Spark\n if (data.useSpark && data.sparkDie.length > 0) {\n data.sparkArray = findTotalDice(data.sparkDie);\n data.canSpark = true;\n }\n else {\n data.sparkArray = null;\n data.canSpark = false;\n }\n // Effects\n if (data.effect.length > 0) {\n data.effectsSplit = splitStatString(data.effect);\n const foo = data.effectsSplit.findIndex(element => element.includes(\"damage\"));\n if (foo >= 0) {\n const bar = data.effectsSplit.splice(foo, 1);\n if (bar.length > 0) {\n const damage = parseInt(bar[0].slice(-1));\n data.damageEffect = isNaN(damage) ? 0 : damage;\n }\n }\n if (data.hasResist) {\n data.resistStats = splitStatString(data.specialResist);\n }\n }\n }", "function equipLightsaber() {\n mainWeapon = lightsaber;\n document.getElementById(\"mainWeaponBox\").innerHTML = mainWeapon.name;\n}", "function displayWeapons(chest, options)\r\n{\r\n\t\r\n\t// establish types\r\n\tvar conf = {\r\n\t\t\"Melee Weapon\":{\r\n\t\t\tattrs:[\"name\", \"cat\", \"atk\", \"par\", \"dmg\", \"hands\", \"weight\", \"val\", \"desc\"],\r\n\t\t\talign:[\"left\", \"left\", \"right\", \"right\", \"right\", \"center\", \"right\", \"right\", \"left\"],\r\n\t\t\tid:\"MeleeWeaponsTable\",\r\n\t\t\ttooltips:[],\r\n\t\t\ttotalNumber:0, // of weapons of that type in the chest\r\n\t\t\ttotalVal:0,\r\n\t\t\ttotalWeight:0\r\n\t\t},\r\n\t\t\"Ranged Weapon\":{\r\n\t\t\tattrs:[\"name\", \"cat\", \"min\", \"max\", \"atk\", \"par\", \"dmg\", \"hands\", \"weight\", \"val\", \"desc\"],\r\n\t\t\talign:[\"left\", \"left\", \"right\", \"right\", \"right\", \"right\", \"right\", \"center\", \"right\", \"right\", \"left\"],\r\n\t\t\tid:\"RangedWeaponsTable\",\r\n\t\t\ttooltips:[],\r\n\t\t\ttotalNumber:0,\r\n\t\t\ttotalVal:0,\r\n\t\t\ttotalWeight:0\r\n\t\t},\r\n\t\t\"Armor\":{\r\n\t\t\tattrs:[\"name\", \"cat\", \"dexmod\", \"dmg\", \"weight\", \"val\", \"desc\"],\r\n\t\t\talign:[\"left\", \"left\", \"right\", \"right\", \"right\", \"right\", \"left\"],\r\n\t\t\tid:\"ArmorTable\",\r\n\t\t\ttooltips:[],\r\n\t\t\ttotalNumber:0,\r\n\t\t\ttotalVal:0,\r\n\t\t\ttotalWeight:0\r\n\t\t}\r\n\t}\r\n\tfor (var c in conf)\r\n\t{\r\n\t\tfor (var n in conf[c].attrs)\r\n\t\t\tconf[c].tooltips.push(getItemHelpText(conf[c].attrs[n]))\r\n\t}\r\n\tconf[\"Armor\"].tooltips.dmg = getItemHelpText(\"prot\")\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t// first pass\r\n\t\r\n\tvar wpCount = {}\r\n\tvar totalVal = 0\r\n\tvar totalWeight = 0\r\n\tvar nbOfType = {}\r\n\t\r\n\tvar i = 0\r\n\twhile (i<chest.length)\r\n\t{\r\n\t\ttotalVal+=chest[i].val\r\n\t\ttotalWeight+=chest[i].weight\r\n\t\tconf[chest[i].type].totalVal+=chest[i].val\r\n\t\tconf[chest[i].type].totalWeight+=chest[i].weight\r\n\t\tconf[chest[i].type].totalNumber++\r\n\t\t\r\n\t\t// deduplication\r\n\t\tif (typeof(wpCount[chest[i].name]) === \"undefined\")\r\n\t\t{\r\n\t\t\twpCount[chest[i].name] = 1\r\n\t\t\ti++\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twpCount[chest[i].name]++\r\n\t\t\tchest.splice(i,1)\r\n\t\t}\r\n\t}\r\n\t\r\n\tvar zebraIndexOfType = {}\r\n\tvar types = Object.keys(conf)\r\n\tfor (var ty in types)\r\n\t{\r\n\t\tif (conf[types[ty]].totalNumber == 0)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tvar t=document.getElementById(conf[types[ty]].id)\r\n\t\t\tvar tr=document.createElement(\"tr\")\r\n\t\t\tvar td = document.createElement(\"td\")\r\n\t\t\ttd.innerHTML=\"<i>No \"+types[ty].toLowerCase()+\"s</i>\"\r\n\t\t\ttd.colSpan=conf[types[ty]].attrs.length\r\n\t\t\ttr.appendChild(td)\r\n\t\t\ttr.className=\"gray\"\r\n\t\t\tt.appendChild(tr)\r\n\t\t}\r\n\t\telse\r\n\t\t\tzebraIndexOfType[types[ty]] = 0\r\n\t}\r\n\t\r\n\t// adding elements\r\n\t\r\n\tvar curCat = \"\"\r\n\tvar color = \"\"\r\n\tfor (var w in chest)\r\n\t{\r\n\t\tvar t=document.getElementById(conf[chest[w].type].id)\r\n\t\tvar tr=document.createElement(\"tr\")\r\n\t\ttr.className=\"weaponRow\"\r\n\t\t\r\n\t\t\r\n\t\tif (options && (options.perweapon || options.colors) && curCat != chest[w][\"cat\"].toString())\r\n\t\t{\r\n\t\t\tcurCat = chest[w][\"cat\"].toString()\r\n\t\t\tcolor = getLightRGBfromString(chest[w][\"cat\"].toString())\r\n\t\t\tif (options.perweapon)\r\n\t\t\t{\r\n\t\t\t\tvar sep = document.createElement(\"tr\")\r\n\t\t\t\tsep.style.height = \"1em\"\r\n\t\t\t\tt.appendChild(sep)\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (wpCount[chest[w].name] > 1)\r\n\t\t{\r\n\t\t\tchest[w].weight = \"<b style=\\\"color:#C00\\\">\"+wpCount[chest[w].name]*chest[w].weight +\"</b> <br>(\"+chest[w].weight+\")\"\r\n\t\t\tchest[w].val = \"<b style=\\\"color:#C00\\\">\"+wpCount[chest[w].name]*chest[w].val +\"</b> <br>(\"+chest[w].val+\")\"\r\n\t\t\tchest[w].name = \"<b style=\\\"color:#C00\\\">\"+wpCount[chest[w].name]+\"x</b> \"+chest[w].name\r\n\t\t}\r\n\t\t\r\n\t\tvar n = 0\r\n\t\twhile (n < conf[chest[w].type].attrs.length)\r\n\t\t{\r\n\t\t\tvar td = document.createElement(\"td\")\r\n\t\t\tif (options && options.perweapon && !chest[w].appliedModifier && conf[chest[w].type].attrs[n]==\"name\")\r\n\t\t\t{\r\n\t\t\t\tvar a = document.createElement(\"a\")\r\n\t\t\t\ta.href = window.location.pathname+\"#\"+chest[w][\"name\"].replace(/\\ /g, \"_\").toLowerCase()\r\n\t\t\t\ta.innerHTML=chest[w][\"name\"]\r\n\t\t\t\ta.id=chest[w][\"name\"].replace(/\\ /g, \"_\").toLowerCase()\r\n\t\t\t\ttd.appendChild(a)\r\n\t\t\t}\r\n\t\t\telse if (options && options.colors && conf[chest[w].type].attrs[n]==\"cat\")\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\ttd.style.backgroundColor=color\r\n\t\t\t\t\r\n\t\t\t\tif (chest[w][conf[chest[w].type].attrs[n]].length>1)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor (var ca in chest[w].cat)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tvar sp = document.createElement(\"span\")\r\n\t\t\t\t\tsp.style.backgroundColor = getLightRGBfromString(chest[w].cat[ca])\r\n\t\t\t\t\tsp.innerHTML = chest[w].cat[ca]\r\n\t\t\t\t\ttd.appendChild(sp)\r\n\t\t\t\t\tif (ca < chest[w].cat.length-1)\r\n\t\t\t\t\t\ttd.innerHTML+=\", \"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\ttd.innerHTML=chest[w][conf[chest[w].type].attrs[n]]\r\n\t\t\t}\r\n\t\t\telse if (conf[chest[w].type].attrs[n]==\"dmg\")\r\n\t\t\t{\r\n\t\t\t\ttd.innerHTML=getWebDiceDisplay(chest[w][\"dmg\"])\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\ttd.innerHTML=chest[w][conf[chest[w].type].attrs[n]]\r\n\t\t\t\r\n\t\t\ttd.style.textAlign=conf[chest[w].type].align[n]\r\n\t\t\ttd.title=conf[chest[w].type].tooltips[n]\r\n\t\t\t\r\n\t\t\t// skip following absent values\r\n\t\t\twhile (typeof(chest[w][conf[chest[w].type].attrs[parseInt(n)+1]]) === \"undefined\" && parseInt(n)+1 < conf[chest[w].type].attrs.length)\r\n\t\t\t{\r\n\t\t\t\t//console.log(n, attrs[parseInt(n)], attrs[parseInt(n)+1])\r\n\t\t\t\t// yup, that parseint is required. Else n=0 => string\r\n\t\t\t\t// if using for (var n in attrs), that is\r\n\t\t\t\ttd.colSpan++\r\n\t\t\t\tn++\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttr.appendChild(td)\r\n\t\t\tn++\r\n\t\t}\r\n\t\t\r\n\t\tif (options && options.perweapon && !chest[w].appliedModifier)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tzebraIndexOfType[chest[w].type]=0\r\n\t\t\tvar color = getLightRGBfromString(chest[w][\"cat\"].toString())\r\n\t\t\t//tr.style.borderTop=\"1px solid black;\"\r\n\t\t\tt.appendChild(document.createElement(\"tr\"))\r\n\t\t\ttr.style.backgroundColor=color\r\n\t\t}\r\n\t\telse if (zebraIndexOfType[chest[w].type]%2 == 0)\r\n\t\t\ttr.className+=\" gray\"\r\n\t\tzebraIndexOfType[chest[w].type]++\r\n\t\tt.appendChild(tr)\r\n\t}\r\n\t\r\n\tif (options && options.total)\r\n\t{\r\n\t\tvar t=document.getElementById(conf[\"Armor\"].id)\r\n\t\tvar tr=document.createElement(\"tr\")\r\n\t\tvar tdt = document.createElement(\"td\")\r\n\t\ttdt.innerHTML=\"Total (weapons)\"\r\n\t\ttdt.colSpan=4\r\n\t\ttr.appendChild(tdt)\r\n\t\tvar tdw = document.createElement(\"td\")\r\n\t\ttdw.innerHTML=totalWeight\r\n\t\ttdw.id=\"totalWeaponsWeight\"\r\n\t\ttdw.style.textAlign=\"right\"\r\n\t\ttr.appendChild(tdw)\r\n\t\tvar tdv = document.createElement(\"td\")\r\n\t\ttdv.innerHTML=totalVal\r\n\t\ttdv.id=\"totalWeaponsVal\"\r\n\t\ttdv.style.textAlign=\"right\"\r\n\t\ttr.appendChild(tdv)\r\n\t\t//tr.appendChild(document.createElement(\"td\"))\r\n\t\ttr.style.backgroundColor=\"#DDF\"\r\n\t\ttr.style.fontWeight=\"bold\"\r\n\t\tt.appendChild(tr)\r\n\t}\r\n}", "function equip(item, person){\n\tif (item.pos == person.pos)\n\t\tperson.damage.hand = item.damage.hand;\n\t\tperson.weapon = item.weapon;\n}", "function bChoice(){\n var pick=Math.floor(Math.random() * 2); \n //BLOCKING\n if (hero[0].choice===2){\n bSingle(bossAttack)\n }\n else if (hero[1].choice===2){\n bSingle(bossAttack)\n }\n else if (hero[2].choice===2){\n bSingle(bossAttack)\n }\n //NO ONES BLOCKING\n else{\n if (pick===0){\n bSingle(bossAttack)\n }\n else if(pick===1){\n bArea(bossAttack)\n }\n }\n}", "function SetDamageType(weapon = OPC.mainHand) {\n\tdamageTypeText = \"bludgeoning\"; // for all non-weapon class items (improvised weapons)\n\tif(weapon[0] == \"w\") { // is a weapon class item\n\t\tdamageTypeText = weapon[3];\n\t}\n\treturn damageTypeText;\n}", "canUseWeapon(w)\n {\n // if eqWeap == -1 then this.weapons[eqWeap] -> undefined\n let r = true;\n if (w === undefined)\n return false\n else if (this.hasSkill(\"noncombatant\"))\n r = false;\n else if (w !== null && w.pref !== null && this.name != w.pref)\n r = false;\n return r;\n }", "function Weapon(name, target) {\n this.name = name;\n this.target = target;\n}", "hasWeapon() {\n return this.hasBow;\n }", "function appSelection() {\n appLetter = letterOptions[Math.floor(Math.random() * letterOptions.length)];\n}", "async pickWeapon(id) {\n let response = await this.sendRequest(\"buysomething.php\", { \"whatneed\": \"pickweapon\", \"weaponid\": id });\n debug(\"Pick weapon id\" + id + \"...\", response);\n return response;\n }", "function generateItems(){\n \n /////////////////////////////////////////ARMAS/////////////////////////////////\n for(var i = 0; i < 5; i++){\n switch(Math.floor(Math.random()*2)){\n case 0:\n var w = new WeaponItem(Math.floor(Math.random()*2800 + 200), Math.floor(Math.random()*2800 + 200), 'pistol', 1, 500, 10, 'pistola');\n break;\n case 1:\n var w = new WeaponItem(Math.floor(Math.random()*2800 + 200), Math.floor(Math.random()*2800 + 200),'ak-47', 0.25, 200, 30, 'metralleta');\n break;\n }\n while(map.tileMap.getTileWorldXY(w.sprite.x, w.sprite.y, 32, 32, map.layers[0]) === null ||\n \t\tmap.tileMap.getTileWorldXY(w.sprite.x, w.sprite.y, 32, 32, map.layers[3]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(w.sprite.x, w.sprite.y, 32, 32, map.layers[4]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(w.sprite.x, w.sprite.y, 32, 32, map.layers[5]) !== null){\n w.sprite.x = Math.floor(Math.random()*2800 + 200);\n w.sprite.y = Math.floor(Math.random()*2800 + 200);\n }\n itemsGroup.add(w.sprite);\n weaponItems.push(w);\n }\n \n //////////////////////////////////////////FIN ARMAS//////////////////////////////////\n \n ////////////////////////////////////////MUNICION/////////////////////////////////////\n for(var i = 0; i < 6; i++){\n switch(Math.floor(Math.random()*2)){\n case 0:\n var a = new AmmoItem(Math.floor(Math.random()*2800 + 200), Math.floor(Math.random()*2800 + 200), 'pistol_ammo',10, 'pistola');\n break;\n case 1:\n var a = new AmmoItem(Math.floor(Math.random()*2800 + 200), Math.floor(Math.random()*2800 + 200),'ak47_ammo',30, 'metralleta');\n break;\n }\n while(map.tileMap.getTileWorldXY(a.sprite.x, a.sprite.y, 32, 32, map.layers[0]) === null ||\n \t\tmap.tileMap.getTileWorldXY(a.sprite.x, a.sprite.y, 32, 32, map.layers[3]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(a.sprite.x, a.sprite.y, 32, 32, map.layers[4]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(a.sprite.x, a.sprite.y, 32, 32, map.layers[5]) !== null){\n a.sprite.x = Math.floor(Math.random()*2800 + 200);\n a.sprite.y = Math.floor(Math.random()*2800 + 200);\n }\n itemsGroup.add(a.sprite);\n ammoItems.push(a);\n }\n \n \n //////////////////////////////////////FIN MUNICION///////////////////////////////////////\n \n /////////////////////////////////////ESCUDO//////////////////////////////////////////////\n for(var i = 0; i < 4; i ++){\n var s = new ShieldItem(Math.floor(Math.random()*2800 + 200), Math.floor(Math.random()*2800 + 200));\n while(map.tileMap.getTileWorldXY(s.sprite.x, s.sprite.y, 32, 32, map.layers[0]) === null ||\n \t\tmap.tileMap.getTileWorldXY(s.sprite.x, s.sprite.y, 32, 32, map.layers[3]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(s.sprite.x, s.sprite.y, 32, 32, map.layers[4]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(s.sprite.x, s.sprite.y, 32, 32, map.layers[5]) !== null){\n s.sprite.x = Math.floor(Math.random()*2800 + 200);\n s.sprite.y = Math.floor(Math.random()*2800 + 200);\n }\n itemsGroup.add(s.sprite);\n shieldItems.push(s);\n }\n //Comida\n for(var i = 0; i < 8; i++){\n var f = new FoodItem(Math.floor(Math.random()*2800 + 200), Math.floor(Math.random()*2800 + 200),'food');\n while(map.tileMap.getTileWorldXY(f.sprite.x, f.sprite.y, 32, 32, map.layers[0]) === null ||\n \t\tmap.tileMap.getTileWorldXY(f.sprite.x, f.sprite.y, 32, 32, map.layers[3]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(f.sprite.x, f.sprite.y, 32, 32, map.layers[4]) !== null ||\n \t\tmap.tileMap.getTileWorldXY(f.sprite.x, f.sprite.y, 32, 32, map.layers[5]) !== null){\n f.sprite.x = Math.floor(Math.random()*2800 + 200);\n f.sprite.y = Math.floor(Math.random()*2800 + 200);\n }\n itemsGroup.add(f.sprite);\n foodItems.push(f);\n }\n \n //Por último, mandamos la info de los items al servidor\n //Para weapon y ammo se manda u array para el tipo y otro para las posiciones. Para el resto de los items solo se mandan las posiciones\n var weaponPos = new Array();\n var weaponType = new Array();\n var ammoPos = new Array();\n var ammoType = new Array();\n var foodPos = new Array();\n var shieldPos = new Array();\n \n for (var i = 0; i < 5; i++){\n \tweaponPos[i] = new Array();\n }\n for (var i = 0; i < 6; i++){\n ammoPos[i] = new Array();\n }\n \n for (var i = 0; i < 4; i++){\n\n shieldPos[i] = new Array();\n }\n for (var i = 0; i < 8; i++){\n foodPos[i] = new Array();\n }\n for (var i = 0; i < 5; i++){\n \tweaponType[i] =weaponItems[i].type;\n \tweaponPos[i][0] = weaponItems[i].sprite.x;\n \tweaponPos[i][1] = weaponItems[i].sprite.y;\n }\n \n for(var i = 0; i < 6; i++){\n \tammoType[i] = ammoItems[i].type;\n \tammoPos[i][0] = ammoItems[i].sprite.x;\n \tammoPos[i][1] = ammoItems[i].sprite.y;\n }\n \n for(var i = 0; i < 4; i++){\n \tshieldPos[i][0] = shieldItems[i].sprite.x;\n \tshieldPos[i][1] = shieldItems[i].sprite.y;\n }\n \n for(var i = 0; i < 8; i++){\n \tfoodPos[i][0] = foodItems[i].sprite.x;\n \tfoodPos[i][1] = foodItems[i].sprite.y;\n }\n sendItemsWS(weaponType, weaponPos, ammoType, ammoPos, shieldPos, foodPos);\n\n clearItems();\n}", "function fighterSelect() {\n if (userSelected === false) {\n userChoice.append($(this));\n userSelected = true;\n for (let i = 0; i < fighterArray.length; i++) {\n if ($(this).attr('alt') === fighterArray[i].name) {\n userFighter = fighterArray[i];\n userFighter.hide();\n }\n }\n return userFighter\n }\n \n else if (userSelected === true && enemySelected === false) {\n enemyChoice.append($(this));\n enemySelected = true;\n for (let i = 0; i < fighterArray.length; i++) {\n if ($(this).attr('alt') === fighterArray[i].name) {\n enemyFighter = fighterArray[i];\n enemyFighter.hide();\n }\n }\n return enemyFighter;\n }\n }", "function getWeaponDmgBonus() {\r\n\tif(equippedWpn == true) {\r\n\t\tfor(var i = 0; i < itemStorageArray.length; i++) {\r\n\t\t\tif(equippedWpnArr[0] == itemStorageArray[i].code) {\r\n\t\t\t\tweaponDmgBonus = itemStorageArray[i].effect;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\telse {\r\n\t\tweaponDmgBonus = 0;\r\n\t}\r\n}", "function checkAndChange() {\n\n if(sacred_t.alpha == 1){\n tooth_used = true;\n }\n if(spear_.alpha == 1){\n spear_used = true;\n }\n if(shield_.alpha == 1){\n shield_used = true;\n }\n entering_shop = false;\n if(entering_shop == false){\n shopMusic.pause();\n }\n\n this.NextLevel();\n\n\n}", "function equipmentMenu() {\n $scope.menuTitle = createText(\"Items\", [20, 10]);\n\n var datas = CharServ.getAllDatas();\n var style = {\n font : 'bold italic 26px Arial',\n fill : '#F7EDCA',\n stroke : '#4a1850',\n strokeThickness : 5,\n };\n\n // draw weapon\n createText(datas.weapon.name, [50, 80], style);\n createText(\"[image]\", [80, 180]);\n if (datas.weapon.enhancement === 0) {\n createText(\"damages: \" + datas.weapon.damages, [330, 150], {});\n } else {\n createText(\"damages: \" + datas.weapon.damages + \" + \" + datas.weapon.enhancement, [330, 150], {});\n }\n var hit = datas.weapon.hitBonus + datas.weapon.enhancement;\n createText(\"hit bonus: \" + hit, [330, 180], {});\n createText(\"crit: \" + datas.weapon.critical[0] + \"-20 x\" + datas.weapon.critical[1], [330,210], {});\n\n // draw armor\n createText(datas.armor.name, [50, 340], style);\n createText(\"[image]\", [80, 410]);\n var def = datas.armor.defence + datas.armor.enhancement;\n createText(\"armor: \" + def, [330, 410], {});\n createText(\"weight: \" + datas.armor.weight, [330, 440], {});\n }", "selector(){\n this.seed = random(0,9);\n this.currentPosition = player.shipPosition;\n switch(this.currentPosition) {\n \n case 1:\n if(this.seed < 6) {\n this.boostFlag = true;\n break\n }\n if (this.seed > 6) {\n this.starFlag = true;\n break;\n }\n \n \n case 2:\n if(this.seed < 4) {\n this.boostFlag = true;\n break;\n }\n if (this.seed > 4 && this.seed < 8) {\n this.starFlag = true;\n break;\n }\n \n if (this.seed > 8) {\n this.shieldFlag = true;\n break;\n }\n \n \n \n case 3:\n if(this.seed < 2) {\n this.boostFlag = true;\n break;\n }\n if (this.seed > 2 && this.seed < 7) {\n this.starFlag = true;\n break;\n }\n \n if (this.seed > 7) {\n this.shieldFlag = true;\n break;\n }\n \n \n \n case 4:\n if(this.seed < 6) {\n this.shieldFlag = true;\n break;\n }\n if (this.seed > 6) {\n this.luckFlag = true;\n break;\n }\n \n \n }\n \n }", "function hero_selected(){\n $('.option_select_sound').trigger('play');\n $('.ultron').addClass('grayscale').removeClass('dropshadow');\n $('.select_villain').removeClass('dropshadow');\n $('.select_hero').addClass('dropshadow');\n $('.captain_america').removeClass('grayscale').addClass('dropshadow');\n $('.select_play').off('click', play_game).on('click', play_game);\n game_mode = 'hero';\n}", "function buyHandWeapon(weap){\n let weapon= handWeapons[weap]\n if(weapon.cost.length == 0){\n return '';\n }\n if(canPurchase(weapon.cost[0])){\n weapon.quantity += 1\n player.heldWeapon = weap\n weapon.cost.splice(0,1)\n\n }\n}" ]
[ "0.77129143", "0.6950002", "0.67625266", "0.6728606", "0.6725735", "0.6708103", "0.6697753", "0.66797227", "0.6649426", "0.66385984", "0.6531744", "0.652346", "0.6503461", "0.6501489", "0.64737064", "0.6449697", "0.6446425", "0.6440887", "0.6417962", "0.6379309", "0.6359034", "0.6330936", "0.63237214", "0.63217455", "0.6317366", "0.62991005", "0.6296597", "0.62940377", "0.62841433", "0.62835646", "0.6275795", "0.6264008", "0.6255195", "0.62473255", "0.6232589", "0.62223923", "0.62198746", "0.6214975", "0.62124586", "0.6200953", "0.6197138", "0.6191477", "0.6173435", "0.6150052", "0.6140461", "0.6140292", "0.6113322", "0.61102784", "0.61097413", "0.61023575", "0.61016697", "0.60916525", "0.60885864", "0.608259", "0.6074917", "0.6070246", "0.6068934", "0.6050835", "0.6040399", "0.6035051", "0.6016213", "0.6013264", "0.6006625", "0.59945524", "0.5987377", "0.59805185", "0.59796816", "0.5971439", "0.5969547", "0.5968172", "0.5951344", "0.59185565", "0.5915875", "0.5915246", "0.5895571", "0.5888379", "0.58831453", "0.58824897", "0.58645195", "0.5862927", "0.5840614", "0.5840116", "0.5836802", "0.58324015", "0.58270156", "0.581956", "0.5811958", "0.5809578", "0.58079773", "0.5805809", "0.58035046", "0.5801036", "0.57852495", "0.57834935", "0.57797074", "0.5775821", "0.57747006", "0.57697827", "0.5763789", "0.5761062" ]
0.587757
78